@byteluck-fe/model-driven-controls 2.2.7-beta.2 → 2.2.7-beta.4
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 +42 -28
- package/dist/esm/baseControls/BatchDeleteButton/property.js +44 -22
- package/dist/esm/baseControls/BatchDeleteButton/runtime.js +38 -24
- package/dist/esm/baseControls/BatchPrintListButton/designer.js +42 -28
- package/dist/esm/baseControls/BatchPrintListButton/property.js +43 -27
- package/dist/esm/baseControls/BatchPrintListButton/runtime.js +38 -24
- package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +42 -28
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +22 -22
- package/dist/esm/baseControls/BatchPrintRecordListButton/runtime.js +38 -24
- package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +42 -28
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +52 -27
- package/dist/esm/baseControls/BatchSubmissionListButton/runtime.js +38 -24
- package/dist/esm/baseControls/Button/designer.js +42 -28
- package/dist/esm/baseControls/Button/property.js +44 -22
- package/dist/esm/baseControls/Button/runtime.js +38 -24
- package/dist/esm/baseControls/CreateFormListButton/designer.js +42 -28
- package/dist/esm/baseControls/CreateFormListButton/property.js +42 -27
- package/dist/esm/baseControls/CreateFormListButton/runtime.js +38 -24
- package/dist/esm/baseControls/Dashboard/designer.js +40 -26
- package/dist/esm/baseControls/Dashboard/property.js +54 -35
- package/dist/esm/baseControls/Dashboard/runtime.js +38 -24
- package/dist/esm/baseControls/Divider/designer.js +40 -26
- package/dist/esm/baseControls/Divider/property.js +37 -22
- package/dist/esm/baseControls/Divider/runtime.js +38 -24
- package/dist/esm/baseControls/ExportListButton/designer.js +42 -28
- package/dist/esm/baseControls/ExportListButton/property.js +36 -22
- package/dist/esm/baseControls/ExportListButton/runtime.js +38 -24
- package/dist/esm/baseControls/ExportRecordListButton/designer.js +42 -28
- package/dist/esm/baseControls/ExportRecordListButton/property.js +22 -22
- package/dist/esm/baseControls/ExportRecordListButton/runtime.js +38 -24
- package/dist/esm/baseControls/FormSelectButton/designer.js +42 -28
- package/dist/esm/baseControls/FormSelectButton/property.js +40 -36
- package/dist/esm/baseControls/FormSelectButton/runtime.js +38 -24
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +42 -28
- package/dist/esm/baseControls/ImportRecordListButton/property.js +40 -23
- package/dist/esm/baseControls/ImportRecordListButton/runtime.js +38 -24
- package/dist/esm/baseControls/InvoiceCheckButton/designer.js +42 -28
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +57 -37
- package/dist/esm/baseControls/InvoiceCheckButton/runtime.js +38 -24
- package/dist/esm/baseControls/Link/designer.js +42 -28
- package/dist/esm/baseControls/Link/property.js +38 -22
- package/dist/esm/baseControls/Link/runtime.js +38 -24
- package/dist/esm/baseControls/ListSelectButton/designer.js +42 -28
- package/dist/esm/baseControls/ListSelectButton/property.js +39 -36
- package/dist/esm/baseControls/ListSelectButton/runtime.js +38 -24
- package/dist/esm/baseControls/ListViewSelect/designer.js +40 -26
- package/dist/esm/baseControls/ListViewSelect/property.js +44 -29
- package/dist/esm/baseControls/ListViewSelect/runtime.js +38 -24
- package/dist/esm/baseControls/OperationButton/designer.js +42 -28
- package/dist/esm/baseControls/OperationButton/property.js +53 -27
- package/dist/esm/baseControls/OperationButton/runtime.js +38 -24
- package/dist/esm/baseControls/Pagination/designer.js +39 -25
- package/dist/esm/baseControls/Pagination/property.js +41 -28
- package/dist/esm/baseControls/Pagination/runtime.js +38 -24
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +42 -28
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +22 -22
- package/dist/esm/baseControls/SubmissionRecordListButton/runtime.js +38 -24
- package/dist/esm/baseControls/Text/designer.js +40 -26
- package/dist/esm/baseControls/Text/property.js +41 -22
- package/dist/esm/baseControls/Text/runtime.js +38 -24
- package/dist/esm/baseControls/TextOcrButton/designer.js +42 -28
- package/dist/esm/baseControls/TextOcrButton/property.js +57 -37
- package/dist/esm/baseControls/TextOcrButton/runtime.js +38 -24
- package/dist/esm/baseControls/Title/designer.js +41 -27
- package/dist/esm/baseControls/Title/property.js +48 -31
- package/dist/esm/baseControls/Title/runtime.js +38 -24
- package/dist/esm/columnControls/ArrayColumn/designer.js +42 -28
- package/dist/esm/columnControls/ArrayColumn/property.js +44 -25
- package/dist/esm/columnControls/ArrayColumn/runtime.js +38 -24
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +42 -28
- package/dist/esm/columnControls/AutoNumberColumn/property.js +22 -22
- package/dist/esm/columnControls/AutoNumberColumn/runtime.js +38 -24
- package/dist/esm/columnControls/CustomColumn/designer.js +90 -62
- package/dist/esm/columnControls/CustomColumn/property.js +36 -22
- package/dist/esm/columnControls/CustomColumn/runtime.js +39 -24
- package/dist/esm/columnControls/DecimalColumn/designer.js +74 -42
- package/dist/esm/columnControls/DecimalColumn/property.js +50 -22
- package/dist/esm/columnControls/DecimalColumn/runtime.js +38 -24
- package/dist/esm/columnControls/DepartmentColumn/designer.js +73 -41
- package/dist/esm/columnControls/DepartmentColumn/property.js +38 -22
- package/dist/esm/columnControls/DepartmentColumn/runtime.js +38 -24
- package/dist/esm/columnControls/EmployeeColumn/designer.js +44 -30
- package/dist/esm/columnControls/EmployeeColumn/property.js +36 -22
- package/dist/esm/columnControls/EmployeeColumn/runtime.js +38 -24
- package/dist/esm/columnControls/FileColumn/designer.js +42 -28
- package/dist/esm/columnControls/FileColumn/property.js +22 -22
- package/dist/esm/columnControls/FileColumn/runtime.js +38 -24
- package/dist/esm/columnControls/ImageColumn/designer.js +42 -28
- package/dist/esm/columnControls/ImageColumn/property.js +22 -22
- package/dist/esm/columnControls/ImageColumn/runtime.js +38 -24
- package/dist/esm/columnControls/LocationColumn/designer.js +42 -28
- package/dist/esm/columnControls/LocationColumn/property.js +22 -22
- package/dist/esm/columnControls/LocationColumn/runtime.js +38 -24
- package/dist/esm/columnControls/OperationColumn/designer.js +119 -93
- package/dist/esm/columnControls/OperationColumn/property.js +42 -22
- package/dist/esm/columnControls/OperationColumn/runtime.js +40 -25
- package/dist/esm/columnControls/OrderColumn/designer.js +41 -27
- package/dist/esm/columnControls/OrderColumn/property.js +38 -25
- package/dist/esm/columnControls/OrderColumn/runtime.js +38 -24
- package/dist/esm/columnControls/PeopleColumn/designer.js +42 -28
- package/dist/esm/columnControls/PeopleColumn/property.js +22 -22
- package/dist/esm/columnControls/PeopleColumn/runtime.js +38 -24
- package/dist/esm/columnControls/TextColumn/designer.js +73 -41
- package/dist/esm/columnControls/TextColumn/property.js +39 -22
- package/dist/esm/columnControls/TextColumn/runtime.js +38 -24
- package/dist/esm/columnControls/TimescopeColumn/designer.js +73 -41
- package/dist/esm/columnControls/TimescopeColumn/property.js +38 -22
- package/dist/esm/columnControls/TimescopeColumn/runtime.js +38 -24
- package/dist/esm/columnControls/TimestampColumn/designer.js +73 -41
- package/dist/esm/columnControls/TimestampColumn/property.js +38 -22
- package/dist/esm/columnControls/TimestampColumn/runtime.js +38 -24
- package/dist/esm/columnControls/VarcharColumn/designer.js +42 -28
- package/dist/esm/columnControls/VarcharColumn/property.js +47 -25
- package/dist/esm/columnControls/VarcharColumn/runtime.js +38 -24
- package/dist/esm/formControls/Address/designer.js +41 -27
- package/dist/esm/formControls/Address/property.js +44 -25
- package/dist/esm/formControls/Address/runtime.js +39 -25
- package/dist/esm/formControls/Amount/designer.js +60 -43
- package/dist/esm/formControls/Amount/property.js +70 -37
- package/dist/esm/formControls/Amount/runtime.js +39 -25
- package/dist/esm/formControls/Attachment/designer.js +43 -29
- package/dist/esm/formControls/Attachment/property.js +55 -30
- package/dist/esm/formControls/Attachment/runtime.js +39 -25
- package/dist/esm/formControls/AutoNumber/designer.js +43 -29
- package/dist/esm/formControls/AutoNumber/property.js +36 -22
- package/dist/esm/formControls/AutoNumber/runtime.js +39 -25
- package/dist/esm/formControls/Calc/designer.js +60 -43
- package/dist/esm/formControls/Calc/property.js +62 -28
- package/dist/esm/formControls/Calc/runtime.js +39 -25
- package/dist/esm/formControls/Checkbox/designer.js +43 -29
- package/dist/esm/formControls/Checkbox/property.js +66 -30
- package/dist/esm/formControls/Checkbox/runtime.js +39 -25
- package/dist/esm/formControls/DatePicker/designer.js +57 -40
- package/dist/esm/formControls/DatePicker/property.js +47 -22
- package/dist/esm/formControls/DatePicker/runtime.js +39 -25
- package/dist/esm/formControls/DateRange/designer.js +57 -40
- package/dist/esm/formControls/DateRange/property.js +51 -25
- package/dist/esm/formControls/DateRange/runtime.js +39 -25
- package/dist/esm/formControls/Department/designer.js +58 -41
- package/dist/esm/formControls/Department/property.js +67 -25
- package/dist/esm/formControls/Department/runtime.js +39 -25
- package/dist/esm/formControls/Department2/designer.js +58 -41
- package/dist/esm/formControls/Department2/property.js +86 -33
- package/dist/esm/formControls/Department2/runtime.js +39 -25
- package/dist/esm/formControls/ElectronicSignature/designer.js +43 -29
- package/dist/esm/formControls/ElectronicSignature/property.js +47 -27
- package/dist/esm/formControls/ElectronicSignature/runtime.js +39 -25
- package/dist/esm/formControls/Employee/designer.js +41 -27
- package/dist/esm/formControls/Employee/property.js +53 -25
- package/dist/esm/formControls/Employee/runtime.js +39 -25
- package/dist/esm/formControls/Employee2/designer.js +41 -27
- package/dist/esm/formControls/Employee2/property.js +70 -33
- package/dist/esm/formControls/Employee2/runtime.js +39 -25
- package/dist/esm/formControls/Image/designer.js +40 -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 +43 -29
- package/dist/esm/formControls/Input/property.js +53 -34
- package/dist/esm/formControls/Input/runtime.js +39 -25
- package/dist/esm/formControls/Number/designer.js +60 -43
- package/dist/esm/formControls/Number/property.js +79 -32
- package/dist/esm/formControls/Number/runtime.js +39 -25
- package/dist/esm/formControls/Radio/designer.js +43 -29
- package/dist/esm/formControls/Radio/property.js +57 -25
- package/dist/esm/formControls/Radio/runtime.js +39 -25
- package/dist/esm/formControls/RichText/designer.js +43 -29
- package/dist/esm/formControls/RichText/property.js +50 -34
- package/dist/esm/formControls/RichText/runtime.js +39 -25
- package/dist/esm/formControls/Score/designer.js +76 -59
- package/dist/esm/formControls/Score/property.js +50 -32
- package/dist/esm/formControls/Score/runtime.js +39 -25
- package/dist/esm/formControls/SearchDateRange/designer.js +41 -27
- package/dist/esm/formControls/SearchDateRange/property.js +50 -25
- package/dist/esm/formControls/SearchDateRange/runtime.js +39 -25
- package/dist/esm/formControls/SearchInput/designer.js +40 -26
- package/dist/esm/formControls/SearchInput/property.js +24 -24
- package/dist/esm/formControls/SearchInput/runtime.js +39 -25
- package/dist/esm/formControls/SearchNumberRange/designer.js +41 -27
- package/dist/esm/formControls/SearchNumberRange/property.js +45 -25
- package/dist/esm/formControls/SearchNumberRange/runtime.js +39 -25
- package/dist/esm/formControls/Select/designer.js +41 -27
- package/dist/esm/formControls/Select/property.js +49 -25
- package/dist/esm/formControls/Select/runtime.js +39 -25
- package/dist/esm/formControls/SelectMultiple/designer.js +41 -27
- package/dist/esm/formControls/SelectMultiple/property.js +50 -28
- package/dist/esm/formControls/SelectMultiple/runtime.js +39 -25
- package/dist/esm/formControls/SelectRelation/designer.js +43 -29
- package/dist/esm/formControls/SelectRelation/property.js +52 -27
- package/dist/esm/formControls/SelectRelation/runtime.js +39 -25
- package/dist/esm/formControls/Textarea/designer.js +43 -29
- package/dist/esm/formControls/Textarea/property.js +51 -34
- package/dist/esm/formControls/Textarea/runtime.js +39 -25
- package/dist/esm/formControls/Tree/designer.js +43 -29
- package/dist/esm/formControls/Tree/property.js +59 -33
- package/dist/esm/formControls/Tree/runtime.js +39 -25
- package/dist/esm/formControls/VueFormItem/designer.js +42 -28
- package/dist/esm/formControls/VueFormItem/property.js +45 -28
- package/dist/esm/formControls/VueFormItem/runtime.js +39 -25
- package/dist/esm/formControls/WPS/designer.js +43 -29
- package/dist/esm/formControls/WPS/property.js +58 -32
- package/dist/esm/formControls/WPS/runtime.js +39 -25
- package/dist/esm/framework.js +92 -12
- 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 +37 -22
- package/dist/esm/layoutControls/AdvancedContainer/runtime.js +24 -24
- package/dist/esm/layoutControls/CardGroup/designer.js +42 -28
- package/dist/esm/layoutControls/CardGroup/property.js +47 -27
- package/dist/esm/layoutControls/CardGroup/runtime.js +38 -24
- package/dist/esm/layoutControls/Col/designer.js +41 -27
- package/dist/esm/layoutControls/Col/property.js +37 -22
- package/dist/esm/layoutControls/Col/runtime.js +38 -24
- package/dist/esm/layoutControls/DataView/designer.js +39 -25
- package/dist/esm/layoutControls/DataView/property.js +45 -25
- package/dist/esm/layoutControls/DataView/runtime.js +38 -24
- package/dist/esm/layoutControls/Grid/designer.js +39 -26
- package/dist/esm/layoutControls/Grid/runtime.js +24 -24
- package/dist/esm/layoutControls/GridRow/designer.js +41 -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 +44 -30
- package/dist/esm/layoutControls/GridTableColumn/property.js +48 -22
- package/dist/esm/layoutControls/GridTableColumn/runtime.js +37 -23
- package/dist/esm/layoutControls/ListView/designer.js +44 -30
- package/dist/esm/layoutControls/ListView/property.js +62 -35
- package/dist/esm/layoutControls/ListView/runtime.js +38 -24
- 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 +40 -26
- 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 +39 -22
- 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 +42 -28
- package/dist/esm/layoutControls/Row/property.js +37 -22
- package/dist/esm/layoutControls/Row/runtime.js +38 -24
- package/dist/esm/layoutControls/SubTableColumn/designer.js +44 -30
- package/dist/esm/layoutControls/SubTableColumn/property.js +66 -31
- package/dist/esm/layoutControls/SubTableColumn/runtime.js +37 -23
- package/dist/esm/layoutControls/SubTableRow/designer.js +44 -30
- package/dist/esm/layoutControls/SubTableRow/property.js +22 -22
- package/dist/esm/layoutControls/SubTableRow/runtime.js +38 -24
- package/dist/esm/layoutControls/Tab/designer.js +44 -30
- package/dist/esm/layoutControls/Tab/property.js +22 -22
- package/dist/esm/layoutControls/Tab/runtime.js +38 -24
- package/dist/esm/layoutControls/TabPane/designer.js +42 -28
- package/dist/esm/layoutControls/TabPane/property.js +41 -27
- package/dist/esm/layoutControls/TabPane/runtime.js +38 -24
- package/dist/esm/layoutControls/Toolbox/designer.js +40 -26
- 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 +89 -81
- package/dist/esm/listControls/GridTable/property.js +40 -22
- package/dist/esm/listControls/GridTable/runtime.js +59 -36
- package/dist/esm/listControls/SubTable/designer.js +56 -39
- package/dist/esm/listControls/SubTable/property.js +117 -38
- package/dist/esm/listControls/SubTable/runtime.js +53 -33
- package/dist/esm/searchControls/SimpleSearch/designer.js +39 -25
- package/dist/esm/searchControls/SimpleSearch/property.js +45 -25
- package/dist/esm/searchControls/SimpleSearch/runtime.js +40 -25
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Attachment/property.d.ts +1 -0
- package/package.json +2 -2
|
@@ -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,16 +18,16 @@ 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
|
|
27
|
-
|
|
26
|
+
function _get_prototype_of(o) {
|
|
27
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
28
28
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
29
29
|
};
|
|
30
|
-
return
|
|
30
|
+
return _get_prototype_of(o);
|
|
31
31
|
}
|
|
32
32
|
function _inherits(subClass, superClass) {
|
|
33
33
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -40,26 +40,26 @@ function _inherits(subClass, superClass) {
|
|
|
40
40
|
configurable: true
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
if (superClass)
|
|
43
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
if (call && (
|
|
45
|
+
function _possible_constructor_return(self, call) {
|
|
46
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
47
47
|
return call;
|
|
48
48
|
}
|
|
49
|
-
return
|
|
49
|
+
return _assert_this_initialized(self);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
|
|
51
|
+
function _set_prototype_of(o, p) {
|
|
52
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
53
53
|
o.__proto__ = p;
|
|
54
54
|
return o;
|
|
55
55
|
};
|
|
56
|
-
return
|
|
56
|
+
return _set_prototype_of(o, p);
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
function _type_of(obj) {
|
|
59
59
|
"@swc/helpers - typeof";
|
|
60
60
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
61
|
-
}
|
|
62
|
-
function
|
|
61
|
+
}
|
|
62
|
+
function _is_native_reflect_construct() {
|
|
63
63
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
64
64
|
if (Reflect.construct.sham) return false;
|
|
65
65
|
if (typeof Proxy === "function") return true;
|
|
@@ -70,17 +70,17 @@ function _isNativeReflectConstruct() {
|
|
|
70
70
|
return false;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
var hasNativeReflectConstruct =
|
|
73
|
+
function _create_super(Derived) {
|
|
74
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
75
75
|
return function _createSuperInternal() {
|
|
76
|
-
var Super =
|
|
76
|
+
var Super = _get_prototype_of(Derived), result;
|
|
77
77
|
if (hasNativeReflectConstruct) {
|
|
78
|
-
var NewTarget =
|
|
78
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
79
79
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
80
80
|
} else {
|
|
81
81
|
result = Super.apply(this, arguments);
|
|
82
82
|
}
|
|
83
|
-
return
|
|
83
|
+
return _possible_constructor_return(this, result);
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
import { ColControlProperty, RuntimeColControl } from "../Col";
|
|
@@ -88,9 +88,9 @@ import { RuntimeLayoutControl } from "@byteluck-fe/model-driven-core";
|
|
|
88
88
|
var ToolboxControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
|
|
89
89
|
"use strict";
|
|
90
90
|
_inherits(ToolboxControl, RuntimeLayoutControl);
|
|
91
|
-
var _super =
|
|
91
|
+
var _super = _create_super(ToolboxControl);
|
|
92
92
|
function ToolboxControl(props) {
|
|
93
|
-
|
|
93
|
+
_class_call_check(this, ToolboxControl);
|
|
94
94
|
var _this;
|
|
95
95
|
_this = _super.call(this, props);
|
|
96
96
|
_this.children = (props === null || props === void 0 ? void 0 : props.children) || [
|
|
@@ -107,7 +107,7 @@ var ToolboxControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
|
|
|
107
107
|
];
|
|
108
108
|
return _this;
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
_create_class(ToolboxControl, null, [
|
|
111
111
|
{
|
|
112
112
|
key: "controlType",
|
|
113
113
|
get: function get() {
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
}
|
|
@@ -18,7 +18,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
18
18
|
Promise.resolve(value).then(_next, _throw);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function _async_to_generator(fn) {
|
|
22
22
|
return function() {
|
|
23
23
|
var self = this, args = arguments;
|
|
24
24
|
return new Promise(function(resolve, reject) {
|
|
@@ -33,7 +33,7 @@ function _asyncToGenerator(fn) {
|
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function _class_call_check(instance, Constructor) {
|
|
37
37
|
if (!(instance instanceof Constructor)) {
|
|
38
38
|
throw new TypeError("Cannot call a class as a function");
|
|
39
39
|
}
|
|
@@ -47,12 +47,12 @@ function _defineProperties(target, props) {
|
|
|
47
47
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
51
51
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
52
52
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
53
53
|
return Constructor;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function _define_property(obj, key, value) {
|
|
56
56
|
if (key in obj) {
|
|
57
57
|
Object.defineProperty(obj, key, {
|
|
58
58
|
value: value,
|
|
@@ -69,23 +69,23 @@ function _get(target, property, receiver) {
|
|
|
69
69
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
70
70
|
_get = Reflect.get;
|
|
71
71
|
} else {
|
|
72
|
-
_get = function
|
|
73
|
-
var base =
|
|
72
|
+
_get = function get(target, property, receiver) {
|
|
73
|
+
var base = _super_prop_base(target, property);
|
|
74
74
|
if (!base) return;
|
|
75
75
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
76
76
|
if (desc.get) {
|
|
77
|
-
return desc.get.call(receiver);
|
|
77
|
+
return desc.get.call(receiver || target);
|
|
78
78
|
}
|
|
79
79
|
return desc.value;
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
return _get(target, property, receiver || target);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
|
|
84
|
+
function _get_prototype_of(o) {
|
|
85
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
86
86
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
87
87
|
};
|
|
88
|
-
return
|
|
88
|
+
return _get_prototype_of(o);
|
|
89
89
|
}
|
|
90
90
|
function _inherits(subClass, superClass) {
|
|
91
91
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -98,9 +98,9 @@ function _inherits(subClass, superClass) {
|
|
|
98
98
|
configurable: true
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
|
-
if (superClass)
|
|
101
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function _object_spread(target) {
|
|
104
104
|
for(var i = 1; i < arguments.length; i++){
|
|
105
105
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
106
106
|
var ownKeys = Object.keys(source);
|
|
@@ -110,7 +110,7 @@ function _objectSpread(target) {
|
|
|
110
110
|
}));
|
|
111
111
|
}
|
|
112
112
|
ownKeys.forEach(function(key) {
|
|
113
|
-
|
|
113
|
+
_define_property(target, key, source[key]);
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
return target;
|
|
@@ -128,7 +128,7 @@ function ownKeys(object, enumerableOnly) {
|
|
|
128
128
|
}
|
|
129
129
|
return keys;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function _object_spread_props(target, source) {
|
|
132
132
|
source = source != null ? source : {};
|
|
133
133
|
if (Object.getOwnPropertyDescriptors) {
|
|
134
134
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
@@ -139,31 +139,31 @@ function _objectSpreadProps(target, source) {
|
|
|
139
139
|
}
|
|
140
140
|
return target;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
if (call && (
|
|
142
|
+
function _possible_constructor_return(self, call) {
|
|
143
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
144
144
|
return call;
|
|
145
145
|
}
|
|
146
|
-
return
|
|
146
|
+
return _assert_this_initialized(self);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function _set_prototype_of(o, p) {
|
|
149
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
150
150
|
o.__proto__ = p;
|
|
151
151
|
return o;
|
|
152
152
|
};
|
|
153
|
-
return
|
|
153
|
+
return _set_prototype_of(o, p);
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function _super_prop_base(object, property) {
|
|
156
156
|
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
157
|
-
object =
|
|
157
|
+
object = _get_prototype_of(object);
|
|
158
158
|
if (object === null) break;
|
|
159
159
|
}
|
|
160
160
|
return object;
|
|
161
161
|
}
|
|
162
|
-
|
|
162
|
+
function _type_of(obj) {
|
|
163
163
|
"@swc/helpers - typeof";
|
|
164
164
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
165
|
-
}
|
|
166
|
-
function
|
|
165
|
+
}
|
|
166
|
+
function _is_native_reflect_construct() {
|
|
167
167
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
168
168
|
if (Reflect.construct.sham) return false;
|
|
169
169
|
if (typeof Proxy === "function") return true;
|
|
@@ -174,20 +174,20 @@ function _isNativeReflectConstruct() {
|
|
|
174
174
|
return false;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
var hasNativeReflectConstruct =
|
|
177
|
+
function _create_super(Derived) {
|
|
178
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
179
179
|
return function _createSuperInternal() {
|
|
180
|
-
var Super =
|
|
180
|
+
var Super = _get_prototype_of(Derived), result;
|
|
181
181
|
if (hasNativeReflectConstruct) {
|
|
182
|
-
var NewTarget =
|
|
182
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
183
183
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
184
184
|
} else {
|
|
185
185
|
result = Super.apply(this, arguments);
|
|
186
186
|
}
|
|
187
|
-
return
|
|
187
|
+
return _possible_constructor_return(this, result);
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
|
|
190
|
+
function _ts_generator(thisArg, body) {
|
|
191
191
|
var f, y, t, g, _ = {
|
|
192
192
|
label: 0,
|
|
193
193
|
sent: function() {
|
|
@@ -281,7 +281,7 @@ var __generator = this && this.__generator || function(thisArg, body) {
|
|
|
281
281
|
done: true
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
}
|
|
284
|
+
}
|
|
285
285
|
import { GridTableControlProperty } from "./property";
|
|
286
286
|
import { DesignerListControl, defineControlArrayToProperty } from "@byteluck-fe/model-driven-core";
|
|
287
287
|
import { DesignerOrderColumnControl } from "../../columnControls/OrderColumn";
|
|
@@ -289,13 +289,15 @@ import { DesignerOperationColumnControl } from "../../columnControls/OperationCo
|
|
|
289
289
|
var GridTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
290
290
|
"use strict";
|
|
291
291
|
_inherits(GridTableControl, DesignerListControl);
|
|
292
|
-
var _super =
|
|
292
|
+
var _super = _create_super(GridTableControl);
|
|
293
293
|
function GridTableControl(props) {
|
|
294
|
-
|
|
294
|
+
_class_call_check(this, GridTableControl);
|
|
295
295
|
var _this;
|
|
296
296
|
_this = _super.call(this, props);
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
298
|
+
_define_property(_assert_this_initialized(_this), "children", void 0);
|
|
299
|
+
_this.props = new GridTableControlProperty(_assert_this_initialized(_this), props === null || props === void 0 ? void 0 : props.props);
|
|
300
|
+
defineControlArrayToProperty(_assert_this_initialized(_this), "children", props === null || props === void 0 ? void 0 : props.children);
|
|
299
301
|
if ((props === null || props === void 0 ? void 0 : props.props.headers) === undefined) {
|
|
300
302
|
_this.props.headers = [
|
|
301
303
|
new DesignerOrderColumnControl(),
|
|
@@ -304,48 +306,54 @@ var GridTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
|
304
306
|
}
|
|
305
307
|
return _this;
|
|
306
308
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
309
|
+
_create_class(GridTableControl, [
|
|
310
|
+
{
|
|
311
|
+
key: "toSchema",
|
|
312
|
+
value: function toSchema() {
|
|
313
|
+
var schema = _get(_get_prototype_of(GridTableControl.prototype), "toSchema", this).call(this);
|
|
314
|
+
var children = this.children.map(function(item) {
|
|
315
|
+
return item.toSchema();
|
|
316
|
+
});
|
|
317
|
+
return _object_spread_props(_object_spread({}, schema), {
|
|
318
|
+
children: children
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
key: "validate",
|
|
324
|
+
value: function validate(messages, ignore) {
|
|
325
|
+
var _this = this;
|
|
326
|
+
var _this1 = this, _superprop_get_validate = function() {
|
|
327
|
+
return _get(_get_prototype_of(GridTableControl.prototype), "validate", _this);
|
|
328
|
+
};
|
|
329
|
+
return _async_to_generator(function() {
|
|
330
|
+
return _ts_generator(this, function(_state) {
|
|
331
|
+
switch(_state.label){
|
|
332
|
+
case 0:
|
|
333
|
+
return [
|
|
334
|
+
4,
|
|
335
|
+
_superprop_get_validate().call(_this1, messages, ignore)
|
|
336
|
+
];
|
|
337
|
+
case 1:
|
|
338
|
+
_state.sent();
|
|
339
|
+
return [
|
|
340
|
+
4,
|
|
341
|
+
Promise.all(_this1.children.map(function(child) {
|
|
342
|
+
return child.validate(messages, ignore);
|
|
343
|
+
}))
|
|
344
|
+
];
|
|
345
|
+
case 2:
|
|
346
|
+
_state.sent();
|
|
347
|
+
return [
|
|
348
|
+
2,
|
|
349
|
+
true
|
|
350
|
+
];
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
})();
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
], [
|
|
349
357
|
{
|
|
350
358
|
key: "controlName",
|
|
351
359
|
get: function get() {
|
|
@@ -372,11 +380,11 @@ var GridTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
|
372
380
|
// 'on_list_mounted',
|
|
373
381
|
// 'on_list_splice',
|
|
374
382
|
// ]
|
|
375
|
-
GridTableControl
|
|
383
|
+
_define_property(GridTableControl, "setting", [
|
|
376
384
|
{
|
|
377
385
|
key: "list-fixed-header",
|
|
378
386
|
visible: true
|
|
379
387
|
}
|
|
380
|
-
];
|
|
388
|
+
]);
|
|
381
389
|
export default GridTableControl;
|
|
382
390
|
export { GridTableControl as DesignerGridTableControl };
|
|
@@ -5,22 +5,35 @@
|
|
|
5
5
|
* @LastEditTime: 2022-07-06 23:58:56
|
|
6
6
|
* @FilePath: /model-driven/packages/controls/src/listControls/GridTable/property.ts
|
|
7
7
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
-
*/ function
|
|
8
|
+
*/ function _assert_this_initialized(self) {
|
|
9
9
|
if (self === void 0) {
|
|
10
10
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
11
11
|
}
|
|
12
12
|
return self;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function _class_call_check(instance, Constructor) {
|
|
15
15
|
if (!(instance instanceof Constructor)) {
|
|
16
16
|
throw new TypeError("Cannot call a class as a function");
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
19
|
+
function _define_property(obj, key, value) {
|
|
20
|
+
if (key in obj) {
|
|
21
|
+
Object.defineProperty(obj, key, {
|
|
22
|
+
value: value,
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true
|
|
26
|
+
});
|
|
27
|
+
} else {
|
|
28
|
+
obj[key] = value;
|
|
29
|
+
}
|
|
30
|
+
return obj;
|
|
31
|
+
}
|
|
32
|
+
function _get_prototype_of(o) {
|
|
33
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
21
34
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
22
35
|
};
|
|
23
|
-
return
|
|
36
|
+
return _get_prototype_of(o);
|
|
24
37
|
}
|
|
25
38
|
function _inherits(subClass, superClass) {
|
|
26
39
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -33,26 +46,26 @@ function _inherits(subClass, superClass) {
|
|
|
33
46
|
configurable: true
|
|
34
47
|
}
|
|
35
48
|
});
|
|
36
|
-
if (superClass)
|
|
49
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
37
50
|
}
|
|
38
|
-
function
|
|
39
|
-
if (call && (
|
|
51
|
+
function _possible_constructor_return(self, call) {
|
|
52
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
40
53
|
return call;
|
|
41
54
|
}
|
|
42
|
-
return
|
|
55
|
+
return _assert_this_initialized(self);
|
|
43
56
|
}
|
|
44
|
-
function
|
|
45
|
-
|
|
57
|
+
function _set_prototype_of(o, p) {
|
|
58
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
46
59
|
o.__proto__ = p;
|
|
47
60
|
return o;
|
|
48
61
|
};
|
|
49
|
-
return
|
|
62
|
+
return _set_prototype_of(o, p);
|
|
50
63
|
}
|
|
51
|
-
|
|
64
|
+
function _type_of(obj) {
|
|
52
65
|
"@swc/helpers - typeof";
|
|
53
66
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
54
|
-
}
|
|
55
|
-
function
|
|
67
|
+
}
|
|
68
|
+
function _is_native_reflect_construct() {
|
|
56
69
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
57
70
|
if (Reflect.construct.sham) return false;
|
|
58
71
|
if (typeof Proxy === "function") return true;
|
|
@@ -63,28 +76,33 @@ function _isNativeReflectConstruct() {
|
|
|
63
76
|
return false;
|
|
64
77
|
}
|
|
65
78
|
}
|
|
66
|
-
function
|
|
67
|
-
var hasNativeReflectConstruct =
|
|
79
|
+
function _create_super(Derived) {
|
|
80
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
68
81
|
return function _createSuperInternal() {
|
|
69
|
-
var Super =
|
|
82
|
+
var Super = _get_prototype_of(Derived), result;
|
|
70
83
|
if (hasNativeReflectConstruct) {
|
|
71
|
-
var NewTarget =
|
|
84
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
72
85
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
73
86
|
} else {
|
|
74
87
|
result = Super.apply(this, arguments);
|
|
75
88
|
}
|
|
76
|
-
return
|
|
89
|
+
return _possible_constructor_return(this, result);
|
|
77
90
|
};
|
|
78
91
|
}
|
|
79
92
|
import { ListControlProperty } from "@byteluck-fe/model-driven-core";
|
|
80
93
|
var GridTableControlProperty = /*#__PURE__*/ function(ListControlProperty) {
|
|
81
94
|
"use strict";
|
|
82
95
|
_inherits(GridTableControlProperty, ListControlProperty);
|
|
83
|
-
var _super =
|
|
96
|
+
var _super = _create_super(GridTableControlProperty);
|
|
84
97
|
function GridTableControlProperty(parent, props) {
|
|
85
|
-
|
|
98
|
+
_class_call_check(this, GridTableControlProperty);
|
|
86
99
|
var _this;
|
|
87
100
|
_this = _super.call(this, parent, props);
|
|
101
|
+
_define_property(_assert_this_initialized(_this), "isFixedHeader", void 0);
|
|
102
|
+
_define_property(_assert_this_initialized(_this), "selectionType", void 0);
|
|
103
|
+
_define_property(_assert_this_initialized(_this), "isShowToolbar", void 0);
|
|
104
|
+
_define_property(_assert_this_initialized(_this), "isShowSelection", void 0);
|
|
105
|
+
_define_property(_assert_this_initialized(_this), "isShowCustomColumns", void 0);
|
|
88
106
|
var _props_isFixedHeader;
|
|
89
107
|
_this.isFixedHeader = (_props_isFixedHeader = props === null || props === void 0 ? void 0 : props.isFixedHeader) !== null && _props_isFixedHeader !== void 0 ? _props_isFixedHeader : false;
|
|
90
108
|
_this.selectionType = props === null || props === void 0 ? void 0 : props.selectionType;
|