@byteluck-fe/model-driven-core 2.22.2-beta.8 → 2.22.3-beta.11
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 +25 -30
- package/dist/esm/common/BaseControl/property.js +25 -38
- package/dist/esm/common/ColumnControl/designer.js +13 -27
- package/dist/esm/common/ColumnControl/property.js +56 -81
- package/dist/esm/common/ColumnControl/runtime.js +13 -27
- package/dist/esm/common/FormControl/designer.js +12 -25
- package/dist/esm/common/FormControl/property.js +90 -117
- package/dist/esm/common/FormControl/runtime.js +12 -26
- package/dist/esm/common/LayoutControl/designer.js +19 -39
- package/dist/esm/common/LayoutControl/property.js +12 -23
- package/dist/esm/common/LayoutControl/runtime.js +13 -27
- package/dist/esm/common/ListControl/designer.js +19 -36
- package/dist/esm/common/ListControl/property.js +14 -31
- package/dist/esm/common/ListControl/runtime.js +14 -28
- package/dist/esm/common/SearchViewControl/designer.js +12 -25
- package/dist/esm/common/SearchViewControl/property.js +12 -24
- package/dist/esm/common/SearchViewControl/runtime.js +12 -25
- package/dist/esm/common/Validator.js +5 -4
- package/dist/esm/common/WrapControl/designer.js +12 -25
- package/dist/esm/common/WrapControl/property.js +12 -23
- package/dist/esm/common/WrapControl/runtime.js +12 -25
- package/dist/esm/common/initLinkOperationRules.js +2 -2
- package/dist/esm/common/initOptionAndDataSourceRules.js +31 -30
- package/dist/esm/framework/RegisterControls.js +1 -0
- package/dist/esm/framework/index.js +424 -444
- package/dist/index.umd.js +1 -45
- package/dist/types/api-doc-index.d.ts +4 -4
- package/dist/types/common/BaseControl/designer.d.ts +71 -71
- package/dist/types/common/BaseControl/index.d.ts +13 -13
- package/dist/types/common/BaseControl/property.d.ts +44 -44
- 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 +100 -100
- 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 +925 -923
- 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 +3 -3
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
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
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -46,37 +50,22 @@ function _type_of(obj) {
|
|
|
46
50
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
47
51
|
}
|
|
48
52
|
function _is_native_reflect_construct() {
|
|
49
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
50
|
-
if (Reflect.construct.sham) return false;
|
|
51
|
-
if (typeof Proxy === "function") return true;
|
|
52
53
|
try {
|
|
53
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function _create_super(Derived) {
|
|
60
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
61
|
-
return function _createSuperInternal() {
|
|
62
|
-
var Super = _get_prototype_of(Derived), result;
|
|
63
|
-
if (hasNativeReflectConstruct) {
|
|
64
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
65
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
66
|
-
} else {
|
|
67
|
-
result = Super.apply(this, arguments);
|
|
68
|
-
}
|
|
69
|
-
return _possible_constructor_return(this, result);
|
|
70
|
-
};
|
|
54
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
55
|
+
} catch (_) {}
|
|
56
|
+
return (_is_native_reflect_construct = function() {
|
|
57
|
+
return !!result;
|
|
58
|
+
})();
|
|
71
59
|
}
|
|
72
60
|
import { Property } from '../BaseControl';
|
|
73
61
|
var LayoutControlProperty = /*#__PURE__*/ function(Property) {
|
|
74
62
|
"use strict";
|
|
75
63
|
_inherits(LayoutControlProperty, Property);
|
|
76
|
-
var _super = _create_super(LayoutControlProperty);
|
|
77
64
|
function LayoutControlProperty(props) {
|
|
78
65
|
_class_call_check(this, LayoutControlProperty);
|
|
79
|
-
return
|
|
66
|
+
return _call_super(this, LayoutControlProperty, [
|
|
67
|
+
props
|
|
68
|
+
]);
|
|
80
69
|
}
|
|
81
70
|
return LayoutControlProperty;
|
|
82
71
|
}(Property);
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
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
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -59,28 +63,12 @@ function _type_of(obj) {
|
|
|
59
63
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
64
|
}
|
|
61
65
|
function _is_native_reflect_construct() {
|
|
62
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
-
if (Reflect.construct.sham) return false;
|
|
64
|
-
if (typeof Proxy === "function") return true;
|
|
65
66
|
try {
|
|
66
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function _create_super(Derived) {
|
|
73
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
-
return function _createSuperInternal() {
|
|
75
|
-
var Super = _get_prototype_of(Derived), result;
|
|
76
|
-
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
-
} else {
|
|
80
|
-
result = Super.apply(this, arguments);
|
|
81
|
-
}
|
|
82
|
-
return _possible_constructor_return(this, result);
|
|
83
|
-
};
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
} catch (_) {}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
70
|
+
return !!result;
|
|
71
|
+
})();
|
|
84
72
|
}
|
|
85
73
|
import { RuntimeControl } from '../BaseControl';
|
|
86
74
|
import LayoutControlProperty from './property';
|
|
@@ -88,16 +76,14 @@ import { defineControlArrayToProperty } from '../ControlArray';
|
|
|
88
76
|
var LayoutControl = /*#__PURE__*/ function(RuntimeControl) {
|
|
89
77
|
"use strict";
|
|
90
78
|
_inherits(LayoutControl, RuntimeControl);
|
|
91
|
-
var _super = _create_super(LayoutControl);
|
|
92
79
|
function LayoutControl(props) {
|
|
93
80
|
_class_call_check(this, LayoutControl);
|
|
94
81
|
var _this;
|
|
95
|
-
_this =
|
|
96
|
-
|
|
97
|
-
_define_property(
|
|
98
|
-
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
82
|
+
_this = _call_super(this, LayoutControl, [
|
|
83
|
+
props
|
|
84
|
+
]), _define_property(_this, "controlType", 'layout'), _define_property(_this, "children", void 0), _define_property(_this, "props", void 0);
|
|
99
85
|
_this.props = new LayoutControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
100
|
-
defineControlArrayToProperty(
|
|
86
|
+
defineControlArrayToProperty(_this, 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Runtime');
|
|
101
87
|
return _this;
|
|
102
88
|
}
|
|
103
89
|
return LayoutControl;
|
|
@@ -41,6 +41,10 @@ function _async_to_generator(fn) {
|
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
+
function _call_super(_this, derived, args) {
|
|
45
|
+
derived = _get_prototype_of(derived);
|
|
46
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
47
|
+
}
|
|
44
48
|
function _class_call_check(instance, Constructor) {
|
|
45
49
|
if (!(instance instanceof Constructor)) {
|
|
46
50
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -189,31 +193,15 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
189
193
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
190
194
|
}
|
|
191
195
|
function _is_native_reflect_construct() {
|
|
192
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
193
|
-
if (Reflect.construct.sham) return false;
|
|
194
|
-
if (typeof Proxy === "function") return true;
|
|
195
196
|
try {
|
|
196
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
return
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
function _create_super(Derived) {
|
|
203
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
204
|
-
return function _createSuperInternal() {
|
|
205
|
-
var Super = _get_prototype_of(Derived), result;
|
|
206
|
-
if (hasNativeReflectConstruct) {
|
|
207
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
208
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
209
|
-
} else {
|
|
210
|
-
result = Super.apply(this, arguments);
|
|
211
|
-
}
|
|
212
|
-
return _possible_constructor_return(this, result);
|
|
213
|
-
};
|
|
197
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
198
|
+
} catch (_) {}
|
|
199
|
+
return (_is_native_reflect_construct = function() {
|
|
200
|
+
return !!result;
|
|
201
|
+
})();
|
|
214
202
|
}
|
|
215
203
|
function _ts_generator(thisArg, body) {
|
|
216
|
-
var f, y, t,
|
|
204
|
+
var f, y, t, _ = {
|
|
217
205
|
label: 0,
|
|
218
206
|
sent: function() {
|
|
219
207
|
if (t[0] & 1) throw t[1];
|
|
@@ -221,12 +209,8 @@ function _ts_generator(thisArg, body) {
|
|
|
221
209
|
},
|
|
222
210
|
trys: [],
|
|
223
211
|
ops: []
|
|
224
|
-
};
|
|
225
|
-
return g = {
|
|
226
|
-
next: verb(0),
|
|
227
|
-
"throw": verb(1),
|
|
228
|
-
"return": verb(2)
|
|
229
|
-
}, 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() {
|
|
230
214
|
return this;
|
|
231
215
|
}), g;
|
|
232
216
|
function verb(n) {
|
|
@@ -239,7 +223,7 @@ function _ts_generator(thisArg, body) {
|
|
|
239
223
|
}
|
|
240
224
|
function step(op) {
|
|
241
225
|
if (f) throw new TypeError("Generator is already executing.");
|
|
242
|
-
while(_)try {
|
|
226
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
243
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;
|
|
244
228
|
if (y = 0, t) op = [
|
|
245
229
|
op[0] & 2,
|
|
@@ -313,14 +297,13 @@ import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
|
313
297
|
var ListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
314
298
|
"use strict";
|
|
315
299
|
_inherits(ListControl, DesignerControl);
|
|
316
|
-
var _super = _create_super(ListControl);
|
|
317
300
|
function ListControl(props) {
|
|
318
301
|
_class_call_check(this, ListControl);
|
|
319
302
|
var _this;
|
|
320
|
-
_this =
|
|
321
|
-
|
|
322
|
-
_define_property(
|
|
323
|
-
_this.props = new ListControlProperty(
|
|
303
|
+
_this = _call_super(this, ListControl, [
|
|
304
|
+
props
|
|
305
|
+
]), _define_property(_this, "controlType", 'list'), _define_property(_this, "props", void 0);
|
|
306
|
+
_this.props = new ListControlProperty(_this, props === null || props === void 0 ? void 0 : props.props, 'Designer');
|
|
324
307
|
return _this;
|
|
325
308
|
}
|
|
326
309
|
_create_class(ListControl, [
|
|
@@ -343,7 +326,7 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
343
326
|
_state.sent();
|
|
344
327
|
return [
|
|
345
328
|
4,
|
|
346
|
-
Promise.all(
|
|
329
|
+
Promise.all(this.props.headers.map(function(child) {
|
|
347
330
|
return child.validate(messages, ignore);
|
|
348
331
|
}))
|
|
349
332
|
];
|
|
@@ -355,7 +338,7 @@ var ListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
355
338
|
];
|
|
356
339
|
}
|
|
357
340
|
});
|
|
358
|
-
})();
|
|
341
|
+
}).call(this);
|
|
359
342
|
}
|
|
360
343
|
},
|
|
361
344
|
{
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
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
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -59,47 +63,26 @@ function _type_of(obj) {
|
|
|
59
63
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
64
|
}
|
|
61
65
|
function _is_native_reflect_construct() {
|
|
62
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
-
if (Reflect.construct.sham) return false;
|
|
64
|
-
if (typeof Proxy === "function") return true;
|
|
65
66
|
try {
|
|
66
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function _create_super(Derived) {
|
|
73
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
-
return function _createSuperInternal() {
|
|
75
|
-
var Super = _get_prototype_of(Derived), result;
|
|
76
|
-
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
-
} else {
|
|
80
|
-
result = Super.apply(this, arguments);
|
|
81
|
-
}
|
|
82
|
-
return _possible_constructor_return(this, result);
|
|
83
|
-
};
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
} catch (_) {}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
70
|
+
return !!result;
|
|
71
|
+
})();
|
|
84
72
|
}
|
|
85
73
|
import { Property } from '../BaseControl';
|
|
86
74
|
import { defineControlArrayToProperty } from '../ControlArray';
|
|
87
75
|
var ListControlProperty = /*#__PURE__*/ function(Property) {
|
|
88
76
|
"use strict";
|
|
89
77
|
_inherits(ListControlProperty, Property);
|
|
90
|
-
var _super = _create_super(ListControlProperty);
|
|
91
78
|
function ListControlProperty(parent, props, mode) {
|
|
92
79
|
_class_call_check(this, ListControlProperty);
|
|
93
80
|
var _this;
|
|
94
|
-
_this =
|
|
95
|
-
|
|
96
|
-
_define_property(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
_define_property(_assert_this_initialized(_this), "pageSizeOptions", void 0);
|
|
100
|
-
_define_property(_assert_this_initialized(_this), "totalCount", void 0);
|
|
101
|
-
defineControlArrayToProperty(_assert_this_initialized(_this), 'headers', props === null || props === void 0 ? void 0 : props.headers, parent, mode);
|
|
102
|
-
defineControlArrayToProperty(_assert_this_initialized(_this), 'footers', props === null || props === void 0 ? void 0 : props.footers, parent);
|
|
81
|
+
_this = _call_super(this, ListControlProperty, [
|
|
82
|
+
props
|
|
83
|
+
]), _define_property(_this, "headers", void 0), _define_property(_this, "footers", void 0), _define_property(_this, "pageIndex", void 0), _define_property(_this, "pageSize", void 0), _define_property(_this, "pageSizeOptions", void 0), _define_property(_this, "totalCount", void 0);
|
|
84
|
+
defineControlArrayToProperty(_this, 'headers', props === null || props === void 0 ? void 0 : props.headers, parent, mode);
|
|
85
|
+
defineControlArrayToProperty(_this, 'footers', props === null || props === void 0 ? void 0 : props.footers, parent);
|
|
103
86
|
var _props_pageIndex;
|
|
104
87
|
_this.pageIndex = (_props_pageIndex = props === null || props === void 0 ? void 0 : props.pageIndex) !== null && _props_pageIndex !== void 0 ? _props_pageIndex : 1;
|
|
105
88
|
var _props_pageSize;
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
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
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -73,28 +77,12 @@ function _type_of(obj) {
|
|
|
73
77
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
74
78
|
}
|
|
75
79
|
function _is_native_reflect_construct() {
|
|
76
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
77
|
-
if (Reflect.construct.sham) return false;
|
|
78
|
-
if (typeof Proxy === "function") return true;
|
|
79
80
|
try {
|
|
80
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
function _create_super(Derived) {
|
|
87
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
88
|
-
return function _createSuperInternal() {
|
|
89
|
-
var Super = _get_prototype_of(Derived), result;
|
|
90
|
-
if (hasNativeReflectConstruct) {
|
|
91
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
92
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
93
|
-
} else {
|
|
94
|
-
result = Super.apply(this, arguments);
|
|
95
|
-
}
|
|
96
|
-
return _possible_constructor_return(this, result);
|
|
97
|
-
};
|
|
81
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
+
} catch (_) {}
|
|
83
|
+
return (_is_native_reflect_construct = function() {
|
|
84
|
+
return !!result;
|
|
85
|
+
})();
|
|
98
86
|
}
|
|
99
87
|
import { RuntimeControl } from '../BaseControl';
|
|
100
88
|
import ListControlProperty from './property';
|
|
@@ -102,16 +90,14 @@ import { defineControlArrayToProperty } from '../ControlArray';
|
|
|
102
90
|
var ListControl = /*#__PURE__*/ function(RuntimeControl) {
|
|
103
91
|
"use strict";
|
|
104
92
|
_inherits(ListControl, RuntimeControl);
|
|
105
|
-
var _super = _create_super(ListControl);
|
|
106
93
|
function ListControl(props) {
|
|
107
94
|
_class_call_check(this, ListControl);
|
|
108
95
|
var _this;
|
|
109
|
-
_this =
|
|
110
|
-
|
|
111
|
-
_define_property(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
defineControlArrayToProperty(_assert_this_initialized(_this), 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Runtime');
|
|
96
|
+
_this = _call_super(this, ListControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "controlType", 'list'), _define_property(_this, "children", void 0), _define_property(_this, "props", void 0);
|
|
99
|
+
_this.props = new ListControlProperty(_this, props === null || props === void 0 ? void 0 : props.props, 'Runtime');
|
|
100
|
+
defineControlArrayToProperty(_this, 'children', props === null || props === void 0 ? void 0 : props.children, undefined, 'Runtime');
|
|
115
101
|
return _this;
|
|
116
102
|
}
|
|
117
103
|
_create_class(ListControl, [
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
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
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -59,41 +63,24 @@ function _type_of(obj) {
|
|
|
59
63
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
64
|
}
|
|
61
65
|
function _is_native_reflect_construct() {
|
|
62
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
-
if (Reflect.construct.sham) return false;
|
|
64
|
-
if (typeof Proxy === "function") return true;
|
|
65
66
|
try {
|
|
66
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function _create_super(Derived) {
|
|
73
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
-
return function _createSuperInternal() {
|
|
75
|
-
var Super = _get_prototype_of(Derived), result;
|
|
76
|
-
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
-
} else {
|
|
80
|
-
result = Super.apply(this, arguments);
|
|
81
|
-
}
|
|
82
|
-
return _possible_constructor_return(this, result);
|
|
83
|
-
};
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
} catch (_) {}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
70
|
+
return !!result;
|
|
71
|
+
})();
|
|
84
72
|
}
|
|
85
73
|
import SearchControlProperty from './property';
|
|
86
74
|
import { DesignerLayoutControl } from '../LayoutControl';
|
|
87
75
|
var SearchControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
88
76
|
"use strict";
|
|
89
77
|
_inherits(SearchControl, DesignerLayoutControl);
|
|
90
|
-
var _super = _create_super(SearchControl);
|
|
91
78
|
function SearchControl(props) {
|
|
92
79
|
_class_call_check(this, SearchControl);
|
|
93
80
|
var _this;
|
|
94
|
-
_this =
|
|
95
|
-
|
|
96
|
-
_define_property(
|
|
81
|
+
_this = _call_super(this, SearchControl, [
|
|
82
|
+
props
|
|
83
|
+
]), _define_property(_this, "controlType", 'search'), _define_property(_this, "props", void 0);
|
|
97
84
|
_this.props = new SearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
98
85
|
return _this;
|
|
99
86
|
}
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
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
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -59,40 +63,24 @@ function _type_of(obj) {
|
|
|
59
63
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
64
|
}
|
|
61
65
|
function _is_native_reflect_construct() {
|
|
62
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
-
if (Reflect.construct.sham) return false;
|
|
64
|
-
if (typeof Proxy === "function") return true;
|
|
65
66
|
try {
|
|
66
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function _create_super(Derived) {
|
|
73
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
-
return function _createSuperInternal() {
|
|
75
|
-
var Super = _get_prototype_of(Derived), result;
|
|
76
|
-
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
-
} else {
|
|
80
|
-
result = Super.apply(this, arguments);
|
|
81
|
-
}
|
|
82
|
-
return _possible_constructor_return(this, result);
|
|
83
|
-
};
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
} catch (_) {}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
70
|
+
return !!result;
|
|
71
|
+
})();
|
|
84
72
|
}
|
|
85
73
|
import { LayoutControlProperty } from '../LayoutControl';
|
|
86
74
|
import { DataBind } from '../../framework';
|
|
87
75
|
var SearchControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
88
76
|
"use strict";
|
|
89
77
|
_inherits(SearchControlProperty, LayoutControlProperty);
|
|
90
|
-
var _super = _create_super(SearchControlProperty);
|
|
91
78
|
function SearchControlProperty(props) {
|
|
92
79
|
_class_call_check(this, SearchControlProperty);
|
|
93
80
|
var _this;
|
|
94
|
-
_this =
|
|
95
|
-
|
|
81
|
+
_this = _call_super(this, SearchControlProperty, [
|
|
82
|
+
props
|
|
83
|
+
]), _define_property(_this, "dataBind", void 0);
|
|
96
84
|
_this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
97
85
|
return _this;
|
|
98
86
|
}
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
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
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -59,41 +63,24 @@ function _type_of(obj) {
|
|
|
59
63
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
64
|
}
|
|
61
65
|
function _is_native_reflect_construct() {
|
|
62
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
-
if (Reflect.construct.sham) return false;
|
|
64
|
-
if (typeof Proxy === "function") return true;
|
|
65
66
|
try {
|
|
66
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function _create_super(Derived) {
|
|
73
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
-
return function _createSuperInternal() {
|
|
75
|
-
var Super = _get_prototype_of(Derived), result;
|
|
76
|
-
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
-
} else {
|
|
80
|
-
result = Super.apply(this, arguments);
|
|
81
|
-
}
|
|
82
|
-
return _possible_constructor_return(this, result);
|
|
83
|
-
};
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
} catch (_) {}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
70
|
+
return !!result;
|
|
71
|
+
})();
|
|
84
72
|
}
|
|
85
73
|
import SearchControlProperty from './property';
|
|
86
74
|
import { RuntimeLayoutControl } from '../LayoutControl';
|
|
87
75
|
var SearchControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
|
|
88
76
|
"use strict";
|
|
89
77
|
_inherits(SearchControl, RuntimeLayoutControl);
|
|
90
|
-
var _super = _create_super(SearchControl);
|
|
91
78
|
function SearchControl(props) {
|
|
92
79
|
_class_call_check(this, SearchControl);
|
|
93
80
|
var _this;
|
|
94
|
-
_this =
|
|
95
|
-
|
|
96
|
-
_define_property(
|
|
81
|
+
_this = _call_super(this, SearchControl, [
|
|
82
|
+
props
|
|
83
|
+
]), _define_property(_this, "controlType", 'search'), _define_property(_this, "props", void 0);
|
|
97
84
|
_this.props = new SearchControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
98
85
|
return _this;
|
|
99
86
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
1
2
|
import Schema from 'async-validator';
|
|
2
3
|
var messages = {
|
|
3
|
-
required: '
|
|
4
|
-
maxLength: '
|
|
5
|
-
minLength: '
|
|
4
|
+
required: getLocaleText('CMD.aad41751712156995'),
|
|
5
|
+
maxLength: getLocaleText('CMD.890d1751712141808'),
|
|
6
|
+
minLength: getLocaleText('CMD.bb9b1751712143625'),
|
|
6
7
|
string: {
|
|
7
|
-
range: '
|
|
8
|
+
range: getLocaleText('CMD.f7131751712147855')
|
|
8
9
|
}
|
|
9
10
|
};
|
|
10
11
|
function createValidator(rules) {
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
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
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -59,41 +63,24 @@ function _type_of(obj) {
|
|
|
59
63
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
64
|
}
|
|
61
65
|
function _is_native_reflect_construct() {
|
|
62
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
-
if (Reflect.construct.sham) return false;
|
|
64
|
-
if (typeof Proxy === "function") return true;
|
|
65
66
|
try {
|
|
66
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function _create_super(Derived) {
|
|
73
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
-
return function _createSuperInternal() {
|
|
75
|
-
var Super = _get_prototype_of(Derived), result;
|
|
76
|
-
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
-
} else {
|
|
80
|
-
result = Super.apply(this, arguments);
|
|
81
|
-
}
|
|
82
|
-
return _possible_constructor_return(this, result);
|
|
83
|
-
};
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
} catch (_) {}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
70
|
+
return !!result;
|
|
71
|
+
})();
|
|
84
72
|
}
|
|
85
73
|
import WrapControlProperty from './property';
|
|
86
74
|
import { DesignerLayoutControl } from '../LayoutControl';
|
|
87
75
|
var WrapControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
88
76
|
"use strict";
|
|
89
77
|
_inherits(WrapControl, DesignerLayoutControl);
|
|
90
|
-
var _super = _create_super(WrapControl);
|
|
91
78
|
function WrapControl(props) {
|
|
92
79
|
_class_call_check(this, WrapControl);
|
|
93
80
|
var _this;
|
|
94
|
-
_this =
|
|
95
|
-
|
|
96
|
-
_define_property(
|
|
81
|
+
_this = _call_super(this, WrapControl, [
|
|
82
|
+
props
|
|
83
|
+
]), _define_property(_this, "controlType", 'wrap'), _define_property(_this, "props", void 0);
|
|
97
84
|
_this.props = new WrapControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
98
85
|
return _this;
|
|
99
86
|
}
|