@byteluck-fe/model-driven-controls 6.2.0-beta.9 → 6.2.0-cyj.2
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/api-doc-index.js +1 -1
- package/dist/esm/baseControls/BatchDeleteButton/designer.js +12 -20
- package/dist/esm/baseControls/BatchDeleteButton/property.js +22 -38
- package/dist/esm/baseControls/BatchDeleteButton/runtime.js +12 -20
- package/dist/esm/baseControls/BatchPrintListButton/designer.js +12 -20
- package/dist/esm/baseControls/BatchPrintListButton/property.js +18 -29
- package/dist/esm/baseControls/BatchPrintListButton/runtime.js +12 -20
- package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +12 -20
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +14 -21
- package/dist/esm/baseControls/BatchPrintRecordListButton/runtime.js +12 -20
- package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +12 -20
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +19 -32
- package/dist/esm/baseControls/BatchSubmissionListButton/runtime.js +12 -20
- package/dist/esm/baseControls/Button/designer.js +12 -20
- package/dist/esm/baseControls/Button/property.js +22 -38
- package/dist/esm/baseControls/Button/runtime.js +12 -20
- package/dist/esm/baseControls/Comment/designer.js +12 -20
- package/dist/esm/baseControls/Comment/property.js +14 -22
- package/dist/esm/baseControls/Comment/runtime.js +12 -20
- package/dist/esm/baseControls/CreateFormListButton/designer.js +12 -20
- package/dist/esm/baseControls/CreateFormListButton/property.js +17 -28
- package/dist/esm/baseControls/CreateFormListButton/runtime.js +12 -20
- package/dist/esm/baseControls/Dashboard/designer.js +12 -20
- package/dist/esm/baseControls/Dashboard/property.js +21 -36
- package/dist/esm/baseControls/Dashboard/runtime.js +12 -20
- package/dist/esm/baseControls/Divider/designer.js +12 -20
- package/dist/esm/baseControls/Divider/property.js +16 -25
- package/dist/esm/baseControls/Divider/runtime.js +12 -20
- package/dist/esm/baseControls/ExportListButton/designer.js +12 -20
- package/dist/esm/baseControls/ExportListButton/property.js +18 -29
- package/dist/esm/baseControls/ExportListButton/runtime.js +12 -20
- package/dist/esm/baseControls/ExportRecordListButton/designer.js +12 -20
- package/dist/esm/baseControls/ExportRecordListButton/property.js +14 -21
- package/dist/esm/baseControls/ExportRecordListButton/runtime.js +12 -20
- package/dist/esm/baseControls/FormSelectButton/designer.js +12 -20
- package/dist/esm/baseControls/FormSelectButton/property.js +16 -26
- package/dist/esm/baseControls/FormSelectButton/runtime.js +12 -20
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +12 -20
- package/dist/esm/baseControls/ImportRecordListButton/property.js +18 -29
- package/dist/esm/baseControls/ImportRecordListButton/runtime.js +12 -20
- package/dist/esm/baseControls/InvoiceCheckButton/designer.js +12 -20
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +23 -39
- package/dist/esm/baseControls/InvoiceCheckButton/runtime.js +12 -20
- package/dist/esm/baseControls/ListSelectButton/designer.js +12 -20
- package/dist/esm/baseControls/ListSelectButton/property.js +18 -30
- package/dist/esm/baseControls/ListSelectButton/runtime.js +12 -20
- package/dist/esm/baseControls/ListViewSelect/designer.js +12 -20
- package/dist/esm/baseControls/ListViewSelect/property.js +16 -25
- package/dist/esm/baseControls/ListViewSelect/runtime.js +12 -20
- package/dist/esm/baseControls/OperationButton/designer.js +12 -20
- package/dist/esm/baseControls/OperationButton/property.js +19 -32
- package/dist/esm/baseControls/OperationButton/runtime.js +12 -20
- package/dist/esm/baseControls/Pagination/designer.js +12 -20
- package/dist/esm/baseControls/Pagination/property.js +12 -20
- package/dist/esm/baseControls/Pagination/runtime.js +12 -20
- package/dist/esm/baseControls/ReferenceList/designer.js +12 -20
- package/dist/esm/baseControls/ReferenceList/property.js +19 -32
- package/dist/esm/baseControls/ReferenceList/runtime.js +12 -20
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +12 -20
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +14 -21
- package/dist/esm/baseControls/SubmissionRecordListButton/runtime.js +12 -20
- package/dist/esm/baseControls/Text/designer.js +12 -20
- package/dist/esm/baseControls/Text/property.js +19 -32
- package/dist/esm/baseControls/Text/runtime.js +12 -20
- package/dist/esm/baseControls/TextOcrButton/designer.js +12 -20
- package/dist/esm/baseControls/TextOcrButton/property.js +23 -39
- package/dist/esm/baseControls/TextOcrButton/runtime.js +12 -20
- package/dist/esm/baseControls/Title/designer.js +12 -20
- package/dist/esm/baseControls/Title/property.js +16 -26
- package/dist/esm/baseControls/Title/runtime.js +12 -20
- package/dist/esm/baseControls/index.js +0 -1
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +12 -20
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +16 -26
- package/dist/esm/columnControls/ApprovalStatusColumn/runtime.js +12 -20
- package/dist/esm/columnControls/ArrayColumn/designer.js +12 -20
- package/dist/esm/columnControls/ArrayColumn/property.js +17 -28
- package/dist/esm/columnControls/ArrayColumn/runtime.js +12 -20
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +12 -20
- package/dist/esm/columnControls/AutoNumberColumn/property.js +15 -24
- package/dist/esm/columnControls/AutoNumberColumn/runtime.js +12 -20
- package/dist/esm/columnControls/CustomColumn/designer.js +17 -29
- package/dist/esm/columnControls/CustomColumn/property.js +16 -26
- package/dist/esm/columnControls/CustomColumn/runtime.js +12 -20
- package/dist/esm/columnControls/DecimalColumn/designer.js +15 -26
- package/dist/esm/columnControls/DecimalColumn/property.js +20 -34
- package/dist/esm/columnControls/DecimalColumn/runtime.js +12 -20
- package/dist/esm/columnControls/DepartmentColumn/designer.js +15 -26
- package/dist/esm/columnControls/DepartmentColumn/property.js +15 -24
- package/dist/esm/columnControls/DepartmentColumn/runtime.js +12 -20
- package/dist/esm/columnControls/EmployeeColumn/designer.js +12 -20
- package/dist/esm/columnControls/EmployeeColumn/property.js +15 -24
- package/dist/esm/columnControls/EmployeeColumn/runtime.js +12 -20
- package/dist/esm/columnControls/FileColumn/designer.js +12 -20
- package/dist/esm/columnControls/FileColumn/property.js +15 -24
- package/dist/esm/columnControls/FileColumn/runtime.js +12 -20
- package/dist/esm/columnControls/GroupColumn/designer.js +12 -20
- package/dist/esm/columnControls/GroupColumn/property.js +13 -19
- package/dist/esm/columnControls/GroupColumn/runtime.js +12 -20
- package/dist/esm/columnControls/ImageColumn/designer.js +12 -20
- package/dist/esm/columnControls/ImageColumn/property.js +13 -19
- package/dist/esm/columnControls/ImageColumn/runtime.js +12 -20
- package/dist/esm/columnControls/LocationColumn/designer.js +12 -20
- package/dist/esm/columnControls/LocationColumn/property.js +15 -24
- package/dist/esm/columnControls/LocationColumn/runtime.js +12 -20
- package/dist/esm/columnControls/OperationColumn/designer.js +33 -39
- package/dist/esm/columnControls/OperationColumn/property.js +18 -30
- package/dist/esm/columnControls/OperationColumn/runtime.js +12 -20
- package/dist/esm/columnControls/OrderColumn/designer.js +12 -20
- package/dist/esm/columnControls/OrderColumn/property.js +19 -32
- package/dist/esm/columnControls/OrderColumn/runtime.js +12 -20
- package/dist/esm/columnControls/PeopleColumn/designer.js +12 -20
- package/dist/esm/columnControls/PeopleColumn/property.js +13 -19
- package/dist/esm/columnControls/PeopleColumn/runtime.js +12 -20
- package/dist/esm/columnControls/TextColumn/designer.js +15 -26
- package/dist/esm/columnControls/TextColumn/property.js +17 -28
- package/dist/esm/columnControls/TextColumn/runtime.js +12 -20
- package/dist/esm/columnControls/TimescopeColumn/designer.js +15 -26
- package/dist/esm/columnControls/TimescopeColumn/property.js +17 -28
- package/dist/esm/columnControls/TimescopeColumn/runtime.js +12 -20
- package/dist/esm/columnControls/TimestampColumn/designer.js +15 -26
- package/dist/esm/columnControls/TimestampColumn/property.js +17 -28
- package/dist/esm/columnControls/TimestampColumn/runtime.js +12 -20
- package/dist/esm/columnControls/VarcharColumn/designer.js +12 -20
- package/dist/esm/columnControls/VarcharColumn/property.js +19 -32
- package/dist/esm/columnControls/VarcharColumn/runtime.js +12 -20
- package/dist/esm/formControls/Address/designer.js +12 -20
- package/dist/esm/formControls/Address/property.js +18 -30
- package/dist/esm/formControls/Address/runtime.js +12 -20
- package/dist/esm/formControls/Amount/designer.js +15 -26
- package/dist/esm/formControls/Amount/property.js +27 -47
- package/dist/esm/formControls/Amount/runtime.js +12 -20
- package/dist/esm/formControls/Attachment/designer.js +12 -20
- package/dist/esm/formControls/Attachment/property.js +37 -60
- package/dist/esm/formControls/Attachment/runtime.js +12 -20
- package/dist/esm/formControls/AutoNumber/designer.js +12 -20
- package/dist/esm/formControls/AutoNumber/property.js +16 -26
- package/dist/esm/formControls/AutoNumber/runtime.js +12 -20
- package/dist/esm/formControls/Calc/designer.js +15 -26
- package/dist/esm/formControls/Calc/property.js +22 -38
- package/dist/esm/formControls/Calc/runtime.js +12 -20
- package/dist/esm/formControls/Checkbox/designer.js +12 -20
- package/dist/esm/formControls/Checkbox/property.js +28 -49
- package/dist/esm/formControls/Checkbox/runtime.js +12 -20
- package/dist/esm/formControls/DatePicker/designer.js +15 -26
- package/dist/esm/formControls/DatePicker/property.js +27 -47
- package/dist/esm/formControls/DatePicker/runtime.js +12 -20
- package/dist/esm/formControls/DateRange/designer.js +15 -26
- package/dist/esm/formControls/DateRange/property.js +25 -43
- package/dist/esm/formControls/DateRange/runtime.js +12 -20
- package/dist/esm/formControls/Department/designer.js +15 -26
- package/dist/esm/formControls/Department/property.js +24 -42
- package/dist/esm/formControls/Department/runtime.js +12 -20
- package/dist/esm/formControls/Department2/designer.js +15 -26
- package/dist/esm/formControls/Department2/property.js +31 -55
- package/dist/esm/formControls/Department2/runtime.js +12 -20
- package/dist/esm/formControls/ElectronicSignature/designer.js +12 -20
- package/dist/esm/formControls/ElectronicSignature/property.js +19 -32
- package/dist/esm/formControls/ElectronicSignature/runtime.js +12 -20
- package/dist/esm/formControls/Employee/designer.js +12 -20
- package/dist/esm/formControls/Employee/property.js +22 -38
- package/dist/esm/formControls/Employee/runtime.js +12 -20
- package/dist/esm/formControls/Employee2/designer.js +12 -20
- package/dist/esm/formControls/Employee2/property.js +29 -52
- package/dist/esm/formControls/Employee2/runtime.js +12 -20
- package/dist/esm/formControls/Image/designer.js +20 -28
- package/dist/esm/formControls/Image/property.js +19 -32
- package/dist/esm/formControls/Image/runtime.js +12 -20
- package/dist/esm/formControls/Input/designer.js +12 -20
- package/dist/esm/formControls/Input/property.js +23 -40
- package/dist/esm/formControls/Input/runtime.js +12 -20
- package/dist/esm/{baseControls → formControls}/Link/designer.js +20 -24
- package/dist/esm/{baseControls → formControls}/Link/property.js +20 -30
- package/dist/esm/{baseControls → formControls}/Link/runtime.js +12 -20
- package/dist/esm/formControls/Number/designer.js +15 -26
- package/dist/esm/formControls/Number/property.js +26 -46
- package/dist/esm/formControls/Number/runtime.js +12 -20
- package/dist/esm/formControls/OrganizationSelection/designer.js +15 -26
- package/dist/esm/formControls/OrganizationSelection/property.js +31 -56
- package/dist/esm/formControls/OrganizationSelection/runtime.js +12 -20
- package/dist/esm/formControls/Radio/designer.js +12 -20
- package/dist/esm/formControls/Radio/property.js +25 -44
- package/dist/esm/formControls/Radio/runtime.js +12 -20
- package/dist/esm/formControls/RichText/designer.js +12 -20
- package/dist/esm/formControls/RichText/property.js +23 -40
- package/dist/esm/formControls/RichText/runtime.js +12 -20
- package/dist/esm/formControls/Score/designer.js +19 -28
- package/dist/esm/formControls/Score/property.js +20 -33
- package/dist/esm/formControls/Score/runtime.js +12 -20
- package/dist/esm/formControls/SearchDateRange/designer.js +12 -20
- package/dist/esm/formControls/SearchDateRange/property.js +26 -45
- package/dist/esm/formControls/SearchDateRange/runtime.js +12 -20
- package/dist/esm/formControls/SearchInput/designer.js +12 -20
- package/dist/esm/formControls/SearchInput/property.js +11 -17
- package/dist/esm/formControls/SearchInput/runtime.js +12 -20
- package/dist/esm/formControls/SearchNumberRange/designer.js +12 -20
- package/dist/esm/formControls/SearchNumberRange/property.js +19 -32
- package/dist/esm/formControls/SearchNumberRange/runtime.js +12 -20
- package/dist/esm/formControls/Select/designer.js +12 -20
- package/dist/esm/formControls/Select/property.js +24 -42
- package/dist/esm/formControls/Select/runtime.js +12 -20
- package/dist/esm/formControls/SelectMultiple/designer.js +12 -20
- package/dist/esm/formControls/SelectMultiple/property.js +23 -40
- package/dist/esm/formControls/SelectMultiple/runtime.js +12 -20
- package/dist/esm/formControls/SelectRelation/designer.js +15 -26
- package/dist/esm/formControls/SelectRelation/property.js +26 -46
- package/dist/esm/formControls/SelectRelation/runtime.js +12 -20
- package/dist/esm/formControls/Textarea/designer.js +12 -20
- package/dist/esm/formControls/Textarea/property.js +23 -40
- package/dist/esm/formControls/Textarea/runtime.js +12 -20
- package/dist/esm/formControls/Tree/designer.js +14 -21
- package/dist/esm/formControls/Tree/property.js +55 -58
- package/dist/esm/formControls/Tree/runtime.js +12 -20
- package/dist/esm/formControls/VueFormItem/designer.js +12 -20
- package/dist/esm/formControls/VueFormItem/property.js +18 -30
- package/dist/esm/formControls/VueFormItem/runtime.js +12 -20
- package/dist/esm/formControls/VuePage/designer.js +12 -20
- package/dist/esm/formControls/VuePage/property.js +18 -30
- package/dist/esm/formControls/VuePage/runtime.js +12 -20
- package/dist/esm/formControls/WPS/designer.js +21 -29
- package/dist/esm/formControls/WPS/property.js +25 -44
- package/dist/esm/formControls/WPS/runtime.js +12 -20
- package/dist/esm/formControls/index.js +1 -0
- package/dist/esm/framework.js +71 -119
- package/dist/esm/layoutControls/ActionBar/designer.js +14 -22
- package/dist/esm/layoutControls/ActionBar/property.js +16 -26
- package/dist/esm/layoutControls/ActionBar/runtime.js +14 -22
- package/dist/esm/layoutControls/AdvancedContainer/Setting.js +4 -2
- package/dist/esm/layoutControls/AdvancedContainer/designer.js +11 -17
- package/dist/esm/layoutControls/AdvancedContainer/property.js +12 -20
- package/dist/esm/layoutControls/AdvancedContainer/runtime.js +11 -17
- package/dist/esm/layoutControls/CardGroup/designer.js +12 -20
- package/dist/esm/layoutControls/CardGroup/property.js +16 -26
- package/dist/esm/layoutControls/CardGroup/runtime.js +12 -20
- package/dist/esm/layoutControls/Col/designer.js +12 -20
- package/dist/esm/layoutControls/Col/property.js +17 -28
- package/dist/esm/layoutControls/Col/runtime.js +12 -20
- package/dist/esm/layoutControls/DataView/designer.js +12 -20
- package/dist/esm/layoutControls/DataView/property.js +20 -34
- package/dist/esm/layoutControls/DataView/runtime.js +12 -20
- package/dist/esm/layoutControls/Grid/designer.js +12 -20
- package/dist/esm/layoutControls/Grid/runtime.js +11 -17
- package/dist/esm/layoutControls/GridLayoutContainer/designer.js +12 -20
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +15 -24
- package/dist/esm/layoutControls/GridLayoutContainer/runtime.js +12 -20
- package/dist/esm/layoutControls/GridRow/designer.js +12 -20
- package/dist/esm/layoutControls/GridRow/property.js +11 -17
- package/dist/esm/layoutControls/GridRow/runtime.js +11 -17
- package/dist/esm/layoutControls/GridTableColumn/designer.js +12 -20
- package/dist/esm/layoutControls/GridTableColumn/property.js +23 -40
- package/dist/esm/layoutControls/GridTableColumn/runtime.js +12 -20
- package/dist/esm/layoutControls/ListView/designer.js +12 -20
- package/dist/esm/layoutControls/ListView/property.js +27 -48
- package/dist/esm/layoutControls/ListView/runtime.js +12 -20
- package/dist/esm/layoutControls/Page/Setting.js +4 -2
- package/dist/esm/layoutControls/Page/designer.js +11 -17
- package/dist/esm/layoutControls/Page/property.js +14 -22
- package/dist/esm/layoutControls/Page/runtime.js +11 -17
- package/dist/esm/layoutControls/Position/designer.js +11 -17
- package/dist/esm/layoutControls/Position/property.js +17 -28
- package/dist/esm/layoutControls/Position/runtime.js +11 -17
- package/dist/esm/layoutControls/PositioningContainer/Setting.js +4 -2
- package/dist/esm/layoutControls/PositioningContainer/designer.js +11 -17
- package/dist/esm/layoutControls/PositioningContainer/property.js +11 -17
- package/dist/esm/layoutControls/PositioningContainer/runtime.js +11 -17
- package/dist/esm/layoutControls/Row/designer.js +12 -20
- package/dist/esm/layoutControls/Row/property.js +15 -24
- package/dist/esm/layoutControls/Row/runtime.js +12 -20
- package/dist/esm/layoutControls/Step/designer.js +14 -22
- package/dist/esm/layoutControls/Step/property.js +18 -30
- package/dist/esm/layoutControls/Step/runtime.js +12 -20
- package/dist/esm/layoutControls/StepPane/designer.js +12 -20
- package/dist/esm/layoutControls/StepPane/property.js +21 -36
- package/dist/esm/layoutControls/StepPane/runtime.js +12 -20
- package/dist/esm/layoutControls/SubTableColumn/designer.js +12 -20
- package/dist/esm/layoutControls/SubTableColumn/property.js +18 -30
- package/dist/esm/layoutControls/SubTableColumn/runtime.js +12 -20
- package/dist/esm/layoutControls/SubTableRow/designer.js +12 -20
- package/dist/esm/layoutControls/SubTableRow/property.js +11 -17
- package/dist/esm/layoutControls/SubTableRow/runtime.js +12 -20
- package/dist/esm/layoutControls/Tab/designer.js +14 -22
- package/dist/esm/layoutControls/Tab/property.js +14 -22
- package/dist/esm/layoutControls/Tab/runtime.js +12 -20
- package/dist/esm/layoutControls/TabPane/designer.js +12 -20
- package/dist/esm/layoutControls/TabPane/property.js +14 -22
- package/dist/esm/layoutControls/TabPane/runtime.js +12 -20
- package/dist/esm/layoutControls/TableLayout/designer.js +12 -20
- package/dist/esm/layoutControls/TableLayout/property.js +28 -50
- package/dist/esm/layoutControls/TableLayout/runtime.js +12 -20
- package/dist/esm/layoutControls/TableLayoutCol/designer.js +12 -20
- package/dist/esm/layoutControls/TableLayoutCol/property.js +23 -40
- package/dist/esm/layoutControls/TableLayoutCol/runtime.js +12 -20
- package/dist/esm/layoutControls/TableLayoutRow/designer.js +12 -20
- package/dist/esm/layoutControls/TableLayoutRow/property.js +15 -24
- package/dist/esm/layoutControls/TableLayoutRow/runtime.js +12 -20
- package/dist/esm/layoutControls/TableLayoutWrapper/designer.js +12 -20
- package/dist/esm/layoutControls/TableLayoutWrapper/property.js +16 -26
- package/dist/esm/layoutControls/TableLayoutWrapper/runtime.js +12 -20
- package/dist/esm/layoutControls/Toolbox/designer.js +12 -20
- package/dist/esm/layoutControls/Toolbox/property.js +11 -17
- package/dist/esm/layoutControls/Toolbox/runtime.js +11 -17
- package/dist/esm/listControls/GridTable/designer.js +37 -45
- package/dist/esm/listControls/GridTable/property.js +27 -39
- package/dist/esm/listControls/GridTable/runtime.js +12 -20
- package/dist/esm/listControls/SubTable/designer.js +12 -20
- package/dist/esm/listControls/SubTable/property.js +47 -88
- package/dist/esm/listControls/SubTable/runtime.js +12 -20
- package/dist/esm/searchControls/SimpleSearch/designer.js +12 -20
- package/dist/esm/searchControls/SimpleSearch/property.js +25 -44
- package/dist/esm/searchControls/SimpleSearch/runtime.js +14 -22
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +20 -28
- package/dist/esm/wrapControls/GridLayoutWrap/property.js +14 -22
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +20 -28
- package/dist/index.umd.js +8 -1
- package/dist/types/api-doc-index.d.ts +1 -1
- package/dist/types/baseControls/index.d.ts +0 -1
- package/dist/types/{baseControls → formControls}/Link/designer.d.ts +2 -2
- package/dist/types/{baseControls → formControls}/Link/property.d.ts +2 -2
- package/dist/types/formControls/Tree/property.d.ts +31 -0
- package/dist/types/formControls/index.d.ts +1 -0
- package/dist/types/framework.d.ts +19 -19
- package/dist/types/type.d.ts +4 -4
- package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +1 -1
- package/package.json +5 -5
- /package/dist/esm/{baseControls → formControls}/Link/index.js +0 -0
- /package/dist/esm/{baseControls → formControls}/Link/types.js +0 -0
- /package/dist/types/{baseControls → formControls}/Link/index.d.ts +0 -0
- /package/dist/types/{baseControls → formControls}/Link/runtime.d.ts +0 -0
- /package/dist/types/{baseControls → formControls}/Link/types.d.ts +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
function _assert_this_initialized(self) {
|
|
2
|
-
if (self === void 0)
|
|
3
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
-
}
|
|
2
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5
3
|
return self;
|
|
6
4
|
}
|
|
7
5
|
function _call_super(_this, derived, args) {
|
|
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
|
|
|
9
7
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
8
|
}
|
|
11
9
|
function _class_call_check(instance, Constructor) {
|
|
12
|
-
if (!(instance instanceof Constructor))
|
|
13
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14
|
-
}
|
|
10
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15
11
|
}
|
|
16
12
|
function _defineProperties(target, props) {
|
|
17
13
|
for(var i = 0; i < props.length; i++){
|
|
@@ -35,9 +31,7 @@ function _define_property(obj, key, value) {
|
|
|
35
31
|
configurable: true,
|
|
36
32
|
writable: true
|
|
37
33
|
});
|
|
38
|
-
} else
|
|
39
|
-
obj[key] = value;
|
|
40
|
-
}
|
|
34
|
+
} else obj[key] = value;
|
|
41
35
|
return obj;
|
|
42
36
|
}
|
|
43
37
|
function _get_prototype_of(o) {
|
|
@@ -59,10 +53,16 @@ function _inherits(subClass, superClass) {
|
|
|
59
53
|
});
|
|
60
54
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
55
|
}
|
|
56
|
+
function _is_native_reflect_construct() {
|
|
57
|
+
try {
|
|
58
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
59
|
+
} catch (_) {}
|
|
60
|
+
return (_is_native_reflect_construct = function() {
|
|
61
|
+
return !!result;
|
|
62
|
+
})();
|
|
63
|
+
}
|
|
62
64
|
function _possible_constructor_return(self, call) {
|
|
63
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
64
|
-
return call;
|
|
65
|
-
}
|
|
65
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
66
66
|
return _assert_this_initialized(self);
|
|
67
67
|
}
|
|
68
68
|
function _set_prototype_of(o, p) {
|
|
@@ -76,14 +76,6 @@ function _type_of(obj) {
|
|
|
76
76
|
"@swc/helpers - typeof";
|
|
77
77
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
78
|
}
|
|
79
|
-
function _is_native_reflect_construct() {
|
|
80
|
-
try {
|
|
81
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
-
} catch (_) {}
|
|
83
|
-
return (_is_native_reflect_construct = function() {
|
|
84
|
-
return !!result;
|
|
85
|
-
})();
|
|
86
|
-
}
|
|
87
79
|
import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
|
|
88
80
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
81
|
import Employee2Property from './property';
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @Date: 2022-12-01 14:40:30
|
|
4
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-09-19 15:50:38
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
|
|
7
|
-
*/ function _assert_this_initialized(self) {
|
|
8
|
-
if (self === void 0) {
|
|
9
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10
|
-
}
|
|
1
|
+
function _assert_this_initialized(self) {
|
|
2
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
11
3
|
return self;
|
|
12
4
|
}
|
|
13
5
|
function _call_super(_this, derived, args) {
|
|
@@ -15,9 +7,7 @@ function _call_super(_this, derived, args) {
|
|
|
15
7
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
16
8
|
}
|
|
17
9
|
function _class_call_check(instance, Constructor) {
|
|
18
|
-
if (!(instance instanceof Constructor))
|
|
19
|
-
throw new TypeError("Cannot call a class as a function");
|
|
20
|
-
}
|
|
10
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
21
11
|
}
|
|
22
12
|
function _defineProperties(target, props) {
|
|
23
13
|
for(var i = 0; i < props.length; i++){
|
|
@@ -41,9 +31,7 @@ function _define_property(obj, key, value) {
|
|
|
41
31
|
configurable: true,
|
|
42
32
|
writable: true
|
|
43
33
|
});
|
|
44
|
-
} else
|
|
45
|
-
obj[key] = value;
|
|
46
|
-
}
|
|
34
|
+
} else obj[key] = value;
|
|
47
35
|
return obj;
|
|
48
36
|
}
|
|
49
37
|
function _get_prototype_of(o) {
|
|
@@ -65,10 +53,16 @@ function _inherits(subClass, superClass) {
|
|
|
65
53
|
});
|
|
66
54
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
67
55
|
}
|
|
56
|
+
function _is_native_reflect_construct() {
|
|
57
|
+
try {
|
|
58
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
59
|
+
} catch (_) {}
|
|
60
|
+
return (_is_native_reflect_construct = function() {
|
|
61
|
+
return !!result;
|
|
62
|
+
})();
|
|
63
|
+
}
|
|
68
64
|
function _possible_constructor_return(self, call) {
|
|
69
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
70
|
-
return call;
|
|
71
|
-
}
|
|
65
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
72
66
|
return _assert_this_initialized(self);
|
|
73
67
|
}
|
|
74
68
|
function _set_prototype_of(o, p) {
|
|
@@ -82,15 +76,13 @@ function _type_of(obj) {
|
|
|
82
76
|
"@swc/helpers - typeof";
|
|
83
77
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
84
78
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
79
|
+
/*
|
|
80
|
+
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
81
|
+
* @Date: 2022-12-01 14:40:30
|
|
82
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
83
|
+
* @LastEditTime: 2023-09-19 15:50:38
|
|
84
|
+
* @FilePath: /model-driven/packages/controls/src/formControls/Image/designer.ts
|
|
85
|
+
*/ import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
94
86
|
import { DesignerAttachmentControl } from '../Attachment';
|
|
95
87
|
import { ImageProperty } from './property';
|
|
96
88
|
import { COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
* @LastEditTime: 2023-09-19 14:56:27
|
|
6
6
|
* @FilePath: /model-driven/packages/controls/src/formControls/Image/property.ts
|
|
7
7
|
*/ function _assert_this_initialized(self) {
|
|
8
|
-
if (self === void 0)
|
|
9
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10
|
-
}
|
|
8
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
11
9
|
return self;
|
|
12
10
|
}
|
|
13
11
|
function _call_super(_this, derived, args) {
|
|
@@ -15,9 +13,7 @@ function _call_super(_this, derived, args) {
|
|
|
15
13
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
16
14
|
}
|
|
17
15
|
function _class_call_check(instance, Constructor) {
|
|
18
|
-
if (!(instance instanceof Constructor))
|
|
19
|
-
throw new TypeError("Cannot call a class as a function");
|
|
20
|
-
}
|
|
16
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
21
17
|
}
|
|
22
18
|
function _define_property(obj, key, value) {
|
|
23
19
|
if (key in obj) {
|
|
@@ -27,9 +23,7 @@ function _define_property(obj, key, value) {
|
|
|
27
23
|
configurable: true,
|
|
28
24
|
writable: true
|
|
29
25
|
});
|
|
30
|
-
} else
|
|
31
|
-
obj[key] = value;
|
|
32
|
-
}
|
|
26
|
+
} else obj[key] = value;
|
|
33
27
|
return obj;
|
|
34
28
|
}
|
|
35
29
|
function _get_prototype_of(o) {
|
|
@@ -51,10 +45,16 @@ function _inherits(subClass, superClass) {
|
|
|
51
45
|
});
|
|
52
46
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
53
47
|
}
|
|
48
|
+
function _is_native_reflect_construct() {
|
|
49
|
+
try {
|
|
50
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
51
|
+
} catch (_) {}
|
|
52
|
+
return (_is_native_reflect_construct = function() {
|
|
53
|
+
return !!result;
|
|
54
|
+
})();
|
|
55
|
+
}
|
|
54
56
|
function _possible_constructor_return(self, call) {
|
|
55
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
56
|
-
return call;
|
|
57
|
-
}
|
|
57
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
58
58
|
return _assert_this_initialized(self);
|
|
59
59
|
}
|
|
60
60
|
function _set_prototype_of(o, p) {
|
|
@@ -68,14 +68,6 @@ function _type_of(obj) {
|
|
|
68
68
|
"@swc/helpers - typeof";
|
|
69
69
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
70
70
|
}
|
|
71
|
-
function _is_native_reflect_construct() {
|
|
72
|
-
try {
|
|
73
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
74
|
-
} catch (_) {}
|
|
75
|
-
return (_is_native_reflect_construct = function() {
|
|
76
|
-
return !!result;
|
|
77
|
-
})();
|
|
78
|
-
}
|
|
79
71
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
80
72
|
import { AttachmentProperty } from '../Attachment';
|
|
81
73
|
import { ImageCompressType } from '../../framework';
|
|
@@ -86,22 +78,17 @@ var ImageProperty = /*#__PURE__*/ function(AttachmentProperty) {
|
|
|
86
78
|
function ImageProperty(props) {
|
|
87
79
|
_class_call_check(this, ImageProperty);
|
|
88
80
|
var _this;
|
|
81
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
|
|
89
82
|
_this = _call_super(this, ImageProperty, [
|
|
90
83
|
props
|
|
91
84
|
]), _define_property(_this, "compressTypeCode", void 0), _define_property(_this, "compressRatio", void 0), _define_property(_this, "maxPixel", void 0);
|
|
92
85
|
_this.showType = 'image';
|
|
93
|
-
|
|
94
|
-
_this.
|
|
95
|
-
|
|
96
|
-
_this.
|
|
97
|
-
|
|
98
|
-
_this.
|
|
99
|
-
var _props_compressTypeCode;
|
|
100
|
-
_this.compressTypeCode = (_props_compressTypeCode = props === null || props === void 0 ? void 0 : props.compressTypeCode) !== null && _props_compressTypeCode !== void 0 ? _props_compressTypeCode : ImageCompressType.NO_COMPRESS; // 默认不压缩
|
|
101
|
-
var _props_compressRatio;
|
|
102
|
-
_this.compressRatio = (_props_compressRatio = props === null || props === void 0 ? void 0 : props.compressRatio) !== null && _props_compressRatio !== void 0 ? _props_compressRatio : 1; // 默认压缩比例1
|
|
103
|
-
var _props_maxPixel;
|
|
104
|
-
_this.maxPixel = (_props_maxPixel = props === null || props === void 0 ? void 0 : props.maxPixel) !== null && _props_maxPixel !== void 0 ? _props_maxPixel : 1080; // 默认最大像素1080
|
|
86
|
+
_this.maxLimit = (_ref = props === null || props === void 0 ? void 0 : props.maxLimit) !== null && _ref !== void 0 ? _ref : 10;
|
|
87
|
+
_this.caption = (_ref1 = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : ImageControl.controlName) !== null && _ref1 !== void 0 ? _ref1 : getLocaleText('CMD.image', null, '图片');
|
|
88
|
+
_this.placeholder = (_ref3 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref3 !== void 0 ? _ref3 : getLocaleText('CMD.uploadImg', null, '上传图片');
|
|
89
|
+
_this.compressTypeCode = (_ref4 = props === null || props === void 0 ? void 0 : props.compressTypeCode) !== null && _ref4 !== void 0 ? _ref4 : ImageCompressType.NO_COMPRESS; // 默认不压缩
|
|
90
|
+
_this.compressRatio = (_ref5 = props === null || props === void 0 ? void 0 : props.compressRatio) !== null && _ref5 !== void 0 ? _ref5 : 1; // 默认压缩比例1
|
|
91
|
+
_this.maxPixel = (_ref6 = props === null || props === void 0 ? void 0 : props.maxPixel) !== null && _ref6 !== void 0 ? _ref6 : 1080; // 默认最大像素1080
|
|
105
92
|
return _this;
|
|
106
93
|
}
|
|
107
94
|
return ImageProperty;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
function _assert_this_initialized(self) {
|
|
2
|
-
if (self === void 0)
|
|
3
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
-
}
|
|
2
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5
3
|
return self;
|
|
6
4
|
}
|
|
7
5
|
function _call_super(_this, derived, args) {
|
|
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
|
|
|
9
7
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
8
|
}
|
|
11
9
|
function _class_call_check(instance, Constructor) {
|
|
12
|
-
if (!(instance instanceof Constructor))
|
|
13
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14
|
-
}
|
|
10
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15
11
|
}
|
|
16
12
|
function _defineProperties(target, props) {
|
|
17
13
|
for(var i = 0; i < props.length; i++){
|
|
@@ -35,9 +31,7 @@ function _define_property(obj, key, value) {
|
|
|
35
31
|
configurable: true,
|
|
36
32
|
writable: true
|
|
37
33
|
});
|
|
38
|
-
} else
|
|
39
|
-
obj[key] = value;
|
|
40
|
-
}
|
|
34
|
+
} else obj[key] = value;
|
|
41
35
|
return obj;
|
|
42
36
|
}
|
|
43
37
|
function _get_prototype_of(o) {
|
|
@@ -59,10 +53,16 @@ function _inherits(subClass, superClass) {
|
|
|
59
53
|
});
|
|
60
54
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
55
|
}
|
|
56
|
+
function _is_native_reflect_construct() {
|
|
57
|
+
try {
|
|
58
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
59
|
+
} catch (_) {}
|
|
60
|
+
return (_is_native_reflect_construct = function() {
|
|
61
|
+
return !!result;
|
|
62
|
+
})();
|
|
63
|
+
}
|
|
62
64
|
function _possible_constructor_return(self, call) {
|
|
63
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
64
|
-
return call;
|
|
65
|
-
}
|
|
65
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
66
66
|
return _assert_this_initialized(self);
|
|
67
67
|
}
|
|
68
68
|
function _set_prototype_of(o, p) {
|
|
@@ -76,14 +76,6 @@ function _type_of(obj) {
|
|
|
76
76
|
"@swc/helpers - typeof";
|
|
77
77
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
78
|
}
|
|
79
|
-
function _is_native_reflect_construct() {
|
|
80
|
-
try {
|
|
81
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
-
} catch (_) {}
|
|
83
|
-
return (_is_native_reflect_construct = function() {
|
|
84
|
-
return !!result;
|
|
85
|
-
})();
|
|
86
|
-
}
|
|
87
79
|
import { RuntimeAttachmentControl } from '../Attachment';
|
|
88
80
|
import { ImageProperty } from './property';
|
|
89
81
|
var ImageControl = /*#__PURE__*/ function(RuntimeAttachmentControl) {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
function _assert_this_initialized(self) {
|
|
2
|
-
if (self === void 0)
|
|
3
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
-
}
|
|
2
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5
3
|
return self;
|
|
6
4
|
}
|
|
7
5
|
function _call_super(_this, derived, args) {
|
|
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
|
|
|
9
7
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
8
|
}
|
|
11
9
|
function _class_call_check(instance, Constructor) {
|
|
12
|
-
if (!(instance instanceof Constructor))
|
|
13
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14
|
-
}
|
|
10
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15
11
|
}
|
|
16
12
|
function _defineProperties(target, props) {
|
|
17
13
|
for(var i = 0; i < props.length; i++){
|
|
@@ -35,9 +31,7 @@ function _define_property(obj, key, value) {
|
|
|
35
31
|
configurable: true,
|
|
36
32
|
writable: true
|
|
37
33
|
});
|
|
38
|
-
} else
|
|
39
|
-
obj[key] = value;
|
|
40
|
-
}
|
|
34
|
+
} else obj[key] = value;
|
|
41
35
|
return obj;
|
|
42
36
|
}
|
|
43
37
|
function _get_prototype_of(o) {
|
|
@@ -59,10 +53,16 @@ function _inherits(subClass, superClass) {
|
|
|
59
53
|
});
|
|
60
54
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
55
|
}
|
|
56
|
+
function _is_native_reflect_construct() {
|
|
57
|
+
try {
|
|
58
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
59
|
+
} catch (_) {}
|
|
60
|
+
return (_is_native_reflect_construct = function() {
|
|
61
|
+
return !!result;
|
|
62
|
+
})();
|
|
63
|
+
}
|
|
62
64
|
function _possible_constructor_return(self, call) {
|
|
63
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
64
|
-
return call;
|
|
65
|
-
}
|
|
65
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
66
66
|
return _assert_this_initialized(self);
|
|
67
67
|
}
|
|
68
68
|
function _set_prototype_of(o, p) {
|
|
@@ -76,14 +76,6 @@ function _type_of(obj) {
|
|
|
76
76
|
"@swc/helpers - typeof";
|
|
77
77
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
78
|
}
|
|
79
|
-
function _is_native_reflect_construct() {
|
|
80
|
-
try {
|
|
81
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
-
} catch (_) {}
|
|
83
|
-
return (_is_native_reflect_construct = function() {
|
|
84
|
-
return !!result;
|
|
85
|
-
})();
|
|
86
|
-
}
|
|
87
79
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
80
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
81
|
import InputProperty from './property';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
function _assert_this_initialized(self) {
|
|
2
|
-
if (self === void 0)
|
|
3
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
-
}
|
|
2
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5
3
|
return self;
|
|
6
4
|
}
|
|
7
5
|
function _call_super(_this, derived, args) {
|
|
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
|
|
|
9
7
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
8
|
}
|
|
11
9
|
function _class_call_check(instance, Constructor) {
|
|
12
|
-
if (!(instance instanceof Constructor))
|
|
13
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14
|
-
}
|
|
10
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15
11
|
}
|
|
16
12
|
function _define_property(obj, key, value) {
|
|
17
13
|
if (key in obj) {
|
|
@@ -21,9 +17,7 @@ function _define_property(obj, key, value) {
|
|
|
21
17
|
configurable: true,
|
|
22
18
|
writable: true
|
|
23
19
|
});
|
|
24
|
-
} else
|
|
25
|
-
obj[key] = value;
|
|
26
|
-
}
|
|
20
|
+
} else obj[key] = value;
|
|
27
21
|
return obj;
|
|
28
22
|
}
|
|
29
23
|
function _get_prototype_of(o) {
|
|
@@ -45,10 +39,16 @@ function _inherits(subClass, superClass) {
|
|
|
45
39
|
});
|
|
46
40
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
47
41
|
}
|
|
42
|
+
function _is_native_reflect_construct() {
|
|
43
|
+
try {
|
|
44
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
45
|
+
} catch (_) {}
|
|
46
|
+
return (_is_native_reflect_construct = function() {
|
|
47
|
+
return !!result;
|
|
48
|
+
})();
|
|
49
|
+
}
|
|
48
50
|
function _possible_constructor_return(self, call) {
|
|
49
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
50
|
-
return call;
|
|
51
|
-
}
|
|
51
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
52
52
|
return _assert_this_initialized(self);
|
|
53
53
|
}
|
|
54
54
|
function _set_prototype_of(o, p) {
|
|
@@ -62,14 +62,6 @@ function _type_of(obj) {
|
|
|
62
62
|
"@swc/helpers - typeof";
|
|
63
63
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
64
|
}
|
|
65
|
-
function _is_native_reflect_construct() {
|
|
66
|
-
try {
|
|
67
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
-
} catch (_) {}
|
|
69
|
-
return (_is_native_reflect_construct = function() {
|
|
70
|
-
return !!result;
|
|
71
|
-
})();
|
|
72
|
-
}
|
|
73
65
|
import InputControl from './designer';
|
|
74
66
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, RegularRules } from '@byteluck-fe/model-driven-core';
|
|
75
67
|
import { initExpression } from '../../framework';
|
|
@@ -155,6 +147,7 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
|
|
|
155
147
|
function InputProperty(props) {
|
|
156
148
|
_class_call_check(this, InputProperty);
|
|
157
149
|
var _this;
|
|
150
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
|
|
158
151
|
_this = _call_super(this, InputProperty, [
|
|
159
152
|
props
|
|
160
153
|
]), /**
|
|
@@ -192,27 +185,17 @@ var InputControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropert
|
|
|
192
185
|
* @defaultValue 1
|
|
193
186
|
* @public
|
|
194
187
|
*/ _define_property(_this, "lineEllipsis", void 0);
|
|
195
|
-
|
|
196
|
-
_this.
|
|
197
|
-
var _props_minLength;
|
|
198
|
-
_this.minLength = (_props_minLength = props === null || props === void 0 ? void 0 : props.minLength) !== null && _props_minLength !== void 0 ? _props_minLength : 0;
|
|
188
|
+
_this.maxLength = (_ref = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _ref !== void 0 ? _ref : 200;
|
|
189
|
+
_this.minLength = (_ref1 = props === null || props === void 0 ? void 0 : props.minLength) !== null && _ref1 !== void 0 ? _ref1 : 0;
|
|
199
190
|
_this.regularRules = new RegularRules(props === null || props === void 0 ? void 0 : props.regularRules);
|
|
200
|
-
|
|
201
|
-
_this.
|
|
202
|
-
|
|
203
|
-
_this.
|
|
204
|
-
|
|
205
|
-
_this.
|
|
206
|
-
|
|
207
|
-
_this.
|
|
208
|
-
var _props_encryptedMode;
|
|
209
|
-
_this.encryptedMode = (_props_encryptedMode = props === null || props === void 0 ? void 0 : props.encryptedMode) !== null && _props_encryptedMode !== void 0 ? _props_encryptedMode : '';
|
|
210
|
-
var _props_aiContentSearch;
|
|
211
|
-
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
212
|
-
var _props_autoHeight;
|
|
213
|
-
_this.autoHeight = (_props_autoHeight = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _props_autoHeight !== void 0 ? _props_autoHeight : false;
|
|
214
|
-
var _props_lineEllipsis;
|
|
215
|
-
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
191
|
+
_this.defaultValue = (_ref2 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
192
|
+
_this.caption = (_ref3 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref3 !== void 0 ? _ref3 : InputControl.controlName;
|
|
193
|
+
_this.placeholder = (_ref4 = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _ref4 !== void 0 ? _ref4 : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
194
|
+
_this.encrypted = (_ref5 = props === null || props === void 0 ? void 0 : props.encrypted) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
195
|
+
_this.encryptedMode = (_ref6 = props === null || props === void 0 ? void 0 : props.encryptedMode) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
196
|
+
_this.aiContentSearch = (_ref7 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
197
|
+
_this.autoHeight = (_ref8 = props === null || props === void 0 ? void 0 : props.autoHeight) !== null && _ref8 !== void 0 ? _ref8 : false;
|
|
198
|
+
_this.lineEllipsis = (_ref9 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref9 !== void 0 ? _ref9 : 1;
|
|
216
199
|
return _this;
|
|
217
200
|
}
|
|
218
201
|
return InputProperty;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
function _assert_this_initialized(self) {
|
|
2
|
-
if (self === void 0)
|
|
3
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
-
}
|
|
2
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5
3
|
return self;
|
|
6
4
|
}
|
|
7
5
|
function _call_super(_this, derived, args) {
|
|
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
|
|
|
9
7
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
8
|
}
|
|
11
9
|
function _class_call_check(instance, Constructor) {
|
|
12
|
-
if (!(instance instanceof Constructor))
|
|
13
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14
|
-
}
|
|
10
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15
11
|
}
|
|
16
12
|
function _defineProperties(target, props) {
|
|
17
13
|
for(var i = 0; i < props.length; i++){
|
|
@@ -35,9 +31,7 @@ function _define_property(obj, key, value) {
|
|
|
35
31
|
configurable: true,
|
|
36
32
|
writable: true
|
|
37
33
|
});
|
|
38
|
-
} else
|
|
39
|
-
obj[key] = value;
|
|
40
|
-
}
|
|
34
|
+
} else obj[key] = value;
|
|
41
35
|
return obj;
|
|
42
36
|
}
|
|
43
37
|
function _get_prototype_of(o) {
|
|
@@ -59,10 +53,16 @@ function _inherits(subClass, superClass) {
|
|
|
59
53
|
});
|
|
60
54
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
55
|
}
|
|
56
|
+
function _is_native_reflect_construct() {
|
|
57
|
+
try {
|
|
58
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
59
|
+
} catch (_) {}
|
|
60
|
+
return (_is_native_reflect_construct = function() {
|
|
61
|
+
return !!result;
|
|
62
|
+
})();
|
|
63
|
+
}
|
|
62
64
|
function _possible_constructor_return(self, call) {
|
|
63
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
64
|
-
return call;
|
|
65
|
-
}
|
|
65
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
66
66
|
return _assert_this_initialized(self);
|
|
67
67
|
}
|
|
68
68
|
function _set_prototype_of(o, p) {
|
|
@@ -76,14 +76,6 @@ function _type_of(obj) {
|
|
|
76
76
|
"@swc/helpers - typeof";
|
|
77
77
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
78
|
}
|
|
79
|
-
function _is_native_reflect_construct() {
|
|
80
|
-
try {
|
|
81
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
-
} catch (_) {}
|
|
83
|
-
return (_is_native_reflect_construct = function() {
|
|
84
|
-
return !!result;
|
|
85
|
-
})();
|
|
86
|
-
}
|
|
87
79
|
import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
|
|
88
80
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
81
|
import InputProperty from './property';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
function _assert_this_initialized(self) {
|
|
2
|
-
if (self === void 0)
|
|
3
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
-
}
|
|
2
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5
3
|
return self;
|
|
6
4
|
}
|
|
7
5
|
function _call_super(_this, derived, args) {
|
|
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
|
|
|
9
7
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
8
|
}
|
|
11
9
|
function _class_call_check(instance, Constructor) {
|
|
12
|
-
if (!(instance instanceof Constructor))
|
|
13
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14
|
-
}
|
|
10
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15
11
|
}
|
|
16
12
|
function _defineProperties(target, props) {
|
|
17
13
|
for(var i = 0; i < props.length; i++){
|
|
@@ -35,9 +31,7 @@ function _define_property(obj, key, value) {
|
|
|
35
31
|
configurable: true,
|
|
36
32
|
writable: true
|
|
37
33
|
});
|
|
38
|
-
} else
|
|
39
|
-
obj[key] = value;
|
|
40
|
-
}
|
|
34
|
+
} else obj[key] = value;
|
|
41
35
|
return obj;
|
|
42
36
|
}
|
|
43
37
|
function _get_prototype_of(o) {
|
|
@@ -59,10 +53,16 @@ function _inherits(subClass, superClass) {
|
|
|
59
53
|
});
|
|
60
54
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
55
|
}
|
|
56
|
+
function _is_native_reflect_construct() {
|
|
57
|
+
try {
|
|
58
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
59
|
+
} catch (_) {}
|
|
60
|
+
return (_is_native_reflect_construct = function() {
|
|
61
|
+
return !!result;
|
|
62
|
+
})();
|
|
63
|
+
}
|
|
62
64
|
function _possible_constructor_return(self, call) {
|
|
63
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
64
|
-
return call;
|
|
65
|
-
}
|
|
65
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
66
66
|
return _assert_this_initialized(self);
|
|
67
67
|
}
|
|
68
68
|
function _set_prototype_of(o, p) {
|
|
@@ -76,20 +76,12 @@ function _type_of(obj) {
|
|
|
76
76
|
"@swc/helpers - typeof";
|
|
77
77
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
try {
|
|
81
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
-
} catch (_) {}
|
|
83
|
-
return (_is_native_reflect_construct = function() {
|
|
84
|
-
return !!result;
|
|
85
|
-
})();
|
|
86
|
-
}
|
|
87
|
-
import { DesignerControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
79
|
+
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
80
|
import { LinkProperty } from './property';
|
|
89
81
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
|
-
var LinkControl = /*#__PURE__*/ function(
|
|
82
|
+
var LinkControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
91
83
|
"use strict";
|
|
92
|
-
_inherits(LinkControl,
|
|
84
|
+
_inherits(LinkControl, DesignerFormControl);
|
|
93
85
|
function LinkControl(props) {
|
|
94
86
|
_class_call_check(this, LinkControl);
|
|
95
87
|
var _this;
|
|
@@ -120,11 +112,15 @@ var LinkControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
120
112
|
}
|
|
121
113
|
]);
|
|
122
114
|
return LinkControl;
|
|
123
|
-
}(
|
|
115
|
+
}(DesignerFormControl);
|
|
124
116
|
_define_property(LinkControl, "controlEventKeys", [
|
|
125
117
|
'on_click'
|
|
126
118
|
]);
|
|
127
119
|
_define_property(LinkControl, "setting", [
|
|
120
|
+
{
|
|
121
|
+
key: 'data-bind',
|
|
122
|
+
visible: true
|
|
123
|
+
},
|
|
128
124
|
{
|
|
129
125
|
key: 'content',
|
|
130
126
|
visible: true
|