@byteluck-fe/model-driven-controls 2.23.0-beta.1 → 2.23.0-beta.10
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 +14 -25
- package/dist/esm/baseControls/BatchDeleteButton/property.js +13 -32
- package/dist/esm/baseControls/BatchDeleteButton/runtime.js +12 -24
- package/dist/esm/baseControls/BatchPrintListButton/designer.js +14 -25
- package/dist/esm/baseControls/BatchPrintListButton/property.js +13 -28
- package/dist/esm/baseControls/BatchPrintListButton/runtime.js +12 -24
- package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +14 -25
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +12 -23
- package/dist/esm/baseControls/BatchPrintRecordListButton/runtime.js +12 -24
- package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +14 -25
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +19 -34
- package/dist/esm/baseControls/BatchSubmissionListButton/runtime.js +12 -24
- package/dist/esm/baseControls/Button/designer.js +14 -26
- package/dist/esm/baseControls/Button/property.js +22 -41
- package/dist/esm/baseControls/Button/runtime.js +12 -24
- package/dist/esm/baseControls/CreateFormListButton/designer.js +14 -25
- package/dist/esm/baseControls/CreateFormListButton/property.js +15 -28
- package/dist/esm/baseControls/CreateFormListButton/runtime.js +12 -24
- package/dist/esm/baseControls/Dashboard/designer.js +14 -25
- package/dist/esm/baseControls/Dashboard/property.js +19 -40
- package/dist/esm/baseControls/Dashboard/runtime.js +12 -24
- package/dist/esm/baseControls/Divider/designer.js +14 -25
- package/dist/esm/baseControls/Divider/property.js +12 -25
- package/dist/esm/baseControls/Divider/runtime.js +12 -24
- package/dist/esm/baseControls/ExportListButton/designer.js +14 -25
- package/dist/esm/baseControls/ExportListButton/property.js +14 -26
- package/dist/esm/baseControls/ExportListButton/runtime.js +12 -24
- package/dist/esm/baseControls/ExportRecordListButton/designer.js +14 -25
- package/dist/esm/baseControls/ExportRecordListButton/property.js +12 -23
- package/dist/esm/baseControls/ExportRecordListButton/runtime.js +12 -24
- package/dist/esm/baseControls/FormSelectButton/designer.js +14 -25
- package/dist/esm/baseControls/FormSelectButton/property.js +17 -34
- package/dist/esm/baseControls/FormSelectButton/runtime.js +12 -24
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +14 -25
- package/dist/esm/baseControls/ImportRecordListButton/property.js +13 -26
- package/dist/esm/baseControls/ImportRecordListButton/runtime.js +12 -24
- package/dist/esm/baseControls/InvoiceCheckButton/designer.js +14 -25
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +20 -43
- package/dist/esm/baseControls/InvoiceCheckButton/runtime.js +12 -24
- package/dist/esm/baseControls/Link/designer.js +14 -25
- package/dist/esm/baseControls/Link/property.js +14 -27
- package/dist/esm/baseControls/Link/runtime.js +12 -24
- package/dist/esm/baseControls/ListSelectButton/designer.js +14 -25
- package/dist/esm/baseControls/ListSelectButton/property.js +24 -44
- package/dist/esm/baseControls/ListSelectButton/runtime.js +12 -24
- package/dist/esm/baseControls/ListViewSelect/designer.js +14 -25
- package/dist/esm/baseControls/ListViewSelect/property.js +16 -30
- package/dist/esm/baseControls/ListViewSelect/runtime.js +12 -24
- package/dist/esm/baseControls/OperationButton/designer.js +14 -25
- package/dist/esm/baseControls/OperationButton/property.js +16 -40
- package/dist/esm/baseControls/OperationButton/runtime.js +12 -24
- package/dist/esm/baseControls/Pagination/designer.js +14 -25
- package/dist/esm/baseControls/Pagination/property.js +18 -27
- package/dist/esm/baseControls/Pagination/runtime.js +12 -24
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +14 -25
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +12 -23
- package/dist/esm/baseControls/SubmissionRecordListButton/runtime.js +12 -24
- package/dist/esm/baseControls/Text/designer.js +14 -25
- package/dist/esm/baseControls/Text/property.js +15 -31
- package/dist/esm/baseControls/Text/runtime.js +12 -24
- package/dist/esm/baseControls/TextOcrButton/designer.js +14 -25
- package/dist/esm/baseControls/TextOcrButton/property.js +20 -43
- package/dist/esm/baseControls/TextOcrButton/runtime.js +12 -24
- package/dist/esm/baseControls/Title/designer.js +14 -25
- package/dist/esm/baseControls/Title/property.js +17 -34
- package/dist/esm/baseControls/Title/runtime.js +12 -24
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +14 -26
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +15 -29
- package/dist/esm/columnControls/ApprovalStatusColumn/runtime.js +12 -25
- package/dist/esm/columnControls/ArrayColumn/designer.js +14 -26
- package/dist/esm/columnControls/ArrayColumn/property.js +21 -36
- package/dist/esm/columnControls/ArrayColumn/runtime.js +12 -24
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +14 -26
- package/dist/esm/columnControls/AutoNumberColumn/property.js +18 -30
- package/dist/esm/columnControls/AutoNumberColumn/runtime.js +12 -24
- package/dist/esm/columnControls/CustomColumn/designer.js +15 -30
- package/dist/esm/columnControls/CustomColumn/property.js +15 -28
- package/dist/esm/columnControls/CustomColumn/runtime.js +13 -26
- package/dist/esm/columnControls/DecimalColumn/designer.js +14 -26
- package/dist/esm/columnControls/DecimalColumn/property.js +24 -42
- package/dist/esm/columnControls/DecimalColumn/runtime.js +12 -24
- package/dist/esm/columnControls/DepartmentColumn/designer.js +14 -26
- package/dist/esm/columnControls/DepartmentColumn/property.js +13 -25
- package/dist/esm/columnControls/DepartmentColumn/runtime.js +12 -24
- package/dist/esm/columnControls/EmployeeColumn/designer.js +14 -26
- package/dist/esm/columnControls/EmployeeColumn/property.js +13 -25
- package/dist/esm/columnControls/EmployeeColumn/runtime.js +12 -24
- package/dist/esm/columnControls/FileColumn/designer.js +15 -27
- package/dist/esm/columnControls/FileColumn/property.js +12 -23
- package/dist/esm/columnControls/FileColumn/runtime.js +12 -24
- package/dist/esm/columnControls/ImageColumn/designer.js +14 -26
- package/dist/esm/columnControls/ImageColumn/property.js +12 -23
- package/dist/esm/columnControls/ImageColumn/runtime.js +12 -24
- package/dist/esm/columnControls/LocationColumn/designer.js +14 -26
- package/dist/esm/columnControls/LocationColumn/property.js +18 -30
- package/dist/esm/columnControls/LocationColumn/runtime.js +12 -24
- package/dist/esm/columnControls/OperationColumn/designer.js +14 -25
- package/dist/esm/columnControls/OperationColumn/property.js +14 -27
- package/dist/esm/columnControls/OperationColumn/runtime.js +12 -24
- package/dist/esm/columnControls/OrderColumn/designer.js +14 -25
- package/dist/esm/columnControls/OrderColumn/property.js +15 -25
- package/dist/esm/columnControls/OrderColumn/runtime.js +12 -24
- package/dist/esm/columnControls/PeopleColumn/designer.js +14 -26
- package/dist/esm/columnControls/PeopleColumn/property.js +12 -23
- package/dist/esm/columnControls/PeopleColumn/runtime.js +12 -24
- package/dist/esm/columnControls/TextColumn/designer.js +14 -26
- package/dist/esm/columnControls/TextColumn/property.js +19 -33
- package/dist/esm/columnControls/TextColumn/runtime.js +12 -24
- package/dist/esm/columnControls/TimescopeColumn/designer.js +14 -26
- package/dist/esm/columnControls/TimescopeColumn/property.js +19 -32
- package/dist/esm/columnControls/TimescopeColumn/runtime.js +12 -24
- package/dist/esm/columnControls/TimestampColumn/designer.js +14 -26
- package/dist/esm/columnControls/TimestampColumn/property.js +19 -32
- package/dist/esm/columnControls/TimestampColumn/runtime.js +12 -24
- package/dist/esm/columnControls/VarcharColumn/designer.js +14 -26
- package/dist/esm/columnControls/VarcharColumn/property.js +23 -40
- package/dist/esm/columnControls/VarcharColumn/runtime.js +12 -24
- package/dist/esm/formControls/Address/designer.js +14 -26
- package/dist/esm/formControls/Address/property.js +19 -32
- package/dist/esm/formControls/Address/runtime.js +12 -24
- package/dist/esm/formControls/Amount/designer.js +14 -26
- package/dist/esm/formControls/Amount/property.js +32 -55
- package/dist/esm/formControls/Amount/runtime.js +12 -24
- package/dist/esm/formControls/Attachment/designer.js +14 -26
- package/dist/esm/formControls/Attachment/property.js +24 -46
- package/dist/esm/formControls/Attachment/runtime.js +12 -24
- package/dist/esm/formControls/AutoNumber/designer.js +14 -26
- package/dist/esm/formControls/AutoNumber/property.js +14 -25
- package/dist/esm/formControls/AutoNumber/runtime.js +12 -24
- package/dist/esm/formControls/Calc/designer.js +14 -26
- package/dist/esm/formControls/Calc/property.js +28 -46
- package/dist/esm/formControls/Calc/runtime.js +12 -24
- package/dist/esm/formControls/Checkbox/designer.js +14 -26
- package/dist/esm/formControls/Checkbox/property.js +26 -50
- package/dist/esm/formControls/Checkbox/runtime.js +12 -24
- package/dist/esm/formControls/DatePicker/designer.js +14 -26
- package/dist/esm/formControls/DatePicker/property.js +20 -39
- package/dist/esm/formControls/DatePicker/runtime.js +12 -24
- package/dist/esm/formControls/DateRange/designer.js +14 -26
- package/dist/esm/formControls/DateRange/property.js +29 -50
- package/dist/esm/formControls/DateRange/runtime.js +12 -24
- package/dist/esm/formControls/Department/designer.js +14 -26
- package/dist/esm/formControls/Department/property.js +26 -45
- package/dist/esm/formControls/Department/runtime.js +12 -24
- package/dist/esm/formControls/Department2/designer.js +14 -26
- package/dist/esm/formControls/Department2/property.js +35 -60
- package/dist/esm/formControls/Department2/runtime.js +12 -24
- package/dist/esm/formControls/ElectronicSignature/designer.js +14 -26
- package/dist/esm/formControls/ElectronicSignature/property.js +23 -42
- package/dist/esm/formControls/ElectronicSignature/runtime.js +12 -24
- package/dist/esm/formControls/Employee/designer.js +14 -26
- package/dist/esm/formControls/Employee/property.js +22 -39
- package/dist/esm/formControls/Employee/runtime.js +12 -24
- package/dist/esm/formControls/Employee2/designer.js +14 -26
- package/dist/esm/formControls/Employee2/property.js +30 -54
- package/dist/esm/formControls/Employee2/runtime.js +12 -24
- package/dist/esm/formControls/Image/designer.js +15 -26
- package/dist/esm/formControls/Image/property.js +12 -23
- package/dist/esm/formControls/Image/runtime.js +15 -25
- package/dist/esm/formControls/Input/designer.js +14 -26
- package/dist/esm/formControls/Input/property.js +28 -46
- package/dist/esm/formControls/Input/runtime.js +12 -24
- package/dist/esm/formControls/Number/designer.js +14 -26
- package/dist/esm/formControls/Number/property.js +32 -55
- package/dist/esm/formControls/Number/runtime.js +12 -24
- package/dist/esm/formControls/OrganizationSelection/designer.js +19 -26
- package/dist/esm/formControls/OrganizationSelection/property.js +41 -71
- package/dist/esm/formControls/OrganizationSelection/runtime.js +12 -24
- package/dist/esm/formControls/Radio/designer.js +14 -26
- package/dist/esm/formControls/Radio/property.js +21 -43
- package/dist/esm/formControls/Radio/runtime.js +12 -24
- package/dist/esm/formControls/RichText/designer.js +14 -26
- package/dist/esm/formControls/RichText/property.js +21 -36
- package/dist/esm/formControls/RichText/runtime.js +12 -24
- package/dist/esm/formControls/Score/designer.js +14 -26
- package/dist/esm/formControls/Score/property.js +19 -35
- package/dist/esm/formControls/Score/runtime.js +12 -24
- package/dist/esm/formControls/SearchDateRange/designer.js +14 -26
- package/dist/esm/formControls/SearchDateRange/property.js +24 -44
- package/dist/esm/formControls/SearchDateRange/runtime.js +12 -24
- package/dist/esm/formControls/SearchInput/designer.js +14 -25
- package/dist/esm/formControls/SearchInput/property.js +15 -25
- package/dist/esm/formControls/SearchInput/runtime.js +12 -24
- package/dist/esm/formControls/SearchNumberRange/designer.js +14 -26
- package/dist/esm/formControls/SearchNumberRange/property.js +19 -34
- package/dist/esm/formControls/SearchNumberRange/runtime.js +12 -24
- package/dist/esm/formControls/Select/designer.js +14 -26
- package/dist/esm/formControls/Select/property.js +23 -45
- package/dist/esm/formControls/Select/runtime.js +12 -24
- package/dist/esm/formControls/SelectMultiple/designer.js +14 -26
- package/dist/esm/formControls/SelectMultiple/property.js +25 -45
- package/dist/esm/formControls/SelectMultiple/runtime.js +12 -24
- package/dist/esm/formControls/SelectRelation/designer.js +14 -26
- package/dist/esm/formControls/SelectRelation/property.js +33 -58
- package/dist/esm/formControls/SelectRelation/runtime.js +12 -24
- package/dist/esm/formControls/Textarea/designer.js +14 -26
- package/dist/esm/formControls/Textarea/property.js +25 -41
- package/dist/esm/formControls/Textarea/runtime.js +12 -24
- package/dist/esm/formControls/Tree/designer.js +14 -26
- package/dist/esm/formControls/Tree/property.js +25 -53
- package/dist/esm/formControls/Tree/runtime.js +12 -24
- package/dist/esm/formControls/VueFormItem/designer.js +14 -26
- package/dist/esm/formControls/VueFormItem/property.js +18 -31
- package/dist/esm/formControls/VueFormItem/runtime.js +12 -24
- package/dist/esm/formControls/VuePage/designer.js +14 -26
- package/dist/esm/formControls/VuePage/property.js +18 -31
- package/dist/esm/formControls/VuePage/runtime.js +12 -24
- package/dist/esm/formControls/WPS/designer.js +14 -26
- package/dist/esm/formControls/WPS/property.js +20 -44
- package/dist/esm/formControls/WPS/runtime.js +12 -24
- package/dist/esm/framework.js +2 -2
- package/dist/esm/layoutControls/ActionBar/designer.js +14 -25
- package/dist/esm/layoutControls/ActionBar/property.js +14 -28
- package/dist/esm/layoutControls/ActionBar/runtime.js +12 -24
- package/dist/esm/layoutControls/AdvancedContainer/designer.js +14 -24
- package/dist/esm/layoutControls/AdvancedContainer/property.js +12 -25
- package/dist/esm/layoutControls/AdvancedContainer/runtime.js +12 -23
- package/dist/esm/layoutControls/CardGroup/designer.js +14 -26
- package/dist/esm/layoutControls/CardGroup/property.js +16 -32
- package/dist/esm/layoutControls/CardGroup/runtime.js +12 -24
- package/dist/esm/layoutControls/Col/designer.js +14 -26
- package/dist/esm/layoutControls/Col/property.js +12 -25
- package/dist/esm/layoutControls/Col/runtime.js +12 -24
- package/dist/esm/layoutControls/DataView/designer.js +14 -25
- package/dist/esm/layoutControls/DataView/property.js +22 -38
- package/dist/esm/layoutControls/DataView/runtime.js +12 -24
- package/dist/esm/layoutControls/Grid/designer.js +14 -25
- package/dist/esm/layoutControls/Grid/runtime.js +12 -23
- package/dist/esm/layoutControls/GridLayoutContainer/designer.js +14 -26
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +13 -26
- package/dist/esm/layoutControls/GridLayoutContainer/runtime.js +12 -24
- package/dist/esm/layoutControls/GridRow/designer.js +14 -25
- package/dist/esm/layoutControls/GridRow/property.js +12 -23
- package/dist/esm/layoutControls/GridRow/runtime.js +12 -23
- package/dist/esm/layoutControls/GridTableColumn/designer.js +12 -24
- package/dist/esm/layoutControls/GridTableColumn/property.js +13 -36
- package/dist/esm/layoutControls/GridTableColumn/runtime.js +12 -24
- package/dist/esm/layoutControls/ListView/designer.js +14 -26
- package/dist/esm/layoutControls/ListView/property.js +41 -70
- package/dist/esm/layoutControls/ListView/runtime.js +12 -24
- package/dist/esm/layoutControls/Page/designer.js +14 -24
- package/dist/esm/layoutControls/Page/property.js +13 -29
- package/dist/esm/layoutControls/Page/runtime.js +12 -23
- package/dist/esm/layoutControls/Position/designer.js +14 -24
- package/dist/esm/layoutControls/Position/property.js +12 -27
- package/dist/esm/layoutControls/Position/runtime.js +12 -23
- package/dist/esm/layoutControls/PositioningContainer/designer.js +14 -24
- package/dist/esm/layoutControls/PositioningContainer/property.js +12 -23
- package/dist/esm/layoutControls/PositioningContainer/runtime.js +12 -23
- package/dist/esm/layoutControls/Row/designer.js +14 -26
- package/dist/esm/layoutControls/Row/property.js +12 -25
- package/dist/esm/layoutControls/Row/runtime.js +12 -24
- package/dist/esm/layoutControls/SubTableColumn/designer.js +14 -26
- package/dist/esm/layoutControls/SubTableColumn/property.js +23 -42
- package/dist/esm/layoutControls/SubTableColumn/runtime.js +12 -24
- package/dist/esm/layoutControls/SubTableRow/designer.js +14 -26
- package/dist/esm/layoutControls/SubTableRow/property.js +12 -23
- package/dist/esm/layoutControls/SubTableRow/runtime.js +12 -24
- package/dist/esm/layoutControls/Tab/designer.js +14 -26
- package/dist/esm/layoutControls/Tab/property.js +12 -24
- package/dist/esm/layoutControls/Tab/runtime.js +12 -24
- package/dist/esm/layoutControls/TabPane/designer.js +14 -26
- package/dist/esm/layoutControls/TabPane/property.js +15 -27
- package/dist/esm/layoutControls/TabPane/runtime.js +12 -24
- package/dist/esm/layoutControls/Toolbox/designer.js +14 -26
- package/dist/esm/layoutControls/Toolbox/property.js +12 -23
- package/dist/esm/layoutControls/Toolbox/runtime.js +12 -23
- package/dist/esm/listControls/GridTable/designer.js +16 -31
- package/dist/esm/listControls/GridTable/property.js +18 -33
- package/dist/esm/listControls/GridTable/runtime.js +13 -25
- package/dist/esm/listControls/SubTable/designer.js +15 -26
- package/dist/esm/listControls/SubTable/property.js +61 -108
- package/dist/esm/listControls/SubTable/runtime.js +13 -25
- package/dist/esm/searchControls/SimpleSearch/designer.js +12 -24
- package/dist/esm/searchControls/SimpleSearch/property.js +29 -50
- package/dist/esm/searchControls/SimpleSearch/runtime.js +12 -25
- package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +2 -1
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +15 -26
- package/dist/esm/wrapControls/GridLayoutWrap/property.js +12 -24
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +12 -24
- package/dist/index.umd.js +1 -1
- package/dist/types/columnControls/ApprovalStatusColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/ArrayColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/AutoNumberColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/CustomColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/DecimalColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/DepartmentColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/EmployeeColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/FileColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/ImageColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/LocationColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/OperationColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/OrderColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/PeopleColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/TextColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/TimescopeColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/TimestampColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/VarcharColumn/designer.d.ts +1 -1
- package/dist/types/formControls/Attachment/property.d.ts +0 -1
- package/dist/types/formControls/OrganizationSelection/designer.d.ts +1 -1
- package/dist/types/layoutControls/SubTableColumn/designer.d.ts +1 -1
- package/dist/types/layoutControls/SubTableRow/designer.d.ts +1 -1
- package/package.json +5 -5
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -59,46 +63,31 @@ function _type_of(obj) {
|
|
|
59
63
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
64
|
}
|
|
61
65
|
function _is_native_reflect_construct() {
|
|
62
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
-
if (Reflect.construct.sham) return false;
|
|
64
|
-
if (typeof Proxy === "function") return true;
|
|
65
66
|
try {
|
|
66
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function _create_super(Derived) {
|
|
73
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
-
return function _createSuperInternal() {
|
|
75
|
-
var Super = _get_prototype_of(Derived), result;
|
|
76
|
-
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
-
} else {
|
|
80
|
-
result = Super.apply(this, arguments);
|
|
81
|
-
}
|
|
82
|
-
return _possible_constructor_return(this, result);
|
|
83
|
-
};
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
} catch (_) {}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
70
|
+
return !!result;
|
|
71
|
+
})();
|
|
84
72
|
}
|
|
85
73
|
import AutoNumberControl from './designer';
|
|
86
74
|
import { BaseControlProperty } from '@byteluck-fe/model-driven-core';
|
|
75
|
+
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
87
76
|
var AutoNumberProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
88
77
|
"use strict";
|
|
89
78
|
_inherits(AutoNumberProperty, BaseControlProperty);
|
|
90
|
-
var _super = _create_super(AutoNumberProperty);
|
|
91
79
|
function AutoNumberProperty(props) {
|
|
92
80
|
_class_call_check(this, AutoNumberProperty);
|
|
93
81
|
var _this;
|
|
94
|
-
_this =
|
|
95
|
-
|
|
82
|
+
_this = _call_super(this, AutoNumberProperty, [
|
|
83
|
+
props
|
|
84
|
+
]), _define_property(_this, "defaultValue", void 0);
|
|
96
85
|
var _props_defaultValue;
|
|
97
86
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
98
87
|
var _props_caption;
|
|
99
88
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AutoNumberControl.controlName;
|
|
100
89
|
var _props_placeholder;
|
|
101
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
90
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseEnterAutonumber');
|
|
102
91
|
return _this;
|
|
103
92
|
}
|
|
104
93
|
return AutoNumberProperty;
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -73,28 +77,12 @@ function _type_of(obj) {
|
|
|
73
77
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
74
78
|
}
|
|
75
79
|
function _is_native_reflect_construct() {
|
|
76
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
77
|
-
if (Reflect.construct.sham) return false;
|
|
78
|
-
if (typeof Proxy === "function") return true;
|
|
79
80
|
try {
|
|
80
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
function _create_super(Derived) {
|
|
87
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
88
|
-
return function _createSuperInternal() {
|
|
89
|
-
var Super = _get_prototype_of(Derived), result;
|
|
90
|
-
if (hasNativeReflectConstruct) {
|
|
91
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
92
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
93
|
-
} else {
|
|
94
|
-
result = Super.apply(this, arguments);
|
|
95
|
-
}
|
|
96
|
-
return _possible_constructor_return(this, result);
|
|
97
|
-
};
|
|
81
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
+
} catch (_) {}
|
|
83
|
+
return (_is_native_reflect_construct = function() {
|
|
84
|
+
return !!result;
|
|
85
|
+
})();
|
|
98
86
|
}
|
|
99
87
|
import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
|
|
100
88
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
@@ -102,12 +90,12 @@ import AutoNumberProperty from './property';
|
|
|
102
90
|
var AutoNumberControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
103
91
|
"use strict";
|
|
104
92
|
_inherits(AutoNumberControl, RuntimeFormControl);
|
|
105
|
-
var _super = _create_super(AutoNumberControl);
|
|
106
93
|
function AutoNumberControl(props) {
|
|
107
94
|
_class_call_check(this, AutoNumberControl);
|
|
108
95
|
var _this;
|
|
109
|
-
_this =
|
|
110
|
-
|
|
96
|
+
_this = _call_super(this, AutoNumberControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "props", void 0);
|
|
111
99
|
_this.props = new AutoNumberProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
112
100
|
return _this;
|
|
113
101
|
}
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -96,41 +100,25 @@ function _type_of(obj) {
|
|
|
96
100
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
97
101
|
}
|
|
98
102
|
function _is_native_reflect_construct() {
|
|
99
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
100
|
-
if (Reflect.construct.sham) return false;
|
|
101
|
-
if (typeof Proxy === "function") return true;
|
|
102
103
|
try {
|
|
103
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function _create_super(Derived) {
|
|
110
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
111
|
-
return function _createSuperInternal() {
|
|
112
|
-
var Super = _get_prototype_of(Derived), result;
|
|
113
|
-
if (hasNativeReflectConstruct) {
|
|
114
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
115
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
116
|
-
} else {
|
|
117
|
-
result = Super.apply(this, arguments);
|
|
118
|
-
}
|
|
119
|
-
return _possible_constructor_return(this, result);
|
|
120
|
-
};
|
|
104
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
105
|
+
} catch (_) {}
|
|
106
|
+
return (_is_native_reflect_construct = function() {
|
|
107
|
+
return !!result;
|
|
108
|
+
})();
|
|
121
109
|
}
|
|
122
110
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
123
|
-
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
111
|
+
import { FieldTypes, RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
124
112
|
import { CalcProperty } from './property';
|
|
125
113
|
var CalcControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
126
114
|
"use strict";
|
|
127
115
|
_inherits(CalcControl, DesignerFormControl);
|
|
128
|
-
var _super = _create_super(CalcControl);
|
|
129
116
|
function CalcControl(props) {
|
|
130
117
|
_class_call_check(this, CalcControl);
|
|
131
118
|
var _this;
|
|
132
|
-
_this =
|
|
133
|
-
|
|
119
|
+
_this = _call_super(this, CalcControl, [
|
|
120
|
+
props
|
|
121
|
+
]), _define_property(_this, "props", void 0);
|
|
134
122
|
_this.props = new CalcProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
135
123
|
return _this;
|
|
136
124
|
}
|
|
@@ -151,7 +139,7 @@ var CalcControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
151
139
|
{
|
|
152
140
|
key: "controlName",
|
|
153
141
|
get: function get() {
|
|
154
|
-
return '
|
|
142
|
+
return RulesMessage.getMessage('calc');
|
|
155
143
|
}
|
|
156
144
|
},
|
|
157
145
|
{
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -59,28 +63,12 @@ function _type_of(obj) {
|
|
|
59
63
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
64
|
}
|
|
61
65
|
function _is_native_reflect_construct() {
|
|
62
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
-
if (Reflect.construct.sham) return false;
|
|
64
|
-
if (typeof Proxy === "function") return true;
|
|
65
66
|
try {
|
|
66
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function _create_super(Derived) {
|
|
73
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
-
return function _createSuperInternal() {
|
|
75
|
-
var Super = _get_prototype_of(Derived), result;
|
|
76
|
-
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
-
} else {
|
|
80
|
-
result = Super.apply(this, arguments);
|
|
81
|
-
}
|
|
82
|
-
return _possible_constructor_return(this, result);
|
|
83
|
-
};
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
} catch (_) {}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
70
|
+
return !!result;
|
|
71
|
+
})();
|
|
84
72
|
}
|
|
85
73
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, CalcDataBind, CalcValue } from '@byteluck-fe/model-driven-core';
|
|
86
74
|
import AmountControl from './designer';
|
|
@@ -88,11 +76,12 @@ import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
|
88
76
|
var CalcControlPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
89
77
|
"use strict";
|
|
90
78
|
_inherits(CalcControlPropertyRules, BaseControlPropertyRules);
|
|
91
|
-
var _super = _create_super(CalcControlPropertyRules);
|
|
92
79
|
function CalcControlPropertyRules(props) {
|
|
93
80
|
_class_call_check(this, CalcControlPropertyRules);
|
|
94
81
|
var _this;
|
|
95
|
-
_this =
|
|
82
|
+
_this = _call_super(this, CalcControlPropertyRules, [
|
|
83
|
+
props
|
|
84
|
+
]);
|
|
96
85
|
_this.dataBind.fields.result.required = false;
|
|
97
86
|
_this.dataBind.fields.result.fields.fieldCode.required = false;
|
|
98
87
|
_this.dataBind.fields.result.fields.dataCode.required = false;
|
|
@@ -106,11 +95,12 @@ var CalcControlPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules)
|
|
|
106
95
|
var CalcControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
107
96
|
"use strict";
|
|
108
97
|
_inherits(CalcControlPropertyRuntimeRules, BaseControlPropertyRuntimeRules);
|
|
109
|
-
var _super = _create_super(CalcControlPropertyRuntimeRules);
|
|
110
98
|
function CalcControlPropertyRuntimeRules(props) {
|
|
111
99
|
_class_call_check(this, CalcControlPropertyRuntimeRules);
|
|
112
100
|
var _this;
|
|
113
|
-
_this =
|
|
101
|
+
_this = _call_super(this, CalcControlPropertyRuntimeRules, [
|
|
102
|
+
props
|
|
103
|
+
]);
|
|
114
104
|
if (_this[0] !== undefined) {
|
|
115
105
|
_this[0].type = 'object';
|
|
116
106
|
}
|
|
@@ -137,45 +127,37 @@ var CalcControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProperty
|
|
|
137
127
|
var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
138
128
|
"use strict";
|
|
139
129
|
_inherits(CalcProperty, BaseControlProperty);
|
|
140
|
-
var _super = _create_super(CalcProperty);
|
|
141
130
|
function CalcProperty(props) {
|
|
142
131
|
_class_call_check(this, CalcProperty);
|
|
143
132
|
var _this;
|
|
144
|
-
_this =
|
|
145
|
-
|
|
133
|
+
_this = _call_super(this, CalcProperty, [
|
|
134
|
+
props
|
|
135
|
+
]), /**
|
|
146
136
|
* 保留小数点后几位
|
|
147
137
|
* @defaultValue ''
|
|
148
|
-
* */ _define_property(
|
|
149
|
-
/**
|
|
138
|
+
* */ _define_property(_this, "precision", void 0), /**
|
|
150
139
|
* 千分位展示
|
|
151
140
|
* @defaultValue false
|
|
152
|
-
* */ _define_property(
|
|
153
|
-
/**
|
|
141
|
+
* */ _define_property(_this, "micrometer", void 0), /**
|
|
154
142
|
* 是否显示大写数字
|
|
155
143
|
* @defaultValue false
|
|
156
|
-
* */ _define_property(
|
|
157
|
-
/**
|
|
144
|
+
* */ _define_property(_this, "showUpperCase", void 0), /**
|
|
158
145
|
* 解释执行的表达式源码
|
|
159
146
|
* @defaultValue ''
|
|
160
|
-
* */ _define_property(
|
|
161
|
-
/**
|
|
147
|
+
* */ _define_property(_this, "scriptSrc", void 0), /**
|
|
162
148
|
* 辅助回显的表达式
|
|
163
149
|
* @defaultValue []
|
|
164
|
-
* */ _define_property(
|
|
165
|
-
/**
|
|
150
|
+
* */ _define_property(_this, "scriptEcho", void 0), /**
|
|
166
151
|
* 计算公式的数据绑定
|
|
167
|
-
* */ _define_property(
|
|
168
|
-
/**
|
|
152
|
+
* */ _define_property(_this, "dataBind", void 0), /**
|
|
169
153
|
* 默认值
|
|
170
|
-
* */ _define_property(
|
|
171
|
-
/**
|
|
154
|
+
* */ _define_property(_this, "defaultValue", void 0), /**
|
|
172
155
|
* 单位位置 left right align-right
|
|
173
156
|
* @defaultValue 'right'
|
|
174
157
|
* @public
|
|
175
|
-
* */ _define_property(
|
|
176
|
-
/**
|
|
158
|
+
* */ _define_property(_this, "unitPosition", void 0), /**
|
|
177
159
|
* 页面加载时计算
|
|
178
|
-
* */ _define_property(
|
|
160
|
+
* */ _define_property(_this, "calcOnMounted", void 0);
|
|
179
161
|
var _props_precision;
|
|
180
162
|
_this.precision = (_props_precision = props === null || props === void 0 ? void 0 : props.precision) !== null && _props_precision !== void 0 ? _props_precision : 0;
|
|
181
163
|
var _props_micrometer;
|
|
@@ -189,7 +171,7 @@ var CalcProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
189
171
|
var _props_unitPosition;
|
|
190
172
|
_this.unitPosition = (_props_unitPosition = props === null || props === void 0 ? void 0 : props.unitPosition) !== null && _props_unitPosition !== void 0 ? _props_unitPosition : 'right';
|
|
191
173
|
var _props_placeholder;
|
|
192
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '
|
|
174
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : RulesMessage.getMessage('pleaseEnter');
|
|
193
175
|
var _props_scriptEcho;
|
|
194
176
|
_this.scriptEcho = (_props_scriptEcho = props === null || props === void 0 ? void 0 : props.scriptEcho) !== null && _props_scriptEcho !== void 0 ? _props_scriptEcho : [];
|
|
195
177
|
var _props_scriptSrc;
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -73,28 +77,12 @@ function _type_of(obj) {
|
|
|
73
77
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
74
78
|
}
|
|
75
79
|
function _is_native_reflect_construct() {
|
|
76
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
77
|
-
if (Reflect.construct.sham) return false;
|
|
78
|
-
if (typeof Proxy === "function") return true;
|
|
79
80
|
try {
|
|
80
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
function _create_super(Derived) {
|
|
87
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
88
|
-
return function _createSuperInternal() {
|
|
89
|
-
var Super = _get_prototype_of(Derived), result;
|
|
90
|
-
if (hasNativeReflectConstruct) {
|
|
91
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
92
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
93
|
-
} else {
|
|
94
|
-
result = Super.apply(this, arguments);
|
|
95
|
-
}
|
|
96
|
-
return _possible_constructor_return(this, result);
|
|
97
|
-
};
|
|
81
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
+
} catch (_) {}
|
|
83
|
+
return (_is_native_reflect_construct = function() {
|
|
84
|
+
return !!result;
|
|
85
|
+
})();
|
|
98
86
|
}
|
|
99
87
|
import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
|
|
100
88
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
@@ -102,12 +90,12 @@ import { CalcProperty } from './property';
|
|
|
102
90
|
var CalcControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
103
91
|
"use strict";
|
|
104
92
|
_inherits(CalcControl, RuntimeFormControl);
|
|
105
|
-
var _super = _create_super(CalcControl);
|
|
106
93
|
function CalcControl(props) {
|
|
107
94
|
_class_call_check(this, CalcControl);
|
|
108
95
|
var _this;
|
|
109
|
-
_this =
|
|
110
|
-
|
|
96
|
+
_this = _call_super(this, CalcControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "props", void 0);
|
|
111
99
|
_this.props = new CalcProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
112
100
|
return _this;
|
|
113
101
|
}
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -73,41 +77,25 @@ function _type_of(obj) {
|
|
|
73
77
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
74
78
|
}
|
|
75
79
|
function _is_native_reflect_construct() {
|
|
76
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
77
|
-
if (Reflect.construct.sham) return false;
|
|
78
|
-
if (typeof Proxy === "function") return true;
|
|
79
80
|
try {
|
|
80
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
function _create_super(Derived) {
|
|
87
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
88
|
-
return function _createSuperInternal() {
|
|
89
|
-
var Super = _get_prototype_of(Derived), result;
|
|
90
|
-
if (hasNativeReflectConstruct) {
|
|
91
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
92
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
93
|
-
} else {
|
|
94
|
-
result = Super.apply(this, arguments);
|
|
95
|
-
}
|
|
96
|
-
return _possible_constructor_return(this, result);
|
|
97
|
-
};
|
|
81
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
+
} catch (_) {}
|
|
83
|
+
return (_is_native_reflect_construct = function() {
|
|
84
|
+
return !!result;
|
|
85
|
+
})();
|
|
98
86
|
}
|
|
99
87
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
100
|
-
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
88
|
+
import { FieldTypes, RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
101
89
|
import CheckboxProperty from './property';
|
|
102
90
|
var CheckboxControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
103
91
|
"use strict";
|
|
104
92
|
_inherits(CheckboxControl, DesignerFormControl);
|
|
105
|
-
var _super = _create_super(CheckboxControl);
|
|
106
93
|
function CheckboxControl(props) {
|
|
107
94
|
_class_call_check(this, CheckboxControl);
|
|
108
95
|
var _this;
|
|
109
|
-
_this =
|
|
110
|
-
|
|
96
|
+
_this = _call_super(this, CheckboxControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "props", void 0);
|
|
111
99
|
_this.props = new CheckboxProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
112
100
|
return _this;
|
|
113
101
|
}
|
|
@@ -115,7 +103,7 @@ var CheckboxControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
115
103
|
{
|
|
116
104
|
key: "controlName",
|
|
117
105
|
get: function get() {
|
|
118
|
-
return '
|
|
106
|
+
return RulesMessage.getMessage('checkBox');
|
|
119
107
|
}
|
|
120
108
|
},
|
|
121
109
|
{
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -59,28 +63,12 @@ function _type_of(obj) {
|
|
|
59
63
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
60
64
|
}
|
|
61
65
|
function _is_native_reflect_construct() {
|
|
62
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
63
|
-
if (Reflect.construct.sham) return false;
|
|
64
|
-
if (typeof Proxy === "function") return true;
|
|
65
66
|
try {
|
|
66
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function _create_super(Derived) {
|
|
73
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
74
|
-
return function _createSuperInternal() {
|
|
75
|
-
var Super = _get_prototype_of(Derived), result;
|
|
76
|
-
if (hasNativeReflectConstruct) {
|
|
77
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
78
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
79
|
-
} else {
|
|
80
|
-
result = Super.apply(this, arguments);
|
|
81
|
-
}
|
|
82
|
-
return _possible_constructor_return(this, result);
|
|
83
|
-
};
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
} catch (_) {}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
70
|
+
return !!result;
|
|
71
|
+
})();
|
|
84
72
|
}
|
|
85
73
|
import CheckboxControl from './designer';
|
|
86
74
|
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, initOptions } from '@byteluck-fe/model-driven-core';
|
|
@@ -88,12 +76,12 @@ import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
|
88
76
|
var CheckboxPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
89
77
|
"use strict";
|
|
90
78
|
_inherits(CheckboxPropertyRules, OptionAndDataSourcePropertyRules);
|
|
91
|
-
var _super = _create_super(CheckboxPropertyRules);
|
|
92
79
|
function CheckboxPropertyRules(props) {
|
|
93
80
|
_class_call_check(this, CheckboxPropertyRules);
|
|
94
81
|
var _this;
|
|
95
|
-
_this =
|
|
96
|
-
|
|
82
|
+
_this = _call_super(this, CheckboxPropertyRules, [
|
|
83
|
+
props
|
|
84
|
+
]), _define_property(_this, "limitMax", {
|
|
97
85
|
type: 'number',
|
|
98
86
|
min: undefined,
|
|
99
87
|
message: RulesMessage.getMessage('PleaseReselectTheOptionalQuantity')
|
|
@@ -113,11 +101,12 @@ var CheckboxPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRu
|
|
|
113
101
|
var CheckboxPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
114
102
|
"use strict";
|
|
115
103
|
_inherits(CheckboxPropertyRuntimeRules, BaseControlPropertyRuntimeRules);
|
|
116
|
-
var _super = _create_super(CheckboxPropertyRuntimeRules);
|
|
117
104
|
function CheckboxPropertyRuntimeRules(props) {
|
|
118
105
|
_class_call_check(this, CheckboxPropertyRuntimeRules);
|
|
119
106
|
var _this;
|
|
120
|
-
_this =
|
|
107
|
+
_this = _call_super(this, CheckboxPropertyRuntimeRules, [
|
|
108
|
+
props
|
|
109
|
+
]);
|
|
121
110
|
if (_this[0] !== undefined) {
|
|
122
111
|
_this[0].type = 'array';
|
|
123
112
|
}
|
|
@@ -133,33 +122,20 @@ var CheckboxPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRun
|
|
|
133
122
|
var CheckboxProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
134
123
|
"use strict";
|
|
135
124
|
_inherits(CheckboxProperty, BaseControlProperty);
|
|
136
|
-
var _super = _create_super(CheckboxProperty);
|
|
137
125
|
function CheckboxProperty(props) {
|
|
138
126
|
_class_call_check(this, CheckboxProperty);
|
|
139
127
|
var _this;
|
|
140
|
-
_this =
|
|
141
|
-
|
|
142
|
-
)
|
|
143
|
-
_define_property(
|
|
144
|
-
_define_property(
|
|
145
|
-
)
|
|
146
|
-
_define_property(
|
|
147
|
-
)
|
|
148
|
-
_define_property(
|
|
149
|
-
)
|
|
150
|
-
_define_property(
|
|
151
|
-
);
|
|
152
|
-
_define_property(_assert_this_initialized(_this), "optionConfig", void 0 // 选项配置 custom datasource
|
|
153
|
-
);
|
|
154
|
-
_define_property(_assert_this_initialized(_this), "optionsFormat", void 0 // 选项布局:竖排/横排
|
|
155
|
-
);
|
|
156
|
-
_define_property(_assert_this_initialized(_this), "defaultShowOptions", void 0);
|
|
157
|
-
_define_property(_assert_this_initialized(_this), "datasourceBind", void 0);
|
|
158
|
-
_define_property(_assert_this_initialized(_this), "multistageFilling", void 0);
|
|
159
|
-
_define_property(_assert_this_initialized(_this), "interreaction", void 0 // 数据联动
|
|
160
|
-
);
|
|
161
|
-
_define_property(_assert_this_initialized(_this), "defaultValue", void 0);
|
|
162
|
-
_define_property(_assert_this_initialized(_this), "openMultistageFilling", void 0 //是否开启填充
|
|
128
|
+
_this = _call_super(this, CheckboxProperty, [
|
|
129
|
+
props
|
|
130
|
+
]), _define_property(_this, "checkboxMode", void 0 // 选项排列方式 horizontal默认
|
|
131
|
+
), _define_property(_this, "options", void 0), _define_property(_this, "optionsOrder", void 0 // 选项排序
|
|
132
|
+
), _define_property(_this, "limitMax", void 0 // 用户可选数量最大值
|
|
133
|
+
), _define_property(_this, "limitMin", void 0 // 用户可选数量最小值
|
|
134
|
+
), _define_property(_this, "otherOption", void 0 // 是否加其他按钮
|
|
135
|
+
), _define_property(_this, "optionConfig", void 0 // 选项配置 custom datasource
|
|
136
|
+
), _define_property(_this, "optionsFormat", void 0 // 选项布局:竖排/横排
|
|
137
|
+
), _define_property(_this, "defaultShowOptions", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "interreaction", void 0 // 数据联动
|
|
138
|
+
), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
|
|
163
139
|
);
|
|
164
140
|
var _props_options;
|
|
165
141
|
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -73,28 +77,12 @@ function _type_of(obj) {
|
|
|
73
77
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
74
78
|
}
|
|
75
79
|
function _is_native_reflect_construct() {
|
|
76
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
77
|
-
if (Reflect.construct.sham) return false;
|
|
78
|
-
if (typeof Proxy === "function") return true;
|
|
79
80
|
try {
|
|
80
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
function _create_super(Derived) {
|
|
87
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
88
|
-
return function _createSuperInternal() {
|
|
89
|
-
var Super = _get_prototype_of(Derived), result;
|
|
90
|
-
if (hasNativeReflectConstruct) {
|
|
91
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
92
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
93
|
-
} else {
|
|
94
|
-
result = Super.apply(this, arguments);
|
|
95
|
-
}
|
|
96
|
-
return _possible_constructor_return(this, result);
|
|
97
|
-
};
|
|
81
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
+
} catch (_) {}
|
|
83
|
+
return (_is_native_reflect_construct = function() {
|
|
84
|
+
return !!result;
|
|
85
|
+
})();
|
|
98
86
|
}
|
|
99
87
|
import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
|
|
100
88
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
@@ -102,12 +90,12 @@ import CheckboxProperty from './property';
|
|
|
102
90
|
var CheckboxControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
103
91
|
"use strict";
|
|
104
92
|
_inherits(CheckboxControl, RuntimeFormControl);
|
|
105
|
-
var _super = _create_super(CheckboxControl);
|
|
106
93
|
function CheckboxControl(props) {
|
|
107
94
|
_class_call_check(this, CheckboxControl);
|
|
108
95
|
var _this;
|
|
109
|
-
_this =
|
|
110
|
-
|
|
96
|
+
_this = _call_super(this, CheckboxControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "props", void 0);
|
|
111
99
|
_this.props = new CheckboxProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
112
100
|
return _this;
|
|
113
101
|
}
|