Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@meta2d/form-diagram

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meta2d/form-diagram - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

1

index.d.ts

@@ -8,2 +8,1 @@ export * from './src/table';

export * from './src/time';
export * from './src/table3';

@@ -8,3 +8,2 @@ export * from './src/table';

export * from './src/time';
export * from './src/table3';
//# sourceMappingURL=index.js.map

2

package.json
{
"name": "@meta2d/form-diagram",
"version": "1.0.18",
"version": "1.0.19",
"description": "The form library based on le5le meta2d.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,4 +5,4 @@ import { le5leSwitch } from './switch';

import { radio } from './radio';
import { table2 } from './table2';
import { time } from './time';
import { table3 } from './table3';
export declare function formPens(): {

@@ -13,4 +13,4 @@ radio: typeof radio;

checkbox: typeof checkbox;
table: typeof table3;
table2: typeof table3;
table: typeof table2;
table2: typeof table2;
};

@@ -17,0 +17,0 @@ export declare function formPath2DPens(): {

@@ -5,4 +5,4 @@ import { le5leSwitch } from './switch';

import { radio } from './radio';
import { table2 } from './table2';
import { time } from './time';
import { table3 } from './table3';
export function formPens() {

@@ -14,4 +14,4 @@ return {

checkbox: checkbox,
table: table3,
table2: table3,
table: table2,
table2: table2,
};

@@ -18,0 +18,0 @@ }

@@ -365,10 +365,27 @@ var __values = (this && this.__values) || function(o) {

//样式条件成立
if (cellStyle.wheres &&
Array.isArray(cellStyle.wheres)) {
isSuccess = false;
isSuccess = cellStyle.wheres.every(function (where) {
var fn = new Function('attr', "return attr " + where.comparison + " " + where.value);
return fn(cell);
if (Array.isArray(cellStyle) && cellStyle.length > 0) {
var successIdx_1 = 0;
cellStyle.forEach(function (item, idx) {
if (item.wheres) {
var success = item.wheres.every(function (where) {
var fn = new Function('attr', "return attr " + where.comparison + " " + where.value);
return fn(cell);
});
if (success) {
successIdx_1 = idx;
}
}
});
cellStyle = cellStyle[successIdx_1];
}
else {
if (cellStyle.wheres &&
Array.isArray(cellStyle.wheres)) {
isSuccess = false;
isSuccess = cellStyle.wheres.every(function (where) {
var fn = new Function('attr', "return attr " + where.comparison + " " + where.value);
return fn(cell);
});
}
}
var color = pen.color;

@@ -658,3 +675,3 @@ var textColor = pen.textColor || pen.color;

if (Array.isArray(row)) {
return { value: row[colIndex], style: (style === null || style === void 0 ? void 0 : style.length) > 0 ? style[0] : {} };
return { value: row[colIndex], style: (style === null || style === void 0 ? void 0 : style.length) > 0 ? (style.length > 1 ? style : style[0]) : {} };
}

@@ -661,0 +678,0 @@ else if (!row.data || !Array.isArray(row.data)) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc