overview-components 1.1.80 → 1.1.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/components-settings/data-grid-settings.d.ts.map +1 -1
- package/dist/components/components-settings/data-grid-settings.js +7 -0
- package/dist/components/components-settings/data-grid-settings.js.map +1 -1
- package/dist/components/components-settings/section-tab-settings.d.ts +3 -3
- package/dist/components/components-settings/section-tab-settings.d.ts.map +1 -1
- package/dist/components/components-settings/section-tab-settings.js +19 -21
- package/dist/components/components-settings/section-tab-settings.js.map +1 -1
- package/dist/components/lit-case-variables-tab.d.ts +1 -1
- package/dist/components/lit-case-variables-tab.d.ts.map +1 -1
- package/dist/components/lit-case-variables-tab.js +4 -8
- package/dist/components/lit-case-variables-tab.js.map +1 -1
- package/dist/components/lit-filter-builder.d.ts +1 -1
- package/dist/components/lit-filter-builder.d.ts.map +1 -1
- package/dist/components/lit-filter-builder.js +2 -2
- package/dist/components/lit-filter-builder.js.map +1 -1
- package/dist/components/lit-section-tab.d.ts +3 -3
- package/dist/components/lit-section-tab.d.ts.map +1 -1
- package/dist/components/lit-section-tab.js +14 -3
- package/dist/components/lit-section-tab.js.map +1 -1
- package/dist/schemas/lit-case-variables-tab-cell.schema.d.ts +20 -4
- package/dist/schemas/lit-case-variables-tab-cell.schema.d.ts.map +1 -1
- package/dist/schemas/lit-case-variables-tab-cell.schema.js +57 -7
- package/dist/schemas/lit-case-variables-tab-cell.schema.js.map +1 -1
- package/dist/schemas/lit-case-variables-tab-rows.schema.d.ts +20 -4
- package/dist/schemas/lit-case-variables-tab-rows.schema.d.ts.map +1 -1
- package/dist/schemas/lit-case-variables-tab.schema.d.ts +20 -4
- package/dist/schemas/lit-case-variables-tab.schema.d.ts.map +1 -1
- package/dist/utils/utils.d.ts +13 -0
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +73 -0
- package/dist/utils/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,12 +5,24 @@ export const litCaseVariablesTabCellSchema = {
|
|
|
5
5
|
field: { type: 'string' },
|
|
6
6
|
type: {
|
|
7
7
|
type: 'string',
|
|
8
|
-
enum: ['string', 'button', 'link', 'date', 'currency', 'progress', 'number'],
|
|
8
|
+
enum: ['string', 'button', 'link', 'date', 'currency', 'progress', 'number', 'select'],
|
|
9
9
|
},
|
|
10
10
|
headerName: { type: 'string' },
|
|
11
11
|
value: {
|
|
12
12
|
oneOf: [{ type: 'string' }, { type: 'number' }, { type: 'null' }],
|
|
13
13
|
},
|
|
14
|
+
options: {
|
|
15
|
+
type: 'array',
|
|
16
|
+
items: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
label: { type: 'string' },
|
|
20
|
+
value: { type: ['string', 'number', 'null'] },
|
|
21
|
+
},
|
|
22
|
+
required: ['label', 'value'],
|
|
23
|
+
additionalProperties: false,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
14
26
|
conditionalFormatting: {
|
|
15
27
|
type: 'object',
|
|
16
28
|
properties: {
|
|
@@ -18,7 +30,26 @@ export const litCaseVariablesTabCellSchema = {
|
|
|
18
30
|
variable: { type: 'string' },
|
|
19
31
|
operator: {
|
|
20
32
|
type: 'string',
|
|
21
|
-
enum: [
|
|
33
|
+
enum: [
|
|
34
|
+
'=',
|
|
35
|
+
'!=',
|
|
36
|
+
'>',
|
|
37
|
+
'>=',
|
|
38
|
+
'<',
|
|
39
|
+
'<=',
|
|
40
|
+
'contains',
|
|
41
|
+
'doesNotContain',
|
|
42
|
+
'isEmpty',
|
|
43
|
+
'isNotEmpty',
|
|
44
|
+
'in',
|
|
45
|
+
'nin',
|
|
46
|
+
'fromTo',
|
|
47
|
+
'startsWith',
|
|
48
|
+
'endsWith',
|
|
49
|
+
'is',
|
|
50
|
+
'not',
|
|
51
|
+
'isAnyOfValue',
|
|
52
|
+
],
|
|
22
53
|
},
|
|
23
54
|
value: { type: 'string' },
|
|
24
55
|
cellVariant: {
|
|
@@ -43,7 +74,26 @@ export const litCaseVariablesTabCellSchema = {
|
|
|
43
74
|
variable: { type: 'string' },
|
|
44
75
|
operator: {
|
|
45
76
|
type: 'string',
|
|
46
|
-
enum: [
|
|
77
|
+
enum: [
|
|
78
|
+
'=',
|
|
79
|
+
'!=',
|
|
80
|
+
'>',
|
|
81
|
+
'>=',
|
|
82
|
+
'<',
|
|
83
|
+
'<=',
|
|
84
|
+
'contains',
|
|
85
|
+
'doesNotContain',
|
|
86
|
+
'isEmpty',
|
|
87
|
+
'isNotEmpty',
|
|
88
|
+
'in',
|
|
89
|
+
'nin',
|
|
90
|
+
'fromTo',
|
|
91
|
+
'startsWith',
|
|
92
|
+
'endsWith',
|
|
93
|
+
'is',
|
|
94
|
+
'not',
|
|
95
|
+
'isAnyOfValue',
|
|
96
|
+
],
|
|
47
97
|
},
|
|
48
98
|
value: { type: 'string' },
|
|
49
99
|
},
|
|
@@ -90,7 +140,7 @@ export const litCaseVariablesTabCellSchema = {
|
|
|
90
140
|
valueCustomStyles: { type: 'boolean' },
|
|
91
141
|
fontWeight: {
|
|
92
142
|
type: 'string',
|
|
93
|
-
enum: ['normal', 'bold', '500', '600', '700']
|
|
143
|
+
enum: ['normal', 'bold', '500', '600', '700'],
|
|
94
144
|
},
|
|
95
145
|
tooltip: { type: ['string'] },
|
|
96
146
|
currencyType: {
|
|
@@ -120,9 +170,9 @@ export const litCaseVariablesTabCellSchema = {
|
|
|
120
170
|
},
|
|
121
171
|
},
|
|
122
172
|
patternProperties: {
|
|
123
|
-
'^headerName_(cs|en|de|sk|pl|hu|fr|it|es)$': { type: 'string' },
|
|
124
|
-
'^tooltip_(cs|en|de|sk|pl|hu|fr|it|es)$': { type: 'string' },
|
|
125
|
-
'^value_(cs|en|de|sk|pl|hu|fr|it|es)$': {
|
|
173
|
+
'^headerName_(cs|en|de|sk|pl|hu|fr|it|es|sr)$': { type: 'string' },
|
|
174
|
+
'^tooltip_(cs|en|de|sk|pl|hu|fr|it|es|sr)$': { type: 'string' },
|
|
175
|
+
'^value_(cs|en|de|sk|pl|hu|fr|it|es|sr)$': {
|
|
126
176
|
oneOf: [{ type: 'string' }, { type: 'number' }, { type: 'null' }],
|
|
127
177
|
},
|
|
128
178
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-case-variables-tab-cell.schema.js","sourceRoot":"","sources":["../../src/schemas/lit-case-variables-tab-cell.schema.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,MAAM,CAAC,MAAM,6BAA6B,GAAG;IACzC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"lit-case-variables-tab-cell.schema.js","sourceRoot":"","sources":["../../src/schemas/lit-case-variables-tab-cell.schema.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,MAAM,CAAC,MAAM,6BAA6B,GAAG;IACzC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC;SACzF;QACD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC9B,KAAK,EAAE;YACH,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;SACpE;QACD,OAAO,EAAE;YACL,I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AAK,EAAE,KAAK,CAAC;SAChD;QACD,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE;QAC7B,YAAY,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE;gBACF,KAAK;gBACL,KAAK;gBACL,KAAK;gBACL,KAAK;gBACL,KAAK;gBACL,KAAK;gBACL,KAAK;gBACL,KAAK;gBACL,KAAK;gBACL,KAAK;gBACL,KAAK;gBACL,KAAK;gBACL,KAAK;gBACL,KAAK;gBACL,KAAK;aACR;SACJ;QACD,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACnC,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC;SAC3D;KACJ;IACD,iBAAiB,EAAE;QACf,8CAA8C,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClE,2CAA2C,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC/D,yCAAyC,EAAE;YACvC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;SACpE;KACJ;IACD,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,oBAAoB,EAAE,KAAK;CACrB,CAAC"}
|
|
@@ -8,7 +8,7 @@ export declare const litCaseVariablesTabRowsSchema: {
|
|
|
8
8
|
};
|
|
9
9
|
readonly type: {
|
|
10
10
|
readonly type: "string";
|
|
11
|
-
readonly enum: readonly ["string", "button", "link", "date", "currency", "progress", "number"];
|
|
11
|
+
readonly enum: readonly ["string", "button", "link", "date", "currency", "progress", "number", "select"];
|
|
12
12
|
};
|
|
13
13
|
readonly headerName: {
|
|
14
14
|
readonly type: "string";
|
|
@@ -22,6 +22,22 @@ export declare const litCaseVariablesTabRowsSchema: {
|
|
|
22
22
|
readonly type: "null";
|
|
23
23
|
}];
|
|
24
24
|
};
|
|
25
|
+
readonly options: {
|
|
26
|
+
readonly type: "array";
|
|
27
|
+
readonly items: {
|
|
28
|
+
readonly type: "object";
|
|
29
|
+
readonly properties: {
|
|
30
|
+
readonly label: {
|
|
31
|
+
readonly type: "string";
|
|
32
|
+
};
|
|
33
|
+
readonly value: {
|
|
34
|
+
readonly type: readonly ["string", "number", "null"];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
readonly required: readonly ["label", "value"];
|
|
38
|
+
readonly additionalProperties: false;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
25
41
|
readonly conditionalFormatting: {
|
|
26
42
|
readonly type: "object";
|
|
27
43
|
readonly properties: {
|
|
@@ -170,13 +186,13 @@ export declare const litCaseVariablesTabRowsSchema: {
|
|
|
170
186
|
};
|
|
171
187
|
};
|
|
172
188
|
readonly patternProperties: {
|
|
173
|
-
readonly '^headerName_(cs|en|de|sk|pl|hu|fr|it|es)$': {
|
|
189
|
+
readonly '^headerName_(cs|en|de|sk|pl|hu|fr|it|es|sr)$': {
|
|
174
190
|
readonly type: "string";
|
|
175
191
|
};
|
|
176
|
-
readonly '^tooltip_(cs|en|de|sk|pl|hu|fr|it|es)$': {
|
|
192
|
+
readonly '^tooltip_(cs|en|de|sk|pl|hu|fr|it|es|sr)$': {
|
|
177
193
|
readonly type: "string";
|
|
178
194
|
};
|
|
179
|
-
readonly '^value_(cs|en|de|sk|pl|hu|fr|it|es)$': {
|
|
195
|
+
readonly '^value_(cs|en|de|sk|pl|hu|fr|it|es|sr)$': {
|
|
180
196
|
readonly oneOf: readonly [{
|
|
181
197
|
readonly type: "string";
|
|
182
198
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-case-variables-tab-rows.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/lit-case-variables-tab-rows.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"lit-case-variables-tab-rows.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/lit-case-variables-tab-rows.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGhC,CAAC"}
|
|
@@ -18,7 +18,7 @@ export declare const litCaseVariablesTabSchema: {
|
|
|
18
18
|
};
|
|
19
19
|
readonly type: {
|
|
20
20
|
readonly type: "string";
|
|
21
|
-
readonly enum: readonly ["string", "button", "link", "date", "currency", "progress", "number"];
|
|
21
|
+
readonly enum: readonly ["string", "button", "link", "date", "currency", "progress", "number", "select"];
|
|
22
22
|
};
|
|
23
23
|
readonly headerName: {
|
|
24
24
|
readonly type: "string";
|
|
@@ -32,6 +32,22 @@ export declare const litCaseVariablesTabSchema: {
|
|
|
32
32
|
readonly type: "null";
|
|
33
33
|
}];
|
|
34
34
|
};
|
|
35
|
+
readonly options: {
|
|
36
|
+
readonly type: "array";
|
|
37
|
+
readonly items: {
|
|
38
|
+
readonly type: "object";
|
|
39
|
+
readonly properties: {
|
|
40
|
+
readonly label: {
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
};
|
|
43
|
+
readonly value: {
|
|
44
|
+
readonly type: readonly ["string", "number", "null"];
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
readonly required: readonly ["label", "value"];
|
|
48
|
+
readonly additionalProperties: false;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
35
51
|
readonly conditionalFormatting: {
|
|
36
52
|
readonly type: "object";
|
|
37
53
|
readonly properties: {
|
|
@@ -180,13 +196,13 @@ export declare const litCaseVariablesTabSchema: {
|
|
|
180
196
|
};
|
|
181
197
|
};
|
|
182
198
|
readonly patternProperties: {
|
|
183
|
-
readonly '^headerName_(cs|en|de|sk|pl|hu|fr|it|es)$': {
|
|
199
|
+
readonly '^headerName_(cs|en|de|sk|pl|hu|fr|it|es|sr)$': {
|
|
184
200
|
readonly type: "string";
|
|
185
201
|
};
|
|
186
|
-
readonly '^tooltip_(cs|en|de|sk|pl|hu|fr|it|es)$': {
|
|
202
|
+
readonly '^tooltip_(cs|en|de|sk|pl|hu|fr|it|es|sr)$': {
|
|
187
203
|
readonly type: "string";
|
|
188
204
|
};
|
|
189
|
-
readonly '^value_(cs|en|de|sk|pl|hu|fr|it|es)$': {
|
|
205
|
+
readonly '^value_(cs|en|de|sk|pl|hu|fr|it|es|sr)$': {
|
|
190
206
|
readonly oneOf: readonly [{
|
|
191
207
|
readonly type: "string";
|
|
192
208
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-case-variables-tab.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/lit-case-variables-tab.schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"lit-case-variables-tab.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/lit-case-variables-tab.schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqB5B,CAAC"}
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
|
+
import { Cell } from '../components';
|
|
1
2
|
export declare function debounce(func: Function, delay?: number): (this: any, ...args: any[]) => void;
|
|
3
|
+
export declare enum IvarType {
|
|
4
|
+
TEXT = "T",
|
|
5
|
+
LIST_TEXT = "LT",
|
|
6
|
+
DATE = "D",
|
|
7
|
+
LIST_DATE = "LD",
|
|
8
|
+
NUMBER = "N",
|
|
9
|
+
LIST_NUMBER = "LN",
|
|
10
|
+
DYNAMIC_LIST = "DL",
|
|
11
|
+
DYNAMIC_TABLE = "DT",
|
|
12
|
+
DYNAMIC_ROWS = "DR"
|
|
13
|
+
}
|
|
14
|
+
export declare function convertDataToVariables(data: Record<string, any>): Cell[];
|
|
2
15
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGrC,wBAAgB,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,GAAE,MAAY,IAGvC,MAAM,GAAG,EAAE,GAAG,MAAM,GAAG,EAAE,UAS7C;AAGD,oBAAY,QAAQ;IAChB,IAAI,MAAM;IACV,SAAS,OAAO;IAChB,IAAI,MAAM;IACV,SAAS,OAAO;IAChB,MAAM,MAAM;IACZ,WAAW,OAAO;IAClB,YAAY,OAAO;IACnB,aAAa,OAAO;IACpB,YAAY,OAAO;CACtB;AAGD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,EAAE,CAmExE"}
|
package/dist/utils/utils.js
CHANGED
|
@@ -10,4 +10,77 @@ export function debounce(func, delay = 500) {
|
|
|
10
10
|
}, delay);
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
+
// Define IvarType enum for better type safety
|
|
14
|
+
export var IvarType;
|
|
15
|
+
(function (IvarType) {
|
|
16
|
+
IvarType["TEXT"] = "T";
|
|
17
|
+
IvarType["LIST_TEXT"] = "LT";
|
|
18
|
+
IvarType["DATE"] = "D";
|
|
19
|
+
IvarType["LIST_DATE"] = "LD";
|
|
20
|
+
IvarType["NUMBER"] = "N";
|
|
21
|
+
IvarType["LIST_NUMBER"] = "LN";
|
|
22
|
+
IvarType["DYNAMIC_LIST"] = "DL";
|
|
23
|
+
IvarType["DYNAMIC_TABLE"] = "DT";
|
|
24
|
+
IvarType["DYNAMIC_ROWS"] = "DR";
|
|
25
|
+
})(IvarType || (IvarType = {}));
|
|
26
|
+
// Conversion function to transform data variables from Tas to Cell[] format
|
|
27
|
+
export function convertDataToVariables(data) {
|
|
28
|
+
return Object.keys(data).map((key) => {
|
|
29
|
+
const item = data[key];
|
|
30
|
+
// Determine proper cell type based on ivar_type/tvar_type (same logic as getOperatorOptionsForCell)
|
|
31
|
+
let type = 'string';
|
|
32
|
+
const ivarType = item.ivar_type || item.tvar_type;
|
|
33
|
+
const meta = item.tvar_meta ? JSON.parse(item.tvar_meta) : {};
|
|
34
|
+
if (ivarType) {
|
|
35
|
+
switch (ivarType) {
|
|
36
|
+
case IvarType.NUMBER:
|
|
37
|
+
// Check if it's currency based on additional properties
|
|
38
|
+
if (meta.isCurrency === true) {
|
|
39
|
+
type = 'currency';
|
|
40
|
+
}
|
|
41
|
+
else if (meta.isCheckbox) {
|
|
42
|
+
type = 'select';
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
type = 'number';
|
|
46
|
+
}
|
|
47
|
+
break;
|
|
48
|
+
case IvarType.DATE:
|
|
49
|
+
case IvarType.LIST_DATE:
|
|
50
|
+
type = 'date';
|
|
51
|
+
break;
|
|
52
|
+
case IvarType.LIST_TEXT:
|
|
53
|
+
case IvarType.LIST_NUMBER:
|
|
54
|
+
type = 'select';
|
|
55
|
+
break;
|
|
56
|
+
case IvarType.TEXT:
|
|
57
|
+
case IvarType.DYNAMIC_LIST:
|
|
58
|
+
case IvarType.DYNAMIC_TABLE:
|
|
59
|
+
case IvarType.DYNAMIC_ROWS:
|
|
60
|
+
default:
|
|
61
|
+
type = 'string';
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const options = meta.isCheckbox
|
|
66
|
+
? [
|
|
67
|
+
{ title: 'Yes', value: '1' },
|
|
68
|
+
{ title: 'No', value: '0' },
|
|
69
|
+
]
|
|
70
|
+
: item.ivar_lov_cs || item.tvar_lov || [];
|
|
71
|
+
return {
|
|
72
|
+
field: key,
|
|
73
|
+
headerName: item.tvar_name_cs || item.tvar_name || key,
|
|
74
|
+
value: item.ivar_value || '',
|
|
75
|
+
type,
|
|
76
|
+
options: options.map((opt) => ({
|
|
77
|
+
label: opt.title || '',
|
|
78
|
+
value: opt.value || '',
|
|
79
|
+
})),
|
|
80
|
+
tooltip: item.tvar_tooltip_cs || item.tvar_tooltip || '',
|
|
81
|
+
// Preserve all original data properties for backward compatibility
|
|
82
|
+
...item,
|
|
83
|
+
};
|
|
84
|
+
});
|
|
85
|
+
}
|
|
13
86
|
//# sourceMappingURL=utils.js.map
|
package/dist/utils/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAEA,mCAAmC;AACnC,MAAM,UAAU,QAAQ,CAAC,IAAc,EAAE,QAAgB,GAAG;IACxD,IAAI,SAAiB,CAAC;IAEtB,OAAO,UAAqB,GAAG,IAAW;QACtC,yBAAyB;QACzB,YAAY,CAAC,SAAS,CAAC,CAAC;QAExB,oBAAoB;QACpB,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE;YACxB,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;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