@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
@@ -109,7 +109,7 @@ var BarChartControl = /*#__PURE__*/ function(DesignerControl) {
109
109
  {
110
110
  key: "controlIcon",
111
111
  get: function get() {
112
- return 'iconbiaodan_tubiao';
112
+ return 'iconBarchart';
113
113
  }
114
114
  },
115
115
  {
@@ -165,44 +165,44 @@ _define_property(BarChartControl, "setting", [
165
165
  key: 'common-select',
166
166
  visible: true,
167
167
  name: 'template',
168
- label: '模版',
168
+ label: getLocaleText('CMD.d6d01777541754654'),
169
169
  default: 'default',
170
170
  options: [
171
171
  {
172
172
  value: 'bar-basic',
173
- label: '基础柱状图'
173
+ label: getLocaleText('CMD.50c71777541662435')
174
174
  },
175
175
  {
176
176
  value: 'bar-background',
177
- label: '带背景色的柱状图'
177
+ label: getLocaleText('CMD.29961777541608579')
178
178
  },
179
179
  {
180
180
  value: 'bar-waterfall',
181
- label: '瀑布图'
181
+ label: getLocaleText('CMD.0de61777541732843')
182
182
  },
183
183
  {
184
184
  value: 'bar-alternating',
185
- label: '交错正负轴标签'
185
+ label: getLocaleText('CMD.15241777541626614')
186
186
  },
187
187
  {
188
188
  value: 'bar-multi-y',
189
- label: '多 Y 轴示例'
189
+ label: getLocaleText('CMD.12c91777541629189')
190
190
  },
191
191
  {
192
192
  value: 'bar-stacked',
193
- label: '堆叠柱状图'
193
+ label: getLocaleText('CMD.30e11777541664430')
194
194
  },
195
195
  {
196
196
  value: 'bar-stacked-rounded',
197
- label: '带圆角的堆积柱状图'
197
+ label: getLocaleText('CMD.44721777541599841')
198
198
  },
199
199
  {
200
200
  value: 'bar-stacked-horizontal',
201
- label: '堆叠条形图'
201
+ label: getLocaleText('CMD.6f651777541666780')
202
202
  },
203
203
  {
204
204
  value: 'bar-positive-negative',
205
- label: '正负条形图'
205
+ label: getLocaleText('CMD.95b31777541669068')
206
206
  }
207
207
  ]
208
208
  },
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_bar_chart
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_bar_chart
75
- * description: 柱状图组件。用于展示静态或动态数据图表,支持模板选择和字段映射,适合统计分析与看板展示场景。
76
- */ import BarChartControl from './designer';
76
+ import BarChartControl from './designer';
77
77
  import { MultistageFillingItem, Property, PropertyRules, DataSourceBind } from '@byteluck-fe/model-driven-core';
78
78
  import { FONT_WEIGHT } from '../../framework';
79
79
  import { getLocaleText } from '@byteluck-fe/locale-message';
@@ -93,39 +93,90 @@ var BarChartPropertyRules = /*#__PURE__*/ function(PropertyRules) {
93
93
  }
94
94
  return BarChartPropertyRules;
95
95
  }(PropertyRules);
96
+ var defaultBasicBarOption = {
97
+ grid: {
98
+ left: '3%',
99
+ right: '4%',
100
+ bottom: '3%',
101
+ containLabel: true
102
+ },
103
+ xAxis: {
104
+ type: 'category',
105
+ data: [
106
+ 'Mon',
107
+ 'Tue',
108
+ 'Wed',
109
+ 'Thu',
110
+ 'Fri',
111
+ 'Sat',
112
+ 'Sun'
113
+ ]
114
+ },
115
+ yAxis: {
116
+ type: 'value'
117
+ },
118
+ series: [
119
+ {
120
+ type: 'bar',
121
+ data: [
122
+ 120,
123
+ 200,
124
+ 150,
125
+ 80,
126
+ 70,
127
+ 110,
128
+ 130
129
+ ]
130
+ }
131
+ ]
132
+ };
96
133
  var BarChartProperty = /*#__PURE__*/ function(Property) {
97
134
  "use strict";
98
135
  _inherits(BarChartProperty, Property);
99
136
  function BarChartProperty(props) {
100
137
  _class_call_check(this, BarChartProperty);
101
138
  var _this;
102
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14;
103
139
  var _props_multistageFilling;
104
140
  _this = _call_super(this, BarChartProperty, [
105
141
  props
106
142
  ]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "labelPosition", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "captionSize", void 0), _define_property(_this, "captionColor", void 0), _define_property(_this, "isCaptionItalic", void 0), _define_property(_this, "captionFontWeight", void 0), _define_property(_this, "isHide", void 0), _define_property(_this, "template", void 0), _define_property(_this, "optionJson", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "xField", void 0), _define_property(_this, "yField", void 0), _define_property(_this, "seriesConfig", void 0);
107
- _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : BarChartControl.controlName;
108
- _this.isHideCaption = (_ref1 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref1 !== void 0 ? _ref1 : false;
109
- _this.isShowCaptionTip = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref2 !== void 0 ? _ref2 : false;
110
- _this.labelPosition = (_ref3 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _ref3 !== void 0 ? _ref3 : 'top';
111
- _this.captionTip = (_ref4 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref4 !== void 0 ? _ref4 : '';
143
+ var _props_caption;
144
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : BarChartControl.controlName;
145
+ var _props_isHideCaption;
146
+ _this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
147
+ var _props_isShowCaptionTip;
148
+ _this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
149
+ var _props_labelPosition;
150
+ _this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'top';
151
+ var _props_captionTip;
152
+ _this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : '';
112
153
  _this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
113
154
  _this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
114
155
  _this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
115
- _this.captionFontWeight = (_ref5 = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _ref5 !== void 0 ? _ref5 : FONT_WEIGHT.NORMAL;
116
- _this.isHide = (_ref6 = props === null || props === void 0 ? void 0 : props.isHide) !== null && _ref6 !== void 0 ? _ref6 : false;
117
- _this.template = (_ref7 = props === null || props === void 0 ? void 0 : props.template) !== null && _ref7 !== void 0 ? _ref7 : 'bar-basic';
118
- _this.optionJson = (_ref8 = props === null || props === void 0 ? void 0 : props.optionJson) !== null && _ref8 !== void 0 ? _ref8 : '{}';
156
+ var _props_captionFontWeight;
157
+ _this.captionFontWeight = (_props_captionFontWeight = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _props_captionFontWeight !== void 0 ? _props_captionFontWeight : FONT_WEIGHT.NORMAL;
158
+ var _props_isHide;
159
+ _this.isHide = (_props_isHide = props === null || props === void 0 ? void 0 : props.isHide) !== null && _props_isHide !== void 0 ? _props_isHide : false;
160
+ var _props_template;
161
+ _this.template = (_props_template = props === null || props === void 0 ? void 0 : props.template) !== null && _props_template !== void 0 ? _props_template : 'bar-basic';
162
+ var _props_optionJson;
163
+ _this.optionJson = (_props_optionJson = props === null || props === void 0 ? void 0 : props.optionJson) !== null && _props_optionJson !== void 0 ? _props_optionJson : JSON.stringify(defaultBasicBarOption, null, 2);
119
164
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
120
165
  _this.filterItemDatasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind);
121
- _this.multistageFilling = (_ref9 = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
166
+ var _props_multistageFilling_map;
167
+ _this.multistageFilling = (_props_multistageFilling_map = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
122
168
  return new MultistageFillingItem(item);
123
- })) !== null && _ref9 !== void 0 ? _ref9 : [];
124
- _this.defaultValue = (_ref10 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref10 !== void 0 ? _ref10 : [];
125
- _this.openMultistageFilling = (_ref11 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref11 !== void 0 ? _ref11 : false;
126
- _this.xField = (_ref12 = props === null || props === void 0 ? void 0 : props.xField) !== null && _ref12 !== void 0 ? _ref12 : '';
127
- _this.yField = (_ref13 = props === null || props === void 0 ? void 0 : props.yField) !== null && _ref13 !== void 0 ? _ref13 : '';
128
- _this.seriesConfig = (_ref14 = props === null || props === void 0 ? void 0 : props.seriesConfig) !== null && _ref14 !== void 0 ? _ref14 : [];
169
+ })) !== null && _props_multistageFilling_map !== void 0 ? _props_multistageFilling_map : [];
170
+ var _props_defaultValue;
171
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
172
+ var _props_openMultistageFilling;
173
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
174
+ var _props_xField;
175
+ _this.xField = (_props_xField = props === null || props === void 0 ? void 0 : props.xField) !== null && _props_xField !== void 0 ? _props_xField : '';
176
+ var _props_yField;
177
+ _this.yField = (_props_yField = props === null || props === void 0 ? void 0 : props.yField) !== null && _props_yField !== void 0 ? _props_yField : '';
178
+ var _props_seriesConfig;
179
+ _this.seriesConfig = (_props_seriesConfig = props === null || props === void 0 ? void 0 : props.seriesConfig) !== null && _props_seriesConfig !== void 0 ? _props_seriesConfig : [];
129
180
  return _this;
130
181
  }
131
182
  return BarChartProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_batch_delete_button
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_batch_delete_button
75
- * description: 批量删除按钮组件。用于列表场景对多条选中数据执行批量删除操作。支持按钮内容、展示形式、颜色状态、图标、命令类型和加载态配置,适合高频批处理操作入口。
76
- */ import { Property } from '@byteluck-fe/model-driven-core';
76
+ import { Property } from '@byteluck-fe/model-driven-core';
77
77
  import BatchDeleteButtonControl from './designer';
78
78
  var BatchDeleteButtonProperty = /*#__PURE__*/ function(Property) {
79
79
  "use strict";
@@ -81,21 +81,29 @@ var BatchDeleteButtonProperty = /*#__PURE__*/ function(Property) {
81
81
  function BatchDeleteButtonProperty(props) {
82
82
  _class_call_check(this, BatchDeleteButtonProperty);
83
83
  var _this;
84
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
85
84
  _this = _call_super(this, BatchDeleteButtonProperty, [
86
85
  props
87
86
  ]), _define_property(_this, "content", void 0), // public buttonType: 'primary' | 'secondary' | 'default' | 'danger'
88
87
  _define_property(_this, "buttonType", void 0), _define_property(_this, "showType", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "defaultState", void 0), _define_property(_this, "command", void 0), _define_property(_this, "isLoading", void 0);
89
- _this.content = (_ref = props === null || props === void 0 ? void 0 : props.content) !== null && _ref !== void 0 ? _ref : BatchDeleteButtonControl.controlName;
90
- _this.icon = (_ref1 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref1 !== void 0 ? _ref1 : BatchDeleteButtonControl.controlIcon;
91
- _this.buttonType = (_ref2 = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _ref2 !== void 0 ? _ref2 : 'primary';
92
- _this.showType = (_ref3 = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref3 !== void 0 ? _ref3 : 'iconText';
93
- _this.color = (_ref4 = props === null || props === void 0 ? void 0 : props.color) !== null && _ref4 !== void 0 ? _ref4 : 'danger';
94
- _this.isHide = (_ref5 = props === null || props === void 0 ? void 0 : props.isHide) !== null && _ref5 !== void 0 ? _ref5 : false;
88
+ var _props_content;
89
+ _this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : BatchDeleteButtonControl.controlName;
90
+ var _props_icon;
91
+ _this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : BatchDeleteButtonControl.controlIcon;
92
+ var _props_buttonType;
93
+ _this.buttonType = (_props_buttonType = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _props_buttonType !== void 0 ? _props_buttonType : 'primary';
94
+ var _props_showType;
95
+ _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'iconText';
96
+ var _props_color;
97
+ _this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : 'danger';
98
+ var _props_isHide;
99
+ _this.isHide = (_props_isHide = props === null || props === void 0 ? void 0 : props.isHide) !== null && _props_isHide !== void 0 ? _props_isHide : false;
100
+ var _props_defaultState;
95
101
  // @余石伟 按钮需要有默认icon
96
- _this.defaultState = (_ref6 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _ref6 !== void 0 ? _ref6 : 'default';
97
- _this.command = (_ref7 = props === null || props === void 0 ? void 0 : props.command) !== null && _ref7 !== void 0 ? _ref7 : 'custom';
98
- _this.isLoading = (_ref8 = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _ref8 !== void 0 ? _ref8 : false;
102
+ _this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : 'default';
103
+ var _props_command;
104
+ _this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : 'custom';
105
+ var _props_isLoading;
106
+ _this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
99
107
  return _this;
100
108
  }
101
109
  return BatchDeleteButtonProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_batch_print_list_button
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_batch_print_list_button
75
- * description: 批量打印列表按钮组件。用于列表场景对选中数据批量发起打印。支持绑定多个打印模板、自动选择模板,并继承按钮样式、图标和命令配置,适合批量单据输出场景。
76
- */ import { PropertyRules } from '@byteluck-fe/model-driven-core';
76
+ import { PropertyRules } from '@byteluck-fe/model-driven-core';
77
77
  import { ButtonProperty } from '../Button';
78
78
  import BatchPrintListButtonControl from './designer';
79
79
  import { PrintTemplate } from '../../framework';
@@ -100,17 +100,20 @@ var BatchPrintListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
100
100
  function BatchPrintListButtonProperty(props) {
101
101
  _class_call_check(this, BatchPrintListButtonProperty);
102
102
  var _this;
103
- var _ref, _ref1, _ref2, _ref3;
104
103
  var _props_printTemplates;
105
104
  _this = _call_super(this, BatchPrintListButtonProperty, [
106
105
  props
107
106
  ]), _define_property(_this, "printTemplates", void 0), _define_property(_this, "autoSelectTemplate", void 0);
108
- _this.icon = (_ref = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref !== void 0 ? _ref : BatchPrintListButtonControl.controlIcon;
109
- _this.content = (_ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && _ref1 !== void 0 ? _ref1 : BatchPrintListButtonControl.controlName;
110
- _this.printTemplates = (_ref2 = props === null || props === void 0 ? void 0 : (_props_printTemplates = props.printTemplates) === null || _props_printTemplates === void 0 ? void 0 : _props_printTemplates.map(function(item) {
107
+ var _props_icon;
108
+ _this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : BatchPrintListButtonControl.controlIcon;
109
+ var _props_content;
110
+ _this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : BatchPrintListButtonControl.controlName;
111
+ var _props_printTemplates_map;
112
+ _this.printTemplates = (_props_printTemplates_map = props === null || props === void 0 ? void 0 : (_props_printTemplates = props.printTemplates) === null || _props_printTemplates === void 0 ? void 0 : _props_printTemplates.map(function(item) {
111
113
  return new PrintTemplate(item);
112
- })) !== null && _ref2 !== void 0 ? _ref2 : [];
113
- _this.autoSelectTemplate = (_ref3 = props === null || props === void 0 ? void 0 : props.autoSelectTemplate) !== null && _ref3 !== void 0 ? _ref3 : false;
114
+ })) !== null && _props_printTemplates_map !== void 0 ? _props_printTemplates_map : [];
115
+ var _props_autoSelectTemplate;
116
+ _this.autoSelectTemplate = (_props_autoSelectTemplate = props === null || props === void 0 ? void 0 : props.autoSelectTemplate) !== null && _props_autoSelectTemplate !== void 0 ? _props_autoSelectTemplate : false;
114
117
  return _this;
115
118
  }
116
119
  return BatchPrintListButtonProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_batch_print_record_list_button
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_batch_print_record_list_button
62
- * description: 批量打印记录列表按钮组件。用于记录列表场景快速发起批量打印操作。支持沿用通用按钮的文案、样式、图标、颜色和命令配置,适合标准化批量打印入口。
63
- */ import { ButtonProperty } from '../Button';
63
+ import { ButtonProperty } from '../Button';
64
64
  import BatchPrintRecordListButton from './designer';
65
65
  var BatchPrintRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
66
66
  "use strict";
@@ -68,12 +68,13 @@ var BatchPrintRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty)
68
68
  function BatchPrintRecordListButtonProperty(props) {
69
69
  _class_call_check(this, BatchPrintRecordListButtonProperty);
70
70
  var _this;
71
- var _ref, _ref1;
72
71
  _this = _call_super(this, BatchPrintRecordListButtonProperty, [
73
72
  props
74
73
  ]);
75
- _this.content = (_ref = props === null || props === void 0 ? void 0 : props.content) !== null && _ref !== void 0 ? _ref : BatchPrintRecordListButton.controlName;
76
- _this.icon = (_ref1 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref1 !== void 0 ? _ref1 : BatchPrintRecordListButton.controlIcon;
74
+ var _props_content;
75
+ _this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : BatchPrintRecordListButton.controlName;
76
+ var _props_icon;
77
+ _this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : BatchPrintRecordListButton.controlIcon;
77
78
  return _this;
78
79
  }
79
80
  return BatchPrintRecordListButtonProperty;
@@ -106,16 +106,21 @@ var BatchSubmissionListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
106
106
  function BatchSubmissionListButtonProperty(props) {
107
107
  _class_call_check(this, BatchSubmissionListButtonProperty);
108
108
  var _this;
109
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
110
109
  _this = _call_super(this, BatchSubmissionListButtonProperty, [
111
110
  props
112
111
  ]), _define_property(_this, "processKey", void 0), _define_property(_this, "initiatorMode", void 0), _define_property(_this, "fieldCode", void 0), _define_property(_this, "employeeId", void 0);
113
- _this.icon = (_ref = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref !== void 0 ? _ref : BatchSubmissionListButtonControl.controlIcon;
114
- _this.content = (_ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && _ref1 !== void 0 ? _ref1 : BatchSubmissionListButtonControl.controlName;
115
- _this.initiatorMode = (_ref2 = props === null || props === void 0 ? void 0 : props.initiatorMode) !== null && _ref2 !== void 0 ? _ref2 : 'currentInitiator';
116
- _this.processKey = (_ref3 = props === null || props === void 0 ? void 0 : props.processKey) !== null && _ref3 !== void 0 ? _ref3 : '';
117
- _this.fieldCode = (_ref4 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _ref4 !== void 0 ? _ref4 : '';
118
- _this.employeeId = (_ref5 = props === null || props === void 0 ? void 0 : props.employeeId) !== null && _ref5 !== void 0 ? _ref5 : '';
112
+ var _props_icon;
113
+ _this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : BatchSubmissionListButtonControl.controlIcon;
114
+ var _props_content;
115
+ _this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : BatchSubmissionListButtonControl.controlName;
116
+ var _props_initiatorMode;
117
+ _this.initiatorMode = (_props_initiatorMode = props === null || props === void 0 ? void 0 : props.initiatorMode) !== null && _props_initiatorMode !== void 0 ? _props_initiatorMode : 'currentInitiator';
118
+ var _props_processKey;
119
+ _this.processKey = (_props_processKey = props === null || props === void 0 ? void 0 : props.processKey) !== null && _props_processKey !== void 0 ? _props_processKey : '';
120
+ var _props_fieldCode;
121
+ _this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : '';
122
+ var _props_employeeId;
123
+ _this.employeeId = (_props_employeeId = props === null || props === void 0 ? void 0 : props.employeeId) !== null && _props_employeeId !== void 0 ? _props_employeeId : '';
119
124
  return _this;
120
125
  }
121
126
  return BatchSubmissionListButtonProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_button
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_button
75
- * description: 通用按钮组件。用于表单页、列表页等场景触发新建、编辑、查看、删除或自定义动作。支持按钮文案、样式类型、图标展示、颜色状态、命令类型和加载态配置。
76
- */ import { getLocaleText } from '@byteluck-fe/locale-message';
76
+ import { getLocaleText } from '@byteluck-fe/locale-message';
77
77
  import { Property, OptObject, ActionObject } from '@byteluck-fe/model-driven-core';
78
78
  var ButtonProperty = /*#__PURE__*/ function(Property) {
79
79
  "use strict";
@@ -81,22 +81,32 @@ var ButtonProperty = /*#__PURE__*/ function(Property) {
81
81
  function ButtonProperty(props) {
82
82
  _class_call_check(this, ButtonProperty);
83
83
  var _this;
84
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
85
84
  _this = _call_super(this, ButtonProperty, [
86
85
  props
87
86
  ]), _define_property(_this, "content", void 0), _define_property(_this, "buttonType", void 0), _define_property(_this, "showType", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "defaultState", void 0), _define_property(_this, "command", void 0), _define_property(_this, "isLoading", void 0), _define_property(_this, "optObj", void 0), _define_property(_this, "actionObj", void 0), _define_property(_this, "optButtonType", void 0);
88
- _this.content = (_ref = props === null || props === void 0 ? void 0 : props.content) !== null && _ref !== void 0 ? _ref : getLocaleText('CMD.button', null, '按钮');
89
- _this.buttonType = (_ref1 = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _ref1 !== void 0 ? _ref1 : 'primary';
90
- _this.showType = (_ref2 = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref2 !== void 0 ? _ref2 : 'text';
91
- _this.color = (_ref3 = props === null || props === void 0 ? void 0 : props.color) !== null && _ref3 !== void 0 ? _ref3 : 'primary';
87
+ var _props_content;
88
+ _this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : getLocaleText('CMD.button', null, '按钮');
89
+ var _props_buttonType;
90
+ _this.buttonType = (_props_buttonType = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _props_buttonType !== void 0 ? _props_buttonType : 'primary';
91
+ var _props_showType;
92
+ _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'text';
93
+ var _props_color;
94
+ _this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : 'primary';
95
+ var _props_icon;
92
96
  // @余石伟 按钮需要有默认icon
93
- _this.icon = (_ref4 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref4 !== void 0 ? _ref4 : 'iconfenlei2';
94
- _this.defaultState = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _ref5 !== void 0 ? _ref5 : 'default';
95
- _this.command = (_ref6 = props === null || props === void 0 ? void 0 : props.command) !== null && _ref6 !== void 0 ? _ref6 : 'custom';
96
- _this.isLoading = (_ref7 = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _ref7 !== void 0 ? _ref7 : false;
97
- _this.optObj = new OptObject((_ref8 = props === null || props === void 0 ? void 0 : props.optObj) !== null && _ref8 !== void 0 ? _ref8 : {});
98
- _this.actionObj = new ActionObject((_ref9 = props === null || props === void 0 ? void 0 : props.actionObj) !== null && _ref9 !== void 0 ? _ref9 : {});
99
- _this.optButtonType = (_ref10 = props === null || props === void 0 ? void 0 : props.optButtonType) !== null && _ref10 !== void 0 ? _ref10 : 'button';
97
+ _this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : 'iconfenlei2';
98
+ var _props_defaultState;
99
+ _this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : 'default';
100
+ var _props_command;
101
+ _this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : 'custom';
102
+ var _props_isLoading;
103
+ _this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
104
+ var _props_optObj;
105
+ _this.optObj = new OptObject((_props_optObj = props === null || props === void 0 ? void 0 : props.optObj) !== null && _props_optObj !== void 0 ? _props_optObj : {});
106
+ var _props_actionObj;
107
+ _this.actionObj = new ActionObject((_props_actionObj = props === null || props === void 0 ? void 0 : props.actionObj) !== null && _props_actionObj !== void 0 ? _props_actionObj : {});
108
+ var _props_optButtonType;
109
+ _this.optButtonType = (_props_optButtonType = props === null || props === void 0 ? void 0 : props.optButtonType) !== null && _props_optButtonType !== void 0 ? _props_optButtonType : 'button';
100
110
  return _this;
101
111
  }
102
112
  return ButtonProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_comment
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,21 +73,18 @@ function _is_native_reflect_construct() {
70
73
  return !!result;
71
74
  })();
72
75
  }
73
- /**
74
- * name: rok_comment
75
- * description: 评论组件。用于展示说明内容或结构化评论信息。支持配置评论内容以及多组评论字段、对齐方式、标题字号颜色和斜体样式,适合审批意见、备注说明等场景。
76
- */ import { Property } from '@byteluck-fe/model-driven-core';
76
+ import { Property } from '@byteluck-fe/model-driven-core';
77
77
  var CommentProperty = /*#__PURE__*/ function(Property) {
78
78
  "use strict";
79
79
  _inherits(CommentProperty, Property);
80
80
  function CommentProperty(props) {
81
81
  _class_call_check(this, CommentProperty);
82
82
  var _this;
83
- var _ref;
84
83
  _this = _call_super(this, CommentProperty, [
85
84
  props
86
85
  ]), _define_property(_this, "content", void 0), _define_property(_this, "commentOptions", void 0);
87
- _this.content = (_ref = props === null || props === void 0 ? void 0 : props.content) !== null && _ref !== void 0 ? _ref : '';
86
+ var _props_content;
87
+ _this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : '';
88
88
  _this.commentOptions = (props === null || props === void 0 ? void 0 : props.commentOptions) || [];
89
89
  return _this;
90
90
  }
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_create_form_list_button
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_create_form_list_button
75
- * description: 新建表单按钮组件。用于从列表或页面中打开指定表单发起新建。支持绑定目标表单和弹窗、新窗口、对话框、页签等打开方式,并继承按钮样式与图标能力。
76
- */ import { ButtonProperty } from '../Button';
76
+ import { ButtonProperty } from '../Button';
77
77
  import CreateFormListButtonControl from './designer';
78
78
  import { PropertyRules } from '@byteluck-fe/model-driven-core';
79
79
  import { getLocaleText } from '@byteluck-fe/locale-message';
@@ -100,14 +100,17 @@ var CreateFormListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
100
100
  function CreateFormListButtonProperty(props) {
101
101
  _class_call_check(this, CreateFormListButtonProperty);
102
102
  var _this;
103
- var _ref, _ref1, _ref2, _ref3;
104
103
  _this = _call_super(this, CreateFormListButtonProperty, [
105
104
  props
106
105
  ]), _define_property(_this, "formKey", void 0), _define_property(_this, "openType", void 0);
107
- _this.icon = (_ref = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref !== void 0 ? _ref : CreateFormListButtonControl.controlIcon;
108
- _this.content = (_ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && _ref1 !== void 0 ? _ref1 : CreateFormListButtonControl.controlName;
109
- _this.formKey = (_ref2 = props === null || props === void 0 ? void 0 : props.formKey) !== null && _ref2 !== void 0 ? _ref2 : '';
110
- _this.openType = (_ref3 = props === null || props === void 0 ? void 0 : props.openType) !== null && _ref3 !== void 0 ? _ref3 : 'modal';
106
+ var _props_icon;
107
+ _this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : CreateFormListButtonControl.controlIcon;
108
+ var _props_content;
109
+ _this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : CreateFormListButtonControl.controlName;
110
+ var _props_formKey;
111
+ _this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : '';
112
+ var _props_openType;
113
+ _this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : 'modal';
111
114
  return _this;
112
115
  }
113
116
  return CreateFormListButtonProperty;
@@ -1,4 +1,7 @@
1
- function _assert_this_initialized(self) {
1
+ /**
2
+ * name: rok_dashboard
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_dashboard
75
- * description: 仪表盘组件。用于在页面中嵌入并展示指定仪表盘内容。支持标题显示与布局、气泡提示、报表参数透出等配置,适合数据看板、统计分析和运营监控场景。
76
- */ import { getLocaleText } from '@byteluck-fe/locale-message';
76
+ import { getLocaleText } from '@byteluck-fe/locale-message';
77
77
  import { Property, PropertyRules } from '@byteluck-fe/model-driven-core';
78
78
  var DashboardPropertyRules = /*#__PURE__*/ function(PropertyRules) {
79
79
  "use strict";
@@ -122,18 +122,25 @@ var DashboardProperty = /*#__PURE__*/ function(Property) {
122
122
  function DashboardProperty(props) {
123
123
  _class_call_check(this, DashboardProperty);
124
124
  var _this;
125
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
126
125
  _this = _call_super(this, DashboardProperty, [
127
126
  props
128
127
  ]), _define_property(_this, "dashboardKey", void 0), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "labelPosition", void 0), _define_property(_this, "isShowReportParams", void 0), _define_property(_this, "reportParams", void 0);
129
- _this.dashboardKey = (_ref = props === null || props === void 0 ? void 0 : props.dashboardKey) !== null && _ref !== void 0 ? _ref : '';
130
- _this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : '';
131
- _this.isHideCaption = (_ref2 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref2 !== void 0 ? _ref2 : false;
132
- _this.isShowCaptionTip = (_ref3 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref3 !== void 0 ? _ref3 : false;
133
- _this.captionTip = (_ref4 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref4 !== void 0 ? _ref4 : '';
134
- _this.labelPosition = (_ref5 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _ref5 !== void 0 ? _ref5 : 'top';
135
- _this.isShowReportParams = (_ref6 = props === null || props === void 0 ? void 0 : props.isShowReportParams) !== null && _ref6 !== void 0 ? _ref6 : false;
136
- _this.reportParams = (_ref7 = props === null || props === void 0 ? void 0 : props.reportParams) !== null && _ref7 !== void 0 ? _ref7 : [];
128
+ var _props_dashboardKey;
129
+ _this.dashboardKey = (_props_dashboardKey = props === null || props === void 0 ? void 0 : props.dashboardKey) !== null && _props_dashboardKey !== void 0 ? _props_dashboardKey : '';
130
+ var _props_caption;
131
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
132
+ var _props_isHideCaption;
133
+ _this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
134
+ var _props_isShowCaptionTip;
135
+ _this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
136
+ var _props_captionTip;
137
+ _this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : '';
138
+ var _props_labelPosition;
139
+ _this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'top';
140
+ var _props_isShowReportParams;
141
+ _this.isShowReportParams = (_props_isShowReportParams = props === null || props === void 0 ? void 0 : props.isShowReportParams) !== null && _props_isShowReportParams !== void 0 ? _props_isShowReportParams : false;
142
+ var _props_reportParams;
143
+ _this.reportParams = (_props_reportParams = props === null || props === void 0 ? void 0 : props.reportParams) !== null && _props_reportParams !== void 0 ? _props_reportParams : [];
137
144
  return _this;
138
145
  }
139
146
  return DashboardProperty;