@byteluck-fe/model-driven-core 2.7.0-alpha.0 → 2.7.0-alpha.2
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 +309 -226
- package/dist/esm/common/BaseControl/index.js +7 -7
- package/dist/esm/common/BaseControl/property.js +13 -10
- 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 +196 -102
- 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 +184 -84
- 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 +122 -179
- package/dist/esm/framework/index.js +336 -333
- package/dist/esm/index.js +3 -3
- package/dist/index.umd.js +1 -1
- package/dist/types/common/Validator.d.ts +1 -1
- package/dist/types/common/controlHooksEmitter.d.ts +1 -1
- package/dist/types/type.d.ts +23 -23
- package/package.json +3 -3
|
@@ -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 right[Symbol.hasInstance](left);
|
|
33
|
+
return !!right[Symbol.hasInstance](left);
|
|
34
34
|
} else {
|
|
35
35
|
return left instanceof right;
|
|
36
36
|
}
|
|
@@ -76,30 +76,30 @@ 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 _props_dataCode;
|
|
88
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
89
|
+
var _props_fieldCode;
|
|
90
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
91
|
+
var _props_fieldType;
|
|
92
|
+
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : "";
|
|
93
93
|
this.aliasCode = props === null || props === void 0 ? void 0 : props.aliasCode;
|
|
94
94
|
};
|
|
95
95
|
export var AutoWidth = function AutoWidth(props) {
|
|
96
96
|
"use strict";
|
|
97
97
|
_classCallCheck(this, AutoWidth);
|
|
98
|
-
var
|
|
99
|
-
this.minWidth = (
|
|
98
|
+
var _props_minWidth;
|
|
99
|
+
this.minWidth = (_props_minWidth = props === null || props === void 0 ? void 0 : props.minWidth) !== null && _props_minWidth !== void 0 ? _props_minWidth : 150;
|
|
100
100
|
this.maxWidth = props === null || props === void 0 ? void 0 : props.maxWidth;
|
|
101
|
-
var
|
|
102
|
-
this.flex = (
|
|
101
|
+
var _props_flex;
|
|
102
|
+
this.flex = (_props_flex = props === null || props === void 0 ? void 0 : props.flex) !== null && _props_flex !== void 0 ? _props_flex : 1;
|
|
103
103
|
};
|
|
104
104
|
export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
105
105
|
"use strict";
|
|
@@ -109,10 +109,10 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
109
109
|
_classCallCheck(this, MetaWidth);
|
|
110
110
|
var _this;
|
|
111
111
|
_this = _super.call(this, props);
|
|
112
|
-
var
|
|
113
|
-
_this.width = (
|
|
114
|
-
var
|
|
115
|
-
_this.widthType = (
|
|
112
|
+
var _props_width;
|
|
113
|
+
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 240;
|
|
114
|
+
var _props_widthType;
|
|
115
|
+
_this.widthType = (_props_widthType = props === null || props === void 0 ? void 0 : props.widthType) !== null && _props_widthType !== void 0 ? _props_widthType : "auto";
|
|
116
116
|
return _this;
|
|
117
117
|
}
|
|
118
118
|
return MetaWidth;
|
|
@@ -129,20 +129,20 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
129
129
|
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
130
130
|
"use strict";
|
|
131
131
|
_classCallCheck(this, DataStorageDoc);
|
|
132
|
-
var
|
|
133
|
-
this.type = (
|
|
134
|
-
var
|
|
135
|
-
this.customOptions = (
|
|
132
|
+
var _props_type;
|
|
133
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "firstThree";
|
|
134
|
+
var _props_customOptions;
|
|
135
|
+
this.customOptions = (_props_customOptions = props === null || props === void 0 ? void 0 : props.customOptions) !== null && _props_customOptions !== void 0 ? _props_customOptions : [];
|
|
136
136
|
};
|
|
137
137
|
export var FormBind = function FormBind(props) {
|
|
138
138
|
"use strict";
|
|
139
139
|
_classCallCheck(this, FormBind);
|
|
140
|
-
var
|
|
141
|
-
this.dataCode = (
|
|
142
|
-
var
|
|
143
|
-
this.formKey = (
|
|
144
|
-
var
|
|
145
|
-
this.appId = (
|
|
140
|
+
var _props_dataCode;
|
|
141
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
142
|
+
var _props_formKey;
|
|
143
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
144
|
+
var _props_appId;
|
|
145
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
146
146
|
};
|
|
147
147
|
export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
148
148
|
"use strict";
|
|
@@ -152,42 +152,45 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
152
152
|
_classCallCheck(this, FormSelectBind);
|
|
153
153
|
var _this;
|
|
154
154
|
_this = _super.call(this, props);
|
|
155
|
-
var
|
|
156
|
-
_this.primaryControlId = (
|
|
155
|
+
var _props_primaryControlId;
|
|
156
|
+
_this.primaryControlId = (_props_primaryControlId = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && _props_primaryControlId !== void 0 ? _props_primaryControlId : "";
|
|
157
157
|
return _this;
|
|
158
158
|
}
|
|
159
159
|
return FormSelectBind;
|
|
160
160
|
}(FormBind);
|
|
161
|
-
|
|
161
|
+
/**
|
|
162
|
+
* 列表绑定字段项
|
|
163
|
+
* @public
|
|
164
|
+
*/ var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
162
165
|
"use strict";
|
|
163
166
|
_classCallCheck(this, ListBindHeaderItem);
|
|
164
|
-
var
|
|
165
|
-
this.fieldCode = (
|
|
167
|
+
var _props_fieldCode;
|
|
168
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
166
169
|
};
|
|
167
170
|
/**
|
|
168
171
|
* 列表绑定配置
|
|
169
172
|
*/ export var ListBind = function ListBind(props) {
|
|
170
173
|
"use strict";
|
|
171
174
|
_classCallCheck(this, ListBind);
|
|
172
|
-
var
|
|
173
|
-
var
|
|
174
|
-
this.appId = (
|
|
175
|
-
var
|
|
176
|
-
this.formKey = (
|
|
177
|
-
var
|
|
178
|
-
this.headers = (
|
|
175
|
+
var _props_headers;
|
|
176
|
+
var _props_appId;
|
|
177
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
178
|
+
var _props_formKey;
|
|
179
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
180
|
+
var _props_headers_map;
|
|
181
|
+
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) {
|
|
179
182
|
return new ListBindHeaderItem(item);
|
|
180
|
-
})) !== null &&
|
|
183
|
+
})) !== null && _props_headers_map !== void 0 ? _props_headers_map : [];
|
|
181
184
|
};
|
|
182
185
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
183
186
|
"use strict";
|
|
184
187
|
_classCallCheck(this, FieldBindItem);
|
|
185
|
-
var
|
|
186
|
-
this.fieldName = (
|
|
187
|
-
var
|
|
188
|
-
this.fieldCode = (
|
|
189
|
-
var
|
|
190
|
-
this.fieldType = (
|
|
188
|
+
var _props_fieldName;
|
|
189
|
+
this.fieldName = (_props_fieldName = props === null || props === void 0 ? void 0 : props.fieldName) !== null && _props_fieldName !== void 0 ? _props_fieldName : "";
|
|
190
|
+
var _props_fieldCode;
|
|
191
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
192
|
+
var _props_fieldType;
|
|
193
|
+
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : FieldTypes.VARCHAR;
|
|
191
194
|
};
|
|
192
195
|
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
193
196
|
"use strict";
|
|
@@ -197,14 +200,14 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
197
200
|
_classCallCheck(this, SubListItem);
|
|
198
201
|
var _this;
|
|
199
202
|
_this = _super.call(this, props);
|
|
200
|
-
var
|
|
201
|
-
_this.title = (
|
|
202
|
-
var
|
|
203
|
-
_this.svcCode = (
|
|
204
|
-
var
|
|
205
|
-
_this.isOpenFilter = (
|
|
206
|
-
var
|
|
207
|
-
_this.filters = (
|
|
203
|
+
var _props_title;
|
|
204
|
+
_this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
205
|
+
var _props_svcCode;
|
|
206
|
+
_this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : "";
|
|
207
|
+
var _props_isOpenFilter;
|
|
208
|
+
_this.isOpenFilter = (_props_isOpenFilter = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && _props_isOpenFilter !== void 0 ? _props_isOpenFilter : false;
|
|
209
|
+
var _props_filters;
|
|
210
|
+
_this.filters = (_props_filters = props === null || props === void 0 ? void 0 : props.filters) !== null && _props_filters !== void 0 ? _props_filters : [];
|
|
208
211
|
return _this;
|
|
209
212
|
}
|
|
210
213
|
return SubListItem;
|
|
@@ -212,17 +215,17 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
212
215
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
213
216
|
"use strict";
|
|
214
217
|
_classCallCheck(this, SubListPageConfig);
|
|
215
|
-
var
|
|
216
|
-
this.type =
|
|
218
|
+
var _props_displayFields, _props_sublists;
|
|
219
|
+
this.type = "sublist-page";
|
|
217
220
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
218
|
-
var
|
|
219
|
-
this.displayFields = (
|
|
221
|
+
var _props_displayFields_map;
|
|
222
|
+
this.displayFields = (_props_displayFields_map = props === null || props === void 0 ? void 0 : (_props_displayFields = props.displayFields) === null || _props_displayFields === void 0 ? void 0 : _props_displayFields.map(function(item) {
|
|
220
223
|
return new FieldBindItem(item);
|
|
221
|
-
})) !== null &&
|
|
222
|
-
var
|
|
223
|
-
this.sublists = (
|
|
224
|
+
})) !== null && _props_displayFields_map !== void 0 ? _props_displayFields_map : [];
|
|
225
|
+
var _props_sublists_map;
|
|
226
|
+
this.sublists = (_props_sublists_map = props === null || props === void 0 ? void 0 : (_props_sublists = props.sublists) === null || _props_sublists === void 0 ? void 0 : _props_sublists.map(function(item) {
|
|
224
227
|
return new SubListItem(item);
|
|
225
|
-
})) !== null &&
|
|
228
|
+
})) !== null && _props_sublists_map !== void 0 ? _props_sublists_map : [];
|
|
226
229
|
};
|
|
227
230
|
export var LeftVariable = function LeftVariable(props) {
|
|
228
231
|
"use strict";
|
|
@@ -233,43 +236,43 @@ export var LeftVariable = function LeftVariable(props) {
|
|
|
233
236
|
export var RightVariable = function RightVariable(props) {
|
|
234
237
|
"use strict";
|
|
235
238
|
_classCallCheck(this, RightVariable);
|
|
236
|
-
var
|
|
237
|
-
this.type = (
|
|
238
|
-
var
|
|
239
|
-
this.value = (
|
|
240
|
-
var
|
|
241
|
-
this.displayBos = (
|
|
239
|
+
var _props_type;
|
|
240
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "custom";
|
|
241
|
+
var _props_value;
|
|
242
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : [];
|
|
243
|
+
var _props_displayBos;
|
|
244
|
+
this.displayBos = (_props_displayBos = props === null || props === void 0 ? void 0 : props.displayBos) !== null && _props_displayBos !== void 0 ? _props_displayBos : [];
|
|
242
245
|
};
|
|
243
246
|
/**
|
|
244
247
|
* 连接符条件
|
|
245
248
|
* @public
|
|
246
249
|
*/ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
247
250
|
"use strict";
|
|
251
|
+
var _this = this;
|
|
248
252
|
_classCallCheck(this, FieldFilterConditions);
|
|
249
253
|
/**
|
|
250
254
|
* 类型:连接符条件
|
|
251
255
|
* @defaultValue 'conditions'
|
|
252
|
-
*/ this.type =
|
|
253
|
-
var
|
|
254
|
-
this.id = (
|
|
255
|
-
var
|
|
256
|
-
this.ruleId = (
|
|
257
|
-
var
|
|
258
|
-
this.level = (
|
|
259
|
-
var
|
|
260
|
-
this.value = (
|
|
256
|
+
*/ this.type = "conditions";
|
|
257
|
+
var _props_id;
|
|
258
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
259
|
+
var _props_ruleId;
|
|
260
|
+
this.ruleId = (_props_ruleId = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _props_ruleId !== void 0 ? _props_ruleId : new Date().valueOf();
|
|
261
|
+
var _props_level;
|
|
262
|
+
this.level = (_props_level = props === null || props === void 0 ? void 0 : props.level) !== null && _props_level !== void 0 ? _props_level : 0;
|
|
263
|
+
var _props_value;
|
|
264
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : "and";
|
|
261
265
|
this.children = [];
|
|
262
266
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
263
|
-
var _this = this;
|
|
264
267
|
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
265
268
|
if (item.children !== undefined) {
|
|
266
|
-
var
|
|
269
|
+
var _this_children;
|
|
267
270
|
var filter = new FieldFilterConditions(item);
|
|
268
|
-
(
|
|
271
|
+
(_this_children = _this.children) === null || _this_children === void 0 ? void 0 : _this_children.push(filter);
|
|
269
272
|
} else {
|
|
270
|
-
var
|
|
273
|
+
var _this_children1;
|
|
271
274
|
var filter1 = new FieldFilterCondition(item);
|
|
272
|
-
(
|
|
275
|
+
(_this_children1 = _this.children) === null || _this_children1 === void 0 ? void 0 : _this_children1.push(filter1);
|
|
273
276
|
}
|
|
274
277
|
});
|
|
275
278
|
}
|
|
@@ -283,28 +286,28 @@ export var RightVariable = function RightVariable(props) {
|
|
|
283
286
|
/**
|
|
284
287
|
* 类型
|
|
285
288
|
* @defaultValue 'condition'
|
|
286
|
-
*/ this.type =
|
|
287
|
-
var
|
|
288
|
-
this.id = (
|
|
289
|
-
var
|
|
290
|
-
this.ruleId = (
|
|
291
|
-
var
|
|
292
|
-
this.symbol = (
|
|
293
|
-
var
|
|
294
|
-
this.checked = (
|
|
295
|
-
var
|
|
296
|
-
this.describe = (
|
|
289
|
+
*/ this.type = "condition";
|
|
290
|
+
var _props_id;
|
|
291
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
292
|
+
var _props_ruleId;
|
|
293
|
+
this.ruleId = (_props_ruleId = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _props_ruleId !== void 0 ? _props_ruleId : new Date().valueOf();
|
|
294
|
+
var _props_symbol;
|
|
295
|
+
this.symbol = (_props_symbol = props === null || props === void 0 ? void 0 : props.symbol) !== null && _props_symbol !== void 0 ? _props_symbol : "";
|
|
296
|
+
var _props_checked;
|
|
297
|
+
this.checked = (_props_checked = props === null || props === void 0 ? void 0 : props.checked) !== null && _props_checked !== void 0 ? _props_checked : false;
|
|
298
|
+
var _props_describe;
|
|
299
|
+
this.describe = (_props_describe = props === null || props === void 0 ? void 0 : props.describe) !== null && _props_describe !== void 0 ? _props_describe : "";
|
|
297
300
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
298
301
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
299
302
|
};
|
|
300
303
|
export var JoinRelation = function JoinRelation(props) {
|
|
301
304
|
"use strict";
|
|
302
305
|
_classCallCheck(this, JoinRelation);
|
|
303
|
-
var
|
|
304
|
-
this.aliasCode = (
|
|
306
|
+
var _props_aliasCode;
|
|
307
|
+
this.aliasCode = (_props_aliasCode = props === null || props === void 0 ? void 0 : props.aliasCode) !== null && _props_aliasCode !== void 0 ? _props_aliasCode : "";
|
|
305
308
|
this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
306
|
-
var
|
|
307
|
-
this.relationFields = (
|
|
309
|
+
var _props_relationFields;
|
|
310
|
+
this.relationFields = (_props_relationFields = props === null || props === void 0 ? void 0 : props.relationFields) !== null && _props_relationFields !== void 0 ? _props_relationFields : [];
|
|
308
311
|
};
|
|
309
312
|
/**
|
|
310
313
|
* 数据填充项
|
|
@@ -312,14 +315,14 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
312
315
|
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
313
316
|
"use strict";
|
|
314
317
|
_classCallCheck(this, MultistageFillingItem);
|
|
315
|
-
var
|
|
316
|
-
this.controlId = (
|
|
317
|
-
var
|
|
318
|
-
this.fieldCode = (
|
|
319
|
-
var
|
|
320
|
-
this.fieldType = (
|
|
321
|
-
var
|
|
322
|
-
this.propName = (
|
|
318
|
+
var _props_controlId;
|
|
319
|
+
this.controlId = (_props_controlId = props === null || props === void 0 ? void 0 : props.controlId) !== null && _props_controlId !== void 0 ? _props_controlId : "";
|
|
320
|
+
var _props_fieldCode;
|
|
321
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
322
|
+
var _props_fieldType;
|
|
323
|
+
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : "";
|
|
324
|
+
var _props_propName;
|
|
325
|
+
this.propName = (_props_propName = props === null || props === void 0 ? void 0 : props.propName) !== null && _props_propName !== void 0 ? _props_propName : "";
|
|
323
326
|
};
|
|
324
327
|
/**
|
|
325
328
|
* 显示项
|
|
@@ -327,10 +330,10 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
327
330
|
*/ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
328
331
|
"use strict";
|
|
329
332
|
_classCallCheck(this, DisplayBoListItem);
|
|
330
|
-
var
|
|
331
|
-
this.type = (
|
|
332
|
-
var
|
|
333
|
-
this.value = (
|
|
333
|
+
var _props_type;
|
|
334
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "FIELD";
|
|
335
|
+
var _props_value;
|
|
336
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : "";
|
|
334
337
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
335
338
|
};
|
|
336
339
|
/**
|
|
@@ -339,65 +342,65 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
339
342
|
*/ export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
340
343
|
"use strict";
|
|
341
344
|
_classCallCheck(this, DataSourceOrderItem);
|
|
342
|
-
var
|
|
343
|
-
this.columnName = (
|
|
344
|
-
var
|
|
345
|
-
this.desc = (
|
|
345
|
+
var _props_columnName;
|
|
346
|
+
this.columnName = (_props_columnName = props.columnName) !== null && _props_columnName !== void 0 ? _props_columnName : "";
|
|
347
|
+
var _props_desc;
|
|
348
|
+
this.desc = (_props_desc = props.desc) !== null && _props_desc !== void 0 ? _props_desc : false;
|
|
346
349
|
};
|
|
347
350
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
348
351
|
"use strict";
|
|
349
352
|
_classCallCheck(this, DataSourceDataSetValue);
|
|
350
|
-
var
|
|
351
|
-
this.code = (
|
|
352
|
-
var
|
|
353
|
-
this.value = (
|
|
354
|
-
var
|
|
355
|
-
this.field_type = (
|
|
353
|
+
var _props_code;
|
|
354
|
+
this.code = (_props_code = props.code) !== null && _props_code !== void 0 ? _props_code : "";
|
|
355
|
+
var _props_value;
|
|
356
|
+
this.value = (_props_value = props.value) !== null && _props_value !== void 0 ? _props_value : "";
|
|
357
|
+
var _props_field_type;
|
|
358
|
+
this.field_type = (_props_field_type = props.field_type) !== null && _props_field_type !== void 0 ? _props_field_type : FieldTypes.ANY;
|
|
356
359
|
};
|
|
357
360
|
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
358
361
|
"use strict";
|
|
359
362
|
_classCallCheck(this, DataSourceParamItem);
|
|
360
|
-
var
|
|
361
|
-
var
|
|
363
|
+
var _props_orders, _props_dataSet;
|
|
364
|
+
var _props_id;
|
|
362
365
|
//字段ID,不可以当作随机数生成唯一编号
|
|
363
|
-
this.id = (
|
|
364
|
-
var
|
|
365
|
-
this.limit = (
|
|
366
|
-
var
|
|
367
|
-
this.formKey = (
|
|
368
|
-
var
|
|
369
|
-
this.orders = (
|
|
366
|
+
this.id = (_props_id = props.id) !== null && _props_id !== void 0 ? _props_id : "";
|
|
367
|
+
var _props_limit;
|
|
368
|
+
this.limit = (_props_limit = props.limit) !== null && _props_limit !== void 0 ? _props_limit : 20;
|
|
369
|
+
var _props_formKey;
|
|
370
|
+
this.formKey = (_props_formKey = props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
371
|
+
var _props_orders_map;
|
|
372
|
+
this.orders = (_props_orders_map = (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
|
|
370
373
|
return new DataSourceOrderItem(item);
|
|
371
|
-
})) !== null &&
|
|
372
|
-
var
|
|
373
|
-
this.dataSet = (
|
|
374
|
+
})) !== null && _props_orders_map !== void 0 ? _props_orders_map : [];
|
|
375
|
+
var _props_dataSet_map;
|
|
376
|
+
this.dataSet = (_props_dataSet_map = (_props_dataSet = props.dataSet) === null || _props_dataSet === void 0 ? void 0 : _props_dataSet.map(function(item) {
|
|
374
377
|
return new DataSourceDataSetValue(item);
|
|
375
|
-
})) !== null &&
|
|
378
|
+
})) !== null && _props_dataSet_map !== void 0 ? _props_dataSet_map : [];
|
|
376
379
|
};
|
|
377
380
|
/**
|
|
378
381
|
* 给filters和orders赋值
|
|
379
382
|
* */ function callFiltersAndOrders(props) {
|
|
380
|
-
var
|
|
381
|
-
var
|
|
382
|
-
this.filters = (
|
|
383
|
+
var _props_filters, _props_viewFilters;
|
|
384
|
+
var _props_filters_map;
|
|
385
|
+
this.filters = (_props_filters_map = props === null || props === void 0 ? void 0 : (_props_filters = props.filters) === null || _props_filters === void 0 ? void 0 : _props_filters.map(function(item) {
|
|
383
386
|
if (item.children !== undefined) {
|
|
384
387
|
return new FieldFilterConditions(item);
|
|
385
388
|
}
|
|
386
389
|
return new FieldFilterCondition(item);
|
|
387
|
-
})) !== null &&
|
|
388
|
-
var
|
|
389
|
-
this.viewFilters = (
|
|
390
|
+
})) !== null && _props_filters_map !== void 0 ? _props_filters_map : [];
|
|
391
|
+
var _props_viewFilters_map;
|
|
392
|
+
this.viewFilters = (_props_viewFilters_map = props === null || props === void 0 ? void 0 : (_props_viewFilters = props.viewFilters) === null || _props_viewFilters === void 0 ? void 0 : _props_viewFilters.map(function(item) {
|
|
390
393
|
if (item.children !== undefined) {
|
|
391
394
|
return new FieldFilterConditions(item);
|
|
392
395
|
}
|
|
393
396
|
return new FieldFilterCondition(item);
|
|
394
|
-
})) !== null &&
|
|
397
|
+
})) !== null && _props_viewFilters_map !== void 0 ? _props_viewFilters_map : [];
|
|
395
398
|
if (_instanceof(this, DataSourceBind) || _instanceof(this, FillPayloadBind)) {
|
|
396
|
-
var
|
|
397
|
-
var
|
|
398
|
-
this.orders = (
|
|
399
|
+
var _props_orders;
|
|
400
|
+
var _props_orders_map;
|
|
401
|
+
this.orders = (_props_orders_map = props === null || props === void 0 ? void 0 : (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
|
|
399
402
|
return new DataSourceOrderItem(item);
|
|
400
|
-
})) !== null &&
|
|
403
|
+
})) !== null && _props_orders_map !== void 0 ? _props_orders_map : [];
|
|
401
404
|
}
|
|
402
405
|
}
|
|
403
406
|
/**
|
|
@@ -405,75 +408,75 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
405
408
|
* @public
|
|
406
409
|
*/ export var DataSourceBind = function DataSourceBind(props) {
|
|
407
410
|
"use strict";
|
|
411
|
+
var _this = this;
|
|
408
412
|
_classCallCheck(this, DataSourceBind);
|
|
409
|
-
var
|
|
410
|
-
this.dataCode = (
|
|
411
|
-
var
|
|
412
|
-
this.appId = (
|
|
413
|
-
var
|
|
414
|
-
this.valueFieldCode = (
|
|
413
|
+
var _props_dataCode;
|
|
414
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
415
|
+
var _props_appId;
|
|
416
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
417
|
+
var _props_valueFieldCode;
|
|
418
|
+
this.valueFieldCode = (_props_valueFieldCode = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && _props_valueFieldCode !== void 0 ? _props_valueFieldCode : "";
|
|
415
419
|
this.displayBoList = [];
|
|
416
|
-
var
|
|
417
|
-
this.isOpenViewFilters = (
|
|
420
|
+
var _props_isOpenViewFilters;
|
|
421
|
+
this.isOpenViewFilters = (_props_isOpenViewFilters = props === null || props === void 0 ? void 0 : props.isOpenViewFilters) !== null && _props_isOpenViewFilters !== void 0 ? _props_isOpenViewFilters : 0;
|
|
418
422
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
419
|
-
var _this = this;
|
|
420
423
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
421
|
-
var
|
|
422
|
-
(
|
|
424
|
+
var _this_displayBoList;
|
|
425
|
+
(_this_displayBoList = _this.displayBoList) === null || _this_displayBoList === void 0 ? void 0 : _this_displayBoList.push(new DisplayBoListItem(item));
|
|
423
426
|
});
|
|
424
427
|
}
|
|
425
|
-
var
|
|
426
|
-
this.keywordMapping = (
|
|
427
|
-
var
|
|
428
|
-
this.showOrder = (
|
|
429
|
-
var
|
|
430
|
-
this.svcCode = (
|
|
428
|
+
var _props_keywordMapping;
|
|
429
|
+
this.keywordMapping = (_props_keywordMapping = props === null || props === void 0 ? void 0 : props.keywordMapping) !== null && _props_keywordMapping !== void 0 ? _props_keywordMapping : "";
|
|
430
|
+
var _props_showOrder;
|
|
431
|
+
this.showOrder = (_props_showOrder = props === null || props === void 0 ? void 0 : props.showOrder) !== null && _props_showOrder !== void 0 ? _props_showOrder : true;
|
|
432
|
+
var _props_svcCode;
|
|
433
|
+
this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : "";
|
|
431
434
|
callFiltersAndOrders.call(this, props);
|
|
432
435
|
};
|
|
433
436
|
export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
434
437
|
"use strict";
|
|
435
438
|
_classCallCheck(this, SelectedContentConfig);
|
|
436
|
-
var
|
|
437
|
-
this.dataCode = (
|
|
438
|
-
var
|
|
439
|
-
this.displayBoList = (
|
|
439
|
+
var _props_dataCode;
|
|
440
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
441
|
+
var _props_displayBoList;
|
|
442
|
+
this.displayBoList = (_props_displayBoList = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _props_displayBoList !== void 0 ? _props_displayBoList : [];
|
|
440
443
|
};
|
|
441
444
|
export var LinkOperationOption = function LinkOperationOption(props) {
|
|
442
445
|
"use strict";
|
|
443
446
|
_classCallCheck(this, LinkOperationOption);
|
|
444
|
-
var
|
|
445
|
-
this.code = (
|
|
446
|
-
var
|
|
447
|
-
this.color = (
|
|
448
|
-
var
|
|
449
|
-
this.command = (
|
|
450
|
-
var
|
|
451
|
-
this.confirmMessage = (
|
|
452
|
-
var
|
|
453
|
-
this.defaultState = (
|
|
454
|
-
var
|
|
455
|
-
this.formKey = (
|
|
456
|
-
var
|
|
457
|
-
this.icon = (
|
|
458
|
-
var
|
|
459
|
-
this.needConfirm = (
|
|
460
|
-
var
|
|
461
|
-
this.openType = (
|
|
462
|
-
var
|
|
463
|
-
this.priorityProcess = (
|
|
447
|
+
var _props_code;
|
|
448
|
+
this.code = (_props_code = props === null || props === void 0 ? void 0 : props.code) !== null && _props_code !== void 0 ? _props_code : "view";
|
|
449
|
+
var _props_color;
|
|
450
|
+
this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : "primary";
|
|
451
|
+
var _props_command;
|
|
452
|
+
this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : "view";
|
|
453
|
+
var _props_confirmMessage;
|
|
454
|
+
this.confirmMessage = (_props_confirmMessage = props === null || props === void 0 ? void 0 : props.confirmMessage) !== null && _props_confirmMessage !== void 0 ? _props_confirmMessage : undefined;
|
|
455
|
+
var _props_defaultState;
|
|
456
|
+
this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : "default";
|
|
457
|
+
var _props_formKey;
|
|
458
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : undefined;
|
|
459
|
+
var _props_icon;
|
|
460
|
+
this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : "iconliulan1";
|
|
461
|
+
var _props_needConfirm;
|
|
462
|
+
this.needConfirm = (_props_needConfirm = props === null || props === void 0 ? void 0 : props.needConfirm) !== null && _props_needConfirm !== void 0 ? _props_needConfirm : false;
|
|
463
|
+
var _props_openType;
|
|
464
|
+
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : "modal";
|
|
465
|
+
var _props_priorityProcess;
|
|
466
|
+
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : true;
|
|
464
467
|
};
|
|
465
468
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
466
469
|
"use strict";
|
|
467
470
|
_classCallCheck(this, CustomAttributeItem);
|
|
468
|
-
var
|
|
469
|
-
var
|
|
470
|
-
this.name = (
|
|
471
|
-
var
|
|
472
|
-
this.key = (
|
|
473
|
-
var
|
|
474
|
-
this.value = (
|
|
471
|
+
var _props_value;
|
|
472
|
+
var _props_name;
|
|
473
|
+
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : "";
|
|
474
|
+
var _props_key;
|
|
475
|
+
this.key = (_props_key = props === null || props === void 0 ? void 0 : props.key) !== null && _props_key !== void 0 ? _props_key : "";
|
|
476
|
+
var _props_value_map;
|
|
477
|
+
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) {
|
|
475
478
|
return new DisplayBoListItem(item);
|
|
476
|
-
})) !== null &&
|
|
479
|
+
})) !== null && _props_value_map !== void 0 ? _props_value_map : [];
|
|
477
480
|
};
|
|
478
481
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
479
482
|
"use strict";
|
|
@@ -482,12 +485,12 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
482
485
|
function SuperDataSourceBind(props) {
|
|
483
486
|
_classCallCheck(this, SuperDataSourceBind);
|
|
484
487
|
var _this;
|
|
485
|
-
var
|
|
488
|
+
var _props_attributes;
|
|
486
489
|
_this = _super.call(this, props);
|
|
487
|
-
var
|
|
488
|
-
_this.attributes = (
|
|
490
|
+
var _props_attributes_map;
|
|
491
|
+
_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) {
|
|
489
492
|
return new CustomAttributeItem(item);
|
|
490
|
-
})) !== null &&
|
|
493
|
+
})) !== null && _props_attributes_map !== void 0 ? _props_attributes_map : [];
|
|
491
494
|
return _this;
|
|
492
495
|
}
|
|
493
496
|
return SuperDataSourceBind;
|
|
@@ -499,14 +502,14 @@ export var OrganizationDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
499
502
|
function OrganizationDataSourceBind(props) {
|
|
500
503
|
_classCallCheck(this, OrganizationDataSourceBind);
|
|
501
504
|
var _this;
|
|
502
|
-
var
|
|
505
|
+
var _props_attributes;
|
|
503
506
|
_this = _super.call(this, props);
|
|
504
|
-
var
|
|
505
|
-
_this.attributes = (
|
|
507
|
+
var _props_attributes_map;
|
|
508
|
+
_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) {
|
|
506
509
|
return new CustomAttributeItem(item);
|
|
507
|
-
})) !== null &&
|
|
508
|
-
var
|
|
509
|
-
_this.formCode = (
|
|
510
|
+
})) !== null && _props_attributes_map !== void 0 ? _props_attributes_map : [];
|
|
511
|
+
var _props_formCode;
|
|
512
|
+
_this.formCode = (_props_formCode = props === null || props === void 0 ? void 0 : props.formCode) !== null && _props_formCode !== void 0 ? _props_formCode : "";
|
|
510
513
|
return _this;
|
|
511
514
|
}
|
|
512
515
|
return OrganizationDataSourceBind;
|
|
@@ -520,8 +523,8 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
520
523
|
var _this;
|
|
521
524
|
_this = _super.call(this, props);
|
|
522
525
|
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
523
|
-
var
|
|
524
|
-
_this.filterCode = (
|
|
526
|
+
var _props_filterCode;
|
|
527
|
+
_this.filterCode = (_props_filterCode = props === null || props === void 0 ? void 0 : props.filterCode) !== null && _props_filterCode !== void 0 ? _props_filterCode : "";
|
|
525
528
|
return _this;
|
|
526
529
|
}
|
|
527
530
|
return TreeDataSourceBind;
|
|
@@ -529,15 +532,15 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
529
532
|
var FillBind = function FillBind(props) {
|
|
530
533
|
"use strict";
|
|
531
534
|
_classCallCheck(this, FillBind);
|
|
532
|
-
var
|
|
533
|
-
var
|
|
534
|
-
this.dataCode = (
|
|
535
|
-
var
|
|
536
|
-
this.appId = (
|
|
537
|
-
var
|
|
538
|
-
this.fillList = (
|
|
535
|
+
var _props_fillList;
|
|
536
|
+
var _props_dataCode;
|
|
537
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
538
|
+
var _props_appId;
|
|
539
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
540
|
+
var _props_fillList_map;
|
|
541
|
+
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) {
|
|
539
542
|
return new MultistageFillingItem(item);
|
|
540
|
-
})) !== null &&
|
|
543
|
+
})) !== null && _props_fillList_map !== void 0 ? _props_fillList_map : [];
|
|
541
544
|
};
|
|
542
545
|
/**
|
|
543
546
|
* FillPayloadBind 填充配置
|
|
@@ -567,10 +570,10 @@ var FillBind = function FillBind(props) {
|
|
|
567
570
|
_classCallCheck(this, FillBackBind);
|
|
568
571
|
var _this;
|
|
569
572
|
_this = _super.call(this, props);
|
|
570
|
-
var
|
|
571
|
-
_this.mode = (
|
|
572
|
-
var
|
|
573
|
-
_this.multiple = (
|
|
573
|
+
var _props_mode;
|
|
574
|
+
_this.mode = (_props_mode = props === null || props === void 0 ? void 0 : props.mode) !== null && _props_mode !== void 0 ? _props_mode : "current";
|
|
575
|
+
var _props_multiple;
|
|
576
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
574
577
|
return _this;
|
|
575
578
|
}
|
|
576
579
|
return FillBackBind;
|
|
@@ -578,12 +581,12 @@ var FillBind = function FillBind(props) {
|
|
|
578
581
|
export var Language = function Language(props) {
|
|
579
582
|
"use strict";
|
|
580
583
|
_classCallCheck(this, Language);
|
|
581
|
-
var
|
|
582
|
-
this.zh = (
|
|
583
|
-
var
|
|
584
|
-
this.en = (
|
|
585
|
-
var
|
|
586
|
-
this.ja = (
|
|
584
|
+
var _props_zh;
|
|
585
|
+
this.zh = (_props_zh = props === null || props === void 0 ? void 0 : props.zh) !== null && _props_zh !== void 0 ? _props_zh : "";
|
|
586
|
+
var _props_en;
|
|
587
|
+
this.en = (_props_en = props === null || props === void 0 ? void 0 : props.en) !== null && _props_en !== void 0 ? _props_en : "";
|
|
588
|
+
var _props_ja;
|
|
589
|
+
this.ja = (_props_ja = props === null || props === void 0 ? void 0 : props.ja) !== null && _props_ja !== void 0 ? _props_ja : "";
|
|
587
590
|
};
|
|
588
591
|
/**
|
|
589
592
|
* 正则校验
|
|
@@ -591,12 +594,12 @@ export var Language = function Language(props) {
|
|
|
591
594
|
*/ export var RegularRules = function RegularRules(props) {
|
|
592
595
|
"use strict";
|
|
593
596
|
_classCallCheck(this, RegularRules);
|
|
594
|
-
var
|
|
595
|
-
this.stencilName = (
|
|
596
|
-
var
|
|
597
|
-
this.expression = (
|
|
598
|
-
var
|
|
599
|
-
this.errMessage = (
|
|
597
|
+
var _props_stencilName;
|
|
598
|
+
this.stencilName = (_props_stencilName = props === null || props === void 0 ? void 0 : props.stencilName) !== null && _props_stencilName !== void 0 ? _props_stencilName : "";
|
|
599
|
+
var _props_expression;
|
|
600
|
+
this.expression = (_props_expression = props === null || props === void 0 ? void 0 : props.expression) !== null && _props_expression !== void 0 ? _props_expression : "";
|
|
601
|
+
var _props_errMessage;
|
|
602
|
+
this.errMessage = (_props_errMessage = props === null || props === void 0 ? void 0 : props.errMessage) !== null && _props_errMessage !== void 0 ? _props_errMessage : "";
|
|
600
603
|
};
|
|
601
604
|
/**
|
|
602
605
|
* 选项设置-自定义选项
|
|
@@ -604,12 +607,12 @@ export var Language = function Language(props) {
|
|
|
604
607
|
*/ export var OptionSetting = function OptionSetting(props) {
|
|
605
608
|
"use strict";
|
|
606
609
|
_classCallCheck(this, OptionSetting);
|
|
607
|
-
var
|
|
608
|
-
this.id = (
|
|
609
|
-
var
|
|
610
|
-
this.label = (
|
|
611
|
-
var
|
|
612
|
-
this.value = (
|
|
610
|
+
var _props_id;
|
|
611
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
612
|
+
var _props_label;
|
|
613
|
+
this.label = (_props_label = props === null || props === void 0 ? void 0 : props.label) !== null && _props_label !== void 0 ? _props_label : "";
|
|
614
|
+
var _props_value;
|
|
615
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : this.label;
|
|
613
616
|
};
|
|
614
617
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
615
618
|
"use strict";
|
|
@@ -619,25 +622,25 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
619
622
|
_classCallCheck(this, ImageOptionSetting);
|
|
620
623
|
var _this;
|
|
621
624
|
_this = _super.call(this, props);
|
|
622
|
-
var
|
|
623
|
-
_this.image = (
|
|
624
|
-
var
|
|
625
|
-
_this.type = (
|
|
625
|
+
var _props_image;
|
|
626
|
+
_this.image = (_props_image = props === null || props === void 0 ? void 0 : props.image) !== null && _props_image !== void 0 ? _props_image : "";
|
|
627
|
+
var _props_type;
|
|
628
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "src";
|
|
626
629
|
return _this;
|
|
627
630
|
}
|
|
628
631
|
return ImageOptionSetting;
|
|
629
632
|
}(OptionSetting);
|
|
630
633
|
export function initOptions(options) {
|
|
631
|
-
var
|
|
632
|
-
return (
|
|
634
|
+
var _options_map;
|
|
635
|
+
return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
633
636
|
return new OptionSetting(item);
|
|
634
|
-
})) !== null &&
|
|
637
|
+
})) !== null && _options_map !== void 0 ? _options_map : [];
|
|
635
638
|
}
|
|
636
639
|
export function initImageOptions(options) {
|
|
637
|
-
var
|
|
638
|
-
return (
|
|
640
|
+
var _options_map;
|
|
641
|
+
return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
639
642
|
return new ImageOptionSetting(item);
|
|
640
|
-
})) !== null &&
|
|
643
|
+
})) !== null && _options_map !== void 0 ? _options_map : [];
|
|
641
644
|
}
|
|
642
645
|
/**
|
|
643
646
|
* 对象类型数据绑定配置
|
|
@@ -669,10 +672,10 @@ export function initImageOptions(options) {
|
|
|
669
672
|
*/ export var AmountValue = function AmountValue(props) {
|
|
670
673
|
"use strict";
|
|
671
674
|
_classCallCheck(this, AmountValue);
|
|
672
|
-
var
|
|
673
|
-
this.amount = (
|
|
674
|
-
var
|
|
675
|
-
this.currency = (
|
|
675
|
+
var _props_amount;
|
|
676
|
+
this.amount = (_props_amount = props === null || props === void 0 ? void 0 : props.amount) !== null && _props_amount !== void 0 ? _props_amount : "";
|
|
677
|
+
var _props_currency;
|
|
678
|
+
this.currency = (_props_currency = props === null || props === void 0 ? void 0 : props.currency) !== null && _props_currency !== void 0 ? _props_currency : AMOUNT_TYPE.CNY;
|
|
676
679
|
};
|
|
677
680
|
/**
|
|
678
681
|
* 日期区间数据绑定项
|
|
@@ -697,10 +700,10 @@ export function initImageOptions(options) {
|
|
|
697
700
|
*/ export var RangeDateValue = function RangeDateValue(props) {
|
|
698
701
|
"use strict";
|
|
699
702
|
_classCallCheck(this, RangeDateValue);
|
|
700
|
-
var
|
|
701
|
-
this.min = (
|
|
702
|
-
var
|
|
703
|
-
this.max = (
|
|
703
|
+
var _props_min;
|
|
704
|
+
this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
|
|
705
|
+
var _props_max;
|
|
706
|
+
this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : "";
|
|
704
707
|
};
|
|
705
708
|
/**
|
|
706
709
|
* 地址值
|
|
@@ -708,18 +711,18 @@ export function initImageOptions(options) {
|
|
|
708
711
|
*/ export var AddressValue = function AddressValue(props) {
|
|
709
712
|
"use strict";
|
|
710
713
|
_classCallCheck(this, AddressValue);
|
|
711
|
-
var
|
|
712
|
-
this.city = (
|
|
713
|
-
var
|
|
714
|
-
this.cityDisplay = (
|
|
715
|
-
var
|
|
716
|
-
this.district = (
|
|
717
|
-
var
|
|
718
|
-
this.districtDisplay = (
|
|
719
|
-
var
|
|
720
|
-
this.province = (
|
|
721
|
-
var
|
|
722
|
-
this.provinceDisplay = (
|
|
714
|
+
var _props_city;
|
|
715
|
+
this.city = (_props_city = props === null || props === void 0 ? void 0 : props.city) !== null && _props_city !== void 0 ? _props_city : "";
|
|
716
|
+
var _props_cityDisplay;
|
|
717
|
+
this.cityDisplay = (_props_cityDisplay = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && _props_cityDisplay !== void 0 ? _props_cityDisplay : "";
|
|
718
|
+
var _props_district;
|
|
719
|
+
this.district = (_props_district = props === null || props === void 0 ? void 0 : props.district) !== null && _props_district !== void 0 ? _props_district : "";
|
|
720
|
+
var _props_districtDisplay;
|
|
721
|
+
this.districtDisplay = (_props_districtDisplay = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && _props_districtDisplay !== void 0 ? _props_districtDisplay : "";
|
|
722
|
+
var _props_province;
|
|
723
|
+
this.province = (_props_province = props === null || props === void 0 ? void 0 : props.province) !== null && _props_province !== void 0 ? _props_province : "";
|
|
724
|
+
var _props_provinceDisplay;
|
|
725
|
+
this.provinceDisplay = (_props_provinceDisplay = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && _props_provinceDisplay !== void 0 ? _props_provinceDisplay : "";
|
|
723
726
|
};
|
|
724
727
|
/**
|
|
725
728
|
* 计算公式数据绑定项
|
|
@@ -744,10 +747,10 @@ export function initImageOptions(options) {
|
|
|
744
747
|
*/ export var CalcValue = function CalcValue(props) {
|
|
745
748
|
"use strict";
|
|
746
749
|
_classCallCheck(this, CalcValue);
|
|
747
|
-
var
|
|
748
|
-
this.result = (
|
|
749
|
-
var
|
|
750
|
-
this.unit = (
|
|
750
|
+
var _props_result;
|
|
751
|
+
this.result = (_props_result = props === null || props === void 0 ? void 0 : props.result) !== null && _props_result !== void 0 ? _props_result : 0;
|
|
752
|
+
var _props_unit;
|
|
753
|
+
this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : "";
|
|
751
754
|
};
|
|
752
755
|
export var AMOUNT_TYPE;
|
|
753
756
|
(function(AMOUNT_TYPE) {
|
|
@@ -781,35 +784,35 @@ export var AMOUNT_TYPE;
|
|
|
781
784
|
})(AMOUNT_TYPE || (AMOUNT_TYPE = {}));
|
|
782
785
|
export var COMMON_SETTING_TYPE;
|
|
783
786
|
(function(COMMON_SETTING_TYPE) {
|
|
784
|
-
COMMON_SETTING_TYPE["DEFAULT_DISPLAY"] =
|
|
785
|
-
COMMON_SETTING_TYPE["REQUIRED"] =
|
|
786
|
-
COMMON_SETTING_TYPE["IS_HIDE"] =
|
|
787
|
-
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] =
|
|
788
|
-
COMMON_SETTING_TYPE["IMD_SEARCH"] =
|
|
789
|
-
COMMON_SETTING_TYPE["MULTIPLE"] =
|
|
790
|
-
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] =
|
|
791
|
-
COMMON_SETTING_TYPE["CAPTION"] =
|
|
792
|
-
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] =
|
|
793
|
-
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] =
|
|
794
|
-
COMMON_SETTING_TYPE["CAN_SEARCH"] =
|
|
795
|
-
COMMON_SETTING_TYPE["CAN_CHECK"] =
|
|
796
|
-
COMMON_SETTING_TYPE["CAN_EDIT"] =
|
|
797
|
-
COMMON_SETTING_TYPE["CAN_DELETE"] =
|
|
798
|
-
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] =
|
|
799
|
-
COMMON_SETTING_TYPE["MICROMETER"] =
|
|
800
|
-
COMMON_SETTING_TYPE["PRECISION"] =
|
|
801
|
-
COMMON_SETTING_TYPE["PERCENTAGE"] =
|
|
802
|
-
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] =
|
|
803
|
-
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] =
|
|
804
|
-
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] =
|
|
805
|
-
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] =
|
|
806
|
-
COMMON_SETTING_TYPE["VIEW_FORM_MODEL_TYPE"] =
|
|
807
|
-
COMMON_SETTING_TYPE["SERVER_PAGINATION"] =
|
|
808
|
-
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] =
|
|
809
|
-
COMMON_SETTING_TYPE["ENCRYPTED"] =
|
|
810
|
-
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] =
|
|
811
|
-
COMMON_SETTING_TYPE["REVISIONS_MODE"] =
|
|
812
|
-
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] =
|
|
787
|
+
COMMON_SETTING_TYPE["DEFAULT_DISPLAY"] = "defaultDisplay";
|
|
788
|
+
COMMON_SETTING_TYPE["REQUIRED"] = "required";
|
|
789
|
+
COMMON_SETTING_TYPE["IS_HIDE"] = "isHide";
|
|
790
|
+
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] = "isShowUnit";
|
|
791
|
+
COMMON_SETTING_TYPE["IMD_SEARCH"] = "immediatelySearch";
|
|
792
|
+
COMMON_SETTING_TYPE["MULTIPLE"] = "multiple";
|
|
793
|
+
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] = "submitSelectCurrency";
|
|
794
|
+
COMMON_SETTING_TYPE["CAPTION"] = "caption";
|
|
795
|
+
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] = "isHideCaption";
|
|
796
|
+
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] = "defaultShowOptions";
|
|
797
|
+
COMMON_SETTING_TYPE["CAN_SEARCH"] = "canSearch";
|
|
798
|
+
COMMON_SETTING_TYPE["CAN_CHECK"] = "canCheck";
|
|
799
|
+
COMMON_SETTING_TYPE["CAN_EDIT"] = "canEdit";
|
|
800
|
+
COMMON_SETTING_TYPE["CAN_DELETE"] = "canDelete";
|
|
801
|
+
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] = "showUpperCase";
|
|
802
|
+
COMMON_SETTING_TYPE["MICROMETER"] = "micrometer";
|
|
803
|
+
COMMON_SETTING_TYPE["PRECISION"] = "precision";
|
|
804
|
+
COMMON_SETTING_TYPE["PERCENTAGE"] = "percentage";
|
|
805
|
+
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] = "optionalLevel";
|
|
806
|
+
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] = "containsSubNode";
|
|
807
|
+
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] = "defaultCollapse";
|
|
808
|
+
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] = "canViewForm";
|
|
809
|
+
COMMON_SETTING_TYPE["VIEW_FORM_MODEL_TYPE"] = "viewFormModelType";
|
|
810
|
+
COMMON_SETTING_TYPE["SERVER_PAGINATION"] = "serverPagination";
|
|
811
|
+
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] = "isShowCaptionTip";
|
|
812
|
+
COMMON_SETTING_TYPE["ENCRYPTED"] = "encrypted";
|
|
813
|
+
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] = "isInlineEdit";
|
|
814
|
+
COMMON_SETTING_TYPE["REVISIONS_MODE"] = "revisionsMode";
|
|
815
|
+
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] = "allowCopyOptions";
|
|
813
816
|
})(COMMON_SETTING_TYPE || (COMMON_SETTING_TYPE = {}));
|
|
814
817
|
export var PAGE_STATUS;
|
|
815
818
|
(function(PAGE_STATUS) {
|
|
@@ -824,31 +827,31 @@ export var PAGE_STATUS;
|
|
|
824
827
|
*/ export var OperationItem = function OperationItem(props) {
|
|
825
828
|
"use strict";
|
|
826
829
|
_classCallCheck(this, OperationItem);
|
|
827
|
-
var
|
|
828
|
-
this.isShow = (
|
|
829
|
-
var
|
|
830
|
-
this.content = (
|
|
831
|
-
var
|
|
832
|
-
this.formKey = (
|
|
833
|
-
var
|
|
834
|
-
this.openType = (
|
|
835
|
-
var
|
|
836
|
-
this.type = (
|
|
837
|
-
var
|
|
838
|
-
this.priorityProcess = (
|
|
830
|
+
var _props_isShow;
|
|
831
|
+
this.isShow = (_props_isShow = props === null || props === void 0 ? void 0 : props.isShow) !== null && _props_isShow !== void 0 ? _props_isShow : true;
|
|
832
|
+
var _props_content;
|
|
833
|
+
this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "";
|
|
834
|
+
var _props_formKey;
|
|
835
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
836
|
+
var _props_openType;
|
|
837
|
+
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : "modal";
|
|
838
|
+
var _props_type;
|
|
839
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "";
|
|
840
|
+
var _props_priorityProcess;
|
|
841
|
+
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : false;
|
|
839
842
|
};
|
|
840
843
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
841
844
|
"use strict";
|
|
842
845
|
_classCallCheck(this, ViewOperationItem);
|
|
843
|
-
var
|
|
844
|
-
var
|
|
845
|
-
this.id = (
|
|
846
|
-
var
|
|
847
|
-
this.title = (
|
|
848
|
-
var
|
|
849
|
-
this.headers = (
|
|
846
|
+
var _props_headers;
|
|
847
|
+
var _props_id;
|
|
848
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
849
|
+
var _props_title;
|
|
850
|
+
this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
851
|
+
var _props_headers_map;
|
|
852
|
+
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) {
|
|
850
853
|
return new ListBindHeaderItem(item);
|
|
851
|
-
})) !== null &&
|
|
854
|
+
})) !== null && _props_headers_map !== void 0 ? _props_headers_map : [];
|
|
852
855
|
callFiltersAndOrders.call(this, props);
|
|
853
856
|
};
|
|
854
857
|
/**
|
|
@@ -856,28 +859,28 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
856
859
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
857
860
|
"use strict";
|
|
858
861
|
_classCallCheck(this, CustomPermissionItem);
|
|
859
|
-
var
|
|
860
|
-
this.key = (
|
|
861
|
-
var
|
|
862
|
-
this.caption = (
|
|
862
|
+
var _props_key;
|
|
863
|
+
this.key = (_props_key = props.key) !== null && _props_key !== void 0 ? _props_key : genNonDuplicateId(8);
|
|
864
|
+
var _props_caption;
|
|
865
|
+
this.caption = (_props_caption = props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
|
|
863
866
|
};
|
|
864
867
|
export var BaseStyle = function BaseStyle(props) {
|
|
865
868
|
"use strict";
|
|
866
869
|
_classCallCheck(this, BaseStyle);
|
|
867
|
-
var
|
|
868
|
-
this.width = (
|
|
869
|
-
var
|
|
870
|
-
this.height = (
|
|
871
|
-
var
|
|
872
|
-
this.widthConfig = (
|
|
873
|
-
var
|
|
874
|
-
this.heightConfig = (
|
|
870
|
+
var _props_width;
|
|
871
|
+
this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : "";
|
|
872
|
+
var _props_height;
|
|
873
|
+
this.height = (_props_height = props === null || props === void 0 ? void 0 : props.height) !== null && _props_height !== void 0 ? _props_height : "";
|
|
874
|
+
var _props_widthConfig;
|
|
875
|
+
this.widthConfig = (_props_widthConfig = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && _props_widthConfig !== void 0 ? _props_widthConfig : "fill";
|
|
876
|
+
var _props_heightConfig;
|
|
877
|
+
this.heightConfig = (_props_heightConfig = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && _props_heightConfig !== void 0 ? _props_heightConfig : "fill";
|
|
875
878
|
};
|
|
876
879
|
export var OptObject = function OptObject(props) {
|
|
877
880
|
"use strict";
|
|
878
881
|
_classCallCheck(this, OptObject);
|
|
879
|
-
var
|
|
880
|
-
this.optCode = (
|
|
881
|
-
var
|
|
882
|
-
this.optType = (
|
|
882
|
+
var _props_optCode;
|
|
883
|
+
this.optCode = (_props_optCode = props === null || props === void 0 ? void 0 : props.optCode) !== null && _props_optCode !== void 0 ? _props_optCode : "";
|
|
884
|
+
var _props_optType;
|
|
885
|
+
this.optType = (_props_optType = props === null || props === void 0 ? void 0 : props.optType) !== null && _props_optType !== void 0 ? _props_optType : "";
|
|
883
886
|
};
|