@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
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_button = require("./button-llfktOrH.cjs");
|
|
3
|
+
const require_AntdInput = require("./AntdInput-BFNEDXzq.cjs");
|
|
4
|
+
const require_AntdSelect = require("./AntdSelect-DYoLHfOo.cjs");
|
|
5
|
+
const require_icon = require("./icon-CeQ6QTNJ.cjs");
|
|
6
|
+
const require_AntdCard = require("./AntdCard-Jx9wJdT_.cjs");
|
|
7
|
+
const require_checkbox = require("./checkbox-DBL8jd6A.cjs");
|
|
8
|
+
const require_rowActionsSlot = require("./rowActionsSlot-75ZknCMX.cjs");
|
|
9
|
+
const require_AntdFilterHeaderRow = require("./AntdFilterHeaderRow-DZ2Pq2BG.cjs");
|
|
10
|
+
let vue = require("vue");
|
|
11
|
+
let _adapttable_vue_adapter = require("@adapttable/vue/adapter");
|
|
12
|
+
let ant_design_vue = require("ant-design-vue");
|
|
13
|
+
//#region src/antdConfirm.ts
|
|
14
|
+
/**
|
|
15
|
+
* A dialog that closes while its container is detached (a cached table that
|
|
16
|
+
* deactivated) never receives its leave transition's end event, so it would
|
|
17
|
+
* come back as a half-closed ghost. Ending the motion by hand lets the dialog
|
|
18
|
+
* finish unmounting.
|
|
19
|
+
*/
|
|
20
|
+
function endLeaveMotion(container) {
|
|
21
|
+
if (!container) return;
|
|
22
|
+
const end = () => {
|
|
23
|
+
for (const element of container.querySelectorAll("[class*=\"-leave-active\"]")) {
|
|
24
|
+
element.dispatchEvent(new Event("animationend", { bubbles: true }));
|
|
25
|
+
element.dispatchEvent(new Event("transitionend", { bubbles: true }));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
for (const delay of [50, 300]) setTimeout(end, delay);
|
|
29
|
+
}
|
|
30
|
+
/** Dispose only this table's dialogs through their public `destroy` handles. */
|
|
31
|
+
function useAntdConfirm(context) {
|
|
32
|
+
let dialogs;
|
|
33
|
+
const closeOwned = () => {
|
|
34
|
+
for (const dialog of dialogs ?? []) {
|
|
35
|
+
dialog.destroy?.();
|
|
36
|
+
endLeaveMotion(dialog.container);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
(0, vue.onDeactivated)(closeOwned);
|
|
40
|
+
(0, vue.onScopeDispose)(closeOwned);
|
|
41
|
+
return (request) => {
|
|
42
|
+
const owner = context();
|
|
43
|
+
if (!owner.active || typeof window === "undefined") return;
|
|
44
|
+
const dialog = { container: owner.container };
|
|
45
|
+
const opener = document.activeElement;
|
|
46
|
+
dialogs ??= /* @__PURE__ */ new Set();
|
|
47
|
+
dialogs.add(dialog);
|
|
48
|
+
dialog.destroy = ant_design_vue.Modal.confirm({
|
|
49
|
+
title: request.title,
|
|
50
|
+
content: request.message,
|
|
51
|
+
okText: request.confirmLabel,
|
|
52
|
+
cancelText: request.cancelLabel,
|
|
53
|
+
okButtonProps: { danger: request.danger === true },
|
|
54
|
+
centered: true,
|
|
55
|
+
maskClosable: false,
|
|
56
|
+
direction: owner.dir,
|
|
57
|
+
getContainer: owner.container,
|
|
58
|
+
appContext: owner.appContext ?? void 0,
|
|
59
|
+
onOk: () => {
|
|
60
|
+
request.onConfirm();
|
|
61
|
+
},
|
|
62
|
+
afterClose: () => {
|
|
63
|
+
dialogs?.delete(dialog);
|
|
64
|
+
const focused = document.activeElement;
|
|
65
|
+
if (opener instanceof HTMLElement && opener.isConnected && (!focused || focused === document.body || focused.closest(".ant-modal-root"))) opener.focus({ preventScroll: true });
|
|
66
|
+
}
|
|
67
|
+
}).destroy;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/antdHierarchyControls.ts
|
|
72
|
+
const indicator = (expanded) => (0, vue.h)("span", { "aria-hidden": "true" }, expanded ? "−" : "+");
|
|
73
|
+
function antdColumnGroupToggle(props) {
|
|
74
|
+
return (0, _adapttable_vue_adapter.ColumnGroupToggleChrome)({
|
|
75
|
+
...props,
|
|
76
|
+
slots: { Button: ({ label, expanded, className, onClick }) => require_button.antdButton({
|
|
77
|
+
"data-adapttable-part": "column-group-toggle",
|
|
78
|
+
"aria-expanded": expanded,
|
|
79
|
+
"aria-label": label,
|
|
80
|
+
title: label,
|
|
81
|
+
class: className,
|
|
82
|
+
onClick
|
|
83
|
+
}, indicator(expanded)) }
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function antdHierarchyControls() {
|
|
87
|
+
return {
|
|
88
|
+
TreeToggle: ({ attrs, expanded, loading }) => require_button.antdButton(attrs, loading ? (0, vue.h)("span", { "aria-hidden": "true" }, "…") : indicator(expanded)),
|
|
89
|
+
RowDetailToggle: ({ attrs, expanded }) => require_button.antdButton(attrs, indicator(expanded))
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/AntdLoadingState.ts
|
|
94
|
+
/** Real table/card placeholders; the parent supplies the one spoken status. */
|
|
95
|
+
const AntdLoadingState = /* @__PURE__ */ (0, _adapttable_vue_adapter.withProps)(function AntdLoadingState(props) {
|
|
96
|
+
const names = props.classNames;
|
|
97
|
+
const rows = Array.from({ length: Number.isFinite(props.rows) ? Math.max(0, Math.floor(props.rows)) : 0 }, (_, index) => index);
|
|
98
|
+
const columns = Array.from({ length: Math.max(1, props.columns) }, (_, index) => index);
|
|
99
|
+
const line = (column) => {
|
|
100
|
+
const width = column === columns.length - 1 ? "42%" : "55%";
|
|
101
|
+
return (0, vue.h)(ant_design_vue.Skeleton, {
|
|
102
|
+
key: column,
|
|
103
|
+
"data-adapttable-part": "loading-line",
|
|
104
|
+
class: names.loadingLine,
|
|
105
|
+
active: true,
|
|
106
|
+
title: { width: column === 0 ? "70%" : width },
|
|
107
|
+
paragraph: false
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
if (props.mobile) return (0, vue.h)("div", {
|
|
111
|
+
"data-adapttable-part": "loading-cards",
|
|
112
|
+
class: names.loadingCards,
|
|
113
|
+
"aria-hidden": "true"
|
|
114
|
+
}, rows.map((row) => (0, vue.h)(ant_design_vue.Card, {
|
|
115
|
+
key: row,
|
|
116
|
+
"data-adapttable-part": "loading-card",
|
|
117
|
+
class: names.loadingCard
|
|
118
|
+
}, { default: () => columns.slice(0, 4).map(line) })));
|
|
119
|
+
return (0, vue.h)("table", {
|
|
120
|
+
"data-adapttable-part": "loading-table",
|
|
121
|
+
class: names.loadingTable,
|
|
122
|
+
style: {
|
|
123
|
+
width: "100%",
|
|
124
|
+
tableLayout: "fixed"
|
|
125
|
+
},
|
|
126
|
+
"aria-hidden": "true"
|
|
127
|
+
}, [(0, vue.h)("thead", [(0, vue.h)("tr", {
|
|
128
|
+
"data-adapttable-part": "loading-header-row",
|
|
129
|
+
class: names.loadingHeaderRow
|
|
130
|
+
}, columns.map((column) => (0, vue.h)("th", {
|
|
131
|
+
key: column,
|
|
132
|
+
"data-adapttable-part": "loading-header-cell",
|
|
133
|
+
class: names.loadingHeaderCell
|
|
134
|
+
}, [line(column)])))]), (0, vue.h)("tbody", rows.map((row) => (0, vue.h)("tr", {
|
|
135
|
+
key: row,
|
|
136
|
+
"data-adapttable-part": "loading-row",
|
|
137
|
+
class: names.loadingRow
|
|
138
|
+
}, columns.map((column) => (0, vue.h)("td", {
|
|
139
|
+
key: column,
|
|
140
|
+
"data-adapttable-part": "loading-cell",
|
|
141
|
+
class: names.loadingCell
|
|
142
|
+
}, [line(column)])))))]);
|
|
143
|
+
}, [
|
|
144
|
+
"rows",
|
|
145
|
+
"columns",
|
|
146
|
+
"mobile",
|
|
147
|
+
"classNames"
|
|
148
|
+
]);
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region src/presentation/AntdDesktopTable.ts
|
|
151
|
+
/** Semantic table rendering preserves prepared native cell/row contracts. */
|
|
152
|
+
const AntdDesktopTable = /* @__PURE__ */ (0, _adapttable_vue_adapter.withProps)(function AntdDesktopTable(props) {
|
|
153
|
+
return (0, vue.h)(ant_design_vue.Card, {
|
|
154
|
+
class: "adapttable-ant-design-vue-table",
|
|
155
|
+
bodyStyle: { padding: 0 }
|
|
156
|
+
}, { default: () => (0, _adapttable_vue_adapter.DesktopTableChrome)({
|
|
157
|
+
model: props.model,
|
|
158
|
+
slots: props.controls,
|
|
159
|
+
classNames: props.classNames
|
|
160
|
+
}) });
|
|
161
|
+
}, [
|
|
162
|
+
"model",
|
|
163
|
+
"controls",
|
|
164
|
+
"classNames"
|
|
165
|
+
]);
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region src/presentation/AntdMobileCards.ts
|
|
168
|
+
function required(render, props, name) {
|
|
169
|
+
if (!render) throw new Error(`AdaptTable: Ant Design Vue requires ${name}.`);
|
|
170
|
+
return render(props);
|
|
171
|
+
}
|
|
172
|
+
/** Only presentation is composed here; prepared models own every interaction. */
|
|
173
|
+
const AntdMobileCards = /* @__PURE__ */ (0, _adapttable_vue_adapter.withProps)(function AntdMobileCards(props) {
|
|
174
|
+
const { model, controls, classNames: names = _adapttable_vue_adapter.NO_CLASS_NAMES } = props;
|
|
175
|
+
const cellContent = (cell, row) => {
|
|
176
|
+
const display = (0, _adapttable_vue_adapter.renderCell)(cell.context, controls.cell);
|
|
177
|
+
const content = [cell.render ? cell.render(display) : display, cell.addon?.(names.fillHandle)];
|
|
178
|
+
const tree = cell.tree;
|
|
179
|
+
const treeContent = tree ? (0, vue.h)("span", (0, _adapttable_vue_adapter.mergeVueAttrs)(tree.attrs, { class: names.treeCell }), [tree.toggleAttrs ? required(controls.TreeToggle, {
|
|
180
|
+
attrs: (0, _adapttable_vue_adapter.mergeVueAttrs)(tree.toggleAttrs, { class: names.treeToggle }),
|
|
181
|
+
expanded: tree.entry.expanded,
|
|
182
|
+
loading: tree.entry.loading === true
|
|
183
|
+
}, "TreeToggle") : (0, vue.h)("span", {
|
|
184
|
+
"aria-hidden": "true",
|
|
185
|
+
"data-adapttable-part": "tree-spacer",
|
|
186
|
+
class: names.treeSpacer,
|
|
187
|
+
style: {
|
|
188
|
+
display: "inline-block",
|
|
189
|
+
inlineSize: "1.5em",
|
|
190
|
+
flexShrink: 0
|
|
191
|
+
}
|
|
192
|
+
}), ...content]) : (0, vue.h)(vue.Fragment, null, content);
|
|
193
|
+
return row.detail && cell === row.cells[0] ? (0, vue.h)(vue.Fragment, null, [required(controls.RowDetailToggle, {
|
|
194
|
+
attrs: (0, _adapttable_vue_adapter.mergeVueAttrs)(row.detail.toggleAttrs, { class: [names.expandButton, names.expandToggle] }),
|
|
195
|
+
expanded: row.detail.expanded
|
|
196
|
+
}, "RowDetailToggle"), treeContent]) : treeContent;
|
|
197
|
+
};
|
|
198
|
+
const card = (row) => (0, vue.h)(require_AntdCard.AntdCard, {
|
|
199
|
+
attrs: (0, _adapttable_vue_adapter.mergeVueAttrs)(row.attrs, { class: ["adapttable-ant-design-vue-mobile-card", names.card] }),
|
|
200
|
+
key: row.key,
|
|
201
|
+
bodyStyle: { padding: "1rem" }
|
|
202
|
+
}, { default: () => [
|
|
203
|
+
row.checkboxAttrs ? controls.SelectionCheckbox({
|
|
204
|
+
...(0, _adapttable_vue_adapter.selectionCheckboxControl)(row.checkboxAttrs),
|
|
205
|
+
attrs: (0, _adapttable_vue_adapter.mergeVueAttrs)(row.checkboxAttrs, {
|
|
206
|
+
class: names.selectionCheckbox,
|
|
207
|
+
"data-adapttable-part": "checkbox"
|
|
208
|
+
}),
|
|
209
|
+
header: false
|
|
210
|
+
}) : null,
|
|
211
|
+
row.reorder?.(true),
|
|
212
|
+
controls.card ? controls.card({
|
|
213
|
+
row: row.row,
|
|
214
|
+
index: row.index,
|
|
215
|
+
selected: row.checkboxAttrs?.checked === true,
|
|
216
|
+
expanded: row.detail?.expanded === true,
|
|
217
|
+
fields: row.cells.map((cell) => ({
|
|
218
|
+
column: cell.context.column,
|
|
219
|
+
label: cell.context.column.mobileLabel ?? cell.context.column.header ?? cell.key,
|
|
220
|
+
value: cellContent(cell, row)
|
|
221
|
+
}))
|
|
222
|
+
}) : (0, vue.h)("dl", { class: names.cardFields }, row.cells.map((cell) => (0, vue.h)("div", {
|
|
223
|
+
key: cell.key,
|
|
224
|
+
class: names.cardRow,
|
|
225
|
+
"data-adapttable-part": "card-row"
|
|
226
|
+
}, [(0, vue.h)("dt", {
|
|
227
|
+
class: names.cardLabel,
|
|
228
|
+
"data-adapttable-part": "card-label"
|
|
229
|
+
}, cell.context.column.mobileLabel ?? cell.context.column.header ?? cell.key), (0, vue.h)("dd", (0, _adapttable_vue_adapter.mergeVueAttrs)(cell.attrs, {
|
|
230
|
+
class: names.cardValue,
|
|
231
|
+
"data-adapttable-part": "card-value"
|
|
232
|
+
}), [cellContent(cell, row)])]))),
|
|
233
|
+
row.detail?.expanded ? (0, vue.h)("div", {
|
|
234
|
+
"data-adapttable-part": "card-detail",
|
|
235
|
+
class: names.cardDetail
|
|
236
|
+
}, [row.detail.render()]) : null,
|
|
237
|
+
row.actionControls || row.editActions ? (0, vue.h)("div", {
|
|
238
|
+
"data-adapttable-part": "card-actions",
|
|
239
|
+
class: names.cardActions
|
|
240
|
+
}, [row.editActions?.(), row.actionControls?.length ? required(controls.RowActions, {
|
|
241
|
+
row: row.row,
|
|
242
|
+
controls: row.actionControls,
|
|
243
|
+
mobile: true
|
|
244
|
+
}, "RowActions") : null]) : null
|
|
245
|
+
] });
|
|
246
|
+
const cardView = (row) => (0, _adapttable_vue_adapter.tableRowView)(row, {
|
|
247
|
+
model,
|
|
248
|
+
controls,
|
|
249
|
+
classNames: names
|
|
250
|
+
}, () => card(row));
|
|
251
|
+
const body = model.bodySlots ? model.bodySlots.map((slot) => {
|
|
252
|
+
if (slot.kind === "row") return cardView(slot.wiring);
|
|
253
|
+
if (slot.kind === "group") return (0, vue.h)(vue.Fragment, { key: slot.key }, [required(controls.GroupRow, {
|
|
254
|
+
slot,
|
|
255
|
+
columnCount: 1,
|
|
256
|
+
mobile: true,
|
|
257
|
+
classNames: names
|
|
258
|
+
}, "GroupRow")]);
|
|
259
|
+
if (slot.kind === "virtualPad") return (0, vue.h)("div", {
|
|
260
|
+
key: slot.key,
|
|
261
|
+
"aria-hidden": "true",
|
|
262
|
+
"data-adapttable-part": "virtual-spacer",
|
|
263
|
+
class: names.virtualSpacer,
|
|
264
|
+
style: { height: `${slot.height}px` }
|
|
265
|
+
});
|
|
266
|
+
const parts = _adapttable_vue_adapter.EXTRA_ROW_PARTS[slot.extraKind];
|
|
267
|
+
return (0, vue.h)(require_AntdCard.AntdCard, {
|
|
268
|
+
attrs: (0, _adapttable_vue_adapter.mergeVueAttrs)(slot.attrs ?? {}, {
|
|
269
|
+
role: "listitem",
|
|
270
|
+
style: slot.fillStyle,
|
|
271
|
+
"data-adapttable-part": parts.row
|
|
272
|
+
}),
|
|
273
|
+
key: slot.key,
|
|
274
|
+
bodyStyle: { padding: slot.extraKind === "separator" ? "0.5rem 1rem" : "1rem" }
|
|
275
|
+
}, { default: () => (0, vue.h)("div", { "data-adapttable-part": parts.cell }, [slot.render?.()]) });
|
|
276
|
+
}) : model.rows.map(cardView);
|
|
277
|
+
return (0, vue.h)("div", (0, _adapttable_vue_adapter.mergeVueAttrs)(model.attrs, { class: names.cards }), [...body, model.summary ? (0, vue.h)(_adapttable_vue_adapter.MobileSummaryChrome, {
|
|
278
|
+
model: model.summary,
|
|
279
|
+
footer: controls.footer,
|
|
280
|
+
classNames: names
|
|
281
|
+
}) : null]);
|
|
282
|
+
}, [
|
|
283
|
+
"model",
|
|
284
|
+
"controls",
|
|
285
|
+
"classNames"
|
|
286
|
+
]);
|
|
287
|
+
//#endregion
|
|
288
|
+
//#region src/antdSurfaceControls.ts
|
|
289
|
+
/** Kit-owned renderers over the binding's optional outer assembly. */
|
|
290
|
+
function antdSurfaceControls(controls) {
|
|
291
|
+
return {
|
|
292
|
+
Search: ({ attrs, label, value, onChange, classNames }) => {
|
|
293
|
+
const inputAttrs = Object.fromEntries(Object.entries(attrs).filter(([key]) => ![
|
|
294
|
+
"value",
|
|
295
|
+
"type",
|
|
296
|
+
"onInput"
|
|
297
|
+
].includes(key)));
|
|
298
|
+
return (0, vue.h)("div", {
|
|
299
|
+
"data-adapttable-part": "search-field",
|
|
300
|
+
class: classNames.searchWrapper
|
|
301
|
+
}, [require_icon.antdIcon({
|
|
302
|
+
"aria-hidden": "true",
|
|
303
|
+
"data-adapttable-part": "search-icon",
|
|
304
|
+
class: classNames.searchIcon
|
|
305
|
+
}, (0, vue.h)("svg", {
|
|
306
|
+
viewBox: "0 0 24 24",
|
|
307
|
+
width: "1em",
|
|
308
|
+
height: "1em",
|
|
309
|
+
fill: "none",
|
|
310
|
+
stroke: "currentColor"
|
|
311
|
+
}, [(0, vue.h)("circle", {
|
|
312
|
+
cx: 10,
|
|
313
|
+
cy: 10,
|
|
314
|
+
r: 6
|
|
315
|
+
}), (0, vue.h)("path", { d: "m15 15 5 5" })])), (0, vue.h)(require_AntdInput._sfc_main, {
|
|
316
|
+
...inputAttrs,
|
|
317
|
+
type: "search",
|
|
318
|
+
value,
|
|
319
|
+
"aria-label": label,
|
|
320
|
+
onChange
|
|
321
|
+
})]);
|
|
322
|
+
},
|
|
323
|
+
Select: ({ attrs, value, options, onChange }) => (0, vue.h)(require_AntdSelect._sfc_main, {
|
|
324
|
+
...attrs,
|
|
325
|
+
value,
|
|
326
|
+
options,
|
|
327
|
+
onChange
|
|
328
|
+
}),
|
|
329
|
+
Button: ({ attrs, content }) => require_button.antdButton(attrs, content),
|
|
330
|
+
Loading: (props) => (0, vue.h)(AntdLoadingState, props),
|
|
331
|
+
Desktop: (props) => (0, vue.h)(AntdDesktopTable, {
|
|
332
|
+
...props,
|
|
333
|
+
controls
|
|
334
|
+
}),
|
|
335
|
+
Mobile: (props) => (0, vue.h)(AntdMobileCards, {
|
|
336
|
+
...props,
|
|
337
|
+
controls
|
|
338
|
+
})
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
//#endregion
|
|
342
|
+
//#region src/antdTheme.ts
|
|
343
|
+
/**
|
|
344
|
+
* Ant Design Vue draws with its own design tokens inside style rules, not CSS
|
|
345
|
+
* variables, so the table reads the tokens and exposes the few it needs to its
|
|
346
|
+
* own stylesheet as `--adapttable-ant-design-vue-*` properties. A page that
|
|
347
|
+
* switches algorithm (dark mode) or overrides a token through `ConfigProvider`
|
|
348
|
+
* therefore restyles the table's own surfaces too.
|
|
349
|
+
*/
|
|
350
|
+
function useAntdTokenStyle() {
|
|
351
|
+
const { token } = ant_design_vue.theme.useToken();
|
|
352
|
+
return (0, vue.computed)(() => ({
|
|
353
|
+
"--adapttable-ant-design-vue-primary": token.value.colorPrimary,
|
|
354
|
+
"--adapttable-ant-design-vue-primary-bg": token.value.colorPrimaryBg,
|
|
355
|
+
"--adapttable-ant-design-vue-primary-border": token.value.colorPrimaryBorder,
|
|
356
|
+
"--adapttable-ant-design-vue-danger": token.value.colorError,
|
|
357
|
+
"--adapttable-ant-design-vue-white": token.value.colorWhite,
|
|
358
|
+
"--adapttable-ant-design-vue-text": token.value.colorText,
|
|
359
|
+
"--adapttable-ant-design-vue-text-secondary": token.value.colorTextSecondary,
|
|
360
|
+
"--adapttable-ant-design-vue-text-placeholder": token.value.colorTextPlaceholder,
|
|
361
|
+
"--adapttable-ant-design-vue-bg": token.value.colorBgContainer,
|
|
362
|
+
"--adapttable-ant-design-vue-fill": token.value.colorFillAlter,
|
|
363
|
+
"--adapttable-ant-design-vue-border": token.value.colorBorder,
|
|
364
|
+
"--adapttable-ant-design-vue-border-secondary": token.value.colorBorderSecondary,
|
|
365
|
+
"--adapttable-ant-design-vue-radius": `${token.value.borderRadius}px`,
|
|
366
|
+
"--adapttable-ant-design-vue-radius-sm": `${token.value.borderRadiusSM}px`,
|
|
367
|
+
"--adapttable-ant-design-vue-font-family": token.value.fontFamily,
|
|
368
|
+
"--adapttable-ant-design-vue-font-size": `${token.value.fontSize}px`,
|
|
369
|
+
"--adapttable-ant-design-vue-font-size-sm": `${token.value.fontSizeSM}px`,
|
|
370
|
+
"--adapttable-ant-design-vue-control-height": `${token.value.controlHeight}px`,
|
|
371
|
+
"--adapttable-ant-design-vue-shadow": token.value.boxShadowTertiary
|
|
372
|
+
}));
|
|
373
|
+
}
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region src/libraryEnvironment.ts
|
|
376
|
+
/**
|
|
377
|
+
* Ant Design Vue keeps its `ConfigProvider` settings behind a private
|
|
378
|
+
* injection key, so the table cannot read a provider's locale or size without
|
|
379
|
+
* importing that internal. The table keeps the page direction, its own labels
|
|
380
|
+
* and its own density; pass `locale`, `dir` and `density` to `DataTable` to
|
|
381
|
+
* set them. Its colors, radius and fonts do follow the provider, through
|
|
382
|
+
* `theme.useToken()`.
|
|
383
|
+
*/
|
|
384
|
+
function useAntDesignVueLibrary() {
|
|
385
|
+
return (0, _adapttable_vue_adapter.useLocaleLabels)((0, vue.computed)(() => ({})));
|
|
386
|
+
}
|
|
387
|
+
//#endregion
|
|
388
|
+
//#region src/DataTable.vue
|
|
389
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
390
|
+
inheritAttrs: false,
|
|
391
|
+
__name: "DataTable",
|
|
392
|
+
props: {
|
|
393
|
+
assistant: {},
|
|
394
|
+
data: {},
|
|
395
|
+
source: {},
|
|
396
|
+
onViewChange: { type: Function },
|
|
397
|
+
columns: {},
|
|
398
|
+
rowKey: { type: Function },
|
|
399
|
+
features: {},
|
|
400
|
+
summaryRow: { type: Function },
|
|
401
|
+
tableLabel: {},
|
|
402
|
+
labels: {},
|
|
403
|
+
dir: {},
|
|
404
|
+
locale: {},
|
|
405
|
+
searchable: {
|
|
406
|
+
type: Boolean,
|
|
407
|
+
default: true
|
|
408
|
+
},
|
|
409
|
+
searchDebounceMs: {},
|
|
410
|
+
stickyHeader: { type: Boolean },
|
|
411
|
+
stickyTop: {},
|
|
412
|
+
searchPlaceholder: {},
|
|
413
|
+
forceMobile: {
|
|
414
|
+
type: Boolean,
|
|
415
|
+
default: () => void 0
|
|
416
|
+
},
|
|
417
|
+
mobileBreakpoint: {},
|
|
418
|
+
maxHeight: {},
|
|
419
|
+
paginationMode: {},
|
|
420
|
+
defaults: {},
|
|
421
|
+
urlSync: {
|
|
422
|
+
type: Boolean,
|
|
423
|
+
default: () => void 0
|
|
424
|
+
},
|
|
425
|
+
urlKey: {},
|
|
426
|
+
urlAdapter: {},
|
|
427
|
+
getSearchText: { type: Function },
|
|
428
|
+
columnLayout: {},
|
|
429
|
+
defaultColumnLayout: {},
|
|
430
|
+
multiSort: {
|
|
431
|
+
type: Boolean,
|
|
432
|
+
default: () => void 0
|
|
433
|
+
},
|
|
434
|
+
fitColumns: {
|
|
435
|
+
type: Boolean,
|
|
436
|
+
default: () => void 0
|
|
437
|
+
},
|
|
438
|
+
columnWidths: {},
|
|
439
|
+
collapsibleColumnGroups: {
|
|
440
|
+
type: Boolean,
|
|
441
|
+
default: () => void 0
|
|
442
|
+
},
|
|
443
|
+
skeletonRows: {},
|
|
444
|
+
isLoading: {
|
|
445
|
+
type: Boolean,
|
|
446
|
+
default: () => void 0
|
|
447
|
+
},
|
|
448
|
+
isFetching: {
|
|
449
|
+
type: Boolean,
|
|
450
|
+
default: () => void 0
|
|
451
|
+
},
|
|
452
|
+
error: {},
|
|
453
|
+
refetch: { type: Function },
|
|
454
|
+
density: {},
|
|
455
|
+
animate: { type: Boolean },
|
|
456
|
+
defaultDensity: {},
|
|
457
|
+
onDensityChange: { type: Function },
|
|
458
|
+
confirm: { type: Function },
|
|
459
|
+
onRowClick: { type: Function },
|
|
460
|
+
isCellFlashing: { type: Function },
|
|
461
|
+
rowActionsLayout: {},
|
|
462
|
+
classNames: {}
|
|
463
|
+
},
|
|
464
|
+
emits: ["update:columnLayout", "update:density"],
|
|
465
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
466
|
+
const props = (0, vue.createPropsRestProxy)(__props, [
|
|
467
|
+
"searchable",
|
|
468
|
+
"forceMobile",
|
|
469
|
+
"urlSync",
|
|
470
|
+
"multiSort",
|
|
471
|
+
"fitColumns",
|
|
472
|
+
"collapsibleColumnGroups",
|
|
473
|
+
"isLoading",
|
|
474
|
+
"isFetching"
|
|
475
|
+
]);
|
|
476
|
+
const emit = __emit;
|
|
477
|
+
const slots = (0, vue.useSlots)();
|
|
478
|
+
const cardSlot = (0, vue.shallowRef)(slots.card);
|
|
479
|
+
const footerSlot = (0, vue.shallowRef)(slots.footer);
|
|
480
|
+
(0, vue.onBeforeUpdate)(() => {
|
|
481
|
+
cardSlot.value = slots.card;
|
|
482
|
+
footerSlot.value = slots.footer;
|
|
483
|
+
});
|
|
484
|
+
const rootElement = (0, vue.shallowRef)(null);
|
|
485
|
+
const scrollElement = (0, vue.shallowRef)(null);
|
|
486
|
+
const appContext = (0, vue.getCurrentInstance)()?.appContext;
|
|
487
|
+
const kit = useAntDesignVueLibrary();
|
|
488
|
+
const tokenStyle = useAntdTokenStyle();
|
|
489
|
+
const confirmRequest = useAntdConfirm(() => ({
|
|
490
|
+
active: shell.active.value,
|
|
491
|
+
appContext,
|
|
492
|
+
container: rootElement.value ?? void 0,
|
|
493
|
+
dir: props.dir ?? kit.value.dir
|
|
494
|
+
}));
|
|
495
|
+
const shell = (0, _adapttable_vue_adapter.useDataTableShell)(() => (0, _adapttable_vue_adapter.withKitEnvironment)({
|
|
496
|
+
...props,
|
|
497
|
+
searchable: __props.searchable,
|
|
498
|
+
forceMobile: __props.forceMobile,
|
|
499
|
+
urlSync: __props.urlSync,
|
|
500
|
+
multiSort: __props.multiSort,
|
|
501
|
+
fitColumns: __props.fitColumns,
|
|
502
|
+
collapsibleColumnGroups: __props.collapsibleColumnGroups,
|
|
503
|
+
isLoading: __props.isLoading,
|
|
504
|
+
isFetching: __props.isFetching,
|
|
505
|
+
footer: footerSlot.value,
|
|
506
|
+
confirm: props.confirm ?? confirmRequest,
|
|
507
|
+
onDensityChange: (density) => {
|
|
508
|
+
props.onDensityChange?.(density);
|
|
509
|
+
emit("update:density", density);
|
|
510
|
+
},
|
|
511
|
+
onColumnLayoutChange: (layout) => emit("update:columnLayout", layout)
|
|
512
|
+
}, kit.value));
|
|
513
|
+
const { table } = shell;
|
|
514
|
+
const names = (0, vue.computed)(() => ({
|
|
515
|
+
...props.classNames,
|
|
516
|
+
root: ["adapttable-ant-design-vue", props.classNames?.root].filter(Boolean).join(" ")
|
|
517
|
+
}));
|
|
518
|
+
(0, _adapttable_vue_adapter.provideDataTableClassNames)(() => names.value);
|
|
519
|
+
function controls() {
|
|
520
|
+
return {
|
|
521
|
+
SortButton: ({ attrs, content }) => require_button.antdButton(attrs, content),
|
|
522
|
+
SelectionCheckbox: require_checkbox.antdSelectionCheckbox,
|
|
523
|
+
ColumnGroupToggle: antdColumnGroupToggle,
|
|
524
|
+
ResizeHandle: ({ attrs }) => require_button.antdButton(attrs, null),
|
|
525
|
+
RowActions: ({ controls: actions }) => {
|
|
526
|
+
if (!shell.slotFills.value.get(require_rowActionsSlot.ROW_ACTIONS_CONTROL.id)?.length) throw new Error("AdaptTable: Ant Design Vue row actions require rowActions() or rowPinning() from @adapttable/ant-design-vue.");
|
|
527
|
+
return (0, _adapttable_vue_adapter.renderFeatureSlot)(require_rowActionsSlot.rowActionsControlKey(), shell.slotFills.value, {
|
|
528
|
+
controls: actions,
|
|
529
|
+
layout: props.rowActionsLayout,
|
|
530
|
+
label: table.labels.value.rowActionsMenu,
|
|
531
|
+
classNames: names.value
|
|
532
|
+
});
|
|
533
|
+
},
|
|
534
|
+
...antdHierarchyControls(),
|
|
535
|
+
GroupRow: (props) => {
|
|
536
|
+
if (!shell.slotFills.value.get(_adapttable_vue_adapter.GROUP_ROW.id)?.length) throw new Error("AdaptTable: Ant Design Vue grouping rows require grouping() from @adapttable/ant-design-vue/grouping.");
|
|
537
|
+
return (0, _adapttable_vue_adapter.renderFeatureSlot)(_adapttable_vue_adapter.GROUP_ROW, shell.slotFills.value, props);
|
|
538
|
+
},
|
|
539
|
+
card: cardSlot.value,
|
|
540
|
+
cell: slots.cell,
|
|
541
|
+
header: slots.header,
|
|
542
|
+
headerActions: slots.headerActions,
|
|
543
|
+
footer: slots.footer
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
/** One controls object while the host's slots stay the same. */
|
|
547
|
+
const tableControls = (0, _adapttable_vue_adapter.keepTableControls)(controls, (kept) => [
|
|
548
|
+
kept.card,
|
|
549
|
+
kept.cell,
|
|
550
|
+
kept.header,
|
|
551
|
+
kept.headerActions,
|
|
552
|
+
kept.footer
|
|
553
|
+
]);
|
|
554
|
+
const surface = {
|
|
555
|
+
rootElement: () => rootElement.value,
|
|
556
|
+
scrollElement: () => scrollElement.value
|
|
557
|
+
};
|
|
558
|
+
(0, vue.watch)([rootElement, scrollElement], () => shell.setSurface(surface), {
|
|
559
|
+
immediate: true,
|
|
560
|
+
flush: "sync"
|
|
561
|
+
});
|
|
562
|
+
(0, vue.onBeforeUnmount)(() => {
|
|
563
|
+
shell.setSurface(null);
|
|
564
|
+
});
|
|
565
|
+
__expose(shell.handle);
|
|
566
|
+
function setRootElement(element) {
|
|
567
|
+
rootElement.value = element;
|
|
568
|
+
}
|
|
569
|
+
function setScrollElement(element) {
|
|
570
|
+
scrollElement.value = element;
|
|
571
|
+
}
|
|
572
|
+
return (_ctx, _cache) => {
|
|
573
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(_adapttable_vue_adapter.DataTableSurfaceChrome), (0, vue.mergeProps)(_ctx.$attrs, {
|
|
574
|
+
style: (0, vue.unref)(tokenStyle),
|
|
575
|
+
model: (0, vue.unref)(shell),
|
|
576
|
+
options: {
|
|
577
|
+
...props,
|
|
578
|
+
searchable: __props.searchable,
|
|
579
|
+
classNames: names.value
|
|
580
|
+
},
|
|
581
|
+
slots: (0, vue.unref)(antdSurfaceControls)((0, vue.unref)(tableControls)()),
|
|
582
|
+
content: slots,
|
|
583
|
+
"root-ref": setRootElement,
|
|
584
|
+
"scroll-ref": setScrollElement
|
|
585
|
+
}), null, 16, [
|
|
586
|
+
"style",
|
|
587
|
+
"model",
|
|
588
|
+
"options",
|
|
589
|
+
"slots"
|
|
590
|
+
]);
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
//#endregion
|
|
595
|
+
exports.DataTable = _sfc_main;
|
|
596
|
+
exports.FilterHeaderControl = require_AntdFilterHeaderRow._sfc_main$1;
|
|
597
|
+
exports.FilterHeaderRow = require_AntdFilterHeaderRow._sfc_main;
|
|
598
|
+
|
|
599
|
+
//# sourceMappingURL=index.cjs.map
|