@adapttable/ant-design-vue 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +555 -2
- package/dist/AnchoredPopover-B-zosogj.cjs +96 -0
- package/dist/AnchoredPopover-B-zosogj.cjs.map +1 -0
- package/dist/AnchoredPopover-B9QYyyy-.js +85 -0
- package/dist/AnchoredPopover-B9QYyyy-.js.map +1 -0
- package/dist/AntdCard-CFVZgsUM.js +34 -0
- package/dist/AntdCard-CFVZgsUM.js.map +1 -0
- package/dist/AntdCard-Jx9wJdT_.cjs +39 -0
- package/dist/AntdCard-Jx9wJdT_.cjs.map +1 -0
- package/dist/AntdCheckbox-D9gzdPeG.cjs +112 -0
- package/dist/AntdCheckbox-D9gzdPeG.cjs.map +1 -0
- package/dist/AntdCheckbox-D_B7eXrQ.js +107 -0
- package/dist/AntdCheckbox-D_B7eXrQ.js.map +1 -0
- package/dist/AntdColumnMenuPanel-BisjIL_u.js +126 -0
- package/dist/AntdColumnMenuPanel-BisjIL_u.js.map +1 -0
- package/dist/AntdColumnMenuPanel-QsF2AHKd.cjs +137 -0
- package/dist/AntdColumnMenuPanel-QsF2AHKd.cjs.map +1 -0
- package/dist/AntdFilterField-D-w-xtRS.js +337 -0
- package/dist/AntdFilterField-D-w-xtRS.js.map +1 -0
- package/dist/AntdFilterField-DYdwUyPe.cjs +366 -0
- package/dist/AntdFilterField-DYdwUyPe.cjs.map +1 -0
- package/dist/AntdFilterHeaderRow-C2zlhb1L.js +221 -0
- package/dist/AntdFilterHeaderRow-C2zlhb1L.js.map +1 -0
- package/dist/AntdFilterHeaderRow-DZ2Pq2BG.cjs +232 -0
- package/dist/AntdFilterHeaderRow-DZ2Pq2BG.cjs.map +1 -0
- package/dist/AntdFilterHeaderRow.vue-bSjrpoCP.d.cts +33 -0
- package/dist/AntdFilterHeaderRow.vue-bSjrpoCP.d.cts.map +1 -0
- package/dist/AntdFilterHeaderRow.vue-bSjrpoCP.d.ts +33 -0
- package/dist/AntdFilterHeaderRow.vue-bSjrpoCP.d.ts.map +1 -0
- package/dist/AntdInput-BFNEDXzq.cjs +97 -0
- package/dist/AntdInput-BFNEDXzq.cjs.map +1 -0
- package/dist/AntdInput-ONL_AJ3Y.js +92 -0
- package/dist/AntdInput-ONL_AJ3Y.js.map +1 -0
- package/dist/AntdRowActions-D2Pce95h.cjs +106 -0
- package/dist/AntdRowActions-D2Pce95h.cjs.map +1 -0
- package/dist/AntdRowActions-cZQk-mT_.js +101 -0
- package/dist/AntdRowActions-cZQk-mT_.js.map +1 -0
- package/dist/AntdSelect-D-Oy0101.js +140 -0
- package/dist/AntdSelect-D-Oy0101.js.map +1 -0
- package/dist/AntdSelect-DYoLHfOo.cjs +151 -0
- package/dist/AntdSelect-DYoLHfOo.cjs.map +1 -0
- package/dist/antdActionSlots-CjNxmqIB.cjs +13 -0
- package/dist/antdActionSlots-CjNxmqIB.cjs.map +1 -0
- package/dist/antdActionSlots-eKczvTu9.js +8 -0
- package/dist/antdActionSlots-eKczvTu9.js.map +1 -0
- package/dist/antdRemainingControls-CQcrvZpV.js +237 -0
- package/dist/antdRemainingControls-CQcrvZpV.js.map +1 -0
- package/dist/antdRemainingControls-CjAK8L7r.cjs +260 -0
- package/dist/antdRemainingControls-CjAK8L7r.cjs.map +1 -0
- package/dist/assistant.cjs +339 -0
- package/dist/assistant.cjs.map +1 -0
- package/dist/assistant.d.cts +10 -0
- package/dist/assistant.d.cts.map +1 -0
- package/dist/assistant.d.ts +10 -0
- package/dist/assistant.d.ts.map +1 -0
- package/dist/assistant.js +335 -0
- package/dist/assistant.js.map +1 -0
- package/dist/batch-editing.cjs +4 -0
- package/dist/batch-editing.d.cts +2 -0
- package/dist/batch-editing.d.ts +2 -0
- package/dist/batch-editing.js +2 -0
- package/dist/bulk-actions.cjs +15 -0
- package/dist/bulk-actions.cjs.map +1 -0
- package/dist/bulk-actions.d.cts +6 -0
- package/dist/bulk-actions.d.cts.map +1 -0
- package/dist/bulk-actions.d.ts +6 -0
- package/dist/bulk-actions.d.ts.map +1 -0
- package/dist/bulk-actions.js +14 -0
- package/dist/bulk-actions.js.map +1 -0
- package/dist/button-llfktOrH.cjs +77 -0
- package/dist/button-llfktOrH.cjs.map +1 -0
- package/dist/button-pAA17ogP.js +66 -0
- package/dist/button-pAA17ogP.js.map +1 -0
- package/dist/cell-navigation-C7nWnSxt.cjs +85 -0
- package/dist/cell-navigation-C7nWnSxt.cjs.map +1 -0
- package/dist/cell-navigation-gmXXkZ0E.js +74 -0
- package/dist/cell-navigation-gmXXkZ0E.js.map +1 -0
- package/dist/cell-navigation.cjs +4 -0
- package/dist/cell-navigation.d.cts +9 -0
- package/dist/cell-navigation.d.cts.map +1 -0
- package/dist/cell-navigation.d.ts +9 -0
- package/dist/cell-navigation.d.ts.map +1 -0
- package/dist/cell-navigation.js +2 -0
- package/dist/cell-span.cjs +8 -0
- package/dist/cell-span.d.cts +2 -0
- package/dist/cell-span.d.ts +2 -0
- package/dist/cell-span.js +2 -0
- package/dist/checkbox-BRHAklGV.js +21 -0
- package/dist/checkbox-BRHAklGV.js.map +1 -0
- package/dist/checkbox-DBL8jd6A.cjs +26 -0
- package/dist/checkbox-DBL8jd6A.cjs.map +1 -0
- package/dist/classNamesContext-18Wbxy4F.js +2 -0
- package/dist/column-groups.cjs +8 -0
- package/dist/column-groups.d.cts +2 -0
- package/dist/column-groups.d.ts +2 -0
- package/dist/column-groups.js +2 -0
- package/dist/column-layout.cjs +24 -0
- package/dist/column-layout.cjs.map +1 -0
- package/dist/column-layout.d.cts +12 -0
- package/dist/column-layout.d.cts.map +1 -0
- package/dist/column-layout.d.ts +12 -0
- package/dist/column-layout.d.ts.map +1 -0
- package/dist/column-layout.js +22 -0
- package/dist/column-layout.js.map +1 -0
- package/dist/column-menu-BIQ0V_l4.js +134 -0
- package/dist/column-menu-BIQ0V_l4.js.map +1 -0
- package/dist/column-menu-C8AEmjov.cjs +145 -0
- package/dist/column-menu-C8AEmjov.cjs.map +1 -0
- package/dist/column-menu.cjs +4 -0
- package/dist/column-menu.d.cts +34 -0
- package/dist/column-menu.d.cts.map +1 -0
- package/dist/column-menu.d.ts +34 -0
- package/dist/column-menu.d.ts.map +1 -0
- package/dist/column-menu.js +2 -0
- package/dist/column-selection.cjs +3 -0
- package/dist/column-selection.d.cts +2 -0
- package/dist/column-selection.d.ts +2 -0
- package/dist/column-selection.js +2 -0
- package/dist/columns.cjs +26 -0
- package/dist/columns.d.cts +3 -0
- package/dist/columns.d.ts +3 -0
- package/dist/columns.js +2 -0
- package/dist/command-palette.cjs +43 -0
- package/dist/command-palette.cjs.map +1 -0
- package/dist/command-palette.d.cts +7 -0
- package/dist/command-palette.d.cts.map +1 -0
- package/dist/command-palette.d.ts +7 -0
- package/dist/command-palette.d.ts.map +1 -0
- package/dist/command-palette.js +42 -0
- package/dist/command-palette.js.map +1 -0
- package/dist/context-menu.cjs +34 -0
- package/dist/context-menu.cjs.map +1 -0
- package/dist/context-menu.d.cts +7 -0
- package/dist/context-menu.d.cts.map +1 -0
- package/dist/context-menu.d.ts +7 -0
- package/dist/context-menu.d.ts.map +1 -0
- package/dist/context-menu.js +33 -0
- package/dist/context-menu.js.map +1 -0
- package/dist/density-BGYZiREt.js +81 -0
- package/dist/density-BGYZiREt.js.map +1 -0
- package/dist/density-DwoIsjhn.cjs +86 -0
- package/dist/density-DwoIsjhn.cjs.map +1 -0
- package/dist/density.cjs +3 -0
- package/dist/density.d.cts +7 -0
- package/dist/density.d.cts.map +1 -0
- package/dist/density.d.ts +7 -0
- package/dist/density.d.ts.map +1 -0
- package/dist/density.js +2 -0
- package/dist/editing-C2bX-h0b.js +406 -0
- package/dist/editing-C2bX-h0b.js.map +1 -0
- package/dist/editing-D7nib8vf.d.cts +68 -0
- package/dist/editing-D7nib8vf.d.cts.map +1 -0
- package/dist/editing-DwmhJyRy.cjs +452 -0
- package/dist/editing-DwmhJyRy.cjs.map +1 -0
- package/dist/editing-EcNF6SH-.d.ts +68 -0
- package/dist/editing-EcNF6SH-.d.ts.map +1 -0
- package/dist/editing.cjs +13 -0
- package/dist/editing.d.cts +2 -0
- package/dist/editing.d.ts +2 -0
- package/dist/editing.js +2 -0
- package/dist/export-BvFzcnOH.cjs +15 -0
- package/dist/export-BvFzcnOH.cjs.map +1 -0
- package/dist/export-LdiMI-Kb.js +10 -0
- package/dist/export-LdiMI-Kb.js.map +1 -0
- package/dist/export-pdf.cjs +53 -0
- package/dist/export-pdf.cjs.map +1 -0
- package/dist/export-pdf.d.cts +8 -0
- package/dist/export-pdf.d.cts.map +1 -0
- package/dist/export-pdf.d.ts +8 -0
- package/dist/export-pdf.d.ts.map +1 -0
- package/dist/export-pdf.js +10 -0
- package/dist/export-pdf.js.map +1 -0
- package/dist/export-xlsx.cjs +23 -0
- package/dist/export-xlsx.cjs.map +1 -0
- package/dist/export-xlsx.d.cts +8 -0
- package/dist/export-xlsx.d.cts.map +1 -0
- package/dist/export-xlsx.d.ts +8 -0
- package/dist/export-xlsx.d.ts.map +1 -0
- package/dist/export-xlsx.js +10 -0
- package/dist/export-xlsx.js.map +1 -0
- package/dist/export.cjs +3 -0
- package/dist/export.d.cts +9 -0
- package/dist/export.d.cts.map +1 -0
- package/dist/export.d.ts +9 -0
- package/dist/export.d.ts.map +1 -0
- package/dist/export.js +2 -0
- package/dist/extra-rows.cjs +8 -0
- package/dist/extra-rows.d.cts +2 -0
- package/dist/extra-rows.d.ts +2 -0
- package/dist/extra-rows.js +2 -0
- package/dist/filtering.cjs +22 -0
- package/dist/filtering.cjs.map +1 -0
- package/dist/filtering.d.cts +13 -0
- package/dist/filtering.d.cts.map +1 -0
- package/dist/filtering.d.ts +13 -0
- package/dist/filtering.d.ts.map +1 -0
- package/dist/filtering.js +21 -0
- package/dist/filtering.js.map +1 -0
- package/dist/filters-B9Bku-_Z.js +256 -0
- package/dist/filters-B9Bku-_Z.js.map +1 -0
- package/dist/filters-C7_REVIj.cjs +308 -0
- package/dist/filters-C7_REVIj.cjs.map +1 -0
- package/dist/filters.cjs +21 -0
- package/dist/filters.d.cts +77 -0
- package/dist/filters.d.cts.map +1 -0
- package/dist/filters.d.ts +77 -0
- package/dist/filters.d.ts.map +1 -0
- package/dist/filters.js +3 -0
- package/dist/find-in-table-BwSZ3K3a.js +57 -0
- package/dist/find-in-table-BwSZ3K3a.js.map +1 -0
- package/dist/find-in-table-DrcHalH3.cjs +61 -0
- package/dist/find-in-table-DrcHalH3.cjs.map +1 -0
- package/dist/find-in-table.cjs +3 -0
- package/dist/find-in-table.d.cts +9 -0
- package/dist/find-in-table.d.cts.map +1 -0
- package/dist/find-in-table.d.ts +9 -0
- package/dist/find-in-table.d.ts.map +1 -0
- package/dist/find-in-table.js +2 -0
- package/dist/fit-columns.cjs +8 -0
- package/dist/fit-columns.d.cts +2 -0
- package/dist/fit-columns.d.ts +2 -0
- package/dist/fit-columns.js +2 -0
- package/dist/focusTrap-CBLumRSW.cjs +52 -0
- package/dist/focusTrap-CBLumRSW.cjs.map +1 -0
- package/dist/focusTrap-pCE3KCOC.js +41 -0
- package/dist/focusTrap-pCE3KCOC.js.map +1 -0
- package/dist/fullscreen.cjs +15 -0
- package/dist/fullscreen.cjs.map +1 -0
- package/dist/fullscreen.d.cts +6 -0
- package/dist/fullscreen.d.cts.map +1 -0
- package/dist/fullscreen.d.ts +6 -0
- package/dist/fullscreen.d.ts.map +1 -0
- package/dist/fullscreen.js +14 -0
- package/dist/fullscreen.js.map +1 -0
- package/dist/grouping-panel.cjs +145 -0
- package/dist/grouping-panel.cjs.map +1 -0
- package/dist/grouping-panel.d.cts +8 -0
- package/dist/grouping-panel.d.cts.map +1 -0
- package/dist/grouping-panel.d.ts +8 -0
- package/dist/grouping-panel.d.ts.map +1 -0
- package/dist/grouping-panel.js +145 -0
- package/dist/grouping-panel.js.map +1 -0
- package/dist/grouping.cjs +41 -0
- package/dist/grouping.cjs.map +1 -0
- package/dist/grouping.d.cts +10 -0
- package/dist/grouping.d.cts.map +1 -0
- package/dist/grouping.d.ts +10 -0
- package/dist/grouping.d.ts.map +1 -0
- package/dist/grouping.js +22 -0
- package/dist/grouping.js.map +1 -0
- package/dist/handlers-Br0_3lPS.cjs +17 -0
- package/dist/handlers-Br0_3lPS.cjs.map +1 -0
- package/dist/handlers-xPUYC5j6.js +12 -0
- package/dist/handlers-xPUYC5j6.js.map +1 -0
- package/dist/header-filters-0xo31PXV.js +70 -0
- package/dist/header-filters-0xo31PXV.js.map +1 -0
- package/dist/header-filters-DYsEkFD9.cjs +80 -0
- package/dist/header-filters-DYsEkFD9.cjs.map +1 -0
- package/dist/header-filters.cjs +7 -0
- package/dist/header-filters.d.cts +24 -0
- package/dist/header-filters.d.cts.map +1 -0
- package/dist/header-filters.d.ts +24 -0
- package/dist/header-filters.d.ts.map +1 -0
- package/dist/header-filters.js +3 -0
- package/dist/icon-BDUM_Xmy.js +18 -0
- package/dist/icon-BDUM_Xmy.js.map +1 -0
- package/dist/icon-CeQ6QTNJ.cjs +23 -0
- package/dist/icon-CeQ6QTNJ.cjs.map +1 -0
- package/dist/index.cjs +599 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +597 -0
- package/dist/index.js.map +1 -0
- package/dist/menuKeyboard-Be6RV6HV.cjs +81 -0
- package/dist/menuKeyboard-Be6RV6HV.cjs.map +1 -0
- package/dist/menuKeyboard-CpHOc6uW.js +70 -0
- package/dist/menuKeyboard-CpHOc6uW.js.map +1 -0
- package/dist/multi-sort.cjs +8 -0
- package/dist/multi-sort.d.cts +2 -0
- package/dist/multi-sort.d.ts +2 -0
- package/dist/multi-sort.js +2 -0
- package/dist/nested-table.cjs +8 -0
- package/dist/nested-table.d.cts +2 -0
- package/dist/nested-table.d.ts +2 -0
- package/dist/nested-table.js +2 -0
- package/dist/pinned-summary-rows.cjs +8 -0
- package/dist/pinned-summary-rows.d.cts +2 -0
- package/dist/pinned-summary-rows.d.ts +2 -0
- package/dist/pinned-summary-rows.js +2 -0
- package/dist/pivot.cjs +81 -0
- package/dist/pivot.cjs.map +1 -0
- package/dist/pivot.d.cts +10 -0
- package/dist/pivot.d.cts.map +1 -0
- package/dist/pivot.d.ts +10 -0
- package/dist/pivot.d.ts.map +1 -0
- package/dist/pivot.js +80 -0
- package/dist/pivot.js.map +1 -0
- package/dist/popupContainer-C0uOjWEO.cjs +27 -0
- package/dist/popupContainer-C0uOjWEO.cjs.map +1 -0
- package/dist/popupContainer-CzyUSIJI.js +22 -0
- package/dist/popupContainer-CzyUSIJI.js.map +1 -0
- package/dist/preset.cjs +40 -0
- package/dist/preset.cjs.map +1 -0
- package/dist/preset.d.cts +21 -0
- package/dist/preset.d.cts.map +1 -0
- package/dist/preset.d.ts +21 -0
- package/dist/preset.d.ts.map +1 -0
- package/dist/preset.js +38 -0
- package/dist/preset.js.map +1 -0
- package/dist/print.cjs +15 -0
- package/dist/print.cjs.map +1 -0
- package/dist/print.d.cts +6 -0
- package/dist/print.d.cts.map +1 -0
- package/dist/print.d.ts +6 -0
- package/dist/print.d.ts.map +1 -0
- package/dist/print.js +14 -0
- package/dist/print.js.map +1 -0
- package/dist/resizable-columns.cjs +8 -0
- package/dist/resizable-columns.d.cts +2 -0
- package/dist/resizable-columns.d.ts +2 -0
- package/dist/resizable-columns.js +2 -0
- package/dist/row-actions.cjs +15 -0
- package/dist/row-actions.cjs.map +1 -0
- package/dist/row-actions.d.cts +7 -0
- package/dist/row-actions.d.cts.map +1 -0
- package/dist/row-actions.d.ts +7 -0
- package/dist/row-actions.d.ts.map +1 -0
- package/dist/row-actions.js +14 -0
- package/dist/row-actions.js.map +1 -0
- package/dist/row-appearance.cjs +8 -0
- package/dist/row-appearance.d.cts +2 -0
- package/dist/row-appearance.d.ts +2 -0
- package/dist/row-appearance.js +2 -0
- package/dist/row-detail.cjs +28 -0
- package/dist/row-detail.d.cts +4 -0
- package/dist/row-detail.d.ts +4 -0
- package/dist/row-detail.js +4 -0
- package/dist/row-pinning.cjs +15 -0
- package/dist/row-pinning.cjs.map +1 -0
- package/dist/row-pinning.d.cts +8 -0
- package/dist/row-pinning.d.cts.map +1 -0
- package/dist/row-pinning.d.ts +8 -0
- package/dist/row-pinning.d.ts.map +1 -0
- package/dist/row-pinning.js +14 -0
- package/dist/row-pinning.js.map +1 -0
- package/dist/row-reorder.cjs +168 -0
- package/dist/row-reorder.cjs.map +1 -0
- package/dist/row-reorder.d.cts +7 -0
- package/dist/row-reorder.d.cts.map +1 -0
- package/dist/row-reorder.d.ts +7 -0
- package/dist/row-reorder.d.ts.map +1 -0
- package/dist/row-reorder.js +162 -0
- package/dist/row-reorder.js.map +1 -0
- package/dist/rowActionsSlot-75ZknCMX.cjs +21 -0
- package/dist/rowActionsSlot-75ZknCMX.cjs.map +1 -0
- package/dist/rowActionsSlot-CZsFwkQq.js +11 -0
- package/dist/rowActionsSlot-CZsFwkQq.js.map +1 -0
- package/dist/rows.cjs +30 -0
- package/dist/rows.d.cts +6 -0
- package/dist/rows.d.ts +6 -0
- package/dist/rows.js +4 -0
- package/dist/saved-views-B7Z6nwie.js +135 -0
- package/dist/saved-views-B7Z6nwie.js.map +1 -0
- package/dist/saved-views-DBXLa86I.cjs +146 -0
- package/dist/saved-views-DBXLa86I.cjs.map +1 -0
- package/dist/saved-views.cjs +4 -0
- package/dist/saved-views.d.cts +15 -0
- package/dist/saved-views.d.cts.map +1 -0
- package/dist/saved-views.d.ts +15 -0
- package/dist/saved-views.d.ts.map +1 -0
- package/dist/saved-views.js +2 -0
- package/dist/scrollbarGutter-C0KgyWkH.js +39 -0
- package/dist/scrollbarGutter-C0KgyWkH.js.map +1 -0
- package/dist/scrollbarGutter-LdIJUA1p.cjs +50 -0
- package/dist/scrollbarGutter-LdIJUA1p.cjs.map +1 -0
- package/dist/selection-stats.cjs +3 -0
- package/dist/selection-stats.d.cts +2 -0
- package/dist/selection-stats.d.ts +2 -0
- package/dist/selection-stats.js +2 -0
- package/dist/selection.cjs +8 -0
- package/dist/selection.d.cts +2 -0
- package/dist/selection.d.ts +2 -0
- package/dist/selection.js +2 -0
- package/dist/side-panel.cjs +29 -0
- package/dist/side-panel.cjs.map +1 -0
- package/dist/side-panel.d.cts +7 -0
- package/dist/side-panel.d.cts.map +1 -0
- package/dist/side-panel.d.ts +7 -0
- package/dist/side-panel.d.ts.map +1 -0
- package/dist/side-panel.js +28 -0
- package/dist/side-panel.js.map +1 -0
- package/dist/status-bar-D2UUx4zG.cjs +78 -0
- package/dist/status-bar-D2UUx4zG.cjs.map +1 -0
- package/dist/status-bar-DKc2qWoh.js +68 -0
- package/dist/status-bar-DKc2qWoh.js.map +1 -0
- package/dist/status-bar.cjs +4 -0
- package/dist/status-bar.d.cts +7 -0
- package/dist/status-bar.d.cts.map +1 -0
- package/dist/status-bar.d.ts +7 -0
- package/dist/status-bar.d.ts.map +1 -0
- package/dist/status-bar.js +2 -0
- package/dist/styles.css +869 -0
- package/dist/tree.cjs +21 -0
- package/dist/tree.d.cts +3 -0
- package/dist/tree.d.ts +3 -0
- package/dist/tree.js +3 -0
- package/dist/types-CLQKtnFl.d.cts +2 -0
- package/dist/types-CLQKtnFl.d.ts +2 -0
- package/dist/virtualize.cjs +8 -0
- package/dist/virtualize.d.cts +2 -0
- package/dist/virtualize.d.ts +2 -0
- package/dist/virtualize.js +2 -0
- package/dist/withAntdExport-D58sVJ7b.cjs +80 -0
- package/dist/withAntdExport-D58sVJ7b.cjs.map +1 -0
- package/dist/withAntdExport-QFf2KVNO.js +75 -0
- package/dist/withAntdExport-QFf2KVNO.js.map +1 -0
- package/package.json +533 -3
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { t as antdButton } from "./button-pAA17ogP.js";
|
|
2
|
+
import { t as eventHandlers } from "./handlers-xPUYC5j6.js";
|
|
3
|
+
import { t as popupContainer } from "./popupContainer-CzyUSIJI.js";
|
|
4
|
+
import { n as handleMenuKey, t as focusOnOpen } from "./menuKeyboard-CpHOc6uW.js";
|
|
5
|
+
import { Fragment, createVNode, defineComponent, h, mergeProps, shallowRef } from "vue";
|
|
6
|
+
import { rowActionContent, scheduleTick, withProps } from "@adapttable/vue/adapter";
|
|
7
|
+
import { Dropdown, Menu, MenuItem } from "ant-design-vue";
|
|
8
|
+
//#region src/AntdRowActions.ts
|
|
9
|
+
const actionProps = {
|
|
10
|
+
controls: null,
|
|
11
|
+
layout: null,
|
|
12
|
+
label: null,
|
|
13
|
+
classNames: null
|
|
14
|
+
};
|
|
15
|
+
const AntdRowActionsPresentation = defineComponent((props) => {
|
|
16
|
+
const trigger = shallowRef(null);
|
|
17
|
+
const open = shallowRef(false);
|
|
18
|
+
const focusMenu = focusOnOpen(scheduleTick);
|
|
19
|
+
const setTrigger = (element) => {
|
|
20
|
+
trigger.value = element;
|
|
21
|
+
};
|
|
22
|
+
const returnToTrigger = () => {
|
|
23
|
+
if (trigger.value?.isConnected) trigger.value.focus({ preventScroll: true });
|
|
24
|
+
};
|
|
25
|
+
const attrs = (action) => mergeProps({
|
|
26
|
+
key: action.key,
|
|
27
|
+
class: props.classNames.actionButton,
|
|
28
|
+
onClick: (event) => event.stopPropagation()
|
|
29
|
+
}, action.attrs);
|
|
30
|
+
const menuItem = (action) => {
|
|
31
|
+
const { onClick, ...rest } = attrs(action);
|
|
32
|
+
const handlers = eventHandlers(onClick);
|
|
33
|
+
return h(MenuItem, {
|
|
34
|
+
...rest,
|
|
35
|
+
type: void 0,
|
|
36
|
+
onClick: (event) => {
|
|
37
|
+
returnToTrigger();
|
|
38
|
+
for (const handler of handlers) handler(event);
|
|
39
|
+
}
|
|
40
|
+
}, { default: () => action.label });
|
|
41
|
+
};
|
|
42
|
+
return () => {
|
|
43
|
+
if (props.layout !== "menu" || props.controls.length === 0) return h(Fragment, null, props.controls.map((action) => antdButton(attrs(action), rowActionContent(action))));
|
|
44
|
+
return h("span", {
|
|
45
|
+
"data-adapttable-part": "row-actions-menu",
|
|
46
|
+
class: props.classNames.rowActionsMenu,
|
|
47
|
+
onPointerdown: (event) => event.stopPropagation()
|
|
48
|
+
}, [h(Dropdown, {
|
|
49
|
+
trigger: ["click"],
|
|
50
|
+
open: open.value,
|
|
51
|
+
onOpenChange: (value) => {
|
|
52
|
+
open.value = value;
|
|
53
|
+
},
|
|
54
|
+
onOverlayClick: () => {
|
|
55
|
+
open.value = false;
|
|
56
|
+
},
|
|
57
|
+
getPopupContainer: popupContainer(false),
|
|
58
|
+
placement: "bottomRight"
|
|
59
|
+
}, {
|
|
60
|
+
default: () => antdButton({
|
|
61
|
+
ref: setTrigger,
|
|
62
|
+
"data-adapttable-part": "row-actions-trigger",
|
|
63
|
+
class: props.classNames.rowActionsTrigger,
|
|
64
|
+
"aria-label": props.label,
|
|
65
|
+
"aria-haspopup": "menu",
|
|
66
|
+
"aria-expanded": open.value,
|
|
67
|
+
onClick: (event) => event.stopPropagation(),
|
|
68
|
+
onKeydown: (event) => {
|
|
69
|
+
if (event.key === "ArrowDown" && !open.value) {
|
|
70
|
+
event.preventDefault();
|
|
71
|
+
open.value = true;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}, "⋮"),
|
|
75
|
+
overlay: () => h(Menu, {
|
|
76
|
+
selectable: false,
|
|
77
|
+
ref: focusMenu,
|
|
78
|
+
onKeydown: (event) => {
|
|
79
|
+
if (handleMenuKey(event)) return;
|
|
80
|
+
if (event.key === "Escape" && !event.defaultPrevented) {
|
|
81
|
+
event.preventDefault();
|
|
82
|
+
event.stopPropagation();
|
|
83
|
+
open.value = false;
|
|
84
|
+
returnToTrigger();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}, { default: () => props.controls.map(menuItem) })
|
|
88
|
+
})]);
|
|
89
|
+
};
|
|
90
|
+
}, {
|
|
91
|
+
name: "AntdRowActionsPresentation",
|
|
92
|
+
props: actionProps
|
|
93
|
+
});
|
|
94
|
+
/** A menu returns focus to its native trigger before an action opens another surface. */
|
|
95
|
+
const AntdRowActions = /* @__PURE__ */ withProps(function AntdRowActions(props) {
|
|
96
|
+
return createVNode(AntdRowActionsPresentation, { ...props });
|
|
97
|
+
}, actionProps);
|
|
98
|
+
//#endregion
|
|
99
|
+
export { AntdRowActions as t };
|
|
100
|
+
|
|
101
|
+
//# sourceMappingURL=AntdRowActions-cZQk-mT_.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AntdRowActions-cZQk-mT_.js","names":[],"sources":["../src/AntdRowActions.ts"],"sourcesContent":["import type { RowActionControl } from \"@adapttable/vue\";\nimport {\n type DataTableClassNames,\n rowActionContent,\n type RowActionsLayout,\n scheduleTick,\n withProps,\n} from \"@adapttable/vue/adapter\";\nimport { Dropdown, Menu, MenuItem } from \"ant-design-vue\";\nimport {\n createVNode,\n defineComponent,\n Fragment,\n h,\n mergeProps,\n shallowRef,\n type VNode,\n} from \"vue\";\n\nimport { antdButton } from \"./controls/button\";\nimport { eventHandlers } from \"./controls/handlers\";\nimport { focusOnOpen, handleMenuKey } from \"./controls/menuKeyboard\";\nimport { popupContainer } from \"./controls/popupContainer\";\n\ninterface AntdRowActionsProps<TRow> {\n readonly controls: readonly RowActionControl<TRow>[];\n readonly layout?: RowActionsLayout;\n readonly label: string;\n readonly classNames: DataTableClassNames;\n}\nconst actionProps = {\n controls: null,\n layout: null,\n label: null,\n classNames: null,\n} satisfies Record<keyof AntdRowActionsProps<unknown>, unknown>;\n\nconst AntdRowActionsPresentation = defineComponent(\n (props: AntdRowActionsProps<unknown>) => {\n const trigger = shallowRef<HTMLElement | null>(null);\n // Ant Design Vue marks no expanded state on the trigger, so it is tracked\n // here and written to the button.\n const open = shallowRef(false);\n const focusMenu = focusOnOpen(scheduleTick);\n const setTrigger = (element: HTMLElement | null) => {\n trigger.value = element;\n };\n const returnToTrigger = () => {\n if (trigger.value?.isConnected)\n trigger.value.focus({ preventScroll: true });\n };\n const attrs = (action: RowActionControl<unknown>) =>\n mergeProps(\n {\n key: action.key,\n class: props.classNames.actionButton,\n onClick: (event: MouseEvent) => event.stopPropagation(),\n },\n action.attrs\n );\n const menuItem = (action: RowActionControl<unknown>) => {\n const { onClick, ...rest } = attrs(action);\n const handlers = eventHandlers<MouseEvent>(onClick);\n return h(\n MenuItem,\n {\n ...rest,\n type: undefined,\n onClick: (event: MouseEvent) => {\n returnToTrigger();\n for (const handler of handlers) handler(event);\n },\n },\n { default: () => action.label }\n );\n };\n return () => {\n if (props.layout !== \"menu\" || props.controls.length === 0)\n return h(\n Fragment,\n null,\n props.controls.map((action) =>\n antdButton(attrs(action), rowActionContent(action))\n )\n );\n return h(\n \"span\",\n {\n \"data-adapttable-part\": \"row-actions-menu\",\n class: props.classNames.rowActionsMenu,\n onPointerdown: (event: PointerEvent) => event.stopPropagation(),\n },\n [\n h(\n Dropdown,\n {\n trigger: [\"click\"],\n open: open.value,\n onOpenChange: (value: boolean) => {\n open.value = value;\n },\n // A controlled dropdown leaves closing on a chosen item to us.\n onOverlayClick: () => {\n open.value = false;\n },\n getPopupContainer: popupContainer(false),\n placement: \"bottomRight\",\n },\n {\n default: () =>\n antdButton(\n {\n ref: setTrigger,\n \"data-adapttable-part\": \"row-actions-trigger\",\n class: props.classNames.rowActionsTrigger,\n \"aria-label\": props.label,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": open.value,\n onClick: (event: MouseEvent) => event.stopPropagation(),\n onKeydown: (event: KeyboardEvent) => {\n if (event.key === \"ArrowDown\" && !open.value) {\n event.preventDefault();\n open.value = true;\n }\n },\n },\n \"⋮\"\n ),\n overlay: () =>\n h(\n Menu,\n {\n selectable: false,\n ref: focusMenu,\n onKeydown: (event: KeyboardEvent) => {\n if (handleMenuKey(event)) return;\n if (event.key === \"Escape\" && !event.defaultPrevented) {\n event.preventDefault();\n event.stopPropagation();\n open.value = false;\n returnToTrigger();\n }\n },\n },\n { default: () => props.controls.map(menuItem) }\n ),\n }\n ),\n ]\n );\n };\n },\n { name: \"AntdRowActionsPresentation\", props: actionProps }\n);\n\n/** A menu returns focus to its native trigger before an action opens another surface. */\nexport const AntdRowActions = /* @__PURE__ */ withProps(function AntdRowActions<\n TRow,\n>(props: AntdRowActionsProps<TRow>): VNode {\n return createVNode(AntdRowActionsPresentation, { ...props });\n}, actionProps);\n"],"mappings":";;;;;;;;AA8BA,MAAM,cAAc;CAClB,UAAU;CACV,QAAQ;CACR,OAAO;CACP,YAAY;AACd;AAEA,MAAM,6BAA6B,iBAChC,UAAwC;CACvC,MAAM,UAAU,WAA+B,IAAI;CAGnD,MAAM,OAAO,WAAW,KAAK;CAC7B,MAAM,YAAY,YAAY,YAAY;CAC1C,MAAM,cAAc,YAAgC;EAClD,QAAQ,QAAQ;CAClB;CACA,MAAM,wBAAwB;EAC5B,IAAI,QAAQ,OAAO,aACjB,QAAQ,MAAM,MAAM,EAAE,eAAe,KAAK,CAAC;CAC/C;CACA,MAAM,SAAS,WACb,WACE;EACE,KAAK,OAAO;EACZ,OAAO,MAAM,WAAW;EACxB,UAAU,UAAsB,MAAM,gBAAgB;CACxD,GACA,OAAO,KACT;CACF,MAAM,YAAY,WAAsC;EACtD,MAAM,EAAE,SAAS,GAAG,SAAS,MAAM,MAAM;EACzC,MAAM,WAAW,cAA0B,OAAO;EAClD,OAAO,EACL,UACA;GACE,GAAG;GACH,MAAM,KAAA;GACN,UAAU,UAAsB;IAC9B,gBAAgB;IAChB,KAAK,MAAM,WAAW,UAAU,QAAQ,KAAK;GAC/C;EACF,GACA,EAAE,eAAe,OAAO,MAAM,CAChC;CACF;CACA,aAAa;EACX,IAAI,MAAM,WAAW,UAAU,MAAM,SAAS,WAAW,GACvD,OAAO,EACL,UACA,MACA,MAAM,SAAS,KAAK,WAClB,WAAW,MAAM,MAAM,GAAG,iBAAiB,MAAM,CAAC,CACpD,CACF;EACF,OAAO,EACL,QACA;GACE,wBAAwB;GACxB,OAAO,MAAM,WAAW;GACxB,gBAAgB,UAAwB,MAAM,gBAAgB;EAChE,GACA,CACE,EACE,UACA;GACE,SAAS,CAAC,OAAO;GACjB,MAAM,KAAK;GACX,eAAe,UAAmB;IAChC,KAAK,QAAQ;GACf;GAEA,sBAAsB;IACpB,KAAK,QAAQ;GACf;GACA,mBAAmB,eAAe,KAAK;GACvC,WAAW;EACb,GACA;GACE,eACE,WACE;IACE,KAAK;IACL,wBAAwB;IACxB,OAAO,MAAM,WAAW;IACxB,cAAc,MAAM;IACpB,iBAAiB;IACjB,iBAAiB,KAAK;IACtB,UAAU,UAAsB,MAAM,gBAAgB;IACtD,YAAY,UAAyB;KACnC,IAAI,MAAM,QAAQ,eAAe,CAAC,KAAK,OAAO;MAC5C,MAAM,eAAe;MACrB,KAAK,QAAQ;KACf;IACF;GACF,GACA,GACF;GACF,eACE,EACE,MACA;IACE,YAAY;IACZ,KAAK;IACL,YAAY,UAAyB;KACnC,IAAI,cAAc,KAAK,GAAG;KAC1B,IAAI,MAAM,QAAQ,YAAY,CAAC,MAAM,kBAAkB;MACrD,MAAM,eAAe;MACrB,MAAM,gBAAgB;MACtB,KAAK,QAAQ;MACb,gBAAgB;KAClB;IACF;GACF,GACA,EAAE,eAAe,MAAM,SAAS,IAAI,QAAQ,EAAE,CAChD;EACJ,CACF,CACF,CACF;CACF;AACF,GACA;CAAE,MAAM;CAA8B,OAAO;AAAY,CAC3D;;AAGA,MAAa,iBAAiC,0BAAU,SAAS,eAE/D,OAAyC;CACzC,OAAO,YAAY,4BAA4B,EAAE,GAAG,MAAM,CAAC;AAC7D,GAAG,WAAW"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { t as eventHandlers } from "./handlers-xPUYC5j6.js";
|
|
2
|
+
import { t as popupContainer } from "./popupContainer-CzyUSIJI.js";
|
|
3
|
+
import { createBlock, createPropsRestProxy, defineComponent, mergeProps, onMounted, onUpdated, openBlock, shallowRef, unref, useAttrs } from "vue";
|
|
4
|
+
import { scheduleTick } from "@adapttable/vue/adapter";
|
|
5
|
+
import { Select } from "ant-design-vue";
|
|
6
|
+
//#region src/controls/comboboxNaming.ts
|
|
7
|
+
/**
|
|
8
|
+
* Ant Design Vue places every fall-through attribute on the select's root
|
|
9
|
+
* `div`, which has no role, so a name or description given there never reaches
|
|
10
|
+
* the native combobox. This hook keeps the `aria-*` attributes off the root and
|
|
11
|
+
* mirrors them onto the focusable combobox input.
|
|
12
|
+
*/
|
|
13
|
+
function useComboboxNaming(control) {
|
|
14
|
+
const escape = useOpenSelectEscape();
|
|
15
|
+
const attrs = useAttrs();
|
|
16
|
+
const aria = () => Object.entries(attrs).filter(([name]) => name.startsWith("aria-"));
|
|
17
|
+
const apply = () => {
|
|
18
|
+
const host = control.value?.$el;
|
|
19
|
+
if (!(host instanceof Element)) return;
|
|
20
|
+
const input = host.querySelector("[role=\"combobox\"]");
|
|
21
|
+
if (!input) return;
|
|
22
|
+
for (const [name, value] of aria()) if (value == null || value === false) input.removeAttribute(name);
|
|
23
|
+
else input.setAttribute(name, typeof value === "string" ? value : JSON.stringify(value));
|
|
24
|
+
};
|
|
25
|
+
onMounted(apply);
|
|
26
|
+
onUpdated(apply);
|
|
27
|
+
return {
|
|
28
|
+
get rootAttrs() {
|
|
29
|
+
return {
|
|
30
|
+
...Object.fromEntries(Object.entries(attrs).filter(([name]) => !name.startsWith("aria-") && name !== "onKeydown")),
|
|
31
|
+
onKeydownCapture: [escape.onKeydownCapture, ...eventHandlers(attrs.onKeydownCapture)]
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
onKeydown(event) {
|
|
35
|
+
if (escape.onKeydown(event)) return;
|
|
36
|
+
for (const handler of eventHandlers(attrs.onKeydown)) handler(event);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Ant Design Vue closes an open select on Escape but lets the event keep
|
|
42
|
+
* travelling, so an enclosing popover, drawer or submenu would close with it.
|
|
43
|
+
* The select notes that it was open when the key arrived and then marks the
|
|
44
|
+
* event handled and stops it, so the Escape closes the list and nothing else.
|
|
45
|
+
*/
|
|
46
|
+
function useOpenSelectEscape() {
|
|
47
|
+
const owned = /* @__PURE__ */ new WeakSet();
|
|
48
|
+
return {
|
|
49
|
+
onKeydownCapture(event) {
|
|
50
|
+
const target = event.target;
|
|
51
|
+
if (event.key === "Escape" && target instanceof Element && target.getAttribute("role") === "combobox" && target.getAttribute("aria-expanded") === "true") owned.add(event);
|
|
52
|
+
},
|
|
53
|
+
onKeydown(event) {
|
|
54
|
+
if (!owned.has(event)) return false;
|
|
55
|
+
event.preventDefault();
|
|
56
|
+
event.stopPropagation();
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/controls/AntdSelect.vue
|
|
63
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
64
|
+
inheritAttrs: false,
|
|
65
|
+
__name: "AntdSelect",
|
|
66
|
+
props: {
|
|
67
|
+
value: {},
|
|
68
|
+
options: {},
|
|
69
|
+
disabled: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: false
|
|
72
|
+
},
|
|
73
|
+
teleported: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: false
|
|
76
|
+
},
|
|
77
|
+
appendTo: { default: () => void 0 }
|
|
78
|
+
},
|
|
79
|
+
emits: ["change", "visibleChange"],
|
|
80
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
81
|
+
const props = createPropsRestProxy(__props, [
|
|
82
|
+
"disabled",
|
|
83
|
+
"teleported",
|
|
84
|
+
"appendTo"
|
|
85
|
+
]);
|
|
86
|
+
const emit = __emit;
|
|
87
|
+
const control = shallowRef();
|
|
88
|
+
function change(value) {
|
|
89
|
+
if (typeof value === "string") emit("change", value);
|
|
90
|
+
scheduleTick(() => control.value?.$forceUpdate());
|
|
91
|
+
}
|
|
92
|
+
const naming = useComboboxNaming(control);
|
|
93
|
+
const open = shallowRef(false);
|
|
94
|
+
function visibleChange(next) {
|
|
95
|
+
open.value = next;
|
|
96
|
+
emit("visibleChange", next);
|
|
97
|
+
}
|
|
98
|
+
function openOnEnter(event) {
|
|
99
|
+
if (event.key !== "Enter" || open.value || __props.disabled || event.defaultPrevented || event.isComposing) return;
|
|
100
|
+
event.preventDefault();
|
|
101
|
+
event.stopPropagation();
|
|
102
|
+
visibleChange(true);
|
|
103
|
+
}
|
|
104
|
+
function focus() {
|
|
105
|
+
if (control.value) control.value.focus();
|
|
106
|
+
else scheduleTick(() => control.value?.focus());
|
|
107
|
+
}
|
|
108
|
+
__expose({
|
|
109
|
+
focus,
|
|
110
|
+
blur: () => control.value?.blur()
|
|
111
|
+
});
|
|
112
|
+
return (_ctx, _cache) => {
|
|
113
|
+
return openBlock(), createBlock(unref(Select), mergeProps({
|
|
114
|
+
ref_key: "control",
|
|
115
|
+
ref: control
|
|
116
|
+
}, unref(naming).rootAttrs, {
|
|
117
|
+
value: props.value === "" ? void 0 : props.value,
|
|
118
|
+
options: props.options.map((option) => ({ ...option })),
|
|
119
|
+
disabled: __props.disabled,
|
|
120
|
+
open: open.value,
|
|
121
|
+
"get-popup-container": unref(popupContainer)(__props.teleported, __props.appendTo),
|
|
122
|
+
onKeydownCapture: openOnEnter,
|
|
123
|
+
onKeydown: unref(naming).onKeydown,
|
|
124
|
+
onDropdownVisibleChange: visibleChange,
|
|
125
|
+
onChange: change
|
|
126
|
+
}), null, 16, [
|
|
127
|
+
"value",
|
|
128
|
+
"options",
|
|
129
|
+
"disabled",
|
|
130
|
+
"open",
|
|
131
|
+
"get-popup-container",
|
|
132
|
+
"onKeydown"
|
|
133
|
+
]);
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
//#endregion
|
|
138
|
+
export { useComboboxNaming as n, _sfc_main as t };
|
|
139
|
+
|
|
140
|
+
//# sourceMappingURL=AntdSelect-D-Oy0101.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AntdSelect-D-Oy0101.js","names":[],"sources":["../src/controls/comboboxNaming.ts","../src/controls/AntdSelect.vue"],"sourcesContent":["import { onMounted, onUpdated, type Ref, useAttrs } from \"vue\";\n\nimport { eventHandlers } from \"./handlers\";\n\n/**\n * Ant Design Vue places every fall-through attribute on the select's root\n * `div`, which has no role, so a name or description given there never reaches\n * the native combobox. This hook keeps the `aria-*` attributes off the root and\n * mirrors them onto the focusable combobox input.\n */\nexport function useComboboxNaming(\n control: Ref<{ readonly $el?: unknown } | null | undefined>\n): {\n readonly rootAttrs: Readonly<Record<string, unknown>>;\n readonly onKeydown: (event: KeyboardEvent) => void;\n} {\n const escape = useOpenSelectEscape();\n const attrs = useAttrs();\n // Fall-through attributes are not reactive, so they are read afresh.\n const aria = () =>\n Object.entries(attrs).filter(([name]) => name.startsWith(\"aria-\"));\n const apply = () => {\n const host: unknown = control.value?.$el;\n if (!(host instanceof Element)) return;\n const input = host.querySelector('[role=\"combobox\"]');\n if (!input) return;\n for (const [name, value] of aria())\n if (value == null || value === false) input.removeAttribute(name);\n else\n input.setAttribute(\n name,\n typeof value === \"string\" ? value : JSON.stringify(value)\n );\n };\n onMounted(apply);\n onUpdated(apply);\n return {\n get rootAttrs() {\n const rest = Object.fromEntries(\n Object.entries(attrs).filter(\n ([name]) => !name.startsWith(\"aria-\") && name !== \"onKeydown\"\n )\n );\n // The capture listener sits on the root, which only takes native\n // listeners, so it is joined with any the caller gave.\n return {\n ...rest,\n onKeydownCapture: [\n escape.onKeydownCapture,\n ...eventHandlers<KeyboardEvent>(attrs.onKeydownCapture),\n ],\n };\n },\n // The select declares `onKeydown` as a single function prop, so the\n // caller's handlers and the escape marker are joined into one.\n onKeydown(event) {\n // An Escape that only closed the open list is not for the caller.\n if (escape.onKeydown(event)) return;\n for (const handler of eventHandlers<KeyboardEvent>(attrs.onKeydown))\n handler(event);\n },\n };\n}\n\n/**\n * Ant Design Vue closes an open select on Escape but lets the event keep\n * travelling, so an enclosing popover, drawer or submenu would close with it.\n * The select notes that it was open when the key arrived and then marks the\n * event handled and stops it, so the Escape closes the list and nothing else.\n */\nexport function useOpenSelectEscape(): {\n readonly onKeydownCapture: (event: KeyboardEvent) => void;\n readonly onKeydown: (event: KeyboardEvent) => boolean;\n} {\n const owned = new WeakSet<Event>();\n return {\n onKeydownCapture(event) {\n const target = event.target;\n if (\n event.key === \"Escape\" &&\n target instanceof Element &&\n target.getAttribute(\"role\") === \"combobox\" &&\n target.getAttribute(\"aria-expanded\") === \"true\"\n )\n owned.add(event);\n },\n onKeydown(event) {\n if (!owned.has(event)) return false;\n event.preventDefault();\n event.stopPropagation();\n return true;\n },\n };\n}\n","<script setup lang=\"ts\">\nimport { scheduleTick } from \"@adapttable/vue/adapter\";\nimport { Select } from \"ant-design-vue\";\nimport { shallowRef } from \"vue\";\n\nimport { useComboboxNaming } from \"./comboboxNaming\";\nimport { popupContainer } from \"./popupContainer\";\n\ndefineOptions({ inheritAttrs: false });\nconst {\n disabled = false,\n teleported = false,\n appendTo = undefined,\n ...props\n} = defineProps<{\n value: string;\n options: readonly { value: string; label: string }[];\n disabled?: boolean;\n teleported?: boolean;\n appendTo?: HTMLElement | string;\n}>();\nconst emit = defineEmits<{\n change: [value: string];\n visibleChange: [open: boolean];\n}>();\nconst control = shallowRef<{\n focus(): void;\n blur(): void;\n $forceUpdate(): void;\n readonly $el: unknown;\n}>();\nfunction change(value: unknown): void {\n if (typeof value === \"string\") emit(\"change\", value);\n scheduleTick(() => control.value?.$forceUpdate());\n}\nconst naming = useComboboxNaming(control);\n// The select owns its open state so Enter can open the list too, as Space and\n// ArrowDown already do in Ant Design Vue and as a select-only combobox should.\nconst open = shallowRef(false);\nfunction visibleChange(next: boolean): void {\n open.value = next;\n emit(\"visibleChange\", next);\n}\n// Caught before the select sees it, so the same Enter does not also pick the\n// active option and close the list it opened.\nfunction openOnEnter(event: KeyboardEvent): void {\n if (\n event.key !== \"Enter\" ||\n open.value ||\n disabled ||\n event.defaultPrevented ||\n event.isComposing\n )\n return;\n event.preventDefault();\n event.stopPropagation();\n visibleChange(true);\n}\n// A parent ref resolves before this template ref does, so a focus requested\n// while the select mounts waits a tick for it.\nfunction focus(): void {\n if (control.value) control.value.focus();\n else scheduleTick(() => control.value?.focus());\n}\ndefineExpose({\n focus,\n blur: () => control.value?.blur(),\n});\n</script>\n\n<template>\n <Select\n ref=\"control\"\n v-bind=\"naming.rootAttrs\"\n :value=\"props.value === '' ? undefined : props.value\"\n :options=\"props.options.map((option) => ({ ...option }))\"\n :disabled=\"disabled\"\n :open=\"open\"\n :get-popup-container=\"popupContainer(teleported, appendTo)\"\n @keydown.capture=\"openOnEnter\"\n @keydown=\"naming.onKeydown\"\n @dropdown-visible-change=\"visibleChange\"\n @change=\"change\"\n />\n</template>\n"],"mappings":"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"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
const require_handlers = require("./handlers-Br0_3lPS.cjs");
|
|
2
|
+
const require_popupContainer = require("./popupContainer-C0uOjWEO.cjs");
|
|
3
|
+
let vue = require("vue");
|
|
4
|
+
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
5
|
+
let ant_design_vue = require("ant-design-vue");
|
|
6
|
+
//#region src/controls/comboboxNaming.ts
|
|
7
|
+
/**
|
|
8
|
+
* Ant Design Vue places every fall-through attribute on the select's root
|
|
9
|
+
* `div`, which has no role, so a name or description given there never reaches
|
|
10
|
+
* the native combobox. This hook keeps the `aria-*` attributes off the root and
|
|
11
|
+
* mirrors them onto the focusable combobox input.
|
|
12
|
+
*/
|
|
13
|
+
function useComboboxNaming(control) {
|
|
14
|
+
const escape = useOpenSelectEscape();
|
|
15
|
+
const attrs = (0, vue.useAttrs)();
|
|
16
|
+
const aria = () => Object.entries(attrs).filter(([name]) => name.startsWith("aria-"));
|
|
17
|
+
const apply = () => {
|
|
18
|
+
const host = control.value?.$el;
|
|
19
|
+
if (!(host instanceof Element)) return;
|
|
20
|
+
const input = host.querySelector("[role=\"combobox\"]");
|
|
21
|
+
if (!input) return;
|
|
22
|
+
for (const [name, value] of aria()) if (value == null || value === false) input.removeAttribute(name);
|
|
23
|
+
else input.setAttribute(name, typeof value === "string" ? value : JSON.stringify(value));
|
|
24
|
+
};
|
|
25
|
+
(0, vue.onMounted)(apply);
|
|
26
|
+
(0, vue.onUpdated)(apply);
|
|
27
|
+
return {
|
|
28
|
+
get rootAttrs() {
|
|
29
|
+
return {
|
|
30
|
+
...Object.fromEntries(Object.entries(attrs).filter(([name]) => !name.startsWith("aria-") && name !== "onKeydown")),
|
|
31
|
+
onKeydownCapture: [escape.onKeydownCapture, ...require_handlers.eventHandlers(attrs.onKeydownCapture)]
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
onKeydown(event) {
|
|
35
|
+
if (escape.onKeydown(event)) return;
|
|
36
|
+
for (const handler of require_handlers.eventHandlers(attrs.onKeydown)) handler(event);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Ant Design Vue closes an open select on Escape but lets the event keep
|
|
42
|
+
* travelling, so an enclosing popover, drawer or submenu would close with it.
|
|
43
|
+
* The select notes that it was open when the key arrived and then marks the
|
|
44
|
+
* event handled and stops it, so the Escape closes the list and nothing else.
|
|
45
|
+
*/
|
|
46
|
+
function useOpenSelectEscape() {
|
|
47
|
+
const owned = /* @__PURE__ */ new WeakSet();
|
|
48
|
+
return {
|
|
49
|
+
onKeydownCapture(event) {
|
|
50
|
+
const target = event.target;
|
|
51
|
+
if (event.key === "Escape" && target instanceof Element && target.getAttribute("role") === "combobox" && target.getAttribute("aria-expanded") === "true") owned.add(event);
|
|
52
|
+
},
|
|
53
|
+
onKeydown(event) {
|
|
54
|
+
if (!owned.has(event)) return false;
|
|
55
|
+
event.preventDefault();
|
|
56
|
+
event.stopPropagation();
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/controls/AntdSelect.vue
|
|
63
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
64
|
+
inheritAttrs: false,
|
|
65
|
+
__name: "AntdSelect",
|
|
66
|
+
props: {
|
|
67
|
+
value: {},
|
|
68
|
+
options: {},
|
|
69
|
+
disabled: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: false
|
|
72
|
+
},
|
|
73
|
+
teleported: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: false
|
|
76
|
+
},
|
|
77
|
+
appendTo: { default: () => void 0 }
|
|
78
|
+
},
|
|
79
|
+
emits: ["change", "visibleChange"],
|
|
80
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
81
|
+
const props = (0, vue.createPropsRestProxy)(__props, [
|
|
82
|
+
"disabled",
|
|
83
|
+
"teleported",
|
|
84
|
+
"appendTo"
|
|
85
|
+
]);
|
|
86
|
+
const emit = __emit;
|
|
87
|
+
const control = (0, vue.shallowRef)();
|
|
88
|
+
function change(value) {
|
|
89
|
+
if (typeof value === "string") emit("change", value);
|
|
90
|
+
(0, _adapttable_vue_adapter.scheduleTick)(() => control.value?.$forceUpdate());
|
|
91
|
+
}
|
|
92
|
+
const naming = useComboboxNaming(control);
|
|
93
|
+
const open = (0, vue.shallowRef)(false);
|
|
94
|
+
function visibleChange(next) {
|
|
95
|
+
open.value = next;
|
|
96
|
+
emit("visibleChange", next);
|
|
97
|
+
}
|
|
98
|
+
function openOnEnter(event) {
|
|
99
|
+
if (event.key !== "Enter" || open.value || __props.disabled || event.defaultPrevented || event.isComposing) return;
|
|
100
|
+
event.preventDefault();
|
|
101
|
+
event.stopPropagation();
|
|
102
|
+
visibleChange(true);
|
|
103
|
+
}
|
|
104
|
+
function focus() {
|
|
105
|
+
if (control.value) control.value.focus();
|
|
106
|
+
else (0, _adapttable_vue_adapter.scheduleTick)(() => control.value?.focus());
|
|
107
|
+
}
|
|
108
|
+
__expose({
|
|
109
|
+
focus,
|
|
110
|
+
blur: () => control.value?.blur()
|
|
111
|
+
});
|
|
112
|
+
return (_ctx, _cache) => {
|
|
113
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ant_design_vue.Select), (0, vue.mergeProps)({
|
|
114
|
+
ref_key: "control",
|
|
115
|
+
ref: control
|
|
116
|
+
}, (0, vue.unref)(naming).rootAttrs, {
|
|
117
|
+
value: props.value === "" ? void 0 : props.value,
|
|
118
|
+
options: props.options.map((option) => ({ ...option })),
|
|
119
|
+
disabled: __props.disabled,
|
|
120
|
+
open: open.value,
|
|
121
|
+
"get-popup-container": (0, vue.unref)(require_popupContainer.popupContainer)(__props.teleported, __props.appendTo),
|
|
122
|
+
onKeydownCapture: openOnEnter,
|
|
123
|
+
onKeydown: (0, vue.unref)(naming).onKeydown,
|
|
124
|
+
onDropdownVisibleChange: visibleChange,
|
|
125
|
+
onChange: change
|
|
126
|
+
}), null, 16, [
|
|
127
|
+
"value",
|
|
128
|
+
"options",
|
|
129
|
+
"disabled",
|
|
130
|
+
"open",
|
|
131
|
+
"get-popup-container",
|
|
132
|
+
"onKeydown"
|
|
133
|
+
]);
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
//#endregion
|
|
138
|
+
Object.defineProperty(exports, "_sfc_main", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function() {
|
|
141
|
+
return _sfc_main;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "useComboboxNaming", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function() {
|
|
147
|
+
return useComboboxNaming;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
//# sourceMappingURL=AntdSelect-DYoLHfOo.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AntdSelect-DYoLHfOo.cjs","names":["useAttrs","eventHandlers"],"sources":["../src/controls/comboboxNaming.ts","../src/controls/AntdSelect.vue"],"sourcesContent":["import { onMounted, onUpdated, type Ref, useAttrs } from \"vue\";\n\nimport { eventHandlers } from \"./handlers\";\n\n/**\n * Ant Design Vue places every fall-through attribute on the select's root\n * `div`, which has no role, so a name or description given there never reaches\n * the native combobox. This hook keeps the `aria-*` attributes off the root and\n * mirrors them onto the focusable combobox input.\n */\nexport function useComboboxNaming(\n control: Ref<{ readonly $el?: unknown } | null | undefined>\n): {\n readonly rootAttrs: Readonly<Record<string, unknown>>;\n readonly onKeydown: (event: KeyboardEvent) => void;\n} {\n const escape = useOpenSelectEscape();\n const attrs = useAttrs();\n // Fall-through attributes are not reactive, so they are read afresh.\n const aria = () =>\n Object.entries(attrs).filter(([name]) => name.startsWith(\"aria-\"));\n const apply = () => {\n const host: unknown = control.value?.$el;\n if (!(host instanceof Element)) return;\n const input = host.querySelector('[role=\"combobox\"]');\n if (!input) return;\n for (const [name, value] of aria())\n if (value == null || value === false) input.removeAttribute(name);\n else\n input.setAttribute(\n name,\n typeof value === \"string\" ? value : JSON.stringify(value)\n );\n };\n onMounted(apply);\n onUpdated(apply);\n return {\n get rootAttrs() {\n const rest = Object.fromEntries(\n Object.entries(attrs).filter(\n ([name]) => !name.startsWith(\"aria-\") && name !== \"onKeydown\"\n )\n );\n // The capture listener sits on the root, which only takes native\n // listeners, so it is joined with any the caller gave.\n return {\n ...rest,\n onKeydownCapture: [\n escape.onKeydownCapture,\n ...eventHandlers<KeyboardEvent>(attrs.onKeydownCapture),\n ],\n };\n },\n // The select declares `onKeydown` as a single function prop, so the\n // caller's handlers and the escape marker are joined into one.\n onKeydown(event) {\n // An Escape that only closed the open list is not for the caller.\n if (escape.onKeydown(event)) return;\n for (const handler of eventHandlers<KeyboardEvent>(attrs.onKeydown))\n handler(event);\n },\n };\n}\n\n/**\n * Ant Design Vue closes an open select on Escape but lets the event keep\n * travelling, so an enclosing popover, drawer or submenu would close with it.\n * The select notes that it was open when the key arrived and then marks the\n * event handled and stops it, so the Escape closes the list and nothing else.\n */\nexport function useOpenSelectEscape(): {\n readonly onKeydownCapture: (event: KeyboardEvent) => void;\n readonly onKeydown: (event: KeyboardEvent) => boolean;\n} {\n const owned = new WeakSet<Event>();\n return {\n onKeydownCapture(event) {\n const target = event.target;\n if (\n event.key === \"Escape\" &&\n target instanceof Element &&\n target.getAttribute(\"role\") === \"combobox\" &&\n target.getAttribute(\"aria-expanded\") === \"true\"\n )\n owned.add(event);\n },\n onKeydown(event) {\n if (!owned.has(event)) return false;\n event.preventDefault();\n event.stopPropagation();\n return true;\n },\n };\n}\n","<script setup lang=\"ts\">\nimport { scheduleTick } from \"@adapttable/vue/adapter\";\nimport { Select } from \"ant-design-vue\";\nimport { shallowRef } from \"vue\";\n\nimport { useComboboxNaming } from \"./comboboxNaming\";\nimport { popupContainer } from \"./popupContainer\";\n\ndefineOptions({ inheritAttrs: false });\nconst {\n disabled = false,\n teleported = false,\n appendTo = undefined,\n ...props\n} = defineProps<{\n value: string;\n options: readonly { value: string; label: string }[];\n disabled?: boolean;\n teleported?: boolean;\n appendTo?: HTMLElement | string;\n}>();\nconst emit = defineEmits<{\n change: [value: string];\n visibleChange: [open: boolean];\n}>();\nconst control = shallowRef<{\n focus(): void;\n blur(): void;\n $forceUpdate(): void;\n readonly $el: unknown;\n}>();\nfunction change(value: unknown): void {\n if (typeof value === \"string\") emit(\"change\", value);\n scheduleTick(() => control.value?.$forceUpdate());\n}\nconst naming = useComboboxNaming(control);\n// The select owns its open state so Enter can open the list too, as Space and\n// ArrowDown already do in Ant Design Vue and as a select-only combobox should.\nconst open = shallowRef(false);\nfunction visibleChange(next: boolean): void {\n open.value = next;\n emit(\"visibleChange\", next);\n}\n// Caught before the select sees it, so the same Enter does not also pick the\n// active option and close the list it opened.\nfunction openOnEnter(event: KeyboardEvent): void {\n if (\n event.key !== \"Enter\" ||\n open.value ||\n disabled ||\n event.defaultPrevented ||\n event.isComposing\n )\n return;\n event.preventDefault();\n event.stopPropagation();\n visibleChange(true);\n}\n// A parent ref resolves before this template ref does, so a focus requested\n// while the select mounts waits a tick for it.\nfunction focus(): void {\n if (control.value) control.value.focus();\n else scheduleTick(() => control.value?.focus());\n}\ndefineExpose({\n focus,\n blur: () => control.value?.blur(),\n});\n</script>\n\n<template>\n <Select\n ref=\"control\"\n v-bind=\"naming.rootAttrs\"\n :value=\"props.value === '' ? undefined : props.value\"\n :options=\"props.options.map((option) => ({ ...option }))\"\n :disabled=\"disabled\"\n :open=\"open\"\n :get-popup-container=\"popupContainer(teleported, appendTo)\"\n @keydown.capture=\"openOnEnter\"\n @keydown=\"naming.onKeydown\"\n @dropdown-visible-change=\"visibleChange\"\n @change=\"change\"\n />\n</template>\n"],"mappings":"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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const require_button = require("./button-llfktOrH.cjs");
|
|
2
|
+
let vue = require("vue");
|
|
3
|
+
//#region src/actions/antdActionSlots.ts
|
|
4
|
+
const antdActionSlots = { Button: ({ attrs, icon, label }) => require_button.antdButton(attrs, [icon == null || icon === false ? null : (0, vue.h)("span", { "aria-hidden": "true" }, icon), label]) };
|
|
5
|
+
//#endregion
|
|
6
|
+
Object.defineProperty(exports, "antdActionSlots", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function() {
|
|
9
|
+
return antdActionSlots;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=antdActionSlots-CjNxmqIB.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"antdActionSlots-CjNxmqIB.cjs","names":["antdButton","h"],"sources":["../src/actions/antdActionSlots.ts"],"sourcesContent":["import type { ActionButtonSlots } from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport { antdButton } from \"../controls/button\";\n\nexport const antdActionSlots: ActionButtonSlots = {\n Button: ({ attrs, icon, label }) =>\n antdButton(attrs, [\n icon == null || icon === false\n ? null\n : h(\"span\", { \"aria-hidden\": \"true\" }, icon),\n label,\n ]),\n};\n"],"mappings":";;;AAKA,MAAa,kBAAqC,EAChD,SAAS,EAAE,OAAO,MAAM,YACtBA,eAAAA,WAAW,OAAO,CAChB,QAAQ,QAAQ,SAAS,QACrB,QAAA,GACAC,IAAAA,EAAAA,CAAE,QAAQ,EAAE,eAAe,OAAO,GAAG,IAAI,GAC7C,KACF,CAAC,EACL"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as antdButton } from "./button-pAA17ogP.js";
|
|
2
|
+
import { h } from "vue";
|
|
3
|
+
//#region src/actions/antdActionSlots.ts
|
|
4
|
+
const antdActionSlots = { Button: ({ attrs, icon, label }) => antdButton(attrs, [icon == null || icon === false ? null : h("span", { "aria-hidden": "true" }, icon), label]) };
|
|
5
|
+
//#endregion
|
|
6
|
+
export { antdActionSlots as t };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=antdActionSlots-eKczvTu9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"antdActionSlots-eKczvTu9.js","names":[],"sources":["../src/actions/antdActionSlots.ts"],"sourcesContent":["import type { ActionButtonSlots } from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport { antdButton } from \"../controls/button\";\n\nexport const antdActionSlots: ActionButtonSlots = {\n Button: ({ attrs, icon, label }) =>\n antdButton(attrs, [\n icon == null || icon === false\n ? null\n : h(\"span\", { \"aria-hidden\": \"true\" }, icon),\n label,\n ]),\n};\n"],"mappings":";;;AAKA,MAAa,kBAAqC,EAChD,SAAS,EAAE,OAAO,MAAM,YACtB,WAAW,OAAO,CAChB,QAAQ,QAAQ,SAAS,QACrB,OACA,EAAE,QAAQ,EAAE,eAAe,OAAO,GAAG,IAAI,GAC7C,KACF,CAAC,EACL"}
|