@arsedizioni/ars-utils 22.5.38 → 22.5.39

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 (37) hide show
  1. package/README.md +185 -179
  2. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +15 -15
  3. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +44 -43
  4. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  5. package/fesm2022/arsedizioni-ars-utils-core.date.mjs +6 -6
  6. package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs +3 -3
  7. package/fesm2022/arsedizioni-ars-utils-core.mjs +48 -48
  8. package/fesm2022/arsedizioni-ars-utils-core.validators.mjs +42 -42
  9. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +15 -15
  10. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +9 -9
  11. package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs +118 -0
  12. package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs.map +1 -0
  13. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs +17 -448
  14. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs.map +1 -1
  15. package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs +368 -0
  16. package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs.map +1 -0
  17. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +18 -18
  18. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs +12 -12
  19. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +10 -10
  20. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs.map +1 -1
  21. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +12 -12
  22. package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +12 -12
  23. package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs +3 -3
  24. package/fesm2022/arsedizioni-ars-utils-ui.help.mjs +9 -9
  25. package/fesm2022/arsedizioni-ars-utils-ui.mjs +61 -61
  26. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs +3 -3
  27. package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs +6 -6
  28. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +6 -6
  29. package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs +3 -3
  30. package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs +9 -9
  31. package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs +9 -9
  32. package/package.json +9 -1
  33. package/types/arsedizioni-ars-utils-clipper.ui.d.ts +3 -2
  34. package/types/arsedizioni-ars-utils-ui.controls.d.ts +3 -180
  35. package/types/arsedizioni-ars-utils-ui.controls.date.d.ts +49 -0
  36. package/types/arsedizioni-ars-utils-ui.controls.tree.d.ts +136 -0
  37. package/types/arsedizioni-ars-utils-ui.navigation.d.ts +1 -1
@@ -0,0 +1,368 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, model, output, viewChild, inject, ElementRef, computed, signal, effect, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { form, FormField } from '@angular/forms/signals';
4
+ import { SafeHtmlPipe } from '@arsedizioni/ars-utils/core';
5
+ import * as i1 from '@angular/material/tree';
6
+ import { MatTree, MatTreeModule } from '@angular/material/tree';
7
+ import * as i2 from '@angular/material/checkbox';
8
+ import { MatCheckboxModule } from '@angular/material/checkbox';
9
+ import * as i3 from '@angular/material/icon';
10
+ import { MatIconModule } from '@angular/material/icon';
11
+ import * as i4 from '@angular/material/tabs';
12
+ import { MatTabsModule } from '@angular/material/tabs';
13
+ import * as i5 from '@angular/material/chips';
14
+ import { MatChipsModule } from '@angular/material/chips';
15
+ import * as i6 from '@angular/material/button';
16
+ import { MatButtonModule } from '@angular/material/button';
17
+ import * as i7 from '@angular/material/tooltip';
18
+ import { MatTooltipModule } from '@angular/material/tooltip';
19
+ import * as i10 from '@arsedizioni/ars-utils/ui';
20
+ import { FlexLayoutModule } from '@arsedizioni/ars-utils/ui';
21
+ import * as i8 from '@angular/material/form-field';
22
+ import { MatFormFieldModule } from '@angular/material/form-field';
23
+ import * as i9 from '@angular/material/input';
24
+ import { MatInputModule } from '@angular/material/input';
25
+
26
+ class TreePickerComponent {
27
+ /** Returns true when the node can be selected: depth < maxDepth or explicitly listed in maxDepthOverrides. */
28
+ isSelectable(node) {
29
+ return this._isSelectableNode(node);
30
+ }
31
+ _isSelectableNode(node) {
32
+ const depth = this._maps().depthMap.get(node.id) ?? 0;
33
+ return depth < this.maxDepth() || this._overrideSubtreeSet().has(node.id);
34
+ }
35
+ constructor() {
36
+ /** Nested tree data to display. */
37
+ this.tree = input([], /* @ts-ignore */
38
+ ...(ngDevMode ? [{ debugName: "tree" }] : /* istanbul ignore next */ []));
39
+ /** Currently selected node ids. Supports two-way binding via [(selection)]. */
40
+ this.selection = model([], /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "selection" }] : /* istanbul ignore next */ []));
42
+ /** When true, checkboxes and chip remove buttons are disabled (mirrors Material convention). */
43
+ this.disabled = input(false, /* @ts-ignore */
44
+ ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
45
+ /** Description to display when no selection is made. */
46
+ this.descriptionEmpty = input('<span>Nessuna selezione: vengono inclusi <strong>tutti gli elementi</strong>.</span>', /* @ts-ignore */
47
+ ...(ngDevMode ? [{ debugName: "descriptionEmpty" }] : /* istanbul ignore next */ []));
48
+ /** Maximum number of tree levels to display (default: 3). */
49
+ this.maxDepth = input(3, /* @ts-ignore */
50
+ ...(ngDevMode ? [{ debugName: "maxDepth" }] : /* istanbul ignore next */ []));
51
+ /**
52
+ * List of node IDs at depth >= maxDepth that unlock selection for themselves
53
+ * and all their descendants, regardless of depth.
54
+ */
55
+ this.maxDepthOverrides = input([], /* @ts-ignore */
56
+ ...(ngDevMode ? [{ debugName: "maxDepthOverrides" }] : /* istanbul ignore next */ []));
57
+ /**
58
+ * Number of levels to auto-expand on load.
59
+ * 0 or undefined = only top level visible (no expansion);
60
+ * 1 = expand depth-0 nodes; 2 = expand depth-0 and depth-1 nodes; etc.
61
+ * Must be less than maxDepth.
62
+ */
63
+ this.minDepth = input(undefined, /* @ts-ignore */
64
+ ...(ngDevMode ? [{ debugName: "minDepth" }] : /* istanbul ignore next */ []));
65
+ /**
66
+ * Emits the count of visible selected nodes whenever the selection changes.
67
+ * Emits 0 when nothing is selected (meaning all items are implicitly included).
68
+ */
69
+ this.selectionCount = output();
70
+ /** Emits void whenever the user changes the selection (toggle, remove, clear). */
71
+ this.changed = output();
72
+ this._treeRef = viewChild((MatTree), /* @ts-ignore */
73
+ ...(ngDevMode ? [{ debugName: "_treeRef" }] : /* istanbul ignore next */ []));
74
+ this._elRef = inject(ElementRef);
75
+ /**
76
+ * Set of all node IDs selectable via overrides: each listed root and all its descendants.
77
+ * Recomputed whenever the tree data or the override list changes.
78
+ */
79
+ this._overrideSubtreeSet = computed(() => {
80
+ const overrideIds = new Set(this.maxDepthOverrides());
81
+ const maps = this._maps();
82
+ const result = new Set();
83
+ for (const id of overrideIds) {
84
+ const root = maps.nodeMap.get(id);
85
+ if (!root)
86
+ continue;
87
+ const addSubtree = (n) => {
88
+ result.add(n.id);
89
+ for (const child of (n.children ?? []))
90
+ addSubtree(child);
91
+ };
92
+ addSubtree(root);
93
+ }
94
+ return result;
95
+ }, /* @ts-ignore */
96
+ ...(ngDevMode ? [{ debugName: "_overrideSubtreeSet" }] : /* istanbul ignore next */ []));
97
+ /** All three maps rebuilt lazily as a single computed whenever taxonomy changes. */
98
+ this._maps = computed(() => {
99
+ const parentMap = new Map();
100
+ const depthMap = new Map();
101
+ const nodeMap = new Map();
102
+ const build = (nodes, parent, depth = 0) => {
103
+ for (const node of nodes) {
104
+ depthMap.set(node.id, depth);
105
+ nodeMap.set(node.id, node);
106
+ if (parent)
107
+ parentMap.set(node.id, parent);
108
+ if (node.children?.length)
109
+ build(node.children, node, depth + 1);
110
+ }
111
+ };
112
+ build(this.tree());
113
+ return { parentMap, depthMap, nodeMap };
114
+ }, /* @ts-ignore */
115
+ ...(ngDevMode ? [{ debugName: "_maps" }] : /* istanbul ignore next */ []));
116
+ /** O(1) set of selected ids, rebuilt only when selection changes. */
117
+ this._selectedSet = computed(() => new Set(this.selection()), /* @ts-ignore */
118
+ ...(ngDevMode ? [{ debugName: "_selectedSet" }] : /* istanbul ignore next */ []));
119
+ /** True when at least one node is explicitly selected. */
120
+ this.hasSelection = computed(() => this.selection().length > 0, /* @ts-ignore */
121
+ ...(ngDevMode ? [{ debugName: "hasSelection" }] : /* istanbul ignore next */ []));
122
+ /** Count of selected nodes within selectable levels (depth < maxDepth or in overrides), shown in the tab label. */
123
+ this.selectedVisibleCount = computed(() => this.selection().filter(id => {
124
+ const node = this._maps().nodeMap.get(id);
125
+ return node ? this._isSelectableNode(node) : false;
126
+ }).length, /* @ts-ignore */
127
+ ...(ngDevMode ? [{ debugName: "selectedVisibleCount" }] : /* istanbul ignore next */ []));
128
+ this.treeChildrenAccessor = (node) => {
129
+ return (node.children ?? []);
130
+ };
131
+ this.hasChild = (_, node) => !!(node.children?.length);
132
+ /** Current filter text. */
133
+ this.filterText = signal('', /* @ts-ignore */
134
+ ...(ngDevMode ? [{ debugName: "filterText" }] : /* istanbul ignore next */ []));
135
+ /** Root signal form bound to the filter text input. */
136
+ this.filterForm = form(this.filterText);
137
+ /** Nodes matching the current filter text, in nodeMap iteration order. */
138
+ this.filteredItems = signal([], /* @ts-ignore */
139
+ ...(ngDevMode ? [{ debugName: "filteredItems" }] : /* istanbul ignore next */ []));
140
+ /** Index of the currently highlighted filtered node (-1 = none). */
141
+ this.filterIndex = signal(-1, /* @ts-ignore */
142
+ ...(ngDevMode ? [{ debugName: "filterIndex" }] : /* istanbul ignore next */ []));
143
+ /** The currently highlighted filtered node, or null. */
144
+ this.filteredNode = computed(() => {
145
+ const idx = this.filterIndex();
146
+ return idx >= 0 ? (this.filteredItems()[idx] ?? null) : null;
147
+ }, /* @ts-ignore */
148
+ ...(ngDevMode ? [{ debugName: "filteredNode" }] : /* istanbul ignore next */ []));
149
+ // Expand nodes up to minDepth whenever new taxonomy data arrives
150
+ effect(() => {
151
+ const maps = this._maps();
152
+ const expandLevels = this.minDepth() ?? 0;
153
+ setTimeout(() => {
154
+ const tree = this._treeRef();
155
+ if (!tree)
156
+ return;
157
+ tree.collapseAll();
158
+ if (expandLevels <= 0)
159
+ return;
160
+ maps.depthMap.forEach((depth, id) => {
161
+ if (depth < expandLevels) {
162
+ const node = maps.nodeMap.get(id);
163
+ if (node)
164
+ tree.expand(node);
165
+ }
166
+ });
167
+ });
168
+ });
169
+ // Emit visible selection count on every selection change
170
+ effect(() => {
171
+ this.selectionCount.emit(this.selectedVisibleCount());
172
+ });
173
+ }
174
+ /** Expands all visible nodes in the tree. */
175
+ expandAll() {
176
+ this._treeRef()?.expandAll();
177
+ }
178
+ /** Collapses all nodes in the tree. */
179
+ collapseAll() {
180
+ this._treeRef()?.collapseAll();
181
+ }
182
+ /** Clears the entire selection. */
183
+ clearAll() {
184
+ this.selection.set([]);
185
+ this.changed.emit();
186
+ }
187
+ /** Searches nodes by text and moves to the first match. */
188
+ doFilter() {
189
+ const text = this.filterText().trim().toLowerCase();
190
+ if (text.length < 3) {
191
+ this.filteredItems.set([]);
192
+ this.filterIndex.set(-1);
193
+ return;
194
+ }
195
+ const matches = Array.from(this._maps().nodeMap.values())
196
+ .filter(n => n.name?.toLowerCase().includes(text));
197
+ this.filteredItems.set(matches);
198
+ const idx = matches.length > 0 ? 0 : -1;
199
+ this.filterIndex.set(idx);
200
+ if (idx >= 0)
201
+ this._scrollToFiltered(idx, matches);
202
+ }
203
+ /** Clears the filter and restores the original tree state. */
204
+ clearFilter() {
205
+ this.filterText.set('');
206
+ this.filteredItems.set([]);
207
+ this.filterIndex.set(-1);
208
+ }
209
+ /** Moves to the next matching node, cycling back to the first. */
210
+ nextFiltered() {
211
+ const items = this.filteredItems();
212
+ if (!items.length)
213
+ return;
214
+ const next = (this.filterIndex() + 1) % items.length;
215
+ this.filterIndex.set(next);
216
+ this._scrollToFiltered(next, items);
217
+ }
218
+ /** Returns true when the node is the currently highlighted filter match. */
219
+ isFilteredNode(node) {
220
+ return this.filteredNode()?.id === node.id;
221
+ }
222
+ /** Expands ancestors of the target node and scrolls it into view. */
223
+ _scrollToFiltered(index, items) {
224
+ const node = items[index];
225
+ if (!node)
226
+ return;
227
+ const tree = this._treeRef();
228
+ if (tree) {
229
+ let parent = this._maps().parentMap.get(node.id);
230
+ while (parent) {
231
+ tree.expand(parent);
232
+ parent = this._maps().parentMap.get(parent.id);
233
+ }
234
+ }
235
+ setTimeout(() => {
236
+ const el = this._elRef.nativeElement.querySelector(`[data-node-id="${node.id}"]`);
237
+ el?.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
238
+ });
239
+ }
240
+ /**
241
+ * Returns true when the node is in the active selection.
242
+ * @param node - tree node to check
243
+ * @returns true if selected
244
+ */
245
+ isSelected(node) {
246
+ return this._selectedSet().has(node.id);
247
+ }
248
+ /**
249
+ * Returns true when a subset (but not all) of the node's descendants are selected,
250
+ * producing the indeterminate checkbox state.
251
+ * @param node - tree node to evaluate
252
+ * @returns true if the node is in a partial-selection (indeterminate) state
253
+ */
254
+ isIndeterminate(node) {
255
+ if (!node.children?.length)
256
+ return false;
257
+ const descendants = this._getSelectableDescendants(node);
258
+ const set = this._selectedSet();
259
+ const count = descendants.filter(d => set.has(d.id)).length;
260
+ return count > 0 && count < descendants.length;
261
+ }
262
+ /**
263
+ * Toggles the node and all its descendants; then syncs the ancestor chain.
264
+ * @param node - the node that was clicked
265
+ */
266
+ toggleNode(node) {
267
+ this.selection.update(current => {
268
+ const set = new Set(current);
269
+ if (set.has(node.id)) {
270
+ set.delete(node.id);
271
+ }
272
+ else {
273
+ set.add(node.id);
274
+ }
275
+ this._syncParentsInSet(node, set);
276
+ return Array.from(set);
277
+ });
278
+ this.changed.emit();
279
+ }
280
+ /**
281
+ * Deselects the node and all its descendants. Called by the chip remove button.
282
+ * @param node - the node to remove from the selection
283
+ */
284
+ removeNode(node) {
285
+ this.selection.update(current => {
286
+ const set = new Set(current);
287
+ set.delete(node.id);
288
+ this._syncParentsInSet(node, set);
289
+ return Array.from(set);
290
+ });
291
+ this.changed.emit();
292
+ }
293
+ /**
294
+ * Returns the INode for the given id, or undefined if not found.
295
+ * @param id - node id to look up
296
+ * @returns the matching INode
297
+ */
298
+ nodeById(id) {
299
+ return this._maps().nodeMap.get(id);
300
+ }
301
+ /**
302
+ * Returns true when the node at the given id is within the visible depth range
303
+ * and should appear in the chip list.
304
+ * @param id - node id to check
305
+ * @returns true if the node depth is less than maxDepth
306
+ */
307
+ isChipVisible(id) {
308
+ const node = this._maps().nodeMap.get(id);
309
+ return node ? this._isSelectableNode(node) : false;
310
+ }
311
+ /**
312
+ * Returns only the selectable descendants of node (depth < maxDepth or in overrides),
313
+ * used for indeterminate state and parent auto-selection logic.
314
+ * @param node - root of the subtree to traverse
315
+ * @returns flat array of selectable descendant INodes
316
+ */
317
+ _getSelectableDescendants(node) {
318
+ const result = [];
319
+ for (const child of (node.children ?? [])) {
320
+ const c = child;
321
+ if (this._isSelectableNode(c))
322
+ result.push(c);
323
+ result.push(...this._getSelectableDescendants(c));
324
+ }
325
+ return result;
326
+ }
327
+ /**
328
+ * Walks up the ancestor chain from node, selecting a parent only when all
329
+ * its descendants are in the set, deselecting it otherwise.
330
+ * @param node - starting node for the upward traversal
331
+ * @param set - mutable selection set updated in place
332
+ */
333
+ _syncParentsInSet(node, set) {
334
+ let parent = this._maps().parentMap.get(node.id);
335
+ while (parent) {
336
+ const descendants = this._getSelectableDescendants(parent);
337
+ if (descendants.length > 0 && descendants.every(d => set.has(d.id))) {
338
+ set.add(parent.id);
339
+ }
340
+ else {
341
+ set.delete(parent.id);
342
+ }
343
+ parent = this._maps().parentMap.get(parent.id);
344
+ }
345
+ }
346
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: TreePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
347
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: TreePickerComponent, isStandalone: true, selector: "tree-picker", inputs: { tree: { classPropertyName: "tree", publicName: "tree", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, descriptionEmpty: { classPropertyName: "descriptionEmpty", publicName: "descriptionEmpty", isSignal: true, isRequired: false, transformFunction: null }, maxDepth: { classPropertyName: "maxDepth", publicName: "maxDepth", isSignal: true, isRequired: false, transformFunction: null }, maxDepthOverrides: { classPropertyName: "maxDepthOverrides", publicName: "maxDepthOverrides", isSignal: true, isRequired: false, transformFunction: null }, minDepth: { classPropertyName: "minDepth", publicName: "minDepth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selection: "selectionChange", selectionCount: "selectionCount", changed: "changed" }, viewQueries: [{ propertyName: "_treeRef", first: true, predicate: (MatTree), descendants: true, isSignal: true }], ngImport: i0, template: "<mat-tab-group class=\"taxonomy-picker-tabs\" style=\"height:100%\">\n <mat-tab style=\"overflow-x: hidden !important; height: 100%\">\n <ng-template mat-tab-label>\n Seleziona\n <mat-icon\n style=\"font-size:16px;height:16px;width:16px;margin-left:4px;vertical-align:middle;color:var(--mat-sys-primary)\"\n [matTooltip]=\"'Nessuna selezione = tutti gli argomenti inclusi;\\r\\nOgni elemento selezionato include sempre tutti i suoi sottoelementi'\"\n matTooltipPosition=\"above\">\n info\n </mat-icon>\n </ng-template>\n <div fxLayout=\"column\" fxFill style=\"overflow: hidden; height: 100%;\">\n <div fxFlex>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" fxLayoutAlign=\"start center\" fxFill>\n <div fxFlex fxHide.xs>\n <mat-form-field style=\"width:200px; padding: 8px 0px\" appearance=\"outline\"\n subscriptSizing=\"dynamic\">\n <mat-label>Cerca...</mat-label>\n <input type=\"text\" (keyup)=\"doFilter()\" matInput [formField]=\"filterForm\"\n (keydown.enter)=\"$event.preventDefault(); $event.stopPropagation(); nextFiltered()\"\n (keydown.arrowDown)=\"$event.preventDefault(); $event.stopPropagation(); nextFiltered()\">\n @if (filterText()) {\n <button type=\"button\" type=\"button\" tabindex=\"-1\" matSuffix mat-icon-button\n aria-label=\"Clear\" (click)=\"clearFilter()\">\n <mat-icon>close</mat-icon>\n </button>\n }\n </mat-form-field>\n </div>\n @if (filteredItems().length > 0) {\n <div fxFlex=\"50px\" fxHide.xs fxLayoutAlign=\"end center\">\n <div class=\"small\">{{filterIndex() + 1}} / {{filteredItems().length}}</div>\n </div>\n <div fxFlex=\"48px\" fxHide.xs fxLayoutAlign=\"end center\">\n <button mat-icon-button (click)=\"nextFiltered()\">\n <mat-icon aria-label=\"Vai al prossimo\"\n matTooltip=\"Vai al prossimo\">arrow_downward</mat-icon>\n </button>\n </div>\n }\n <div fxFlex=\"*\" fxLayoutAlign=\"end center\">\n <button mat-icon-button [matTooltip]=\"'Espandi tutto'\" (click)=\"expandAll()\">\n <mat-icon>unfold_more</mat-icon>\n </button>\n <button mat-icon-button [matTooltip]=\"'Comprimi tutto'\" (click)=\"collapseAll()\">\n <mat-icon>unfold_less</mat-icon>\n </button>\n <button mat-icon-button [matTooltip]=\"'Azzera selezione'\" [disabled]=\"!hasSelection()\"\n (click)=\"clearAll()\">\n <mat-icon>deselect</mat-icon>\n </button>\n </div>\n </div>\n </div>\n <div fxFlex=\"*\" style=\"overflow-y: auto;\">\n <mat-tree [dataSource]=\"tree()\" [childrenAccessor]=\"treeChildrenAccessor\" class=\"tree\">\n <!-- Leaf node -->\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding [matTreeNodePaddingIndent]=\"20\"\n class=\"tree-node\" [class.tree-node-filtered]=\"filteredNode()?.id === node.id\"\n [class.tree-node-no-select]=\"!isSelectable(node)\"\n [attr.data-node-id]=\"node.id\">\n <button mat-icon-button disabled style=\"visibility: hidden\"></button>\n @if (isSelectable(node)) {\n <mat-checkbox [checked]=\"isSelected(node)\" [disabled]=\"disabled()\" (change)=\"toggleNode(node)\">\n <span class=\"small\">{{node.name}}</span>\n </mat-checkbox>\n } @else {\n <div class=\"tree-node-label-only\">\n <span class=\"small\">{{node.name}}</span>\n </div>\n }\n </mat-tree-node>\n <!-- Expandable node with children -->\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding\n [matTreeNodePaddingIndent]=\"20\" #treeNode=\"matTreeNode\" class=\"tree-node\"\n [class.tree-node-filtered]=\"filteredNode()?.id === node.id\"\n [class.tree-node-no-select]=\"!isSelectable(node)\"\n [attr.data-node-id]=\"node.id\">\n <button mat-icon-button matTreeNodeToggle>\n <mat-icon>{{treeNode.isExpanded ? 'expand_more' : 'chevron_right'}}</mat-icon>\n </button>\n @if (isSelectable(node)) {\n <mat-checkbox [checked]=\"isSelected(node)\" [indeterminate]=\"isIndeterminate(node)\"\n [disabled]=\"disabled()\" (change)=\"toggleNode(node)\">\n <span class=\"small\">{{node.name}}</span>\n </mat-checkbox>\n } @else {\n <div class=\"tree-node-label-only\">\n <span class=\"small\">{{node.name}}</span>\n </div>\n }\n </mat-tree-node>\n </mat-tree>\n </div>\n </div>\n </mat-tab>\n <mat-tab [label]=\"hasSelection() ? 'Selezionati (' + selectedVisibleCount() + ')' : 'Selezionati (tutti)'\"\n style=\"height: 100%;\">\n <div fxLayout=\"column\" fxFill style=\"overflow: hidden; height: 100%;\">\n <div fxFlex>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"8px\" style=\"padding:12px\">\n @if (!hasSelection()) {\n <mat-icon>info</mat-icon>\n <span [innerHTML]=\"descriptionEmpty() | safeHtml\"></span>\n } @else {\n <div fxFlex=\"*\" fxLayoutAlign=\"end\">\n <button mat-button color=\"warn\" style=\"margin-left:auto\" (click)=\"clearAll()\">\n <mat-icon>deselect</mat-icon> Azzera tutto\n </button>\n </div>\n }\n </div>\n </div>\n <div fxFlex=\"*\" style=\"overflow-y: auto; padding-bottom: 12px;\">\n <mat-chip-set>\n @for (id of selection(); track id) {\n @let node = nodeById(id);\n @if (node && isChipVisible(id)) {\n <mat-chip (removed)=\"removeNode(node)\" style=\"max-width: 280px;\" [matTooltip]=\"node.name\">\n {{node.name}}\n @if (!disabled()) {\n <button matChipRemove matTooltip=\"Elimina\"><mat-icon>cancel</mat-icon></button>\n }\n </mat-chip>\n }\n }\n </mat-chip-set>\n </div>\n </div>\n </mat-tab>\n</mat-tab-group>", styles: [".tree-picker-tabs ::ng-deep .mat-mdc-tab-body-wrapper{flex:1 1 auto;height:100%}.tree{padding:8px 0 16px;background-color:transparent!important}.tree-node{min-height:36px!important;padding-right:12px;margin-right:0}.tree-node .small-icon-button{width:2rem!important;height:2rem!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}.tree-node .small-icon-button .mat-mdc-button-touch-target{width:2rem!important;height:2rem!important}.tree-node:not(.tree-node-no-select):hover{cursor:pointer;background-color:var(--mat-menu-item-hover-state-layer-color, transparent);border-radius:24px}.tree-node-filtered ::ng-deep .mdc-label,.tree-node-filtered ::ng-deep .mat-mdc-checkbox label{font-weight:700;color:var(--ars-color-accent, #7894ae)!important}.tree-node-filtered .tree-node-label-only{font-weight:700;color:var(--ars-color-accent, #7894ae);opacity:1}.tree-node-activated ::ng-deep .mdc-label,.tree-node-activated ::ng-deep .mat-mdc-checkbox label{font-weight:700;color:var(--ars-color-secondary, #4a635f)!important}.tree-node-label-only{display:flex;flex-direction:column;justify-content:center;padding-left:30px;opacity:.7}\n"], dependencies: [{ kind: "ngmodule", type: MatTreeModule }, { kind: "directive", type: i1.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { kind: "directive", type: i1.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { kind: "directive", type: i1.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { kind: "component", type: i1.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { kind: "directive", type: i1.MatTreeNode, selector: "mat-tree-node", inputs: ["tabIndex", "disabled"], outputs: ["activation", "expandedChange"], exportAs: ["matTreeNode"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i2.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "directive", type: i4.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i4.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i4.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "ngmodule", type: MatChipsModule }, { kind: "component", type: i5.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["role", "id", "aria-label", "aria-description", "value", "color", "removable", "highlighted", "disableRipple", "disabled"], outputs: ["removed", "destroyed"], exportAs: ["matChip"] }, { kind: "directive", type: i5.MatChipRemove, selector: "[matChipRemove]" }, { kind: "component", type: i5.MatChipSet, selector: "mat-chip-set", inputs: ["disabled", "role", "tabIndex"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i6.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i8.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i8.MatLabel, selector: "mat-label" }, { kind: "directive", type: i8.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i9.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: FormField, selector: "[formField]", inputs: ["formField"], exportAs: ["formField"] }, { kind: "ngmodule", type: FlexLayoutModule }, { kind: "directive", type: i10.FxLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg] ", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i10.FxFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg] ", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i10.FxShowHideDirective, selector: " [fxShow], [fxHide], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg] ", inputs: ["fxShow", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "directive", type: i10.FxLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg] ", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i10.FxLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg] ", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i10.FxFlexFillDirective, selector: " [fxFlexFill], [fxFill], [fxFlexFill.xs], [fxFlexFill.sm], [fxFlexFill.md], [fxFlexFill.lg], [fxFlexFill.xl], [fxFlexFill.lt-sm], [fxFlexFill.lt-md], [fxFlexFill.lt-lg], [fxFlexFill.lt-xl], [fxFlexFill.gt-xs], [fxFlexFill.gt-sm], [fxFlexFill.gt-md], [fxFlexFill.gt-lg] ", inputs: ["fxFlexFill", "fxFill", "fxFlexFill.xs", "fxFlexFill.sm", "fxFlexFill.md", "fxFlexFill.lg", "fxFlexFill.xl", "fxFlexFill.lt-sm", "fxFlexFill.lt-md", "fxFlexFill.lt-lg", "fxFlexFill.lt-xl", "fxFlexFill.gt-xs", "fxFlexFill.gt-sm", "fxFlexFill.gt-md", "fxFlexFill.gt-lg"] }, { kind: "pipe", type: SafeHtmlPipe, name: "safeHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
348
+ }
349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: TreePickerComponent, decorators: [{
350
+ type: Component,
351
+ args: [{ selector: 'tree-picker', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatTreeModule, MatCheckboxModule, MatIconModule, MatTabsModule, MatChipsModule,
352
+ MatButtonModule, MatTooltipModule, MatFormFieldModule, MatInputModule, FormField, FlexLayoutModule, SafeHtmlPipe], template: "<mat-tab-group class=\"taxonomy-picker-tabs\" style=\"height:100%\">\n <mat-tab style=\"overflow-x: hidden !important; height: 100%\">\n <ng-template mat-tab-label>\n Seleziona\n <mat-icon\n style=\"font-size:16px;height:16px;width:16px;margin-left:4px;vertical-align:middle;color:var(--mat-sys-primary)\"\n [matTooltip]=\"'Nessuna selezione = tutti gli argomenti inclusi;\\r\\nOgni elemento selezionato include sempre tutti i suoi sottoelementi'\"\n matTooltipPosition=\"above\">\n info\n </mat-icon>\n </ng-template>\n <div fxLayout=\"column\" fxFill style=\"overflow: hidden; height: 100%;\">\n <div fxFlex>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" fxLayoutAlign=\"start center\" fxFill>\n <div fxFlex fxHide.xs>\n <mat-form-field style=\"width:200px; padding: 8px 0px\" appearance=\"outline\"\n subscriptSizing=\"dynamic\">\n <mat-label>Cerca...</mat-label>\n <input type=\"text\" (keyup)=\"doFilter()\" matInput [formField]=\"filterForm\"\n (keydown.enter)=\"$event.preventDefault(); $event.stopPropagation(); nextFiltered()\"\n (keydown.arrowDown)=\"$event.preventDefault(); $event.stopPropagation(); nextFiltered()\">\n @if (filterText()) {\n <button type=\"button\" type=\"button\" tabindex=\"-1\" matSuffix mat-icon-button\n aria-label=\"Clear\" (click)=\"clearFilter()\">\n <mat-icon>close</mat-icon>\n </button>\n }\n </mat-form-field>\n </div>\n @if (filteredItems().length > 0) {\n <div fxFlex=\"50px\" fxHide.xs fxLayoutAlign=\"end center\">\n <div class=\"small\">{{filterIndex() + 1}} / {{filteredItems().length}}</div>\n </div>\n <div fxFlex=\"48px\" fxHide.xs fxLayoutAlign=\"end center\">\n <button mat-icon-button (click)=\"nextFiltered()\">\n <mat-icon aria-label=\"Vai al prossimo\"\n matTooltip=\"Vai al prossimo\">arrow_downward</mat-icon>\n </button>\n </div>\n }\n <div fxFlex=\"*\" fxLayoutAlign=\"end center\">\n <button mat-icon-button [matTooltip]=\"'Espandi tutto'\" (click)=\"expandAll()\">\n <mat-icon>unfold_more</mat-icon>\n </button>\n <button mat-icon-button [matTooltip]=\"'Comprimi tutto'\" (click)=\"collapseAll()\">\n <mat-icon>unfold_less</mat-icon>\n </button>\n <button mat-icon-button [matTooltip]=\"'Azzera selezione'\" [disabled]=\"!hasSelection()\"\n (click)=\"clearAll()\">\n <mat-icon>deselect</mat-icon>\n </button>\n </div>\n </div>\n </div>\n <div fxFlex=\"*\" style=\"overflow-y: auto;\">\n <mat-tree [dataSource]=\"tree()\" [childrenAccessor]=\"treeChildrenAccessor\" class=\"tree\">\n <!-- Leaf node -->\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding [matTreeNodePaddingIndent]=\"20\"\n class=\"tree-node\" [class.tree-node-filtered]=\"filteredNode()?.id === node.id\"\n [class.tree-node-no-select]=\"!isSelectable(node)\"\n [attr.data-node-id]=\"node.id\">\n <button mat-icon-button disabled style=\"visibility: hidden\"></button>\n @if (isSelectable(node)) {\n <mat-checkbox [checked]=\"isSelected(node)\" [disabled]=\"disabled()\" (change)=\"toggleNode(node)\">\n <span class=\"small\">{{node.name}}</span>\n </mat-checkbox>\n } @else {\n <div class=\"tree-node-label-only\">\n <span class=\"small\">{{node.name}}</span>\n </div>\n }\n </mat-tree-node>\n <!-- Expandable node with children -->\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding\n [matTreeNodePaddingIndent]=\"20\" #treeNode=\"matTreeNode\" class=\"tree-node\"\n [class.tree-node-filtered]=\"filteredNode()?.id === node.id\"\n [class.tree-node-no-select]=\"!isSelectable(node)\"\n [attr.data-node-id]=\"node.id\">\n <button mat-icon-button matTreeNodeToggle>\n <mat-icon>{{treeNode.isExpanded ? 'expand_more' : 'chevron_right'}}</mat-icon>\n </button>\n @if (isSelectable(node)) {\n <mat-checkbox [checked]=\"isSelected(node)\" [indeterminate]=\"isIndeterminate(node)\"\n [disabled]=\"disabled()\" (change)=\"toggleNode(node)\">\n <span class=\"small\">{{node.name}}</span>\n </mat-checkbox>\n } @else {\n <div class=\"tree-node-label-only\">\n <span class=\"small\">{{node.name}}</span>\n </div>\n }\n </mat-tree-node>\n </mat-tree>\n </div>\n </div>\n </mat-tab>\n <mat-tab [label]=\"hasSelection() ? 'Selezionati (' + selectedVisibleCount() + ')' : 'Selezionati (tutti)'\"\n style=\"height: 100%;\">\n <div fxLayout=\"column\" fxFill style=\"overflow: hidden; height: 100%;\">\n <div fxFlex>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"8px\" style=\"padding:12px\">\n @if (!hasSelection()) {\n <mat-icon>info</mat-icon>\n <span [innerHTML]=\"descriptionEmpty() | safeHtml\"></span>\n } @else {\n <div fxFlex=\"*\" fxLayoutAlign=\"end\">\n <button mat-button color=\"warn\" style=\"margin-left:auto\" (click)=\"clearAll()\">\n <mat-icon>deselect</mat-icon> Azzera tutto\n </button>\n </div>\n }\n </div>\n </div>\n <div fxFlex=\"*\" style=\"overflow-y: auto; padding-bottom: 12px;\">\n <mat-chip-set>\n @for (id of selection(); track id) {\n @let node = nodeById(id);\n @if (node && isChipVisible(id)) {\n <mat-chip (removed)=\"removeNode(node)\" style=\"max-width: 280px;\" [matTooltip]=\"node.name\">\n {{node.name}}\n @if (!disabled()) {\n <button matChipRemove matTooltip=\"Elimina\"><mat-icon>cancel</mat-icon></button>\n }\n </mat-chip>\n }\n }\n </mat-chip-set>\n </div>\n </div>\n </mat-tab>\n</mat-tab-group>", styles: [".tree-picker-tabs ::ng-deep .mat-mdc-tab-body-wrapper{flex:1 1 auto;height:100%}.tree{padding:8px 0 16px;background-color:transparent!important}.tree-node{min-height:36px!important;padding-right:12px;margin-right:0}.tree-node .small-icon-button{width:2rem!important;height:2rem!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}.tree-node .small-icon-button .mat-mdc-button-touch-target{width:2rem!important;height:2rem!important}.tree-node:not(.tree-node-no-select):hover{cursor:pointer;background-color:var(--mat-menu-item-hover-state-layer-color, transparent);border-radius:24px}.tree-node-filtered ::ng-deep .mdc-label,.tree-node-filtered ::ng-deep .mat-mdc-checkbox label{font-weight:700;color:var(--ars-color-accent, #7894ae)!important}.tree-node-filtered .tree-node-label-only{font-weight:700;color:var(--ars-color-accent, #7894ae);opacity:1}.tree-node-activated ::ng-deep .mdc-label,.tree-node-activated ::ng-deep .mat-mdc-checkbox label{font-weight:700;color:var(--ars-color-secondary, #4a635f)!important}.tree-node-label-only{display:flex;flex-direction:column;justify-content:center;padding-left:30px;opacity:.7}\n"] }]
353
+ }], ctorParameters: () => [], propDecorators: { tree: [{ type: i0.Input, args: [{ isSignal: true, alias: "tree", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }, { type: i0.Output, args: ["selectionChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], descriptionEmpty: [{ type: i0.Input, args: [{ isSignal: true, alias: "descriptionEmpty", required: false }] }], maxDepth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDepth", required: false }] }], maxDepthOverrides: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDepthOverrides", required: false }] }], minDepth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDepth", required: false }] }], selectionCount: [{ type: i0.Output, args: ["selectionCount"] }], changed: [{ type: i0.Output, args: ["changed"] }], _treeRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatTree), { isSignal: true }] }] } });
354
+
355
+ /*
356
+ * Public API Surface of @arsedizioni/ars-utils/ui.controls.tree
357
+ *
358
+ * `TreePickerComponent` alone. It is the only consumer of `mat-tree`, `mat-tabs`, `mat-input` and
359
+ * `mat-checkbox` in the library: leaving it next to the small controls of `ui.controls` would tie
360
+ * the placement of that whole Material subtree to whichever chunk first reaches a button.
361
+ */
362
+
363
+ /**
364
+ * Generated bundle index. Do not edit.
365
+ */
366
+
367
+ export { TreePickerComponent };
368
+ //# sourceMappingURL=arsedizioni-ars-utils-ui.controls.tree.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arsedizioni-ars-utils-ui.controls.tree.mjs","sources":["../../../projects/ars-utils/ui.controls.tree/tree-picker/tree-picker.component.ts","../../../projects/ars-utils/ui.controls.tree/tree-picker/tree-picker.component.html","../../../projects/ars-utils/ui.controls.tree/public_api.ts","../../../projects/ars-utils/ui.controls.tree/arsedizioni-ars-utils-ui.controls.tree.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, effect, ElementRef, inject, input, model, output, signal, viewChild } from '@angular/core';\nimport { FormField, form } from '@angular/forms/signals';\nimport { INode, SafeHtmlPipe } from '@arsedizioni/ars-utils/core';\nimport { MatTree, MatTreeModule } from '@angular/material/tree';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTabsModule } from '@angular/material/tabs';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { FlexLayoutModule } from '@arsedizioni/ars-utils/ui';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\n\ninterface TaxonomyMaps {\n parentMap: Map<string, INode>;\n depthMap: Map<string, number>;\n nodeMap: Map<string, INode>;\n}\n\n@Component({\n selector: 'tree-picker',\n templateUrl: './tree-picker.component.html',\n styleUrls: ['./tree-picker.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [MatTreeModule, MatCheckboxModule, MatIconModule, MatTabsModule, MatChipsModule,\n MatButtonModule, MatTooltipModule, MatFormFieldModule, MatInputModule, FormField, FlexLayoutModule, SafeHtmlPipe]\n})\nexport class TreePickerComponent {\n /** Nested tree data to display. */\n readonly tree = input<INode[]>([]);\n\n /** Currently selected node ids. Supports two-way binding via [(selection)]. */\n readonly selection = model<string[]>([]);\n\n /** When true, checkboxes and chip remove buttons are disabled (mirrors Material convention). */\n readonly disabled = input<boolean>(false);\n\n /** Description to display when no selection is made. */\n readonly descriptionEmpty = input<string>('<span>Nessuna selezione: vengono inclusi <strong>tutti gli elementi</strong>.</span>');\n\n /** Maximum number of tree levels to display (default: 3). */\n readonly maxDepth = input<number>(3);\n\n /**\n * List of node IDs at depth >= maxDepth that unlock selection for themselves\n * and all their descendants, regardless of depth.\n */\n readonly maxDepthOverrides = input<string[]>([]);\n\n /**\n * Number of levels to auto-expand on load.\n * 0 or undefined = only top level visible (no expansion);\n * 1 = expand depth-0 nodes; 2 = expand depth-0 and depth-1 nodes; etc.\n * Must be less than maxDepth.\n */\n readonly minDepth = input<number | undefined>(undefined);\n\n /**\n * Emits the count of visible selected nodes whenever the selection changes.\n * Emits 0 when nothing is selected (meaning all items are implicitly included).\n */\n readonly selectionCount = output<number>();\n\n /** Emits void whenever the user changes the selection (toggle, remove, clear). */\n readonly changed = output<void>();\n\n private readonly _treeRef = viewChild(MatTree<INode>);\n private readonly _elRef = inject(ElementRef);\n\n /**\n * Set of all node IDs selectable via overrides: each listed root and all its descendants.\n * Recomputed whenever the tree data or the override list changes.\n */\n private readonly _overrideSubtreeSet = computed(() => {\n const overrideIds = new Set(this.maxDepthOverrides());\n const maps = this._maps();\n const result = new Set<string>();\n for (const id of overrideIds) {\n const root = maps.nodeMap.get(id);\n if (!root) continue;\n const addSubtree = (n: INode): void => {\n result.add(n.id);\n for (const child of (n.children ?? [])) addSubtree(child as INode);\n };\n addSubtree(root);\n }\n return result;\n });\n\n /** All three maps rebuilt lazily as a single computed whenever taxonomy changes. */\n private readonly _maps = computed<TaxonomyMaps>(() => {\n const parentMap = new Map<string, INode>();\n const depthMap = new Map<string, number>();\n const nodeMap = new Map<string, INode>();\n const build = (nodes: INode[], parent?: INode, depth = 0): void => {\n for (const node of nodes) {\n depthMap.set(node.id, depth);\n nodeMap.set(node.id, node);\n if (parent) parentMap.set(node.id, parent);\n if (node.children?.length) build(node.children as INode[], node, depth + 1);\n }\n };\n build(this.tree());\n return { parentMap, depthMap, nodeMap };\n });\n\n /** O(1) set of selected ids, rebuilt only when selection changes. */\n private readonly _selectedSet = computed(() => new Set(this.selection()));\n\n /** True when at least one node is explicitly selected. */\n protected readonly hasSelection = computed(() => this.selection().length > 0);\n\n /** Count of selected nodes within selectable levels (depth < maxDepth or in overrides), shown in the tab label. */\n protected readonly selectedVisibleCount = computed(() =>\n this.selection().filter(id => {\n const node = this._maps().nodeMap.get(id);\n return node ? this._isSelectableNode(node) : false;\n }).length\n );\n\n readonly treeChildrenAccessor = (node: INode): INode[] => {\n return (node.children ?? []) as INode[];\n };\n\n readonly hasChild = (_: number, node: INode): boolean =>\n !!(node.children?.length);\n\n /** Returns true when the node can be selected: depth < maxDepth or explicitly listed in maxDepthOverrides. */\n protected isSelectable(node: INode): boolean {\n return this._isSelectableNode(node);\n }\n\n private _isSelectableNode(node: INode): boolean {\n const depth = this._maps().depthMap.get(node.id) ?? 0;\n return depth < this.maxDepth() || this._overrideSubtreeSet().has(node.id);\n }\n\n\n /** Current filter text. */\n protected readonly filterText = signal<string>('');\n /** Root signal form bound to the filter text input. */\n protected readonly filterForm = form(this.filterText);\n /** Nodes matching the current filter text, in nodeMap iteration order. */\n protected readonly filteredItems = signal<INode[]>([]);\n /** Index of the currently highlighted filtered node (-1 = none). */\n protected readonly filterIndex = signal(-1);\n /** The currently highlighted filtered node, or null. */\n protected readonly filteredNode = computed<INode | null>(() => {\n const idx = this.filterIndex();\n return idx >= 0 ? (this.filteredItems()[idx] ?? null) : null;\n });\n\n constructor() {\n // Expand nodes up to minDepth whenever new taxonomy data arrives\n effect(() => {\n const maps = this._maps();\n const expandLevels = this.minDepth() ?? 0;\n setTimeout(() => {\n const tree = this._treeRef();\n if (!tree) return;\n tree.collapseAll();\n if (expandLevels <= 0) return;\n maps.depthMap.forEach((depth, id) => {\n if (depth < expandLevels) {\n const node = maps.nodeMap.get(id);\n if (node) tree.expand(node);\n }\n });\n });\n });\n // Emit visible selection count on every selection change\n effect(() => {\n this.selectionCount.emit(this.selectedVisibleCount());\n });\n }\n\n /** Expands all visible nodes in the tree. */\n protected expandAll(): void {\n this._treeRef()?.expandAll();\n }\n\n /** Collapses all nodes in the tree. */\n protected collapseAll(): void {\n this._treeRef()?.collapseAll();\n }\n\n /** Clears the entire selection. */\n protected clearAll(): void {\n this.selection.set([]);\n this.changed.emit();\n }\n\n /** Searches nodes by text and moves to the first match. */\n protected doFilter(): void {\n const text = this.filterText().trim().toLowerCase();\n if (text.length < 3) {\n this.filteredItems.set([]);\n this.filterIndex.set(-1);\n return;\n }\n const matches = Array.from(this._maps().nodeMap.values())\n .filter(n => n.name?.toLowerCase().includes(text));\n this.filteredItems.set(matches);\n const idx = matches.length > 0 ? 0 : -1;\n this.filterIndex.set(idx);\n if (idx >= 0) this._scrollToFiltered(idx, matches);\n }\n\n /** Clears the filter and restores the original tree state. */\n protected clearFilter(): void {\n this.filterText.set('');\n this.filteredItems.set([]);\n this.filterIndex.set(-1);\n }\n\n /** Moves to the next matching node, cycling back to the first. */\n protected nextFiltered(): void {\n const items = this.filteredItems();\n if (!items.length) return;\n const next = (this.filterIndex() + 1) % items.length;\n this.filterIndex.set(next);\n this._scrollToFiltered(next, items);\n }\n\n /** Returns true when the node is the currently highlighted filter match. */\n protected isFilteredNode(node: INode): boolean {\n return this.filteredNode()?.id === node.id;\n }\n\n /** Expands ancestors of the target node and scrolls it into view. */\n private _scrollToFiltered(index: number, items: INode[]): void {\n const node = items[index];\n if (!node) return;\n const tree = this._treeRef();\n if (tree) {\n let parent = this._maps().parentMap.get(node.id);\n while (parent) {\n tree.expand(parent);\n parent = this._maps().parentMap.get(parent.id);\n }\n }\n setTimeout(() => {\n const el: HTMLElement | null = this._elRef.nativeElement.querySelector(`[data-node-id=\"${node.id}\"]`);\n el?.scrollIntoView({ block: 'nearest', behavior: 'smooth' });\n });\n }\n\n /**\n * Returns true when the node is in the active selection.\n * @param node - tree node to check\n * @returns true if selected\n */\n protected isSelected(node: INode): boolean {\n return this._selectedSet().has(node.id);\n }\n\n /**\n * Returns true when a subset (but not all) of the node's descendants are selected,\n * producing the indeterminate checkbox state.\n * @param node - tree node to evaluate\n * @returns true if the node is in a partial-selection (indeterminate) state\n */\n protected isIndeterminate(node: INode): boolean {\n if (!node.children?.length) return false;\n const descendants = this._getSelectableDescendants(node);\n const set = this._selectedSet();\n const count = descendants.filter(d => set.has(d.id)).length;\n return count > 0 && count < descendants.length;\n }\n\n /**\n * Toggles the node and all its descendants; then syncs the ancestor chain.\n * @param node - the node that was clicked\n */\n protected toggleNode(node: INode): void {\n this.selection.update(current => {\n const set = new Set(current);\n if (set.has(node.id)) {\n set.delete(node.id);\n } else {\n set.add(node.id);\n }\n this._syncParentsInSet(node, set);\n return Array.from(set);\n });\n this.changed.emit();\n }\n\n /**\n * Deselects the node and all its descendants. Called by the chip remove button.\n * @param node - the node to remove from the selection\n */\n protected removeNode(node: INode): void {\n this.selection.update(current => {\n const set = new Set(current);\n set.delete(node.id);\n this._syncParentsInSet(node, set);\n return Array.from(set);\n });\n this.changed.emit();\n }\n\n /**\n * Returns the INode for the given id, or undefined if not found.\n * @param id - node id to look up\n * @returns the matching INode\n */\n protected nodeById(id: string): INode | undefined {\n return this._maps().nodeMap.get(id);\n }\n\n /**\n * Returns true when the node at the given id is within the visible depth range\n * and should appear in the chip list.\n * @param id - node id to check\n * @returns true if the node depth is less than maxDepth\n */\n protected isChipVisible(id: string): boolean {\n const node = this._maps().nodeMap.get(id);\n return node ? this._isSelectableNode(node) : false;\n }\n\n /**\n * Returns only the selectable descendants of node (depth < maxDepth or in overrides),\n * used for indeterminate state and parent auto-selection logic.\n * @param node - root of the subtree to traverse\n * @returns flat array of selectable descendant INodes\n */\n private _getSelectableDescendants(node: INode): INode[] {\n const result: INode[] = [];\n for (const child of (node.children ?? [])) {\n const c = child as INode;\n if (this._isSelectableNode(c)) result.push(c);\n result.push(...this._getSelectableDescendants(c));\n }\n return result;\n }\n\n /**\n * Walks up the ancestor chain from node, selecting a parent only when all\n * its descendants are in the set, deselecting it otherwise.\n * @param node - starting node for the upward traversal\n * @param set - mutable selection set updated in place\n */\n private _syncParentsInSet(node: INode, set: Set<string>): void {\n let parent = this._maps().parentMap.get(node.id);\n while (parent) {\n const descendants = this._getSelectableDescendants(parent);\n if (descendants.length > 0 && descendants.every(d => set.has(d.id))) {\n set.add(parent.id);\n } else {\n set.delete(parent.id);\n }\n parent = this._maps().parentMap.get(parent.id);\n }\n }\n \n}\n","<mat-tab-group class=\"taxonomy-picker-tabs\" style=\"height:100%\">\n <mat-tab style=\"overflow-x: hidden !important; height: 100%\">\n <ng-template mat-tab-label>\n Seleziona\n <mat-icon\n style=\"font-size:16px;height:16px;width:16px;margin-left:4px;vertical-align:middle;color:var(--mat-sys-primary)\"\n [matTooltip]=\"'Nessuna selezione = tutti gli argomenti inclusi;\\r\\nOgni elemento selezionato include sempre tutti i suoi sottoelementi'\"\n matTooltipPosition=\"above\">\n info\n </mat-icon>\n </ng-template>\n <div fxLayout=\"column\" fxFill style=\"overflow: hidden; height: 100%;\">\n <div fxFlex>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" fxLayoutAlign=\"start center\" fxFill>\n <div fxFlex fxHide.xs>\n <mat-form-field style=\"width:200px; padding: 8px 0px\" appearance=\"outline\"\n subscriptSizing=\"dynamic\">\n <mat-label>Cerca...</mat-label>\n <input type=\"text\" (keyup)=\"doFilter()\" matInput [formField]=\"filterForm\"\n (keydown.enter)=\"$event.preventDefault(); $event.stopPropagation(); nextFiltered()\"\n (keydown.arrowDown)=\"$event.preventDefault(); $event.stopPropagation(); nextFiltered()\">\n @if (filterText()) {\n <button type=\"button\" type=\"button\" tabindex=\"-1\" matSuffix mat-icon-button\n aria-label=\"Clear\" (click)=\"clearFilter()\">\n <mat-icon>close</mat-icon>\n </button>\n }\n </mat-form-field>\n </div>\n @if (filteredItems().length > 0) {\n <div fxFlex=\"50px\" fxHide.xs fxLayoutAlign=\"end center\">\n <div class=\"small\">{{filterIndex() + 1}} / {{filteredItems().length}}</div>\n </div>\n <div fxFlex=\"48px\" fxHide.xs fxLayoutAlign=\"end center\">\n <button mat-icon-button (click)=\"nextFiltered()\">\n <mat-icon aria-label=\"Vai al prossimo\"\n matTooltip=\"Vai al prossimo\">arrow_downward</mat-icon>\n </button>\n </div>\n }\n <div fxFlex=\"*\" fxLayoutAlign=\"end center\">\n <button mat-icon-button [matTooltip]=\"'Espandi tutto'\" (click)=\"expandAll()\">\n <mat-icon>unfold_more</mat-icon>\n </button>\n <button mat-icon-button [matTooltip]=\"'Comprimi tutto'\" (click)=\"collapseAll()\">\n <mat-icon>unfold_less</mat-icon>\n </button>\n <button mat-icon-button [matTooltip]=\"'Azzera selezione'\" [disabled]=\"!hasSelection()\"\n (click)=\"clearAll()\">\n <mat-icon>deselect</mat-icon>\n </button>\n </div>\n </div>\n </div>\n <div fxFlex=\"*\" style=\"overflow-y: auto;\">\n <mat-tree [dataSource]=\"tree()\" [childrenAccessor]=\"treeChildrenAccessor\" class=\"tree\">\n <!-- Leaf node -->\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding [matTreeNodePaddingIndent]=\"20\"\n class=\"tree-node\" [class.tree-node-filtered]=\"filteredNode()?.id === node.id\"\n [class.tree-node-no-select]=\"!isSelectable(node)\"\n [attr.data-node-id]=\"node.id\">\n <button mat-icon-button disabled style=\"visibility: hidden\"></button>\n @if (isSelectable(node)) {\n <mat-checkbox [checked]=\"isSelected(node)\" [disabled]=\"disabled()\" (change)=\"toggleNode(node)\">\n <span class=\"small\">{{node.name}}</span>\n </mat-checkbox>\n } @else {\n <div class=\"tree-node-label-only\">\n <span class=\"small\">{{node.name}}</span>\n </div>\n }\n </mat-tree-node>\n <!-- Expandable node with children -->\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding\n [matTreeNodePaddingIndent]=\"20\" #treeNode=\"matTreeNode\" class=\"tree-node\"\n [class.tree-node-filtered]=\"filteredNode()?.id === node.id\"\n [class.tree-node-no-select]=\"!isSelectable(node)\"\n [attr.data-node-id]=\"node.id\">\n <button mat-icon-button matTreeNodeToggle>\n <mat-icon>{{treeNode.isExpanded ? 'expand_more' : 'chevron_right'}}</mat-icon>\n </button>\n @if (isSelectable(node)) {\n <mat-checkbox [checked]=\"isSelected(node)\" [indeterminate]=\"isIndeterminate(node)\"\n [disabled]=\"disabled()\" (change)=\"toggleNode(node)\">\n <span class=\"small\">{{node.name}}</span>\n </mat-checkbox>\n } @else {\n <div class=\"tree-node-label-only\">\n <span class=\"small\">{{node.name}}</span>\n </div>\n }\n </mat-tree-node>\n </mat-tree>\n </div>\n </div>\n </mat-tab>\n <mat-tab [label]=\"hasSelection() ? 'Selezionati (' + selectedVisibleCount() + ')' : 'Selezionati (tutti)'\"\n style=\"height: 100%;\">\n <div fxLayout=\"column\" fxFill style=\"overflow: hidden; height: 100%;\">\n <div fxFlex>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"8px\" style=\"padding:12px\">\n @if (!hasSelection()) {\n <mat-icon>info</mat-icon>\n <span [innerHTML]=\"descriptionEmpty() | safeHtml\"></span>\n } @else {\n <div fxFlex=\"*\" fxLayoutAlign=\"end\">\n <button mat-button color=\"warn\" style=\"margin-left:auto\" (click)=\"clearAll()\">\n <mat-icon>deselect</mat-icon> Azzera tutto\n </button>\n </div>\n }\n </div>\n </div>\n <div fxFlex=\"*\" style=\"overflow-y: auto; padding-bottom: 12px;\">\n <mat-chip-set>\n @for (id of selection(); track id) {\n @let node = nodeById(id);\n @if (node && isChipVisible(id)) {\n <mat-chip (removed)=\"removeNode(node)\" style=\"max-width: 280px;\" [matTooltip]=\"node.name\">\n {{node.name}}\n @if (!disabled()) {\n <button matChipRemove matTooltip=\"Elimina\"><mat-icon>cancel</mat-icon></button>\n }\n </mat-chip>\n }\n }\n </mat-chip-set>\n </div>\n </div>\n </mat-tab>\n</mat-tab-group>","/*\n * Public API Surface of @arsedizioni/ars-utils/ui.controls.tree\n *\n * `TreePickerComponent` alone. It is the only consumer of `mat-tree`, `mat-tabs`, `mat-input` and\n * `mat-checkbox` in the library: leaving it next to the small controls of `ui.controls` would tie\n * the placement of that whole Material subtree to whichever chunk first reaches a button.\n */\nexport * from './tree-picker/tree-picker.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"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