@byteluck-fe/model-driven-core 2.7.0-alpha.11 → 2.7.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/api-doc-index.js +4 -4
- package/dist/esm/common/BaseControl/designer.js +222 -103
- 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 +153 -28
- package/dist/esm/common/ListControl/index.js +6 -6
- package/dist/esm/common/ListControl/property.js +20 -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 +12 -12
- package/dist/esm/common/initLinkOperationRules.js +6 -6
- package/dist/esm/common/initOptionAndDataSourceRules.js +82 -82
- package/dist/esm/framework/RegisterControls.js +28 -17
- package/dist/esm/framework/index.js +769 -332
- package/dist/esm/framework/isDataBind.js +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/index.umd.js +1 -1
- package/dist/types/common/Validator.d.ts +1 -1
- package/dist/types/common/controlHooksEmitter.d.ts +1 -1
- package/dist/types/type.d.ts +23 -23
- package/package.json +3 -3
|
@@ -9,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);
|
|
@@ -69,30 +82,53 @@ function _createSuper(Derived) {
|
|
|
69
82
|
return _possibleConstructorReturn(this, result);
|
|
70
83
|
};
|
|
71
84
|
}
|
|
72
|
-
import { FieldTypes, genNonDuplicateId } from
|
|
73
|
-
export * from
|
|
85
|
+
import { FieldTypes, genNonDuplicateId } from "@byteluck-fe/model-driven-shared";
|
|
86
|
+
export * from "./RegisterControls";
|
|
74
87
|
/**
|
|
75
88
|
* 数据绑定配置
|
|
76
89
|
* @public
|
|
77
90
|
*/ export var DataBind = function DataBind(props) {
|
|
78
91
|
"use strict";
|
|
79
92
|
_classCallCheck(this, DataBind);
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
93
|
+
/**
|
|
94
|
+
* 数据模型编码
|
|
95
|
+
* @defaultValue ''
|
|
96
|
+
* @public
|
|
97
|
+
*/ _defineProperty(this, "dataCode", void 0);
|
|
98
|
+
/**
|
|
99
|
+
* 字段编码
|
|
100
|
+
* @defaultValue ''
|
|
101
|
+
* @public
|
|
102
|
+
*/ _defineProperty(this, "fieldCode", void 0);
|
|
103
|
+
/**
|
|
104
|
+
* 字段类型
|
|
105
|
+
* @defaultValue ''
|
|
106
|
+
* @public
|
|
107
|
+
*/ _defineProperty(this, "fieldType", void 0);
|
|
108
|
+
/**
|
|
109
|
+
* 表别名
|
|
110
|
+
* @defaultValue undefined
|
|
111
|
+
* @public
|
|
112
|
+
*/ _defineProperty(this, "aliasCode", void 0);
|
|
113
|
+
var _props_dataCode;
|
|
114
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
115
|
+
var _props_fieldCode;
|
|
116
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
117
|
+
var _props_fieldType;
|
|
118
|
+
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : "";
|
|
86
119
|
this.aliasCode = props === null || props === void 0 ? void 0 : props.aliasCode;
|
|
87
120
|
};
|
|
88
121
|
export var AutoWidth = function AutoWidth(props) {
|
|
89
122
|
"use strict";
|
|
90
123
|
_classCallCheck(this, AutoWidth);
|
|
91
|
-
|
|
92
|
-
this
|
|
124
|
+
_defineProperty(this, "minWidth", void 0);
|
|
125
|
+
_defineProperty(this, "maxWidth", void 0);
|
|
126
|
+
_defineProperty(this, "flex", void 0);
|
|
127
|
+
var _props_minWidth;
|
|
128
|
+
this.minWidth = (_props_minWidth = props === null || props === void 0 ? void 0 : props.minWidth) !== null && _props_minWidth !== void 0 ? _props_minWidth : 150;
|
|
93
129
|
this.maxWidth = props === null || props === void 0 ? void 0 : props.maxWidth;
|
|
94
|
-
var
|
|
95
|
-
this.flex = (
|
|
130
|
+
var _props_flex;
|
|
131
|
+
this.flex = (_props_flex = props === null || props === void 0 ? void 0 : props.flex) !== null && _props_flex !== void 0 ? _props_flex : 1;
|
|
96
132
|
};
|
|
97
133
|
export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
98
134
|
"use strict";
|
|
@@ -102,10 +138,12 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
102
138
|
_classCallCheck(this, MetaWidth);
|
|
103
139
|
var _this;
|
|
104
140
|
_this = _super.call(this, props);
|
|
105
|
-
|
|
106
|
-
_this
|
|
107
|
-
var
|
|
108
|
-
_this.
|
|
141
|
+
_defineProperty(_assertThisInitialized(_this), "width", void 0);
|
|
142
|
+
_defineProperty(_assertThisInitialized(_this), "widthType", void 0);
|
|
143
|
+
var _props_width;
|
|
144
|
+
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 240;
|
|
145
|
+
var _props_widthType;
|
|
146
|
+
_this.widthType = (_props_widthType = props === null || props === void 0 ? void 0 : props.widthType) !== null && _props_widthType !== void 0 ? _props_widthType : "auto";
|
|
109
147
|
return _this;
|
|
110
148
|
}
|
|
111
149
|
return MetaWidth;
|
|
@@ -113,6 +151,8 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
113
151
|
export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
114
152
|
"use strict";
|
|
115
153
|
_classCallCheck(this, MetaAutoWidth);
|
|
154
|
+
_defineProperty(this, "pc", void 0);
|
|
155
|
+
_defineProperty(this, "mobile", void 0);
|
|
116
156
|
this.pc = new MetaWidth(props === null || props === void 0 ? void 0 : props.pc);
|
|
117
157
|
this.mobile = (props === null || props === void 0 ? void 0 : props.mobile) ? new MetaWidth(props === null || props === void 0 ? void 0 : props.mobile) : new MetaWidth({
|
|
118
158
|
width: 130,
|
|
@@ -122,20 +162,25 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
122
162
|
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
123
163
|
"use strict";
|
|
124
164
|
_classCallCheck(this, DataStorageDoc);
|
|
125
|
-
|
|
126
|
-
this
|
|
127
|
-
var
|
|
128
|
-
this.
|
|
165
|
+
_defineProperty(this, "type", void 0);
|
|
166
|
+
_defineProperty(this, "customOptions", void 0);
|
|
167
|
+
var _props_type;
|
|
168
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "firstThree";
|
|
169
|
+
var _props_customOptions;
|
|
170
|
+
this.customOptions = (_props_customOptions = props === null || props === void 0 ? void 0 : props.customOptions) !== null && _props_customOptions !== void 0 ? _props_customOptions : [];
|
|
129
171
|
};
|
|
130
172
|
export var FormBind = function FormBind(props) {
|
|
131
173
|
"use strict";
|
|
132
174
|
_classCallCheck(this, FormBind);
|
|
133
|
-
|
|
134
|
-
this
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
175
|
+
_defineProperty(this, "dataCode", void 0);
|
|
176
|
+
_defineProperty(this, "formKey", void 0);
|
|
177
|
+
_defineProperty(this, "appId", void 0);
|
|
178
|
+
var _props_dataCode;
|
|
179
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
180
|
+
var _props_formKey;
|
|
181
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
182
|
+
var _props_appId;
|
|
183
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
139
184
|
};
|
|
140
185
|
export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
141
186
|
"use strict";
|
|
@@ -145,42 +190,65 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
145
190
|
_classCallCheck(this, FormSelectBind);
|
|
146
191
|
var _this;
|
|
147
192
|
_this = _super.call(this, props);
|
|
148
|
-
|
|
149
|
-
|
|
193
|
+
_defineProperty(_assertThisInitialized(_this), "primaryControlId", void 0);
|
|
194
|
+
var _props_primaryControlId;
|
|
195
|
+
_this.primaryControlId = (_props_primaryControlId = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && _props_primaryControlId !== void 0 ? _props_primaryControlId : "";
|
|
150
196
|
return _this;
|
|
151
197
|
}
|
|
152
198
|
return FormSelectBind;
|
|
153
199
|
}(FormBind);
|
|
154
|
-
|
|
200
|
+
/**
|
|
201
|
+
* 列表绑定字段项
|
|
202
|
+
* @public
|
|
203
|
+
*/ var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
155
204
|
"use strict";
|
|
156
205
|
_classCallCheck(this, ListBindHeaderItem);
|
|
157
|
-
|
|
158
|
-
|
|
206
|
+
/**
|
|
207
|
+
* 字段
|
|
208
|
+
* @defaultValue ''
|
|
209
|
+
*/ _defineProperty(this, "fieldCode", void 0);
|
|
210
|
+
var _props_fieldCode;
|
|
211
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
159
212
|
};
|
|
160
213
|
/**
|
|
161
214
|
* 列表绑定配置
|
|
162
215
|
*/ export var ListBind = function ListBind(props) {
|
|
163
216
|
"use strict";
|
|
164
217
|
_classCallCheck(this, ListBind);
|
|
165
|
-
var
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
218
|
+
var _props_headers;
|
|
219
|
+
/**
|
|
220
|
+
* 应用ID
|
|
221
|
+
* @public
|
|
222
|
+
*/ _defineProperty(this, "appId", void 0);
|
|
223
|
+
/**
|
|
224
|
+
* 表单ID
|
|
225
|
+
* @public
|
|
226
|
+
*/ _defineProperty(this, "formKey", void 0);
|
|
227
|
+
/**
|
|
228
|
+
* 显示字段
|
|
229
|
+
* @public
|
|
230
|
+
*/ _defineProperty(this, "headers", void 0);
|
|
231
|
+
var _props_appId;
|
|
232
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
233
|
+
var _props_formKey;
|
|
234
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
235
|
+
var _props_headers_map;
|
|
236
|
+
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) {
|
|
172
237
|
return new ListBindHeaderItem(item);
|
|
173
|
-
})) !== null &&
|
|
238
|
+
})) !== null && _props_headers_map !== void 0 ? _props_headers_map : [];
|
|
174
239
|
};
|
|
175
240
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
176
241
|
"use strict";
|
|
177
242
|
_classCallCheck(this, FieldBindItem);
|
|
178
|
-
|
|
179
|
-
this
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
243
|
+
_defineProperty(this, "fieldName", void 0);
|
|
244
|
+
_defineProperty(this, "fieldCode", void 0);
|
|
245
|
+
_defineProperty(this, "fieldType", void 0);
|
|
246
|
+
var _props_fieldName;
|
|
247
|
+
this.fieldName = (_props_fieldName = props === null || props === void 0 ? void 0 : props.fieldName) !== null && _props_fieldName !== void 0 ? _props_fieldName : "";
|
|
248
|
+
var _props_fieldCode;
|
|
249
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
250
|
+
var _props_fieldType;
|
|
251
|
+
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : FieldTypes.VARCHAR;
|
|
184
252
|
};
|
|
185
253
|
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
186
254
|
"use strict";
|
|
@@ -190,14 +258,18 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
190
258
|
_classCallCheck(this, SubListItem);
|
|
191
259
|
var _this;
|
|
192
260
|
_this = _super.call(this, props);
|
|
193
|
-
|
|
194
|
-
_this
|
|
195
|
-
|
|
196
|
-
_this
|
|
197
|
-
var
|
|
198
|
-
_this.
|
|
199
|
-
var
|
|
200
|
-
_this.
|
|
261
|
+
_defineProperty(_assertThisInitialized(_this), "title", void 0);
|
|
262
|
+
_defineProperty(_assertThisInitialized(_this), "svcCode", void 0);
|
|
263
|
+
_defineProperty(_assertThisInitialized(_this), "isOpenFilter", void 0);
|
|
264
|
+
_defineProperty(_assertThisInitialized(_this), "filters", void 0);
|
|
265
|
+
var _props_title;
|
|
266
|
+
_this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
267
|
+
var _props_svcCode;
|
|
268
|
+
_this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : "";
|
|
269
|
+
var _props_isOpenFilter;
|
|
270
|
+
_this.isOpenFilter = (_props_isOpenFilter = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && _props_isOpenFilter !== void 0 ? _props_isOpenFilter : false;
|
|
271
|
+
var _props_filters;
|
|
272
|
+
_this.filters = (_props_filters = props === null || props === void 0 ? void 0 : props.filters) !== null && _props_filters !== void 0 ? _props_filters : [];
|
|
201
273
|
return _this;
|
|
202
274
|
}
|
|
203
275
|
return SubListItem;
|
|
@@ -205,64 +277,92 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
205
277
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
206
278
|
"use strict";
|
|
207
279
|
_classCallCheck(this, SubListPageConfig);
|
|
208
|
-
var
|
|
209
|
-
this
|
|
280
|
+
var _props_displayFields, _props_sublists;
|
|
281
|
+
_defineProperty(this, "type", "sublist-page");
|
|
282
|
+
_defineProperty(this, "formBind", void 0);
|
|
283
|
+
_defineProperty(this, "displayFields", void 0);
|
|
284
|
+
_defineProperty(this, "sublists", void 0);
|
|
210
285
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
211
|
-
var
|
|
212
|
-
this.displayFields = (
|
|
286
|
+
var _props_displayFields_map;
|
|
287
|
+
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) {
|
|
213
288
|
return new FieldBindItem(item);
|
|
214
|
-
})) !== null &&
|
|
215
|
-
var
|
|
216
|
-
this.sublists = (
|
|
289
|
+
})) !== null && _props_displayFields_map !== void 0 ? _props_displayFields_map : [];
|
|
290
|
+
var _props_sublists_map;
|
|
291
|
+
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) {
|
|
217
292
|
return new SubListItem(item);
|
|
218
|
-
})) !== null &&
|
|
293
|
+
})) !== null && _props_sublists_map !== void 0 ? _props_sublists_map : [];
|
|
219
294
|
};
|
|
220
295
|
export var LeftVariable = function LeftVariable(props) {
|
|
221
296
|
"use strict";
|
|
222
297
|
_classCallCheck(this, LeftVariable);
|
|
298
|
+
_defineProperty(this, "type", void 0);
|
|
299
|
+
_defineProperty(this, "value", void 0);
|
|
223
300
|
this.type = props === null || props === void 0 ? void 0 : props.type;
|
|
224
301
|
this.value = props === null || props === void 0 ? void 0 : props.value;
|
|
225
302
|
};
|
|
226
303
|
export var RightVariable = function RightVariable(props) {
|
|
227
304
|
"use strict";
|
|
228
305
|
_classCallCheck(this, RightVariable);
|
|
229
|
-
|
|
230
|
-
this
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
306
|
+
_defineProperty(this, "type", void 0);
|
|
307
|
+
_defineProperty(this, "value", void 0);
|
|
308
|
+
_defineProperty(this, "displayBos", void 0);
|
|
309
|
+
var _props_type;
|
|
310
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "custom";
|
|
311
|
+
var _props_value;
|
|
312
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : [];
|
|
313
|
+
var _props_displayBos;
|
|
314
|
+
this.displayBos = (_props_displayBos = props === null || props === void 0 ? void 0 : props.displayBos) !== null && _props_displayBos !== void 0 ? _props_displayBos : [];
|
|
235
315
|
};
|
|
236
316
|
/**
|
|
237
317
|
* 连接符条件
|
|
238
318
|
* @public
|
|
239
319
|
*/ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
240
320
|
"use strict";
|
|
321
|
+
var _this = this;
|
|
241
322
|
_classCallCheck(this, FieldFilterConditions);
|
|
242
323
|
/**
|
|
324
|
+
* 编号
|
|
325
|
+
* @defaultValue ''
|
|
326
|
+
*/ _defineProperty(this, "id", void 0);
|
|
327
|
+
/**
|
|
328
|
+
* 规则编号
|
|
329
|
+
* @defaultValue Timestamp
|
|
330
|
+
*/ _defineProperty(this, "ruleId", void 0);
|
|
331
|
+
/**
|
|
243
332
|
* 类型:连接符条件
|
|
244
333
|
* @defaultValue 'conditions'
|
|
245
|
-
*/ this
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
334
|
+
*/ _defineProperty(this, "type", "conditions");
|
|
335
|
+
/**
|
|
336
|
+
* 深度
|
|
337
|
+
* @defaultValue 0
|
|
338
|
+
*/ _defineProperty(this, "level", void 0);
|
|
339
|
+
/**
|
|
340
|
+
* 连接符值
|
|
341
|
+
* @defaultValue 'and'
|
|
342
|
+
*/ _defineProperty(this, "value", void 0);
|
|
343
|
+
/**
|
|
344
|
+
* 包含子项
|
|
345
|
+
* @defaultValue []
|
|
346
|
+
*/ _defineProperty(this, "children", void 0);
|
|
347
|
+
var _props_id;
|
|
348
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
349
|
+
var _props_ruleId;
|
|
350
|
+
this.ruleId = (_props_ruleId = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _props_ruleId !== void 0 ? _props_ruleId : new Date().valueOf();
|
|
351
|
+
var _props_level;
|
|
352
|
+
this.level = (_props_level = props === null || props === void 0 ? void 0 : props.level) !== null && _props_level !== void 0 ? _props_level : 0;
|
|
353
|
+
var _props_value;
|
|
354
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : "and";
|
|
254
355
|
this.children = [];
|
|
255
356
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
256
|
-
var _this = this;
|
|
257
357
|
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
258
358
|
if (item.children !== undefined) {
|
|
259
|
-
var
|
|
359
|
+
var _this_children;
|
|
260
360
|
var filter = new FieldFilterConditions(item);
|
|
261
|
-
(
|
|
361
|
+
(_this_children = _this.children) === null || _this_children === void 0 ? void 0 : _this_children.push(filter);
|
|
262
362
|
} else {
|
|
263
|
-
var
|
|
363
|
+
var _this_children1;
|
|
264
364
|
var filter1 = new FieldFilterCondition(item);
|
|
265
|
-
(
|
|
365
|
+
(_this_children1 = _this.children) === null || _this_children1 === void 0 ? void 0 : _this_children1.push(filter1);
|
|
266
366
|
}
|
|
267
367
|
});
|
|
268
368
|
}
|
|
@@ -274,30 +374,52 @@ export var RightVariable = function RightVariable(props) {
|
|
|
274
374
|
"use strict";
|
|
275
375
|
_classCallCheck(this, FieldFilterCondition);
|
|
276
376
|
/**
|
|
377
|
+
* 唯一编号
|
|
378
|
+
* @defaultValue ''
|
|
379
|
+
*/ _defineProperty(this, "id", void 0);
|
|
380
|
+
/**
|
|
381
|
+
* 规则编号
|
|
382
|
+
* @defaultValue Timestamp
|
|
383
|
+
*/ _defineProperty(this, "ruleId", void 0);
|
|
384
|
+
/**
|
|
277
385
|
* 类型
|
|
278
386
|
* @defaultValue 'condition'
|
|
279
|
-
*/ this
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
this
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
387
|
+
*/ _defineProperty(this, "type", "condition");
|
|
388
|
+
/**
|
|
389
|
+
* 符号
|
|
390
|
+
*/ _defineProperty(this, "symbol", void 0);
|
|
391
|
+
_defineProperty(this, "checked", void 0);
|
|
392
|
+
_defineProperty(this, "describe", void 0);
|
|
393
|
+
/**
|
|
394
|
+
* 左值
|
|
395
|
+
*/ _defineProperty(this, "leftVariableBo", void 0);
|
|
396
|
+
/**
|
|
397
|
+
* 右值
|
|
398
|
+
*/ _defineProperty(this, "rightVariableBo", void 0);
|
|
399
|
+
var _props_id;
|
|
400
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
|
|
401
|
+
var _props_ruleId;
|
|
402
|
+
this.ruleId = (_props_ruleId = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _props_ruleId !== void 0 ? _props_ruleId : new Date().valueOf();
|
|
403
|
+
var _props_symbol;
|
|
404
|
+
this.symbol = (_props_symbol = props === null || props === void 0 ? void 0 : props.symbol) !== null && _props_symbol !== void 0 ? _props_symbol : "";
|
|
405
|
+
var _props_checked;
|
|
406
|
+
this.checked = (_props_checked = props === null || props === void 0 ? void 0 : props.checked) !== null && _props_checked !== void 0 ? _props_checked : false;
|
|
407
|
+
var _props_describe;
|
|
408
|
+
this.describe = (_props_describe = props === null || props === void 0 ? void 0 : props.describe) !== null && _props_describe !== void 0 ? _props_describe : "";
|
|
290
409
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
291
410
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
292
411
|
};
|
|
293
412
|
export var JoinRelation = function JoinRelation(props) {
|
|
294
413
|
"use strict";
|
|
295
414
|
_classCallCheck(this, JoinRelation);
|
|
296
|
-
|
|
297
|
-
this
|
|
415
|
+
_defineProperty(this, "aliasCode", void 0);
|
|
416
|
+
_defineProperty(this, "datasourceBind", void 0);
|
|
417
|
+
_defineProperty(this, "relationFields", void 0);
|
|
418
|
+
var _props_aliasCode;
|
|
419
|
+
this.aliasCode = (_props_aliasCode = props === null || props === void 0 ? void 0 : props.aliasCode) !== null && _props_aliasCode !== void 0 ? _props_aliasCode : "";
|
|
298
420
|
this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
299
|
-
var
|
|
300
|
-
this.relationFields = (
|
|
421
|
+
var _props_relationFields;
|
|
422
|
+
this.relationFields = (_props_relationFields = props === null || props === void 0 ? void 0 : props.relationFields) !== null && _props_relationFields !== void 0 ? _props_relationFields : [];
|
|
301
423
|
};
|
|
302
424
|
/**
|
|
303
425
|
* 数据填充项
|
|
@@ -305,14 +427,34 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
305
427
|
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
306
428
|
"use strict";
|
|
307
429
|
_classCallCheck(this, MultistageFillingItem);
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
430
|
+
/**
|
|
431
|
+
* 控件ID
|
|
432
|
+
* @defaultValue ''
|
|
433
|
+
* @public
|
|
434
|
+
*/ _defineProperty(this, "controlId", void 0);
|
|
435
|
+
/**
|
|
436
|
+
* 字段
|
|
437
|
+
* @defaultValue ''
|
|
438
|
+
* @public
|
|
439
|
+
*/ _defineProperty(this, "fieldCode", void 0);
|
|
440
|
+
/**
|
|
441
|
+
* 字段类型。事件在填充时,需要根据数据类型进行判断处理动作。
|
|
442
|
+
* @defaultValue ''
|
|
443
|
+
* @public
|
|
444
|
+
*/ _defineProperty(this, "fieldType", void 0);
|
|
445
|
+
/**
|
|
446
|
+
* 属性名称。如果是ObjectDataBind的控件,可以指定填充到哪个数据项。
|
|
447
|
+
* @defaultValue ''
|
|
448
|
+
* @public
|
|
449
|
+
* */ _defineProperty(this, "propName", void 0);
|
|
450
|
+
var _props_controlId;
|
|
451
|
+
this.controlId = (_props_controlId = props === null || props === void 0 ? void 0 : props.controlId) !== null && _props_controlId !== void 0 ? _props_controlId : "";
|
|
452
|
+
var _props_fieldCode;
|
|
453
|
+
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
454
|
+
var _props_fieldType;
|
|
455
|
+
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : "";
|
|
456
|
+
var _props_propName;
|
|
457
|
+
this.propName = (_props_propName = props === null || props === void 0 ? void 0 : props.propName) !== null && _props_propName !== void 0 ? _props_propName : "";
|
|
316
458
|
};
|
|
317
459
|
/**
|
|
318
460
|
* 显示项
|
|
@@ -320,10 +462,21 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
320
462
|
*/ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
321
463
|
"use strict";
|
|
322
464
|
_classCallCheck(this, DisplayBoListItem);
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
465
|
+
/**
|
|
466
|
+
* 显示项类型:字段 | 符号
|
|
467
|
+
* @defaultValue 'FIELD'
|
|
468
|
+
* @public
|
|
469
|
+
*/ _defineProperty(this, "type", void 0);
|
|
470
|
+
/**
|
|
471
|
+
* 值
|
|
472
|
+
*/ _defineProperty(this, "value", void 0);
|
|
473
|
+
/**
|
|
474
|
+
* 字段数据类型
|
|
475
|
+
*/ _defineProperty(this, "fieldType", void 0);
|
|
476
|
+
var _props_type;
|
|
477
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "FIELD";
|
|
478
|
+
var _props_value;
|
|
479
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : "";
|
|
327
480
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
328
481
|
};
|
|
329
482
|
/**
|
|
@@ -332,63 +485,84 @@ export var JoinRelation = function JoinRelation(props) {
|
|
|
332
485
|
*/ export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
333
486
|
"use strict";
|
|
334
487
|
_classCallCheck(this, DataSourceOrderItem);
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
488
|
+
/**
|
|
489
|
+
* 列名
|
|
490
|
+
* @defaultValue ''
|
|
491
|
+
*/ _defineProperty(this, "columnName", void 0);
|
|
492
|
+
/**
|
|
493
|
+
* 倒序
|
|
494
|
+
* @defaultValue false
|
|
495
|
+
*/ _defineProperty(this, "desc", void 0);
|
|
496
|
+
var _props_columnName;
|
|
497
|
+
this.columnName = (_props_columnName = props.columnName) !== null && _props_columnName !== void 0 ? _props_columnName : "";
|
|
498
|
+
var _props_desc;
|
|
499
|
+
this.desc = (_props_desc = props.desc) !== null && _props_desc !== void 0 ? _props_desc : false;
|
|
339
500
|
};
|
|
340
501
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
341
502
|
"use strict";
|
|
342
503
|
_classCallCheck(this, DataSourceDataSetValue);
|
|
343
|
-
|
|
344
|
-
this
|
|
345
|
-
|
|
346
|
-
this
|
|
347
|
-
|
|
348
|
-
this
|
|
504
|
+
// fieldCode
|
|
505
|
+
_defineProperty(this, "code", void 0);
|
|
506
|
+
// 值
|
|
507
|
+
_defineProperty(this, "value", void 0);
|
|
508
|
+
// 数据类型
|
|
509
|
+
_defineProperty(this, "field_type", void 0);
|
|
510
|
+
var _props_code;
|
|
511
|
+
this.code = (_props_code = props.code) !== null && _props_code !== void 0 ? _props_code : "";
|
|
512
|
+
var _props_value;
|
|
513
|
+
this.value = (_props_value = props.value) !== null && _props_value !== void 0 ? _props_value : "";
|
|
514
|
+
var _props_field_type;
|
|
515
|
+
this.field_type = (_props_field_type = props.field_type) !== null && _props_field_type !== void 0 ? _props_field_type : FieldTypes.ANY;
|
|
349
516
|
};
|
|
350
517
|
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
351
518
|
"use strict";
|
|
352
519
|
_classCallCheck(this, DataSourceParamItem);
|
|
353
|
-
var
|
|
354
|
-
|
|
520
|
+
var _props_orders, _props_dataSet;
|
|
521
|
+
/**
|
|
522
|
+
* 字段ID
|
|
523
|
+
*/ _defineProperty(this, "id", void 0);
|
|
524
|
+
_defineProperty(this, "limit", void 0);
|
|
525
|
+
_defineProperty(this, "orders", void 0);
|
|
526
|
+
_defineProperty(this, "formKey", void 0);
|
|
527
|
+
_defineProperty(this, "dataSet", void 0);
|
|
528
|
+
var _props_id;
|
|
355
529
|
//字段ID,不可以当作随机数生成唯一编号
|
|
356
|
-
this.id = (
|
|
357
|
-
var
|
|
358
|
-
this.limit = (
|
|
359
|
-
var
|
|
360
|
-
this.formKey = (
|
|
361
|
-
var
|
|
362
|
-
this.orders = (
|
|
530
|
+
this.id = (_props_id = props.id) !== null && _props_id !== void 0 ? _props_id : "";
|
|
531
|
+
var _props_limit;
|
|
532
|
+
this.limit = (_props_limit = props.limit) !== null && _props_limit !== void 0 ? _props_limit : 20;
|
|
533
|
+
var _props_formKey;
|
|
534
|
+
this.formKey = (_props_formKey = props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
535
|
+
var _props_orders_map;
|
|
536
|
+
this.orders = (_props_orders_map = (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
|
|
363
537
|
return new DataSourceOrderItem(item);
|
|
364
|
-
})) !== null &&
|
|
365
|
-
var
|
|
366
|
-
this.dataSet = (
|
|
538
|
+
})) !== null && _props_orders_map !== void 0 ? _props_orders_map : [];
|
|
539
|
+
var _props_dataSet_map;
|
|
540
|
+
this.dataSet = (_props_dataSet_map = (_props_dataSet = props.dataSet) === null || _props_dataSet === void 0 ? void 0 : _props_dataSet.map(function(item) {
|
|
367
541
|
return new DataSourceDataSetValue(item);
|
|
368
|
-
})) !== null &&
|
|
542
|
+
})) !== null && _props_dataSet_map !== void 0 ? _props_dataSet_map : [];
|
|
369
543
|
};
|
|
370
544
|
/**
|
|
371
545
|
* 给filters和orders赋值
|
|
372
546
|
* */ function callFiltersAndOrders(props) {
|
|
373
|
-
var
|
|
374
|
-
var
|
|
375
|
-
this.filters = (
|
|
547
|
+
var _props_filters, _props_viewFilters, _props_orders;
|
|
548
|
+
var _props_filters_map;
|
|
549
|
+
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) {
|
|
376
550
|
if (item.children !== undefined) {
|
|
377
551
|
return new FieldFilterConditions(item);
|
|
378
552
|
}
|
|
379
553
|
return new FieldFilterCondition(item);
|
|
380
|
-
})) !== null &&
|
|
381
|
-
var
|
|
382
|
-
this.viewFilters = (
|
|
554
|
+
})) !== null && _props_filters_map !== void 0 ? _props_filters_map : [];
|
|
555
|
+
var _props_viewFilters_map;
|
|
556
|
+
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) {
|
|
383
557
|
if (item.children !== undefined) {
|
|
384
558
|
return new FieldFilterConditions(item);
|
|
385
559
|
}
|
|
386
560
|
return new FieldFilterCondition(item);
|
|
387
|
-
})) !== null &&
|
|
388
|
-
var
|
|
389
|
-
this.orders = (
|
|
561
|
+
})) !== null && _props_viewFilters_map !== void 0 ? _props_viewFilters_map : [];
|
|
562
|
+
var _props_orders_map;
|
|
563
|
+
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) {
|
|
390
564
|
return new DataSourceOrderItem(item);
|
|
391
|
-
})) !== null &&
|
|
565
|
+
})) !== null && _props_orders_map !== void 0 ? _props_orders_map : [];
|
|
392
566
|
// }
|
|
393
567
|
}
|
|
394
568
|
/**
|
|
@@ -396,75 +570,154 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
396
570
|
* @public
|
|
397
571
|
*/ export var DataSourceBind = function DataSourceBind(props) {
|
|
398
572
|
"use strict";
|
|
573
|
+
var _this = this;
|
|
399
574
|
_classCallCheck(this, DataSourceBind);
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
575
|
+
/**
|
|
576
|
+
* 绑定数据源id
|
|
577
|
+
* @defaultValue ''
|
|
578
|
+
* @public
|
|
579
|
+
*/ _defineProperty(this, "dataCode", void 0);
|
|
580
|
+
/**
|
|
581
|
+
* 存储值
|
|
582
|
+
* @defaultValue ''
|
|
583
|
+
* @public
|
|
584
|
+
*/ _defineProperty(this, "valueFieldCode", void 0);
|
|
585
|
+
/**
|
|
586
|
+
* 显示值
|
|
587
|
+
* @defaultValue []
|
|
588
|
+
* @public
|
|
589
|
+
*/ _defineProperty(this, "displayBoList", void 0);
|
|
590
|
+
/**
|
|
591
|
+
* 查询关键字参数映射
|
|
592
|
+
* @defaultValue ''
|
|
593
|
+
* @public
|
|
594
|
+
*/ _defineProperty(this, "keywordMapping", void 0);
|
|
595
|
+
/**
|
|
596
|
+
* 绑定服务
|
|
597
|
+
* @defaultValue ''
|
|
598
|
+
* @public
|
|
599
|
+
*/ _defineProperty(this, "svcCode", void 0);
|
|
600
|
+
/**
|
|
601
|
+
* 应用Id
|
|
602
|
+
* @defaultValue ''
|
|
603
|
+
* @public
|
|
604
|
+
*/ _defineProperty(this, "appId", void 0);
|
|
605
|
+
/**
|
|
606
|
+
* 过滤条件
|
|
607
|
+
* @defaultValue []
|
|
608
|
+
* @public
|
|
609
|
+
*/ _defineProperty(this, "filters", void 0);
|
|
610
|
+
// 过滤
|
|
611
|
+
/**
|
|
612
|
+
* 过滤条件-查看过滤
|
|
613
|
+
* @defaultValue []
|
|
614
|
+
* @public
|
|
615
|
+
*/ _defineProperty(this, "viewFilters", void 0);
|
|
616
|
+
/**
|
|
617
|
+
* 是否开启查看过滤
|
|
618
|
+
* @defaultValue 0:未开启;1:开启
|
|
619
|
+
* @public
|
|
620
|
+
*/ _defineProperty(this, "isOpenViewFilters", void 0);
|
|
621
|
+
/**
|
|
622
|
+
* 排序
|
|
623
|
+
* @defaultValue []
|
|
624
|
+
* @public
|
|
625
|
+
*/ _defineProperty(this, "orders", void 0);
|
|
626
|
+
/**
|
|
627
|
+
* 显示排序
|
|
628
|
+
* @defaultValue true
|
|
629
|
+
* @public
|
|
630
|
+
*/ _defineProperty(this, "showOrder", void 0);
|
|
631
|
+
var _props_dataCode;
|
|
632
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
633
|
+
var _props_appId;
|
|
634
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
635
|
+
var _props_valueFieldCode;
|
|
636
|
+
this.valueFieldCode = (_props_valueFieldCode = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && _props_valueFieldCode !== void 0 ? _props_valueFieldCode : "";
|
|
406
637
|
this.displayBoList = [];
|
|
407
|
-
var
|
|
408
|
-
this.isOpenViewFilters = (
|
|
638
|
+
var _props_isOpenViewFilters;
|
|
639
|
+
this.isOpenViewFilters = (_props_isOpenViewFilters = props === null || props === void 0 ? void 0 : props.isOpenViewFilters) !== null && _props_isOpenViewFilters !== void 0 ? _props_isOpenViewFilters : 0;
|
|
409
640
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
410
|
-
var _this = this;
|
|
411
641
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
412
|
-
var
|
|
413
|
-
(
|
|
642
|
+
var _this_displayBoList;
|
|
643
|
+
(_this_displayBoList = _this.displayBoList) === null || _this_displayBoList === void 0 ? void 0 : _this_displayBoList.push(new DisplayBoListItem(item));
|
|
414
644
|
});
|
|
415
645
|
}
|
|
416
|
-
var
|
|
417
|
-
this.keywordMapping = (
|
|
418
|
-
var
|
|
419
|
-
this.showOrder = (
|
|
420
|
-
var
|
|
421
|
-
this.svcCode = (
|
|
646
|
+
var _props_keywordMapping;
|
|
647
|
+
this.keywordMapping = (_props_keywordMapping = props === null || props === void 0 ? void 0 : props.keywordMapping) !== null && _props_keywordMapping !== void 0 ? _props_keywordMapping : "";
|
|
648
|
+
var _props_showOrder;
|
|
649
|
+
this.showOrder = (_props_showOrder = props === null || props === void 0 ? void 0 : props.showOrder) !== null && _props_showOrder !== void 0 ? _props_showOrder : true;
|
|
650
|
+
var _props_svcCode;
|
|
651
|
+
this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : "";
|
|
422
652
|
callFiltersAndOrders.call(this, props);
|
|
423
653
|
};
|
|
424
654
|
export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
425
655
|
"use strict";
|
|
426
656
|
_classCallCheck(this, SelectedContentConfig);
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
657
|
+
/**
|
|
658
|
+
* 展示已选内容
|
|
659
|
+
* @defaultValue ''
|
|
660
|
+
* @public
|
|
661
|
+
*/ _defineProperty(this, "dataCode", void 0);
|
|
662
|
+
/**
|
|
663
|
+
* 展示已选明细
|
|
664
|
+
* @defaultValue []
|
|
665
|
+
* @public
|
|
666
|
+
*/ _defineProperty(this, "displayBoList", void 0);
|
|
667
|
+
var _props_dataCode;
|
|
668
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
669
|
+
var _props_displayBoList;
|
|
670
|
+
this.displayBoList = (_props_displayBoList = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _props_displayBoList !== void 0 ? _props_displayBoList : [];
|
|
431
671
|
};
|
|
432
672
|
export var LinkOperationOption = function LinkOperationOption(props) {
|
|
433
673
|
"use strict";
|
|
434
674
|
_classCallCheck(this, LinkOperationOption);
|
|
435
|
-
|
|
436
|
-
this
|
|
437
|
-
|
|
438
|
-
this
|
|
439
|
-
|
|
440
|
-
this
|
|
441
|
-
|
|
442
|
-
this
|
|
443
|
-
|
|
444
|
-
this
|
|
445
|
-
var
|
|
446
|
-
this.
|
|
447
|
-
var
|
|
448
|
-
this.
|
|
449
|
-
var
|
|
450
|
-
this.
|
|
451
|
-
var
|
|
452
|
-
this.
|
|
453
|
-
var
|
|
454
|
-
this.
|
|
675
|
+
_defineProperty(this, "code", void 0);
|
|
676
|
+
_defineProperty(this, "color", void 0);
|
|
677
|
+
_defineProperty(this, "command", void 0);
|
|
678
|
+
_defineProperty(this, "confirmMessage", void 0);
|
|
679
|
+
_defineProperty(this, "defaultState", void 0);
|
|
680
|
+
_defineProperty(this, "formKey", void 0);
|
|
681
|
+
_defineProperty(this, "icon", void 0);
|
|
682
|
+
_defineProperty(this, "needConfirm", void 0);
|
|
683
|
+
_defineProperty(this, "openType", void 0);
|
|
684
|
+
_defineProperty(this, "priorityProcess", void 0);
|
|
685
|
+
var _props_code;
|
|
686
|
+
this.code = (_props_code = props === null || props === void 0 ? void 0 : props.code) !== null && _props_code !== void 0 ? _props_code : "view";
|
|
687
|
+
var _props_color;
|
|
688
|
+
this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : "primary";
|
|
689
|
+
var _props_command;
|
|
690
|
+
this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : "view";
|
|
691
|
+
var _props_confirmMessage;
|
|
692
|
+
this.confirmMessage = (_props_confirmMessage = props === null || props === void 0 ? void 0 : props.confirmMessage) !== null && _props_confirmMessage !== void 0 ? _props_confirmMessage : undefined;
|
|
693
|
+
var _props_defaultState;
|
|
694
|
+
this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : "default";
|
|
695
|
+
var _props_formKey;
|
|
696
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : undefined;
|
|
697
|
+
var _props_icon;
|
|
698
|
+
this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : "iconliulan1";
|
|
699
|
+
var _props_needConfirm;
|
|
700
|
+
this.needConfirm = (_props_needConfirm = props === null || props === void 0 ? void 0 : props.needConfirm) !== null && _props_needConfirm !== void 0 ? _props_needConfirm : false;
|
|
701
|
+
var _props_openType;
|
|
702
|
+
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : "modal";
|
|
703
|
+
var _props_priorityProcess;
|
|
704
|
+
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : true;
|
|
455
705
|
};
|
|
456
706
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
457
707
|
"use strict";
|
|
458
708
|
_classCallCheck(this, CustomAttributeItem);
|
|
459
|
-
var
|
|
460
|
-
|
|
461
|
-
this
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
709
|
+
var _props_value;
|
|
710
|
+
_defineProperty(this, "name", void 0);
|
|
711
|
+
_defineProperty(this, "key", void 0);
|
|
712
|
+
_defineProperty(this, "value", void 0);
|
|
713
|
+
var _props_name;
|
|
714
|
+
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : "";
|
|
715
|
+
var _props_key;
|
|
716
|
+
this.key = (_props_key = props === null || props === void 0 ? void 0 : props.key) !== null && _props_key !== void 0 ? _props_key : "";
|
|
717
|
+
var _props_value_map;
|
|
718
|
+
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) {
|
|
466
719
|
return new DisplayBoListItem(item);
|
|
467
|
-
})) !== null &&
|
|
720
|
+
})) !== null && _props_value_map !== void 0 ? _props_value_map : [];
|
|
468
721
|
};
|
|
469
722
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
470
723
|
"use strict";
|
|
@@ -473,12 +726,13 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
473
726
|
function SuperDataSourceBind(props) {
|
|
474
727
|
_classCallCheck(this, SuperDataSourceBind);
|
|
475
728
|
var _this;
|
|
476
|
-
var
|
|
729
|
+
var _props_attributes;
|
|
477
730
|
_this = _super.call(this, props);
|
|
478
|
-
|
|
479
|
-
|
|
731
|
+
_defineProperty(_assertThisInitialized(_this), "attributes", void 0);
|
|
732
|
+
var _props_attributes_map;
|
|
733
|
+
_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) {
|
|
480
734
|
return new CustomAttributeItem(item);
|
|
481
|
-
})) !== null &&
|
|
735
|
+
})) !== null && _props_attributes_map !== void 0 ? _props_attributes_map : [];
|
|
482
736
|
return _this;
|
|
483
737
|
}
|
|
484
738
|
return SuperDataSourceBind;
|
|
@@ -490,14 +744,16 @@ export var OrganizationDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
490
744
|
function OrganizationDataSourceBind(props) {
|
|
491
745
|
_classCallCheck(this, OrganizationDataSourceBind);
|
|
492
746
|
var _this;
|
|
493
|
-
var
|
|
747
|
+
var _props_attributes;
|
|
494
748
|
_this = _super.call(this, props);
|
|
495
|
-
|
|
496
|
-
|
|
749
|
+
_defineProperty(_assertThisInitialized(_this), "attributes", void 0);
|
|
750
|
+
_defineProperty(_assertThisInitialized(_this), "formCode", void 0);
|
|
751
|
+
var _props_attributes_map;
|
|
752
|
+
_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) {
|
|
497
753
|
return new CustomAttributeItem(item);
|
|
498
|
-
})) !== null &&
|
|
499
|
-
var
|
|
500
|
-
_this.formCode = (
|
|
754
|
+
})) !== null && _props_attributes_map !== void 0 ? _props_attributes_map : [];
|
|
755
|
+
var _props_formCode;
|
|
756
|
+
_this.formCode = (_props_formCode = props === null || props === void 0 ? void 0 : props.formCode) !== null && _props_formCode !== void 0 ? _props_formCode : "";
|
|
501
757
|
return _this;
|
|
502
758
|
}
|
|
503
759
|
return OrganizationDataSourceBind;
|
|
@@ -510,9 +766,11 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
510
766
|
_classCallCheck(this, TreeDataSourceBind);
|
|
511
767
|
var _this;
|
|
512
768
|
_this = _super.call(this, props);
|
|
769
|
+
_defineProperty(_assertThisInitialized(_this), "rootNode", void 0);
|
|
770
|
+
_defineProperty(_assertThisInitialized(_this), "filterCode", void 0);
|
|
513
771
|
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
514
|
-
var
|
|
515
|
-
_this.filterCode = (
|
|
772
|
+
var _props_filterCode;
|
|
773
|
+
_this.filterCode = (_props_filterCode = props === null || props === void 0 ? void 0 : props.filterCode) !== null && _props_filterCode !== void 0 ? _props_filterCode : "";
|
|
516
774
|
return _this;
|
|
517
775
|
}
|
|
518
776
|
return TreeDataSourceBind;
|
|
@@ -520,15 +778,24 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
520
778
|
var FillBind = function FillBind(props) {
|
|
521
779
|
"use strict";
|
|
522
780
|
_classCallCheck(this, FillBind);
|
|
523
|
-
var
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
781
|
+
var _props_fillList;
|
|
782
|
+
/*
|
|
783
|
+
* 需要被填充的数据源
|
|
784
|
+
* */ _defineProperty(this, "dataCode", void 0);
|
|
785
|
+
/*
|
|
786
|
+
* appId
|
|
787
|
+
* */ _defineProperty(this, "appId", void 0);
|
|
788
|
+
/*
|
|
789
|
+
* 执行填充的数据项和控件
|
|
790
|
+
* */ _defineProperty(this, "fillList", void 0);
|
|
791
|
+
var _props_dataCode;
|
|
792
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
793
|
+
var _props_appId;
|
|
794
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
795
|
+
var _props_fillList_map;
|
|
796
|
+
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) {
|
|
530
797
|
return new MultistageFillingItem(item);
|
|
531
|
-
})) !== null &&
|
|
798
|
+
})) !== null && _props_fillList_map !== void 0 ? _props_fillList_map : [];
|
|
532
799
|
};
|
|
533
800
|
/**
|
|
534
801
|
* FillPayloadBind 填充配置
|
|
@@ -542,6 +809,21 @@ var FillBind = function FillBind(props) {
|
|
|
542
809
|
_classCallCheck(this, FillPayloadBind);
|
|
543
810
|
var _this;
|
|
544
811
|
_this = _super.call(this, props);
|
|
812
|
+
/**
|
|
813
|
+
* 数据源过滤条件
|
|
814
|
+
* @defaultValue []
|
|
815
|
+
* @public
|
|
816
|
+
**/ _defineProperty(_assertThisInitialized(_this), "filters", void 0);
|
|
817
|
+
/**
|
|
818
|
+
* 数据源过滤条件-查看
|
|
819
|
+
* @defaultValue []
|
|
820
|
+
* @public
|
|
821
|
+
**/ _defineProperty(_assertThisInitialized(_this), "viewFilters", void 0);
|
|
822
|
+
/**
|
|
823
|
+
* 数据源排序条件
|
|
824
|
+
* @defaultValue []
|
|
825
|
+
* @public
|
|
826
|
+
**/ _defineProperty(_assertThisInitialized(_this), "orders", void 0);
|
|
545
827
|
callFiltersAndOrders.call(_assertThisInitialized(_this), props);
|
|
546
828
|
return _this;
|
|
547
829
|
}
|
|
@@ -558,10 +840,20 @@ var FillBind = function FillBind(props) {
|
|
|
558
840
|
_classCallCheck(this, FillBackBind);
|
|
559
841
|
var _this;
|
|
560
842
|
_this = _super.call(this, props);
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
843
|
+
/**
|
|
844
|
+
* 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
|
|
845
|
+
* @defaultValue 'current'
|
|
846
|
+
* @public
|
|
847
|
+
* */ _defineProperty(_assertThisInitialized(_this), "mode", void 0);
|
|
848
|
+
/**
|
|
849
|
+
* 多选
|
|
850
|
+
* @defaultValue false
|
|
851
|
+
* @public
|
|
852
|
+
*/ _defineProperty(_assertThisInitialized(_this), "multiple", void 0);
|
|
853
|
+
var _props_mode;
|
|
854
|
+
_this.mode = (_props_mode = props === null || props === void 0 ? void 0 : props.mode) !== null && _props_mode !== void 0 ? _props_mode : "current";
|
|
855
|
+
var _props_multiple;
|
|
856
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
565
857
|
return _this;
|
|
566
858
|
}
|
|
567
859
|
return FillBackBind;
|
|
@@ -569,12 +861,15 @@ var FillBind = function FillBind(props) {
|
|
|
569
861
|
export var Language = function Language(props) {
|
|
570
862
|
"use strict";
|
|
571
863
|
_classCallCheck(this, Language);
|
|
572
|
-
|
|
573
|
-
this
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
864
|
+
_defineProperty(this, "zh", void 0);
|
|
865
|
+
_defineProperty(this, "en", void 0);
|
|
866
|
+
_defineProperty(this, "ja", void 0);
|
|
867
|
+
var _props_zh;
|
|
868
|
+
this.zh = (_props_zh = props === null || props === void 0 ? void 0 : props.zh) !== null && _props_zh !== void 0 ? _props_zh : "";
|
|
869
|
+
var _props_en;
|
|
870
|
+
this.en = (_props_en = props === null || props === void 0 ? void 0 : props.en) !== null && _props_en !== void 0 ? _props_en : "";
|
|
871
|
+
var _props_ja;
|
|
872
|
+
this.ja = (_props_ja = props === null || props === void 0 ? void 0 : props.ja) !== null && _props_ja !== void 0 ? _props_ja : "";
|
|
578
873
|
};
|
|
579
874
|
/**
|
|
580
875
|
* 正则校验
|
|
@@ -582,12 +877,24 @@ export var Language = function Language(props) {
|
|
|
582
877
|
*/ export var RegularRules = function RegularRules(props) {
|
|
583
878
|
"use strict";
|
|
584
879
|
_classCallCheck(this, RegularRules);
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
880
|
+
/**
|
|
881
|
+
* 内置模版
|
|
882
|
+
* @defaultValue ''
|
|
883
|
+
*/ _defineProperty(this, "stencilName", void 0);
|
|
884
|
+
/**
|
|
885
|
+
* 正则表达式
|
|
886
|
+
* @defaultValue ''
|
|
887
|
+
*/ _defineProperty(this, "expression", void 0);
|
|
888
|
+
/**
|
|
889
|
+
* 校验错误提示信息
|
|
890
|
+
* @defaultValue ''
|
|
891
|
+
*/ _defineProperty(this, "errMessage", void 0);
|
|
892
|
+
var _props_stencilName;
|
|
893
|
+
this.stencilName = (_props_stencilName = props === null || props === void 0 ? void 0 : props.stencilName) !== null && _props_stencilName !== void 0 ? _props_stencilName : "";
|
|
894
|
+
var _props_expression;
|
|
895
|
+
this.expression = (_props_expression = props === null || props === void 0 ? void 0 : props.expression) !== null && _props_expression !== void 0 ? _props_expression : "";
|
|
896
|
+
var _props_errMessage;
|
|
897
|
+
this.errMessage = (_props_errMessage = props === null || props === void 0 ? void 0 : props.errMessage) !== null && _props_errMessage !== void 0 ? _props_errMessage : "";
|
|
591
898
|
};
|
|
592
899
|
/**
|
|
593
900
|
* 选项设置-自定义选项
|
|
@@ -595,12 +902,23 @@ export var Language = function Language(props) {
|
|
|
595
902
|
*/ export var OptionSetting = function OptionSetting(props) {
|
|
596
903
|
"use strict";
|
|
597
904
|
_classCallCheck(this, OptionSetting);
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
905
|
+
_defineProperty(this, "id", void 0);
|
|
906
|
+
/**
|
|
907
|
+
* 显示值
|
|
908
|
+
* @defaultValue ''
|
|
909
|
+
* @public
|
|
910
|
+
*/ _defineProperty(this, "label", void 0);
|
|
911
|
+
/**
|
|
912
|
+
* 选项ID
|
|
913
|
+
* @defaultValue this.label
|
|
914
|
+
* @public
|
|
915
|
+
*/ _defineProperty(this, "value", void 0);
|
|
916
|
+
var _props_id;
|
|
917
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
918
|
+
var _props_label;
|
|
919
|
+
this.label = (_props_label = props === null || props === void 0 ? void 0 : props.label) !== null && _props_label !== void 0 ? _props_label : "";
|
|
920
|
+
var _props_value;
|
|
921
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : this.label;
|
|
604
922
|
};
|
|
605
923
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
606
924
|
"use strict";
|
|
@@ -610,25 +928,27 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
610
928
|
_classCallCheck(this, ImageOptionSetting);
|
|
611
929
|
var _this;
|
|
612
930
|
_this = _super.call(this, props);
|
|
613
|
-
|
|
614
|
-
_this
|
|
615
|
-
var
|
|
616
|
-
_this.
|
|
931
|
+
_defineProperty(_assertThisInitialized(_this), "image", void 0);
|
|
932
|
+
_defineProperty(_assertThisInitialized(_this), "type", void 0);
|
|
933
|
+
var _props_image;
|
|
934
|
+
_this.image = (_props_image = props === null || props === void 0 ? void 0 : props.image) !== null && _props_image !== void 0 ? _props_image : "";
|
|
935
|
+
var _props_type;
|
|
936
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "src";
|
|
617
937
|
return _this;
|
|
618
938
|
}
|
|
619
939
|
return ImageOptionSetting;
|
|
620
940
|
}(OptionSetting);
|
|
621
941
|
export function initOptions(options) {
|
|
622
|
-
var
|
|
623
|
-
return (
|
|
942
|
+
var _options_map;
|
|
943
|
+
return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
624
944
|
return new OptionSetting(item);
|
|
625
|
-
})) !== null &&
|
|
945
|
+
})) !== null && _options_map !== void 0 ? _options_map : [];
|
|
626
946
|
}
|
|
627
947
|
export function initImageOptions(options) {
|
|
628
|
-
var
|
|
629
|
-
return (
|
|
948
|
+
var _options_map;
|
|
949
|
+
return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
630
950
|
return new ImageOptionSetting(item);
|
|
631
|
-
})) !== null &&
|
|
951
|
+
})) !== null && _options_map !== void 0 ? _options_map : [];
|
|
632
952
|
}
|
|
633
953
|
/**
|
|
634
954
|
* 对象类型数据绑定配置
|
|
@@ -648,6 +968,12 @@ export function initImageOptions(options) {
|
|
|
648
968
|
_classCallCheck(this, AmountDataBind);
|
|
649
969
|
var _this;
|
|
650
970
|
_this = _super.call(this);
|
|
971
|
+
/**
|
|
972
|
+
* 金额字段绑定配置
|
|
973
|
+
*/ _defineProperty(_assertThisInitialized(_this), "amount", void 0);
|
|
974
|
+
/**
|
|
975
|
+
* 币种字段绑定配置
|
|
976
|
+
*/ _defineProperty(_assertThisInitialized(_this), "currency", void 0);
|
|
651
977
|
_this.amount = new DataBind(props === null || props === void 0 ? void 0 : props.amount);
|
|
652
978
|
_this.currency = new DataBind(props === null || props === void 0 ? void 0 : props.currency);
|
|
653
979
|
return _this;
|
|
@@ -660,10 +986,18 @@ export function initImageOptions(options) {
|
|
|
660
986
|
*/ export var AmountValue = function AmountValue(props) {
|
|
661
987
|
"use strict";
|
|
662
988
|
_classCallCheck(this, AmountValue);
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
989
|
+
/**
|
|
990
|
+
* 金额值
|
|
991
|
+
* @defaultValue ''
|
|
992
|
+
*/ _defineProperty(this, "amount", void 0);
|
|
993
|
+
/**
|
|
994
|
+
* 货币值
|
|
995
|
+
* @defaultValue 'CNY'
|
|
996
|
+
*/ _defineProperty(this, "currency", void 0);
|
|
997
|
+
var _props_amount;
|
|
998
|
+
this.amount = (_props_amount = props === null || props === void 0 ? void 0 : props.amount) !== null && _props_amount !== void 0 ? _props_amount : "";
|
|
999
|
+
var _props_currency;
|
|
1000
|
+
this.currency = (_props_currency = props === null || props === void 0 ? void 0 : props.currency) !== null && _props_currency !== void 0 ? _props_currency : AMOUNT_TYPE.CNY;
|
|
667
1001
|
};
|
|
668
1002
|
/**
|
|
669
1003
|
* 日期区间数据绑定项
|
|
@@ -676,6 +1010,12 @@ export function initImageOptions(options) {
|
|
|
676
1010
|
_classCallCheck(this, RangeDataBind);
|
|
677
1011
|
var _this;
|
|
678
1012
|
_this = _super.call(this);
|
|
1013
|
+
/**
|
|
1014
|
+
* 开始日期字段绑定项
|
|
1015
|
+
*/ _defineProperty(_assertThisInitialized(_this), "min", void 0);
|
|
1016
|
+
/**
|
|
1017
|
+
* 结束日期字段绑定项
|
|
1018
|
+
*/ _defineProperty(_assertThisInitialized(_this), "max", void 0);
|
|
679
1019
|
_this.min = new DataBind(props === null || props === void 0 ? void 0 : props.min);
|
|
680
1020
|
_this.max = new DataBind(props === null || props === void 0 ? void 0 : props.max);
|
|
681
1021
|
return _this;
|
|
@@ -688,10 +1028,18 @@ export function initImageOptions(options) {
|
|
|
688
1028
|
*/ export var RangeDateValue = function RangeDateValue(props) {
|
|
689
1029
|
"use strict";
|
|
690
1030
|
_classCallCheck(this, RangeDateValue);
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
1031
|
+
/**
|
|
1032
|
+
* 开始日期值
|
|
1033
|
+
* @defaultValue ''
|
|
1034
|
+
*/ _defineProperty(this, "min", void 0);
|
|
1035
|
+
/**
|
|
1036
|
+
* 结束日期值
|
|
1037
|
+
* @defaultValue ''
|
|
1038
|
+
*/ _defineProperty(this, "max", void 0);
|
|
1039
|
+
var _props_min;
|
|
1040
|
+
this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
|
|
1041
|
+
var _props_max;
|
|
1042
|
+
this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : "";
|
|
695
1043
|
};
|
|
696
1044
|
/**
|
|
697
1045
|
* 地址值
|
|
@@ -699,18 +1047,42 @@ export function initImageOptions(options) {
|
|
|
699
1047
|
*/ export var AddressValue = function AddressValue(props) {
|
|
700
1048
|
"use strict";
|
|
701
1049
|
_classCallCheck(this, AddressValue);
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
1050
|
+
/**
|
|
1051
|
+
* 市编码
|
|
1052
|
+
* @defaultValue ''
|
|
1053
|
+
*/ _defineProperty(this, "city", void 0);
|
|
1054
|
+
/**
|
|
1055
|
+
* 市显示文字
|
|
1056
|
+
* @defaultValue ''
|
|
1057
|
+
*/ _defineProperty(this, "cityDisplay", void 0);
|
|
1058
|
+
/**
|
|
1059
|
+
* 区编码
|
|
1060
|
+
* @defaultValue ''
|
|
1061
|
+
*/ _defineProperty(this, "district", void 0);
|
|
1062
|
+
/**
|
|
1063
|
+
* 区显示文字
|
|
1064
|
+
* @defaultValue ''
|
|
1065
|
+
*/ _defineProperty(this, "districtDisplay", void 0);
|
|
1066
|
+
/**
|
|
1067
|
+
* 省编码
|
|
1068
|
+
* @defaultValue ''
|
|
1069
|
+
*/ _defineProperty(this, "province", void 0);
|
|
1070
|
+
/**
|
|
1071
|
+
* 省显示文字
|
|
1072
|
+
* @defaultValue ''
|
|
1073
|
+
*/ _defineProperty(this, "provinceDisplay", void 0);
|
|
1074
|
+
var _props_city;
|
|
1075
|
+
this.city = (_props_city = props === null || props === void 0 ? void 0 : props.city) !== null && _props_city !== void 0 ? _props_city : "";
|
|
1076
|
+
var _props_cityDisplay;
|
|
1077
|
+
this.cityDisplay = (_props_cityDisplay = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && _props_cityDisplay !== void 0 ? _props_cityDisplay : "";
|
|
1078
|
+
var _props_district;
|
|
1079
|
+
this.district = (_props_district = props === null || props === void 0 ? void 0 : props.district) !== null && _props_district !== void 0 ? _props_district : "";
|
|
1080
|
+
var _props_districtDisplay;
|
|
1081
|
+
this.districtDisplay = (_props_districtDisplay = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && _props_districtDisplay !== void 0 ? _props_districtDisplay : "";
|
|
1082
|
+
var _props_province;
|
|
1083
|
+
this.province = (_props_province = props === null || props === void 0 ? void 0 : props.province) !== null && _props_province !== void 0 ? _props_province : "";
|
|
1084
|
+
var _props_provinceDisplay;
|
|
1085
|
+
this.provinceDisplay = (_props_provinceDisplay = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && _props_provinceDisplay !== void 0 ? _props_provinceDisplay : "";
|
|
714
1086
|
};
|
|
715
1087
|
/**
|
|
716
1088
|
* 计算公式数据绑定项
|
|
@@ -723,6 +1095,12 @@ export function initImageOptions(options) {
|
|
|
723
1095
|
_classCallCheck(this, CalcDataBind);
|
|
724
1096
|
var _this;
|
|
725
1097
|
_this = _super.call(this);
|
|
1098
|
+
/**
|
|
1099
|
+
* 计算结果字段绑定项
|
|
1100
|
+
*/ _defineProperty(_assertThisInitialized(_this), "result", void 0);
|
|
1101
|
+
/**
|
|
1102
|
+
* 单位字段绑定项
|
|
1103
|
+
*/ _defineProperty(_assertThisInitialized(_this), "unit", void 0);
|
|
726
1104
|
_this.result = new DataBind(props === null || props === void 0 ? void 0 : props.result);
|
|
727
1105
|
_this.unit = new DataBind(props === null || props === void 0 ? void 0 : props.unit);
|
|
728
1106
|
return _this;
|
|
@@ -735,10 +1113,18 @@ export function initImageOptions(options) {
|
|
|
735
1113
|
*/ export var CalcValue = function CalcValue(props) {
|
|
736
1114
|
"use strict";
|
|
737
1115
|
_classCallCheck(this, CalcValue);
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
1116
|
+
/**
|
|
1117
|
+
* 计算结果值
|
|
1118
|
+
* @defaultValue 0
|
|
1119
|
+
*/ _defineProperty(this, "result", void 0);
|
|
1120
|
+
/**
|
|
1121
|
+
* 单位
|
|
1122
|
+
* @defaultValue ''
|
|
1123
|
+
*/ _defineProperty(this, "unit", void 0);
|
|
1124
|
+
var _props_result;
|
|
1125
|
+
this.result = (_props_result = props === null || props === void 0 ? void 0 : props.result) !== null && _props_result !== void 0 ? _props_result : 0;
|
|
1126
|
+
var _props_unit;
|
|
1127
|
+
this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : "";
|
|
742
1128
|
};
|
|
743
1129
|
export var AMOUNT_TYPE;
|
|
744
1130
|
(function(AMOUNT_TYPE) {
|
|
@@ -772,36 +1158,36 @@ export var AMOUNT_TYPE;
|
|
|
772
1158
|
})(AMOUNT_TYPE || (AMOUNT_TYPE = {}));
|
|
773
1159
|
export var COMMON_SETTING_TYPE;
|
|
774
1160
|
(function(COMMON_SETTING_TYPE) {
|
|
775
|
-
COMMON_SETTING_TYPE["DEFAULT_DISPLAY"] =
|
|
776
|
-
COMMON_SETTING_TYPE["REQUIRED"] =
|
|
777
|
-
COMMON_SETTING_TYPE["IS_HIDE"] =
|
|
778
|
-
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] =
|
|
779
|
-
COMMON_SETTING_TYPE["IMD_SEARCH"] =
|
|
780
|
-
COMMON_SETTING_TYPE["MULTIPLE"] =
|
|
781
|
-
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] =
|
|
782
|
-
COMMON_SETTING_TYPE["CAPTION"] =
|
|
783
|
-
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] =
|
|
784
|
-
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] =
|
|
785
|
-
COMMON_SETTING_TYPE["CAN_SEARCH"] =
|
|
786
|
-
COMMON_SETTING_TYPE["CAN_CHECK"] =
|
|
787
|
-
COMMON_SETTING_TYPE["CAN_EDIT"] =
|
|
788
|
-
COMMON_SETTING_TYPE["CAN_DELETE"] =
|
|
789
|
-
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] =
|
|
790
|
-
COMMON_SETTING_TYPE["MICROMETER"] =
|
|
791
|
-
COMMON_SETTING_TYPE["PRECISION"] =
|
|
792
|
-
COMMON_SETTING_TYPE["PERCENTAGE"] =
|
|
793
|
-
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] =
|
|
794
|
-
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] =
|
|
795
|
-
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] =
|
|
796
|
-
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] =
|
|
797
|
-
COMMON_SETTING_TYPE["VIEW_FORM_MODEL_TYPE"] =
|
|
798
|
-
COMMON_SETTING_TYPE["SERVER_PAGINATION"] =
|
|
799
|
-
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] =
|
|
800
|
-
COMMON_SETTING_TYPE["ENCRYPTED"] =
|
|
801
|
-
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] =
|
|
802
|
-
COMMON_SETTING_TYPE["REVISIONS_MODE"] =
|
|
803
|
-
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] =
|
|
804
|
-
COMMON_SETTING_TYPE["IS_PASTE"] =
|
|
1161
|
+
COMMON_SETTING_TYPE["DEFAULT_DISPLAY"] = "defaultDisplay";
|
|
1162
|
+
COMMON_SETTING_TYPE["REQUIRED"] = "required";
|
|
1163
|
+
COMMON_SETTING_TYPE["IS_HIDE"] = "isHide";
|
|
1164
|
+
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] = "isShowUnit";
|
|
1165
|
+
COMMON_SETTING_TYPE["IMD_SEARCH"] = "immediatelySearch";
|
|
1166
|
+
COMMON_SETTING_TYPE["MULTIPLE"] = "multiple";
|
|
1167
|
+
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] = "submitSelectCurrency";
|
|
1168
|
+
COMMON_SETTING_TYPE["CAPTION"] = "caption";
|
|
1169
|
+
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] = "isHideCaption";
|
|
1170
|
+
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] = "defaultShowOptions";
|
|
1171
|
+
COMMON_SETTING_TYPE["CAN_SEARCH"] = "canSearch";
|
|
1172
|
+
COMMON_SETTING_TYPE["CAN_CHECK"] = "canCheck";
|
|
1173
|
+
COMMON_SETTING_TYPE["CAN_EDIT"] = "canEdit";
|
|
1174
|
+
COMMON_SETTING_TYPE["CAN_DELETE"] = "canDelete";
|
|
1175
|
+
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] = "showUpperCase";
|
|
1176
|
+
COMMON_SETTING_TYPE["MICROMETER"] = "micrometer";
|
|
1177
|
+
COMMON_SETTING_TYPE["PRECISION"] = "precision";
|
|
1178
|
+
COMMON_SETTING_TYPE["PERCENTAGE"] = "percentage";
|
|
1179
|
+
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] = "optionalLevel";
|
|
1180
|
+
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] = "containsSubNode";
|
|
1181
|
+
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] = "defaultCollapse";
|
|
1182
|
+
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] = "canViewForm";
|
|
1183
|
+
COMMON_SETTING_TYPE["VIEW_FORM_MODEL_TYPE"] = "viewFormModelType";
|
|
1184
|
+
COMMON_SETTING_TYPE["SERVER_PAGINATION"] = "serverPagination";
|
|
1185
|
+
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] = "isShowCaptionTip";
|
|
1186
|
+
COMMON_SETTING_TYPE["ENCRYPTED"] = "encrypted";
|
|
1187
|
+
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] = "isInlineEdit";
|
|
1188
|
+
COMMON_SETTING_TYPE["REVISIONS_MODE"] = "revisionsMode";
|
|
1189
|
+
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] = "allowCopyOptions";
|
|
1190
|
+
COMMON_SETTING_TYPE["IS_PASTE"] = "isPaste";
|
|
805
1191
|
})(COMMON_SETTING_TYPE || (COMMON_SETTING_TYPE = {}));
|
|
806
1192
|
export var PAGE_STATUS;
|
|
807
1193
|
(function(PAGE_STATUS) {
|
|
@@ -816,31 +1202,62 @@ export var PAGE_STATUS;
|
|
|
816
1202
|
*/ export var OperationItem = function OperationItem(props) {
|
|
817
1203
|
"use strict";
|
|
818
1204
|
_classCallCheck(this, OperationItem);
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
1205
|
+
/**
|
|
1206
|
+
* 是否显示
|
|
1207
|
+
* @defaultValue true
|
|
1208
|
+
* @public
|
|
1209
|
+
*/ _defineProperty(this, "isShow", void 0);
|
|
1210
|
+
/**
|
|
1211
|
+
* 优先访问流程表单
|
|
1212
|
+
* @defaultValue false
|
|
1213
|
+
* @public
|
|
1214
|
+
*/ _defineProperty(this, "priorityProcess", void 0);
|
|
1215
|
+
/**
|
|
1216
|
+
* 表单ID
|
|
1217
|
+
* @defaultValue ''
|
|
1218
|
+
* @public
|
|
1219
|
+
*/ _defineProperty(this, "formKey", void 0);
|
|
1220
|
+
/**
|
|
1221
|
+
* 显示文字
|
|
1222
|
+
* @defaultValue ''
|
|
1223
|
+
* @public
|
|
1224
|
+
*/ _defineProperty(this, "content", void 0);
|
|
1225
|
+
/**
|
|
1226
|
+
* 打开方式
|
|
1227
|
+
* @defaultValue 'modal'
|
|
1228
|
+
* @public
|
|
1229
|
+
*/ _defineProperty(this, "openType", void 0);
|
|
1230
|
+
_defineProperty(this, "type", void 0);
|
|
1231
|
+
var _props_isShow;
|
|
1232
|
+
this.isShow = (_props_isShow = props === null || props === void 0 ? void 0 : props.isShow) !== null && _props_isShow !== void 0 ? _props_isShow : true;
|
|
1233
|
+
var _props_content;
|
|
1234
|
+
this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "";
|
|
1235
|
+
var _props_formKey;
|
|
1236
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
1237
|
+
var _props_openType;
|
|
1238
|
+
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : "modal";
|
|
1239
|
+
var _props_type;
|
|
1240
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "";
|
|
1241
|
+
var _props_priorityProcess;
|
|
1242
|
+
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : false;
|
|
831
1243
|
};
|
|
832
1244
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
833
1245
|
"use strict";
|
|
834
1246
|
_classCallCheck(this, ViewOperationItem);
|
|
835
|
-
var
|
|
836
|
-
|
|
837
|
-
this
|
|
838
|
-
|
|
839
|
-
this
|
|
840
|
-
|
|
841
|
-
|
|
1247
|
+
var _props_headers;
|
|
1248
|
+
_defineProperty(this, "id", void 0);
|
|
1249
|
+
_defineProperty(this, "title", void 0);
|
|
1250
|
+
_defineProperty(this, "filters", void 0);
|
|
1251
|
+
_defineProperty(this, "viewFilters", void 0);
|
|
1252
|
+
_defineProperty(this, "headers", void 0);
|
|
1253
|
+
var _props_id;
|
|
1254
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
1255
|
+
var _props_title;
|
|
1256
|
+
this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
1257
|
+
var _props_headers_map;
|
|
1258
|
+
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) {
|
|
842
1259
|
return new ListBindHeaderItem(item);
|
|
843
|
-
})) !== null &&
|
|
1260
|
+
})) !== null && _props_headers_map !== void 0 ? _props_headers_map : [];
|
|
844
1261
|
callFiltersAndOrders.call(this, props);
|
|
845
1262
|
};
|
|
846
1263
|
/**
|
|
@@ -848,28 +1265,48 @@ export var ViewOperationItem = function ViewOperationItem(props) {
|
|
|
848
1265
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
849
1266
|
"use strict";
|
|
850
1267
|
_classCallCheck(this, CustomPermissionItem);
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
1268
|
+
/**
|
|
1269
|
+
* 人工输入的权限key
|
|
1270
|
+
*/ _defineProperty(this, "key", void 0);
|
|
1271
|
+
/**
|
|
1272
|
+
* 权限名称
|
|
1273
|
+
*/ _defineProperty(this, "caption", void 0);
|
|
1274
|
+
var _props_key;
|
|
1275
|
+
this.key = (_props_key = props.key) !== null && _props_key !== void 0 ? _props_key : genNonDuplicateId(8);
|
|
1276
|
+
var _props_caption;
|
|
1277
|
+
this.caption = (_props_caption = props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
|
|
855
1278
|
};
|
|
856
1279
|
export var BaseStyle = function BaseStyle(props) {
|
|
857
1280
|
"use strict";
|
|
858
1281
|
_classCallCheck(this, BaseStyle);
|
|
859
|
-
|
|
860
|
-
this
|
|
861
|
-
|
|
862
|
-
this
|
|
863
|
-
var
|
|
864
|
-
this.
|
|
865
|
-
var
|
|
866
|
-
this.
|
|
1282
|
+
_defineProperty(this, "width", void 0);
|
|
1283
|
+
_defineProperty(this, "height", void 0);
|
|
1284
|
+
_defineProperty(this, "widthConfig", void 0);
|
|
1285
|
+
_defineProperty(this, "heightConfig", void 0);
|
|
1286
|
+
var _props_width;
|
|
1287
|
+
this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : "";
|
|
1288
|
+
var _props_height;
|
|
1289
|
+
this.height = (_props_height = props === null || props === void 0 ? void 0 : props.height) !== null && _props_height !== void 0 ? _props_height : "";
|
|
1290
|
+
var _props_widthConfig;
|
|
1291
|
+
this.widthConfig = (_props_widthConfig = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && _props_widthConfig !== void 0 ? _props_widthConfig : "fill";
|
|
1292
|
+
var _props_heightConfig;
|
|
1293
|
+
this.heightConfig = (_props_heightConfig = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && _props_heightConfig !== void 0 ? _props_heightConfig : "fill";
|
|
867
1294
|
};
|
|
868
1295
|
export var OptObject = function OptObject(props) {
|
|
869
1296
|
"use strict";
|
|
870
1297
|
_classCallCheck(this, OptObject);
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
1298
|
+
/**
|
|
1299
|
+
* 操作项编码
|
|
1300
|
+
* @defaultValue ''
|
|
1301
|
+
* @public
|
|
1302
|
+
*/ _defineProperty(this, "optCode", void 0);
|
|
1303
|
+
/**
|
|
1304
|
+
* 操作项类型
|
|
1305
|
+
* @defaultValue ''
|
|
1306
|
+
* @public
|
|
1307
|
+
*/ _defineProperty(this, "optType", void 0);
|
|
1308
|
+
var _props_optCode;
|
|
1309
|
+
this.optCode = (_props_optCode = props === null || props === void 0 ? void 0 : props.optCode) !== null && _props_optCode !== void 0 ? _props_optCode : "";
|
|
1310
|
+
var _props_optType;
|
|
1311
|
+
this.optType = (_props_optType = props === null || props === void 0 ? void 0 : props.optType) !== null && _props_optType !== void 0 ? _props_optType : "";
|
|
875
1312
|
};
|