@teamix/pro 1.5.1-aplha.0 → 1.5.1
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/pro.css +1 -1
- package/dist/pro.js +65730 -78948
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/es/actions/base.d.ts +24 -0
- package/es/actions/confirm.d.ts +7 -0
- package/es/actions/danger-confirm.d.ts +7 -0
- package/es/actions/danger-pop-confirm.d.ts +5 -0
- package/es/actions/dialog-component.d.ts +10 -0
- package/es/actions/dialog-component.js +7 -1
- package/es/actions/dialog-form.d.ts +29 -0
- package/es/actions/dialog-form.js +3 -5
- package/es/actions/dialog-info.d.ts +9 -0
- package/es/actions/dialog-table.d.ts +9 -0
- package/es/actions/dialog.d.ts +40 -0
- package/es/actions/dialog.js +1 -1
- package/es/actions/drawer-form.d.ts +6 -0
- package/es/actions/drawer-info.d.ts +6 -0
- package/es/actions/drawer-table.d.ts +6 -0
- package/es/actions/drawer.d.ts +6 -0
- package/es/actions/error.d.ts +7 -0
- package/es/actions/index.d.ts +111 -0
- package/es/actions/index.js +23 -32
- package/es/actions/index.scss +5 -0
- package/es/actions/link.d.ts +8 -0
- package/es/actions/notice.d.ts +7 -0
- package/es/actions/pop-confirm.d.ts +9 -0
- package/es/actions/request.d.ts +9 -0
- package/es/actions/request.js +2 -2
- package/es/actions/utils.d.ts +1 -0
- package/es/card/card-container.d.ts +18 -0
- package/es/card/card-container.js +9 -9
- package/es/card/divider.d.ts +6 -0
- package/es/card/divider.js +6 -2
- package/es/card/index.d.ts +109 -0
- package/es/card/index.js +8 -14
- package/es/card/index.scss +7 -0
- package/es/card/selectable.d.ts +13 -0
- package/es/card/selectable.js +6 -2
- package/es/card/tab.d.ts +6 -0
- package/es/card/tab.js +6 -2
- package/es/card/utils.d.ts +9 -0
- package/es/field/index.d.ts +3 -0
- package/es/form/Components/Editable/index.d.ts +20 -0
- package/es/form/Components/Editable/index.js +1 -1
- package/es/form/Components/FormGroup/index.d.ts +13 -0
- package/es/form/Components/FormGroup/index.js +3 -5
- package/es/form/Components/LightFilter/componentMap.d.ts +3 -0
- package/es/form/Components/LightFilter/index.d.ts +17 -0
- package/es/form/Components/LightFilter/index.js +2 -8
- package/es/form/Components/ProField/index.d.ts +2 -0
- package/es/form/Components/ProField/index.js +6 -2
- package/es/form/Components/ProField/mapDateFormat.d.ts +3 -0
- package/es/form/Components/Text/index.d.ts +7 -0
- package/es/form/Components/Text/index.js +6 -2
- package/es/form/Filter/AdvancedFilter.d.ts +7 -0
- package/es/form/Filter/AdvancedFilter.js +15 -18
- package/es/form/Filter/Layout.d.ts +5 -0
- package/es/form/Filter/LightFilter.d.ts +7 -0
- package/es/form/Filter/LightFilter.js +10 -13
- package/es/form/Filter/SimpleFilter.d.ts +7 -0
- package/es/form/Filter/SimpleFilter.js +6 -10
- package/es/form/Filter/index.d.ts +9 -0
- package/es/form/Filter/index.js +10 -7
- package/es/form/Filter/index2.d.ts +13 -0
- package/es/form/Filter/index2.js +17 -21
- package/es/form/Filter/useBindUrl.d.ts +2 -0
- package/es/form/Filter/useSpecialProps.d.ts +6 -0
- package/es/form/ProForm/addCascadeEffect.d.ts +2 -0
- package/es/form/ProForm/customComponent.d.ts +3 -0
- package/es/form/ProForm/index.d.ts +5 -0
- package/es/form/ProForm/index.js +2 -4
- package/es/form/ProForm/useAutoLayout.d.ts +9 -0
- package/es/form/ProForm/useAutoSubmit.d.ts +6 -0
- package/es/form/ProForm/useFieldRequest.d.ts +5 -0
- package/es/form/ProForm/useFormDisplayValues.d.ts +4 -0
- package/es/form/ProForm/useFormDisplayValues.js +1 -1
- package/es/form/ProForm/useInitialRequest.d.ts +6 -0
- package/es/form/SchemaForm/adapterComponent.d.ts +5 -0
- package/es/form/SchemaForm/adapterDecorator.d.ts +6 -0
- package/es/form/SchemaForm/adapterType.d.ts +5 -0
- package/es/form/SchemaForm/index.d.ts +4 -0
- package/es/form/SchemaForm/initializeArrayCards.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayItems.d.ts +3 -0
- package/es/form/SchemaForm/initializeArrayTable.d.ts +3 -0
- package/es/form/SchemaForm/initializeDataSource.d.ts +15 -0
- package/es/form/SchemaForm/initializeFormButton.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormCollapse.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormGroup.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormStep.d.ts +5 -0
- package/es/form/SchemaForm/initializeFormTab.d.ts +3 -0
- package/es/form/SchemaForm/initializeReactions.d.ts +2 -0
- package/es/form/SchemaForm/initializeRequest.d.ts +11 -0
- package/es/form/SchemaForm/initializeRules.d.ts +11 -0
- package/es/form/SchemaForm/initializeSelectTable.d.ts +3 -0
- package/es/form/SchemaForm/reactions.d.ts +6 -0
- package/es/form/SchemaForm/reactions.js +1 -2
- package/es/form/docs/ActionResponse.d.ts +7 -0
- package/es/form/fieldTypeMap.d.ts +7 -0
- package/es/form/index.d.ts +125 -0
- package/es/form/locales/validate.d.ts +159 -0
- package/es/form/schemaNameMap.d.ts +5 -0
- package/es/form/typing.d.ts +192 -0
- package/es/form/utils.d.ts +55 -0
- package/es/form/utils.js +1 -8
- package/es/form/warning.d.ts +3 -0
- package/es/hooks/index.d.ts +2 -0
- package/es/index-without-icon.d.ts +32 -0
- package/es/index.d.ts +32 -0
- package/es/index.js +1 -1
- package/es/info/components/InfoGroup/index.d.ts +5 -0
- package/es/info/components/InfoGroup/index.js +6 -2
- package/es/info/components/InfoValueItem/index.d.ts +5 -0
- package/es/info/components/InfoValueItem/index.js +21 -23
- package/es/info/components/ProInfoItem/index.d.ts +5 -0
- package/es/info/components/baseInfo/index.d.ts +8 -0
- package/es/info/components/headerInfo/index.d.ts +8 -0
- package/es/info/components/tableInfo/index.d.ts +7 -0
- package/es/info/components/tableInfo/index.js +4 -5
- package/es/info/index.d.ts +10 -0
- package/es/info/index.js +5 -8
- package/es/info/typing.d.ts +218 -0
- package/es/info/utils/index.d.ts +20 -0
- package/es/info/utils/layout.d.ts +2 -0
- package/es/info/utils/utils.d.ts +1 -0
- package/es/layout/index.d.ts +2 -0
- package/es/nocode/configurators/Card.d.ts +3 -0
- package/es/nocode/configurators/PageHeader.d.ts +3 -0
- package/es/nocode/configurators/ProTable.d.ts +3 -0
- package/es/nocode/configurators/common.d.ts +280 -0
- package/es/nocode/configurators/index.d.ts +15 -0
- package/es/nocode/configurators/map.d.ts +2 -0
- package/es/nocode/index.d.ts +8 -0
- package/es/nocode/index.js +2 -2
- package/es/nocode/pages/editor.d.ts +12 -0
- package/es/nocode/pages/index.d.ts +14 -0
- package/es/nocode/pages/index.js +3 -4
- package/es/nocode/pages/playground.d.ts +11 -0
- package/es/nocode/pages/playground.js +7 -3
- package/es/nocode/pages/renderer.d.ts +10 -0
- package/es/nocode/pages/renderer.js +8 -4
- package/es/nocode/playground.d.ts +14 -0
- package/es/nocode/playground.js +6 -2
- package/es/page-container/index.d.ts +3 -0
- package/es/page-header/index.d.ts +74 -0
- package/es/page-header/index.js +7 -12
- package/es/sidebar/components/sidebar-container/index.d.ts +5 -0
- package/es/sidebar/components/sidebar-container/index.js +9 -5
- package/es/sidebar/components/tree/index.d.ts +6 -0
- package/es/sidebar/components/tree/index.js +6 -2
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +15 -0
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +6 -2
- package/es/sidebar/components/tree-node/components/IconAction/index.d.ts +12 -0
- package/es/sidebar/components/tree-node/components/IconAction/index.js +2 -4
- package/es/sidebar/components/tree-node/components/IconSwitch/index.d.ts +23 -0
- package/es/sidebar/components/tree-node/components/IconSwitch/index.scss +1 -1
- package/es/sidebar/components/tree-node/index.d.ts +7 -0
- package/es/sidebar/components/tree-node/index.js +18 -21
- package/es/sidebar/index.d.ts +9 -0
- package/es/sidebar/index.js +8 -4
- package/es/sidebar/typing.d.ts +141 -0
- package/es/sidebar/utils/action-ref.d.ts +3 -0
- package/es/sidebar/utils/index.d.ts +361 -0
- package/es/sidebar/utils/index.js +11 -11
- package/es/skeleton/index.d.ts +3 -0
- package/es/table/components/CardView/index.d.ts +5 -0
- package/es/table/components/CardView/index.js +446 -0
- package/es/table/components/CardView/index.scss +46 -0
- package/es/table/components/EmptyContent/index.d.ts +2 -0
- package/es/table/components/Filter/index.d.ts +10 -0
- package/es/table/components/Filter/index.js +21 -14
- package/es/table/components/Layout/index.d.ts +5 -0
- package/es/table/components/Layout/index.js +8 -10
- package/es/table/components/LoadMore/index.d.ts +20 -0
- package/es/table/components/LoadMore/index.js +107 -0
- package/es/table/components/LoadMore/index.scss +19 -0
- package/es/table/components/Pagination/index.d.ts +7 -0
- package/es/table/components/Pagination/index.js +14 -10
- package/es/table/components/QuickAction/index.d.ts +11 -0
- package/es/table/components/QuickAction/index.js +2 -4
- package/es/table/components/ToolBar/CardSwitch.d.ts +8 -0
- package/es/table/components/ToolBar/CardSwitch.js +63 -0
- package/es/table/components/ToolBar/DensityIcon.d.ts +4 -0
- package/es/table/components/ToolBar/DensityIcon.js +3 -2
- package/es/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
- package/es/table/components/ToolBar/FilterColumnIcon.js +13 -2
- package/es/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
- package/es/table/components/ToolBar/Fullscreen.d.ts +10 -0
- package/es/table/components/ToolBar/Fullscreen.js +15 -2
- package/es/table/components/ToolBar/RefreshIcon.d.ts +4 -0
- package/es/table/components/ToolBar/RefreshIcon.js +1 -2
- package/es/table/components/ToolBar/index.d.ts +5 -0
- package/es/table/components/ToolBar/index.js +69 -34
- package/es/table/components/ToolBar/index.scss +10 -1
- package/es/table/index.d.ts +5 -0
- package/es/table/index.js +150 -59
- package/es/table/typing.d.ts +371 -0
- package/es/table/utils/columnRender.d.ts +13 -0
- package/es/table/utils/columnRender.js +28 -28
- package/es/table/utils/genProColumnToColumn.d.ts +13 -0
- package/es/table/utils/genProColumnToColumn.js +4 -2
- package/es/table/utils/getTableProps.d.ts +2 -0
- package/es/table/utils/getTableSortIcons.d.ts +3 -0
- package/es/table/utils/index.d.ts +19 -0
- package/es/table/utils/index.js +2 -2
- package/es/table/utils/pureColumnRender.d.ts +9 -0
- package/es/table/utils/pureColumnRender.js +2 -4
- package/es/table/utils/pureGenProColumnToColumn.d.ts +7 -0
- package/es/table/utils/pureGenProColumnToColumn.js +1 -1
- package/es/table/utils/useTableSelection.d.ts +3 -0
- package/es/templates/Detail/index.d.ts +2 -0
- package/es/templates/Form/index.d.ts +2 -0
- package/es/templates/List/index.d.ts +9 -0
- package/es/templates/List/index.js +8 -4
- package/es/templates/index.d.ts +3 -0
- package/es/templates/index.js +1 -2
- package/es/timeline/ProTimeLineItem/index.d.ts +5 -0
- package/es/timeline/ProTimeLineItem/index.js +6 -2
- package/es/timeline/index.d.ts +10 -0
- package/es/timeline/index.js +7 -3
- package/es/timeline/typing.d.ts +106 -0
- package/es/utils/index.d.ts +3 -0
- package/es/utils/message.d.ts +3 -0
- package/es/utils/message.js +7 -3
- package/lib/actions/base.d.ts +24 -0
- package/lib/actions/confirm.d.ts +7 -0
- package/lib/actions/danger-confirm.d.ts +7 -0
- package/lib/actions/danger-pop-confirm.d.ts +5 -0
- package/lib/actions/dialog-component.d.ts +10 -0
- package/lib/actions/dialog-component.js +7 -1
- package/lib/actions/dialog-form.d.ts +29 -0
- package/lib/actions/dialog-form.js +3 -5
- package/lib/actions/dialog-info.d.ts +9 -0
- package/lib/actions/dialog-table.d.ts +9 -0
- package/lib/actions/dialog.d.ts +40 -0
- package/lib/actions/dialog.js +1 -1
- package/lib/actions/drawer-form.d.ts +6 -0
- package/lib/actions/drawer-info.d.ts +6 -0
- package/lib/actions/drawer-table.d.ts +6 -0
- package/lib/actions/drawer.d.ts +6 -0
- package/lib/actions/error.d.ts +7 -0
- package/lib/actions/index.d.ts +111 -0
- package/lib/actions/index.js +23 -32
- package/lib/actions/index.scss +5 -0
- package/lib/actions/link.d.ts +8 -0
- package/lib/actions/notice.d.ts +7 -0
- package/lib/actions/pop-confirm.d.ts +9 -0
- package/lib/actions/request.d.ts +9 -0
- package/lib/actions/utils.d.ts +1 -0
- package/lib/card/card-container.d.ts +18 -0
- package/lib/card/card-container.js +7 -5
- package/lib/card/divider.d.ts +6 -0
- package/lib/card/divider.js +6 -2
- package/lib/card/index.d.ts +109 -0
- package/lib/card/index.js +7 -14
- package/lib/card/index.scss +7 -0
- package/lib/card/selectable.d.ts +13 -0
- package/lib/card/selectable.js +6 -2
- package/lib/card/tab.d.ts +6 -0
- package/lib/card/tab.js +6 -2
- package/lib/card/utils.d.ts +9 -0
- package/lib/field/index.d.ts +3 -0
- package/lib/form/Components/Editable/index.d.ts +20 -0
- package/lib/form/Components/Editable/index.js +1 -1
- package/lib/form/Components/FormGroup/index.d.ts +13 -0
- package/lib/form/Components/FormGroup/index.js +3 -5
- package/lib/form/Components/LightFilter/componentMap.d.ts +3 -0
- package/lib/form/Components/LightFilter/index.d.ts +17 -0
- package/lib/form/Components/LightFilter/index.js +2 -8
- package/lib/form/Components/ProField/index.d.ts +2 -0
- package/lib/form/Components/ProField/index.js +6 -2
- package/lib/form/Components/ProField/mapDateFormat.d.ts +3 -0
- package/lib/form/Components/Text/index.d.ts +7 -0
- package/lib/form/Components/Text/index.js +6 -2
- package/lib/form/Filter/AdvancedFilter.d.ts +7 -0
- package/lib/form/Filter/AdvancedFilter.js +14 -17
- package/lib/form/Filter/Layout.d.ts +5 -0
- package/lib/form/Filter/LightFilter.d.ts +7 -0
- package/lib/form/Filter/LightFilter.js +9 -12
- package/lib/form/Filter/SimpleFilter.d.ts +7 -0
- package/lib/form/Filter/SimpleFilter.js +5 -8
- package/lib/form/Filter/index.d.ts +9 -0
- package/lib/form/Filter/index.js +9 -6
- package/lib/form/Filter/index2.d.ts +13 -0
- package/lib/form/Filter/index2.js +17 -21
- package/lib/form/Filter/useBindUrl.d.ts +2 -0
- package/lib/form/Filter/useSpecialProps.d.ts +6 -0
- package/lib/form/ProForm/addCascadeEffect.d.ts +2 -0
- package/lib/form/ProForm/customComponent.d.ts +3 -0
- package/lib/form/ProForm/index.d.ts +5 -0
- package/lib/form/ProForm/index.js +2 -4
- package/lib/form/ProForm/useAutoLayout.d.ts +9 -0
- package/lib/form/ProForm/useAutoSubmit.d.ts +6 -0
- package/lib/form/ProForm/useFieldRequest.d.ts +5 -0
- package/lib/form/ProForm/useFormDisplayValues.d.ts +4 -0
- package/lib/form/ProForm/useInitialRequest.d.ts +6 -0
- package/lib/form/SchemaForm/adapterComponent.d.ts +5 -0
- package/lib/form/SchemaForm/adapterDecorator.d.ts +6 -0
- package/lib/form/SchemaForm/adapterType.d.ts +5 -0
- package/lib/form/SchemaForm/index.d.ts +4 -0
- package/lib/form/SchemaForm/initializeArrayCards.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayItems.d.ts +3 -0
- package/lib/form/SchemaForm/initializeArrayTable.d.ts +3 -0
- package/lib/form/SchemaForm/initializeDataSource.d.ts +15 -0
- package/lib/form/SchemaForm/initializeFormButton.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormCollapse.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormGroup.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormStep.d.ts +5 -0
- package/lib/form/SchemaForm/initializeFormTab.d.ts +3 -0
- package/lib/form/SchemaForm/initializeReactions.d.ts +2 -0
- package/lib/form/SchemaForm/initializeRequest.d.ts +11 -0
- package/lib/form/SchemaForm/initializeRules.d.ts +11 -0
- package/lib/form/SchemaForm/initializeSelectTable.d.ts +3 -0
- package/lib/form/SchemaForm/reactions.d.ts +6 -0
- package/lib/form/docs/ActionResponse.d.ts +7 -0
- package/lib/form/fieldTypeMap.d.ts +7 -0
- package/lib/form/index.d.ts +125 -0
- package/lib/form/locales/validate.d.ts +159 -0
- package/lib/form/schemaNameMap.d.ts +5 -0
- package/lib/form/typing.d.ts +192 -0
- package/lib/form/typing.js +5 -1
- package/lib/form/utils.d.ts +55 -0
- package/lib/form/utils.js +0 -7
- package/lib/form/warning.d.ts +3 -0
- package/lib/hooks/index.d.ts +2 -0
- package/lib/index-without-icon.d.ts +32 -0
- package/lib/index.d.ts +32 -0
- package/lib/index.js +1 -1
- package/lib/info/components/InfoGroup/index.d.ts +5 -0
- package/lib/info/components/InfoGroup/index.js +6 -2
- package/lib/info/components/InfoValueItem/index.d.ts +5 -0
- package/lib/info/components/InfoValueItem/index.js +21 -23
- package/lib/info/components/ProInfoItem/index.d.ts +5 -0
- package/lib/info/components/baseInfo/index.d.ts +8 -0
- package/lib/info/components/headerInfo/index.d.ts +8 -0
- package/lib/info/components/tableInfo/index.d.ts +7 -0
- package/lib/info/components/tableInfo/index.js +4 -5
- package/lib/info/index.d.ts +10 -0
- package/lib/info/index.js +5 -8
- package/lib/info/typing.d.ts +218 -0
- package/lib/info/typing.js +5 -1
- package/lib/info/utils/index.d.ts +20 -0
- package/lib/info/utils/layout.d.ts +2 -0
- package/lib/info/utils/utils.d.ts +1 -0
- package/lib/layout/index.d.ts +2 -0
- package/lib/nocode/configurators/Card.d.ts +3 -0
- package/lib/nocode/configurators/PageHeader.d.ts +3 -0
- package/lib/nocode/configurators/ProTable.d.ts +3 -0
- package/lib/nocode/configurators/common.d.ts +280 -0
- package/lib/nocode/configurators/index.d.ts +15 -0
- package/lib/nocode/configurators/map.d.ts +2 -0
- package/lib/nocode/index.d.ts +8 -0
- package/lib/nocode/pages/editor.d.ts +12 -0
- package/lib/nocode/pages/index.d.ts +14 -0
- package/lib/nocode/pages/index.js +2 -2
- package/lib/nocode/pages/playground.d.ts +11 -0
- package/lib/nocode/pages/playground.js +7 -3
- package/lib/nocode/pages/renderer.d.ts +10 -0
- package/lib/nocode/pages/renderer.js +8 -4
- package/lib/nocode/playground.d.ts +14 -0
- package/lib/nocode/playground.js +6 -2
- package/lib/page-container/index.d.ts +3 -0
- package/lib/page-header/index.d.ts +74 -0
- package/lib/page-header/index.js +6 -12
- package/lib/sidebar/components/sidebar-container/index.d.ts +5 -0
- package/lib/sidebar/components/sidebar-container/index.js +9 -5
- package/lib/sidebar/components/tree/index.d.ts +6 -0
- package/lib/sidebar/components/tree/index.js +6 -2
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +15 -0
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.js +6 -2
- package/lib/sidebar/components/tree-node/components/IconAction/index.d.ts +12 -0
- package/lib/sidebar/components/tree-node/components/IconAction/index.js +2 -4
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.d.ts +23 -0
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.scss +1 -1
- package/lib/sidebar/components/tree-node/index.d.ts +7 -0
- package/lib/sidebar/components/tree-node/index.js +18 -21
- package/lib/sidebar/index.d.ts +9 -0
- package/lib/sidebar/index.js +17 -4
- package/lib/sidebar/typing.d.ts +141 -0
- package/lib/sidebar/typing.js +5 -1
- package/lib/sidebar/utils/action-ref.d.ts +3 -0
- package/lib/sidebar/utils/index.d.ts +361 -0
- package/lib/sidebar/utils/index.js +11 -11
- package/lib/skeleton/index.d.ts +3 -0
- package/lib/table/components/CardView/index.d.ts +5 -0
- package/lib/table/components/CardView/index.js +468 -0
- package/lib/table/components/CardView/index.scss +46 -0
- package/lib/table/components/EmptyContent/index.d.ts +2 -0
- package/lib/table/components/Filter/index.d.ts +10 -0
- package/lib/table/components/Filter/index.js +21 -14
- package/lib/table/components/Layout/index.d.ts +5 -0
- package/lib/table/components/Layout/index.js +9 -11
- package/lib/table/components/LoadMore/index.d.ts +20 -0
- package/lib/table/components/LoadMore/index.js +128 -0
- package/lib/table/components/LoadMore/index.scss +19 -0
- package/lib/table/components/Pagination/index.d.ts +7 -0
- package/lib/table/components/Pagination/index.js +14 -10
- package/lib/table/components/QuickAction/index.d.ts +11 -0
- package/lib/table/components/QuickAction/index.js +2 -4
- package/lib/table/components/ToolBar/CardSwitch.d.ts +8 -0
- package/lib/table/components/ToolBar/CardSwitch.js +82 -0
- package/lib/table/components/ToolBar/DensityIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/DensityIcon.js +3 -2
- package/lib/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/FilterColumnIcon.js +13 -2
- package/lib/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/Fullscreen.d.ts +10 -0
- package/lib/table/components/ToolBar/Fullscreen.js +15 -2
- package/lib/table/components/ToolBar/RefreshIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/RefreshIcon.js +1 -2
- package/lib/table/components/ToolBar/index.d.ts +5 -0
- package/lib/table/components/ToolBar/index.js +70 -33
- package/lib/table/components/ToolBar/index.scss +10 -1
- package/lib/table/index.d.ts +5 -0
- package/lib/table/index.js +153 -60
- package/lib/table/typing.d.ts +371 -0
- package/lib/table/typing.js +5 -1
- package/lib/table/utils/columnRender.d.ts +13 -0
- package/lib/table/utils/columnRender.js +28 -28
- package/lib/table/utils/genProColumnToColumn.d.ts +13 -0
- package/lib/table/utils/genProColumnToColumn.js +3 -1
- package/lib/table/utils/getTableProps.d.ts +2 -0
- package/lib/table/utils/getTableSortIcons.d.ts +3 -0
- package/lib/table/utils/index.d.ts +19 -0
- package/lib/table/utils/pureColumnRender.d.ts +9 -0
- package/lib/table/utils/pureColumnRender.js +1 -3
- package/lib/table/utils/pureGenProColumnToColumn.d.ts +7 -0
- package/lib/table/utils/useTableSelection.d.ts +3 -0
- package/lib/templates/Detail/index.d.ts +2 -0
- package/lib/templates/Form/index.d.ts +2 -0
- package/lib/templates/List/index.d.ts +9 -0
- package/lib/templates/List/index.js +8 -4
- package/lib/templates/index.d.ts +3 -0
- package/lib/timeline/ProTimeLineItem/index.d.ts +5 -0
- package/lib/timeline/ProTimeLineItem/index.js +6 -2
- package/lib/timeline/index.d.ts +10 -0
- package/lib/timeline/index.js +7 -3
- package/lib/timeline/typing.d.ts +106 -0
- package/lib/timeline/typing.js +5 -1
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/message.d.ts +3 -0
- package/lib/utils/message.js +7 -3
- package/package.json +1 -1
@@ -0,0 +1,280 @@
|
|
1
|
+
export declare function array(title: string, name: string, fields: any[], main?: string, arrayTitle?: string): {
|
2
|
+
title: string;
|
3
|
+
children: {
|
4
|
+
name: string;
|
5
|
+
title: string | undefined;
|
6
|
+
component: string;
|
7
|
+
items: {
|
8
|
+
type: string;
|
9
|
+
decorator: string;
|
10
|
+
children: ({
|
11
|
+
component: string;
|
12
|
+
children: {
|
13
|
+
component: string;
|
14
|
+
}[];
|
15
|
+
name?: undefined;
|
16
|
+
type?: undefined;
|
17
|
+
title?: undefined;
|
18
|
+
reactions?: undefined;
|
19
|
+
} | {
|
20
|
+
name: string;
|
21
|
+
component: string;
|
22
|
+
type: string;
|
23
|
+
title: string;
|
24
|
+
reactions: {
|
25
|
+
dependencies: string[];
|
26
|
+
fulfill: {
|
27
|
+
schema: {
|
28
|
+
title: string;
|
29
|
+
};
|
30
|
+
};
|
31
|
+
};
|
32
|
+
children: {
|
33
|
+
name: string;
|
34
|
+
component: string;
|
35
|
+
props: {
|
36
|
+
layout: string;
|
37
|
+
labelAlign: string;
|
38
|
+
colon: boolean;
|
39
|
+
labelCol: number;
|
40
|
+
wrapperCol: number;
|
41
|
+
};
|
42
|
+
children: any[];
|
43
|
+
}[];
|
44
|
+
} | {
|
45
|
+
component: string;
|
46
|
+
children?: undefined;
|
47
|
+
name?: undefined;
|
48
|
+
type?: undefined;
|
49
|
+
title?: undefined;
|
50
|
+
reactions?: undefined;
|
51
|
+
})[];
|
52
|
+
};
|
53
|
+
children: {
|
54
|
+
component: string;
|
55
|
+
props: {
|
56
|
+
title: string;
|
57
|
+
};
|
58
|
+
}[];
|
59
|
+
}[];
|
60
|
+
};
|
61
|
+
export declare function actions(props?: {
|
62
|
+
title?: string;
|
63
|
+
name?: string;
|
64
|
+
arrayTitle?: string;
|
65
|
+
}): {
|
66
|
+
title: string;
|
67
|
+
children: {
|
68
|
+
name: string;
|
69
|
+
title: string | undefined;
|
70
|
+
component: string;
|
71
|
+
items: {
|
72
|
+
type: string;
|
73
|
+
decorator: string;
|
74
|
+
children: ({
|
75
|
+
component: string;
|
76
|
+
children: {
|
77
|
+
component: string;
|
78
|
+
}[];
|
79
|
+
name?: undefined;
|
80
|
+
type?: undefined;
|
81
|
+
title?: undefined;
|
82
|
+
reactions?: undefined;
|
83
|
+
} | {
|
84
|
+
name: string;
|
85
|
+
component: string;
|
86
|
+
type: string;
|
87
|
+
title: string;
|
88
|
+
reactions: {
|
89
|
+
dependencies: string[];
|
90
|
+
fulfill: {
|
91
|
+
schema: {
|
92
|
+
title: string;
|
93
|
+
};
|
94
|
+
};
|
95
|
+
};
|
96
|
+
children: {
|
97
|
+
name: string;
|
98
|
+
component: string;
|
99
|
+
props: {
|
100
|
+
layout: string;
|
101
|
+
labelAlign: string;
|
102
|
+
colon: boolean;
|
103
|
+
labelCol: number;
|
104
|
+
wrapperCol: number;
|
105
|
+
};
|
106
|
+
children: any[];
|
107
|
+
}[];
|
108
|
+
} | {
|
109
|
+
component: string;
|
110
|
+
children?: undefined;
|
111
|
+
name?: undefined;
|
112
|
+
type?: undefined;
|
113
|
+
title?: undefined;
|
114
|
+
reactions?: undefined;
|
115
|
+
})[];
|
116
|
+
};
|
117
|
+
children: {
|
118
|
+
component: string;
|
119
|
+
props: {
|
120
|
+
title: string;
|
121
|
+
};
|
122
|
+
}[];
|
123
|
+
}[];
|
124
|
+
};
|
125
|
+
export declare function actionGroup(title: string, name: string): {
|
126
|
+
title: string;
|
127
|
+
name: string;
|
128
|
+
type: string;
|
129
|
+
children: {
|
130
|
+
component: string;
|
131
|
+
children: ({
|
132
|
+
title: string;
|
133
|
+
children: {
|
134
|
+
name: string;
|
135
|
+
title: string | undefined;
|
136
|
+
component: string;
|
137
|
+
items: {
|
138
|
+
type: string;
|
139
|
+
decorator: string;
|
140
|
+
children: ({
|
141
|
+
component: string;
|
142
|
+
children: {
|
143
|
+
component: string;
|
144
|
+
}[];
|
145
|
+
name?: undefined;
|
146
|
+
type?: undefined;
|
147
|
+
title?: undefined;
|
148
|
+
reactions?: undefined;
|
149
|
+
} | {
|
150
|
+
name: string;
|
151
|
+
component: string;
|
152
|
+
type: string;
|
153
|
+
title: string;
|
154
|
+
reactions: {
|
155
|
+
dependencies: string[];
|
156
|
+
fulfill: {
|
157
|
+
schema: {
|
158
|
+
title: string;
|
159
|
+
};
|
160
|
+
};
|
161
|
+
};
|
162
|
+
children: {
|
163
|
+
name: string;
|
164
|
+
component: string;
|
165
|
+
props: {
|
166
|
+
layout: string;
|
167
|
+
labelAlign: string;
|
168
|
+
colon: boolean;
|
169
|
+
labelCol: number;
|
170
|
+
wrapperCol: number;
|
171
|
+
};
|
172
|
+
children: any[];
|
173
|
+
}[];
|
174
|
+
} | {
|
175
|
+
component: string;
|
176
|
+
children?: undefined;
|
177
|
+
name?: undefined;
|
178
|
+
type?: undefined;
|
179
|
+
title?: undefined;
|
180
|
+
reactions?: undefined;
|
181
|
+
})[];
|
182
|
+
};
|
183
|
+
children: {
|
184
|
+
component: string;
|
185
|
+
props: {
|
186
|
+
title: string;
|
187
|
+
};
|
188
|
+
}[];
|
189
|
+
}[];
|
190
|
+
} | {
|
191
|
+
title: string;
|
192
|
+
children: ({
|
193
|
+
name: string;
|
194
|
+
title: string;
|
195
|
+
component: string;
|
196
|
+
dataSource: {
|
197
|
+
label: string;
|
198
|
+
value: string;
|
199
|
+
}[];
|
200
|
+
default: string;
|
201
|
+
} | {
|
202
|
+
name: string;
|
203
|
+
title: string;
|
204
|
+
component: string;
|
205
|
+
default: number;
|
206
|
+
dataSource?: undefined;
|
207
|
+
} | {
|
208
|
+
name: string;
|
209
|
+
title: string;
|
210
|
+
component: string;
|
211
|
+
default: string;
|
212
|
+
dataSource?: undefined;
|
213
|
+
})[];
|
214
|
+
})[];
|
215
|
+
}[];
|
216
|
+
};
|
217
|
+
export declare function filter(name: string): {
|
218
|
+
name: string;
|
219
|
+
type: string;
|
220
|
+
children: {
|
221
|
+
title: string;
|
222
|
+
children: {
|
223
|
+
name: string;
|
224
|
+
title: string | undefined;
|
225
|
+
component: string;
|
226
|
+
items: {
|
227
|
+
type: string;
|
228
|
+
decorator: string;
|
229
|
+
children: ({
|
230
|
+
component: string;
|
231
|
+
children: {
|
232
|
+
component: string;
|
233
|
+
}[];
|
234
|
+
name?: undefined;
|
235
|
+
type?: undefined;
|
236
|
+
title?: undefined;
|
237
|
+
reactions?: undefined;
|
238
|
+
} | {
|
239
|
+
name: string;
|
240
|
+
component: string;
|
241
|
+
type: string;
|
242
|
+
title: string;
|
243
|
+
reactions: {
|
244
|
+
dependencies: string[];
|
245
|
+
fulfill: {
|
246
|
+
schema: {
|
247
|
+
title: string;
|
248
|
+
};
|
249
|
+
};
|
250
|
+
};
|
251
|
+
children: {
|
252
|
+
name: string;
|
253
|
+
component: string;
|
254
|
+
props: {
|
255
|
+
layout: string;
|
256
|
+
labelAlign: string;
|
257
|
+
colon: boolean;
|
258
|
+
labelCol: number;
|
259
|
+
wrapperCol: number;
|
260
|
+
};
|
261
|
+
children: any[];
|
262
|
+
}[];
|
263
|
+
} | {
|
264
|
+
component: string;
|
265
|
+
children?: undefined;
|
266
|
+
name?: undefined;
|
267
|
+
type?: undefined;
|
268
|
+
title?: undefined;
|
269
|
+
reactions?: undefined;
|
270
|
+
})[];
|
271
|
+
};
|
272
|
+
children: {
|
273
|
+
component: string;
|
274
|
+
props: {
|
275
|
+
title: string;
|
276
|
+
};
|
277
|
+
}[];
|
278
|
+
}[];
|
279
|
+
}[];
|
280
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export declare type ConfiguratorSchema = any[];
|
3
|
+
export interface Configurator<T = any> {
|
4
|
+
schema: ConfiguratorSchema;
|
5
|
+
initialValues?: T;
|
6
|
+
defaultValues?: T;
|
7
|
+
}
|
8
|
+
export declare type ConfiguratorMap = {
|
9
|
+
[key: string]: Configurator;
|
10
|
+
};
|
11
|
+
export interface ConfiguratorProps<T = any> {
|
12
|
+
initialValues?: T;
|
13
|
+
onValuesChange?: (values: T) => void;
|
14
|
+
}
|
15
|
+
export declare const initConfigurator: <T>(schema: ConfiguratorSchema, defaultInitialValues?: T, defaultValues?: T) => React.FC<ConfiguratorProps<T>>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import './index.scss';
|
2
|
+
import PageContainer from '../page-container';
|
3
|
+
export { PageContainer };
|
4
|
+
export type { PageProps } from '../page-container';
|
5
|
+
export * from './configurators';
|
6
|
+
export * from './configurators/map';
|
7
|
+
export * from './pages';
|
8
|
+
export * from './playground';
|
package/es/nocode/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import './index.scss';
|
2
2
|
import PageContainer from '../page-container';
|
3
|
-
export { PageContainer };
|
4
|
-
|
3
|
+
export { PageContainer }; // 配置器,每个 pro 组件对应一个配置器
|
4
|
+
|
5
5
|
export * from './configurators';
|
6
6
|
export * from './configurators/map'; // 页面编辑器
|
7
7
|
// 页面渲染器
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Field } from '@alicloudfe/components';
|
2
|
+
import { ConfiguratorMap } from '../configurators';
|
3
|
+
import { PageMap, PageType, PageDefaultInitialValues } from '.';
|
4
|
+
export interface PageEditorProps {
|
5
|
+
type: PageType;
|
6
|
+
initialValues?: any;
|
7
|
+
field?: Field;
|
8
|
+
configuratorMap?: ConfiguratorMap;
|
9
|
+
pageMap?: PageMap;
|
10
|
+
pageDefaultInitialValues?: PageDefaultInitialValues;
|
11
|
+
}
|
12
|
+
export declare const PageEditor: (props: PageEditorProps) => JSX.Element;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { PageProps } from '../../page-container';
|
3
|
+
export * from './editor';
|
4
|
+
export * from './playground';
|
5
|
+
export * from './renderer';
|
6
|
+
export declare type PageType = 'LIST' | 'DETAIL' | 'FORM' | string;
|
7
|
+
export declare type PageMap = {
|
8
|
+
[key in PageType]: React.FC<PageProps>;
|
9
|
+
};
|
10
|
+
export declare const PageMap: PageMap;
|
11
|
+
export declare type PageDefaultInitialValues = {
|
12
|
+
[key in PageType]: any;
|
13
|
+
};
|
14
|
+
export declare const PageDefaultInitialValues: PageDefaultInitialValues;
|
package/es/nocode/pages/index.js
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
import { FormPage, DetailPage, ListPage } from '../../templates';
|
2
2
|
export * from './editor';
|
3
3
|
export * from './playground';
|
4
|
-
export * from './renderer'; //
|
4
|
+
export * from './renderer'; // 全部页面模板
|
5
5
|
|
6
|
-
// 全部页面模板
|
7
6
|
export var PageMap = {
|
8
7
|
LIST: ListPage,
|
9
8
|
DETAIL: DetailPage,
|
10
9
|
FORM: FormPage
|
11
|
-
};
|
12
|
-
|
10
|
+
}; // 全部页面模板默认初始值
|
11
|
+
|
13
12
|
export var PageDefaultInitialValues = {
|
14
13
|
LIST: {
|
15
14
|
header: {
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { PageProps } from '../../page-container';
|
3
|
+
import { ConfiguratorMap } from '../configurators';
|
4
|
+
interface PagePlayGroundProps<T = any> {
|
5
|
+
initialValues: T;
|
6
|
+
page: React.FC<PageProps<T>>;
|
7
|
+
onValuesChange?: (values: any) => void;
|
8
|
+
configuratorMap?: ConfiguratorMap;
|
9
|
+
}
|
10
|
+
export declare const PagePlayground: (props: PagePlayGroundProps) => JSX.Element;
|
11
|
+
export {};
|
@@ -1,4 +1,8 @@
|
|
1
|
-
function
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
2
|
+
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
4
|
+
|
5
|
+
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; }
|
2
6
|
|
3
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
8
|
|
@@ -101,7 +105,7 @@ export var PagePlayground = function PagePlayground(props) {
|
|
101
105
|
return "page-".concat(Math.random());
|
102
106
|
}, [pageProps]);
|
103
107
|
return /*#__PURE__*/React.createElement(PlayGroundLayout, {
|
104
|
-
component: /*#__PURE__*/React.createElement(PageContainer,
|
108
|
+
component: /*#__PURE__*/React.createElement(PageContainer, _objectSpread({
|
105
109
|
key: pageKey
|
106
110
|
}, pageContainerProps)),
|
107
111
|
configurator: Configurator ? /*#__PURE__*/React.createElement(Configurator, {
|
@@ -116,7 +120,7 @@ export var PagePlayground = function PagePlayground(props) {
|
|
116
120
|
}), /*#__PURE__*/React.createElement("p", null, "\u8BF7\u9009\u62E9\u4E00\u4E2A\u7EC4\u4EF6\u8FDB\u884C\u7F16\u8F91")),
|
117
121
|
tools: /*#__PURE__*/React.createElement(Balloon, {
|
118
122
|
align: "l",
|
119
|
-
trigger: /*#__PURE__*/React.createElement(Icon,
|
123
|
+
trigger: /*#__PURE__*/React.createElement(Icon, _objectSpread({
|
120
124
|
type: "set-line",
|
121
125
|
size: "large"
|
122
126
|
}, setterAction)),
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { PageProps } from '../../page-container';
|
2
|
+
import { PageMap } from '.';
|
3
|
+
export interface PageRendererProps<T = any> extends PageProps<T> {
|
4
|
+
type?: any;
|
5
|
+
error?: any;
|
6
|
+
title?: string;
|
7
|
+
pageMap?: PageMap;
|
8
|
+
}
|
9
|
+
export declare const PageRenderer: (props: PageRendererProps) => JSX.Element;
|
10
|
+
export default PageRenderer;
|
@@ -26,7 +26,11 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
26
26
|
|
27
27
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
28
28
|
|
29
|
-
function
|
29
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
30
|
+
|
31
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
32
|
+
|
33
|
+
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; }
|
30
34
|
|
31
35
|
import React from 'react';
|
32
36
|
import Helmet from 'react-helmet';
|
@@ -39,7 +43,7 @@ import { PageMap } from '.';
|
|
39
43
|
var cls = usePrefixCls('teamix-pro-nocode');
|
40
44
|
|
41
45
|
var Loading = function Loading(props) {
|
42
|
-
return /*#__PURE__*/React.createElement(PageContainer,
|
46
|
+
return /*#__PURE__*/React.createElement(PageContainer, _objectSpread({
|
43
47
|
header: /*#__PURE__*/React.createElement(PageHeader, {
|
44
48
|
loading: true,
|
45
49
|
title: "",
|
@@ -118,7 +122,7 @@ export var PageRenderer = function PageRenderer(props) {
|
|
118
122
|
}
|
119
123
|
|
120
124
|
if (!type) {
|
121
|
-
return /*#__PURE__*/React.createElement(Loading, others);
|
125
|
+
return /*#__PURE__*/React.createElement(Loading, _objectSpread({}, others));
|
122
126
|
}
|
123
127
|
|
124
128
|
var Page = PageMap[type] || (pageMap === null || pageMap === void 0 ? void 0 : pageMap[type]);
|
@@ -132,7 +136,7 @@ export var PageRenderer = function PageRenderer(props) {
|
|
132
136
|
|
133
137
|
return /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(Helmet, {
|
134
138
|
title: title
|
135
|
-
}), /*#__PURE__*/React.createElement(Page,
|
139
|
+
}), /*#__PURE__*/React.createElement(Page, _objectSpread({
|
136
140
|
loading: loading,
|
137
141
|
pageProps: pageProps || {}
|
138
142
|
}, others)));
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Configurator } from './configurators';
|
3
|
+
export interface PlayGroundLayoutProps {
|
4
|
+
component: React.ReactNode;
|
5
|
+
configurator: React.ReactNode;
|
6
|
+
tools?: React.ReactNode;
|
7
|
+
}
|
8
|
+
export declare const PlayGroundLayout: (props: PlayGroundLayoutProps) => JSX.Element;
|
9
|
+
export interface PlayGround<T = any> {
|
10
|
+
component: React.FC<T>;
|
11
|
+
configurator: Configurator;
|
12
|
+
initialValues: T;
|
13
|
+
}
|
14
|
+
export declare const PlayGround: <T extends {}>(props: PlayGround<T>) => JSX.Element;
|
package/es/nocode/playground.js
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
function
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
2
|
+
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
4
|
+
|
5
|
+
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; }
|
2
6
|
|
3
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
8
|
|
@@ -53,7 +57,7 @@ export var PlayGround = function PlayGround(props) {
|
|
53
57
|
onValuesChange = _useDebounceFn.run;
|
54
58
|
|
55
59
|
return /*#__PURE__*/React.createElement(PlayGroundLayout, {
|
56
|
-
component: /*#__PURE__*/React.createElement(Component,
|
60
|
+
component: /*#__PURE__*/React.createElement(Component, _objectSpread({
|
57
61
|
key: componentKey
|
58
62
|
}, componentState)),
|
59
63
|
configurator: /*#__PURE__*/React.createElement(Configurator, {
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { ItemProps } from '@alicloudfe/components/types/breadcrumb';
|
3
|
+
import { LinkPath } from '@teamix/utils';
|
4
|
+
import { CapsuleTabType, ProTagItem } from '../field';
|
5
|
+
import { ProActionGroupProps } from '../actions';
|
6
|
+
import { ProInfoProps } from '../info';
|
7
|
+
import './index.scss';
|
8
|
+
export interface ProPageHeaderBreadcrumbItem extends ItemProps {
|
9
|
+
/**
|
10
|
+
* @deprecated 建议使用 children 代替
|
11
|
+
*/
|
12
|
+
text?: string;
|
13
|
+
}
|
14
|
+
export declare type ProPageHeaderTagItem = ProTagItem;
|
15
|
+
declare type Color = 'blue' | 'green' | 'orange' | 'red' | 'yellow' | string;
|
16
|
+
export declare type ProPageHeaderDataItem = {
|
17
|
+
title: string;
|
18
|
+
num: number;
|
19
|
+
color?: Color;
|
20
|
+
} & React.HTMLAttributes<HTMLElement>;
|
21
|
+
export declare type ProPageHeaderProps = {
|
22
|
+
/** 标题 */
|
23
|
+
title?: React.ReactNode;
|
24
|
+
/** 标题说明 */
|
25
|
+
titleTooltip?: React.ReactNode;
|
26
|
+
/** 描述 */
|
27
|
+
description?: React.ReactNode;
|
28
|
+
/** 图标 */
|
29
|
+
icon?: React.ReactNode;
|
30
|
+
/** 图标颜色 */
|
31
|
+
iconColor?: Color;
|
32
|
+
/** 图标背景类型 */
|
33
|
+
iconBackgroundType?: 'circle' | 'square';
|
34
|
+
/** 图标背景色 */
|
35
|
+
iconBackgroundColor?: Color;
|
36
|
+
/** 返回按钮配置 */
|
37
|
+
goback?: boolean | LinkPath | ((e: React.MouseEvent) => void);
|
38
|
+
/** 背景图 */
|
39
|
+
image?: string;
|
40
|
+
/** 加载中 */
|
41
|
+
loading?: boolean;
|
42
|
+
/** 面包屑配置 */
|
43
|
+
breadcrumb?: ProPageHeaderBreadcrumbItem[];
|
44
|
+
/** 额外信息区配置 */
|
45
|
+
extra?: ProActionGroupProps | React.ReactNode;
|
46
|
+
/** 操作区配置 */
|
47
|
+
operation?: ProActionGroupProps | React.ReactNode;
|
48
|
+
/** 标签组 */
|
49
|
+
tags?: ProPageHeaderTagItem[];
|
50
|
+
/** 数据概览项 */
|
51
|
+
data?: ProPageHeaderDataItem[];
|
52
|
+
/** 底部详情 */
|
53
|
+
info?: ProInfoProps | React.ReactNode;
|
54
|
+
/** 切换 tabs */
|
55
|
+
tabs?: CapsuleTabType;
|
56
|
+
} & Omit<React.HTMLAttributes<HTMLElement>, 'title'>;
|
57
|
+
declare const ProPageHeader: React.FC<ProPageHeaderProps>;
|
58
|
+
export default ProPageHeader;
|
59
|
+
/**
|
60
|
+
* @deprecated 建议使用 ProPageHeaderBreadcrumbItem 代替
|
61
|
+
*/
|
62
|
+
export declare type BreadcrumbItem = ProPageHeaderBreadcrumbItem;
|
63
|
+
/**
|
64
|
+
* @deprecated 建议使用 ProPageHeaderTagItem 代替
|
65
|
+
*/
|
66
|
+
export declare type TagItem = ProPageHeaderTagItem;
|
67
|
+
/**
|
68
|
+
* @deprecated 建议使用 ProPageHeaderDataItem 代替
|
69
|
+
*/
|
70
|
+
export declare type DataItem = ProPageHeaderDataItem;
|
71
|
+
/**
|
72
|
+
* @deprecated 建议使用 ProPageHeaderProps 代替
|
73
|
+
*/
|
74
|
+
export declare type PageHeaderProps = ProPageHeaderProps;
|
package/es/page-header/index.js
CHANGED
@@ -8,8 +8,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
8
8
|
|
9
9
|
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; }
|
10
10
|
|
11
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
12
|
-
|
13
11
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
14
12
|
|
15
13
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
@@ -35,7 +33,7 @@ var renderNav = function renderNav(breadcrumbs) {
|
|
35
33
|
children = b.children,
|
36
34
|
others = _objectWithoutProperties(b, _excluded);
|
37
35
|
|
38
|
-
return /*#__PURE__*/React.createElement(Breadcrumb.Item,
|
36
|
+
return /*#__PURE__*/React.createElement(Breadcrumb.Item, _objectSpread({
|
39
37
|
key: i
|
40
38
|
}, others), text || children);
|
41
39
|
}));
|
@@ -59,7 +57,7 @@ var renderActionGroup = function renderActionGroup(group, defaultProps) {
|
|
59
57
|
type: buttonType
|
60
58
|
}, item);
|
61
59
|
});
|
62
|
-
return /*#__PURE__*/React.createElement(ProActionGroup,
|
60
|
+
return /*#__PURE__*/React.createElement(ProActionGroup, _objectSpread(_objectSpread(_objectSpread({}, defaultProps), actionGroup), {}, {
|
63
61
|
actions: actions
|
64
62
|
}));
|
65
63
|
}
|
@@ -105,7 +103,7 @@ var renderData = function renderData(data) {
|
|
105
103
|
className = _getColorAndStyle.className,
|
106
104
|
style = _getColorAndStyle.style;
|
107
105
|
|
108
|
-
return /*#__PURE__*/React.createElement("div",
|
106
|
+
return /*#__PURE__*/React.createElement("div", _objectSpread({
|
109
107
|
key: i,
|
110
108
|
className: classnames(cls('data-item'), customClassName)
|
111
109
|
}, others), /*#__PURE__*/React.createElement("div", {
|
@@ -119,7 +117,7 @@ var renderData = function renderData(data) {
|
|
119
117
|
|
120
118
|
var renderInfo = function renderInfo(info) {
|
121
119
|
if (info === null || info === void 0 ? void 0 : info.columns) {
|
122
|
-
return /*#__PURE__*/React.createElement(ProInfo,
|
120
|
+
return /*#__PURE__*/React.createElement(ProInfo, _objectSpread({
|
123
121
|
type: "header"
|
124
122
|
}, info));
|
125
123
|
}
|
@@ -129,7 +127,7 @@ var renderInfo = function renderInfo(info) {
|
|
129
127
|
|
130
128
|
var renderTabs = function renderTabs(tabs) {
|
131
129
|
if (tabs) {
|
132
|
-
return /*#__PURE__*/React.createElement(CapsuleTab, tabs);
|
130
|
+
return /*#__PURE__*/React.createElement(CapsuleTab, _objectSpread({}, tabs));
|
133
131
|
}
|
134
132
|
|
135
133
|
return null;
|
@@ -218,7 +216,7 @@ var ProPageHeader = function ProPageHeader(props) {
|
|
218
216
|
}, titleTooltip)), renderTags(tags, 'large'), renderTabs(tabs !== null && tabs !== void 0 ? tabs : {}));
|
219
217
|
};
|
220
218
|
|
221
|
-
return /*#__PURE__*/React.createElement("header",
|
219
|
+
return /*#__PURE__*/React.createElement("header", _objectSpread({
|
222
220
|
className: classnames(cls(), className),
|
223
221
|
style: _objectSpread({
|
224
222
|
backgroundImage: loading ? undefined : backgroundImage
|
@@ -253,7 +251,4 @@ var ProPageHeader = function ProPageHeader(props) {
|
|
253
251
|
}, !loading && renderInfo(info), loading && /*#__PURE__*/React.createElement(ProSkeletonRaw.Info.Header, null)), children);
|
254
252
|
};
|
255
253
|
|
256
|
-
export default ProPageHeader;
|
257
|
-
/**
|
258
|
-
* @deprecated 建议使用 ProPageHeaderBreadcrumbItem 代替
|
259
|
-
*/
|
254
|
+
export default ProPageHeader;
|