@teamix/pro 1.5.0 → 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 +75238 -61040
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- 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 +14 -8
- 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/ProForm/index.js +4 -2
- 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 +1 -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 +5 -9
- package/es/sidebar/components/tree/index.js +2 -6
- 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 +21 -18
- 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 +2 -3
- package/es/table/components/ToolBar/RefreshIcon.js +2 -1
- package/es/table/components/ToolBar/index.js +1 -5
- package/es/table/index.js +34 -27
- 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 +14 -7
- 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/ProForm/index.js +4 -2
- package/lib/form/typing.js +1 -5
- package/lib/form/utils.js +7 -0
- package/lib/index.js +1 -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 +5 -9
- package/lib/sidebar/components/tree/index.js +2 -6
- 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 +21 -18
- 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 +2 -3
- package/lib/table/components/ToolBar/RefreshIcon.js +2 -1
- package/lib/table/components/ToolBar/index.js +1 -5
- package/lib/table/index.js +35 -28
- 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/addCascadeEffect.d.ts +0 -2
- 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 -192
- 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 -141
- 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 -302
- 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/addCascadeEffect.d.ts +0 -2
- 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 -192
- 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 -141
- 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 -302
- 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
@@ -1,5 +1,7 @@
|
|
1
1
|
var _excluded = ["schema", "onSubmit", "onReset", "layout", "labelAlign", "wrapperAlign", "labelCol", "wrapperCol", "breakpoints", "gridProps", "forceClear"];
|
2
2
|
|
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); }
|
4
|
+
|
3
5
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
4
6
|
|
5
7
|
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."); }
|
@@ -26,23 +28,24 @@ import React, { memo, useEffect, useMemo } from 'react';
|
|
26
28
|
import { usePrefixCls, getMessage, cls, isBool } from '@teamix/utils';
|
27
29
|
import ProForm from '../ProForm';
|
28
30
|
import { mergeArrayValue } from '../utils';
|
31
|
+
|
29
32
|
/**
|
30
33
|
* 高级筛选
|
31
34
|
*/
|
32
|
-
|
33
35
|
var AdvancedFilter = /*#__PURE__*/memo(function (props) {
|
34
|
-
var
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
36
|
+
var _ref = props,
|
37
|
+
schema = _ref.schema,
|
38
|
+
onSubmit = _ref.onSubmit,
|
39
|
+
onReset = _ref.onReset,
|
40
|
+
layout = _ref.layout,
|
41
|
+
labelAlign = _ref.labelAlign,
|
42
|
+
wrapperAlign = _ref.wrapperAlign,
|
43
|
+
labelCol = _ref.labelCol,
|
44
|
+
wrapperCol = _ref.wrapperCol,
|
45
|
+
breakpoints = _ref.breakpoints,
|
46
|
+
gridProps = _ref.gridProps,
|
47
|
+
forceClear = _ref.forceClear,
|
48
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
46
49
|
|
47
50
|
var prefixCls = usePrefixCls('teamix-pro-form-query-filter-advanced');
|
48
51
|
var gridSchema = useMemo(function () {
|
@@ -109,11 +112,11 @@ var AdvancedFilter = /*#__PURE__*/memo(function (props) {
|
|
109
112
|
wrapperCol: wrapperCol
|
110
113
|
};
|
111
114
|
}, [breakpoints, layout, labelAlign, wrapperAlign, labelCol, wrapperCol]);
|
112
|
-
return /*#__PURE__*/React.createElement(ProForm,
|
115
|
+
return /*#__PURE__*/React.createElement(ProForm, _extends({
|
113
116
|
className: cls(prefixCls(), props.className),
|
114
117
|
schema: gridSchema,
|
115
118
|
feedbackLayout: "popover"
|
116
|
-
}, otherProps
|
119
|
+
}, otherProps, getTeamixLayout, {
|
117
120
|
onSubmit: onSubmit
|
118
121
|
}));
|
119
122
|
});
|
@@ -1,5 +1,7 @@
|
|
1
1
|
var _excluded = ["form", "schema", "onSubmit", "onChange", "defaultFilterValue", "filterValues", "activeFilterValueRef"];
|
2
2
|
|
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); }
|
4
|
+
|
3
5
|
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
6
|
|
5
7
|
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; }
|
@@ -14,21 +16,22 @@ import React, { memo, useMemo, useCallback, useRef, useEffect } from 'react';
|
|
14
16
|
import { observable } from '@formily/reactive';
|
15
17
|
import { usePrefixCls, cls } from '@teamix/utils';
|
16
18
|
import ProForm from '../ProForm';
|
19
|
+
|
17
20
|
/**
|
18
21
|
* 轻量筛选
|
19
22
|
*/
|
20
|
-
|
21
23
|
var LightFilter = /*#__PURE__*/memo(function (props) {
|
22
24
|
var _schema$;
|
23
25
|
|
24
|
-
var
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
26
|
+
var _ref = props,
|
27
|
+
form = _ref.form,
|
28
|
+
schema = _ref.schema,
|
29
|
+
onSubmit = _ref.onSubmit,
|
30
|
+
onChange = _ref.onChange,
|
31
|
+
defaultFilterValue = _ref.defaultFilterValue,
|
32
|
+
filterValues = _ref.filterValues,
|
33
|
+
activeFilterValueRef = _ref.activeFilterValueRef,
|
34
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
32
35
|
|
33
36
|
var filterValue = useRef(defaultFilterValue || (schema === null || schema === void 0 ? void 0 : (_schema$ = schema[0]) === null || _schema$ === void 0 ? void 0 : _schema$.name));
|
34
37
|
var prefixCls = usePrefixCls('teamix-pro-form-query-filter-light');
|
@@ -88,7 +91,7 @@ var LightFilter = /*#__PURE__*/memo(function (props) {
|
|
88
91
|
useEffect(function () {
|
89
92
|
lightFilterObs.onFilter = onFilter;
|
90
93
|
}, [onFilter]);
|
91
|
-
return /*#__PURE__*/React.createElement(ProForm,
|
94
|
+
return /*#__PURE__*/React.createElement(ProForm, _extends({}, otherProps, {
|
92
95
|
scope: _objectSpread(_objectSpread({}, otherProps === null || otherProps === void 0 ? void 0 : otherProps.scope), {}, {
|
93
96
|
lightFilterObs: lightFilterObs
|
94
97
|
}),
|
@@ -1,5 +1,7 @@
|
|
1
1
|
var _excluded = ["schema", "onChange", "onSubmit"];
|
2
2
|
|
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); }
|
4
|
+
|
3
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; }
|
4
6
|
|
5
7
|
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; }
|
@@ -12,8 +14,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
12
14
|
|
13
15
|
import React, { memo, useCallback, useEffect, useMemo, useRef } from 'react';
|
14
16
|
import { usePrefixCls, cls, isValid } from '@teamix/utils';
|
15
|
-
import ProForm from '../ProForm';
|
17
|
+
import ProForm from '../ProForm';
|
16
18
|
|
19
|
+
// 初始化Search组件,内置部分属性
|
17
20
|
var initializeSearch = function initializeSearch(schema) {
|
18
21
|
var searchName = '';
|
19
22
|
var initializedSchema = schema.map(function (item) {
|
@@ -44,10 +47,11 @@ var initializeSearch = function initializeSearch(schema) {
|
|
44
47
|
var SimpleFilter = /*#__PURE__*/memo(function (props) {
|
45
48
|
var searchValue = useRef(undefined);
|
46
49
|
|
47
|
-
var
|
48
|
-
|
49
|
-
|
50
|
-
|
50
|
+
var _ref = props,
|
51
|
+
schema = _ref.schema,
|
52
|
+
onChange = _ref.onChange,
|
53
|
+
onSubmit = _ref.onSubmit,
|
54
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
51
55
|
|
52
56
|
var prefixCls = usePrefixCls('teamix-pro-form-query-filter-simple');
|
53
57
|
|
@@ -89,7 +93,7 @@ var SimpleFilter = /*#__PURE__*/memo(function (props) {
|
|
89
93
|
var searchDefaultValue = (_props$form$initialVa = props.form.initialValues) === null || _props$form$initialVa === void 0 ? void 0 : (_props$form$initialVa2 = _props$form$initialVa[searchName]) === null || _props$form$initialVa2 === void 0 ? void 0 : _props$form$initialVa2[1];
|
90
94
|
searchValue.current = isValid(searchDefaultValue) ? searchDefaultValue : '';
|
91
95
|
}, []);
|
92
|
-
return /*#__PURE__*/React.createElement(ProForm,
|
96
|
+
return /*#__PURE__*/React.createElement(ProForm, _extends({}, otherProps, {
|
93
97
|
className: cls(prefixCls(), props.className),
|
94
98
|
schema: simpleSchema,
|
95
99
|
feedbackLayout: "popover",
|
package/es/form/Filter/index.js
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
var _excluded = ["addonAfter", "addonBefore", "mode", "purePanel", "expand", "formRef", "defaultFilterValue", "filterValues", "filterDebounce", "bindUrl", "onFilter", "onInit", "onReset", "onExpand", "onChange", "form"];
|
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
10
6
|
|
@@ -50,10 +46,10 @@ import { QueryFilterLayout } from './Layout';
|
|
50
46
|
import useSpecialProps from './useSpecialProps';
|
51
47
|
import useBindUrl from './useBindUrl';
|
52
48
|
import './index.scss';
|
49
|
+
|
53
50
|
/**
|
54
51
|
* 查询筛选
|
55
52
|
*/
|
56
|
-
|
57
53
|
var QueryFilter = /*#__PURE__*/memo(function (props) {
|
58
54
|
var addonAfter = props.addonAfter,
|
59
55
|
addonBefore = props.addonBefore,
|
@@ -514,8 +510,9 @@ var QueryFilter = /*#__PURE__*/memo(function (props) {
|
|
514
510
|
inlineContent: mode === 'panel' ? /*#__PURE__*/React.createElement("div", {
|
515
511
|
className: cls(prefixCls('inline', {
|
516
512
|
'inline-hidden': purePanel || hasRequired
|
517
|
-
})
|
518
|
-
|
513
|
+
}) // hasRequired 为辅助检测
|
514
|
+
)
|
515
|
+
}, /*#__PURE__*/React.createElement(LightFilter, _extends({}, otherProps, {
|
519
516
|
defaultFilterValue: defaultFilterValue,
|
520
517
|
filterValues: filterValues,
|
521
518
|
activeFilterValueRef: activeFilterValueRef,
|
@@ -523,13 +520,13 @@ var QueryFilter = /*#__PURE__*/memo(function (props) {
|
|
523
520
|
onChange: onLightChange
|
524
521
|
}))) : /*#__PURE__*/React.createElement("div", {
|
525
522
|
className: prefixCls('inline')
|
526
|
-
}, /*#__PURE__*/React.createElement(SimpleFilter,
|
523
|
+
}, /*#__PURE__*/React.createElement(SimpleFilter, _extends({}, otherProps, {
|
527
524
|
form: simpleForm,
|
528
525
|
onChange: onSimpleChange,
|
529
526
|
onSubmit: onSimpleFilter,
|
530
527
|
onInitialComplete: onInitialComplete
|
531
528
|
}))),
|
532
|
-
panelContent: mode === 'panel' ? /*#__PURE__*/React.createElement(AdvancedFilter,
|
529
|
+
panelContent: mode === 'panel' ? /*#__PURE__*/React.createElement(AdvancedFilter, _extends({}, otherProps, {
|
533
530
|
form: advancedForm,
|
534
531
|
onChange: onAdvancedChange,
|
535
532
|
onSubmit: onAdvancedFilter,
|
package/es/form/Filter/index2.js
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
var _excluded = ["schema", "triggerType", "onFilter"];
|
2
2
|
|
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); }
|
4
|
+
|
3
5
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
4
6
|
|
5
7
|
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."); }
|
@@ -49,10 +51,11 @@ var getEventProps = function getEventProps(triggerType, onFilter) {
|
|
49
51
|
|
50
52
|
|
51
53
|
var SimpleFilter = /*#__PURE__*/memo(function (props) {
|
52
|
-
var
|
53
|
-
|
54
|
-
|
55
|
-
|
54
|
+
var _ref = props,
|
55
|
+
schema = _ref.schema,
|
56
|
+
triggerType = _ref.triggerType,
|
57
|
+
onFilter = _ref.onFilter,
|
58
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
56
59
|
|
57
60
|
var prefixCls = usePrefixCls('teamix-pro-form-filter-simple');
|
58
61
|
var simpleSchema = useMemo(function () {
|
@@ -74,11 +77,11 @@ var SimpleFilter = /*#__PURE__*/memo(function (props) {
|
|
74
77
|
}];
|
75
78
|
}, [schema, triggerType]);
|
76
79
|
var eventProps = getEventProps(triggerType, onFilter);
|
77
|
-
return /*#__PURE__*/React.createElement(ProForm,
|
80
|
+
return /*#__PURE__*/React.createElement(ProForm, _extends({
|
78
81
|
feedbackLayout: "popover",
|
79
82
|
breakpoints: [],
|
80
83
|
inset: true
|
81
|
-
}, otherProps
|
84
|
+
}, otherProps, eventProps, {
|
82
85
|
className: cls(prefixCls(), props.className),
|
83
86
|
schema: simpleSchema
|
84
87
|
}));
|
@@ -94,15 +97,16 @@ var AdvancedFilter = /*#__PURE__*/memo(function (props) {
|
|
94
97
|
var form = useMemo(function () {
|
95
98
|
return (props === null || props === void 0 ? void 0 : props.form) || createForm();
|
96
99
|
}, []);
|
97
|
-
var
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
100
|
+
var _ref2 = props,
|
101
|
+
schema = _ref2.schema,
|
102
|
+
triggerType = _ref2.triggerType,
|
103
|
+
onFilter = _ref2.onFilter,
|
104
|
+
onReset = _ref2.onReset,
|
105
|
+
layout = _ref2.layout,
|
106
|
+
labelAlign = _ref2.labelAlign,
|
107
|
+
wrapperAlign = _ref2.wrapperAlign,
|
108
|
+
labelCol = _ref2.labelCol,
|
109
|
+
wrapperCol = _ref2.wrapperCol;
|
106
110
|
var prefixCls = usePrefixCls('teamix-pro-form-filter-advanced');
|
107
111
|
var gridSchema = useMemo(function () {
|
108
112
|
return [{
|
@@ -159,9 +163,9 @@ var AdvancedFilter = /*#__PURE__*/memo(function (props) {
|
|
159
163
|
};
|
160
164
|
}, [layout, labelAlign, wrapperAlign, labelCol, wrapperCol]);
|
161
165
|
var eventProps = getEventProps(triggerType, onFilter);
|
162
|
-
return /*#__PURE__*/React.createElement(ProForm,
|
166
|
+
return /*#__PURE__*/React.createElement(ProForm, _extends({
|
163
167
|
feedbackLayout: "popover"
|
164
|
-
}, props
|
168
|
+
}, props, eventProps, getTeamixLayout, {
|
165
169
|
form: form,
|
166
170
|
className: cls(prefixCls(), props.className),
|
167
171
|
schema: gridSchema,
|
package/es/form/ProForm/index.js
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
var _excluded = ["form", "initialValues", "initialRequest", "scope", "context", "components", "onChange", "onChangeType", "onSubmit", "onSubmitFailed", "onInitialComplete", "className", "validateFirst", "schema", "children"];
|
2
2
|
|
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); }
|
4
|
+
|
3
5
|
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
6
|
|
5
7
|
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; }
|
@@ -138,9 +140,9 @@ var ProForm = /*#__PURE__*/memo(function (_ref) {
|
|
138
140
|
// 配置国际化
|
139
141
|
setValidateLanguage(getLanguage() || 'zh-cn');
|
140
142
|
}, []);
|
141
|
-
return /*#__PURE__*/React.createElement(Form,
|
143
|
+
return /*#__PURE__*/React.createElement(Form, _extends({
|
142
144
|
className: cls(prefixCls(), className)
|
143
|
-
}, otherProps
|
145
|
+
}, otherProps, autoTeamixLayout, {
|
144
146
|
form: form,
|
145
147
|
onAutoSubmit: onAutoSubmit,
|
146
148
|
onAutoSubmitFailed: onSubmitFailed
|
@@ -14,6 +14,7 @@ import { useForm } from '@formily/react';
|
|
14
14
|
import { toJS } from '@formily/reactive';
|
15
15
|
import { isArr, isPlainObj, isUsable, getValueByValue } from '@teamix/utils';
|
16
16
|
import fieldTypeMap from '../fieldTypeMap';
|
17
|
+
|
17
18
|
/**
|
18
19
|
* 获取表单值的可显示值
|
19
20
|
* @returns 如果某字段有dataSource,则返回value对应label
|
@@ -25,7 +26,6 @@ import fieldTypeMap from '../fieldTypeMap';
|
|
25
26
|
};
|
26
27
|
console.log(getDisplayValues(example));
|
27
28
|
*/
|
28
|
-
|
29
29
|
var getDisplayValues = function getDisplayValues(form, values) {
|
30
30
|
var prefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
31
31
|
var displayValues; // 拼接路径
|
@@ -10,8 +10,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
10
10
|
|
11
11
|
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; }
|
12
12
|
|
13
|
-
import { isFn, isPlainObj, doCommonRequest, getValueByValue } from '@teamix/utils';
|
13
|
+
import { isFn, isPlainObj, doCommonRequest, getValueByValue } from '@teamix/utils';
|
14
14
|
|
15
|
+
// 配置请求
|
15
16
|
var $request = function $request(field, context, _ref, type) {
|
16
17
|
var _field$data;
|
17
18
|
|
package/es/form/utils.js
CHANGED
@@ -28,13 +28,13 @@ import { isVoidField } from '@formily/core';
|
|
28
28
|
import { useFormLayout, useFormShallowLayout } from '@teamix/formily';
|
29
29
|
import { isArr, isObj, getValueByValue, isPlainObj } from '@teamix/utils';
|
30
30
|
import schemaNameMap from './schemaNameMap';
|
31
|
+
|
31
32
|
/**
|
32
33
|
* 映射字段size,主要是default转medium
|
33
34
|
* @param props component的props
|
34
35
|
* @param field 当前字段实例
|
35
36
|
* @returns 映射后的字段属性
|
36
37
|
*/
|
37
|
-
|
38
38
|
var mapSize = function mapSize(props, field) {
|
39
39
|
var layout = _objectSpread(_objectSpread({}, useFormShallowLayout()), useFormLayout());
|
40
40
|
|
@@ -121,6 +121,13 @@ var mapMode = function mapMode(props, field) {
|
|
121
121
|
mode: (field === null || field === void 0 ? void 0 : field.readPretty) ? 'read' : 'edit'
|
122
122
|
});
|
123
123
|
};
|
124
|
+
/**
|
125
|
+
* 创建字段名称
|
126
|
+
* @param prefix 字段名称前缀,接收字段component名称,默认为FieldName
|
127
|
+
* @param suffix 字段后缀,唯一标识
|
128
|
+
* @returns 字段唯一名称
|
129
|
+
*/
|
130
|
+
|
124
131
|
|
125
132
|
var getFieldName = function getFieldName() {
|
126
133
|
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'FieldName';
|
package/es/index.js
CHANGED
@@ -37,6 +37,6 @@ export * from './table';
|
|
37
37
|
export * from './sidebar';
|
38
38
|
export * from './utils';
|
39
39
|
export * from './timeline';
|
40
|
-
var version = '1.5.0';
|
40
|
+
var version = '1.5.1-aplha.0';
|
41
41
|
export { version, ProAction, ProCard, ProField, ProForm, ProInfo, // ProLayout,
|
42
42
|
ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, hooks, nocode, templates, utils };
|
@@ -1,10 +1,6 @@
|
|
1
1
|
var _excluded = ["children", "url", "method", "params", "formatResult", "onSuccess", "onError", "formatParams", "beforeRequest", "extendParams", "className", "compacted", "divider", "style", "backgroundColor", "context"];
|
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
|
|
@@ -86,7 +82,7 @@ var ProInfoGroup = function ProInfoGroup(props) {
|
|
86
82
|
return /*#__PURE__*/React.createElement("div", {
|
87
83
|
className: proInfoClassName,
|
88
84
|
key: index
|
89
|
-
}, /*#__PURE__*/React.createElement(ProInfo,
|
85
|
+
}, /*#__PURE__*/React.createElement(ProInfo, _extends({
|
90
86
|
compacted: compacted
|
91
87
|
}, item)));
|
92
88
|
})), infoType === 'infoDom' && /*#__PURE__*/React.createElement("div", {
|
@@ -1,5 +1,7 @@
|
|
1
1
|
var _excluded = ["type", "value", "render", "infoItem", "record", "actionRef", "dataSource", "context", "props"];
|
2
2
|
|
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); }
|
4
|
+
|
3
5
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
4
6
|
|
5
7
|
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."); }
|
@@ -81,7 +83,7 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
81
83
|
|
82
84
|
|
83
85
|
var getRender = function getRender() {
|
84
|
-
var
|
86
|
+
var _ref, _ref2;
|
85
87
|
|
86
88
|
if (typeof render === 'function') {
|
87
89
|
return function () {
|
@@ -89,7 +91,7 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
89
91
|
};
|
90
92
|
}
|
91
93
|
|
92
|
-
var newRender = processBuriedPoint((
|
94
|
+
var newRender = processBuriedPoint((_ref = processRenderFunction((_ref2 = render) !== null && _ref2 !== void 0 ? _ref2 : {}, value, record)) !== null && _ref !== void 0 ? _ref : {}, value, record);
|
93
95
|
|
94
96
|
if (valueType === 'selectGroup') {
|
95
97
|
newRender = _objectSpread(_objectSpread({
|
@@ -125,10 +127,10 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
125
127
|
newDataSource = dataSource === null || dataSource === void 0 ? void 0 : dataSource(value, record);
|
126
128
|
} else {
|
127
129
|
newDataSource = (dataSource !== null && dataSource !== void 0 ? dataSource : []).map(function (item) {
|
128
|
-
return Object.fromEntries(Object.entries(item).map(function (
|
129
|
-
var
|
130
|
-
k =
|
131
|
-
v =
|
130
|
+
return Object.fromEntries(Object.entries(item).map(function (_ref3) {
|
131
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
132
|
+
k = _ref4[0],
|
133
|
+
v = _ref4[1];
|
132
134
|
|
133
135
|
return [k, getTargetValue(v, _objectSpread(_objectSpread({}, record), {}, {
|
134
136
|
value: value
|
@@ -188,10 +190,10 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
188
190
|
|
189
191
|
var processRenderFunction = function processRenderFunction(render, value, record) {
|
190
192
|
var external = ['linkOnClick', 'link', 'value'];
|
191
|
-
return Object.fromEntries(Object.entries(render).map(function (
|
192
|
-
var
|
193
|
-
k =
|
194
|
-
v =
|
193
|
+
return Object.fromEntries(Object.entries(render).map(function (_ref5) {
|
194
|
+
var _ref6 = _slicedToArray(_ref5, 2),
|
195
|
+
k = _ref6[0],
|
196
|
+
v = _ref6[1];
|
195
197
|
|
196
198
|
if (typeof v === 'function') {
|
197
199
|
var _v;
|
@@ -223,10 +225,10 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
223
225
|
var processBuriedPoint = function processBuriedPoint(render, value, record) {
|
224
226
|
return Object.fromEntries([// 默认 ellipsis、descriptionEllipsis 为 true
|
225
227
|
// emptyText 默认为 '-'
|
226
|
-
['ellipsis', true], ['descriptionEllipsis', true], ['emptyText', '-']].concat(_toConsumableArray(Object.entries(render).map(function (
|
227
|
-
var
|
228
|
-
k =
|
229
|
-
v =
|
228
|
+
['ellipsis', true], ['descriptionEllipsis', true], ['emptyText', '-']].concat(_toConsumableArray(Object.entries(render).map(function (_ref7) {
|
229
|
+
var _ref8 = _slicedToArray(_ref7, 2),
|
230
|
+
k = _ref8[0],
|
231
|
+
v = _ref8[1];
|
230
232
|
|
231
233
|
return [k, getTargetValue(v, _objectSpread(_objectSpread({}, record), {}, {
|
232
234
|
record: record,
|
@@ -239,7 +241,7 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
239
241
|
if (getInfoItemProps(isEdit)) {
|
240
242
|
// 渲染表单
|
241
243
|
var renderContent = function renderContent() {
|
242
|
-
return /*#__PURE__*/React.createElement(ProForm,
|
244
|
+
return /*#__PURE__*/React.createElement(ProForm, _extends({
|
243
245
|
schema: [{
|
244
246
|
name: dataIndex,
|
245
247
|
component: 'Input',
|
@@ -312,12 +314,12 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
312
314
|
onMouseLeave: function onMouseLeave() {
|
313
315
|
setEditVisible(false);
|
314
316
|
}
|
315
|
-
}, /*#__PURE__*/React.createElement(ProField,
|
317
|
+
}, /*#__PURE__*/React.createElement(ProField, _extends({
|
316
318
|
type: type,
|
317
319
|
value: value,
|
318
320
|
render: getRender(),
|
319
321
|
dataSource: getDataSource()
|
320
|
-
}, others
|
322
|
+
}, others, getFieldProps())), /*#__PURE__*/React.createElement(PopConfirm, {
|
321
323
|
visible: popConfirmVisible,
|
322
324
|
content: renderContent(),
|
323
325
|
triggerType: "click",
|
@@ -330,8 +332,8 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
330
332
|
trigger: /*#__PURE__*/React.createElement(TeamixIcon, {
|
331
333
|
type: "edit-line",
|
332
334
|
size: "small",
|
333
|
-
className: cls('edit-icon')
|
334
|
-
|
335
|
+
className: cls('edit-icon') // 这里使用 opacity 是为了占位
|
336
|
+
,
|
335
337
|
style: {
|
336
338
|
opacity: editVisible || popConfirmVisible ? 1 : 0
|
337
339
|
},
|
@@ -344,12 +346,12 @@ var InfoValueItem = function InfoValueItem(props) {
|
|
344
346
|
|
345
347
|
return /*#__PURE__*/React.createElement("div", {
|
346
348
|
className: cls('item-value')
|
347
|
-
}, /*#__PURE__*/React.createElement(ProField,
|
349
|
+
}, /*#__PURE__*/React.createElement(ProField, _extends({
|
348
350
|
type: type,
|
349
351
|
value: value,
|
350
352
|
render: getRender(),
|
351
353
|
dataSource: getDataSource()
|
352
|
-
}, others
|
354
|
+
}, others, getFieldProps())), renderAction(), extra && extra);
|
353
355
|
};
|
354
356
|
|
355
357
|
export default InfoValueItem;
|
@@ -35,10 +35,11 @@ var ProTableInfo = function ProTableInfo(props) {
|
|
35
35
|
result = props.result,
|
36
36
|
actionRef = props.actionRef,
|
37
37
|
context = props.context;
|
38
|
-
var
|
39
|
-
colNum =
|
40
|
-
|
41
|
-
labelGutter =
|
38
|
+
var _ref = layout,
|
39
|
+
_ref$colNum = _ref.colNum,
|
40
|
+
colNum = _ref$colNum === void 0 ? 2 : _ref$colNum,
|
41
|
+
_ref$labelGutter = _ref.labelGutter,
|
42
|
+
labelGutter = _ref$labelGutter === void 0 ? '80px' : _ref$labelGutter;
|
42
43
|
|
43
44
|
var getNewColumns = function getNewColumns() {
|
44
45
|
// 需要 fill 填充 否则有可能不执行
|
package/es/info/index.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
var _excluded = ["type", "url", "method", "formatResult", "formatParams", "params", "actionRef", "header", "onSuccess", "onError", "beforeRequest", "extendParams", "className", "style", "columns", "layout", "dataSource", "loading", "extra", "context"],
|
2
2
|
_excluded2 = ["context"];
|
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 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; }
|
5
7
|
|
6
8
|
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; }
|
@@ -151,9 +153,10 @@ var ProInfo = function ProInfo(props) {
|
|
151
153
|
return extra;
|
152
154
|
}
|
153
155
|
|
154
|
-
var
|
155
|
-
|
156
|
-
|
156
|
+
var _ref2 = extra,
|
157
|
+
_ref2$context = _ref2.context,
|
158
|
+
actionContext = _ref2$context === void 0 ? {} : _ref2$context,
|
159
|
+
others = _objectWithoutProperties(_ref2, _excluded2);
|
157
160
|
|
158
161
|
return _objectSpread(_objectSpread({}, others), {}, {
|
159
162
|
context: _objectSpread(_objectSpread({}, context), actionContext)
|
@@ -167,12 +170,12 @@ var ProInfo = function ProInfo(props) {
|
|
167
170
|
"data-teamix-test-request": "url=".concat(url, "&formatResult=").concat(!!formatResult),
|
168
171
|
"data-teamix-test-params": getTestRequestParams(params),
|
169
172
|
"data-teamix-test-data": getTestRequestData(columns)
|
170
|
-
}, /*#__PURE__*/React.createElement(ProCard,
|
173
|
+
}, /*#__PURE__*/React.createElement(ProCard, _extends({
|
171
174
|
compacted: true,
|
172
175
|
hoveredShadow: false,
|
173
176
|
bordered: false,
|
174
177
|
backgroundColor: "transparent"
|
175
|
-
}, header
|
178
|
+
}, header, others, {
|
176
179
|
extra: getExtra()
|
177
180
|
}), type === 'table' && /*#__PURE__*/React.createElement(ProTableInfo, {
|
178
181
|
dataSource: dataSource,
|
package/es/nocode/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import './index.scss';
|
2
2
|
import PageContainer from '../page-container';
|
3
|
-
export { PageContainer };
|
4
|
-
|
3
|
+
export { PageContainer };
|
4
|
+
// 配置器,每个 pro 组件对应一个配置器
|
5
5
|
export * from './configurators';
|
6
6
|
export * from './configurators/map'; // 页面编辑器
|
7
7
|
// 页面渲染器
|
package/es/nocode/pages/index.js
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
import { FormPage, DetailPage, ListPage } from '../../templates';
|
2
2
|
export * from './editor';
|
3
3
|
export * from './playground';
|
4
|
-
export * from './renderer'; //
|
4
|
+
export * from './renderer'; // 页面类型
|
5
5
|
|
6
|
+
// 全部页面模板
|
6
7
|
export var PageMap = {
|
7
8
|
LIST: ListPage,
|
8
9
|
DETAIL: DetailPage,
|
9
10
|
FORM: FormPage
|
10
|
-
};
|
11
|
-
|
11
|
+
};
|
12
|
+
// 全部页面模板默认初始值
|
12
13
|
export var PageDefaultInitialValues = {
|
13
14
|
LIST: {
|
14
15
|
header: {
|