@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,232 @@
|
|
|
1
|
+
const require_button = require("./button-llfktOrH.cjs");
|
|
2
|
+
const require_AntdInput = require("./AntdInput-BFNEDXzq.cjs");
|
|
3
|
+
const require_AntdSelect = require("./AntdSelect-DYoLHfOo.cjs");
|
|
4
|
+
const require_popupContainer = require("./popupContainer-C0uOjWEO.cjs");
|
|
5
|
+
const require_AntdCheckbox = require("./AntdCheckbox-D9gzdPeG.cjs");
|
|
6
|
+
const require_AnchoredPopover = require("./AnchoredPopover-B-zosogj.cjs");
|
|
7
|
+
let vue = require("vue");
|
|
8
|
+
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
9
|
+
let ant_design_vue = require("ant-design-vue");
|
|
10
|
+
//#region src/filters/AntdFilterHeaderControl.vue
|
|
11
|
+
const _sfc_main$1 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
12
|
+
name: "AntdFilterHeaderControl",
|
|
13
|
+
__name: "AntdFilterHeaderControl",
|
|
14
|
+
props: {
|
|
15
|
+
menuClassName: {},
|
|
16
|
+
dir: {},
|
|
17
|
+
def: {},
|
|
18
|
+
source: {},
|
|
19
|
+
labels: {},
|
|
20
|
+
className: {},
|
|
21
|
+
registry: {},
|
|
22
|
+
closeOnSelect: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: () => void 0
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const props = (0, vue.createPropsRestProxy)(__props, ["closeOnSelect"]);
|
|
29
|
+
const model = (0, _adapttable_vue_adapter.useFilterHeaderControl)(() => ({
|
|
30
|
+
...props,
|
|
31
|
+
closeOnSelect: __props.closeOnSelect
|
|
32
|
+
}));
|
|
33
|
+
const active = (0, _adapttable_vue_adapter.useScopeActivity)();
|
|
34
|
+
const fullscreen = (0, _adapttable_vue_adapter.useFeatureState)(_adapttable_vue_adapter.FULLSCREEN_MODEL);
|
|
35
|
+
const open = (0, vue.shallowRef)(false);
|
|
36
|
+
(0, vue.watch)(() => `${props.def.key}:${props.def.type}`, () => {
|
|
37
|
+
open.value = false;
|
|
38
|
+
});
|
|
39
|
+
const trigger = (0, vue.shallowRef)(null);
|
|
40
|
+
const inheritedDirection = (0, vue.shallowRef)();
|
|
41
|
+
const popupDirection = (0, vue.computed)(() => props.dir ?? inheritedDirection.value);
|
|
42
|
+
const setTrigger = (element) => {
|
|
43
|
+
trigger.value = element;
|
|
44
|
+
};
|
|
45
|
+
const readInheritedDirection = () => {
|
|
46
|
+
if (props.dir !== void 0 || !trigger.value) return;
|
|
47
|
+
const target = trigger.value;
|
|
48
|
+
const direction = target.ownerDocument.defaultView?.getComputedStyle(target).direction;
|
|
49
|
+
inheritedDirection.value = direction === "rtl" || direction === "ltr" ? direction : void 0;
|
|
50
|
+
};
|
|
51
|
+
const dismiss = (event) => {
|
|
52
|
+
if (event.key !== "Escape" || event.defaultPrevented || event.isComposing || trigger.value?.getAttribute("aria-expanded") !== "true") return;
|
|
53
|
+
event.preventDefault();
|
|
54
|
+
event.stopPropagation();
|
|
55
|
+
open.value = false;
|
|
56
|
+
if (active.value && trigger.value?.isConnected) trigger.value.focus();
|
|
57
|
+
};
|
|
58
|
+
const renderChoices = (control) => control.options.map((option) => (0, vue.h)(require_AntdCheckbox._sfc_main, {
|
|
59
|
+
key: option.value,
|
|
60
|
+
label: option.label,
|
|
61
|
+
labelVisible: true,
|
|
62
|
+
checked: control.selected.includes(option.value),
|
|
63
|
+
onChange: (checked) => control.onToggle(option.value, checked)
|
|
64
|
+
}));
|
|
65
|
+
const controls = {
|
|
66
|
+
Search: (control) => (0, vue.h)(require_AntdInput._sfc_main, {
|
|
67
|
+
type: "search",
|
|
68
|
+
dir: props.dir,
|
|
69
|
+
value: control.value,
|
|
70
|
+
"data-adapttable-part": "filter-header-input",
|
|
71
|
+
"aria-label": control.label,
|
|
72
|
+
placeholder: control.placeholder,
|
|
73
|
+
class: control.className,
|
|
74
|
+
onChange: control.onChange
|
|
75
|
+
}),
|
|
76
|
+
Select: (control) => (0, vue.h)(require_AntdSelect._sfc_main, {
|
|
77
|
+
value: control.value,
|
|
78
|
+
dir: props.dir,
|
|
79
|
+
options: control.options,
|
|
80
|
+
"data-adapttable-part": "filter-header-input",
|
|
81
|
+
"aria-label": control.label,
|
|
82
|
+
class: control.className,
|
|
83
|
+
onChange: control.onChange
|
|
84
|
+
}),
|
|
85
|
+
Range: (control) => (0, vue.h)(require_AntdInput._sfc_main, {
|
|
86
|
+
value: control.value,
|
|
87
|
+
type: control.type,
|
|
88
|
+
dir: props.dir,
|
|
89
|
+
"aria-label": control.label,
|
|
90
|
+
onChange: control.onChange
|
|
91
|
+
}),
|
|
92
|
+
Multi: (control) => (0, vue.h)(ant_design_vue.Popover, {
|
|
93
|
+
key: `${props.def.key}:${props.def.type}`,
|
|
94
|
+
open: open.value,
|
|
95
|
+
trigger: ["click"],
|
|
96
|
+
arrow: false,
|
|
97
|
+
destroyTooltipOnHide: true,
|
|
98
|
+
getPopupContainer: require_popupContainer.popupContainer(true, fullscreen.value?.container ?? void 0),
|
|
99
|
+
placement: popupDirection.value === "rtl" ? "bottomRight" : "bottomLeft",
|
|
100
|
+
overlayStyle: { direction: popupDirection.value },
|
|
101
|
+
onOpenChange: (value) => {
|
|
102
|
+
open.value = value;
|
|
103
|
+
},
|
|
104
|
+
afterVisibleChange: (visible) => {
|
|
105
|
+
if (visible) readInheritedDirection();
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
108
|
+
default: () => require_button.antdButton({
|
|
109
|
+
ref: setTrigger,
|
|
110
|
+
dir: props.dir,
|
|
111
|
+
"data-adapttable-part": "filter-header-input",
|
|
112
|
+
class: control.className,
|
|
113
|
+
"aria-label": control.label,
|
|
114
|
+
"aria-haspopup": "dialog",
|
|
115
|
+
"aria-expanded": open.value,
|
|
116
|
+
onKeydown: dismiss
|
|
117
|
+
}, control.summary),
|
|
118
|
+
content: () => (0, vue.h)(ant_design_vue.Space, {
|
|
119
|
+
direction: "vertical",
|
|
120
|
+
align: "start",
|
|
121
|
+
role: "dialog",
|
|
122
|
+
ref: (instance) => {
|
|
123
|
+
const host = instance && typeof instance === "object" && "$el" in instance ? instance.$el : null;
|
|
124
|
+
if (!(host instanceof Element)) return;
|
|
125
|
+
require_AnchoredPopover.presentPopoverContent(host);
|
|
126
|
+
readInheritedDirection();
|
|
127
|
+
},
|
|
128
|
+
dir: popupDirection.value,
|
|
129
|
+
"data-adapttable-part": "filter-header-menu",
|
|
130
|
+
class: control.menuClassName,
|
|
131
|
+
"aria-label": control.label,
|
|
132
|
+
onKeydown: dismiss,
|
|
133
|
+
style: {
|
|
134
|
+
maxBlockSize: "14rem",
|
|
135
|
+
overflow: "auto"
|
|
136
|
+
}
|
|
137
|
+
}, { default: () => renderChoices(control) })
|
|
138
|
+
})
|
|
139
|
+
};
|
|
140
|
+
const Render = () => (0, _adapttable_vue_adapter.FilterHeaderControlChrome)({
|
|
141
|
+
model: model.value,
|
|
142
|
+
controls
|
|
143
|
+
});
|
|
144
|
+
Render.props = [];
|
|
145
|
+
return (_ctx, _cache) => {
|
|
146
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(Render);
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/filters/AntdFilterHeaderRow.vue
|
|
152
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
153
|
+
name: "AntdFilterHeaderRow",
|
|
154
|
+
__name: "AntdFilterHeaderRow",
|
|
155
|
+
props: {
|
|
156
|
+
enabled: {
|
|
157
|
+
type: Boolean,
|
|
158
|
+
default: () => void 0
|
|
159
|
+
},
|
|
160
|
+
columns: {},
|
|
161
|
+
defs: {},
|
|
162
|
+
source: {},
|
|
163
|
+
registry: {},
|
|
164
|
+
labels: {},
|
|
165
|
+
expandable: {
|
|
166
|
+
type: Boolean,
|
|
167
|
+
default: () => void 0
|
|
168
|
+
},
|
|
169
|
+
showReorder: {
|
|
170
|
+
type: Boolean,
|
|
171
|
+
default: () => void 0
|
|
172
|
+
},
|
|
173
|
+
selection: {
|
|
174
|
+
type: Boolean,
|
|
175
|
+
default: () => void 0
|
|
176
|
+
},
|
|
177
|
+
showActions: {
|
|
178
|
+
type: Boolean,
|
|
179
|
+
default: () => void 0
|
|
180
|
+
},
|
|
181
|
+
columnSpacers: {},
|
|
182
|
+
cellStyle: { type: Function },
|
|
183
|
+
pinSide: { type: Function },
|
|
184
|
+
padStyle: {},
|
|
185
|
+
stickyAttr: {
|
|
186
|
+
type: Boolean,
|
|
187
|
+
default: () => void 0
|
|
188
|
+
},
|
|
189
|
+
classNames: {},
|
|
190
|
+
dir: {}
|
|
191
|
+
},
|
|
192
|
+
setup(__props) {
|
|
193
|
+
const props = (0, vue.createPropsRestProxy)(__props, [
|
|
194
|
+
"enabled",
|
|
195
|
+
"expandable",
|
|
196
|
+
"showReorder",
|
|
197
|
+
"selection",
|
|
198
|
+
"showActions",
|
|
199
|
+
"stickyAttr"
|
|
200
|
+
]);
|
|
201
|
+
const controls = { Control: (control) => (0, vue.h)(_sfc_main$1, { ...control }) };
|
|
202
|
+
const Render = () => (0, _adapttable_vue_adapter.FilterHeaderChrome)({
|
|
203
|
+
...props,
|
|
204
|
+
enabled: __props.enabled,
|
|
205
|
+
expandable: __props.expandable,
|
|
206
|
+
showReorder: __props.showReorder,
|
|
207
|
+
selection: __props.selection,
|
|
208
|
+
showActions: __props.showActions,
|
|
209
|
+
stickyAttr: __props.stickyAttr,
|
|
210
|
+
controls
|
|
211
|
+
});
|
|
212
|
+
Render.props = [];
|
|
213
|
+
return (_ctx, _cache) => {
|
|
214
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(Render);
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
//#endregion
|
|
219
|
+
Object.defineProperty(exports, "_sfc_main", {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function() {
|
|
222
|
+
return _sfc_main;
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
Object.defineProperty(exports, "_sfc_main$1", {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: function() {
|
|
228
|
+
return _sfc_main$1;
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
//# sourceMappingURL=AntdFilterHeaderRow-DZ2Pq2BG.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AntdFilterHeaderRow-DZ2Pq2BG.cjs","names":[],"sources":["../src/filters/AntdFilterHeaderControl.vue","../src/filters/AntdFilterHeaderRow.vue"],"sourcesContent":["<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n FilterHeaderControlChrome,\n type FilterHeaderControlOptions,\n type FilterHeaderSlots,\n FULLSCREEN_MODEL,\n useFeatureState,\n useFilterHeaderControl,\n useScopeActivity,\n} from \"@adapttable/vue/adapter\";\nimport { Popover, Space } from \"ant-design-vue\";\nimport { computed, h, shallowRef, watch } from \"vue\";\n\nimport AntdCheckbox from \"../controls/AntdCheckbox.vue\";\nimport AntdInput from \"../controls/AntdInput.vue\";\nimport AntdSelect from \"../controls/AntdSelect.vue\";\nimport { antdButton } from \"../controls/button\";\nimport { popupContainer } from \"../controls/popupContainer\";\nimport { presentPopoverContent } from \"../overlays/AnchoredPopover\";\n\ndefineOptions({ name: \"AntdFilterHeaderControl\" });\nconst { closeOnSelect = undefined, ...props } =\n defineProps<FilterHeaderControlOptions<TRow>>();\nconst model = useFilterHeaderControl(() => ({ ...props, closeOnSelect }));\nconst active = useScopeActivity();\nconst fullscreen = useFeatureState(FULLSCREEN_MODEL);\nconst open = shallowRef(false);\n// A different definition is a different control, so its popup starts closed.\nwatch(\n () => `${props.def.key}:${props.def.type}`,\n () => {\n open.value = false;\n }\n);\nconst trigger = shallowRef<HTMLElement | null>(null);\nconst inheritedDirection = shallowRef<\"ltr\" | \"rtl\">();\nconst popupDirection = computed(() => props.dir ?? inheritedDirection.value);\nconst setTrigger = (element: HTMLElement | null) => {\n trigger.value = element;\n};\nconst readInheritedDirection = () => {\n if (props.dir !== undefined || !trigger.value) return;\n const target = trigger.value;\n const direction =\n target.ownerDocument.defaultView?.getComputedStyle(target).direction;\n inheritedDirection.value =\n direction === \"rtl\" || direction === \"ltr\" ? direction : undefined;\n};\nconst dismiss = (event: KeyboardEvent) => {\n if (\n event.key !== \"Escape\" ||\n event.defaultPrevented ||\n event.isComposing ||\n trigger.value?.getAttribute(\"aria-expanded\") !== \"true\"\n )\n return;\n event.preventDefault();\n event.stopPropagation();\n open.value = false;\n if (active.value && trigger.value?.isConnected) trigger.value.focus();\n};\nconst renderChoices = (control: Parameters<FilterHeaderSlots[\"Multi\"]>[0]) =>\n control.options.map((option) =>\n h(AntdCheckbox, {\n key: option.value,\n label: option.label,\n labelVisible: true,\n checked: control.selected.includes(option.value),\n onChange: (checked) => control.onToggle(option.value, checked),\n })\n );\nconst controls: FilterHeaderSlots = {\n Search: (control) =>\n h(AntdInput, {\n type: \"search\",\n dir: props.dir,\n value: control.value,\n \"data-adapttable-part\": \"filter-header-input\",\n \"aria-label\": control.label,\n placeholder: control.placeholder,\n class: control.className,\n onChange: control.onChange,\n }),\n Select: (control) =>\n h(AntdSelect, {\n value: control.value,\n dir: props.dir,\n options: control.options,\n \"data-adapttable-part\": \"filter-header-input\",\n \"aria-label\": control.label,\n class: control.className,\n onChange: control.onChange,\n }),\n Range: (control) =>\n h(AntdInput, {\n value: control.value,\n type: control.type,\n dir: props.dir,\n \"aria-label\": control.label,\n onChange: control.onChange,\n }),\n Multi: (control) =>\n h(\n Popover,\n {\n key: `${props.def.key}:${props.def.type}`,\n open: open.value,\n trigger: [\"click\"],\n arrow: false,\n destroyTooltipOnHide: true,\n getPopupContainer: popupContainer(\n true,\n fullscreen.value?.container ?? undefined\n ),\n placement:\n popupDirection.value === \"rtl\" ? \"bottomRight\" : \"bottomLeft\",\n overlayStyle: { direction: popupDirection.value },\n onOpenChange: (value: boolean) => {\n open.value = value;\n },\n afterVisibleChange: (visible: boolean) => {\n if (visible) readInheritedDirection();\n },\n },\n {\n default: () =>\n antdButton(\n {\n ref: setTrigger,\n dir: props.dir,\n \"data-adapttable-part\": \"filter-header-input\",\n class: control.className,\n \"aria-label\": control.label,\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": open.value,\n onKeydown: dismiss,\n },\n control.summary\n ),\n content: () =>\n h(\n Space,\n {\n direction: \"vertical\",\n align: \"start\",\n role: \"dialog\",\n ref: (instance: unknown) => {\n const host =\n instance && typeof instance === \"object\" && \"$el\" in instance\n ? instance.$el\n : null;\n if (!(host instanceof Element)) return;\n presentPopoverContent(host);\n readInheritedDirection();\n },\n dir: popupDirection.value,\n \"data-adapttable-part\": \"filter-header-menu\",\n class: control.menuClassName,\n \"aria-label\": control.label,\n onKeydown: dismiss,\n style: { maxBlockSize: \"14rem\", overflow: \"auto\" },\n },\n {\n default: () => renderChoices(control),\n }\n ),\n }\n ),\n};\nconst Render = () =>\n FilterHeaderControlChrome({ model: model.value, controls });\nconst renderProps: string[] = [];\nRender.props = renderProps;\n</script>\n\n<template><Render /></template>\n","<script setup lang=\"ts\" generic=\"TRow\">\nimport {\n FilterHeaderChrome as FilterHeaderRowChrome,\n type FilterHeaderRowProps,\n type FilterHeaderRowSlots,\n} from \"@adapttable/vue/adapter\";\nimport { h } from \"vue\";\n\nimport AntdFilterHeaderControl from \"./AntdFilterHeaderControl.vue\";\n\ndefineOptions({ name: \"AntdFilterHeaderRow\" });\nconst {\n enabled = undefined,\n expandable = undefined,\n showReorder = undefined,\n selection = undefined,\n showActions = undefined,\n stickyAttr = undefined,\n ...props\n} = defineProps<FilterHeaderRowProps<TRow>>();\nconst controls: FilterHeaderRowSlots<TRow> = {\n Control: (control) => h(AntdFilterHeaderControl<TRow>, { ...control }),\n};\nconst Render = () =>\n FilterHeaderRowChrome({\n ...props,\n enabled,\n expandable,\n showReorder,\n selection,\n showActions,\n stickyAttr,\n controls,\n });\nconst renderProps: string[] = [];\nRender.props = renderProps;\n</script>\n\n<template>\n <Render />\n</template>\n"],"mappings":"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"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FilterHeaderControlOptions, FilterHeaderRowProps } from "@adapttable/vue/adapter";
|
|
2
|
+
//#region src/filters/AntdFilterHeaderControl.vue.d.ts
|
|
3
|
+
declare const __VLS_export$1: <TRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal$1<FilterHeaderControlOptions<TRow>> & (typeof globalThis extends {
|
|
5
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
6
|
+
} ? P : {});
|
|
7
|
+
expose: (exposed: {}) => void;
|
|
8
|
+
attrs: any;
|
|
9
|
+
slots: {};
|
|
10
|
+
emit: {};
|
|
11
|
+
}>) => import("vue").VNode & {
|
|
12
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
13
|
+
};
|
|
14
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
15
|
+
type __VLS_PrettifyLocal$1<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/filters/AntdFilterHeaderRow.vue.d.ts
|
|
18
|
+
declare const __VLS_export: <TRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
19
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<FilterHeaderRowProps<TRow>> & (typeof globalThis extends {
|
|
20
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
21
|
+
} ? P : {});
|
|
22
|
+
expose: (exposed: {}) => void;
|
|
23
|
+
attrs: any;
|
|
24
|
+
slots: {};
|
|
25
|
+
emit: {};
|
|
26
|
+
}>) => import("vue").VNode & {
|
|
27
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { _default$1 as n, _default as t };
|
|
33
|
+
//# sourceMappingURL=AntdFilterHeaderRow.vue-bSjrpoCP.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AntdFilterHeaderRow.vue-bSjrpoCP.d.cts","names":[],"sources":["../src/filters/AntdFilterHeaderControl.vue","../src/filters/AntdFilterHeaderRow.vue"],"mappings":";;cAqMM,iBAAiB,MACtB,aAAa,YAAY,eAAe,wBACxC,YAAY,sBAAoB,KAAK,YAAY,eAAe,6CAChE,gBAAgB,YAAY,eAAe,yBAC3C,cAAA;EAqLO,qBAAc,cAAc,sBAAmB,2BAAA,iBAA8B;IAAqB,4BAA4B;MAAM;EACnI,SAAC;EACF;EACA;EACD;qBAGmB;EAAU,QAAQ,YAAY,eAAe;;cAClD,mBAAO;KACvB,sBAAoB,MAAM,mBAAmB,WAAW,IAAI,EAAE,WAAW,WAAW,KAAK,IAAI,EAAE;;;cCnV9F,eAAiB,MACtB,aAAa,YAAY,eAAe,wBACxC,YAAY,oBAAoB,KAAK,YAAY,eAAe,6CAChE,gBAAgB,YAAY,eAAe,yBAC3C,cAAA;EAsDO,qBAAc,cAAc,oBAAmB,qBAAA,iBAA8B;IAAqB,4BAA4B;MAAM;EACnI,SAAC;EACF;EACA;EACD;qBAGmB;EAAU,QAAQ,YAAY,eAAe;;cAClD,iBAAO;KACvB,oBAAoB,MAAM,mBAAmB,WAAW,IAAI,EAAE,WAAW,WAAW,KAAK,IAAI,EAAE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FilterHeaderControlOptions, FilterHeaderRowProps } from "@adapttable/vue/adapter";
|
|
2
|
+
//#region src/filters/AntdFilterHeaderControl.vue.d.ts
|
|
3
|
+
declare const __VLS_export$1: <TRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal$1<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal$1<FilterHeaderControlOptions<TRow>> & (typeof globalThis extends {
|
|
5
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
6
|
+
} ? P : {});
|
|
7
|
+
expose: (exposed: {}) => void;
|
|
8
|
+
attrs: any;
|
|
9
|
+
slots: {};
|
|
10
|
+
emit: {};
|
|
11
|
+
}>) => import("vue").VNode & {
|
|
12
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
13
|
+
};
|
|
14
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
15
|
+
type __VLS_PrettifyLocal$1<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/filters/AntdFilterHeaderRow.vue.d.ts
|
|
18
|
+
declare const __VLS_export: <TRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
19
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<FilterHeaderRowProps<TRow>> & (typeof globalThis extends {
|
|
20
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
21
|
+
} ? P : {});
|
|
22
|
+
expose: (exposed: {}) => void;
|
|
23
|
+
attrs: any;
|
|
24
|
+
slots: {};
|
|
25
|
+
emit: {};
|
|
26
|
+
}>) => import("vue").VNode & {
|
|
27
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { _default$1 as n, _default as t };
|
|
33
|
+
//# sourceMappingURL=AntdFilterHeaderRow.vue-bSjrpoCP.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AntdFilterHeaderRow.vue-bSjrpoCP.d.ts","names":[],"sources":["../src/filters/AntdFilterHeaderControl.vue","../src/filters/AntdFilterHeaderRow.vue"],"mappings":";;cAqMM,iBAAiB,MACtB,aAAa,YAAY,eAAe,wBACxC,YAAY,sBAAoB,KAAK,YAAY,eAAe,6CAChE,gBAAgB,YAAY,eAAe,yBAC3C,cAAA;EAqLO,qBAAc,cAAc,sBAAmB,2BAAA,iBAA8B;IAAqB,4BAA4B;MAAM;EACnI,SAAC;EACF;EACA;EACD;qBAGmB;EAAU,QAAQ,YAAY,eAAe;;cAClD,mBAAO;KACvB,sBAAoB,MAAM,mBAAmB,WAAW,IAAI,EAAE,WAAW,WAAW,KAAK,IAAI,EAAE;;;cCnV9F,eAAiB,MACtB,aAAa,YAAY,eAAe,wBACxC,YAAY,oBAAoB,KAAK,YAAY,eAAe,6CAChE,gBAAgB,YAAY,eAAe,yBAC3C,cAAA;EAsDO,qBAAc,cAAc,oBAAmB,qBAAA,iBAA8B;IAAqB,4BAA4B;MAAM;EACnI,SAAC;EACF;EACA;EACD;qBAGmB;EAAU,QAAQ,YAAY,eAAe;;cAClD,iBAAO;KACvB,oBAAoB,MAAM,mBAAmB,WAAW,IAAI,EAAE,WAAW,WAAW,KAAK,IAAI,EAAE"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
let vue = require("vue");
|
|
2
|
+
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
3
|
+
let ant_design_vue = require("ant-design-vue");
|
|
4
|
+
//#region src/controls/AntdInput.vue
|
|
5
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
__name: "AntdInput",
|
|
8
|
+
props: {
|
|
9
|
+
value: {},
|
|
10
|
+
type: { default: "text" },
|
|
11
|
+
disabled: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: false
|
|
14
|
+
},
|
|
15
|
+
inputStyle: { default: () => void 0 },
|
|
16
|
+
inputRef: {
|
|
17
|
+
type: Function,
|
|
18
|
+
default: void 0
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
emits: ["change"],
|
|
22
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
23
|
+
const props = (0, vue.createPropsRestProxy)(__props, [
|
|
24
|
+
"type",
|
|
25
|
+
"disabled",
|
|
26
|
+
"inputStyle",
|
|
27
|
+
"inputRef"
|
|
28
|
+
]);
|
|
29
|
+
const emit = __emit;
|
|
30
|
+
const control = (0, vue.shallowRef)();
|
|
31
|
+
/** The native field inside Ant Design Vue's input, whichever wrapper it draws. */
|
|
32
|
+
const input = (0, vue.computed)(() => {
|
|
33
|
+
const host = control.value?.$el;
|
|
34
|
+
if (host == null) return null;
|
|
35
|
+
if (host instanceof HTMLInputElement || host instanceof HTMLTextAreaElement) return host;
|
|
36
|
+
if (!(host instanceof Element)) return null;
|
|
37
|
+
return host.querySelector("input, textarea");
|
|
38
|
+
});
|
|
39
|
+
/**
|
|
40
|
+
* The host owns the value. Ant Design Vue leaves a rejected edit showing in
|
|
41
|
+
* the field, so the field is set back to the value the host still holds once
|
|
42
|
+
* the host has had its chance to accept the change.
|
|
43
|
+
*/
|
|
44
|
+
function change(value) {
|
|
45
|
+
emit("change", value);
|
|
46
|
+
(0, _adapttable_vue_adapter.scheduleTick)(() => {
|
|
47
|
+
const field = input.value;
|
|
48
|
+
if (field && field.value !== props.value) field.value = props.value;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
(0, _adapttable_vue_adapter.useElementRef)(() => input.value, () => __props.inputRef);
|
|
52
|
+
__expose({
|
|
53
|
+
input,
|
|
54
|
+
focus: () => input.value?.focus()
|
|
55
|
+
});
|
|
56
|
+
return (_ctx, _cache) => {
|
|
57
|
+
return __props.type === "textarea" ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ant_design_vue.Textarea), (0, vue.mergeProps)({
|
|
58
|
+
key: 0,
|
|
59
|
+
ref_key: "control",
|
|
60
|
+
ref: control
|
|
61
|
+
}, _ctx.$attrs, {
|
|
62
|
+
value: props.value,
|
|
63
|
+
disabled: __props.disabled,
|
|
64
|
+
style: __props.inputStyle,
|
|
65
|
+
"onUpdate:value": change
|
|
66
|
+
}), null, 16, [
|
|
67
|
+
"value",
|
|
68
|
+
"disabled",
|
|
69
|
+
"style"
|
|
70
|
+
])) : ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ant_design_vue.Input), (0, vue.mergeProps)({
|
|
71
|
+
key: 1,
|
|
72
|
+
ref_key: "control",
|
|
73
|
+
ref: control
|
|
74
|
+
}, _ctx.$attrs, {
|
|
75
|
+
value: props.value,
|
|
76
|
+
type: __props.type,
|
|
77
|
+
disabled: __props.disabled,
|
|
78
|
+
style: __props.inputStyle,
|
|
79
|
+
"onUpdate:value": change
|
|
80
|
+
}), null, 16, [
|
|
81
|
+
"value",
|
|
82
|
+
"type",
|
|
83
|
+
"disabled",
|
|
84
|
+
"style"
|
|
85
|
+
]));
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
//#endregion
|
|
90
|
+
Object.defineProperty(exports, "_sfc_main", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function() {
|
|
93
|
+
return _sfc_main;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=AntdInput-BFNEDXzq.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AntdInput-BFNEDXzq.cjs","names":["$attrs"],"sources":["../src/controls/AntdInput.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { scheduleTick, useElementRef } from \"@adapttable/vue/adapter\";\nimport { Input, Textarea } from \"ant-design-vue\";\nimport {\n type ComponentPublicInstance,\n computed,\n type CSSProperties,\n shallowRef,\n} from \"vue\";\n\ndefineOptions({ inheritAttrs: false });\nconst {\n type = \"text\",\n disabled = false,\n inputStyle = undefined,\n inputRef = undefined,\n ...props\n} = defineProps<{\n value: string;\n type?:\n | \"text\"\n | \"search\"\n | \"number\"\n | \"date\"\n | \"datetime-local\"\n | \"time\"\n | \"email\"\n | \"url\"\n | \"tel\"\n | \"textarea\";\n disabled?: boolean;\n inputStyle?: CSSProperties;\n inputRef?: (element: HTMLInputElement | HTMLTextAreaElement | null) => void;\n}>();\nconst emit = defineEmits<{ change: [value: string] }>();\nconst control = shallowRef<ComponentPublicInstance>();\n/** The native field inside Ant Design Vue's input, whichever wrapper it draws. */\nconst input = computed((): HTMLInputElement | HTMLTextAreaElement | null => {\n const host: unknown = control.value?.$el;\n if (host == null) return null;\n if (host instanceof HTMLInputElement || host instanceof HTMLTextAreaElement)\n return host;\n if (!(host instanceof Element)) return null;\n return host.querySelector<HTMLInputElement | HTMLTextAreaElement>(\n \"input, textarea\"\n );\n});\n/**\n * The host owns the value. Ant Design Vue leaves a rejected edit showing in\n * the field, so the field is set back to the value the host still holds once\n * the host has had its chance to accept the change.\n */\nfunction change(value: string): void {\n emit(\"change\", value);\n scheduleTick(() => {\n const field = input.value;\n if (field && field.value !== props.value) field.value = props.value;\n });\n}\nuseElementRef(\n () => input.value,\n () => inputRef\n);\ndefineExpose({ input, focus: () => input.value?.focus() });\n</script>\n\n<template>\n <Textarea\n v-if=\"type === 'textarea'\"\n ref=\"control\"\n v-bind=\"$attrs\"\n :value=\"props.value\"\n :disabled=\"disabled\"\n :style=\"inputStyle\"\n @update:value=\"change\"\n />\n <Input\n v-else\n ref=\"control\"\n v-bind=\"$attrs\"\n :value=\"props.value\"\n :type=\"type\"\n :disabled=\"disabled\"\n :style=\"inputStyle\"\n @update:value=\"change\"\n />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;EAWA,MAAM,SAAA,GAMF,IAAA,qBAAA,CAAA,SAAA;GAAA;GAAA;GAAA;GAAA;EAAA,CAAA;EAiBJ,MAAM,OAAO;EACb,MAAM,WAAA,GAAU,IAAA,WAAA,CAAoC;;EAEpD,MAAM,SAAA,GAAQ,IAAA,SAAA,OAA8D;GAC1E,MAAM,OAAgB,QAAQ,OAAO;GACrC,IAAI,QAAQ,MAAM,OAAO;GACzB,IAAI,gBAAgB,oBAAoB,gBAAgB,qBACtD,OAAO;GACT,IAAI,EAAE,gBAAgB,UAAU,OAAO;GACvC,OAAO,KAAK,cACV,iBACF;EACF,CAAC;;;;;;EAMD,SAAS,OAAO,OAAqB;GACnC,KAAK,UAAU,KAAK;GACpB,CAAA,GAAA,wBAAA,aAAA,OAAmB;IACjB,MAAM,QAAQ,MAAM;IACpB,IAAI,SAAS,MAAM,UAAU,MAAM,OAAO,MAAM,QAAQ,MAAM;GAChE,CAAC;EACH;EACA,CAAA,GAAA,wBAAA,cAAA,OACQ,MAAM,aACN,QAAA,QACR;EACA,SAAa;GAAE;GAAO,aAAa,MAAM,OAAO,MAAM;EAAE,CAAC;;GAK/C,OAAA,QAAA,SAAI,eAAA,GADZ,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,EAAA,GAQE,IAAA,MAAA,CAAA,eAAA,QAAA,IAAA,GARF,IAAA,WAAA,CAQE;;IANI,SAAA;IAAJ,KAAI;GACIA,GAAAA,KAAAA,QAAM;IACb,OAAO,MAAM;IACb,UAAU,QAAA;IACV,OAAO,QAAA;IACP,kBAAc;;;;;G,C,O,GAEjB,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,EAAA,GASE,IAAA,MAAA,CAAA,eAAA,KAAA,IAAA,GATF,IAAA,WAAA,CASE;;IAPI,SAAA;IAAJ,KAAI;GACIA,GAAAA,KAAAA,QAAM;IACb,OAAO,MAAM;IACb,MAAM,QAAA;IACN,UAAU,QAAA;IACV,OAAO,QAAA;IACP,kBAAc"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { computed, createBlock, createPropsRestProxy, defineComponent, mergeProps, openBlock, shallowRef, unref } from "vue";
|
|
2
|
+
import { scheduleTick, useElementRef } from "@adapttable/vue/adapter";
|
|
3
|
+
import { Input, Textarea } from "ant-design-vue";
|
|
4
|
+
//#region src/controls/AntdInput.vue
|
|
5
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
__name: "AntdInput",
|
|
8
|
+
props: {
|
|
9
|
+
value: {},
|
|
10
|
+
type: { default: "text" },
|
|
11
|
+
disabled: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: false
|
|
14
|
+
},
|
|
15
|
+
inputStyle: { default: () => void 0 },
|
|
16
|
+
inputRef: {
|
|
17
|
+
type: Function,
|
|
18
|
+
default: void 0
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
emits: ["change"],
|
|
22
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
23
|
+
const props = createPropsRestProxy(__props, [
|
|
24
|
+
"type",
|
|
25
|
+
"disabled",
|
|
26
|
+
"inputStyle",
|
|
27
|
+
"inputRef"
|
|
28
|
+
]);
|
|
29
|
+
const emit = __emit;
|
|
30
|
+
const control = shallowRef();
|
|
31
|
+
/** The native field inside Ant Design Vue's input, whichever wrapper it draws. */
|
|
32
|
+
const input = computed(() => {
|
|
33
|
+
const host = control.value?.$el;
|
|
34
|
+
if (host == null) return null;
|
|
35
|
+
if (host instanceof HTMLInputElement || host instanceof HTMLTextAreaElement) return host;
|
|
36
|
+
if (!(host instanceof Element)) return null;
|
|
37
|
+
return host.querySelector("input, textarea");
|
|
38
|
+
});
|
|
39
|
+
/**
|
|
40
|
+
* The host owns the value. Ant Design Vue leaves a rejected edit showing in
|
|
41
|
+
* the field, so the field is set back to the value the host still holds once
|
|
42
|
+
* the host has had its chance to accept the change.
|
|
43
|
+
*/
|
|
44
|
+
function change(value) {
|
|
45
|
+
emit("change", value);
|
|
46
|
+
scheduleTick(() => {
|
|
47
|
+
const field = input.value;
|
|
48
|
+
if (field && field.value !== props.value) field.value = props.value;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
useElementRef(() => input.value, () => __props.inputRef);
|
|
52
|
+
__expose({
|
|
53
|
+
input,
|
|
54
|
+
focus: () => input.value?.focus()
|
|
55
|
+
});
|
|
56
|
+
return (_ctx, _cache) => {
|
|
57
|
+
return __props.type === "textarea" ? (openBlock(), createBlock(unref(Textarea), mergeProps({
|
|
58
|
+
key: 0,
|
|
59
|
+
ref_key: "control",
|
|
60
|
+
ref: control
|
|
61
|
+
}, _ctx.$attrs, {
|
|
62
|
+
value: props.value,
|
|
63
|
+
disabled: __props.disabled,
|
|
64
|
+
style: __props.inputStyle,
|
|
65
|
+
"onUpdate:value": change
|
|
66
|
+
}), null, 16, [
|
|
67
|
+
"value",
|
|
68
|
+
"disabled",
|
|
69
|
+
"style"
|
|
70
|
+
])) : (openBlock(), createBlock(unref(Input), mergeProps({
|
|
71
|
+
key: 1,
|
|
72
|
+
ref_key: "control",
|
|
73
|
+
ref: control
|
|
74
|
+
}, _ctx.$attrs, {
|
|
75
|
+
value: props.value,
|
|
76
|
+
type: __props.type,
|
|
77
|
+
disabled: __props.disabled,
|
|
78
|
+
style: __props.inputStyle,
|
|
79
|
+
"onUpdate:value": change
|
|
80
|
+
}), null, 16, [
|
|
81
|
+
"value",
|
|
82
|
+
"type",
|
|
83
|
+
"disabled",
|
|
84
|
+
"style"
|
|
85
|
+
]));
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
//#endregion
|
|
90
|
+
export { _sfc_main as t };
|
|
91
|
+
|
|
92
|
+
//# sourceMappingURL=AntdInput-ONL_AJ3Y.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AntdInput-ONL_AJ3Y.js","names":["$attrs"],"sources":["../src/controls/AntdInput.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { scheduleTick, useElementRef } from \"@adapttable/vue/adapter\";\nimport { Input, Textarea } from \"ant-design-vue\";\nimport {\n type ComponentPublicInstance,\n computed,\n type CSSProperties,\n shallowRef,\n} from \"vue\";\n\ndefineOptions({ inheritAttrs: false });\nconst {\n type = \"text\",\n disabled = false,\n inputStyle = undefined,\n inputRef = undefined,\n ...props\n} = defineProps<{\n value: string;\n type?:\n | \"text\"\n | \"search\"\n | \"number\"\n | \"date\"\n | \"datetime-local\"\n | \"time\"\n | \"email\"\n | \"url\"\n | \"tel\"\n | \"textarea\";\n disabled?: boolean;\n inputStyle?: CSSProperties;\n inputRef?: (element: HTMLInputElement | HTMLTextAreaElement | null) => void;\n}>();\nconst emit = defineEmits<{ change: [value: string] }>();\nconst control = shallowRef<ComponentPublicInstance>();\n/** The native field inside Ant Design Vue's input, whichever wrapper it draws. */\nconst input = computed((): HTMLInputElement | HTMLTextAreaElement | null => {\n const host: unknown = control.value?.$el;\n if (host == null) return null;\n if (host instanceof HTMLInputElement || host instanceof HTMLTextAreaElement)\n return host;\n if (!(host instanceof Element)) return null;\n return host.querySelector<HTMLInputElement | HTMLTextAreaElement>(\n \"input, textarea\"\n );\n});\n/**\n * The host owns the value. Ant Design Vue leaves a rejected edit showing in\n * the field, so the field is set back to the value the host still holds once\n * the host has had its chance to accept the change.\n */\nfunction change(value: string): void {\n emit(\"change\", value);\n scheduleTick(() => {\n const field = input.value;\n if (field && field.value !== props.value) field.value = props.value;\n });\n}\nuseElementRef(\n () => input.value,\n () => inputRef\n);\ndefineExpose({ input, focus: () => input.value?.focus() });\n</script>\n\n<template>\n <Textarea\n v-if=\"type === 'textarea'\"\n ref=\"control\"\n v-bind=\"$attrs\"\n :value=\"props.value\"\n :disabled=\"disabled\"\n :style=\"inputStyle\"\n @update:value=\"change\"\n />\n <Input\n v-else\n ref=\"control\"\n v-bind=\"$attrs\"\n :value=\"props.value\"\n :type=\"type\"\n :disabled=\"disabled\"\n :style=\"inputStyle\"\n @update:value=\"change\"\n />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;EAWA,MAAM,QAMF,qBAAA,SAAA;GAAA;GAAA;GAAA;GAAA;EAAA,CAAA;EAiBJ,MAAM,OAAO;EACb,MAAM,UAAU,WAAoC;;EAEpD,MAAM,QAAQ,eAA8D;GAC1E,MAAM,OAAgB,QAAQ,OAAO;GACrC,IAAI,QAAQ,MAAM,OAAO;GACzB,IAAI,gBAAgB,oBAAoB,gBAAgB,qBACtD,OAAO;GACT,IAAI,EAAE,gBAAgB,UAAU,OAAO;GACvC,OAAO,KAAK,cACV,iBACF;EACF,CAAC;;;;;;EAMD,SAAS,OAAO,OAAqB;GACnC,KAAK,UAAU,KAAK;GACpB,mBAAmB;IACjB,MAAM,QAAQ,MAAM;IACpB,IAAI,SAAS,MAAM,UAAU,MAAM,OAAO,MAAM,QAAQ,MAAM;GAChE,CAAC;EACH;EACA,oBACQ,MAAM,aACN,QAAA,QACR;EACA,SAAa;GAAE;GAAO,aAAa,MAAM,OAAO,MAAM;EAAE,CAAC;;GAK/C,OAAA,QAAA,SAAI,cADZ,UAAA,GAAA,YAQE,MAAA,QAAA,GARF,WAQE;;IANI,SAAA;IAAJ,KAAI;GACIA,GAAAA,KAAAA,QAAM;IACb,OAAO,MAAM;IACb,UAAU,QAAA;IACV,OAAO,QAAA;IACP,kBAAc;;;;;G,C,MAEjB,UAAA,GAAA,YASE,MAAA,KAAA,GATF,WASE;;IAPI,SAAA;IAAJ,KAAI;GACIA,GAAAA,KAAAA,QAAM;IACb,OAAO,MAAM;IACb,MAAM,QAAA;IACN,UAAU,QAAA;IACV,OAAO,QAAA;IACP,kBAAc"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
const require_button = require("./button-llfktOrH.cjs");
|
|
2
|
+
const require_handlers = require("./handlers-Br0_3lPS.cjs");
|
|
3
|
+
const require_popupContainer = require("./popupContainer-C0uOjWEO.cjs");
|
|
4
|
+
const require_menuKeyboard = require("./menuKeyboard-Be6RV6HV.cjs");
|
|
5
|
+
let vue = require("vue");
|
|
6
|
+
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
7
|
+
let ant_design_vue = require("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 = (0, vue.defineComponent)((props) => {
|
|
16
|
+
const trigger = (0, vue.shallowRef)(null);
|
|
17
|
+
const open = (0, vue.shallowRef)(false);
|
|
18
|
+
const focusMenu = require_menuKeyboard.focusOnOpen(_adapttable_vue_adapter.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) => (0, vue.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 = require_handlers.eventHandlers(onClick);
|
|
33
|
+
return (0, vue.h)(ant_design_vue.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 (0, vue.h)(vue.Fragment, null, props.controls.map((action) => require_button.antdButton(attrs(action), (0, _adapttable_vue_adapter.rowActionContent)(action))));
|
|
44
|
+
return (0, vue.h)("span", {
|
|
45
|
+
"data-adapttable-part": "row-actions-menu",
|
|
46
|
+
class: props.classNames.rowActionsMenu,
|
|
47
|
+
onPointerdown: (event) => event.stopPropagation()
|
|
48
|
+
}, [(0, vue.h)(ant_design_vue.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: require_popupContainer.popupContainer(false),
|
|
58
|
+
placement: "bottomRight"
|
|
59
|
+
}, {
|
|
60
|
+
default: () => require_button.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: () => (0, vue.h)(ant_design_vue.Menu, {
|
|
76
|
+
selectable: false,
|
|
77
|
+
ref: focusMenu,
|
|
78
|
+
onKeydown: (event) => {
|
|
79
|
+
if (require_menuKeyboard.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__ */ (0, _adapttable_vue_adapter.withProps)(function AntdRowActions(props) {
|
|
96
|
+
return (0, vue.createVNode)(AntdRowActionsPresentation, { ...props });
|
|
97
|
+
}, actionProps);
|
|
98
|
+
//#endregion
|
|
99
|
+
Object.defineProperty(exports, "AntdRowActions", {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function() {
|
|
102
|
+
return AntdRowActions;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
//# sourceMappingURL=AntdRowActions-D2Pce95h.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AntdRowActions-D2Pce95h.cjs","names":["defineComponent","shallowRef","focusOnOpen","scheduleTick","mergeProps","eventHandlers","h","MenuItem","Fragment","antdButton","rowActionContent","Dropdown","popupContainer","Menu","handleMenuKey","createVNode"],"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,8BAAA,GAA6BA,IAAAA,gBAAAA,EAChC,UAAwC;CACvC,MAAM,WAAA,GAAUC,IAAAA,WAAAA,CAA+B,IAAI;CAGnD,MAAM,QAAA,GAAOA,IAAAA,WAAAA,CAAW,KAAK;CAC7B,MAAM,YAAYC,qBAAAA,YAAYC,wBAAAA,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,YAAA,GACbC,IAAAA,WAAAA,CACE;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,WAAWC,iBAAAA,cAA0B,OAAO;EAClD,QAAA,GAAOC,IAAAA,EAAAA,CACLC,eAAAA,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,QAAA,GAAOD,IAAAA,EAAAA,CACLE,IAAAA,UACA,MACA,MAAM,SAAS,KAAK,WAClBC,eAAAA,WAAW,MAAM,MAAM,IAAA,GAAGC,wBAAAA,iBAAAA,CAAiB,MAAM,CAAC,CACpD,CACF;EACF,QAAA,GAAOJ,IAAAA,EAAAA,CACL,QACA;GACE,wBAAwB;GACxB,OAAO,MAAM,WAAW;GACxB,gBAAgB,UAAwB,MAAM,gBAAgB;EAChE,GACA,EAAA,GACEA,IAAAA,EAAAA,CACEK,eAAAA,UACA;GACE,SAAS,CAAC,OAAO;GACjB,MAAM,KAAK;GACX,eAAe,UAAmB;IAChC,KAAK,QAAQ;GACf;GAEA,sBAAsB;IACpB,KAAK,QAAQ;GACf;GACA,mBAAmBC,uBAAAA,eAAe,KAAK;GACvC,WAAW;EACb,GACA;GACE,eACEH,eAAAA,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,gBAAA,GACEH,IAAAA,EAAAA,CACEO,eAAAA,MACA;IACE,YAAY;IACZ,KAAK;IACL,YAAY,UAAyB;KACnC,IAAIC,qBAAAA,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,iBAAA,GAAA,wBAAA,UAAA,CAAU,SAAS,eAE/D,OAAyC;CACzC,QAAA,GAAOC,IAAAA,YAAAA,CAAY,4BAA4B,EAAE,GAAG,MAAM,CAAC;AAC7D,GAAG,WAAW"}
|