@flatbiz/antd 5.0.35 → 5.0.36
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/{_commonjsHelpers-B0GIDhER.js → _commonjsHelpers-nJh5OW6J.js} +2 -2
- package/dist/_commonjsHelpers-nJh5OW6J.js.map +1 -0
- package/dist/{_rollupPluginBabelHelpers-CP5aeNcJ.js → _rollupPluginBabelHelpers-BspM60Sw.js} +17 -17
- package/dist/{_rollupPluginBabelHelpers-CP5aeNcJ.js.map → _rollupPluginBabelHelpers-BspM60Sw.js.map} +1 -1
- package/dist/ace-editor-groovy/index.js +4 -4
- package/dist/ace-editor-java/index.js +4 -4
- package/dist/ace-editor-json/index.js +7 -7
- package/dist/ace-editor-mysql/index.js +7 -7
- package/dist/ace-editor-xml/index.js +7 -7
- package/dist/ai-search/index.js +6 -6
- package/dist/{ai-search-WcG2oakE.js → ai-search-BuvayoCT.js} +4 -4
- package/dist/{ai-search-WcG2oakE.js.map → ai-search-BuvayoCT.js.map} +1 -1
- package/dist/{alert-gN_wp9C1.js → alert-DGRFbqqK.js} +2 -2
- package/dist/{alert-gN_wp9C1.js.map → alert-DGRFbqqK.js.map} +1 -1
- package/dist/alert-wrapper/index.js +2 -2
- package/dist/amount-fen-input/index.js +2 -2
- package/dist/{amount-fen-input-DSueMlf8.js → amount-fen-input-DI4mxLeO.js} +2 -2
- package/dist/{amount-fen-input-DSueMlf8.js.map → amount-fen-input-DI4mxLeO.js.map} +1 -1
- package/dist/{amount-fen-input-goqylrM3.js → amount-fen-input-Vaayc5GF.js} +3 -3
- package/dist/{amount-fen-input-goqylrM3.js.map → amount-fen-input-Vaayc5GF.js.map} +1 -1
- package/dist/amount-fen-input-form-item/index.js +3 -3
- package/dist/anchor-steps/index.js +3 -3
- package/dist/{anchor-steps-BpBOQghC.js → anchor-steps-CqqmN9Pf.js} +3 -3
- package/dist/{anchor-steps-BpBOQghC.js.map → anchor-steps-CqqmN9Pf.js.map} +1 -1
- package/dist/block-layout/index.d.ts +2 -2
- package/dist/block-layout/index.js +2 -2
- package/dist/bootstrap/index.js +8 -8
- package/dist/{bootstrap-tw4J2cHF.js → bootstrap-BH_Lhcqj.js} +4 -4
- package/dist/{bootstrap-tw4J2cHF.js.map → bootstrap-BH_Lhcqj.js.map} +1 -1
- package/dist/box-grid/index.js +1 -1
- package/dist/box-grid/index.js.map +1 -1
- package/dist/button-operate/index.d.ts +5 -5
- package/dist/button-operate/index.js +9 -9
- package/dist/{button-operate-C4nUyzrt.js → button-operate-CUkR47Pj.js} +7 -7
- package/dist/button-operate-CUkR47Pj.js.map +1 -0
- package/dist/button-wrapper/index.d.ts +2 -1
- package/dist/button-wrapper/index.js +4 -4
- package/dist/{button-wrapper-C2koH6hy.js → button-wrapper-DezyMqPx.js} +4 -4
- package/dist/button-wrapper-DezyMqPx.js.map +1 -0
- package/dist/card-layout/index.js +3 -3
- package/dist/{card-layout-DjLanJsj.js → card-layout-P-Qb5pCT.js} +3 -3
- package/dist/{card-layout-DjLanJsj.js.map → card-layout-P-Qb5pCT.js.map} +1 -1
- package/dist/card-wrapper/index.js +2 -2
- package/dist/{card-wrapper-Bu6yyUKG.js → card-wrapper-C8YADYlW.js} +2 -2
- package/dist/{card-wrapper-Bu6yyUKG.js.map → card-wrapper-C8YADYlW.js.map} +1 -1
- package/dist/cascader-wrapper/index.js +4 -4
- package/dist/{cascader-wrapper-c5qaaIiU.js → cascader-wrapper-BFCjHaa9.js} +3 -3
- package/dist/{cascader-wrapper-c5qaaIiU.js.map → cascader-wrapper-BFCjHaa9.js.map} +1 -1
- package/dist/{cell-render-DqCOvBt_.js → cell-render-DzfB84nF.js} +6 -6
- package/dist/{cell-render-DqCOvBt_.js.map → cell-render-DzfB84nF.js.map} +1 -1
- package/dist/{center-BXeKtiny.js → center-DgQUmnwe.js} +3 -3
- package/dist/{center-BXeKtiny.js.map → center-DgQUmnwe.js.map} +1 -1
- package/dist/check-list/index.js +2 -2
- package/dist/check-list/index.js.map +1 -1
- package/dist/checkbox-wrapper/index.js +2 -2
- package/dist/{checkbox-wrapper-OT4OlsxX.js → checkbox-wrapper-BOIS5kIz.js} +2 -2
- package/dist/{checkbox-wrapper-OT4OlsxX.js.map → checkbox-wrapper-BOIS5kIz.js.map} +1 -1
- package/dist/{color-picker-8w4ZPYlJ.js → color-picker-BYGCHXn2.js} +3 -3
- package/dist/{color-picker-8w4ZPYlJ.js.map → color-picker-BYGCHXn2.js.map} +1 -1
- package/dist/color-picker-wrapper/index.js +3 -3
- package/dist/config-provider-wrapper/index.js +2 -2
- package/dist/{config-provider-wrapper-Dbk1Er0W.js → config-provider-wrapper-C72dPUJZ.js} +2 -2
- package/dist/{config-provider-wrapper-Dbk1Er0W.js.map → config-provider-wrapper-C72dPUJZ.js.map} +1 -1
- package/dist/{content-BrpRj7zk.js → content-B5Twifti.js} +4 -4
- package/dist/content-B5Twifti.js.map +1 -0
- package/dist/{context-BOYja0yN.js → context-BjWI-TkR.js} +2 -2
- package/dist/{context-BOYja0yN.js.map → context-BjWI-TkR.js.map} +1 -1
- package/dist/css-node-hover/index.js +2 -2
- package/dist/{css-node-hover-DrXHYNCC.js → css-node-hover-2asP-4iL.js} +2 -2
- package/dist/{css-node-hover-DrXHYNCC.js.map → css-node-hover-2asP-4iL.js.map} +1 -1
- package/dist/date-picker-wrapper/index.js +3 -3
- package/dist/{date-picker-wrapper-2KEdKz5v.js → date-picker-wrapper-D0_g483p.js} +3 -3
- package/dist/{date-picker-wrapper-2KEdKz5v.js.map → date-picker-wrapper-D0_g483p.js.map} +1 -1
- package/dist/date-range-picker-wrapper/index.js +3 -3
- package/dist/{date-range-picker-wrapper-BO6uJjDk.js → date-range-picker-wrapper-BYOsf0I5.js} +3 -3
- package/dist/{date-range-picker-wrapper-BO6uJjDk.js.map → date-range-picker-wrapper-BYOsf0I5.js.map} +1 -1
- package/dist/date-range-picker-wrapper-form-item/index.js +6 -6
- package/dist/{date-range-picker-wrapper-form-item-CkuOvgHk.js → date-range-picker-wrapper-form-item-C_ClxVlZ.js} +5 -5
- package/dist/{date-range-picker-wrapper-form-item-CkuOvgHk.js.map → date-range-picker-wrapper-form-item-C_ClxVlZ.js.map} +1 -1
- package/dist/delete-node/index.js +3 -3
- package/dist/{delete-node-C6jwhyxz.js → delete-node-BIETvJjg.js} +3 -3
- package/dist/{delete-node-C6jwhyxz.js.map → delete-node-BIETvJjg.js.map} +1 -1
- package/dist/{dependencies-CwiS3Chb.js → dependencies-BPs1pFvo.js} +2 -2
- package/dist/{dependencies-CwiS3Chb.js.map → dependencies-BPs1pFvo.js.map} +1 -1
- package/dist/dialog-alert/index.d.ts +5 -5
- package/dist/dialog-alert/index.js +8 -8
- package/dist/{dialog-alert-BJUJNVk3.js → dialog-alert-oCn1pNH0.js} +3 -3
- package/dist/dialog-alert-oCn1pNH0.js.map +1 -0
- package/dist/dialog-confirm/index.d.ts +4 -4
- package/dist/dialog-confirm/index.js +7 -7
- package/dist/{dialog-confirm-CagitgW9.js → dialog-confirm-CQDn4_GG.js} +3 -3
- package/dist/{dialog-confirm-CagitgW9.js.map → dialog-confirm-CQDn4_GG.js.map} +1 -1
- package/dist/dialog-drag-modal/index.d.ts +4 -4
- package/dist/dialog-drag-modal/index.js +8 -8
- package/dist/dialog-drawer/index.d.ts +4 -4
- package/dist/dialog-drawer/index.js +6 -6
- package/dist/{dialog-drawer-CTo7BS1O.js → dialog-drawer-D_NeRR-R.js} +5 -5
- package/dist/dialog-drawer-D_NeRR-R.js.map +1 -0
- package/dist/dialog-drawer-content/index.d.ts +4 -4
- package/dist/dialog-drawer-content/index.js +6 -6
- package/dist/dialog-loading/index.js +2 -2
- package/dist/{dialog-loading-DWAkSW3k.js → dialog-loading-Bm6n4_3R.js} +2 -2
- package/dist/{dialog-loading-DWAkSW3k.js.map → dialog-loading-Bm6n4_3R.js.map} +1 -1
- package/dist/dialog-modal/index.d.ts +4 -4
- package/dist/dialog-modal/index.js +6 -6
- package/dist/{dialog-modal-Nyty6_h7.js → dialog-modal-xVzOgsQO.js} +5 -5
- package/dist/dialog-modal-xVzOgsQO.js.map +1 -0
- package/dist/dialog-preview-image/index.js +2 -2
- package/dist/{drag-CD2Oqu4S.js → drag-CLGaRrbr.js} +4 -4
- package/dist/drag-CLGaRrbr.js.map +1 -0
- package/dist/drag-collapse/index.js +2 -2
- package/dist/{drag-collapse-C9Ufwg8F.js → drag-collapse-D2mbeDvD.js} +2 -2
- package/dist/{drag-collapse-C9Ufwg8F.js.map → drag-collapse-D2mbeDvD.js.map} +1 -1
- package/dist/{drag-collapse-fR-vIpas.js → drag-collapse-DhZ1V5P6.js} +2 -2
- package/dist/{drag-collapse-fR-vIpas.js.map → drag-collapse-DhZ1V5P6.js.map} +1 -1
- package/dist/drag-collapse-form-list/index.js +2 -2
- package/dist/drag-editable-card/index.d.ts +1 -1
- package/dist/drag-editable-card/index.js +13 -13
- package/dist/drag-editable-table/index.d.ts +1 -2
- package/dist/drag-editable-table/index.js +26 -26
- package/dist/drag-editable-table-pro/index.js +10 -10
- package/dist/drag-form-list/index.js +8 -8
- package/dist/{drag-form-list-_DJotlyC.js → drag-form-list-BrIW06Ex.js} +5 -5
- package/dist/{drag-form-list-_DJotlyC.js.map → drag-form-list-BrIW06Ex.js.map} +1 -1
- package/dist/{drag-modal-DVq260Mc.js → drag-modal-B7atMt2P.js} +11 -11
- package/dist/{drag-modal-DVq260Mc.js.map → drag-modal-B7atMt2P.js.map} +1 -1
- package/dist/drag-table/index.js +3 -3
- package/dist/{drag-table-CYRFOAYX.js → drag-table-B5s0LEwN.js} +3 -3
- package/dist/drag-table-B5s0LEwN.js.map +1 -0
- package/dist/{drag-Wzt5Qu0X.js → drag-xBmmIPTD.js} +4 -4
- package/dist/drag-xBmmIPTD.js.map +1 -0
- package/dist/{drawer-BI8T3w7e.js → drawer-BITwshmb.js} +4 -4
- package/dist/drawer-BITwshmb.js.map +1 -0
- package/dist/dropdown-menu-wrapper/index.d.ts +5 -5
- package/dist/dropdown-menu-wrapper/index.js +8 -8
- package/dist/{dropdown-menu-wrapper-Dti5BObg.js → dropdown-menu-wrapper-CfZMQb2W.js} +7 -7
- package/dist/dropdown-menu-wrapper-CfZMQb2W.js.map +1 -0
- package/dist/easy-form/index.js +3 -3
- package/dist/easy-table/index.d.ts +2 -2
- package/dist/easy-table/index.js +20 -20
- package/dist/easy-table/index.js.map +1 -1
- package/dist/editable-card/index.d.ts +1 -1
- package/dist/editable-card/index.js +12 -12
- package/dist/{editable-card-BrnWDl8j.js → editable-card-Dty6epO9.js} +6 -6
- package/dist/editable-card-Dty6epO9.js.map +1 -0
- package/dist/{editable-card-BN9ViZz0.js → editable-card-hr9oCXyN.js} +9 -9
- package/dist/editable-card-hr9oCXyN.js.map +1 -0
- package/dist/editable-field/index.js +3 -3
- package/dist/{editable-field-CJrq0eiF.js → editable-field-BH6M_S9W.js} +3 -3
- package/dist/{editable-field-CJrq0eiF.js.map → editable-field-BH6M_S9W.js.map} +1 -1
- package/dist/editable-table/index.d.ts +1 -2
- package/dist/editable-table/index.js +24 -24
- package/dist/{editable-table-D2-osC9X.js → editable-table-D5Fc0B1_.js} +13 -13
- package/dist/{editable-table-D2-osC9X.js.map → editable-table-D5Fc0B1_.js.map} +1 -1
- package/dist/editable-table-pro/index.js +8 -8
- package/dist/{editable-table-pro-DuxoUyNf.js → editable-table-pro-B12YG7J_.js} +7 -7
- package/dist/editable-table-pro-B12YG7J_.js.map +1 -0
- package/dist/{editor-_CPhhFJO.js → editor-C_Wf256R.js} +4 -4
- package/dist/{editor-_CPhhFJO.js.map → editor-C_Wf256R.js.map} +1 -1
- package/dist/{editor-D-wv_4El.js → editor-CncecOdy.js} +5 -5
- package/dist/{editor-D-wv_4El.js.map → editor-CncecOdy.js.map} +1 -1
- package/dist/{editor-D8ot-YJF.js → editor-CxXSgnLP.js} +3 -3
- package/dist/{editor-D8ot-YJF.js.map → editor-CxXSgnLP.js.map} +1 -1
- package/dist/{editor-BBLseWzD.js → editor-Dhs7idH7.js} +3 -3
- package/dist/{editor-BBLseWzD.js.map → editor-Dhs7idH7.js.map} +1 -1
- package/dist/{editor-DU3q52Nx.js → editor-i79rPG9r.js} +5 -5
- package/dist/{editor-DU3q52Nx.js.map → editor-i79rPG9r.js.map} +1 -1
- package/dist/{error-boundary-WH8mMuvq.js → error-boundary-D6RX4EQZ.js} +8 -8
- package/dist/error-boundary-D6RX4EQZ.js.map +1 -0
- package/dist/error-boundary-wrapper/index.d.ts +6 -5
- package/dist/error-boundary-wrapper/index.js +3 -3
- package/dist/fba-app/index.d.ts +7 -7
- package/dist/fba-app/index.js +7 -7
- package/dist/{fba-app-CQ6DtVqw.js → fba-app-BlOEAmoC.js} +36 -36
- package/dist/fba-app-BlOEAmoC.js.map +1 -0
- package/dist/fba-hooks/index.js +1 -1
- package/dist/fba-hooks/index.js.map +1 -1
- package/dist/fba-utils/index.js +1 -1
- package/dist/{fba-utils-Dfbczn1S.js → fba-utils-okhb5eSJ.js} +2 -2
- package/dist/{fba-utils-Dfbczn1S.js.map → fba-utils-okhb5eSJ.js.map} +1 -1
- package/dist/file-export/index.js +2 -2
- package/dist/{file-export-CRiO6KsI.js → file-export-B3RBS7Wl.js} +2 -2
- package/dist/{file-export-CRiO6KsI.js.map → file-export-B3RBS7Wl.js.map} +1 -1
- package/dist/file-import/index.d.ts +3 -3
- package/dist/file-import/index.js +2 -2
- package/dist/{file-import-DqTOsgdP.js → file-import-pbdSC5lZ.js} +2 -2
- package/dist/file-import-pbdSC5lZ.js.map +1 -0
- package/dist/file-select/index.d.ts +2 -2
- package/dist/file-select/index.js +2 -2
- package/dist/{file-select-E0G9jIBv.js → file-select-BFrXFyKW.js} +2 -2
- package/dist/file-select-BFrXFyKW.js.map +1 -0
- package/dist/flex-layout/index.js +2 -2
- package/dist/{flex-layout-zremxICp.js → flex-layout-BGtMe7zr.js} +2 -2
- package/dist/{flex-layout-zremxICp.js.map → flex-layout-BGtMe7zr.js.map} +1 -1
- package/dist/{form-DNtjXzAW.js → form-398WU_jI.js} +3 -3
- package/dist/{form-DNtjXzAW.js.map → form-398WU_jI.js.map} +1 -1
- package/dist/form-grid/index.js +1 -1
- package/dist/form-grid/index.js.map +1 -1
- package/dist/form-item-group/index.js +2 -2
- package/dist/form-item-span/index.d.ts +4 -2
- package/dist/form-item-span/index.js +2 -2
- package/dist/form-item-text/index.js +5 -5
- package/dist/{form-item-text-Cd-o5xce.js → form-item-text-bxy5q8tw.js} +5 -5
- package/dist/{form-item-text-Cd-o5xce.js.map → form-item-text-bxy5q8tw.js.map} +1 -1
- package/dist/form-item-wrapper/index.js +2 -2
- package/dist/{form-item-wrapper-CkGsPiNS.js → form-item-wrapper-Ci7-5IKi.js} +2 -2
- package/dist/{form-item-wrapper-CkGsPiNS.js.map → form-item-wrapper-Ci7-5IKi.js.map} +1 -1
- package/dist/form-item-wrapper-dependencies/index.js +2 -2
- package/dist/form-list-wrapper/index.js +7 -7
- package/dist/{form-list-wrapper-Cw2GlFg4.js → form-list-wrapper-BTSuq_pI.js} +4 -4
- package/dist/{form-list-wrapper-Cw2GlFg4.js.map → form-list-wrapper-BTSuq_pI.js.map} +1 -1
- package/dist/form-wrapper/index.js +2 -2
- package/dist/{form-wrapper-BSwxGtCk.js → form-wrapper-DBDMN0mN.js} +2 -2
- package/dist/{form-wrapper-BSwxGtCk.js.map → form-wrapper-DBDMN0mN.js.map} +1 -1
- package/dist/gap/index.js +2 -2
- package/dist/{gap-D_CWfDQP.js → gap-5v_ndf2v.js} +2 -2
- package/dist/{gap-D_CWfDQP.js.map → gap-5v_ndf2v.js.map} +1 -1
- package/dist/icon-wrapper/index.d.ts +4 -4
- package/dist/icon-wrapper/index.js +2 -2
- package/dist/{icon-wrapper-GTNh6wtb.js → icon-wrapper-DfWj_rer.js} +2 -2
- package/dist/icon-wrapper-DfWj_rer.js.map +1 -0
- package/dist/{in-view-d3iIBPld.js → in-view-XeG6cIRO.js} +7 -7
- package/dist/{in-view-d3iIBPld.js.map → in-view-XeG6cIRO.js.map} +1 -1
- package/dist/index.d.ts +457 -460
- package/dist/index.js +113 -113
- package/dist/input-search-wrapper/index.js +2 -2
- package/dist/{input-search-wrapper-c71s0_t_.js → input-search-wrapper-dVFSFf3t.js} +2 -2
- package/dist/{input-search-wrapper-c71s0_t_.js.map → input-search-wrapper-dVFSFf3t.js.map} +1 -1
- package/dist/input-text-area-wrapper/index.js +2 -2
- package/dist/{input-text-area-wrapper-B9n2rosB.js → input-text-area-wrapper-CRi9fWSJ.js} +2 -2
- package/dist/{input-text-area-wrapper-B9n2rosB.js.map → input-text-area-wrapper-CRi9fWSJ.js.map} +1 -1
- package/dist/input-wrapper/index.js +2 -2
- package/dist/{input-wrapper-uKQO_C6_.js → input-wrapper-hEJP2UIk.js} +2 -2
- package/dist/{input-wrapper-uKQO_C6_.js.map → input-wrapper-hEJP2UIk.js.map} +1 -1
- package/dist/{label-value-BadY_U3T.js → label-value-CcUdtnY1.js} +5 -5
- package/dist/{label-value-BadY_U3T.js.map → label-value-CcUdtnY1.js.map} +1 -1
- package/dist/label-value-layout/index.js +2 -2
- package/dist/{label-value-layout-BMj_6nzd.js → label-value-layout-CbKTtTXJ.js} +2 -2
- package/dist/{label-value-layout-BMj_6nzd.js.map → label-value-layout-CbKTtTXJ.js.map} +1 -1
- package/dist/label-value-render/index.js +5 -5
- package/dist/{layout-Bl4P3Cv6.js → layout-2woF_D6T.js} +2 -2
- package/dist/layout-2woF_D6T.js.map +1 -0
- package/dist/local-loading/index.js +2 -2
- package/dist/local-loading/index.js.map +1 -1
- package/dist/mention-editor/index.js +3 -3
- package/dist/{mention-editor-OACZLcF7.js → mention-editor-zgAlQ8Cx.js} +3 -3
- package/dist/{mention-editor-OACZLcF7.js.map → mention-editor-zgAlQ8Cx.js.map} +1 -1
- package/dist/{mentions-BRY_sAl9.js → mentions-950t_JC_.js} +8 -8
- package/dist/{mentions-BRY_sAl9.js.map → mentions-950t_JC_.js.map} +1 -1
- package/dist/mentions-wrapper/index.js +2 -2
- package/dist/modal-action/index.js +2 -2
- package/dist/{modal-action-CdaBPYhO.js → modal-action-kQ60nGCG.js} +2 -2
- package/dist/{modal-action-CdaBPYhO.js.map → modal-action-kQ60nGCG.js.map} +1 -1
- package/dist/{number-range-CByi394c.js → number-range-DUyTW0V1.js} +4 -4
- package/dist/{number-range-CByi394c.js.map → number-range-DUyTW0V1.js.map} +1 -1
- package/dist/number-range-form-item/index.js +4 -4
- package/dist/{pagination-B42W0Zo3.js → pagination-2j2BYp57.js} +2 -3
- package/dist/pagination-2j2BYp57.js.map +1 -0
- package/dist/pagination-wrapper/index.js +2 -3
- package/dist/pagination-wrapper/index.js.map +1 -1
- package/dist/pdf/index.js +1 -1
- package/dist/pdf/index.js.map +1 -1
- package/dist/pdf-preview/index.js +3 -3
- package/dist/permission/index.js +2 -2
- package/dist/{permission-BXFgP5jk.js → permission-D5AvZAS8.js} +2 -2
- package/dist/{permission-BXFgP5jk.js.map → permission-D5AvZAS8.js.map} +1 -1
- package/dist/{preview-BDryCcSx.js → preview-DvEwmG2h.js} +3 -3
- package/dist/{preview-BDryCcSx.js.map → preview-DvEwmG2h.js.map} +1 -1
- package/dist/{preview-image-Dxw8Vx6a.js → preview-image-BCBOv4h_.js} +2 -2
- package/dist/{preview-image-Dxw8Vx6a.js.map → preview-image-BCBOv4h_.js.map} +1 -1
- package/dist/radio-group-wrapper-Dip9OsdR.js.map +1 -1
- package/dist/relation-tree/index.js +2 -2
- package/dist/{relation-tree-C6XAfRoa.js → relation-tree-BMas57Ck.js} +2 -2
- package/dist/{relation-tree-C6XAfRoa.js.map → relation-tree-BMas57Ck.js.map} +1 -1
- package/dist/request-status/index.js +3 -3
- package/dist/{request-status-CJ_zkp3v.js → request-status-5M9DP8-J.js} +2 -2
- package/dist/{request-status-CJ_zkp3v.js.map → request-status-5M9DP8-J.js.map} +1 -1
- package/dist/resizable-drawer/index.d.ts +11 -12
- package/dist/resizable-drawer/index.js +6 -6
- package/dist/rich-text-editor/index.js +2 -2
- package/dist/{rich-text-editor-BMDEIxeg.js → rich-text-editor-cqzUxX_s.js} +2 -2
- package/dist/{rich-text-editor-BMDEIxeg.js.map → rich-text-editor-cqzUxX_s.js.map} +1 -1
- package/dist/rich-text-viewer/index.js +4 -4
- package/dist/{rich-text-viewer-BoeWMAbJ.js → rich-text-viewer-CPAJ3JD1.js} +4 -4
- package/dist/{rich-text-viewer-BoeWMAbJ.js.map → rich-text-viewer-CPAJ3JD1.js.map} +1 -1
- package/dist/roll-location-center/index.js +2 -2
- package/dist/roll-location-in-view/index.js +2 -2
- package/dist/rule-describe/index.js +3 -3
- package/dist/{rule-describe-BZqpizoH.js → rule-describe-BkkX7ukt.js} +2 -2
- package/dist/{rule-describe-BZqpizoH.js.map → rule-describe-BkkX7ukt.js.map} +1 -1
- package/dist/{search-ZcmX1Q6C.js → search-BbKmdP-9.js} +4 -4
- package/dist/{search-ZcmX1Q6C.js.map → search-BbKmdP-9.js.map} +1 -1
- package/dist/search-form/index.d.ts +2 -2
- package/dist/search-form/index.js +6 -6
- package/dist/search-menu/index.js +4 -4
- package/dist/{search-menu-BT9wgBth.js → search-menu-N7nz0XoH.js} +4 -4
- package/dist/{search-menu-BT9wgBth.js.map → search-menu-N7nz0XoH.js.map} +1 -1
- package/dist/{selector-DmDKP__k.js → selector-CQ_yMKjh.js} +3 -3
- package/dist/selector-CQ_yMKjh.js.map +1 -0
- package/dist/{selector-Bt2nQLHF.js → selector-D0YxuDbf.js} +2 -3
- package/dist/{selector-Bt2nQLHF.js.map → selector-D0YxuDbf.js.map} +1 -1
- package/dist/selector-wrapper/index.js +4 -4
- package/dist/{selector-wrapper-gY1oRe4Y.js → selector-wrapper-BSpsy8KA.js} +3 -3
- package/dist/{selector-wrapper-gY1oRe4Y.js.map → selector-wrapper-BSpsy8KA.js.map} +1 -1
- package/dist/selector-wrapper-search/index.js +4 -4
- package/dist/{selector-wrapper-search-cCVI4svG.js → selector-wrapper-search-DG0GPWl6.js} +3 -3
- package/dist/{selector-wrapper-search-cCVI4svG.js.map → selector-wrapper-search-DG0GPWl6.js.map} +1 -1
- package/dist/selector-wrapper-simple/index.js +4 -4
- package/dist/{selector-wrapper-simple-CdvME51-.js → selector-wrapper-simple-BE6H7nX7.js} +3 -3
- package/dist/{selector-wrapper-simple-CdvME51-.js.map → selector-wrapper-simple-BE6H7nX7.js.map} +1 -1
- package/dist/simple-layout/index.js +1 -1
- package/dist/sms-count-down/index.js +2 -2
- package/dist/{sms-count-down-C2JyVn9C.js → sms-count-down-DyovY2s3.js} +2 -2
- package/dist/{sms-count-down-C2JyVn9C.js.map → sms-count-down-DyovY2s3.js.map} +1 -1
- package/dist/{span-DWxMz7SD.js → span-Cjqb-rEm.js} +2 -2
- package/dist/span-Cjqb-rEm.js.map +1 -0
- package/dist/{split-hdcaLHCj.js → split-BHDOAdvw.js} +2 -2
- package/dist/{split-hdcaLHCj.js.map → split-BHDOAdvw.js.map} +1 -1
- package/dist/split-wrapper/index.js +2 -2
- package/dist/{svg-7tZHNcxX.js → svg-CqFW3W-s.js} +2 -2
- package/dist/{svg-7tZHNcxX.js.map → svg-CqFW3W-s.js.map} +1 -1
- package/dist/svg-http-view/index.js +2 -2
- package/dist/switch-confirm-wrapper/index.js +2 -2
- package/dist/{switch-confirm-wrapper-Dy1NP5Jr.js → switch-confirm-wrapper-CFFD0YJY.js} +2 -2
- package/dist/{switch-confirm-wrapper-Dy1NP5Jr.js.map → switch-confirm-wrapper-CFFD0YJY.js.map} +1 -1
- package/dist/switch-wrapper/index.js +2 -2
- package/dist/{switch-wrapper-6Cz0lmJf.js → switch-wrapper-CxGztawn.js} +2 -2
- package/dist/{switch-wrapper-6Cz0lmJf.js.map → switch-wrapper-CxGztawn.js.map} +1 -1
- package/dist/{symbol-CE0FGxOG.js → symbol-DcM8okBP.js} +2 -2
- package/dist/{symbol-CE0FGxOG.js.map → symbol-DcM8okBP.js.map} +1 -1
- package/dist/table-cell-render/index.d.ts +5 -5
- package/dist/table-cell-render/index.js +11 -11
- package/dist/table-scrollbar/index.d.ts +3 -1
- package/dist/table-scrollbar/index.js +2 -2
- package/dist/{table-scrollbar-BdG-x6ZM.js → table-scrollbar-yqz5FkCz.js} +2 -2
- package/dist/table-scrollbar-yqz5FkCz.js.map +1 -0
- package/dist/{tabs-Co68dF0x.js → tabs-cpy2bCpo.js} +2 -2
- package/dist/{tabs-Co68dF0x.js.map → tabs-cpy2bCpo.js.map} +1 -1
- package/dist/tabs-sticky/index.js +2 -2
- package/dist/tabs-wrapper/index.js +2 -2
- package/dist/{tabs-wrapper-BXLWJgLy.js → tabs-wrapper-IxpPTX9z.js} +2 -2
- package/dist/{tabs-wrapper-BXLWJgLy.js.map → tabs-wrapper-IxpPTX9z.js.map} +1 -1
- package/dist/tag-group/index.js +2 -2
- package/dist/{tag-group-DRGR3Av9.js → tag-group-B2oj-CYo.js} +2 -2
- package/dist/{tag-group-DRGR3Av9.js.map → tag-group-B2oj-CYo.js.map} +1 -1
- package/dist/{tag-list-DgAFiV_K.js → tag-list-B0OTlda6.js} +2 -2
- package/dist/{tag-list-DgAFiV_K.js.map → tag-list-B0OTlda6.js.map} +1 -1
- package/dist/tag-list-render/index.js +2 -2
- package/dist/tag-list-select-C8_X2SS-.js.map +1 -1
- package/dist/tag-wrapper/index.d.ts +2 -1
- package/dist/tag-wrapper/index.js +2 -2
- package/dist/{tag-wrapper-CDjtf4e8.js → tag-wrapper-CJsZ8Jvy.js} +2 -2
- package/dist/tag-wrapper-CJsZ8Jvy.js.map +1 -0
- package/dist/text-overflow/index.js +2 -2
- package/dist/{text-overflow-MS3fPWKe.js → text-overflow-C42UFIyh.js} +2 -2
- package/dist/{text-overflow-MS3fPWKe.js.map → text-overflow-C42UFIyh.js.map} +1 -1
- package/dist/text-symbol-wrapper/index.js +2 -2
- package/dist/{time-CeL7904f.js → time-Cv4_lLXu.js} +2 -2
- package/dist/{time-CeL7904f.js.map → time-Cv4_lLXu.js.map} +1 -1
- package/dist/time-picker-wrapper/index.js +3 -3
- package/dist/{time-picker-wrapper-UPKqZ4U5.js → time-picker-wrapper-AQg6UCts.js} +3 -3
- package/dist/{time-picker-wrapper-UPKqZ4U5.js.map → time-picker-wrapper-AQg6UCts.js.map} +1 -1
- package/dist/time-range-picker-wrapper/index.js +3 -3
- package/dist/{time-range-picker-wrapper-B7bl-p2p.js → time-range-picker-wrapper-C2Y0j-w1.js} +3 -3
- package/dist/{time-range-picker-wrapper-B7bl-p2p.js.map → time-range-picker-wrapper-C2Y0j-w1.js.map} +1 -1
- package/dist/time-range-picker-wrapper-form-item/index.js +6 -6
- package/dist/{time-range-picker-wrapper-form-item-BXkIqi-2.js → time-range-picker-wrapper-form-item-Cl0i2rZv.js} +5 -5
- package/dist/{time-range-picker-wrapper-form-item-BXkIqi-2.js.map → time-range-picker-wrapper-form-item-Cl0i2rZv.js.map} +1 -1
- package/dist/tips-title/index.js +2 -2
- package/dist/{tips-title-B7ifvKpk.js → tips-title-B6qZn_zc.js} +2 -2
- package/dist/{tips-title-B7ifvKpk.js.map → tips-title-B6qZn_zc.js.map} +1 -1
- package/dist/tips-wrapper/index.js +2 -2
- package/dist/{tips-wrapper-DjVZ0hGy.js → tips-wrapper-DvbgHMwl.js} +2 -2
- package/dist/{tips-wrapper-DjVZ0hGy.js.map → tips-wrapper-DvbgHMwl.js.map} +1 -1
- package/dist/tree-modal/index.d.ts +5 -5
- package/dist/tree-modal/index.js +14 -15
- package/dist/tree-modal/index.js.map +1 -1
- package/dist/tree-modal-selector/index.d.ts +5 -5
- package/dist/tree-modal-selector/index.js +15 -15
- package/dist/tree-selector-wrapper/index.js +4 -4
- package/dist/tree-wrapper/index.d.ts +5 -5
- package/dist/tree-wrapper/index.js +13 -13
- package/dist/tree-wrapper/index.js.map +1 -1
- package/dist/upload-wrapper/index.d.ts +1 -2
- package/dist/upload-wrapper/index.js +5 -5
- package/dist/{upload-wrapper-BUz9bu5L.js → upload-wrapper--IfkLPBP.js} +3 -3
- package/dist/upload-wrapper--IfkLPBP.js.map +1 -0
- package/dist/x-mind-preview/index.d.ts +3 -3
- package/dist/x-mind-preview/index.js +2 -2
- package/dist/{x-mind-preview-z-MeFlwz.js → x-mind-preview-Bx7UmHAu.js} +2 -2
- package/dist/x-mind-preview-Bx7UmHAu.js.map +1 -0
- package/package.json +4 -4
- package/dist/_commonjsHelpers-B0GIDhER.js.map +0 -1
- package/dist/button-operate-C4nUyzrt.js.map +0 -1
- package/dist/button-wrapper-C2koH6hy.js.map +0 -1
- package/dist/content-BrpRj7zk.js.map +0 -1
- package/dist/dialog-alert-BJUJNVk3.js.map +0 -1
- package/dist/dialog-drawer-CTo7BS1O.js.map +0 -1
- package/dist/dialog-modal-Nyty6_h7.js.map +0 -1
- package/dist/drag-CD2Oqu4S.js.map +0 -1
- package/dist/drag-Wzt5Qu0X.js.map +0 -1
- package/dist/drag-table-CYRFOAYX.js.map +0 -1
- package/dist/drawer-BI8T3w7e.js.map +0 -1
- package/dist/dropdown-menu-wrapper-Dti5BObg.js.map +0 -1
- package/dist/editable-card-BN9ViZz0.js.map +0 -1
- package/dist/editable-card-BrnWDl8j.js.map +0 -1
- package/dist/editable-table-pro-DuxoUyNf.js.map +0 -1
- package/dist/error-boundary-WH8mMuvq.js.map +0 -1
- package/dist/fba-app-CQ6DtVqw.js.map +0 -1
- package/dist/file-import-DqTOsgdP.js.map +0 -1
- package/dist/file-select-E0G9jIBv.js.map +0 -1
- package/dist/icon-wrapper-GTNh6wtb.js.map +0 -1
- package/dist/layout-Bl4P3Cv6.js.map +0 -1
- package/dist/pagination-B42W0Zo3.js.map +0 -1
- package/dist/selector-DmDKP__k.js.map +0 -1
- package/dist/span-DWxMz7SD.js.map +0 -1
- package/dist/table-scrollbar-BdG-x6ZM.js.map +0 -1
- package/dist/tag-wrapper-CDjtf4e8.js.map +0 -1
- package/dist/upload-wrapper-BUz9bu5L.js.map +0 -1
- package/dist/x-mind-preview-z-MeFlwz.js.map +0 -1
package/dist/drag-table/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import './index.css';
|
|
3
3
|
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
4
4
|
|
|
5
|
-
export { D as DragTable } from '../drag-table-
|
|
6
|
-
import '../_rollupPluginBabelHelpers-
|
|
5
|
+
export { D as DragTable } from '../drag-table-B5s0LEwN.js';
|
|
6
|
+
import '../_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'antd';
|
|
9
9
|
import '@dnd-kit/core';
|
|
@@ -14,7 +14,7 @@ import '@dnd-kit/utilities';
|
|
|
14
14
|
import 'react/jsx-runtime';
|
|
15
15
|
import '@ant-design/icons/es/icons/DragOutlined.js';
|
|
16
16
|
import '@flatbiz/utils';
|
|
17
|
-
import '../icon-wrapper-
|
|
17
|
+
import '../icon-wrapper-DfWj_rer.js';
|
|
18
18
|
import '@dimjs/utils/class-names/class-names';
|
|
19
19
|
import '@dimjs/lang/is-undefined';
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
2
2
|
|
|
3
|
-
import { a as _slicedToArray, b as _objectSpread2, _ as _objectWithoutProperties, c as _toConsumableArray } from './_rollupPluginBabelHelpers-
|
|
3
|
+
import { a as _slicedToArray, b as _objectSpread2, _ as _objectWithoutProperties, c as _toConsumableArray } from './_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
4
4
|
import { Children, cloneElement, isValidElement, useState, useEffect, useMemo } from 'react';
|
|
5
5
|
import { Table } from 'antd';
|
|
6
6
|
import { useSensors, useSensor, PointerSensor, DndContext } from '@dnd-kit/core';
|
|
@@ -11,7 +11,7 @@ import { CSS } from '@dnd-kit/utilities';
|
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
import _DragOutlined from '@ant-design/icons/es/icons/DragOutlined.js';
|
|
13
13
|
import { noop } from '@flatbiz/utils';
|
|
14
|
-
import { I as IconWrapper } from './icon-wrapper-
|
|
14
|
+
import { I as IconWrapper } from './icon-wrapper-DfWj_rer.js';
|
|
15
15
|
|
|
16
16
|
var _createCtx = createCtx(),
|
|
17
17
|
_createCtx2 = _slicedToArray(_createCtx, 2),
|
|
@@ -214,4 +214,4 @@ var DragTable = function DragTable(props) {
|
|
|
214
214
|
};
|
|
215
215
|
|
|
216
216
|
export { DragTable as D };
|
|
217
|
-
//# sourceMappingURL=drag-table-
|
|
217
|
+
//# sourceMappingURL=drag-table-B5s0LEwN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drag-table-B5s0LEwN.js","sources":["@flatbiz/antd/src/drag-table/context.ts","@flatbiz/antd/src/drag-table/table-tr.tsx","@flatbiz/antd/src/drag-table/table-tr-handle.tsx","@flatbiz/antd/src/drag-table/row.tsx","@flatbiz/antd/src/drag-table/drag-table.tsx"],"sourcesContent":["import { type ReactElement } from 'react';\nimport { createCtx } from '@wove/react';\n\nexport const [getCtx, CtxProvider] = createCtx<{\n dragIcon?: false | ReactElement;\n}>();\n","import type { CSSProperties } from 'react';\nimport { useSortable } from '@dnd-kit/sortable';\nimport { CSS } from '@dnd-kit/utilities';\n\nexport const TableTr = (props) => {\n const { listeners, setNodeRef, transform, transition, isDragging } =\n useSortable({\n id: props['data-row-key'],\n });\n\n const style: CSSProperties = {\n ...props.style,\n transform: CSS.Transform.toString(transform && { ...transform, scaleY: 1 }),\n transition,\n cursor: 'move',\n ...(isDragging\n ? {\n position: 'relative',\n zIndex: 9999,\n boxShadow: ' 0px 0px 12px 4px rgba(34, 33, 81, 0.1)',\n }\n : {}),\n };\n\n return <tr {...props} ref={setNodeRef} style={style} {...listeners} />;\n};\n","import {\n Children,\n cloneElement,\n type CSSProperties,\n isValidElement,\n type ReactElement,\n} from 'react';\nimport { type RowProps } from 'antd';\nimport { DragOutlined } from '@ant-design/icons';\nimport { useSortable } from '@dnd-kit/sortable';\nimport { CSS } from '@dnd-kit/utilities';\nimport { noop } from '@flatbiz/utils';\nimport { IconWrapper } from '../icon-wrapper/icon-wrapper.jsx';\ntype TableTrHandleProps = RowProps & {\n dragIcon?: false | ReactElement;\n};\nexport const TableTrHandle = (props: TableTrHandleProps) => {\n const { dragIcon, ...innerProps } = props;\n const rowId = innerProps['data-row-key'];\n const {\n setActivatorNodeRef,\n listeners,\n setNodeRef,\n transform,\n transition,\n isDragging,\n } = useSortable({\n id: rowId,\n });\n\n if (!rowId) {\n return <tr {...innerProps} />;\n }\n const style: CSSProperties = {\n ...innerProps.style,\n transform: CSS.Transform.toString(transform && { ...transform, scaleY: 1 }),\n transition,\n cursor: dragIcon === false ? 'move' : undefined,\n ...(isDragging\n ? {\n position: 'relative',\n zIndex: 9999,\n boxShadow: ' 0px 0px 12px 4px rgba(34, 33, 81, 0.1)',\n backgroundColor: 'var(--block-bg-color)',\n }\n : {}),\n };\n const iconElement = isValidElement(dragIcon) ? dragIcon : <DragOutlined />;\n return (\n <tr {...innerProps} ref={setNodeRef} style={style}>\n {Children.map(props.children, (child) => {\n if ((child as ReactElement).key === 'sort') {\n return cloneElement(child as ReactElement, {\n children: (\n <span\n ref={setActivatorNodeRef}\n style={{\n touchAction: 'none',\n cursor: 'move',\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)',\n display: 'inline-flex',\n }}\n {...listeners}\n >\n <IconWrapper\n style={{\n touchAction: 'none',\n cursor: 'move',\n padding: '1px 0px',\n margin: 0,\n justifyContent: 'center',\n color: '#787878',\n }}\n icon={iconElement}\n onClick={noop}\n size=\"small\"\n />\n </span>\n ),\n });\n }\n return child;\n })}\n </tr>\n );\n};\n","import { getCtx } from './context.js';\nimport { TableTr } from './table-tr.jsx';\nimport { TableTrHandle } from './table-tr-handle.jsx';\n\nexport const Row = (props) => {\n const ctx = getCtx();\n return ctx.dragIcon === false ? (\n <TableTr {...props} dragIcon={ctx.dragIcon} />\n ) : (\n <TableTrHandle {...props} dragIcon={ctx.dragIcon} />\n );\n};\n","import { type ReactElement, useEffect, useMemo, useState } from 'react';\nimport { Table, type TableProps } from 'antd';\nimport {\n DndContext,\n type DragEndEvent,\n PointerSensor,\n useSensor,\n useSensors,\n} from '@dnd-kit/core';\nimport { restrictToVerticalAxis } from '@dnd-kit/modifiers';\nimport {\n arrayMove,\n SortableContext,\n verticalListSortingStrategy,\n} from '@dnd-kit/sortable';\nimport { type TAny, type TPlainObject } from '@flatbiz/utils';\nimport { CtxProvider } from './context.js';\nimport { Row } from './row.jsx';\n\ntype DragTableProps = Omit<TableProps<TPlainObject>, 'dataSource'> & {\n /**\n * ```\n * 1. 可自定义拖拽图标\n * 2. dragIcon = false,可设置表格行拖拽\n * ```\n */\n dragIcon?: false | ReactElement;\n /** 表格数据唯一值字段Key,未填或者无法唯一,都不能拖拽能力 */\n uidFieldKey: string;\n dataSource?: TPlainObject[];\n /** 禁用拖拽 */\n disabledDrag?: boolean;\n /**\n * 拖拽结束事件\n * ```\n * dataSource: 拖拽完成后的数据源\n * dragData\n * 1. activeId 拖拽ID\n * 2. activeIndex 拖拽起始表格数组索引值\n * 3. overIndex 拖拽结束表格数组索引值\n * ```\n */\n onDragChange?: (\n dataSource: TPlainObject[],\n dragData: {\n activeId: string | number;\n activeIndex: number;\n overIndex: number;\n }\n ) => void;\n};\n\n/**\n * 可拖拽表格\n * ```\n * 1. 必须设置唯一值字段 uidFieldKey\n * 2. 如果拖拽显示异常,请检查 uidFieldKey 是否正确\n * 3. Table 参数 components.body.row 被组件内部使用\n * ```\n */\nexport const DragTable = (props: DragTableProps) => {\n const {\n dragIcon,\n uidFieldKey,\n columns,\n dataSource,\n onDragChange,\n disabledDrag,\n ...otherProps\n } = props;\n const [dataList, setDataList] = useState<TAny[]>([]);\n\n useEffect(() => {\n setDataList(dataSource || []);\n }, [dataSource]);\n\n const onDragEnd = ({ active, over }: DragEndEvent) => {\n if (active.id !== over?.id) {\n const activeIndex = dataList.findIndex(\n (i) => i[uidFieldKey] === active.id\n );\n const overIndex = dataList.findIndex((i) => i[uidFieldKey] === over?.id);\n const dataListNew = arrayMove(dataList, activeIndex, overIndex);\n setDataList([...dataListNew]);\n onDragChange?.(dataListNew, {\n activeId: active.id,\n activeIndex,\n overIndex,\n });\n }\n };\n\n const columnsList = useMemo(() => {\n if (dragIcon === false || props.disabledDrag) return columns;\n return [\n {\n key: 'sort',\n dataIndex: 'sort',\n align: 'center',\n width: 50,\n } as TAny,\n ].concat(columns || []);\n }, [columns, dragIcon, props.disabledDrag]);\n\n const sensors = useSensors(\n useSensor(PointerSensor, {\n activationConstraint: {\n // 当拖拽触发区域有其他点击事件时,需要延迟触发拖拽动作\n delay: dragIcon === false ? 150 : 0,\n tolerance: 0,\n },\n })\n );\n\n return (\n <CtxProvider value={{ dragIcon }}>\n <DndContext\n sensors={sensors}\n modifiers={[restrictToVerticalAxis]}\n onDragEnd={onDragEnd}\n >\n <SortableContext\n items={dataList.map((i) => i[uidFieldKey])}\n strategy={verticalListSortingStrategy}\n >\n <Table\n pagination={false}\n rowKey={uidFieldKey}\n bordered\n components={{\n ...otherProps.components,\n body: {\n ...otherProps.components?.body,\n row: disabledDrag ? undefined : Row,\n },\n }}\n {...otherProps}\n dataSource={dataList}\n columns={columnsList}\n />\n </SortableContext>\n </DndContext>\n </CtxProvider>\n );\n};\n"],"names":["_createCtx","_createCtx3","_createCtx2","_slicedToArray","getCtx","CtxProvider","TableTr","props","_useSortable","useSortable","id","listeners","setNodeRef","transform","transition","isDragging","style","_objectSpread","CSS","Transform","toString","scaleY","cursor","position","zIndex","boxShadow","_jsx","ref","TableTrHandle","dragIcon","innerProps","_objectWithoutProperties","_excluded","rowId","setActivatorNodeRef","undefined","backgroundColor","iconElement","isValidElement","_DragOutlined","children","Children","map","child","key","cloneElement","touchAction","top","left","display","IconWrapper","padding","margin","justifyContent","color","icon","onClick","noop","size","Row","ctx","DragTable","_otherProps$component","uidFieldKey","columns","dataSource","onDragChange","disabledDrag","otherProps","_useState","useState","_useState2","dataList","setDataList","useEffect","onDragEnd","_ref","active","over","activeIndex","findIndex","i","overIndex","dataListNew","arrayMove","_toConsumableArray","activeId","columnsList","useMemo","dataIndex","align","width","concat","sensors","useSensors","useSensor","PointerSensor","activationConstraint","delay","tolerance","value","DndContext","modifiers","restrictToVerticalAxis","SortableContext","items","strategy","verticalListSortingStrategy","Table","pagination","rowKey","bordered","components","body","row"],"mappings":";;;;;;;;;;;;;;;AAGO,IAAAA,UAAA,GAA8BC,SAAA,EAEjC;EAAAC,WAAA,GAAAC,cAAA,CAAAH,UAAA,EAAA,CAAA,CAAA;AAFUI,EAAAA,MAAM,GAAAF,WAAA,CAAA,CAAA,CAAA;AAAEG,EAAAA,WAAW,GAAAH,WAAA,CAAA,CAAA,CAAA;;ACC1B,IAAMI,OAAO,GAAG,SAAVA,OAAOA,CAAIC,KAAK,EAAK;EAChC,IAAAC,YAAA,GACEC,WAAW,CAAC;MACVC,EAAE,EAAEH,KAAK,CAAC,cAAc;AAC1B,KAAC,CAAC;IAHII,SAAS,GAAAH,YAAA,CAATG,SAAS;IAAEC,UAAU,GAAAJ,YAAA,CAAVI,UAAU;IAAEC,SAAS,GAAAL,YAAA,CAATK,SAAS;IAAEC,UAAU,GAAAN,YAAA,CAAVM,UAAU;IAAEC,UAAU,GAAAP,YAAA,CAAVO,UAAU;EAKhE,IAAMC,KAAoB,GAAAC,cAAA,CAAAA,cAAA,CACrBV,EAAAA,EAAAA,KAAK,CAACS,KAAK,CAAA,EAAA,EAAA,EAAA;AACdH,IAAAA,SAAS,EAAEK,GAAG,CAACC,SAAS,CAACC,QAAQ,CAACP,SAAS,IAAAI,cAAA,CAAAA,cAAA,KAASJ,SAAS,CAAA,EAAA,EAAA,EAAA;AAAEQ,MAAAA,MAAM,EAAE;AAAC,KAAA,CAAE,CAAC;AAC3EP,IAAAA,UAAU,EAAVA,UAAU;AACVQ,IAAAA,MAAM,EAAE;AAAM,GAAA,EACVP,UAAU,GACV;AACEQ,IAAAA,QAAQ,EAAE,UAAU;AACpBC,IAAAA,MAAM,EA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,SAAU;MAAAnC,QAAA,eAErBd,GAAA,CAAC8E,eAAe,EAAA;AACdC,QAAAA,KAAK,EAAEjC,QAAQ,CAAC9B,GAAG,CAAC,UAACuC,CAAC,EAAA;UAAA,OAAKA,CAAC,CAAClB,WAAW,CAAC;SAAE,CAAA;AAC3C2C,QAAAA,QAAQ,EAAEC,2BAA4B;AAAAnE,QAAAA,QAAA,eAEtCd,GAAA,CAACkF,KAAK,EAAA3F,cAAA,CAAAA,cAAA,CAAA;AACJ4F,UAAAA,UAAU,EAAE,KAAM;AAClBC,UAAAA,MAAM,EAAE/C,WAAY;UACpBgD,QAAQ,EAAA,IAAA;AACRC,UAAAA,UAAU,EAAA/F,cAAA,CAAAA,cAAA,CACLmD,EAAAA,EAAAA,UAAU,CAAC4C,UAAU,CAAA,EAAA,EAAA,EAAA;AACxBC,YAAAA,IAAI,EAAAhG,cAAA,CAAAA,cAAA,MAAA6C,qBAAA,GACCM,UAAU,CAAC4C,UAAU,MAAAlD,IAAAA,IAAAA,qBAAA,KAArBA,MAAAA,GAAAA,MAAAA,GAAAA,qBAAA,CAAuBmD,IAAI,CAAA,EAAA,EAAA,EAAA;AAC9BC,cAAAA,GAAG,EAAE/C,YAAY,GAAGhC,SAAS,GAAGwB;AAAG,aAAA;AACpC,WAAA;AACD,SAAA,EACES,UAAU,CAAA,EAAA,EAAA,EAAA;AACdH,UAAAA,UAAU,EAAEO,QAAS;AACrBR,UAAAA,OAAO,EAAEuB;SACV,CAAA;OACc;KACP;AAAC,GACF,CAAC;AAElB;;;;"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
2
2
|
|
|
3
|
-
import { a as _slicedToArray, _ as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers-
|
|
3
|
+
import { a as _slicedToArray, _ as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
4
4
|
import { Form } from 'antd';
|
|
5
5
|
import { useSensors, useSensor, PointerSensor, DndContext } from '@dnd-kit/core';
|
|
6
6
|
import { restrictToVerticalAxis } from '@dnd-kit/modifiers';
|
|
7
7
|
import { useSortable, SortableContext, verticalListSortingStrategy, arrayMove } from '@dnd-kit/sortable';
|
|
8
|
-
import { E as EditableTablePro } from './editable-table-pro-
|
|
8
|
+
import { E as EditableTablePro } from './editable-table-pro-B12YG7J_.js';
|
|
9
9
|
import { createCtx } from '@wove/react/create-ctx';
|
|
10
10
|
import _DragOutlined from '@ant-design/icons/es/icons/DragOutlined.js';
|
|
11
11
|
import { createElement, Children, cloneElement } from 'react';
|
|
12
12
|
import { CSS } from '@dnd-kit/utilities';
|
|
13
13
|
import { isUndefinedOrNull, noop } from '@flatbiz/utils';
|
|
14
|
-
import { I as IconWrapper } from './icon-wrapper-
|
|
14
|
+
import { I as IconWrapper } from './icon-wrapper-DfWj_rer.js';
|
|
15
15
|
import { jsx } from 'react/jsx-runtime';
|
|
16
16
|
|
|
17
17
|
var _createCtx = createCtx(),
|
|
@@ -183,4 +183,4 @@ var DragEditableTablePro = function DragEditableTablePro(props) {
|
|
|
183
183
|
};
|
|
184
184
|
|
|
185
185
|
export { DragEditableTablePro as D };
|
|
186
|
-
//# sourceMappingURL=drag-
|
|
186
|
+
//# sourceMappingURL=drag-xBmmIPTD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drag-xBmmIPTD.js","sources":["@flatbiz/antd/src/drag-editable-table-pro/context.ts","@flatbiz/antd/src/drag-editable-table-pro/table-tr-handle.tsx","@flatbiz/antd/src/drag-editable-table-pro/row.tsx","@flatbiz/antd/src/drag-editable-table-pro/drag.tsx"],"sourcesContent":["import { type ReactElement } from 'react';\nimport { createCtx } from '@wove/react';\n\nexport const [getCtx, CtxProvider] = createCtx<{\n dragIcon?: ReactElement;\n uidFieldKey: string;\n}>();\n","import {\n Children,\n cloneElement,\n type CSSProperties,\n type ReactElement,\n} from 'react';\nimport { type RowProps } from 'antd';\nimport { DragOutlined } from '@ant-design/icons';\nimport { useSortable } from '@dnd-kit/sortable';\nimport { CSS } from '@dnd-kit/utilities';\nimport { isUndefinedOrNull, noop } from '@flatbiz/utils';\nimport { IconWrapper } from '../icon-wrapper/icon-wrapper.jsx';\n\ntype TableTrHandleProps = RowProps & {\n dragIcon?: ReactElement;\n};\nexport const TableTrHandle = (props: TableTrHandleProps) => {\n const { dragIcon, ...innerProps } = props;\n const rowId = innerProps['data-row-key'] as number;\n\n const {\n setActivatorNodeRef,\n listeners,\n setNodeRef,\n transform,\n transition,\n isDragging,\n } = useSortable({\n id: rowId,\n });\n\n if (isUndefinedOrNull(rowId)) {\n return <tr {...innerProps} />;\n }\n const style: CSSProperties = {\n ...innerProps.style,\n transform: CSS.Transform.toString(transform && { ...transform, scaleY: 1 }),\n transition,\n cursor: 'move',\n ...(isDragging\n ? {\n position: 'relative',\n zIndex: 9999,\n boxShadow: ' 0px 0px 12px 4px rgba(34, 33, 81, 0.1)',\n backgroundColor: 'var(--block-bg-color)',\n }\n : {}),\n };\n const iconElement = dragIcon || <DragOutlined />;\n return (\n <tr {...innerProps} ref={setNodeRef} style={style} key={rowId}>\n {Children.map(props.children, (child) => {\n if ((child as ReactElement).key === '__sort') {\n return cloneElement(child as ReactElement, {\n children: (\n <span\n ref={setActivatorNodeRef}\n style={{\n touchAction: 'none',\n cursor: 'move',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n }}\n {...listeners}\n >\n <IconWrapper\n style={{\n touchAction: 'none',\n cursor: 'move',\n padding: '1px 0px',\n margin: 0,\n justifyContent: 'center',\n color: '#787878',\n }}\n icon={iconElement}\n onClick={noop}\n size=\"small\"\n />\n </span>\n ),\n });\n }\n return child;\n })}\n </tr>\n );\n};\n","import { getCtx } from './context.js';\nimport { TableTrHandle } from './table-tr-handle.jsx';\n\nexport const Row = (props) => {\n const ctx = getCtx();\n return <TableTrHandle {...props} dragIcon={ctx.dragIcon} />;\n};\n","import { type ReactElement } from 'react';\nimport { Form } from 'antd';\nimport {\n DndContext,\n type DragEndEvent,\n PointerSensor,\n useSensor,\n useSensors,\n} from '@dnd-kit/core';\nimport { restrictToVerticalAxis } from '@dnd-kit/modifiers';\nimport {\n arrayMove,\n SortableContext,\n verticalListSortingStrategy,\n} from '@dnd-kit/sortable';\nimport { type TPlainObject } from '@flatbiz/utils';\nimport type { EditableTableProProps } from '../editable-table-pro/editable-table-pro.jsx';\nimport { EditableTablePro } from '../editable-table-pro/editable-table-pro.jsx';\nimport type { EditableTableProColumnItem } from '../editable-table-pro/type.js';\nimport { CtxProvider } from './context.js';\nimport { Row } from './row.jsx';\n\nexport type DragEditableTableProProps = EditableTableProProps & {\n /**\n * 拖拽图标自定义,默认使用 DragOutlined 图标\n */\n dragIcon?: ReactElement;\n\n /** 禁用拖拽 */\n disabledDrag?: boolean;\n /**\n * 表格数据唯一值字段Key\n * ```\n * ```\n */\n uidFieldKey: string;\n /**\n * 拖拽结束事件\n * ```\n * dataSource: 拖拽完成后的数据源\n * dragData\n * 1. activeId 拖拽ID\n * 2. activeIndex 拖拽起始表格数组索引值\n * 3. overIndex 拖拽结束表格数组索引值\n * ```\n */\n onDragChange?: (\n dataSource: TPlainObject[],\n dragData: {\n activeId: string | number;\n overId?: string | number;\n activeIndex: number;\n overIndex: number;\n }\n ) => void;\n};\n\n/**\n * 可拖拽编辑表格\n * ```\n * 1. 表格数据必须有唯一值字段,通过参数 uidFieldKey 告诉组件\n * 2. Table 参数 components.body.row 被组件内部使用\n * 3. 不存在多级的情况下,可使用DragEditableTablePro组件实现拖拽排序\n * 4. 存在多级的情况下,通过上移、下移操作按钮,调用 column.render.operation.move 方法实现同一级内移动\n * ```\n */\nexport const DragEditableTablePro = (props: DragEditableTableProProps) => {\n const {\n dragIcon,\n uidFieldKey,\n onDragChange,\n disabledDrag,\n formListCompleteName,\n formListName,\n ...otherProps\n } = props;\n\n const formListCompleteNameFt = formListCompleteName || formListName;\n\n const form = Form.useFormInstance();\n const dataList = Form.useWatch(formListCompleteNameFt, form);\n\n const sensors = useSensors(\n useSensor(PointerSensor, {\n activationConstraint: {\n // 当拖拽触发区域有其他点击事件时,需要延迟触发拖拽动作\n delay: 0,\n tolerance: 0,\n },\n })\n );\n\n const onDragEnd = ({ active, over }: DragEndEvent) => {\n if (active.id !== over?.id) {\n const activeIndex = dataList.findIndex(\n (i) => i[uidFieldKey] === active.id\n );\n const overIndex = dataList.findIndex((i) => i[uidFieldKey] === over?.id);\n const dataListNew = arrayMove(dataList, activeIndex, overIndex);\n form.setFields([\n {\n name: formListCompleteNameFt,\n value: dataListNew,\n },\n ]);\n onDragChange?.(dataListNew as TPlainObject[], {\n activeId: active.id,\n overId: over?.id,\n activeIndex,\n overIndex,\n });\n }\n };\n\n const columns: EditableTableProColumnItem[] = disabledDrag\n ? otherProps.columns\n : [\n {\n dataIndex: '__sort',\n width: 40,\n key: '__sort',\n align: 'center',\n } as EditableTableProColumnItem,\n ].concat(otherProps.columns || []);\n\n return (\n <CtxProvider\n value={{\n dragIcon,\n uidFieldKey,\n }}\n >\n <DndContext\n sensors={sensors}\n modifiers={[restrictToVerticalAxis]}\n onDragEnd={onDragEnd}\n >\n <SortableContext\n items={dataList?.map((i) => i[uidFieldKey]) || []}\n strategy={verticalListSortingStrategy}\n >\n <EditableTablePro\n {...otherProps}\n formListName={formListName}\n uidFieldKey={uidFieldKey}\n columns={columns}\n tableProps={{\n ...otherProps.tableProps,\n components: {\n ...otherProps.tableProps?.components,\n body: {\n ...otherProps.tableProps?.components?.body,\n row: disabledDrag ? undefined : Row,\n },\n },\n }}\n />\n </SortableContext>\n </DndContext>\n </CtxProvider>\n );\n};\n"],"names":["_createCtx","_createCtx3","_createCtx2","_slicedToArray","getCtx","CtxProvider","TableTrHandle","props","dragIcon","innerProps","_objectWithoutProperties","_excluded","rowId","_useSortable","useSortable","id","setActivatorNodeRef","listeners","setNodeRef","transform","transition","isDragging","isUndefinedOrNull","_jsx","_objectSpread","style","CSS","Transform","toString","scaleY","cursor","position","zIndex","boxShadow","backgroundColor","iconElement","_DragOutlined","_createElement","ref","key","Children","map","children","child","cloneElement","touchAction","display","alignItems","justifyContent","IconWrapper","padding","margin","color","icon","onClick","noop","size","Row","ctx","DragEditableTablePro","_otherProps$tableProp","_otherProps$tableProp2","uidFieldKey","onDragChange","disabledDrag","formListCompleteName","formListName","otherProps","formListCompleteNameFt","form","Form","useFormInstance","dataList","useWatch","sensors","useSensors","useSensor","PointerSensor","activationConstraint","delay","tolerance","onDragEnd","_ref","active","over","activeIndex","findIndex","i","overIndex","dataListNew","arrayMove","setFields","name","value","activeId","overId","columns","dataIndex","width","align","concat","DndContext","modifiers","restrictToVerticalAxis","SortableContext","items","strategy","verticalListSortingStrategy","EditableTablePro","tableProps","components","body","row","undefined"],"mappings":";;;;;;;;;;;;;;;;AAGO,IAAAA,UAAA,GAA8BC,SAAA,EAGjC;EAAAC,WAAA,GAAAC,cAAA,CAAAH,UAAA,EAAA,CAAA,CAAA;AAHUI,EAAAA,MAAM,GAAAF,WAAA,CAAA,CAAA,CAAA;AAAEG,EAAAA,WAAW,GAAAH,WAAA,CAAA,CAAA,CAAA;;;ACa1B,IAAMI,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,KAAyB,EAAK;AAC1D,EAAA,IAAQC,QAAQ,GAAoBD,KAAK,CAAjCC,QAAQ;AAAKC,IAAAA,UAAU,GAAAC,wBAAA,CAAKH,KAAK,EAAAI,WAAA,CAAA;AACzC,EAAA,IAAMC,KAAK,GAAGH,UAAU,CAAC,cAAc,CAAW;EAElD,IAAAI,YAAA,GAOIC,WAAW,CAAC;AACdC,MAAAA,EAAE,EAAEH;AACN,KAAC,CAAC;IARAI,mBAAmB,GAAAH,YAAA,CAAnBG,mBAAmB;IACnBC,SAAS,GAAAJ,YAAA,CAATI,SAAS;IACTC,UAAU,GAAAL,YAAA,CAAVK,UAAU;IACVC,SAAS,GAAAN,YAAA,CAATM,SAAS;IACTC,UAAU,GAAAP,YAAA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J,CAAA;OACc;KACP;AAAC,GACF,CAAC;AAElB;;;;"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
2
2
|
|
|
3
3
|
import _CloseOutlined from '@ant-design/icons/es/icons/CloseOutlined.js';
|
|
4
|
-
import { b as _objectSpread2, a as _slicedToArray } from './_rollupPluginBabelHelpers-
|
|
4
|
+
import { b as _objectSpread2, a as _slicedToArray } from './_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
5
5
|
import { isPromise } from '@dimjs/lang/is-promise';
|
|
6
6
|
import { hooks } from '@wove/react/hooks';
|
|
7
7
|
import { forwardRef, useState, useMemo } from 'react';
|
|
8
8
|
import { createPortal } from 'react-dom';
|
|
9
9
|
import { Resizable } from 'react-resizable';
|
|
10
10
|
import { Button, Space } from 'antd';
|
|
11
|
-
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-
|
|
12
|
-
import { B as ButtonWrapper } from './button-wrapper-
|
|
11
|
+
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-nJh5OW6J.js';
|
|
12
|
+
import { B as ButtonWrapper } from './button-wrapper-DezyMqPx.js';
|
|
13
13
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
var classnames = {exports: {}};
|
|
@@ -254,4 +254,4 @@ var ResizableDrawer = function ResizableDrawer(_ref) {
|
|
|
254
254
|
};
|
|
255
255
|
|
|
256
256
|
export { ResizableDrawer as R };
|
|
257
|
-
//# sourceMappingURL=drawer-
|
|
257
|
+
//# sourceMappingURL=drawer-BITwshmb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer-BITwshmb.js","sources":["@flatbiz/antd/node_modules/classnames/index.js","@flatbiz/antd/src/resizable-drawer/resize-handle/index.tsx","@flatbiz/antd/src/resizable-drawer/utils.ts","@flatbiz/antd/src/resizable-drawer/drawer.tsx"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import { forwardRef } from 'react';\nimport './style.less';\nexport const ResizeHandle = forwardRef<HTMLDivElement>((props, ref) => {\n return <div ref={ref} {...props} className=\"resize-border\" />;\n});\n","let zIndex = 10;\n\nexport const getZindex = () => {\n zIndex++;\n return zIndex;\n};\n","import type { FC, MouseEvent } from 'react';\nimport {\n type CSSProperties,\n type ReactElement,\n type ReactNode,\n useMemo,\n useState,\n} from 'react';\nimport { createPortal } from 'react-dom';\nimport { Resizable } from 'react-resizable';\nimport { Button, Space } from 'antd';\nimport classNames from 'classnames';\nimport { CloseOutlined } from '@ant-design/icons';\nimport { isPromise } from '@dimjs/lang';\nimport { hooks } from '@wove/react';\nimport { ButtonWrapper } from '../button-wrapper/button-wrapper.jsx';\nimport { ResizeHandle } from './resize-handle/index.jsx';\nimport { getZindex } from './utils.js';\nimport './style.less';\n\ntype ResizableDrawerProps = {\n open?: boolean;\n onClose?: () => void;\n title?: ReactNode;\n width?: number | string;\n children?: ReactNode;\n footer?: ReactNode | null;\n hidenFooter?: boolean;\n maskClosable?: boolean;\n mask?: boolean;\n className?: string;\n style?: CSSProperties;\n styles?: {\n header?: CSSProperties;\n body?: CSSProperties;\n footer?: CSSProperties;\n };\n headerExtraRender?: ReactElement;\n zIndex?: number;\n onOk?: (e: MouseEvent<HTMLElement>) => void | Promise<void>;\n cancelText?: string;\n okText?: string;\n};\n\nexport const ResizableDrawer: FC<ResizableDrawerProps> = ({\n open,\n onClose,\n title = '抽屉标题',\n width: initialWidth = 600,\n children,\n footer,\n maskClosable = true,\n className,\n style,\n mask = true,\n styles,\n headerExtraRender,\n zIndex,\n onOk,\n okText,\n cancelText,\n hidenFooter,\n}) => {\n const [width, setWidth] = useState(initialWidth);\n\n const onResize = (_, data) => {\n const { size } = data;\n setWidth(size.width);\n };\n // 遮罩层点击\n const handleMaskClick = (e: MouseEvent<HTMLDivElement>) => {\n e.stopPropagation();\n if (maskClosable) {\n onClose?.();\n }\n };\n\n // 计算宽度样式\n const widthStyle = typeof width === 'number' ? `${width}px` : width;\n\n const drawerStyle = open\n ? {\n transform: 'translateX(0)',\n opacity: 1,\n }\n : {\n transform: 'translateX(100%)',\n opacity: 0,\n };\n\n const maskOpacity = open ? 1 : 0;\n\n const zIndexInner = useMemo(() => {\n return zIndex ? zIndex : 10 + getZindex();\n }, [zIndex]);\n\n const onOkHandle = hooks.useCallbackRef((e) => {\n if (onOk) {\n const response = onOk(e);\n if (response && isPromise(response)) {\n return response.then(onClose);\n }\n }\n return onClose?.();\n });\n\n return createPortal(\n <div\n className={classNames(\n 'drawer-resizable',\n { 'drawer-resizable-visible': open },\n className\n )}\n style={\n !mask\n ? { width: widthStyle, zIndex: zIndexInner }\n : { left: 0, zIndex: zIndexInner }\n }\n >\n {mask ? (\n <div\n className=\"drawer-resizable-mask\"\n style={{ opacity: maskOpacity }}\n onClick={handleMaskClick}\n />\n ) : null}\n\n <div\n className=\"drawer-resizable-content\"\n style={{\n width: widthStyle,\n ...drawerStyle,\n ...style,\n }}\n >\n {/* 头部 */}\n <div className=\"drawer-resizable-header\" style={styles?.header}>\n <div className=\"drawer-resizable-title\">\n <Button\n type=\"text\"\n className=\"drawer-resizable-title-close\"\n icon={<CloseOutlined />}\n onClick={(event) => {\n event.stopPropagation();\n onClose?.();\n }}\n ></Button>\n <div className=\"\">{title}</div>\n </div>\n {headerExtraRender ? (\n <div className=\"drawer-resizable-title-extra\">\n {headerExtraRender}\n </div>\n ) : null}\n </div>\n\n {/* 内容区域 */}\n <div className=\"drawer-resizable-body\" style={styles?.body}>\n <Resizable\n onResize={onResize}\n width={width}\n handle={<ResizeHandle />}\n axis=\"x\"\n resizeHandles={['w']}\n minConstraints={[400, 0]}\n maxConstraints={[1200, 0]}\n style={{ height: '100%' }}\n onResizeStop={(e) => {\n e.stopPropagation();\n const iframeList = document.querySelectorAll('iframe');\n iframeList.forEach((item) => {\n item.style.pointerEvents = '';\n });\n }}\n onResizeStart={(e) => {\n e.stopPropagation();\n const iframeList = document.querySelectorAll('iframe');\n iframeList.forEach((item) => {\n item.style.pointerEvents = 'none';\n });\n }}\n >\n {children}\n </Resizable>\n </div>\n {/* 底部 */}\n {hidenFooter ? null : footer ? (\n <div className=\"drawer-footer\" style={styles?.footer}>\n {footer}\n </div>\n ) : (\n <div className=\"drawer-footer\" style={styles?.footer}>\n <Space>\n <ButtonWrapper onClick={onClose}>\n {cancelText || '取消'}\n </ButtonWrapper>\n <ButtonWrapper\n onClick={onOkHandle}\n type=\"primary\"\n loadingPosition=\"center\"\n >\n {okText || '确定'}\n </ButtonWrapper>\n </Space>\n </div>\n )}\n </div>\n </div>,\n document.body\n );\n};\n"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","appendClass","parseValue","Array","isArray","apply","toString","Object","prototype","includes","key","call","value","newClass","module","exports","default","window","ResizeHandle","forwardRef","props","ref","_jsx","_objectSpread","className","zIndex","getZindex","ResizableDrawer","_ref","open","onClose","_ref$title","title","_ref$width","width","initialWidth","children","footer","_ref$maskClosable","maskClosable","style","_ref$mask","mask","styles","headerExtraRender","onOk","okText","cancelText","hidenFooter","_useState","useState","_useState2","_slicedToArray","setWidth","onResize","_","data","size","handleMaskClick","e","stopPropagation","widthStyle","concat","drawerStyle","transform","opacity","maskOpacity","zIndexInner","useMemo","onOkHandle","_hooks","useCallbackRef","response","_isPromise","then","createPortal","_jsxs","left","onClick","header","Button","type","icon","_CloseOutlined","event","body","Resizable","handle","axis","resizeHandles","minConstraints","maxConstraints","height","onResizeStop","iframeList","document","querySelectorAll","forEach","item","pointerEvents","onResizeStart","Space","ButtonWrapper","loadingPosition"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;;IAEC,CAAY,YAAA;;AAGZ,MAAA,IAAIA,MAAM,GAAG,EAAE,CAACC,cAAc;MAE9B,SAASC,UAAUA,GAAI;QACtB,IAAIC,OAAO,GAAG,EAAE;AAEhB,QAAA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGC,SAAS,CAACC,MAAM,EAAEF,CAAC,EAAE,EAAE;AAC1C,UAAA,IAAIG,GAAG,GAAGF,SAAS,CAACD,CAAC,CAAC;AACtB,UAAA,IAAIG,GAAG,EAAE;YACRJ,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G,MAAM;AACnC,aAAC,CAAC;WACF;AAAA/D,UAAAA,QAAA,EAEDA;SACQ;OACR,CAAC,EAELY,WAAW,GAAG,IAAI,GAAGX,MAAM,gBAC1Bf,GAAA,CAAA,KAAA,EAAA;AAAKE,QAAAA,SAAS,EAAC,eAAe;AAACgB,QAAAA,KAAK,EAAEG,MAAM,KAAA,IAAA,IAANA,MAAM,KAANA,MAAAA,GAAAA,MAAAA,GAAAA,MAAM,CAAEN,MAAO;AAAAD,QAAAA,QAAA,EAClDC;OACE,CAAC,gBAENf,GAAA,CAAA,KAAA,EAAA;AAAKE,QAAAA,SAAS,EAAC,eAAe;AAACgB,QAAAA,KAAK,EAAEG,MAAM,KAAA,IAAA,IAANA,MAAM,KAANA,MAAAA,GAAAA,MAAAA,GAAAA,MAAM,CAAEN,MAAO;QAAAD,QAAA,eACnDwC,IAAA,CAACyB,KAAK,EAAA;UAAAjE,QAAA,EAAA,cACJd,GAAA,CAACgF,aAAa,EAAA;AAACxB,YAAAA,OAAO,EAAEhD,OAAQ;YAAAM,QAAA,EAC7BW,UAAU,IAAI;AAAI,WACN,CAAC,eAChBzB,GAAA,CAACgF,aAAa,EAAA;AACZxB,YAAAA,OAAO,EAAET,UAAW;AACpBY,YAAAA,IAAI,EAAC,SAAS;AACdsB,YAAAA,eAAe,EAAC,QAAQ;YAAAnE,QAAA,EAEvBU,MAAM,IAAI;AAAI,WACF,CAAC;SACX;AAAC,OACL,CACN;AAAA,KACE,CAAC;AAAA,GACH,CAAC,EACNiD,QAAQ,CAACV,IACX,CAAC;AACH;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TAny, TNoopDefine, TPlainObject } from '@flatbiz/utils';
|
|
2
2
|
import { ButtonProps, DropdownProps, FormInstance, ModalProps } from 'antd';
|
|
3
3
|
import { ConfigProviderProps } from 'antd/es/config-provider';
|
|
4
|
-
import { ReactElement, ReactNode } from 'react';
|
|
4
|
+
import { MouseEvent, ReactElement, ReactNode } from 'react';
|
|
5
5
|
|
|
6
6
|
export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "color"> & {
|
|
7
7
|
/** 当返回 Promise 时,按钮自动loading */
|
|
8
|
-
onClick?: (e:
|
|
8
|
+
onClick?: (e: MouseEvent<HTMLElement>) => Promise<TAny> | void;
|
|
9
9
|
/** 重复点击间隙,单位毫秒 默认值:500 */
|
|
10
10
|
debounceDuration?: number;
|
|
11
11
|
/** 基于GLOBAL中elemAclLimits按钮权限列表,控制按钮显示、隐藏 */
|
|
@@ -44,8 +44,8 @@ export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
46
|
size?: "small" | "middle" | "large" | null;
|
|
47
|
-
onOk?: (form: FormInstance, e:
|
|
48
|
-
onCancel?: (form: FormInstance, e:
|
|
47
|
+
onOk?: (form: FormInstance, e: MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
48
|
+
onCancel?: (form: FormInstance, e: MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
49
49
|
content: string | ReactElement | ((form: FormInstance, operate: {
|
|
50
50
|
onClose: TNoopDefine;
|
|
51
51
|
}) => ReactElement);
|
|
@@ -77,7 +77,7 @@ export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
|
|
|
77
77
|
export interface DropdownMenuItem extends Omit<ButtonProps, "color"> {
|
|
78
78
|
text?: string | ReactElement;
|
|
79
79
|
color?: string;
|
|
80
|
-
onClick?: (event:
|
|
80
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
81
81
|
permission?: string;
|
|
82
82
|
needConfirm?: boolean;
|
|
83
83
|
confirmMessage?: ReactNode;
|
|
@@ -5,18 +5,18 @@ import './../fba-utils/index.css';
|
|
|
5
5
|
import './index.css';
|
|
6
6
|
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
7
7
|
|
|
8
|
-
export { D as DropdownMenuWrapper } from '../dropdown-menu-wrapper-
|
|
8
|
+
export { D as DropdownMenuWrapper } from '../dropdown-menu-wrapper-CfZMQb2W.js';
|
|
9
9
|
import '@dimjs/utils/class-names/class-names';
|
|
10
10
|
import '@ant-design/icons/es/icons/ExclamationCircleFilled.js';
|
|
11
|
-
import '../_rollupPluginBabelHelpers-
|
|
11
|
+
import '../_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
12
12
|
import '@wove/react/hooks';
|
|
13
13
|
import 'react';
|
|
14
14
|
import 'antd';
|
|
15
|
-
import '../button-wrapper-
|
|
15
|
+
import '../button-wrapper-DezyMqPx.js';
|
|
16
16
|
import '@ant-design/icons/es/icons/LoadingOutlined.js';
|
|
17
17
|
import '@dimjs/lang/is-promise';
|
|
18
18
|
import '@flatbiz/utils';
|
|
19
|
-
import '../config-provider-wrapper-
|
|
19
|
+
import '../config-provider-wrapper-C72dPUJZ.js';
|
|
20
20
|
import 'antd/es/locale/en_US.js';
|
|
21
21
|
import 'antd/es/locale/zh_CN.js';
|
|
22
22
|
import 'dayjs';
|
|
@@ -34,14 +34,14 @@ import '@dimjs/utils/uuid/uuid';
|
|
|
34
34
|
import 'dayjs/locale/en.js';
|
|
35
35
|
import 'dayjs/locale/zh-cn.js';
|
|
36
36
|
import 'react/jsx-runtime';
|
|
37
|
-
import '../fba-utils-
|
|
37
|
+
import '../fba-utils-okhb5eSJ.js';
|
|
38
38
|
import '@dimjs/lang/is-array';
|
|
39
39
|
import '@dimjs/model';
|
|
40
|
-
import '../dialog-confirm-
|
|
41
|
-
import '../dialog-modal-
|
|
40
|
+
import '../dialog-confirm-CQDn4_GG.js';
|
|
41
|
+
import '../dialog-modal-xVzOgsQO.js';
|
|
42
42
|
import '@dimjs/lang/is-string';
|
|
43
43
|
import 'react-dom/client';
|
|
44
44
|
import 'ahooks';
|
|
45
|
-
import '../flex-layout-
|
|
45
|
+
import '../flex-layout-BGtMe7zr.js';
|
|
46
46
|
import '@wove/react/create-ctx';
|
|
47
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
import { classNames } from '@dimjs/utils/class-names/class-names';
|
|
4
4
|
import _ExclamationCircleFilled from '@ant-design/icons/es/icons/ExclamationCircleFilled.js';
|
|
5
|
-
import { _ as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers-
|
|
5
|
+
import { _ as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
6
6
|
import { hooks } from '@wove/react/hooks';
|
|
7
7
|
import { Fragment, useMemo, createElement } from 'react';
|
|
8
8
|
import { Dropdown } from 'antd';
|
|
9
|
-
import { B as ButtonWrapper } from './button-wrapper-
|
|
10
|
-
import { d as dialogConfirm } from './dialog-confirm-
|
|
11
|
-
import { f as fbaUtils } from './fba-utils-
|
|
12
|
-
import { F as FlexLayout } from './flex-layout-
|
|
13
|
-
import {
|
|
9
|
+
import { B as ButtonWrapper } from './button-wrapper-DezyMqPx.js';
|
|
10
|
+
import { d as dialogConfirm } from './dialog-confirm-CQDn4_GG.js';
|
|
11
|
+
import { f as fbaUtils } from './fba-utils-okhb5eSJ.js';
|
|
12
|
+
import { F as FlexLayout } from './flex-layout-BGtMe7zr.js';
|
|
13
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
function parentsHasSticky(node) {
|
|
16
16
|
var condition = true;
|
|
@@ -153,4 +153,4 @@ var DropdownMenuWrapper = function DropdownMenuWrapper(props) {
|
|
|
153
153
|
};
|
|
154
154
|
|
|
155
155
|
export { DropdownMenuWrapper as D };
|
|
156
|
-
//# sourceMappingURL=dropdown-menu-wrapper-
|
|
156
|
+
//# sourceMappingURL=dropdown-menu-wrapper-CfZMQb2W.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-menu-wrapper-CfZMQb2W.js","sources":["@flatbiz/antd/src/dropdown-menu-wrapper/utils.ts","@flatbiz/antd/src/dropdown-menu-wrapper/dropdown-menu-wrapper.tsx"],"sourcesContent":["export function parentsHasSticky(node: Element) {\n let condition = true;\n let result = false;\n while (condition) {\n if (node.tagName === 'HTML' || node.tagName === 'BODY') {\n condition = false;\n result = false;\n } else {\n const { position } = window.getComputedStyle(node);\n if (position === 'sticky') {\n result = true;\n condition = false;\n } else {\n if (!node || !node.parentNode) {\n condition = false;\n } else {\n node = node.parentNode as Element;\n }\n }\n }\n }\n return result;\n}\n","import type { ReactElement, ReactNode } from 'react';\nimport type { MouseEvent } from 'react';\nimport { Fragment, useMemo } from 'react';\nimport type { ButtonProps, DropdownProps } from 'antd';\nimport { Dropdown } from 'antd';\nimport { type ItemType } from 'antd/es/menu/interface.js';\nimport { ExclamationCircleFilled } from '@ant-design/icons';\nimport { classNames } from '@dimjs/utils';\nimport { hooks } from '@wove/react';\nimport { ButtonWrapper } from '../button-wrapper/button-wrapper.jsx';\nimport { dialogConfirm } from '../dialog-confirm/index.js';\nimport type { DialogModalProps } from '../dialog-modal/index.js';\nimport { fbaUtils } from '../fba-utils/index.js';\nimport { FlexLayout } from '../flex-layout/flex-layout.jsx';\nimport { parentsHasSticky } from './utils.js';\nimport './style.less';\n\nexport interface DropdownMenuItem extends Omit<ButtonProps, 'color'> {\n text?: string | ReactElement;\n color?: string;\n onClick?: (event: MouseEvent<HTMLElement>) => void | Promise<void>;\n permission?: string;\n needConfirm?: boolean;\n confirmMessage?: ReactNode;\n hidden?: boolean;\n confirmModalProps?: DialogModalProps;\n stopPropagation?: boolean;\n}\n\nexport interface DropdownMenuWrapperProps extends Omit<DropdownProps, 'menu'> {\n menuList: Array<DropdownMenuItem | null>;\n /** dropdown 设置弹框根节点在body下 */\n isFixed?: boolean;\n}\n\n/**\n * DropdownMenuWrapper\n * 升级 antd 5.5.1 后,Dropdown 中 Popconfirm弹框使用存在问题,所以在 @flatbiz/antd@4.2.49版本修改为使用dialogConfirm组件实现二次弹框确认功能\n * @param props\n * @returns\n * ```\n * 1. Dropdown默认弹框根节点在组件内部,通过isFixed=true可设置弹框根节点在body下\n * ```\n */\nexport const DropdownMenuWrapper = (props: DropdownMenuWrapperProps) => {\n const { menuList, ...dropdownOtherProps } = props;\n const clsName = hooks.useId(undefined, 'DropdownMenuWrapper');\n\n const onClick = hooks.useCallbackRef((item: DropdownMenuItem, event) => {\n if (item.needConfirm) {\n dialogConfirm.open({\n title: (\n <FlexLayout direction=\"horizontal\" fullIndex={1} gap={8}>\n <ExclamationCircleFilled style={{ color: '#faad14' }} />\n <span>{item.title}</span>\n </FlexLayout>\n ),\n content: <Fragment>{item.confirmMessage}</Fragment>,\n onOk: item.onClick?.bind(null, event),\n okButtonProps: {\n loadingPosition: 'center',\n },\n ...item.confirmModalProps,\n });\n return Promise.resolve();\n }\n event.stopPropagation();\n return item.onClick?.(event);\n });\n\n const target = document.querySelector(`.${clsName}`);\n const container = useMemo(() => {\n if (props.isFixed || (target && parentsHasSticky(target))) {\n return undefined;\n }\n return target;\n }, [props.isFixed, target]);\n\n const menuItems = useMemo(() => {\n const menuItemsNew: ItemType[] = [];\n menuList.filter(Boolean).forEach((item, index) => {\n if (!item) return;\n const {\n text,\n permission,\n needConfirm,\n confirmMessage,\n hidden,\n type,\n confirmModalProps,\n ...otherProps\n } = item;\n if (hidden) return;\n if (permission && !fbaUtils.hasPermission(permission)) return;\n const buttonType = type || 'link';\n const danger = otherProps.color ? false : needConfirm;\n menuItemsNew.push({\n key: index,\n label: (\n <ButtonWrapper\n loadingPosition=\"center\"\n size=\"small\"\n danger={danger}\n {...otherProps}\n style={{ ...otherProps.style }}\n className={classNames('dmw-item-button', otherProps.className)}\n type={buttonType}\n key={index}\n onClick={onClick.bind(null, {\n ...item,\n needConfirm,\n confirmMessage,\n confirmModalProps,\n })}\n >\n {text}\n </ButtonWrapper>\n ),\n });\n });\n return menuItemsNew;\n }, [menuList, onClick]);\n\n return (\n <div\n className={classNames('dropdown-menu-wrapper', clsName)}\n style={{ position: 'relative' }}\n >\n <Dropdown\n trigger={dropdownOtherProps?.trigger || ['hover']}\n getPopupContainer={container ? () => target as HTMLElement : undefined}\n arrow={{ pointAtCenter: true }}\n {...dropdownOtherProps}\n overlayStyle={{ zIndex: 9, ...dropdownOtherProps.overlayStyle }}\n menu={{ items: menuItems }}\n rootClassName=\"dropdown-menu-wrapper-popup\"\n >\n {props.children}\n </Dropdown>\n </div>\n );\n};\n"],"names":["parentsHasSticky","node","condition","result","tagName","_window$getComputedSt","window","getComputedStyle","position","parentNode","DropdownMenuWrapper","props","menuList","dropdownOtherProps","_objectWithoutProperties","_excluded","clsName","_hooks","useId","undefined","onClick","useCallbackRef","item","event","_item$onClick2","needConfirm","_item$onClick","dialogConfirm","open","_objectSpread","title","_jsxs","FlexLayout","direction","fullIndex","gap","children","_jsx","_ExclamationCircleFilled","style","color","content","Fragment","confirmMessage","onOk","bind","okButtonProps","loadingPosition","confirmModalProps","Promise","resolve","stopPropagation","call","target","document","querySelector","concat","container","useMemo","isFixed","menuItems","menuItemsNew","filter","Boolean","forEach","index","text","permission","hidden","type","otherProps","_excluded2","fbaUtils","hasPermission","buttonType","danger","push","key","label","_createElement","ButtonWrapper","size","className","_classNames","Dropdown","trigger","getPopupContainer","arrow","pointAtCenter","overlayStyle","zIndex","menu","items","rootClassName"],"mappings":";;;;;;;;;;;;;;AAAO,SAASA,gBAAgBA,CAACC,IAAa,EAAE;EAC9C,IAAIC,SAAS,GAAG,IAAI;EACpB,IAAIC,MAAM,GAAG,KAAK;AAClB,EAAA,OAAOD,SAAS,EAAE;IAChB,IAAID,IAAI,CAACG,OAAO,KAAK,MAAM,IAAIH,IAAI,CAACG,OAAO,KAAK,MAAM,EAAE;AACtDF,MAAAA,SAAS,GAAG,KAAK;AACjBC,MAAAA,MAAM,GAAG,KAAK;AAChB,KAAC,MAAM;AACL,MAAA,IAAAE,qBAAA,GAAqBC,MAAM,CAACC,gBAAgB,CAACN,IAAI,CAAC;QAA1CO,QAAQ,GAAAH,qBAAA,CAARG,QAAQ;M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ined-class-name/index.css';
|
|
|
5
5
|
import './index.css';
|
|
6
6
|
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
7
7
|
|
|
8
|
-
export { E as EasyForm } from '../form-
|
|
8
|
+
export { E as EasyForm } from '../form-398WU_jI.js';
|
|
9
9
|
import '@dimjs/utils/class-names/class-names';
|
|
10
|
-
import '../_rollupPluginBabelHelpers-
|
|
10
|
+
import '../_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
11
11
|
import 'react';
|
|
12
12
|
import 'antd';
|
|
13
13
|
import '@flatbiz/utils';
|
|
@@ -19,6 +19,6 @@ import '../fba-hooks/index.js';
|
|
|
19
19
|
import '@wove/react/hooks';
|
|
20
20
|
import '../use-responsive-point-Bp3D3lZT.js';
|
|
21
21
|
import '@dimjs/utils/uuid/uuid';
|
|
22
|
-
import '../form-wrapper-
|
|
22
|
+
import '../form-wrapper-DBDMN0mN.js';
|
|
23
23
|
import '../pre-defined-class-name/index.js';
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TAny, TPlainObject } from '@flatbiz/utils';
|
|
2
2
|
import { ButtonProps, FormInstance, FormProps, PaginationProps, PopoverProps, RowProps, SpaceProps, TableProps, TooltipProps } from 'antd';
|
|
3
3
|
import { ColumnsType } from 'antd/es/table';
|
|
4
|
-
import { CSSProperties, ReactElement, ReactNode } from 'react';
|
|
4
|
+
import { CSSProperties, MouseEvent, ReactElement, ReactNode } from 'react';
|
|
5
5
|
|
|
6
6
|
export type TipsWrapperProps = {
|
|
7
7
|
gap?: number;
|
|
@@ -292,7 +292,7 @@ export type EasyTableRefApi = {
|
|
|
292
292
|
};
|
|
293
293
|
export type ButtonWrapperProps = Omit<ButtonProps, "onClick" | "color"> & {
|
|
294
294
|
/** 当返回 Promise 时,按钮自动loading */
|
|
295
|
-
onClick?: (e:
|
|
295
|
+
onClick?: (e: MouseEvent<HTMLElement>) => Promise<TAny> | void;
|
|
296
296
|
/** 重复点击间隙,单位毫秒 默认值:500 */
|
|
297
297
|
debounceDuration?: number;
|
|
298
298
|
/** 基于GLOBAL中elemAclLimits按钮权限列表,控制按钮显示、隐藏 */
|
package/dist/easy-table/index.js
CHANGED
|
@@ -7,10 +7,10 @@ import './../pre-defined-class-name/index.css';
|
|
|
7
7
|
import './index.css';
|
|
8
8
|
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
9
9
|
|
|
10
|
-
import { f as fbaUtils } from '../fba-utils-
|
|
10
|
+
import { f as fbaUtils } from '../fba-utils-okhb5eSJ.js';
|
|
11
11
|
import { isArray } from '@dimjs/lang/is-array';
|
|
12
12
|
import { isObject } from '@dimjs/lang/is-object';
|
|
13
|
-
import { b as _objectSpread2, a as _slicedToArray, i as _defineProperty, c as _toConsumableArray, _ as _objectWithoutProperties } from '../_rollupPluginBabelHelpers-
|
|
13
|
+
import { b as _objectSpread2, a as _slicedToArray, i as _defineProperty, c as _toConsumableArray, _ as _objectWithoutProperties } from '../_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
14
14
|
import { sessionStorageCache, localStorageCache, noop, getUuid, isUndefinedOrNull, isMacEnv } from '@flatbiz/utils';
|
|
15
15
|
import { classNames } from '@dimjs/utils/class-names/class-names';
|
|
16
16
|
import { isUndefined } from '@dimjs/lang/is-undefined';
|
|
@@ -20,27 +20,27 @@ import { isString } from '@dimjs/lang/is-string';
|
|
|
20
20
|
import { createContext, useState, Fragment, forwardRef, useMemo, useRef, useImperativeHandle, cloneElement, useContext, Children, useEffect } from 'react';
|
|
21
21
|
import { Checkbox, Popover, Form, message, Drawer, Table } from 'antd';
|
|
22
22
|
import { fbaHooks } from '../fba-hooks/index.js';
|
|
23
|
-
import { P as PaginationWrapper } from '../pagination-
|
|
23
|
+
import { P as PaginationWrapper } from '../pagination-2j2BYp57.js';
|
|
24
24
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
25
25
|
import _DownOutlined from '@ant-design/icons/es/icons/DownOutlined.js';
|
|
26
26
|
import _UpOutlined from '@ant-design/icons/es/icons/UpOutlined.js';
|
|
27
27
|
import { isFragment } from 'react-is';
|
|
28
|
-
import { B as BlockLayout } from '../layout-
|
|
29
|
-
import { B as ButtonWrapper } from '../button-wrapper-
|
|
30
|
-
import { E as EasyForm } from '../form-
|
|
28
|
+
import { B as BlockLayout } from '../layout-2woF_D6T.js';
|
|
29
|
+
import { B as ButtonWrapper } from '../button-wrapper-DezyMqPx.js';
|
|
30
|
+
import { E as EasyForm } from '../form-398WU_jI.js';
|
|
31
31
|
import { FormGrid } from '../form-grid/index.js';
|
|
32
|
-
import { T as TableScrollbar } from '../table-scrollbar-
|
|
33
|
-
import { F as FlexLayout } from '../flex-layout-
|
|
34
|
-
import { I as IconWrapper } from '../icon-wrapper-
|
|
35
|
-
import { S as SvgHttpView } from '../svg-
|
|
32
|
+
import { T as TableScrollbar } from '../table-scrollbar-yqz5FkCz.js';
|
|
33
|
+
import { F as FlexLayout } from '../flex-layout-BGtMe7zr.js';
|
|
34
|
+
import { I as IconWrapper } from '../icon-wrapper-DfWj_rer.js';
|
|
35
|
+
import { S as SvgHttpView } from '../svg-CqFW3W-s.js';
|
|
36
36
|
import { T as TableTitleTooltip } from '../title-render-DGYUo6yV.js';
|
|
37
|
-
import { T as TipsWrapper } from '../tips-wrapper-
|
|
37
|
+
import { T as TipsWrapper } from '../tips-wrapper-DvbgHMwl.js';
|
|
38
38
|
import '@dimjs/model';
|
|
39
39
|
import '../use-responsive-point-Bp3D3lZT.js';
|
|
40
40
|
import '@dimjs/utils/uuid/uuid';
|
|
41
41
|
import '@ant-design/icons/es/icons/LoadingOutlined.js';
|
|
42
42
|
import '@dimjs/lang/is-promise';
|
|
43
|
-
import '../config-provider-wrapper-
|
|
43
|
+
import '../config-provider-wrapper-C72dPUJZ.js';
|
|
44
44
|
import 'antd/es/locale/en_US.js';
|
|
45
45
|
import 'antd/es/locale/zh_CN.js';
|
|
46
46
|
import 'dayjs';
|
|
@@ -57,7 +57,7 @@ import 'dayjs/locale/zh-cn.js';
|
|
|
57
57
|
import '../box-grid/index.js';
|
|
58
58
|
import '@dimjs/lang/is-number';
|
|
59
59
|
import 'ahooks';
|
|
60
|
-
import '../form-wrapper-
|
|
60
|
+
import '../form-wrapper-DBDMN0mN.js';
|
|
61
61
|
import '../pre-defined-class-name/index.js';
|
|
62
62
|
import '@ant-design/icons/es/icons/QuestionCircleOutlined.js';
|
|
63
63
|
|
|
@@ -221,18 +221,18 @@ var EasyTable$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
221
221
|
return (columnFoldConfig === null || columnFoldConfig === void 0 ? void 0 : columnFoldConfig.initSelectedKeys) || [];
|
|
222
222
|
}
|
|
223
223
|
}),
|
|
224
|
-
|
|
225
|
-
showFoldKeyList =
|
|
226
|
-
setShowFoldKeyList =
|
|
224
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
225
|
+
showFoldKeyList = _useState0[0],
|
|
226
|
+
setShowFoldKeyList = _useState0[1];
|
|
227
227
|
var pageSize = props.pageSize || ((_props$initialPaginat = props.initialPaginationParams) === null || _props$initialPaginat === void 0 ? void 0 : _props$initialPaginat.pageSize) || 10;
|
|
228
228
|
var initRequest = props.initRequest === undefined ? true : props.initRequest;
|
|
229
229
|
var paginationStatusRef = useRef(false);
|
|
230
230
|
var respOriginalDataRef = useRef();
|
|
231
231
|
var baseColumnsRef = useRef([]);
|
|
232
|
-
var
|
|
233
|
-
|
|
234
|
-
dynamicColumns =
|
|
235
|
-
setDynamicColumns =
|
|
232
|
+
var _useState1 = useState(),
|
|
233
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
234
|
+
dynamicColumns = _useState10[0],
|
|
235
|
+
setDynamicColumns = _useState10[1];
|
|
236
236
|
var columnsRef = useRef([]);
|
|
237
237
|
var fieldNames = _objectSpread2({
|
|
238
238
|
list: 'list',
|