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