@byteluck-fe/model-driven-core 2.5.0-beta.8 → 2.5.0-beta.9
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/api-doc-index.js +4 -4
- package/dist/esm/common/BaseControl/designer.js +96 -215
- package/dist/esm/common/BaseControl/index.js +7 -7
- package/dist/esm/common/BaseControl/property.js +14 -42
- package/dist/esm/common/BaseControl/runtime.js +20 -41
- package/dist/esm/common/ColumnControl/designer.js +5 -19
- package/dist/esm/common/ColumnControl/index.js +6 -6
- package/dist/esm/common/ColumnControl/property.js +47 -95
- package/dist/esm/common/ColumnControl/runtime.js +5 -19
- package/dist/esm/common/ControlArray.js +8 -8
- package/dist/esm/common/FormControl/designer.js +10 -25
- package/dist/esm/common/FormControl/index.js +6 -6
- package/dist/esm/common/FormControl/property.js +87 -152
- package/dist/esm/common/FormControl/runtime.js +5 -20
- package/dist/esm/common/LayoutControl/designer.js +30 -158
- package/dist/esm/common/LayoutControl/index.js +6 -6
- package/dist/esm/common/LayoutControl/property.js +3 -3
- package/dist/esm/common/LayoutControl/runtime.js +7 -22
- package/dist/esm/common/ListControl/designer.js +26 -151
- package/dist/esm/common/ListControl/index.js +6 -6
- package/dist/esm/common/ListControl/property.js +5 -19
- package/dist/esm/common/ListControl/runtime.js +7 -22
- package/dist/esm/common/SearchViewControl/designer.js +5 -19
- package/dist/esm/common/SearchViewControl/index.js +6 -6
- package/dist/esm/common/SearchViewControl/property.js +4 -18
- package/dist/esm/common/SearchViewControl/runtime.js +5 -19
- package/dist/esm/common/Validator.js +5 -5
- package/dist/esm/common/WrapControl/designer.js +5 -19
- package/dist/esm/common/WrapControl/index.js +6 -6
- package/dist/esm/common/WrapControl/property.js +3 -3
- package/dist/esm/common/WrapControl/runtime.js +5 -19
- package/dist/esm/common/controlHooksEmitter.js +1 -1
- package/dist/esm/common/index.js +12 -12
- package/dist/esm/common/initLinkOperationRules.js +6 -6
- package/dist/esm/common/initOptionAndDataSourceRules.js +82 -82
- package/dist/esm/framework/RegisterControls.js +15 -27
- package/dist/esm/framework/index.js +325 -744
- package/dist/esm/index.js +3 -3
- package/dist/index.umd.js +1 -1
- package/dist/types/common/Validator.d.ts +1 -1
- package/dist/types/common/controlHooksEmitter.d.ts +1 -1
- package/dist/types/type.d.ts +23 -23
- package/package.json +3 -3
|
@@ -9,19 +9,6 @@ function _classCallCheck(instance, Constructor) {
|
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function _defineProperty(obj, key, value) {
|
|
13
|
-
if (key in obj) {
|
|
14
|
-
Object.defineProperty(obj, key, {
|
|
15
|
-
value: value,
|
|
16
|
-
enumerable: true,
|
|
17
|
-
configurable: true,
|
|
18
|
-
writable: true
|
|
19
|
-
});
|
|
20
|
-
} else {
|
|
21
|
-
obj[key] = value;
|
|
22
|
-
}
|
|
23
|
-
return obj;
|
|
24
|
-
}
|
|
25
12
|
function _getPrototypeOf(o) {
|
|
26
13
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
27
14
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -43,7 +30,7 @@ function _inherits(subClass, superClass) {
|
|
|
43
30
|
}
|
|
44
31
|
function _instanceof(left, right) {
|
|
45
32
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
46
|
-
return
|
|
33
|
+
return right[Symbol.hasInstance](left);
|
|
47
34
|
} else {
|
|
48
35
|
return left instanceof right;
|
|
49
36
|
}
|
|
@@ -89,47 +76,29 @@ function _createSuper(Derived) {
|
|
|
89
76
|
return _possibleConstructorReturn(this, result);
|
|
90
77
|
};
|
|
91
78
|
}
|
|
92
|
-
import { FieldTypes, genNonDuplicateId } from
|
|
93
|
-
export * from
|
|
79
|
+
import { FieldTypes, genNonDuplicateId } from '@byteluck-fe/model-driven-shared';
|
|
80
|
+
export * from './RegisterControls';
|
|
94
81
|
/**
|
|
95
82
|
* 数据绑定配置
|
|
96
83
|
* @public
|
|
97
84
|
*/ export var DataBind = function DataBind(props) {
|
|
98
85
|
"use strict";
|
|
99
86
|
_classCallCheck(this, DataBind);
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
* 字段编码
|
|
107
|
-
* @defaultValue ''
|
|
108
|
-
* @public
|
|
109
|
-
*/ _defineProperty(this, "fieldCode", void 0);
|
|
110
|
-
/**
|
|
111
|
-
* 字段类型
|
|
112
|
-
* @defaultValue ''
|
|
113
|
-
* @public
|
|
114
|
-
*/ _defineProperty(this, "fieldType", void 0);
|
|
115
|
-
var _props_dataCode;
|
|
116
|
-
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
117
|
-
var _props_fieldCode;
|
|
118
|
-
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
119
|
-
var _props_fieldType;
|
|
120
|
-
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : "";
|
|
87
|
+
var ref;
|
|
88
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : '';
|
|
89
|
+
var ref1;
|
|
90
|
+
this.fieldCode = (ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref1 !== void 0 ? ref1 : '';
|
|
91
|
+
var ref2;
|
|
92
|
+
this.fieldType = (ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref2 !== void 0 ? ref2 : '';
|
|
121
93
|
};
|
|
122
94
|
export var AutoWidth = function AutoWidth(props) {
|
|
123
95
|
"use strict";
|
|
124
96
|
_classCallCheck(this, AutoWidth);
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
_defineProperty(this, "flex", void 0);
|
|
128
|
-
var _props_minWidth;
|
|
129
|
-
this.minWidth = (_props_minWidth = props === null || props === void 0 ? void 0 : props.minWidth) !== null && _props_minWidth !== void 0 ? _props_minWidth : 150;
|
|
97
|
+
var ref;
|
|
98
|
+
this.minWidth = (ref = props === null || props === void 0 ? void 0 : props.minWidth) !== null && ref !== void 0 ? ref : 150;
|
|
130
99
|
this.maxWidth = props === null || props === void 0 ? void 0 : props.maxWidth;
|
|
131
|
-
var
|
|
132
|
-
this.flex = (
|
|
100
|
+
var ref3;
|
|
101
|
+
this.flex = (ref3 = props === null || props === void 0 ? void 0 : props.flex) !== null && ref3 !== void 0 ? ref3 : 1;
|
|
133
102
|
};
|
|
134
103
|
export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
135
104
|
"use strict";
|
|
@@ -139,12 +108,10 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
139
108
|
_classCallCheck(this, MetaWidth);
|
|
140
109
|
var _this;
|
|
141
110
|
_this = _super.call(this, props);
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
var
|
|
145
|
-
_this.
|
|
146
|
-
var _props_widthType;
|
|
147
|
-
_this.widthType = (_props_widthType = props === null || props === void 0 ? void 0 : props.widthType) !== null && _props_widthType !== void 0 ? _props_widthType : "auto";
|
|
111
|
+
var ref;
|
|
112
|
+
_this.width = (ref = props === null || props === void 0 ? void 0 : props.width) !== null && ref !== void 0 ? ref : 240;
|
|
113
|
+
var ref4;
|
|
114
|
+
_this.widthType = (ref4 = props === null || props === void 0 ? void 0 : props.widthType) !== null && ref4 !== void 0 ? ref4 : 'auto';
|
|
148
115
|
return _this;
|
|
149
116
|
}
|
|
150
117
|
return MetaWidth;
|
|
@@ -152,8 +119,6 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
152
119
|
export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
153
120
|
"use strict";
|
|
154
121
|
_classCallCheck(this, MetaAutoWidth);
|
|
155
|
-
_defineProperty(this, "pc", void 0);
|
|
156
|
-
_defineProperty(this, "mobile", void 0);
|
|
157
122
|
this.pc = new MetaWidth(props === null || props === void 0 ? void 0 : props.pc);
|
|
158
123
|
this.mobile = (props === null || props === void 0 ? void 0 : props.mobile) ? new MetaWidth(props === null || props === void 0 ? void 0 : props.mobile) : new MetaWidth({
|
|
159
124
|
width: 130,
|
|
@@ -163,25 +128,20 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
163
128
|
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
164
129
|
"use strict";
|
|
165
130
|
_classCallCheck(this, DataStorageDoc);
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
var
|
|
169
|
-
this.
|
|
170
|
-
var _props_customOptions;
|
|
171
|
-
this.customOptions = (_props_customOptions = props === null || props === void 0 ? void 0 : props.customOptions) !== null && _props_customOptions !== void 0 ? _props_customOptions : [];
|
|
131
|
+
var ref;
|
|
132
|
+
this.type = (ref = props === null || props === void 0 ? void 0 : props.type) !== null && ref !== void 0 ? ref : 'firstThree';
|
|
133
|
+
var ref5;
|
|
134
|
+
this.customOptions = (ref5 = props === null || props === void 0 ? void 0 : props.customOptions) !== null && ref5 !== void 0 ? ref5 : [];
|
|
172
135
|
};
|
|
173
136
|
export var FormBind = function FormBind(props) {
|
|
174
137
|
"use strict";
|
|
175
138
|
_classCallCheck(this, FormBind);
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
183
|
-
var _props_appId;
|
|
184
|
-
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
139
|
+
var ref;
|
|
140
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : '';
|
|
141
|
+
var ref6;
|
|
142
|
+
this.formKey = (ref6 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref6 !== void 0 ? ref6 : '';
|
|
143
|
+
var ref7;
|
|
144
|
+
this.appId = (ref7 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref7 !== void 0 ? ref7 : '';
|
|
185
145
|
};
|
|
186
146
|
export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
187
147
|
"use strict";
|
|
@@ -191,65 +151,42 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
191
151
|
_classCallCheck(this, FormSelectBind);
|
|
192
152
|
var _this;
|
|
193
153
|
_this = _super.call(this, props);
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
_this.primaryControlId = (_props_primaryControlId = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && _props_primaryControlId !== void 0 ? _props_primaryControlId : "";
|
|
154
|
+
var ref;
|
|
155
|
+
_this.primaryControlId = (ref = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && ref !== void 0 ? ref : '';
|
|
197
156
|
return _this;
|
|
198
157
|
}
|
|
199
158
|
return FormSelectBind;
|
|
200
159
|
}(FormBind);
|
|
201
|
-
|
|
202
|
-
* 列表绑定字段项
|
|
203
|
-
* @public
|
|
204
|
-
*/ var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
160
|
+
var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
205
161
|
"use strict";
|
|
206
162
|
_classCallCheck(this, ListBindHeaderItem);
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
* @defaultValue ''
|
|
210
|
-
*/ _defineProperty(this, "fieldCode", void 0);
|
|
211
|
-
var _props_fieldCode;
|
|
212
|
-
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
163
|
+
var ref;
|
|
164
|
+
this.fieldCode = (ref = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref !== void 0 ? ref : '';
|
|
213
165
|
};
|
|
214
166
|
/**
|
|
215
167
|
* 列表绑定配置
|
|
216
168
|
*/ export var ListBind = function ListBind(props) {
|
|
217
169
|
"use strict";
|
|
218
170
|
_classCallCheck(this, ListBind);
|
|
219
|
-
var
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
* @public
|
|
227
|
-
*/ _defineProperty(this, "formKey", void 0);
|
|
228
|
-
/**
|
|
229
|
-
* 显示字段
|
|
230
|
-
* @public
|
|
231
|
-
*/ _defineProperty(this, "headers", void 0);
|
|
232
|
-
var _props_appId;
|
|
233
|
-
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
234
|
-
var _props_formKey;
|
|
235
|
-
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
236
|
-
var _props_headers_map;
|
|
237
|
-
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) {
|
|
171
|
+
var ref;
|
|
172
|
+
var ref8;
|
|
173
|
+
this.appId = (ref8 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref8 !== void 0 ? ref8 : '';
|
|
174
|
+
var ref9;
|
|
175
|
+
this.formKey = (ref9 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref9 !== void 0 ? ref9 : '';
|
|
176
|
+
var ref10;
|
|
177
|
+
this.headers = (ref10 = props === null || props === void 0 ? void 0 : (ref = props.headers) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
238
178
|
return new ListBindHeaderItem(item);
|
|
239
|
-
})) !== null &&
|
|
179
|
+
})) !== null && ref10 !== void 0 ? ref10 : [];
|
|
240
180
|
};
|
|
241
181
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
242
182
|
"use strict";
|
|
243
183
|
_classCallCheck(this, FieldBindItem);
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
251
|
-
var _props_fieldType;
|
|
252
|
-
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : FieldTypes.VARCHAR;
|
|
184
|
+
var ref;
|
|
185
|
+
this.fieldName = (ref = props === null || props === void 0 ? void 0 : props.fieldName) !== null && ref !== void 0 ? ref : '';
|
|
186
|
+
var ref11;
|
|
187
|
+
this.fieldCode = (ref11 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref11 !== void 0 ? ref11 : '';
|
|
188
|
+
var ref12;
|
|
189
|
+
this.fieldType = (ref12 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref12 !== void 0 ? ref12 : FieldTypes.VARCHAR;
|
|
253
190
|
};
|
|
254
191
|
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
255
192
|
"use strict";
|
|
@@ -259,18 +196,14 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
259
196
|
_classCallCheck(this, SubListItem);
|
|
260
197
|
var _this;
|
|
261
198
|
_this = _super.call(this, props);
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
var
|
|
267
|
-
_this.
|
|
268
|
-
var
|
|
269
|
-
_this.
|
|
270
|
-
var _props_isOpenFilter;
|
|
271
|
-
_this.isOpenFilter = (_props_isOpenFilter = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && _props_isOpenFilter !== void 0 ? _props_isOpenFilter : false;
|
|
272
|
-
var _props_filters;
|
|
273
|
-
_this.filters = (_props_filters = props === null || props === void 0 ? void 0 : props.filters) !== null && _props_filters !== void 0 ? _props_filters : [];
|
|
199
|
+
var ref;
|
|
200
|
+
_this.title = (ref = props === null || props === void 0 ? void 0 : props.title) !== null && ref !== void 0 ? ref : '';
|
|
201
|
+
var ref13;
|
|
202
|
+
_this.svcCode = (ref13 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && ref13 !== void 0 ? ref13 : '';
|
|
203
|
+
var ref14;
|
|
204
|
+
_this.isOpenFilter = (ref14 = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && ref14 !== void 0 ? ref14 : false;
|
|
205
|
+
var ref15;
|
|
206
|
+
_this.filters = (ref15 = props === null || props === void 0 ? void 0 : props.filters) !== null && ref15 !== void 0 ? ref15 : [];
|
|
274
207
|
return _this;
|
|
275
208
|
}
|
|
276
209
|
return SubListItem;
|
|
@@ -278,92 +211,64 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
278
211
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
279
212
|
"use strict";
|
|
280
213
|
_classCallCheck(this, SubListPageConfig);
|
|
281
|
-
var
|
|
282
|
-
|
|
283
|
-
_defineProperty(this, "formBind", void 0);
|
|
284
|
-
_defineProperty(this, "displayFields", void 0);
|
|
285
|
-
_defineProperty(this, "sublists", void 0);
|
|
214
|
+
var ref, ref16;
|
|
215
|
+
this.type = 'sublist-page';
|
|
286
216
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
287
|
-
var
|
|
288
|
-
this.displayFields = (
|
|
217
|
+
var ref17;
|
|
218
|
+
this.displayFields = (ref17 = props === null || props === void 0 ? void 0 : (ref = props.displayFields) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
289
219
|
return new FieldBindItem(item);
|
|
290
|
-
})) !== null &&
|
|
291
|
-
var
|
|
292
|
-
this.sublists = (
|
|
220
|
+
})) !== null && ref17 !== void 0 ? ref17 : [];
|
|
221
|
+
var ref18;
|
|
222
|
+
this.sublists = (ref18 = props === null || props === void 0 ? void 0 : (ref16 = props.sublists) === null || ref16 === void 0 ? void 0 : ref16.map(function(item) {
|
|
293
223
|
return new SubListItem(item);
|
|
294
|
-
})) !== null &&
|
|
224
|
+
})) !== null && ref18 !== void 0 ? ref18 : [];
|
|
295
225
|
};
|
|
296
226
|
export var LeftVariable = function LeftVariable(props) {
|
|
297
227
|
"use strict";
|
|
298
228
|
_classCallCheck(this, LeftVariable);
|
|
299
|
-
_defineProperty(this, "type", void 0);
|
|
300
|
-
_defineProperty(this, "value", void 0);
|
|
301
229
|
this.type = props === null || props === void 0 ? void 0 : props.type;
|
|
302
230
|
this.value = props === null || props === void 0 ? void 0 : props.value;
|
|
303
231
|
};
|
|
304
232
|
export var RightVariable = function RightVariable(props) {
|
|
305
233
|
"use strict";
|
|
306
234
|
_classCallCheck(this, RightVariable);
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : [];
|
|
314
|
-
var _props_displayBos;
|
|
315
|
-
this.displayBos = (_props_displayBos = props === null || props === void 0 ? void 0 : props.displayBos) !== null && _props_displayBos !== void 0 ? _props_displayBos : [];
|
|
235
|
+
var ref;
|
|
236
|
+
this.type = (ref = props === null || props === void 0 ? void 0 : props.type) !== null && ref !== void 0 ? ref : 'custom';
|
|
237
|
+
var ref19;
|
|
238
|
+
this.value = (ref19 = props === null || props === void 0 ? void 0 : props.value) !== null && ref19 !== void 0 ? ref19 : [];
|
|
239
|
+
var ref20;
|
|
240
|
+
this.displayBos = (ref20 = props === null || props === void 0 ? void 0 : props.displayBos) !== null && ref20 !== void 0 ? ref20 : [];
|
|
316
241
|
};
|
|
317
242
|
/**
|
|
318
243
|
* 连接符条件
|
|
319
244
|
* @public
|
|
320
245
|
*/ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
321
246
|
"use strict";
|
|
322
|
-
var _this = this;
|
|
323
247
|
_classCallCheck(this, FieldFilterConditions);
|
|
324
248
|
/**
|
|
325
|
-
* 编号
|
|
326
|
-
* @defaultValue ''
|
|
327
|
-
*/ _defineProperty(this, "id", void 0);
|
|
328
|
-
/**
|
|
329
|
-
* 规则编号
|
|
330
|
-
* @defaultValue Timestamp
|
|
331
|
-
*/ _defineProperty(this, "ruleId", void 0);
|
|
332
|
-
/**
|
|
333
249
|
* 类型:连接符条件
|
|
334
250
|
* @defaultValue 'conditions'
|
|
335
|
-
*/
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* 包含子项
|
|
346
|
-
* @defaultValue []
|
|
347
|
-
*/ _defineProperty(this, "children", void 0);
|
|
348
|
-
var _props_id;
|
|
349
|
-
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
350
|
-
var _props_ruleId;
|
|
351
|
-
this.ruleId = (_props_ruleId = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _props_ruleId !== void 0 ? _props_ruleId : new Date().valueOf();
|
|
352
|
-
var _props_level;
|
|
353
|
-
this.level = (_props_level = props === null || props === void 0 ? void 0 : props.level) !== null && _props_level !== void 0 ? _props_level : 0;
|
|
354
|
-
var _props_value;
|
|
355
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : "and";
|
|
251
|
+
*/ this.type = 'conditions';
|
|
252
|
+
var ref25;
|
|
253
|
+
this.id = (ref25 = props === null || props === void 0 ? void 0 : props.id) !== null && ref25 !== void 0 ? ref25 : genNonDuplicateId();
|
|
254
|
+
var ref21;
|
|
255
|
+
this.ruleId = (ref21 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && ref21 !== void 0 ? ref21 : new Date().valueOf();
|
|
256
|
+
var ref22;
|
|
257
|
+
this.level = (ref22 = props === null || props === void 0 ? void 0 : props.level) !== null && ref22 !== void 0 ? ref22 : 0;
|
|
258
|
+
var ref23;
|
|
259
|
+
this.value = (ref23 = props === null || props === void 0 ? void 0 : props.value) !== null && ref23 !== void 0 ? ref23 : 'and';
|
|
356
260
|
this.children = [];
|
|
357
261
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
262
|
+
var _this = this;
|
|
358
263
|
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
359
264
|
if (item.children !== undefined) {
|
|
360
|
-
var
|
|
265
|
+
var ref;
|
|
361
266
|
var filter = new FieldFilterConditions(item);
|
|
362
|
-
(
|
|
267
|
+
(ref = _this.children) === null || ref === void 0 ? void 0 : ref.push(filter);
|
|
363
268
|
} else {
|
|
364
|
-
var
|
|
269
|
+
var ref24;
|
|
365
270
|
var filter1 = new FieldFilterCondition(item);
|
|
366
|
-
(
|
|
271
|
+
(ref24 = _this.children) === null || ref24 === void 0 ? void 0 : ref24.push(filter1);
|
|
367
272
|
}
|
|
368
273
|
});
|
|
369
274
|
}
|
|
@@ -375,38 +280,19 @@ export var RightVariable = function RightVariable(props) {
|
|
|
375
280
|
"use strict";
|
|
376
281
|
_classCallCheck(this, FieldFilterCondition);
|
|
377
282
|
/**
|
|
378
|
-
* 唯一编号
|
|
379
|
-
* @defaultValue ''
|
|
380
|
-
*/ _defineProperty(this, "id", void 0);
|
|
381
|
-
/**
|
|
382
|
-
* 规则编号
|
|
383
|
-
* @defaultValue Timestamp
|
|
384
|
-
*/ _defineProperty(this, "ruleId", void 0);
|
|
385
|
-
/**
|
|
386
283
|
* 类型
|
|
387
284
|
* @defaultValue 'condition'
|
|
388
|
-
*/
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
*/ _defineProperty(this, "rightVariableBo", void 0);
|
|
400
|
-
var _props_id;
|
|
401
|
-
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
402
|
-
var _props_ruleId;
|
|
403
|
-
this.ruleId = (_props_ruleId = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _props_ruleId !== void 0 ? _props_ruleId : new Date().valueOf();
|
|
404
|
-
var _props_symbol;
|
|
405
|
-
this.symbol = (_props_symbol = props === null || props === void 0 ? void 0 : props.symbol) !== null && _props_symbol !== void 0 ? _props_symbol : "";
|
|
406
|
-
var _props_checked;
|
|
407
|
-
this.checked = (_props_checked = props === null || props === void 0 ? void 0 : props.checked) !== null && _props_checked !== void 0 ? _props_checked : false;
|
|
408
|
-
var _props_describe;
|
|
409
|
-
this.describe = (_props_describe = props === null || props === void 0 ? void 0 : props.describe) !== null && _props_describe !== void 0 ? _props_describe : "";
|
|
285
|
+
*/ this.type = 'condition';
|
|
286
|
+
var ref;
|
|
287
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId();
|
|
288
|
+
var ref26;
|
|
289
|
+
this.ruleId = (ref26 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && ref26 !== void 0 ? ref26 : new Date().valueOf();
|
|
290
|
+
var ref27;
|
|
291
|
+
this.symbol = (ref27 = props === null || props === void 0 ? void 0 : props.symbol) !== null && ref27 !== void 0 ? ref27 : '';
|
|
292
|
+
var ref28;
|
|
293
|
+
this.checked = (ref28 = props === null || props === void 0 ? void 0 : props.checked) !== null && ref28 !== void 0 ? ref28 : false;
|
|
294
|
+
var ref29;
|
|
295
|
+
this.describe = (ref29 = props === null || props === void 0 ? void 0 : props.describe) !== null && ref29 !== void 0 ? ref29 : '';
|
|
410
296
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
411
297
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
412
298
|
};
|
|
@@ -416,34 +302,14 @@ export var RightVariable = function RightVariable(props) {
|
|
|
416
302
|
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
417
303
|
"use strict";
|
|
418
304
|
_classCallCheck(this, MultistageFillingItem);
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
* @public
|
|
428
|
-
*/ _defineProperty(this, "fieldCode", void 0);
|
|
429
|
-
/**
|
|
430
|
-
* 字段类型。事件在填充时,需要根据数据类型进行判断处理动作。
|
|
431
|
-
* @defaultValue ''
|
|
432
|
-
* @public
|
|
433
|
-
*/ _defineProperty(this, "fieldType", void 0);
|
|
434
|
-
/**
|
|
435
|
-
* 属性名称。如果是ObjectDataBind的控件,可以指定填充到哪个数据项。
|
|
436
|
-
* @defaultValue ''
|
|
437
|
-
* @public
|
|
438
|
-
* */ _defineProperty(this, "propName", void 0);
|
|
439
|
-
var _props_controlId;
|
|
440
|
-
this.controlId = (_props_controlId = props === null || props === void 0 ? void 0 : props.controlId) !== null && _props_controlId !== void 0 ? _props_controlId : "";
|
|
441
|
-
var _props_fieldCode;
|
|
442
|
-
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
443
|
-
var _props_fieldType;
|
|
444
|
-
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : "";
|
|
445
|
-
var _props_propName;
|
|
446
|
-
this.propName = (_props_propName = props === null || props === void 0 ? void 0 : props.propName) !== null && _props_propName !== void 0 ? _props_propName : "";
|
|
305
|
+
var ref;
|
|
306
|
+
this.controlId = (ref = props === null || props === void 0 ? void 0 : props.controlId) !== null && ref !== void 0 ? ref : '';
|
|
307
|
+
var ref30;
|
|
308
|
+
this.fieldCode = (ref30 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref30 !== void 0 ? ref30 : '';
|
|
309
|
+
var ref31;
|
|
310
|
+
this.fieldType = (ref31 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref31 !== void 0 ? ref31 : '';
|
|
311
|
+
var ref32;
|
|
312
|
+
this.propName = (ref32 = props === null || props === void 0 ? void 0 : props.propName) !== null && ref32 !== void 0 ? ref32 : '';
|
|
447
313
|
};
|
|
448
314
|
/**
|
|
449
315
|
* 显示项
|
|
@@ -451,21 +317,10 @@ export var RightVariable = function RightVariable(props) {
|
|
|
451
317
|
*/ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
452
318
|
"use strict";
|
|
453
319
|
_classCallCheck(this, DisplayBoListItem);
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
*/ _defineProperty(this, "type", void 0);
|
|
459
|
-
/**
|
|
460
|
-
* 值
|
|
461
|
-
*/ _defineProperty(this, "value", void 0);
|
|
462
|
-
/**
|
|
463
|
-
* 字段数据类型
|
|
464
|
-
*/ _defineProperty(this, "fieldType", void 0);
|
|
465
|
-
var _props_type;
|
|
466
|
-
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "FIELD";
|
|
467
|
-
var _props_value;
|
|
468
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : "";
|
|
320
|
+
var ref;
|
|
321
|
+
this.type = (ref = props === null || props === void 0 ? void 0 : props.type) !== null && ref !== void 0 ? ref : 'FIELD';
|
|
322
|
+
var ref33;
|
|
323
|
+
this.value = (ref33 = props === null || props === void 0 ? void 0 : props.value) !== null && ref33 !== void 0 ? ref33 : '';
|
|
469
324
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
470
325
|
};
|
|
471
326
|
/**
|
|
@@ -474,86 +329,65 @@ export var RightVariable = function RightVariable(props) {
|
|
|
474
329
|
*/ export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
475
330
|
"use strict";
|
|
476
331
|
_classCallCheck(this, DataSourceOrderItem);
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* 倒序
|
|
483
|
-
* @defaultValue false
|
|
484
|
-
*/ _defineProperty(this, "desc", void 0);
|
|
485
|
-
var _props_columnName;
|
|
486
|
-
this.columnName = (_props_columnName = props.columnName) !== null && _props_columnName !== void 0 ? _props_columnName : "";
|
|
487
|
-
var _props_desc;
|
|
488
|
-
this.desc = (_props_desc = props.desc) !== null && _props_desc !== void 0 ? _props_desc : false;
|
|
332
|
+
var _columnName;
|
|
333
|
+
this.columnName = (_columnName = props.columnName) !== null && _columnName !== void 0 ? _columnName : '';
|
|
334
|
+
var _desc;
|
|
335
|
+
this.desc = (_desc = props.desc) !== null && _desc !== void 0 ? _desc : false;
|
|
489
336
|
};
|
|
490
337
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
491
338
|
"use strict";
|
|
492
339
|
_classCallCheck(this, DataSourceDataSetValue);
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
var _props_code;
|
|
500
|
-
this.code = (_props_code = props.code) !== null && _props_code !== void 0 ? _props_code : "";
|
|
501
|
-
var _props_value;
|
|
502
|
-
this.value = (_props_value = props.value) !== null && _props_value !== void 0 ? _props_value : "";
|
|
503
|
-
var _props_field_type;
|
|
504
|
-
this.field_type = (_props_field_type = props.field_type) !== null && _props_field_type !== void 0 ? _props_field_type : FieldTypes.ANY;
|
|
340
|
+
var _code;
|
|
341
|
+
this.code = (_code = props.code) !== null && _code !== void 0 ? _code : '';
|
|
342
|
+
var _value;
|
|
343
|
+
this.value = (_value = props.value) !== null && _value !== void 0 ? _value : '';
|
|
344
|
+
var _field_type;
|
|
345
|
+
this.field_type = (_field_type = props.field_type) !== null && _field_type !== void 0 ? _field_type : FieldTypes.ANY;
|
|
505
346
|
};
|
|
506
347
|
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
507
348
|
"use strict";
|
|
508
349
|
_classCallCheck(this, DataSourceParamItem);
|
|
509
|
-
var
|
|
510
|
-
|
|
511
|
-
* 字段ID
|
|
512
|
-
*/ _defineProperty(this, "id", void 0);
|
|
513
|
-
_defineProperty(this, "limit", void 0);
|
|
514
|
-
_defineProperty(this, "orders", void 0);
|
|
515
|
-
_defineProperty(this, "formKey", void 0);
|
|
516
|
-
_defineProperty(this, "dataSet", void 0);
|
|
517
|
-
var _props_id;
|
|
350
|
+
var ref, ref34;
|
|
351
|
+
var _id;
|
|
518
352
|
//字段ID,不可以当作随机数生成唯一编号
|
|
519
|
-
this.id = (
|
|
520
|
-
var
|
|
521
|
-
this.limit = (
|
|
522
|
-
var
|
|
523
|
-
this.formKey = (
|
|
524
|
-
var
|
|
525
|
-
this.orders = (
|
|
353
|
+
this.id = (_id = props.id) !== null && _id !== void 0 ? _id : '';
|
|
354
|
+
var _limit;
|
|
355
|
+
this.limit = (_limit = props.limit) !== null && _limit !== void 0 ? _limit : 20;
|
|
356
|
+
var _formKey;
|
|
357
|
+
this.formKey = (_formKey = props.formKey) !== null && _formKey !== void 0 ? _formKey : '';
|
|
358
|
+
var ref35;
|
|
359
|
+
this.orders = (ref35 = (ref = props.orders) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
526
360
|
return new DataSourceOrderItem(item);
|
|
527
|
-
})) !== null &&
|
|
528
|
-
var
|
|
529
|
-
this.dataSet = (
|
|
361
|
+
})) !== null && ref35 !== void 0 ? ref35 : [];
|
|
362
|
+
var ref36;
|
|
363
|
+
this.dataSet = (ref36 = (ref34 = props.dataSet) === null || ref34 === void 0 ? void 0 : ref34.map(function(item) {
|
|
530
364
|
return new DataSourceDataSetValue(item);
|
|
531
|
-
})) !== null &&
|
|
365
|
+
})) !== null && ref36 !== void 0 ? ref36 : [];
|
|
532
366
|
};
|
|
533
367
|
/**
|
|
534
368
|
* 给filters和orders赋值
|
|
535
369
|
* */ function callFiltersAndOrders(props) {
|
|
536
|
-
var
|
|
537
|
-
var
|
|
538
|
-
this.filters = (
|
|
370
|
+
var ref, ref37;
|
|
371
|
+
var ref38;
|
|
372
|
+
this.filters = (ref38 = props === null || props === void 0 ? void 0 : (ref = props.filters) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
539
373
|
if (item.children !== undefined) {
|
|
540
374
|
return new FieldFilterConditions(item);
|
|
541
375
|
}
|
|
542
376
|
return new FieldFilterCondition(item);
|
|
543
|
-
})) !== null &&
|
|
544
|
-
var
|
|
545
|
-
this.viewFilters = (
|
|
377
|
+
})) !== null && ref38 !== void 0 ? ref38 : [];
|
|
378
|
+
var ref39;
|
|
379
|
+
this.viewFilters = (ref39 = props === null || props === void 0 ? void 0 : (ref37 = props.viewFilters) === null || ref37 === void 0 ? void 0 : ref37.map(function(item) {
|
|
546
380
|
if (item.children !== undefined) {
|
|
547
381
|
return new FieldFilterConditions(item);
|
|
548
382
|
}
|
|
549
383
|
return new FieldFilterCondition(item);
|
|
550
|
-
})) !== null &&
|
|
384
|
+
})) !== null && ref39 !== void 0 ? ref39 : [];
|
|
551
385
|
if (_instanceof(this, DataSourceBind) || _instanceof(this, FillPayloadBind)) {
|
|
552
|
-
var
|
|
553
|
-
var
|
|
554
|
-
this.orders = (
|
|
386
|
+
var ref40, ref41;
|
|
387
|
+
var ref42;
|
|
388
|
+
this.orders = (ref42 = (ref40 = props) === null || ref40 === void 0 ? void 0 : (ref41 = ref40.orders) === null || ref41 === void 0 ? void 0 : ref41.map(function(item) {
|
|
555
389
|
return new DataSourceOrderItem(item);
|
|
556
|
-
})) !== null &&
|
|
390
|
+
})) !== null && ref42 !== void 0 ? ref42 : [];
|
|
557
391
|
}
|
|
558
392
|
}
|
|
559
393
|
/**
|
|
@@ -561,154 +395,75 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
561
395
|
* @public
|
|
562
396
|
*/ export var DataSourceBind = function DataSourceBind(props) {
|
|
563
397
|
"use strict";
|
|
564
|
-
var _this = this;
|
|
565
398
|
_classCallCheck(this, DataSourceBind);
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
* 存储值
|
|
573
|
-
* @defaultValue ''
|
|
574
|
-
* @public
|
|
575
|
-
*/ _defineProperty(this, "valueFieldCode", void 0);
|
|
576
|
-
/**
|
|
577
|
-
* 显示值
|
|
578
|
-
* @defaultValue []
|
|
579
|
-
* @public
|
|
580
|
-
*/ _defineProperty(this, "displayBoList", void 0);
|
|
581
|
-
/**
|
|
582
|
-
* 查询关键字参数映射
|
|
583
|
-
* @defaultValue ''
|
|
584
|
-
* @public
|
|
585
|
-
*/ _defineProperty(this, "keywordMapping", void 0);
|
|
586
|
-
/**
|
|
587
|
-
* 绑定服务
|
|
588
|
-
* @defaultValue ''
|
|
589
|
-
* @public
|
|
590
|
-
*/ _defineProperty(this, "svcCode", void 0);
|
|
591
|
-
/**
|
|
592
|
-
* 应用Id
|
|
593
|
-
* @defaultValue ''
|
|
594
|
-
* @public
|
|
595
|
-
*/ _defineProperty(this, "appId", void 0);
|
|
596
|
-
/**
|
|
597
|
-
* 过滤条件
|
|
598
|
-
* @defaultValue []
|
|
599
|
-
* @public
|
|
600
|
-
*/ _defineProperty(this, "filters", void 0);
|
|
601
|
-
// 过滤
|
|
602
|
-
/**
|
|
603
|
-
* 过滤条件-查看过滤
|
|
604
|
-
* @defaultValue []
|
|
605
|
-
* @public
|
|
606
|
-
*/ _defineProperty(this, "viewFilters", void 0);
|
|
607
|
-
/**
|
|
608
|
-
* 是否开启查看过滤
|
|
609
|
-
* @defaultValue 0:未开启;1:开启
|
|
610
|
-
* @public
|
|
611
|
-
*/ _defineProperty(this, "isOpenViewFilters", void 0);
|
|
612
|
-
/**
|
|
613
|
-
* 排序
|
|
614
|
-
* @defaultValue []
|
|
615
|
-
* @public
|
|
616
|
-
*/ _defineProperty(this, "orders", void 0);
|
|
617
|
-
/**
|
|
618
|
-
* 显示排序
|
|
619
|
-
* @defaultValue true
|
|
620
|
-
* @public
|
|
621
|
-
*/ _defineProperty(this, "showOrder", void 0);
|
|
622
|
-
var _props_dataCode;
|
|
623
|
-
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
624
|
-
var _props_appId;
|
|
625
|
-
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
626
|
-
var _props_valueFieldCode;
|
|
627
|
-
this.valueFieldCode = (_props_valueFieldCode = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && _props_valueFieldCode !== void 0 ? _props_valueFieldCode : "";
|
|
399
|
+
var ref49;
|
|
400
|
+
this.dataCode = (ref49 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref49 !== void 0 ? ref49 : '';
|
|
401
|
+
var ref43;
|
|
402
|
+
this.appId = (ref43 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref43 !== void 0 ? ref43 : '';
|
|
403
|
+
var ref44;
|
|
404
|
+
this.valueFieldCode = (ref44 = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && ref44 !== void 0 ? ref44 : '';
|
|
628
405
|
this.displayBoList = [];
|
|
629
|
-
var
|
|
630
|
-
this.isOpenViewFilters = (
|
|
406
|
+
var ref45;
|
|
407
|
+
this.isOpenViewFilters = (ref45 = props === null || props === void 0 ? void 0 : props.isOpenViewFilters) !== null && ref45 !== void 0 ? ref45 : 0;
|
|
631
408
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
409
|
+
var _this = this;
|
|
632
410
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
633
|
-
var
|
|
634
|
-
(
|
|
411
|
+
var ref;
|
|
412
|
+
(ref = _this.displayBoList) === null || ref === void 0 ? void 0 : ref.push(new DisplayBoListItem(item));
|
|
635
413
|
});
|
|
636
414
|
}
|
|
637
|
-
var
|
|
638
|
-
this.keywordMapping = (
|
|
639
|
-
var
|
|
640
|
-
this.showOrder = (
|
|
641
|
-
var
|
|
642
|
-
this.svcCode = (
|
|
415
|
+
var ref46;
|
|
416
|
+
this.keywordMapping = (ref46 = props === null || props === void 0 ? void 0 : props.keywordMapping) !== null && ref46 !== void 0 ? ref46 : '';
|
|
417
|
+
var ref47;
|
|
418
|
+
this.showOrder = (ref47 = props === null || props === void 0 ? void 0 : props.showOrder) !== null && ref47 !== void 0 ? ref47 : true;
|
|
419
|
+
var ref48;
|
|
420
|
+
this.svcCode = (ref48 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && ref48 !== void 0 ? ref48 : '';
|
|
643
421
|
callFiltersAndOrders.call(this, props);
|
|
644
422
|
};
|
|
645
423
|
export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
646
424
|
"use strict";
|
|
647
425
|
_classCallCheck(this, SelectedContentConfig);
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
*/ _defineProperty(this, "dataCode", void 0);
|
|
653
|
-
/**
|
|
654
|
-
* 展示已选明细
|
|
655
|
-
* @defaultValue []
|
|
656
|
-
* @public
|
|
657
|
-
*/ _defineProperty(this, "displayBoList", void 0);
|
|
658
|
-
var _props_dataCode;
|
|
659
|
-
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
660
|
-
var _props_displayBoList;
|
|
661
|
-
this.displayBoList = (_props_displayBoList = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _props_displayBoList !== void 0 ? _props_displayBoList : [];
|
|
426
|
+
var ref;
|
|
427
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : '';
|
|
428
|
+
var ref50;
|
|
429
|
+
this.displayBoList = (ref50 = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && ref50 !== void 0 ? ref50 : [];
|
|
662
430
|
};
|
|
663
431
|
export var LinkOperationOption = function LinkOperationOption(props) {
|
|
664
432
|
"use strict";
|
|
665
433
|
_classCallCheck(this, LinkOperationOption);
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
var
|
|
677
|
-
this.
|
|
678
|
-
var
|
|
679
|
-
this.
|
|
680
|
-
var
|
|
681
|
-
this.
|
|
682
|
-
var
|
|
683
|
-
this.
|
|
684
|
-
var
|
|
685
|
-
this.
|
|
686
|
-
var _props_formKey;
|
|
687
|
-
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : undefined;
|
|
688
|
-
var _props_icon;
|
|
689
|
-
this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : "iconliulan1";
|
|
690
|
-
var _props_needConfirm;
|
|
691
|
-
this.needConfirm = (_props_needConfirm = props === null || props === void 0 ? void 0 : props.needConfirm) !== null && _props_needConfirm !== void 0 ? _props_needConfirm : false;
|
|
692
|
-
var _props_openType;
|
|
693
|
-
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : "modal";
|
|
694
|
-
var _props_priorityProcess;
|
|
695
|
-
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : true;
|
|
434
|
+
var ref;
|
|
435
|
+
this.code = (ref = props === null || props === void 0 ? void 0 : props.code) !== null && ref !== void 0 ? ref : 'view';
|
|
436
|
+
var ref51;
|
|
437
|
+
this.color = (ref51 = props === null || props === void 0 ? void 0 : props.color) !== null && ref51 !== void 0 ? ref51 : 'primary';
|
|
438
|
+
var ref52;
|
|
439
|
+
this.command = (ref52 = props === null || props === void 0 ? void 0 : props.command) !== null && ref52 !== void 0 ? ref52 : 'view';
|
|
440
|
+
var ref53;
|
|
441
|
+
this.confirmMessage = (ref53 = props === null || props === void 0 ? void 0 : props.confirmMessage) !== null && ref53 !== void 0 ? ref53 : undefined;
|
|
442
|
+
var ref54;
|
|
443
|
+
this.defaultState = (ref54 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && ref54 !== void 0 ? ref54 : 'default';
|
|
444
|
+
var ref55;
|
|
445
|
+
this.formKey = (ref55 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref55 !== void 0 ? ref55 : undefined;
|
|
446
|
+
var ref56;
|
|
447
|
+
this.icon = (ref56 = props === null || props === void 0 ? void 0 : props.icon) !== null && ref56 !== void 0 ? ref56 : 'iconliulan1';
|
|
448
|
+
var ref57;
|
|
449
|
+
this.needConfirm = (ref57 = props === null || props === void 0 ? void 0 : props.needConfirm) !== null && ref57 !== void 0 ? ref57 : false;
|
|
450
|
+
var ref58;
|
|
451
|
+
this.openType = (ref58 = props === null || props === void 0 ? void 0 : props.openType) !== null && ref58 !== void 0 ? ref58 : 'modal';
|
|
452
|
+
var ref59;
|
|
453
|
+
this.priorityProcess = (ref59 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && ref59 !== void 0 ? ref59 : true;
|
|
696
454
|
};
|
|
697
455
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
698
456
|
"use strict";
|
|
699
457
|
_classCallCheck(this, CustomAttributeItem);
|
|
700
|
-
var
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
this.key = (_props_key = props === null || props === void 0 ? void 0 : props.key) !== null && _props_key !== void 0 ? _props_key : "";
|
|
708
|
-
var _props_value_map;
|
|
709
|
-
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) {
|
|
458
|
+
var ref;
|
|
459
|
+
var ref60;
|
|
460
|
+
this.name = (ref60 = props === null || props === void 0 ? void 0 : props.name) !== null && ref60 !== void 0 ? ref60 : '';
|
|
461
|
+
var ref61;
|
|
462
|
+
this.key = (ref61 = props === null || props === void 0 ? void 0 : props.key) !== null && ref61 !== void 0 ? ref61 : '';
|
|
463
|
+
var ref62;
|
|
464
|
+
this.value = (ref62 = props === null || props === void 0 ? void 0 : (ref = props.value) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
710
465
|
return new DisplayBoListItem(item);
|
|
711
|
-
})) !== null &&
|
|
466
|
+
})) !== null && ref62 !== void 0 ? ref62 : [];
|
|
712
467
|
};
|
|
713
468
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
714
469
|
"use strict";
|
|
@@ -717,13 +472,12 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
717
472
|
function SuperDataSourceBind(props) {
|
|
718
473
|
_classCallCheck(this, SuperDataSourceBind);
|
|
719
474
|
var _this;
|
|
720
|
-
var
|
|
475
|
+
var ref;
|
|
721
476
|
_this = _super.call(this, props);
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
_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) {
|
|
477
|
+
var ref63;
|
|
478
|
+
_this.attributes = (ref63 = props === null || props === void 0 ? void 0 : (ref = props.attributes) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
725
479
|
return new CustomAttributeItem(item);
|
|
726
|
-
})) !== null &&
|
|
480
|
+
})) !== null && ref63 !== void 0 ? ref63 : [];
|
|
727
481
|
return _this;
|
|
728
482
|
}
|
|
729
483
|
return SuperDataSourceBind;
|
|
@@ -735,16 +489,14 @@ export var OrganizationDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
735
489
|
function OrganizationDataSourceBind(props) {
|
|
736
490
|
_classCallCheck(this, OrganizationDataSourceBind);
|
|
737
491
|
var _this;
|
|
738
|
-
var
|
|
492
|
+
var ref;
|
|
739
493
|
_this = _super.call(this, props);
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
var _props_attributes_map;
|
|
743
|
-
_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) {
|
|
494
|
+
var ref64;
|
|
495
|
+
_this.attributes = (ref64 = props === null || props === void 0 ? void 0 : (ref = props.attributes) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
744
496
|
return new CustomAttributeItem(item);
|
|
745
|
-
})) !== null &&
|
|
746
|
-
var
|
|
747
|
-
_this.formCode = (
|
|
497
|
+
})) !== null && ref64 !== void 0 ? ref64 : [];
|
|
498
|
+
var ref65;
|
|
499
|
+
_this.formCode = (ref65 = props === null || props === void 0 ? void 0 : props.formCode) !== null && ref65 !== void 0 ? ref65 : '';
|
|
748
500
|
return _this;
|
|
749
501
|
}
|
|
750
502
|
return OrganizationDataSourceBind;
|
|
@@ -757,11 +509,9 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
757
509
|
_classCallCheck(this, TreeDataSourceBind);
|
|
758
510
|
var _this;
|
|
759
511
|
_this = _super.call(this, props);
|
|
760
|
-
_defineProperty(_assertThisInitialized(_this), "rootNode", void 0);
|
|
761
|
-
_defineProperty(_assertThisInitialized(_this), "filterCode", void 0);
|
|
762
512
|
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
763
|
-
var
|
|
764
|
-
_this.filterCode = (
|
|
513
|
+
var ref;
|
|
514
|
+
_this.filterCode = (ref = props === null || props === void 0 ? void 0 : props.filterCode) !== null && ref !== void 0 ? ref : '';
|
|
765
515
|
return _this;
|
|
766
516
|
}
|
|
767
517
|
return TreeDataSourceBind;
|
|
@@ -769,24 +519,15 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
769
519
|
var FillBind = function FillBind(props) {
|
|
770
520
|
"use strict";
|
|
771
521
|
_classCallCheck(this, FillBind);
|
|
772
|
-
var
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
/*
|
|
780
|
-
* 执行填充的数据项和控件
|
|
781
|
-
* */ _defineProperty(this, "fillList", void 0);
|
|
782
|
-
var _props_dataCode;
|
|
783
|
-
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
784
|
-
var _props_appId;
|
|
785
|
-
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
786
|
-
var _props_fillList_map;
|
|
787
|
-
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) {
|
|
522
|
+
var ref;
|
|
523
|
+
var ref66;
|
|
524
|
+
this.dataCode = (ref66 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref66 !== void 0 ? ref66 : '';
|
|
525
|
+
var ref67;
|
|
526
|
+
this.appId = (ref67 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref67 !== void 0 ? ref67 : '';
|
|
527
|
+
var ref68;
|
|
528
|
+
this.fillList = (ref68 = props === null || props === void 0 ? void 0 : (ref = props.fillList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
788
529
|
return new MultistageFillingItem(item);
|
|
789
|
-
})) !== null &&
|
|
530
|
+
})) !== null && ref68 !== void 0 ? ref68 : [];
|
|
790
531
|
};
|
|
791
532
|
/**
|
|
792
533
|
* FillPayloadBind 填充配置
|
|
@@ -800,21 +541,6 @@ var FillBind = function FillBind(props) {
|
|
|
800
541
|
_classCallCheck(this, FillPayloadBind);
|
|
801
542
|
var _this;
|
|
802
543
|
_this = _super.call(this, props);
|
|
803
|
-
/**
|
|
804
|
-
* 数据源过滤条件
|
|
805
|
-
* @defaultValue []
|
|
806
|
-
* @public
|
|
807
|
-
**/ _defineProperty(_assertThisInitialized(_this), "filters", void 0);
|
|
808
|
-
/**
|
|
809
|
-
* 数据源过滤条件-查看
|
|
810
|
-
* @defaultValue []
|
|
811
|
-
* @public
|
|
812
|
-
**/ _defineProperty(_assertThisInitialized(_this), "viewFilters", void 0);
|
|
813
|
-
/**
|
|
814
|
-
* 数据源排序条件
|
|
815
|
-
* @defaultValue []
|
|
816
|
-
* @public
|
|
817
|
-
**/ _defineProperty(_assertThisInitialized(_this), "orders", void 0);
|
|
818
544
|
callFiltersAndOrders.call(_assertThisInitialized(_this), props);
|
|
819
545
|
return _this;
|
|
820
546
|
}
|
|
@@ -831,20 +557,10 @@ var FillBind = function FillBind(props) {
|
|
|
831
557
|
_classCallCheck(this, FillBackBind);
|
|
832
558
|
var _this;
|
|
833
559
|
_this = _super.call(this, props);
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
* */ _defineProperty(_assertThisInitialized(_this), "mode", void 0);
|
|
839
|
-
/**
|
|
840
|
-
* 多选
|
|
841
|
-
* @defaultValue false
|
|
842
|
-
* @public
|
|
843
|
-
*/ _defineProperty(_assertThisInitialized(_this), "multiple", void 0);
|
|
844
|
-
var _props_mode;
|
|
845
|
-
_this.mode = (_props_mode = props === null || props === void 0 ? void 0 : props.mode) !== null && _props_mode !== void 0 ? _props_mode : "current";
|
|
846
|
-
var _props_multiple;
|
|
847
|
-
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
560
|
+
var ref;
|
|
561
|
+
_this.mode = (ref = props === null || props === void 0 ? void 0 : props.mode) !== null && ref !== void 0 ? ref : 'current';
|
|
562
|
+
var ref69;
|
|
563
|
+
_this.multiple = (ref69 = props === null || props === void 0 ? void 0 : props.multiple) !== null && ref69 !== void 0 ? ref69 : false;
|
|
848
564
|
return _this;
|
|
849
565
|
}
|
|
850
566
|
return FillBackBind;
|
|
@@ -852,15 +568,12 @@ var FillBind = function FillBind(props) {
|
|
|
852
568
|
export var Language = function Language(props) {
|
|
853
569
|
"use strict";
|
|
854
570
|
_classCallCheck(this, Language);
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
this.en = (_props_en = props === null || props === void 0 ? void 0 : props.en) !== null && _props_en !== void 0 ? _props_en : "";
|
|
862
|
-
var _props_ja;
|
|
863
|
-
this.ja = (_props_ja = props === null || props === void 0 ? void 0 : props.ja) !== null && _props_ja !== void 0 ? _props_ja : "";
|
|
571
|
+
var ref;
|
|
572
|
+
this.zh = (ref = props === null || props === void 0 ? void 0 : props.zh) !== null && ref !== void 0 ? ref : '';
|
|
573
|
+
var ref70;
|
|
574
|
+
this.en = (ref70 = props === null || props === void 0 ? void 0 : props.en) !== null && ref70 !== void 0 ? ref70 : '';
|
|
575
|
+
var ref71;
|
|
576
|
+
this.ja = (ref71 = props === null || props === void 0 ? void 0 : props.ja) !== null && ref71 !== void 0 ? ref71 : '';
|
|
864
577
|
};
|
|
865
578
|
/**
|
|
866
579
|
* 正则校验
|
|
@@ -868,24 +581,12 @@ export var Language = function Language(props) {
|
|
|
868
581
|
*/ export var RegularRules = function RegularRules(props) {
|
|
869
582
|
"use strict";
|
|
870
583
|
_classCallCheck(this, RegularRules);
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
* @defaultValue ''
|
|
878
|
-
*/ _defineProperty(this, "expression", void 0);
|
|
879
|
-
/**
|
|
880
|
-
* 校验错误提示信息
|
|
881
|
-
* @defaultValue ''
|
|
882
|
-
*/ _defineProperty(this, "errMessage", void 0);
|
|
883
|
-
var _props_stencilName;
|
|
884
|
-
this.stencilName = (_props_stencilName = props === null || props === void 0 ? void 0 : props.stencilName) !== null && _props_stencilName !== void 0 ? _props_stencilName : "";
|
|
885
|
-
var _props_expression;
|
|
886
|
-
this.expression = (_props_expression = props === null || props === void 0 ? void 0 : props.expression) !== null && _props_expression !== void 0 ? _props_expression : "";
|
|
887
|
-
var _props_errMessage;
|
|
888
|
-
this.errMessage = (_props_errMessage = props === null || props === void 0 ? void 0 : props.errMessage) !== null && _props_errMessage !== void 0 ? _props_errMessage : "";
|
|
584
|
+
var ref;
|
|
585
|
+
this.stencilName = (ref = props === null || props === void 0 ? void 0 : props.stencilName) !== null && ref !== void 0 ? ref : '';
|
|
586
|
+
var ref72;
|
|
587
|
+
this.expression = (ref72 = props === null || props === void 0 ? void 0 : props.expression) !== null && ref72 !== void 0 ? ref72 : '';
|
|
588
|
+
var ref73;
|
|
589
|
+
this.errMessage = (ref73 = props === null || props === void 0 ? void 0 : props.errMessage) !== null && ref73 !== void 0 ? ref73 : '';
|
|
889
590
|
};
|
|
890
591
|
/**
|
|
891
592
|
* 选项设置-自定义选项
|
|
@@ -893,23 +594,12 @@ export var Language = function Language(props) {
|
|
|
893
594
|
*/ export var OptionSetting = function OptionSetting(props) {
|
|
894
595
|
"use strict";
|
|
895
596
|
_classCallCheck(this, OptionSetting);
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
/**
|
|
903
|
-
* 选项ID
|
|
904
|
-
* @defaultValue this.label
|
|
905
|
-
* @public
|
|
906
|
-
*/ _defineProperty(this, "value", void 0);
|
|
907
|
-
var _props_id;
|
|
908
|
-
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
909
|
-
var _props_label;
|
|
910
|
-
this.label = (_props_label = props === null || props === void 0 ? void 0 : props.label) !== null && _props_label !== void 0 ? _props_label : "";
|
|
911
|
-
var _props_value;
|
|
912
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : this.label;
|
|
597
|
+
var ref;
|
|
598
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId(8);
|
|
599
|
+
var ref74;
|
|
600
|
+
this.label = (ref74 = props === null || props === void 0 ? void 0 : props.label) !== null && ref74 !== void 0 ? ref74 : '';
|
|
601
|
+
var ref75;
|
|
602
|
+
this.value = (ref75 = props === null || props === void 0 ? void 0 : props.value) !== null && ref75 !== void 0 ? ref75 : this.label;
|
|
913
603
|
};
|
|
914
604
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
915
605
|
"use strict";
|
|
@@ -919,27 +609,25 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
919
609
|
_classCallCheck(this, ImageOptionSetting);
|
|
920
610
|
var _this;
|
|
921
611
|
_this = _super.call(this, props);
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
var
|
|
925
|
-
_this.
|
|
926
|
-
var _props_type;
|
|
927
|
-
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "src";
|
|
612
|
+
var ref;
|
|
613
|
+
_this.image = (ref = props === null || props === void 0 ? void 0 : props.image) !== null && ref !== void 0 ? ref : '';
|
|
614
|
+
var ref76;
|
|
615
|
+
_this.type = (ref76 = props === null || props === void 0 ? void 0 : props.type) !== null && ref76 !== void 0 ? ref76 : 'src';
|
|
928
616
|
return _this;
|
|
929
617
|
}
|
|
930
618
|
return ImageOptionSetting;
|
|
931
619
|
}(OptionSetting);
|
|
932
620
|
export function initOptions(options) {
|
|
933
|
-
var
|
|
934
|
-
return (
|
|
621
|
+
var ref;
|
|
622
|
+
return (ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
935
623
|
return new OptionSetting(item);
|
|
936
|
-
})) !== null &&
|
|
624
|
+
})) !== null && ref !== void 0 ? ref : [];
|
|
937
625
|
}
|
|
938
626
|
export function initImageOptions(options) {
|
|
939
|
-
var
|
|
940
|
-
return (
|
|
627
|
+
var ref;
|
|
628
|
+
return (ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
941
629
|
return new ImageOptionSetting(item);
|
|
942
|
-
})) !== null &&
|
|
630
|
+
})) !== null && ref !== void 0 ? ref : [];
|
|
943
631
|
}
|
|
944
632
|
/**
|
|
945
633
|
* 对象类型数据绑定配置
|
|
@@ -959,12 +647,6 @@ export function initImageOptions(options) {
|
|
|
959
647
|
_classCallCheck(this, AmountDataBind);
|
|
960
648
|
var _this;
|
|
961
649
|
_this = _super.call(this);
|
|
962
|
-
/**
|
|
963
|
-
* 金额字段绑定配置
|
|
964
|
-
*/ _defineProperty(_assertThisInitialized(_this), "amount", void 0);
|
|
965
|
-
/**
|
|
966
|
-
* 币种字段绑定配置
|
|
967
|
-
*/ _defineProperty(_assertThisInitialized(_this), "currency", void 0);
|
|
968
650
|
_this.amount = new DataBind(props === null || props === void 0 ? void 0 : props.amount);
|
|
969
651
|
_this.currency = new DataBind(props === null || props === void 0 ? void 0 : props.currency);
|
|
970
652
|
return _this;
|
|
@@ -977,18 +659,10 @@ export function initImageOptions(options) {
|
|
|
977
659
|
*/ export var AmountValue = function AmountValue(props) {
|
|
978
660
|
"use strict";
|
|
979
661
|
_classCallCheck(this, AmountValue);
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
/**
|
|
985
|
-
* 货币值
|
|
986
|
-
* @defaultValue 'CNY'
|
|
987
|
-
*/ _defineProperty(this, "currency", void 0);
|
|
988
|
-
var _props_amount;
|
|
989
|
-
this.amount = (_props_amount = props === null || props === void 0 ? void 0 : props.amount) !== null && _props_amount !== void 0 ? _props_amount : "";
|
|
990
|
-
var _props_currency;
|
|
991
|
-
this.currency = (_props_currency = props === null || props === void 0 ? void 0 : props.currency) !== null && _props_currency !== void 0 ? _props_currency : AMOUNT_TYPE.CNY;
|
|
662
|
+
var ref;
|
|
663
|
+
this.amount = (ref = props === null || props === void 0 ? void 0 : props.amount) !== null && ref !== void 0 ? ref : '';
|
|
664
|
+
var ref77;
|
|
665
|
+
this.currency = (ref77 = props === null || props === void 0 ? void 0 : props.currency) !== null && ref77 !== void 0 ? ref77 : AMOUNT_TYPE.CNY;
|
|
992
666
|
};
|
|
993
667
|
/**
|
|
994
668
|
* 日期区间数据绑定项
|
|
@@ -1001,12 +675,6 @@ export function initImageOptions(options) {
|
|
|
1001
675
|
_classCallCheck(this, RangeDataBind);
|
|
1002
676
|
var _this;
|
|
1003
677
|
_this = _super.call(this);
|
|
1004
|
-
/**
|
|
1005
|
-
* 开始日期字段绑定项
|
|
1006
|
-
*/ _defineProperty(_assertThisInitialized(_this), "min", void 0);
|
|
1007
|
-
/**
|
|
1008
|
-
* 结束日期字段绑定项
|
|
1009
|
-
*/ _defineProperty(_assertThisInitialized(_this), "max", void 0);
|
|
1010
678
|
_this.min = new DataBind(props === null || props === void 0 ? void 0 : props.min);
|
|
1011
679
|
_this.max = new DataBind(props === null || props === void 0 ? void 0 : props.max);
|
|
1012
680
|
return _this;
|
|
@@ -1019,18 +687,10 @@ export function initImageOptions(options) {
|
|
|
1019
687
|
*/ export var RangeDateValue = function RangeDateValue(props) {
|
|
1020
688
|
"use strict";
|
|
1021
689
|
_classCallCheck(this, RangeDateValue);
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
/**
|
|
1027
|
-
* 结束日期值
|
|
1028
|
-
* @defaultValue ''
|
|
1029
|
-
*/ _defineProperty(this, "max", void 0);
|
|
1030
|
-
var _props_min;
|
|
1031
|
-
this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
|
|
1032
|
-
var _props_max;
|
|
1033
|
-
this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : "";
|
|
690
|
+
var ref;
|
|
691
|
+
this.min = (ref = props === null || props === void 0 ? void 0 : props.min) !== null && ref !== void 0 ? ref : '';
|
|
692
|
+
var ref78;
|
|
693
|
+
this.max = (ref78 = props === null || props === void 0 ? void 0 : props.max) !== null && ref78 !== void 0 ? ref78 : '';
|
|
1034
694
|
};
|
|
1035
695
|
/**
|
|
1036
696
|
* 地址值
|
|
@@ -1038,42 +698,18 @@ export function initImageOptions(options) {
|
|
|
1038
698
|
*/ export var AddressValue = function AddressValue(props) {
|
|
1039
699
|
"use strict";
|
|
1040
700
|
_classCallCheck(this, AddressValue);
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
/**
|
|
1054
|
-
* 区显示文字
|
|
1055
|
-
* @defaultValue ''
|
|
1056
|
-
*/ _defineProperty(this, "districtDisplay", void 0);
|
|
1057
|
-
/**
|
|
1058
|
-
* 省编码
|
|
1059
|
-
* @defaultValue ''
|
|
1060
|
-
*/ _defineProperty(this, "province", void 0);
|
|
1061
|
-
/**
|
|
1062
|
-
* 省显示文字
|
|
1063
|
-
* @defaultValue ''
|
|
1064
|
-
*/ _defineProperty(this, "provinceDisplay", void 0);
|
|
1065
|
-
var _props_city;
|
|
1066
|
-
this.city = (_props_city = props === null || props === void 0 ? void 0 : props.city) !== null && _props_city !== void 0 ? _props_city : "";
|
|
1067
|
-
var _props_cityDisplay;
|
|
1068
|
-
this.cityDisplay = (_props_cityDisplay = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && _props_cityDisplay !== void 0 ? _props_cityDisplay : "";
|
|
1069
|
-
var _props_district;
|
|
1070
|
-
this.district = (_props_district = props === null || props === void 0 ? void 0 : props.district) !== null && _props_district !== void 0 ? _props_district : "";
|
|
1071
|
-
var _props_districtDisplay;
|
|
1072
|
-
this.districtDisplay = (_props_districtDisplay = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && _props_districtDisplay !== void 0 ? _props_districtDisplay : "";
|
|
1073
|
-
var _props_province;
|
|
1074
|
-
this.province = (_props_province = props === null || props === void 0 ? void 0 : props.province) !== null && _props_province !== void 0 ? _props_province : "";
|
|
1075
|
-
var _props_provinceDisplay;
|
|
1076
|
-
this.provinceDisplay = (_props_provinceDisplay = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && _props_provinceDisplay !== void 0 ? _props_provinceDisplay : "";
|
|
701
|
+
var ref;
|
|
702
|
+
this.city = (ref = props === null || props === void 0 ? void 0 : props.city) !== null && ref !== void 0 ? ref : '';
|
|
703
|
+
var ref79;
|
|
704
|
+
this.cityDisplay = (ref79 = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && ref79 !== void 0 ? ref79 : '';
|
|
705
|
+
var ref80;
|
|
706
|
+
this.district = (ref80 = props === null || props === void 0 ? void 0 : props.district) !== null && ref80 !== void 0 ? ref80 : '';
|
|
707
|
+
var ref81;
|
|
708
|
+
this.districtDisplay = (ref81 = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && ref81 !== void 0 ? ref81 : '';
|
|
709
|
+
var ref82;
|
|
710
|
+
this.province = (ref82 = props === null || props === void 0 ? void 0 : props.province) !== null && ref82 !== void 0 ? ref82 : '';
|
|
711
|
+
var ref83;
|
|
712
|
+
this.provinceDisplay = (ref83 = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && ref83 !== void 0 ? ref83 : '';
|
|
1077
713
|
};
|
|
1078
714
|
/**
|
|
1079
715
|
* 计算公式数据绑定项
|
|
@@ -1086,12 +722,6 @@ export function initImageOptions(options) {
|
|
|
1086
722
|
_classCallCheck(this, CalcDataBind);
|
|
1087
723
|
var _this;
|
|
1088
724
|
_this = _super.call(this);
|
|
1089
|
-
/**
|
|
1090
|
-
* 计算结果字段绑定项
|
|
1091
|
-
*/ _defineProperty(_assertThisInitialized(_this), "result", void 0);
|
|
1092
|
-
/**
|
|
1093
|
-
* 单位字段绑定项
|
|
1094
|
-
*/ _defineProperty(_assertThisInitialized(_this), "unit", void 0);
|
|
1095
725
|
_this.result = new DataBind(props === null || props === void 0 ? void 0 : props.result);
|
|
1096
726
|
_this.unit = new DataBind(props === null || props === void 0 ? void 0 : props.unit);
|
|
1097
727
|
return _this;
|
|
@@ -1104,18 +734,10 @@ export function initImageOptions(options) {
|
|
|
1104
734
|
*/ export var CalcValue = function CalcValue(props) {
|
|
1105
735
|
"use strict";
|
|
1106
736
|
_classCallCheck(this, CalcValue);
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
/**
|
|
1112
|
-
* 单位
|
|
1113
|
-
* @defaultValue ''
|
|
1114
|
-
*/ _defineProperty(this, "unit", void 0);
|
|
1115
|
-
var _props_result;
|
|
1116
|
-
this.result = (_props_result = props === null || props === void 0 ? void 0 : props.result) !== null && _props_result !== void 0 ? _props_result : 0;
|
|
1117
|
-
var _props_unit;
|
|
1118
|
-
this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : "";
|
|
737
|
+
var ref;
|
|
738
|
+
this.result = (ref = props === null || props === void 0 ? void 0 : props.result) !== null && ref !== void 0 ? ref : 0;
|
|
739
|
+
var ref84;
|
|
740
|
+
this.unit = (ref84 = props === null || props === void 0 ? void 0 : props.unit) !== null && ref84 !== void 0 ? ref84 : '';
|
|
1119
741
|
};
|
|
1120
742
|
export var AMOUNT_TYPE;
|
|
1121
743
|
(function(AMOUNT_TYPE) {
|
|
@@ -1149,35 +771,35 @@ export var AMOUNT_TYPE;
|
|
|
1149
771
|
})(AMOUNT_TYPE || (AMOUNT_TYPE = {}));
|
|
1150
772
|
export var COMMON_SETTING_TYPE;
|
|
1151
773
|
(function(COMMON_SETTING_TYPE) {
|
|
1152
|
-
COMMON_SETTING_TYPE["DEFAULT_DISPLAY"] =
|
|
1153
|
-
COMMON_SETTING_TYPE["REQUIRED"] =
|
|
1154
|
-
COMMON_SETTING_TYPE["IS_HIDE"] =
|
|
1155
|
-
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] =
|
|
1156
|
-
COMMON_SETTING_TYPE["IMD_SEARCH"] =
|
|
1157
|
-
COMMON_SETTING_TYPE["MULTIPLE"] =
|
|
1158
|
-
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] =
|
|
1159
|
-
COMMON_SETTING_TYPE["CAPTION"] =
|
|
1160
|
-
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] =
|
|
1161
|
-
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] =
|
|
1162
|
-
COMMON_SETTING_TYPE["CAN_SEARCH"] =
|
|
1163
|
-
COMMON_SETTING_TYPE["CAN_CHECK"] =
|
|
1164
|
-
COMMON_SETTING_TYPE["CAN_EDIT"] =
|
|
1165
|
-
COMMON_SETTING_TYPE["CAN_DELETE"] =
|
|
1166
|
-
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] =
|
|
1167
|
-
COMMON_SETTING_TYPE["MICROMETER"] =
|
|
1168
|
-
COMMON_SETTING_TYPE["PRECISION"] =
|
|
1169
|
-
COMMON_SETTING_TYPE["PERCENTAGE"] =
|
|
1170
|
-
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] =
|
|
1171
|
-
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] =
|
|
1172
|
-
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] =
|
|
1173
|
-
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] =
|
|
1174
|
-
COMMON_SETTING_TYPE["VIEW_FORM_MODEL_TYPE"] =
|
|
1175
|
-
COMMON_SETTING_TYPE["SERVER_PAGINATION"] =
|
|
1176
|
-
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] =
|
|
1177
|
-
COMMON_SETTING_TYPE["ENCRYPTED"] =
|
|
1178
|
-
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] =
|
|
1179
|
-
COMMON_SETTING_TYPE["REVISIONS_MODE"] =
|
|
1180
|
-
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] =
|
|
774
|
+
COMMON_SETTING_TYPE["DEFAULT_DISPLAY"] = 'defaultDisplay';
|
|
775
|
+
COMMON_SETTING_TYPE["REQUIRED"] = 'required';
|
|
776
|
+
COMMON_SETTING_TYPE["IS_HIDE"] = 'isHide';
|
|
777
|
+
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] = 'isShowUnit';
|
|
778
|
+
COMMON_SETTING_TYPE["IMD_SEARCH"] = 'immediatelySearch';
|
|
779
|
+
COMMON_SETTING_TYPE["MULTIPLE"] = 'multiple';
|
|
780
|
+
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] = 'submitSelectCurrency';
|
|
781
|
+
COMMON_SETTING_TYPE["CAPTION"] = 'caption';
|
|
782
|
+
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] = 'isHideCaption';
|
|
783
|
+
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] = 'defaultShowOptions';
|
|
784
|
+
COMMON_SETTING_TYPE["CAN_SEARCH"] = 'canSearch';
|
|
785
|
+
COMMON_SETTING_TYPE["CAN_CHECK"] = 'canCheck';
|
|
786
|
+
COMMON_SETTING_TYPE["CAN_EDIT"] = 'canEdit';
|
|
787
|
+
COMMON_SETTING_TYPE["CAN_DELETE"] = 'canDelete';
|
|
788
|
+
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] = 'showUpperCase';
|
|
789
|
+
COMMON_SETTING_TYPE["MICROMETER"] = 'micrometer';
|
|
790
|
+
COMMON_SETTING_TYPE["PRECISION"] = 'precision';
|
|
791
|
+
COMMON_SETTING_TYPE["PERCENTAGE"] = 'percentage';
|
|
792
|
+
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] = 'optionalLevel';
|
|
793
|
+
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] = 'containsSubNode';
|
|
794
|
+
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] = 'defaultCollapse';
|
|
795
|
+
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] = 'canViewForm';
|
|
796
|
+
COMMON_SETTING_TYPE["VIEW_FORM_MODEL_TYPE"] = 'viewFormModelType';
|
|
797
|
+
COMMON_SETTING_TYPE["SERVER_PAGINATION"] = 'serverPagination';
|
|
798
|
+
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] = 'isShowCaptionTip';
|
|
799
|
+
COMMON_SETTING_TYPE["ENCRYPTED"] = 'encrypted';
|
|
800
|
+
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] = 'isInlineEdit';
|
|
801
|
+
COMMON_SETTING_TYPE["REVISIONS_MODE"] = 'revisionsMode';
|
|
802
|
+
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] = 'allowCopyOptions';
|
|
1181
803
|
})(COMMON_SETTING_TYPE || (COMMON_SETTING_TYPE = {}));
|
|
1182
804
|
export var PAGE_STATUS;
|
|
1183
805
|
(function(PAGE_STATUS) {
|
|
@@ -1192,62 +814,31 @@ export var PAGE_STATUS;
|
|
|
1192
814
|
*/ export var OperationItem = function OperationItem(props) {
|
|
1193
815
|
"use strict";
|
|
1194
816
|
_classCallCheck(this, OperationItem);
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
* @defaultValue ''
|
|
1208
|
-
* @public
|
|
1209
|
-
*/ _defineProperty(this, "formKey", void 0);
|
|
1210
|
-
/**
|
|
1211
|
-
* 显示文字
|
|
1212
|
-
* @defaultValue ''
|
|
1213
|
-
* @public
|
|
1214
|
-
*/ _defineProperty(this, "content", void 0);
|
|
1215
|
-
/**
|
|
1216
|
-
* 打开方式
|
|
1217
|
-
* @defaultValue 'modal'
|
|
1218
|
-
* @public
|
|
1219
|
-
*/ _defineProperty(this, "openType", void 0);
|
|
1220
|
-
_defineProperty(this, "type", void 0);
|
|
1221
|
-
var _props_isShow;
|
|
1222
|
-
this.isShow = (_props_isShow = props === null || props === void 0 ? void 0 : props.isShow) !== null && _props_isShow !== void 0 ? _props_isShow : true;
|
|
1223
|
-
var _props_content;
|
|
1224
|
-
this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "";
|
|
1225
|
-
var _props_formKey;
|
|
1226
|
-
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
1227
|
-
var _props_openType;
|
|
1228
|
-
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : "modal";
|
|
1229
|
-
var _props_type;
|
|
1230
|
-
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "";
|
|
1231
|
-
var _props_priorityProcess;
|
|
1232
|
-
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : false;
|
|
817
|
+
var ref;
|
|
818
|
+
this.isShow = (ref = props === null || props === void 0 ? void 0 : props.isShow) !== null && ref !== void 0 ? ref : true;
|
|
819
|
+
var ref85;
|
|
820
|
+
this.content = (ref85 = props === null || props === void 0 ? void 0 : props.content) !== null && ref85 !== void 0 ? ref85 : '';
|
|
821
|
+
var ref86;
|
|
822
|
+
this.formKey = (ref86 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref86 !== void 0 ? ref86 : '';
|
|
823
|
+
var ref87;
|
|
824
|
+
this.openType = (ref87 = props === null || props === void 0 ? void 0 : props.openType) !== null && ref87 !== void 0 ? ref87 : 'modal';
|
|
825
|
+
var ref88;
|
|
826
|
+
this.type = (ref88 = props === null || props === void 0 ? void 0 : props.type) !== null && ref88 !== void 0 ? ref88 : '';
|
|
827
|
+
var ref89;
|
|
828
|
+
this.priorityProcess = (ref89 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && ref89 !== void 0 ? ref89 : false;
|
|
1233
829
|
};
|
|
1234
830
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
1235
831
|
"use strict";
|
|
1236
832
|
_classCallCheck(this, ViewOperationItem);
|
|
1237
|
-
var
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
1245
|
-
var _props_title;
|
|
1246
|
-
this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
1247
|
-
var _props_headers_map;
|
|
1248
|
-
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) {
|
|
833
|
+
var ref;
|
|
834
|
+
var ref90;
|
|
835
|
+
this.id = (ref90 = props === null || props === void 0 ? void 0 : props.id) !== null && ref90 !== void 0 ? ref90 : genNonDuplicateId(8);
|
|
836
|
+
var ref91;
|
|
837
|
+
this.title = (ref91 = props === null || props === void 0 ? void 0 : props.title) !== null && ref91 !== void 0 ? ref91 : '';
|
|
838
|
+
var ref92;
|
|
839
|
+
this.headers = (ref92 = props === null || props === void 0 ? void 0 : (ref = props.headers) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
1249
840
|
return new ListBindHeaderItem(item);
|
|
1250
|
-
})) !== null &&
|
|
841
|
+
})) !== null && ref92 !== void 0 ? ref92 : [];
|
|
1251
842
|
callFiltersAndOrders.call(this, props);
|
|
1252
843
|
};
|
|
1253
844
|
/**
|
|
@@ -1255,30 +846,20 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
1255
846
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
1256
847
|
"use strict";
|
|
1257
848
|
_classCallCheck(this, CustomPermissionItem);
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
* 权限名称
|
|
1263
|
-
*/ _defineProperty(this, "caption", void 0);
|
|
1264
|
-
var _props_key;
|
|
1265
|
-
this.key = (_props_key = props.key) !== null && _props_key !== void 0 ? _props_key : genNonDuplicateId(8);
|
|
1266
|
-
var _props_caption;
|
|
1267
|
-
this.caption = (_props_caption = props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
|
|
849
|
+
var _key;
|
|
850
|
+
this.key = (_key = props.key) !== null && _key !== void 0 ? _key : genNonDuplicateId(8);
|
|
851
|
+
var _caption;
|
|
852
|
+
this.caption = (_caption = props.caption) !== null && _caption !== void 0 ? _caption : '';
|
|
1268
853
|
};
|
|
1269
854
|
export var BaseStyle = function BaseStyle(props) {
|
|
1270
855
|
"use strict";
|
|
1271
856
|
_classCallCheck(this, BaseStyle);
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
var
|
|
1277
|
-
this.
|
|
1278
|
-
var
|
|
1279
|
-
this.
|
|
1280
|
-
var _props_widthConfig;
|
|
1281
|
-
this.widthConfig = (_props_widthConfig = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && _props_widthConfig !== void 0 ? _props_widthConfig : "fill";
|
|
1282
|
-
var _props_heightConfig;
|
|
1283
|
-
this.heightConfig = (_props_heightConfig = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && _props_heightConfig !== void 0 ? _props_heightConfig : "fill";
|
|
857
|
+
var ref;
|
|
858
|
+
this.width = (ref = props === null || props === void 0 ? void 0 : props.width) !== null && ref !== void 0 ? ref : '';
|
|
859
|
+
var ref93;
|
|
860
|
+
this.height = (ref93 = props === null || props === void 0 ? void 0 : props.height) !== null && ref93 !== void 0 ? ref93 : '';
|
|
861
|
+
var ref94;
|
|
862
|
+
this.widthConfig = (ref94 = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && ref94 !== void 0 ? ref94 : 'fill';
|
|
863
|
+
var ref95;
|
|
864
|
+
this.heightConfig = (ref95 = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && ref95 !== void 0 ? ref95 : 'fill';
|
|
1284
865
|
};
|