@byteluck-fe/model-driven-core 6.2.0-beta.9 → 6.2.0-cyj.0
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 +40 -41
- package/dist/esm/common/BaseControl/property.js +19 -31
- package/dist/esm/common/BaseControl/runtime.js +11 -20
- package/dist/esm/common/ColumnControl/designer.js +17 -29
- package/dist/esm/common/ColumnControl/property.js +18 -30
- package/dist/esm/common/ColumnControl/runtime.js +12 -20
- package/dist/esm/common/ControlArray.js +4 -2
- package/dist/esm/common/FormControl/designer.js +12 -20
- package/dist/esm/common/FormControl/property.js +26 -46
- package/dist/esm/common/FormControl/runtime.js +12 -20
- package/dist/esm/common/LayoutControl/designer.js +49 -55
- package/dist/esm/common/LayoutControl/property.js +11 -17
- package/dist/esm/common/LayoutControl/runtime.js +12 -20
- package/dist/esm/common/ListControl/designer.js +47 -52
- package/dist/esm/common/ListControl/property.js +17 -28
- package/dist/esm/common/ListControl/runtime.js +12 -20
- package/dist/esm/common/SearchViewControl/designer.js +12 -20
- package/dist/esm/common/SearchViewControl/property.js +12 -20
- package/dist/esm/common/SearchViewControl/runtime.js +12 -20
- package/dist/esm/common/WrapControl/designer.js +12 -20
- package/dist/esm/common/WrapControl/property.js +11 -17
- package/dist/esm/common/WrapControl/runtime.js +12 -20
- package/dist/esm/framework/RegisterControls.js +2 -6
- package/dist/esm/framework/index.js +231 -345
- package/dist/index.umd.js +3 -1
- package/dist/types/common/ColumnControl/designer.d.ts +4 -4
- package/dist/types/framework/index.d.ts +27 -26
- package/package.json +3 -3
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
function _assert_this_initialized(self) {
|
|
2
|
-
if (self === void 0)
|
|
3
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
-
}
|
|
2
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5
3
|
return self;
|
|
6
4
|
}
|
|
7
5
|
function _call_super(_this, derived, args) {
|
|
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
|
|
|
9
7
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
8
|
}
|
|
11
9
|
function _class_call_check(instance, Constructor) {
|
|
12
|
-
if (!(instance instanceof Constructor))
|
|
13
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14
|
-
}
|
|
10
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15
11
|
}
|
|
16
12
|
function _define_property(obj, key, value) {
|
|
17
13
|
if (key in obj) {
|
|
@@ -21,9 +17,7 @@ function _define_property(obj, key, value) {
|
|
|
21
17
|
configurable: true,
|
|
22
18
|
writable: true
|
|
23
19
|
});
|
|
24
|
-
} else
|
|
25
|
-
obj[key] = value;
|
|
26
|
-
}
|
|
20
|
+
} else obj[key] = value;
|
|
27
21
|
return obj;
|
|
28
22
|
}
|
|
29
23
|
function _get_prototype_of(o) {
|
|
@@ -45,10 +39,16 @@ function _inherits(subClass, superClass) {
|
|
|
45
39
|
});
|
|
46
40
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
47
41
|
}
|
|
42
|
+
function _is_native_reflect_construct() {
|
|
43
|
+
try {
|
|
44
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
45
|
+
} catch (_) {}
|
|
46
|
+
return (_is_native_reflect_construct = function() {
|
|
47
|
+
return !!result;
|
|
48
|
+
})();
|
|
49
|
+
}
|
|
48
50
|
function _possible_constructor_return(self, call) {
|
|
49
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
50
|
-
return call;
|
|
51
|
-
}
|
|
51
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
52
52
|
return _assert_this_initialized(self);
|
|
53
53
|
}
|
|
54
54
|
function _set_prototype_of(o, p) {
|
|
@@ -62,14 +62,6 @@ function _type_of(obj) {
|
|
|
62
62
|
"@swc/helpers - typeof";
|
|
63
63
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
64
|
}
|
|
65
|
-
function _is_native_reflect_construct() {
|
|
66
|
-
try {
|
|
67
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
-
} catch (_) {}
|
|
69
|
-
return (_is_native_reflect_construct = function() {
|
|
70
|
-
return !!result;
|
|
71
|
-
})();
|
|
72
|
-
}
|
|
73
65
|
import { FieldTypes, genNonDuplicateId } from '@byteluck-fe/model-driven-shared';
|
|
74
66
|
export * from './RegisterControls';
|
|
75
67
|
/**
|
|
@@ -78,6 +70,7 @@ export * from './RegisterControls';
|
|
|
78
70
|
*/ export var DataBind = function DataBind(props) {
|
|
79
71
|
"use strict";
|
|
80
72
|
_class_call_check(this, DataBind);
|
|
73
|
+
var _ref, _ref1, _ref2;
|
|
81
74
|
/**
|
|
82
75
|
* 数据模型编码
|
|
83
76
|
* @defaultValue ''
|
|
@@ -98,41 +91,34 @@ export * from './RegisterControls';
|
|
|
98
91
|
* @defaultValue undefined
|
|
99
92
|
* @public
|
|
100
93
|
*/ _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 : '';
|
|
94
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
95
|
+
this.fieldCode = (_ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
96
|
+
this.fieldType = (_ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
107
97
|
this.aliasCode = props === null || props === void 0 ? void 0 : props.aliasCode;
|
|
108
98
|
};
|
|
109
99
|
export var AutoWidth = function AutoWidth(props) {
|
|
110
100
|
"use strict";
|
|
111
101
|
_class_call_check(this, AutoWidth);
|
|
102
|
+
var _ref, _ref1;
|
|
112
103
|
_define_property(this, "minWidth", void 0);
|
|
113
104
|
_define_property(this, "maxWidth", void 0);
|
|
114
105
|
_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;
|
|
106
|
+
this.minWidth = (_ref = props === null || props === void 0 ? void 0 : props.minWidth) !== null && _ref !== void 0 ? _ref : 150;
|
|
117
107
|
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;
|
|
108
|
+
this.flex = (_ref1 = props === null || props === void 0 ? void 0 : props.flex) !== null && _ref1 !== void 0 ? _ref1 : 1;
|
|
120
109
|
};
|
|
121
110
|
export var RowHeight = function RowHeight(props) {
|
|
122
111
|
"use strict";
|
|
123
112
|
_class_call_check(this, RowHeight);
|
|
113
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
124
114
|
_define_property(this, "rowHeightType", void 0);
|
|
125
115
|
_define_property(this, "minRows", void 0);
|
|
126
116
|
_define_property(this, "maxRows", void 0);
|
|
127
117
|
_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;
|
|
118
|
+
this.rowHeightType = (_ref = props === null || props === void 0 ? void 0 : props.rowHeightType) !== null && _ref !== void 0 ? _ref : 'fixed';
|
|
119
|
+
this.minRows = (_ref1 = props === null || props === void 0 ? void 0 : props.minRows) !== null && _ref1 !== void 0 ? _ref1 : 4;
|
|
120
|
+
this.maxRows = (_ref2 = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _ref2 !== void 0 ? _ref2 : 20;
|
|
121
|
+
this.fiexdRow = (_ref3 = props === null || props === void 0 ? void 0 : props.fiexdRow) !== null && _ref3 !== void 0 ? _ref3 : 4;
|
|
136
122
|
};
|
|
137
123
|
export var MetaRowHeight = function MetaRowHeight(props) {
|
|
138
124
|
"use strict";
|
|
@@ -148,13 +134,12 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
148
134
|
function MetaWidth(props) {
|
|
149
135
|
_class_call_check(this, MetaWidth);
|
|
150
136
|
var _this;
|
|
137
|
+
var _ref, _ref1;
|
|
151
138
|
_this = _call_super(this, MetaWidth, [
|
|
152
139
|
props
|
|
153
140
|
]), _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';
|
|
141
|
+
_this.width = (_ref = props === null || props === void 0 ? void 0 : props.width) !== null && _ref !== void 0 ? _ref : 240;
|
|
142
|
+
_this.widthType = (_ref1 = props === null || props === void 0 ? void 0 : props.widthType) !== null && _ref1 !== void 0 ? _ref1 : 'auto';
|
|
158
143
|
return _this;
|
|
159
144
|
}
|
|
160
145
|
return MetaWidth;
|
|
@@ -173,25 +158,22 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
173
158
|
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
174
159
|
"use strict";
|
|
175
160
|
_class_call_check(this, DataStorageDoc);
|
|
161
|
+
var _ref, _ref1;
|
|
176
162
|
_define_property(this, "type", void 0);
|
|
177
163
|
_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 : [];
|
|
164
|
+
this.type = (_ref = props === null || props === void 0 ? void 0 : props.type) !== null && _ref !== void 0 ? _ref : 'firstThree';
|
|
165
|
+
this.customOptions = (_ref1 = props === null || props === void 0 ? void 0 : props.customOptions) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
182
166
|
};
|
|
183
167
|
export var FormBind = function FormBind(props) {
|
|
184
168
|
"use strict";
|
|
185
169
|
_class_call_check(this, FormBind);
|
|
170
|
+
var _ref, _ref1, _ref2;
|
|
186
171
|
_define_property(this, "dataCode", void 0);
|
|
187
172
|
_define_property(this, "formKey", void 0);
|
|
188
173
|
_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 : '';
|
|
174
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
175
|
+
this.formKey = (_ref1 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
176
|
+
this.appId = (_ref2 = props === null || props === void 0 ? void 0 : props.appId) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
195
177
|
};
|
|
196
178
|
export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
197
179
|
"use strict";
|
|
@@ -199,11 +181,11 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
199
181
|
function FormSelectBind(props) {
|
|
200
182
|
_class_call_check(this, FormSelectBind);
|
|
201
183
|
var _this;
|
|
184
|
+
var _ref;
|
|
202
185
|
_this = _call_super(this, FormSelectBind, [
|
|
203
186
|
props
|
|
204
187
|
]), _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 : '';
|
|
188
|
+
_this.primaryControlId = (_ref = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && _ref !== void 0 ? _ref : '';
|
|
207
189
|
return _this;
|
|
208
190
|
}
|
|
209
191
|
return FormSelectBind;
|
|
@@ -214,21 +196,21 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
214
196
|
*/ var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
215
197
|
"use strict";
|
|
216
198
|
_class_call_check(this, ListBindHeaderItem);
|
|
199
|
+
var _ref, _ref1;
|
|
217
200
|
/**
|
|
218
201
|
* 字段
|
|
219
202
|
* @defaultValue ''
|
|
220
203
|
*/ _define_property(this, "fieldCode", void 0);
|
|
221
204
|
_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 : '';
|
|
205
|
+
this.fieldCode = (_ref = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _ref !== void 0 ? _ref : '';
|
|
206
|
+
this.dataCode = (_ref1 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
226
207
|
};
|
|
227
208
|
/**
|
|
228
209
|
* 列表绑定配置
|
|
229
210
|
*/ export var ListBind = function ListBind(props) {
|
|
230
211
|
"use strict";
|
|
231
212
|
_class_call_check(this, ListBind);
|
|
213
|
+
var _ref, _ref1, _ref2;
|
|
232
214
|
var _props_headers;
|
|
233
215
|
/**
|
|
234
216
|
* 应用ID
|
|
@@ -242,27 +224,22 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
242
224
|
* 显示字段
|
|
243
225
|
* @public
|
|
244
226
|
*/ _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) {
|
|
227
|
+
this.appId = (_ref = props === null || props === void 0 ? void 0 : props.appId) !== null && _ref !== void 0 ? _ref : '';
|
|
228
|
+
this.formKey = (_ref1 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
229
|
+
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
230
|
return new ListBindHeaderItem(item);
|
|
252
|
-
})) !== null &&
|
|
231
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
253
232
|
};
|
|
254
233
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
255
234
|
"use strict";
|
|
256
235
|
_class_call_check(this, FieldBindItem);
|
|
236
|
+
var _ref, _ref1, _ref2;
|
|
257
237
|
_define_property(this, "fieldName", void 0);
|
|
258
238
|
_define_property(this, "fieldCode", void 0);
|
|
259
239
|
_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;
|
|
240
|
+
this.fieldName = (_ref = props === null || props === void 0 ? void 0 : props.fieldName) !== null && _ref !== void 0 ? _ref : '';
|
|
241
|
+
this.fieldCode = (_ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
242
|
+
this.fieldType = (_ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref2 !== void 0 ? _ref2 : FieldTypes.VARCHAR;
|
|
266
243
|
};
|
|
267
244
|
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
268
245
|
"use strict";
|
|
@@ -270,17 +247,14 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
270
247
|
function SubListItem(props) {
|
|
271
248
|
_class_call_check(this, SubListItem);
|
|
272
249
|
var _this;
|
|
250
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
273
251
|
_this = _call_super(this, SubListItem, [
|
|
274
252
|
props
|
|
275
253
|
]), _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 : [];
|
|
254
|
+
_this.title = (_ref = props === null || props === void 0 ? void 0 : props.title) !== null && _ref !== void 0 ? _ref : '';
|
|
255
|
+
_this.svcCode = (_ref1 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
256
|
+
_this.isOpenFilter = (_ref2 = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
257
|
+
_this.filters = (_ref3 = props === null || props === void 0 ? void 0 : props.filters) !== null && _ref3 !== void 0 ? _ref3 : [];
|
|
284
258
|
return _this;
|
|
285
259
|
}
|
|
286
260
|
return SubListItem;
|
|
@@ -288,20 +262,19 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
288
262
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
289
263
|
"use strict";
|
|
290
264
|
_class_call_check(this, SubListPageConfig);
|
|
265
|
+
var _ref, _ref1;
|
|
291
266
|
var _props_displayFields, _props_sublists;
|
|
292
267
|
_define_property(this, "type", 'sublist-page');
|
|
293
268
|
_define_property(this, "formBind", void 0);
|
|
294
269
|
_define_property(this, "displayFields", void 0);
|
|
295
270
|
_define_property(this, "sublists", void 0);
|
|
296
271
|
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) {
|
|
272
|
+
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
273
|
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) {
|
|
274
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
275
|
+
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
276
|
return new SubListItem(item);
|
|
304
|
-
})) !== null &&
|
|
277
|
+
})) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
305
278
|
};
|
|
306
279
|
export var LeftVariable = function LeftVariable(props) {
|
|
307
280
|
"use strict";
|
|
@@ -316,15 +289,13 @@ export var LeftVariable = function LeftVariable(props) {
|
|
|
316
289
|
export var RightVariable = function RightVariable(props) {
|
|
317
290
|
"use strict";
|
|
318
291
|
_class_call_check(this, RightVariable);
|
|
292
|
+
var _ref, _ref1, _ref2;
|
|
319
293
|
_define_property(this, "type", void 0);
|
|
320
294
|
_define_property(this, "value", void 0);
|
|
321
295
|
_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 : [];
|
|
296
|
+
this.type = (_ref = props === null || props === void 0 ? void 0 : props.type) !== null && _ref !== void 0 ? _ref : 'custom';
|
|
297
|
+
this.value = (_ref1 = props === null || props === void 0 ? void 0 : props.value) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
298
|
+
this.displayBos = (_ref2 = props === null || props === void 0 ? void 0 : props.displayBos) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
328
299
|
};
|
|
329
300
|
/**
|
|
330
301
|
* 连接符条件
|
|
@@ -333,6 +304,7 @@ export var RightVariable = function RightVariable(props) {
|
|
|
333
304
|
"use strict";
|
|
334
305
|
var _this = this;
|
|
335
306
|
_class_call_check(this, FieldFilterConditions);
|
|
307
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
336
308
|
/**
|
|
337
309
|
* 编号
|
|
338
310
|
* @defaultValue ''
|
|
@@ -357,14 +329,10 @@ export var RightVariable = function RightVariable(props) {
|
|
|
357
329
|
* 包含子项
|
|
358
330
|
* @defaultValue []
|
|
359
331
|
*/ _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';
|
|
332
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId();
|
|
333
|
+
this.ruleId = (_ref1 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _ref1 !== void 0 ? _ref1 : new Date().valueOf();
|
|
334
|
+
this.level = (_ref2 = props === null || props === void 0 ? void 0 : props.level) !== null && _ref2 !== void 0 ? _ref2 : 0;
|
|
335
|
+
this.value = (_ref3 = props === null || props === void 0 ? void 0 : props.value) !== null && _ref3 !== void 0 ? _ref3 : 'and';
|
|
368
336
|
this.children = [];
|
|
369
337
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
370
338
|
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
@@ -386,6 +354,7 @@ export var RightVariable = function RightVariable(props) {
|
|
|
386
354
|
*/ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
387
355
|
"use strict";
|
|
388
356
|
_class_call_check(this, FieldFilterCondition);
|
|
357
|
+
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
389
358
|
/**
|
|
390
359
|
* 唯一编号
|
|
391
360
|
* @defaultValue ''
|
|
@@ -409,30 +378,24 @@ export var RightVariable = function RightVariable(props) {
|
|
|
409
378
|
/**
|
|
410
379
|
* 右值
|
|
411
380
|
*/ _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 : '';
|
|
381
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId();
|
|
382
|
+
this.ruleId = (_ref1 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _ref1 !== void 0 ? _ref1 : new Date().valueOf();
|
|
383
|
+
this.symbol = (_ref2 = props === null || props === void 0 ? void 0 : props.symbol) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
384
|
+
this.checked = (_ref3 = props === null || props === void 0 ? void 0 : props.checked) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
385
|
+
this.describe = (_ref4 = props === null || props === void 0 ? void 0 : props.describe) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
422
386
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
423
387
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
424
388
|
};
|
|
425
389
|
export var JoinRelation = function JoinRelation(props) {
|
|
426
390
|
"use strict";
|
|
427
391
|
_class_call_check(this, JoinRelation);
|
|
392
|
+
var _ref, _ref1;
|
|
428
393
|
_define_property(this, "aliasCode", void 0);
|
|
429
394
|
_define_property(this, "datasourceBind", void 0);
|
|
430
395
|
_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 : '';
|
|
396
|
+
this.aliasCode = (_ref = props === null || props === void 0 ? void 0 : props.aliasCode) !== null && _ref !== void 0 ? _ref : '';
|
|
433
397
|
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 : [];
|
|
398
|
+
this.relationFields = (_ref1 = props === null || props === void 0 ? void 0 : props.relationFields) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
436
399
|
};
|
|
437
400
|
/**
|
|
438
401
|
* 数据填充项
|
|
@@ -440,6 +403,7 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
440
403
|
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
441
404
|
"use strict";
|
|
442
405
|
_class_call_check(this, MultistageFillingItem);
|
|
406
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
443
407
|
/**
|
|
444
408
|
* 控件ID
|
|
445
409
|
* @defaultValue ''
|
|
@@ -460,14 +424,10 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
460
424
|
* @defaultValue ''
|
|
461
425
|
* @public
|
|
462
426
|
* */ _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 : '';
|
|
427
|
+
this.controlId = (_ref = props === null || props === void 0 ? void 0 : props.controlId) !== null && _ref !== void 0 ? _ref : '';
|
|
428
|
+
this.fieldCode = (_ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
429
|
+
this.fieldType = (_ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
430
|
+
this.propName = (_ref3 = props === null || props === void 0 ? void 0 : props.propName) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
471
431
|
};
|
|
472
432
|
/**
|
|
473
433
|
* 显示项
|
|
@@ -475,6 +435,7 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
475
435
|
*/ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
476
436
|
"use strict";
|
|
477
437
|
_class_call_check(this, DisplayBoListItem);
|
|
438
|
+
var _ref, _ref1;
|
|
478
439
|
/**
|
|
479
440
|
* 显示项类型:字段 | 符号
|
|
480
441
|
* @defaultValue 'FIELD'
|
|
@@ -486,25 +447,22 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
486
447
|
/**
|
|
487
448
|
* 字段数据类型
|
|
488
449
|
*/ _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 : '';
|
|
450
|
+
this.type = (_ref = props === null || props === void 0 ? void 0 : props.type) !== null && _ref !== void 0 ? _ref : 'FIELD';
|
|
451
|
+
this.value = (_ref1 = props === null || props === void 0 ? void 0 : props.value) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
493
452
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
494
453
|
};
|
|
495
454
|
export var OptionDisplayConfigItem = function OptionDisplayConfigItem(props) {
|
|
496
455
|
"use strict";
|
|
497
456
|
_class_call_check(this, OptionDisplayConfigItem);
|
|
457
|
+
var _ref, _ref1;
|
|
498
458
|
/**
|
|
499
459
|
* 标题
|
|
500
460
|
*/ _define_property(this, "title", void 0);
|
|
501
461
|
/**
|
|
502
462
|
* 字段数据类型
|
|
503
463
|
*/ _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 : [];
|
|
464
|
+
this.title = (_ref = props === null || props === void 0 ? void 0 : props.title) !== null && _ref !== void 0 ? _ref : '';
|
|
465
|
+
this.displayBoList = (_ref1 = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
508
466
|
};
|
|
509
467
|
/**
|
|
510
468
|
* 数据源排序项
|
|
@@ -512,6 +470,7 @@ export var OptionDisplayConfigItem = function OptionDisplayConfigItem(props) {
|
|
|
512
470
|
*/ export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
513
471
|
"use strict";
|
|
514
472
|
_class_call_check(this, DataSourceOrderItem);
|
|
473
|
+
var _props_columnName, _props_desc;
|
|
515
474
|
/**
|
|
516
475
|
* 列名
|
|
517
476
|
* @defaultValue ''
|
|
@@ -520,30 +479,27 @@ export var OptionDisplayConfigItem = function OptionDisplayConfigItem(props) {
|
|
|
520
479
|
* 倒序
|
|
521
480
|
* @defaultValue false
|
|
522
481
|
*/ _define_property(this, "desc", void 0);
|
|
523
|
-
var _props_columnName;
|
|
524
482
|
this.columnName = (_props_columnName = props.columnName) !== null && _props_columnName !== void 0 ? _props_columnName : '';
|
|
525
|
-
var _props_desc;
|
|
526
483
|
this.desc = (_props_desc = props.desc) !== null && _props_desc !== void 0 ? _props_desc : false;
|
|
527
484
|
};
|
|
528
485
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
529
486
|
"use strict";
|
|
530
487
|
_class_call_check(this, DataSourceDataSetValue);
|
|
488
|
+
var _props_code, _props_value, _props_field_type;
|
|
531
489
|
// fieldCode
|
|
532
490
|
_define_property(this, "code", void 0);
|
|
533
491
|
// 值
|
|
534
492
|
_define_property(this, "value", void 0);
|
|
535
493
|
// 数据类型
|
|
536
494
|
_define_property(this, "field_type", void 0);
|
|
537
|
-
var _props_code;
|
|
538
495
|
this.code = (_props_code = props.code) !== null && _props_code !== void 0 ? _props_code : '';
|
|
539
|
-
var _props_value;
|
|
540
496
|
this.value = (_props_value = props.value) !== null && _props_value !== void 0 ? _props_value : '';
|
|
541
|
-
var _props_field_type;
|
|
542
497
|
this.field_type = (_props_field_type = props.field_type) !== null && _props_field_type !== void 0 ? _props_field_type : FieldTypes.ANY;
|
|
543
498
|
};
|
|
544
499
|
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
545
500
|
"use strict";
|
|
546
501
|
_class_call_check(this, DataSourceParamItem);
|
|
502
|
+
var _props_id, _props_limit, _props_formKey, _ref, _ref1;
|
|
547
503
|
var _props_orders, _props_dataSet;
|
|
548
504
|
/**
|
|
549
505
|
* 字段ID
|
|
@@ -552,44 +508,37 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
552
508
|
_define_property(this, "orders", void 0);
|
|
553
509
|
_define_property(this, "formKey", void 0);
|
|
554
510
|
_define_property(this, "dataSet", void 0);
|
|
555
|
-
var _props_id;
|
|
556
511
|
//字段ID,不可以当作随机数生成唯一编号
|
|
557
512
|
this.id = (_props_id = props.id) !== null && _props_id !== void 0 ? _props_id : '';
|
|
558
|
-
var _props_limit;
|
|
559
513
|
this.limit = (_props_limit = props.limit) !== null && _props_limit !== void 0 ? _props_limit : 20;
|
|
560
|
-
var _props_formKey;
|
|
561
514
|
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) {
|
|
515
|
+
this.orders = (_ref = (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
|
|
564
516
|
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) {
|
|
517
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
518
|
+
this.dataSet = (_ref1 = (_props_dataSet = props.dataSet) === null || _props_dataSet === void 0 ? void 0 : _props_dataSet.map(function(item) {
|
|
568
519
|
return new DataSourceDataSetValue(item);
|
|
569
|
-
})) !== null &&
|
|
520
|
+
})) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
570
521
|
};
|
|
571
522
|
/**
|
|
572
523
|
* 给filters和orders赋值
|
|
573
524
|
* */ function callFiltersAndOrders(props) {
|
|
525
|
+
var _ref, _ref1, _ref2;
|
|
574
526
|
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) {
|
|
527
|
+
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
528
|
if (item.children !== undefined) {
|
|
578
529
|
return new FieldFilterConditions(item);
|
|
579
530
|
}
|
|
580
531
|
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) {
|
|
532
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
533
|
+
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
534
|
if (item.children !== undefined) {
|
|
585
535
|
return new FieldFilterConditions(item);
|
|
586
536
|
}
|
|
587
537
|
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) {
|
|
538
|
+
})) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
539
|
+
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
540
|
return new DataSourceOrderItem(item);
|
|
592
|
-
})) !== null &&
|
|
541
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
593
542
|
// }
|
|
594
543
|
}
|
|
595
544
|
/**
|
|
@@ -599,6 +548,7 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
599
548
|
"use strict";
|
|
600
549
|
var _this = this;
|
|
601
550
|
_class_call_check(this, DataSourceBind);
|
|
551
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
602
552
|
/**
|
|
603
553
|
* 绑定数据源id
|
|
604
554
|
* @defaultValue ''
|
|
@@ -665,35 +615,28 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
665
615
|
* @defaultValue {}
|
|
666
616
|
* @public
|
|
667
617
|
*/ _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 : '';
|
|
618
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
619
|
+
this.appId = (_ref1 = props === null || props === void 0 ? void 0 : props.appId) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
620
|
+
this.valueFieldCode = (_ref2 = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
674
621
|
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;
|
|
622
|
+
this.isOpenViewFilters = (_ref3 = props === null || props === void 0 ? void 0 : props.isOpenViewFilters) !== null && _ref3 !== void 0 ? _ref3 : 0;
|
|
677
623
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
678
624
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
679
625
|
var _this_displayBoList;
|
|
680
626
|
(_this_displayBoList = _this.displayBoList) === null || _this_displayBoList === void 0 ? void 0 : _this_displayBoList.push(new DisplayBoListItem(item));
|
|
681
627
|
});
|
|
682
628
|
}
|
|
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 : '';
|
|
629
|
+
this.keywordMapping = (_ref4 = props === null || props === void 0 ? void 0 : props.keywordMapping) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
630
|
+
this.showOrder = (_ref5 = props === null || props === void 0 ? void 0 : props.showOrder) !== null && _ref5 !== void 0 ? _ref5 : true;
|
|
631
|
+
this.svcCode = (_ref6 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
689
632
|
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;
|
|
633
|
+
this.openAssignDepartment = (_ref7 = props === null || props === void 0 ? void 0 : props.openAssignDepartment) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
692
634
|
callFiltersAndOrders.call(this, props);
|
|
693
635
|
};
|
|
694
636
|
export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
695
637
|
"use strict";
|
|
696
638
|
_class_call_check(this, SelectedContentConfig);
|
|
639
|
+
var _ref, _ref1;
|
|
697
640
|
/**
|
|
698
641
|
* 展示已选内容
|
|
699
642
|
* @defaultValue ''
|
|
@@ -704,14 +647,13 @@ export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
|
704
647
|
* @defaultValue []
|
|
705
648
|
* @public
|
|
706
649
|
*/ _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 : [];
|
|
650
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
651
|
+
this.displayBoList = (_ref1 = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
711
652
|
};
|
|
712
653
|
export var LinkOperationOption = function LinkOperationOption(props) {
|
|
713
654
|
"use strict";
|
|
714
655
|
_class_call_check(this, LinkOperationOption);
|
|
656
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
715
657
|
_define_property(this, "code", void 0);
|
|
716
658
|
_define_property(this, "color", void 0);
|
|
717
659
|
_define_property(this, "command", void 0);
|
|
@@ -723,43 +665,31 @@ export var LinkOperationOption = function LinkOperationOption(props) {
|
|
|
723
665
|
_define_property(this, "needConfirm", void 0);
|
|
724
666
|
_define_property(this, "openType", void 0);
|
|
725
667
|
_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;
|
|
668
|
+
this.code = (_ref = props === null || props === void 0 ? void 0 : props.code) !== null && _ref !== void 0 ? _ref : 'view';
|
|
669
|
+
this.color = (_ref1 = props === null || props === void 0 ? void 0 : props.color) !== null && _ref1 !== void 0 ? _ref1 : 'primary';
|
|
670
|
+
this.command = (_ref2 = props === null || props === void 0 ? void 0 : props.command) !== null && _ref2 !== void 0 ? _ref2 : 'view';
|
|
671
|
+
this.confirmMessage = (_ref3 = props === null || props === void 0 ? void 0 : props.confirmMessage) !== null && _ref3 !== void 0 ? _ref3 : undefined;
|
|
672
|
+
this.defaultState = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _ref4 !== void 0 ? _ref4 : 'default';
|
|
673
|
+
this.formKey = (_ref5 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref5 !== void 0 ? _ref5 : undefined;
|
|
738
674
|
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;
|
|
675
|
+
this.icon = (_ref6 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref6 !== void 0 ? _ref6 : 'iconliulan1';
|
|
676
|
+
this.needConfirm = (_ref7 = props === null || props === void 0 ? void 0 : props.needConfirm) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
677
|
+
this.openType = (_ref8 = props === null || props === void 0 ? void 0 : props.openType) !== null && _ref8 !== void 0 ? _ref8 : 'modal';
|
|
678
|
+
this.priorityProcess = (_ref9 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _ref9 !== void 0 ? _ref9 : true;
|
|
747
679
|
};
|
|
748
680
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
749
681
|
"use strict";
|
|
750
682
|
_class_call_check(this, CustomAttributeItem);
|
|
683
|
+
var _ref, _ref1, _ref2;
|
|
751
684
|
var _props_value;
|
|
752
685
|
_define_property(this, "name", void 0);
|
|
753
686
|
_define_property(this, "key", void 0);
|
|
754
687
|
_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) {
|
|
688
|
+
this.name = (_ref = props === null || props === void 0 ? void 0 : props.name) !== null && _ref !== void 0 ? _ref : '';
|
|
689
|
+
this.key = (_ref1 = props === null || props === void 0 ? void 0 : props.key) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
690
|
+
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
691
|
return new DisplayBoListItem(item);
|
|
762
|
-
})) !== null &&
|
|
692
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
763
693
|
};
|
|
764
694
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
765
695
|
"use strict";
|
|
@@ -767,14 +697,14 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
767
697
|
function SuperDataSourceBind(props) {
|
|
768
698
|
_class_call_check(this, SuperDataSourceBind);
|
|
769
699
|
var _this;
|
|
700
|
+
var _ref;
|
|
770
701
|
var _props_attributes;
|
|
771
702
|
_this = _call_super(this, SuperDataSourceBind, [
|
|
772
703
|
props
|
|
773
704
|
]), _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) {
|
|
705
|
+
_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
706
|
return new CustomAttributeItem(item);
|
|
777
|
-
})) !== null &&
|
|
707
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
778
708
|
return _this;
|
|
779
709
|
}
|
|
780
710
|
return SuperDataSourceBind;
|
|
@@ -785,16 +715,15 @@ export var OrganizationDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
785
715
|
function OrganizationDataSourceBind(props) {
|
|
786
716
|
_class_call_check(this, OrganizationDataSourceBind);
|
|
787
717
|
var _this;
|
|
718
|
+
var _ref, _ref1;
|
|
788
719
|
var _props_attributes;
|
|
789
720
|
_this = _call_super(this, OrganizationDataSourceBind, [
|
|
790
721
|
props
|
|
791
722
|
]), _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) {
|
|
723
|
+
_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
724
|
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 : '';
|
|
725
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
726
|
+
_this.formCode = (_ref1 = props === null || props === void 0 ? void 0 : props.formCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
798
727
|
return _this;
|
|
799
728
|
}
|
|
800
729
|
return OrganizationDataSourceBind;
|
|
@@ -805,12 +734,12 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
805
734
|
function TreeDataSourceBind(props) {
|
|
806
735
|
_class_call_check(this, TreeDataSourceBind);
|
|
807
736
|
var _this;
|
|
737
|
+
var _ref;
|
|
808
738
|
_this = _call_super(this, TreeDataSourceBind, [
|
|
809
739
|
props
|
|
810
740
|
]), _define_property(_this, "rootNode", void 0), _define_property(_this, "filterCode", void 0);
|
|
811
741
|
_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 : '';
|
|
742
|
+
_this.filterCode = (_ref = props === null || props === void 0 ? void 0 : props.filterCode) !== null && _ref !== void 0 ? _ref : '';
|
|
814
743
|
return _this;
|
|
815
744
|
}
|
|
816
745
|
return TreeDataSourceBind;
|
|
@@ -818,6 +747,7 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
818
747
|
var FillBind = function FillBind(props) {
|
|
819
748
|
"use strict";
|
|
820
749
|
_class_call_check(this, FillBind);
|
|
750
|
+
var _ref, _ref1, _ref2;
|
|
821
751
|
var _props_fillList;
|
|
822
752
|
/*
|
|
823
753
|
* 需要被填充的数据源
|
|
@@ -828,14 +758,11 @@ var FillBind = function FillBind(props) {
|
|
|
828
758
|
/*
|
|
829
759
|
* 执行填充的数据项和控件
|
|
830
760
|
* */ _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) {
|
|
761
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
762
|
+
this.appId = (_ref1 = props === null || props === void 0 ? void 0 : props.appId) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
763
|
+
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
764
|
return new MultistageFillingItem(item);
|
|
838
|
-
})) !== null &&
|
|
765
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
839
766
|
};
|
|
840
767
|
/**
|
|
841
768
|
* FillPayloadBind 填充配置
|
|
@@ -876,6 +803,7 @@ var FillBind = function FillBind(props) {
|
|
|
876
803
|
function FillBackBind(props) {
|
|
877
804
|
_class_call_check(this, FillBackBind);
|
|
878
805
|
var _this;
|
|
806
|
+
var _ref, _ref1;
|
|
879
807
|
_this = _call_super(this, FillBackBind, [
|
|
880
808
|
props
|
|
881
809
|
]), /**
|
|
@@ -887,10 +815,8 @@ var FillBind = function FillBind(props) {
|
|
|
887
815
|
* @defaultValue false
|
|
888
816
|
* @public
|
|
889
817
|
*/ _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;
|
|
818
|
+
_this.mode = (_ref = props === null || props === void 0 ? void 0 : props.mode) !== null && _ref !== void 0 ? _ref : 'current';
|
|
819
|
+
_this.multiple = (_ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
894
820
|
return _this;
|
|
895
821
|
}
|
|
896
822
|
return FillBackBind;
|
|
@@ -898,15 +824,13 @@ var FillBind = function FillBind(props) {
|
|
|
898
824
|
export var Language = function Language(props) {
|
|
899
825
|
"use strict";
|
|
900
826
|
_class_call_check(this, Language);
|
|
827
|
+
var _ref, _ref1, _ref2;
|
|
901
828
|
_define_property(this, "zh", void 0);
|
|
902
829
|
_define_property(this, "en", void 0);
|
|
903
830
|
_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 : '';
|
|
831
|
+
this.zh = (_ref = props === null || props === void 0 ? void 0 : props.zh) !== null && _ref !== void 0 ? _ref : '';
|
|
832
|
+
this.en = (_ref1 = props === null || props === void 0 ? void 0 : props.en) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
833
|
+
this.ja = (_ref2 = props === null || props === void 0 ? void 0 : props.ja) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
910
834
|
};
|
|
911
835
|
/**
|
|
912
836
|
* 正则校验
|
|
@@ -914,6 +838,7 @@ export var Language = function Language(props) {
|
|
|
914
838
|
*/ export var RegularRules = function RegularRules(props) {
|
|
915
839
|
"use strict";
|
|
916
840
|
_class_call_check(this, RegularRules);
|
|
841
|
+
var _ref, _ref1, _ref2;
|
|
917
842
|
/**
|
|
918
843
|
* 内置模版
|
|
919
844
|
* @defaultValue ''
|
|
@@ -926,12 +851,9 @@ export var Language = function Language(props) {
|
|
|
926
851
|
* 校验错误提示信息
|
|
927
852
|
* @defaultValue ''
|
|
928
853
|
*/ _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 : '';
|
|
854
|
+
this.stencilName = (_ref = props === null || props === void 0 ? void 0 : props.stencilName) !== null && _ref !== void 0 ? _ref : '';
|
|
855
|
+
this.expression = (_ref1 = props === null || props === void 0 ? void 0 : props.expression) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
856
|
+
this.errMessage = (_ref2 = props === null || props === void 0 ? void 0 : props.errMessage) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
935
857
|
};
|
|
936
858
|
/**
|
|
937
859
|
* 选项设置-自定义选项
|
|
@@ -939,6 +861,7 @@ export var Language = function Language(props) {
|
|
|
939
861
|
*/ export var OptionSetting = function OptionSetting(props) {
|
|
940
862
|
"use strict";
|
|
941
863
|
_class_call_check(this, OptionSetting);
|
|
864
|
+
var _ref, _ref1, _ref2;
|
|
942
865
|
_define_property(this, "id", void 0);
|
|
943
866
|
/**
|
|
944
867
|
* 显示值
|
|
@@ -950,12 +873,9 @@ export var Language = function Language(props) {
|
|
|
950
873
|
* @defaultValue this.label
|
|
951
874
|
* @public
|
|
952
875
|
*/ _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;
|
|
876
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId(8);
|
|
877
|
+
this.label = (_ref1 = props === null || props === void 0 ? void 0 : props.label) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
878
|
+
this.value = (_ref2 = props === null || props === void 0 ? void 0 : props.value) !== null && _ref2 !== void 0 ? _ref2 : this.label;
|
|
959
879
|
};
|
|
960
880
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
961
881
|
"use strict";
|
|
@@ -963,13 +883,12 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
963
883
|
function ImageOptionSetting(props) {
|
|
964
884
|
_class_call_check(this, ImageOptionSetting);
|
|
965
885
|
var _this;
|
|
886
|
+
var _ref, _ref1;
|
|
966
887
|
_this = _call_super(this, ImageOptionSetting, [
|
|
967
888
|
props
|
|
968
889
|
]), _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';
|
|
890
|
+
_this.image = (_ref = props === null || props === void 0 ? void 0 : props.image) !== null && _ref !== void 0 ? _ref : '';
|
|
891
|
+
_this.type = (_ref1 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref1 !== void 0 ? _ref1 : 'src';
|
|
973
892
|
return _this;
|
|
974
893
|
}
|
|
975
894
|
return ImageOptionSetting;
|
|
@@ -980,34 +899,33 @@ export var AiOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
980
899
|
function AiOptionSetting(props) {
|
|
981
900
|
_class_call_check(this, AiOptionSetting);
|
|
982
901
|
var _this;
|
|
902
|
+
var _ref, _ref1;
|
|
983
903
|
_this = _call_super(this, AiOptionSetting, [
|
|
984
904
|
props
|
|
985
905
|
]), _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;
|
|
906
|
+
_this.cueWord = (_ref = props === null || props === void 0 ? void 0 : props.cueWord) !== null && _ref !== void 0 ? _ref : '';
|
|
907
|
+
_this.checked = (_ref1 = props === null || props === void 0 ? void 0 : props.checked) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
990
908
|
return _this;
|
|
991
909
|
}
|
|
992
910
|
return AiOptionSetting;
|
|
993
911
|
}(OptionSetting);
|
|
994
912
|
export function initOptions(options) {
|
|
995
|
-
var
|
|
996
|
-
return (
|
|
913
|
+
var _ref;
|
|
914
|
+
return (_ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
997
915
|
return new OptionSetting(item);
|
|
998
|
-
})) !== null &&
|
|
916
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
999
917
|
}
|
|
1000
918
|
export function initImageOptions(options) {
|
|
1001
|
-
var
|
|
1002
|
-
return (
|
|
919
|
+
var _ref;
|
|
920
|
+
return (_ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
1003
921
|
return new ImageOptionSetting(item);
|
|
1004
|
-
})) !== null &&
|
|
922
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
1005
923
|
}
|
|
1006
924
|
export function initAiOptions(options) {
|
|
1007
|
-
var
|
|
1008
|
-
return (
|
|
925
|
+
var _ref;
|
|
926
|
+
return (_ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
1009
927
|
return new AiOptionSetting(item);
|
|
1010
|
-
})) !== null &&
|
|
928
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
1011
929
|
}
|
|
1012
930
|
/**
|
|
1013
931
|
* 对象类型数据绑定配置
|
|
@@ -1042,6 +960,7 @@ export function initAiOptions(options) {
|
|
|
1042
960
|
*/ export var AmountValue = function AmountValue(props) {
|
|
1043
961
|
"use strict";
|
|
1044
962
|
_class_call_check(this, AmountValue);
|
|
963
|
+
var _ref, _ref1;
|
|
1045
964
|
/**
|
|
1046
965
|
* 金额值
|
|
1047
966
|
* @defaultValue ''
|
|
@@ -1050,10 +969,8 @@ export function initAiOptions(options) {
|
|
|
1050
969
|
* 货币值
|
|
1051
970
|
* @defaultValue 'CNY'
|
|
1052
971
|
*/ _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";
|
|
972
|
+
this.amount = (_ref = props === null || props === void 0 ? void 0 : props.amount) !== null && _ref !== void 0 ? _ref : '';
|
|
973
|
+
this.currency = (_ref1 = props === null || props === void 0 ? void 0 : props.currency) !== null && _ref1 !== void 0 ? _ref1 : "CNY";
|
|
1057
974
|
};
|
|
1058
975
|
/**
|
|
1059
976
|
* 日期区间数据绑定项
|
|
@@ -1081,6 +998,7 @@ export function initAiOptions(options) {
|
|
|
1081
998
|
*/ export var RangeDateValue = function RangeDateValue(props) {
|
|
1082
999
|
"use strict";
|
|
1083
1000
|
_class_call_check(this, RangeDateValue);
|
|
1001
|
+
var _ref, _ref1;
|
|
1084
1002
|
/**
|
|
1085
1003
|
* 开始日期值
|
|
1086
1004
|
* @defaultValue ''
|
|
@@ -1089,10 +1007,8 @@ export function initAiOptions(options) {
|
|
|
1089
1007
|
* 结束日期值
|
|
1090
1008
|
* @defaultValue ''
|
|
1091
1009
|
*/ _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 : '';
|
|
1010
|
+
this.min = (_ref = props === null || props === void 0 ? void 0 : props.min) !== null && _ref !== void 0 ? _ref : '';
|
|
1011
|
+
this.max = (_ref1 = props === null || props === void 0 ? void 0 : props.max) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1096
1012
|
};
|
|
1097
1013
|
/**
|
|
1098
1014
|
* 地址值
|
|
@@ -1100,6 +1016,7 @@ export function initAiOptions(options) {
|
|
|
1100
1016
|
*/ export var AddressValue = function AddressValue(props) {
|
|
1101
1017
|
"use strict";
|
|
1102
1018
|
_class_call_check(this, AddressValue);
|
|
1019
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
1103
1020
|
/**
|
|
1104
1021
|
* 市编码
|
|
1105
1022
|
* @defaultValue ''
|
|
@@ -1124,18 +1041,12 @@ export function initAiOptions(options) {
|
|
|
1124
1041
|
* 省显示文字
|
|
1125
1042
|
* @defaultValue ''
|
|
1126
1043
|
*/ _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 : '';
|
|
1044
|
+
this.city = (_ref = props === null || props === void 0 ? void 0 : props.city) !== null && _ref !== void 0 ? _ref : '';
|
|
1045
|
+
this.cityDisplay = (_ref1 = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1046
|
+
this.district = (_ref2 = props === null || props === void 0 ? void 0 : props.district) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
1047
|
+
this.districtDisplay = (_ref3 = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
1048
|
+
this.province = (_ref4 = props === null || props === void 0 ? void 0 : props.province) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
1049
|
+
this.provinceDisplay = (_ref5 = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && _ref5 !== void 0 ? _ref5 : '';
|
|
1139
1050
|
};
|
|
1140
1051
|
/**
|
|
1141
1052
|
* 计算公式数据绑定项
|
|
@@ -1163,6 +1074,7 @@ export function initAiOptions(options) {
|
|
|
1163
1074
|
*/ export var CalcValue = function CalcValue(props) {
|
|
1164
1075
|
"use strict";
|
|
1165
1076
|
_class_call_check(this, CalcValue);
|
|
1077
|
+
var _ref, _ref1;
|
|
1166
1078
|
/**
|
|
1167
1079
|
* 计算结果值
|
|
1168
1080
|
* @defaultValue 0
|
|
@@ -1171,10 +1083,8 @@ export function initAiOptions(options) {
|
|
|
1171
1083
|
* 单位
|
|
1172
1084
|
* @defaultValue ''
|
|
1173
1085
|
*/ _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 : '';
|
|
1086
|
+
this.result = (_ref = props === null || props === void 0 ? void 0 : props.result) !== null && _ref !== void 0 ? _ref : 0;
|
|
1087
|
+
this.unit = (_ref1 = props === null || props === void 0 ? void 0 : props.unit) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1178
1088
|
};
|
|
1179
1089
|
// 币种类型
|
|
1180
1090
|
export var AMOUNT_TYPE = /*#__PURE__*/ function(AMOUNT_TYPE) {
|
|
@@ -1271,6 +1181,7 @@ export var PAGE_STATUS = /*#__PURE__*/ function(PAGE_STATUS) {
|
|
|
1271
1181
|
*/ export var OperationItem = function OperationItem(props) {
|
|
1272
1182
|
"use strict";
|
|
1273
1183
|
_class_call_check(this, OperationItem);
|
|
1184
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
1274
1185
|
/**
|
|
1275
1186
|
* 是否显示
|
|
1276
1187
|
* @defaultValue true
|
|
@@ -1297,36 +1208,28 @@ export var PAGE_STATUS = /*#__PURE__*/ function(PAGE_STATUS) {
|
|
|
1297
1208
|
* @public
|
|
1298
1209
|
*/ _define_property(this, "openType", void 0);
|
|
1299
1210
|
_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;
|
|
1211
|
+
this.isShow = (_ref = props === null || props === void 0 ? void 0 : props.isShow) !== null && _ref !== void 0 ? _ref : true;
|
|
1212
|
+
this.content = (_ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1213
|
+
this.formKey = (_ref2 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
1214
|
+
this.openType = (_ref3 = props === null || props === void 0 ? void 0 : props.openType) !== null && _ref3 !== void 0 ? _ref3 : 'modal';
|
|
1215
|
+
this.type = (_ref4 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
1216
|
+
this.priorityProcess = (_ref5 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
1312
1217
|
};
|
|
1313
1218
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
1314
1219
|
"use strict";
|
|
1315
1220
|
_class_call_check(this, ViewOperationItem);
|
|
1221
|
+
var _ref, _ref1, _ref2;
|
|
1316
1222
|
var _props_headers;
|
|
1317
1223
|
_define_property(this, "id", void 0);
|
|
1318
1224
|
_define_property(this, "title", void 0);
|
|
1319
1225
|
_define_property(this, "filters", void 0);
|
|
1320
1226
|
_define_property(this, "viewFilters", void 0);
|
|
1321
1227
|
_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) {
|
|
1228
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId(8);
|
|
1229
|
+
this.title = (_ref1 = props === null || props === void 0 ? void 0 : props.title) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1230
|
+
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
1231
|
return new ListBindHeaderItem(item);
|
|
1329
|
-
})) !== null &&
|
|
1232
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
1330
1233
|
callFiltersAndOrders.call(this, props);
|
|
1331
1234
|
};
|
|
1332
1235
|
/**
|
|
@@ -1334,36 +1237,33 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
1334
1237
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
1335
1238
|
"use strict";
|
|
1336
1239
|
_class_call_check(this, CustomPermissionItem);
|
|
1240
|
+
var _props_key, _props_caption;
|
|
1337
1241
|
/**
|
|
1338
1242
|
* 人工输入的权限key
|
|
1339
1243
|
*/ _define_property(this, "key", void 0);
|
|
1340
1244
|
/**
|
|
1341
1245
|
* 权限名称
|
|
1342
1246
|
*/ _define_property(this, "caption", void 0);
|
|
1343
|
-
var _props_key;
|
|
1344
1247
|
this.key = (_props_key = props.key) !== null && _props_key !== void 0 ? _props_key : genNonDuplicateId(8);
|
|
1345
|
-
var _props_caption;
|
|
1346
1248
|
this.caption = (_props_caption = props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
|
|
1347
1249
|
};
|
|
1348
1250
|
export var BaseStyle = function BaseStyle(props) {
|
|
1349
1251
|
"use strict";
|
|
1350
1252
|
_class_call_check(this, BaseStyle);
|
|
1253
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
1351
1254
|
_define_property(this, "width", void 0);
|
|
1352
1255
|
_define_property(this, "height", void 0);
|
|
1353
1256
|
_define_property(this, "widthConfig", void 0);
|
|
1354
1257
|
_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';
|
|
1258
|
+
this.width = (_ref = props === null || props === void 0 ? void 0 : props.width) !== null && _ref !== void 0 ? _ref : '';
|
|
1259
|
+
this.height = (_ref1 = props === null || props === void 0 ? void 0 : props.height) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1260
|
+
this.widthConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && _ref2 !== void 0 ? _ref2 : 'fill';
|
|
1261
|
+
this.heightConfig = (_ref3 = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && _ref3 !== void 0 ? _ref3 : 'fill';
|
|
1363
1262
|
};
|
|
1364
1263
|
export var OptObject = function OptObject(props) {
|
|
1365
1264
|
"use strict";
|
|
1366
1265
|
_class_call_check(this, OptObject);
|
|
1266
|
+
var _ref, _ref1;
|
|
1367
1267
|
/**
|
|
1368
1268
|
* 操作项编码
|
|
1369
1269
|
* @defaultValue ''
|
|
@@ -1374,14 +1274,13 @@ export var OptObject = function OptObject(props) {
|
|
|
1374
1274
|
* @defaultValue ''
|
|
1375
1275
|
* @public
|
|
1376
1276
|
*/ _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 : '';
|
|
1277
|
+
this.optCode = (_ref = props === null || props === void 0 ? void 0 : props.optCode) !== null && _ref !== void 0 ? _ref : '';
|
|
1278
|
+
this.optType = (_ref1 = props === null || props === void 0 ? void 0 : props.optType) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1381
1279
|
};
|
|
1382
1280
|
export var RowStyleRule = function RowStyleRule(props) {
|
|
1383
1281
|
"use strict";
|
|
1384
1282
|
_class_call_check(this, RowStyleRule);
|
|
1283
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
1385
1284
|
var _props_filters, _props_settings;
|
|
1386
1285
|
/**
|
|
1387
1286
|
* 规则编号
|
|
@@ -1401,26 +1300,23 @@ export var RowStyleRule = function RowStyleRule(props) {
|
|
|
1401
1300
|
*/ _define_property(this, "filters", void 0);
|
|
1402
1301
|
// 过滤
|
|
1403
1302
|
_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) {
|
|
1303
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId();
|
|
1304
|
+
this.name = (_ref1 = props === null || props === void 0 ? void 0 : props.name) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1305
|
+
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
1306
|
if (item.children !== undefined) {
|
|
1411
1307
|
return new FieldFilterConditions(item);
|
|
1412
1308
|
}
|
|
1413
1309
|
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) {
|
|
1310
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
1311
|
+
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
1312
|
return new RowStyleSettings(item);
|
|
1418
|
-
})) !== null &&
|
|
1313
|
+
})) !== null && _ref3 !== void 0 ? _ref3 : [] : [];
|
|
1419
1314
|
this.script = props === null || props === void 0 ? void 0 : props.script;
|
|
1420
1315
|
};
|
|
1421
1316
|
export var RowStyleSettings = function RowStyleSettings(props) {
|
|
1422
1317
|
"use strict";
|
|
1423
1318
|
_class_call_check(this, RowStyleSettings);
|
|
1319
|
+
var _props_type, _props_fieldCodes, _props_color, _props_scope;
|
|
1424
1320
|
/**
|
|
1425
1321
|
* 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
|
|
1426
1322
|
* @defaultValue 'theme'
|
|
@@ -1435,36 +1331,31 @@ export var RowStyleSettings = function RowStyleSettings(props) {
|
|
|
1435
1331
|
/**
|
|
1436
1332
|
* 作用范围,row整行,col整列
|
|
1437
1333
|
*/ _define_property(this, "scope", void 0);
|
|
1438
|
-
var _props_type;
|
|
1439
1334
|
this.type = (_props_type = props.type) !== null && _props_type !== void 0 ? _props_type : 'background';
|
|
1440
|
-
var _props_fieldCodes;
|
|
1441
1335
|
this.fieldCodes = (_props_fieldCodes = props.fieldCodes) !== null && _props_fieldCodes !== void 0 ? _props_fieldCodes : [];
|
|
1442
|
-
var _props_color;
|
|
1443
1336
|
this.color = (_props_color = props.color) !== null && _props_color !== void 0 ? _props_color : 'theme';
|
|
1444
|
-
var _props_scope;
|
|
1445
1337
|
this.scope = (_props_scope = props.scope) !== null && _props_scope !== void 0 ? _props_scope : 'row';
|
|
1446
1338
|
};
|
|
1447
1339
|
export var RowStyle = function RowStyle(props) {
|
|
1448
1340
|
"use strict";
|
|
1449
1341
|
_class_call_check(this, RowStyle);
|
|
1342
|
+
var _ref, _ref1, _ref2;
|
|
1450
1343
|
var _props_rules;
|
|
1451
1344
|
_define_property(this, "type", void 0);
|
|
1452
1345
|
_define_property(this, "interval", void 0);
|
|
1453
1346
|
_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 : {
|
|
1347
|
+
this.type = (_ref = props === null || props === void 0 ? void 0 : props.type) !== null && _ref !== void 0 ? _ref : 'none';
|
|
1348
|
+
this.interval = (_ref1 = props === null || props === void 0 ? void 0 : props.interval) !== null && _ref1 !== void 0 ? _ref1 : {
|
|
1458
1349
|
color: ''
|
|
1459
1350
|
};
|
|
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) {
|
|
1351
|
+
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
1352
|
return new RowStyleRule(item);
|
|
1463
|
-
})) !== null &&
|
|
1353
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [] : [];
|
|
1464
1354
|
};
|
|
1465
1355
|
export var ListTreeData = function ListTreeData(props) {
|
|
1466
1356
|
"use strict";
|
|
1467
1357
|
_class_call_check(this, ListTreeData);
|
|
1358
|
+
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
1468
1359
|
// 是否默认展开分组 -1:全展开,0:不展开
|
|
1469
1360
|
_define_property(this, "groupDefaultExpanded", void 0);
|
|
1470
1361
|
// 是否显示每个分组行数统计
|
|
@@ -1475,23 +1366,18 @@ export var ListTreeData = function ListTreeData(props) {
|
|
|
1475
1366
|
_define_property(this, "groupHeaderName", void 0);
|
|
1476
1367
|
// 显示页脚统计按钮,当去掉序号列时能支持统计
|
|
1477
1368
|
_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;
|
|
1369
|
+
this.groupDefaultExpanded = (_ref = props === null || props === void 0 ? void 0 : props.groupDefaultExpanded) !== null && _ref !== void 0 ? _ref : false;
|
|
1370
|
+
this.suppressCount = (_ref1 = props === null || props === void 0 ? void 0 : props.suppressCount) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
1371
|
+
this.groupFields = (_ref2 = props === null || props === void 0 ? void 0 : props.groupFields) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
1372
|
+
this.groupHeaderName = (_ref3 = props === null || props === void 0 ? void 0 : props.groupHeaderName) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
1373
|
+
this.showFooterStatistics = (_ref4 = props === null || props === void 0 ? void 0 : props.showFooterStatistics) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
1488
1374
|
};
|
|
1489
1375
|
export var MasterDetail = function MasterDetail(props) {
|
|
1490
1376
|
"use strict";
|
|
1491
1377
|
_class_call_check(this, MasterDetail);
|
|
1378
|
+
var _ref;
|
|
1492
1379
|
_define_property(this, "datasourceBind", void 0);
|
|
1493
1380
|
_define_property(this, "headers", void 0);
|
|
1494
1381
|
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 : [];
|
|
1382
|
+
this.headers = (_ref = props === null || props === void 0 ? void 0 : props.headers) !== null && _ref !== void 0 ? _ref : [];
|
|
1497
1383
|
};
|