@toolbox-web/grid 1.23.3 → 1.23.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 (72) hide show
  1. package/all.js.map +1 -1
  2. package/index.js +1 -1
  3. package/index.js.map +1 -1
  4. package/lib/core/grid.d.ts +7 -0
  5. package/lib/core/grid.d.ts.map +1 -1
  6. package/lib/core/plugin/base-plugin.d.ts +6 -0
  7. package/lib/core/plugin/base-plugin.d.ts.map +1 -1
  8. package/lib/core/plugin/types.d.ts +1 -0
  9. package/lib/core/plugin/types.d.ts.map +1 -1
  10. package/lib/core/types.d.ts +9 -2
  11. package/lib/core/types.d.ts.map +1 -1
  12. package/lib/plugins/clipboard/ClipboardPlugin.d.ts +3 -3
  13. package/lib/plugins/clipboard/index.js.map +1 -1
  14. package/lib/plugins/clipboard/types.d.ts +1 -1
  15. package/lib/plugins/column-virtualization/index.js.map +1 -1
  16. package/lib/plugins/column-virtualization/types.d.ts +24 -2
  17. package/lib/plugins/column-virtualization/types.d.ts.map +1 -1
  18. package/lib/plugins/context-menu/index.js.map +1 -1
  19. package/lib/plugins/editing/index.js.map +1 -1
  20. package/lib/plugins/editing/types.d.ts +1 -1
  21. package/lib/plugins/export/ExportPlugin.d.ts +1 -1
  22. package/lib/plugins/export/index.js.map +1 -1
  23. package/lib/plugins/export/types.d.ts +9 -1
  24. package/lib/plugins/export/types.d.ts.map +1 -1
  25. package/lib/plugins/filtering/index.js.map +1 -1
  26. package/lib/plugins/filtering/types.d.ts +158 -2
  27. package/lib/plugins/filtering/types.d.ts.map +1 -1
  28. package/lib/plugins/grouping-columns/index.js.map +1 -1
  29. package/lib/plugins/grouping-rows/index.js.map +1 -1
  30. package/lib/plugins/grouping-rows/types.d.ts +48 -3
  31. package/lib/plugins/grouping-rows/types.d.ts.map +1 -1
  32. package/lib/plugins/master-detail/index.js.map +1 -1
  33. package/lib/plugins/multi-sort/index.js.map +1 -1
  34. package/lib/plugins/multi-sort/types.d.ts +40 -6
  35. package/lib/plugins/multi-sort/types.d.ts.map +1 -1
  36. package/lib/plugins/pinned-columns/index.js.map +1 -1
  37. package/lib/plugins/pinned-rows/index.js.map +1 -1
  38. package/lib/plugins/pinned-rows/types.d.ts +42 -4
  39. package/lib/plugins/pinned-rows/types.d.ts.map +1 -1
  40. package/lib/plugins/pivot/index.js.map +1 -1
  41. package/lib/plugins/pivot/types.d.ts +66 -1
  42. package/lib/plugins/pivot/types.d.ts.map +1 -1
  43. package/lib/plugins/print/PrintPlugin.d.ts +1 -1
  44. package/lib/plugins/print/index.js.map +1 -1
  45. package/lib/plugins/print/types.d.ts +9 -1
  46. package/lib/plugins/print/types.d.ts.map +1 -1
  47. package/lib/plugins/reorder/index.js.map +1 -1
  48. package/lib/plugins/reorder/types.d.ts +12 -1
  49. package/lib/plugins/reorder/types.d.ts.map +1 -1
  50. package/lib/plugins/responsive/index.js.map +1 -1
  51. package/lib/plugins/row-reorder/index.js.map +1 -1
  52. package/lib/plugins/selection/SelectionPlugin.d.ts +5 -5
  53. package/lib/plugins/selection/index.js.map +1 -1
  54. package/lib/plugins/server-side/index.js.map +1 -1
  55. package/lib/plugins/server-side/types.d.ts +82 -0
  56. package/lib/plugins/server-side/types.d.ts.map +1 -1
  57. package/lib/plugins/tree/index.js.map +1 -1
  58. package/lib/plugins/undo-redo/index.js.map +1 -1
  59. package/lib/plugins/visibility/VisibilityPlugin.d.ts +1 -1
  60. package/lib/plugins/visibility/index.js.map +1 -1
  61. package/lib/plugins/visibility/types.d.ts +16 -2
  62. package/lib/plugins/visibility/types.d.ts.map +1 -1
  63. package/package.json +1 -1
  64. package/public.d.ts +1 -1
  65. package/public.d.ts.map +1 -1
  66. package/umd/grid.all.umd.js.map +1 -1
  67. package/umd/grid.umd.js.map +1 -1
  68. package/umd/plugins/clipboard.umd.js.map +1 -1
  69. package/umd/plugins/export.umd.js.map +1 -1
  70. package/umd/plugins/print.umd.js.map +1 -1
  71. package/umd/plugins/selection.umd.js.map +1 -1
  72. package/umd/plugins/visibility.umd.js.map +1 -1
@@ -3,7 +3,24 @@
3
3
  *
4
4
  * Type definitions for horizontal column virtualization feature.
5
5
  */
6
- /** Configuration options for the column virtualization plugin */
6
+ /**
7
+ * Configuration for horizontal (column) virtualization.
8
+ *
9
+ * When enabled, only the columns visible in the viewport (plus an overscan buffer)
10
+ * are rendered to the DOM. This dramatically improves performance for grids with
11
+ * many columns (50+), as only a small subset of column cells exist at any time.
12
+ *
13
+ * By default, virtualization auto-enables when the column count exceeds `threshold`.
14
+ * Set `autoEnable: false` to control activation manually.
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * new ColumnVirtualizationPlugin({
19
+ * threshold: 20, // activate earlier than default
20
+ * overscan: 5, // render 5 extra columns on each side
21
+ * })
22
+ * ```
23
+ */
7
24
  export interface ColumnVirtualizationConfig {
8
25
  /** Auto-enable when column count exceeds threshold (default: true) */
9
26
  autoEnable?: boolean;
@@ -29,7 +46,12 @@ export interface ColumnVirtualizationState {
29
46
  /** Array of column left offsets (px) */
30
47
  columnOffsets: number[];
31
48
  }
32
- /** Viewport information for visible columns */
49
+ /**
50
+ * Describes the currently visible column range.
51
+ *
52
+ * Returned by viewport queries; used internally to determine which column
53
+ * cells to render and which to skip during horizontal scroll updates.
54
+ */
33
55
  export interface ColumnVirtualizationViewport {
34
56
  /** Index of first visible column */
35
57
  startCol: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../libs/grid/src/lib/plugins/column-virtualization/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,iEAAiE;AACjE,MAAM,WAAW,0BAA0B;IACzC,sEAAsE;IACtE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,iEAAiE;AACjE,MAAM,WAAW,yBAAyB;IACxC,iDAAiD;IACjD,aAAa,EAAE,OAAO,CAAC;IACvB,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,wCAAwC;IACxC,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,+CAA+C;AAC/C,MAAM,WAAW,4BAA4B;IAC3C,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAGD,OAAO,QAAQ,kBAAkB,CAAC;IAChC,UAAU,aAAa;QACrB,oBAAoB,EAAE,OAAO,8BAA8B,EAAE,0BAA0B,CAAC;KACzF;CACF"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../libs/grid/src/lib/plugins/column-virtualization/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,0BAA0B;IACzC,sEAAsE;IACtE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,iEAAiE;AACjE,MAAM,WAAW,yBAAyB;IACxC,iDAAiD;IACjD,aAAa,EAAE,OAAO,CAAC;IACvB,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,wCAAwC;IACxC,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAGD,OAAO,QAAQ,kBAAkB,CAAC;IAChC,UAAU,aAAa;QACrB,oBAAoB,EAAE,OAAO,8BAA8B,EAAE,0BAA0B,CAAC;KACzF;CACF"}