@byteluck-fe/model-driven-controls 5.6.0-1-beta3 → 5.6.4-dpx-beta.1

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 (173) 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/CreateFormListButton/property.js +5 -8
  7. package/dist/esm/baseControls/Dashboard/designer.js +4 -0
  8. package/dist/esm/baseControls/Dashboard/property.js +15 -13
  9. package/dist/esm/baseControls/Divider/property.js +4 -5
  10. package/dist/esm/baseControls/ExportListButton/property.js +6 -9
  11. package/dist/esm/baseControls/ExportRecordListButton/property.js +3 -4
  12. package/dist/esm/baseControls/FormSelectButton/property.js +4 -6
  13. package/dist/esm/baseControls/ImportRecordListButton/property.js +6 -9
  14. package/dist/esm/baseControls/InvoiceCheckButton/property.js +11 -19
  15. package/dist/esm/baseControls/Link/property.js +4 -6
  16. package/dist/esm/baseControls/ListSelectButton/property.js +6 -10
  17. package/dist/esm/baseControls/ListViewSelect/property.js +4 -5
  18. package/dist/esm/baseControls/OperationButton/property.js +9 -11
  19. package/dist/esm/baseControls/ReferenceList/property.js +7 -12
  20. package/dist/esm/baseControls/SubmissionRecordListButton/property.js +3 -4
  21. package/dist/esm/baseControls/Text/designer.js +4 -0
  22. package/dist/esm/baseControls/Text/property.js +13 -13
  23. package/dist/esm/baseControls/TextOcrButton/property.js +11 -19
  24. package/dist/esm/baseControls/Title/property.js +4 -6
  25. package/dist/esm/columnControls/ApprovalStatusColumn/property.js +4 -6
  26. package/dist/esm/columnControls/ArrayColumn/property.js +5 -8
  27. package/dist/esm/columnControls/AutoNumberColumn/property.js +3 -4
  28. package/dist/esm/columnControls/CustomColumn/designer.js +1 -0
  29. package/dist/esm/columnControls/CustomColumn/property.js +4 -6
  30. package/dist/esm/columnControls/DecimalColumn/property.js +8 -14
  31. package/dist/esm/columnControls/DepartmentColumn/property.js +3 -4
  32. package/dist/esm/columnControls/EmployeeColumn/designer.js +1 -1
  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/ImageColumn/property.js +2 -2
  36. package/dist/esm/columnControls/LocationColumn/property.js +3 -4
  37. package/dist/esm/columnControls/OperationColumn/designer.js +12 -4
  38. package/dist/esm/columnControls/OperationColumn/property.js +6 -10
  39. package/dist/esm/columnControls/OrderColumn/property.js +7 -12
  40. package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
  41. package/dist/esm/columnControls/TextColumn/property.js +5 -8
  42. package/dist/esm/columnControls/TimescopeColumn/designer.js +2 -1
  43. package/dist/esm/columnControls/TimescopeColumn/property.js +7 -7
  44. package/dist/esm/columnControls/TimestampColumn/designer.js +2 -1
  45. package/dist/esm/columnControls/TimestampColumn/property.js +7 -7
  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/Address/runtime.js +1 -1
  49. package/dist/esm/formControls/Amount/property.js +14 -25
  50. package/dist/esm/formControls/Attachment/designer.js +5 -0
  51. package/dist/esm/formControls/Attachment/property.js +29 -36
  52. package/dist/esm/formControls/AutoNumber/property.js +4 -6
  53. package/dist/esm/formControls/Calc/property.js +10 -18
  54. package/dist/esm/formControls/Checkbox/designer.js +4 -0
  55. package/dist/esm/formControls/Checkbox/property.js +21 -28
  56. package/dist/esm/formControls/DatePicker/designer.js +4 -2
  57. package/dist/esm/formControls/DatePicker/property.js +14 -21
  58. package/dist/esm/formControls/DateRange/designer.js +4 -2
  59. package/dist/esm/formControls/DateRange/property.js +15 -22
  60. package/dist/esm/formControls/Department/property.js +12 -22
  61. package/dist/esm/formControls/Department2/designer.js +1 -1
  62. package/dist/esm/formControls/Department2/property.js +17 -32
  63. package/dist/esm/formControls/ElectronicSignature/property.js +7 -12
  64. package/dist/esm/formControls/Employee/property.js +10 -18
  65. package/dist/esm/formControls/Employee2/designer.js +5 -1
  66. package/dist/esm/formControls/Employee2/property.js +21 -34
  67. package/dist/esm/formControls/Image/designer.js +19 -15
  68. package/dist/esm/formControls/Image/property.js +28 -2
  69. package/dist/esm/formControls/Image/runtime.js +16 -10
  70. package/dist/esm/formControls/Input/designer.js +12 -0
  71. package/dist/esm/formControls/Input/property.js +23 -15
  72. package/dist/esm/formControls/Number/property.js +15 -27
  73. package/dist/esm/formControls/OrganizationSelection/designer.js +1 -1
  74. package/dist/esm/formControls/OrganizationSelection/property.js +19 -36
  75. package/dist/esm/formControls/Radio/designer.js +4 -0
  76. package/dist/esm/formControls/Radio/property.js +18 -23
  77. package/dist/esm/formControls/RichText/designer.js +16 -0
  78. package/dist/esm/formControls/RichText/property.js +48 -12
  79. package/dist/esm/formControls/Score/property.js +8 -13
  80. package/dist/esm/formControls/SearchDateRange/property.js +16 -24
  81. package/dist/esm/formControls/SearchNumberRange/property.js +7 -12
  82. package/dist/esm/formControls/Select/designer.js +4 -0
  83. package/dist/esm/formControls/Select/property.js +17 -21
  84. package/dist/esm/formControls/SelectMultiple/designer.js +4 -0
  85. package/dist/esm/formControls/SelectMultiple/property.js +16 -19
  86. package/dist/esm/formControls/SelectRelation/designer.js +4 -0
  87. package/dist/esm/formControls/SelectRelation/property.js +60 -66
  88. package/dist/esm/formControls/Textarea/designer.js +16 -0
  89. package/dist/esm/formControls/Textarea/property.js +60 -12
  90. package/dist/esm/formControls/Tree/designer.js +2 -2
  91. package/dist/esm/formControls/Tree/property.js +20 -37
  92. package/dist/esm/formControls/VueFormItem/property.js +6 -10
  93. package/dist/esm/formControls/VuePage/property.js +6 -10
  94. package/dist/esm/formControls/WPS/designer.js +9 -9
  95. package/dist/esm/formControls/WPS/property.js +13 -24
  96. package/dist/esm/framework.js +77 -113
  97. package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
  98. package/dist/esm/layoutControls/ActionBar/property.js +4 -6
  99. package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
  100. package/dist/esm/layoutControls/AdvancedContainer/Setting.js +3 -3
  101. package/dist/esm/layoutControls/CardGroup/property.js +4 -6
  102. package/dist/esm/layoutControls/Col/property.js +3 -4
  103. package/dist/esm/layoutControls/DataView/property.js +7 -12
  104. package/dist/esm/layoutControls/GridLayoutContainer/property.js +3 -4
  105. package/dist/esm/layoutControls/GridTableColumn/designer.js +1 -1
  106. package/dist/esm/layoutControls/GridTableColumn/property.js +11 -20
  107. package/dist/esm/layoutControls/ListView/property.js +13 -24
  108. package/dist/esm/layoutControls/Page/Setting.js +5 -5
  109. package/dist/esm/layoutControls/Page/property.js +2 -2
  110. package/dist/esm/layoutControls/Position/property.js +5 -8
  111. package/dist/esm/layoutControls/PositioningContainer/Setting.js +3 -3
  112. package/dist/esm/layoutControls/Row/property.js +3 -4
  113. package/dist/esm/layoutControls/Step/designer.js +166 -0
  114. package/dist/esm/layoutControls/Step/index.js +11 -0
  115. package/dist/esm/layoutControls/Step/property.js +99 -0
  116. package/dist/esm/layoutControls/Step/runtime.js +112 -0
  117. package/dist/esm/layoutControls/Step/types.js +0 -0
  118. package/dist/esm/layoutControls/StepPane/designer.js +130 -0
  119. package/dist/esm/layoutControls/StepPane/index.js +11 -0
  120. package/dist/esm/layoutControls/StepPane/property.js +116 -0
  121. package/dist/esm/layoutControls/StepPane/runtime.js +112 -0
  122. package/dist/esm/layoutControls/StepPane/types.js +0 -0
  123. package/dist/esm/layoutControls/SubTableColumn/property.js +6 -10
  124. package/dist/esm/layoutControls/Tab/designer.js +2 -2
  125. package/dist/esm/layoutControls/Tab/property.js +2 -2
  126. package/dist/esm/layoutControls/TabPane/property.js +2 -2
  127. package/dist/esm/layoutControls/index.js +2 -0
  128. package/dist/esm/listControls/GridTable/designer.js +13 -4
  129. package/dist/esm/listControls/GridTable/property.js +15 -19
  130. package/dist/esm/listControls/SubTable/designer.js +2 -1
  131. package/dist/esm/listControls/SubTable/property.js +37 -67
  132. package/dist/esm/searchControls/SimpleSearch/property.js +13 -24
  133. package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
  134. package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
  135. package/dist/esm/wrapControls/GridLayoutWrap/property.js +2 -2
  136. package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
  137. package/dist/index.umd.js +1 -1
  138. package/dist/types/baseControls/Dashboard/property.d.ts +5 -1
  139. package/dist/types/baseControls/OperationButton/property.d.ts +1 -0
  140. package/dist/types/baseControls/Text/property.d.ts +6 -0
  141. package/dist/types/columnControls/TimescopeColumn/property.d.ts +1 -0
  142. package/dist/types/columnControls/TimestampColumn/property.d.ts +1 -0
  143. package/dist/types/formControls/Attachment/property.d.ts +3 -0
  144. package/dist/types/formControls/Checkbox/property.d.ts +6 -0
  145. package/dist/types/formControls/DatePicker/property.d.ts +1 -0
  146. package/dist/types/formControls/DateRange/property.d.ts +1 -0
  147. package/dist/types/formControls/Employee2/property.d.ts +1 -0
  148. package/dist/types/formControls/Image/designer.d.ts +2 -0
  149. package/dist/types/formControls/Image/property.d.ts +3 -0
  150. package/dist/types/formControls/Image/runtime.d.ts +2 -0
  151. package/dist/types/formControls/Input/property.d.ts +17 -0
  152. package/dist/types/formControls/Radio/property.d.ts +6 -0
  153. package/dist/types/formControls/RichText/property.d.ts +30 -1
  154. package/dist/types/formControls/SearchDateRange/property.d.ts +1 -0
  155. package/dist/types/formControls/Select/property.d.ts +6 -0
  156. package/dist/types/formControls/SelectMultiple/property.d.ts +6 -0
  157. package/dist/types/formControls/SelectRelation/property.d.ts +6 -0
  158. package/dist/types/formControls/Textarea/property.d.ts +30 -1
  159. package/dist/types/framework.d.ts +8 -0
  160. package/dist/types/layoutControls/Step/designer.d.ts +14 -0
  161. package/dist/types/layoutControls/Step/index.d.ts +12 -0
  162. package/dist/types/layoutControls/Step/property.d.ts +11 -0
  163. package/dist/types/layoutControls/Step/runtime.d.ts +9 -0
  164. package/dist/types/layoutControls/Step/types.d.ts +0 -0
  165. package/dist/types/layoutControls/StepPane/designer.d.ts +14 -0
  166. package/dist/types/layoutControls/StepPane/index.d.ts +12 -0
  167. package/dist/types/layoutControls/StepPane/property.d.ts +14 -0
  168. package/dist/types/layoutControls/StepPane/runtime.d.ts +9 -0
  169. package/dist/types/layoutControls/StepPane/types.d.ts +0 -0
  170. package/dist/types/layoutControls/index.d.ts +2 -0
  171. package/dist/types/listControls/SubTable/property.d.ts +1 -0
  172. package/dist/types/type.d.ts +3 -1
  173. package/package.json +5 -5
@@ -129,8 +129,9 @@ var TimestampColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
129
129
  value: function toDataBindModel(parentId) {
130
130
  var dataBindModel = _get(_get_prototype_of(TimestampColumnControl.prototype), "toDataBindModel", this).call(this, parentId);
131
131
  if (dataBindModel) {
132
- var dateType = this.props.dateType;
132
+ var _this_props = this.props, dateType = _this_props.dateType, isInternational = _this_props.isInternational;
133
133
  dataBindModel.props.dateType = dateType;
134
+ dataBindModel.props.isInternational = isInternational;
134
135
  }
135
136
  return dataBindModel;
136
137
  }
@@ -96,6 +96,7 @@ var TimestampColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPr
96
96
  function TimestampColumnControlProperty(props) {
97
97
  _class_call_check(this, TimestampColumnControlProperty);
98
98
  var _this;
99
+ var _ref, _ref1, _ref2, _ref3;
99
100
  _this = _call_super(this, TimestampColumnControlProperty, [
100
101
  props
101
102
  ]), /**
@@ -108,14 +109,13 @@ var TimestampColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlPr
108
109
  */ _define_property(_this, "showLinkOperation", void 0), /**
109
110
  * 链接操作配置
110
111
  * @public
111
- */ _define_property(_this, "linkOperationOption", void 0);
112
- var _props_dateType;
113
- _this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
114
- var _props_showLinkOperation;
115
- _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
112
+ */ _define_property(_this, "linkOperationOption", void 0), _define_property(_this, "isInternational", void 0 //是否国际化
113
+ );
114
+ _this.dateType = (_ref = props === null || props === void 0 ? void 0 : props.dateType) !== null && _ref !== void 0 ? _ref : DateType.DATE;
115
+ _this.showLinkOperation = (_ref1 = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _ref1 !== void 0 ? _ref1 : false;
116
116
  _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
117
- var _props_caption;
118
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerTimestampColumnControl.controlName;
117
+ _this.caption = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : DesignerTimestampColumnControl.controlName;
118
+ _this.isInternational = (_ref3 = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _ref3 !== void 0 ? _ref3 : false;
119
119
  return _this;
120
120
  }
121
121
  return TimestampColumnControlProperty;
@@ -95,6 +95,7 @@ var VarcharColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDa
95
95
  function VarcharColumnControlProperty(props) {
96
96
  _class_call_check(this, VarcharColumnControlProperty);
97
97
  var _this;
98
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
98
99
  _this = _call_super(this, VarcharColumnControlProperty, [
99
100
  props
100
101
  ]), /**
@@ -119,22 +120,16 @@ var VarcharColumnControlPropertyRules = /*#__PURE__*/ function(ColumnOptionAndDa
119
120
  * */ _define_property(_this, "lineEllipsis", void 0), /**
120
121
  * tag配置
121
122
  * */ _define_property(_this, "dictionaryTagConfig", void 0);
122
- var _props_caption;
123
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerVarcharColumnControl.controlName;
124
- var _props_optionConfig;
125
- _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'none';
123
+ _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : DesignerVarcharColumnControl.controlName;
124
+ _this.optionConfig = (_ref1 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref1 !== void 0 ? _ref1 : 'none';
126
125
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
127
- var _props_options;
128
- _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
126
+ _this.options = initOptions((_ref2 = props === null || props === void 0 ? void 0 : props.options) !== null && _ref2 !== void 0 ? _ref2 : [
129
127
  {}
130
128
  ]);
131
- var _props_showLinkOperation;
132
- _this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
129
+ _this.showLinkOperation = (_ref3 = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _ref3 !== void 0 ? _ref3 : false;
133
130
  _this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
134
- var _props_lineEllipsis;
135
- _this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
136
- var _props_dictionaryTagConfig;
137
- _this.dictionaryTagConfig = (_props_dictionaryTagConfig = props === null || props === void 0 ? void 0 : props.dictionaryTagConfig) !== null && _props_dictionaryTagConfig !== void 0 ? _props_dictionaryTagConfig : {
131
+ _this.lineEllipsis = (_ref4 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref4 !== void 0 ? _ref4 : 1;
132
+ _this.dictionaryTagConfig = (_ref5 = props === null || props === void 0 ? void 0 : props.dictionaryTagConfig) !== null && _ref5 !== void 0 ? _ref5 : {
138
133
  isTag: false
139
134
  };
140
135
  return _this;
@@ -125,6 +125,7 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
125
125
  function AddressProperty(props) {
126
126
  _class_call_check(this, AddressProperty);
127
127
  var _this;
128
+ var _ref, _ref1, _ref2, _ref3, _ref4;
128
129
  _this = _call_super(this, AddressProperty, [
129
130
  props
130
131
  ]), /**
@@ -136,20 +137,15 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
136
137
  * 地址类型
137
138
  * @defaultValue ['province', 'city', 'district']
138
139
  */ _define_property(_this, "addressType", void 0);
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 : AddressControl.controlName;
141
- var _props_defaultValueType;
142
- _this.defaultValueType = (_props_defaultValueType = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _props_defaultValueType !== void 0 ? _props_defaultValueType : 'default';
143
- var _props_addressType;
144
- _this.addressType = (_props_addressType = props === null || props === void 0 ? void 0 : props.addressType) !== null && _props_addressType !== void 0 ? _props_addressType : [
140
+ _this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : AddressControl.controlName;
141
+ _this.defaultValueType = (_ref1 = props === null || props === void 0 ? void 0 : props.defaultValueType) !== null && _ref1 !== void 0 ? _ref1 : 'default';
142
+ _this.addressType = (_ref2 = props === null || props === void 0 ? void 0 : props.addressType) !== null && _ref2 !== void 0 ? _ref2 : [
145
143
  'province',
146
144
  'city',
147
145
  'district'
148
146
  ];
149
- var _props_defaultValue;
150
- _this.defaultValue = new AddressValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {});
151
- var _props_placeholder;
152
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseChooseAddress', null, '请选择地址');
147
+ _this.defaultValue = new AddressValue((_ref3 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref3 !== void 0 ? _ref3 : {});
148
+ _this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseChooseAddress', null, '请选择地址');
153
149
  return _this;
154
150
  }
155
151
  return AddressProperty;
@@ -104,7 +104,7 @@ var AddressControl = /*#__PURE__*/ function(RuntimeFormControl) {
104
104
  {
105
105
  key: "controlName",
106
106
  get: function get() {
107
- return getLocaleText('CMD.2f2b1751967130347');
107
+ return getLocaleText('CMD.e7c91751712163978');
108
108
  }
109
109
  },
110
110
  {
@@ -182,7 +182,7 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
182
182
  message: getLocaleText(amountMax === undefined ? 'CMD.pleaseEnterAValueGreaterThanMin' : amountMin === undefined ? 'CMD.pleaseEnterAValueLessThanMax' : 'CMD.pleaseEnterNumberRange', {
183
183
  max: amountMax,
184
184
  min: amountMin
185
- }, amountMax === undefined ? getLocaleText('CMD.b19e1751967102651') : amountMin === undefined ? getLocaleText('CMD.2ef91751967105043') : getLocaleText('CMD.a1921751967096873'))
185
+ }, amountMax === undefined ? getLocaleText('CMD.51051751712133507') : amountMin === undefined ? getLocaleText('CMD.41d01751712135567') : getLocaleText('CMD.affe1751712129045'))
186
186
  }
187
187
  ],
188
188
  currency: {
@@ -202,6 +202,7 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
202
202
  function AmountProperty(props) {
203
203
  _class_call_check(this, AmountProperty);
204
204
  var _this;
205
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11;
205
206
  _this = _call_super(this, AmountProperty, [
206
207
  props
207
208
  ]), /**
@@ -237,41 +238,29 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
237
238
  * */ _define_property(_this, "defaultValue", void 0), /**
238
239
  * 币种的默认选项
239
240
  * */ _define_property(_this, "options", void 0);
240
- var _props_rangeMin;
241
- _this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
242
- var _props_rangeMax;
243
- _this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
244
- var _props_optionConfig;
245
- _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'datasource';
246
- var _props_micrometer;
247
- _this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
248
- var _props_precision;
249
- _this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 2;
241
+ _this.rangeMin = (_ref = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _ref !== void 0 ? _ref : '';
242
+ _this.rangeMax = (_ref1 = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _ref1 !== void 0 ? _ref1 : '';
243
+ _this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'datasource';
244
+ _this.micrometer = (_ref3 = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _ref3 !== void 0 ? _ref3 : false;
245
+ _this.precision = (_ref4 = props === null || props === void 0 ? void 0 : props.precision) !== null && _ref4 !== void 0 ? _ref4 : 2;
250
246
  _this.dataBind = new AmountDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
251
- var _props_datasourceBind;
252
- _this.datasourceBind = new DataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
247
+ _this.datasourceBind = new DataSourceBind((_ref5 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref5 !== void 0 ? _ref5 : {
253
248
  displayBoList: [
254
249
  new DisplayBoListItem({
255
250
  value: 'name'
256
251
  })
257
252
  ]
258
253
  });
259
- var _props_defaultValue;
260
- _this.defaultValue = new AmountValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {
254
+ _this.defaultValue = new AmountValue((_ref6 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref6 !== void 0 ? _ref6 : {
261
255
  amount: '',
262
256
  currency: AMOUNT_TYPE.CNY
263
257
  });
264
- var _props_unitPosition;
265
- _this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
258
+ _this.unitPosition = (_ref7 = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _ref7 !== void 0 ? _ref7 : 'right';
266
259
  _this.options = initOptions(props === null || props === void 0 ? void 0 : props.options);
267
- var _props_caption;
268
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
269
- var _props_placeholder;
270
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
271
- var _props_submitSelectCurrency;
272
- _this.submitSelectCurrency = (_props_submitSelectCurrency = props === null || props === void 0 ? void 0 : props.submitSelectCurrency) !== null && _props_submitSelectCurrency !== void 0 ? _props_submitSelectCurrency : false;
273
- var _props_showUpperCase;
274
- _this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
260
+ _this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : AmountControl.controlName;
261
+ _this.placeholder = (_ref9 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref9 !== void 0 ? _ref9 : getLocaleText('CMD.pleaseEnter', null, '请输入');
262
+ _this.submitSelectCurrency = (_ref10 = props === null || props === void 0 ? void 0 : props.submitSelectCurrency) !== null && _ref10 !== void 0 ? _ref10 : false;
263
+ _this.showUpperCase = (_ref11 = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _ref11 !== void 0 ? _ref11 : false;
275
264
  return _this;
276
265
  }
277
266
  return AmountProperty;
@@ -162,6 +162,11 @@ _define_property(AttachmentControl, "setting", [
162
162
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
163
163
  ]
164
164
  },
165
+ {
166
+ key: 'ai-explanation',
167
+ visible: true
168
+ },
169
+ // { key: 'attachment-storage', visible: true },
165
170
  {
166
171
  key: 'attachment-state',
167
172
  visible: true
@@ -1,10 +1,4 @@
1
- /*
2
- * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
3
- * @Date: 2023-09-14 18:31:51
4
- * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
5
- * @LastEditTime: 2023-09-19 15:49:31
6
- * @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
7
- */ function _assert_this_initialized(self) {
1
+ function _assert_this_initialized(self) {
8
2
  if (self === void 0) {
9
3
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
10
4
  }
@@ -76,7 +70,13 @@ function _is_native_reflect_construct() {
76
70
  return !!result;
77
71
  })();
78
72
  }
79
- import { getLocaleText } from '@byteluck-fe/locale-message';
73
+ /*
74
+ * @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
75
+ * @Date: 2023-09-14 18:31:51
76
+ * @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
77
+ * @LastEditTime: 2023-09-19 15:49:31
78
+ * @FilePath: /model-driven/packages/controls/src/formControls/Attachment/property.ts
79
+ */ import { getLocaleText } from '@byteluck-fe/locale-message';
80
80
  import AttachmentControl from './designer';
81
81
  import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
82
82
  var MB10 = 10485760;
@@ -131,44 +131,37 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
131
131
  function AttachmentProperty(props) {
132
132
  _class_call_check(this, AttachmentProperty);
133
133
  var _this;
134
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15;
134
135
  _this = _call_super(this, AttachmentProperty, [
135
136
  props
136
- ]), _define_property(_this, "defaultValue", void 0), // 默认格式和列表格式,原应用内是title和table
137
+ ]), _define_property(_this, "storageType", void 0), _define_property(_this, "defaultValue", void 0), // 默认格式和列表格式,原应用内是title和table
137
138
  _define_property(_this, "showType", void 0), _define_property(_this, "resultShowType", void 0), _define_property(_this, "attachmentAccept", void 0), _define_property(_this, "maxLimit", void 0), _define_property(_this, "minLimit", void 0), _define_property(_this, "isShowWatermark", void 0 // 是否开启水印
138
139
  ), _define_property(_this, "watermarkFx", void 0), /**
139
140
  * maxSize 存储大小,单位为Byte,默认值为100MB
140
141
  * */ _define_property(_this, "maxSize", void 0), // 附件按钮操作数组
141
- _define_property(_this, "operation", void 0), _define_property(_this, "customOperation", void 0);
142
- var _props_defaultValue;
143
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
144
- var _props_showType;
145
- _this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'default';
146
- var _props_resultShowType;
147
- _this.resultShowType = (_props_resultShowType = props === null || props === void 0 ? void 0 : props.resultShowType) !== null && _props_resultShowType !== void 0 ? _props_resultShowType : 'simple';
148
- var _props_attachmentAccept;
149
- _this.attachmentAccept = (_props_attachmentAccept = props === null || props === void 0 ? void 0 : props.attachmentAccept) !== null && _props_attachmentAccept !== void 0 ? _props_attachmentAccept : [];
150
- var _props_maxLimit;
151
- _this.maxLimit = (_props_maxLimit = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _props_maxLimit !== void 0 ? _props_maxLimit : 10;
152
- var _props_minLimit;
153
- _this.minLimit = (_props_minLimit = props === null || props === void 0 ? void 0 : props.minLimit) !== null && _props_minLimit !== void 0 ? _props_minLimit : 0;
154
- var _props_maxSize;
155
- _this.maxSize = (_props_maxSize = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _props_maxSize !== void 0 ? _props_maxSize : MB100;
156
- var _props_caption;
157
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AttachmentControl.controlName;
158
- var _props_placeholder;
159
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.uploadFile', null, '上传附件');
160
- var _props_isShowWatermark;
161
- _this.isShowWatermark = (_props_isShowWatermark = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _props_isShowWatermark !== void 0 ? _props_isShowWatermark : false;
162
- var _props_watermarkFx;
163
- _this.watermarkFx = (_props_watermarkFx = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _props_watermarkFx !== void 0 ? _props_watermarkFx : {};
164
- var _props_operation;
165
- _this.operation = (_props_operation = props === null || props === void 0 ? void 0 : props.operation) !== null && _props_operation !== void 0 ? _props_operation : [
142
+ _define_property(_this, "operation", void 0), // 附件ai解释
143
+ _define_property(_this, "aiExplanation", void 0), // 附件ai解释长度
144
+ _define_property(_this, "aiExplanationLength", void 0), _define_property(_this, "customOperation", void 0);
145
+ _this.defaultValue = (_ref = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref !== void 0 ? _ref : [];
146
+ _this.showType = (_ref1 = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref1 !== void 0 ? _ref1 : 'default';
147
+ _this.resultShowType = (_ref2 = props === null || props === void 0 ? void 0 : props.resultShowType) !== null && _ref2 !== void 0 ? _ref2 : 'simple';
148
+ _this.attachmentAccept = (_ref3 = props === null || props === void 0 ? void 0 : props.attachmentAccept) !== null && _ref3 !== void 0 ? _ref3 : [];
149
+ _this.maxLimit = (_ref4 = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _ref4 !== void 0 ? _ref4 : 10;
150
+ _this.minLimit = (_ref5 = props === null || props === void 0 ? void 0 : props.minLimit) !== null && _ref5 !== void 0 ? _ref5 : 0;
151
+ _this.maxSize = (_ref6 = props === null || props === void 0 ? void 0 : props.maxSize) !== null && _ref6 !== void 0 ? _ref6 : MB100;
152
+ _this.caption = (_ref7 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref7 !== void 0 ? _ref7 : AttachmentControl.controlName;
153
+ _this.placeholder = (_ref8 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref8 !== void 0 ? _ref8 : getLocaleText('CMD.uploadFile', null, '上传附件');
154
+ _this.isShowWatermark = (_ref9 = props === null || props === void 0 ? void 0 : props.isShowWatermark) !== null && _ref9 !== void 0 ? _ref9 : false;
155
+ _this.watermarkFx = (_ref10 = props === null || props === void 0 ? void 0 : props.watermarkFx) !== null && _ref10 !== void 0 ? _ref10 : {};
156
+ _this.operation = (_ref11 = props === null || props === void 0 ? void 0 : props.operation) !== null && _ref11 !== void 0 ? _ref11 : [
166
157
  'info',
167
158
  'preview',
168
159
  'download'
169
160
  ];
170
- var _props_customOperation;
171
- _this.customOperation = (_props_customOperation = props === null || props === void 0 ? void 0 : props.customOperation) !== null && _props_customOperation !== void 0 ? _props_customOperation : [];
161
+ _this.aiExplanation = (_ref12 = props === null || props === void 0 ? void 0 : props.aiExplanation) !== null && _ref12 !== void 0 ? _ref12 : false;
162
+ _this.aiExplanationLength = (_ref13 = props === null || props === void 0 ? void 0 : props.aiExplanationLength) !== null && _ref13 !== void 0 ? _ref13 : 500;
163
+ _this.storageType = (_ref14 = props === null || props === void 0 ? void 0 : props.storageType) !== null && _ref14 !== void 0 ? _ref14 : 'local';
164
+ _this.customOperation = (_ref15 = props === null || props === void 0 ? void 0 : props.customOperation) !== null && _ref15 !== void 0 ? _ref15 : [];
172
165
  return _this;
173
166
  }
174
167
  return AttachmentProperty;
@@ -79,15 +79,13 @@ var AutoNumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
79
79
  function AutoNumberProperty(props) {
80
80
  _class_call_check(this, AutoNumberProperty);
81
81
  var _this;
82
+ var _ref, _ref1, _ref2;
82
83
  _this = _call_super(this, AutoNumberProperty, [
83
84
  props
84
85
  ]), _define_property(_this, "defaultValue", void 0);
85
- var _props_defaultValue;
86
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
87
- var _props_caption;
88
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AutoNumberControl.controlName;
89
- var _props_placeholder;
90
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterAutonumber', null, '请输入自动编号');
86
+ _this.defaultValue = (_ref = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref !== void 0 ? _ref : '';
87
+ _this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : AutoNumberControl.controlName;
88
+ _this.placeholder = (_ref2 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref2 !== void 0 ? _ref2 : getLocaleText('CMD.pleaseEnterAutonumber', null, '请输入自动编号');
91
89
  return _this;
92
90
  }
93
91
  return AutoNumberProperty;
@@ -130,6 +130,7 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
130
130
  function CalcProperty(props) {
131
131
  _class_call_check(this, CalcProperty);
132
132
  var _this;
133
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
133
134
  _this = _call_super(this, CalcProperty, [
134
135
  props
135
136
  ]), /**
@@ -158,26 +159,17 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
158
159
  * */ _define_property(_this, "unitPosition", void 0), /**
159
160
  * 页面加载时计算
160
161
  * */ _define_property(_this, "calcOnMounted", void 0);
161
- var _props_precision;
162
- _this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 0;
163
- var _props_micrometer;
164
- _this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
165
- var _props_showUpperCase;
166
- _this.showUpperCase = (_props_showUpperCase = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _props_showUpperCase !== void 0 ? _props_showUpperCase : false;
162
+ _this.precision = (_ref = props === null || props === void 0 ? void 0 : props.precision) !== null && _ref !== void 0 ? _ref : 0;
163
+ _this.micrometer = (_ref1 = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _ref1 !== void 0 ? _ref1 : false;
164
+ _this.showUpperCase = (_ref2 = props === null || props === void 0 ? void 0 : props.showUpperCase) !== null && _ref2 !== void 0 ? _ref2 : false;
167
165
  _this.dataBind = new CalcDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
168
166
  _this.defaultValue = new CalcValue(props === null || props === void 0 ? void 0 : props.defaultValue);
169
- var _props_caption;
170
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
171
- var _props_unitPosition;
172
- _this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
173
- var _props_placeholder;
174
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
175
- var _props_scriptEcho;
176
- _this.scriptEcho = (_props_scriptEcho = props === null || props === void 0 ? void 0 : props.scriptEcho) !== null && _props_scriptEcho !== void 0 ? _props_scriptEcho : [];
177
- var _props_scriptSrc;
178
- _this.scriptSrc = (_props_scriptSrc = props === null || props === void 0 ? void 0 : props.scriptSrc) !== null && _props_scriptSrc !== void 0 ? _props_scriptSrc : '';
179
- var _props_calcOnMounted;
180
- _this.calcOnMounted = (_props_calcOnMounted = props === null || props === void 0 ? void 0 : props.calcOnMounted) !== null && _props_calcOnMounted !== void 0 ? _props_calcOnMounted : false;
167
+ _this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : AmountControl.controlName;
168
+ _this.unitPosition = (_ref4 = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _ref4 !== void 0 ? _ref4 : 'right';
169
+ _this.placeholder = (_ref5 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref5 !== void 0 ? _ref5 : getLocaleText('CMD.pleaseEnter', null, '请输入');
170
+ _this.scriptEcho = (_ref6 = props === null || props === void 0 ? void 0 : props.scriptEcho) !== null && _ref6 !== void 0 ? _ref6 : [];
171
+ _this.scriptSrc = (_ref7 = props === null || props === void 0 ? void 0 : props.scriptSrc) !== null && _ref7 !== void 0 ? _ref7 : '';
172
+ _this.calcOnMounted = (_ref8 = props === null || props === void 0 ? void 0 : props.calcOnMounted) !== null && _ref8 !== void 0 ? _ref8 : false;
181
173
  return _this;
182
174
  }
183
175
  return CalcProperty;
@@ -166,6 +166,10 @@ _define_property(CheckboxControl, "setting", [
166
166
  COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
167
167
  ]
168
168
  },
169
+ {
170
+ key: 'ai-content-search',
171
+ visible: true
172
+ },
169
173
  {
170
174
  key: 'options-setting',
171
175
  visible: true
@@ -90,7 +90,7 @@ var CheckboxPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRu
90
90
  if (unlimitedMax) {
91
91
  _this.limitMax.type = 'string';
92
92
  }
93
- var isUnlimited = function(value) {
93
+ var isUnlimited = function isUnlimited(value) {
94
94
  return value === 'unlimited' ? undefined : value;
95
95
  };
96
96
  _this.limitMax.min = isUnlimited(props.limitMin);
@@ -125,6 +125,7 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
125
125
  function CheckboxProperty(props) {
126
126
  _class_call_check(this, CheckboxProperty);
127
127
  var _this;
128
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13;
128
129
  _this = _call_super(this, CheckboxProperty, [
129
130
  props
130
131
  ]), _define_property(_this, "checkboxMode", void 0 // 选项排列方式 horizontal默认
@@ -136,9 +137,12 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
136
137
  ), _define_property(_this, "optionsFormat", void 0 // 选项布局:竖排/横排
137
138
  ), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "interreaction", void 0 // 数据联动
138
139
  ), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
139
- );
140
- var _props_options;
141
- _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
140
+ ), /**
141
+ * ai 显示内容搜索 false | true
142
+ * @defaultValue false
143
+ * @public
144
+ */ _define_property(_this, "aiContentSearch", void 0);
145
+ _this.options = initOptions((_ref = props === null || props === void 0 ? void 0 : props.options) !== null && _ref !== void 0 ? _ref : [
142
146
  {
143
147
  label: getLocaleText('CMD.optionOne', null, '选项一'),
144
148
  value: getLocaleText('CMD.optionOne', null, '选项一')
@@ -152,31 +156,19 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
152
156
  value: getLocaleText('CMD.optionThird', null, '选项三')
153
157
  }
154
158
  ]);
155
- var _props_checkboxMode;
156
- _this.checkboxMode = (_props_checkboxMode = props === null || props === void 0 ? void 0 : props.checkboxMode) !== null && _props_checkboxMode !== void 0 ? _props_checkboxMode : 'horizontal';
157
- var _props_optionConfig;
158
- _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
159
- var _props_optionsOrder;
160
- _this.optionsOrder = (_props_optionsOrder = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _props_optionsOrder !== void 0 ? _props_optionsOrder : false;
161
- var _props_otherOption;
162
- _this.otherOption = (_props_otherOption = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _props_otherOption !== void 0 ? _props_otherOption : false;
163
- var _props_limitMin;
164
- _this.limitMin = (_props_limitMin = props === null || props === void 0 ? void 0 : props.limitMin) !== null && _props_limitMin !== void 0 ? _props_limitMin : 'unlimited';
165
- var _props_limitMax;
166
- _this.limitMax = (_props_limitMax = props === null || props === void 0 ? void 0 : props.limitMax) !== null && _props_limitMax !== void 0 ? _props_limitMax : 'unlimited';
159
+ _this.checkboxMode = (_ref1 = props === null || props === void 0 ? void 0 : props.checkboxMode) !== null && _ref1 !== void 0 ? _ref1 : 'horizontal';
160
+ _this.optionConfig = (_ref2 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref2 !== void 0 ? _ref2 : 'custom';
161
+ _this.optionsOrder = (_ref3 = props === null || props === void 0 ? void 0 : props.optionsOrder) !== null && _ref3 !== void 0 ? _ref3 : false;
162
+ _this.otherOption = (_ref4 = props === null || props === void 0 ? void 0 : props.otherOption) !== null && _ref4 !== void 0 ? _ref4 : false;
163
+ _this.limitMin = (_ref5 = props === null || props === void 0 ? void 0 : props.limitMin) !== null && _ref5 !== void 0 ? _ref5 : 'unlimited';
164
+ _this.limitMax = (_ref6 = props === null || props === void 0 ? void 0 : props.limitMax) !== null && _ref6 !== void 0 ? _ref6 : 'unlimited';
167
165
  _this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
168
- var _props_interreaction;
169
- _this.interreaction = (_props_interreaction = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _props_interreaction !== void 0 ? _props_interreaction : [];
170
- var _props_caption;
171
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : CheckboxControl.controlName;
172
- var _props_defaultValue;
173
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
174
- var _props_optionsFormat;
175
- _this.optionsFormat = (_props_optionsFormat = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _props_optionsFormat !== void 0 ? _props_optionsFormat : 'horizontal';
176
- var _props_defaultShowOptions;
177
- _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
178
- var _props_openMultistageFilling;
179
- _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
166
+ _this.interreaction = (_ref7 = props === null || props === void 0 ? void 0 : props.interreaction) !== null && _ref7 !== void 0 ? _ref7 : [];
167
+ _this.caption = (_ref8 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref8 !== void 0 ? _ref8 : CheckboxControl.controlName;
168
+ _this.defaultValue = (_ref9 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref9 !== void 0 ? _ref9 : [];
169
+ _this.optionsFormat = (_ref10 = props === null || props === void 0 ? void 0 : props.optionsFormat) !== null && _ref10 !== void 0 ? _ref10 : 'horizontal';
170
+ _this.defaultShowOptions = (_ref11 = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _ref11 !== void 0 ? _ref11 : true;
171
+ _this.openMultistageFilling = (_ref12 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref12 !== void 0 ? _ref12 : false;
180
172
  _this.multistageFilling = [];
181
173
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
182
174
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -184,6 +176,7 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
184
176
  (_this_multistageFilling = _this.multistageFilling) === null || _this_multistageFilling === void 0 ? void 0 : _this_multistageFilling.push(new MultistageFillingItem(item));
185
177
  });
186
178
  }
179
+ _this.aiContentSearch = (_ref13 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref13 !== void 0 ? _ref13 : false;
187
180
  return _this;
188
181
  }
189
182
  return CheckboxProperty;
@@ -129,8 +129,9 @@ var DatePickerControl = /*#__PURE__*/ function(DesignerFormControl) {
129
129
  value: function toDataBindModel(parentId) {
130
130
  var dataBindModel = _get(_get_prototype_of(DatePickerControl.prototype), "toDataBindModel", this).call(this, parentId);
131
131
  if (dataBindModel && !Array.isArray(dataBindModel)) {
132
- var dateType = this.props.dateType;
132
+ var _this_props = this.props, dateType = _this_props.dateType, isInternational = _this_props.isInternational;
133
133
  dataBindModel.props.dateType = dateType;
134
+ dataBindModel.props.isInternational = isInternational;
134
135
  }
135
136
  return dataBindModel;
136
137
  }
@@ -203,7 +204,8 @@ _define_property(DatePickerControl, "setting", [
203
204
  COMMON_SETTING_TYPE.IS_HIDE,
204
205
  // COMMON_SETTING_TYPE.MULTIPLE,
205
206
  COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
206
- COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
207
+ COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
208
+ COMMON_SETTING_TYPE.IS_INTERNATIONAL
207
209
  ]
208
210
  },
209
211
  {
@@ -81,6 +81,7 @@ var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
81
81
  function DatePickerProperty(props) {
82
82
  _class_call_check(this, DatePickerProperty);
83
83
  var _this;
84
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10;
84
85
  var _props_limitDateList;
85
86
  _this = _call_super(this, DatePickerProperty, [
86
87
  props
@@ -92,33 +93,25 @@ var DatePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
92
93
  // public multiple: boolean // 允许选中多个日期
93
94
  _define_property(_this, "allowDateRange", void 0 // 允许选中多个日期范围
94
95
  ), _define_property(_this, "filterWeekend", void 0 // 是否过滤周末
96
+ ), _define_property(_this, "isInternational", void 0 //是否国际化
95
97
  );
96
- var _props_dateType;
97
- _this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
98
- var _props_dateFormat;
99
- _this.dateFormat = (_props_dateFormat = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _props_dateFormat !== void 0 ? _props_dateFormat : '';
100
- var _props_commonTimeSetting;
101
- _this.commonTimeSetting = (_props_commonTimeSetting = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _props_commonTimeSetting !== void 0 ? _props_commonTimeSetting : [];
102
- var _props_setValueType;
103
- _this.setValueType = (_props_setValueType = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _props_setValueType !== void 0 ? _props_setValueType : 'custom';
104
- var _props_caption;
105
- _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DatePickerControl.controlName;
106
- var _props_placeholder;
107
- _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnterDate', null, '请输入日期');
108
- var _props_defaultValue;
109
- _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
110
- var _props_limitDateList_map;
111
- _this.limitDateList = (_props_limitDateList_map = props === null || props === void 0 ? void 0 : (_props_limitDateList = props.limitDateList) === null || _props_limitDateList === void 0 ? void 0 : _props_limitDateList.map(function(item) {
98
+ _this.dateType = (_ref = props === null || props === void 0 ? void 0 : props.dateType) !== null && _ref !== void 0 ? _ref : DateType.DATE;
99
+ _this.dateFormat = (_ref1 = props === null || props === void 0 ? void 0 : props.dateFormat) !== null && _ref1 !== void 0 ? _ref1 : '';
100
+ _this.commonTimeSetting = (_ref2 = props === null || props === void 0 ? void 0 : props.commonTimeSetting) !== null && _ref2 !== void 0 ? _ref2 : [];
101
+ _this.setValueType = (_ref3 = props === null || props === void 0 ? void 0 : props.setValueType) !== null && _ref3 !== void 0 ? _ref3 : 'custom';
102
+ _this.caption = (_ref4 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref4 !== void 0 ? _ref4 : DatePickerControl.controlName;
103
+ _this.placeholder = (_ref5 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref5 !== void 0 ? _ref5 : getLocaleText('CMD.pleaseEnterDate', null, '请输入日期');
104
+ _this.defaultValue = (_ref6 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref6 !== void 0 ? _ref6 : '';
105
+ _this.limitDateList = (_ref7 = props === null || props === void 0 ? void 0 : (_props_limitDateList = props.limitDateList) === null || _props_limitDateList === void 0 ? void 0 : _props_limitDateList.map(function(item) {
112
106
  return new LimitDate(item);
113
- })) !== null && _props_limitDateList_map !== void 0 ? _props_limitDateList_map : [];
114
- var _props_allowDateRange;
107
+ })) !== null && _ref7 !== void 0 ? _ref7 : [];
115
108
  // this.multiple = props?.multiple ?? false
116
- _this.allowDateRange = (_props_allowDateRange = props === null || props === void 0 ? void 0 : props.allowDateRange) !== null && _props_allowDateRange !== void 0 ? _props_allowDateRange : [
109
+ _this.allowDateRange = (_ref8 = props === null || props === void 0 ? void 0 : props.allowDateRange) !== null && _ref8 !== void 0 ? _ref8 : [
117
110
  '',
118
111
  ''
119
112
  ];
120
- var _props_filterWeekend;
121
- _this.filterWeekend = (_props_filterWeekend = props === null || props === void 0 ? void 0 : props.filterWeekend) !== null && _props_filterWeekend !== void 0 ? _props_filterWeekend : false;
113
+ _this.filterWeekend = (_ref9 = props === null || props === void 0 ? void 0 : props.filterWeekend) !== null && _ref9 !== void 0 ? _ref9 : false;
114
+ _this.isInternational = (_ref10 = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _ref10 !== void 0 ? _ref10 : false;
122
115
  return _this;
123
116
  }
124
117
  return DatePickerProperty;
@@ -129,8 +129,9 @@ var DateRangeControl = /*#__PURE__*/ function(DesignerFormControl) {
129
129
  value: function toDataBindModel(parentId) {
130
130
  var dataBindModel = _get(_get_prototype_of(DateRangeControl.prototype), "toDataBindModel", this).call(this, parentId);
131
131
  if (dataBindModel && !Array.isArray(dataBindModel)) {
132
- var dateType = this.props.dateType;
132
+ var _this_props = this.props, dateType = _this_props.dateType, isInternational = _this_props.isInternational;
133
133
  dataBindModel.props.dateType = dateType;
134
+ dataBindModel.props.isInternational = isInternational;
134
135
  }
135
136
  return dataBindModel;
136
137
  }
@@ -202,7 +203,8 @@ _define_property(DateRangeControl, "setting", [
202
203
  COMMON_SETTING_TYPE.REQUIRED,
203
204
  COMMON_SETTING_TYPE.IS_HIDE,
204
205
  COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
205
- COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
206
+ COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
207
+ COMMON_SETTING_TYPE.IS_INTERNATIONAL
206
208
  ]
207
209
  },
208
210
  {