@teamix/pro 1.6.0-beta.3 → 1.6.0-beta.5
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/pro.all.min.css +1 -0
- package/dist/pro.css +1 -1
- package/dist/pro.js +23217 -12214
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/dist/pro.xconsole.min.css +1 -0
- package/es/actions/base.d.ts +24 -0
- package/es/actions/base.js +1 -1
- 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 +4 -1
- package/es/actions/dialog-form.d.ts +29 -0
- package/es/actions/dialog-form.js +8 -8
- 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 +8 -7
- 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 +114 -0
- package/es/actions/index.js +51 -44
- package/es/actions/index.scss +6 -1
- package/es/actions/link.d.ts +8 -0
- package/es/actions/link.js +4 -3
- package/es/actions/notice.d.ts +7 -0
- package/es/actions/pop-confirm.d.ts +9 -0
- package/es/actions/quick.d.ts +2 -0
- package/es/actions/quick.js +26 -0
- package/es/actions/request.d.ts +9 -0
- package/es/actions/request.js +4 -3
- package/es/actions/utils.d.ts +1 -0
- package/es/card/card-container.d.ts +18 -0
- package/es/card/card-container.js +5 -12
- package/es/card/divider.d.ts +6 -0
- package/es/card/divider.js +4 -2
- package/es/card/index.d.ts +109 -0
- package/es/card/index.js +11 -22
- package/es/card/index.scss +15 -0
- package/es/card/selectable.d.ts +13 -0
- package/es/card/selectable.js +4 -2
- package/es/card/tab.d.ts +6 -0
- package/es/card/tab.js +4 -2
- package/es/card/utils.d.ts +9 -0
- package/es/card/xconsole.scss +3 -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 +2 -2
- package/es/form/Components/FormGroup/index.d.ts +14 -0
- package/es/form/Components/FormGroup/index.js +3 -4
- 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 -11
- package/es/form/Components/ProField/index.d.ts +2 -0
- package/es/form/Components/ProField/index.js +4 -2
- package/es/form/Components/ProField/mapDateFormat.d.ts +3 -0
- package/es/form/Components/Text/index.d.ts +8 -0
- package/es/form/Components/Text/index.js +4 -2
- package/es/form/Filter/AdvancedFilter.d.ts +7 -0
- package/es/form/Filter/AdvancedFilter.js +14 -16
- package/es/form/Filter/Layout.d.ts +5 -0
- package/es/form/Filter/LightFilter.d.ts +7 -0
- package/es/form/Filter/LightFilter.js +9 -13
- package/es/form/Filter/SimpleFilter.d.ts +7 -0
- package/es/form/Filter/SimpleFilter.js +5 -8
- package/es/form/Filter/index.d.ts +9 -0
- package/es/form/Filter/index.js +19 -25
- package/es/form/Filter/index.scss +1 -0
- package/es/form/Filter/index2.d.ts +13 -0
- package/es/form/Filter/index2.js +17 -22
- package/es/form/Filter/index2.scss +1 -0
- package/es/form/Filter/useBindUrl.d.ts +2 -0
- package/es/form/Filter/useBindUrl.js +0 -3
- package/es/form/Filter/useSpecialProps.d.ts +6 -0
- package/es/form/Filter/useSpecialProps.js +0 -1
- 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 +9 -7
- package/es/form/ProForm/useAutoLayout.d.ts +9 -0
- package/es/form/ProForm/useAutoLayout.js +0 -4
- package/es/form/ProForm/useAutoSubmit.d.ts +6 -0
- package/es/form/ProForm/useAutoSubmit.js +4 -3
- package/es/form/ProForm/useFieldRequest.d.ts +5 -0
- package/es/form/ProForm/useFormDisplayValues.d.ts +4 -0
- package/es/form/ProForm/useFormDisplayValues.js +0 -1
- package/es/form/ProForm/useInitialRequest.d.ts +6 -0
- package/es/form/SchemaForm/adapterComponent.d.ts +5 -0
- package/es/form/SchemaForm/adapterComponent.js +0 -1
- package/es/form/SchemaForm/adapterDecorator.d.ts +6 -0
- package/es/form/SchemaForm/adapterDecorator.js +0 -1
- package/es/form/SchemaForm/adapterType.d.ts +5 -0
- package/es/form/SchemaForm/adapterType.js +0 -1
- package/es/form/SchemaForm/index.d.ts +4 -0
- package/es/form/SchemaForm/index.js +0 -13
- 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/initializeDataSource.js +0 -7
- package/es/form/SchemaForm/initializeFormButton.d.ts +3 -0
- package/es/form/SchemaForm/initializeFormButton.js +0 -2
- 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/initializeReactions.js +0 -1
- 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/initializeSelectTable.js +0 -1
- package/es/form/SchemaForm/reactions.d.ts +6 -0
- package/es/form/SchemaForm/reactions.js +0 -5
- package/es/form/docs/ActionResponse.d.ts +8 -0
- package/es/form/fieldTypeMap.d.ts +7 -0
- package/es/form/index.d.ts +125 -0
- package/es/form/index.js +0 -4
- package/es/form/locales/validate.d.ts +159 -0
- package/es/form/schemaNameMap.d.ts +5 -0
- package/es/form/typing.d.ts +194 -0
- package/es/form/utils/parseSchema.d.ts +3 -0
- package/es/form/utils/parseSchema.js +38 -0
- package/es/form/utils.d.ts +55 -0
- package/es/form/utils.js +0 -12
- package/es/form/warning.d.ts +3 -0
- package/es/form/warning.js +0 -2
- package/es/global.scss +3 -1
- package/es/hooks/index.d.ts +2 -0
- package/es/image/index.d.ts +22 -0
- package/es/image/index.js +73 -0
- package/es/image/index.scss +3 -0
- package/es/index-without-icon.d.ts +32 -0
- package/es/index.d.ts +34 -0
- package/es/index.js +14 -3
- package/es/info/components/InfoGroup/index.d.ts +5 -0
- package/es/info/components/InfoGroup/index.js +4 -2
- package/es/info/components/InfoValueItem/index.d.ts +5 -0
- package/es/info/components/InfoValueItem/index.js +20 -32
- package/es/info/components/ProInfoItem/index.d.ts +5 -0
- package/es/info/components/ProInfoItem/index.js +0 -1
- package/es/info/components/baseInfo/index.d.ts +8 -0
- package/es/info/components/baseInfo/index.js +4 -5
- 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 -6
- package/es/info/index.d.ts +6 -0
- package/es/info/index.js +17 -21
- package/es/info/typing.d.ts +220 -0
- package/es/info/utils/index.d.ts +20 -0
- package/es/info/utils/index.js +0 -3
- 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/layout/index.js +0 -2
- package/es/next-xconsole.scss +34 -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/ProTable.js +1 -22
- package/es/nocode/configurators/common.d.ts +280 -0
- package/es/nocode/configurators/index.d.ts +15 -0
- package/es/nocode/configurators/index.js +1 -0
- package/es/nocode/configurators/map.d.ts +2 -0
- package/es/nocode/index.d.ts +8 -0
- package/es/nocode/index.js +0 -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 +1 -29
- package/es/nocode/pages/playground.d.ts +11 -0
- package/es/nocode/pages/playground.js +5 -3
- package/es/nocode/pages/renderer.d.ts +10 -0
- package/es/nocode/pages/renderer.js +6 -4
- package/es/nocode/playground.d.ts +14 -0
- package/es/nocode/playground.js +4 -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 +13 -23
- package/es/page-header/index.scss +2 -1
- package/es/page-header/xconsole.scss +5 -0
- package/es/sidebar/components/sidebar-container/index.d.ts +5 -0
- package/es/sidebar/components/sidebar-container/index.js +7 -10
- package/es/sidebar/components/tree/index.d.ts +6 -0
- package/es/sidebar/components/tree/index.js +24 -28
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +15 -0
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +4 -3
- 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.js +0 -1
- 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 +16 -29
- package/es/sidebar/index.d.ts +9 -0
- package/es/sidebar/index.js +13 -18
- package/es/sidebar/typing.d.ts +145 -0
- package/es/sidebar/utils/action-ref.d.ts +3 -0
- package/es/sidebar/utils/index.d.ts +364 -0
- package/es/sidebar/utils/index.js +18 -19
- 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 +387 -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 +12 -0
- package/es/table/components/Filter/index.js +110 -79
- package/es/table/components/Layout/index.d.ts +5 -0
- package/es/table/components/Layout/index.js +16 -16
- package/es/table/components/Layout/index.scss +1 -0
- package/es/table/components/LoadMore/index.d.ts +20 -0
- package/es/table/components/LoadMore/index.js +88 -0
- package/es/table/components/LoadMore/index.scss +19 -0
- package/es/table/components/Pagination/index.d.ts +8 -0
- package/es/table/components/Pagination/index.js +48 -31
- package/es/table/components/QuickAction/index.d.ts +11 -0
- package/es/table/components/QuickAction/index.js +2 -3
- package/es/table/components/ToolBar/CardSwitch.d.ts +8 -0
- package/es/table/components/ToolBar/CardSwitch.js +52 -0
- package/es/table/components/ToolBar/DensityIcon.d.ts +4 -0
- package/es/table/components/ToolBar/DensityIcon.js +2 -7
- package/es/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
- package/es/table/components/ToolBar/FilterColumnIcon.js +41 -35
- package/es/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
- package/es/table/components/ToolBar/FullScreenIcon.js +0 -1
- package/es/table/components/ToolBar/Fullscreen.d.ts +10 -0
- package/es/table/components/ToolBar/Fullscreen.js +10 -3
- package/es/table/components/ToolBar/RefreshIcon.d.ts +4 -0
- package/es/table/components/ToolBar/RefreshIcon.js +162 -26
- package/es/table/components/ToolBar/index.d.ts +5 -0
- package/es/table/components/ToolBar/index.js +65 -33
- package/es/table/components/ToolBar/index.scss +27 -1
- package/es/table/index.d.ts +6 -0
- package/es/table/index.js +299 -128
- package/es/table/index.scss +8 -0
- package/es/table/typing.d.ts +426 -0
- package/es/table/utils/columnRender.d.ts +13 -0
- package/es/table/utils/columnRender.js +32 -37
- package/es/table/utils/genProColumnToColumn.d.ts +13 -0
- package/es/table/utils/genProColumnToColumn.js +10 -3
- 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 +0 -6
- package/es/table/utils/pureColumnRender.d.ts +9 -0
- package/es/table/utils/pureColumnRender.js +1 -9
- package/es/table/utils/pureGenProColumnToColumn.d.ts +7 -0
- package/es/table/utils/useTableSelection.d.ts +3 -0
- package/es/table/utils/util.d.ts +5 -0
- package/es/table/utils/util.js +19 -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 +6 -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 +5 -9
- package/es/timeline/index.d.ts +10 -0
- package/es/timeline/index.js +5 -5
- package/es/timeline/typing.d.ts +107 -0
- package/es/utils/aspect.d.ts +2 -0
- package/es/utils/aspect.js +57 -0
- package/es/utils/index.d.ts +3 -0
- package/es/utils/message.d.ts +3 -0
- package/es/utils/message.js +5 -3
- package/es/xconsole.scss +526 -0
- package/lib/actions/base.d.ts +24 -0
- package/lib/actions/base.js +1 -1
- 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 +4 -1
- package/lib/actions/dialog-form.d.ts +29 -0
- package/lib/actions/dialog-form.js +7 -9
- 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 +7 -8
- 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 +114 -0
- package/lib/actions/index.js +73 -44
- package/lib/actions/index.scss +6 -1
- package/lib/actions/link.d.ts +8 -0
- package/lib/actions/link.js +2 -3
- package/lib/actions/notice.d.ts +7 -0
- package/lib/actions/pop-confirm.d.ts +9 -0
- package/lib/actions/quick.d.ts +2 -0
- package/lib/actions/quick.js +33 -0
- package/lib/actions/request.d.ts +9 -0
- package/lib/actions/request.js +2 -3
- package/lib/actions/utils.d.ts +1 -0
- package/lib/card/card-container.d.ts +18 -0
- package/lib/card/card-container.js +4 -6
- package/lib/card/divider.d.ts +6 -0
- package/lib/card/divider.js +4 -2
- package/lib/card/index.d.ts +109 -0
- package/lib/card/index.js +10 -20
- package/lib/card/index.scss +15 -0
- package/lib/card/selectable.d.ts +13 -0
- package/lib/card/selectable.js +4 -2
- package/lib/card/tab.d.ts +6 -0
- package/lib/card/tab.js +4 -2
- package/lib/card/utils.d.ts +9 -0
- package/lib/card/xconsole.scss +3 -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 +2 -2
- package/lib/form/Components/FormGroup/index.d.ts +14 -0
- package/lib/form/Components/FormGroup/index.js +3 -4
- 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 -11
- package/lib/form/Components/ProField/index.d.ts +2 -0
- package/lib/form/Components/ProField/index.js +4 -2
- package/lib/form/Components/ProField/mapDateFormat.d.ts +3 -0
- package/lib/form/Components/Text/index.d.ts +8 -0
- package/lib/form/Components/Text/index.js +4 -2
- package/lib/form/Filter/AdvancedFilter.d.ts +7 -0
- package/lib/form/Filter/AdvancedFilter.js +14 -16
- 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 -13
- 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 +19 -25
- package/lib/form/Filter/index.scss +1 -0
- package/lib/form/Filter/index2.d.ts +13 -0
- package/lib/form/Filter/index2.js +17 -22
- package/lib/form/Filter/index2.scss +1 -0
- package/lib/form/Filter/useBindUrl.d.ts +2 -0
- package/lib/form/Filter/useBindUrl.js +0 -3
- 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 +9 -7
- package/lib/form/ProForm/useAutoLayout.d.ts +9 -0
- package/lib/form/ProForm/useAutoLayout.js +0 -4
- package/lib/form/ProForm/useAutoSubmit.d.ts +6 -0
- package/lib/form/ProForm/useAutoSubmit.js +2 -3
- package/lib/form/ProForm/useFieldRequest.d.ts +5 -0
- package/lib/form/ProForm/useFormDisplayValues.d.ts +4 -0
- package/lib/form/ProForm/useFormDisplayValues.js +0 -1
- package/lib/form/ProForm/useInitialRequest.d.ts +6 -0
- package/lib/form/SchemaForm/adapterComponent.d.ts +5 -0
- package/lib/form/SchemaForm/adapterComponent.js +0 -1
- package/lib/form/SchemaForm/adapterDecorator.d.ts +6 -0
- package/lib/form/SchemaForm/adapterType.d.ts +5 -0
- package/lib/form/SchemaForm/adapterType.js +0 -1
- package/lib/form/SchemaForm/index.d.ts +4 -0
- package/lib/form/SchemaForm/index.js +0 -13
- 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/initializeDataSource.js +2 -9
- package/lib/form/SchemaForm/initializeFormButton.d.ts +3 -0
- package/lib/form/SchemaForm/initializeFormButton.js +0 -2
- 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/initializeReactions.js +0 -1
- 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/SchemaForm/reactions.js +0 -5
- package/lib/form/docs/ActionResponse.d.ts +8 -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 +194 -0
- package/lib/form/typing.js +5 -1
- package/lib/form/utils/parseSchema.d.ts +3 -0
- package/lib/form/utils/parseSchema.js +45 -0
- package/lib/form/utils.d.ts +55 -0
- package/lib/form/utils.js +0 -11
- package/lib/form/warning.d.ts +3 -0
- package/lib/form/warning.js +0 -2
- package/lib/global.scss +3 -1
- package/lib/hooks/index.d.ts +2 -0
- package/lib/image/index.d.ts +22 -0
- package/lib/image/index.js +83 -0
- package/lib/image/index.scss +3 -0
- package/lib/index-without-icon.d.ts +32 -0
- package/lib/index.d.ts +34 -0
- package/lib/index.js +31 -2
- package/lib/info/components/InfoGroup/index.d.ts +5 -0
- package/lib/info/components/InfoGroup/index.js +4 -2
- package/lib/info/components/InfoValueItem/index.d.ts +5 -0
- package/lib/info/components/InfoValueItem/index.js +20 -32
- package/lib/info/components/ProInfoItem/index.d.ts +5 -0
- package/lib/info/components/ProInfoItem/index.js +0 -1
- package/lib/info/components/baseInfo/index.d.ts +8 -0
- package/lib/info/components/baseInfo/index.js +4 -5
- 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 -6
- package/lib/info/index.d.ts +6 -0
- package/lib/info/index.js +16 -20
- package/lib/info/typing.d.ts +220 -0
- package/lib/info/typing.js +5 -1
- package/lib/info/utils/index.d.ts +20 -0
- package/lib/info/utils/index.js +0 -3
- 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/next-xconsole.scss +34 -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/ProTable.js +1 -22
- package/lib/nocode/configurators/common.d.ts +280 -0
- package/lib/nocode/configurators/index.d.ts +15 -0
- package/lib/nocode/configurators/index.js +1 -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 -27
- package/lib/nocode/pages/playground.d.ts +11 -0
- package/lib/nocode/pages/playground.js +5 -3
- package/lib/nocode/pages/renderer.d.ts +10 -0
- package/lib/nocode/pages/renderer.js +6 -4
- package/lib/nocode/playground.d.ts +14 -0
- package/lib/nocode/playground.js +4 -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 +11 -22
- package/lib/page-header/index.scss +2 -1
- package/lib/page-header/xconsole.scss +5 -0
- package/lib/sidebar/components/sidebar-container/index.d.ts +5 -0
- package/lib/sidebar/components/sidebar-container/index.js +7 -10
- package/lib/sidebar/components/tree/index.d.ts +6 -0
- package/lib/sidebar/components/tree/index.js +24 -28
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +15 -0
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.js +4 -3
- 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.js +0 -1
- 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 +16 -29
- package/lib/sidebar/index.d.ts +9 -0
- package/lib/sidebar/index.js +20 -18
- package/lib/sidebar/typing.d.ts +145 -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 +364 -0
- package/lib/sidebar/utils/index.js +18 -19
- 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 +397 -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 +12 -0
- package/lib/table/components/Filter/index.js +109 -78
- package/lib/table/components/Layout/index.d.ts +5 -0
- package/lib/table/components/Layout/index.js +17 -17
- package/lib/table/components/Layout/index.scss +1 -0
- package/lib/table/components/LoadMore/index.d.ts +20 -0
- package/lib/table/components/LoadMore/index.js +99 -0
- package/lib/table/components/LoadMore/index.scss +19 -0
- package/lib/table/components/Pagination/index.d.ts +8 -0
- package/lib/table/components/Pagination/index.js +47 -30
- package/lib/table/components/QuickAction/index.d.ts +11 -0
- package/lib/table/components/QuickAction/index.js +2 -3
- package/lib/table/components/ToolBar/CardSwitch.d.ts +8 -0
- package/lib/table/components/ToolBar/CardSwitch.js +60 -0
- package/lib/table/components/ToolBar/DensityIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/DensityIcon.js +2 -7
- package/lib/table/components/ToolBar/FilterColumnIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/FilterColumnIcon.js +40 -34
- package/lib/table/components/ToolBar/FullScreenIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/FullScreenIcon.js +0 -1
- package/lib/table/components/ToolBar/Fullscreen.d.ts +10 -0
- package/lib/table/components/ToolBar/Fullscreen.js +10 -3
- package/lib/table/components/ToolBar/RefreshIcon.d.ts +4 -0
- package/lib/table/components/ToolBar/RefreshIcon.js +164 -29
- package/lib/table/components/ToolBar/index.d.ts +5 -0
- package/lib/table/components/ToolBar/index.js +64 -32
- package/lib/table/components/ToolBar/index.scss +27 -1
- package/lib/table/index.d.ts +6 -0
- package/lib/table/index.js +299 -128
- package/lib/table/index.scss +8 -0
- package/lib/table/typing.d.ts +426 -0
- package/lib/table/typing.js +5 -1
- package/lib/table/utils/columnRender.d.ts +13 -0
- package/lib/table/utils/columnRender.js +32 -36
- package/lib/table/utils/genProColumnToColumn.d.ts +13 -0
- package/lib/table/utils/genProColumnToColumn.js +10 -3
- 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/index.js +0 -6
- package/lib/table/utils/pureColumnRender.d.ts +9 -0
- package/lib/table/utils/pureColumnRender.js +1 -9
- package/lib/table/utils/pureGenProColumnToColumn.d.ts +7 -0
- package/lib/table/utils/useTableSelection.d.ts +3 -0
- package/lib/table/utils/util.d.ts +5 -0
- package/lib/table/utils/util.js +25 -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 +6 -4
- package/lib/templates/index.d.ts +3 -0
- package/lib/timeline/ProTimeLineItem/index.d.ts +5 -0
- package/lib/timeline/ProTimeLineItem/index.js +5 -9
- package/lib/timeline/index.d.ts +10 -0
- package/lib/timeline/index.js +5 -5
- package/lib/timeline/typing.d.ts +107 -0
- package/lib/timeline/typing.js +5 -1
- package/lib/utils/aspect.d.ts +2 -0
- package/lib/utils/aspect.js +64 -0
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/message.d.ts +3 -0
- package/lib/utils/message.js +5 -3
- package/lib/xconsole.scss +526 -0
- package/package.json +9 -8
@@ -0,0 +1,32 @@
|
|
1
|
+
import ProAction from './actions';
|
2
|
+
import ProCard from './card';
|
3
|
+
import ProField from './field';
|
4
|
+
import ProForm from './form';
|
5
|
+
import hooks from './hooks';
|
6
|
+
import ProInfo from './info';
|
7
|
+
import ProPageContainer from './page-container';
|
8
|
+
import ProPageHeader from './page-header';
|
9
|
+
import ProTable from './table';
|
10
|
+
import ProSkeleton from './skeleton';
|
11
|
+
import utils from './utils';
|
12
|
+
import ProSidebar from './sidebar';
|
13
|
+
import { ProTimeline } from './timeline';
|
14
|
+
import * as nocode from './nocode';
|
15
|
+
import * as templates from './templates';
|
16
|
+
import TeamixIcon from '@teamix/icon';
|
17
|
+
import './global.scss';
|
18
|
+
export * from './actions';
|
19
|
+
export * from './card';
|
20
|
+
export * from './field';
|
21
|
+
export * from './form';
|
22
|
+
export * from './info';
|
23
|
+
export * from './nocode';
|
24
|
+
export * from './page-container';
|
25
|
+
export * from './page-header';
|
26
|
+
export * from './skeleton';
|
27
|
+
export * from './table';
|
28
|
+
export * from './sidebar';
|
29
|
+
export * from './utils';
|
30
|
+
export * from './timeline';
|
31
|
+
declare const version = "1.4.7";
|
32
|
+
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils, };
|
package/lib/index.d.ts
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
import ProAction from './actions';
|
2
|
+
import ProCard from './card';
|
3
|
+
import ProField from './field';
|
4
|
+
import ProForm from './form';
|
5
|
+
import hooks from './hooks';
|
6
|
+
import ProInfo from './info';
|
7
|
+
import ProPageContainer from './page-container';
|
8
|
+
import ProPageHeader from './page-header';
|
9
|
+
import ProTable from './table';
|
10
|
+
import ProSkeleton from './skeleton';
|
11
|
+
import utils from './utils';
|
12
|
+
import ProSidebar from './sidebar';
|
13
|
+
import { ProTimeline } from './timeline';
|
14
|
+
import ProImage from './image';
|
15
|
+
import * as nocode from './nocode';
|
16
|
+
import * as templates from './templates';
|
17
|
+
import TeamixIcon from '@teamix/icon';
|
18
|
+
import './global.scss';
|
19
|
+
export * from './actions';
|
20
|
+
export * from './card';
|
21
|
+
export * from './field';
|
22
|
+
export * from './form';
|
23
|
+
export * from './info';
|
24
|
+
export * from './nocode';
|
25
|
+
export * from './page-container';
|
26
|
+
export * from './page-header';
|
27
|
+
export * from './skeleton';
|
28
|
+
export * from './table';
|
29
|
+
export * from './sidebar';
|
30
|
+
export * from './utils';
|
31
|
+
export * from './timeline';
|
32
|
+
export * from './image';
|
33
|
+
declare const version = "1.6.0-beta.5";
|
34
|
+
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, ProImage, hooks, nocode, templates, utils, };
|
package/lib/index.js
CHANGED
@@ -19,6 +19,7 @@ var _exportNames = {
|
|
19
19
|
utils: true,
|
20
20
|
ProSidebar: true,
|
21
21
|
ProTimeline: true,
|
22
|
+
ProImage: true,
|
22
23
|
nocode: true,
|
23
24
|
templates: true,
|
24
25
|
TeamixIcon: true
|
@@ -47,6 +48,12 @@ Object.defineProperty(exports, "ProForm", {
|
|
47
48
|
return _form.default;
|
48
49
|
}
|
49
50
|
});
|
51
|
+
Object.defineProperty(exports, "ProImage", {
|
52
|
+
enumerable: true,
|
53
|
+
get: function get() {
|
54
|
+
return _image.default;
|
55
|
+
}
|
56
|
+
});
|
50
57
|
Object.defineProperty(exports, "ProInfo", {
|
51
58
|
enumerable: true,
|
52
59
|
get: function get() {
|
@@ -254,6 +261,18 @@ Object.keys(_timeline).forEach(function (key) {
|
|
254
261
|
}
|
255
262
|
});
|
256
263
|
});
|
264
|
+
var _image = _interopRequireWildcard(require("./image"));
|
265
|
+
Object.keys(_image).forEach(function (key) {
|
266
|
+
if (key === "default" || key === "__esModule") return;
|
267
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
268
|
+
if (key in exports && exports[key] === _image[key]) return;
|
269
|
+
Object.defineProperty(exports, key, {
|
270
|
+
enumerable: true,
|
271
|
+
get: function get() {
|
272
|
+
return _image[key];
|
273
|
+
}
|
274
|
+
});
|
275
|
+
});
|
257
276
|
var nocode = _interopRequireWildcard(require("./nocode"));
|
258
277
|
exports.nocode = nocode;
|
259
278
|
Object.keys(nocode).forEach(function (key) {
|
@@ -280,5 +299,15 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
280
299
|
if (!((_window = window) === null || _window === void 0 ? void 0 : _window.TEAMIXPRO_WITHOUT_ICON)) {
|
281
300
|
_icon.default.setConfig(_utils.default.getTeamixIconConfig());
|
282
301
|
}
|
283
|
-
var version = '1.6.0-beta.
|
284
|
-
|
302
|
+
var version = '1.6.0-beta.5';
|
303
|
+
// By TeamixTest
|
304
|
+
exports.version = version;
|
305
|
+
window.postMessage({
|
306
|
+
source: 'teamix-test-devtools',
|
307
|
+
url: window.location.href,
|
308
|
+
event: 'getModuleInfo',
|
309
|
+
moduleName: '@teamix/pro',
|
310
|
+
moduleVersion: version,
|
311
|
+
moduleType: 'TeamixPro',
|
312
|
+
componentName: 'TeamixPro'
|
313
|
+
}, '*');
|
@@ -15,7 +15,9 @@ var _excluded = ["children", "url", "method", "params", "formatResult", "onSucce
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
16
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
17
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
18
|
-
function
|
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; }
|
19
|
+
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; }
|
20
|
+
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; }
|
19
21
|
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; }
|
20
22
|
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; }
|
21
23
|
var ProInfoGroup = function ProInfoGroup(props) {
|
@@ -84,7 +86,7 @@ var ProInfoGroup = function ProInfoGroup(props) {
|
|
84
86
|
return /*#__PURE__*/_react.default.createElement("div", {
|
85
87
|
className: proInfoClassName,
|
86
88
|
key: index
|
87
|
-
}, /*#__PURE__*/_react.default.createElement(_.default,
|
89
|
+
}, /*#__PURE__*/_react.default.createElement(_.default, _objectSpread({
|
88
90
|
compacted: compacted
|
89
91
|
}, item)));
|
90
92
|
})), infoType === 'infoDom' && /*#__PURE__*/_react.default.createElement("div", {
|
@@ -18,7 +18,6 @@ var _excluded = ["type", "value", "render", "infoItem", "record", "actionRef", "
|
|
18
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
19
19
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
21
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
22
21
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
23
22
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
24
23
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
@@ -63,7 +62,6 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
63
62
|
valueType = infoItem.valueType,
|
64
63
|
_infoItem$editProForm = infoItem.editProFormProps,
|
65
64
|
editProFormProps = _infoItem$editProForm === void 0 ? {} : _infoItem$editProForm;
|
66
|
-
|
67
65
|
// 获取配置
|
68
66
|
var getInfoItemProps = function getInfoItemProps(prop) {
|
69
67
|
if (typeof prop === 'function') {
|
@@ -71,16 +69,15 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
71
69
|
}
|
72
70
|
return prop;
|
73
71
|
};
|
74
|
-
|
75
72
|
// 获取处理过的 render
|
76
73
|
var getRender = function getRender() {
|
77
|
-
var
|
74
|
+
var _processRenderFunctio;
|
78
75
|
if (typeof render === 'function') {
|
79
76
|
return function () {
|
80
77
|
return render(value, record);
|
81
78
|
};
|
82
79
|
}
|
83
|
-
var newRender = processBuriedPoint((
|
80
|
+
var newRender = processBuriedPoint((_processRenderFunctio = processRenderFunction(render !== null && render !== void 0 ? render : {}, value, record)) !== null && _processRenderFunctio !== void 0 ? _processRenderFunctio : {}, value, record);
|
84
81
|
if (valueType === 'selectGroup') {
|
85
82
|
newRender = _objectSpread(_objectSpread({
|
86
83
|
maxShowNumber: 'auto',
|
@@ -103,7 +100,6 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
103
100
|
}
|
104
101
|
return fieldProps;
|
105
102
|
};
|
106
|
-
|
107
103
|
// 获取处理过的 dataSource
|
108
104
|
var getDataSource = function getDataSource() {
|
109
105
|
var newDataSource = null;
|
@@ -111,10 +107,10 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
111
107
|
newDataSource = dataSource === null || dataSource === void 0 ? void 0 : dataSource(value, record);
|
112
108
|
} else {
|
113
109
|
newDataSource = (dataSource !== null && dataSource !== void 0 ? dataSource : []).map(function (item) {
|
114
|
-
return Object.fromEntries(Object.entries(item).map(function (
|
115
|
-
var
|
116
|
-
k =
|
117
|
-
v =
|
110
|
+
return Object.fromEntries(Object.entries(item).map(function (_ref) {
|
111
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
112
|
+
k = _ref2[0],
|
113
|
+
v = _ref2[1];
|
118
114
|
return [k, (0, _utils.getTargetValue)(v, _objectSpread(_objectSpread({}, record), {}, {
|
119
115
|
value: value
|
120
116
|
}, context))];
|
@@ -123,7 +119,6 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
123
119
|
}
|
124
120
|
return newDataSource;
|
125
121
|
};
|
126
|
-
|
127
122
|
// 浮层的显隐状态
|
128
123
|
var _useState = (0, _react.useState)(false),
|
129
124
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -156,7 +151,6 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
156
151
|
}
|
157
152
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
158
153
|
};
|
159
|
-
|
160
154
|
/**
|
161
155
|
* 处理 render 配置项是函数的情况
|
162
156
|
* @param render ProFieldRender
|
@@ -166,10 +160,10 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
166
160
|
*/
|
167
161
|
var processRenderFunction = function processRenderFunction(render, value, record) {
|
168
162
|
var external = ['linkOnClick', 'link', 'value'];
|
169
|
-
return Object.fromEntries(Object.entries(render).map(function (
|
170
|
-
var
|
171
|
-
k =
|
172
|
-
v =
|
163
|
+
return Object.fromEntries(Object.entries(render).map(function (_ref3) {
|
164
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
165
|
+
k = _ref4[0],
|
166
|
+
v = _ref4[1];
|
173
167
|
if (typeof v === 'function') {
|
174
168
|
var _v;
|
175
169
|
if (external.includes(k)) {
|
@@ -185,7 +179,6 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
185
179
|
return [k, v];
|
186
180
|
}));
|
187
181
|
};
|
188
|
-
|
189
182
|
/**
|
190
183
|
* 处理 render 数据,取出 {{xxx}} 匹配值
|
191
184
|
* @param render ProFieldRender
|
@@ -196,22 +189,21 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
196
189
|
return Object.fromEntries([
|
197
190
|
// 默认 ellipsis、descriptionEllipsis 为 true
|
198
191
|
// emptyText 默认为 '-'
|
199
|
-
['ellipsis', true], ['descriptionEllipsis', true], ['emptyText', '-']].concat(_toConsumableArray(Object.entries(render).map(function (
|
200
|
-
var
|
201
|
-
k =
|
202
|
-
v =
|
192
|
+
['ellipsis', true], ['descriptionEllipsis', true], ['emptyText', '-']].concat(_toConsumableArray(Object.entries(render).map(function (_ref5) {
|
193
|
+
var _ref6 = _slicedToArray(_ref5, 2),
|
194
|
+
k = _ref6[0],
|
195
|
+
v = _ref6[1];
|
203
196
|
return [k, (0, _utils.getTargetValue)(v, _objectSpread(_objectSpread({}, record), {}, {
|
204
197
|
record: record,
|
205
198
|
value: value
|
206
199
|
}))];
|
207
200
|
}))));
|
208
201
|
};
|
209
|
-
|
210
202
|
// 重写编辑逻辑替代field原有逻辑
|
211
203
|
if (getInfoItemProps(isEdit)) {
|
212
204
|
// 渲染表单
|
213
205
|
var renderContent = function renderContent() {
|
214
|
-
return /*#__PURE__*/_react.default.createElement(_form.default,
|
206
|
+
return /*#__PURE__*/_react.default.createElement(_form.default, _objectSpread({
|
215
207
|
schema: [{
|
216
208
|
name: dataIndex,
|
217
209
|
component: 'Input',
|
@@ -221,11 +213,9 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
221
213
|
form: dataFilterForm
|
222
214
|
}, getInfoItemProps(editProFormProps)));
|
223
215
|
};
|
224
|
-
|
225
216
|
// 表单提交
|
226
217
|
var onConfirm = function onConfirm(e) {
|
227
218
|
var formData = toJS(dataFilterForm.values);
|
228
|
-
|
229
219
|
// 如果传入了 editUrl 则内置请求
|
230
220
|
if (editUrl) {
|
231
221
|
setConfirmLoading(true);
|
@@ -261,7 +251,6 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
261
251
|
setEditVisible(!editVisible);
|
262
252
|
}
|
263
253
|
};
|
264
|
-
|
265
254
|
// 取消
|
266
255
|
var onCancel = function onCancel(e) {
|
267
256
|
var formData = toJS(dataFilterForm.values);
|
@@ -282,12 +271,12 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
282
271
|
onMouseLeave: function onMouseLeave() {
|
283
272
|
setEditVisible(false);
|
284
273
|
}
|
285
|
-
}, /*#__PURE__*/_react.default.createElement(_field.default,
|
274
|
+
}, /*#__PURE__*/_react.default.createElement(_field.default, _objectSpread(_objectSpread({
|
286
275
|
type: type,
|
287
276
|
value: value,
|
288
277
|
render: getRender(),
|
289
278
|
dataSource: getDataSource()
|
290
|
-
}, others, getFieldProps())), /*#__PURE__*/_react.default.createElement(_popConfirm.default, {
|
279
|
+
}, others), getFieldProps())), /*#__PURE__*/_react.default.createElement(_popConfirm.default, {
|
291
280
|
visible: popConfirmVisible,
|
292
281
|
content: renderContent(),
|
293
282
|
triggerType: "click",
|
@@ -300,9 +289,8 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
300
289
|
trigger: /*#__PURE__*/_react.default.createElement(_icon.default, {
|
301
290
|
type: "edit-line",
|
302
291
|
size: "small",
|
303
|
-
className: cls('edit-icon')
|
292
|
+
className: cls('edit-icon'),
|
304
293
|
// 这里使用 opacity 是为了占位
|
305
|
-
,
|
306
294
|
style: {
|
307
295
|
opacity: editVisible || popConfirmVisible ? 1 : 0
|
308
296
|
},
|
@@ -314,12 +302,12 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
314
302
|
}
|
315
303
|
return /*#__PURE__*/_react.default.createElement("div", {
|
316
304
|
className: cls('item-value')
|
317
|
-
}, /*#__PURE__*/_react.default.createElement(_field.default,
|
305
|
+
}, /*#__PURE__*/_react.default.createElement(_field.default, _objectSpread(_objectSpread({
|
318
306
|
type: type,
|
319
307
|
value: value,
|
320
308
|
render: getRender(),
|
321
309
|
dataSource: getDataSource()
|
322
|
-
}, others, getFieldProps())), renderAction(), extra && extra);
|
310
|
+
}, others), getFieldProps())), renderAction(), extra && extra);
|
323
311
|
};
|
324
312
|
var _default = InfoValueItem;
|
325
313
|
exports.default = _default;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { ProInfoBaseProps, ProInfoTransparentBase, ProInfoTransRequestResult } from '../../typing';
|
3
|
+
import './index.scss';
|
4
|
+
declare type ProBaseInfoProps = ProInfoBaseProps & ProInfoTransRequestResult & ProInfoTransparentBase & {
|
5
|
+
size?: any;
|
6
|
+
};
|
7
|
+
declare const ProBaseInfo: React.FC<ProBaseInfoProps>;
|
8
|
+
export default ProBaseInfo;
|
@@ -24,13 +24,13 @@ var ProBaseInfo = function ProBaseInfo(props) {
|
|
24
24
|
actionRef = props.actionRef,
|
25
25
|
layout = props.layout,
|
26
26
|
size = props.size,
|
27
|
-
context = props.context
|
27
|
+
context = props.context,
|
28
|
+
_props$disabledAutoSi = props.disabledAutoSize,
|
29
|
+
disabledAutoSize = _props$disabledAutoSi === void 0 ? false : _props$disabledAutoSi;
|
28
30
|
var defaultLayout = _layout.default[(0, _utils.getLayout)((_size$width = size === null || size === void 0 ? void 0 : size.width) !== null && _size$width !== void 0 ? _size$width : 0)];
|
29
|
-
|
30
31
|
// 获取列内的布局参数
|
31
32
|
var getFormItemLayout = function getFormItemLayout(colspan) {
|
32
33
|
var formItemLayout = JSON.parse(JSON.stringify(defaultLayout.formItemLayout));
|
33
|
-
|
34
34
|
// 自定义布局
|
35
35
|
if (layout) {
|
36
36
|
var _layout$labelCol, _layout$wrapperCol;
|
@@ -41,7 +41,6 @@ var ProBaseInfo = function ProBaseInfo(props) {
|
|
41
41
|
}
|
42
42
|
var newLabelSpan = formItemLayout.labelCol.span;
|
43
43
|
var newWrapperSpan = formItemLayout.wrapperCol.span;
|
44
|
-
|
45
44
|
// 计算合并列情况。label与wrapper需要重新计算
|
46
45
|
if (colspan) {
|
47
46
|
var _layout$span, _layout$span2;
|
@@ -94,7 +93,7 @@ var ProBaseInfo = function ProBaseInfo(props) {
|
|
94
93
|
}));
|
95
94
|
});
|
96
95
|
};
|
97
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (size === null || size === void 0 ? void 0 : size.width) && /*#__PURE__*/_react.default.createElement(Row, {
|
96
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ((size === null || size === void 0 ? void 0 : size.width) || disabledAutoSize) && /*#__PURE__*/_react.default.createElement(Row, {
|
98
97
|
wrap: true,
|
99
98
|
className: "teamix-pro-info-content-row",
|
100
99
|
gutter: 20
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { IProHeaderInfo, ProInfoTransparentBase, ProInfoTransRequestResult } from '../../typing';
|
3
|
+
import './index.scss';
|
4
|
+
declare type ProHeaderInfoProps = IProHeaderInfo & ProInfoTransRequestResult & ProInfoTransparentBase & {
|
5
|
+
size?: any;
|
6
|
+
};
|
7
|
+
declare const ProHeaderInfo: React.FC<ProHeaderInfoProps>;
|
8
|
+
export default ProHeaderInfo;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './index.scss';
|
3
|
+
import { IProTableInfo, ProInfoTransparentBase, ProInfoTransRequestResult } from '../../typing';
|
4
|
+
import './index.scss';
|
5
|
+
declare type ProTableInfoProps = IProTableInfo & ProInfoTransRequestResult & ProInfoTransparentBase;
|
6
|
+
declare const ProTableInfo: React.FC<ProTableInfoProps>;
|
7
|
+
export default ProTableInfo;
|
@@ -34,11 +34,10 @@ var ProTableInfo = function ProTableInfo(props) {
|
|
34
34
|
result = props.result,
|
35
35
|
actionRef = props.actionRef,
|
36
36
|
context = props.context;
|
37
|
-
var
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
labelGutter = _ref$labelGutter === void 0 ? '80px' : _ref$labelGutter;
|
37
|
+
var _layout$colNum = layout.colNum,
|
38
|
+
colNum = _layout$colNum === void 0 ? 2 : _layout$colNum,
|
39
|
+
_layout$labelGutter = layout.labelGutter,
|
40
|
+
labelGutter = _layout$labelGutter === void 0 ? '80px' : _layout$labelGutter;
|
42
41
|
var getNewColumns = function getNewColumns() {
|
43
42
|
// 需要 fill 填充 否则有可能不执行
|
44
43
|
return _toConsumableArray(new Array(colNum)).fill(1).map(function (_, index) {
|
@@ -73,7 +72,6 @@ var ProTableInfo = function ProTableInfo(props) {
|
|
73
72
|
var columnsCopy = (0, _lodash.default)(columns).filter(function (item) {
|
74
73
|
return !(0, _utils.isHidden)(item.hidden, (0, _utils.getDataIndexValue)(item.dataIndex, dataSource !== null && dataSource !== void 0 ? dataSource : result), dataSource !== null && dataSource !== void 0 ? dataSource : result, context);
|
75
74
|
});
|
76
|
-
|
77
75
|
// 取当前行的数据。直到取完
|
78
76
|
while (columnsCopy.length > 0) {
|
79
77
|
var filterColumns = [];
|
package/lib/info/index.js
CHANGED
@@ -16,6 +16,7 @@ var _utils = require("./utils");
|
|
16
16
|
var _utils2 = require("@teamix/utils");
|
17
17
|
var _hooks = require("@teamix/hooks");
|
18
18
|
var _ = require("..");
|
19
|
+
var _aspect = require("../utils/aspect");
|
19
20
|
var _typing = require("./typing");
|
20
21
|
Object.keys(_typing).forEach(function (key) {
|
21
22
|
if (key === "default" || key === "__esModule") return;
|
@@ -28,12 +29,11 @@ Object.keys(_typing).forEach(function (key) {
|
|
28
29
|
}
|
29
30
|
});
|
30
31
|
});
|
31
|
-
var _excluded = ["type", "url", "method", "formatResult", "formatParams", "params", "actionRef", "header", "onSuccess", "onError", "beforeRequest", "extendParams", "className", "style", "columns", "layout", "dataSource", "loading", "extra", "context"],
|
32
|
+
var _excluded = ["type", "url", "method", "formatResult", "formatParams", "params", "actionRef", "header", "onSuccess", "onError", "beforeRequest", "extendParams", "className", "style", "columns", "layout", "dataSource", "loading", "extra", "context", "disabledAutoSize"],
|
32
33
|
_excluded2 = ["context"];
|
33
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
34
35
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
35
36
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
36
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
37
37
|
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; }
|
38
38
|
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; }
|
39
39
|
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; }
|
@@ -70,6 +70,7 @@ var ProInfo = function ProInfo(props) {
|
|
70
70
|
userLoading = props.loading,
|
71
71
|
extra = props.extra,
|
72
72
|
infoContext = props.context,
|
73
|
+
disabledAutoSize = props.disabledAutoSize,
|
73
74
|
others = _objectWithoutProperties(props, _excluded);
|
74
75
|
var _useContext = (0, _react.useContext)(_utils.ProInfoGroupContext),
|
75
76
|
contextUrl = _useContext.url,
|
@@ -85,7 +86,6 @@ var ProInfo = function ProInfo(props) {
|
|
85
86
|
contextExtendParams = _useContext.extendParams,
|
86
87
|
_useContext$context = _useContext.context,
|
87
88
|
contextContext = _useContext$context === void 0 ? {} : _useContext$context;
|
88
|
-
|
89
89
|
// 获取容器宽度
|
90
90
|
var ref = (0, _react.useRef)();
|
91
91
|
var size = contextVisible ? contextSize : (0, _hooks.useSize)(ref);
|
@@ -122,7 +122,6 @@ var ProInfo = function ProInfo(props) {
|
|
122
122
|
record: dataSource !== null && dataSource !== void 0 ? dataSource : data
|
123
123
|
}, contextContext);
|
124
124
|
}, [dataSource, data]);
|
125
|
-
|
126
125
|
// 获取数据
|
127
126
|
var request = function request() {
|
128
127
|
setLoading(true);
|
@@ -133,12 +132,10 @@ var ProInfo = function ProInfo(props) {
|
|
133
132
|
});
|
134
133
|
};
|
135
134
|
var actionRef = (0, _react.useRef)();
|
136
|
-
|
137
135
|
// 将 Actions 绑定到传入的 propsActionRef 中
|
138
136
|
if (propsActionRef) {
|
139
137
|
propsActionRef.current = actionRef.current;
|
140
138
|
}
|
141
|
-
|
142
139
|
// 绑定 Actions
|
143
140
|
(0, _utils.useActionType)(actionRef, {
|
144
141
|
refresh: function refresh() {
|
@@ -152,10 +149,9 @@ var ProInfo = function ProInfo(props) {
|
|
152
149
|
if ( /*#__PURE__*/(0, _react.isValidElement)(extra)) {
|
153
150
|
return extra;
|
154
151
|
}
|
155
|
-
var
|
156
|
-
|
157
|
-
|
158
|
-
others = _objectWithoutProperties(_ref2, _excluded2);
|
152
|
+
var _extra$context = extra.context,
|
153
|
+
actionContext = _extra$context === void 0 ? {} : _extra$context,
|
154
|
+
others = _objectWithoutProperties(extra, _excluded2);
|
159
155
|
return _objectSpread(_objectSpread({}, others), {}, {
|
160
156
|
context: _objectSpread(_objectSpread({}, context), actionContext)
|
161
157
|
});
|
@@ -163,16 +159,13 @@ var ProInfo = function ProInfo(props) {
|
|
163
159
|
return /*#__PURE__*/_react.default.createElement("div", {
|
164
160
|
ref: ref,
|
165
161
|
style: style,
|
166
|
-
className: (0, _utils2.cls)('teamix-pro-info', className
|
167
|
-
|
168
|
-
"data-teamix-test-params": (0, _utils2.getTestRequestParams)(params),
|
169
|
-
"data-teamix-test-data": (0, _utils2.getTestRequestData)(columns)
|
170
|
-
}, /*#__PURE__*/_react.default.createElement(_.ProCard, _extends({
|
162
|
+
className: (0, _utils2.cls)('teamix-pro-info', className)
|
163
|
+
}, /*#__PURE__*/_react.default.createElement(_.ProCard, _objectSpread(_objectSpread(_objectSpread({
|
171
164
|
compacted: true,
|
172
165
|
hoveredShadow: false,
|
173
166
|
bordered: false,
|
174
167
|
backgroundColor: "transparent"
|
175
|
-
}, header, others, {
|
168
|
+
}, header), others), {}, {
|
176
169
|
extra: getExtra()
|
177
170
|
}), type === 'table' && /*#__PURE__*/_react.default.createElement(_tableInfo.default, {
|
178
171
|
dataSource: dataSource,
|
@@ -181,7 +174,8 @@ var ProInfo = function ProInfo(props) {
|
|
181
174
|
result: data,
|
182
175
|
actionRef: actionRef,
|
183
176
|
layout: layout,
|
184
|
-
context: context
|
177
|
+
context: context,
|
178
|
+
disabledAutoSize: disabledAutoSize
|
185
179
|
}), type === 'header' && /*#__PURE__*/_react.default.createElement(_headerInfo.default, {
|
186
180
|
dataSource: dataSource,
|
187
181
|
columns: columns,
|
@@ -191,7 +185,8 @@ var ProInfo = function ProInfo(props) {
|
|
191
185
|
actionRef: actionRef,
|
192
186
|
layout: layout,
|
193
187
|
size: size,
|
194
|
-
context: context
|
188
|
+
context: context,
|
189
|
+
disabledAutoSize: disabledAutoSize
|
195
190
|
}), type === 'base' && /*#__PURE__*/_react.default.createElement(_baseInfo.default, {
|
196
191
|
dataSource: dataSource,
|
197
192
|
columns: columns,
|
@@ -200,10 +195,11 @@ var ProInfo = function ProInfo(props) {
|
|
200
195
|
actionRef: actionRef,
|
201
196
|
layout: layout,
|
202
197
|
size: size,
|
203
|
-
context: context
|
198
|
+
context: context,
|
199
|
+
disabledAutoSize: disabledAutoSize
|
204
200
|
})));
|
205
201
|
};
|
206
202
|
ProInfo.Group = _InfoGroup.default;
|
207
203
|
ProInfo.ProInfoGroup = _InfoGroup.default;
|
208
|
-
var _default = ProInfo;
|
204
|
+
var _default = (0, _aspect.ProComponentAspect)(ProInfo, 'ProInfo');
|
209
205
|
exports.default = _default;
|