@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
@@ -0,0 +1,197 @@
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 TimeRangeProperty from './property';
90
+ import { getLocaleText } from '@byteluck-fe/locale-message';
91
+ var TimeRangeControl = /*#__PURE__*/ function(DesignerFormControl) {
92
+ "use strict";
93
+ _inherits(TimeRangeControl, DesignerFormControl);
94
+ function TimeRangeControl(props) {
95
+ _class_call_check(this, TimeRangeControl);
96
+ var _this;
97
+ _this = _call_super(this, TimeRangeControl, [
98
+ props
99
+ ]), _define_property(_this, "props", void 0);
100
+ _this.props = new TimeRangeProperty(props === null || props === void 0 ? void 0 : props.props);
101
+ return _this;
102
+ }
103
+ _create_class(TimeRangeControl, null, [
104
+ {
105
+ key: "controlName",
106
+ get: function get() {
107
+ return getLocaleText('CMD.timescope', null, '日期区间');
108
+ }
109
+ },
110
+ {
111
+ key: "controlIcon",
112
+ get: function get() {
113
+ return 'iconriqiqujian';
114
+ }
115
+ },
116
+ {
117
+ key: "controlType",
118
+ get: function get() {
119
+ return 'time-range';
120
+ }
121
+ }
122
+ ]);
123
+ return TimeRangeControl;
124
+ }(DesignerFormControl);
125
+ _define_property(TimeRangeControl, "controlFieldType", FieldTypes.TIMESCOPE);
126
+ _define_property(TimeRangeControl, "setting", [
127
+ {
128
+ key: 'data-bind-time-range',
129
+ visible: true
130
+ },
131
+ {
132
+ key: 'caption',
133
+ showItems: [
134
+ COMMON_SETTING_TYPE.CAPTION,
135
+ COMMON_SETTING_TYPE.IS_HIDE_CAPTION
136
+ ],
137
+ visible: true
138
+ },
139
+ {
140
+ key: 'caption-style',
141
+ showItems: [
142
+ COMMON_SETTING_TYPE.CAPTION_SIZE,
143
+ COMMON_SETTING_TYPE.CAPTION_COLOR,
144
+ COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
145
+ ],
146
+ visible: true
147
+ },
148
+ {
149
+ key: 'label-position',
150
+ visible: true
151
+ },
152
+ {
153
+ key: 'default-state',
154
+ visible: true
155
+ },
156
+ {
157
+ key: 'common-input',
158
+ visible: true,
159
+ name: 'placeholderStart',
160
+ label: '开始时间提示文字'
161
+ },
162
+ {
163
+ key: 'common-input',
164
+ visible: true,
165
+ name: 'placeholderEnd',
166
+ label: '结束时间提示文字'
167
+ },
168
+ {
169
+ key: 'time-type',
170
+ visible: true
171
+ },
172
+ {
173
+ key: 'common-setting',
174
+ visible: true,
175
+ showItems: [
176
+ COMMON_SETTING_TYPE.REQUIRED,
177
+ COMMON_SETTING_TYPE.IS_HIDE,
178
+ COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
179
+ COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
180
+ COMMON_SETTING_TYPE.IS_INTERNATIONAL
181
+ ]
182
+ },
183
+ {
184
+ key: 'time-limit-range',
185
+ visible: true
186
+ },
187
+ {
188
+ key: 'default-value',
189
+ visible: true
190
+ },
191
+ {
192
+ key: 'super-setting',
193
+ visible: true
194
+ }
195
+ ]);
196
+ export default TimeRangeControl;
197
+ export { TimeRangeControl as DesignerTimeRangeControl };
@@ -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,179 @@
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 { BaseControlProperty, BaseControlPropertyRuntimeRules, RangeDataBind, RangeDateValue } from '@byteluck-fe/model-driven-core';
74
+ import TimeRangeControl from './designer';
75
+ import { LimitTime } from '../../framework';
76
+ var TimeRangePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
77
+ "use strict";
78
+ _inherits(TimeRangePropertyRuntimeRules, BaseControlPropertyRuntimeRules);
79
+ function TimeRangePropertyRuntimeRules(props) {
80
+ _class_call_check(this, TimeRangePropertyRuntimeRules);
81
+ var _this;
82
+ _this = _call_super(this, TimeRangePropertyRuntimeRules, [
83
+ props
84
+ ]);
85
+ if (_this[0] !== undefined) {
86
+ _this[0].type = 'object';
87
+ }
88
+ if (props.required && !props.isHide) {
89
+ _this.push({
90
+ type: 'object',
91
+ fields: {
92
+ max: {
93
+ type: 'string',
94
+ required: props.required,
95
+ message: _this[0].message
96
+ },
97
+ min: {
98
+ type: 'string',
99
+ required: props.required,
100
+ message: _this[0].message
101
+ }
102
+ }
103
+ });
104
+ }
105
+ return _this;
106
+ }
107
+ return TimeRangePropertyRuntimeRules;
108
+ }(BaseControlPropertyRuntimeRules);
109
+ /**
110
+ * TimeRange 时间区间
111
+ * @public
112
+ */ var TimeRangeProperty = /*#__PURE__*/ function(BaseControlProperty) {
113
+ "use strict";
114
+ _inherits(TimeRangeProperty, BaseControlProperty);
115
+ function TimeRangeProperty(props) {
116
+ _class_call_check(this, TimeRangeProperty);
117
+ var _this;
118
+ var _props_limitTimeList;
119
+ _this = _call_super(this, TimeRangeProperty, [
120
+ props
121
+ ]), /**
122
+ * 数据绑定项
123
+ */ _define_property(_this, "dataBind", void 0), /**
124
+ * 开始时间
125
+ * @public
126
+ * @defaultValue ''
127
+ */ _define_property(_this, "rangeMin", void 0), /**
128
+ * 结束时间
129
+ * @public
130
+ * @defaultValue ''
131
+ */ _define_property(_this, "rangeMax", void 0), /**
132
+ * 时间区间开始的提示文字
133
+ * @defaultValue ''
134
+ * @public
135
+ */ _define_property(_this, "placeholderStart", void 0), /**
136
+ * 时间区结束的提示文字
137
+ * @defaultValue ''
138
+ * @public
139
+ */ _define_property(_this, "placeholderEnd", void 0), /**
140
+ * 时间格式化字符串
141
+ * @defaultValue ''
142
+ * @public
143
+ */ _define_property(_this, "format", void 0), /**
144
+ * 默认值
145
+ * @defaultValue ''
146
+ * @public
147
+ */ _define_property(_this, "defaultValue", void 0), /**
148
+ * 时间限制范围
149
+ * @defaultValue []
150
+ * @public
151
+ */ _define_property(_this, "limitTimeList", void 0), _define_property(_this, "isInternational", void 0 //是否国际化
152
+ );
153
+ _this.dataBind = new RangeDataBind(props === null || props === void 0 ? void 0 : props.dataBind);
154
+ _this.defaultValue = new RangeDateValue(props === null || props === void 0 ? void 0 : props.defaultValue);
155
+ var _props_format;
156
+ _this.format = (_props_format = props === null || props === void 0 ? void 0 : props.format) !== null && _props_format !== void 0 ? _props_format : '';
157
+ var _props_rangeMin;
158
+ _this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
159
+ var _props_rangeMax;
160
+ _this.rangeMax = (_props_rangeMax = props === null || props === void 0 ? void 0 : props.rangeMax) !== null && _props_rangeMax !== void 0 ? _props_rangeMax : '';
161
+ var _props_placeholderStart;
162
+ _this.placeholderStart = (_props_placeholderStart = props === null || props === void 0 ? void 0 : props.placeholderStart) !== null && _props_placeholderStart !== void 0 ? _props_placeholderStart : '开始时间';
163
+ var _props_placeholderEnd;
164
+ _this.placeholderEnd = (_props_placeholderEnd = props === null || props === void 0 ? void 0 : props.placeholderEnd) !== null && _props_placeholderEnd !== void 0 ? _props_placeholderEnd : '结束时间';
165
+ var _props_caption;
166
+ _this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TimeRangeControl.controlName;
167
+ var _props_limitTimeList_map;
168
+ _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) {
169
+ return new LimitTime(item);
170
+ })) !== null && _props_limitTimeList_map !== void 0 ? _props_limitTimeList_map : [];
171
+ var _props_isInternational;
172
+ _this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
173
+ return _this;
174
+ }
175
+ return TimeRangeProperty;
176
+ }(BaseControlProperty);
177
+ _define_property(TimeRangeProperty, "RuntimeRules", TimeRangePropertyRuntimeRules);
178
+ export default TimeRangeProperty;
179
+ export { TimeRangeProperty, TimeRangePropertyRuntimeRules };
@@ -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 TimeRangeProperty from './property';
90
+ var TimeRangeControl = /*#__PURE__*/ function(RuntimeFormControl) {
91
+ "use strict";
92
+ _inherits(TimeRangeControl, RuntimeFormControl);
93
+ function TimeRangeControl(props) {
94
+ _class_call_check(this, TimeRangeControl);
95
+ var _this;
96
+ _this = _call_super(this, TimeRangeControl, [
97
+ props
98
+ ]), _define_property(_this, "props", void 0);
99
+ _this.props = new TimeRangeProperty(props === null || props === void 0 ? void 0 : props.props);
100
+ return _this;
101
+ }
102
+ _create_class(TimeRangeControl, null, [
103
+ {
104
+ key: "controlType",
105
+ get: function get() {
106
+ return 'time-range';
107
+ }
108
+ }
109
+ ]);
110
+ return TimeRangeControl;
111
+ }(RuntimeFormControl);
112
+ _define_property(TimeRangeControl, "controlFieldType", FieldTypes.TIMESCOPE);
113
+ export default TimeRangeControl;
114
+ export { TimeRangeControl as RuntimeTimeRangeControl };
File without changes
@@ -1,9 +1,12 @@
1
1
  export { default as Input } from './Input';
2
2
  export { default as Checkbox } from './Checkbox';
3
+ export { default as Cascader } from './Cascader';
3
4
  export { default as Radio } from './Radio';
4
5
  export { default as Number } from './Number';
5
6
  export { default as DatePicker } from './DatePicker';
6
7
  export { default as DateRange } from './DateRange';
8
+ export { default as TimePicker } from './TimePicker';
9
+ export { default as TimeRange } from './TimeRange';
7
10
  export { default as Textarea } from './Textarea';
8
11
  export { default as RichText } from './RichText';
9
12
  export { default as Select } from './Select';
@@ -68,6 +68,19 @@ export var TitleConfigEnum = /*#__PURE__*/ function(TitleConfigEnum) {
68
68
  this.dateLimitType = props.dateLimitType;
69
69
  this.value = props.value;
70
70
  };
71
+ export var LimitTime = function LimitTime(props) {
72
+ "use strict";
73
+ _class_call_check(this, LimitTime);
74
+ _define_property(this, "limitType", void 0); // 限制类型
75
+ _define_property(this, "id", void 0);
76
+ _define_property(this, "value", void 0); // 存储值
77
+ var _props_id;
78
+ this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId(8);
79
+ var _props_limitType;
80
+ this.limitType = (_props_limitType = props === null || props === void 0 ? void 0 : props.limitType) !== null && _props_limitType !== void 0 ? _props_limitType : 'hour';
81
+ var _props_value;
82
+ this.value = (_props_value = props === null || props === void 0 ? void 0 : props.value) !== null && _props_value !== void 0 ? _props_value : [];
83
+ };
71
84
  export var SCORE_TYPE = /*#__PURE__*/ function(SCORE_TYPE) {
72
85
  SCORE_TYPE["PRAISE"] = "praise";
73
86
  SCORE_TYPE["STAR"] = "star";
@@ -82,10 +95,13 @@ export var Explain = function Explain(props) {
82
95
  _class_call_check(this, Explain);
83
96
  _define_property(this, "id", void 0);
84
97
  _define_property(this, "text", void 0);
98
+ _define_property(this, "color", void 0);
85
99
  var _props_id;
86
100
  this.id = (_props_id = props === null || props === void 0 ? void 0 : props.id) !== null && _props_id !== void 0 ? _props_id : genNonDuplicateId();
87
101
  var _props_text;
88
102
  this.text = (_props_text = props === null || props === void 0 ? void 0 : props.text) !== null && _props_text !== void 0 ? _props_text : '';
103
+ var _props_color;
104
+ this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : '';
89
105
  };
90
106
  export var LINE_STYLE = /*#__PURE__*/ function(LINE_STYLE) {
91
107
  LINE_STYLE["SOLID"] = "solid-line";
@@ -131,6 +131,12 @@ _define_property(CardGroupControl, "setting", [
131
131
  ],
132
132
  visible: true
133
133
  },
134
+ {
135
+ key: 'common-input',
136
+ visible: true,
137
+ name: 'describe',
138
+ label: '描述信息'
139
+ },
134
140
  {
135
141
  key: 'common-setting',
136
142
  visible: true,
@@ -142,6 +148,128 @@ _define_property(CardGroupControl, "setting", [
142
148
  key: 'collapse-setting',
143
149
  visible: true
144
150
  },
151
+ {
152
+ key: 'common-button-radio',
153
+ visible: true,
154
+ name: 'type',
155
+ label: '展示风格',
156
+ default: 'default',
157
+ options: [
158
+ {
159
+ value: 'default',
160
+ label: '默认'
161
+ },
162
+ {
163
+ value: 'card',
164
+ label: '卡片'
165
+ }
166
+ ]
167
+ },
168
+ {
169
+ key: 'common-button-radio',
170
+ visible: true,
171
+ name: 'position',
172
+ label: '标签位置',
173
+ default: 'left',
174
+ options: [
175
+ {
176
+ value: 'left',
177
+ label: '左对齐'
178
+ },
179
+ {
180
+ value: 'center',
181
+ label: '居中'
182
+ },
183
+ {
184
+ value: 'right',
185
+ label: '右对齐'
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ key: 'common-select',
191
+ visible: true,
192
+ name: 'captionType',
193
+ label: '标签类型',
194
+ default: 'default',
195
+ options: [
196
+ {
197
+ value: 'default',
198
+ label: '默认'
199
+ },
200
+ {
201
+ value: 'warning',
202
+ label: '警告'
203
+ },
204
+ {
205
+ value: 'success',
206
+ label: '成功'
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ key: 'common-select',
212
+ visible: true,
213
+ name: 'borderType',
214
+ label: '边框类型',
215
+ default: 'none',
216
+ options: [
217
+ {
218
+ value: 'none',
219
+ label: '无边框'
220
+ },
221
+ {
222
+ value: 'dotted',
223
+ label: '虚线'
224
+ },
225
+ {
226
+ value: 'solid',
227
+ label: '实线'
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ key: 'common-select',
233
+ visible: true,
234
+ name: 'triggerShadow',
235
+ label: '显示阴影时机',
236
+ default: 'never',
237
+ options: [
238
+ {
239
+ value: 'never',
240
+ label: '从不显示'
241
+ },
242
+ {
243
+ value: 'hover',
244
+ label: '鼠标悬浮时显示'
245
+ },
246
+ {
247
+ value: 'always',
248
+ label: '总是显示'
249
+ }
250
+ ]
251
+ },
252
+ {
253
+ key: 'common-button-radio',
254
+ visible: true,
255
+ name: 'divider',
256
+ label: '分割线',
257
+ default: 'solid',
258
+ options: [
259
+ {
260
+ value: 'none',
261
+ label: '无'
262
+ },
263
+ {
264
+ value: 'dotted',
265
+ label: '虚线'
266
+ },
267
+ {
268
+ value: 'solid',
269
+ label: '实线'
270
+ }
271
+ ]
272
+ },
145
273
  {
146
274
  key: 'super-setting',
147
275
  visible: true