@byteluck-fe/model-driven-core 2.7.0-alpha.1 → 2.7.0-alpha.12
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/esm/api-doc-index.js +4 -4
- package/dist/esm/common/BaseControl/designer.js +254 -306
- package/dist/esm/common/BaseControl/index.js +7 -7
- package/dist/esm/common/BaseControl/property.js +10 -13
- package/dist/esm/common/BaseControl/runtime.js +16 -16
- package/dist/esm/common/ColumnControl/designer.js +5 -5
- package/dist/esm/common/ColumnControl/index.js +6 -6
- package/dist/esm/common/ColumnControl/property.js +36 -36
- package/dist/esm/common/ColumnControl/runtime.js +5 -5
- package/dist/esm/common/ControlArray.js +8 -8
- package/dist/esm/common/FormControl/designer.js +8 -8
- package/dist/esm/common/FormControl/index.js +6 -6
- package/dist/esm/common/FormControl/property.js +68 -73
- package/dist/esm/common/FormControl/runtime.js +5 -5
- package/dist/esm/common/LayoutControl/designer.js +102 -196
- package/dist/esm/common/LayoutControl/index.js +6 -6
- package/dist/esm/common/LayoutControl/property.js +3 -3
- package/dist/esm/common/LayoutControl/runtime.js +7 -7
- package/dist/esm/common/ListControl/designer.js +93 -184
- package/dist/esm/common/ListControl/index.js +6 -6
- package/dist/esm/common/ListControl/property.js +5 -5
- package/dist/esm/common/ListControl/runtime.js +7 -7
- package/dist/esm/common/SearchViewControl/designer.js +5 -5
- package/dist/esm/common/SearchViewControl/index.js +6 -6
- package/dist/esm/common/SearchViewControl/property.js +4 -4
- package/dist/esm/common/SearchViewControl/runtime.js +5 -5
- package/dist/esm/common/Validator.js +5 -5
- package/dist/esm/common/WrapControl/designer.js +5 -5
- package/dist/esm/common/WrapControl/index.js +6 -6
- package/dist/esm/common/WrapControl/property.js +3 -3
- package/dist/esm/common/WrapControl/runtime.js +5 -5
- package/dist/esm/common/controlHooksEmitter.js +1 -1
- package/dist/esm/common/index.js +12 -12
- package/dist/esm/common/initLinkOperationRules.js +6 -6
- package/dist/esm/common/initOptionAndDataSourceRules.js +82 -82
- package/dist/esm/framework/RegisterControls.js +196 -122
- package/dist/esm/framework/index.js +334 -345
- package/dist/esm/framework/isDataBind.js +7 -0
- package/dist/esm/index.js +4 -3
- package/dist/index.umd.js +1 -1
- package/dist/types/common/BaseControl/designer.d.ts +4 -0
- package/dist/types/common/ListControl/property.d.ts +1 -0
- package/dist/types/common/Validator.d.ts +1 -1
- package/dist/types/common/controlHooksEmitter.d.ts +1 -1
- package/dist/types/framework/index.d.ts +3 -2
- package/dist/types/framework/isDataBind.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/type.d.ts +23 -23
- package/package.json +3 -3
|
@@ -28,13 +28,6 @@ function _inherits(subClass, superClass) {
|
|
|
28
28
|
});
|
|
29
29
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
30
30
|
}
|
|
31
|
-
function _instanceof(left, right) {
|
|
32
|
-
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
33
|
-
return !!right[Symbol.hasInstance](left);
|
|
34
|
-
} else {
|
|
35
|
-
return left instanceof right;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
31
|
function _possibleConstructorReturn(self, call) {
|
|
39
32
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
40
33
|
return call;
|
|
@@ -76,30 +69,30 @@ function _createSuper(Derived) {
|
|
|
76
69
|
return _possibleConstructorReturn(this, result);
|
|
77
70
|
};
|
|
78
71
|
}
|
|
79
|
-
import { FieldTypes, genNonDuplicateId } from
|
|
80
|
-
export * from
|
|
72
|
+
import { FieldTypes, genNonDuplicateId } from '@byteluck-fe/model-driven-shared';
|
|
73
|
+
export * from './RegisterControls';
|
|
81
74
|
/**
|
|
82
75
|
* 数据绑定配置
|
|
83
76
|
* @public
|
|
84
77
|
*/ export var DataBind = function DataBind(props) {
|
|
85
78
|
"use strict";
|
|
86
79
|
_classCallCheck(this, DataBind);
|
|
87
|
-
var
|
|
88
|
-
this.dataCode = (
|
|
89
|
-
var
|
|
90
|
-
this.fieldCode = (
|
|
91
|
-
var
|
|
92
|
-
this.fieldType = (
|
|
80
|
+
var ref;
|
|
81
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : '';
|
|
82
|
+
var ref1;
|
|
83
|
+
this.fieldCode = (ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref1 !== void 0 ? ref1 : '';
|
|
84
|
+
var ref2;
|
|
85
|
+
this.fieldType = (ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref2 !== void 0 ? ref2 : '';
|
|
93
86
|
this.aliasCode = props === null || props === void 0 ? void 0 : props.aliasCode;
|
|
94
87
|
};
|
|
95
88
|
export var AutoWidth = function AutoWidth(props) {
|
|
96
89
|
"use strict";
|
|
97
90
|
_classCallCheck(this, AutoWidth);
|
|
98
|
-
var
|
|
99
|
-
this.minWidth = (
|
|
91
|
+
var ref;
|
|
92
|
+
this.minWidth = (ref = props === null || props === void 0 ? void 0 : props.minWidth) !== null && ref !== void 0 ? ref : 150;
|
|
100
93
|
this.maxWidth = props === null || props === void 0 ? void 0 : props.maxWidth;
|
|
101
|
-
var
|
|
102
|
-
this.flex = (
|
|
94
|
+
var ref3;
|
|
95
|
+
this.flex = (ref3 = props === null || props === void 0 ? void 0 : props.flex) !== null && ref3 !== void 0 ? ref3 : 1;
|
|
103
96
|
};
|
|
104
97
|
export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
105
98
|
"use strict";
|
|
@@ -109,10 +102,10 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
109
102
|
_classCallCheck(this, MetaWidth);
|
|
110
103
|
var _this;
|
|
111
104
|
_this = _super.call(this, props);
|
|
112
|
-
var
|
|
113
|
-
_this.width = (
|
|
114
|
-
var
|
|
115
|
-
_this.widthType = (
|
|
105
|
+
var ref;
|
|
106
|
+
_this.width = (ref = props === null || props === void 0 ? void 0 : props.width) !== null && ref !== void 0 ? ref : 240;
|
|
107
|
+
var ref4;
|
|
108
|
+
_this.widthType = (ref4 = props === null || props === void 0 ? void 0 : props.widthType) !== null && ref4 !== void 0 ? ref4 : 'auto';
|
|
116
109
|
return _this;
|
|
117
110
|
}
|
|
118
111
|
return MetaWidth;
|
|
@@ -129,20 +122,20 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
129
122
|
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
130
123
|
"use strict";
|
|
131
124
|
_classCallCheck(this, DataStorageDoc);
|
|
132
|
-
var
|
|
133
|
-
this.type = (
|
|
134
|
-
var
|
|
135
|
-
this.customOptions = (
|
|
125
|
+
var ref;
|
|
126
|
+
this.type = (ref = props === null || props === void 0 ? void 0 : props.type) !== null && ref !== void 0 ? ref : 'firstThree';
|
|
127
|
+
var ref5;
|
|
128
|
+
this.customOptions = (ref5 = props === null || props === void 0 ? void 0 : props.customOptions) !== null && ref5 !== void 0 ? ref5 : [];
|
|
136
129
|
};
|
|
137
130
|
export var FormBind = function FormBind(props) {
|
|
138
131
|
"use strict";
|
|
139
132
|
_classCallCheck(this, FormBind);
|
|
140
|
-
var
|
|
141
|
-
this.dataCode = (
|
|
142
|
-
var
|
|
143
|
-
this.formKey = (
|
|
144
|
-
var
|
|
145
|
-
this.appId = (
|
|
133
|
+
var ref;
|
|
134
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : '';
|
|
135
|
+
var ref6;
|
|
136
|
+
this.formKey = (ref6 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref6 !== void 0 ? ref6 : '';
|
|
137
|
+
var ref7;
|
|
138
|
+
this.appId = (ref7 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref7 !== void 0 ? ref7 : '';
|
|
146
139
|
};
|
|
147
140
|
export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
148
141
|
"use strict";
|
|
@@ -152,45 +145,42 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
152
145
|
_classCallCheck(this, FormSelectBind);
|
|
153
146
|
var _this;
|
|
154
147
|
_this = _super.call(this, props);
|
|
155
|
-
var
|
|
156
|
-
_this.primaryControlId = (
|
|
148
|
+
var ref;
|
|
149
|
+
_this.primaryControlId = (ref = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && ref !== void 0 ? ref : '';
|
|
157
150
|
return _this;
|
|
158
151
|
}
|
|
159
152
|
return FormSelectBind;
|
|
160
153
|
}(FormBind);
|
|
161
|
-
|
|
162
|
-
* 列表绑定字段项
|
|
163
|
-
* @public
|
|
164
|
-
*/ var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
154
|
+
var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
165
155
|
"use strict";
|
|
166
156
|
_classCallCheck(this, ListBindHeaderItem);
|
|
167
|
-
var
|
|
168
|
-
this.fieldCode = (
|
|
157
|
+
var ref;
|
|
158
|
+
this.fieldCode = (ref = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref !== void 0 ? ref : '';
|
|
169
159
|
};
|
|
170
160
|
/**
|
|
171
161
|
* 列表绑定配置
|
|
172
162
|
*/ export var ListBind = function ListBind(props) {
|
|
173
163
|
"use strict";
|
|
174
164
|
_classCallCheck(this, ListBind);
|
|
175
|
-
var
|
|
176
|
-
var
|
|
177
|
-
this.appId = (
|
|
178
|
-
var
|
|
179
|
-
this.formKey = (
|
|
180
|
-
var
|
|
181
|
-
this.headers = (
|
|
165
|
+
var ref;
|
|
166
|
+
var ref8;
|
|
167
|
+
this.appId = (ref8 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref8 !== void 0 ? ref8 : '';
|
|
168
|
+
var ref9;
|
|
169
|
+
this.formKey = (ref9 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref9 !== void 0 ? ref9 : '';
|
|
170
|
+
var ref10;
|
|
171
|
+
this.headers = (ref10 = props === null || props === void 0 ? void 0 : (ref = props.headers) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
182
172
|
return new ListBindHeaderItem(item);
|
|
183
|
-
})) !== null &&
|
|
173
|
+
})) !== null && ref10 !== void 0 ? ref10 : [];
|
|
184
174
|
};
|
|
185
175
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
186
176
|
"use strict";
|
|
187
177
|
_classCallCheck(this, FieldBindItem);
|
|
188
|
-
var
|
|
189
|
-
this.fieldName = (
|
|
190
|
-
var
|
|
191
|
-
this.fieldCode = (
|
|
192
|
-
var
|
|
193
|
-
this.fieldType = (
|
|
178
|
+
var ref;
|
|
179
|
+
this.fieldName = (ref = props === null || props === void 0 ? void 0 : props.fieldName) !== null && ref !== void 0 ? ref : '';
|
|
180
|
+
var ref11;
|
|
181
|
+
this.fieldCode = (ref11 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref11 !== void 0 ? ref11 : '';
|
|
182
|
+
var ref12;
|
|
183
|
+
this.fieldType = (ref12 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref12 !== void 0 ? ref12 : FieldTypes.VARCHAR;
|
|
194
184
|
};
|
|
195
185
|
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
196
186
|
"use strict";
|
|
@@ -200,14 +190,14 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
200
190
|
_classCallCheck(this, SubListItem);
|
|
201
191
|
var _this;
|
|
202
192
|
_this = _super.call(this, props);
|
|
203
|
-
var
|
|
204
|
-
_this.title = (
|
|
205
|
-
var
|
|
206
|
-
_this.svcCode = (
|
|
207
|
-
var
|
|
208
|
-
_this.isOpenFilter = (
|
|
209
|
-
var
|
|
210
|
-
_this.filters = (
|
|
193
|
+
var ref;
|
|
194
|
+
_this.title = (ref = props === null || props === void 0 ? void 0 : props.title) !== null && ref !== void 0 ? ref : '';
|
|
195
|
+
var ref13;
|
|
196
|
+
_this.svcCode = (ref13 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && ref13 !== void 0 ? ref13 : '';
|
|
197
|
+
var ref14;
|
|
198
|
+
_this.isOpenFilter = (ref14 = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && ref14 !== void 0 ? ref14 : false;
|
|
199
|
+
var ref15;
|
|
200
|
+
_this.filters = (ref15 = props === null || props === void 0 ? void 0 : props.filters) !== null && ref15 !== void 0 ? ref15 : [];
|
|
211
201
|
return _this;
|
|
212
202
|
}
|
|
213
203
|
return SubListItem;
|
|
@@ -215,17 +205,17 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
215
205
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
216
206
|
"use strict";
|
|
217
207
|
_classCallCheck(this, SubListPageConfig);
|
|
218
|
-
var
|
|
219
|
-
this.type =
|
|
208
|
+
var ref, ref16;
|
|
209
|
+
this.type = 'sublist-page';
|
|
220
210
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
221
|
-
var
|
|
222
|
-
this.displayFields = (
|
|
211
|
+
var ref17;
|
|
212
|
+
this.displayFields = (ref17 = props === null || props === void 0 ? void 0 : (ref = props.displayFields) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
223
213
|
return new FieldBindItem(item);
|
|
224
|
-
})) !== null &&
|
|
225
|
-
var
|
|
226
|
-
this.sublists = (
|
|
214
|
+
})) !== null && ref17 !== void 0 ? ref17 : [];
|
|
215
|
+
var ref18;
|
|
216
|
+
this.sublists = (ref18 = props === null || props === void 0 ? void 0 : (ref16 = props.sublists) === null || ref16 === void 0 ? void 0 : ref16.map(function(item) {
|
|
227
217
|
return new SubListItem(item);
|
|
228
|
-
})) !== null &&
|
|
218
|
+
})) !== null && ref18 !== void 0 ? ref18 : [];
|
|
229
219
|
};
|
|
230
220
|
export var LeftVariable = function LeftVariable(props) {
|
|
231
221
|
"use strict";
|
|
@@ -236,43 +226,43 @@ export var LeftVariable = function LeftVariable(props) {
|
|
|
236
226
|
export var RightVariable = function RightVariable(props) {
|
|
237
227
|
"use strict";
|
|
238
228
|
_classCallCheck(this, RightVariable);
|
|
239
|
-
var
|
|
240
|
-
this.type = (
|
|
241
|
-
var
|
|
242
|
-
this.value = (
|
|
243
|
-
var
|
|
244
|
-
this.displayBos = (
|
|
229
|
+
var ref;
|
|
230
|
+
this.type = (ref = props === null || props === void 0 ? void 0 : props.type) !== null && ref !== void 0 ? ref : 'custom';
|
|
231
|
+
var ref19;
|
|
232
|
+
this.value = (ref19 = props === null || props === void 0 ? void 0 : props.value) !== null && ref19 !== void 0 ? ref19 : [];
|
|
233
|
+
var ref20;
|
|
234
|
+
this.displayBos = (ref20 = props === null || props === void 0 ? void 0 : props.displayBos) !== null && ref20 !== void 0 ? ref20 : [];
|
|
245
235
|
};
|
|
246
236
|
/**
|
|
247
237
|
* 连接符条件
|
|
248
238
|
* @public
|
|
249
239
|
*/ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
250
240
|
"use strict";
|
|
251
|
-
var _this = this;
|
|
252
241
|
_classCallCheck(this, FieldFilterConditions);
|
|
253
242
|
/**
|
|
254
243
|
* 类型:连接符条件
|
|
255
244
|
* @defaultValue 'conditions'
|
|
256
|
-
*/ this.type =
|
|
257
|
-
var
|
|
258
|
-
this.id = (
|
|
259
|
-
var
|
|
260
|
-
this.ruleId = (
|
|
261
|
-
var
|
|
262
|
-
this.level = (
|
|
263
|
-
var
|
|
264
|
-
this.value = (
|
|
245
|
+
*/ this.type = 'conditions';
|
|
246
|
+
var ref25;
|
|
247
|
+
this.id = (ref25 = props === null || props === void 0 ? void 0 : props.id) !== null && ref25 !== void 0 ? ref25 : genNonDuplicateId();
|
|
248
|
+
var ref21;
|
|
249
|
+
this.ruleId = (ref21 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && ref21 !== void 0 ? ref21 : new Date().valueOf();
|
|
250
|
+
var ref22;
|
|
251
|
+
this.level = (ref22 = props === null || props === void 0 ? void 0 : props.level) !== null && ref22 !== void 0 ? ref22 : 0;
|
|
252
|
+
var ref23;
|
|
253
|
+
this.value = (ref23 = props === null || props === void 0 ? void 0 : props.value) !== null && ref23 !== void 0 ? ref23 : 'and';
|
|
265
254
|
this.children = [];
|
|
266
255
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
256
|
+
var _this = this;
|
|
267
257
|
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
268
258
|
if (item.children !== undefined) {
|
|
269
|
-
var
|
|
259
|
+
var ref;
|
|
270
260
|
var filter = new FieldFilterConditions(item);
|
|
271
|
-
(
|
|
261
|
+
(ref = _this.children) === null || ref === void 0 ? void 0 : ref.push(filter);
|
|
272
262
|
} else {
|
|
273
|
-
var
|
|
263
|
+
var ref24;
|
|
274
264
|
var filter1 = new FieldFilterCondition(item);
|
|
275
|
-
(
|
|
265
|
+
(ref24 = _this.children) === null || ref24 === void 0 ? void 0 : ref24.push(filter1);
|
|
276
266
|
}
|
|
277
267
|
});
|
|
278
268
|
}
|
|
@@ -286,28 +276,28 @@ export var RightVariable = function RightVariable(props) {
|
|
|
286
276
|
/**
|
|
287
277
|
* 类型
|
|
288
278
|
* @defaultValue 'condition'
|
|
289
|
-
*/ this.type =
|
|
290
|
-
var
|
|
291
|
-
this.id = (
|
|
292
|
-
var
|
|
293
|
-
this.ruleId = (
|
|
294
|
-
var
|
|
295
|
-
this.symbol = (
|
|
296
|
-
var
|
|
297
|
-
this.checked = (
|
|
298
|
-
var
|
|
299
|
-
this.describe = (
|
|
279
|
+
*/ this.type = 'condition';
|
|
280
|
+
var ref;
|
|
281
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId();
|
|
282
|
+
var ref26;
|
|
283
|
+
this.ruleId = (ref26 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && ref26 !== void 0 ? ref26 : new Date().valueOf();
|
|
284
|
+
var ref27;
|
|
285
|
+
this.symbol = (ref27 = props === null || props === void 0 ? void 0 : props.symbol) !== null && ref27 !== void 0 ? ref27 : '';
|
|
286
|
+
var ref28;
|
|
287
|
+
this.checked = (ref28 = props === null || props === void 0 ? void 0 : props.checked) !== null && ref28 !== void 0 ? ref28 : false;
|
|
288
|
+
var ref29;
|
|
289
|
+
this.describe = (ref29 = props === null || props === void 0 ? void 0 : props.describe) !== null && ref29 !== void 0 ? ref29 : '';
|
|
300
290
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
301
291
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
302
292
|
};
|
|
303
293
|
export var JoinRelation = function JoinRelation(props) {
|
|
304
294
|
"use strict";
|
|
305
295
|
_classCallCheck(this, JoinRelation);
|
|
306
|
-
var
|
|
307
|
-
this.aliasCode = (
|
|
296
|
+
var ref;
|
|
297
|
+
this.aliasCode = (ref = props === null || props === void 0 ? void 0 : props.aliasCode) !== null && ref !== void 0 ? ref : '';
|
|
308
298
|
this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
309
|
-
var
|
|
310
|
-
this.relationFields = (
|
|
299
|
+
var ref30;
|
|
300
|
+
this.relationFields = (ref30 = props === null || props === void 0 ? void 0 : props.relationFields) !== null && ref30 !== void 0 ? ref30 : [];
|
|
311
301
|
};
|
|
312
302
|
/**
|
|
313
303
|
* 数据填充项
|
|
@@ -315,14 +305,14 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
315
305
|
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
316
306
|
"use strict";
|
|
317
307
|
_classCallCheck(this, MultistageFillingItem);
|
|
318
|
-
var
|
|
319
|
-
this.controlId = (
|
|
320
|
-
var
|
|
321
|
-
this.fieldCode = (
|
|
322
|
-
var
|
|
323
|
-
this.fieldType = (
|
|
324
|
-
var
|
|
325
|
-
this.propName = (
|
|
308
|
+
var ref;
|
|
309
|
+
this.controlId = (ref = props === null || props === void 0 ? void 0 : props.controlId) !== null && ref !== void 0 ? ref : '';
|
|
310
|
+
var ref31;
|
|
311
|
+
this.fieldCode = (ref31 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref31 !== void 0 ? ref31 : '';
|
|
312
|
+
var ref32;
|
|
313
|
+
this.fieldType = (ref32 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref32 !== void 0 ? ref32 : '';
|
|
314
|
+
var ref33;
|
|
315
|
+
this.propName = (ref33 = props === null || props === void 0 ? void 0 : props.propName) !== null && ref33 !== void 0 ? ref33 : '';
|
|
326
316
|
};
|
|
327
317
|
/**
|
|
328
318
|
* 显示项
|
|
@@ -330,10 +320,10 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
330
320
|
*/ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
331
321
|
"use strict";
|
|
332
322
|
_classCallCheck(this, DisplayBoListItem);
|
|
333
|
-
var
|
|
334
|
-
this.type = (
|
|
335
|
-
var
|
|
336
|
-
this.value = (
|
|
323
|
+
var ref;
|
|
324
|
+
this.type = (ref = props === null || props === void 0 ? void 0 : props.type) !== null && ref !== void 0 ? ref : 'FIELD';
|
|
325
|
+
var ref34;
|
|
326
|
+
this.value = (ref34 = props === null || props === void 0 ? void 0 : props.value) !== null && ref34 !== void 0 ? ref34 : '';
|
|
337
327
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
338
328
|
};
|
|
339
329
|
/**
|
|
@@ -342,141 +332,139 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
342
332
|
*/ export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
343
333
|
"use strict";
|
|
344
334
|
_classCallCheck(this, DataSourceOrderItem);
|
|
345
|
-
var
|
|
346
|
-
this.columnName = (
|
|
347
|
-
var
|
|
348
|
-
this.desc = (
|
|
335
|
+
var _columnName;
|
|
336
|
+
this.columnName = (_columnName = props.columnName) !== null && _columnName !== void 0 ? _columnName : '';
|
|
337
|
+
var _desc;
|
|
338
|
+
this.desc = (_desc = props.desc) !== null && _desc !== void 0 ? _desc : false;
|
|
349
339
|
};
|
|
350
340
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
351
341
|
"use strict";
|
|
352
342
|
_classCallCheck(this, DataSourceDataSetValue);
|
|
353
|
-
var
|
|
354
|
-
this.code = (
|
|
355
|
-
var
|
|
356
|
-
this.value = (
|
|
357
|
-
var
|
|
358
|
-
this.field_type = (
|
|
343
|
+
var _code;
|
|
344
|
+
this.code = (_code = props.code) !== null && _code !== void 0 ? _code : '';
|
|
345
|
+
var _value;
|
|
346
|
+
this.value = (_value = props.value) !== null && _value !== void 0 ? _value : '';
|
|
347
|
+
var _field_type;
|
|
348
|
+
this.field_type = (_field_type = props.field_type) !== null && _field_type !== void 0 ? _field_type : FieldTypes.ANY;
|
|
359
349
|
};
|
|
360
350
|
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
361
351
|
"use strict";
|
|
362
352
|
_classCallCheck(this, DataSourceParamItem);
|
|
363
|
-
var
|
|
364
|
-
var
|
|
353
|
+
var ref, ref35;
|
|
354
|
+
var _id;
|
|
365
355
|
//字段ID,不可以当作随机数生成唯一编号
|
|
366
|
-
this.id = (
|
|
367
|
-
var
|
|
368
|
-
this.limit = (
|
|
369
|
-
var
|
|
370
|
-
this.formKey = (
|
|
371
|
-
var
|
|
372
|
-
this.orders = (
|
|
356
|
+
this.id = (_id = props.id) !== null && _id !== void 0 ? _id : '';
|
|
357
|
+
var _limit;
|
|
358
|
+
this.limit = (_limit = props.limit) !== null && _limit !== void 0 ? _limit : 20;
|
|
359
|
+
var _formKey;
|
|
360
|
+
this.formKey = (_formKey = props.formKey) !== null && _formKey !== void 0 ? _formKey : '';
|
|
361
|
+
var ref36;
|
|
362
|
+
this.orders = (ref36 = (ref = props.orders) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
373
363
|
return new DataSourceOrderItem(item);
|
|
374
|
-
})) !== null &&
|
|
375
|
-
var
|
|
376
|
-
this.dataSet = (
|
|
364
|
+
})) !== null && ref36 !== void 0 ? ref36 : [];
|
|
365
|
+
var ref37;
|
|
366
|
+
this.dataSet = (ref37 = (ref35 = props.dataSet) === null || ref35 === void 0 ? void 0 : ref35.map(function(item) {
|
|
377
367
|
return new DataSourceDataSetValue(item);
|
|
378
|
-
})) !== null &&
|
|
368
|
+
})) !== null && ref37 !== void 0 ? ref37 : [];
|
|
379
369
|
};
|
|
380
370
|
/**
|
|
381
371
|
* 给filters和orders赋值
|
|
382
372
|
* */ function callFiltersAndOrders(props) {
|
|
383
|
-
var
|
|
384
|
-
var
|
|
385
|
-
this.filters = (
|
|
373
|
+
var ref, ref38, ref39, ref40;
|
|
374
|
+
var ref41;
|
|
375
|
+
this.filters = (ref41 = props === null || props === void 0 ? void 0 : (ref = props.filters) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
386
376
|
if (item.children !== undefined) {
|
|
387
377
|
return new FieldFilterConditions(item);
|
|
388
378
|
}
|
|
389
379
|
return new FieldFilterCondition(item);
|
|
390
|
-
})) !== null &&
|
|
391
|
-
var
|
|
392
|
-
this.viewFilters = (
|
|
380
|
+
})) !== null && ref41 !== void 0 ? ref41 : [];
|
|
381
|
+
var ref42;
|
|
382
|
+
this.viewFilters = (ref42 = props === null || props === void 0 ? void 0 : (ref38 = props.viewFilters) === null || ref38 === void 0 ? void 0 : ref38.map(function(item) {
|
|
393
383
|
if (item.children !== undefined) {
|
|
394
384
|
return new FieldFilterConditions(item);
|
|
395
385
|
}
|
|
396
386
|
return new FieldFilterCondition(item);
|
|
397
|
-
})) !== null &&
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
})) !== null && _props_orders_map !== void 0 ? _props_orders_map : [];
|
|
404
|
-
}
|
|
387
|
+
})) !== null && ref42 !== void 0 ? ref42 : [];
|
|
388
|
+
var ref43;
|
|
389
|
+
this.orders = (ref43 = (ref39 = props) === null || ref39 === void 0 ? void 0 : (ref40 = ref39.orders) === null || ref40 === void 0 ? void 0 : ref40.map(function(item) {
|
|
390
|
+
return new DataSourceOrderItem(item);
|
|
391
|
+
})) !== null && ref43 !== void 0 ? ref43 : [];
|
|
392
|
+
// }
|
|
405
393
|
}
|
|
406
394
|
/**
|
|
407
395
|
* 数据源绑定配置
|
|
408
396
|
* @public
|
|
409
397
|
*/ export var DataSourceBind = function DataSourceBind(props) {
|
|
410
398
|
"use strict";
|
|
411
|
-
var _this = this;
|
|
412
399
|
_classCallCheck(this, DataSourceBind);
|
|
413
|
-
var
|
|
414
|
-
this.dataCode = (
|
|
415
|
-
var
|
|
416
|
-
this.appId = (
|
|
417
|
-
var
|
|
418
|
-
this.valueFieldCode = (
|
|
400
|
+
var ref50;
|
|
401
|
+
this.dataCode = (ref50 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref50 !== void 0 ? ref50 : '';
|
|
402
|
+
var ref44;
|
|
403
|
+
this.appId = (ref44 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref44 !== void 0 ? ref44 : '';
|
|
404
|
+
var ref45;
|
|
405
|
+
this.valueFieldCode = (ref45 = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && ref45 !== void 0 ? ref45 : '';
|
|
419
406
|
this.displayBoList = [];
|
|
420
|
-
var
|
|
421
|
-
this.isOpenViewFilters = (
|
|
407
|
+
var ref46;
|
|
408
|
+
this.isOpenViewFilters = (ref46 = props === null || props === void 0 ? void 0 : props.isOpenViewFilters) !== null && ref46 !== void 0 ? ref46 : 0;
|
|
422
409
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
410
|
+
var _this = this;
|
|
423
411
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
424
|
-
var
|
|
425
|
-
(
|
|
412
|
+
var ref;
|
|
413
|
+
(ref = _this.displayBoList) === null || ref === void 0 ? void 0 : ref.push(new DisplayBoListItem(item));
|
|
426
414
|
});
|
|
427
415
|
}
|
|
428
|
-
var
|
|
429
|
-
this.keywordMapping = (
|
|
430
|
-
var
|
|
431
|
-
this.showOrder = (
|
|
432
|
-
var
|
|
433
|
-
this.svcCode = (
|
|
416
|
+
var ref47;
|
|
417
|
+
this.keywordMapping = (ref47 = props === null || props === void 0 ? void 0 : props.keywordMapping) !== null && ref47 !== void 0 ? ref47 : '';
|
|
418
|
+
var ref48;
|
|
419
|
+
this.showOrder = (ref48 = props === null || props === void 0 ? void 0 : props.showOrder) !== null && ref48 !== void 0 ? ref48 : true;
|
|
420
|
+
var ref49;
|
|
421
|
+
this.svcCode = (ref49 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && ref49 !== void 0 ? ref49 : '';
|
|
434
422
|
callFiltersAndOrders.call(this, props);
|
|
435
423
|
};
|
|
436
424
|
export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
437
425
|
"use strict";
|
|
438
426
|
_classCallCheck(this, SelectedContentConfig);
|
|
439
|
-
var
|
|
440
|
-
this.dataCode = (
|
|
441
|
-
var
|
|
442
|
-
this.displayBoList = (
|
|
427
|
+
var ref;
|
|
428
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : '';
|
|
429
|
+
var ref51;
|
|
430
|
+
this.displayBoList = (ref51 = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && ref51 !== void 0 ? ref51 : [];
|
|
443
431
|
};
|
|
444
432
|
export var LinkOperationOption = function LinkOperationOption(props) {
|
|
445
433
|
"use strict";
|
|
446
434
|
_classCallCheck(this, LinkOperationOption);
|
|
447
|
-
var
|
|
448
|
-
this.code = (
|
|
449
|
-
var
|
|
450
|
-
this.color = (
|
|
451
|
-
var
|
|
452
|
-
this.command = (
|
|
453
|
-
var
|
|
454
|
-
this.confirmMessage = (
|
|
455
|
-
var
|
|
456
|
-
this.defaultState = (
|
|
457
|
-
var
|
|
458
|
-
this.formKey = (
|
|
459
|
-
var
|
|
460
|
-
this.icon = (
|
|
461
|
-
var
|
|
462
|
-
this.needConfirm = (
|
|
463
|
-
var
|
|
464
|
-
this.openType = (
|
|
465
|
-
var
|
|
466
|
-
this.priorityProcess = (
|
|
435
|
+
var ref;
|
|
436
|
+
this.code = (ref = props === null || props === void 0 ? void 0 : props.code) !== null && ref !== void 0 ? ref : 'view';
|
|
437
|
+
var ref52;
|
|
438
|
+
this.color = (ref52 = props === null || props === void 0 ? void 0 : props.color) !== null && ref52 !== void 0 ? ref52 : 'primary';
|
|
439
|
+
var ref53;
|
|
440
|
+
this.command = (ref53 = props === null || props === void 0 ? void 0 : props.command) !== null && ref53 !== void 0 ? ref53 : 'view';
|
|
441
|
+
var ref54;
|
|
442
|
+
this.confirmMessage = (ref54 = props === null || props === void 0 ? void 0 : props.confirmMessage) !== null && ref54 !== void 0 ? ref54 : undefined;
|
|
443
|
+
var ref55;
|
|
444
|
+
this.defaultState = (ref55 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && ref55 !== void 0 ? ref55 : 'default';
|
|
445
|
+
var ref56;
|
|
446
|
+
this.formKey = (ref56 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref56 !== void 0 ? ref56 : undefined;
|
|
447
|
+
var ref57;
|
|
448
|
+
this.icon = (ref57 = props === null || props === void 0 ? void 0 : props.icon) !== null && ref57 !== void 0 ? ref57 : 'iconliulan1';
|
|
449
|
+
var ref58;
|
|
450
|
+
this.needConfirm = (ref58 = props === null || props === void 0 ? void 0 : props.needConfirm) !== null && ref58 !== void 0 ? ref58 : false;
|
|
451
|
+
var ref59;
|
|
452
|
+
this.openType = (ref59 = props === null || props === void 0 ? void 0 : props.openType) !== null && ref59 !== void 0 ? ref59 : 'modal';
|
|
453
|
+
var ref60;
|
|
454
|
+
this.priorityProcess = (ref60 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && ref60 !== void 0 ? ref60 : true;
|
|
467
455
|
};
|
|
468
456
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
469
457
|
"use strict";
|
|
470
458
|
_classCallCheck(this, CustomAttributeItem);
|
|
471
|
-
var
|
|
472
|
-
var
|
|
473
|
-
this.name = (
|
|
474
|
-
var
|
|
475
|
-
this.key = (
|
|
476
|
-
var
|
|
477
|
-
this.value = (
|
|
459
|
+
var ref;
|
|
460
|
+
var ref61;
|
|
461
|
+
this.name = (ref61 = props === null || props === void 0 ? void 0 : props.name) !== null && ref61 !== void 0 ? ref61 : '';
|
|
462
|
+
var ref62;
|
|
463
|
+
this.key = (ref62 = props === null || props === void 0 ? void 0 : props.key) !== null && ref62 !== void 0 ? ref62 : '';
|
|
464
|
+
var ref63;
|
|
465
|
+
this.value = (ref63 = props === null || props === void 0 ? void 0 : (ref = props.value) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
478
466
|
return new DisplayBoListItem(item);
|
|
479
|
-
})) !== null &&
|
|
467
|
+
})) !== null && ref63 !== void 0 ? ref63 : [];
|
|
480
468
|
};
|
|
481
469
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
482
470
|
"use strict";
|
|
@@ -485,12 +473,12 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
485
473
|
function SuperDataSourceBind(props) {
|
|
486
474
|
_classCallCheck(this, SuperDataSourceBind);
|
|
487
475
|
var _this;
|
|
488
|
-
var
|
|
476
|
+
var ref;
|
|
489
477
|
_this = _super.call(this, props);
|
|
490
|
-
var
|
|
491
|
-
_this.attributes = (
|
|
478
|
+
var ref64;
|
|
479
|
+
_this.attributes = (ref64 = props === null || props === void 0 ? void 0 : (ref = props.attributes) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
492
480
|
return new CustomAttributeItem(item);
|
|
493
|
-
})) !== null &&
|
|
481
|
+
})) !== null && ref64 !== void 0 ? ref64 : [];
|
|
494
482
|
return _this;
|
|
495
483
|
}
|
|
496
484
|
return SuperDataSourceBind;
|
|
@@ -502,14 +490,14 @@ export var OrganizationDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
502
490
|
function OrganizationDataSourceBind(props) {
|
|
503
491
|
_classCallCheck(this, OrganizationDataSourceBind);
|
|
504
492
|
var _this;
|
|
505
|
-
var
|
|
493
|
+
var ref;
|
|
506
494
|
_this = _super.call(this, props);
|
|
507
|
-
var
|
|
508
|
-
_this.attributes = (
|
|
495
|
+
var ref65;
|
|
496
|
+
_this.attributes = (ref65 = props === null || props === void 0 ? void 0 : (ref = props.attributes) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
509
497
|
return new CustomAttributeItem(item);
|
|
510
|
-
})) !== null &&
|
|
511
|
-
var
|
|
512
|
-
_this.formCode = (
|
|
498
|
+
})) !== null && ref65 !== void 0 ? ref65 : [];
|
|
499
|
+
var ref66;
|
|
500
|
+
_this.formCode = (ref66 = props === null || props === void 0 ? void 0 : props.formCode) !== null && ref66 !== void 0 ? ref66 : '';
|
|
513
501
|
return _this;
|
|
514
502
|
}
|
|
515
503
|
return OrganizationDataSourceBind;
|
|
@@ -523,8 +511,8 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
523
511
|
var _this;
|
|
524
512
|
_this = _super.call(this, props);
|
|
525
513
|
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
526
|
-
var
|
|
527
|
-
_this.filterCode = (
|
|
514
|
+
var ref;
|
|
515
|
+
_this.filterCode = (ref = props === null || props === void 0 ? void 0 : props.filterCode) !== null && ref !== void 0 ? ref : '';
|
|
528
516
|
return _this;
|
|
529
517
|
}
|
|
530
518
|
return TreeDataSourceBind;
|
|
@@ -532,15 +520,15 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
532
520
|
var FillBind = function FillBind(props) {
|
|
533
521
|
"use strict";
|
|
534
522
|
_classCallCheck(this, FillBind);
|
|
535
|
-
var
|
|
536
|
-
var
|
|
537
|
-
this.dataCode = (
|
|
538
|
-
var
|
|
539
|
-
this.appId = (
|
|
540
|
-
var
|
|
541
|
-
this.fillList = (
|
|
523
|
+
var ref;
|
|
524
|
+
var ref67;
|
|
525
|
+
this.dataCode = (ref67 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref67 !== void 0 ? ref67 : '';
|
|
526
|
+
var ref68;
|
|
527
|
+
this.appId = (ref68 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref68 !== void 0 ? ref68 : '';
|
|
528
|
+
var ref69;
|
|
529
|
+
this.fillList = (ref69 = props === null || props === void 0 ? void 0 : (ref = props.fillList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
542
530
|
return new MultistageFillingItem(item);
|
|
543
|
-
})) !== null &&
|
|
531
|
+
})) !== null && ref69 !== void 0 ? ref69 : [];
|
|
544
532
|
};
|
|
545
533
|
/**
|
|
546
534
|
* FillPayloadBind 填充配置
|
|
@@ -570,10 +558,10 @@ var FillBind = function FillBind(props) {
|
|
|
570
558
|
_classCallCheck(this, FillBackBind);
|
|
571
559
|
var _this;
|
|
572
560
|
_this = _super.call(this, props);
|
|
573
|
-
var
|
|
574
|
-
_this.mode = (
|
|
575
|
-
var
|
|
576
|
-
_this.multiple = (
|
|
561
|
+
var ref;
|
|
562
|
+
_this.mode = (ref = props === null || props === void 0 ? void 0 : props.mode) !== null && ref !== void 0 ? ref : 'current';
|
|
563
|
+
var ref70;
|
|
564
|
+
_this.multiple = (ref70 = props === null || props === void 0 ? void 0 : props.multiple) !== null && ref70 !== void 0 ? ref70 : false;
|
|
577
565
|
return _this;
|
|
578
566
|
}
|
|
579
567
|
return FillBackBind;
|
|
@@ -581,12 +569,12 @@ var FillBind = function FillBind(props) {
|
|
|
581
569
|
export var Language = function Language(props) {
|
|
582
570
|
"use strict";
|
|
583
571
|
_classCallCheck(this, Language);
|
|
584
|
-
var
|
|
585
|
-
this.zh = (
|
|
586
|
-
var
|
|
587
|
-
this.en = (
|
|
588
|
-
var
|
|
589
|
-
this.ja = (
|
|
572
|
+
var ref;
|
|
573
|
+
this.zh = (ref = props === null || props === void 0 ? void 0 : props.zh) !== null && ref !== void 0 ? ref : '';
|
|
574
|
+
var ref71;
|
|
575
|
+
this.en = (ref71 = props === null || props === void 0 ? void 0 : props.en) !== null && ref71 !== void 0 ? ref71 : '';
|
|
576
|
+
var ref72;
|
|
577
|
+
this.ja = (ref72 = props === null || props === void 0 ? void 0 : props.ja) !== null && ref72 !== void 0 ? ref72 : '';
|
|
590
578
|
};
|
|
591
579
|
/**
|
|
592
580
|
* 正则校验
|
|
@@ -594,12 +582,12 @@ export var Language = function Language(props) {
|
|
|
594
582
|
*/ export var RegularRules = function RegularRules(props) {
|
|
595
583
|
"use strict";
|
|
596
584
|
_classCallCheck(this, RegularRules);
|
|
597
|
-
var
|
|
598
|
-
this.stencilName = (
|
|
599
|
-
var
|
|
600
|
-
this.expression = (
|
|
601
|
-
var
|
|
602
|
-
this.errMessage = (
|
|
585
|
+
var ref;
|
|
586
|
+
this.stencilName = (ref = props === null || props === void 0 ? void 0 : props.stencilName) !== null && ref !== void 0 ? ref : '';
|
|
587
|
+
var ref73;
|
|
588
|
+
this.expression = (ref73 = props === null || props === void 0 ? void 0 : props.expression) !== null && ref73 !== void 0 ? ref73 : '';
|
|
589
|
+
var ref74;
|
|
590
|
+
this.errMessage = (ref74 = props === null || props === void 0 ? void 0 : props.errMessage) !== null && ref74 !== void 0 ? ref74 : '';
|
|
603
591
|
};
|
|
604
592
|
/**
|
|
605
593
|
* 选项设置-自定义选项
|
|
@@ -607,12 +595,12 @@ export var Language = function Language(props) {
|
|
|
607
595
|
*/ export var OptionSetting = function OptionSetting(props) {
|
|
608
596
|
"use strict";
|
|
609
597
|
_classCallCheck(this, OptionSetting);
|
|
610
|
-
var
|
|
611
|
-
this.id = (
|
|
612
|
-
var
|
|
613
|
-
this.label = (
|
|
614
|
-
var
|
|
615
|
-
this.value = (
|
|
598
|
+
var ref;
|
|
599
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId(8);
|
|
600
|
+
var ref75;
|
|
601
|
+
this.label = (ref75 = props === null || props === void 0 ? void 0 : props.label) !== null && ref75 !== void 0 ? ref75 : '';
|
|
602
|
+
var ref76;
|
|
603
|
+
this.value = (ref76 = props === null || props === void 0 ? void 0 : props.value) !== null && ref76 !== void 0 ? ref76 : this.label;
|
|
616
604
|
};
|
|
617
605
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
618
606
|
"use strict";
|
|
@@ -622,25 +610,25 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
622
610
|
_classCallCheck(this, ImageOptionSetting);
|
|
623
611
|
var _this;
|
|
624
612
|
_this = _super.call(this, props);
|
|
625
|
-
var
|
|
626
|
-
_this.image = (
|
|
627
|
-
var
|
|
628
|
-
_this.type = (
|
|
613
|
+
var ref;
|
|
614
|
+
_this.image = (ref = props === null || props === void 0 ? void 0 : props.image) !== null && ref !== void 0 ? ref : '';
|
|
615
|
+
var ref77;
|
|
616
|
+
_this.type = (ref77 = props === null || props === void 0 ? void 0 : props.type) !== null && ref77 !== void 0 ? ref77 : 'src';
|
|
629
617
|
return _this;
|
|
630
618
|
}
|
|
631
619
|
return ImageOptionSetting;
|
|
632
620
|
}(OptionSetting);
|
|
633
621
|
export function initOptions(options) {
|
|
634
|
-
var
|
|
635
|
-
return (
|
|
622
|
+
var ref;
|
|
623
|
+
return (ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
636
624
|
return new OptionSetting(item);
|
|
637
|
-
})) !== null &&
|
|
625
|
+
})) !== null && ref !== void 0 ? ref : [];
|
|
638
626
|
}
|
|
639
627
|
export function initImageOptions(options) {
|
|
640
|
-
var
|
|
641
|
-
return (
|
|
628
|
+
var ref;
|
|
629
|
+
return (ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
642
630
|
return new ImageOptionSetting(item);
|
|
643
|
-
})) !== null &&
|
|
631
|
+
})) !== null && ref !== void 0 ? ref : [];
|
|
644
632
|
}
|
|
645
633
|
/**
|
|
646
634
|
* 对象类型数据绑定配置
|
|
@@ -672,10 +660,10 @@ export function initImageOptions(options) {
|
|
|
672
660
|
*/ export var AmountValue = function AmountValue(props) {
|
|
673
661
|
"use strict";
|
|
674
662
|
_classCallCheck(this, AmountValue);
|
|
675
|
-
var
|
|
676
|
-
this.amount = (
|
|
677
|
-
var
|
|
678
|
-
this.currency = (
|
|
663
|
+
var ref;
|
|
664
|
+
this.amount = (ref = props === null || props === void 0 ? void 0 : props.amount) !== null && ref !== void 0 ? ref : '';
|
|
665
|
+
var ref78;
|
|
666
|
+
this.currency = (ref78 = props === null || props === void 0 ? void 0 : props.currency) !== null && ref78 !== void 0 ? ref78 : AMOUNT_TYPE.CNY;
|
|
679
667
|
};
|
|
680
668
|
/**
|
|
681
669
|
* 日期区间数据绑定项
|
|
@@ -700,10 +688,10 @@ export function initImageOptions(options) {
|
|
|
700
688
|
*/ export var RangeDateValue = function RangeDateValue(props) {
|
|
701
689
|
"use strict";
|
|
702
690
|
_classCallCheck(this, RangeDateValue);
|
|
703
|
-
var
|
|
704
|
-
this.min = (
|
|
705
|
-
var
|
|
706
|
-
this.max = (
|
|
691
|
+
var ref;
|
|
692
|
+
this.min = (ref = props === null || props === void 0 ? void 0 : props.min) !== null && ref !== void 0 ? ref : '';
|
|
693
|
+
var ref79;
|
|
694
|
+
this.max = (ref79 = props === null || props === void 0 ? void 0 : props.max) !== null && ref79 !== void 0 ? ref79 : '';
|
|
707
695
|
};
|
|
708
696
|
/**
|
|
709
697
|
* 地址值
|
|
@@ -711,18 +699,18 @@ export function initImageOptions(options) {
|
|
|
711
699
|
*/ export var AddressValue = function AddressValue(props) {
|
|
712
700
|
"use strict";
|
|
713
701
|
_classCallCheck(this, AddressValue);
|
|
714
|
-
var
|
|
715
|
-
this.city = (
|
|
716
|
-
var
|
|
717
|
-
this.cityDisplay = (
|
|
718
|
-
var
|
|
719
|
-
this.district = (
|
|
720
|
-
var
|
|
721
|
-
this.districtDisplay = (
|
|
722
|
-
var
|
|
723
|
-
this.province = (
|
|
724
|
-
var
|
|
725
|
-
this.provinceDisplay = (
|
|
702
|
+
var ref;
|
|
703
|
+
this.city = (ref = props === null || props === void 0 ? void 0 : props.city) !== null && ref !== void 0 ? ref : '';
|
|
704
|
+
var ref80;
|
|
705
|
+
this.cityDisplay = (ref80 = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && ref80 !== void 0 ? ref80 : '';
|
|
706
|
+
var ref81;
|
|
707
|
+
this.district = (ref81 = props === null || props === void 0 ? void 0 : props.district) !== null && ref81 !== void 0 ? ref81 : '';
|
|
708
|
+
var ref82;
|
|
709
|
+
this.districtDisplay = (ref82 = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && ref82 !== void 0 ? ref82 : '';
|
|
710
|
+
var ref83;
|
|
711
|
+
this.province = (ref83 = props === null || props === void 0 ? void 0 : props.province) !== null && ref83 !== void 0 ? ref83 : '';
|
|
712
|
+
var ref84;
|
|
713
|
+
this.provinceDisplay = (ref84 = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && ref84 !== void 0 ? ref84 : '';
|
|
726
714
|
};
|
|
727
715
|
/**
|
|
728
716
|
* 计算公式数据绑定项
|
|
@@ -747,10 +735,10 @@ export function initImageOptions(options) {
|
|
|
747
735
|
*/ export var CalcValue = function CalcValue(props) {
|
|
748
736
|
"use strict";
|
|
749
737
|
_classCallCheck(this, CalcValue);
|
|
750
|
-
var
|
|
751
|
-
this.result = (
|
|
752
|
-
var
|
|
753
|
-
this.unit = (
|
|
738
|
+
var ref;
|
|
739
|
+
this.result = (ref = props === null || props === void 0 ? void 0 : props.result) !== null && ref !== void 0 ? ref : 0;
|
|
740
|
+
var ref85;
|
|
741
|
+
this.unit = (ref85 = props === null || props === void 0 ? void 0 : props.unit) !== null && ref85 !== void 0 ? ref85 : '';
|
|
754
742
|
};
|
|
755
743
|
export var AMOUNT_TYPE;
|
|
756
744
|
(function(AMOUNT_TYPE) {
|
|
@@ -784,35 +772,36 @@ export var AMOUNT_TYPE;
|
|
|
784
772
|
})(AMOUNT_TYPE || (AMOUNT_TYPE = {}));
|
|
785
773
|
export var COMMON_SETTING_TYPE;
|
|
786
774
|
(function(COMMON_SETTING_TYPE) {
|
|
787
|
-
COMMON_SETTING_TYPE["DEFAULT_DISPLAY"] =
|
|
788
|
-
COMMON_SETTING_TYPE["REQUIRED"] =
|
|
789
|
-
COMMON_SETTING_TYPE["IS_HIDE"] =
|
|
790
|
-
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] =
|
|
791
|
-
COMMON_SETTING_TYPE["IMD_SEARCH"] =
|
|
792
|
-
COMMON_SETTING_TYPE["MULTIPLE"] =
|
|
793
|
-
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] =
|
|
794
|
-
COMMON_SETTING_TYPE["CAPTION"] =
|
|
795
|
-
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] =
|
|
796
|
-
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] =
|
|
797
|
-
COMMON_SETTING_TYPE["CAN_SEARCH"] =
|
|
798
|
-
COMMON_SETTING_TYPE["CAN_CHECK"] =
|
|
799
|
-
COMMON_SETTING_TYPE["CAN_EDIT"] =
|
|
800
|
-
COMMON_SETTING_TYPE["CAN_DELETE"] =
|
|
801
|
-
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] =
|
|
802
|
-
COMMON_SETTING_TYPE["MICROMETER"] =
|
|
803
|
-
COMMON_SETTING_TYPE["PRECISION"] =
|
|
804
|
-
COMMON_SETTING_TYPE["PERCENTAGE"] =
|
|
805
|
-
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] =
|
|
806
|
-
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] =
|
|
807
|
-
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] =
|
|
808
|
-
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] =
|
|
809
|
-
COMMON_SETTING_TYPE["VIEW_FORM_MODEL_TYPE"] =
|
|
810
|
-
COMMON_SETTING_TYPE["SERVER_PAGINATION"] =
|
|
811
|
-
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] =
|
|
812
|
-
COMMON_SETTING_TYPE["ENCRYPTED"] =
|
|
813
|
-
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] =
|
|
814
|
-
COMMON_SETTING_TYPE["REVISIONS_MODE"] =
|
|
815
|
-
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] =
|
|
775
|
+
COMMON_SETTING_TYPE["DEFAULT_DISPLAY"] = 'defaultDisplay';
|
|
776
|
+
COMMON_SETTING_TYPE["REQUIRED"] = 'required';
|
|
777
|
+
COMMON_SETTING_TYPE["IS_HIDE"] = 'isHide';
|
|
778
|
+
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] = 'isShowUnit';
|
|
779
|
+
COMMON_SETTING_TYPE["IMD_SEARCH"] = 'immediatelySearch';
|
|
780
|
+
COMMON_SETTING_TYPE["MULTIPLE"] = 'multiple';
|
|
781
|
+
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] = 'submitSelectCurrency';
|
|
782
|
+
COMMON_SETTING_TYPE["CAPTION"] = 'caption';
|
|
783
|
+
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] = 'isHideCaption';
|
|
784
|
+
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] = 'defaultShowOptions';
|
|
785
|
+
COMMON_SETTING_TYPE["CAN_SEARCH"] = 'canSearch';
|
|
786
|
+
COMMON_SETTING_TYPE["CAN_CHECK"] = 'canCheck';
|
|
787
|
+
COMMON_SETTING_TYPE["CAN_EDIT"] = 'canEdit';
|
|
788
|
+
COMMON_SETTING_TYPE["CAN_DELETE"] = 'canDelete';
|
|
789
|
+
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] = 'showUpperCase';
|
|
790
|
+
COMMON_SETTING_TYPE["MICROMETER"] = 'micrometer';
|
|
791
|
+
COMMON_SETTING_TYPE["PRECISION"] = 'precision';
|
|
792
|
+
COMMON_SETTING_TYPE["PERCENTAGE"] = 'percentage';
|
|
793
|
+
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] = 'optionalLevel';
|
|
794
|
+
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] = 'containsSubNode';
|
|
795
|
+
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] = 'defaultCollapse';
|
|
796
|
+
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] = 'canViewForm';
|
|
797
|
+
COMMON_SETTING_TYPE["VIEW_FORM_MODEL_TYPE"] = 'viewFormModelType';
|
|
798
|
+
COMMON_SETTING_TYPE["SERVER_PAGINATION"] = 'serverPagination';
|
|
799
|
+
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] = 'isShowCaptionTip';
|
|
800
|
+
COMMON_SETTING_TYPE["ENCRYPTED"] = 'encrypted';
|
|
801
|
+
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] = 'isInlineEdit';
|
|
802
|
+
COMMON_SETTING_TYPE["REVISIONS_MODE"] = 'revisionsMode';
|
|
803
|
+
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] = 'allowCopyOptions';
|
|
804
|
+
COMMON_SETTING_TYPE["IS_PASTE"] = 'isPaste';
|
|
816
805
|
})(COMMON_SETTING_TYPE || (COMMON_SETTING_TYPE = {}));
|
|
817
806
|
export var PAGE_STATUS;
|
|
818
807
|
(function(PAGE_STATUS) {
|
|
@@ -827,31 +816,31 @@ export var PAGE_STATUS;
|
|
|
827
816
|
*/ export var OperationItem = function OperationItem(props) {
|
|
828
817
|
"use strict";
|
|
829
818
|
_classCallCheck(this, OperationItem);
|
|
830
|
-
var
|
|
831
|
-
this.isShow = (
|
|
832
|
-
var
|
|
833
|
-
this.content = (
|
|
834
|
-
var
|
|
835
|
-
this.formKey = (
|
|
836
|
-
var
|
|
837
|
-
this.openType = (
|
|
838
|
-
var
|
|
839
|
-
this.type = (
|
|
840
|
-
var
|
|
841
|
-
this.priorityProcess = (
|
|
819
|
+
var ref;
|
|
820
|
+
this.isShow = (ref = props === null || props === void 0 ? void 0 : props.isShow) !== null && ref !== void 0 ? ref : true;
|
|
821
|
+
var ref86;
|
|
822
|
+
this.content = (ref86 = props === null || props === void 0 ? void 0 : props.content) !== null && ref86 !== void 0 ? ref86 : '';
|
|
823
|
+
var ref87;
|
|
824
|
+
this.formKey = (ref87 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref87 !== void 0 ? ref87 : '';
|
|
825
|
+
var ref88;
|
|
826
|
+
this.openType = (ref88 = props === null || props === void 0 ? void 0 : props.openType) !== null && ref88 !== void 0 ? ref88 : 'modal';
|
|
827
|
+
var ref89;
|
|
828
|
+
this.type = (ref89 = props === null || props === void 0 ? void 0 : props.type) !== null && ref89 !== void 0 ? ref89 : '';
|
|
829
|
+
var ref90;
|
|
830
|
+
this.priorityProcess = (ref90 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && ref90 !== void 0 ? ref90 : false;
|
|
842
831
|
};
|
|
843
832
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
844
833
|
"use strict";
|
|
845
834
|
_classCallCheck(this, ViewOperationItem);
|
|
846
|
-
var
|
|
847
|
-
var
|
|
848
|
-
this.id = (
|
|
849
|
-
var
|
|
850
|
-
this.title = (
|
|
851
|
-
var
|
|
852
|
-
this.headers = (
|
|
835
|
+
var ref;
|
|
836
|
+
var ref91;
|
|
837
|
+
this.id = (ref91 = props === null || props === void 0 ? void 0 : props.id) !== null && ref91 !== void 0 ? ref91 : genNonDuplicateId(8);
|
|
838
|
+
var ref92;
|
|
839
|
+
this.title = (ref92 = props === null || props === void 0 ? void 0 : props.title) !== null && ref92 !== void 0 ? ref92 : '';
|
|
840
|
+
var ref93;
|
|
841
|
+
this.headers = (ref93 = props === null || props === void 0 ? void 0 : (ref = props.headers) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
853
842
|
return new ListBindHeaderItem(item);
|
|
854
|
-
})) !== null &&
|
|
843
|
+
})) !== null && ref93 !== void 0 ? ref93 : [];
|
|
855
844
|
callFiltersAndOrders.call(this, props);
|
|
856
845
|
};
|
|
857
846
|
/**
|
|
@@ -859,28 +848,28 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
859
848
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
860
849
|
"use strict";
|
|
861
850
|
_classCallCheck(this, CustomPermissionItem);
|
|
862
|
-
var
|
|
863
|
-
this.key = (
|
|
864
|
-
var
|
|
865
|
-
this.caption = (
|
|
851
|
+
var _key;
|
|
852
|
+
this.key = (_key = props.key) !== null && _key !== void 0 ? _key : genNonDuplicateId(8);
|
|
853
|
+
var _caption;
|
|
854
|
+
this.caption = (_caption = props.caption) !== null && _caption !== void 0 ? _caption : '';
|
|
866
855
|
};
|
|
867
856
|
export var BaseStyle = function BaseStyle(props) {
|
|
868
857
|
"use strict";
|
|
869
858
|
_classCallCheck(this, BaseStyle);
|
|
870
|
-
var
|
|
871
|
-
this.width = (
|
|
872
|
-
var
|
|
873
|
-
this.height = (
|
|
874
|
-
var
|
|
875
|
-
this.widthConfig = (
|
|
876
|
-
var
|
|
877
|
-
this.heightConfig = (
|
|
859
|
+
var ref;
|
|
860
|
+
this.width = (ref = props === null || props === void 0 ? void 0 : props.width) !== null && ref !== void 0 ? ref : '';
|
|
861
|
+
var ref94;
|
|
862
|
+
this.height = (ref94 = props === null || props === void 0 ? void 0 : props.height) !== null && ref94 !== void 0 ? ref94 : '';
|
|
863
|
+
var ref95;
|
|
864
|
+
this.widthConfig = (ref95 = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && ref95 !== void 0 ? ref95 : 'fill';
|
|
865
|
+
var ref96;
|
|
866
|
+
this.heightConfig = (ref96 = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && ref96 !== void 0 ? ref96 : 'fill';
|
|
878
867
|
};
|
|
879
868
|
export var OptObject = function OptObject(props) {
|
|
880
869
|
"use strict";
|
|
881
870
|
_classCallCheck(this, OptObject);
|
|
882
|
-
var
|
|
883
|
-
this.optCode = (
|
|
884
|
-
var
|
|
885
|
-
this.optType = (
|
|
871
|
+
var ref;
|
|
872
|
+
this.optCode = (ref = props === null || props === void 0 ? void 0 : props.optCode) !== null && ref !== void 0 ? ref : '';
|
|
873
|
+
var ref97;
|
|
874
|
+
this.optType = (ref97 = props === null || props === void 0 ? void 0 : props.optType) !== null && ref97 !== void 0 ? ref97 : '';
|
|
886
875
|
};
|