@byteluck-fe/model-driven-controls 6.2.0-2-beta.1 → 7.0.0-1-bate1

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 (103) hide show
  1. package/dist/esm/formControls/Address/property.js +1 -1
  2. package/dist/esm/formControls/Attachment/property.js +6 -1
  3. package/dist/esm/formControls/Cascader/designer.js +231 -0
  4. package/dist/esm/formControls/Cascader/index.js +11 -0
  5. package/dist/esm/formControls/Cascader/property.js +166 -0
  6. package/dist/esm/formControls/Cascader/runtime.js +114 -0
  7. package/dist/esm/formControls/Cascader/types.js +0 -0
  8. package/dist/esm/formControls/Checkbox/designer.js +17 -0
  9. package/dist/esm/formControls/Checkbox/property.js +11 -1
  10. package/dist/esm/formControls/Image/designer.js +14 -0
  11. package/dist/esm/formControls/Image/property.js +6 -1
  12. package/dist/esm/formControls/Number/designer.js +4 -0
  13. package/dist/esm/formControls/Number/property.js +16 -1
  14. package/dist/esm/formControls/Radio/designer.js +17 -0
  15. package/dist/esm/formControls/Radio/property.js +11 -1
  16. package/dist/esm/formControls/Score/designer.js +11 -0
  17. package/dist/esm/formControls/Score/property.js +16 -1
  18. package/dist/esm/formControls/Select/designer.js +17 -0
  19. package/dist/esm/formControls/Select/property.js +11 -1
  20. package/dist/esm/formControls/SelectMultiple/designer.js +17 -0
  21. package/dist/esm/formControls/SelectMultiple/property.js +11 -1
  22. package/dist/esm/formControls/TimePicker/designer.js +193 -0
  23. package/dist/esm/formControls/TimePicker/index.js +11 -0
  24. package/dist/esm/formControls/TimePicker/property.js +108 -0
  25. package/dist/esm/formControls/TimePicker/runtime.js +114 -0
  26. package/dist/esm/formControls/TimePicker/types.js +0 -0
  27. package/dist/esm/formControls/TimeRange/designer.js +197 -0
  28. package/dist/esm/formControls/TimeRange/index.js +11 -0
  29. package/dist/esm/formControls/TimeRange/property.js +179 -0
  30. package/dist/esm/formControls/TimeRange/runtime.js +114 -0
  31. package/dist/esm/formControls/TimeRange/types.js +0 -0
  32. package/dist/esm/formControls/index.js +3 -0
  33. package/dist/esm/framework.js +16 -0
  34. package/dist/esm/layoutControls/CardGroup/designer.js +128 -0
  35. package/dist/esm/layoutControls/CardGroup/property.js +39 -4
  36. package/dist/esm/layoutControls/Col/property.js +3 -7
  37. package/dist/esm/layoutControls/CollapsePane/designer.js +129 -0
  38. package/dist/esm/layoutControls/CollapsePane/index.js +11 -0
  39. package/dist/esm/layoutControls/CollapsePane/property.js +93 -0
  40. package/dist/esm/layoutControls/CollapsePane/runtime.js +112 -0
  41. package/dist/esm/layoutControls/CollapsePane/types.js +0 -0
  42. package/dist/esm/layoutControls/Row/designer.js +16 -0
  43. package/dist/esm/layoutControls/Row/property.js +10 -2
  44. package/dist/esm/layoutControls/Step/designer.js +72 -0
  45. package/dist/esm/layoutControls/Step/property.js +51 -7
  46. package/dist/esm/layoutControls/Tab/designer.js +56 -0
  47. package/dist/esm/layoutControls/Tab/property.js +24 -1
  48. package/dist/esm/layoutControls/TableLayoutCol/property.js +3 -3
  49. package/dist/esm/layoutControls/collapse/designer.js +173 -0
  50. package/dist/esm/layoutControls/collapse/index.js +11 -0
  51. package/dist/esm/layoutControls/collapse/property.js +107 -0
  52. package/dist/esm/layoutControls/collapse/runtime.js +112 -0
  53. package/dist/esm/layoutControls/collapse/types.js +0 -0
  54. package/dist/esm/listControls/SubTable/designer.js +17 -0
  55. package/dist/esm/listControls/SubTable/property.js +6 -1
  56. package/dist/index.umd.js +1 -1
  57. package/dist/types/formControls/Address/property.d.ts +2 -2
  58. package/dist/types/formControls/Attachment/property.d.ts +5 -0
  59. package/dist/types/formControls/Cascader/designer.d.ts +20 -0
  60. package/dist/types/formControls/Cascader/index.d.ts +12 -0
  61. package/dist/types/formControls/Cascader/property.d.ts +72 -0
  62. package/dist/types/formControls/Cascader/runtime.d.ts +12 -0
  63. package/dist/types/formControls/Cascader/types.d.ts +0 -0
  64. package/dist/types/formControls/Checkbox/property.d.ts +10 -0
  65. package/dist/types/formControls/Image/property.d.ts +5 -0
  66. package/dist/types/formControls/Number/property.d.ts +15 -0
  67. package/dist/types/formControls/Radio/property.d.ts +10 -0
  68. package/dist/types/formControls/Score/property.d.ts +15 -0
  69. package/dist/types/formControls/Select/property.d.ts +10 -0
  70. package/dist/types/formControls/SelectMultiple/property.d.ts +10 -0
  71. package/dist/types/formControls/TimePicker/designer.d.ts +14 -0
  72. package/dist/types/formControls/TimePicker/index.d.ts +12 -0
  73. package/dist/types/formControls/TimePicker/property.d.ts +11 -0
  74. package/dist/types/formControls/TimePicker/runtime.d.ts +12 -0
  75. package/dist/types/formControls/TimePicker/types.d.ts +0 -0
  76. package/dist/types/formControls/TimeRange/designer.d.ts +14 -0
  77. package/dist/types/formControls/TimeRange/index.d.ts +12 -0
  78. package/dist/types/formControls/TimeRange/property.d.ts +62 -0
  79. package/dist/types/formControls/TimeRange/runtime.d.ts +12 -0
  80. package/dist/types/formControls/TimeRange/types.d.ts +0 -0
  81. package/dist/types/formControls/index.d.ts +3 -0
  82. package/dist/types/framework.d.ts +26 -19
  83. package/dist/types/layoutControls/CardGroup/property.d.ts +39 -0
  84. package/dist/types/layoutControls/Col/property.d.ts +1 -2
  85. package/dist/types/layoutControls/CollapsePane/designer.d.ts +14 -0
  86. package/dist/types/layoutControls/CollapsePane/index.d.ts +12 -0
  87. package/dist/types/layoutControls/CollapsePane/property.d.ts +11 -0
  88. package/dist/types/layoutControls/CollapsePane/runtime.d.ts +9 -0
  89. package/dist/types/layoutControls/CollapsePane/types.d.ts +0 -0
  90. package/dist/types/layoutControls/Row/property.d.ts +6 -1
  91. package/dist/types/layoutControls/Step/property.d.ts +56 -1
  92. package/dist/types/layoutControls/Tab/property.d.ts +24 -0
  93. package/dist/types/layoutControls/TableLayoutCol/property.d.ts +3 -3
  94. package/dist/types/layoutControls/collapse/designer.d.ts +14 -0
  95. package/dist/types/layoutControls/collapse/index.d.ts +12 -0
  96. package/dist/types/layoutControls/collapse/property.d.ts +26 -0
  97. package/dist/types/layoutControls/collapse/runtime.d.ts +9 -0
  98. package/dist/types/layoutControls/collapse/types.d.ts +0 -0
  99. package/dist/types/listControls/SubTable/designer.d.ts +19 -0
  100. package/dist/types/listControls/SubTable/property.d.ts +5 -0
  101. package/dist/types/type.d.ts +4 -1
  102. package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +1 -1
  103. package/package.json +5 -5
@@ -133,7 +133,7 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
133
133
  */ _define_property(_this, "defaultValueType", void 0), /**
134
134
  * 默认值
135
135
  */ _define_property(_this, "defaultValue", void 0), /**
136
- * 地址类型
136
+ * 地址类型;country:国家;province:省;city:城市;district:区县;
137
137
  * @defaultValue ['province', 'city', 'district']
138
138
  */ _define_property(_this, "addressType", void 0);
139
139
  var _props_caption;
@@ -140,7 +140,10 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
140
140
  * */ _define_property(_this, "maxSize", void 0), // 附件按钮操作数组
141
141
  _define_property(_this, "operation", void 0), // 附件ai解释
142
142
  _define_property(_this, "aiExplanation", void 0), // 附件ai解释长度
143
- _define_property(_this, "aiExplanationLength", void 0), _define_property(_this, "customOperation", void 0);
143
+ _define_property(_this, "aiExplanationLength", void 0), _define_property(_this, "customOperation", void 0), /**
144
+ * 描述信息
145
+ * @defaultValue
146
+ */ _define_property(_this, "describe", void 0);
144
147
  var _props_defaultValue;
145
148
  _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
146
149
  var _props_showType;
@@ -177,6 +180,8 @@ var AttachmentProperty = /*#__PURE__*/ function(BaseControlProperty) {
177
180
  _this.storageType = (_props_storageType = props === null || props === void 0 ? void 0 : props.storageType) !== null && _props_storageType !== void 0 ? _props_storageType : 'local';
178
181
  var _props_customOperation;
179
182
  _this.customOperation = (_props_customOperation = props === null || props === void 0 ? void 0 : props.customOperation) !== null && _props_customOperation !== void 0 ? _props_customOperation : [];
183
+ var _props_describe;
184
+ _this.describe = (_props_describe = props === null || props === void 0 ? void 0 : props.describe) !== null && _props_describe !== void 0 ? _props_describe : '';
180
185
  return _this;
181
186
  }
182
187
  return AttachmentProperty;
@@ -0,0 +1,231 @@
1
+ function _assert_this_initialized(self) {
2
+ if (self === void 0) {
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ }
5
+ return self;
6
+ }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
11
+ function _class_call_check(instance, Constructor) {
12
+ if (!(instance instanceof Constructor)) {
13
+ throw new TypeError("Cannot call a class as a function");
14
+ }
15
+ }
16
+ function _defineProperties(target, props) {
17
+ for(var i = 0; i < props.length; i++){
18
+ var descriptor = props[i];
19
+ descriptor.enumerable = descriptor.enumerable || false;
20
+ descriptor.configurable = true;
21
+ if ("value" in descriptor) descriptor.writable = true;
22
+ Object.defineProperty(target, descriptor.key, descriptor);
23
+ }
24
+ }
25
+ function _create_class(Constructor, protoProps, staticProps) {
26
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
+ if (staticProps) _defineProperties(Constructor, staticProps);
28
+ return Constructor;
29
+ }
30
+ function _define_property(obj, key, value) {
31
+ if (key in obj) {
32
+ Object.defineProperty(obj, key, {
33
+ value: value,
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true
37
+ });
38
+ } else {
39
+ obj[key] = value;
40
+ }
41
+ return obj;
42
+ }
43
+ function _get_prototype_of(o) {
44
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
45
+ return o.__proto__ || Object.getPrototypeOf(o);
46
+ };
47
+ return _get_prototype_of(o);
48
+ }
49
+ function _inherits(subClass, superClass) {
50
+ if (typeof superClass !== "function" && superClass !== null) {
51
+ throw new TypeError("Super expression must either be null or a function");
52
+ }
53
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
54
+ constructor: {
55
+ value: subClass,
56
+ writable: true,
57
+ configurable: true
58
+ }
59
+ });
60
+ if (superClass) _set_prototype_of(subClass, superClass);
61
+ }
62
+ function _possible_constructor_return(self, call) {
63
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
+ return call;
65
+ }
66
+ return _assert_this_initialized(self);
67
+ }
68
+ function _set_prototype_of(o, p) {
69
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
70
+ o.__proto__ = p;
71
+ return o;
72
+ };
73
+ return _set_prototype_of(o, p);
74
+ }
75
+ function _type_of(obj) {
76
+ "@swc/helpers - typeof";
77
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
+ }
79
+ function _is_native_reflect_construct() {
80
+ try {
81
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
+ } catch (_) {}
83
+ return (_is_native_reflect_construct = function() {
84
+ return !!result;
85
+ })();
86
+ }
87
+ import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
88
+ import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
+ import CascaderProperty from './property';
90
+ import { getLocaleText } from '@byteluck-fe/locale-message';
91
+ var CascaderControl = /*#__PURE__*/ function(DesignerFormControl) {
92
+ "use strict";
93
+ _inherits(CascaderControl, DesignerFormControl);
94
+ function CascaderControl(props) {
95
+ _class_call_check(this, CascaderControl);
96
+ var _this;
97
+ _this = _call_super(this, CascaderControl, [
98
+ props
99
+ ]), _define_property(_this, "props", void 0);
100
+ _this.props = new CascaderProperty(props === null || props === void 0 ? void 0 : props.props);
101
+ return _this;
102
+ }
103
+ _create_class(CascaderControl, null, [
104
+ {
105
+ key: "controlName",
106
+ get: function get() {
107
+ return '级联选择';
108
+ }
109
+ },
110
+ {
111
+ key: "controlIcon",
112
+ get: function get() {
113
+ return 'iconziyou_dagangshu';
114
+ }
115
+ },
116
+ {
117
+ key: "controlType",
118
+ get: function get() {
119
+ return 'cascader';
120
+ }
121
+ },
122
+ {
123
+ key: "controlCustomAttributes",
124
+ get: function get() {
125
+ return [
126
+ {
127
+ key: 'displayBoList',
128
+ name: getLocaleText('CMD.6cb51751712162323'),
129
+ required: true
130
+ },
131
+ {
132
+ key: 'parentField',
133
+ name: getLocaleText('CMD.33ee1751712159752'),
134
+ required: true
135
+ }
136
+ ];
137
+ }
138
+ }
139
+ ]);
140
+ return CascaderControl;
141
+ }(DesignerFormControl);
142
+ _define_property(CascaderControl, "controlEventKeys", [
143
+ 'on_change',
144
+ 'on_focus',
145
+ 'on_blur'
146
+ ]);
147
+ _define_property(CascaderControl, "controlFieldType", FieldTypes.ARRAY);
148
+ _define_property(CascaderControl, "setting", [
149
+ {
150
+ key: 'data-bind',
151
+ visible: true
152
+ },
153
+ {
154
+ key: 'field-type',
155
+ visible: true
156
+ },
157
+ {
158
+ key: 'caption',
159
+ showItems: [
160
+ COMMON_SETTING_TYPE.CAPTION,
161
+ COMMON_SETTING_TYPE.IS_HIDE_CAPTION
162
+ ],
163
+ visible: true
164
+ },
165
+ {
166
+ key: 'label-position',
167
+ visible: true
168
+ },
169
+ {
170
+ key: 'default-state',
171
+ visible: true
172
+ },
173
+ {
174
+ key: 'placeholder',
175
+ visible: true
176
+ },
177
+ {
178
+ key: 'common-setting',
179
+ visible: true,
180
+ showItems: [
181
+ COMMON_SETTING_TYPE.REQUIRED,
182
+ COMMON_SETTING_TYPE.IS_HIDE,
183
+ COMMON_SETTING_TYPE.MULTIPLE,
184
+ COMMON_SETTING_TYPE.CAN_SEARCH,
185
+ COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
186
+ COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
187
+ ]
188
+ },
189
+ {
190
+ key: 'options-setting',
191
+ visible: true
192
+ },
193
+ // 触发方式
194
+ {
195
+ key: 'cascader-trigger-type',
196
+ visible: true
197
+ },
198
+ // 选值模式
199
+ {
200
+ key: 'cascader-select-value-type',
201
+ visible: true
202
+ },
203
+ // 显示模式
204
+ {
205
+ key: 'cascader-show-type',
206
+ visible: true
207
+ },
208
+ {
209
+ key: 'caption-style',
210
+ showItems: [
211
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
212
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
213
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
214
+ ],
215
+ visible: true
216
+ },
217
+ {
218
+ key: 'default-value',
219
+ visible: true
220
+ },
221
+ {
222
+ key: 'regular-rules',
223
+ visible: true
224
+ },
225
+ {
226
+ key: 'super-setting',
227
+ visible: true
228
+ }
229
+ ]);
230
+ export default CascaderControl;
231
+ export { CascaderControl as DesignerCascaderControl };
@@ -0,0 +1,11 @@
1
+ import Designer from './designer';
2
+ import Runtime from './runtime';
3
+ import Property from './property';
4
+ export default {
5
+ Designer: Designer,
6
+ Runtime: Runtime,
7
+ Property: Property
8
+ };
9
+ export * from './designer';
10
+ export * from './runtime';
11
+ export * from './property';
@@ -0,0 +1,166 @@
1
+ function _assert_this_initialized(self) {
2
+ if (self === void 0) {
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ }
5
+ return self;
6
+ }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
11
+ function _class_call_check(instance, Constructor) {
12
+ if (!(instance instanceof Constructor)) {
13
+ throw new TypeError("Cannot call a class as a function");
14
+ }
15
+ }
16
+ function _define_property(obj, key, value) {
17
+ if (key in obj) {
18
+ Object.defineProperty(obj, key, {
19
+ value: value,
20
+ enumerable: true,
21
+ configurable: true,
22
+ writable: true
23
+ });
24
+ } else {
25
+ obj[key] = value;
26
+ }
27
+ return obj;
28
+ }
29
+ function _get_prototype_of(o) {
30
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
31
+ return o.__proto__ || Object.getPrototypeOf(o);
32
+ };
33
+ return _get_prototype_of(o);
34
+ }
35
+ function _inherits(subClass, superClass) {
36
+ if (typeof superClass !== "function" && superClass !== null) {
37
+ throw new TypeError("Super expression must either be null or a function");
38
+ }
39
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
40
+ constructor: {
41
+ value: subClass,
42
+ writable: true,
43
+ configurable: true
44
+ }
45
+ });
46
+ if (superClass) _set_prototype_of(subClass, superClass);
47
+ }
48
+ function _possible_constructor_return(self, call) {
49
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
50
+ return call;
51
+ }
52
+ return _assert_this_initialized(self);
53
+ }
54
+ function _set_prototype_of(o, p) {
55
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
56
+ o.__proto__ = p;
57
+ return o;
58
+ };
59
+ return _set_prototype_of(o, p);
60
+ }
61
+ function _type_of(obj) {
62
+ "@swc/helpers - typeof";
63
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
+ }
65
+ function _is_native_reflect_construct() {
66
+ try {
67
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
68
+ } catch (_) {}
69
+ return (_is_native_reflect_construct = function() {
70
+ return !!result;
71
+ })();
72
+ }
73
+ import CascaderControl from './designer';
74
+ import { BaseControlProperty, TreeDataSourceBind, MultistageFillingItem } from '@byteluck-fe/model-driven-core';
75
+ import { getLocaleText } from '@byteluck-fe/locale-message';
76
+ /**
77
+ * Cascader 级联选择
78
+ * @public
79
+ */ var CascaderProperty = /*#__PURE__*/ function(BaseControlProperty) {
80
+ "use strict";
81
+ _inherits(CascaderProperty, BaseControlProperty);
82
+ function CascaderProperty(props) {
83
+ _class_call_check(this, CascaderProperty);
84
+ var _this;
85
+ var _props_multistageFilling;
86
+ _this = _call_super(this, CascaderProperty, [
87
+ props
88
+ ]), /**
89
+ * 支持搜索
90
+ * @defaultValue false
91
+ */ _define_property(_this, "showSearch", void 0), /**
92
+ * 支持多选节点
93
+ * @defaultValue false
94
+ */ _define_property(_this, "multiple", void 0), /**
95
+ * 次级菜单的展开方式,click 点击方式打开,hover hover方式打开
96
+ * @defaultValue click
97
+ */ _define_property(_this, "expandTrigger", void 0), /**
98
+ * 默认值
99
+ * @defaultValue []
100
+ */ _define_property(_this, "defaultValue", void 0), /**
101
+ * 是否支持清除
102
+ * @defaultValue true
103
+ */ _define_property(_this, "allowClear", void 0), /**
104
+ * 显示模式,'': 默认模式;Cascader.SHOW_CHILD: 只显示选中的子节点;Cascader.SHOW_PARENT: 只显示父节点(当父节点下所有子节点都选中时)
105
+ * @defaultValue ''
106
+ */ _define_property(_this, "showCheckedStrategy", void 0), /**
107
+ * 选值模式,CHILD:只存储选中的子节点;ANY:任意节点
108
+ * @defaultValue CHILD
109
+ */ _define_property(_this, "saveCheckedStrategy", void 0), /**
110
+ * 分割符
111
+ * @defaultValue '/'
112
+ */ _define_property(_this, "separator", void 0), /**
113
+ * 数据源类型,custom:自定义;datasource:绑定数据源
114
+ * @defaultValue custom
115
+ */ _define_property(_this, "optionConfig", void 0), /**
116
+ * 绑定数据源
117
+ */ _define_property(_this, "datasourceBind", void 0), /**
118
+ * 数据过滤
119
+ */ _define_property(_this, "filterItemDatasourceBind", void 0), /**
120
+ * 数据填充
121
+ */ _define_property(_this, "multistageFilling", void 0), /**
122
+ * 是否开启填充
123
+ * @defaultValue false
124
+ */ _define_property(_this, "openMultistageFilling", void 0);
125
+ var _props_caption;
126
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : CascaderControl.controlName;
127
+ var _props_placeholder;
128
+ _this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
129
+ var _props_multiple;
130
+ _this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
131
+ var _props_showSearch;
132
+ _this.showSearch = (_props_showSearch = props === null || props === void 0 ? void 0 : props.showSearch) !== null && _props_showSearch !== void 0 ? _props_showSearch : true;
133
+ var _props_expandTrigger;
134
+ _this.expandTrigger = (_props_expandTrigger = props === null || props === void 0 ? void 0 : props.expandTrigger) !== null && _props_expandTrigger !== void 0 ? _props_expandTrigger : 'click';
135
+ var _props_allowClear;
136
+ _this.allowClear = (_props_allowClear = props === null || props === void 0 ? void 0 : props.allowClear) !== null && _props_allowClear !== void 0 ? _props_allowClear : true;
137
+ var _props_showCheckedStrategy;
138
+ _this.showCheckedStrategy = (_props_showCheckedStrategy = props === null || props === void 0 ? void 0 : props.showCheckedStrategy) !== null && _props_showCheckedStrategy !== void 0 ? _props_showCheckedStrategy : '';
139
+ var _props_saveCheckedStrategy;
140
+ _this.saveCheckedStrategy = (_props_saveCheckedStrategy = props === null || props === void 0 ? void 0 : props.saveCheckedStrategy) !== null && _props_saveCheckedStrategy !== void 0 ? _props_saveCheckedStrategy : 'CHILD';
141
+ var _props_separator;
142
+ _this.separator = (_props_separator = props === null || props === void 0 ? void 0 : props.separator) !== null && _props_separator !== void 0 ? _props_separator : '/';
143
+ var _props_optionConfig;
144
+ _this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'custom';
145
+ var _props_datasourceBind;
146
+ _this.datasourceBind = new TreeDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
147
+ attributes: CascaderControl.controlCustomAttributes
148
+ });
149
+ var _props_filterItemDatasourceBind;
150
+ _this.filterItemDatasourceBind = new TreeDataSourceBind((_props_filterItemDatasourceBind = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _props_filterItemDatasourceBind !== void 0 ? _props_filterItemDatasourceBind : {
151
+ attributes: CascaderControl.controlCustomAttributes
152
+ });
153
+ var _props_openMultistageFilling;
154
+ _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
155
+ var _props_multistageFilling_map;
156
+ _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) {
157
+ return new MultistageFillingItem(item);
158
+ })) !== null && _props_multistageFilling_map !== void 0 ? _props_multistageFilling_map : [];
159
+ var _props_defaultValue;
160
+ _this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
161
+ return _this;
162
+ }
163
+ return CascaderProperty;
164
+ }(BaseControlProperty);
165
+ export default CascaderProperty;
166
+ export { CascaderProperty };
@@ -0,0 +1,114 @@
1
+ function _assert_this_initialized(self) {
2
+ if (self === void 0) {
3
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
+ }
5
+ return self;
6
+ }
7
+ function _call_super(_this, derived, args) {
8
+ derived = _get_prototype_of(derived);
9
+ return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
10
+ }
11
+ function _class_call_check(instance, Constructor) {
12
+ if (!(instance instanceof Constructor)) {
13
+ throw new TypeError("Cannot call a class as a function");
14
+ }
15
+ }
16
+ function _defineProperties(target, props) {
17
+ for(var i = 0; i < props.length; i++){
18
+ var descriptor = props[i];
19
+ descriptor.enumerable = descriptor.enumerable || false;
20
+ descriptor.configurable = true;
21
+ if ("value" in descriptor) descriptor.writable = true;
22
+ Object.defineProperty(target, descriptor.key, descriptor);
23
+ }
24
+ }
25
+ function _create_class(Constructor, protoProps, staticProps) {
26
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27
+ if (staticProps) _defineProperties(Constructor, staticProps);
28
+ return Constructor;
29
+ }
30
+ function _define_property(obj, key, value) {
31
+ if (key in obj) {
32
+ Object.defineProperty(obj, key, {
33
+ value: value,
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true
37
+ });
38
+ } else {
39
+ obj[key] = value;
40
+ }
41
+ return obj;
42
+ }
43
+ function _get_prototype_of(o) {
44
+ _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
45
+ return o.__proto__ || Object.getPrototypeOf(o);
46
+ };
47
+ return _get_prototype_of(o);
48
+ }
49
+ function _inherits(subClass, superClass) {
50
+ if (typeof superClass !== "function" && superClass !== null) {
51
+ throw new TypeError("Super expression must either be null or a function");
52
+ }
53
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
54
+ constructor: {
55
+ value: subClass,
56
+ writable: true,
57
+ configurable: true
58
+ }
59
+ });
60
+ if (superClass) _set_prototype_of(subClass, superClass);
61
+ }
62
+ function _possible_constructor_return(self, call) {
63
+ if (call && (_type_of(call) === "object" || typeof call === "function")) {
64
+ return call;
65
+ }
66
+ return _assert_this_initialized(self);
67
+ }
68
+ function _set_prototype_of(o, p) {
69
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
70
+ o.__proto__ = p;
71
+ return o;
72
+ };
73
+ return _set_prototype_of(o, p);
74
+ }
75
+ function _type_of(obj) {
76
+ "@swc/helpers - typeof";
77
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
78
+ }
79
+ function _is_native_reflect_construct() {
80
+ try {
81
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
82
+ } catch (_) {}
83
+ return (_is_native_reflect_construct = function() {
84
+ return !!result;
85
+ })();
86
+ }
87
+ import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
88
+ import { FieldTypes } from '@byteluck-fe/model-driven-shared';
89
+ import CascaderProperty from './property';
90
+ var CascaderControl = /*#__PURE__*/ function(RuntimeFormControl) {
91
+ "use strict";
92
+ _inherits(CascaderControl, RuntimeFormControl);
93
+ function CascaderControl(props) {
94
+ _class_call_check(this, CascaderControl);
95
+ var _this;
96
+ _this = _call_super(this, CascaderControl, [
97
+ props
98
+ ]), _define_property(_this, "props", void 0);
99
+ _this.props = new CascaderProperty(props === null || props === void 0 ? void 0 : props.props);
100
+ return _this;
101
+ }
102
+ _create_class(CascaderControl, null, [
103
+ {
104
+ key: "controlType",
105
+ get: function get() {
106
+ return 'cascader';
107
+ }
108
+ }
109
+ ]);
110
+ return CascaderControl;
111
+ }(RuntimeFormControl);
112
+ _define_property(CascaderControl, "controlFieldType", FieldTypes.VARCHAR);
113
+ export default CascaderControl;
114
+ export { CascaderControl as RuntimeCascaderControl };
File without changes
@@ -179,6 +179,23 @@ _define_property(CheckboxControl, "setting", [
179
179
  key: 'ai-content-search',
180
180
  visible: true
181
181
  },
182
+ {
183
+ key: 'common-button-radio',
184
+ visible: true,
185
+ name: 'type',
186
+ label: '选项类型',
187
+ default: 'default',
188
+ options: [
189
+ {
190
+ value: 'default',
191
+ label: '默认'
192
+ },
193
+ {
194
+ value: 'button',
195
+ label: '按钮'
196
+ }
197
+ ]
198
+ },
182
199
  {
183
200
  key: 'options-setting',
184
201
  visible: true
@@ -140,7 +140,13 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
140
140
  * ai 显示内容搜索 false | true
141
141
  * @defaultValue false
142
142
  * @public
143
- */ _define_property(_this, "aiContentSearch", void 0);
143
+ */ _define_property(_this, "aiContentSearch", void 0), /**
144
+ * 选项类型;default:默认;button:按钮;
145
+ * @defaultValue default
146
+ */ _define_property(_this, "type", void 0), /**
147
+ * 是否开启设置选项自定义颜色;仅当选项设置为自定义时该设置生效;
148
+ * @defaultValue false
149
+ */ _define_property(_this, "isUseCustomColor", void 0);
144
150
  var _props_options;
145
151
  _this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
146
152
  {
@@ -181,6 +187,10 @@ var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
181
187
  _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : true;
182
188
  var _props_openMultistageFilling;
183
189
  _this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
190
+ var _props_type;
191
+ _this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
192
+ var _props_isUseCustomColor;
193
+ _this.isUseCustomColor = (_props_isUseCustomColor = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _props_isUseCustomColor !== void 0 ? _props_isUseCustomColor : false;
184
194
  _this.multistageFilling = [];
185
195
  if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
186
196
  props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
@@ -152,6 +152,12 @@ _define_property(ImageControl, "setting", [
152
152
  ],
153
153
  visible: true
154
154
  },
155
+ {
156
+ key: 'common-input',
157
+ visible: true,
158
+ name: 'describe',
159
+ label: '描述信息'
160
+ },
155
161
  {
156
162
  key: 'label-position',
157
163
  visible: true
@@ -187,6 +193,14 @@ _define_property(ImageControl, "setting", [
187
193
  key: 'attachment-limit',
188
194
  visible: true
189
195
  },
196
+ {
197
+ key: 'attachment-size',
198
+ visible: true
199
+ },
200
+ {
201
+ key: 'image-width-height',
202
+ visible: true
203
+ },
190
204
  {
191
205
  key: 'image-defaultval',
192
206
  visible: true
@@ -88,7 +88,10 @@ var ImageProperty = /*#__PURE__*/ function(AttachmentProperty) {
88
88
  var _this;
89
89
  _this = _call_super(this, ImageProperty, [
90
90
  props
91
- ]), _define_property(_this, "compressTypeCode", void 0), _define_property(_this, "compressRatio", void 0), _define_property(_this, "maxPixel", void 0);
91
+ ]), _define_property(_this, "compressTypeCode", void 0), _define_property(_this, "compressRatio", void 0), _define_property(_this, "maxPixel", void 0), /**
92
+ * 图片尺寸限制;第一个值为宽度限制;第二个值为高度限制;空数组则没有限制
93
+ * @defaultValue []
94
+ */ _define_property(_this, "maxWidthHeight", void 0);
92
95
  _this.showType = 'image';
93
96
  var _props_maxLimit;
94
97
  _this.maxLimit = (_props_maxLimit = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _props_maxLimit !== void 0 ? _props_maxLimit : 10;
@@ -102,6 +105,8 @@ var ImageProperty = /*#__PURE__*/ function(AttachmentProperty) {
102
105
  _this.compressRatio = (_props_compressRatio = props === null || props === void 0 ? void 0 : props.compressRatio) !== null && _props_compressRatio !== void 0 ? _props_compressRatio : 1; // 默认压缩比例1
103
106
  var _props_maxPixel;
104
107
  _this.maxPixel = (_props_maxPixel = props === null || props === void 0 ? void 0 : props.maxPixel) !== null && _props_maxPixel !== void 0 ? _props_maxPixel : 1080; // 默认最大像素1080
108
+ var _props_maxWidthHeight;
109
+ _this.maxWidthHeight = (_props_maxWidthHeight = props === null || props === void 0 ? void 0 : props.maxWidthHeight) !== null && _props_maxWidthHeight !== void 0 ? _props_maxWidthHeight : [];
105
110
  return _this;
106
111
  }
107
112
  return ImageProperty;
@@ -247,6 +247,10 @@ _define_property(NumberControl, "setting", [
247
247
  key: 'regular-rules',
248
248
  visible: true
249
249
  },
250
+ {
251
+ key: 'number-control-button',
252
+ visible: true
253
+ },
250
254
  {
251
255
  key: 'super-setting',
252
256
  visible: true