@toolbox-web/grid-angular 2.0.0-rc.0 → 2.0.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/fesm2022/toolbox-web-grid-angular-features-clipboard.mjs +15 -9
- package/fesm2022/toolbox-web-grid-angular-features-clipboard.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-column-virtualization.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-column-virtualization.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-context-menu.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-context-menu.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-editing.mjs +1537 -1510
- package/fesm2022/toolbox-web-grid-angular-features-editing.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-export.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-export.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-filtering.mjs +12 -9
- package/fesm2022/toolbox-web-grid-angular-features-filtering.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-grouping-columns.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-grouping-columns.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-grouping-rows.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-grouping-rows.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-master-detail.mjs +16 -11
- package/fesm2022/toolbox-web-grid-angular-features-master-detail.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-multi-sort.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-multi-sort.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-pinned-columns.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-pinned-columns.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-pinned-rows.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-pinned-rows.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-pivot.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-pivot.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-print.mjs +7 -5
- package/fesm2022/toolbox-web-grid-angular-features-print.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-reorder-columns.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-reorder-columns.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-responsive.mjs +16 -11
- package/fesm2022/toolbox-web-grid-angular-features-responsive.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-row-drag-drop.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-row-drag-drop.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-selection.mjs +13 -8
- package/fesm2022/toolbox-web-grid-angular-features-selection.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-server-side.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-server-side.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-shell.mjs +31 -20
- package/fesm2022/toolbox-web-grid-angular-features-shell.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-sticky-rows.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-sticky-rows.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-tooltip.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-tooltip.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-tree.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-tree.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-undo-redo.mjs +11 -7
- package/fesm2022/toolbox-web-grid-angular-features-undo-redo.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular-features-visibility.mjs +5 -4
- package/fesm2022/toolbox-web-grid-angular-features-visibility.mjs.map +1 -1
- package/fesm2022/toolbox-web-grid-angular.mjs +61 -71
- package/fesm2022/toolbox-web-grid-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/types/toolbox-web-grid-angular-features-clipboard.d.ts +4 -3
- package/types/toolbox-web-grid-angular-features-clipboard.d.ts.map +1 -1
- package/types/toolbox-web-grid-angular.d.ts.map +1 -1
|
@@ -84,7 +84,8 @@ class GridColumnView {
|
|
|
84
84
|
/**
|
|
85
85
|
* Query for the ng-template content child.
|
|
86
86
|
*/
|
|
87
|
-
template = contentChild((TemplateRef),
|
|
87
|
+
template = contentChild((TemplateRef), /* @ts-ignore */
|
|
88
|
+
...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
|
|
88
89
|
/** Effect that triggers when the template is available */
|
|
89
90
|
onTemplateReceived = effect(() => {
|
|
90
91
|
const template = this.template();
|
|
@@ -92,7 +93,8 @@ class GridColumnView {
|
|
|
92
93
|
// Register the template for this element
|
|
93
94
|
templateRegistry.set(this.elementRef.nativeElement, template);
|
|
94
95
|
}
|
|
95
|
-
},
|
|
96
|
+
}, /* @ts-ignore */
|
|
97
|
+
...(ngDevMode ? [{ debugName: "onTemplateReceived" }] : /* istanbul ignore next */ []));
|
|
96
98
|
/**
|
|
97
99
|
* Static type guard for template context.
|
|
98
100
|
* Enables type inference in templates.
|
|
@@ -100,10 +102,10 @@ class GridColumnView {
|
|
|
100
102
|
static ngTemplateContextGuard(dir, ctx) {
|
|
101
103
|
return true;
|
|
102
104
|
}
|
|
103
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
104
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "
|
|
105
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: GridColumnView, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
106
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.0.6", type: GridColumnView, isStandalone: true, selector: "tbw-grid-column-view", queries: [{ propertyName: "template", first: true, predicate: (TemplateRef), descendants: true, isSignal: true }], ngImport: i0 });
|
|
105
107
|
}
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: GridColumnView, decorators: [{
|
|
107
109
|
type: Directive,
|
|
108
110
|
args: [{ selector: 'tbw-grid-column-view' }]
|
|
109
111
|
}], propDecorators: { template: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TemplateRef), { isSignal: true }] }] } });
|
|
@@ -214,10 +216,10 @@ class TbwRenderer {
|
|
|
214
216
|
static ngTemplateContextGuard(dir, ctx) {
|
|
215
217
|
return true;
|
|
216
218
|
}
|
|
217
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
218
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
219
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TbwRenderer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
220
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: TbwRenderer, isStandalone: true, selector: "[tbwRenderer]", ngImport: i0 });
|
|
219
221
|
}
|
|
220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TbwRenderer, decorators: [{
|
|
221
223
|
type: Directive,
|
|
222
224
|
args: [{ selector: '[tbwRenderer]' }]
|
|
223
225
|
}], ctorParameters: () => [] });
|
|
@@ -480,10 +482,10 @@ class GridTypeRegistry {
|
|
|
480
482
|
// the actual functions that instantiate Angular components
|
|
481
483
|
};
|
|
482
484
|
}
|
|
483
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
484
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
485
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: GridTypeRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
486
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: GridTypeRegistry, providedIn: 'root' });
|
|
485
487
|
}
|
|
486
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: GridTypeRegistry, decorators: [{
|
|
487
489
|
type: Injectable,
|
|
488
490
|
args: [{ providedIn: 'root' }]
|
|
489
491
|
}], ctorParameters: () => [] });
|
|
@@ -1642,10 +1644,10 @@ class GridIconRegistry {
|
|
|
1642
1644
|
getRegisteredIcons() {
|
|
1643
1645
|
return Array.from(this.icons.keys());
|
|
1644
1646
|
}
|
|
1645
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1646
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1647
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: GridIconRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1648
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: GridIconRegistry, providedIn: 'root' });
|
|
1647
1649
|
}
|
|
1648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1650
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: GridIconRegistry, decorators: [{
|
|
1649
1651
|
type: Injectable,
|
|
1650
1652
|
args: [{ providedIn: 'root' }]
|
|
1651
1653
|
}], ctorParameters: () => [] });
|
|
@@ -1733,9 +1735,12 @@ function injectGrid(selector = 'tbw-grid') {
|
|
|
1733
1735
|
const elementRef = inject(ElementRef);
|
|
1734
1736
|
const destroyRef = inject(DestroyRef);
|
|
1735
1737
|
// Reactive signals
|
|
1736
|
-
const isReady = signal(false,
|
|
1737
|
-
|
|
1738
|
-
const
|
|
1738
|
+
const isReady = signal(false, /* @ts-ignore */
|
|
1739
|
+
...(ngDevMode ? [{ debugName: "isReady" }] : /* istanbul ignore next */ []));
|
|
1740
|
+
const config = signal(null, /* @ts-ignore */
|
|
1741
|
+
...(ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []));
|
|
1742
|
+
const element = signal(null, /* @ts-ignore */
|
|
1743
|
+
...(ngDevMode ? [{ debugName: "element" }] : /* istanbul ignore next */ []));
|
|
1739
1744
|
// Track destruction so async work doesn't touch signals after teardown
|
|
1740
1745
|
let destroyed = false;
|
|
1741
1746
|
destroyRef.onDestroy(() => {
|
|
@@ -1773,7 +1778,8 @@ function injectGrid(selector = 'tbw-grid') {
|
|
|
1773
1778
|
if (!currentConfig?.columns)
|
|
1774
1779
|
return [];
|
|
1775
1780
|
return currentConfig.columns.filter((col) => !col.hidden);
|
|
1776
|
-
},
|
|
1781
|
+
}, /* @ts-ignore */
|
|
1782
|
+
...(ngDevMode ? [{ debugName: "visibleColumns" }] : /* istanbul ignore next */ []));
|
|
1777
1783
|
// ═══════════════════════════════════════════════════════════════════
|
|
1778
1784
|
// CORE METHODS
|
|
1779
1785
|
// ═══════════════════════════════════════════════════════════════════
|
|
@@ -1889,10 +1895,10 @@ function injectGrid(selector = 'tbw-grid') {
|
|
|
1889
1895
|
* @since 0.13.0
|
|
1890
1896
|
*/
|
|
1891
1897
|
class TbwGridColumn {
|
|
1892
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1893
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1898
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TbwGridColumn, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1899
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: TbwGridColumn, isStandalone: true, selector: "tbw-grid-column", ngImport: i0 });
|
|
1894
1900
|
}
|
|
1895
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1901
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TbwGridColumn, decorators: [{
|
|
1896
1902
|
type: Directive,
|
|
1897
1903
|
args: [{
|
|
1898
1904
|
selector: 'tbw-grid-column',
|
|
@@ -1928,10 +1934,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1928
1934
|
* @since 0.13.0
|
|
1929
1935
|
*/
|
|
1930
1936
|
class TbwGridHeader {
|
|
1931
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1932
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1937
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TbwGridHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1938
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: TbwGridHeader, isStandalone: true, selector: "tbw-grid-header", ngImport: i0 });
|
|
1933
1939
|
}
|
|
1934
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TbwGridHeader, decorators: [{
|
|
1935
1941
|
type: Directive,
|
|
1936
1942
|
args: [{
|
|
1937
1943
|
selector: 'tbw-grid-header',
|
|
@@ -1968,10 +1974,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1968
1974
|
* @since 0.13.0
|
|
1969
1975
|
*/
|
|
1970
1976
|
class TbwGridToolButtons {
|
|
1971
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1972
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1977
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TbwGridToolButtons, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1978
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: TbwGridToolButtons, isStandalone: true, selector: "tbw-grid-tool-buttons", ngImport: i0 });
|
|
1973
1979
|
}
|
|
1974
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1980
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TbwGridToolButtons, decorators: [{
|
|
1975
1981
|
type: Directive,
|
|
1976
1982
|
args: [{
|
|
1977
1983
|
selector: 'tbw-grid-tool-buttons',
|
|
@@ -1988,10 +1994,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
1988
1994
|
* @since 2.0.0
|
|
1989
1995
|
*/
|
|
1990
1996
|
class TbwGridType {
|
|
1991
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1992
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1997
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TbwGridType, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1998
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: TbwGridType, isStandalone: true, selector: "tbw-grid-type", ngImport: i0 });
|
|
1993
1999
|
}
|
|
1994
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2000
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TbwGridType, decorators: [{
|
|
1995
2001
|
type: Directive,
|
|
1996
2002
|
args: [{
|
|
1997
2003
|
selector: 'tbw-grid-type',
|
|
@@ -2266,7 +2272,8 @@ class Grid {
|
|
|
2266
2272
|
* <tbw-grid [customStyles]="customStyles">...</tbw-grid>
|
|
2267
2273
|
* ```
|
|
2268
2274
|
*/
|
|
2269
|
-
customStyles = input(
|
|
2275
|
+
customStyles = input(/* @ts-ignore */
|
|
2276
|
+
...(ngDevMode ? [undefined, { debugName: "customStyles" }] : /* istanbul ignore next */ []));
|
|
2270
2277
|
/**
|
|
2271
2278
|
* Grid-wide sorting toggle.
|
|
2272
2279
|
* When false, disables sorting for all columns regardless of their individual `sortable` setting.
|
|
@@ -2289,7 +2296,8 @@ class Grid {
|
|
|
2289
2296
|
* <tbw-grid [sortable]="true" [multiSort]="true" />
|
|
2290
2297
|
* ```
|
|
2291
2298
|
*/
|
|
2292
|
-
sortable = input(
|
|
2299
|
+
sortable = input(/* @ts-ignore */
|
|
2300
|
+
...(ngDevMode ? [undefined, { debugName: "sortable" }] : /* istanbul ignore next */ []));
|
|
2293
2301
|
/**
|
|
2294
2302
|
* Grid-wide filtering toggle.
|
|
2295
2303
|
* When false, disables filtering for all columns regardless of their individual `filterable` setting.
|
|
@@ -2308,7 +2316,8 @@ class Grid {
|
|
|
2308
2316
|
* <tbw-grid [filterable]="true" [filtering]="true" />
|
|
2309
2317
|
* ```
|
|
2310
2318
|
*/
|
|
2311
|
-
filterable = input(
|
|
2319
|
+
filterable = input(/* @ts-ignore */
|
|
2320
|
+
...(ngDevMode ? [undefined, { debugName: "filterable" }] : /* istanbul ignore next */ []));
|
|
2312
2321
|
/**
|
|
2313
2322
|
* Grid-wide selection toggle.
|
|
2314
2323
|
* When false, disables selection for all rows/cells.
|
|
@@ -2327,7 +2336,8 @@ class Grid {
|
|
|
2327
2336
|
* <tbw-grid [selectable]="true" [selection]="'range'" />
|
|
2328
2337
|
* ```
|
|
2329
2338
|
*/
|
|
2330
|
-
selectable = input(
|
|
2339
|
+
selectable = input(/* @ts-ignore */
|
|
2340
|
+
...(ngDevMode ? [undefined, { debugName: "selectable" }] : /* istanbul ignore next */ []));
|
|
2331
2341
|
/**
|
|
2332
2342
|
* Show a loading overlay on the grid.
|
|
2333
2343
|
* Use this during initial data fetch or refresh operations.
|
|
@@ -2355,7 +2365,8 @@ class Grid {
|
|
|
2355
2365
|
* }
|
|
2356
2366
|
* ```
|
|
2357
2367
|
*/
|
|
2358
|
-
loading = input(
|
|
2368
|
+
loading = input(/* @ts-ignore */
|
|
2369
|
+
...(ngDevMode ? [undefined, { debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
2359
2370
|
/**
|
|
2360
2371
|
* The data rows to display in the grid.
|
|
2361
2372
|
*
|
|
@@ -2368,7 +2379,8 @@ class Grid {
|
|
|
2368
2379
|
* ```
|
|
2369
2380
|
*/
|
|
2370
2381
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2371
|
-
rows = input(
|
|
2382
|
+
rows = input(/* @ts-ignore */
|
|
2383
|
+
...(ngDevMode ? [undefined, { debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
2372
2384
|
/**
|
|
2373
2385
|
* Column configuration array.
|
|
2374
2386
|
*
|
|
@@ -2386,7 +2398,8 @@ class Grid {
|
|
|
2386
2398
|
* ```
|
|
2387
2399
|
*/
|
|
2388
2400
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2389
|
-
columns = input(
|
|
2401
|
+
columns = input(/* @ts-ignore */
|
|
2402
|
+
...(ngDevMode ? [undefined, { debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
2390
2403
|
/**
|
|
2391
2404
|
* Default column properties applied to every column in `columns`.
|
|
2392
2405
|
* Individual column properties override these defaults.
|
|
@@ -2400,7 +2413,8 @@ class Grid {
|
|
|
2400
2413
|
* ```
|
|
2401
2414
|
*/
|
|
2402
2415
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2403
|
-
columnDefaults = input(
|
|
2416
|
+
columnDefaults = input(/* @ts-ignore */
|
|
2417
|
+
...(ngDevMode ? [undefined, { debugName: "columnDefaults" }] : /* istanbul ignore next */ []));
|
|
2404
2418
|
/**
|
|
2405
2419
|
* Column sizing strategy.
|
|
2406
2420
|
*
|
|
@@ -2416,7 +2430,8 @@ class Grid {
|
|
|
2416
2430
|
* <tbw-grid [rows]="data" [fitMode]="dynamicMode()" />
|
|
2417
2431
|
* ```
|
|
2418
2432
|
*/
|
|
2419
|
-
fitMode = input(
|
|
2433
|
+
fitMode = input(/* @ts-ignore */
|
|
2434
|
+
...(ngDevMode ? [undefined, { debugName: "fitMode" }] : /* istanbul ignore next */ []));
|
|
2420
2435
|
/**
|
|
2421
2436
|
* How automatic column inference combines with explicitly provided columns.
|
|
2422
2437
|
*
|
|
@@ -2429,7 +2444,8 @@ class Grid {
|
|
|
2429
2444
|
* <tbw-grid [rows]="data" [columnInference]="mode()" />
|
|
2430
2445
|
* ```
|
|
2431
2446
|
*/
|
|
2432
|
-
columnInference = input(
|
|
2447
|
+
columnInference = input(/* @ts-ignore */
|
|
2448
|
+
...(ngDevMode ? [undefined, { debugName: "columnInference" }] : /* istanbul ignore next */ []));
|
|
2433
2449
|
/**
|
|
2434
2450
|
* Grid configuration object with optional Angular-specific extensions.
|
|
2435
2451
|
*
|
|
@@ -2467,7 +2483,8 @@ class Grid {
|
|
|
2467
2483
|
* ```
|
|
2468
2484
|
*/
|
|
2469
2485
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2470
|
-
gridConfig = input(
|
|
2486
|
+
gridConfig = input(/* @ts-ignore */
|
|
2487
|
+
...(ngDevMode ? [undefined, { debugName: "gridConfig" }] : /* istanbul ignore next */ []));
|
|
2471
2488
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
2472
2489
|
// EVENT OUTPUTS - All grid events
|
|
2473
2490
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
@@ -2610,33 +2627,6 @@ class Grid {
|
|
|
2610
2627
|
tbwScroll: 'tbw-scroll',
|
|
2611
2628
|
render: 'render',
|
|
2612
2629
|
};
|
|
2613
|
-
// ─────────────────────────────────────────────────────────────────────────
|
|
2614
|
-
// Forward-only event coverage guard.
|
|
2615
|
-
//
|
|
2616
|
-
// Mirrors the React adapter's `_AssertFeaturePropsCoverCore` pattern. If a
|
|
2617
|
-
// new event is added to core's `DataGridEventMap` (via plugin module
|
|
2618
|
-
// augmentation in `/all`) but no `eventOutputMap` entry covers it, this
|
|
2619
|
-
// type fails to evaluate to `true` and the build breaks. Adapter consumers
|
|
2620
|
-
// never see a silently-dropped event.
|
|
2621
|
-
//
|
|
2622
|
-
// Reverse direction (extra `eventOutputMap` entries pointing at non-existent
|
|
2623
|
-
// events) is already enforced by the `satisfies` clause above.
|
|
2624
|
-
//
|
|
2625
|
-
// To consciously omit an event from the `Grid` directive surface, add it to
|
|
2626
|
-
// the `_intentionallyOmittedEvents` union below with a comment explaining why.
|
|
2627
|
-
// ─────────────────────────────────────────────────────────────────────────
|
|
2628
|
-
/**
|
|
2629
|
-
* Events deliberately not exposed as outputs on the `Grid` directive.
|
|
2630
|
-
*
|
|
2631
|
-
* Every entry here is a **feature-owned** event surfaced by its per-feature
|
|
2632
|
-
* directive instead (e.g. `GridEditingDirective` declares `(cellCommit)`,
|
|
2633
|
-
* `GridSelectionDirective` declares `(selectionChange)`). The directive
|
|
2634
|
-
* claims the DOM event via `claimEvent` so it is the sole emitter. The v1.x
|
|
2635
|
-
* shims that forwarded these events from `Grid` were removed in v3.0.0 —
|
|
2636
|
-
* consumers must import the relevant feature directive.
|
|
2637
|
-
*/
|
|
2638
|
-
_intentionallyOmittedEvents;
|
|
2639
|
-
_assertEventOutputMapCoversCore;
|
|
2640
2630
|
// Store event listeners for cleanup
|
|
2641
2631
|
eventListeners = new Map();
|
|
2642
2632
|
ngOnInit() {
|
|
@@ -2799,10 +2789,10 @@ class Grid {
|
|
|
2799
2789
|
this.adapter = null;
|
|
2800
2790
|
}
|
|
2801
2791
|
}
|
|
2802
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2803
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
2792
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: Grid, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2793
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.6", type: Grid, isStandalone: true, selector: "tbw-grid,[data-tbw-grid]", inputs: { customStyles: { classPropertyName: "customStyles", publicName: "customStyles", isSignal: true, isRequired: false, transformFunction: null }, sortable: { classPropertyName: "sortable", publicName: "sortable", isSignal: true, isRequired: false, transformFunction: null }, filterable: { classPropertyName: "filterable", publicName: "filterable", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, columnDefaults: { classPropertyName: "columnDefaults", publicName: "columnDefaults", isSignal: true, isRequired: false, transformFunction: null }, fitMode: { classPropertyName: "fitMode", publicName: "fitMode", isSignal: true, isRequired: false, transformFunction: null }, columnInference: { classPropertyName: "columnInference", publicName: "columnInference", isSignal: true, isRequired: false, transformFunction: null }, gridConfig: { classPropertyName: "gridConfig", publicName: "gridConfig", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cellClick: "cellClick", rowClick: "rowClick", cellActivate: "cellActivate", cellChange: "cellChange", dataChange: "dataChange", sortChange: "sortChange", columnResize: "columnResize", columnResizeReset: "columnResizeReset", columnStateChange: "columnStateChange", tbwScroll: "tbwScroll", render: "render" }, ngImport: i0 });
|
|
2804
2794
|
}
|
|
2805
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: Grid, decorators: [{
|
|
2806
2796
|
type: Directive,
|
|
2807
2797
|
args: [{ selector: 'tbw-grid,[data-tbw-grid]' }]
|
|
2808
2798
|
}], ctorParameters: () => [], propDecorators: { customStyles: [{ type: i0.Input, args: [{ isSignal: true, alias: "customStyles", required: false }] }], sortable: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortable", required: false }] }], filterable: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterable", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], columnDefaults: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnDefaults", required: false }] }], fitMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "fitMode", required: false }] }], columnInference: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnInference", required: false }] }], gridConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "gridConfig", required: false }] }], cellClick: [{ type: i0.Output, args: ["cellClick"] }], rowClick: [{ type: i0.Output, args: ["rowClick"] }], cellActivate: [{ type: i0.Output, args: ["cellActivate"] }], cellChange: [{ type: i0.Output, args: ["cellChange"] }], dataChange: [{ type: i0.Output, args: ["dataChange"] }], sortChange: [{ type: i0.Output, args: ["sortChange"] }], columnResize: [{ type: i0.Output, args: ["columnResize"] }], columnResizeReset: [{ type: i0.Output, args: ["columnResizeReset"] }], columnStateChange: [{ type: i0.Output, args: ["columnStateChange"] }], tbwScroll: [{ type: i0.Output, args: ["tbwScroll"] }], render: [{ type: i0.Output, args: ["render"] }] } });
|