@toolbox-web/grid 1.18.0 → 1.19.1
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/all.js +112 -86
- package/all.js.map +1 -1
- package/index.js +2 -2
- package/lib/plugins/selection/SelectionPlugin.d.ts +21 -0
- package/lib/plugins/selection/SelectionPlugin.d.ts.map +1 -1
- package/lib/plugins/selection/index.js +182 -139
- package/lib/plugins/selection/index.js.map +1 -1
- package/lib/plugins/selection/types.d.ts +26 -0
- package/lib/plugins/selection/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/umd/grid.all.umd.js +14 -14
- package/umd/grid.all.umd.js.map +1 -1
- package/umd/plugins/selection.umd.js +2 -2
- package/umd/plugins/selection.umd.js.map +1 -1
package/index.js
CHANGED
|
@@ -2777,7 +2777,7 @@ ${Qi}
|
|
|
2777
2777
|
`;
|
|
2778
2778
|
class k extends HTMLElement {
|
|
2779
2779
|
static tagName = "tbw-grid";
|
|
2780
|
-
static version = "1.
|
|
2780
|
+
static version = "1.19.1";
|
|
2781
2781
|
static #l = 0;
|
|
2782
2782
|
static adapters = [];
|
|
2783
2783
|
static registerAdapter(e) {
|
|
@@ -3978,7 +3978,7 @@ const lo = {
|
|
|
3978
3978
|
class ao {
|
|
3979
3979
|
static dependencies;
|
|
3980
3980
|
static manifest;
|
|
3981
|
-
version = "1.
|
|
3981
|
+
version = "1.19.1";
|
|
3982
3982
|
styles;
|
|
3983
3983
|
cellRenderers;
|
|
3984
3984
|
headerRenderers;
|
|
@@ -32,6 +32,9 @@ import { CellRange, SelectionConfig, SelectionResult } from './types';
|
|
|
32
32
|
* | `Ctrl/Cmd + A` | Select all (range mode) |
|
|
33
33
|
* | `Escape` | Clear selection |
|
|
34
34
|
*
|
|
35
|
+
* > **Note:** When `multiSelect: false`, Ctrl/Shift modifiers are ignored —
|
|
36
|
+
* > clicks always select a single item.
|
|
37
|
+
*
|
|
35
38
|
* ## CSS Custom Properties
|
|
36
39
|
*
|
|
37
40
|
* | Property | Description |
|
|
@@ -233,6 +236,24 @@ export declare class SelectionPlugin extends BaseGridPlugin<SelectionConfig> {
|
|
|
233
236
|
* ```
|
|
234
237
|
*/
|
|
235
238
|
getSelectedRowIndices(): number[];
|
|
239
|
+
/**
|
|
240
|
+
* Get the actual row objects for the current selection.
|
|
241
|
+
*
|
|
242
|
+
* Works across all selection modes:
|
|
243
|
+
* - **Row mode**: Returns the row objects for all selected rows.
|
|
244
|
+
* - **Cell mode**: Returns the single row containing the selected cell, or `[]`.
|
|
245
|
+
* - **Range mode**: Returns the unique row objects that intersect any selected range.
|
|
246
|
+
*
|
|
247
|
+
* Row objects are resolved from the grid's processed (sorted/filtered) row array,
|
|
248
|
+
* so they always reflect the current visual order.
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
* ```ts
|
|
252
|
+
* const plugin = grid.getPlugin(SelectionPlugin);
|
|
253
|
+
* const selected = plugin.getSelectedRows(); // [{ id: 1, name: 'Alice' }, ...]
|
|
254
|
+
* ```
|
|
255
|
+
*/
|
|
256
|
+
getSelectedRows<T = unknown>(): T[];
|
|
236
257
|
/**
|
|
237
258
|
* Clear all selection.
|
|
238
259
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionPlugin.d.ts","sourceRoot":"","sources":["../../../../../../libs/grid/src/lib/plugins/selection/SelectionPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAUrD,OAAO,KAAK,EACV,SAAS,EAGT,eAAe,EAEf,eAAe,EAChB,MAAM,SAAS,CAAC;AAuDjB
|
|
1
|
+
{"version":3,"file":"Select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