@byteluck-fe/model-driven-controls 7.0.0-props.13 → 7.0.0-props.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 (116) 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/designer.js +25 -0
  10. package/dist/esm/baseControls/Divider/property.js +14 -8
  11. package/dist/esm/baseControls/ExportListButton/property.js +9 -6
  12. package/dist/esm/baseControls/ExportRecordListButton/property.js +4 -3
  13. package/dist/esm/baseControls/FormSelectButton/property.js +6 -4
  14. package/dist/esm/baseControls/ImportRecordListButton/property.js +9 -6
  15. package/dist/esm/baseControls/InvoiceCheckButton/property.js +19 -11
  16. package/dist/esm/baseControls/Link/property.js +18 -10
  17. package/dist/esm/baseControls/ListSelectButton/property.js +10 -6
  18. package/dist/esm/baseControls/ListViewSelect/property.js +5 -4
  19. package/dist/esm/baseControls/OperationButton/property.js +12 -7
  20. package/dist/esm/baseControls/ReferenceList/property.js +12 -7
  21. package/dist/esm/baseControls/SubmissionRecordListButton/property.js +4 -3
  22. package/dist/esm/baseControls/Text/property.js +16 -9
  23. package/dist/esm/baseControls/TextOcrButton/property.js +19 -11
  24. package/dist/esm/baseControls/Title/property.js +6 -4
  25. package/dist/esm/columnControls/ApprovalStatusColumn/property.js +6 -4
  26. package/dist/esm/columnControls/ArrayColumn/property.js +8 -5
  27. package/dist/esm/columnControls/AutoNumberColumn/property.js +4 -3
  28. package/dist/esm/columnControls/CustomColumn/property.js +6 -4
  29. package/dist/esm/columnControls/DecimalColumn/property.js +14 -8
  30. package/dist/esm/columnControls/DepartmentColumn/property.js +4 -3
  31. package/dist/esm/columnControls/EmployeeColumn/property.js +4 -3
  32. package/dist/esm/columnControls/FileColumn/property.js +4 -3
  33. package/dist/esm/columnControls/GroupColumn/property.js +2 -2
  34. package/dist/esm/columnControls/ImageColumn/property.js +2 -2
  35. package/dist/esm/columnControls/LocationColumn/property.js +4 -3
  36. package/dist/esm/columnControls/OperationColumn/designer.js +4 -12
  37. package/dist/esm/columnControls/OperationColumn/property.js +10 -6
  38. package/dist/esm/columnControls/OrderColumn/property.js +12 -7
  39. package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
  40. package/dist/esm/columnControls/TextColumn/property.js +8 -5
  41. package/dist/esm/columnControls/TimescopeColumn/property.js +8 -5
  42. package/dist/esm/columnControls/TimestampColumn/property.js +8 -5
  43. package/dist/esm/columnControls/VarcharColumn/property.js +12 -7
  44. package/dist/esm/formControls/Address/property.js +10 -6
  45. package/dist/esm/formControls/Amount/property.js +24 -13
  46. package/dist/esm/formControls/Attachment/property.js +42 -26
  47. package/dist/esm/formControls/AutoNumber/property.js +6 -4
  48. package/dist/esm/formControls/Calc/property.js +18 -10
  49. package/dist/esm/formControls/Cascader/property.js +31 -17
  50. package/dist/esm/formControls/Checkbox/property.js +33 -18
  51. package/dist/esm/formControls/DatePicker/property.js +27 -15
  52. package/dist/esm/formControls/DateRange/property.js +23 -13
  53. package/dist/esm/formControls/Department/property.js +22 -12
  54. package/dist/esm/formControls/Department2/property.js +37 -20
  55. package/dist/esm/formControls/ElectronicSignature/property.js +12 -7
  56. package/dist/esm/formControls/Employee/property.js +18 -10
  57. package/dist/esm/formControls/Employee2/property.js +34 -18
  58. package/dist/esm/formControls/Image/designer.js +8 -8
  59. package/dist/esm/formControls/Image/property.js +14 -8
  60. package/dist/esm/formControls/Input/property.js +20 -11
  61. package/dist/esm/formControls/Number/property.js +32 -17
  62. package/dist/esm/formControls/OrganizationSelection/property.js +36 -19
  63. package/dist/esm/formControls/Radio/property.js +28 -15
  64. package/dist/esm/formControls/RichText/property.js +24 -13
  65. package/dist/esm/formControls/Score/property.js +19 -11
  66. package/dist/esm/formControls/SearchDateRange/property.js +25 -14
  67. package/dist/esm/formControls/SearchNumberRange/property.js +12 -7
  68. package/dist/esm/formControls/Select/property.js +26 -14
  69. package/dist/esm/formControls/SelectMultiple/property.js +24 -13
  70. package/dist/esm/formControls/SelectRelation/property.js +26 -14
  71. package/dist/esm/formControls/Textarea/property.js +20 -11
  72. package/dist/esm/formControls/TimePicker/property.js +15 -9
  73. package/dist/esm/formControls/TimeRange/property.js +19 -11
  74. package/dist/esm/formControls/Tree/property.js +39 -21
  75. package/dist/esm/formControls/VueFormItem/property.js +10 -6
  76. package/dist/esm/formControls/VuePage/property.js +10 -6
  77. package/dist/esm/formControls/WPS/designer.js +9 -9
  78. package/dist/esm/formControls/WPS/property.js +24 -13
  79. package/dist/esm/framework.js +121 -74
  80. package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
  81. package/dist/esm/layoutControls/ActionBar/property.js +6 -4
  82. package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
  83. package/dist/esm/layoutControls/CardGroup/property.js +20 -11
  84. package/dist/esm/layoutControls/Col/property.js +6 -4
  85. package/dist/esm/layoutControls/Collapse/designer.js +2 -2
  86. package/dist/esm/layoutControls/Collapse/property.js +6 -4
  87. package/dist/esm/layoutControls/CollapsePane/property.js +2 -2
  88. package/dist/esm/layoutControls/DataView/property.js +14 -8
  89. package/dist/esm/layoutControls/GridLayoutContainer/property.js +4 -3
  90. package/dist/esm/layoutControls/GridTableColumn/property.js +20 -11
  91. package/dist/esm/layoutControls/ListView/property.js +28 -15
  92. package/dist/esm/layoutControls/Page/property.js +2 -2
  93. package/dist/esm/layoutControls/Position/property.js +8 -5
  94. package/dist/esm/layoutControls/Row/property.js +10 -6
  95. package/dist/esm/layoutControls/Step/designer.js +2 -2
  96. package/dist/esm/layoutControls/Step/property.js +22 -12
  97. package/dist/esm/layoutControls/StepPane/property.js +16 -9
  98. package/dist/esm/layoutControls/SubTableColumn/property.js +10 -6
  99. package/dist/esm/layoutControls/Tab/designer.js +2 -2
  100. package/dist/esm/layoutControls/Tab/property.js +10 -6
  101. package/dist/esm/layoutControls/TabPane/property.js +2 -2
  102. package/dist/esm/layoutControls/TableLayout/property.js +30 -16
  103. package/dist/esm/layoutControls/TableLayoutCol/property.js +20 -11
  104. package/dist/esm/layoutControls/TableLayoutRow/property.js +4 -3
  105. package/dist/esm/layoutControls/TableLayoutWrapper/property.js +6 -4
  106. package/dist/esm/listControls/GridTable/designer.js +4 -12
  107. package/dist/esm/listControls/GridTable/property.js +19 -15
  108. package/dist/esm/listControls/SubTable/property.js +70 -36
  109. package/dist/esm/searchControls/SimpleSearch/property.js +24 -13
  110. package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
  111. package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
  112. package/dist/esm/wrapControls/GridLayoutWrap/property.js +2 -2
  113. package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
  114. package/dist/index.umd.js +1 -1
  115. package/dist/types/baseControls/Divider/property.d.ts +7 -0
  116. package/package.json +5 -5
@@ -135,22 +135,29 @@ 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;
139
138
  _this = _call_super(this, TextareaProperty, [
140
139
  props
141
140
  ]), _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);
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, '请输入');
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, '请输入');
147
151
  // this.lineEllipsis = props?.lineEllipsis ?? 4
148
152
  // this.autoSize = props?.autoSize ?? false
149
153
  // this.maxRows = props?.maxRows
150
154
  _this.rowHeightSetting = new MetaRowHeight(props === null || props === void 0 ? void 0 : props.rowHeightSetting);
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 : [
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 : [
154
161
  {
155
162
  label: getLocaleText('CMD.aiOptionOneLabel', null, '总结'),
156
163
  cueWord: getLocaleText('CMD.aiOptionOneCurword', null, 'SUMM'),
@@ -167,8 +174,10 @@ var TextareaProperty = /*#__PURE__*/ function(BaseControlProperty) {
167
174
  checked: false
168
175
  }
169
176
  ]);
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;
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;
172
181
  return _this;
173
182
  }
174
183
  return TextareaProperty;
@@ -80,20 +80,26 @@ var TimePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
80
80
  function TimePickerProperty(props) {
81
81
  _class_call_check(this, TimePickerProperty);
82
82
  var _this;
83
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
84
83
  var _props_limitTimeList;
85
84
  _this = _call_super(this, TimePickerProperty, [
86
85
  props
87
86
  ]), _define_property(_this, "timeType", 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);
88
- _this.timeType = (_ref = props === null || props === void 0 ? void 0 : props.timeType) !== null && _ref !== void 0 ? _ref : TimeType.HOURSEC;
89
- _this.format = (_ref1 = props === null || props === void 0 ? void 0 : props.format) !== null && _ref1 !== void 0 ? _ref1 : '';
90
- _this.caption = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : TimePickerControl.controlName;
91
- _this.placeholder = (_ref3 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref3 !== void 0 ? _ref3 : '请输入时间';
92
- _this.defaultValue = (_ref4 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref4 !== void 0 ? _ref4 : '';
93
- _this.limitTimeList = (_ref5 = props === null || props === void 0 ? void 0 : (_props_limitTimeList = props.limitTimeList) === null || _props_limitTimeList === void 0 ? void 0 : _props_limitTimeList.map(function(item) {
87
+ var _props_timeType;
88
+ _this.timeType = (_props_timeType = props === null || props === void 0 ? void 0 : props.timeType) !== null && _props_timeType !== void 0 ? _props_timeType : TimeType.HOURSEC;
89
+ var _props_format;
90
+ _this.format = (_props_format = props === null || props === void 0 ? void 0 : props.format) !== null && _props_format !== void 0 ? _props_format : '';
91
+ var _props_caption;
92
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TimePickerControl.controlName;
93
+ var _props_placeholder;
94
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入时间';
95
+ var _props_defaultValue;
96
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
97
+ var _props_limitTimeList_map;
98
+ _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) {
94
99
  return new LimitTime(item);
95
- })) !== null && _ref5 !== void 0 ? _ref5 : [];
96
- _this.isInternational = (_ref6 = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _ref6 !== void 0 ? _ref6 : false;
100
+ })) !== null && _props_limitTimeList_map !== void 0 ? _props_limitTimeList_map : [];
101
+ var _props_isInternational;
102
+ _this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
97
103
  return _this;
98
104
  }
99
105
  return TimePickerProperty;
@@ -113,24 +113,32 @@ var TimeRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
113
113
  function TimeRangeProperty(props) {
114
114
  _class_call_check(this, TimeRangeProperty);
115
115
  var _this;
116
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
117
116
  var _props_limitTimeList;
118
117
  _this = _call_super(this, TimeRangeProperty, [
119
118
  props
120
119
  ]), _define_property(_this, "timeType", void 0), _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);
121
120
  _this.dataBind = new RangeDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
122
121
  _this.defaultValue = new RangeDateValue(props === null || props === void 0 ? void 0 : props.defaultValue);
123
- _this.timeType = (_ref = props === null || props === void 0 ? void 0 : props.timeType) !== null && _ref !== void 0 ? _ref : TimeType.HOURSEC;
124
- _this.format = (_ref1 = props === null || props === void 0 ? void 0 : props.format) !== null && _ref1 !== void 0 ? _ref1 : '';
125
- _this.rangeMin = (_ref2 = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref2 !== void 0 ? _ref2 : '';
126
- _this.rangeMax = (_ref3 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref3 !== void 0 ? _ref3 : '';
127
- _this.placeholderStart = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _ref4 !== void 0 ? _ref4 : '开始时间';
128
- _this.placeholderEnd = (_ref5 = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _ref5 !== void 0 ? _ref5 : '结束时间';
129
- _this.caption = (_ref6 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref6 !== void 0 ? _ref6 : TimeRangeControl.controlName;
130
- _this.limitTimeList = (_ref7 = props === null || props === void 0 ? void 0 : (_props_limitTimeList = props.limitTimeList) === null || _props_limitTimeList === void 0 ? void 0 : _props_limitTimeList.map(function(item) {
122
+ var _props_timeType;
123
+ _this.timeType = (_props_timeType = props === null || props === void 0 ? void 0 : props.timeType) !== null && _props_timeType !== void 0 ? _props_timeType : TimeType.HOURSEC;
124
+ var _props_format;
125
+ _this.format = (_props_format = props === null || props === void 0 ? void 0 : props.format) !== null && _props_format !== void 0 ? _props_format : '';
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 : '开始时间';
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 : '结束时间';
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 : TimeRangeControl.controlName;
136
+ var _props_limitTimeList_map;
137
+ _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) {
131
138
  return new LimitTime(item);
132
- })) !== null && _ref7 !== void 0 ? _ref7 : [];
133
- _this.isInternational = (_ref8 = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _ref8 !== void 0 ? _ref8 : false;
139
+ })) !== null && _props_limitTimeList_map !== void 0 ? _props_limitTimeList_map : [];
140
+ var _props_isInternational;
141
+ _this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
134
142
  return _this;
135
143
  }
136
144
  return TimeRangeProperty;
@@ -165,37 +165,55 @@ var TreeProperty = /*#__PURE__*/ function(BaseControlProperty) {
165
165
  function TreeProperty(props) {
166
166
  _class_call_check(this, TreeProperty);
167
167
  var _this;
168
- var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18;
169
168
  var _props_multistageFilling;
170
169
  _this = _call_super(this, TreeProperty, [
171
170
  props
172
171
  ]), _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
172
  ), _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 : {
173
+ var _props_caption;
174
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TreeControl.controlName;
175
+ var _props_placeholder;
176
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
177
+ var _props_multiple;
178
+ _this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
179
+ var _props_canSearch;
180
+ _this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : true;
181
+ var _props_levelType;
182
+ _this.levelType = (_props_levelType = props === null || props === void 0 ? void 0 : props.levelType) !== null && _props_levelType !== void 0 ? _props_levelType : 'all';
183
+ var _props_optionalLevel;
184
+ _this.optionalLevel = (_props_optionalLevel = props === null || props === void 0 ? void 0 : props.optionalLevel) !== null && _props_optionalLevel !== void 0 ? _props_optionalLevel : 1;
185
+ var _props_containsSubNode;
186
+ _this.containsSubNode = (_props_containsSubNode = props === null || props === void 0 ? void 0 : props.containsSubNode) !== null && _props_containsSubNode !== void 0 ? _props_containsSubNode : false;
187
+ var _props_isShowFilterItem;
188
+ _this.isShowFilterItem = (_props_isShowFilterItem = props === null || props === void 0 ? void 0 : props.isShowFilterItem) !== null && _props_isShowFilterItem !== void 0 ? _props_isShowFilterItem : false;
189
+ var _props_isShowIncludeSub;
190
+ _this.isShowIncludeSub = (_props_isShowIncludeSub = props === null || props === void 0 ? void 0 : props.isShowIncludeSub) !== null && _props_isShowIncludeSub !== void 0 ? _props_isShowIncludeSub : false;
191
+ var _props_isDefaultCheckSub;
192
+ _this.isDefaultCheckSub = (_props_isDefaultCheckSub = props === null || props === void 0 ? void 0 : props.isDefaultCheckSub) !== null && _props_isDefaultCheckSub !== void 0 ? _props_isDefaultCheckSub : false;
193
+ var _props_defaultCollapse;
194
+ _this.defaultCollapse = (_props_defaultCollapse = props === null || props === void 0 ? void 0 : props.defaultCollapse) !== null && _props_defaultCollapse !== void 0 ? _props_defaultCollapse : 'all';
195
+ var _props_defaultCollapseLevel;
196
+ _this.defaultCollapseLevel = (_props_defaultCollapseLevel = props === null || props === void 0 ? void 0 : props.defaultCollapseLevel) !== null && _props_defaultCollapseLevel !== void 0 ? _props_defaultCollapseLevel : 1;
197
+ var _props_datasourceBind;
198
+ _this.datasourceBind = new TreeDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
187
199
  attributes: TreeControl.controlCustomAttributes
188
200
  });
189
- _this.filterItemDatasourceBind = new TreeDataSourceBind((_ref13 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _ref13 !== void 0 ? _ref13 : {
201
+ var _props_filterItemDatasourceBind;
202
+ _this.filterItemDatasourceBind = new TreeDataSourceBind((_props_filterItemDatasourceBind = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _props_filterItemDatasourceBind !== void 0 ? _props_filterItemDatasourceBind : {
190
203
  attributes: TreeControl.controlCustomAttributes
191
204
  });
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) {
205
+ var _props_openMultistageFilling;
206
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
207
+ var _props_defaultDisplay;
208
+ _this.defaultDisplay = (_props_defaultDisplay = props === null || props === void 0 ? void 0 : props.defaultDisplay) !== null && _props_defaultDisplay !== void 0 ? _props_defaultDisplay : false;
209
+ var _props_multistageFilling_map;
210
+ _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) {
195
211
  return new MultistageFillingItem(item);
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 : [];
212
+ })) !== null && _props_multistageFilling_map !== void 0 ? _props_multistageFilling_map : [];
213
+ var _props_defaultValue;
214
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
215
+ var _props_treeQuery;
216
+ _this.treeQuery = (_props_treeQuery = props === null || props === void 0 ? void 0 : props.treeQuery) !== null && _props_treeQuery !== void 0 ? _props_treeQuery : [];
199
217
  return _this;
200
218
  }
201
219
  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;
@@ -110,15 +110,19 @@ 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;
114
113
  _this = _call_super(this, VuePageProperty, [
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 : 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;
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;
122
126
  return _this;
123
127
  }
124
128
  return VuePageProperty;
@@ -1,4 +1,11 @@
1
- function _assert_this_initialized(self) {
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) {
2
9
  if (self === void 0) {
3
10
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
11
  }
@@ -84,14 +91,7 @@ function _is_native_reflect_construct() {
84
91
  return !!result;
85
92
  })();
86
93
  }
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';
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,23 +148,34 @@ 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;
152
151
  _this = _call_super(this, WPSProperty, [
153
152
  props
154
153
  ]), _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);
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 : [];
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 : [];
166
176
  _this.wpsSetting = new WPSSetting(props === null || props === void 0 ? void 0 : props.wpsSetting);
167
- _this.revisionsMode = (_ref11 = props === null || props === void 0 ? void 0 : props.revisionsMode) !== null && _ref11 !== void 0 ? _ref11 : false;
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;
168
179
  return _this;
169
180
  }
170
181
  return WPSProperty;