@byteluck-fe/model-driven-core 1.7.2 → 1.7.5
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 +19 -19
- 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 +8 -8
- package/dist/esm/common/ControlArray.js +4 -4
- package/dist/esm/common/FormControl/property.js +20 -20
- package/dist/esm/common/LayoutControl/designer.js +1 -1
- package/dist/esm/framework/index.js +238 -238
- 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,22 +81,22 @@ 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 FormBind = function FormBind(props) {
|
|
92
92
|
"use strict";
|
|
93
93
|
_classCallCheck(this, FormBind);
|
|
94
|
-
var
|
|
95
|
-
this.dataCode = (
|
|
96
|
-
var
|
|
97
|
-
this.formKey = (
|
|
98
|
-
var
|
|
99
|
-
this.appId = (
|
|
94
|
+
var ref;
|
|
95
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : "";
|
|
96
|
+
var ref1;
|
|
97
|
+
this.formKey = (ref1 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref1 !== void 0 ? ref1 : "";
|
|
98
|
+
var ref2;
|
|
99
|
+
this.appId = (ref2 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref2 !== void 0 ? ref2 : "";
|
|
100
100
|
};
|
|
101
101
|
export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
102
102
|
"use strict";
|
|
@@ -106,8 +106,8 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
106
106
|
_classCallCheck(this, FormSelectBind);
|
|
107
107
|
var _this;
|
|
108
108
|
_this = _super.call(this, props);
|
|
109
|
-
var
|
|
110
|
-
_this.primaryControlId = (
|
|
109
|
+
var ref;
|
|
110
|
+
_this.primaryControlId = (ref = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && ref !== void 0 ? ref : "";
|
|
111
111
|
return _this;
|
|
112
112
|
}
|
|
113
113
|
return FormSelectBind;
|
|
@@ -115,31 +115,31 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
115
115
|
var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
116
116
|
"use strict";
|
|
117
117
|
_classCallCheck(this, ListBindHeaderItem);
|
|
118
|
-
var
|
|
119
|
-
this.fieldCode = (
|
|
118
|
+
var ref;
|
|
119
|
+
this.fieldCode = (ref = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref !== void 0 ? ref : "";
|
|
120
120
|
};
|
|
121
121
|
export var ListBind = function ListBind(props) {
|
|
122
122
|
"use strict";
|
|
123
123
|
_classCallCheck(this, ListBind);
|
|
124
|
-
var
|
|
125
|
-
var
|
|
126
|
-
this.appId = (
|
|
127
|
-
var
|
|
128
|
-
this.formKey = (
|
|
129
|
-
var
|
|
130
|
-
this.headers = (
|
|
124
|
+
var ref;
|
|
125
|
+
var ref1;
|
|
126
|
+
this.appId = (ref1 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref1 !== void 0 ? ref1 : "";
|
|
127
|
+
var ref2;
|
|
128
|
+
this.formKey = (ref2 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref2 !== void 0 ? ref2 : "";
|
|
129
|
+
var ref3;
|
|
130
|
+
this.headers = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.headers) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
131
131
|
return new ListBindHeaderItem(item);
|
|
132
|
-
})) !== null &&
|
|
132
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
133
133
|
};
|
|
134
134
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
135
135
|
"use strict";
|
|
136
136
|
_classCallCheck(this, FieldBindItem);
|
|
137
|
-
var
|
|
138
|
-
this.fieldName = (
|
|
139
|
-
var
|
|
140
|
-
this.fieldCode = (
|
|
141
|
-
var
|
|
142
|
-
this.fieldType = (
|
|
137
|
+
var ref;
|
|
138
|
+
this.fieldName = (ref = props === null || props === void 0 ? void 0 : props.fieldName) !== null && ref !== void 0 ? ref : "";
|
|
139
|
+
var ref1;
|
|
140
|
+
this.fieldCode = (ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref1 !== void 0 ? ref1 : "";
|
|
141
|
+
var ref2;
|
|
142
|
+
this.fieldType = (ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref2 !== void 0 ? ref2 : FieldTypes.VARCHAR;
|
|
143
143
|
};
|
|
144
144
|
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
145
145
|
"use strict";
|
|
@@ -149,14 +149,14 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
149
149
|
_classCallCheck(this, SubListItem);
|
|
150
150
|
var _this;
|
|
151
151
|
_this = _super.call(this, props);
|
|
152
|
-
var
|
|
153
|
-
_this.title = (
|
|
154
|
-
var
|
|
155
|
-
_this.svcCode = (
|
|
156
|
-
var
|
|
157
|
-
_this.isOpenFilter = (
|
|
158
|
-
var
|
|
159
|
-
_this.filters = (
|
|
152
|
+
var ref;
|
|
153
|
+
_this.title = (ref = props === null || props === void 0 ? void 0 : props.title) !== null && ref !== void 0 ? ref : "";
|
|
154
|
+
var ref1;
|
|
155
|
+
_this.svcCode = (ref1 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && ref1 !== void 0 ? ref1 : "";
|
|
156
|
+
var ref2;
|
|
157
|
+
_this.isOpenFilter = (ref2 = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && ref2 !== void 0 ? ref2 : false;
|
|
158
|
+
var ref3;
|
|
159
|
+
_this.filters = (ref3 = props === null || props === void 0 ? void 0 : props.filters) !== null && ref3 !== void 0 ? ref3 : [];
|
|
160
160
|
return _this;
|
|
161
161
|
}
|
|
162
162
|
return SubListItem;
|
|
@@ -164,17 +164,17 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
164
164
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
165
165
|
"use strict";
|
|
166
166
|
_classCallCheck(this, SubListPageConfig);
|
|
167
|
-
var
|
|
167
|
+
var ref, ref1;
|
|
168
168
|
this.type = "sublist-page";
|
|
169
169
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
170
|
-
var
|
|
171
|
-
this.displayFields = (
|
|
170
|
+
var ref2;
|
|
171
|
+
this.displayFields = (ref2 = props === null || props === void 0 ? void 0 : (ref = props.displayFields) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
172
172
|
return new FieldBindItem(item);
|
|
173
|
-
})) !== null &&
|
|
174
|
-
var
|
|
175
|
-
this.sublists = (
|
|
173
|
+
})) !== null && ref2 !== void 0 ? ref2 : [];
|
|
174
|
+
var ref3;
|
|
175
|
+
this.sublists = (ref3 = props === null || props === void 0 ? void 0 : (ref1 = props.sublists) === null || ref1 === void 0 ? void 0 : ref1.map(function(item) {
|
|
176
176
|
return new SubListItem(item);
|
|
177
|
-
})) !== null &&
|
|
177
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
178
178
|
};
|
|
179
179
|
export var LeftVariable = function LeftVariable(props) {
|
|
180
180
|
"use strict";
|
|
@@ -185,37 +185,37 @@ export var LeftVariable = function LeftVariable(props) {
|
|
|
185
185
|
export var RightVariable = function RightVariable(props) {
|
|
186
186
|
"use strict";
|
|
187
187
|
_classCallCheck(this, RightVariable);
|
|
188
|
-
var
|
|
189
|
-
this.type = (
|
|
190
|
-
var
|
|
191
|
-
this.value = (
|
|
192
|
-
var
|
|
193
|
-
this.displayBos = (
|
|
188
|
+
var ref;
|
|
189
|
+
this.type = (ref = props === null || props === void 0 ? void 0 : props.type) !== null && ref !== void 0 ? ref : "custom";
|
|
190
|
+
var ref1;
|
|
191
|
+
this.value = (ref1 = props === null || props === void 0 ? void 0 : props.value) !== null && ref1 !== void 0 ? ref1 : [];
|
|
192
|
+
var ref2;
|
|
193
|
+
this.displayBos = (ref2 = props === null || props === void 0 ? void 0 : props.displayBos) !== null && ref2 !== void 0 ? ref2 : [];
|
|
194
194
|
};
|
|
195
195
|
export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
196
196
|
"use strict";
|
|
197
197
|
var _this = this;
|
|
198
198
|
_classCallCheck(this, FieldFilterConditions);
|
|
199
199
|
this.type = "conditions";
|
|
200
|
-
var
|
|
201
|
-
this.id = (
|
|
202
|
-
var
|
|
203
|
-
this.ruleId = (
|
|
204
|
-
var
|
|
205
|
-
this.level = (
|
|
206
|
-
var
|
|
207
|
-
this.value = (
|
|
200
|
+
var ref;
|
|
201
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId();
|
|
202
|
+
var ref1;
|
|
203
|
+
this.ruleId = (ref1 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && ref1 !== void 0 ? ref1 : new Date().valueOf();
|
|
204
|
+
var ref2;
|
|
205
|
+
this.level = (ref2 = props === null || props === void 0 ? void 0 : props.level) !== null && ref2 !== void 0 ? ref2 : 0;
|
|
206
|
+
var ref3;
|
|
207
|
+
this.value = (ref3 = props === null || props === void 0 ? void 0 : props.value) !== null && ref3 !== void 0 ? ref3 : "and";
|
|
208
208
|
this.children = [];
|
|
209
209
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
210
210
|
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
211
211
|
if (item.children !== undefined) {
|
|
212
|
-
var
|
|
212
|
+
var ref;
|
|
213
213
|
var filter = new FieldFilterConditions(item);
|
|
214
|
-
(
|
|
214
|
+
(ref = _this.children) === null || ref === void 0 ? void 0 : ref.push(filter);
|
|
215
215
|
} else {
|
|
216
|
-
var
|
|
216
|
+
var ref1;
|
|
217
217
|
var filter1 = new FieldFilterCondition(item);
|
|
218
|
-
(
|
|
218
|
+
(ref1 = _this.children) === null || ref1 === void 0 ? void 0 : ref1.push(filter1);
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
221
|
}
|
|
@@ -224,132 +224,132 @@ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
|
224
224
|
"use strict";
|
|
225
225
|
_classCallCheck(this, FieldFilterCondition);
|
|
226
226
|
this.type = "condition";
|
|
227
|
-
var
|
|
228
|
-
this.id = (
|
|
229
|
-
var
|
|
230
|
-
this.ruleId = (
|
|
231
|
-
var
|
|
232
|
-
this.symbol = (
|
|
233
|
-
var
|
|
234
|
-
this.checked = (
|
|
235
|
-
var
|
|
236
|
-
this.describe = (
|
|
227
|
+
var ref;
|
|
228
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId();
|
|
229
|
+
var ref1;
|
|
230
|
+
this.ruleId = (ref1 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && ref1 !== void 0 ? ref1 : new Date().valueOf();
|
|
231
|
+
var ref2;
|
|
232
|
+
this.symbol = (ref2 = props === null || props === void 0 ? void 0 : props.symbol) !== null && ref2 !== void 0 ? ref2 : "";
|
|
233
|
+
var ref3;
|
|
234
|
+
this.checked = (ref3 = props === null || props === void 0 ? void 0 : props.checked) !== null && ref3 !== void 0 ? ref3 : false;
|
|
235
|
+
var ref4;
|
|
236
|
+
this.describe = (ref4 = props === null || props === void 0 ? void 0 : props.describe) !== null && ref4 !== void 0 ? ref4 : "";
|
|
237
237
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
238
238
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
239
239
|
};
|
|
240
240
|
export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
241
241
|
"use strict";
|
|
242
242
|
_classCallCheck(this, MultistageFillingItem);
|
|
243
|
-
var
|
|
244
|
-
this.controlId = (
|
|
245
|
-
var
|
|
246
|
-
this.fieldCode = (
|
|
247
|
-
var
|
|
248
|
-
this.fieldType = (
|
|
249
|
-
var
|
|
250
|
-
this.propName = (
|
|
243
|
+
var ref;
|
|
244
|
+
this.controlId = (ref = props === null || props === void 0 ? void 0 : props.controlId) !== null && ref !== void 0 ? ref : "";
|
|
245
|
+
var ref1;
|
|
246
|
+
this.fieldCode = (ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref1 !== void 0 ? ref1 : "";
|
|
247
|
+
var ref2;
|
|
248
|
+
this.fieldType = (ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref2 !== void 0 ? ref2 : "";
|
|
249
|
+
var ref3;
|
|
250
|
+
this.propName = (ref3 = props === null || props === void 0 ? void 0 : props.propName) !== null && ref3 !== void 0 ? ref3 : "";
|
|
251
251
|
};
|
|
252
252
|
export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
253
253
|
"use strict";
|
|
254
254
|
_classCallCheck(this, DisplayBoListItem);
|
|
255
|
-
var
|
|
256
|
-
this.type = (
|
|
257
|
-
var
|
|
258
|
-
this.value = (
|
|
255
|
+
var ref;
|
|
256
|
+
this.type = (ref = props === null || props === void 0 ? void 0 : props.type) !== null && ref !== void 0 ? ref : "FIELD";
|
|
257
|
+
var ref1;
|
|
258
|
+
this.value = (ref1 = props === null || props === void 0 ? void 0 : props.value) !== null && ref1 !== void 0 ? ref1 : "";
|
|
259
259
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
260
260
|
};
|
|
261
261
|
export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
262
262
|
"use strict";
|
|
263
263
|
_classCallCheck(this, DataSourceOrderItem);
|
|
264
|
-
var
|
|
265
|
-
this.columnName = (
|
|
266
|
-
var
|
|
267
|
-
this.desc = (
|
|
264
|
+
var _columnName;
|
|
265
|
+
this.columnName = (_columnName = props.columnName) !== null && _columnName !== void 0 ? _columnName : "";
|
|
266
|
+
var _desc;
|
|
267
|
+
this.desc = (_desc = props.desc) !== null && _desc !== void 0 ? _desc : false;
|
|
268
268
|
};
|
|
269
269
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
270
270
|
"use strict";
|
|
271
271
|
_classCallCheck(this, DataSourceDataSetValue);
|
|
272
|
-
var
|
|
273
|
-
this.code = (
|
|
274
|
-
var
|
|
275
|
-
this.value = (
|
|
276
|
-
var
|
|
277
|
-
this.field_type = (
|
|
272
|
+
var _code;
|
|
273
|
+
this.code = (_code = props.code) !== null && _code !== void 0 ? _code : "";
|
|
274
|
+
var _value;
|
|
275
|
+
this.value = (_value = props.value) !== null && _value !== void 0 ? _value : "";
|
|
276
|
+
var _field_type;
|
|
277
|
+
this.field_type = (_field_type = props.field_type) !== null && _field_type !== void 0 ? _field_type : FieldTypes.ANY;
|
|
278
278
|
};
|
|
279
279
|
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
280
280
|
"use strict";
|
|
281
281
|
_classCallCheck(this, DataSourceParamItem);
|
|
282
|
-
var
|
|
283
|
-
var
|
|
282
|
+
var ref, ref1;
|
|
283
|
+
var _id;
|
|
284
284
|
//字段ID,不可以当作随机数生成唯一编号
|
|
285
|
-
this.id = (
|
|
286
|
-
var
|
|
287
|
-
this.limit = (
|
|
288
|
-
var
|
|
289
|
-
this.formKey = (
|
|
290
|
-
var
|
|
291
|
-
this.orders = (
|
|
285
|
+
this.id = (_id = props.id) !== null && _id !== void 0 ? _id : "";
|
|
286
|
+
var _limit;
|
|
287
|
+
this.limit = (_limit = props.limit) !== null && _limit !== void 0 ? _limit : 20;
|
|
288
|
+
var _formKey;
|
|
289
|
+
this.formKey = (_formKey = props.formKey) !== null && _formKey !== void 0 ? _formKey : "";
|
|
290
|
+
var ref2;
|
|
291
|
+
this.orders = (ref2 = (ref = props.orders) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
292
292
|
return new DataSourceOrderItem(item);
|
|
293
|
-
})) !== null &&
|
|
294
|
-
var
|
|
295
|
-
this.dataSet = (
|
|
293
|
+
})) !== null && ref2 !== void 0 ? ref2 : [];
|
|
294
|
+
var ref3;
|
|
295
|
+
this.dataSet = (ref3 = (ref1 = props.dataSet) === null || ref1 === void 0 ? void 0 : ref1.map(function(item) {
|
|
296
296
|
return new DataSourceDataSetValue(item);
|
|
297
|
-
})) !== null &&
|
|
297
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
298
298
|
};
|
|
299
299
|
/**
|
|
300
300
|
* 给filters和orders赋值
|
|
301
301
|
* */ function callFiltersAndOrders(props) {
|
|
302
|
-
var
|
|
303
|
-
var
|
|
304
|
-
this.filters = (
|
|
302
|
+
var ref;
|
|
303
|
+
var ref1;
|
|
304
|
+
this.filters = (ref1 = props === null || props === void 0 ? void 0 : (ref = props.filters) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
305
305
|
if (item.children !== undefined) {
|
|
306
306
|
return new FieldFilterConditions(item);
|
|
307
307
|
}
|
|
308
308
|
return new FieldFilterCondition(item);
|
|
309
|
-
})) !== null &&
|
|
309
|
+
})) !== null && ref1 !== void 0 ? ref1 : [];
|
|
310
310
|
if (_instanceof(this, DataSourceBind) || _instanceof(this, FillPayloadBind)) {
|
|
311
|
-
var
|
|
312
|
-
var
|
|
313
|
-
this.orders = (
|
|
311
|
+
var ref2;
|
|
312
|
+
var ref3;
|
|
313
|
+
this.orders = (ref3 = props === null || props === void 0 ? void 0 : (ref2 = props.orders) === null || ref2 === void 0 ? void 0 : ref2.map(function(item) {
|
|
314
314
|
return new DataSourceOrderItem(item);
|
|
315
|
-
})) !== null &&
|
|
315
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
export var DataSourceBind = function DataSourceBind(props) {
|
|
319
319
|
"use strict";
|
|
320
320
|
var _this = this;
|
|
321
321
|
_classCallCheck(this, DataSourceBind);
|
|
322
|
-
var
|
|
323
|
-
this.dataCode = (
|
|
324
|
-
var
|
|
325
|
-
this.appId = (
|
|
326
|
-
var
|
|
327
|
-
this.valueFieldCode = (
|
|
322
|
+
var ref;
|
|
323
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : "";
|
|
324
|
+
var ref1;
|
|
325
|
+
this.appId = (ref1 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref1 !== void 0 ? ref1 : "";
|
|
326
|
+
var ref2;
|
|
327
|
+
this.valueFieldCode = (ref2 = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && ref2 !== void 0 ? ref2 : "";
|
|
328
328
|
this.displayBoList = [];
|
|
329
329
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
330
330
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
331
|
-
var
|
|
332
|
-
(
|
|
331
|
+
var ref;
|
|
332
|
+
(ref = _this.displayBoList) === null || ref === void 0 ? void 0 : ref.push(new DisplayBoListItem(item));
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
|
-
var
|
|
336
|
-
this.showOrder = (
|
|
337
|
-
var
|
|
338
|
-
this.svcCode = (
|
|
335
|
+
var ref3;
|
|
336
|
+
this.showOrder = (ref3 = props === null || props === void 0 ? void 0 : props.showOrder) !== null && ref3 !== void 0 ? ref3 : true;
|
|
337
|
+
var ref4;
|
|
338
|
+
this.svcCode = (ref4 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && ref4 !== void 0 ? ref4 : "";
|
|
339
339
|
callFiltersAndOrders.call(this, props);
|
|
340
340
|
};
|
|
341
341
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
342
342
|
"use strict";
|
|
343
343
|
_classCallCheck(this, CustomAttributeItem);
|
|
344
|
-
var
|
|
345
|
-
var
|
|
346
|
-
this.name = (
|
|
347
|
-
var
|
|
348
|
-
this.key = (
|
|
349
|
-
var
|
|
350
|
-
this.value = (
|
|
344
|
+
var ref;
|
|
345
|
+
var ref1;
|
|
346
|
+
this.name = (ref1 = props === null || props === void 0 ? void 0 : props.name) !== null && ref1 !== void 0 ? ref1 : "";
|
|
347
|
+
var ref2;
|
|
348
|
+
this.key = (ref2 = props === null || props === void 0 ? void 0 : props.key) !== null && ref2 !== void 0 ? ref2 : "";
|
|
349
|
+
var ref3;
|
|
350
|
+
this.value = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.value) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
351
351
|
return new DisplayBoListItem(item);
|
|
352
|
-
})) !== null &&
|
|
352
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
353
353
|
};
|
|
354
354
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
355
355
|
"use strict";
|
|
@@ -358,12 +358,12 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
358
358
|
function SuperDataSourceBind(props) {
|
|
359
359
|
_classCallCheck(this, SuperDataSourceBind);
|
|
360
360
|
var _this;
|
|
361
|
-
var
|
|
361
|
+
var ref;
|
|
362
362
|
_this = _super.call(this, props);
|
|
363
|
-
var
|
|
364
|
-
_this.attributes = (
|
|
363
|
+
var ref1;
|
|
364
|
+
_this.attributes = (ref1 = props === null || props === void 0 ? void 0 : (ref = props.attributes) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
365
365
|
return new CustomAttributeItem(item);
|
|
366
|
-
})) !== null &&
|
|
366
|
+
})) !== null && ref1 !== void 0 ? ref1 : [];
|
|
367
367
|
return _this;
|
|
368
368
|
}
|
|
369
369
|
return SuperDataSourceBind;
|
|
@@ -384,15 +384,15 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
384
384
|
var FillBind = function FillBind(props) {
|
|
385
385
|
"use strict";
|
|
386
386
|
_classCallCheck(this, FillBind);
|
|
387
|
-
var
|
|
388
|
-
var
|
|
389
|
-
this.dataCode = (
|
|
390
|
-
var
|
|
391
|
-
this.appId = (
|
|
392
|
-
var
|
|
393
|
-
this.fillList = (
|
|
387
|
+
var ref;
|
|
388
|
+
var ref1;
|
|
389
|
+
this.dataCode = (ref1 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref1 !== void 0 ? ref1 : "";
|
|
390
|
+
var ref2;
|
|
391
|
+
this.appId = (ref2 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref2 !== void 0 ? ref2 : "";
|
|
392
|
+
var ref3;
|
|
393
|
+
this.fillList = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.fillList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
394
394
|
return new MultistageFillingItem(item);
|
|
395
|
-
})) !== null &&
|
|
395
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
396
396
|
};
|
|
397
397
|
/*
|
|
398
398
|
* 填充的配置和需要携带的数据
|
|
@@ -419,10 +419,10 @@ var FillBind = function FillBind(props) {
|
|
|
419
419
|
_classCallCheck(this, FillBackBind);
|
|
420
420
|
var _this;
|
|
421
421
|
_this = _super.call(this, props);
|
|
422
|
-
var
|
|
423
|
-
_this.mode = (
|
|
424
|
-
var
|
|
425
|
-
_this.multiple = (
|
|
422
|
+
var ref;
|
|
423
|
+
_this.mode = (ref = props === null || props === void 0 ? void 0 : props.mode) !== null && ref !== void 0 ? ref : "current";
|
|
424
|
+
var ref1;
|
|
425
|
+
_this.multiple = (ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && ref1 !== void 0 ? ref1 : false;
|
|
426
426
|
return _this;
|
|
427
427
|
}
|
|
428
428
|
return FillBackBind;
|
|
@@ -430,33 +430,33 @@ var FillBind = function FillBind(props) {
|
|
|
430
430
|
export var Language = function Language(props) {
|
|
431
431
|
"use strict";
|
|
432
432
|
_classCallCheck(this, Language);
|
|
433
|
-
var
|
|
434
|
-
this.zh = (
|
|
435
|
-
var
|
|
436
|
-
this.en = (
|
|
437
|
-
var
|
|
438
|
-
this.ja = (
|
|
433
|
+
var ref;
|
|
434
|
+
this.zh = (ref = props === null || props === void 0 ? void 0 : props.zh) !== null && ref !== void 0 ? ref : "";
|
|
435
|
+
var ref1;
|
|
436
|
+
this.en = (ref1 = props === null || props === void 0 ? void 0 : props.en) !== null && ref1 !== void 0 ? ref1 : "";
|
|
437
|
+
var ref2;
|
|
438
|
+
this.ja = (ref2 = props === null || props === void 0 ? void 0 : props.ja) !== null && ref2 !== void 0 ? ref2 : "";
|
|
439
439
|
};
|
|
440
440
|
export var RegularRules = function RegularRules(props) {
|
|
441
441
|
"use strict";
|
|
442
442
|
_classCallCheck(this, RegularRules);
|
|
443
|
-
var
|
|
444
|
-
this.stencilName = (
|
|
445
|
-
var
|
|
446
|
-
this.expression = (
|
|
447
|
-
var
|
|
448
|
-
this.errMessage = (
|
|
443
|
+
var ref;
|
|
444
|
+
this.stencilName = (ref = props === null || props === void 0 ? void 0 : props.stencilName) !== null && ref !== void 0 ? ref : "";
|
|
445
|
+
var ref1;
|
|
446
|
+
this.expression = (ref1 = props === null || props === void 0 ? void 0 : props.expression) !== null && ref1 !== void 0 ? ref1 : "";
|
|
447
|
+
var ref2;
|
|
448
|
+
this.errMessage = (ref2 = props === null || props === void 0 ? void 0 : props.errMessage) !== null && ref2 !== void 0 ? ref2 : "";
|
|
449
449
|
};
|
|
450
450
|
// 选项设置-自定义选项
|
|
451
451
|
export var OptionSetting = function OptionSetting(props) {
|
|
452
452
|
"use strict";
|
|
453
453
|
_classCallCheck(this, OptionSetting);
|
|
454
|
-
var
|
|
455
|
-
this.id = (
|
|
456
|
-
var
|
|
457
|
-
this.label = (
|
|
458
|
-
var
|
|
459
|
-
this.value = (
|
|
454
|
+
var ref;
|
|
455
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId(8);
|
|
456
|
+
var ref1;
|
|
457
|
+
this.label = (ref1 = props === null || props === void 0 ? void 0 : props.label) !== null && ref1 !== void 0 ? ref1 : "";
|
|
458
|
+
var ref2;
|
|
459
|
+
this.value = (ref2 = props === null || props === void 0 ? void 0 : props.value) !== null && ref2 !== void 0 ? ref2 : this.label;
|
|
460
460
|
};
|
|
461
461
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
462
462
|
"use strict";
|
|
@@ -466,25 +466,25 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
466
466
|
_classCallCheck(this, ImageOptionSetting);
|
|
467
467
|
var _this;
|
|
468
468
|
_this = _super.call(this, props);
|
|
469
|
-
var
|
|
470
|
-
_this.image = (
|
|
471
|
-
var
|
|
472
|
-
_this.type = (
|
|
469
|
+
var ref;
|
|
470
|
+
_this.image = (ref = props === null || props === void 0 ? void 0 : props.image) !== null && ref !== void 0 ? ref : "";
|
|
471
|
+
var ref1;
|
|
472
|
+
_this.type = (ref1 = props === null || props === void 0 ? void 0 : props.type) !== null && ref1 !== void 0 ? ref1 : "src";
|
|
473
473
|
return _this;
|
|
474
474
|
}
|
|
475
475
|
return ImageOptionSetting;
|
|
476
476
|
}(OptionSetting);
|
|
477
477
|
export function initOptions(options) {
|
|
478
|
-
var
|
|
479
|
-
return (
|
|
478
|
+
var ref;
|
|
479
|
+
return (ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
480
480
|
return new OptionSetting(item);
|
|
481
|
-
})) !== null &&
|
|
481
|
+
})) !== null && ref !== void 0 ? ref : [];
|
|
482
482
|
}
|
|
483
483
|
export function initImageOptions(options) {
|
|
484
|
-
var
|
|
485
|
-
return (
|
|
484
|
+
var ref;
|
|
485
|
+
return (ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
486
486
|
return new ImageOptionSetting(item);
|
|
487
|
-
})) !== null &&
|
|
487
|
+
})) !== null && ref !== void 0 ? ref : [];
|
|
488
488
|
}
|
|
489
489
|
export var ObjectDataBind = function ObjectDataBind() {
|
|
490
490
|
"use strict";
|
|
@@ -507,10 +507,10 @@ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
507
507
|
export var AmountValue = function AmountValue(props) {
|
|
508
508
|
"use strict";
|
|
509
509
|
_classCallCheck(this, AmountValue);
|
|
510
|
-
var
|
|
511
|
-
this.amount = (
|
|
512
|
-
var
|
|
513
|
-
this.currency = (
|
|
510
|
+
var ref;
|
|
511
|
+
this.amount = (ref = props === null || props === void 0 ? void 0 : props.amount) !== null && ref !== void 0 ? ref : "";
|
|
512
|
+
var ref1;
|
|
513
|
+
this.currency = (ref1 = props === null || props === void 0 ? void 0 : props.currency) !== null && ref1 !== void 0 ? ref1 : AMOUNT_TYPE.CNY;
|
|
514
514
|
};
|
|
515
515
|
export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
516
516
|
"use strict";
|
|
@@ -529,26 +529,26 @@ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
529
529
|
export var RangeDateValue = function RangeDateValue(props) {
|
|
530
530
|
"use strict";
|
|
531
531
|
_classCallCheck(this, RangeDateValue);
|
|
532
|
-
var
|
|
533
|
-
this.min = (
|
|
534
|
-
var
|
|
535
|
-
this.max = (
|
|
532
|
+
var ref;
|
|
533
|
+
this.min = (ref = props === null || props === void 0 ? void 0 : props.min) !== null && ref !== void 0 ? ref : "";
|
|
534
|
+
var ref1;
|
|
535
|
+
this.max = (ref1 = props === null || props === void 0 ? void 0 : props.max) !== null && ref1 !== void 0 ? ref1 : "";
|
|
536
536
|
};
|
|
537
537
|
export var AddressValue = function AddressValue(props) {
|
|
538
538
|
"use strict";
|
|
539
539
|
_classCallCheck(this, AddressValue);
|
|
540
|
-
var
|
|
541
|
-
this.city = (
|
|
542
|
-
var
|
|
543
|
-
this.cityDisplay = (
|
|
544
|
-
var
|
|
545
|
-
this.district = (
|
|
546
|
-
var
|
|
547
|
-
this.districtDisplay = (
|
|
548
|
-
var
|
|
549
|
-
this.province = (
|
|
550
|
-
var
|
|
551
|
-
this.provinceDisplay = (
|
|
540
|
+
var ref;
|
|
541
|
+
this.city = (ref = props === null || props === void 0 ? void 0 : props.city) !== null && ref !== void 0 ? ref : "";
|
|
542
|
+
var ref1;
|
|
543
|
+
this.cityDisplay = (ref1 = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && ref1 !== void 0 ? ref1 : "";
|
|
544
|
+
var ref2;
|
|
545
|
+
this.district = (ref2 = props === null || props === void 0 ? void 0 : props.district) !== null && ref2 !== void 0 ? ref2 : "";
|
|
546
|
+
var ref3;
|
|
547
|
+
this.districtDisplay = (ref3 = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && ref3 !== void 0 ? ref3 : "";
|
|
548
|
+
var ref4;
|
|
549
|
+
this.province = (ref4 = props === null || props === void 0 ? void 0 : props.province) !== null && ref4 !== void 0 ? ref4 : "";
|
|
550
|
+
var ref5;
|
|
551
|
+
this.provinceDisplay = (ref5 = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && ref5 !== void 0 ? ref5 : "";
|
|
552
552
|
};
|
|
553
553
|
export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
554
554
|
"use strict";
|
|
@@ -567,10 +567,10 @@ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
567
567
|
export var CalcValue = function CalcValue(props) {
|
|
568
568
|
"use strict";
|
|
569
569
|
_classCallCheck(this, CalcValue);
|
|
570
|
-
var
|
|
571
|
-
this.result = (
|
|
572
|
-
var
|
|
573
|
-
this.unit = (
|
|
570
|
+
var ref;
|
|
571
|
+
this.result = (ref = props === null || props === void 0 ? void 0 : props.result) !== null && ref !== void 0 ? ref : 0;
|
|
572
|
+
var ref1;
|
|
573
|
+
this.unit = (ref1 = props === null || props === void 0 ? void 0 : props.unit) !== null && ref1 !== void 0 ? ref1 : "";
|
|
574
574
|
};
|
|
575
575
|
export var AMOUNT_TYPE;
|
|
576
576
|
(function(AMOUNT_TYPE) {
|
|
@@ -642,39 +642,39 @@ export var PAGE_STATUS;
|
|
|
642
642
|
export var OperationItem = function OperationItem(props) {
|
|
643
643
|
"use strict";
|
|
644
644
|
_classCallCheck(this, OperationItem);
|
|
645
|
-
var
|
|
646
|
-
this.id = (
|
|
647
|
-
var
|
|
648
|
-
this.type = (
|
|
649
|
-
var
|
|
650
|
-
this.isShow = (
|
|
645
|
+
var ref;
|
|
646
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId(8);
|
|
647
|
+
var ref1;
|
|
648
|
+
this.type = (ref1 = props === null || props === void 0 ? void 0 : props.type) !== null && ref1 !== void 0 ? ref1 : "";
|
|
649
|
+
var ref2;
|
|
650
|
+
this.isShow = (ref2 = props === null || props === void 0 ? void 0 : props.isShow) !== null && ref2 !== void 0 ? ref2 : true;
|
|
651
651
|
this.invalidType = props === null || props === void 0 ? void 0 : props.invalidType;
|
|
652
652
|
this.condition = props === null || props === void 0 ? void 0 : props.condition;
|
|
653
|
-
var
|
|
654
|
-
this.content = (
|
|
655
|
-
var
|
|
656
|
-
this.formKey = (
|
|
653
|
+
var ref3;
|
|
654
|
+
this.content = (ref3 = props === null || props === void 0 ? void 0 : props.content) !== null && ref3 !== void 0 ? ref3 : "";
|
|
655
|
+
var ref4;
|
|
656
|
+
this.formKey = (ref4 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref4 !== void 0 ? ref4 : "";
|
|
657
657
|
this.icon = props === null || props === void 0 ? void 0 : props.icon;
|
|
658
658
|
this.showType = props === null || props === void 0 ? void 0 : props.showType;
|
|
659
|
-
var
|
|
660
|
-
this.openType = (
|
|
661
|
-
var
|
|
662
|
-
this.priorityProcess = (
|
|
659
|
+
var ref5;
|
|
660
|
+
this.openType = (ref5 = props === null || props === void 0 ? void 0 : props.openType) !== null && ref5 !== void 0 ? ref5 : "modal";
|
|
661
|
+
var ref6;
|
|
662
|
+
this.priorityProcess = (ref6 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && ref6 !== void 0 ? ref6 : false;
|
|
663
663
|
this.needConfirm = props === null || props === void 0 ? void 0 : props.needConfirm;
|
|
664
664
|
this.confirmMessage = props === null || props === void 0 ? void 0 : props.confirmMessage;
|
|
665
665
|
};
|
|
666
666
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
667
667
|
"use strict";
|
|
668
668
|
_classCallCheck(this, ViewOperationItem);
|
|
669
|
-
var
|
|
670
|
-
var
|
|
671
|
-
this.id = (
|
|
672
|
-
var
|
|
673
|
-
this.title = (
|
|
674
|
-
var
|
|
675
|
-
this.headers = (
|
|
669
|
+
var ref;
|
|
670
|
+
var ref1;
|
|
671
|
+
this.id = (ref1 = props === null || props === void 0 ? void 0 : props.id) !== null && ref1 !== void 0 ? ref1 : genNonDuplicateId(8);
|
|
672
|
+
var ref2;
|
|
673
|
+
this.title = (ref2 = props === null || props === void 0 ? void 0 : props.title) !== null && ref2 !== void 0 ? ref2 : "";
|
|
674
|
+
var ref3;
|
|
675
|
+
this.headers = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.headers) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
676
676
|
return new ListBindHeaderItem(item);
|
|
677
|
-
})) !== null &&
|
|
677
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
678
678
|
callFiltersAndOrders.call(this, props);
|
|
679
679
|
};
|
|
680
680
|
/**
|
|
@@ -682,20 +682,20 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
682
682
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
683
683
|
"use strict";
|
|
684
684
|
_classCallCheck(this, CustomPermissionItem);
|
|
685
|
-
var
|
|
686
|
-
this.key = (
|
|
687
|
-
var
|
|
688
|
-
this.caption = (
|
|
685
|
+
var _key;
|
|
686
|
+
this.key = (_key = props.key) !== null && _key !== void 0 ? _key : genNonDuplicateId(8);
|
|
687
|
+
var _caption;
|
|
688
|
+
this.caption = (_caption = props.caption) !== null && _caption !== void 0 ? _caption : "";
|
|
689
689
|
};
|
|
690
690
|
export var BaseStyle = function BaseStyle(props) {
|
|
691
691
|
"use strict";
|
|
692
692
|
_classCallCheck(this, BaseStyle);
|
|
693
|
-
var
|
|
694
|
-
this.width = (
|
|
695
|
-
var
|
|
696
|
-
this.height = (
|
|
697
|
-
var
|
|
698
|
-
this.widthConfig = (
|
|
699
|
-
var
|
|
700
|
-
this.heightConfig = (
|
|
693
|
+
var ref;
|
|
694
|
+
this.width = (ref = props === null || props === void 0 ? void 0 : props.width) !== null && ref !== void 0 ? ref : "";
|
|
695
|
+
var ref1;
|
|
696
|
+
this.height = (ref1 = props === null || props === void 0 ? void 0 : props.height) !== null && ref1 !== void 0 ? ref1 : "";
|
|
697
|
+
var ref2;
|
|
698
|
+
this.widthConfig = (ref2 = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && ref2 !== void 0 ? ref2 : "fill";
|
|
699
|
+
var ref3;
|
|
700
|
+
this.heightConfig = (ref3 = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && ref3 !== void 0 ? ref3 : "fill";
|
|
701
701
|
};
|