@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,35 +1,62 @@
|
|
|
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 _defineProperties(target, props) {
|
|
13
|
+
for(var i = 0; i < props.length; i++){
|
|
14
|
+
var descriptor = props[i];
|
|
15
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
16
|
+
descriptor.configurable = true;
|
|
17
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
18
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
22
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
23
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
24
|
+
return Constructor;
|
|
25
|
+
}
|
|
26
|
+
function _define_property(obj, key, value) {
|
|
27
|
+
if (key in obj) {
|
|
28
|
+
Object.defineProperty(obj, key, {
|
|
29
|
+
value: value,
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true,
|
|
32
|
+
writable: true
|
|
33
|
+
});
|
|
34
|
+
} else {
|
|
35
|
+
obj[key] = value;
|
|
36
|
+
}
|
|
37
|
+
return obj;
|
|
38
|
+
}
|
|
12
39
|
function _get(target, property, receiver) {
|
|
13
40
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
14
41
|
_get = Reflect.get;
|
|
15
42
|
} else {
|
|
16
|
-
_get = function
|
|
17
|
-
var base =
|
|
43
|
+
_get = function get(target, property, receiver) {
|
|
44
|
+
var base = _super_prop_base(target, property);
|
|
18
45
|
if (!base) return;
|
|
19
46
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
20
47
|
if (desc.get) {
|
|
21
|
-
return desc.get.call(receiver);
|
|
48
|
+
return desc.get.call(receiver || target);
|
|
22
49
|
}
|
|
23
50
|
return desc.value;
|
|
24
51
|
};
|
|
25
52
|
}
|
|
26
53
|
return _get(target, property, receiver || target);
|
|
27
54
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
55
|
+
function _get_prototype_of(o) {
|
|
56
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
30
57
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
31
58
|
};
|
|
32
|
-
return
|
|
59
|
+
return _get_prototype_of(o);
|
|
33
60
|
}
|
|
34
61
|
function _inherits(subClass, superClass) {
|
|
35
62
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -42,33 +69,33 @@ function _inherits(subClass, superClass) {
|
|
|
42
69
|
configurable: true
|
|
43
70
|
}
|
|
44
71
|
});
|
|
45
|
-
if (superClass)
|
|
72
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
46
73
|
}
|
|
47
|
-
function
|
|
48
|
-
if (call && (
|
|
74
|
+
function _possible_constructor_return(self, call) {
|
|
75
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
49
76
|
return call;
|
|
50
77
|
}
|
|
51
|
-
return
|
|
78
|
+
return _assert_this_initialized(self);
|
|
52
79
|
}
|
|
53
|
-
function
|
|
54
|
-
|
|
80
|
+
function _set_prototype_of(o, p) {
|
|
81
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
55
82
|
o.__proto__ = p;
|
|
56
83
|
return o;
|
|
57
84
|
};
|
|
58
|
-
return
|
|
85
|
+
return _set_prototype_of(o, p);
|
|
59
86
|
}
|
|
60
|
-
function
|
|
87
|
+
function _super_prop_base(object, property) {
|
|
61
88
|
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
62
|
-
object =
|
|
89
|
+
object = _get_prototype_of(object);
|
|
63
90
|
if (object === null) break;
|
|
64
91
|
}
|
|
65
92
|
return object;
|
|
66
93
|
}
|
|
67
|
-
|
|
94
|
+
function _type_of(obj) {
|
|
68
95
|
"@swc/helpers - typeof";
|
|
69
96
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
70
|
-
}
|
|
71
|
-
function
|
|
97
|
+
}
|
|
98
|
+
function _is_native_reflect_construct() {
|
|
72
99
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
73
100
|
if (Reflect.construct.sham) return false;
|
|
74
101
|
if (typeof Proxy === "function") return true;
|
|
@@ -79,17 +106,17 @@ function _isNativeReflectConstruct() {
|
|
|
79
106
|
return false;
|
|
80
107
|
}
|
|
81
108
|
}
|
|
82
|
-
function
|
|
83
|
-
var hasNativeReflectConstruct =
|
|
109
|
+
function _create_super(Derived) {
|
|
110
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
84
111
|
return function _createSuperInternal() {
|
|
85
|
-
var Super =
|
|
112
|
+
var Super = _get_prototype_of(Derived), result;
|
|
86
113
|
if (hasNativeReflectConstruct) {
|
|
87
|
-
var NewTarget =
|
|
114
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
88
115
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
89
116
|
} else {
|
|
90
117
|
result = Super.apply(this, arguments);
|
|
91
118
|
}
|
|
92
|
-
return
|
|
119
|
+
return _possible_constructor_return(this, result);
|
|
93
120
|
};
|
|
94
121
|
}
|
|
95
122
|
import { DesignerColumnControl, COMMON_SETTING_TYPE } from "@byteluck-fe/model-driven-core";
|
|
@@ -98,30 +125,35 @@ import { FieldTypes } from "@byteluck-fe/model-driven-shared";
|
|
|
98
125
|
var TimescopeColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
99
126
|
"use strict";
|
|
100
127
|
_inherits(TimescopeColumnControl, DesignerColumnControl);
|
|
101
|
-
var _super =
|
|
128
|
+
var _super = _create_super(TimescopeColumnControl);
|
|
102
129
|
function TimescopeColumnControl(props) {
|
|
103
|
-
|
|
130
|
+
_class_call_check(this, TimescopeColumnControl);
|
|
104
131
|
var _this;
|
|
105
132
|
_this = _super.call(this, props);
|
|
133
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
106
134
|
_this.props = new TimescopeColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
107
135
|
return _this;
|
|
108
136
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
137
|
+
_create_class(TimescopeColumnControl, [
|
|
138
|
+
{
|
|
139
|
+
key: "toDataBindModel",
|
|
140
|
+
value: function toDataBindModel(parentId) {
|
|
141
|
+
var dataBindModel = _get(_get_prototype_of(TimescopeColumnControl.prototype), "toDataBindModel", this).call(this, parentId);
|
|
142
|
+
if (dataBindModel) {
|
|
143
|
+
var dateType = this.props.dateType;
|
|
144
|
+
dataBindModel.props.dateType = dateType;
|
|
145
|
+
}
|
|
146
|
+
return dataBindModel;
|
|
147
|
+
}
|
|
115
148
|
}
|
|
116
|
-
|
|
117
|
-
};
|
|
149
|
+
]);
|
|
118
150
|
return TimescopeColumnControl;
|
|
119
151
|
}(DesignerColumnControl);
|
|
120
|
-
TimescopeColumnControl
|
|
121
|
-
TimescopeColumnControl
|
|
122
|
-
TimescopeColumnControl
|
|
123
|
-
TimescopeColumnControl
|
|
124
|
-
TimescopeColumnControl
|
|
152
|
+
_define_property(TimescopeColumnControl, "controlType", "timescope-column");
|
|
153
|
+
_define_property(TimescopeColumnControl, "controlName", "日期区间");
|
|
154
|
+
_define_property(TimescopeColumnControl, "controlIcon", "timescope-column");
|
|
155
|
+
_define_property(TimescopeColumnControl, "controlFieldType", FieldTypes.TIMESCOPE);
|
|
156
|
+
_define_property(TimescopeColumnControl, "setting", [
|
|
125
157
|
{
|
|
126
158
|
key: "column-data-bind",
|
|
127
159
|
visible: true
|
|
@@ -149,6 +181,6 @@ TimescopeColumnControl.setting = [
|
|
|
149
181
|
key: "column-sort",
|
|
150
182
|
visible: true
|
|
151
183
|
}
|
|
152
|
-
];
|
|
184
|
+
]);
|
|
153
185
|
export default TimescopeColumnControl;
|
|
154
186
|
export { TimescopeColumnControl as DesignerTimescopeColumnControl };
|
|
@@ -1,19 +1,32 @@
|
|
|
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
|
|
13
|
-
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
|
+
if (key in obj) {
|
|
14
|
+
Object.defineProperty(obj, key, {
|
|
15
|
+
value: value,
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
obj[key] = value;
|
|
22
|
+
}
|
|
23
|
+
return obj;
|
|
24
|
+
}
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
14
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
15
28
|
};
|
|
16
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
17
30
|
}
|
|
18
31
|
function _inherits(subClass, superClass) {
|
|
19
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -26,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
26
39
|
configurable: true
|
|
27
40
|
}
|
|
28
41
|
});
|
|
29
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
30
43
|
}
|
|
31
|
-
function
|
|
32
|
-
if (call && (
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
33
46
|
return call;
|
|
34
47
|
}
|
|
35
|
-
return
|
|
48
|
+
return _assert_this_initialized(self);
|
|
36
49
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
39
52
|
o.__proto__ = p;
|
|
40
53
|
return o;
|
|
41
54
|
};
|
|
42
|
-
return
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
43
56
|
}
|
|
44
|
-
|
|
57
|
+
function _type_of(obj) {
|
|
45
58
|
"@swc/helpers - typeof";
|
|
46
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
47
|
-
}
|
|
48
|
-
function
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
49
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
50
63
|
if (Reflect.construct.sham) return false;
|
|
51
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -56,17 +69,17 @@ function _isNativeReflectConstruct() {
|
|
|
56
69
|
return false;
|
|
57
70
|
}
|
|
58
71
|
}
|
|
59
|
-
function
|
|
60
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
61
74
|
return function _createSuperInternal() {
|
|
62
|
-
var Super =
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
63
76
|
if (hasNativeReflectConstruct) {
|
|
64
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
65
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
66
79
|
} else {
|
|
67
80
|
result = Super.apply(this, arguments);
|
|
68
81
|
}
|
|
69
|
-
return
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
70
83
|
};
|
|
71
84
|
}
|
|
72
85
|
import { ColumnControlProperty } from "@byteluck-fe/model-driven-core";
|
|
@@ -75,11 +88,14 @@ import { DesignerTimescopeColumnControl } from "./designer";
|
|
|
75
88
|
var TimescopeColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
76
89
|
"use strict";
|
|
77
90
|
_inherits(TimescopeColumnControlProperty, ColumnControlProperty);
|
|
78
|
-
var _super =
|
|
91
|
+
var _super = _create_super(TimescopeColumnControlProperty);
|
|
79
92
|
function TimescopeColumnControlProperty(props) {
|
|
80
|
-
|
|
93
|
+
_class_call_check(this, TimescopeColumnControlProperty);
|
|
81
94
|
var _this;
|
|
82
95
|
_this = _super.call(this, props);
|
|
96
|
+
/**
|
|
97
|
+
* 日期展示格式
|
|
98
|
+
* */ _define_property(_assert_this_initialized(_this), "dateType", void 0);
|
|
83
99
|
var _props_dateType;
|
|
84
100
|
_this.dateType = (_props_dateType = props === null || props === void 0 ? void 0 : props.dateType) !== null && _props_dateType !== void 0 ? _props_dateType : DateType.DATE;
|
|
85
101
|
var _props_caption;
|
|
@@ -1,19 +1,32 @@
|
|
|
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
|
|
13
|
-
|
|
12
|
+
function _define_property(obj, key, value) {
|
|
13
|
+
if (key in obj) {
|
|
14
|
+
Object.defineProperty(obj, key, {
|
|
15
|
+
value: value,
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
obj[key] = value;
|
|
22
|
+
}
|
|
23
|
+
return obj;
|
|
24
|
+
}
|
|
25
|
+
function _get_prototype_of(o) {
|
|
26
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
14
27
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
15
28
|
};
|
|
16
|
-
return
|
|
29
|
+
return _get_prototype_of(o);
|
|
17
30
|
}
|
|
18
31
|
function _inherits(subClass, superClass) {
|
|
19
32
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -26,26 +39,26 @@ function _inherits(subClass, superClass) {
|
|
|
26
39
|
configurable: true
|
|
27
40
|
}
|
|
28
41
|
});
|
|
29
|
-
if (superClass)
|
|
42
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
30
43
|
}
|
|
31
|
-
function
|
|
32
|
-
if (call && (
|
|
44
|
+
function _possible_constructor_return(self, call) {
|
|
45
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
33
46
|
return call;
|
|
34
47
|
}
|
|
35
|
-
return
|
|
48
|
+
return _assert_this_initialized(self);
|
|
36
49
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
50
|
+
function _set_prototype_of(o, p) {
|
|
51
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
39
52
|
o.__proto__ = p;
|
|
40
53
|
return o;
|
|
41
54
|
};
|
|
42
|
-
return
|
|
55
|
+
return _set_prototype_of(o, p);
|
|
43
56
|
}
|
|
44
|
-
|
|
57
|
+
function _type_of(obj) {
|
|
45
58
|
"@swc/helpers - typeof";
|
|
46
59
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
47
|
-
}
|
|
48
|
-
function
|
|
60
|
+
}
|
|
61
|
+
function _is_native_reflect_construct() {
|
|
49
62
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
50
63
|
if (Reflect.construct.sham) return false;
|
|
51
64
|
if (typeof Proxy === "function") return true;
|
|
@@ -56,17 +69,17 @@ function _isNativeReflectConstruct() {
|
|
|
56
69
|
return false;
|
|
57
70
|
}
|
|
58
71
|
}
|
|
59
|
-
function
|
|
60
|
-
var hasNativeReflectConstruct =
|
|
72
|
+
function _create_super(Derived) {
|
|
73
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
61
74
|
return function _createSuperInternal() {
|
|
62
|
-
var Super =
|
|
75
|
+
var Super = _get_prototype_of(Derived), result;
|
|
63
76
|
if (hasNativeReflectConstruct) {
|
|
64
|
-
var NewTarget =
|
|
77
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
65
78
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
66
79
|
} else {
|
|
67
80
|
result = Super.apply(this, arguments);
|
|
68
81
|
}
|
|
69
|
-
return
|
|
82
|
+
return _possible_constructor_return(this, result);
|
|
70
83
|
};
|
|
71
84
|
}
|
|
72
85
|
import { RuntimeColumnControl } from "@byteluck-fe/model-driven-core";
|
|
@@ -75,17 +88,18 @@ import { FieldTypes } from "@byteluck-fe/model-driven-shared";
|
|
|
75
88
|
var TimescopeColumnControl = /*#__PURE__*/ function(RuntimeColumnControl) {
|
|
76
89
|
"use strict";
|
|
77
90
|
_inherits(TimescopeColumnControl, RuntimeColumnControl);
|
|
78
|
-
var _super =
|
|
91
|
+
var _super = _create_super(TimescopeColumnControl);
|
|
79
92
|
function TimescopeColumnControl(props) {
|
|
80
|
-
|
|
93
|
+
_class_call_check(this, TimescopeColumnControl);
|
|
81
94
|
var _this;
|
|
82
95
|
_this = _super.call(this, props);
|
|
96
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
83
97
|
_this.props = new TimescopeColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
84
98
|
return _this;
|
|
85
99
|
}
|
|
86
100
|
return TimescopeColumnControl;
|
|
87
101
|
}(RuntimeColumnControl);
|
|
88
|
-
TimescopeColumnControl
|
|
89
|
-
TimescopeColumnControl
|
|
102
|
+
_define_property(TimescopeColumnControl, "controlType", "timescope-column");
|
|
103
|
+
_define_property(TimescopeColumnControl, "controlFieldType", FieldTypes.TIMESCOPE);
|
|
90
104
|
export default TimescopeColumnControl;
|
|
91
105
|
export { TimescopeColumnControl as RuntimeTimescopeColumnControl };
|
|
@@ -1,35 +1,62 @@
|
|
|
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 _defineProperties(target, props) {
|
|
13
|
+
for(var i = 0; i < props.length; i++){
|
|
14
|
+
var descriptor = props[i];
|
|
15
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
16
|
+
descriptor.configurable = true;
|
|
17
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
18
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
22
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
23
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
24
|
+
return Constructor;
|
|
25
|
+
}
|
|
26
|
+
function _define_property(obj, key, value) {
|
|
27
|
+
if (key in obj) {
|
|
28
|
+
Object.defineProperty(obj, key, {
|
|
29
|
+
value: value,
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true,
|
|
32
|
+
writable: true
|
|
33
|
+
});
|
|
34
|
+
} else {
|
|
35
|
+
obj[key] = value;
|
|
36
|
+
}
|
|
37
|
+
return obj;
|
|
38
|
+
}
|
|
12
39
|
function _get(target, property, receiver) {
|
|
13
40
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
14
41
|
_get = Reflect.get;
|
|
15
42
|
} else {
|
|
16
|
-
_get = function
|
|
17
|
-
var base =
|
|
43
|
+
_get = function get(target, property, receiver) {
|
|
44
|
+
var base = _super_prop_base(target, property);
|
|
18
45
|
if (!base) return;
|
|
19
46
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
20
47
|
if (desc.get) {
|
|
21
|
-
return desc.get.call(receiver);
|
|
48
|
+
return desc.get.call(receiver || target);
|
|
22
49
|
}
|
|
23
50
|
return desc.value;
|
|
24
51
|
};
|
|
25
52
|
}
|
|
26
53
|
return _get(target, property, receiver || target);
|
|
27
54
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
55
|
+
function _get_prototype_of(o) {
|
|
56
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
30
57
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
31
58
|
};
|
|
32
|
-
return
|
|
59
|
+
return _get_prototype_of(o);
|
|
33
60
|
}
|
|
34
61
|
function _inherits(subClass, superClass) {
|
|
35
62
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -42,33 +69,33 @@ function _inherits(subClass, superClass) {
|
|
|
42
69
|
configurable: true
|
|
43
70
|
}
|
|
44
71
|
});
|
|
45
|
-
if (superClass)
|
|
72
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
46
73
|
}
|
|
47
|
-
function
|
|
48
|
-
if (call && (
|
|
74
|
+
function _possible_constructor_return(self, call) {
|
|
75
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
49
76
|
return call;
|
|
50
77
|
}
|
|
51
|
-
return
|
|
78
|
+
return _assert_this_initialized(self);
|
|
52
79
|
}
|
|
53
|
-
function
|
|
54
|
-
|
|
80
|
+
function _set_prototype_of(o, p) {
|
|
81
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
55
82
|
o.__proto__ = p;
|
|
56
83
|
return o;
|
|
57
84
|
};
|
|
58
|
-
return
|
|
85
|
+
return _set_prototype_of(o, p);
|
|
59
86
|
}
|
|
60
|
-
function
|
|
87
|
+
function _super_prop_base(object, property) {
|
|
61
88
|
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
62
|
-
object =
|
|
89
|
+
object = _get_prototype_of(object);
|
|
63
90
|
if (object === null) break;
|
|
64
91
|
}
|
|
65
92
|
return object;
|
|
66
93
|
}
|
|
67
|
-
|
|
94
|
+
function _type_of(obj) {
|
|
68
95
|
"@swc/helpers - typeof";
|
|
69
96
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
70
|
-
}
|
|
71
|
-
function
|
|
97
|
+
}
|
|
98
|
+
function _is_native_reflect_construct() {
|
|
72
99
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
73
100
|
if (Reflect.construct.sham) return false;
|
|
74
101
|
if (typeof Proxy === "function") return true;
|
|
@@ -79,17 +106,17 @@ function _isNativeReflectConstruct() {
|
|
|
79
106
|
return false;
|
|
80
107
|
}
|
|
81
108
|
}
|
|
82
|
-
function
|
|
83
|
-
var hasNativeReflectConstruct =
|
|
109
|
+
function _create_super(Derived) {
|
|
110
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
84
111
|
return function _createSuperInternal() {
|
|
85
|
-
var Super =
|
|
112
|
+
var Super = _get_prototype_of(Derived), result;
|
|
86
113
|
if (hasNativeReflectConstruct) {
|
|
87
|
-
var NewTarget =
|
|
114
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
88
115
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
89
116
|
} else {
|
|
90
117
|
result = Super.apply(this, arguments);
|
|
91
118
|
}
|
|
92
|
-
return
|
|
119
|
+
return _possible_constructor_return(this, result);
|
|
93
120
|
};
|
|
94
121
|
}
|
|
95
122
|
import { DesignerColumnControl, COMMON_SETTING_TYPE } from "@byteluck-fe/model-driven-core";
|
|
@@ -98,30 +125,35 @@ import { FieldTypes } from "@byteluck-fe/model-driven-shared";
|
|
|
98
125
|
var TimestampColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
99
126
|
"use strict";
|
|
100
127
|
_inherits(TimestampColumnControl, DesignerColumnControl);
|
|
101
|
-
var _super =
|
|
128
|
+
var _super = _create_super(TimestampColumnControl);
|
|
102
129
|
function TimestampColumnControl(props) {
|
|
103
|
-
|
|
130
|
+
_class_call_check(this, TimestampColumnControl);
|
|
104
131
|
var _this;
|
|
105
132
|
_this = _super.call(this, props);
|
|
133
|
+
_define_property(_assert_this_initialized(_this), "props", void 0);
|
|
106
134
|
_this.props = new TimestampColumnControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
107
135
|
return _this;
|
|
108
136
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
137
|
+
_create_class(TimestampColumnControl, [
|
|
138
|
+
{
|
|
139
|
+
key: "toDataBindModel",
|
|
140
|
+
value: function toDataBindModel(parentId) {
|
|
141
|
+
var dataBindModel = _get(_get_prototype_of(TimestampColumnControl.prototype), "toDataBindModel", this).call(this, parentId);
|
|
142
|
+
if (dataBindModel) {
|
|
143
|
+
var dateType = this.props.dateType;
|
|
144
|
+
dataBindModel.props.dateType = dateType;
|
|
145
|
+
}
|
|
146
|
+
return dataBindModel;
|
|
147
|
+
}
|
|
115
148
|
}
|
|
116
|
-
|
|
117
|
-
};
|
|
149
|
+
]);
|
|
118
150
|
return TimestampColumnControl;
|
|
119
151
|
}(DesignerColumnControl);
|
|
120
|
-
TimestampColumnControl
|
|
121
|
-
TimestampColumnControl
|
|
122
|
-
TimestampColumnControl
|
|
123
|
-
TimestampColumnControl
|
|
124
|
-
TimestampColumnControl
|
|
152
|
+
_define_property(TimestampColumnControl, "controlType", "timestamp-column");
|
|
153
|
+
_define_property(TimestampColumnControl, "controlName", "日期");
|
|
154
|
+
_define_property(TimestampColumnControl, "controlIcon", "timestamp-column");
|
|
155
|
+
_define_property(TimestampColumnControl, "controlFieldType", FieldTypes.TIMESTAMP);
|
|
156
|
+
_define_property(TimestampColumnControl, "setting", [
|
|
125
157
|
{
|
|
126
158
|
key: "column-data-bind",
|
|
127
159
|
visible: true
|
|
@@ -149,6 +181,6 @@ TimestampColumnControl.setting = [
|
|
|
149
181
|
key: "column-sort",
|
|
150
182
|
visible: true
|
|
151
183
|
}
|
|
152
|
-
];
|
|
184
|
+
]);
|
|
153
185
|
export default TimestampColumnControl;
|
|
154
186
|
export { TimestampColumnControl as DesignerTimestampColumnControl };
|