@arsedizioni/ars-utils 22.6.86 → 22.6.89

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 (79) hide show
  1. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +3158 -3344
  2. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  3. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +7616 -4772
  4. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  5. package/fesm2022/arsedizioni-ars-utils-core.date.mjs +321 -702
  6. package/fesm2022/arsedizioni-ars-utils-core.date.mjs.map +1 -1
  7. package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs +445 -590
  8. package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs.map +1 -1
  9. package/fesm2022/arsedizioni-ars-utils-core.mjs +1735 -2370
  10. package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
  11. package/fesm2022/arsedizioni-ars-utils-core.validators.mjs +1280 -1470
  12. package/fesm2022/arsedizioni-ars-utils-core.validators.mjs.map +1 -1
  13. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +1097 -1528
  14. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
  15. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +198 -294
  16. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  17. package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs +115 -117
  18. package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs.map +1 -1
  19. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs +1607 -613
  20. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs.map +1 -1
  21. package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs +840 -367
  22. package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs.map +1 -1
  23. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +1634 -651
  24. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs.map +1 -1
  25. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs +1255 -792
  26. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs.map +1 -1
  27. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +1410 -357
  28. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs.map +1 -1
  29. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +2401 -944
  30. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs.map +1 -1
  31. package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +1553 -741
  32. package/fesm2022/arsedizioni-ars-utils-ui.files.mjs.map +1 -1
  33. package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs +901 -430
  34. package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs.map +1 -1
  35. package/fesm2022/arsedizioni-ars-utils-ui.help.mjs +737 -530
  36. package/fesm2022/arsedizioni-ars-utils-ui.help.mjs.map +1 -1
  37. package/fesm2022/arsedizioni-ars-utils-ui.mjs +6638 -1755
  38. package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
  39. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs +1479 -1207
  40. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs.map +1 -1
  41. package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs +1003 -270
  42. package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs.map +1 -1
  43. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +497 -278
  44. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
  45. package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs +48 -52
  46. package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs.map +1 -1
  47. package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs +464 -704
  48. package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs.map +1 -1
  49. package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs +724 -657
  50. package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs.map +1 -1
  51. package/fesm2022/arsedizioni-ars-utils.mjs +3 -19
  52. package/fesm2022/arsedizioni-ars-utils.mjs.map +1 -1
  53. package/package.json +1 -1
  54. package/types/arsedizioni-ars-utils-clipper.common.d.ts +1151 -1163
  55. package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1588 -1426
  56. package/types/arsedizioni-ars-utils-core.d.ts +1169 -1172
  57. package/types/arsedizioni-ars-utils-core.date.d.ts +204 -208
  58. package/types/arsedizioni-ars-utils-core.markdown.d.ts +128 -126
  59. package/types/arsedizioni-ars-utils-core.validators.d.ts +270 -236
  60. package/types/arsedizioni-ars-utils-evolution.common.d.ts +1054 -1067
  61. package/types/arsedizioni-ars-utils-support.common.d.ts +225 -234
  62. package/types/arsedizioni-ars-utils-ui.controls.d.ts +440 -278
  63. package/types/arsedizioni-ars-utils-ui.controls.date.d.ts +24 -28
  64. package/types/arsedizioni-ars-utils-ui.controls.tree.d.ts +172 -136
  65. package/types/arsedizioni-ars-utils-ui.d.ts +2035 -821
  66. package/types/arsedizioni-ars-utils-ui.dialogs.auth.d.ts +327 -322
  67. package/types/arsedizioni-ars-utils-ui.dialogs.d.ts +343 -347
  68. package/types/arsedizioni-ars-utils-ui.dialogs.prompt.d.ts +167 -167
  69. package/types/arsedizioni-ars-utils-ui.dialogs.select.d.ts +373 -367
  70. package/types/arsedizioni-ars-utils-ui.files.d.ts +335 -283
  71. package/types/arsedizioni-ars-utils-ui.filters.d.ts +232 -160
  72. package/types/arsedizioni-ars-utils-ui.help.d.ts +204 -211
  73. package/types/arsedizioni-ars-utils-ui.navigation.d.ts +811 -646
  74. package/types/arsedizioni-ars-utils-ui.notifications.d.ts +74 -78
  75. package/types/arsedizioni-ars-utils-ui.oauth.d.ts +102 -62
  76. package/types/arsedizioni-ars-utils-ui.paginator.d.ts +19 -22
  77. package/types/arsedizioni-ars-utils-ui.shell.d.ts +376 -382
  78. package/types/arsedizioni-ars-utils-ui.tinymce.d.ts +244 -231
  79. package/types/arsedizioni-ars-utils.d.ts +1 -3
@@ -1,16 +1,13 @@
1
- import * as _angular_forms_signals from '@angular/forms/signals';
2
- import * as _angular_core from '@angular/core';
3
- import { OnDestroy } from '@angular/core';
4
- import { SearchFilterMetadata } from '@arsedizioni/ars-utils/core';
5
- import { ListDialogData, SelectableItem, SelectDialogData, SelectDialogResult, SelectDialogEdit, SelectDialogAppend, SelectDialogDelete, SelectDialogLookup, SelectDialogFilter, SelectableFilter, ItemNode, SelectTreeDialogResult, SelectTreeDialogData, ISendToDialog, SendToDialogResult, SendToPopulateData } from '@arsedizioni/ars-utils/ui';
6
- import { MatCheckboxChange } from '@angular/material/checkbox';
7
- import { MatSelectionList, MatSelectionListChange } from '@angular/material/list';
8
- import { MatPaginator, PageEvent } from '@angular/material/paginator';
9
- import * as rxjs from 'rxjs';
10
- import { MatTree } from '@angular/material/tree';
11
- import { MatFormFieldAppearance } from '@angular/material/form-field';
12
- import { SignalsUtils } from '@arsedizioni/ars-utils/core.validators';
13
-
1
+ import { SearchFilterMetadata } from "@arsedizioni/ars-utils/core";
2
+ import { ISendToDialog, ItemNode, ListDialogData, SelectDialogAppend, SelectDialogData, SelectDialogDelete, SelectDialogEdit, SelectDialogFilter, SelectDialogLookup, SelectDialogResult, SelectTreeDialogData, SelectTreeDialogResult, SelectableFilter, SelectableItem, SendToDialogResult, SendToPopulateData } from "@arsedizioni/ars-utils/ui";
3
+ import * as i0 from "@angular/core";
4
+ import { OnDestroy } from "@angular/core";
5
+ import { MatCheckboxChange } from "@angular/material/checkbox";
6
+ import { MatSelectionList, MatSelectionListChange } from "@angular/material/list";
7
+ import { MatPaginator, PageEvent } from "@angular/material/paginator";
8
+ import { MatTree } from "@angular/material/tree";
9
+ import { MatFormFieldAppearance } from "@angular/material/form-field";
10
+ import { SignalsUtils } from "@arsedizioni/ars-utils/core.validators";
14
11
  /**
15
12
  * Read-only counterpart of `SelectDialogComponent`: it shows a list of items with a search box
16
13
  * and nothing else.
@@ -24,301 +21,310 @@ import { SignalsUtils } from '@arsedizioni/ars-utils/core.validators';
24
21
  * Filtering is client-side, through the same `search` pipe the select dialog uses on its local
25
22
  * items. There is no server-side lookup: paging a list nobody can act on would buy nothing.
26
23
  */
27
- declare class ListDialogComponent {
28
- private readonly cdr;
29
- protected readonly dialogData: _angular_core.WritableSignal<ListDialogData>;
30
- /** Items currently on screen. Seeded from the dialog data and replaceable through {@link setItems}. */
31
- protected readonly items: _angular_core.WritableSignal<SelectableItem[]>;
32
- /** Counters written by the `search` pipe while it filters, read back by the footer. */
33
- protected filterMetadata: SearchFilterMetadata;
34
- /** Current search text. */
35
- protected readonly filterText: _angular_core.WritableSignal<string>;
36
- /** Root signal form bound to the search input. */
37
- protected readonly filterForm: _angular_forms_signals.FieldTree<string, string | number, "writable">;
38
- /**
39
- * Replaces the items on screen, for a caller that fills the list after opening the dialog or
40
- * refreshes it while it is open.
41
- * @param items - The new items to display; an empty array clears the list.
42
- */
43
- setItems(items: SelectableItem[]): void;
44
- /**
45
- * Sets the search text programmatically.
46
- * @param text - The new search string to apply.
47
- */
48
- setFilter(text: string): void;
49
- /**
50
- * Returns the current search text.
51
- * @returns The active search string.
52
- */
53
- getFilter(): string;
54
- /** Clears the search text, restoring the whole list. */
55
- protected clearFilter(): void;
56
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListDialogComponent, never>;
57
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
24
+ export declare class ListDialogComponent {
25
+ private readonly cdr;
26
+ protected readonly dialogData: import("@angular/core").WritableSignal<ListDialogData>;
27
+ /** Items currently on screen. Seeded from the dialog data and replaceable through {@link setItems}. */
28
+ protected readonly items: import("@angular/core").WritableSignal<SelectableItem[]>;
29
+ /** Counters written by the `search` pipe while it filters, read back by the footer. */
30
+ protected filterMetadata: SearchFilterMetadata;
31
+ /** Current search text. */
32
+ protected readonly filterText: import("@angular/core").WritableSignal<string>;
33
+ /** Root signal form bound to the search input. */
34
+ protected readonly filterForm: import("@angular/forms/signals").FieldTree<string, string | number, "writable">;
35
+ /**
36
+ * Replaces the items on screen, for a caller that fills the list after opening the dialog or
37
+ * refreshes it while it is open.
38
+ * @param items - The new items to display; an empty array clears the list.
39
+ */
40
+ setItems(items: SelectableItem[]): void;
41
+ /**
42
+ * Sets the search text programmatically.
43
+ * @param text - The new search string to apply.
44
+ */
45
+ setFilter(text: string): void;
46
+ /**
47
+ * Returns the current search text.
48
+ * @returns The active search string.
49
+ */
50
+ getFilter(): string;
51
+ /** Clears the search text, restoring the whole list. */
52
+ protected clearFilter(): void;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListDialogComponent, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
58
55
  }
59
-
60
- declare class SelectDialogComponent {
61
- readonly paginator: _angular_core.Signal<MatPaginator>;
62
- readonly selection: _angular_core.Signal<MatSelectionList>;
63
- private isViewReady;
64
- private readonly dialogRef;
65
- private readonly cdr;
66
- protected readonly dialogData: _angular_core.WritableSignal<SelectDialogData>;
67
- readonly done: _angular_core.OutputEmitterRef<SelectDialogResult>;
68
- readonly edit: _angular_core.OutputEmitterRef<SelectDialogEdit>;
69
- readonly view: _angular_core.OutputEmitterRef<SelectableItem>;
70
- readonly append: _angular_core.OutputEmitterRef<SelectDialogAppend>;
71
- readonly delete: _angular_core.OutputEmitterRef<SelectDialogDelete>;
72
- readonly lookup: _angular_core.OutputEmitterRef<SelectDialogLookup>;
73
- readonly lookupOptions: _angular_core.OutputEmitterRef<void>;
74
- readonly filter: _angular_core.OutputEmitterRef<SelectDialogFilter>;
75
- protected canEdit: _angular_core.WritableSignal<boolean>;
76
- protected canView: _angular_core.WritableSignal<boolean>;
77
- protected canAppend: _angular_core.WritableSignal<boolean>;
78
- protected canDelete: _angular_core.WritableSignal<boolean>;
79
- protected canPaginate: _angular_core.WritableSignal<boolean>;
80
- protected okDisabled: _angular_core.WritableSignal<boolean>;
81
- protected filterMetadata: SearchFilterMetadata;
82
- protected readonly filterText: _angular_core.WritableSignal<string>;
83
- /** Root signal form bound to the filter text input. */
84
- protected readonly filterForm: _angular_forms_signals.FieldTree<string, string | number, "writable">;
85
- protected readonly filterOptions: _angular_core.WritableSignal<SelectableFilter[]>;
86
- protected filterOptionsInfo: _angular_core.WritableSignal<string>;
87
- protected lookupField: string;
88
- private lookupParams?;
89
- protected selectionInfo: _angular_core.WritableSignal<string>;
90
- protected selectionMasterIndeterminate: _angular_core.WritableSignal<boolean>;
91
- protected selectionMasterChecked: _angular_core.WritableSignal<boolean>;
92
- protected total: _angular_core.WritableSignal<number>;
93
- constructor();
94
- /**
95
- * Updates the total item count signal, triggering UI refresh.
96
- * @param newTotal - The new total count; defaults to 0 if omitted.
97
- */
98
- notifyChanges(newTotal?: number): void;
99
- /** Returns `true` when every list item is currently selected. */
100
- private isAllSelected;
101
- /** Returns `true` when at least one list item is selected. */
102
- private hasSelection;
103
- /**
104
- * Selects or deselects all items based on the master checkbox state.
105
- * @param e - The checkbox change event.
106
- */
107
- protected masterSelectionToggle(e: MatCheckboxChange): void;
108
- /**
109
- * Handles selection or deselection of a list item.
110
- * @param e - The selection list change event.
111
- */
112
- protected select(e: MatSelectionListChange): void;
113
- /** Refreshes the selection info label shown in the dialog footer. */
114
- private updateSelectionInfo;
115
- /** Deselects all items and resets the master checkbox state. */
116
- clearSelection(): void;
117
- /** Emits the current selection and closes the dialog. */
118
- protected ok(): void;
119
- /** Clears the current filter text input. */
120
- protected clearFilter(): void;
121
- /**
122
- * Sets the filter text programmatically.
123
- * @param text - The new filter string to apply.
124
- */
125
- setFilter(text: string): void;
126
- /**
127
- * Returns the current filter text.
128
- * @returns The active filter string.
129
- */
130
- getFilter(): string;
131
- /** Emits the `lookupOptions` output event to open the filter options panel. */
132
- protected showFilterOptions(): void;
133
- /**
134
- * Applies the given text filter, emitting a lookup when enabled.
135
- * @param text - Optional filter string; populates `filterText` when provided.
136
- * @param e - Optional keyboard event; lookup only fires on Enter.
137
- */
138
- protected doFilter(text?: string, e?: KeyboardEvent): void;
139
- /**
140
- * Applies the current filter text, emitting a lookup event.
141
- */
142
- private applyFilter;
143
- /**
144
- * Applies a structured filter option, emitting the filter output event.
145
- * @param filterOption - The selected filter option object.
146
- */
147
- private applyFilterByOptions;
148
- /**
149
- * Applies a structured filter option, emitting the filter output event.
150
- * @param filterOption - The selected filter option object.
151
- * @param apply - Optional flag to immediately apply the filter.
152
- */
153
- protected doFilterByOptions(filterOption: any, apply?: boolean): void;
154
- /**
155
- * Triggers a server-side lookup with the given parameters (public API).
156
- * @param params - An object containing the lookup query parameters.
157
- */
158
- doLookup(params: any): void;
159
- /**
160
- * Updates the paginator length and resets it to the first page.
161
- * @param total - The new total number of items.
162
- */
163
- protected updateLookupPaginator(total: number): void;
164
- /**
165
- * Handles a paginator page change and triggers a new lookup.
166
- * @param e - The paginator page change event.
167
- */
168
- protected doLookupPage(e: PageEvent): void;
169
- /** Emits the `append` output event to open the add-item flow. */
170
- protected doAppend(): void;
171
- /** Emits the `edit` output event for the currently selected item. */
172
- protected doEdit(): void;
173
- /** Emits the `view` output event for the currently selected item. */
174
- protected doView(): void;
175
- /** Emits the `delete` output event with all currently selected items. */
176
- protected doDelete(): void;
177
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectDialogComponent, never>;
178
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectDialogComponent, "ng-component", never, {}, { "done": "done"; "edit": "edit"; "view": "view"; "append": "append"; "delete": "delete"; "lookup": "lookup"; "lookupOptions": "lookupOptions"; "filter": "filter"; }, never, never, true, never>;
56
+ export declare class SelectDialogComponent {
57
+ readonly paginator: import("@angular/core").Signal<MatPaginator>;
58
+ readonly selection: import("@angular/core").Signal<MatSelectionList>;
59
+ private isViewReady;
60
+ private readonly dialogRef;
61
+ private readonly cdr;
62
+ protected readonly dialogData: import("@angular/core").WritableSignal<SelectDialogData>;
63
+ readonly done: import("@angular/core").OutputEmitterRef<SelectDialogResult>;
64
+ readonly edit: import("@angular/core").OutputEmitterRef<SelectDialogEdit>;
65
+ readonly view: import("@angular/core").OutputEmitterRef<SelectableItem>;
66
+ readonly append: import("@angular/core").OutputEmitterRef<SelectDialogAppend>;
67
+ readonly delete: import("@angular/core").OutputEmitterRef<SelectDialogDelete>;
68
+ readonly lookup: import("@angular/core").OutputEmitterRef<SelectDialogLookup>;
69
+ readonly lookupOptions: import("@angular/core").OutputEmitterRef<void>;
70
+ readonly filter: import("@angular/core").OutputEmitterRef<SelectDialogFilter>;
71
+ protected canEdit: import("@angular/core").WritableSignal<boolean>;
72
+ protected canView: import("@angular/core").WritableSignal<boolean>;
73
+ protected canAppend: import("@angular/core").WritableSignal<boolean>;
74
+ protected canDelete: import("@angular/core").WritableSignal<boolean>;
75
+ protected canPaginate: import("@angular/core").WritableSignal<boolean>;
76
+ protected okDisabled: import("@angular/core").WritableSignal<boolean>;
77
+ protected filterMetadata: SearchFilterMetadata;
78
+ protected readonly filterText: import("@angular/core").WritableSignal<string>;
79
+ /** Root signal form bound to the filter text input. */
80
+ protected readonly filterForm: import("@angular/forms/signals").FieldTree<string, string | number, "writable">;
81
+ protected readonly filterOptions: import("@angular/core").WritableSignal<SelectableFilter[]>;
82
+ protected filterOptionsInfo: import("@angular/core").WritableSignal<string>;
83
+ protected lookupField: string;
84
+ private lookupParams?;
85
+ protected selectionInfo: import("@angular/core").WritableSignal<string>;
86
+ protected selectionMasterIndeterminate: import("@angular/core").WritableSignal<boolean>;
87
+ protected selectionMasterChecked: import("@angular/core").WritableSignal<boolean>;
88
+ protected total: import("@angular/core").WritableSignal<number>;
89
+ constructor();
90
+ /**
91
+ * Updates the total item count signal, triggering UI refresh.
92
+ * @param newTotal - The new total count; defaults to 0 if omitted.
93
+ */
94
+ notifyChanges(newTotal?: number): void;
95
+ /** Returns `true` when every list item is currently selected. */
96
+ private isAllSelected;
97
+ /** Returns `true` when at least one list item is selected. */
98
+ private hasSelection;
99
+ /**
100
+ * Selects or deselects all items based on the master checkbox state.
101
+ * @param e - The checkbox change event.
102
+ */
103
+ protected masterSelectionToggle(e: MatCheckboxChange): void;
104
+ /**
105
+ * Handles selection or deselection of a list item.
106
+ * @param e - The selection list change event.
107
+ */
108
+ protected select(e: MatSelectionListChange): void;
109
+ /** Refreshes the selection info label shown in the dialog footer. */
110
+ private updateSelectionInfo;
111
+ /** Deselects all items and resets the master checkbox state. */
112
+ clearSelection(): void;
113
+ /** Emits the current selection and closes the dialog. */
114
+ protected ok(): void;
115
+ /** Clears the current filter text input. */
116
+ protected clearFilter(): void;
117
+ /**
118
+ * Sets the filter text programmatically.
119
+ * @param text - The new filter string to apply.
120
+ */
121
+ setFilter(text: string): void;
122
+ /**
123
+ * Returns the current filter text.
124
+ * @returns The active filter string.
125
+ */
126
+ getFilter(): string;
127
+ /** Emits the `lookupOptions` output event to open the filter options panel. */
128
+ protected showFilterOptions(): void;
129
+ /**
130
+ * Applies the given text filter, emitting a lookup when enabled.
131
+ * @param text - Optional filter string; populates `filterText` when provided.
132
+ * @param e - Optional keyboard event; lookup only fires on Enter.
133
+ */
134
+ protected doFilter(text?: string, e?: KeyboardEvent): void;
135
+ /**
136
+ * Applies the current filter text, emitting a lookup event.
137
+ */
138
+ private applyFilter;
139
+ /**
140
+ * Applies a structured filter option, emitting the filter output event.
141
+ * @param filterOption - The selected filter option object.
142
+ */
143
+ private applyFilterByOptions;
144
+ /**
145
+ * Applies a structured filter option, emitting the filter output event.
146
+ * @param filterOption - The selected filter option object.
147
+ * @param apply - Optional flag to immediately apply the filter.
148
+ */
149
+ protected doFilterByOptions(filterOption: any, apply?: boolean): void;
150
+ /**
151
+ * Triggers a server-side lookup with the given parameters (public API).
152
+ * @param params - An object containing the lookup query parameters.
153
+ */
154
+ doLookup(params: any): void;
155
+ /**
156
+ * Updates the paginator length and resets it to the first page.
157
+ * @param total - The new total number of items.
158
+ */
159
+ protected updateLookupPaginator(total: number): void;
160
+ /**
161
+ * Handles a paginator page change and triggers a new lookup.
162
+ * @param e - The paginator page change event.
163
+ */
164
+ protected doLookupPage(e: PageEvent): void;
165
+ /** Emits the `append` output event to open the add-item flow. */
166
+ protected doAppend(): void;
167
+ /** Emits the `edit` output event for the currently selected item. */
168
+ protected doEdit(): void;
169
+ /** Emits the `view` output event for the currently selected item. */
170
+ protected doView(): void;
171
+ /** Emits the `delete` output event with all currently selected items. */
172
+ protected doDelete(): void;
173
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectDialogComponent, never>;
174
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectDialogComponent, "ng-component", never, {}, {
175
+ "done": "done";
176
+ "edit": "edit";
177
+ "view": "view";
178
+ "append": "append";
179
+ "delete": "delete";
180
+ "lookup": "lookup";
181
+ "lookupOptions": "lookupOptions";
182
+ "filter": "filter";
183
+ }, never, never, true, never>;
179
184
  }
180
-
181
- declare class TreeDataSource implements OnDestroy {
182
- private readonly _dataChange;
183
- readonly dataChange$: rxjs.Observable<ItemNode[]>;
184
- get data(): ItemNode[];
185
- ngOnDestroy(): void;
186
- initialize(data: ItemNode[]): void;
187
- /**
188
- * Find a node by id recursively.
189
- * @param node - The source node to search from, or null to search from root.
190
- * @param id - The id to search for.
191
- * @returns The matching node, or undefined if not found.
192
- */
193
- findNode(node: ItemNode | null, id: string): ItemNode | undefined;
194
- /**
195
- * Remove a node from the tree.
196
- * @param id - The id of the node to remove.
197
- */
198
- removeNode(id: string): void;
199
- /**
200
- * Insert a new node at the top of its parent (or root).
201
- * @param node - The new node to insert.
202
- */
203
- insertNode(node: ItemNode): void;
204
- /**
205
- * Rename a node in the tree.
206
- * @param id - The id of the node to rename.
207
- * @param name - The new name for the node.
208
- * @returns The renamed node, or undefined if not found.
209
- */
210
- renameNode(id: string, name: string): ItemNode | undefined;
211
- /**
212
- * Notify all subscribers of the current data state.
213
- */
214
- update(): void;
215
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeDataSource, never>;
216
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
185
+ export declare class TreeDataSource implements OnDestroy {
186
+ private readonly _dataChange;
187
+ readonly dataChange$: import("rxjs").Observable<ItemNode[]>;
188
+ get data(): ItemNode[];
189
+ ngOnDestroy(): void;
190
+ initialize(data: ItemNode[]): void;
191
+ /**
192
+ * Find a node by id recursively.
193
+ * @param node - The source node to search from, or null to search from root.
194
+ * @param id - The id to search for.
195
+ * @returns The matching node, or undefined if not found.
196
+ */
197
+ findNode(node: ItemNode | null, id: string): ItemNode | undefined;
198
+ /**
199
+ * Remove a node from the tree.
200
+ * @param id - The id of the node to remove.
201
+ */
202
+ removeNode(id: string): void;
203
+ /**
204
+ * Insert a new node at the top of its parent (or root).
205
+ * @param node - The new node to insert.
206
+ */
207
+ insertNode(node: ItemNode): void;
208
+ /**
209
+ * Rename a node in the tree.
210
+ * @param id - The id of the node to rename.
211
+ * @param name - The new name for the node.
212
+ * @returns The renamed node, or undefined if not found.
213
+ */
214
+ renameNode(id: string, name: string): ItemNode | undefined;
215
+ /**
216
+ * Notify all subscribers of the current data state.
217
+ */
218
+ update(): void;
219
+ static ɵfac: i0.ɵɵFactoryDeclaration<TreeDataSource, never>;
220
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
217
221
  }
218
- interface SelectTreeDialogAppend {
219
- parent?: ItemNode;
220
- owner?: any;
222
+ export interface SelectTreeDialogAppend {
223
+ parent?: ItemNode;
224
+ owner?: any;
221
225
  }
222
- declare class SelectTreeDialogComponent {
223
- /** Emitted when the user confirms a selection. */
224
- readonly done: _angular_core.OutputEmitterRef<SelectTreeDialogResult>;
225
- /** Emitted when the user requests to append a new node. */
226
- readonly append: _angular_core.OutputEmitterRef<SelectTreeDialogAppend>;
227
- private readonly destroyRef;
228
- private readonly dialogRef;
229
- /** Dialog configuration, injected and exposed as a signal. */
230
- protected readonly dialogData: _angular_core.WritableSignal<SelectTreeDialogData>;
231
- private readonly tree;
232
- private readonly _elRef;
233
- /** Reference to the Material tree component. */
234
- protected readonly matTree: _angular_core.Signal<MatTree<ItemNode, ItemNode>>;
235
- /** Provides children of a tree node to the tree component. */
236
- protected readonly childrenAccessor: (node: ItemNode) => ItemNode[];
237
- /** Root nodes used as the tree data source. */
238
- protected readonly treeNodes: _angular_core.WritableSignal<ItemNode[]>;
239
- /** Currently selected tree node. */
240
- protected readonly currentNode: _angular_core.WritableSignal<ItemNode>;
241
- /** Current filter text. */
242
- protected readonly filterText: _angular_core.WritableSignal<string>;
243
- /** Root signal form bound to the filter text input. */
244
- protected readonly filterForm: _angular_forms_signals.FieldTree<string, string | number, "writable">;
245
- /** Nodes matching the current filter text. */
246
- protected readonly filteredItems: _angular_core.WritableSignal<ItemNode[]>;
247
- /** Index of the currently highlighted filtered node (-1 = none). */
248
- protected readonly filterIndex: _angular_core.WritableSignal<number>;
249
- /** The currently highlighted filtered node, or null. */
250
- protected readonly filteredNode: _angular_core.Signal<ItemNode>;
251
- protected readonly canAppend: _angular_core.WritableSignal<boolean>;
252
- /** Flat node map rebuilt whenever treeNodes changes. */
253
- private readonly _nodeMap;
254
- protected hasChild: (_: number, node: ItemNode) => boolean;
255
- constructor();
256
- /**
257
- * Confirm the current selection and close the dialog.
258
- */
259
- protected ok(): void;
260
- /**
261
- * Toggle selection of a tree node. Clicking the already-selected node deselects it.
262
- * @param e - The mouse event (propagation is stopped).
263
- * @param node - The node that was clicked.
264
- */
265
- protected select(e: MouseEvent, node: ItemNode): void;
266
- /**
267
- * Clear the active filter text.
268
- */
269
- protected clearFilter(): void;
270
- /**
271
- * Filter the tree nodes by name (minimum 3 characters).
272
- */
273
- protected doFilter(): void;
274
- /**
275
- * Advance to the next matching filtered node and scroll it into view.
276
- */
277
- protected nextFiltered(): void;
278
- /**
279
- * Returns true when the node is the currently highlighted filter match.
280
- * @param node - tree node to check.
281
- */
282
- protected isFilteredNode(node: ItemNode): boolean;
283
- /**
284
- * Expands ancestors of the target node and scrolls it into view.
285
- * @param index - index within `items` to scroll to.
286
- * @param items - current filtered items array.
287
- */
288
- private _scrollToFiltered;
289
- /**
290
- * Expand a node and all of its parent nodes.
291
- * @param node - The node to expand.
292
- * @returns Always false.
293
- */
294
- expand(node: ItemNode): boolean;
295
- /**
296
- * Recursively find a node by id.
297
- * @param nodes - Nodes to search.
298
- * @param id - The id to find.
299
- */
300
- private findInTree;
301
- /**
302
- * Append a new node to the tree.
303
- * @param node - The node to insert.
304
- */
305
- appendNode(node: ItemNode): void;
306
- /**
307
- * Collapse all tree nodes and reset the current selection.
308
- */
309
- protected collapseAll(): void;
310
- /**
311
- * Expand all tree nodes and scroll to the selected node, if any.
312
- */
313
- protected expandAll(): void;
314
- /**
315
- * Emit an append request with the currently selected node as the parent.
316
- */
317
- protected doAppend(): void;
318
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectTreeDialogComponent, never>;
319
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectTreeDialogComponent, "ng-component", never, {}, { "done": "done"; "append": "append"; }, never, never, true, never>;
226
+ export declare class SelectTreeDialogComponent {
227
+ /** Emitted when the user confirms a selection. */
228
+ readonly done: import("@angular/core").OutputEmitterRef<SelectTreeDialogResult>;
229
+ /** Emitted when the user requests to append a new node. */
230
+ readonly append: import("@angular/core").OutputEmitterRef<SelectTreeDialogAppend>;
231
+ private readonly destroyRef;
232
+ private readonly dialogRef;
233
+ /** Dialog configuration, injected and exposed as a signal. */
234
+ protected readonly dialogData: import("@angular/core").WritableSignal<SelectTreeDialogData>;
235
+ private readonly tree;
236
+ private readonly _elRef;
237
+ /** Reference to the Material tree component. */
238
+ protected readonly matTree: import("@angular/core").Signal<MatTree<ItemNode, ItemNode>>;
239
+ /** Provides children of a tree node to the tree component. */
240
+ protected readonly childrenAccessor: (node: ItemNode) => ItemNode[];
241
+ /** Root nodes used as the tree data source. */
242
+ protected readonly treeNodes: import("@angular/core").WritableSignal<ItemNode[]>;
243
+ /** Currently selected tree node. */
244
+ protected readonly currentNode: import("@angular/core").WritableSignal<ItemNode>;
245
+ /** Current filter text. */
246
+ protected readonly filterText: import("@angular/core").WritableSignal<string>;
247
+ /** Root signal form bound to the filter text input. */
248
+ protected readonly filterForm: import("@angular/forms/signals").FieldTree<string, string | number, "writable">;
249
+ /** Nodes matching the current filter text. */
250
+ protected readonly filteredItems: import("@angular/core").WritableSignal<ItemNode[]>;
251
+ /** Index of the currently highlighted filtered node (-1 = none). */
252
+ protected readonly filterIndex: import("@angular/core").WritableSignal<number>;
253
+ /** The currently highlighted filtered node, or null. */
254
+ protected readonly filteredNode: import("@angular/core").Signal<ItemNode>;
255
+ protected readonly canAppend: import("@angular/core").WritableSignal<boolean>;
256
+ /** Flat node map rebuilt whenever treeNodes changes. */
257
+ private readonly _nodeMap;
258
+ protected hasChild: (_: number, node: ItemNode) => boolean;
259
+ constructor();
260
+ /**
261
+ * Confirm the current selection and close the dialog.
262
+ */
263
+ protected ok(): void;
264
+ /**
265
+ * Toggle selection of a tree node. Clicking the already-selected node deselects it.
266
+ * @param e - The mouse event (propagation is stopped).
267
+ * @param node - The node that was clicked.
268
+ */
269
+ protected select(e: MouseEvent, node: ItemNode): void;
270
+ /**
271
+ * Clear the active filter text.
272
+ */
273
+ protected clearFilter(): void;
274
+ /**
275
+ * Filter the tree nodes by name (minimum 3 characters).
276
+ */
277
+ protected doFilter(): void;
278
+ /**
279
+ * Advance to the next matching filtered node and scroll it into view.
280
+ */
281
+ protected nextFiltered(): void;
282
+ /**
283
+ * Returns true when the node is the currently highlighted filter match.
284
+ * @param node - tree node to check.
285
+ */
286
+ protected isFilteredNode(node: ItemNode): boolean;
287
+ /**
288
+ * Expands ancestors of the target node and scrolls it into view.
289
+ * @param index - index within `items` to scroll to.
290
+ * @param items - current filtered items array.
291
+ */
292
+ private _scrollToFiltered;
293
+ /**
294
+ * Expand a node and all of its parent nodes.
295
+ * @param node - The node to expand.
296
+ * @returns Always false.
297
+ */
298
+ expand(node: ItemNode): boolean;
299
+ /**
300
+ * Recursively find a node by id.
301
+ * @param nodes - Nodes to search.
302
+ * @param id - The id to find.
303
+ */
304
+ private findInTree;
305
+ /**
306
+ * Append a new node to the tree.
307
+ * @param node - The node to insert.
308
+ */
309
+ appendNode(node: ItemNode): void;
310
+ /**
311
+ * Collapse all tree nodes and reset the current selection.
312
+ */
313
+ protected collapseAll(): void;
314
+ /**
315
+ * Expand all tree nodes and scroll to the selected node, if any.
316
+ */
317
+ protected expandAll(): void;
318
+ /**
319
+ * Emit an append request with the currently selected node as the parent.
320
+ */
321
+ protected doAppend(): void;
322
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectTreeDialogComponent, never>;
323
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectTreeDialogComponent, "ng-component", never, {}, {
324
+ "done": "done";
325
+ "append": "append";
326
+ }, never, never, true, never>;
320
327
  }
321
-
322
328
  /**
323
329
  * Form model of the send-to dialog.
324
330
  *
@@ -327,69 +333,69 @@ declare class SelectTreeDialogComponent {
327
333
  * empty; `options` is not editable and is only added back by {@link toPayload}.
328
334
  */
329
335
  interface SendToForm {
330
- /** Semicolon-separated recipient list; `''` when the input is empty. */
331
- recipients: string;
332
- /** Subject of the message; `''` when the input is empty. */
333
- subject: string;
334
- /** Body of the message; `''` when the input is empty. */
335
- text: string;
336
+ /** Semicolon-separated recipient list; `''` when the input is empty. */
337
+ recipients: string;
338
+ /** Subject of the message; `''` when the input is empty. */
339
+ subject: string;
340
+ /** Body of the message; `''` when the input is empty. */
341
+ text: string;
336
342
  }
337
- interface SendToDialogData {
338
- count: number;
339
- canPopulate?: boolean;
340
- title?: string;
341
- text?: string;
342
- subject?: string;
343
- info?: string;
344
- appearance?: MatFormFieldAppearance;
345
- options?: any;
343
+ export interface SendToDialogData {
344
+ count: number;
345
+ canPopulate?: boolean;
346
+ title?: string;
347
+ text?: string;
348
+ subject?: string;
349
+ info?: string;
350
+ appearance?: MatFormFieldAppearance;
351
+ options?: any;
346
352
  }
347
- declare class SendToDialogComponent implements ISendToDialog {
348
- /** Error text of a field: the message declared in the schema, or the shared fallback. */
349
- protected readonly getErrorMessage: typeof SignalsUtils.getFieldErrorMessage;
350
- /** Emitted when the user confirms and sends the message. */
351
- readonly done: _angular_core.OutputEmitterRef<SendToDialogResult>;
352
- /** Emitted when the user requests to populate the recipient list. */
353
- readonly populate: _angular_core.OutputEmitterRef<SendToPopulateData>;
354
- /** Dialog configuration, injected and exposed as a signal. */
355
- protected readonly dialogData: _angular_core.WritableSignal<SendToDialogData>;
356
- /** Model backing the signal form. */
357
- private readonly model;
358
- /**
359
- * Builds the form model from the dialog data, which may pre-fill subject and body.
360
- * @returns A fresh form model.
361
- */
362
- private toForm;
363
- /**
364
- * Builds the dialog result from the current form model.
365
- *
366
- * Ad-hoc because the result also carries the caller's `options`, which the dialog
367
- * only passes through and are therefore not part of the form model.
368
- * @returns The message to emit through `done` or `populate`.
369
- */
370
- private toPayload;
371
- /**
372
- * Signal form for the send-to fields: recipients (a required, valid,
373
- * semicolon-separated email list), subject and text are all required.
374
- */
375
- protected readonly form: _angular_forms_signals.FieldTree<SendToForm, string | number, "writable">;
376
- /**
377
- * Confirm the form and emit the result.
378
- */
379
- protected ok(): void;
380
- /**
381
- * Request the host to populate the recipient list.
382
- * Only emits if `canPopulate` is enabled in the dialog data.
383
- */
384
- protected populateRecipients(): void;
385
- /**
386
- * Update the recipient list from an external caller.
387
- * @param recipients - The new recipients string (semicolon-separated).
388
- */
389
- updateRecipients(recipients: string): void;
390
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SendToDialogComponent, never>;
391
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SendToDialogComponent, "ng-component", never, {}, { "done": "done"; "populate": "populate"; }, never, never, true, never>;
392
- }
393
-
394
- export { ListDialogComponent, SelectDialogComponent, SelectTreeDialogComponent, SendToDialogComponent, TreeDataSource };
395
- export type { SelectTreeDialogAppend, SendToDialogData };
353
+ export declare class SendToDialogComponent implements ISendToDialog {
354
+ /** Error text of a field: the message declared in the schema, or the shared fallback. */
355
+ protected readonly getErrorMessage: typeof SignalsUtils.getFieldErrorMessage;
356
+ /** Emitted when the user confirms and sends the message. */
357
+ readonly done: import("@angular/core").OutputEmitterRef<SendToDialogResult>;
358
+ /** Emitted when the user requests to populate the recipient list. */
359
+ readonly populate: import("@angular/core").OutputEmitterRef<SendToPopulateData>;
360
+ /** Dialog configuration, injected and exposed as a signal. */
361
+ protected readonly dialogData: import("@angular/core").WritableSignal<SendToDialogData>;
362
+ /** Model backing the signal form. */
363
+ private readonly model;
364
+ /**
365
+ * Builds the form model from the dialog data, which may pre-fill subject and body.
366
+ * @returns A fresh form model.
367
+ */
368
+ private toForm;
369
+ /**
370
+ * Builds the dialog result from the current form model.
371
+ *
372
+ * Ad-hoc because the result also carries the caller's `options`, which the dialog
373
+ * only passes through and are therefore not part of the form model.
374
+ * @returns The message to emit through `done` or `populate`.
375
+ */
376
+ private toPayload;
377
+ /**
378
+ * Signal form for the send-to fields: recipients (a required, valid,
379
+ * semicolon-separated email list), subject and text are all required.
380
+ */
381
+ protected readonly form: import("@angular/forms/signals").FieldTree<SendToForm, string | number, "writable">;
382
+ /**
383
+ * Confirm the form and emit the result.
384
+ */
385
+ protected ok(): void;
386
+ /**
387
+ * Request the host to populate the recipient list.
388
+ * Only emits if `canPopulate` is enabled in the dialog data.
389
+ */
390
+ protected populateRecipients(): void;
391
+ /**
392
+ * Update the recipient list from an external caller.
393
+ * @param recipients - The new recipients string (semicolon-separated).
394
+ */
395
+ updateRecipients(recipients: string): void;
396
+ static ɵfac: i0.ɵɵFactoryDeclaration<SendToDialogComponent, never>;
397
+ static ɵcmp: i0.ɵɵComponentDeclaration<SendToDialogComponent, "ng-component", never, {}, {
398
+ "done": "done";
399
+ "populate": "populate";
400
+ }, never, never, true, never>;
401
+ }