@teamix/pro 1.0.22 → 1.1.0
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/all.css +1 -1
- package/dist/all.js +12421 -13334
- package/dist/all.min.css +1 -1
- package/dist/all.min.js +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 +4 -0
- package/es/actions/dialog-table.js +1 -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 +2 -0
- package/es/actions/drawer-table.js +1 -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 +76 -0
- package/es/actions/index.js +317 -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 +30 -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 +248 -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 +54 -0
- package/es/form/SchemaForm/index.d.ts +4 -0
- package/es/form/SchemaForm/index.js +258 -0
- package/es/form/SchemaForm/initializeArrayCards.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayCards.js +69 -0
- package/es/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayCollapse.js +78 -0
- package/es/form/SchemaForm/initializeArrayIcon.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayIcon.js +50 -0
- package/es/form/SchemaForm/initializeArrayItems.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayItems.js +97 -0
- package/es/form/SchemaForm/initializeArrayTable.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayTable.js +66 -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 +69 -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 +20 -0
- package/es/form/index.js +24 -0
- package/es/form/typing.d.ts +78 -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 +20 -0
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.js +2 -0
- package/es/index.d.ts +24 -22
- package/es/index.js +25 -23
- 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 +49 -0
- package/es/info/components/InfoGroup/index.d.ts +5 -0
- package/es/info/components/InfoGroup/index.js +16 -0
- package/es/info/components/InfoGroup/index.scss +8 -0
- package/es/info/components/InfoValueItem/index.d.ts +5 -0
- package/es/info/components/InfoValueItem/index.js +211 -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 +72 -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 +84 -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 +172 -0
- package/es/info/components/tableInfo/index.scss +18 -0
- package/es/info/index.d.ts +9 -0
- package/es/info/index.js +85 -0
- package/es/info/index.scss +8 -0
- package/es/info/typing.d.ts +143 -0
- package/es/info/typing.js +1 -0
- package/es/info/utils/index.d.ts +3 -0
- package/es/info/utils/index.js +12 -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 +3 -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 +196 -0
- package/es/nocode/configurators/ProTable.d.ts +3 -0
- package/es/nocode/configurators/ProTable.js +317 -0
- package/es/nocode/configurators/common.d.ts +176 -0
- package/es/nocode/configurators/common.js +314 -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 +42 -0
- package/es/page-header/index.js +222 -0
- package/es/page-header/index.scss +171 -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 +231 -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 +241 -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 +7 -0
- package/es/table/index.js +620 -0
- package/es/table/index.scss +104 -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 +4 -0
- package/lib/actions/dialog-table.js +5 -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 +2 -0
- package/lib/actions/drawer-table.js +5 -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 +76 -0
- package/lib/actions/index.js +356 -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 +30 -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 +248 -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 +64 -0
- package/lib/form/SchemaForm/index.d.ts +4 -0
- package/lib/form/SchemaForm/index.js +301 -0
- package/lib/form/SchemaForm/initializeArrayCards.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayCards.js +76 -0
- package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayCollapse.js +85 -0
- package/lib/form/SchemaForm/initializeArrayIcon.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayIcon.js +61 -0
- package/lib/form/SchemaForm/initializeArrayItems.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayItems.js +104 -0
- package/lib/form/SchemaForm/initializeArrayTable.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayTable.js +73 -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 +76 -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 +20 -0
- package/lib/form/index.js +149 -0
- package/lib/form/typing.d.ts +78 -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 +28 -0
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +17 -0
- package/lib/index.d.ts +24 -22
- package/lib/index.js +84 -57
- 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 +49 -0
- package/lib/info/components/InfoGroup/index.d.ts +5 -0
- package/lib/info/components/InfoGroup/index.js +27 -0
- package/lib/info/components/InfoGroup/index.scss +8 -0
- package/lib/info/components/InfoValueItem/index.d.ts +5 -0
- package/lib/info/components/InfoValueItem/index.js +237 -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 +99 -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 +111 -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 +193 -0
- package/lib/info/components/tableInfo/index.scss +18 -0
- package/lib/info/index.d.ts +9 -0
- package/lib/info/index.js +121 -0
- package/lib/info/index.scss +8 -0
- package/lib/info/typing.d.ts +143 -0
- package/lib/info/typing.js +5 -0
- package/lib/info/utils/index.d.ts +3 -0
- package/lib/info/utils/index.js +19 -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 +3 -0
- package/lib/layout/index.js +30 -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 +205 -0
- package/lib/nocode/configurators/ProTable.d.ts +3 -0
- package/lib/nocode/configurators/ProTable.js +326 -0
- package/lib/nocode/configurators/common.d.ts +176 -0
- package/lib/nocode/configurators/common.js +325 -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 +42 -0
- package/lib/page-header/index.js +240 -0
- package/lib/page-header/index.scss +171 -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 +252 -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 +265 -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 +7 -0
- package/lib/table/index.js +681 -0
- package/lib/table/index.scss +104 -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 +21 -11
@@ -0,0 +1,82 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var _utils = require("@teamix/utils");
|
9
|
+
|
10
|
+
var _react = require("react");
|
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
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
15
|
+
|
16
|
+
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."); }
|
17
|
+
|
18
|
+
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); }
|
19
|
+
|
20
|
+
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; }
|
21
|
+
|
22
|
+
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; }
|
23
|
+
|
24
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
25
|
+
|
26
|
+
var useInfoRequest = function useInfoRequest(props) {
|
27
|
+
var url = props.url,
|
28
|
+
_props$method = props.method,
|
29
|
+
method = _props$method === void 0 ? 'get' : _props$method,
|
30
|
+
params = props.params,
|
31
|
+
formatResult = props.formatResult;
|
32
|
+
var requestDataKey = method.toLowerCase() === 'get' ? 'params' : 'data';
|
33
|
+
|
34
|
+
var _useState = (0, _react.useState)(true),
|
35
|
+
_useState2 = _slicedToArray(_useState, 2),
|
36
|
+
loading = _useState2[0],
|
37
|
+
setLoading = _useState2[1];
|
38
|
+
|
39
|
+
var _useState3 = (0, _react.useState)({}),
|
40
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
41
|
+
dataSource = _useState4[0],
|
42
|
+
setDataSource = _useState4[1];
|
43
|
+
|
44
|
+
(0, _react.useEffect)(function () {
|
45
|
+
getData();
|
46
|
+
}, []); // 获取数据
|
47
|
+
|
48
|
+
var getData = function getData() {
|
49
|
+
setLoading(true);
|
50
|
+
|
51
|
+
if (url) {
|
52
|
+
(0, _utils.request)(_defineProperty({
|
53
|
+
url: url,
|
54
|
+
method: method
|
55
|
+
}, requestDataKey, params)).then(function (resp) {
|
56
|
+
if (typeof formatResult === 'function') {
|
57
|
+
setDataSource(formatResult === null || formatResult === void 0 ? void 0 : formatResult(resp));
|
58
|
+
} else if (formatResult) {
|
59
|
+
setDataSource((0, _utils.getTargetValue)("{{".concat(formatResult.data, "}}"), resp));
|
60
|
+
} else {
|
61
|
+
setDataSource(resp);
|
62
|
+
}
|
63
|
+
}).finally(function () {
|
64
|
+
setLoading(false);
|
65
|
+
});
|
66
|
+
}
|
67
|
+
}; // 刷新数据
|
68
|
+
|
69
|
+
|
70
|
+
var refresh = function refresh() {
|
71
|
+
getData();
|
72
|
+
};
|
73
|
+
|
74
|
+
return {
|
75
|
+
loading: loading,
|
76
|
+
result: dataSource,
|
77
|
+
refresh: refresh
|
78
|
+
};
|
79
|
+
};
|
80
|
+
|
81
|
+
var _default = useInfoRequest;
|
82
|
+
exports.default = _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function getLayout(width: number): "l" | "xs" | "xl" | "s" | "m";
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.getLayout = getLayout;
|
7
|
+
|
8
|
+
function getLayout(width) {
|
9
|
+
if (width < 424) {
|
10
|
+
return 'xs';
|
11
|
+
} else if (width < 694) {
|
12
|
+
return 's';
|
13
|
+
} else if (width < 904) {
|
14
|
+
return 'm';
|
15
|
+
} else if (width < 1204) {
|
16
|
+
return 'l';
|
17
|
+
} else {
|
18
|
+
return 'xl';
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,30 @@
|
|
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
|
+
exports.default = void 0;
|
10
|
+
|
11
|
+
var _proLayout = _interopRequireWildcard(require("@teamix/pro-layout"));
|
12
|
+
|
13
|
+
Object.keys(_proLayout).forEach(function (key) {
|
14
|
+
if (key === "default" || key === "__esModule") return;
|
15
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
16
|
+
if (key in exports && exports[key] === _proLayout[key]) return;
|
17
|
+
Object.defineProperty(exports, key, {
|
18
|
+
enumerable: true,
|
19
|
+
get: function get() {
|
20
|
+
return _proLayout[key];
|
21
|
+
}
|
22
|
+
});
|
23
|
+
});
|
24
|
+
|
25
|
+
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); }
|
26
|
+
|
27
|
+
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; }
|
28
|
+
|
29
|
+
var _default = _proLayout.default;
|
30
|
+
exports.default = _default;
|
@@ -0,0 +1,116 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
var initialValues = {
|
8
|
+
title: '卡片标题',
|
9
|
+
children: '卡片内容卡片内容卡片内容',
|
10
|
+
extra: '操作',
|
11
|
+
bordered: true,
|
12
|
+
hoveredShadow: true
|
13
|
+
};
|
14
|
+
var schema = [{
|
15
|
+
component: 'FormTab',
|
16
|
+
children: [{
|
17
|
+
title: '基本信息',
|
18
|
+
children: [{
|
19
|
+
component: 'FormCollapse',
|
20
|
+
children: [{
|
21
|
+
title: '基础',
|
22
|
+
children: [{
|
23
|
+
name: 'title',
|
24
|
+
title: '标题',
|
25
|
+
component: 'Input'
|
26
|
+
}, {
|
27
|
+
name: 'subTitle',
|
28
|
+
title: '副标题',
|
29
|
+
component: 'Input'
|
30
|
+
}, {
|
31
|
+
name: 'extra',
|
32
|
+
title: '额外信息',
|
33
|
+
component: 'Input'
|
34
|
+
}, {
|
35
|
+
name: 'children',
|
36
|
+
title: '内容',
|
37
|
+
component: 'TextArea'
|
38
|
+
}]
|
39
|
+
}, {
|
40
|
+
title: '状态',
|
41
|
+
children: [{
|
42
|
+
name: 'loading',
|
43
|
+
title: '加载中',
|
44
|
+
component: 'Switch'
|
45
|
+
}]
|
46
|
+
}]
|
47
|
+
}]
|
48
|
+
}, {
|
49
|
+
title: '卡片样式',
|
50
|
+
children: [{
|
51
|
+
component: 'FormCollapse',
|
52
|
+
children: [{
|
53
|
+
title: '整体样式',
|
54
|
+
children: [{
|
55
|
+
name: 'bordered',
|
56
|
+
title: '边框',
|
57
|
+
component: 'Switch'
|
58
|
+
}, {
|
59
|
+
name: 'hoveredShadow',
|
60
|
+
title: '悬浮阴影',
|
61
|
+
component: 'Switch'
|
62
|
+
}, {
|
63
|
+
name: 'divider',
|
64
|
+
title: '头部分割线',
|
65
|
+
component: 'Switch'
|
66
|
+
}, {
|
67
|
+
name: 'backgroundColor',
|
68
|
+
title: '背景色',
|
69
|
+
component: 'Select',
|
70
|
+
dataSource: [{
|
71
|
+
label: '默认',
|
72
|
+
value: ''
|
73
|
+
}, {
|
74
|
+
label: '蓝色',
|
75
|
+
value: 'blue'
|
76
|
+
}, {
|
77
|
+
label: '绿生',
|
78
|
+
value: 'green'
|
79
|
+
}, {
|
80
|
+
label: '红色',
|
81
|
+
value: 'red'
|
82
|
+
}, {
|
83
|
+
label: '橙色',
|
84
|
+
value: 'orange'
|
85
|
+
}, {
|
86
|
+
label: '黄色',
|
87
|
+
value: 'yellow'
|
88
|
+
}, {
|
89
|
+
label: '灰色',
|
90
|
+
value: 'grey'
|
91
|
+
}, {
|
92
|
+
label: '透明',
|
93
|
+
value: 'transparent'
|
94
|
+
}]
|
95
|
+
}]
|
96
|
+
}, {
|
97
|
+
title: '内容样式',
|
98
|
+
children: [{
|
99
|
+
name: 'compacted',
|
100
|
+
title: '紧凑模式',
|
101
|
+
component: 'Switch'
|
102
|
+
}, {
|
103
|
+
name: 'centered',
|
104
|
+
title: '内容居中',
|
105
|
+
component: 'Switch'
|
106
|
+
}]
|
107
|
+
}]
|
108
|
+
}]
|
109
|
+
}]
|
110
|
+
}];
|
111
|
+
var configurator = {
|
112
|
+
schema: schema,
|
113
|
+
initialValues: initialValues
|
114
|
+
};
|
115
|
+
var _default = configurator;
|
116
|
+
exports.default = _default;
|
@@ -0,0 +1,205 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.default = void 0;
|
7
|
+
|
8
|
+
var _common = require("./common");
|
9
|
+
|
10
|
+
var initialValues = {
|
11
|
+
title: '页面标题',
|
12
|
+
icon: 'success-fill',
|
13
|
+
iconColor: 'green',
|
14
|
+
goback: true,
|
15
|
+
breadcrumb: [{
|
16
|
+
text: '首页',
|
17
|
+
link: '#'
|
18
|
+
}, {
|
19
|
+
text: '二级标题',
|
20
|
+
link: '#'
|
21
|
+
}, {
|
22
|
+
text: '当前'
|
23
|
+
}],
|
24
|
+
tags: [{
|
25
|
+
type: 'primary',
|
26
|
+
color: 'green',
|
27
|
+
text: '标签一'
|
28
|
+
}, {
|
29
|
+
type: 'normal',
|
30
|
+
color: 'red',
|
31
|
+
text: '标签二'
|
32
|
+
}],
|
33
|
+
extra: [{
|
34
|
+
children: '帮助文档',
|
35
|
+
type: 'normal',
|
36
|
+
icon: 'text-line',
|
37
|
+
config: {
|
38
|
+
type: 'link',
|
39
|
+
to: '/'
|
40
|
+
}
|
41
|
+
}],
|
42
|
+
operation: [{
|
43
|
+
children: '普通按钮',
|
44
|
+
type: 'normal',
|
45
|
+
icon: 'text-line',
|
46
|
+
config: {
|
47
|
+
type: 'link',
|
48
|
+
to: '/'
|
49
|
+
}
|
50
|
+
}, {
|
51
|
+
children: '主要按钮',
|
52
|
+
type: 'primary',
|
53
|
+
icon: 'text-line',
|
54
|
+
config: {
|
55
|
+
type: 'link',
|
56
|
+
to: '/'
|
57
|
+
}
|
58
|
+
}],
|
59
|
+
image: 'https://img.alicdn.com/imgextra/i2/O1CN01Q9ACuA1kUh1x7ukgU_!!6000000004687-2-tps-552-354.png'
|
60
|
+
};
|
61
|
+
var schema = [{
|
62
|
+
component: 'FormTab',
|
63
|
+
children: [{
|
64
|
+
title: '标题',
|
65
|
+
children: [{
|
66
|
+
component: 'FormCollapse',
|
67
|
+
children: [{
|
68
|
+
title: '基本信息',
|
69
|
+
children: [{
|
70
|
+
name: 'title',
|
71
|
+
title: '页面标题',
|
72
|
+
component: 'Input'
|
73
|
+
}, {
|
74
|
+
name: 'description',
|
75
|
+
title: '页面描述',
|
76
|
+
component: 'Input'
|
77
|
+
}, {
|
78
|
+
name: 'goback',
|
79
|
+
title: '有返回按钮',
|
80
|
+
component: 'Switch'
|
81
|
+
}]
|
82
|
+
}, {
|
83
|
+
title: '图标',
|
84
|
+
children: [{
|
85
|
+
name: 'icon',
|
86
|
+
title: 'Icon图标',
|
87
|
+
component: 'IconPicker'
|
88
|
+
}, {
|
89
|
+
name: 'iconColor',
|
90
|
+
title: '图标颜色',
|
91
|
+
component: 'ColorSwatches'
|
92
|
+
}, {
|
93
|
+
name: 'iconBackgroundColor',
|
94
|
+
title: '图标背景颜色',
|
95
|
+
component: 'ColorSwatches'
|
96
|
+
}, {
|
97
|
+
name: 'iconBackgroundType',
|
98
|
+
title: '图标背景形状',
|
99
|
+
component: 'Radio',
|
100
|
+
dataSource: [{
|
101
|
+
label: '方形',
|
102
|
+
value: 'square'
|
103
|
+
}, {
|
104
|
+
label: '圆形',
|
105
|
+
value: 'circle'
|
106
|
+
}],
|
107
|
+
default: 'square'
|
108
|
+
}]
|
109
|
+
}, {
|
110
|
+
title: '标签',
|
111
|
+
children: [{
|
112
|
+
name: 'tags',
|
113
|
+
component: 'ArrayTable',
|
114
|
+
items: [{
|
115
|
+
name: 'text',
|
116
|
+
title: '名称',
|
117
|
+
component: 'Input'
|
118
|
+
}, {
|
119
|
+
name: 'type',
|
120
|
+
title: '类型',
|
121
|
+
component: 'Select',
|
122
|
+
dataSource: [{
|
123
|
+
label: '普通',
|
124
|
+
value: 'normal'
|
125
|
+
}, {
|
126
|
+
label: '主要',
|
127
|
+
value: 'primary'
|
128
|
+
}]
|
129
|
+
}, {
|
130
|
+
name: 'color',
|
131
|
+
title: '颜色',
|
132
|
+
component: 'Input'
|
133
|
+
}, {
|
134
|
+
title: '操作',
|
135
|
+
component: 'ArrayTable.Remove',
|
136
|
+
decoratorProps: {
|
137
|
+
fixed: 'right',
|
138
|
+
width: 40
|
139
|
+
},
|
140
|
+
formItem: null
|
141
|
+
}],
|
142
|
+
children: [{
|
143
|
+
title: '添加标签'
|
144
|
+
}]
|
145
|
+
}]
|
146
|
+
}]
|
147
|
+
}]
|
148
|
+
}, {
|
149
|
+
title: '面包屑',
|
150
|
+
children: [{
|
151
|
+
component: 'FormCollapse',
|
152
|
+
children: [{
|
153
|
+
title: '面包屑',
|
154
|
+
children: [{
|
155
|
+
name: 'breadcrumb',
|
156
|
+
component: 'ArrayTable',
|
157
|
+
items: [{
|
158
|
+
name: 'text',
|
159
|
+
title: '名称',
|
160
|
+
component: 'Input'
|
161
|
+
}, {
|
162
|
+
name: 'link',
|
163
|
+
title: '链接',
|
164
|
+
component: 'Input'
|
165
|
+
}, {
|
166
|
+
title: '操作',
|
167
|
+
component: 'ArrayTable.Remove',
|
168
|
+
decoratorProps: {
|
169
|
+
fixed: 'right',
|
170
|
+
width: 40
|
171
|
+
},
|
172
|
+
formItem: null
|
173
|
+
}],
|
174
|
+
children: [{
|
175
|
+
title: '添加面包屑'
|
176
|
+
}]
|
177
|
+
}]
|
178
|
+
}]
|
179
|
+
}]
|
180
|
+
}, {
|
181
|
+
title: '额外信息',
|
182
|
+
children: [{
|
183
|
+
component: 'FormCollapse',
|
184
|
+
children: [(0, _common.actions)({
|
185
|
+
title: '额外信息',
|
186
|
+
name: 'extra'
|
187
|
+
})]
|
188
|
+
}]
|
189
|
+
}, {
|
190
|
+
title: '操作区域',
|
191
|
+
children: [{
|
192
|
+
component: 'FormCollapse',
|
193
|
+
children: [(0, _common.actions)({
|
194
|
+
title: '操作项',
|
195
|
+
name: 'operation'
|
196
|
+
})]
|
197
|
+
}]
|
198
|
+
}]
|
199
|
+
}];
|
200
|
+
var configurator = {
|
201
|
+
schema: schema,
|
202
|
+
initialValues: initialValues
|
203
|
+
};
|
204
|
+
var _default = configurator;
|
205
|
+
exports.default = _default;
|