@byteluck-fe/model-driven-controls 7.0.0-beta.5 → 7.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/esm/baseControls/BarChart/designer.js +11 -11
  2. package/dist/esm/baseControls/BarChart/property.js +73 -22
  3. package/dist/esm/baseControls/BatchDeleteButton/property.js +23 -15
  4. package/dist/esm/baseControls/BatchPrintListButton/property.js +14 -11
  5. package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +9 -8
  6. package/dist/esm/baseControls/BatchSubmissionListButton/property.js +12 -7
  7. package/dist/esm/baseControls/Button/property.js +27 -17
  8. package/dist/esm/baseControls/Comment/property.js +7 -7
  9. package/dist/esm/baseControls/CreateFormListButton/property.js +13 -10
  10. package/dist/esm/baseControls/Dashboard/property.js +21 -14
  11. package/dist/esm/baseControls/Divider/property.js +17 -12
  12. package/dist/esm/baseControls/ExportListButton/property.js +14 -11
  13. package/dist/esm/baseControls/ExportRecordListButton/property.js +9 -8
  14. package/dist/esm/baseControls/FormSelectButton/property.js +11 -9
  15. package/dist/esm/baseControls/Iframe/designer.js +4 -4
  16. package/dist/esm/baseControls/Iframe/property.js +10 -7
  17. package/dist/esm/baseControls/ImportRecordListButton/property.js +14 -11
  18. package/dist/esm/baseControls/InvoiceCheckButton/property.js +24 -16
  19. package/dist/esm/baseControls/LineChart/designer.js +7 -7
  20. package/dist/esm/baseControls/LineChart/property.js +73 -22
  21. package/dist/esm/baseControls/Link/property.js +17 -12
  22. package/dist/esm/baseControls/ListSelectButton/property.js +15 -11
  23. package/dist/esm/baseControls/ListViewSelect/property.js +10 -9
  24. package/dist/esm/baseControls/OperationButton/property.js +17 -12
  25. package/dist/esm/baseControls/Pagination/property.js +5 -5
  26. package/dist/esm/baseControls/PieChart/designer.js +10 -10
  27. package/dist/esm/baseControls/PieChart/property.js +80 -20
  28. package/dist/esm/baseControls/ReferenceList/property.js +17 -12
  29. package/dist/esm/baseControls/SubmissionRecordListButton/property.js +9 -8
  30. package/dist/esm/baseControls/Text/designer.js +1 -1
  31. package/dist/esm/baseControls/Text/property.js +23 -15
  32. package/dist/esm/baseControls/TextOcrButton/property.js +24 -16
  33. package/dist/esm/baseControls/Title/property.js +6 -4
  34. package/dist/esm/baseControls/utils.js +1 -1
  35. package/dist/esm/columnControls/ApprovalStatusColumn/property.js +11 -9
  36. package/dist/esm/columnControls/ArrayColumn/property.js +13 -10
  37. package/dist/esm/columnControls/AutoNumberColumn/property.js +9 -8
  38. package/dist/esm/columnControls/CustomColumn/designer.js +0 -1
  39. package/dist/esm/columnControls/CustomColumn/property.js +11 -9
  40. package/dist/esm/columnControls/DecimalColumn/property.js +19 -13
  41. package/dist/esm/columnControls/DepartmentColumn/property.js +9 -8
  42. package/dist/esm/columnControls/EmployeeColumn/property.js +9 -8
  43. package/dist/esm/columnControls/FileColumn/property.js +9 -8
  44. package/dist/esm/columnControls/GroupColumn/property.js +7 -7
  45. package/dist/esm/columnControls/ImageColumn/property.js +7 -7
  46. package/dist/esm/columnControls/LocationColumn/property.js +9 -8
  47. package/dist/esm/columnControls/OperationColumn/designer.js +12 -16
  48. package/dist/esm/columnControls/OperationColumn/property.js +15 -11
  49. package/dist/esm/columnControls/OrderColumn/property.js +17 -12
  50. package/dist/esm/columnControls/PeopleColumn/property.js +7 -7
  51. package/dist/esm/columnControls/TextColumn/property.js +13 -10
  52. package/dist/esm/columnControls/TimescopeColumn/property.js +13 -10
  53. package/dist/esm/columnControls/TimestampColumn/property.js +13 -10
  54. package/dist/esm/columnControls/VarcharColumn/property.js +17 -12
  55. package/dist/esm/formControls/Address/property.js +17 -12
  56. package/dist/esm/formControls/Amount/property.js +29 -18
  57. package/dist/esm/formControls/Attachment/property.js +39 -23
  58. package/dist/esm/formControls/AutoNumber/property.js +11 -9
  59. package/dist/esm/formControls/Barcode/designer.js +41 -21
  60. package/dist/esm/formControls/Barcode/property.js +21 -13
  61. package/dist/esm/formControls/Barcode/schema.json +19 -8
  62. package/dist/esm/formControls/Calc/property.js +18 -10
  63. package/dist/esm/formControls/Cascader/property.js +31 -17
  64. package/dist/esm/formControls/Checkbox/property.js +31 -17
  65. package/dist/esm/formControls/Counter/property.js +18 -10
  66. package/dist/esm/formControls/DatePicker/property.js +32 -20
  67. package/dist/esm/formControls/DateRange/property.js +28 -18
  68. package/dist/esm/formControls/Department/property.js +27 -17
  69. package/dist/esm/formControls/Department2/property.js +40 -24
  70. package/dist/esm/formControls/ElectronicSignature/property.js +17 -12
  71. package/dist/esm/formControls/Employee/property.js +23 -15
  72. package/dist/esm/formControls/Employee2/property.js +38 -22
  73. package/dist/esm/formControls/Image/designer.js +8 -8
  74. package/dist/esm/formControls/Image/property.js +17 -8
  75. package/dist/esm/formControls/Input/property.js +20 -11
  76. package/dist/esm/formControls/Number/property.js +32 -17
  77. package/dist/esm/formControls/OrganizationSelection/property.js +41 -24
  78. package/dist/esm/formControls/QrCode/designer.js +47 -27
  79. package/dist/esm/formControls/QrCode/property.js +24 -17
  80. package/dist/esm/formControls/QrCode/schema.json +20 -9
  81. package/dist/esm/formControls/Radio/property.js +33 -20
  82. package/dist/esm/formControls/RichText/designer.js +1 -1
  83. package/dist/esm/formControls/RichText/property.js +22 -12
  84. package/dist/esm/formControls/Score/property.js +17 -10
  85. package/dist/esm/formControls/SearchDateRange/property.js +30 -19
  86. package/dist/esm/formControls/SearchInput/property.js +5 -5
  87. package/dist/esm/formControls/SearchNumberRange/property.js +17 -12
  88. package/dist/esm/formControls/Select/property.js +29 -18
  89. package/dist/esm/formControls/SelectMultiple/property.js +27 -17
  90. package/dist/esm/formControls/SelectRelation/property.js +31 -19
  91. package/dist/esm/formControls/Slider/designer.js +2 -1
  92. package/dist/esm/formControls/Slider/property.js +22 -17
  93. package/dist/esm/formControls/Switch/designer.js +15 -14
  94. package/dist/esm/formControls/Switch/property.js +19 -10
  95. package/dist/esm/formControls/Tag/designer.js +14 -13
  96. package/dist/esm/formControls/Tag/property.js +23 -15
  97. package/dist/esm/formControls/Textarea/property.js +20 -11
  98. package/dist/esm/formControls/TimePicker/property.js +20 -14
  99. package/dist/esm/formControls/TimeRange/property.js +24 -16
  100. package/dist/esm/formControls/Tree/property.js +39 -21
  101. package/dist/esm/formControls/VueFormItem/property.js +15 -11
  102. package/dist/esm/formControls/VuePage/property.js +15 -11
  103. package/dist/esm/formControls/WPS/designer.js +9 -9
  104. package/dist/esm/formControls/WPS/property.js +29 -18
  105. package/dist/esm/framework.js +135 -81
  106. package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
  107. package/dist/esm/layoutControls/ActionBar/property.js +11 -9
  108. package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
  109. package/dist/esm/layoutControls/AdvancedContainer/property.js +5 -5
  110. package/dist/esm/layoutControls/BlankContainer/designer.js +8 -7
  111. package/dist/esm/layoutControls/BlankContainer/property.js +15 -12
  112. package/dist/esm/layoutControls/CardGroup/property.js +20 -11
  113. package/dist/esm/layoutControls/Col/property.js +11 -9
  114. package/dist/esm/layoutControls/Collapse/designer.js +2 -2
  115. package/dist/esm/layoutControls/Collapse/property.js +9 -8
  116. package/dist/esm/layoutControls/CollapsePane/property.js +7 -7
  117. package/dist/esm/layoutControls/DataView/property.js +19 -13
  118. package/dist/esm/layoutControls/Grid/property.js +5 -5
  119. package/dist/esm/layoutControls/GridLayoutContainer/property.js +9 -8
  120. package/dist/esm/layoutControls/GridRow/property.js +5 -5
  121. package/dist/esm/layoutControls/GridTableColumn/property.js +25 -16
  122. package/dist/esm/layoutControls/ListView/property.js +28 -15
  123. package/dist/esm/layoutControls/Page/property.js +7 -7
  124. package/dist/esm/layoutControls/Position/property.js +13 -10
  125. package/dist/esm/layoutControls/PositioningContainer/property.js +5 -5
  126. package/dist/esm/layoutControls/Row/property.js +15 -11
  127. package/dist/esm/layoutControls/Step/designer.js +2 -2
  128. package/dist/esm/layoutControls/Step/property.js +27 -17
  129. package/dist/esm/layoutControls/StepPane/property.js +21 -14
  130. package/dist/esm/layoutControls/SubTableColumn/property.js +10 -6
  131. package/dist/esm/layoutControls/SubTableRow/property.js +5 -5
  132. package/dist/esm/layoutControls/Tab/designer.js +2 -2
  133. package/dist/esm/layoutControls/Tab/property.js +15 -11
  134. package/dist/esm/layoutControls/TabPane/property.js +7 -7
  135. package/dist/esm/layoutControls/TableLayout/property.js +35 -21
  136. package/dist/esm/layoutControls/TableLayoutCol/property.js +25 -16
  137. package/dist/esm/layoutControls/TableLayoutRow/property.js +9 -8
  138. package/dist/esm/layoutControls/TableLayoutWrapper/property.js +11 -9
  139. package/dist/esm/layoutControls/Toolbox/property.js +5 -5
  140. package/dist/esm/listControls/GridTable/designer.js +12 -17
  141. package/dist/esm/listControls/GridTable/property.js +15 -11
  142. package/dist/esm/listControls/SubTable/property.js +70 -36
  143. package/dist/esm/searchControls/SimpleSearch/property.js +29 -18
  144. package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
  145. package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
  146. package/dist/esm/wrapControls/GridLayoutWrap/property.js +7 -7
  147. package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
  148. package/dist/index.umd.js +1 -1
  149. package/dist/types/formControls/Barcode/property.d.ts +5 -10
  150. package/dist/types/formControls/QrCode/property.d.ts +5 -10
  151. package/dist/types/layoutControls/BlankContainer/property.d.ts +1 -1
  152. package/package.json +2 -2
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
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
- _this.dateType = (_ref = props === null || props === void 0 ? void 0 : props.dateType) !== null && _ref !== void 0 ? _ref : DateType.DATE;
128
- _this.dateFormat = (_ref1 = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _ref1 !== void 0 ? _ref1 : '';
129
- _this.commonTimeSetting = (_ref2 = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _ref2 !== void 0 ? _ref2 : [];
130
- _this.setValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _ref3 !== void 0 ? _ref3 : 'custom';
131
- _this.rangeMin = (_ref4 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref4 !== void 0 ? _ref4 : '';
132
- _this.rangeMax = (_ref5 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref5 !== void 0 ? _ref5 : '';
133
- _this.placeholderStart = (_ref6 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _ref6 !== void 0 ? _ref6 : getLocaleText('CMD.pleaseSelectStartDate', null, '请选择开始日期');
134
- _this.placeholderEnd = (_ref7 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _ref7 !== void 0 ? _ref7 : getLocaleText('CMD.pleaseSelectEndDate', null, '请选择结束日期');
135
- _this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : DateRangeControl.controlName;
136
- _this.limitDateList = (_ref9 = props === null || props === void 0 ? void 0 : (_props_limitDateList = props.limitDateList) === null || _props_limitDateList === void 0 ? void 0 : _props_limitDateList.map(function(item) {
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 && _ref9 !== void 0 ? _ref9 : [];
139
- _this.isInternational = (_ref10 = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _ref10 !== void 0 ? _ref10 : false;
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
- function _assert_this_initialized(self) {
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
- _this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
106
- _this.multiple = (_ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref1 !== void 0 ? _ref1 : false;
107
- _this.range = (_ref2 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref2 !== void 0 ? _ref2 : 'all';
108
- _this.defaultValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref3 !== void 0 ? _ref3 : 'none';
109
- _this.rangeOptions = (_ref4 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref4 !== void 0 ? _ref4 : [];
110
- _this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
111
- _this.displayLevel = (_ref6 = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _ref6 !== void 0 ? _ref6 : 1;
112
- _this.showSubDept = (_ref7 = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _ref7 !== void 0 ? _ref7 : true;
113
- _this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : DepartmentControl.controlName;
114
- _this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : getLocaleText('CMD.pleaseSelectDept', null, '请选择部门');
115
- _this.openMultistageFilling = (_ref10 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref10 !== void 0 ? _ref10 : false;
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
- function _assert_this_initialized(self) {
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
- _this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
138
- _this.multiple = (_ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref1 !== void 0 ? _ref1 : false;
139
- _this.range = (_ref2 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref2 !== void 0 ? _ref2 : 'all';
140
- _this.defaultValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref3 !== void 0 ? _ref3 : 'none';
141
- _this.rangeOptions = (_ref4 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref4 !== void 0 ? _ref4 : [];
142
- _this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
143
- _this.displayLevel = (_ref6 = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _ref6 !== void 0 ? _ref6 : 1;
144
- _this.showSubDept = (_ref7 = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _ref7 !== void 0 ? _ref7 : true;
145
- _this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : Department2Control.controlName;
146
- _this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : getLocaleText('CMD.pleaseSelectDept', null, '请选择部门');
147
- _this.datasourceBind = new SuperDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
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
- _this.datasourceType = (_ref11 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref11 !== void 0 ? _ref11 : DepartmentType.INTERNAL;
151
- _this.businessScope = (_ref12 = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _ref12 !== void 0 ? _ref12 : [];
152
- _this.businessType = (_ref13 = props === null || props === void 0 ? void 0 : props.businessType) !== null && _ref13 !== void 0 ? _ref13 : AssignType.ALL;
153
- _this.openMultistageFilling = (_ref14 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref14 !== void 0 ? _ref14 : false;
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
- _this.defaultShowOptions = (_ref15 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref15 !== void 0 ? _ref15 : false;
162
- _this.disabledSelectedFilters = (_ref16 = props === null || props === void 0 ? void 0 : (_props_disabledSelectedFilters = props.disabledSelectedFilters) === null || _props_disabledSelectedFilters === void 0 ? void 0 : _props_disabledSelectedFilters.map(function(item) {
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 && _ref16 !== void 0 ? _ref16 : [];
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
- function _assert_this_initialized(self) {
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
- _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : ElectronicSignatureControl.controlName;
195
- _this.content = (_ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && _ref1 !== void 0 ? _ref1 : getLocaleText('CMD.signature', null, '发起签署');
196
- _this.buttonType = (_ref2 = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _ref2 !== void 0 ? _ref2 : 'primary';
197
- _this.showType = (_ref3 = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref3 !== void 0 ? _ref3 : 'text';
198
- _this.color = (_ref4 = props === null || props === void 0 ? void 0 : props.color) !== null && _ref4 !== void 0 ? _ref4 : 'primary';
199
- _this.icon = (_ref5 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref5 !== void 0 ? _ref5 : 'iconfenlei2';
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
- function _assert_this_initialized(self) {
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
- _this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
106
- _this.range = (_ref1 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref1 !== void 0 ? _ref1 : 'all';
107
- _this.rangeOptions = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref2 !== void 0 ? _ref2 : [];
108
- _this.multiple = (_ref3 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref3 !== void 0 ? _ref3 : false;
109
- _this.defaultValueType = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref4 !== void 0 ? _ref4 : 'none';
110
- _this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
111
- _this.caption = (_ref6 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref6 !== void 0 ? _ref6 : EmployeeControl.controlName;
112
- _this.placeholder = (_ref7 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref7 !== void 0 ? _ref7 : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入人员姓名或邮箱');
113
- _this.openMultistageFilling = (_ref8 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref8 !== void 0 ? _ref8 : false;
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
- function _assert_this_initialized(self) {
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
- _this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
135
- _this.range = (_ref1 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref1 !== void 0 ? _ref1 : 'all';
136
- _this.rangeOptions = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref2 !== void 0 ? _ref2 : [];
137
- _this.multiple = (_ref3 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref3 !== void 0 ? _ref3 : false;
138
- _this.defaultValueType = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref4 !== void 0 ? _ref4 : 'none';
139
- _this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
140
- _this.caption = (_ref6 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref6 !== void 0 ? _ref6 : Employee2Control.controlName;
141
- _this.placeholder = (_ref7 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref7 !== void 0 ? _ref7 : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入人员姓名或邮箱');
142
- _this.datasourceBind = new SuperDataSourceBind((_ref8 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref8 !== void 0 ? _ref8 : {
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
- _this.datasourceType = (_ref9 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref9 !== void 0 ? _ref9 : OrganizeType.INTERNAL; //默认内部组织 EXTERNAL 外部组织
146
- _this.insideType = (_ref10 = props === null || props === void 0 ? void 0 : props.insideType) !== null && _ref10 !== void 0 ? _ref10 : InternalType.ADMIN;
147
- _this.externalType = (_ref11 = props === null || props === void 0 ? void 0 : props.externalType) !== null && _ref11 !== void 0 ? _ref11 : AssignType.ALL;
148
- _this.externalScope = (_ref12 = props === null || props === void 0 ? void 0 : props.externalScope) !== null && _ref12 !== void 0 ? _ref12 : [];
149
- _this.openMultistageFilling = (_ref13 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref13 !== void 0 ? _ref13 : false;
150
- _this.mainDeptFlag = (_ref14 = props === null || props === void 0 ? void 0 : props.mainDeptFlag) !== null && _ref14 !== void 0 ? _ref14 : false;
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
- _this.defaultShowOptions = (_ref15 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref15 !== void 0 ? _ref15 : false;
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
- function _assert_this_initialized(self) {
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
- _this.maxLimit = (_ref = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _ref !== void 0 ? _ref : 10;
113
- _this.caption = (_ref1 = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : ImageControl.controlName) !== null && _ref1 !== void 0 ? _ref1 : getLocaleText('CMD.image', null, '图片');
114
- _this.placeholder = (_ref3 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref3 !== void 0 ? _ref3 : getLocaleText('CMD.uploadImg', null, '上传图片');
115
- _this.compressTypeCode = (_ref4 = props === null || props === void 0 ? void 0 : props.compressTypeCode) !== null && _ref4 !== void 0 ? _ref4 : ImageCompressType.NO_COMPRESS; // 默认不压缩
116
- _this.compressRatio = (_ref5 = props === null || props === void 0 ? void 0 : props.compressRatio) !== null && _ref5 !== void 0 ? _ref5 : 1; // 默认压缩比例1
117
- _this.maxPixel = (_ref6 = props === null || props === void 0 ? void 0 : props.maxPixel) !== null && _ref6 !== void 0 ? _ref6 : 1080; // 默认最大像素1080
118
- _this.maxSize = (_ref7 = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _ref7 !== void 0 ? _ref7 : MB10;
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
- _this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 200;
200
- _this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
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
- _this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
203
- _this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : InputControl.controlName;
204
- _this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseEnter', null, '请输入');
205
- _this.encrypted = (_ref5 = props === null || props === void 0 ? void 0 : props.encrypted) !== null && _ref5 !== void 0 ? _ref5 : false;
206
- _this.encryptedMode = (_ref6 = props === null || props === void 0 ? void 0 : props.encryptedMode) !== null && _ref6 !== void 0 ? _ref6 : '';
207
- _this.aiContentSearch = (_ref7 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref7 !== void 0 ? _ref7 : false;
208
- _this.autoHeight = (_ref8 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref8 !== void 0 ? _ref8 : false;
209
- _this.lineEllipsis = (_ref9 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref9 !== void 0 ? _ref9 : 1;
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;