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