overview-components 1.1.81 → 1.1.83
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 +3 -7
- 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 +232 -5
- package/dist/schemas/lit-case-variables-tab.schema.d.ts.map +1 -1
- package/dist/schemas/lit-case-variables-tab.schema.js +3 -1
- package/dist/schemas/lit-case-variables-tab.schema.js.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
|
+
valueOptions: {
|
|
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,QA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,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,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 valueOptions: {
|
|
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 valueOptions: {
|
|
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,221 @@ 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)$': {
|
|
206
|
+
readonly oneOf: readonly [{
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
}, {
|
|
209
|
+
readonly type: "number";
|
|
210
|
+
}, {
|
|
211
|
+
readonly type: "null";
|
|
212
|
+
}];
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
readonly required: readonly ["field"];
|
|
216
|
+
readonly additionalProperties: false;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
readonly variables: {
|
|
220
|
+
readonly type: "array";
|
|
221
|
+
readonly items: {
|
|
222
|
+
readonly type: "object";
|
|
223
|
+
readonly properties: {
|
|
224
|
+
readonly field: {
|
|
225
|
+
readonly type: "string";
|
|
226
|
+
};
|
|
227
|
+
readonly type: {
|
|
228
|
+
readonly type: "string";
|
|
229
|
+
readonly enum: readonly ["string", "button", "link", "date", "currency", "progress", "number", "select"];
|
|
230
|
+
};
|
|
231
|
+
readonly headerName: {
|
|
232
|
+
readonly type: "string";
|
|
233
|
+
};
|
|
234
|
+
readonly value: {
|
|
235
|
+
readonly oneOf: readonly [{
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
}, {
|
|
238
|
+
readonly type: "number";
|
|
239
|
+
}, {
|
|
240
|
+
readonly type: "null";
|
|
241
|
+
}];
|
|
242
|
+
};
|
|
243
|
+
readonly valueOptions: {
|
|
244
|
+
readonly type: "array";
|
|
245
|
+
readonly items: {
|
|
246
|
+
readonly type: "object";
|
|
247
|
+
readonly properties: {
|
|
248
|
+
readonly label: {
|
|
249
|
+
readonly type: "string";
|
|
250
|
+
};
|
|
251
|
+
readonly value: {
|
|
252
|
+
readonly type: readonly ["string", "number", "null"];
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
readonly required: readonly ["label", "value"];
|
|
256
|
+
readonly additionalProperties: false;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
readonly conditionalFormatting: {
|
|
260
|
+
readonly type: "object";
|
|
261
|
+
readonly properties: {
|
|
262
|
+
readonly enabled: {
|
|
263
|
+
readonly type: "boolean";
|
|
264
|
+
};
|
|
265
|
+
readonly variable: {
|
|
266
|
+
readonly type: "string";
|
|
267
|
+
};
|
|
268
|
+
readonly operator: {
|
|
269
|
+
readonly type: "string";
|
|
270
|
+
readonly enum: readonly ["=", "!=", ">", ">=", "<", "<=", "contains", "doesNotContain", "isEmpty", "isNotEmpty", "in", "nin", "fromTo", "startsWith", "endsWith", "is", "not", "isAnyOfValue"];
|
|
271
|
+
};
|
|
272
|
+
readonly value: {
|
|
273
|
+
readonly type: "string";
|
|
274
|
+
};
|
|
275
|
+
readonly cellVariant: {
|
|
276
|
+
readonly type: "string";
|
|
277
|
+
readonly enum: readonly ["default", "primary", "success", "warning", "error", "info"];
|
|
278
|
+
};
|
|
279
|
+
readonly valueVariant: {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
readonly enum: readonly ["default", "primary", "success", "warning", "error", "info"];
|
|
282
|
+
};
|
|
283
|
+
readonly progressColor: {
|
|
284
|
+
readonly type: "string";
|
|
285
|
+
readonly enum: readonly ["primary", "success", "warning", "error", "info"];
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
readonly additionalProperties: false;
|
|
289
|
+
};
|
|
290
|
+
readonly hideCondition: {
|
|
291
|
+
readonly type: "object";
|
|
292
|
+
readonly properties: {
|
|
293
|
+
readonly enabled: {
|
|
294
|
+
readonly type: "boolean";
|
|
295
|
+
};
|
|
296
|
+
readonly variable: {
|
|
297
|
+
readonly type: "string";
|
|
298
|
+
};
|
|
299
|
+
readonly operator: {
|
|
300
|
+
readonly type: "string";
|
|
301
|
+
readonly enum: readonly ["=", "!=", ">", ">=", "<", "<=", "contains", "doesNotContain", "isEmpty", "isNotEmpty", "in", "nin", "fromTo", "startsWith", "endsWith", "is", "not", "isAnyOfValue"];
|
|
302
|
+
};
|
|
303
|
+
readonly value: {
|
|
304
|
+
readonly type: "string";
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
readonly additionalProperties: false;
|
|
308
|
+
};
|
|
309
|
+
readonly size: {
|
|
310
|
+
readonly type: "object";
|
|
311
|
+
readonly properties: {
|
|
312
|
+
readonly xs: {
|
|
313
|
+
readonly type: "integer";
|
|
314
|
+
readonly minimum: 1;
|
|
315
|
+
readonly maximum: 4;
|
|
316
|
+
};
|
|
317
|
+
readonly sm: {
|
|
318
|
+
readonly type: "integer";
|
|
319
|
+
readonly minimum: 1;
|
|
320
|
+
readonly maximum: 4;
|
|
321
|
+
};
|
|
322
|
+
readonly md: {
|
|
323
|
+
readonly type: "integer";
|
|
324
|
+
readonly minimum: 1;
|
|
325
|
+
readonly maximum: 4;
|
|
326
|
+
};
|
|
327
|
+
readonly lg: {
|
|
328
|
+
readonly type: "integer";
|
|
329
|
+
readonly minimum: 1;
|
|
330
|
+
readonly maximum: 4;
|
|
331
|
+
};
|
|
332
|
+
readonly xl: {
|
|
333
|
+
readonly type: "integer";
|
|
334
|
+
readonly minimum: 1;
|
|
335
|
+
readonly maximum: 4;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
readonly additionalProperties: false;
|
|
339
|
+
};
|
|
340
|
+
readonly buttonVariant: {
|
|
341
|
+
readonly type: "string";
|
|
342
|
+
readonly enum: readonly ["contained", "outlined", "text", "dashed"];
|
|
343
|
+
};
|
|
344
|
+
readonly buttonColor: {
|
|
345
|
+
readonly type: "string";
|
|
346
|
+
readonly enum: readonly ["primary", "secondary", "error", "warning", "ai"];
|
|
347
|
+
};
|
|
348
|
+
readonly buttonFullWidth: {
|
|
349
|
+
readonly type: "boolean";
|
|
350
|
+
};
|
|
351
|
+
readonly href: {
|
|
352
|
+
readonly type: "string";
|
|
353
|
+
};
|
|
354
|
+
readonly linkType: {
|
|
355
|
+
readonly type: "string";
|
|
356
|
+
readonly enum: readonly ["custom", "dynamic"];
|
|
357
|
+
};
|
|
358
|
+
readonly linkVariable: {
|
|
359
|
+
readonly type: "string";
|
|
360
|
+
};
|
|
361
|
+
readonly headerStyle: {
|
|
362
|
+
readonly type: readonly ["object"];
|
|
363
|
+
readonly additionalProperties: true;
|
|
364
|
+
};
|
|
365
|
+
readonly valueStyle: {
|
|
366
|
+
readonly type: readonly ["object"];
|
|
367
|
+
readonly additionalProperties: true;
|
|
368
|
+
};
|
|
369
|
+
readonly cellStyle: {
|
|
370
|
+
readonly type: readonly ["object"];
|
|
371
|
+
readonly additionalProperties: true;
|
|
372
|
+
};
|
|
373
|
+
readonly cellVariant: {
|
|
374
|
+
readonly type: "string";
|
|
375
|
+
readonly enum: readonly ["default", "primary", "success", "warning", "error", "info"];
|
|
376
|
+
};
|
|
377
|
+
readonly valueVariant: {
|
|
378
|
+
readonly type: "string";
|
|
379
|
+
readonly enum: readonly ["default", "primary", "success", "warning", "error", "info"];
|
|
380
|
+
};
|
|
381
|
+
readonly cellCustomStyles: {
|
|
382
|
+
readonly type: "boolean";
|
|
383
|
+
};
|
|
384
|
+
readonly valueCustomStyles: {
|
|
385
|
+
readonly type: "boolean";
|
|
386
|
+
};
|
|
387
|
+
readonly fontWeight: {
|
|
388
|
+
readonly type: "string";
|
|
389
|
+
readonly enum: readonly ["normal", "bold", "500", "600", "700"];
|
|
390
|
+
};
|
|
391
|
+
readonly tooltip: {
|
|
392
|
+
readonly type: readonly ["string"];
|
|
393
|
+
};
|
|
394
|
+
readonly currencyType: {
|
|
395
|
+
readonly type: "string";
|
|
396
|
+
readonly enum: readonly ["CZK", "EUR", "USD", "GBP", "CHF", "PLN", "HUF", "JPY", "AUD", "CAD", "NOK", "SEK", "DKK", "CNY", "RUB"];
|
|
397
|
+
};
|
|
398
|
+
readonly numberOfDecimal: {
|
|
399
|
+
readonly type: "number";
|
|
400
|
+
};
|
|
401
|
+
readonly progressColor: {
|
|
402
|
+
readonly type: "string";
|
|
403
|
+
readonly enum: readonly ["primary", "success", "warning", "error", "info"];
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
readonly patternProperties: {
|
|
407
|
+
readonly '^headerName_(cs|en|de|sk|pl|hu|fr|it|es|sr)$': {
|
|
408
|
+
readonly type: "string";
|
|
409
|
+
};
|
|
410
|
+
readonly '^tooltip_(cs|en|de|sk|pl|hu|fr|it|es|sr)$': {
|
|
411
|
+
readonly type: "string";
|
|
412
|
+
};
|
|
413
|
+
readonly '^value_(cs|en|de|sk|pl|hu|fr|it|es|sr)$': {
|
|
190
414
|
readonly oneOf: readonly [{
|
|
191
415
|
readonly type: "string";
|
|
192
416
|
}, {
|
|
@@ -205,7 +429,7 @@ export declare const litCaseVariablesTabSchema: {
|
|
|
205
429
|
};
|
|
206
430
|
readonly userLang: {
|
|
207
431
|
readonly type: "string";
|
|
208
|
-
readonly enum: readonly ["cs", "en", "de", "sk", "pl", "hu", "fr", "it", "es"];
|
|
432
|
+
readonly enum: readonly ["cs", "en", "de", "sk", "pl", "hu", "fr", "it", "es", "sr"];
|
|
209
433
|
};
|
|
210
434
|
readonly dateFormat: {
|
|
211
435
|
readonly type: "string";
|
|
@@ -217,6 +441,9 @@ export declare const litCaseVariablesTabSchema: {
|
|
|
217
441
|
readonly enableSettings: {
|
|
218
442
|
readonly type: readonly ["boolean"];
|
|
219
443
|
};
|
|
444
|
+
readonly gridVariables: {
|
|
445
|
+
readonly type: readonly ["boolean"];
|
|
446
|
+
};
|
|
220
447
|
};
|
|
221
448
|
readonly required: readonly ["tabId"];
|
|
222
449
|
readonly additionalProperties: false;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuB5B,CAAC"}
|
|
@@ -6,10 +6,11 @@ export const litCaseVariablesTabSchema = {
|
|
|
6
6
|
tabId: { type: 'string' },
|
|
7
7
|
data: { type: 'object', additionalProperties: true },
|
|
8
8
|
rows: litCaseVariablesTabRowsSchema,
|
|
9
|
+
variables: litCaseVariablesTabRowsSchema,
|
|
9
10
|
hideTabWhen: { type: ['boolean'] },
|
|
10
11
|
userLang: {
|
|
11
12
|
type: 'string',
|
|
12
|
-
enum: ['cs', 'en', 'de', 'sk', 'pl', 'hu', 'fr', 'it', 'es'],
|
|
13
|
+
enum: ['cs', 'en', 'de', 'sk', 'pl', 'hu', 'fr', 'it', 'es', 'sr'],
|
|
13
14
|
},
|
|
14
15
|
dateFormat: {
|
|
15
16
|
type: 'string',
|
|
@@ -17,6 +18,7 @@ export const litCaseVariablesTabSchema = {
|
|
|
17
18
|
},
|
|
18
19
|
isLoading: { type: ['boolean'] },
|
|
19
20
|
enableSettings: { type: ['boolean'] },
|
|
21
|
+
gridVariables: { type: ['boolean'] },
|
|
20
22
|
// onSettingsChanged: can't be validated (function)
|
|
21
23
|
},
|
|
22
24
|
required: ['tabId'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-case-variables-tab.schema.js","sourceRoot":"","sources":["../../src/schemas/lit-case-variables-tab.schema.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAExF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE;QACpD,IAAI,EAAE,6BAA6B;QACnC,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;QAClC,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"lit-case-variables-tab.schema.js","sourceRoot":"","sources":["../../src/schemas/lit-case-variables-tab.schema.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAExF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE;QACpD,IAAI,EAAE,6BAA6B;QACnC,SAAS,EAAE,6BAA6B;QACxC,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;QAClC,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;SACrE;QACD,UAAU,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC;SACnF;QACD,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;QAChC,cAAc,EAAE,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;QACrC,aAAa,EAAE,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,EAAE;QACpC,mDAAmD;KACtD;IACD,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,oBAAoB,EAAE,KAAK;CACrB,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
|
+
valueOptions: 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;QAC3B,CAAC,EAAE,KAAK,CAAsB,CAAC;IACnC,CAAC,CAAC;AACN,CAAC;AAED,8CAA8C;AAC9C,MAAM,CAAN,IAAY,QAUX;AAVD,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