@ngstarter-ui/components 22.2.4 → 22.2.5

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.
Files changed (82) hide show
  1. package/ai/component-registry.json +75 -8
  2. package/content-editor/BLOCK_FORMAT.md +38 -0
  3. package/data-view/API.md +262 -0
  4. package/fesm2022/ngstarter-ui-components-button.mjs +2 -2
  5. package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
  6. package/fesm2022/{ngstarter-ui-components-content-editor-attachment-block-rzZKJ2JH.mjs → ngstarter-ui-components-content-editor-attachment-block-DZqyCrEK.mjs} +2 -2
  7. package/fesm2022/{ngstarter-ui-components-content-editor-attachment-block-rzZKJ2JH.mjs.map → ngstarter-ui-components-content-editor-attachment-block-DZqyCrEK.mjs.map} +1 -1
  8. package/fesm2022/{ngstarter-ui-components-content-editor-callout-block-DTdApN0r.mjs → ngstarter-ui-components-content-editor-callout-block-CyVPVMXi.mjs} +3 -3
  9. package/fesm2022/{ngstarter-ui-components-content-editor-callout-block-DTdApN0r.mjs.map → ngstarter-ui-components-content-editor-callout-block-CyVPVMXi.mjs.map} +1 -1
  10. package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-DpONkTMU.mjs → ngstarter-ui-components-content-editor-code-block.component-Qzsc08aS.mjs} +4 -4
  11. package/fesm2022/{ngstarter-ui-components-content-editor-code-block.component-DpONkTMU.mjs.map → ngstarter-ui-components-content-editor-code-block.component-Qzsc08aS.mjs.map} +1 -1
  12. package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-CmhzpaRk.mjs → ngstarter-ui-components-content-editor-embed-block-9EHRGpW_.mjs} +2 -2
  13. package/fesm2022/{ngstarter-ui-components-content-editor-embed-block-CmhzpaRk.mjs.map → ngstarter-ui-components-content-editor-embed-block-9EHRGpW_.mjs.map} +1 -1
  14. package/fesm2022/{ngstarter-ui-components-content-editor-gallery-block-gtH7yWd5.mjs → ngstarter-ui-components-content-editor-gallery-block-CBuzrmSH.mjs} +4 -4
  15. package/fesm2022/{ngstarter-ui-components-content-editor-gallery-block-gtH7yWd5.mjs.map → ngstarter-ui-components-content-editor-gallery-block-CBuzrmSH.mjs.map} +1 -1
  16. package/fesm2022/{ngstarter-ui-components-content-editor-grid-block-Pb-xV7Pw.mjs → ngstarter-ui-components-content-editor-grid-block-Sy67i4mg.mjs} +5 -5
  17. package/fesm2022/{ngstarter-ui-components-content-editor-grid-block-Pb-xV7Pw.mjs.map → ngstarter-ui-components-content-editor-grid-block-Sy67i4mg.mjs.map} +1 -1
  18. package/fesm2022/{ngstarter-ui-components-content-editor-heading-block.component-BKe9Zy_x.mjs → ngstarter-ui-components-content-editor-heading-block.component-CnDuIpxQ.mjs} +8 -5
  19. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnDuIpxQ.mjs.map +1 -0
  20. package/fesm2022/{ngstarter-ui-components-content-editor-image-block.component-DSpBVTu-.mjs → ngstarter-ui-components-content-editor-image-block.component-CqbgVnDh.mjs} +4 -4
  21. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-CqbgVnDh.mjs.map +1 -0
  22. package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-BPKPE1uY.mjs → ngstarter-ui-components-content-editor-list-block.component-CHJr_pFf.mjs} +4 -4
  23. package/fesm2022/{ngstarter-ui-components-content-editor-list-block.component-BPKPE1uY.mjs.map → ngstarter-ui-components-content-editor-list-block.component-CHJr_pFf.mjs.map} +1 -1
  24. package/fesm2022/{ngstarter-ui-components-content-editor-nested-blocks-Dh-p3WMp.mjs → ngstarter-ui-components-content-editor-nested-blocks-fPnU42nP.mjs} +4 -4
  25. package/fesm2022/{ngstarter-ui-components-content-editor-nested-blocks-Dh-p3WMp.mjs.map → ngstarter-ui-components-content-editor-nested-blocks-fPnU42nP.mjs.map} +1 -1
  26. package/fesm2022/{ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CR-NrarE.mjs → ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-dGibIV4n.mjs} +93 -41
  27. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-dGibIV4n.mjs.map +1 -0
  28. package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-D5wS3m6O.mjs → ngstarter-ui-components-content-editor-paragraph-block.component-CqU1XJTo.mjs} +4 -4
  29. package/fesm2022/{ngstarter-ui-components-content-editor-paragraph-block.component-D5wS3m6O.mjs.map → ngstarter-ui-components-content-editor-paragraph-block.component-CqU1XJTo.mjs.map} +1 -1
  30. package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-C3GFAGKF.mjs → ngstarter-ui-components-content-editor-quote-block.component-fAUfABVY.mjs} +4 -4
  31. package/fesm2022/{ngstarter-ui-components-content-editor-quote-block.component-C3GFAGKF.mjs.map → ngstarter-ui-components-content-editor-quote-block.component-fAUfABVY.mjs.map} +1 -1
  32. package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-DQgs_kyN.mjs → ngstarter-ui-components-content-editor-table-block.component-CqbnMNug.mjs} +4 -4
  33. package/fesm2022/{ngstarter-ui-components-content-editor-table-block.component-DQgs_kyN.mjs.map → ngstarter-ui-components-content-editor-table-block.component-CqbnMNug.mjs.map} +1 -1
  34. package/fesm2022/{ngstarter-ui-components-content-editor-toggle-block-Cb67ChE8.mjs → ngstarter-ui-components-content-editor-toggle-block-CHtnu1GQ.mjs} +3 -3
  35. package/fesm2022/{ngstarter-ui-components-content-editor-toggle-block-Cb67ChE8.mjs.map → ngstarter-ui-components-content-editor-toggle-block-CHtnu1GQ.mjs.map} +1 -1
  36. package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-CRa0g9Ez.mjs → ngstarter-ui-components-content-editor-video-block.component-DKcWb54Z.mjs} +2 -2
  37. package/fesm2022/{ngstarter-ui-components-content-editor-video-block.component-CRa0g9Ez.mjs.map → ngstarter-ui-components-content-editor-video-block.component-DKcWb54Z.mjs.map} +1 -1
  38. package/fesm2022/ngstarter-ui-components-content-editor.mjs +1 -1
  39. package/fesm2022/ngstarter-ui-components-core.mjs +46 -1
  40. package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
  41. package/fesm2022/ngstarter-ui-components-data-view.mjs +1011 -90
  42. package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
  43. package/fesm2022/ngstarter-ui-components-datepicker.mjs +45 -19
  44. package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
  45. package/fesm2022/ngstarter-ui-components-filter-builder.mjs +1 -1
  46. package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
  47. package/fesm2022/ngstarter-ui-components-form-builder.mjs +1 -1
  48. package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
  49. package/fesm2022/ngstarter-ui-components-headless-editor.mjs +1 -1
  50. package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
  51. package/fesm2022/ngstarter-ui-components-image-designer.mjs +1 -1
  52. package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
  53. package/fesm2022/ngstarter-ui-components-kanban-board.mjs +1 -1
  54. package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
  55. package/fesm2022/ngstarter-ui-components-menu.mjs +17 -4
  56. package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
  57. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +1 -1
  58. package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
  59. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +1 -1
  60. package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
  61. package/fesm2022/ngstarter-ui-components-phone-input.mjs +1 -1
  62. package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
  63. package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1 -1
  64. package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
  65. package/fesm2022/ngstarter-ui-components-sort.mjs +9 -2
  66. package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
  67. package/fesm2022/ngstarter-ui-components-table.mjs +10 -0
  68. package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
  69. package/package.json +1 -1
  70. package/styles/_common.scss +2 -1
  71. package/styles/_tokens.scss +32 -1
  72. package/styles/themes/default.scss +1 -1
  73. package/types/ngstarter-ui-components-content-editor.d.ts +6 -1
  74. package/types/ngstarter-ui-components-core.d.ts +4 -1
  75. package/types/ngstarter-ui-components-data-view.d.ts +204 -11
  76. package/types/ngstarter-ui-components-datepicker.d.ts +3 -1
  77. package/types/ngstarter-ui-components-menu.d.ts +5 -1
  78. package/types/ngstarter-ui-components-sort.d.ts +1 -0
  79. package/types/ngstarter-ui-components-table.d.ts +2 -0
  80. package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-BKe9Zy_x.mjs.map +0 -1
  81. package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-DSpBVTu-.mjs.map +0 -1
  82. package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CR-NrarE.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
+ import * as _ngstarter_ui_components_data_view from '@ngstarter-ui/components/data-view';
1
2
  import * as _angular_core from '@angular/core';
2
3
  import { InjectionToken, TemplateRef, OnInit, AfterViewInit, Injector, EnvironmentProviders } from '@angular/core';
3
4
  import { TableDataSource, Table } from '@ngstarter-ui/components/table';
4
5
  import { CheckboxChange } from '@ngstarter-ui/components/checkbox';
5
- import { SelectionModel } from '@angular/cdk/collections';
6
6
  import { Paginator, PageEvent } from '@ngstarter-ui/components/paginator';
7
7
  import { Sort, SortDirective, SortDirection } from '@ngstarter-ui/components/sort';
8
8
 
@@ -11,13 +11,22 @@ interface DataViewInterface<T = any> {
11
11
  }
12
12
  interface DataViewAPI<T = any> {
13
13
  search(value: string): void;
14
- selectAll(): void;
14
+ selectAll(scope?: DataViewSelectionScope): void;
15
15
  unselectAll(): void;
16
16
  selectOne(row: T): void;
17
17
  isSelected(row: T): boolean;
18
18
  hasSelected(): boolean;
19
19
  refresh(): void;
20
20
  getSnapshot(): DataViewState[];
21
+ getSelection(): DataViewSelectionState<T>;
22
+ setColumnFilter(field: string, filter: DataViewColumnFilter | null): void;
23
+ clearFilters(): void;
24
+ getState(): DataViewViewState;
25
+ setState(state: DataViewViewState): void;
26
+ saveView(name: string, id?: string): DataViewSavedView;
27
+ applyView(id: string | null): void;
28
+ renameView(id: string, name: string): void;
29
+ deleteView(id: string): void;
21
30
  }
22
31
  type DataViewColumnWidth = string | number;
23
32
  interface DataViewColumnDef {
@@ -34,13 +43,26 @@ interface DataViewColumnDef {
34
43
  sortable?: boolean;
35
44
  resizable?: boolean;
36
45
  withColumnSettings?: boolean;
46
+ filter?: DataViewColumnFilterConfig;
37
47
  minWidth?: string | number;
38
48
  maxWidth?: string | number;
39
49
  params?: {
40
50
  [prop: string]: any;
41
51
  };
42
52
  }
43
- type DataViewRowSelectionEventSource = 'checkbox' | 'row';
53
+ type DataViewRowId = string | number;
54
+ type DataViewSelectionScope = 'page' | 'filtered' | 'all';
55
+ interface DataViewSelectionState<T = unknown> {
56
+ scope: DataViewSelectionScope;
57
+ allMatching: boolean;
58
+ rowIds: DataViewRowId[];
59
+ excludedRowIds: DataViewRowId[];
60
+ /** Known selected records; a server-wide selection is represented by query + exclusions. */
61
+ rows: T[];
62
+ search: string;
63
+ columnFilters: DataViewFilterModel;
64
+ }
65
+ type DataViewRowSelectionEventSource = 'checkbox' | 'row' | 'keyboard';
44
66
  interface DataViewRowSelectionEvent<T> {
45
67
  source: DataViewRowSelectionEventSource;
46
68
  checkboxChange?: CheckboxChange;
@@ -70,11 +92,16 @@ interface DataViewGetRowsParams {
70
92
  sort: 'asc' | 'desc' | '';
71
93
  }[];
72
94
  filterModel: string;
95
+ columnFilters: DataViewFilterModel;
96
+ /** Aborted when a newer query replaces this one or the view is destroyed. */
97
+ signal: AbortSignal;
73
98
  successCallback(rowsThisBlock: any[], lastRow?: number): void;
74
- failCallback(): void;
99
+ failCallback(error?: unknown): void;
75
100
  }
76
101
  interface DataViewDatasource {
77
- getItems(params: DataViewGetRowsParams): void;
102
+ getItems(params: DataViewGetRowsParams): void | (() => void) | {
103
+ unsubscribe(): void;
104
+ };
78
105
  }
79
106
  type DataViewPinAlign = 'start' | 'end' | undefined;
80
107
  interface DataViewState {
@@ -85,6 +112,73 @@ interface DataViewState {
85
112
  pinAlign?: DataViewPinAlign;
86
113
  }
87
114
  declare const DATA_VIEW: InjectionToken<DataViewInterface<any>>;
115
+ type DataViewColumnFilter = {
116
+ type: 'text';
117
+ operator: 'contains' | 'equals' | 'startsWith' | 'endsWith' | 'notContains';
118
+ value: string;
119
+ } | {
120
+ type: 'number';
121
+ operator: 'equals' | 'notEquals' | 'greaterThan' | 'lessThan' | 'between';
122
+ value?: number;
123
+ to?: number;
124
+ } | {
125
+ type: 'date';
126
+ from?: string;
127
+ to?: string;
128
+ } | {
129
+ type: 'enum';
130
+ values: (string | number)[];
131
+ } | {
132
+ type: 'boolean';
133
+ value: boolean;
134
+ };
135
+ type DataViewFilterModel = Record<string, DataViewColumnFilter>;
136
+ interface DataViewColumnFilterConfig {
137
+ type: DataViewColumnFilter['type'];
138
+ options?: readonly {
139
+ label: string;
140
+ value: string | number;
141
+ }[];
142
+ }
143
+ interface DataViewViewState {
144
+ version: 1;
145
+ columns: DataViewState[];
146
+ sort: {
147
+ active: string;
148
+ direction: 'asc' | 'desc' | '';
149
+ };
150
+ search: string;
151
+ columnFilters: DataViewFilterModel;
152
+ pageSize: number;
153
+ }
154
+ interface DataViewSavedView {
155
+ id: string;
156
+ name: string;
157
+ state: DataViewViewState;
158
+ }
159
+ interface DataViewViewStorage {
160
+ getItem(key: string): string | null;
161
+ setItem(key: string, value: string): void;
162
+ }
163
+
164
+ /** Selection retains IDs across immutable reloads and can represent unloaded server records. */
165
+ declare class DataViewSelection<T> {
166
+ private key;
167
+ private records;
168
+ readonly excluded: Set<unknown>;
169
+ allMatching: boolean;
170
+ constructor(key: (row: T) => unknown);
171
+ get selected(): T[];
172
+ get keys(): unknown[];
173
+ hasValue(): boolean;
174
+ isSelected(row: T): boolean;
175
+ select(...rows: T[]): void;
176
+ selectRows(rows: readonly T[]): void;
177
+ deselect(...rows: T[]): void;
178
+ clear(): void;
179
+ selectMatching(rows: T[]): void;
180
+ reconcile(rows: T[], dropMissing: boolean): boolean;
181
+ }
88
182
 
89
183
  declare class DataViewEmptyFilterResultsDirective {
90
184
  readonly templateRef: TemplateRef<any>;
@@ -109,6 +203,17 @@ declare class DataViewActionBar {
109
203
  }
110
204
 
111
205
  declare class DataView<T> implements OnInit, AfterViewInit, DataViewInterface<T> {
206
+ protected readonly gridId: string;
207
+ ariaLabel: _angular_core.InputSignal<string>;
208
+ readonly rowActivated: _angular_core.OutputEmitterRef<T>;
209
+ protected activeCell: _angular_core.WritableSignal<{
210
+ row: number;
211
+ column: number;
212
+ }>;
213
+ private _selectionAnchor;
214
+ protected logicalColumns: _angular_core.Signal<string[]>;
215
+ protected activeCellId: _angular_core.Signal<string | null>;
216
+ protected ariaRowCount: _angular_core.Signal<number>;
112
217
  private _cdr;
113
218
  private _destroyRef;
114
219
  private _platformId;
@@ -120,12 +225,39 @@ declare class DataView<T> implements OnInit, AfterViewInit, DataViewInterface<T>
120
225
  private _isDestroyed;
121
226
  private _requestId;
122
227
  private _lastRequestKey;
228
+ private _lastDatasource;
229
+ private _lastRowModelType;
230
+ private _pendingRequestCleanup;
123
231
  private _refreshTrigger;
124
232
  private _serverSideRowCount;
233
+ private _serverCountKnown;
125
234
  private _manualOrder;
126
235
  private _manualVisibility;
127
236
  private _hasDataOnServer;
128
237
  private _internalLoading;
238
+ readonly error: _angular_core.WritableSignal<string | null>;
239
+ readonly refreshing: _angular_core.Signal<boolean>;
240
+ readonly loadStatus: _angular_core.Signal<"error" | "refreshing" | "loading" | "ready" | "idle">;
241
+ readonly loadError: _angular_core.OutputEmitterRef<unknown>;
242
+ protected blockingLoading: _angular_core.Signal<boolean>;
243
+ sortState: _angular_core.ModelSignal<Sort>;
244
+ columnFilters: _angular_core.ModelSignal<DataViewFilterModel>;
245
+ withSavedViews: _angular_core.InputSignalWithTransform<boolean, unknown>;
246
+ savedViews: _angular_core.ModelSignal<DataViewSavedView[]>;
247
+ viewStorageKey: _angular_core.InputSignal<string | null>;
248
+ private _activeViewId;
249
+ readonly activeViewId: _angular_core.Signal<string | null>;
250
+ readonly viewStorageError: _angular_core.WritableSignal<string | null>;
251
+ readonly stateChanged: _angular_core.OutputEmitterRef<DataViewViewState>;
252
+ readonly viewApplied: _angular_core.OutputEmitterRef<DataViewSavedView | null>;
253
+ private _initialFullState;
254
+ private _storageReady;
255
+ protected dirtyView: _angular_core.Signal<boolean>;
256
+ protected normalizedFilters: _angular_core.Signal<DataViewFilterModel>;
257
+ protected activeFilters: _angular_core.Signal<{
258
+ field: string;
259
+ label: string;
260
+ }[]>;
129
261
  protected _isFiltering: _angular_core.WritableSignal<boolean>;
130
262
  protected _isSorting: _angular_core.WritableSignal<boolean>;
131
263
  private _emptyDataRef;
@@ -166,6 +298,8 @@ declare class DataView<T> implements OnInit, AfterViewInit, DataViewInterface<T>
166
298
  withColumnSettings: _angular_core.InputSignalWithTransform<boolean, unknown>;
167
299
  embedded: _angular_core.InputSignalWithTransform<boolean, unknown>;
168
300
  rowSelection: _angular_core.InputSignal<"single" | "multiple">;
301
+ getRowId: _angular_core.InputSignal<((row: T) => DataViewRowId) | null>;
302
+ selectionScope: _angular_core.InputSignal<DataViewSelectionScope>;
169
303
  allowSingleRowSelectionByClick: _angular_core.InputSignalWithTransform<boolean, unknown>;
170
304
  selectionWidth: _angular_core.InputSignalWithTransform<number, any>;
171
305
  minColumnWidth: _angular_core.InputSignalWithTransform<number, any>;
@@ -202,6 +336,7 @@ declare class DataView<T> implements OnInit, AfterViewInit, DataViewInterface<T>
202
336
  sortable?: boolean;
203
337
  resizable?: boolean;
204
338
  withColumnSettings?: boolean;
339
+ filter?: _ngstarter_ui_components_data_view.DataViewColumnFilterConfig;
205
340
  minWidth?: string | number;
206
341
  maxWidth?: string | number;
207
342
  params?: {
@@ -223,6 +358,7 @@ declare class DataView<T> implements OnInit, AfterViewInit, DataViewInterface<T>
223
358
  sortable?: boolean;
224
359
  resizable?: boolean;
225
360
  withColumnSettings?: boolean;
361
+ filter?: _ngstarter_ui_components_data_view.DataViewColumnFilterConfig;
226
362
  minWidth?: string | number;
227
363
  maxWidth?: string | number;
228
364
  params?: {
@@ -243,6 +379,7 @@ declare class DataView<T> implements OnInit, AfterViewInit, DataViewInterface<T>
243
379
  sortable?: boolean;
244
380
  resizable?: boolean;
245
381
  withColumnSettings?: boolean;
382
+ filter?: _ngstarter_ui_components_data_view.DataViewColumnFilterConfig;
246
383
  minWidth?: string | number;
247
384
  maxWidth?: string | number;
248
385
  params?: {
@@ -263,6 +400,7 @@ declare class DataView<T> implements OnInit, AfterViewInit, DataViewInterface<T>
263
400
  sortable?: boolean;
264
401
  resizable?: boolean;
265
402
  withColumnSettings?: boolean;
403
+ filter?: _ngstarter_ui_components_data_view.DataViewColumnFilterConfig;
266
404
  minWidth?: string | number;
267
405
  maxWidth?: string | number;
268
406
  params?: {
@@ -290,6 +428,7 @@ declare class DataView<T> implements OnInit, AfterViewInit, DataViewInterface<T>
290
428
  }>;
291
429
  protected visibleRows: _angular_core.Signal<{
292
430
  item: T;
431
+ key: DataViewRowId | T;
293
432
  index: number;
294
433
  top: number;
295
434
  isLast: boolean;
@@ -305,7 +444,7 @@ declare class DataView<T> implements OnInit, AfterViewInit, DataViewInterface<T>
305
444
  cellRenderers: _angular_core.InputSignal<DataViewCellRendererDef[]>;
306
445
  loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
307
446
  hoverRows: _angular_core.InputSignalWithTransform<boolean, unknown>;
308
- search: _angular_core.InputSignal<string>;
447
+ search: _angular_core.ModelSignal<string>;
309
448
  private _debouncedSearch;
310
449
  private _debounceSearchEffect;
311
450
  emptyIcon: _angular_core.InputSignal<string>;
@@ -316,11 +455,16 @@ declare class DataView<T> implements OnInit, AfterViewInit, DataViewInterface<T>
316
455
  protected _isLoading: _angular_core.Signal<boolean>;
317
456
  protected shouldRenderGrid: _angular_core.Signal<boolean>;
318
457
  protected injector: Injector;
319
- protected selection: SelectionModel<T>;
458
+ protected selection: DataViewSelection<T>;
459
+ private _selectionTick;
460
+ private _selectedScope;
461
+ private _selectedSearch;
462
+ private _selectedFilters;
320
463
  protected cellRenderersMap: Map<string, any>;
321
464
  protected loadingCellRenderers: _angular_core.WritableSignal<boolean>;
322
465
  readonly rowSelectionChanged: _angular_core.OutputEmitterRef<DataViewRowSelectionEvent<T>>;
323
466
  readonly selectionChanged: _angular_core.OutputEmitterRef<T[]>;
467
+ readonly selectionStateChanged: _angular_core.OutputEmitterRef<DataViewSelectionState<T>>;
324
468
  readonly allRowsSelectionChanged: _angular_core.OutputEmitterRef<boolean>;
325
469
  readonly sortChange: _angular_core.OutputEmitterRef<Sort>;
326
470
  readonly loadEnd: _angular_core.OutputEmitterRef<void>;
@@ -349,11 +493,15 @@ declare class DataView<T> implements OnInit, AfterViewInit, DataViewInterface<T>
349
493
  hasCellRenderer(cellRenderer: string): boolean;
350
494
  getCellRenderer(cellRenderer: string): any;
351
495
  isAllSelected(): boolean;
496
+ protected isPartiallySelected(): boolean;
352
497
  toggleAllRows(): void;
353
498
  rowSelectionToggle(event: CheckboxChange, row: T): void;
354
499
  protected selectRowByClick(event: MouseEvent, row: T): void;
355
500
  private _isInteractiveRowClick;
356
501
  onPageChange(event: PageEvent): void;
502
+ private resetScroll;
503
+ private cancelPendingRequest;
504
+ private beginRowModel;
357
505
  protected sortColumn(col: DataViewColumnDef, direction: SortDirection): void;
358
506
  getSnapshot(): DataViewState[];
359
507
  applyState(state: DataViewState[]): void;
@@ -364,13 +512,45 @@ declare class DataView<T> implements OnInit, AfterViewInit, DataViewInterface<T>
364
512
  protected resetColumns(): void;
365
513
  protected openColumnSettingsDialog(): void;
366
514
  protected onSortChange(event: Sort): void;
367
- selectAll(): void;
515
+ private selectionRows;
516
+ selectAll(scope?: DataViewSelectionScope): void;
368
517
  unselectAll(): void;
369
518
  selectOne(row: T): void;
370
519
  isSelected(row: T): boolean;
371
520
  hasSelected(): boolean;
521
+ getSelection(): DataViewSelectionState<T>;
522
+ private emitSelection;
523
+ getState(): DataViewViewState;
524
+ setState(value: DataViewViewState): void;
525
+ private validateViewName;
526
+ saveView(name: string, id?: string): DataViewSavedView;
527
+ applyView(id: string | null): void;
528
+ renameView(id: string, name: string): void;
529
+ deleteView(id: string): void;
530
+ protected updateCurrentView(): void;
531
+ protected openSavedViewDialog(rename?: boolean): void;
532
+ private viewStorage;
533
+ protected headerId(field: string): string;
534
+ protected cellId(row: number, field: string): string;
535
+ protected columnIndex(field: string): number;
536
+ protected rowOwnedCells(row: number): string;
537
+ protected headerOwnedCells(): string;
538
+ protected globalRowIndex(row: number): number;
539
+ protected isActiveCell(row: number, field: string): boolean;
540
+ protected activateCell(event: MouseEvent, row: number, field: string): void;
541
+ protected onGridKeydown(event: KeyboardEvent): void;
542
+ private pageRows;
543
+ private selectKeyboardRange;
544
+ private revealActiveCell;
545
+ protected columnPixelWidth(col: DataViewColumnDef): number;
546
+ protected columnMinWidth(col: DataViewColumnDef): number;
547
+ protected columnMaxWidth(col: DataViewColumnDef): number;
548
+ protected resizeColumnWithKeyboard(event: KeyboardEvent, col: DataViewColumnDef): void;
549
+ setColumnFilter(field: string, filter: DataViewColumnFilter | null): void;
550
+ clearFilters(): void;
551
+ protected openColumnFilter(column: DataViewColumnDef): void;
372
552
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataView<any>, never>;
373
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataView<any>, "ngs-data-view", ["ngsDataView"], { "paginator": { "alias": "paginator"; "required": false; "isSignal": true; }; "columnDefs": { "alias": "columnDefs"; "required": false; "isSignal": true; }; "defaultColDef": { "alias": "defaultColDef"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "datasource": { "alias": "datasource"; "required": false; "isSignal": true; }; "rowHeight": { "alias": "rowHeight"; "required": false; "isSignal": true; }; "headerHeight": { "alias": "headerHeight"; "required": false; "isSignal": true; }; "bufferRows": { "alias": "bufferRows"; "required": false; "isSignal": true; }; "withSelection": { "alias": "withSelection"; "required": false; "isSignal": true; }; "highlightHeader": { "alias": "highlightHeader"; "required": false; "isSignal": true; }; "rowModelType": { "alias": "rowModelType"; "required": false; "isSignal": true; }; "autoHeight": { "alias": "autoHeight"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "withPagination": { "alias": "withPagination"; "required": false; "isSignal": true; }; "bodyScroll": { "alias": "bodyScroll"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; "isSignal": true; }; "paginatorAriaLabel": { "alias": "paginatorAriaLabel"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "pageIndex": { "alias": "pageIndex"; "required": false; "isSignal": true; }; "snapshot": { "alias": "snapshot"; "required": false; "isSignal": true; }; "withColumnSettings": { "alias": "withColumnSettings"; "required": false; "isSignal": true; }; "embedded": { "alias": "embedded"; "required": false; "isSignal": true; }; "rowSelection": { "alias": "rowSelection"; "required": false; "isSignal": true; }; "allowSingleRowSelectionByClick": { "alias": "allowSingleRowSelectionByClick"; "required": false; "isSignal": true; }; "selectionWidth": { "alias": "selectionWidth"; "required": false; "isSignal": true; }; "minColumnWidth": { "alias": "minColumnWidth"; "required": false; "isSignal": true; }; "cellRenderers": { "alias": "cellRenderers"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "hoverRows": { "alias": "hoverRows"; "required": false; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "emptyIcon": { "alias": "emptyIcon"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "emptyFilterResultsIcon": { "alias": "emptyFilterResultsIcon"; "required": false; "isSignal": true; }; "emptyFilterResultsText": { "alias": "emptyFilterResultsText"; "required": false; "isSignal": true; }; }, { "pageSize": "pageSizeChange"; "pageIndex": "pageIndexChange"; "rowSelectionChanged": "rowSelectionChanged"; "selectionChanged": "selectionChanged"; "allRowsSelectionChanged": "allRowsSelectionChanged"; "sortChange": "sortChange"; "loadEnd": "loadEnd"; "refreshEnd": "refreshEnd"; }, ["_emptyDataRef", "_emptyFilterResults", "_actionBarRef", "_actionBarComp"], never, true, never>;
553
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataView<any>, "ngs-data-view", ["ngsDataView"], { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "sortState": { "alias": "sortState"; "required": false; "isSignal": true; }; "columnFilters": { "alias": "columnFilters"; "required": false; "isSignal": true; }; "withSavedViews": { "alias": "withSavedViews"; "required": false; "isSignal": true; }; "savedViews": { "alias": "savedViews"; "required": false; "isSignal": true; }; "viewStorageKey": { "alias": "viewStorageKey"; "required": false; "isSignal": true; }; "paginator": { "alias": "paginator"; "required": false; "isSignal": true; }; "columnDefs": { "alias": "columnDefs"; "required": false; "isSignal": true; }; "defaultColDef": { "alias": "defaultColDef"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "datasource": { "alias": "datasource"; "required": false; "isSignal": true; }; "rowHeight": { "alias": "rowHeight"; "required": false; "isSignal": true; }; "headerHeight": { "alias": "headerHeight"; "required": false; "isSignal": true; }; "bufferRows": { "alias": "bufferRows"; "required": false; "isSignal": true; }; "withSelection": { "alias": "withSelection"; "required": false; "isSignal": true; }; "highlightHeader": { "alias": "highlightHeader"; "required": false; "isSignal": true; }; "rowModelType": { "alias": "rowModelType"; "required": false; "isSignal": true; }; "autoHeight": { "alias": "autoHeight"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "withPagination": { "alias": "withPagination"; "required": false; "isSignal": true; }; "bodyScroll": { "alias": "bodyScroll"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "showFirstLastButtons": { "alias": "showFirstLastButtons"; "required": false; "isSignal": true; }; "paginatorAriaLabel": { "alias": "paginatorAriaLabel"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "pageIndex": { "alias": "pageIndex"; "required": false; "isSignal": true; }; "snapshot": { "alias": "snapshot"; "required": false; "isSignal": true; }; "withColumnSettings": { "alias": "withColumnSettings"; "required": false; "isSignal": true; }; "embedded": { "alias": "embedded"; "required": false; "isSignal": true; }; "rowSelection": { "alias": "rowSelection"; "required": false; "isSignal": true; }; "getRowId": { "alias": "getRowId"; "required": false; "isSignal": true; }; "selectionScope": { "alias": "selectionScope"; "required": false; "isSignal": true; }; "allowSingleRowSelectionByClick": { "alias": "allowSingleRowSelectionByClick"; "required": false; "isSignal": true; }; "selectionWidth": { "alias": "selectionWidth"; "required": false; "isSignal": true; }; "minColumnWidth": { "alias": "minColumnWidth"; "required": false; "isSignal": true; }; "cellRenderers": { "alias": "cellRenderers"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "hoverRows": { "alias": "hoverRows"; "required": false; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "emptyIcon": { "alias": "emptyIcon"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "emptyFilterResultsIcon": { "alias": "emptyFilterResultsIcon"; "required": false; "isSignal": true; }; "emptyFilterResultsText": { "alias": "emptyFilterResultsText"; "required": false; "isSignal": true; }; }, { "rowActivated": "rowActivated"; "loadError": "loadError"; "sortState": "sortStateChange"; "columnFilters": "columnFiltersChange"; "savedViews": "savedViewsChange"; "stateChanged": "stateChanged"; "viewApplied": "viewApplied"; "pageSize": "pageSizeChange"; "pageIndex": "pageIndexChange"; "search": "searchChange"; "rowSelectionChanged": "rowSelectionChanged"; "selectionChanged": "selectionChanged"; "selectionStateChanged": "selectionStateChanged"; "allRowsSelectionChanged": "allRowsSelectionChanged"; "sortChange": "sortChange"; "loadEnd": "loadEnd"; "refreshEnd": "refreshEnd"; }, ["_emptyDataRef", "_emptyFilterResults", "_actionBarRef", "_actionBarComp"], never, true, never>;
374
554
  }
375
555
 
376
556
  declare class DataViewEmptyDataDirective {
@@ -397,9 +577,22 @@ interface DataViewConfig {
397
577
  minColumnWidth?: number;
398
578
  defaultColDef?: Partial<DataViewColumnDef>;
399
579
  autoHeight?: boolean;
580
+ withSavedViews?: boolean;
581
+ viewStorage?: DataViewViewStorage;
400
582
  }
401
583
  declare const DATA_VIEW_CONFIG: InjectionToken<DataViewConfig>;
402
584
  declare function provideDataView(config: DataViewConfig): EnvironmentProviders;
403
585
 
404
- export { DATA_VIEW, DATA_VIEW_CONFIG, DataView, DataViewActionBar, DataViewActionBarDirective, DataViewEmptyDataDirective, DataViewEmptyFilterResultsDirective, cellRenderer, provideDataView };
405
- export type { DataViewAPI, DataViewActionBarAPI, DataViewCellRenderer, DataViewCellRendererDef, DataViewColumnDef, DataViewColumnWidth, DataViewConfig, DataViewDatasource, DataViewGetRowsParams, DataViewInterface, DataViewPinAlign, DataViewRowModelType, DataViewRowSelectionEvent, DataViewRowSelectionEventSource, DataViewState };
586
+ declare function dataViewDateKey(value: unknown): string | undefined;
587
+ /** Empty filters are removed; malformed values are rejected before reaching a datasource. */
588
+ declare function normalizeDataViewFilter(filter: DataViewColumnFilter): DataViewColumnFilter | null;
589
+ declare function matchesDataViewFilter(value: unknown, filter: DataViewColumnFilter): boolean;
590
+ declare function normalizeDataViewFilters(filters: DataViewFilterModel): DataViewFilterModel;
591
+ declare function dataViewFilterLabel(filter: DataViewColumnFilter): string;
592
+
593
+ /** Validates persisted state, removes stale fields and appends newly added columns. */
594
+ declare function normalizeDataViewState(value: unknown, columns: readonly DataViewColumnDef[]): DataViewViewState;
595
+ declare function normalizeDataViewSavedViews(value: unknown, columns: readonly DataViewColumnDef[]): DataViewSavedView[];
596
+
597
+ export { DATA_VIEW, DATA_VIEW_CONFIG, DataView, DataViewActionBar, DataViewActionBarDirective, DataViewEmptyDataDirective, DataViewEmptyFilterResultsDirective, cellRenderer, dataViewDateKey, dataViewFilterLabel, matchesDataViewFilter, normalizeDataViewFilter, normalizeDataViewFilters, normalizeDataViewSavedViews, normalizeDataViewState, provideDataView };
598
+ export type { DataViewAPI, DataViewActionBarAPI, DataViewCellRenderer, DataViewCellRendererDef, DataViewColumnDef, DataViewColumnFilter, DataViewColumnFilterConfig, DataViewColumnWidth, DataViewConfig, DataViewDatasource, DataViewFilterModel, DataViewGetRowsParams, DataViewInterface, DataViewPinAlign, DataViewRowId, DataViewRowModelType, DataViewRowSelectionEvent, DataViewRowSelectionEventSource, DataViewSavedView, DataViewSelectionScope, DataViewSelectionState, DataViewState, DataViewViewState, DataViewViewStorage };
@@ -145,6 +145,8 @@ declare class DateRangeInput<D> implements OnDestroy, OnInit, FormFieldControl<D
145
145
  private _formField;
146
146
  readonly rangePicker: _angular_core.InputSignal<DateRangePicker<D>>;
147
147
  readonly separator: _angular_core.InputSignal<string>;
148
+ /** Calendar range shared by typed inputs and picker selection. */
149
+ readonly range: _angular_core.ModelSignal<DateRange<D> | null>;
148
150
  readonly ngControl: NgControl | null;
149
151
  _startInput: _angular_core.Signal<StartDate<any> | undefined>;
150
152
  _endInput: _angular_core.Signal<EndDate<any> | undefined>;
@@ -175,7 +177,7 @@ declare class DateRangeInput<D> implements OnDestroy, OnInit, FormFieldControl<D
175
177
  getConnectedOverlayOrigin(): ElementRef;
176
178
  focus(): void;
177
179
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateRangeInput<any>, never>;
178
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateRangeInput<any>, "ngs-date-range-input", ["ngsDateRangeInput"], { "rangePicker": { "alias": "rangePicker"; "required": true; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; }, {}, ["_startInput", "_endInput"], ["input[ngsStartDate]", "input[ngsEndDate]"], true, never>;
180
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateRangeInput<any>, "ngs-date-range-input", ["ngsDateRangeInput"], { "rangePicker": { "alias": "rangePicker"; "required": true; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "range": { "alias": "range"; "required": false; "isSignal": true; }; }, { "range": "rangeChange"; }, ["_startInput", "_endInput"], ["input[ngsStartDate]", "input[ngsEndDate]"], true, never>;
179
181
  }
180
182
 
181
183
  declare class DatepickerToggleIcon {
@@ -37,6 +37,7 @@ declare class MenuTrigger implements OnDestroy {
37
37
  _clearCloseTimeout(): void;
38
38
  _handleClick(event: MouseEvent): void;
39
39
  toggleMenu(): void;
40
+ private themeCleanup;
40
41
  openMenu(): void;
41
42
  closeMenu(reason: MenuCloseReason, force?: boolean): void;
42
43
  private _setIsMenuOpen;
@@ -76,6 +77,8 @@ declare class MenuContent {
76
77
  }
77
78
 
78
79
  declare class Menu implements OnDestroy {
80
+ /** Optional scope whose tokens should follow this detached overlay. */
81
+ readonly themeSource: _angular_core.InputSignal<HTMLElement | null>;
79
82
  readonly role: _angular_core.InputSignal<"menu" | "menubar">;
80
83
  readonly classList: _angular_core.InputSignal<string>;
81
84
  readonly xPosition: _angular_core.InputSignal<"before" | "after">;
@@ -90,6 +93,7 @@ declare class Menu implements OnDestroy {
90
93
  readonly items: _angular_core.Signal<readonly MenuItem[]>;
91
94
  protected readonly _isNested: _angular_core.WritableSignal<boolean>;
92
95
  protected readonly _context: _angular_core.WritableSignal<any>;
96
+ readonly context: _angular_core.Signal<any>;
93
97
  private _parentMenu;
94
98
  private _parentMenuTrigger;
95
99
  private _itemSubscription;
@@ -103,7 +107,7 @@ declare class Menu implements OnDestroy {
103
107
  _triggerClosed(trigger: any): void;
104
108
  hasOpenChild(): boolean;
105
109
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<Menu, never>;
106
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<Menu, "ngs-menu", ["ngsMenu"], { "role": { "alias": "role"; "required": false; "isSignal": true; }; "classList": { "alias": "classList"; "required": false; "isSignal": true; }; "xPosition": { "alias": "xPosition"; "required": false; "isSignal": true; }; "yPosition": { "alias": "yPosition"; "required": false; "isSignal": true; }; "pushIntoViewport": { "alias": "pushIntoViewport"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, ["content", "items"], ["ngs-menu-header,[ngs-menu-header]", "*", "ngs-menu-footer,[ngs-menu-footer]"], true, never>;
110
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<Menu, "ngs-menu", ["ngsMenu"], { "themeSource": { "alias": "themeSource"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "classList": { "alias": "classList"; "required": false; "isSignal": true; }; "xPosition": { "alias": "xPosition"; "required": false; "isSignal": true; }; "yPosition": { "alias": "yPosition"; "required": false; "isSignal": true; }; "pushIntoViewport": { "alias": "pushIntoViewport"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, ["content", "items"], ["ngs-menu-header,[ngs-menu-header]", "*", "ngs-menu-footer,[ngs-menu-footer]"], true, never>;
107
111
  }
108
112
 
109
113
  declare class MenuDivider {
@@ -47,6 +47,7 @@ declare class SortHeader implements OnInit, OnDestroy {
47
47
  ngOnInit(): void;
48
48
  ngOnDestroy(): void;
49
49
  _handleClick(): void;
50
+ _handleKeydown(event: KeyboardEvent): void;
50
51
  _getNextSortDirection(): string;
51
52
  _isSorted(): boolean;
52
53
  _isDisabled(): boolean;
@@ -226,6 +226,8 @@ declare class TableDataSource<T> extends DataSource<T> {
226
226
  * @param data
227
227
  * @private
228
228
  */
229
+ /** Call after mutating a row in place; assigning data also invalidates the cache. */
230
+ invalidateFilterCache(row?: T): void;
229
231
  private _getQuickFilterString;
230
232
  constructor(initialData?: T[]);
231
233
  /**
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngstarter-ui-components-content-editor-heading-block.component-BKe9Zy_x.mjs","sources":["../../../projects/components/content-editor/src/_builder/heading-block/heading-block.component.ts","../../../projects/components/content-editor/src/_builder/heading-block/heading-block.component.html"],"sourcesContent":["import { NgsHeadlessEditorText } from '@ngstarter-ui/components/headless-editor';\nimport { contentEditorText, cloneContentEditorValue } from '../../document';\nimport {\n ChangeDetectionStrategy,\n Component, effect, untracked,\n DestroyRef,\n ElementRef,\n inject,\n input,\n OnInit,\n signal,\n viewChild\n} from '@angular/core';\nimport { ContentBuilderStore } from '../../content-builder.store';\nimport {\n CONTENT_BUILDER,\n CONTENT_EDITOR_BLOCK,\n ContentEditorDataBlock,\n ContentEditorHeadingBlockSettings,\n ContentEditorItemProperty\n} from '../../types';\nimport { ContentEditorContentEditableDirective } from '../../content-editor-content-editable.directive';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ContentBuilderComponent } from '../../content-builder/content-builder.component';\nimport { CursorController } from '../../utils/cursor-controller';\n\n@Component({\n selector: 'ngs-heading-block',\n imports: [\n ContentEditorContentEditableDirective\n ],\n templateUrl: './heading-block.component.html',\n styleUrl: './heading-block.component.scss',\n providers: [\n {\n provide: CONTENT_EDITOR_BLOCK,\n useExisting: HeadingBlockComponent,\n multi: true\n }\n ],\n host: {\n '[class.is-empty]': '_isEmpty()',\n '[class.level-1]': 'settings().level === 1',\n '[class.level-2]': 'settings().level === 2',\n '[class.level-3]': 'settings().level === 3',\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class HeadingBlockComponent implements OnInit, ContentEditorDataBlock {\n private _store = inject(ContentBuilderStore);\n private _contentBuilder = inject<ContentBuilderComponent>(CONTENT_BUILDER);\n private _destroyRef = inject(DestroyRef);\n\n private _contentRef = viewChild.required<ElementRef<HTMLParagraphElement>>('contentRef');\n\n id = input.required<string>();\n content = input.required<readonly NgsHeadlessEditorText[]>();\n settings = input.required<ContentEditorHeadingBlockSettings>();\n props = input<ContentEditorItemProperty[]>([]);\n index = input.required<number>();\n placeholder = input('Heading');\n\n protected _content = signal<readonly NgsHeadlessEditorText[]>([])\n protected _isEmpty = signal<boolean>(true);\n protected _props = signal<ContentEditorItemProperty[]>([]);\n readonly initialized = signal(false);\n\n constructor() {\n effect(() => {\n const content = this.content();\n const props = this.props();\n untracked(() => {\n this._content.set(content);\n this._props.set(cloneContentEditorValue(props));\n this._isEmpty.set(!contentEditorText(content).trim());\n });\n });\n }\n\n ngOnInit() {\n this._content.set(this.content());\n this._props.set(this.props());\n this._isEmpty.set(!contentEditorText(this.content()).trim());\n this._contentBuilder\n .focusChanged\n .pipe(takeUntilDestroyed(this._destroyRef))\n .subscribe(() => {\n if (this._store.focusedBlockId() === this.id()) {\n this.focus();\n }\n });\n }\n\n focus() {\n const element = this._contentRef().nativeElement;\n const cursorController = new CursorController(element);\n cursorController.setToEnd();\n }\n\n onPropsChanged(props: ContentEditorItemProperty[]) {\n this._props.set(props);\n this.update();\n }\n\n getData(): any {\n return {\n content: this._content(),\n props: this._props(),\n settings: {\n ...this.settings(),\n }\n };\n }\n\n isEmpty(): boolean {\n return !contentEditorText(this._content()).trim();\n }\n\n protected onContentChanged(content: readonly NgsHeadlessEditorText[]) {\n if (!this.initialized()) {\n return;\n }\n\n this._content.set(content);\n this._isEmpty.set(!contentEditorText(content).trim());\n\n this.update();\n }\n\n protected onPressedEnter(event: KeyboardEvent) {\n event.preventDefault();\n event.stopPropagation();\n this._contentBuilder.insertEmptyBlock(this.index());\n }\n\n protected onContentEditableInitialized() {\n if (this._store.focusedBlockId() === this.id()) {\n this.focus();\n }\n\n this.initialized.set(true);\n }\n\n protected _onKeyDown(event: KeyboardEvent) {\n if (event.key === 'Backspace' && !contentEditorText(this._content())) {\n this._contentBuilder.deleteBlock(this.id());\n }\n }\n\n private update() {\n this._store.updateBlock(this.id(), {...this.getData(), isEmpty: this.isEmpty()});\n this._contentBuilder.emitContentChangeEvent();\n }\n}\n","<div #contentRef\n class=\"content\"\n [singleLine]=\"true\"\n [ngsContentEditorContentEditable]=\"_content()\"\n [props]=\"props()\"\n (propsChanged)=\"onPropsChanged($event)\"\n [attr.data-empty-placeholder]=\"placeholder()\"\n (contentChanged)=\"onContentChanged($event)\"\n (pressedEnter)=\"onPressedEnter($event)\"\n (keydown)=\"_onKeyDown($event)\"\n (initialized)=\"onContentEditableInitialized()\"></div>\n"],"names":[],"mappings":";;;;;;MAgDa,qBAAqB,CAAA;AACxB,IAAA,MAAM,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACpC,IAAA,eAAe,GAAG,MAAM,CAA0B,eAAe,CAAC;AAClE,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAEhC,IAAA,WAAW,GAAG,SAAS,CAAC,QAAQ,CAAmC,YAAY;oFAAC;IAExF,EAAE,GAAG,KAAK,CAAC,QAAQ;2EAAU;IAC7B,OAAO,GAAG,KAAK,CAAC,QAAQ;gFAAoC;IAC5D,QAAQ,GAAG,KAAK,CAAC,QAAQ;iFAAqC;IAC9D,KAAK,GAAG,KAAK,CAA8B,EAAE;8EAAC;IAC9C,KAAK,GAAG,KAAK,CAAC,QAAQ;8EAAU;IAChC,WAAW,GAAG,KAAK,CAAC,SAAS;oFAAC;IAEpB,QAAQ,GAAG,MAAM,CAAmC,EAAE;iFAAC;IACvD,QAAQ,GAAG,MAAM,CAAU,IAAI;iFAAC;IAChC,MAAM,GAAG,MAAM,CAA8B,EAAE;+EAAC;IACjD,WAAW,GAAG,MAAM,CAAC,KAAK;oFAAC;AAEpC,IAAA,WAAA,GAAA;QACE,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE;AAC9B,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE;YAC1B,SAAS,CAAC,MAAK;AACb,gBAAA,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC;gBAC1B,IAAI,CAAC,MAAM,CAAC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AAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,aAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngstarter-ui-components-content-editor-image-block.component-DSpBVTu-.mjs","sources":["../../../projects/components/content-editor/src/_builder/image-block/image-block.component.ts","../../../projects/components/content-editor/src/_builder/image-block/image-block.component.html"],"sourcesContent":["import { ContentEditorUploadBlockBase } from '../upload-block-base';\nimport { ContentEditorUploadStatus } from '../upload-status/upload-status';\nimport { ChangeDetectionStrategy, Component, effect, untracked, forwardRef, model, OnInit, signal } from '@angular/core';\nimport { UploadArea, UploadFileSelectedEvent, UploadTriggerDirective } from '@ngstarter-ui/components/upload';\nimport {\n CONTENT_EDITOR_BLOCK,\n ContentEditorImageBlockSettings,\n ContentEditorImageContent\n} from '../../types';\nimport { ImageResizer, ImageResizerImageDirective } from '@ngstarter-ui/components/image-resizer';\nimport { FormField, Label } from '@ngstarter-ui/components/form-field';\nimport { Input } from '@ngstarter-ui/components/input';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'ngs-image-block',\n imports: [\n ContentEditorUploadStatus,\n UploadArea,\n UploadTriggerDirective,\n ImageResizer,\n FormField,\n Input,\n FormsModule,\n ImageResizerImageDirective,\n Label\n ],\n providers: [\n {\n provide: CONTENT_EDITOR_BLOCK,\n useExisting: forwardRef(() => ImageBlockComponent),\n multi: true\n }\n ],\n templateUrl: './image-block.component.html',\n styleUrl: './image-block.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(keypress)': 'handleKeyPress($event)',\n }\n})\nexport class ImageBlockComponent extends ContentEditorUploadBlockBase<ContentEditorImageContent, ContentEditorImageBlockSettings> implements OnInit {\n\n protected _src = signal<string>('');\n protected _alt = model<string>('');\n protected _settings = model<ContentEditorImageBlockSettings>({});\n\n constructor() {\n super();\n effect(() => {\n const content = this.content();\n const settings = this.settings();\n untracked(() => {\n this._src.set(content.src);\n this._alt.set(content.alt);\n this._settings.set({ ...settings });\n });\n });\n }\n\n ngOnInit() {\n this._src.set(this.content().src);\n this._alt.set(this.content().alt);\n this._settings.set(this.settings() || {});\n }\n\n override focus() {\n if (this._src()) {\n this.builder.focusBlock(this.id());\n }\n }\n\n override getData(): any {\n return {\n content: {\n src: this._src(),\n alt: this._alt()\n },\n settings: {\n ...this._settings(),\n }\n };\n }\n\n override isEmpty(): boolean {\n const src = this.getData().content.src;\n return typeof src === 'string' ? src.trim().length === 0 : !src;\n }\n\n protected onFileSelected(event: UploadFileSelectedEvent): Promise<void> {\n return this.uploadFiles('image', { files: event.files.slice(0, 1), accept: file => file.type.startsWith('image/'), apply: results => {\n this._src.set(results[0].url);\n this.update();\n } });\n }\n\n protected _onAltChange() {\n this.update();\n }\n\n protected _onImageResized(options: any) {\n this._settings.set(options);\n this.update();\n }\n\n protected handleKeyPress(event: KeyboardEvent) {\n if (event.key === 'Enter') {\n event.preventDefault();\n event.stopPropagation();\n this.builder.insertEmptyBlock(this.index());\n }\n }\n\n private update() {\n this.store.updateBlock(this.id(), {...this.getData(), isEmpty: this.isEmpty()});\n this.builder.emitContentChangeEvent();\n }\n}\n","<ngs-content-editor-upload-status [task]=\"uploadTask\"/>\n@if (_src()) {\n <div class=\"uploaded-image\">\n <ngs-image-resizer (imageResized)=\"_onImageResized($event)\" [imageMaxWidth]=\"704\">\n <img [src]=\"_src()\" [alt]=\"_alt()\" ngsImageResizerImage [style.width.px]=\"_settings().width || null\">\n </ngs-image-resizer>\n </div>\n <ngs-form-field class=\"w-full mt-5\">\n <ngs-label>Alt text</ngs-label>\n <input ngsInput [(ngModel)]=\"_alt\" (ngModelChange)=\"_onAltChange()\">\n </ngs-form-field>\n} @else if (!uploading()) {\n <ngs-upload-area #uploadArea=\"ngsUploadArea\"\n ngsUploadTrigger accept=\"image/*\"\n (fileSelected)=\"onFileSelected($event)\"\n multiple=\"false\" class=\"upload-area\">\n @if (!uploadArea.api.isDropActive) {\n Drag & drop image here or click to upload\n } @else {\n <div class=\"font-medium\">Drop image here</div>\n }\n </ngs-upload-area>\n}\n"],"names":[],"mappings":";;;;;;;;;;;AAyCM,MAAO,mBAAoB,SAAQ,4BAAwF,CAAA;IAErH,IAAI,GAAG,MAAM,CAAS,EAAE;6EAAC;IACzB,IAAI,GAAG,KAAK,CAAS,EAAE;6EAAC;IACxB,SAAS,GAAG,KAAK,CAAkC,EAAE;kFAAC;AAEhE,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QACP,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE;AAC9B,YAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE;YAChC,SAAS,CAAC,MAAK;gBACb,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC;gBAC1B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC;gBAC1B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC;AACrC,YAAA,CAAC,CAAC;AACJ,QAAA,CAAC,CAAC;IACJ;IAEA,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC;AACjC,QAAA,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC;AACjC,QAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C;IAES,KAAK,GAAA;AACZ,QAAA,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE;YACf,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;QACpC;IACF;IAES,OAAO,GAAA;QACd,O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