@byteluck-fe/model-driven-controls 7.0.0-beta.5 → 7.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/baseControls/BarChart/designer.js +11 -11
- package/dist/esm/baseControls/BarChart/property.js +73 -22
- package/dist/esm/baseControls/BatchDeleteButton/property.js +23 -15
- package/dist/esm/baseControls/BatchPrintListButton/property.js +14 -11
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +9 -8
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +12 -7
- package/dist/esm/baseControls/Button/property.js +27 -17
- package/dist/esm/baseControls/Comment/property.js +7 -7
- package/dist/esm/baseControls/CreateFormListButton/property.js +13 -10
- package/dist/esm/baseControls/Dashboard/property.js +21 -14
- package/dist/esm/baseControls/Divider/property.js +17 -12
- package/dist/esm/baseControls/ExportListButton/property.js +14 -11
- package/dist/esm/baseControls/ExportRecordListButton/property.js +9 -8
- package/dist/esm/baseControls/FormSelectButton/property.js +11 -9
- package/dist/esm/baseControls/Iframe/designer.js +4 -4
- package/dist/esm/baseControls/Iframe/property.js +10 -7
- package/dist/esm/baseControls/ImportRecordListButton/property.js +14 -11
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +24 -16
- package/dist/esm/baseControls/LineChart/designer.js +7 -7
- package/dist/esm/baseControls/LineChart/property.js +73 -22
- package/dist/esm/baseControls/Link/property.js +17 -12
- package/dist/esm/baseControls/ListSelectButton/property.js +15 -11
- package/dist/esm/baseControls/ListViewSelect/property.js +10 -9
- package/dist/esm/baseControls/OperationButton/property.js +17 -12
- package/dist/esm/baseControls/Pagination/property.js +5 -5
- package/dist/esm/baseControls/PieChart/designer.js +10 -10
- package/dist/esm/baseControls/PieChart/property.js +80 -20
- package/dist/esm/baseControls/ReferenceList/property.js +17 -12
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +9 -8
- package/dist/esm/baseControls/Text/designer.js +1 -1
- package/dist/esm/baseControls/Text/property.js +23 -15
- package/dist/esm/baseControls/TextOcrButton/property.js +24 -16
- package/dist/esm/baseControls/Title/property.js +6 -4
- package/dist/esm/baseControls/utils.js +1 -1
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +11 -9
- package/dist/esm/columnControls/ArrayColumn/property.js +13 -10
- package/dist/esm/columnControls/AutoNumberColumn/property.js +9 -8
- package/dist/esm/columnControls/CustomColumn/designer.js +0 -1
- package/dist/esm/columnControls/CustomColumn/property.js +11 -9
- package/dist/esm/columnControls/DecimalColumn/property.js +19 -13
- package/dist/esm/columnControls/DepartmentColumn/property.js +9 -8
- package/dist/esm/columnControls/EmployeeColumn/property.js +9 -8
- package/dist/esm/columnControls/FileColumn/property.js +9 -8
- package/dist/esm/columnControls/GroupColumn/property.js +7 -7
- package/dist/esm/columnControls/ImageColumn/property.js +7 -7
- package/dist/esm/columnControls/LocationColumn/property.js +9 -8
- package/dist/esm/columnControls/OperationColumn/designer.js +12 -16
- package/dist/esm/columnControls/OperationColumn/property.js +15 -11
- package/dist/esm/columnControls/OrderColumn/property.js +17 -12
- package/dist/esm/columnControls/PeopleColumn/property.js +7 -7
- package/dist/esm/columnControls/TextColumn/property.js +13 -10
- package/dist/esm/columnControls/TimescopeColumn/property.js +13 -10
- package/dist/esm/columnControls/TimestampColumn/property.js +13 -10
- package/dist/esm/columnControls/VarcharColumn/property.js +17 -12
- package/dist/esm/formControls/Address/property.js +17 -12
- package/dist/esm/formControls/Amount/property.js +29 -18
- package/dist/esm/formControls/Attachment/property.js +39 -23
- package/dist/esm/formControls/AutoNumber/property.js +11 -9
- package/dist/esm/formControls/Barcode/designer.js +41 -21
- package/dist/esm/formControls/Barcode/property.js +21 -13
- package/dist/esm/formControls/Barcode/schema.json +19 -8
- package/dist/esm/formControls/Calc/property.js +18 -10
- package/dist/esm/formControls/Cascader/property.js +31 -17
- package/dist/esm/formControls/Checkbox/property.js +31 -17
- package/dist/esm/formControls/Counter/property.js +18 -10
- package/dist/esm/formControls/DatePicker/property.js +32 -20
- package/dist/esm/formControls/DateRange/property.js +28 -18
- package/dist/esm/formControls/Department/property.js +27 -17
- package/dist/esm/formControls/Department2/property.js +40 -24
- package/dist/esm/formControls/ElectronicSignature/property.js +17 -12
- package/dist/esm/formControls/Employee/property.js +23 -15
- package/dist/esm/formControls/Employee2/property.js +38 -22
- package/dist/esm/formControls/Image/designer.js +8 -8
- package/dist/esm/formControls/Image/property.js +17 -8
- package/dist/esm/formControls/Input/property.js +20 -11
- package/dist/esm/formControls/Number/property.js +32 -17
- package/dist/esm/formControls/OrganizationSelection/property.js +41 -24
- package/dist/esm/formControls/QrCode/designer.js +47 -27
- package/dist/esm/formControls/QrCode/property.js +24 -17
- package/dist/esm/formControls/QrCode/schema.json +20 -9
- package/dist/esm/formControls/Radio/property.js +33 -20
- package/dist/esm/formControls/RichText/designer.js +1 -1
- package/dist/esm/formControls/RichText/property.js +22 -12
- package/dist/esm/formControls/Score/property.js +17 -10
- package/dist/esm/formControls/SearchDateRange/property.js +30 -19
- package/dist/esm/formControls/SearchInput/property.js +5 -5
- package/dist/esm/formControls/SearchNumberRange/property.js +17 -12
- package/dist/esm/formControls/Select/property.js +29 -18
- package/dist/esm/formControls/SelectMultiple/property.js +27 -17
- package/dist/esm/formControls/SelectRelation/property.js +31 -19
- package/dist/esm/formControls/Slider/designer.js +2 -1
- package/dist/esm/formControls/Slider/property.js +22 -17
- package/dist/esm/formControls/Switch/designer.js +15 -14
- package/dist/esm/formControls/Switch/property.js +19 -10
- package/dist/esm/formControls/Tag/designer.js +14 -13
- package/dist/esm/formControls/Tag/property.js +23 -15
- package/dist/esm/formControls/Textarea/property.js +20 -11
- package/dist/esm/formControls/TimePicker/property.js +20 -14
- package/dist/esm/formControls/TimeRange/property.js +24 -16
- package/dist/esm/formControls/Tree/property.js +39 -21
- package/dist/esm/formControls/VueFormItem/property.js +15 -11
- package/dist/esm/formControls/VuePage/property.js +15 -11
- package/dist/esm/formControls/WPS/designer.js +9 -9
- package/dist/esm/formControls/WPS/property.js +29 -18
- package/dist/esm/framework.js +135 -81
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/ActionBar/property.js +11 -9
- package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
- package/dist/esm/layoutControls/AdvancedContainer/property.js +5 -5
- package/dist/esm/layoutControls/BlankContainer/designer.js +8 -7
- package/dist/esm/layoutControls/BlankContainer/property.js +15 -12
- package/dist/esm/layoutControls/CardGroup/property.js +20 -11
- package/dist/esm/layoutControls/Col/property.js +11 -9
- package/dist/esm/layoutControls/Collapse/designer.js +2 -2
- package/dist/esm/layoutControls/Collapse/property.js +9 -8
- package/dist/esm/layoutControls/CollapsePane/property.js +7 -7
- package/dist/esm/layoutControls/DataView/property.js +19 -13
- package/dist/esm/layoutControls/Grid/property.js +5 -5
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +9 -8
- package/dist/esm/layoutControls/GridRow/property.js +5 -5
- package/dist/esm/layoutControls/GridTableColumn/property.js +25 -16
- package/dist/esm/layoutControls/ListView/property.js +28 -15
- package/dist/esm/layoutControls/Page/property.js +7 -7
- package/dist/esm/layoutControls/Position/property.js +13 -10
- package/dist/esm/layoutControls/PositioningContainer/property.js +5 -5
- package/dist/esm/layoutControls/Row/property.js +15 -11
- package/dist/esm/layoutControls/Step/designer.js +2 -2
- package/dist/esm/layoutControls/Step/property.js +27 -17
- package/dist/esm/layoutControls/StepPane/property.js +21 -14
- package/dist/esm/layoutControls/SubTableColumn/property.js +10 -6
- package/dist/esm/layoutControls/SubTableRow/property.js +5 -5
- package/dist/esm/layoutControls/Tab/designer.js +2 -2
- package/dist/esm/layoutControls/Tab/property.js +15 -11
- package/dist/esm/layoutControls/TabPane/property.js +7 -7
- package/dist/esm/layoutControls/TableLayout/property.js +35 -21
- package/dist/esm/layoutControls/TableLayoutCol/property.js +25 -16
- package/dist/esm/layoutControls/TableLayoutRow/property.js +9 -8
- package/dist/esm/layoutControls/TableLayoutWrapper/property.js +11 -9
- package/dist/esm/layoutControls/Toolbox/property.js +5 -5
- package/dist/esm/listControls/GridTable/designer.js +12 -17
- package/dist/esm/listControls/GridTable/property.js +15 -11
- package/dist/esm/listControls/SubTable/property.js +70 -36
- package/dist/esm/searchControls/SimpleSearch/property.js +29 -18
- package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
- package/dist/esm/wrapControls/GridLayoutWrap/property.js +7 -7
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Barcode/property.d.ts +5 -10
- package/dist/types/formControls/QrCode/property.d.ts +5 -10
- package/dist/types/layoutControls/BlankContainer/property.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_auto_number
|
|
3
|
+
* description: 自动编号组件,用于展示或承载系统生成的业务编号。适合单据编号、流水号等场景,支持默认值配置并作为表单编号字段使用。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_auto_number
|
|
75
|
-
* description: 自动编号组件,用于展示或承载系统生成的业务编号。适合单据编号、流水号等场景,支持默认值配置并作为表单编号字段使用。
|
|
76
|
-
*/ import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
77
|
import AutoNumberControl from './designer';
|
|
78
78
|
import { BaseControlProperty } from '@byteluck-fe/model-driven-core';
|
|
79
79
|
var AutoNumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
@@ -82,13 +82,15 @@ var AutoNumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
82
82
|
function AutoNumberProperty(props) {
|
|
83
83
|
_class_call_check(this, AutoNumberProperty);
|
|
84
84
|
var _this;
|
|
85
|
-
var _ref, _ref1, _ref2;
|
|
86
85
|
_this = _call_super(this, AutoNumberProperty, [
|
|
87
86
|
props
|
|
88
87
|
]), _define_property(_this, "defaultValue", void 0);
|
|
89
|
-
|
|
90
|
-
_this.
|
|
91
|
-
|
|
88
|
+
var _props_defaultValue;
|
|
89
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
90
|
+
var _props_caption;
|
|
91
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AutoNumberControl.controlName;
|
|
92
|
+
var _props_placeholder;
|
|
93
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterAutonumber', null, '请输入自动编号');
|
|
92
94
|
return _this;
|
|
93
95
|
}
|
|
94
96
|
return AutoNumberProperty;
|
|
@@ -84,6 +84,7 @@ function _is_native_reflect_construct() {
|
|
|
84
84
|
return !!result;
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
87
88
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
89
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
90
|
import BarcodeProperty from './property';
|
|
@@ -103,7 +104,7 @@ var BarcodeControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return '
|
|
107
|
+
return getLocaleText('CMD.9fb91777541735669');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -173,75 +174,94 @@ _define_property(BarcodeControl, "setting", [
|
|
|
173
174
|
{
|
|
174
175
|
key: 'common-group',
|
|
175
176
|
visible: true,
|
|
176
|
-
label: '
|
|
177
|
+
label: getLocaleText('CMD.6e021777541706714'),
|
|
177
178
|
children: [
|
|
178
179
|
{
|
|
179
180
|
key: 'common-input-number',
|
|
180
181
|
visible: true,
|
|
181
182
|
name: 'codeHeight',
|
|
182
183
|
layout: 'horizontal',
|
|
183
|
-
label: '
|
|
184
|
+
label: getLocaleText('CMD.a5611777541611406')
|
|
184
185
|
},
|
|
185
186
|
{
|
|
186
187
|
key: 'common-input-number',
|
|
187
188
|
visible: true,
|
|
188
189
|
name: 'codeWidth',
|
|
189
190
|
layout: 'horizontal',
|
|
190
|
-
label: '
|
|
191
|
+
label: getLocaleText('CMD.453a1777541614098')
|
|
191
192
|
},
|
|
192
193
|
{
|
|
193
194
|
key: 'common-input-number',
|
|
194
195
|
visible: true,
|
|
195
196
|
name: 'codeMargin',
|
|
196
197
|
layout: 'horizontal',
|
|
197
|
-
label: '
|
|
198
|
+
label: getLocaleText('CMD.fc751777541645066')
|
|
198
199
|
},
|
|
199
200
|
{
|
|
200
201
|
key: 'common-switch',
|
|
201
202
|
visible: true,
|
|
202
203
|
name: 'displayValue',
|
|
203
204
|
layout: 'horizontal',
|
|
204
|
-
label: '
|
|
205
|
+
label: getLocaleText('CMD.6c311777541737079')
|
|
205
206
|
}
|
|
206
207
|
]
|
|
207
208
|
},
|
|
208
209
|
{
|
|
209
210
|
key: 'common-group',
|
|
210
211
|
visible: true,
|
|
211
|
-
label: '
|
|
212
|
+
label: getLocaleText('CMD.7a091777541710451'),
|
|
212
213
|
children: [
|
|
213
214
|
{
|
|
214
|
-
key: '
|
|
215
|
-
visible: true,
|
|
216
|
-
name: 'backgroundColor',
|
|
217
|
-
layout: 'horizontal',
|
|
218
|
-
label: '背景色'
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
key: 'color',
|
|
215
|
+
key: 'common-select',
|
|
222
216
|
visible: true,
|
|
223
217
|
name: 'barcodeColor',
|
|
224
|
-
|
|
225
|
-
|
|
218
|
+
label: getLocaleText('CMD.01a11777541712546'),
|
|
219
|
+
default: '#000000',
|
|
220
|
+
options: [
|
|
221
|
+
{
|
|
222
|
+
value: '#000000',
|
|
223
|
+
label: getLocaleText('CMD.c1fb1777541756177')
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
value: '#001F3F',
|
|
227
|
+
label: getLocaleText('CMD.c5de1777541714576')
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
value: '#004225',
|
|
231
|
+
label: getLocaleText('CMD.91211777541716842')
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
value: '#4A0404',
|
|
235
|
+
label: getLocaleText('CMD.49421777541738691')
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
value: '#2F2F2F',
|
|
239
|
+
label: getLocaleText('CMD.99701777541740192')
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
value: '#1A237E',
|
|
243
|
+
label: getLocaleText('CMD.5c681777541741804')
|
|
244
|
+
}
|
|
245
|
+
]
|
|
226
246
|
},
|
|
227
247
|
{
|
|
228
248
|
key: 'common-button-radio',
|
|
229
249
|
visible: true,
|
|
230
250
|
name: 'align',
|
|
231
|
-
label: '
|
|
251
|
+
label: getLocaleText('CMD.6abe1777541757478'),
|
|
232
252
|
default: 'left',
|
|
233
253
|
options: [
|
|
234
254
|
{
|
|
235
255
|
value: 'left',
|
|
236
|
-
label: '
|
|
256
|
+
label: getLocaleText('CMD.70c61777541743098')
|
|
237
257
|
},
|
|
238
258
|
{
|
|
239
259
|
value: 'center',
|
|
240
|
-
label: '
|
|
260
|
+
label: getLocaleText('CMD.41551777541758747')
|
|
241
261
|
},
|
|
242
262
|
{
|
|
243
263
|
value: 'right',
|
|
244
|
-
label: '
|
|
264
|
+
label: getLocaleText('CMD.1fc91777541744537')
|
|
245
265
|
}
|
|
246
266
|
]
|
|
247
267
|
}
|
|
@@ -70,9 +70,10 @@ function _is_native_reflect_construct() {
|
|
|
70
70
|
return !!result;
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
73
74
|
/**
|
|
74
75
|
* name: rok_barcode
|
|
75
|
-
* description:
|
|
76
|
+
* description: 条形码组件,用于展示或绑定一维条码内容。支持条码尺寸、边距、条码颜色与对齐方式配置,适合物料编码、单据号等场景。
|
|
76
77
|
*/ import BarcodeControl from './designer';
|
|
77
78
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
78
79
|
var BarcodePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
@@ -108,20 +109,27 @@ var BarcodeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
108
109
|
function BarcodeProperty(props) {
|
|
109
110
|
_class_call_check(this, BarcodeProperty);
|
|
110
111
|
var _this;
|
|
111
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
112
112
|
_this = _call_super(this, BarcodeProperty, [
|
|
113
113
|
props
|
|
114
|
-
]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "codeHeight", void 0), _define_property(_this, "codeWidth", void 0), _define_property(_this, "codeMargin", void 0), _define_property(_this, "
|
|
115
|
-
|
|
116
|
-
_this.
|
|
117
|
-
|
|
118
|
-
_this.
|
|
119
|
-
|
|
120
|
-
_this.
|
|
121
|
-
|
|
122
|
-
_this.
|
|
123
|
-
|
|
124
|
-
_this.
|
|
114
|
+
]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "codeHeight", void 0), _define_property(_this, "codeWidth", void 0), _define_property(_this, "codeMargin", void 0), _define_property(_this, "barcodeColor", void 0), _define_property(_this, "align", void 0), _define_property(_this, "displayValue", void 0);
|
|
115
|
+
var _props_caption;
|
|
116
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : BarcodeControl.controlName;
|
|
117
|
+
var _props_placeholder;
|
|
118
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.5c5a1777541746080');
|
|
119
|
+
var _props_defaultValue;
|
|
120
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
121
|
+
var _props_codeHeight;
|
|
122
|
+
_this.codeHeight = (_props_codeHeight = props === null || props === void 0 ? void 0 : props.codeHeight) !== null && _props_codeHeight !== void 0 ? _props_codeHeight : 80;
|
|
123
|
+
var _props_codeWidth;
|
|
124
|
+
_this.codeWidth = (_props_codeWidth = props === null || props === void 0 ? void 0 : props.codeWidth) !== null && _props_codeWidth !== void 0 ? _props_codeWidth : 1;
|
|
125
|
+
var _props_codeMargin;
|
|
126
|
+
_this.codeMargin = (_props_codeMargin = props === null || props === void 0 ? void 0 : props.codeMargin) !== null && _props_codeMargin !== void 0 ? _props_codeMargin : 0;
|
|
127
|
+
var _props_barcodeColor;
|
|
128
|
+
_this.barcodeColor = (_props_barcodeColor = props === null || props === void 0 ? void 0 : props.barcodeColor) !== null && _props_barcodeColor !== void 0 ? _props_barcodeColor : '#000000';
|
|
129
|
+
var _props_align;
|
|
130
|
+
_this.align = (_props_align = props === null || props === void 0 ? void 0 : props.align) !== null && _props_align !== void 0 ? _props_align : 'left';
|
|
131
|
+
var _props_displayValue;
|
|
132
|
+
_this.displayValue = (_props_displayValue = props === null || props === void 0 ? void 0 : props.displayValue) !== null && _props_displayValue !== void 0 ? _props_displayValue : false;
|
|
125
133
|
return _this;
|
|
126
134
|
}
|
|
127
135
|
return BarcodeProperty;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rok_barcode",
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "条形码组件,用于展示或绑定一维条码内容。支持条码尺寸、边距、条码颜色与对齐方式配置,适合物料编码、单据号等场景。",
|
|
4
4
|
"parameters": {
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -175,15 +175,26 @@
|
|
|
175
175
|
"description": "边距;单位 px",
|
|
176
176
|
"default": 0
|
|
177
177
|
},
|
|
178
|
-
"backgroundColor": {
|
|
179
|
-
"type": "string",
|
|
180
|
-
"description": "背景色",
|
|
181
|
-
"default": "#ffffff"
|
|
182
|
-
},
|
|
183
178
|
"barcodeColor": {
|
|
184
179
|
"type": "string",
|
|
185
|
-
"
|
|
186
|
-
|
|
180
|
+
"enum": [
|
|
181
|
+
"#000000",
|
|
182
|
+
"#001F3F",
|
|
183
|
+
"#004225",
|
|
184
|
+
"#4A0404",
|
|
185
|
+
"#2F2F2F",
|
|
186
|
+
"#1A237E"
|
|
187
|
+
],
|
|
188
|
+
"description": "条码颜色;",
|
|
189
|
+
"default": "#000000",
|
|
190
|
+
"enumDescription": [
|
|
191
|
+
"纯黑",
|
|
192
|
+
"深海军蓝",
|
|
193
|
+
"深森林绿",
|
|
194
|
+
"深酒红",
|
|
195
|
+
"深炭灰",
|
|
196
|
+
"深靛青"
|
|
197
|
+
]
|
|
187
198
|
},
|
|
188
199
|
"align": {
|
|
189
200
|
"type": "string",
|
|
@@ -133,21 +133,29 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
133
133
|
function CalcProperty(props) {
|
|
134
134
|
_class_call_check(this, CalcProperty);
|
|
135
135
|
var _this;
|
|
136
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
137
136
|
_this = _call_super(this, CalcProperty, [
|
|
138
137
|
props
|
|
139
138
|
]), _define_property(_this, "precision", void 0), _define_property(_this, "micrometer", void 0), _define_property(_this, "showUpperCase", void 0), _define_property(_this, "scriptSrc", void 0), _define_property(_this, "scriptEcho", void 0), _define_property(_this, "dataBind", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "unitPosition", void 0), _define_property(_this, "calcOnMounted", void 0);
|
|
140
|
-
|
|
141
|
-
_this.
|
|
142
|
-
|
|
139
|
+
var _props_precision;
|
|
140
|
+
_this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 0;
|
|
141
|
+
var _props_micrometer;
|
|
142
|
+
_this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
|
|
143
|
+
var _props_showUpperCase;
|
|
144
|
+
_this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
|
|
143
145
|
_this.dataBind = new CalcDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
144
146
|
_this.defaultValue = new CalcValue(props === null || props === void 0 ? void 0 : props.defaultValue);
|
|
145
|
-
|
|
146
|
-
_this.
|
|
147
|
-
|
|
148
|
-
_this.
|
|
149
|
-
|
|
150
|
-
_this.
|
|
147
|
+
var _props_caption;
|
|
148
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
|
|
149
|
+
var _props_unitPosition;
|
|
150
|
+
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
|
|
151
|
+
var _props_placeholder;
|
|
152
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
153
|
+
var _props_scriptEcho;
|
|
154
|
+
_this.scriptEcho = (_props_scriptEcho = props === null || props === void 0 ? void 0 : props.scriptEcho) !== null && _props_scriptEcho !== void 0 ? _props_scriptEcho : [];
|
|
155
|
+
var _props_scriptSrc;
|
|
156
|
+
_this.scriptSrc = (_props_scriptSrc = props === null || props === void 0 ? void 0 : props.scriptSrc) !== null && _props_scriptSrc !== void 0 ? _props_scriptSrc : '';
|
|
157
|
+
var _props_calcOnMounted;
|
|
158
|
+
_this.calcOnMounted = (_props_calcOnMounted = props === null || props === void 0 ? void 0 : props.calcOnMounted) !== null && _props_calcOnMounted !== void 0 ? _props_calcOnMounted : false;
|
|
151
159
|
return _this;
|
|
152
160
|
}
|
|
153
161
|
return CalcProperty;
|
|
@@ -82,32 +82,46 @@ var CascaderProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
82
82
|
function CascaderProperty(props) {
|
|
83
83
|
_class_call_check(this, CascaderProperty);
|
|
84
84
|
var _this;
|
|
85
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14;
|
|
86
85
|
var _props_multistageFilling;
|
|
87
86
|
_this = _call_super(this, CascaderProperty, [
|
|
88
87
|
props
|
|
89
88
|
]), _define_property(_this, "showSearch", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "expandTrigger", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "allowClear", void 0), _define_property(_this, "showCheckedStrategy", void 0), _define_property(_this, "saveCheckedStrategy", void 0), _define_property(_this, "separator", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0);
|
|
90
|
-
|
|
91
|
-
_this.
|
|
92
|
-
|
|
93
|
-
_this.
|
|
94
|
-
|
|
95
|
-
_this.
|
|
96
|
-
|
|
97
|
-
_this.
|
|
98
|
-
|
|
99
|
-
_this.
|
|
100
|
-
|
|
89
|
+
var _props_caption;
|
|
90
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : CascaderControl.controlName;
|
|
91
|
+
var _props_placeholder;
|
|
92
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
|
|
93
|
+
var _props_multiple;
|
|
94
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
95
|
+
var _props_showSearch;
|
|
96
|
+
_this.showSearch = (_props_showSearch = props === null || props === void 0 ? void 0 : props.showSearch) !== null && _props_showSearch !== void 0 ? _props_showSearch : true;
|
|
97
|
+
var _props_expandTrigger;
|
|
98
|
+
_this.expandTrigger = (_props_expandTrigger = props === null || props === void 0 ? void 0 : props.expandTrigger) !== null && _props_expandTrigger !== void 0 ? _props_expandTrigger : 'click';
|
|
99
|
+
var _props_allowClear;
|
|
100
|
+
_this.allowClear = (_props_allowClear = props === null || props === void 0 ? void 0 : props.allowClear) !== null && _props_allowClear !== void 0 ? _props_allowClear : true;
|
|
101
|
+
var _props_showCheckedStrategy;
|
|
102
|
+
_this.showCheckedStrategy = (_props_showCheckedStrategy = props === null || props === void 0 ? void 0 : props.showCheckedStrategy) !== null && _props_showCheckedStrategy !== void 0 ? _props_showCheckedStrategy : '';
|
|
103
|
+
var _props_saveCheckedStrategy;
|
|
104
|
+
_this.saveCheckedStrategy = (_props_saveCheckedStrategy = props === null || props === void 0 ? void 0 : props.saveCheckedStrategy) !== null && _props_saveCheckedStrategy !== void 0 ? _props_saveCheckedStrategy : 'CHILD';
|
|
105
|
+
var _props_separator;
|
|
106
|
+
_this.separator = (_props_separator = props === null || props === void 0 ? void 0 : props.separator) !== null && _props_separator !== void 0 ? _props_separator : '/';
|
|
107
|
+
var _props_optionConfig;
|
|
108
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
|
|
109
|
+
var _props_datasourceBind;
|
|
110
|
+
_this.datasourceBind = new TreeDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
101
111
|
attributes: CascaderControl.controlCustomAttributes
|
|
102
112
|
});
|
|
103
|
-
|
|
113
|
+
var _props_filterItemDatasourceBind;
|
|
114
|
+
_this.filterItemDatasourceBind = new TreeDataSourceBind((_props_filterItemDatasourceBind = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _props_filterItemDatasourceBind !== void 0 ? _props_filterItemDatasourceBind : {
|
|
104
115
|
attributes: CascaderControl.controlCustomAttributes
|
|
105
116
|
});
|
|
106
|
-
|
|
107
|
-
_this.
|
|
117
|
+
var _props_openMultistageFilling;
|
|
118
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
119
|
+
var _props_multistageFilling_map;
|
|
120
|
+
_this.multistageFilling = (_props_multistageFilling_map = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
|
|
108
121
|
return new MultistageFillingItem(item);
|
|
109
|
-
})) !== null &&
|
|
110
|
-
|
|
122
|
+
})) !== null && _props_multistageFilling_map !== void 0 ? _props_multistageFilling_map : [];
|
|
123
|
+
var _props_defaultValue;
|
|
124
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
111
125
|
return _this;
|
|
112
126
|
}
|
|
113
127
|
return CascaderProperty;
|
|
@@ -93,7 +93,7 @@ var CheckboxPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRu
|
|
|
93
93
|
if (unlimitedMax) {
|
|
94
94
|
_this.limitMax.type = 'string';
|
|
95
95
|
}
|
|
96
|
-
var isUnlimited = function
|
|
96
|
+
var isUnlimited = function(value) {
|
|
97
97
|
return value === 'unlimited' ? undefined : value;
|
|
98
98
|
};
|
|
99
99
|
_this.limitMax.min = isUnlimited(props.limitMin);
|
|
@@ -128,7 +128,6 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
128
128
|
function CheckboxProperty(props) {
|
|
129
129
|
_class_call_check(this, CheckboxProperty);
|
|
130
130
|
var _this;
|
|
131
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14;
|
|
132
131
|
_this = _call_super(this, CheckboxProperty, [
|
|
133
132
|
props
|
|
134
133
|
]), _define_property(_this, "checkboxMode", void 0), _define_property(_this, "options", void 0), _define_property(_this, "optionsOrder", void 0), _define_property(_this, "limitMax", void 0), _define_property(_this, "limitMin", void 0), _define_property(_this, "otherOption", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "optionsFormat", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "interreaction", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), /**
|
|
@@ -143,7 +142,8 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
143
142
|
* 是否开启设置选项自定义颜色;仅当选项设置为自定义时该设置生效;
|
|
144
143
|
* @defaultValue false
|
|
145
144
|
*/ _define_property(_this, "isUseCustomColor", void 0);
|
|
146
|
-
|
|
145
|
+
var _props_options;
|
|
146
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
147
147
|
{
|
|
148
148
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
149
149
|
value: getLocaleText('CMD.optionOne', null, '选项一')
|
|
@@ -157,20 +157,33 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
157
157
|
value: getLocaleText('CMD.optionThird', null, '选项三')
|
|
158
158
|
}
|
|
159
159
|
]);
|
|
160
|
-
|
|
161
|
-
_this.
|
|
162
|
-
|
|
163
|
-
_this.
|
|
164
|
-
|
|
165
|
-
_this.
|
|
160
|
+
var _props_checkboxMode;
|
|
161
|
+
_this.checkboxMode = (_props_checkboxMode = props === null || props === void 0 ? void 0 : props.checkboxMode) !== null && _props_checkboxMode !== void 0 ? _props_checkboxMode : 'horizontal';
|
|
162
|
+
var _props_optionConfig;
|
|
163
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
|
|
164
|
+
var _props_optionsOrder;
|
|
165
|
+
_this.optionsOrder = (_props_optionsOrder = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _props_optionsOrder !== void 0 ? _props_optionsOrder : false;
|
|
166
|
+
var _props_otherOption;
|
|
167
|
+
_this.otherOption = (_props_otherOption = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _props_otherOption !== void 0 ? _props_otherOption : false;
|
|
168
|
+
var _props_limitMin;
|
|
169
|
+
_this.limitMin = (_props_limitMin = props === null || props === void 0 ? void 0 : props.limitMin) !== null && _props_limitMin !== void 0 ? _props_limitMin : 'unlimited';
|
|
170
|
+
var _props_limitMax;
|
|
171
|
+
_this.limitMax = (_props_limitMax = props === null || props === void 0 ? void 0 : props.limitMax) !== null && _props_limitMax !== void 0 ? _props_limitMax : 'unlimited';
|
|
166
172
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
167
|
-
|
|
168
|
-
_this.
|
|
169
|
-
|
|
170
|
-
_this.
|
|
171
|
-
|
|
172
|
-
_this.
|
|
173
|
-
|
|
173
|
+
var _props_interreaction;
|
|
174
|
+
_this.interreaction = (_props_interreaction = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _props_interreaction !== void 0 ? _props_interreaction : [];
|
|
175
|
+
var _props_caption;
|
|
176
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : CheckboxControl.controlName;
|
|
177
|
+
var _props_defaultValue;
|
|
178
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
179
|
+
var _props_optionsFormat;
|
|
180
|
+
_this.optionsFormat = (_props_optionsFormat = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _props_optionsFormat !== void 0 ? _props_optionsFormat : 'horizontal';
|
|
181
|
+
var _props_defaultShowOptions;
|
|
182
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
183
|
+
var _props_openMultistageFilling;
|
|
184
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
185
|
+
var _props_isUseCustomColor;
|
|
186
|
+
_this.isUseCustomColor = (_props_isUseCustomColor = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _props_isUseCustomColor !== void 0 ? _props_isUseCustomColor : false;
|
|
174
187
|
_this.multistageFilling = [];
|
|
175
188
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
176
189
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -178,7 +191,8 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
178
191
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
179
192
|
});
|
|
180
193
|
}
|
|
181
|
-
|
|
194
|
+
var _props_aiContentSearch;
|
|
195
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
182
196
|
return _this;
|
|
183
197
|
}
|
|
184
198
|
return CheckboxProperty;
|
|
@@ -146,19 +146,27 @@ var CounterProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
146
146
|
function CounterProperty(props) {
|
|
147
147
|
_class_call_check(this, CounterProperty);
|
|
148
148
|
var _this;
|
|
149
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
150
149
|
_this = _call_super(this, CounterProperty, [
|
|
151
150
|
props
|
|
152
151
|
]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "min", void 0), _define_property(_this, "max", void 0), _define_property(_this, "step", void 0), _define_property(_this, "precision", void 0), _define_property(_this, "controls", void 0), _define_property(_this, "controlPosition", void 0);
|
|
153
|
-
|
|
154
|
-
_this.
|
|
155
|
-
|
|
156
|
-
_this.
|
|
157
|
-
|
|
158
|
-
_this.
|
|
159
|
-
|
|
160
|
-
_this.
|
|
161
|
-
|
|
152
|
+
var _props_caption;
|
|
153
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : CounterControl.controlName;
|
|
154
|
+
var _props_placeholder;
|
|
155
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
156
|
+
var _props_defaultValue;
|
|
157
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
158
|
+
var _props_min;
|
|
159
|
+
_this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : 0;
|
|
160
|
+
var _props_max;
|
|
161
|
+
_this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : 100;
|
|
162
|
+
var _props_step;
|
|
163
|
+
_this.step = (_props_step = props === null || props === void 0 ? void 0 : props.step) !== null && _props_step !== void 0 ? _props_step : 1;
|
|
164
|
+
var _props_precision;
|
|
165
|
+
_this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 0;
|
|
166
|
+
var _props_controls;
|
|
167
|
+
_this.controls = (_props_controls = props === null || props === void 0 ? void 0 : props.controls) !== null && _props_controls !== void 0 ? _props_controls : true;
|
|
168
|
+
var _props_controlPosition;
|
|
169
|
+
_this.controlPosition = (_props_controlPosition = props === null || props === void 0 ? void 0 : props.controlPosition) !== null && _props_controlPosition !== void 0 ? _props_controlPosition : 'both';
|
|
162
170
|
return _this;
|
|
163
171
|
}
|
|
164
172
|
return CounterProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_date_picker
|
|
3
|
+
* description: 日期选择组件,用于录入单个日期时间值。适合生日、截止日期、预约时间等场景,支持日期类型、自定义格式、可选日期范围、周末过滤和国际化显示。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_date_picker
|
|
75
|
-
* description: 日期选择组件,用于录入单个日期时间值。适合生日、截止日期、预约时间等场景,支持日期类型、自定义格式、可选日期范围、周末过滤和国际化显示。
|
|
76
|
-
*/ import DatePickerControl from './designer';
|
|
76
|
+
import DatePickerControl from './designer';
|
|
77
77
|
import { BaseControlProperty } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
import { DateType } from '@byteluck-fe/model-driven-shared';
|
|
79
79
|
import { LimitDate } from '../../framework';
|
|
@@ -84,31 +84,43 @@ var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
84
84
|
function DatePickerProperty(props) {
|
|
85
85
|
_class_call_check(this, DatePickerProperty);
|
|
86
86
|
var _this;
|
|
87
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
|
|
88
87
|
var _props_limitDateList;
|
|
89
88
|
_this = _call_super(this, DatePickerProperty, [
|
|
90
89
|
props
|
|
91
90
|
]), _define_property(_this, "dateType", void 0), _define_property(_this, "dateFormat", void 0), _define_property(_this, "commonTimeSetting", void 0), _define_property(_this, "setValueType", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "limitDateList", void 0), // public multiple: boolean
|
|
92
91
|
_define_property(_this, "allowDateRange", void 0), _define_property(_this, "filterWeekend", void 0), _define_property(_this, "isInternational", void 0), _define_property(_this, "isShowCustomDateFormat", void 0), _define_property(_this, "customDateFormat", void 0);
|
|
93
|
-
|
|
94
|
-
_this.
|
|
95
|
-
|
|
96
|
-
_this.
|
|
97
|
-
|
|
98
|
-
_this.
|
|
99
|
-
|
|
100
|
-
_this.
|
|
92
|
+
var _props_dateType;
|
|
93
|
+
_this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
|
|
94
|
+
var _props_dateFormat;
|
|
95
|
+
_this.dateFormat = (_props_dateFormat = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _props_dateFormat !== void 0 ? _props_dateFormat : '';
|
|
96
|
+
var _props_commonTimeSetting;
|
|
97
|
+
_this.commonTimeSetting = (_props_commonTimeSetting = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _props_commonTimeSetting !== void 0 ? _props_commonTimeSetting : [];
|
|
98
|
+
var _props_setValueType;
|
|
99
|
+
_this.setValueType = (_props_setValueType = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _props_setValueType !== void 0 ? _props_setValueType : 'custom';
|
|
100
|
+
var _props_caption;
|
|
101
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DatePickerControl.controlName;
|
|
102
|
+
var _props_placeholder;
|
|
103
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterDate', null, '请输入日期');
|
|
104
|
+
var _props_defaultValue;
|
|
105
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
106
|
+
var _props_limitDateList_map;
|
|
107
|
+
_this.limitDateList = (_props_limitDateList_map = props === null || props === void 0 ? void 0 : (_props_limitDateList = props.limitDateList) === null || _props_limitDateList === void 0 ? void 0 : _props_limitDateList.map(function(item) {
|
|
101
108
|
return new LimitDate(item);
|
|
102
|
-
})) !== null &&
|
|
109
|
+
})) !== null && _props_limitDateList_map !== void 0 ? _props_limitDateList_map : [];
|
|
110
|
+
var _props_allowDateRange;
|
|
103
111
|
// this.multiple = props?.multiple ?? false
|
|
104
|
-
_this.allowDateRange = (
|
|
112
|
+
_this.allowDateRange = (_props_allowDateRange = props === null || props === void 0 ? void 0 : props.allowDateRange) !== null && _props_allowDateRange !== void 0 ? _props_allowDateRange : [
|
|
105
113
|
'',
|
|
106
114
|
''
|
|
107
115
|
];
|
|
108
|
-
|
|
109
|
-
_this.
|
|
110
|
-
|
|
111
|
-
_this.
|
|
116
|
+
var _props_filterWeekend;
|
|
117
|
+
_this.filterWeekend = (_props_filterWeekend = props === null || props === void 0 ? void 0 : props.filterWeekend) !== null && _props_filterWeekend !== void 0 ? _props_filterWeekend : false;
|
|
118
|
+
var _props_isInternational;
|
|
119
|
+
_this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
|
|
120
|
+
var _props_isShowCustomDateFormat;
|
|
121
|
+
_this.isShowCustomDateFormat = (_props_isShowCustomDateFormat = props === null || props === void 0 ? void 0 : props.isShowCustomDateFormat) !== null && _props_isShowCustomDateFormat !== void 0 ? _props_isShowCustomDateFormat : false;
|
|
122
|
+
var _props_customDateFormat;
|
|
123
|
+
_this.customDateFormat = (_props_customDateFormat = props === null || props === void 0 ? void 0 : props.customDateFormat) !== null && _props_customDateFormat !== void 0 ? _props_customDateFormat : '';
|
|
112
124
|
return _this;
|
|
113
125
|
}
|
|
114
126
|
return DatePickerProperty;
|