@byteluck-fe/model-driven-core 6.2.0-beta.10 → 6.2.0-beta.13
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 +17 -12
- package/dist/esm/common/BaseControl/property.js +3 -4
- package/dist/esm/common/BaseControl/runtime.js +7 -11
- package/dist/esm/common/ColumnControl/property.js +6 -10
- package/dist/esm/common/FormControl/property.js +14 -26
- package/dist/esm/common/LayoutControl/designer.js +12 -4
- package/dist/esm/common/ListControl/designer.js +12 -4
- package/dist/esm/common/ListControl/property.js +5 -8
- package/dist/esm/framework/index.js +219 -325
- package/dist/index.umd.js +1 -1
- package/dist/types/common/ColumnControl/designer.d.ts +4 -4
- package/dist/types/framework/index.d.ts +26 -26
- package/package.json +3 -3
|
@@ -78,6 +78,7 @@ export * from './RegisterControls';
|
|
|
78
78
|
*/ export var DataBind = function DataBind(props) {
|
|
79
79
|
"use strict";
|
|
80
80
|
_class_call_check(this, DataBind);
|
|
81
|
+
var _ref, _ref1, _ref2;
|
|
81
82
|
/**
|
|
82
83
|
* 数据模型编码
|
|
83
84
|
* @defaultValue ''
|
|
@@ -98,41 +99,34 @@ export * from './RegisterControls';
|
|
|
98
99
|
* @defaultValue undefined
|
|
99
100
|
* @public
|
|
100
101
|
*/ _define_property(this, "aliasCode", void 0);
|
|
101
|
-
|
|
102
|
-
this.
|
|
103
|
-
|
|
104
|
-
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : '';
|
|
105
|
-
var _props_fieldType;
|
|
106
|
-
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : '';
|
|
102
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
103
|
+
this.fieldCode = (_ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
104
|
+
this.fieldType = (_ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
107
105
|
this.aliasCode = props === null || props === void 0 ? void 0 : props.aliasCode;
|
|
108
106
|
};
|
|
109
107
|
export var AutoWidth = function AutoWidth(props) {
|
|
110
108
|
"use strict";
|
|
111
109
|
_class_call_check(this, AutoWidth);
|
|
110
|
+
var _ref, _ref1;
|
|
112
111
|
_define_property(this, "minWidth", void 0);
|
|
113
112
|
_define_property(this, "maxWidth", void 0);
|
|
114
113
|
_define_property(this, "flex", void 0);
|
|
115
|
-
|
|
116
|
-
this.minWidth = (_props_minWidth = props === null || props === void 0 ? void 0 : props.minWidth) !== null && _props_minWidth !== void 0 ? _props_minWidth : 150;
|
|
114
|
+
this.minWidth = (_ref = props === null || props === void 0 ? void 0 : props.minWidth) !== null && _ref !== void 0 ? _ref : 150;
|
|
117
115
|
this.maxWidth = props === null || props === void 0 ? void 0 : props.maxWidth;
|
|
118
|
-
|
|
119
|
-
this.flex = (_props_flex = props === null || props === void 0 ? void 0 : props.flex) !== null && _props_flex !== void 0 ? _props_flex : 1;
|
|
116
|
+
this.flex = (_ref1 = props === null || props === void 0 ? void 0 : props.flex) !== null && _ref1 !== void 0 ? _ref1 : 1;
|
|
120
117
|
};
|
|
121
118
|
export var RowHeight = function RowHeight(props) {
|
|
122
119
|
"use strict";
|
|
123
120
|
_class_call_check(this, RowHeight);
|
|
121
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
124
122
|
_define_property(this, "rowHeightType", void 0);
|
|
125
123
|
_define_property(this, "minRows", void 0);
|
|
126
124
|
_define_property(this, "maxRows", void 0);
|
|
127
125
|
_define_property(this, "fiexdRow", void 0);
|
|
128
|
-
|
|
129
|
-
this.
|
|
130
|
-
|
|
131
|
-
this.
|
|
132
|
-
var _props_maxRows;
|
|
133
|
-
this.maxRows = (_props_maxRows = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _props_maxRows !== void 0 ? _props_maxRows : 20;
|
|
134
|
-
var _props_fiexdRow;
|
|
135
|
-
this.fiexdRow = (_props_fiexdRow = props === null || props === void 0 ? void 0 : props.fiexdRow) !== null && _props_fiexdRow !== void 0 ? _props_fiexdRow : 4;
|
|
126
|
+
this.rowHeightType = (_ref = props === null || props === void 0 ? void 0 : props.rowHeightType) !== null && _ref !== void 0 ? _ref : 'fixed';
|
|
127
|
+
this.minRows = (_ref1 = props === null || props === void 0 ? void 0 : props.minRows) !== null && _ref1 !== void 0 ? _ref1 : 4;
|
|
128
|
+
this.maxRows = (_ref2 = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _ref2 !== void 0 ? _ref2 : 20;
|
|
129
|
+
this.fiexdRow = (_ref3 = props === null || props === void 0 ? void 0 : props.fiexdRow) !== null && _ref3 !== void 0 ? _ref3 : 4;
|
|
136
130
|
};
|
|
137
131
|
export var MetaRowHeight = function MetaRowHeight(props) {
|
|
138
132
|
"use strict";
|
|
@@ -148,13 +142,12 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
148
142
|
function MetaWidth(props) {
|
|
149
143
|
_class_call_check(this, MetaWidth);
|
|
150
144
|
var _this;
|
|
145
|
+
var _ref, _ref1;
|
|
151
146
|
_this = _call_super(this, MetaWidth, [
|
|
152
147
|
props
|
|
153
148
|
]), _define_property(_this, "width", void 0), _define_property(_this, "widthType", void 0);
|
|
154
|
-
|
|
155
|
-
_this.
|
|
156
|
-
var _props_widthType;
|
|
157
|
-
_this.widthType = (_props_widthType = props === null || props === void 0 ? void 0 : props.widthType) !== null && _props_widthType !== void 0 ? _props_widthType : 'auto';
|
|
149
|
+
_this.width = (_ref = props === null || props === void 0 ? void 0 : props.width) !== null && _ref !== void 0 ? _ref : 240;
|
|
150
|
+
_this.widthType = (_ref1 = props === null || props === void 0 ? void 0 : props.widthType) !== null && _ref1 !== void 0 ? _ref1 : 'auto';
|
|
158
151
|
return _this;
|
|
159
152
|
}
|
|
160
153
|
return MetaWidth;
|
|
@@ -173,25 +166,22 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
173
166
|
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
174
167
|
"use strict";
|
|
175
168
|
_class_call_check(this, DataStorageDoc);
|
|
169
|
+
var _ref, _ref1;
|
|
176
170
|
_define_property(this, "type", void 0);
|
|
177
171
|
_define_property(this, "customOptions", void 0);
|
|
178
|
-
|
|
179
|
-
this.
|
|
180
|
-
var _props_customOptions;
|
|
181
|
-
this.customOptions = (_props_customOptions = props === null || props === void 0 ? void 0 : props.customOptions) !== null && _props_customOptions !== void 0 ? _props_customOptions : [];
|
|
172
|
+
this.type = (_ref = props === null || props === void 0 ? void 0 : props.type) !== null && _ref !== void 0 ? _ref : 'firstThree';
|
|
173
|
+
this.customOptions = (_ref1 = props === null || props === void 0 ? void 0 : props.customOptions) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
182
174
|
};
|
|
183
175
|
export var FormBind = function FormBind(props) {
|
|
184
176
|
"use strict";
|
|
185
177
|
_class_call_check(this, FormBind);
|
|
178
|
+
var _ref, _ref1, _ref2;
|
|
186
179
|
_define_property(this, "dataCode", void 0);
|
|
187
180
|
_define_property(this, "formKey", void 0);
|
|
188
181
|
_define_property(this, "appId", void 0);
|
|
189
|
-
|
|
190
|
-
this.
|
|
191
|
-
|
|
192
|
-
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : '';
|
|
193
|
-
var _props_appId;
|
|
194
|
-
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : '';
|
|
182
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
183
|
+
this.formKey = (_ref1 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
184
|
+
this.appId = (_ref2 = props === null || props === void 0 ? void 0 : props.appId) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
195
185
|
};
|
|
196
186
|
export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
197
187
|
"use strict";
|
|
@@ -199,11 +189,11 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
199
189
|
function FormSelectBind(props) {
|
|
200
190
|
_class_call_check(this, FormSelectBind);
|
|
201
191
|
var _this;
|
|
192
|
+
var _ref;
|
|
202
193
|
_this = _call_super(this, FormSelectBind, [
|
|
203
194
|
props
|
|
204
195
|
]), _define_property(_this, "primaryControlId", void 0);
|
|
205
|
-
|
|
206
|
-
_this.primaryControlId = (_props_primaryControlId = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && _props_primaryControlId !== void 0 ? _props_primaryControlId : '';
|
|
196
|
+
_this.primaryControlId = (_ref = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && _ref !== void 0 ? _ref : '';
|
|
207
197
|
return _this;
|
|
208
198
|
}
|
|
209
199
|
return FormSelectBind;
|
|
@@ -214,21 +204,21 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
214
204
|
*/ var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
215
205
|
"use strict";
|
|
216
206
|
_class_call_check(this, ListBindHeaderItem);
|
|
207
|
+
var _ref, _ref1;
|
|
217
208
|
/**
|
|
218
209
|
* 字段
|
|
219
210
|
* @defaultValue ''
|
|
220
211
|
*/ _define_property(this, "fieldCode", void 0);
|
|
221
212
|
_define_property(this, "dataCode", void 0);
|
|
222
|
-
|
|
223
|
-
this.
|
|
224
|
-
var _props_dataCode;
|
|
225
|
-
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : '';
|
|
213
|
+
this.fieldCode = (_ref = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _ref !== void 0 ? _ref : '';
|
|
214
|
+
this.dataCode = (_ref1 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
226
215
|
};
|
|
227
216
|
/**
|
|
228
217
|
* 列表绑定配置
|
|
229
218
|
*/ export var ListBind = function ListBind(props) {
|
|
230
219
|
"use strict";
|
|
231
220
|
_class_call_check(this, ListBind);
|
|
221
|
+
var _ref, _ref1, _ref2;
|
|
232
222
|
var _props_headers;
|
|
233
223
|
/**
|
|
234
224
|
* 应用ID
|
|
@@ -242,27 +232,22 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
242
232
|
* 显示字段
|
|
243
233
|
* @public
|
|
244
234
|
*/ _define_property(this, "headers", void 0);
|
|
245
|
-
|
|
246
|
-
this.
|
|
247
|
-
|
|
248
|
-
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : '';
|
|
249
|
-
var _props_headers_map;
|
|
250
|
-
this.headers = (_props_headers_map = props === null || props === void 0 ? void 0 : (_props_headers = props.headers) === null || _props_headers === void 0 ? void 0 : _props_headers.map(function(item) {
|
|
235
|
+
this.appId = (_ref = props === null || props === void 0 ? void 0 : props.appId) !== null && _ref !== void 0 ? _ref : '';
|
|
236
|
+
this.formKey = (_ref1 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
237
|
+
this.headers = (_ref2 = props === null || props === void 0 ? void 0 : (_props_headers = props.headers) === null || _props_headers === void 0 ? void 0 : _props_headers.map(function(item) {
|
|
251
238
|
return new ListBindHeaderItem(item);
|
|
252
|
-
})) !== null &&
|
|
239
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
253
240
|
};
|
|
254
241
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
255
242
|
"use strict";
|
|
256
243
|
_class_call_check(this, FieldBindItem);
|
|
244
|
+
var _ref, _ref1, _ref2;
|
|
257
245
|
_define_property(this, "fieldName", void 0);
|
|
258
246
|
_define_property(this, "fieldCode", void 0);
|
|
259
247
|
_define_property(this, "fieldType", void 0);
|
|
260
|
-
|
|
261
|
-
this.
|
|
262
|
-
|
|
263
|
-
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : '';
|
|
264
|
-
var _props_fieldType;
|
|
265
|
-
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : FieldTypes.VARCHAR;
|
|
248
|
+
this.fieldName = (_ref = props === null || props === void 0 ? void 0 : props.fieldName) !== null && _ref !== void 0 ? _ref : '';
|
|
249
|
+
this.fieldCode = (_ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
250
|
+
this.fieldType = (_ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref2 !== void 0 ? _ref2 : FieldTypes.VARCHAR;
|
|
266
251
|
};
|
|
267
252
|
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
268
253
|
"use strict";
|
|
@@ -270,17 +255,14 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
270
255
|
function SubListItem(props) {
|
|
271
256
|
_class_call_check(this, SubListItem);
|
|
272
257
|
var _this;
|
|
258
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
273
259
|
_this = _call_super(this, SubListItem, [
|
|
274
260
|
props
|
|
275
261
|
]), _define_property(_this, "title", void 0), _define_property(_this, "svcCode", void 0), _define_property(_this, "isOpenFilter", void 0), _define_property(_this, "filters", void 0);
|
|
276
|
-
|
|
277
|
-
_this.
|
|
278
|
-
|
|
279
|
-
_this.
|
|
280
|
-
var _props_isOpenFilter;
|
|
281
|
-
_this.isOpenFilter = (_props_isOpenFilter = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && _props_isOpenFilter !== void 0 ? _props_isOpenFilter : false;
|
|
282
|
-
var _props_filters;
|
|
283
|
-
_this.filters = (_props_filters = props === null || props === void 0 ? void 0 : props.filters) !== null && _props_filters !== void 0 ? _props_filters : [];
|
|
262
|
+
_this.title = (_ref = props === null || props === void 0 ? void 0 : props.title) !== null && _ref !== void 0 ? _ref : '';
|
|
263
|
+
_this.svcCode = (_ref1 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
264
|
+
_this.isOpenFilter = (_ref2 = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
265
|
+
_this.filters = (_ref3 = props === null || props === void 0 ? void 0 : props.filters) !== null && _ref3 !== void 0 ? _ref3 : [];
|
|
284
266
|
return _this;
|
|
285
267
|
}
|
|
286
268
|
return SubListItem;
|
|
@@ -288,20 +270,19 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
288
270
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
289
271
|
"use strict";
|
|
290
272
|
_class_call_check(this, SubListPageConfig);
|
|
273
|
+
var _ref, _ref1;
|
|
291
274
|
var _props_displayFields, _props_sublists;
|
|
292
275
|
_define_property(this, "type", 'sublist-page');
|
|
293
276
|
_define_property(this, "formBind", void 0);
|
|
294
277
|
_define_property(this, "displayFields", void 0);
|
|
295
278
|
_define_property(this, "sublists", void 0);
|
|
296
279
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
297
|
-
|
|
298
|
-
this.displayFields = (_props_displayFields_map = props === null || props === void 0 ? void 0 : (_props_displayFields = props.displayFields) === null || _props_displayFields === void 0 ? void 0 : _props_displayFields.map(function(item) {
|
|
280
|
+
this.displayFields = (_ref = props === null || props === void 0 ? void 0 : (_props_displayFields = props.displayFields) === null || _props_displayFields === void 0 ? void 0 : _props_displayFields.map(function(item) {
|
|
299
281
|
return new FieldBindItem(item);
|
|
300
|
-
})) !== null &&
|
|
301
|
-
|
|
302
|
-
this.sublists = (_props_sublists_map = props === null || props === void 0 ? void 0 : (_props_sublists = props.sublists) === null || _props_sublists === void 0 ? void 0 : _props_sublists.map(function(item) {
|
|
282
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
283
|
+
this.sublists = (_ref1 = props === null || props === void 0 ? void 0 : (_props_sublists = props.sublists) === null || _props_sublists === void 0 ? void 0 : _props_sublists.map(function(item) {
|
|
303
284
|
return new SubListItem(item);
|
|
304
|
-
})) !== null &&
|
|
285
|
+
})) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
305
286
|
};
|
|
306
287
|
export var LeftVariable = function LeftVariable(props) {
|
|
307
288
|
"use strict";
|
|
@@ -316,15 +297,13 @@ export var LeftVariable = function LeftVariable(props) {
|
|
|
316
297
|
export var RightVariable = function RightVariable(props) {
|
|
317
298
|
"use strict";
|
|
318
299
|
_class_call_check(this, RightVariable);
|
|
300
|
+
var _ref, _ref1, _ref2;
|
|
319
301
|
_define_property(this, "type", void 0);
|
|
320
302
|
_define_property(this, "value", void 0);
|
|
321
303
|
_define_property(this, "displayBos", void 0);
|
|
322
|
-
|
|
323
|
-
this.
|
|
324
|
-
|
|
325
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : [];
|
|
326
|
-
var _props_displayBos;
|
|
327
|
-
this.displayBos = (_props_displayBos = props === null || props === void 0 ? void 0 : props.displayBos) !== null && _props_displayBos !== void 0 ? _props_displayBos : [];
|
|
304
|
+
this.type = (_ref = props === null || props === void 0 ? void 0 : props.type) !== null && _ref !== void 0 ? _ref : 'custom';
|
|
305
|
+
this.value = (_ref1 = props === null || props === void 0 ? void 0 : props.value) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
306
|
+
this.displayBos = (_ref2 = props === null || props === void 0 ? void 0 : props.displayBos) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
328
307
|
};
|
|
329
308
|
/**
|
|
330
309
|
* 连接符条件
|
|
@@ -333,6 +312,7 @@ export var RightVariable = function RightVariable(props) {
|
|
|
333
312
|
"use strict";
|
|
334
313
|
var _this = this;
|
|
335
314
|
_class_call_check(this, FieldFilterConditions);
|
|
315
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
336
316
|
/**
|
|
337
317
|
* 编号
|
|
338
318
|
* @defaultValue ''
|
|
@@ -357,14 +337,10 @@ export var RightVariable = function RightVariable(props) {
|
|
|
357
337
|
* 包含子项
|
|
358
338
|
* @defaultValue []
|
|
359
339
|
*/ _define_property(this, "children", void 0);
|
|
360
|
-
|
|
361
|
-
this.
|
|
362
|
-
|
|
363
|
-
this.
|
|
364
|
-
var _props_level;
|
|
365
|
-
this.level = (_props_level = props === null || props === void 0 ? void 0 : props.level) !== null && _props_level !== void 0 ? _props_level : 0;
|
|
366
|
-
var _props_value;
|
|
367
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : 'and';
|
|
340
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId();
|
|
341
|
+
this.ruleId = (_ref1 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _ref1 !== void 0 ? _ref1 : new Date().valueOf();
|
|
342
|
+
this.level = (_ref2 = props === null || props === void 0 ? void 0 : props.level) !== null && _ref2 !== void 0 ? _ref2 : 0;
|
|
343
|
+
this.value = (_ref3 = props === null || props === void 0 ? void 0 : props.value) !== null && _ref3 !== void 0 ? _ref3 : 'and';
|
|
368
344
|
this.children = [];
|
|
369
345
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
370
346
|
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
@@ -386,6 +362,7 @@ export var RightVariable = function RightVariable(props) {
|
|
|
386
362
|
*/ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
387
363
|
"use strict";
|
|
388
364
|
_class_call_check(this, FieldFilterCondition);
|
|
365
|
+
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
389
366
|
/**
|
|
390
367
|
* 唯一编号
|
|
391
368
|
* @defaultValue ''
|
|
@@ -409,30 +386,24 @@ export var RightVariable = function RightVariable(props) {
|
|
|
409
386
|
/**
|
|
410
387
|
* 右值
|
|
411
388
|
*/ _define_property(this, "rightVariableBo", void 0);
|
|
412
|
-
|
|
413
|
-
this.
|
|
414
|
-
|
|
415
|
-
this.
|
|
416
|
-
|
|
417
|
-
this.symbol = (_props_symbol = props === null || props === void 0 ? void 0 : props.symbol) !== null && _props_symbol !== void 0 ? _props_symbol : '';
|
|
418
|
-
var _props_checked;
|
|
419
|
-
this.checked = (_props_checked = props === null || props === void 0 ? void 0 : props.checked) !== null && _props_checked !== void 0 ? _props_checked : false;
|
|
420
|
-
var _props_describe;
|
|
421
|
-
this.describe = (_props_describe = props === null || props === void 0 ? void 0 : props.describe) !== null && _props_describe !== void 0 ? _props_describe : '';
|
|
389
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId();
|
|
390
|
+
this.ruleId = (_ref1 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _ref1 !== void 0 ? _ref1 : new Date().valueOf();
|
|
391
|
+
this.symbol = (_ref2 = props === null || props === void 0 ? void 0 : props.symbol) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
392
|
+
this.checked = (_ref3 = props === null || props === void 0 ? void 0 : props.checked) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
393
|
+
this.describe = (_ref4 = props === null || props === void 0 ? void 0 : props.describe) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
422
394
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
423
395
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
424
396
|
};
|
|
425
397
|
export var JoinRelation = function JoinRelation(props) {
|
|
426
398
|
"use strict";
|
|
427
399
|
_class_call_check(this, JoinRelation);
|
|
400
|
+
var _ref, _ref1;
|
|
428
401
|
_define_property(this, "aliasCode", void 0);
|
|
429
402
|
_define_property(this, "datasourceBind", void 0);
|
|
430
403
|
_define_property(this, "relationFields", void 0);
|
|
431
|
-
|
|
432
|
-
this.aliasCode = (_props_aliasCode = props === null || props === void 0 ? void 0 : props.aliasCode) !== null && _props_aliasCode !== void 0 ? _props_aliasCode : '';
|
|
404
|
+
this.aliasCode = (_ref = props === null || props === void 0 ? void 0 : props.aliasCode) !== null && _ref !== void 0 ? _ref : '';
|
|
433
405
|
this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
434
|
-
|
|
435
|
-
this.relationFields = (_props_relationFields = props === null || props === void 0 ? void 0 : props.relationFields) !== null && _props_relationFields !== void 0 ? _props_relationFields : [];
|
|
406
|
+
this.relationFields = (_ref1 = props === null || props === void 0 ? void 0 : props.relationFields) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
436
407
|
};
|
|
437
408
|
/**
|
|
438
409
|
* 数据填充项
|
|
@@ -440,6 +411,7 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
440
411
|
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
441
412
|
"use strict";
|
|
442
413
|
_class_call_check(this, MultistageFillingItem);
|
|
414
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
443
415
|
/**
|
|
444
416
|
* 控件ID
|
|
445
417
|
* @defaultValue ''
|
|
@@ -460,14 +432,10 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
460
432
|
* @defaultValue ''
|
|
461
433
|
* @public
|
|
462
434
|
* */ _define_property(this, "propName", void 0);
|
|
463
|
-
|
|
464
|
-
this.
|
|
465
|
-
|
|
466
|
-
this.
|
|
467
|
-
var _props_fieldType;
|
|
468
|
-
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : '';
|
|
469
|
-
var _props_propName;
|
|
470
|
-
this.propName = (_props_propName = props === null || props === void 0 ? void 0 : props.propName) !== null && _props_propName !== void 0 ? _props_propName : '';
|
|
435
|
+
this.controlId = (_ref = props === null || props === void 0 ? void 0 : props.controlId) !== null && _ref !== void 0 ? _ref : '';
|
|
436
|
+
this.fieldCode = (_ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
437
|
+
this.fieldType = (_ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
438
|
+
this.propName = (_ref3 = props === null || props === void 0 ? void 0 : props.propName) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
471
439
|
};
|
|
472
440
|
/**
|
|
473
441
|
* 显示项
|
|
@@ -475,6 +443,7 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
475
443
|
*/ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
476
444
|
"use strict";
|
|
477
445
|
_class_call_check(this, DisplayBoListItem);
|
|
446
|
+
var _ref, _ref1;
|
|
478
447
|
/**
|
|
479
448
|
* 显示项类型:字段 | 符号
|
|
480
449
|
* @defaultValue 'FIELD'
|
|
@@ -486,25 +455,22 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
486
455
|
/**
|
|
487
456
|
* 字段数据类型
|
|
488
457
|
*/ _define_property(this, "fieldType", void 0);
|
|
489
|
-
|
|
490
|
-
this.
|
|
491
|
-
var _props_value;
|
|
492
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : '';
|
|
458
|
+
this.type = (_ref = props === null || props === void 0 ? void 0 : props.type) !== null && _ref !== void 0 ? _ref : 'FIELD';
|
|
459
|
+
this.value = (_ref1 = props === null || props === void 0 ? void 0 : props.value) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
493
460
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
494
461
|
};
|
|
495
462
|
export var OptionDisplayConfigItem = function OptionDisplayConfigItem(props) {
|
|
496
463
|
"use strict";
|
|
497
464
|
_class_call_check(this, OptionDisplayConfigItem);
|
|
465
|
+
var _ref, _ref1;
|
|
498
466
|
/**
|
|
499
467
|
* 标题
|
|
500
468
|
*/ _define_property(this, "title", void 0);
|
|
501
469
|
/**
|
|
502
470
|
* 字段数据类型
|
|
503
471
|
*/ _define_property(this, "displayBoList", void 0);
|
|
504
|
-
|
|
505
|
-
this.
|
|
506
|
-
var _props_displayBoList;
|
|
507
|
-
this.displayBoList = (_props_displayBoList = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _props_displayBoList !== void 0 ? _props_displayBoList : [];
|
|
472
|
+
this.title = (_ref = props === null || props === void 0 ? void 0 : props.title) !== null && _ref !== void 0 ? _ref : '';
|
|
473
|
+
this.displayBoList = (_ref1 = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
508
474
|
};
|
|
509
475
|
/**
|
|
510
476
|
* 数据源排序项
|
|
@@ -512,6 +478,7 @@ export var OptionDisplayConfigItem = function OptionDisplayConfigItem(props) {
|
|
|
512
478
|
*/ export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
513
479
|
"use strict";
|
|
514
480
|
_class_call_check(this, DataSourceOrderItem);
|
|
481
|
+
var _props_columnName, _props_desc;
|
|
515
482
|
/**
|
|
516
483
|
* 列名
|
|
517
484
|
* @defaultValue ''
|
|
@@ -520,30 +487,27 @@ export var OptionDisplayConfigItem = function OptionDisplayConfigItem(props) {
|
|
|
520
487
|
* 倒序
|
|
521
488
|
* @defaultValue false
|
|
522
489
|
*/ _define_property(this, "desc", void 0);
|
|
523
|
-
var _props_columnName;
|
|
524
490
|
this.columnName = (_props_columnName = props.columnName) !== null && _props_columnName !== void 0 ? _props_columnName : '';
|
|
525
|
-
var _props_desc;
|
|
526
491
|
this.desc = (_props_desc = props.desc) !== null && _props_desc !== void 0 ? _props_desc : false;
|
|
527
492
|
};
|
|
528
493
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
529
494
|
"use strict";
|
|
530
495
|
_class_call_check(this, DataSourceDataSetValue);
|
|
496
|
+
var _props_code, _props_value, _props_field_type;
|
|
531
497
|
// fieldCode
|
|
532
498
|
_define_property(this, "code", void 0);
|
|
533
499
|
// 值
|
|
534
500
|
_define_property(this, "value", void 0);
|
|
535
501
|
// 数据类型
|
|
536
502
|
_define_property(this, "field_type", void 0);
|
|
537
|
-
var _props_code;
|
|
538
503
|
this.code = (_props_code = props.code) !== null && _props_code !== void 0 ? _props_code : '';
|
|
539
|
-
var _props_value;
|
|
540
504
|
this.value = (_props_value = props.value) !== null && _props_value !== void 0 ? _props_value : '';
|
|
541
|
-
var _props_field_type;
|
|
542
505
|
this.field_type = (_props_field_type = props.field_type) !== null && _props_field_type !== void 0 ? _props_field_type : FieldTypes.ANY;
|
|
543
506
|
};
|
|
544
507
|
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
545
508
|
"use strict";
|
|
546
509
|
_class_call_check(this, DataSourceParamItem);
|
|
510
|
+
var _props_id, _props_limit, _props_formKey, _ref, _ref1;
|
|
547
511
|
var _props_orders, _props_dataSet;
|
|
548
512
|
/**
|
|
549
513
|
* 字段ID
|
|
@@ -552,44 +516,37 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
552
516
|
_define_property(this, "orders", void 0);
|
|
553
517
|
_define_property(this, "formKey", void 0);
|
|
554
518
|
_define_property(this, "dataSet", void 0);
|
|
555
|
-
var _props_id;
|
|
556
519
|
//字段ID,不可以当作随机数生成唯一编号
|
|
557
520
|
this.id = (_props_id = props.id) !== null && _props_id !== void 0 ? _props_id : '';
|
|
558
|
-
var _props_limit;
|
|
559
521
|
this.limit = (_props_limit = props.limit) !== null && _props_limit !== void 0 ? _props_limit : 20;
|
|
560
|
-
var _props_formKey;
|
|
561
522
|
this.formKey = (_props_formKey = props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : '';
|
|
562
|
-
|
|
563
|
-
this.orders = (_props_orders_map = (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
|
|
523
|
+
this.orders = (_ref = (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
|
|
564
524
|
return new DataSourceOrderItem(item);
|
|
565
|
-
})) !== null &&
|
|
566
|
-
|
|
567
|
-
this.dataSet = (_props_dataSet_map = (_props_dataSet = props.dataSet) === null || _props_dataSet === void 0 ? void 0 : _props_dataSet.map(function(item) {
|
|
525
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
526
|
+
this.dataSet = (_ref1 = (_props_dataSet = props.dataSet) === null || _props_dataSet === void 0 ? void 0 : _props_dataSet.map(function(item) {
|
|
568
527
|
return new DataSourceDataSetValue(item);
|
|
569
|
-
})) !== null &&
|
|
528
|
+
})) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
570
529
|
};
|
|
571
530
|
/**
|
|
572
531
|
* 给filters和orders赋值
|
|
573
532
|
* */ function callFiltersAndOrders(props) {
|
|
533
|
+
var _ref, _ref1, _ref2;
|
|
574
534
|
var _props_filters, _props_viewFilters, _props_orders;
|
|
575
|
-
|
|
576
|
-
this.filters = (_props_filters_map = props === null || props === void 0 ? void 0 : (_props_filters = props.filters) === null || _props_filters === void 0 ? void 0 : _props_filters.map(function(item) {
|
|
535
|
+
this.filters = (_ref = props === null || props === void 0 ? void 0 : (_props_filters = props.filters) === null || _props_filters === void 0 ? void 0 : _props_filters.map(function(item) {
|
|
577
536
|
if (item.children !== undefined) {
|
|
578
537
|
return new FieldFilterConditions(item);
|
|
579
538
|
}
|
|
580
539
|
return new FieldFilterCondition(item);
|
|
581
|
-
})) !== null &&
|
|
582
|
-
|
|
583
|
-
this.viewFilters = (_props_viewFilters_map = props === null || props === void 0 ? void 0 : (_props_viewFilters = props.viewFilters) === null || _props_viewFilters === void 0 ? void 0 : _props_viewFilters.map(function(item) {
|
|
540
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
541
|
+
this.viewFilters = (_ref1 = props === null || props === void 0 ? void 0 : (_props_viewFilters = props.viewFilters) === null || _props_viewFilters === void 0 ? void 0 : _props_viewFilters.map(function(item) {
|
|
584
542
|
if (item.children !== undefined) {
|
|
585
543
|
return new FieldFilterConditions(item);
|
|
586
544
|
}
|
|
587
545
|
return new FieldFilterCondition(item);
|
|
588
|
-
})) !== null &&
|
|
589
|
-
|
|
590
|
-
this.orders = (_props_orders_map = props === null || props === void 0 ? void 0 : (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
|
|
546
|
+
})) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
547
|
+
this.orders = (_ref2 = props === null || props === void 0 ? void 0 : (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
|
|
591
548
|
return new DataSourceOrderItem(item);
|
|
592
|
-
})) !== null &&
|
|
549
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
593
550
|
// }
|
|
594
551
|
}
|
|
595
552
|
/**
|
|
@@ -599,6 +556,7 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
599
556
|
"use strict";
|
|
600
557
|
var _this = this;
|
|
601
558
|
_class_call_check(this, DataSourceBind);
|
|
559
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
602
560
|
/**
|
|
603
561
|
* 绑定数据源id
|
|
604
562
|
* @defaultValue ''
|
|
@@ -665,35 +623,28 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
665
623
|
* @defaultValue {}
|
|
666
624
|
* @public
|
|
667
625
|
*/ _define_property(this, "openAssignDepartment", void 0);
|
|
668
|
-
|
|
669
|
-
this.
|
|
670
|
-
|
|
671
|
-
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : '';
|
|
672
|
-
var _props_valueFieldCode;
|
|
673
|
-
this.valueFieldCode = (_props_valueFieldCode = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && _props_valueFieldCode !== void 0 ? _props_valueFieldCode : '';
|
|
626
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
627
|
+
this.appId = (_ref1 = props === null || props === void 0 ? void 0 : props.appId) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
628
|
+
this.valueFieldCode = (_ref2 = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
674
629
|
this.displayBoList = [];
|
|
675
|
-
|
|
676
|
-
this.isOpenViewFilters = (_props_isOpenViewFilters = props === null || props === void 0 ? void 0 : props.isOpenViewFilters) !== null && _props_isOpenViewFilters !== void 0 ? _props_isOpenViewFilters : 0;
|
|
630
|
+
this.isOpenViewFilters = (_ref3 = props === null || props === void 0 ? void 0 : props.isOpenViewFilters) !== null && _ref3 !== void 0 ? _ref3 : 0;
|
|
677
631
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
678
632
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
679
633
|
var _this_displayBoList;
|
|
680
634
|
(_this_displayBoList = _this.displayBoList) === null || _this_displayBoList === void 0 ? void 0 : _this_displayBoList.push(new DisplayBoListItem(item));
|
|
681
635
|
});
|
|
682
636
|
}
|
|
683
|
-
|
|
684
|
-
this.
|
|
685
|
-
|
|
686
|
-
this.showOrder = (_props_showOrder = props === null || props === void 0 ? void 0 : props.showOrder) !== null && _props_showOrder !== void 0 ? _props_showOrder : true;
|
|
687
|
-
var _props_svcCode;
|
|
688
|
-
this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : '';
|
|
637
|
+
this.keywordMapping = (_ref4 = props === null || props === void 0 ? void 0 : props.keywordMapping) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
638
|
+
this.showOrder = (_ref5 = props === null || props === void 0 ? void 0 : props.showOrder) !== null && _ref5 !== void 0 ? _ref5 : true;
|
|
639
|
+
this.svcCode = (_ref6 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
689
640
|
this.assignDepartment = new RightVariable(props === null || props === void 0 ? void 0 : props.assignDepartment);
|
|
690
|
-
|
|
691
|
-
this.openAssignDepartment = (_props_openAssignDepartment = props === null || props === void 0 ? void 0 : props.openAssignDepartment) !== null && _props_openAssignDepartment !== void 0 ? _props_openAssignDepartment : false;
|
|
641
|
+
this.openAssignDepartment = (_ref7 = props === null || props === void 0 ? void 0 : props.openAssignDepartment) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
692
642
|
callFiltersAndOrders.call(this, props);
|
|
693
643
|
};
|
|
694
644
|
export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
695
645
|
"use strict";
|
|
696
646
|
_class_call_check(this, SelectedContentConfig);
|
|
647
|
+
var _ref, _ref1;
|
|
697
648
|
/**
|
|
698
649
|
* 展示已选内容
|
|
699
650
|
* @defaultValue ''
|
|
@@ -704,14 +655,13 @@ export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
|
704
655
|
* @defaultValue []
|
|
705
656
|
* @public
|
|
706
657
|
*/ _define_property(this, "displayBoList", void 0);
|
|
707
|
-
|
|
708
|
-
this.
|
|
709
|
-
var _props_displayBoList;
|
|
710
|
-
this.displayBoList = (_props_displayBoList = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _props_displayBoList !== void 0 ? _props_displayBoList : [];
|
|
658
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
659
|
+
this.displayBoList = (_ref1 = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
711
660
|
};
|
|
712
661
|
export var LinkOperationOption = function LinkOperationOption(props) {
|
|
713
662
|
"use strict";
|
|
714
663
|
_class_call_check(this, LinkOperationOption);
|
|
664
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
715
665
|
_define_property(this, "code", void 0);
|
|
716
666
|
_define_property(this, "color", void 0);
|
|
717
667
|
_define_property(this, "command", void 0);
|
|
@@ -723,43 +673,31 @@ export var LinkOperationOption = function LinkOperationOption(props) {
|
|
|
723
673
|
_define_property(this, "needConfirm", void 0);
|
|
724
674
|
_define_property(this, "openType", void 0);
|
|
725
675
|
_define_property(this, "priorityProcess", void 0);
|
|
726
|
-
|
|
727
|
-
this.
|
|
728
|
-
|
|
729
|
-
this.
|
|
730
|
-
|
|
731
|
-
this.
|
|
732
|
-
var _props_confirmMessage;
|
|
733
|
-
this.confirmMessage = (_props_confirmMessage = props === null || props === void 0 ? void 0 : props.confirmMessage) !== null && _props_confirmMessage !== void 0 ? _props_confirmMessage : undefined;
|
|
734
|
-
var _props_defaultState;
|
|
735
|
-
this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : 'default';
|
|
736
|
-
var _props_formKey;
|
|
737
|
-
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : undefined;
|
|
676
|
+
this.code = (_ref = props === null || props === void 0 ? void 0 : props.code) !== null && _ref !== void 0 ? _ref : 'view';
|
|
677
|
+
this.color = (_ref1 = props === null || props === void 0 ? void 0 : props.color) !== null && _ref1 !== void 0 ? _ref1 : 'primary';
|
|
678
|
+
this.command = (_ref2 = props === null || props === void 0 ? void 0 : props.command) !== null && _ref2 !== void 0 ? _ref2 : 'view';
|
|
679
|
+
this.confirmMessage = (_ref3 = props === null || props === void 0 ? void 0 : props.confirmMessage) !== null && _ref3 !== void 0 ? _ref3 : undefined;
|
|
680
|
+
this.defaultState = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _ref4 !== void 0 ? _ref4 : 'default';
|
|
681
|
+
this.formKey = (_ref5 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref5 !== void 0 ? _ref5 : undefined;
|
|
738
682
|
this.formType = props === null || props === void 0 ? void 0 : props.formType;
|
|
739
|
-
|
|
740
|
-
this.
|
|
741
|
-
|
|
742
|
-
this.
|
|
743
|
-
var _props_openType;
|
|
744
|
-
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : 'modal';
|
|
745
|
-
var _props_priorityProcess;
|
|
746
|
-
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : true;
|
|
683
|
+
this.icon = (_ref6 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref6 !== void 0 ? _ref6 : 'iconliulan1';
|
|
684
|
+
this.needConfirm = (_ref7 = props === null || props === void 0 ? void 0 : props.needConfirm) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
685
|
+
this.openType = (_ref8 = props === null || props === void 0 ? void 0 : props.openType) !== null && _ref8 !== void 0 ? _ref8 : 'modal';
|
|
686
|
+
this.priorityProcess = (_ref9 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _ref9 !== void 0 ? _ref9 : true;
|
|
747
687
|
};
|
|
748
688
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
749
689
|
"use strict";
|
|
750
690
|
_class_call_check(this, CustomAttributeItem);
|
|
691
|
+
var _ref, _ref1, _ref2;
|
|
751
692
|
var _props_value;
|
|
752
693
|
_define_property(this, "name", void 0);
|
|
753
694
|
_define_property(this, "key", void 0);
|
|
754
695
|
_define_property(this, "value", void 0);
|
|
755
|
-
|
|
756
|
-
this.
|
|
757
|
-
|
|
758
|
-
this.key = (_props_key = props === null || props === void 0 ? void 0 : props.key) !== null && _props_key !== void 0 ? _props_key : '';
|
|
759
|
-
var _props_value_map;
|
|
760
|
-
this.value = (_props_value_map = props === null || props === void 0 ? void 0 : (_props_value = props.value) === null || _props_value === void 0 ? void 0 : _props_value.map(function(item) {
|
|
696
|
+
this.name = (_ref = props === null || props === void 0 ? void 0 : props.name) !== null && _ref !== void 0 ? _ref : '';
|
|
697
|
+
this.key = (_ref1 = props === null || props === void 0 ? void 0 : props.key) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
698
|
+
this.value = (_ref2 = props === null || props === void 0 ? void 0 : (_props_value = props.value) === null || _props_value === void 0 ? void 0 : _props_value.map(function(item) {
|
|
761
699
|
return new DisplayBoListItem(item);
|
|
762
|
-
})) !== null &&
|
|
700
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
763
701
|
};
|
|
764
702
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
765
703
|
"use strict";
|
|
@@ -767,14 +705,14 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
767
705
|
function SuperDataSourceBind(props) {
|
|
768
706
|
_class_call_check(this, SuperDataSourceBind);
|
|
769
707
|
var _this;
|
|
708
|
+
var _ref;
|
|
770
709
|
var _props_attributes;
|
|
771
710
|
_this = _call_super(this, SuperDataSourceBind, [
|
|
772
711
|
props
|
|
773
712
|
]), _define_property(_this, "attributes", void 0);
|
|
774
|
-
|
|
775
|
-
_this.attributes = (_props_attributes_map = props === null || props === void 0 ? void 0 : (_props_attributes = props.attributes) === null || _props_attributes === void 0 ? void 0 : _props_attributes.map(function(item) {
|
|
713
|
+
_this.attributes = (_ref = props === null || props === void 0 ? void 0 : (_props_attributes = props.attributes) === null || _props_attributes === void 0 ? void 0 : _props_attributes.map(function(item) {
|
|
776
714
|
return new CustomAttributeItem(item);
|
|
777
|
-
})) !== null &&
|
|
715
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
778
716
|
return _this;
|
|
779
717
|
}
|
|
780
718
|
return SuperDataSourceBind;
|
|
@@ -785,16 +723,15 @@ export var OrganizationDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
785
723
|
function OrganizationDataSourceBind(props) {
|
|
786
724
|
_class_call_check(this, OrganizationDataSourceBind);
|
|
787
725
|
var _this;
|
|
726
|
+
var _ref, _ref1;
|
|
788
727
|
var _props_attributes;
|
|
789
728
|
_this = _call_super(this, OrganizationDataSourceBind, [
|
|
790
729
|
props
|
|
791
730
|
]), _define_property(_this, "attributes", void 0), _define_property(_this, "formCode", void 0);
|
|
792
|
-
|
|
793
|
-
_this.attributes = (_props_attributes_map = props === null || props === void 0 ? void 0 : (_props_attributes = props.attributes) === null || _props_attributes === void 0 ? void 0 : _props_attributes.map(function(item) {
|
|
731
|
+
_this.attributes = (_ref = props === null || props === void 0 ? void 0 : (_props_attributes = props.attributes) === null || _props_attributes === void 0 ? void 0 : _props_attributes.map(function(item) {
|
|
794
732
|
return new CustomAttributeItem(item);
|
|
795
|
-
})) !== null &&
|
|
796
|
-
|
|
797
|
-
_this.formCode = (_props_formCode = props === null || props === void 0 ? void 0 : props.formCode) !== null && _props_formCode !== void 0 ? _props_formCode : '';
|
|
733
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
734
|
+
_this.formCode = (_ref1 = props === null || props === void 0 ? void 0 : props.formCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
798
735
|
return _this;
|
|
799
736
|
}
|
|
800
737
|
return OrganizationDataSourceBind;
|
|
@@ -805,12 +742,12 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
805
742
|
function TreeDataSourceBind(props) {
|
|
806
743
|
_class_call_check(this, TreeDataSourceBind);
|
|
807
744
|
var _this;
|
|
745
|
+
var _ref;
|
|
808
746
|
_this = _call_super(this, TreeDataSourceBind, [
|
|
809
747
|
props
|
|
810
748
|
]), _define_property(_this, "rootNode", void 0), _define_property(_this, "filterCode", void 0);
|
|
811
749
|
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
812
|
-
|
|
813
|
-
_this.filterCode = (_props_filterCode = props === null || props === void 0 ? void 0 : props.filterCode) !== null && _props_filterCode !== void 0 ? _props_filterCode : '';
|
|
750
|
+
_this.filterCode = (_ref = props === null || props === void 0 ? void 0 : props.filterCode) !== null && _ref !== void 0 ? _ref : '';
|
|
814
751
|
return _this;
|
|
815
752
|
}
|
|
816
753
|
return TreeDataSourceBind;
|
|
@@ -818,6 +755,7 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
818
755
|
var FillBind = function FillBind(props) {
|
|
819
756
|
"use strict";
|
|
820
757
|
_class_call_check(this, FillBind);
|
|
758
|
+
var _ref, _ref1, _ref2;
|
|
821
759
|
var _props_fillList;
|
|
822
760
|
/*
|
|
823
761
|
* 需要被填充的数据源
|
|
@@ -828,14 +766,11 @@ var FillBind = function FillBind(props) {
|
|
|
828
766
|
/*
|
|
829
767
|
* 执行填充的数据项和控件
|
|
830
768
|
* */ _define_property(this, "fillList", void 0);
|
|
831
|
-
|
|
832
|
-
this.
|
|
833
|
-
|
|
834
|
-
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : '';
|
|
835
|
-
var _props_fillList_map;
|
|
836
|
-
this.fillList = (_props_fillList_map = props === null || props === void 0 ? void 0 : (_props_fillList = props.fillList) === null || _props_fillList === void 0 ? void 0 : _props_fillList.map(function(item) {
|
|
769
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
770
|
+
this.appId = (_ref1 = props === null || props === void 0 ? void 0 : props.appId) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
771
|
+
this.fillList = (_ref2 = props === null || props === void 0 ? void 0 : (_props_fillList = props.fillList) === null || _props_fillList === void 0 ? void 0 : _props_fillList.map(function(item) {
|
|
837
772
|
return new MultistageFillingItem(item);
|
|
838
|
-
})) !== null &&
|
|
773
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
839
774
|
};
|
|
840
775
|
/**
|
|
841
776
|
* FillPayloadBind 填充配置
|
|
@@ -876,6 +811,7 @@ var FillBind = function FillBind(props) {
|
|
|
876
811
|
function FillBackBind(props) {
|
|
877
812
|
_class_call_check(this, FillBackBind);
|
|
878
813
|
var _this;
|
|
814
|
+
var _ref, _ref1;
|
|
879
815
|
_this = _call_super(this, FillBackBind, [
|
|
880
816
|
props
|
|
881
817
|
]), /**
|
|
@@ -887,10 +823,8 @@ var FillBind = function FillBind(props) {
|
|
|
887
823
|
* @defaultValue false
|
|
888
824
|
* @public
|
|
889
825
|
*/ _define_property(_this, "multiple", void 0);
|
|
890
|
-
|
|
891
|
-
_this.
|
|
892
|
-
var _props_multiple;
|
|
893
|
-
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
826
|
+
_this.mode = (_ref = props === null || props === void 0 ? void 0 : props.mode) !== null && _ref !== void 0 ? _ref : 'current';
|
|
827
|
+
_this.multiple = (_ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
894
828
|
return _this;
|
|
895
829
|
}
|
|
896
830
|
return FillBackBind;
|
|
@@ -898,15 +832,13 @@ var FillBind = function FillBind(props) {
|
|
|
898
832
|
export var Language = function Language(props) {
|
|
899
833
|
"use strict";
|
|
900
834
|
_class_call_check(this, Language);
|
|
835
|
+
var _ref, _ref1, _ref2;
|
|
901
836
|
_define_property(this, "zh", void 0);
|
|
902
837
|
_define_property(this, "en", void 0);
|
|
903
838
|
_define_property(this, "ja", void 0);
|
|
904
|
-
|
|
905
|
-
this.
|
|
906
|
-
|
|
907
|
-
this.en = (_props_en = props === null || props === void 0 ? void 0 : props.en) !== null && _props_en !== void 0 ? _props_en : '';
|
|
908
|
-
var _props_ja;
|
|
909
|
-
this.ja = (_props_ja = props === null || props === void 0 ? void 0 : props.ja) !== null && _props_ja !== void 0 ? _props_ja : '';
|
|
839
|
+
this.zh = (_ref = props === null || props === void 0 ? void 0 : props.zh) !== null && _ref !== void 0 ? _ref : '';
|
|
840
|
+
this.en = (_ref1 = props === null || props === void 0 ? void 0 : props.en) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
841
|
+
this.ja = (_ref2 = props === null || props === void 0 ? void 0 : props.ja) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
910
842
|
};
|
|
911
843
|
/**
|
|
912
844
|
* 正则校验
|
|
@@ -914,6 +846,7 @@ export var Language = function Language(props) {
|
|
|
914
846
|
*/ export var RegularRules = function RegularRules(props) {
|
|
915
847
|
"use strict";
|
|
916
848
|
_class_call_check(this, RegularRules);
|
|
849
|
+
var _ref, _ref1, _ref2;
|
|
917
850
|
/**
|
|
918
851
|
* 内置模版
|
|
919
852
|
* @defaultValue ''
|
|
@@ -926,12 +859,9 @@ export var Language = function Language(props) {
|
|
|
926
859
|
* 校验错误提示信息
|
|
927
860
|
* @defaultValue ''
|
|
928
861
|
*/ _define_property(this, "errMessage", void 0);
|
|
929
|
-
|
|
930
|
-
this.
|
|
931
|
-
|
|
932
|
-
this.expression = (_props_expression = props === null || props === void 0 ? void 0 : props.expression) !== null && _props_expression !== void 0 ? _props_expression : '';
|
|
933
|
-
var _props_errMessage;
|
|
934
|
-
this.errMessage = (_props_errMessage = props === null || props === void 0 ? void 0 : props.errMessage) !== null && _props_errMessage !== void 0 ? _props_errMessage : '';
|
|
862
|
+
this.stencilName = (_ref = props === null || props === void 0 ? void 0 : props.stencilName) !== null && _ref !== void 0 ? _ref : '';
|
|
863
|
+
this.expression = (_ref1 = props === null || props === void 0 ? void 0 : props.expression) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
864
|
+
this.errMessage = (_ref2 = props === null || props === void 0 ? void 0 : props.errMessage) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
935
865
|
};
|
|
936
866
|
/**
|
|
937
867
|
* 选项设置-自定义选项
|
|
@@ -939,6 +869,7 @@ export var Language = function Language(props) {
|
|
|
939
869
|
*/ export var OptionSetting = function OptionSetting(props) {
|
|
940
870
|
"use strict";
|
|
941
871
|
_class_call_check(this, OptionSetting);
|
|
872
|
+
var _ref, _ref1, _ref2;
|
|
942
873
|
_define_property(this, "id", void 0);
|
|
943
874
|
/**
|
|
944
875
|
* 显示值
|
|
@@ -950,12 +881,9 @@ export var Language = function Language(props) {
|
|
|
950
881
|
* @defaultValue this.label
|
|
951
882
|
* @public
|
|
952
883
|
*/ _define_property(this, "value", void 0);
|
|
953
|
-
|
|
954
|
-
this.
|
|
955
|
-
|
|
956
|
-
this.label = (_props_label = props === null || props === void 0 ? void 0 : props.label) !== null && _props_label !== void 0 ? _props_label : '';
|
|
957
|
-
var _props_value;
|
|
958
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : this.label;
|
|
884
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId(8);
|
|
885
|
+
this.label = (_ref1 = props === null || props === void 0 ? void 0 : props.label) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
886
|
+
this.value = (_ref2 = props === null || props === void 0 ? void 0 : props.value) !== null && _ref2 !== void 0 ? _ref2 : this.label;
|
|
959
887
|
};
|
|
960
888
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
961
889
|
"use strict";
|
|
@@ -963,13 +891,12 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
963
891
|
function ImageOptionSetting(props) {
|
|
964
892
|
_class_call_check(this, ImageOptionSetting);
|
|
965
893
|
var _this;
|
|
894
|
+
var _ref, _ref1;
|
|
966
895
|
_this = _call_super(this, ImageOptionSetting, [
|
|
967
896
|
props
|
|
968
897
|
]), _define_property(_this, "image", void 0), _define_property(_this, "type", void 0);
|
|
969
|
-
|
|
970
|
-
_this.
|
|
971
|
-
var _props_type;
|
|
972
|
-
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'src';
|
|
898
|
+
_this.image = (_ref = props === null || props === void 0 ? void 0 : props.image) !== null && _ref !== void 0 ? _ref : '';
|
|
899
|
+
_this.type = (_ref1 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref1 !== void 0 ? _ref1 : 'src';
|
|
973
900
|
return _this;
|
|
974
901
|
}
|
|
975
902
|
return ImageOptionSetting;
|
|
@@ -980,34 +907,33 @@ export var AiOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
980
907
|
function AiOptionSetting(props) {
|
|
981
908
|
_class_call_check(this, AiOptionSetting);
|
|
982
909
|
var _this;
|
|
910
|
+
var _ref, _ref1;
|
|
983
911
|
_this = _call_super(this, AiOptionSetting, [
|
|
984
912
|
props
|
|
985
913
|
]), _define_property(_this, "cueWord", void 0), _define_property(_this, "checked", void 0);
|
|
986
|
-
|
|
987
|
-
_this.
|
|
988
|
-
var _props_checked;
|
|
989
|
-
_this.checked = (_props_checked = props === null || props === void 0 ? void 0 : props.checked) !== null && _props_checked !== void 0 ? _props_checked : false;
|
|
914
|
+
_this.cueWord = (_ref = props === null || props === void 0 ? void 0 : props.cueWord) !== null && _ref !== void 0 ? _ref : '';
|
|
915
|
+
_this.checked = (_ref1 = props === null || props === void 0 ? void 0 : props.checked) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
990
916
|
return _this;
|
|
991
917
|
}
|
|
992
918
|
return AiOptionSetting;
|
|
993
919
|
}(OptionSetting);
|
|
994
920
|
export function initOptions(options) {
|
|
995
|
-
var
|
|
996
|
-
return (
|
|
921
|
+
var _ref;
|
|
922
|
+
return (_ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
997
923
|
return new OptionSetting(item);
|
|
998
|
-
})) !== null &&
|
|
924
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
999
925
|
}
|
|
1000
926
|
export function initImageOptions(options) {
|
|
1001
|
-
var
|
|
1002
|
-
return (
|
|
927
|
+
var _ref;
|
|
928
|
+
return (_ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
1003
929
|
return new ImageOptionSetting(item);
|
|
1004
|
-
})) !== null &&
|
|
930
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
1005
931
|
}
|
|
1006
932
|
export function initAiOptions(options) {
|
|
1007
|
-
var
|
|
1008
|
-
return (
|
|
933
|
+
var _ref;
|
|
934
|
+
return (_ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
1009
935
|
return new AiOptionSetting(item);
|
|
1010
|
-
})) !== null &&
|
|
936
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
1011
937
|
}
|
|
1012
938
|
/**
|
|
1013
939
|
* 对象类型数据绑定配置
|
|
@@ -1042,6 +968,7 @@ export function initAiOptions(options) {
|
|
|
1042
968
|
*/ export var AmountValue = function AmountValue(props) {
|
|
1043
969
|
"use strict";
|
|
1044
970
|
_class_call_check(this, AmountValue);
|
|
971
|
+
var _ref, _ref1;
|
|
1045
972
|
/**
|
|
1046
973
|
* 金额值
|
|
1047
974
|
* @defaultValue ''
|
|
@@ -1050,10 +977,8 @@ export function initAiOptions(options) {
|
|
|
1050
977
|
* 货币值
|
|
1051
978
|
* @defaultValue 'CNY'
|
|
1052
979
|
*/ _define_property(this, "currency", void 0);
|
|
1053
|
-
|
|
1054
|
-
this.
|
|
1055
|
-
var _props_currency;
|
|
1056
|
-
this.currency = (_props_currency = props === null || props === void 0 ? void 0 : props.currency) !== null && _props_currency !== void 0 ? _props_currency : "CNY";
|
|
980
|
+
this.amount = (_ref = props === null || props === void 0 ? void 0 : props.amount) !== null && _ref !== void 0 ? _ref : '';
|
|
981
|
+
this.currency = (_ref1 = props === null || props === void 0 ? void 0 : props.currency) !== null && _ref1 !== void 0 ? _ref1 : "CNY";
|
|
1057
982
|
};
|
|
1058
983
|
/**
|
|
1059
984
|
* 日期区间数据绑定项
|
|
@@ -1081,6 +1006,7 @@ export function initAiOptions(options) {
|
|
|
1081
1006
|
*/ export var RangeDateValue = function RangeDateValue(props) {
|
|
1082
1007
|
"use strict";
|
|
1083
1008
|
_class_call_check(this, RangeDateValue);
|
|
1009
|
+
var _ref, _ref1;
|
|
1084
1010
|
/**
|
|
1085
1011
|
* 开始日期值
|
|
1086
1012
|
* @defaultValue ''
|
|
@@ -1089,10 +1015,8 @@ export function initAiOptions(options) {
|
|
|
1089
1015
|
* 结束日期值
|
|
1090
1016
|
* @defaultValue ''
|
|
1091
1017
|
*/ _define_property(this, "max", void 0);
|
|
1092
|
-
|
|
1093
|
-
this.
|
|
1094
|
-
var _props_max;
|
|
1095
|
-
this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : '';
|
|
1018
|
+
this.min = (_ref = props === null || props === void 0 ? void 0 : props.min) !== null && _ref !== void 0 ? _ref : '';
|
|
1019
|
+
this.max = (_ref1 = props === null || props === void 0 ? void 0 : props.max) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1096
1020
|
};
|
|
1097
1021
|
/**
|
|
1098
1022
|
* 地址值
|
|
@@ -1100,6 +1024,7 @@ export function initAiOptions(options) {
|
|
|
1100
1024
|
*/ export var AddressValue = function AddressValue(props) {
|
|
1101
1025
|
"use strict";
|
|
1102
1026
|
_class_call_check(this, AddressValue);
|
|
1027
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
1103
1028
|
/**
|
|
1104
1029
|
* 市编码
|
|
1105
1030
|
* @defaultValue ''
|
|
@@ -1124,18 +1049,12 @@ export function initAiOptions(options) {
|
|
|
1124
1049
|
* 省显示文字
|
|
1125
1050
|
* @defaultValue ''
|
|
1126
1051
|
*/ _define_property(this, "provinceDisplay", void 0);
|
|
1127
|
-
|
|
1128
|
-
this.
|
|
1129
|
-
|
|
1130
|
-
this.
|
|
1131
|
-
|
|
1132
|
-
this.
|
|
1133
|
-
var _props_districtDisplay;
|
|
1134
|
-
this.districtDisplay = (_props_districtDisplay = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && _props_districtDisplay !== void 0 ? _props_districtDisplay : '';
|
|
1135
|
-
var _props_province;
|
|
1136
|
-
this.province = (_props_province = props === null || props === void 0 ? void 0 : props.province) !== null && _props_province !== void 0 ? _props_province : '';
|
|
1137
|
-
var _props_provinceDisplay;
|
|
1138
|
-
this.provinceDisplay = (_props_provinceDisplay = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && _props_provinceDisplay !== void 0 ? _props_provinceDisplay : '';
|
|
1052
|
+
this.city = (_ref = props === null || props === void 0 ? void 0 : props.city) !== null && _ref !== void 0 ? _ref : '';
|
|
1053
|
+
this.cityDisplay = (_ref1 = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1054
|
+
this.district = (_ref2 = props === null || props === void 0 ? void 0 : props.district) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
1055
|
+
this.districtDisplay = (_ref3 = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
1056
|
+
this.province = (_ref4 = props === null || props === void 0 ? void 0 : props.province) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
1057
|
+
this.provinceDisplay = (_ref5 = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && _ref5 !== void 0 ? _ref5 : '';
|
|
1139
1058
|
};
|
|
1140
1059
|
/**
|
|
1141
1060
|
* 计算公式数据绑定项
|
|
@@ -1163,6 +1082,7 @@ export function initAiOptions(options) {
|
|
|
1163
1082
|
*/ export var CalcValue = function CalcValue(props) {
|
|
1164
1083
|
"use strict";
|
|
1165
1084
|
_class_call_check(this, CalcValue);
|
|
1085
|
+
var _ref, _ref1;
|
|
1166
1086
|
/**
|
|
1167
1087
|
* 计算结果值
|
|
1168
1088
|
* @defaultValue 0
|
|
@@ -1171,10 +1091,8 @@ export function initAiOptions(options) {
|
|
|
1171
1091
|
* 单位
|
|
1172
1092
|
* @defaultValue ''
|
|
1173
1093
|
*/ _define_property(this, "unit", void 0);
|
|
1174
|
-
|
|
1175
|
-
this.
|
|
1176
|
-
var _props_unit;
|
|
1177
|
-
this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : '';
|
|
1094
|
+
this.result = (_ref = props === null || props === void 0 ? void 0 : props.result) !== null && _ref !== void 0 ? _ref : 0;
|
|
1095
|
+
this.unit = (_ref1 = props === null || props === void 0 ? void 0 : props.unit) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1178
1096
|
};
|
|
1179
1097
|
// 币种类型
|
|
1180
1098
|
export var AMOUNT_TYPE = /*#__PURE__*/ function(AMOUNT_TYPE) {
|
|
@@ -1271,6 +1189,7 @@ export var PAGE_STATUS = /*#__PURE__*/ function(PAGE_STATUS) {
|
|
|
1271
1189
|
*/ export var OperationItem = function OperationItem(props) {
|
|
1272
1190
|
"use strict";
|
|
1273
1191
|
_class_call_check(this, OperationItem);
|
|
1192
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
1274
1193
|
/**
|
|
1275
1194
|
* 是否显示
|
|
1276
1195
|
* @defaultValue true
|
|
@@ -1297,36 +1216,28 @@ export var PAGE_STATUS = /*#__PURE__*/ function(PAGE_STATUS) {
|
|
|
1297
1216
|
* @public
|
|
1298
1217
|
*/ _define_property(this, "openType", void 0);
|
|
1299
1218
|
_define_property(this, "type", void 0);
|
|
1300
|
-
|
|
1301
|
-
this.
|
|
1302
|
-
|
|
1303
|
-
this.
|
|
1304
|
-
|
|
1305
|
-
this.
|
|
1306
|
-
var _props_openType;
|
|
1307
|
-
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : 'modal';
|
|
1308
|
-
var _props_type;
|
|
1309
|
-
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : '';
|
|
1310
|
-
var _props_priorityProcess;
|
|
1311
|
-
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : false;
|
|
1219
|
+
this.isShow = (_ref = props === null || props === void 0 ? void 0 : props.isShow) !== null && _ref !== void 0 ? _ref : true;
|
|
1220
|
+
this.content = (_ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1221
|
+
this.formKey = (_ref2 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
1222
|
+
this.openType = (_ref3 = props === null || props === void 0 ? void 0 : props.openType) !== null && _ref3 !== void 0 ? _ref3 : 'modal';
|
|
1223
|
+
this.type = (_ref4 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
1224
|
+
this.priorityProcess = (_ref5 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
1312
1225
|
};
|
|
1313
1226
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
1314
1227
|
"use strict";
|
|
1315
1228
|
_class_call_check(this, ViewOperationItem);
|
|
1229
|
+
var _ref, _ref1, _ref2;
|
|
1316
1230
|
var _props_headers;
|
|
1317
1231
|
_define_property(this, "id", void 0);
|
|
1318
1232
|
_define_property(this, "title", void 0);
|
|
1319
1233
|
_define_property(this, "filters", void 0);
|
|
1320
1234
|
_define_property(this, "viewFilters", void 0);
|
|
1321
1235
|
_define_property(this, "headers", void 0);
|
|
1322
|
-
|
|
1323
|
-
this.
|
|
1324
|
-
|
|
1325
|
-
this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : '';
|
|
1326
|
-
var _props_headers_map;
|
|
1327
|
-
this.headers = (_props_headers_map = props === null || props === void 0 ? void 0 : (_props_headers = props.headers) === null || _props_headers === void 0 ? void 0 : _props_headers.map(function(item) {
|
|
1236
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId(8);
|
|
1237
|
+
this.title = (_ref1 = props === null || props === void 0 ? void 0 : props.title) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1238
|
+
this.headers = (_ref2 = props === null || props === void 0 ? void 0 : (_props_headers = props.headers) === null || _props_headers === void 0 ? void 0 : _props_headers.map(function(item) {
|
|
1328
1239
|
return new ListBindHeaderItem(item);
|
|
1329
|
-
})) !== null &&
|
|
1240
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
1330
1241
|
callFiltersAndOrders.call(this, props);
|
|
1331
1242
|
};
|
|
1332
1243
|
/**
|
|
@@ -1334,36 +1245,33 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
1334
1245
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
1335
1246
|
"use strict";
|
|
1336
1247
|
_class_call_check(this, CustomPermissionItem);
|
|
1248
|
+
var _props_key, _props_caption;
|
|
1337
1249
|
/**
|
|
1338
1250
|
* 人工输入的权限key
|
|
1339
1251
|
*/ _define_property(this, "key", void 0);
|
|
1340
1252
|
/**
|
|
1341
1253
|
* 权限名称
|
|
1342
1254
|
*/ _define_property(this, "caption", void 0);
|
|
1343
|
-
var _props_key;
|
|
1344
1255
|
this.key = (_props_key = props.key) !== null && _props_key !== void 0 ? _props_key : genNonDuplicateId(8);
|
|
1345
|
-
var _props_caption;
|
|
1346
1256
|
this.caption = (_props_caption = props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
|
|
1347
1257
|
};
|
|
1348
1258
|
export var BaseStyle = function BaseStyle(props) {
|
|
1349
1259
|
"use strict";
|
|
1350
1260
|
_class_call_check(this, BaseStyle);
|
|
1261
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
1351
1262
|
_define_property(this, "width", void 0);
|
|
1352
1263
|
_define_property(this, "height", void 0);
|
|
1353
1264
|
_define_property(this, "widthConfig", void 0);
|
|
1354
1265
|
_define_property(this, "heightConfig", void 0);
|
|
1355
|
-
|
|
1356
|
-
this.
|
|
1357
|
-
|
|
1358
|
-
this.
|
|
1359
|
-
var _props_widthConfig;
|
|
1360
|
-
this.widthConfig = (_props_widthConfig = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && _props_widthConfig !== void 0 ? _props_widthConfig : 'fill';
|
|
1361
|
-
var _props_heightConfig;
|
|
1362
|
-
this.heightConfig = (_props_heightConfig = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && _props_heightConfig !== void 0 ? _props_heightConfig : 'fill';
|
|
1266
|
+
this.width = (_ref = props === null || props === void 0 ? void 0 : props.width) !== null && _ref !== void 0 ? _ref : '';
|
|
1267
|
+
this.height = (_ref1 = props === null || props === void 0 ? void 0 : props.height) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1268
|
+
this.widthConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && _ref2 !== void 0 ? _ref2 : 'fill';
|
|
1269
|
+
this.heightConfig = (_ref3 = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && _ref3 !== void 0 ? _ref3 : 'fill';
|
|
1363
1270
|
};
|
|
1364
1271
|
export var OptObject = function OptObject(props) {
|
|
1365
1272
|
"use strict";
|
|
1366
1273
|
_class_call_check(this, OptObject);
|
|
1274
|
+
var _ref, _ref1;
|
|
1367
1275
|
/**
|
|
1368
1276
|
* 操作项编码
|
|
1369
1277
|
* @defaultValue ''
|
|
@@ -1374,14 +1282,13 @@ export var OptObject = function OptObject(props) {
|
|
|
1374
1282
|
* @defaultValue ''
|
|
1375
1283
|
* @public
|
|
1376
1284
|
*/ _define_property(this, "optType", void 0);
|
|
1377
|
-
|
|
1378
|
-
this.
|
|
1379
|
-
var _props_optType;
|
|
1380
|
-
this.optType = (_props_optType = props === null || props === void 0 ? void 0 : props.optType) !== null && _props_optType !== void 0 ? _props_optType : '';
|
|
1285
|
+
this.optCode = (_ref = props === null || props === void 0 ? void 0 : props.optCode) !== null && _ref !== void 0 ? _ref : '';
|
|
1286
|
+
this.optType = (_ref1 = props === null || props === void 0 ? void 0 : props.optType) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1381
1287
|
};
|
|
1382
1288
|
export var RowStyleRule = function RowStyleRule(props) {
|
|
1383
1289
|
"use strict";
|
|
1384
1290
|
_class_call_check(this, RowStyleRule);
|
|
1291
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
1385
1292
|
var _props_filters, _props_settings;
|
|
1386
1293
|
/**
|
|
1387
1294
|
* 规则编号
|
|
@@ -1401,26 +1308,23 @@ export var RowStyleRule = function RowStyleRule(props) {
|
|
|
1401
1308
|
*/ _define_property(this, "filters", void 0);
|
|
1402
1309
|
// 过滤
|
|
1403
1310
|
_define_property(this, "script", void 0);
|
|
1404
|
-
|
|
1405
|
-
this.
|
|
1406
|
-
|
|
1407
|
-
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : '';
|
|
1408
|
-
var _props_filters_map;
|
|
1409
|
-
this.filters = (_props_filters_map = props === null || props === void 0 ? void 0 : (_props_filters = props.filters) === null || _props_filters === void 0 ? void 0 : _props_filters.map(function(item) {
|
|
1311
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId();
|
|
1312
|
+
this.name = (_ref1 = props === null || props === void 0 ? void 0 : props.name) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1313
|
+
this.filters = (_ref2 = props === null || props === void 0 ? void 0 : (_props_filters = props.filters) === null || _props_filters === void 0 ? void 0 : _props_filters.map(function(item) {
|
|
1410
1314
|
if (item.children !== undefined) {
|
|
1411
1315
|
return new FieldFilterConditions(item);
|
|
1412
1316
|
}
|
|
1413
1317
|
return new FieldFilterCondition(item);
|
|
1414
|
-
})) !== null &&
|
|
1415
|
-
|
|
1416
|
-
this.settings = (props === null || props === void 0 ? void 0 : props.settings) && Array.isArray(props === null || props === void 0 ? void 0 : props.settings) ? (_props_settings_map = props === null || props === void 0 ? void 0 : (_props_settings = props.settings) === null || _props_settings === void 0 ? void 0 : _props_settings.map(function(item) {
|
|
1318
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
1319
|
+
this.settings = (props === null || props === void 0 ? void 0 : props.settings) && Array.isArray(props === null || props === void 0 ? void 0 : props.settings) ? (_ref3 = props === null || props === void 0 ? void 0 : (_props_settings = props.settings) === null || _props_settings === void 0 ? void 0 : _props_settings.map(function(item) {
|
|
1417
1320
|
return new RowStyleSettings(item);
|
|
1418
|
-
})) !== null &&
|
|
1321
|
+
})) !== null && _ref3 !== void 0 ? _ref3 : [] : [];
|
|
1419
1322
|
this.script = props === null || props === void 0 ? void 0 : props.script;
|
|
1420
1323
|
};
|
|
1421
1324
|
export var RowStyleSettings = function RowStyleSettings(props) {
|
|
1422
1325
|
"use strict";
|
|
1423
1326
|
_class_call_check(this, RowStyleSettings);
|
|
1327
|
+
var _props_type, _props_fieldCodes, _props_color, _props_scope;
|
|
1424
1328
|
/**
|
|
1425
1329
|
* 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
|
|
1426
1330
|
* @defaultValue 'theme'
|
|
@@ -1435,36 +1339,31 @@ export var RowStyleSettings = function RowStyleSettings(props) {
|
|
|
1435
1339
|
/**
|
|
1436
1340
|
* 作用范围,row整行,col整列
|
|
1437
1341
|
*/ _define_property(this, "scope", void 0);
|
|
1438
|
-
var _props_type;
|
|
1439
1342
|
this.type = (_props_type = props.type) !== null && _props_type !== void 0 ? _props_type : 'background';
|
|
1440
|
-
var _props_fieldCodes;
|
|
1441
1343
|
this.fieldCodes = (_props_fieldCodes = props.fieldCodes) !== null && _props_fieldCodes !== void 0 ? _props_fieldCodes : [];
|
|
1442
|
-
var _props_color;
|
|
1443
1344
|
this.color = (_props_color = props.color) !== null && _props_color !== void 0 ? _props_color : 'theme';
|
|
1444
|
-
var _props_scope;
|
|
1445
1345
|
this.scope = (_props_scope = props.scope) !== null && _props_scope !== void 0 ? _props_scope : 'row';
|
|
1446
1346
|
};
|
|
1447
1347
|
export var RowStyle = function RowStyle(props) {
|
|
1448
1348
|
"use strict";
|
|
1449
1349
|
_class_call_check(this, RowStyle);
|
|
1350
|
+
var _ref, _ref1, _ref2;
|
|
1450
1351
|
var _props_rules;
|
|
1451
1352
|
_define_property(this, "type", void 0);
|
|
1452
1353
|
_define_property(this, "interval", void 0);
|
|
1453
1354
|
_define_property(this, "rules", void 0);
|
|
1454
|
-
|
|
1455
|
-
this.
|
|
1456
|
-
var _props_interval;
|
|
1457
|
-
this.interval = (_props_interval = props === null || props === void 0 ? void 0 : props.interval) !== null && _props_interval !== void 0 ? _props_interval : {
|
|
1355
|
+
this.type = (_ref = props === null || props === void 0 ? void 0 : props.type) !== null && _ref !== void 0 ? _ref : 'none';
|
|
1356
|
+
this.interval = (_ref1 = props === null || props === void 0 ? void 0 : props.interval) !== null && _ref1 !== void 0 ? _ref1 : {
|
|
1458
1357
|
color: ''
|
|
1459
1358
|
};
|
|
1460
|
-
|
|
1461
|
-
this.rules = (props === null || props === void 0 ? void 0 : props.rules) && Array.isArray(props === null || props === void 0 ? void 0 : props.rules) ? (_props_rules_map = props === null || props === void 0 ? void 0 : (_props_rules = props.rules) === null || _props_rules === void 0 ? void 0 : _props_rules.map(function(item) {
|
|
1359
|
+
this.rules = (props === null || props === void 0 ? void 0 : props.rules) && Array.isArray(props === null || props === void 0 ? void 0 : props.rules) ? (_ref2 = props === null || props === void 0 ? void 0 : (_props_rules = props.rules) === null || _props_rules === void 0 ? void 0 : _props_rules.map(function(item) {
|
|
1462
1360
|
return new RowStyleRule(item);
|
|
1463
|
-
})) !== null &&
|
|
1361
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [] : [];
|
|
1464
1362
|
};
|
|
1465
1363
|
export var ListTreeData = function ListTreeData(props) {
|
|
1466
1364
|
"use strict";
|
|
1467
1365
|
_class_call_check(this, ListTreeData);
|
|
1366
|
+
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
1468
1367
|
// 是否默认展开分组 -1:全展开,0:不展开
|
|
1469
1368
|
_define_property(this, "groupDefaultExpanded", void 0);
|
|
1470
1369
|
// 是否显示每个分组行数统计
|
|
@@ -1475,23 +1374,18 @@ export var ListTreeData = function ListTreeData(props) {
|
|
|
1475
1374
|
_define_property(this, "groupHeaderName", void 0);
|
|
1476
1375
|
// 显示页脚统计按钮,当去掉序号列时能支持统计
|
|
1477
1376
|
_define_property(this, "showFooterStatistics", void 0);
|
|
1478
|
-
|
|
1479
|
-
this.
|
|
1480
|
-
|
|
1481
|
-
this.
|
|
1482
|
-
|
|
1483
|
-
this.groupFields = (_props_groupFields = props === null || props === void 0 ? void 0 : props.groupFields) !== null && _props_groupFields !== void 0 ? _props_groupFields : [];
|
|
1484
|
-
var _props_groupHeaderName;
|
|
1485
|
-
this.groupHeaderName = (_props_groupHeaderName = props === null || props === void 0 ? void 0 : props.groupHeaderName) !== null && _props_groupHeaderName !== void 0 ? _props_groupHeaderName : '';
|
|
1486
|
-
var _props_showFooterStatistics;
|
|
1487
|
-
this.showFooterStatistics = (_props_showFooterStatistics = props === null || props === void 0 ? void 0 : props.showFooterStatistics) !== null && _props_showFooterStatistics !== void 0 ? _props_showFooterStatistics : false;
|
|
1377
|
+
this.groupDefaultExpanded = (_ref = props === null || props === void 0 ? void 0 : props.groupDefaultExpanded) !== null && _ref !== void 0 ? _ref : false;
|
|
1378
|
+
this.suppressCount = (_ref1 = props === null || props === void 0 ? void 0 : props.suppressCount) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
1379
|
+
this.groupFields = (_ref2 = props === null || props === void 0 ? void 0 : props.groupFields) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
1380
|
+
this.groupHeaderName = (_ref3 = props === null || props === void 0 ? void 0 : props.groupHeaderName) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
1381
|
+
this.showFooterStatistics = (_ref4 = props === null || props === void 0 ? void 0 : props.showFooterStatistics) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
1488
1382
|
};
|
|
1489
1383
|
export var MasterDetail = function MasterDetail(props) {
|
|
1490
1384
|
"use strict";
|
|
1491
1385
|
_class_call_check(this, MasterDetail);
|
|
1386
|
+
var _ref;
|
|
1492
1387
|
_define_property(this, "datasourceBind", void 0);
|
|
1493
1388
|
_define_property(this, "headers", void 0);
|
|
1494
1389
|
this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
1495
|
-
|
|
1496
|
-
this.headers = (_props_headers = props === null || props === void 0 ? void 0 : props.headers) !== null && _props_headers !== void 0 ? _props_headers : [];
|
|
1390
|
+
this.headers = (_ref = props === null || props === void 0 ? void 0 : props.headers) !== null && _ref !== void 0 ? _ref : [];
|
|
1497
1391
|
};
|