@gct-paas/schema 0.1.4-dev.10 → 0.1.4-dev.11
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.mjs +675 -840
- package/dist/index.min.cjs +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/constants/index.d.ts +1 -1
- package/es/index.d.ts +0 -1
- package/es/index.mjs +2 -10
- package/es/interface/designer.d.ts +0 -1
- package/es/interface/modal/i-modal-body.d.ts +1 -1
- package/es/interface/schema/widget-props/i-search-widget-props.d.ts +6 -0
- package/es/interface/schema/widget-types.d.ts +16 -6
- package/es/interface/widget/i-common.d.ts +2 -1
- package/es/interface/widget/i-editors.d.ts +2 -2
- package/es/interface/widget/i-props.d.ts +1 -10
- package/es/interface/widget/i-schemas.d.ts +1 -0
- package/es/utils/schema/index.d.ts +9 -1
- package/es/utils/schema/index.mjs +74 -3
- package/es/utils/schema/search.d.ts +9 -0
- package/es/utils/schema/search.mjs +155 -0
- package/es/utils/schema/utils.d.ts +21 -0
- package/es/utils/schema/utils.mjs +284 -0
- package/package.json +5 -5
- package/es/schema/common-config/base-button-config.d.ts +0 -3
- package/es/schema/common-config/base-button-config.mjs +0 -84
- package/es/schema/common-config/button-editor-config.d.ts +0 -4
- package/es/schema/common-config/button-editor-config.mjs +0 -206
- package/es/schema/common-config/button-props-func.d.ts +0 -5
- package/es/schema/common-config/button-props-func.mjs +0 -11
- package/es/schema/common-config/common-field-editor-config.d.ts +0 -10
- package/es/schema/common-config/common-field-editor-config.mjs +0 -61
- package/es/schema/common-config/common-style.d.ts +0 -3
- package/es/schema/common-config/common-style.mjs +0 -85
- package/es/schema/common-config/display-editor-config.d.ts +0 -3
- package/es/schema/common-config/display-editor-config.mjs +0 -89
- package/es/schema/common-config/permission-editor-config.d.ts +0 -2
- package/es/schema/common-config/permission-editor-config.mjs +0 -23
- package/es/schema/index.d.ts +0 -9
- package/es/schema/modal/modal-body.d.ts +0 -2
- package/es/schema/modal/modal-body.mjs +0 -9
- package/es/schema/modal/modal-footer.d.ts +0 -2
- package/es/schema/modal/modal-footer.mjs +0 -9
- package/es/schema/modal/modal.d.ts +0 -8
- package/es/schema/modal/modal.mjs +0 -182
package/dist/index.esm.min.mjs
CHANGED
|
@@ -1,267 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
unitType: "px",
|
|
27
|
-
modalWidth: 800,
|
|
28
|
-
isSubTableModal: !1,
|
|
29
|
-
bindSubTableId: "",
|
|
30
|
-
createModalTitle: "新建弹窗",
|
|
31
|
-
editModalTitle: "编辑弹窗",
|
|
32
|
-
hasFooter: !0,
|
|
33
|
-
openMode: "modal",
|
|
34
|
-
/**just mobile */
|
|
35
|
-
mUnitType: "%",
|
|
36
|
-
mModalWidth: 80
|
|
37
|
-
},
|
|
38
|
-
style: {
|
|
39
|
-
paddingAll: "16",
|
|
40
|
-
paddingTop: "16",
|
|
41
|
-
paddingRight: "16",
|
|
42
|
-
paddingBottom: "16",
|
|
43
|
-
paddingLeft: "16"
|
|
44
|
-
},
|
|
45
|
-
events: {},
|
|
46
|
-
i18n: {},
|
|
47
|
-
runJs: "",
|
|
48
|
-
los: {},
|
|
49
|
-
icon: "icon-motaikuang1",
|
|
50
|
-
isField: !1
|
|
51
|
-
}, H = [
|
|
52
|
-
{
|
|
53
|
-
component: "text-editor",
|
|
54
|
-
name: "modalTitle",
|
|
55
|
-
label: "sys.pageDesigner.modalTitleName",
|
|
56
|
-
group: i.BASIC,
|
|
57
|
-
_config: {
|
|
58
|
-
showCount: !0,
|
|
59
|
-
maxlength: 32
|
|
60
|
-
},
|
|
61
|
-
hidden: (t) => t.props.isSubTableModal
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
component: "input-unit-editor",
|
|
65
|
-
name: { unitType: "unitType", modalWidth: "modalWidth" },
|
|
66
|
-
label: "sys.pageDesigner.modalWidthProp",
|
|
67
|
-
group: i.MODAL,
|
|
68
|
-
hidden: (t) => t.platform === s.MOBILE
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
component: "input-unit-editor",
|
|
72
|
-
name: { unitType: "mUnitType", modalWidth: "mModalWidth" },
|
|
73
|
-
label: "sys.pageDesigner.modalHeightProp",
|
|
74
|
-
group: i.MODAL,
|
|
75
|
-
hidden: (t) => t.platform !== s.MOBILE,
|
|
76
|
-
_config: {
|
|
77
|
-
filterUnitType: "px"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
component: "text-editor",
|
|
82
|
-
name: "createModalTitle",
|
|
83
|
-
label: "sys.pageDesigner.createModalTitle",
|
|
84
|
-
group: i.MODALTITLECONFIG,
|
|
85
|
-
_config: {
|
|
86
|
-
i18n: !0
|
|
87
|
-
},
|
|
88
|
-
hidden: (t) => !t.props.isSubTableModal
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
component: "text-editor",
|
|
92
|
-
name: "editModalTitle",
|
|
93
|
-
label: "sys.pageDesigner.editModalTitle",
|
|
94
|
-
group: i.MODALTITLECONFIG,
|
|
95
|
-
_config: {
|
|
96
|
-
i18n: !0
|
|
97
|
-
},
|
|
98
|
-
hidden: (t) => !t.props.isSubTableModal
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
component: "select-editor",
|
|
102
|
-
name: "openMode",
|
|
103
|
-
label: "sys.appDesigner.openMode",
|
|
104
|
-
group: i.MODAL,
|
|
105
|
-
hidden: (t) => t.platform !== s.WEB,
|
|
106
|
-
_config: {
|
|
107
|
-
options: () => [
|
|
108
|
-
{
|
|
109
|
-
label: "打开弹窗页面",
|
|
110
|
-
value: "modal"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
label: "右侧划入页面",
|
|
114
|
-
value: "drawer"
|
|
115
|
-
}
|
|
116
|
-
]
|
|
117
|
-
},
|
|
118
|
-
changeCallback: (t, o) => {
|
|
119
|
-
o === "drawer" ? (t.props.unitType = "%", t.props.modalWidth = 80) : (t.props.unitType = "px", t.props.modalWidth = 800);
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
component: "switch-editor",
|
|
124
|
-
name: "hasFooter",
|
|
125
|
-
label: "sys.pageDesigner.operateButton",
|
|
126
|
-
group: i.BUTTON,
|
|
127
|
-
hidden: (t) => t.props.isSubTableModal
|
|
128
|
-
}
|
|
129
|
-
], z = [
|
|
130
|
-
{
|
|
131
|
-
component: "color-editor",
|
|
132
|
-
name: "backgroundColor",
|
|
133
|
-
label: "sys.pageDesigner.backgroundColor",
|
|
134
|
-
group: T.BACKGROUND
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
component: "margin-editor",
|
|
138
|
-
group: T.MARGIN,
|
|
139
|
-
_config: {
|
|
140
|
-
hiddenMarginOrPadding: "margin"
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
], j = [
|
|
144
|
-
{
|
|
145
|
-
name: "onMounted",
|
|
146
|
-
title: "sys.pageDesigner.onMounted",
|
|
147
|
-
params: []
|
|
1
|
+
import { Platform as p, FIELD_TYPE as r, SEARCH_SERVICE as e, SearchComponents as o, EntityFormulaReturnTypeEnum as R, ReturnTypeEnum as u, MaterialEnum as A, buildShortUUID as S, t as m, FieldIconMap as V, TreeHelper as W } from "@gct-paas/core";
|
|
2
|
+
import { cloneDeep as H, merge as D, has as q, isEmpty as N, pick as $, isNil as G } from "lodash-es";
|
|
3
|
+
class d {
|
|
4
|
+
events = {};
|
|
5
|
+
propEditors = {};
|
|
6
|
+
schema = {};
|
|
7
|
+
callback = {};
|
|
8
|
+
beforeCreate = {};
|
|
9
|
+
styleEditors = {};
|
|
10
|
+
designerConfig = {};
|
|
11
|
+
hooks = {};
|
|
12
|
+
whiteList = {};
|
|
13
|
+
blackList = {};
|
|
14
|
+
}
|
|
15
|
+
const I = new d(), O = new d(), M = new d();
|
|
16
|
+
function z(t) {
|
|
17
|
+
switch (t) {
|
|
18
|
+
case p.WEB:
|
|
19
|
+
return I;
|
|
20
|
+
case p.MOBILE:
|
|
21
|
+
return O;
|
|
22
|
+
case p.PAD:
|
|
23
|
+
return M;
|
|
24
|
+
default:
|
|
25
|
+
return I;
|
|
148
26
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
t.
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
27
|
+
}
|
|
28
|
+
function h(t, E, a) {
|
|
29
|
+
t.events[E] = a.eventList, t.hooks[E] = a.hooks, t.whiteList[E] = a.whiteList, t.blackList[E] = a.blackList, t.propEditors[E] = a.propEditorList, t.schema[E] = a.widget, t.callback[E] = a.runCallback, t.beforeCreate[E] = a.beforeCreate, t.styleEditors[E] = a.styleEditorList, t.designerConfig[E] = a.designerConfig;
|
|
30
|
+
}
|
|
31
|
+
function Nr(t, E) {
|
|
32
|
+
h(I, E, t);
|
|
33
|
+
}
|
|
34
|
+
function cr(t, E) {
|
|
35
|
+
h(O, E, t);
|
|
36
|
+
}
|
|
37
|
+
function sr(t, E) {
|
|
38
|
+
h(M, E, t);
|
|
39
|
+
}
|
|
40
|
+
function _(t, E) {
|
|
41
|
+
if (E) {
|
|
42
|
+
const { type: a } = E.schema;
|
|
43
|
+
t.events[a] = E.events, t.hooks[a] = E.hooks, t.whiteList[a] = E.whiteList, t.blackList[a] = E.blackList, t.propEditors[a] = E.propEditors, t.schema[a] = E.schema, t.callback[a] = E.callback, t.beforeCreate[a] = E.beforeCreate, t.styleEditors[a] = E.styleEditors, t.designerConfig[a] = E.designerConfig;
|
|
156
44
|
}
|
|
157
|
-
}, fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
158
|
-
__proto__: null,
|
|
159
|
-
beforeCreate: $,
|
|
160
|
-
designerConfig: J,
|
|
161
|
-
eventList: j,
|
|
162
|
-
propEditorList: H,
|
|
163
|
-
runCallback: X,
|
|
164
|
-
styleEditorList: z,
|
|
165
|
-
widget: v
|
|
166
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
167
|
-
function d(t) {
|
|
168
|
-
return Object.prototype.hasOwnProperty.call(t.props, "model") ? !t.props.model : Object.prototype.hasOwnProperty.call(t.props, "refForm") ? !t.props.refForm : !1;
|
|
169
45
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
color: ""
|
|
196
|
-
},
|
|
197
|
-
contentFont: {
|
|
198
|
-
align: "left",
|
|
199
|
-
fontSize: "",
|
|
200
|
-
bold: !1,
|
|
201
|
-
italic: !1,
|
|
202
|
-
textDecoration: D.NONE,
|
|
203
|
-
color: ""
|
|
204
|
-
},
|
|
205
|
-
tagStyle: {
|
|
206
|
-
color: "",
|
|
207
|
-
tagType: F.RADIUS
|
|
208
|
-
},
|
|
209
|
-
tagStyleOpen: !1,
|
|
210
|
-
borderAll: {
|
|
211
|
-
borderStyle: u.NONE,
|
|
212
|
-
borderColor: "#F0F0F0",
|
|
213
|
-
borderWidth: "1"
|
|
214
|
-
},
|
|
215
|
-
borderLeft: {
|
|
216
|
-
borderStyle: u.NONE,
|
|
217
|
-
borderColor: "#F0F0F0",
|
|
218
|
-
borderWidth: "1"
|
|
219
|
-
},
|
|
220
|
-
borderRight: {
|
|
221
|
-
borderStyle: u.NONE,
|
|
222
|
-
borderColor: "#F0F0F0",
|
|
223
|
-
borderWidth: "1"
|
|
224
|
-
},
|
|
225
|
-
borderBottom: {
|
|
226
|
-
borderStyle: u.NONE,
|
|
227
|
-
borderColor: "#F0F0F0",
|
|
228
|
-
borderWidth: "1"
|
|
229
|
-
},
|
|
230
|
-
borderTop: {
|
|
231
|
-
borderStyle: u.NONE,
|
|
232
|
-
borderColor: "#F0F0F0",
|
|
233
|
-
borderWidth: "1"
|
|
234
|
-
},
|
|
235
|
-
borderTopRightRadius: "0",
|
|
236
|
-
borderTopLeftRadius: "0",
|
|
237
|
-
borderBottomRightRadius: "0",
|
|
238
|
-
borderBottomLeftRadius: "0",
|
|
239
|
-
borderAllRadius: "0"
|
|
240
|
-
}, ge = [
|
|
241
|
-
"position",
|
|
242
|
-
"backgroundColor",
|
|
243
|
-
"bold",
|
|
244
|
-
"italic",
|
|
245
|
-
"textDecoration",
|
|
246
|
-
"color",
|
|
247
|
-
"borderStyle",
|
|
248
|
-
"borderColor"
|
|
249
|
-
], q = [
|
|
250
|
-
n.TEXT,
|
|
251
|
-
n.LONG_TEXT,
|
|
252
|
-
n.INTEGER,
|
|
253
|
-
n.LONG,
|
|
254
|
-
n.DOUBLE,
|
|
255
|
-
n.DECIMAL,
|
|
256
|
-
n.BOOLEAN,
|
|
257
|
-
n.DATE,
|
|
258
|
-
n.TIME,
|
|
259
|
-
n.DATE_TIME,
|
|
260
|
-
n.USER,
|
|
261
|
-
n.USER_MULTI,
|
|
262
|
-
n.SERIAL
|
|
263
|
-
], Te = {
|
|
264
|
-
[n.PRIMARY_KEY]: {
|
|
46
|
+
function Ar(t) {
|
|
47
|
+
_(I, t);
|
|
48
|
+
}
|
|
49
|
+
function Ir(t) {
|
|
50
|
+
_(O, t);
|
|
51
|
+
}
|
|
52
|
+
function Lr(t) {
|
|
53
|
+
_(M, t);
|
|
54
|
+
}
|
|
55
|
+
const pr = [
|
|
56
|
+
r.TEXT,
|
|
57
|
+
r.LONG_TEXT,
|
|
58
|
+
r.INTEGER,
|
|
59
|
+
r.LONG,
|
|
60
|
+
r.DOUBLE,
|
|
61
|
+
r.DECIMAL,
|
|
62
|
+
r.BOOLEAN,
|
|
63
|
+
r.DATE,
|
|
64
|
+
r.TIME,
|
|
65
|
+
r.DATE_TIME,
|
|
66
|
+
r.USER,
|
|
67
|
+
r.USER_MULTI,
|
|
68
|
+
r.SERIAL
|
|
69
|
+
], j = {
|
|
70
|
+
[r.PRIMARY_KEY]: {
|
|
265
71
|
filter: [
|
|
266
72
|
e.EQ,
|
|
267
73
|
e.NE,
|
|
@@ -271,7 +77,7 @@ const Ne = {
|
|
|
271
77
|
default: [e.EQ],
|
|
272
78
|
noRangDefaultExp: e.EQ
|
|
273
79
|
},
|
|
274
|
-
[
|
|
80
|
+
[r.TEXT]: {
|
|
275
81
|
filter: [
|
|
276
82
|
e.EQ,
|
|
277
83
|
e.IEQ,
|
|
@@ -289,7 +95,7 @@ const Ne = {
|
|
|
289
95
|
default: [e.LIKE],
|
|
290
96
|
noRangDefaultExp: e.LIKE
|
|
291
97
|
},
|
|
292
|
-
[
|
|
98
|
+
[r.LONG_TEXT]: {
|
|
293
99
|
filter: [
|
|
294
100
|
e.EQ,
|
|
295
101
|
e.IEQ,
|
|
@@ -307,7 +113,7 @@ const Ne = {
|
|
|
307
113
|
default: [e.LIKE],
|
|
308
114
|
noRangDefaultExp: e.LIKE
|
|
309
115
|
},
|
|
310
|
-
[
|
|
116
|
+
[r.SERIAL]: {
|
|
311
117
|
filter: [
|
|
312
118
|
e.EQ,
|
|
313
119
|
e.IEQ,
|
|
@@ -325,7 +131,7 @@ const Ne = {
|
|
|
325
131
|
default: [e.LIKE],
|
|
326
132
|
noRangDefaultExp: e.LIKE
|
|
327
133
|
},
|
|
328
|
-
[
|
|
134
|
+
[r.INTEGER]: {
|
|
329
135
|
filter: [
|
|
330
136
|
e.EQ,
|
|
331
137
|
e.NE,
|
|
@@ -338,7 +144,7 @@ const Ne = {
|
|
|
338
144
|
default: [e.RANGE],
|
|
339
145
|
noRangDefaultExp: e.EQ
|
|
340
146
|
},
|
|
341
|
-
[
|
|
147
|
+
[r.LONG]: {
|
|
342
148
|
filter: [
|
|
343
149
|
e.EQ,
|
|
344
150
|
e.NE,
|
|
@@ -351,7 +157,7 @@ const Ne = {
|
|
|
351
157
|
default: [e.RANGE],
|
|
352
158
|
noRangDefaultExp: e.EQ
|
|
353
159
|
},
|
|
354
|
-
[
|
|
160
|
+
[r.DECIMAL]: {
|
|
355
161
|
filter: [
|
|
356
162
|
e.EQ,
|
|
357
163
|
e.NE,
|
|
@@ -364,7 +170,7 @@ const Ne = {
|
|
|
364
170
|
default: [e.RANGE],
|
|
365
171
|
noRangDefaultExp: e.EQ
|
|
366
172
|
},
|
|
367
|
-
[
|
|
173
|
+
[r.DOUBLE]: {
|
|
368
174
|
filter: [
|
|
369
175
|
e.EQ,
|
|
370
176
|
e.NE,
|
|
@@ -377,13 +183,13 @@ const Ne = {
|
|
|
377
183
|
default: [e.RANGE],
|
|
378
184
|
noRangDefaultExp: e.EQ
|
|
379
185
|
},
|
|
380
|
-
[
|
|
186
|
+
[r.BOOLEAN]: {
|
|
381
187
|
filter: [e.EQ],
|
|
382
188
|
// contain: ['more'],
|
|
383
189
|
default: [e.EQ],
|
|
384
190
|
noRangDefaultExp: e.EQ
|
|
385
191
|
},
|
|
386
|
-
[
|
|
192
|
+
[r.DATE]: {
|
|
387
193
|
filter: [
|
|
388
194
|
e.EQ,
|
|
389
195
|
e.NE,
|
|
@@ -396,7 +202,7 @@ const Ne = {
|
|
|
396
202
|
default: [e.RANGE],
|
|
397
203
|
noRangDefaultExp: e.EQ
|
|
398
204
|
},
|
|
399
|
-
[
|
|
205
|
+
[r.TIME]: {
|
|
400
206
|
filter: [
|
|
401
207
|
e.EQ,
|
|
402
208
|
e.NE,
|
|
@@ -409,7 +215,7 @@ const Ne = {
|
|
|
409
215
|
default: [e.RANGE],
|
|
410
216
|
noRangDefaultExp: e.EQ
|
|
411
217
|
},
|
|
412
|
-
[
|
|
218
|
+
[r.DATE_TIME]: {
|
|
413
219
|
filter: [
|
|
414
220
|
e.EQ,
|
|
415
221
|
e.NE,
|
|
@@ -422,7 +228,7 @@ const Ne = {
|
|
|
422
228
|
default: [e.RANGE],
|
|
423
229
|
noRangDefaultExp: e.EQ
|
|
424
230
|
},
|
|
425
|
-
[
|
|
231
|
+
[r.ENUM]: {
|
|
426
232
|
filter: [
|
|
427
233
|
e.EQ,
|
|
428
234
|
e.NE,
|
|
@@ -433,25 +239,25 @@ const Ne = {
|
|
|
433
239
|
default: [e.EQ],
|
|
434
240
|
noRangDefaultExp: e.EQ
|
|
435
241
|
},
|
|
436
|
-
[
|
|
242
|
+
[r.ENUM_MULTI]: {
|
|
437
243
|
filter: [e.CONTAINANY, e.CONTAINALL],
|
|
438
244
|
contain: ["more", "ignoreCase"],
|
|
439
245
|
default: [e.CONTAINANY],
|
|
440
246
|
noRangDefaultExp: e.CONTAINANY
|
|
441
247
|
},
|
|
442
|
-
[
|
|
248
|
+
[r.OPTION]: {
|
|
443
249
|
filter: [e.EQ, e.NE],
|
|
444
250
|
contain: ["more"],
|
|
445
251
|
default: [e.EQ],
|
|
446
252
|
noRangDefaultExp: e.EQ
|
|
447
253
|
},
|
|
448
|
-
[
|
|
254
|
+
[r.OPTION_MULTI]: {
|
|
449
255
|
filter: [e.CONTAINANY, e.CONTAINALL],
|
|
450
256
|
contain: ["more"],
|
|
451
257
|
default: [e.CONTAINANY],
|
|
452
258
|
noRangDefaultExp: e.CONTAINANY
|
|
453
259
|
},
|
|
454
|
-
[
|
|
260
|
+
[r.USER]: {
|
|
455
261
|
filter: [
|
|
456
262
|
e.EQ,
|
|
457
263
|
e.NE,
|
|
@@ -461,13 +267,13 @@ const Ne = {
|
|
|
461
267
|
contain: ["more", "ignoreCase"],
|
|
462
268
|
default: [e.EQ]
|
|
463
269
|
},
|
|
464
|
-
[
|
|
270
|
+
[r.USER_MULTI]: {
|
|
465
271
|
filter: [e.CONTAINANY, e.CONTAINALL],
|
|
466
272
|
contain: ["more", "ignoreCase"],
|
|
467
273
|
default: [e.CONTAINANY],
|
|
468
274
|
noRangDefaultExp: e.CONTAINANY
|
|
469
275
|
},
|
|
470
|
-
[
|
|
276
|
+
[r.ORG]: {
|
|
471
277
|
filter: [
|
|
472
278
|
e.EQ,
|
|
473
279
|
e.NE,
|
|
@@ -478,19 +284,19 @@ const Ne = {
|
|
|
478
284
|
default: [e.EQ],
|
|
479
285
|
noRangDefaultExp: e.EQ
|
|
480
286
|
},
|
|
481
|
-
[
|
|
287
|
+
[r.ORG_MULTI]: {
|
|
482
288
|
filter: [e.CONTAINANY, e.CONTAINALL],
|
|
483
289
|
contain: ["more", "ignoreCase"],
|
|
484
290
|
default: [e.CONTAINANY],
|
|
485
291
|
noRangDefaultExp: e.CONTAINANY
|
|
486
292
|
},
|
|
487
|
-
[
|
|
293
|
+
[r.REF_MULTI]: {
|
|
488
294
|
filter: [e.CONTAINANY, e.CONTAINALL],
|
|
489
295
|
contain: ["more", "ignoreCase"],
|
|
490
296
|
default: [e.CONTAINANY],
|
|
491
297
|
noRangDefaultExp: e.CONTAINANY
|
|
492
298
|
},
|
|
493
|
-
[
|
|
299
|
+
[r.ASSOCIATED_PRIMARY_KEY]: {
|
|
494
300
|
filter: [
|
|
495
301
|
e.EQ,
|
|
496
302
|
e.NE,
|
|
@@ -501,7 +307,7 @@ const Ne = {
|
|
|
501
307
|
default: [e.EQ],
|
|
502
308
|
noRangDefaultExp: e.EQ
|
|
503
309
|
},
|
|
504
|
-
[
|
|
310
|
+
[r.REF]: {
|
|
505
311
|
filter: [
|
|
506
312
|
e.EQ,
|
|
507
313
|
e.NE,
|
|
@@ -512,7 +318,7 @@ const Ne = {
|
|
|
512
318
|
default: [e.EQ],
|
|
513
319
|
noRangDefaultExp: e.EQ
|
|
514
320
|
},
|
|
515
|
-
[
|
|
321
|
+
[r.RDO_REF]: {
|
|
516
322
|
filter: [
|
|
517
323
|
e.VERSIONEQ,
|
|
518
324
|
e.VERSIONNE,
|
|
@@ -523,19 +329,19 @@ const Ne = {
|
|
|
523
329
|
default: [e.VERSIONIN],
|
|
524
330
|
noRangDefaultExp: e.VERSIONIN
|
|
525
331
|
},
|
|
526
|
-
[
|
|
332
|
+
[r.E_DHR_TEMPLATE]: {
|
|
527
333
|
filter: [e.VERSIONIN],
|
|
528
334
|
contain: ["more"],
|
|
529
335
|
default: [e.VERSIONIN],
|
|
530
336
|
noRangDefaultExp: e.VERSIONIN
|
|
531
337
|
},
|
|
532
|
-
[
|
|
338
|
+
[r.ONLINE_FORM_TEMPLATE]: {
|
|
533
339
|
filter: [e.VERSIONIN],
|
|
534
340
|
contain: ["more"],
|
|
535
341
|
default: [e.VERSIONIN],
|
|
536
342
|
noRangDefaultExp: e.VERSIONIN
|
|
537
343
|
},
|
|
538
|
-
[
|
|
344
|
+
[r.TRANSACTION]: {
|
|
539
345
|
filter: [
|
|
540
346
|
e.EQ,
|
|
541
347
|
e.NE,
|
|
@@ -546,7 +352,7 @@ const Ne = {
|
|
|
546
352
|
default: [e.EQ],
|
|
547
353
|
noRangDefaultExp: e.EQ
|
|
548
354
|
},
|
|
549
|
-
[
|
|
355
|
+
[r.PRINTER]: {
|
|
550
356
|
filter: [
|
|
551
357
|
e.EQ,
|
|
552
358
|
e.NE,
|
|
@@ -557,7 +363,7 @@ const Ne = {
|
|
|
557
363
|
default: [e.EQ],
|
|
558
364
|
noRangDefaultExp: e.EQ
|
|
559
365
|
},
|
|
560
|
-
[
|
|
366
|
+
[r.LABEL_TEMPLATE_REF]: {
|
|
561
367
|
filter: [
|
|
562
368
|
e.VERSIONEQ,
|
|
563
369
|
e.VERSIONNE,
|
|
@@ -575,7 +381,7 @@ const Ne = {
|
|
|
575
381
|
default: [e.VERSIONIN],
|
|
576
382
|
noRangDefaultExp: e.EQ
|
|
577
383
|
},
|
|
578
|
-
[
|
|
384
|
+
[r.MESSAGE_TMPL]: {
|
|
579
385
|
filter: [
|
|
580
386
|
e.EQ,
|
|
581
387
|
e.NE,
|
|
@@ -585,7 +391,7 @@ const Ne = {
|
|
|
585
391
|
default: [e.EQ],
|
|
586
392
|
noRangDefaultExp: e.EQ
|
|
587
393
|
},
|
|
588
|
-
[
|
|
394
|
+
[r.RANGE_USER]: {
|
|
589
395
|
filter: [e.CONTAINANY, e.CONTAINALL],
|
|
590
396
|
contain: ["more", "ignoreCase"],
|
|
591
397
|
default: [e.CONTAINANY],
|
|
@@ -602,7 +408,7 @@ const Ne = {
|
|
|
602
408
|
e.LORANGE
|
|
603
409
|
]
|
|
604
410
|
},
|
|
605
|
-
[
|
|
411
|
+
[r.Biz_Process]: {
|
|
606
412
|
filter: [e.IN],
|
|
607
413
|
default: [e.IN],
|
|
608
414
|
noRangDefaultExp: e.IN
|
|
@@ -610,169 +416,512 @@ const Ne = {
|
|
|
610
416
|
ignore: {
|
|
611
417
|
filter: ["ignoreCase"]
|
|
612
418
|
}
|
|
613
|
-
},
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
componentDependency: {
|
|
620
|
-
sortDependency: [],
|
|
621
|
-
configDependency: {
|
|
622
|
-
/**隐藏 */
|
|
623
|
-
[f.HIDDEN]: {
|
|
624
|
-
expression: ""
|
|
625
|
-
},
|
|
626
|
-
/**只读 */
|
|
627
|
-
[f.READONLY]: {
|
|
628
|
-
expression: ""
|
|
629
|
-
},
|
|
630
|
-
/**禁用 */
|
|
631
|
-
[f.DISABLED]: {
|
|
632
|
-
expression: ""
|
|
633
|
-
},
|
|
634
|
-
/**必填 */
|
|
635
|
-
[f.REQUIRED]: {
|
|
636
|
-
expression: ""
|
|
637
|
-
},
|
|
638
|
-
[f.ASSIGNMENT]: {
|
|
639
|
-
expression: "",
|
|
640
|
-
strategy: B.alwaysCover
|
|
641
|
-
}
|
|
419
|
+
}, v = {
|
|
420
|
+
ope: [
|
|
421
|
+
{
|
|
422
|
+
from: "fieldType",
|
|
423
|
+
to: "ope",
|
|
424
|
+
transform: (t) => [...j[t]?.default || []]
|
|
642
425
|
}
|
|
426
|
+
]
|
|
427
|
+
}, w = (t) => ({
|
|
428
|
+
[r.PRIMARY_KEY]: {
|
|
429
|
+
searchCmpKey: o.SearchInput,
|
|
430
|
+
attrsTransform: []
|
|
431
|
+
},
|
|
432
|
+
[r.ASSOCIATED_PRIMARY_KEY]: {
|
|
433
|
+
searchCmpKey: o.SearchSelect,
|
|
434
|
+
attrsTransform: []
|
|
435
|
+
},
|
|
436
|
+
[r.TEXT]: {
|
|
437
|
+
searchCmpKey: o.SearchInput,
|
|
438
|
+
attrsTransform: []
|
|
439
|
+
},
|
|
440
|
+
[r.LONG_TEXT]: {
|
|
441
|
+
searchCmpKey: o.SearchInput,
|
|
442
|
+
attrsTransform: []
|
|
443
|
+
},
|
|
444
|
+
[r.SERIAL]: {
|
|
445
|
+
searchCmpKey: o.SearchInput,
|
|
446
|
+
attrsTransform: []
|
|
447
|
+
},
|
|
448
|
+
[r.DATE]: {
|
|
449
|
+
searchCmpKey: o.SearchDate,
|
|
450
|
+
attrsTransform: []
|
|
451
|
+
},
|
|
452
|
+
[r.DATE_TIME]: {
|
|
453
|
+
searchCmpKey: o.SearchDateTime,
|
|
454
|
+
attrsTransform: []
|
|
455
|
+
},
|
|
456
|
+
[r.TIME]: {
|
|
457
|
+
searchCmpKey: o.SearchTime,
|
|
458
|
+
attrsTransform: []
|
|
459
|
+
},
|
|
460
|
+
[r.INTEGER]: {
|
|
461
|
+
searchCmpKey: o.SearchNumberInput,
|
|
462
|
+
attrsTransform: []
|
|
463
|
+
},
|
|
464
|
+
[r.DOUBLE]: {
|
|
465
|
+
searchCmpKey: o.SearchStringNumberInput,
|
|
466
|
+
attrsTransform: []
|
|
467
|
+
},
|
|
468
|
+
[r.LONG]: {
|
|
469
|
+
searchCmpKey: o.SearchNumberInput,
|
|
470
|
+
attrsTransform: []
|
|
471
|
+
},
|
|
472
|
+
[r.DECIMAL]: {
|
|
473
|
+
searchCmpKey: o.SearchStringNumberInput,
|
|
474
|
+
attrsTransform: []
|
|
475
|
+
},
|
|
476
|
+
[r.BOOLEAN]: {
|
|
477
|
+
searchCmpKey: o.SearchSwitch,
|
|
478
|
+
attrsTransform: []
|
|
479
|
+
},
|
|
480
|
+
[r.ENUM]: {
|
|
481
|
+
searchCmpKey: o.SearchSelect,
|
|
482
|
+
attrsTransform: []
|
|
483
|
+
},
|
|
484
|
+
[r.ENUM_MULTI]: {
|
|
485
|
+
searchCmpKey: o.SearchSelect,
|
|
486
|
+
attrsTransform: []
|
|
487
|
+
},
|
|
488
|
+
[r.ORG_MULTI]: {
|
|
489
|
+
searchCmpKey: o.SearchSelectDepartment,
|
|
490
|
+
attrsTransform: []
|
|
491
|
+
},
|
|
492
|
+
[r.USER_MULTI]: {
|
|
493
|
+
searchCmpKey: o.SearchUserSelect,
|
|
494
|
+
attrsTransform: []
|
|
495
|
+
},
|
|
496
|
+
[r.ORG]: {
|
|
497
|
+
searchCmpKey: o.SearchSelectDepartment,
|
|
498
|
+
attrsTransform: []
|
|
499
|
+
},
|
|
500
|
+
[r.USER]: {
|
|
501
|
+
searchCmpKey: o.SearchUserSelect,
|
|
502
|
+
attrsTransform: []
|
|
503
|
+
},
|
|
504
|
+
[r.REF_MULTI]: {
|
|
505
|
+
searchCmpKey: o.SearchSelect,
|
|
506
|
+
attrsTransform: [
|
|
507
|
+
{
|
|
508
|
+
from: "refModelType",
|
|
509
|
+
to: "refModelType"
|
|
510
|
+
}
|
|
511
|
+
]
|
|
512
|
+
},
|
|
513
|
+
[r.REF]: {
|
|
514
|
+
searchCmpKey: o.SearchSelect,
|
|
515
|
+
attrsTransform: [
|
|
516
|
+
{
|
|
517
|
+
from: "refModelType",
|
|
518
|
+
to: "refModelType"
|
|
519
|
+
}
|
|
520
|
+
]
|
|
521
|
+
},
|
|
522
|
+
[r.RDO_REF]: {
|
|
523
|
+
searchCmpKey: o.SearchRdoSelect,
|
|
524
|
+
attrsTransform: []
|
|
525
|
+
},
|
|
526
|
+
[r.TRANSACTION]: {
|
|
527
|
+
searchCmpKey: o.SearchTransaction,
|
|
528
|
+
attrsTransform: []
|
|
529
|
+
},
|
|
530
|
+
[r.PRINTER]: {
|
|
531
|
+
searchCmpKey: o.SearchPrinter,
|
|
532
|
+
attrsTransform: []
|
|
533
|
+
},
|
|
534
|
+
[r.RANGE_USER]: {
|
|
535
|
+
searchCmpKey: o.SearchSelectRangUser,
|
|
536
|
+
attrsTransform: []
|
|
537
|
+
},
|
|
538
|
+
[r.MESSAGE_TMPL]: {
|
|
539
|
+
searchCmpKey: o.SearchSelect,
|
|
540
|
+
attrsTransform: []
|
|
541
|
+
},
|
|
542
|
+
[r.LABEL_TEMPLATE_REF]: {
|
|
543
|
+
searchCmpKey: o.SearchTmplTreeSelect,
|
|
544
|
+
attrsTransform: []
|
|
545
|
+
},
|
|
546
|
+
[r.DOCUMENT_TEMPLATE]: {
|
|
547
|
+
searchCmpKey: o.SearchTmplTreeSelect,
|
|
548
|
+
attrsTransform: []
|
|
549
|
+
},
|
|
550
|
+
[r.ONLINE_FORM_TEMPLATE]: {
|
|
551
|
+
searchCmpKey: o.SearchTmplTreeSelect,
|
|
552
|
+
attrsTransform: []
|
|
553
|
+
},
|
|
554
|
+
[r.E_DHR_TEMPLATE]: {
|
|
555
|
+
searchCmpKey: o.SearchTmplTreeSelect,
|
|
556
|
+
attrsTransform: []
|
|
557
|
+
},
|
|
558
|
+
[r.Biz_Process]: {
|
|
559
|
+
searchCmpKey: o.SearchBizProcess,
|
|
560
|
+
attrsTransform: []
|
|
561
|
+
}
|
|
562
|
+
})[t];
|
|
563
|
+
function J(t = [], E = "", a = !1) {
|
|
564
|
+
return [].concat(
|
|
565
|
+
...t.map((n) => {
|
|
566
|
+
const l = n.materialType === A.MaterialSubTableModalField ? `modalfield_${n.id}` : n.id, T = /^modalBody_/.test(n.id) ? "undefined" : l;
|
|
567
|
+
n.path = `${E}|${T}`, n.inSubTable = a || !!(/^modal_/.test(n.id) && n.props?.isSubTableModal);
|
|
568
|
+
const f = [...n.children || []];
|
|
569
|
+
return n.type === "workflow-nodes" && n.props && (n.props.specModalInfo && f.push(n.props.specModalInfo), n.props.workflowModalInfo && f.push(n.props.workflowModalInfo)), [].concat(
|
|
570
|
+
{
|
|
571
|
+
id: n.id,
|
|
572
|
+
key: l,
|
|
573
|
+
name: n.name,
|
|
574
|
+
customName: n.alias,
|
|
575
|
+
path: n.path,
|
|
576
|
+
type: n.type,
|
|
577
|
+
inSubTable: n.inSubTable
|
|
578
|
+
},
|
|
579
|
+
J(f, n.path, n.inSubTable ?? !1)
|
|
580
|
+
);
|
|
581
|
+
})
|
|
582
|
+
);
|
|
583
|
+
}
|
|
584
|
+
const Rr = (t) => ({
|
|
585
|
+
[r.TEXT]: {
|
|
586
|
+
filterArr: [r.TEXT]
|
|
587
|
+
},
|
|
588
|
+
[r.LONG_TEXT]: {
|
|
589
|
+
filterArr: [r.TEXT, r.LONG_TEXT]
|
|
590
|
+
},
|
|
591
|
+
[r.INTEGER]: {
|
|
592
|
+
filterArr: [r.INTEGER]
|
|
593
|
+
},
|
|
594
|
+
[r.LONG]: {
|
|
595
|
+
filterArr: [r.INTEGER, r.LONG]
|
|
596
|
+
},
|
|
597
|
+
[r.DOUBLE]: {
|
|
598
|
+
filterArr: [r.DOUBLE, r.DECIMAL]
|
|
599
|
+
},
|
|
600
|
+
[r.DECIMAL]: {
|
|
601
|
+
filterArr: [r.DECIMAL]
|
|
602
|
+
},
|
|
603
|
+
[r.BOOLEAN]: {
|
|
604
|
+
filterArr: [r.BOOLEAN]
|
|
605
|
+
},
|
|
606
|
+
[r.DATE]: {
|
|
607
|
+
filterArr: [r.DATE]
|
|
608
|
+
},
|
|
609
|
+
[r.TIME]: {
|
|
610
|
+
filterArr: [r.TIME]
|
|
611
|
+
},
|
|
612
|
+
[r.DATE_TIME]: {
|
|
613
|
+
filterArr: [r.DATE_TIME]
|
|
614
|
+
},
|
|
615
|
+
[r.IMAGE]: {
|
|
616
|
+
filterArr: [r.IMAGE]
|
|
617
|
+
},
|
|
618
|
+
[r.ATTACHMENT]: {
|
|
619
|
+
filterArr: [r.ATTACHMENT]
|
|
620
|
+
},
|
|
621
|
+
[r.MASTERSLAVE]: {
|
|
622
|
+
filterArr: [r.MASTERSLAVE],
|
|
623
|
+
equal: !0
|
|
624
|
+
},
|
|
625
|
+
[r.USER]: {
|
|
626
|
+
filterArr: [r.USER]
|
|
627
|
+
},
|
|
628
|
+
[r.USER_MULTI]: {
|
|
629
|
+
filterArr: [r.USER, r.USER_MULTI]
|
|
630
|
+
},
|
|
631
|
+
[r.ORG]: {
|
|
632
|
+
filterArr: [r.ORG]
|
|
633
|
+
},
|
|
634
|
+
[r.ORG_MULTI]: {
|
|
635
|
+
filterArr: [r.ORG, r.ORG_MULTI]
|
|
636
|
+
},
|
|
637
|
+
[r.ENUM]: {
|
|
638
|
+
filterArr: [r.ENUM],
|
|
639
|
+
equal: !0
|
|
640
|
+
},
|
|
641
|
+
[r.ENUM_MULTI]: {
|
|
642
|
+
filterArr: [r.ENUM, r.ENUM_MULTI],
|
|
643
|
+
equal: !0
|
|
644
|
+
},
|
|
645
|
+
[r.REF]: {
|
|
646
|
+
filterArr: [r.REF],
|
|
647
|
+
equal: !0
|
|
648
|
+
},
|
|
649
|
+
[r.REF_MULTI]: {
|
|
650
|
+
filterArr: [r.REF, r.REF_MULTI],
|
|
651
|
+
equal: !0
|
|
652
|
+
},
|
|
653
|
+
[r.RDO_REF]: {
|
|
654
|
+
filterArr: [r.RDO_REF],
|
|
655
|
+
equal: !0
|
|
656
|
+
},
|
|
657
|
+
[r.LABEL_TEMPLATE_REF]: {
|
|
658
|
+
filterArr: [r.LABEL_TEMPLATE_REF]
|
|
659
|
+
},
|
|
660
|
+
[r.DOCUMENT_TEMPLATE]: {
|
|
661
|
+
filterArr: [r.DOCUMENT_TEMPLATE]
|
|
662
|
+
},
|
|
663
|
+
[r.SERIALRULE]: {
|
|
664
|
+
filterArr: [r.SERIALRULE]
|
|
665
|
+
},
|
|
666
|
+
[r.PRINTER]: {
|
|
667
|
+
filterArr: [r.PRINTER]
|
|
668
|
+
},
|
|
669
|
+
[r.MESSAGE_TMPL]: {
|
|
670
|
+
filterArr: [r.MESSAGE_TMPL]
|
|
671
|
+
},
|
|
672
|
+
[r.RANGE_USER]: {
|
|
673
|
+
filterArr: [r.RANGE_USER]
|
|
674
|
+
},
|
|
675
|
+
[r.SIGNATURE]: {
|
|
676
|
+
filterArr: [r.SIGNATURE]
|
|
677
|
+
},
|
|
678
|
+
[r.ONLINE_FORM_TEMPLATE]: {
|
|
679
|
+
filterArr: [r.ONLINE_FORM_TEMPLATE]
|
|
680
|
+
},
|
|
681
|
+
[r.E_DHR_TEMPLATE]: {
|
|
682
|
+
filterArr: [r.E_DHR_TEMPLATE]
|
|
683
|
+
},
|
|
684
|
+
// [FIELD_TYPE.ONLINE_FORM]: {
|
|
685
|
+
// filterArr: [FIELD_TYPE.ONLINE_FORM],
|
|
686
|
+
// },
|
|
687
|
+
[r.ESOP]: {
|
|
688
|
+
filterArr: [r.ESOP]
|
|
643
689
|
}
|
|
644
|
-
},
|
|
645
|
-
n.TEXT,
|
|
646
|
-
n.LONG_TEXT,
|
|
647
|
-
n.INTEGER,
|
|
648
|
-
n.LONG,
|
|
649
|
-
n.DOUBLE,
|
|
650
|
-
n.DECIMAL,
|
|
651
|
-
n.BOOLEAN,
|
|
652
|
-
n.DATE,
|
|
653
|
-
n.DATE_TIME,
|
|
654
|
-
n.MASTERSLAVE
|
|
655
|
-
], me = [
|
|
690
|
+
})[t], ur = (t) => [
|
|
656
691
|
{
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
label: "",
|
|
660
|
-
group: i.COMPONENTDEPENDENCY,
|
|
661
|
-
hidden: (t) => t.materialType === c.MaterialEmbedTableField || t.type === G.Form && t.preLocation ? !0 : d(t) || t.props.field === "operating_state_"
|
|
692
|
+
old: u.String,
|
|
693
|
+
new: R.LongText
|
|
662
694
|
},
|
|
663
695
|
{
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
label: "sys.pageDesigner.submitWhenHidden",
|
|
667
|
-
group: i.FIELD_CONFIG,
|
|
668
|
-
hidden(t) {
|
|
669
|
-
return !t.isField || !t.props.field || t.props.bindFieldKey || t.props.fieldReadonly || t.materialType === c.cardListFormField || [
|
|
670
|
-
n.EXPRESSION_CONDITION,
|
|
671
|
-
n.SERIALRULE,
|
|
672
|
-
n.LABEL_TEMPLATE
|
|
673
|
-
].includes(t.props.fieldType) || !q.includes(t.props.fieldType);
|
|
674
|
-
}
|
|
696
|
+
old: u.Number,
|
|
697
|
+
new: R.Double
|
|
675
698
|
},
|
|
676
699
|
{
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
label: "sys.pageDesigner.deviceConnectivity",
|
|
680
|
-
group: i.FIELD_CONFIG,
|
|
681
|
-
hidden: (t) => t.platform !== s.WEB || ![c.MaterialFormField].includes(t.materialType) || !w.includes(t.props.fieldType)
|
|
682
|
-
}
|
|
683
|
-
];
|
|
684
|
-
class O {
|
|
685
|
-
events = {};
|
|
686
|
-
propEditors = {};
|
|
687
|
-
schema = {};
|
|
688
|
-
callback = {};
|
|
689
|
-
beforeCreate = {};
|
|
690
|
-
styleEditors = {};
|
|
691
|
-
designerConfig = {};
|
|
692
|
-
hooks = {};
|
|
693
|
-
whiteList = {};
|
|
694
|
-
blackList = {};
|
|
695
|
-
}
|
|
696
|
-
const m = new O(), A = new O(), h = new O();
|
|
697
|
-
function ee(t) {
|
|
698
|
-
switch (t) {
|
|
699
|
-
case s.WEB:
|
|
700
|
-
return m;
|
|
701
|
-
case s.MOBILE:
|
|
702
|
-
return A;
|
|
703
|
-
case s.PAD:
|
|
704
|
-
return h;
|
|
705
|
-
default:
|
|
706
|
-
return m;
|
|
700
|
+
old: u.Boolean,
|
|
701
|
+
new: R.Boolen
|
|
707
702
|
}
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
703
|
+
].find((a) => a.old == t)?.new ?? t, mr = (t) => ({
|
|
704
|
+
[r.TEXT]: {
|
|
705
|
+
filterArr: [r.TEXT, r.LONG_TEXT]
|
|
706
|
+
},
|
|
707
|
+
[r.LONG_TEXT]: {
|
|
708
|
+
filterArr: [r.LONG_TEXT]
|
|
709
|
+
},
|
|
710
|
+
[r.INTEGER]: {
|
|
711
|
+
filterArr: [
|
|
712
|
+
r.INTEGER,
|
|
713
|
+
r.LONG,
|
|
714
|
+
r.DOUBLE,
|
|
715
|
+
r.TEXT,
|
|
716
|
+
r.LONG_TEXT
|
|
717
|
+
]
|
|
718
|
+
},
|
|
719
|
+
[r.LONG]: {
|
|
720
|
+
filterArr: [
|
|
721
|
+
r.LONG,
|
|
722
|
+
r.TEXT,
|
|
723
|
+
r.LONG_TEXT,
|
|
724
|
+
r.DOUBLE
|
|
725
|
+
]
|
|
726
|
+
},
|
|
727
|
+
[r.DOUBLE]: {
|
|
728
|
+
filterArr: [r.DOUBLE, r.TEXT, r.LONG_TEXT]
|
|
729
|
+
},
|
|
730
|
+
[r.DECIMAL]: {
|
|
731
|
+
filterArr: [r.DECIMAL, r.TEXT, r.LONG_TEXT]
|
|
732
|
+
},
|
|
733
|
+
// [FIELD_TYPE.BOOLEAN]: {
|
|
734
|
+
// filterArr: [FIELD_TYPE.BOOLEAN],
|
|
735
|
+
// },
|
|
736
|
+
[r.DATE]: {
|
|
737
|
+
filterArr: [r.DATE]
|
|
738
|
+
},
|
|
739
|
+
[r.TIME]: {
|
|
740
|
+
filterArr: [r.TIME]
|
|
741
|
+
},
|
|
742
|
+
[r.DATE_TIME]: {
|
|
743
|
+
filterArr: [r.DATE_TIME, r.DATE, r.TIME]
|
|
744
|
+
},
|
|
745
|
+
[r.IMAGE]: {
|
|
746
|
+
filterArr: [r.IMAGE]
|
|
747
|
+
},
|
|
748
|
+
[r.ATTACHMENT]: {
|
|
749
|
+
filterArr: [r.ATTACHMENT]
|
|
750
|
+
},
|
|
751
|
+
[r.MASTERSLAVE]: {
|
|
752
|
+
filterArr: [r.MASTERSLAVE],
|
|
753
|
+
equal: !0
|
|
754
|
+
},
|
|
755
|
+
[r.USER]: {
|
|
756
|
+
filterArr: [r.USER, r.USER_MULTI]
|
|
757
|
+
},
|
|
758
|
+
[r.USER_MULTI]: {
|
|
759
|
+
filterArr: [r.USER_MULTI]
|
|
760
|
+
},
|
|
761
|
+
[r.ORG]: {
|
|
762
|
+
filterArr: [r.ORG, r.ORG_MULTI]
|
|
763
|
+
},
|
|
764
|
+
[r.ORG_MULTI]: {
|
|
765
|
+
filterArr: [r.ORG_MULTI]
|
|
766
|
+
},
|
|
767
|
+
[r.ENUM]: {
|
|
768
|
+
filterArr: [r.ENUM, r.ENUM_MULTI],
|
|
769
|
+
equal: !0
|
|
770
|
+
},
|
|
771
|
+
[r.ENUM_MULTI]: {
|
|
772
|
+
filterArr: [r.ENUM_MULTI],
|
|
773
|
+
equal: !0
|
|
774
|
+
},
|
|
775
|
+
[r.REF]: {
|
|
776
|
+
filterArr: [r.REF, r.REF_MULTI],
|
|
777
|
+
equal: !0
|
|
778
|
+
},
|
|
779
|
+
[r.REF_MULTI]: {
|
|
780
|
+
filterArr: [r.REF_MULTI],
|
|
781
|
+
equal: !0
|
|
782
|
+
},
|
|
783
|
+
[r.RDO_REF]: {
|
|
784
|
+
filterArr: [r.RDO_REF],
|
|
785
|
+
equal: !0
|
|
786
|
+
},
|
|
787
|
+
[r.ESOP]: {
|
|
788
|
+
filterArr: [r.ESOP]
|
|
789
|
+
},
|
|
790
|
+
[r.TRANSACTION]: {
|
|
791
|
+
filterArr: [r.TRANSACTION]
|
|
792
|
+
},
|
|
793
|
+
[r.LABEL_TEMPLATE_REF]: {
|
|
794
|
+
filterArr: [r.LABEL_TEMPLATE_REF]
|
|
795
|
+
},
|
|
796
|
+
[r.DOCUMENT_TEMPLATE]: {
|
|
797
|
+
filterArr: [r.DOCUMENT_TEMPLATE]
|
|
798
|
+
},
|
|
799
|
+
[r.SERIALRULE]: {
|
|
800
|
+
filterArr: [r.SERIALRULE]
|
|
801
|
+
},
|
|
802
|
+
[r.PRINTER]: {
|
|
803
|
+
filterArr: [r.PRINTER]
|
|
804
|
+
},
|
|
805
|
+
[r.MESSAGE_TMPL]: {
|
|
806
|
+
filterArr: [r.MESSAGE_TMPL]
|
|
807
|
+
},
|
|
808
|
+
[r.RANGE_USER]: {
|
|
809
|
+
filterArr: [r.RANGE_USER]
|
|
810
|
+
},
|
|
811
|
+
// [FIELD_TYPE.SIGNATURE]: {
|
|
812
|
+
// filterArr: [FIELD_TYPE.SIGNATURE],
|
|
813
|
+
// },
|
|
814
|
+
[r.ONLINE_FORM_TEMPLATE]: {
|
|
815
|
+
filterArr: [r.ONLINE_FORM_TEMPLATE]
|
|
816
|
+
},
|
|
817
|
+
[r.E_DHR_TEMPLATE]: {
|
|
818
|
+
filterArr: [r.E_DHR_TEMPLATE]
|
|
725
819
|
}
|
|
820
|
+
// [FIELD_TYPE.ONLINE_FORM]: {
|
|
821
|
+
// filterArr: [FIELD_TYPE.ONLINE_FORM],
|
|
822
|
+
// },
|
|
823
|
+
})[t];
|
|
824
|
+
function Sr(t, E, a) {
|
|
825
|
+
return t.type === a && q(t, "preLocation") && new RegExp(`^${E}_`).test(t.preLocation);
|
|
726
826
|
}
|
|
727
|
-
function
|
|
728
|
-
C(m, t);
|
|
729
|
-
}
|
|
730
|
-
function Oe(t) {
|
|
731
|
-
C(A, t);
|
|
732
|
-
}
|
|
733
|
-
function Ae(t) {
|
|
734
|
-
C(h, t);
|
|
735
|
-
}
|
|
736
|
-
function he(t, o, r) {
|
|
737
|
-
return t.type === r && k(t, "preLocation") && new RegExp(`^${o}_`).test(t.preLocation);
|
|
738
|
-
}
|
|
739
|
-
function te(t) {
|
|
827
|
+
function dr(t) {
|
|
740
828
|
return [
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
829
|
+
A.MaterialFormField,
|
|
830
|
+
A.MaterialSubTableModalField,
|
|
831
|
+
A.DescriptionsFormField
|
|
744
832
|
].includes(t.materialType);
|
|
745
833
|
}
|
|
746
|
-
function
|
|
747
|
-
const
|
|
748
|
-
for (const
|
|
749
|
-
const
|
|
750
|
-
|
|
834
|
+
function Z(t) {
|
|
835
|
+
const E = /^\$\{(\S+)\}$/;
|
|
836
|
+
for (const a in t) {
|
|
837
|
+
const n = t[a];
|
|
838
|
+
E.test(n) && (t[a] = m(n.match(E)?.[1]));
|
|
751
839
|
}
|
|
752
840
|
}
|
|
753
|
-
function
|
|
754
|
-
const
|
|
755
|
-
|
|
756
|
-
const
|
|
757
|
-
return
|
|
841
|
+
function Or(t) {
|
|
842
|
+
const E = H(t);
|
|
843
|
+
E.id = S(E.type), E.alias = m(E.name), E.formItem && (E.props.label = m(E.name));
|
|
844
|
+
const a = z(E.platform);
|
|
845
|
+
return a && a.beforeCreate?.[E.type]?.(E), Z(E.props), E;
|
|
758
846
|
}
|
|
759
|
-
function
|
|
760
|
-
return t.map((
|
|
847
|
+
function rr(t) {
|
|
848
|
+
return t.map((E) => ({ ...E })).filter((E) => (E.props?.model || (E.children = E.children && rr(E.children)), U(E)));
|
|
761
849
|
}
|
|
762
|
-
const
|
|
763
|
-
function
|
|
850
|
+
const U = (t) => !t.formItem;
|
|
851
|
+
function Mr(t) {
|
|
852
|
+
t.children?.length && W.eachTree(t.children, (E) => (E.id = S(E.type), E));
|
|
853
|
+
}
|
|
854
|
+
function hr(t) {
|
|
855
|
+
const {
|
|
856
|
+
field: E,
|
|
857
|
+
fieldId: a,
|
|
858
|
+
fieldName: n,
|
|
859
|
+
fieldCodeChain: l,
|
|
860
|
+
fieldType: T,
|
|
861
|
+
label: f,
|
|
862
|
+
bindModelKey: K,
|
|
863
|
+
modelKey: y,
|
|
864
|
+
returnType: P,
|
|
865
|
+
type: g,
|
|
866
|
+
preLocation: F,
|
|
867
|
+
isFieldModel: x,
|
|
868
|
+
platform: Q
|
|
869
|
+
} = t, B = {
|
|
870
|
+
id: S(T),
|
|
871
|
+
name: `sys.pageDesigner.fieldCmp.${g || T}`,
|
|
872
|
+
icon: V[g || T],
|
|
873
|
+
isSearchField: !0,
|
|
874
|
+
preLocation: F,
|
|
875
|
+
platform: Q
|
|
876
|
+
}, L = [r.AGG, r.EXPRESSION].includes(T) ? P : T;
|
|
877
|
+
t.fieldType = L;
|
|
878
|
+
const { searchCmpKey: Y, attrsTransform: k } = w(L) || {};
|
|
879
|
+
if (!Y)
|
|
880
|
+
return;
|
|
881
|
+
const X = Object.fromEntries(
|
|
882
|
+
k.concat([...v.ope]).map((c) => {
|
|
883
|
+
const C = t[c.from];
|
|
884
|
+
return [c.to, c.transform ? c.transform(C) : C];
|
|
885
|
+
})
|
|
886
|
+
);
|
|
887
|
+
return D(
|
|
888
|
+
// searchCmp.props,
|
|
889
|
+
{
|
|
890
|
+
field: E,
|
|
891
|
+
fieldId: a,
|
|
892
|
+
fieldType: L,
|
|
893
|
+
fieldName: n,
|
|
894
|
+
fieldCodeChain: l,
|
|
895
|
+
label: f,
|
|
896
|
+
modelKey: y,
|
|
897
|
+
bindModelKey: K,
|
|
898
|
+
disabled: !1,
|
|
899
|
+
readonly: !1,
|
|
900
|
+
modeldata: {
|
|
901
|
+
modelCategory: t.modelCategory,
|
|
902
|
+
modelType: t.modelType
|
|
903
|
+
},
|
|
904
|
+
isFieldModel: x,
|
|
905
|
+
...X
|
|
906
|
+
}
|
|
907
|
+
// searchCmp.props.placeholder && {
|
|
908
|
+
// placeholder: t(searchCmp.props.placeholder),
|
|
909
|
+
// },
|
|
910
|
+
), D(B);
|
|
911
|
+
}
|
|
912
|
+
function er(t) {
|
|
764
913
|
return t + "px";
|
|
765
914
|
}
|
|
766
|
-
function
|
|
915
|
+
function i(t) {
|
|
767
916
|
return N(t) ? "" : `${t}px !important`;
|
|
768
917
|
}
|
|
769
|
-
function
|
|
918
|
+
function b(t) {
|
|
770
919
|
return N(t) ? "" : `${t} !important`;
|
|
771
920
|
}
|
|
772
|
-
function
|
|
921
|
+
function s(t) {
|
|
773
922
|
return !t || N(t.borderWidth) ? "" : `${t.borderWidth}px ${t.borderStyle || "solid"} ${t.borderColor || "transparent"} !important`;
|
|
774
923
|
}
|
|
775
|
-
const
|
|
924
|
+
const tr = {
|
|
776
925
|
fontAttrs: [
|
|
777
926
|
"fontWeight",
|
|
778
927
|
"fontSize",
|
|
@@ -794,28 +943,28 @@ const ie = {
|
|
|
794
943
|
},
|
|
795
944
|
fontSize: {
|
|
796
945
|
attr: "fontSize",
|
|
797
|
-
callback: (t) => t ?
|
|
946
|
+
callback: (t) => t ? er(t) : ""
|
|
798
947
|
},
|
|
799
948
|
align: {
|
|
800
949
|
attr: "textAlign"
|
|
801
950
|
}
|
|
802
951
|
}
|
|
803
952
|
};
|
|
804
|
-
function
|
|
953
|
+
function _r(t, E = tr) {
|
|
805
954
|
if (!t) return {};
|
|
806
|
-
const
|
|
807
|
-
return Object.assign(
|
|
808
|
-
const { attr:
|
|
809
|
-
|
|
810
|
-
}),
|
|
955
|
+
const a = {};
|
|
956
|
+
return Object.assign(a, $(t, E.fontAttrs)), typeof E.mapAttrs == "object" && Object.keys(E.mapAttrs).forEach((n) => {
|
|
957
|
+
const { attr: l, callback: T } = E.mapAttrs[n];
|
|
958
|
+
a[l] = typeof T == "function" ? T(t[n]) : t[n];
|
|
959
|
+
}), a;
|
|
811
960
|
}
|
|
812
|
-
function
|
|
813
|
-
const
|
|
814
|
-
for (const
|
|
815
|
-
|
|
816
|
-
return
|
|
961
|
+
function gr(t = {}) {
|
|
962
|
+
const E = {};
|
|
963
|
+
for (const a in t)
|
|
964
|
+
E[a] = ar(a, t[a]);
|
|
965
|
+
return E;
|
|
817
966
|
}
|
|
818
|
-
const
|
|
967
|
+
const Er = [
|
|
819
968
|
"opacity",
|
|
820
969
|
"zIndex",
|
|
821
970
|
"fontWeight",
|
|
@@ -828,423 +977,109 @@ const ae = [
|
|
|
828
977
|
"fontStyle",
|
|
829
978
|
"textDecorationLine"
|
|
830
979
|
];
|
|
831
|
-
function
|
|
832
|
-
return
|
|
980
|
+
function ar(t, E) {
|
|
981
|
+
return G(E) || N(E) ? "" : Er.includes(t) ? E + " !important" : E + "px !important";
|
|
833
982
|
}
|
|
834
|
-
const
|
|
983
|
+
const nr = {
|
|
835
984
|
left: "flex-start",
|
|
836
985
|
center: "center",
|
|
837
986
|
right: "flex-end",
|
|
838
987
|
justify: "space-between"
|
|
839
988
|
};
|
|
840
|
-
function
|
|
841
|
-
return
|
|
989
|
+
function Cr(t) {
|
|
990
|
+
return nr[t] || t;
|
|
842
991
|
}
|
|
843
|
-
function
|
|
992
|
+
function or(t) {
|
|
844
993
|
return {
|
|
845
|
-
position:
|
|
846
|
-
top:
|
|
847
|
-
left:
|
|
848
|
-
right:
|
|
849
|
-
bottom:
|
|
850
|
-
width:
|
|
851
|
-
height:
|
|
994
|
+
position: b(t.position),
|
|
995
|
+
top: i(t.top),
|
|
996
|
+
left: i(t.left),
|
|
997
|
+
right: i(t.right),
|
|
998
|
+
bottom: i(t.bottom),
|
|
999
|
+
width: i(t.width),
|
|
1000
|
+
height: i(t.height)
|
|
852
1001
|
};
|
|
853
1002
|
}
|
|
854
|
-
function
|
|
1003
|
+
function ir(t) {
|
|
855
1004
|
return {
|
|
856
|
-
backgroundColor:
|
|
857
|
-
marginTop:
|
|
858
|
-
marginRight:
|
|
859
|
-
marginBottom:
|
|
860
|
-
marginLeft:
|
|
861
|
-
paddingTop:
|
|
862
|
-
paddingRight:
|
|
863
|
-
paddingBottom:
|
|
864
|
-
paddingLeft:
|
|
1005
|
+
backgroundColor: b(t.backgroundColor),
|
|
1006
|
+
marginTop: i(t.marginTop),
|
|
1007
|
+
marginRight: i(t.marginRight),
|
|
1008
|
+
marginBottom: i(t.marginBottom),
|
|
1009
|
+
marginLeft: i(t.marginLeft),
|
|
1010
|
+
paddingTop: i(t.paddingTop),
|
|
1011
|
+
paddingRight: i(t.paddingRight),
|
|
1012
|
+
paddingBottom: i(t.paddingBottom),
|
|
1013
|
+
paddingLeft: i(t.paddingLeft)
|
|
865
1014
|
};
|
|
866
1015
|
}
|
|
867
|
-
function
|
|
1016
|
+
function Tr(t) {
|
|
868
1017
|
return {
|
|
869
|
-
borderLeft:
|
|
870
|
-
borderRight:
|
|
871
|
-
borderBottom:
|
|
872
|
-
borderTop:
|
|
873
|
-
borderTopRightRadius:
|
|
874
|
-
borderTopLeftRadius:
|
|
875
|
-
borderBottomRightRadius:
|
|
876
|
-
borderBottomLeftRadius:
|
|
1018
|
+
borderLeft: s(t.borderLeft),
|
|
1019
|
+
borderRight: s(t.borderRight),
|
|
1020
|
+
borderBottom: s(t.borderBottom),
|
|
1021
|
+
borderTop: s(t.borderTop),
|
|
1022
|
+
borderTopRightRadius: i(t.borderTopRightRadius),
|
|
1023
|
+
borderTopLeftRadius: i(t.borderTopLeftRadius),
|
|
1024
|
+
borderBottomRightRadius: i(t.borderBottomRightRadius),
|
|
1025
|
+
borderBottomLeftRadius: i(t.borderBottomLeftRadius)
|
|
877
1026
|
};
|
|
878
1027
|
}
|
|
879
|
-
function
|
|
880
|
-
const
|
|
881
|
-
...
|
|
882
|
-
...
|
|
883
|
-
...
|
|
1028
|
+
function Dr(t, E = []) {
|
|
1029
|
+
const a = {
|
|
1030
|
+
...or(t),
|
|
1031
|
+
...ir(t),
|
|
1032
|
+
...Tr(t)
|
|
884
1033
|
};
|
|
885
|
-
return
|
|
886
|
-
delete
|
|
887
|
-
}), Object.keys(
|
|
888
|
-
const
|
|
889
|
-
(
|
|
890
|
-
}),
|
|
1034
|
+
return E.forEach((n) => {
|
|
1035
|
+
delete a[n];
|
|
1036
|
+
}), Object.keys(a).forEach((n) => {
|
|
1037
|
+
const l = a[n];
|
|
1038
|
+
(G(l) || N(l)) && delete a[n];
|
|
1039
|
+
}), a;
|
|
891
1040
|
}
|
|
892
|
-
const
|
|
893
|
-
name: t,
|
|
894
|
-
type: o,
|
|
895
|
-
hiddenCallback: r,
|
|
896
|
-
filterOptionsCallback: l,
|
|
897
|
-
groupName: E
|
|
898
|
-
}) => [
|
|
899
|
-
// 组件类型
|
|
900
|
-
{
|
|
901
|
-
component: "bind-cmp-type-editor",
|
|
902
|
-
name: t,
|
|
903
|
-
label: "sys.pageDesigner.bindCmpStyleLabel",
|
|
904
|
-
group: E || i.FIELD_CONFIG,
|
|
905
|
-
hidden: r || ((p) => [
|
|
906
|
-
n.TEXT,
|
|
907
|
-
n.USER,
|
|
908
|
-
n.USER_MULTI,
|
|
909
|
-
n.ORG,
|
|
910
|
-
n.ORG_MULTI
|
|
911
|
-
].includes(p.props.fieldType) && (p.props.bindFieldKey || !te(p) || p.props.fieldReadonly) ? !0 : t === "selectType" && p.platform !== s.WEB),
|
|
912
|
-
_config: {
|
|
913
|
-
bindCmpStyleKey: o,
|
|
914
|
-
filterOptionsCallback: l
|
|
915
|
-
},
|
|
916
|
-
changeCallback(p) {
|
|
917
|
-
if (![
|
|
918
|
-
n.BOOLEAN,
|
|
919
|
-
n.USER,
|
|
920
|
-
n.USER_MULTI,
|
|
921
|
-
n.ORG,
|
|
922
|
-
n.ORG_MULTI,
|
|
923
|
-
n.DATA_TABLE_FORMULA
|
|
924
|
-
].includes(p.props.fieldType) && [
|
|
925
|
-
n.EXPRESSION,
|
|
926
|
-
n.AGG,
|
|
927
|
-
n.INTEGER,
|
|
928
|
-
n.LONG
|
|
929
|
-
].includes(p.props.fieldType)) {
|
|
930
|
-
p.props.currency = "¥", p.props.displayTimeType = "d:h:m:s";
|
|
931
|
-
return;
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
], _e = {
|
|
936
|
-
disabled: !1,
|
|
937
|
-
icon: "icon-park:all-application",
|
|
938
|
-
iconColor: "",
|
|
939
|
-
/**标题 */
|
|
940
|
-
title: "${sys.pageDesigner.button}",
|
|
941
|
-
buttonStyle: x.ORDINARY,
|
|
942
|
-
/**二次确认 */
|
|
943
|
-
confirm: !1,
|
|
944
|
-
confirmText: "",
|
|
945
|
-
// /**内置事件 */
|
|
946
|
-
// innerEvent: true,
|
|
947
|
-
/**系统事件类型 */
|
|
948
|
-
// sysMethedType: undefined,
|
|
949
|
-
// linkPage: '',
|
|
950
|
-
/**事件名称 */
|
|
951
|
-
// eventName: '',
|
|
952
|
-
hasIcon: !1,
|
|
953
|
-
hasText: !0,
|
|
954
|
-
type: Q.PRIMARY,
|
|
955
|
-
danger: !1,
|
|
956
|
-
size: R.DEFAULT,
|
|
957
|
-
enableCustomColor: !1,
|
|
958
|
-
backgroundColor: "",
|
|
959
|
-
fontColor: "",
|
|
960
|
-
...Z
|
|
961
|
-
}, Fe = [
|
|
962
|
-
{
|
|
963
|
-
component: "text-editor",
|
|
964
|
-
name: "title",
|
|
965
|
-
label: "sys.pageDesigner.buttonName",
|
|
966
|
-
group: i.BASIC,
|
|
967
|
-
_config: {
|
|
968
|
-
i18n: !0,
|
|
969
|
-
showCount: !0,
|
|
970
|
-
maxlength: 32
|
|
971
|
-
},
|
|
972
|
-
changeCallback: (t, o) => {
|
|
973
|
-
t.alias = o;
|
|
974
|
-
}
|
|
975
|
-
},
|
|
976
|
-
{
|
|
977
|
-
component: "button-type-editor",
|
|
978
|
-
name: {
|
|
979
|
-
type: "type",
|
|
980
|
-
danger: "danger",
|
|
981
|
-
icon: "icon",
|
|
982
|
-
label: "label",
|
|
983
|
-
hasText: "hasText",
|
|
984
|
-
hasIcon: "hasIcon"
|
|
985
|
-
},
|
|
986
|
-
label: "sys.pageDesigner.buttonType",
|
|
987
|
-
group: i.BUTTON
|
|
988
|
-
},
|
|
989
|
-
{
|
|
990
|
-
component: "icon-editor",
|
|
991
|
-
name: { icon: "icon", iconColor: "iconColor" },
|
|
992
|
-
label: "sys.pageDesigner.buttonIcon",
|
|
993
|
-
group: i.BUTTON,
|
|
994
|
-
// _config: {
|
|
995
|
-
// showColor: true,
|
|
996
|
-
// },
|
|
997
|
-
hidden: (t) => !t.props.hasIcon
|
|
998
|
-
},
|
|
999
|
-
{
|
|
1000
|
-
component: "radio-bgc-editor",
|
|
1001
|
-
name: "size",
|
|
1002
|
-
label: "sys.pageDesigner.buttonSize",
|
|
1003
|
-
group: i.BUTTON,
|
|
1004
|
-
_config: {
|
|
1005
|
-
options: Object.values(R).map((t) => ({ value: t, label: "sys.pageDesigner." + t }))
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
], Be = [
|
|
1009
|
-
// {
|
|
1010
|
-
// component: 'permission-switch-editor',
|
|
1011
|
-
// label: 'sys.permission',
|
|
1012
|
-
// group: PropGroup.PERMISSION,
|
|
1013
|
-
// hidden: (widget) => {
|
|
1014
|
-
// return hiddenButtonProps(widget);
|
|
1015
|
-
// },
|
|
1016
|
-
// },
|
|
1017
|
-
{
|
|
1018
|
-
component: "permission-editor",
|
|
1019
|
-
label: "",
|
|
1020
|
-
group: i.PERMISSION,
|
|
1021
|
-
hidden: (t) => d(t)
|
|
1022
|
-
}
|
|
1023
|
-
], Ge = {
|
|
1024
|
-
disabled: !1,
|
|
1025
|
-
buttonTheme: P.DEFAULT,
|
|
1026
|
-
buttonType: U.DEFAULT,
|
|
1027
|
-
icon: "",
|
|
1028
|
-
iconColor: "",
|
|
1029
|
-
confirm: !1,
|
|
1030
|
-
confirmText: "",
|
|
1031
|
-
buttonStyle: x.ORDINARY,
|
|
1032
|
-
enableCustomColor: !1,
|
|
1033
|
-
backgroundColor: "",
|
|
1034
|
-
fontColor: ""
|
|
1035
|
-
}, Qe = [
|
|
1036
|
-
// {
|
|
1037
|
-
// component: 'switch-editor',
|
|
1038
|
-
// name: 'disabled',
|
|
1039
|
-
// label: 'sys.pageDesigner.disabled',
|
|
1040
|
-
// group: PropGroup.DISPLAY,
|
|
1041
|
-
// hidden: (widget): boolean => {
|
|
1042
|
-
// return hiddenButtonProps(widget);
|
|
1043
|
-
// },
|
|
1044
|
-
// },
|
|
1045
|
-
// {
|
|
1046
|
-
// component: 'radio-editor',
|
|
1047
|
-
// name: 'basic.buttonType',
|
|
1048
|
-
// label: 'sys.pageDesigner.buttonType',
|
|
1049
|
-
// group: PropGroup.ButtonStyle,
|
|
1050
|
-
// _config: {
|
|
1051
|
-
// options: Object.values(ButtonColorType).map((i) => {
|
|
1052
|
-
// return { value: i, label: 'sys.pageDesigner.' + i };
|
|
1053
|
-
// }),
|
|
1054
|
-
// },
|
|
1055
|
-
// hidden: (widget): boolean => {
|
|
1056
|
-
// return hiddenButtonProps(widget);
|
|
1057
|
-
// },
|
|
1058
|
-
// },
|
|
1059
|
-
// {
|
|
1060
|
-
// component: 'radio-editor',
|
|
1061
|
-
// name: 'buttonStyle',
|
|
1062
|
-
// label: 'sys.pageDesigner.buttonStyle',
|
|
1063
|
-
// group: PropGroup.ButtonStyle,
|
|
1064
|
-
// hidden: (widget): boolean => {
|
|
1065
|
-
// return hiddenButtonProps(widget) || platform.value === Platform.MOBILE;
|
|
1066
|
-
// },
|
|
1067
|
-
// _config: {
|
|
1068
|
-
// options: Object.values(ButtonStyle).map((key) => {
|
|
1069
|
-
// return { label: 'sys.pageDesigner.' + key, value: key };
|
|
1070
|
-
// }),
|
|
1071
|
-
// },
|
|
1072
|
-
// },
|
|
1073
|
-
{
|
|
1074
|
-
component: "button-type-editor",
|
|
1075
|
-
name: {
|
|
1076
|
-
type: "type",
|
|
1077
|
-
danger: "danger",
|
|
1078
|
-
icon: "icon",
|
|
1079
|
-
label: "label",
|
|
1080
|
-
hasText: "hasText",
|
|
1081
|
-
hasIcon: "hasIcon"
|
|
1082
|
-
},
|
|
1083
|
-
label: "sys.pageDesigner.buttonType",
|
|
1084
|
-
group: i.ButtonStyle,
|
|
1085
|
-
hidden: (t) => d(t)
|
|
1086
|
-
},
|
|
1087
|
-
{
|
|
1088
|
-
component: "icon-editor",
|
|
1089
|
-
name: { icon: "icon", iconColor: "iconColor" },
|
|
1090
|
-
label: "sys.pageDesigner.buttonIcon",
|
|
1091
|
-
group: i.ButtonStyle,
|
|
1092
|
-
hidden: (t) => !t.props.hasIcon || d(t),
|
|
1093
|
-
_config: {
|
|
1094
|
-
clearable: !1
|
|
1095
|
-
}
|
|
1096
|
-
},
|
|
1097
|
-
{
|
|
1098
|
-
component: "switch-editor",
|
|
1099
|
-
name: "enableCustomColor",
|
|
1100
|
-
label: "sys.pageDesigner.customBtnColor",
|
|
1101
|
-
group: i.ButtonStyle,
|
|
1102
|
-
hidden: (t) => d(t)
|
|
1103
|
-
},
|
|
1104
|
-
{
|
|
1105
|
-
component: "button-color-editor",
|
|
1106
|
-
name: "fontColor",
|
|
1107
|
-
label: "sys.pageDesigner.buttonNameColor",
|
|
1108
|
-
group: i.ButtonStyle,
|
|
1109
|
-
_config: {
|
|
1110
|
-
isInRow: !0
|
|
1111
|
-
},
|
|
1112
|
-
hidden: (t) => !t.props.enableCustomColor
|
|
1113
|
-
},
|
|
1114
|
-
{
|
|
1115
|
-
component: "button-color-editor",
|
|
1116
|
-
name: "backgroundColor",
|
|
1117
|
-
label: "sys.pageDesigner.buttonStyleColor",
|
|
1118
|
-
group: i.ButtonStyle,
|
|
1119
|
-
_config: {
|
|
1120
|
-
isInRow: !0
|
|
1121
|
-
},
|
|
1122
|
-
hidden: (t) => !t.props.enableCustomColor || t.props.type === "link"
|
|
1123
|
-
},
|
|
1124
|
-
{
|
|
1125
|
-
component: "radio-bgc-editor",
|
|
1126
|
-
name: "size",
|
|
1127
|
-
label: "sys.pageDesigner.buttonSize",
|
|
1128
|
-
group: i.ButtonStyle,
|
|
1129
|
-
hidden: (t) => d(t),
|
|
1130
|
-
_config: {
|
|
1131
|
-
options: Object.values(R).map((t) => ({ value: t, label: "sys.pageDesigner." + t }))
|
|
1132
|
-
}
|
|
1133
|
-
},
|
|
1134
|
-
{
|
|
1135
|
-
component: "switch-editor",
|
|
1136
|
-
name: "confirm",
|
|
1137
|
-
label: "sys.pageDesigner.confirm",
|
|
1138
|
-
group: i.ButtonStyle,
|
|
1139
|
-
hidden: (t) => d(t),
|
|
1140
|
-
_config: {
|
|
1141
|
-
tooltip: "sys.pageDesigner.buttonConfirm"
|
|
1142
|
-
}
|
|
1143
|
-
},
|
|
1144
|
-
{
|
|
1145
|
-
component: "texteare-editor",
|
|
1146
|
-
name: "confirmText",
|
|
1147
|
-
label: "sys.pageDesigner.regHint",
|
|
1148
|
-
group: i.ButtonStyle,
|
|
1149
|
-
_config: {
|
|
1150
|
-
i18n: !0,
|
|
1151
|
-
placeholder: "sys.pageDesigner.confirmTodo"
|
|
1152
|
-
},
|
|
1153
|
-
hidden: (t) => !t.props.confirm || d(t)
|
|
1154
|
-
}
|
|
1155
|
-
// {
|
|
1156
|
-
// component: 'select-editor',
|
|
1157
|
-
// name: 'basic.buttonTheme',
|
|
1158
|
-
// label: 'sys.pageDesigner.buttonTheme',
|
|
1159
|
-
// group: PropGroup.ButtonStyle,
|
|
1160
|
-
// _config: {
|
|
1161
|
-
// options: Object.values(ButtonColorTheme).map((i) => {
|
|
1162
|
-
// return { value: i, label: 'sys.pageDesigner.' + i };
|
|
1163
|
-
// }),
|
|
1164
|
-
// },
|
|
1165
|
-
// hidden: (widget): boolean => {
|
|
1166
|
-
// return hiddenButtonProps(widget);
|
|
1167
|
-
// },
|
|
1168
|
-
// },
|
|
1169
|
-
// {
|
|
1170
|
-
// component: 'icon-editor',
|
|
1171
|
-
// name: { icon: 'basic.icon', iconColor: 'basic.iconColor' },
|
|
1172
|
-
// label: 'sys.pageDesigner.icon',
|
|
1173
|
-
// group: PropGroup.ButtonStyle,
|
|
1174
|
-
// _config: {
|
|
1175
|
-
// showColor: true,
|
|
1176
|
-
// },
|
|
1177
|
-
// hidden: (widget): boolean => {
|
|
1178
|
-
// return hiddenButtonProps(widget);
|
|
1179
|
-
// },
|
|
1180
|
-
// },
|
|
1181
|
-
], Ue = [
|
|
1182
|
-
{
|
|
1183
|
-
component: "position-editor",
|
|
1184
|
-
name: "position",
|
|
1185
|
-
label: "sys.pageDesigner.position",
|
|
1186
|
-
group: T.LAYOUT,
|
|
1187
|
-
// 按钮容器中的按钮不需要样式属性
|
|
1188
|
-
hidden: (t) => !!t.props.parentWidgetId || !!t.preLocation
|
|
1189
|
-
},
|
|
1190
|
-
{
|
|
1191
|
-
component: "margin-editor",
|
|
1192
|
-
group: T.MARGIN,
|
|
1193
|
-
// 按钮容器中的按钮不需要样式属性
|
|
1194
|
-
hidden: (t) => !!t.props.parentWidgetId || !!t.preLocation,
|
|
1195
|
-
_config: {
|
|
1196
|
-
hiddenMarginOrPadding: "padding"
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
], Pe = {
|
|
1041
|
+
const Ur = {
|
|
1200
1042
|
install() {
|
|
1201
1043
|
}
|
|
1202
1044
|
};
|
|
1203
1045
|
export {
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
C as registerPluginWidgetItem,
|
|
1244
|
-
Re as registerWebPluginWidgetItem,
|
|
1245
|
-
Ie as registerWebWidgetItem,
|
|
1246
|
-
y as registerWidgetItem,
|
|
1247
|
-
Se as transAlign2flex,
|
|
1248
|
-
oe as transformI18n,
|
|
1249
|
-
m as webWidgetInfo
|
|
1046
|
+
nr as ALIGN_TO_FLEX_MAP,
|
|
1047
|
+
j as SEARCH_TYPE,
|
|
1048
|
+
b as addImportant,
|
|
1049
|
+
i as addPxUnit,
|
|
1050
|
+
Or as cloneWidget,
|
|
1051
|
+
ur as convertMappingType,
|
|
1052
|
+
hr as createdSearchField,
|
|
1053
|
+
rr as deepFindNotField,
|
|
1054
|
+
Ur as default,
|
|
1055
|
+
_r as extractFontStyle,
|
|
1056
|
+
J as flatten,
|
|
1057
|
+
s as formatBorder,
|
|
1058
|
+
Tr as generateBorderStyles,
|
|
1059
|
+
or as generatePositionStyles,
|
|
1060
|
+
ir as generateSpacingStyles,
|
|
1061
|
+
Dr as generateWrapperStyle,
|
|
1062
|
+
Sr as getCompPos,
|
|
1063
|
+
z as getWidgetInfo,
|
|
1064
|
+
dr as isFormFieldType,
|
|
1065
|
+
ar as makeStyleProp,
|
|
1066
|
+
O as mobileWidgetInfo,
|
|
1067
|
+
pr as padVTableSupportEditFieldTypes,
|
|
1068
|
+
M as padWidgetInfo,
|
|
1069
|
+
gr as propsToStyle,
|
|
1070
|
+
er as pxToVw,
|
|
1071
|
+
Ir as registerMobilePluginWidgetItem,
|
|
1072
|
+
cr as registerMobileWidgetItem,
|
|
1073
|
+
Lr as registerPadPluginWidgetItem,
|
|
1074
|
+
sr as registerPadWidgetItem,
|
|
1075
|
+
_ as registerPluginWidgetItem,
|
|
1076
|
+
Ar as registerWebPluginWidgetItem,
|
|
1077
|
+
Nr as registerWebWidgetItem,
|
|
1078
|
+
h as registerWidgetItem,
|
|
1079
|
+
Mr as setChildrenId,
|
|
1080
|
+
Cr as transAlign2flex,
|
|
1081
|
+
Z as transformI18n,
|
|
1082
|
+
Rr as transformMappingField,
|
|
1083
|
+
mr as transformMappingField4Auto,
|
|
1084
|
+
I as webWidgetInfo
|
|
1250
1085
|
};
|