@byteluck-fe/model-driven-core 1.8.1-beta.3 → 2.0.1
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/common/BaseControl/designer.js +68 -174
- package/dist/esm/common/BaseControl/property.js +4 -4
- package/dist/esm/common/BaseControl/runtime.js +11 -11
- package/dist/esm/common/ColumnControl/property.js +10 -10
- package/dist/esm/common/ControlArray.js +4 -4
- package/dist/esm/common/FormControl/designer.js +1 -1
- package/dist/esm/common/FormControl/property.js +22 -22
- package/dist/esm/common/LayoutControl/designer.js +18 -118
- package/dist/esm/common/ListControl/designer.js +17 -117
- package/dist/esm/common/initOptionAndDataSourceRules.js +8 -8
- package/dist/esm/framework/index.js +240 -240
- package/dist/index.umd.js +1 -1
- package/dist/types/common/Validator.d.ts +1 -1
- package/dist/types/common/controlHooksEmitter.d.ts +1 -1
- package/dist/types/type.d.ts +23 -23
- package/package.json +3 -3
|
@@ -81,31 +81,31 @@ export * from "./RegisterControls";
|
|
|
81
81
|
export var DataBind = function DataBind(props) {
|
|
82
82
|
"use strict";
|
|
83
83
|
_classCallCheck(this, DataBind);
|
|
84
|
-
var
|
|
85
|
-
this.dataCode = (
|
|
86
|
-
var
|
|
87
|
-
this.fieldCode = (
|
|
88
|
-
var
|
|
89
|
-
this.fieldType = (
|
|
84
|
+
var ref;
|
|
85
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : "";
|
|
86
|
+
var ref1;
|
|
87
|
+
this.fieldCode = (ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref1 !== void 0 ? ref1 : "";
|
|
88
|
+
var ref2;
|
|
89
|
+
this.fieldType = (ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref2 !== void 0 ? ref2 : "";
|
|
90
90
|
};
|
|
91
91
|
export var AutoWidth = function AutoWidth(props) {
|
|
92
92
|
"use strict";
|
|
93
93
|
_classCallCheck(this, AutoWidth);
|
|
94
|
-
var
|
|
95
|
-
this.minWidth = (
|
|
94
|
+
var ref;
|
|
95
|
+
this.minWidth = (ref = props === null || props === void 0 ? void 0 : props.minWidth) !== null && ref !== void 0 ? ref : 150;
|
|
96
96
|
this.maxWidth = props === null || props === void 0 ? void 0 : props.maxWidth;
|
|
97
|
-
var
|
|
98
|
-
this.flex = (
|
|
97
|
+
var ref1;
|
|
98
|
+
this.flex = (ref1 = props === null || props === void 0 ? void 0 : props.flex) !== null && ref1 !== void 0 ? ref1 : 1;
|
|
99
99
|
};
|
|
100
100
|
export var FormBind = function FormBind(props) {
|
|
101
101
|
"use strict";
|
|
102
102
|
_classCallCheck(this, FormBind);
|
|
103
|
-
var
|
|
104
|
-
this.dataCode = (
|
|
105
|
-
var
|
|
106
|
-
this.formKey = (
|
|
107
|
-
var
|
|
108
|
-
this.appId = (
|
|
103
|
+
var ref;
|
|
104
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : "";
|
|
105
|
+
var ref1;
|
|
106
|
+
this.formKey = (ref1 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref1 !== void 0 ? ref1 : "";
|
|
107
|
+
var ref2;
|
|
108
|
+
this.appId = (ref2 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref2 !== void 0 ? ref2 : "";
|
|
109
109
|
};
|
|
110
110
|
export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
111
111
|
"use strict";
|
|
@@ -115,8 +115,8 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
115
115
|
_classCallCheck(this, FormSelectBind);
|
|
116
116
|
var _this;
|
|
117
117
|
_this = _super.call(this, props);
|
|
118
|
-
var
|
|
119
|
-
_this.primaryControlId = (
|
|
118
|
+
var ref;
|
|
119
|
+
_this.primaryControlId = (ref = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && ref !== void 0 ? ref : "";
|
|
120
120
|
return _this;
|
|
121
121
|
}
|
|
122
122
|
return FormSelectBind;
|
|
@@ -124,31 +124,31 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
124
124
|
var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
125
125
|
"use strict";
|
|
126
126
|
_classCallCheck(this, ListBindHeaderItem);
|
|
127
|
-
var
|
|
128
|
-
this.fieldCode = (
|
|
127
|
+
var ref;
|
|
128
|
+
this.fieldCode = (ref = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref !== void 0 ? ref : "";
|
|
129
129
|
};
|
|
130
130
|
export var ListBind = function ListBind(props) {
|
|
131
131
|
"use strict";
|
|
132
132
|
_classCallCheck(this, ListBind);
|
|
133
|
-
var
|
|
134
|
-
var
|
|
135
|
-
this.appId = (
|
|
136
|
-
var
|
|
137
|
-
this.formKey = (
|
|
138
|
-
var
|
|
139
|
-
this.headers = (
|
|
133
|
+
var ref;
|
|
134
|
+
var ref1;
|
|
135
|
+
this.appId = (ref1 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref1 !== void 0 ? ref1 : "";
|
|
136
|
+
var ref2;
|
|
137
|
+
this.formKey = (ref2 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref2 !== void 0 ? ref2 : "";
|
|
138
|
+
var ref3;
|
|
139
|
+
this.headers = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.headers) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
140
140
|
return new ListBindHeaderItem(item);
|
|
141
|
-
})) !== null &&
|
|
141
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
142
142
|
};
|
|
143
143
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
144
144
|
"use strict";
|
|
145
145
|
_classCallCheck(this, FieldBindItem);
|
|
146
|
-
var
|
|
147
|
-
this.fieldName = (
|
|
148
|
-
var
|
|
149
|
-
this.fieldCode = (
|
|
150
|
-
var
|
|
151
|
-
this.fieldType = (
|
|
146
|
+
var ref;
|
|
147
|
+
this.fieldName = (ref = props === null || props === void 0 ? void 0 : props.fieldName) !== null && ref !== void 0 ? ref : "";
|
|
148
|
+
var ref1;
|
|
149
|
+
this.fieldCode = (ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref1 !== void 0 ? ref1 : "";
|
|
150
|
+
var ref2;
|
|
151
|
+
this.fieldType = (ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref2 !== void 0 ? ref2 : FieldTypes.VARCHAR;
|
|
152
152
|
};
|
|
153
153
|
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
154
154
|
"use strict";
|
|
@@ -158,14 +158,14 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
158
158
|
_classCallCheck(this, SubListItem);
|
|
159
159
|
var _this;
|
|
160
160
|
_this = _super.call(this, props);
|
|
161
|
-
var
|
|
162
|
-
_this.title = (
|
|
163
|
-
var
|
|
164
|
-
_this.svcCode = (
|
|
165
|
-
var
|
|
166
|
-
_this.isOpenFilter = (
|
|
167
|
-
var
|
|
168
|
-
_this.filters = (
|
|
161
|
+
var ref;
|
|
162
|
+
_this.title = (ref = props === null || props === void 0 ? void 0 : props.title) !== null && ref !== void 0 ? ref : "";
|
|
163
|
+
var ref1;
|
|
164
|
+
_this.svcCode = (ref1 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && ref1 !== void 0 ? ref1 : "";
|
|
165
|
+
var ref2;
|
|
166
|
+
_this.isOpenFilter = (ref2 = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && ref2 !== void 0 ? ref2 : false;
|
|
167
|
+
var ref3;
|
|
168
|
+
_this.filters = (ref3 = props === null || props === void 0 ? void 0 : props.filters) !== null && ref3 !== void 0 ? ref3 : [];
|
|
169
169
|
return _this;
|
|
170
170
|
}
|
|
171
171
|
return SubListItem;
|
|
@@ -173,17 +173,17 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
173
173
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
174
174
|
"use strict";
|
|
175
175
|
_classCallCheck(this, SubListPageConfig);
|
|
176
|
-
var
|
|
176
|
+
var ref, ref1;
|
|
177
177
|
this.type = "sublist-page";
|
|
178
178
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
179
|
-
var
|
|
180
|
-
this.displayFields = (
|
|
179
|
+
var ref2;
|
|
180
|
+
this.displayFields = (ref2 = props === null || props === void 0 ? void 0 : (ref = props.displayFields) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
181
181
|
return new FieldBindItem(item);
|
|
182
|
-
})) !== null &&
|
|
183
|
-
var
|
|
184
|
-
this.sublists = (
|
|
182
|
+
})) !== null && ref2 !== void 0 ? ref2 : [];
|
|
183
|
+
var ref3;
|
|
184
|
+
this.sublists = (ref3 = props === null || props === void 0 ? void 0 : (ref1 = props.sublists) === null || ref1 === void 0 ? void 0 : ref1.map(function(item) {
|
|
185
185
|
return new SubListItem(item);
|
|
186
|
-
})) !== null &&
|
|
186
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
187
187
|
};
|
|
188
188
|
export var LeftVariable = function LeftVariable(props) {
|
|
189
189
|
"use strict";
|
|
@@ -194,37 +194,37 @@ export var LeftVariable = function LeftVariable(props) {
|
|
|
194
194
|
export var RightVariable = function RightVariable(props) {
|
|
195
195
|
"use strict";
|
|
196
196
|
_classCallCheck(this, RightVariable);
|
|
197
|
-
var
|
|
198
|
-
this.type = (
|
|
199
|
-
var
|
|
200
|
-
this.value = (
|
|
201
|
-
var
|
|
202
|
-
this.displayBos = (
|
|
197
|
+
var ref;
|
|
198
|
+
this.type = (ref = props === null || props === void 0 ? void 0 : props.type) !== null && ref !== void 0 ? ref : "custom";
|
|
199
|
+
var ref1;
|
|
200
|
+
this.value = (ref1 = props === null || props === void 0 ? void 0 : props.value) !== null && ref1 !== void 0 ? ref1 : [];
|
|
201
|
+
var ref2;
|
|
202
|
+
this.displayBos = (ref2 = props === null || props === void 0 ? void 0 : props.displayBos) !== null && ref2 !== void 0 ? ref2 : [];
|
|
203
203
|
};
|
|
204
204
|
export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
205
205
|
"use strict";
|
|
206
206
|
var _this = this;
|
|
207
207
|
_classCallCheck(this, FieldFilterConditions);
|
|
208
208
|
this.type = "conditions";
|
|
209
|
-
var
|
|
210
|
-
this.id = (
|
|
211
|
-
var
|
|
212
|
-
this.ruleId = (
|
|
213
|
-
var
|
|
214
|
-
this.level = (
|
|
215
|
-
var
|
|
216
|
-
this.value = (
|
|
209
|
+
var ref;
|
|
210
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId();
|
|
211
|
+
var ref1;
|
|
212
|
+
this.ruleId = (ref1 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && ref1 !== void 0 ? ref1 : new Date().valueOf();
|
|
213
|
+
var ref2;
|
|
214
|
+
this.level = (ref2 = props === null || props === void 0 ? void 0 : props.level) !== null && ref2 !== void 0 ? ref2 : 0;
|
|
215
|
+
var ref3;
|
|
216
|
+
this.value = (ref3 = props === null || props === void 0 ? void 0 : props.value) !== null && ref3 !== void 0 ? ref3 : "and";
|
|
217
217
|
this.children = [];
|
|
218
218
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
219
219
|
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
220
220
|
if (item.children !== undefined) {
|
|
221
|
-
var
|
|
221
|
+
var ref;
|
|
222
222
|
var filter = new FieldFilterConditions(item);
|
|
223
|
-
(
|
|
223
|
+
(ref = _this.children) === null || ref === void 0 ? void 0 : ref.push(filter);
|
|
224
224
|
} else {
|
|
225
|
-
var
|
|
225
|
+
var ref1;
|
|
226
226
|
var filter1 = new FieldFilterCondition(item);
|
|
227
|
-
(
|
|
227
|
+
(ref1 = _this.children) === null || ref1 === void 0 ? void 0 : ref1.push(filter1);
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
230
|
}
|
|
@@ -233,132 +233,132 @@ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
|
233
233
|
"use strict";
|
|
234
234
|
_classCallCheck(this, FieldFilterCondition);
|
|
235
235
|
this.type = "condition";
|
|
236
|
-
var
|
|
237
|
-
this.id = (
|
|
238
|
-
var
|
|
239
|
-
this.ruleId = (
|
|
240
|
-
var
|
|
241
|
-
this.symbol = (
|
|
242
|
-
var
|
|
243
|
-
this.checked = (
|
|
244
|
-
var
|
|
245
|
-
this.describe = (
|
|
236
|
+
var ref;
|
|
237
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId();
|
|
238
|
+
var ref1;
|
|
239
|
+
this.ruleId = (ref1 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && ref1 !== void 0 ? ref1 : new Date().valueOf();
|
|
240
|
+
var ref2;
|
|
241
|
+
this.symbol = (ref2 = props === null || props === void 0 ? void 0 : props.symbol) !== null && ref2 !== void 0 ? ref2 : "";
|
|
242
|
+
var ref3;
|
|
243
|
+
this.checked = (ref3 = props === null || props === void 0 ? void 0 : props.checked) !== null && ref3 !== void 0 ? ref3 : false;
|
|
244
|
+
var ref4;
|
|
245
|
+
this.describe = (ref4 = props === null || props === void 0 ? void 0 : props.describe) !== null && ref4 !== void 0 ? ref4 : "";
|
|
246
246
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
247
247
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
248
248
|
};
|
|
249
249
|
export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
250
250
|
"use strict";
|
|
251
251
|
_classCallCheck(this, MultistageFillingItem);
|
|
252
|
-
var
|
|
253
|
-
this.controlId = (
|
|
254
|
-
var
|
|
255
|
-
this.fieldCode = (
|
|
256
|
-
var
|
|
257
|
-
this.fieldType = (
|
|
258
|
-
var
|
|
259
|
-
this.propName = (
|
|
252
|
+
var ref;
|
|
253
|
+
this.controlId = (ref = props === null || props === void 0 ? void 0 : props.controlId) !== null && ref !== void 0 ? ref : "";
|
|
254
|
+
var ref1;
|
|
255
|
+
this.fieldCode = (ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref1 !== void 0 ? ref1 : "";
|
|
256
|
+
var ref2;
|
|
257
|
+
this.fieldType = (ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref2 !== void 0 ? ref2 : "";
|
|
258
|
+
var ref3;
|
|
259
|
+
this.propName = (ref3 = props === null || props === void 0 ? void 0 : props.propName) !== null && ref3 !== void 0 ? ref3 : "";
|
|
260
260
|
};
|
|
261
261
|
export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
262
262
|
"use strict";
|
|
263
263
|
_classCallCheck(this, DisplayBoListItem);
|
|
264
|
-
var
|
|
265
|
-
this.type = (
|
|
266
|
-
var
|
|
267
|
-
this.value = (
|
|
264
|
+
var ref;
|
|
265
|
+
this.type = (ref = props === null || props === void 0 ? void 0 : props.type) !== null && ref !== void 0 ? ref : "FIELD";
|
|
266
|
+
var ref1;
|
|
267
|
+
this.value = (ref1 = props === null || props === void 0 ? void 0 : props.value) !== null && ref1 !== void 0 ? ref1 : "";
|
|
268
268
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
269
269
|
};
|
|
270
270
|
export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
271
271
|
"use strict";
|
|
272
272
|
_classCallCheck(this, DataSourceOrderItem);
|
|
273
|
-
var
|
|
274
|
-
this.columnName = (
|
|
275
|
-
var
|
|
276
|
-
this.desc = (
|
|
273
|
+
var _columnName;
|
|
274
|
+
this.columnName = (_columnName = props.columnName) !== null && _columnName !== void 0 ? _columnName : "";
|
|
275
|
+
var _desc;
|
|
276
|
+
this.desc = (_desc = props.desc) !== null && _desc !== void 0 ? _desc : false;
|
|
277
277
|
};
|
|
278
278
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
279
279
|
"use strict";
|
|
280
280
|
_classCallCheck(this, DataSourceDataSetValue);
|
|
281
|
-
var
|
|
282
|
-
this.code = (
|
|
283
|
-
var
|
|
284
|
-
this.value = (
|
|
285
|
-
var
|
|
286
|
-
this.field_type = (
|
|
281
|
+
var _code;
|
|
282
|
+
this.code = (_code = props.code) !== null && _code !== void 0 ? _code : "";
|
|
283
|
+
var _value;
|
|
284
|
+
this.value = (_value = props.value) !== null && _value !== void 0 ? _value : "";
|
|
285
|
+
var _field_type;
|
|
286
|
+
this.field_type = (_field_type = props.field_type) !== null && _field_type !== void 0 ? _field_type : FieldTypes.ANY;
|
|
287
287
|
};
|
|
288
288
|
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
289
289
|
"use strict";
|
|
290
290
|
_classCallCheck(this, DataSourceParamItem);
|
|
291
|
-
var
|
|
292
|
-
var
|
|
291
|
+
var ref, ref1;
|
|
292
|
+
var _id;
|
|
293
293
|
//字段ID,不可以当作随机数生成唯一编号
|
|
294
|
-
this.id = (
|
|
295
|
-
var
|
|
296
|
-
this.limit = (
|
|
297
|
-
var
|
|
298
|
-
this.formKey = (
|
|
299
|
-
var
|
|
300
|
-
this.orders = (
|
|
294
|
+
this.id = (_id = props.id) !== null && _id !== void 0 ? _id : "";
|
|
295
|
+
var _limit;
|
|
296
|
+
this.limit = (_limit = props.limit) !== null && _limit !== void 0 ? _limit : 20;
|
|
297
|
+
var _formKey;
|
|
298
|
+
this.formKey = (_formKey = props.formKey) !== null && _formKey !== void 0 ? _formKey : "";
|
|
299
|
+
var ref2;
|
|
300
|
+
this.orders = (ref2 = (ref = props.orders) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
301
301
|
return new DataSourceOrderItem(item);
|
|
302
|
-
})) !== null &&
|
|
303
|
-
var
|
|
304
|
-
this.dataSet = (
|
|
302
|
+
})) !== null && ref2 !== void 0 ? ref2 : [];
|
|
303
|
+
var ref3;
|
|
304
|
+
this.dataSet = (ref3 = (ref1 = props.dataSet) === null || ref1 === void 0 ? void 0 : ref1.map(function(item) {
|
|
305
305
|
return new DataSourceDataSetValue(item);
|
|
306
|
-
})) !== null &&
|
|
306
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
307
307
|
};
|
|
308
308
|
/**
|
|
309
309
|
* 给filters和orders赋值
|
|
310
310
|
* */ function callFiltersAndOrders(props) {
|
|
311
|
-
var
|
|
312
|
-
var
|
|
313
|
-
this.filters = (
|
|
311
|
+
var ref;
|
|
312
|
+
var ref1;
|
|
313
|
+
this.filters = (ref1 = props === null || props === void 0 ? void 0 : (ref = props.filters) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
314
314
|
if (item.children !== undefined) {
|
|
315
315
|
return new FieldFilterConditions(item);
|
|
316
316
|
}
|
|
317
317
|
return new FieldFilterCondition(item);
|
|
318
|
-
})) !== null &&
|
|
318
|
+
})) !== null && ref1 !== void 0 ? ref1 : [];
|
|
319
319
|
if (_instanceof(this, DataSourceBind) || _instanceof(this, FillPayloadBind)) {
|
|
320
|
-
var
|
|
321
|
-
var
|
|
322
|
-
this.orders = (
|
|
320
|
+
var ref2, ref3;
|
|
321
|
+
var ref4;
|
|
322
|
+
this.orders = (ref4 = (ref2 = props) === null || ref2 === void 0 ? void 0 : (ref3 = ref2.orders) === null || ref3 === void 0 ? void 0 : ref3.map(function(item) {
|
|
323
323
|
return new DataSourceOrderItem(item);
|
|
324
|
-
})) !== null &&
|
|
324
|
+
})) !== null && ref4 !== void 0 ? ref4 : [];
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
export var DataSourceBind = function DataSourceBind(props) {
|
|
328
328
|
"use strict";
|
|
329
329
|
var _this = this;
|
|
330
330
|
_classCallCheck(this, DataSourceBind);
|
|
331
|
-
var
|
|
332
|
-
this.dataCode = (
|
|
333
|
-
var
|
|
334
|
-
this.appId = (
|
|
335
|
-
var
|
|
336
|
-
this.valueFieldCode = (
|
|
331
|
+
var ref;
|
|
332
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : "";
|
|
333
|
+
var ref1;
|
|
334
|
+
this.appId = (ref1 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref1 !== void 0 ? ref1 : "";
|
|
335
|
+
var ref2;
|
|
336
|
+
this.valueFieldCode = (ref2 = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && ref2 !== void 0 ? ref2 : "";
|
|
337
337
|
this.displayBoList = [];
|
|
338
338
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
339
339
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
340
|
-
var
|
|
341
|
-
(
|
|
340
|
+
var ref;
|
|
341
|
+
(ref = _this.displayBoList) === null || ref === void 0 ? void 0 : ref.push(new DisplayBoListItem(item));
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
|
-
var
|
|
345
|
-
this.showOrder = (
|
|
346
|
-
var
|
|
347
|
-
this.svcCode = (
|
|
344
|
+
var ref3;
|
|
345
|
+
this.showOrder = (ref3 = props === null || props === void 0 ? void 0 : props.showOrder) !== null && ref3 !== void 0 ? ref3 : true;
|
|
346
|
+
var ref4;
|
|
347
|
+
this.svcCode = (ref4 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && ref4 !== void 0 ? ref4 : "";
|
|
348
348
|
callFiltersAndOrders.call(this, props);
|
|
349
349
|
};
|
|
350
350
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
351
351
|
"use strict";
|
|
352
352
|
_classCallCheck(this, CustomAttributeItem);
|
|
353
|
-
var
|
|
354
|
-
var
|
|
355
|
-
this.name = (
|
|
356
|
-
var
|
|
357
|
-
this.key = (
|
|
358
|
-
var
|
|
359
|
-
this.value = (
|
|
353
|
+
var ref;
|
|
354
|
+
var ref1;
|
|
355
|
+
this.name = (ref1 = props === null || props === void 0 ? void 0 : props.name) !== null && ref1 !== void 0 ? ref1 : "";
|
|
356
|
+
var ref2;
|
|
357
|
+
this.key = (ref2 = props === null || props === void 0 ? void 0 : props.key) !== null && ref2 !== void 0 ? ref2 : "";
|
|
358
|
+
var ref3;
|
|
359
|
+
this.value = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.value) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
360
360
|
return new DisplayBoListItem(item);
|
|
361
|
-
})) !== null &&
|
|
361
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
362
362
|
};
|
|
363
363
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
364
364
|
"use strict";
|
|
@@ -367,12 +367,12 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
367
367
|
function SuperDataSourceBind(props) {
|
|
368
368
|
_classCallCheck(this, SuperDataSourceBind);
|
|
369
369
|
var _this;
|
|
370
|
-
var
|
|
370
|
+
var ref;
|
|
371
371
|
_this = _super.call(this, props);
|
|
372
|
-
var
|
|
373
|
-
_this.attributes = (
|
|
372
|
+
var ref1;
|
|
373
|
+
_this.attributes = (ref1 = props === null || props === void 0 ? void 0 : (ref = props.attributes) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
374
374
|
return new CustomAttributeItem(item);
|
|
375
|
-
})) !== null &&
|
|
375
|
+
})) !== null && ref1 !== void 0 ? ref1 : [];
|
|
376
376
|
return _this;
|
|
377
377
|
}
|
|
378
378
|
return SuperDataSourceBind;
|
|
@@ -393,15 +393,15 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
393
393
|
var FillBind = function FillBind(props) {
|
|
394
394
|
"use strict";
|
|
395
395
|
_classCallCheck(this, FillBind);
|
|
396
|
-
var
|
|
397
|
-
var
|
|
398
|
-
this.dataCode = (
|
|
399
|
-
var
|
|
400
|
-
this.appId = (
|
|
401
|
-
var
|
|
402
|
-
this.fillList = (
|
|
396
|
+
var ref;
|
|
397
|
+
var ref1;
|
|
398
|
+
this.dataCode = (ref1 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref1 !== void 0 ? ref1 : "";
|
|
399
|
+
var ref2;
|
|
400
|
+
this.appId = (ref2 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref2 !== void 0 ? ref2 : "";
|
|
401
|
+
var ref3;
|
|
402
|
+
this.fillList = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.fillList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
403
403
|
return new MultistageFillingItem(item);
|
|
404
|
-
})) !== null &&
|
|
404
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
405
405
|
};
|
|
406
406
|
/*
|
|
407
407
|
* 填充的配置和需要携带的数据
|
|
@@ -428,10 +428,10 @@ var FillBind = function FillBind(props) {
|
|
|
428
428
|
_classCallCheck(this, FillBackBind);
|
|
429
429
|
var _this;
|
|
430
430
|
_this = _super.call(this, props);
|
|
431
|
-
var
|
|
432
|
-
_this.mode = (
|
|
433
|
-
var
|
|
434
|
-
_this.multiple = (
|
|
431
|
+
var ref;
|
|
432
|
+
_this.mode = (ref = props === null || props === void 0 ? void 0 : props.mode) !== null && ref !== void 0 ? ref : "current";
|
|
433
|
+
var ref1;
|
|
434
|
+
_this.multiple = (ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && ref1 !== void 0 ? ref1 : false;
|
|
435
435
|
return _this;
|
|
436
436
|
}
|
|
437
437
|
return FillBackBind;
|
|
@@ -439,33 +439,33 @@ var FillBind = function FillBind(props) {
|
|
|
439
439
|
export var Language = function Language(props) {
|
|
440
440
|
"use strict";
|
|
441
441
|
_classCallCheck(this, Language);
|
|
442
|
-
var
|
|
443
|
-
this.zh = (
|
|
444
|
-
var
|
|
445
|
-
this.en = (
|
|
446
|
-
var
|
|
447
|
-
this.ja = (
|
|
442
|
+
var ref;
|
|
443
|
+
this.zh = (ref = props === null || props === void 0 ? void 0 : props.zh) !== null && ref !== void 0 ? ref : "";
|
|
444
|
+
var ref1;
|
|
445
|
+
this.en = (ref1 = props === null || props === void 0 ? void 0 : props.en) !== null && ref1 !== void 0 ? ref1 : "";
|
|
446
|
+
var ref2;
|
|
447
|
+
this.ja = (ref2 = props === null || props === void 0 ? void 0 : props.ja) !== null && ref2 !== void 0 ? ref2 : "";
|
|
448
448
|
};
|
|
449
449
|
export var RegularRules = function RegularRules(props) {
|
|
450
450
|
"use strict";
|
|
451
451
|
_classCallCheck(this, RegularRules);
|
|
452
|
-
var
|
|
453
|
-
this.stencilName = (
|
|
454
|
-
var
|
|
455
|
-
this.expression = (
|
|
456
|
-
var
|
|
457
|
-
this.errMessage = (
|
|
452
|
+
var ref;
|
|
453
|
+
this.stencilName = (ref = props === null || props === void 0 ? void 0 : props.stencilName) !== null && ref !== void 0 ? ref : "";
|
|
454
|
+
var ref1;
|
|
455
|
+
this.expression = (ref1 = props === null || props === void 0 ? void 0 : props.expression) !== null && ref1 !== void 0 ? ref1 : "";
|
|
456
|
+
var ref2;
|
|
457
|
+
this.errMessage = (ref2 = props === null || props === void 0 ? void 0 : props.errMessage) !== null && ref2 !== void 0 ? ref2 : "";
|
|
458
458
|
};
|
|
459
459
|
// 选项设置-自定义选项
|
|
460
460
|
export var OptionSetting = function OptionSetting(props) {
|
|
461
461
|
"use strict";
|
|
462
462
|
_classCallCheck(this, OptionSetting);
|
|
463
|
-
var
|
|
464
|
-
this.id = (
|
|
465
|
-
var
|
|
466
|
-
this.label = (
|
|
467
|
-
var
|
|
468
|
-
this.value = (
|
|
463
|
+
var ref;
|
|
464
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId(8);
|
|
465
|
+
var ref1;
|
|
466
|
+
this.label = (ref1 = props === null || props === void 0 ? void 0 : props.label) !== null && ref1 !== void 0 ? ref1 : "";
|
|
467
|
+
var ref2;
|
|
468
|
+
this.value = (ref2 = props === null || props === void 0 ? void 0 : props.value) !== null && ref2 !== void 0 ? ref2 : this.label;
|
|
469
469
|
};
|
|
470
470
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
471
471
|
"use strict";
|
|
@@ -475,25 +475,25 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
475
475
|
_classCallCheck(this, ImageOptionSetting);
|
|
476
476
|
var _this;
|
|
477
477
|
_this = _super.call(this, props);
|
|
478
|
-
var
|
|
479
|
-
_this.image = (
|
|
480
|
-
var
|
|
481
|
-
_this.type = (
|
|
478
|
+
var ref;
|
|
479
|
+
_this.image = (ref = props === null || props === void 0 ? void 0 : props.image) !== null && ref !== void 0 ? ref : "";
|
|
480
|
+
var ref1;
|
|
481
|
+
_this.type = (ref1 = props === null || props === void 0 ? void 0 : props.type) !== null && ref1 !== void 0 ? ref1 : "src";
|
|
482
482
|
return _this;
|
|
483
483
|
}
|
|
484
484
|
return ImageOptionSetting;
|
|
485
485
|
}(OptionSetting);
|
|
486
486
|
export function initOptions(options) {
|
|
487
|
-
var
|
|
488
|
-
return (
|
|
487
|
+
var ref;
|
|
488
|
+
return (ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
489
489
|
return new OptionSetting(item);
|
|
490
|
-
})) !== null &&
|
|
490
|
+
})) !== null && ref !== void 0 ? ref : [];
|
|
491
491
|
}
|
|
492
492
|
export function initImageOptions(options) {
|
|
493
|
-
var
|
|
494
|
-
return (
|
|
493
|
+
var ref;
|
|
494
|
+
return (ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
495
495
|
return new ImageOptionSetting(item);
|
|
496
|
-
})) !== null &&
|
|
496
|
+
})) !== null && ref !== void 0 ? ref : [];
|
|
497
497
|
}
|
|
498
498
|
export var ObjectDataBind = function ObjectDataBind() {
|
|
499
499
|
"use strict";
|
|
@@ -516,10 +516,10 @@ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
516
516
|
export var AmountValue = function AmountValue(props) {
|
|
517
517
|
"use strict";
|
|
518
518
|
_classCallCheck(this, AmountValue);
|
|
519
|
-
var
|
|
520
|
-
this.amount = (
|
|
521
|
-
var
|
|
522
|
-
this.currency = (
|
|
519
|
+
var ref;
|
|
520
|
+
this.amount = (ref = props === null || props === void 0 ? void 0 : props.amount) !== null && ref !== void 0 ? ref : "";
|
|
521
|
+
var ref1;
|
|
522
|
+
this.currency = (ref1 = props === null || props === void 0 ? void 0 : props.currency) !== null && ref1 !== void 0 ? ref1 : AMOUNT_TYPE.CNY;
|
|
523
523
|
};
|
|
524
524
|
export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
525
525
|
"use strict";
|
|
@@ -538,26 +538,26 @@ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
538
538
|
export var RangeDateValue = function RangeDateValue(props) {
|
|
539
539
|
"use strict";
|
|
540
540
|
_classCallCheck(this, RangeDateValue);
|
|
541
|
-
var
|
|
542
|
-
this.min = (
|
|
543
|
-
var
|
|
544
|
-
this.max = (
|
|
541
|
+
var ref;
|
|
542
|
+
this.min = (ref = props === null || props === void 0 ? void 0 : props.min) !== null && ref !== void 0 ? ref : "";
|
|
543
|
+
var ref1;
|
|
544
|
+
this.max = (ref1 = props === null || props === void 0 ? void 0 : props.max) !== null && ref1 !== void 0 ? ref1 : "";
|
|
545
545
|
};
|
|
546
546
|
export var AddressValue = function AddressValue(props) {
|
|
547
547
|
"use strict";
|
|
548
548
|
_classCallCheck(this, AddressValue);
|
|
549
|
-
var
|
|
550
|
-
this.city = (
|
|
551
|
-
var
|
|
552
|
-
this.cityDisplay = (
|
|
553
|
-
var
|
|
554
|
-
this.district = (
|
|
555
|
-
var
|
|
556
|
-
this.districtDisplay = (
|
|
557
|
-
var
|
|
558
|
-
this.province = (
|
|
559
|
-
var
|
|
560
|
-
this.provinceDisplay = (
|
|
549
|
+
var ref;
|
|
550
|
+
this.city = (ref = props === null || props === void 0 ? void 0 : props.city) !== null && ref !== void 0 ? ref : "";
|
|
551
|
+
var ref1;
|
|
552
|
+
this.cityDisplay = (ref1 = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && ref1 !== void 0 ? ref1 : "";
|
|
553
|
+
var ref2;
|
|
554
|
+
this.district = (ref2 = props === null || props === void 0 ? void 0 : props.district) !== null && ref2 !== void 0 ? ref2 : "";
|
|
555
|
+
var ref3;
|
|
556
|
+
this.districtDisplay = (ref3 = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && ref3 !== void 0 ? ref3 : "";
|
|
557
|
+
var ref4;
|
|
558
|
+
this.province = (ref4 = props === null || props === void 0 ? void 0 : props.province) !== null && ref4 !== void 0 ? ref4 : "";
|
|
559
|
+
var ref5;
|
|
560
|
+
this.provinceDisplay = (ref5 = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && ref5 !== void 0 ? ref5 : "";
|
|
561
561
|
};
|
|
562
562
|
export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
563
563
|
"use strict";
|
|
@@ -576,10 +576,10 @@ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
576
576
|
export var CalcValue = function CalcValue(props) {
|
|
577
577
|
"use strict";
|
|
578
578
|
_classCallCheck(this, CalcValue);
|
|
579
|
-
var
|
|
580
|
-
this.result = (
|
|
581
|
-
var
|
|
582
|
-
this.unit = (
|
|
579
|
+
var ref;
|
|
580
|
+
this.result = (ref = props === null || props === void 0 ? void 0 : props.result) !== null && ref !== void 0 ? ref : 0;
|
|
581
|
+
var ref1;
|
|
582
|
+
this.unit = (ref1 = props === null || props === void 0 ? void 0 : props.unit) !== null && ref1 !== void 0 ? ref1 : "";
|
|
583
583
|
};
|
|
584
584
|
export var AMOUNT_TYPE;
|
|
585
585
|
(function(AMOUNT_TYPE) {
|
|
@@ -651,31 +651,31 @@ export var PAGE_STATUS;
|
|
|
651
651
|
export var OperationItem = function OperationItem(props) {
|
|
652
652
|
"use strict";
|
|
653
653
|
_classCallCheck(this, OperationItem);
|
|
654
|
-
var
|
|
655
|
-
this.isShow = (
|
|
656
|
-
var
|
|
657
|
-
this.content = (
|
|
658
|
-
var
|
|
659
|
-
this.formKey = (
|
|
660
|
-
var
|
|
661
|
-
this.openType = (
|
|
662
|
-
var
|
|
663
|
-
this.type = (
|
|
664
|
-
var
|
|
665
|
-
this.priorityProcess = (
|
|
654
|
+
var ref;
|
|
655
|
+
this.isShow = (ref = props === null || props === void 0 ? void 0 : props.isShow) !== null && ref !== void 0 ? ref : true;
|
|
656
|
+
var ref1;
|
|
657
|
+
this.content = (ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && ref1 !== void 0 ? ref1 : "";
|
|
658
|
+
var ref2;
|
|
659
|
+
this.formKey = (ref2 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref2 !== void 0 ? ref2 : "";
|
|
660
|
+
var ref3;
|
|
661
|
+
this.openType = (ref3 = props === null || props === void 0 ? void 0 : props.openType) !== null && ref3 !== void 0 ? ref3 : "modal";
|
|
662
|
+
var ref4;
|
|
663
|
+
this.type = (ref4 = props === null || props === void 0 ? void 0 : props.type) !== null && ref4 !== void 0 ? ref4 : "";
|
|
664
|
+
var ref5;
|
|
665
|
+
this.priorityProcess = (ref5 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && ref5 !== void 0 ? ref5 : false;
|
|
666
666
|
};
|
|
667
667
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
668
668
|
"use strict";
|
|
669
669
|
_classCallCheck(this, ViewOperationItem);
|
|
670
|
-
var
|
|
671
|
-
var
|
|
672
|
-
this.id = (
|
|
673
|
-
var
|
|
674
|
-
this.title = (
|
|
675
|
-
var
|
|
676
|
-
this.headers = (
|
|
670
|
+
var ref;
|
|
671
|
+
var ref1;
|
|
672
|
+
this.id = (ref1 = props === null || props === void 0 ? void 0 : props.id) !== null && ref1 !== void 0 ? ref1 : genNonDuplicateId(8);
|
|
673
|
+
var ref2;
|
|
674
|
+
this.title = (ref2 = props === null || props === void 0 ? void 0 : props.title) !== null && ref2 !== void 0 ? ref2 : "";
|
|
675
|
+
var ref3;
|
|
676
|
+
this.headers = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.headers) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
677
677
|
return new ListBindHeaderItem(item);
|
|
678
|
-
})) !== null &&
|
|
678
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
679
679
|
callFiltersAndOrders.call(this, props);
|
|
680
680
|
};
|
|
681
681
|
/**
|
|
@@ -683,20 +683,20 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
683
683
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
684
684
|
"use strict";
|
|
685
685
|
_classCallCheck(this, CustomPermissionItem);
|
|
686
|
-
var
|
|
687
|
-
this.key = (
|
|
688
|
-
var
|
|
689
|
-
this.caption = (
|
|
686
|
+
var _key;
|
|
687
|
+
this.key = (_key = props.key) !== null && _key !== void 0 ? _key : genNonDuplicateId(8);
|
|
688
|
+
var _caption;
|
|
689
|
+
this.caption = (_caption = props.caption) !== null && _caption !== void 0 ? _caption : "";
|
|
690
690
|
};
|
|
691
691
|
export var BaseStyle = function BaseStyle(props) {
|
|
692
692
|
"use strict";
|
|
693
693
|
_classCallCheck(this, BaseStyle);
|
|
694
|
-
var
|
|
695
|
-
this.width = (
|
|
696
|
-
var
|
|
697
|
-
this.height = (
|
|
698
|
-
var
|
|
699
|
-
this.widthConfig = (
|
|
700
|
-
var
|
|
701
|
-
this.heightConfig = (
|
|
694
|
+
var ref;
|
|
695
|
+
this.width = (ref = props === null || props === void 0 ? void 0 : props.width) !== null && ref !== void 0 ? ref : "";
|
|
696
|
+
var ref1;
|
|
697
|
+
this.height = (ref1 = props === null || props === void 0 ? void 0 : props.height) !== null && ref1 !== void 0 ? ref1 : "";
|
|
698
|
+
var ref2;
|
|
699
|
+
this.widthConfig = (ref2 = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && ref2 !== void 0 ? ref2 : "fill";
|
|
700
|
+
var ref3;
|
|
701
|
+
this.heightConfig = (ref3 = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && ref3 !== void 0 ? ref3 : "fill";
|
|
702
702
|
};
|