@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_operation_column
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_operation_column
75
- * description: 操作按钮列。用于在表格中承载行级操作入口,适合列表管理、审批处理、数据维护等场景,支持文本或图标展示方式并限制默认显示的操作数量。
76
- */ import { ColumnControlProperty } from '@byteluck-fe/model-driven-core';
76
+ import { ColumnControlProperty } from '@byteluck-fe/model-driven-core';
77
77
  import { DesignerOperationColumnControl } from './designer';
78
78
  var OperationColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
79
79
  "use strict";
@@ -81,7 +81,6 @@ var OperationColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
81
81
  function OperationColumnControlProperty(props) {
82
82
  _class_call_check(this, OperationColumnControlProperty);
83
83
  var _this;
84
- var _ref, _ref1, _ref2, _ref3, _ref4;
85
84
  var _props_autoWidth;
86
85
  _this = _call_super(this, OperationColumnControlProperty, [
87
86
  props
@@ -91,8 +90,10 @@ var OperationColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
91
90
  // public delete: OperationItem
92
91
  // public custom: OperationItem[]
93
92
  _define_property(_this, "showType", void 0), _define_property(_this, "limit", void 0);
94
- _this.fixed = (_ref = props === null || props === void 0 ? void 0 : props.fixed) !== null && _ref !== void 0 ? _ref : 'right';
93
+ var _props_fixed;
94
+ _this.fixed = (_props_fixed = props === null || props === void 0 ? void 0 : props.fixed) !== null && _props_fixed !== void 0 ? _props_fixed : 'right';
95
95
  _this.widthType = 'auto';
96
+ var _props_autoWidth_minWidth;
96
97
  // this.check = new OperationItem(
97
98
  // props?.check ?? {
98
99
  // content: '查看',
@@ -108,10 +109,13 @@ var OperationColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
108
109
  // props?.delete ?? { content: '删除', type: 'delete', isShow: false }
109
110
  // )
110
111
  // this.custom = (props?.custom ?? []).map((item) => new OperationItem(item))
111
- _this.autoWidth.minWidth = (_ref1 = props === null || props === void 0 ? void 0 : (_props_autoWidth = props.autoWidth) === null || _props_autoWidth === void 0 ? void 0 : _props_autoWidth.minWidth) !== null && _ref1 !== void 0 ? _ref1 : 84;
112
- _this.caption = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : DesignerOperationColumnControl.controlName;
113
- _this.showType = (_ref3 = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref3 !== void 0 ? _ref3 : 'icon';
114
- _this.limit = (_ref4 = props === null || props === void 0 ? void 0 : props.limit) !== null && _ref4 !== void 0 ? _ref4 : 3;
112
+ _this.autoWidth.minWidth = (_props_autoWidth_minWidth = props === null || props === void 0 ? void 0 : (_props_autoWidth = props.autoWidth) === null || _props_autoWidth === void 0 ? void 0 : _props_autoWidth.minWidth) !== null && _props_autoWidth_minWidth !== void 0 ? _props_autoWidth_minWidth : 84;
113
+ var _props_caption;
114
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerOperationColumnControl.controlName;
115
+ var _props_showType;
116
+ _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'icon';
117
+ var _props_limit;
118
+ _this.limit = (_props_limit = props === null || props === void 0 ? void 0 : props.limit) !== null && _props_limit !== void 0 ? _props_limit : 3;
115
119
  return _this;
116
120
  }
117
121
  return OperationColumnControlProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_order_column
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_order_column
75
- * description: 序号展示列。用于在表格中显示行序号或排序位置,适合列表浏览、排名展示等场景,默认固定在左侧并提供适合序号列的宽度设置。
76
- */ import { ColumnControlProperty, ColumnControlPropertyRules } from '@byteluck-fe/model-driven-core';
76
+ import { ColumnControlProperty, ColumnControlPropertyRules } from '@byteluck-fe/model-driven-core';
77
77
  import { DesignerOrderColumnControl } from './designer';
78
78
  var OrderColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPropertyRules) {
79
79
  "use strict";
@@ -95,17 +95,22 @@ var OrderColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
95
95
  function OrderColumnControlProperty(props) {
96
96
  _class_call_check(this, OrderColumnControlProperty);
97
97
  var _this;
98
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
99
98
  var _props_autoWidth, _props_autoWidth1;
100
99
  _this = _call_super(this, OrderColumnControlProperty, [
101
100
  props
102
101
  ]);
103
- _this.fixed = (_ref = props === null || props === void 0 ? void 0 : props.fixed) !== null && _ref !== void 0 ? _ref : 'left';
104
- _this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : DesignerOrderColumnControl.controlName;
105
- _this.width = (_ref2 = props === null || props === void 0 ? void 0 : props.width) !== null && _ref2 !== void 0 ? _ref2 : 60;
106
- _this.autoWidth.minWidth = (_ref3 = props === null || props === void 0 ? void 0 : (_props_autoWidth = props.autoWidth) === null || _props_autoWidth === void 0 ? void 0 : _props_autoWidth.minWidth) !== null && _ref3 !== void 0 ? _ref3 : 60;
107
- _this.autoWidth.flex = (_ref4 = props === null || props === void 0 ? void 0 : (_props_autoWidth1 = props.autoWidth) === null || _props_autoWidth1 === void 0 ? void 0 : _props_autoWidth1.flex) !== null && _ref4 !== void 0 ? _ref4 : 0.4;
108
- _this.widthType = (_ref5 = props === null || props === void 0 ? void 0 : props.widthType) !== null && _ref5 !== void 0 ? _ref5 : 'px';
102
+ var _props_fixed;
103
+ _this.fixed = (_props_fixed = props === null || props === void 0 ? void 0 : props.fixed) !== null && _props_fixed !== void 0 ? _props_fixed : 'left';
104
+ var _props_caption;
105
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerOrderColumnControl.controlName;
106
+ var _props_width;
107
+ _this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 60;
108
+ var _props_autoWidth_minWidth;
109
+ _this.autoWidth.minWidth = (_props_autoWidth_minWidth = props === null || props === void 0 ? void 0 : (_props_autoWidth = props.autoWidth) === null || _props_autoWidth === void 0 ? void 0 : _props_autoWidth.minWidth) !== null && _props_autoWidth_minWidth !== void 0 ? _props_autoWidth_minWidth : 60;
110
+ var _props_autoWidth_flex;
111
+ _this.autoWidth.flex = (_props_autoWidth_flex = props === null || props === void 0 ? void 0 : (_props_autoWidth1 = props.autoWidth) === null || _props_autoWidth1 === void 0 ? void 0 : _props_autoWidth1.flex) !== null && _props_autoWidth_flex !== void 0 ? _props_autoWidth_flex : 0.4;
112
+ var _props_widthType;
113
+ _this.widthType = (_props_widthType = props === null || props === void 0 ? void 0 : props.widthType) !== null && _props_widthType !== void 0 ? _props_widthType : 'px';
109
114
  return _this;
110
115
  }
111
116
  return OrderColumnControlProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_people_column
3
+ * description: 人员展示列(已废弃)。原用于在表格中展示人员相关信息,适合历史兼容场景,当前主要保留基础列属性以兼容旧配置。
4
+ */ function _assert_this_initialized(self) {
2
5
  if (self === void 0) {
3
6
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
7
  }
@@ -57,10 +60,7 @@ function _is_native_reflect_construct() {
57
60
  return !!result;
58
61
  })();
59
62
  }
60
- /**
61
- * name: rok_people_column
62
- * description: 人员展示列(已废弃)。原用于在表格中展示人员相关信息,适合历史兼容场景,当前主要保留基础列属性以兼容旧配置。
63
- */ import { ColumnControlProperty } from '@byteluck-fe/model-driven-core';
63
+ import { ColumnControlProperty } from '@byteluck-fe/model-driven-core';
64
64
  import { DesignerPeopleColumnControl } from './designer';
65
65
  var PeopleColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
66
66
  "use strict";
@@ -68,11 +68,11 @@ var PeopleColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty)
68
68
  function PeopleColumnControlProperty(props) {
69
69
  _class_call_check(this, PeopleColumnControlProperty);
70
70
  var _this;
71
- var _ref;
72
71
  _this = _call_super(this, PeopleColumnControlProperty, [
73
72
  props
74
73
  ]);
75
- _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : DesignerPeopleColumnControl.controlName;
74
+ var _props_caption;
75
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerPeopleColumnControl.controlName;
76
76
  return _this;
77
77
  }
78
78
  return PeopleColumnControlProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_text_column
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_text_column
75
- * description: 长文本展示列。用于在表格中展示备注、说明、富文本摘要等较长内容,适合日志记录、业务说明等场景,支持保留富文本格式、多行省略和链接操作。
76
- */ import { ColumnControlProperty, LinkOperationOption, initLinkOperationRules, ColumnControlPropertyRules } from '@byteluck-fe/model-driven-core';
76
+ import { ColumnControlProperty, LinkOperationOption, initLinkOperationRules, ColumnControlPropertyRules } from '@byteluck-fe/model-driven-core';
77
77
  import { DesignerTextColumnControl } from './designer';
78
78
  var TextColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPropertyRules) {
79
79
  "use strict";
@@ -95,14 +95,17 @@ var TextColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
95
95
  function TextColumnControlProperty(props) {
96
96
  _class_call_check(this, TextColumnControlProperty);
97
97
  var _this;
98
- var _ref, _ref1, _ref2, _ref3;
99
98
  _this = _call_super(this, TextColumnControlProperty, [
100
99
  props
101
100
  ]), _define_property(_this, "escapeHTML", void 0), _define_property(_this, "showLinkOperation", void 0), _define_property(_this, "linkOperationOption", void 0), _define_property(_this, "lineEllipsis", void 0);
102
- _this.escapeHTML = (_ref = props === null || props === void 0 ? void 0 : props.escapeHTML) !== null && _ref !== void 0 ? _ref : false;
103
- _this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : DesignerTextColumnControl.controlName;
104
- _this.lineEllipsis = (_ref2 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref2 !== void 0 ? _ref2 : 1;
105
- _this.showLinkOperation = (_ref3 = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _ref3 !== void 0 ? _ref3 : false;
101
+ var _props_escapeHTML;
102
+ _this.escapeHTML = (_props_escapeHTML = props === null || props === void 0 ? void 0 : props.escapeHTML) !== null && _props_escapeHTML !== void 0 ? _props_escapeHTML : false;
103
+ var _props_caption;
104
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTextColumnControl.controlName;
105
+ var _props_lineEllipsis;
106
+ _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
107
+ var _props_showLinkOperation;
108
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
106
109
  _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
107
110
  return _this;
108
111
  }
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_timescope_column
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_timescope_column
75
- * description: 日期区间展示列。用于在表格中展示开始到结束的时间范围,适合排期、有效期、考勤区间等场景,支持多种日期格式、国际化显示和链接操作。
76
- */ import { ColumnControlProperty, LinkOperationOption, initLinkOperationRules, ColumnControlPropertyRules } from '@byteluck-fe/model-driven-core';
76
+ import { ColumnControlProperty, LinkOperationOption, initLinkOperationRules, ColumnControlPropertyRules } from '@byteluck-fe/model-driven-core';
77
77
  import { DateType } from '@byteluck-fe/model-driven-shared';
78
78
  import { DesignerTimescopeColumnControl } from './designer';
79
79
  var TimescopeColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPropertyRules) {
@@ -96,15 +96,18 @@ var TimescopeColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
96
96
  function TimescopeColumnControlProperty(props) {
97
97
  _class_call_check(this, TimescopeColumnControlProperty);
98
98
  var _this;
99
- var _ref, _ref1, _ref2, _ref3;
100
99
  _this = _call_super(this, TimescopeColumnControlProperty, [
101
100
  props
102
101
  ]), _define_property(_this, "dateType", void 0), _define_property(_this, "showLinkOperation", void 0), _define_property(_this, "linkOperationOption", void 0), _define_property(_this, "isInternational", void 0);
103
- _this.dateType = (_ref = props === null || props === void 0 ? void 0 : props.dateType) !== null && _ref !== void 0 ? _ref : DateType.DATE;
104
- _this.showLinkOperation = (_ref1 = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _ref1 !== void 0 ? _ref1 : false;
102
+ var _props_dateType;
103
+ _this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
104
+ var _props_showLinkOperation;
105
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
105
106
  _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
106
- _this.caption = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : DesignerTimescopeColumnControl.controlName;
107
- _this.isInternational = (_ref3 = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _ref3 !== void 0 ? _ref3 : false;
107
+ var _props_caption;
108
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTimescopeColumnControl.controlName;
109
+ var _props_isInternational;
110
+ _this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
108
111
  return _this;
109
112
  }
110
113
  return TimescopeColumnControlProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_timestamp_column
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_timestamp_column
75
- * description: 日期时间展示列。用于在表格中展示单个日期或时间点,适合创建时间、更新时间、业务发生时间等场景,支持多种日期格式、国际化显示和链接操作。
76
- */ import { ColumnControlProperty, LinkOperationOption, ColumnControlPropertyRules, initLinkOperationRules } from '@byteluck-fe/model-driven-core';
76
+ import { ColumnControlProperty, LinkOperationOption, ColumnControlPropertyRules, initLinkOperationRules } from '@byteluck-fe/model-driven-core';
77
77
  import { DateType } from '@byteluck-fe/model-driven-shared';
78
78
  import { DesignerTimestampColumnControl } from './designer';
79
79
  var TimestampColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPropertyRules) {
@@ -96,15 +96,18 @@ var TimestampColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
96
96
  function TimestampColumnControlProperty(props) {
97
97
  _class_call_check(this, TimestampColumnControlProperty);
98
98
  var _this;
99
- var _ref, _ref1, _ref2, _ref3;
100
99
  _this = _call_super(this, TimestampColumnControlProperty, [
101
100
  props
102
101
  ]), _define_property(_this, "dateType", void 0), _define_property(_this, "showLinkOperation", void 0), _define_property(_this, "linkOperationOption", void 0), _define_property(_this, "isInternational", void 0);
103
- _this.dateType = (_ref = props === null || props === void 0 ? void 0 : props.dateType) !== null && _ref !== void 0 ? _ref : DateType.DATE;
104
- _this.showLinkOperation = (_ref1 = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _ref1 !== void 0 ? _ref1 : false;
102
+ var _props_dateType;
103
+ _this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
104
+ var _props_showLinkOperation;
105
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
105
106
  _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
106
- _this.caption = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : DesignerTimestampColumnControl.controlName;
107
- _this.isInternational = (_ref3 = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _ref3 !== void 0 ? _ref3 : false;
107
+ var _props_caption;
108
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTimestampColumnControl.controlName;
109
+ var _props_isInternational;
110
+ _this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
108
111
  return _this;
109
112
  }
110
113
  return TimestampColumnControlProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_varchar_column
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_varchar_column
75
- * description: 短文本展示列。用于在表格中展示名称、编号、状态文本等简短内容,适合业务列表和台账场景,支持选项映射、数据源绑定、标签化展示、多行省略和链接操作。
76
- */ import { ColumnControlProperty, ColumnOptionAndDataSourcePropertyRules, DataSourceBind, LinkOperationOption, initLinkOperationRules, initOptions } from '@byteluck-fe/model-driven-core';
76
+ import { ColumnControlProperty, ColumnOptionAndDataSourcePropertyRules, DataSourceBind, LinkOperationOption, initLinkOperationRules, initOptions } from '@byteluck-fe/model-driven-core';
77
77
  import { DesignerVarcharColumnControl } from './designer';
78
78
  var VarcharColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDataSourcePropertyRules) {
79
79
  "use strict";
@@ -95,20 +95,25 @@ var VarcharColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty)
95
95
  function VarcharColumnControlProperty(props) {
96
96
  _class_call_check(this, VarcharColumnControlProperty);
97
97
  var _this;
98
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
99
98
  _this = _call_super(this, VarcharColumnControlProperty, [
100
99
  props
101
100
  ]), _define_property(_this, "optionConfig", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "showLinkOperation", void 0), _define_property(_this, "linkOperationOption", void 0), _define_property(_this, "options", void 0), _define_property(_this, "lineEllipsis", void 0), _define_property(_this, "dictionaryTagConfig", void 0);
102
- _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : DesignerVarcharColumnControl.controlName;
103
- _this.optionConfig = (_ref1 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref1 !== void 0 ? _ref1 : 'none';
101
+ var _props_caption;
102
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerVarcharColumnControl.controlName;
103
+ var _props_optionConfig;
104
+ _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'none';
104
105
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
105
- _this.options = initOptions((_ref2 = props === null || props === void 0 ? void 0 : props.options) !== null && _ref2 !== void 0 ? _ref2 : [
106
+ var _props_options;
107
+ _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
106
108
  {}
107
109
  ]);
108
- _this.showLinkOperation = (_ref3 = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _ref3 !== void 0 ? _ref3 : false;
110
+ var _props_showLinkOperation;
111
+ _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
109
112
  _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
110
- _this.lineEllipsis = (_ref4 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref4 !== void 0 ? _ref4 : 1;
111
- _this.dictionaryTagConfig = (_ref5 = props === null || props === void 0 ? void 0 : props.dictionaryTagConfig) !== null && _ref5 !== void 0 ? _ref5 : {
113
+ var _props_lineEllipsis;
114
+ _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
115
+ var _props_dictionaryTagConfig;
116
+ _this.dictionaryTagConfig = (_props_dictionaryTagConfig = props === null || props === void 0 ? void 0 : props.dictionaryTagConfig) !== null && _props_dictionaryTagConfig !== void 0 ? _props_dictionaryTagConfig : {
112
117
  isTag: false
113
118
  };
114
119
  return _this;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_address
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_address
75
- * description: 地址选择组件,用于采集省市区等层级地址信息。适合收货地址、办公地点等场景,支持按层级配置地址范围与默认定位方式。
76
- */ import { BaseControlProperty, BaseControlPropertyRuntimeRules, AddressValue } from '@byteluck-fe/model-driven-core';
76
+ import { BaseControlProperty, BaseControlPropertyRuntimeRules, AddressValue } from '@byteluck-fe/model-driven-core';
77
77
  import AddressControl from './designer';
78
78
  import { getLocaleText } from '@byteluck-fe/locale-message';
79
79
  var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
@@ -133,23 +133,28 @@ var AddressProperty = /*#__PURE__*/ function(BaseControlProperty) {
133
133
  function AddressProperty(props) {
134
134
  _class_call_check(this, AddressProperty);
135
135
  var _this;
136
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
137
136
  _this = _call_super(this, AddressProperty, [
138
137
  props
139
138
  ]), _define_property(_this, "defaultValueType", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "addressType", void 0), _define_property(_this, "countryScope", void 0);
140
- _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : AddressControl.controlName;
141
- _this.defaultValueType = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref1 !== void 0 ? _ref1 : 'default';
142
- _this.countryScope = (_ref2 = props === null || props === void 0 ? void 0 : props.countryScope) !== null && _ref2 !== void 0 ? _ref2 : [
139
+ var _props_caption;
140
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AddressControl.controlName;
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 : 'default';
143
+ var _props_countryScope;
144
+ _this.countryScope = (_props_countryScope = props === null || props === void 0 ? void 0 : props.countryScope) !== null && _props_countryScope !== void 0 ? _props_countryScope : [
143
145
  '100000'
144
146
  ];
145
- _this.addressType = (_ref3 = props === null || props === void 0 ? void 0 : props.addressType) !== null && _ref3 !== void 0 ? _ref3 : [
147
+ var _props_addressType;
148
+ _this.addressType = (_props_addressType = props === null || props === void 0 ? void 0 : props.addressType) !== null && _props_addressType !== void 0 ? _props_addressType : [
146
149
  'country',
147
150
  'province',
148
151
  'city',
149
152
  'district'
150
153
  ];
151
- _this.defaultValue = new AddressValue((_ref4 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref4 !== void 0 ? _ref4 : {});
152
- _this.placeholder = (_ref5 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref5 !== void 0 ? _ref5 : getLocaleText('CMD.pleaseChooseAddress', null, '请选择地址');
154
+ var _props_defaultValue;
155
+ _this.defaultValue = new AddressValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {});
156
+ var _props_placeholder;
157
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseChooseAddress', null, '请选择地址');
153
158
  return _this;
154
159
  }
155
160
  return AddressProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_amount
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
  }
@@ -109,10 +112,7 @@ function _is_native_reflect_construct() {
109
112
  return !!result;
110
113
  })();
111
114
  }
112
- /**
113
- * name: rok_amount
114
- * description: 金额输入组件,用于录入带币种的金额数据。适合费用报销、预算申请等场景,支持币种选择、数值范围、小数精度、千分位和大写金额展示。
115
- */ import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, AMOUNT_TYPE, AmountDataBind, AmountValue, DataSourceBind, DisplayBoListItem, initOptions } from '@byteluck-fe/model-driven-core';
115
+ import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, AMOUNT_TYPE, AmountDataBind, AmountValue, DataSourceBind, DisplayBoListItem, initOptions } from '@byteluck-fe/model-driven-core';
116
116
  import AmountControl from './designer';
117
117
  import { getLocaleText } from '@byteluck-fe/locale-message';
118
118
  var AmountPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
@@ -203,33 +203,44 @@ var AmountProperty = /*#__PURE__*/ function(BaseControlProperty) {
203
203
  function AmountProperty(props) {
204
204
  _class_call_check(this, AmountProperty);
205
205
  var _this;
206
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
207
206
  _this = _call_super(this, AmountProperty, [
208
207
  props
209
208
  ]), _define_property(_this, "rangeMin", void 0), _define_property(_this, "rangeMax", void 0), _define_property(_this, "showUpperCase", void 0), _define_property(_this, "submitSelectCurrency", void 0), _define_property(_this, "micrometer", void 0), _define_property(_this, "precision", void 0), _define_property(_this, "unitPosition", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "dataBind", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "options", void 0);
210
- _this.rangeMin = (_ref = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref !== void 0 ? _ref : '';
211
- _this.rangeMax = (_ref1 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref1 !== void 0 ? _ref1 : '';
212
- _this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'datasource';
213
- _this.micrometer = (_ref3 = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _ref3 !== void 0 ? _ref3 : false;
214
- _this.precision = (_ref4 = props === null || props === void 0 ? void 0 : props.precision) !== null && _ref4 !== void 0 ? _ref4 : 2;
209
+ var _props_rangeMin;
210
+ _this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
211
+ var _props_rangeMax;
212
+ _this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
213
+ var _props_optionConfig;
214
+ _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'datasource';
215
+ var _props_micrometer;
216
+ _this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
217
+ var _props_precision;
218
+ _this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 2;
215
219
  _this.dataBind = new AmountDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
216
- _this.datasourceBind = new DataSourceBind((_ref5 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref5 !== void 0 ? _ref5 : {
220
+ var _props_datasourceBind;
221
+ _this.datasourceBind = new DataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
217
222
  displayBoList: [
218
223
  new DisplayBoListItem({
219
224
  value: 'name'
220
225
  })
221
226
  ]
222
227
  });
223
- _this.defaultValue = new AmountValue((_ref6 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref6 !== void 0 ? _ref6 : {
228
+ var _props_defaultValue;
229
+ _this.defaultValue = new AmountValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {
224
230
  amount: '',
225
231
  currency: AMOUNT_TYPE.CNY
226
232
  });
227
- _this.unitPosition = (_ref7 = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _ref7 !== void 0 ? _ref7 : 'right';
233
+ var _props_unitPosition;
234
+ _this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
228
235
  _this.options = initOptions(props === null || props === void 0 ? void 0 : props.options);
229
- _this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : AmountControl.controlName;
230
- _this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : getLocaleText('CMD.pleaseEnter', null, '请输入');
231
- _this.submitSelectCurrency = (_ref10 = props === null || props === void 0 ? void 0 : props.submitSelectCurrency) !== null && _ref10 !== void 0 ? _ref10 : false;
232
- _this.showUpperCase = (_ref11 = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _ref11 !== void 0 ? _ref11 : false;
236
+ var _props_caption;
237
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
238
+ var _props_placeholder;
239
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
240
+ var _props_submitSelectCurrency;
241
+ _this.submitSelectCurrency = (_props_submitSelectCurrency = props === null || props === void 0 ? void 0 : props.submitSelectCurrency) !== null && _props_submitSelectCurrency !== void 0 ? _props_submitSelectCurrency : false;
242
+ var _props_showUpperCase;
243
+ _this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
233
244
  return _this;
234
245
  }
235
246
  return AmountProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_attachment
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_attachment
75
- * description: 附件上传组件,用于上传和管理通用文件。适合合同、证明材料、审批附件等场景,支持文件类型与大小限制、数量限制、水印、操作按钮和 AI 解释。
76
- */ import { getLocaleText } from '@byteluck-fe/locale-message';
76
+ import { getLocaleText } from '@byteluck-fe/locale-message';
77
77
  import AttachmentControl from './designer';
78
78
  import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
79
79
  var MB10 = 10485760;
@@ -128,31 +128,47 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
128
128
  function AttachmentProperty(props) {
129
129
  _class_call_check(this, AttachmentProperty);
130
130
  var _this;
131
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16;
132
131
  _this = _call_super(this, AttachmentProperty, [
133
132
  props
134
133
  ]), _define_property(_this, "storageType", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "showType", void 0), _define_property(_this, "resultShowType", void 0), _define_property(_this, "attachmentAccept", void 0), _define_property(_this, "maxLimit", void 0), _define_property(_this, "minLimit", void 0), _define_property(_this, "isShowWatermark", void 0), _define_property(_this, "watermarkFx", void 0), _define_property(_this, "maxSize", void 0), _define_property(_this, "operation", void 0), _define_property(_this, "aiExplanation", void 0), _define_property(_this, "aiExplanationLength", void 0), _define_property(_this, "customOperation", void 0), _define_property(_this, "describe", void 0);
135
- _this.defaultValue = (_ref = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref !== void 0 ? _ref : [];
136
- _this.showType = (_ref1 = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref1 !== void 0 ? _ref1 : 'default';
137
- _this.resultShowType = (_ref2 = props === null || props === void 0 ? void 0 : props.resultShowType) !== null && _ref2 !== void 0 ? _ref2 : 'simple';
138
- _this.attachmentAccept = (_ref3 = props === null || props === void 0 ? void 0 : props.attachmentAccept) !== null && _ref3 !== void 0 ? _ref3 : [];
139
- _this.maxLimit = (_ref4 = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _ref4 !== void 0 ? _ref4 : 10;
140
- _this.minLimit = (_ref5 = props === null || props === void 0 ? void 0 : props.minLimit) !== null && _ref5 !== void 0 ? _ref5 : 0;
141
- _this.maxSize = (_ref6 = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _ref6 !== void 0 ? _ref6 : MB100;
142
- _this.caption = (_ref7 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref7 !== void 0 ? _ref7 : AttachmentControl.controlName;
143
- _this.placeholder = (_ref8 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref8 !== void 0 ? _ref8 : getLocaleText('CMD.uploadFile', null, '上传附件');
144
- _this.isShowWatermark = (_ref9 = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _ref9 !== void 0 ? _ref9 : false;
145
- _this.watermarkFx = (_ref10 = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _ref10 !== void 0 ? _ref10 : {};
146
- _this.operation = (_ref11 = props === null || props === void 0 ? void 0 : props.operation) !== null && _ref11 !== void 0 ? _ref11 : [
134
+ var _props_defaultValue;
135
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
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_resultShowType;
139
+ _this.resultShowType = (_props_resultShowType = props === null || props === void 0 ? void 0 : props.resultShowType) !== null && _props_resultShowType !== void 0 ? _props_resultShowType : 'simple';
140
+ var _props_attachmentAccept;
141
+ _this.attachmentAccept = (_props_attachmentAccept = props === null || props === void 0 ? void 0 : props.attachmentAccept) !== null && _props_attachmentAccept !== void 0 ? _props_attachmentAccept : [];
142
+ var _props_maxLimit;
143
+ _this.maxLimit = (_props_maxLimit = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _props_maxLimit !== void 0 ? _props_maxLimit : 10;
144
+ var _props_minLimit;
145
+ _this.minLimit = (_props_minLimit = props === null || props === void 0 ? void 0 : props.minLimit) !== null && _props_minLimit !== void 0 ? _props_minLimit : 0;
146
+ var _props_maxSize;
147
+ _this.maxSize = (_props_maxSize = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _props_maxSize !== void 0 ? _props_maxSize : MB100;
148
+ var _props_caption;
149
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AttachmentControl.controlName;
150
+ var _props_placeholder;
151
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.uploadFile', null, '上传附件');
152
+ var _props_isShowWatermark;
153
+ _this.isShowWatermark = (_props_isShowWatermark = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _props_isShowWatermark !== void 0 ? _props_isShowWatermark : false;
154
+ var _props_watermarkFx;
155
+ _this.watermarkFx = (_props_watermarkFx = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _props_watermarkFx !== void 0 ? _props_watermarkFx : {};
156
+ var _props_operation;
157
+ _this.operation = (_props_operation = props === null || props === void 0 ? void 0 : props.operation) !== null && _props_operation !== void 0 ? _props_operation : [
147
158
  'info',
148
159
  'preview',
149
160
  'download'
150
161
  ];
151
- _this.aiExplanation = (_ref12 = props === null || props === void 0 ? void 0 : props.aiExplanation) !== null && _ref12 !== void 0 ? _ref12 : false;
152
- _this.aiExplanationLength = (_ref13 = props === null || props === void 0 ? void 0 : props.aiExplanationLength) !== null && _ref13 !== void 0 ? _ref13 : 500;
153
- _this.storageType = (_ref14 = props === null || props === void 0 ? void 0 : props.storageType) !== null && _ref14 !== void 0 ? _ref14 : 'local';
154
- _this.customOperation = (_ref15 = props === null || props === void 0 ? void 0 : props.customOperation) !== null && _ref15 !== void 0 ? _ref15 : [];
155
- _this.describe = (_ref16 = props === null || props === void 0 ? void 0 : props.describe) !== null && _ref16 !== void 0 ? _ref16 : '';
162
+ var _props_aiExplanation;
163
+ _this.aiExplanation = (_props_aiExplanation = props === null || props === void 0 ? void 0 : props.aiExplanation) !== null && _props_aiExplanation !== void 0 ? _props_aiExplanation : false;
164
+ var _props_aiExplanationLength;
165
+ _this.aiExplanationLength = (_props_aiExplanationLength = props === null || props === void 0 ? void 0 : props.aiExplanationLength) !== null && _props_aiExplanationLength !== void 0 ? _props_aiExplanationLength : 500;
166
+ var _props_storageType;
167
+ _this.storageType = (_props_storageType = props === null || props === void 0 ? void 0 : props.storageType) !== null && _props_storageType !== void 0 ? _props_storageType : 'local';
168
+ var _props_customOperation;
169
+ _this.customOperation = (_props_customOperation = props === null || props === void 0 ? void 0 : props.customOperation) !== null && _props_customOperation !== void 0 ? _props_customOperation : [];
170
+ var _props_describe;
171
+ _this.describe = (_props_describe = props === null || props === void 0 ? void 0 : props.describe) !== null && _props_describe !== void 0 ? _props_describe : '';
156
172
  return _this;
157
173
  }
158
174
  return AttachmentProperty;