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