@byteluck-fe/model-driven-core 2.3.13 → 2.3.20
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 +241 -121
- package/dist/esm/common/BaseControl/index.js +7 -7
- package/dist/esm/common/BaseControl/property.js +77 -60
- package/dist/esm/common/BaseControl/runtime.js +45 -24
- package/dist/esm/common/ColumnControl/designer.js +41 -27
- package/dist/esm/common/ColumnControl/index.js +6 -6
- package/dist/esm/common/ColumnControl/property.js +122 -74
- package/dist/esm/common/ColumnControl/runtime.js +41 -27
- package/dist/esm/common/ControlArray.js +21 -21
- package/dist/esm/common/FormControl/designer.js +47 -32
- package/dist/esm/common/FormControl/index.js +6 -6
- package/dist/esm/common/FormControl/property.js +181 -116
- package/dist/esm/common/FormControl/runtime.js +42 -27
- package/dist/esm/common/LayoutControl/designer.js +205 -77
- package/dist/esm/common/LayoutControl/index.js +6 -6
- package/dist/esm/common/LayoutControl/property.js +25 -25
- package/dist/esm/common/LayoutControl/runtime.js +44 -29
- package/dist/esm/common/ListControl/designer.js +199 -74
- package/dist/esm/common/ListControl/index.js +6 -6
- package/dist/esm/common/ListControl/property.js +41 -27
- package/dist/esm/common/ListControl/runtime.js +47 -32
- package/dist/esm/common/SearchViewControl/designer.js +41 -27
- package/dist/esm/common/SearchViewControl/index.js +6 -6
- package/dist/esm/common/SearchViewControl/property.js +40 -26
- package/dist/esm/common/SearchViewControl/runtime.js +41 -27
- package/dist/esm/common/Validator.js +5 -5
- package/dist/esm/common/WrapControl/designer.js +41 -27
- package/dist/esm/common/WrapControl/index.js +6 -6
- package/dist/esm/common/WrapControl/property.js +25 -25
- package/dist/esm/common/WrapControl/runtime.js +41 -27
- 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 +31 -19
- package/dist/esm/framework/index.js +735 -360
- package/dist/esm/index.js +3 -3
- package/dist/index.umd.js +1 -1
- package/dist/types/common/Validator.d.ts +1 -1
- package/dist/types/common/controlHooksEmitter.d.ts +1 -1
- package/dist/types/type.d.ts +23 -23
- package/package.json +3 -3
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
2
|
if (self === void 0) {
|
|
3
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function _class_call_check(instance, Constructor) {
|
|
8
8
|
if (!(instance instanceof Constructor)) {
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
|
+
if (key in obj) {
|
|
14
|
+
Object.defineProperty(obj, key, {
|
|
15
|
+
value: value,
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
obj[key] = value;
|
|
22
|
+
}
|
|
23
|
+
return obj;
|
|
24
|
+
}
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
14
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
15
28
|
};
|
|
16
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
17
30
|
}
|
|
18
31
|
function _inherits(subClass, superClass) {
|
|
19
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -26,33 +39,33 @@ function _inherits(subClass, superClass) {
|
|
|
26
39
|
configurable: true
|
|
27
40
|
}
|
|
28
41
|
});
|
|
29
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(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
|
}
|
|
37
50
|
}
|
|
38
|
-
function
|
|
39
|
-
if (call && (
|
|
51
|
+
function _possible_constructor_return(self, call) {
|
|
52
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
40
53
|
return call;
|
|
41
54
|
}
|
|
42
|
-
return
|
|
55
|
+
return _assert_this_initialized(self);
|
|
43
56
|
}
|
|
44
|
-
function
|
|
45
|
-
|
|
57
|
+
function _set_prototype_of(o, p) {
|
|
58
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
46
59
|
o.__proto__ = p;
|
|
47
60
|
return o;
|
|
48
61
|
};
|
|
49
|
-
return
|
|
62
|
+
return _set_prototype_of(o, p);
|
|
50
63
|
}
|
|
51
|
-
|
|
64
|
+
function _type_of(obj) {
|
|
52
65
|
"@swc/helpers - typeof";
|
|
53
66
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
54
|
-
}
|
|
55
|
-
function
|
|
67
|
+
}
|
|
68
|
+
function _is_native_reflect_construct() {
|
|
56
69
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
57
70
|
if (Reflect.construct.sham) return false;
|
|
58
71
|
if (typeof Proxy === "function") return true;
|
|
@@ -63,62 +76,84 @@ function _isNativeReflectConstruct() {
|
|
|
63
76
|
return false;
|
|
64
77
|
}
|
|
65
78
|
}
|
|
66
|
-
function
|
|
67
|
-
var hasNativeReflectConstruct =
|
|
79
|
+
function _create_super(Derived) {
|
|
80
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
68
81
|
return function _createSuperInternal() {
|
|
69
|
-
var Super =
|
|
82
|
+
var Super = _get_prototype_of(Derived), result;
|
|
70
83
|
if (hasNativeReflectConstruct) {
|
|
71
|
-
var NewTarget =
|
|
84
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
72
85
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
73
86
|
} else {
|
|
74
87
|
result = Super.apply(this, arguments);
|
|
75
88
|
}
|
|
76
|
-
return
|
|
89
|
+
return _possible_constructor_return(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
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
99
|
+
_class_call_check(this, DataBind);
|
|
100
|
+
/**
|
|
101
|
+
* 数据模型编码
|
|
102
|
+
* @defaultValue ''
|
|
103
|
+
* @public
|
|
104
|
+
*/ _define_property(this, "dataCode", void 0);
|
|
105
|
+
/**
|
|
106
|
+
* 字段编码
|
|
107
|
+
* @defaultValue ''
|
|
108
|
+
* @public
|
|
109
|
+
*/ _define_property(this, "fieldCode", void 0);
|
|
110
|
+
/**
|
|
111
|
+
* 字段类型
|
|
112
|
+
* @defaultValue ''
|
|
113
|
+
* @public
|
|
114
|
+
*/ _define_property(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
|
-
|
|
97
|
-
|
|
98
|
-
this
|
|
124
|
+
_class_call_check(this, AutoWidth);
|
|
125
|
+
_define_property(this, "minWidth", void 0);
|
|
126
|
+
_define_property(this, "maxWidth", void 0);
|
|
127
|
+
_define_property(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";
|
|
105
136
|
_inherits(MetaWidth, AutoWidth);
|
|
106
|
-
var _super =
|
|
137
|
+
var _super = _create_super(MetaWidth);
|
|
107
138
|
function MetaWidth(props) {
|
|
108
|
-
|
|
139
|
+
_class_call_check(this, MetaWidth);
|
|
109
140
|
var _this;
|
|
110
141
|
_this = _super.call(this, props);
|
|
111
|
-
|
|
112
|
-
_this
|
|
113
|
-
var
|
|
114
|
-
_this.
|
|
142
|
+
_define_property(_assert_this_initialized(_this), "width", void 0);
|
|
143
|
+
_define_property(_assert_this_initialized(_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;
|
|
118
151
|
}(AutoWidth);
|
|
119
152
|
export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
120
153
|
"use strict";
|
|
121
|
-
|
|
154
|
+
_class_call_check(this, MetaAutoWidth);
|
|
155
|
+
_define_property(this, "pc", void 0);
|
|
156
|
+
_define_property(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,
|
|
@@ -127,148 +162,208 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
127
162
|
};
|
|
128
163
|
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
129
164
|
"use strict";
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
this
|
|
133
|
-
var
|
|
134
|
-
this.
|
|
165
|
+
_class_call_check(this, DataStorageDoc);
|
|
166
|
+
_define_property(this, "type", void 0);
|
|
167
|
+
_define_property(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
|
-
|
|
139
|
-
|
|
140
|
-
this
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
175
|
+
_class_call_check(this, FormBind);
|
|
176
|
+
_define_property(this, "dataCode", void 0);
|
|
177
|
+
_define_property(this, "formKey", void 0);
|
|
178
|
+
_define_property(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";
|
|
148
188
|
_inherits(FormSelectBind, FormBind);
|
|
149
|
-
var _super =
|
|
189
|
+
var _super = _create_super(FormSelectBind);
|
|
150
190
|
function FormSelectBind(props) {
|
|
151
|
-
|
|
191
|
+
_class_call_check(this, FormSelectBind);
|
|
152
192
|
var _this;
|
|
153
193
|
_this = _super.call(this, props);
|
|
154
|
-
|
|
155
|
-
|
|
194
|
+
_define_property(_assert_this_initialized(_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
|
-
|
|
163
|
-
|
|
164
|
-
|
|
206
|
+
_class_call_check(this, ListBindHeaderItem);
|
|
207
|
+
/**
|
|
208
|
+
* 字段
|
|
209
|
+
* @defaultValue ''
|
|
210
|
+
*/ _define_property(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
|
-
|
|
171
|
-
var
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
218
|
+
_class_call_check(this, ListBind);
|
|
219
|
+
var _props_headers;
|
|
220
|
+
/**
|
|
221
|
+
* 应用ID
|
|
222
|
+
* @public
|
|
223
|
+
*/ _define_property(this, "appId", void 0);
|
|
224
|
+
/**
|
|
225
|
+
* 表单ID
|
|
226
|
+
* @public
|
|
227
|
+
*/ _define_property(this, "formKey", void 0);
|
|
228
|
+
/**
|
|
229
|
+
* 显示字段
|
|
230
|
+
* @public
|
|
231
|
+
*/ _define_property(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
|
-
|
|
184
|
-
|
|
185
|
-
this
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
243
|
+
_class_call_check(this, FieldBindItem);
|
|
244
|
+
_define_property(this, "fieldName", void 0);
|
|
245
|
+
_define_property(this, "fieldCode", void 0);
|
|
246
|
+
_define_property(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";
|
|
193
256
|
_inherits(SubListItem, FormBind);
|
|
194
|
-
var _super =
|
|
257
|
+
var _super = _create_super(SubListItem);
|
|
195
258
|
function SubListItem(props) {
|
|
196
|
-
|
|
259
|
+
_class_call_check(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
|
+
_define_property(_assert_this_initialized(_this), "title", void 0);
|
|
263
|
+
_define_property(_assert_this_initialized(_this), "svcCode", void 0);
|
|
264
|
+
_define_property(_assert_this_initialized(_this), "isOpenFilter", void 0);
|
|
265
|
+
_define_property(_assert_this_initialized(_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;
|
|
210
277
|
}(FormBind);
|
|
211
278
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
212
279
|
"use strict";
|
|
213
|
-
|
|
214
|
-
var
|
|
215
|
-
this
|
|
280
|
+
_class_call_check(this, SubListPageConfig);
|
|
281
|
+
var _props_displayFields, _props_sublists;
|
|
282
|
+
_define_property(this, "type", "sublist-page");
|
|
283
|
+
_define_property(this, "formBind", void 0);
|
|
284
|
+
_define_property(this, "displayFields", void 0);
|
|
285
|
+
_define_property(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
|
+
_class_call_check(this, LeftVariable);
|
|
299
|
+
_define_property(this, "type", void 0);
|
|
300
|
+
_define_property(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
|
-
|
|
235
|
-
|
|
236
|
-
this
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
306
|
+
_class_call_check(this, RightVariable);
|
|
307
|
+
_define_property(this, "type", void 0);
|
|
308
|
+
_define_property(this, "value", void 0);
|
|
309
|
+
_define_property(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";
|
|
247
|
-
|
|
322
|
+
var _this = this;
|
|
323
|
+
_class_call_check(this, FieldFilterConditions);
|
|
324
|
+
/**
|
|
325
|
+
* 编号
|
|
326
|
+
* @defaultValue ''
|
|
327
|
+
*/ _define_property(this, "id", void 0);
|
|
328
|
+
/**
|
|
329
|
+
* 规则编号
|
|
330
|
+
* @defaultValue Timestamp
|
|
331
|
+
*/ _define_property(this, "ruleId", void 0);
|
|
248
332
|
/**
|
|
249
333
|
* 类型:连接符条件
|
|
250
334
|
* @defaultValue 'conditions'
|
|
251
|
-
*/ this
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
335
|
+
*/ _define_property(this, "type", "conditions");
|
|
336
|
+
/**
|
|
337
|
+
* 深度
|
|
338
|
+
* @defaultValue 0
|
|
339
|
+
*/ _define_property(this, "level", void 0);
|
|
340
|
+
/**
|
|
341
|
+
* 连接符值
|
|
342
|
+
* @defaultValue 'and'
|
|
343
|
+
*/ _define_property(this, "value", void 0);
|
|
344
|
+
/**
|
|
345
|
+
* 包含子项
|
|
346
|
+
* @defaultValue []
|
|
347
|
+
*/ _define_property(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
|
}
|
|
@@ -278,21 +373,40 @@ export var RightVariable = function RightVariable(props) {
|
|
|
278
373
|
* @public
|
|
279
374
|
*/ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
280
375
|
"use strict";
|
|
281
|
-
|
|
376
|
+
_class_call_check(this, FieldFilterCondition);
|
|
377
|
+
/**
|
|
378
|
+
* 唯一编号
|
|
379
|
+
* @defaultValue ''
|
|
380
|
+
*/ _define_property(this, "id", void 0);
|
|
381
|
+
/**
|
|
382
|
+
* 规则编号
|
|
383
|
+
* @defaultValue Timestamp
|
|
384
|
+
*/ _define_property(this, "ruleId", void 0);
|
|
282
385
|
/**
|
|
283
386
|
* 类型
|
|
284
387
|
* @defaultValue 'condition'
|
|
285
|
-
*/ this
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
this
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
388
|
+
*/ _define_property(this, "type", "condition");
|
|
389
|
+
/**
|
|
390
|
+
* 符号
|
|
391
|
+
*/ _define_property(this, "symbol", void 0);
|
|
392
|
+
_define_property(this, "checked", void 0);
|
|
393
|
+
_define_property(this, "describe", void 0);
|
|
394
|
+
/**
|
|
395
|
+
* 左值
|
|
396
|
+
*/ _define_property(this, "leftVariableBo", void 0);
|
|
397
|
+
/**
|
|
398
|
+
* 右值
|
|
399
|
+
*/ _define_property(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
|
};
|
|
@@ -301,26 +415,57 @@ export var RightVariable = function RightVariable(props) {
|
|
|
301
415
|
* @public
|
|
302
416
|
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
303
417
|
"use strict";
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
418
|
+
_class_call_check(this, MultistageFillingItem);
|
|
419
|
+
/**
|
|
420
|
+
* 控件ID
|
|
421
|
+
* @defaultValue ''
|
|
422
|
+
* @public
|
|
423
|
+
*/ _define_property(this, "controlId", void 0);
|
|
424
|
+
/**
|
|
425
|
+
* 字段
|
|
426
|
+
* @defaultValue ''
|
|
427
|
+
* @public
|
|
428
|
+
*/ _define_property(this, "fieldCode", void 0);
|
|
429
|
+
/**
|
|
430
|
+
* 字段类型。事件在填充时,需要根据数据类型进行判断处理动作。
|
|
431
|
+
* @defaultValue ''
|
|
432
|
+
* @public
|
|
433
|
+
*/ _define_property(this, "fieldType", void 0);
|
|
434
|
+
/**
|
|
435
|
+
* 属性名称。如果是ObjectDataBind的控件,可以指定填充到哪个数据项。
|
|
436
|
+
* @defaultValue ''
|
|
437
|
+
* @public
|
|
438
|
+
* */ _define_property(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
|
* 显示项
|
|
316
450
|
* @public
|
|
317
451
|
*/ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
318
452
|
"use strict";
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
453
|
+
_class_call_check(this, DisplayBoListItem);
|
|
454
|
+
/**
|
|
455
|
+
* 显示项类型:字段 | 符号
|
|
456
|
+
* @defaultValue 'FIELD'
|
|
457
|
+
* @public
|
|
458
|
+
*/ _define_property(this, "type", void 0);
|
|
459
|
+
/**
|
|
460
|
+
* 值
|
|
461
|
+
*/ _define_property(this, "value", void 0);
|
|
462
|
+
/**
|
|
463
|
+
* 字段数据类型
|
|
464
|
+
*/ _define_property(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
|
/**
|
|
@@ -328,59 +473,80 @@ export var RightVariable = function RightVariable(props) {
|
|
|
328
473
|
* @public
|
|
329
474
|
*/ export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
330
475
|
"use strict";
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
476
|
+
_class_call_check(this, DataSourceOrderItem);
|
|
477
|
+
/**
|
|
478
|
+
* 列名
|
|
479
|
+
* @defaultValue ''
|
|
480
|
+
*/ _define_property(this, "columnName", void 0);
|
|
481
|
+
/**
|
|
482
|
+
* 倒序
|
|
483
|
+
* @defaultValue false
|
|
484
|
+
*/ _define_property(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
|
-
|
|
340
|
-
|
|
341
|
-
this
|
|
342
|
-
|
|
343
|
-
this
|
|
344
|
-
|
|
345
|
-
this
|
|
492
|
+
_class_call_check(this, DataSourceDataSetValue);
|
|
493
|
+
// fieldCode
|
|
494
|
+
_define_property(this, "code", void 0);
|
|
495
|
+
// 值
|
|
496
|
+
_define_property(this, "value", void 0);
|
|
497
|
+
// 数据类型
|
|
498
|
+
_define_property(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
|
-
|
|
350
|
-
var
|
|
351
|
-
|
|
508
|
+
_class_call_check(this, DataSourceParamItem);
|
|
509
|
+
var _props_orders, _props_dataSet;
|
|
510
|
+
/**
|
|
511
|
+
* 字段ID
|
|
512
|
+
*/ _define_property(this, "id", void 0);
|
|
513
|
+
_define_property(this, "limit", void 0);
|
|
514
|
+
_define_property(this, "orders", void 0);
|
|
515
|
+
_define_property(this, "formKey", void 0);
|
|
516
|
+
_define_property(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,53 +554,98 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
388
554
|
* @public
|
|
389
555
|
*/ export var DataSourceBind = function DataSourceBind(props) {
|
|
390
556
|
"use strict";
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
557
|
+
var _this = this;
|
|
558
|
+
_class_call_check(this, DataSourceBind);
|
|
559
|
+
/**
|
|
560
|
+
* 绑定数据源id
|
|
561
|
+
* @defaultValue ''
|
|
562
|
+
* @public
|
|
563
|
+
*/ _define_property(this, "dataCode", void 0);
|
|
564
|
+
/**
|
|
565
|
+
* 存储值
|
|
566
|
+
* @defaultValue ''
|
|
567
|
+
* @public
|
|
568
|
+
*/ _define_property(this, "valueFieldCode", void 0);
|
|
569
|
+
/**
|
|
570
|
+
* 显示值
|
|
571
|
+
* @defaultValue []
|
|
572
|
+
* @public
|
|
573
|
+
*/ _define_property(this, "displayBoList", void 0);
|
|
574
|
+
/**
|
|
575
|
+
* 绑定服务
|
|
576
|
+
* @defaultValue ''
|
|
577
|
+
* @public
|
|
578
|
+
*/ _define_property(this, "svcCode", void 0);
|
|
579
|
+
/**
|
|
580
|
+
* 应用Id
|
|
581
|
+
* @defaultValue ''
|
|
582
|
+
* @public
|
|
583
|
+
*/ _define_property(this, "appId", void 0);
|
|
584
|
+
/**
|
|
585
|
+
* 过滤条件
|
|
586
|
+
* @defaultValue []
|
|
587
|
+
* @public
|
|
588
|
+
*/ _define_property(this, "filters", void 0);
|
|
589
|
+
// 过滤
|
|
590
|
+
/**
|
|
591
|
+
* 排序
|
|
592
|
+
* @defaultValue []
|
|
593
|
+
* @public
|
|
594
|
+
*/ _define_property(this, "orders", void 0);
|
|
595
|
+
/**
|
|
596
|
+
* 显示排序
|
|
597
|
+
* @defaultValue true
|
|
598
|
+
* @public
|
|
599
|
+
*/ _define_property(this, "showOrder", void 0);
|
|
600
|
+
var _props_dataCode;
|
|
601
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
602
|
+
var _props_appId;
|
|
603
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
604
|
+
var _props_valueFieldCode;
|
|
605
|
+
this.valueFieldCode = (_props_valueFieldCode = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && _props_valueFieldCode !== void 0 ? _props_valueFieldCode : "";
|
|
398
606
|
this.displayBoList = [];
|
|
399
607
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
400
|
-
var _this = this;
|
|
401
608
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
402
|
-
var
|
|
403
|
-
(
|
|
609
|
+
var _this_displayBoList;
|
|
610
|
+
(_this_displayBoList = _this.displayBoList) === null || _this_displayBoList === void 0 ? void 0 : _this_displayBoList.push(new DisplayBoListItem(item));
|
|
404
611
|
});
|
|
405
612
|
}
|
|
406
|
-
var
|
|
407
|
-
this.showOrder = (
|
|
408
|
-
var
|
|
409
|
-
this.svcCode = (
|
|
613
|
+
var _props_showOrder;
|
|
614
|
+
this.showOrder = (_props_showOrder = props === null || props === void 0 ? void 0 : props.showOrder) !== null && _props_showOrder !== void 0 ? _props_showOrder : true;
|
|
615
|
+
var _props_svcCode;
|
|
616
|
+
this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : "";
|
|
410
617
|
callFiltersAndOrders.call(this, props);
|
|
411
618
|
};
|
|
412
619
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
413
620
|
"use strict";
|
|
414
|
-
|
|
415
|
-
var
|
|
416
|
-
|
|
417
|
-
this
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
621
|
+
_class_call_check(this, CustomAttributeItem);
|
|
622
|
+
var _props_value;
|
|
623
|
+
_define_property(this, "name", void 0);
|
|
624
|
+
_define_property(this, "key", void 0);
|
|
625
|
+
_define_property(this, "value", void 0);
|
|
626
|
+
var _props_name;
|
|
627
|
+
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : "";
|
|
628
|
+
var _props_key;
|
|
629
|
+
this.key = (_props_key = props === null || props === void 0 ? void 0 : props.key) !== null && _props_key !== void 0 ? _props_key : "";
|
|
630
|
+
var _props_value_map;
|
|
631
|
+
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) {
|
|
422
632
|
return new DisplayBoListItem(item);
|
|
423
|
-
})) !== null &&
|
|
633
|
+
})) !== null && _props_value_map !== void 0 ? _props_value_map : [];
|
|
424
634
|
};
|
|
425
635
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
426
636
|
"use strict";
|
|
427
637
|
_inherits(SuperDataSourceBind, DataSourceBind);
|
|
428
|
-
var _super =
|
|
638
|
+
var _super = _create_super(SuperDataSourceBind);
|
|
429
639
|
function SuperDataSourceBind(props) {
|
|
430
|
-
|
|
640
|
+
_class_call_check(this, SuperDataSourceBind);
|
|
431
641
|
var _this;
|
|
432
|
-
var
|
|
642
|
+
var _props_attributes;
|
|
433
643
|
_this = _super.call(this, props);
|
|
434
|
-
|
|
435
|
-
|
|
644
|
+
_define_property(_assert_this_initialized(_this), "attributes", void 0);
|
|
645
|
+
var _props_attributes_map;
|
|
646
|
+
_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) {
|
|
436
647
|
return new CustomAttributeItem(item);
|
|
437
|
-
})) !== null &&
|
|
648
|
+
})) !== null && _props_attributes_map !== void 0 ? _props_attributes_map : [];
|
|
438
649
|
return _this;
|
|
439
650
|
}
|
|
440
651
|
return SuperDataSourceBind;
|
|
@@ -442,11 +653,12 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
442
653
|
export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
443
654
|
"use strict";
|
|
444
655
|
_inherits(TreeDataSourceBind, SuperDataSourceBind);
|
|
445
|
-
var _super =
|
|
656
|
+
var _super = _create_super(TreeDataSourceBind);
|
|
446
657
|
function TreeDataSourceBind(props) {
|
|
447
|
-
|
|
658
|
+
_class_call_check(this, TreeDataSourceBind);
|
|
448
659
|
var _this;
|
|
449
660
|
_this = _super.call(this, props);
|
|
661
|
+
_define_property(_assert_this_initialized(_this), "rootNode", void 0);
|
|
450
662
|
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
451
663
|
return _this;
|
|
452
664
|
}
|
|
@@ -454,16 +666,25 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
454
666
|
}(SuperDataSourceBind);
|
|
455
667
|
var FillBind = function FillBind(props) {
|
|
456
668
|
"use strict";
|
|
457
|
-
|
|
458
|
-
var
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
669
|
+
_class_call_check(this, FillBind);
|
|
670
|
+
var _props_fillList;
|
|
671
|
+
/*
|
|
672
|
+
* 需要被填充的数据源
|
|
673
|
+
* */ _define_property(this, "dataCode", void 0);
|
|
674
|
+
/*
|
|
675
|
+
* appId
|
|
676
|
+
* */ _define_property(this, "appId", void 0);
|
|
677
|
+
/*
|
|
678
|
+
* 执行填充的数据项和控件
|
|
679
|
+
* */ _define_property(this, "fillList", void 0);
|
|
680
|
+
var _props_dataCode;
|
|
681
|
+
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : "";
|
|
682
|
+
var _props_appId;
|
|
683
|
+
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : "";
|
|
684
|
+
var _props_fillList_map;
|
|
685
|
+
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) {
|
|
465
686
|
return new MultistageFillingItem(item);
|
|
466
|
-
})) !== null &&
|
|
687
|
+
})) !== null && _props_fillList_map !== void 0 ? _props_fillList_map : [];
|
|
467
688
|
};
|
|
468
689
|
/**
|
|
469
690
|
* FillPayloadBind 填充配置
|
|
@@ -472,12 +693,22 @@ var FillBind = function FillBind(props) {
|
|
|
472
693
|
* */ export var FillPayloadBind = /*#__PURE__*/ function(FillBind) {
|
|
473
694
|
"use strict";
|
|
474
695
|
_inherits(FillPayloadBind, FillBind);
|
|
475
|
-
var _super =
|
|
696
|
+
var _super = _create_super(FillPayloadBind);
|
|
476
697
|
function FillPayloadBind(props) {
|
|
477
|
-
|
|
698
|
+
_class_call_check(this, FillPayloadBind);
|
|
478
699
|
var _this;
|
|
479
700
|
_this = _super.call(this, props);
|
|
480
|
-
|
|
701
|
+
/**
|
|
702
|
+
* 数据源过滤条件
|
|
703
|
+
* @defaultValue []
|
|
704
|
+
* @public
|
|
705
|
+
**/ _define_property(_assert_this_initialized(_this), "filters", void 0);
|
|
706
|
+
/**
|
|
707
|
+
* 数据源排序条件
|
|
708
|
+
* @defaultValue []
|
|
709
|
+
* @public
|
|
710
|
+
**/ _define_property(_assert_this_initialized(_this), "orders", void 0);
|
|
711
|
+
callFiltersAndOrders.call(_assert_this_initialized(_this), props);
|
|
481
712
|
return _this;
|
|
482
713
|
}
|
|
483
714
|
return FillPayloadBind;
|
|
@@ -488,89 +719,127 @@ var FillBind = function FillBind(props) {
|
|
|
488
719
|
*/ export var FillBackBind = /*#__PURE__*/ function(FillBind) {
|
|
489
720
|
"use strict";
|
|
490
721
|
_inherits(FillBackBind, FillBind);
|
|
491
|
-
var _super =
|
|
722
|
+
var _super = _create_super(FillBackBind);
|
|
492
723
|
function FillBackBind(props) {
|
|
493
|
-
|
|
724
|
+
_class_call_check(this, FillBackBind);
|
|
494
725
|
var _this;
|
|
495
726
|
_this = _super.call(this, props);
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
727
|
+
/**
|
|
728
|
+
* 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
|
|
729
|
+
* @defaultValue 'current'
|
|
730
|
+
* @public
|
|
731
|
+
* */ _define_property(_assert_this_initialized(_this), "mode", void 0);
|
|
732
|
+
/**
|
|
733
|
+
* 多选
|
|
734
|
+
* @defaultValue false
|
|
735
|
+
* @public
|
|
736
|
+
*/ _define_property(_assert_this_initialized(_this), "multiple", void 0);
|
|
737
|
+
var _props_mode;
|
|
738
|
+
_this.mode = (_props_mode = props === null || props === void 0 ? void 0 : props.mode) !== null && _props_mode !== void 0 ? _props_mode : "current";
|
|
739
|
+
var _props_multiple;
|
|
740
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
500
741
|
return _this;
|
|
501
742
|
}
|
|
502
743
|
return FillBackBind;
|
|
503
744
|
}(FillBind);
|
|
504
745
|
export var Language = function Language(props) {
|
|
505
746
|
"use strict";
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
this
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
747
|
+
_class_call_check(this, Language);
|
|
748
|
+
_define_property(this, "zh", void 0);
|
|
749
|
+
_define_property(this, "en", void 0);
|
|
750
|
+
_define_property(this, "ja", void 0);
|
|
751
|
+
var _props_zh;
|
|
752
|
+
this.zh = (_props_zh = props === null || props === void 0 ? void 0 : props.zh) !== null && _props_zh !== void 0 ? _props_zh : "";
|
|
753
|
+
var _props_en;
|
|
754
|
+
this.en = (_props_en = props === null || props === void 0 ? void 0 : props.en) !== null && _props_en !== void 0 ? _props_en : "";
|
|
755
|
+
var _props_ja;
|
|
756
|
+
this.ja = (_props_ja = props === null || props === void 0 ? void 0 : props.ja) !== null && _props_ja !== void 0 ? _props_ja : "";
|
|
513
757
|
};
|
|
514
758
|
/**
|
|
515
759
|
* 正则校验
|
|
516
760
|
* @public
|
|
517
761
|
*/ export var RegularRules = function RegularRules(props) {
|
|
518
762
|
"use strict";
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
763
|
+
_class_call_check(this, RegularRules);
|
|
764
|
+
/**
|
|
765
|
+
* 内置模版
|
|
766
|
+
* @defaultValue ''
|
|
767
|
+
*/ _define_property(this, "stencilName", void 0);
|
|
768
|
+
/**
|
|
769
|
+
* 正则表达式
|
|
770
|
+
* @defaultValue ''
|
|
771
|
+
*/ _define_property(this, "expression", void 0);
|
|
772
|
+
/**
|
|
773
|
+
* 校验错误提示信息
|
|
774
|
+
* @defaultValue ''
|
|
775
|
+
*/ _define_property(this, "errMessage", void 0);
|
|
776
|
+
var _props_stencilName;
|
|
777
|
+
this.stencilName = (_props_stencilName = props === null || props === void 0 ? void 0 : props.stencilName) !== null && _props_stencilName !== void 0 ? _props_stencilName : "";
|
|
778
|
+
var _props_expression;
|
|
779
|
+
this.expression = (_props_expression = props === null || props === void 0 ? void 0 : props.expression) !== null && _props_expression !== void 0 ? _props_expression : "";
|
|
780
|
+
var _props_errMessage;
|
|
781
|
+
this.errMessage = (_props_errMessage = props === null || props === void 0 ? void 0 : props.errMessage) !== null && _props_errMessage !== void 0 ? _props_errMessage : "";
|
|
526
782
|
};
|
|
527
783
|
/**
|
|
528
784
|
* 选项设置-自定义选项
|
|
529
785
|
* @public
|
|
530
786
|
*/ export var OptionSetting = function OptionSetting(props) {
|
|
531
787
|
"use strict";
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
788
|
+
_class_call_check(this, OptionSetting);
|
|
789
|
+
_define_property(this, "id", void 0);
|
|
790
|
+
/**
|
|
791
|
+
* 显示值
|
|
792
|
+
* @defaultValue ''
|
|
793
|
+
* @public
|
|
794
|
+
*/ _define_property(this, "label", void 0);
|
|
795
|
+
/**
|
|
796
|
+
* 选项ID
|
|
797
|
+
* @defaultValue this.label
|
|
798
|
+
* @public
|
|
799
|
+
*/ _define_property(this, "value", void 0);
|
|
800
|
+
var _props_id;
|
|
801
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
802
|
+
var _props_label;
|
|
803
|
+
this.label = (_props_label = props === null || props === void 0 ? void 0 : props.label) !== null && _props_label !== void 0 ? _props_label : "";
|
|
804
|
+
var _props_value;
|
|
805
|
+
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : this.label;
|
|
539
806
|
};
|
|
540
807
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
541
808
|
"use strict";
|
|
542
809
|
_inherits(ImageOptionSetting, OptionSetting);
|
|
543
|
-
var _super =
|
|
810
|
+
var _super = _create_super(ImageOptionSetting);
|
|
544
811
|
function ImageOptionSetting(props) {
|
|
545
|
-
|
|
812
|
+
_class_call_check(this, ImageOptionSetting);
|
|
546
813
|
var _this;
|
|
547
814
|
_this = _super.call(this, props);
|
|
548
|
-
|
|
549
|
-
_this
|
|
550
|
-
var
|
|
551
|
-
_this.
|
|
815
|
+
_define_property(_assert_this_initialized(_this), "image", void 0);
|
|
816
|
+
_define_property(_assert_this_initialized(_this), "type", void 0);
|
|
817
|
+
var _props_image;
|
|
818
|
+
_this.image = (_props_image = props === null || props === void 0 ? void 0 : props.image) !== null && _props_image !== void 0 ? _props_image : "";
|
|
819
|
+
var _props_type;
|
|
820
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "src";
|
|
552
821
|
return _this;
|
|
553
822
|
}
|
|
554
823
|
return ImageOptionSetting;
|
|
555
824
|
}(OptionSetting);
|
|
556
825
|
export function initOptions(options) {
|
|
557
|
-
var
|
|
558
|
-
return (
|
|
826
|
+
var _options_map;
|
|
827
|
+
return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
559
828
|
return new OptionSetting(item);
|
|
560
|
-
})) !== null &&
|
|
829
|
+
})) !== null && _options_map !== void 0 ? _options_map : [];
|
|
561
830
|
}
|
|
562
831
|
export function initImageOptions(options) {
|
|
563
|
-
var
|
|
564
|
-
return (
|
|
832
|
+
var _options_map;
|
|
833
|
+
return (_options_map = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
565
834
|
return new ImageOptionSetting(item);
|
|
566
|
-
})) !== null &&
|
|
835
|
+
})) !== null && _options_map !== void 0 ? _options_map : [];
|
|
567
836
|
}
|
|
568
837
|
/**
|
|
569
838
|
* 对象类型数据绑定配置
|
|
570
839
|
* @public
|
|
571
840
|
*/ export var ObjectDataBind = function ObjectDataBind() {
|
|
572
841
|
"use strict";
|
|
573
|
-
|
|
842
|
+
_class_call_check(this, ObjectDataBind);
|
|
574
843
|
};
|
|
575
844
|
/**
|
|
576
845
|
* 金额控件数据绑定配置
|
|
@@ -578,11 +847,17 @@ export function initImageOptions(options) {
|
|
|
578
847
|
*/ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
579
848
|
"use strict";
|
|
580
849
|
_inherits(AmountDataBind, ObjectDataBind);
|
|
581
|
-
var _super =
|
|
850
|
+
var _super = _create_super(AmountDataBind);
|
|
582
851
|
function AmountDataBind(props) {
|
|
583
|
-
|
|
852
|
+
_class_call_check(this, AmountDataBind);
|
|
584
853
|
var _this;
|
|
585
854
|
_this = _super.call(this);
|
|
855
|
+
/**
|
|
856
|
+
* 金额字段绑定配置
|
|
857
|
+
*/ _define_property(_assert_this_initialized(_this), "amount", void 0);
|
|
858
|
+
/**
|
|
859
|
+
* 币种字段绑定配置
|
|
860
|
+
*/ _define_property(_assert_this_initialized(_this), "currency", void 0);
|
|
586
861
|
_this.amount = new DataBind(props === null || props === void 0 ? void 0 : props.amount);
|
|
587
862
|
_this.currency = new DataBind(props === null || props === void 0 ? void 0 : props.currency);
|
|
588
863
|
return _this;
|
|
@@ -594,11 +869,19 @@ export function initImageOptions(options) {
|
|
|
594
869
|
* @public
|
|
595
870
|
*/ export var AmountValue = function AmountValue(props) {
|
|
596
871
|
"use strict";
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
872
|
+
_class_call_check(this, AmountValue);
|
|
873
|
+
/**
|
|
874
|
+
* 金额值
|
|
875
|
+
* @defaultValue ''
|
|
876
|
+
*/ _define_property(this, "amount", void 0);
|
|
877
|
+
/**
|
|
878
|
+
* 货币值
|
|
879
|
+
* @defaultValue 'CNY'
|
|
880
|
+
*/ _define_property(this, "currency", void 0);
|
|
881
|
+
var _props_amount;
|
|
882
|
+
this.amount = (_props_amount = props === null || props === void 0 ? void 0 : props.amount) !== null && _props_amount !== void 0 ? _props_amount : "";
|
|
883
|
+
var _props_currency;
|
|
884
|
+
this.currency = (_props_currency = props === null || props === void 0 ? void 0 : props.currency) !== null && _props_currency !== void 0 ? _props_currency : AMOUNT_TYPE.CNY;
|
|
602
885
|
};
|
|
603
886
|
/**
|
|
604
887
|
* 日期区间数据绑定项
|
|
@@ -606,11 +889,17 @@ export function initImageOptions(options) {
|
|
|
606
889
|
*/ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
607
890
|
"use strict";
|
|
608
891
|
_inherits(RangeDataBind, ObjectDataBind);
|
|
609
|
-
var _super =
|
|
892
|
+
var _super = _create_super(RangeDataBind);
|
|
610
893
|
function RangeDataBind(props) {
|
|
611
|
-
|
|
894
|
+
_class_call_check(this, RangeDataBind);
|
|
612
895
|
var _this;
|
|
613
896
|
_this = _super.call(this);
|
|
897
|
+
/**
|
|
898
|
+
* 开始日期字段绑定项
|
|
899
|
+
*/ _define_property(_assert_this_initialized(_this), "min", void 0);
|
|
900
|
+
/**
|
|
901
|
+
* 结束日期字段绑定项
|
|
902
|
+
*/ _define_property(_assert_this_initialized(_this), "max", void 0);
|
|
614
903
|
_this.min = new DataBind(props === null || props === void 0 ? void 0 : props.min);
|
|
615
904
|
_this.max = new DataBind(props === null || props === void 0 ? void 0 : props.max);
|
|
616
905
|
return _this;
|
|
@@ -622,30 +911,62 @@ export function initImageOptions(options) {
|
|
|
622
911
|
* @public
|
|
623
912
|
*/ export var RangeDateValue = function RangeDateValue(props) {
|
|
624
913
|
"use strict";
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
914
|
+
_class_call_check(this, RangeDateValue);
|
|
915
|
+
/**
|
|
916
|
+
* 开始日期值
|
|
917
|
+
* @defaultValue ''
|
|
918
|
+
*/ _define_property(this, "min", void 0);
|
|
919
|
+
/**
|
|
920
|
+
* 结束日期值
|
|
921
|
+
* @defaultValue ''
|
|
922
|
+
*/ _define_property(this, "max", void 0);
|
|
923
|
+
var _props_min;
|
|
924
|
+
this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : "";
|
|
925
|
+
var _props_max;
|
|
926
|
+
this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : "";
|
|
630
927
|
};
|
|
631
928
|
/**
|
|
632
929
|
* 地址值
|
|
633
930
|
* @public
|
|
634
931
|
*/ export var AddressValue = function AddressValue(props) {
|
|
635
932
|
"use strict";
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
933
|
+
_class_call_check(this, AddressValue);
|
|
934
|
+
/**
|
|
935
|
+
* 市编码
|
|
936
|
+
* @defaultValue ''
|
|
937
|
+
*/ _define_property(this, "city", void 0);
|
|
938
|
+
/**
|
|
939
|
+
* 市显示文字
|
|
940
|
+
* @defaultValue ''
|
|
941
|
+
*/ _define_property(this, "cityDisplay", void 0);
|
|
942
|
+
/**
|
|
943
|
+
* 区编码
|
|
944
|
+
* @defaultValue ''
|
|
945
|
+
*/ _define_property(this, "district", void 0);
|
|
946
|
+
/**
|
|
947
|
+
* 区显示文字
|
|
948
|
+
* @defaultValue ''
|
|
949
|
+
*/ _define_property(this, "districtDisplay", void 0);
|
|
950
|
+
/**
|
|
951
|
+
* 省编码
|
|
952
|
+
* @defaultValue ''
|
|
953
|
+
*/ _define_property(this, "province", void 0);
|
|
954
|
+
/**
|
|
955
|
+
* 省显示文字
|
|
956
|
+
* @defaultValue ''
|
|
957
|
+
*/ _define_property(this, "provinceDisplay", void 0);
|
|
958
|
+
var _props_city;
|
|
959
|
+
this.city = (_props_city = props === null || props === void 0 ? void 0 : props.city) !== null && _props_city !== void 0 ? _props_city : "";
|
|
960
|
+
var _props_cityDisplay;
|
|
961
|
+
this.cityDisplay = (_props_cityDisplay = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && _props_cityDisplay !== void 0 ? _props_cityDisplay : "";
|
|
962
|
+
var _props_district;
|
|
963
|
+
this.district = (_props_district = props === null || props === void 0 ? void 0 : props.district) !== null && _props_district !== void 0 ? _props_district : "";
|
|
964
|
+
var _props_districtDisplay;
|
|
965
|
+
this.districtDisplay = (_props_districtDisplay = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && _props_districtDisplay !== void 0 ? _props_districtDisplay : "";
|
|
966
|
+
var _props_province;
|
|
967
|
+
this.province = (_props_province = props === null || props === void 0 ? void 0 : props.province) !== null && _props_province !== void 0 ? _props_province : "";
|
|
968
|
+
var _props_provinceDisplay;
|
|
969
|
+
this.provinceDisplay = (_props_provinceDisplay = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && _props_provinceDisplay !== void 0 ? _props_provinceDisplay : "";
|
|
649
970
|
};
|
|
650
971
|
/**
|
|
651
972
|
* 计算公式数据绑定项
|
|
@@ -653,11 +974,17 @@ export function initImageOptions(options) {
|
|
|
653
974
|
*/ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
654
975
|
"use strict";
|
|
655
976
|
_inherits(CalcDataBind, ObjectDataBind);
|
|
656
|
-
var _super =
|
|
977
|
+
var _super = _create_super(CalcDataBind);
|
|
657
978
|
function CalcDataBind(props) {
|
|
658
|
-
|
|
979
|
+
_class_call_check(this, CalcDataBind);
|
|
659
980
|
var _this;
|
|
660
981
|
_this = _super.call(this);
|
|
982
|
+
/**
|
|
983
|
+
* 计算结果字段绑定项
|
|
984
|
+
*/ _define_property(_assert_this_initialized(_this), "result", void 0);
|
|
985
|
+
/**
|
|
986
|
+
* 单位字段绑定项
|
|
987
|
+
*/ _define_property(_assert_this_initialized(_this), "unit", void 0);
|
|
661
988
|
_this.result = new DataBind(props === null || props === void 0 ? void 0 : props.result);
|
|
662
989
|
_this.unit = new DataBind(props === null || props === void 0 ? void 0 : props.unit);
|
|
663
990
|
return _this;
|
|
@@ -669,11 +996,19 @@ export function initImageOptions(options) {
|
|
|
669
996
|
* @public
|
|
670
997
|
*/ export var CalcValue = function CalcValue(props) {
|
|
671
998
|
"use strict";
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
999
|
+
_class_call_check(this, CalcValue);
|
|
1000
|
+
/**
|
|
1001
|
+
* 计算结果值
|
|
1002
|
+
* @defaultValue 0
|
|
1003
|
+
*/ _define_property(this, "result", void 0);
|
|
1004
|
+
/**
|
|
1005
|
+
* 单位
|
|
1006
|
+
* @defaultValue ''
|
|
1007
|
+
*/ _define_property(this, "unit", void 0);
|
|
1008
|
+
var _props_result;
|
|
1009
|
+
this.result = (_props_result = props === null || props === void 0 ? void 0 : props.result) !== null && _props_result !== void 0 ? _props_result : 0;
|
|
1010
|
+
var _props_unit;
|
|
1011
|
+
this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : "";
|
|
677
1012
|
};
|
|
678
1013
|
export var AMOUNT_TYPE;
|
|
679
1014
|
(function(AMOUNT_TYPE) {
|
|
@@ -707,33 +1042,33 @@ export var AMOUNT_TYPE;
|
|
|
707
1042
|
})(AMOUNT_TYPE || (AMOUNT_TYPE = {}));
|
|
708
1043
|
export var COMMON_SETTING_TYPE;
|
|
709
1044
|
(function(COMMON_SETTING_TYPE) {
|
|
710
|
-
COMMON_SETTING_TYPE["REQUIRED"] =
|
|
711
|
-
COMMON_SETTING_TYPE["IS_HIDE"] =
|
|
712
|
-
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] =
|
|
713
|
-
COMMON_SETTING_TYPE["IMD_SEARCH"] =
|
|
714
|
-
COMMON_SETTING_TYPE["MULTIPLE"] =
|
|
715
|
-
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] =
|
|
716
|
-
COMMON_SETTING_TYPE["CAPTION"] =
|
|
717
|
-
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] =
|
|
718
|
-
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] =
|
|
719
|
-
COMMON_SETTING_TYPE["CAN_SEARCH"] =
|
|
720
|
-
COMMON_SETTING_TYPE["CAN_CHECK"] =
|
|
721
|
-
COMMON_SETTING_TYPE["CAN_EDIT"] =
|
|
722
|
-
COMMON_SETTING_TYPE["CAN_DELETE"] =
|
|
723
|
-
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] =
|
|
724
|
-
COMMON_SETTING_TYPE["MICROMETER"] =
|
|
725
|
-
COMMON_SETTING_TYPE["PRECISION"] =
|
|
726
|
-
COMMON_SETTING_TYPE["PERCENTAGE"] =
|
|
727
|
-
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] =
|
|
728
|
-
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] =
|
|
729
|
-
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] =
|
|
730
|
-
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] =
|
|
731
|
-
COMMON_SETTING_TYPE["SERVER_PAGINATION"] =
|
|
732
|
-
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] =
|
|
733
|
-
COMMON_SETTING_TYPE["ENCRYPTED"] =
|
|
734
|
-
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] =
|
|
735
|
-
COMMON_SETTING_TYPE["REVISIONS_MODE"] =
|
|
736
|
-
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] =
|
|
1045
|
+
COMMON_SETTING_TYPE["REQUIRED"] = "required";
|
|
1046
|
+
COMMON_SETTING_TYPE["IS_HIDE"] = "isHide";
|
|
1047
|
+
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] = "isShowUnit";
|
|
1048
|
+
COMMON_SETTING_TYPE["IMD_SEARCH"] = "immediatelySearch";
|
|
1049
|
+
COMMON_SETTING_TYPE["MULTIPLE"] = "multiple";
|
|
1050
|
+
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] = "submitSelectCurrency";
|
|
1051
|
+
COMMON_SETTING_TYPE["CAPTION"] = "caption";
|
|
1052
|
+
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] = "isHideCaption";
|
|
1053
|
+
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] = "defaultShowOptions";
|
|
1054
|
+
COMMON_SETTING_TYPE["CAN_SEARCH"] = "canSearch";
|
|
1055
|
+
COMMON_SETTING_TYPE["CAN_CHECK"] = "canCheck";
|
|
1056
|
+
COMMON_SETTING_TYPE["CAN_EDIT"] = "canEdit";
|
|
1057
|
+
COMMON_SETTING_TYPE["CAN_DELETE"] = "canDelete";
|
|
1058
|
+
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] = "showUpperCase";
|
|
1059
|
+
COMMON_SETTING_TYPE["MICROMETER"] = "micrometer";
|
|
1060
|
+
COMMON_SETTING_TYPE["PRECISION"] = "precision";
|
|
1061
|
+
COMMON_SETTING_TYPE["PERCENTAGE"] = "percentage";
|
|
1062
|
+
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] = "optionalLevel";
|
|
1063
|
+
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] = "containsSubNode";
|
|
1064
|
+
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] = "defaultCollapse";
|
|
1065
|
+
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] = "canViewForm";
|
|
1066
|
+
COMMON_SETTING_TYPE["SERVER_PAGINATION"] = "serverPagination";
|
|
1067
|
+
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] = "isShowCaptionTip";
|
|
1068
|
+
COMMON_SETTING_TYPE["ENCRYPTED"] = "encrypted";
|
|
1069
|
+
COMMON_SETTING_TYPE["IS_INLINE_EDIT"] = "isInlineEdit";
|
|
1070
|
+
COMMON_SETTING_TYPE["REVISIONS_MODE"] = "revisionsMode";
|
|
1071
|
+
COMMON_SETTING_TYPE["ALLOW_COPY_OPTIONS"] = "allowCopyOptions";
|
|
737
1072
|
})(COMMON_SETTING_TYPE || (COMMON_SETTING_TYPE = {}));
|
|
738
1073
|
export var PAGE_STATUS;
|
|
739
1074
|
(function(PAGE_STATUS) {
|
|
@@ -747,53 +1082,93 @@ export var PAGE_STATUS;
|
|
|
747
1082
|
* @public
|
|
748
1083
|
*/ export var OperationItem = function OperationItem(props) {
|
|
749
1084
|
"use strict";
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
1085
|
+
_class_call_check(this, OperationItem);
|
|
1086
|
+
/**
|
|
1087
|
+
* 是否显示
|
|
1088
|
+
* @defaultValue true
|
|
1089
|
+
* @public
|
|
1090
|
+
*/ _define_property(this, "isShow", void 0);
|
|
1091
|
+
/**
|
|
1092
|
+
* 优先访问流程表单
|
|
1093
|
+
* @defaultValue false
|
|
1094
|
+
* @public
|
|
1095
|
+
*/ _define_property(this, "priorityProcess", void 0);
|
|
1096
|
+
/**
|
|
1097
|
+
* 表单ID
|
|
1098
|
+
* @defaultValue ''
|
|
1099
|
+
* @public
|
|
1100
|
+
*/ _define_property(this, "formKey", void 0);
|
|
1101
|
+
/**
|
|
1102
|
+
* 显示文字
|
|
1103
|
+
* @defaultValue ''
|
|
1104
|
+
* @public
|
|
1105
|
+
*/ _define_property(this, "content", void 0);
|
|
1106
|
+
/**
|
|
1107
|
+
* 打开方式
|
|
1108
|
+
* @defaultValue 'modal'
|
|
1109
|
+
* @public
|
|
1110
|
+
*/ _define_property(this, "openType", void 0);
|
|
1111
|
+
_define_property(this, "type", void 0);
|
|
1112
|
+
var _props_isShow;
|
|
1113
|
+
this.isShow = (_props_isShow = props === null || props === void 0 ? void 0 : props.isShow) !== null && _props_isShow !== void 0 ? _props_isShow : true;
|
|
1114
|
+
var _props_content;
|
|
1115
|
+
this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "";
|
|
1116
|
+
var _props_formKey;
|
|
1117
|
+
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
1118
|
+
var _props_openType;
|
|
1119
|
+
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : "modal";
|
|
1120
|
+
var _props_type;
|
|
1121
|
+
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : "";
|
|
1122
|
+
var _props_priorityProcess;
|
|
1123
|
+
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : false;
|
|
763
1124
|
};
|
|
764
1125
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
765
1126
|
"use strict";
|
|
766
|
-
|
|
767
|
-
var
|
|
768
|
-
|
|
769
|
-
this
|
|
770
|
-
|
|
771
|
-
this
|
|
772
|
-
var
|
|
773
|
-
this.
|
|
1127
|
+
_class_call_check(this, ViewOperationItem);
|
|
1128
|
+
var _props_headers;
|
|
1129
|
+
_define_property(this, "id", void 0);
|
|
1130
|
+
_define_property(this, "title", void 0);
|
|
1131
|
+
_define_property(this, "filters", void 0);
|
|
1132
|
+
_define_property(this, "headers", void 0);
|
|
1133
|
+
var _props_id;
|
|
1134
|
+
this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
|
|
1135
|
+
var _props_title;
|
|
1136
|
+
this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : "";
|
|
1137
|
+
var _props_headers_map;
|
|
1138
|
+
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) {
|
|
774
1139
|
return new ListBindHeaderItem(item);
|
|
775
|
-
})) !== null &&
|
|
1140
|
+
})) !== null && _props_headers_map !== void 0 ? _props_headers_map : [];
|
|
776
1141
|
callFiltersAndOrders.call(this, props);
|
|
777
1142
|
};
|
|
778
1143
|
/**
|
|
779
1144
|
* 自定义权限项,用于Vue容器上,注册自定义的权限
|
|
780
1145
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
781
1146
|
"use strict";
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
1147
|
+
_class_call_check(this, CustomPermissionItem);
|
|
1148
|
+
/**
|
|
1149
|
+
* 人工输入的权限key
|
|
1150
|
+
*/ _define_property(this, "key", void 0);
|
|
1151
|
+
/**
|
|
1152
|
+
* 权限名称
|
|
1153
|
+
*/ _define_property(this, "caption", void 0);
|
|
1154
|
+
var _props_key;
|
|
1155
|
+
this.key = (_props_key = props.key) !== null && _props_key !== void 0 ? _props_key : genNonDuplicateId(8);
|
|
1156
|
+
var _props_caption;
|
|
1157
|
+
this.caption = (_props_caption = props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
|
|
787
1158
|
};
|
|
788
1159
|
export var BaseStyle = function BaseStyle(props) {
|
|
789
1160
|
"use strict";
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
this
|
|
793
|
-
|
|
794
|
-
this
|
|
795
|
-
var
|
|
796
|
-
this.
|
|
797
|
-
var
|
|
798
|
-
this.
|
|
1161
|
+
_class_call_check(this, BaseStyle);
|
|
1162
|
+
_define_property(this, "width", void 0);
|
|
1163
|
+
_define_property(this, "height", void 0);
|
|
1164
|
+
_define_property(this, "widthConfig", void 0);
|
|
1165
|
+
_define_property(this, "heightConfig", void 0);
|
|
1166
|
+
var _props_width;
|
|
1167
|
+
this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : "";
|
|
1168
|
+
var _props_height;
|
|
1169
|
+
this.height = (_props_height = props === null || props === void 0 ? void 0 : props.height) !== null && _props_height !== void 0 ? _props_height : "";
|
|
1170
|
+
var _props_widthConfig;
|
|
1171
|
+
this.widthConfig = (_props_widthConfig = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && _props_widthConfig !== void 0 ? _props_widthConfig : "fill";
|
|
1172
|
+
var _props_heightConfig;
|
|
1173
|
+
this.heightConfig = (_props_heightConfig = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && _props_heightConfig !== void 0 ? _props_heightConfig : "fill";
|
|
799
1174
|
};
|