@toolbox-web/grid 1.24.1 → 1.25.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/all.d.ts +0 -1
- package/all.js +2 -2
- package/all.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/lib/core/constants.d.ts +0 -1
- package/lib/core/grid.d.ts +145 -33
- package/lib/core/internal/aggregators.d.ts +0 -1
- package/lib/core/internal/aria.d.ts +8 -1
- package/lib/core/internal/columns.d.ts +3 -4
- package/lib/core/internal/config-manager.d.ts +2 -54
- package/lib/core/internal/dom-builder.d.ts +0 -1
- package/lib/core/internal/event-delegation.d.ts +3 -4
- package/lib/core/internal/feature-hook.d.ts +0 -1
- package/lib/core/internal/focus-manager.d.ts +49 -0
- package/lib/core/internal/header.d.ts +2 -3
- package/lib/core/internal/idle-scheduler.d.ts +0 -1
- package/lib/core/internal/inference.d.ts +0 -1
- package/lib/core/internal/keyboard.d.ts +3 -4
- package/lib/core/internal/loading.d.ts +0 -1
- package/lib/core/internal/render-scheduler.d.ts +3 -66
- package/lib/core/internal/resize.d.ts +2 -3
- package/lib/core/internal/row-animation.d.ts +0 -1
- package/lib/core/internal/row-manager.d.ts +31 -0
- package/lib/core/internal/rows.d.ts +4 -5
- package/lib/core/internal/sanitize.d.ts +0 -1
- package/lib/core/internal/shell.d.ts +7 -25
- package/lib/core/internal/sorting.d.ts +3 -4
- package/lib/core/internal/style-injector.d.ts +0 -1
- package/lib/core/internal/touch-scroll.d.ts +31 -12
- package/lib/core/internal/utils.d.ts +8 -1
- package/lib/core/internal/validate-config.d.ts +4 -5
- package/lib/core/internal/virtualization-manager.d.ts +48 -0
- package/lib/core/internal/virtualization.d.ts +0 -1
- package/lib/core/plugin/base-plugin.d.ts +2 -3
- package/lib/core/plugin/expander-column.d.ts +0 -1
- package/lib/core/plugin/index.d.ts +0 -1
- package/lib/core/plugin/plugin-manager.d.ts +2 -1
- package/lib/core/plugin/types.d.ts +7 -2
- package/lib/core/styles/index.d.ts +0 -1
- package/lib/core/types.d.ts +364 -54
- package/lib/features/clipboard.d.ts +0 -1
- package/lib/features/column-virtualization.d.ts +0 -1
- package/lib/features/context-menu.d.ts +0 -1
- package/lib/features/editing.d.ts +0 -1
- package/lib/features/export.d.ts +0 -1
- package/lib/features/filtering.d.ts +0 -1
- package/lib/features/grouping-columns.d.ts +0 -1
- package/lib/features/grouping-rows.d.ts +0 -1
- package/lib/features/master-detail.d.ts +0 -1
- package/lib/features/multi-sort.d.ts +1 -2
- package/lib/features/multi-sort.js.map +1 -1
- package/lib/features/pinned-columns.d.ts +0 -1
- package/lib/features/pinned-rows.d.ts +0 -1
- package/lib/features/pivot.d.ts +0 -1
- package/lib/features/print.d.ts +0 -1
- package/lib/features/registry.d.ts +0 -1
- package/lib/features/reorder-columns.d.ts +1 -2
- package/lib/features/reorder-columns.js.map +1 -1
- package/lib/features/reorder-rows.d.ts +1 -2
- package/lib/features/reorder-rows.js.map +1 -1
- package/lib/features/responsive.d.ts +0 -1
- package/lib/features/selection.d.ts +0 -1
- package/lib/features/server-side.d.ts +0 -1
- package/lib/features/tree.d.ts +0 -1
- package/lib/features/undo-redo.d.ts +0 -1
- package/lib/features/visibility.d.ts +0 -1
- package/lib/plugins/clipboard/ClipboardPlugin.d.ts +0 -1
- package/lib/plugins/clipboard/copy.d.ts +0 -1
- package/lib/plugins/clipboard/index.d.ts +0 -1
- package/lib/plugins/clipboard/index.js +1 -1
- package/lib/plugins/clipboard/index.js.map +1 -1
- package/lib/plugins/clipboard/paste.d.ts +0 -1
- package/lib/plugins/clipboard/types.d.ts +6 -1
- package/lib/plugins/column-virtualization/ColumnVirtualizationPlugin.d.ts +0 -1
- package/lib/plugins/column-virtualization/column-virtualization.d.ts +0 -1
- package/lib/plugins/column-virtualization/index.d.ts +0 -1
- package/lib/plugins/column-virtualization/index.js +1 -1
- package/lib/plugins/column-virtualization/index.js.map +1 -1
- package/lib/plugins/column-virtualization/types.d.ts +0 -1
- package/lib/plugins/context-menu/ContextMenuPlugin.d.ts +16 -1
- package/lib/plugins/context-menu/index.d.ts +1 -2
- package/lib/plugins/context-menu/index.js +1 -1
- package/lib/plugins/context-menu/index.js.map +1 -1
- package/lib/plugins/context-menu/menu.d.ts +14 -1
- package/lib/plugins/context-menu/types.d.ts +13 -3
- package/lib/plugins/editing/EditingPlugin.d.ts +4 -6
- package/lib/plugins/editing/editors.d.ts +0 -1
- package/lib/plugins/editing/index.d.ts +0 -1
- package/lib/plugins/editing/index.js +1 -1
- package/lib/plugins/editing/index.js.map +1 -1
- package/lib/plugins/editing/internal/cell-validation.d.ts +0 -1
- package/lib/plugins/editing/internal/dirty-tracking-manager.d.ts +0 -1
- package/lib/plugins/editing/internal/dirty-tracking.d.ts +2 -2
- package/lib/plugins/editing/internal/editor-injection.d.ts +3 -4
- package/lib/plugins/editing/internal/helpers.d.ts +0 -1
- package/lib/plugins/editing/types.d.ts +15 -14
- package/lib/plugins/export/ExportPlugin.d.ts +0 -1
- package/lib/plugins/export/csv.d.ts +0 -1
- package/lib/plugins/export/excel.d.ts +0 -1
- package/lib/plugins/export/index.d.ts +0 -1
- package/lib/plugins/export/index.js +1 -1
- package/lib/plugins/export/index.js.map +1 -1
- package/lib/plugins/export/types.d.ts +4 -1
- package/lib/plugins/filtering/FilteringPlugin.d.ts +0 -1
- package/lib/plugins/filtering/filter-model.d.ts +0 -1
- package/lib/plugins/filtering/filter-panel-date.d.ts +0 -1
- package/lib/plugins/filtering/filter-panel-default.d.ts +0 -1
- package/lib/plugins/filtering/filter-panel-number.d.ts +0 -1
- package/lib/plugins/filtering/index.d.ts +0 -1
- package/lib/plugins/filtering/index.js +1 -1
- package/lib/plugins/filtering/index.js.map +1 -1
- package/lib/plugins/filtering/types.d.ts +4 -1
- package/lib/plugins/grouping-columns/GroupingColumnsPlugin.d.ts +0 -1
- package/lib/plugins/grouping-columns/grouping-columns.d.ts +2 -3
- package/lib/plugins/grouping-columns/index.d.ts +1 -2
- package/lib/plugins/grouping-columns/index.js +1 -1
- package/lib/plugins/grouping-columns/index.js.map +1 -1
- package/lib/plugins/grouping-columns/types.d.ts +33 -7
- package/lib/plugins/grouping-rows/GroupingRowsPlugin.d.ts +0 -1
- package/lib/plugins/grouping-rows/grouping-rows.d.ts +0 -1
- package/lib/plugins/grouping-rows/index.d.ts +0 -1
- package/lib/plugins/grouping-rows/index.js +1 -1
- package/lib/plugins/grouping-rows/index.js.map +1 -1
- package/lib/plugins/grouping-rows/types.d.ts +4 -1
- package/lib/plugins/master-detail/MasterDetailPlugin.d.ts +0 -1
- package/lib/plugins/master-detail/index.d.ts +0 -1
- package/lib/plugins/master-detail/index.js +1 -1
- package/lib/plugins/master-detail/index.js.map +1 -1
- package/lib/plugins/master-detail/master-detail.d.ts +0 -1
- package/lib/plugins/master-detail/types.d.ts +4 -1
- package/lib/plugins/multi-sort/MultiSortPlugin.d.ts +3 -3
- package/lib/plugins/multi-sort/index.d.ts +1 -2
- package/lib/plugins/multi-sort/index.js +1 -1
- package/lib/plugins/multi-sort/index.js.map +1 -1
- package/lib/plugins/multi-sort/multi-sort.d.ts +0 -1
- package/lib/plugins/multi-sort/types.d.ts +5 -1
- package/lib/plugins/pinned-columns/PinnedColumnsPlugin.d.ts +0 -1
- package/lib/plugins/pinned-columns/index.d.ts +0 -1
- package/lib/plugins/pinned-columns/index.js +1 -1
- package/lib/plugins/pinned-columns/index.js.map +1 -1
- package/lib/plugins/pinned-columns/pinned-columns.d.ts +0 -1
- package/lib/plugins/pinned-columns/types.d.ts +0 -1
- package/lib/plugins/pinned-rows/PinnedRowsPlugin.d.ts +0 -1
- package/lib/plugins/pinned-rows/index.d.ts +0 -1
- package/lib/plugins/pinned-rows/index.js +1 -1
- package/lib/plugins/pinned-rows/index.js.map +1 -1
- package/lib/plugins/pinned-rows/pinned-rows.d.ts +0 -1
- package/lib/plugins/pinned-rows/types.d.ts +0 -1
- package/lib/plugins/pivot/PivotPlugin.d.ts +0 -1
- package/lib/plugins/pivot/index.d.ts +0 -1
- package/lib/plugins/pivot/index.js +1 -1
- package/lib/plugins/pivot/index.js.map +1 -1
- package/lib/plugins/pivot/pivot-engine.d.ts +0 -1
- package/lib/plugins/pivot/pivot-model.d.ts +0 -1
- package/lib/plugins/pivot/pivot-panel.d.ts +0 -1
- package/lib/plugins/pivot/pivot-rows.d.ts +0 -1
- package/lib/plugins/pivot/types.d.ts +0 -1
- package/lib/plugins/print/PrintPlugin.d.ts +0 -1
- package/lib/plugins/print/index.d.ts +0 -1
- package/lib/plugins/print/index.js +1 -1
- package/lib/plugins/print/index.js.map +1 -1
- package/lib/plugins/print/print-isolated.d.ts +0 -1
- package/lib/plugins/print/types.d.ts +6 -1
- package/lib/plugins/reorder-columns/ReorderPlugin.d.ts +5 -5
- package/lib/plugins/reorder-columns/column-drag.d.ts +3 -2
- package/lib/plugins/reorder-columns/index.d.ts +0 -1
- package/lib/plugins/reorder-columns/index.js +1 -1
- package/lib/plugins/reorder-columns/index.js.map +1 -1
- package/lib/plugins/reorder-columns/types.d.ts +4 -1
- package/lib/plugins/reorder-rows/RowReorderPlugin.d.ts +3 -3
- package/lib/plugins/reorder-rows/index.d.ts +0 -1
- package/lib/plugins/reorder-rows/index.js +1 -1
- package/lib/plugins/reorder-rows/index.js.map +1 -1
- package/lib/plugins/reorder-rows/types.d.ts +4 -1
- package/lib/plugins/responsive/ResponsivePlugin.d.ts +0 -1
- package/lib/plugins/responsive/index.d.ts +0 -1
- package/lib/plugins/responsive/index.js +1 -1
- package/lib/plugins/responsive/index.js.map +1 -1
- package/lib/plugins/responsive/types.d.ts +4 -1
- package/lib/plugins/selection/SelectionPlugin.d.ts +1 -3
- package/lib/plugins/selection/index.d.ts +0 -1
- package/lib/plugins/selection/index.js +1 -1
- package/lib/plugins/selection/index.js.map +1 -1
- package/lib/plugins/selection/range-selection.d.ts +0 -1
- package/lib/plugins/selection/row-selection.d.ts +0 -1
- package/lib/plugins/selection/types.d.ts +4 -1
- package/lib/plugins/server-side/ServerSidePlugin.d.ts +0 -1
- package/lib/plugins/server-side/cache.d.ts +0 -1
- package/lib/plugins/server-side/datasource.d.ts +0 -1
- package/lib/plugins/server-side/index.d.ts +0 -1
- package/lib/plugins/server-side/index.js +1 -1
- package/lib/plugins/server-side/index.js.map +1 -1
- package/lib/plugins/server-side/types.d.ts +0 -1
- package/lib/plugins/shared/data-collection.d.ts +0 -1
- package/lib/plugins/tree/TreePlugin.d.ts +0 -1
- package/lib/plugins/tree/index.d.ts +0 -1
- package/lib/plugins/tree/index.js +1 -1
- package/lib/plugins/tree/index.js.map +1 -1
- package/lib/plugins/tree/tree-data.d.ts +0 -1
- package/lib/plugins/tree/tree-detect.d.ts +0 -1
- package/lib/plugins/tree/types.d.ts +4 -1
- package/lib/plugins/undo-redo/UndoRedoPlugin.d.ts +1 -2
- package/lib/plugins/undo-redo/history.d.ts +0 -1
- package/lib/plugins/undo-redo/index.d.ts +0 -1
- package/lib/plugins/undo-redo/index.js +1 -1
- package/lib/plugins/undo-redo/index.js.map +1 -1
- package/lib/plugins/undo-redo/types.d.ts +6 -1
- package/lib/plugins/visibility/VisibilityPlugin.d.ts +0 -1
- package/lib/plugins/visibility/index.d.ts +0 -1
- package/lib/plugins/visibility/index.js +1 -1
- package/lib/plugins/visibility/index.js.map +1 -1
- package/lib/plugins/visibility/types.d.ts +0 -1
- package/lib/plugins/visibility/visibility.d.ts +0 -1
- package/package.json +1 -1
- package/public.d.ts +31 -12
- package/umd/grid.all.umd.js +1 -1
- package/umd/grid.all.umd.js.map +1 -1
- package/umd/grid.umd.js +1 -1
- package/umd/grid.umd.js.map +1 -1
- package/umd/plugins/clipboard.umd.js +1 -1
- package/umd/plugins/clipboard.umd.js.map +1 -1
- package/umd/plugins/column-virtualization.umd.js +1 -1
- package/umd/plugins/column-virtualization.umd.js.map +1 -1
- package/umd/plugins/context-menu.umd.js +1 -1
- package/umd/plugins/context-menu.umd.js.map +1 -1
- package/umd/plugins/editing.umd.js +1 -1
- package/umd/plugins/editing.umd.js.map +1 -1
- package/umd/plugins/filtering.umd.js +1 -1
- package/umd/plugins/filtering.umd.js.map +1 -1
- package/umd/plugins/grouping-columns.umd.js +1 -1
- package/umd/plugins/grouping-columns.umd.js.map +1 -1
- package/umd/plugins/master-detail.umd.js +1 -1
- package/umd/plugins/master-detail.umd.js.map +1 -1
- package/umd/plugins/multi-sort.umd.js +1 -1
- package/umd/plugins/multi-sort.umd.js.map +1 -1
- package/umd/plugins/pinned-columns.umd.js +1 -1
- package/umd/plugins/pinned-columns.umd.js.map +1 -1
- package/umd/plugins/pinned-rows.umd.js +1 -1
- package/umd/plugins/pinned-rows.umd.js.map +1 -1
- package/umd/plugins/print.umd.js +1 -1
- package/umd/plugins/print.umd.js.map +1 -1
- package/umd/plugins/reorder-columns.umd.js +1 -1
- package/umd/plugins/reorder-columns.umd.js.map +1 -1
- package/umd/plugins/reorder-rows.umd.js +1 -1
- package/umd/plugins/reorder-rows.umd.js.map +1 -1
- package/umd/plugins/responsive.umd.js +1 -1
- package/umd/plugins/responsive.umd.js.map +1 -1
- package/umd/plugins/selection.umd.js +1 -1
- package/umd/plugins/selection.umd.js.map +1 -1
- package/umd/plugins/server-side.umd.js.map +1 -1
- package/umd/plugins/tree.umd.js +1 -1
- package/umd/plugins/tree.umd.js.map +1 -1
- package/umd/plugins/undo-redo.umd.js.map +1 -1
- package/umd/plugins/visibility.umd.js +1 -1
- package/umd/plugins/visibility.umd.js.map +1 -1
- package/all.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/lib/core/constants.d.ts.map +0 -1
- package/lib/core/grid.d.ts.map +0 -1
- package/lib/core/internal/aggregators.d.ts.map +0 -1
- package/lib/core/internal/aria.d.ts.map +0 -1
- package/lib/core/internal/columns.d.ts.map +0 -1
- package/lib/core/internal/config-manager.d.ts.map +0 -1
- package/lib/core/internal/dom-builder.d.ts.map +0 -1
- package/lib/core/internal/event-delegation.d.ts.map +0 -1
- package/lib/core/internal/feature-hook.d.ts.map +0 -1
- package/lib/core/internal/header.d.ts.map +0 -1
- package/lib/core/internal/idle-scheduler.d.ts.map +0 -1
- package/lib/core/internal/inference.d.ts.map +0 -1
- package/lib/core/internal/keyboard.d.ts.map +0 -1
- package/lib/core/internal/loading.d.ts.map +0 -1
- package/lib/core/internal/render-scheduler.d.ts.map +0 -1
- package/lib/core/internal/resize.d.ts.map +0 -1
- package/lib/core/internal/row-animation.d.ts.map +0 -1
- package/lib/core/internal/rows.d.ts.map +0 -1
- package/lib/core/internal/sanitize.d.ts.map +0 -1
- package/lib/core/internal/shell.d.ts.map +0 -1
- package/lib/core/internal/sorting.d.ts.map +0 -1
- package/lib/core/internal/style-injector.d.ts.map +0 -1
- package/lib/core/internal/touch-scroll.d.ts.map +0 -1
- package/lib/core/internal/utils.d.ts.map +0 -1
- package/lib/core/internal/validate-config.d.ts.map +0 -1
- package/lib/core/internal/virtualization.d.ts.map +0 -1
- package/lib/core/plugin/base-plugin.d.ts.map +0 -1
- package/lib/core/plugin/expander-column.d.ts.map +0 -1
- package/lib/core/plugin/index.d.ts.map +0 -1
- package/lib/core/plugin/plugin-manager.d.ts.map +0 -1
- package/lib/core/plugin/types.d.ts.map +0 -1
- package/lib/core/styles/index.d.ts.map +0 -1
- package/lib/core/types.d.ts.map +0 -1
- package/lib/features/clipboard.d.ts.map +0 -1
- package/lib/features/column-virtualization.d.ts.map +0 -1
- package/lib/features/context-menu.d.ts.map +0 -1
- package/lib/features/editing.d.ts.map +0 -1
- package/lib/features/export.d.ts.map +0 -1
- package/lib/features/filtering.d.ts.map +0 -1
- package/lib/features/grouping-columns.d.ts.map +0 -1
- package/lib/features/grouping-rows.d.ts.map +0 -1
- package/lib/features/magic-string.es-CkyDP9Ir.mjs.map +0 -1
- package/lib/features/master-detail.d.ts.map +0 -1
- package/lib/features/multi-sort.d.ts.map +0 -1
- package/lib/features/pinned-columns.d.ts.map +0 -1
- package/lib/features/pinned-rows.d.ts.map +0 -1
- package/lib/features/pivot.d.ts.map +0 -1
- package/lib/features/print.d.ts.map +0 -1
- package/lib/features/registry.d.ts.map +0 -1
- package/lib/features/registry.spec.js +0 -5
- package/lib/features/registry.spec.js.map +0 -1
- package/lib/features/reorder-columns.d.ts.map +0 -1
- package/lib/features/reorder-rows.d.ts.map +0 -1
- package/lib/features/responsive.d.ts.map +0 -1
- package/lib/features/selection.d.ts.map +0 -1
- package/lib/features/server-side.d.ts.map +0 -1
- package/lib/features/tree.d.ts.map +0 -1
- package/lib/features/undo-redo.d.ts.map +0 -1
- package/lib/features/visibility.d.ts.map +0 -1
- package/lib/plugins/clipboard/ClipboardPlugin.d.ts.map +0 -1
- package/lib/plugins/clipboard/copy.d.ts.map +0 -1
- package/lib/plugins/clipboard/index.d.ts.map +0 -1
- package/lib/plugins/clipboard/paste.d.ts.map +0 -1
- package/lib/plugins/clipboard/types.d.ts.map +0 -1
- package/lib/plugins/column-virtualization/ColumnVirtualizationPlugin.d.ts.map +0 -1
- package/lib/plugins/column-virtualization/column-virtualization.d.ts.map +0 -1
- package/lib/plugins/column-virtualization/index.d.ts.map +0 -1
- package/lib/plugins/column-virtualization/types.d.ts.map +0 -1
- package/lib/plugins/context-menu/ContextMenuPlugin.d.ts.map +0 -1
- package/lib/plugins/context-menu/index.d.ts.map +0 -1
- package/lib/plugins/context-menu/menu.d.ts.map +0 -1
- package/lib/plugins/context-menu/types.d.ts.map +0 -1
- package/lib/plugins/editing/EditingPlugin.d.ts.map +0 -1
- package/lib/plugins/editing/editors.d.ts.map +0 -1
- package/lib/plugins/editing/index.d.ts.map +0 -1
- package/lib/plugins/editing/internal/cell-validation.d.ts.map +0 -1
- package/lib/plugins/editing/internal/dirty-tracking-manager.d.ts.map +0 -1
- package/lib/plugins/editing/internal/dirty-tracking.d.ts.map +0 -1
- package/lib/plugins/editing/internal/editor-injection.d.ts.map +0 -1
- package/lib/plugins/editing/internal/helpers.d.ts.map +0 -1
- package/lib/plugins/editing/types.d.ts.map +0 -1
- package/lib/plugins/export/ExportPlugin.d.ts.map +0 -1
- package/lib/plugins/export/csv.d.ts.map +0 -1
- package/lib/plugins/export/excel.d.ts.map +0 -1
- package/lib/plugins/export/index.d.ts.map +0 -1
- package/lib/plugins/export/types.d.ts.map +0 -1
- package/lib/plugins/filtering/FilteringPlugin.d.ts.map +0 -1
- package/lib/plugins/filtering/filter-model.d.ts.map +0 -1
- package/lib/plugins/filtering/filter-panel-date.d.ts.map +0 -1
- package/lib/plugins/filtering/filter-panel-default.d.ts.map +0 -1
- package/lib/plugins/filtering/filter-panel-number.d.ts.map +0 -1
- package/lib/plugins/filtering/index.d.ts.map +0 -1
- package/lib/plugins/filtering/types.d.ts.map +0 -1
- package/lib/plugins/grouping-columns/GroupingColumnsPlugin.d.ts.map +0 -1
- package/lib/plugins/grouping-columns/grouping-columns.d.ts.map +0 -1
- package/lib/plugins/grouping-columns/index.d.ts.map +0 -1
- package/lib/plugins/grouping-columns/types.d.ts.map +0 -1
- package/lib/plugins/grouping-rows/GroupingRowsPlugin.d.ts.map +0 -1
- package/lib/plugins/grouping-rows/grouping-rows.d.ts.map +0 -1
- package/lib/plugins/grouping-rows/index.d.ts.map +0 -1
- package/lib/plugins/grouping-rows/types.d.ts.map +0 -1
- package/lib/plugins/master-detail/MasterDetailPlugin.d.ts.map +0 -1
- package/lib/plugins/master-detail/index.d.ts.map +0 -1
- package/lib/plugins/master-detail/master-detail.d.ts.map +0 -1
- package/lib/plugins/master-detail/types.d.ts.map +0 -1
- package/lib/plugins/multi-sort/MultiSortPlugin.d.ts.map +0 -1
- package/lib/plugins/multi-sort/index.d.ts.map +0 -1
- package/lib/plugins/multi-sort/multi-sort.d.ts.map +0 -1
- package/lib/plugins/multi-sort/types.d.ts.map +0 -1
- package/lib/plugins/pinned-columns/PinnedColumnsPlugin.d.ts.map +0 -1
- package/lib/plugins/pinned-columns/index.d.ts.map +0 -1
- package/lib/plugins/pinned-columns/pinned-columns.d.ts.map +0 -1
- package/lib/plugins/pinned-columns/types.d.ts.map +0 -1
- package/lib/plugins/pinned-rows/PinnedRowsPlugin.d.ts.map +0 -1
- package/lib/plugins/pinned-rows/index.d.ts.map +0 -1
- package/lib/plugins/pinned-rows/pinned-rows.d.ts.map +0 -1
- package/lib/plugins/pinned-rows/types.d.ts.map +0 -1
- package/lib/plugins/pivot/PivotPlugin.d.ts.map +0 -1
- package/lib/plugins/pivot/index.d.ts.map +0 -1
- package/lib/plugins/pivot/pivot-engine.d.ts.map +0 -1
- package/lib/plugins/pivot/pivot-model.d.ts.map +0 -1
- package/lib/plugins/pivot/pivot-panel.d.ts.map +0 -1
- package/lib/plugins/pivot/pivot-rows.d.ts.map +0 -1
- package/lib/plugins/pivot/types.d.ts.map +0 -1
- package/lib/plugins/print/PrintPlugin.d.ts.map +0 -1
- package/lib/plugins/print/index.d.ts.map +0 -1
- package/lib/plugins/print/print-isolated.d.ts.map +0 -1
- package/lib/plugins/print/types.d.ts.map +0 -1
- package/lib/plugins/reorder-columns/ReorderPlugin.d.ts.map +0 -1
- package/lib/plugins/reorder-columns/column-drag.d.ts.map +0 -1
- package/lib/plugins/reorder-columns/index.d.ts.map +0 -1
- package/lib/plugins/reorder-columns/types.d.ts.map +0 -1
- package/lib/plugins/reorder-rows/RowReorderPlugin.d.ts.map +0 -1
- package/lib/plugins/reorder-rows/index.d.ts.map +0 -1
- package/lib/plugins/reorder-rows/types.d.ts.map +0 -1
- package/lib/plugins/responsive/ResponsivePlugin.d.ts.map +0 -1
- package/lib/plugins/responsive/index.d.ts.map +0 -1
- package/lib/plugins/responsive/types.d.ts.map +0 -1
- package/lib/plugins/selection/SelectionPlugin.d.ts.map +0 -1
- package/lib/plugins/selection/index.d.ts.map +0 -1
- package/lib/plugins/selection/range-selection.d.ts.map +0 -1
- package/lib/plugins/selection/row-selection.d.ts.map +0 -1
- package/lib/plugins/selection/types.d.ts.map +0 -1
- package/lib/plugins/server-side/ServerSidePlugin.d.ts.map +0 -1
- package/lib/plugins/server-side/cache.d.ts.map +0 -1
- package/lib/plugins/server-side/datasource.d.ts.map +0 -1
- package/lib/plugins/server-side/index.d.ts.map +0 -1
- package/lib/plugins/server-side/types.d.ts.map +0 -1
- package/lib/plugins/shared/data-collection.d.ts.map +0 -1
- package/lib/plugins/tree/TreePlugin.d.ts.map +0 -1
- package/lib/plugins/tree/index.d.ts.map +0 -1
- package/lib/plugins/tree/tree-data.d.ts.map +0 -1
- package/lib/plugins/tree/tree-detect.d.ts.map +0 -1
- package/lib/plugins/tree/types.d.ts.map +0 -1
- package/lib/plugins/undo-redo/UndoRedoPlugin.d.ts.map +0 -1
- package/lib/plugins/undo-redo/history.d.ts.map +0 -1
- package/lib/plugins/undo-redo/index.d.ts.map +0 -1
- package/lib/plugins/undo-redo/types.d.ts.map +0 -1
- package/lib/plugins/visibility/VisibilityPlugin.d.ts.map +0 -1
- package/lib/plugins/visibility/index.d.ts.map +0 -1
- package/lib/plugins/visibility/types.d.ts.map +0 -1
- package/lib/plugins/visibility/visibility.d.ts.map +0 -1
- package/public.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColumnInternal, ColumnViewRenderer, InternalGrid } from '../types';
|
|
1
|
+
import { ColumnInternal, ColumnViewRenderer, GridHost, InternalGrid } from '../types';
|
|
2
2
|
/** Callback type for plugin row rendering hook */
|
|
3
3
|
export type RenderRowHook = (row: any, rowEl: HTMLElement, rowIndex: number) => boolean;
|
|
4
4
|
/**
|
|
@@ -39,15 +39,14 @@ export declare function invalidateCellCache(grid: InternalGrid): void;
|
|
|
39
39
|
* @param renderRowHook - Optional callback that plugins can use to render custom rows (e.g., group rows).
|
|
40
40
|
* If it returns true, default rendering is skipped for that row.
|
|
41
41
|
*/
|
|
42
|
-
export declare function renderVisibleRows(grid:
|
|
42
|
+
export declare function renderVisibleRows(grid: GridHost, start: number, end: number, epoch?: number, renderRowHook?: RenderRowHook): void;
|
|
43
43
|
/**
|
|
44
44
|
* Full reconstruction of a row's set of cells including templated, external view, and formatted content.
|
|
45
45
|
* Attaches event handlers for editing and accessibility per cell.
|
|
46
46
|
*/
|
|
47
|
-
export declare function renderInlineRow(grid:
|
|
47
|
+
export declare function renderInlineRow(grid: GridHost, rowEl: HTMLElement, rowData: any, rowIndex: number): void;
|
|
48
48
|
/**
|
|
49
49
|
* Handle click / double click interaction to focus cells.
|
|
50
50
|
* Edit triggering is handled by EditingPlugin via onCellClick hook.
|
|
51
51
|
*/
|
|
52
|
-
export declare function handleRowClick(grid:
|
|
53
|
-
//# sourceMappingURL=rows.d.ts.map
|
|
52
|
+
export declare function handleRowClick(grid: GridHost, e: MouseEvent, rowEl: HTMLElement): void;
|
|
@@ -18,4 +18,3 @@ export declare function sanitizeHTML(html: string): string;
|
|
|
18
18
|
export declare function evalTemplateString(raw: string, ctx: EvalContext): string;
|
|
19
19
|
export declare function finalCellScrub(cell: HTMLElement): void;
|
|
20
20
|
export declare function compileTemplate(raw: string): CompiledViewFunction<any>;
|
|
21
|
-
//# sourceMappingURL=sanitize.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HeaderContentDefinition, IconValue, ShellConfig, ToolbarContentDefinition, ToolPanelDefinition } from '../types';
|
|
1
|
+
import { HeaderContentDefinition, IconValue, InternalGrid, ShellConfig, ToolbarContentDefinition, ToolPanelDefinition } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* State for managing shell UI.
|
|
4
4
|
*
|
|
@@ -25,6 +25,8 @@ export interface ShellState {
|
|
|
25
25
|
lightDomToolbarContentIds: Set<string>;
|
|
26
26
|
/** IDs of tool panels registered via registerToolPanel API */
|
|
27
27
|
apiToolPanelIds: Set<string>;
|
|
28
|
+
/** IDs of header content registered via registerHeaderContent API */
|
|
29
|
+
apiHeaderContentIds: Set<string>;
|
|
28
30
|
/** Whether the tool panel sidebar is open */
|
|
29
31
|
isPanelOpen: boolean;
|
|
30
32
|
/** Which accordion sections are expanded (by panel ID) */
|
|
@@ -206,33 +208,14 @@ export declare function updateToolbarActiveStates(renderRoot: Element, state: Sh
|
|
|
206
208
|
export declare function updatePanelState(renderRoot: Element, state: ShellState): void;
|
|
207
209
|
/**
|
|
208
210
|
* Prepare shell state for a full re-render.
|
|
209
|
-
* Runs cleanup functions so content (
|
|
210
|
-
* to their original containers and
|
|
211
|
+
* Runs cleanup functions so content (toolbar buttons, panels, headers)
|
|
212
|
+
* can be restored to their original containers and re-rendered into new DOM.
|
|
211
213
|
*/
|
|
212
214
|
export declare function prepareForRerender(state: ShellState): void;
|
|
213
215
|
/**
|
|
214
216
|
* Cleanup all shell state when grid disconnects.
|
|
215
217
|
*/
|
|
216
218
|
export declare function cleanupShellState(state: ShellState): void;
|
|
217
|
-
/**
|
|
218
|
-
* Callbacks for ShellController to communicate with the grid.
|
|
219
|
-
* This interface decouples the controller from grid internals.
|
|
220
|
-
*/
|
|
221
|
-
export interface ShellControllerCallbacks {
|
|
222
|
-
/** Get the render root for DOM queries (the grid element) */
|
|
223
|
-
getShadow: () => Element;
|
|
224
|
-
/** Get the current shell config */
|
|
225
|
-
getShellConfig: () => ShellConfig | undefined;
|
|
226
|
-
/** Get accordion expand/collapse icons */
|
|
227
|
-
getAccordionIcons: () => {
|
|
228
|
-
expand: IconValue;
|
|
229
|
-
collapse: IconValue;
|
|
230
|
-
};
|
|
231
|
-
/** Emit an event from the grid */
|
|
232
|
-
emit: (eventName: string, detail: unknown) => void;
|
|
233
|
-
/** Refresh the shell header (re-parse light DOM and re-render) */
|
|
234
|
-
refreshShellHeader: () => void;
|
|
235
|
-
}
|
|
236
219
|
/**
|
|
237
220
|
* Controller interface for managing shell/tool panel behavior.
|
|
238
221
|
*/
|
|
@@ -278,12 +261,12 @@ export interface ShellController {
|
|
|
278
261
|
* Create a ShellController instance.
|
|
279
262
|
* The controller encapsulates all tool panel orchestration logic.
|
|
280
263
|
*/
|
|
281
|
-
export declare function createShellController(state: ShellState,
|
|
264
|
+
export declare function createShellController(state: ShellState, grid: InternalGrid): ShellController;
|
|
282
265
|
/**
|
|
283
266
|
* Core grid content HTML template.
|
|
284
267
|
* Uses faux scrollbar pattern for smooth virtualized scrolling.
|
|
285
268
|
*/
|
|
286
|
-
export declare const GRID_CONTENT_HTML = "\n <div class=\"tbw-scroll-area\">\n <div class=\"rows-body-wrapper\">\n <div class=\"rows-body\" role=\"grid\">\n <div class=\"header\" role=\"rowgroup\">\n <div class=\"header-row\" role=\"row\" part=\"header-row\"></div>\n </div>\n <div class=\"rows-container\" role=\"presentation\">\n <div class=\"rows-viewport\" role=\"presentation\">\n <div class=\"rows\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"faux-vscroll\">\n <div class=\"faux-vscroll-spacer\"></div>\n </div>\n";
|
|
269
|
+
export declare const GRID_CONTENT_HTML = "\n <div class=\"tbw-scroll-area\">\n <div class=\"rows-body-wrapper\">\n <div class=\"rows-body\" role=\"grid\">\n <div class=\"header\" role=\"rowgroup\">\n <div class=\"header-row\" role=\"row\" part=\"header-row\"></div>\n </div>\n <div class=\"rows-container\" role=\"presentation\">\n <div class=\"rows-viewport\" role=\"presentation\">\n <div class=\"rows\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"faux-vscroll\">\n <div class=\"faux-vscroll-spacer\"></div>\n </div>\n <div class=\"tbw-sr-only\" aria-live=\"polite\" aria-atomic=\"true\"></div>\n";
|
|
287
270
|
/**
|
|
288
271
|
* Build the complete grid DOM structure using direct DOM construction.
|
|
289
272
|
* This is 2-3x faster than innerHTML for initial render.
|
|
@@ -302,4 +285,3 @@ export declare function buildGridDOMIntoElement(renderRoot: Element, shellConfig
|
|
|
302
285
|
expand?: IconValue;
|
|
303
286
|
collapse?: IconValue;
|
|
304
287
|
}): boolean;
|
|
305
|
-
//# sourceMappingURL=shell.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColumnConfig, InternalGrid, SortState } from '../types';
|
|
1
|
+
import { ColumnConfig, GridHost, InternalGrid, SortState } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Default comparator for sorting values.
|
|
4
4
|
* Handles nulls (pushed to end), numbers, and string fallback.
|
|
@@ -13,7 +13,7 @@ export declare function builtInSort<T>(rows: T[], sortState: SortState, columns:
|
|
|
13
13
|
* Cycle sort state for a column: none -> ascending -> descending -> none.
|
|
14
14
|
* Restores original row order when clearing sort.
|
|
15
15
|
*/
|
|
16
|
-
export declare function toggleSort(grid:
|
|
16
|
+
export declare function toggleSort(grid: GridHost, col: ColumnConfig<any>): void;
|
|
17
17
|
/**
|
|
18
18
|
* Re-apply the current core sort to rows during #rebuildRowModel.
|
|
19
19
|
* Updates __originalOrder so "clear sort" restores the current dataset.
|
|
@@ -26,5 +26,4 @@ export declare function reapplyCoreSort<T>(grid: InternalGrid<T>, rows: T[]): T[
|
|
|
26
26
|
* Uses custom sortHandler from gridConfig if provided, otherwise uses built-in sorting.
|
|
27
27
|
* Supports both sync and async handlers (for server-side sorting).
|
|
28
28
|
*/
|
|
29
|
-
export declare function applySort(grid:
|
|
30
|
-
//# sourceMappingURL=sorting.d.ts.map
|
|
29
|
+
export declare function applySort(grid: GridHost, col: ColumnConfig<any>, dir: 1 | -1): void;
|
|
@@ -1,20 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Touch scrolling controller for mobile devices.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Uses pointer events with setPointerCapture to ensure events are delivered
|
|
5
|
+
* directly to the grid element, even when DOM virtualization replaces the
|
|
6
|
+
* original touch target element mid-gesture.
|
|
7
|
+
*
|
|
8
|
+
* Without pointer capture, touch events are dispatched to the original target
|
|
9
|
+
* element (e.g., a cell or card). When virtualization recycles that element's
|
|
10
|
+
* content, the target is removed from the DOM and subsequent touchmove/touchend
|
|
11
|
+
* events are lost — causing scrolling to stop after ~2 rows.
|
|
12
|
+
*
|
|
13
|
+
* setPointerCapture routes all events for a pointer ID directly to the capture
|
|
14
|
+
* element (.tbw-grid-content), bypassing target resolution entirely.
|
|
15
|
+
*
|
|
16
|
+
* Uses incremental deltas (frame-to-frame) rather than absolute offsets from
|
|
17
|
+
* the gesture start, which is more robust when virtualized content height
|
|
18
|
+
* changes during scrolling (e.g., responsive card mode with variable-height rows).
|
|
6
19
|
*/
|
|
7
20
|
export interface TouchScrollState {
|
|
8
21
|
startY: number | null;
|
|
9
22
|
startX: number | null;
|
|
10
|
-
scrollTop: number | null;
|
|
11
|
-
scrollLeft: number | null;
|
|
12
23
|
lastY: number | null;
|
|
13
24
|
lastX: number | null;
|
|
14
25
|
lastTime: number | null;
|
|
15
26
|
velocityY: number;
|
|
16
27
|
velocityX: number;
|
|
17
28
|
momentumRaf: number;
|
|
29
|
+
/** Once we start scrolling the grid, lock until gesture ends to prevent browser takeover */
|
|
30
|
+
locked: boolean;
|
|
31
|
+
/** Active pointer ID for setPointerCapture tracking (null = no active gesture) */
|
|
32
|
+
activePointerId: number | null;
|
|
18
33
|
}
|
|
19
34
|
export interface TouchScrollElements {
|
|
20
35
|
fauxScrollbar: HTMLElement;
|
|
@@ -33,22 +48,26 @@ export declare function resetTouchState(state: TouchScrollState): void;
|
|
|
33
48
|
*/
|
|
34
49
|
export declare function cancelMomentum(state: TouchScrollState): void;
|
|
35
50
|
/**
|
|
36
|
-
* Handle
|
|
51
|
+
* Handle gesture start (from pointerdown).
|
|
37
52
|
*/
|
|
38
|
-
export declare function handleTouchStart(
|
|
53
|
+
export declare function handleTouchStart(clientX: number, clientY: number, state: TouchScrollState): void;
|
|
39
54
|
/**
|
|
40
|
-
* Handle
|
|
41
|
-
*
|
|
55
|
+
* Handle gesture move (from pointermove).
|
|
56
|
+
* Uses incremental deltas (from previous position) for robustness.
|
|
57
|
+
* Returns true if the event should be prevented (grid is handling scroll).
|
|
42
58
|
*/
|
|
43
|
-
export declare function handleTouchMove(
|
|
59
|
+
export declare function handleTouchMove(clientX: number, clientY: number, state: TouchScrollState, elements: TouchScrollElements): boolean;
|
|
44
60
|
/**
|
|
45
61
|
* Handle touchend event.
|
|
46
62
|
* Starts momentum scrolling if velocity is significant.
|
|
47
63
|
*/
|
|
48
64
|
export declare function handleTouchEnd(state: TouchScrollState, elements: TouchScrollElements): void;
|
|
49
65
|
/**
|
|
50
|
-
* Set up
|
|
51
|
-
*
|
|
66
|
+
* Set up pointer event listeners on the grid content element for touch scrolling.
|
|
67
|
+
*
|
|
68
|
+
* Uses pointer events + setPointerCapture instead of touch events because
|
|
69
|
+
* DOM virtualization can destroy the original touch target mid-gesture,
|
|
70
|
+
* causing touch events to stop being delivered. Pointer capture routes
|
|
71
|
+
* all events directly to the grid element regardless of DOM changes.
|
|
52
72
|
*/
|
|
53
73
|
export declare function setupTouchScrollListeners(gridContentEl: HTMLElement, state: TouchScrollState, elements: TouchScrollElements, signal: AbortSignal): void;
|
|
54
|
-
//# sourceMappingURL=touch-scroll.d.ts.map
|
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
* Used to show warnings only in development.
|
|
5
5
|
*/
|
|
6
6
|
export declare function isDevelopment(): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Build the `[tbw-grid]` or `[tbw-grid#my-id]` log prefix.
|
|
9
|
+
* Pass `pluginName` for a scoped prefix like `[tbw-grid:SelectionPlugin]`.
|
|
10
|
+
*
|
|
11
|
+
* @param gridId - The grid element's `id` attribute (optional)
|
|
12
|
+
* @param pluginName - Plugin display name to include (optional)
|
|
13
|
+
*/
|
|
14
|
+
export declare function gridPrefix(gridId?: string, pluginName?: string): string;
|
|
7
15
|
/**
|
|
8
16
|
* Generate accessible HTML for a boolean cell.
|
|
9
17
|
* Uses role="checkbox" with proper aria attributes.
|
|
@@ -77,4 +85,3 @@ export declare function isRTL(element: Element): boolean;
|
|
|
77
85
|
* ```
|
|
78
86
|
*/
|
|
79
87
|
export declare function resolveInlinePosition(position: 'left' | 'right' | 'start' | 'end', direction: TextDirection): 'left' | 'right';
|
|
80
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -7,7 +7,7 @@ import { GridConfig } from '../types';
|
|
|
7
7
|
* @param plugins - The array of loaded plugins
|
|
8
8
|
* @throws Error if a plugin-owned property is used without the plugin
|
|
9
9
|
*/
|
|
10
|
-
export declare function validatePluginProperties<T>(config: GridConfig<T>, plugins: readonly BaseGridPlugin[]): void;
|
|
10
|
+
export declare function validatePluginProperties<T>(config: GridConfig<T>, plugins: readonly BaseGridPlugin[], gridId?: string): void;
|
|
11
11
|
/**
|
|
12
12
|
* Validate plugin configuration rules declared in manifests.
|
|
13
13
|
* Called after plugins are attached to check for invalid/conflicting configurations.
|
|
@@ -17,7 +17,7 @@ export declare function validatePluginProperties<T>(config: GridConfig<T>, plugi
|
|
|
17
17
|
*
|
|
18
18
|
* @param plugins - The array of attached plugins (with config already merged)
|
|
19
19
|
*/
|
|
20
|
-
export declare function validatePluginConfigRules(plugins: readonly BaseGridPlugin[]): void;
|
|
20
|
+
export declare function validatePluginConfigRules(plugins: readonly BaseGridPlugin[], gridId?: string): void;
|
|
21
21
|
/**
|
|
22
22
|
* Validate plugin-to-plugin dependencies.
|
|
23
23
|
* Called by PluginManager when attaching a new plugin.
|
|
@@ -31,7 +31,7 @@ export declare function validatePluginConfigRules(plugins: readonly BaseGridPlug
|
|
|
31
31
|
* @param loadedPlugins - The array of already-loaded plugins
|
|
32
32
|
* @throws Error if a required dependency is missing
|
|
33
33
|
*/
|
|
34
|
-
export declare function validatePluginDependencies(plugin: BaseGridPlugin, loadedPlugins: readonly BaseGridPlugin[]): void;
|
|
34
|
+
export declare function validatePluginDependencies(plugin: BaseGridPlugin, loadedPlugins: readonly BaseGridPlugin[], gridId?: string): void;
|
|
35
35
|
/**
|
|
36
36
|
* Validate that no incompatible plugins are loaded together.
|
|
37
37
|
* Called after all plugins are attached to the grid.
|
|
@@ -41,5 +41,4 @@ export declare function validatePluginDependencies(plugin: BaseGridPlugin, loade
|
|
|
41
41
|
*
|
|
42
42
|
* @param plugins - All attached plugins
|
|
43
43
|
*/
|
|
44
|
-
export declare function validatePluginIncompatibilities(plugins: readonly BaseGridPlugin[]): void;
|
|
45
|
-
//# sourceMappingURL=validate-config.d.ts.map
|
|
44
|
+
export declare function validatePluginIncompatibilities(plugins: readonly BaseGridPlugin[], gridId?: string): void;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { InternalGrid, VirtualState } from '../types';
|
|
2
|
+
export declare class VirtualizationManager<T = any> {
|
|
3
|
+
#private;
|
|
4
|
+
readonly state: VirtualState;
|
|
5
|
+
constructor(grid: InternalGrid<T>, initialState?: Partial<VirtualState>);
|
|
6
|
+
/**
|
|
7
|
+
* Update cached viewport and faux scrollbar geometry.
|
|
8
|
+
* Called by ResizeObserver and on force-refresh to avoid forced layout reads during scroll.
|
|
9
|
+
*/
|
|
10
|
+
updateCachedGeometry(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Calculate total height for the faux scrollbar spacer element.
|
|
13
|
+
* Used by both bypass and virtualized rendering paths to ensure consistent scroll behavior.
|
|
14
|
+
*
|
|
15
|
+
* @param totalRows - Total number of rows to calculate height for
|
|
16
|
+
* @param forceRead - When true, reads fresh geometry from DOM (used after structural changes).
|
|
17
|
+
* When false, uses cached values from ResizeObserver to avoid forced synchronous layout.
|
|
18
|
+
*/
|
|
19
|
+
calculateTotalSpacerHeight(totalRows: number, forceRead?: boolean): number;
|
|
20
|
+
/**
|
|
21
|
+
* Initialize or rebuild the position cache for variable row heights.
|
|
22
|
+
* Called when rows change or variable heights mode is enabled.
|
|
23
|
+
*/
|
|
24
|
+
initializePositionCache(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Invalidate a row's height in the position cache.
|
|
27
|
+
* Call this when a plugin changes a row's height (e.g., expanding/collapsing a detail panel).
|
|
28
|
+
* Updates the position cache incrementally O(1) + offset recalc O(k) without a full rebuild.
|
|
29
|
+
*
|
|
30
|
+
* @param rowIndex - Index of the row whose height changed
|
|
31
|
+
* @param newHeight - Optional new height. If not provided, queries plugins for height.
|
|
32
|
+
*/
|
|
33
|
+
invalidateRowHeight(rowIndex: number, newHeight?: number): void;
|
|
34
|
+
/**
|
|
35
|
+
* Measure rendered row heights and update position cache.
|
|
36
|
+
* Called after rows are rendered to capture actual DOM heights.
|
|
37
|
+
* Only runs when variable heights mode is enabled.
|
|
38
|
+
*/
|
|
39
|
+
measureRenderedRowHeights(start: number, end: number): void;
|
|
40
|
+
/**
|
|
41
|
+
* Core virtualization routine. Chooses between bypass (small datasets), grouped window rendering,
|
|
42
|
+
* or standard row window rendering.
|
|
43
|
+
* @param force - Whether to force a full refresh (not just scroll update)
|
|
44
|
+
* @param skipAfterRender - When true, skip calling afterRender (used by scheduler which calls it separately)
|
|
45
|
+
* @returns Whether the visible row window changed (start/end differ from previous)
|
|
46
|
+
*/
|
|
47
|
+
refreshVirtualWindow(force?: boolean, skipAfterRender?: boolean): boolean;
|
|
48
|
+
}
|
|
@@ -217,4 +217,3 @@ export declare function computeVirtualWindow(params: VirtualWindowParams): Virtu
|
|
|
217
217
|
* @returns True if virtualization should be bypassed
|
|
218
218
|
*/
|
|
219
219
|
export declare function shouldBypassVirtualization(totalRows: number, threshold: number): boolean;
|
|
220
|
-
//# sourceMappingURL=virtualization.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnConfig, ColumnState, GridPlugin, HeaderContentDefinition, IconValue, PluginNameMap, ToolPanelDefinition, DEFAULT_GRID_ICONS } from '../types';
|
|
2
2
|
import { AfterCellRenderContext, AfterRowRenderContext, CellClickEvent, CellEditor, CellMouseEvent, CellRenderer, GridElementRef, HeaderClickEvent, HeaderRenderer, PluginQuery, RowClickEvent, ScrollEvent } from './types';
|
|
3
3
|
export { PLUGIN_QUERIES } from './types';
|
|
4
|
-
export type { AfterCellRenderContext, AfterRowRenderContext, CellClickEvent, CellCoords, CellEditor, CellMouseEvent, CellRenderer, ContextMenuItem, ContextMenuParams, GridElementRef, HeaderClickEvent, HeaderRenderer, KeyboardModifiers, PluginCellRenderContext, PluginQuery, RowClickEvent, ScrollEvent
|
|
4
|
+
export type { AfterCellRenderContext, AfterRowRenderContext, CellClickEvent, CellCoords, CellEditor, CellMouseEvent, CellRenderer, ContextMenuItem, ContextMenuParams, GridElementRef, HeaderClickEvent, HeaderRenderer, KeyboardModifiers, PluginCellRenderContext, PluginQuery, RowClickEvent, ScrollEvent } from './types';
|
|
5
5
|
/**
|
|
6
6
|
* Grid element interface for plugins.
|
|
7
7
|
* Extends GridElementRef with plugin-specific methods.
|
|
@@ -946,7 +946,7 @@ export declare abstract class BaseGridPlugin<TConfig = unknown> implements GridP
|
|
|
946
946
|
* }
|
|
947
947
|
* }
|
|
948
948
|
* ```
|
|
949
|
-
* @deprecated Use `handleQuery` instead for new plugins.
|
|
949
|
+
* @deprecated Use `handleQuery` instead for new plugins. Will be removed in v2.
|
|
950
950
|
*/
|
|
951
951
|
onPluginQuery?(query: PluginQuery): unknown;
|
|
952
952
|
/**
|
|
@@ -1244,4 +1244,3 @@ export declare abstract class BaseGridPlugin<TConfig = unknown> implements GridP
|
|
|
1244
1244
|
*/
|
|
1245
1245
|
getHeaderContent?(): HeaderContentDefinition | undefined;
|
|
1246
1246
|
}
|
|
1247
|
-
//# sourceMappingURL=base-plugin.d.ts.map
|
|
@@ -48,4 +48,3 @@ export declare function createExpanderContainer(expanded: boolean, pluginClass:
|
|
|
48
48
|
* Plugins should include this in their styles to ensure consistent appearance.
|
|
49
49
|
*/
|
|
50
50
|
export declare const EXPANDER_COLUMN_STYLES = "\n/* Expander column data cells - always first, borderless right edge */\n.cell[data-field=\"__tbw_expander\"] {\n border-right: none !important;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* Expander column header - completely hidden, no content, no border, no width contribution */\n.header-row .cell[data-field=\"__tbw_expander\"] {\n visibility: hidden;\n border: none !important;\n padding: 0;\n overflow: hidden;\n}\n\n/* The column after the expander should visually extend into the expander header space */\n.header-row .cell[data-field=\"__tbw_expander\"] + .cell {\n /* Pull left to cover the hidden expander header */\n margin-left: -32px;\n padding-left: calc(var(--tbw-cell-padding, 8px) + 32px);\n}\n\n/* Expander cell contents */\n.expander-cell {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n cursor: pointer;\n}\n";
|
|
51
|
-
//# sourceMappingURL=expander-column.d.ts.map
|
|
@@ -9,4 +9,3 @@ export type { AfterCellRenderContext, AfterRowRenderContext, CellClickEvent, Cel
|
|
|
9
9
|
export { PluginManager } from './plugin-manager';
|
|
10
10
|
export type { EventDefinition, HookName, PluginConfigRule, PluginDependency, PluginIncompatibility, PluginManifest, PluginPropertyDefinition, QueryDefinition, } from './base-plugin';
|
|
11
11
|
export type { ColumnConfig } from '../types';
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -35,6 +35,8 @@ export declare class PluginManager {
|
|
|
35
35
|
/** Set of plugin constructors that have been warned about deprecated hooks */
|
|
36
36
|
private static deprecationWarned;
|
|
37
37
|
constructor(grid: GridElement);
|
|
38
|
+
/** Build log prefix: `[tbw-grid]` or `[tbw-grid#my-id]` */
|
|
39
|
+
private get logPrefix();
|
|
38
40
|
/**
|
|
39
41
|
* Attach all plugins from the config.
|
|
40
42
|
*/
|
|
@@ -298,4 +300,3 @@ export declare class PluginManager {
|
|
|
298
300
|
content: NonNullable<ReturnType<NonNullable<BaseGridPlugin['getHeaderContent']>>>;
|
|
299
301
|
}[];
|
|
300
302
|
}
|
|
301
|
-
//# sourceMappingURL=plugin-manager.d.ts.map
|
|
@@ -45,7 +45,7 @@ export interface HeaderClickEvent {
|
|
|
45
45
|
field: string;
|
|
46
46
|
column: ColumnConfig;
|
|
47
47
|
headerEl: HTMLElement;
|
|
48
|
-
originalEvent: MouseEvent;
|
|
48
|
+
originalEvent: MouseEvent | KeyboardEvent;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Scroll event
|
|
@@ -275,6 +275,12 @@ export interface GridElementRef {
|
|
|
275
275
|
getAttribute(name: string): string | null;
|
|
276
276
|
/** Remove an attribute from the grid element. */
|
|
277
277
|
removeAttribute(name: string): void;
|
|
278
|
+
/**
|
|
279
|
+
* The grid's host HTMLElement.
|
|
280
|
+
* Use this instead of casting the grid to HTMLElement.
|
|
281
|
+
* @internal Plugin API
|
|
282
|
+
*/
|
|
283
|
+
readonly _hostElement: HTMLElement;
|
|
278
284
|
/** Current rows (after plugin processing like grouping, filtering). */
|
|
279
285
|
rows: unknown[];
|
|
280
286
|
/** Original unfiltered/unprocessed rows. */
|
|
@@ -466,4 +472,3 @@ export interface GridElementRef {
|
|
|
466
472
|
*/
|
|
467
473
|
invalidateRowHeight(rowIndex: number, newHeight?: number): void;
|
|
468
474
|
}
|
|
469
|
-
//# sourceMappingURL=types.d.ts.map
|