@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
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_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_date_range
|
|
75
|
-
* description: 日期区间组件,用于录入开始和结束日期时间。适合请假周期、统计区间等场景,支持日期类型、默认值、常用时间、范围限制和国际化配置。
|
|
76
|
-
*/ import { BaseControlProperty, BaseControlPropertyRuntimeRules, RangeDataBind, RangeDateValue } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
import { BaseControlProperty, BaseControlPropertyRuntimeRules, RangeDataBind, RangeDateValue } from '@byteluck-fe/model-driven-core';
|
|
77
77
|
import DateRangeControl from './designer';
|
|
78
78
|
import { DateType } from '@byteluck-fe/model-driven-shared';
|
|
79
79
|
import { LimitDate } from '../../framework';
|
|
@@ -117,26 +117,36 @@ var DateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
117
117
|
function DateRangeProperty(props) {
|
|
118
118
|
_class_call_check(this, DateRangeProperty);
|
|
119
119
|
var _this;
|
|
120
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
|
|
121
120
|
var _props_limitDateList;
|
|
122
121
|
_this = _call_super(this, DateRangeProperty, [
|
|
123
122
|
props
|
|
124
123
|
]), _define_property(_this, "dataBind", void 0), _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, "dateFormat", void 0), _define_property(_this, "commonTimeSetting", void 0), _define_property(_this, "dateType", 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
|
_this.dataBind = new RangeDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
126
125
|
_this.defaultValue = new RangeDateValue(props === null || props === void 0 ? void 0 : props.defaultValue);
|
|
127
|
-
|
|
128
|
-
_this.
|
|
129
|
-
|
|
130
|
-
_this.
|
|
131
|
-
|
|
132
|
-
_this.
|
|
133
|
-
|
|
134
|
-
_this.
|
|
135
|
-
|
|
136
|
-
_this.
|
|
126
|
+
var _props_dateType;
|
|
127
|
+
_this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
|
|
128
|
+
var _props_dateFormat;
|
|
129
|
+
_this.dateFormat = (_props_dateFormat = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _props_dateFormat !== void 0 ? _props_dateFormat : '';
|
|
130
|
+
var _props_commonTimeSetting;
|
|
131
|
+
_this.commonTimeSetting = (_props_commonTimeSetting = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _props_commonTimeSetting !== void 0 ? _props_commonTimeSetting : [];
|
|
132
|
+
var _props_setValueType;
|
|
133
|
+
_this.setValueType = (_props_setValueType = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _props_setValueType !== void 0 ? _props_setValueType : 'custom';
|
|
134
|
+
var _props_rangeMin;
|
|
135
|
+
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
|
|
136
|
+
var _props_rangeMax;
|
|
137
|
+
_this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
|
|
138
|
+
var _props_placeholderStart;
|
|
139
|
+
_this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : getLocaleText('CMD.pleaseSelectStartDate', null, '请选择开始日期');
|
|
140
|
+
var _props_placeholderEnd;
|
|
141
|
+
_this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : getLocaleText('CMD.pleaseSelectEndDate', null, '请选择结束日期');
|
|
142
|
+
var _props_caption;
|
|
143
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DateRangeControl.controlName;
|
|
144
|
+
var _props_limitDateList_map;
|
|
145
|
+
_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) {
|
|
137
146
|
return new LimitDate(item);
|
|
138
|
-
})) !== null &&
|
|
139
|
-
|
|
147
|
+
})) !== null && _props_limitDateList_map !== void 0 ? _props_limitDateList_map : [];
|
|
148
|
+
var _props_isInternational;
|
|
149
|
+
_this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
|
|
140
150
|
return _this;
|
|
141
151
|
}
|
|
142
152
|
return DateRangeProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_department
|
|
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_department
|
|
75
|
-
* description: 部门选择组件,用于选择组织内部门。适合申请归属、审批范围等场景,支持单多选、指定范围、默认部门和多级联动填充。
|
|
76
|
-
*/ import DepartmentControl from './designer';
|
|
76
|
+
import DepartmentControl from './designer';
|
|
77
77
|
import { BaseControlProperty, BaseControlPropertyRuntimeRules, MultistageFillingItem } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
79
79
|
var DepartmentPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
@@ -98,21 +98,31 @@ var DepartmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
98
98
|
function DepartmentProperty(props) {
|
|
99
99
|
_class_call_check(this, DepartmentProperty);
|
|
100
100
|
var _this;
|
|
101
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
|
|
102
101
|
_this = _call_super(this, DepartmentProperty, [
|
|
103
102
|
props
|
|
104
103
|
]), _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "rangeOptions", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "displayLevel", void 0), _define_property(_this, "showSubDept", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0);
|
|
105
|
-
|
|
106
|
-
_this.
|
|
107
|
-
|
|
108
|
-
_this.
|
|
109
|
-
|
|
110
|
-
_this.
|
|
111
|
-
|
|
112
|
-
_this.
|
|
113
|
-
|
|
114
|
-
_this.
|
|
115
|
-
|
|
104
|
+
var _props_showType;
|
|
105
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
|
|
106
|
+
var _props_multiple;
|
|
107
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
108
|
+
var _props_range;
|
|
109
|
+
_this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
|
|
110
|
+
var _props_defaultValueType;
|
|
111
|
+
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
|
|
112
|
+
var _props_rangeOptions;
|
|
113
|
+
_this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
|
|
114
|
+
var _props_defaultValue;
|
|
115
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
116
|
+
var _props_displayLevel;
|
|
117
|
+
_this.displayLevel = (_props_displayLevel = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _props_displayLevel !== void 0 ? _props_displayLevel : 1;
|
|
118
|
+
var _props_showSubDept;
|
|
119
|
+
_this.showSubDept = (_props_showSubDept = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _props_showSubDept !== void 0 ? _props_showSubDept : true;
|
|
120
|
+
var _props_caption;
|
|
121
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DepartmentControl.controlName;
|
|
122
|
+
var _props_placeholder;
|
|
123
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelectDept', null, '请选择部门');
|
|
124
|
+
var _props_openMultistageFilling;
|
|
125
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
116
126
|
_this.multistageFilling = [];
|
|
117
127
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
118
128
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_department2
|
|
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_department2
|
|
75
|
-
* description: 增强版部门选择组件,用于从行政或业务部门数据源中选择部门。适合复杂组织架构场景,支持树形展示、值格式切换、数据源绑定、业务范围和禁选条件配置。
|
|
76
|
-
*/ import Department2Control from './designer';
|
|
76
|
+
import Department2Control from './designer';
|
|
77
77
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initSuperDataSourceRules, MultistageFillingItem, SuperDataSourceBind, FieldFilterCondition, FieldFilterConditions } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
import { DepartmentType, AssignType } from '../../framework';
|
|
79
79
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
@@ -127,30 +127,44 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
127
127
|
function Department2Property(props) {
|
|
128
128
|
_class_call_check(this, Department2Property);
|
|
129
129
|
var _this;
|
|
130
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16;
|
|
131
130
|
var _props_disabledSelectedFilters;
|
|
132
131
|
_this = _call_super(this, Department2Property, [
|
|
133
132
|
props
|
|
134
133
|
]), _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "rangeOptions", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "displayLevel", void 0), _define_property(_this, "showSubDept", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "datasourceType", void 0), _define_property(_this, "businessType", void 0), _define_property(_this, "businessScope", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "defaultShowOptions", void 0), /**
|
|
135
134
|
* 不可选中部门的配置条件
|
|
136
135
|
* */ _define_property(_this, "disabledSelectedFilters", void 0);
|
|
137
|
-
|
|
138
|
-
_this.
|
|
139
|
-
|
|
140
|
-
_this.
|
|
141
|
-
|
|
142
|
-
_this.
|
|
143
|
-
|
|
144
|
-
_this.
|
|
145
|
-
|
|
146
|
-
_this.
|
|
147
|
-
|
|
136
|
+
var _props_showType;
|
|
137
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
|
|
138
|
+
var _props_multiple;
|
|
139
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
140
|
+
var _props_range;
|
|
141
|
+
_this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
|
|
142
|
+
var _props_defaultValueType;
|
|
143
|
+
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
|
|
144
|
+
var _props_rangeOptions;
|
|
145
|
+
_this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
|
|
146
|
+
var _props_defaultValue;
|
|
147
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
148
|
+
var _props_displayLevel;
|
|
149
|
+
_this.displayLevel = (_props_displayLevel = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _props_displayLevel !== void 0 ? _props_displayLevel : 1;
|
|
150
|
+
var _props_showSubDept;
|
|
151
|
+
_this.showSubDept = (_props_showSubDept = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _props_showSubDept !== void 0 ? _props_showSubDept : true;
|
|
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 : Department2Control.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.pleaseSelectDept', null, '请选择部门');
|
|
156
|
+
var _props_datasourceBind;
|
|
157
|
+
_this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
148
158
|
attributes: Department2Control.controlCustomAttributes
|
|
149
159
|
});
|
|
150
|
-
|
|
151
|
-
_this.
|
|
152
|
-
|
|
153
|
-
_this.
|
|
160
|
+
var _props_datasourceType;
|
|
161
|
+
_this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : DepartmentType.INTERNAL;
|
|
162
|
+
var _props_businessScope;
|
|
163
|
+
_this.businessScope = (_props_businessScope = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _props_businessScope !== void 0 ? _props_businessScope : [];
|
|
164
|
+
var _props_businessType;
|
|
165
|
+
_this.businessType = (_props_businessType = props === null || props === void 0 ? void 0 : props.businessType) !== null && _props_businessType !== void 0 ? _props_businessType : AssignType.ALL;
|
|
166
|
+
var _props_openMultistageFilling;
|
|
167
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
154
168
|
_this.multistageFilling = [];
|
|
155
169
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
156
170
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -158,13 +172,15 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
158
172
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
159
173
|
});
|
|
160
174
|
}
|
|
161
|
-
|
|
162
|
-
_this.
|
|
175
|
+
var _props_defaultShowOptions;
|
|
176
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : false;
|
|
177
|
+
var _props_disabledSelectedFilters_map;
|
|
178
|
+
_this.disabledSelectedFilters = (_props_disabledSelectedFilters_map = props === null || props === void 0 ? void 0 : (_props_disabledSelectedFilters = props.disabledSelectedFilters) === null || _props_disabledSelectedFilters === void 0 ? void 0 : _props_disabledSelectedFilters.map(function(item) {
|
|
163
179
|
if (item.children !== undefined) {
|
|
164
180
|
return new FieldFilterConditions(item);
|
|
165
181
|
}
|
|
166
182
|
return new FieldFilterCondition(item);
|
|
167
|
-
})) !== null &&
|
|
183
|
+
})) !== null && _props_disabledSelectedFilters_map !== void 0 ? _props_disabledSelectedFilters_map : [];
|
|
168
184
|
return _this;
|
|
169
185
|
}
|
|
170
186
|
return Department2Property;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_electronic_signature
|
|
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_electronic_signature
|
|
75
|
-
* description: 电子签署发起组件,用于在表单中配置并触发签署流程。适合法务签约、审批签章等场景,支持签署人、签章类型、文件来源和按钮展示配置。
|
|
76
|
-
*/ import ElectronicSignatureControl from './designer';
|
|
76
|
+
import ElectronicSignatureControl from './designer';
|
|
77
77
|
import { BaseControlProperty, BaseControlPropertyRules } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
import { ElectronicSignatureConfig } from '../../framework';
|
|
79
79
|
import { isArray } from '@byteluck-fe/model-driven-shared';
|
|
@@ -187,16 +187,21 @@ var ElectronicSignatureProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
187
187
|
function ElectronicSignatureProperty(props) {
|
|
188
188
|
_class_call_check(this, ElectronicSignatureProperty);
|
|
189
189
|
var _this;
|
|
190
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
191
190
|
_this = _call_super(this, ElectronicSignatureProperty, [
|
|
192
191
|
props
|
|
193
192
|
]), _define_property(_this, "buttonType", void 0), _define_property(_this, "content", void 0), _define_property(_this, "showType", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "command", ''), _define_property(_this, "isLoading", false), _define_property(_this, "signatureConfig", void 0);
|
|
194
|
-
|
|
195
|
-
_this.
|
|
196
|
-
|
|
197
|
-
_this.
|
|
198
|
-
|
|
199
|
-
_this.
|
|
193
|
+
var _props_caption;
|
|
194
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ElectronicSignatureControl.controlName;
|
|
195
|
+
var _props_content;
|
|
196
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : getLocaleText('CMD.signature', null, '发起签署');
|
|
197
|
+
var _props_buttonType;
|
|
198
|
+
_this.buttonType = (_props_buttonType = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _props_buttonType !== void 0 ? _props_buttonType : 'primary';
|
|
199
|
+
var _props_showType;
|
|
200
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'text';
|
|
201
|
+
var _props_color;
|
|
202
|
+
_this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : 'primary';
|
|
203
|
+
var _props_icon;
|
|
204
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : 'iconfenlei2';
|
|
200
205
|
_this.signatureConfig = new ElectronicSignatureConfig(props === null || props === void 0 ? void 0 : props.signatureConfig);
|
|
201
206
|
return _this;
|
|
202
207
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_employee
|
|
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_employee
|
|
75
|
-
* description: 人员选择组件,用于选择表单发起人或指定人员。适合负责人、审批人、抄送人等场景,支持单多选、人员范围、默认值和多级填充。
|
|
76
|
-
*/ import EmployeeControl from './designer';
|
|
76
|
+
import EmployeeControl from './designer';
|
|
77
77
|
import { BaseControlProperty, BaseControlPropertyRuntimeRules, MultistageFillingItem } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
79
79
|
var EmployeeControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
@@ -98,19 +98,27 @@ var EmployeeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
98
98
|
function EmployeeProperty(props) {
|
|
99
99
|
_class_call_check(this, EmployeeProperty);
|
|
100
100
|
var _this;
|
|
101
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
102
101
|
_this = _call_super(this, EmployeeProperty, [
|
|
103
102
|
props
|
|
104
103
|
]), _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0), _define_property(_this, "rangeOptions", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0);
|
|
105
|
-
|
|
106
|
-
_this.
|
|
107
|
-
|
|
108
|
-
_this.
|
|
109
|
-
|
|
110
|
-
_this.
|
|
111
|
-
|
|
112
|
-
_this.
|
|
113
|
-
|
|
104
|
+
var _props_showType;
|
|
105
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
|
|
106
|
+
var _props_range;
|
|
107
|
+
_this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
|
|
108
|
+
var _props_rangeOptions;
|
|
109
|
+
_this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
|
|
110
|
+
var _props_multiple;
|
|
111
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
112
|
+
var _props_defaultValueType;
|
|
113
|
+
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
|
|
114
|
+
var _props_defaultValue;
|
|
115
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
116
|
+
var _props_caption;
|
|
117
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : EmployeeControl.controlName;
|
|
118
|
+
var _props_placeholder;
|
|
119
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入人员姓名或邮箱');
|
|
120
|
+
var _props_openMultistageFilling;
|
|
121
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
114
122
|
_this.multistageFilling = [];
|
|
115
123
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
116
124
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_employee2
|
|
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_employee2
|
|
75
|
-
* description: 增强版人员选择组件,用于从内部或外部组织中选择人员。适合跨组织协作、外部联系人等场景,支持数据源绑定、值格式、外部组织范围和多级填充。
|
|
76
|
-
*/ import Employee2Control from './designer';
|
|
76
|
+
import Employee2Control from './designer';
|
|
77
77
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initSuperDataSourceRules, MultistageFillingItem, SuperDataSourceBind } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
import { OrganizeType, InternalType, AssignType } from '../../framework';
|
|
79
79
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
@@ -127,27 +127,42 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
127
127
|
function Employee2Property(props) {
|
|
128
128
|
_class_call_check(this, Employee2Property);
|
|
129
129
|
var _this;
|
|
130
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15;
|
|
131
130
|
_this = _call_super(this, Employee2Property, [
|
|
132
131
|
props
|
|
133
132
|
]), _define_property(_this, "showType", void 0), _define_property(_this, "range", void 0), _define_property(_this, "rangeOptions", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "datasourceType", void 0), _define_property(_this, "insideType", void 0), _define_property(_this, "externalType", void 0), _define_property(_this, "externalScope", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "mainDeptFlag", void 0), _define_property(_this, "defaultShowOptions", void 0);
|
|
134
|
-
|
|
135
|
-
_this.
|
|
136
|
-
|
|
137
|
-
_this.
|
|
138
|
-
|
|
139
|
-
_this.
|
|
140
|
-
|
|
141
|
-
_this.
|
|
142
|
-
|
|
133
|
+
var _props_showType;
|
|
134
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
|
|
135
|
+
var _props_range;
|
|
136
|
+
_this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
|
|
137
|
+
var _props_rangeOptions;
|
|
138
|
+
_this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
|
|
139
|
+
var _props_multiple;
|
|
140
|
+
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
141
|
+
var _props_defaultValueType;
|
|
142
|
+
_this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
|
|
143
|
+
var _props_defaultValue;
|
|
144
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
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 : Employee2Control.controlName;
|
|
147
|
+
var _props_placeholder;
|
|
148
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入人员姓名或邮箱');
|
|
149
|
+
var _props_datasourceBind;
|
|
150
|
+
_this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
143
151
|
attributes: Employee2Control.controlCustomAttributes
|
|
144
152
|
});
|
|
145
|
-
|
|
146
|
-
_this.
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
_this.
|
|
150
|
-
|
|
153
|
+
var _props_datasourceType;
|
|
154
|
+
_this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : OrganizeType.INTERNAL //默认内部组织 EXTERNAL 外部组织
|
|
155
|
+
;
|
|
156
|
+
var _props_insideType;
|
|
157
|
+
_this.insideType = (_props_insideType = props === null || props === void 0 ? void 0 : props.insideType) !== null && _props_insideType !== void 0 ? _props_insideType : InternalType.ADMIN;
|
|
158
|
+
var _props_externalType;
|
|
159
|
+
_this.externalType = (_props_externalType = props === null || props === void 0 ? void 0 : props.externalType) !== null && _props_externalType !== void 0 ? _props_externalType : AssignType.ALL;
|
|
160
|
+
var _props_externalScope;
|
|
161
|
+
_this.externalScope = (_props_externalScope = props === null || props === void 0 ? void 0 : props.externalScope) !== null && _props_externalScope !== void 0 ? _props_externalScope : [];
|
|
162
|
+
var _props_openMultistageFilling;
|
|
163
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
164
|
+
var _props_mainDeptFlag;
|
|
165
|
+
_this.mainDeptFlag = (_props_mainDeptFlag = props === null || props === void 0 ? void 0 : props.mainDeptFlag) !== null && _props_mainDeptFlag !== void 0 ? _props_mainDeptFlag : false;
|
|
151
166
|
_this.multistageFilling = [];
|
|
152
167
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
153
168
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -155,7 +170,8 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
155
170
|
(_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
|
|
156
171
|
});
|
|
157
172
|
}
|
|
158
|
-
|
|
173
|
+
var _props_defaultShowOptions;
|
|
174
|
+
_this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : false;
|
|
159
175
|
return _this;
|
|
160
176
|
}
|
|
161
177
|
return Employee2Property;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
+
* @Date: 2022-12-01 14:40:30
|
|
4
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
+
* @LastEditTime: 2023-09-19 15:50:38
|
|
6
|
+
* @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
|
|
7
|
+
*/ function _assert_this_initialized(self) {
|
|
2
8
|
if (self === void 0) {
|
|
3
9
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
10
|
}
|
|
@@ -84,13 +90,7 @@ function _is_native_reflect_construct() {
|
|
|
84
90
|
return !!result;
|
|
85
91
|
})();
|
|
86
92
|
}
|
|
87
|
-
|
|
88
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
89
|
-
* @Date: 2022-12-01 14:40:30
|
|
90
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
91
|
-
* @LastEditTime: 2023-09-19 15:50:38
|
|
92
|
-
* @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
|
|
93
|
-
*/ import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
93
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
94
94
|
import { DesignerAttachmentControl } from '../Attachment';
|
|
95
95
|
import { ImageProperty } from './property';
|
|
96
96
|
import { COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
@@ -104,18 +104,27 @@ var ImageProperty = /*#__PURE__*/ function(AttachmentProperty) {
|
|
|
104
104
|
function ImageProperty(props) {
|
|
105
105
|
_class_call_check(this, ImageProperty);
|
|
106
106
|
var _this;
|
|
107
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
108
107
|
_this = _call_super(this, ImageProperty, [
|
|
109
108
|
props
|
|
110
109
|
]), _define_property(_this, "compressTypeCode", void 0), _define_property(_this, "compressRatio", void 0), _define_property(_this, "maxPixel", void 0), _define_property(_this, "maxSize", void 0);
|
|
111
110
|
_this.showType = 'image';
|
|
112
|
-
|
|
113
|
-
_this.
|
|
114
|
-
|
|
115
|
-
_this.
|
|
116
|
-
|
|
117
|
-
_this.
|
|
118
|
-
|
|
111
|
+
var _props_maxLimit;
|
|
112
|
+
_this.maxLimit = (_props_maxLimit = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _props_maxLimit !== void 0 ? _props_maxLimit : 10;
|
|
113
|
+
var _props_caption, _ref;
|
|
114
|
+
_this.caption = (_ref = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ImageControl.controlName) !== null && _ref !== void 0 ? _ref : getLocaleText('CMD.image', null, '图片');
|
|
115
|
+
var _props_placeholder;
|
|
116
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.uploadImg', null, '上传图片');
|
|
117
|
+
var _props_compressTypeCode;
|
|
118
|
+
_this.compressTypeCode = (_props_compressTypeCode = props === null || props === void 0 ? void 0 : props.compressTypeCode) !== null && _props_compressTypeCode !== void 0 ? _props_compressTypeCode : ImageCompressType.NO_COMPRESS // 默认不压缩
|
|
119
|
+
;
|
|
120
|
+
var _props_compressRatio;
|
|
121
|
+
_this.compressRatio = (_props_compressRatio = props === null || props === void 0 ? void 0 : props.compressRatio) !== null && _props_compressRatio !== void 0 ? _props_compressRatio : 1 // 默认压缩比例1
|
|
122
|
+
;
|
|
123
|
+
var _props_maxPixel;
|
|
124
|
+
_this.maxPixel = (_props_maxPixel = props === null || props === void 0 ? void 0 : props.maxPixel) !== null && _props_maxPixel !== void 0 ? _props_maxPixel : 1080 // 默认最大像素1080
|
|
125
|
+
;
|
|
126
|
+
var _props_maxSize;
|
|
127
|
+
_this.maxSize = (_props_maxSize = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _props_maxSize !== void 0 ? _props_maxSize : MB10;
|
|
119
128
|
return _this;
|
|
120
129
|
}
|
|
121
130
|
return ImageProperty;
|
|
@@ -158,7 +158,6 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
|
|
|
158
158
|
function InputProperty(props) {
|
|
159
159
|
_class_call_check(this, InputProperty);
|
|
160
160
|
var _this;
|
|
161
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
162
161
|
_this = _call_super(this, InputProperty, [
|
|
163
162
|
props
|
|
164
163
|
]), /**
|
|
@@ -196,17 +195,27 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
|
|
|
196
195
|
* @defaultValue 1
|
|
197
196
|
* @public
|
|
198
197
|
*/ _define_property(_this, "lineEllipsis", void 0);
|
|
199
|
-
|
|
200
|
-
_this.
|
|
198
|
+
var _props_maxLength;
|
|
199
|
+
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 200;
|
|
200
|
+
var _props_minLength;
|
|
201
|
+
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
|
|
201
202
|
_this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
|
|
202
|
-
|
|
203
|
-
_this.
|
|
204
|
-
|
|
205
|
-
_this.
|
|
206
|
-
|
|
207
|
-
_this.
|
|
208
|
-
|
|
209
|
-
_this.
|
|
203
|
+
var _props_defaultValue;
|
|
204
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
205
|
+
var _props_caption;
|
|
206
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : InputControl.controlName;
|
|
207
|
+
var _props_placeholder;
|
|
208
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
209
|
+
var _props_encrypted;
|
|
210
|
+
_this.encrypted = (_props_encrypted = props === null || props === void 0 ? void 0 : props.encrypted) !== null && _props_encrypted !== void 0 ? _props_encrypted : false;
|
|
211
|
+
var _props_encryptedMode;
|
|
212
|
+
_this.encryptedMode = (_props_encryptedMode = props === null || props === void 0 ? void 0 : props.encryptedMode) !== null && _props_encryptedMode !== void 0 ? _props_encryptedMode : '';
|
|
213
|
+
var _props_aiContentSearch;
|
|
214
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
215
|
+
var _props_autoHeight;
|
|
216
|
+
_this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
|
|
217
|
+
var _props_lineEllipsis;
|
|
218
|
+
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
210
219
|
return _this;
|
|
211
220
|
}
|
|
212
221
|
return InputProperty;
|