@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
@@ -159,27 +159,42 @@ var NumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
159
159
  function NumberProperty(props) {
160
160
  _class_call_check(this, NumberProperty);
161
161
  var _this;
162
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15;
163
162
  _this = _call_super(this, NumberProperty, [
164
163
  props
165
164
  ]), _define_property(_this, "rangeMin", void 0), _define_property(_this, "rangeMax", void 0), _define_property(_this, "numberType", void 0), _define_property(_this, "percentageFormat", void 0), _define_property(_this, "micrometer", void 0), _define_property(_this, "precision", void 0), _define_property(_this, "showUpperCase", void 0), _define_property(_this, "isShowUnit", void 0), _define_property(_this, "unitPosition", void 0), _define_property(_this, "unit", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "regularRules", void 0), _define_property(_this, "isShowControlButton", void 0), _define_property(_this, "controlButtonPosition", void 0), _define_property(_this, "step", void 0);
166
- _this.rangeMin = (_ref = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref !== void 0 ? _ref : '';
167
- _this.rangeMax = (_ref1 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref1 !== void 0 ? _ref1 : '';
168
- _this.numberType = (_ref2 = props === null || props === void 0 ? void 0 : props.numberType) !== null && _ref2 !== void 0 ? _ref2 : 'number';
169
- _this.percentageFormat = (_ref3 = props === null || props === void 0 ? void 0 : props.percentageFormat) !== null && _ref3 !== void 0 ? _ref3 : false;
170
- _this.micrometer = (_ref4 = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _ref4 !== void 0 ? _ref4 : false;
171
- _this.precision = (_ref5 = props === null || props === void 0 ? void 0 : props.precision) !== null && _ref5 !== void 0 ? _ref5 : 0;
172
- _this.showUpperCase = (_ref6 = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _ref6 !== void 0 ? _ref6 : false;
173
- _this.isShowUnit = (_ref7 = props === null || props === void 0 ? void 0 : props.isShowUnit) !== null && _ref7 !== void 0 ? _ref7 : false;
174
- _this.unitPosition = (_ref8 = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _ref8 !== void 0 ? _ref8 : 'right';
175
- _this.unit = (_ref9 = props === null || props === void 0 ? void 0 : props.unit) !== null && _ref9 !== void 0 ? _ref9 : '';
176
- _this.caption = (_ref10 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref10 !== void 0 ? _ref10 : NumberControl.controlName;
177
- _this.placeholder = (_ref11 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref11 !== void 0 ? _ref11 : getLocaleText('CMD.pleaseEnter', null, '请输入');
178
- _this.defaultValue = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref12 !== void 0 ? _ref12 : '';
165
+ var _props_rangeMin;
166
+ _this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
167
+ var _props_rangeMax;
168
+ _this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
169
+ var _props_numberType;
170
+ _this.numberType = (_props_numberType = props === null || props === void 0 ? void 0 : props.numberType) !== null && _props_numberType !== void 0 ? _props_numberType : 'number';
171
+ var _props_percentageFormat;
172
+ _this.percentageFormat = (_props_percentageFormat = props === null || props === void 0 ? void 0 : props.percentageFormat) !== null && _props_percentageFormat !== void 0 ? _props_percentageFormat : false;
173
+ var _props_micrometer;
174
+ _this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
175
+ var _props_precision;
176
+ _this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 0;
177
+ var _props_showUpperCase;
178
+ _this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
179
+ var _props_isShowUnit;
180
+ _this.isShowUnit = (_props_isShowUnit = props === null || props === void 0 ? void 0 : props.isShowUnit) !== null && _props_isShowUnit !== void 0 ? _props_isShowUnit : false;
181
+ var _props_unitPosition;
182
+ _this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
183
+ var _props_unit;
184
+ _this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : '';
185
+ var _props_caption;
186
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : NumberControl.controlName;
187
+ var _props_placeholder;
188
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
189
+ var _props_defaultValue;
190
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
179
191
  _this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
180
- _this.isShowControlButton = (_ref13 = props === null || props === void 0 ? void 0 : props.isShowControlButton) !== null && _ref13 !== void 0 ? _ref13 : false;
181
- _this.controlButtonPosition = (_ref14 = props === null || props === void 0 ? void 0 : props.controlButtonPosition) !== null && _ref14 !== void 0 ? _ref14 : 'between';
182
- _this.step = (_ref15 = props === null || props === void 0 ? void 0 : props.step) !== null && _ref15 !== void 0 ? _ref15 : 1;
192
+ var _props_isShowControlButton;
193
+ _this.isShowControlButton = (_props_isShowControlButton = props === null || props === void 0 ? void 0 : props.isShowControlButton) !== null && _props_isShowControlButton !== void 0 ? _props_isShowControlButton : false;
194
+ var _props_controlButtonPosition;
195
+ _this.controlButtonPosition = (_props_controlButtonPosition = props === null || props === void 0 ? void 0 : props.controlButtonPosition) !== null && _props_controlButtonPosition !== void 0 ? _props_controlButtonPosition : 'between';
196
+ var _props_step;
197
+ _this.step = (_props_step = props === null || props === void 0 ? void 0 : props.step) !== null && _props_step !== void 0 ? _props_step : 1;
183
198
  return _this;
184
199
  }
185
200
  return NumberProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_organization_selection
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_organization_selection
75
- * description: 组织选择组件,用于选择组织单元并展示已选明细。适合组织归属、业务协同等场景,支持组织视图、数据源绑定、列表页联动、多级填充和已选内容配置。
76
- */ import OrganizationSelectionControl from './designer';
76
+ import OrganizationSelectionControl from './designer';
77
77
  import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initSuperDataSourceRules, MultistageFillingItem, SelectedContentConfig, OrganizationDataSourceBind, ListBind } from '@byteluck-fe/model-driven-core';
78
78
  import { DepartmentType, AssignType } from '../../framework';
79
79
  import { getLocaleText } from '@byteluck-fe/locale-message';
@@ -127,32 +127,49 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
127
127
  function OrganizationSelectionProperty(props) {
128
128
  _class_call_check(this, OrganizationSelectionProperty);
129
129
  var _this;
130
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17;
131
130
  _this = _call_super(this, OrganizationSelectionProperty, [
132
131
  props
133
132
  ]), _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, "listPageBind", void 0), _define_property(_this, "datasourceType", void 0), _define_property(_this, "businessType", void 0), _define_property(_this, "businessScope", void 0), _define_property(_this, "organizingFunction", void 0), _define_property(_this, "organizationView", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "showSelectedDetail", void 0), _define_property(_this, "selectedContentConfig", void 0);
134
- _this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
135
- _this.multiple = (_ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref1 !== void 0 ? _ref1 : false;
136
- _this.range = (_ref2 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref2 !== void 0 ? _ref2 : 'all';
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_multiple;
136
+ _this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
137
+ var _props_range;
138
+ _this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
137
139
  _this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
138
- _this.defaultValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref3 !== void 0 ? _ref3 : 'none';
139
- _this.rangeOptions = (_ref4 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref4 !== void 0 ? _ref4 : [];
140
- _this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
141
- _this.displayLevel = (_ref6 = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _ref6 !== void 0 ? _ref6 : 1;
142
- _this.showSubDept = (_ref7 = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _ref7 !== void 0 ? _ref7 : true;
143
- _this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : OrganizationSelectionControl.controlName;
144
- _this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : getLocaleText('CMD.pleaseSelectOrg', null, '请选择组织');
145
- _this.datasourceBind = new OrganizationDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
140
+ var _props_defaultValueType;
141
+ _this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
142
+ var _props_rangeOptions;
143
+ _this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
144
+ var _props_defaultValue;
145
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
146
+ var _props_displayLevel;
147
+ _this.displayLevel = (_props_displayLevel = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _props_displayLevel !== void 0 ? _props_displayLevel : 1;
148
+ var _props_showSubDept;
149
+ _this.showSubDept = (_props_showSubDept = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _props_showSubDept !== void 0 ? _props_showSubDept : true;
150
+ var _props_caption;
151
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : OrganizationSelectionControl.controlName;
152
+ var _props_placeholder;
153
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelectOrg', null, '请选择组织');
154
+ var _props_datasourceBind;
155
+ _this.datasourceBind = new OrganizationDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
146
156
  attributes: OrganizationSelectionControl.controlCustomAttributes
147
157
  });
148
- _this.datasourceType = (_ref11 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref11 !== void 0 ? _ref11 : DepartmentType.INTERNAL;
149
- _this.businessScope = (_ref12 = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _ref12 !== void 0 ? _ref12 : [];
150
- _this.businessType = (_ref13 = props === null || props === void 0 ? void 0 : props.businessType) !== null && _ref13 !== void 0 ? _ref13 : AssignType.ALL;
151
- _this.organizingFunction = (_ref14 = props === null || props === void 0 ? void 0 : props.organizingFunction) !== null && _ref14 !== void 0 ? _ref14 : undefined;
152
- _this.organizationView = (_ref15 = props === null || props === void 0 ? void 0 : props.organizationView) !== null && _ref15 !== void 0 ? _ref15 : undefined;
153
- _this.showSelectedDetail = (_ref16 = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _ref16 !== void 0 ? _ref16 : false;
158
+ var _props_datasourceType;
159
+ _this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : DepartmentType.INTERNAL;
160
+ var _props_businessScope;
161
+ _this.businessScope = (_props_businessScope = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _props_businessScope !== void 0 ? _props_businessScope : [];
162
+ var _props_businessType;
163
+ _this.businessType = (_props_businessType = props === null || props === void 0 ? void 0 : props.businessType) !== null && _props_businessType !== void 0 ? _props_businessType : AssignType.ALL;
164
+ var _props_organizingFunction;
165
+ _this.organizingFunction = (_props_organizingFunction = props === null || props === void 0 ? void 0 : props.organizingFunction) !== null && _props_organizingFunction !== void 0 ? _props_organizingFunction : undefined;
166
+ var _props_organizationView;
167
+ _this.organizationView = (_props_organizationView = props === null || props === void 0 ? void 0 : props.organizationView) !== null && _props_organizationView !== void 0 ? _props_organizationView : undefined;
168
+ var _props_showSelectedDetail;
169
+ _this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
154
170
  _this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
155
- _this.openMultistageFilling = (_ref17 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref17 !== void 0 ? _ref17 : false;
171
+ var _props_openMultistageFilling;
172
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
156
173
  _this.multistageFilling = [];
157
174
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
158
175
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -84,6 +84,7 @@ function _is_native_reflect_construct() {
84
84
  return !!result;
85
85
  })();
86
86
  }
87
+ import { getLocaleText } from '@byteluck-fe/locale-message';
87
88
  import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
88
89
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
90
  import QrCodeProperty from './property';
@@ -103,7 +104,7 @@ var QrCodeControl = /*#__PURE__*/ function(DesignerFormControl) {
103
104
  {
104
105
  key: "controlName",
105
106
  get: function get() {
106
- return '二维码';
107
+ return getLocaleText('CMD.034d1777541747382');
107
108
  }
108
109
  },
109
110
  {
@@ -173,18 +174,18 @@ _define_property(QrCodeControl, "setting", [
173
174
  {
174
175
  key: 'common-group',
175
176
  visible: true,
176
- label: '属性设置',
177
+ label: getLocaleText('CMD.48ab1777541706716'),
177
178
  children: [
178
179
  {
179
180
  key: 'common-select',
180
181
  visible: true,
181
182
  name: 'qrVersion',
182
- label: '二维码版本',
183
+ label: getLocaleText('CMD.9f5f1777541682089'),
183
184
  default: 'auto',
184
185
  options: [
185
186
  {
186
187
  value: 'auto',
187
- label: '自动'
188
+ label: getLocaleText('CMD.43211777541760099')
188
189
  },
189
190
  {
190
191
  value: '1',
@@ -352,24 +353,24 @@ _define_property(QrCodeControl, "setting", [
352
353
  key: 'common-select',
353
354
  visible: true,
354
355
  name: 'errorCorrectionLevel',
355
- label: '容错级别',
356
+ label: getLocaleText('CMD.a9b81777541718919'),
356
357
  default: 'M',
357
358
  options: [
358
359
  {
359
360
  value: 'L',
360
- label: 'L(低,7%)'
361
+ label: getLocaleText('CMD.3e9b1777541634899')
361
362
  },
362
363
  {
363
364
  value: 'M',
364
- label: 'M(中,15%)'
365
+ label: getLocaleText('CMD.bc7a1777541617060')
365
366
  },
366
367
  {
367
368
  value: 'Q',
368
- label: 'Q(高,25%)'
369
+ label: getLocaleText('CMD.3ce71777541620174')
369
370
  },
370
371
  {
371
372
  value: 'H',
372
- label: 'H(最高,30%)'
373
+ label: getLocaleText('CMD.b5841777541605769')
373
374
  }
374
375
  ]
375
376
  },
@@ -377,7 +378,7 @@ _define_property(QrCodeControl, "setting", [
377
378
  key: 'common-select',
378
379
  visible: true,
379
380
  name: 'codeMode',
380
- label: '码制',
381
+ label: getLocaleText('CMD.ae891777541761573'),
381
382
  default: 'qrCode',
382
383
  options: [
383
384
  {
@@ -391,54 +392,73 @@ _define_property(QrCodeControl, "setting", [
391
392
  visible: true,
392
393
  name: 'size',
393
394
  layout: 'horizontal',
394
- label: '尺寸(px)'
395
+ label: getLocaleText('CMD.dd381777541646923')
395
396
  },
396
397
  {
397
398
  key: 'common-input-number',
398
399
  visible: true,
399
400
  name: 'codeMargin',
400
401
  layout: 'horizontal',
401
- label: '边距(px)'
402
+ label: getLocaleText('CMD.71a11777541645070')
402
403
  }
403
404
  ]
404
405
  },
405
406
  {
406
407
  key: 'common-group',
407
408
  visible: true,
408
- label: '样式设置',
409
+ label: getLocaleText('CMD.523e1777541710452'),
409
410
  children: [
410
411
  {
411
- key: 'color',
412
- visible: true,
413
- name: 'backgroundColor',
414
- layout: 'horizontal',
415
- label: '背景色'
416
- },
417
- {
418
- key: 'color',
412
+ key: 'common-select',
419
413
  visible: true,
420
414
  name: 'qrColor',
421
- layout: 'horizontal',
422
- label: '二维码颜色'
415
+ label: getLocaleText('CMD.41081777541683947'),
416
+ default: '#000000',
417
+ options: [
418
+ {
419
+ value: '#000000',
420
+ label: getLocaleText('CMD.a5211777541756178')
421
+ },
422
+ {
423
+ value: '#001F3F',
424
+ label: getLocaleText('CMD.18241777541714577')
425
+ },
426
+ {
427
+ value: '#004225',
428
+ label: getLocaleText('CMD.cb4e1777541716843')
429
+ },
430
+ {
431
+ value: '#4A0404',
432
+ label: getLocaleText('CMD.e0d51777541738692')
433
+ },
434
+ {
435
+ value: '#2F2F2F',
436
+ label: getLocaleText('CMD.98df1777541740192')
437
+ },
438
+ {
439
+ value: '#1A237E',
440
+ label: getLocaleText('CMD.9e1f1777541741805')
441
+ }
442
+ ]
423
443
  },
424
444
  {
425
445
  key: 'common-button-radio',
426
446
  visible: true,
427
447
  name: 'align',
428
- label: '对齐',
448
+ label: getLocaleText('CMD.d82e1777541757479'),
429
449
  default: 'left',
430
450
  options: [
431
451
  {
432
452
  value: 'left',
433
- label: '左对齐'
453
+ label: getLocaleText('CMD.2e381777541743100')
434
454
  },
435
455
  {
436
456
  value: 'center',
437
- label: '居中'
457
+ label: getLocaleText('CMD.262c1777541758748')
438
458
  },
439
459
  {
440
460
  value: 'right',
441
- label: '右对齐'
461
+ label: getLocaleText('CMD.c4ee1777541744538')
442
462
  }
443
463
  ]
444
464
  }
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_qr_code
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_qr_code
75
- * description: 二维码组件,用于展示或绑定二维码内容。支持尺寸、边距、前景/背景色与对齐方式配置,适合链接、单据追溯等场景。
76
- */ import QrCodeControl from './designer';
76
+ import QrCodeControl from './designer';
77
77
  import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
78
78
  var QrCodePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
79
79
  "use strict";
@@ -108,20 +108,27 @@ var QrCodeProperty = /*#__PURE__*/ function(BaseControlProperty) {
108
108
  function QrCodeProperty(props) {
109
109
  _class_call_check(this, QrCodeProperty);
110
110
  var _this;
111
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
112
111
  _this = _call_super(this, QrCodeProperty, [
113
112
  props
114
- ]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "qrVersion", void 0), _define_property(_this, "errorCorrectionLevel", void 0), _define_property(_this, "codeMode", void 0), _define_property(_this, "size", void 0), _define_property(_this, "codeMargin", void 0), _define_property(_this, "backgroundColor", void 0), _define_property(_this, "qrColor", void 0), _define_property(_this, "align", void 0);
115
- _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : QrCodeControl.controlName;
116
- _this.defaultValue = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref1 !== void 0 ? _ref1 : '';
117
- _this.qrVersion = (_ref2 = props === null || props === void 0 ? void 0 : props.qrVersion) !== null && _ref2 !== void 0 ? _ref2 : 'auto';
118
- _this.errorCorrectionLevel = (_ref3 = props === null || props === void 0 ? void 0 : props.errorCorrectionLevel) !== null && _ref3 !== void 0 ? _ref3 : 'M';
119
- _this.codeMode = (_ref4 = props === null || props === void 0 ? void 0 : props.codeMode) !== null && _ref4 !== void 0 ? _ref4 : 'qrCode';
120
- _this.size = (_ref5 = props === null || props === void 0 ? void 0 : props.size) !== null && _ref5 !== void 0 ? _ref5 : 160;
121
- _this.codeMargin = (_ref6 = props === null || props === void 0 ? void 0 : props.codeMargin) !== null && _ref6 !== void 0 ? _ref6 : 0;
122
- _this.backgroundColor = (_ref7 = props === null || props === void 0 ? void 0 : props.backgroundColor) !== null && _ref7 !== void 0 ? _ref7 : '#ffffff';
123
- _this.qrColor = (_ref8 = props === null || props === void 0 ? void 0 : props.qrColor) !== null && _ref8 !== void 0 ? _ref8 : '#000000';
124
- _this.align = (_ref9 = props === null || props === void 0 ? void 0 : props.align) !== null && _ref9 !== void 0 ? _ref9 : 'left';
113
+ ]), _define_property(_this, "defaultValue", void 0), _define_property(_this, "qrVersion", void 0), _define_property(_this, "errorCorrectionLevel", void 0), _define_property(_this, "codeMode", void 0), _define_property(_this, "size", void 0), _define_property(_this, "codeMargin", void 0), _define_property(_this, "qrColor", void 0), _define_property(_this, "align", void 0);
114
+ var _props_caption;
115
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : QrCodeControl.controlName;
116
+ var _props_defaultValue;
117
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
118
+ var _props_qrVersion;
119
+ _this.qrVersion = (_props_qrVersion = props === null || props === void 0 ? void 0 : props.qrVersion) !== null && _props_qrVersion !== void 0 ? _props_qrVersion : 'auto';
120
+ var _props_errorCorrectionLevel;
121
+ _this.errorCorrectionLevel = (_props_errorCorrectionLevel = props === null || props === void 0 ? void 0 : props.errorCorrectionLevel) !== null && _props_errorCorrectionLevel !== void 0 ? _props_errorCorrectionLevel : 'M';
122
+ var _props_codeMode;
123
+ _this.codeMode = (_props_codeMode = props === null || props === void 0 ? void 0 : props.codeMode) !== null && _props_codeMode !== void 0 ? _props_codeMode : 'qrCode';
124
+ var _props_size;
125
+ _this.size = (_props_size = props === null || props === void 0 ? void 0 : props.size) !== null && _props_size !== void 0 ? _props_size : 160;
126
+ var _props_codeMargin;
127
+ _this.codeMargin = (_props_codeMargin = props === null || props === void 0 ? void 0 : props.codeMargin) !== null && _props_codeMargin !== void 0 ? _props_codeMargin : 0;
128
+ var _props_qrColor;
129
+ _this.qrColor = (_props_qrColor = props === null || props === void 0 ? void 0 : props.qrColor) !== null && _props_qrColor !== void 0 ? _props_qrColor : '#000000';
130
+ var _props_align;
131
+ _this.align = (_props_align = props === null || props === void 0 ? void 0 : props.align) !== null && _props_align !== void 0 ? _props_align : 'left';
125
132
  return _this;
126
133
  }
127
134
  return QrCodeProperty;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rok_qr_code",
3
- "description": "二维码组件,用于展示或绑定二维码内容。支持尺寸、边距、前景/背景色与对齐方式配置,适合链接、单据追溯等场景。",
3
+ "description": "二维码组件,用于展示或绑定二维码内容。支持尺寸、边距、码点颜色与对齐方式配置,适合链接、单据追溯等场景。",
4
4
  "parameters": {
5
5
  "type": "object",
6
6
  "properties": {
@@ -287,15 +287,26 @@
287
287
  "description": "边距;单位 px",
288
288
  "default": 0
289
289
  },
290
- "backgroundColor": {
290
+ "qrColor": {
291
291
  "type": "string",
292
- "description": "背景色",
293
- "default": "#ffffff"
294
- },
295
- "barcodeColor": {
296
- "type": "string",
297
- "description": "码点颜色",
298
- "default": "#000000"
292
+ "enum": [
293
+ "#000000",
294
+ "#001F3F",
295
+ "#004225",
296
+ "#4A0404",
297
+ "#2F2F2F",
298
+ "#1A237E"
299
+ ],
300
+ "description": "二维码颜色;",
301
+ "default": "#000000",
302
+ "enumDescription": [
303
+ "纯黑",
304
+ "深海军蓝",
305
+ "深森林绿",
306
+ "深酒红",
307
+ "深炭灰",
308
+ "深靛青"
309
+ ]
299
310
  },
300
311
  "align": {
301
312
  "type": "string",
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_radio
3
+ * description: 单选框组件,用于在多个互斥选项中选择一个值。适合是否判断、分类选择等场景,支持横竖排布局、其他选项、数据源配置、按钮样式和 AI 内容搜索。
4
+ */ function _assert_this_initialized(self) {
2
5
  if (self === void 0) {
3
6
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
7
  }
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
70
73
  return !!result;
71
74
  })();
72
75
  }
73
- /**
74
- * name: rok_radio
75
- * description: 单选框组件,用于在多个互斥选项中选择一个值。适合是否判断、分类选择等场景,支持横竖排布局、其他选项、数据源配置、按钮样式和 AI 内容搜索。
76
- */ import { getLocaleText } from '@byteluck-fe/locale-message';
76
+ import { getLocaleText } from '@byteluck-fe/locale-message';
77
77
  import RadioControl from './designer';
78
78
  import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions } from '@byteluck-fe/model-driven-core';
79
79
  var RadioControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
@@ -93,11 +93,11 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
93
93
  function RadioProperty(props) {
94
94
  _class_call_check(this, RadioProperty);
95
95
  var _this;
96
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13;
97
96
  _this = _call_super(this, RadioProperty, [
98
97
  props
99
98
  ]), _define_property(_this, "radioMode", void 0), _define_property(_this, "options", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "optionsFormat", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "otherOption", void 0), _define_property(_this, "optionsOrder", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "interreaction", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "type", void 0), _define_property(_this, "isUseCustomColor", void 0);
100
- _this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
99
+ var _props_options;
100
+ _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
101
101
  {
102
102
  label: getLocaleText('CMD.optionOne', null, '选项一'),
103
103
  value: getLocaleText('CMD.optionOne', null, '选项一')
@@ -111,19 +111,31 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
111
111
  value: getLocaleText('CMD.optionThird', null, '选项三')
112
112
  }
113
113
  ]);
114
- _this.radioMode = (_ref1 = props === null || props === void 0 ? void 0 : props.radioMode) !== null && _ref1 !== void 0 ? _ref1 : 'horizontal';
115
- _this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'custom';
116
- _this.otherOption = (_ref3 = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _ref3 !== void 0 ? _ref3 : false;
117
- _this.optionsOrder = (_ref4 = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _ref4 !== void 0 ? _ref4 : false;
118
- _this.defaultShowOptions = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref5 !== void 0 ? _ref5 : true;
119
- _this.optionsFormat = (_ref6 = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _ref6 !== void 0 ? _ref6 : 'horizontal';
114
+ var _props_radioMode;
115
+ _this.radioMode = (_props_radioMode = props === null || props === void 0 ? void 0 : props.radioMode) !== null && _props_radioMode !== void 0 ? _props_radioMode : 'horizontal';
116
+ var _props_optionConfig;
117
+ _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
118
+ var _props_otherOption;
119
+ _this.otherOption = (_props_otherOption = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _props_otherOption !== void 0 ? _props_otherOption : false;
120
+ var _props_optionsOrder;
121
+ _this.optionsOrder = (_props_optionsOrder = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _props_optionsOrder !== void 0 ? _props_optionsOrder : false;
122
+ var _props_defaultShowOptions;
123
+ _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
124
+ var _props_optionsFormat;
125
+ _this.optionsFormat = (_props_optionsFormat = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _props_optionsFormat !== void 0 ? _props_optionsFormat : 'horizontal';
120
126
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
121
- _this.interreaction = (_ref7 = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _ref7 !== void 0 ? _ref7 : [];
122
- _this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : RadioControl.controlName;
123
- _this.defaultValue = (_ref9 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref9 !== void 0 ? _ref9 : '';
124
- _this.openMultistageFilling = (_ref10 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref10 !== void 0 ? _ref10 : false;
125
- _this.type = (_ref11 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref11 !== void 0 ? _ref11 : 'default';
126
- _this.isUseCustomColor = (_ref12 = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _ref12 !== void 0 ? _ref12 : false;
127
+ var _props_interreaction;
128
+ _this.interreaction = (_props_interreaction = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _props_interreaction !== void 0 ? _props_interreaction : [];
129
+ var _props_caption;
130
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RadioControl.controlName;
131
+ var _props_defaultValue;
132
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
133
+ var _props_openMultistageFilling;
134
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
135
+ var _props_type;
136
+ _this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
137
+ var _props_isUseCustomColor;
138
+ _this.isUseCustomColor = (_props_isUseCustomColor = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _props_isUseCustomColor !== void 0 ? _props_isUseCustomColor : false;
127
139
  _this.multistageFilling = [];
128
140
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
129
141
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -131,7 +143,8 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
131
143
  (_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
132
144
  });
133
145
  }
134
- _this.aiContentSearch = (_ref13 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref13 !== void 0 ? _ref13 : false;
146
+ var _props_aiContentSearch;
147
+ _this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
135
148
  return _this;
136
149
  }
137
150
  return RadioProperty;
@@ -207,7 +207,7 @@ _define_property(RichTextControl, "setting", [
207
207
  visible: true,
208
208
  name: 'height',
209
209
  layout: 'horizontal',
210
- label: '高度(px)',
210
+ label: getLocaleText('CMD.131c1777541649034'),
211
211
  min: 300
212
212
  },
213
213
  {
@@ -138,14 +138,17 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
138
138
  function RichTextProperty(props) {
139
139
  _class_call_check(this, RichTextProperty);
140
140
  var _this;
141
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
142
141
  _this = _call_super(this, RichTextProperty, [
143
142
  props
144
143
  ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "height", void 0), // public toolbarOptions: Array<string>
145
144
  _define_property(_this, "defaultValue", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "aiGeneration", void 0), _define_property(_this, "aiOptions", void 0), _define_property(_this, "autoHeight", void 0), _define_property(_this, "lineEllipsis", void 0);
146
- _this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 50000;
147
- _this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
148
- _this.height = (_ref2 = props === null || props === void 0 ? void 0 : props.height) !== null && _ref2 !== void 0 ? _ref2 : 300;
145
+ var _props_maxLength;
146
+ _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
147
+ var _props_minLength;
148
+ _this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
149
+ var _props_height;
150
+ _this.height = (_props_height = props === null || props === void 0 ? void 0 : props.height) !== null && _props_height !== void 0 ? _props_height : 300;
151
+ var _props_defaultValue;
149
152
  // this.toolbarOptions = props?.toolbarOptions ?? [
150
153
  // 'undo', 'redo', '|',
151
154
  // 'forecolor', 'backcolor', 'bold', 'italic', 'underline', 'strikethrough', 'link', '|',
@@ -156,12 +159,17 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
156
159
  // 'table', 'image', 'hr', 'preview', '|',
157
160
  // 'fullscreen'
158
161
  // ]
159
- _this.defaultValue = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
160
- _this.caption = (_ref4 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref4 !== void 0 ? _ref4 : RichTextControl.controlName;
161
- _this.placeholder = (_ref5 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref5 !== void 0 ? _ref5 : getLocaleText('CMD.pleaseEnter', null, '请输入');
162
- _this.aiContentSearch = (_ref6 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref6 !== void 0 ? _ref6 : false;
163
- _this.aiGeneration = (_ref7 = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _ref7 !== void 0 ? _ref7 : false;
164
- _this.aiOptions = initAiOptions((_ref8 = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _ref8 !== void 0 ? _ref8 : [
162
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
163
+ var _props_caption;
164
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RichTextControl.controlName;
165
+ var _props_placeholder;
166
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
167
+ var _props_aiContentSearch;
168
+ _this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
169
+ var _props_aiGeneration;
170
+ _this.aiGeneration = (_props_aiGeneration = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _props_aiGeneration !== void 0 ? _props_aiGeneration : false;
171
+ var _props_aiOptions;
172
+ _this.aiOptions = initAiOptions((_props_aiOptions = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _props_aiOptions !== void 0 ? _props_aiOptions : [
165
173
  {
166
174
  label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
167
175
  cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
@@ -178,8 +186,10 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
178
186
  checked: false
179
187
  }
180
188
  ]);
181
- _this.autoHeight = (_ref9 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref9 !== void 0 ? _ref9 : false;
182
- _this.lineEllipsis = (_ref10 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref10 !== void 0 ? _ref10 : 1;
189
+ var _props_autoHeight;
190
+ _this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
191
+ var _props_lineEllipsis;
192
+ _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
183
193
  return _this;
184
194
  }
185
195
  return RichTextProperty;