@byteluck-fe/model-driven-controls 7.0.0-props.7 → 7.0.0-props.9

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 (137) hide show
  1. package/dist/esm/baseControls/BatchDeleteButton/property.js +10 -18
  2. package/dist/esm/baseControls/BatchPrintListButton/property.js +6 -9
  3. package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +3 -4
  4. package/dist/esm/baseControls/BatchSubmissionListButton/property.js +7 -12
  5. package/dist/esm/baseControls/Button/property.js +10 -18
  6. package/dist/esm/baseControls/Comment/property.js +2 -2
  7. package/dist/esm/baseControls/CreateFormListButton/property.js +5 -8
  8. package/dist/esm/baseControls/Dashboard/property.js +9 -16
  9. package/dist/esm/baseControls/Divider/designer.js +33 -1
  10. package/dist/esm/baseControls/Divider/property.js +12 -7
  11. package/dist/esm/baseControls/ExportListButton/property.js +6 -9
  12. package/dist/esm/baseControls/ExportRecordListButton/property.js +3 -4
  13. package/dist/esm/baseControls/FormSelectButton/property.js +4 -6
  14. package/dist/esm/baseControls/ImportRecordListButton/property.js +6 -9
  15. package/dist/esm/baseControls/InvoiceCheckButton/property.js +11 -19
  16. package/dist/esm/baseControls/Link/designer.js +33 -0
  17. package/dist/esm/baseControls/Link/property.js +9 -7
  18. package/dist/esm/baseControls/ListSelectButton/property.js +6 -10
  19. package/dist/esm/baseControls/ListViewSelect/property.js +4 -5
  20. package/dist/esm/baseControls/OperationButton/property.js +7 -12
  21. package/dist/esm/baseControls/ReferenceList/property.js +7 -12
  22. package/dist/esm/baseControls/SubmissionRecordListButton/property.js +3 -4
  23. package/dist/esm/baseControls/Text/designer.js +8 -0
  24. package/dist/esm/baseControls/Text/property.js +18 -13
  25. package/dist/esm/baseControls/TextOcrButton/property.js +11 -19
  26. package/dist/esm/baseControls/Title/property.js +4 -6
  27. package/dist/esm/columnControls/ApprovalStatusColumn/property.js +4 -6
  28. package/dist/esm/columnControls/ArrayColumn/property.js +5 -8
  29. package/dist/esm/columnControls/AutoNumberColumn/property.js +3 -4
  30. package/dist/esm/columnControls/CustomColumn/property.js +4 -6
  31. package/dist/esm/columnControls/DecimalColumn/property.js +8 -14
  32. package/dist/esm/columnControls/DepartmentColumn/property.js +3 -4
  33. package/dist/esm/columnControls/EmployeeColumn/property.js +3 -4
  34. package/dist/esm/columnControls/FileColumn/property.js +3 -4
  35. package/dist/esm/columnControls/GroupColumn/designer.js +2 -1
  36. package/dist/esm/columnControls/GroupColumn/property.js +2 -2
  37. package/dist/esm/columnControls/ImageColumn/property.js +2 -2
  38. package/dist/esm/columnControls/LocationColumn/property.js +3 -4
  39. package/dist/esm/columnControls/OperationColumn/designer.js +12 -4
  40. package/dist/esm/columnControls/OperationColumn/property.js +6 -10
  41. package/dist/esm/columnControls/OrderColumn/property.js +7 -12
  42. package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
  43. package/dist/esm/columnControls/TextColumn/property.js +5 -8
  44. package/dist/esm/columnControls/TimescopeColumn/property.js +5 -8
  45. package/dist/esm/columnControls/TimestampColumn/property.js +5 -8
  46. package/dist/esm/columnControls/VarcharColumn/property.js +7 -12
  47. package/dist/esm/formControls/Address/property.js +6 -10
  48. package/dist/esm/formControls/Amount/property.js +13 -24
  49. package/dist/esm/formControls/Attachment/property.js +26 -42
  50. package/dist/esm/formControls/AutoNumber/property.js +4 -6
  51. package/dist/esm/formControls/Calc/property.js +10 -18
  52. package/dist/esm/formControls/Cascader/property.js +17 -31
  53. package/dist/esm/formControls/Checkbox/property.js +18 -33
  54. package/dist/esm/formControls/DatePicker/designer.js +4 -0
  55. package/dist/esm/formControls/DatePicker/property.js +19 -25
  56. package/dist/esm/formControls/DateRange/property.js +13 -23
  57. package/dist/esm/formControls/Department/property.js +12 -22
  58. package/dist/esm/formControls/Department2/designer.js +8 -0
  59. package/dist/esm/formControls/Department2/property.js +29 -34
  60. package/dist/esm/formControls/ElectronicSignature/property.js +7 -12
  61. package/dist/esm/formControls/Employee/property.js +10 -18
  62. package/dist/esm/formControls/Employee2/designer.js +4 -0
  63. package/dist/esm/formControls/Employee2/property.js +19 -33
  64. package/dist/esm/formControls/Image/designer.js +8 -8
  65. package/dist/esm/formControls/Image/property.js +8 -14
  66. package/dist/esm/formControls/Input/property.js +11 -20
  67. package/dist/esm/formControls/Number/property.js +17 -32
  68. package/dist/esm/formControls/OrganizationSelection/property.js +19 -36
  69. package/dist/esm/formControls/Radio/property.js +15 -28
  70. package/dist/esm/formControls/RichText/designer.js +8 -0
  71. package/dist/esm/formControls/RichText/property.js +51 -21
  72. package/dist/esm/formControls/Score/property.js +11 -19
  73. package/dist/esm/formControls/SearchDateRange/property.js +14 -25
  74. package/dist/esm/formControls/SearchNumberRange/property.js +7 -12
  75. package/dist/esm/formControls/Select/property.js +14 -26
  76. package/dist/esm/formControls/SelectMultiple/property.js +13 -24
  77. package/dist/esm/formControls/SelectRelation/property.js +14 -26
  78. package/dist/esm/formControls/Textarea/property.js +11 -20
  79. package/dist/esm/formControls/TimePicker/property.js +8 -13
  80. package/dist/esm/formControls/TimeRange/property.js +10 -17
  81. package/dist/esm/formControls/Tree/designer.js +2 -1
  82. package/dist/esm/formControls/Tree/property.js +44 -38
  83. package/dist/esm/formControls/VueFormItem/property.js +6 -10
  84. package/dist/esm/formControls/VuePage/property.js +6 -10
  85. package/dist/esm/formControls/WPS/designer.js +9 -9
  86. package/dist/esm/formControls/WPS/property.js +13 -24
  87. package/dist/esm/framework.js +81 -121
  88. package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
  89. package/dist/esm/layoutControls/ActionBar/property.js +4 -6
  90. package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
  91. package/dist/esm/layoutControls/CardGroup/property.js +11 -20
  92. package/dist/esm/layoutControls/Col/property.js +4 -6
  93. package/dist/esm/layoutControls/Collapse/designer.js +2 -2
  94. package/dist/esm/layoutControls/Collapse/property.js +4 -6
  95. package/dist/esm/layoutControls/CollapsePane/property.js +2 -2
  96. package/dist/esm/layoutControls/DataView/property.js +12 -13
  97. package/dist/esm/layoutControls/GridLayoutContainer/property.js +3 -4
  98. package/dist/esm/layoutControls/GridTableColumn/property.js +11 -20
  99. package/dist/esm/layoutControls/ListView/property.js +15 -28
  100. package/dist/esm/layoutControls/Page/property.js +2 -2
  101. package/dist/esm/layoutControls/Position/property.js +5 -8
  102. package/dist/esm/layoutControls/Row/property.js +6 -10
  103. package/dist/esm/layoutControls/Step/designer.js +2 -2
  104. package/dist/esm/layoutControls/Step/property.js +12 -22
  105. package/dist/esm/layoutControls/StepPane/property.js +9 -16
  106. package/dist/esm/layoutControls/SubTableColumn/property.js +6 -10
  107. package/dist/esm/layoutControls/Tab/designer.js +2 -2
  108. package/dist/esm/layoutControls/Tab/property.js +6 -10
  109. package/dist/esm/layoutControls/TabPane/property.js +2 -2
  110. package/dist/esm/layoutControls/TableLayout/designer.js +6 -1
  111. package/dist/esm/layoutControls/TableLayout/property.js +18 -29
  112. package/dist/esm/layoutControls/TableLayoutCol/property.js +11 -20
  113. package/dist/esm/layoutControls/TableLayoutRow/property.js +3 -4
  114. package/dist/esm/layoutControls/TableLayoutWrapper/property.js +4 -6
  115. package/dist/esm/listControls/GridTable/designer.js +12 -4
  116. package/dist/esm/listControls/GridTable/property.js +15 -19
  117. package/dist/esm/listControls/SubTable/property.js +36 -70
  118. package/dist/esm/searchControls/SimpleSearch/property.js +13 -24
  119. package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
  120. package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
  121. package/dist/esm/wrapControls/GridLayoutWrap/property.js +2 -2
  122. package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
  123. package/dist/index.umd.js +1 -1
  124. package/dist/types/baseControls/Divider/property.d.ts +28 -1
  125. package/dist/types/baseControls/Link/property.d.ts +8 -0
  126. package/dist/types/baseControls/Text/property.d.ts +29 -0
  127. package/dist/types/columnControls/GroupColumn/designer.d.ts +1 -1
  128. package/dist/types/formControls/DatePicker/property.d.ts +4 -0
  129. package/dist/types/formControls/Department2/property.d.ts +14 -1
  130. package/dist/types/formControls/Employee2/property.d.ts +2 -0
  131. package/dist/types/formControls/RichText/property.d.ts +4 -0
  132. package/dist/types/formControls/Tree/property.d.ts +31 -0
  133. package/dist/types/framework.d.ts +6 -0
  134. package/dist/types/layoutControls/DataView/property.d.ts +5 -0
  135. package/dist/types/layoutControls/TableLayout/property.d.ts +2 -0
  136. package/dist/types/layoutControls/TableLayoutCol/property.d.ts +5 -5
  137. package/package.json +5 -5
@@ -119,12 +119,12 @@ 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, _ref10, _ref11;
122
123
  _this = _call_super(this, SelectMultipleProperty, [
123
124
  props
124
125
  ]), _define_property(_this, "options", void 0), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "viewFormModelType", void 0), _define_property(_this, "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
125
126
  ), _define_property(_this, "formBind", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "type", void 0), _define_property(_this, "isUseCustomColor", void 0);
126
- var _props_options;
127
- _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
127
+ _this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
128
128
  {
129
129
  label: getLocaleText('CMD.optionOne', null, '选项一'),
130
130
  value: getLocaleText('CMD.optionOne', null, '选项一')
@@ -138,23 +138,15 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
138
138
  value: getLocaleText('CMD.optionThird', null, '选项三')
139
139
  }
140
140
  ]);
141
- var _props_defaultShowOptions;
142
- _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
143
- var _props_optionConfig;
144
- _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
141
+ _this.defaultShowOptions = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref1 !== void 0 ? _ref1 : true;
142
+ _this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'custom';
145
143
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
146
- var _props_caption;
147
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectMultipleControl.controlName;
148
- var _props_placeholder;
149
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
150
- var _props_defaultValue;
151
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
152
- var _props_openMultistageFilling;
153
- _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
154
- var _props_type;
155
- _this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
156
- var _props_isUseCustomColor;
157
- _this.isUseCustomColor = (_props_isUseCustomColor = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _props_isUseCustomColor !== void 0 ? _props_isUseCustomColor : false;
144
+ _this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : SelectMultipleControl.controlName;
145
+ _this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseSelect', null, '请选择');
146
+ _this.defaultValue = (_ref5 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref5 !== void 0 ? _ref5 : [];
147
+ _this.openMultistageFilling = (_ref6 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref6 !== void 0 ? _ref6 : false;
148
+ _this.type = (_ref7 = props === null || props === void 0 ? void 0 : props.type) !== null && _ref7 !== void 0 ? _ref7 : 'default';
149
+ _this.isUseCustomColor = (_ref8 = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _ref8 !== void 0 ? _ref8 : false;
158
150
  _this.multistageFilling = [];
159
151
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
160
152
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -162,13 +154,10 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
162
154
  (_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
163
155
  });
164
156
  }
165
- var _props_canViewForm;
166
- _this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
167
- var _props_viewFormModelType;
168
- _this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
157
+ _this.canViewForm = (_ref9 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _ref9 !== void 0 ? _ref9 : false;
158
+ _this.viewFormModelType = (_ref10 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _ref10 !== void 0 ? _ref10 : 'window';
169
159
  _this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
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;
160
+ _this.aiContentSearch = (_ref11 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref11 !== void 0 ? _ref11 : false;
172
161
  return _this;
173
162
  }
174
163
  return SelectMultipleProperty;
@@ -126,26 +126,20 @@ var SelectRelationProperty = /*#__PURE__*/ function(BaseControlProperty) {
126
126
  function SelectRelationProperty(props) {
127
127
  _class_call_check(this, SelectRelationProperty);
128
128
  var _this;
129
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12;
129
130
  _this = _call_super(this, SelectRelationProperty, [
130
131
  props
131
132
  ]), _define_property(_this, "options", void 0), _define_property(_this, "optionConfig", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "listPageBind", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "viewFormModelType", void 0), _define_property(_this, "canViewForm", void 0 //https://www.tapd.cn/49877295/prong/stories/view/1149877295001003559
132
133
  ), _define_property(_this, "formBind", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "showSelectedDetail", void 0), _define_property(_this, "selectedContentConfig", void 0), _define_property(_this, "optionDisplayConfig", void 0), _define_property(_this, "canSearch", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "defaultShowOptions", void 0);
133
- var _props_options;
134
- _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : []);
135
- var _props_optionConfig;
136
- _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'datasource';
134
+ _this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : []);
135
+ _this.optionConfig = (_ref1 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref1 !== void 0 ? _ref1 : 'datasource';
137
136
  _this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
138
137
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
139
- var _props_caption;
140
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectRelationControl.controlName;
141
- var _props_placeholder;
142
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
143
- var _props_defaultValue;
144
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
145
- var _props_openMultistageFilling;
146
- _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
147
- var _props_showSelectedDetail;
148
- _this.showSelectedDetail = (_props_showSelectedDetail = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _props_showSelectedDetail !== void 0 ? _props_showSelectedDetail : false;
138
+ _this.caption = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : SelectRelationControl.controlName;
139
+ _this.placeholder = (_ref3 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref3 !== void 0 ? _ref3 : getLocaleText('CMD.pleaseSelect', null, '请选择');
140
+ _this.defaultValue = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref4 !== void 0 ? _ref4 : '';
141
+ _this.openMultistageFilling = (_ref5 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref5 !== void 0 ? _ref5 : false;
142
+ _this.showSelectedDetail = (_ref6 = props === null || props === void 0 ? void 0 : props.showSelectedDetail) !== null && _ref6 !== void 0 ? _ref6 : false;
149
143
  _this.selectedContentConfig = new SelectedContentConfig(props === null || props === void 0 ? void 0 : props.selectedContentConfig);
150
144
  _this.multistageFilling = [];
151
145
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
@@ -154,19 +148,13 @@ var SelectRelationProperty = /*#__PURE__*/ function(BaseControlProperty) {
154
148
  (_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
155
149
  });
156
150
  }
157
- var _props_canViewForm;
158
- _this.canViewForm = (_props_canViewForm = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _props_canViewForm !== void 0 ? _props_canViewForm : false;
159
- var _props_viewFormModelType;
160
- _this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
151
+ _this.canViewForm = (_ref7 = props === null || props === void 0 ? void 0 : props.canViewForm) !== null && _ref7 !== void 0 ? _ref7 : false;
152
+ _this.viewFormModelType = (_ref8 = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _ref8 !== void 0 ? _ref8 : 'window';
161
153
  _this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
162
- var _props_optionDisplayConfig;
163
- _this.optionDisplayConfig = (_props_optionDisplayConfig = props === null || props === void 0 ? void 0 : props.optionDisplayConfig) !== null && _props_optionDisplayConfig !== void 0 ? _props_optionDisplayConfig : [];
164
- var _props_canSearch;
165
- _this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : false;
166
- var _props_aiContentSearch;
167
- _this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
168
- var _props_defaultShowOptions;
169
- _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : false;
154
+ _this.optionDisplayConfig = (_ref9 = props === null || props === void 0 ? void 0 : props.optionDisplayConfig) !== null && _ref9 !== void 0 ? _ref9 : [];
155
+ _this.canSearch = (_ref10 = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _ref10 !== void 0 ? _ref10 : false;
156
+ _this.aiContentSearch = (_ref11 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref11 !== void 0 ? _ref11 : false;
157
+ _this.defaultShowOptions = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref12 !== void 0 ? _ref12 : false;
170
158
  return _this;
171
159
  }
172
160
  return SelectRelationProperty;
@@ -135,29 +135,22 @@ var TextareaProperty = /*#__PURE__*/ function(BaseControlProperty) {
135
135
  function TextareaProperty(props) {
136
136
  _class_call_check(this, TextareaProperty);
137
137
  var _this;
138
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
138
139
  _this = _call_super(this, TextareaProperty, [
139
140
  props
140
141
  ]), _define_property(_this, "maxLength", void 0), _define_property(_this, "minLength", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "rowHeightSetting", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "aiGeneration", void 0), _define_property(_this, "aiOptions", void 0), _define_property(_this, "autoHeight", void 0), _define_property(_this, "lineEllipsis", void 0);
141
- var _props_maxLength;
142
- _this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
143
- var _props_minLength;
144
- _this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
145
- var _props_defaultValue;
146
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
147
- var _props_caption;
148
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TextareaControl.controlName;
149
- var _props_placeholder;
150
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
142
+ _this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 50000;
143
+ _this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
144
+ _this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
145
+ _this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : TextareaControl.controlName;
146
+ _this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseEnter', null, '请输入');
151
147
  // this.lineEllipsis = props?.lineEllipsis ?? 4
152
148
  // this.autoSize = props?.autoSize ?? false
153
149
  // this.maxRows = props?.maxRows
154
150
  _this.rowHeightSetting = new MetaRowHeight(props === null || props === void 0 ? void 0 : props.rowHeightSetting);
155
- var _props_aiContentSearch;
156
- _this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
157
- var _props_aiGeneration;
158
- _this.aiGeneration = (_props_aiGeneration = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _props_aiGeneration !== void 0 ? _props_aiGeneration : false;
159
- var _props_aiOptions;
160
- _this.aiOptions = initAiOptions((_props_aiOptions = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _props_aiOptions !== void 0 ? _props_aiOptions : [
151
+ _this.aiContentSearch = (_ref5 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref5 !== void 0 ? _ref5 : false;
152
+ _this.aiGeneration = (_ref6 = props === null || props === void 0 ? void 0 : props.aiGeneration) !== null && _ref6 !== void 0 ? _ref6 : false;
153
+ _this.aiOptions = initAiOptions((_ref7 = props === null || props === void 0 ? void 0 : props.aiOptions) !== null && _ref7 !== void 0 ? _ref7 : [
161
154
  {
162
155
  label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
163
156
  cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
@@ -174,10 +167,8 @@ var TextareaProperty = /*#__PURE__*/ function(BaseControlProperty) {
174
167
  checked: false
175
168
  }
176
169
  ]);
177
- var _props_autoHeight;
178
- _this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
179
- var _props_lineEllipsis;
180
- _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
170
+ _this.autoHeight = (_ref8 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref8 !== void 0 ? _ref8 : false;
171
+ _this.lineEllipsis = (_ref9 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref9 !== void 0 ? _ref9 : 1;
181
172
  return _this;
182
173
  }
183
174
  return TextareaProperty;
@@ -79,24 +79,19 @@ var TimePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
79
79
  function TimePickerProperty(props) {
80
80
  _class_call_check(this, TimePickerProperty);
81
81
  var _this;
82
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
82
83
  var _props_limitTimeList;
83
84
  _this = _call_super(this, TimePickerProperty, [
84
85
  props
85
86
  ]), _define_property(_this, "format", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "limitTimeList", void 0), _define_property(_this, "isInternational", void 0);
86
- var _props_format;
87
- _this.format = (_props_format = props === null || props === void 0 ? void 0 : props.format) !== null && _props_format !== void 0 ? _props_format : '';
88
- var _props_caption;
89
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TimePickerControl.controlName;
90
- var _props_placeholder;
91
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入时间';
92
- var _props_defaultValue;
93
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
94
- var _props_limitTimeList_map;
95
- _this.limitTimeList = (_props_limitTimeList_map = props === null || props === void 0 ? void 0 : (_props_limitTimeList = props.limitTimeList) === null || _props_limitTimeList === void 0 ? void 0 : _props_limitTimeList.map(function(item) {
87
+ _this.format = (_ref = props === null || props === void 0 ? void 0 : props.format) !== null && _ref !== void 0 ? _ref : '';
88
+ _this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : TimePickerControl.controlName;
89
+ _this.placeholder = (_ref2 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref2 !== void 0 ? _ref2 : '请输入时间';
90
+ _this.defaultValue = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
91
+ _this.limitTimeList = (_ref4 = props === null || props === void 0 ? void 0 : (_props_limitTimeList = props.limitTimeList) === null || _props_limitTimeList === void 0 ? void 0 : _props_limitTimeList.map(function(item) {
96
92
  return new LimitTime(item);
97
- })) !== null && _props_limitTimeList_map !== void 0 ? _props_limitTimeList_map : [];
98
- var _props_isInternational;
99
- _this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
93
+ })) !== null && _ref4 !== void 0 ? _ref4 : [];
94
+ _this.isInternational = (_ref5 = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _ref5 !== void 0 ? _ref5 : false;
100
95
  return _this;
101
96
  }
102
97
  return TimePickerProperty;
@@ -112,30 +112,23 @@ var TimeRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
112
112
  function TimeRangeProperty(props) {
113
113
  _class_call_check(this, TimeRangeProperty);
114
114
  var _this;
115
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
115
116
  var _props_limitTimeList;
116
117
  _this = _call_super(this, TimeRangeProperty, [
117
118
  props
118
119
  ]), _define_property(_this, "dataBind", void 0), _define_property(_this, "rangeMin", void 0), _define_property(_this, "rangeMax", void 0), _define_property(_this, "placeholderStart", void 0), _define_property(_this, "placeholderEnd", void 0), _define_property(_this, "format", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "limitTimeList", void 0), _define_property(_this, "isInternational", void 0);
119
120
  _this.dataBind = new RangeDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
120
121
  _this.defaultValue = new RangeDateValue(props === null || props === void 0 ? void 0 : props.defaultValue);
121
- var _props_format;
122
- _this.format = (_props_format = props === null || props === void 0 ? void 0 : props.format) !== null && _props_format !== void 0 ? _props_format : '';
123
- var _props_rangeMin;
124
- _this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
125
- var _props_rangeMax;
126
- _this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
127
- var _props_placeholderStart;
128
- _this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : '开始时间';
129
- var _props_placeholderEnd;
130
- _this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : '结束时间';
131
- var _props_caption;
132
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TimeRangeControl.controlName;
133
- var _props_limitTimeList_map;
134
- _this.limitTimeList = (_props_limitTimeList_map = props === null || props === void 0 ? void 0 : (_props_limitTimeList = props.limitTimeList) === null || _props_limitTimeList === void 0 ? void 0 : _props_limitTimeList.map(function(item) {
122
+ _this.format = (_ref = props === null || props === void 0 ? void 0 : props.format) !== null && _ref !== void 0 ? _ref : '';
123
+ _this.rangeMin = (_ref1 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref1 !== void 0 ? _ref1 : '';
124
+ _this.rangeMax = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref2 !== void 0 ? _ref2 : '';
125
+ _this.placeholderStart = (_ref3 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _ref3 !== void 0 ? _ref3 : '开始时间';
126
+ _this.placeholderEnd = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _ref4 !== void 0 ? _ref4 : '结束时间';
127
+ _this.caption = (_ref5 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref5 !== void 0 ? _ref5 : TimeRangeControl.controlName;
128
+ _this.limitTimeList = (_ref6 = props === null || props === void 0 ? void 0 : (_props_limitTimeList = props.limitTimeList) === null || _props_limitTimeList === void 0 ? void 0 : _props_limitTimeList.map(function(item) {
135
129
  return new LimitTime(item);
136
- })) !== null && _props_limitTimeList_map !== void 0 ? _props_limitTimeList_map : [];
137
- var _props_isInternational;
138
- _this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
130
+ })) !== null && _ref6 !== void 0 ? _ref6 : [];
131
+ _this.isInternational = (_ref7 = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _ref7 !== void 0 ? _ref7 : false;
139
132
  return _this;
140
133
  }
141
134
  return TimeRangeProperty;
@@ -141,7 +141,8 @@ var TreeControl = /*#__PURE__*/ function(DesignerFormControl) {
141
141
  }(DesignerFormControl);
142
142
  _define_property(TreeControl, "controlEventKeys", [
143
143
  'on_change',
144
- 'on_click'
144
+ 'on_click',
145
+ 'on_tree_search'
145
146
  ]);
146
147
  _define_property(TreeControl, "controlFieldType", FieldTypes.ARRAY);
147
148
  _define_property(TreeControl, "setting", [
@@ -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,52 +165,37 @@ var TreeProperty = /*#__PURE__*/ function(BaseControlProperty) {
144
165
  function TreeProperty(props) {
145
166
  _class_call_check(this, TreeProperty);
146
167
  var _this;
168
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18;
147
169
  var _props_multistageFilling;
148
170
  _this = _call_super(this, TreeProperty, [
149
171
  props
150
- ]), _define_property(_this, "placeholder", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "canSearch", void 0), _define_property(_this, "levelType", void 0), _define_property(_this, "optionalLevel", void 0), _define_property(_this, "containsSubNode", void 0), _define_property(_this, "defaultDisplay", void 0), _define_property(_this, "isShowIncludeSub", void 0), _define_property(_this, "isDefaultCheckSub", void 0), _define_property(_this, "isShowFilterItem", void 0), _define_property(_this, "defaultCollapse", void 0), _define_property(_this, "defaultCollapseLevel", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0);
151
- var _props_caption;
152
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TreeControl.controlName;
153
- var _props_placeholder;
154
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
155
- var _props_multiple;
156
- _this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
157
- var _props_canSearch;
158
- _this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : true;
159
- var _props_levelType;
160
- _this.levelType = (_props_levelType = props === null || props === void 0 ? void 0 : props.levelType) !== null && _props_levelType !== void 0 ? _props_levelType : 'all';
161
- var _props_optionalLevel;
162
- _this.optionalLevel = (_props_optionalLevel = props === null || props === void 0 ? void 0 : props.optionalLevel) !== null && _props_optionalLevel !== void 0 ? _props_optionalLevel : 1;
163
- var _props_containsSubNode;
164
- _this.containsSubNode = (_props_containsSubNode = props === null || props === void 0 ? void 0 : props.containsSubNode) !== null && _props_containsSubNode !== void 0 ? _props_containsSubNode : false;
165
- var _props_isShowFilterItem;
166
- _this.isShowFilterItem = (_props_isShowFilterItem = props === null || props === void 0 ? void 0 : props.isShowFilterItem) !== null && _props_isShowFilterItem !== void 0 ? _props_isShowFilterItem : false;
167
- var _props_isShowIncludeSub;
168
- _this.isShowIncludeSub = (_props_isShowIncludeSub = props === null || props === void 0 ? void 0 : props.isShowIncludeSub) !== null && _props_isShowIncludeSub !== void 0 ? _props_isShowIncludeSub : false;
169
- var _props_isDefaultCheckSub;
170
- _this.isDefaultCheckSub = (_props_isDefaultCheckSub = props === null || props === void 0 ? void 0 : props.isDefaultCheckSub) !== null && _props_isDefaultCheckSub !== void 0 ? _props_isDefaultCheckSub : false;
171
- var _props_defaultCollapse;
172
- _this.defaultCollapse = (_props_defaultCollapse = props === null || props === void 0 ? void 0 : props.defaultCollapse) !== null && _props_defaultCollapse !== void 0 ? _props_defaultCollapse : 'all';
173
- var _props_defaultCollapseLevel;
174
- _this.defaultCollapseLevel = (_props_defaultCollapseLevel = props === null || props === void 0 ? void 0 : props.defaultCollapseLevel) !== null && _props_defaultCollapseLevel !== void 0 ? _props_defaultCollapseLevel : 1;
175
- var _props_datasourceBind;
176
- _this.datasourceBind = new TreeDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
172
+ ]), _define_property(_this, "placeholder", void 0), _define_property(_this, "multiple", void 0), _define_property(_this, "canSearch", void 0), _define_property(_this, "levelType", void 0), _define_property(_this, "optionalLevel", void 0), _define_property(_this, "containsSubNode", void 0), _define_property(_this, "defaultDisplay", void 0), _define_property(_this, "isShowIncludeSub", void 0), _define_property(_this, "isDefaultCheckSub", void 0), _define_property(_this, "isShowFilterItem", void 0), _define_property(_this, "defaultCollapse", void 0), _define_property(_this, "defaultCollapseLevel", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
173
+ ), _define_property(_this, "treeQuery", void 0);
174
+ _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : TreeControl.controlName;
175
+ _this.placeholder = (_ref1 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref1 !== void 0 ? _ref1 : getLocaleText('CMD.pleaseSelect', null, '请选择');
176
+ _this.multiple = (_ref2 = props === null || props === void 0 ? void 0 : props.multiple) !== null && _ref2 !== void 0 ? _ref2 : false;
177
+ _this.canSearch = (_ref3 = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _ref3 !== void 0 ? _ref3 : true;
178
+ _this.levelType = (_ref4 = props === null || props === void 0 ? void 0 : props.levelType) !== null && _ref4 !== void 0 ? _ref4 : 'all';
179
+ _this.optionalLevel = (_ref5 = props === null || props === void 0 ? void 0 : props.optionalLevel) !== null && _ref5 !== void 0 ? _ref5 : 1;
180
+ _this.containsSubNode = (_ref6 = props === null || props === void 0 ? void 0 : props.containsSubNode) !== null && _ref6 !== void 0 ? _ref6 : false;
181
+ _this.isShowFilterItem = (_ref7 = props === null || props === void 0 ? void 0 : props.isShowFilterItem) !== null && _ref7 !== void 0 ? _ref7 : false;
182
+ _this.isShowIncludeSub = (_ref8 = props === null || props === void 0 ? void 0 : props.isShowIncludeSub) !== null && _ref8 !== void 0 ? _ref8 : false;
183
+ _this.isDefaultCheckSub = (_ref9 = props === null || props === void 0 ? void 0 : props.isDefaultCheckSub) !== null && _ref9 !== void 0 ? _ref9 : false;
184
+ _this.defaultCollapse = (_ref10 = props === null || props === void 0 ? void 0 : props.defaultCollapse) !== null && _ref10 !== void 0 ? _ref10 : 'all';
185
+ _this.defaultCollapseLevel = (_ref11 = props === null || props === void 0 ? void 0 : props.defaultCollapseLevel) !== null && _ref11 !== void 0 ? _ref11 : 1;
186
+ _this.datasourceBind = new TreeDataSourceBind((_ref12 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref12 !== void 0 ? _ref12 : {
177
187
  attributes: TreeControl.controlCustomAttributes
178
188
  });
179
- var _props_filterItemDatasourceBind;
180
- _this.filterItemDatasourceBind = new TreeDataSourceBind((_props_filterItemDatasourceBind = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _props_filterItemDatasourceBind !== void 0 ? _props_filterItemDatasourceBind : {
189
+ _this.filterItemDatasourceBind = new TreeDataSourceBind((_ref13 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _ref13 !== void 0 ? _ref13 : {
181
190
  attributes: TreeControl.controlCustomAttributes
182
191
  });
183
- var _props_openMultistageFilling;
184
- _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
185
- var _props_defaultDisplay;
186
- _this.defaultDisplay = (_props_defaultDisplay = props === null || props === void 0 ? void 0 : props.defaultDisplay) !== null && _props_defaultDisplay !== void 0 ? _props_defaultDisplay : false;
187
- var _props_multistageFilling_map;
188
- _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) {
192
+ _this.openMultistageFilling = (_ref14 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref14 !== void 0 ? _ref14 : false;
193
+ _this.defaultDisplay = (_ref15 = props === null || props === void 0 ? void 0 : props.defaultDisplay) !== null && _ref15 !== void 0 ? _ref15 : false;
194
+ _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) {
189
195
  return new MultistageFillingItem(item);
190
- })) !== null && _props_multistageFilling_map !== void 0 ? _props_multistageFilling_map : [];
191
- var _props_defaultValue;
192
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
196
+ })) !== null && _ref16 !== void 0 ? _ref16 : [];
197
+ _this.defaultValue = (_ref17 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref17 !== void 0 ? _ref17 : [];
198
+ _this.treeQuery = (_ref18 = props === null || props === void 0 ? void 0 : props.treeQuery) !== null && _ref18 !== void 0 ? _ref18 : [];
193
199
  return _this;
194
200
  }
195
201
  return TreeProperty;
@@ -110,19 +110,15 @@ 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;
113
114
  _this = _call_super(this, VueFormItemProperty, [
114
115
  props
115
116
  ]), _define_property(_this, "controlExportName", void 0), _define_property(_this, "permissions", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "isInlineEdit", void 0);
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;
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;
126
122
  return _this;
127
123
  }
128
124
  return VueFormItemProperty;
@@ -110,19 +110,15 @@ var VuePageProperty = /*#__PURE__*/ function(BaseControlProperty) {
110
110
  function VuePageProperty(props) {
111
111
  _class_call_check(this, VuePageProperty);
112
112
  var _this;
113
+ var _ref, _ref1, _ref2, _ref3, _ref4;
113
114
  _this = _call_super(this, VuePageProperty, [
114
115
  props
115
116
  ]), _define_property(_this, "controlExportName", void 0), _define_property(_this, "permissions", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "isInlineEdit", void 0);
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 : VuePageControl.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;
117
+ _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : VuePageControl.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;
126
122
  return _this;
127
123
  }
128
124
  return VuePageProperty;
@@ -1,11 +1,4 @@
1
- /*
2
- * @Author: Elvis shuaiqy@hotmail.com
3
- * @Date: 2022-07-07 00:12:37
4
- * @LastEditors: Elvis shuaiqy@hotmail.com
5
- * @LastEditTime: 2022-07-25 17:51:51
6
- * @FilePath: /model-driven/packages/controls/src/formControls/WPS/designer.ts
7
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
- */ function _assert_this_initialized(self) {
1
+ function _assert_this_initialized(self) {
9
2
  if (self === void 0) {
10
3
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
11
4
  }
@@ -91,7 +84,14 @@ function _is_native_reflect_construct() {
91
84
  return !!result;
92
85
  })();
93
86
  }
94
- import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
87
+ /*
88
+ * @Author: Elvis shuaiqy@hotmail.com
89
+ * @Date: 2022-07-07 00:12:37
90
+ * @LastEditors: Elvis shuaiqy@hotmail.com
91
+ * @LastEditTime: 2022-07-25 17:51:51
92
+ * @FilePath: /model-driven/packages/controls/src/formControls/WPS/designer.ts
93
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
94
+ */ import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
95
95
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
96
96
  import WPSProperty from './property';
97
97
  import { getLocaleText } from '@byteluck-fe/locale-message';
@@ -148,34 +148,23 @@ var WPSProperty = /*#__PURE__*/ function(BaseControlProperty) {
148
148
  function WPSProperty(props) {
149
149
  _class_call_check(this, WPSProperty);
150
150
  var _this;
151
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
151
152
  _this = _call_super(this, WPSProperty, [
152
153
  props
153
154
  ]), _define_property(_this, "content", void 0), _define_property(_this, "canAdd", void 0), _define_property(_this, "addLocal", void 0), _define_property(_this, "addOnline", void 0), _define_property(_this, "canDownload", void 0), _define_property(_this, "canEdit", void 0), _define_property(_this, "canExport", void 0), _define_property(_this, "canDelete", void 0), _define_property(_this, "wpsSetting", void 0), _define_property(_this, "maxSize", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "revisionsMode", void 0);
154
- var _props_caption;
155
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : WPSControl.controlName;
156
- var _props_content;
157
- _this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : getLocaleText('CMD.createWPS', null, '新建文档');
158
- var _props_canAdd;
159
- _this.canAdd = (_props_canAdd = props === null || props === void 0 ? void 0 : props.canAdd) !== null && _props_canAdd !== void 0 ? _props_canAdd : true;
160
- var _props_addLocal;
161
- _this.addLocal = (_props_addLocal = props === null || props === void 0 ? void 0 : props.addLocal) !== null && _props_addLocal !== void 0 ? _props_addLocal : true;
162
- var _props_addOnline;
163
- _this.addOnline = (_props_addOnline = props === null || props === void 0 ? void 0 : props.addOnline) !== null && _props_addOnline !== void 0 ? _props_addOnline : true;
164
- var _props_canEdit;
165
- _this.canEdit = (_props_canEdit = props === null || props === void 0 ? void 0 : props.canEdit) !== null && _props_canEdit !== void 0 ? _props_canEdit : true;
166
- var _props_canDownload;
167
- _this.canDownload = (_props_canDownload = props === null || props === void 0 ? void 0 : props.canDownload) !== null && _props_canDownload !== void 0 ? _props_canDownload : true;
168
- var _props_canExport;
169
- _this.canExport = (_props_canExport = props === null || props === void 0 ? void 0 : props.canExport) !== null && _props_canExport !== void 0 ? _props_canExport : true;
170
- var _props_canDelete;
171
- _this.canDelete = (_props_canDelete = props === null || props === void 0 ? void 0 : props.canDelete) !== null && _props_canDelete !== void 0 ? _props_canDelete : false;
172
- var _props_maxSize;
173
- _this.maxSize = (_props_maxSize = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _props_maxSize !== void 0 ? _props_maxSize : MB10;
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 : [];
155
+ _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : WPSControl.controlName;
156
+ _this.content = (_ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && _ref1 !== void 0 ? _ref1 : getLocaleText('CMD.createWPS', null, '新建文档');
157
+ _this.canAdd = (_ref2 = props === null || props === void 0 ? void 0 : props.canAdd) !== null && _ref2 !== void 0 ? _ref2 : true;
158
+ _this.addLocal = (_ref3 = props === null || props === void 0 ? void 0 : props.addLocal) !== null && _ref3 !== void 0 ? _ref3 : true;
159
+ _this.addOnline = (_ref4 = props === null || props === void 0 ? void 0 : props.addOnline) !== null && _ref4 !== void 0 ? _ref4 : true;
160
+ _this.canEdit = (_ref5 = props === null || props === void 0 ? void 0 : props.canEdit) !== null && _ref5 !== void 0 ? _ref5 : true;
161
+ _this.canDownload = (_ref6 = props === null || props === void 0 ? void 0 : props.canDownload) !== null && _ref6 !== void 0 ? _ref6 : true;
162
+ _this.canExport = (_ref7 = props === null || props === void 0 ? void 0 : props.canExport) !== null && _ref7 !== void 0 ? _ref7 : true;
163
+ _this.canDelete = (_ref8 = props === null || props === void 0 ? void 0 : props.canDelete) !== null && _ref8 !== void 0 ? _ref8 : false;
164
+ _this.maxSize = (_ref9 = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _ref9 !== void 0 ? _ref9 : MB10;
165
+ _this.defaultValue = (_ref10 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref10 !== void 0 ? _ref10 : [];
176
166
  _this.wpsSetting = new WPSSetting(props === null || props === void 0 ? void 0 : props.wpsSetting);
177
- var _props_revisionsMode;
178
- _this.revisionsMode = (_props_revisionsMode = props === null || props === void 0 ? void 0 : props.revisionsMode) !== null && _props_revisionsMode !== void 0 ? _props_revisionsMode : false;
167
+ _this.revisionsMode = (_ref11 = props === null || props === void 0 ? void 0 : props.revisionsMode) !== null && _ref11 !== void 0 ? _ref11 : false;
179
168
  return _this;
180
169
  }
181
170
  return WPSProperty;