@teamix/pro 1.1.3 → 1.1.7
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/README.md +97 -0
- package/dist/pro.css +1 -1
- package/dist/pro.js +1198 -1228
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/dist/pro.min.js.LICENSE.txt +1 -1
- package/es/actions/base.d.ts +13 -0
- package/es/actions/base.js +23 -0
- package/es/actions/confirm.d.ts +7 -0
- package/es/actions/confirm.js +11 -0
- package/es/actions/danger-confirm.d.ts +7 -0
- package/es/actions/danger-confirm.js +14 -0
- package/es/actions/dialog-component.d.ts +10 -0
- package/es/actions/dialog-component.js +25 -0
- package/es/actions/dialog-form.d.ts +15 -0
- package/es/actions/dialog-form.js +129 -0
- package/es/actions/dialog-table.d.ts +9 -0
- package/es/actions/dialog-table.js +10 -0
- package/es/actions/dialog.d.ts +17 -0
- package/es/actions/dialog.js +197 -0
- package/es/actions/drawer-form.d.ts +6 -0
- package/es/actions/drawer-form.js +7 -0
- package/es/actions/drawer-table.d.ts +6 -0
- package/es/actions/drawer-table.js +7 -0
- package/es/actions/drawer.d.ts +6 -0
- package/es/actions/drawer.js +7 -0
- package/es/actions/error.d.ts +7 -0
- package/es/actions/error.js +11 -0
- package/es/actions/index.d.ts +71 -0
- package/es/actions/index.js +337 -0
- package/es/actions/index.scss +34 -0
- package/es/actions/link.d.ts +14 -0
- package/es/actions/link.js +45 -0
- package/es/actions/notice.d.ts +7 -0
- package/es/actions/notice.js +11 -0
- package/es/actions/request.d.ts +9 -0
- package/es/actions/request.js +60 -0
- package/es/card/index.d.ts +47 -0
- package/es/card/index.js +159 -0
- package/es/card/index.scss +98 -0
- package/es/field/index.d.ts +3 -0
- package/es/field/index.js +3 -0
- package/es/form/Components/Editable/index.d.ts +20 -0
- package/es/form/Components/Editable/index.js +228 -0
- package/es/form/Components/FormGroup/index.d.ts +13 -0
- package/es/form/Components/FormGroup/index.js +89 -0
- package/es/form/Components/FormGroup/index.scss +23 -0
- package/es/form/Components/ProField/index.d.ts +150 -0
- package/es/form/Components/ProField/index.js +53 -0
- package/es/form/Components/Query/index.d.ts +4 -0
- package/es/form/Components/Query/index.js +70 -0
- package/es/form/Components/Query/index.scss +90 -0
- package/es/form/Components/QueryFilter/index.d.ts +3 -0
- package/es/form/Components/QueryFilter/index.js +111 -0
- package/es/form/Components/Search/index.d.ts +11 -0
- package/es/form/Components/Search/index.js +89 -0
- package/es/form/Filter/index.d.ts +16 -0
- package/es/form/Filter/index.js +218 -0
- package/es/form/ProForm/index.d.ts +5 -0
- package/es/form/ProForm/index.js +100 -0
- package/es/form/ProForm/index.scss +254 -0
- package/es/form/SchemaForm/adapterComponent.d.ts +5 -0
- package/es/form/SchemaForm/adapterComponent.js +17 -0
- package/es/form/SchemaForm/adapterDecorator.d.ts +6 -0
- package/es/form/SchemaForm/adapterDecorator.js +28 -0
- package/es/form/SchemaForm/adapterType.d.ts +5 -0
- package/es/form/SchemaForm/adapterType.js +52 -0
- package/es/form/SchemaForm/index.d.ts +4 -0
- package/es/form/SchemaForm/index.js +259 -0
- package/es/form/SchemaForm/initializeArrayCards.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayCards.js +24 -0
- package/es/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayCollapse.js +24 -0
- package/es/form/SchemaForm/initializeArrayIcon.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayIcon.js +57 -0
- package/es/form/SchemaForm/initializeArrayItems.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayItems.js +38 -0
- package/es/form/SchemaForm/initializeArrayTable.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayTable.js +56 -0
- package/es/form/SchemaForm/initializeFormButton.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormButton.js +75 -0
- package/es/form/SchemaForm/initializeFormCollapse.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormCollapse.js +43 -0
- package/es/form/SchemaForm/initializeFormGroup.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormGroup.js +46 -0
- package/es/form/SchemaForm/initializeFormStep.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormStep.js +48 -0
- package/es/form/SchemaForm/initializeFormTab.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormTab.js +53 -0
- package/es/form/SchemaForm/initializeProField.d.ts +5 -0
- package/es/form/SchemaForm/initializeProField.js +67 -0
- package/es/form/SchemaForm/initializeRequest.d.ts +11 -0
- package/es/form/SchemaForm/initializeRequest.js +25 -0
- package/es/form/SchemaForm/reactions.d.ts +4 -0
- package/es/form/SchemaForm/reactions.js +62 -0
- package/es/form/index.d.ts +27 -0
- package/es/form/index.js +35 -0
- package/es/form/typing.d.ts +69 -0
- package/es/form/typing.js +1 -0
- package/es/form/utils.d.ts +9 -0
- package/es/form/utils.js +108 -0
- package/es/form/warning.d.ts +3 -0
- package/es/form/warning.js +16 -0
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.js +2 -0
- package/es/index.d.ts +24 -0
- package/es/index.js +29 -0
- package/es/info/components/FormItem/index.d.ts +5 -0
- package/es/info/components/FormItem/index.js +63 -0
- package/es/info/components/FormItem/index.scss +60 -0
- package/es/info/components/InfoGroup/index.d.ts +5 -0
- package/es/info/components/InfoGroup/index.js +47 -0
- package/es/info/components/InfoGroup/index.scss +14 -0
- package/es/info/components/InfoValueItem/index.d.ts +5 -0
- package/es/info/components/InfoValueItem/index.js +223 -0
- package/es/info/components/InfoValueItem/index.scss +21 -0
- package/es/info/components/baseInfo/index.d.ts +7 -0
- package/es/info/components/baseInfo/index.js +73 -0
- package/es/info/components/baseInfo/index.scss +3 -0
- package/es/info/components/headerInfo/index.d.ts +7 -0
- package/es/info/components/headerInfo/index.js +85 -0
- package/es/info/components/headerInfo/index.scss +0 -0
- package/es/info/components/tableInfo/index.d.ts +8 -0
- package/es/info/components/tableInfo/index.js +175 -0
- package/es/info/components/tableInfo/index.scss +18 -0
- package/es/info/index.d.ts +10 -0
- package/es/info/index.js +87 -0
- package/es/info/index.scss +12 -0
- package/es/info/typing.d.ts +157 -0
- package/es/info/typing.js +1 -0
- package/es/info/utils/index.d.ts +12 -0
- package/es/info/utils/index.js +33 -0
- package/es/info/utils/layout.d.ts +2 -0
- package/es/info/utils/layout.js +58 -0
- package/es/info/utils/useInfoRequest.d.ts +14 -0
- package/es/info/utils/useInfoRequest.js +73 -0
- package/es/info/utils/utils.d.ts +1 -0
- package/es/info/utils/utils.js +13 -0
- package/es/layout/index.d.ts +2 -0
- package/es/layout/index.js +3 -0
- package/es/nocode/configurators/Card.d.ts +3 -0
- package/es/nocode/configurators/Card.js +109 -0
- package/es/nocode/configurators/PageHeader.d.ts +3 -0
- package/es/nocode/configurators/PageHeader.js +202 -0
- package/es/nocode/configurators/ProTable.d.ts +3 -0
- package/es/nocode/configurators/ProTable.js +320 -0
- package/es/nocode/configurators/common.d.ts +188 -0
- package/es/nocode/configurators/common.js +318 -0
- package/es/nocode/configurators/index.d.ts +15 -0
- package/es/nocode/configurators/index.js +27 -0
- package/es/nocode/configurators/map.d.ts +2 -0
- package/es/nocode/configurators/map.js +8 -0
- package/es/nocode/index.d.ts +8 -0
- package/es/nocode/index.js +11 -0
- package/es/nocode/index.scss +93 -0
- package/es/nocode/pages/editor.d.ts +12 -0
- package/es/nocode/pages/editor.js +40 -0
- package/es/nocode/pages/index.d.ts +14 -0
- package/es/nocode/pages/index.js +41 -0
- package/es/nocode/pages/playground.d.ts +11 -0
- package/es/nocode/pages/playground.js +130 -0
- package/es/nocode/pages/renderer.d.ts +10 -0
- package/es/nocode/pages/renderer.js +144 -0
- package/es/nocode/playground.d.ts +14 -0
- package/es/nocode/playground.js +68 -0
- package/es/page-container/index.d.ts +3 -0
- package/es/page-container/index.js +3 -0
- package/es/page-header/index.d.ts +43 -0
- package/es/page-header/index.js +233 -0
- package/es/page-header/index.scss +169 -0
- package/es/skeleton/index.d.ts +3 -0
- package/es/skeleton/index.js +3 -0
- package/es/table/components/Filter/index.d.ts +9 -0
- package/es/table/components/Filter/index.js +223 -0
- package/es/table/components/Filter/index.scss +23 -0
- package/es/table/components/Layout/index.d.ts +5 -0
- package/es/table/components/Layout/index.js +242 -0
- package/es/table/components/Layout/index.scss +39 -0
- package/es/table/components/QuickAction/index.d.ts +10 -0
- package/es/table/components/QuickAction/index.js +53 -0
- package/es/table/components/QuickAction/index.scss +0 -0
- package/es/table/components/ToolBar/DensityIcon.d.ts +4 -0
- package/es/table/components/ToolBar/DensityIcon.js +117 -0
- package/es/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
- package/es/table/components/ToolBar/FilterColumnIcon.js +284 -0
- package/es/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
- package/es/table/components/ToolBar/FullScreenIcon.js +89 -0
- package/es/table/components/ToolBar/Fullscreen.d.ts +10 -0
- package/es/table/components/ToolBar/Fullscreen.js +68 -0
- package/es/table/components/ToolBar/RefreshIcon.d.ts +4 -0
- package/es/table/components/ToolBar/RefreshIcon.js +45 -0
- package/es/table/components/ToolBar/index.d.ts +5 -0
- package/es/table/components/ToolBar/index.js +79 -0
- package/es/table/components/ToolBar/index.scss +110 -0
- package/es/table/index.d.ts +6 -0
- package/es/table/index.js +607 -0
- package/es/table/index.scss +103 -0
- package/es/table/typing.d.ts +222 -0
- package/es/table/typing.js +1 -0
- package/es/table/utils/columnRender.d.ts +13 -0
- package/es/table/utils/columnRender.js +185 -0
- package/es/table/utils/genProColumnToColumn.d.ts +9 -0
- package/es/table/utils/genProColumnToColumn.js +51 -0
- package/es/table/utils/getTableProps.d.ts +2 -0
- package/es/table/utils/getTableProps.js +4 -0
- package/es/table/utils/getTableSortIcons.d.ts +3 -0
- package/es/table/utils/getTableSortIcons.js +21 -0
- package/es/table/utils/index.d.ts +4 -0
- package/es/table/utils/index.js +100 -0
- package/es/table/utils/useTableSelection.d.ts +3 -0
- package/es/table/utils/useTableSelection.js +107 -0
- package/es/templates/Detail/index.d.ts +2 -0
- package/es/templates/Detail/index.js +5 -0
- package/es/templates/Detail/index.scss +3 -0
- package/es/templates/Form/index.d.ts +2 -0
- package/es/templates/Form/index.js +5 -0
- package/es/templates/Form/index.scss +3 -0
- package/es/templates/List/index.d.ts +9 -0
- package/es/templates/List/index.js +45 -0
- package/es/templates/List/index.scss +3 -0
- package/es/templates/index.d.ts +5 -0
- package/es/templates/index.js +7 -0
- package/es/templates/index.scss +3 -0
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.js +2 -0
- package/lib/actions/base.d.ts +13 -0
- package/lib/actions/base.js +33 -0
- package/lib/actions/confirm.d.ts +7 -0
- package/lib/actions/confirm.js +25 -0
- package/lib/actions/danger-confirm.d.ts +7 -0
- package/lib/actions/danger-confirm.js +28 -0
- package/lib/actions/dialog-component.d.ts +10 -0
- package/lib/actions/dialog-component.js +39 -0
- package/lib/actions/dialog-form.d.ts +15 -0
- package/lib/actions/dialog-form.js +152 -0
- package/lib/actions/dialog-table.d.ts +9 -0
- package/lib/actions/dialog-table.js +24 -0
- package/lib/actions/dialog.d.ts +17 -0
- package/lib/actions/dialog.js +219 -0
- package/lib/actions/drawer-form.d.ts +6 -0
- package/lib/actions/drawer-form.js +18 -0
- package/lib/actions/drawer-table.d.ts +6 -0
- package/lib/actions/drawer-table.js +18 -0
- package/lib/actions/drawer.d.ts +6 -0
- package/lib/actions/drawer.js +20 -0
- package/lib/actions/error.d.ts +7 -0
- package/lib/actions/error.js +25 -0
- package/lib/actions/index.d.ts +71 -0
- package/lib/actions/index.js +380 -0
- package/lib/actions/index.scss +34 -0
- package/lib/actions/link.d.ts +14 -0
- package/lib/actions/link.js +60 -0
- package/lib/actions/notice.d.ts +7 -0
- package/lib/actions/notice.js +25 -0
- package/lib/actions/request.d.ts +9 -0
- package/lib/actions/request.js +75 -0
- package/lib/card/index.d.ts +47 -0
- package/lib/card/index.js +179 -0
- package/lib/card/index.scss +98 -0
- package/lib/field/index.d.ts +3 -0
- package/lib/field/index.js +30 -0
- package/lib/form/Components/Editable/index.d.ts +20 -0
- package/lib/form/Components/Editable/index.js +251 -0
- package/lib/form/Components/FormGroup/index.d.ts +13 -0
- package/lib/form/Components/FormGroup/index.js +103 -0
- package/lib/form/Components/FormGroup/index.scss +23 -0
- package/lib/form/Components/ProField/index.d.ts +150 -0
- package/lib/form/Components/ProField/index.js +68 -0
- package/lib/form/Components/Query/index.d.ts +4 -0
- package/lib/form/Components/Query/index.js +91 -0
- package/lib/form/Components/Query/index.scss +90 -0
- package/lib/form/Components/QueryFilter/index.d.ts +3 -0
- package/lib/form/Components/QueryFilter/index.js +130 -0
- package/lib/form/Components/Search/index.d.ts +11 -0
- package/lib/form/Components/Search/index.js +103 -0
- package/lib/form/Filter/index.d.ts +16 -0
- package/lib/form/Filter/index.js +242 -0
- package/lib/form/ProForm/index.d.ts +5 -0
- package/lib/form/ProForm/index.js +125 -0
- package/lib/form/ProForm/index.scss +254 -0
- package/lib/form/SchemaForm/adapterComponent.d.ts +5 -0
- package/lib/form/SchemaForm/adapterComponent.js +27 -0
- package/lib/form/SchemaForm/adapterDecorator.d.ts +6 -0
- package/lib/form/SchemaForm/adapterDecorator.js +34 -0
- package/lib/form/SchemaForm/adapterType.d.ts +5 -0
- package/lib/form/SchemaForm/adapterType.js +62 -0
- package/lib/form/SchemaForm/index.d.ts +4 -0
- package/lib/form/SchemaForm/index.js +302 -0
- package/lib/form/SchemaForm/initializeArrayCards.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayCards.js +32 -0
- package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayCollapse.js +32 -0
- package/lib/form/SchemaForm/initializeArrayIcon.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayIcon.js +68 -0
- package/lib/form/SchemaForm/initializeArrayItems.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayItems.js +46 -0
- package/lib/form/SchemaForm/initializeArrayTable.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayTable.js +63 -0
- package/lib/form/SchemaForm/initializeFormButton.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormButton.js +82 -0
- package/lib/form/SchemaForm/initializeFormCollapse.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormCollapse.js +50 -0
- package/lib/form/SchemaForm/initializeFormGroup.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormGroup.js +53 -0
- package/lib/form/SchemaForm/initializeFormStep.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormStep.js +55 -0
- package/lib/form/SchemaForm/initializeFormTab.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormTab.js +60 -0
- package/lib/form/SchemaForm/initializeProField.d.ts +5 -0
- package/lib/form/SchemaForm/initializeProField.js +74 -0
- package/lib/form/SchemaForm/initializeRequest.d.ts +11 -0
- package/lib/form/SchemaForm/initializeRequest.js +34 -0
- package/lib/form/SchemaForm/reactions.d.ts +4 -0
- package/lib/form/SchemaForm/reactions.js +72 -0
- package/lib/form/index.d.ts +27 -0
- package/lib/form/index.js +139 -0
- package/lib/form/typing.d.ts +69 -0
- package/lib/form/typing.js +5 -0
- package/lib/form/utils.d.ts +9 -0
- package/lib/form/utils.js +124 -0
- package/lib/form/warning.d.ts +3 -0
- package/lib/form/warning.js +24 -0
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +17 -0
- package/lib/index.d.ts +24 -0
- package/lib/index.js +244 -0
- package/lib/info/components/FormItem/index.d.ts +5 -0
- package/lib/info/components/FormItem/index.js +78 -0
- package/lib/info/components/FormItem/index.scss +60 -0
- package/lib/info/components/InfoGroup/index.d.ts +5 -0
- package/lib/info/components/InfoGroup/index.js +67 -0
- package/lib/info/components/InfoGroup/index.scss +14 -0
- package/lib/info/components/InfoValueItem/index.d.ts +5 -0
- package/lib/info/components/InfoValueItem/index.js +249 -0
- package/lib/info/components/InfoValueItem/index.scss +21 -0
- package/lib/info/components/baseInfo/index.d.ts +7 -0
- package/lib/info/components/baseInfo/index.js +100 -0
- package/lib/info/components/baseInfo/index.scss +3 -0
- package/lib/info/components/headerInfo/index.d.ts +7 -0
- package/lib/info/components/headerInfo/index.js +112 -0
- package/lib/info/components/headerInfo/index.scss +0 -0
- package/lib/info/components/tableInfo/index.d.ts +8 -0
- package/lib/info/components/tableInfo/index.js +197 -0
- package/lib/info/components/tableInfo/index.scss +18 -0
- package/lib/info/index.d.ts +10 -0
- package/lib/info/index.js +123 -0
- package/lib/info/index.scss +12 -0
- package/lib/info/typing.d.ts +157 -0
- package/lib/info/typing.js +5 -0
- package/lib/info/utils/index.d.ts +12 -0
- package/lib/info/utils/index.js +50 -0
- package/lib/info/utils/layout.d.ts +2 -0
- package/lib/info/utils/layout.js +65 -0
- package/lib/info/utils/useInfoRequest.d.ts +14 -0
- package/lib/info/utils/useInfoRequest.js +82 -0
- package/lib/info/utils/utils.d.ts +1 -0
- package/lib/info/utils/utils.js +20 -0
- package/lib/layout/index.d.ts +2 -0
- package/lib/layout/index.js +10 -0
- package/lib/nocode/configurators/Card.d.ts +3 -0
- package/lib/nocode/configurators/Card.js +116 -0
- package/lib/nocode/configurators/PageHeader.d.ts +3 -0
- package/lib/nocode/configurators/PageHeader.js +211 -0
- package/lib/nocode/configurators/ProTable.d.ts +3 -0
- package/lib/nocode/configurators/ProTable.js +329 -0
- package/lib/nocode/configurators/common.d.ts +188 -0
- package/lib/nocode/configurators/common.js +329 -0
- package/lib/nocode/configurators/index.d.ts +15 -0
- package/lib/nocode/configurators/index.js +44 -0
- package/lib/nocode/configurators/map.d.ts +2 -0
- package/lib/nocode/configurators/map.js +21 -0
- package/lib/nocode/index.d.ts +8 -0
- package/lib/nocode/index.js +76 -0
- package/lib/nocode/index.scss +93 -0
- package/lib/nocode/pages/editor.d.ts +12 -0
- package/lib/nocode/pages/editor.js +58 -0
- package/lib/nocode/pages/index.d.ts +14 -0
- package/lib/nocode/pages/index.js +93 -0
- package/lib/nocode/pages/playground.d.ts +11 -0
- package/lib/nocode/pages/playground.js +158 -0
- package/lib/nocode/pages/renderer.d.ts +10 -0
- package/lib/nocode/pages/renderer.js +164 -0
- package/lib/nocode/playground.d.ts +14 -0
- package/lib/nocode/playground.js +91 -0
- package/lib/page-container/index.d.ts +3 -0
- package/lib/page-container/index.js +30 -0
- package/lib/page-header/index.d.ts +43 -0
- package/lib/page-header/index.js +252 -0
- package/lib/page-header/index.scss +169 -0
- package/lib/skeleton/index.d.ts +3 -0
- package/lib/skeleton/index.js +30 -0
- package/lib/table/components/Filter/index.d.ts +9 -0
- package/lib/table/components/Filter/index.js +244 -0
- package/lib/table/components/Filter/index.scss +23 -0
- package/lib/table/components/Layout/index.d.ts +5 -0
- package/lib/table/components/Layout/index.js +266 -0
- package/lib/table/components/Layout/index.scss +39 -0
- package/lib/table/components/QuickAction/index.d.ts +10 -0
- package/lib/table/components/QuickAction/index.js +65 -0
- package/lib/table/components/QuickAction/index.scss +0 -0
- package/lib/table/components/ToolBar/DensityIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/DensityIcon.js +135 -0
- package/lib/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/FilterColumnIcon.js +303 -0
- package/lib/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/FullScreenIcon.js +107 -0
- package/lib/table/components/ToolBar/Fullscreen.d.ts +10 -0
- package/lib/table/components/ToolBar/Fullscreen.js +85 -0
- package/lib/table/components/ToolBar/RefreshIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/RefreshIcon.js +60 -0
- package/lib/table/components/ToolBar/index.d.ts +5 -0
- package/lib/table/components/ToolBar/index.js +96 -0
- package/lib/table/components/ToolBar/index.scss +110 -0
- package/lib/table/index.d.ts +6 -0
- package/lib/table/index.js +662 -0
- package/lib/table/index.scss +103 -0
- package/lib/table/typing.d.ts +222 -0
- package/lib/table/typing.js +5 -0
- package/lib/table/utils/columnRender.d.ts +13 -0
- package/lib/table/utils/columnRender.js +201 -0
- package/lib/table/utils/genProColumnToColumn.d.ts +9 -0
- package/lib/table/utils/genProColumnToColumn.js +62 -0
- package/lib/table/utils/getTableProps.d.ts +2 -0
- package/lib/table/utils/getTableProps.js +13 -0
- package/lib/table/utils/getTableSortIcons.d.ts +3 -0
- package/lib/table/utils/getTableSortIcons.js +34 -0
- package/lib/table/utils/index.d.ts +4 -0
- package/lib/table/utils/index.js +112 -0
- package/lib/table/utils/useTableSelection.d.ts +3 -0
- package/lib/table/utils/useTableSelection.js +112 -0
- package/lib/templates/Detail/index.d.ts +2 -0
- package/lib/templates/Detail/index.js +18 -0
- package/lib/templates/Detail/index.scss +3 -0
- package/lib/templates/Form/index.d.ts +2 -0
- package/lib/templates/Form/index.js +18 -0
- package/lib/templates/Form/index.scss +3 -0
- package/lib/templates/List/index.d.ts +9 -0
- package/lib/templates/List/index.js +67 -0
- package/lib/templates/List/index.scss +3 -0
- package/lib/templates/index.d.ts +5 -0
- package/lib/templates/index.js +59 -0
- package/lib/templates/index.scss +3 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.js +17 -0
- package/package.json +5 -5
@@ -0,0 +1,69 @@
|
|
1
|
+
import type { ReactNode } from 'react';
|
2
|
+
import type { IFormFeedback, Form as FormType, FieldPatternTypes } from '@formily/core';
|
3
|
+
import type { IFormLayoutProps } from '@teamix/formily';
|
4
|
+
import { CommonRequestConfig } from '@teamix/utils';
|
5
|
+
export interface anyObject {
|
6
|
+
[propName: string]: any;
|
7
|
+
}
|
8
|
+
declare type FieldDisplayTypes = 'none' | 'hidden' | 'visible';
|
9
|
+
export declare type IBaseComponent = 'Input' | 'Password' | 'TextArea' | 'NumberPicker' | 'Percent' | 'Money' | 'Select' | 'MultipleSelect' | 'TreeSelect' | 'Cascader' | 'MultipleCascader' | 'ArbitraryCascader' | 'Radio' | 'Checkbox' | 'Switch' | 'DatePicker' | 'TimePicker' | 'DateTimePicker' | 'WeekPicker' | 'MonthPicker' | 'YearPicker' | 'QuarterPicker' | 'DateRangePicker' | 'TimeRangePicker' | 'DateTimeRangePicker' | 'WeekRangePicker' | 'MonthRangePicker' | 'YearRangePicker' | 'QuarterRangePicker' | 'Transfer' | 'Upload' | 'ColorPicker' | 'ColorRadio' | 'IconPicker' | 'JsonInput';
|
10
|
+
export declare type IButtonComponent = 'Submit' | 'Reset';
|
11
|
+
export declare type IComboComponent = 'ArrayCards' | 'ArrayCards.Addition' | 'ArrayCards.Remove' | 'ArrayCards.MoveUp' | 'ArrayCards.MoveDown' | 'ArrayCards.Index' | 'ArrayCollapse' | 'ArrayCollapse.CollapsePanel' | 'ArrayCollapse.Addition' | 'ArrayCollapse.Remove' | 'ArrayCollapse.MoveUp' | 'ArrayCollapse.MoveDown' | 'ArrayCollapse.Index' | 'ArrayTable' | 'ArrayTable.Column' | 'ArrayTable.SortHandle' | 'ArrayTable.Addition' | 'ArrayTable.Remove' | 'ArrayTable.MoveDown' | 'ArrayTable.MoveUp' | 'ArrayTable.Index' | 'ArrayItems' | 'ArrayItems.Item' | 'ArrayItems.SortHandle' | 'ArrayItems.Addition' | 'ArrayItems.Remove' | 'ArrayItems.MoveDown' | 'ArrayItems.MoveUp' | 'ArrayItems.Index' | 'Editable' | 'Editable.Popover' | 'Editable.Dialog' | 'Editable.Drawer';
|
12
|
+
export declare type ILayoutComponent = 'FormFlex' | 'FormGrid' | 'FormGroup' | 'FormGroup.GroupPanel' | 'Search' | 'Search.SearchPanel' | 'FormTab' | 'FormTab.TabPane' | 'FormStep' | 'FormStep.StepPane' | 'FormCollapse' | 'FormCollapse.CollapsePanel' | 'FormButtonGroup' | 'FormDialog' | 'FormDrawer' | 'FormDialog.Footer' | 'FormDrawer.Footer';
|
13
|
+
export interface IRequestConfig extends CommonRequestConfig {
|
14
|
+
when?: (field: any) => any;
|
15
|
+
formatResult?: (res: any, utils?: any) => any;
|
16
|
+
onSuccess?: (res: any, field?: any) => any;
|
17
|
+
onError?: (res: any) => any;
|
18
|
+
}
|
19
|
+
export interface IFormSchemaItem {
|
20
|
+
type?: string;
|
21
|
+
name?: string;
|
22
|
+
description?: React.ReactNode;
|
23
|
+
title?: string;
|
24
|
+
component?: IBaseComponent | IButtonComponent | IComboComponent | ILayoutComponent | 'ProField' | any;
|
25
|
+
props?: anyObject | any;
|
26
|
+
decorator?: string | null;
|
27
|
+
decoratorProps?: anyObject;
|
28
|
+
dataSource?: any[];
|
29
|
+
reactions?: any;
|
30
|
+
rules?: any;
|
31
|
+
items?: IFormSchemaItem;
|
32
|
+
children?: IFormSchemaItem[];
|
33
|
+
content?: any;
|
34
|
+
tooltip?: string;
|
35
|
+
required?: boolean;
|
36
|
+
display?: FieldDisplayTypes;
|
37
|
+
visible?: boolean;
|
38
|
+
hidden?: boolean;
|
39
|
+
disabled?: boolean;
|
40
|
+
readOnly?: boolean;
|
41
|
+
readPretty?: boolean;
|
42
|
+
pattern?: FieldPatternTypes;
|
43
|
+
default?: any;
|
44
|
+
request?: IRequestConfig;
|
45
|
+
}
|
46
|
+
export declare type IFormSchema = IFormSchemaItem[];
|
47
|
+
export interface IInitializeItem {
|
48
|
+
(item: IFormSchemaItem, props?: any): IFormSchemaItem;
|
49
|
+
}
|
50
|
+
export interface IFormProps extends IFormLayoutProps {
|
51
|
+
form?: FormType | false;
|
52
|
+
schema: IFormSchema;
|
53
|
+
scope?: any;
|
54
|
+
components?: {
|
55
|
+
[key: string]: React.FC | React.ComponentClass;
|
56
|
+
};
|
57
|
+
children?: React.ReactNode;
|
58
|
+
initialValues?: object;
|
59
|
+
previewTextPlaceholder?: ReactNode;
|
60
|
+
onChange?: (values: any) => any;
|
61
|
+
onSubmit?: (values: any) => any;
|
62
|
+
onSubmitFailed?: (feedbacks: IFormFeedback[]) => void;
|
63
|
+
}
|
64
|
+
export interface IFilterProps extends IFormProps {
|
65
|
+
triggerType?: 'keydown' | 'change' | 'submit';
|
66
|
+
onFilter?: (values: any) => void;
|
67
|
+
onReset?: (payload?: any) => void;
|
68
|
+
}
|
69
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
interface IGetRandomName {
|
2
|
+
(prefix?: string): string;
|
3
|
+
}
|
4
|
+
declare const mapSize: (props: any, field: any) => any;
|
5
|
+
declare const mapStatus: (props: any, field: any) => any;
|
6
|
+
declare const getRandomName: IGetRandomName;
|
7
|
+
declare const commonFormat: (obj: any) => any;
|
8
|
+
declare const mergeArrayValue: (arr: any[], v?: any) => any[];
|
9
|
+
export { getRandomName, mapSize, mapStatus, commonFormat, mergeArrayValue };
|
@@ -0,0 +1,124 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.mergeArrayValue = exports.mapStatus = exports.mapSize = exports.getRandomName = exports.commonFormat = void 0;
|
7
|
+
|
8
|
+
var _formily = require("@teamix/formily");
|
9
|
+
|
10
|
+
var _utils = require("@teamix/utils");
|
11
|
+
|
12
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
13
|
+
|
14
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
15
|
+
|
16
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
17
|
+
|
18
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
19
|
+
|
20
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
21
|
+
|
22
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
23
|
+
|
24
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
25
|
+
|
26
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
27
|
+
|
28
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
29
|
+
|
30
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
31
|
+
|
32
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
33
|
+
|
34
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
35
|
+
|
36
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
37
|
+
|
38
|
+
var mapSize = function mapSize(props, field) {
|
39
|
+
var layout = _objectSpread(_objectSpread({}, (0, _formily.useFormShallowLayout)()), (0, _formily.useFormLayout)());
|
40
|
+
|
41
|
+
var takeSize = function takeSize() {
|
42
|
+
return layout.size === 'default' ? 'medium' : layout.size;
|
43
|
+
};
|
44
|
+
|
45
|
+
return _objectSpread(_objectSpread({}, props), {}, {
|
46
|
+
size: props.size || takeSize()
|
47
|
+
});
|
48
|
+
};
|
49
|
+
|
50
|
+
exports.mapSize = mapSize;
|
51
|
+
|
52
|
+
var mapStatus = function mapStatus(props, field) {
|
53
|
+
var takeStatus = function takeStatus() {
|
54
|
+
var _field$warnings, _field$decoratorProps, _field$decoratorProps2;
|
55
|
+
|
56
|
+
if (!field) return;
|
57
|
+
if (field['loading'] || field['validating']) return 'loading';
|
58
|
+
if (field['invalid']) return 'error';
|
59
|
+
if ((_field$warnings = field['warnings']) === null || _field$warnings === void 0 ? void 0 : _field$warnings.length) return 'warning';
|
60
|
+
if (((_field$decoratorProps = field.decoratorProps) === null || _field$decoratorProps === void 0 ? void 0 : _field$decoratorProps.feedbackStatus) === 'pending') return 'loading'; // 新增
|
61
|
+
|
62
|
+
return (_field$decoratorProps2 = field.decoratorProps) === null || _field$decoratorProps2 === void 0 ? void 0 : _field$decoratorProps2.feedbackStatus;
|
63
|
+
};
|
64
|
+
|
65
|
+
var takeState = function takeState(state) {
|
66
|
+
if (state === 'validating' || state === 'pending') return 'loading';
|
67
|
+
return state;
|
68
|
+
};
|
69
|
+
|
70
|
+
return _objectSpread(_objectSpread({}, props), {}, {
|
71
|
+
state: takeState(props.state) || takeStatus()
|
72
|
+
});
|
73
|
+
};
|
74
|
+
|
75
|
+
exports.mapStatus = mapStatus;
|
76
|
+
|
77
|
+
var getRandomName = function getRandomName() {
|
78
|
+
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'name';
|
79
|
+
return "".concat(prefix, "_").concat(Math.floor(Math.random() * Math.pow(10, 18)));
|
80
|
+
};
|
81
|
+
|
82
|
+
exports.getRandomName = getRandomName;
|
83
|
+
|
84
|
+
var commonFormat = function commonFormat(obj) {
|
85
|
+
var temp = {};
|
86
|
+
Object.entries(obj).map(function (_ref) {
|
87
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
88
|
+
key = _ref2[0],
|
89
|
+
value = _ref2[1];
|
90
|
+
|
91
|
+
if (value) {
|
92
|
+
if ((0, _utils.isArr)(value)) {
|
93
|
+
if (value.length) {
|
94
|
+
temp[key] = value;
|
95
|
+
}
|
96
|
+
} else if ((0, _utils.isObj)(value)) {
|
97
|
+
if (Object.keys(value).length) {
|
98
|
+
temp[key] = value;
|
99
|
+
}
|
100
|
+
} else {
|
101
|
+
temp[key] = value;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
});
|
105
|
+
return temp;
|
106
|
+
};
|
107
|
+
|
108
|
+
exports.commonFormat = commonFormat;
|
109
|
+
|
110
|
+
var mergeArrayValue = function mergeArrayValue(arr, v) {
|
111
|
+
if ((0, _utils.isArr)(v)) {
|
112
|
+
return [].concat(_toConsumableArray(arr), _toConsumableArray(v));
|
113
|
+
}
|
114
|
+
|
115
|
+
return [].concat(_toConsumableArray(arr), [v]);
|
116
|
+
|
117
|
+
if (v !== undefined) {
|
118
|
+
return [].concat(_toConsumableArray(arr), [v]);
|
119
|
+
}
|
120
|
+
|
121
|
+
return arr;
|
122
|
+
};
|
123
|
+
|
124
|
+
exports.mergeArrayValue = mergeArrayValue;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
9
|
+
|
10
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
11
|
+
|
12
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
13
|
+
|
14
|
+
var warning = function warning(item) {
|
15
|
+
var newItem = _objectSpread({}, item); // if (xxx) {
|
16
|
+
// console.warn('xxx');
|
17
|
+
// }
|
18
|
+
|
19
|
+
|
20
|
+
return newItem;
|
21
|
+
};
|
22
|
+
|
23
|
+
var _default = warning;
|
24
|
+
exports.default = _default;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var hooks = _interopRequireWildcard(require("@teamix/hooks"));
|
11
|
+
|
12
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
13
|
+
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
15
|
+
|
16
|
+
var _default = hooks;
|
17
|
+
exports.default = _default;
|
package/lib/index.d.ts
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
import ProAction from './actions';
|
2
|
+
import ProCard from './card';
|
3
|
+
import ProField from './field';
|
4
|
+
import ProForm from './form';
|
5
|
+
import hooks from './hooks';
|
6
|
+
import ProInfo from './info';
|
7
|
+
import ProPageContainer from './page-container';
|
8
|
+
import ProPageHeader from './page-header';
|
9
|
+
import ProTable from './table';
|
10
|
+
import ProSkeleton from './skeleton';
|
11
|
+
import utils from './utils';
|
12
|
+
import * as nocode from './nocode';
|
13
|
+
import * as templates from './templates';
|
14
|
+
export * from './actions';
|
15
|
+
export * from './card';
|
16
|
+
export * from './field';
|
17
|
+
export * from './form';
|
18
|
+
export * from './info';
|
19
|
+
export * from './page-container';
|
20
|
+
export * from './page-header';
|
21
|
+
export * from './skeleton';
|
22
|
+
export * from './table';
|
23
|
+
declare const version = "1.1.6";
|
24
|
+
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, hooks, nocode, templates, utils, };
|
package/lib/index.js
ADDED
@@ -0,0 +1,244 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
var _exportNames = {
|
9
|
+
version: true,
|
10
|
+
ProAction: true,
|
11
|
+
ProCard: true,
|
12
|
+
ProField: true,
|
13
|
+
ProForm: true,
|
14
|
+
hooks: true,
|
15
|
+
ProInfo: true,
|
16
|
+
ProPageContainer: true,
|
17
|
+
ProPageHeader: true,
|
18
|
+
ProTable: true,
|
19
|
+
ProSkeleton: true,
|
20
|
+
utils: true,
|
21
|
+
nocode: true,
|
22
|
+
templates: true
|
23
|
+
};
|
24
|
+
Object.defineProperty(exports, "ProAction", {
|
25
|
+
enumerable: true,
|
26
|
+
get: function get() {
|
27
|
+
return _actions.default;
|
28
|
+
}
|
29
|
+
});
|
30
|
+
Object.defineProperty(exports, "ProCard", {
|
31
|
+
enumerable: true,
|
32
|
+
get: function get() {
|
33
|
+
return _card.default;
|
34
|
+
}
|
35
|
+
});
|
36
|
+
Object.defineProperty(exports, "ProField", {
|
37
|
+
enumerable: true,
|
38
|
+
get: function get() {
|
39
|
+
return _field.default;
|
40
|
+
}
|
41
|
+
});
|
42
|
+
Object.defineProperty(exports, "ProForm", {
|
43
|
+
enumerable: true,
|
44
|
+
get: function get() {
|
45
|
+
return _form.default;
|
46
|
+
}
|
47
|
+
});
|
48
|
+
Object.defineProperty(exports, "ProInfo", {
|
49
|
+
enumerable: true,
|
50
|
+
get: function get() {
|
51
|
+
return _info.default;
|
52
|
+
}
|
53
|
+
});
|
54
|
+
Object.defineProperty(exports, "ProPageContainer", {
|
55
|
+
enumerable: true,
|
56
|
+
get: function get() {
|
57
|
+
return _pageContainer.default;
|
58
|
+
}
|
59
|
+
});
|
60
|
+
Object.defineProperty(exports, "ProPageHeader", {
|
61
|
+
enumerable: true,
|
62
|
+
get: function get() {
|
63
|
+
return _pageHeader.default;
|
64
|
+
}
|
65
|
+
});
|
66
|
+
Object.defineProperty(exports, "ProSkeleton", {
|
67
|
+
enumerable: true,
|
68
|
+
get: function get() {
|
69
|
+
return _skeleton.default;
|
70
|
+
}
|
71
|
+
});
|
72
|
+
Object.defineProperty(exports, "ProTable", {
|
73
|
+
enumerable: true,
|
74
|
+
get: function get() {
|
75
|
+
return _table.default;
|
76
|
+
}
|
77
|
+
});
|
78
|
+
Object.defineProperty(exports, "hooks", {
|
79
|
+
enumerable: true,
|
80
|
+
get: function get() {
|
81
|
+
return _hooks.default;
|
82
|
+
}
|
83
|
+
});
|
84
|
+
exports.templates = exports.nocode = void 0;
|
85
|
+
Object.defineProperty(exports, "utils", {
|
86
|
+
enumerable: true,
|
87
|
+
get: function get() {
|
88
|
+
return _utils.default;
|
89
|
+
}
|
90
|
+
});
|
91
|
+
exports.version = void 0;
|
92
|
+
|
93
|
+
var _actions = _interopRequireWildcard(require("./actions"));
|
94
|
+
|
95
|
+
Object.keys(_actions).forEach(function (key) {
|
96
|
+
if (key === "default" || key === "__esModule") return;
|
97
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
98
|
+
if (key in exports && exports[key] === _actions[key]) return;
|
99
|
+
Object.defineProperty(exports, key, {
|
100
|
+
enumerable: true,
|
101
|
+
get: function get() {
|
102
|
+
return _actions[key];
|
103
|
+
}
|
104
|
+
});
|
105
|
+
});
|
106
|
+
|
107
|
+
var _card = _interopRequireWildcard(require("./card"));
|
108
|
+
|
109
|
+
Object.keys(_card).forEach(function (key) {
|
110
|
+
if (key === "default" || key === "__esModule") return;
|
111
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
112
|
+
if (key in exports && exports[key] === _card[key]) return;
|
113
|
+
Object.defineProperty(exports, key, {
|
114
|
+
enumerable: true,
|
115
|
+
get: function get() {
|
116
|
+
return _card[key];
|
117
|
+
}
|
118
|
+
});
|
119
|
+
});
|
120
|
+
|
121
|
+
var _field = _interopRequireWildcard(require("./field"));
|
122
|
+
|
123
|
+
Object.keys(_field).forEach(function (key) {
|
124
|
+
if (key === "default" || key === "__esModule") return;
|
125
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
126
|
+
if (key in exports && exports[key] === _field[key]) return;
|
127
|
+
Object.defineProperty(exports, key, {
|
128
|
+
enumerable: true,
|
129
|
+
get: function get() {
|
130
|
+
return _field[key];
|
131
|
+
}
|
132
|
+
});
|
133
|
+
});
|
134
|
+
|
135
|
+
var _form = _interopRequireWildcard(require("./form"));
|
136
|
+
|
137
|
+
Object.keys(_form).forEach(function (key) {
|
138
|
+
if (key === "default" || key === "__esModule") return;
|
139
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
140
|
+
if (key in exports && exports[key] === _form[key]) return;
|
141
|
+
Object.defineProperty(exports, key, {
|
142
|
+
enumerable: true,
|
143
|
+
get: function get() {
|
144
|
+
return _form[key];
|
145
|
+
}
|
146
|
+
});
|
147
|
+
});
|
148
|
+
|
149
|
+
var _hooks = _interopRequireDefault(require("./hooks"));
|
150
|
+
|
151
|
+
var _info = _interopRequireWildcard(require("./info"));
|
152
|
+
|
153
|
+
Object.keys(_info).forEach(function (key) {
|
154
|
+
if (key === "default" || key === "__esModule") return;
|
155
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
156
|
+
if (key in exports && exports[key] === _info[key]) return;
|
157
|
+
Object.defineProperty(exports, key, {
|
158
|
+
enumerable: true,
|
159
|
+
get: function get() {
|
160
|
+
return _info[key];
|
161
|
+
}
|
162
|
+
});
|
163
|
+
});
|
164
|
+
|
165
|
+
var _pageContainer = _interopRequireWildcard(require("./page-container"));
|
166
|
+
|
167
|
+
Object.keys(_pageContainer).forEach(function (key) {
|
168
|
+
if (key === "default" || key === "__esModule") return;
|
169
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
170
|
+
if (key in exports && exports[key] === _pageContainer[key]) return;
|
171
|
+
Object.defineProperty(exports, key, {
|
172
|
+
enumerable: true,
|
173
|
+
get: function get() {
|
174
|
+
return _pageContainer[key];
|
175
|
+
}
|
176
|
+
});
|
177
|
+
});
|
178
|
+
|
179
|
+
var _pageHeader = _interopRequireWildcard(require("./page-header"));
|
180
|
+
|
181
|
+
Object.keys(_pageHeader).forEach(function (key) {
|
182
|
+
if (key === "default" || key === "__esModule") return;
|
183
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
184
|
+
if (key in exports && exports[key] === _pageHeader[key]) return;
|
185
|
+
Object.defineProperty(exports, key, {
|
186
|
+
enumerable: true,
|
187
|
+
get: function get() {
|
188
|
+
return _pageHeader[key];
|
189
|
+
}
|
190
|
+
});
|
191
|
+
});
|
192
|
+
|
193
|
+
var _table = _interopRequireWildcard(require("./table"));
|
194
|
+
|
195
|
+
Object.keys(_table).forEach(function (key) {
|
196
|
+
if (key === "default" || key === "__esModule") return;
|
197
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
198
|
+
if (key in exports && exports[key] === _table[key]) return;
|
199
|
+
Object.defineProperty(exports, key, {
|
200
|
+
enumerable: true,
|
201
|
+
get: function get() {
|
202
|
+
return _table[key];
|
203
|
+
}
|
204
|
+
});
|
205
|
+
});
|
206
|
+
|
207
|
+
var _skeleton = _interopRequireWildcard(require("./skeleton"));
|
208
|
+
|
209
|
+
Object.keys(_skeleton).forEach(function (key) {
|
210
|
+
if (key === "default" || key === "__esModule") return;
|
211
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
212
|
+
if (key in exports && exports[key] === _skeleton[key]) return;
|
213
|
+
Object.defineProperty(exports, key, {
|
214
|
+
enumerable: true,
|
215
|
+
get: function get() {
|
216
|
+
return _skeleton[key];
|
217
|
+
}
|
218
|
+
});
|
219
|
+
});
|
220
|
+
|
221
|
+
var _utils = _interopRequireDefault(require("./utils"));
|
222
|
+
|
223
|
+
var nocode = _interopRequireWildcard(require("./nocode"));
|
224
|
+
|
225
|
+
exports.nocode = nocode;
|
226
|
+
|
227
|
+
var templates = _interopRequireWildcard(require("./templates"));
|
228
|
+
|
229
|
+
exports.templates = templates;
|
230
|
+
|
231
|
+
var _icon = _interopRequireDefault(require("@teamix/icon"));
|
232
|
+
|
233
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
234
|
+
|
235
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
236
|
+
|
237
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
238
|
+
|
239
|
+
// import ProLayout from './layout';
|
240
|
+
// 设置图标源
|
241
|
+
_icon.default.setConfig(_utils.default.getTeamixIconConfig());
|
242
|
+
|
243
|
+
var version = '1.1.6';
|
244
|
+
exports.version = version;
|
@@ -0,0 +1,78 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var _components = require("@alicloudfe/components");
|
9
|
+
|
10
|
+
var _ = require("../../..");
|
11
|
+
|
12
|
+
var _utils = require("@teamix/utils");
|
13
|
+
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
15
|
+
|
16
|
+
require("./index.scss");
|
17
|
+
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19
|
+
|
20
|
+
var cls = (0, _utils.baseClass)('teamix-pro-field-info-form-item');
|
21
|
+
var Row = _components.Grid.Row,
|
22
|
+
Col = _components.Grid.Col;
|
23
|
+
|
24
|
+
var FormItem = function FormItem(prop) {
|
25
|
+
var value = prop.value,
|
26
|
+
label = prop.label,
|
27
|
+
baseInfoLayout = prop.baseInfoLayout,
|
28
|
+
headerInfoLayout = prop.headerInfoLayout,
|
29
|
+
loading = prop.loading,
|
30
|
+
tooltip = prop.tooltip,
|
31
|
+
tooltipIcon = prop.tooltipIcon;
|
32
|
+
|
33
|
+
if (baseInfoLayout) {
|
34
|
+
var labelCol = baseInfoLayout.labelCol,
|
35
|
+
wrapperCol = baseInfoLayout.wrapperCol;
|
36
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
37
|
+
className: cls()
|
38
|
+
}, /*#__PURE__*/_react.default.createElement(Row, null, /*#__PURE__*/_react.default.createElement(Col, {
|
39
|
+
span: labelCol.span,
|
40
|
+
className: cls('label')
|
41
|
+
}, /*#__PURE__*/_react.default.createElement(_utils.LabelIconTip, {
|
42
|
+
label: label,
|
43
|
+
tooltip: tooltip,
|
44
|
+
icon: tooltipIcon
|
45
|
+
})), /*#__PURE__*/_react.default.createElement(Col, {
|
46
|
+
span: wrapperCol.span,
|
47
|
+
className: cls('value')
|
48
|
+
}, loading && /*#__PURE__*/_react.default.createElement("div", {
|
49
|
+
className: cls('base-skeleton-box')
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_.BaseSkeleton.Info, null)), !loading && /*#__PURE__*/_react.default.createElement("div", null, value))));
|
51
|
+
}
|
52
|
+
|
53
|
+
if (headerInfoLayout) {
|
54
|
+
var _headerInfoLayout$lab = headerInfoLayout.labelGutter,
|
55
|
+
labelGutter = _headerInfoLayout$lab === void 0 ? '16px' : _headerInfoLayout$lab;
|
56
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
57
|
+
className: cls()
|
58
|
+
}, /*#__PURE__*/_react.default.createElement(Row, null, /*#__PURE__*/_react.default.createElement("div", {
|
59
|
+
className: cls('header-label')
|
60
|
+
}, /*#__PURE__*/_react.default.createElement(_utils.LabelIconTip, {
|
61
|
+
label: label,
|
62
|
+
tooltip: tooltip,
|
63
|
+
icon: tooltipIcon
|
64
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
65
|
+
className: cls('header-value'),
|
66
|
+
style: {
|
67
|
+
marginLeft: labelGutter
|
68
|
+
}
|
69
|
+
}, loading && /*#__PURE__*/_react.default.createElement("div", {
|
70
|
+
className: cls('base-skeleton-box')
|
71
|
+
}, /*#__PURE__*/_react.default.createElement(_.BaseSkeleton.Info, null)), !loading && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, value))));
|
72
|
+
}
|
73
|
+
|
74
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
75
|
+
};
|
76
|
+
|
77
|
+
var _default = FormItem;
|
78
|
+
exports.default = _default;
|