@byteluck-fe/model-driven-core 2.4.1-beta.4 → 2.4.1-beta.6
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 +215 -96
- package/dist/esm/common/BaseControl/index.js +7 -7
- package/dist/esm/common/BaseControl/property.js +42 -14
- package/dist/esm/common/BaseControl/runtime.js +41 -20
- package/dist/esm/common/ColumnControl/designer.js +19 -5
- package/dist/esm/common/ColumnControl/index.js +6 -6
- package/dist/esm/common/ColumnControl/property.js +95 -47
- package/dist/esm/common/ColumnControl/runtime.js +19 -5
- package/dist/esm/common/ControlArray.js +8 -8
- package/dist/esm/common/FormControl/designer.js +25 -10
- package/dist/esm/common/FormControl/index.js +6 -6
- package/dist/esm/common/FormControl/property.js +152 -87
- package/dist/esm/common/FormControl/runtime.js +20 -5
- package/dist/esm/common/LayoutControl/designer.js +158 -30
- 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 +22 -7
- package/dist/esm/common/ListControl/designer.js +151 -26
- package/dist/esm/common/ListControl/index.js +6 -6
- package/dist/esm/common/ListControl/property.js +19 -5
- package/dist/esm/common/ListControl/runtime.js +22 -7
- package/dist/esm/common/SearchViewControl/designer.js +19 -5
- package/dist/esm/common/SearchViewControl/index.js +6 -6
- package/dist/esm/common/SearchViewControl/property.js +18 -4
- package/dist/esm/common/SearchViewControl/runtime.js +19 -5
- package/dist/esm/common/Validator.js +5 -5
- package/dist/esm/common/WrapControl/designer.js +19 -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 +19 -5
- 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 +27 -15
- package/dist/esm/framework/index.js +666 -286
- 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/framework/index.d.ts +1 -1
- package/dist/types/type.d.ts +23 -23
- package/package.json +2 -2
|
@@ -9,6 +9,19 @@ 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
|
+
}
|
|
12
25
|
function _getPrototypeOf(o) {
|
|
13
26
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
14
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
@@ -30,7 +43,7 @@ function _inherits(subClass, superClass) {
|
|
|
30
43
|
}
|
|
31
44
|
function _instanceof(left, right) {
|
|
32
45
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
33
|
-
return right[Symbol.hasInstance](left);
|
|
46
|
+
return !!right[Symbol.hasInstance](left);
|
|
34
47
|
} else {
|
|
35
48
|
return left instanceof right;
|
|
36
49
|
}
|
|
@@ -76,29 +89,47 @@ function _createSuper(Derived) {
|
|
|
76
89
|
return _possibleConstructorReturn(this, result);
|
|
77
90
|
};
|
|
78
91
|
}
|
|
79
|
-
import { FieldTypes, genNonDuplicateId } from
|
|
80
|
-
export * from
|
|
92
|
+
import { FieldTypes, genNonDuplicateId } from "@byteluck-fe/model-driven-shared";
|
|
93
|
+
export * from "./RegisterControls";
|
|
81
94
|
/**
|
|
82
95
|
* 数据绑定配置
|
|
83
96
|
* @public
|
|
84
97
|
*/ export var DataBind = function DataBind(props) {
|
|
85
98
|
"use strict";
|
|
86
99
|
_classCallCheck(this, DataBind);
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
100
|
+
/**
|
|
101
|
+
* 数据模型编码
|
|
102
|
+
* @defaultValue ''
|
|
103
|
+
* @public
|
|
104
|
+
*/ _defineProperty(this, "dataCode", void 0);
|
|
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 : "";
|
|
93
121
|
};
|
|
94
122
|
export var AutoWidth = function AutoWidth(props) {
|
|
95
123
|
"use strict";
|
|
96
124
|
_classCallCheck(this, AutoWidth);
|
|
97
|
-
|
|
98
|
-
this
|
|
125
|
+
_defineProperty(this, "minWidth", void 0);
|
|
126
|
+
_defineProperty(this, "maxWidth", void 0);
|
|
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;
|
|
99
130
|
this.maxWidth = props === null || props === void 0 ? void 0 : props.maxWidth;
|
|
100
|
-
var
|
|
101
|
-
this.flex = (
|
|
131
|
+
var _props_flex;
|
|
132
|
+
this.flex = (_props_flex = props === null || props === void 0 ? void 0 : props.flex) !== null && _props_flex !== void 0 ? _props_flex : 1;
|
|
102
133
|
};
|
|
103
134
|
export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
104
135
|
"use strict";
|
|
@@ -108,10 +139,12 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
108
139
|
_classCallCheck(this, MetaWidth);
|
|
109
140
|
var _this;
|
|
110
141
|
_this = _super.call(this, props);
|
|
111
|
-
|
|
112
|
-
_this
|
|
113
|
-
var
|
|
114
|
-
_this.
|
|
142
|
+
_defineProperty(_assertThisInitialized(_this), "width", void 0);
|
|
143
|
+
_defineProperty(_assertThisInitialized(_this), "widthType", void 0);
|
|
144
|
+
var _props_width;
|
|
145
|
+
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 240;
|
|
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";
|
|
115
148
|
return _this;
|
|
116
149
|
}
|
|
117
150
|
return MetaWidth;
|
|
@@ -119,6 +152,8 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
119
152
|
export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
120
153
|
"use strict";
|
|
121
154
|
_classCallCheck(this, MetaAutoWidth);
|
|
155
|
+
_defineProperty(this, "pc", void 0);
|
|
156
|
+
_defineProperty(this, "mobile", void 0);
|
|
122
157
|
this.pc = new MetaWidth(props === null || props === void 0 ? void 0 : props.pc);
|
|
123
158
|
this.mobile = (props === null || props === void 0 ? void 0 : props.mobile) ? new MetaWidth(props === null || props === void 0 ? void 0 : props.mobile) : new MetaWidth({
|
|
124
159
|
width: 130,
|
|
@@ -128,20 +163,25 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
128
163
|
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
129
164
|
"use strict";
|
|
130
165
|
_classCallCheck(this, DataStorageDoc);
|
|
131
|
-
|
|
132
|
-
this
|
|
133
|
-
var
|
|
134
|
-
this.
|
|
166
|
+
_defineProperty(this, "type", void 0);
|
|
167
|
+
_defineProperty(this, "customOptions", void 0);
|
|
168
|
+
var _props_type;
|
|
169
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "firstThree";
|
|
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 : [];
|
|
135
172
|
};
|
|
136
173
|
export var FormBind = function FormBind(props) {
|
|
137
174
|
"use strict";
|
|
138
175
|
_classCallCheck(this, FormBind);
|
|
139
|
-
|
|
140
|
-
this
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
176
|
+
_defineProperty(this, "dataCode", void 0);
|
|
177
|
+
_defineProperty(this, "formKey", void 0);
|
|
178
|
+
_defineProperty(this, "appId", void 0);
|
|
179
|
+
var _props_dataCode;
|
|
180
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
181
|
+
var _props_formKey;
|
|
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 : "";
|
|
145
185
|
};
|
|
146
186
|
export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
147
187
|
"use strict";
|
|
@@ -151,42 +191,65 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
151
191
|
_classCallCheck(this, FormSelectBind);
|
|
152
192
|
var _this;
|
|
153
193
|
_this = _super.call(this, props);
|
|
154
|
-
|
|
155
|
-
|
|
194
|
+
_defineProperty(_assertThisInitialized(_this), "primaryControlId", void 0);
|
|
195
|
+
var _props_primaryControlId;
|
|
196
|
+
_this.primaryControlId = (_props_primaryControlId = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && _props_primaryControlId !== void 0 ? _props_primaryControlId : "";
|
|
156
197
|
return _this;
|
|
157
198
|
}
|
|
158
199
|
return FormSelectBind;
|
|
159
200
|
}(FormBind);
|
|
160
|
-
|
|
201
|
+
/**
|
|
202
|
+
* 列表绑定字段项
|
|
203
|
+
* @public
|
|
204
|
+
*/ var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
161
205
|
"use strict";
|
|
162
206
|
_classCallCheck(this, ListBindHeaderItem);
|
|
163
|
-
|
|
164
|
-
|
|
207
|
+
/**
|
|
208
|
+
* 字段
|
|
209
|
+
* @defaultValue ''
|
|
210
|
+
*/ _defineProperty(this, "fieldCode", void 0);
|
|
211
|
+
var _props_fieldCode;
|
|
212
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
165
213
|
};
|
|
166
214
|
/**
|
|
167
215
|
* 列表绑定配置
|
|
168
216
|
*/ export var ListBind = function ListBind(props) {
|
|
169
217
|
"use strict";
|
|
170
218
|
_classCallCheck(this, ListBind);
|
|
171
|
-
var
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
219
|
+
var _props_headers;
|
|
220
|
+
/**
|
|
221
|
+
* 应用ID
|
|
222
|
+
* @public
|
|
223
|
+
*/ _defineProperty(this, "appId", void 0);
|
|
224
|
+
/**
|
|
225
|
+
* 表单ID
|
|
226
|
+
* @public
|
|
227
|
+
*/ _defineProperty(this, "formKey", void 0);
|
|
228
|
+
/**
|
|
229
|
+
* 显示字段
|
|
230
|
+
* @public
|
|
231
|
+
*/ _defineProperty(this, "headers", void 0);
|
|
232
|
+
var _props_appId;
|
|
233
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
234
|
+
var _props_formKey;
|
|
235
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
236
|
+
var _props_headers_map;
|
|
237
|
+
this.headers = (_props_headers_map = props === null || props === void 0 ? void 0 : (_props_headers = props.headers) === null || _props_headers === void 0 ? void 0 : _props_headers.map(function(item) {
|
|
178
238
|
return new ListBindHeaderItem(item);
|
|
179
|
-
})) !== null &&
|
|
239
|
+
})) !== null && _props_headers_map !== void 0 ? _props_headers_map : [];
|
|
180
240
|
};
|
|
181
241
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
182
242
|
"use strict";
|
|
183
243
|
_classCallCheck(this, FieldBindItem);
|
|
184
|
-
|
|
185
|
-
this
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
244
|
+
_defineProperty(this, "fieldName", void 0);
|
|
245
|
+
_defineProperty(this, "fieldCode", void 0);
|
|
246
|
+
_defineProperty(this, "fieldType", void 0);
|
|
247
|
+
var _props_fieldName;
|
|
248
|
+
this.fieldName = (_props_fieldName = props === null || props === void 0 ? void 0 : props.fieldName) !== null && _props_fieldName !== void 0 ? _props_fieldName : "";
|
|
249
|
+
var _props_fieldCode;
|
|
250
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
251
|
+
var _props_fieldType;
|
|
252
|
+
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : FieldTypes.VARCHAR;
|
|
190
253
|
};
|
|
191
254
|
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
192
255
|
"use strict";
|
|
@@ -196,14 +259,18 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
196
259
|
_classCallCheck(this, SubListItem);
|
|
197
260
|
var _this;
|
|
198
261
|
_this = _super.call(this, props);
|
|
199
|
-
|
|
200
|
-
_this
|
|
201
|
-
|
|
202
|
-
_this
|
|
203
|
-
var
|
|
204
|
-
_this.
|
|
205
|
-
var
|
|
206
|
-
_this.
|
|
262
|
+
_defineProperty(_assertThisInitialized(_this), "title", void 0);
|
|
263
|
+
_defineProperty(_assertThisInitialized(_this), "svcCode", void 0);
|
|
264
|
+
_defineProperty(_assertThisInitialized(_this), "isOpenFilter", void 0);
|
|
265
|
+
_defineProperty(_assertThisInitialized(_this), "filters", void 0);
|
|
266
|
+
var _props_title;
|
|
267
|
+
_this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
268
|
+
var _props_svcCode;
|
|
269
|
+
_this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : "";
|
|
270
|
+
var _props_isOpenFilter;
|
|
271
|
+
_this.isOpenFilter = (_props_isOpenFilter = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && _props_isOpenFilter !== void 0 ? _props_isOpenFilter : false;
|
|
272
|
+
var _props_filters;
|
|
273
|
+
_this.filters = (_props_filters = props === null || props === void 0 ? void 0 : props.filters) !== null && _props_filters !== void 0 ? _props_filters : [];
|
|
207
274
|
return _this;
|
|
208
275
|
}
|
|
209
276
|
return SubListItem;
|
|
@@ -211,64 +278,92 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
211
278
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
212
279
|
"use strict";
|
|
213
280
|
_classCallCheck(this, SubListPageConfig);
|
|
214
|
-
var
|
|
215
|
-
this
|
|
281
|
+
var _props_displayFields, _props_sublists;
|
|
282
|
+
_defineProperty(this, "type", "sublist-page");
|
|
283
|
+
_defineProperty(this, "formBind", void 0);
|
|
284
|
+
_defineProperty(this, "displayFields", void 0);
|
|
285
|
+
_defineProperty(this, "sublists", void 0);
|
|
216
286
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
217
|
-
var
|
|
218
|
-
this.displayFields = (
|
|
287
|
+
var _props_displayFields_map;
|
|
288
|
+
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) {
|
|
219
289
|
return new FieldBindItem(item);
|
|
220
|
-
})) !== null &&
|
|
221
|
-
var
|
|
222
|
-
this.sublists = (
|
|
290
|
+
})) !== null && _props_displayFields_map !== void 0 ? _props_displayFields_map : [];
|
|
291
|
+
var _props_sublists_map;
|
|
292
|
+
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) {
|
|
223
293
|
return new SubListItem(item);
|
|
224
|
-
})) !== null &&
|
|
294
|
+
})) !== null && _props_sublists_map !== void 0 ? _props_sublists_map : [];
|
|
225
295
|
};
|
|
226
296
|
export var LeftVariable = function LeftVariable(props) {
|
|
227
297
|
"use strict";
|
|
228
298
|
_classCallCheck(this, LeftVariable);
|
|
299
|
+
_defineProperty(this, "type", void 0);
|
|
300
|
+
_defineProperty(this, "value", void 0);
|
|
229
301
|
this.type = props === null || props === void 0 ? void 0 : props.type;
|
|
230
302
|
this.value = props === null || props === void 0 ? void 0 : props.value;
|
|
231
303
|
};
|
|
232
304
|
export var RightVariable = function RightVariable(props) {
|
|
233
305
|
"use strict";
|
|
234
306
|
_classCallCheck(this, RightVariable);
|
|
235
|
-
|
|
236
|
-
this
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
307
|
+
_defineProperty(this, "type", void 0);
|
|
308
|
+
_defineProperty(this, "value", void 0);
|
|
309
|
+
_defineProperty(this, "displayBos", void 0);
|
|
310
|
+
var _props_type;
|
|
311
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "custom";
|
|
312
|
+
var _props_value;
|
|
313
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : [];
|
|
314
|
+
var _props_displayBos;
|
|
315
|
+
this.displayBos = (_props_displayBos = props === null || props === void 0 ? void 0 : props.displayBos) !== null && _props_displayBos !== void 0 ? _props_displayBos : [];
|
|
241
316
|
};
|
|
242
317
|
/**
|
|
243
318
|
* 连接符条件
|
|
244
319
|
* @public
|
|
245
320
|
*/ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
246
321
|
"use strict";
|
|
322
|
+
var _this = this;
|
|
247
323
|
_classCallCheck(this, FieldFilterConditions);
|
|
248
324
|
/**
|
|
325
|
+
* 编号
|
|
326
|
+
* @defaultValue ''
|
|
327
|
+
*/ _defineProperty(this, "id", void 0);
|
|
328
|
+
/**
|
|
329
|
+
* 规则编号
|
|
330
|
+
* @defaultValue Timestamp
|
|
331
|
+
*/ _defineProperty(this, "ruleId", void 0);
|
|
332
|
+
/**
|
|
249
333
|
* 类型:连接符条件
|
|
250
334
|
* @defaultValue 'conditions'
|
|
251
|
-
*/ this
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
335
|
+
*/ _defineProperty(this, "type", "conditions");
|
|
336
|
+
/**
|
|
337
|
+
* 深度
|
|
338
|
+
* @defaultValue 0
|
|
339
|
+
*/ _defineProperty(this, "level", void 0);
|
|
340
|
+
/**
|
|
341
|
+
* 连接符值
|
|
342
|
+
* @defaultValue 'and'
|
|
343
|
+
*/ _defineProperty(this, "value", void 0);
|
|
344
|
+
/**
|
|
345
|
+
* 包含子项
|
|
346
|
+
* @defaultValue []
|
|
347
|
+
*/ _defineProperty(this, "children", void 0);
|
|
348
|
+
var _props_id;
|
|
349
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
350
|
+
var _props_ruleId;
|
|
351
|
+
this.ruleId = (_props_ruleId = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _props_ruleId !== void 0 ? _props_ruleId : new Date().valueOf();
|
|
352
|
+
var _props_level;
|
|
353
|
+
this.level = (_props_level = props === null || props === void 0 ? void 0 : props.level) !== null && _props_level !== void 0 ? _props_level : 0;
|
|
354
|
+
var _props_value;
|
|
355
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : "and";
|
|
260
356
|
this.children = [];
|
|
261
357
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
262
|
-
var _this = this;
|
|
263
358
|
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
264
359
|
if (item.children !== undefined) {
|
|
265
|
-
var
|
|
360
|
+
var _this_children;
|
|
266
361
|
var filter = new FieldFilterConditions(item);
|
|
267
|
-
(
|
|
362
|
+
(_this_children = _this.children) === null || _this_children === void 0 ? void 0 : _this_children.push(filter);
|
|
268
363
|
} else {
|
|
269
|
-
var
|
|
364
|
+
var _this_children1;
|
|
270
365
|
var filter1 = new FieldFilterCondition(item);
|
|
271
|
-
(
|
|
366
|
+
(_this_children1 = _this.children) === null || _this_children1 === void 0 ? void 0 : _this_children1.push(filter1);
|
|
272
367
|
}
|
|
273
368
|
});
|
|
274
369
|
}
|
|
@@ -280,19 +375,38 @@ export var RightVariable = function RightVariable(props) {
|
|
|
280
375
|
"use strict";
|
|
281
376
|
_classCallCheck(this, FieldFilterCondition);
|
|
282
377
|
/**
|
|
378
|
+
* 唯一编号
|
|
379
|
+
* @defaultValue ''
|
|
380
|
+
*/ _defineProperty(this, "id", void 0);
|
|
381
|
+
/**
|
|
382
|
+
* 规则编号
|
|
383
|
+
* @defaultValue Timestamp
|
|
384
|
+
*/ _defineProperty(this, "ruleId", void 0);
|
|
385
|
+
/**
|
|
283
386
|
* 类型
|
|
284
387
|
* @defaultValue 'condition'
|
|
285
|
-
*/ this
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
this
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
388
|
+
*/ _defineProperty(this, "type", "condition");
|
|
389
|
+
/**
|
|
390
|
+
* 符号
|
|
391
|
+
*/ _defineProperty(this, "symbol", void 0);
|
|
392
|
+
_defineProperty(this, "checked", void 0);
|
|
393
|
+
_defineProperty(this, "describe", void 0);
|
|
394
|
+
/**
|
|
395
|
+
* 左值
|
|
396
|
+
*/ _defineProperty(this, "leftVariableBo", void 0);
|
|
397
|
+
/**
|
|
398
|
+
* 右值
|
|
399
|
+
*/ _defineProperty(this, "rightVariableBo", void 0);
|
|
400
|
+
var _props_id;
|
|
401
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
402
|
+
var _props_ruleId;
|
|
403
|
+
this.ruleId = (_props_ruleId = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _props_ruleId !== void 0 ? _props_ruleId : new Date().valueOf();
|
|
404
|
+
var _props_symbol;
|
|
405
|
+
this.symbol = (_props_symbol = props === null || props === void 0 ? void 0 : props.symbol) !== null && _props_symbol !== void 0 ? _props_symbol : "";
|
|
406
|
+
var _props_checked;
|
|
407
|
+
this.checked = (_props_checked = props === null || props === void 0 ? void 0 : props.checked) !== null && _props_checked !== void 0 ? _props_checked : false;
|
|
408
|
+
var _props_describe;
|
|
409
|
+
this.describe = (_props_describe = props === null || props === void 0 ? void 0 : props.describe) !== null && _props_describe !== void 0 ? _props_describe : "";
|
|
296
410
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
297
411
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
298
412
|
};
|
|
@@ -302,14 +416,34 @@ export var RightVariable = function RightVariable(props) {
|
|
|
302
416
|
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
303
417
|
"use strict";
|
|
304
418
|
_classCallCheck(this, MultistageFillingItem);
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
419
|
+
/**
|
|
420
|
+
* 控件ID
|
|
421
|
+
* @defaultValue ''
|
|
422
|
+
* @public
|
|
423
|
+
*/ _defineProperty(this, "controlId", void 0);
|
|
424
|
+
/**
|
|
425
|
+
* 字段
|
|
426
|
+
* @defaultValue ''
|
|
427
|
+
* @public
|
|
428
|
+
*/ _defineProperty(this, "fieldCode", void 0);
|
|
429
|
+
/**
|
|
430
|
+
* 字段类型。事件在填充时,需要根据数据类型进行判断处理动作。
|
|
431
|
+
* @defaultValue ''
|
|
432
|
+
* @public
|
|
433
|
+
*/ _defineProperty(this, "fieldType", void 0);
|
|
434
|
+
/**
|
|
435
|
+
* 属性名称。如果是ObjectDataBind的控件,可以指定填充到哪个数据项。
|
|
436
|
+
* @defaultValue ''
|
|
437
|
+
* @public
|
|
438
|
+
* */ _defineProperty(this, "propName", void 0);
|
|
439
|
+
var _props_controlId;
|
|
440
|
+
this.controlId = (_props_controlId = props === null || props === void 0 ? void 0 : props.controlId) !== null && _props_controlId !== void 0 ? _props_controlId : "";
|
|
441
|
+
var _props_fieldCode;
|
|
442
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
443
|
+
var _props_fieldType;
|
|
444
|
+
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : "";
|
|
445
|
+
var _props_propName;
|
|
446
|
+
this.propName = (_props_propName = props === null || props === void 0 ? void 0 : props.propName) !== null && _props_propName !== void 0 ? _props_propName : "";
|
|
313
447
|
};
|
|
314
448
|
/**
|
|
315
449
|
* 显示项
|
|
@@ -317,10 +451,21 @@ export var RightVariable = function RightVariable(props) {
|
|
|
317
451
|
*/ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
318
452
|
"use strict";
|
|
319
453
|
_classCallCheck(this, DisplayBoListItem);
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
454
|
+
/**
|
|
455
|
+
* 显示项类型:字段 | 符号
|
|
456
|
+
* @defaultValue 'FIELD'
|
|
457
|
+
* @public
|
|
458
|
+
*/ _defineProperty(this, "type", void 0);
|
|
459
|
+
/**
|
|
460
|
+
* 值
|
|
461
|
+
*/ _defineProperty(this, "value", void 0);
|
|
462
|
+
/**
|
|
463
|
+
* 字段数据类型
|
|
464
|
+
*/ _defineProperty(this, "fieldType", void 0);
|
|
465
|
+
var _props_type;
|
|
466
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "FIELD";
|
|
467
|
+
var _props_value;
|
|
468
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : "";
|
|
324
469
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
325
470
|
};
|
|
326
471
|
/**
|
|
@@ -329,58 +474,79 @@ export var RightVariable = function RightVariable(props) {
|
|
|
329
474
|
*/ export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
330
475
|
"use strict";
|
|
331
476
|
_classCallCheck(this, DataSourceOrderItem);
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
477
|
+
/**
|
|
478
|
+
* 列名
|
|
479
|
+
* @defaultValue ''
|
|
480
|
+
*/ _defineProperty(this, "columnName", void 0);
|
|
481
|
+
/**
|
|
482
|
+
* 倒序
|
|
483
|
+
* @defaultValue false
|
|
484
|
+
*/ _defineProperty(this, "desc", void 0);
|
|
485
|
+
var _props_columnName;
|
|
486
|
+
this.columnName = (_props_columnName = props.columnName) !== null && _props_columnName !== void 0 ? _props_columnName : "";
|
|
487
|
+
var _props_desc;
|
|
488
|
+
this.desc = (_props_desc = props.desc) !== null && _props_desc !== void 0 ? _props_desc : false;
|
|
336
489
|
};
|
|
337
490
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
338
491
|
"use strict";
|
|
339
492
|
_classCallCheck(this, DataSourceDataSetValue);
|
|
340
|
-
|
|
341
|
-
this
|
|
342
|
-
|
|
343
|
-
this
|
|
344
|
-
|
|
345
|
-
this
|
|
493
|
+
// fieldCode
|
|
494
|
+
_defineProperty(this, "code", void 0);
|
|
495
|
+
// 值
|
|
496
|
+
_defineProperty(this, "value", void 0);
|
|
497
|
+
// 数据类型
|
|
498
|
+
_defineProperty(this, "field_type", void 0);
|
|
499
|
+
var _props_code;
|
|
500
|
+
this.code = (_props_code = props.code) !== null && _props_code !== void 0 ? _props_code : "";
|
|
501
|
+
var _props_value;
|
|
502
|
+
this.value = (_props_value = props.value) !== null && _props_value !== void 0 ? _props_value : "";
|
|
503
|
+
var _props_field_type;
|
|
504
|
+
this.field_type = (_props_field_type = props.field_type) !== null && _props_field_type !== void 0 ? _props_field_type : FieldTypes.ANY;
|
|
346
505
|
};
|
|
347
506
|
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
348
507
|
"use strict";
|
|
349
508
|
_classCallCheck(this, DataSourceParamItem);
|
|
350
|
-
var
|
|
351
|
-
|
|
509
|
+
var _props_orders, _props_dataSet;
|
|
510
|
+
/**
|
|
511
|
+
* 字段ID
|
|
512
|
+
*/ _defineProperty(this, "id", void 0);
|
|
513
|
+
_defineProperty(this, "limit", void 0);
|
|
514
|
+
_defineProperty(this, "orders", void 0);
|
|
515
|
+
_defineProperty(this, "formKey", void 0);
|
|
516
|
+
_defineProperty(this, "dataSet", void 0);
|
|
517
|
+
var _props_id;
|
|
352
518
|
//字段ID,不可以当作随机数生成唯一编号
|
|
353
|
-
this.id = (
|
|
354
|
-
var
|
|
355
|
-
this.limit = (
|
|
356
|
-
var
|
|
357
|
-
this.formKey = (
|
|
358
|
-
var
|
|
359
|
-
this.orders = (
|
|
519
|
+
this.id = (_props_id = props.id) !== null && _props_id !== void 0 ? _props_id : "";
|
|
520
|
+
var _props_limit;
|
|
521
|
+
this.limit = (_props_limit = props.limit) !== null && _props_limit !== void 0 ? _props_limit : 20;
|
|
522
|
+
var _props_formKey;
|
|
523
|
+
this.formKey = (_props_formKey = props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
524
|
+
var _props_orders_map;
|
|
525
|
+
this.orders = (_props_orders_map = (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
|
|
360
526
|
return new DataSourceOrderItem(item);
|
|
361
|
-
})) !== null &&
|
|
362
|
-
var
|
|
363
|
-
this.dataSet = (
|
|
527
|
+
})) !== null && _props_orders_map !== void 0 ? _props_orders_map : [];
|
|
528
|
+
var _props_dataSet_map;
|
|
529
|
+
this.dataSet = (_props_dataSet_map = (_props_dataSet = props.dataSet) === null || _props_dataSet === void 0 ? void 0 : _props_dataSet.map(function(item) {
|
|
364
530
|
return new DataSourceDataSetValue(item);
|
|
365
|
-
})) !== null &&
|
|
531
|
+
})) !== null && _props_dataSet_map !== void 0 ? _props_dataSet_map : [];
|
|
366
532
|
};
|
|
367
533
|
/**
|
|
368
534
|
* 给filters和orders赋值
|
|
369
535
|
* */ function callFiltersAndOrders(props) {
|
|
370
|
-
var
|
|
371
|
-
var
|
|
372
|
-
this.filters = (
|
|
536
|
+
var _props_filters;
|
|
537
|
+
var _props_filters_map;
|
|
538
|
+
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) {
|
|
373
539
|
if (item.children !== undefined) {
|
|
374
540
|
return new FieldFilterConditions(item);
|
|
375
541
|
}
|
|
376
542
|
return new FieldFilterCondition(item);
|
|
377
|
-
})) !== null &&
|
|
543
|
+
})) !== null && _props_filters_map !== void 0 ? _props_filters_map : [];
|
|
378
544
|
if (_instanceof(this, DataSourceBind) || _instanceof(this, FillPayloadBind)) {
|
|
379
|
-
var
|
|
380
|
-
var
|
|
381
|
-
this.orders = (
|
|
545
|
+
var _props_orders;
|
|
546
|
+
var _props_orders_map;
|
|
547
|
+
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) {
|
|
382
548
|
return new DataSourceOrderItem(item);
|
|
383
|
-
})) !== null &&
|
|
549
|
+
})) !== null && _props_orders_map !== void 0 ? _props_orders_map : [];
|
|
384
550
|
}
|
|
385
551
|
}
|
|
386
552
|
/**
|
|
@@ -388,41 +554,90 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
388
554
|
* @public
|
|
389
555
|
*/ export var DataSourceBind = function DataSourceBind(props) {
|
|
390
556
|
"use strict";
|
|
557
|
+
var _this = this;
|
|
391
558
|
_classCallCheck(this, DataSourceBind);
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
559
|
+
/**
|
|
560
|
+
* 绑定数据源id
|
|
561
|
+
* @defaultValue ''
|
|
562
|
+
* @public
|
|
563
|
+
*/ _defineProperty(this, "dataCode", void 0);
|
|
564
|
+
/**
|
|
565
|
+
* 存储值
|
|
566
|
+
* @defaultValue ''
|
|
567
|
+
* @public
|
|
568
|
+
*/ _defineProperty(this, "valueFieldCode", void 0);
|
|
569
|
+
/**
|
|
570
|
+
* 显示值
|
|
571
|
+
* @defaultValue []
|
|
572
|
+
* @public
|
|
573
|
+
*/ _defineProperty(this, "displayBoList", void 0);
|
|
574
|
+
/**
|
|
575
|
+
* 查询关键字参数映射
|
|
576
|
+
* @defaultValue ''
|
|
577
|
+
* @public
|
|
578
|
+
*/ _defineProperty(this, "keywordMapping", void 0);
|
|
579
|
+
/**
|
|
580
|
+
* 绑定服务
|
|
581
|
+
* @defaultValue ''
|
|
582
|
+
* @public
|
|
583
|
+
*/ _defineProperty(this, "svcCode", void 0);
|
|
584
|
+
/**
|
|
585
|
+
* 应用Id
|
|
586
|
+
* @defaultValue ''
|
|
587
|
+
* @public
|
|
588
|
+
*/ _defineProperty(this, "appId", void 0);
|
|
589
|
+
/**
|
|
590
|
+
* 过滤条件
|
|
591
|
+
* @defaultValue []
|
|
592
|
+
* @public
|
|
593
|
+
*/ _defineProperty(this, "filters", void 0);
|
|
594
|
+
// 过滤
|
|
595
|
+
/**
|
|
596
|
+
* 排序
|
|
597
|
+
* @defaultValue []
|
|
598
|
+
* @public
|
|
599
|
+
*/ _defineProperty(this, "orders", void 0);
|
|
600
|
+
/**
|
|
601
|
+
* 显示排序
|
|
602
|
+
* @defaultValue true
|
|
603
|
+
* @public
|
|
604
|
+
*/ _defineProperty(this, "showOrder", void 0);
|
|
605
|
+
var _props_dataCode;
|
|
606
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
607
|
+
var _props_appId;
|
|
608
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
609
|
+
var _props_valueFieldCode;
|
|
610
|
+
this.valueFieldCode = (_props_valueFieldCode = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && _props_valueFieldCode !== void 0 ? _props_valueFieldCode : "";
|
|
398
611
|
this.displayBoList = [];
|
|
399
612
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
400
|
-
var _this = this;
|
|
401
613
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
402
|
-
var
|
|
403
|
-
(
|
|
614
|
+
var _this_displayBoList;
|
|
615
|
+
(_this_displayBoList = _this.displayBoList) === null || _this_displayBoList === void 0 ? void 0 : _this_displayBoList.push(new DisplayBoListItem(item));
|
|
404
616
|
});
|
|
405
617
|
}
|
|
406
|
-
var
|
|
407
|
-
this.keywordMapping = (
|
|
408
|
-
var
|
|
409
|
-
this.showOrder = (
|
|
410
|
-
var
|
|
411
|
-
this.svcCode = (
|
|
618
|
+
var _props_keywordMapping;
|
|
619
|
+
this.keywordMapping = (_props_keywordMapping = props === null || props === void 0 ? void 0 : props.keywordMapping) !== null && _props_keywordMapping !== void 0 ? _props_keywordMapping : "";
|
|
620
|
+
var _props_showOrder;
|
|
621
|
+
this.showOrder = (_props_showOrder = props === null || props === void 0 ? void 0 : props.showOrder) !== null && _props_showOrder !== void 0 ? _props_showOrder : true;
|
|
622
|
+
var _props_svcCode;
|
|
623
|
+
this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : "";
|
|
412
624
|
callFiltersAndOrders.call(this, props);
|
|
413
625
|
};
|
|
414
626
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
415
627
|
"use strict";
|
|
416
628
|
_classCallCheck(this, CustomAttributeItem);
|
|
417
|
-
var
|
|
418
|
-
|
|
419
|
-
this
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
629
|
+
var _props_value;
|
|
630
|
+
_defineProperty(this, "name", void 0);
|
|
631
|
+
_defineProperty(this, "key", void 0);
|
|
632
|
+
_defineProperty(this, "value", void 0);
|
|
633
|
+
var _props_name;
|
|
634
|
+
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : "";
|
|
635
|
+
var _props_key;
|
|
636
|
+
this.key = (_props_key = props === null || props === void 0 ? void 0 : props.key) !== null && _props_key !== void 0 ? _props_key : "";
|
|
637
|
+
var _props_value_map;
|
|
638
|
+
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) {
|
|
424
639
|
return new DisplayBoListItem(item);
|
|
425
|
-
})) !== null &&
|
|
640
|
+
})) !== null && _props_value_map !== void 0 ? _props_value_map : [];
|
|
426
641
|
};
|
|
427
642
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
428
643
|
"use strict";
|
|
@@ -431,12 +646,13 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
431
646
|
function SuperDataSourceBind(props) {
|
|
432
647
|
_classCallCheck(this, SuperDataSourceBind);
|
|
433
648
|
var _this;
|
|
434
|
-
var
|
|
649
|
+
var _props_attributes;
|
|
435
650
|
_this = _super.call(this, props);
|
|
436
|
-
|
|
437
|
-
|
|
651
|
+
_defineProperty(_assertThisInitialized(_this), "attributes", void 0);
|
|
652
|
+
var _props_attributes_map;
|
|
653
|
+
_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) {
|
|
438
654
|
return new CustomAttributeItem(item);
|
|
439
|
-
})) !== null &&
|
|
655
|
+
})) !== null && _props_attributes_map !== void 0 ? _props_attributes_map : [];
|
|
440
656
|
return _this;
|
|
441
657
|
}
|
|
442
658
|
return SuperDataSourceBind;
|
|
@@ -449,6 +665,7 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
449
665
|
_classCallCheck(this, TreeDataSourceBind);
|
|
450
666
|
var _this;
|
|
451
667
|
_this = _super.call(this, props);
|
|
668
|
+
_defineProperty(_assertThisInitialized(_this), "rootNode", void 0);
|
|
452
669
|
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
453
670
|
return _this;
|
|
454
671
|
}
|
|
@@ -457,15 +674,24 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
457
674
|
var FillBind = function FillBind(props) {
|
|
458
675
|
"use strict";
|
|
459
676
|
_classCallCheck(this, FillBind);
|
|
460
|
-
var
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
677
|
+
var _props_fillList;
|
|
678
|
+
/*
|
|
679
|
+
* 需要被填充的数据源
|
|
680
|
+
* */ _defineProperty(this, "dataCode", void 0);
|
|
681
|
+
/*
|
|
682
|
+
* appId
|
|
683
|
+
* */ _defineProperty(this, "appId", void 0);
|
|
684
|
+
/*
|
|
685
|
+
* 执行填充的数据项和控件
|
|
686
|
+
* */ _defineProperty(this, "fillList", void 0);
|
|
687
|
+
var _props_dataCode;
|
|
688
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
689
|
+
var _props_appId;
|
|
690
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
691
|
+
var _props_fillList_map;
|
|
692
|
+
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) {
|
|
467
693
|
return new MultistageFillingItem(item);
|
|
468
|
-
})) !== null &&
|
|
694
|
+
})) !== null && _props_fillList_map !== void 0 ? _props_fillList_map : [];
|
|
469
695
|
};
|
|
470
696
|
/**
|
|
471
697
|
* FillPayloadBind 填充配置
|
|
@@ -479,6 +705,16 @@ var FillBind = function FillBind(props) {
|
|
|
479
705
|
_classCallCheck(this, FillPayloadBind);
|
|
480
706
|
var _this;
|
|
481
707
|
_this = _super.call(this, props);
|
|
708
|
+
/**
|
|
709
|
+
* 数据源过滤条件
|
|
710
|
+
* @defaultValue []
|
|
711
|
+
* @public
|
|
712
|
+
**/ _defineProperty(_assertThisInitialized(_this), "filters", void 0);
|
|
713
|
+
/**
|
|
714
|
+
* 数据源排序条件
|
|
715
|
+
* @defaultValue []
|
|
716
|
+
* @public
|
|
717
|
+
**/ _defineProperty(_assertThisInitialized(_this), "orders", void 0);
|
|
482
718
|
callFiltersAndOrders.call(_assertThisInitialized(_this), props);
|
|
483
719
|
return _this;
|
|
484
720
|
}
|
|
@@ -495,10 +731,20 @@ var FillBind = function FillBind(props) {
|
|
|
495
731
|
_classCallCheck(this, FillBackBind);
|
|
496
732
|
var _this;
|
|
497
733
|
_this = _super.call(this, props);
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
734
|
+
/**
|
|
735
|
+
* 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
|
|
736
|
+
* @defaultValue 'current'
|
|
737
|
+
* @public
|
|
738
|
+
* */ _defineProperty(_assertThisInitialized(_this), "mode", void 0);
|
|
739
|
+
/**
|
|
740
|
+
* 多选
|
|
741
|
+
* @defaultValue false
|
|
742
|
+
* @public
|
|
743
|
+
*/ _defineProperty(_assertThisInitialized(_this), "multiple", void 0);
|
|
744
|
+
var _props_mode;
|
|
745
|
+
_this.mode = (_props_mode = props === null || props === void 0 ? void 0 : props.mode) !== null && _props_mode !== void 0 ? _props_mode : "current";
|
|
746
|
+
var _props_multiple;
|
|
747
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
502
748
|
return _this;
|
|
503
749
|
}
|
|
504
750
|
return FillBackBind;
|
|
@@ -506,12 +752,15 @@ var FillBind = function FillBind(props) {
|
|
|
506
752
|
export var Language = function Language(props) {
|
|
507
753
|
"use strict";
|
|
508
754
|
_classCallCheck(this, Language);
|
|
509
|
-
|
|
510
|
-
this
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
755
|
+
_defineProperty(this, "zh", void 0);
|
|
756
|
+
_defineProperty(this, "en", void 0);
|
|
757
|
+
_defineProperty(this, "ja", void 0);
|
|
758
|
+
var _props_zh;
|
|
759
|
+
this.zh = (_props_zh = props === null || props === void 0 ? void 0 : props.zh) !== null && _props_zh !== void 0 ? _props_zh : "";
|
|
760
|
+
var _props_en;
|
|
761
|
+
this.en = (_props_en = props === null || props === void 0 ? void 0 : props.en) !== null && _props_en !== void 0 ? _props_en : "";
|
|
762
|
+
var _props_ja;
|
|
763
|
+
this.ja = (_props_ja = props === null || props === void 0 ? void 0 : props.ja) !== null && _props_ja !== void 0 ? _props_ja : "";
|
|
515
764
|
};
|
|
516
765
|
/**
|
|
517
766
|
* 正则校验
|
|
@@ -519,12 +768,24 @@ export var Language = function Language(props) {
|
|
|
519
768
|
*/ export var RegularRules = function RegularRules(props) {
|
|
520
769
|
"use strict";
|
|
521
770
|
_classCallCheck(this, RegularRules);
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
771
|
+
/**
|
|
772
|
+
* 内置模版
|
|
773
|
+
* @defaultValue ''
|
|
774
|
+
*/ _defineProperty(this, "stencilName", void 0);
|
|
775
|
+
/**
|
|
776
|
+
* 正则表达式
|
|
777
|
+
* @defaultValue ''
|
|
778
|
+
*/ _defineProperty(this, "expression", void 0);
|
|
779
|
+
/**
|
|
780
|
+
* 校验错误提示信息
|
|
781
|
+
* @defaultValue ''
|
|
782
|
+
*/ _defineProperty(this, "errMessage", void 0);
|
|
783
|
+
var _props_stencilName;
|
|
784
|
+
this.stencilName = (_props_stencilName = props === null || props === void 0 ? void 0 : props.stencilName) !== null && _props_stencilName !== void 0 ? _props_stencilName : "";
|
|
785
|
+
var _props_expression;
|
|
786
|
+
this.expression = (_props_expression = props === null || props === void 0 ? void 0 : props.expression) !== null && _props_expression !== void 0 ? _props_expression : "";
|
|
787
|
+
var _props_errMessage;
|
|
788
|
+
this.errMessage = (_props_errMessage = props === null || props === void 0 ? void 0 : props.errMessage) !== null && _props_errMessage !== void 0 ? _props_errMessage : "";
|
|
528
789
|
};
|
|
529
790
|
/**
|
|
530
791
|
* 选项设置-自定义选项
|
|
@@ -532,12 +793,23 @@ export var Language = function Language(props) {
|
|
|
532
793
|
*/ export var OptionSetting = function OptionSetting(props) {
|
|
533
794
|
"use strict";
|
|
534
795
|
_classCallCheck(this, OptionSetting);
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
796
|
+
_defineProperty(this, "id", void 0);
|
|
797
|
+
/**
|
|
798
|
+
* 显示值
|
|
799
|
+
* @defaultValue ''
|
|
800
|
+
* @public
|
|
801
|
+
*/ _defineProperty(this, "label", void 0);
|
|
802
|
+
/**
|
|
803
|
+
* 选项ID
|
|
804
|
+
* @defaultValue this.label
|
|
805
|
+
* @public
|
|
806
|
+
*/ _defineProperty(this, "value", void 0);
|
|
807
|
+
var _props_id;
|
|
808
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
809
|
+
var _props_label;
|
|
810
|
+
this.label = (_props_label = props === null || props === void 0 ? void 0 : props.label) !== null && _props_label !== void 0 ? _props_label : "";
|
|
811
|
+
var _props_value;
|
|
812
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : this.label;
|
|
541
813
|
};
|
|
542
814
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
543
815
|
"use strict";
|
|
@@ -547,25 +819,27 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
547
819
|
_classCallCheck(this, ImageOptionSetting);
|
|
548
820
|
var _this;
|
|
549
821
|
_this = _super.call(this, props);
|
|
550
|
-
|
|
551
|
-
_this
|
|
552
|
-
var
|
|
553
|
-
_this.
|
|
822
|
+
_defineProperty(_assertThisInitialized(_this), "image", void 0);
|
|
823
|
+
_defineProperty(_assertThisInitialized(_this), "type", void 0);
|
|
824
|
+
var _props_image;
|
|
825
|
+
_this.image = (_props_image = props === null || props === void 0 ? void 0 : props.image) !== null && _props_image !== void 0 ? _props_image : "";
|
|
826
|
+
var _props_type;
|
|
827
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "src";
|
|
554
828
|
return _this;
|
|
555
829
|
}
|
|
556
830
|
return ImageOptionSetting;
|
|
557
831
|
}(OptionSetting);
|
|
558
832
|
export function initOptions(options) {
|
|
559
|
-
var
|
|
560
|
-
return (
|
|
833
|
+
var _options_map;
|
|
834
|
+
return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
561
835
|
return new OptionSetting(item);
|
|
562
|
-
})) !== null &&
|
|
836
|
+
})) !== null && _options_map !== void 0 ? _options_map : [];
|
|
563
837
|
}
|
|
564
838
|
export function initImageOptions(options) {
|
|
565
|
-
var
|
|
566
|
-
return (
|
|
839
|
+
var _options_map;
|
|
840
|
+
return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
567
841
|
return new ImageOptionSetting(item);
|
|
568
|
-
})) !== null &&
|
|
842
|
+
})) !== null && _options_map !== void 0 ? _options_map : [];
|
|
569
843
|
}
|
|
570
844
|
/**
|
|
571
845
|
* 对象类型数据绑定配置
|
|
@@ -585,6 +859,12 @@ export function initImageOptions(options) {
|
|
|
585
859
|
_classCallCheck(this, AmountDataBind);
|
|
586
860
|
var _this;
|
|
587
861
|
_this = _super.call(this);
|
|
862
|
+
/**
|
|
863
|
+
* 金额字段绑定配置
|
|
864
|
+
*/ _defineProperty(_assertThisInitialized(_this), "amount", void 0);
|
|
865
|
+
/**
|
|
866
|
+
* 币种字段绑定配置
|
|
867
|
+
*/ _defineProperty(_assertThisInitialized(_this), "currency", void 0);
|
|
588
868
|
_this.amount = new DataBind(props === null || props === void 0 ? void 0 : props.amount);
|
|
589
869
|
_this.currency = new DataBind(props === null || props === void 0 ? void 0 : props.currency);
|
|
590
870
|
return _this;
|
|
@@ -597,10 +877,18 @@ export function initImageOptions(options) {
|
|
|
597
877
|
*/ export var AmountValue = function AmountValue(props) {
|
|
598
878
|
"use strict";
|
|
599
879
|
_classCallCheck(this, AmountValue);
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
880
|
+
/**
|
|
881
|
+
* 金额值
|
|
882
|
+
* @defaultValue ''
|
|
883
|
+
*/ _defineProperty(this, "amount", void 0);
|
|
884
|
+
/**
|
|
885
|
+
* 货币值
|
|
886
|
+
* @defaultValue 'CNY'
|
|
887
|
+
*/ _defineProperty(this, "currency", void 0);
|
|
888
|
+
var _props_amount;
|
|
889
|
+
this.amount = (_props_amount = props === null || props === void 0 ? void 0 : props.amount) !== null && _props_amount !== void 0 ? _props_amount : "";
|
|
890
|
+
var _props_currency;
|
|
891
|
+
this.currency = (_props_currency = props === null || props === void 0 ? void 0 : props.currency) !== null && _props_currency !== void 0 ? _props_currency : AMOUNT_TYPE.CNY;
|
|
604
892
|
};
|
|
605
893
|
/**
|
|
606
894
|
* 日期区间数据绑定项
|
|
@@ -613,6 +901,12 @@ export function initImageOptions(options) {
|
|
|
613
901
|
_classCallCheck(this, RangeDataBind);
|
|
614
902
|
var _this;
|
|
615
903
|
_this = _super.call(this);
|
|
904
|
+
/**
|
|
905
|
+
* 开始日期字段绑定项
|
|
906
|
+
*/ _defineProperty(_assertThisInitialized(_this), "min", void 0);
|
|
907
|
+
/**
|
|
908
|
+
* 结束日期字段绑定项
|
|
909
|
+
*/ _defineProperty(_assertThisInitialized(_this), "max", void 0);
|
|
616
910
|
_this.min = new DataBind(props === null || props === void 0 ? void 0 : props.min);
|
|
617
911
|
_this.max = new DataBind(props === null || props === void 0 ? void 0 : props.max);
|
|
618
912
|
return _this;
|
|
@@ -625,10 +919,18 @@ export function initImageOptions(options) {
|
|
|
625
919
|
*/ export var RangeDateValue = function RangeDateValue(props) {
|
|
626
920
|
"use strict";
|
|
627
921
|
_classCallCheck(this, RangeDateValue);
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
922
|
+
/**
|
|
923
|
+
* 开始日期值
|
|
924
|
+
* @defaultValue ''
|
|
925
|
+
*/ _defineProperty(this, "min", void 0);
|
|
926
|
+
/**
|
|
927
|
+
* 结束日期值
|
|
928
|
+
* @defaultValue ''
|
|
929
|
+
*/ _defineProperty(this, "max", void 0);
|
|
930
|
+
var _props_min;
|
|
931
|
+
this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
|
|
932
|
+
var _props_max;
|
|
933
|
+
this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : "";
|
|
632
934
|
};
|
|
633
935
|
/**
|
|
634
936
|
* 地址值
|
|
@@ -636,18 +938,42 @@ export function initImageOptions(options) {
|
|
|
636
938
|
*/ export var AddressValue = function AddressValue(props) {
|
|
637
939
|
"use strict";
|
|
638
940
|
_classCallCheck(this, AddressValue);
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
941
|
+
/**
|
|
942
|
+
* 市编码
|
|
943
|
+
* @defaultValue ''
|
|
944
|
+
*/ _defineProperty(this, "city", void 0);
|
|
945
|
+
/**
|
|
946
|
+
* 市显示文字
|
|
947
|
+
* @defaultValue ''
|
|
948
|
+
*/ _defineProperty(this, "cityDisplay", void 0);
|
|
949
|
+
/**
|
|
950
|
+
* 区编码
|
|
951
|
+
* @defaultValue ''
|
|
952
|
+
*/ _defineProperty(this, "district", void 0);
|
|
953
|
+
/**
|
|
954
|
+
* 区显示文字
|
|
955
|
+
* @defaultValue ''
|
|
956
|
+
*/ _defineProperty(this, "districtDisplay", void 0);
|
|
957
|
+
/**
|
|
958
|
+
* 省编码
|
|
959
|
+
* @defaultValue ''
|
|
960
|
+
*/ _defineProperty(this, "province", void 0);
|
|
961
|
+
/**
|
|
962
|
+
* 省显示文字
|
|
963
|
+
* @defaultValue ''
|
|
964
|
+
*/ _defineProperty(this, "provinceDisplay", void 0);
|
|
965
|
+
var _props_city;
|
|
966
|
+
this.city = (_props_city = props === null || props === void 0 ? void 0 : props.city) !== null && _props_city !== void 0 ? _props_city : "";
|
|
967
|
+
var _props_cityDisplay;
|
|
968
|
+
this.cityDisplay = (_props_cityDisplay = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && _props_cityDisplay !== void 0 ? _props_cityDisplay : "";
|
|
969
|
+
var _props_district;
|
|
970
|
+
this.district = (_props_district = props === null || props === void 0 ? void 0 : props.district) !== null && _props_district !== void 0 ? _props_district : "";
|
|
971
|
+
var _props_districtDisplay;
|
|
972
|
+
this.districtDisplay = (_props_districtDisplay = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && _props_districtDisplay !== void 0 ? _props_districtDisplay : "";
|
|
973
|
+
var _props_province;
|
|
974
|
+
this.province = (_props_province = props === null || props === void 0 ? void 0 : props.province) !== null && _props_province !== void 0 ? _props_province : "";
|
|
975
|
+
var _props_provinceDisplay;
|
|
976
|
+
this.provinceDisplay = (_props_provinceDisplay = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && _props_provinceDisplay !== void 0 ? _props_provinceDisplay : "";
|
|
651
977
|
};
|
|
652
978
|
/**
|
|
653
979
|
* 计算公式数据绑定项
|
|
@@ -660,6 +986,12 @@ export function initImageOptions(options) {
|
|
|
660
986
|
_classCallCheck(this, CalcDataBind);
|
|
661
987
|
var _this;
|
|
662
988
|
_this = _super.call(this);
|
|
989
|
+
/**
|
|
990
|
+
* 计算结果字段绑定项
|
|
991
|
+
*/ _defineProperty(_assertThisInitialized(_this), "result", void 0);
|
|
992
|
+
/**
|
|
993
|
+
* 单位字段绑定项
|
|
994
|
+
*/ _defineProperty(_assertThisInitialized(_this), "unit", void 0);
|
|
663
995
|
_this.result = new DataBind(props === null || props === void 0 ? void 0 : props.result);
|
|
664
996
|
_this.unit = new DataBind(props === null || props === void 0 ? void 0 : props.unit);
|
|
665
997
|
return _this;
|
|
@@ -672,10 +1004,18 @@ export function initImageOptions(options) {
|
|
|
672
1004
|
*/ export var CalcValue = function CalcValue(props) {
|
|
673
1005
|
"use strict";
|
|
674
1006
|
_classCallCheck(this, CalcValue);
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
1007
|
+
/**
|
|
1008
|
+
* 计算结果值
|
|
1009
|
+
* @defaultValue 0
|
|
1010
|
+
*/ _defineProperty(this, "result", void 0);
|
|
1011
|
+
/**
|
|
1012
|
+
* 单位
|
|
1013
|
+
* @defaultValue ''
|
|
1014
|
+
*/ _defineProperty(this, "unit", void 0);
|
|
1015
|
+
var _props_result;
|
|
1016
|
+
this.result = (_props_result = props === null || props === void 0 ? void 0 : props.result) !== null && _props_result !== void 0 ? _props_result : 0;
|
|
1017
|
+
var _props_unit;
|
|
1018
|
+
this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : "";
|
|
679
1019
|
};
|
|
680
1020
|
export var AMOUNT_TYPE;
|
|
681
1021
|
(function(AMOUNT_TYPE) {
|
|
@@ -709,33 +1049,33 @@ export var AMOUNT_TYPE;
|
|
|
709
1049
|
})(AMOUNT_TYPE || (AMOUNT_TYPE = {}));
|
|
710
1050
|
export var COMMON_SETTING_TYPE;
|
|
711
1051
|
(function(COMMON_SETTING_TYPE) {
|
|
712
|
-
COMMON_SETTING_TYPE["REQUIRED"] =
|
|
713
|
-
COMMON_SETTING_TYPE["IS_HIDE"] =
|
|
714
|
-
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] =
|
|
715
|
-
COMMON_SETTING_TYPE["IMD_SEARCH"] =
|
|
716
|
-
COMMON_SETTING_TYPE["MULTIPLE"] =
|
|
717
|
-
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] =
|
|
718
|
-
COMMON_SETTING_TYPE["CAPTION"] =
|
|
719
|
-
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] =
|
|
720
|
-
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] =
|
|
721
|
-
COMMON_SETTING_TYPE["CAN_SEARCH"] =
|
|
722
|
-
COMMON_SETTING_TYPE["CAN_CHECK"] =
|
|
723
|
-
COMMON_SETTING_TYPE["CAN_EDIT"] =
|
|
724
|
-
COMMON_SETTING_TYPE["CAN_DELETE"] =
|
|
725
|
-
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] =
|
|
726
|
-
COMMON_SETTING_TYPE["MICROMETER"] =
|
|
727
|
-
COMMON_SETTING_TYPE["PRECISION"] =
|
|
728
|
-
COMMON_SETTING_TYPE["PERCENTAGE"] =
|
|
729
|
-
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] =
|
|
730
|
-
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] =
|
|
731
|
-
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] =
|
|
732
|
-
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] =
|
|
733
|
-
COMMON_SETTING_TYPE["SERVER_PAGINATION"] =
|
|
734
|
-
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] =
|
|
735
|
-
COMMON_SETTING_TYPE["ENCRYPTED"] =
|
|
736
|
-
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] =
|
|
737
|
-
COMMON_SETTING_TYPE["REVISIONS_MODE"] =
|
|
738
|
-
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] =
|
|
1052
|
+
COMMON_SETTING_TYPE["REQUIRED"] = "required";
|
|
1053
|
+
COMMON_SETTING_TYPE["IS_HIDE"] = "isHide";
|
|
1054
|
+
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] = "isShowUnit";
|
|
1055
|
+
COMMON_SETTING_TYPE["IMD_SEARCH"] = "immediatelySearch";
|
|
1056
|
+
COMMON_SETTING_TYPE["MULTIPLE"] = "multiple";
|
|
1057
|
+
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] = "submitSelectCurrency";
|
|
1058
|
+
COMMON_SETTING_TYPE["CAPTION"] = "caption";
|
|
1059
|
+
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] = "isHideCaption";
|
|
1060
|
+
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] = "defaultShowOptions";
|
|
1061
|
+
COMMON_SETTING_TYPE["CAN_SEARCH"] = "canSearch";
|
|
1062
|
+
COMMON_SETTING_TYPE["CAN_CHECK"] = "canCheck";
|
|
1063
|
+
COMMON_SETTING_TYPE["CAN_EDIT"] = "canEdit";
|
|
1064
|
+
COMMON_SETTING_TYPE["CAN_DELETE"] = "canDelete";
|
|
1065
|
+
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] = "showUpperCase";
|
|
1066
|
+
COMMON_SETTING_TYPE["MICROMETER"] = "micrometer";
|
|
1067
|
+
COMMON_SETTING_TYPE["PRECISION"] = "precision";
|
|
1068
|
+
COMMON_SETTING_TYPE["PERCENTAGE"] = "percentage";
|
|
1069
|
+
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] = "optionalLevel";
|
|
1070
|
+
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] = "containsSubNode";
|
|
1071
|
+
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] = "defaultCollapse";
|
|
1072
|
+
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] = "canViewForm";
|
|
1073
|
+
COMMON_SETTING_TYPE["SERVER_PAGINATION"] = "serverPagination";
|
|
1074
|
+
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] = "isShowCaptionTip";
|
|
1075
|
+
COMMON_SETTING_TYPE["ENCRYPTED"] = "encrypted";
|
|
1076
|
+
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] = "isInlineEdit";
|
|
1077
|
+
COMMON_SETTING_TYPE["REVISIONS_MODE"] = "revisionsMode";
|
|
1078
|
+
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] = "allowCopyOptions";
|
|
739
1079
|
})(COMMON_SETTING_TYPE || (COMMON_SETTING_TYPE = {}));
|
|
740
1080
|
export var PAGE_STATUS;
|
|
741
1081
|
(function(PAGE_STATUS) {
|
|
@@ -750,31 +1090,61 @@ export var PAGE_STATUS;
|
|
|
750
1090
|
*/ export var OperationItem = function OperationItem(props) {
|
|
751
1091
|
"use strict";
|
|
752
1092
|
_classCallCheck(this, OperationItem);
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
1093
|
+
/**
|
|
1094
|
+
* 是否显示
|
|
1095
|
+
* @defaultValue true
|
|
1096
|
+
* @public
|
|
1097
|
+
*/ _defineProperty(this, "isShow", void 0);
|
|
1098
|
+
/**
|
|
1099
|
+
* 优先访问流程表单
|
|
1100
|
+
* @defaultValue false
|
|
1101
|
+
* @public
|
|
1102
|
+
*/ _defineProperty(this, "priorityProcess", void 0);
|
|
1103
|
+
/**
|
|
1104
|
+
* 表单ID
|
|
1105
|
+
* @defaultValue ''
|
|
1106
|
+
* @public
|
|
1107
|
+
*/ _defineProperty(this, "formKey", void 0);
|
|
1108
|
+
/**
|
|
1109
|
+
* 显示文字
|
|
1110
|
+
* @defaultValue ''
|
|
1111
|
+
* @public
|
|
1112
|
+
*/ _defineProperty(this, "content", void 0);
|
|
1113
|
+
/**
|
|
1114
|
+
* 打开方式
|
|
1115
|
+
* @defaultValue 'modal'
|
|
1116
|
+
* @public
|
|
1117
|
+
*/ _defineProperty(this, "openType", void 0);
|
|
1118
|
+
_defineProperty(this, "type", void 0);
|
|
1119
|
+
var _props_isShow;
|
|
1120
|
+
this.isShow = (_props_isShow = props === null || props === void 0 ? void 0 : props.isShow) !== null && _props_isShow !== void 0 ? _props_isShow : true;
|
|
1121
|
+
var _props_content;
|
|
1122
|
+
this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "";
|
|
1123
|
+
var _props_formKey;
|
|
1124
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
1125
|
+
var _props_openType;
|
|
1126
|
+
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : "modal";
|
|
1127
|
+
var _props_type;
|
|
1128
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "";
|
|
1129
|
+
var _props_priorityProcess;
|
|
1130
|
+
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : false;
|
|
765
1131
|
};
|
|
766
1132
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
767
1133
|
"use strict";
|
|
768
1134
|
_classCallCheck(this, ViewOperationItem);
|
|
769
|
-
var
|
|
770
|
-
|
|
771
|
-
this
|
|
772
|
-
|
|
773
|
-
this
|
|
774
|
-
var
|
|
775
|
-
this.
|
|
1135
|
+
var _props_headers;
|
|
1136
|
+
_defineProperty(this, "id", void 0);
|
|
1137
|
+
_defineProperty(this, "title", void 0);
|
|
1138
|
+
_defineProperty(this, "filters", void 0);
|
|
1139
|
+
_defineProperty(this, "headers", void 0);
|
|
1140
|
+
var _props_id;
|
|
1141
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
1142
|
+
var _props_title;
|
|
1143
|
+
this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
1144
|
+
var _props_headers_map;
|
|
1145
|
+
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) {
|
|
776
1146
|
return new ListBindHeaderItem(item);
|
|
777
|
-
})) !== null &&
|
|
1147
|
+
})) !== null && _props_headers_map !== void 0 ? _props_headers_map : [];
|
|
778
1148
|
callFiltersAndOrders.call(this, props);
|
|
779
1149
|
};
|
|
780
1150
|
/**
|
|
@@ -782,20 +1152,30 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
782
1152
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
783
1153
|
"use strict";
|
|
784
1154
|
_classCallCheck(this, CustomPermissionItem);
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
1155
|
+
/**
|
|
1156
|
+
* 人工输入的权限key
|
|
1157
|
+
*/ _defineProperty(this, "key", void 0);
|
|
1158
|
+
/**
|
|
1159
|
+
* 权限名称
|
|
1160
|
+
*/ _defineProperty(this, "caption", void 0);
|
|
1161
|
+
var _props_key;
|
|
1162
|
+
this.key = (_props_key = props.key) !== null && _props_key !== void 0 ? _props_key : genNonDuplicateId(8);
|
|
1163
|
+
var _props_caption;
|
|
1164
|
+
this.caption = (_props_caption = props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
|
|
789
1165
|
};
|
|
790
1166
|
export var BaseStyle = function BaseStyle(props) {
|
|
791
1167
|
"use strict";
|
|
792
1168
|
_classCallCheck(this, BaseStyle);
|
|
793
|
-
|
|
794
|
-
this
|
|
795
|
-
|
|
796
|
-
this
|
|
797
|
-
var
|
|
798
|
-
this.
|
|
799
|
-
var
|
|
800
|
-
this.
|
|
1169
|
+
_defineProperty(this, "width", void 0);
|
|
1170
|
+
_defineProperty(this, "height", void 0);
|
|
1171
|
+
_defineProperty(this, "widthConfig", void 0);
|
|
1172
|
+
_defineProperty(this, "heightConfig", void 0);
|
|
1173
|
+
var _props_width;
|
|
1174
|
+
this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : "";
|
|
1175
|
+
var _props_height;
|
|
1176
|
+
this.height = (_props_height = props === null || props === void 0 ? void 0 : props.height) !== null && _props_height !== void 0 ? _props_height : "";
|
|
1177
|
+
var _props_widthConfig;
|
|
1178
|
+
this.widthConfig = (_props_widthConfig = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && _props_widthConfig !== void 0 ? _props_widthConfig : "fill";
|
|
1179
|
+
var _props_heightConfig;
|
|
1180
|
+
this.heightConfig = (_props_heightConfig = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && _props_heightConfig !== void 0 ? _props_heightConfig : "fill";
|
|
801
1181
|
};
|