@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,18 +3,52 @@
3
3
  *
4
4
  * Type definitions for the multi-column sorting feature.
5
5
  */
6
- /** Represents a single column sort configuration */
6
+ /**
7
+ * Represents a single column's sort configuration within a multi-sort model.
8
+ *
9
+ * The **order** of `SortModel` entries in the array determines sort precedence:
10
+ * the first entry is the primary sort, the second breaks ties in the primary, and so on.
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * // Primary: department ascending, secondary: salary descending
15
+ * const sortModel: SortModel[] = [
16
+ * { field: 'department', direction: 'asc' },
17
+ * { field: 'salary', direction: 'desc' },
18
+ * ];
19
+ * ```
20
+ */
7
21
  export interface SortModel {
8
- /** The field key to sort by */
22
+ /** The column field key to sort by. Must match a `field` in the grid's column configuration. */
9
23
  field: string;
10
- /** Sort direction */
24
+ /** Sort direction: `'asc'` for ascending (A→Z, 0→9), `'desc'` for descending (Z→A, 9→0). */
11
25
  direction: 'asc' | 'desc';
12
26
  }
13
- /** Configuration options for the multi-sort plugin */
27
+ /**
28
+ * Configuration options for the multi-sort plugin.
29
+ *
30
+ * Multi-sort allows users to sort by multiple columns simultaneously.
31
+ * Users add sort columns by Shift+clicking column headers; the headers
32
+ * display numbered badges (1, 2, 3…) indicating sort precedence.
33
+ *
34
+ * @example
35
+ * ```typescript
36
+ * new MultiSortPlugin({ maxSortColumns: 5, showSortIndex: true })
37
+ * ```
38
+ */
14
39
  export interface MultiSortConfig {
15
- /** Maximum number of columns to sort by (default: 3) */
40
+ /**
41
+ * Maximum number of columns that can be sorted simultaneously.
42
+ * Once the limit is reached, adding a new sort column replaces the oldest one.
43
+ * @default 3
44
+ */
16
45
  maxSortColumns?: number;
17
- /** Whether to show sort order badges (1, 2, 3) on headers (default: true) */
46
+ /**
47
+ * Whether to show numbered badges (1, 2, 3…) on sorted column headers
48
+ * to indicate sort precedence. Disable for a cleaner look when precedence
49
+ * is not important to the user.
50
+ * @default true
51
+ */
18
52
  showSortIndex?: boolean;
19
53
  }
20
54
  /** Internal state managed by the multi-sort plugin */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../libs/grid/src/lib/plugins/multi-sort/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,oDAAoD;AACpD,MAAM,WAAW,SAAS;IACxB,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC3B;AAED,sDAAsD;AACtD,MAAM,WAAW,eAAe;IAC9B,wDAAwD;IACxD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,sDAAsD;AACtD,MAAM,WAAW,cAAc;IAC7B,wDAAwD;IACxD,SAAS,EAAE,SAAS,EAAE,CAAC;CACxB;AAGD,OAAO,QAAQ,kBAAkB,CAAC;IAChC,UAAU,aAAa;QACrB,SAAS,EAAE,OAAO,mBAAmB,EAAE,eAAe,CAAC;KACxD;CACF"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../libs/grid/src/lib/plugins/multi-sort/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,SAAS;IACxB,gGAAgG;IAChG,KAAK,EAAE,MAAM,CAAC;IACd,4FAA4F;IAC5F,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,sDAAsD;AACtD,MAAM,WAAW,cAAc;IAC7B,wDAAwD;IACxD,SAAS,EAAE,SAAS,EAAE,CAAC;CACxB;AAGD,OAAO,QAAQ,kBAAkB,CAAC;IAChC,UAAU,aAAa;QACrB,SAAS,EAAE,OAAO,mBAAmB,EAAE,eAAe,CAAC;KACxD;CACF"}