@teamix/pro 1.5.0-beta.1 → 1.5.1-aplha.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/pro.css +1 -1
- package/dist/pro.js +84670 -60159
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/dist/pro.min.js.LICENSE.txt +11 -0
- package/es/actions/dialog-component.js +1 -7
- package/es/actions/dialog-form.js +5 -3
- package/es/actions/dialog.js +1 -1
- package/es/actions/index.js +66 -32
- package/es/actions/request.js +2 -2
- package/es/card/card-container.js +9 -9
- package/es/card/divider.js +2 -6
- package/es/card/index.js +16 -10
- package/es/card/selectable.js +2 -6
- package/es/card/tab.js +2 -6
- package/es/form/Components/Editable/index.js +1 -1
- package/es/form/Components/FormGroup/index.js +5 -3
- package/es/form/Components/LightFilter/index.js +8 -2
- package/es/form/Components/ProField/index.js +2 -6
- package/es/form/Components/Text/index.js +2 -6
- package/es/form/Filter/AdvancedFilter.js +18 -15
- package/es/form/Filter/LightFilter.js +13 -10
- package/es/form/Filter/SimpleFilter.js +10 -6
- package/es/form/Filter/index.js +7 -10
- package/es/form/Filter/index2.js +21 -17
- package/es/form/Filter/layout.scss +1 -1
- package/es/form/ProForm/addCascadeEffect.js +225 -0
- package/es/form/ProForm/index.js +12 -7
- package/es/form/ProForm/useFormDisplayValues.js +1 -1
- package/es/form/SchemaForm/reactions.js +2 -1
- package/es/form/utils.js +8 -1
- package/es/index.js +2 -1
- package/es/info/components/InfoGroup/index.js +2 -6
- package/es/info/components/InfoValueItem/index.js +23 -21
- package/es/info/components/tableInfo/index.js +5 -4
- package/es/info/index.js +8 -5
- package/es/nocode/index.js +2 -2
- package/es/nocode/pages/index.js +4 -3
- package/es/nocode/pages/playground.js +3 -7
- package/es/nocode/pages/renderer.js +4 -8
- package/es/nocode/playground.js +2 -6
- package/es/page-header/index.js +12 -7
- package/es/sidebar/components/sidebar-container/index.js +23 -11
- package/es/sidebar/components/sidebar-container/index.scss +21 -14
- package/es/sidebar/components/tree/index.js +26 -12
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +2 -6
- package/es/sidebar/components/tree-node/components/IconAction/index.js +4 -2
- package/es/sidebar/components/tree-node/index.js +22 -19
- package/es/sidebar/index.js +3 -5
- package/es/sidebar/utils/index.js +11 -11
- package/es/table/components/Layout/index.js +14 -10
- package/es/table/components/Pagination/index.js +10 -14
- package/es/table/components/QuickAction/index.js +4 -2
- package/es/table/components/ToolBar/DensityIcon.js +3 -3
- package/es/table/components/ToolBar/FilterColumnIcon.js +2 -0
- package/es/table/components/ToolBar/FullScreenIcon.js +6 -57
- package/es/table/components/ToolBar/RefreshIcon.js +2 -1
- package/es/table/components/ToolBar/index.js +98 -19
- package/es/table/components/ToolBar/index.scss +22 -2
- package/es/table/index.js +38 -28
- package/es/table/utils/columnRender.js +27 -25
- package/es/table/utils/genProColumnToColumn.js +1 -1
- package/es/table/utils/index.js +2 -2
- package/es/table/utils/pureColumnRender.js +4 -2
- package/es/table/utils/pureGenProColumnToColumn.js +1 -1
- package/es/templates/List/index.js +4 -8
- package/es/templates/index.js +2 -1
- package/es/timeline/ProTimeLineItem/index.js +2 -6
- package/es/timeline/index.js +3 -7
- package/es/utils/message.js +3 -7
- package/lib/actions/dialog-component.js +1 -7
- package/lib/actions/dialog-form.js +5 -3
- package/lib/actions/dialog.js +1 -1
- package/lib/actions/index.js +65 -32
- package/lib/card/card-container.js +5 -7
- package/lib/card/divider.js +2 -6
- package/lib/card/index.js +16 -9
- package/lib/card/selectable.js +2 -6
- package/lib/card/tab.js +2 -6
- package/lib/form/Components/Editable/index.js +1 -1
- package/lib/form/Components/FormGroup/index.js +5 -3
- package/lib/form/Components/LightFilter/index.js +8 -2
- package/lib/form/Components/ProField/index.js +2 -6
- package/lib/form/Components/Text/index.js +2 -6
- package/lib/form/Filter/AdvancedFilter.js +17 -14
- package/lib/form/Filter/LightFilter.js +12 -9
- package/lib/form/Filter/SimpleFilter.js +8 -5
- package/lib/form/Filter/index.js +6 -9
- package/lib/form/Filter/index2.js +21 -17
- package/lib/form/Filter/layout.scss +1 -1
- package/lib/form/ProForm/addCascadeEffect.js +235 -0
- package/lib/form/ProForm/index.js +13 -7
- package/lib/form/typing.js +1 -5
- package/lib/form/utils.js +7 -0
- package/lib/index.js +2 -1
- package/lib/info/components/InfoGroup/index.js +2 -6
- package/lib/info/components/InfoValueItem/index.js +23 -21
- package/lib/info/components/tableInfo/index.js +5 -4
- package/lib/info/index.js +8 -5
- package/lib/info/typing.js +1 -5
- package/lib/nocode/pages/index.js +2 -2
- package/lib/nocode/pages/playground.js +3 -7
- package/lib/nocode/pages/renderer.js +4 -8
- package/lib/nocode/playground.js +2 -6
- package/lib/page-header/index.js +12 -6
- package/lib/sidebar/components/sidebar-container/index.js +23 -11
- package/lib/sidebar/components/sidebar-container/index.scss +21 -14
- package/lib/sidebar/components/tree/index.js +26 -12
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.js +2 -6
- package/lib/sidebar/components/tree-node/components/IconAction/index.js +4 -2
- package/lib/sidebar/components/tree-node/index.js +22 -19
- package/lib/sidebar/index.js +3 -5
- package/lib/sidebar/typing.js +1 -5
- package/lib/sidebar/utils/index.js +11 -11
- package/lib/table/components/Layout/index.js +15 -11
- package/lib/table/components/Pagination/index.js +10 -14
- package/lib/table/components/QuickAction/index.js +4 -2
- package/lib/table/components/ToolBar/DensityIcon.js +3 -3
- package/lib/table/components/ToolBar/FilterColumnIcon.js +2 -0
- package/lib/table/components/ToolBar/FullScreenIcon.js +9 -63
- package/lib/table/components/ToolBar/RefreshIcon.js +2 -1
- package/lib/table/components/ToolBar/index.js +107 -18
- package/lib/table/components/ToolBar/index.scss +22 -2
- package/lib/table/index.js +39 -29
- package/lib/table/typing.js +1 -5
- package/lib/table/utils/columnRender.js +27 -25
- package/lib/table/utils/pureColumnRender.js +3 -1
- package/lib/templates/List/index.js +4 -8
- package/lib/timeline/ProTimeLineItem/index.js +2 -6
- package/lib/timeline/index.js +3 -7
- package/lib/timeline/typing.js +1 -5
- package/lib/utils/message.js +3 -7
- package/package.json +1 -1
- package/es/actions/base.d.ts +0 -24
- package/es/actions/confirm.d.ts +0 -7
- package/es/actions/danger-confirm.d.ts +0 -7
- package/es/actions/danger-pop-confirm.d.ts +0 -5
- package/es/actions/dialog-component.d.ts +0 -10
- package/es/actions/dialog-form.d.ts +0 -29
- package/es/actions/dialog-info.d.ts +0 -9
- package/es/actions/dialog-table.d.ts +0 -9
- package/es/actions/dialog.d.ts +0 -40
- package/es/actions/drawer-form.d.ts +0 -6
- package/es/actions/drawer-info.d.ts +0 -6
- package/es/actions/drawer-table.d.ts +0 -6
- package/es/actions/drawer.d.ts +0 -6
- package/es/actions/error.d.ts +0 -7
- package/es/actions/index.d.ts +0 -107
- package/es/actions/link.d.ts +0 -8
- package/es/actions/notice.d.ts +0 -7
- package/es/actions/pop-confirm.d.ts +0 -9
- package/es/actions/request.d.ts +0 -9
- package/es/actions/utils.d.ts +0 -1
- package/es/card/card-container.d.ts +0 -18
- package/es/card/divider.d.ts +0 -6
- package/es/card/index.d.ts +0 -109
- package/es/card/selectable.d.ts +0 -13
- package/es/card/tab.d.ts +0 -6
- package/es/card/utils.d.ts +0 -9
- package/es/field/index.d.ts +0 -3
- package/es/form/Components/Editable/index.d.ts +0 -20
- package/es/form/Components/FormGroup/index.d.ts +0 -13
- package/es/form/Components/LightFilter/componentMap.d.ts +0 -3
- package/es/form/Components/LightFilter/index.d.ts +0 -17
- package/es/form/Components/ProField/index.d.ts +0 -2
- package/es/form/Components/ProField/mapDateFormat.d.ts +0 -3
- package/es/form/Components/Text/index.d.ts +0 -7
- package/es/form/Filter/AdvancedFilter.d.ts +0 -7
- package/es/form/Filter/Layout.d.ts +0 -5
- package/es/form/Filter/LightFilter.d.ts +0 -7
- package/es/form/Filter/SimpleFilter.d.ts +0 -7
- package/es/form/Filter/index.d.ts +0 -9
- package/es/form/Filter/index2.d.ts +0 -13
- package/es/form/Filter/useBindUrl.d.ts +0 -2
- package/es/form/Filter/useSpecialProps.d.ts +0 -6
- package/es/form/ProForm/customComponent.d.ts +0 -3
- package/es/form/ProForm/index.d.ts +0 -5
- package/es/form/ProForm/useAutoLayout.d.ts +0 -9
- package/es/form/ProForm/useAutoSubmit.d.ts +0 -6
- package/es/form/ProForm/useFieldRequest.d.ts +0 -5
- package/es/form/ProForm/useFormDisplayValues.d.ts +0 -4
- package/es/form/ProForm/useInitialRequest.d.ts +0 -6
- package/es/form/SchemaForm/adapterComponent.d.ts +0 -5
- package/es/form/SchemaForm/adapterDecorator.d.ts +0 -6
- package/es/form/SchemaForm/adapterType.d.ts +0 -5
- package/es/form/SchemaForm/index.d.ts +0 -4
- package/es/form/SchemaForm/initializeArrayCards.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayCollapse.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayItems.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayTable.d.ts +0 -3
- package/es/form/SchemaForm/initializeDataSource.d.ts +0 -15
- package/es/form/SchemaForm/initializeFormButton.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormCollapse.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormGroup.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormStep.d.ts +0 -5
- package/es/form/SchemaForm/initializeFormTab.d.ts +0 -3
- package/es/form/SchemaForm/initializeReactions.d.ts +0 -2
- package/es/form/SchemaForm/initializeRequest.d.ts +0 -11
- package/es/form/SchemaForm/initializeRules.d.ts +0 -11
- package/es/form/SchemaForm/initializeSelectTable.d.ts +0 -3
- package/es/form/SchemaForm/reactions.d.ts +0 -6
- package/es/form/docs/ActionResponse.d.ts +0 -7
- package/es/form/fieldTypeMap.d.ts +0 -7
- package/es/form/index.d.ts +0 -125
- package/es/form/locales/validate.d.ts +0 -159
- package/es/form/schemaNameMap.d.ts +0 -5
- package/es/form/typing.d.ts +0 -172
- package/es/form/utils.d.ts +0 -55
- package/es/form/warning.d.ts +0 -3
- package/es/hooks/index.d.ts +0 -2
- package/es/index-without-icon.d.ts +0 -32
- package/es/index.d.ts +0 -32
- package/es/info/components/InfoGroup/index.d.ts +0 -5
- package/es/info/components/InfoValueItem/index.d.ts +0 -5
- package/es/info/components/ProInfoItem/index.d.ts +0 -5
- package/es/info/components/baseInfo/index.d.ts +0 -8
- package/es/info/components/headerInfo/index.d.ts +0 -8
- package/es/info/components/tableInfo/index.d.ts +0 -7
- package/es/info/index.d.ts +0 -10
- package/es/info/typing.d.ts +0 -218
- package/es/info/utils/index.d.ts +0 -20
- package/es/info/utils/layout.d.ts +0 -2
- package/es/info/utils/utils.d.ts +0 -1
- package/es/layout/index.d.ts +0 -2
- package/es/nocode/configurators/Card.d.ts +0 -3
- package/es/nocode/configurators/PageHeader.d.ts +0 -3
- package/es/nocode/configurators/ProTable.d.ts +0 -3
- package/es/nocode/configurators/common.d.ts +0 -280
- package/es/nocode/configurators/index.d.ts +0 -15
- package/es/nocode/configurators/map.d.ts +0 -2
- package/es/nocode/index.d.ts +0 -8
- package/es/nocode/pages/editor.d.ts +0 -12
- package/es/nocode/pages/index.d.ts +0 -14
- package/es/nocode/pages/playground.d.ts +0 -11
- package/es/nocode/pages/renderer.d.ts +0 -10
- package/es/nocode/playground.d.ts +0 -14
- package/es/page-container/index.d.ts +0 -3
- package/es/page-header/index.d.ts +0 -74
- package/es/sidebar/components/sidebar-container/index.d.ts +0 -5
- package/es/sidebar/components/tree/index.d.ts +0 -6
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +0 -15
- package/es/sidebar/components/tree-node/components/IconAction/index.d.ts +0 -12
- package/es/sidebar/components/tree-node/components/IconSwitch/index.d.ts +0 -23
- package/es/sidebar/components/tree-node/index.d.ts +0 -7
- package/es/sidebar/index.d.ts +0 -7
- package/es/sidebar/typing.d.ts +0 -137
- package/es/sidebar/utils/action-ref.d.ts +0 -3
- package/es/sidebar/utils/index.d.ts +0 -361
- package/es/skeleton/index.d.ts +0 -3
- package/es/table/components/EmptyContent/index.d.ts +0 -2
- package/es/table/components/Filter/index.d.ts +0 -9
- package/es/table/components/Layout/index.d.ts +0 -5
- package/es/table/components/Pagination/index.d.ts +0 -7
- package/es/table/components/QuickAction/index.d.ts +0 -10
- package/es/table/components/ToolBar/DensityIcon.d.ts +0 -4
- package/es/table/components/ToolBar/FilterColumnIcon.d.ts +0 -4
- package/es/table/components/ToolBar/FullScreenIcon.d.ts +0 -4
- package/es/table/components/ToolBar/Fullscreen.d.ts +0 -10
- package/es/table/components/ToolBar/RefreshIcon.d.ts +0 -4
- package/es/table/components/ToolBar/index.d.ts +0 -5
- package/es/table/index.d.ts +0 -5
- package/es/table/typing.d.ts +0 -299
- package/es/table/utils/columnRender.d.ts +0 -13
- package/es/table/utils/genProColumnToColumn.d.ts +0 -13
- package/es/table/utils/getTableProps.d.ts +0 -2
- package/es/table/utils/getTableSortIcons.d.ts +0 -3
- package/es/table/utils/index.d.ts +0 -19
- package/es/table/utils/pureColumnRender.d.ts +0 -9
- package/es/table/utils/pureGenProColumnToColumn.d.ts +0 -7
- package/es/table/utils/useTableSelection.d.ts +0 -3
- package/es/templates/Detail/index.d.ts +0 -2
- package/es/templates/Form/index.d.ts +0 -2
- package/es/templates/List/index.d.ts +0 -9
- package/es/templates/index.d.ts +0 -3
- package/es/timeline/ProTimeLineItem/index.d.ts +0 -5
- package/es/timeline/index.d.ts +0 -10
- package/es/timeline/typing.d.ts +0 -106
- package/es/utils/index.d.ts +0 -3
- package/es/utils/message.d.ts +0 -3
- package/lib/actions/base.d.ts +0 -24
- package/lib/actions/confirm.d.ts +0 -7
- package/lib/actions/danger-confirm.d.ts +0 -7
- package/lib/actions/danger-pop-confirm.d.ts +0 -5
- package/lib/actions/dialog-component.d.ts +0 -10
- package/lib/actions/dialog-form.d.ts +0 -29
- package/lib/actions/dialog-info.d.ts +0 -9
- package/lib/actions/dialog-table.d.ts +0 -9
- package/lib/actions/dialog.d.ts +0 -40
- package/lib/actions/drawer-form.d.ts +0 -6
- package/lib/actions/drawer-info.d.ts +0 -6
- package/lib/actions/drawer-table.d.ts +0 -6
- package/lib/actions/drawer.d.ts +0 -6
- package/lib/actions/error.d.ts +0 -7
- package/lib/actions/index.d.ts +0 -107
- package/lib/actions/link.d.ts +0 -8
- package/lib/actions/notice.d.ts +0 -7
- package/lib/actions/pop-confirm.d.ts +0 -9
- package/lib/actions/request.d.ts +0 -9
- package/lib/actions/utils.d.ts +0 -1
- package/lib/card/card-container.d.ts +0 -18
- package/lib/card/divider.d.ts +0 -6
- package/lib/card/index.d.ts +0 -109
- package/lib/card/selectable.d.ts +0 -13
- package/lib/card/tab.d.ts +0 -6
- package/lib/card/utils.d.ts +0 -9
- package/lib/field/index.d.ts +0 -3
- package/lib/form/Components/Editable/index.d.ts +0 -20
- package/lib/form/Components/FormGroup/index.d.ts +0 -13
- package/lib/form/Components/LightFilter/componentMap.d.ts +0 -3
- package/lib/form/Components/LightFilter/index.d.ts +0 -17
- package/lib/form/Components/ProField/index.d.ts +0 -2
- package/lib/form/Components/ProField/mapDateFormat.d.ts +0 -3
- package/lib/form/Components/Text/index.d.ts +0 -7
- package/lib/form/Filter/AdvancedFilter.d.ts +0 -7
- package/lib/form/Filter/Layout.d.ts +0 -5
- package/lib/form/Filter/LightFilter.d.ts +0 -7
- package/lib/form/Filter/SimpleFilter.d.ts +0 -7
- package/lib/form/Filter/index.d.ts +0 -9
- package/lib/form/Filter/index2.d.ts +0 -13
- package/lib/form/Filter/useBindUrl.d.ts +0 -2
- package/lib/form/Filter/useSpecialProps.d.ts +0 -6
- package/lib/form/ProForm/customComponent.d.ts +0 -3
- package/lib/form/ProForm/index.d.ts +0 -5
- package/lib/form/ProForm/useAutoLayout.d.ts +0 -9
- package/lib/form/ProForm/useAutoSubmit.d.ts +0 -6
- package/lib/form/ProForm/useFieldRequest.d.ts +0 -5
- package/lib/form/ProForm/useFormDisplayValues.d.ts +0 -4
- package/lib/form/ProForm/useInitialRequest.d.ts +0 -6
- package/lib/form/SchemaForm/adapterComponent.d.ts +0 -5
- package/lib/form/SchemaForm/adapterDecorator.d.ts +0 -6
- package/lib/form/SchemaForm/adapterType.d.ts +0 -5
- package/lib/form/SchemaForm/index.d.ts +0 -4
- package/lib/form/SchemaForm/initializeArrayCards.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayItems.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayTable.d.ts +0 -3
- package/lib/form/SchemaForm/initializeDataSource.d.ts +0 -15
- package/lib/form/SchemaForm/initializeFormButton.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormCollapse.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormGroup.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormStep.d.ts +0 -5
- package/lib/form/SchemaForm/initializeFormTab.d.ts +0 -3
- package/lib/form/SchemaForm/initializeReactions.d.ts +0 -2
- package/lib/form/SchemaForm/initializeRequest.d.ts +0 -11
- package/lib/form/SchemaForm/initializeRules.d.ts +0 -11
- package/lib/form/SchemaForm/initializeSelectTable.d.ts +0 -3
- package/lib/form/SchemaForm/reactions.d.ts +0 -6
- package/lib/form/docs/ActionResponse.d.ts +0 -7
- package/lib/form/fieldTypeMap.d.ts +0 -7
- package/lib/form/index.d.ts +0 -125
- package/lib/form/locales/validate.d.ts +0 -159
- package/lib/form/schemaNameMap.d.ts +0 -5
- package/lib/form/typing.d.ts +0 -172
- package/lib/form/utils.d.ts +0 -55
- package/lib/form/warning.d.ts +0 -3
- package/lib/hooks/index.d.ts +0 -2
- package/lib/index-without-icon.d.ts +0 -32
- package/lib/index.d.ts +0 -32
- package/lib/info/components/InfoGroup/index.d.ts +0 -5
- package/lib/info/components/InfoValueItem/index.d.ts +0 -5
- package/lib/info/components/ProInfoItem/index.d.ts +0 -5
- package/lib/info/components/baseInfo/index.d.ts +0 -8
- package/lib/info/components/headerInfo/index.d.ts +0 -8
- package/lib/info/components/tableInfo/index.d.ts +0 -7
- package/lib/info/index.d.ts +0 -10
- package/lib/info/typing.d.ts +0 -218
- package/lib/info/utils/index.d.ts +0 -20
- package/lib/info/utils/layout.d.ts +0 -2
- package/lib/info/utils/utils.d.ts +0 -1
- package/lib/layout/index.d.ts +0 -2
- package/lib/nocode/configurators/Card.d.ts +0 -3
- package/lib/nocode/configurators/PageHeader.d.ts +0 -3
- package/lib/nocode/configurators/ProTable.d.ts +0 -3
- package/lib/nocode/configurators/common.d.ts +0 -280
- package/lib/nocode/configurators/index.d.ts +0 -15
- package/lib/nocode/configurators/map.d.ts +0 -2
- package/lib/nocode/index.d.ts +0 -8
- package/lib/nocode/pages/editor.d.ts +0 -12
- package/lib/nocode/pages/index.d.ts +0 -14
- package/lib/nocode/pages/playground.d.ts +0 -11
- package/lib/nocode/pages/renderer.d.ts +0 -10
- package/lib/nocode/playground.d.ts +0 -14
- package/lib/page-container/index.d.ts +0 -3
- package/lib/page-header/index.d.ts +0 -74
- package/lib/sidebar/components/sidebar-container/index.d.ts +0 -5
- package/lib/sidebar/components/tree/index.d.ts +0 -6
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +0 -15
- package/lib/sidebar/components/tree-node/components/IconAction/index.d.ts +0 -12
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.d.ts +0 -23
- package/lib/sidebar/components/tree-node/index.d.ts +0 -7
- package/lib/sidebar/index.d.ts +0 -7
- package/lib/sidebar/typing.d.ts +0 -137
- package/lib/sidebar/utils/action-ref.d.ts +0 -3
- package/lib/sidebar/utils/index.d.ts +0 -361
- package/lib/skeleton/index.d.ts +0 -3
- package/lib/table/components/EmptyContent/index.d.ts +0 -2
- package/lib/table/components/Filter/index.d.ts +0 -9
- package/lib/table/components/Layout/index.d.ts +0 -5
- package/lib/table/components/Pagination/index.d.ts +0 -7
- package/lib/table/components/QuickAction/index.d.ts +0 -10
- package/lib/table/components/ToolBar/DensityIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/FilterColumnIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/FullScreenIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/Fullscreen.d.ts +0 -10
- package/lib/table/components/ToolBar/RefreshIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/index.d.ts +0 -5
- package/lib/table/index.d.ts +0 -5
- package/lib/table/typing.d.ts +0 -299
- package/lib/table/utils/columnRender.d.ts +0 -13
- package/lib/table/utils/genProColumnToColumn.d.ts +0 -13
- package/lib/table/utils/getTableProps.d.ts +0 -2
- package/lib/table/utils/getTableSortIcons.d.ts +0 -3
- package/lib/table/utils/index.d.ts +0 -19
- package/lib/table/utils/pureColumnRender.d.ts +0 -9
- package/lib/table/utils/pureGenProColumnToColumn.d.ts +0 -7
- package/lib/table/utils/useTableSelection.d.ts +0 -3
- package/lib/templates/Detail/index.d.ts +0 -2
- package/lib/templates/Form/index.d.ts +0 -2
- package/lib/templates/List/index.d.ts +0 -9
- package/lib/templates/index.d.ts +0 -3
- package/lib/timeline/ProTimeLineItem/index.d.ts +0 -5
- package/lib/timeline/index.d.ts +0 -10
- package/lib/timeline/typing.d.ts +0 -106
- package/lib/utils/index.d.ts +0 -3
- package/lib/utils/message.d.ts +0 -3
@@ -30,6 +30,17 @@ object-assign
|
|
30
30
|
* (c) Sindre Sorhus; MIT License
|
31
31
|
*/
|
32
32
|
|
33
|
+
/*! js-cookie v3.0.1 | MIT */
|
34
|
+
|
35
|
+
/**
|
36
|
+
* @license
|
37
|
+
* Lodash <https://lodash.com/>
|
38
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
39
|
+
* Released under MIT license <https://lodash.com/license>
|
40
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
41
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
42
|
+
*/
|
43
|
+
|
33
44
|
/** @license React v16.13.1
|
34
45
|
* react-is.production.min.js
|
35
46
|
*
|
@@ -1,11 +1,5 @@
|
|
1
1
|
var _excluded = ["schema", "component"];
|
2
2
|
|
3
|
-
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; }
|
4
|
-
|
5
|
-
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; }
|
6
|
-
|
7
|
-
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; }
|
8
|
-
|
9
3
|
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; }
|
10
4
|
|
11
5
|
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; }
|
@@ -19,7 +13,7 @@ export function useDialogComponentAction(action, context) {
|
|
19
13
|
others = _objectWithoutProperties(action, _excluded);
|
20
14
|
|
21
15
|
return useDialogAction(Object.assign({
|
22
|
-
content: /*#__PURE__*/React.createElement(Component,
|
16
|
+
content: /*#__PURE__*/React.createElement(Component, addContext(schema, context)),
|
23
17
|
closeable: true
|
24
18
|
}, others), context);
|
25
19
|
}
|
@@ -7,6 +7,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
7
7
|
|
8
8
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
9
9
|
|
10
|
+
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); }
|
11
|
+
|
10
12
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
11
13
|
|
12
14
|
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."); }
|
@@ -139,10 +141,10 @@ var DialogForm = function DialogForm(props) {
|
|
139
141
|
style: {
|
140
142
|
display: 'block'
|
141
143
|
}
|
142
|
-
}, /*#__PURE__*/React.createElement(ProForm,
|
144
|
+
}, /*#__PURE__*/React.createElement(ProForm, _extends({
|
143
145
|
form: form,
|
144
146
|
schema: formSchema
|
145
|
-
}, getDefaultFormPropsByDialogSize(size)
|
147
|
+
}, getDefaultFormPropsByDialogSize(size), otherFormProps)));
|
146
148
|
};
|
147
149
|
|
148
150
|
export function useDialogFormAction(action, context) {
|
@@ -174,7 +176,7 @@ export function useDialogFormAction(action, context) {
|
|
174
176
|
formProps: formProps,
|
175
177
|
context: contentContext
|
176
178
|
};
|
177
|
-
return /*#__PURE__*/React.createElement(DialogForm,
|
179
|
+
return /*#__PURE__*/React.createElement(DialogForm, _extends({
|
178
180
|
innerFormRef: innerFormRef,
|
179
181
|
formRef: propsFormRef
|
180
182
|
}, dialogFormProps));
|
package/es/actions/dialog.js
CHANGED
@@ -229,7 +229,7 @@ export function useDialogAction(action, actionContext, hasForm) {
|
|
229
229
|
var dialogContext = Object.assign({}, context, {
|
230
230
|
hide: hide
|
231
231
|
});
|
232
|
-
var dialogContent = Component ? /*#__PURE__*/React.createElement(Component,
|
232
|
+
var dialogContent = Component ? /*#__PURE__*/React.createElement(Component, addContext(componentProps, dialogContext)) : addContextForReactNode(content, dialogContext);
|
233
233
|
|
234
234
|
var quickShowProps = _objectSpread(_objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, "".concat(isPop ? 'onConfirm' : 'onOk'), hideFooter && !isPop && isDrawer ? false : onOk), _defineProperty(_objectSpread2, "onCancel", hideFooter && !isPop && isDrawer ? false : function () {
|
235
235
|
propsOnCancel && propsOnCancel(context);
|
package/es/actions/index.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
var _excluded = ["type"],
|
2
|
-
_excluded2 = ["config", "icon", "iconSize", "type", "context", "children", "visible", "disabled", "onClick", "tooltip", "disabledTooltip", "tooltipProps"],
|
2
|
+
_excluded2 = ["config", "icon", "iconSize", "type", "context", "children", "visible", "disabled", "onClick", "tooltip", "disabledTooltip", "tooltipProps", "data-teamix-spm"],
|
3
3
|
_excluded3 = ["loading"],
|
4
4
|
_excluded4 = ["icon", "iconSize", "label", "actions", "children", "context", "type", "className", "noArrow"],
|
5
5
|
_excluded5 = ["context", "text"],
|
6
6
|
_excluded6 = ["key", "actions"],
|
7
7
|
_excluded7 = ["key", "config"],
|
8
|
-
_excluded8 = ["type", "divider", "max", "moreText", "more", "context", "actions", "className"];
|
8
|
+
_excluded8 = ["type", "divider", "max", "moreText", "more", "context", "actions", "className", "data-teamix-spm"];
|
9
9
|
|
10
10
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
11
11
|
|
@@ -19,6 +19,8 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
19
19
|
|
20
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
21
|
|
22
|
+
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); }
|
23
|
+
|
22
24
|
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; }
|
23
25
|
|
24
26
|
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; }
|
@@ -170,6 +172,7 @@ export var ProActionButton = function ProActionButton(props) {
|
|
170
172
|
tooltip = props.tooltip,
|
171
173
|
disabledTooltip = props.disabledTooltip,
|
172
174
|
tooltipProps = props.tooltipProps,
|
175
|
+
dataTeamixSpm = props['data-teamix-spm'],
|
173
176
|
others = _objectWithoutProperties(props, _excluded2);
|
174
177
|
|
175
178
|
var actionProps = useAction(config, context);
|
@@ -182,7 +185,12 @@ export var ProActionButton = function ProActionButton(props) {
|
|
182
185
|
}) : _objectSpread(_objectSpread({
|
183
186
|
disabled: disabled
|
184
187
|
}, actionProps), others);
|
185
|
-
|
188
|
+
|
189
|
+
if (dataTeamixSpm) {
|
190
|
+
buttonProps['data-teamix-spm'] = dataTeamixSpm;
|
191
|
+
}
|
192
|
+
|
193
|
+
var content = /*#__PURE__*/React.createElement(Button, _extends({
|
186
194
|
type: type
|
187
195
|
}, buttonProps), buttonContent(children, icon, iconSize, context));
|
188
196
|
|
@@ -195,15 +203,15 @@ export var ProActionButton = function ProActionButton(props) {
|
|
195
203
|
if (tooltip || disabledTooltip) {
|
196
204
|
if (tooltip && !disabledTooltip) {
|
197
205
|
if (!disabled) {
|
198
|
-
content = /*#__PURE__*/React.createElement(Balloon.Tooltip,
|
206
|
+
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, tooltip);
|
199
207
|
}
|
200
208
|
} else if (!tooltip && disabledTooltip) {
|
201
209
|
if (disabled) {
|
202
|
-
content = /*#__PURE__*/React.createElement(Balloon.Tooltip,
|
210
|
+
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, disabledTooltip);
|
203
211
|
}
|
204
212
|
} else if (tooltip && disabledTooltip) {
|
205
213
|
var showToolTip = disabled ? disabledTooltip : tooltip;
|
206
|
-
content = /*#__PURE__*/React.createElement(Balloon.Tooltip,
|
214
|
+
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, showToolTip);
|
207
215
|
}
|
208
216
|
}
|
209
217
|
|
@@ -212,7 +220,8 @@ export var ProActionButton = function ProActionButton(props) {
|
|
212
220
|
|
213
221
|
var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
|
214
222
|
var action = props.action,
|
215
|
-
context = props.context
|
223
|
+
context = props.context,
|
224
|
+
dataTeamixSpm = props['data-teamix-spm'];
|
216
225
|
var config = action.config,
|
217
226
|
btnContext = action.context,
|
218
227
|
_onClick2 = action.onClick,
|
@@ -239,6 +248,11 @@ var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
|
|
239
248
|
return _onClick2(e, context);
|
240
249
|
}
|
241
250
|
}) : _objectSpread({}, menuItemProps);
|
251
|
+
|
252
|
+
if (dataTeamixSpm) {
|
253
|
+
buttonProps['data-teamix-spm'] = dataTeamixSpm;
|
254
|
+
}
|
255
|
+
|
242
256
|
var content = buttonContent(children, icon, undefined, context);
|
243
257
|
|
244
258
|
var baseToolTipProps = _objectSpread({
|
@@ -250,24 +264,24 @@ var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
|
|
250
264
|
if (tooltip || disabledTooltip) {
|
251
265
|
if (tooltip && !disabledTooltip) {
|
252
266
|
if (!disabled) {
|
253
|
-
content = /*#__PURE__*/React.createElement(Balloon.Tooltip,
|
267
|
+
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, tooltip);
|
254
268
|
}
|
255
269
|
} else if (!tooltip && disabledTooltip) {
|
256
270
|
if (disabled) {
|
257
|
-
content = /*#__PURE__*/React.createElement(Balloon.Tooltip,
|
271
|
+
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, disabledTooltip);
|
258
272
|
}
|
259
273
|
} else if (tooltip && disabledTooltip) {
|
260
274
|
var showToolTip = disabled ? disabledTooltip : tooltip;
|
261
|
-
content = /*#__PURE__*/React.createElement(Balloon.Tooltip,
|
275
|
+
content = /*#__PURE__*/React.createElement(Balloon.Tooltip, baseToolTipProps, showToolTip);
|
262
276
|
}
|
263
277
|
}
|
264
278
|
|
265
|
-
return /*#__PURE__*/React.createElement("div",
|
279
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
266
280
|
className: cls(_defineProperty({}, basePrefix('disabled'), disabled), basePrefix('menu-item'), prefixCls('menu-item'))
|
267
281
|
}, buttonProps), content);
|
268
282
|
};
|
269
283
|
|
270
|
-
function renderCommonActionButtonMenuItem(action, key, context) {
|
284
|
+
function renderCommonActionButtonMenuItem(action, key, context, dataTeamixSpm) {
|
271
285
|
if (action.type === 'divider') {
|
272
286
|
return /*#__PURE__*/React.createElement(Menu.Divider, {
|
273
287
|
key: key
|
@@ -281,14 +295,15 @@ function renderCommonActionButtonMenuItem(action, key, context) {
|
|
281
295
|
key: key,
|
282
296
|
label: menuBtn.label || menuBtn.children
|
283
297
|
}, menuBtn.actions.map(function (a) {
|
284
|
-
return renderCommonActionButtonMenuItem(a, a.key, context);
|
298
|
+
return renderCommonActionButtonMenuItem(a, a.key, context, a['data-teamix-spm']);
|
285
299
|
}));
|
286
300
|
}
|
287
301
|
|
288
302
|
return /*#__PURE__*/React.createElement(ProActionMenuButtonItem, {
|
289
303
|
key: key,
|
290
304
|
action: action,
|
291
|
-
context: context
|
305
|
+
context: context,
|
306
|
+
"data-teamix-spm": "".concat(dataTeamixSpm, "-").concat(key)
|
292
307
|
});
|
293
308
|
}
|
294
309
|
|
@@ -305,7 +320,7 @@ export var ProActionMenuButton = function ProActionMenuButton(props) {
|
|
305
320
|
noArrow = props.noArrow,
|
306
321
|
others = _objectWithoutProperties(props, _excluded4);
|
307
322
|
|
308
|
-
return /*#__PURE__*/React.createElement(MenuButton,
|
323
|
+
return /*#__PURE__*/React.createElement(MenuButton, _extends({
|
309
324
|
popupTriggerType: "hover",
|
310
325
|
autoWidth: false,
|
311
326
|
menuProps: {
|
@@ -321,10 +336,11 @@ export var ProActionMenuButton = function ProActionMenuButton(props) {
|
|
321
336
|
'teamix-pro-actions-text-menu-btn-no-arrow': noArrow
|
322
337
|
})
|
323
338
|
}, others), actions.map(function (action, i) {
|
324
|
-
return renderCommonActionButtonMenuItem(action, action.key || i, context);
|
339
|
+
return renderCommonActionButtonMenuItem(action, action.key || i, context, others === null || others === void 0 ? void 0 : others['data-teamix-spm']);
|
325
340
|
}));
|
326
|
-
};
|
341
|
+
};
|
327
342
|
|
343
|
+
// 超出 max,则折叠起来
|
328
344
|
function foldExtraActions(actions, max, moreConfig) {
|
329
345
|
if (actions.length <= max) {
|
330
346
|
return actions;
|
@@ -354,7 +370,7 @@ function formatGroupActions(actions, max, moreConfig) {
|
|
354
370
|
} // 渲染一个 button 或者 menu button
|
355
371
|
|
356
372
|
|
357
|
-
function renderCommonActionButton(button, context, isTypeText) {
|
373
|
+
function renderCommonActionButton(button, context, isTypeText, dataTeamixSpm) {
|
358
374
|
if (button.type === 'divider') {
|
359
375
|
return /*#__PURE__*/React.createElement(Divider, {
|
360
376
|
key: button.key,
|
@@ -362,20 +378,25 @@ function renderCommonActionButton(button, context, isTypeText) {
|
|
362
378
|
});
|
363
379
|
}
|
364
380
|
|
365
|
-
var
|
366
|
-
|
367
|
-
|
381
|
+
var _ref = button,
|
382
|
+
buttonContext = _ref.context,
|
383
|
+
text = _ref.text,
|
384
|
+
others = _objectWithoutProperties(_ref, _excluded5);
|
368
385
|
|
369
386
|
var buttonProps = _objectSpread({
|
370
387
|
context: Object.assign({}, context, buttonContext),
|
371
388
|
text: text || isTypeText
|
372
389
|
}, others);
|
373
390
|
|
391
|
+
if (dataTeamixSpm) {
|
392
|
+
buttonProps['data-teamix-spm'] = dataTeamixSpm;
|
393
|
+
}
|
394
|
+
|
374
395
|
if (!button.actions) {
|
375
|
-
return /*#__PURE__*/React.createElement(ProActionButton,
|
396
|
+
return /*#__PURE__*/React.createElement(ProActionButton, buttonProps);
|
376
397
|
}
|
377
398
|
|
378
|
-
return /*#__PURE__*/React.createElement(ProActionMenuButton,
|
399
|
+
return /*#__PURE__*/React.createElement(ProActionMenuButton, buttonProps);
|
379
400
|
}
|
380
401
|
|
381
402
|
function getDefaultMoreButton(type, more) {
|
@@ -414,9 +435,10 @@ function getKey(index, key) {
|
|
414
435
|
|
415
436
|
function getActionConfig(action, index, context) {
|
416
437
|
if (action.actions) {
|
417
|
-
var
|
418
|
-
|
419
|
-
|
438
|
+
var _ref2 = action,
|
439
|
+
_key = _ref2.key,
|
440
|
+
actions = _ref2.actions,
|
441
|
+
_others = _objectWithoutProperties(_ref2, _excluded6);
|
420
442
|
|
421
443
|
return _objectSpread({
|
422
444
|
key: getKey(index, _key),
|
@@ -428,9 +450,10 @@ function getActionConfig(action, index, context) {
|
|
428
450
|
}, getTargetValue(_others, context));
|
429
451
|
}
|
430
452
|
|
431
|
-
var
|
432
|
-
|
433
|
-
|
453
|
+
var _ref3 = action,
|
454
|
+
key = _ref3.key,
|
455
|
+
config = _ref3.config,
|
456
|
+
others = _objectWithoutProperties(_ref3, _excluded7);
|
434
457
|
|
435
458
|
return _objectSpread({
|
436
459
|
key: getKey(index, key),
|
@@ -451,6 +474,7 @@ export function ProActionGroup(props) {
|
|
451
474
|
_props$actions = props.actions,
|
452
475
|
actions = _props$actions === void 0 ? [] : _props$actions,
|
453
476
|
className = props.className,
|
477
|
+
dataTeamixSpm = props['data-teamix-spm'],
|
454
478
|
containerProps = _objectWithoutProperties(props, _excluded8);
|
455
479
|
|
456
480
|
var isTypeText = type === 'text';
|
@@ -460,13 +484,20 @@ export function ProActionGroup(props) {
|
|
460
484
|
return action.visible !== false;
|
461
485
|
});
|
462
486
|
var formatedActions = formatGroupActions(filteredActions, max, getDefaultMoreButton(type, more || moreText));
|
463
|
-
return /*#__PURE__*/React.createElement("div",
|
487
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
464
488
|
className: cls('teamix-pro-actions', "teamix-pro-actions-type-".concat(type), className, {
|
465
489
|
'teamix-pro-actions-divider': type === 'button' ? false : divider
|
466
490
|
})
|
467
491
|
}, containerProps), formatedActions.map(function (actionBtn, i) {
|
468
492
|
var isLastOne = i === formatedActions.length - 1;
|
469
|
-
|
493
|
+
|
494
|
+
if (dataTeamixSpm) {
|
495
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
496
|
+
key: actionBtn.key
|
497
|
+
}, renderCommonActionButton(actionBtn, context, isTypeText, "".concat(dataTeamixSpm, "-").concat(actionBtn.key || i)), isTypeText && divider && !isLastOne && /*#__PURE__*/React.createElement(Divider, {
|
498
|
+
direction: "ver"
|
499
|
+
}));
|
500
|
+
} else return /*#__PURE__*/React.createElement(React.Fragment, {
|
470
501
|
key: actionBtn.key
|
471
502
|
}, renderCommonActionButton(actionBtn, context, isTypeText), isTypeText && divider && !isLastOne && /*#__PURE__*/React.createElement(Divider, {
|
472
503
|
direction: "ver"
|
@@ -493,4 +524,7 @@ export var ActionButton = ProActionButton;
|
|
493
524
|
* @deprecated 建议使用 ProActionMenuButton 代替
|
494
525
|
*/
|
495
526
|
|
496
|
-
export var ActionMenuButton = ProActionMenuButton;
|
527
|
+
export var ActionMenuButton = ProActionMenuButton;
|
528
|
+
/**
|
529
|
+
* @deprecated 建议使用 ProActionConfig 代替
|
530
|
+
*/
|
package/es/actions/request.js
CHANGED
@@ -26,8 +26,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
26
26
|
import { useState } from 'react';
|
27
27
|
import { useHistory } from 'react-router-dom';
|
28
28
|
import { doCommonRequest } from '@teamix/utils';
|
29
|
-
import { eventHandler } from './base';
|
30
|
-
|
29
|
+
import { eventHandler } from './base';
|
30
|
+
// action 里的数据请求都默认是 post 类型
|
31
31
|
export function doRequest(action, context, history, extraParams) {
|
32
32
|
var _action$method = action.method,
|
33
33
|
method = _action$method === void 0 ? 'post' : _action$method,
|
@@ -1,17 +1,14 @@
|
|
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; }
|
6
|
-
|
7
1
|
import React from 'react';
|
8
2
|
import { ProCard } from './index';
|
9
3
|
/**
|
10
|
-
* @deprecated 建议使用
|
4
|
+
* @deprecated 建议使用 ProCardProps 代替
|
11
5
|
*/
|
12
6
|
|
7
|
+
/**
|
8
|
+
* @deprecated 建议使用 ProCard 代替
|
9
|
+
*/
|
13
10
|
export var ProCardContainer = function ProCardContainer(props) {
|
14
|
-
return /*#__PURE__*/React.createElement(ProCard,
|
11
|
+
return /*#__PURE__*/React.createElement(ProCard, props);
|
15
12
|
};
|
16
13
|
ProCardContainer.defaultProps = {
|
17
14
|
compacted: true,
|
@@ -21,4 +18,7 @@ ProCardContainer.defaultProps = {
|
|
21
18
|
* @deprecated 建议使用 ProCardContainer 代替
|
22
19
|
*/
|
23
20
|
|
24
|
-
export var CardContainer = ProCardContainer;
|
21
|
+
export var CardContainer = ProCardContainer;
|
22
|
+
/**
|
23
|
+
* @deprecated 建议使用 ProCardContainerProps 代替
|
24
|
+
*/
|
package/es/card/divider.js
CHANGED
@@ -1,13 +1,9 @@
|
|
1
|
-
function
|
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; }
|
1
|
+
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); }
|
6
2
|
|
7
3
|
import React from 'react';
|
8
4
|
|
9
5
|
var ProCardDivider = function ProCardDivider(props) {
|
10
|
-
return /*#__PURE__*/React.createElement("div",
|
6
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
11
7
|
className: "teamix-pro-card-divider"
|
12
8
|
}, props));
|
13
9
|
};
|
package/es/card/index.js
CHANGED
@@ -13,6 +13,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
13
13
|
|
14
14
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
15
15
|
|
16
|
+
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); }
|
17
|
+
|
16
18
|
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; }
|
17
19
|
|
18
20
|
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; }
|
@@ -49,14 +51,15 @@ var renderActionGroup = function renderActionGroup(extra, context) {
|
|
49
51
|
}
|
50
52
|
|
51
53
|
if (extra.actions instanceof Array) {
|
52
|
-
var
|
53
|
-
|
54
|
+
var _ref = extra,
|
55
|
+
userContext = _ref.context,
|
56
|
+
others = _objectWithoutProperties(_ref, _excluded);
|
54
57
|
|
55
58
|
var mergedContext = _objectSpread(_objectSpread({}, context), userContext);
|
56
59
|
|
57
|
-
return /*#__PURE__*/React.createElement(ProActionGroup,
|
60
|
+
return /*#__PURE__*/React.createElement(ProActionGroup, _extends({
|
58
61
|
context: mergedContext
|
59
|
-
}, others
|
62
|
+
}, others, {
|
60
63
|
type: "text"
|
61
64
|
}));
|
62
65
|
}
|
@@ -221,9 +224,9 @@ export var ProCard = function ProCard(props) {
|
|
221
224
|
});
|
222
225
|
var width = widthList.reduce(function (acc, cur) {
|
223
226
|
return acc + cur;
|
224
|
-
}, 0) + widthList.length * 8; // 无法取出精准宽度,减去1作为阈值
|
227
|
+
}, 0) + widthList.length * 8; // 无法取出精准宽度,减去1作为阈值 10为右padding
|
225
228
|
|
226
|
-
setHeaderWithoutTitleWidth(width - 1);
|
229
|
+
setHeaderWithoutTitleWidth(width - 1 + 10);
|
227
230
|
}
|
228
231
|
};
|
229
232
|
|
@@ -274,12 +277,12 @@ export var ProCard = function ProCard(props) {
|
|
274
277
|
})));
|
275
278
|
};
|
276
279
|
|
277
|
-
return /*#__PURE__*/React.createElement(BasicCard,
|
280
|
+
return /*#__PURE__*/React.createElement(BasicCard, _extends({
|
278
281
|
free: true,
|
279
282
|
className: cardClassName,
|
280
283
|
style: style,
|
281
|
-
actions: renderActionGroup(actions, context)
|
282
|
-
|
284
|
+
actions: renderActionGroup(actions, context) // @ts-ignore
|
285
|
+
,
|
283
286
|
ref: cardRef
|
284
287
|
}, others), !loading && image && /*#__PURE__*/React.createElement(BasicCard.Media, {
|
285
288
|
component: "img",
|
@@ -320,4 +323,7 @@ ProCard.Divider = ProCardDivider;
|
|
320
323
|
ProCard.Selectable = ProCardSelectable;
|
321
324
|
ProCard.Tab = ProCardTab;
|
322
325
|
ProCard.isProCard = true;
|
323
|
-
export default ProCard;
|
326
|
+
export default ProCard;
|
327
|
+
/**
|
328
|
+
* @deprecated 建议使用 ProCardProps 代替
|
329
|
+
*/
|
package/es/card/selectable.js
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
var _excluded = ["selected", "onSelect", "className", "onClick"];
|
2
2
|
|
3
|
-
function
|
4
|
-
|
5
|
-
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; }
|
6
|
-
|
7
|
-
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; }
|
3
|
+
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); }
|
8
4
|
|
9
5
|
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; }
|
10
6
|
|
@@ -24,7 +20,7 @@ var ProCardSelectable = function ProCardSelectable(props) {
|
|
24
20
|
_onClick = props.onClick,
|
25
21
|
others = _objectWithoutProperties(props, _excluded);
|
26
22
|
|
27
|
-
return /*#__PURE__*/React.createElement(ProCard,
|
23
|
+
return /*#__PURE__*/React.createElement(ProCard, _extends({
|
28
24
|
className: classnames(cls(), className),
|
29
25
|
borderColor: selected ? 'blue' : 'grey',
|
30
26
|
extra: /*#__PURE__*/React.createElement(TeamixIcon, {
|
package/es/card/tab.js
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
var _excluded = ["className"];
|
2
2
|
|
3
|
-
function
|
4
|
-
|
5
|
-
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; }
|
6
|
-
|
7
|
-
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; }
|
3
|
+
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); }
|
8
4
|
|
9
5
|
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; }
|
10
6
|
|
@@ -18,7 +14,7 @@ var ProCardTab = function ProCardTab(props) {
|
|
18
14
|
var className = props.className,
|
19
15
|
others = _objectWithoutProperties(props, _excluded);
|
20
16
|
|
21
|
-
return /*#__PURE__*/React.createElement(Tab,
|
17
|
+
return /*#__PURE__*/React.createElement(Tab, _extends({
|
22
18
|
className: classnames('teamix-pro-card-tab', className)
|
23
19
|
}, others));
|
24
20
|
};
|
@@ -193,7 +193,7 @@ Editable.Popover = observer(function (_ref3) {
|
|
193
193
|
setVisible(true);
|
194
194
|
};
|
195
195
|
|
196
|
-
return /*#__PURE__*/React.createElement(Balloon,
|
196
|
+
return /*#__PURE__*/React.createElement(Balloon, _extends({}, props, {
|
197
197
|
title: field.title,
|
198
198
|
className: props.className,
|
199
199
|
visible: visible,
|
@@ -1,6 +1,8 @@
|
|
1
1
|
var _excluded = ["children", "title", "xIndex"],
|
2
2
|
_excluded2 = ["children"];
|
3
3
|
|
4
|
+
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); }
|
5
|
+
|
4
6
|
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; }
|
5
7
|
|
6
8
|
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; }
|
@@ -52,7 +54,7 @@ var FormGroupGroupPanel = observer(function (_ref) {
|
|
52
54
|
var prefixCls = usePrefixCls('formily-group-panel', {
|
53
55
|
base: true
|
54
56
|
});
|
55
|
-
return /*#__PURE__*/React.createElement("div",
|
57
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
56
58
|
className: cls(prefixCls(), props.className)
|
57
59
|
}), xIndex !== 0 ? /*#__PURE__*/React.createElement("div", {
|
58
60
|
className: prefixCls('divider')
|
@@ -68,13 +70,13 @@ var FormGroup = observer(function (_ref2) {
|
|
68
70
|
base: true
|
69
71
|
});
|
70
72
|
var panels = usePanels();
|
71
|
-
return /*#__PURE__*/React.createElement("div",
|
73
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
72
74
|
className: cls(prefixCls(), props.className)
|
73
75
|
}), panels.map(function (_ref3, index) {
|
74
76
|
var props = _ref3.props,
|
75
77
|
schema = _ref3.schema,
|
76
78
|
name = _ref3.name;
|
77
|
-
return /*#__PURE__*/React.createElement(FormGroupGroupPanel,
|
79
|
+
return /*#__PURE__*/React.createElement(FormGroupGroupPanel, _extends({
|
78
80
|
key: index,
|
79
81
|
xIndex: index
|
80
82
|
}, props), /*#__PURE__*/React.createElement(RecursionField, {
|
@@ -1,3 +1,5 @@
|
|
1
|
+
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); }
|
2
|
+
|
1
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
2
4
|
|
3
5
|
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."); }
|
@@ -76,6 +78,10 @@ var isInputCategory = function isInputCategory(currentSchema) {
|
|
76
78
|
var component = currentSchema === null || currentSchema === void 0 ? void 0 : currentSchema['x-component'];
|
77
79
|
return inputCategory.includes(component);
|
78
80
|
};
|
81
|
+
/**
|
82
|
+
* LightFilter
|
83
|
+
*/
|
84
|
+
|
79
85
|
|
80
86
|
var LightFilter = observer(function (props) {
|
81
87
|
var _filterItems$, _main$;
|
@@ -125,14 +131,14 @@ var LightFilter = observer(function (props) {
|
|
125
131
|
}))
|
126
132
|
}, /*#__PURE__*/React.createElement("span", {
|
127
133
|
className: prefixCls('main')
|
128
|
-
}, /*#__PURE__*/React.createElement(Select,
|
134
|
+
}, /*#__PURE__*/React.createElement(Select, _extends({}, filterProps, {
|
129
135
|
className: cls(prefixCls('select'), _defineProperty({}, prefixCls('select-none'), !content.length), filterProps === null || filterProps === void 0 ? void 0 : filterProps.className),
|
130
136
|
dataSource: filterItems,
|
131
137
|
onChange: onSelectChange,
|
132
138
|
value: active
|
133
139
|
})), content), /*#__PURE__*/React.createElement("span", {
|
134
140
|
className: prefixCls('addonAfter')
|
135
|
-
}, /*#__PURE__*/React.createElement(Button,
|
141
|
+
}, /*#__PURE__*/React.createElement(Button, buttonProps, /*#__PURE__*/React.createElement(TeamixIcon, {
|
136
142
|
type: "search-line"
|
137
143
|
}))));
|
138
144
|
});
|
@@ -10,11 +10,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
10
10
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
12
12
|
|
13
|
-
function
|
14
|
-
|
15
|
-
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; }
|
16
|
-
|
17
|
-
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
|
+
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); }
|
18
14
|
|
19
15
|
import React from 'react';
|
20
16
|
import { connect, mapProps } from '@formily/react';
|
@@ -24,7 +20,7 @@ import fieldTypeMap from '../../fieldTypeMap';
|
|
24
20
|
|
25
21
|
var componentBuilder = function componentBuilder(type) {
|
26
22
|
return connect(function (props) {
|
27
|
-
return /*#__PURE__*/React.createElement(ProField,
|
23
|
+
return /*#__PURE__*/React.createElement(ProField, _extends({}, props, {
|
28
24
|
type: type
|
29
25
|
}));
|
30
26
|
}, mapProps(mapSize, mapStatus, mapDataSource, mapMode));
|