@teamix/pro 1.6.0-beta.5 → 2.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -2
- package/es/index-without-icon.d.ts +13 -13
- package/es/index-without-icon.js +31 -31
- package/es/index.d.ts +21 -32
- package/es/index.js +40 -36
- package/es/nocode/configurators/PageHeader.js +1 -1
- package/es/nocode/configurators/ProTable.js +1 -1
- package/es/nocode/configurators/index.js +1 -1
- package/es/nocode/configurators/map.js +3 -3
- package/es/nocode/index.js +8 -6
- package/es/nocode/pages/editor.js +1 -1
- package/es/nocode/pages/index.js +7 -4
- package/es/nocode/pages/playground.js +9 -11
- package/es/nocode/pages/renderer.d.ts +1 -1
- package/es/nocode/pages/renderer.js +12 -12
- package/es/nocode/playground.js +5 -7
- package/es/templates/Detail/index.d.ts +1 -0
- package/es/templates/Detail/index.js +1 -1
- package/es/templates/Form/index.d.ts +1 -0
- package/es/templates/Form/index.js +1 -1
- package/es/templates/List/index.d.ts +6 -3
- package/es/templates/List/index.js +7 -9
- package/es/templates/index.js +3 -3
- package/lib/index-without-icon.d.ts +13 -13
- package/lib/index-without-icon.js +57 -57
- package/lib/index.d.ts +21 -32
- package/lib/index.js +57 -170
- package/lib/nocode/pages/index.js +1 -1
- package/lib/nocode/pages/playground.js +5 -7
- package/lib/nocode/pages/renderer.d.ts +1 -1
- package/lib/nocode/pages/renderer.js +12 -12
- package/lib/nocode/playground.js +4 -6
- package/lib/templates/Detail/index.d.ts +1 -0
- package/lib/templates/Form/index.d.ts +1 -0
- package/lib/templates/List/index.d.ts +6 -3
- package/lib/templates/List/index.js +6 -8
- package/package.json +17 -6
- package/dist/pro.all.min.css +0 -1
- package/dist/pro.css +0 -1
- package/dist/pro.js +0 -115784
- package/dist/pro.min.js.LICENSE.txt +0 -47
- package/dist/pro.xconsole.min.css +0 -1
- package/es/actions/base.d.ts +0 -24
- package/es/actions/base.js +0 -64
- package/es/actions/confirm.d.ts +0 -7
- package/es/actions/confirm.js +0 -11
- package/es/actions/danger-confirm.d.ts +0 -7
- package/es/actions/danger-confirm.js +0 -14
- package/es/actions/danger-pop-confirm.d.ts +0 -5
- package/es/actions/danger-pop-confirm.js +0 -10
- package/es/actions/dialog-component.d.ts +0 -10
- package/es/actions/dialog-component.js +0 -19
- package/es/actions/dialog-form.d.ts +0 -29
- package/es/actions/dialog-form.js +0 -211
- package/es/actions/dialog-info.d.ts +0 -9
- package/es/actions/dialog-info.js +0 -19
- package/es/actions/dialog-table.d.ts +0 -9
- package/es/actions/dialog-table.js +0 -10
- package/es/actions/dialog.d.ts +0 -40
- package/es/actions/dialog.js +0 -223
- package/es/actions/drawer-form.d.ts +0 -6
- package/es/actions/drawer-form.js +0 -7
- package/es/actions/drawer-info.d.ts +0 -6
- package/es/actions/drawer-info.js +0 -7
- package/es/actions/drawer-table.d.ts +0 -6
- package/es/actions/drawer-table.js +0 -7
- package/es/actions/drawer.d.ts +0 -6
- package/es/actions/drawer.js +0 -7
- package/es/actions/error.d.ts +0 -7
- package/es/actions/error.js +0 -11
- package/es/actions/index.d.ts +0 -114
- package/es/actions/index.js +0 -436
- package/es/actions/index.scss +0 -141
- package/es/actions/link.d.ts +0 -8
- package/es/actions/link.js +0 -15
- package/es/actions/notice.d.ts +0 -7
- package/es/actions/notice.js +0 -11
- package/es/actions/pop-confirm.d.ts +0 -9
- package/es/actions/pop-confirm.js +0 -9
- package/es/actions/quick.d.ts +0 -2
- package/es/actions/quick.js +0 -26
- package/es/actions/request.d.ts +0 -9
- package/es/actions/request.js +0 -48
- package/es/actions/utils.d.ts +0 -1
- package/es/actions/utils.js +0 -19
- package/es/card/card-container.d.ts +0 -18
- package/es/card/card-container.js +0 -19
- package/es/card/divider.d.ts +0 -6
- package/es/card/divider.js +0 -11
- package/es/card/index.d.ts +0 -109
- package/es/card/index.js +0 -284
- package/es/card/index.scss +0 -313
- package/es/card/selectable.d.ts +0 -13
- package/es/card/selectable.js +0 -36
- package/es/card/tab.d.ts +0 -6
- package/es/card/tab.js +0 -18
- package/es/card/utils.d.ts +0 -9
- package/es/card/utils.js +0 -28
- package/es/card/xconsole.scss +0 -3
- package/es/field/index.d.ts +0 -3
- package/es/field/index.js +0 -3
- package/es/form/Components/Editable/index.d.ts +0 -20
- package/es/form/Components/Editable/index.js +0 -193
- package/es/form/Components/FormGroup/index.d.ts +0 -14
- package/es/form/Components/FormGroup/index.js +0 -78
- package/es/form/Components/FormGroup/index.scss +0 -23
- package/es/form/Components/LightFilter/componentMap.d.ts +0 -3
- package/es/form/Components/LightFilter/componentMap.js +0 -7
- package/es/form/Components/LightFilter/index.d.ts +0 -17
- package/es/form/Components/LightFilter/index.js +0 -122
- package/es/form/Components/LightFilter/index.scss +0 -89
- package/es/form/Components/ProField/index.d.ts +0 -2
- package/es/form/Components/ProField/index.js +0 -31
- package/es/form/Components/ProField/mapDateFormat.d.ts +0 -3
- package/es/form/Components/ProField/mapDateFormat.js +0 -86
- package/es/form/Components/Text/index.d.ts +0 -8
- package/es/form/Components/Text/index.js +0 -20
- package/es/form/Components/Text/index.scss +0 -8
- package/es/form/Filter/AdvancedFilter.d.ts +0 -7
- package/es/form/Filter/AdvancedFilter.js +0 -112
- package/es/form/Filter/Layout.d.ts +0 -5
- package/es/form/Filter/Layout.js +0 -68
- package/es/form/Filter/LightFilter.d.ts +0 -7
- package/es/form/Filter/LightFilter.js +0 -94
- package/es/form/Filter/SimpleFilter.d.ts +0 -7
- package/es/form/Filter/SimpleFilter.js +0 -88
- package/es/form/Filter/index.d.ts +0 -9
- package/es/form/Filter/index.js +0 -511
- package/es/form/Filter/index.scss +0 -48
- package/es/form/Filter/index2.d.ts +0 -13
- package/es/form/Filter/index2.js +0 -162
- package/es/form/Filter/index2.scss +0 -26
- package/es/form/Filter/layout.scss +0 -40
- package/es/form/Filter/useBindUrl.d.ts +0 -2
- package/es/form/Filter/useBindUrl.js +0 -90
- package/es/form/Filter/useSpecialProps.d.ts +0 -6
- package/es/form/Filter/useSpecialProps.js +0 -32
- package/es/form/ProForm/addCascadeEffect.d.ts +0 -2
- package/es/form/ProForm/addCascadeEffect.js +0 -203
- package/es/form/ProForm/customComponent.d.ts +0 -3
- package/es/form/ProForm/customComponent.js +0 -16
- package/es/form/ProForm/index.d.ts +0 -5
- package/es/form/ProForm/index.js +0 -155
- package/es/form/ProForm/index.scss +0 -411
- package/es/form/ProForm/useAutoLayout.d.ts +0 -9
- package/es/form/ProForm/useAutoLayout.js +0 -93
- package/es/form/ProForm/useAutoSubmit.d.ts +0 -6
- package/es/form/ProForm/useAutoSubmit.js +0 -23
- package/es/form/ProForm/useFieldRequest.d.ts +0 -5
- package/es/form/ProForm/useFieldRequest.js +0 -14
- package/es/form/ProForm/useFormDisplayValues.d.ts +0 -4
- package/es/form/ProForm/useFormDisplayValues.js +0 -78
- package/es/form/ProForm/useInitialRequest.d.ts +0 -6
- package/es/form/ProForm/useInitialRequest.js +0 -10
- package/es/form/SchemaForm/adapterComponent.d.ts +0 -5
- package/es/form/SchemaForm/adapterComponent.js +0 -14
- package/es/form/SchemaForm/adapterDecorator.d.ts +0 -6
- package/es/form/SchemaForm/adapterDecorator.js +0 -20
- package/es/form/SchemaForm/adapterType.d.ts +0 -5
- package/es/form/SchemaForm/adapterType.js +0 -52
- package/es/form/SchemaForm/index.d.ts +0 -4
- package/es/form/SchemaForm/index.js +0 -209
- package/es/form/SchemaForm/initializeArrayCards.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayCards.js +0 -18
- package/es/form/SchemaForm/initializeArrayCollapse.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayCollapse.js +0 -18
- package/es/form/SchemaForm/initializeArrayItems.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayItems.js +0 -31
- package/es/form/SchemaForm/initializeArrayTable.d.ts +0 -3
- package/es/form/SchemaForm/initializeArrayTable.js +0 -78
- package/es/form/SchemaForm/initializeDataSource.d.ts +0 -15
- package/es/form/SchemaForm/initializeDataSource.js +0 -19
- package/es/form/SchemaForm/initializeFormButton.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormButton.js +0 -74
- package/es/form/SchemaForm/initializeFormCollapse.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormCollapse.js +0 -33
- package/es/form/SchemaForm/initializeFormGroup.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormGroup.js +0 -36
- package/es/form/SchemaForm/initializeFormStep.d.ts +0 -5
- package/es/form/SchemaForm/initializeFormStep.js +0 -50
- package/es/form/SchemaForm/initializeFormTab.d.ts +0 -3
- package/es/form/SchemaForm/initializeFormTab.js +0 -43
- package/es/form/SchemaForm/initializeReactions.d.ts +0 -2
- package/es/form/SchemaForm/initializeReactions.js +0 -65
- package/es/form/SchemaForm/initializeRequest.d.ts +0 -11
- package/es/form/SchemaForm/initializeRequest.js +0 -38
- package/es/form/SchemaForm/initializeRules.d.ts +0 -11
- package/es/form/SchemaForm/initializeRules.js +0 -46
- package/es/form/SchemaForm/initializeSelectTable.d.ts +0 -3
- package/es/form/SchemaForm/initializeSelectTable.js +0 -83
- package/es/form/SchemaForm/reactions.d.ts +0 -6
- package/es/form/SchemaForm/reactions.js +0 -88
- package/es/form/docs/ActionResponse.d.ts +0 -8
- package/es/form/docs/ActionResponse.js +0 -11
- package/es/form/docs/ActionResponse.less +0 -25
- package/es/form/fieldTypeMap.d.ts +0 -7
- package/es/form/fieldTypeMap.js +0 -46
- package/es/form/global.scss +0 -14
- package/es/form/index.d.ts +0 -125
- package/es/form/index.js +0 -44
- package/es/form/locales/validate.d.ts +0 -159
- package/es/form/locales/validate.js +0 -158
- package/es/form/schemaNameMap.d.ts +0 -5
- package/es/form/schemaNameMap.js +0 -50
- package/es/form/typing.d.ts +0 -194
- package/es/form/typing.js +0 -1
- package/es/form/utils/parseSchema.d.ts +0 -3
- package/es/form/utils/parseSchema.js +0 -38
- package/es/form/utils.d.ts +0 -55
- package/es/form/utils.js +0 -155
- package/es/form/warning.d.ts +0 -3
- package/es/form/warning.js +0 -11
- package/es/image/index.d.ts +0 -22
- package/es/image/index.js +0 -73
- package/es/image/index.scss +0 -3
- package/es/info/components/InfoGroup/index.d.ts +0 -5
- package/es/info/components/InfoGroup/index.js +0 -86
- package/es/info/components/InfoGroup/index.scss +0 -64
- package/es/info/components/InfoValueItem/index.d.ts +0 -5
- package/es/info/components/InfoValueItem/index.js +0 -302
- package/es/info/components/InfoValueItem/index.scss +0 -26
- package/es/info/components/ProInfoItem/index.d.ts +0 -5
- package/es/info/components/ProInfoItem/index.js +0 -92
- package/es/info/components/ProInfoItem/index.scss +0 -76
- package/es/info/components/baseInfo/index.d.ts +0 -8
- package/es/info/components/baseInfo/index.js +0 -95
- package/es/info/components/baseInfo/index.scss +0 -6
- package/es/info/components/headerInfo/index.d.ts +0 -8
- package/es/info/components/headerInfo/index.js +0 -68
- package/es/info/components/headerInfo/index.scss +0 -3
- package/es/info/components/tableInfo/index.d.ts +0 -7
- package/es/info/components/tableInfo/index.js +0 -154
- package/es/info/components/tableInfo/index.scss +0 -18
- package/es/info/index.d.ts +0 -6
- package/es/info/index.js +0 -182
- package/es/info/index.scss +0 -9
- package/es/info/typing.d.ts +0 -220
- package/es/info/typing.js +0 -1
- package/es/info/utils/index.d.ts +0 -20
- package/es/info/utils/index.js +0 -49
- package/es/info/utils/layout.d.ts +0 -2
- package/es/info/utils/layout.js +0 -58
- package/es/info/utils/utils.d.ts +0 -1
- package/es/info/utils/utils.js +0 -13
- package/es/layout/index.d.ts +0 -2
- package/es/layout/index.js +0 -3
- package/es/page-container/index.d.ts +0 -3
- package/es/page-container/index.js +0 -3
- package/es/page-header/index.d.ts +0 -74
- package/es/page-header/index.js +0 -218
- package/es/page-header/index.scss +0 -193
- package/es/page-header/xconsole.scss +0 -5
- package/es/sidebar/components/sidebar-container/index.d.ts +0 -5
- package/es/sidebar/components/sidebar-container/index.js +0 -167
- package/es/sidebar/components/sidebar-container/index.scss +0 -73
- package/es/sidebar/components/tree/index.d.ts +0 -6
- package/es/sidebar/components/tree/index.js +0 -288
- package/es/sidebar/components/tree/index.scss +0 -10
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +0 -15
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +0 -47
- package/es/sidebar/components/tree-node/components/HoverTooltip/index.scss +0 -7
- package/es/sidebar/components/tree-node/components/IconAction/index.d.ts +0 -12
- package/es/sidebar/components/tree-node/components/IconAction/index.js +0 -79
- package/es/sidebar/components/tree-node/components/IconAction/index.scss +0 -7
- package/es/sidebar/components/tree-node/components/IconSwitch/index.d.ts +0 -23
- package/es/sidebar/components/tree-node/components/IconSwitch/index.js +0 -60
- package/es/sidebar/components/tree-node/components/IconSwitch/index.scss +0 -7
- package/es/sidebar/components/tree-node/index.d.ts +0 -7
- package/es/sidebar/components/tree-node/index.js +0 -192
- package/es/sidebar/components/tree-node/index.scss +0 -68
- package/es/sidebar/index.d.ts +0 -9
- package/es/sidebar/index.js +0 -187
- package/es/sidebar/index.scss +0 -38
- package/es/sidebar/typing.d.ts +0 -145
- package/es/sidebar/typing.js +0 -1
- package/es/sidebar/utils/action-ref.d.ts +0 -3
- package/es/sidebar/utils/action-ref.js +0 -10
- package/es/sidebar/utils/index.d.ts +0 -364
- package/es/sidebar/utils/index.js +0 -277
- package/es/skeleton/index.d.ts +0 -3
- package/es/skeleton/index.js +0 -3
- package/es/table/components/CardView/index.d.ts +0 -5
- package/es/table/components/CardView/index.js +0 -387
- package/es/table/components/CardView/index.scss +0 -46
- package/es/table/components/EmptyContent/index.d.ts +0 -2
- package/es/table/components/EmptyContent/index.js +0 -11
- package/es/table/components/Filter/index.d.ts +0 -12
- package/es/table/components/Filter/index.js +0 -248
- package/es/table/components/Filter/index.scss +0 -27
- package/es/table/components/Layout/index.d.ts +0 -5
- package/es/table/components/Layout/index.js +0 -175
- package/es/table/components/Layout/index.scss +0 -48
- package/es/table/components/LoadMore/index.d.ts +0 -20
- package/es/table/components/LoadMore/index.js +0 -88
- package/es/table/components/LoadMore/index.scss +0 -19
- package/es/table/components/Pagination/index.d.ts +0 -8
- package/es/table/components/Pagination/index.js +0 -244
- package/es/table/components/Pagination/index.scss +0 -55
- package/es/table/components/QuickAction/index.d.ts +0 -11
- package/es/table/components/QuickAction/index.js +0 -45
- package/es/table/components/ToolBar/CardSwitch.d.ts +0 -8
- package/es/table/components/ToolBar/CardSwitch.js +0 -52
- package/es/table/components/ToolBar/DensityIcon.d.ts +0 -4
- package/es/table/components/ToolBar/DensityIcon.js +0 -107
- package/es/table/components/ToolBar/FilterColumnIcon.d.ts +0 -4
- package/es/table/components/ToolBar/FilterColumnIcon.js +0 -362
- package/es/table/components/ToolBar/FullScreenIcon.d.ts +0 -4
- package/es/table/components/ToolBar/FullScreenIcon.js +0 -29
- package/es/table/components/ToolBar/Fullscreen.d.ts +0 -10
- package/es/table/components/ToolBar/Fullscreen.js +0 -100
- package/es/table/components/ToolBar/RefreshIcon.d.ts +0 -4
- package/es/table/components/ToolBar/RefreshIcon.js +0 -180
- package/es/table/components/ToolBar/index.d.ts +0 -5
- package/es/table/components/ToolBar/index.js +0 -174
- package/es/table/components/ToolBar/index.scss +0 -177
- package/es/table/index.d.ts +0 -6
- package/es/table/index.js +0 -1154
- package/es/table/index.scss +0 -158
- package/es/table/typing.d.ts +0 -426
- package/es/table/typing.js +0 -1
- package/es/table/utils/columnRender.d.ts +0 -13
- package/es/table/utils/columnRender.js +0 -247
- package/es/table/utils/genProColumnToColumn.d.ts +0 -13
- package/es/table/utils/genProColumnToColumn.js +0 -51
- package/es/table/utils/getTableProps.d.ts +0 -2
- package/es/table/utils/getTableProps.js +0 -4
- package/es/table/utils/getTableSortIcons.d.ts +0 -3
- package/es/table/utils/getTableSortIcons.js +0 -21
- package/es/table/utils/index.d.ts +0 -19
- package/es/table/utils/index.js +0 -128
- package/es/table/utils/pureColumnRender.d.ts +0 -9
- package/es/table/utils/pureColumnRender.js +0 -169
- package/es/table/utils/pureGenProColumnToColumn.d.ts +0 -7
- package/es/table/utils/pureGenProColumnToColumn.js +0 -28
- package/es/table/utils/useTableSelection.d.ts +0 -3
- package/es/table/utils/useTableSelection.js +0 -80
- package/es/table/utils/util.d.ts +0 -5
- package/es/table/utils/util.js +0 -19
- package/es/timeline/ProTimeLineItem/index.d.ts +0 -5
- package/es/timeline/ProTimeLineItem/index.js +0 -245
- package/es/timeline/ProTimeLineItem/index.scss +0 -235
- package/es/timeline/index.d.ts +0 -10
- package/es/timeline/index.js +0 -63
- package/es/timeline/index.scss +0 -7
- package/es/timeline/typing.d.ts +0 -107
- package/es/timeline/typing.js +0 -1
- package/es/utils/aspect.d.ts +0 -2
- package/es/utils/aspect.js +0 -57
- package/es/utils/index.d.ts +0 -3
- package/es/utils/index.js +0 -3
- package/es/utils/message.d.ts +0 -3
- package/es/utils/message.js +0 -14
- package/lib/actions/base.d.ts +0 -24
- package/lib/actions/base.js +0 -72
- package/lib/actions/confirm.d.ts +0 -7
- package/lib/actions/confirm.js +0 -20
- package/lib/actions/danger-confirm.d.ts +0 -7
- package/lib/actions/danger-confirm.js +0 -23
- package/lib/actions/danger-pop-confirm.d.ts +0 -5
- package/lib/actions/danger-pop-confirm.js +0 -18
- package/lib/actions/dialog-component.d.ts +0 -10
- package/lib/actions/dialog-component.js +0 -28
- package/lib/actions/dialog-form.d.ts +0 -29
- package/lib/actions/dialog-form.js +0 -220
- package/lib/actions/dialog-info.d.ts +0 -9
- package/lib/actions/dialog-info.js +0 -28
- package/lib/actions/dialog-table.d.ts +0 -9
- package/lib/actions/dialog-table.js +0 -19
- package/lib/actions/dialog.d.ts +0 -40
- package/lib/actions/dialog.js +0 -232
- package/lib/actions/drawer-form.d.ts +0 -6
- package/lib/actions/drawer-form.js +0 -15
- package/lib/actions/drawer-info.d.ts +0 -6
- package/lib/actions/drawer-info.js +0 -15
- package/lib/actions/drawer-table.d.ts +0 -6
- package/lib/actions/drawer-table.js +0 -15
- package/lib/actions/drawer.d.ts +0 -6
- package/lib/actions/drawer.js +0 -16
- package/lib/actions/error.d.ts +0 -7
- package/lib/actions/error.js +0 -20
- package/lib/actions/index.d.ts +0 -114
- package/lib/actions/index.js +0 -474
- package/lib/actions/index.scss +0 -141
- package/lib/actions/link.d.ts +0 -8
- package/lib/actions/link.js +0 -21
- package/lib/actions/notice.d.ts +0 -7
- package/lib/actions/notice.js +0 -20
- package/lib/actions/pop-confirm.d.ts +0 -9
- package/lib/actions/pop-confirm.js +0 -18
- package/lib/actions/quick.d.ts +0 -2
- package/lib/actions/quick.js +0 -33
- package/lib/actions/request.d.ts +0 -9
- package/lib/actions/request.js +0 -55
- package/lib/actions/utils.d.ts +0 -1
- package/lib/actions/utils.js +0 -25
- package/lib/card/card-container.d.ts +0 -18
- package/lib/card/card-container.js +0 -28
- package/lib/card/divider.d.ts +0 -6
- package/lib/card/divider.js +0 -19
- package/lib/card/index.d.ts +0 -109
- package/lib/card/index.js +0 -310
- package/lib/card/index.scss +0 -313
- package/lib/card/selectable.d.ts +0 -13
- package/lib/card/selectable.js +0 -44
- package/lib/card/tab.d.ts +0 -6
- package/lib/card/tab.js +0 -26
- package/lib/card/utils.d.ts +0 -9
- package/lib/card/utils.js +0 -35
- package/lib/card/xconsole.scss +0 -3
- package/lib/field/index.d.ts +0 -3
- package/lib/field/index.js +0 -24
- package/lib/form/Components/Editable/index.d.ts +0 -20
- package/lib/form/Components/Editable/index.js +0 -205
- package/lib/form/Components/FormGroup/index.d.ts +0 -14
- package/lib/form/Components/FormGroup/index.js +0 -86
- package/lib/form/Components/FormGroup/index.scss +0 -23
- package/lib/form/Components/LightFilter/componentMap.d.ts +0 -3
- package/lib/form/Components/LightFilter/componentMap.js +0 -14
- package/lib/form/Components/LightFilter/index.d.ts +0 -17
- package/lib/form/Components/LightFilter/index.js +0 -133
- package/lib/form/Components/LightFilter/index.scss +0 -89
- package/lib/form/Components/ProField/index.d.ts +0 -2
- package/lib/form/Components/ProField/index.js +0 -39
- package/lib/form/Components/ProField/mapDateFormat.d.ts +0 -3
- package/lib/form/Components/ProField/mapDateFormat.js +0 -94
- package/lib/form/Components/Text/index.d.ts +0 -8
- package/lib/form/Components/Text/index.js +0 -28
- package/lib/form/Components/Text/index.scss +0 -8
- package/lib/form/Filter/AdvancedFilter.d.ts +0 -7
- package/lib/form/Filter/AdvancedFilter.js +0 -123
- package/lib/form/Filter/Layout.d.ts +0 -5
- package/lib/form/Filter/Layout.js +0 -78
- package/lib/form/Filter/LightFilter.d.ts +0 -7
- package/lib/form/Filter/LightFilter.js +0 -105
- package/lib/form/Filter/SimpleFilter.d.ts +0 -7
- package/lib/form/Filter/SimpleFilter.js +0 -99
- package/lib/form/Filter/index.d.ts +0 -9
- package/lib/form/Filter/index.js +0 -526
- package/lib/form/Filter/index.scss +0 -48
- package/lib/form/Filter/index2.d.ts +0 -13
- package/lib/form/Filter/index2.js +0 -174
- package/lib/form/Filter/index2.scss +0 -26
- package/lib/form/Filter/layout.scss +0 -40
- package/lib/form/Filter/useBindUrl.d.ts +0 -2
- package/lib/form/Filter/useBindUrl.js +0 -97
- package/lib/form/Filter/useSpecialProps.d.ts +0 -6
- package/lib/form/Filter/useSpecialProps.js +0 -39
- package/lib/form/ProForm/addCascadeEffect.d.ts +0 -2
- package/lib/form/ProForm/addCascadeEffect.js +0 -210
- package/lib/form/ProForm/customComponent.d.ts +0 -3
- package/lib/form/ProForm/customComponent.js +0 -22
- package/lib/form/ProForm/index.d.ts +0 -5
- package/lib/form/ProForm/index.js +0 -166
- package/lib/form/ProForm/index.scss +0 -411
- package/lib/form/ProForm/useAutoLayout.d.ts +0 -9
- package/lib/form/ProForm/useAutoLayout.js +0 -100
- package/lib/form/ProForm/useAutoSubmit.d.ts +0 -6
- package/lib/form/ProForm/useAutoSubmit.js +0 -28
- package/lib/form/ProForm/useFieldRequest.d.ts +0 -5
- package/lib/form/ProForm/useFieldRequest.js +0 -21
- package/lib/form/ProForm/useFormDisplayValues.d.ts +0 -4
- package/lib/form/ProForm/useFormDisplayValues.js +0 -86
- package/lib/form/ProForm/useInitialRequest.d.ts +0 -6
- package/lib/form/ProForm/useInitialRequest.js +0 -17
- package/lib/form/SchemaForm/adapterComponent.d.ts +0 -5
- package/lib/form/SchemaForm/adapterComponent.js +0 -21
- package/lib/form/SchemaForm/adapterDecorator.d.ts +0 -6
- package/lib/form/SchemaForm/adapterDecorator.js +0 -24
- package/lib/form/SchemaForm/adapterType.d.ts +0 -5
- package/lib/form/SchemaForm/adapterType.js +0 -59
- package/lib/form/SchemaForm/index.d.ts +0 -4
- package/lib/form/SchemaForm/index.js +0 -220
- package/lib/form/SchemaForm/initializeArrayCards.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayCards.js +0 -25
- package/lib/form/SchemaForm/initializeArrayCollapse.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayCollapse.js +0 -25
- package/lib/form/SchemaForm/initializeArrayItems.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayItems.js +0 -38
- package/lib/form/SchemaForm/initializeArrayTable.d.ts +0 -3
- package/lib/form/SchemaForm/initializeArrayTable.js +0 -85
- package/lib/form/SchemaForm/initializeDataSource.d.ts +0 -15
- package/lib/form/SchemaForm/initializeDataSource.js +0 -26
- package/lib/form/SchemaForm/initializeFormButton.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormButton.js +0 -81
- package/lib/form/SchemaForm/initializeFormCollapse.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormCollapse.js +0 -40
- package/lib/form/SchemaForm/initializeFormGroup.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormGroup.js +0 -43
- package/lib/form/SchemaForm/initializeFormStep.d.ts +0 -5
- package/lib/form/SchemaForm/initializeFormStep.js +0 -57
- package/lib/form/SchemaForm/initializeFormTab.d.ts +0 -3
- package/lib/form/SchemaForm/initializeFormTab.js +0 -50
- package/lib/form/SchemaForm/initializeReactions.d.ts +0 -2
- package/lib/form/SchemaForm/initializeReactions.js +0 -73
- package/lib/form/SchemaForm/initializeRequest.d.ts +0 -11
- package/lib/form/SchemaForm/initializeRequest.js +0 -45
- package/lib/form/SchemaForm/initializeRules.d.ts +0 -11
- package/lib/form/SchemaForm/initializeRules.js +0 -53
- package/lib/form/SchemaForm/initializeSelectTable.d.ts +0 -3
- package/lib/form/SchemaForm/initializeSelectTable.js +0 -91
- package/lib/form/SchemaForm/reactions.d.ts +0 -6
- package/lib/form/SchemaForm/reactions.js +0 -97
- package/lib/form/docs/ActionResponse.d.ts +0 -8
- package/lib/form/docs/ActionResponse.js +0 -19
- package/lib/form/docs/ActionResponse.less +0 -25
- package/lib/form/fieldTypeMap.d.ts +0 -7
- package/lib/form/fieldTypeMap.js +0 -54
- package/lib/form/global.scss +0 -14
- package/lib/form/index.d.ts +0 -125
- package/lib/form/index.js +0 -171
- package/lib/form/locales/validate.d.ts +0 -159
- package/lib/form/locales/validate.js +0 -165
- package/lib/form/schemaNameMap.d.ts +0 -5
- package/lib/form/schemaNameMap.js +0 -57
- package/lib/form/typing.d.ts +0 -194
- package/lib/form/typing.js +0 -5
- package/lib/form/utils/parseSchema.d.ts +0 -3
- package/lib/form/utils/parseSchema.js +0 -45
- package/lib/form/utils.d.ts +0 -55
- package/lib/form/utils.js +0 -169
- package/lib/form/warning.d.ts +0 -3
- package/lib/form/warning.js +0 -18
- package/lib/image/index.d.ts +0 -22
- package/lib/image/index.js +0 -83
- package/lib/image/index.scss +0 -3
- package/lib/info/components/InfoGroup/index.d.ts +0 -5
- package/lib/info/components/InfoGroup/index.js +0 -97
- package/lib/info/components/InfoGroup/index.scss +0 -64
- package/lib/info/components/InfoValueItem/index.d.ts +0 -5
- package/lib/info/components/InfoValueItem/index.js +0 -313
- package/lib/info/components/InfoValueItem/index.scss +0 -26
- package/lib/info/components/ProInfoItem/index.d.ts +0 -5
- package/lib/info/components/ProInfoItem/index.js +0 -100
- package/lib/info/components/ProInfoItem/index.scss +0 -76
- package/lib/info/components/baseInfo/index.d.ts +0 -8
- package/lib/info/components/baseInfo/index.js +0 -103
- package/lib/info/components/baseInfo/index.scss +0 -6
- package/lib/info/components/headerInfo/index.d.ts +0 -8
- package/lib/info/components/headerInfo/index.js +0 -76
- package/lib/info/components/headerInfo/index.scss +0 -3
- package/lib/info/components/tableInfo/index.d.ts +0 -7
- package/lib/info/components/tableInfo/index.js +0 -164
- package/lib/info/components/tableInfo/index.scss +0 -18
- package/lib/info/index.d.ts +0 -6
- package/lib/info/index.js +0 -205
- package/lib/info/index.scss +0 -9
- package/lib/info/typing.d.ts +0 -220
- package/lib/info/typing.js +0 -5
- package/lib/info/utils/index.d.ts +0 -20
- package/lib/info/utils/index.js +0 -60
- package/lib/info/utils/layout.d.ts +0 -2
- package/lib/info/utils/layout.js +0 -65
- package/lib/info/utils/utils.d.ts +0 -1
- package/lib/info/utils/utils.js +0 -19
- package/lib/layout/index.d.ts +0 -2
- package/lib/layout/index.js +0 -10
- package/lib/page-container/index.d.ts +0 -3
- package/lib/page-container/index.js +0 -24
- package/lib/page-header/index.d.ts +0 -74
- package/lib/page-header/index.js +0 -224
- package/lib/page-header/index.scss +0 -193
- package/lib/page-header/xconsole.scss +0 -5
- package/lib/sidebar/components/sidebar-container/index.d.ts +0 -5
- package/lib/sidebar/components/sidebar-container/index.js +0 -178
- package/lib/sidebar/components/sidebar-container/index.scss +0 -73
- package/lib/sidebar/components/tree/index.d.ts +0 -6
- package/lib/sidebar/components/tree/index.js +0 -298
- package/lib/sidebar/components/tree/index.scss +0 -10
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +0 -15
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.js +0 -57
- package/lib/sidebar/components/tree-node/components/HoverTooltip/index.scss +0 -7
- package/lib/sidebar/components/tree-node/components/IconAction/index.d.ts +0 -12
- package/lib/sidebar/components/tree-node/components/IconAction/index.js +0 -90
- package/lib/sidebar/components/tree-node/components/IconAction/index.scss +0 -7
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.d.ts +0 -23
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.js +0 -71
- package/lib/sidebar/components/tree-node/components/IconSwitch/index.scss +0 -7
- package/lib/sidebar/components/tree-node/index.d.ts +0 -7
- package/lib/sidebar/components/tree-node/index.js +0 -204
- package/lib/sidebar/components/tree-node/index.scss +0 -68
- package/lib/sidebar/index.d.ts +0 -9
- package/lib/sidebar/index.js +0 -228
- package/lib/sidebar/index.scss +0 -38
- package/lib/sidebar/typing.d.ts +0 -145
- package/lib/sidebar/typing.js +0 -5
- package/lib/sidebar/utils/action-ref.d.ts +0 -3
- package/lib/sidebar/utils/action-ref.js +0 -16
- package/lib/sidebar/utils/index.d.ts +0 -364
- package/lib/sidebar/utils/index.js +0 -291
- package/lib/skeleton/index.d.ts +0 -3
- package/lib/skeleton/index.js +0 -24
- package/lib/table/components/CardView/index.d.ts +0 -5
- package/lib/table/components/CardView/index.js +0 -397
- package/lib/table/components/CardView/index.scss +0 -46
- package/lib/table/components/EmptyContent/index.d.ts +0 -2
- package/lib/table/components/EmptyContent/index.js +0 -19
- package/lib/table/components/Filter/index.d.ts +0 -12
- package/lib/table/components/Filter/index.js +0 -258
- package/lib/table/components/Filter/index.scss +0 -27
- package/lib/table/components/Layout/index.d.ts +0 -5
- package/lib/table/components/Layout/index.js +0 -185
- package/lib/table/components/Layout/index.scss +0 -48
- package/lib/table/components/LoadMore/index.d.ts +0 -20
- package/lib/table/components/LoadMore/index.js +0 -99
- package/lib/table/components/LoadMore/index.scss +0 -19
- package/lib/table/components/Pagination/index.d.ts +0 -8
- package/lib/table/components/Pagination/index.js +0 -253
- package/lib/table/components/Pagination/index.scss +0 -55
- package/lib/table/components/QuickAction/index.d.ts +0 -11
- package/lib/table/components/QuickAction/index.js +0 -53
- package/lib/table/components/ToolBar/CardSwitch.d.ts +0 -8
- package/lib/table/components/ToolBar/CardSwitch.js +0 -60
- package/lib/table/components/ToolBar/DensityIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/DensityIcon.js +0 -114
- package/lib/table/components/ToolBar/FilterColumnIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/FilterColumnIcon.js +0 -370
- package/lib/table/components/ToolBar/FullScreenIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/FullScreenIcon.js +0 -38
- package/lib/table/components/ToolBar/Fullscreen.d.ts +0 -10
- package/lib/table/components/ToolBar/Fullscreen.js +0 -110
- package/lib/table/components/ToolBar/RefreshIcon.d.ts +0 -4
- package/lib/table/components/ToolBar/RefreshIcon.js +0 -188
- package/lib/table/components/ToolBar/index.d.ts +0 -5
- package/lib/table/components/ToolBar/index.js +0 -185
- package/lib/table/components/ToolBar/index.scss +0 -177
- package/lib/table/index.d.ts +0 -6
- package/lib/table/index.js +0 -1176
- package/lib/table/index.scss +0 -158
- package/lib/table/typing.d.ts +0 -426
- package/lib/table/typing.js +0 -5
- package/lib/table/utils/columnRender.d.ts +0 -13
- package/lib/table/utils/columnRender.js +0 -256
- package/lib/table/utils/genProColumnToColumn.d.ts +0 -13
- package/lib/table/utils/genProColumnToColumn.js +0 -58
- package/lib/table/utils/getTableProps.d.ts +0 -2
- package/lib/table/utils/getTableProps.js +0 -11
- package/lib/table/utils/getTableSortIcons.d.ts +0 -3
- package/lib/table/utils/getTableSortIcons.js +0 -29
- package/lib/table/utils/index.d.ts +0 -19
- package/lib/table/utils/index.js +0 -142
- package/lib/table/utils/pureColumnRender.d.ts +0 -9
- package/lib/table/utils/pureColumnRender.js +0 -178
- package/lib/table/utils/pureGenProColumnToColumn.d.ts +0 -7
- package/lib/table/utils/pureGenProColumnToColumn.js +0 -34
- package/lib/table/utils/useTableSelection.d.ts +0 -3
- package/lib/table/utils/useTableSelection.js +0 -83
- package/lib/table/utils/util.d.ts +0 -5
- package/lib/table/utils/util.js +0 -25
- package/lib/timeline/ProTimeLineItem/index.d.ts +0 -5
- package/lib/timeline/ProTimeLineItem/index.js +0 -255
- package/lib/timeline/ProTimeLineItem/index.scss +0 -235
- package/lib/timeline/index.d.ts +0 -10
- package/lib/timeline/index.js +0 -79
- package/lib/timeline/index.scss +0 -7
- package/lib/timeline/typing.d.ts +0 -107
- package/lib/timeline/typing.js +0 -5
- package/lib/utils/aspect.d.ts +0 -2
- package/lib/utils/aspect.js +0 -64
- package/lib/utils/index.d.ts +0 -3
- package/lib/utils/index.js +0 -24
- package/lib/utils/message.d.ts +0 -3
- package/lib/utils/message.js +0 -22
- /package/dist/{fonts/txddinmedium.woff → static/txddinmedium.df41cfe2.woff} +0 -0
package/lib/card/tab.js
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = void 0;
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
8
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
9
|
-
var _components = require("@alicloudfe/components");
|
10
|
-
var _excluded = ["className"];
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
12
|
-
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; }
|
13
|
-
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
|
-
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; }
|
15
|
-
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; }
|
16
|
-
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; }
|
17
|
-
var ProCardTab = function ProCardTab(props) {
|
18
|
-
var className = props.className,
|
19
|
-
others = _objectWithoutProperties(props, _excluded);
|
20
|
-
return /*#__PURE__*/_react.default.createElement(_components.Tab, _objectSpread({
|
21
|
-
className: (0, _classnames.default)('teamix-pro-card-tab', className)
|
22
|
-
}, others));
|
23
|
-
};
|
24
|
-
ProCardTab.Item = _components.Tab.Item;
|
25
|
-
var _default = ProCardTab;
|
26
|
-
exports.default = _default;
|
package/lib/card/utils.d.ts
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare function formatSpacing(spacing?: [number, number] | number): {
|
3
|
-
horizonal: number;
|
4
|
-
vertical: number;
|
5
|
-
};
|
6
|
-
export declare function getColClassAndStyle(col?: number | string): {
|
7
|
-
className?: string;
|
8
|
-
style: React.CSSProperties;
|
9
|
-
};
|
package/lib/card/utils.js
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.formatSpacing = formatSpacing;
|
7
|
-
exports.getColClassAndStyle = getColClassAndStyle;
|
8
|
-
var _utils = require("@teamix/utils");
|
9
|
-
var cls = (0, _utils.usePrefixCls)('teamix-pro-card');
|
10
|
-
function formatSpacing(spacing) {
|
11
|
-
var spacingArray = spacing instanceof Array ? spacing : [spacing || 0, spacing || 0];
|
12
|
-
return {
|
13
|
-
horizonal: spacingArray[0] / 2,
|
14
|
-
vertical: spacingArray[1] / 2
|
15
|
-
};
|
16
|
-
}
|
17
|
-
function getColClassAndStyle(col) {
|
18
|
-
if (!col) {
|
19
|
-
return {
|
20
|
-
style: {}
|
21
|
-
};
|
22
|
-
}
|
23
|
-
if (typeof col === 'number') {
|
24
|
-
return {
|
25
|
-
className: cls("col-".concat(col)),
|
26
|
-
style: {}
|
27
|
-
};
|
28
|
-
}
|
29
|
-
return {
|
30
|
-
style: {
|
31
|
-
width: col,
|
32
|
-
flexShrink: 0
|
33
|
-
}
|
34
|
-
};
|
35
|
-
}
|
package/lib/card/xconsole.scss
DELETED
package/lib/field/index.d.ts
DELETED
package/lib/field/index.js
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
5
|
-
value: true
|
6
|
-
});
|
7
|
-
var _exportNames = {};
|
8
|
-
exports.default = void 0;
|
9
|
-
var _proField = _interopRequireWildcard(require("@teamix/pro-field"));
|
10
|
-
Object.keys(_proField).forEach(function (key) {
|
11
|
-
if (key === "default" || key === "__esModule") return;
|
12
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
13
|
-
if (key in exports && exports[key] === _proField[key]) return;
|
14
|
-
Object.defineProperty(exports, key, {
|
15
|
-
enumerable: true,
|
16
|
-
get: function get() {
|
17
|
-
return _proField[key];
|
18
|
-
}
|
19
|
-
});
|
20
|
-
});
|
21
|
-
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); }
|
22
|
-
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; }
|
23
|
-
var _default = _proField.default;
|
24
|
-
exports.default = _default;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { BalloonProps as IPopoverProps } from '@alicloudfe/components/types/balloon';
|
3
|
-
import { DialogProps } from '@alicloudfe/components/types/dialog';
|
4
|
-
import { DrawerProps } from '@alicloudfe/components/types/drawer';
|
5
|
-
import { IFormItemProps } from '@teamix/formily';
|
6
|
-
declare type ComposedEditable = React.FC<IFormItemProps> & {
|
7
|
-
BaseBuilder?: (type: any) => React.FC<DialogProps> | React.FC<DrawerProps>;
|
8
|
-
Dialog?: React.FC;
|
9
|
-
Drawer?: React.FC;
|
10
|
-
Popover?: React.FC<IPopoverProps & {
|
11
|
-
title?: React.ReactNode;
|
12
|
-
}>;
|
13
|
-
};
|
14
|
-
export declare const Editable: ComposedEditable;
|
15
|
-
declare const EditableDialog: React.FC<{}>;
|
16
|
-
declare const EditableDrawer: React.FC<{}>;
|
17
|
-
declare const EditablePopover: React.FC<IPopoverProps & {
|
18
|
-
title?: React.ReactNode;
|
19
|
-
}>;
|
20
|
-
export { EditableDialog, EditableDrawer, EditablePopover };
|
@@ -1,205 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
5
|
-
value: true
|
6
|
-
});
|
7
|
-
exports.EditablePopover = exports.EditableDrawer = exports.EditableDialog = exports.Editable = void 0;
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
9
|
-
var _react2 = require("@formily/react");
|
10
|
-
var _components = require("@alicloudfe/components");
|
11
|
-
var _icon = _interopRequireDefault(require("@teamix/icon"));
|
12
|
-
var _formily = require("@teamix/formily");
|
13
|
-
var _utils = require("@teamix/utils");
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
-
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); }
|
16
|
-
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; }
|
17
|
-
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; }
|
18
|
-
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; }
|
19
|
-
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; }
|
20
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
21
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
22
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
23
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
24
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
25
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
26
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
27
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
28
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
29
|
-
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
30
|
-
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); }
|
31
|
-
var useParentPattern = function useParentPattern() {
|
32
|
-
var _field$parent, _field$form;
|
33
|
-
var field = (0, _react2.useField)();
|
34
|
-
return (field === null || field === void 0 ? void 0 : (_field$parent = field.parent) === null || _field$parent === void 0 ? void 0 : _field$parent.pattern) || (field === null || field === void 0 ? void 0 : (_field$form = field.form) === null || _field$form === void 0 ? void 0 : _field$form.pattern);
|
35
|
-
};
|
36
|
-
var Editable = (0, _react2.observer)(function (props) {
|
37
|
-
return null;
|
38
|
-
});
|
39
|
-
exports.Editable = Editable;
|
40
|
-
Editable.BaseBuilder = function (type) {
|
41
|
-
return (0, _react2.observer)(function (_ref) {
|
42
|
-
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
43
|
-
var field = (0, _react2.useField)();
|
44
|
-
var pattern = useParentPattern();
|
45
|
-
var _useState = (0, _react.useState)(false),
|
46
|
-
_useState2 = _slicedToArray(_useState, 2),
|
47
|
-
visible = _useState2[0],
|
48
|
-
setVisible = _useState2[1];
|
49
|
-
var prefixCls = (0, _utils.usePrefixCls)('formily-editable', {
|
50
|
-
base: true
|
51
|
-
});
|
52
|
-
var onOk = /*#__PURE__*/function () {
|
53
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
54
|
-
var errors;
|
55
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
56
|
-
while (1) {
|
57
|
-
switch (_context.prev = _context.next) {
|
58
|
-
case 0:
|
59
|
-
_context.prev = 0;
|
60
|
-
_context.next = 3;
|
61
|
-
return field.form.validate("".concat(field.address, ".*"));
|
62
|
-
case 3:
|
63
|
-
_context.prev = 3;
|
64
|
-
errors = field.form.queryFeedbacks({
|
65
|
-
type: 'error',
|
66
|
-
address: "".concat(field.address, ".*")
|
67
|
-
});
|
68
|
-
if (!(errors === null || errors === void 0 ? void 0 : errors.length)) {
|
69
|
-
_context.next = 7;
|
70
|
-
break;
|
71
|
-
}
|
72
|
-
return _context.abrupt("return");
|
73
|
-
case 7:
|
74
|
-
setVisible(false);
|
75
|
-
return _context.finish(3);
|
76
|
-
case 9:
|
77
|
-
case "end":
|
78
|
-
return _context.stop();
|
79
|
-
}
|
80
|
-
}
|
81
|
-
}, _callee, null, [[0,, 3, 9]]);
|
82
|
-
}));
|
83
|
-
return function onOk() {
|
84
|
-
return _ref2.apply(this, arguments);
|
85
|
-
};
|
86
|
-
}();
|
87
|
-
var onCancel = function onCancel() {
|
88
|
-
setVisible(false);
|
89
|
-
};
|
90
|
-
var onOpen = function onOpen() {
|
91
|
-
setVisible(true);
|
92
|
-
};
|
93
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
94
|
-
style: {
|
95
|
-
display: 'inline-flex'
|
96
|
-
},
|
97
|
-
onClick: onOpen
|
98
|
-
}, /*#__PURE__*/_react.default.createElement(_formily.BaseItem, {
|
99
|
-
className: prefixCls('trigger')
|
100
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
101
|
-
className: prefixCls('content')
|
102
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
103
|
-
className: prefixCls('preview')
|
104
|
-
}, field.title), pattern === 'editable' && /*#__PURE__*/_react.default.createElement(_icon.default, {
|
105
|
-
className: prefixCls('edit-btn'),
|
106
|
-
type: "form-line",
|
107
|
-
size: "small"
|
108
|
-
})))), /*#__PURE__*/_react.default.createElement(type, _objectSpread(_objectSpread({
|
109
|
-
title: field.title
|
110
|
-
}, props), {}, {
|
111
|
-
visible: visible,
|
112
|
-
onOk: onOk,
|
113
|
-
onCancel: onCancel,
|
114
|
-
onClose: onCancel
|
115
|
-
})));
|
116
|
-
});
|
117
|
-
};
|
118
|
-
Editable.Popover = (0, _react2.observer)(function (_ref3) {
|
119
|
-
var props = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3));
|
120
|
-
var field = (0, _react2.useField)();
|
121
|
-
var pattern = useParentPattern();
|
122
|
-
var _useState3 = (0, _react.useState)(false),
|
123
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
124
|
-
visible = _useState4[0],
|
125
|
-
setVisible = _useState4[1];
|
126
|
-
var prefixCls = (0, _utils.usePrefixCls)('formily-editable', {
|
127
|
-
base: true
|
128
|
-
});
|
129
|
-
var closePopover = /*#__PURE__*/function () {
|
130
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
131
|
-
var errors;
|
132
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
133
|
-
while (1) {
|
134
|
-
switch (_context2.prev = _context2.next) {
|
135
|
-
case 0:
|
136
|
-
_context2.prev = 0;
|
137
|
-
_context2.next = 3;
|
138
|
-
return field.form.validate("".concat(field.address, ".*"));
|
139
|
-
case 3:
|
140
|
-
_context2.prev = 3;
|
141
|
-
errors = field.form.queryFeedbacks({
|
142
|
-
type: 'error',
|
143
|
-
address: "".concat(field.address, ".*")
|
144
|
-
});
|
145
|
-
if (!(errors === null || errors === void 0 ? void 0 : errors.length)) {
|
146
|
-
_context2.next = 7;
|
147
|
-
break;
|
148
|
-
}
|
149
|
-
return _context2.abrupt("return");
|
150
|
-
case 7:
|
151
|
-
setVisible(false);
|
152
|
-
return _context2.finish(3);
|
153
|
-
case 9:
|
154
|
-
case "end":
|
155
|
-
return _context2.stop();
|
156
|
-
}
|
157
|
-
}
|
158
|
-
}, _callee2, null, [[0,, 3, 9]]);
|
159
|
-
}));
|
160
|
-
return function closePopover() {
|
161
|
-
return _ref4.apply(this, arguments);
|
162
|
-
};
|
163
|
-
}();
|
164
|
-
var openPopover = function openPopover() {
|
165
|
-
setVisible(true);
|
166
|
-
};
|
167
|
-
return /*#__PURE__*/_react.default.createElement(_components.Balloon, _objectSpread(_objectSpread({}, props), {}, {
|
168
|
-
title: field.title,
|
169
|
-
className: props.className,
|
170
|
-
visible: visible,
|
171
|
-
onVisibleChange: function onVisibleChange(visible) {
|
172
|
-
if (visible) {
|
173
|
-
openPopover();
|
174
|
-
} else {
|
175
|
-
closePopover();
|
176
|
-
}
|
177
|
-
},
|
178
|
-
align: "t",
|
179
|
-
triggerType: "click",
|
180
|
-
closable: false,
|
181
|
-
trigger: /*#__PURE__*/_react.default.createElement("div", {
|
182
|
-
style: {
|
183
|
-
display: 'inline-flex'
|
184
|
-
}
|
185
|
-
}, /*#__PURE__*/_react.default.createElement(_formily.BaseItem, {
|
186
|
-
className: prefixCls('trigger')
|
187
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
188
|
-
className: prefixCls('content')
|
189
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
190
|
-
className: prefixCls('preview')
|
191
|
-
}, props.title || field.title), pattern === 'editable' && /*#__PURE__*/_react.default.createElement(_icon.default, {
|
192
|
-
className: prefixCls('edit-btn'),
|
193
|
-
type: "form-line",
|
194
|
-
size: "small"
|
195
|
-
}))))
|
196
|
-
}), props.children);
|
197
|
-
});
|
198
|
-
Editable.Dialog = Editable.BaseBuilder(_components.Dialog);
|
199
|
-
Editable.Drawer = Editable.BaseBuilder(_components.Drawer);
|
200
|
-
var EditableDialog = Editable.Dialog;
|
201
|
-
exports.EditableDialog = EditableDialog;
|
202
|
-
var EditableDrawer = Editable.Drawer;
|
203
|
-
exports.EditableDrawer = EditableDrawer;
|
204
|
-
var EditablePopover = Editable.Popover;
|
205
|
-
exports.EditablePopover = EditablePopover;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import './index.scss';
|
3
|
-
interface IGroupPanelProps {
|
4
|
-
title?: React.ReactNode;
|
5
|
-
xIndex?: number;
|
6
|
-
className?: string;
|
7
|
-
children?: React.ReactNode;
|
8
|
-
}
|
9
|
-
declare type IGroupPanel = React.FC<IGroupPanelProps>;
|
10
|
-
declare type IFormGroup = React.FC<any> & {
|
11
|
-
GroupPanel?: IGroupPanel;
|
12
|
-
};
|
13
|
-
declare const FormGroup: IFormGroup;
|
14
|
-
export default FormGroup;
|
@@ -1,86 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = void 0;
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
8
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
9
|
-
var _react2 = require("@formily/react");
|
10
|
-
var _utils = require("@teamix/utils");
|
11
|
-
require("./index.scss");
|
12
|
-
var _excluded = ["children", "title", "xIndex"],
|
13
|
-
_excluded2 = ["children"];
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
-
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; }
|
16
|
-
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; }
|
17
|
-
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; }
|
18
|
-
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; }
|
19
|
-
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; }
|
20
|
-
var usePanels = function usePanels() {
|
21
|
-
var groupField = (0, _react2.useField)();
|
22
|
-
var schema = (0, _react2.useFieldSchema)();
|
23
|
-
var panels = [];
|
24
|
-
schema.mapProperties(function (schema, name) {
|
25
|
-
var _schema$xComponent;
|
26
|
-
var field = groupField.query(groupField.address.concat(name)).take();
|
27
|
-
if ((field === null || field === void 0 ? void 0 : field.display) === 'none' || (field === null || field === void 0 ? void 0 : field.display) === 'hidden') return;
|
28
|
-
if (((_schema$xComponent = schema['x-component']) === null || _schema$xComponent === void 0 ? void 0 : _schema$xComponent.indexOf('GroupPanel')) > -1) {
|
29
|
-
var _schema$xComponentP, _schema$xComponentP2;
|
30
|
-
panels.push({
|
31
|
-
name: name,
|
32
|
-
props: _objectSpread(_objectSpread({}, schema === null || schema === void 0 ? void 0 : schema['x-component-props']), {}, {
|
33
|
-
title: (schema === null || schema === void 0 ? void 0 : (_schema$xComponentP = schema['x-component-props']) === null || _schema$xComponentP === void 0 ? void 0 : _schema$xComponentP.title) || (schema === null || schema === void 0 ? void 0 : schema.title),
|
34
|
-
key: (schema === null || schema === void 0 ? void 0 : (_schema$xComponentP2 = schema['x-component-props']) === null || _schema$xComponentP2 === void 0 ? void 0 : _schema$xComponentP2.key) || name
|
35
|
-
}),
|
36
|
-
schema: schema
|
37
|
-
});
|
38
|
-
}
|
39
|
-
});
|
40
|
-
return panels;
|
41
|
-
};
|
42
|
-
var FormGroupGroupPanel = (0, _react2.observer)(function (_ref) {
|
43
|
-
var children = _ref.children,
|
44
|
-
title = _ref.title,
|
45
|
-
xIndex = _ref.xIndex,
|
46
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
47
|
-
var prefixCls = (0, _utils.usePrefixCls)('formily-group-panel', {
|
48
|
-
base: true
|
49
|
-
});
|
50
|
-
return /*#__PURE__*/_react.default.createElement("div", _objectSpread(_objectSpread({}, props), {}, {
|
51
|
-
className: (0, _classnames.default)(prefixCls(), props.className)
|
52
|
-
}), xIndex !== 0 ? /*#__PURE__*/_react.default.createElement("div", {
|
53
|
-
className: prefixCls('divider')
|
54
|
-
}) : null, /*#__PURE__*/_react.default.createElement("div", {
|
55
|
-
className: prefixCls('title')
|
56
|
-
}, title), children);
|
57
|
-
});
|
58
|
-
var FormGroup = (0, _react2.observer)(function (_ref2) {
|
59
|
-
var children = _ref2.children,
|
60
|
-
props = _objectWithoutProperties(_ref2, _excluded2);
|
61
|
-
var prefixCls = (0, _utils.usePrefixCls)('formily-group', {
|
62
|
-
base: true
|
63
|
-
});
|
64
|
-
var panels = usePanels();
|
65
|
-
return /*#__PURE__*/_react.default.createElement("div", _objectSpread(_objectSpread({}, props), {}, {
|
66
|
-
className: (0, _classnames.default)(prefixCls(), props.className)
|
67
|
-
}), panels.map(function (_ref3, index) {
|
68
|
-
var props = _ref3.props,
|
69
|
-
schema = _ref3.schema,
|
70
|
-
name = _ref3.name;
|
71
|
-
return /*#__PURE__*/_react.default.createElement(FormGroupGroupPanel, _objectSpread({
|
72
|
-
key: index,
|
73
|
-
xIndex: index
|
74
|
-
}, props), /*#__PURE__*/_react.default.createElement(_react2.RecursionField, {
|
75
|
-
schema: schema,
|
76
|
-
name: name
|
77
|
-
}));
|
78
|
-
}));
|
79
|
-
});
|
80
|
-
var GroupPanel = function GroupPanel(_ref4) {
|
81
|
-
var children = _ref4.children;
|
82
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children);
|
83
|
-
};
|
84
|
-
FormGroup.GroupPanel = GroupPanel;
|
85
|
-
var _default = FormGroup;
|
86
|
-
exports.default = _default;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
@import '../../global.scss';
|
2
|
-
|
3
|
-
$formily-group: #{$css-prefix}formily-group;
|
4
|
-
|
5
|
-
.#{$formily-group} {
|
6
|
-
.#{$formily-group}-panel {
|
7
|
-
.#{$formily-group}-panel-title {
|
8
|
-
margin-bottom: 20px;
|
9
|
-
font-size: var(--font-size-body-2, 14px);
|
10
|
-
line-height: 1.5;
|
11
|
-
font-weight: var(--font-weight-medium, 500);
|
12
|
-
color: var(--color-text1-4, #1a1a1a);
|
13
|
-
}
|
14
|
-
.#{$formily-group}-panel-divider {
|
15
|
-
margin-bottom: 20px;
|
16
|
-
width: 100%;
|
17
|
-
height: 1px;
|
18
|
-
line-height: 1;
|
19
|
-
overflow: hidden;
|
20
|
-
background-color: var(--color-line1-1, #eaeaea);
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.inputCategory = exports.componentMap = void 0;
|
7
|
-
var componentMap = {
|
8
|
-
Radio: 'Select',
|
9
|
-
Checkbox: 'Select',
|
10
|
-
CheckboxGroup: 'MultipleSelect'
|
11
|
-
};
|
12
|
-
exports.componentMap = componentMap;
|
13
|
-
var inputCategory = ['Input', 'Password', 'TextArea', 'NumberPicker', 'Percent', 'Money'];
|
14
|
-
exports.inputCategory = inputCategory;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import type { SelectProps } from '@alicloudfe/components/types/select';
|
3
|
-
import type { ButtonProps } from '@alicloudfe/components/types/button';
|
4
|
-
import './index.scss';
|
5
|
-
/**
|
6
|
-
* LightFilter
|
7
|
-
*/
|
8
|
-
interface ILightFiter {
|
9
|
-
size?: 'small' | 'medium' | 'large';
|
10
|
-
defaultFilterValue?: string;
|
11
|
-
filterValues?: string[];
|
12
|
-
onFilterChange?: (schema?: any) => any;
|
13
|
-
filterProps?: SelectProps;
|
14
|
-
buttonProps?: ButtonProps;
|
15
|
-
}
|
16
|
-
declare const LightFilter: React.FC<ILightFiter>;
|
17
|
-
export default LightFilter;
|