@toolbox-web/grid 1.14.1 → 1.16.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/README.md +5 -1
- package/all.js +2013 -1564
- package/all.js.map +1 -1
- package/index.js +918 -880
- package/index.js.map +1 -1
- package/lib/core/grid.d.ts.map +1 -1
- package/lib/core/internal/columns.d.ts +0 -5
- package/lib/core/internal/columns.d.ts.map +1 -1
- package/lib/core/internal/rows.d.ts.map +1 -1
- package/lib/core/internal/validate-config.d.ts.map +1 -1
- package/lib/core/types.d.ts +12 -0
- package/lib/core/types.d.ts.map +1 -1
- package/lib/plugins/clipboard/index.js.map +1 -1
- package/lib/plugins/column-virtualization/ColumnVirtualizationPlugin.d.ts.map +1 -1
- package/lib/plugins/column-virtualization/index.js +1 -1
- package/lib/plugins/column-virtualization/index.js.map +1 -1
- package/lib/plugins/context-menu/ContextMenuPlugin.d.ts +20 -1
- package/lib/plugins/context-menu/ContextMenuPlugin.d.ts.map +1 -1
- package/lib/plugins/context-menu/index.d.ts +1 -1
- package/lib/plugins/context-menu/index.d.ts.map +1 -1
- package/lib/plugins/context-menu/index.js +177 -84
- package/lib/plugins/context-menu/index.js.map +1 -1
- package/lib/plugins/context-menu/menu.d.ts +7 -0
- package/lib/plugins/context-menu/menu.d.ts.map +1 -1
- package/lib/plugins/context-menu/types.d.ts +48 -2
- package/lib/plugins/context-menu/types.d.ts.map +1 -1
- package/lib/plugins/editing/EditingPlugin.d.ts.map +1 -1
- package/lib/plugins/editing/index.js +327 -298
- package/lib/plugins/editing/index.js.map +1 -1
- package/lib/plugins/export/index.js.map +1 -1
- package/lib/plugins/filtering/FilteringPlugin.d.ts +7 -1
- package/lib/plugins/filtering/FilteringPlugin.d.ts.map +1 -1
- package/lib/plugins/filtering/filter-model.d.ts.map +1 -1
- package/lib/plugins/filtering/index.js +173 -138
- package/lib/plugins/filtering/index.js.map +1 -1
- package/lib/plugins/grouping-columns/GroupingColumnsPlugin.d.ts +5 -1
- package/lib/plugins/grouping-columns/GroupingColumnsPlugin.d.ts.map +1 -1
- package/lib/plugins/grouping-columns/index.js +242 -109
- package/lib/plugins/grouping-columns/index.js.map +1 -1
- package/lib/plugins/grouping-columns/types.d.ts +7 -0
- package/lib/plugins/grouping-columns/types.d.ts.map +1 -1
- package/lib/plugins/grouping-rows/index.js.map +1 -1
- package/lib/plugins/master-detail/index.js.map +1 -1
- package/lib/plugins/multi-sort/index.js.map +1 -1
- package/lib/plugins/pinned-columns/PinnedColumnsPlugin.d.ts +11 -1
- package/lib/plugins/pinned-columns/PinnedColumnsPlugin.d.ts.map +1 -1
- package/lib/plugins/pinned-columns/index.d.ts +1 -1
- package/lib/plugins/pinned-columns/index.d.ts.map +1 -1
- package/lib/plugins/pinned-columns/index.js +174 -79
- package/lib/plugins/pinned-columns/index.js.map +1 -1
- package/lib/plugins/pinned-columns/pinned-columns.d.ts +23 -4
- package/lib/plugins/pinned-columns/pinned-columns.d.ts.map +1 -1
- package/lib/plugins/pinned-columns/types.d.ts +21 -9
- package/lib/plugins/pinned-columns/types.d.ts.map +1 -1
- package/lib/plugins/pinned-rows/index.js.map +1 -1
- package/lib/plugins/pivot/index.js.map +1 -1
- package/lib/plugins/print/index.js.map +1 -1
- package/lib/plugins/reorder/index.js.map +1 -1
- package/lib/plugins/responsive/index.js.map +1 -1
- package/lib/plugins/row-reorder/index.js.map +1 -1
- package/lib/plugins/selection/index.js.map +1 -1
- package/lib/plugins/server-side/index.js.map +1 -1
- package/lib/plugins/tree/index.js.map +1 -1
- package/lib/plugins/undo-redo/index.js.map +1 -1
- package/lib/plugins/visibility/VisibilityPlugin.d.ts +42 -2
- package/lib/plugins/visibility/VisibilityPlugin.d.ts.map +1 -1
- package/lib/plugins/visibility/index.d.ts +1 -1
- package/lib/plugins/visibility/index.d.ts.map +1 -1
- package/lib/plugins/visibility/index.js +219 -59
- package/lib/plugins/visibility/index.js.map +1 -1
- package/lib/plugins/visibility/types.d.ts +25 -0
- package/lib/plugins/visibility/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/umd/grid.all.umd.js +27 -27
- package/umd/grid.all.umd.js.map +1 -1
- package/umd/grid.umd.js +21 -21
- package/umd/grid.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/pinned-columns.umd.js +1 -1
- package/umd/plugins/pinned-columns.umd.js.map +1 -1
- package/umd/plugins/visibility.umd.js +1 -1
- package/umd/plugins/visibility.umd.js.map +1 -1
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import { TextDirection } from '../../core/internal/utils';
|
|
2
|
-
import {
|
|
2
|
+
import { PinnedPosition, ResolvedPinnedPosition } from './types';
|
|
3
|
+
type StickyPosition = PinnedPosition;
|
|
4
|
+
type ResolvedStickyPosition = ResolvedPinnedPosition;
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
6
|
+
* Get the effective pinned position from a column, checking `pinned` first then `sticky` (deprecated).
|
|
7
|
+
*
|
|
8
|
+
* @param col - Column configuration object
|
|
9
|
+
* @returns The pinned position, or undefined if not pinned
|
|
10
|
+
*/
|
|
11
|
+
export declare function getColumnPinned(col: any): PinnedPosition | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Resolve a pinned position to a physical position based on text direction.
|
|
5
14
|
*
|
|
6
15
|
* - `'left'` / `'right'` → unchanged (physical values)
|
|
7
16
|
* - `'start'` → `'left'` in LTR, `'right'` in RTL
|
|
8
17
|
* - `'end'` → `'right'` in LTR, `'left'` in RTL
|
|
9
18
|
*
|
|
10
|
-
* @param position - The
|
|
19
|
+
* @param position - The pinned position (logical or physical)
|
|
11
20
|
* @param direction - Text direction ('ltr' or 'rtl')
|
|
12
|
-
* @returns Physical
|
|
21
|
+
* @returns Physical pinned position ('left' or 'right')
|
|
13
22
|
*/
|
|
14
23
|
export declare function resolveStickyPosition(position: StickyPosition, direction: TextDirection): ResolvedStickyPosition;
|
|
15
24
|
/**
|
|
@@ -70,10 +79,20 @@ export declare function calculateRightStickyOffsets(columns: any[], getColumnWid
|
|
|
70
79
|
* @param columns - Array of column configurations
|
|
71
80
|
*/
|
|
72
81
|
export declare function applyStickyOffsets(host: HTMLElement, columns: any[]): void;
|
|
82
|
+
/**
|
|
83
|
+
* Reorder columns so that pinned-left columns come first and pinned-right columns come last.
|
|
84
|
+
* Maintains the relative order within each group (left-pinned, unpinned, right-pinned).
|
|
85
|
+
*
|
|
86
|
+
* @param columns - Array of column configurations (in their current order)
|
|
87
|
+
* @param direction - Text direction ('ltr' or 'rtl'), used to resolve logical positions
|
|
88
|
+
* @returns New array with pinned columns moved to the edges
|
|
89
|
+
*/
|
|
90
|
+
export declare function reorderColumnsForPinning(columns: readonly any[], direction?: TextDirection): any[];
|
|
73
91
|
/**
|
|
74
92
|
* Clear sticky positioning from all cells.
|
|
75
93
|
*
|
|
76
94
|
* @param host - The grid host element (render root for DOM queries)
|
|
77
95
|
*/
|
|
78
96
|
export declare function clearStickyOffsets(host: HTMLElement): void;
|
|
97
|
+
export {};
|
|
79
98
|
//# sourceMappingURL=pinned-columns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pinned-columns.d.ts","sourceRoot":"","sources":["../../../../../../libs/grid/src/lib/plugins/pinned-columns/pinned-columns.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAuC,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACpG,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"pinned-columns.d.ts","sourceR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K,MAAM,EACzC,SAAS,GAAE,aAAqB,GAC/B,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAcrB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,IAAI,CAgD1E;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,SAAS,GAAE,aAAqB,GAAG,GAAG,EAAE,CAiBzG;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAS1D"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Pinned Columns Plugin Types
|
|
3
3
|
*
|
|
4
4
|
* Type definitions for column pinning (sticky left/right columns).
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Column pin position.
|
|
8
8
|
*
|
|
9
9
|
* **Physical values** (always pin to specified side):
|
|
10
10
|
* - `'left'` - Pin to left edge
|
|
@@ -20,20 +20,28 @@
|
|
|
20
20
|
* @example
|
|
21
21
|
* ```typescript
|
|
22
22
|
* // Physical - always pins to left side regardless of direction
|
|
23
|
-
* { field: 'id',
|
|
23
|
+
* { field: 'id', pinned: 'left' }
|
|
24
24
|
*
|
|
25
25
|
* // Logical - pins to visual start (left in LTR, right in RTL)
|
|
26
|
-
* { field: 'id',
|
|
26
|
+
* { field: 'id', pinned: 'start' }
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
export type
|
|
29
|
+
export type PinnedPosition = 'left' | 'right' | 'start' | 'end';
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* @deprecated Use {@link PinnedPosition} instead. Will be removed in a future major version.
|
|
32
|
+
*/
|
|
33
|
+
export type StickyPosition = PinnedPosition;
|
|
34
|
+
/**
|
|
35
|
+
* Physical pin position after resolving logical values.
|
|
32
36
|
* Used internally after applying RTL resolution.
|
|
33
37
|
*/
|
|
34
|
-
export type
|
|
38
|
+
export type ResolvedPinnedPosition = 'left' | 'right';
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Use {@link ResolvedPinnedPosition} instead. Will be removed in a future major version.
|
|
41
|
+
*/
|
|
42
|
+
export type ResolvedStickyPosition = ResolvedPinnedPosition;
|
|
35
43
|
/**
|
|
36
|
-
* When PinnedColumnsPlugin is imported, the `
|
|
44
|
+
* When PinnedColumnsPlugin is imported, the `pinned` property becomes available on column config.
|
|
37
45
|
* This augments the core BaseColumnConfig interface.
|
|
38
46
|
*/
|
|
39
47
|
declare module '../../core/types' {
|
|
@@ -51,7 +59,11 @@ declare module '../../core/types' {
|
|
|
51
59
|
*
|
|
52
60
|
* Requires PinnedColumnsPlugin.
|
|
53
61
|
*/
|
|
54
|
-
|
|
62
|
+
pinned?: PinnedPosition;
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated Use `pinned` instead. Will be removed in a future major version.
|
|
65
|
+
*/
|
|
66
|
+
sticky?: PinnedPosition;
|
|
55
67
|
}
|
|
56
68
|
}
|
|
57
69
|
/** Configuration options for the pinned columns plugin */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../libs/grid/src/lib/plugins/pinned-columns/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC;AAEhE;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../libs/grid/src/lib/plugins/pinned-columns/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAM5D;;;GAGG;AACH,OAAO,QAAQ,kBAAkB,CAAC;IAChC,UAAU,gBAAgB,CAAC,IAAI,EAAE,MAAM;QACrC;;;;;;;;;;;;WAYG;QACH,MAAM,CAAC,EAAE,cAAc,CAAC;QAExB;;WAEG;QACH,MAAM,CAAC,EAAE,cAAc,CAAC;KACzB;CACF;AAED,0DAA0D;AAE1D,MAAM,WAAW,mBAAmB;CAEnC;AAED,0DAA0D;AAC1D,MAAM,WAAW,kBAAkB;IACjC,mDAAmD;IACnD,SAAS,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,oCAAoC;IACpC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC"}
|