@byteluck-fe/model-driven-controls 2.3.1 → 2.3.12
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/baseControls/BatchDeleteButton/designer.js +28 -28
- package/dist/esm/baseControls/BatchDeleteButton/property.js +31 -31
- package/dist/esm/baseControls/BatchDeleteButton/runtime.js +26 -26
- package/dist/esm/baseControls/BatchPrintListButton/designer.js +28 -28
- package/dist/esm/baseControls/BatchPrintListButton/property.js +29 -29
- package/dist/esm/baseControls/BatchPrintListButton/runtime.js +26 -26
- package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +28 -28
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +22 -22
- package/dist/esm/baseControls/BatchPrintRecordListButton/runtime.js +26 -26
- package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +28 -28
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +31 -31
- package/dist/esm/baseControls/BatchSubmissionListButton/runtime.js +26 -26
- package/dist/esm/baseControls/Button/designer.js +28 -28
- package/dist/esm/baseControls/Button/property.js +31 -31
- package/dist/esm/baseControls/Button/runtime.js +26 -26
- package/dist/esm/baseControls/CreateFormListButton/designer.js +28 -28
- package/dist/esm/baseControls/CreateFormListButton/property.js +29 -29
- package/dist/esm/baseControls/CreateFormListButton/runtime.js +26 -26
- package/dist/esm/baseControls/Dashboard/designer.js +27 -27
- package/dist/esm/baseControls/Dashboard/property.js +37 -37
- package/dist/esm/baseControls/Dashboard/runtime.js +26 -26
- package/dist/esm/baseControls/Divider/designer.js +27 -27
- package/dist/esm/baseControls/Divider/property.js +25 -25
- package/dist/esm/baseControls/Divider/runtime.js +26 -26
- package/dist/esm/baseControls/ExportListButton/designer.js +28 -28
- package/dist/esm/baseControls/ExportListButton/property.js +24 -24
- package/dist/esm/baseControls/ExportListButton/runtime.js +26 -26
- package/dist/esm/baseControls/ExportRecordListButton/designer.js +28 -28
- package/dist/esm/baseControls/ExportRecordListButton/property.js +22 -22
- package/dist/esm/baseControls/ExportRecordListButton/runtime.js +26 -26
- package/dist/esm/baseControls/FormSelectButton/designer.js +28 -28
- package/dist/esm/baseControls/FormSelectButton/property.js +37 -37
- package/dist/esm/baseControls/FormSelectButton/runtime.js +26 -26
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +28 -28
- package/dist/esm/baseControls/ImportRecordListButton/property.js +26 -26
- package/dist/esm/baseControls/ImportRecordListButton/runtime.js +26 -26
- package/dist/esm/baseControls/InvoiceCheckButton/designer.js +28 -28
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +39 -39
- package/dist/esm/baseControls/InvoiceCheckButton/runtime.js +26 -26
- package/dist/esm/baseControls/Link/designer.js +28 -28
- package/dist/esm/baseControls/Link/property.js +26 -26
- package/dist/esm/baseControls/Link/runtime.js +26 -26
- package/dist/esm/baseControls/ListSelectButton/designer.js +28 -28
- package/dist/esm/baseControls/ListSelectButton/property.js +36 -36
- package/dist/esm/baseControls/ListSelectButton/runtime.js +26 -26
- package/dist/esm/baseControls/ListViewSelect/designer.js +27 -27
- package/dist/esm/baseControls/ListViewSelect/property.js +30 -30
- package/dist/esm/baseControls/ListViewSelect/runtime.js +26 -26
- package/dist/esm/baseControls/OperationButton/designer.js +28 -28
- package/dist/esm/baseControls/OperationButton/property.js +40 -40
- package/dist/esm/baseControls/OperationButton/runtime.js +26 -26
- package/dist/esm/baseControls/Pagination/designer.js +27 -27
- package/dist/esm/baseControls/Pagination/property.js +29 -29
- package/dist/esm/baseControls/Pagination/runtime.js +26 -26
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +28 -28
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +22 -22
- package/dist/esm/baseControls/SubmissionRecordListButton/runtime.js +26 -26
- package/dist/esm/baseControls/Text/designer.js +27 -27
- package/dist/esm/baseControls/Text/property.js +28 -28
- package/dist/esm/baseControls/Text/runtime.js +26 -26
- package/dist/esm/baseControls/TextOcrButton/designer.js +28 -28
- package/dist/esm/baseControls/TextOcrButton/property.js +39 -39
- package/dist/esm/baseControls/TextOcrButton/runtime.js +26 -26
- package/dist/esm/baseControls/Title/designer.js +28 -28
- package/dist/esm/baseControls/Title/property.js +33 -33
- package/dist/esm/baseControls/Title/runtime.js +26 -26
- package/dist/esm/columnControls/ArrayColumn/designer.js +29 -29
- package/dist/esm/columnControls/ArrayColumn/property.js +29 -29
- package/dist/esm/columnControls/ArrayColumn/runtime.js +26 -26
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +29 -29
- package/dist/esm/columnControls/AutoNumberColumn/property.js +22 -22
- package/dist/esm/columnControls/AutoNumberColumn/runtime.js +26 -26
- package/dist/esm/columnControls/CustomColumn/designer.js +47 -47
- package/dist/esm/columnControls/CustomColumn/property.js +24 -24
- package/dist/esm/columnControls/CustomColumn/runtime.js +27 -27
- package/dist/esm/columnControls/DecimalColumn/designer.js +37 -37
- package/dist/esm/columnControls/DecimalColumn/property.js +29 -29
- package/dist/esm/columnControls/DecimalColumn/runtime.js +26 -26
- package/dist/esm/columnControls/DepartmentColumn/designer.js +37 -37
- package/dist/esm/columnControls/DepartmentColumn/property.js +24 -24
- package/dist/esm/columnControls/DepartmentColumn/runtime.js +26 -26
- package/dist/esm/columnControls/EmployeeColumn/designer.js +31 -31
- package/dist/esm/columnControls/EmployeeColumn/property.js +24 -24
- package/dist/esm/columnControls/EmployeeColumn/runtime.js +26 -26
- package/dist/esm/columnControls/FileColumn/designer.js +29 -29
- package/dist/esm/columnControls/FileColumn/property.js +22 -22
- package/dist/esm/columnControls/FileColumn/runtime.js +26 -26
- package/dist/esm/columnControls/ImageColumn/designer.js +29 -29
- package/dist/esm/columnControls/ImageColumn/property.js +22 -22
- package/dist/esm/columnControls/ImageColumn/runtime.js +26 -26
- package/dist/esm/columnControls/LocationColumn/designer.js +29 -29
- package/dist/esm/columnControls/LocationColumn/property.js +22 -22
- package/dist/esm/columnControls/LocationColumn/runtime.js +26 -26
- package/dist/esm/columnControls/OperationColumn/designer.js +49 -49
- package/dist/esm/columnControls/OperationColumn/property.js +25 -25
- package/dist/esm/columnControls/OperationColumn/runtime.js +28 -28
- package/dist/esm/columnControls/OrderColumn/designer.js +28 -28
- package/dist/esm/columnControls/OrderColumn/property.js +26 -26
- package/dist/esm/columnControls/OrderColumn/runtime.js +26 -26
- package/dist/esm/columnControls/PeopleColumn/designer.js +29 -29
- package/dist/esm/columnControls/PeopleColumn/property.js +22 -22
- package/dist/esm/columnControls/PeopleColumn/runtime.js +26 -26
- package/dist/esm/columnControls/TextColumn/designer.js +37 -37
- package/dist/esm/columnControls/TextColumn/property.js +25 -25
- package/dist/esm/columnControls/TextColumn/runtime.js +26 -26
- package/dist/esm/columnControls/TimescopeColumn/designer.js +37 -37
- package/dist/esm/columnControls/TimescopeColumn/property.js +24 -24
- package/dist/esm/columnControls/TimescopeColumn/runtime.js +26 -26
- package/dist/esm/columnControls/TimestampColumn/designer.js +37 -37
- package/dist/esm/columnControls/TimestampColumn/property.js +24 -24
- package/dist/esm/columnControls/TimestampColumn/runtime.js +26 -26
- package/dist/esm/columnControls/VarcharColumn/designer.js +29 -29
- package/dist/esm/columnControls/VarcharColumn/property.js +30 -30
- package/dist/esm/columnControls/VarcharColumn/runtime.js +26 -26
- package/dist/esm/formControls/Address/designer.js +28 -28
- package/dist/esm/formControls/Address/property.js +41 -33
- package/dist/esm/formControls/Address/runtime.js +27 -27
- package/dist/esm/formControls/Amount/designer.js +35 -35
- package/dist/esm/formControls/Amount/property.js +55 -47
- package/dist/esm/formControls/Amount/runtime.js +27 -27
- package/dist/esm/formControls/Attachment/designer.js +29 -29
- package/dist/esm/formControls/Attachment/property.js +36 -36
- package/dist/esm/formControls/Attachment/runtime.js +27 -27
- package/dist/esm/formControls/AutoNumber/designer.js +29 -29
- package/dist/esm/formControls/AutoNumber/property.js +24 -24
- package/dist/esm/formControls/AutoNumber/runtime.js +27 -27
- package/dist/esm/formControls/Calc/designer.js +35 -35
- package/dist/esm/formControls/Calc/property.js +41 -36
- package/dist/esm/formControls/Calc/runtime.js +27 -27
- package/dist/esm/formControls/Checkbox/designer.js +29 -29
- package/dist/esm/formControls/Checkbox/property.js +44 -44
- package/dist/esm/formControls/Checkbox/runtime.js +27 -27
- package/dist/esm/formControls/DatePicker/designer.js +34 -34
- package/dist/esm/formControls/DatePicker/property.js +29 -29
- package/dist/esm/formControls/DatePicker/runtime.js +27 -27
- package/dist/esm/formControls/DateRange/designer.js +34 -34
- package/dist/esm/formControls/DateRange/property.js +73 -40
- package/dist/esm/formControls/DateRange/runtime.js +27 -27
- package/dist/esm/formControls/Department/designer.js +34 -34
- package/dist/esm/formControls/Department/property.js +36 -36
- package/dist/esm/formControls/Department/runtime.js +27 -27
- package/dist/esm/formControls/Department2/designer.js +34 -34
- package/dist/esm/formControls/Department2/property.js +46 -46
- package/dist/esm/formControls/Department2/runtime.js +27 -27
- package/dist/esm/formControls/ElectronicSignature/designer.js +29 -29
- package/dist/esm/formControls/ElectronicSignature/property.js +35 -35
- package/dist/esm/formControls/ElectronicSignature/runtime.js +27 -27
- package/dist/esm/formControls/Employee/designer.js +28 -28
- package/dist/esm/formControls/Employee/property.js +34 -34
- package/dist/esm/formControls/Employee/runtime.js +27 -27
- package/dist/esm/formControls/Employee2/designer.js +28 -28
- package/dist/esm/formControls/Employee2/property.js +45 -45
- package/dist/esm/formControls/Employee2/runtime.js +27 -27
- package/dist/esm/formControls/Image/designer.js +27 -27
- package/dist/esm/formControls/Image/property.js +22 -22
- package/dist/esm/formControls/Image/runtime.js +24 -24
- package/dist/esm/formControls/Input/designer.js +29 -29
- package/dist/esm/formControls/Input/property.js +38 -38
- package/dist/esm/formControls/Input/runtime.js +27 -27
- package/dist/esm/formControls/Number/designer.js +35 -35
- package/dist/esm/formControls/Number/property.js +43 -43
- package/dist/esm/formControls/Number/runtime.js +27 -27
- package/dist/esm/formControls/Radio/designer.js +29 -29
- package/dist/esm/formControls/Radio/property.js +38 -38
- package/dist/esm/formControls/Radio/runtime.js +27 -27
- package/dist/esm/formControls/RichText/designer.js +29 -29
- package/dist/esm/formControls/RichText/property.js +35 -35
- package/dist/esm/formControls/RichText/runtime.js +27 -27
- package/dist/esm/formControls/Score/designer.js +46 -46
- package/dist/esm/formControls/Score/property.js +36 -36
- package/dist/esm/formControls/Score/runtime.js +27 -27
- package/dist/esm/formControls/SearchDateRange/designer.js +28 -28
- package/dist/esm/formControls/SearchDateRange/property.js +34 -34
- package/dist/esm/formControls/SearchDateRange/runtime.js +27 -27
- package/dist/esm/formControls/SearchInput/designer.js +27 -27
- package/dist/esm/formControls/SearchInput/property.js +24 -24
- package/dist/esm/formControls/SearchInput/runtime.js +27 -27
- package/dist/esm/formControls/SearchNumberRange/designer.js +28 -28
- package/dist/esm/formControls/SearchNumberRange/property.js +31 -31
- package/dist/esm/formControls/SearchNumberRange/runtime.js +27 -27
- package/dist/esm/formControls/Select/designer.js +28 -28
- package/dist/esm/formControls/Select/property.js +34 -34
- package/dist/esm/formControls/Select/runtime.js +27 -27
- package/dist/esm/formControls/SelectMultiple/designer.js +28 -28
- package/dist/esm/formControls/SelectMultiple/property.js +36 -36
- package/dist/esm/formControls/SelectMultiple/runtime.js +27 -27
- package/dist/esm/formControls/SelectRelation/designer.js +29 -29
- package/dist/esm/formControls/SelectRelation/property.js +35 -35
- package/dist/esm/formControls/SelectRelation/runtime.js +27 -27
- package/dist/esm/formControls/Textarea/designer.js +29 -29
- package/dist/esm/formControls/Textarea/property.js +36 -36
- package/dist/esm/formControls/Textarea/runtime.js +27 -27
- package/dist/esm/formControls/Tree/designer.js +29 -29
- package/dist/esm/formControls/Tree/property.js +44 -44
- package/dist/esm/formControls/Tree/runtime.js +27 -27
- package/dist/esm/formControls/VueFormItem/designer.js +29 -29
- package/dist/esm/formControls/VueFormItem/property.js +33 -33
- package/dist/esm/formControls/VueFormItem/runtime.js +27 -27
- package/dist/esm/formControls/WPS/designer.js +29 -29
- package/dist/esm/formControls/WPS/property.js +44 -44
- package/dist/esm/formControls/WPS/runtime.js +27 -27
- package/dist/esm/framework.js +51 -51
- package/dist/esm/layoutControls/AdvancedContainer/Setting.js +11 -11
- package/dist/esm/layoutControls/AdvancedContainer/designer.js +24 -24
- package/dist/esm/layoutControls/AdvancedContainer/property.js +25 -25
- package/dist/esm/layoutControls/AdvancedContainer/runtime.js +24 -24
- package/dist/esm/layoutControls/CardGroup/designer.js +28 -28
- package/dist/esm/layoutControls/CardGroup/property.js +29 -29
- package/dist/esm/layoutControls/CardGroup/runtime.js +26 -26
- package/dist/esm/layoutControls/Col/designer.js +28 -28
- package/dist/esm/layoutControls/Col/property.js +25 -25
- package/dist/esm/layoutControls/Col/runtime.js +26 -26
- package/dist/esm/layoutControls/DataView/designer.js +27 -27
- package/dist/esm/layoutControls/DataView/property.js +33 -33
- package/dist/esm/layoutControls/DataView/runtime.js +26 -26
- package/dist/esm/layoutControls/Grid/designer.js +26 -26
- package/dist/esm/layoutControls/Grid/runtime.js +24 -24
- package/dist/esm/layoutControls/GridRow/designer.js +28 -28
- package/dist/esm/layoutControls/GridRow/property.js +22 -22
- package/dist/esm/layoutControls/GridRow/runtime.js +24 -24
- package/dist/esm/layoutControls/GridTableColumn/designer.js +30 -30
- package/dist/esm/layoutControls/GridTableColumn/property.js +35 -35
- package/dist/esm/layoutControls/GridTableColumn/runtime.js +25 -25
- package/dist/esm/layoutControls/ListView/designer.js +29 -29
- package/dist/esm/layoutControls/ListView/property.js +43 -43
- package/dist/esm/layoutControls/ListView/runtime.js +26 -26
- package/dist/esm/layoutControls/Page/Setting.js +11 -11
- package/dist/esm/layoutControls/Page/designer.js +24 -24
- package/dist/esm/layoutControls/Page/property.js +28 -28
- package/dist/esm/layoutControls/Page/runtime.js +24 -24
- package/dist/esm/layoutControls/Position/designer.js +24 -24
- package/dist/esm/layoutControls/Position/property.js +27 -27
- package/dist/esm/layoutControls/Position/runtime.js +24 -24
- package/dist/esm/layoutControls/PositioningContainer/Setting.js +11 -11
- package/dist/esm/layoutControls/PositioningContainer/designer.js +24 -24
- package/dist/esm/layoutControls/PositioningContainer/property.js +22 -22
- package/dist/esm/layoutControls/PositioningContainer/runtime.js +24 -24
- package/dist/esm/layoutControls/Row/designer.js +28 -28
- package/dist/esm/layoutControls/Row/property.js +25 -25
- package/dist/esm/layoutControls/Row/runtime.js +26 -26
- package/dist/esm/layoutControls/SubTableColumn/designer.js +30 -30
- package/dist/esm/layoutControls/SubTableColumn/property.js +35 -35
- package/dist/esm/layoutControls/SubTableColumn/runtime.js +25 -25
- package/dist/esm/layoutControls/SubTableRow/designer.js +30 -30
- package/dist/esm/layoutControls/SubTableRow/property.js +22 -22
- package/dist/esm/layoutControls/SubTableRow/runtime.js +26 -26
- package/dist/esm/layoutControls/Tab/designer.js +29 -29
- package/dist/esm/layoutControls/Tab/property.js +22 -22
- package/dist/esm/layoutControls/Tab/runtime.js +26 -26
- package/dist/esm/layoutControls/TabPane/designer.js +28 -28
- package/dist/esm/layoutControls/TabPane/property.js +28 -28
- package/dist/esm/layoutControls/TabPane/runtime.js +26 -26
- package/dist/esm/layoutControls/Toolbox/designer.js +27 -27
- package/dist/esm/layoutControls/Toolbox/property.js +22 -22
- package/dist/esm/layoutControls/Toolbox/runtime.js +24 -24
- package/dist/esm/listControls/GridTable/designer.js +46 -46
- package/dist/esm/listControls/GridTable/property.js +28 -28
- package/dist/esm/listControls/GridTable/runtime.js +27 -27
- package/dist/esm/listControls/SubTable/designer.js +29 -29
- package/dist/esm/listControls/SubTable/property.js +59 -59
- package/dist/esm/listControls/SubTable/runtime.js +27 -27
- package/dist/esm/searchControls/SimpleSearch/designer.js +26 -26
- package/dist/esm/searchControls/SimpleSearch/property.js +33 -33
- package/dist/esm/searchControls/SimpleSearch/runtime.js +26 -26
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Address/property.d.ts +15 -0
- package/dist/types/formControls/Amount/property.d.ts +9 -0
- package/dist/types/formControls/Calc/property.d.ts +5 -0
- package/dist/types/formControls/DateRange/property.d.ts +47 -0
- package/package.json +4 -4
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
2
|
if (self === void 0) {
|
|
3
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function _class_call_check(instance, Constructor) {
|
|
8
8
|
if (!(instance instanceof Constructor)) {
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
13
|
if (key in obj) {
|
|
14
14
|
Object.defineProperty(obj, key, {
|
|
15
15
|
value: value,
|
|
@@ -22,11 +22,11 @@ function _defineProperty(obj, key, value) {
|
|
|
22
22
|
}
|
|
23
23
|
return obj;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
27
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
28
28
|
};
|
|
29
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
30
30
|
}
|
|
31
31
|
function _inherits(subClass, superClass) {
|
|
32
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -39,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
39
39
|
configurable: true
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
if (call && (
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
46
46
|
return call;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return _assert_this_initialized(self);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
52
52
|
o.__proto__ = p;
|
|
53
53
|
return o;
|
|
54
54
|
};
|
|
55
|
-
return
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
function _type_of(obj) {
|
|
58
58
|
"@swc/helpers - typeof";
|
|
59
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
|
-
}
|
|
61
|
-
function
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
62
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
63
|
if (Reflect.construct.sham) return false;
|
|
64
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -69,17 +69,17 @@ function _isNativeReflectConstruct() {
|
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
74
|
return function _createSuperInternal() {
|
|
75
|
-
var Super =
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
76
76
|
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
79
|
} else {
|
|
80
80
|
result = Super.apply(this, arguments);
|
|
81
81
|
}
|
|
82
|
-
return
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from "@byteluck-fe/model-driven-core";
|
|
@@ -88,22 +88,22 @@ import { RulesMessage } from "@byteluck-fe/model-driven-shared";
|
|
|
88
88
|
var RichTextControlPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
89
89
|
"use strict";
|
|
90
90
|
_inherits(RichTextControlPropertyRules, BaseControlPropertyRules);
|
|
91
|
-
var _super =
|
|
91
|
+
var _super = _create_super(RichTextControlPropertyRules);
|
|
92
92
|
function RichTextControlPropertyRules(props) {
|
|
93
|
-
|
|
93
|
+
_class_call_check(this, RichTextControlPropertyRules);
|
|
94
94
|
var _this;
|
|
95
95
|
_this = _super.call(this, props);
|
|
96
|
-
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "maxLength", {
|
|
97
97
|
type: "number",
|
|
98
98
|
min: 0,
|
|
99
99
|
message: RulesMessage.getMessage("TheMaximumLengthIsGreaterThanTheMinimumLength")
|
|
100
100
|
});
|
|
101
|
-
|
|
101
|
+
_define_property(_assert_this_initialized(_this), "minLength", {
|
|
102
102
|
type: "number",
|
|
103
103
|
max: 1000000,
|
|
104
104
|
message: RulesMessage.getMessage("TheMinimumLengthIsGreaterThanTheMaximumLength")
|
|
105
105
|
});
|
|
106
|
-
|
|
106
|
+
_define_property(_assert_this_initialized(_this), "defaultValue", {
|
|
107
107
|
type: "string",
|
|
108
108
|
max: 200,
|
|
109
109
|
min: 0,
|
|
@@ -124,9 +124,9 @@ var RichTextControlPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRul
|
|
|
124
124
|
var RichTextControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
125
125
|
"use strict";
|
|
126
126
|
_inherits(RichTextControlPropertyRuntimeRules, BaseControlPropertyRuntimeRules);
|
|
127
|
-
var _super =
|
|
127
|
+
var _super = _create_super(RichTextControlPropertyRuntimeRules);
|
|
128
128
|
function RichTextControlPropertyRuntimeRules(props) {
|
|
129
|
-
|
|
129
|
+
_class_call_check(this, RichTextControlPropertyRuntimeRules);
|
|
130
130
|
var _this;
|
|
131
131
|
_this = _super.call(this, props);
|
|
132
132
|
_this.push({
|
|
@@ -145,14 +145,14 @@ var RichTextControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
145
145
|
var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
146
146
|
"use strict";
|
|
147
147
|
_inherits(RichTextProperty, BaseControlProperty);
|
|
148
|
-
var _super =
|
|
148
|
+
var _super = _create_super(RichTextProperty);
|
|
149
149
|
function RichTextProperty(props) {
|
|
150
|
-
|
|
150
|
+
_class_call_check(this, RichTextProperty);
|
|
151
151
|
var _this;
|
|
152
152
|
_this = _super.call(this, props);
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
_define_property(_assert_this_initialized(_this), "maxLength", void 0);
|
|
154
|
+
_define_property(_assert_this_initialized(_this), "minLength", void 0);
|
|
155
|
+
_define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
156
156
|
var _props_maxLength;
|
|
157
157
|
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
|
|
158
158
|
var _props_minLength;
|
|
@@ -167,7 +167,7 @@ var RichTextProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
167
167
|
}
|
|
168
168
|
return RichTextProperty;
|
|
169
169
|
}(BaseControlProperty);
|
|
170
|
-
|
|
171
|
-
|
|
170
|
+
_define_property(RichTextProperty, "Rules", RichTextControlPropertyRules);
|
|
171
|
+
_define_property(RichTextProperty, "RuntimeRules", RichTextControlPropertyRuntimeRules);
|
|
172
172
|
export default RichTextProperty;
|
|
173
173
|
export { RichTextProperty, RichTextControlPropertyRules, RichTextControlPropertyRuntimeRules, };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
2
|
if (self === void 0) {
|
|
3
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function _class_call_check(instance, Constructor) {
|
|
8
8
|
if (!(instance instanceof Constructor)) {
|
|
9
9
|
throw new TypeError("Cannot call a class as a function");
|
|
10
10
|
}
|
|
@@ -18,12 +18,12 @@ function _defineProperties(target, props) {
|
|
|
18
18
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
22
22
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
23
23
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
24
24
|
return Constructor;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function _define_property(obj, key, value) {
|
|
27
27
|
if (key in obj) {
|
|
28
28
|
Object.defineProperty(obj, key, {
|
|
29
29
|
value: value,
|
|
@@ -36,11 +36,11 @@ function _defineProperty(obj, key, value) {
|
|
|
36
36
|
}
|
|
37
37
|
return obj;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
|
|
39
|
+
function _get_prototype_of(o) {
|
|
40
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
41
41
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
42
42
|
};
|
|
43
|
-
return
|
|
43
|
+
return _get_prototype_of(o);
|
|
44
44
|
}
|
|
45
45
|
function _inherits(subClass, superClass) {
|
|
46
46
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -53,26 +53,26 @@ function _inherits(subClass, superClass) {
|
|
|
53
53
|
configurable: true
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
if (superClass)
|
|
56
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
if (call && (
|
|
58
|
+
function _possible_constructor_return(self, call) {
|
|
59
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
60
60
|
return call;
|
|
61
61
|
}
|
|
62
|
-
return
|
|
62
|
+
return _assert_this_initialized(self);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
|
|
64
|
+
function _set_prototype_of(o, p) {
|
|
65
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
66
66
|
o.__proto__ = p;
|
|
67
67
|
return o;
|
|
68
68
|
};
|
|
69
|
-
return
|
|
69
|
+
return _set_prototype_of(o, p);
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
function _type_of(obj) {
|
|
72
72
|
"@swc/helpers - typeof";
|
|
73
73
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
74
|
-
}
|
|
75
|
-
function
|
|
74
|
+
}
|
|
75
|
+
function _is_native_reflect_construct() {
|
|
76
76
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
77
77
|
if (Reflect.construct.sham) return false;
|
|
78
78
|
if (typeof Proxy === "function") return true;
|
|
@@ -83,17 +83,17 @@ function _isNativeReflectConstruct() {
|
|
|
83
83
|
return false;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
var hasNativeReflectConstruct =
|
|
86
|
+
function _create_super(Derived) {
|
|
87
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
88
88
|
return function _createSuperInternal() {
|
|
89
|
-
var Super =
|
|
89
|
+
var Super = _get_prototype_of(Derived), result;
|
|
90
90
|
if (hasNativeReflectConstruct) {
|
|
91
|
-
var NewTarget =
|
|
91
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
92
92
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
93
93
|
} else {
|
|
94
94
|
result = Super.apply(this, arguments);
|
|
95
95
|
}
|
|
96
|
-
return
|
|
96
|
+
return _possible_constructor_return(this, result);
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
import { RuntimeFormControl } from "@byteluck-fe/model-driven-core";
|
|
@@ -102,16 +102,16 @@ import RichTextProperty from "./property";
|
|
|
102
102
|
var RichTextControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
103
103
|
"use strict";
|
|
104
104
|
_inherits(RichTextControl, RuntimeFormControl);
|
|
105
|
-
var _super =
|
|
105
|
+
var _super = _create_super(RichTextControl);
|
|
106
106
|
function RichTextControl(props) {
|
|
107
|
-
|
|
107
|
+
_class_call_check(this, RichTextControl);
|
|
108
108
|
var _this;
|
|
109
109
|
_this = _super.call(this, props);
|
|
110
|
-
|
|
110
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
111
111
|
_this.props = new RichTextProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
112
112
|
return _this;
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
_create_class(RichTextControl, null, [
|
|
115
115
|
{
|
|
116
116
|
key: "controlType",
|
|
117
117
|
get: function get() {
|
|
@@ -121,6 +121,6 @@ var RichTextControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
|
121
121
|
]);
|
|
122
122
|
return RichTextControl;
|
|
123
123
|
}(RuntimeFormControl);
|
|
124
|
-
|
|
124
|
+
_define_property(RichTextControl, "controlFieldType", FieldTypes.TEXT);
|
|
125
125
|
export default RichTextControl;
|
|
126
126
|
export { RichTextControl as RichTextControl };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _array_like_to_array(arr, len) {
|
|
2
2
|
if (len == null || len > arr.length) len = arr.length;
|
|
3
3
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4
4
|
return arr2;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
if (Array.isArray(arr)) return
|
|
6
|
+
function _array_without_holes(arr) {
|
|
7
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function _assert_this_initialized(self) {
|
|
10
10
|
if (self === void 0) {
|
|
11
11
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
12
12
|
}
|
|
13
13
|
return self;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function _class_call_check(instance, Constructor) {
|
|
16
16
|
if (!(instance instanceof Constructor)) {
|
|
17
17
|
throw new TypeError("Cannot call a class as a function");
|
|
18
18
|
}
|
|
@@ -26,12 +26,12 @@ function _defineProperties(target, props) {
|
|
|
26
26
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
30
30
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
31
31
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
32
32
|
return Constructor;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function _define_property(obj, key, value) {
|
|
35
35
|
if (key in obj) {
|
|
36
36
|
Object.defineProperty(obj, key, {
|
|
37
37
|
value: value,
|
|
@@ -48,23 +48,23 @@ function _get(target, property, receiver) {
|
|
|
48
48
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
49
49
|
_get = Reflect.get;
|
|
50
50
|
} else {
|
|
51
|
-
_get = function
|
|
52
|
-
var base =
|
|
51
|
+
_get = function get(target, property, receiver) {
|
|
52
|
+
var base = _super_prop_base(target, property);
|
|
53
53
|
if (!base) return;
|
|
54
54
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
55
55
|
if (desc.get) {
|
|
56
|
-
return desc.get.call(receiver);
|
|
56
|
+
return desc.get.call(receiver || target);
|
|
57
57
|
}
|
|
58
58
|
return desc.value;
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
return _get(target, property, receiver || target);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
63
|
+
function _get_prototype_of(o) {
|
|
64
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
65
65
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
66
66
|
};
|
|
67
|
-
return
|
|
67
|
+
return _get_prototype_of(o);
|
|
68
68
|
}
|
|
69
69
|
function _inherits(subClass, superClass) {
|
|
70
70
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -77,50 +77,50 @@ function _inherits(subClass, superClass) {
|
|
|
77
77
|
configurable: true
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
-
if (superClass)
|
|
80
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function _iterable_to_array(iter) {
|
|
83
83
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function _non_iterable_spread() {
|
|
86
86
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
if (call && (
|
|
88
|
+
function _possible_constructor_return(self, call) {
|
|
89
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
90
90
|
return call;
|
|
91
91
|
}
|
|
92
|
-
return
|
|
92
|
+
return _assert_this_initialized(self);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
|
|
94
|
+
function _set_prototype_of(o, p) {
|
|
95
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
96
96
|
o.__proto__ = p;
|
|
97
97
|
return o;
|
|
98
98
|
};
|
|
99
|
-
return
|
|
99
|
+
return _set_prototype_of(o, p);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function _super_prop_base(object, property) {
|
|
102
102
|
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
103
|
-
object =
|
|
103
|
+
object = _get_prototype_of(object);
|
|
104
104
|
if (object === null) break;
|
|
105
105
|
}
|
|
106
106
|
return object;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function _to_consumable_array(arr) {
|
|
109
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
110
110
|
}
|
|
111
|
-
|
|
111
|
+
function _type_of(obj) {
|
|
112
112
|
"@swc/helpers - typeof";
|
|
113
113
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
114
|
-
}
|
|
115
|
-
function
|
|
114
|
+
}
|
|
115
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
116
116
|
if (!o) return;
|
|
117
|
-
if (typeof o === "string") return
|
|
117
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
118
118
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
119
119
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
120
120
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
121
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
121
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function _is_native_reflect_construct() {
|
|
124
124
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
125
125
|
if (Reflect.construct.sham) return false;
|
|
126
126
|
if (typeof Proxy === "function") return true;
|
|
@@ -131,17 +131,17 @@ function _isNativeReflectConstruct() {
|
|
|
131
131
|
return false;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
var hasNativeReflectConstruct =
|
|
134
|
+
function _create_super(Derived) {
|
|
135
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
136
136
|
return function _createSuperInternal() {
|
|
137
|
-
var Super =
|
|
137
|
+
var Super = _get_prototype_of(Derived), result;
|
|
138
138
|
if (hasNativeReflectConstruct) {
|
|
139
|
-
var NewTarget =
|
|
139
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
140
140
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
141
141
|
} else {
|
|
142
142
|
result = Super.apply(this, arguments);
|
|
143
143
|
}
|
|
144
|
-
return
|
|
144
|
+
return _possible_constructor_return(this, result);
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from "@byteluck-fe/model-driven-core";
|
|
@@ -151,16 +151,16 @@ import { Explain } from "../../framework";
|
|
|
151
151
|
var ScoreControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
152
152
|
"use strict";
|
|
153
153
|
_inherits(ScoreControl, DesignerFormControl);
|
|
154
|
-
var _super =
|
|
154
|
+
var _super = _create_super(ScoreControl);
|
|
155
155
|
function ScoreControl(props) {
|
|
156
|
-
|
|
156
|
+
_class_call_check(this, ScoreControl);
|
|
157
157
|
var _this;
|
|
158
158
|
_this = _super.call(this, props);
|
|
159
|
-
|
|
159
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
160
160
|
_this.props = new ScoreProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
161
161
|
return _this;
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
_create_class(ScoreControl, [
|
|
164
164
|
{
|
|
165
165
|
key: "postUpdate",
|
|
166
166
|
value: function postUpdate(key, value) {
|
|
@@ -174,10 +174,10 @@ var ScoreControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
174
174
|
var addExplain = Array(addNum).fill(undefined).map(function() {
|
|
175
175
|
return new Explain();
|
|
176
176
|
});
|
|
177
|
-
(_this_props_explain = this.props.explain).push.apply(_this_props_explain,
|
|
177
|
+
(_this_props_explain = this.props.explain).push.apply(_this_props_explain, _to_consumable_array(addExplain));
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
_get(
|
|
180
|
+
_get(_get_prototype_of(ScoreControl.prototype), "postUpdate", this).call(this, key, value);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
], [
|
|
@@ -202,12 +202,12 @@ var ScoreControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
202
202
|
]);
|
|
203
203
|
return ScoreControl;
|
|
204
204
|
}(DesignerFormControl);
|
|
205
|
-
|
|
205
|
+
_define_property(ScoreControl, "controlEventKeys", [
|
|
206
206
|
"on_change",
|
|
207
207
|
"on_click"
|
|
208
208
|
]);
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
_define_property(ScoreControl, "controlFieldType", FieldTypes.DECIMAL);
|
|
210
|
+
_define_property(ScoreControl, "setting", [
|
|
211
211
|
{
|
|
212
212
|
key: "data-bind",
|
|
213
213
|
visible: true
|