@byteluck-fe/model-driven-core 1.3.0-beta.27 → 1.5.0-beta.1
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 +409 -0
- package/dist/esm/common/BaseControl/index.js +12 -0
- package/dist/esm/common/BaseControl/property.js +160 -0
- package/dist/esm/common/BaseControl/runtime.js +72 -0
- package/dist/esm/common/BaseControl/types.js +1 -0
- package/dist/esm/common/ColumnControl/designer.js +89 -0
- package/dist/esm/common/ColumnControl/index.js +11 -0
- package/dist/esm/common/ColumnControl/property.js +157 -0
- package/dist/esm/common/ColumnControl/runtime.js +89 -0
- package/dist/esm/common/ColumnControl/types.js +0 -0
- package/dist/esm/common/ControlArray.js +100 -0
- package/dist/esm/common/FormControl/designer.js +94 -0
- package/dist/esm/common/FormControl/index.js +11 -0
- package/dist/esm/common/FormControl/property.js +262 -0
- package/dist/esm/common/FormControl/runtime.js +89 -0
- package/dist/esm/common/FormControl/types.js +0 -0
- package/dist/esm/common/LayoutControl/designer.js +300 -0
- package/dist/esm/common/LayoutControl/index.js +11 -0
- package/dist/esm/common/LayoutControl/property.js +84 -0
- package/dist/esm/common/LayoutControl/runtime.js +91 -0
- package/dist/esm/common/LayoutControl/types.js +0 -0
- package/dist/esm/common/ListControl/designer.js +276 -0
- package/dist/esm/common/ListControl/index.js +11 -0
- package/dist/esm/common/ListControl/property.js +88 -0
- package/dist/esm/common/ListControl/runtime.js +113 -0
- package/dist/esm/common/ListControl/types.js +0 -0
- package/dist/esm/common/SearchViewControl/designer.js +89 -0
- package/dist/esm/common/SearchViewControl/index.js +11 -0
- package/dist/esm/common/SearchViewControl/property.js +88 -0
- package/dist/esm/common/SearchViewControl/runtime.js +89 -0
- package/dist/esm/common/SearchViewControl/types.js +0 -0
- package/dist/esm/common/Validator.js +16 -0
- package/dist/esm/common/WrapControl/designer.js +89 -0
- package/dist/esm/common/WrapControl/index.js +11 -0
- package/dist/esm/common/WrapControl/property.js +84 -0
- package/dist/esm/common/WrapControl/runtime.js +89 -0
- package/dist/esm/common/WrapControl/types.js +0 -0
- package/dist/esm/common/controlHooksEmitter.js +3 -0
- package/dist/esm/common/index.js +11 -0
- package/dist/esm/common/initOptionAndDataSourceRules.js +227 -0
- package/dist/esm/framework/RegisterControls.js +149 -0
- package/dist/esm/framework/index.js +690 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/type.js +1 -0
- package/dist/index.umd.js +1 -0
- package/dist/types/common/BaseControl/designer.d.ts +62 -0
- package/dist/types/common/BaseControl/index.d.ts +13 -0
- package/dist/types/common/BaseControl/property.d.ts +22 -0
- package/dist/types/common/BaseControl/runtime.d.ts +22 -0
- package/dist/types/common/BaseControl/types.d.ts +35 -0
- package/dist/types/common/ColumnControl/designer.d.ts +10 -0
- package/dist/types/common/ColumnControl/index.d.ts +12 -0
- package/dist/types/common/ColumnControl/property.d.ts +30 -0
- package/dist/types/common/ColumnControl/runtime.d.ts +10 -0
- package/dist/types/common/ColumnControl/types.d.ts +0 -0
- package/dist/types/common/ControlArray.d.ts +8 -0
- package/dist/types/common/FormControl/designer.d.ts +13 -0
- package/dist/types/common/FormControl/index.d.ts +12 -0
- package/dist/types/common/FormControl/property.d.ts +44 -0
- package/dist/types/common/FormControl/runtime.d.ts +11 -0
- package/dist/types/common/FormControl/types.d.ts +0 -0
- package/dist/types/common/LayoutControl/designer.d.ts +21 -0
- package/dist/types/common/LayoutControl/index.d.ts +12 -0
- package/dist/types/common/LayoutControl/property.d.ts +6 -0
- package/dist/types/common/LayoutControl/runtime.d.ts +11 -0
- package/dist/types/common/LayoutControl/types.d.ts +0 -0
- package/dist/types/common/ListControl/designer.d.ts +16 -0
- package/dist/types/common/ListControl/index.d.ts +12 -0
- package/dist/types/common/ListControl/property.d.ts +12 -0
- package/dist/types/common/ListControl/runtime.d.ts +12 -0
- package/dist/types/common/ListControl/types.d.ts +0 -0
- package/dist/types/common/SearchViewControl/designer.d.ts +11 -0
- package/dist/types/common/SearchViewControl/index.d.ts +12 -0
- package/dist/types/common/SearchViewControl/property.d.ts +8 -0
- package/dist/types/common/SearchViewControl/runtime.d.ts +11 -0
- package/dist/types/common/SearchViewControl/types.d.ts +0 -0
- package/dist/types/common/Validator.d.ts +15 -0
- package/dist/types/common/WrapControl/designer.d.ts +11 -0
- package/dist/types/common/WrapControl/index.d.ts +12 -0
- package/dist/types/common/WrapControl/property.d.ts +6 -0
- package/dist/types/common/WrapControl/runtime.d.ts +11 -0
- package/dist/types/common/WrapControl/types.d.ts +0 -0
- package/dist/types/common/controlHooksEmitter.d.ts +4 -0
- package/dist/types/common/index.d.ts +11 -0
- package/dist/types/common/initOptionAndDataSourceRules.d.ts +10 -0
- package/dist/types/framework/RegisterControls.d.ts +33 -0
- package/dist/types/framework/index.d.ts +349 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/type.d.ts +91 -0
- package/package.json +4 -4
- package/src/index.ts +0 -3
|
@@ -0,0 +1,690 @@
|
|
|
1
|
+
function _assertThisInitialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
6
|
+
}
|
|
7
|
+
function _classCallCheck(instance, Constructor) {
|
|
8
|
+
if (!(instance instanceof Constructor)) {
|
|
9
|
+
throw new TypeError("Cannot call a class as a function");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function _getPrototypeOf(o) {
|
|
13
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
14
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
15
|
+
};
|
|
16
|
+
return _getPrototypeOf(o);
|
|
17
|
+
}
|
|
18
|
+
function _inherits(subClass, superClass) {
|
|
19
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
20
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
21
|
+
}
|
|
22
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
23
|
+
constructor: {
|
|
24
|
+
value: subClass,
|
|
25
|
+
writable: true,
|
|
26
|
+
configurable: true
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
30
|
+
}
|
|
31
|
+
function _instanceof(left, right) {
|
|
32
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
33
|
+
return !!right[Symbol.hasInstance](left);
|
|
34
|
+
} else {
|
|
35
|
+
return left instanceof right;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function _possibleConstructorReturn(self, call) {
|
|
39
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
40
|
+
return call;
|
|
41
|
+
}
|
|
42
|
+
return _assertThisInitialized(self);
|
|
43
|
+
}
|
|
44
|
+
function _setPrototypeOf(o, p) {
|
|
45
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
46
|
+
o.__proto__ = p;
|
|
47
|
+
return o;
|
|
48
|
+
};
|
|
49
|
+
return _setPrototypeOf(o, p);
|
|
50
|
+
}
|
|
51
|
+
var _typeof = function(obj) {
|
|
52
|
+
"@swc/helpers - typeof";
|
|
53
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
54
|
+
};
|
|
55
|
+
function _isNativeReflectConstruct() {
|
|
56
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
57
|
+
if (Reflect.construct.sham) return false;
|
|
58
|
+
if (typeof Proxy === "function") return true;
|
|
59
|
+
try {
|
|
60
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
61
|
+
return true;
|
|
62
|
+
} catch (e) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function _createSuper(Derived) {
|
|
67
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
68
|
+
return function _createSuperInternal() {
|
|
69
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
70
|
+
if (hasNativeReflectConstruct) {
|
|
71
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
72
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
73
|
+
} else {
|
|
74
|
+
result = Super.apply(this, arguments);
|
|
75
|
+
}
|
|
76
|
+
return _possibleConstructorReturn(this, result);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
import { FieldTypes, genNonDuplicateId } from "@byteluck-fe/model-driven-shared";
|
|
80
|
+
export * from "./RegisterControls";
|
|
81
|
+
export var DataBind = function DataBind(props) {
|
|
82
|
+
"use strict";
|
|
83
|
+
_classCallCheck(this, DataBind);
|
|
84
|
+
var ref;
|
|
85
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : "";
|
|
86
|
+
var ref1;
|
|
87
|
+
this.fieldCode = (ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref1 !== void 0 ? ref1 : "";
|
|
88
|
+
var ref2;
|
|
89
|
+
this.fieldType = (ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref2 !== void 0 ? ref2 : "";
|
|
90
|
+
};
|
|
91
|
+
export var FormBind = function FormBind(props) {
|
|
92
|
+
"use strict";
|
|
93
|
+
_classCallCheck(this, FormBind);
|
|
94
|
+
var ref;
|
|
95
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : "";
|
|
96
|
+
var ref1;
|
|
97
|
+
this.formKey = (ref1 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref1 !== void 0 ? ref1 : "";
|
|
98
|
+
var ref2;
|
|
99
|
+
this.appId = (ref2 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref2 !== void 0 ? ref2 : "";
|
|
100
|
+
};
|
|
101
|
+
export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
102
|
+
"use strict";
|
|
103
|
+
_inherits(FormSelectBind, FormBind);
|
|
104
|
+
var _super = _createSuper(FormSelectBind);
|
|
105
|
+
function FormSelectBind(props) {
|
|
106
|
+
_classCallCheck(this, FormSelectBind);
|
|
107
|
+
var _this;
|
|
108
|
+
_this = _super.call(this, props);
|
|
109
|
+
var ref;
|
|
110
|
+
_this.primaryControlId = (ref = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && ref !== void 0 ? ref : "";
|
|
111
|
+
return _this;
|
|
112
|
+
}
|
|
113
|
+
return FormSelectBind;
|
|
114
|
+
}(FormBind);
|
|
115
|
+
var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
116
|
+
"use strict";
|
|
117
|
+
_classCallCheck(this, ListBindHeaderItem);
|
|
118
|
+
var ref;
|
|
119
|
+
this.fieldCode = (ref = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref !== void 0 ? ref : "";
|
|
120
|
+
};
|
|
121
|
+
export var ListBind = function ListBind(props) {
|
|
122
|
+
"use strict";
|
|
123
|
+
_classCallCheck(this, ListBind);
|
|
124
|
+
var ref;
|
|
125
|
+
var ref1;
|
|
126
|
+
this.appId = (ref1 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref1 !== void 0 ? ref1 : "";
|
|
127
|
+
var ref2;
|
|
128
|
+
this.formKey = (ref2 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref2 !== void 0 ? ref2 : "";
|
|
129
|
+
var ref3;
|
|
130
|
+
this.headers = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.headers) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
131
|
+
return new ListBindHeaderItem(item);
|
|
132
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
133
|
+
};
|
|
134
|
+
export var FieldBindItem = function FieldBindItem(props) {
|
|
135
|
+
"use strict";
|
|
136
|
+
_classCallCheck(this, FieldBindItem);
|
|
137
|
+
var ref;
|
|
138
|
+
this.fieldName = (ref = props === null || props === void 0 ? void 0 : props.fieldName) !== null && ref !== void 0 ? ref : "";
|
|
139
|
+
var ref1;
|
|
140
|
+
this.fieldCode = (ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref1 !== void 0 ? ref1 : "";
|
|
141
|
+
var ref2;
|
|
142
|
+
this.fieldType = (ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref2 !== void 0 ? ref2 : FieldTypes.VARCHAR;
|
|
143
|
+
};
|
|
144
|
+
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
145
|
+
"use strict";
|
|
146
|
+
_inherits(SubListItem, FormBind);
|
|
147
|
+
var _super = _createSuper(SubListItem);
|
|
148
|
+
function SubListItem(props) {
|
|
149
|
+
_classCallCheck(this, SubListItem);
|
|
150
|
+
var _this;
|
|
151
|
+
_this = _super.call(this, props);
|
|
152
|
+
var ref;
|
|
153
|
+
_this.title = (ref = props === null || props === void 0 ? void 0 : props.title) !== null && ref !== void 0 ? ref : "";
|
|
154
|
+
var ref1;
|
|
155
|
+
_this.svcCode = (ref1 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && ref1 !== void 0 ? ref1 : "";
|
|
156
|
+
var ref2;
|
|
157
|
+
_this.isOpenFilter = (ref2 = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && ref2 !== void 0 ? ref2 : false;
|
|
158
|
+
var ref3;
|
|
159
|
+
_this.filters = (ref3 = props === null || props === void 0 ? void 0 : props.filters) !== null && ref3 !== void 0 ? ref3 : [];
|
|
160
|
+
return _this;
|
|
161
|
+
}
|
|
162
|
+
return SubListItem;
|
|
163
|
+
}(FormBind);
|
|
164
|
+
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
165
|
+
"use strict";
|
|
166
|
+
_classCallCheck(this, SubListPageConfig);
|
|
167
|
+
var ref, ref1;
|
|
168
|
+
this.type = "sublist-page";
|
|
169
|
+
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
170
|
+
var ref2;
|
|
171
|
+
this.displayFields = (ref2 = props === null || props === void 0 ? void 0 : (ref = props.displayFields) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
172
|
+
return new FieldBindItem(item);
|
|
173
|
+
})) !== null && ref2 !== void 0 ? ref2 : [];
|
|
174
|
+
var ref3;
|
|
175
|
+
this.sublists = (ref3 = props === null || props === void 0 ? void 0 : (ref1 = props.sublists) === null || ref1 === void 0 ? void 0 : ref1.map(function(item) {
|
|
176
|
+
return new SubListItem(item);
|
|
177
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
178
|
+
};
|
|
179
|
+
export var LeftVariable = function LeftVariable(props) {
|
|
180
|
+
"use strict";
|
|
181
|
+
_classCallCheck(this, LeftVariable);
|
|
182
|
+
this.type = props === null || props === void 0 ? void 0 : props.type;
|
|
183
|
+
this.value = props === null || props === void 0 ? void 0 : props.value;
|
|
184
|
+
};
|
|
185
|
+
export var RightVariable = function RightVariable(props) {
|
|
186
|
+
"use strict";
|
|
187
|
+
_classCallCheck(this, RightVariable);
|
|
188
|
+
var ref;
|
|
189
|
+
this.type = (ref = props === null || props === void 0 ? void 0 : props.type) !== null && ref !== void 0 ? ref : "custom";
|
|
190
|
+
var ref1;
|
|
191
|
+
this.value = (ref1 = props === null || props === void 0 ? void 0 : props.value) !== null && ref1 !== void 0 ? ref1 : [];
|
|
192
|
+
var ref2;
|
|
193
|
+
this.displayBos = (ref2 = props === null || props === void 0 ? void 0 : props.displayBos) !== null && ref2 !== void 0 ? ref2 : [];
|
|
194
|
+
};
|
|
195
|
+
export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
196
|
+
"use strict";
|
|
197
|
+
var _this = this;
|
|
198
|
+
_classCallCheck(this, FieldFilterConditions);
|
|
199
|
+
this.type = "conditions";
|
|
200
|
+
var ref;
|
|
201
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId();
|
|
202
|
+
var ref1;
|
|
203
|
+
this.ruleId = (ref1 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && ref1 !== void 0 ? ref1 : new Date().valueOf();
|
|
204
|
+
var ref2;
|
|
205
|
+
this.level = (ref2 = props === null || props === void 0 ? void 0 : props.level) !== null && ref2 !== void 0 ? ref2 : 0;
|
|
206
|
+
var ref3;
|
|
207
|
+
this.value = (ref3 = props === null || props === void 0 ? void 0 : props.value) !== null && ref3 !== void 0 ? ref3 : "and";
|
|
208
|
+
this.children = [];
|
|
209
|
+
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
210
|
+
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
211
|
+
if (item.children !== undefined) {
|
|
212
|
+
var ref;
|
|
213
|
+
var filter = new FieldFilterConditions(item);
|
|
214
|
+
(ref = _this.children) === null || ref === void 0 ? void 0 : ref.push(filter);
|
|
215
|
+
} else {
|
|
216
|
+
var ref1;
|
|
217
|
+
var filter1 = new FieldFilterCondition(item);
|
|
218
|
+
(ref1 = _this.children) === null || ref1 === void 0 ? void 0 : ref1.push(filter1);
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
224
|
+
"use strict";
|
|
225
|
+
_classCallCheck(this, FieldFilterCondition);
|
|
226
|
+
this.type = "condition";
|
|
227
|
+
var ref;
|
|
228
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId();
|
|
229
|
+
var ref1;
|
|
230
|
+
this.ruleId = (ref1 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && ref1 !== void 0 ? ref1 : new Date().valueOf();
|
|
231
|
+
var ref2;
|
|
232
|
+
this.symbol = (ref2 = props === null || props === void 0 ? void 0 : props.symbol) !== null && ref2 !== void 0 ? ref2 : "";
|
|
233
|
+
var ref3;
|
|
234
|
+
this.checked = (ref3 = props === null || props === void 0 ? void 0 : props.checked) !== null && ref3 !== void 0 ? ref3 : false;
|
|
235
|
+
var ref4;
|
|
236
|
+
this.describe = (ref4 = props === null || props === void 0 ? void 0 : props.describe) !== null && ref4 !== void 0 ? ref4 : "";
|
|
237
|
+
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
238
|
+
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
239
|
+
};
|
|
240
|
+
export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
241
|
+
"use strict";
|
|
242
|
+
_classCallCheck(this, MultistageFillingItem);
|
|
243
|
+
var ref;
|
|
244
|
+
this.controlId = (ref = props === null || props === void 0 ? void 0 : props.controlId) !== null && ref !== void 0 ? ref : "";
|
|
245
|
+
var ref1;
|
|
246
|
+
this.fieldCode = (ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref1 !== void 0 ? ref1 : "";
|
|
247
|
+
var ref2;
|
|
248
|
+
this.fieldType = (ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && ref2 !== void 0 ? ref2 : "";
|
|
249
|
+
var ref3;
|
|
250
|
+
this.propName = (ref3 = props === null || props === void 0 ? void 0 : props.propName) !== null && ref3 !== void 0 ? ref3 : "";
|
|
251
|
+
};
|
|
252
|
+
export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
253
|
+
"use strict";
|
|
254
|
+
_classCallCheck(this, DisplayBoListItem);
|
|
255
|
+
var ref;
|
|
256
|
+
this.type = (ref = props === null || props === void 0 ? void 0 : props.type) !== null && ref !== void 0 ? ref : "FIELD";
|
|
257
|
+
var ref1;
|
|
258
|
+
this.value = (ref1 = props === null || props === void 0 ? void 0 : props.value) !== null && ref1 !== void 0 ? ref1 : "";
|
|
259
|
+
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
260
|
+
};
|
|
261
|
+
export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
262
|
+
"use strict";
|
|
263
|
+
_classCallCheck(this, DataSourceOrderItem);
|
|
264
|
+
var _columnName;
|
|
265
|
+
this.columnName = (_columnName = props.columnName) !== null && _columnName !== void 0 ? _columnName : "";
|
|
266
|
+
var _desc;
|
|
267
|
+
this.desc = (_desc = props.desc) !== null && _desc !== void 0 ? _desc : false;
|
|
268
|
+
};
|
|
269
|
+
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
270
|
+
"use strict";
|
|
271
|
+
_classCallCheck(this, DataSourceDataSetValue);
|
|
272
|
+
var _code;
|
|
273
|
+
this.code = (_code = props.code) !== null && _code !== void 0 ? _code : "";
|
|
274
|
+
var _value;
|
|
275
|
+
this.value = (_value = props.value) !== null && _value !== void 0 ? _value : "";
|
|
276
|
+
var _field_type;
|
|
277
|
+
this.field_type = (_field_type = props.field_type) !== null && _field_type !== void 0 ? _field_type : FieldTypes.ANY;
|
|
278
|
+
};
|
|
279
|
+
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
280
|
+
"use strict";
|
|
281
|
+
_classCallCheck(this, DataSourceParamItem);
|
|
282
|
+
var ref, ref1;
|
|
283
|
+
var _id;
|
|
284
|
+
//字段ID,不可以当作随机数生成唯一编号
|
|
285
|
+
this.id = (_id = props.id) !== null && _id !== void 0 ? _id : "";
|
|
286
|
+
var _limit;
|
|
287
|
+
this.limit = (_limit = props.limit) !== null && _limit !== void 0 ? _limit : 20;
|
|
288
|
+
var _formKey;
|
|
289
|
+
this.formKey = (_formKey = props.formKey) !== null && _formKey !== void 0 ? _formKey : "";
|
|
290
|
+
var ref2;
|
|
291
|
+
this.orders = (ref2 = (ref = props.orders) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
292
|
+
return new DataSourceOrderItem(item);
|
|
293
|
+
})) !== null && ref2 !== void 0 ? ref2 : [];
|
|
294
|
+
var ref3;
|
|
295
|
+
this.dataSet = (ref3 = (ref1 = props.dataSet) === null || ref1 === void 0 ? void 0 : ref1.map(function(item) {
|
|
296
|
+
return new DataSourceDataSetValue(item);
|
|
297
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* 给filters和orders赋值
|
|
301
|
+
* */ function callFiltersAndOrders(props) {
|
|
302
|
+
var ref;
|
|
303
|
+
var ref1;
|
|
304
|
+
this.filters = (ref1 = props === null || props === void 0 ? void 0 : (ref = props.filters) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
305
|
+
if (item.children !== undefined) {
|
|
306
|
+
return new FieldFilterConditions(item);
|
|
307
|
+
}
|
|
308
|
+
return new FieldFilterCondition(item);
|
|
309
|
+
})) !== null && ref1 !== void 0 ? ref1 : [];
|
|
310
|
+
if (_instanceof(this, DataSourceBind) || _instanceof(this, FillPayloadBind)) {
|
|
311
|
+
var ref2, ref3;
|
|
312
|
+
var ref4;
|
|
313
|
+
this.orders = (ref4 = (ref2 = props) === null || ref2 === void 0 ? void 0 : (ref3 = ref2.orders) === null || ref3 === void 0 ? void 0 : ref3.map(function(item) {
|
|
314
|
+
return new DataSourceOrderItem(item);
|
|
315
|
+
})) !== null && ref4 !== void 0 ? ref4 : [];
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
export var DataSourceBind = function DataSourceBind(props) {
|
|
319
|
+
"use strict";
|
|
320
|
+
var _this = this;
|
|
321
|
+
_classCallCheck(this, DataSourceBind);
|
|
322
|
+
var ref;
|
|
323
|
+
this.dataCode = (ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref !== void 0 ? ref : "";
|
|
324
|
+
var ref1;
|
|
325
|
+
this.appId = (ref1 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref1 !== void 0 ? ref1 : "";
|
|
326
|
+
var ref2;
|
|
327
|
+
this.valueFieldCode = (ref2 = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && ref2 !== void 0 ? ref2 : "";
|
|
328
|
+
this.displayBoList = [];
|
|
329
|
+
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
330
|
+
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
331
|
+
var ref;
|
|
332
|
+
(ref = _this.displayBoList) === null || ref === void 0 ? void 0 : ref.push(new DisplayBoListItem(item));
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
var ref3;
|
|
336
|
+
this.showOrder = (ref3 = props === null || props === void 0 ? void 0 : props.showOrder) !== null && ref3 !== void 0 ? ref3 : true;
|
|
337
|
+
var ref4;
|
|
338
|
+
this.svcCode = (ref4 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && ref4 !== void 0 ? ref4 : "";
|
|
339
|
+
callFiltersAndOrders.call(this, props);
|
|
340
|
+
};
|
|
341
|
+
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
342
|
+
"use strict";
|
|
343
|
+
_classCallCheck(this, CustomAttributeItem);
|
|
344
|
+
var ref;
|
|
345
|
+
var ref1;
|
|
346
|
+
this.name = (ref1 = props === null || props === void 0 ? void 0 : props.name) !== null && ref1 !== void 0 ? ref1 : "";
|
|
347
|
+
var ref2;
|
|
348
|
+
this.key = (ref2 = props === null || props === void 0 ? void 0 : props.key) !== null && ref2 !== void 0 ? ref2 : "";
|
|
349
|
+
var ref3;
|
|
350
|
+
this.value = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.value) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
351
|
+
return new DisplayBoListItem(item);
|
|
352
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
353
|
+
};
|
|
354
|
+
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
355
|
+
"use strict";
|
|
356
|
+
_inherits(SuperDataSourceBind, DataSourceBind);
|
|
357
|
+
var _super = _createSuper(SuperDataSourceBind);
|
|
358
|
+
function SuperDataSourceBind(props) {
|
|
359
|
+
_classCallCheck(this, SuperDataSourceBind);
|
|
360
|
+
var _this;
|
|
361
|
+
var ref;
|
|
362
|
+
_this = _super.call(this, props);
|
|
363
|
+
var ref1;
|
|
364
|
+
_this.attributes = (ref1 = props === null || props === void 0 ? void 0 : (ref = props.attributes) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
365
|
+
return new CustomAttributeItem(item);
|
|
366
|
+
})) !== null && ref1 !== void 0 ? ref1 : [];
|
|
367
|
+
return _this;
|
|
368
|
+
}
|
|
369
|
+
return SuperDataSourceBind;
|
|
370
|
+
}(DataSourceBind);
|
|
371
|
+
export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
372
|
+
"use strict";
|
|
373
|
+
_inherits(TreeDataSourceBind, SuperDataSourceBind);
|
|
374
|
+
var _super = _createSuper(TreeDataSourceBind);
|
|
375
|
+
function TreeDataSourceBind(props) {
|
|
376
|
+
_classCallCheck(this, TreeDataSourceBind);
|
|
377
|
+
var _this;
|
|
378
|
+
_this = _super.call(this, props);
|
|
379
|
+
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
380
|
+
return _this;
|
|
381
|
+
}
|
|
382
|
+
return TreeDataSourceBind;
|
|
383
|
+
}(SuperDataSourceBind);
|
|
384
|
+
var FillBind = function FillBind(props) {
|
|
385
|
+
"use strict";
|
|
386
|
+
_classCallCheck(this, FillBind);
|
|
387
|
+
var ref;
|
|
388
|
+
var ref1;
|
|
389
|
+
this.dataCode = (ref1 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && ref1 !== void 0 ? ref1 : "";
|
|
390
|
+
var ref2;
|
|
391
|
+
this.appId = (ref2 = props === null || props === void 0 ? void 0 : props.appId) !== null && ref2 !== void 0 ? ref2 : "";
|
|
392
|
+
var ref3;
|
|
393
|
+
this.fillList = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.fillList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
394
|
+
return new MultistageFillingItem(item);
|
|
395
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
396
|
+
};
|
|
397
|
+
/*
|
|
398
|
+
* 填充的配置和需要携带的数据
|
|
399
|
+
* */ export var FillPayloadBind = /*#__PURE__*/ function(FillBind) {
|
|
400
|
+
"use strict";
|
|
401
|
+
_inherits(FillPayloadBind, FillBind);
|
|
402
|
+
var _super = _createSuper(FillPayloadBind);
|
|
403
|
+
function FillPayloadBind(props) {
|
|
404
|
+
_classCallCheck(this, FillPayloadBind);
|
|
405
|
+
var _this;
|
|
406
|
+
_this = _super.call(this, props);
|
|
407
|
+
callFiltersAndOrders.call(_assertThisInitialized(_this), props);
|
|
408
|
+
return _this;
|
|
409
|
+
}
|
|
410
|
+
return FillPayloadBind;
|
|
411
|
+
}(FillBind);
|
|
412
|
+
/*
|
|
413
|
+
* 回填需要的配置和参数
|
|
414
|
+
* */ export var FillBackBind = /*#__PURE__*/ function(FillBind) {
|
|
415
|
+
"use strict";
|
|
416
|
+
_inherits(FillBackBind, FillBind);
|
|
417
|
+
var _super = _createSuper(FillBackBind);
|
|
418
|
+
function FillBackBind(props) {
|
|
419
|
+
_classCallCheck(this, FillBackBind);
|
|
420
|
+
var _this;
|
|
421
|
+
_this = _super.call(this, props);
|
|
422
|
+
var ref;
|
|
423
|
+
_this.mode = (ref = props === null || props === void 0 ? void 0 : props.mode) !== null && ref !== void 0 ? ref : "current";
|
|
424
|
+
var ref1;
|
|
425
|
+
_this.multiple = (ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && ref1 !== void 0 ? ref1 : false;
|
|
426
|
+
return _this;
|
|
427
|
+
}
|
|
428
|
+
return FillBackBind;
|
|
429
|
+
}(FillBind);
|
|
430
|
+
export var Language = function Language(props) {
|
|
431
|
+
"use strict";
|
|
432
|
+
_classCallCheck(this, Language);
|
|
433
|
+
var ref;
|
|
434
|
+
this.zh = (ref = props === null || props === void 0 ? void 0 : props.zh) !== null && ref !== void 0 ? ref : "";
|
|
435
|
+
var ref1;
|
|
436
|
+
this.en = (ref1 = props === null || props === void 0 ? void 0 : props.en) !== null && ref1 !== void 0 ? ref1 : "";
|
|
437
|
+
var ref2;
|
|
438
|
+
this.ja = (ref2 = props === null || props === void 0 ? void 0 : props.ja) !== null && ref2 !== void 0 ? ref2 : "";
|
|
439
|
+
};
|
|
440
|
+
export var RegularRules = function RegularRules(props) {
|
|
441
|
+
"use strict";
|
|
442
|
+
_classCallCheck(this, RegularRules);
|
|
443
|
+
var ref;
|
|
444
|
+
this.stencilName = (ref = props === null || props === void 0 ? void 0 : props.stencilName) !== null && ref !== void 0 ? ref : "";
|
|
445
|
+
var ref1;
|
|
446
|
+
this.expression = (ref1 = props === null || props === void 0 ? void 0 : props.expression) !== null && ref1 !== void 0 ? ref1 : "";
|
|
447
|
+
var ref2;
|
|
448
|
+
this.errMessage = (ref2 = props === null || props === void 0 ? void 0 : props.errMessage) !== null && ref2 !== void 0 ? ref2 : "";
|
|
449
|
+
};
|
|
450
|
+
// 选项设置-自定义选项
|
|
451
|
+
export var OptionSetting = function OptionSetting(props) {
|
|
452
|
+
"use strict";
|
|
453
|
+
_classCallCheck(this, OptionSetting);
|
|
454
|
+
var ref;
|
|
455
|
+
this.id = (ref = props === null || props === void 0 ? void 0 : props.id) !== null && ref !== void 0 ? ref : genNonDuplicateId(8);
|
|
456
|
+
var ref1;
|
|
457
|
+
this.label = (ref1 = props === null || props === void 0 ? void 0 : props.label) !== null && ref1 !== void 0 ? ref1 : "";
|
|
458
|
+
var ref2;
|
|
459
|
+
this.value = (ref2 = props === null || props === void 0 ? void 0 : props.value) !== null && ref2 !== void 0 ? ref2 : this.label;
|
|
460
|
+
};
|
|
461
|
+
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
462
|
+
"use strict";
|
|
463
|
+
_inherits(ImageOptionSetting, OptionSetting);
|
|
464
|
+
var _super = _createSuper(ImageOptionSetting);
|
|
465
|
+
function ImageOptionSetting(props) {
|
|
466
|
+
_classCallCheck(this, ImageOptionSetting);
|
|
467
|
+
var _this;
|
|
468
|
+
_this = _super.call(this, props);
|
|
469
|
+
var ref;
|
|
470
|
+
_this.image = (ref = props === null || props === void 0 ? void 0 : props.image) !== null && ref !== void 0 ? ref : "";
|
|
471
|
+
var ref1;
|
|
472
|
+
_this.type = (ref1 = props === null || props === void 0 ? void 0 : props.type) !== null && ref1 !== void 0 ? ref1 : "src";
|
|
473
|
+
return _this;
|
|
474
|
+
}
|
|
475
|
+
return ImageOptionSetting;
|
|
476
|
+
}(OptionSetting);
|
|
477
|
+
export function initOptions(options) {
|
|
478
|
+
var ref;
|
|
479
|
+
return (ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
480
|
+
return new OptionSetting(item);
|
|
481
|
+
})) !== null && ref !== void 0 ? ref : [];
|
|
482
|
+
}
|
|
483
|
+
export function initImageOptions(options) {
|
|
484
|
+
var ref;
|
|
485
|
+
return (ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
486
|
+
return new ImageOptionSetting(item);
|
|
487
|
+
})) !== null && ref !== void 0 ? ref : [];
|
|
488
|
+
}
|
|
489
|
+
export var ObjectDataBind = function ObjectDataBind() {
|
|
490
|
+
"use strict";
|
|
491
|
+
_classCallCheck(this, ObjectDataBind);
|
|
492
|
+
};
|
|
493
|
+
export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
494
|
+
"use strict";
|
|
495
|
+
_inherits(AmountDataBind, ObjectDataBind);
|
|
496
|
+
var _super = _createSuper(AmountDataBind);
|
|
497
|
+
function AmountDataBind(props) {
|
|
498
|
+
_classCallCheck(this, AmountDataBind);
|
|
499
|
+
var _this;
|
|
500
|
+
_this = _super.call(this);
|
|
501
|
+
_this.amount = new DataBind(props === null || props === void 0 ? void 0 : props.amount);
|
|
502
|
+
_this.currency = new DataBind(props === null || props === void 0 ? void 0 : props.currency);
|
|
503
|
+
return _this;
|
|
504
|
+
}
|
|
505
|
+
return AmountDataBind;
|
|
506
|
+
}(ObjectDataBind);
|
|
507
|
+
export var AmountValue = function AmountValue(props) {
|
|
508
|
+
"use strict";
|
|
509
|
+
_classCallCheck(this, AmountValue);
|
|
510
|
+
var ref;
|
|
511
|
+
this.amount = (ref = props === null || props === void 0 ? void 0 : props.amount) !== null && ref !== void 0 ? ref : "";
|
|
512
|
+
var ref1;
|
|
513
|
+
this.currency = (ref1 = props === null || props === void 0 ? void 0 : props.currency) !== null && ref1 !== void 0 ? ref1 : AMOUNT_TYPE.CNY;
|
|
514
|
+
};
|
|
515
|
+
export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
516
|
+
"use strict";
|
|
517
|
+
_inherits(RangeDataBind, ObjectDataBind);
|
|
518
|
+
var _super = _createSuper(RangeDataBind);
|
|
519
|
+
function RangeDataBind(props) {
|
|
520
|
+
_classCallCheck(this, RangeDataBind);
|
|
521
|
+
var _this;
|
|
522
|
+
_this = _super.call(this);
|
|
523
|
+
_this.min = new DataBind(props === null || props === void 0 ? void 0 : props.min);
|
|
524
|
+
_this.max = new DataBind(props === null || props === void 0 ? void 0 : props.max);
|
|
525
|
+
return _this;
|
|
526
|
+
}
|
|
527
|
+
return RangeDataBind;
|
|
528
|
+
}(ObjectDataBind);
|
|
529
|
+
export var RangeDateValue = function RangeDateValue(props) {
|
|
530
|
+
"use strict";
|
|
531
|
+
_classCallCheck(this, RangeDateValue);
|
|
532
|
+
var ref;
|
|
533
|
+
this.min = (ref = props === null || props === void 0 ? void 0 : props.min) !== null && ref !== void 0 ? ref : "";
|
|
534
|
+
var ref1;
|
|
535
|
+
this.max = (ref1 = props === null || props === void 0 ? void 0 : props.max) !== null && ref1 !== void 0 ? ref1 : "";
|
|
536
|
+
};
|
|
537
|
+
export var AddressValue = function AddressValue(props) {
|
|
538
|
+
"use strict";
|
|
539
|
+
_classCallCheck(this, AddressValue);
|
|
540
|
+
var ref;
|
|
541
|
+
this.city = (ref = props === null || props === void 0 ? void 0 : props.city) !== null && ref !== void 0 ? ref : "";
|
|
542
|
+
var ref1;
|
|
543
|
+
this.cityDisplay = (ref1 = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && ref1 !== void 0 ? ref1 : "";
|
|
544
|
+
var ref2;
|
|
545
|
+
this.district = (ref2 = props === null || props === void 0 ? void 0 : props.district) !== null && ref2 !== void 0 ? ref2 : "";
|
|
546
|
+
var ref3;
|
|
547
|
+
this.districtDisplay = (ref3 = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && ref3 !== void 0 ? ref3 : "";
|
|
548
|
+
var ref4;
|
|
549
|
+
this.province = (ref4 = props === null || props === void 0 ? void 0 : props.province) !== null && ref4 !== void 0 ? ref4 : "";
|
|
550
|
+
var ref5;
|
|
551
|
+
this.provinceDisplay = (ref5 = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && ref5 !== void 0 ? ref5 : "";
|
|
552
|
+
};
|
|
553
|
+
export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
554
|
+
"use strict";
|
|
555
|
+
_inherits(CalcDataBind, ObjectDataBind);
|
|
556
|
+
var _super = _createSuper(CalcDataBind);
|
|
557
|
+
function CalcDataBind(props) {
|
|
558
|
+
_classCallCheck(this, CalcDataBind);
|
|
559
|
+
var _this;
|
|
560
|
+
_this = _super.call(this);
|
|
561
|
+
_this.result = new DataBind(props === null || props === void 0 ? void 0 : props.result);
|
|
562
|
+
_this.unit = new DataBind(props === null || props === void 0 ? void 0 : props.unit);
|
|
563
|
+
return _this;
|
|
564
|
+
}
|
|
565
|
+
return CalcDataBind;
|
|
566
|
+
}(ObjectDataBind);
|
|
567
|
+
export var CalcValue = function CalcValue(props) {
|
|
568
|
+
"use strict";
|
|
569
|
+
_classCallCheck(this, CalcValue);
|
|
570
|
+
var ref;
|
|
571
|
+
this.result = (ref = props === null || props === void 0 ? void 0 : props.result) !== null && ref !== void 0 ? ref : 0;
|
|
572
|
+
var ref1;
|
|
573
|
+
this.unit = (ref1 = props === null || props === void 0 ? void 0 : props.unit) !== null && ref1 !== void 0 ? ref1 : "";
|
|
574
|
+
};
|
|
575
|
+
export var AMOUNT_TYPE;
|
|
576
|
+
(function(AMOUNT_TYPE) {
|
|
577
|
+
AMOUNT_TYPE["CNY"] = "CNY";
|
|
578
|
+
AMOUNT_TYPE["USD"] = "USD";
|
|
579
|
+
AMOUNT_TYPE["JPY"] = "JPY";
|
|
580
|
+
AMOUNT_TYPE["EUR"] = "EUR";
|
|
581
|
+
AMOUNT_TYPE["INR"] = "INR";
|
|
582
|
+
AMOUNT_TYPE["IDR"] = "IDR";
|
|
583
|
+
AMOUNT_TYPE["BRL"] = "BRL";
|
|
584
|
+
AMOUNT_TYPE["AED"] = "AED";
|
|
585
|
+
AMOUNT_TYPE["AUD"] = "AUD";
|
|
586
|
+
AMOUNT_TYPE["CAD"] = "CAD";
|
|
587
|
+
AMOUNT_TYPE["EGP"] = "EGP";
|
|
588
|
+
AMOUNT_TYPE["GBP"] = "GBP";
|
|
589
|
+
AMOUNT_TYPE["ZAR"] = "ZAR";
|
|
590
|
+
AMOUNT_TYPE["KRW"] = "KRW";
|
|
591
|
+
AMOUNT_TYPE["MAD"] = "MAD";
|
|
592
|
+
AMOUNT_TYPE["MXN"] = "MXN";
|
|
593
|
+
AMOUNT_TYPE["MYR"] = "MYR";
|
|
594
|
+
AMOUNT_TYPE["PHP"] = "PHP";
|
|
595
|
+
AMOUNT_TYPE["PLN"] = "PLN";
|
|
596
|
+
AMOUNT_TYPE["RUB"] = "RUB";
|
|
597
|
+
AMOUNT_TYPE["SGD"] = "SGD";
|
|
598
|
+
AMOUNT_TYPE["THB"] = "THB";
|
|
599
|
+
AMOUNT_TYPE["TRY"] = "TRY";
|
|
600
|
+
AMOUNT_TYPE["TWD"] = "TWD";
|
|
601
|
+
AMOUNT_TYPE["VND"] = "VND";
|
|
602
|
+
AMOUNT_TYPE["HKD"] = "HKD";
|
|
603
|
+
AMOUNT_TYPE["IEP"] = "IEP";
|
|
604
|
+
})(AMOUNT_TYPE || (AMOUNT_TYPE = {}));
|
|
605
|
+
export var COMMON_SETTING_TYPE;
|
|
606
|
+
(function(COMMON_SETTING_TYPE) {
|
|
607
|
+
COMMON_SETTING_TYPE["REQUIRED"] = "required";
|
|
608
|
+
COMMON_SETTING_TYPE["IS_HIDE"] = "isHide";
|
|
609
|
+
COMMON_SETTING_TYPE["IS_SHOW_UNIT"] = "isShowUnit";
|
|
610
|
+
COMMON_SETTING_TYPE["IMD_SEARCH"] = "immediatelySearch";
|
|
611
|
+
COMMON_SETTING_TYPE["MULTIPLE"] = "multiple";
|
|
612
|
+
COMMON_SETTING_TYPE["SUBMIT_SELECT_CURRENCY"] = "submitSelectCurrency";
|
|
613
|
+
COMMON_SETTING_TYPE["CAPTION"] = "caption";
|
|
614
|
+
COMMON_SETTING_TYPE["IS_HIDE_CAPTION"] = "isHideCaption";
|
|
615
|
+
COMMON_SETTING_TYPE["DEFAULT_SHOW_OPTIONS"] = "defaultShowOptions";
|
|
616
|
+
COMMON_SETTING_TYPE["CAN_SEARCH"] = "canSearch";
|
|
617
|
+
COMMON_SETTING_TYPE["CAN_CHECK"] = "canCheck";
|
|
618
|
+
COMMON_SETTING_TYPE["CAN_EDIT"] = "canEdit";
|
|
619
|
+
COMMON_SETTING_TYPE["CAN_DELETE"] = "canDelete";
|
|
620
|
+
COMMON_SETTING_TYPE["SHOW_UPPER_CASE"] = "showUpperCase";
|
|
621
|
+
COMMON_SETTING_TYPE["MICROMETER"] = "micrometer";
|
|
622
|
+
COMMON_SETTING_TYPE["PRECISION"] = "precision";
|
|
623
|
+
COMMON_SETTING_TYPE["PERCENTAGE"] = "percentage";
|
|
624
|
+
COMMON_SETTING_TYPE["OPTIONAL_LEVEL"] = "optionalLevel";
|
|
625
|
+
COMMON_SETTING_TYPE["CONTAINS_SUB_NODE"] = "containsSubNode";
|
|
626
|
+
COMMON_SETTING_TYPE["DEFAULT_COLLAPSE"] = "defaultCollapse";
|
|
627
|
+
COMMON_SETTING_TYPE["CAN_VIEW_FORM"] = "canViewForm";
|
|
628
|
+
COMMON_SETTING_TYPE["SERVER_PAGINATION"] = "serverPagination";
|
|
629
|
+
COMMON_SETTING_TYPE["IS_SHOW_CAPTION_TIP"] = "isShowCaptionTip";
|
|
630
|
+
COMMON_SETTING_TYPE["ENCRYPTED"] = "encrypted";
|
|
631
|
+
})(COMMON_SETTING_TYPE || (COMMON_SETTING_TYPE = {}));
|
|
632
|
+
export var PAGE_STATUS;
|
|
633
|
+
(function(PAGE_STATUS) {
|
|
634
|
+
PAGE_STATUS[PAGE_STATUS["UNKNOWN"] = 0] = "UNKNOWN";
|
|
635
|
+
PAGE_STATUS[PAGE_STATUS["READONLY"] = 1] = "READONLY";
|
|
636
|
+
PAGE_STATUS[PAGE_STATUS["EDITABLE"] = 2] = "EDITABLE";
|
|
637
|
+
PAGE_STATUS[PAGE_STATUS["PRINT"] = 5] = "PRINT";
|
|
638
|
+
})(PAGE_STATUS || (PAGE_STATUS = {}));
|
|
639
|
+
export var OperationItem = function OperationItem(props) {
|
|
640
|
+
"use strict";
|
|
641
|
+
_classCallCheck(this, OperationItem);
|
|
642
|
+
var ref;
|
|
643
|
+
this.isShow = (ref = props === null || props === void 0 ? void 0 : props.isShow) !== null && ref !== void 0 ? ref : true;
|
|
644
|
+
var ref1;
|
|
645
|
+
this.content = (ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && ref1 !== void 0 ? ref1 : "";
|
|
646
|
+
var ref2;
|
|
647
|
+
this.formKey = (ref2 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref2 !== void 0 ? ref2 : "";
|
|
648
|
+
var ref3;
|
|
649
|
+
this.openType = (ref3 = props === null || props === void 0 ? void 0 : props.openType) !== null && ref3 !== void 0 ? ref3 : "modal";
|
|
650
|
+
var ref4;
|
|
651
|
+
this.type = (ref4 = props === null || props === void 0 ? void 0 : props.type) !== null && ref4 !== void 0 ? ref4 : "";
|
|
652
|
+
var ref5;
|
|
653
|
+
this.priorityProcess = (ref5 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && ref5 !== void 0 ? ref5 : false;
|
|
654
|
+
};
|
|
655
|
+
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
656
|
+
"use strict";
|
|
657
|
+
_classCallCheck(this, ViewOperationItem);
|
|
658
|
+
var ref;
|
|
659
|
+
var ref1;
|
|
660
|
+
this.id = (ref1 = props === null || props === void 0 ? void 0 : props.id) !== null && ref1 !== void 0 ? ref1 : genNonDuplicateId(8);
|
|
661
|
+
var ref2;
|
|
662
|
+
this.title = (ref2 = props === null || props === void 0 ? void 0 : props.title) !== null && ref2 !== void 0 ? ref2 : "";
|
|
663
|
+
var ref3;
|
|
664
|
+
this.headers = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.headers) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
665
|
+
return new ListBindHeaderItem(item);
|
|
666
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
667
|
+
callFiltersAndOrders.call(this, props);
|
|
668
|
+
};
|
|
669
|
+
/**
|
|
670
|
+
* 自定义权限项,用于Vue容器上,注册自定义的权限
|
|
671
|
+
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
672
|
+
"use strict";
|
|
673
|
+
_classCallCheck(this, CustomPermissionItem);
|
|
674
|
+
var _key;
|
|
675
|
+
this.key = (_key = props.key) !== null && _key !== void 0 ? _key : genNonDuplicateId(8);
|
|
676
|
+
var _caption;
|
|
677
|
+
this.caption = (_caption = props.caption) !== null && _caption !== void 0 ? _caption : "";
|
|
678
|
+
};
|
|
679
|
+
export var BaseStyle = function BaseStyle(props) {
|
|
680
|
+
"use strict";
|
|
681
|
+
_classCallCheck(this, BaseStyle);
|
|
682
|
+
var ref;
|
|
683
|
+
this.width = (ref = props === null || props === void 0 ? void 0 : props.width) !== null && ref !== void 0 ? ref : "";
|
|
684
|
+
var ref1;
|
|
685
|
+
this.height = (ref1 = props === null || props === void 0 ? void 0 : props.height) !== null && ref1 !== void 0 ? ref1 : "";
|
|
686
|
+
var ref2;
|
|
687
|
+
this.widthConfig = (ref2 = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && ref2 !== void 0 ? ref2 : "fill";
|
|
688
|
+
var ref3;
|
|
689
|
+
this.heightConfig = (ref3 = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && ref3 !== void 0 ? ref3 : "fill";
|
|
690
|
+
};
|