@byteluck-fe/model-driven-controls 6.2.0-beta.13 → 6.2.0-beta.15

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 (111) hide show
  1. package/dist/esm/baseControls/BatchDeleteButton/property.js +18 -10
  2. package/dist/esm/baseControls/BatchPrintListButton/property.js +9 -6
  3. package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +4 -3
  4. package/dist/esm/baseControls/BatchSubmissionListButton/property.js +12 -7
  5. package/dist/esm/baseControls/Button/property.js +18 -10
  6. package/dist/esm/baseControls/Comment/property.js +2 -2
  7. package/dist/esm/baseControls/CreateFormListButton/property.js +8 -5
  8. package/dist/esm/baseControls/Dashboard/property.js +16 -9
  9. package/dist/esm/baseControls/Divider/property.js +5 -4
  10. package/dist/esm/baseControls/ExportListButton/property.js +9 -6
  11. package/dist/esm/baseControls/ExportRecordListButton/property.js +4 -3
  12. package/dist/esm/baseControls/FormSelectButton/property.js +6 -4
  13. package/dist/esm/baseControls/ImportRecordListButton/property.js +9 -6
  14. package/dist/esm/baseControls/InvoiceCheckButton/property.js +19 -11
  15. package/dist/esm/baseControls/Link/property.js +6 -4
  16. package/dist/esm/baseControls/ListSelectButton/property.js +10 -6
  17. package/dist/esm/baseControls/ListViewSelect/property.js +5 -4
  18. package/dist/esm/baseControls/OperationButton/property.js +12 -7
  19. package/dist/esm/baseControls/ReferenceList/property.js +12 -7
  20. package/dist/esm/baseControls/SubmissionRecordListButton/property.js +4 -3
  21. package/dist/esm/baseControls/Text/property.js +12 -7
  22. package/dist/esm/baseControls/TextOcrButton/property.js +19 -11
  23. package/dist/esm/baseControls/Title/property.js +6 -4
  24. package/dist/esm/columnControls/ApprovalStatusColumn/property.js +6 -4
  25. package/dist/esm/columnControls/ArrayColumn/property.js +8 -5
  26. package/dist/esm/columnControls/AutoNumberColumn/property.js +4 -3
  27. package/dist/esm/columnControls/CustomColumn/property.js +6 -4
  28. package/dist/esm/columnControls/DecimalColumn/property.js +14 -8
  29. package/dist/esm/columnControls/DepartmentColumn/property.js +4 -3
  30. package/dist/esm/columnControls/EmployeeColumn/property.js +4 -3
  31. package/dist/esm/columnControls/FileColumn/property.js +4 -3
  32. package/dist/esm/columnControls/GroupColumn/property.js +2 -2
  33. package/dist/esm/columnControls/ImageColumn/property.js +2 -2
  34. package/dist/esm/columnControls/LocationColumn/property.js +4 -3
  35. package/dist/esm/columnControls/OperationColumn/designer.js +4 -12
  36. package/dist/esm/columnControls/OperationColumn/property.js +10 -6
  37. package/dist/esm/columnControls/OrderColumn/property.js +12 -7
  38. package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
  39. package/dist/esm/columnControls/TextColumn/property.js +8 -5
  40. package/dist/esm/columnControls/TimescopeColumn/property.js +8 -5
  41. package/dist/esm/columnControls/TimestampColumn/property.js +8 -5
  42. package/dist/esm/columnControls/VarcharColumn/property.js +12 -7
  43. package/dist/esm/formControls/Address/property.js +10 -6
  44. package/dist/esm/formControls/Amount/property.js +24 -13
  45. package/dist/esm/formControls/Attachment/property.js +40 -25
  46. package/dist/esm/formControls/AutoNumber/property.js +6 -4
  47. package/dist/esm/formControls/Calc/property.js +18 -10
  48. package/dist/esm/formControls/Checkbox/property.js +29 -16
  49. package/dist/esm/formControls/DatePicker/property.js +27 -15
  50. package/dist/esm/formControls/DateRange/property.js +23 -13
  51. package/dist/esm/formControls/Department/property.js +22 -12
  52. package/dist/esm/formControls/Department2/designer.js +1 -1
  53. package/dist/esm/formControls/Department2/property.js +38 -22
  54. package/dist/esm/formControls/ElectronicSignature/property.js +12 -7
  55. package/dist/esm/formControls/Employee/property.js +18 -10
  56. package/dist/esm/formControls/Employee2/property.js +32 -17
  57. package/dist/esm/formControls/Image/designer.js +8 -8
  58. package/dist/esm/formControls/Image/property.js +12 -7
  59. package/dist/esm/formControls/Input/property.js +20 -11
  60. package/dist/esm/formControls/Number/property.js +26 -14
  61. package/dist/esm/formControls/OrganizationSelection/property.js +36 -19
  62. package/dist/esm/formControls/Radio/property.js +24 -13
  63. package/dist/esm/formControls/RichText/property.js +20 -11
  64. package/dist/esm/formControls/Score/property.js +13 -8
  65. package/dist/esm/formControls/SearchDateRange/property.js +25 -14
  66. package/dist/esm/formControls/SearchNumberRange/property.js +12 -7
  67. package/dist/esm/formControls/Select/property.js +22 -12
  68. package/dist/esm/formControls/SelectMultiple/property.js +20 -11
  69. package/dist/esm/formControls/SelectRelation/property.js +26 -14
  70. package/dist/esm/formControls/Textarea/property.js +20 -11
  71. package/dist/esm/formControls/Tree/property.js +61 -21
  72. package/dist/esm/formControls/VueFormItem/property.js +10 -6
  73. package/dist/esm/formControls/VuePage/property.js +10 -6
  74. package/dist/esm/formControls/WPS/designer.js +9 -9
  75. package/dist/esm/formControls/WPS/property.js +24 -13
  76. package/dist/esm/framework.js +113 -69
  77. package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
  78. package/dist/esm/layoutControls/ActionBar/property.js +6 -4
  79. package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
  80. package/dist/esm/layoutControls/CardGroup/property.js +6 -4
  81. package/dist/esm/layoutControls/Col/property.js +8 -5
  82. package/dist/esm/layoutControls/DataView/property.js +14 -8
  83. package/dist/esm/layoutControls/GridLayoutContainer/property.js +4 -3
  84. package/dist/esm/layoutControls/GridTableColumn/property.js +20 -11
  85. package/dist/esm/layoutControls/ListView/property.js +28 -15
  86. package/dist/esm/layoutControls/Page/property.js +2 -2
  87. package/dist/esm/layoutControls/Position/property.js +8 -5
  88. package/dist/esm/layoutControls/Row/property.js +4 -3
  89. package/dist/esm/layoutControls/Step/designer.js +2 -2
  90. package/dist/esm/layoutControls/Step/property.js +10 -6
  91. package/dist/esm/layoutControls/StepPane/property.js +16 -9
  92. package/dist/esm/layoutControls/SubTableColumn/property.js +10 -6
  93. package/dist/esm/layoutControls/Tab/designer.js +2 -2
  94. package/dist/esm/layoutControls/Tab/property.js +2 -2
  95. package/dist/esm/layoutControls/TabPane/property.js +2 -2
  96. package/dist/esm/layoutControls/TableLayout/property.js +30 -16
  97. package/dist/esm/layoutControls/TableLayoutCol/property.js +20 -11
  98. package/dist/esm/layoutControls/TableLayoutRow/property.js +4 -3
  99. package/dist/esm/layoutControls/TableLayoutWrapper/property.js +6 -4
  100. package/dist/esm/listControls/GridTable/designer.js +4 -12
  101. package/dist/esm/listControls/GridTable/property.js +19 -15
  102. package/dist/esm/listControls/SubTable/property.js +68 -35
  103. package/dist/esm/searchControls/SimpleSearch/property.js +24 -13
  104. package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
  105. package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
  106. package/dist/esm/wrapControls/GridLayoutWrap/property.js +2 -2
  107. package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
  108. package/dist/index.umd.js +1 -1
  109. package/dist/types/formControls/Department2/property.d.ts +2 -2
  110. package/dist/types/formControls/Tree/property.d.ts +31 -0
  111. package/package.json +2 -2
@@ -124,8 +124,7 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
124
124
  function Department2Property(props) {
125
125
  _class_call_check(this, Department2Property);
126
126
  var _this;
127
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16;
128
- var _props_defaultAndDisabledFilters;
127
+ var _props_disabledSelectedFilters;
129
128
  _this = _call_super(this, Department2Property, [
130
129
  props
131
130
  ]), /**
@@ -149,8 +148,8 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
149
148
  * */ _define_property(_this, "multistageFilling", void 0), /**
150
149
  * 数据设置
151
150
  * */ _define_property(_this, "datasourceBind", void 0), /**
152
- * 默认选中且不可修改部门的配置条件.配置后,这些部门将默认被选中,用户无法取消选择或修改
153
- * */ _define_property(_this, "defaultAndDisabledFilters", void 0), /**
151
+ * 不可选中部门的配置条件
152
+ * */ _define_property(_this, "disabledSelectedFilters", void 0), /**
154
153
  * 数据类型 行政 or 业务
155
154
  * */ _define_property(_this, "datasourceType", void 0 //数据类型 行政 'administration'| 业务 'business'
156
155
  ), _define_property(_this, "businessType", void 0 //业务部门类型 'all' | 'assign'
@@ -158,23 +157,38 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
158
157
  ), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
159
158
  ), _define_property(_this, "defaultShowOptions", void 0 //默认展开选项
160
159
  );
161
- _this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
162
- _this.multiple = (_ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref1 !== void 0 ? _ref1 : false;
163
- _this.range = (_ref2 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref2 !== void 0 ? _ref2 : 'all';
164
- _this.defaultValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref3 !== void 0 ? _ref3 : 'none';
165
- _this.rangeOptions = (_ref4 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref4 !== void 0 ? _ref4 : [];
166
- _this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
167
- _this.displayLevel = (_ref6 = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _ref6 !== void 0 ? _ref6 : 1;
168
- _this.showSubDept = (_ref7 = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _ref7 !== void 0 ? _ref7 : true;
169
- _this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : Department2Control.controlName;
170
- _this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : getLocaleText('CMD.pleaseSelectDept', null, '请选择部门');
171
- _this.datasourceBind = new SuperDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
160
+ var _props_showType;
161
+ _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
162
+ var _props_multiple;
163
+ _this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
164
+ var _props_range;
165
+ _this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
166
+ var _props_defaultValueType;
167
+ _this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
168
+ var _props_rangeOptions;
169
+ _this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
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_displayLevel;
173
+ _this.displayLevel = (_props_displayLevel = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _props_displayLevel !== void 0 ? _props_displayLevel : 1;
174
+ var _props_showSubDept;
175
+ _this.showSubDept = (_props_showSubDept = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _props_showSubDept !== void 0 ? _props_showSubDept : true;
176
+ var _props_caption;
177
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : Department2Control.controlName;
178
+ var _props_placeholder;
179
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelectDept', null, '请选择部门');
180
+ var _props_datasourceBind;
181
+ _this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
172
182
  attributes: Department2Control.controlCustomAttributes
173
183
  });
174
- _this.datasourceType = (_ref11 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref11 !== void 0 ? _ref11 : DepartmentType.INTERNAL;
175
- _this.businessScope = (_ref12 = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _ref12 !== void 0 ? _ref12 : [];
176
- _this.businessType = (_ref13 = props === null || props === void 0 ? void 0 : props.businessType) !== null && _ref13 !== void 0 ? _ref13 : AssignType.ALL;
177
- _this.openMultistageFilling = (_ref14 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref14 !== void 0 ? _ref14 : false;
184
+ var _props_datasourceType;
185
+ _this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : DepartmentType.INTERNAL;
186
+ var _props_businessScope;
187
+ _this.businessScope = (_props_businessScope = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _props_businessScope !== void 0 ? _props_businessScope : [];
188
+ var _props_businessType;
189
+ _this.businessType = (_props_businessType = props === null || props === void 0 ? void 0 : props.businessType) !== null && _props_businessType !== void 0 ? _props_businessType : AssignType.ALL;
190
+ var _props_openMultistageFilling;
191
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
178
192
  _this.multistageFilling = [];
179
193
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
180
194
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -182,13 +196,15 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
182
196
  (_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
183
197
  });
184
198
  }
185
- _this.defaultShowOptions = (_ref15 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref15 !== void 0 ? _ref15 : false;
186
- _this.defaultAndDisabledFilters = (_ref16 = props === null || props === void 0 ? void 0 : (_props_defaultAndDisabledFilters = props.defaultAndDisabledFilters) === null || _props_defaultAndDisabledFilters === void 0 ? void 0 : _props_defaultAndDisabledFilters.map(function(item) {
199
+ var _props_defaultShowOptions;
200
+ _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : false;
201
+ var _props_disabledSelectedFilters_map;
202
+ _this.disabledSelectedFilters = (_props_disabledSelectedFilters_map = props === null || props === void 0 ? void 0 : (_props_disabledSelectedFilters = props.disabledSelectedFilters) === null || _props_disabledSelectedFilters === void 0 ? void 0 : _props_disabledSelectedFilters.map(function(item) {
187
203
  if (item.children !== undefined) {
188
204
  return new FieldFilterConditions(item);
189
205
  }
190
206
  return new FieldFilterCondition(item);
191
- })) !== null && _ref16 !== void 0 ? _ref16 : [];
207
+ })) !== null && _props_disabledSelectedFilters_map !== void 0 ? _props_disabledSelectedFilters_map : [];
192
208
  return _this;
193
209
  }
194
210
  return Department2Property;
@@ -184,16 +184,21 @@ var ElectronicSignatureProperty = /*#__PURE__*/ function(BaseControlProperty) {
184
184
  function ElectronicSignatureProperty(props) {
185
185
  _class_call_check(this, ElectronicSignatureProperty);
186
186
  var _this;
187
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
188
187
  _this = _call_super(this, ElectronicSignatureProperty, [
189
188
  props
190
189
  ]), _define_property(_this, "buttonType", void 0), _define_property(_this, "content", void 0), _define_property(_this, "showType", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "command", ''), _define_property(_this, "isLoading", false), _define_property(_this, "signatureConfig", void 0);
191
- _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : ElectronicSignatureControl.controlName;
192
- _this.content = (_ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && _ref1 !== void 0 ? _ref1 : getLocaleText('CMD.signature', null, '发起签署');
193
- _this.buttonType = (_ref2 = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _ref2 !== void 0 ? _ref2 : 'primary';
194
- _this.showType = (_ref3 = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref3 !== void 0 ? _ref3 : 'text';
195
- _this.color = (_ref4 = props === null || props === void 0 ? void 0 : props.color) !== null && _ref4 !== void 0 ? _ref4 : 'primary';
196
- _this.icon = (_ref5 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref5 !== void 0 ? _ref5 : 'iconfenlei2';
190
+ var _props_caption;
191
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ElectronicSignatureControl.controlName;
192
+ var _props_content;
193
+ _this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : getLocaleText('CMD.signature', null, '发起签署');
194
+ var _props_buttonType;
195
+ _this.buttonType = (_props_buttonType = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _props_buttonType !== void 0 ? _props_buttonType : 'primary';
196
+ var _props_showType;
197
+ _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'text';
198
+ var _props_color;
199
+ _this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : 'primary';
200
+ var _props_icon;
201
+ _this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : 'iconfenlei2';
197
202
  _this.signatureConfig = new ElectronicSignatureConfig(props === null || props === void 0 ? void 0 : props.signatureConfig);
198
203
  return _this;
199
204
  }
@@ -95,7 +95,6 @@ var EmployeeProperty = /*#__PURE__*/ function(BaseControlProperty) {
95
95
  function EmployeeProperty(props) {
96
96
  _class_call_check(this, EmployeeProperty);
97
97
  var _this;
98
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
99
98
  _this = _call_super(this, EmployeeProperty, [
100
99
  props
101
100
  ]), /**
@@ -106,15 +105,24 @@ var EmployeeProperty = /*#__PURE__*/ function(BaseControlProperty) {
106
105
  ), _define_property(_this, "defaultValueType", void 0 // 默认值: null / 表单发起人 / 指定人员
107
106
  ), _define_property(_this, "defaultValue", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
108
107
  );
109
- _this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
110
- _this.range = (_ref1 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref1 !== void 0 ? _ref1 : 'all';
111
- _this.rangeOptions = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref2 !== void 0 ? _ref2 : [];
112
- _this.multiple = (_ref3 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref3 !== void 0 ? _ref3 : false;
113
- _this.defaultValueType = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref4 !== void 0 ? _ref4 : 'none';
114
- _this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
115
- _this.caption = (_ref6 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref6 !== void 0 ? _ref6 : EmployeeControl.controlName;
116
- _this.placeholder = (_ref7 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref7 !== void 0 ? _ref7 : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入人员姓名或邮箱');
117
- _this.openMultistageFilling = (_ref8 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref8 !== void 0 ? _ref8 : false;
108
+ var _props_showType;
109
+ _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
110
+ var _props_range;
111
+ _this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
112
+ var _props_rangeOptions;
113
+ _this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
114
+ var _props_multiple;
115
+ _this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
116
+ var _props_defaultValueType;
117
+ _this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
118
+ var _props_defaultValue;
119
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
120
+ var _props_caption;
121
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : EmployeeControl.controlName;
122
+ var _props_placeholder;
123
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入人员姓名或邮箱');
124
+ var _props_openMultistageFilling;
125
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
118
126
  _this.multistageFilling = [];
119
127
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
120
128
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -124,7 +124,6 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
124
124
  function Employee2Property(props) {
125
125
  _class_call_check(this, Employee2Property);
126
126
  var _this;
127
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15;
128
127
  _this = _call_super(this, Employee2Property, [
129
128
  props
130
129
  ]), /**
@@ -141,23 +140,38 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
141
140
  ), _define_property(_this, "mainDeptFlag", void 0 //开启查询非主部门人员
142
141
  ), _define_property(_this, "defaultShowOptions", void 0 //默认展开选项
143
142
  );
144
- _this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
145
- _this.range = (_ref1 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref1 !== void 0 ? _ref1 : 'all';
146
- _this.rangeOptions = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref2 !== void 0 ? _ref2 : [];
147
- _this.multiple = (_ref3 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref3 !== void 0 ? _ref3 : false;
148
- _this.defaultValueType = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref4 !== void 0 ? _ref4 : 'none';
149
- _this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
150
- _this.caption = (_ref6 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref6 !== void 0 ? _ref6 : Employee2Control.controlName;
151
- _this.placeholder = (_ref7 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref7 !== void 0 ? _ref7 : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入人员姓名或邮箱');
152
- _this.datasourceBind = new SuperDataSourceBind((_ref8 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref8 !== void 0 ? _ref8 : {
143
+ var _props_showType;
144
+ _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
145
+ var _props_range;
146
+ _this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
147
+ var _props_rangeOptions;
148
+ _this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
149
+ var _props_multiple;
150
+ _this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
151
+ var _props_defaultValueType;
152
+ _this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
153
+ var _props_defaultValue;
154
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
155
+ var _props_caption;
156
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : Employee2Control.controlName;
157
+ var _props_placeholder;
158
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterNameorEmail', null, '请输入人员姓名或邮箱');
159
+ var _props_datasourceBind;
160
+ _this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
153
161
  attributes: Employee2Control.controlCustomAttributes
154
162
  });
155
- _this.datasourceType = (_ref9 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref9 !== void 0 ? _ref9 : OrganizeType.INTERNAL; //默认内部组织 EXTERNAL 外部组织
156
- _this.insideType = (_ref10 = props === null || props === void 0 ? void 0 : props.insideType) !== null && _ref10 !== void 0 ? _ref10 : InternalType.ADMIN;
157
- _this.externalType = (_ref11 = props === null || props === void 0 ? void 0 : props.externalType) !== null && _ref11 !== void 0 ? _ref11 : AssignType.ALL;
158
- _this.externalScope = (_ref12 = props === null || props === void 0 ? void 0 : props.externalScope) !== null && _ref12 !== void 0 ? _ref12 : [];
159
- _this.openMultistageFilling = (_ref13 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref13 !== void 0 ? _ref13 : false;
160
- _this.mainDeptFlag = (_ref14 = props === null || props === void 0 ? void 0 : props.mainDeptFlag) !== null && _ref14 !== void 0 ? _ref14 : false;
163
+ var _props_datasourceType;
164
+ _this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : OrganizeType.INTERNAL; //默认内部组织 EXTERNAL 外部组织
165
+ var _props_insideType;
166
+ _this.insideType = (_props_insideType = props === null || props === void 0 ? void 0 : props.insideType) !== null && _props_insideType !== void 0 ? _props_insideType : InternalType.ADMIN;
167
+ var _props_externalType;
168
+ _this.externalType = (_props_externalType = props === null || props === void 0 ? void 0 : props.externalType) !== null && _props_externalType !== void 0 ? _props_externalType : AssignType.ALL;
169
+ var _props_externalScope;
170
+ _this.externalScope = (_props_externalScope = props === null || props === void 0 ? void 0 : props.externalScope) !== null && _props_externalScope !== void 0 ? _props_externalScope : [];
171
+ var _props_openMultistageFilling;
172
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
173
+ var _props_mainDeptFlag;
174
+ _this.mainDeptFlag = (_props_mainDeptFlag = props === null || props === void 0 ? void 0 : props.mainDeptFlag) !== null && _props_mainDeptFlag !== void 0 ? _props_mainDeptFlag : false;
161
175
  _this.multistageFilling = [];
162
176
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
163
177
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -165,7 +179,8 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
165
179
  (_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
166
180
  });
167
181
  }
168
- _this.defaultShowOptions = (_ref15 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref15 !== void 0 ? _ref15 : false;
182
+ var _props_defaultShowOptions;
183
+ _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : false;
169
184
  return _this;
170
185
  }
171
186
  return Employee2Property;
@@ -1,4 +1,10 @@
1
- function _assert_this_initialized(self) {
1
+ /*
2
+ * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
+ * @Date: 2022-12-01 14:40:30
4
+ * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
+ * @LastEditTime: 2023-09-19 15:50:38
6
+ * @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
7
+ */ function _assert_this_initialized(self) {
2
8
  if (self === void 0) {
3
9
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
10
  }
@@ -84,13 +90,7 @@ function _is_native_reflect_construct() {
84
90
  return !!result;
85
91
  })();
86
92
  }
87
- /*
88
- * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
89
- * @Date: 2022-12-01 14:40:30
90
- * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
91
- * @LastEditTime: 2023-09-19 15:50:38
92
- * @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
93
- */ import { getLocaleText } from '@byteluck-fe/locale-message';
93
+ import { getLocaleText } from '@byteluck-fe/locale-message';
94
94
  import { DesignerAttachmentControl } from '../Attachment';
95
95
  import { ImageProperty } from './property';
96
96
  import { COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
@@ -86,17 +86,22 @@ var ImageProperty = /*#__PURE__*/ function(AttachmentProperty) {
86
86
  function ImageProperty(props) {
87
87
  _class_call_check(this, ImageProperty);
88
88
  var _this;
89
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
90
89
  _this = _call_super(this, ImageProperty, [
91
90
  props
92
91
  ]), _define_property(_this, "compressTypeCode", void 0), _define_property(_this, "compressRatio", void 0), _define_property(_this, "maxPixel", void 0);
93
92
  _this.showType = 'image';
94
- _this.maxLimit = (_ref = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _ref !== void 0 ? _ref : 10;
95
- _this.caption = (_ref1 = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : ImageControl.controlName) !== null && _ref1 !== void 0 ? _ref1 : getLocaleText('CMD.image', null, '图片');
96
- _this.placeholder = (_ref3 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref3 !== void 0 ? _ref3 : getLocaleText('CMD.uploadImg', null, '上传图片');
97
- _this.compressTypeCode = (_ref4 = props === null || props === void 0 ? void 0 : props.compressTypeCode) !== null && _ref4 !== void 0 ? _ref4 : ImageCompressType.NO_COMPRESS; // 默认不压缩
98
- _this.compressRatio = (_ref5 = props === null || props === void 0 ? void 0 : props.compressRatio) !== null && _ref5 !== void 0 ? _ref5 : 1; // 默认压缩比例1
99
- _this.maxPixel = (_ref6 = props === null || props === void 0 ? void 0 : props.maxPixel) !== null && _ref6 !== void 0 ? _ref6 : 1080; // 默认最大像素1080
93
+ var _props_maxLimit;
94
+ _this.maxLimit = (_props_maxLimit = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _props_maxLimit !== void 0 ? _props_maxLimit : 10;
95
+ var _props_caption, _ref;
96
+ _this.caption = (_ref = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ImageControl.controlName) !== null && _ref !== void 0 ? _ref : getLocaleText('CMD.image', null, '图片');
97
+ var _props_placeholder;
98
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.uploadImg', null, '上传图片');
99
+ var _props_compressTypeCode;
100
+ _this.compressTypeCode = (_props_compressTypeCode = props === null || props === void 0 ? void 0 : props.compressTypeCode) !== null && _props_compressTypeCode !== void 0 ? _props_compressTypeCode : ImageCompressType.NO_COMPRESS; // 默认不压缩
101
+ var _props_compressRatio;
102
+ _this.compressRatio = (_props_compressRatio = props === null || props === void 0 ? void 0 : props.compressRatio) !== null && _props_compressRatio !== void 0 ? _props_compressRatio : 1; // 默认压缩比例1
103
+ var _props_maxPixel;
104
+ _this.maxPixel = (_props_maxPixel = props === null || props === void 0 ? void 0 : props.maxPixel) !== null && _props_maxPixel !== void 0 ? _props_maxPixel : 1080; // 默认最大像素1080
100
105
  return _this;
101
106
  }
102
107
  return ImageProperty;
@@ -155,7 +155,6 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
155
155
  function InputProperty(props) {
156
156
  _class_call_check(this, InputProperty);
157
157
  var _this;
158
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
159
158
  _this = _call_super(this, InputProperty, [
160
159
  props
161
160
  ]), /**
@@ -193,17 +192,27 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
193
192
  * @defaultValue 1
194
193
  * @public
195
194
  */ _define_property(_this, "lineEllipsis", void 0);
196
- _this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 200;
197
- _this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
195
+ var _props_maxLength;
196
+ _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 200;
197
+ var _props_minLength;
198
+ _this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
198
199
  _this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
199
- _this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
200
- _this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : InputControl.controlName;
201
- _this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseEnter', null, '请输入');
202
- _this.encrypted = (_ref5 = props === null || props === void 0 ? void 0 : props.encrypted) !== null && _ref5 !== void 0 ? _ref5 : false;
203
- _this.encryptedMode = (_ref6 = props === null || props === void 0 ? void 0 : props.encryptedMode) !== null && _ref6 !== void 0 ? _ref6 : '';
204
- _this.aiContentSearch = (_ref7 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref7 !== void 0 ? _ref7 : false;
205
- _this.autoHeight = (_ref8 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref8 !== void 0 ? _ref8 : false;
206
- _this.lineEllipsis = (_ref9 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref9 !== void 0 ? _ref9 : 1;
200
+ var _props_defaultValue;
201
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
202
+ var _props_caption;
203
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : InputControl.controlName;
204
+ var _props_placeholder;
205
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
206
+ var _props_encrypted;
207
+ _this.encrypted = (_props_encrypted = props === null || props === void 0 ? void 0 : props.encrypted) !== null && _props_encrypted !== void 0 ? _props_encrypted : false;
208
+ var _props_encryptedMode;
209
+ _this.encryptedMode = (_props_encryptedMode = props === null || props === void 0 ? void 0 : props.encryptedMode) !== null && _props_encryptedMode !== void 0 ? _props_encryptedMode : '';
210
+ var _props_aiContentSearch;
211
+ _this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
212
+ var _props_autoHeight;
213
+ _this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
214
+ var _props_lineEllipsis;
215
+ _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
207
216
  return _this;
208
217
  }
209
218
  return InputProperty;
@@ -159,7 +159,6 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
159
159
  function NumberProperty(props) {
160
160
  _class_call_check(this, NumberProperty);
161
161
  var _this;
162
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
163
162
  _this = _call_super(this, NumberProperty, [
164
163
  props
165
164
  ]), /**
@@ -210,19 +209,32 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
210
209
  * 正则校验
211
210
  * @public
212
211
  * */ _define_property(_this, "regularRules", void 0);
213
- _this.rangeMin = (_ref = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref !== void 0 ? _ref : '';
214
- _this.rangeMax = (_ref1 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref1 !== void 0 ? _ref1 : '';
215
- _this.numberType = (_ref2 = props === null || props === void 0 ? void 0 : props.numberType) !== null && _ref2 !== void 0 ? _ref2 : 'number';
216
- _this.percentageFormat = (_ref3 = props === null || props === void 0 ? void 0 : props.percentageFormat) !== null && _ref3 !== void 0 ? _ref3 : false;
217
- _this.micrometer = (_ref4 = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _ref4 !== void 0 ? _ref4 : false;
218
- _this.precision = (_ref5 = props === null || props === void 0 ? void 0 : props.precision) !== null && _ref5 !== void 0 ? _ref5 : 0;
219
- _this.showUpperCase = (_ref6 = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _ref6 !== void 0 ? _ref6 : false;
220
- _this.isShowUnit = (_ref7 = props === null || props === void 0 ? void 0 : props.isShowUnit) !== null && _ref7 !== void 0 ? _ref7 : false;
221
- _this.unitPosition = (_ref8 = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _ref8 !== void 0 ? _ref8 : 'right';
222
- _this.unit = (_ref9 = props === null || props === void 0 ? void 0 : props.unit) !== null && _ref9 !== void 0 ? _ref9 : '';
223
- _this.caption = (_ref10 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref10 !== void 0 ? _ref10 : NumberControl.controlName;
224
- _this.placeholder = (_ref11 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref11 !== void 0 ? _ref11 : getLocaleText('CMD.pleaseEnter', null, '请输入');
225
- _this.defaultValue = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref12 !== void 0 ? _ref12 : '';
212
+ var _props_rangeMin;
213
+ _this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
214
+ var _props_rangeMax;
215
+ _this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
216
+ var _props_numberType;
217
+ _this.numberType = (_props_numberType = props === null || props === void 0 ? void 0 : props.numberType) !== null && _props_numberType !== void 0 ? _props_numberType : 'number';
218
+ var _props_percentageFormat;
219
+ _this.percentageFormat = (_props_percentageFormat = props === null || props === void 0 ? void 0 : props.percentageFormat) !== null && _props_percentageFormat !== void 0 ? _props_percentageFormat : false;
220
+ var _props_micrometer;
221
+ _this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
222
+ var _props_precision;
223
+ _this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 0;
224
+ var _props_showUpperCase;
225
+ _this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
226
+ var _props_isShowUnit;
227
+ _this.isShowUnit = (_props_isShowUnit = props === null || props === void 0 ? void 0 : props.isShowUnit) !== null && _props_isShowUnit !== void 0 ? _props_isShowUnit : false;
228
+ var _props_unitPosition;
229
+ _this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
230
+ var _props_unit;
231
+ _this.unit = (_props_unit = props === null || props === void 0 ? void 0 : props.unit) !== null && _props_unit !== void 0 ? _props_unit : '';
232
+ var _props_caption;
233
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : NumberControl.controlName;
234
+ var _props_placeholder;
235
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
236
+ var _props_defaultValue;
237
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
226
238
  _this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
227
239
  return _this;
228
240
  }
@@ -124,7 +124,6 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
124
124
  function OrganizationSelectionProperty(props) {
125
125
  _class_call_check(this, OrganizationSelectionProperty);
126
126
  var _this;
127
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17;
128
127
  _this = _call_super(this, OrganizationSelectionProperty, [
129
128
  props
130
129
  ]), /**
@@ -161,28 +160,46 @@ var OrganizationSelectionProperty = /*#__PURE__*/ function(BaseControlProperty)
161
160
  ), // 展示已选明细
162
161
  _define_property(_this, "showSelectedDetail", void 0), // 展示已选内容配置字段
163
162
  _define_property(_this, "selectedContentConfig", void 0);
164
- _this.showType = (_ref = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref !== void 0 ? _ref : 'default';
165
- _this.multiple = (_ref1 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref1 !== void 0 ? _ref1 : false;
166
- _this.range = (_ref2 = props === null || props === void 0 ? void 0 : props.range) !== null && _ref2 !== void 0 ? _ref2 : 'all';
163
+ var _props_showType;
164
+ _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
165
+ var _props_multiple;
166
+ _this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
167
+ var _props_range;
168
+ _this.range = (_props_range = props === null || props === void 0 ? void 0 : props.range) !== null && _props_range !== void 0 ? _props_range : 'all';
167
169
  _this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
168
- _this.defaultValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref3 !== void 0 ? _ref3 : 'none';
169
- _this.rangeOptions = (_ref4 = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _ref4 !== void 0 ? _ref4 : [];
170
- _this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
171
- _this.displayLevel = (_ref6 = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _ref6 !== void 0 ? _ref6 : 1;
172
- _this.showSubDept = (_ref7 = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _ref7 !== void 0 ? _ref7 : true;
173
- _this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : OrganizationSelectionControl.controlName;
174
- _this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : getLocaleText('CMD.pleaseSelectOrg', null, '请选择组织');
175
- _this.datasourceBind = new OrganizationDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
170
+ var _props_defaultValueType;
171
+ _this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'none';
172
+ var _props_rangeOptions;
173
+ _this.rangeOptions = (_props_rangeOptions = props === null || props === void 0 ? void 0 : props.rangeOptions) !== null && _props_rangeOptions !== void 0 ? _props_rangeOptions : [];
174
+ var _props_defaultValue;
175
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
176
+ var _props_displayLevel;
177
+ _this.displayLevel = (_props_displayLevel = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _props_displayLevel !== void 0 ? _props_displayLevel : 1;
178
+ var _props_showSubDept;
179
+ _this.showSubDept = (_props_showSubDept = props === null || props === void 0 ? void 0 : props.showSubDept) !== null && _props_showSubDept !== void 0 ? _props_showSubDept : true;
180
+ var _props_caption;
181
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : OrganizationSelectionControl.controlName;
182
+ var _props_placeholder;
183
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelectOrg', null, '请选择组织');
184
+ var _props_datasourceBind;
185
+ _this.datasourceBind = new OrganizationDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
176
186
  attributes: OrganizationSelectionControl.controlCustomAttributes
177
187
  });
178
- _this.datasourceType = (_ref11 = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _ref11 !== void 0 ? _ref11 : DepartmentType.INTERNAL;
179
- _this.businessScope = (_ref12 = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _ref12 !== void 0 ? _ref12 : [];
180
- _this.businessType = (_ref13 = props === null || props === void 0 ? void 0 : props.businessType) !== null && _ref13 !== void 0 ? _ref13 : AssignType.ALL;
181
- _this.organizingFunction = (_ref14 = props === null || props === void 0 ? void 0 : props.organizingFunction) !== null && _ref14 !== void 0 ? _ref14 : undefined;
182
- _this.organizationView = (_ref15 = props === null || props === void 0 ? void 0 : props.organizationView) !== null && _ref15 !== void 0 ? _ref15 : undefined;
183
- _this.showSelectedDetail = (_ref16 = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _ref16 !== void 0 ? _ref16 : false;
188
+ var _props_datasourceType;
189
+ _this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : DepartmentType.INTERNAL;
190
+ var _props_businessScope;
191
+ _this.businessScope = (_props_businessScope = props === null || props === void 0 ? void 0 : props.businessScope) !== null && _props_businessScope !== void 0 ? _props_businessScope : [];
192
+ var _props_businessType;
193
+ _this.businessType = (_props_businessType = props === null || props === void 0 ? void 0 : props.businessType) !== null && _props_businessType !== void 0 ? _props_businessType : AssignType.ALL;
194
+ var _props_organizingFunction;
195
+ _this.organizingFunction = (_props_organizingFunction = props === null || props === void 0 ? void 0 : props.organizingFunction) !== null && _props_organizingFunction !== void 0 ? _props_organizingFunction : undefined;
196
+ var _props_organizationView;
197
+ _this.organizationView = (_props_organizationView = props === null || props === void 0 ? void 0 : props.organizationView) !== null && _props_organizationView !== void 0 ? _props_organizationView : undefined;
198
+ var _props_showSelectedDetail;
199
+ _this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
184
200
  _this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
185
- _this.openMultistageFilling = (_ref17 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref17 !== void 0 ? _ref17 : false;
201
+ var _props_openMultistageFilling;
202
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
186
203
  _this.multistageFilling = [];
187
204
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
188
205
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -90,7 +90,6 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
90
90
  function RadioProperty(props) {
91
91
  _class_call_check(this, RadioProperty);
92
92
  var _this;
93
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
94
93
  _this = _call_super(this, RadioProperty, [
95
94
  props
96
95
  ]), _define_property(_this, "radioMode", void 0 // 选项排列方式 horizontal默认
@@ -105,7 +104,8 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
105
104
  * @defaultValue false
106
105
  * @public
107
106
  */ _define_property(_this, "aiContentSearch", void 0);
108
- _this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
107
+ var _props_options;
108
+ _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
109
109
  {
110
110
  label: getLocaleText('CMD.optionOne', null, '选项一'),
111
111
  value: getLocaleText('CMD.optionOne', null, '选项一')
@@ -119,17 +119,27 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
119
119
  value: getLocaleText('CMD.optionThird', null, '选项三')
120
120
  }
121
121
  ]);
122
- _this.radioMode = (_ref1 = props === null || props === void 0 ? void 0 : props.radioMode) !== null && _ref1 !== void 0 ? _ref1 : 'horizontal';
123
- _this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'custom';
124
- _this.otherOption = (_ref3 = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _ref3 !== void 0 ? _ref3 : false;
125
- _this.optionsOrder = (_ref4 = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _ref4 !== void 0 ? _ref4 : false;
126
- _this.defaultShowOptions = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref5 !== void 0 ? _ref5 : true;
127
- _this.optionsFormat = (_ref6 = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _ref6 !== void 0 ? _ref6 : 'horizontal';
122
+ var _props_radioMode;
123
+ _this.radioMode = (_props_radioMode = props === null || props === void 0 ? void 0 : props.radioMode) !== null && _props_radioMode !== void 0 ? _props_radioMode : 'horizontal';
124
+ var _props_optionConfig;
125
+ _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
126
+ var _props_otherOption;
127
+ _this.otherOption = (_props_otherOption = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _props_otherOption !== void 0 ? _props_otherOption : false;
128
+ var _props_optionsOrder;
129
+ _this.optionsOrder = (_props_optionsOrder = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _props_optionsOrder !== void 0 ? _props_optionsOrder : false;
130
+ var _props_defaultShowOptions;
131
+ _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
132
+ var _props_optionsFormat;
133
+ _this.optionsFormat = (_props_optionsFormat = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _props_optionsFormat !== void 0 ? _props_optionsFormat : 'horizontal';
128
134
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
129
- _this.interreaction = (_ref7 = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _ref7 !== void 0 ? _ref7 : [];
130
- _this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : RadioControl.controlName;
131
- _this.defaultValue = (_ref9 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref9 !== void 0 ? _ref9 : '';
132
- _this.openMultistageFilling = (_ref10 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref10 !== void 0 ? _ref10 : false;
135
+ var _props_interreaction;
136
+ _this.interreaction = (_props_interreaction = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _props_interreaction !== void 0 ? _props_interreaction : [];
137
+ var _props_caption;
138
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RadioControl.controlName;
139
+ var _props_defaultValue;
140
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
141
+ var _props_openMultistageFilling;
142
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
133
143
  _this.multistageFilling = [];
134
144
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
135
145
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -137,7 +147,8 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
137
147
  (_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
138
148
  });
139
149
  }
140
- _this.aiContentSearch = (_ref11 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref11 !== void 0 ? _ref11 : false;
150
+ var _props_aiContentSearch;
151
+ _this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
141
152
  return _this;
142
153
  }
143
154
  return RadioProperty;