@toolbox-web/grid-angular 0.7.1 → 0.8.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 +71 -0
- package/fesm2022/toolbox-web-grid-angular-features-clipboard.mjs +30 -0
- package/fesm2022/toolbox-web-grid-angular-features-clipboard.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-column-virtualization.mjs +28 -0
- package/fesm2022/toolbox-web-grid-angular-features-column-virtualization.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-context-menu.mjs +28 -0
- package/fesm2022/toolbox-web-grid-angular-features-context-menu.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-editing.mjs +33 -0
- package/fesm2022/toolbox-web-grid-angular-features-editing.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-export.mjs +29 -0
- package/fesm2022/toolbox-web-grid-angular-features-export.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-filtering.mjs +29 -0
- package/fesm2022/toolbox-web-grid-angular-features-filtering.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-grouping-columns.mjs +28 -0
- package/fesm2022/toolbox-web-grid-angular-features-grouping-columns.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-grouping-rows.mjs +25 -0
- package/fesm2022/toolbox-web-grid-angular-features-grouping-rows.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-master-detail.mjs +25 -0
- package/fesm2022/toolbox-web-grid-angular-features-master-detail.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-multi-sort.mjs +40 -0
- package/fesm2022/toolbox-web-grid-angular-features-multi-sort.mjs.map +1 -0
- package/{features/pinned-columns.d.ts → fesm2022/toolbox-web-grid-angular-features-pinned-columns.mjs} +11 -2
- package/fesm2022/toolbox-web-grid-angular-features-pinned-columns.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-pinned-rows.mjs +28 -0
- package/fesm2022/toolbox-web-grid-angular-features-pinned-rows.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-pivot.mjs +25 -0
- package/fesm2022/toolbox-web-grid-angular-features-pivot.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-print.mjs +28 -0
- package/fesm2022/toolbox-web-grid-angular-features-print.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-reorder.mjs +28 -0
- package/fesm2022/toolbox-web-grid-angular-features-reorder.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-responsive.mjs +28 -0
- package/fesm2022/toolbox-web-grid-angular-features-responsive.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-row-reorder.mjs +28 -0
- package/fesm2022/toolbox-web-grid-angular-features-row-reorder.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-selection.mjs +30 -0
- package/fesm2022/toolbox-web-grid-angular-features-selection.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-server-side.mjs +25 -0
- package/fesm2022/toolbox-web-grid-angular-features-server-side.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-sorting.mjs +25 -0
- package/fesm2022/toolbox-web-grid-angular-features-sorting.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-tree.mjs +28 -0
- package/fesm2022/toolbox-web-grid-angular-features-tree.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-undo-redo.mjs +30 -0
- package/fesm2022/toolbox-web-grid-angular-features-undo-redo.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular-features-visibility.mjs +28 -0
- package/fesm2022/toolbox-web-grid-angular-features-visibility.mjs.map +1 -0
- package/fesm2022/toolbox-web-grid-angular.mjs +3376 -0
- package/fesm2022/toolbox-web-grid-angular.mjs.map +1 -0
- package/package.json +109 -35
- package/types/toolbox-web-grid-angular-features-clipboard.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-clipboard.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-column-virtualization.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-column-virtualization.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-context-menu.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-context-menu.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-editing.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-editing.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-export.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-export.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-filtering.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-filtering.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-grouping-columns.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-grouping-columns.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-grouping-rows.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-grouping-rows.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-master-detail.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-master-detail.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-multi-sort.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-multi-sort.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-pinned-columns.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-pinned-columns.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-pinned-rows.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-pinned-rows.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-pivot.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-pivot.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-print.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-print.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-reorder.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-reorder.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-responsive.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-responsive.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-row-reorder.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-row-reorder.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-selection.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-selection.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-server-side.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-server-side.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-sorting.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-sorting.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-tree.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-tree.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-undo-redo.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-undo-redo.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular-features-visibility.d.ts +3 -0
- package/types/toolbox-web-grid-angular-features-visibility.d.ts.map +1 -0
- package/types/toolbox-web-grid-angular.d.ts +2468 -0
- package/types/toolbox-web-grid-angular.d.ts.map +1 -0
- package/feature-registry-C-cKloXB.js +0 -45
- package/features/clipboard.d.ts +0 -18
- package/features/clipboard.d.ts.map +0 -1
- package/features/clipboard.js +0 -3
- package/features/column-virtualization.d.ts +0 -16
- package/features/column-virtualization.d.ts.map +0 -1
- package/features/column-virtualization.js +0 -3
- package/features/context-menu.d.ts +0 -16
- package/features/context-menu.d.ts.map +0 -1
- package/features/context-menu.js +0 -3
- package/features/editing.d.ts +0 -16
- package/features/editing.d.ts.map +0 -1
- package/features/editing.js +0 -3
- package/features/export.d.ts +0 -17
- package/features/export.d.ts.map +0 -1
- package/features/export.js +0 -3
- package/features/filtering.d.ts +0 -17
- package/features/filtering.d.ts.map +0 -1
- package/features/filtering.js +0 -3
- package/features/grouping-columns.d.ts +0 -16
- package/features/grouping-columns.d.ts.map +0 -1
- package/features/grouping-columns.js +0 -3
- package/features/grouping-rows.d.ts +0 -16
- package/features/grouping-rows.d.ts.map +0 -1
- package/features/grouping-rows.js +0 -3
- package/features/index.d.ts +0 -1
- package/features/index.d.ts.map +0 -1
- package/features/index.js +0 -22
- package/features/master-detail.d.ts +0 -16
- package/features/master-detail.d.ts.map +0 -1
- package/features/master-detail.js +0 -3
- package/features/multi-sort.d.ts +0 -22
- package/features/multi-sort.d.ts.map +0 -1
- package/features/multi-sort.js +0 -3
- package/features/pinned-columns.d.ts.map +0 -1
- package/features/pinned-columns.js +0 -3
- package/features/pinned-rows.d.ts +0 -16
- package/features/pinned-rows.d.ts.map +0 -1
- package/features/pinned-rows.js +0 -3
- package/features/pivot.d.ts +0 -16
- package/features/pivot.d.ts.map +0 -1
- package/features/pivot.js +0 -3
- package/features/print.d.ts +0 -16
- package/features/print.d.ts.map +0 -1
- package/features/print.js +0 -3
- package/features/reorder.d.ts +0 -16
- package/features/reorder.d.ts.map +0 -1
- package/features/reorder.js +0 -3
- package/features/responsive.d.ts +0 -16
- package/features/responsive.d.ts.map +0 -1
- package/features/responsive.js +0 -3
- package/features/row-reorder.d.ts +0 -16
- package/features/row-reorder.d.ts.map +0 -1
- package/features/row-reorder.js +0 -3
- package/features/selection.d.ts +0 -16
- package/features/selection.d.ts.map +0 -1
- package/features/selection.js +0 -3
- package/features/server-side.d.ts +0 -16
- package/features/server-side.d.ts.map +0 -1
- package/features/server-side.js +0 -3
- package/features/sorting.d.ts +0 -1
- package/features/sorting.d.ts.map +0 -1
- package/features/sorting.js +0 -1
- package/features/tree.d.ts +0 -16
- package/features/tree.d.ts.map +0 -1
- package/features/tree.js +0 -3
- package/features/undo-redo.d.ts +0 -18
- package/features/undo-redo.d.ts.map +0 -1
- package/features/undo-redo.js +0 -3
- package/features/visibility.d.ts +0 -16
- package/features/visibility.d.ts.map +0 -1
- package/features/visibility.js +0 -3
- package/index.d.ts +0 -34
- package/index.d.ts.map +0 -1
- package/index.js +0 -1916
- package/lib/angular-column-config.d.ts +0 -140
- package/lib/angular-column-config.d.ts.map +0 -1
- package/lib/angular-grid-adapter.d.ts +0 -220
- package/lib/angular-grid-adapter.d.ts.map +0 -1
- package/lib/base-grid-editor.d.ts +0 -145
- package/lib/base-grid-editor.d.ts.map +0 -1
- package/lib/component-registry.d.ts +0 -63
- package/lib/component-registry.d.ts.map +0 -1
- package/lib/directives/grid-column-editor.directive.d.ts +0 -113
- package/lib/directives/grid-column-editor.directive.d.ts.map +0 -1
- package/lib/directives/grid-column-view.directive.d.ts +0 -69
- package/lib/directives/grid-column-view.directive.d.ts.map +0 -1
- package/lib/directives/grid-detail-view.directive.d.ts +0 -75
- package/lib/directives/grid-detail-view.directive.d.ts.map +0 -1
- package/lib/directives/grid-form-array.directive.d.ts +0 -141
- package/lib/directives/grid-form-array.directive.d.ts.map +0 -1
- package/lib/directives/grid-responsive-card.directive.d.ts +0 -92
- package/lib/directives/grid-responsive-card.directive.d.ts.map +0 -1
- package/lib/directives/grid-tool-panel.directive.d.ts +0 -91
- package/lib/directives/grid-tool-panel.directive.d.ts.map +0 -1
- package/lib/directives/grid.directive.d.ts +0 -808
- package/lib/directives/grid.directive.d.ts.map +0 -1
- package/lib/directives/index.d.ts +0 -9
- package/lib/directives/index.d.ts.map +0 -1
- package/lib/directives/structural-directives.d.ts +0 -174
- package/lib/directives/structural-directives.d.ts.map +0 -1
- package/lib/feature-registry.d.ts +0 -72
- package/lib/feature-registry.d.ts.map +0 -1
- package/lib/grid-type-registry.d.ts +0 -110
- package/lib/grid-type-registry.d.ts.map +0 -1
- package/lib/inject-grid.d.ts +0 -109
- package/lib/inject-grid.d.ts.map +0 -1
- package/lib/interfaces/grid-cell-editor.d.ts +0 -85
- package/lib/interfaces/grid-cell-editor.d.ts.map +0 -1
- package/lib/interfaces/grid-cell-renderer.d.ts +0 -63
- package/lib/interfaces/grid-cell-renderer.d.ts.map +0 -1
- package/lib/interfaces/index.d.ts +0 -5
- package/lib/interfaces/index.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@ Angular adapter for `@toolbox-web/grid` data grid component. Provides directives
|
|
|
14
14
|
- ✅ **Template-driven editors** - Use `<ng-template>` for custom cell editors
|
|
15
15
|
- ✅ **Component-class column config** - Specify component classes directly in `gridConfig.columns`
|
|
16
16
|
- ✅ **Type-level defaults** - App-wide renderers/editors via `provideGridTypeDefaults()`
|
|
17
|
+
- ✅ **Icon configuration** - App-wide icon overrides via `provideGridIcons()`
|
|
17
18
|
- ✅ **Reactive Forms integration** - Use `formControlName` and `formControl` bindings
|
|
18
19
|
- ✅ **Auto-wiring** - Editor components just emit events, no manual binding needed
|
|
19
20
|
- ✅ **Full type safety** - Typed template contexts (`GridCellContext`, `GridEditorContext`)
|
|
@@ -359,6 +360,68 @@ export class MyGridComponent {
|
|
|
359
360
|
| `GridTypeRegistry` | Injectable service for dynamic registration |
|
|
360
361
|
| `GRID_TYPE_DEFAULTS` | Injection token for type defaults |
|
|
361
362
|
|
|
363
|
+
## App-Wide Icon Configuration
|
|
364
|
+
|
|
365
|
+
Customize grid icons at the application level using `provideGridIcons()`:
|
|
366
|
+
|
|
367
|
+
```typescript
|
|
368
|
+
// app.config.ts
|
|
369
|
+
import { ApplicationConfig } from '@angular/core';
|
|
370
|
+
import { provideGridIcons } from '@toolbox-web/grid-angular';
|
|
371
|
+
|
|
372
|
+
export const appConfig: ApplicationConfig = {
|
|
373
|
+
providers: [
|
|
374
|
+
provideGridIcons({
|
|
375
|
+
expand: '➕',
|
|
376
|
+
collapse: '➖',
|
|
377
|
+
sortAsc: '↑',
|
|
378
|
+
sortDesc: '↓',
|
|
379
|
+
filter: '<svg viewBox="0 0 16 16">...</svg>',
|
|
380
|
+
}),
|
|
381
|
+
],
|
|
382
|
+
};
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
**Dynamic Icon Registration:**
|
|
386
|
+
|
|
387
|
+
```typescript
|
|
388
|
+
import { Component, inject, OnInit } from '@angular/core';
|
|
389
|
+
import { GridIconRegistry } from '@toolbox-web/grid-angular';
|
|
390
|
+
|
|
391
|
+
@Component({ ... })
|
|
392
|
+
export class AppComponent implements OnInit {
|
|
393
|
+
private iconRegistry = inject(GridIconRegistry);
|
|
394
|
+
|
|
395
|
+
ngOnInit() {
|
|
396
|
+
// Dynamically set icons
|
|
397
|
+
this.iconRegistry.set('expand', '▶');
|
|
398
|
+
this.iconRegistry.set('collapse', '▼');
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
**Available Icons:**
|
|
404
|
+
|
|
405
|
+
| Icon | Default | Description |
|
|
406
|
+
| -------------- | ------- | ------------------------------------ |
|
|
407
|
+
| `expand` | `▶` | Expand icon for trees/groups/details |
|
|
408
|
+
| `collapse` | `▼` | Collapse icon |
|
|
409
|
+
| `sortAsc` | `▲` | Sort ascending indicator |
|
|
410
|
+
| `sortDesc` | `▼` | Sort descending indicator |
|
|
411
|
+
| `sortNone` | `⇅` | Unsorted indicator |
|
|
412
|
+
| `filter` | SVG | Filter icon in headers |
|
|
413
|
+
| `filterActive` | SVG | Filter icon when active |
|
|
414
|
+
| `submenuArrow` | `▶` | Context menu submenu arrow |
|
|
415
|
+
| `dragHandle` | `⋮⋮` | Drag handle for reordering |
|
|
416
|
+
| `toolPanel` | `☰` | Tool panel toggle icon |
|
|
417
|
+
| `print` | `🖨️` | Print button icon |
|
|
418
|
+
|
|
419
|
+
**Precedence (highest wins):**
|
|
420
|
+
|
|
421
|
+
1. `gridConfig.icons` - Per-grid overrides
|
|
422
|
+
2. `provideGridIcons()` - App-level defaults
|
|
423
|
+
3. Built-in defaults
|
|
424
|
+
|
|
362
425
|
## Component-Class Column Config
|
|
363
426
|
|
|
364
427
|
For maximum flexibility and type safety, you can specify Angular component classes directly in your `gridConfig.columns`. This approach gives you full control over the component lifecycle while keeping your grid configuration clean and concise.
|
|
@@ -782,6 +845,14 @@ if (context?.hasFormGroups) {
|
|
|
782
845
|
| `GridTypeRegistry` | Injectable service for dynamic registration |
|
|
783
846
|
| `GRID_TYPE_DEFAULTS` | Injection token for type defaults |
|
|
784
847
|
|
|
848
|
+
### Icon Registry
|
|
849
|
+
|
|
850
|
+
| Export | Description |
|
|
851
|
+
| -------------------- | ------------------------------------------------ |
|
|
852
|
+
| `provideGridIcons()` | Provider factory for app-level icon overrides |
|
|
853
|
+
| `GridIconRegistry` | Injectable service for dynamic icon registration |
|
|
854
|
+
| `GRID_ICONS` | Injection token for icon overrides |
|
|
855
|
+
|
|
785
856
|
### Grid Directive Inputs
|
|
786
857
|
|
|
787
858
|
| Input | Type | Description |
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ClipboardPlugin } from '@toolbox-web/grid/plugins/clipboard';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Clipboard feature for @toolbox-web/grid-angular
|
|
6
|
+
*
|
|
7
|
+
* Import this module to enable the `clipboard` input on Grid directive.
|
|
8
|
+
* Requires selection feature to be enabled.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import '@toolbox-web/grid-angular/features/selection';
|
|
13
|
+
* import '@toolbox-web/grid-angular/features/clipboard';
|
|
14
|
+
*
|
|
15
|
+
* <tbw-grid [selection]="'range'" [clipboard]="true" />
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @packageDocumentation
|
|
19
|
+
*/
|
|
20
|
+
registerFeature('clipboard', (config) => {
|
|
21
|
+
if (config === true) {
|
|
22
|
+
return new ClipboardPlugin();
|
|
23
|
+
}
|
|
24
|
+
return new ClipboardPlugin(config ?? undefined);
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Generated bundle index. Do not edit.
|
|
29
|
+
*/
|
|
30
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-clipboard.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-clipboard.mjs","sources":["../../../../libs/grid-angular/features/clipboard/src/index.ts","../../../../libs/grid-angular/features/clipboard/src/toolbox-web-grid-angular-features-clipboard.ts"],"sourcesContent":["/**\n * Clipboard feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `clipboard` input on Grid directive.\n * Requires selection feature to be enabled.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/selection';\n * import '@toolbox-web/grid-angular/features/clipboard';\n *\n * <tbw-grid [selection]=\"'range'\" [clipboard]=\"true\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { ClipboardPlugin } from '@toolbox-web/grid/plugins/clipboard';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('clipboard', (config) => {\n if (config === true) {\n return new ClipboardPlugin();\n }\n return new ClipboardPlugin(config ?? undefined);\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;AAeG;AAKH,eAAe,CAAC,WAAW,EAAE,CAAC,MAAM,KAAI;AACtC,IAAA,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,OAAO,IAAI,eAAe,EAAE;IAC9B;AACA,IAAA,OAAO,IAAI,eAAe,CAAC,MAAM,IAAI,SAAS,CAAC;AACjD,CAAC,CAAC;;ACzBF;;AAEG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ColumnVirtualizationPlugin } from '@toolbox-web/grid/plugins/column-virtualization';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Column virtualization feature for @toolbox-web/grid-angular
|
|
6
|
+
*
|
|
7
|
+
* Import this module to enable the `columnVirtualization` input on Grid directive.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import '@toolbox-web/grid-angular/features/column-virtualization';
|
|
12
|
+
*
|
|
13
|
+
* <tbw-grid [columnVirtualization]="true" />
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
registerFeature('columnVirtualization', (config) => {
|
|
19
|
+
if (config === true) {
|
|
20
|
+
return new ColumnVirtualizationPlugin();
|
|
21
|
+
}
|
|
22
|
+
return new ColumnVirtualizationPlugin(config ?? undefined);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Generated bundle index. Do not edit.
|
|
27
|
+
*/
|
|
28
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-column-virtualization.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-column-virtualization.mjs","sources":["../../../../libs/grid-angular/features/column-virtualization/src/index.ts","../../../../libs/grid-angular/features/column-virtualization/src/toolbox-web-grid-angular-features-column-virtualization.ts"],"sourcesContent":["/**\n * Column virtualization feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `columnVirtualization` input on Grid directive.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/column-virtualization';\n *\n * <tbw-grid [columnVirtualization]=\"true\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { ColumnVirtualizationPlugin } from '@toolbox-web/grid/plugins/column-virtualization';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('columnVirtualization', (config) => {\n if (config === true) {\n return new ColumnVirtualizationPlugin();\n }\n return new ColumnVirtualizationPlugin(config ?? undefined);\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;AAaG;AAKH,eAAe,CAAC,sBAAsB,EAAE,CAAC,MAAM,KAAI;AACjD,IAAA,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,OAAO,IAAI,0BAA0B,EAAE;IACzC;AACA,IAAA,OAAO,IAAI,0BAA0B,CAAC,MAAM,IAAI,SAAS,CAAC;AAC5D,CAAC,CAAC;;ACvBF;;AAEG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ContextMenuPlugin } from '@toolbox-web/grid/plugins/context-menu';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Context menu feature for @toolbox-web/grid-angular
|
|
6
|
+
*
|
|
7
|
+
* Import this module to enable the `contextMenu` input on Grid directive.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import '@toolbox-web/grid-angular/features/context-menu';
|
|
12
|
+
*
|
|
13
|
+
* <tbw-grid [contextMenu]="true" />
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
registerFeature('contextMenu', (config) => {
|
|
19
|
+
if (config === true) {
|
|
20
|
+
return new ContextMenuPlugin();
|
|
21
|
+
}
|
|
22
|
+
return new ContextMenuPlugin(config ?? undefined);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Generated bundle index. Do not edit.
|
|
27
|
+
*/
|
|
28
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-context-menu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-context-menu.mjs","sources":["../../../../libs/grid-angular/features/context-menu/src/index.ts","../../../../libs/grid-angular/features/context-menu/src/toolbox-web-grid-angular-features-context-menu.ts"],"sourcesContent":["/**\n * Context menu feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `contextMenu` input on Grid directive.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/context-menu';\n *\n * <tbw-grid [contextMenu]=\"true\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { ContextMenuPlugin } from '@toolbox-web/grid/plugins/context-menu';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('contextMenu', (config) => {\n if (config === true) {\n return new ContextMenuPlugin();\n }\n return new ContextMenuPlugin(config ?? undefined);\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;AAaG;AAKH,eAAe,CAAC,aAAa,EAAE,CAAC,MAAM,KAAI;AACxC,IAAA,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,OAAO,IAAI,iBAAiB,EAAE;IAChC;AACA,IAAA,OAAO,IAAI,iBAAiB,CAAC,MAAM,IAAI,SAAS,CAAC;AACnD,CAAC,CAAC;;ACvBF;;AAEG"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EditingPlugin } from '@toolbox-web/grid/plugins/editing';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Editing feature for @toolbox-web/grid-angular
|
|
6
|
+
*
|
|
7
|
+
* Import this module to enable the `editing` input on Grid directive.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import '@toolbox-web/grid-angular/features/editing';
|
|
12
|
+
*
|
|
13
|
+
* <tbw-grid [editing]="'dblclick'" />
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
registerFeature('editing', (config) => {
|
|
19
|
+
// Handle shorthand: true, 'click', 'dblclick', 'manual'
|
|
20
|
+
if (config === true) {
|
|
21
|
+
return new EditingPlugin({ editOn: 'dblclick' });
|
|
22
|
+
}
|
|
23
|
+
if (config === 'click' || config === 'dblclick' || config === 'manual') {
|
|
24
|
+
return new EditingPlugin({ editOn: config });
|
|
25
|
+
}
|
|
26
|
+
// Full config object
|
|
27
|
+
return new EditingPlugin(config ?? undefined);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Generated bundle index. Do not edit.
|
|
32
|
+
*/
|
|
33
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-editing.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-editing.mjs","sources":["../../../../libs/grid-angular/features/editing/src/index.ts","../../../../libs/grid-angular/features/editing/src/toolbox-web-grid-angular-features-editing.ts"],"sourcesContent":["/**\n * Editing feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `editing` input on Grid directive.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/editing';\n *\n * <tbw-grid [editing]=\"'dblclick'\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { EditingPlugin } from '@toolbox-web/grid/plugins/editing';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('editing', (config) => {\n // Handle shorthand: true, 'click', 'dblclick', 'manual'\n if (config === true) {\n return new EditingPlugin({ editOn: 'dblclick' });\n }\n if (config === 'click' || config === 'dblclick' || config === 'manual') {\n return new EditingPlugin({ editOn: config });\n }\n // Full config object\n return new EditingPlugin(config ?? undefined);\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;AAaG;AAKH,eAAe,CAAC,SAAS,EAAE,CAAC,MAAM,KAAI;;AAEpC,IAAA,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,OAAO,IAAI,aAAa,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IAClD;AACA,IAAA,IAAI,MAAM,KAAK,OAAO,IAAI,MAAM,KAAK,UAAU,IAAI,MAAM,KAAK,QAAQ,EAAE;QACtE,OAAO,IAAI,aAAa,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC9C;;AAEA,IAAA,OAAO,IAAI,aAAa,CAAC,MAAM,IAAI,SAAS,CAAC;AAC/C,CAAC,CAAC;;AC5BF;;AAEG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ExportPlugin } from '@toolbox-web/grid/plugins/export';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Export feature for @toolbox-web/grid-angular
|
|
6
|
+
*
|
|
7
|
+
* Import this module to enable the `exportFeature` input on Grid directive.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import '@toolbox-web/grid-angular/features/export';
|
|
12
|
+
*
|
|
13
|
+
* <tbw-grid [exportFeature]="true" />
|
|
14
|
+
* <tbw-grid [exportFeature]="{ filename: 'data.csv' }" />
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @packageDocumentation
|
|
18
|
+
*/
|
|
19
|
+
registerFeature('export', (config) => {
|
|
20
|
+
if (config === true) {
|
|
21
|
+
return new ExportPlugin();
|
|
22
|
+
}
|
|
23
|
+
return new ExportPlugin(config ?? undefined);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Generated bundle index. Do not edit.
|
|
28
|
+
*/
|
|
29
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-export.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-export.mjs","sources":["../../../../libs/grid-angular/features/export/src/index.ts","../../../../libs/grid-angular/features/export/src/toolbox-web-grid-angular-features-export.ts"],"sourcesContent":["/**\n * Export feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `exportFeature` input on Grid directive.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/export';\n *\n * <tbw-grid [exportFeature]=\"true\" />\n * <tbw-grid [exportFeature]=\"{ filename: 'data.csv' }\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { ExportPlugin } from '@toolbox-web/grid/plugins/export';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('export', (config) => {\n if (config === true) {\n return new ExportPlugin();\n }\n return new ExportPlugin(config ?? undefined);\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;AAcG;AAKH,eAAe,CAAC,QAAQ,EAAE,CAAC,MAAM,KAAI;AACnC,IAAA,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,OAAO,IAAI,YAAY,EAAE;IAC3B;AACA,IAAA,OAAO,IAAI,YAAY,CAAC,MAAM,IAAI,SAAS,CAAC;AAC9C,CAAC,CAAC;;ACxBF;;AAEG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FilteringPlugin } from '@toolbox-web/grid/plugins/filtering';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Filtering feature for @toolbox-web/grid-angular
|
|
6
|
+
*
|
|
7
|
+
* Import this module to enable the `filtering` input on Grid directive.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import '@toolbox-web/grid-angular/features/filtering';
|
|
12
|
+
*
|
|
13
|
+
* <tbw-grid [filtering]="true" />
|
|
14
|
+
* <tbw-grid [filtering]="{ debounceMs: 200 }" />
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @packageDocumentation
|
|
18
|
+
*/
|
|
19
|
+
registerFeature('filtering', (config) => {
|
|
20
|
+
if (config === true) {
|
|
21
|
+
return new FilteringPlugin();
|
|
22
|
+
}
|
|
23
|
+
return new FilteringPlugin(config ?? undefined);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Generated bundle index. Do not edit.
|
|
28
|
+
*/
|
|
29
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-filtering.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-filtering.mjs","sources":["../../../../libs/grid-angular/features/filtering/src/index.ts","../../../../libs/grid-angular/features/filtering/src/toolbox-web-grid-angular-features-filtering.ts"],"sourcesContent":["/**\n * Filtering feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `filtering` input on Grid directive.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/filtering';\n *\n * <tbw-grid [filtering]=\"true\" />\n * <tbw-grid [filtering]=\"{ debounceMs: 200 }\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { FilteringPlugin } from '@toolbox-web/grid/plugins/filtering';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('filtering', (config) => {\n if (config === true) {\n return new FilteringPlugin();\n }\n return new FilteringPlugin(config ?? undefined);\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;AAcG;AAKH,eAAe,CAAC,WAAW,EAAE,CAAC,MAAM,KAAI;AACtC,IAAA,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,OAAO,IAAI,eAAe,EAAE;IAC9B;AACA,IAAA,OAAO,IAAI,eAAe,CAAC,MAAM,IAAI,SAAS,CAAC;AACjD,CAAC,CAAC;;ACxBF;;AAEG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { GroupingColumnsPlugin } from '@toolbox-web/grid/plugins/grouping-columns';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Column grouping feature for @toolbox-web/grid-angular
|
|
6
|
+
*
|
|
7
|
+
* Import this module to enable the `groupingColumns` input on Grid directive.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import '@toolbox-web/grid-angular/features/grouping-columns';
|
|
12
|
+
*
|
|
13
|
+
* <tbw-grid [groupingColumns]="{ columnGroups: [...] }" />
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
registerFeature('groupingColumns', (config) => {
|
|
19
|
+
if (config === true) {
|
|
20
|
+
return new GroupingColumnsPlugin();
|
|
21
|
+
}
|
|
22
|
+
return new GroupingColumnsPlugin(config ?? undefined);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Generated bundle index. Do not edit.
|
|
27
|
+
*/
|
|
28
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-grouping-columns.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-grouping-columns.mjs","sources":["../../../../libs/grid-angular/features/grouping-columns/src/index.ts","../../../../libs/grid-angular/features/grouping-columns/src/toolbox-web-grid-angular-features-grouping-columns.ts"],"sourcesContent":["/**\n * Column grouping feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `groupingColumns` input on Grid directive.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/grouping-columns';\n *\n * <tbw-grid [groupingColumns]=\"{ columnGroups: [...] }\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { GroupingColumnsPlugin } from '@toolbox-web/grid/plugins/grouping-columns';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('groupingColumns', (config) => {\n if (config === true) {\n return new GroupingColumnsPlugin();\n }\n return new GroupingColumnsPlugin(config ?? undefined);\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;AAaG;AAKH,eAAe,CAAC,iBAAiB,EAAE,CAAC,MAAM,KAAI;AAC5C,IAAA,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,OAAO,IAAI,qBAAqB,EAAE;IACpC;AACA,IAAA,OAAO,IAAI,qBAAqB,CAAC,MAAM,IAAI,SAAS,CAAC;AACvD,CAAC,CAAC;;ACvBF;;AAEG"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { GroupingRowsPlugin } from '@toolbox-web/grid/plugins/grouping-rows';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Row grouping feature for @toolbox-web/grid-angular
|
|
6
|
+
*
|
|
7
|
+
* Import this module to enable the `groupingRows` input on Grid directive.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import '@toolbox-web/grid-angular/features/grouping-rows';
|
|
12
|
+
*
|
|
13
|
+
* <tbw-grid [groupingRows]="{ groupBy: ['department'] }" />
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
registerFeature('groupingRows', (config) => {
|
|
19
|
+
return new GroupingRowsPlugin(config ?? undefined);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Generated bundle index. Do not edit.
|
|
24
|
+
*/
|
|
25
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-grouping-rows.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-grouping-rows.mjs","sources":["../../../../libs/grid-angular/features/grouping-rows/src/index.ts","../../../../libs/grid-angular/features/grouping-rows/src/toolbox-web-grid-angular-features-grouping-rows.ts"],"sourcesContent":["/**\n * Row grouping feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `groupingRows` input on Grid directive.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/grouping-rows';\n *\n * <tbw-grid [groupingRows]=\"{ groupBy: ['department'] }\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { GroupingRowsPlugin } from '@toolbox-web/grid/plugins/grouping-rows';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('groupingRows', (config) => {\n return new GroupingRowsPlugin(config ?? undefined);\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;AAaG;AAKH,eAAe,CAAC,cAAc,EAAE,CAAC,MAAM,KAAI;AACzC,IAAA,OAAO,IAAI,kBAAkB,CAAC,MAAM,IAAI,SAAS,CAAC;AACpD,CAAC,CAAC;;ACpBF;;AAEG"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MasterDetailPlugin } from '@toolbox-web/grid/plugins/master-detail';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Master-detail feature for @toolbox-web/grid-angular
|
|
6
|
+
*
|
|
7
|
+
* Import this module to enable the `masterDetail` input on Grid directive.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import '@toolbox-web/grid-angular/features/master-detail';
|
|
12
|
+
*
|
|
13
|
+
* <tbw-grid [masterDetail]="{ detailRenderer: myRenderer }" />
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
registerFeature('masterDetail', (config) => {
|
|
19
|
+
return new MasterDetailPlugin(config ?? undefined);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Generated bundle index. Do not edit.
|
|
24
|
+
*/
|
|
25
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-master-detail.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-master-detail.mjs","sources":["../../../../libs/grid-angular/features/master-detail/src/index.ts","../../../../libs/grid-angular/features/master-detail/src/toolbox-web-grid-angular-features-master-detail.ts"],"sourcesContent":["/**\n * Master-detail feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `masterDetail` input on Grid directive.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/master-detail';\n *\n * <tbw-grid [masterDetail]=\"{ detailRenderer: myRenderer }\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { MasterDetailPlugin } from '@toolbox-web/grid/plugins/master-detail';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('masterDetail', (config) => {\n return new MasterDetailPlugin(config ?? undefined);\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;AAaG;AAKH,eAAe,CAAC,cAAc,EAAE,CAAC,MAAM,KAAI;AACzC,IAAA,OAAO,IAAI,kBAAkB,CAAC,MAAM,IAAI,SAAS,CAAC;AACpD,CAAC,CAAC;;ACpBF;;AAEG"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { MultiSortPlugin } from '@toolbox-web/grid/plugins/multi-sort';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Multi-sort feature for @toolbox-web/grid-angular
|
|
6
|
+
*
|
|
7
|
+
* Import this module to enable the `multiSort` input on Grid directive.
|
|
8
|
+
* Multi-sort allows sorting by multiple columns simultaneously.
|
|
9
|
+
*
|
|
10
|
+
* For basic single-column sorting, columns with `sortable: true` work without this plugin.
|
|
11
|
+
* Use `[sortable]="false"` on the grid to disable all sorting.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import '@toolbox-web/grid-angular/features/multi-sort';
|
|
16
|
+
*
|
|
17
|
+
* <tbw-grid [multiSort]="true" />
|
|
18
|
+
* <tbw-grid [multiSort]="'single'" />
|
|
19
|
+
* <tbw-grid [multiSort]="{ maxSortColumns: 3 }" />
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @packageDocumentation
|
|
23
|
+
*/
|
|
24
|
+
registerFeature('multiSort', (config) => {
|
|
25
|
+
// Handle shorthand: true, 'single', 'multi'
|
|
26
|
+
if (config === true || config === 'multi') {
|
|
27
|
+
return new MultiSortPlugin();
|
|
28
|
+
}
|
|
29
|
+
if (config === 'single') {
|
|
30
|
+
return new MultiSortPlugin({ maxSortColumns: 1 });
|
|
31
|
+
}
|
|
32
|
+
// Full config object
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
34
|
+
return new MultiSortPlugin(config);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Generated bundle index. Do not edit.
|
|
39
|
+
*/
|
|
40
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-multi-sort.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-multi-sort.mjs","sources":["../../../../libs/grid-angular/features/multi-sort/src/index.ts","../../../../libs/grid-angular/features/multi-sort/src/toolbox-web-grid-angular-features-multi-sort.ts"],"sourcesContent":["/**\n * Multi-sort feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `multiSort` input on Grid directive.\n * Multi-sort allows sorting by multiple columns simultaneously.\n *\n * For basic single-column sorting, columns with `sortable: true` work without this plugin.\n * Use `[sortable]=\"false\"` on the grid to disable all sorting.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/multi-sort';\n *\n * <tbw-grid [multiSort]=\"true\" />\n * <tbw-grid [multiSort]=\"'single'\" />\n * <tbw-grid [multiSort]=\"{ maxSortColumns: 3 }\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { MultiSortPlugin } from '@toolbox-web/grid/plugins/multi-sort';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('multiSort', (config) => {\n // Handle shorthand: true, 'single', 'multi'\n if (config === true || config === 'multi') {\n return new MultiSortPlugin();\n }\n if (config === 'single') {\n return new MultiSortPlugin({ maxSortColumns: 1 });\n }\n // Full config object\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return new MultiSortPlugin(config as any);\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;AAmBG;AAKH,eAAe,CAAC,WAAW,EAAE,CAAC,MAAM,KAAI;;IAEtC,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,OAAO,EAAE;QACzC,OAAO,IAAI,eAAe,EAAE;IAC9B;AACA,IAAA,IAAI,MAAM,KAAK,QAAQ,EAAE;QACvB,OAAO,IAAI,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,CAAC;IACnD;;;AAGA,IAAA,OAAO,IAAI,eAAe,CAAC,MAAa,CAAC;AAC3C,CAAC,CAAC;;ACnCF;;AAEG"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { PinnedColumnsPlugin } from '@toolbox-web/grid/plugins/pinned-columns';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Pinned columns feature for @toolbox-web/grid-angular
|
|
3
6
|
*
|
|
@@ -15,5 +18,11 @@
|
|
|
15
18
|
*
|
|
16
19
|
* @packageDocumentation
|
|
17
20
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
registerFeature('pinnedColumns', () => {
|
|
22
|
+
return new PinnedColumnsPlugin();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Generated bundle index. Do not edit.
|
|
27
|
+
*/
|
|
28
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-pinned-columns.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-pinned-columns.mjs","sources":["../../../../libs/grid-angular/features/pinned-columns/src/index.ts","../../../../libs/grid-angular/features/pinned-columns/src/toolbox-web-grid-angular-features-pinned-columns.ts"],"sourcesContent":["/**\n * Pinned columns feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `pinnedColumns` input on Grid directive.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/pinned-columns';\n *\n * <tbw-grid [pinnedColumns]=\"true\" [columns]=\"[\n * { field: 'id', sticky: 'left' },\n * { field: 'name' }\n * ]\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { PinnedColumnsPlugin } from '@toolbox-web/grid/plugins/pinned-columns';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('pinnedColumns', () => {\n return new PinnedColumnsPlugin();\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;AAgBG;AAKH,eAAe,CAAC,eAAe,EAAE,MAAK;IACpC,OAAO,IAAI,mBAAmB,EAAE;AAClC,CAAC,CAAC;;ACvBF;;AAEG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PinnedRowsPlugin } from '@toolbox-web/grid/plugins/pinned-rows';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Pinned rows feature for @toolbox-web/grid-angular
|
|
6
|
+
*
|
|
7
|
+
* Import this module to enable the `pinnedRows` input on Grid directive.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import '@toolbox-web/grid-angular/features/pinned-rows';
|
|
12
|
+
*
|
|
13
|
+
* <tbw-grid [pinnedRows]="{ bottom: [{ type: 'aggregation' }] }" />
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
registerFeature('pinnedRows', (config) => {
|
|
19
|
+
if (config === true) {
|
|
20
|
+
return new PinnedRowsPlugin();
|
|
21
|
+
}
|
|
22
|
+
return new PinnedRowsPlugin(config ?? undefined);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Generated bundle index. Do not edit.
|
|
27
|
+
*/
|
|
28
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-pinned-rows.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-pinned-rows.mjs","sources":["../../../../libs/grid-angular/features/pinned-rows/src/index.ts","../../../../libs/grid-angular/features/pinned-rows/src/toolbox-web-grid-angular-features-pinned-rows.ts"],"sourcesContent":["/**\n * Pinned rows feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `pinnedRows` input on Grid directive.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/pinned-rows';\n *\n * <tbw-grid [pinnedRows]=\"{ bottom: [{ type: 'aggregation' }] }\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { PinnedRowsPlugin } from '@toolbox-web/grid/plugins/pinned-rows';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('pinnedRows', (config) => {\n if (config === true) {\n return new PinnedRowsPlugin();\n }\n return new PinnedRowsPlugin(config ?? undefined);\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;AAaG;AAKH,eAAe,CAAC,YAAY,EAAE,CAAC,MAAM,KAAI;AACvC,IAAA,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,OAAO,IAAI,gBAAgB,EAAE;IAC/B;AACA,IAAA,OAAO,IAAI,gBAAgB,CAAC,MAAM,IAAI,SAAS,CAAC;AAClD,CAAC,CAAC;;ACvBF;;AAEG"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PivotPlugin } from '@toolbox-web/grid/plugins/pivot';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Pivot feature for @toolbox-web/grid-angular
|
|
6
|
+
*
|
|
7
|
+
* Import this module to enable the `pivot` input on Grid directive.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import '@toolbox-web/grid-angular/features/pivot';
|
|
12
|
+
*
|
|
13
|
+
* <tbw-grid [pivot]="{ rowFields: ['category'], valueField: 'sales' }" />
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
registerFeature('pivot', (config) => {
|
|
19
|
+
return new PivotPlugin(config ?? undefined);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Generated bundle index. Do not edit.
|
|
24
|
+
*/
|
|
25
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-pivot.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-pivot.mjs","sources":["../../../../libs/grid-angular/features/pivot/src/index.ts","../../../../libs/grid-angular/features/pivot/src/toolbox-web-grid-angular-features-pivot.ts"],"sourcesContent":["/**\n * Pivot feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `pivot` input on Grid directive.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/pivot';\n *\n * <tbw-grid [pivot]=\"{ rowFields: ['category'], valueField: 'sales' }\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { PivotPlugin } from '@toolbox-web/grid/plugins/pivot';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('pivot', (config) => {\n return new PivotPlugin(config ?? undefined);\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;AAaG;AAKH,eAAe,CAAC,OAAO,EAAE,CAAC,MAAM,KAAI;AAClC,IAAA,OAAO,IAAI,WAAW,CAAC,MAAM,IAAI,SAAS,CAAC;AAC7C,CAAC,CAAC;;ACpBF;;AAEG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PrintPlugin } from '@toolbox-web/grid/plugins/print';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Print feature for @toolbox-web/grid-angular
|
|
6
|
+
*
|
|
7
|
+
* Import this module to enable the `print` input on Grid directive.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import '@toolbox-web/grid-angular/features/print';
|
|
12
|
+
*
|
|
13
|
+
* <tbw-grid [print]="true" />
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
registerFeature('print', (config) => {
|
|
19
|
+
if (config === true) {
|
|
20
|
+
return new PrintPlugin();
|
|
21
|
+
}
|
|
22
|
+
return new PrintPlugin(config ?? undefined);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Generated bundle index. Do not edit.
|
|
27
|
+
*/
|
|
28
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-print.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-print.mjs","sources":["../../../../libs/grid-angular/features/print/src/index.ts","../../../../libs/grid-angular/features/print/src/toolbox-web-grid-angular-features-print.ts"],"sourcesContent":["/**\n * Print feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `print` input on Grid directive.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/print';\n *\n * <tbw-grid [print]=\"true\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { PrintPlugin } from '@toolbox-web/grid/plugins/print';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('print', (config) => {\n if (config === true) {\n return new PrintPlugin();\n }\n return new PrintPlugin(config ?? undefined);\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;AAaG;AAKH,eAAe,CAAC,OAAO,EAAE,CAAC,MAAM,KAAI;AAClC,IAAA,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,OAAO,IAAI,WAAW,EAAE;IAC1B;AACA,IAAA,OAAO,IAAI,WAAW,CAAC,MAAM,IAAI,SAAS,CAAC;AAC7C,CAAC,CAAC;;ACvBF;;AAEG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReorderPlugin } from '@toolbox-web/grid/plugins/reorder';
|
|
2
|
+
import { registerFeature } from '@toolbox-web/grid-angular';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Column reorder feature for @toolbox-web/grid-angular
|
|
6
|
+
*
|
|
7
|
+
* Import this module to enable the `reorder` input on Grid directive.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import '@toolbox-web/grid-angular/features/reorder';
|
|
12
|
+
*
|
|
13
|
+
* <tbw-grid [reorder]="true" />
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
registerFeature('reorder', (config) => {
|
|
19
|
+
if (config === true) {
|
|
20
|
+
return new ReorderPlugin();
|
|
21
|
+
}
|
|
22
|
+
return new ReorderPlugin(config ?? undefined);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Generated bundle index. Do not edit.
|
|
27
|
+
*/
|
|
28
|
+
//# sourceMappingURL=toolbox-web-grid-angular-features-reorder.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbox-web-grid-angular-features-reorder.mjs","sources":["../../../../libs/grid-angular/features/reorder/src/index.ts","../../../../libs/grid-angular/features/reorder/src/toolbox-web-grid-angular-features-reorder.ts"],"sourcesContent":["/**\n * Column reorder feature for @toolbox-web/grid-angular\n *\n * Import this module to enable the `reorder` input on Grid directive.\n *\n * @example\n * ```typescript\n * import '@toolbox-web/grid-angular/features/reorder';\n *\n * <tbw-grid [reorder]=\"true\" />\n * ```\n *\n * @packageDocumentation\n */\n\nimport { ReorderPlugin } from '@toolbox-web/grid/plugins/reorder';\nimport { registerFeature } from '@toolbox-web/grid-angular';\n\nregisterFeature('reorder', (config) => {\n if (config === true) {\n return new ReorderPlugin();\n }\n return new ReorderPlugin(config ?? undefined);\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;AAaG;AAKH,eAAe,CAAC,SAAS,EAAE,CAAC,MAAM,KAAI;AACpC,IAAA,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,OAAO,IAAI,aAAa,EAAE;IAC5B;AACA,IAAA,OAAO,IAAI,aAAa,CAAC,MAAM,IAAI,SAAS,CAAC;AAC/C,CAAC,CAAC;;ACvBF;;AAEG"}
|