@stramien/angular 0.0.0-stage → 0.13.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Erik-Jan van Baaren
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,83 @@
1
- # Temporary Holding Version
1
+ # @stramien/angular
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Modern Angular (v18+, standalone, Signals, zoneless-ready) adapter for [Stramien](https://github.com/stramien/stramien).
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add @stramien/angular @stramien/core
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ Add the grid styles once, globally, in your application's `styles.css` (component `.ts`
14
+ files cannot import CSS with the Angular CLI builder):
15
+
16
+ ```css
17
+ @import "@stramien/core/styles.css";
18
+ ```
19
+
20
+ ```ts
21
+ import { Component, signal } from '@angular/core';
22
+ import type { ColDef } from '@stramien/core';
23
+ import { StCellDirective, StDetailDirective, StramienGridComponent } from '@stramien/angular';
24
+
25
+ interface Person {
26
+ id: number;
27
+ name: string;
28
+ status: string;
29
+ notes: string;
30
+ }
31
+
32
+ @Component({
33
+ selector: 'app-example',
34
+ standalone: true,
35
+ imports: [StramienGridComponent, StCellDirective, StDetailDirective],
36
+ template: `
37
+ <stramien-grid
38
+ [rowData]="rows()"
39
+ [columnDefs]="columns"
40
+ [getRowId]="rowId"
41
+ [masterDetail]="true"
42
+ [globalSearch]="true"
43
+ >
44
+ <ng-template stCell="status" let-status>
45
+ <span>{{ status }}</span>
46
+ </ng-template>
47
+ <ng-template [stDetail]="rows()" let-row>
48
+ <div>{{ row.notes }}</div>
49
+ </ng-template>
50
+ </stramien-grid>
51
+ `,
52
+ })
53
+ export class ExampleComponent {
54
+ readonly rows = signal<Person[]>([]);
55
+ readonly columns: ColDef<Person>[] = [{ field: 'name' }, { field: 'status' }];
56
+ readonly rowId = ({ data }: { data: Person }) => String(data.id);
57
+ }
58
+ ```
59
+
60
+ ### Height
61
+
62
+ `<stramien-grid>` fills its parent's height by default. Give it a height of your own (for example `.grid { height: 60vh }` on `<stramien-grid class="grid">`) and that height wins, or use `heightMode="content"` to make it as tall as its rows.
63
+
64
+ ### How inputs are applied
65
+
66
+ - Only inputs that are bound and whose value changed are sent to the grid. Unbound inputs
67
+ (`theme`, `density`, `loading`, …) use the grid's defaults and never overwrite values set
68
+ through the API (`api.setTheme(...)`, rows added with `api.applyTransaction(...)`).
69
+ - `getApi()` already returns the API inside a `(gridReady)` handler.
70
+ - Adding or removing `stCell` / `stDetail` templates re-renders the cells that use them.
71
+ - Typed cell templates: `<ng-template stCell="device" [stCellRows]="devices()" let-row="data">` types `row` as the row type, so strict templates check `row.name` without `$any()`. The context also has `subtitle` (the column's `cellSubtitle`), e.g. `let-sub="subtitle"`.
72
+ - Custom cell editors: `<ng-template stEditor="tags" let-p>` registers an editor named `tags` for `cellEditor: 'tags'` (also from the per-row function form). The context has `value`, `setValue(value)` and `stopEditing(cancel?)`. Import `StEditorDirective`. Components work too, through `[cellEditors]="{ tags: TagsEditorComponent }"`. See the [guide](../../docs/guides.md#custom-cell-editors).
73
+
74
+ ### Component cell renderers
75
+
76
+ A component used as `cellRenderer` receives the cell parameters as `params`, declared
77
+ either as an input (`params = input<CellRendererParams<Row>>()`) or as a plain field.
78
+
79
+ See the [Stramien documentation](https://github.com/stramien/stramien#readme) for full API details.
80
+
81
+ ## License
82
+
83
+ MIT © 2026 Erik-Jan van Baaren
@@ -0,0 +1,32 @@
1
+ import { type ApplicationRef, type EnvironmentInjector, type TemplateRef } from '@angular/core';
2
+ import type { CellEditorComponentParams, CellRendererParams, ComponentMountAdapter, DetailCellRendererParams, MountedComponentHandle } from '@stramien/core';
3
+ import type { StCellTemplateContext } from './st-cell.directive';
4
+ import type { StDetailTemplateContext } from './st-detail.directive';
5
+ import type { StEditorTemplateContext } from './st-editor.directive';
6
+ export interface StCellRendererComponent<TData = Record<string, unknown>, TValue = unknown> {
7
+ params?: CellRendererParams<TData, TValue>;
8
+ }
9
+ /** A component used as a custom cell editor receives the editor params as `params`. */
10
+ export interface StCellEditorComponent<TData = Record<string, unknown>, TValue = unknown> {
11
+ params?: CellEditorComponentParams<TData, TValue>;
12
+ }
13
+ export interface StDetailRendererComponent<TData = Record<string, unknown>> {
14
+ params?: DetailCellRendererParams<TData>;
15
+ }
16
+ export declare class AngularMountAdapter implements ComponentMountAdapter {
17
+ private readonly appRef;
18
+ private readonly envInjector;
19
+ private templateMap;
20
+ private detailTemplate;
21
+ private editorTemplateMap;
22
+ constructor(appRef: ApplicationRef, envInjector: EnvironmentInjector);
23
+ setTemplates(map: Map<string, TemplateRef<StCellTemplateContext<any, any>>>): void;
24
+ setEditorTemplates(map: Map<string, TemplateRef<StEditorTemplateContext<any, any>>>): void;
25
+ canMountEditor(editor: unknown, name: string | undefined): boolean;
26
+ mountEditor(container: HTMLElement, editor: unknown, params: CellEditorComponentParams<any, any>): MountedComponentHandle;
27
+ setDetailTemplate(tpl: TemplateRef<StDetailTemplateContext<any>> | null): void;
28
+ canMount(renderer: unknown, colId: string): boolean;
29
+ canMountDetail(renderer: unknown): boolean;
30
+ mountDetail(container: HTMLElement, renderer: unknown, params: DetailCellRendererParams<any>): MountedComponentHandle;
31
+ mount(container: HTMLElement, renderer: unknown, params: CellRendererParams<any, any>): MountedComponentHandle;
32
+ }
@@ -0,0 +1,569 @@
1
+ import { createGrid } from '@stramien/core';
2
+ export { DEFAULT_LOCALE_TEXT, VANILLA_RENDERER_SYMBOL, actionsColumn, badgeColumn, barColumn, booleanColumn, createBuiltInColumnTypes, currencyColumn, formatLocaleText, markVanillaRenderer, percentColumn, plural, relativeTimeColumn, sparklineColumn } from '@stramien/core';
3
+ import * as i0 from '@angular/core';
4
+ import { reflectComponentType, ChangeDetectorRef, createComponent, input, inject, TemplateRef, Directive, ApplicationRef, EnvironmentInjector, DestroyRef, viewChild, contentChildren, contentChild, output, afterNextRender, untracked, effect, ChangeDetectionStrategy, Component } from '@angular/core';
5
+
6
+ function isAngularComponentClass(value) {
7
+ return typeof value === 'function' && 'ɵcmp' in value;
8
+ }
9
+ /**
10
+ * Passes `params` to a mounted component. Uses setInput when the component declares a
11
+ * `params` input (signal or decorator); otherwise assigns the plain property. setInput on
12
+ * an undeclared input does not throw (it only logs NG0303 in dev mode), so it cannot be
13
+ * used as a try/catch probe.
14
+ */
15
+ function setParams(compRef, renderer, params) {
16
+ const declaresInput = reflectComponentType(renderer)?.inputs.some((input) => input.templateName === 'params' || input.propName === 'params');
17
+ if (declaresInput) {
18
+ compRef.setInput('params', params);
19
+ }
20
+ else {
21
+ compRef.instance.params = params;
22
+ // A plain field assignment does not mark an OnPush component dirty (setInput does)
23
+ compRef.injector.get(ChangeDetectorRef).markForCheck();
24
+ }
25
+ }
26
+ class AngularMountAdapter {
27
+ appRef;
28
+ envInjector;
29
+ templateMap = new Map();
30
+ detailTemplate = null;
31
+ editorTemplateMap = new Map();
32
+ constructor(appRef, envInjector) {
33
+ this.appRef = appRef;
34
+ this.envInjector = envInjector;
35
+ }
36
+ setTemplates(map) {
37
+ this.templateMap = map;
38
+ }
39
+ setEditorTemplates(map) {
40
+ this.editorTemplateMap = map;
41
+ }
42
+ canMountEditor(editor, name) {
43
+ if (name && this.editorTemplateMap.has(name))
44
+ return true;
45
+ return isAngularComponentClass(editor);
46
+ }
47
+ mountEditor(container, editor, params) {
48
+ const templateRef = params.editorName
49
+ ? this.editorTemplateMap.get(params.editorName)
50
+ : undefined;
51
+ if (templateRef) {
52
+ const context = {
53
+ $implicit: params,
54
+ params,
55
+ value: params.value,
56
+ data: params.data,
57
+ node: params.node,
58
+ colDef: params.colDef,
59
+ api: params.api,
60
+ editorParams: params.editorParams,
61
+ setValue: params.setValue,
62
+ stopEditing: params.stopEditing,
63
+ };
64
+ const viewRef = templateRef.createEmbeddedView(context);
65
+ this.appRef.attachView(viewRef);
66
+ for (const node of viewRef.rootNodes) {
67
+ container.appendChild(node);
68
+ }
69
+ viewRef.detectChanges();
70
+ return {
71
+ destroy: () => {
72
+ this.appRef.detachView(viewRef);
73
+ viewRef.destroy();
74
+ },
75
+ };
76
+ }
77
+ if (isAngularComponentClass(editor)) {
78
+ const host = document.createElement('div');
79
+ host.style.display = 'contents';
80
+ container.appendChild(host);
81
+ const compRef = createComponent(editor, {
82
+ environmentInjector: this.envInjector,
83
+ hostElement: host,
84
+ });
85
+ setParams(compRef, editor, params);
86
+ this.appRef.attachView(compRef.hostView);
87
+ compRef.changeDetectorRef.detectChanges();
88
+ return {
89
+ destroy: () => {
90
+ this.appRef.detachView(compRef.hostView);
91
+ compRef.destroy();
92
+ },
93
+ };
94
+ }
95
+ return { destroy: () => { } };
96
+ }
97
+ setDetailTemplate(tpl) {
98
+ this.detailTemplate = tpl;
99
+ }
100
+ canMount(renderer, colId) {
101
+ if (this.templateMap.has(colId))
102
+ return true;
103
+ return isAngularComponentClass(renderer);
104
+ }
105
+ canMountDetail(renderer) {
106
+ if (this.detailTemplate)
107
+ return true;
108
+ return isAngularComponentClass(renderer);
109
+ }
110
+ mountDetail(container, renderer, params) {
111
+ if (this.detailTemplate) {
112
+ const context = {
113
+ $implicit: params.data,
114
+ data: params.data,
115
+ node: params.node,
116
+ api: params.api,
117
+ };
118
+ const viewRef = this.detailTemplate.createEmbeddedView(context);
119
+ this.appRef.attachView(viewRef);
120
+ for (const node of viewRef.rootNodes) {
121
+ container.appendChild(node);
122
+ }
123
+ viewRef.detectChanges();
124
+ return {
125
+ update: (next) => {
126
+ const p = next;
127
+ Object.assign(viewRef.context, { $implicit: p.data, data: p.data, node: p.node });
128
+ viewRef.detectChanges();
129
+ },
130
+ destroy: () => {
131
+ this.appRef.detachView(viewRef);
132
+ viewRef.destroy();
133
+ },
134
+ };
135
+ }
136
+ if (isAngularComponentClass(renderer)) {
137
+ const host = document.createElement('div');
138
+ host.style.display = 'contents';
139
+ container.appendChild(host);
140
+ const compRef = createComponent(renderer, {
141
+ environmentInjector: this.envInjector,
142
+ hostElement: host,
143
+ });
144
+ setParams(compRef, renderer, params);
145
+ this.appRef.attachView(compRef.hostView);
146
+ compRef.changeDetectorRef.detectChanges();
147
+ return {
148
+ update: (next) => {
149
+ setParams(compRef, renderer, next);
150
+ compRef.changeDetectorRef.detectChanges();
151
+ },
152
+ destroy: () => {
153
+ this.appRef.detachView(compRef.hostView);
154
+ compRef.destroy();
155
+ },
156
+ };
157
+ }
158
+ return { destroy: () => { } };
159
+ }
160
+ mount(container, renderer, params) {
161
+ const templateRef = this.templateMap.get(params.colDef.colId);
162
+ if (templateRef) {
163
+ const context = {
164
+ $implicit: params.value,
165
+ value: params.value,
166
+ formattedValue: params.formattedValue,
167
+ subtitle: params.subtitle ?? '',
168
+ data: params.data,
169
+ node: params.node,
170
+ colDef: params.colDef,
171
+ api: params.api,
172
+ };
173
+ const viewRef = templateRef.createEmbeddedView(context);
174
+ this.appRef.attachView(viewRef);
175
+ for (const node of viewRef.rootNodes) {
176
+ container.appendChild(node);
177
+ }
178
+ viewRef.detectChanges();
179
+ return {
180
+ update: (next) => {
181
+ Object.assign(viewRef.context, {
182
+ $implicit: next.value,
183
+ value: next.value,
184
+ formattedValue: next.formattedValue,
185
+ subtitle: next.subtitle ?? '',
186
+ data: next.data,
187
+ node: next.node,
188
+ });
189
+ viewRef.detectChanges();
190
+ },
191
+ destroy: () => {
192
+ this.appRef.detachView(viewRef);
193
+ viewRef.destroy();
194
+ },
195
+ };
196
+ }
197
+ if (isAngularComponentClass(renderer)) {
198
+ const host = document.createElement('div');
199
+ host.style.display = 'contents';
200
+ container.appendChild(host);
201
+ const compRef = createComponent(renderer, {
202
+ environmentInjector: this.envInjector,
203
+ hostElement: host,
204
+ });
205
+ setParams(compRef, renderer, params);
206
+ this.appRef.attachView(compRef.hostView);
207
+ compRef.changeDetectorRef.detectChanges();
208
+ return {
209
+ update: (next) => {
210
+ setParams(compRef, renderer, next);
211
+ compRef.changeDetectorRef.detectChanges();
212
+ },
213
+ destroy: () => {
214
+ this.appRef.detachView(compRef.hostView);
215
+ compRef.destroy();
216
+ },
217
+ };
218
+ }
219
+ return { destroy: () => { } };
220
+ }
221
+ }
222
+
223
+ class StCellDirective {
224
+ colId = input.required({ alias: 'stCell' });
225
+ /**
226
+ * Optional type-inference binding: `[stCellRows]="rowData()"` types `let-row="data"`
227
+ * (and `node`) as the grid's row type in strict templates.
228
+ */
229
+ rows = input(undefined, { alias: 'stCellRows' });
230
+ templateRef = inject((TemplateRef));
231
+ static ngTemplateContextGuard(_dir, ctx) {
232
+ return true;
233
+ }
234
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StCellDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
235
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.25", type: StCellDirective, isStandalone: true, selector: "ng-template[stCell]", inputs: { colId: { classPropertyName: "colId", publicName: "stCell", isSignal: true, isRequired: true, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "stCellRows", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
236
+ }
237
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StCellDirective, decorators: [{
238
+ type: Directive,
239
+ args: [{
240
+ selector: 'ng-template[stCell]',
241
+ standalone: true,
242
+ }]
243
+ }] });
244
+
245
+ class StDetailDirective {
246
+ /**
247
+ * Optional type-inference binding: pass `[stDetail]="rowData()"` to get full
248
+ * strict TypeScript inference on `let-row` inside Angular templates.
249
+ */
250
+ stDetail = input('');
251
+ templateRef = inject((TemplateRef));
252
+ static ngTemplateContextGuard(_dir, ctx) {
253
+ return true;
254
+ }
255
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StDetailDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
256
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.25", type: StDetailDirective, isStandalone: true, selector: "ng-template[stDetail]", inputs: { stDetail: { classPropertyName: "stDetail", publicName: "stDetail", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
257
+ }
258
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StDetailDirective, decorators: [{
259
+ type: Directive,
260
+ args: [{
261
+ selector: 'ng-template[stDetail]',
262
+ standalone: true,
263
+ }]
264
+ }] });
265
+
266
+ /**
267
+ * Registers a custom cell editor under a name, for use as `cellEditor: 'name'` (also from
268
+ * the function form of `cellEditor`):
269
+ *
270
+ * ```html
271
+ * <ng-template stEditor="tags" let-p>
272
+ * <app-tags-input [value]="p.value" (valueChange)="p.setValue($event)" />
273
+ * </ng-template>
274
+ * ```
275
+ *
276
+ * `Enter` commits, `Escape` cancels and `Tab` commits and moves on; an editor that needs
277
+ * one of those keys itself stops the key event's propagation. Focus leaving the cell
278
+ * commits too.
279
+ */
280
+ class StEditorDirective {
281
+ name = input.required({ alias: 'stEditor' });
282
+ templateRef = inject((TemplateRef));
283
+ /**
284
+ * An editor template can serve rows and values of any type (the function form of
285
+ * `cellEditor` picks it per row), so its context is loosely typed: `p.value` binds to any
286
+ * input without `$any()`. Use a component in `cellEditors` for a fully typed editor.
287
+ */
288
+ static ngTemplateContextGuard(_dir, ctx) {
289
+ return true;
290
+ }
291
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StEditorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
292
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.25", type: StEditorDirective, isStandalone: true, selector: "ng-template[stEditor]", inputs: { name: { classPropertyName: "name", publicName: "stEditor", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
293
+ }
294
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StEditorDirective, decorators: [{
295
+ type: Directive,
296
+ args: [{
297
+ selector: 'ng-template[stEditor]',
298
+ standalone: true,
299
+ }]
300
+ }] });
301
+
302
+ class StramienGridComponent {
303
+ appRef = inject(ApplicationRef);
304
+ envInjector = inject(EnvironmentInjector);
305
+ destroyRef = inject(DestroyRef);
306
+ gridHost = viewChild.required('gridHost');
307
+ cellTemplates = contentChildren(StCellDirective);
308
+ editorTemplates = contentChildren(StEditorDirective);
309
+ detailTemplate = contentChild(StDetailDirective);
310
+ // Inputs
311
+ rowData = input([]);
312
+ columnDefs = input([]);
313
+ defaultColDef = input(undefined);
314
+ columnTypes = input(undefined);
315
+ getRowId = input(undefined);
316
+ rowModelType = input(undefined);
317
+ serverSideDatasource = input(undefined);
318
+ masterDetail = input(undefined);
319
+ isRowMaster = input(undefined);
320
+ detailRowHeight = input(undefined);
321
+ detailCellRenderer = input(undefined);
322
+ expandOnRowClick = input(undefined);
323
+ treeData = input(undefined);
324
+ getDataPath = input(undefined);
325
+ treeColumnId = input(undefined);
326
+ groupDefaultExpanded = input(undefined);
327
+ treeShowChildCount = input(undefined);
328
+ treeIndentPx = input(undefined);
329
+ treeToggleLabel = input(undefined);
330
+ treeExpandAllControl = input(undefined);
331
+ groupHideGroupedColumns = input(undefined);
332
+ pinnedTopRowData = input(undefined);
333
+ pinnedBottomRowData = input(undefined);
334
+ pinnedBottomSummary = input(undefined);
335
+ globalSearch = input(undefined);
336
+ quickFilterText = input(undefined);
337
+ columnChooser = input(undefined);
338
+ csvExport = input(undefined);
339
+ rowSelection = input(undefined);
340
+ pagination = input(undefined);
341
+ paginationPageSize = input(undefined);
342
+ paginationPageSizeSelector = input(undefined);
343
+ virtualization = input(undefined);
344
+ responsivePinning = input(undefined);
345
+ /** Custom cell editors by name (Angular components); see also `<ng-template stEditor>`. */
346
+ cellEditors = input(undefined);
347
+ singleClickEdit = input(undefined);
348
+ undoRedoCellEditing = input(undefined);
349
+ undoRedoCellEditingLimit = input(undefined);
350
+ initialState = input(undefined);
351
+ initialSortModel = input(undefined);
352
+ initialFilterModel = input(undefined);
353
+ heightMode = input(undefined);
354
+ maxHeight = input(undefined);
355
+ stickyHeader = input(undefined);
356
+ rowHeight = input(undefined);
357
+ getRowHeight = input(undefined);
358
+ getRowHref = input(undefined);
359
+ asyncTransactionWaitMillis = input(undefined);
360
+ headerHeight = input(undefined);
361
+ // Unbound inputs stay undefined so the grid's own defaults (and values set through the
362
+ // API, e.g. api.setTheme) are not overwritten when another input changes
363
+ theme = input(undefined);
364
+ density = input(undefined);
365
+ enableCellChangeFlash = input(undefined);
366
+ ariaLabel = input(undefined);
367
+ noRowsMessage = input(undefined);
368
+ noMatchingRowsMessage = input(undefined);
369
+ localeText = input(undefined);
370
+ cellSelection = input(undefined);
371
+ loading = input(undefined);
372
+ // Outputs
373
+ gridReady = output();
374
+ rowClicked = output();
375
+ cellClicked = output();
376
+ cellValueChanged = output();
377
+ selectionChanged = output();
378
+ sortChanged = output();
379
+ filterChanged = output();
380
+ columnResized = output();
381
+ columnMoved = output();
382
+ columnPinned = output();
383
+ columnVisibilityChanged = output();
384
+ paginationChanged = output();
385
+ stateChanged = output();
386
+ rowDetailToggled = output();
387
+ treeNodeToggled = output();
388
+ treeExpansionChanged = output();
389
+ cellSelectionChanged = output();
390
+ api = null;
391
+ mountAdapter = new AngularMountAdapter(this.appRef, this.envInjector);
392
+ /** Input-derived options as last sent to the grid; only differences are sent later. */
393
+ sentOptions = {};
394
+ templateSignature = [];
395
+ /** Output bridges; created once so they never count as changed options. */
396
+ eventOptions = {
397
+ componentMountAdapter: this.mountAdapter,
398
+ onGridReady: (e) => {
399
+ // Fires synchronously inside createGrid: expose the API before handlers run
400
+ this.api = e.api;
401
+ this.gridReady.emit(e);
402
+ },
403
+ onRowClicked: (e) => this.rowClicked.emit(e),
404
+ onCellClicked: (e) => this.cellClicked.emit(e),
405
+ onCellValueChanged: (e) => this.cellValueChanged.emit(e),
406
+ onSelectionChanged: (e) => this.selectionChanged.emit(e),
407
+ onSortChanged: (e) => this.sortChanged.emit(e),
408
+ onFilterChanged: (e) => this.filterChanged.emit(e),
409
+ onColumnResized: (e) => this.columnResized.emit(e),
410
+ onColumnMoved: (e) => this.columnMoved.emit(e),
411
+ onColumnPinned: (e) => this.columnPinned.emit(e),
412
+ onColumnVisibilityChanged: (e) => this.columnVisibilityChanged.emit(e),
413
+ onPaginationChanged: (e) => this.paginationChanged.emit(e),
414
+ onStateChanged: (e) => this.stateChanged.emit(e),
415
+ onRowDetailToggled: (e) => this.rowDetailToggled.emit(e),
416
+ onTreeNodeToggled: (e) => this.treeNodeToggled.emit(e),
417
+ onTreeExpansionChanged: (e) => this.treeExpansionChanged.emit(e),
418
+ onCellSelectionChanged: (e) => this.cellSelectionChanged.emit(e),
419
+ };
420
+ constructor() {
421
+ afterNextRender(() => {
422
+ this.syncTemplateMap();
423
+ const options = this.buildOptions();
424
+ this.sentOptions = options;
425
+ untracked(() => {
426
+ this.api = createGrid(this.gridHost().nativeElement, {
427
+ ...options,
428
+ ...this.eventOptions,
429
+ });
430
+ });
431
+ });
432
+ effect(() => {
433
+ // Reading the inputs and content templates here makes the effect track them
434
+ const templatesChanged = this.syncTemplateMap();
435
+ const options = this.buildOptions();
436
+ const api = this.api;
437
+ if (!api)
438
+ return;
439
+ const changed = this.diffOptions(options);
440
+ this.sentOptions = options;
441
+ // Grid callbacks (valueFormatter, cellClass, getRowId, …) run inside these calls;
442
+ // signals they read must not become dependencies of this effect
443
+ untracked(() => {
444
+ if (changed)
445
+ api.updateOptions(changed);
446
+ if (templatesChanged)
447
+ api.refreshCells();
448
+ });
449
+ });
450
+ this.destroyRef.onDestroy(() => {
451
+ this.api?.destroy();
452
+ this.api = null;
453
+ });
454
+ }
455
+ diffOptions(next) {
456
+ const prev = this.sentOptions;
457
+ const changed = {};
458
+ let any = false;
459
+ for (const [key, value] of Object.entries(next)) {
460
+ if (!Object.is(prev[key], value)) {
461
+ changed[key] = value;
462
+ any = true;
463
+ }
464
+ }
465
+ return any ? changed : null;
466
+ }
467
+ getApi() {
468
+ return this.api;
469
+ }
470
+ /** Updates the adapter's templates. Returns true when they differ from the last call. */
471
+ syncTemplateMap() {
472
+ const map = new Map();
473
+ const signature = [];
474
+ for (const dir of this.cellTemplates()) {
475
+ const colId = dir.colId();
476
+ map.set(colId, dir.templateRef);
477
+ signature.push(colId, dir.templateRef);
478
+ }
479
+ const editorMap = new Map();
480
+ for (const dir of this.editorTemplates()) {
481
+ editorMap.set(dir.name(), dir.templateRef);
482
+ signature.push(`editor:${dir.name()}`, dir.templateRef);
483
+ }
484
+ const detail = this.detailTemplate()?.templateRef ?? null;
485
+ signature.push(detail);
486
+ this.mountAdapter.setTemplates(map);
487
+ this.mountAdapter.setEditorTemplates(editorMap);
488
+ this.mountAdapter.setDetailTemplate(detail);
489
+ const changed = signature.length !== this.templateSignature.length ||
490
+ signature.some((v, i) => v !== this.templateSignature[i]);
491
+ this.templateSignature = signature;
492
+ return changed;
493
+ }
494
+ buildOptions() {
495
+ return {
496
+ rowData: this.rowData(),
497
+ columnDefs: this.columnDefs(),
498
+ defaultColDef: this.defaultColDef(),
499
+ columnTypes: this.columnTypes(),
500
+ getRowId: this.getRowId(),
501
+ rowModelType: this.rowModelType(),
502
+ serverSideDatasource: this.serverSideDatasource(),
503
+ masterDetail: this.masterDetail(),
504
+ isRowMaster: this.isRowMaster(),
505
+ detailRowHeight: this.detailRowHeight(),
506
+ detailCellRenderer: this.detailCellRenderer(),
507
+ expandOnRowClick: this.expandOnRowClick(),
508
+ treeData: this.treeData(),
509
+ getDataPath: this.getDataPath(),
510
+ treeColumnId: this.treeColumnId(),
511
+ groupDefaultExpanded: this.groupDefaultExpanded(),
512
+ treeShowChildCount: this.treeShowChildCount(),
513
+ treeIndentPx: this.treeIndentPx(),
514
+ treeToggleLabel: this.treeToggleLabel(),
515
+ treeExpandAllControl: this.treeExpandAllControl(),
516
+ groupHideGroupedColumns: this.groupHideGroupedColumns(),
517
+ pinnedTopRowData: this.pinnedTopRowData(),
518
+ pinnedBottomRowData: this.pinnedBottomRowData(),
519
+ pinnedBottomSummary: this.pinnedBottomSummary(),
520
+ globalSearch: this.globalSearch(),
521
+ quickFilterText: this.quickFilterText(),
522
+ columnChooser: this.columnChooser(),
523
+ csvExport: this.csvExport(),
524
+ rowSelection: this.rowSelection(),
525
+ pagination: this.pagination(),
526
+ paginationPageSize: this.paginationPageSize(),
527
+ paginationPageSizeSelector: this.paginationPageSizeSelector(),
528
+ virtualization: this.virtualization(),
529
+ responsivePinning: this.responsivePinning(),
530
+ cellEditors: this.cellEditors(),
531
+ singleClickEdit: this.singleClickEdit(),
532
+ undoRedoCellEditing: this.undoRedoCellEditing(),
533
+ undoRedoCellEditingLimit: this.undoRedoCellEditingLimit(),
534
+ initialState: this.initialState(),
535
+ initialSortModel: this.initialSortModel(),
536
+ initialFilterModel: this.initialFilterModel(),
537
+ heightMode: this.heightMode(),
538
+ maxHeight: this.maxHeight(),
539
+ stickyHeader: this.stickyHeader(),
540
+ rowHeight: this.rowHeight(),
541
+ getRowHeight: this.getRowHeight(),
542
+ getRowHref: this.getRowHref(),
543
+ asyncTransactionWaitMillis: this.asyncTransactionWaitMillis(),
544
+ headerHeight: this.headerHeight(),
545
+ theme: this.theme(),
546
+ density: this.density(),
547
+ enableCellChangeFlash: this.enableCellChangeFlash(),
548
+ ariaLabel: this.ariaLabel(),
549
+ noRowsMessage: this.noRowsMessage(),
550
+ noMatchingRowsMessage: this.noMatchingRowsMessage(),
551
+ localeText: this.localeText(),
552
+ cellSelection: this.cellSelection(),
553
+ loading: this.loading(),
554
+ };
555
+ }
556
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StramienGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
557
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.25", type: StramienGridComponent, isStandalone: true, selector: "stramien-grid", inputs: { rowData: { classPropertyName: "rowData", publicName: "rowData", isSignal: true, isRequired: false, transformFunction: null }, columnDefs: { classPropertyName: "columnDefs", publicName: "columnDefs", isSignal: true, isRequired: false, transformFunction: null }, defaultColDef: { classPropertyName: "defaultColDef", publicName: "defaultColDef", isSignal: true, isRequired: false, transformFunction: null }, columnTypes: { classPropertyName: "columnTypes", publicName: "columnTypes", isSignal: true, isRequired: false, transformFunction: null }, getRowId: { classPropertyName: "getRowId", publicName: "getRowId", isSignal: true, isRequired: false, transformFunction: null }, rowModelType: { classPropertyName: "rowModelType", publicName: "rowModelType", isSignal: true, isRequired: false, transformFunction: null }, serverSideDatasource: { classPropertyName: "serverSideDatasource", publicName: "serverSideDatasource", isSignal: true, isRequired: false, transformFunction: null }, masterDetail: { classPropertyName: "masterDetail", publicName: "masterDetail", isSignal: true, isRequired: false, transformFunction: null }, isRowMaster: { classPropertyName: "isRowMaster", publicName: "isRowMaster", isSignal: true, isRequired: false, transformFunction: null }, detailRowHeight: { classPropertyName: "detailRowHeight", publicName: "detailRowHeight", isSignal: true, isRequired: false, transformFunction: null }, detailCellRenderer: { classPropertyName: "detailCellRenderer", publicName: "detailCellRenderer", isSignal: true, isRequired: false, transformFunction: null }, expandOnRowClick: { classPropertyName: "expandOnRowClick", publicName: "expandOnRowClick", isSignal: true, isRequired: false, transformFunction: null }, treeData: { classPropertyName: "treeData", publicName: "treeData", isSignal: true, isRequired: false, transformFunction: null }, getDataPath: { classPropertyName: "getDataPath", publicName: "getDataPath", isSignal: true, isRequired: false, transformFunction: null }, treeColumnId: { classPropertyName: "treeColumnId", publicName: "treeColumnId", isSignal: true, isRequired: false, transformFunction: null }, groupDefaultExpanded: { classPropertyName: "groupDefaultExpanded", publicName: "groupDefaultExpanded", isSignal: true, isRequired: false, transformFunction: null }, treeShowChildCount: { classPropertyName: "treeShowChildCount", publicName: "treeShowChildCount", isSignal: true, isRequired: false, transformFunction: null }, treeIndentPx: { classPropertyName: "treeIndentPx", publicName: "treeIndentPx", isSignal: true, isRequired: false, transformFunction: null }, treeToggleLabel: { classPropertyName: "treeToggleLabel", publicName: "treeToggleLabel", isSignal: true, isRequired: false, transformFunction: null }, treeExpandAllControl: { classPropertyName: "treeExpandAllControl", publicName: "treeExpandAllControl", isSignal: true, isRequired: false, transformFunction: null }, groupHideGroupedColumns: { classPropertyName: "groupHideGroupedColumns", publicName: "groupHideGroupedColumns", isSignal: true, isRequired: false, transformFunction: null }, pinnedTopRowData: { classPropertyName: "pinnedTopRowData", publicName: "pinnedTopRowData", isSignal: true, isRequired: false, transformFunction: null }, pinnedBottomRowData: { classPropertyName: "pinnedBottomRowData", publicName: "pinnedBottomRowData", isSignal: true, isRequired: false, transformFunction: null }, pinnedBottomSummary: { classPropertyName: "pinnedBottomSummary", publicName: "pinnedBottomSummary", isSignal: true, isRequired: false, transformFunction: null }, globalSearch: { classPropertyName: "globalSearch", publicName: "globalSearch", isSignal: true, isRequired: false, transformFunction: null }, quickFilterText: { classPropertyName: "quickFilterText", publicName: "quickFilterText", isSignal: true, isRequired: false, transformFunction: null }, columnChooser: { classPropertyName: "columnChooser", publicName: "columnChooser", isSignal: true, isRequired: false, transformFunction: null }, csvExport: { classPropertyName: "csvExport", publicName: "csvExport", isSignal: true, isRequired: false, transformFunction: null }, rowSelection: { classPropertyName: "rowSelection", publicName: "rowSelection", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, paginationPageSize: { classPropertyName: "paginationPageSize", publicName: "paginationPageSize", isSignal: true, isRequired: false, transformFunction: null }, paginationPageSizeSelector: { classPropertyName: "paginationPageSizeSelector", publicName: "paginationPageSizeSelector", isSignal: true, isRequired: false, transformFunction: null }, virtualization: { classPropertyName: "virtualization", publicName: "virtualization", isSignal: true, isRequired: false, transformFunction: null }, responsivePinning: { classPropertyName: "responsivePinning", publicName: "responsivePinning", isSignal: true, isRequired: false, transformFunction: null }, cellEditors: { classPropertyName: "cellEditors", publicName: "cellEditors", isSignal: true, isRequired: false, transformFunction: null }, singleClickEdit: { classPropertyName: "singleClickEdit", publicName: "singleClickEdit", isSignal: true, isRequired: false, transformFunction: null }, undoRedoCellEditing: { classPropertyName: "undoRedoCellEditing", publicName: "undoRedoCellEditing", isSignal: true, isRequired: false, transformFunction: null }, undoRedoCellEditingLimit: { classPropertyName: "undoRedoCellEditingLimit", publicName: "undoRedoCellEditingLimit", isSignal: true, isRequired: false, transformFunction: null }, initialState: { classPropertyName: "initialState", publicName: "initialState", isSignal: true, isRequired: false, transformFunction: null }, initialSortModel: { classPropertyName: "initialSortModel", publicName: "initialSortModel", isSignal: true, isRequired: false, transformFunction: null }, initialFilterModel: { classPropertyName: "initialFilterModel", publicName: "initialFilterModel", isSignal: true, isRequired: false, transformFunction: null }, heightMode: { classPropertyName: "heightMode", publicName: "heightMode", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, stickyHeader: { classPropertyName: "stickyHeader", publicName: "stickyHeader", isSignal: true, isRequired: false, transformFunction: null }, rowHeight: { classPropertyName: "rowHeight", publicName: "rowHeight", isSignal: true, isRequired: false, transformFunction: null }, getRowHeight: { classPropertyName: "getRowHeight", publicName: "getRowHeight", isSignal: true, isRequired: false, transformFunction: null }, getRowHref: { classPropertyName: "getRowHref", publicName: "getRowHref", isSignal: true, isRequired: false, transformFunction: null }, asyncTransactionWaitMillis: { classPropertyName: "asyncTransactionWaitMillis", publicName: "asyncTransactionWaitMillis", isSignal: true, isRequired: false, transformFunction: null }, headerHeight: { classPropertyName: "headerHeight", publicName: "headerHeight", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, enableCellChangeFlash: { classPropertyName: "enableCellChangeFlash", publicName: "enableCellChangeFlash", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, noRowsMessage: { classPropertyName: "noRowsMessage", publicName: "noRowsMessage", isSignal: true, isRequired: false, transformFunction: null }, noMatchingRowsMessage: { classPropertyName: "noMatchingRowsMessage", publicName: "noMatchingRowsMessage", isSignal: true, isRequired: false, transformFunction: null }, localeText: { classPropertyName: "localeText", publicName: "localeText", isSignal: true, isRequired: false, transformFunction: null }, cellSelection: { classPropertyName: "cellSelection", publicName: "cellSelection", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { gridReady: "gridReady", rowClicked: "rowClicked", cellClicked: "cellClicked", cellValueChanged: "cellValueChanged", selectionChanged: "selectionChanged", sortChanged: "sortChanged", filterChanged: "filterChanged", columnResized: "columnResized", columnMoved: "columnMoved", columnPinned: "columnPinned", columnVisibilityChanged: "columnVisibilityChanged", paginationChanged: "paginationChanged", stateChanged: "stateChanged", rowDetailToggled: "rowDetailToggled", treeNodeToggled: "treeNodeToggled", treeExpansionChanged: "treeExpansionChanged", cellSelectionChanged: "cellSelectionChanged" }, host: { properties: { "class.st-grid-content-height": "heightMode() === 'content'" } }, queries: [{ propertyName: "cellTemplates", predicate: StCellDirective, isSignal: true }, { propertyName: "editorTemplates", predicate: StEditorDirective, isSignal: true }, { propertyName: "detailTemplate", first: true, predicate: StDetailDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "gridHost", first: true, predicate: ["gridHost"], descendants: true, isSignal: true }], ngImport: i0, template: `<div #gridHost class="st-grid-angular-host"></div>`, isInline: true, styles: ["@layer stramien.base{:host{display:block;width:100%;height:100%}.st-grid-angular-host{width:100%;height:100%}:host(.st-grid-content-height),:host(.st-grid-content-height) .st-grid-angular-host{height:auto}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
558
+ }
559
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: StramienGridComponent, decorators: [{
560
+ type: Component,
561
+ args: [{ selector: 'stramien-grid', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: `<div #gridHost class="st-grid-angular-host"></div>`, host: { '[class.st-grid-content-height]': "heightMode() === 'content'" }, styles: ["@layer stramien.base{:host{display:block;width:100%;height:100%}.st-grid-angular-host{width:100%;height:100%}:host(.st-grid-content-height),:host(.st-grid-content-height) .st-grid-angular-host{height:auto}}\n"] }]
562
+ }], ctorParameters: () => [] });
563
+
564
+ /**
565
+ * Generated bundle index. Do not edit.
566
+ */
567
+
568
+ export { AngularMountAdapter, StCellDirective, StDetailDirective, StEditorDirective, StramienGridComponent };
569
+ //# sourceMappingURL=stramien-angular.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stramien-angular.mjs","sources":["../../src/angular-mount-adapter.ts","../../src/st-cell.directive.ts","../../src/st-detail.directive.ts","../../src/st-editor.directive.ts","../../src/st-grid.component.ts","../../src/stramien-angular.ts"],"sourcesContent":["import {\n type ApplicationRef,\n ChangeDetectorRef,\n type ComponentRef,\n createComponent,\n type EnvironmentInjector,\n reflectComponentType,\n type TemplateRef,\n type Type,\n} from '@angular/core';\nimport type {\n CellEditorComponentParams,\n CellRendererParams,\n ComponentMountAdapter,\n DetailCellRendererParams,\n MountedComponentHandle,\n} from '@stramien/core';\nimport type { StCellTemplateContext } from './st-cell.directive';\nimport type { StDetailTemplateContext } from './st-detail.directive';\nimport type { StEditorTemplateContext } from './st-editor.directive';\n\nexport interface StCellRendererComponent<TData = Record<string, unknown>, TValue = unknown> {\n params?: CellRendererParams<TData, TValue>;\n}\n\n/** A component used as a custom cell editor receives the editor params as `params`. */\nexport interface StCellEditorComponent<TData = Record<string, unknown>, TValue = unknown> {\n params?: CellEditorComponentParams<TData, TValue>;\n}\n\nexport interface StDetailRendererComponent<TData = Record<string, unknown>> {\n params?: DetailCellRendererParams<TData>;\n}\n\nfunction isAngularComponentClass(value: unknown): value is Type<unknown> {\n return typeof value === 'function' && 'ɵcmp' in value;\n}\n\n/**\n * Passes `params` to a mounted component. Uses setInput when the component declares a\n * `params` input (signal or decorator); otherwise assigns the plain property. setInput on\n * an undeclared input does not throw (it only logs NG0303 in dev mode), so it cannot be\n * used as a try/catch probe.\n */\nfunction setParams(compRef: ComponentRef<unknown>, renderer: Type<unknown>, params: unknown): void {\n const declaresInput = reflectComponentType(renderer)?.inputs.some(\n (input) => input.templateName === 'params' || input.propName === 'params',\n );\n if (declaresInput) {\n compRef.setInput('params', params);\n } else {\n (compRef.instance as { params?: unknown }).params = params;\n // A plain field assignment does not mark an OnPush component dirty (setInput does)\n compRef.injector.get(ChangeDetectorRef).markForCheck();\n }\n}\n\nexport class AngularMountAdapter implements ComponentMountAdapter {\n private templateMap = new Map<string, TemplateRef<StCellTemplateContext<any, any>>>();\n private detailTemplate: TemplateRef<StDetailTemplateContext<any>> | null = null;\n private editorTemplateMap = new Map<string, TemplateRef<StEditorTemplateContext<any, any>>>();\n\n constructor(\n private readonly appRef: ApplicationRef,\n private readonly envInjector: EnvironmentInjector,\n ) {}\n\n setTemplates(map: Map<string, TemplateRef<StCellTemplateContext<any, any>>>): void {\n this.templateMap = map;\n }\n\n setEditorTemplates(map: Map<string, TemplateRef<StEditorTemplateContext<any, any>>>): void {\n this.editorTemplateMap = map;\n }\n\n canMountEditor(editor: unknown, name: string | undefined): boolean {\n if (name && this.editorTemplateMap.has(name)) return true;\n return isAngularComponentClass(editor);\n }\n\n mountEditor(\n container: HTMLElement,\n editor: unknown,\n params: CellEditorComponentParams<any, any>,\n ): MountedComponentHandle {\n const templateRef = params.editorName\n ? this.editorTemplateMap.get(params.editorName)\n : undefined;\n if (templateRef) {\n const context: StEditorTemplateContext<any, any> = {\n $implicit: params,\n params,\n value: params.value,\n data: params.data,\n node: params.node,\n colDef: params.colDef,\n api: params.api,\n editorParams: params.editorParams,\n setValue: params.setValue,\n stopEditing: params.stopEditing,\n };\n const viewRef = templateRef.createEmbeddedView(context);\n this.appRef.attachView(viewRef);\n for (const node of viewRef.rootNodes) {\n container.appendChild(node);\n }\n viewRef.detectChanges();\n return {\n destroy: () => {\n this.appRef.detachView(viewRef);\n viewRef.destroy();\n },\n };\n }\n\n if (isAngularComponentClass(editor)) {\n const host = document.createElement('div');\n host.style.display = 'contents';\n container.appendChild(host);\n const compRef = createComponent(editor, {\n environmentInjector: this.envInjector,\n hostElement: host,\n });\n setParams(compRef, editor, params);\n this.appRef.attachView(compRef.hostView);\n compRef.changeDetectorRef.detectChanges();\n return {\n destroy: () => {\n this.appRef.detachView(compRef.hostView);\n compRef.destroy();\n },\n };\n }\n\n return { destroy: () => {} };\n }\n\n setDetailTemplate(tpl: TemplateRef<StDetailTemplateContext<any>> | null): void {\n this.detailTemplate = tpl;\n }\n\n canMount(renderer: unknown, colId: string): boolean {\n if (this.templateMap.has(colId)) return true;\n return isAngularComponentClass(renderer);\n }\n\n canMountDetail(renderer: unknown): boolean {\n if (this.detailTemplate) return true;\n return isAngularComponentClass(renderer);\n }\n\n mountDetail(\n container: HTMLElement,\n renderer: unknown,\n params: DetailCellRendererParams<any>,\n ): MountedComponentHandle {\n if (this.detailTemplate) {\n const context: StDetailTemplateContext<any> = {\n $implicit: params.data,\n data: params.data,\n node: params.node,\n api: params.api,\n };\n const viewRef = this.detailTemplate.createEmbeddedView(context);\n this.appRef.attachView(viewRef);\n for (const node of viewRef.rootNodes) {\n container.appendChild(node);\n }\n viewRef.detectChanges();\n\n return {\n update: (next) => {\n const p = next as unknown as DetailCellRendererParams<any>;\n Object.assign(viewRef.context, { $implicit: p.data, data: p.data, node: p.node });\n viewRef.detectChanges();\n },\n destroy: () => {\n this.appRef.detachView(viewRef);\n viewRef.destroy();\n },\n };\n }\n\n if (isAngularComponentClass(renderer)) {\n const host = document.createElement('div');\n host.style.display = 'contents';\n container.appendChild(host);\n\n const compRef = createComponent(renderer, {\n environmentInjector: this.envInjector,\n hostElement: host,\n });\n\n setParams(compRef, renderer, params);\n\n this.appRef.attachView(compRef.hostView);\n compRef.changeDetectorRef.detectChanges();\n\n return {\n update: (next) => {\n setParams(compRef, renderer, next);\n compRef.changeDetectorRef.detectChanges();\n },\n destroy: () => {\n this.appRef.detachView(compRef.hostView);\n compRef.destroy();\n },\n };\n }\n\n return { destroy: () => {} };\n }\n\n mount(\n container: HTMLElement,\n renderer: unknown,\n params: CellRendererParams<any, any>,\n ): MountedComponentHandle {\n const templateRef = this.templateMap.get(params.colDef.colId);\n if (templateRef) {\n const context: StCellTemplateContext<any, any> = {\n $implicit: params.value,\n value: params.value,\n formattedValue: params.formattedValue,\n subtitle: params.subtitle ?? '',\n data: params.data,\n node: params.node,\n colDef: params.colDef,\n api: params.api,\n };\n const viewRef = templateRef.createEmbeddedView(context);\n this.appRef.attachView(viewRef);\n for (const node of viewRef.rootNodes) {\n container.appendChild(node);\n }\n viewRef.detectChanges();\n\n return {\n update: (next) => {\n Object.assign(viewRef.context, {\n $implicit: next.value,\n value: next.value,\n formattedValue: next.formattedValue,\n subtitle: next.subtitle ?? '',\n data: next.data,\n node: next.node,\n });\n viewRef.detectChanges();\n },\n destroy: () => {\n this.appRef.detachView(viewRef);\n viewRef.destroy();\n },\n };\n }\n\n if (isAngularComponentClass(renderer)) {\n const host = document.createElement('div');\n host.style.display = 'contents';\n container.appendChild(host);\n\n const compRef = createComponent(renderer, {\n environmentInjector: this.envInjector,\n hostElement: host,\n });\n\n setParams(compRef, renderer, params);\n\n this.appRef.attachView(compRef.hostView);\n compRef.changeDetectorRef.detectChanges();\n\n return {\n update: (next) => {\n setParams(compRef, renderer, next);\n compRef.changeDetectorRef.detectChanges();\n },\n destroy: () => {\n this.appRef.detachView(compRef.hostView);\n compRef.destroy();\n },\n };\n }\n\n return { destroy: () => {} };\n }\n}\n","import { Directive, inject, input, TemplateRef } from '@angular/core';\nimport type { GridApi, ResolvedColDef, RowNode } from '@stramien/core';\n\nexport interface StCellTemplateContext<TData = Record<string, unknown>, TValue = unknown> {\n $implicit: TValue;\n value: TValue;\n formattedValue: string;\n /** The column's `cellSubtitle` for this cell (`''` when it has none), e.g. `let-sub=\"subtitle\"`. */\n subtitle: string;\n data: TData;\n node: RowNode<TData>;\n colDef: ResolvedColDef<TData, TValue>;\n api: GridApi<TData>;\n}\n\n@Directive({\n selector: 'ng-template[stCell]',\n standalone: true,\n})\nexport class StCellDirective<TData = Record<string, unknown>, TValue = unknown> {\n readonly colId = input.required<string>({ alias: 'stCell' });\n /**\n * Optional type-inference binding: `[stCellRows]=\"rowData()\"` types `let-row=\"data\"`\n * (and `node`) as the grid's row type in strict templates.\n */\n readonly rows = input<readonly TData[] | undefined>(undefined, { alias: 'stCellRows' });\n readonly templateRef = inject(TemplateRef<StCellTemplateContext<TData, TValue>>);\n\n static ngTemplateContextGuard<TData, TValue>(\n _dir: StCellDirective<TData, TValue>,\n ctx: unknown,\n ): ctx is StCellTemplateContext<TData, TValue> {\n return true;\n }\n}\n","import { Directive, inject, input, TemplateRef } from '@angular/core';\nimport type { GridApi, RowNode } from '@stramien/core';\n\nexport interface StDetailTemplateContext<TData = Record<string, unknown>> {\n $implicit: TData;\n data: TData;\n node: RowNode<TData>;\n api: GridApi<TData>;\n}\n\n@Directive({\n selector: 'ng-template[stDetail]',\n standalone: true,\n})\nexport class StDetailDirective<TData = Record<string, unknown>> {\n /**\n * Optional type-inference binding: pass `[stDetail]=\"rowData()\"` to get full\n * strict TypeScript inference on `let-row` inside Angular templates.\n */\n readonly stDetail = input<readonly TData[] | TData | ''>('');\n readonly templateRef = inject(TemplateRef<StDetailTemplateContext<TData>>);\n\n static ngTemplateContextGuard<TData>(\n _dir: StDetailDirective<TData>,\n ctx: unknown,\n ): ctx is StDetailTemplateContext<TData> {\n return true;\n }\n}\n","import { Directive, inject, input, TemplateRef } from '@angular/core';\nimport type {\n CellEditorComponentParams,\n CellEditorParams,\n GridApi,\n ResolvedColDef,\n RowNode,\n} from '@stramien/core';\n\nexport interface StEditorTemplateContext<TData = Record<string, unknown>, TValue = unknown> {\n /** All editor params (`let-params`). */\n $implicit: CellEditorComponentParams<TData, TValue>;\n params: CellEditorComponentParams<TData, TValue>;\n /** The value when editing started. */\n value: TValue;\n data: TData;\n node: RowNode<TData>;\n colDef: ResolvedColDef<TData, TValue>;\n api: GridApi<TData>;\n editorParams: CellEditorParams;\n /** Sets the value that will be committed (typed; no valueParser runs). */\n setValue: (value: TValue) => void;\n /** Commits (or cancels) the edit. Returns false when the validator rejected the value. */\n stopEditing: (cancel?: boolean) => boolean;\n}\n\n/**\n * Registers a custom cell editor under a name, for use as `cellEditor: 'name'` (also from\n * the function form of `cellEditor`):\n *\n * ```html\n * <ng-template stEditor=\"tags\" let-p>\n * <app-tags-input [value]=\"p.value\" (valueChange)=\"p.setValue($event)\" />\n * </ng-template>\n * ```\n *\n * `Enter` commits, `Escape` cancels and `Tab` commits and moves on; an editor that needs\n * one of those keys itself stops the key event's propagation. Focus leaving the cell\n * commits too.\n */\n@Directive({\n selector: 'ng-template[stEditor]',\n standalone: true,\n})\nexport class StEditorDirective {\n readonly name = input.required<string>({ alias: 'stEditor' });\n readonly templateRef = inject(TemplateRef<StEditorTemplateContext<any, any>>);\n\n /**\n * An editor template can serve rows and values of any type (the function form of\n * `cellEditor` picks it per row), so its context is loosely typed: `p.value` binds to any\n * input without `$any()`. Use a component in `cellEditors` for a fully typed editor.\n */\n static ngTemplateContextGuard(\n _dir: StEditorDirective,\n ctx: unknown,\n ): ctx is StEditorTemplateContext<any, any> {\n return true;\n }\n}\n","import {\n ApplicationRef,\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n contentChild,\n contentChildren,\n DestroyRef,\n type ElementRef,\n EnvironmentInjector,\n effect,\n inject,\n input,\n output,\n type TemplateRef,\n untracked,\n viewChild,\n} from '@angular/core';\nimport {\n type CellClickedEvent,\n type CellSelectionChangedEvent,\n type CellValueChangedEvent,\n type ColDef,\n type ColumnDefItem,\n type ColumnMovedEvent,\n type ColumnPinnedEvent,\n type ColumnResizedEvent,\n type ColumnTypeDef,\n type ColumnVisibilityChangedEvent,\n type CsvExportParams,\n createGrid,\n type DetailCellRenderer,\n type FilterChangedEvent,\n type FilterModel,\n type GlobalSearchConfig,\n type GridApi,\n type GridDensity,\n type GridOptions,\n type GridReadyEvent,\n type GridState,\n type GridThemeMode,\n type PaginationChangedEvent,\n type PinnedSummaryConfig,\n type ResponsivePinningConfig,\n type RowClickedEvent,\n type RowDetailToggledEvent,\n type RowModelType,\n type RowNode,\n type RowSelectionConfig,\n type SelectionChangedEvent,\n type ServerSideDatasource,\n type SortChangedEvent,\n type SortModelItem,\n type StateChangedEvent,\n type TreeExpansionChangedEvent,\n type TreeNodeToggledEvent,\n type VirtualizationConfig,\n} from '@stramien/core';\nimport { AngularMountAdapter } from './angular-mount-adapter';\nimport { StCellDirective, type StCellTemplateContext } from './st-cell.directive';\nimport { StDetailDirective } from './st-detail.directive';\nimport { StEditorDirective, type StEditorTemplateContext } from './st-editor.directive';\n\n@Component({\n selector: 'stramien-grid',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<div #gridHost class=\"st-grid-angular-host\"></div>`,\n // Content height: the host follows the grid instead of filling its container\n host: { '[class.st-grid-content-height]': \"heightMode() === 'content'\" },\n // In a cascade layer, so a height the app gives <stramien-grid> (unlayered CSS) always wins,\n // although component styles are added after the app's\n styles: `\n @layer stramien.base {\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n .st-grid-angular-host {\n width: 100%;\n height: 100%;\n }\n :host(.st-grid-content-height),\n :host(.st-grid-content-height) .st-grid-angular-host {\n height: auto;\n }\n }\n `,\n})\nexport class StramienGridComponent<TData = Record<string, unknown>> {\n private readonly appRef = inject(ApplicationRef);\n private readonly envInjector = inject(EnvironmentInjector);\n private readonly destroyRef = inject(DestroyRef);\n\n private readonly gridHost = viewChild.required<ElementRef<HTMLElement>>('gridHost');\n private readonly cellTemplates = contentChildren(StCellDirective);\n private readonly editorTemplates = contentChildren(StEditorDirective);\n private readonly detailTemplate = contentChild(StDetailDirective);\n\n // Inputs\n readonly rowData = input<TData[]>([]);\n readonly columnDefs = input<ColumnDefItem<TData>[]>([]);\n readonly defaultColDef = input<Partial<ColDef<TData, any>> | undefined>(undefined);\n readonly columnTypes = input<Record<string, ColumnTypeDef<TData>> | undefined>(undefined);\n readonly getRowId = input<((params: { data: TData; index: number }) => string) | undefined>(\n undefined,\n );\n readonly rowModelType = input<RowModelType | undefined>(undefined);\n readonly serverSideDatasource = input<ServerSideDatasource<TData> | null | undefined>(undefined);\n readonly masterDetail = input<boolean | undefined>(undefined);\n readonly isRowMaster = input<((data: TData, node: RowNode<TData>) => boolean) | undefined>(\n undefined,\n );\n readonly detailRowHeight = input<number | undefined>(undefined);\n readonly detailCellRenderer = input<DetailCellRenderer<TData> | undefined>(undefined);\n readonly expandOnRowClick = input<boolean | undefined>(undefined);\n readonly treeData = input<boolean | undefined>(undefined);\n readonly getDataPath = input<((data: TData) => string[]) | undefined>(undefined);\n readonly treeColumnId = input<string | undefined>(undefined);\n readonly groupDefaultExpanded = input<number | undefined>(undefined);\n readonly treeShowChildCount = input<boolean | undefined>(undefined);\n readonly treeIndentPx = input<number | undefined>(undefined);\n readonly treeToggleLabel = input<GridOptions<TData>['treeToggleLabel']>(undefined);\n readonly treeExpandAllControl = input<GridOptions<TData>['treeExpandAllControl']>(undefined);\n readonly groupHideGroupedColumns = input<boolean | undefined>(undefined);\n readonly pinnedTopRowData = input<TData[] | undefined>(undefined);\n readonly pinnedBottomRowData = input<TData[] | undefined>(undefined);\n readonly pinnedBottomSummary = input<boolean | PinnedSummaryConfig | undefined>(undefined);\n readonly globalSearch = input<boolean | GlobalSearchConfig | undefined>(undefined);\n readonly quickFilterText = input<string | undefined>(undefined);\n readonly columnChooser = input<boolean | undefined>(undefined);\n readonly csvExport = input<boolean | CsvExportParams | undefined>(undefined);\n readonly rowSelection = input<'single' | 'multiple' | RowSelectionConfig<TData> | undefined>(\n undefined,\n );\n readonly pagination = input<boolean | undefined>(undefined);\n readonly paginationPageSize = input<number | undefined>(undefined);\n readonly paginationPageSizeSelector = input<number[] | false | undefined>(undefined);\n readonly virtualization = input<boolean | VirtualizationConfig | undefined>(undefined);\n readonly responsivePinning = input<boolean | ResponsivePinningConfig | undefined>(undefined);\n /** Custom cell editors by name (Angular components); see also `<ng-template stEditor>`. */\n readonly cellEditors = input<Record<string, unknown> | undefined>(undefined);\n readonly singleClickEdit = input<boolean | undefined>(undefined);\n readonly undoRedoCellEditing = input<boolean | undefined>(undefined);\n readonly undoRedoCellEditingLimit = input<number | undefined>(undefined);\n readonly initialState = input<Partial<GridState> | undefined>(undefined);\n readonly initialSortModel = input<SortModelItem[] | undefined>(undefined);\n readonly initialFilterModel = input<FilterModel | undefined>(undefined);\n readonly heightMode = input<'fill' | 'content' | undefined>(undefined);\n readonly maxHeight = input<string | undefined>(undefined);\n readonly stickyHeader = input<boolean | { top?: string } | undefined>(undefined);\n readonly rowHeight = input<number | undefined>(undefined);\n readonly getRowHeight = input<GridOptions<TData>['getRowHeight']>(undefined);\n readonly getRowHref = input<GridOptions<TData>['getRowHref']>(undefined);\n readonly asyncTransactionWaitMillis = input<number | undefined>(undefined);\n readonly headerHeight = input<number | undefined>(undefined);\n // Unbound inputs stay undefined so the grid's own defaults (and values set through the\n // API, e.g. api.setTheme) are not overwritten when another input changes\n readonly theme = input<GridThemeMode | undefined>(undefined);\n readonly density = input<GridDensity | undefined>(undefined);\n readonly enableCellChangeFlash = input<boolean | undefined>(undefined);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly noRowsMessage = input<string | undefined>(undefined);\n readonly noMatchingRowsMessage = input<string | undefined>(undefined);\n readonly localeText = input<GridOptions<TData>['localeText']>(undefined);\n readonly cellSelection = input<GridOptions<TData>['cellSelection']>(undefined);\n readonly loading = input<boolean | undefined>(undefined);\n\n // Outputs\n readonly gridReady = output<GridReadyEvent<TData>>();\n readonly rowClicked = output<RowClickedEvent<TData>>();\n readonly cellClicked = output<CellClickedEvent<TData>>();\n readonly cellValueChanged = output<CellValueChangedEvent<TData, any>>();\n readonly selectionChanged = output<SelectionChangedEvent<TData>>();\n readonly sortChanged = output<SortChangedEvent<TData>>();\n readonly filterChanged = output<FilterChangedEvent<TData>>();\n readonly columnResized = output<ColumnResizedEvent<TData>>();\n readonly columnMoved = output<ColumnMovedEvent<TData>>();\n readonly columnPinned = output<ColumnPinnedEvent<TData>>();\n readonly columnVisibilityChanged = output<ColumnVisibilityChangedEvent<TData>>();\n readonly paginationChanged = output<PaginationChangedEvent<TData>>();\n readonly stateChanged = output<StateChangedEvent<TData>>();\n readonly rowDetailToggled = output<RowDetailToggledEvent<TData>>();\n readonly treeNodeToggled = output<TreeNodeToggledEvent<TData>>();\n readonly treeExpansionChanged = output<TreeExpansionChangedEvent<TData>>();\n readonly cellSelectionChanged = output<CellSelectionChangedEvent<TData>>();\n\n private api: GridApi<TData> | null = null;\n private readonly mountAdapter = new AngularMountAdapter(this.appRef, this.envInjector);\n /** Input-derived options as last sent to the grid; only differences are sent later. */\n private sentOptions: Partial<GridOptions<TData>> = {};\n private templateSignature: unknown[] = [];\n\n /** Output bridges; created once so they never count as changed options. */\n private readonly eventOptions: Partial<GridOptions<TData>> = {\n componentMountAdapter: this.mountAdapter,\n onGridReady: (e) => {\n // Fires synchronously inside createGrid: expose the API before handlers run\n this.api = e.api;\n this.gridReady.emit(e);\n },\n onRowClicked: (e) => this.rowClicked.emit(e),\n onCellClicked: (e) => this.cellClicked.emit(e),\n onCellValueChanged: (e) => this.cellValueChanged.emit(e),\n onSelectionChanged: (e) => this.selectionChanged.emit(e),\n onSortChanged: (e) => this.sortChanged.emit(e),\n onFilterChanged: (e) => this.filterChanged.emit(e),\n onColumnResized: (e) => this.columnResized.emit(e),\n onColumnMoved: (e) => this.columnMoved.emit(e),\n onColumnPinned: (e) => this.columnPinned.emit(e),\n onColumnVisibilityChanged: (e) => this.columnVisibilityChanged.emit(e),\n onPaginationChanged: (e) => this.paginationChanged.emit(e),\n onStateChanged: (e) => this.stateChanged.emit(e),\n onRowDetailToggled: (e) => this.rowDetailToggled.emit(e),\n onTreeNodeToggled: (e) => this.treeNodeToggled.emit(e),\n onTreeExpansionChanged: (e) => this.treeExpansionChanged.emit(e),\n onCellSelectionChanged: (e) => this.cellSelectionChanged.emit(e),\n };\n\n constructor() {\n afterNextRender(() => {\n this.syncTemplateMap();\n const options = this.buildOptions();\n this.sentOptions = options;\n untracked(() => {\n this.api = createGrid<TData>(this.gridHost().nativeElement, {\n ...options,\n ...this.eventOptions,\n } as GridOptions<TData>);\n });\n });\n\n effect(() => {\n // Reading the inputs and content templates here makes the effect track them\n const templatesChanged = this.syncTemplateMap();\n const options = this.buildOptions();\n const api = this.api;\n if (!api) return;\n const changed = this.diffOptions(options);\n this.sentOptions = options;\n // Grid callbacks (valueFormatter, cellClass, getRowId, …) run inside these calls;\n // signals they read must not become dependencies of this effect\n untracked(() => {\n if (changed) api.updateOptions(changed);\n if (templatesChanged) api.refreshCells();\n });\n });\n\n this.destroyRef.onDestroy(() => {\n this.api?.destroy();\n this.api = null;\n });\n }\n\n private diffOptions(next: Partial<GridOptions<TData>>): Partial<GridOptions<TData>> | null {\n const prev = this.sentOptions as Record<string, unknown>;\n const changed: Record<string, unknown> = {};\n let any = false;\n for (const [key, value] of Object.entries(next)) {\n if (!Object.is(prev[key], value)) {\n changed[key] = value;\n any = true;\n }\n }\n return any ? (changed as Partial<GridOptions<TData>>) : null;\n }\n\n getApi(): GridApi<TData> | null {\n return this.api;\n }\n\n /** Updates the adapter's templates. Returns true when they differ from the last call. */\n private syncTemplateMap(): boolean {\n const map = new Map<string, TemplateRef<StCellTemplateContext<any, any>>>();\n const signature: unknown[] = [];\n for (const dir of this.cellTemplates()) {\n const colId = dir.colId();\n map.set(colId, dir.templateRef);\n signature.push(colId, dir.templateRef);\n }\n const editorMap = new Map<string, TemplateRef<StEditorTemplateContext<any, any>>>();\n for (const dir of this.editorTemplates()) {\n editorMap.set(dir.name(), dir.templateRef);\n signature.push(`editor:${dir.name()}`, dir.templateRef);\n }\n const detail = this.detailTemplate()?.templateRef ?? null;\n signature.push(detail);\n this.mountAdapter.setTemplates(map);\n this.mountAdapter.setEditorTemplates(editorMap);\n this.mountAdapter.setDetailTemplate(detail);\n const changed =\n signature.length !== this.templateSignature.length ||\n signature.some((v, i) => v !== this.templateSignature[i]);\n this.templateSignature = signature;\n return changed;\n }\n\n private buildOptions(): Partial<GridOptions<TData>> {\n return {\n rowData: this.rowData(),\n columnDefs: this.columnDefs(),\n defaultColDef: this.defaultColDef(),\n columnTypes: this.columnTypes(),\n getRowId: this.getRowId(),\n rowModelType: this.rowModelType(),\n serverSideDatasource: this.serverSideDatasource(),\n masterDetail: this.masterDetail(),\n isRowMaster: this.isRowMaster(),\n detailRowHeight: this.detailRowHeight(),\n detailCellRenderer: this.detailCellRenderer(),\n expandOnRowClick: this.expandOnRowClick(),\n treeData: this.treeData(),\n getDataPath: this.getDataPath(),\n treeColumnId: this.treeColumnId(),\n groupDefaultExpanded: this.groupDefaultExpanded(),\n treeShowChildCount: this.treeShowChildCount(),\n treeIndentPx: this.treeIndentPx(),\n treeToggleLabel: this.treeToggleLabel(),\n treeExpandAllControl: this.treeExpandAllControl(),\n groupHideGroupedColumns: this.groupHideGroupedColumns(),\n pinnedTopRowData: this.pinnedTopRowData(),\n pinnedBottomRowData: this.pinnedBottomRowData(),\n pinnedBottomSummary: this.pinnedBottomSummary(),\n globalSearch: this.globalSearch(),\n quickFilterText: this.quickFilterText(),\n columnChooser: this.columnChooser(),\n csvExport: this.csvExport(),\n rowSelection: this.rowSelection(),\n pagination: this.pagination(),\n paginationPageSize: this.paginationPageSize(),\n paginationPageSizeSelector: this.paginationPageSizeSelector(),\n virtualization: this.virtualization(),\n responsivePinning: this.responsivePinning(),\n cellEditors: this.cellEditors(),\n singleClickEdit: this.singleClickEdit(),\n undoRedoCellEditing: this.undoRedoCellEditing(),\n undoRedoCellEditingLimit: this.undoRedoCellEditingLimit(),\n initialState: this.initialState(),\n initialSortModel: this.initialSortModel(),\n initialFilterModel: this.initialFilterModel(),\n heightMode: this.heightMode(),\n maxHeight: this.maxHeight(),\n stickyHeader: this.stickyHeader(),\n rowHeight: this.rowHeight(),\n getRowHeight: this.getRowHeight(),\n getRowHref: this.getRowHref(),\n asyncTransactionWaitMillis: this.asyncTransactionWaitMillis(),\n headerHeight: this.headerHeight(),\n theme: this.theme(),\n density: this.density(),\n enableCellChangeFlash: this.enableCellChangeFlash(),\n ariaLabel: this.ariaLabel(),\n noRowsMessage: this.noRowsMessage(),\n noMatchingRowsMessage: this.noMatchingRowsMessage(),\n localeText: this.localeText(),\n cellSelection: this.cellSelection(),\n loading: this.loading(),\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAkCA,SAA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A,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,qBAAqB,ynSAMiB,eAAe,EAAA,QAAA,EAAA,IAAA,EAAA,EAAA,EAAA,YAAA,EAAA,iBAAA,EAAA,SAAA,EACb,iBAAiB,EAAA,QAAA,EAAA,IAAA,EAAA,EAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EACrB,iBAAiB,sLA/BtD,CAAA,kDAAA,CAAoD,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,kNAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAuBnD,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBA3BjC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,eAAe,EAAA,UAAA,EACb,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,EAAA,QAAA,EACrC,CAAA,kDAAA,CAAoD,EAAA,IAAA,EAExD,EAAE,gCAAgC,EAAE,4BAA4B,EAAE,EAAA,MAAA,EAAA,CAAA,kNAAA,CAAA,EAAA;;;ACrE1E;;AAEG;;"}
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@stramien/angular" />
5
+ export * from './public-api';
package/package.json CHANGED
@@ -1,6 +1,50 @@
1
1
  {
2
2
  "name": "@stramien/angular",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.13.1",
4
+ "description": "Modern Angular (v18+, Signals, zoneless) adapter for Stramien",
5
+ "license": "MIT",
6
+ "author": "Erik-Jan van Baaren <erikjan@gmail.com>",
7
+ "homepage": "https://github.com/stramien/stramien#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/stramien/stramien.git",
11
+ "directory": "packages/angular"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/stramien/stramien/issues"
15
+ },
16
+ "keywords": [
17
+ "angular",
18
+ "angular-signals",
19
+ "zoneless",
20
+ "data-grid",
21
+ "datagrid",
22
+ "table",
23
+ "stramien"
24
+ ],
25
+ "publishConfig": {
26
+ "access": "public",
27
+ "directory": "dist"
28
+ },
29
+ "type": "module",
30
+ "module": "fesm2022/stramien-angular.mjs",
31
+ "typings": "index.d.ts",
32
+ "dependencies": {
33
+ "tslib": "^2.3.0",
34
+ "@stramien/core": "0.13.1"
35
+ },
36
+ "peerDependencies": {
37
+ "@angular/common": ">=18.0.0",
38
+ "@angular/core": ">=18.0.0"
39
+ },
40
+ "exports": {
41
+ "./package.json": {
42
+ "default": "./package.json"
43
+ },
44
+ ".": {
45
+ "types": "./index.d.ts",
46
+ "default": "./fesm2022/stramien-angular.mjs"
47
+ }
48
+ },
49
+ "sideEffects": false
6
50
  }
@@ -0,0 +1,7 @@
1
+ export type { ActionButtonDef, ActionButtonParams, ActionButtonTone, ActionButtonVariant, ActionsColumnOptions, AggFunc, AggFuncParams, BadgeColumnOptions, BadgeStyleConfig, BadgeTone, BarColumnOptions, BarColumnThresholds, BooleanColumnOptions, BuiltInActionIcon, BuiltInAggFunc, CellClassParams, CellClickedEvent, CellEditorComponentParams, CellEditorOption, CellEditorParams, CellEditorSelectorParams, CellEditorSpec, CellEditorType, CellRange, CellRangeParams, CellRenderer, CellRendererParams, CellSelectionChangedEvent, CellSelectionConfig, CellValidatorParams, CellValueChangedEvent, ColDef, ColGroupDef, ColumnDefItem, ColumnFilterModel, ColumnMovedEvent, ColumnPinnedEvent, ColumnResizedEvent, ColumnStateItem, ColumnTypeDef, ColumnVisibilityChangedEvent, CsvExportParams, CurrencyColumnOptions, CustomFilterDef, DateFilterModel, DateFilterOperator, DetailCellRenderer, DetailCellRendererParams, EditableParams, FilterChangedEvent, FilterModel, FilterType, GlobalSearchConfig, GridApi, GridDensity, GridEventMap, GridOptions, GridReadyEvent, GridState, GridThemeMode, HeaderGroupMeta, LocaleText, LocaleTextKey, LocaleTextParams, LocaleTextValue, NumberFilterModel, NumberFilterOperator, PaginationChangedEvent, PaginationState, PercentColumnOptions, PinnedDirection, PinnedSummaryConfig, QuickFilterTextParams, RefreshCellsParams, RelativeTimeColumnOptions, ResolvedColDef, ResponsivePinningConfig, RowClickedEvent, RowDataTransaction, RowDataTransactionResult, RowDetailToggledEvent, RowHeightParams, RowHrefParams, RowModelType, RowNode, RowSelectionConfig, ScrollAlign, SelectionChangedEvent, ServerSideDatasource, ServerSideGetRowsRequest, ServerSideGetRowsResult, SetFilterModel, SortChangedEvent, SortDirection, SortModelItem, SparklineColumnOptions, StateChangedEvent, TextFilterModel, TextFilterOperator, TreeExpandAllControl, TreeExpansionChangedEvent, TreeExpansionChangeSource, TreeNodeToggledEvent, TreeToggleLabelParams, ValueFormatterParams, ValueGetterParams, ValueParserParams, ValueSetterParams, VanillaCellEditorFn, VanillaCellEditorInstance, VanillaCellRendererFn, VanillaDetailCellRendererFn, VirtualizationConfig, } from '@stramien/core';
2
+ export { actionsColumn, badgeColumn, barColumn, booleanColumn, createBuiltInColumnTypes, currencyColumn, DEFAULT_LOCALE_TEXT, formatLocaleText, markVanillaRenderer, percentColumn, plural, relativeTimeColumn, sparklineColumn, VANILLA_RENDERER_SYMBOL, } from '@stramien/core';
3
+ export { AngularMountAdapter, type StCellEditorComponent, type StCellRendererComponent, type StDetailRendererComponent, } from './angular-mount-adapter';
4
+ export { StCellDirective, type StCellTemplateContext } from './st-cell.directive';
5
+ export { StDetailDirective, type StDetailTemplateContext } from './st-detail.directive';
6
+ export { StEditorDirective, type StEditorTemplateContext } from './st-editor.directive';
7
+ export { StramienGridComponent } from './st-grid.component';
@@ -0,0 +1,26 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import type { GridApi, ResolvedColDef, RowNode } from '@stramien/core';
3
+ import * as i0 from "@angular/core";
4
+ export interface StCellTemplateContext<TData = Record<string, unknown>, TValue = unknown> {
5
+ $implicit: TValue;
6
+ value: TValue;
7
+ formattedValue: string;
8
+ /** The column's `cellSubtitle` for this cell (`''` when it has none), e.g. `let-sub="subtitle"`. */
9
+ subtitle: string;
10
+ data: TData;
11
+ node: RowNode<TData>;
12
+ colDef: ResolvedColDef<TData, TValue>;
13
+ api: GridApi<TData>;
14
+ }
15
+ export declare class StCellDirective<TData = Record<string, unknown>, TValue = unknown> {
16
+ readonly colId: import("@angular/core").InputSignal<string>;
17
+ /**
18
+ * Optional type-inference binding: `[stCellRows]="rowData()"` types `let-row="data"`
19
+ * (and `node`) as the grid's row type in strict templates.
20
+ */
21
+ readonly rows: import("@angular/core").InputSignal<readonly TData[]>;
22
+ readonly templateRef: TemplateRef<any>;
23
+ static ngTemplateContextGuard<TData, TValue>(_dir: StCellDirective<TData, TValue>, ctx: unknown): ctx is StCellTemplateContext<TData, TValue>;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<StCellDirective<any, any>, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StCellDirective<any, any>, "ng-template[stCell]", never, { "colId": { "alias": "stCell"; "required": true; "isSignal": true; }; "rows": { "alias": "stCellRows"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
26
+ }
@@ -0,0 +1,20 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import type { GridApi, RowNode } from '@stramien/core';
3
+ import * as i0 from "@angular/core";
4
+ export interface StDetailTemplateContext<TData = Record<string, unknown>> {
5
+ $implicit: TData;
6
+ data: TData;
7
+ node: RowNode<TData>;
8
+ api: GridApi<TData>;
9
+ }
10
+ export declare class StDetailDirective<TData = Record<string, unknown>> {
11
+ /**
12
+ * Optional type-inference binding: pass `[stDetail]="rowData()"` to get full
13
+ * strict TypeScript inference on `let-row` inside Angular templates.
14
+ */
15
+ readonly stDetail: import("@angular/core").InputSignal<"" | TData | readonly TData[]>;
16
+ readonly templateRef: TemplateRef<any>;
17
+ static ngTemplateContextGuard<TData>(_dir: StDetailDirective<TData>, ctx: unknown): ctx is StDetailTemplateContext<TData>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<StDetailDirective<any>, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StDetailDirective<any>, "ng-template[stDetail]", never, { "stDetail": { "alias": "stDetail"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
20
+ }
@@ -0,0 +1,45 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import type { CellEditorComponentParams, CellEditorParams, GridApi, ResolvedColDef, RowNode } from '@stramien/core';
3
+ import * as i0 from "@angular/core";
4
+ export interface StEditorTemplateContext<TData = Record<string, unknown>, TValue = unknown> {
5
+ /** All editor params (`let-params`). */
6
+ $implicit: CellEditorComponentParams<TData, TValue>;
7
+ params: CellEditorComponentParams<TData, TValue>;
8
+ /** The value when editing started. */
9
+ value: TValue;
10
+ data: TData;
11
+ node: RowNode<TData>;
12
+ colDef: ResolvedColDef<TData, TValue>;
13
+ api: GridApi<TData>;
14
+ editorParams: CellEditorParams;
15
+ /** Sets the value that will be committed (typed; no valueParser runs). */
16
+ setValue: (value: TValue) => void;
17
+ /** Commits (or cancels) the edit. Returns false when the validator rejected the value. */
18
+ stopEditing: (cancel?: boolean) => boolean;
19
+ }
20
+ /**
21
+ * Registers a custom cell editor under a name, for use as `cellEditor: 'name'` (also from
22
+ * the function form of `cellEditor`):
23
+ *
24
+ * ```html
25
+ * <ng-template stEditor="tags" let-p>
26
+ * <app-tags-input [value]="p.value" (valueChange)="p.setValue($event)" />
27
+ * </ng-template>
28
+ * ```
29
+ *
30
+ * `Enter` commits, `Escape` cancels and `Tab` commits and moves on; an editor that needs
31
+ * one of those keys itself stops the key event's propagation. Focus leaving the cell
32
+ * commits too.
33
+ */
34
+ export declare class StEditorDirective {
35
+ readonly name: import("@angular/core").InputSignal<string>;
36
+ readonly templateRef: TemplateRef<any>;
37
+ /**
38
+ * An editor template can serve rows and values of any type (the function form of
39
+ * `cellEditor` picks it per row), so its context is loosely typed: `p.value` binds to any
40
+ * input without `$any()`. Use a component in `cellEditors` for a fully typed editor.
41
+ */
42
+ static ngTemplateContextGuard(_dir: StEditorDirective, ctx: unknown): ctx is StEditorTemplateContext<any, any>;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<StEditorDirective, never>;
44
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StEditorDirective, "ng-template[stEditor]", never, { "name": { "alias": "stEditor"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
45
+ }
@@ -0,0 +1,107 @@
1
+ import { type CellClickedEvent, type CellSelectionChangedEvent, type CellValueChangedEvent, type ColDef, type ColumnDefItem, type ColumnMovedEvent, type ColumnPinnedEvent, type ColumnResizedEvent, type ColumnVisibilityChangedEvent, type CsvExportParams, type DetailCellRenderer, type FilterChangedEvent, type FilterModel, type GlobalSearchConfig, type GridApi, type GridDensity, type GridReadyEvent, type GridState, type GridThemeMode, type PaginationChangedEvent, type PinnedSummaryConfig, type ResponsivePinningConfig, type RowClickedEvent, type RowDetailToggledEvent, type RowModelType, type RowNode, type RowSelectionConfig, type SelectionChangedEvent, type ServerSideDatasource, type SortChangedEvent, type SortModelItem, type StateChangedEvent, type TreeExpansionChangedEvent, type TreeNodeToggledEvent, type VirtualizationConfig } from '@stramien/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class StramienGridComponent<TData = Record<string, unknown>> {
4
+ private readonly appRef;
5
+ private readonly envInjector;
6
+ private readonly destroyRef;
7
+ private readonly gridHost;
8
+ private readonly cellTemplates;
9
+ private readonly editorTemplates;
10
+ private readonly detailTemplate;
11
+ readonly rowData: import("@angular/core").InputSignal<TData[]>;
12
+ readonly columnDefs: import("@angular/core").InputSignal<ColumnDefItem<TData>[]>;
13
+ readonly defaultColDef: import("@angular/core").InputSignal<Partial<ColDef<TData, any>>>;
14
+ readonly columnTypes: import("@angular/core").InputSignal<Record<string, Partial<ColDef<TData, any>>>>;
15
+ readonly getRowId: import("@angular/core").InputSignal<(params: {
16
+ data: TData;
17
+ index: number;
18
+ }) => string>;
19
+ readonly rowModelType: import("@angular/core").InputSignal<RowModelType>;
20
+ readonly serverSideDatasource: import("@angular/core").InputSignal<ServerSideDatasource<TData>>;
21
+ readonly masterDetail: import("@angular/core").InputSignal<boolean>;
22
+ readonly isRowMaster: import("@angular/core").InputSignal<(data: TData, node: RowNode<TData>) => boolean>;
23
+ readonly detailRowHeight: import("@angular/core").InputSignal<number>;
24
+ readonly detailCellRenderer: import("@angular/core").InputSignal<DetailCellRenderer<TData>>;
25
+ readonly expandOnRowClick: import("@angular/core").InputSignal<boolean>;
26
+ readonly treeData: import("@angular/core").InputSignal<boolean>;
27
+ readonly getDataPath: import("@angular/core").InputSignal<(data: TData) => string[]>;
28
+ readonly treeColumnId: import("@angular/core").InputSignal<string>;
29
+ readonly groupDefaultExpanded: import("@angular/core").InputSignal<number>;
30
+ readonly treeShowChildCount: import("@angular/core").InputSignal<boolean>;
31
+ readonly treeIndentPx: import("@angular/core").InputSignal<number>;
32
+ readonly treeToggleLabel: import("@angular/core").InputSignal<(params: import("@stramien/core").TreeToggleLabelParams<TData>) => string>;
33
+ readonly treeExpandAllControl: import("@angular/core").InputSignal<import("@stramien/core").TreeExpandAllControl>;
34
+ readonly groupHideGroupedColumns: import("@angular/core").InputSignal<boolean>;
35
+ readonly pinnedTopRowData: import("@angular/core").InputSignal<TData[]>;
36
+ readonly pinnedBottomRowData: import("@angular/core").InputSignal<TData[]>;
37
+ readonly pinnedBottomSummary: import("@angular/core").InputSignal<boolean | PinnedSummaryConfig>;
38
+ readonly globalSearch: import("@angular/core").InputSignal<boolean | GlobalSearchConfig>;
39
+ readonly quickFilterText: import("@angular/core").InputSignal<string>;
40
+ readonly columnChooser: import("@angular/core").InputSignal<boolean>;
41
+ readonly csvExport: import("@angular/core").InputSignal<boolean | CsvExportParams>;
42
+ readonly rowSelection: import("@angular/core").InputSignal<RowSelectionConfig<TData> | "single" | "multiple">;
43
+ readonly pagination: import("@angular/core").InputSignal<boolean>;
44
+ readonly paginationPageSize: import("@angular/core").InputSignal<number>;
45
+ readonly paginationPageSizeSelector: import("@angular/core").InputSignal<false | number[]>;
46
+ readonly virtualization: import("@angular/core").InputSignal<boolean | VirtualizationConfig>;
47
+ readonly responsivePinning: import("@angular/core").InputSignal<boolean | ResponsivePinningConfig>;
48
+ /** Custom cell editors by name (Angular components); see also `<ng-template stEditor>`. */
49
+ readonly cellEditors: import("@angular/core").InputSignal<Record<string, unknown>>;
50
+ readonly singleClickEdit: import("@angular/core").InputSignal<boolean>;
51
+ readonly undoRedoCellEditing: import("@angular/core").InputSignal<boolean>;
52
+ readonly undoRedoCellEditingLimit: import("@angular/core").InputSignal<number>;
53
+ readonly initialState: import("@angular/core").InputSignal<Partial<GridState>>;
54
+ readonly initialSortModel: import("@angular/core").InputSignal<SortModelItem[]>;
55
+ readonly initialFilterModel: import("@angular/core").InputSignal<FilterModel>;
56
+ readonly heightMode: import("@angular/core").InputSignal<"fill" | "content">;
57
+ readonly maxHeight: import("@angular/core").InputSignal<string>;
58
+ readonly stickyHeader: import("@angular/core").InputSignal<boolean | {
59
+ top?: string;
60
+ }>;
61
+ readonly rowHeight: import("@angular/core").InputSignal<number>;
62
+ readonly getRowHeight: import("@angular/core").InputSignal<(params: import("@stramien/core").RowHeightParams<TData>) => number | null | undefined>;
63
+ readonly getRowHref: import("@angular/core").InputSignal<(params: import("@stramien/core").RowHrefParams<TData>) => string | null | undefined>;
64
+ readonly asyncTransactionWaitMillis: import("@angular/core").InputSignal<number>;
65
+ readonly headerHeight: import("@angular/core").InputSignal<number>;
66
+ readonly theme: import("@angular/core").InputSignal<GridThemeMode>;
67
+ readonly density: import("@angular/core").InputSignal<GridDensity>;
68
+ readonly enableCellChangeFlash: import("@angular/core").InputSignal<boolean>;
69
+ readonly ariaLabel: import("@angular/core").InputSignal<string>;
70
+ readonly noRowsMessage: import("@angular/core").InputSignal<string>;
71
+ readonly noMatchingRowsMessage: import("@angular/core").InputSignal<string>;
72
+ readonly localeText: import("@angular/core").InputSignal<Partial<Record<"gridLabel" | "loading" | "retry" | "noRows" | "noMatchingRows" | "loadError" | "summaryLabel" | "searchPlaceholder" | "searchLabel" | "clearSearch" | "clearFilters" | "columns" | "exportCsv" | "expandAll" | "collapseAll" | "rowCount" | "rowCountFiltered" | "selectAllRows" | "filterColumn" | "columnActions" | "floatingFilterPlaceholder" | "floatingNumberFilterHint" | "clearColumnFilter" | "floatingSetAll" | "selectedCount" | "selectRow" | "expandRowDetails" | "collapseRowDetails" | "rowDetails" | "treeToggle" | "editCell" | "editNotSaved" | "pageSize" | "rowsPerPage" | "firstPage" | "previousPage" | "nextPage" | "lastPage" | "pageRange" | "pageOf" | "findColumn" | "showAllColumns" | "resetLayout" | "pinTooNarrow" | "pinLeft" | "pinRight" | "noPin" | "autoSizeColumn" | "fitAllColumns" | "hideColumn" | "groupBy" | "ungroup" | "groupHiddenHint" | "showHiddenColumns" | "showColumn" | "filterTitle" | "filterContains" | "filterNotContains" | "filterEquals" | "filterTextNotEqual" | "filterNotEqual" | "filterStartsWith" | "filterEndsWith" | "filterBlank" | "filterNotBlank" | "filterLessThan" | "filterLessThanOrEqual" | "filterGreaterThan" | "filterGreaterThanOrEqual" | "filterInRange" | "filterBefore" | "filterAfter" | "filterValuePlaceholder" | "filterFromPlaceholder" | "filterToPlaceholder" | "searchValues" | "selectAll" | "blankValue" | "clearFilter" | "applyFilter" | "summaryBefore" | "summaryAfter" | "summaryNotContains" | "summaryFiltered" | "copied" | "copyFailed" | "searchMatched" | "searchCleared" | "filterUpdated" | "filtersCleared" | "sortedBy" | "sortAscending" | "sortDescending" | "sortCleared" | "nodeExpanded" | "nodeCollapsed" | "pastedCells" | "pastedCellsSkipped" | "cellsSelected" | "expandedAll" | "collapsedAll", import("@stramien/core").LocaleTextValue>>>;
73
+ readonly cellSelection: import("@angular/core").InputSignal<boolean | import("@stramien/core").CellSelectionConfig>;
74
+ readonly loading: import("@angular/core").InputSignal<boolean>;
75
+ readonly gridReady: import("@angular/core").OutputEmitterRef<GridReadyEvent<TData>>;
76
+ readonly rowClicked: import("@angular/core").OutputEmitterRef<RowClickedEvent<TData>>;
77
+ readonly cellClicked: import("@angular/core").OutputEmitterRef<CellClickedEvent<TData>>;
78
+ readonly cellValueChanged: import("@angular/core").OutputEmitterRef<CellValueChangedEvent<TData, any>>;
79
+ readonly selectionChanged: import("@angular/core").OutputEmitterRef<SelectionChangedEvent<TData>>;
80
+ readonly sortChanged: import("@angular/core").OutputEmitterRef<SortChangedEvent<TData>>;
81
+ readonly filterChanged: import("@angular/core").OutputEmitterRef<FilterChangedEvent<TData>>;
82
+ readonly columnResized: import("@angular/core").OutputEmitterRef<ColumnResizedEvent<TData>>;
83
+ readonly columnMoved: import("@angular/core").OutputEmitterRef<ColumnMovedEvent<TData>>;
84
+ readonly columnPinned: import("@angular/core").OutputEmitterRef<ColumnPinnedEvent<TData>>;
85
+ readonly columnVisibilityChanged: import("@angular/core").OutputEmitterRef<ColumnVisibilityChangedEvent<TData>>;
86
+ readonly paginationChanged: import("@angular/core").OutputEmitterRef<PaginationChangedEvent<TData>>;
87
+ readonly stateChanged: import("@angular/core").OutputEmitterRef<StateChangedEvent<TData>>;
88
+ readonly rowDetailToggled: import("@angular/core").OutputEmitterRef<RowDetailToggledEvent<TData>>;
89
+ readonly treeNodeToggled: import("@angular/core").OutputEmitterRef<TreeNodeToggledEvent<TData>>;
90
+ readonly treeExpansionChanged: import("@angular/core").OutputEmitterRef<TreeExpansionChangedEvent<TData>>;
91
+ readonly cellSelectionChanged: import("@angular/core").OutputEmitterRef<CellSelectionChangedEvent<TData>>;
92
+ private api;
93
+ private readonly mountAdapter;
94
+ /** Input-derived options as last sent to the grid; only differences are sent later. */
95
+ private sentOptions;
96
+ private templateSignature;
97
+ /** Output bridges; created once so they never count as changed options. */
98
+ private readonly eventOptions;
99
+ constructor();
100
+ private diffOptions;
101
+ getApi(): GridApi<TData> | null;
102
+ /** Updates the adapter's templates. Returns true when they differ from the last call. */
103
+ private syncTemplateMap;
104
+ private buildOptions;
105
+ static ɵfac: i0.ɵɵFactoryDeclaration<StramienGridComponent<any>, never>;
106
+ static ɵcmp: i0.ɵɵComponentDeclaration<StramienGridComponent<any>, "stramien-grid", never, { "rowData": { "alias": "rowData"; "required": false; "isSignal": true; }; "columnDefs": { "alias": "columnDefs"; "required": false; "isSignal": true; }; "defaultColDef": { "alias": "defaultColDef"; "required": false; "isSignal": true; }; "columnTypes": { "alias": "columnTypes"; "required": false; "isSignal": true; }; "getRowId": { "alias": "getRowId"; "required": false; "isSignal": true; }; "rowModelType": { "alias": "rowModelType"; "required": false; "isSignal": true; }; "serverSideDatasource": { "alias": "serverSideDatasource"; "required": false; "isSignal": true; }; "masterDetail": { "alias": "masterDetail"; "required": false; "isSignal": true; }; "isRowMaster": { "alias": "isRowMaster"; "required": false; "isSignal": true; }; "detailRowHeight": { "alias": "detailRowHeight"; "required": false; "isSignal": true; }; "detailCellRenderer": { "alias": "detailCellRenderer"; "required": false; "isSignal": true; }; "expandOnRowClick": { "alias": "expandOnRowClick"; "required": false; "isSignal": true; }; "treeData": { "alias": "treeData"; "required": false; "isSignal": true; }; "getDataPath": { "alias": "getDataPath"; "required": false; "isSignal": true; }; "treeColumnId": { "alias": "treeColumnId"; "required": false; "isSignal": true; }; "groupDefaultExpanded": { "alias": "groupDefaultExpanded"; "required": false; "isSignal": true; }; "treeShowChildCount": { "alias": "treeShowChildCount"; "required": false; "isSignal": true; }; "treeIndentPx": { "alias": "treeIndentPx"; "required": false; "isSignal": true; }; "treeToggleLabel": { "alias": "treeToggleLabel"; "required": false; "isSignal": true; }; "treeExpandAllControl": { "alias": "treeExpandAllControl"; "required": false; "isSignal": true; }; "groupHideGroupedColumns": { "alias": "groupHideGroupedColumns"; "required": false; "isSignal": true; }; "pinnedTopRowData": { "alias": "pinnedTopRowData"; "required": false; "isSignal": true; }; "pinnedBottomRowData": { "alias": "pinnedBottomRowData"; "required": false; "isSignal": true; }; "pinnedBottomSummary": { "alias": "pinnedBottomSummary"; "required": false; "isSignal": true; }; "globalSearch": { "alias": "globalSearch"; "required": false; "isSignal": true; }; "quickFilterText": { "alias": "quickFilterText"; "required": false; "isSignal": true; }; "columnChooser": { "alias": "columnChooser"; "required": false; "isSignal": true; }; "csvExport": { "alias": "csvExport"; "required": false; "isSignal": true; }; "rowSelection": { "alias": "rowSelection"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "paginationPageSize": { "alias": "paginationPageSize"; "required": false; "isSignal": true; }; "paginationPageSizeSelector": { "alias": "paginationPageSizeSelector"; "required": false; "isSignal": true; }; "virtualization": { "alias": "virtualization"; "required": false; "isSignal": true; }; "responsivePinning": { "alias": "responsivePinning"; "required": false; "isSignal": true; }; "cellEditors": { "alias": "cellEditors"; "required": false; "isSignal": true; }; "singleClickEdit": { "alias": "singleClickEdit"; "required": false; "isSignal": true; }; "undoRedoCellEditing": { "alias": "undoRedoCellEditing"; "required": false; "isSignal": true; }; "undoRedoCellEditingLimit": { "alias": "undoRedoCellEditingLimit"; "required": false; "isSignal": true; }; "initialState": { "alias": "initialState"; "required": false; "isSignal": true; }; "initialSortModel": { "alias": "initialSortModel"; "required": false; "isSignal": true; }; "initialFilterModel": { "alias": "initialFilterModel"; "required": false; "isSignal": true; }; "heightMode": { "alias": "heightMode"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "rowHeight": { "alias": "rowHeight"; "required": false; "isSignal": true; }; "getRowHeight": { "alias": "getRowHeight"; "required": false; "isSignal": true; }; "getRowHref": { "alias": "getRowHref"; "required": false; "isSignal": true; }; "asyncTransactionWaitMillis": { "alias": "asyncTransactionWaitMillis"; "required": false; "isSignal": true; }; "headerHeight": { "alias": "headerHeight"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "enableCellChangeFlash": { "alias": "enableCellChangeFlash"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "noRowsMessage": { "alias": "noRowsMessage"; "required": false; "isSignal": true; }; "noMatchingRowsMessage": { "alias": "noMatchingRowsMessage"; "required": false; "isSignal": true; }; "localeText": { "alias": "localeText"; "required": false; "isSignal": true; }; "cellSelection": { "alias": "cellSelection"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, { "gridReady": "gridReady"; "rowClicked": "rowClicked"; "cellClicked": "cellClicked"; "cellValueChanged": "cellValueChanged"; "selectionChanged": "selectionChanged"; "sortChanged": "sortChanged"; "filterChanged": "filterChanged"; "columnResized": "columnResized"; "columnMoved": "columnMoved"; "columnPinned": "columnPinned"; "columnVisibilityChanged": "columnVisibilityChanged"; "paginationChanged": "paginationChanged"; "stateChanged": "stateChanged"; "rowDetailToggled": "rowDetailToggled"; "treeNodeToggled": "treeNodeToggled"; "treeExpansionChanged": "treeExpansionChanged"; "cellSelectionChanged": "cellSelectionChanged"; }, ["cellTemplates", "editorTemplates", "detailTemplate"], never, true, never>;
107
+ }