@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
@@ -1,11 +1,49 @@
1
1
  import { ColumnConfig } from '../../core/types';
2
- /** Position of the status bar relative to the grid */
2
+ /**
3
+ * Position of the status bar (info bar) relative to the grid body.
4
+ *
5
+ * - `'top'` — Renders above the grid header. Useful for summary toolbars.
6
+ * - `'bottom'` — Renders below the grid body (default). Standard placement for status information.
7
+ */
3
8
  export type PinnedRowsPosition = 'top' | 'bottom';
4
- /** Aggregator function signature */
9
+ /**
10
+ * Custom aggregation function signature.
11
+ *
12
+ * Receives all current rows, the target field name, and optionally the column config.
13
+ * Should return a single aggregated value (number, string, etc.) for display in the
14
+ * aggregation row cell.
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * const weightedAvg: AggregatorFn = (rows, field, column) => {
19
+ * const total = rows.reduce((sum, r) => sum + (r[field] * r.weight), 0);
20
+ * const weights = rows.reduce((sum, r) => sum + r.weight, 0);
21
+ * return weights ? total / weights : 0;
22
+ * };
23
+ * ```
24
+ */
5
25
  export type AggregatorFn = (rows: unknown[], field: string, column?: ColumnConfig) => unknown;
6
- /** Aggregator formatter function - formats the computed value for display */
26
+ /**
27
+ * Formats the computed aggregation value for display in the cell.
28
+ *
29
+ * Called after the aggregator function runs. Receives the raw computed value
30
+ * and should return a display string (e.g. currency formatting, unit suffixes).
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * const currencyFormatter: AggregatorFormatter = (value) =>
35
+ * `$${Number(value).toLocaleString('en-US', { minimumFractionDigits: 2 })}`;
36
+ * ```
37
+ */
7
38
  export type AggregatorFormatter = (value: unknown, field: string, column?: ColumnConfig) => string;
8
- /** Simple aggregator reference - string key for built-in or custom function */
39
+ /**
40
+ * Shorthand aggregator reference — either a built-in name or a custom function.
41
+ *
42
+ * Built-in names: `'sum'`, `'avg'`, `'min'`, `'max'`, `'count'`, `'first'`, `'last'`.
43
+ * Pass a custom {@link AggregatorFn} for non-standard aggregations.
44
+ *
45
+ * Use {@link AggregatorConfig} instead when you also need a custom formatter.
46
+ */
9
47
  export type AggregatorRef = string | AggregatorFn;
10
48
  /** Full aggregator config with optional formatter */
11
49
  export interface AggregatorConfig {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../libs/grid/src/lib/plugins/pinned-rows/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,sDAAsD;AACtD,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,QAAQ,CAAC;AAElD,oCAAoC;AACpC,MAAM,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC;AAE9F,6EAA6E;AAC7E,MAAM,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,KAAK,MAAM,CAAC;AAEnG,+EAA+E;AAC/E,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,YAAY,CAAC;AAElD,qDAAqD;AACrD,MAAM,WAAW,gBAAgB;IAC/B,qGAAqG;IACrG,OAAO,EAAE,aAAa,CAAC;IACvB,kEAAkE;IAClE,SAAS,CAAC,EAAE,mBAAmB,CAAC;CACjC;AAED,2EAA2E;AAC3E,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAEpE;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,mEAAmE;IACnE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC5B,+DAA+D;IAC/D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAA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