@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
@@ -135,7 +135,6 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
135
135
  function RichTextProperty(props) {
136
136
  _class_call_check(this, RichTextProperty);
137
137
  var _this;
138
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
139
138
  _this = _call_super(this, RichTextProperty, [
140
139
  props
141
140
  ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0), /**
@@ -158,14 +157,22 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
158
157
  * @defaultValue 1
159
158
  * @public
160
159
  */ _define_property(_this, "lineEllipsis", void 0);
161
- _this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 50000;
162
- _this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
163
- _this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
164
- _this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : RichTextControl.controlName;
165
- _this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseEnter', null, '请输入');
166
- _this.aiContentSearch = (_ref5 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref5 !== void 0 ? _ref5 : false;
167
- _this.aiGeneration = (_ref6 = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _ref6 !== void 0 ? _ref6 : false;
168
- _this.aiOptions = initAiOptions((_ref7 = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _ref7 !== void 0 ? _ref7 : [
160
+ var _props_maxLength;
161
+ _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
162
+ var _props_minLength;
163
+ _this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
164
+ var _props_defaultValue;
165
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
166
+ var _props_caption;
167
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : RichTextControl.controlName;
168
+ var _props_placeholder;
169
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
170
+ var _props_aiContentSearch;
171
+ _this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
172
+ var _props_aiGeneration;
173
+ _this.aiGeneration = (_props_aiGeneration = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _props_aiGeneration !== void 0 ? _props_aiGeneration : false;
174
+ var _props_aiOptions;
175
+ _this.aiOptions = initAiOptions((_props_aiOptions = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _props_aiOptions !== void 0 ? _props_aiOptions : [
169
176
  {
170
177
  label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
171
178
  cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
@@ -182,8 +189,10 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
182
189
  checked: false
183
190
  }
184
191
  ]);
185
- _this.autoHeight = (_ref8 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref8 !== void 0 ? _ref8 : false;
186
- _this.lineEllipsis = (_ref9 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref9 !== void 0 ? _ref9 : 1;
192
+ var _props_autoHeight;
193
+ _this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
194
+ var _props_lineEllipsis;
195
+ _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
187
196
  return _this;
188
197
  }
189
198
  return RichTextProperty;
@@ -141,21 +141,26 @@ var ScoreProperty = /*#__PURE__*/ function(BaseControlProperty) {
141
141
  function ScoreProperty(props) {
142
142
  _class_call_check(this, ScoreProperty);
143
143
  var _this;
144
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
145
144
  var _props_explain;
146
145
  _this = _call_super(this, ScoreProperty, [
147
146
  props
148
147
  ]), _define_property(_this, "totalScore", void 0), _define_property(_this, "scoreType", void 0), _define_property(_this, "isShowExplain", void 0), _define_property(_this, "explain", void 0), _define_property(_this, "defaultValue", void 0);
149
- _this.totalScore = (_ref = props === null || props === void 0 ? void 0 : props.totalScore) !== null && _ref !== void 0 ? _ref : 5;
150
- _this.scoreType = (_ref1 = props === null || props === void 0 ? void 0 : props.scoreType) !== null && _ref1 !== void 0 ? _ref1 : SCORE_TYPE.STAR;
151
- _this.isShowExplain = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowExplain) !== null && _ref2 !== void 0 ? _ref2 : true;
152
- _this.explain = (_ref3 = props === null || props === void 0 ? void 0 : (_props_explain = props.explain) === null || _props_explain === void 0 ? void 0 : _props_explain.map(function(item) {
148
+ var _props_totalScore;
149
+ _this.totalScore = (_props_totalScore = props === null || props === void 0 ? void 0 : props.totalScore) !== null && _props_totalScore !== void 0 ? _props_totalScore : 5;
150
+ var _props_scoreType;
151
+ _this.scoreType = (_props_scoreType = props === null || props === void 0 ? void 0 : props.scoreType) !== null && _props_scoreType !== void 0 ? _props_scoreType : SCORE_TYPE.STAR;
152
+ var _props_isShowExplain;
153
+ _this.isShowExplain = (_props_isShowExplain = props === null || props === void 0 ? void 0 : props.isShowExplain) !== null && _props_isShowExplain !== void 0 ? _props_isShowExplain : true;
154
+ var _props_explain_map;
155
+ _this.explain = (_props_explain_map = props === null || props === void 0 ? void 0 : (_props_explain = props.explain) === null || _props_explain === void 0 ? void 0 : _props_explain.map(function(item) {
153
156
  return new Explain(item);
154
- })) !== null && _ref3 !== void 0 ? _ref3 : Array(_this.totalScore).fill(undefined).map(function() {
157
+ })) !== null && _props_explain_map !== void 0 ? _props_explain_map : Array(_this.totalScore).fill(undefined).map(function() {
155
158
  return new Explain();
156
159
  });
157
- _this.defaultValue = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref4 !== void 0 ? _ref4 : 0;
158
- _this.caption = (_ref5 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref5 !== void 0 ? _ref5 : ScoreControl.controlName;
160
+ var _props_defaultValue;
161
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : 0;
162
+ var _props_caption;
163
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ScoreControl.controlName;
159
164
  return _this;
160
165
  }
161
166
  return ScoreProperty;
@@ -114,7 +114,6 @@ var SearchDateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
114
114
  function SearchDateRangeProperty(props) {
115
115
  _class_call_check(this, SearchDateRangeProperty);
116
116
  var _this;
117
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
118
117
  var _props_limitDateList;
119
118
  _this = _call_super(this, SearchDateRangeProperty, [
120
119
  props
@@ -126,23 +125,35 @@ var SearchDateRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
126
125
  ), _define_property(_this, "setValueType", void 0 // 日期默认值设置方式custom,now
127
126
  ), _define_property(_this, "defaultValue", void 0), _define_property(_this, "limitDateList", void 0), _define_property(_this, "isInternational", void 0 //是否国际化
128
127
  );
129
- _this.defaultValue = (_ref = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref !== void 0 ? _ref : [
128
+ var _props_defaultValue;
129
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
130
130
  '',
131
131
  ''
132
132
  ];
133
- _this.dateType = (_ref1 = props === null || props === void 0 ? void 0 : props.dateType) !== null && _ref1 !== void 0 ? _ref1 : DateType.DATE;
134
- _this.dateFormat = (_ref2 = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _ref2 !== void 0 ? _ref2 : '';
135
- _this.commonTimeSetting = (_ref3 = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _ref3 !== void 0 ? _ref3 : [];
136
- _this.setValueType = (_ref4 = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _ref4 !== void 0 ? _ref4 : 'custom';
137
- _this.rangeMin = (_ref5 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref5 !== void 0 ? _ref5 : '';
138
- _this.rangeMax = (_ref6 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref6 !== void 0 ? _ref6 : '';
139
- _this.placeholderStart = (_ref7 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _ref7 !== void 0 ? _ref7 : getLocaleText('CMD.startDate', null, '开始日期');
140
- _this.placeholderEnd = (_ref8 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _ref8 !== void 0 ? _ref8 : getLocaleText('CMD.endDate', null, '结束日期');
141
- _this.caption = (_ref9 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref9 !== void 0 ? _ref9 : SearchDateRangeControl.controlName;
142
- _this.limitDateList = (_ref10 = props === null || props === void 0 ? void 0 : (_props_limitDateList = props.limitDateList) === null || _props_limitDateList === void 0 ? void 0 : _props_limitDateList.map(function(item) {
133
+ var _props_dateType;
134
+ _this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
135
+ var _props_dateFormat;
136
+ _this.dateFormat = (_props_dateFormat = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _props_dateFormat !== void 0 ? _props_dateFormat : '';
137
+ var _props_commonTimeSetting;
138
+ _this.commonTimeSetting = (_props_commonTimeSetting = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _props_commonTimeSetting !== void 0 ? _props_commonTimeSetting : [];
139
+ var _props_setValueType;
140
+ _this.setValueType = (_props_setValueType = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _props_setValueType !== void 0 ? _props_setValueType : 'custom';
141
+ var _props_rangeMin;
142
+ _this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
143
+ var _props_rangeMax;
144
+ _this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
145
+ var _props_placeholderStart;
146
+ _this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : getLocaleText('CMD.startDate', null, '开始日期');
147
+ var _props_placeholderEnd;
148
+ _this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : getLocaleText('CMD.endDate', null, '结束日期');
149
+ var _props_caption;
150
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SearchDateRangeControl.controlName;
151
+ var _props_limitDateList_map;
152
+ _this.limitDateList = (_props_limitDateList_map = props === null || props === void 0 ? void 0 : (_props_limitDateList = props.limitDateList) === null || _props_limitDateList === void 0 ? void 0 : _props_limitDateList.map(function(item) {
143
153
  return new LimitDate(item);
144
- })) !== null && _ref10 !== void 0 ? _ref10 : [];
145
- _this.isInternational = (_ref11 = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _ref11 !== void 0 ? _ref11 : false;
154
+ })) !== null && _props_limitDateList_map !== void 0 ? _props_limitDateList_map : [];
155
+ var _props_isInternational;
156
+ _this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
146
157
  return _this;
147
158
  }
148
159
  return SearchDateRangeProperty;
@@ -113,21 +113,26 @@ var SearchNumberRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
113
113
  function SearchNumberRangeProperty(props) {
114
114
  _class_call_check(this, SearchNumberRangeProperty);
115
115
  var _this;
116
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
117
116
  _this = _call_super(this, SearchNumberRangeProperty, [
118
117
  props
119
118
  ]), _define_property(_this, "rangeMin", void 0), _define_property(_this, "rangeMax", void 0), _define_property(_this, "placeholderStart", void 0 // 数字区间开始的提示文字
120
119
  ), _define_property(_this, "placeholderEnd", void 0 // 数字区结束的提示文字
121
120
  ), _define_property(_this, "defaultValue", void 0);
122
- _this.defaultValue = (_ref = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref !== void 0 ? _ref : [
121
+ var _props_defaultValue;
122
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [
123
123
  '',
124
124
  ''
125
125
  ];
126
- _this.rangeMin = (_ref1 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref1 !== void 0 ? _ref1 : '';
127
- _this.rangeMax = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref2 !== void 0 ? _ref2 : '';
128
- _this.placeholderStart = (_ref3 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _ref3 !== void 0 ? _ref3 : getLocaleText('CMD.min', null, '最小值');
129
- _this.placeholderEnd = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.max', null, '最大值');
130
- _this.caption = (_ref5 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref5 !== void 0 ? _ref5 : SearchNumberRangeControl.controlName;
126
+ var _props_rangeMin;
127
+ _this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
128
+ var _props_rangeMax;
129
+ _this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
130
+ var _props_placeholderStart;
131
+ _this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : getLocaleText('CMD.min', null, '最小值');
132
+ var _props_placeholderEnd;
133
+ _this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : getLocaleText('CMD.max', null, '最大值');
134
+ var _props_caption;
135
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SearchNumberRangeControl.controlName;
131
136
  return _this;
132
137
  }
133
138
  return SearchNumberRangeProperty;
@@ -103,7 +103,6 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
103
103
  function SelectProperty(props) {
104
104
  _class_call_check(this, SelectProperty);
105
105
  var _this;
106
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
107
106
  _this = _call_super(this, SelectProperty, [
108
107
  props
109
108
  ]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0 // 选项配置 custom datasource
@@ -127,7 +126,8 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
127
126
  * @defaultValue false
128
127
  * @public
129
128
  */ _define_property(_this, "aiContentSearch", void 0);
130
- _this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
129
+ var _props_options;
130
+ _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
131
131
  {
132
132
  label: getLocaleText('CMD.optionOne', null, '选项一'),
133
133
  value: getLocaleText('CMD.optionOne', null, '选项一')
@@ -141,14 +141,21 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
141
141
  value: getLocaleText('CMD.optionThird', null, '选项三')
142
142
  }
143
143
  ]);
144
- _this.defaultShowOptions = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref1 !== void 0 ? _ref1 : true;
145
- _this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'custom';
144
+ var _props_defaultShowOptions;
145
+ _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
146
+ var _props_optionConfig;
147
+ _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
146
148
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
147
- _this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : SelectControl.controlName;
148
- _this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseSelect', null, '请选择');
149
- _this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : '';
150
- _this.allowCopyOptions = (_ref6 = props === null || props === void 0 ? void 0 : props.allowCopyOptions) !== null && _ref6 !== void 0 ? _ref6 : false;
151
- _this.openMultistageFilling = (_ref7 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref7 !== void 0 ? _ref7 : false;
149
+ var _props_caption;
150
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectControl.controlName;
151
+ var _props_placeholder;
152
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
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_allowCopyOptions;
156
+ _this.allowCopyOptions = (_props_allowCopyOptions = props === null || props === void 0 ? void 0 : props.allowCopyOptions) !== null && _props_allowCopyOptions !== void 0 ? _props_allowCopyOptions : false;
157
+ var _props_openMultistageFilling;
158
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
152
159
  _this.multistageFilling = [];
153
160
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
154
161
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -156,10 +163,13 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
156
163
  (_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
157
164
  });
158
165
  }
159
- _this.canViewForm = (_ref8 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _ref8 !== void 0 ? _ref8 : false;
160
- _this.viewFormModelType = (_ref9 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _ref9 !== void 0 ? _ref9 : 'window';
166
+ var _props_canViewForm;
167
+ _this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
168
+ var _props_viewFormModelType;
169
+ _this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
161
170
  _this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
162
- _this.aiContentSearch = (_ref10 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref10 !== void 0 ? _ref10 : false;
171
+ var _props_aiContentSearch;
172
+ _this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
163
173
  return _this;
164
174
  }
165
175
  return SelectProperty;
@@ -119,7 +119,6 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
119
119
  function SelectMultipleProperty(props) {
120
120
  _class_call_check(this, SelectMultipleProperty);
121
121
  var _this;
122
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
123
122
  _this = _call_super(this, SelectMultipleProperty, [
124
123
  props
125
124
  ]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0 // 选项配置 custom datasource
@@ -142,7 +141,8 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
142
141
  * @defaultValue false
143
142
  * @public
144
143
  */ _define_property(_this, "aiContentSearch", void 0);
145
- _this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
144
+ var _props_options;
145
+ _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
146
146
  {
147
147
  label: getLocaleText('CMD.optionOne', null, '选项一'),
148
148
  value: getLocaleText('CMD.optionOne', null, '选项一')
@@ -156,13 +156,19 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
156
156
  value: getLocaleText('CMD.optionThird', null, '选项三')
157
157
  }
158
158
  ]);
159
- _this.defaultShowOptions = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref1 !== void 0 ? _ref1 : true;
160
- _this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'custom';
159
+ var _props_defaultShowOptions;
160
+ _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
161
+ var _props_optionConfig;
162
+ _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
161
163
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
162
- _this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : SelectMultipleControl.controlName;
163
- _this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseSelect', null, '请选择');
164
- _this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
165
- _this.openMultistageFilling = (_ref6 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref6 !== void 0 ? _ref6 : false;
164
+ var _props_caption;
165
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectMultipleControl.controlName;
166
+ var _props_placeholder;
167
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
168
+ var _props_defaultValue;
169
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
170
+ var _props_openMultistageFilling;
171
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
166
172
  _this.multistageFilling = [];
167
173
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
168
174
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -170,10 +176,13 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
170
176
  (_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
171
177
  });
172
178
  }
173
- _this.canViewForm = (_ref7 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _ref7 !== void 0 ? _ref7 : false;
174
- _this.viewFormModelType = (_ref8 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _ref8 !== void 0 ? _ref8 : 'window';
179
+ var _props_canViewForm;
180
+ _this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
181
+ var _props_viewFormModelType;
182
+ _this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
175
183
  _this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
176
- _this.aiContentSearch = (_ref9 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref9 !== void 0 ? _ref9 : false;
184
+ var _props_aiContentSearch;
185
+ _this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
177
186
  return _this;
178
187
  }
179
188
  return SelectMultipleProperty;
@@ -129,7 +129,6 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
129
129
  function SelectRelationProperty(props) {
130
130
  _class_call_check(this, SelectRelationProperty);
131
131
  var _this;
132
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
133
132
  _this = _call_super(this, SelectRelationProperty, [
134
133
  props
135
134
  ]), /**
@@ -181,15 +180,22 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
181
180
  * @public
182
181
  */ _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "defaultShowOptions", void 0 //默认展开选项
183
182
  );
184
- _this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : []);
185
- _this.optionConfig = (_ref1 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref1 !== void 0 ? _ref1 : 'datasource';
183
+ var _props_options;
184
+ _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : []);
185
+ var _props_optionConfig;
186
+ _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'datasource';
186
187
  _this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
187
188
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
188
- _this.caption = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : SelectRelationControl.controlName;
189
- _this.placeholder = (_ref3 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref3 !== void 0 ? _ref3 : getLocaleText('CMD.pleaseSelect', null, '请选择');
190
- _this.defaultValue = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref4 !== void 0 ? _ref4 : '';
191
- _this.openMultistageFilling = (_ref5 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref5 !== void 0 ? _ref5 : false;
192
- _this.showSelectedDetail = (_ref6 = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _ref6 !== void 0 ? _ref6 : false;
189
+ var _props_caption;
190
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectRelationControl.controlName;
191
+ var _props_placeholder;
192
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
193
+ var _props_defaultValue;
194
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
195
+ var _props_openMultistageFilling;
196
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
197
+ var _props_showSelectedDetail;
198
+ _this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
193
199
  _this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
194
200
  _this.multistageFilling = [];
195
201
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
@@ -198,13 +204,19 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
198
204
  (_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
199
205
  });
200
206
  }
201
- _this.canViewForm = (_ref7 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _ref7 !== void 0 ? _ref7 : false;
202
- _this.viewFormModelType = (_ref8 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _ref8 !== void 0 ? _ref8 : 'window';
207
+ var _props_canViewForm;
208
+ _this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
209
+ var _props_viewFormModelType;
210
+ _this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
203
211
  _this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
204
- _this.optionDisplayConfig = (_ref9 = props === null || props === void 0 ? void 0 : props.optionDisplayConfig) !== null && _ref9 !== void 0 ? _ref9 : [];
205
- _this.canSearch = (_ref10 = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _ref10 !== void 0 ? _ref10 : false;
206
- _this.aiContentSearch = (_ref11 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref11 !== void 0 ? _ref11 : false;
207
- _this.defaultShowOptions = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref12 !== void 0 ? _ref12 : false;
212
+ var _props_optionDisplayConfig;
213
+ _this.optionDisplayConfig = (_props_optionDisplayConfig = props === null || props === void 0 ? void 0 : props.optionDisplayConfig) !== null && _props_optionDisplayConfig !== void 0 ? _props_optionDisplayConfig : [];
214
+ var _props_canSearch;
215
+ _this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : false;
216
+ var _props_aiContentSearch;
217
+ _this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
218
+ var _props_defaultShowOptions;
219
+ _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : false;
208
220
  return _this;
209
221
  }
210
222
  return SelectRelationProperty;
@@ -138,7 +138,6 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
138
138
  function TextareaProperty(props) {
139
139
  _class_call_check(this, TextareaProperty);
140
140
  var _this;
141
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
142
141
  _this = _call_super(this, TextareaProperty, [
143
142
  props
144
143
  ]), /**
@@ -195,18 +194,26 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
195
194
  * @defaultValue 1
196
195
  * @public
197
196
  */ _define_property(_this, "lineEllipsis", void 0);
198
- _this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 50000;
199
- _this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
200
- _this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
201
- _this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : TextareaControl.controlName;
202
- _this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseEnter', null, '请输入');
197
+ var _props_maxLength;
198
+ _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
199
+ var _props_minLength;
200
+ _this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
201
+ var _props_defaultValue;
202
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
203
+ var _props_caption;
204
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TextareaControl.controlName;
205
+ var _props_placeholder;
206
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
203
207
  // this.lineEllipsis = props?.lineEllipsis ?? 4
204
208
  // this.autoSize = props?.autoSize ?? false
205
209
  // this.maxRows = props?.maxRows
206
210
  _this.rowHeightSetting = new MetaRowHeight(props === null || props === void 0 ? void 0 : props.rowHeightSetting);
207
- _this.aiContentSearch = (_ref5 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref5 !== void 0 ? _ref5 : false;
208
- _this.aiGeneration = (_ref6 = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _ref6 !== void 0 ? _ref6 : false;
209
- _this.aiOptions = initAiOptions((_ref7 = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _ref7 !== void 0 ? _ref7 : [
211
+ var _props_aiContentSearch;
212
+ _this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
213
+ var _props_aiGeneration;
214
+ _this.aiGeneration = (_props_aiGeneration = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _props_aiGeneration !== void 0 ? _props_aiGeneration : false;
215
+ var _props_aiOptions;
216
+ _this.aiOptions = initAiOptions((_props_aiOptions = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _props_aiOptions !== void 0 ? _props_aiOptions : [
210
217
  {
211
218
  label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
212
219
  cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
@@ -223,8 +230,10 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
223
230
  checked: false
224
231
  }
225
232
  ]);
226
- _this.autoHeight = (_ref8 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref8 !== void 0 ? _ref8 : false;
227
- _this.lineEllipsis = (_ref9 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref9 !== void 0 ? _ref9 : 1;
233
+ var _props_autoHeight;
234
+ _this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
235
+ var _props_lineEllipsis;
236
+ _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
228
237
  return _this;
229
238
  }
230
239
  return TextareaProperty;
@@ -73,6 +73,27 @@ function _is_native_reflect_construct() {
73
73
  import TreeControl from './designer';
74
74
  import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, MultistageFillingItem, TreeDataSourceBind, initSuperDataSourceRules } from '@byteluck-fe/model-driven-core';
75
75
  import { getLocaleText } from '@byteluck-fe/locale-message';
76
+ export var DataQueryTypeEnum = /*#__PURE__*/ function(DataQueryTypeEnum) {
77
+ DataQueryTypeEnum[DataQueryTypeEnum["EQ"] = 0] = "EQ";
78
+ DataQueryTypeEnum[DataQueryTypeEnum["GT"] = 1] = "GT";
79
+ DataQueryTypeEnum[DataQueryTypeEnum["LT"] = 2] = "LT";
80
+ DataQueryTypeEnum[DataQueryTypeEnum["IN"] = 3] = "IN";
81
+ DataQueryTypeEnum[DataQueryTypeEnum["LIKE"] = 4] = "LIKE";
82
+ DataQueryTypeEnum[DataQueryTypeEnum["RANGE"] = 5] = "RANGE";
83
+ DataQueryTypeEnum[DataQueryTypeEnum["GE"] = 6] = "GE";
84
+ DataQueryTypeEnum[DataQueryTypeEnum["LE"] = 7] = "LE";
85
+ DataQueryTypeEnum[DataQueryTypeEnum["CONTAINS_ONE"] = 8] = "CONTAINS_ONE";
86
+ DataQueryTypeEnum[DataQueryTypeEnum["CONCAT_LIKE"] = 9] = "CONCAT_LIKE";
87
+ DataQueryTypeEnum[DataQueryTypeEnum["CONTAINS_IN_WITH_SUB_DEPT"] = 10] = "CONTAINS_IN_WITH_SUB_DEPT";
88
+ DataQueryTypeEnum[DataQueryTypeEnum["NOT_EQ"] = 11] = "NOT_EQ";
89
+ DataQueryTypeEnum[DataQueryTypeEnum["CONCAT_NOT_EQ"] = 12] = "CONCAT_NOT_EQ";
90
+ DataQueryTypeEnum[DataQueryTypeEnum["IS_NULL"] = 13] = "IS_NULL";
91
+ DataQueryTypeEnum[DataQueryTypeEnum["IS_NOT_NULL"] = 14] = "IS_NOT_NULL";
92
+ DataQueryTypeEnum[DataQueryTypeEnum["EQ_FIELD"] = 15] = "EQ_FIELD";
93
+ DataQueryTypeEnum[DataQueryTypeEnum["IS_NULL_OR_EQ_FIELD"] = 16] = "IS_NULL_OR_EQ_FIELD";
94
+ DataQueryTypeEnum[DataQueryTypeEnum["NOT_EQ_FIELD"] = 17] = "NOT_EQ_FIELD";
95
+ return DataQueryTypeEnum;
96
+ }({});
76
97
  var TreePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
77
98
  "use strict";
78
99
  _inherits(TreePropertyRules, BaseControlPropertyRules);
@@ -144,7 +165,6 @@ var TreeProperty = /*#__PURE__*/ function(BaseControlProperty) {
144
165
  function TreeProperty(props) {
145
166
  _class_call_check(this, TreeProperty);
146
167
  var _this;
147
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17;
148
168
  var _props_multistageFilling;
149
169
  _this = _call_super(this, TreeProperty, [
150
170
  props
@@ -154,31 +174,51 @@ var TreeProperty = /*#__PURE__*/ function(BaseControlProperty) {
154
174
  ), _define_property(_this, "isShowFilterItem", void 0 // 是否显示筛选设置
155
175
  ), _define_property(_this, "defaultCollapse", void 0), _define_property(_this, "defaultCollapseLevel", void 0), _define_property(_this, "optionConfig", 'datasource' // 选项配置 datasource
156
176
  ), _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 //是否开启填充
157
- );
158
- _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : TreeControl.controlName;
159
- _this.placeholder = (_ref1 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref1 !== void 0 ? _ref1 : getLocaleText('CMD.pleaseSelect', null, '请选择');
160
- _this.multiple = (_ref2 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref2 !== void 0 ? _ref2 : false;
161
- _this.canSearch = (_ref3 = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _ref3 !== void 0 ? _ref3 : true;
162
- _this.levelType = (_ref4 = props === null || props === void 0 ? void 0 : props.levelType) !== null && _ref4 !== void 0 ? _ref4 : 'all';
163
- _this.optionalLevel = (_ref5 = props === null || props === void 0 ? void 0 : props.optionalLevel) !== null && _ref5 !== void 0 ? _ref5 : 1;
164
- _this.containsSubNode = (_ref6 = props === null || props === void 0 ? void 0 : props.containsSubNode) !== null && _ref6 !== void 0 ? _ref6 : false;
165
- _this.isShowFilterItem = (_ref7 = props === null || props === void 0 ? void 0 : props.isShowFilterItem) !== null && _ref7 !== void 0 ? _ref7 : false;
166
- _this.isShowIncludeSub = (_ref8 = props === null || props === void 0 ? void 0 : props.isShowIncludeSub) !== null && _ref8 !== void 0 ? _ref8 : false;
167
- _this.isDefaultCheckSub = (_ref9 = props === null || props === void 0 ? void 0 : props.isDefaultCheckSub) !== null && _ref9 !== void 0 ? _ref9 : false;
168
- _this.defaultCollapse = (_ref10 = props === null || props === void 0 ? void 0 : props.defaultCollapse) !== null && _ref10 !== void 0 ? _ref10 : 'all';
169
- _this.defaultCollapseLevel = (_ref11 = props === null || props === void 0 ? void 0 : props.defaultCollapseLevel) !== null && _ref11 !== void 0 ? _ref11 : 1;
170
- _this.datasourceBind = new TreeDataSourceBind((_ref12 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref12 !== void 0 ? _ref12 : {
177
+ ), _define_property(_this, "treeQuery", void 0);
178
+ var _props_caption;
179
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TreeControl.controlName;
180
+ var _props_placeholder;
181
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
182
+ var _props_multiple;
183
+ _this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
184
+ var _props_canSearch;
185
+ _this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : true;
186
+ var _props_levelType;
187
+ _this.levelType = (_props_levelType = props === null || props === void 0 ? void 0 : props.levelType) !== null && _props_levelType !== void 0 ? _props_levelType : 'all';
188
+ var _props_optionalLevel;
189
+ _this.optionalLevel = (_props_optionalLevel = props === null || props === void 0 ? void 0 : props.optionalLevel) !== null && _props_optionalLevel !== void 0 ? _props_optionalLevel : 1;
190
+ var _props_containsSubNode;
191
+ _this.containsSubNode = (_props_containsSubNode = props === null || props === void 0 ? void 0 : props.containsSubNode) !== null && _props_containsSubNode !== void 0 ? _props_containsSubNode : false;
192
+ var _props_isShowFilterItem;
193
+ _this.isShowFilterItem = (_props_isShowFilterItem = props === null || props === void 0 ? void 0 : props.isShowFilterItem) !== null && _props_isShowFilterItem !== void 0 ? _props_isShowFilterItem : false;
194
+ var _props_isShowIncludeSub;
195
+ _this.isShowIncludeSub = (_props_isShowIncludeSub = props === null || props === void 0 ? void 0 : props.isShowIncludeSub) !== null && _props_isShowIncludeSub !== void 0 ? _props_isShowIncludeSub : false;
196
+ var _props_isDefaultCheckSub;
197
+ _this.isDefaultCheckSub = (_props_isDefaultCheckSub = props === null || props === void 0 ? void 0 : props.isDefaultCheckSub) !== null && _props_isDefaultCheckSub !== void 0 ? _props_isDefaultCheckSub : false;
198
+ var _props_defaultCollapse;
199
+ _this.defaultCollapse = (_props_defaultCollapse = props === null || props === void 0 ? void 0 : props.defaultCollapse) !== null && _props_defaultCollapse !== void 0 ? _props_defaultCollapse : 'all';
200
+ var _props_defaultCollapseLevel;
201
+ _this.defaultCollapseLevel = (_props_defaultCollapseLevel = props === null || props === void 0 ? void 0 : props.defaultCollapseLevel) !== null && _props_defaultCollapseLevel !== void 0 ? _props_defaultCollapseLevel : 1;
202
+ var _props_datasourceBind;
203
+ _this.datasourceBind = new TreeDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
171
204
  attributes: TreeControl.controlCustomAttributes
172
205
  });
173
- _this.filterItemDatasourceBind = new TreeDataSourceBind((_ref13 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _ref13 !== void 0 ? _ref13 : {
206
+ var _props_filterItemDatasourceBind;
207
+ _this.filterItemDatasourceBind = new TreeDataSourceBind((_props_filterItemDatasourceBind = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _props_filterItemDatasourceBind !== void 0 ? _props_filterItemDatasourceBind : {
174
208
  attributes: TreeControl.controlCustomAttributes
175
209
  });
176
- _this.openMultistageFilling = (_ref14 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref14 !== void 0 ? _ref14 : false;
177
- _this.defaultDisplay = (_ref15 = props === null || props === void 0 ? void 0 : props.defaultDisplay) !== null && _ref15 !== void 0 ? _ref15 : false;
178
- _this.multistageFilling = (_ref16 = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
210
+ var _props_openMultistageFilling;
211
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
212
+ var _props_defaultDisplay;
213
+ _this.defaultDisplay = (_props_defaultDisplay = props === null || props === void 0 ? void 0 : props.defaultDisplay) !== null && _props_defaultDisplay !== void 0 ? _props_defaultDisplay : false;
214
+ var _props_multistageFilling_map;
215
+ _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) {
179
216
  return new MultistageFillingItem(item);
180
- })) !== null && _ref16 !== void 0 ? _ref16 : [];
181
- _this.defaultValue = (_ref17 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref17 !== void 0 ? _ref17 : [];
217
+ })) !== null && _props_multistageFilling_map !== void 0 ? _props_multistageFilling_map : [];
218
+ var _props_defaultValue;
219
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
220
+ var _props_treeQuery;
221
+ _this.treeQuery = (_props_treeQuery = props === null || props === void 0 ? void 0 : props.treeQuery) !== null && _props_treeQuery !== void 0 ? _props_treeQuery : [];
182
222
  return _this;
183
223
  }
184
224
  return TreeProperty;
@@ -110,15 +110,19 @@ var VueFormItemProperty = /*#__PURE__*/ function(BaseControlProperty) {
110
110
  function VueFormItemProperty(props) {
111
111
  _class_call_check(this, VueFormItemProperty);
112
112
  var _this;
113
- var _ref, _ref1, _ref2, _ref3, _ref4;
114
113
  _this = _call_super(this, VueFormItemProperty, [
115
114
  props
116
115
  ]), _define_property(_this, "controlExportName", void 0), _define_property(_this, "permissions", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "isInlineEdit", void 0);
117
- _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : VueFormItemControl.controlName;
118
- _this.defaultValue = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref1 !== void 0 ? _ref1 : undefined;
119
- _this.controlExportName = (_ref2 = props === null || props === void 0 ? void 0 : props.controlExportName) !== null && _ref2 !== void 0 ? _ref2 : '';
120
- _this.permissions = (_ref3 = props === null || props === void 0 ? void 0 : props.permissions) !== null && _ref3 !== void 0 ? _ref3 : [];
121
- _this.isInlineEdit = (_ref4 = props === null || props === void 0 ? void 0 : props.isInlineEdit) !== null && _ref4 !== void 0 ? _ref4 : false;
116
+ var _props_caption;
117
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : VueFormItemControl.controlName;
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 : undefined;
120
+ var _props_controlExportName;
121
+ _this.controlExportName = (_props_controlExportName = props === null || props === void 0 ? void 0 : props.controlExportName) !== null && _props_controlExportName !== void 0 ? _props_controlExportName : '';
122
+ var _props_permissions;
123
+ _this.permissions = (_props_permissions = props === null || props === void 0 ? void 0 : props.permissions) !== null && _props_permissions !== void 0 ? _props_permissions : [];
124
+ var _props_isInlineEdit;
125
+ _this.isInlineEdit = (_props_isInlineEdit = props === null || props === void 0 ? void 0 : props.isInlineEdit) !== null && _props_isInlineEdit !== void 0 ? _props_isInlineEdit : false;
122
126
  return _this;
123
127
  }
124
128
  return VueFormItemProperty;