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