@byteluck-fe/model-driven-controls 7.0.0-beta.4 → 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 +34 -38
- 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/baseControls/Button/property.d.ts +17 -23
- 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
|
@@ -144,25 +144,32 @@ var ScoreProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
144
144
|
function ScoreProperty(props) {
|
|
145
145
|
_class_call_check(this, ScoreProperty);
|
|
146
146
|
var _this;
|
|
147
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
148
147
|
var _props_explain;
|
|
149
148
|
_this = _call_super(this, ScoreProperty, [
|
|
150
149
|
props
|
|
151
150
|
]), _define_property(_this, "totalScore", void 0), _define_property(_this, "scoreType", void 0), _define_property(_this, "isShowExplain", void 0), _define_property(_this, "explain", void 0), _define_property(_this, "defaultValue", void 0), // public canHalf: boolean
|
|
152
151
|
_define_property(_this, "explainColor", void 0), _define_property(_this, "isShowCurrentScore", void 0);
|
|
153
|
-
|
|
154
|
-
_this.
|
|
155
|
-
|
|
156
|
-
_this.
|
|
152
|
+
var _props_totalScore;
|
|
153
|
+
_this.totalScore = (_props_totalScore = props === null || props === void 0 ? void 0 : props.totalScore) !== null && _props_totalScore !== void 0 ? _props_totalScore : 5;
|
|
154
|
+
var _props_scoreType;
|
|
155
|
+
_this.scoreType = (_props_scoreType = props === null || props === void 0 ? void 0 : props.scoreType) !== null && _props_scoreType !== void 0 ? _props_scoreType : SCORE_TYPE.STAR;
|
|
156
|
+
var _props_isShowExplain;
|
|
157
|
+
_this.isShowExplain = (_props_isShowExplain = props === null || props === void 0 ? void 0 : props.isShowExplain) !== null && _props_isShowExplain !== void 0 ? _props_isShowExplain : true;
|
|
158
|
+
var _props_explain_map;
|
|
159
|
+
_this.explain = (_props_explain_map = props === null || props === void 0 ? void 0 : (_props_explain = props.explain) === null || _props_explain === void 0 ? void 0 : _props_explain.map(function(item) {
|
|
157
160
|
return new Explain(item);
|
|
158
|
-
})) !== null &&
|
|
161
|
+
})) !== null && _props_explain_map !== void 0 ? _props_explain_map : Array(_this.totalScore).fill(undefined).map(function() {
|
|
159
162
|
return new Explain();
|
|
160
163
|
});
|
|
161
|
-
|
|
162
|
-
_this.
|
|
164
|
+
var _props_defaultValue;
|
|
165
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : 0;
|
|
166
|
+
var _props_caption;
|
|
167
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ScoreControl.controlName;
|
|
168
|
+
var _props_explainColor;
|
|
163
169
|
// this.canHalf = props?.canHalf ?? false
|
|
164
|
-
_this.explainColor = (
|
|
165
|
-
|
|
170
|
+
_this.explainColor = (_props_explainColor = props === null || props === void 0 ? void 0 : props.explainColor) !== null && _props_explainColor !== void 0 ? _props_explainColor : 'primary';
|
|
171
|
+
var _props_isShowCurrentScore;
|
|
172
|
+
_this.isShowCurrentScore = (_props_isShowCurrentScore = props === null || props === void 0 ? void 0 : props.isShowCurrentScore) !== null && _props_isShowCurrentScore !== void 0 ? _props_isShowCurrentScore : false;
|
|
166
173
|
return _this;
|
|
167
174
|
}
|
|
168
175
|
return ScoreProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_search_date_range
|
|
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_search_date_range
|
|
75
|
-
* description: 搜索日期区间组件,用于在查询条件中选择开始和结束日期。适合列表筛选、报表检索等场景,支持日期类型、常用时间、范围限制和国际化配置。
|
|
76
|
-
*/ import { BaseControlProperty, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
import { BaseControlProperty, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
77
77
|
import SearchDateRangeControl from './designer';
|
|
78
78
|
import { DateType } from '@byteluck-fe/model-driven-shared';
|
|
79
79
|
import { LimitDate } from '../../framework';
|
|
@@ -117,28 +117,39 @@ var SearchDateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
117
117
|
function SearchDateRangeProperty(props) {
|
|
118
118
|
_class_call_check(this, SearchDateRangeProperty);
|
|
119
119
|
var _this;
|
|
120
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
|
|
121
120
|
var _props_limitDateList;
|
|
122
121
|
_this = _call_super(this, SearchDateRangeProperty, [
|
|
123
122
|
props
|
|
124
123
|
]), _define_property(_this, "rangeMin", void 0), _define_property(_this, "rangeMax", void 0), _define_property(_this, "placeholderStart", void 0), _define_property(_this, "placeholderEnd", void 0), _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), _define_property(_this, "isInternational", void 0);
|
|
125
|
-
|
|
124
|
+
var _props_defaultValue;
|
|
125
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
|
|
126
126
|
'',
|
|
127
127
|
''
|
|
128
128
|
];
|
|
129
|
-
|
|
130
|
-
_this.
|
|
131
|
-
|
|
132
|
-
_this.
|
|
133
|
-
|
|
134
|
-
_this.
|
|
135
|
-
|
|
136
|
-
_this.
|
|
137
|
-
|
|
138
|
-
_this.
|
|
129
|
+
var _props_dateType;
|
|
130
|
+
_this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
|
|
131
|
+
var _props_dateFormat;
|
|
132
|
+
_this.dateFormat = (_props_dateFormat = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _props_dateFormat !== void 0 ? _props_dateFormat : '';
|
|
133
|
+
var _props_commonTimeSetting;
|
|
134
|
+
_this.commonTimeSetting = (_props_commonTimeSetting = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _props_commonTimeSetting !== void 0 ? _props_commonTimeSetting : [];
|
|
135
|
+
var _props_setValueType;
|
|
136
|
+
_this.setValueType = (_props_setValueType = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _props_setValueType !== void 0 ? _props_setValueType : 'custom';
|
|
137
|
+
var _props_rangeMin;
|
|
138
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
|
|
139
|
+
var _props_rangeMax;
|
|
140
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
|
|
141
|
+
var _props_placeholderStart;
|
|
142
|
+
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : getLocaleText('CMD.startDate', null, '开始日期');
|
|
143
|
+
var _props_placeholderEnd;
|
|
144
|
+
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : getLocaleText('CMD.endDate', null, '结束日期');
|
|
145
|
+
var _props_caption;
|
|
146
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SearchDateRangeControl.controlName;
|
|
147
|
+
var _props_limitDateList_map;
|
|
148
|
+
_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) {
|
|
139
149
|
return new LimitDate(item);
|
|
140
|
-
})) !== null &&
|
|
141
|
-
|
|
150
|
+
})) !== null && _props_limitDateList_map !== void 0 ? _props_limitDateList_map : [];
|
|
151
|
+
var _props_isInternational;
|
|
152
|
+
_this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
|
|
142
153
|
return _this;
|
|
143
154
|
}
|
|
144
155
|
return SearchDateRangeProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_search_input
|
|
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
|
}
|
|
@@ -57,10 +60,7 @@ function _is_native_reflect_construct() {
|
|
|
57
60
|
return !!result;
|
|
58
61
|
})();
|
|
59
62
|
}
|
|
60
|
-
|
|
61
|
-
* name: rok_search_input
|
|
62
|
-
* description: 搜索单行文本组件,用于列表筛选、条件查询等场景。适合输入关键字快速发起检索,继承文本输入的基础配置能力。
|
|
63
|
-
*/ import { InputProperty } from '../Input';
|
|
63
|
+
import { InputProperty } from '../Input';
|
|
64
64
|
import { BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
65
65
|
var SearchInputProperty = /*#__PURE__*/ function(InputProperty) {
|
|
66
66
|
"use strict";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_search_number_range
|
|
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_search_number_range
|
|
75
|
-
* description: 搜索数字区间组件,用于作为查询条件输入最小值和最大值。适合报表筛选、列表检索等场景,支持区间占位提示、数值上下限和必填校验。
|
|
76
|
-
*/ import { BaseControlProperty, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
import { BaseControlProperty, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
77
77
|
import SearchNumberRangeControl from './designer';
|
|
78
78
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
79
79
|
var SearchNumberRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
@@ -116,19 +116,24 @@ var SearchNumberRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
116
116
|
function SearchNumberRangeProperty(props) {
|
|
117
117
|
_class_call_check(this, SearchNumberRangeProperty);
|
|
118
118
|
var _this;
|
|
119
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
120
119
|
_this = _call_super(this, SearchNumberRangeProperty, [
|
|
121
120
|
props
|
|
122
121
|
]), _define_property(_this, "rangeMin", void 0), _define_property(_this, "rangeMax", void 0), _define_property(_this, "placeholderStart", void 0), _define_property(_this, "placeholderEnd", void 0), _define_property(_this, "defaultValue", void 0);
|
|
123
|
-
|
|
122
|
+
var _props_defaultValue;
|
|
123
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
|
|
124
124
|
'',
|
|
125
125
|
''
|
|
126
126
|
];
|
|
127
|
-
|
|
128
|
-
_this.
|
|
129
|
-
|
|
130
|
-
_this.
|
|
131
|
-
|
|
127
|
+
var _props_rangeMin;
|
|
128
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
|
|
129
|
+
var _props_rangeMax;
|
|
130
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
|
|
131
|
+
var _props_placeholderStart;
|
|
132
|
+
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : getLocaleText('CMD.min', null, '最小值');
|
|
133
|
+
var _props_placeholderEnd;
|
|
134
|
+
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : getLocaleText('CMD.max', null, '最大值');
|
|
135
|
+
var _props_caption;
|
|
136
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SearchNumberRangeControl.controlName;
|
|
132
137
|
return _this;
|
|
133
138
|
}
|
|
134
139
|
return SearchNumberRangeProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_select
|
|
3
|
+
* description: 单选下拉组件,用于从固定选项或数据源中选择一个值。适合状态、类别、枚举字段等场景,支持自定义选项、数据源、查看详情、按钮样式和 AI 内容搜索。
|
|
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_select
|
|
75
|
-
* description: 单选下拉组件,用于从固定选项或数据源中选择一个值。适合状态、类别、枚举字段等场景,支持自定义选项、数据源、查看详情、按钮样式和 AI 内容搜索。
|
|
76
|
-
*/ import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions, FormBind } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions, FormBind } from '@byteluck-fe/model-driven-core';
|
|
77
77
|
import SelectControl from './designer';
|
|
78
78
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
79
79
|
var SelectControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
@@ -106,11 +106,11 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
106
106
|
function SelectProperty(props) {
|
|
107
107
|
_class_call_check(this, SelectProperty);
|
|
108
108
|
var _this;
|
|
109
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
|
|
110
109
|
_this = _call_super(this, SelectProperty, [
|
|
111
110
|
props
|
|
112
111
|
]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "allowCopyOptions", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "viewFormModelType", void 0), _define_property(_this, "canViewForm", void 0), _define_property(_this, "formBind", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "type", void 0);
|
|
113
|
-
|
|
112
|
+
var _props_options;
|
|
113
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
114
114
|
{
|
|
115
115
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
116
116
|
value: getLocaleText('CMD.optionOne', null, '选项一')
|
|
@@ -124,15 +124,23 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
124
124
|
value: getLocaleText('CMD.optionThird', null, '选项三')
|
|
125
125
|
}
|
|
126
126
|
]);
|
|
127
|
-
|
|
128
|
-
_this.
|
|
127
|
+
var _props_defaultShowOptions;
|
|
128
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
129
|
+
var _props_optionConfig;
|
|
130
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
|
|
129
131
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
130
|
-
|
|
131
|
-
_this.
|
|
132
|
-
|
|
133
|
-
_this.
|
|
134
|
-
|
|
135
|
-
_this.
|
|
132
|
+
var _props_caption;
|
|
133
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectControl.controlName;
|
|
134
|
+
var _props_placeholder;
|
|
135
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
|
|
136
|
+
var _props_defaultValue;
|
|
137
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
138
|
+
var _props_allowCopyOptions;
|
|
139
|
+
_this.allowCopyOptions = (_props_allowCopyOptions = props === null || props === void 0 ? void 0 : props.allowCopyOptions) !== null && _props_allowCopyOptions !== void 0 ? _props_allowCopyOptions : false;
|
|
140
|
+
var _props_openMultistageFilling;
|
|
141
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
142
|
+
var _props_type;
|
|
143
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
|
|
136
144
|
// this.isUseCustomColor = props?.isUseCustomColor ?? false
|
|
137
145
|
_this.multistageFilling = [];
|
|
138
146
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
@@ -141,10 +149,13 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
141
149
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
142
150
|
});
|
|
143
151
|
}
|
|
144
|
-
|
|
145
|
-
_this.
|
|
152
|
+
var _props_canViewForm;
|
|
153
|
+
_this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
|
|
154
|
+
var _props_viewFormModelType;
|
|
155
|
+
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
|
|
146
156
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
147
|
-
|
|
157
|
+
var _props_aiContentSearch;
|
|
158
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
148
159
|
return _this;
|
|
149
160
|
}
|
|
150
161
|
return SelectProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_select_multiple
|
|
3
|
+
* description: 多选下拉组件,用于从选项集合中选择多个值。适合标签分类、人员角色等场景,支持自定义选项、数据源、查看详情、按钮样式和 AI 内容搜索。
|
|
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_select_multiple
|
|
75
|
-
* description: 多选下拉组件,用于从选项集合中选择多个值。适合标签分类、人员角色等场景,支持自定义选项、数据源、查看详情、按钮样式和 AI 内容搜索。
|
|
76
|
-
*/ import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions, FormBind } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions, FormBind } from '@byteluck-fe/model-driven-core';
|
|
77
77
|
import SelectMultipleControl from './designer';
|
|
78
78
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
79
79
|
var SelectMultipleControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
@@ -122,11 +122,11 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
122
122
|
function SelectMultipleProperty(props) {
|
|
123
123
|
_class_call_check(this, SelectMultipleProperty);
|
|
124
124
|
var _this;
|
|
125
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
|
|
126
125
|
_this = _call_super(this, SelectMultipleProperty, [
|
|
127
126
|
props
|
|
128
127
|
]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "viewFormModelType", void 0), _define_property(_this, "canViewForm", void 0), _define_property(_this, "formBind", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "type", void 0);
|
|
129
|
-
|
|
128
|
+
var _props_options;
|
|
129
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
130
130
|
{
|
|
131
131
|
label: getLocaleText('CMD.optionOne', null, '选项一'),
|
|
132
132
|
value: getLocaleText('CMD.optionOne', null, '选项一')
|
|
@@ -140,14 +140,21 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
140
140
|
value: getLocaleText('CMD.optionThird', null, '选项三')
|
|
141
141
|
}
|
|
142
142
|
]);
|
|
143
|
-
|
|
144
|
-
_this.
|
|
143
|
+
var _props_defaultShowOptions;
|
|
144
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
|
|
145
|
+
var _props_optionConfig;
|
|
146
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
|
|
145
147
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
146
|
-
|
|
147
|
-
_this.
|
|
148
|
-
|
|
149
|
-
_this.
|
|
150
|
-
|
|
148
|
+
var _props_caption;
|
|
149
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectMultipleControl.controlName;
|
|
150
|
+
var _props_placeholder;
|
|
151
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
|
|
152
|
+
var _props_defaultValue;
|
|
153
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
154
|
+
var _props_openMultistageFilling;
|
|
155
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
156
|
+
var _props_type;
|
|
157
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
|
|
151
158
|
// this.isUseCustomColor = props?.isUseCustomColor ?? false
|
|
152
159
|
_this.multistageFilling = [];
|
|
153
160
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
@@ -156,10 +163,13 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
156
163
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
157
164
|
});
|
|
158
165
|
}
|
|
159
|
-
|
|
160
|
-
_this.
|
|
166
|
+
var _props_canViewForm;
|
|
167
|
+
_this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
|
|
168
|
+
var _props_viewFormModelType;
|
|
169
|
+
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
|
|
161
170
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
162
|
-
|
|
171
|
+
var _props_aiContentSearch;
|
|
172
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
163
173
|
return _this;
|
|
164
174
|
}
|
|
165
175
|
return SelectMultipleProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_select_relation
|
|
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_select_relation
|
|
75
|
-
* description: 关联单选组件,用于从关联列表或数据源中选择一条业务记录。适合关联客户、项目、单据等场景,支持列表绑定、详情查看、搜索、已选明细展示和数据填充。
|
|
76
|
-
*/ import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, SelectedContentConfig, initOptions, ListBind, FormBind } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, SelectedContentConfig, initOptions, ListBind, FormBind } from '@byteluck-fe/model-driven-core';
|
|
77
77
|
import SelectRelationControl from './designer';
|
|
78
78
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
79
79
|
var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
@@ -129,19 +129,25 @@ var SelectRelationProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
129
129
|
function SelectRelationProperty(props) {
|
|
130
130
|
_class_call_check(this, SelectRelationProperty);
|
|
131
131
|
var _this;
|
|
132
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
|
|
133
132
|
_this = _call_super(this, SelectRelationProperty, [
|
|
134
133
|
props
|
|
135
134
|
]), _define_property(_this, "options", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "listPageBind", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "viewFormModelType", void 0), _define_property(_this, "canViewForm", void 0), _define_property(_this, "formBind", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "showSelectedDetail", void 0), _define_property(_this, "selectedContentConfig", void 0), _define_property(_this, "optionDisplayConfig", void 0), _define_property(_this, "canSearch", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "defaultShowOptions", void 0);
|
|
136
|
-
|
|
137
|
-
_this.
|
|
135
|
+
var _props_options;
|
|
136
|
+
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : []);
|
|
137
|
+
var _props_optionConfig;
|
|
138
|
+
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'datasource';
|
|
138
139
|
_this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
|
|
139
140
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
140
|
-
|
|
141
|
-
_this.
|
|
142
|
-
|
|
143
|
-
_this.
|
|
144
|
-
|
|
141
|
+
var _props_caption;
|
|
142
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectRelationControl.controlName;
|
|
143
|
+
var _props_placeholder;
|
|
144
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
|
|
145
|
+
var _props_defaultValue;
|
|
146
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
147
|
+
var _props_openMultistageFilling;
|
|
148
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
149
|
+
var _props_showSelectedDetail;
|
|
150
|
+
_this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
|
|
145
151
|
_this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
|
|
146
152
|
_this.multistageFilling = [];
|
|
147
153
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
@@ -150,13 +156,19 @@ var SelectRelationProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
150
156
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
151
157
|
});
|
|
152
158
|
}
|
|
153
|
-
|
|
154
|
-
_this.
|
|
159
|
+
var _props_canViewForm;
|
|
160
|
+
_this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
|
|
161
|
+
var _props_viewFormModelType;
|
|
162
|
+
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
|
|
155
163
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
156
|
-
|
|
157
|
-
_this.
|
|
158
|
-
|
|
159
|
-
_this.
|
|
164
|
+
var _props_optionDisplayConfig;
|
|
165
|
+
_this.optionDisplayConfig = (_props_optionDisplayConfig = props === null || props === void 0 ? void 0 : props.optionDisplayConfig) !== null && _props_optionDisplayConfig !== void 0 ? _props_optionDisplayConfig : [];
|
|
166
|
+
var _props_canSearch;
|
|
167
|
+
_this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : false;
|
|
168
|
+
var _props_aiContentSearch;
|
|
169
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
170
|
+
var _props_defaultShowOptions;
|
|
171
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : false;
|
|
160
172
|
return _this;
|
|
161
173
|
}
|
|
162
174
|
return SelectRelationProperty;
|
|
@@ -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 SliderProperty from './property';
|
|
@@ -103,7 +104,7 @@ var SliderControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return '
|
|
107
|
+
return getLocaleText('CMD.7fa81777541762879');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* name: rok_slider
|
|
3
|
-
* description: 滑块组件,用于在连续范围内快速选择数值。适合进度、权重、阈值等场景,支持默认值、最小值、最大值、步长、提示标签和控制按钮配置。
|
|
4
|
-
*/ function _assert_this_initialized(self) {
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
5
2
|
if (self === void 0) {
|
|
6
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7
4
|
}
|
|
@@ -73,6 +70,7 @@ function _is_native_reflect_construct() {
|
|
|
73
70
|
return !!result;
|
|
74
71
|
})();
|
|
75
72
|
}
|
|
73
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
74
|
import SliderControl from './designer';
|
|
77
75
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initOptions } from '@byteluck-fe/model-driven-core';
|
|
78
76
|
var SliderPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
@@ -88,7 +86,7 @@ var SliderPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
|
88
86
|
type: 'number',
|
|
89
87
|
min: 0,
|
|
90
88
|
max: 100,
|
|
91
|
-
message: '
|
|
89
|
+
message: getLocaleText('CMD.5d051777541586591')
|
|
92
90
|
}
|
|
93
91
|
]), _define_property(_this, "max", {
|
|
94
92
|
type: 'any'
|
|
@@ -97,12 +95,12 @@ var SliderPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
|
97
95
|
var valueMin = props.min === '' ? undefined : props.min;
|
|
98
96
|
_this.defaultValue[0].max = valueMax;
|
|
99
97
|
_this.defaultValue[0].min = valueMin;
|
|
100
|
-
_this.defaultValue[0].message = '
|
|
98
|
+
_this.defaultValue[0].message = getLocaleText('CMD.5d051777541586591');
|
|
101
99
|
if (valueMin !== undefined && valueMax !== undefined) {
|
|
102
100
|
_this.max = {
|
|
103
101
|
type: 'number',
|
|
104
102
|
min: valueMin,
|
|
105
|
-
message: '
|
|
103
|
+
message: getLocaleText('CMD.03c61777541622820')
|
|
106
104
|
};
|
|
107
105
|
}
|
|
108
106
|
return _this;
|
|
@@ -127,7 +125,7 @@ var SliderPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
127
125
|
type: 'number',
|
|
128
126
|
min: valueMin,
|
|
129
127
|
max: valueMax,
|
|
130
|
-
message: valueMax === undefined ? '
|
|
128
|
+
message: valueMax === undefined ? getLocaleText('CMD.0ea31777541589957') : valueMin === undefined ? getLocaleText('CMD.61eb1777541593375') : getLocaleText('CMD.5d051777541586591')
|
|
131
129
|
});
|
|
132
130
|
return _this;
|
|
133
131
|
}
|
|
@@ -139,18 +137,25 @@ var SliderProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
139
137
|
function SliderProperty(props) {
|
|
140
138
|
_class_call_check(this, SliderProperty);
|
|
141
139
|
var _this;
|
|
142
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
143
140
|
_this = _call_super(this, SliderProperty, [
|
|
144
141
|
props
|
|
145
142
|
]), _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, "showInput", void 0), _define_property(_this, "showMarks", void 0), _define_property(_this, "marks", void 0);
|
|
146
|
-
|
|
147
|
-
_this.
|
|
148
|
-
|
|
149
|
-
_this.
|
|
150
|
-
|
|
151
|
-
_this.
|
|
152
|
-
|
|
153
|
-
_this.
|
|
143
|
+
var _props_caption;
|
|
144
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SliderControl.controlName;
|
|
145
|
+
var _props_defaultValue;
|
|
146
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
147
|
+
var _props_min;
|
|
148
|
+
_this.min = (_props_min = props === null || props === void 0 ? void 0 : props.min) !== null && _props_min !== void 0 ? _props_min : 0;
|
|
149
|
+
var _props_max;
|
|
150
|
+
_this.max = (_props_max = props === null || props === void 0 ? void 0 : props.max) !== null && _props_max !== void 0 ? _props_max : 100;
|
|
151
|
+
var _props_step;
|
|
152
|
+
_this.step = (_props_step = props === null || props === void 0 ? void 0 : props.step) !== null && _props_step !== void 0 ? _props_step : 1;
|
|
153
|
+
var _props_showInput;
|
|
154
|
+
_this.showInput = (_props_showInput = props === null || props === void 0 ? void 0 : props.showInput) !== null && _props_showInput !== void 0 ? _props_showInput : true;
|
|
155
|
+
var _props_showMarks;
|
|
156
|
+
_this.showMarks = (_props_showMarks = props === null || props === void 0 ? void 0 : props.showMarks) !== null && _props_showMarks !== void 0 ? _props_showMarks : false;
|
|
157
|
+
var _props_marks;
|
|
158
|
+
_this.marks = initOptions((_props_marks = props === null || props === void 0 ? void 0 : props.marks) !== null && _props_marks !== void 0 ? _props_marks : []);
|
|
154
159
|
return _this;
|
|
155
160
|
}
|
|
156
161
|
return SliderProperty;
|