@byteluck-fe/model-driven-core 6.1.0-3 → 6.1.0-3-beta.3
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/common/BaseControl/designer.js +29 -23
- package/dist/esm/common/BaseControl/property.js +18 -19
- package/dist/esm/common/BaseControl/runtime.js +8 -11
- package/dist/esm/common/ColumnControl/property.js +34 -38
- package/dist/esm/common/FormControl/property.js +55 -64
- package/dist/esm/common/LayoutControl/designer.js +13 -4
- package/dist/esm/common/ListControl/designer.js +12 -4
- package/dist/esm/common/ListControl/property.js +5 -8
- package/dist/esm/framework/index.js +595 -693
- 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 +71 -71
- package/dist/types/common/BaseControl/index.d.ts +13 -13
- package/dist/types/common/BaseControl/property.d.ts +44 -44
- package/dist/types/common/BaseControl/runtime.d.ts +23 -23
- package/dist/types/common/BaseControl/types.d.ts +48 -35
- package/dist/types/common/ColumnControl/designer.d.ts +20 -20
- package/dist/types/common/ColumnControl/index.d.ts +12 -12
- package/dist/types/common/ColumnControl/property.d.ts +74 -74
- package/dist/types/common/ColumnControl/runtime.d.ts +11 -11
- package/dist/types/common/ControlArray.d.ts +9 -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 +18 -18
- 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 +37 -37
- package/dist/types/framework/index.d.ts +950 -946
- 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 +34 -34
|
@@ -72,67 +72,61 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import { FieldTypes, genNonDuplicateId } from '@byteluck-fe/model-driven-shared';
|
|
74
74
|
export * from './RegisterControls';
|
|
75
|
-
/**
|
|
76
|
-
* 数据绑定配置
|
|
77
|
-
* @public
|
|
75
|
+
/**
|
|
76
|
+
* 数据绑定配置
|
|
77
|
+
* @public
|
|
78
78
|
*/ export var DataBind = function DataBind(props) {
|
|
79
79
|
"use strict";
|
|
80
80
|
_class_call_check(this, DataBind);
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
*
|
|
84
|
-
* @
|
|
81
|
+
var _ref, _ref1, _ref2;
|
|
82
|
+
/**
|
|
83
|
+
* 数据模型编码
|
|
84
|
+
* @defaultValue ''
|
|
85
|
+
* @public
|
|
85
86
|
*/ _define_property(this, "dataCode", void 0);
|
|
86
|
-
/**
|
|
87
|
-
* 字段编码
|
|
88
|
-
* @defaultValue ''
|
|
89
|
-
* @public
|
|
87
|
+
/**
|
|
88
|
+
* 字段编码
|
|
89
|
+
* @defaultValue ''
|
|
90
|
+
* @public
|
|
90
91
|
*/ _define_property(this, "fieldCode", void 0);
|
|
91
|
-
/**
|
|
92
|
-
* 字段类型
|
|
93
|
-
* @defaultValue ''
|
|
94
|
-
* @public
|
|
92
|
+
/**
|
|
93
|
+
* 字段类型
|
|
94
|
+
* @defaultValue ''
|
|
95
|
+
* @public
|
|
95
96
|
*/ _define_property(this, "fieldType", void 0);
|
|
96
|
-
/**
|
|
97
|
-
* 表别名
|
|
98
|
-
* @defaultValue undefined
|
|
99
|
-
* @public
|
|
97
|
+
/**
|
|
98
|
+
* 表别名
|
|
99
|
+
* @defaultValue undefined
|
|
100
|
+
* @public
|
|
100
101
|
*/ _define_property(this, "aliasCode", void 0);
|
|
101
|
-
|
|
102
|
-
this.
|
|
103
|
-
|
|
104
|
-
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : '';
|
|
105
|
-
var _props_fieldType;
|
|
106
|
-
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : '';
|
|
102
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
103
|
+
this.fieldCode = (_ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
104
|
+
this.fieldType = (_ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
107
105
|
this.aliasCode = props === null || props === void 0 ? void 0 : props.aliasCode;
|
|
108
106
|
};
|
|
109
107
|
export var AutoWidth = function AutoWidth(props) {
|
|
110
108
|
"use strict";
|
|
111
109
|
_class_call_check(this, AutoWidth);
|
|
110
|
+
var _ref, _ref1;
|
|
112
111
|
_define_property(this, "minWidth", void 0);
|
|
113
112
|
_define_property(this, "maxWidth", void 0);
|
|
114
113
|
_define_property(this, "flex", void 0);
|
|
115
|
-
|
|
116
|
-
this.minWidth = (_props_minWidth = props === null || props === void 0 ? void 0 : props.minWidth) !== null && _props_minWidth !== void 0 ? _props_minWidth : 150;
|
|
114
|
+
this.minWidth = (_ref = props === null || props === void 0 ? void 0 : props.minWidth) !== null && _ref !== void 0 ? _ref : 150;
|
|
117
115
|
this.maxWidth = props === null || props === void 0 ? void 0 : props.maxWidth;
|
|
118
|
-
|
|
119
|
-
this.flex = (_props_flex = props === null || props === void 0 ? void 0 : props.flex) !== null && _props_flex !== void 0 ? _props_flex : 1;
|
|
116
|
+
this.flex = (_ref1 = props === null || props === void 0 ? void 0 : props.flex) !== null && _ref1 !== void 0 ? _ref1 : 1;
|
|
120
117
|
};
|
|
121
118
|
export var RowHeight = function RowHeight(props) {
|
|
122
119
|
"use strict";
|
|
123
120
|
_class_call_check(this, RowHeight);
|
|
121
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
124
122
|
_define_property(this, "rowHeightType", void 0);
|
|
125
123
|
_define_property(this, "minRows", void 0);
|
|
126
124
|
_define_property(this, "maxRows", void 0);
|
|
127
125
|
_define_property(this, "fiexdRow", void 0);
|
|
128
|
-
|
|
129
|
-
this.
|
|
130
|
-
|
|
131
|
-
this.
|
|
132
|
-
var _props_maxRows;
|
|
133
|
-
this.maxRows = (_props_maxRows = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _props_maxRows !== void 0 ? _props_maxRows : 20;
|
|
134
|
-
var _props_fiexdRow;
|
|
135
|
-
this.fiexdRow = (_props_fiexdRow = props === null || props === void 0 ? void 0 : props.fiexdRow) !== null && _props_fiexdRow !== void 0 ? _props_fiexdRow : 4;
|
|
126
|
+
this.rowHeightType = (_ref = props === null || props === void 0 ? void 0 : props.rowHeightType) !== null && _ref !== void 0 ? _ref : 'fixed';
|
|
127
|
+
this.minRows = (_ref1 = props === null || props === void 0 ? void 0 : props.minRows) !== null && _ref1 !== void 0 ? _ref1 : 4;
|
|
128
|
+
this.maxRows = (_ref2 = props === null || props === void 0 ? void 0 : props.maxRows) !== null && _ref2 !== void 0 ? _ref2 : 20;
|
|
129
|
+
this.fiexdRow = (_ref3 = props === null || props === void 0 ? void 0 : props.fiexdRow) !== null && _ref3 !== void 0 ? _ref3 : 4;
|
|
136
130
|
};
|
|
137
131
|
export var MetaRowHeight = function MetaRowHeight(props) {
|
|
138
132
|
"use strict";
|
|
@@ -148,13 +142,12 @@ export var MetaWidth = /*#__PURE__*/ function(AutoWidth) {
|
|
|
148
142
|
function MetaWidth(props) {
|
|
149
143
|
_class_call_check(this, MetaWidth);
|
|
150
144
|
var _this;
|
|
145
|
+
var _ref, _ref1;
|
|
151
146
|
_this = _call_super(this, MetaWidth, [
|
|
152
147
|
props
|
|
153
148
|
]), _define_property(_this, "width", void 0), _define_property(_this, "widthType", void 0);
|
|
154
|
-
|
|
155
|
-
_this.
|
|
156
|
-
var _props_widthType;
|
|
157
|
-
_this.widthType = (_props_widthType = props === null || props === void 0 ? void 0 : props.widthType) !== null && _props_widthType !== void 0 ? _props_widthType : 'auto';
|
|
149
|
+
_this.width = (_ref = props === null || props === void 0 ? void 0 : props.width) !== null && _ref !== void 0 ? _ref : 240;
|
|
150
|
+
_this.widthType = (_ref1 = props === null || props === void 0 ? void 0 : props.widthType) !== null && _ref1 !== void 0 ? _ref1 : 'auto';
|
|
158
151
|
return _this;
|
|
159
152
|
}
|
|
160
153
|
return MetaWidth;
|
|
@@ -173,25 +166,22 @@ export var MetaAutoWidth = function MetaAutoWidth(props) {
|
|
|
173
166
|
export var DataStorageDoc = function DataStorageDoc(props) {
|
|
174
167
|
"use strict";
|
|
175
168
|
_class_call_check(this, DataStorageDoc);
|
|
169
|
+
var _ref, _ref1;
|
|
176
170
|
_define_property(this, "type", void 0);
|
|
177
171
|
_define_property(this, "customOptions", void 0);
|
|
178
|
-
|
|
179
|
-
this.
|
|
180
|
-
var _props_customOptions;
|
|
181
|
-
this.customOptions = (_props_customOptions = props === null || props === void 0 ? void 0 : props.customOptions) !== null && _props_customOptions !== void 0 ? _props_customOptions : [];
|
|
172
|
+
this.type = (_ref = props === null || props === void 0 ? void 0 : props.type) !== null && _ref !== void 0 ? _ref : 'firstThree';
|
|
173
|
+
this.customOptions = (_ref1 = props === null || props === void 0 ? void 0 : props.customOptions) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
182
174
|
};
|
|
183
175
|
export var FormBind = function FormBind(props) {
|
|
184
176
|
"use strict";
|
|
185
177
|
_class_call_check(this, FormBind);
|
|
178
|
+
var _ref, _ref1, _ref2;
|
|
186
179
|
_define_property(this, "dataCode", void 0);
|
|
187
180
|
_define_property(this, "formKey", void 0);
|
|
188
181
|
_define_property(this, "appId", void 0);
|
|
189
|
-
|
|
190
|
-
this.
|
|
191
|
-
|
|
192
|
-
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : '';
|
|
193
|
-
var _props_appId;
|
|
194
|
-
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : '';
|
|
182
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
183
|
+
this.formKey = (_ref1 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
184
|
+
this.appId = (_ref2 = props === null || props === void 0 ? void 0 : props.appId) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
195
185
|
};
|
|
196
186
|
export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
197
187
|
"use strict";
|
|
@@ -199,70 +189,65 @@ export var FormSelectBind = /*#__PURE__*/ function(FormBind) {
|
|
|
199
189
|
function FormSelectBind(props) {
|
|
200
190
|
_class_call_check(this, FormSelectBind);
|
|
201
191
|
var _this;
|
|
192
|
+
var _ref;
|
|
202
193
|
_this = _call_super(this, FormSelectBind, [
|
|
203
194
|
props
|
|
204
195
|
]), _define_property(_this, "primaryControlId", void 0);
|
|
205
|
-
|
|
206
|
-
_this.primaryControlId = (_props_primaryControlId = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && _props_primaryControlId !== void 0 ? _props_primaryControlId : '';
|
|
196
|
+
_this.primaryControlId = (_ref = props === null || props === void 0 ? void 0 : props.primaryControlId) !== null && _ref !== void 0 ? _ref : '';
|
|
207
197
|
return _this;
|
|
208
198
|
}
|
|
209
199
|
return FormSelectBind;
|
|
210
200
|
}(FormBind);
|
|
211
|
-
/**
|
|
212
|
-
* 列表绑定字段项
|
|
213
|
-
* @public
|
|
201
|
+
/**
|
|
202
|
+
* 列表绑定字段项
|
|
203
|
+
* @public
|
|
214
204
|
*/ var ListBindHeaderItem = function ListBindHeaderItem(props) {
|
|
215
205
|
"use strict";
|
|
216
206
|
_class_call_check(this, ListBindHeaderItem);
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
*
|
|
207
|
+
var _ref, _ref1;
|
|
208
|
+
/**
|
|
209
|
+
* 字段
|
|
210
|
+
* @defaultValue ''
|
|
220
211
|
*/ _define_property(this, "fieldCode", void 0);
|
|
221
212
|
_define_property(this, "dataCode", void 0);
|
|
222
|
-
|
|
223
|
-
this.
|
|
224
|
-
var _props_dataCode;
|
|
225
|
-
this.dataCode = (_props_dataCode = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _props_dataCode !== void 0 ? _props_dataCode : '';
|
|
213
|
+
this.fieldCode = (_ref = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _ref !== void 0 ? _ref : '';
|
|
214
|
+
this.dataCode = (_ref1 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
226
215
|
};
|
|
227
|
-
/**
|
|
228
|
-
* 列表绑定配置
|
|
216
|
+
/**
|
|
217
|
+
* 列表绑定配置
|
|
229
218
|
*/ export var ListBind = function ListBind(props) {
|
|
230
219
|
"use strict";
|
|
231
220
|
_class_call_check(this, ListBind);
|
|
221
|
+
var _ref, _ref1, _ref2;
|
|
232
222
|
var _props_headers;
|
|
233
|
-
/**
|
|
234
|
-
* 应用ID
|
|
235
|
-
* @public
|
|
223
|
+
/**
|
|
224
|
+
* 应用ID
|
|
225
|
+
* @public
|
|
236
226
|
*/ _define_property(this, "appId", void 0);
|
|
237
|
-
/**
|
|
238
|
-
* 表单ID
|
|
239
|
-
* @public
|
|
227
|
+
/**
|
|
228
|
+
* 表单ID
|
|
229
|
+
* @public
|
|
240
230
|
*/ _define_property(this, "formKey", void 0);
|
|
241
|
-
/**
|
|
242
|
-
* 显示字段
|
|
243
|
-
* @public
|
|
231
|
+
/**
|
|
232
|
+
* 显示字段
|
|
233
|
+
* @public
|
|
244
234
|
*/ _define_property(this, "headers", void 0);
|
|
245
|
-
|
|
246
|
-
this.
|
|
247
|
-
|
|
248
|
-
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : '';
|
|
249
|
-
var _props_headers_map;
|
|
250
|
-
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) {
|
|
235
|
+
this.appId = (_ref = props === null || props === void 0 ? void 0 : props.appId) !== null && _ref !== void 0 ? _ref : '';
|
|
236
|
+
this.formKey = (_ref1 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
237
|
+
this.headers = (_ref2 = props === null || props === void 0 ? void 0 : (_props_headers = props.headers) === null || _props_headers === void 0 ? void 0 : _props_headers.map(function(item) {
|
|
251
238
|
return new ListBindHeaderItem(item);
|
|
252
|
-
})) !== null &&
|
|
239
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
253
240
|
};
|
|
254
241
|
export var FieldBindItem = function FieldBindItem(props) {
|
|
255
242
|
"use strict";
|
|
256
243
|
_class_call_check(this, FieldBindItem);
|
|
244
|
+
var _ref, _ref1, _ref2;
|
|
257
245
|
_define_property(this, "fieldName", void 0);
|
|
258
246
|
_define_property(this, "fieldCode", void 0);
|
|
259
247
|
_define_property(this, "fieldType", void 0);
|
|
260
|
-
|
|
261
|
-
this.
|
|
262
|
-
|
|
263
|
-
this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : '';
|
|
264
|
-
var _props_fieldType;
|
|
265
|
-
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : FieldTypes.VARCHAR;
|
|
248
|
+
this.fieldName = (_ref = props === null || props === void 0 ? void 0 : props.fieldName) !== null && _ref !== void 0 ? _ref : '';
|
|
249
|
+
this.fieldCode = (_ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
250
|
+
this.fieldType = (_ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref2 !== void 0 ? _ref2 : FieldTypes.VARCHAR;
|
|
266
251
|
};
|
|
267
252
|
export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
268
253
|
"use strict";
|
|
@@ -270,17 +255,14 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
270
255
|
function SubListItem(props) {
|
|
271
256
|
_class_call_check(this, SubListItem);
|
|
272
257
|
var _this;
|
|
258
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
273
259
|
_this = _call_super(this, SubListItem, [
|
|
274
260
|
props
|
|
275
261
|
]), _define_property(_this, "title", void 0), _define_property(_this, "svcCode", void 0), _define_property(_this, "isOpenFilter", void 0), _define_property(_this, "filters", void 0);
|
|
276
|
-
|
|
277
|
-
_this.
|
|
278
|
-
|
|
279
|
-
_this.
|
|
280
|
-
var _props_isOpenFilter;
|
|
281
|
-
_this.isOpenFilter = (_props_isOpenFilter = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && _props_isOpenFilter !== void 0 ? _props_isOpenFilter : false;
|
|
282
|
-
var _props_filters;
|
|
283
|
-
_this.filters = (_props_filters = props === null || props === void 0 ? void 0 : props.filters) !== null && _props_filters !== void 0 ? _props_filters : [];
|
|
262
|
+
_this.title = (_ref = props === null || props === void 0 ? void 0 : props.title) !== null && _ref !== void 0 ? _ref : '';
|
|
263
|
+
_this.svcCode = (_ref1 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
264
|
+
_this.isOpenFilter = (_ref2 = props === null || props === void 0 ? void 0 : props.isOpenFilter) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
265
|
+
_this.filters = (_ref3 = props === null || props === void 0 ? void 0 : props.filters) !== null && _ref3 !== void 0 ? _ref3 : [];
|
|
284
266
|
return _this;
|
|
285
267
|
}
|
|
286
268
|
return SubListItem;
|
|
@@ -288,20 +270,19 @@ export var SubListItem = /*#__PURE__*/ function(FormBind) {
|
|
|
288
270
|
export var SubListPageConfig = function SubListPageConfig(props) {
|
|
289
271
|
"use strict";
|
|
290
272
|
_class_call_check(this, SubListPageConfig);
|
|
273
|
+
var _ref, _ref1;
|
|
291
274
|
var _props_displayFields, _props_sublists;
|
|
292
275
|
_define_property(this, "type", 'sublist-page');
|
|
293
276
|
_define_property(this, "formBind", void 0);
|
|
294
277
|
_define_property(this, "displayFields", void 0);
|
|
295
278
|
_define_property(this, "sublists", void 0);
|
|
296
279
|
this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
297
|
-
|
|
298
|
-
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) {
|
|
280
|
+
this.displayFields = (_ref = props === null || props === void 0 ? void 0 : (_props_displayFields = props.displayFields) === null || _props_displayFields === void 0 ? void 0 : _props_displayFields.map(function(item) {
|
|
299
281
|
return new FieldBindItem(item);
|
|
300
|
-
})) !== null &&
|
|
301
|
-
|
|
302
|
-
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) {
|
|
282
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
283
|
+
this.sublists = (_ref1 = props === null || props === void 0 ? void 0 : (_props_sublists = props.sublists) === null || _props_sublists === void 0 ? void 0 : _props_sublists.map(function(item) {
|
|
303
284
|
return new SubListItem(item);
|
|
304
|
-
})) !== null &&
|
|
285
|
+
})) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
305
286
|
};
|
|
306
287
|
export var LeftVariable = function LeftVariable(props) {
|
|
307
288
|
"use strict";
|
|
@@ -316,55 +297,50 @@ export var LeftVariable = function LeftVariable(props) {
|
|
|
316
297
|
export var RightVariable = function RightVariable(props) {
|
|
317
298
|
"use strict";
|
|
318
299
|
_class_call_check(this, RightVariable);
|
|
300
|
+
var _ref, _ref1, _ref2;
|
|
319
301
|
_define_property(this, "type", void 0);
|
|
320
302
|
_define_property(this, "value", void 0);
|
|
321
303
|
_define_property(this, "displayBos", void 0);
|
|
322
|
-
|
|
323
|
-
this.
|
|
324
|
-
|
|
325
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : [];
|
|
326
|
-
var _props_displayBos;
|
|
327
|
-
this.displayBos = (_props_displayBos = props === null || props === void 0 ? void 0 : props.displayBos) !== null && _props_displayBos !== void 0 ? _props_displayBos : [];
|
|
304
|
+
this.type = (_ref = props === null || props === void 0 ? void 0 : props.type) !== null && _ref !== void 0 ? _ref : 'custom';
|
|
305
|
+
this.value = (_ref1 = props === null || props === void 0 ? void 0 : props.value) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
306
|
+
this.displayBos = (_ref2 = props === null || props === void 0 ? void 0 : props.displayBos) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
328
307
|
};
|
|
329
|
-
/**
|
|
330
|
-
* 连接符条件
|
|
331
|
-
* @public
|
|
308
|
+
/**
|
|
309
|
+
* 连接符条件
|
|
310
|
+
* @public
|
|
332
311
|
*/ export var FieldFilterConditions = function FieldFilterConditions(props) {
|
|
333
312
|
"use strict";
|
|
334
313
|
var _this = this;
|
|
335
314
|
_class_call_check(this, FieldFilterConditions);
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
*
|
|
315
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
316
|
+
/**
|
|
317
|
+
* 编号
|
|
318
|
+
* @defaultValue ''
|
|
339
319
|
*/ _define_property(this, "id", void 0);
|
|
340
|
-
/**
|
|
341
|
-
* 规则编号
|
|
342
|
-
* @defaultValue Timestamp
|
|
320
|
+
/**
|
|
321
|
+
* 规则编号
|
|
322
|
+
* @defaultValue Timestamp
|
|
343
323
|
*/ _define_property(this, "ruleId", void 0);
|
|
344
|
-
/**
|
|
345
|
-
* 类型:连接符条件
|
|
346
|
-
* @defaultValue 'conditions'
|
|
324
|
+
/**
|
|
325
|
+
* 类型:连接符条件
|
|
326
|
+
* @defaultValue 'conditions'
|
|
347
327
|
*/ _define_property(this, "type", 'conditions');
|
|
348
|
-
/**
|
|
349
|
-
* 深度
|
|
350
|
-
* @defaultValue 0
|
|
328
|
+
/**
|
|
329
|
+
* 深度
|
|
330
|
+
* @defaultValue 0
|
|
351
331
|
*/ _define_property(this, "level", void 0);
|
|
352
|
-
/**
|
|
353
|
-
* 连接符值
|
|
354
|
-
* @defaultValue 'and'
|
|
332
|
+
/**
|
|
333
|
+
* 连接符值
|
|
334
|
+
* @defaultValue 'and'
|
|
355
335
|
*/ _define_property(this, "value", void 0);
|
|
356
|
-
/**
|
|
357
|
-
* 包含子项
|
|
358
|
-
* @defaultValue []
|
|
336
|
+
/**
|
|
337
|
+
* 包含子项
|
|
338
|
+
* @defaultValue []
|
|
359
339
|
*/ _define_property(this, "children", void 0);
|
|
360
|
-
|
|
361
|
-
this.
|
|
362
|
-
|
|
363
|
-
this.
|
|
364
|
-
var _props_level;
|
|
365
|
-
this.level = (_props_level = props === null || props === void 0 ? void 0 : props.level) !== null && _props_level !== void 0 ? _props_level : 0;
|
|
366
|
-
var _props_value;
|
|
367
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : 'and';
|
|
340
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId();
|
|
341
|
+
this.ruleId = (_ref1 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _ref1 !== void 0 ? _ref1 : new Date().valueOf();
|
|
342
|
+
this.level = (_ref2 = props === null || props === void 0 ? void 0 : props.level) !== null && _ref2 !== void 0 ? _ref2 : 0;
|
|
343
|
+
this.value = (_ref3 = props === null || props === void 0 ? void 0 : props.value) !== null && _ref3 !== void 0 ? _ref3 : 'and';
|
|
368
344
|
this.children = [];
|
|
369
345
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
370
346
|
props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
@@ -380,338 +356,312 @@ export var RightVariable = function RightVariable(props) {
|
|
|
380
356
|
});
|
|
381
357
|
}
|
|
382
358
|
};
|
|
383
|
-
/**
|
|
384
|
-
* 字段过滤条件
|
|
385
|
-
* @public
|
|
359
|
+
/**
|
|
360
|
+
* 字段过滤条件
|
|
361
|
+
* @public
|
|
386
362
|
*/ export var FieldFilterCondition = function FieldFilterCondition(props) {
|
|
387
363
|
"use strict";
|
|
388
364
|
_class_call_check(this, FieldFilterCondition);
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
*
|
|
365
|
+
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
366
|
+
/**
|
|
367
|
+
* 唯一编号
|
|
368
|
+
* @defaultValue ''
|
|
392
369
|
*/ _define_property(this, "id", void 0);
|
|
393
|
-
/**
|
|
394
|
-
* 规则编号
|
|
395
|
-
* @defaultValue Timestamp
|
|
370
|
+
/**
|
|
371
|
+
* 规则编号
|
|
372
|
+
* @defaultValue Timestamp
|
|
396
373
|
*/ _define_property(this, "ruleId", void 0);
|
|
397
|
-
/**
|
|
398
|
-
* 类型
|
|
399
|
-
* @defaultValue 'condition'
|
|
374
|
+
/**
|
|
375
|
+
* 类型
|
|
376
|
+
* @defaultValue 'condition'
|
|
400
377
|
*/ _define_property(this, "type", 'condition');
|
|
401
|
-
/**
|
|
402
|
-
* 符号
|
|
378
|
+
/**
|
|
379
|
+
* 符号
|
|
403
380
|
*/ _define_property(this, "symbol", void 0);
|
|
404
381
|
_define_property(this, "checked", void 0);
|
|
405
382
|
_define_property(this, "describe", void 0);
|
|
406
|
-
/**
|
|
407
|
-
* 左值
|
|
383
|
+
/**
|
|
384
|
+
* 左值
|
|
408
385
|
*/ _define_property(this, "leftVariableBo", void 0);
|
|
409
|
-
/**
|
|
410
|
-
* 右值
|
|
386
|
+
/**
|
|
387
|
+
* 右值
|
|
411
388
|
*/ _define_property(this, "rightVariableBo", void 0);
|
|
412
|
-
|
|
413
|
-
this.
|
|
414
|
-
|
|
415
|
-
this.
|
|
416
|
-
|
|
417
|
-
this.symbol = (_props_symbol = props === null || props === void 0 ? void 0 : props.symbol) !== null && _props_symbol !== void 0 ? _props_symbol : '';
|
|
418
|
-
var _props_checked;
|
|
419
|
-
this.checked = (_props_checked = props === null || props === void 0 ? void 0 : props.checked) !== null && _props_checked !== void 0 ? _props_checked : false;
|
|
420
|
-
var _props_describe;
|
|
421
|
-
this.describe = (_props_describe = props === null || props === void 0 ? void 0 : props.describe) !== null && _props_describe !== void 0 ? _props_describe : '';
|
|
389
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId();
|
|
390
|
+
this.ruleId = (_ref1 = props === null || props === void 0 ? void 0 : props.ruleId) !== null && _ref1 !== void 0 ? _ref1 : new Date().valueOf();
|
|
391
|
+
this.symbol = (_ref2 = props === null || props === void 0 ? void 0 : props.symbol) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
392
|
+
this.checked = (_ref3 = props === null || props === void 0 ? void 0 : props.checked) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
393
|
+
this.describe = (_ref4 = props === null || props === void 0 ? void 0 : props.describe) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
422
394
|
this.leftVariableBo = new LeftVariable(props === null || props === void 0 ? void 0 : props.leftVariableBo);
|
|
423
395
|
this.rightVariableBo = new RightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
424
396
|
};
|
|
425
397
|
export var JoinRelation = function JoinRelation(props) {
|
|
426
398
|
"use strict";
|
|
427
399
|
_class_call_check(this, JoinRelation);
|
|
400
|
+
var _ref, _ref1;
|
|
428
401
|
_define_property(this, "aliasCode", void 0);
|
|
429
402
|
_define_property(this, "datasourceBind", void 0);
|
|
430
403
|
_define_property(this, "relationFields", void 0);
|
|
431
|
-
|
|
432
|
-
this.aliasCode = (_props_aliasCode = props === null || props === void 0 ? void 0 : props.aliasCode) !== null && _props_aliasCode !== void 0 ? _props_aliasCode : '';
|
|
404
|
+
this.aliasCode = (_ref = props === null || props === void 0 ? void 0 : props.aliasCode) !== null && _ref !== void 0 ? _ref : '';
|
|
433
405
|
this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
434
|
-
|
|
435
|
-
this.relationFields = (_props_relationFields = props === null || props === void 0 ? void 0 : props.relationFields) !== null && _props_relationFields !== void 0 ? _props_relationFields : [];
|
|
406
|
+
this.relationFields = (_ref1 = props === null || props === void 0 ? void 0 : props.relationFields) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
436
407
|
};
|
|
437
|
-
/**
|
|
438
|
-
* 数据填充项
|
|
439
|
-
* @public
|
|
408
|
+
/**
|
|
409
|
+
* 数据填充项
|
|
410
|
+
* @public
|
|
440
411
|
*/ export var MultistageFillingItem = function MultistageFillingItem(props) {
|
|
441
412
|
"use strict";
|
|
442
413
|
_class_call_check(this, MultistageFillingItem);
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
*
|
|
446
|
-
* @
|
|
414
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
415
|
+
/**
|
|
416
|
+
* 控件ID
|
|
417
|
+
* @defaultValue ''
|
|
418
|
+
* @public
|
|
447
419
|
*/ _define_property(this, "controlId", void 0);
|
|
448
|
-
/**
|
|
449
|
-
* 字段
|
|
450
|
-
* @defaultValue ''
|
|
451
|
-
* @public
|
|
420
|
+
/**
|
|
421
|
+
* 字段
|
|
422
|
+
* @defaultValue ''
|
|
423
|
+
* @public
|
|
452
424
|
*/ _define_property(this, "fieldCode", void 0);
|
|
453
|
-
/**
|
|
454
|
-
* 字段类型。事件在填充时,需要根据数据类型进行判断处理动作。
|
|
455
|
-
* @defaultValue ''
|
|
456
|
-
* @public
|
|
425
|
+
/**
|
|
426
|
+
* 字段类型。事件在填充时,需要根据数据类型进行判断处理动作。
|
|
427
|
+
* @defaultValue ''
|
|
428
|
+
* @public
|
|
457
429
|
*/ _define_property(this, "fieldType", void 0);
|
|
458
|
-
/**
|
|
459
|
-
* 属性名称。如果是ObjectDataBind的控件,可以指定填充到哪个数据项。
|
|
460
|
-
* @defaultValue ''
|
|
461
|
-
* @public
|
|
430
|
+
/**
|
|
431
|
+
* 属性名称。如果是ObjectDataBind的控件,可以指定填充到哪个数据项。
|
|
432
|
+
* @defaultValue ''
|
|
433
|
+
* @public
|
|
462
434
|
* */ _define_property(this, "propName", void 0);
|
|
463
|
-
|
|
464
|
-
this.
|
|
465
|
-
|
|
466
|
-
this.
|
|
467
|
-
var _props_fieldType;
|
|
468
|
-
this.fieldType = (_props_fieldType = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _props_fieldType !== void 0 ? _props_fieldType : '';
|
|
469
|
-
var _props_propName;
|
|
470
|
-
this.propName = (_props_propName = props === null || props === void 0 ? void 0 : props.propName) !== null && _props_propName !== void 0 ? _props_propName : '';
|
|
435
|
+
this.controlId = (_ref = props === null || props === void 0 ? void 0 : props.controlId) !== null && _ref !== void 0 ? _ref : '';
|
|
436
|
+
this.fieldCode = (_ref1 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
437
|
+
this.fieldType = (_ref2 = props === null || props === void 0 ? void 0 : props.fieldType) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
438
|
+
this.propName = (_ref3 = props === null || props === void 0 ? void 0 : props.propName) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
471
439
|
};
|
|
472
|
-
/**
|
|
473
|
-
* 显示项
|
|
474
|
-
* @public
|
|
440
|
+
/**
|
|
441
|
+
* 显示项
|
|
442
|
+
* @public
|
|
475
443
|
*/ export var DisplayBoListItem = function DisplayBoListItem(props) {
|
|
476
444
|
"use strict";
|
|
477
445
|
_class_call_check(this, DisplayBoListItem);
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
*
|
|
481
|
-
* @
|
|
446
|
+
var _ref, _ref1;
|
|
447
|
+
/**
|
|
448
|
+
* 显示项类型:字段 | 符号
|
|
449
|
+
* @defaultValue 'FIELD'
|
|
450
|
+
* @public
|
|
482
451
|
*/ _define_property(this, "type", void 0);
|
|
483
|
-
/**
|
|
484
|
-
* 值
|
|
452
|
+
/**
|
|
453
|
+
* 值
|
|
485
454
|
*/ _define_property(this, "value", void 0);
|
|
486
|
-
/**
|
|
487
|
-
* 字段数据类型
|
|
455
|
+
/**
|
|
456
|
+
* 字段数据类型
|
|
488
457
|
*/ _define_property(this, "fieldType", void 0);
|
|
489
|
-
|
|
490
|
-
this.
|
|
491
|
-
var _props_value;
|
|
492
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : '';
|
|
458
|
+
this.type = (_ref = props === null || props === void 0 ? void 0 : props.type) !== null && _ref !== void 0 ? _ref : 'FIELD';
|
|
459
|
+
this.value = (_ref1 = props === null || props === void 0 ? void 0 : props.value) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
493
460
|
this.fieldType = props === null || props === void 0 ? void 0 : props.fieldType;
|
|
494
461
|
};
|
|
495
462
|
export var OptionDisplayConfigItem = function OptionDisplayConfigItem(props) {
|
|
496
463
|
"use strict";
|
|
497
464
|
_class_call_check(this, OptionDisplayConfigItem);
|
|
498
|
-
|
|
499
|
-
|
|
465
|
+
var _ref, _ref1;
|
|
466
|
+
/**
|
|
467
|
+
* 标题
|
|
500
468
|
*/ _define_property(this, "title", void 0);
|
|
501
|
-
/**
|
|
502
|
-
* 字段数据类型
|
|
469
|
+
/**
|
|
470
|
+
* 字段数据类型
|
|
503
471
|
*/ _define_property(this, "displayBoList", void 0);
|
|
504
|
-
|
|
505
|
-
this.
|
|
506
|
-
var _props_displayBoList;
|
|
507
|
-
this.displayBoList = (_props_displayBoList = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _props_displayBoList !== void 0 ? _props_displayBoList : [];
|
|
472
|
+
this.title = (_ref = props === null || props === void 0 ? void 0 : props.title) !== null && _ref !== void 0 ? _ref : '';
|
|
473
|
+
this.displayBoList = (_ref1 = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
508
474
|
};
|
|
509
|
-
/**
|
|
510
|
-
* 数据源排序项
|
|
511
|
-
* @public
|
|
475
|
+
/**
|
|
476
|
+
* 数据源排序项
|
|
477
|
+
* @public
|
|
512
478
|
*/ export var DataSourceOrderItem = function DataSourceOrderItem(props) {
|
|
513
479
|
"use strict";
|
|
514
480
|
_class_call_check(this, DataSourceOrderItem);
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
*
|
|
481
|
+
var _props_columnName, _props_desc;
|
|
482
|
+
/**
|
|
483
|
+
* 列名
|
|
484
|
+
* @defaultValue ''
|
|
518
485
|
*/ _define_property(this, "columnName", void 0);
|
|
519
|
-
/**
|
|
520
|
-
* 倒序
|
|
521
|
-
* @defaultValue false
|
|
486
|
+
/**
|
|
487
|
+
* 倒序
|
|
488
|
+
* @defaultValue false
|
|
522
489
|
*/ _define_property(this, "desc", void 0);
|
|
523
|
-
var _props_columnName;
|
|
524
490
|
this.columnName = (_props_columnName = props.columnName) !== null && _props_columnName !== void 0 ? _props_columnName : '';
|
|
525
|
-
var _props_desc;
|
|
526
491
|
this.desc = (_props_desc = props.desc) !== null && _props_desc !== void 0 ? _props_desc : false;
|
|
527
492
|
};
|
|
528
493
|
export var DataSourceDataSetValue = function DataSourceDataSetValue(props) {
|
|
529
494
|
"use strict";
|
|
530
495
|
_class_call_check(this, DataSourceDataSetValue);
|
|
496
|
+
var _props_code, _props_value, _props_field_type;
|
|
531
497
|
// fieldCode
|
|
532
498
|
_define_property(this, "code", void 0);
|
|
533
499
|
// 值
|
|
534
500
|
_define_property(this, "value", void 0);
|
|
535
501
|
// 数据类型
|
|
536
502
|
_define_property(this, "field_type", void 0);
|
|
537
|
-
var _props_code;
|
|
538
503
|
this.code = (_props_code = props.code) !== null && _props_code !== void 0 ? _props_code : '';
|
|
539
|
-
var _props_value;
|
|
540
504
|
this.value = (_props_value = props.value) !== null && _props_value !== void 0 ? _props_value : '';
|
|
541
|
-
var _props_field_type;
|
|
542
505
|
this.field_type = (_props_field_type = props.field_type) !== null && _props_field_type !== void 0 ? _props_field_type : FieldTypes.ANY;
|
|
543
506
|
};
|
|
544
507
|
export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
545
508
|
"use strict";
|
|
546
509
|
_class_call_check(this, DataSourceParamItem);
|
|
510
|
+
var _props_id, _props_limit, _props_formKey, _ref, _ref1;
|
|
547
511
|
var _props_orders, _props_dataSet;
|
|
548
|
-
/**
|
|
549
|
-
* 字段ID
|
|
512
|
+
/**
|
|
513
|
+
* 字段ID
|
|
550
514
|
*/ _define_property(this, "id", void 0);
|
|
551
515
|
_define_property(this, "limit", void 0);
|
|
552
516
|
_define_property(this, "orders", void 0);
|
|
553
517
|
_define_property(this, "formKey", void 0);
|
|
554
518
|
_define_property(this, "dataSet", void 0);
|
|
555
|
-
var _props_id;
|
|
556
519
|
//字段ID,不可以当作随机数生成唯一编号
|
|
557
520
|
this.id = (_props_id = props.id) !== null && _props_id !== void 0 ? _props_id : '';
|
|
558
|
-
var _props_limit;
|
|
559
521
|
this.limit = (_props_limit = props.limit) !== null && _props_limit !== void 0 ? _props_limit : 20;
|
|
560
|
-
var _props_formKey;
|
|
561
522
|
this.formKey = (_props_formKey = props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : '';
|
|
562
|
-
|
|
563
|
-
this.orders = (_props_orders_map = (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
|
|
523
|
+
this.orders = (_ref = (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
|
|
564
524
|
return new DataSourceOrderItem(item);
|
|
565
|
-
})) !== null &&
|
|
566
|
-
|
|
567
|
-
this.dataSet = (_props_dataSet_map = (_props_dataSet = props.dataSet) === null || _props_dataSet === void 0 ? void 0 : _props_dataSet.map(function(item) {
|
|
525
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
526
|
+
this.dataSet = (_ref1 = (_props_dataSet = props.dataSet) === null || _props_dataSet === void 0 ? void 0 : _props_dataSet.map(function(item) {
|
|
568
527
|
return new DataSourceDataSetValue(item);
|
|
569
|
-
})) !== null &&
|
|
528
|
+
})) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
570
529
|
};
|
|
571
|
-
/**
|
|
572
|
-
* 给filters和orders赋值
|
|
530
|
+
/**
|
|
531
|
+
* 给filters和orders赋值
|
|
573
532
|
* */ function callFiltersAndOrders(props) {
|
|
533
|
+
var _ref, _ref1, _ref2;
|
|
574
534
|
var _props_filters, _props_viewFilters, _props_orders;
|
|
575
|
-
|
|
576
|
-
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) {
|
|
535
|
+
this.filters = (_ref = props === null || props === void 0 ? void 0 : (_props_filters = props.filters) === null || _props_filters === void 0 ? void 0 : _props_filters.map(function(item) {
|
|
577
536
|
if (item.children !== undefined) {
|
|
578
537
|
return new FieldFilterConditions(item);
|
|
579
538
|
}
|
|
580
539
|
return new FieldFilterCondition(item);
|
|
581
|
-
})) !== null &&
|
|
582
|
-
|
|
583
|
-
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) {
|
|
540
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
541
|
+
this.viewFilters = (_ref1 = props === null || props === void 0 ? void 0 : (_props_viewFilters = props.viewFilters) === null || _props_viewFilters === void 0 ? void 0 : _props_viewFilters.map(function(item) {
|
|
584
542
|
if (item.children !== undefined) {
|
|
585
543
|
return new FieldFilterConditions(item);
|
|
586
544
|
}
|
|
587
545
|
return new FieldFilterCondition(item);
|
|
588
|
-
})) !== null &&
|
|
589
|
-
|
|
590
|
-
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) {
|
|
546
|
+
})) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
547
|
+
this.orders = (_ref2 = props === null || props === void 0 ? void 0 : (_props_orders = props.orders) === null || _props_orders === void 0 ? void 0 : _props_orders.map(function(item) {
|
|
591
548
|
return new DataSourceOrderItem(item);
|
|
592
|
-
})) !== null &&
|
|
549
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
593
550
|
// }
|
|
594
551
|
}
|
|
595
|
-
/**
|
|
596
|
-
* 数据源绑定配置
|
|
597
|
-
* @public
|
|
552
|
+
/**
|
|
553
|
+
* 数据源绑定配置
|
|
554
|
+
* @public
|
|
598
555
|
*/ export var DataSourceBind = function DataSourceBind(props) {
|
|
599
556
|
"use strict";
|
|
600
557
|
var _this = this;
|
|
601
558
|
_class_call_check(this, DataSourceBind);
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
*
|
|
605
|
-
* @
|
|
559
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
560
|
+
/**
|
|
561
|
+
* 绑定数据源id
|
|
562
|
+
* @defaultValue ''
|
|
563
|
+
* @public
|
|
606
564
|
*/ _define_property(this, "dataCode", void 0);
|
|
607
|
-
/**
|
|
608
|
-
* 存储值
|
|
609
|
-
* @defaultValue ''
|
|
610
|
-
* @public
|
|
565
|
+
/**
|
|
566
|
+
* 存储值
|
|
567
|
+
* @defaultValue ''
|
|
568
|
+
* @public
|
|
611
569
|
*/ _define_property(this, "valueFieldCode", void 0);
|
|
612
|
-
/**
|
|
613
|
-
* 显示值
|
|
614
|
-
* @defaultValue []
|
|
615
|
-
* @public
|
|
570
|
+
/**
|
|
571
|
+
* 显示值
|
|
572
|
+
* @defaultValue []
|
|
573
|
+
* @public
|
|
616
574
|
*/ _define_property(this, "displayBoList", void 0);
|
|
617
|
-
/**
|
|
618
|
-
* 查询关键字参数映射
|
|
619
|
-
* @defaultValue ''
|
|
620
|
-
* @public
|
|
575
|
+
/**
|
|
576
|
+
* 查询关键字参数映射
|
|
577
|
+
* @defaultValue ''
|
|
578
|
+
* @public
|
|
621
579
|
*/ _define_property(this, "keywordMapping", void 0);
|
|
622
|
-
/**
|
|
623
|
-
* 绑定服务
|
|
624
|
-
* @defaultValue ''
|
|
625
|
-
* @public
|
|
580
|
+
/**
|
|
581
|
+
* 绑定服务
|
|
582
|
+
* @defaultValue ''
|
|
583
|
+
* @public
|
|
626
584
|
*/ _define_property(this, "svcCode", void 0);
|
|
627
|
-
/**
|
|
628
|
-
* 应用Id
|
|
629
|
-
* @defaultValue ''
|
|
630
|
-
* @public
|
|
585
|
+
/**
|
|
586
|
+
* 应用Id
|
|
587
|
+
* @defaultValue ''
|
|
588
|
+
* @public
|
|
631
589
|
*/ _define_property(this, "appId", void 0);
|
|
632
|
-
/**
|
|
633
|
-
* 过滤条件
|
|
634
|
-
* @defaultValue []
|
|
635
|
-
* @public
|
|
590
|
+
/**
|
|
591
|
+
* 过滤条件
|
|
592
|
+
* @defaultValue []
|
|
593
|
+
* @public
|
|
636
594
|
*/ _define_property(this, "filters", void 0);
|
|
637
595
|
// 过滤
|
|
638
|
-
/**
|
|
639
|
-
* 过滤条件-查看过滤
|
|
640
|
-
* @defaultValue []
|
|
641
|
-
* @public
|
|
596
|
+
/**
|
|
597
|
+
* 过滤条件-查看过滤
|
|
598
|
+
* @defaultValue []
|
|
599
|
+
* @public
|
|
642
600
|
*/ _define_property(this, "viewFilters", void 0);
|
|
643
|
-
/**
|
|
644
|
-
* 是否开启查看过滤
|
|
645
|
-
* @defaultValue 0:未开启;1:开启
|
|
646
|
-
* @public
|
|
601
|
+
/**
|
|
602
|
+
* 是否开启查看过滤
|
|
603
|
+
* @defaultValue 0:未开启;1:开启
|
|
604
|
+
* @public
|
|
647
605
|
*/ _define_property(this, "isOpenViewFilters", void 0);
|
|
648
|
-
/**
|
|
649
|
-
* 排序
|
|
650
|
-
* @defaultValue []
|
|
651
|
-
* @public
|
|
606
|
+
/**
|
|
607
|
+
* 排序
|
|
608
|
+
* @defaultValue []
|
|
609
|
+
* @public
|
|
652
610
|
*/ _define_property(this, "orders", void 0);
|
|
653
|
-
/**
|
|
654
|
-
* 显示排序
|
|
655
|
-
* @defaultValue true
|
|
656
|
-
* @public
|
|
611
|
+
/**
|
|
612
|
+
* 显示排序
|
|
613
|
+
* @defaultValue true
|
|
614
|
+
* @public
|
|
657
615
|
*/ _define_property(this, "showOrder", void 0);
|
|
658
|
-
/**
|
|
659
|
-
* 部门或者人员指定部门配置
|
|
660
|
-
* @defaultValue {}
|
|
661
|
-
* @public
|
|
616
|
+
/**
|
|
617
|
+
* 部门或者人员指定部门配置
|
|
618
|
+
* @defaultValue {}
|
|
619
|
+
* @public
|
|
662
620
|
*/ _define_property(this, "assignDepartment", void 0);
|
|
663
|
-
/**
|
|
664
|
-
* 部门或者人员指定部门配置是否开启
|
|
665
|
-
* @defaultValue {}
|
|
666
|
-
* @public
|
|
621
|
+
/**
|
|
622
|
+
* 部门或者人员指定部门配置是否开启
|
|
623
|
+
* @defaultValue {}
|
|
624
|
+
* @public
|
|
667
625
|
*/ _define_property(this, "openAssignDepartment", void 0);
|
|
668
|
-
|
|
669
|
-
this.
|
|
670
|
-
|
|
671
|
-
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : '';
|
|
672
|
-
var _props_valueFieldCode;
|
|
673
|
-
this.valueFieldCode = (_props_valueFieldCode = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && _props_valueFieldCode !== void 0 ? _props_valueFieldCode : '';
|
|
626
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
627
|
+
this.appId = (_ref1 = props === null || props === void 0 ? void 0 : props.appId) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
628
|
+
this.valueFieldCode = (_ref2 = props === null || props === void 0 ? void 0 : props.valueFieldCode) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
674
629
|
this.displayBoList = [];
|
|
675
|
-
|
|
676
|
-
this.isOpenViewFilters = (_props_isOpenViewFilters = props === null || props === void 0 ? void 0 : props.isOpenViewFilters) !== null && _props_isOpenViewFilters !== void 0 ? _props_isOpenViewFilters : 0;
|
|
630
|
+
this.isOpenViewFilters = (_ref3 = props === null || props === void 0 ? void 0 : props.isOpenViewFilters) !== null && _ref3 !== void 0 ? _ref3 : 0;
|
|
677
631
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.displayBoList)) {
|
|
678
632
|
props === null || props === void 0 ? void 0 : props.displayBoList.map(function(item) {
|
|
679
633
|
var _this_displayBoList;
|
|
680
634
|
(_this_displayBoList = _this.displayBoList) === null || _this_displayBoList === void 0 ? void 0 : _this_displayBoList.push(new DisplayBoListItem(item));
|
|
681
635
|
});
|
|
682
636
|
}
|
|
683
|
-
|
|
684
|
-
this.
|
|
685
|
-
|
|
686
|
-
this.showOrder = (_props_showOrder = props === null || props === void 0 ? void 0 : props.showOrder) !== null && _props_showOrder !== void 0 ? _props_showOrder : true;
|
|
687
|
-
var _props_svcCode;
|
|
688
|
-
this.svcCode = (_props_svcCode = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _props_svcCode !== void 0 ? _props_svcCode : '';
|
|
637
|
+
this.keywordMapping = (_ref4 = props === null || props === void 0 ? void 0 : props.keywordMapping) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
638
|
+
this.showOrder = (_ref5 = props === null || props === void 0 ? void 0 : props.showOrder) !== null && _ref5 !== void 0 ? _ref5 : true;
|
|
639
|
+
this.svcCode = (_ref6 = props === null || props === void 0 ? void 0 : props.svcCode) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
689
640
|
this.assignDepartment = new RightVariable(props === null || props === void 0 ? void 0 : props.assignDepartment);
|
|
690
|
-
|
|
691
|
-
this.openAssignDepartment = (_props_openAssignDepartment = props === null || props === void 0 ? void 0 : props.openAssignDepartment) !== null && _props_openAssignDepartment !== void 0 ? _props_openAssignDepartment : false;
|
|
641
|
+
this.openAssignDepartment = (_ref7 = props === null || props === void 0 ? void 0 : props.openAssignDepartment) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
692
642
|
callFiltersAndOrders.call(this, props);
|
|
693
643
|
};
|
|
694
644
|
export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
695
645
|
"use strict";
|
|
696
646
|
_class_call_check(this, SelectedContentConfig);
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
*
|
|
700
|
-
* @
|
|
647
|
+
var _ref, _ref1;
|
|
648
|
+
/**
|
|
649
|
+
* 展示已选内容
|
|
650
|
+
* @defaultValue ''
|
|
651
|
+
* @public
|
|
701
652
|
*/ _define_property(this, "dataCode", void 0);
|
|
702
|
-
/**
|
|
703
|
-
* 展示已选明细
|
|
704
|
-
* @defaultValue []
|
|
705
|
-
* @public
|
|
653
|
+
/**
|
|
654
|
+
* 展示已选明细
|
|
655
|
+
* @defaultValue []
|
|
656
|
+
* @public
|
|
706
657
|
*/ _define_property(this, "displayBoList", void 0);
|
|
707
|
-
|
|
708
|
-
this.
|
|
709
|
-
var _props_displayBoList;
|
|
710
|
-
this.displayBoList = (_props_displayBoList = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _props_displayBoList !== void 0 ? _props_displayBoList : [];
|
|
658
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
659
|
+
this.displayBoList = (_ref1 = props === null || props === void 0 ? void 0 : props.displayBoList) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
711
660
|
};
|
|
712
661
|
export var LinkOperationOption = function LinkOperationOption(props) {
|
|
713
662
|
"use strict";
|
|
714
663
|
_class_call_check(this, LinkOperationOption);
|
|
664
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
715
665
|
_define_property(this, "code", void 0);
|
|
716
666
|
_define_property(this, "color", void 0);
|
|
717
667
|
_define_property(this, "command", void 0);
|
|
@@ -723,43 +673,31 @@ export var LinkOperationOption = function LinkOperationOption(props) {
|
|
|
723
673
|
_define_property(this, "needConfirm", void 0);
|
|
724
674
|
_define_property(this, "openType", void 0);
|
|
725
675
|
_define_property(this, "priorityProcess", void 0);
|
|
726
|
-
|
|
727
|
-
this.
|
|
728
|
-
|
|
729
|
-
this.
|
|
730
|
-
|
|
731
|
-
this.
|
|
732
|
-
var _props_confirmMessage;
|
|
733
|
-
this.confirmMessage = (_props_confirmMessage = props === null || props === void 0 ? void 0 : props.confirmMessage) !== null && _props_confirmMessage !== void 0 ? _props_confirmMessage : undefined;
|
|
734
|
-
var _props_defaultState;
|
|
735
|
-
this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : 'default';
|
|
736
|
-
var _props_formKey;
|
|
737
|
-
this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : undefined;
|
|
676
|
+
this.code = (_ref = props === null || props === void 0 ? void 0 : props.code) !== null && _ref !== void 0 ? _ref : 'view';
|
|
677
|
+
this.color = (_ref1 = props === null || props === void 0 ? void 0 : props.color) !== null && _ref1 !== void 0 ? _ref1 : 'primary';
|
|
678
|
+
this.command = (_ref2 = props === null || props === void 0 ? void 0 : props.command) !== null && _ref2 !== void 0 ? _ref2 : 'view';
|
|
679
|
+
this.confirmMessage = (_ref3 = props === null || props === void 0 ? void 0 : props.confirmMessage) !== null && _ref3 !== void 0 ? _ref3 : undefined;
|
|
680
|
+
this.defaultState = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _ref4 !== void 0 ? _ref4 : 'default';
|
|
681
|
+
this.formKey = (_ref5 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref5 !== void 0 ? _ref5 : undefined;
|
|
738
682
|
this.formType = props === null || props === void 0 ? void 0 : props.formType;
|
|
739
|
-
|
|
740
|
-
this.
|
|
741
|
-
|
|
742
|
-
this.
|
|
743
|
-
var _props_openType;
|
|
744
|
-
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : 'modal';
|
|
745
|
-
var _props_priorityProcess;
|
|
746
|
-
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : true;
|
|
683
|
+
this.icon = (_ref6 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref6 !== void 0 ? _ref6 : 'iconliulan1';
|
|
684
|
+
this.needConfirm = (_ref7 = props === null || props === void 0 ? void 0 : props.needConfirm) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
685
|
+
this.openType = (_ref8 = props === null || props === void 0 ? void 0 : props.openType) !== null && _ref8 !== void 0 ? _ref8 : 'modal';
|
|
686
|
+
this.priorityProcess = (_ref9 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _ref9 !== void 0 ? _ref9 : true;
|
|
747
687
|
};
|
|
748
688
|
export var CustomAttributeItem = function CustomAttributeItem(props) {
|
|
749
689
|
"use strict";
|
|
750
690
|
_class_call_check(this, CustomAttributeItem);
|
|
691
|
+
var _ref, _ref1, _ref2;
|
|
751
692
|
var _props_value;
|
|
752
693
|
_define_property(this, "name", void 0);
|
|
753
694
|
_define_property(this, "key", void 0);
|
|
754
695
|
_define_property(this, "value", void 0);
|
|
755
|
-
|
|
756
|
-
this.
|
|
757
|
-
|
|
758
|
-
this.key = (_props_key = props === null || props === void 0 ? void 0 : props.key) !== null && _props_key !== void 0 ? _props_key : '';
|
|
759
|
-
var _props_value_map;
|
|
760
|
-
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) {
|
|
696
|
+
this.name = (_ref = props === null || props === void 0 ? void 0 : props.name) !== null && _ref !== void 0 ? _ref : '';
|
|
697
|
+
this.key = (_ref1 = props === null || props === void 0 ? void 0 : props.key) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
698
|
+
this.value = (_ref2 = props === null || props === void 0 ? void 0 : (_props_value = props.value) === null || _props_value === void 0 ? void 0 : _props_value.map(function(item) {
|
|
761
699
|
return new DisplayBoListItem(item);
|
|
762
|
-
})) !== null &&
|
|
700
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
763
701
|
};
|
|
764
702
|
export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
765
703
|
"use strict";
|
|
@@ -767,14 +705,14 @@ export var SuperDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
767
705
|
function SuperDataSourceBind(props) {
|
|
768
706
|
_class_call_check(this, SuperDataSourceBind);
|
|
769
707
|
var _this;
|
|
708
|
+
var _ref;
|
|
770
709
|
var _props_attributes;
|
|
771
710
|
_this = _call_super(this, SuperDataSourceBind, [
|
|
772
711
|
props
|
|
773
712
|
]), _define_property(_this, "attributes", void 0);
|
|
774
|
-
|
|
775
|
-
_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) {
|
|
713
|
+
_this.attributes = (_ref = props === null || props === void 0 ? void 0 : (_props_attributes = props.attributes) === null || _props_attributes === void 0 ? void 0 : _props_attributes.map(function(item) {
|
|
776
714
|
return new CustomAttributeItem(item);
|
|
777
|
-
})) !== null &&
|
|
715
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
778
716
|
return _this;
|
|
779
717
|
}
|
|
780
718
|
return SuperDataSourceBind;
|
|
@@ -785,16 +723,15 @@ export var OrganizationDataSourceBind = /*#__PURE__*/ function(DataSourceBind) {
|
|
|
785
723
|
function OrganizationDataSourceBind(props) {
|
|
786
724
|
_class_call_check(this, OrganizationDataSourceBind);
|
|
787
725
|
var _this;
|
|
726
|
+
var _ref, _ref1;
|
|
788
727
|
var _props_attributes;
|
|
789
728
|
_this = _call_super(this, OrganizationDataSourceBind, [
|
|
790
729
|
props
|
|
791
730
|
]), _define_property(_this, "attributes", void 0), _define_property(_this, "formCode", void 0);
|
|
792
|
-
|
|
793
|
-
_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) {
|
|
731
|
+
_this.attributes = (_ref = props === null || props === void 0 ? void 0 : (_props_attributes = props.attributes) === null || _props_attributes === void 0 ? void 0 : _props_attributes.map(function(item) {
|
|
794
732
|
return new CustomAttributeItem(item);
|
|
795
|
-
})) !== null &&
|
|
796
|
-
|
|
797
|
-
_this.formCode = (_props_formCode = props === null || props === void 0 ? void 0 : props.formCode) !== null && _props_formCode !== void 0 ? _props_formCode : '';
|
|
733
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
734
|
+
_this.formCode = (_ref1 = props === null || props === void 0 ? void 0 : props.formCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
798
735
|
return _this;
|
|
799
736
|
}
|
|
800
737
|
return OrganizationDataSourceBind;
|
|
@@ -805,12 +742,12 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
805
742
|
function TreeDataSourceBind(props) {
|
|
806
743
|
_class_call_check(this, TreeDataSourceBind);
|
|
807
744
|
var _this;
|
|
745
|
+
var _ref;
|
|
808
746
|
_this = _call_super(this, TreeDataSourceBind, [
|
|
809
747
|
props
|
|
810
748
|
]), _define_property(_this, "rootNode", void 0), _define_property(_this, "filterCode", void 0);
|
|
811
749
|
_this.rootNode = new RightVariable(props === null || props === void 0 ? void 0 : props.rootNode);
|
|
812
|
-
|
|
813
|
-
_this.filterCode = (_props_filterCode = props === null || props === void 0 ? void 0 : props.filterCode) !== null && _props_filterCode !== void 0 ? _props_filterCode : '';
|
|
750
|
+
_this.filterCode = (_ref = props === null || props === void 0 ? void 0 : props.filterCode) !== null && _ref !== void 0 ? _ref : '';
|
|
814
751
|
return _this;
|
|
815
752
|
}
|
|
816
753
|
return TreeDataSourceBind;
|
|
@@ -818,29 +755,27 @@ export var TreeDataSourceBind = /*#__PURE__*/ function(SuperDataSourceBind) {
|
|
|
818
755
|
var FillBind = function FillBind(props) {
|
|
819
756
|
"use strict";
|
|
820
757
|
_class_call_check(this, FillBind);
|
|
758
|
+
var _ref, _ref1, _ref2;
|
|
821
759
|
var _props_fillList;
|
|
822
|
-
/*
|
|
823
|
-
* 需要被填充的数据源
|
|
760
|
+
/*
|
|
761
|
+
* 需要被填充的数据源
|
|
824
762
|
* */ _define_property(this, "dataCode", void 0);
|
|
825
|
-
/*
|
|
826
|
-
* appId
|
|
763
|
+
/*
|
|
764
|
+
* appId
|
|
827
765
|
* */ _define_property(this, "appId", void 0);
|
|
828
|
-
/*
|
|
829
|
-
* 执行填充的数据项和控件
|
|
766
|
+
/*
|
|
767
|
+
* 执行填充的数据项和控件
|
|
830
768
|
* */ _define_property(this, "fillList", void 0);
|
|
831
|
-
|
|
832
|
-
this.
|
|
833
|
-
|
|
834
|
-
this.appId = (_props_appId = props === null || props === void 0 ? void 0 : props.appId) !== null && _props_appId !== void 0 ? _props_appId : '';
|
|
835
|
-
var _props_fillList_map;
|
|
836
|
-
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) {
|
|
769
|
+
this.dataCode = (_ref = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref !== void 0 ? _ref : '';
|
|
770
|
+
this.appId = (_ref1 = props === null || props === void 0 ? void 0 : props.appId) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
771
|
+
this.fillList = (_ref2 = props === null || props === void 0 ? void 0 : (_props_fillList = props.fillList) === null || _props_fillList === void 0 ? void 0 : _props_fillList.map(function(item) {
|
|
837
772
|
return new MultistageFillingItem(item);
|
|
838
|
-
})) !== null &&
|
|
773
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
839
774
|
};
|
|
840
|
-
/**
|
|
841
|
-
* FillPayloadBind 填充配置
|
|
842
|
-
* 填充的配置和需要携带的数据
|
|
843
|
-
* @public
|
|
775
|
+
/**
|
|
776
|
+
* FillPayloadBind 填充配置
|
|
777
|
+
* 填充的配置和需要携带的数据
|
|
778
|
+
* @public
|
|
844
779
|
* */ export var FillPayloadBind = /*#__PURE__*/ function(FillBind) {
|
|
845
780
|
"use strict";
|
|
846
781
|
_inherits(FillPayloadBind, FillBind);
|
|
@@ -849,48 +784,47 @@ var FillBind = function FillBind(props) {
|
|
|
849
784
|
var _this;
|
|
850
785
|
_this = _call_super(this, FillPayloadBind, [
|
|
851
786
|
props
|
|
852
|
-
]), /**
|
|
853
|
-
* 数据源过滤条件
|
|
854
|
-
* @defaultValue []
|
|
855
|
-
* @public
|
|
856
|
-
**/ _define_property(_this, "filters", void 0), /**
|
|
857
|
-
* 数据源过滤条件-查看
|
|
858
|
-
* @defaultValue []
|
|
859
|
-
* @public
|
|
860
|
-
**/ _define_property(_this, "viewFilters", void 0), /**
|
|
861
|
-
* 数据源排序条件
|
|
862
|
-
* @defaultValue []
|
|
863
|
-
* @public
|
|
787
|
+
]), /**
|
|
788
|
+
* 数据源过滤条件
|
|
789
|
+
* @defaultValue []
|
|
790
|
+
* @public
|
|
791
|
+
**/ _define_property(_this, "filters", void 0), /**
|
|
792
|
+
* 数据源过滤条件-查看
|
|
793
|
+
* @defaultValue []
|
|
794
|
+
* @public
|
|
795
|
+
**/ _define_property(_this, "viewFilters", void 0), /**
|
|
796
|
+
* 数据源排序条件
|
|
797
|
+
* @defaultValue []
|
|
798
|
+
* @public
|
|
864
799
|
**/ _define_property(_this, "orders", void 0);
|
|
865
800
|
callFiltersAndOrders.call(_this, props);
|
|
866
801
|
return _this;
|
|
867
802
|
}
|
|
868
803
|
return FillPayloadBind;
|
|
869
804
|
}(FillBind);
|
|
870
|
-
/**
|
|
871
|
-
* FillBackBind 回填需要的配置和参数
|
|
872
|
-
* @public
|
|
805
|
+
/**
|
|
806
|
+
* FillBackBind 回填需要的配置和参数
|
|
807
|
+
* @public
|
|
873
808
|
*/ export var FillBackBind = /*#__PURE__*/ function(FillBind) {
|
|
874
809
|
"use strict";
|
|
875
810
|
_inherits(FillBackBind, FillBind);
|
|
876
811
|
function FillBackBind(props) {
|
|
877
812
|
_class_call_check(this, FillBackBind);
|
|
878
813
|
var _this;
|
|
814
|
+
var _ref, _ref1;
|
|
879
815
|
_this = _call_super(this, FillBackBind, [
|
|
880
816
|
props
|
|
881
|
-
]), /**
|
|
882
|
-
* 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
|
|
883
|
-
* @defaultValue 'current'
|
|
884
|
-
* @public
|
|
885
|
-
* */ _define_property(_this, "mode", void 0), /**
|
|
886
|
-
* 多选
|
|
887
|
-
* @defaultValue false
|
|
888
|
-
* @public
|
|
817
|
+
]), /**
|
|
818
|
+
* 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
|
|
819
|
+
* @defaultValue 'current'
|
|
820
|
+
* @public
|
|
821
|
+
* */ _define_property(_this, "mode", void 0), /**
|
|
822
|
+
* 多选
|
|
823
|
+
* @defaultValue false
|
|
824
|
+
* @public
|
|
889
825
|
*/ _define_property(_this, "multiple", void 0);
|
|
890
|
-
|
|
891
|
-
_this.
|
|
892
|
-
var _props_multiple;
|
|
893
|
-
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
826
|
+
_this.mode = (_ref = props === null || props === void 0 ? void 0 : props.mode) !== null && _ref !== void 0 ? _ref : 'current';
|
|
827
|
+
_this.multiple = (_ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
894
828
|
return _this;
|
|
895
829
|
}
|
|
896
830
|
return FillBackBind;
|
|
@@ -898,64 +832,58 @@ var FillBind = function FillBind(props) {
|
|
|
898
832
|
export var Language = function Language(props) {
|
|
899
833
|
"use strict";
|
|
900
834
|
_class_call_check(this, Language);
|
|
835
|
+
var _ref, _ref1, _ref2;
|
|
901
836
|
_define_property(this, "zh", void 0);
|
|
902
837
|
_define_property(this, "en", void 0);
|
|
903
838
|
_define_property(this, "ja", void 0);
|
|
904
|
-
|
|
905
|
-
this.
|
|
906
|
-
|
|
907
|
-
this.en = (_props_en = props === null || props === void 0 ? void 0 : props.en) !== null && _props_en !== void 0 ? _props_en : '';
|
|
908
|
-
var _props_ja;
|
|
909
|
-
this.ja = (_props_ja = props === null || props === void 0 ? void 0 : props.ja) !== null && _props_ja !== void 0 ? _props_ja : '';
|
|
839
|
+
this.zh = (_ref = props === null || props === void 0 ? void 0 : props.zh) !== null && _ref !== void 0 ? _ref : '';
|
|
840
|
+
this.en = (_ref1 = props === null || props === void 0 ? void 0 : props.en) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
841
|
+
this.ja = (_ref2 = props === null || props === void 0 ? void 0 : props.ja) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
910
842
|
};
|
|
911
|
-
/**
|
|
912
|
-
* 正则校验
|
|
913
|
-
* @public
|
|
843
|
+
/**
|
|
844
|
+
* 正则校验
|
|
845
|
+
* @public
|
|
914
846
|
*/ export var RegularRules = function RegularRules(props) {
|
|
915
847
|
"use strict";
|
|
916
848
|
_class_call_check(this, RegularRules);
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
*
|
|
849
|
+
var _ref, _ref1, _ref2;
|
|
850
|
+
/**
|
|
851
|
+
* 内置模版
|
|
852
|
+
* @defaultValue ''
|
|
920
853
|
*/ _define_property(this, "stencilName", void 0);
|
|
921
|
-
/**
|
|
922
|
-
* 正则表达式
|
|
923
|
-
* @defaultValue ''
|
|
854
|
+
/**
|
|
855
|
+
* 正则表达式
|
|
856
|
+
* @defaultValue ''
|
|
924
857
|
*/ _define_property(this, "expression", void 0);
|
|
925
|
-
/**
|
|
926
|
-
* 校验错误提示信息
|
|
927
|
-
* @defaultValue ''
|
|
858
|
+
/**
|
|
859
|
+
* 校验错误提示信息
|
|
860
|
+
* @defaultValue ''
|
|
928
861
|
*/ _define_property(this, "errMessage", void 0);
|
|
929
|
-
|
|
930
|
-
this.
|
|
931
|
-
|
|
932
|
-
this.expression = (_props_expression = props === null || props === void 0 ? void 0 : props.expression) !== null && _props_expression !== void 0 ? _props_expression : '';
|
|
933
|
-
var _props_errMessage;
|
|
934
|
-
this.errMessage = (_props_errMessage = props === null || props === void 0 ? void 0 : props.errMessage) !== null && _props_errMessage !== void 0 ? _props_errMessage : '';
|
|
862
|
+
this.stencilName = (_ref = props === null || props === void 0 ? void 0 : props.stencilName) !== null && _ref !== void 0 ? _ref : '';
|
|
863
|
+
this.expression = (_ref1 = props === null || props === void 0 ? void 0 : props.expression) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
864
|
+
this.errMessage = (_ref2 = props === null || props === void 0 ? void 0 : props.errMessage) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
935
865
|
};
|
|
936
|
-
/**
|
|
937
|
-
* 选项设置-自定义选项
|
|
938
|
-
* @public
|
|
866
|
+
/**
|
|
867
|
+
* 选项设置-自定义选项
|
|
868
|
+
* @public
|
|
939
869
|
*/ export var OptionSetting = function OptionSetting(props) {
|
|
940
870
|
"use strict";
|
|
941
871
|
_class_call_check(this, OptionSetting);
|
|
872
|
+
var _ref, _ref1, _ref2;
|
|
942
873
|
_define_property(this, "id", void 0);
|
|
943
|
-
/**
|
|
944
|
-
* 显示值
|
|
945
|
-
* @defaultValue ''
|
|
946
|
-
* @public
|
|
874
|
+
/**
|
|
875
|
+
* 显示值
|
|
876
|
+
* @defaultValue ''
|
|
877
|
+
* @public
|
|
947
878
|
*/ _define_property(this, "label", void 0);
|
|
948
|
-
/**
|
|
949
|
-
* 选项ID
|
|
950
|
-
* @defaultValue this.label
|
|
951
|
-
* @public
|
|
879
|
+
/**
|
|
880
|
+
* 选项ID
|
|
881
|
+
* @defaultValue this.label
|
|
882
|
+
* @public
|
|
952
883
|
*/ _define_property(this, "value", void 0);
|
|
953
|
-
|
|
954
|
-
this.
|
|
955
|
-
|
|
956
|
-
this.label = (_props_label = props === null || props === void 0 ? void 0 : props.label) !== null && _props_label !== void 0 ? _props_label : '';
|
|
957
|
-
var _props_value;
|
|
958
|
-
this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : this.label;
|
|
884
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId(8);
|
|
885
|
+
this.label = (_ref1 = props === null || props === void 0 ? void 0 : props.label) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
886
|
+
this.value = (_ref2 = props === null || props === void 0 ? void 0 : props.value) !== null && _ref2 !== void 0 ? _ref2 : this.label;
|
|
959
887
|
};
|
|
960
888
|
export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
961
889
|
"use strict";
|
|
@@ -963,13 +891,12 @@ export var ImageOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
963
891
|
function ImageOptionSetting(props) {
|
|
964
892
|
_class_call_check(this, ImageOptionSetting);
|
|
965
893
|
var _this;
|
|
894
|
+
var _ref, _ref1;
|
|
966
895
|
_this = _call_super(this, ImageOptionSetting, [
|
|
967
896
|
props
|
|
968
897
|
]), _define_property(_this, "image", void 0), _define_property(_this, "type", void 0);
|
|
969
|
-
|
|
970
|
-
_this.
|
|
971
|
-
var _props_type;
|
|
972
|
-
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'src';
|
|
898
|
+
_this.image = (_ref = props === null || props === void 0 ? void 0 : props.image) !== null && _ref !== void 0 ? _ref : '';
|
|
899
|
+
_this.type = (_ref1 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref1 !== void 0 ? _ref1 : 'src';
|
|
973
900
|
return _this;
|
|
974
901
|
}
|
|
975
902
|
return ImageOptionSetting;
|
|
@@ -980,55 +907,54 @@ export var AiOptionSetting = /*#__PURE__*/ function(OptionSetting) {
|
|
|
980
907
|
function AiOptionSetting(props) {
|
|
981
908
|
_class_call_check(this, AiOptionSetting);
|
|
982
909
|
var _this;
|
|
910
|
+
var _ref, _ref1;
|
|
983
911
|
_this = _call_super(this, AiOptionSetting, [
|
|
984
912
|
props
|
|
985
913
|
]), _define_property(_this, "cueWord", void 0), _define_property(_this, "checked", void 0);
|
|
986
|
-
|
|
987
|
-
_this.
|
|
988
|
-
var _props_checked;
|
|
989
|
-
_this.checked = (_props_checked = props === null || props === void 0 ? void 0 : props.checked) !== null && _props_checked !== void 0 ? _props_checked : false;
|
|
914
|
+
_this.cueWord = (_ref = props === null || props === void 0 ? void 0 : props.cueWord) !== null && _ref !== void 0 ? _ref : '';
|
|
915
|
+
_this.checked = (_ref1 = props === null || props === void 0 ? void 0 : props.checked) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
990
916
|
return _this;
|
|
991
917
|
}
|
|
992
918
|
return AiOptionSetting;
|
|
993
919
|
}(OptionSetting);
|
|
994
920
|
export function initOptions(options) {
|
|
995
|
-
var
|
|
996
|
-
return (
|
|
921
|
+
var _ref;
|
|
922
|
+
return (_ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
997
923
|
return new OptionSetting(item);
|
|
998
|
-
})) !== null &&
|
|
924
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
999
925
|
}
|
|
1000
926
|
export function initImageOptions(options) {
|
|
1001
|
-
var
|
|
1002
|
-
return (
|
|
927
|
+
var _ref;
|
|
928
|
+
return (_ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
1003
929
|
return new ImageOptionSetting(item);
|
|
1004
|
-
})) !== null &&
|
|
930
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
1005
931
|
}
|
|
1006
932
|
export function initAiOptions(options) {
|
|
1007
|
-
var
|
|
1008
|
-
return (
|
|
933
|
+
var _ref;
|
|
934
|
+
return (_ref = options === null || options === void 0 ? void 0 : options.map(function(item) {
|
|
1009
935
|
return new AiOptionSetting(item);
|
|
1010
|
-
})) !== null &&
|
|
936
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
1011
937
|
}
|
|
1012
|
-
/**
|
|
1013
|
-
* 对象类型数据绑定配置
|
|
1014
|
-
* @public
|
|
938
|
+
/**
|
|
939
|
+
* 对象类型数据绑定配置
|
|
940
|
+
* @public
|
|
1015
941
|
*/ export var ObjectDataBind = function ObjectDataBind() {
|
|
1016
942
|
"use strict";
|
|
1017
943
|
_class_call_check(this, ObjectDataBind);
|
|
1018
944
|
};
|
|
1019
|
-
/**
|
|
1020
|
-
* 金额控件数据绑定配置
|
|
1021
|
-
* @public
|
|
945
|
+
/**
|
|
946
|
+
* 金额控件数据绑定配置
|
|
947
|
+
* @public
|
|
1022
948
|
*/ export var AmountDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
1023
949
|
"use strict";
|
|
1024
950
|
_inherits(AmountDataBind, ObjectDataBind);
|
|
1025
951
|
function AmountDataBind(props) {
|
|
1026
952
|
_class_call_check(this, AmountDataBind);
|
|
1027
953
|
var _this;
|
|
1028
|
-
_this = _call_super(this, AmountDataBind), /**
|
|
1029
|
-
* 金额字段绑定配置
|
|
1030
|
-
*/ _define_property(_this, "amount", void 0), /**
|
|
1031
|
-
* 币种字段绑定配置
|
|
954
|
+
_this = _call_super(this, AmountDataBind), /**
|
|
955
|
+
* 金额字段绑定配置
|
|
956
|
+
*/ _define_property(_this, "amount", void 0), /**
|
|
957
|
+
* 币种字段绑定配置
|
|
1032
958
|
*/ _define_property(_this, "currency", void 0);
|
|
1033
959
|
_this.amount = new DataBind(props === null || props === void 0 ? void 0 : props.amount);
|
|
1034
960
|
_this.currency = new DataBind(props === null || props === void 0 ? void 0 : props.currency);
|
|
@@ -1036,38 +962,37 @@ export function initAiOptions(options) {
|
|
|
1036
962
|
}
|
|
1037
963
|
return AmountDataBind;
|
|
1038
964
|
}(ObjectDataBind);
|
|
1039
|
-
/**
|
|
1040
|
-
* 金额控件值
|
|
1041
|
-
* @public
|
|
965
|
+
/**
|
|
966
|
+
* 金额控件值
|
|
967
|
+
* @public
|
|
1042
968
|
*/ export var AmountValue = function AmountValue(props) {
|
|
1043
969
|
"use strict";
|
|
1044
970
|
_class_call_check(this, AmountValue);
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
*
|
|
971
|
+
var _ref, _ref1;
|
|
972
|
+
/**
|
|
973
|
+
* 金额值
|
|
974
|
+
* @defaultValue ''
|
|
1048
975
|
*/ _define_property(this, "amount", void 0);
|
|
1049
|
-
/**
|
|
1050
|
-
* 货币值
|
|
1051
|
-
* @defaultValue 'CNY'
|
|
976
|
+
/**
|
|
977
|
+
* 货币值
|
|
978
|
+
* @defaultValue 'CNY'
|
|
1052
979
|
*/ _define_property(this, "currency", void 0);
|
|
1053
|
-
|
|
1054
|
-
this.
|
|
1055
|
-
var _props_currency;
|
|
1056
|
-
this.currency = (_props_currency = props === null || props === void 0 ? void 0 : props.currency) !== null && _props_currency !== void 0 ? _props_currency : "CNY";
|
|
980
|
+
this.amount = (_ref = props === null || props === void 0 ? void 0 : props.amount) !== null && _ref !== void 0 ? _ref : '';
|
|
981
|
+
this.currency = (_ref1 = props === null || props === void 0 ? void 0 : props.currency) !== null && _ref1 !== void 0 ? _ref1 : "CNY";
|
|
1057
982
|
};
|
|
1058
|
-
/**
|
|
1059
|
-
* 日期区间数据绑定项
|
|
1060
|
-
* @public
|
|
983
|
+
/**
|
|
984
|
+
* 日期区间数据绑定项
|
|
985
|
+
* @public
|
|
1061
986
|
*/ export var RangeDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
1062
987
|
"use strict";
|
|
1063
988
|
_inherits(RangeDataBind, ObjectDataBind);
|
|
1064
989
|
function RangeDataBind(props) {
|
|
1065
990
|
_class_call_check(this, RangeDataBind);
|
|
1066
991
|
var _this;
|
|
1067
|
-
_this = _call_super(this, RangeDataBind), /**
|
|
1068
|
-
* 开始日期字段绑定项
|
|
1069
|
-
*/ _define_property(_this, "min", void 0), /**
|
|
1070
|
-
* 结束日期字段绑定项
|
|
992
|
+
_this = _call_super(this, RangeDataBind), /**
|
|
993
|
+
* 开始日期字段绑定项
|
|
994
|
+
*/ _define_property(_this, "min", void 0), /**
|
|
995
|
+
* 结束日期字段绑定项
|
|
1071
996
|
*/ _define_property(_this, "max", void 0);
|
|
1072
997
|
_this.min = new DataBind(props === null || props === void 0 ? void 0 : props.min);
|
|
1073
998
|
_this.max = new DataBind(props === null || props === void 0 ? void 0 : props.max);
|
|
@@ -1075,81 +1000,75 @@ export function initAiOptions(options) {
|
|
|
1075
1000
|
}
|
|
1076
1001
|
return RangeDataBind;
|
|
1077
1002
|
}(ObjectDataBind);
|
|
1078
|
-
/**
|
|
1079
|
-
* 日期区间值
|
|
1080
|
-
* @public
|
|
1003
|
+
/**
|
|
1004
|
+
* 日期区间值
|
|
1005
|
+
* @public
|
|
1081
1006
|
*/ export var RangeDateValue = function RangeDateValue(props) {
|
|
1082
1007
|
"use strict";
|
|
1083
1008
|
_class_call_check(this, RangeDateValue);
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
*
|
|
1009
|
+
var _ref, _ref1;
|
|
1010
|
+
/**
|
|
1011
|
+
* 开始日期值
|
|
1012
|
+
* @defaultValue ''
|
|
1087
1013
|
*/ _define_property(this, "min", void 0);
|
|
1088
|
-
/**
|
|
1089
|
-
* 结束日期值
|
|
1090
|
-
* @defaultValue ''
|
|
1014
|
+
/**
|
|
1015
|
+
* 结束日期值
|
|
1016
|
+
* @defaultValue ''
|
|
1091
1017
|
*/ _define_property(this, "max", void 0);
|
|
1092
|
-
|
|
1093
|
-
this.
|
|
1094
|
-
var _props_max;
|
|
1095
|
-
this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : '';
|
|
1018
|
+
this.min = (_ref = props === null || props === void 0 ? void 0 : props.min) !== null && _ref !== void 0 ? _ref : '';
|
|
1019
|
+
this.max = (_ref1 = props === null || props === void 0 ? void 0 : props.max) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1096
1020
|
};
|
|
1097
|
-
/**
|
|
1098
|
-
* 地址值
|
|
1099
|
-
* @public
|
|
1021
|
+
/**
|
|
1022
|
+
* 地址值
|
|
1023
|
+
* @public
|
|
1100
1024
|
*/ export var AddressValue = function AddressValue(props) {
|
|
1101
1025
|
"use strict";
|
|
1102
1026
|
_class_call_check(this, AddressValue);
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
*
|
|
1027
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
1028
|
+
/**
|
|
1029
|
+
* 市编码
|
|
1030
|
+
* @defaultValue ''
|
|
1106
1031
|
*/ _define_property(this, "city", void 0);
|
|
1107
|
-
/**
|
|
1108
|
-
* 市显示文字
|
|
1109
|
-
* @defaultValue ''
|
|
1032
|
+
/**
|
|
1033
|
+
* 市显示文字
|
|
1034
|
+
* @defaultValue ''
|
|
1110
1035
|
*/ _define_property(this, "cityDisplay", void 0);
|
|
1111
|
-
/**
|
|
1112
|
-
* 区编码
|
|
1113
|
-
* @defaultValue ''
|
|
1036
|
+
/**
|
|
1037
|
+
* 区编码
|
|
1038
|
+
* @defaultValue ''
|
|
1114
1039
|
*/ _define_property(this, "district", void 0);
|
|
1115
|
-
/**
|
|
1116
|
-
* 区显示文字
|
|
1117
|
-
* @defaultValue ''
|
|
1040
|
+
/**
|
|
1041
|
+
* 区显示文字
|
|
1042
|
+
* @defaultValue ''
|
|
1118
1043
|
*/ _define_property(this, "districtDisplay", void 0);
|
|
1119
|
-
/**
|
|
1120
|
-
* 省编码
|
|
1121
|
-
* @defaultValue ''
|
|
1044
|
+
/**
|
|
1045
|
+
* 省编码
|
|
1046
|
+
* @defaultValue ''
|
|
1122
1047
|
*/ _define_property(this, "province", void 0);
|
|
1123
|
-
/**
|
|
1124
|
-
* 省显示文字
|
|
1125
|
-
* @defaultValue ''
|
|
1048
|
+
/**
|
|
1049
|
+
* 省显示文字
|
|
1050
|
+
* @defaultValue ''
|
|
1126
1051
|
*/ _define_property(this, "provinceDisplay", void 0);
|
|
1127
|
-
|
|
1128
|
-
this.
|
|
1129
|
-
|
|
1130
|
-
this.
|
|
1131
|
-
|
|
1132
|
-
this.
|
|
1133
|
-
var _props_districtDisplay;
|
|
1134
|
-
this.districtDisplay = (_props_districtDisplay = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && _props_districtDisplay !== void 0 ? _props_districtDisplay : '';
|
|
1135
|
-
var _props_province;
|
|
1136
|
-
this.province = (_props_province = props === null || props === void 0 ? void 0 : props.province) !== null && _props_province !== void 0 ? _props_province : '';
|
|
1137
|
-
var _props_provinceDisplay;
|
|
1138
|
-
this.provinceDisplay = (_props_provinceDisplay = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && _props_provinceDisplay !== void 0 ? _props_provinceDisplay : '';
|
|
1052
|
+
this.city = (_ref = props === null || props === void 0 ? void 0 : props.city) !== null && _ref !== void 0 ? _ref : '';
|
|
1053
|
+
this.cityDisplay = (_ref1 = props === null || props === void 0 ? void 0 : props.cityDisplay) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1054
|
+
this.district = (_ref2 = props === null || props === void 0 ? void 0 : props.district) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
1055
|
+
this.districtDisplay = (_ref3 = props === null || props === void 0 ? void 0 : props.districtDisplay) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
1056
|
+
this.province = (_ref4 = props === null || props === void 0 ? void 0 : props.province) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
1057
|
+
this.provinceDisplay = (_ref5 = props === null || props === void 0 ? void 0 : props.provinceDisplay) !== null && _ref5 !== void 0 ? _ref5 : '';
|
|
1139
1058
|
};
|
|
1140
|
-
/**
|
|
1141
|
-
* 计算公式数据绑定项
|
|
1142
|
-
* @public
|
|
1059
|
+
/**
|
|
1060
|
+
* 计算公式数据绑定项
|
|
1061
|
+
* @public
|
|
1143
1062
|
*/ export var CalcDataBind = /*#__PURE__*/ function(ObjectDataBind) {
|
|
1144
1063
|
"use strict";
|
|
1145
1064
|
_inherits(CalcDataBind, ObjectDataBind);
|
|
1146
1065
|
function CalcDataBind(props) {
|
|
1147
1066
|
_class_call_check(this, CalcDataBind);
|
|
1148
1067
|
var _this;
|
|
1149
|
-
_this = _call_super(this, CalcDataBind), /**
|
|
1150
|
-
* 计算结果字段绑定项
|
|
1151
|
-
*/ _define_property(_this, "result", void 0), /**
|
|
1152
|
-
* 单位字段绑定项
|
|
1068
|
+
_this = _call_super(this, CalcDataBind), /**
|
|
1069
|
+
* 计算结果字段绑定项
|
|
1070
|
+
*/ _define_property(_this, "result", void 0), /**
|
|
1071
|
+
* 单位字段绑定项
|
|
1153
1072
|
*/ _define_property(_this, "unit", void 0);
|
|
1154
1073
|
_this.result = new DataBind(props === null || props === void 0 ? void 0 : props.result);
|
|
1155
1074
|
_this.unit = new DataBind(props === null || props === void 0 ? void 0 : props.unit);
|
|
@@ -1157,24 +1076,23 @@ export function initAiOptions(options) {
|
|
|
1157
1076
|
}
|
|
1158
1077
|
return CalcDataBind;
|
|
1159
1078
|
}(ObjectDataBind);
|
|
1160
|
-
/**
|
|
1161
|
-
* 计算公式值
|
|
1162
|
-
* @public
|
|
1079
|
+
/**
|
|
1080
|
+
* 计算公式值
|
|
1081
|
+
* @public
|
|
1163
1082
|
*/ export var CalcValue = function CalcValue(props) {
|
|
1164
1083
|
"use strict";
|
|
1165
1084
|
_class_call_check(this, CalcValue);
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
*
|
|
1085
|
+
var _ref, _ref1;
|
|
1086
|
+
/**
|
|
1087
|
+
* 计算结果值
|
|
1088
|
+
* @defaultValue 0
|
|
1169
1089
|
*/ _define_property(this, "result", void 0);
|
|
1170
|
-
/**
|
|
1171
|
-
* 单位
|
|
1172
|
-
* @defaultValue ''
|
|
1090
|
+
/**
|
|
1091
|
+
* 单位
|
|
1092
|
+
* @defaultValue ''
|
|
1173
1093
|
*/ _define_property(this, "unit", void 0);
|
|
1174
|
-
|
|
1175
|
-
this.
|
|
1176
|
-
var _props_unit;
|
|
1177
|
-
this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : '';
|
|
1094
|
+
this.result = (_ref = props === null || props === void 0 ? void 0 : props.result) !== null && _ref !== void 0 ? _ref : 0;
|
|
1095
|
+
this.unit = (_ref1 = props === null || props === void 0 ? void 0 : props.unit) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1178
1096
|
};
|
|
1179
1097
|
// 币种类型
|
|
1180
1098
|
export var AMOUNT_TYPE = /*#__PURE__*/ function(AMOUNT_TYPE) {
|
|
@@ -1207,14 +1125,14 @@ export var AMOUNT_TYPE = /*#__PURE__*/ function(AMOUNT_TYPE) {
|
|
|
1207
1125
|
AMOUNT_TYPE["IEP"] = "IEP";
|
|
1208
1126
|
return AMOUNT_TYPE;
|
|
1209
1127
|
}({});
|
|
1210
|
-
/**
|
|
1211
|
-
* 选项设置
|
|
1212
|
-
* REQUIRED: 必填
|
|
1213
|
-
* isHide: 隐藏
|
|
1214
|
-
* IS_SHOW_UNIT: 单位
|
|
1215
|
-
* CAN_SEARCH: 支持搜索
|
|
1216
|
-
* MULTIPLE: 允许选中多个日期
|
|
1217
|
-
* SUBMIT_SELECT_CURRENCY: 提交时选择币种
|
|
1128
|
+
/**
|
|
1129
|
+
* 选项设置
|
|
1130
|
+
* REQUIRED: 必填
|
|
1131
|
+
* isHide: 隐藏
|
|
1132
|
+
* IS_SHOW_UNIT: 单位
|
|
1133
|
+
* CAN_SEARCH: 支持搜索
|
|
1134
|
+
* MULTIPLE: 允许选中多个日期
|
|
1135
|
+
* SUBMIT_SELECT_CURRENCY: 提交时选择币种
|
|
1218
1136
|
*/ export var COMMON_SETTING_TYPE = /*#__PURE__*/ function(COMMON_SETTING_TYPE) {
|
|
1219
1137
|
COMMON_SETTING_TYPE["DEFAULT_DISPLAY"] = "defaultDisplay";
|
|
1220
1138
|
COMMON_SETTING_TYPE["REQUIRED"] = "required";
|
|
@@ -1253,6 +1171,10 @@ export var AMOUNT_TYPE = /*#__PURE__*/ function(AMOUNT_TYPE) {
|
|
|
1253
1171
|
COMMON_SETTING_TYPE["MAIN_DEPT_FLAG"] = "mainDeptFlag";
|
|
1254
1172
|
COMMON_SETTING_TYPE["IS_INTERNATIONAL"] = "isInternational";
|
|
1255
1173
|
COMMON_SETTING_TYPE["SHOW_TABLE_INDEX"] = "showTableIndex";
|
|
1174
|
+
COMMON_SETTING_TYPE["CAPTION_SIZE"] = "captionSize";
|
|
1175
|
+
COMMON_SETTING_TYPE["CAPTION_COLOR"] = "captionColor";
|
|
1176
|
+
COMMON_SETTING_TYPE["IS_CAPTION_ITALIC"] = "isCaptionItalic";
|
|
1177
|
+
COMMON_SETTING_TYPE["CAPTION_FONT_WEIGHT"] = "captionFontWeight";
|
|
1256
1178
|
return COMMON_SETTING_TYPE;
|
|
1257
1179
|
}({});
|
|
1258
1180
|
export var PAGE_STATUS = /*#__PURE__*/ function(PAGE_STATUS) {
|
|
@@ -1262,200 +1184,180 @@ export var PAGE_STATUS = /*#__PURE__*/ function(PAGE_STATUS) {
|
|
|
1262
1184
|
PAGE_STATUS[PAGE_STATUS["PRINT"] = 5] = "PRINT";
|
|
1263
1185
|
return PAGE_STATUS;
|
|
1264
1186
|
}({});
|
|
1265
|
-
/**
|
|
1266
|
-
* 操作按钮
|
|
1267
|
-
* @public
|
|
1187
|
+
/**
|
|
1188
|
+
* 操作按钮
|
|
1189
|
+
* @public
|
|
1268
1190
|
*/ export var OperationItem = function OperationItem(props) {
|
|
1269
1191
|
"use strict";
|
|
1270
1192
|
_class_call_check(this, OperationItem);
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
*
|
|
1274
|
-
* @
|
|
1193
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
1194
|
+
/**
|
|
1195
|
+
* 是否显示
|
|
1196
|
+
* @defaultValue true
|
|
1197
|
+
* @public
|
|
1275
1198
|
*/ _define_property(this, "isShow", void 0);
|
|
1276
|
-
/**
|
|
1277
|
-
* 优先访问流程表单
|
|
1278
|
-
* @defaultValue false
|
|
1279
|
-
* @public
|
|
1199
|
+
/**
|
|
1200
|
+
* 优先访问流程表单
|
|
1201
|
+
* @defaultValue false
|
|
1202
|
+
* @public
|
|
1280
1203
|
*/ _define_property(this, "priorityProcess", void 0);
|
|
1281
|
-
/**
|
|
1282
|
-
* 表单ID
|
|
1283
|
-
* @defaultValue ''
|
|
1284
|
-
* @public
|
|
1204
|
+
/**
|
|
1205
|
+
* 表单ID
|
|
1206
|
+
* @defaultValue ''
|
|
1207
|
+
* @public
|
|
1285
1208
|
*/ _define_property(this, "formKey", void 0);
|
|
1286
|
-
/**
|
|
1287
|
-
* 显示文字
|
|
1288
|
-
* @defaultValue ''
|
|
1289
|
-
* @public
|
|
1209
|
+
/**
|
|
1210
|
+
* 显示文字
|
|
1211
|
+
* @defaultValue ''
|
|
1212
|
+
* @public
|
|
1290
1213
|
*/ _define_property(this, "content", void 0);
|
|
1291
|
-
/**
|
|
1292
|
-
* 打开方式
|
|
1293
|
-
* @defaultValue 'modal'
|
|
1294
|
-
* @public
|
|
1214
|
+
/**
|
|
1215
|
+
* 打开方式
|
|
1216
|
+
* @defaultValue 'modal'
|
|
1217
|
+
* @public
|
|
1295
1218
|
*/ _define_property(this, "openType", void 0);
|
|
1296
1219
|
_define_property(this, "type", void 0);
|
|
1297
|
-
|
|
1298
|
-
this.
|
|
1299
|
-
|
|
1300
|
-
this.
|
|
1301
|
-
|
|
1302
|
-
this.
|
|
1303
|
-
var _props_openType;
|
|
1304
|
-
this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : 'modal';
|
|
1305
|
-
var _props_type;
|
|
1306
|
-
this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : '';
|
|
1307
|
-
var _props_priorityProcess;
|
|
1308
|
-
this.priorityProcess = (_props_priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _props_priorityProcess !== void 0 ? _props_priorityProcess : false;
|
|
1220
|
+
this.isShow = (_ref = props === null || props === void 0 ? void 0 : props.isShow) !== null && _ref !== void 0 ? _ref : true;
|
|
1221
|
+
this.content = (_ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1222
|
+
this.formKey = (_ref2 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
1223
|
+
this.openType = (_ref3 = props === null || props === void 0 ? void 0 : props.openType) !== null && _ref3 !== void 0 ? _ref3 : 'modal';
|
|
1224
|
+
this.type = (_ref4 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
1225
|
+
this.priorityProcess = (_ref5 = props === null || props === void 0 ? void 0 : props.priorityProcess) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
1309
1226
|
};
|
|
1310
1227
|
export var ViewOperationItem = function ViewOperationItem(props) {
|
|
1311
1228
|
"use strict";
|
|
1312
1229
|
_class_call_check(this, ViewOperationItem);
|
|
1230
|
+
var _ref, _ref1, _ref2;
|
|
1313
1231
|
var _props_headers;
|
|
1314
1232
|
_define_property(this, "id", void 0);
|
|
1315
1233
|
_define_property(this, "title", void 0);
|
|
1316
1234
|
_define_property(this, "filters", void 0);
|
|
1317
1235
|
_define_property(this, "viewFilters", void 0);
|
|
1318
1236
|
_define_property(this, "headers", void 0);
|
|
1319
|
-
|
|
1320
|
-
this.
|
|
1321
|
-
|
|
1322
|
-
this.title = (_props_title = props === null || props === void 0 ? void 0 : props.title) !== null && _props_title !== void 0 ? _props_title : '';
|
|
1323
|
-
var _props_headers_map;
|
|
1324
|
-
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) {
|
|
1237
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId(8);
|
|
1238
|
+
this.title = (_ref1 = props === null || props === void 0 ? void 0 : props.title) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1239
|
+
this.headers = (_ref2 = props === null || props === void 0 ? void 0 : (_props_headers = props.headers) === null || _props_headers === void 0 ? void 0 : _props_headers.map(function(item) {
|
|
1325
1240
|
return new ListBindHeaderItem(item);
|
|
1326
|
-
})) !== null &&
|
|
1241
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
1327
1242
|
callFiltersAndOrders.call(this, props);
|
|
1328
1243
|
};
|
|
1329
|
-
/**
|
|
1330
|
-
* 自定义权限项,用于Vue容器上,注册自定义的权限
|
|
1244
|
+
/**
|
|
1245
|
+
* 自定义权限项,用于Vue容器上,注册自定义的权限
|
|
1331
1246
|
*/ export var CustomPermissionItem = function CustomPermissionItem(props) {
|
|
1332
1247
|
"use strict";
|
|
1333
1248
|
_class_call_check(this, CustomPermissionItem);
|
|
1334
|
-
|
|
1335
|
-
|
|
1249
|
+
var _props_key, _props_caption;
|
|
1250
|
+
/**
|
|
1251
|
+
* 人工输入的权限key
|
|
1336
1252
|
*/ _define_property(this, "key", void 0);
|
|
1337
|
-
/**
|
|
1338
|
-
* 权限名称
|
|
1253
|
+
/**
|
|
1254
|
+
* 权限名称
|
|
1339
1255
|
*/ _define_property(this, "caption", void 0);
|
|
1340
|
-
var _props_key;
|
|
1341
1256
|
this.key = (_props_key = props.key) !== null && _props_key !== void 0 ? _props_key : genNonDuplicateId(8);
|
|
1342
|
-
var _props_caption;
|
|
1343
1257
|
this.caption = (_props_caption = props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
|
|
1344
1258
|
};
|
|
1345
1259
|
export var BaseStyle = function BaseStyle(props) {
|
|
1346
1260
|
"use strict";
|
|
1347
1261
|
_class_call_check(this, BaseStyle);
|
|
1262
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
1348
1263
|
_define_property(this, "width", void 0);
|
|
1349
1264
|
_define_property(this, "height", void 0);
|
|
1350
1265
|
_define_property(this, "widthConfig", void 0);
|
|
1351
1266
|
_define_property(this, "heightConfig", void 0);
|
|
1352
|
-
|
|
1353
|
-
this.
|
|
1354
|
-
|
|
1355
|
-
this.
|
|
1356
|
-
var _props_widthConfig;
|
|
1357
|
-
this.widthConfig = (_props_widthConfig = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && _props_widthConfig !== void 0 ? _props_widthConfig : 'fill';
|
|
1358
|
-
var _props_heightConfig;
|
|
1359
|
-
this.heightConfig = (_props_heightConfig = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && _props_heightConfig !== void 0 ? _props_heightConfig : 'fill';
|
|
1267
|
+
this.width = (_ref = props === null || props === void 0 ? void 0 : props.width) !== null && _ref !== void 0 ? _ref : '';
|
|
1268
|
+
this.height = (_ref1 = props === null || props === void 0 ? void 0 : props.height) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1269
|
+
this.widthConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.widthConfig) !== null && _ref2 !== void 0 ? _ref2 : 'fill';
|
|
1270
|
+
this.heightConfig = (_ref3 = props === null || props === void 0 ? void 0 : props.heightConfig) !== null && _ref3 !== void 0 ? _ref3 : 'fill';
|
|
1360
1271
|
};
|
|
1361
1272
|
export var OptObject = function OptObject(props) {
|
|
1362
1273
|
"use strict";
|
|
1363
1274
|
_class_call_check(this, OptObject);
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
*
|
|
1367
|
-
* @
|
|
1275
|
+
var _ref, _ref1;
|
|
1276
|
+
/**
|
|
1277
|
+
* 操作项编码
|
|
1278
|
+
* @defaultValue ''
|
|
1279
|
+
* @public
|
|
1368
1280
|
*/ _define_property(this, "optCode", void 0);
|
|
1369
|
-
/**
|
|
1370
|
-
* 操作项类型
|
|
1371
|
-
* @defaultValue ''
|
|
1372
|
-
* @public
|
|
1281
|
+
/**
|
|
1282
|
+
* 操作项类型
|
|
1283
|
+
* @defaultValue ''
|
|
1284
|
+
* @public
|
|
1373
1285
|
*/ _define_property(this, "optType", void 0);
|
|
1374
|
-
|
|
1375
|
-
this.
|
|
1376
|
-
var _props_optType;
|
|
1377
|
-
this.optType = (_props_optType = props === null || props === void 0 ? void 0 : props.optType) !== null && _props_optType !== void 0 ? _props_optType : '';
|
|
1286
|
+
this.optCode = (_ref = props === null || props === void 0 ? void 0 : props.optCode) !== null && _ref !== void 0 ? _ref : '';
|
|
1287
|
+
this.optType = (_ref1 = props === null || props === void 0 ? void 0 : props.optType) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1378
1288
|
};
|
|
1379
1289
|
export var RowStyleRule = function RowStyleRule(props) {
|
|
1380
1290
|
"use strict";
|
|
1381
1291
|
_class_call_check(this, RowStyleRule);
|
|
1292
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
1382
1293
|
var _props_filters, _props_settings;
|
|
1383
|
-
/**
|
|
1384
|
-
* 规则编号
|
|
1385
|
-
* @defaultValue guid
|
|
1386
|
-
* @public
|
|
1294
|
+
/**
|
|
1295
|
+
* 规则编号
|
|
1296
|
+
* @defaultValue guid
|
|
1297
|
+
* @public
|
|
1387
1298
|
*/ _define_property(this, "id", void 0);
|
|
1388
|
-
/**
|
|
1389
|
-
* 规则名称
|
|
1390
|
-
* @defaultValue ''
|
|
1391
|
-
* @public
|
|
1299
|
+
/**
|
|
1300
|
+
* 规则名称
|
|
1301
|
+
* @defaultValue ''
|
|
1302
|
+
* @public
|
|
1392
1303
|
*/ _define_property(this, "name", void 0);
|
|
1393
1304
|
_define_property(this, "settings", void 0);
|
|
1394
|
-
/**
|
|
1395
|
-
* 过滤条件
|
|
1396
|
-
* @defaultValue []
|
|
1397
|
-
* @public
|
|
1305
|
+
/**
|
|
1306
|
+
* 过滤条件
|
|
1307
|
+
* @defaultValue []
|
|
1308
|
+
* @public
|
|
1398
1309
|
*/ _define_property(this, "filters", void 0);
|
|
1399
1310
|
// 过滤
|
|
1400
1311
|
_define_property(this, "script", void 0);
|
|
1401
|
-
|
|
1402
|
-
this.
|
|
1403
|
-
|
|
1404
|
-
this.name = (_props_name = props === null || props === void 0 ? void 0 : props.name) !== null && _props_name !== void 0 ? _props_name : '';
|
|
1405
|
-
var _props_filters_map;
|
|
1406
|
-
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) {
|
|
1312
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : genNonDuplicateId();
|
|
1313
|
+
this.name = (_ref1 = props === null || props === void 0 ? void 0 : props.name) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
1314
|
+
this.filters = (_ref2 = props === null || props === void 0 ? void 0 : (_props_filters = props.filters) === null || _props_filters === void 0 ? void 0 : _props_filters.map(function(item) {
|
|
1407
1315
|
if (item.children !== undefined) {
|
|
1408
1316
|
return new FieldFilterConditions(item);
|
|
1409
1317
|
}
|
|
1410
1318
|
return new FieldFilterCondition(item);
|
|
1411
|
-
})) !== null &&
|
|
1412
|
-
|
|
1413
|
-
this.settings = (props === null || props === void 0 ? void 0 : props.settings) && Array.isArray(props === null || props === void 0 ? void 0 : props.settings) ? (_props_settings_map = props === null || props === void 0 ? void 0 : (_props_settings = props.settings) === null || _props_settings === void 0 ? void 0 : _props_settings.map(function(item) {
|
|
1319
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
1320
|
+
this.settings = (props === null || props === void 0 ? void 0 : props.settings) && Array.isArray(props === null || props === void 0 ? void 0 : props.settings) ? (_ref3 = props === null || props === void 0 ? void 0 : (_props_settings = props.settings) === null || _props_settings === void 0 ? void 0 : _props_settings.map(function(item) {
|
|
1414
1321
|
return new RowStyleSettings(item);
|
|
1415
|
-
})) !== null &&
|
|
1322
|
+
})) !== null && _ref3 !== void 0 ? _ref3 : [] : [];
|
|
1416
1323
|
this.script = props === null || props === void 0 ? void 0 : props.script;
|
|
1417
1324
|
};
|
|
1418
1325
|
export var RowStyleSettings = function RowStyleSettings(props) {
|
|
1419
1326
|
"use strict";
|
|
1420
1327
|
_class_call_check(this, RowStyleSettings);
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
*
|
|
1424
|
-
* @
|
|
1328
|
+
var _props_type, _props_fieldCodes, _props_color, _props_scope;
|
|
1329
|
+
/**
|
|
1330
|
+
* 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
|
|
1331
|
+
* @defaultValue 'theme'
|
|
1332
|
+
* @public
|
|
1425
1333
|
*/ _define_property(this, "color", void 0);
|
|
1426
|
-
/**
|
|
1427
|
-
* 生效列字段
|
|
1334
|
+
/**
|
|
1335
|
+
* 生效列字段
|
|
1428
1336
|
*/ _define_property(this, "fieldCodes", void 0);
|
|
1429
|
-
/**
|
|
1430
|
-
* 样式类型,background单元格背景色,fontColor单元格字体色
|
|
1337
|
+
/**
|
|
1338
|
+
* 样式类型,background单元格背景色,fontColor单元格字体色
|
|
1431
1339
|
*/ _define_property(this, "type", void 0);
|
|
1432
|
-
/**
|
|
1433
|
-
* 作用范围,row整行,col整列
|
|
1340
|
+
/**
|
|
1341
|
+
* 作用范围,row整行,col整列
|
|
1434
1342
|
*/ _define_property(this, "scope", void 0);
|
|
1435
|
-
var _props_type;
|
|
1436
1343
|
this.type = (_props_type = props.type) !== null && _props_type !== void 0 ? _props_type : 'background';
|
|
1437
|
-
var _props_fieldCodes;
|
|
1438
1344
|
this.fieldCodes = (_props_fieldCodes = props.fieldCodes) !== null && _props_fieldCodes !== void 0 ? _props_fieldCodes : [];
|
|
1439
|
-
var _props_color;
|
|
1440
1345
|
this.color = (_props_color = props.color) !== null && _props_color !== void 0 ? _props_color : 'theme';
|
|
1441
|
-
var _props_scope;
|
|
1442
1346
|
this.scope = (_props_scope = props.scope) !== null && _props_scope !== void 0 ? _props_scope : 'row';
|
|
1443
1347
|
};
|
|
1444
1348
|
export var RowStyle = function RowStyle(props) {
|
|
1445
1349
|
"use strict";
|
|
1446
1350
|
_class_call_check(this, RowStyle);
|
|
1351
|
+
var _ref, _ref1, _ref2;
|
|
1447
1352
|
var _props_rules;
|
|
1448
1353
|
_define_property(this, "type", void 0);
|
|
1449
1354
|
_define_property(this, "interval", void 0);
|
|
1450
1355
|
_define_property(this, "rules", void 0);
|
|
1451
|
-
|
|
1452
|
-
this.
|
|
1453
|
-
var _props_interval;
|
|
1454
|
-
this.interval = (_props_interval = props === null || props === void 0 ? void 0 : props.interval) !== null && _props_interval !== void 0 ? _props_interval : {
|
|
1356
|
+
this.type = (_ref = props === null || props === void 0 ? void 0 : props.type) !== null && _ref !== void 0 ? _ref : 'none';
|
|
1357
|
+
this.interval = (_ref1 = props === null || props === void 0 ? void 0 : props.interval) !== null && _ref1 !== void 0 ? _ref1 : {
|
|
1455
1358
|
color: ''
|
|
1456
1359
|
};
|
|
1457
|
-
|
|
1458
|
-
this.rules = (props === null || props === void 0 ? void 0 : props.rules) && Array.isArray(props === null || props === void 0 ? void 0 : props.rules) ? (_props_rules_map = props === null || props === void 0 ? void 0 : (_props_rules = props.rules) === null || _props_rules === void 0 ? void 0 : _props_rules.map(function(item) {
|
|
1360
|
+
this.rules = (props === null || props === void 0 ? void 0 : props.rules) && Array.isArray(props === null || props === void 0 ? void 0 : props.rules) ? (_ref2 = props === null || props === void 0 ? void 0 : (_props_rules = props.rules) === null || _props_rules === void 0 ? void 0 : _props_rules.map(function(item) {
|
|
1459
1361
|
return new RowStyleRule(item);
|
|
1460
|
-
})) !== null &&
|
|
1362
|
+
})) !== null && _ref2 !== void 0 ? _ref2 : [] : [];
|
|
1461
1363
|
};
|