@byteluck-fe/model-driven-core 2.3.1 → 2.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/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 +13 -30
- 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 +89 -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 +11 -11
- package/dist/esm/common/initOptionAndDataSourceRules.js +82 -82
- package/dist/esm/framework/RegisterControls.js +15 -27
- package/dist/esm/framework/index.js +341 -567
- package/dist/esm/index.js +3 -3
- package/dist/index.umd.js +1 -1
- package/dist/types/common/BaseControl/property.d.ts +14 -0
- package/dist/types/common/FormControl/property.d.ts +4 -0
- package/dist/types/common/Validator.d.ts +1 -1
- package/dist/types/common/controlHooksEmitter.d.ts +1 -1
- package/dist/types/framework/index.d.ts +205 -0
- 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,9 +151,8 @@ 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;
|
|
@@ -201,49 +160,33 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
201
160
|
var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
202
161
|
"use strict";
|
|
203
162
|
_classCallCheck(this, ListBindHeaderItem);
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
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 : '';
|
|
207
165
|
};
|
|
208
166
|
/**
|
|
209
167
|
* 列表绑定配置
|
|
210
168
|
*/ export var ListBind = function ListBind(props) {
|
|
211
169
|
"use strict";
|
|
212
170
|
_classCallCheck(this, ListBind);
|
|
213
|
-
var
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
* @public
|
|
221
|
-
*/ _defineProperty(this, "formKey", void 0);
|
|
222
|
-
/**
|
|
223
|
-
* 显示字段
|
|
224
|
-
* @public
|
|
225
|
-
*/ _defineProperty(this, "headers", void 0);
|
|
226
|
-
var _props_appId;
|
|
227
|
-
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
228
|
-
var _props_formKey;
|
|
229
|
-
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
230
|
-
var _props_headers_map;
|
|
231
|
-
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) {
|
|
232
178
|
return new ListBindHeaderItem(item);
|
|
233
|
-
})) !== null &&
|
|
179
|
+
})) !== null && ref10 !== void 0 ? ref10 : [];
|
|
234
180
|
};
|
|
235
181
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
236
182
|
"use strict";
|
|
237
183
|
_classCallCheck(this, FieldBindItem);
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
245
|
-
var _props_fieldType;
|
|
246
|
-
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;
|
|
247
190
|
};
|
|
248
191
|
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
249
192
|
"use strict";
|
|
@@ -253,18 +196,14 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
253
196
|
_classCallCheck(this, SubListItem);
|
|
254
197
|
var _this;
|
|
255
198
|
_this = _super.call(this, props);
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
var
|
|
261
|
-
_this.
|
|
262
|
-
var
|
|
263
|
-
_this.
|
|
264
|
-
var _props_isOpenFilter;
|
|
265
|
-
_this.isOpenFilter = (_props_isOpenFilter = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && _props_isOpenFilter !== void 0 ? _props_isOpenFilter : false;
|
|
266
|
-
var _props_filters;
|
|
267
|
-
_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 : [];
|
|
268
207
|
return _this;
|
|
269
208
|
}
|
|
270
209
|
return SubListItem;
|
|
@@ -272,96 +211,88 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
272
211
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
273
212
|
"use strict";
|
|
274
213
|
_classCallCheck(this, SubListPageConfig);
|
|
275
|
-
var
|
|
276
|
-
|
|
277
|
-
_defineProperty(this, "formBind", void 0);
|
|
278
|
-
_defineProperty(this, "displayFields", void 0);
|
|
279
|
-
_defineProperty(this, "sublists", void 0);
|
|
214
|
+
var ref, ref16;
|
|
215
|
+
this.type = 'sublist-page';
|
|
280
216
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
281
|
-
var
|
|
282
|
-
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) {
|
|
283
219
|
return new FieldBindItem(item);
|
|
284
|
-
})) !== null &&
|
|
285
|
-
var
|
|
286
|
-
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) {
|
|
287
223
|
return new SubListItem(item);
|
|
288
|
-
})) !== null &&
|
|
224
|
+
})) !== null && ref18 !== void 0 ? ref18 : [];
|
|
289
225
|
};
|
|
290
226
|
export var LeftVariable = function LeftVariable(props) {
|
|
291
227
|
"use strict";
|
|
292
228
|
_classCallCheck(this, LeftVariable);
|
|
293
|
-
_defineProperty(this, "type", void 0);
|
|
294
|
-
_defineProperty(this, "value", void 0);
|
|
295
229
|
this.type = props === null || props === void 0 ? void 0 : props.type;
|
|
296
230
|
this.value = props === null || props === void 0 ? void 0 : props.value;
|
|
297
231
|
};
|
|
298
232
|
export var RightVariable = function RightVariable(props) {
|
|
299
233
|
"use strict";
|
|
300
234
|
_classCallCheck(this, RightVariable);
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : [];
|
|
308
|
-
var _props_displayBos;
|
|
309
|
-
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 : [];
|
|
310
241
|
};
|
|
311
|
-
|
|
242
|
+
/**
|
|
243
|
+
* 连接符条件
|
|
244
|
+
* @public
|
|
245
|
+
*/ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
312
246
|
"use strict";
|
|
313
|
-
var _this = this;
|
|
314
247
|
_classCallCheck(this, FieldFilterConditions);
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
var
|
|
322
|
-
this.
|
|
323
|
-
var
|
|
324
|
-
this.
|
|
325
|
-
var
|
|
326
|
-
this.
|
|
327
|
-
var _props_value;
|
|
328
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : "and";
|
|
248
|
+
/**
|
|
249
|
+
* 类型:连接符条件
|
|
250
|
+
* @defaultValue 'conditions'
|
|
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';
|
|
329
260
|
this.children = [];
|
|
330
261
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
262
|
+
var _this = this;
|
|
331
263
|
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
332
264
|
if (item.children !== undefined) {
|
|
333
|
-
var
|
|
265
|
+
var ref;
|
|
334
266
|
var filter = new FieldFilterConditions(item);
|
|
335
|
-
(
|
|
267
|
+
(ref = _this.children) === null || ref === void 0 ? void 0 : ref.push(filter);
|
|
336
268
|
} else {
|
|
337
|
-
var
|
|
269
|
+
var ref24;
|
|
338
270
|
var filter1 = new FieldFilterCondition(item);
|
|
339
|
-
(
|
|
271
|
+
(ref24 = _this.children) === null || ref24 === void 0 ? void 0 : ref24.push(filter1);
|
|
340
272
|
}
|
|
341
273
|
});
|
|
342
274
|
}
|
|
343
275
|
};
|
|
344
|
-
|
|
276
|
+
/**
|
|
277
|
+
* 字段过滤条件
|
|
278
|
+
* @public
|
|
279
|
+
*/ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
345
280
|
"use strict";
|
|
346
281
|
_classCallCheck(this, FieldFilterCondition);
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
var
|
|
356
|
-
this.
|
|
357
|
-
var
|
|
358
|
-
this.
|
|
359
|
-
var
|
|
360
|
-
this.
|
|
361
|
-
var _props_checked;
|
|
362
|
-
this.checked = (_props_checked = props === null || props === void 0 ? void 0 : props.checked) !== null && _props_checked !== void 0 ? _props_checked : false;
|
|
363
|
-
var _props_describe;
|
|
364
|
-
this.describe = (_props_describe = props === null || props === void 0 ? void 0 : props.describe) !== null && _props_describe !== void 0 ? _props_describe : "";
|
|
282
|
+
/**
|
|
283
|
+
* 类型
|
|
284
|
+
* @defaultValue 'condition'
|
|
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 : '';
|
|
365
296
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
366
297
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
367
298
|
};
|
|
@@ -371,117 +302,85 @@ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
|
371
302
|
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
372
303
|
"use strict";
|
|
373
304
|
_classCallCheck(this, MultistageFillingItem);
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
* @public
|
|
383
|
-
*/ _defineProperty(this, "fieldCode", void 0);
|
|
384
|
-
/**
|
|
385
|
-
* 字段类型。事件在填充时,需要根据数据类型进行判断处理动作。
|
|
386
|
-
* @defaultValue ''
|
|
387
|
-
* @public
|
|
388
|
-
*/ _defineProperty(this, "fieldType", void 0);
|
|
389
|
-
/**
|
|
390
|
-
* 属性名称。如果是ObjectDataBind的控件,可以指定填充到哪个数据项。
|
|
391
|
-
* @defaultValue ''
|
|
392
|
-
* @public
|
|
393
|
-
* */ _defineProperty(this, "propName", void 0);
|
|
394
|
-
var _props_controlId;
|
|
395
|
-
this.controlId = (_props_controlId = props === null || props === void 0 ? void 0 : props.controlId) !== null && _props_controlId !== void 0 ? _props_controlId : "";
|
|
396
|
-
var _props_fieldCode;
|
|
397
|
-
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
398
|
-
var _props_fieldType;
|
|
399
|
-
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : "";
|
|
400
|
-
var _props_propName;
|
|
401
|
-
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 : '';
|
|
402
313
|
};
|
|
403
|
-
|
|
314
|
+
/**
|
|
315
|
+
* 显示项
|
|
316
|
+
* @public
|
|
317
|
+
*/ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
404
318
|
"use strict";
|
|
405
319
|
_classCallCheck(this, DisplayBoListItem);
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "FIELD";
|
|
411
|
-
var _props_value;
|
|
412
|
-
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 : '';
|
|
413
324
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
414
325
|
};
|
|
415
|
-
|
|
326
|
+
/**
|
|
327
|
+
* 数据源排序项
|
|
328
|
+
* @public
|
|
329
|
+
*/ export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
416
330
|
"use strict";
|
|
417
331
|
_classCallCheck(this, DataSourceOrderItem);
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
var
|
|
421
|
-
this.
|
|
422
|
-
var _props_desc;
|
|
423
|
-
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;
|
|
424
336
|
};
|
|
425
337
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
426
338
|
"use strict";
|
|
427
339
|
_classCallCheck(this, DataSourceDataSetValue);
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
var _props_code;
|
|
435
|
-
this.code = (_props_code = props.code) !== null && _props_code !== void 0 ? _props_code : "";
|
|
436
|
-
var _props_value;
|
|
437
|
-
this.value = (_props_value = props.value) !== null && _props_value !== void 0 ? _props_value : "";
|
|
438
|
-
var _props_field_type;
|
|
439
|
-
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;
|
|
440
346
|
};
|
|
441
347
|
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
442
348
|
"use strict";
|
|
443
349
|
_classCallCheck(this, DataSourceParamItem);
|
|
444
|
-
var
|
|
445
|
-
|
|
446
|
-
* 字段ID
|
|
447
|
-
*/ _defineProperty(this, "id", void 0);
|
|
448
|
-
_defineProperty(this, "limit", void 0);
|
|
449
|
-
_defineProperty(this, "orders", void 0);
|
|
450
|
-
_defineProperty(this, "formKey", void 0);
|
|
451
|
-
_defineProperty(this, "dataSet", void 0);
|
|
452
|
-
var _props_id;
|
|
350
|
+
var ref, ref34;
|
|
351
|
+
var _id;
|
|
453
352
|
//字段ID,不可以当作随机数生成唯一编号
|
|
454
|
-
this.id = (
|
|
455
|
-
var
|
|
456
|
-
this.limit = (
|
|
457
|
-
var
|
|
458
|
-
this.formKey = (
|
|
459
|
-
var
|
|
460
|
-
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) {
|
|
461
360
|
return new DataSourceOrderItem(item);
|
|
462
|
-
})) !== null &&
|
|
463
|
-
var
|
|
464
|
-
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) {
|
|
465
364
|
return new DataSourceDataSetValue(item);
|
|
466
|
-
})) !== null &&
|
|
365
|
+
})) !== null && ref36 !== void 0 ? ref36 : [];
|
|
467
366
|
};
|
|
468
367
|
/**
|
|
469
368
|
* 给filters和orders赋值
|
|
470
369
|
* */ function callFiltersAndOrders(props) {
|
|
471
|
-
var
|
|
472
|
-
var
|
|
473
|
-
this.filters = (
|
|
370
|
+
var ref;
|
|
371
|
+
var ref37;
|
|
372
|
+
this.filters = (ref37 = props === null || props === void 0 ? void 0 : (ref = props.filters) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
474
373
|
if (item.children !== undefined) {
|
|
475
374
|
return new FieldFilterConditions(item);
|
|
476
375
|
}
|
|
477
376
|
return new FieldFilterCondition(item);
|
|
478
|
-
})) !== null &&
|
|
377
|
+
})) !== null && ref37 !== void 0 ? ref37 : [];
|
|
479
378
|
if (_instanceof(this, DataSourceBind) || _instanceof(this, FillPayloadBind)) {
|
|
480
|
-
var
|
|
481
|
-
var
|
|
482
|
-
this.orders = (
|
|
379
|
+
var ref38, ref39;
|
|
380
|
+
var ref40;
|
|
381
|
+
this.orders = (ref40 = (ref38 = props) === null || ref38 === void 0 ? void 0 : (ref39 = ref38.orders) === null || ref39 === void 0 ? void 0 : ref39.map(function(item) {
|
|
483
382
|
return new DataSourceOrderItem(item);
|
|
484
|
-
})) !== null &&
|
|
383
|
+
})) !== null && ref40 !== void 0 ? ref40 : [];
|
|
485
384
|
}
|
|
486
385
|
}
|
|
487
386
|
/**
|
|
@@ -489,83 +388,39 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
489
388
|
* @public
|
|
490
389
|
*/ export var DataSourceBind = function DataSourceBind(props) {
|
|
491
390
|
"use strict";
|
|
492
|
-
var _this = this;
|
|
493
391
|
_classCallCheck(this, DataSourceBind);
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
* 存储值
|
|
501
|
-
* @defaultValue ''
|
|
502
|
-
* @public
|
|
503
|
-
*/ _defineProperty(this, "valueFieldCode", void 0);
|
|
504
|
-
/**
|
|
505
|
-
* 显示值
|
|
506
|
-
* @defaultValue []
|
|
507
|
-
* @public
|
|
508
|
-
*/ _defineProperty(this, "displayBoList", void 0);
|
|
509
|
-
/**
|
|
510
|
-
* 绑定服务
|
|
511
|
-
* @defaultValue ''
|
|
512
|
-
* @public
|
|
513
|
-
*/ _defineProperty(this, "svcCode", void 0);
|
|
514
|
-
/**
|
|
515
|
-
* 应用Id
|
|
516
|
-
* @defaultValue ''
|
|
517
|
-
* @public
|
|
518
|
-
*/ _defineProperty(this, "appId", void 0);
|
|
519
|
-
/**
|
|
520
|
-
* 过滤条件
|
|
521
|
-
* @defaultValue []
|
|
522
|
-
* @public
|
|
523
|
-
*/ _defineProperty(this, "filters", void 0);
|
|
524
|
-
// 过滤
|
|
525
|
-
/**
|
|
526
|
-
* 排序
|
|
527
|
-
* @defaultValue []
|
|
528
|
-
* @public
|
|
529
|
-
*/ _defineProperty(this, "orders", void 0);
|
|
530
|
-
/**
|
|
531
|
-
* 显示排序
|
|
532
|
-
* @defaultValue true
|
|
533
|
-
* @public
|
|
534
|
-
*/ _defineProperty(this, "showOrder", void 0);
|
|
535
|
-
var _props_dataCode;
|
|
536
|
-
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
537
|
-
var _props_appId;
|
|
538
|
-
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
539
|
-
var _props_valueFieldCode;
|
|
540
|
-
this.valueFieldCode = (_props_valueFieldCode = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && _props_valueFieldCode !== void 0 ? _props_valueFieldCode : "";
|
|
392
|
+
var ref45;
|
|
393
|
+
this.dataCode = (ref45 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref45 !== void 0 ? ref45 : '';
|
|
394
|
+
var ref41;
|
|
395
|
+
this.appId = (ref41 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref41 !== void 0 ? ref41 : '';
|
|
396
|
+
var ref42;
|
|
397
|
+
this.valueFieldCode = (ref42 = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && ref42 !== void 0 ? ref42 : '';
|
|
541
398
|
this.displayBoList = [];
|
|
542
399
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
400
|
+
var _this = this;
|
|
543
401
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
544
|
-
var
|
|
545
|
-
(
|
|
402
|
+
var ref;
|
|
403
|
+
(ref = _this.displayBoList) === null || ref === void 0 ? void 0 : ref.push(new DisplayBoListItem(item));
|
|
546
404
|
});
|
|
547
405
|
}
|
|
548
|
-
var
|
|
549
|
-
this.showOrder = (
|
|
550
|
-
var
|
|
551
|
-
this.svcCode = (
|
|
406
|
+
var ref43;
|
|
407
|
+
this.showOrder = (ref43 = props === null || props === void 0 ? void 0 : props.showOrder) !== null && ref43 !== void 0 ? ref43 : true;
|
|
408
|
+
var ref44;
|
|
409
|
+
this.svcCode = (ref44 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && ref44 !== void 0 ? ref44 : '';
|
|
552
410
|
callFiltersAndOrders.call(this, props);
|
|
553
411
|
};
|
|
554
412
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
555
413
|
"use strict";
|
|
556
414
|
_classCallCheck(this, CustomAttributeItem);
|
|
557
|
-
var
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
this.key = (_props_key = props === null || props === void 0 ? void 0 : props.key) !== null && _props_key !== void 0 ? _props_key : "";
|
|
565
|
-
var _props_value_map;
|
|
566
|
-
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) {
|
|
415
|
+
var ref;
|
|
416
|
+
var ref46;
|
|
417
|
+
this.name = (ref46 = props === null || props === void 0 ? void 0 : props.name) !== null && ref46 !== void 0 ? ref46 : '';
|
|
418
|
+
var ref47;
|
|
419
|
+
this.key = (ref47 = props === null || props === void 0 ? void 0 : props.key) !== null && ref47 !== void 0 ? ref47 : '';
|
|
420
|
+
var ref48;
|
|
421
|
+
this.value = (ref48 = props === null || props === void 0 ? void 0 : (ref = props.value) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
567
422
|
return new DisplayBoListItem(item);
|
|
568
|
-
})) !== null &&
|
|
423
|
+
})) !== null && ref48 !== void 0 ? ref48 : [];
|
|
569
424
|
};
|
|
570
425
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
571
426
|
"use strict";
|
|
@@ -574,13 +429,12 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
574
429
|
function SuperDataSourceBind(props) {
|
|
575
430
|
_classCallCheck(this, SuperDataSourceBind);
|
|
576
431
|
var _this;
|
|
577
|
-
var
|
|
432
|
+
var ref;
|
|
578
433
|
_this = _super.call(this, props);
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
_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) {
|
|
434
|
+
var ref49;
|
|
435
|
+
_this.attributes = (ref49 = props === null || props === void 0 ? void 0 : (ref = props.attributes) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
582
436
|
return new CustomAttributeItem(item);
|
|
583
|
-
})) !== null &&
|
|
437
|
+
})) !== null && ref49 !== void 0 ? ref49 : [];
|
|
584
438
|
return _this;
|
|
585
439
|
}
|
|
586
440
|
return SuperDataSourceBind;
|
|
@@ -593,7 +447,6 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
593
447
|
_classCallCheck(this, TreeDataSourceBind);
|
|
594
448
|
var _this;
|
|
595
449
|
_this = _super.call(this, props);
|
|
596
|
-
_defineProperty(_assertThisInitialized(_this), "rootNode", void 0);
|
|
597
450
|
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
598
451
|
return _this;
|
|
599
452
|
}
|
|
@@ -602,24 +455,15 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
602
455
|
var FillBind = function FillBind(props) {
|
|
603
456
|
"use strict";
|
|
604
457
|
_classCallCheck(this, FillBind);
|
|
605
|
-
var
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
/*
|
|
613
|
-
* 执行填充的数据项和控件
|
|
614
|
-
* */ _defineProperty(this, "fillList", void 0);
|
|
615
|
-
var _props_dataCode;
|
|
616
|
-
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
617
|
-
var _props_appId;
|
|
618
|
-
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
619
|
-
var _props_fillList_map;
|
|
620
|
-
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) {
|
|
458
|
+
var ref;
|
|
459
|
+
var ref50;
|
|
460
|
+
this.dataCode = (ref50 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref50 !== void 0 ? ref50 : '';
|
|
461
|
+
var ref51;
|
|
462
|
+
this.appId = (ref51 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref51 !== void 0 ? ref51 : '';
|
|
463
|
+
var ref52;
|
|
464
|
+
this.fillList = (ref52 = props === null || props === void 0 ? void 0 : (ref = props.fillList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
621
465
|
return new MultistageFillingItem(item);
|
|
622
|
-
})) !== null &&
|
|
466
|
+
})) !== null && ref52 !== void 0 ? ref52 : [];
|
|
623
467
|
};
|
|
624
468
|
/**
|
|
625
469
|
* FillPayloadBind 填充配置
|
|
@@ -633,16 +477,6 @@ var FillBind = function FillBind(props) {
|
|
|
633
477
|
_classCallCheck(this, FillPayloadBind);
|
|
634
478
|
var _this;
|
|
635
479
|
_this = _super.call(this, props);
|
|
636
|
-
/**
|
|
637
|
-
* 数据源过滤条件
|
|
638
|
-
* @defaultValue []
|
|
639
|
-
* @public
|
|
640
|
-
**/ _defineProperty(_assertThisInitialized(_this), "filters", void 0);
|
|
641
|
-
/**
|
|
642
|
-
* 数据源排序条件
|
|
643
|
-
* @defaultValue []
|
|
644
|
-
* @public
|
|
645
|
-
**/ _defineProperty(_assertThisInitialized(_this), "orders", void 0);
|
|
646
480
|
callFiltersAndOrders.call(_assertThisInitialized(_this), props);
|
|
647
481
|
return _this;
|
|
648
482
|
}
|
|
@@ -659,20 +493,10 @@ var FillBind = function FillBind(props) {
|
|
|
659
493
|
_classCallCheck(this, FillBackBind);
|
|
660
494
|
var _this;
|
|
661
495
|
_this = _super.call(this, props);
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
* */ _defineProperty(_assertThisInitialized(_this), "mode", void 0);
|
|
667
|
-
/**
|
|
668
|
-
* 多选
|
|
669
|
-
* @defaultValue false
|
|
670
|
-
* @public
|
|
671
|
-
*/ _defineProperty(_assertThisInitialized(_this), "multiple", void 0);
|
|
672
|
-
var _props_mode;
|
|
673
|
-
_this.mode = (_props_mode = props === null || props === void 0 ? void 0 : props.mode) !== null && _props_mode !== void 0 ? _props_mode : "current";
|
|
674
|
-
var _props_multiple;
|
|
675
|
-
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
496
|
+
var ref;
|
|
497
|
+
_this.mode = (ref = props === null || props === void 0 ? void 0 : props.mode) !== null && ref !== void 0 ? ref : 'current';
|
|
498
|
+
var ref53;
|
|
499
|
+
_this.multiple = (ref53 = props === null || props === void 0 ? void 0 : props.multiple) !== null && ref53 !== void 0 ? ref53 : false;
|
|
676
500
|
return _this;
|
|
677
501
|
}
|
|
678
502
|
return FillBackBind;
|
|
@@ -680,28 +504,25 @@ var FillBind = function FillBind(props) {
|
|
|
680
504
|
export var Language = function Language(props) {
|
|
681
505
|
"use strict";
|
|
682
506
|
_classCallCheck(this, Language);
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
this.en = (_props_en = props === null || props === void 0 ? void 0 : props.en) !== null && _props_en !== void 0 ? _props_en : "";
|
|
690
|
-
var _props_ja;
|
|
691
|
-
this.ja = (_props_ja = props === null || props === void 0 ? void 0 : props.ja) !== null && _props_ja !== void 0 ? _props_ja : "";
|
|
507
|
+
var ref;
|
|
508
|
+
this.zh = (ref = props === null || props === void 0 ? void 0 : props.zh) !== null && ref !== void 0 ? ref : '';
|
|
509
|
+
var ref54;
|
|
510
|
+
this.en = (ref54 = props === null || props === void 0 ? void 0 : props.en) !== null && ref54 !== void 0 ? ref54 : '';
|
|
511
|
+
var ref55;
|
|
512
|
+
this.ja = (ref55 = props === null || props === void 0 ? void 0 : props.ja) !== null && ref55 !== void 0 ? ref55 : '';
|
|
692
513
|
};
|
|
693
|
-
|
|
514
|
+
/**
|
|
515
|
+
* 正则校验
|
|
516
|
+
* @public
|
|
517
|
+
*/ export var RegularRules = function RegularRules(props) {
|
|
694
518
|
"use strict";
|
|
695
519
|
_classCallCheck(this, RegularRules);
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
this.expression = (_props_expression = props === null || props === void 0 ? void 0 : props.expression) !== null && _props_expression !== void 0 ? _props_expression : "";
|
|
703
|
-
var _props_errMessage;
|
|
704
|
-
this.errMessage = (_props_errMessage = props === null || props === void 0 ? void 0 : props.errMessage) !== null && _props_errMessage !== void 0 ? _props_errMessage : "";
|
|
520
|
+
var ref;
|
|
521
|
+
this.stencilName = (ref = props === null || props === void 0 ? void 0 : props.stencilName) !== null && ref !== void 0 ? ref : '';
|
|
522
|
+
var ref56;
|
|
523
|
+
this.expression = (ref56 = props === null || props === void 0 ? void 0 : props.expression) !== null && ref56 !== void 0 ? ref56 : '';
|
|
524
|
+
var ref57;
|
|
525
|
+
this.errMessage = (ref57 = props === null || props === void 0 ? void 0 : props.errMessage) !== null && ref57 !== void 0 ? ref57 : '';
|
|
705
526
|
};
|
|
706
527
|
/**
|
|
707
528
|
* 选项设置-自定义选项
|
|
@@ -709,23 +530,12 @@ export var RegularRules = function RegularRules(props) {
|
|
|
709
530
|
*/ export var OptionSetting = function OptionSetting(props) {
|
|
710
531
|
"use strict";
|
|
711
532
|
_classCallCheck(this, OptionSetting);
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
/**
|
|
719
|
-
* 选项ID
|
|
720
|
-
* @defaultValue this.label
|
|
721
|
-
* @public
|
|
722
|
-
*/ _defineProperty(this, "value", void 0);
|
|
723
|
-
var _props_id;
|
|
724
|
-
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
725
|
-
var _props_label;
|
|
726
|
-
this.label = (_props_label = props === null || props === void 0 ? void 0 : props.label) !== null && _props_label !== void 0 ? _props_label : "";
|
|
727
|
-
var _props_value;
|
|
728
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : this.label;
|
|
533
|
+
var ref;
|
|
534
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId(8);
|
|
535
|
+
var ref58;
|
|
536
|
+
this.label = (ref58 = props === null || props === void 0 ? void 0 : props.label) !== null && ref58 !== void 0 ? ref58 : '';
|
|
537
|
+
var ref59;
|
|
538
|
+
this.value = (ref59 = props === null || props === void 0 ? void 0 : props.value) !== null && ref59 !== void 0 ? ref59 : this.label;
|
|
729
539
|
};
|
|
730
540
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
731
541
|
"use strict";
|
|
@@ -735,33 +545,37 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
735
545
|
_classCallCheck(this, ImageOptionSetting);
|
|
736
546
|
var _this;
|
|
737
547
|
_this = _super.call(this, props);
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
var
|
|
741
|
-
_this.
|
|
742
|
-
var _props_type;
|
|
743
|
-
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "src";
|
|
548
|
+
var ref;
|
|
549
|
+
_this.image = (ref = props === null || props === void 0 ? void 0 : props.image) !== null && ref !== void 0 ? ref : '';
|
|
550
|
+
var ref60;
|
|
551
|
+
_this.type = (ref60 = props === null || props === void 0 ? void 0 : props.type) !== null && ref60 !== void 0 ? ref60 : 'src';
|
|
744
552
|
return _this;
|
|
745
553
|
}
|
|
746
554
|
return ImageOptionSetting;
|
|
747
555
|
}(OptionSetting);
|
|
748
556
|
export function initOptions(options) {
|
|
749
|
-
var
|
|
750
|
-
return (
|
|
557
|
+
var ref;
|
|
558
|
+
return (ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
751
559
|
return new OptionSetting(item);
|
|
752
|
-
})) !== null &&
|
|
560
|
+
})) !== null && ref !== void 0 ? ref : [];
|
|
753
561
|
}
|
|
754
562
|
export function initImageOptions(options) {
|
|
755
|
-
var
|
|
756
|
-
return (
|
|
563
|
+
var ref;
|
|
564
|
+
return (ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
757
565
|
return new ImageOptionSetting(item);
|
|
758
|
-
})) !== null &&
|
|
566
|
+
})) !== null && ref !== void 0 ? ref : [];
|
|
759
567
|
}
|
|
760
|
-
|
|
568
|
+
/**
|
|
569
|
+
* 对象类型数据绑定配置
|
|
570
|
+
* @public
|
|
571
|
+
*/ export var ObjectDataBind = function ObjectDataBind() {
|
|
761
572
|
"use strict";
|
|
762
573
|
_classCallCheck(this, ObjectDataBind);
|
|
763
574
|
};
|
|
764
|
-
|
|
575
|
+
/**
|
|
576
|
+
* 金额控件数据绑定配置
|
|
577
|
+
* @public
|
|
578
|
+
*/ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
765
579
|
"use strict";
|
|
766
580
|
_inherits(AmountDataBind, ObjectDataBind);
|
|
767
581
|
var _super = _createSuper(AmountDataBind);
|
|
@@ -769,25 +583,27 @@ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
769
583
|
_classCallCheck(this, AmountDataBind);
|
|
770
584
|
var _this;
|
|
771
585
|
_this = _super.call(this);
|
|
772
|
-
_defineProperty(_assertThisInitialized(_this), "amount", void 0);
|
|
773
|
-
_defineProperty(_assertThisInitialized(_this), "currency", void 0);
|
|
774
586
|
_this.amount = new DataBind(props === null || props === void 0 ? void 0 : props.amount);
|
|
775
587
|
_this.currency = new DataBind(props === null || props === void 0 ? void 0 : props.currency);
|
|
776
588
|
return _this;
|
|
777
589
|
}
|
|
778
590
|
return AmountDataBind;
|
|
779
591
|
}(ObjectDataBind);
|
|
780
|
-
|
|
592
|
+
/**
|
|
593
|
+
* 金额控件值
|
|
594
|
+
* @public
|
|
595
|
+
*/ export var AmountValue = function AmountValue(props) {
|
|
781
596
|
"use strict";
|
|
782
597
|
_classCallCheck(this, AmountValue);
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
var
|
|
786
|
-
this.
|
|
787
|
-
var _props_currency;
|
|
788
|
-
this.currency = (_props_currency = props === null || props === void 0 ? void 0 : props.currency) !== null && _props_currency !== void 0 ? _props_currency : AMOUNT_TYPE.CNY;
|
|
598
|
+
var ref;
|
|
599
|
+
this.amount = (ref = props === null || props === void 0 ? void 0 : props.amount) !== null && ref !== void 0 ? ref : '';
|
|
600
|
+
var ref61;
|
|
601
|
+
this.currency = (ref61 = props === null || props === void 0 ? void 0 : props.currency) !== null && ref61 !== void 0 ? ref61 : AMOUNT_TYPE.CNY;
|
|
789
602
|
};
|
|
790
|
-
|
|
603
|
+
/**
|
|
604
|
+
* 日期区间数据绑定项
|
|
605
|
+
* @public
|
|
606
|
+
*/ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
791
607
|
"use strict";
|
|
792
608
|
_inherits(RangeDataBind, ObjectDataBind);
|
|
793
609
|
var _super = _createSuper(RangeDataBind);
|
|
@@ -795,47 +611,46 @@ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
795
611
|
_classCallCheck(this, RangeDataBind);
|
|
796
612
|
var _this;
|
|
797
613
|
_this = _super.call(this);
|
|
798
|
-
_defineProperty(_assertThisInitialized(_this), "min", void 0);
|
|
799
|
-
_defineProperty(_assertThisInitialized(_this), "max", void 0);
|
|
800
614
|
_this.min = new DataBind(props === null || props === void 0 ? void 0 : props.min);
|
|
801
615
|
_this.max = new DataBind(props === null || props === void 0 ? void 0 : props.max);
|
|
802
616
|
return _this;
|
|
803
617
|
}
|
|
804
618
|
return RangeDataBind;
|
|
805
619
|
}(ObjectDataBind);
|
|
806
|
-
|
|
620
|
+
/**
|
|
621
|
+
* 日期区间值
|
|
622
|
+
* @public
|
|
623
|
+
*/ export var RangeDateValue = function RangeDateValue(props) {
|
|
807
624
|
"use strict";
|
|
808
625
|
_classCallCheck(this, RangeDateValue);
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
var
|
|
812
|
-
this.
|
|
813
|
-
var _props_max;
|
|
814
|
-
this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : "";
|
|
626
|
+
var ref;
|
|
627
|
+
this.min = (ref = props === null || props === void 0 ? void 0 : props.min) !== null && ref !== void 0 ? ref : '';
|
|
628
|
+
var ref62;
|
|
629
|
+
this.max = (ref62 = props === null || props === void 0 ? void 0 : props.max) !== null && ref62 !== void 0 ? ref62 : '';
|
|
815
630
|
};
|
|
816
|
-
|
|
631
|
+
/**
|
|
632
|
+
* 地址值
|
|
633
|
+
* @public
|
|
634
|
+
*/ export var AddressValue = function AddressValue(props) {
|
|
817
635
|
"use strict";
|
|
818
636
|
_classCallCheck(this, AddressValue);
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
var
|
|
826
|
-
this.
|
|
827
|
-
var
|
|
828
|
-
this.
|
|
829
|
-
var
|
|
830
|
-
this.
|
|
831
|
-
var _props_districtDisplay;
|
|
832
|
-
this.districtDisplay = (_props_districtDisplay = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && _props_districtDisplay !== void 0 ? _props_districtDisplay : "";
|
|
833
|
-
var _props_province;
|
|
834
|
-
this.province = (_props_province = props === null || props === void 0 ? void 0 : props.province) !== null && _props_province !== void 0 ? _props_province : "";
|
|
835
|
-
var _props_provinceDisplay;
|
|
836
|
-
this.provinceDisplay = (_props_provinceDisplay = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && _props_provinceDisplay !== void 0 ? _props_provinceDisplay : "";
|
|
637
|
+
var ref;
|
|
638
|
+
this.city = (ref = props === null || props === void 0 ? void 0 : props.city) !== null && ref !== void 0 ? ref : '';
|
|
639
|
+
var ref63;
|
|
640
|
+
this.cityDisplay = (ref63 = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && ref63 !== void 0 ? ref63 : '';
|
|
641
|
+
var ref64;
|
|
642
|
+
this.district = (ref64 = props === null || props === void 0 ? void 0 : props.district) !== null && ref64 !== void 0 ? ref64 : '';
|
|
643
|
+
var ref65;
|
|
644
|
+
this.districtDisplay = (ref65 = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && ref65 !== void 0 ? ref65 : '';
|
|
645
|
+
var ref66;
|
|
646
|
+
this.province = (ref66 = props === null || props === void 0 ? void 0 : props.province) !== null && ref66 !== void 0 ? ref66 : '';
|
|
647
|
+
var ref67;
|
|
648
|
+
this.provinceDisplay = (ref67 = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && ref67 !== void 0 ? ref67 : '';
|
|
837
649
|
};
|
|
838
|
-
|
|
650
|
+
/**
|
|
651
|
+
* 计算公式数据绑定项
|
|
652
|
+
* @public
|
|
653
|
+
*/ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
839
654
|
"use strict";
|
|
840
655
|
_inherits(CalcDataBind, ObjectDataBind);
|
|
841
656
|
var _super = _createSuper(CalcDataBind);
|
|
@@ -843,23 +658,22 @@ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
|
843
658
|
_classCallCheck(this, CalcDataBind);
|
|
844
659
|
var _this;
|
|
845
660
|
_this = _super.call(this);
|
|
846
|
-
_defineProperty(_assertThisInitialized(_this), "result", void 0);
|
|
847
|
-
_defineProperty(_assertThisInitialized(_this), "unit", void 0);
|
|
848
661
|
_this.result = new DataBind(props === null || props === void 0 ? void 0 : props.result);
|
|
849
662
|
_this.unit = new DataBind(props === null || props === void 0 ? void 0 : props.unit);
|
|
850
663
|
return _this;
|
|
851
664
|
}
|
|
852
665
|
return CalcDataBind;
|
|
853
666
|
}(ObjectDataBind);
|
|
854
|
-
|
|
667
|
+
/**
|
|
668
|
+
* 计算公式值
|
|
669
|
+
* @public
|
|
670
|
+
*/ export var CalcValue = function CalcValue(props) {
|
|
855
671
|
"use strict";
|
|
856
672
|
_classCallCheck(this, CalcValue);
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
var
|
|
860
|
-
this.
|
|
861
|
-
var _props_unit;
|
|
862
|
-
this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : "";
|
|
673
|
+
var ref;
|
|
674
|
+
this.result = (ref = props === null || props === void 0 ? void 0 : props.result) !== null && ref !== void 0 ? ref : 0;
|
|
675
|
+
var ref68;
|
|
676
|
+
this.unit = (ref68 = props === null || props === void 0 ? void 0 : props.unit) !== null && ref68 !== void 0 ? ref68 : '';
|
|
863
677
|
};
|
|
864
678
|
export var AMOUNT_TYPE;
|
|
865
679
|
(function(AMOUNT_TYPE) {
|
|
@@ -893,33 +707,33 @@ export var AMOUNT_TYPE;
|
|
|
893
707
|
})(AMOUNT_TYPE || (AMOUNT_TYPE = {}));
|
|
894
708
|
export var COMMON_SETTING_TYPE;
|
|
895
709
|
(function(COMMON_SETTING_TYPE) {
|
|
896
|
-
COMMON_SETTING_TYPE["REQUIRED"] =
|
|
897
|
-
COMMON_SETTING_TYPE["IS_HIDE"] =
|
|
898
|
-
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] =
|
|
899
|
-
COMMON_SETTING_TYPE["IMD_SEARCH"] =
|
|
900
|
-
COMMON_SETTING_TYPE["MULTIPLE"] =
|
|
901
|
-
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] =
|
|
902
|
-
COMMON_SETTING_TYPE["CAPTION"] =
|
|
903
|
-
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] =
|
|
904
|
-
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] =
|
|
905
|
-
COMMON_SETTING_TYPE["CAN_SEARCH"] =
|
|
906
|
-
COMMON_SETTING_TYPE["CAN_CHECK"] =
|
|
907
|
-
COMMON_SETTING_TYPE["CAN_EDIT"] =
|
|
908
|
-
COMMON_SETTING_TYPE["CAN_DELETE"] =
|
|
909
|
-
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] =
|
|
910
|
-
COMMON_SETTING_TYPE["MICROMETER"] =
|
|
911
|
-
COMMON_SETTING_TYPE["PRECISION"] =
|
|
912
|
-
COMMON_SETTING_TYPE["PERCENTAGE"] =
|
|
913
|
-
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] =
|
|
914
|
-
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] =
|
|
915
|
-
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] =
|
|
916
|
-
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] =
|
|
917
|
-
COMMON_SETTING_TYPE["SERVER_PAGINATION"] =
|
|
918
|
-
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] =
|
|
919
|
-
COMMON_SETTING_TYPE["ENCRYPTED"] =
|
|
920
|
-
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] =
|
|
921
|
-
COMMON_SETTING_TYPE["REVISIONS_MODE"] =
|
|
922
|
-
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] =
|
|
710
|
+
COMMON_SETTING_TYPE["REQUIRED"] = 'required';
|
|
711
|
+
COMMON_SETTING_TYPE["IS_HIDE"] = 'isHide';
|
|
712
|
+
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] = 'isShowUnit';
|
|
713
|
+
COMMON_SETTING_TYPE["IMD_SEARCH"] = 'immediatelySearch';
|
|
714
|
+
COMMON_SETTING_TYPE["MULTIPLE"] = 'multiple';
|
|
715
|
+
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] = 'submitSelectCurrency';
|
|
716
|
+
COMMON_SETTING_TYPE["CAPTION"] = 'caption';
|
|
717
|
+
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] = 'isHideCaption';
|
|
718
|
+
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] = 'defaultShowOptions';
|
|
719
|
+
COMMON_SETTING_TYPE["CAN_SEARCH"] = 'canSearch';
|
|
720
|
+
COMMON_SETTING_TYPE["CAN_CHECK"] = 'canCheck';
|
|
721
|
+
COMMON_SETTING_TYPE["CAN_EDIT"] = 'canEdit';
|
|
722
|
+
COMMON_SETTING_TYPE["CAN_DELETE"] = 'canDelete';
|
|
723
|
+
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] = 'showUpperCase';
|
|
724
|
+
COMMON_SETTING_TYPE["MICROMETER"] = 'micrometer';
|
|
725
|
+
COMMON_SETTING_TYPE["PRECISION"] = 'precision';
|
|
726
|
+
COMMON_SETTING_TYPE["PERCENTAGE"] = 'percentage';
|
|
727
|
+
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] = 'optionalLevel';
|
|
728
|
+
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] = 'containsSubNode';
|
|
729
|
+
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] = 'defaultCollapse';
|
|
730
|
+
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] = 'canViewForm';
|
|
731
|
+
COMMON_SETTING_TYPE["SERVER_PAGINATION"] = 'serverPagination';
|
|
732
|
+
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] = 'isShowCaptionTip';
|
|
733
|
+
COMMON_SETTING_TYPE["ENCRYPTED"] = 'encrypted';
|
|
734
|
+
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] = 'isInlineEdit';
|
|
735
|
+
COMMON_SETTING_TYPE["REVISIONS_MODE"] = 'revisionsMode';
|
|
736
|
+
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] = 'allowCopyOptions';
|
|
923
737
|
})(COMMON_SETTING_TYPE || (COMMON_SETTING_TYPE = {}));
|
|
924
738
|
export var PAGE_STATUS;
|
|
925
739
|
(function(PAGE_STATUS) {
|
|
@@ -934,61 +748,31 @@ export var PAGE_STATUS;
|
|
|
934
748
|
*/ export var OperationItem = function OperationItem(props) {
|
|
935
749
|
"use strict";
|
|
936
750
|
_classCallCheck(this, OperationItem);
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
* @defaultValue ''
|
|
950
|
-
* @public
|
|
951
|
-
*/ _defineProperty(this, "formKey", void 0);
|
|
952
|
-
/**
|
|
953
|
-
* 显示文字
|
|
954
|
-
* @defaultValue ''
|
|
955
|
-
* @public
|
|
956
|
-
*/ _defineProperty(this, "content", void 0);
|
|
957
|
-
/**
|
|
958
|
-
* 打开方式
|
|
959
|
-
* @defaultValue 'modal'
|
|
960
|
-
* @public
|
|
961
|
-
*/ _defineProperty(this, "openType", void 0);
|
|
962
|
-
_defineProperty(this, "type", void 0);
|
|
963
|
-
var _props_isShow;
|
|
964
|
-
this.isShow = (_props_isShow = props === null || props === void 0 ? void 0 : props.isShow) !== null && _props_isShow !== void 0 ? _props_isShow : true;
|
|
965
|
-
var _props_content;
|
|
966
|
-
this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "";
|
|
967
|
-
var _props_formKey;
|
|
968
|
-
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
969
|
-
var _props_openType;
|
|
970
|
-
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : "modal";
|
|
971
|
-
var _props_type;
|
|
972
|
-
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "";
|
|
973
|
-
var _props_priorityProcess;
|
|
974
|
-
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : false;
|
|
751
|
+
var ref;
|
|
752
|
+
this.isShow = (ref = props === null || props === void 0 ? void 0 : props.isShow) !== null && ref !== void 0 ? ref : true;
|
|
753
|
+
var ref69;
|
|
754
|
+
this.content = (ref69 = props === null || props === void 0 ? void 0 : props.content) !== null && ref69 !== void 0 ? ref69 : '';
|
|
755
|
+
var ref70;
|
|
756
|
+
this.formKey = (ref70 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref70 !== void 0 ? ref70 : '';
|
|
757
|
+
var ref71;
|
|
758
|
+
this.openType = (ref71 = props === null || props === void 0 ? void 0 : props.openType) !== null && ref71 !== void 0 ? ref71 : 'modal';
|
|
759
|
+
var ref72;
|
|
760
|
+
this.type = (ref72 = props === null || props === void 0 ? void 0 : props.type) !== null && ref72 !== void 0 ? ref72 : '';
|
|
761
|
+
var ref73;
|
|
762
|
+
this.priorityProcess = (ref73 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && ref73 !== void 0 ? ref73 : false;
|
|
975
763
|
};
|
|
976
764
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
977
765
|
"use strict";
|
|
978
766
|
_classCallCheck(this, ViewOperationItem);
|
|
979
|
-
var
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
var
|
|
985
|
-
this.
|
|
986
|
-
var _props_title;
|
|
987
|
-
this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
988
|
-
var _props_headers_map;
|
|
989
|
-
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) {
|
|
767
|
+
var ref;
|
|
768
|
+
var ref74;
|
|
769
|
+
this.id = (ref74 = props === null || props === void 0 ? void 0 : props.id) !== null && ref74 !== void 0 ? ref74 : genNonDuplicateId(8);
|
|
770
|
+
var ref75;
|
|
771
|
+
this.title = (ref75 = props === null || props === void 0 ? void 0 : props.title) !== null && ref75 !== void 0 ? ref75 : '';
|
|
772
|
+
var ref76;
|
|
773
|
+
this.headers = (ref76 = props === null || props === void 0 ? void 0 : (ref = props.headers) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
990
774
|
return new ListBindHeaderItem(item);
|
|
991
|
-
})) !== null &&
|
|
775
|
+
})) !== null && ref76 !== void 0 ? ref76 : [];
|
|
992
776
|
callFiltersAndOrders.call(this, props);
|
|
993
777
|
};
|
|
994
778
|
/**
|
|
@@ -996,30 +780,20 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
996
780
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
997
781
|
"use strict";
|
|
998
782
|
_classCallCheck(this, CustomPermissionItem);
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
* 权限名称
|
|
1004
|
-
*/ _defineProperty(this, "caption", void 0);
|
|
1005
|
-
var _props_key;
|
|
1006
|
-
this.key = (_props_key = props.key) !== null && _props_key !== void 0 ? _props_key : genNonDuplicateId(8);
|
|
1007
|
-
var _props_caption;
|
|
1008
|
-
this.caption = (_props_caption = props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
|
|
783
|
+
var _key;
|
|
784
|
+
this.key = (_key = props.key) !== null && _key !== void 0 ? _key : genNonDuplicateId(8);
|
|
785
|
+
var _caption;
|
|
786
|
+
this.caption = (_caption = props.caption) !== null && _caption !== void 0 ? _caption : '';
|
|
1009
787
|
};
|
|
1010
788
|
export var BaseStyle = function BaseStyle(props) {
|
|
1011
789
|
"use strict";
|
|
1012
790
|
_classCallCheck(this, BaseStyle);
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
var
|
|
1018
|
-
this.
|
|
1019
|
-
var
|
|
1020
|
-
this.
|
|
1021
|
-
var _props_widthConfig;
|
|
1022
|
-
this.widthConfig = (_props_widthConfig = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && _props_widthConfig !== void 0 ? _props_widthConfig : "fill";
|
|
1023
|
-
var _props_heightConfig;
|
|
1024
|
-
this.heightConfig = (_props_heightConfig = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && _props_heightConfig !== void 0 ? _props_heightConfig : "fill";
|
|
791
|
+
var ref;
|
|
792
|
+
this.width = (ref = props === null || props === void 0 ? void 0 : props.width) !== null && ref !== void 0 ? ref : '';
|
|
793
|
+
var ref77;
|
|
794
|
+
this.height = (ref77 = props === null || props === void 0 ? void 0 : props.height) !== null && ref77 !== void 0 ? ref77 : '';
|
|
795
|
+
var ref78;
|
|
796
|
+
this.widthConfig = (ref78 = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && ref78 !== void 0 ? ref78 : 'fill';
|
|
797
|
+
var ref79;
|
|
798
|
+
this.heightConfig = (ref79 = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && ref79 !== void 0 ? ref79 : 'fill';
|
|
1025
799
|
};
|