@byteluck-fe/model-driven-controls 2.23.0-beta.2 → 2.23.0-beta.21
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 -26
- 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 -26
- package/dist/esm/baseControls/BatchPrintListButton/property.js +15 -30
- package/dist/esm/baseControls/BatchPrintListButton/runtime.js +12 -24
- package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +14 -26
- 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 -26
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +22 -37
- package/dist/esm/baseControls/BatchSubmissionListButton/runtime.js +12 -24
- package/dist/esm/baseControls/Button/designer.js +15 -26
- package/dist/esm/baseControls/Button/property.js +22 -42
- package/dist/esm/baseControls/Button/runtime.js +12 -24
- package/dist/esm/baseControls/CreateFormListButton/designer.js +14 -26
- package/dist/esm/baseControls/CreateFormListButton/property.js +17 -30
- package/dist/esm/baseControls/CreateFormListButton/runtime.js +12 -24
- package/dist/esm/baseControls/Dashboard/designer.js +14 -26
- package/dist/esm/baseControls/Dashboard/property.js +23 -44
- package/dist/esm/baseControls/Dashboard/runtime.js +12 -24
- package/dist/esm/baseControls/Divider/designer.js +14 -26
- 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 -26
- package/dist/esm/baseControls/ExportListButton/property.js +14 -27
- package/dist/esm/baseControls/ExportListButton/runtime.js +12 -24
- package/dist/esm/baseControls/ExportRecordListButton/designer.js +14 -26
- 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 -26
- package/dist/esm/baseControls/FormSelectButton/property.js +21 -38
- package/dist/esm/baseControls/FormSelectButton/runtime.js +12 -24
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +14 -26
- 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 -26
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +24 -47
- package/dist/esm/baseControls/InvoiceCheckButton/runtime.js +12 -24
- package/dist/esm/baseControls/Link/designer.js +14 -26
- package/dist/esm/baseControls/Link/property.js +14 -28
- package/dist/esm/baseControls/Link/runtime.js +12 -24
- package/dist/esm/baseControls/ListSelectButton/designer.js +14 -26
- package/dist/esm/baseControls/ListSelectButton/property.js +28 -48
- package/dist/esm/baseControls/ListSelectButton/runtime.js +12 -24
- package/dist/esm/baseControls/ListViewSelect/designer.js +14 -26
- package/dist/esm/baseControls/ListViewSelect/property.js +19 -33
- package/dist/esm/baseControls/ListViewSelect/runtime.js +12 -24
- package/dist/esm/baseControls/OperationButton/designer.js +14 -26
- package/dist/esm/baseControls/OperationButton/property.js +18 -42
- package/dist/esm/baseControls/OperationButton/runtime.js +12 -24
- package/dist/esm/baseControls/Pagination/designer.js +14 -26
- package/dist/esm/baseControls/Pagination/property.js +18 -27
- package/dist/esm/baseControls/Pagination/runtime.js +12 -24
- package/dist/esm/baseControls/ReferenceList/designer.js +158 -0
- package/dist/esm/baseControls/ReferenceList/index.js +11 -0
- package/dist/esm/baseControls/ReferenceList/property.js +139 -0
- package/dist/esm/baseControls/ReferenceList/runtime.js +112 -0
- package/dist/esm/baseControls/ReferenceList/types.js +0 -0
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +14 -26
- 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 -26
- package/dist/esm/baseControls/Text/property.js +15 -32
- package/dist/esm/baseControls/Text/runtime.js +12 -24
- package/dist/esm/baseControls/TextOcrButton/designer.js +14 -26
- package/dist/esm/baseControls/TextOcrButton/property.js +25 -48
- package/dist/esm/baseControls/TextOcrButton/runtime.js +12 -24
- package/dist/esm/baseControls/Title/designer.js +14 -26
- package/dist/esm/baseControls/Title/property.js +23 -40
- package/dist/esm/baseControls/Title/runtime.js +12 -24
- package/dist/esm/baseControls/index.js +1 -0
- package/dist/esm/baseControls/utils.js +4 -4
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +18 -27
- 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 +19 -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 +19 -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 +20 -30
- package/dist/esm/columnControls/CustomColumn/property.js +17 -30
- package/dist/esm/columnControls/CustomColumn/runtime.js +13 -26
- package/dist/esm/columnControls/DecimalColumn/designer.js +19 -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 +19 -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 +19 -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 +24 -33
- package/dist/esm/columnControls/FileColumn/property.js +32 -23
- package/dist/esm/columnControls/FileColumn/runtime.js +12 -24
- package/dist/esm/columnControls/ImageColumn/designer.js +19 -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 +19 -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 +18 -26
- package/dist/esm/columnControls/OperationColumn/property.js +17 -30
- package/dist/esm/columnControls/OperationColumn/runtime.js +12 -24
- package/dist/esm/columnControls/OrderColumn/designer.js +18 -26
- 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 +19 -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 +19 -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 +19 -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 +19 -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 +20 -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 +15 -26
- package/dist/esm/formControls/Address/property.js +23 -36
- package/dist/esm/formControls/Address/runtime.js +12 -24
- package/dist/esm/formControls/Amount/designer.js +15 -26
- package/dist/esm/formControls/Amount/property.js +39 -62
- package/dist/esm/formControls/Amount/runtime.js +12 -24
- package/dist/esm/formControls/Attachment/designer.js +19 -26
- package/dist/esm/formControls/Attachment/property.js +33 -45
- package/dist/esm/formControls/Attachment/runtime.js +12 -24
- package/dist/esm/formControls/AutoNumber/designer.js +15 -26
- package/dist/esm/formControls/AutoNumber/property.js +14 -26
- package/dist/esm/formControls/AutoNumber/runtime.js +12 -24
- package/dist/esm/formControls/Calc/designer.js +15 -26
- package/dist/esm/formControls/Calc/property.js +32 -50
- package/dist/esm/formControls/Calc/runtime.js +12 -24
- package/dist/esm/formControls/Checkbox/designer.js +15 -26
- package/dist/esm/formControls/Checkbox/property.js +34 -58
- package/dist/esm/formControls/Checkbox/runtime.js +12 -24
- package/dist/esm/formControls/DatePicker/designer.js +15 -26
- package/dist/esm/formControls/DatePicker/property.js +21 -39
- package/dist/esm/formControls/DatePicker/runtime.js +12 -24
- package/dist/esm/formControls/DateRange/designer.js +15 -26
- package/dist/esm/formControls/DateRange/property.js +30 -50
- package/dist/esm/formControls/DateRange/runtime.js +12 -24
- package/dist/esm/formControls/Department/designer.js +15 -26
- package/dist/esm/formControls/Department/property.js +26 -46
- package/dist/esm/formControls/Department/runtime.js +12 -24
- package/dist/esm/formControls/Department2/designer.js +15 -26
- package/dist/esm/formControls/Department2/property.js +38 -63
- package/dist/esm/formControls/Department2/runtime.js +12 -24
- package/dist/esm/formControls/ElectronicSignature/designer.js +15 -26
- package/dist/esm/formControls/ElectronicSignature/property.js +24 -42
- package/dist/esm/formControls/ElectronicSignature/runtime.js +12 -24
- package/dist/esm/formControls/Employee/designer.js +15 -26
- package/dist/esm/formControls/Employee/property.js +22 -40
- package/dist/esm/formControls/Employee/runtime.js +12 -24
- package/dist/esm/formControls/Employee2/designer.js +15 -26
- package/dist/esm/formControls/Employee2/property.js +33 -57
- package/dist/esm/formControls/Employee2/runtime.js +12 -24
- package/dist/esm/formControls/Image/designer.js +16 -26
- package/dist/esm/formControls/Image/property.js +12 -23
- package/dist/esm/formControls/Image/runtime.js +15 -26
- package/dist/esm/formControls/Input/designer.js +15 -26
- package/dist/esm/formControls/Input/property.js +36 -54
- package/dist/esm/formControls/Input/runtime.js +12 -24
- package/dist/esm/formControls/Number/designer.js +15 -26
- package/dist/esm/formControls/Number/property.js +39 -62
- package/dist/esm/formControls/Number/runtime.js +12 -24
- package/dist/esm/formControls/OrganizationSelection/designer.js +15 -26
- package/dist/esm/formControls/OrganizationSelection/property.js +44 -74
- package/dist/esm/formControls/OrganizationSelection/runtime.js +12 -24
- package/dist/esm/formControls/Radio/designer.js +15 -26
- package/dist/esm/formControls/Radio/property.js +28 -49
- package/dist/esm/formControls/Radio/runtime.js +12 -24
- package/dist/esm/formControls/RichText/designer.js +15 -26
- package/dist/esm/formControls/RichText/property.js +29 -44
- package/dist/esm/formControls/RichText/runtime.js +12 -24
- package/dist/esm/formControls/Score/designer.js +15 -26
- package/dist/esm/formControls/Score/property.js +27 -43
- package/dist/esm/formControls/Score/runtime.js +12 -24
- package/dist/esm/formControls/SearchDateRange/designer.js +15 -26
- package/dist/esm/formControls/SearchDateRange/property.js +25 -44
- package/dist/esm/formControls/SearchDateRange/runtime.js +12 -24
- package/dist/esm/formControls/SearchInput/designer.js +14 -26
- 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 +15 -26
- package/dist/esm/formControls/SearchNumberRange/property.js +22 -37
- package/dist/esm/formControls/SearchNumberRange/runtime.js +12 -24
- package/dist/esm/formControls/Select/designer.js +15 -26
- package/dist/esm/formControls/Select/property.js +31 -53
- package/dist/esm/formControls/Select/runtime.js +12 -24
- package/dist/esm/formControls/SelectMultiple/designer.js +15 -26
- package/dist/esm/formControls/SelectMultiple/property.js +33 -53
- package/dist/esm/formControls/SelectMultiple/runtime.js +12 -24
- package/dist/esm/formControls/SelectRelation/designer.js +15 -26
- package/dist/esm/formControls/SelectRelation/property.js +38 -63
- package/dist/esm/formControls/SelectRelation/runtime.js +12 -24
- package/dist/esm/formControls/Textarea/designer.js +15 -26
- package/dist/esm/formControls/Textarea/property.js +33 -49
- package/dist/esm/formControls/Textarea/runtime.js +12 -24
- package/dist/esm/formControls/Tree/designer.js +15 -26
- package/dist/esm/formControls/Tree/property.js +29 -57
- package/dist/esm/formControls/Tree/runtime.js +12 -24
- package/dist/esm/formControls/VueFormItem/designer.js +15 -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 +15 -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 +15 -26
- package/dist/esm/formControls/WPS/property.js +25 -49
- package/dist/esm/formControls/WPS/runtime.js +12 -24
- package/dist/esm/framework.js +37 -2
- package/dist/esm/layoutControls/ActionBar/designer.js +14 -26
- 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 -25
- 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 +15 -26
- package/dist/esm/layoutControls/CardGroup/property.js +18 -34
- package/dist/esm/layoutControls/CardGroup/runtime.js +12 -24
- package/dist/esm/layoutControls/Col/designer.js +15 -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 -26
- package/dist/esm/layoutControls/DataView/property.js +22 -39
- package/dist/esm/layoutControls/DataView/runtime.js +12 -24
- package/dist/esm/layoutControls/Grid/designer.js +15 -25
- package/dist/esm/layoutControls/Grid/runtime.js +12 -23
- package/dist/esm/layoutControls/GridLayoutContainer/designer.js +15 -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 +15 -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 +15 -26
- package/dist/esm/layoutControls/ListView/property.js +51 -80
- package/dist/esm/layoutControls/ListView/runtime.js +12 -24
- package/dist/esm/layoutControls/Page/designer.js +14 -25
- 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 -25
- 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 -25
- 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 +15 -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 +15 -26
- package/dist/esm/layoutControls/SubTableColumn/property.js +27 -46
- package/dist/esm/layoutControls/SubTableColumn/runtime.js +12 -24
- package/dist/esm/layoutControls/SubTableRow/designer.js +15 -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 +15 -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 +16 -28
- package/dist/esm/layoutControls/TabPane/property.js +17 -29
- package/dist/esm/layoutControls/TabPane/runtime.js +12 -24
- package/dist/esm/layoutControls/Toolbox/designer.js +15 -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 +17 -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 -27
- package/dist/esm/listControls/SubTable/property.js +75 -122
- 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 -51
- package/dist/esm/searchControls/SimpleSearch/runtime.js +12 -25
- package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +3 -3
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +15 -27
- package/dist/esm/wrapControls/GridLayoutWrap/property.js +12 -24
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +12 -24
- package/dist/index.umd.js +1 -43
- package/dist/types/baseControls/ReferenceList/designer.d.ts +14 -0
- package/dist/types/baseControls/ReferenceList/index.d.ts +12 -0
- package/dist/types/baseControls/ReferenceList/property.d.ts +22 -0
- package/dist/types/baseControls/ReferenceList/runtime.d.ts +9 -0
- package/dist/types/baseControls/ReferenceList/types.d.ts +0 -0
- package/dist/types/baseControls/index.d.ts +1 -0
- package/dist/types/columnControls/FileColumn/property.d.ts +1 -0
- package/dist/types/formControls/Attachment/property.d.ts +1 -0
- package/dist/types/framework.d.ts +16 -1
- package/dist/types/type.d.ts +2 -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");
|
|
@@ -73,41 +77,26 @@ 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
|
|
88
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
101
89
|
import AddressProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
102
91
|
var AddressControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
103
92
|
"use strict";
|
|
104
93
|
_inherits(AddressControl, DesignerFormControl);
|
|
105
|
-
var _super = _create_super(AddressControl);
|
|
106
94
|
function AddressControl(props) {
|
|
107
95
|
_class_call_check(this, AddressControl);
|
|
108
96
|
var _this;
|
|
109
|
-
_this =
|
|
110
|
-
|
|
97
|
+
_this = _call_super(this, AddressControl, [
|
|
98
|
+
props
|
|
99
|
+
]), _define_property(_this, "props", void 0);
|
|
111
100
|
_this.props = new AddressProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
112
101
|
return _this;
|
|
113
102
|
}
|
|
@@ -115,7 +104,7 @@ var AddressControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
115
104
|
{
|
|
116
105
|
key: "controlName",
|
|
117
106
|
get: function get() {
|
|
118
|
-
return
|
|
107
|
+
return getLocaleText('CMD.address', null, '地址');
|
|
119
108
|
}
|
|
120
109
|
},
|
|
121
110
|
{
|
|
@@ -4,6 +4,10 @@ function _assert_this_initialized(self) {
|
|
|
4
4
|
}
|
|
5
5
|
return self;
|
|
6
6
|
}
|
|
7
|
+
function _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
7
11
|
function _class_call_check(instance, Constructor) {
|
|
8
12
|
if (!(instance instanceof Constructor)) {
|
|
9
13
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -59,40 +63,25 @@ 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, BaseControlPropertyRuntimeRules, AddressValue } from '@byteluck-fe/model-driven-core';
|
|
86
74
|
import AddressControl from './designer';
|
|
87
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
88
76
|
var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
89
77
|
"use strict";
|
|
90
78
|
_inherits(AddressControlPropertyRuntimeRules, BaseControlPropertyRuntimeRules);
|
|
91
|
-
var _super = _create_super(AddressControlPropertyRuntimeRules);
|
|
92
79
|
function AddressControlPropertyRuntimeRules(props) {
|
|
93
80
|
_class_call_check(this, AddressControlPropertyRuntimeRules);
|
|
94
81
|
var _this;
|
|
95
|
-
_this =
|
|
82
|
+
_this = _call_super(this, AddressControlPropertyRuntimeRules, [
|
|
83
|
+
props
|
|
84
|
+
]);
|
|
96
85
|
if (_this[0] !== undefined) {
|
|
97
86
|
_this[0].type = 'object';
|
|
98
87
|
}
|
|
@@ -103,7 +92,7 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
103
92
|
province: {
|
|
104
93
|
type: 'string',
|
|
105
94
|
required: props.required,
|
|
106
|
-
message:
|
|
95
|
+
message: getLocaleText('CMD.pleaseSelectProvince', null, '请选择省')
|
|
107
96
|
}
|
|
108
97
|
}
|
|
109
98
|
};
|
|
@@ -111,14 +100,14 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
111
100
|
valueValidate.fields.city = {
|
|
112
101
|
type: 'string',
|
|
113
102
|
required: props.required,
|
|
114
|
-
message:
|
|
103
|
+
message: getLocaleText('CMD.pleaseSelectCity', null, '请选择市')
|
|
115
104
|
};
|
|
116
105
|
}
|
|
117
106
|
if (props.addressType.includes('district')) {
|
|
118
107
|
valueValidate.fields.district = {
|
|
119
108
|
type: 'string',
|
|
120
109
|
required: props.required,
|
|
121
|
-
message:
|
|
110
|
+
message: getLocaleText('CMD.pleaseSelectDistrict', null, '请选择区')
|
|
122
111
|
};
|
|
123
112
|
}
|
|
124
113
|
_this.push(valueValidate);
|
|
@@ -133,22 +122,20 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
133
122
|
*/ var AddressProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
134
123
|
"use strict";
|
|
135
124
|
_inherits(AddressProperty, BaseControlProperty);
|
|
136
|
-
var _super = _create_super(AddressProperty);
|
|
137
125
|
function AddressProperty(props) {
|
|
138
126
|
_class_call_check(this, AddressProperty);
|
|
139
127
|
var _this;
|
|
140
|
-
_this =
|
|
141
|
-
|
|
128
|
+
_this = _call_super(this, AddressProperty, [
|
|
129
|
+
props
|
|
130
|
+
]), /**
|
|
142
131
|
* 默认值类型 default固定地址 current当前定位
|
|
143
132
|
* @defaultValue 'default'
|
|
144
|
-
*/ _define_property(
|
|
145
|
-
/**
|
|
133
|
+
*/ _define_property(_this, "defaultValueType", void 0), /**
|
|
146
134
|
* 默认值
|
|
147
|
-
*/ _define_property(
|
|
148
|
-
/**
|
|
135
|
+
*/ _define_property(_this, "defaultValue", void 0), /**
|
|
149
136
|
* 地址类型
|
|
150
137
|
* @defaultValue ['province', 'city', 'district']
|
|
151
|
-
*/ _define_property(
|
|
138
|
+
*/ _define_property(_this, "addressType", void 0);
|
|
152
139
|
var _props_caption;
|
|
153
140
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AddressControl.controlName;
|
|
154
141
|
var _props_defaultValueType;
|
|
@@ -162,7 +149,7 @@ var AddressControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPrope
|
|
|
162
149
|
var _props_defaultValue;
|
|
163
150
|
_this.defaultValue = new AddressValue((_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : {});
|
|
164
151
|
var _props_placeholder;
|
|
165
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
152
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseChooseAddress', null, '请选择地址');
|
|
166
153
|
return _this;
|
|
167
154
|
}
|
|
168
155
|
return AddressProperty;
|
|
@@ -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 AddressProperty from './property';
|
|
|
102
90
|
var AddressControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
103
91
|
"use strict";
|
|
104
92
|
_inherits(AddressControl, RuntimeFormControl);
|
|
105
|
-
var _super = _create_super(AddressControl);
|
|
106
93
|
function AddressControl(props) {
|
|
107
94
|
_class_call_check(this, AddressControl);
|
|
108
95
|
var _this;
|
|
109
|
-
_this =
|
|
110
|
-
|
|
96
|
+
_this = _call_super(this, AddressControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "props", void 0);
|
|
111
99
|
_this.props = new AddressProperty(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,26 @@ 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
|
|
111
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
124
112
|
import AmountProperty from './property';
|
|
113
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
125
114
|
var AmountControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
126
115
|
"use strict";
|
|
127
116
|
_inherits(AmountControl, DesignerFormControl);
|
|
128
|
-
var _super = _create_super(AmountControl);
|
|
129
117
|
function AmountControl(props) {
|
|
130
118
|
_class_call_check(this, AmountControl);
|
|
131
119
|
var _this;
|
|
132
|
-
_this =
|
|
133
|
-
|
|
120
|
+
_this = _call_super(this, AmountControl, [
|
|
121
|
+
props
|
|
122
|
+
]), _define_property(_this, "props", void 0);
|
|
134
123
|
_this.props = new AmountProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
135
124
|
return _this;
|
|
136
125
|
}
|
|
@@ -151,7 +140,7 @@ var AmountControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
151
140
|
{
|
|
152
141
|
key: "controlName",
|
|
153
142
|
get: function get() {
|
|
154
|
-
return
|
|
143
|
+
return getLocaleText('CMD.amount', null, '金额');
|
|
155
144
|
}
|
|
156
145
|
},
|
|
157
146
|
{
|
|
@@ -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");
|
|
@@ -98,41 +102,25 @@ function _type_of(obj) {
|
|
|
98
102
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
99
103
|
}
|
|
100
104
|
function _is_native_reflect_construct() {
|
|
101
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
102
|
-
if (Reflect.construct.sham) return false;
|
|
103
|
-
if (typeof Proxy === "function") return true;
|
|
104
105
|
try {
|
|
105
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
function _create_super(Derived) {
|
|
112
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
113
|
-
return function _createSuperInternal() {
|
|
114
|
-
var Super = _get_prototype_of(Derived), result;
|
|
115
|
-
if (hasNativeReflectConstruct) {
|
|
116
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
117
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
118
|
-
} else {
|
|
119
|
-
result = Super.apply(this, arguments);
|
|
120
|
-
}
|
|
121
|
-
return _possible_constructor_return(this, result);
|
|
122
|
-
};
|
|
106
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
107
|
+
} catch (_) {}
|
|
108
|
+
return (_is_native_reflect_construct = function() {
|
|
109
|
+
return !!result;
|
|
110
|
+
})();
|
|
123
111
|
}
|
|
124
112
|
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, AMOUNT_TYPE, AmountDataBind, AmountValue, DataSourceBind, DisplayBoListItem, initOptions } from '@byteluck-fe/model-driven-core';
|
|
125
113
|
import AmountControl from './designer';
|
|
126
|
-
import {
|
|
114
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
127
115
|
var AmountPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
128
116
|
"use strict";
|
|
129
117
|
_inherits(AmountPropertyRules, OptionAndDataSourcePropertyRules);
|
|
130
|
-
var _super = _create_super(AmountPropertyRules);
|
|
131
118
|
function AmountPropertyRules(props) {
|
|
132
119
|
_class_call_check(this, AmountPropertyRules);
|
|
133
120
|
var _this;
|
|
134
|
-
_this =
|
|
135
|
-
|
|
121
|
+
_this = _call_super(this, AmountPropertyRules, [
|
|
122
|
+
props
|
|
123
|
+
]), _define_property(_this, "defaultValue", {
|
|
136
124
|
type: 'object',
|
|
137
125
|
fields: {
|
|
138
126
|
amount: [
|
|
@@ -140,27 +128,26 @@ var AmountPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRule
|
|
|
140
128
|
type: 'number',
|
|
141
129
|
min: undefined,
|
|
142
130
|
max: undefined,
|
|
143
|
-
message:
|
|
131
|
+
message: getLocaleText('CMD.pleaseEnterNumberRange', null, '请输入大于等于{min}且小于等于{max}的数值')
|
|
144
132
|
}
|
|
145
133
|
]
|
|
146
134
|
}
|
|
147
|
-
})
|
|
148
|
-
_define_property(_assert_this_initialized(_this), "rangeMax", {
|
|
135
|
+
}), _define_property(_this, "rangeMax", {
|
|
149
136
|
type: 'any'
|
|
150
137
|
});
|
|
151
138
|
var amountMax = props.rangeMax === '' ? undefined : props.rangeMax;
|
|
152
139
|
var amountMin = props.rangeMin === '' ? undefined : props.rangeMin;
|
|
153
140
|
_this.defaultValue.fields.amount[0].max = amountMax;
|
|
154
141
|
_this.defaultValue.fields.amount[0].min = amountMin;
|
|
155
|
-
_this.defaultValue.fields.amount[0].message =
|
|
142
|
+
_this.defaultValue.fields.amount[0].message = getLocaleText('CMD.pleaseEnterNumberRange', {
|
|
156
143
|
max: amountMax,
|
|
157
144
|
min: amountMin
|
|
158
|
-
});
|
|
145
|
+
}, '请输入大于等于{min}且小于等于{max}的数值');
|
|
159
146
|
if (amountMin && amountMax !== undefined) {
|
|
160
147
|
_this.rangeMax = {
|
|
161
148
|
type: 'number',
|
|
162
149
|
min: amountMin,
|
|
163
|
-
message:
|
|
150
|
+
message: getLocaleText('CMD.numberRangeSetError', null, '数值范围设置有误')
|
|
164
151
|
};
|
|
165
152
|
}
|
|
166
153
|
return _this;
|
|
@@ -170,11 +157,12 @@ var AmountPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRule
|
|
|
170
157
|
var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
171
158
|
"use strict";
|
|
172
159
|
_inherits(AmountPropertyRuntimeRules, BaseControlPropertyRuntimeRules);
|
|
173
|
-
var _super = _create_super(AmountPropertyRuntimeRules);
|
|
174
160
|
function AmountPropertyRuntimeRules(props) {
|
|
175
161
|
_class_call_check(this, AmountPropertyRuntimeRules);
|
|
176
162
|
var _this;
|
|
177
|
-
_this =
|
|
163
|
+
_this = _call_super(this, AmountPropertyRuntimeRules, [
|
|
164
|
+
props
|
|
165
|
+
]);
|
|
178
166
|
if (_this[0] !== undefined) {
|
|
179
167
|
_this[0].type = 'object';
|
|
180
168
|
}
|
|
@@ -191,10 +179,10 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
191
179
|
type: 'number',
|
|
192
180
|
min: amountMin,
|
|
193
181
|
max: amountMax,
|
|
194
|
-
message:
|
|
182
|
+
message: getLocaleText(amountMax === undefined ? 'CMD.pleaseEnterAValueGreaterThanMin' : amountMin === undefined ? 'CMD.pleaseEnterAValueLessThanMax' : 'CMD.pleaseEnterNumberRange', {
|
|
195
183
|
max: amountMax,
|
|
196
184
|
min: amountMin
|
|
197
|
-
})
|
|
185
|
+
}, amountMax === undefined ? '请输入大于等于{min}的数值' : amountMin === undefined ? '请输入小于等于{max}的数值' : '请输入大于等于{min}且小于等于{max}的数值')
|
|
198
186
|
}
|
|
199
187
|
],
|
|
200
188
|
currency: {
|
|
@@ -211,55 +199,44 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
211
199
|
*/ var AmountProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
212
200
|
"use strict";
|
|
213
201
|
_inherits(AmountProperty, BaseControlProperty);
|
|
214
|
-
var _super = _create_super(AmountProperty);
|
|
215
202
|
function AmountProperty(props) {
|
|
216
203
|
_class_call_check(this, AmountProperty);
|
|
217
204
|
var _this;
|
|
218
|
-
_this =
|
|
219
|
-
|
|
205
|
+
_this = _call_super(this, AmountProperty, [
|
|
206
|
+
props
|
|
207
|
+
]), /**
|
|
220
208
|
* 最小值
|
|
221
209
|
* @defaultValue ''
|
|
222
|
-
* */ _define_property(
|
|
223
|
-
/**
|
|
210
|
+
* */ _define_property(_this, "rangeMin", void 0), /**
|
|
224
211
|
* 最大值
|
|
225
212
|
* @defaultValue ''
|
|
226
|
-
* */ _define_property(
|
|
227
|
-
/**
|
|
213
|
+
* */ _define_property(_this, "rangeMax", void 0), /**
|
|
228
214
|
* 是否显示大写数字
|
|
229
215
|
* @defaultValue false
|
|
230
|
-
* */ _define_property(
|
|
231
|
-
/**
|
|
216
|
+
* */ _define_property(_this, "showUpperCase", void 0), /**
|
|
232
217
|
* 提交时选择币种
|
|
233
218
|
* @defaultValue false
|
|
234
|
-
* */ _define_property(
|
|
235
|
-
/**
|
|
219
|
+
* */ _define_property(_this, "submitSelectCurrency", void 0), /**
|
|
236
220
|
* 千分位展示
|
|
237
|
-
* */ _define_property(
|
|
238
|
-
/**
|
|
221
|
+
* */ _define_property(_this, "micrometer", void 0), /**
|
|
239
222
|
* 小数位数
|
|
240
223
|
* @defaultValue ''
|
|
241
|
-
*/ _define_property(
|
|
242
|
-
/**
|
|
224
|
+
*/ _define_property(_this, "precision", void 0), /**
|
|
243
225
|
* 单位位置 left right align-right
|
|
244
226
|
* @defaultValue 'right'
|
|
245
227
|
* @public
|
|
246
|
-
* */ _define_property(
|
|
247
|
-
/**
|
|
228
|
+
* */ _define_property(_this, "unitPosition", void 0), /**
|
|
248
229
|
* 选项配置 custom datasource
|
|
249
230
|
* @defaultValue 'datasource'
|
|
250
|
-
* */ _define_property(
|
|
251
|
-
/**
|
|
231
|
+
* */ _define_property(_this, "optionConfig", void 0), /**
|
|
252
232
|
* 金额和币种的数据绑定
|
|
253
|
-
* */ _define_property(
|
|
254
|
-
/**
|
|
233
|
+
* */ _define_property(_this, "dataBind", void 0), /**
|
|
255
234
|
* 币种的数据源绑定
|
|
256
|
-
* */ _define_property(
|
|
257
|
-
/**
|
|
235
|
+
* */ _define_property(_this, "datasourceBind", void 0), /**
|
|
258
236
|
* 默认值
|
|
259
|
-
* */ _define_property(
|
|
260
|
-
/**
|
|
237
|
+
* */ _define_property(_this, "defaultValue", void 0), /**
|
|
261
238
|
* 币种的默认选项
|
|
262
|
-
* */ _define_property(
|
|
239
|
+
* */ _define_property(_this, "options", void 0);
|
|
263
240
|
var _props_rangeMin;
|
|
264
241
|
_this.rangeMin = (_props_rangeMin = props === null || props === void 0 ? void 0 : props.rangeMin) !== null && _props_rangeMin !== void 0 ? _props_rangeMin : '';
|
|
265
242
|
var _props_rangeMax;
|
|
@@ -290,7 +267,7 @@ var AmountPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRunti
|
|
|
290
267
|
var _props_caption;
|
|
291
268
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : AmountControl.controlName;
|
|
292
269
|
var _props_placeholder;
|
|
293
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder :
|
|
270
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
294
271
|
var _props_submitSelectCurrency;
|
|
295
272
|
_this.submitSelectCurrency = (_props_submitSelectCurrency = props === null || props === void 0 ? void 0 : props.submitSelectCurrency) !== null && _props_submitSelectCurrency !== void 0 ? _props_submitSelectCurrency : false;
|
|
296
273
|
var _props_showUpperCase;
|
|
@@ -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 AmountProperty from './property';
|
|
|
102
90
|
var AmountControl = /*#__PURE__*/ function(RuntimeFormControl) {
|
|
103
91
|
"use strict";
|
|
104
92
|
_inherits(AmountControl, RuntimeFormControl);
|
|
105
|
-
var _super = _create_super(AmountControl);
|
|
106
93
|
function AmountControl(props) {
|
|
107
94
|
_class_call_check(this, AmountControl);
|
|
108
95
|
var _this;
|
|
109
|
-
_this =
|
|
110
|
-
|
|
96
|
+
_this = _call_super(this, AmountControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "props", void 0);
|
|
111
99
|
_this.props = new AmountProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
112
100
|
return _this;
|
|
113
101
|
}
|