@gct-paas/schema 0.1.4-dev.11 → 0.1.4-dev.13
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/index.esm.min.js +941 -0
- package/es/constants/index.d.ts +14 -0
- package/es/constants/index.mjs +408 -368
- package/es/index.mjs +10 -12
- package/es/interface/index.d.ts +1 -0
- package/es/interface/relationship-diagram-config/i-relationship-diagram-node.d.ts +82 -0
- package/es/interface/relationship-diagram-config/i-rule-config.d.ts +135 -0
- package/es/interface/relationship-diagram-config/index.d.ts +2 -0
- package/es/utils/index.mjs +4 -0
- package/es/utils/schema/index.mjs +113 -105
- package/es/utils/schema/search.mjs +144 -153
- package/es/utils/schema/utils.mjs +176 -278
- package/es/utils/schema-style/index.mjs +203 -127
- package/es/utils/widget-info/widget-info.mjs +130 -57
- package/package.json +6 -6
- package/dist/index.esm.min.mjs +0 -1085
- package/dist/index.min.cjs +0 -1
- package/dist/index.system.min.js +0 -1
|
@@ -0,0 +1,941 @@
|
|
|
1
|
+
import { EntityFormulaReturnTypeEnum as e, FIELD_TYPE as t, FieldIconMap as n, FormComponents as r, MaterialEnum as i, Platform as a, ReturnTypeEnum as o, SEARCH_SERVICE as s, SearchComponents as c, TreeHelper as l, buildShortUUID as u, t as d } from "@gct-paas/core";
|
|
2
|
+
import { cloneDeep as f, has as p, isEmpty as m, isNil as h, merge as g, pick as _ } from "lodash-es";
|
|
3
|
+
//#region src/utils/widget-info/widget-info.ts
|
|
4
|
+
var v = class {
|
|
5
|
+
events = {};
|
|
6
|
+
propEditors = {};
|
|
7
|
+
schema = {};
|
|
8
|
+
callback = {};
|
|
9
|
+
beforeCreate = {};
|
|
10
|
+
styleEditors = {};
|
|
11
|
+
designerConfig = {};
|
|
12
|
+
hooks = {};
|
|
13
|
+
whiteList = {};
|
|
14
|
+
blackList = {};
|
|
15
|
+
}, y = new v(), b = new v(), x = new v();
|
|
16
|
+
function S(e) {
|
|
17
|
+
switch (e) {
|
|
18
|
+
case a.WEB: return y;
|
|
19
|
+
case a.MOBILE: return b;
|
|
20
|
+
case a.PAD: return x;
|
|
21
|
+
default: return y;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function C(e, t, n) {
|
|
25
|
+
e.events[t] = n.eventList, e.hooks[t] = n.hooks, e.whiteList[t] = n.whiteList, e.blackList[t] = n.blackList, e.propEditors[t] = n.propEditorList, e.schema[t] = n.widget, e.callback[t] = n.runCallback, e.beforeCreate[t] = n.beforeCreate, e.styleEditors[t] = n.styleEditorList, e.designerConfig[t] = n.designerConfig;
|
|
26
|
+
}
|
|
27
|
+
function ee(e, t) {
|
|
28
|
+
C(y, t, e);
|
|
29
|
+
}
|
|
30
|
+
function w(e, t) {
|
|
31
|
+
C(b, t, e);
|
|
32
|
+
}
|
|
33
|
+
function T(e, t) {
|
|
34
|
+
C(x, t, e);
|
|
35
|
+
}
|
|
36
|
+
function E(e, t) {
|
|
37
|
+
if (t) {
|
|
38
|
+
let { type: n } = t.schema;
|
|
39
|
+
e.events[n] = t.events, e.hooks[n] = t.hooks, e.whiteList[n] = t.whiteList, e.blackList[n] = t.blackList, e.propEditors[n] = t.propEditors, e.schema[n] = t.schema, e.callback[n] = t.callback, e.beforeCreate[n] = t.beforeCreate, e.styleEditors[n] = t.styleEditors, e.designerConfig[n] = t.designerConfig;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function D(e) {
|
|
43
|
+
E(y, e);
|
|
44
|
+
}
|
|
45
|
+
function te(e) {
|
|
46
|
+
E(b, e);
|
|
47
|
+
}
|
|
48
|
+
function O(e) {
|
|
49
|
+
E(x, e);
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/constants/index.ts
|
|
53
|
+
var k = [
|
|
54
|
+
t.TEXT,
|
|
55
|
+
t.LONG_TEXT,
|
|
56
|
+
t.INTEGER,
|
|
57
|
+
t.LONG,
|
|
58
|
+
t.DOUBLE,
|
|
59
|
+
t.DECIMAL,
|
|
60
|
+
t.BOOLEAN,
|
|
61
|
+
t.DATE,
|
|
62
|
+
t.TIME,
|
|
63
|
+
t.DATE_TIME,
|
|
64
|
+
t.USER,
|
|
65
|
+
t.USER_MULTI,
|
|
66
|
+
t.SERIAL
|
|
67
|
+
], A = {
|
|
68
|
+
[r.Datepicker]: [
|
|
69
|
+
{
|
|
70
|
+
label: "yyyy",
|
|
71
|
+
value: "YYYY"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: "yyyy-MM",
|
|
75
|
+
value: "YYYY-MM"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: "yyyy-MM-dd",
|
|
79
|
+
value: "YYYY-MM-DD"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
[r.DateTimepicker]: [
|
|
83
|
+
{
|
|
84
|
+
label: "yyyy-MM-dd HH",
|
|
85
|
+
value: "YYYY-MM-DD HH"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
label: "yyyy-MM-dd HH:mm",
|
|
89
|
+
value: "YYYY-MM-DD HH:mm"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
label: "yyyy-MM-dd HH:mm:ss",
|
|
93
|
+
value: "YYYY-MM-DD HH:mm:ss"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
[r.Timepicker]: [
|
|
97
|
+
{
|
|
98
|
+
label: "HH",
|
|
99
|
+
value: "HH"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
label: "HH:mm",
|
|
103
|
+
value: "HH:mm"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
label: "HH:mm:ss",
|
|
107
|
+
value: "HH:mm:ss"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}, j = {
|
|
111
|
+
[t.PRIMARY_KEY]: {
|
|
112
|
+
filter: [
|
|
113
|
+
s.EQ,
|
|
114
|
+
s.NE,
|
|
115
|
+
s.IN,
|
|
116
|
+
s.NOTIN
|
|
117
|
+
],
|
|
118
|
+
default: [s.EQ],
|
|
119
|
+
noRangDefaultExp: s.EQ
|
|
120
|
+
},
|
|
121
|
+
[t.TEXT]: {
|
|
122
|
+
filter: [
|
|
123
|
+
s.EQ,
|
|
124
|
+
s.IEQ,
|
|
125
|
+
s.NE,
|
|
126
|
+
s.INE,
|
|
127
|
+
s.LIKE,
|
|
128
|
+
s.ILIKE,
|
|
129
|
+
s.NOTLIKE,
|
|
130
|
+
s.NOTILIKE,
|
|
131
|
+
s.LEFTLIKE,
|
|
132
|
+
s.ILEFTLIKE,
|
|
133
|
+
s.RIGHTLIKE,
|
|
134
|
+
s.IRIGHTLIKE
|
|
135
|
+
],
|
|
136
|
+
default: [s.LIKE],
|
|
137
|
+
noRangDefaultExp: s.LIKE
|
|
138
|
+
},
|
|
139
|
+
[t.LONG_TEXT]: {
|
|
140
|
+
filter: [
|
|
141
|
+
s.EQ,
|
|
142
|
+
s.IEQ,
|
|
143
|
+
s.NE,
|
|
144
|
+
s.INE,
|
|
145
|
+
s.LIKE,
|
|
146
|
+
s.ILIKE,
|
|
147
|
+
s.NOTLIKE,
|
|
148
|
+
s.NOTILIKE,
|
|
149
|
+
s.LEFTLIKE,
|
|
150
|
+
s.ILEFTLIKE,
|
|
151
|
+
s.RIGHTLIKE,
|
|
152
|
+
s.IRIGHTLIKE
|
|
153
|
+
],
|
|
154
|
+
default: [s.LIKE],
|
|
155
|
+
noRangDefaultExp: s.LIKE
|
|
156
|
+
},
|
|
157
|
+
[t.SERIAL]: {
|
|
158
|
+
filter: [
|
|
159
|
+
s.EQ,
|
|
160
|
+
s.IEQ,
|
|
161
|
+
s.NE,
|
|
162
|
+
s.INE,
|
|
163
|
+
s.LIKE,
|
|
164
|
+
s.ILIKE,
|
|
165
|
+
s.NOTLIKE,
|
|
166
|
+
s.NOTILIKE,
|
|
167
|
+
s.LEFTLIKE,
|
|
168
|
+
s.ILEFTLIKE,
|
|
169
|
+
s.RIGHTLIKE,
|
|
170
|
+
s.IRIGHTLIKE
|
|
171
|
+
],
|
|
172
|
+
default: [s.LIKE],
|
|
173
|
+
noRangDefaultExp: s.LIKE
|
|
174
|
+
},
|
|
175
|
+
[t.INTEGER]: {
|
|
176
|
+
filter: [
|
|
177
|
+
s.EQ,
|
|
178
|
+
s.NE,
|
|
179
|
+
s.GT,
|
|
180
|
+
s.GE,
|
|
181
|
+
s.LT,
|
|
182
|
+
s.LE
|
|
183
|
+
],
|
|
184
|
+
contain: ["rangtype"],
|
|
185
|
+
default: [s.RANGE],
|
|
186
|
+
noRangDefaultExp: s.EQ
|
|
187
|
+
},
|
|
188
|
+
[t.LONG]: {
|
|
189
|
+
filter: [
|
|
190
|
+
s.EQ,
|
|
191
|
+
s.NE,
|
|
192
|
+
s.GT,
|
|
193
|
+
s.GE,
|
|
194
|
+
s.LT,
|
|
195
|
+
s.LE
|
|
196
|
+
],
|
|
197
|
+
contain: ["rangtype"],
|
|
198
|
+
default: [s.RANGE],
|
|
199
|
+
noRangDefaultExp: s.EQ
|
|
200
|
+
},
|
|
201
|
+
[t.DECIMAL]: {
|
|
202
|
+
filter: [
|
|
203
|
+
s.EQ,
|
|
204
|
+
s.NE,
|
|
205
|
+
s.GT,
|
|
206
|
+
s.GE,
|
|
207
|
+
s.LT,
|
|
208
|
+
s.LE
|
|
209
|
+
],
|
|
210
|
+
contain: ["rangtype"],
|
|
211
|
+
default: [s.RANGE],
|
|
212
|
+
noRangDefaultExp: s.EQ
|
|
213
|
+
},
|
|
214
|
+
[t.DOUBLE]: {
|
|
215
|
+
filter: [
|
|
216
|
+
s.EQ,
|
|
217
|
+
s.NE,
|
|
218
|
+
s.GT,
|
|
219
|
+
s.GE,
|
|
220
|
+
s.LT,
|
|
221
|
+
s.LE
|
|
222
|
+
],
|
|
223
|
+
contain: ["rangtype"],
|
|
224
|
+
default: [s.RANGE],
|
|
225
|
+
noRangDefaultExp: s.EQ
|
|
226
|
+
},
|
|
227
|
+
[t.BOOLEAN]: {
|
|
228
|
+
filter: [s.EQ],
|
|
229
|
+
default: [s.EQ],
|
|
230
|
+
noRangDefaultExp: s.EQ
|
|
231
|
+
},
|
|
232
|
+
[t.DATE]: {
|
|
233
|
+
filter: [
|
|
234
|
+
s.EQ,
|
|
235
|
+
s.NE,
|
|
236
|
+
s.GT,
|
|
237
|
+
s.GE,
|
|
238
|
+
s.LT,
|
|
239
|
+
s.LE
|
|
240
|
+
],
|
|
241
|
+
contain: ["rangtype", "more"],
|
|
242
|
+
default: [s.RANGE],
|
|
243
|
+
noRangDefaultExp: s.EQ
|
|
244
|
+
},
|
|
245
|
+
[t.TIME]: {
|
|
246
|
+
filter: [
|
|
247
|
+
s.EQ,
|
|
248
|
+
s.NE,
|
|
249
|
+
s.GT,
|
|
250
|
+
s.GE,
|
|
251
|
+
s.LT,
|
|
252
|
+
s.LE
|
|
253
|
+
],
|
|
254
|
+
contain: ["rangtype", "more"],
|
|
255
|
+
default: [s.RANGE],
|
|
256
|
+
noRangDefaultExp: s.EQ
|
|
257
|
+
},
|
|
258
|
+
[t.DATE_TIME]: {
|
|
259
|
+
filter: [
|
|
260
|
+
s.EQ,
|
|
261
|
+
s.NE,
|
|
262
|
+
s.GT,
|
|
263
|
+
s.GE,
|
|
264
|
+
s.LT,
|
|
265
|
+
s.LE
|
|
266
|
+
],
|
|
267
|
+
contain: ["rangtype", "more"],
|
|
268
|
+
default: [s.RANGE],
|
|
269
|
+
noRangDefaultExp: s.EQ
|
|
270
|
+
},
|
|
271
|
+
[t.ENUM]: {
|
|
272
|
+
filter: [
|
|
273
|
+
s.EQ,
|
|
274
|
+
s.NE,
|
|
275
|
+
s.IN,
|
|
276
|
+
s.NOTIN
|
|
277
|
+
],
|
|
278
|
+
contain: ["more", "ignoreCase"],
|
|
279
|
+
default: [s.EQ],
|
|
280
|
+
noRangDefaultExp: s.EQ
|
|
281
|
+
},
|
|
282
|
+
[t.ENUM_MULTI]: {
|
|
283
|
+
filter: [s.CONTAINANY, s.CONTAINALL],
|
|
284
|
+
contain: ["more", "ignoreCase"],
|
|
285
|
+
default: [s.CONTAINANY],
|
|
286
|
+
noRangDefaultExp: s.CONTAINANY
|
|
287
|
+
},
|
|
288
|
+
[t.OPTION]: {
|
|
289
|
+
filter: [s.EQ, s.NE],
|
|
290
|
+
contain: ["more"],
|
|
291
|
+
default: [s.EQ],
|
|
292
|
+
noRangDefaultExp: s.EQ
|
|
293
|
+
},
|
|
294
|
+
[t.OPTION_MULTI]: {
|
|
295
|
+
filter: [s.CONTAINANY, s.CONTAINALL],
|
|
296
|
+
contain: ["more"],
|
|
297
|
+
default: [s.CONTAINANY],
|
|
298
|
+
noRangDefaultExp: s.CONTAINANY
|
|
299
|
+
},
|
|
300
|
+
[t.USER]: {
|
|
301
|
+
filter: [
|
|
302
|
+
s.EQ,
|
|
303
|
+
s.NE,
|
|
304
|
+
s.IN,
|
|
305
|
+
s.NOTIN
|
|
306
|
+
],
|
|
307
|
+
contain: ["more", "ignoreCase"],
|
|
308
|
+
default: [s.EQ]
|
|
309
|
+
},
|
|
310
|
+
[t.USER_MULTI]: {
|
|
311
|
+
filter: [s.CONTAINANY, s.CONTAINALL],
|
|
312
|
+
contain: ["more", "ignoreCase"],
|
|
313
|
+
default: [s.CONTAINANY],
|
|
314
|
+
noRangDefaultExp: s.CONTAINANY
|
|
315
|
+
},
|
|
316
|
+
[t.ORG]: {
|
|
317
|
+
filter: [
|
|
318
|
+
s.EQ,
|
|
319
|
+
s.NE,
|
|
320
|
+
s.IN,
|
|
321
|
+
s.NOTIN
|
|
322
|
+
],
|
|
323
|
+
contain: ["more", "ignoreCase"],
|
|
324
|
+
default: [s.EQ],
|
|
325
|
+
noRangDefaultExp: s.EQ
|
|
326
|
+
},
|
|
327
|
+
[t.ORG_MULTI]: {
|
|
328
|
+
filter: [s.CONTAINANY, s.CONTAINALL],
|
|
329
|
+
contain: ["more", "ignoreCase"],
|
|
330
|
+
default: [s.CONTAINANY],
|
|
331
|
+
noRangDefaultExp: s.CONTAINANY
|
|
332
|
+
},
|
|
333
|
+
[t.REF_MULTI]: {
|
|
334
|
+
filter: [s.CONTAINANY, s.CONTAINALL],
|
|
335
|
+
contain: ["more", "ignoreCase"],
|
|
336
|
+
default: [s.CONTAINANY],
|
|
337
|
+
noRangDefaultExp: s.CONTAINANY
|
|
338
|
+
},
|
|
339
|
+
[t.ASSOCIATED_PRIMARY_KEY]: {
|
|
340
|
+
filter: [
|
|
341
|
+
s.EQ,
|
|
342
|
+
s.NE,
|
|
343
|
+
s.IN,
|
|
344
|
+
s.NOTIN
|
|
345
|
+
],
|
|
346
|
+
contain: ["more"],
|
|
347
|
+
default: [s.EQ],
|
|
348
|
+
noRangDefaultExp: s.EQ
|
|
349
|
+
},
|
|
350
|
+
[t.REF]: {
|
|
351
|
+
filter: [
|
|
352
|
+
s.EQ,
|
|
353
|
+
s.NE,
|
|
354
|
+
s.IN,
|
|
355
|
+
s.NOTIN
|
|
356
|
+
],
|
|
357
|
+
contain: ["more", "ignoreCase"],
|
|
358
|
+
default: [s.EQ],
|
|
359
|
+
noRangDefaultExp: s.EQ
|
|
360
|
+
},
|
|
361
|
+
[t.RDO_REF]: {
|
|
362
|
+
filter: [
|
|
363
|
+
s.VERSIONEQ,
|
|
364
|
+
s.VERSIONNE,
|
|
365
|
+
s.VERSIONIN,
|
|
366
|
+
s.VERSIONNOTIN
|
|
367
|
+
],
|
|
368
|
+
contain: ["more", "ignoreCase"],
|
|
369
|
+
default: [s.VERSIONIN],
|
|
370
|
+
noRangDefaultExp: s.VERSIONIN
|
|
371
|
+
},
|
|
372
|
+
[t.E_DHR_TEMPLATE]: {
|
|
373
|
+
filter: [s.VERSIONIN],
|
|
374
|
+
contain: ["more"],
|
|
375
|
+
default: [s.VERSIONIN],
|
|
376
|
+
noRangDefaultExp: s.VERSIONIN
|
|
377
|
+
},
|
|
378
|
+
[t.ONLINE_FORM_TEMPLATE]: {
|
|
379
|
+
filter: [s.VERSIONIN],
|
|
380
|
+
contain: ["more"],
|
|
381
|
+
default: [s.VERSIONIN],
|
|
382
|
+
noRangDefaultExp: s.VERSIONIN
|
|
383
|
+
},
|
|
384
|
+
[t.TRANSACTION]: {
|
|
385
|
+
filter: [
|
|
386
|
+
s.EQ,
|
|
387
|
+
s.NE,
|
|
388
|
+
s.IN,
|
|
389
|
+
s.NOTIN
|
|
390
|
+
],
|
|
391
|
+
contain: ["more", "ignoreCase"],
|
|
392
|
+
default: [s.EQ],
|
|
393
|
+
noRangDefaultExp: s.EQ
|
|
394
|
+
},
|
|
395
|
+
[t.PRINTER]: {
|
|
396
|
+
filter: [
|
|
397
|
+
s.EQ,
|
|
398
|
+
s.NE,
|
|
399
|
+
s.IN,
|
|
400
|
+
s.NOTIN
|
|
401
|
+
],
|
|
402
|
+
contain: ["more", "ignoreCase"],
|
|
403
|
+
default: [s.EQ],
|
|
404
|
+
noRangDefaultExp: s.EQ
|
|
405
|
+
},
|
|
406
|
+
[t.LABEL_TEMPLATE_REF]: {
|
|
407
|
+
filter: [
|
|
408
|
+
s.VERSIONEQ,
|
|
409
|
+
s.VERSIONNE,
|
|
410
|
+
s.VERSIONIN,
|
|
411
|
+
s.VERSIONNOTIN
|
|
412
|
+
],
|
|
413
|
+
contain: ["more", "ignoreCase"],
|
|
414
|
+
default: [s.VERSIONIN],
|
|
415
|
+
noRangDefaultExp: s.EQ
|
|
416
|
+
},
|
|
417
|
+
document_template: {
|
|
418
|
+
filter: [s.VERSIONIN],
|
|
419
|
+
contain: ["more", "ignoreCase"],
|
|
420
|
+
default: [s.VERSIONIN],
|
|
421
|
+
noRangDefaultExp: s.EQ
|
|
422
|
+
},
|
|
423
|
+
[t.MESSAGE_TMPL]: {
|
|
424
|
+
filter: [
|
|
425
|
+
s.EQ,
|
|
426
|
+
s.NE,
|
|
427
|
+
s.IN,
|
|
428
|
+
s.NOTIN
|
|
429
|
+
],
|
|
430
|
+
default: [s.EQ],
|
|
431
|
+
noRangDefaultExp: s.EQ
|
|
432
|
+
},
|
|
433
|
+
[t.RANGE_USER]: {
|
|
434
|
+
filter: [s.CONTAINANY, s.CONTAINALL],
|
|
435
|
+
contain: ["more", "ignoreCase"],
|
|
436
|
+
default: [s.CONTAINANY],
|
|
437
|
+
noRangDefaultExp: s.CONTAINANY
|
|
438
|
+
},
|
|
439
|
+
more: { filter: [s.ISNULL, s.ISNOTNULL] },
|
|
440
|
+
rangtype: { filter: [
|
|
441
|
+
s.RANGE,
|
|
442
|
+
s.ORANGE,
|
|
443
|
+
s.RORANGE,
|
|
444
|
+
s.LORANGE
|
|
445
|
+
] },
|
|
446
|
+
[t.Biz_Process]: {
|
|
447
|
+
filter: [s.IN],
|
|
448
|
+
default: [s.IN],
|
|
449
|
+
noRangDefaultExp: s.IN
|
|
450
|
+
},
|
|
451
|
+
ignore: { filter: ["ignoreCase"] }
|
|
452
|
+
}, M = { ope: [{
|
|
453
|
+
from: "fieldType",
|
|
454
|
+
to: "ope",
|
|
455
|
+
transform: (e) => [...j[e]?.default || []]
|
|
456
|
+
}] }, N = (e) => ({
|
|
457
|
+
[t.PRIMARY_KEY]: {
|
|
458
|
+
searchCmpKey: c.SearchInput,
|
|
459
|
+
attrsTransform: []
|
|
460
|
+
},
|
|
461
|
+
[t.ASSOCIATED_PRIMARY_KEY]: {
|
|
462
|
+
searchCmpKey: c.SearchSelect,
|
|
463
|
+
attrsTransform: []
|
|
464
|
+
},
|
|
465
|
+
[t.TEXT]: {
|
|
466
|
+
searchCmpKey: c.SearchInput,
|
|
467
|
+
attrsTransform: []
|
|
468
|
+
},
|
|
469
|
+
[t.LONG_TEXT]: {
|
|
470
|
+
searchCmpKey: c.SearchInput,
|
|
471
|
+
attrsTransform: []
|
|
472
|
+
},
|
|
473
|
+
[t.SERIAL]: {
|
|
474
|
+
searchCmpKey: c.SearchInput,
|
|
475
|
+
attrsTransform: []
|
|
476
|
+
},
|
|
477
|
+
[t.DATE]: {
|
|
478
|
+
searchCmpKey: c.SearchDate,
|
|
479
|
+
attrsTransform: []
|
|
480
|
+
},
|
|
481
|
+
[t.DATE_TIME]: {
|
|
482
|
+
searchCmpKey: c.SearchDateTime,
|
|
483
|
+
attrsTransform: []
|
|
484
|
+
},
|
|
485
|
+
[t.TIME]: {
|
|
486
|
+
searchCmpKey: c.SearchTime,
|
|
487
|
+
attrsTransform: []
|
|
488
|
+
},
|
|
489
|
+
[t.INTEGER]: {
|
|
490
|
+
searchCmpKey: c.SearchNumberInput,
|
|
491
|
+
attrsTransform: []
|
|
492
|
+
},
|
|
493
|
+
[t.DOUBLE]: {
|
|
494
|
+
searchCmpKey: c.SearchStringNumberInput,
|
|
495
|
+
attrsTransform: []
|
|
496
|
+
},
|
|
497
|
+
[t.LONG]: {
|
|
498
|
+
searchCmpKey: c.SearchNumberInput,
|
|
499
|
+
attrsTransform: []
|
|
500
|
+
},
|
|
501
|
+
[t.DECIMAL]: {
|
|
502
|
+
searchCmpKey: c.SearchStringNumberInput,
|
|
503
|
+
attrsTransform: []
|
|
504
|
+
},
|
|
505
|
+
[t.BOOLEAN]: {
|
|
506
|
+
searchCmpKey: c.SearchSwitch,
|
|
507
|
+
attrsTransform: []
|
|
508
|
+
},
|
|
509
|
+
[t.ENUM]: {
|
|
510
|
+
searchCmpKey: c.SearchSelect,
|
|
511
|
+
attrsTransform: []
|
|
512
|
+
},
|
|
513
|
+
[t.ENUM_MULTI]: {
|
|
514
|
+
searchCmpKey: c.SearchSelect,
|
|
515
|
+
attrsTransform: []
|
|
516
|
+
},
|
|
517
|
+
[t.ORG_MULTI]: {
|
|
518
|
+
searchCmpKey: c.SearchSelectDepartment,
|
|
519
|
+
attrsTransform: []
|
|
520
|
+
},
|
|
521
|
+
[t.USER_MULTI]: {
|
|
522
|
+
searchCmpKey: c.SearchUserSelect,
|
|
523
|
+
attrsTransform: []
|
|
524
|
+
},
|
|
525
|
+
[t.ORG]: {
|
|
526
|
+
searchCmpKey: c.SearchSelectDepartment,
|
|
527
|
+
attrsTransform: []
|
|
528
|
+
},
|
|
529
|
+
[t.USER]: {
|
|
530
|
+
searchCmpKey: c.SearchUserSelect,
|
|
531
|
+
attrsTransform: []
|
|
532
|
+
},
|
|
533
|
+
[t.REF_MULTI]: {
|
|
534
|
+
searchCmpKey: c.SearchSelect,
|
|
535
|
+
attrsTransform: [{
|
|
536
|
+
from: "refModelType",
|
|
537
|
+
to: "refModelType"
|
|
538
|
+
}]
|
|
539
|
+
},
|
|
540
|
+
[t.REF]: {
|
|
541
|
+
searchCmpKey: c.SearchSelect,
|
|
542
|
+
attrsTransform: [{
|
|
543
|
+
from: "refModelType",
|
|
544
|
+
to: "refModelType"
|
|
545
|
+
}]
|
|
546
|
+
},
|
|
547
|
+
[t.RDO_REF]: {
|
|
548
|
+
searchCmpKey: c.SearchRdoSelect,
|
|
549
|
+
attrsTransform: []
|
|
550
|
+
},
|
|
551
|
+
[t.TRANSACTION]: {
|
|
552
|
+
searchCmpKey: c.SearchTransaction,
|
|
553
|
+
attrsTransform: []
|
|
554
|
+
},
|
|
555
|
+
[t.PRINTER]: {
|
|
556
|
+
searchCmpKey: c.SearchPrinter,
|
|
557
|
+
attrsTransform: []
|
|
558
|
+
},
|
|
559
|
+
[t.RANGE_USER]: {
|
|
560
|
+
searchCmpKey: c.SearchSelectRangUser,
|
|
561
|
+
attrsTransform: []
|
|
562
|
+
},
|
|
563
|
+
[t.MESSAGE_TMPL]: {
|
|
564
|
+
searchCmpKey: c.SearchSelect,
|
|
565
|
+
attrsTransform: []
|
|
566
|
+
},
|
|
567
|
+
[t.LABEL_TEMPLATE_REF]: {
|
|
568
|
+
searchCmpKey: c.SearchTmplTreeSelect,
|
|
569
|
+
attrsTransform: []
|
|
570
|
+
},
|
|
571
|
+
[t.DOCUMENT_TEMPLATE]: {
|
|
572
|
+
searchCmpKey: c.SearchTmplTreeSelect,
|
|
573
|
+
attrsTransform: []
|
|
574
|
+
},
|
|
575
|
+
[t.ONLINE_FORM_TEMPLATE]: {
|
|
576
|
+
searchCmpKey: c.SearchTmplTreeSelect,
|
|
577
|
+
attrsTransform: []
|
|
578
|
+
},
|
|
579
|
+
[t.E_DHR_TEMPLATE]: {
|
|
580
|
+
searchCmpKey: c.SearchTmplTreeSelect,
|
|
581
|
+
attrsTransform: []
|
|
582
|
+
},
|
|
583
|
+
[t.Biz_Process]: {
|
|
584
|
+
searchCmpKey: c.SearchBizProcess,
|
|
585
|
+
attrsTransform: []
|
|
586
|
+
}
|
|
587
|
+
})[e];
|
|
588
|
+
//#endregion
|
|
589
|
+
//#region src/utils/schema/utils.ts
|
|
590
|
+
function P(e = [], t = "", n = !1) {
|
|
591
|
+
return [].concat(...e.map((e) => {
|
|
592
|
+
let r = e.materialType === i.MaterialSubTableModalField ? `modalfield_${e.id}` : e.id;
|
|
593
|
+
e.path = `${t}|${/^modalBody_/.test(e.id) ? "undefined" : r}`, e.inSubTable = n || !!(/^modal_/.test(e.id) && e.props?.isSubTableModal);
|
|
594
|
+
let a = [...e.children || []];
|
|
595
|
+
return e.type === "workflow-nodes" && e.props && (e.props.specModalInfo && a.push(e.props.specModalInfo), e.props.workflowModalInfo && a.push(e.props.workflowModalInfo)), [].concat({
|
|
596
|
+
id: e.id,
|
|
597
|
+
key: r,
|
|
598
|
+
name: e.name,
|
|
599
|
+
customName: e.alias,
|
|
600
|
+
path: e.path,
|
|
601
|
+
type: e.type,
|
|
602
|
+
inSubTable: e.inSubTable
|
|
603
|
+
}, P(a, e.path, e.inSubTable ?? !1));
|
|
604
|
+
}));
|
|
605
|
+
}
|
|
606
|
+
var ne = (e) => ({
|
|
607
|
+
[t.TEXT]: { filterArr: [t.TEXT] },
|
|
608
|
+
[t.LONG_TEXT]: { filterArr: [t.TEXT, t.LONG_TEXT] },
|
|
609
|
+
[t.INTEGER]: { filterArr: [t.INTEGER] },
|
|
610
|
+
[t.LONG]: { filterArr: [t.INTEGER, t.LONG] },
|
|
611
|
+
[t.DOUBLE]: { filterArr: [t.DOUBLE, t.DECIMAL] },
|
|
612
|
+
[t.DECIMAL]: { filterArr: [t.DECIMAL] },
|
|
613
|
+
[t.BOOLEAN]: { filterArr: [t.BOOLEAN] },
|
|
614
|
+
[t.DATE]: { filterArr: [t.DATE] },
|
|
615
|
+
[t.TIME]: { filterArr: [t.TIME] },
|
|
616
|
+
[t.DATE_TIME]: { filterArr: [t.DATE_TIME] },
|
|
617
|
+
[t.IMAGE]: { filterArr: [t.IMAGE] },
|
|
618
|
+
[t.ATTACHMENT]: { filterArr: [t.ATTACHMENT] },
|
|
619
|
+
[t.MASTERSLAVE]: {
|
|
620
|
+
filterArr: [t.MASTERSLAVE],
|
|
621
|
+
equal: !0
|
|
622
|
+
},
|
|
623
|
+
[t.USER]: { filterArr: [t.USER] },
|
|
624
|
+
[t.USER_MULTI]: { filterArr: [t.USER, t.USER_MULTI] },
|
|
625
|
+
[t.ORG]: { filterArr: [t.ORG] },
|
|
626
|
+
[t.ORG_MULTI]: { filterArr: [t.ORG, t.ORG_MULTI] },
|
|
627
|
+
[t.ENUM]: {
|
|
628
|
+
filterArr: [t.ENUM],
|
|
629
|
+
equal: !0
|
|
630
|
+
},
|
|
631
|
+
[t.ENUM_MULTI]: {
|
|
632
|
+
filterArr: [t.ENUM, t.ENUM_MULTI],
|
|
633
|
+
equal: !0
|
|
634
|
+
},
|
|
635
|
+
[t.REF]: {
|
|
636
|
+
filterArr: [t.REF],
|
|
637
|
+
equal: !0
|
|
638
|
+
},
|
|
639
|
+
[t.REF_MULTI]: {
|
|
640
|
+
filterArr: [t.REF, t.REF_MULTI],
|
|
641
|
+
equal: !0
|
|
642
|
+
},
|
|
643
|
+
[t.RDO_REF]: {
|
|
644
|
+
filterArr: [t.RDO_REF],
|
|
645
|
+
equal: !0
|
|
646
|
+
},
|
|
647
|
+
[t.LABEL_TEMPLATE_REF]: { filterArr: [t.LABEL_TEMPLATE_REF] },
|
|
648
|
+
[t.DOCUMENT_TEMPLATE]: { filterArr: [t.DOCUMENT_TEMPLATE] },
|
|
649
|
+
[t.SERIALRULE]: { filterArr: [t.SERIALRULE] },
|
|
650
|
+
[t.PRINTER]: { filterArr: [t.PRINTER] },
|
|
651
|
+
[t.MESSAGE_TMPL]: { filterArr: [t.MESSAGE_TMPL] },
|
|
652
|
+
[t.RANGE_USER]: { filterArr: [t.RANGE_USER] },
|
|
653
|
+
[t.SIGNATURE]: { filterArr: [t.SIGNATURE] },
|
|
654
|
+
[t.ONLINE_FORM_TEMPLATE]: { filterArr: [t.ONLINE_FORM_TEMPLATE] },
|
|
655
|
+
[t.E_DHR_TEMPLATE]: { filterArr: [t.E_DHR_TEMPLATE] },
|
|
656
|
+
[t.ESOP]: { filterArr: [t.ESOP] }
|
|
657
|
+
})[e], re = (t) => [
|
|
658
|
+
{
|
|
659
|
+
old: o.String,
|
|
660
|
+
new: e.LongText
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
old: o.Number,
|
|
664
|
+
new: e.Double
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
old: o.Boolean,
|
|
668
|
+
new: e.Boolen
|
|
669
|
+
}
|
|
670
|
+
].find((e) => e.old == t)?.new ?? t, ie = (e) => ({
|
|
671
|
+
[t.TEXT]: { filterArr: [t.TEXT, t.LONG_TEXT] },
|
|
672
|
+
[t.LONG_TEXT]: { filterArr: [t.LONG_TEXT] },
|
|
673
|
+
[t.INTEGER]: { filterArr: [
|
|
674
|
+
t.INTEGER,
|
|
675
|
+
t.LONG,
|
|
676
|
+
t.DOUBLE,
|
|
677
|
+
t.TEXT,
|
|
678
|
+
t.LONG_TEXT
|
|
679
|
+
] },
|
|
680
|
+
[t.LONG]: { filterArr: [
|
|
681
|
+
t.LONG,
|
|
682
|
+
t.TEXT,
|
|
683
|
+
t.LONG_TEXT,
|
|
684
|
+
t.DOUBLE
|
|
685
|
+
] },
|
|
686
|
+
[t.DOUBLE]: { filterArr: [
|
|
687
|
+
t.DOUBLE,
|
|
688
|
+
t.TEXT,
|
|
689
|
+
t.LONG_TEXT
|
|
690
|
+
] },
|
|
691
|
+
[t.DECIMAL]: { filterArr: [
|
|
692
|
+
t.DECIMAL,
|
|
693
|
+
t.TEXT,
|
|
694
|
+
t.LONG_TEXT
|
|
695
|
+
] },
|
|
696
|
+
[t.DATE]: { filterArr: [t.DATE] },
|
|
697
|
+
[t.TIME]: { filterArr: [t.TIME] },
|
|
698
|
+
[t.DATE_TIME]: { filterArr: [
|
|
699
|
+
t.DATE_TIME,
|
|
700
|
+
t.DATE,
|
|
701
|
+
t.TIME
|
|
702
|
+
] },
|
|
703
|
+
[t.IMAGE]: { filterArr: [t.IMAGE] },
|
|
704
|
+
[t.ATTACHMENT]: { filterArr: [t.ATTACHMENT] },
|
|
705
|
+
[t.MASTERSLAVE]: {
|
|
706
|
+
filterArr: [t.MASTERSLAVE],
|
|
707
|
+
equal: !0
|
|
708
|
+
},
|
|
709
|
+
[t.USER]: { filterArr: [t.USER, t.USER_MULTI] },
|
|
710
|
+
[t.USER_MULTI]: { filterArr: [t.USER_MULTI] },
|
|
711
|
+
[t.ORG]: { filterArr: [t.ORG, t.ORG_MULTI] },
|
|
712
|
+
[t.ORG_MULTI]: { filterArr: [t.ORG_MULTI] },
|
|
713
|
+
[t.ENUM]: {
|
|
714
|
+
filterArr: [t.ENUM, t.ENUM_MULTI],
|
|
715
|
+
equal: !0
|
|
716
|
+
},
|
|
717
|
+
[t.ENUM_MULTI]: {
|
|
718
|
+
filterArr: [t.ENUM_MULTI],
|
|
719
|
+
equal: !0
|
|
720
|
+
},
|
|
721
|
+
[t.REF]: {
|
|
722
|
+
filterArr: [t.REF, t.REF_MULTI],
|
|
723
|
+
equal: !0
|
|
724
|
+
},
|
|
725
|
+
[t.REF_MULTI]: {
|
|
726
|
+
filterArr: [t.REF_MULTI],
|
|
727
|
+
equal: !0
|
|
728
|
+
},
|
|
729
|
+
[t.RDO_REF]: {
|
|
730
|
+
filterArr: [t.RDO_REF],
|
|
731
|
+
equal: !0
|
|
732
|
+
},
|
|
733
|
+
[t.ESOP]: { filterArr: [t.ESOP] },
|
|
734
|
+
[t.TRANSACTION]: { filterArr: [t.TRANSACTION] },
|
|
735
|
+
[t.LABEL_TEMPLATE_REF]: { filterArr: [t.LABEL_TEMPLATE_REF] },
|
|
736
|
+
[t.DOCUMENT_TEMPLATE]: { filterArr: [t.DOCUMENT_TEMPLATE] },
|
|
737
|
+
[t.SERIALRULE]: { filterArr: [t.SERIALRULE] },
|
|
738
|
+
[t.PRINTER]: { filterArr: [t.PRINTER] },
|
|
739
|
+
[t.MESSAGE_TMPL]: { filterArr: [t.MESSAGE_TMPL] },
|
|
740
|
+
[t.RANGE_USER]: { filterArr: [t.RANGE_USER] },
|
|
741
|
+
[t.ONLINE_FORM_TEMPLATE]: { filterArr: [t.ONLINE_FORM_TEMPLATE] },
|
|
742
|
+
[t.E_DHR_TEMPLATE]: { filterArr: [t.E_DHR_TEMPLATE] }
|
|
743
|
+
})[e];
|
|
744
|
+
//#endregion
|
|
745
|
+
//#region src/utils/schema/index.ts
|
|
746
|
+
function F(e, t, n) {
|
|
747
|
+
return e.type === n && p(e, "preLocation") && RegExp(`^${t}_`).test(e.preLocation);
|
|
748
|
+
}
|
|
749
|
+
function I(e) {
|
|
750
|
+
return [
|
|
751
|
+
i.MaterialFormField,
|
|
752
|
+
i.MaterialSubTableModalField,
|
|
753
|
+
i.DescriptionsFormField
|
|
754
|
+
].includes(e.materialType);
|
|
755
|
+
}
|
|
756
|
+
function L(e) {
|
|
757
|
+
let t = /^\$\{(\S+)\}$/;
|
|
758
|
+
for (let n in e) {
|
|
759
|
+
let r = e[n];
|
|
760
|
+
t.test(r) && (e[n] = d(r.match(t)?.[1]));
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
function R(e) {
|
|
764
|
+
let t = f(e);
|
|
765
|
+
t.id = u(t.type), t.alias = d(t.name), t.formItem && (t.props.label = d(t.name));
|
|
766
|
+
let n = S(t.platform);
|
|
767
|
+
return n && n.beforeCreate?.[t.type]?.(t), L(t.props), t;
|
|
768
|
+
}
|
|
769
|
+
function z(e) {
|
|
770
|
+
return e.map((e) => ({ ...e })).filter((e) => (e.props?.model || (e.children = e.children && z(e.children)), B(e)));
|
|
771
|
+
}
|
|
772
|
+
var B = (e) => !e.formItem;
|
|
773
|
+
function V(e) {
|
|
774
|
+
e.children?.length && l.eachTree(e.children, (e) => (e.id = u(e.type), e));
|
|
775
|
+
}
|
|
776
|
+
function H(e) {
|
|
777
|
+
let { field: r, fieldId: i, fieldName: a, fieldCodeChain: o, fieldType: s, label: c, bindModelKey: l, modelKey: d, returnType: f, type: p, preLocation: m, isFieldModel: h, platform: _ } = e, v = {
|
|
778
|
+
id: u(s),
|
|
779
|
+
name: `sys.pageDesigner.fieldCmp.${p || s}`,
|
|
780
|
+
icon: n[p || s],
|
|
781
|
+
isSearchField: !0,
|
|
782
|
+
preLocation: m,
|
|
783
|
+
platform: _
|
|
784
|
+
}, y = [t.AGG, t.EXPRESSION].includes(s) ? f : s;
|
|
785
|
+
e.fieldType = y;
|
|
786
|
+
let { searchCmpKey: b, attrsTransform: x } = N(y) || {};
|
|
787
|
+
if (!b) return;
|
|
788
|
+
let S = Object.fromEntries(x.concat([...M.ope]).map((t) => {
|
|
789
|
+
let n = e[t.from];
|
|
790
|
+
return [t.to, t.transform ? t.transform(n) : n];
|
|
791
|
+
}));
|
|
792
|
+
return g({
|
|
793
|
+
field: r,
|
|
794
|
+
fieldId: i,
|
|
795
|
+
fieldType: y,
|
|
796
|
+
fieldName: a,
|
|
797
|
+
fieldCodeChain: o,
|
|
798
|
+
label: c,
|
|
799
|
+
modelKey: d,
|
|
800
|
+
bindModelKey: l,
|
|
801
|
+
disabled: !1,
|
|
802
|
+
readonly: !1,
|
|
803
|
+
modeldata: {
|
|
804
|
+
modelCategory: e.modelCategory,
|
|
805
|
+
modelType: e.modelType
|
|
806
|
+
},
|
|
807
|
+
isFieldModel: h,
|
|
808
|
+
...S
|
|
809
|
+
}), g(v);
|
|
810
|
+
}
|
|
811
|
+
//#endregion
|
|
812
|
+
//#region src/utils/schema-style/index.ts
|
|
813
|
+
function U(e) {
|
|
814
|
+
return e + "px";
|
|
815
|
+
}
|
|
816
|
+
function W(e) {
|
|
817
|
+
return m(e) ? "" : `${e}px !important`;
|
|
818
|
+
}
|
|
819
|
+
function G(e) {
|
|
820
|
+
return m(e) ? "" : `${e} !important`;
|
|
821
|
+
}
|
|
822
|
+
function K(e) {
|
|
823
|
+
return !e || m(e.borderWidth) ? "" : `${e.borderWidth}px ${e.borderStyle || "solid"} ${e.borderColor || "transparent"} !important`;
|
|
824
|
+
}
|
|
825
|
+
var q = {
|
|
826
|
+
fontAttrs: [
|
|
827
|
+
"fontWeight",
|
|
828
|
+
"fontSize",
|
|
829
|
+
"color",
|
|
830
|
+
"textDecorationLine",
|
|
831
|
+
"textAlign"
|
|
832
|
+
],
|
|
833
|
+
mapAttrs: {
|
|
834
|
+
bold: {
|
|
835
|
+
attr: "fontWeight",
|
|
836
|
+
callback: (e) => e ? 700 : 400
|
|
837
|
+
},
|
|
838
|
+
italic: {
|
|
839
|
+
attr: "fontStyle",
|
|
840
|
+
callback: (e) => e ? "italic" : "normal"
|
|
841
|
+
},
|
|
842
|
+
textDecoration: { attr: "textDecorationLine" },
|
|
843
|
+
fontSize: {
|
|
844
|
+
attr: "fontSize",
|
|
845
|
+
callback: (e) => e ? U(e) : ""
|
|
846
|
+
},
|
|
847
|
+
align: { attr: "textAlign" }
|
|
848
|
+
}
|
|
849
|
+
};
|
|
850
|
+
function J(e, t = q) {
|
|
851
|
+
if (!e) return {};
|
|
852
|
+
let n = {};
|
|
853
|
+
return Object.assign(n, _(e, t.fontAttrs)), typeof t.mapAttrs == "object" && Object.keys(t.mapAttrs).forEach((r) => {
|
|
854
|
+
let { attr: i, callback: a } = t.mapAttrs[r];
|
|
855
|
+
n[i] = typeof a == "function" ? a(e[r]) : e[r];
|
|
856
|
+
}), n;
|
|
857
|
+
}
|
|
858
|
+
function ae(e = {}) {
|
|
859
|
+
let t = {};
|
|
860
|
+
for (let n in e) t[n] = Y(n, e[n]);
|
|
861
|
+
return t;
|
|
862
|
+
}
|
|
863
|
+
var oe = [
|
|
864
|
+
"opacity",
|
|
865
|
+
"zIndex",
|
|
866
|
+
"fontWeight",
|
|
867
|
+
"lineHeight",
|
|
868
|
+
"letterSpacing",
|
|
869
|
+
"wordSpacing",
|
|
870
|
+
"textAlign",
|
|
871
|
+
"textDecoration",
|
|
872
|
+
"textTransform",
|
|
873
|
+
"fontStyle",
|
|
874
|
+
"textDecorationLine"
|
|
875
|
+
];
|
|
876
|
+
function Y(e, t) {
|
|
877
|
+
return h(t) || m(t) ? "" : oe.includes(e) ? t + " !important" : t + "px !important";
|
|
878
|
+
}
|
|
879
|
+
var X = {
|
|
880
|
+
left: "flex-start",
|
|
881
|
+
center: "center",
|
|
882
|
+
right: "flex-end",
|
|
883
|
+
justify: "space-between"
|
|
884
|
+
};
|
|
885
|
+
function se(e) {
|
|
886
|
+
return X[e] || e;
|
|
887
|
+
}
|
|
888
|
+
function Z(e) {
|
|
889
|
+
return {
|
|
890
|
+
position: G(e.position),
|
|
891
|
+
top: W(e.top),
|
|
892
|
+
left: W(e.left),
|
|
893
|
+
right: W(e.right),
|
|
894
|
+
bottom: W(e.bottom),
|
|
895
|
+
width: W(e.width),
|
|
896
|
+
height: W(e.height)
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
function Q(e) {
|
|
900
|
+
return {
|
|
901
|
+
backgroundColor: G(e.backgroundColor),
|
|
902
|
+
marginTop: W(e.marginTop),
|
|
903
|
+
marginRight: W(e.marginRight),
|
|
904
|
+
marginBottom: W(e.marginBottom),
|
|
905
|
+
marginLeft: W(e.marginLeft),
|
|
906
|
+
paddingTop: W(e.paddingTop),
|
|
907
|
+
paddingRight: W(e.paddingRight),
|
|
908
|
+
paddingBottom: W(e.paddingBottom),
|
|
909
|
+
paddingLeft: W(e.paddingLeft)
|
|
910
|
+
};
|
|
911
|
+
}
|
|
912
|
+
function $(e) {
|
|
913
|
+
return {
|
|
914
|
+
borderLeft: K(e.borderLeft),
|
|
915
|
+
borderRight: K(e.borderRight),
|
|
916
|
+
borderBottom: K(e.borderBottom),
|
|
917
|
+
borderTop: K(e.borderTop),
|
|
918
|
+
borderTopRightRadius: W(e.borderTopRightRadius),
|
|
919
|
+
borderTopLeftRadius: W(e.borderTopLeftRadius),
|
|
920
|
+
borderBottomRightRadius: W(e.borderBottomRightRadius),
|
|
921
|
+
borderBottomLeftRadius: W(e.borderBottomLeftRadius)
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
function ce(e, t = []) {
|
|
925
|
+
let n = {
|
|
926
|
+
...Z(e),
|
|
927
|
+
...Q(e),
|
|
928
|
+
...$(e)
|
|
929
|
+
};
|
|
930
|
+
return t.forEach((e) => {
|
|
931
|
+
delete n[e];
|
|
932
|
+
}), Object.keys(n).forEach((e) => {
|
|
933
|
+
let t = n[e];
|
|
934
|
+
(h(t) || m(t)) && delete n[e];
|
|
935
|
+
}), n;
|
|
936
|
+
}
|
|
937
|
+
//#endregion
|
|
938
|
+
//#region src/index.ts
|
|
939
|
+
var le = { install() {} };
|
|
940
|
+
//#endregion
|
|
941
|
+
export { X as ALIGN_TO_FLEX_MAP, A as DatepickerTypes, j as SEARCH_TYPE, G as addImportant, W as addPxUnit, R as cloneWidget, re as convertMappingType, H as createdSearchField, z as deepFindNotField, le as default, J as extractFontStyle, P as flatten, K as formatBorder, $ as generateBorderStyles, Z as generatePositionStyles, Q as generateSpacingStyles, ce as generateWrapperStyle, F as getCompPos, S as getWidgetInfo, I as isFormFieldType, Y as makeStyleProp, b as mobileWidgetInfo, k as padVTableSupportEditFieldTypes, x as padWidgetInfo, ae as propsToStyle, U as pxToVw, te as registerMobilePluginWidgetItem, w as registerMobileWidgetItem, O as registerPadPluginWidgetItem, T as registerPadWidgetItem, E as registerPluginWidgetItem, D as registerWebPluginWidgetItem, ee as registerWebWidgetItem, C as registerWidgetItem, V as setChildrenId, se as transAlign2flex, L as transformI18n, ne as transformMappingField, ie as transformMappingField4Auto, y as webWidgetInfo };
|