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