@toolbox-web/grid 3.0.0-beta.3 → 3.0.0-beta.4

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.
Files changed (62) hide show
  1. package/all.js +2 -2
  2. package/all.js.map +1 -1
  3. package/custom-elements.json +7 -6
  4. package/index.js +1 -1
  5. package/index.js.map +1 -1
  6. package/lib/core/constants.d.ts +7 -0
  7. package/lib/core/grid.d.ts +5 -1
  8. package/lib/core/internal/rows.d.ts +2 -5
  9. package/lib/core/internal/tag-registry.d.ts +23 -0
  10. package/lib/features/registry.js +1 -1
  11. package/lib/plugins/clipboard/index.js +1 -1
  12. package/lib/plugins/clipboard/index.js.map +1 -1
  13. package/lib/plugins/column-virtualization/index.js +1 -1
  14. package/lib/plugins/context-menu/index.js +1 -1
  15. package/lib/plugins/editing/index.js +1 -1
  16. package/lib/plugins/editing/index.js.map +1 -1
  17. package/lib/plugins/export/index.js +1 -1
  18. package/lib/plugins/filtering/index.js +1 -1
  19. package/lib/plugins/grouping-columns/index.js +1 -1
  20. package/lib/plugins/grouping-rows/index.js +1 -1
  21. package/lib/plugins/grouping-rows/index.js.map +1 -1
  22. package/lib/plugins/master-detail/index.js +1 -1
  23. package/lib/plugins/multi-sort/index.js +1 -1
  24. package/lib/plugins/pinned-columns/index.js +1 -1
  25. package/lib/plugins/pinned-columns/index.js.map +1 -1
  26. package/lib/plugins/pinned-rows/index.js +1 -1
  27. package/lib/plugins/pivot/index.js +1 -1
  28. package/lib/plugins/pivot/index.js.map +1 -1
  29. package/lib/plugins/print/index.js +1 -1
  30. package/lib/plugins/reorder-columns/index.js +1 -1
  31. package/lib/plugins/reorder-columns/index.js.map +1 -1
  32. package/lib/plugins/responsive/index.js +1 -1
  33. package/lib/plugins/responsive/index.js.map +1 -1
  34. package/lib/plugins/row-drag-drop/index.js +1 -1
  35. package/lib/plugins/row-drag-drop/index.js.map +1 -1
  36. package/lib/plugins/selection/index.js +1 -1
  37. package/lib/plugins/selection/index.js.map +1 -1
  38. package/lib/plugins/server-side/index.js +1 -1
  39. package/lib/plugins/server-side/index.js.map +1 -1
  40. package/lib/plugins/shell/index.js +1 -1
  41. package/lib/plugins/shell/index.js.map +1 -1
  42. package/lib/plugins/shell/shell.d.ts +0 -33
  43. package/lib/plugins/sticky-rows/index.js +1 -1
  44. package/lib/plugins/tooltip/index.js +1 -1
  45. package/lib/plugins/tree/index.js +1 -1
  46. package/lib/plugins/tree/index.js.map +1 -1
  47. package/lib/plugins/undo-redo/index.js +1 -1
  48. package/lib/plugins/undo-redo/index.js.map +1 -1
  49. package/lib/plugins/visibility/index.js +1 -1
  50. package/lib/plugins/visibility/index.js.map +1 -1
  51. package/package.json +1 -1
  52. package/umd/grid.all.umd.js +1 -1
  53. package/umd/grid.all.umd.js.map +1 -1
  54. package/umd/grid.umd.js +1 -1
  55. package/umd/grid.umd.js.map +1 -1
  56. package/umd/plugins/clipboard.umd.js +1 -1
  57. package/umd/plugins/clipboard.umd.js.map +1 -1
  58. package/umd/plugins/editing.umd.js +1 -1
  59. package/umd/plugins/editing.umd.js.map +1 -1
  60. package/umd/plugins/shell.umd.js.map +1 -1
  61. package/lib/plugins/selection/row-selection.d.ts +0 -47
  62. package/lib/plugins/visibility/visibility.d.ts +0 -31
@@ -1,47 +0,0 @@
1
- import { SelectionMode, SelectionState } from './types';
2
- /** Click modifier keys state */
3
- export interface ClickModifiers {
4
- shiftKey: boolean;
5
- ctrlKey: boolean;
6
- metaKey: boolean;
7
- }
8
- /** Result from handling a row click for selection */
9
- export interface RowClickResult {
10
- selected: Set<number>;
11
- lastSelected: number;
12
- anchor: number | null;
13
- }
14
- /**
15
- * Handle a row click event for selection purposes.
16
- *
17
- * In single mode: always selects the clicked row, clearing others.
18
- * In multiple mode:
19
- * - Plain click: clears selection and selects clicked row
20
- * - Ctrl/Cmd+click: toggles the clicked row
21
- * - Shift+click: range select from anchor to clicked row
22
- *
23
- * @param state - Current selection state
24
- * @param rowIndex - The clicked row index
25
- * @param mode - Selection mode ('single' or 'multiple')
26
- * @param modifiers - Keyboard modifiers held during click
27
- * @returns Updated selection state values
28
- */
29
- export declare function handleRowClick(state: SelectionState, rowIndex: number, mode: SelectionMode, modifiers: ClickModifiers): RowClickResult;
30
- /**
31
- * Create a set containing all row indices (for select all).
32
- *
33
- * @param rowCount - Total number of rows
34
- * @returns Set containing indices 0 to rowCount-1
35
- */
36
- export declare function selectAll(rowCount: number): Set<number>;
37
- /**
38
- * Compute the difference between two selection states.
39
- *
40
- * @param oldSelected - Previous selection set
41
- * @param newSelected - New selection set
42
- * @returns Object with added and removed row indices
43
- */
44
- export declare function computeSelectionDiff(oldSelected: Set<number>, newSelected: Set<number>): {
45
- added: number[];
46
- removed: number[];
47
- };
@@ -1,31 +0,0 @@
1
- import { ColumnConfig } from '../../core/types';
2
- /**
3
- * Filter columns to only include visible ones.
4
- *
5
- * @param columns - Array of column configurations
6
- * @param hidden - Set of hidden field names
7
- * @returns New array containing only visible columns
8
- */
9
- export declare function filterVisibleColumns<TRow = unknown>(columns: ColumnConfig<TRow>[], hidden: Set<string>): ColumnConfig<TRow>[];
10
- /**
11
- * Check if a column can be hidden.
12
- *
13
- * Mirrors the invariant enforced by the grid core (`config-manager.setColumnVisible`):
14
- * a column cannot be hidden if it is flagged `lockVisible`, or if hiding it would
15
- * leave zero visible columns.
16
- *
17
- * @param columns - All column configurations
18
- * @param field - Field to check
19
- * @param hidden - Currently hidden field names
20
- * @returns True if the column can be hidden
21
- */
22
- export declare function canHideColumn<TRow = unknown>(columns: ColumnConfig<TRow>[], field: string, hidden: Set<string>): boolean;
23
- /**
24
- * Toggle column visibility state.
25
- *
26
- * @param hidden - Current set of hidden field names
27
- * @param field - Field to toggle
28
- * @param visible - Explicit visibility state (undefined = toggle)
29
- * @returns New Set with updated hidden state
30
- */
31
- export declare function toggleColumnVisibility(hidden: Set<string>, field: string, visible?: boolean): Set<string>;