@byteluck-fe/model-driven-core 4.34.0-lx2 → 4.34.0-lx3
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/README.md +69 -69
- package/dist/esm/common/BaseControl/designer.js +23 -29
- package/dist/esm/common/BaseControl/property.js +11 -11
- package/dist/esm/common/ColumnControl/property.js +28 -28
- package/dist/esm/common/FormControl/property.js +56 -56
- package/dist/esm/common/LayoutControl/designer.js +6 -10
- package/dist/esm/common/ListControl/designer.js +6 -10
- package/dist/esm/framework/index.js +372 -363
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +4 -4
- package/dist/types/common/BaseControl/designer.d.ts +63 -63
- package/dist/types/common/BaseControl/index.d.ts +13 -13
- package/dist/types/common/BaseControl/property.d.ts +38 -38
- package/dist/types/common/BaseControl/runtime.d.ts +23 -23
- package/dist/types/common/BaseControl/types.d.ts +35 -35
- package/dist/types/common/ColumnControl/designer.d.ts +20 -20
- package/dist/types/common/ColumnControl/index.d.ts +12 -12
- package/dist/types/common/ColumnControl/property.d.ts +74 -74
- package/dist/types/common/ColumnControl/runtime.d.ts +11 -11
- package/dist/types/common/ControlArray.d.ts +9 -9
- package/dist/types/common/FormControl/designer.d.ts +13 -13
- package/dist/types/common/FormControl/index.d.ts +12 -12
- package/dist/types/common/FormControl/property.d.ts +118 -118
- package/dist/types/common/FormControl/runtime.d.ts +11 -11
- package/dist/types/common/LayoutControl/designer.d.ts +21 -21
- package/dist/types/common/LayoutControl/index.d.ts +12 -12
- package/dist/types/common/LayoutControl/property.d.ts +6 -6
- package/dist/types/common/LayoutControl/runtime.d.ts +11 -11
- package/dist/types/common/ListControl/designer.d.ts +16 -16
- package/dist/types/common/ListControl/index.d.ts +12 -12
- package/dist/types/common/ListControl/property.d.ts +18 -18
- package/dist/types/common/ListControl/runtime.d.ts +12 -12
- package/dist/types/common/SearchViewControl/designer.d.ts +11 -11
- package/dist/types/common/SearchViewControl/index.d.ts +12 -12
- package/dist/types/common/SearchViewControl/property.d.ts +8 -8
- package/dist/types/common/SearchViewControl/runtime.d.ts +11 -11
- package/dist/types/common/Validator.d.ts +15 -15
- package/dist/types/common/WrapControl/designer.d.ts +11 -11
- package/dist/types/common/WrapControl/index.d.ts +12 -12
- package/dist/types/common/WrapControl/property.d.ts +6 -6
- package/dist/types/common/WrapControl/runtime.d.ts +11 -11
- package/dist/types/common/controlHooksEmitter.d.ts +4 -4
- package/dist/types/common/index.d.ts +12 -12
- package/dist/types/common/initLinkOperationRules.d.ts +6 -6
- package/dist/types/common/initOptionAndDataSourceRules.d.ts +10 -10
- package/dist/types/framework/RegisterControls.d.ts +37 -37
- package/dist/types/framework/index.d.ts +886 -886
- package/dist/types/framework/isDataBind.d.ts +2 -2
- package/dist/types/index.d.ts +4 -4
- package/dist/types/type.d.ts +91 -91
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
# Core
|
|
2
|
-
引擎控件核心定义
|
|
3
|
-
|
|
4
|
-
定义了控件的基类和一些工具类的实现
|
|
5
|
-
|
|
6
|
-
```
|
|
7
|
-
│ index.ts // 入口文件
|
|
8
|
-
│ type.ts // 类型
|
|
9
|
-
│
|
|
10
|
-
├─common // 基础类
|
|
11
|
-
│ │ ControlArray.ts // 控件数组,管理设计态和运行态的children和headers数组
|
|
12
|
-
│ │ controlHooksEmitter.ts // 旧版设计态的控件事件发布,暂时不可废弃
|
|
13
|
-
│ │ index.ts
|
|
14
|
-
│ │ initOptionAndDataSourceRules.ts // 关联数据源和自定义选项的校验规则
|
|
15
|
-
│ │ Validator.ts // 校验
|
|
16
|
-
│ │
|
|
17
|
-
│ ├─BaseControl // 基础控件
|
|
18
|
-
│ │ designer.ts
|
|
19
|
-
│ │ index.ts
|
|
20
|
-
│ │ property.ts
|
|
21
|
-
│ │ runtime.ts
|
|
22
|
-
│ │ types.ts
|
|
23
|
-
│ │
|
|
24
|
-
│ ├─ColumnControl // 列控件
|
|
25
|
-
│ │ designer.ts
|
|
26
|
-
│ │ index.ts
|
|
27
|
-
│ │ property.ts
|
|
28
|
-
│ │ runtime.ts
|
|
29
|
-
│ │ types.ts
|
|
30
|
-
│ │
|
|
31
|
-
│ ├─FormControl // 表单控件
|
|
32
|
-
│ │ designer.ts
|
|
33
|
-
│ │ index.ts
|
|
34
|
-
│ │ property.ts
|
|
35
|
-
│ │ runtime.ts
|
|
36
|
-
│ │ types.ts
|
|
37
|
-
│ │
|
|
38
|
-
│ ├─LayoutControl // 布局控件
|
|
39
|
-
│ │ designer.ts
|
|
40
|
-
│ │ index.ts
|
|
41
|
-
│ │ property.ts
|
|
42
|
-
│ │ runtime.ts
|
|
43
|
-
│ │ types.ts
|
|
44
|
-
│ │
|
|
45
|
-
│ ├─ListControl // 列表控件
|
|
46
|
-
│ │ designer.ts
|
|
47
|
-
│ │ index.ts
|
|
48
|
-
│ │ property.ts
|
|
49
|
-
│ │ runtime.ts
|
|
50
|
-
│ │ types.ts
|
|
51
|
-
│ │
|
|
52
|
-
│ ├─SearchViewControl // 查询容器控件
|
|
53
|
-
│ │ designer.ts
|
|
54
|
-
│ │ index.ts
|
|
55
|
-
│ │ property.ts
|
|
56
|
-
│ │ runtime.ts
|
|
57
|
-
│ │ types.ts
|
|
58
|
-
│ │
|
|
59
|
-
│ └─WrapControl // 容器控件
|
|
60
|
-
│ designer.ts
|
|
61
|
-
│ index.ts
|
|
62
|
-
│ property.ts
|
|
63
|
-
│ runtime.ts
|
|
64
|
-
│ types.ts
|
|
65
|
-
│
|
|
66
|
-
└─framework // 工具类
|
|
67
|
-
index.ts // 很多工具类
|
|
68
|
-
RegisterControls.ts // 注册和管理控件类,被Runtime和Designer继承
|
|
69
|
-
```
|
|
1
|
+
# Core
|
|
2
|
+
引擎控件核心定义
|
|
3
|
+
|
|
4
|
+
定义了控件的基类和一些工具类的实现
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
│ index.ts // 入口文件
|
|
8
|
+
│ type.ts // 类型
|
|
9
|
+
│
|
|
10
|
+
├─common // 基础类
|
|
11
|
+
│ │ ControlArray.ts // 控件数组,管理设计态和运行态的children和headers数组
|
|
12
|
+
│ │ controlHooksEmitter.ts // 旧版设计态的控件事件发布,暂时不可废弃
|
|
13
|
+
│ │ index.ts
|
|
14
|
+
│ │ initOptionAndDataSourceRules.ts // 关联数据源和自定义选项的校验规则
|
|
15
|
+
│ │ Validator.ts // 校验
|
|
16
|
+
│ │
|
|
17
|
+
│ ├─BaseControl // 基础控件
|
|
18
|
+
│ │ designer.ts
|
|
19
|
+
│ │ index.ts
|
|
20
|
+
│ │ property.ts
|
|
21
|
+
│ │ runtime.ts
|
|
22
|
+
│ │ types.ts
|
|
23
|
+
│ │
|
|
24
|
+
│ ├─ColumnControl // 列控件
|
|
25
|
+
│ │ designer.ts
|
|
26
|
+
│ │ index.ts
|
|
27
|
+
│ │ property.ts
|
|
28
|
+
│ │ runtime.ts
|
|
29
|
+
│ │ types.ts
|
|
30
|
+
│ │
|
|
31
|
+
│ ├─FormControl // 表单控件
|
|
32
|
+
│ │ designer.ts
|
|
33
|
+
│ │ index.ts
|
|
34
|
+
│ │ property.ts
|
|
35
|
+
│ │ runtime.ts
|
|
36
|
+
│ │ types.ts
|
|
37
|
+
│ │
|
|
38
|
+
│ ├─LayoutControl // 布局控件
|
|
39
|
+
│ │ designer.ts
|
|
40
|
+
│ │ index.ts
|
|
41
|
+
│ │ property.ts
|
|
42
|
+
│ │ runtime.ts
|
|
43
|
+
│ │ types.ts
|
|
44
|
+
│ │
|
|
45
|
+
│ ├─ListControl // 列表控件
|
|
46
|
+
│ │ designer.ts
|
|
47
|
+
│ │ index.ts
|
|
48
|
+
│ │ property.ts
|
|
49
|
+
│ │ runtime.ts
|
|
50
|
+
│ │ types.ts
|
|
51
|
+
│ │
|
|
52
|
+
│ ├─SearchViewControl // 查询容器控件
|
|
53
|
+
│ │ designer.ts
|
|
54
|
+
│ │ index.ts
|
|
55
|
+
│ │ property.ts
|
|
56
|
+
│ │ runtime.ts
|
|
57
|
+
│ │ types.ts
|
|
58
|
+
│ │
|
|
59
|
+
│ └─WrapControl // 容器控件
|
|
60
|
+
│ designer.ts
|
|
61
|
+
│ index.ts
|
|
62
|
+
│ property.ts
|
|
63
|
+
│ runtime.ts
|
|
64
|
+
│ types.ts
|
|
65
|
+
│
|
|
66
|
+
└─framework // 工具类
|
|
67
|
+
index.ts // 很多工具类
|
|
68
|
+
RegisterControls.ts // 注册和管理控件类,被Runtime和Designer继承
|
|
69
|
+
```
|
|
@@ -120,7 +120,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
120
120
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
121
121
|
}
|
|
122
122
|
function _ts_generator(thisArg, body) {
|
|
123
|
-
var f, y, t,
|
|
123
|
+
var f, y, t, _ = {
|
|
124
124
|
label: 0,
|
|
125
125
|
sent: function() {
|
|
126
126
|
if (t[0] & 1) throw t[1];
|
|
@@ -128,12 +128,8 @@ function _ts_generator(thisArg, body) {
|
|
|
128
128
|
},
|
|
129
129
|
trys: [],
|
|
130
130
|
ops: []
|
|
131
|
-
};
|
|
132
|
-
return g = {
|
|
133
|
-
next: verb(0),
|
|
134
|
-
"throw": verb(1),
|
|
135
|
-
"return": verb(2)
|
|
136
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
131
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
132
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
137
133
|
return this;
|
|
138
134
|
}), g;
|
|
139
135
|
function verb(n) {
|
|
@@ -146,7 +142,7 @@ function _ts_generator(thisArg, body) {
|
|
|
146
142
|
}
|
|
147
143
|
function step(op) {
|
|
148
144
|
if (f) throw new TypeError("Generator is already executing.");
|
|
149
|
-
while(_)try {
|
|
145
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
150
146
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
151
147
|
if (y = 0, t) op = [
|
|
152
148
|
op[0] & 2,
|
|
@@ -311,17 +307,16 @@ var Control = /*#__PURE__*/ function _target() {
|
|
|
311
307
|
{
|
|
312
308
|
key: "preValidate",
|
|
313
309
|
value: function preValidate() {
|
|
314
|
-
var _this = this;
|
|
315
310
|
return _async_to_generator(function() {
|
|
316
311
|
var rules, results, result;
|
|
317
312
|
return _ts_generator(this, function(_state) {
|
|
318
313
|
switch(_state.label){
|
|
319
314
|
case 0:
|
|
320
315
|
// 在处理validate之前,预留的钩子函数,允许在validate之前处理一些数据
|
|
321
|
-
rules = _object_spread({},
|
|
316
|
+
rules = _object_spread({}, this.rules);
|
|
322
317
|
return [
|
|
323
318
|
4,
|
|
324
|
-
|
|
319
|
+
this._callControlHooks('preValidate', rules)
|
|
325
320
|
];
|
|
326
321
|
case 1:
|
|
327
322
|
results = _state.sent();
|
|
@@ -332,14 +327,13 @@ var Control = /*#__PURE__*/ function _target() {
|
|
|
332
327
|
];
|
|
333
328
|
}
|
|
334
329
|
});
|
|
335
|
-
})();
|
|
330
|
+
}).call(this);
|
|
336
331
|
}
|
|
337
332
|
},
|
|
338
333
|
{
|
|
339
334
|
key: "validate",
|
|
340
335
|
value: // property校验
|
|
341
336
|
function validate(messages, ignore) {
|
|
342
|
-
var _this = this;
|
|
343
337
|
return _async_to_generator(function() {
|
|
344
338
|
var result, rules, validator, err;
|
|
345
339
|
return _ts_generator(this, function(_state) {
|
|
@@ -347,11 +341,11 @@ var Control = /*#__PURE__*/ function _target() {
|
|
|
347
341
|
case 0:
|
|
348
342
|
return [
|
|
349
343
|
4,
|
|
350
|
-
|
|
344
|
+
this.preValidate()
|
|
351
345
|
];
|
|
352
346
|
case 1:
|
|
353
347
|
result = _state.sent();
|
|
354
|
-
rules = result !== undefined ? result : _object_spread({},
|
|
348
|
+
rules = result !== undefined ? result : _object_spread({}, this.rules);
|
|
355
349
|
if (Array.isArray(ignore)) {
|
|
356
350
|
ignore.forEach(function(key) {
|
|
357
351
|
if (rules.hasOwnProperty(key)) {
|
|
@@ -370,7 +364,7 @@ var Control = /*#__PURE__*/ function _target() {
|
|
|
370
364
|
]);
|
|
371
365
|
return [
|
|
372
366
|
4,
|
|
373
|
-
validator.validate(
|
|
367
|
+
validator.validate(this.props)
|
|
374
368
|
];
|
|
375
369
|
case 3:
|
|
376
370
|
_state.sent();
|
|
@@ -381,7 +375,7 @@ var Control = /*#__PURE__*/ function _target() {
|
|
|
381
375
|
case 4:
|
|
382
376
|
err = _state.sent();
|
|
383
377
|
if (!err.control) {
|
|
384
|
-
err.control =
|
|
378
|
+
err.control = this;
|
|
385
379
|
}
|
|
386
380
|
throw err;
|
|
387
381
|
case 5:
|
|
@@ -390,7 +384,7 @@ var Control = /*#__PURE__*/ function _target() {
|
|
|
390
384
|
];
|
|
391
385
|
}
|
|
392
386
|
});
|
|
393
|
-
})();
|
|
387
|
+
}).call(this);
|
|
394
388
|
}
|
|
395
389
|
},
|
|
396
390
|
{
|
|
@@ -496,10 +490,10 @@ _define_property(Control, "removeSettingItem", removeSetting);
|
|
|
496
490
|
_define_property(Control, "updateSettingItem", updateSetting);
|
|
497
491
|
export default Control;
|
|
498
492
|
export { Control as DesignerControl };
|
|
499
|
-
/**
|
|
500
|
-
* @function 删除控件或者实例上的setting的方法
|
|
501
|
-
* @description 其中的this可能是DesignerControl的类,也可以是实例
|
|
502
|
-
* @param keys 需要删除的key或key组成的数组
|
|
493
|
+
/**
|
|
494
|
+
* @function 删除控件或者实例上的setting的方法
|
|
495
|
+
* @description 其中的this可能是DesignerControl的类,也可以是实例
|
|
496
|
+
* @param keys 需要删除的key或key组成的数组
|
|
503
497
|
* */ function removeSetting(keys) {
|
|
504
498
|
var _this = this;
|
|
505
499
|
var deleteKeys = Array.isArray(keys) ? keys : [
|
|
@@ -527,13 +521,13 @@ export { Control as DesignerControl };
|
|
|
527
521
|
}
|
|
528
522
|
});
|
|
529
523
|
}
|
|
530
|
-
/**
|
|
531
|
-
* @function 修改控件或者实例上的setting的方法
|
|
532
|
-
* @description 其中的this可能是DesignerControl的类,也可以是实例
|
|
533
|
-
* @param settingKey 需要修改的key或者key组成的数组
|
|
534
|
-
* @param value 修改之后的visible值
|
|
535
|
-
* @param value.showItems 需要添加或替换的showItems
|
|
536
|
-
* @param value.type 默认是replace替换,可以更改为push新增
|
|
524
|
+
/**
|
|
525
|
+
* @function 修改控件或者实例上的setting的方法
|
|
526
|
+
* @description 其中的this可能是DesignerControl的类,也可以是实例
|
|
527
|
+
* @param settingKey 需要修改的key或者key组成的数组
|
|
528
|
+
* @param value 修改之后的visible值
|
|
529
|
+
* @param value.showItems 需要添加或替换的showItems
|
|
530
|
+
* @param value.type 默认是replace替换,可以更改为push新增
|
|
537
531
|
* */ function updateSetting(settingKey, value) {
|
|
538
532
|
var _this = this;
|
|
539
533
|
var keys = typeof settingKey === 'string' ? [
|
|
@@ -133,24 +133,24 @@ var PropertyRuntimeRules = /*#__PURE__*/ function(Array1) {
|
|
|
133
133
|
}
|
|
134
134
|
return PropertyRuntimeRules;
|
|
135
135
|
}(_wrap_native_super(Array));
|
|
136
|
-
/**
|
|
137
|
-
* 全局属性
|
|
138
|
-
* @public
|
|
136
|
+
/**
|
|
137
|
+
* 全局属性
|
|
138
|
+
* @public
|
|
139
139
|
*/ var Property = function Property(props) {
|
|
140
140
|
"use strict";
|
|
141
141
|
var caption = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '';
|
|
142
142
|
_class_call_check(this, Property);
|
|
143
|
-
/**
|
|
144
|
-
* 是否隐藏
|
|
145
|
-
* @public
|
|
146
|
-
* @defaultValue false
|
|
143
|
+
/**
|
|
144
|
+
* 是否隐藏
|
|
145
|
+
* @public
|
|
146
|
+
* @defaultValue false
|
|
147
147
|
*/ _define_property(this, "isHide", void 0);
|
|
148
148
|
_define_property(this, "className", void 0);
|
|
149
149
|
_define_property(this, "style", void 0);
|
|
150
|
-
/**
|
|
151
|
-
* 标题
|
|
152
|
-
* @public
|
|
153
|
-
* @defaultValue ''
|
|
150
|
+
/**
|
|
151
|
+
* 标题
|
|
152
|
+
* @public
|
|
153
|
+
* @defaultValue ''
|
|
154
154
|
*/ _define_property(this, "caption", void 0);
|
|
155
155
|
var _props_isHide;
|
|
156
156
|
this.isHide = (_props_isHide = props === null || props === void 0 ? void 0 : props.isHide) !== null && _props_isHide !== void 0 ? _props_isHide : false;
|
|
@@ -96,9 +96,9 @@ var ColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
96
96
|
}
|
|
97
97
|
return ColumnControlPropertyRules;
|
|
98
98
|
}(PropertyRules);
|
|
99
|
-
/**
|
|
100
|
-
* 列基本属性
|
|
101
|
-
* @public
|
|
99
|
+
/**
|
|
100
|
+
* 列基本属性
|
|
101
|
+
* @public
|
|
102
102
|
*/ var ColumnControlProperty = /*#__PURE__*/ function(Property) {
|
|
103
103
|
"use strict";
|
|
104
104
|
_inherits(ColumnControlProperty, Property);
|
|
@@ -107,31 +107,31 @@ var ColumnControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
107
107
|
var _this;
|
|
108
108
|
_this = _call_super(this, ColumnControlProperty, [
|
|
109
109
|
props
|
|
110
|
-
]), /**
|
|
111
|
-
* 宽度类型
|
|
112
|
-
* @defaultValue 'auto'
|
|
113
|
-
*/ _define_property(_this, "widthType", void 0), /**
|
|
114
|
-
* 宽度
|
|
115
|
-
* @defaultValue 150
|
|
116
|
-
*/ _define_property(_this, "width", void 0), /**
|
|
117
|
-
* 标题
|
|
118
|
-
*/ _define_property(_this, "caption", void 0), /**
|
|
119
|
-
* 绑定数据项
|
|
120
|
-
*/ _define_property(_this, "dataBind", void 0), /**
|
|
121
|
-
* 自适应页面宽度
|
|
122
|
-
*/ _define_property(_this, "autoWidth", void 0), /**
|
|
123
|
-
* 冻结
|
|
124
|
-
* @defaultValue 'none'
|
|
125
|
-
*/ _define_property(_this, "fixed", void 0), /**
|
|
126
|
-
* 表头排序
|
|
127
|
-
* @defaultValue true
|
|
128
|
-
*/ _define_property(_this, "sort", void 0), /**
|
|
129
|
-
* 对齐
|
|
130
|
-
*/ _define_property(_this, "align", void 0), /**
|
|
131
|
-
* @internal
|
|
132
|
-
*/ _define_property(_this, "colSpan", void 0), /**
|
|
133
|
-
* 自动高度
|
|
134
|
-
* @defaultValue false
|
|
110
|
+
]), /**
|
|
111
|
+
* 宽度类型
|
|
112
|
+
* @defaultValue 'auto'
|
|
113
|
+
*/ _define_property(_this, "widthType", void 0), /**
|
|
114
|
+
* 宽度
|
|
115
|
+
* @defaultValue 150
|
|
116
|
+
*/ _define_property(_this, "width", void 0), /**
|
|
117
|
+
* 标题
|
|
118
|
+
*/ _define_property(_this, "caption", void 0), /**
|
|
119
|
+
* 绑定数据项
|
|
120
|
+
*/ _define_property(_this, "dataBind", void 0), /**
|
|
121
|
+
* 自适应页面宽度
|
|
122
|
+
*/ _define_property(_this, "autoWidth", void 0), /**
|
|
123
|
+
* 冻结
|
|
124
|
+
* @defaultValue 'none'
|
|
125
|
+
*/ _define_property(_this, "fixed", void 0), /**
|
|
126
|
+
* 表头排序
|
|
127
|
+
* @defaultValue true
|
|
128
|
+
*/ _define_property(_this, "sort", void 0), /**
|
|
129
|
+
* 对齐
|
|
130
|
+
*/ _define_property(_this, "align", void 0), /**
|
|
131
|
+
* @internal
|
|
132
|
+
*/ _define_property(_this, "colSpan", void 0), /**
|
|
133
|
+
* 自动高度
|
|
134
|
+
* @defaultValue false
|
|
135
135
|
*/ _define_property(_this, "autoHeight", void 0), _define_property(_this, "children", void 0);
|
|
136
136
|
var _props_width;
|
|
137
137
|
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 150;
|
|
@@ -183,9 +183,9 @@ var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRule
|
|
|
183
183
|
}
|
|
184
184
|
return BaseControlPropertyRuntimeRules;
|
|
185
185
|
}(PropertyRuntimeRules);
|
|
186
|
-
/**
|
|
187
|
-
* 表单控件公共属性
|
|
188
|
-
* @public
|
|
186
|
+
/**
|
|
187
|
+
* 表单控件公共属性
|
|
188
|
+
* @public
|
|
189
189
|
*/ var BaseControlProperty = /*#__PURE__*/ function(Property) {
|
|
190
190
|
"use strict";
|
|
191
191
|
_inherits(BaseControlProperty, Property);
|
|
@@ -194,59 +194,59 @@ var BaseControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRule
|
|
|
194
194
|
var _this;
|
|
195
195
|
_this = _call_super(this, BaseControlProperty, [
|
|
196
196
|
props
|
|
197
|
-
]), /**
|
|
198
|
-
* 标题
|
|
199
|
-
* @defaultValue ''
|
|
200
|
-
* @public
|
|
201
|
-
*/ _define_property(_this, "caption", void 0), /**
|
|
202
|
-
* 标题大小
|
|
203
|
-
* @defaultValue ''
|
|
204
|
-
* @public
|
|
205
|
-
*/ _define_property(_this, "captionSize", void 0), /**
|
|
206
|
-
* 标题颜色
|
|
207
|
-
* @defaultValue ''
|
|
208
|
-
* @public
|
|
209
|
-
*/ _define_property(_this, "captionColor", void 0), /**
|
|
210
|
-
* 标题斜体
|
|
211
|
-
* @defaultValue false
|
|
212
|
-
* @public
|
|
213
|
-
*/ _define_property(_this, "isCaptionItalic", void 0), /**
|
|
214
|
-
* 隐藏标题
|
|
215
|
-
* @defaultValue false
|
|
216
|
-
* @public
|
|
217
|
-
*/ _define_property(_this, "isHideCaption", void 0), /**
|
|
218
|
-
* 显示气泡提示
|
|
219
|
-
* @defaultValue false
|
|
220
|
-
* @public
|
|
221
|
-
*/ _define_property(_this, "isShowCaptionTip", void 0), /**
|
|
222
|
-
* 气泡提示语
|
|
223
|
-
* @defaultValue ''
|
|
224
|
-
* @public
|
|
225
|
-
*/ _define_property(_this, "captionTip", void 0), /**
|
|
226
|
-
* 标题布局
|
|
227
|
-
* @defaultValue ''
|
|
228
|
-
* @public
|
|
229
|
-
*/ _define_property(_this, "labelPosition", void 0), /**
|
|
230
|
-
* 绑定数据项
|
|
231
|
-
* @public
|
|
232
|
-
*/ _define_property(_this, "dataBind", void 0), /**
|
|
233
|
-
* 默认值
|
|
234
|
-
* @public
|
|
235
|
-
*/ _define_property(_this, "defaultValue", void 0), /**
|
|
236
|
-
* 提示文字
|
|
237
|
-
* @defaultValue ''
|
|
238
|
-
* @public
|
|
239
|
-
*/ _define_property(_this, "placeholder", void 0), /**
|
|
240
|
-
* 默认状态
|
|
241
|
-
* @defaultValue 'default'
|
|
242
|
-
* @public
|
|
243
|
-
*/ _define_property(_this, "defaultState", void 0), /**
|
|
244
|
-
* 必填
|
|
245
|
-
* @defaultValue false
|
|
246
|
-
* @public
|
|
247
|
-
*/ _define_property(_this, "required", void 0), /**
|
|
248
|
-
* 必填提示文案
|
|
249
|
-
* @defaultValue ''
|
|
197
|
+
]), /**
|
|
198
|
+
* 标题
|
|
199
|
+
* @defaultValue ''
|
|
200
|
+
* @public
|
|
201
|
+
*/ _define_property(_this, "caption", void 0), /**
|
|
202
|
+
* 标题大小
|
|
203
|
+
* @defaultValue ''
|
|
204
|
+
* @public
|
|
205
|
+
*/ _define_property(_this, "captionSize", void 0), /**
|
|
206
|
+
* 标题颜色
|
|
207
|
+
* @defaultValue ''
|
|
208
|
+
* @public
|
|
209
|
+
*/ _define_property(_this, "captionColor", void 0), /**
|
|
210
|
+
* 标题斜体
|
|
211
|
+
* @defaultValue false
|
|
212
|
+
* @public
|
|
213
|
+
*/ _define_property(_this, "isCaptionItalic", void 0), /**
|
|
214
|
+
* 隐藏标题
|
|
215
|
+
* @defaultValue false
|
|
216
|
+
* @public
|
|
217
|
+
*/ _define_property(_this, "isHideCaption", void 0), /**
|
|
218
|
+
* 显示气泡提示
|
|
219
|
+
* @defaultValue false
|
|
220
|
+
* @public
|
|
221
|
+
*/ _define_property(_this, "isShowCaptionTip", void 0), /**
|
|
222
|
+
* 气泡提示语
|
|
223
|
+
* @defaultValue ''
|
|
224
|
+
* @public
|
|
225
|
+
*/ _define_property(_this, "captionTip", void 0), /**
|
|
226
|
+
* 标题布局
|
|
227
|
+
* @defaultValue ''
|
|
228
|
+
* @public
|
|
229
|
+
*/ _define_property(_this, "labelPosition", void 0), /**
|
|
230
|
+
* 绑定数据项
|
|
231
|
+
* @public
|
|
232
|
+
*/ _define_property(_this, "dataBind", void 0), /**
|
|
233
|
+
* 默认值
|
|
234
|
+
* @public
|
|
235
|
+
*/ _define_property(_this, "defaultValue", void 0), /**
|
|
236
|
+
* 提示文字
|
|
237
|
+
* @defaultValue ''
|
|
238
|
+
* @public
|
|
239
|
+
*/ _define_property(_this, "placeholder", void 0), /**
|
|
240
|
+
* 默认状态
|
|
241
|
+
* @defaultValue 'default'
|
|
242
|
+
* @public
|
|
243
|
+
*/ _define_property(_this, "defaultState", void 0), /**
|
|
244
|
+
* 必填
|
|
245
|
+
* @defaultValue false
|
|
246
|
+
* @public
|
|
247
|
+
*/ _define_property(_this, "required", void 0), /**
|
|
248
|
+
* 必填提示文案
|
|
249
|
+
* @defaultValue ''
|
|
250
250
|
*/ _define_property(_this, "requiredMessage", void 0);
|
|
251
251
|
var _props_caption;
|
|
252
252
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
|
|
@@ -208,7 +208,7 @@ function _is_native_reflect_construct() {
|
|
|
208
208
|
})();
|
|
209
209
|
}
|
|
210
210
|
function _ts_generator(thisArg, body) {
|
|
211
|
-
var f, y, t,
|
|
211
|
+
var f, y, t, _ = {
|
|
212
212
|
label: 0,
|
|
213
213
|
sent: function() {
|
|
214
214
|
if (t[0] & 1) throw t[1];
|
|
@@ -216,12 +216,8 @@ function _ts_generator(thisArg, body) {
|
|
|
216
216
|
},
|
|
217
217
|
trys: [],
|
|
218
218
|
ops: []
|
|
219
|
-
};
|
|
220
|
-
return g = {
|
|
221
|
-
next: verb(0),
|
|
222
|
-
"throw": verb(1),
|
|
223
|
-
"return": verb(2)
|
|
224
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
219
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
220
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
225
221
|
return this;
|
|
226
222
|
}), g;
|
|
227
223
|
function verb(n) {
|
|
@@ -234,7 +230,7 @@ function _ts_generator(thisArg, body) {
|
|
|
234
230
|
}
|
|
235
231
|
function step(op) {
|
|
236
232
|
if (f) throw new TypeError("Generator is already executing.");
|
|
237
|
-
while(_)try {
|
|
233
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
238
234
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
239
235
|
if (y = 0, t) op = [
|
|
240
236
|
op[0] & 2,
|
|
@@ -360,7 +356,7 @@ var LayoutControl = /*#__PURE__*/ function _target(DesignerControl) {
|
|
|
360
356
|
_state.sent();
|
|
361
357
|
return [
|
|
362
358
|
4,
|
|
363
|
-
Promise.all(
|
|
359
|
+
Promise.all(this.children.map(function(child) {
|
|
364
360
|
return child.validate(messages, ignore);
|
|
365
361
|
}))
|
|
366
362
|
];
|
|
@@ -372,7 +368,7 @@ var LayoutControl = /*#__PURE__*/ function _target(DesignerControl) {
|
|
|
372
368
|
];
|
|
373
369
|
}
|
|
374
370
|
});
|
|
375
|
-
})();
|
|
371
|
+
}).call(this);
|
|
376
372
|
}
|
|
377
373
|
},
|
|
378
374
|
{
|
|
@@ -201,7 +201,7 @@ function _is_native_reflect_construct() {
|
|
|
201
201
|
})();
|
|
202
202
|
}
|
|
203
203
|
function _ts_generator(thisArg, body) {
|
|
204
|
-
var f, y, t,
|
|
204
|
+
var f, y, t, _ = {
|
|
205
205
|
label: 0,
|
|
206
206
|
sent: function() {
|
|
207
207
|
if (t[0] & 1) throw t[1];
|
|
@@ -209,12 +209,8 @@ function _ts_generator(thisArg, body) {
|
|
|
209
209
|
},
|
|
210
210
|
trys: [],
|
|
211
211
|
ops: []
|
|
212
|
-
};
|
|
213
|
-
return g = {
|
|
214
|
-
next: verb(0),
|
|
215
|
-
"throw": verb(1),
|
|
216
|
-
"return": verb(2)
|
|
217
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
212
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
213
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
218
214
|
return this;
|
|
219
215
|
}), g;
|
|
220
216
|
function verb(n) {
|
|
@@ -227,7 +223,7 @@ function _ts_generator(thisArg, body) {
|
|
|
227
223
|
}
|
|
228
224
|
function step(op) {
|
|
229
225
|
if (f) throw new TypeError("Generator is already executing.");
|
|
230
|
-
while(_)try {
|
|
226
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
231
227
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
232
228
|
if (y = 0, t) op = [
|
|
233
229
|
op[0] & 2,
|
|
@@ -330,7 +326,7 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
330
326
|
_state.sent();
|
|
331
327
|
return [
|
|
332
328
|
4,
|
|
333
|
-
Promise.all(
|
|
329
|
+
Promise.all(this.props.headers.map(function(child) {
|
|
334
330
|
return child.validate(messages, ignore);
|
|
335
331
|
}))
|
|
336
332
|
];
|
|
@@ -342,7 +338,7 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
342
338
|
];
|
|
343
339
|
}
|
|
344
340
|
});
|
|
345
|
-
})();
|
|
341
|
+
}).call(this);
|
|
346
342
|
}
|
|
347
343
|
},
|
|
348
344
|
{
|