@byteluck-fe/model-driven-core 2.6.0-alpha.4 → 2.6.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/api-doc-index.js +4 -4
- package/dist/esm/common/BaseControl/designer.js +225 -305
- package/dist/esm/common/BaseControl/index.js +7 -7
- package/dist/esm/common/BaseControl/property.js +9 -9
- package/dist/esm/common/BaseControl/runtime.js +16 -16
- package/dist/esm/common/ColumnControl/designer.js +5 -5
- package/dist/esm/common/ColumnControl/index.js +6 -6
- package/dist/esm/common/ColumnControl/property.js +36 -36
- package/dist/esm/common/ColumnControl/runtime.js +5 -5
- package/dist/esm/common/ControlArray.js +8 -8
- package/dist/esm/common/FormControl/designer.js +8 -8
- package/dist/esm/common/FormControl/index.js +6 -6
- package/dist/esm/common/FormControl/property.js +66 -66
- package/dist/esm/common/FormControl/runtime.js +5 -5
- package/dist/esm/common/LayoutControl/designer.js +102 -196
- 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 -7
- package/dist/esm/common/ListControl/designer.js +84 -184
- package/dist/esm/common/ListControl/index.js +6 -6
- package/dist/esm/common/ListControl/property.js +5 -5
- package/dist/esm/common/ListControl/runtime.js +7 -7
- package/dist/esm/common/SearchViewControl/designer.js +5 -5
- package/dist/esm/common/SearchViewControl/index.js +6 -6
- package/dist/esm/common/SearchViewControl/property.js +4 -4
- package/dist/esm/common/SearchViewControl/runtime.js +5 -5
- package/dist/esm/common/Validator.js +5 -5
- package/dist/esm/common/WrapControl/designer.js +5 -5
- 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 -5
- 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 +179 -122
- package/dist/esm/framework/index.js +326 -326
- package/dist/esm/index.js +3 -3
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +4 -4
- package/dist/types/common/BaseControl/designer.d.ts +62 -62
- package/dist/types/common/BaseControl/index.d.ts +13 -13
- package/dist/types/common/BaseControl/property.d.ts +22 -22
- package/dist/types/common/BaseControl/runtime.d.ts +22 -22
- package/dist/types/common/BaseControl/types.d.ts +35 -35
- package/dist/types/common/ColumnControl/designer.d.ts +10 -10
- package/dist/types/common/ColumnControl/index.d.ts +12 -12
- package/dist/types/common/ColumnControl/property.d.ts +73 -73
- package/dist/types/common/ColumnControl/runtime.d.ts +10 -10
- package/dist/types/common/ControlArray.d.ts +8 -8
- package/dist/types/common/FormControl/designer.d.ts +13 -13
- package/dist/types/common/FormControl/index.d.ts +12 -12
- package/dist/types/common/FormControl/property.d.ts +96 -96
- package/dist/types/common/FormControl/runtime.d.ts +11 -11
- package/dist/types/common/LayoutControl/designer.d.ts +21 -21
- package/dist/types/common/LayoutControl/index.d.ts +12 -12
- package/dist/types/common/LayoutControl/property.d.ts +6 -6
- package/dist/types/common/LayoutControl/runtime.d.ts +11 -11
- package/dist/types/common/ListControl/designer.d.ts +16 -16
- package/dist/types/common/ListControl/index.d.ts +12 -12
- package/dist/types/common/ListControl/property.d.ts +12 -12
- package/dist/types/common/ListControl/runtime.d.ts +12 -12
- package/dist/types/common/SearchViewControl/designer.d.ts +11 -11
- package/dist/types/common/SearchViewControl/index.d.ts +12 -12
- package/dist/types/common/SearchViewControl/property.d.ts +8 -8
- package/dist/types/common/SearchViewControl/runtime.d.ts +11 -11
- package/dist/types/common/Validator.d.ts +15 -15
- package/dist/types/common/WrapControl/designer.d.ts +11 -11
- package/dist/types/common/WrapControl/index.d.ts +12 -12
- package/dist/types/common/WrapControl/property.d.ts +6 -6
- package/dist/types/common/WrapControl/runtime.d.ts +11 -11
- package/dist/types/common/controlHooksEmitter.d.ts +4 -4
- package/dist/types/common/index.d.ts +12 -12
- package/dist/types/common/initLinkOperationRules.d.ts +6 -6
- package/dist/types/common/initOptionAndDataSourceRules.d.ts +10 -10
- package/dist/types/framework/RegisterControls.d.ts +33 -33
- package/dist/types/framework/index.d.ts +616 -616
- package/dist/types/index.d.ts +3 -3
- package/dist/types/type.d.ts +91 -91
- package/package.json +3 -3
|
@@ -30,7 +30,7 @@ function _inherits(subClass, superClass) {
|
|
|
30
30
|
}
|
|
31
31
|
function _instanceof(left, right) {
|
|
32
32
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
33
|
-
return
|
|
33
|
+
return right[Symbol.hasInstance](left);
|
|
34
34
|
} else {
|
|
35
35
|
return left instanceof right;
|
|
36
36
|
}
|
|
@@ -76,29 +76,29 @@ function _createSuper(Derived) {
|
|
|
76
76
|
return _possibleConstructorReturn(this, result);
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
import { FieldTypes, genNonDuplicateId } from
|
|
80
|
-
export * from
|
|
79
|
+
import { FieldTypes, genNonDuplicateId } from '@byteluck-fe/model-driven-shared';
|
|
80
|
+
export * from './RegisterControls';
|
|
81
81
|
/**
|
|
82
82
|
* 数据绑定配置
|
|
83
83
|
* @public
|
|
84
84
|
*/ export var DataBind = function DataBind(props) {
|
|
85
85
|
"use strict";
|
|
86
86
|
_classCallCheck(this, DataBind);
|
|
87
|
-
var
|
|
88
|
-
this.dataCode = (
|
|
89
|
-
var
|
|
90
|
-
this.fieldCode = (
|
|
91
|
-
var
|
|
92
|
-
this.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 : '';
|
|
93
93
|
};
|
|
94
94
|
export var AutoWidth = function AutoWidth(props) {
|
|
95
95
|
"use strict";
|
|
96
96
|
_classCallCheck(this, AutoWidth);
|
|
97
|
-
var
|
|
98
|
-
this.minWidth = (
|
|
97
|
+
var ref;
|
|
98
|
+
this.minWidth = (ref = props === null || props === void 0 ? void 0 : props.minWidth) !== null && ref !== void 0 ? ref : 150;
|
|
99
99
|
this.maxWidth = props === null || props === void 0 ? void 0 : props.maxWidth;
|
|
100
|
-
var
|
|
101
|
-
this.flex = (
|
|
100
|
+
var ref3;
|
|
101
|
+
this.flex = (ref3 = props === null || props === void 0 ? void 0 : props.flex) !== null && ref3 !== void 0 ? ref3 : 1;
|
|
102
102
|
};
|
|
103
103
|
export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
104
104
|
"use strict";
|
|
@@ -108,10 +108,10 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
108
108
|
_classCallCheck(this, MetaWidth);
|
|
109
109
|
var _this;
|
|
110
110
|
_this = _super.call(this, props);
|
|
111
|
-
var
|
|
112
|
-
_this.width = (
|
|
113
|
-
var
|
|
114
|
-
_this.widthType = (
|
|
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';
|
|
115
115
|
return _this;
|
|
116
116
|
}
|
|
117
117
|
return MetaWidth;
|
|
@@ -128,20 +128,20 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
128
128
|
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
129
129
|
"use strict";
|
|
130
130
|
_classCallCheck(this, DataStorageDoc);
|
|
131
|
-
var
|
|
132
|
-
this.type = (
|
|
133
|
-
var
|
|
134
|
-
this.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 : [];
|
|
135
135
|
};
|
|
136
136
|
export var FormBind = function FormBind(props) {
|
|
137
137
|
"use strict";
|
|
138
138
|
_classCallCheck(this, FormBind);
|
|
139
|
-
var
|
|
140
|
-
this.dataCode = (
|
|
141
|
-
var
|
|
142
|
-
this.formKey = (
|
|
143
|
-
var
|
|
144
|
-
this.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 : '';
|
|
145
145
|
};
|
|
146
146
|
export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
147
147
|
"use strict";
|
|
@@ -151,8 +151,8 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
151
151
|
_classCallCheck(this, FormSelectBind);
|
|
152
152
|
var _this;
|
|
153
153
|
_this = _super.call(this, props);
|
|
154
|
-
var
|
|
155
|
-
_this.primaryControlId = (
|
|
154
|
+
var ref;
|
|
155
|
+
_this.primaryControlId = (ref = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && ref !== void 0 ? ref : '';
|
|
156
156
|
return _this;
|
|
157
157
|
}
|
|
158
158
|
return FormSelectBind;
|
|
@@ -160,33 +160,33 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
160
160
|
var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
161
161
|
"use strict";
|
|
162
162
|
_classCallCheck(this, ListBindHeaderItem);
|
|
163
|
-
var
|
|
164
|
-
this.fieldCode = (
|
|
163
|
+
var ref;
|
|
164
|
+
this.fieldCode = (ref = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref !== void 0 ? ref : '';
|
|
165
165
|
};
|
|
166
166
|
/**
|
|
167
167
|
* 列表绑定配置
|
|
168
168
|
*/ export var ListBind = function ListBind(props) {
|
|
169
169
|
"use strict";
|
|
170
170
|
_classCallCheck(this, ListBind);
|
|
171
|
-
var
|
|
172
|
-
var
|
|
173
|
-
this.appId = (
|
|
174
|
-
var
|
|
175
|
-
this.formKey = (
|
|
176
|
-
var
|
|
177
|
-
this.headers = (
|
|
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) {
|
|
178
178
|
return new ListBindHeaderItem(item);
|
|
179
|
-
})) !== null &&
|
|
179
|
+
})) !== null && ref10 !== void 0 ? ref10 : [];
|
|
180
180
|
};
|
|
181
181
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
182
182
|
"use strict";
|
|
183
183
|
_classCallCheck(this, FieldBindItem);
|
|
184
|
-
var
|
|
185
|
-
this.fieldName = (
|
|
186
|
-
var
|
|
187
|
-
this.fieldCode = (
|
|
188
|
-
var
|
|
189
|
-
this.fieldType = (
|
|
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;
|
|
190
190
|
};
|
|
191
191
|
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
192
192
|
"use strict";
|
|
@@ -196,14 +196,14 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
196
196
|
_classCallCheck(this, SubListItem);
|
|
197
197
|
var _this;
|
|
198
198
|
_this = _super.call(this, props);
|
|
199
|
-
var
|
|
200
|
-
_this.title = (
|
|
201
|
-
var
|
|
202
|
-
_this.svcCode = (
|
|
203
|
-
var
|
|
204
|
-
_this.isOpenFilter = (
|
|
205
|
-
var
|
|
206
|
-
_this.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 : [];
|
|
207
207
|
return _this;
|
|
208
208
|
}
|
|
209
209
|
return SubListItem;
|
|
@@ -211,17 +211,17 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
211
211
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
212
212
|
"use strict";
|
|
213
213
|
_classCallCheck(this, SubListPageConfig);
|
|
214
|
-
var
|
|
215
|
-
this.type =
|
|
214
|
+
var ref, ref16;
|
|
215
|
+
this.type = 'sublist-page';
|
|
216
216
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
217
|
-
var
|
|
218
|
-
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) {
|
|
219
219
|
return new FieldBindItem(item);
|
|
220
|
-
})) !== null &&
|
|
221
|
-
var
|
|
222
|
-
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) {
|
|
223
223
|
return new SubListItem(item);
|
|
224
|
-
})) !== null &&
|
|
224
|
+
})) !== null && ref18 !== void 0 ? ref18 : [];
|
|
225
225
|
};
|
|
226
226
|
export var LeftVariable = function LeftVariable(props) {
|
|
227
227
|
"use strict";
|
|
@@ -232,37 +232,37 @@ export var LeftVariable = function LeftVariable(props) {
|
|
|
232
232
|
export var RightVariable = function RightVariable(props) {
|
|
233
233
|
"use strict";
|
|
234
234
|
_classCallCheck(this, RightVariable);
|
|
235
|
-
var
|
|
236
|
-
this.type = (
|
|
237
|
-
var
|
|
238
|
-
this.value = (
|
|
239
|
-
var
|
|
240
|
-
this.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 : [];
|
|
241
241
|
};
|
|
242
242
|
export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
243
243
|
"use strict";
|
|
244
|
-
var _this = this;
|
|
245
244
|
_classCallCheck(this, FieldFilterConditions);
|
|
246
|
-
this.type =
|
|
247
|
-
var
|
|
248
|
-
this.id = (
|
|
249
|
-
var
|
|
250
|
-
this.ruleId = (
|
|
251
|
-
var
|
|
252
|
-
this.level = (
|
|
253
|
-
var
|
|
254
|
-
this.value = (
|
|
245
|
+
this.type = 'conditions';
|
|
246
|
+
var ref25;
|
|
247
|
+
this.id = (ref25 = props === null || props === void 0 ? void 0 : props.id) !== null && ref25 !== void 0 ? ref25 : genNonDuplicateId();
|
|
248
|
+
var ref21;
|
|
249
|
+
this.ruleId = (ref21 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && ref21 !== void 0 ? ref21 : new Date().valueOf();
|
|
250
|
+
var ref22;
|
|
251
|
+
this.level = (ref22 = props === null || props === void 0 ? void 0 : props.level) !== null && ref22 !== void 0 ? ref22 : 0;
|
|
252
|
+
var ref23;
|
|
253
|
+
this.value = (ref23 = props === null || props === void 0 ? void 0 : props.value) !== null && ref23 !== void 0 ? ref23 : 'and';
|
|
255
254
|
this.children = [];
|
|
256
255
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
256
|
+
var _this = this;
|
|
257
257
|
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
258
258
|
if (item.children !== undefined) {
|
|
259
|
-
var
|
|
259
|
+
var ref;
|
|
260
260
|
var filter = new FieldFilterConditions(item);
|
|
261
|
-
(
|
|
261
|
+
(ref = _this.children) === null || ref === void 0 ? void 0 : ref.push(filter);
|
|
262
262
|
} else {
|
|
263
|
-
var
|
|
263
|
+
var ref24;
|
|
264
264
|
var filter1 = new FieldFilterCondition(item);
|
|
265
|
-
(
|
|
265
|
+
(ref24 = _this.children) === null || ref24 === void 0 ? void 0 : ref24.push(filter1);
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
268
|
}
|
|
@@ -270,17 +270,17 @@ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
|
270
270
|
export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
271
271
|
"use strict";
|
|
272
272
|
_classCallCheck(this, FieldFilterCondition);
|
|
273
|
-
this.type =
|
|
274
|
-
var
|
|
275
|
-
this.id = (
|
|
276
|
-
var
|
|
277
|
-
this.ruleId = (
|
|
278
|
-
var
|
|
279
|
-
this.symbol = (
|
|
280
|
-
var
|
|
281
|
-
this.checked = (
|
|
282
|
-
var
|
|
283
|
-
this.describe = (
|
|
273
|
+
this.type = 'condition';
|
|
274
|
+
var ref;
|
|
275
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId();
|
|
276
|
+
var ref26;
|
|
277
|
+
this.ruleId = (ref26 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && ref26 !== void 0 ? ref26 : new Date().valueOf();
|
|
278
|
+
var ref27;
|
|
279
|
+
this.symbol = (ref27 = props === null || props === void 0 ? void 0 : props.symbol) !== null && ref27 !== void 0 ? ref27 : '';
|
|
280
|
+
var ref28;
|
|
281
|
+
this.checked = (ref28 = props === null || props === void 0 ? void 0 : props.checked) !== null && ref28 !== void 0 ? ref28 : false;
|
|
282
|
+
var ref29;
|
|
283
|
+
this.describe = (ref29 = props === null || props === void 0 ? void 0 : props.describe) !== null && ref29 !== void 0 ? ref29 : '';
|
|
284
284
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
285
285
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
286
286
|
};
|
|
@@ -290,86 +290,86 @@ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
|
290
290
|
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
291
291
|
"use strict";
|
|
292
292
|
_classCallCheck(this, MultistageFillingItem);
|
|
293
|
-
var
|
|
294
|
-
this.controlId = (
|
|
295
|
-
var
|
|
296
|
-
this.fieldCode = (
|
|
297
|
-
var
|
|
298
|
-
this.fieldType = (
|
|
299
|
-
var
|
|
300
|
-
this.propName = (
|
|
293
|
+
var ref;
|
|
294
|
+
this.controlId = (ref = props === null || props === void 0 ? void 0 : props.controlId) !== null && ref !== void 0 ? ref : '';
|
|
295
|
+
var ref30;
|
|
296
|
+
this.fieldCode = (ref30 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref30 !== void 0 ? ref30 : '';
|
|
297
|
+
var ref31;
|
|
298
|
+
this.fieldType = (ref31 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref31 !== void 0 ? ref31 : '';
|
|
299
|
+
var ref32;
|
|
300
|
+
this.propName = (ref32 = props === null || props === void 0 ? void 0 : props.propName) !== null && ref32 !== void 0 ? ref32 : '';
|
|
301
301
|
};
|
|
302
302
|
export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
303
303
|
"use strict";
|
|
304
304
|
_classCallCheck(this, DisplayBoListItem);
|
|
305
|
-
var
|
|
306
|
-
this.type = (
|
|
307
|
-
var
|
|
308
|
-
this.value = (
|
|
305
|
+
var ref;
|
|
306
|
+
this.type = (ref = props === null || props === void 0 ? void 0 : props.type) !== null && ref !== void 0 ? ref : 'FIELD';
|
|
307
|
+
var ref33;
|
|
308
|
+
this.value = (ref33 = props === null || props === void 0 ? void 0 : props.value) !== null && ref33 !== void 0 ? ref33 : '';
|
|
309
309
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
310
310
|
};
|
|
311
311
|
export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
312
312
|
"use strict";
|
|
313
313
|
_classCallCheck(this, DataSourceOrderItem);
|
|
314
|
-
var
|
|
315
|
-
this.columnName = (
|
|
316
|
-
var
|
|
317
|
-
this.desc = (
|
|
314
|
+
var _columnName;
|
|
315
|
+
this.columnName = (_columnName = props.columnName) !== null && _columnName !== void 0 ? _columnName : '';
|
|
316
|
+
var _desc;
|
|
317
|
+
this.desc = (_desc = props.desc) !== null && _desc !== void 0 ? _desc : false;
|
|
318
318
|
};
|
|
319
319
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
320
320
|
"use strict";
|
|
321
321
|
_classCallCheck(this, DataSourceDataSetValue);
|
|
322
|
-
var
|
|
323
|
-
this.code = (
|
|
324
|
-
var
|
|
325
|
-
this.value = (
|
|
326
|
-
var
|
|
327
|
-
this.field_type = (
|
|
322
|
+
var _code;
|
|
323
|
+
this.code = (_code = props.code) !== null && _code !== void 0 ? _code : '';
|
|
324
|
+
var _value;
|
|
325
|
+
this.value = (_value = props.value) !== null && _value !== void 0 ? _value : '';
|
|
326
|
+
var _field_type;
|
|
327
|
+
this.field_type = (_field_type = props.field_type) !== null && _field_type !== void 0 ? _field_type : FieldTypes.ANY;
|
|
328
328
|
};
|
|
329
329
|
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
330
330
|
"use strict";
|
|
331
331
|
_classCallCheck(this, DataSourceParamItem);
|
|
332
|
-
var
|
|
333
|
-
var
|
|
332
|
+
var ref, ref34;
|
|
333
|
+
var _id;
|
|
334
334
|
//字段ID,不可以当作随机数生成唯一编号
|
|
335
|
-
this.id = (
|
|
336
|
-
var
|
|
337
|
-
this.limit = (
|
|
338
|
-
var
|
|
339
|
-
this.formKey = (
|
|
340
|
-
var
|
|
341
|
-
this.orders = (
|
|
335
|
+
this.id = (_id = props.id) !== null && _id !== void 0 ? _id : '';
|
|
336
|
+
var _limit;
|
|
337
|
+
this.limit = (_limit = props.limit) !== null && _limit !== void 0 ? _limit : 20;
|
|
338
|
+
var _formKey;
|
|
339
|
+
this.formKey = (_formKey = props.formKey) !== null && _formKey !== void 0 ? _formKey : '';
|
|
340
|
+
var ref35;
|
|
341
|
+
this.orders = (ref35 = (ref = props.orders) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
342
342
|
return new DataSourceOrderItem(item);
|
|
343
|
-
})) !== null &&
|
|
344
|
-
var
|
|
345
|
-
this.dataSet = (
|
|
343
|
+
})) !== null && ref35 !== void 0 ? ref35 : [];
|
|
344
|
+
var ref36;
|
|
345
|
+
this.dataSet = (ref36 = (ref34 = props.dataSet) === null || ref34 === void 0 ? void 0 : ref34.map(function(item) {
|
|
346
346
|
return new DataSourceDataSetValue(item);
|
|
347
|
-
})) !== null &&
|
|
347
|
+
})) !== null && ref36 !== void 0 ? ref36 : [];
|
|
348
348
|
};
|
|
349
349
|
/**
|
|
350
350
|
* 给filters和orders赋值
|
|
351
351
|
* */ function callFiltersAndOrders(props) {
|
|
352
|
-
var
|
|
353
|
-
var
|
|
354
|
-
this.filters = (
|
|
352
|
+
var ref, ref37;
|
|
353
|
+
var ref38;
|
|
354
|
+
this.filters = (ref38 = props === null || props === void 0 ? void 0 : (ref = props.filters) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
355
355
|
if (item.children !== undefined) {
|
|
356
356
|
return new FieldFilterConditions(item);
|
|
357
357
|
}
|
|
358
358
|
return new FieldFilterCondition(item);
|
|
359
|
-
})) !== null &&
|
|
360
|
-
var
|
|
361
|
-
this.viewFilters = (
|
|
359
|
+
})) !== null && ref38 !== void 0 ? ref38 : [];
|
|
360
|
+
var ref39;
|
|
361
|
+
this.viewFilters = (ref39 = props === null || props === void 0 ? void 0 : (ref37 = props.viewFilters) === null || ref37 === void 0 ? void 0 : ref37.map(function(item) {
|
|
362
362
|
if (item.children !== undefined) {
|
|
363
363
|
return new FieldFilterConditions(item);
|
|
364
364
|
}
|
|
365
365
|
return new FieldFilterCondition(item);
|
|
366
|
-
})) !== null &&
|
|
366
|
+
})) !== null && ref39 !== void 0 ? ref39 : [];
|
|
367
367
|
if (_instanceof(this, DataSourceBind) || _instanceof(this, FillPayloadBind)) {
|
|
368
|
-
var
|
|
369
|
-
var
|
|
370
|
-
this.orders = (
|
|
368
|
+
var ref40, ref41;
|
|
369
|
+
var ref42;
|
|
370
|
+
this.orders = (ref42 = (ref40 = props) === null || ref40 === void 0 ? void 0 : (ref41 = ref40.orders) === null || ref41 === void 0 ? void 0 : ref41.map(function(item) {
|
|
371
371
|
return new DataSourceOrderItem(item);
|
|
372
|
-
})) !== null &&
|
|
372
|
+
})) !== null && ref42 !== void 0 ? ref42 : [];
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
/**
|
|
@@ -377,73 +377,73 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
377
377
|
* @public
|
|
378
378
|
*/ export var DataSourceBind = function DataSourceBind(props) {
|
|
379
379
|
"use strict";
|
|
380
|
-
var _this = this;
|
|
381
380
|
_classCallCheck(this, DataSourceBind);
|
|
382
|
-
var
|
|
383
|
-
this.dataCode = (
|
|
384
|
-
var
|
|
385
|
-
this.appId = (
|
|
386
|
-
var
|
|
387
|
-
this.valueFieldCode = (
|
|
381
|
+
var ref48;
|
|
382
|
+
this.dataCode = (ref48 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref48 !== void 0 ? ref48 : '';
|
|
383
|
+
var ref43;
|
|
384
|
+
this.appId = (ref43 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref43 !== void 0 ? ref43 : '';
|
|
385
|
+
var ref44;
|
|
386
|
+
this.valueFieldCode = (ref44 = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && ref44 !== void 0 ? ref44 : '';
|
|
388
387
|
this.displayBoList = [];
|
|
389
|
-
var
|
|
390
|
-
this.isOpenViewFilters = (
|
|
388
|
+
var ref45;
|
|
389
|
+
this.isOpenViewFilters = (ref45 = props === null || props === void 0 ? void 0 : props.isOpenViewFilters) !== null && ref45 !== void 0 ? ref45 : 0;
|
|
391
390
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
391
|
+
var _this = this;
|
|
392
392
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
393
|
-
var
|
|
394
|
-
(
|
|
393
|
+
var ref;
|
|
394
|
+
(ref = _this.displayBoList) === null || ref === void 0 ? void 0 : ref.push(new DisplayBoListItem(item));
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
|
-
var
|
|
398
|
-
this.showOrder = (
|
|
399
|
-
var
|
|
400
|
-
this.svcCode = (
|
|
397
|
+
var ref46;
|
|
398
|
+
this.showOrder = (ref46 = props === null || props === void 0 ? void 0 : props.showOrder) !== null && ref46 !== void 0 ? ref46 : true;
|
|
399
|
+
var ref47;
|
|
400
|
+
this.svcCode = (ref47 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && ref47 !== void 0 ? ref47 : '';
|
|
401
401
|
callFiltersAndOrders.call(this, props);
|
|
402
402
|
};
|
|
403
403
|
export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
404
404
|
"use strict";
|
|
405
405
|
_classCallCheck(this, SelectedContentConfig);
|
|
406
|
-
var
|
|
407
|
-
this.dataCode = (
|
|
408
|
-
var
|
|
409
|
-
this.displayBoList = (
|
|
406
|
+
var ref;
|
|
407
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : '';
|
|
408
|
+
var ref49;
|
|
409
|
+
this.displayBoList = (ref49 = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && ref49 !== void 0 ? ref49 : [];
|
|
410
410
|
};
|
|
411
411
|
export var LinkOperationOption = function LinkOperationOption(props) {
|
|
412
412
|
"use strict";
|
|
413
413
|
_classCallCheck(this, LinkOperationOption);
|
|
414
|
-
var
|
|
415
|
-
this.code = (
|
|
416
|
-
var
|
|
417
|
-
this.color = (
|
|
418
|
-
var
|
|
419
|
-
this.command = (
|
|
420
|
-
var
|
|
421
|
-
this.confirmMessage = (
|
|
422
|
-
var
|
|
423
|
-
this.defaultState = (
|
|
424
|
-
var
|
|
425
|
-
this.formKey = (
|
|
426
|
-
var
|
|
427
|
-
this.icon = (
|
|
428
|
-
var
|
|
429
|
-
this.needConfirm = (
|
|
430
|
-
var
|
|
431
|
-
this.openType = (
|
|
432
|
-
var
|
|
433
|
-
this.priorityProcess = (
|
|
414
|
+
var ref;
|
|
415
|
+
this.code = (ref = props === null || props === void 0 ? void 0 : props.code) !== null && ref !== void 0 ? ref : 'view';
|
|
416
|
+
var ref50;
|
|
417
|
+
this.color = (ref50 = props === null || props === void 0 ? void 0 : props.color) !== null && ref50 !== void 0 ? ref50 : 'primary';
|
|
418
|
+
var ref51;
|
|
419
|
+
this.command = (ref51 = props === null || props === void 0 ? void 0 : props.command) !== null && ref51 !== void 0 ? ref51 : 'view';
|
|
420
|
+
var ref52;
|
|
421
|
+
this.confirmMessage = (ref52 = props === null || props === void 0 ? void 0 : props.confirmMessage) !== null && ref52 !== void 0 ? ref52 : undefined;
|
|
422
|
+
var ref53;
|
|
423
|
+
this.defaultState = (ref53 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && ref53 !== void 0 ? ref53 : 'default';
|
|
424
|
+
var ref54;
|
|
425
|
+
this.formKey = (ref54 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref54 !== void 0 ? ref54 : undefined;
|
|
426
|
+
var ref55;
|
|
427
|
+
this.icon = (ref55 = props === null || props === void 0 ? void 0 : props.icon) !== null && ref55 !== void 0 ? ref55 : 'iconliulan1';
|
|
428
|
+
var ref56;
|
|
429
|
+
this.needConfirm = (ref56 = props === null || props === void 0 ? void 0 : props.needConfirm) !== null && ref56 !== void 0 ? ref56 : false;
|
|
430
|
+
var ref57;
|
|
431
|
+
this.openType = (ref57 = props === null || props === void 0 ? void 0 : props.openType) !== null && ref57 !== void 0 ? ref57 : 'modal';
|
|
432
|
+
var ref58;
|
|
433
|
+
this.priorityProcess = (ref58 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && ref58 !== void 0 ? ref58 : true;
|
|
434
434
|
};
|
|
435
435
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
436
436
|
"use strict";
|
|
437
437
|
_classCallCheck(this, CustomAttributeItem);
|
|
438
|
-
var
|
|
439
|
-
var
|
|
440
|
-
this.name = (
|
|
441
|
-
var
|
|
442
|
-
this.key = (
|
|
443
|
-
var
|
|
444
|
-
this.value = (
|
|
438
|
+
var ref;
|
|
439
|
+
var ref59;
|
|
440
|
+
this.name = (ref59 = props === null || props === void 0 ? void 0 : props.name) !== null && ref59 !== void 0 ? ref59 : '';
|
|
441
|
+
var ref60;
|
|
442
|
+
this.key = (ref60 = props === null || props === void 0 ? void 0 : props.key) !== null && ref60 !== void 0 ? ref60 : '';
|
|
443
|
+
var ref61;
|
|
444
|
+
this.value = (ref61 = props === null || props === void 0 ? void 0 : (ref = props.value) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
445
445
|
return new DisplayBoListItem(item);
|
|
446
|
-
})) !== null &&
|
|
446
|
+
})) !== null && ref61 !== void 0 ? ref61 : [];
|
|
447
447
|
};
|
|
448
448
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
449
449
|
"use strict";
|
|
@@ -452,12 +452,12 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
452
452
|
function SuperDataSourceBind(props) {
|
|
453
453
|
_classCallCheck(this, SuperDataSourceBind);
|
|
454
454
|
var _this;
|
|
455
|
-
var
|
|
455
|
+
var ref;
|
|
456
456
|
_this = _super.call(this, props);
|
|
457
|
-
var
|
|
458
|
-
_this.attributes = (
|
|
457
|
+
var ref62;
|
|
458
|
+
_this.attributes = (ref62 = props === null || props === void 0 ? void 0 : (ref = props.attributes) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
459
459
|
return new CustomAttributeItem(item);
|
|
460
|
-
})) !== null &&
|
|
460
|
+
})) !== null && ref62 !== void 0 ? ref62 : [];
|
|
461
461
|
return _this;
|
|
462
462
|
}
|
|
463
463
|
return SuperDataSourceBind;
|
|
@@ -469,14 +469,14 @@ export var OrganizationDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
469
469
|
function OrganizationDataSourceBind(props) {
|
|
470
470
|
_classCallCheck(this, OrganizationDataSourceBind);
|
|
471
471
|
var _this;
|
|
472
|
-
var
|
|
472
|
+
var ref;
|
|
473
473
|
_this = _super.call(this, props);
|
|
474
|
-
var
|
|
475
|
-
_this.attributes = (
|
|
474
|
+
var ref63;
|
|
475
|
+
_this.attributes = (ref63 = props === null || props === void 0 ? void 0 : (ref = props.attributes) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
476
476
|
return new CustomAttributeItem(item);
|
|
477
|
-
})) !== null &&
|
|
478
|
-
var
|
|
479
|
-
_this.formCode = (
|
|
477
|
+
})) !== null && ref63 !== void 0 ? ref63 : [];
|
|
478
|
+
var ref64;
|
|
479
|
+
_this.formCode = (ref64 = props === null || props === void 0 ? void 0 : props.formCode) !== null && ref64 !== void 0 ? ref64 : '';
|
|
480
480
|
return _this;
|
|
481
481
|
}
|
|
482
482
|
return OrganizationDataSourceBind;
|
|
@@ -490,8 +490,8 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
490
490
|
var _this;
|
|
491
491
|
_this = _super.call(this, props);
|
|
492
492
|
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
493
|
-
var
|
|
494
|
-
_this.filterCode = (
|
|
493
|
+
var ref;
|
|
494
|
+
_this.filterCode = (ref = props === null || props === void 0 ? void 0 : props.filterCode) !== null && ref !== void 0 ? ref : '';
|
|
495
495
|
return _this;
|
|
496
496
|
}
|
|
497
497
|
return TreeDataSourceBind;
|
|
@@ -499,15 +499,15 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
499
499
|
var FillBind = function FillBind(props) {
|
|
500
500
|
"use strict";
|
|
501
501
|
_classCallCheck(this, FillBind);
|
|
502
|
-
var
|
|
503
|
-
var
|
|
504
|
-
this.dataCode = (
|
|
505
|
-
var
|
|
506
|
-
this.appId = (
|
|
507
|
-
var
|
|
508
|
-
this.fillList = (
|
|
502
|
+
var ref;
|
|
503
|
+
var ref65;
|
|
504
|
+
this.dataCode = (ref65 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref65 !== void 0 ? ref65 : '';
|
|
505
|
+
var ref66;
|
|
506
|
+
this.appId = (ref66 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref66 !== void 0 ? ref66 : '';
|
|
507
|
+
var ref67;
|
|
508
|
+
this.fillList = (ref67 = props === null || props === void 0 ? void 0 : (ref = props.fillList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
509
509
|
return new MultistageFillingItem(item);
|
|
510
|
-
})) !== null &&
|
|
510
|
+
})) !== null && ref67 !== void 0 ? ref67 : [];
|
|
511
511
|
};
|
|
512
512
|
/**
|
|
513
513
|
* FillPayloadBind 填充配置
|
|
@@ -537,10 +537,10 @@ var FillBind = function FillBind(props) {
|
|
|
537
537
|
_classCallCheck(this, FillBackBind);
|
|
538
538
|
var _this;
|
|
539
539
|
_this = _super.call(this, props);
|
|
540
|
-
var
|
|
541
|
-
_this.mode = (
|
|
542
|
-
var
|
|
543
|
-
_this.multiple = (
|
|
540
|
+
var ref;
|
|
541
|
+
_this.mode = (ref = props === null || props === void 0 ? void 0 : props.mode) !== null && ref !== void 0 ? ref : 'current';
|
|
542
|
+
var ref68;
|
|
543
|
+
_this.multiple = (ref68 = props === null || props === void 0 ? void 0 : props.multiple) !== null && ref68 !== void 0 ? ref68 : false;
|
|
544
544
|
return _this;
|
|
545
545
|
}
|
|
546
546
|
return FillBackBind;
|
|
@@ -548,22 +548,22 @@ var FillBind = function FillBind(props) {
|
|
|
548
548
|
export var Language = function Language(props) {
|
|
549
549
|
"use strict";
|
|
550
550
|
_classCallCheck(this, Language);
|
|
551
|
-
var
|
|
552
|
-
this.zh = (
|
|
553
|
-
var
|
|
554
|
-
this.en = (
|
|
555
|
-
var
|
|
556
|
-
this.ja = (
|
|
551
|
+
var ref;
|
|
552
|
+
this.zh = (ref = props === null || props === void 0 ? void 0 : props.zh) !== null && ref !== void 0 ? ref : '';
|
|
553
|
+
var ref69;
|
|
554
|
+
this.en = (ref69 = props === null || props === void 0 ? void 0 : props.en) !== null && ref69 !== void 0 ? ref69 : '';
|
|
555
|
+
var ref70;
|
|
556
|
+
this.ja = (ref70 = props === null || props === void 0 ? void 0 : props.ja) !== null && ref70 !== void 0 ? ref70 : '';
|
|
557
557
|
};
|
|
558
558
|
export var RegularRules = function RegularRules(props) {
|
|
559
559
|
"use strict";
|
|
560
560
|
_classCallCheck(this, RegularRules);
|
|
561
|
-
var
|
|
562
|
-
this.stencilName = (
|
|
563
|
-
var
|
|
564
|
-
this.expression = (
|
|
565
|
-
var
|
|
566
|
-
this.errMessage = (
|
|
561
|
+
var ref;
|
|
562
|
+
this.stencilName = (ref = props === null || props === void 0 ? void 0 : props.stencilName) !== null && ref !== void 0 ? ref : '';
|
|
563
|
+
var ref71;
|
|
564
|
+
this.expression = (ref71 = props === null || props === void 0 ? void 0 : props.expression) !== null && ref71 !== void 0 ? ref71 : '';
|
|
565
|
+
var ref72;
|
|
566
|
+
this.errMessage = (ref72 = props === null || props === void 0 ? void 0 : props.errMessage) !== null && ref72 !== void 0 ? ref72 : '';
|
|
567
567
|
};
|
|
568
568
|
/**
|
|
569
569
|
* 选项设置-自定义选项
|
|
@@ -571,12 +571,12 @@ export var RegularRules = function RegularRules(props) {
|
|
|
571
571
|
*/ export var OptionSetting = function OptionSetting(props) {
|
|
572
572
|
"use strict";
|
|
573
573
|
_classCallCheck(this, OptionSetting);
|
|
574
|
-
var
|
|
575
|
-
this.id = (
|
|
576
|
-
var
|
|
577
|
-
this.label = (
|
|
578
|
-
var
|
|
579
|
-
this.value = (
|
|
574
|
+
var ref;
|
|
575
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId(8);
|
|
576
|
+
var ref73;
|
|
577
|
+
this.label = (ref73 = props === null || props === void 0 ? void 0 : props.label) !== null && ref73 !== void 0 ? ref73 : '';
|
|
578
|
+
var ref74;
|
|
579
|
+
this.value = (ref74 = props === null || props === void 0 ? void 0 : props.value) !== null && ref74 !== void 0 ? ref74 : this.label;
|
|
580
580
|
};
|
|
581
581
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
582
582
|
"use strict";
|
|
@@ -586,25 +586,25 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
586
586
|
_classCallCheck(this, ImageOptionSetting);
|
|
587
587
|
var _this;
|
|
588
588
|
_this = _super.call(this, props);
|
|
589
|
-
var
|
|
590
|
-
_this.image = (
|
|
591
|
-
var
|
|
592
|
-
_this.type = (
|
|
589
|
+
var ref;
|
|
590
|
+
_this.image = (ref = props === null || props === void 0 ? void 0 : props.image) !== null && ref !== void 0 ? ref : '';
|
|
591
|
+
var ref75;
|
|
592
|
+
_this.type = (ref75 = props === null || props === void 0 ? void 0 : props.type) !== null && ref75 !== void 0 ? ref75 : 'src';
|
|
593
593
|
return _this;
|
|
594
594
|
}
|
|
595
595
|
return ImageOptionSetting;
|
|
596
596
|
}(OptionSetting);
|
|
597
597
|
export function initOptions(options) {
|
|
598
|
-
var
|
|
599
|
-
return (
|
|
598
|
+
var ref;
|
|
599
|
+
return (ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
600
600
|
return new OptionSetting(item);
|
|
601
|
-
})) !== null &&
|
|
601
|
+
})) !== null && ref !== void 0 ? ref : [];
|
|
602
602
|
}
|
|
603
603
|
export function initImageOptions(options) {
|
|
604
|
-
var
|
|
605
|
-
return (
|
|
604
|
+
var ref;
|
|
605
|
+
return (ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
606
606
|
return new ImageOptionSetting(item);
|
|
607
|
-
})) !== null &&
|
|
607
|
+
})) !== null && ref !== void 0 ? ref : [];
|
|
608
608
|
}
|
|
609
609
|
export var ObjectDataBind = function ObjectDataBind() {
|
|
610
610
|
"use strict";
|
|
@@ -627,10 +627,10 @@ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
627
627
|
export var AmountValue = function AmountValue(props) {
|
|
628
628
|
"use strict";
|
|
629
629
|
_classCallCheck(this, AmountValue);
|
|
630
|
-
var
|
|
631
|
-
this.amount = (
|
|
632
|
-
var
|
|
633
|
-
this.currency = (
|
|
630
|
+
var ref;
|
|
631
|
+
this.amount = (ref = props === null || props === void 0 ? void 0 : props.amount) !== null && ref !== void 0 ? ref : '';
|
|
632
|
+
var ref76;
|
|
633
|
+
this.currency = (ref76 = props === null || props === void 0 ? void 0 : props.currency) !== null && ref76 !== void 0 ? ref76 : AMOUNT_TYPE.CNY;
|
|
634
634
|
};
|
|
635
635
|
export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
636
636
|
"use strict";
|
|
@@ -649,26 +649,26 @@ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
649
649
|
export var RangeDateValue = function RangeDateValue(props) {
|
|
650
650
|
"use strict";
|
|
651
651
|
_classCallCheck(this, RangeDateValue);
|
|
652
|
-
var
|
|
653
|
-
this.min = (
|
|
654
|
-
var
|
|
655
|
-
this.max = (
|
|
652
|
+
var ref;
|
|
653
|
+
this.min = (ref = props === null || props === void 0 ? void 0 : props.min) !== null && ref !== void 0 ? ref : '';
|
|
654
|
+
var ref77;
|
|
655
|
+
this.max = (ref77 = props === null || props === void 0 ? void 0 : props.max) !== null && ref77 !== void 0 ? ref77 : '';
|
|
656
656
|
};
|
|
657
657
|
export var AddressValue = function AddressValue(props) {
|
|
658
658
|
"use strict";
|
|
659
659
|
_classCallCheck(this, AddressValue);
|
|
660
|
-
var
|
|
661
|
-
this.city = (
|
|
662
|
-
var
|
|
663
|
-
this.cityDisplay = (
|
|
664
|
-
var
|
|
665
|
-
this.district = (
|
|
666
|
-
var
|
|
667
|
-
this.districtDisplay = (
|
|
668
|
-
var
|
|
669
|
-
this.province = (
|
|
670
|
-
var
|
|
671
|
-
this.provinceDisplay = (
|
|
660
|
+
var ref;
|
|
661
|
+
this.city = (ref = props === null || props === void 0 ? void 0 : props.city) !== null && ref !== void 0 ? ref : '';
|
|
662
|
+
var ref78;
|
|
663
|
+
this.cityDisplay = (ref78 = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && ref78 !== void 0 ? ref78 : '';
|
|
664
|
+
var ref79;
|
|
665
|
+
this.district = (ref79 = props === null || props === void 0 ? void 0 : props.district) !== null && ref79 !== void 0 ? ref79 : '';
|
|
666
|
+
var ref80;
|
|
667
|
+
this.districtDisplay = (ref80 = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && ref80 !== void 0 ? ref80 : '';
|
|
668
|
+
var ref81;
|
|
669
|
+
this.province = (ref81 = props === null || props === void 0 ? void 0 : props.province) !== null && ref81 !== void 0 ? ref81 : '';
|
|
670
|
+
var ref82;
|
|
671
|
+
this.provinceDisplay = (ref82 = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && ref82 !== void 0 ? ref82 : '';
|
|
672
672
|
};
|
|
673
673
|
export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
674
674
|
"use strict";
|
|
@@ -687,10 +687,10 @@ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
687
687
|
export var CalcValue = function CalcValue(props) {
|
|
688
688
|
"use strict";
|
|
689
689
|
_classCallCheck(this, CalcValue);
|
|
690
|
-
var
|
|
691
|
-
this.result = (
|
|
692
|
-
var
|
|
693
|
-
this.unit = (
|
|
690
|
+
var ref;
|
|
691
|
+
this.result = (ref = props === null || props === void 0 ? void 0 : props.result) !== null && ref !== void 0 ? ref : 0;
|
|
692
|
+
var ref83;
|
|
693
|
+
this.unit = (ref83 = props === null || props === void 0 ? void 0 : props.unit) !== null && ref83 !== void 0 ? ref83 : '';
|
|
694
694
|
};
|
|
695
695
|
export var AMOUNT_TYPE;
|
|
696
696
|
(function(AMOUNT_TYPE) {
|
|
@@ -724,35 +724,35 @@ export var AMOUNT_TYPE;
|
|
|
724
724
|
})(AMOUNT_TYPE || (AMOUNT_TYPE = {}));
|
|
725
725
|
export var COMMON_SETTING_TYPE;
|
|
726
726
|
(function(COMMON_SETTING_TYPE) {
|
|
727
|
-
COMMON_SETTING_TYPE["DEFAULT_DISPLAY"] =
|
|
728
|
-
COMMON_SETTING_TYPE["REQUIRED"] =
|
|
729
|
-
COMMON_SETTING_TYPE["IS_HIDE"] =
|
|
730
|
-
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] =
|
|
731
|
-
COMMON_SETTING_TYPE["IMD_SEARCH"] =
|
|
732
|
-
COMMON_SETTING_TYPE["MULTIPLE"] =
|
|
733
|
-
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] =
|
|
734
|
-
COMMON_SETTING_TYPE["CAPTION"] =
|
|
735
|
-
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] =
|
|
736
|
-
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] =
|
|
737
|
-
COMMON_SETTING_TYPE["CAN_SEARCH"] =
|
|
738
|
-
COMMON_SETTING_TYPE["CAN_CHECK"] =
|
|
739
|
-
COMMON_SETTING_TYPE["CAN_EDIT"] =
|
|
740
|
-
COMMON_SETTING_TYPE["CAN_DELETE"] =
|
|
741
|
-
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] =
|
|
742
|
-
COMMON_SETTING_TYPE["MICROMETER"] =
|
|
743
|
-
COMMON_SETTING_TYPE["PRECISION"] =
|
|
744
|
-
COMMON_SETTING_TYPE["PERCENTAGE"] =
|
|
745
|
-
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] =
|
|
746
|
-
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] =
|
|
747
|
-
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] =
|
|
748
|
-
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] =
|
|
749
|
-
COMMON_SETTING_TYPE["VIEW_FORM_MODEL_TYPE"] =
|
|
750
|
-
COMMON_SETTING_TYPE["SERVER_PAGINATION"] =
|
|
751
|
-
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] =
|
|
752
|
-
COMMON_SETTING_TYPE["ENCRYPTED"] =
|
|
753
|
-
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] =
|
|
754
|
-
COMMON_SETTING_TYPE["REVISIONS_MODE"] =
|
|
755
|
-
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] =
|
|
727
|
+
COMMON_SETTING_TYPE["DEFAULT_DISPLAY"] = 'defaultDisplay';
|
|
728
|
+
COMMON_SETTING_TYPE["REQUIRED"] = 'required';
|
|
729
|
+
COMMON_SETTING_TYPE["IS_HIDE"] = 'isHide';
|
|
730
|
+
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] = 'isShowUnit';
|
|
731
|
+
COMMON_SETTING_TYPE["IMD_SEARCH"] = 'immediatelySearch';
|
|
732
|
+
COMMON_SETTING_TYPE["MULTIPLE"] = 'multiple';
|
|
733
|
+
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] = 'submitSelectCurrency';
|
|
734
|
+
COMMON_SETTING_TYPE["CAPTION"] = 'caption';
|
|
735
|
+
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] = 'isHideCaption';
|
|
736
|
+
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] = 'defaultShowOptions';
|
|
737
|
+
COMMON_SETTING_TYPE["CAN_SEARCH"] = 'canSearch';
|
|
738
|
+
COMMON_SETTING_TYPE["CAN_CHECK"] = 'canCheck';
|
|
739
|
+
COMMON_SETTING_TYPE["CAN_EDIT"] = 'canEdit';
|
|
740
|
+
COMMON_SETTING_TYPE["CAN_DELETE"] = 'canDelete';
|
|
741
|
+
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] = 'showUpperCase';
|
|
742
|
+
COMMON_SETTING_TYPE["MICROMETER"] = 'micrometer';
|
|
743
|
+
COMMON_SETTING_TYPE["PRECISION"] = 'precision';
|
|
744
|
+
COMMON_SETTING_TYPE["PERCENTAGE"] = 'percentage';
|
|
745
|
+
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] = 'optionalLevel';
|
|
746
|
+
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] = 'containsSubNode';
|
|
747
|
+
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] = 'defaultCollapse';
|
|
748
|
+
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] = 'canViewForm';
|
|
749
|
+
COMMON_SETTING_TYPE["VIEW_FORM_MODEL_TYPE"] = 'viewFormModelType';
|
|
750
|
+
COMMON_SETTING_TYPE["SERVER_PAGINATION"] = 'serverPagination';
|
|
751
|
+
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] = 'isShowCaptionTip';
|
|
752
|
+
COMMON_SETTING_TYPE["ENCRYPTED"] = 'encrypted';
|
|
753
|
+
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] = 'isInlineEdit';
|
|
754
|
+
COMMON_SETTING_TYPE["REVISIONS_MODE"] = 'revisionsMode';
|
|
755
|
+
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] = 'allowCopyOptions';
|
|
756
756
|
})(COMMON_SETTING_TYPE || (COMMON_SETTING_TYPE = {}));
|
|
757
757
|
export var PAGE_STATUS;
|
|
758
758
|
(function(PAGE_STATUS) {
|
|
@@ -767,31 +767,31 @@ export var PAGE_STATUS;
|
|
|
767
767
|
*/ export var OperationItem = function OperationItem(props) {
|
|
768
768
|
"use strict";
|
|
769
769
|
_classCallCheck(this, OperationItem);
|
|
770
|
-
var
|
|
771
|
-
this.isShow = (
|
|
772
|
-
var
|
|
773
|
-
this.content = (
|
|
774
|
-
var
|
|
775
|
-
this.formKey = (
|
|
776
|
-
var
|
|
777
|
-
this.openType = (
|
|
778
|
-
var
|
|
779
|
-
this.type = (
|
|
780
|
-
var
|
|
781
|
-
this.priorityProcess = (
|
|
770
|
+
var ref;
|
|
771
|
+
this.isShow = (ref = props === null || props === void 0 ? void 0 : props.isShow) !== null && ref !== void 0 ? ref : true;
|
|
772
|
+
var ref84;
|
|
773
|
+
this.content = (ref84 = props === null || props === void 0 ? void 0 : props.content) !== null && ref84 !== void 0 ? ref84 : '';
|
|
774
|
+
var ref85;
|
|
775
|
+
this.formKey = (ref85 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref85 !== void 0 ? ref85 : '';
|
|
776
|
+
var ref86;
|
|
777
|
+
this.openType = (ref86 = props === null || props === void 0 ? void 0 : props.openType) !== null && ref86 !== void 0 ? ref86 : 'modal';
|
|
778
|
+
var ref87;
|
|
779
|
+
this.type = (ref87 = props === null || props === void 0 ? void 0 : props.type) !== null && ref87 !== void 0 ? ref87 : '';
|
|
780
|
+
var ref88;
|
|
781
|
+
this.priorityProcess = (ref88 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && ref88 !== void 0 ? ref88 : false;
|
|
782
782
|
};
|
|
783
783
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
784
784
|
"use strict";
|
|
785
785
|
_classCallCheck(this, ViewOperationItem);
|
|
786
|
-
var
|
|
787
|
-
var
|
|
788
|
-
this.id = (
|
|
789
|
-
var
|
|
790
|
-
this.title = (
|
|
791
|
-
var
|
|
792
|
-
this.headers = (
|
|
786
|
+
var ref;
|
|
787
|
+
var ref89;
|
|
788
|
+
this.id = (ref89 = props === null || props === void 0 ? void 0 : props.id) !== null && ref89 !== void 0 ? ref89 : genNonDuplicateId(8);
|
|
789
|
+
var ref90;
|
|
790
|
+
this.title = (ref90 = props === null || props === void 0 ? void 0 : props.title) !== null && ref90 !== void 0 ? ref90 : '';
|
|
791
|
+
var ref91;
|
|
792
|
+
this.headers = (ref91 = props === null || props === void 0 ? void 0 : (ref = props.headers) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
793
793
|
return new ListBindHeaderItem(item);
|
|
794
|
-
})) !== null &&
|
|
794
|
+
})) !== null && ref91 !== void 0 ? ref91 : [];
|
|
795
795
|
callFiltersAndOrders.call(this, props);
|
|
796
796
|
};
|
|
797
797
|
/**
|
|
@@ -799,28 +799,28 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
799
799
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
800
800
|
"use strict";
|
|
801
801
|
_classCallCheck(this, CustomPermissionItem);
|
|
802
|
-
var
|
|
803
|
-
this.key = (
|
|
804
|
-
var
|
|
805
|
-
this.caption = (
|
|
802
|
+
var _key;
|
|
803
|
+
this.key = (_key = props.key) !== null && _key !== void 0 ? _key : genNonDuplicateId(8);
|
|
804
|
+
var _caption;
|
|
805
|
+
this.caption = (_caption = props.caption) !== null && _caption !== void 0 ? _caption : '';
|
|
806
806
|
};
|
|
807
807
|
export var BaseStyle = function BaseStyle(props) {
|
|
808
808
|
"use strict";
|
|
809
809
|
_classCallCheck(this, BaseStyle);
|
|
810
|
-
var
|
|
811
|
-
this.width = (
|
|
812
|
-
var
|
|
813
|
-
this.height = (
|
|
814
|
-
var
|
|
815
|
-
this.widthConfig = (
|
|
816
|
-
var
|
|
817
|
-
this.heightConfig = (
|
|
810
|
+
var ref;
|
|
811
|
+
this.width = (ref = props === null || props === void 0 ? void 0 : props.width) !== null && ref !== void 0 ? ref : '';
|
|
812
|
+
var ref92;
|
|
813
|
+
this.height = (ref92 = props === null || props === void 0 ? void 0 : props.height) !== null && ref92 !== void 0 ? ref92 : '';
|
|
814
|
+
var ref93;
|
|
815
|
+
this.widthConfig = (ref93 = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && ref93 !== void 0 ? ref93 : 'fill';
|
|
816
|
+
var ref94;
|
|
817
|
+
this.heightConfig = (ref94 = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && ref94 !== void 0 ? ref94 : 'fill';
|
|
818
818
|
};
|
|
819
819
|
export var OptObject = function OptObject(props) {
|
|
820
820
|
"use strict";
|
|
821
821
|
_classCallCheck(this, OptObject);
|
|
822
|
-
var
|
|
823
|
-
this.optCode = (
|
|
824
|
-
var
|
|
825
|
-
this.optType = (
|
|
822
|
+
var ref;
|
|
823
|
+
this.optCode = (ref = props === null || props === void 0 ? void 0 : props.optCode) !== null && ref !== void 0 ? ref : '';
|
|
824
|
+
var ref95;
|
|
825
|
+
this.optType = (ref95 = props === null || props === void 0 ? void 0 : props.optType) !== null && ref95 !== void 0 ? ref95 : '';
|
|
826
826
|
};
|