@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.
- package/dist/esm/formControls/Address/property.js +1 -1
- package/dist/esm/formControls/Attachment/property.js +6 -1
- package/dist/esm/formControls/Cascader/designer.js +231 -0
- package/dist/esm/formControls/Cascader/index.js +11 -0
- package/dist/esm/formControls/Cascader/property.js +166 -0
- package/dist/esm/formControls/Cascader/runtime.js +114 -0
- package/dist/esm/formControls/Cascader/types.js +0 -0
- package/dist/esm/formControls/Checkbox/designer.js +17 -0
- package/dist/esm/formControls/Checkbox/property.js +11 -1
- package/dist/esm/formControls/Image/designer.js +14 -0
- package/dist/esm/formControls/Image/property.js +6 -1
- package/dist/esm/formControls/Number/designer.js +4 -0
- package/dist/esm/formControls/Number/property.js +16 -1
- package/dist/esm/formControls/Radio/designer.js +17 -0
- package/dist/esm/formControls/Radio/property.js +11 -1
- package/dist/esm/formControls/Score/designer.js +11 -0
- package/dist/esm/formControls/Score/property.js +16 -1
- package/dist/esm/formControls/Select/designer.js +17 -0
- package/dist/esm/formControls/Select/property.js +11 -1
- package/dist/esm/formControls/SelectMultiple/designer.js +17 -0
- package/dist/esm/formControls/SelectMultiple/property.js +11 -1
- package/dist/esm/formControls/TimePicker/designer.js +193 -0
- package/dist/esm/formControls/TimePicker/index.js +11 -0
- package/dist/esm/formControls/TimePicker/property.js +108 -0
- package/dist/esm/formControls/TimePicker/runtime.js +114 -0
- package/dist/esm/formControls/TimePicker/types.js +0 -0
- package/dist/esm/formControls/TimeRange/designer.js +197 -0
- package/dist/esm/formControls/TimeRange/index.js +11 -0
- package/dist/esm/formControls/TimeRange/property.js +179 -0
- package/dist/esm/formControls/TimeRange/runtime.js +114 -0
- package/dist/esm/formControls/TimeRange/types.js +0 -0
- package/dist/esm/formControls/index.js +3 -0
- package/dist/esm/framework.js +16 -0
- package/dist/esm/layoutControls/CardGroup/designer.js +128 -0
- package/dist/esm/layoutControls/CardGroup/property.js +39 -4
- package/dist/esm/layoutControls/Col/property.js +3 -7
- package/dist/esm/layoutControls/CollapsePane/designer.js +129 -0
- package/dist/esm/layoutControls/CollapsePane/index.js +11 -0
- package/dist/esm/layoutControls/CollapsePane/property.js +93 -0
- package/dist/esm/layoutControls/CollapsePane/runtime.js +112 -0
- package/dist/esm/layoutControls/CollapsePane/types.js +0 -0
- package/dist/esm/layoutControls/Row/designer.js +16 -0
- package/dist/esm/layoutControls/Row/property.js +10 -2
- package/dist/esm/layoutControls/Step/designer.js +72 -0
- package/dist/esm/layoutControls/Step/property.js +51 -7
- package/dist/esm/layoutControls/Tab/designer.js +56 -0
- package/dist/esm/layoutControls/Tab/property.js +24 -1
- package/dist/esm/layoutControls/TableLayoutCol/property.js +3 -3
- package/dist/esm/layoutControls/collapse/designer.js +173 -0
- package/dist/esm/layoutControls/collapse/index.js +11 -0
- package/dist/esm/layoutControls/collapse/property.js +107 -0
- package/dist/esm/layoutControls/collapse/runtime.js +112 -0
- package/dist/esm/layoutControls/collapse/types.js +0 -0
- package/dist/esm/listControls/SubTable/designer.js +17 -0
- package/dist/esm/listControls/SubTable/property.js +6 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Address/property.d.ts +2 -2
- package/dist/types/formControls/Attachment/property.d.ts +5 -0
- package/dist/types/formControls/Cascader/designer.d.ts +20 -0
- package/dist/types/formControls/Cascader/index.d.ts +12 -0
- package/dist/types/formControls/Cascader/property.d.ts +72 -0
- package/dist/types/formControls/Cascader/runtime.d.ts +12 -0
- package/dist/types/formControls/Cascader/types.d.ts +0 -0
- package/dist/types/formControls/Checkbox/property.d.ts +10 -0
- package/dist/types/formControls/Image/property.d.ts +5 -0
- package/dist/types/formControls/Number/property.d.ts +15 -0
- package/dist/types/formControls/Radio/property.d.ts +10 -0
- package/dist/types/formControls/Score/property.d.ts +15 -0
- package/dist/types/formControls/Select/property.d.ts +10 -0
- package/dist/types/formControls/SelectMultiple/property.d.ts +10 -0
- package/dist/types/formControls/TimePicker/designer.d.ts +14 -0
- package/dist/types/formControls/TimePicker/index.d.ts +12 -0
- package/dist/types/formControls/TimePicker/property.d.ts +11 -0
- package/dist/types/formControls/TimePicker/runtime.d.ts +12 -0
- package/dist/types/formControls/TimePicker/types.d.ts +0 -0
- package/dist/types/formControls/TimeRange/designer.d.ts +14 -0
- package/dist/types/formControls/TimeRange/index.d.ts +12 -0
- package/dist/types/formControls/TimeRange/property.d.ts +62 -0
- package/dist/types/formControls/TimeRange/runtime.d.ts +12 -0
- package/dist/types/formControls/TimeRange/types.d.ts +0 -0
- package/dist/types/formControls/index.d.ts +3 -0
- package/dist/types/framework.d.ts +26 -19
- package/dist/types/layoutControls/CardGroup/property.d.ts +39 -0
- package/dist/types/layoutControls/Col/property.d.ts +1 -2
- package/dist/types/layoutControls/CollapsePane/designer.d.ts +14 -0
- package/dist/types/layoutControls/CollapsePane/index.d.ts +12 -0
- package/dist/types/layoutControls/CollapsePane/property.d.ts +11 -0
- package/dist/types/layoutControls/CollapsePane/runtime.d.ts +9 -0
- package/dist/types/layoutControls/CollapsePane/types.d.ts +0 -0
- package/dist/types/layoutControls/Row/property.d.ts +6 -1
- package/dist/types/layoutControls/Step/property.d.ts +56 -1
- package/dist/types/layoutControls/Tab/property.d.ts +24 -0
- package/dist/types/layoutControls/TableLayoutCol/property.d.ts +3 -3
- package/dist/types/layoutControls/collapse/designer.d.ts +14 -0
- package/dist/types/layoutControls/collapse/index.d.ts +12 -0
- package/dist/types/layoutControls/collapse/property.d.ts +26 -0
- package/dist/types/layoutControls/collapse/runtime.d.ts +9 -0
- package/dist/types/layoutControls/collapse/types.d.ts +0 -0
- package/dist/types/listControls/SubTable/designer.d.ts +19 -0
- package/dist/types/listControls/SubTable/property.d.ts +5 -0
- package/dist/types/type.d.ts +4 -1
- package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +1 -1
- package/package.json +5 -5
|
@@ -208,7 +208,16 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
|
|
|
208
208
|
* */ _define_property(_this, "defaultValue", void 0), /**
|
|
209
209
|
* 正则校验
|
|
210
210
|
* @public
|
|
211
|
-
* */ _define_property(_this, "regularRules", void 0)
|
|
211
|
+
* */ _define_property(_this, "regularRules", void 0), /**
|
|
212
|
+
* 是否使用控制按钮
|
|
213
|
+
* @defaultValue false
|
|
214
|
+
* */ _define_property(_this, "isShowControlButton", void 0), /**
|
|
215
|
+
* 控制按钮位置;between:两端;right:右侧;
|
|
216
|
+
* @defaultValue between
|
|
217
|
+
* */ _define_property(_this, "controlButtonPosition", void 0), /**
|
|
218
|
+
* 步长
|
|
219
|
+
* @defaultValue 1
|
|
220
|
+
* */ _define_property(_this, "step", void 0);
|
|
212
221
|
var _props_rangeMin;
|
|
213
222
|
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
|
|
214
223
|
var _props_rangeMax;
|
|
@@ -236,6 +245,12 @@ var NumberControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProper
|
|
|
236
245
|
var _props_defaultValue;
|
|
237
246
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
238
247
|
_this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
|
|
248
|
+
var _props_isShowControlButton;
|
|
249
|
+
_this.isShowControlButton = (_props_isShowControlButton = props === null || props === void 0 ? void 0 : props.isShowControlButton) !== null && _props_isShowControlButton !== void 0 ? _props_isShowControlButton : false;
|
|
250
|
+
var _props_controlButtonPosition;
|
|
251
|
+
_this.controlButtonPosition = (_props_controlButtonPosition = props === null || props === void 0 ? void 0 : props.controlButtonPosition) !== null && _props_controlButtonPosition !== void 0 ? _props_controlButtonPosition : 'between';
|
|
252
|
+
var _props_step;
|
|
253
|
+
_this.step = (_props_step = props === null || props === void 0 ? void 0 : props.step) !== null && _props_step !== void 0 ? _props_step : 1;
|
|
239
254
|
return _this;
|
|
240
255
|
}
|
|
241
256
|
return NumberProperty;
|
|
@@ -179,6 +179,23 @@ _define_property(RadioControl, "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
|
|
@@ -103,7 +103,13 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
103
103
|
* ai 显示内容搜索 false | true
|
|
104
104
|
* @defaultValue false
|
|
105
105
|
* @public
|
|
106
|
-
*/ _define_property(_this, "aiContentSearch", void 0)
|
|
106
|
+
*/ _define_property(_this, "aiContentSearch", void 0), /**
|
|
107
|
+
* 选项类型;default:默认;button:按钮;
|
|
108
|
+
* @defaultValue default
|
|
109
|
+
*/ _define_property(_this, "type", void 0), /**
|
|
110
|
+
* 是否开启设置选项自定义颜色;仅当选项设置为自定义时该设置生效;
|
|
111
|
+
* @defaultValue false
|
|
112
|
+
*/ _define_property(_this, "isUseCustomColor", void 0);
|
|
107
113
|
var _props_options;
|
|
108
114
|
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
109
115
|
{
|
|
@@ -140,6 +146,10 @@ var RadioProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
140
146
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
141
147
|
var _props_openMultistageFilling;
|
|
142
148
|
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
149
|
+
var _props_type;
|
|
150
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
|
|
151
|
+
var _props_isUseCustomColor;
|
|
152
|
+
_this.isUseCustomColor = (_props_isUseCustomColor = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _props_isUseCustomColor !== void 0 ? _props_isUseCustomColor : false;
|
|
143
153
|
_this.multistageFilling = [];
|
|
144
154
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
145
155
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -236,6 +236,13 @@ _define_property(ScoreControl, "setting", [
|
|
|
236
236
|
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP
|
|
237
237
|
]
|
|
238
238
|
},
|
|
239
|
+
{
|
|
240
|
+
key: 'common-switch',
|
|
241
|
+
visible: true,
|
|
242
|
+
name: 'canHalf',
|
|
243
|
+
label: '支持半选',
|
|
244
|
+
default: false
|
|
245
|
+
},
|
|
239
246
|
{
|
|
240
247
|
key: 'score-type',
|
|
241
248
|
visible: true
|
|
@@ -244,6 +251,10 @@ _define_property(ScoreControl, "setting", [
|
|
|
244
251
|
key: 'total-setting',
|
|
245
252
|
visible: true
|
|
246
253
|
},
|
|
254
|
+
{
|
|
255
|
+
key: 'score-show-current-value',
|
|
256
|
+
visible: true
|
|
257
|
+
},
|
|
247
258
|
{
|
|
248
259
|
key: 'default-value',
|
|
249
260
|
visible: true
|
|
@@ -144,7 +144,16 @@ var ScoreProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
144
144
|
var _props_explain;
|
|
145
145
|
_this = _call_super(this, ScoreProperty, [
|
|
146
146
|
props
|
|
147
|
-
]), _define_property(_this, "totalScore", void 0), _define_property(_this, "scoreType", void 0), _define_property(_this, "isShowExplain", void 0), _define_property(_this, "explain", void 0), _define_property(_this, "defaultValue", void 0)
|
|
147
|
+
]), _define_property(_this, "totalScore", void 0), _define_property(_this, "scoreType", void 0), _define_property(_this, "isShowExplain", void 0), _define_property(_this, "explain", void 0), _define_property(_this, "defaultValue", void 0), /**
|
|
148
|
+
* 是否支持半选
|
|
149
|
+
* @defaultValue false
|
|
150
|
+
*/ _define_property(_this, "canHalf", void 0), /**
|
|
151
|
+
* 分数说明文字颜色
|
|
152
|
+
* @defaultValue
|
|
153
|
+
*/ _define_property(_this, "explainColor", void 0), /**
|
|
154
|
+
* 是否显示当前分数
|
|
155
|
+
* @defaultValue false
|
|
156
|
+
*/ _define_property(_this, "isShowCurrentScore", void 0);
|
|
148
157
|
var _props_totalScore;
|
|
149
158
|
_this.totalScore = (_props_totalScore = props === null || props === void 0 ? void 0 : props.totalScore) !== null && _props_totalScore !== void 0 ? _props_totalScore : 5;
|
|
150
159
|
var _props_scoreType;
|
|
@@ -161,6 +170,12 @@ var ScoreProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
161
170
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : 0;
|
|
162
171
|
var _props_caption;
|
|
163
172
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ScoreControl.controlName;
|
|
173
|
+
var _props_canHalf;
|
|
174
|
+
_this.canHalf = (_props_canHalf = props === null || props === void 0 ? void 0 : props.canHalf) !== null && _props_canHalf !== void 0 ? _props_canHalf : false;
|
|
175
|
+
var _props_explainColor;
|
|
176
|
+
_this.explainColor = (_props_explainColor = props === null || props === void 0 ? void 0 : props.explainColor) !== null && _props_explainColor !== void 0 ? _props_explainColor : '';
|
|
177
|
+
var _props_isShowCurrentScore;
|
|
178
|
+
_this.isShowCurrentScore = (_props_isShowCurrentScore = props === null || props === void 0 ? void 0 : props.isShowCurrentScore) !== null && _props_isShowCurrentScore !== void 0 ? _props_isShowCurrentScore : false;
|
|
164
179
|
return _this;
|
|
165
180
|
}
|
|
166
181
|
return ScoreProperty;
|
|
@@ -177,6 +177,23 @@ _define_property(SelectControl, "setting", [
|
|
|
177
177
|
key: 'ai-content-search',
|
|
178
178
|
visible: true
|
|
179
179
|
},
|
|
180
|
+
{
|
|
181
|
+
key: 'common-button-radio',
|
|
182
|
+
visible: true,
|
|
183
|
+
name: 'type',
|
|
184
|
+
label: '选项类型',
|
|
185
|
+
default: 'default',
|
|
186
|
+
options: [
|
|
187
|
+
{
|
|
188
|
+
value: 'default',
|
|
189
|
+
label: '默认'
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
value: 'button',
|
|
193
|
+
label: '按钮'
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
180
197
|
{
|
|
181
198
|
key: 'options-setting',
|
|
182
199
|
visible: true,
|
|
@@ -125,7 +125,13 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
125
125
|
* ai 显示内容搜索 false | true
|
|
126
126
|
* @defaultValue false
|
|
127
127
|
* @public
|
|
128
|
-
*/ _define_property(_this, "aiContentSearch", void 0)
|
|
128
|
+
*/ _define_property(_this, "aiContentSearch", void 0), /**
|
|
129
|
+
* 选项类型;default:默认;button:按钮;
|
|
130
|
+
* @defaultValue default
|
|
131
|
+
*/ _define_property(_this, "type", void 0), /**
|
|
132
|
+
* 是否开启设置选项自定义颜色;仅当选项设置为自定义时该设置生效;
|
|
133
|
+
* @defaultValue false
|
|
134
|
+
*/ _define_property(_this, "isUseCustomColor", void 0);
|
|
129
135
|
var _props_options;
|
|
130
136
|
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
131
137
|
{
|
|
@@ -156,6 +162,10 @@ var SelectProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
156
162
|
_this.allowCopyOptions = (_props_allowCopyOptions = props === null || props === void 0 ? void 0 : props.allowCopyOptions) !== null && _props_allowCopyOptions !== void 0 ? _props_allowCopyOptions : false;
|
|
157
163
|
var _props_openMultistageFilling;
|
|
158
164
|
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
165
|
+
var _props_type;
|
|
166
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
|
|
167
|
+
var _props_isUseCustomColor;
|
|
168
|
+
_this.isUseCustomColor = (_props_isUseCustomColor = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _props_isUseCustomColor !== void 0 ? _props_isUseCustomColor : false;
|
|
159
169
|
_this.multistageFilling = [];
|
|
160
170
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
161
171
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -176,6 +176,23 @@ _define_property(SelectMultipleControl, "setting", [
|
|
|
176
176
|
key: 'ai-content-search',
|
|
177
177
|
visible: true
|
|
178
178
|
},
|
|
179
|
+
{
|
|
180
|
+
key: 'common-button-radio',
|
|
181
|
+
visible: true,
|
|
182
|
+
name: 'type',
|
|
183
|
+
label: '选项类型',
|
|
184
|
+
default: 'default',
|
|
185
|
+
options: [
|
|
186
|
+
{
|
|
187
|
+
value: 'default',
|
|
188
|
+
label: '默认'
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
value: 'button',
|
|
192
|
+
label: '按钮'
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
},
|
|
179
196
|
{
|
|
180
197
|
key: 'options-setting',
|
|
181
198
|
visible: true,
|
|
@@ -140,7 +140,13 @@ var SelectMultipleProperty = /*#__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
|
{
|
|
@@ -169,6 +175,10 @@ var SelectMultipleProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
169
175
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
170
176
|
var _props_openMultistageFilling;
|
|
171
177
|
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
178
|
+
var _props_type;
|
|
179
|
+
_this.type = (_props_type = props === null || props === void 0 ? void 0 : props.type) !== null && _props_type !== void 0 ? _props_type : 'default';
|
|
180
|
+
var _props_isUseCustomColor;
|
|
181
|
+
_this.isUseCustomColor = (_props_isUseCustomColor = props === null || props === void 0 ? void 0 : props.isUseCustomColor) !== null && _props_isUseCustomColor !== void 0 ? _props_isUseCustomColor : false;
|
|
172
182
|
_this.multistageFilling = [];
|
|
173
183
|
if (Array.isArray(props === null || props === void 0 ? void 0 : props.multistageFilling)) {
|
|
174
184
|
props === null || props === void 0 ? void 0 : props.multistageFilling.map(function(item) {
|
|
@@ -0,0 +1,193 @@
|
|
|
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 TimePickerProperty from './property';
|
|
90
|
+
var TimePickerControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
91
|
+
"use strict";
|
|
92
|
+
_inherits(TimePickerControl, DesignerFormControl);
|
|
93
|
+
function TimePickerControl(props) {
|
|
94
|
+
_class_call_check(this, TimePickerControl);
|
|
95
|
+
var _this;
|
|
96
|
+
_this = _call_super(this, TimePickerControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "props", void 0);
|
|
99
|
+
_this.props = new TimePickerProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
100
|
+
return _this;
|
|
101
|
+
}
|
|
102
|
+
_create_class(TimePickerControl, null, [
|
|
103
|
+
{
|
|
104
|
+
key: "controlName",
|
|
105
|
+
get: function get() {
|
|
106
|
+
return '时间';
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
key: "controlIcon",
|
|
111
|
+
get: function get() {
|
|
112
|
+
return 'iconshijian31';
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
key: "controlType",
|
|
117
|
+
get: function get() {
|
|
118
|
+
return 'time-picker';
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
]);
|
|
122
|
+
return TimePickerControl;
|
|
123
|
+
}(DesignerFormControl);
|
|
124
|
+
_define_property(TimePickerControl, "controlFieldType", FieldTypes.TIMESTAMP);
|
|
125
|
+
_define_property(TimePickerControl, "setting", [
|
|
126
|
+
{
|
|
127
|
+
key: 'data-bind',
|
|
128
|
+
visible: true
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
key: 'field-type',
|
|
132
|
+
visible: true
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
key: 'caption',
|
|
136
|
+
showItems: [
|
|
137
|
+
COMMON_SETTING_TYPE.CAPTION,
|
|
138
|
+
COMMON_SETTING_TYPE.IS_HIDE_CAPTION
|
|
139
|
+
],
|
|
140
|
+
visible: true
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
key: 'caption-style',
|
|
144
|
+
showItems: [
|
|
145
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
146
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
147
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
148
|
+
],
|
|
149
|
+
visible: true
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
key: 'label-position',
|
|
153
|
+
visible: true
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
key: 'default-state',
|
|
157
|
+
visible: true
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
key: 'placeholder',
|
|
161
|
+
visible: true
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
key: 'time-type',
|
|
165
|
+
visible: true
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
key: 'common-setting',
|
|
169
|
+
visible: true,
|
|
170
|
+
showItems: [
|
|
171
|
+
COMMON_SETTING_TYPE.REQUIRED,
|
|
172
|
+
COMMON_SETTING_TYPE.IS_HIDE,
|
|
173
|
+
// COMMON_SETTING_TYPE.MULTIPLE,
|
|
174
|
+
COMMON_SETTING_TYPE.IS_HIDE_CAPTION,
|
|
175
|
+
COMMON_SETTING_TYPE.IS_SHOW_CAPTION_TIP,
|
|
176
|
+
COMMON_SETTING_TYPE.IS_INTERNATIONAL
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
key: 'time-limit-range',
|
|
181
|
+
visible: true
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
key: 'default-value',
|
|
185
|
+
visible: true
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
key: 'super-setting',
|
|
189
|
+
visible: true
|
|
190
|
+
}
|
|
191
|
+
]);
|
|
192
|
+
export default TimePickerControl;
|
|
193
|
+
export { TimePickerControl as DesignerTimePickerControl };
|
|
@@ -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,108 @@
|
|
|
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 TimePickerControl from './designer';
|
|
74
|
+
import { BaseControlProperty } from '@byteluck-fe/model-driven-core';
|
|
75
|
+
import { LimitTime } from '../../framework';
|
|
76
|
+
var TimePickerProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
77
|
+
"use strict";
|
|
78
|
+
_inherits(TimePickerProperty, BaseControlProperty);
|
|
79
|
+
function TimePickerProperty(props) {
|
|
80
|
+
_class_call_check(this, TimePickerProperty);
|
|
81
|
+
var _this;
|
|
82
|
+
var _props_limitTimeList;
|
|
83
|
+
_this = _call_super(this, TimePickerProperty, [
|
|
84
|
+
props
|
|
85
|
+
]), _define_property(_this, "format", void 0 //时间格式化字符串
|
|
86
|
+
), _define_property(_this, "defaultValue", void 0), _define_property(_this, "limitTimeList", void 0), // 时间限制范围
|
|
87
|
+
_define_property(_this, "isInternational", void 0 //是否国际化
|
|
88
|
+
);
|
|
89
|
+
var _props_format;
|
|
90
|
+
_this.format = (_props_format = props === null || props === void 0 ? void 0 : props.format) !== null && _props_format !== void 0 ? _props_format : '';
|
|
91
|
+
var _props_caption;
|
|
92
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TimePickerControl.controlName;
|
|
93
|
+
var _props_placeholder;
|
|
94
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入时间';
|
|
95
|
+
var _props_defaultValue;
|
|
96
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
97
|
+
var _props_limitTimeList_map;
|
|
98
|
+
_this.limitTimeList = (_props_limitTimeList_map = props === null || props === void 0 ? void 0 : (_props_limitTimeList = props.limitTimeList) === null || _props_limitTimeList === void 0 ? void 0 : _props_limitTimeList.map(function(item) {
|
|
99
|
+
return new LimitTime(item);
|
|
100
|
+
})) !== null && _props_limitTimeList_map !== void 0 ? _props_limitTimeList_map : [];
|
|
101
|
+
var _props_isInternational;
|
|
102
|
+
_this.isInternational = (_props_isInternational = props === null || props === void 0 ? void 0 : props.isInternational) !== null && _props_isInternational !== void 0 ? _props_isInternational : false;
|
|
103
|
+
return _this;
|
|
104
|
+
}
|
|
105
|
+
return TimePickerProperty;
|
|
106
|
+
}(BaseControlProperty);
|
|
107
|
+
export default TimePickerProperty;
|
|
108
|
+
export { TimePickerProperty };
|
|
@@ -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 TimePickerProperty from './property';
|
|
90
|
+
var TimePickerControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
91
|
+
"use strict";
|
|
92
|
+
_inherits(TimePickerControl, RuntimeFormControl);
|
|
93
|
+
function TimePickerControl(props) {
|
|
94
|
+
_class_call_check(this, TimePickerControl);
|
|
95
|
+
var _this;
|
|
96
|
+
_this = _call_super(this, TimePickerControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "props", void 0);
|
|
99
|
+
_this.props = new TimePickerProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
100
|
+
return _this;
|
|
101
|
+
}
|
|
102
|
+
_create_class(TimePickerControl, null, [
|
|
103
|
+
{
|
|
104
|
+
key: "controlType",
|
|
105
|
+
get: function get() {
|
|
106
|
+
return 'time-picker';
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
]);
|
|
110
|
+
return TimePickerControl;
|
|
111
|
+
}(RuntimeFormControl);
|
|
112
|
+
_define_property(TimePickerControl, "controlFieldType", FieldTypes.TIMESTAMP);
|
|
113
|
+
export default TimePickerControl;
|
|
114
|
+
export { TimePickerControl as RuntimeTimePickerControl };
|
|
File without changes
|