@arsedizioni/ars-utils 22.6.92 → 22.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +15 -15
  2. package/fesm2022/arsedizioni-ars-utils-clipper.ui-document.component-B9qqPb0A.mjs +1573 -0
  3. package/fesm2022/arsedizioni-ars-utils-clipper.ui-document.component-B9qqPb0A.mjs.map +1 -0
  4. package/fesm2022/{arsedizioni-ars-utils-clipper.ui-document.component-BjMnaZGf.mjs → arsedizioni-ars-utils-clipper.ui-document.component-BKjGXtXa.mjs} +5 -5
  5. package/fesm2022/{arsedizioni-ars-utils-clipper.ui-document.component-BjMnaZGf.mjs.map → arsedizioni-ars-utils-clipper.ui-document.component-BKjGXtXa.mjs.map} +1 -1
  6. package/fesm2022/arsedizioni-ars-utils-clipper.ui-references.component-CBuJnNIf.mjs +806 -0
  7. package/fesm2022/arsedizioni-ars-utils-clipper.ui-references.component-CBuJnNIf.mjs.map +1 -0
  8. package/fesm2022/{arsedizioni-ars-utils-clipper.ui-references.component-C21l0EtN.mjs → arsedizioni-ars-utils-clipper.ui-references.component-CEA_wJTS.mjs} +4 -4
  9. package/fesm2022/{arsedizioni-ars-utils-clipper.ui-references.component-C21l0EtN.mjs.map → arsedizioni-ars-utils-clipper.ui-references.component-CEA_wJTS.mjs.map} +1 -1
  10. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +38 -38
  11. package/fesm2022/arsedizioni-ars-utils-core.date.mjs +6 -6
  12. package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs +3 -3
  13. package/fesm2022/arsedizioni-ars-utils-core.mjs +48 -48
  14. package/fesm2022/arsedizioni-ars-utils-core.validators.mjs +42 -42
  15. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +15 -15
  16. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +9 -9
  17. package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs +6 -6
  18. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs +9 -9
  19. package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs +3 -3
  20. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +18 -18
  21. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs +12 -12
  22. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +9 -9
  23. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +15 -15
  24. package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +12 -12
  25. package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs +3 -3
  26. package/fesm2022/arsedizioni-ars-utils-ui.help.mjs +9 -9
  27. package/fesm2022/arsedizioni-ars-utils-ui.mjs +61 -61
  28. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs +51 -7
  29. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs.map +1 -1
  30. package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs +6 -6
  31. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +6 -6
  32. package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs +3 -3
  33. package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs +9 -9
  34. package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs +9 -9
  35. package/package.json +1 -1
  36. package/types/arsedizioni-ars-utils-clipper.common.d.ts.map +1 -0
  37. package/types/arsedizioni-ars-utils-clipper.ui.d.ts.map +1 -0
  38. package/types/arsedizioni-ars-utils-core.d.ts.map +1 -0
  39. package/types/arsedizioni-ars-utils-core.date.d.ts.map +1 -0
  40. package/types/arsedizioni-ars-utils-core.markdown.d.ts.map +1 -0
  41. package/types/arsedizioni-ars-utils-core.validators.d.ts.map +1 -0
  42. package/types/arsedizioni-ars-utils-evolution.common.d.ts.map +1 -0
  43. package/types/arsedizioni-ars-utils-support.common.d.ts.map +1 -0
  44. package/types/arsedizioni-ars-utils-ui.controls.d.ts.map +1 -0
  45. package/types/arsedizioni-ars-utils-ui.controls.date.d.ts.map +1 -0
  46. package/types/arsedizioni-ars-utils-ui.controls.tree.d.ts.map +1 -0
  47. package/types/arsedizioni-ars-utils-ui.d.ts.map +1 -0
  48. package/types/arsedizioni-ars-utils-ui.dialogs.auth.d.ts.map +1 -0
  49. package/types/arsedizioni-ars-utils-ui.dialogs.d.ts.map +1 -0
  50. package/types/arsedizioni-ars-utils-ui.dialogs.prompt.d.ts.map +1 -0
  51. package/types/arsedizioni-ars-utils-ui.dialogs.select.d.ts.map +1 -0
  52. package/types/arsedizioni-ars-utils-ui.files.d.ts.map +1 -0
  53. package/types/arsedizioni-ars-utils-ui.filters.d.ts.map +1 -0
  54. package/types/arsedizioni-ars-utils-ui.help.d.ts.map +1 -0
  55. package/types/arsedizioni-ars-utils-ui.navigation.d.ts +26 -1
  56. package/types/arsedizioni-ars-utils-ui.navigation.d.ts.map +1 -0
  57. package/types/arsedizioni-ars-utils-ui.notifications.d.ts.map +1 -0
  58. package/types/arsedizioni-ars-utils-ui.oauth.d.ts.map +1 -0
  59. package/types/arsedizioni-ars-utils-ui.paginator.d.ts.map +1 -0
  60. package/types/arsedizioni-ars-utils-ui.shell.d.ts.map +1 -0
  61. package/types/arsedizioni-ars-utils-ui.tinymce.d.ts.map +1 -0
  62. package/types/arsedizioni-ars-utils.d.ts.map +1 -0
@@ -0,0 +1,806 @@
1
+ import { ClipperDocumentMenuComponent, ClipperSearchFacetsComponent, ClipperSearchResultItemComponent, ClipperSearchResultManager } from "./arsedizioni-ars-utils-clipper.ui.mjs";
2
+ import { Breakpoints } from "@angular/cdk/layout";
3
+ import * as i0 from "@angular/core";
4
+ import { ChangeDetectionStrategy, Component, afterNextRender, inject, viewChild } from "@angular/core";
5
+ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
6
+ import * as i7 from "@angular/material/badge";
7
+ import { MatBadgeModule } from "@angular/material/badge";
8
+ import * as i2 from "@angular/material/button";
9
+ import { MatButtonModule } from "@angular/material/button";
10
+ import { MatCheckboxModule } from "@angular/material/checkbox";
11
+ import * as i4 from "@angular/material/icon";
12
+ import { MatIconModule } from "@angular/material/icon";
13
+ import * as i6 from "@angular/material/menu";
14
+ import { MatMenuModule } from "@angular/material/menu";
15
+ import * as i8 from "@angular/material/paginator";
16
+ import { MatPaginatorModule } from "@angular/material/paginator";
17
+ import * as i10 from "@angular/material/progress-bar";
18
+ import { MatProgressBarModule } from "@angular/material/progress-bar";
19
+ import * as i9 from "@angular/material/sidenav";
20
+ import { MatSidenavModule } from "@angular/material/sidenav";
21
+ import * as i5 from "@angular/material/slide-toggle";
22
+ import { MatSlideToggleModule } from "@angular/material/slide-toggle";
23
+ import * as i3 from "@angular/material/tooltip";
24
+ import { MatTooltipModule } from "@angular/material/tooltip";
25
+ import { ClipperQueryReferencesMode, ClipperSearchParams } from "@arsedizioni/ars-utils/clipper.common";
26
+ import { SelectableModel, SystemUtils } from "@arsedizioni/ars-utils/core";
27
+ import * as i1 from "@arsedizioni/ars-utils/ui";
28
+ import { FlexLayoutModule } from "@arsedizioni/ars-utils/ui";
29
+ import { finalize } from "rxjs/operators";
30
+ import { MAT_DIALOG_DATA, MatDialogContent, MatDialogRef, MatDialogTitle } from "@angular/material/dialog";
31
+ const _c0 = ["filterPane"];
32
+ function ClipperReferencesComponent_Conditional_10_Conditional_3_Template(rf, ctx) {
33
+ if (rf & 1) {
34
+ const _r1 = i0.ɵɵgetCurrentView();
35
+ i0.ɵɵelementStart(0, "mat-slide-toggle", 34);
36
+ i0.ɵɵlistener("change", function ClipperReferencesComponent_Conditional_10_Conditional_3_Template_mat_slide_toggle_change_0_listener($event) {
37
+ i0.ɵɵrestoreView(_r1);
38
+ const ctx_r1 = i0.ɵɵnextContext(2);
39
+ ctx_r1.filterParams.excludeTextReferences = $event.checked;
40
+ return i0.ɵɵresetView(ctx_r1.fetch(true));
41
+ });
42
+ i0.ɵɵtext(1, " \xA0 Mostra solo se citati nelle note ");
43
+ i0.ɵɵelementEnd();
44
+ }
45
+ if (rf & 2) {
46
+ const ctx_r1 = i0.ɵɵnextContext(2);
47
+ i0.ɵɵproperty("checked", ctx_r1.filterParams.excludeTextReferences === true);
48
+ }
49
+ }
50
+ function ClipperReferencesComponent_Conditional_10_Conditional_4_Template(rf, ctx) {
51
+ if (rf & 1) {
52
+ const _r3 = i0.ɵɵgetCurrentView();
53
+ i0.ɵɵelementStart(0, "mat-slide-toggle", 34);
54
+ i0.ɵɵlistener("change", function ClipperReferencesComponent_Conditional_10_Conditional_4_Template_mat_slide_toggle_change_0_listener($event) {
55
+ i0.ɵɵrestoreView(_r3);
56
+ const ctx_r1 = i0.ɵɵnextContext(2);
57
+ ctx_r1.filterParams.excludeNotesReferences = $event.checked;
58
+ return i0.ɵɵresetView(ctx_r1.fetch(true));
59
+ });
60
+ i0.ɵɵtext(1, " \xA0 Mostra solo se citano nel testo il documento ");
61
+ i0.ɵɵelementEnd();
62
+ }
63
+ if (rf & 2) {
64
+ const ctx_r1 = i0.ɵɵnextContext(2);
65
+ i0.ɵɵproperty("checked", ctx_r1.filterParams.excludeNotesReferences === true);
66
+ }
67
+ }
68
+ function ClipperReferencesComponent_Conditional_10_Conditional_6_Template(rf, ctx) {
69
+ if (rf & 1) {
70
+ i0.ɵɵelementStart(0, "button", 31)(1, "mat-icon");
71
+ i0.ɵɵtext(2, "checklist");
72
+ i0.ɵɵelementEnd()();
73
+ }
74
+ if (rf & 2) {
75
+ i0.ɵɵnextContext();
76
+ const menuSelections_r4 = i0.ɵɵreference(8);
77
+ const ctx_r1 = i0.ɵɵnextContext();
78
+ i0.ɵɵproperty("matMenuTriggerFor", menuSelections_r4)("disabled", !ctx_r1.snapshot.total)("matBadge", ctx_r1.selection?.all?.length);
79
+ i0.ɵɵattribute("aria-label", "Menu opzioni per elementi selezionati");
80
+ }
81
+ }
82
+ function ClipperReferencesComponent_Conditional_10_Conditional_10_Template(rf, ctx) {
83
+ if (rf & 1) {
84
+ const _r5 = i0.ɵɵgetCurrentView();
85
+ i0.ɵɵelementStart(0, "div", 33)(1, "button", 35);
86
+ i0.ɵɵlistener("click", function ClipperReferencesComponent_Conditional_10_Conditional_10_Template_button_click_1_listener() {
87
+ i0.ɵɵrestoreView(_r5);
88
+ const ctx_r1 = i0.ɵɵnextContext(2);
89
+ return i0.ɵɵresetView(ctx_r1.toggleFilterPane());
90
+ });
91
+ i0.ɵɵelementStart(2, "mat-icon");
92
+ i0.ɵɵtext(3, "right_panel_open");
93
+ i0.ɵɵelementEnd()()();
94
+ }
95
+ }
96
+ function ClipperReferencesComponent_Conditional_10_Template(rf, ctx) {
97
+ if (rf & 1) {
98
+ i0.ɵɵelementStart(0, "div", 12)(1, "div", 21)(2, "div", 8);
99
+ i0.ɵɵconditionalCreate(3, ClipperReferencesComponent_Conditional_10_Conditional_3_Template, 2, 1, "mat-slide-toggle", 30)(4, ClipperReferencesComponent_Conditional_10_Conditional_4_Template, 2, 1, "mat-slide-toggle", 30);
100
+ i0.ɵɵelementEnd();
101
+ i0.ɵɵelementStart(5, "div", 10);
102
+ i0.ɵɵconditionalCreate(6, ClipperReferencesComponent_Conditional_10_Conditional_6_Template, 3, 4, "button", 31);
103
+ i0.ɵɵelementStart(7, "mat-menu", null, 2);
104
+ i0.ɵɵelement(9, "clipper-document-menu", 32);
105
+ i0.ɵɵelementEnd();
106
+ i0.ɵɵconditionalCreate(10, ClipperReferencesComponent_Conditional_10_Conditional_10_Template, 4, 0, "div", 33);
107
+ i0.ɵɵelementEnd()()();
108
+ }
109
+ if (rf & 2) {
110
+ const ctx_r1 = i0.ɵɵnextContext();
111
+ const filterPane_r6 = i0.ɵɵreference(14);
112
+ i0.ɵɵadvance(3);
113
+ i0.ɵɵconditional(ctx_r1.dialogData.mode === 1 ? 3 : ctx_r1.dialogData.mode == 2 ? 4 : -1);
114
+ i0.ɵɵadvance(3);
115
+ i0.ɵɵconditional(ctx_r1.selection?.hasValue() ? 6 : -1);
116
+ i0.ɵɵadvance(3);
117
+ i0.ɵɵproperty("parent", ctx_r1)("useSelections", true)("isReadable", false)("isReference", true)("canUseAIAssistant", ctx_r1.user?.hasAIAssistant ?? false);
118
+ i0.ɵɵadvance();
119
+ i0.ɵɵconditional(ctx_r1.snapshot && ctx_r1.snapshot.facets?.hasFacets && filterPane_r6 && (!filterPane_r6.opened || ctx_r1.filterPaneClosed()) ? 10 : -1);
120
+ }
121
+ }
122
+ function ClipperReferencesComponent_Conditional_15_Template(rf, ctx) {
123
+ if (rf & 1) i0.ɵɵelement(0, "div", 16);
124
+ }
125
+ function ClipperReferencesComponent_Conditional_18_Template(rf, ctx) {
126
+ if (rf & 1) i0.ɵɵelement(0, "mat-progress-bar", 19);
127
+ }
128
+ function ClipperReferencesComponent_Conditional_32_Template(rf, ctx) {
129
+ if (rf & 1) {
130
+ i0.ɵɵelementStart(0, "div", 28)(1, "p", 36)(2, "b");
131
+ i0.ɵɵtext(3, "Nessun elemento da visualizzare.");
132
+ i0.ɵɵelementEnd()()();
133
+ }
134
+ }
135
+ function ClipperReferencesComponent_Conditional_33_For_2_Conditional_0_Template(rf, ctx) {
136
+ if (rf & 1) {
137
+ i0.ɵɵelementStart(0, "div", 39)(1, "div");
138
+ i0.ɵɵtext(2);
139
+ i0.ɵɵelementEnd()();
140
+ }
141
+ if (rf & 2) {
142
+ const ctx_r7 = i0.ɵɵnextContext();
143
+ const item_r9 = ctx_r7.$implicit;
144
+ const ɵ$index_103_r10 = ctx_r7.$index;
145
+ i0.ɵɵadvance();
146
+ i0.ɵɵclassProp("group-spaced", ɵ$index_103_r10 > 0);
147
+ i0.ɵɵadvance();
148
+ i0.ɵɵtextInterpolate(item_r9.group);
149
+ }
150
+ }
151
+ function ClipperReferencesComponent_Conditional_33_For_2_Template(rf, ctx) {
152
+ if (rf & 1) {
153
+ i0.ɵɵconditionalCreate(0, ClipperReferencesComponent_Conditional_33_For_2_Conditional_0_Template, 3, 3, "div", 39);
154
+ i0.ɵɵelement(1, "clipper-search-result-item", 40);
155
+ }
156
+ if (rf & 2) {
157
+ const item_r9 = ctx.$implicit;
158
+ i0.ɵɵnextContext();
159
+ const contextMenu_r11 = i0.ɵɵreference(4);
160
+ const ctx_r1 = i0.ɵɵnextContext();
161
+ i0.ɵɵconditional(item_r9.group ? 0 : -1);
162
+ i0.ɵɵadvance();
163
+ i0.ɵɵproperty("item", item_r9)("parent", ctx_r1)("isReadable", false)("actions", contextMenu_r11);
164
+ }
165
+ }
166
+ function ClipperReferencesComponent_Conditional_33_ng_template_5_Template(rf, ctx) {
167
+ if (rf & 1) i0.ɵɵelement(0, "clipper-document-menu", 41);
168
+ if (rf & 2) {
169
+ const item_r12 = ctx.item;
170
+ const ctx_r1 = i0.ɵɵnextContext(2);
171
+ i0.ɵɵproperty("parent", ctx_r1)("item", item_r12)("isReadable", false)("isReference", true)("canUseAIAssistant", ctx_r1.user?.hasAIAssistant ?? false);
172
+ }
173
+ }
174
+ function ClipperReferencesComponent_Conditional_33_Template(rf, ctx) {
175
+ if (rf & 1) {
176
+ const _r7 = i0.ɵɵgetCurrentView();
177
+ i0.ɵɵelementStart(0, "div");
178
+ i0.ɵɵrepeaterCreate(1, ClipperReferencesComponent_Conditional_33_For_2_Template, 2, 5, null, null, i0.ɵɵrepeaterTrackByIndex);
179
+ i0.ɵɵelementStart(3, "mat-menu", 37, 3);
180
+ i0.ɵɵlistener("closed", function ClipperReferencesComponent_Conditional_33_Template_mat_menu_closed_3_listener() {
181
+ i0.ɵɵrestoreView(_r7);
182
+ const ctx_r1 = i0.ɵɵnextContext();
183
+ return i0.ɵɵresetView(ctx_r1.updateMenuButtonsVisibility());
184
+ });
185
+ i0.ɵɵtemplate(5, ClipperReferencesComponent_Conditional_33_ng_template_5_Template, 1, 5, "ng-template", 38);
186
+ i0.ɵɵelementEnd()();
187
+ }
188
+ if (rf & 2) {
189
+ const ctx_r1 = i0.ɵɵnextContext();
190
+ i0.ɵɵadvance();
191
+ i0.ɵɵrepeater(ctx_r1.snapshot.items);
192
+ }
193
+ }
194
+ function ClipperReferencesComponent_Conditional_34_Template(rf, ctx) {
195
+ if (rf & 1) {
196
+ const _r13 = i0.ɵɵgetCurrentView();
197
+ i0.ɵɵelementStart(0, "div", 29)(1, "div", 42)(2, "div", 43);
198
+ i0.ɵɵelement(3, "div", 44);
199
+ i0.ɵɵtext(4, " non più vigente ");
200
+ i0.ɵɵelementEnd();
201
+ i0.ɵɵelementStart(5, "div", 45)(6, "div", 46)(7, "mat-paginator", 47, 4);
202
+ i0.ɵɵlistener("page", function ClipperReferencesComponent_Conditional_34_Template_mat_paginator_page_7_listener($event) {
203
+ i0.ɵɵrestoreView(_r13);
204
+ const ctx_r1 = i0.ɵɵnextContext();
205
+ return i0.ɵɵresetView(ctx_r1.fetchMore($event));
206
+ });
207
+ i0.ɵɵelementEnd()()()()();
208
+ }
209
+ if (rf & 2) {
210
+ const ctx_r1 = i0.ɵɵnextContext();
211
+ const filterPane_r6 = i0.ɵɵreference(14);
212
+ i0.ɵɵadvance(5);
213
+ i0.ɵɵclassProp("wide", filterPane_r6?.opened);
214
+ i0.ɵɵadvance(2);
215
+ i0.ɵɵproperty("hidePageSize", true)("length", ctx_r1.snapshot?.total ?? 0)("pageSize", ctx_r1.filterParams.count ?? 15)("showFirstLastButtons", true);
216
+ }
217
+ }
218
+ var ClipperReferencesComponent = class ClipperReferencesComponent extends ClipperSearchResultManager {
219
+ constructor() {
220
+ super();
221
+ this.filterPane = viewChild("filterPane", ...ngDevMode ? [{ debugName: "filterPane" }] : /* istanbul ignore next */ []);
222
+ this.dialogRef = inject(MatDialogRef);
223
+ this.dialogData = inject(MAT_DIALOG_DATA) ?? { mode: ClipperQueryReferencesMode.ReferencesIn };
224
+ this.user = this.clipperService.user;
225
+ this._viewReady = false;
226
+ if (this.dialogData) {
227
+ switch (this.dialogData.mode) {
228
+ case ClipperQueryReferencesMode.ReferencesIn:
229
+ this.title = "Documenti richiamati nelle note o nel testo";
230
+ break;
231
+ case ClipperQueryReferencesMode.ReferencesOut:
232
+ this.title = "Documenti che richiamano quello in visione";
233
+ break;
234
+ case ClipperQueryReferencesMode.ChangesIn:
235
+ this.title = "Modifiche subite";
236
+ break;
237
+ case ClipperQueryReferencesMode.ChangesOut:
238
+ this.title = "Modifiche apportate";
239
+ break;
240
+ case ClipperQueryReferencesMode.Juris: this.title = "Giurisprudenza associata";
241
+ }
242
+ if (this.dialogData.anchorTitle) this.title += " - " + this.dialogData.anchorTitle;
243
+ this.snapshot = this.clipperService.referencesSnapshot() ?? {
244
+ searchParams: new ClipperSearchParams(),
245
+ interval: "-1"
246
+ };
247
+ if (this.filterParams.mode !== this.dialogData.mode || this.filterParams.id !== this.dialogData.documentId || this.filterParams.anchor !== this.dialogData.anchor) {
248
+ this.filterParams = new ClipperSearchParams();
249
+ this.filterParams.mode = this.dialogData.mode;
250
+ this.filterParams.model = this.dialogData.model;
251
+ this.filterParams.anchor = this.dialogData.anchor;
252
+ this.filterParams.id = this.dialogData.documentId;
253
+ this.filterParams.useModifierInfo = this.dialogData.mode === ClipperQueryReferencesMode.ChangesOut;
254
+ this.filterParams.returnModifierInfo = this.dialogData.mode !== ClipperQueryReferencesMode.ChangesOut;
255
+ this.clipperService.referencesSnapshot.set(this.snapshot);
256
+ }
257
+ }
258
+ this.selection = new SelectableModel(true, "documentId");
259
+ this.breakpointObserver.observe([
260
+ Breakpoints.XSmall,
261
+ Breakpoints.Small,
262
+ Breakpoints.Medium,
263
+ Breakpoints.Large,
264
+ Breakpoints.XLarge
265
+ ]).pipe(takeUntilDestroyed(this.destroyRef)).subscribe((result) => {
266
+ if (!this._viewReady) return;
267
+ for (const query of Object.keys(result.breakpoints)) if (result.breakpoints[query]) this.handleFilterPaneVisibility();
268
+ });
269
+ afterNextRender(() => {
270
+ this._viewReady = true;
271
+ this.handleFilterPaneVisibility();
272
+ const filterPane = this.filterPane();
273
+ if (filterPane) filterPane.openedChange.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((opened) => {
274
+ if (filterPane.mode === "over") this.filterPaneHasBackdrop.set(opened);
275
+ });
276
+ const facets = this.facets();
277
+ if (facets) facets.changed.subscribe((value) => {
278
+ this.snapshot.facets = value;
279
+ this.fetch(true);
280
+ });
281
+ this.fetch(true);
282
+ this.restoreFacets();
283
+ this.changeDetector.markForCheck();
284
+ });
285
+ }
286
+ toggleFilterPane() {
287
+ this.filterPaneClosed.set(!this.filterPaneClosed());
288
+ this.filterPane()?.toggle();
289
+ }
290
+ handleFilterPaneVisibility() {
291
+ const filterPane = this.filterPane();
292
+ if (filterPane) {
293
+ if (this.breakpointObserver.isMatched(Breakpoints.XSmall) || this.breakpointObserver.isMatched(Breakpoints.Small) || this.breakpointObserver.isMatched(Breakpoints.Medium)) {
294
+ if (filterPane.opened) filterPane.close();
295
+ filterPane.mode = "over";
296
+ filterPane.disableClose = false;
297
+ this.filterPaneHasBackdrop.set(filterPane.opened);
298
+ } else {
299
+ if (!this.hasFacets()) filterPane.close();
300
+ else if (!filterPane.opened && !this.filterPaneClosed()) filterPane.open();
301
+ else if (filterPane.opened && this.filterPaneClosed()) filterPane.close();
302
+ filterPane.mode = "side";
303
+ filterPane.disableClose = true;
304
+ this.filterPaneHasBackdrop.set(false);
305
+ }
306
+ }
307
+ }
308
+ close() {
309
+ this.dialogRef.close();
310
+ }
311
+ sendTo(item) {
312
+ this.sendItemsTo(item ? [item] : this.selection?.all);
313
+ }
314
+ prepareFetch(newSearch = false) {
315
+ const newParams = SystemUtils.clone(this.filterParams);
316
+ newParams.count = 15;
317
+ newParams.useModifierInfo = newParams.mode === ClipperQueryReferencesMode.ChangesOut;
318
+ newParams.returnModifierInfo = newParams.mode !== ClipperQueryReferencesMode.ChangesOut;
319
+ if (newSearch) {
320
+ newParams.first = 0;
321
+ this.filterParams.first = 0;
322
+ }
323
+ if (this.snapshot.facets?.fromDate) {
324
+ newParams.fromDate = this.snapshot.facets?.fromDate;
325
+ newParams.toDate = this.snapshot.facets?.toDate;
326
+ newParams.year = this.snapshot.facets?.fromDate.getFullYear();
327
+ }
328
+ if (this.snapshot.facets?.sector) newParams.sector = this.snapshot.facets?.sector;
329
+ if (this.snapshot.facets?.type) newParams.type = this.snapshot.facets?.type;
330
+ if (this.snapshot.facets?.author) newParams.author = this.snapshot.facets?.author;
331
+ return newParams;
332
+ }
333
+ toReferencesSearchParams(params) {
334
+ return {
335
+ documentId: params.id,
336
+ year: params.year,
337
+ sector: params.sector,
338
+ author: params.author,
339
+ anchor: params.anchor,
340
+ model: params.model?.toString() ?? null,
341
+ mode: params.mode,
342
+ excludeTextReferences: params.excludeTextReferences,
343
+ excludeNotesReferences: params.excludeNotesReferences,
344
+ returnModifierInfo: params.returnModifierInfo,
345
+ useModifierInfo: params.useModifierInfo,
346
+ count: 15,
347
+ first: params.first ?? 0
348
+ };
349
+ }
350
+ fetch(newSearch = false) {
351
+ if (!this.clipperService.loggedIn()) return;
352
+ this.dialogService.busy("Ricerca in corso...");
353
+ const searchParams = this.prepareFetch(newSearch);
354
+ if (searchParams) this.clipperService.documents.references(this.toReferencesSearchParams(searchParams)).pipe(finalize(() => this.dialogService.clearBusy())).subscribe((r) => {
355
+ if (!r.success) this.dialogService.error(r.message);
356
+ else {
357
+ this.prepareResults(r.value, newSearch);
358
+ if (this.snapshot.total > 0) {
359
+ if (newSearch) this.fetchFacets(searchParams);
360
+ } else this.hideFacets();
361
+ if (newSearch) {
362
+ const paginator = this.paginator();
363
+ if (paginator) paginator.pageIndex = 0;
364
+ }
365
+ this.scroll(0);
366
+ }
367
+ });
368
+ }
369
+ fetchMore(e) {
370
+ const first = e.pageIndex * (this.filterParams.count ?? 15);
371
+ this.filterParams.first = first;
372
+ this.fetch();
373
+ }
374
+ fetchFacets(params) {
375
+ if (!this.clipperService.loggedIn() || !params) return;
376
+ if (!this.snapshot.facets || this.snapshot.facets?.hasMoreFacets) {
377
+ this.filterBusy.set(true);
378
+ this.clipperService.documents.referencesFacets(this.toReferencesSearchParams(params)).subscribe({
379
+ next: (r) => {
380
+ if (r.success) {
381
+ let hasFacets = (r.value.facets?.length ?? 0) > 0;
382
+ if (r.value.facets) {
383
+ const facets = this.facets();
384
+ facets?.update(r.value.facets, r.value.interval);
385
+ if (facets && this.snapshot) {
386
+ hasFacets = facets.hasFacets();
387
+ this.snapshot.facets = facets.save();
388
+ this.snapshot.facets.hasTooManyResults = (this.snapshot?.total ?? 0) >= 1e3;
389
+ }
390
+ }
391
+ this.hasFacets.set(hasFacets);
392
+ this.handleFilterPaneVisibility();
393
+ }
394
+ },
395
+ complete: () => {
396
+ this.filterBusy.set(false);
397
+ }
398
+ });
399
+ }
400
+ }
401
+ hideFacets() {
402
+ this.hasFacets.set(false);
403
+ this.facets()?.reset();
404
+ this.filterPane().close();
405
+ this.filterPaneClosed.set(false);
406
+ }
407
+ restoreFacets() {
408
+ if (this.snapshot.facets) {
409
+ this.facets().restore(this.snapshot.facets);
410
+ this.handleFilterPaneVisibility();
411
+ }
412
+ }
413
+ open(documentId) {
414
+ if (documentId) this.dialogRef.close({ documentId });
415
+ }
416
+ getItemStateCssClass(item) {
417
+ if (item.isExpired) return "expired-bg";
418
+ }
419
+ getItemStateTooltip(item) {
420
+ if (item.isExpired) return "Non più vigente";
421
+ return "";
422
+ }
423
+ static {
424
+ this.ɵfac = function ClipperReferencesComponent_Factory(__ngFactoryType__) {
425
+ return new (__ngFactoryType__ || ClipperReferencesComponent)();
426
+ };
427
+ }
428
+ static {
429
+ this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
430
+ type: ClipperReferencesComponent,
431
+ selectors: [["ng-component"]],
432
+ viewQuery: function ClipperReferencesComponent_Query(rf, ctx) {
433
+ if (rf & 1) i0.ɵɵviewQuerySignal(ctx.filterPane, _c0, 5);
434
+ if (rf & 2) i0.ɵɵqueryAdvance();
435
+ },
436
+ hostAttrs: ["Bind", SystemUtils.generateUUID()],
437
+ features: [i0.ɵɵInheritDefinitionFeature],
438
+ decls: 35,
439
+ vars: 9,
440
+ consts: [
441
+ ["filterPane", ""],
442
+ ["facets", ""],
443
+ ["menuSelections", "matMenu"],
444
+ ["contextMenu", "matMenu"],
445
+ ["paginator", ""],
446
+ [1, "clipper-references-fixed"],
447
+ [1, "dialog-header"],
448
+ [
449
+ "fxLayout",
450
+ "row",
451
+ "fxLayoutAlign",
452
+ "start center",
453
+ "fxLayoutGap",
454
+ "10px",
455
+ "fxFill",
456
+ ""
457
+ ],
458
+ ["fxFlex", "*"],
459
+ ["mat-dialog-title", ""],
460
+ ["fxLayoutAlign", "end"],
461
+ [
462
+ "fxFlexAlign",
463
+ "start",
464
+ "type",
465
+ "button",
466
+ "mat-icon-button",
467
+ "",
468
+ "matTooltip",
469
+ "Chiudi",
470
+ "aria-label",
471
+ "Chiudi",
472
+ 1,
473
+ "dialog-close",
474
+ 3,
475
+ "click"
476
+ ],
477
+ [1, "dialog-toolbar"],
478
+ ["id", "clipper-references-scrollable"],
479
+ [
480
+ 1,
481
+ "fill",
482
+ 3,
483
+ "hasBackdrop"
484
+ ],
485
+ [
486
+ "position",
487
+ "end",
488
+ "opened",
489
+ "false",
490
+ 1,
491
+ "drawer-small",
492
+ "drawer-with-loader"
493
+ ],
494
+ [1, "overlay"],
495
+ [
496
+ "fxLayout",
497
+ "column",
498
+ "fxFill",
499
+ ""
500
+ ],
501
+ ["fxFlex", "6px"],
502
+ [
503
+ "mode",
504
+ "indeterminate",
505
+ 2,
506
+ "z-index",
507
+ "11"
508
+ ],
509
+ [
510
+ "fxFlex",
511
+ "78px",
512
+ 1,
513
+ "title-container-with-loader"
514
+ ],
515
+ [
516
+ "fxLayout",
517
+ "row",
518
+ "fxLayoutAlign",
519
+ "start center",
520
+ "fxFill",
521
+ ""
522
+ ],
523
+ [1, "title"],
524
+ [
525
+ "fxFlex",
526
+ "*",
527
+ "fxLayoutAlign",
528
+ "end"
529
+ ],
530
+ [
531
+ "mat-icon-button",
532
+ "",
533
+ "matTooltip",
534
+ "Nascondi",
535
+ 3,
536
+ "click"
537
+ ],
538
+ [
539
+ "fxFlex",
540
+ "*",
541
+ 1,
542
+ "scroll-hidden",
543
+ 2,
544
+ "padding",
545
+ "0 5px"
546
+ ],
547
+ [3, "handleTooManyResults"],
548
+ [
549
+ "fxFlex",
550
+ "*",
551
+ 1,
552
+ "scroll-auto",
553
+ 2,
554
+ "padding",
555
+ "0 5px",
556
+ 3,
557
+ "id"
558
+ ],
559
+ [1, "message-container"],
560
+ [1, "items-footer"],
561
+ [3, "checked"],
562
+ [
563
+ "fxFlexAlign",
564
+ "center",
565
+ "type",
566
+ "button",
567
+ "mat-icon-button",
568
+ "",
569
+ "matTooltip",
570
+ "Azioni da eseguire sugli elementi selezionati",
571
+ 3,
572
+ "matMenuTriggerFor",
573
+ "disabled",
574
+ "matBadge"
575
+ ],
576
+ [
577
+ "selectionSource",
578
+ "selection",
579
+ 3,
580
+ "parent",
581
+ "useSelections",
582
+ "isReadable",
583
+ "isReference",
584
+ "canUseAIAssistant"
585
+ ],
586
+ ["fxFlexAlign", "center"],
587
+ [
588
+ 3,
589
+ "change",
590
+ "checked"
591
+ ],
592
+ [
593
+ "type",
594
+ "button",
595
+ "mat-icon-button",
596
+ "",
597
+ "matTooltip",
598
+ "Affina ricerca",
599
+ "aria-label",
600
+ "'Affina ricerca'",
601
+ 3,
602
+ "click"
603
+ ],
604
+ [1, "message"],
605
+ [3, "closed"],
606
+ ["matMenuContent", ""],
607
+ [1, "items-group-title"],
608
+ [
609
+ 3,
610
+ "item",
611
+ "parent",
612
+ "isReadable",
613
+ "actions"
614
+ ],
615
+ [
616
+ 3,
617
+ "parent",
618
+ "item",
619
+ "isReadable",
620
+ "isReference",
621
+ "canUseAIAssistant"
622
+ ],
623
+ [
624
+ "fxLayout",
625
+ "row wrap",
626
+ "fxLayoutGap",
627
+ "10px",
628
+ "fxLayoutAlign",
629
+ "space-between center",
630
+ "fxFill",
631
+ ""
632
+ ],
633
+ [
634
+ "fxFlex.lt-md",
635
+ "100",
636
+ 1,
637
+ "legend-container"
638
+ ],
639
+ [
640
+ 1,
641
+ "legend",
642
+ "expired-bg"
643
+ ],
644
+ [
645
+ "fxFlex.lt-md",
646
+ "100",
647
+ "fxLayoutAlign",
648
+ "end"
649
+ ],
650
+ ["fxLayout", "row"],
651
+ [
652
+ "fxFlexAlign",
653
+ "center",
654
+ 1,
655
+ "paginator",
656
+ 3,
657
+ "page",
658
+ "hidePageSize",
659
+ "length",
660
+ "pageSize",
661
+ "showFirstLastButtons"
662
+ ]
663
+ ],
664
+ template: function ClipperReferencesComponent_Template(rf, ctx) {
665
+ if (rf & 1) {
666
+ i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "div", 7)(3, "div", 8)(4, "div", 9);
667
+ i0.ɵɵtext(5);
668
+ i0.ɵɵelementEnd()();
669
+ i0.ɵɵelementStart(6, "div", 10)(7, "button", 11);
670
+ i0.ɵɵlistener("click", function ClipperReferencesComponent_Template_button_click_7_listener() {
671
+ return ctx.close();
672
+ });
673
+ i0.ɵɵelementStart(8, "mat-icon");
674
+ i0.ɵɵtext(9, "close");
675
+ i0.ɵɵelementEnd()()()();
676
+ i0.ɵɵconditionalCreate(10, ClipperReferencesComponent_Conditional_10_Template, 11, 8, "div", 12);
677
+ i0.ɵɵelementEnd()();
678
+ i0.ɵɵelementStart(11, "mat-dialog-content", 13)(12, "mat-drawer-container", 14)(13, "mat-drawer", 15, 0);
679
+ i0.ɵɵconditionalCreate(15, ClipperReferencesComponent_Conditional_15_Template, 1, 0, "div", 16);
680
+ i0.ɵɵelementStart(16, "div", 17)(17, "div", 18);
681
+ i0.ɵɵconditionalCreate(18, ClipperReferencesComponent_Conditional_18_Template, 1, 0, "mat-progress-bar", 19);
682
+ i0.ɵɵelementEnd();
683
+ i0.ɵɵelementStart(19, "div", 20)(20, "div", 21)(21, "div", 22);
684
+ i0.ɵɵtext(22, "Affina ricerca");
685
+ i0.ɵɵelementEnd();
686
+ i0.ɵɵelementStart(23, "div", 23)(24, "button", 24);
687
+ i0.ɵɵlistener("click", function ClipperReferencesComponent_Template_button_click_24_listener() {
688
+ return ctx.toggleFilterPane();
689
+ });
690
+ i0.ɵɵelementStart(25, "mat-icon");
691
+ i0.ɵɵtext(26, "right_panel_close");
692
+ i0.ɵɵelementEnd()()()()();
693
+ i0.ɵɵelementStart(27, "div", 25);
694
+ i0.ɵɵelement(28, "clipper-search-facets", 26, 1);
695
+ i0.ɵɵelementEnd()()();
696
+ i0.ɵɵelementStart(30, "div", 17)(31, "div", 27);
697
+ i0.ɵɵconditionalCreate(32, ClipperReferencesComponent_Conditional_32_Template, 4, 0, "div", 28)(33, ClipperReferencesComponent_Conditional_33_Template, 6, 0, "div");
698
+ i0.ɵɵelementEnd();
699
+ i0.ɵɵconditionalCreate(34, ClipperReferencesComponent_Conditional_34_Template, 9, 6, "div", 29);
700
+ i0.ɵɵelementEnd()()();
701
+ }
702
+ if (rf & 2) {
703
+ const filterPane_r6 = i0.ɵɵreference(14);
704
+ i0.ɵɵadvance(5);
705
+ i0.ɵɵtextInterpolate1("", ctx.title, " ");
706
+ i0.ɵɵadvance(5);
707
+ i0.ɵɵconditional(ctx.dialogData.mode > 0 || ctx.selection?.hasValue() || ctx.snapshot && ctx.snapshot.facets?.hasFacets && filterPane_r6 && (!filterPane_r6.opened || ctx.filterPaneClosed()) ? 10 : -1);
708
+ i0.ɵɵadvance(2);
709
+ i0.ɵɵproperty("hasBackdrop", ctx.filterPaneHasBackdrop());
710
+ i0.ɵɵadvance(3);
711
+ i0.ɵɵconditional(ctx.filterBusy() ? 15 : -1);
712
+ i0.ɵɵadvance(3);
713
+ i0.ɵɵconditional(ctx.filterBusy() ? 18 : -1);
714
+ i0.ɵɵadvance(10);
715
+ i0.ɵɵproperty("handleTooManyResults", ctx.dialogData.canHandleTooManyResults);
716
+ i0.ɵɵadvance(3);
717
+ i0.ɵɵproperty("id", ctx.scrollerId);
718
+ i0.ɵɵadvance();
719
+ i0.ɵɵconditional(!ctx.snapshot.total ? 32 : 33);
720
+ i0.ɵɵadvance(2);
721
+ i0.ɵɵconditional((ctx.snapshot?.total ?? 0) > 0 ? 34 : -1);
722
+ }
723
+ },
724
+ dependencies: [
725
+ FlexLayoutModule,
726
+ i1.FxLayoutDirective,
727
+ i1.FxFlexDirective,
728
+ i1.FxLayoutAlignDirective,
729
+ i1.FxLayoutGapDirective,
730
+ i1.FxFlexAlignDirective,
731
+ i1.FxFlexFillDirective,
732
+ MatDialogTitle,
733
+ MatButtonModule,
734
+ i2.MatIconButton,
735
+ MatTooltipModule,
736
+ i3.MatTooltip,
737
+ MatIconModule,
738
+ i4.MatIcon,
739
+ MatCheckboxModule,
740
+ MatSlideToggleModule,
741
+ i5.MatSlideToggle,
742
+ MatMenuModule,
743
+ i6.MatMenu,
744
+ i6.MatMenuContent,
745
+ i6.MatMenuTrigger,
746
+ MatBadgeModule,
747
+ i7.MatBadge,
748
+ MatPaginatorModule,
749
+ i8.MatPaginator,
750
+ MatDialogContent,
751
+ MatSidenavModule,
752
+ i9.MatDrawer,
753
+ i9.MatDrawerContainer,
754
+ MatProgressBarModule,
755
+ i10.MatProgressBar,
756
+ ClipperDocumentMenuComponent,
757
+ ClipperSearchFacetsComponent,
758
+ ClipperSearchResultItemComponent
759
+ ],
760
+ styles: [".fill[_ngcontent-%COMP%], .wide[_ngcontent-%COMP%]{min-width:100%!important;max-width:100%!important;width:100%!important}.dialog-info[_ngcontent-%COMP%]{font-size:x-small;font-weight:700;text-align:right;padding:10px}.dialog-info-green[_ngcontent-%COMP%], .dialog-info-ok[_ngcontent-%COMP%]{color:var(--%NS%ars-color-ok, #388E3C)}.dialog-info-red[_ngcontent-%COMP%], .dialog-info-error[_ngcontent-%COMP%]{color:var(--%NS%mat-form-field-error-text-color, #a80710)}.dialog-header[_ngcontent-%COMP%]{padding-bottom:20px}.dialog-toolbar[_ngcontent-%COMP%]{padding:0 5px 0 24px;height:48px;min-height:48px}.dialog-close[_ngcontent-%COMP%]{margin-right:5px;margin-top:0}.dialog-menu[_ngcontent-%COMP%]{margin-left:10px;margin-top:10px}.dialog-title[_ngcontent-%COMP%]{padding:0 24px}.section-title[_ngcontent-%COMP%]{font-size:large;font-weight:600;padding-top:10px;padding-bottom:8px}.center[_ngcontent-%COMP%]{text-align:center}.fill[_ngcontent-%COMP%]{min-height:100%!important;max-height:100%!important;height:100%!important}.scroll-auto[_ngcontent-%COMP%]{overflow:auto;height:100%}.scroll-hidden[_ngcontent-%COMP%]{overflow:hidden;height:100%}b[_ngcontent-%COMP%]{font-weight:700}.large[_ngcontent-%COMP%]{font-size:large!important;line-height:1.2!important}.smaller[_ngcontent-%COMP%]{font-size:smaller!important;line-height:1.2!important}.small[_ngcontent-%COMP%]{font-size:small!important;line-height:1.2!important}.small-icon-button[_ngcontent-%COMP%]{width:1.5rem!important;height:1.5rem!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}.small-icon-button[_ngcontent-%COMP%] .mat-mdc-button-touch-target[_ngcontent-%COMP%]{width:1.5rem!important;height:1.5rem!important}.x-small[_ngcontent-%COMP%]{font-size:x-small!important;line-height:1.2!important}.bold[_ngcontent-%COMP%]{font-weight:700}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase!important}.lowercase[_ngcontent-%COMP%]{text-transform:lowercase!important}.truncated[_ngcontent-%COMP%]{min-width:0;max-width:100%}@supports (-webkit-line-clamp: 2){.truncated[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}.truncated[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .truncated[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@supports (-webkit-line-clamp: 2){.truncated[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .truncated[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}.clipped[_ngcontent-%COMP%]{min-width:0;max-width:100%}.clipped[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .clipped[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:clip}.accent[_ngcontent-%COMP%]{color:var(--%NS%ars-color-accent, #7894ae)!important}.primary[_ngcontent-%COMP%]{color:var(--%NS%ars-color-primary, #00a293)!important}.secondary[_ngcontent-%COMP%]{color:var(--%NS%ars-color-secondary, #4a635f)!important}.error[_ngcontent-%COMP%]{color:var(--%NS%ars-color-error, #ff5449)!important}.success[_ngcontent-%COMP%]{color:var(--%NS%ars-color-ok, #388E3C)!important}.warning[_ngcontent-%COMP%]{color:var(--%NS%ars-color-warning, #FFC107)!important}.text[_ngcontent-%COMP%]{color:var(--%NS%ars-color-text, #191c1b)!important}.overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;background-color:var(--%NS%ars-color-overlay, rgba(255, 255, 255, .75))}.drawer-content[_ngcontent-%COMP%]{padding-top:10px}.drawer[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%], .drawer[_ngcontent-%COMP%] .title-container-with-loader[_ngcontent-%COMP%], .drawer-small[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%], .drawer-small[_ngcontent-%COMP%] .title-container-with-loader[_ngcontent-%COMP%]{padding-right:5px;padding-bottom:20px;padding-left:0}.drawer[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%], .drawer-small[_ngcontent-%COMP%] .title-container[_ngcontent-%COMP%]{padding-top:20px}.drawer[_ngcontent-%COMP%] .title-container-with-loader[_ngcontent-%COMP%], .drawer-small[_ngcontent-%COMP%] .title-container-with-loader[_ngcontent-%COMP%]{padding-top:14px}.drawer[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .drawer-small[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:19.2px!important;font-weight:600;padding-left:15px;min-width:150px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drawer[_ngcontent-%COMP%] .accordion-panel[_ngcontent-%COMP%], .drawer-small[_ngcontent-%COMP%] .accordion-panel[_ngcontent-%COMP%]{background-color:transparent!important}.drawer[_ngcontent-%COMP%] .accordion-header[_ngcontent-%COMP%], .drawer-small[_ngcontent-%COMP%] .accordion-header[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px;border-radius:var(--%NS%mat-expansion-container-shape)}.drawer[_ngcontent-%COMP%] .mat-expansion-panel-body[_ngcontent-%COMP%], .drawer-small[_ngcontent-%COMP%] .mat-expansion-panel-body[_ngcontent-%COMP%]{padding-left:10px!important;padding-right:10px!important;padding-bottom:20px!important}@media screen and (min-width:0px)and (max-width:430px){.drawer[_ngcontent-%COMP%], .drawer-small[_ngcontent-%COMP%]{border-radius:0!important;min-width:100%!important;max-width:100%!important}}@media screen and (min-width:431px){.drawer[_ngcontent-%COMP%]{min-width:420px!important;max-width:420px!important}.drawer[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{min-width:200px}.drawer[_ngcontent-%COMP%] .mat-expansion-panel-body[_ngcontent-%COMP%]{padding-left:15px!important;padding-right:15px!important;padding-bottom:20px!important}.drawer-small[_ngcontent-%COMP%]{min-width:360px!important;max-width:360px!important}}.drawer-with-loader[_ngcontent-%COMP%]{padding-top:0!important}.drawer-transparent[_ngcontent-%COMP%]{background-color:transparent}.fade-in[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadein .5s linear}@keyframes _ngcontent-%COMP%_fadein{0%{opacity:0}to{opacity:1}}.bright[_ngcontent-%COMP%]{filter:brightness(.7)!important}@media(prefers-color-scheme:dark){.dialog-info-green[_ngcontent-%COMP%], .dialog-info-ok[_ngcontent-%COMP%]{color:var(--%NS%ars-color-ok, #4CAF50)}.dialog-info-red[_ngcontent-%COMP%], .dialog-info-error[_ngcontent-%COMP%]{color:var(--%NS%mat-form-field-error-text-color, #ff5449)}b[_ngcontent-%COMP%], .bold[_ngcontent-%COMP%]{font-weight:600}.bright[_ngcontent-%COMP%]{filter:brightness(1.5)!important}}.clipper-logo[_ngcontent-%COMP%]{background-size:110px 48px;width:110px;height:48px}.clipper-selection-button[_ngcontent-%COMP%]{width:150px;font-size:small;font-weight:600}.clipper-selection-icon-button[_ngcontent-%COMP%]{background-color:var(--%NS%ars-color-primary, #00a293);color:var(--%NS%ars-color-text-low, #e0e2e5)}.clipper-selection-icon-button[_ngcontent-%COMP%]:hover{background-color:var(--%NS%ars-color-primary-hi, #12c0ae)}.unread[_ngcontent-%COMP%]{color:var(--%NS%app-color-unread, #f7931c)!important}.unread-bg[_ngcontent-%COMP%]{background-color:var(--%NS%app-color-unread, #f7931c)!important}.expired[_ngcontent-%COMP%]{color:var(--%NS%app-color-expired, #ff5449)!important}.expired-bg[_ngcontent-%COMP%]{background-color:var(--%NS%app-color-expired, #ff5449)!important}.expiring[_ngcontent-%COMP%]{color:var(--%NS%app-color-expiring, #FFC107)!important}.expiring-bg[_ngcontent-%COMP%]{background-color:var(--%NS%app-color-expiring, #FFC107)!important}.closed[_ngcontent-%COMP%]{color:var(--%NS%app-color-closed, #388E3C)!important}.closed-bg[_ngcontent-%COMP%]{background-color:var(--%NS%app-color-closed, #388E3C)!important}.error-bg[_ngcontent-%COMP%]{background-color:var(--%NS%ars-color-error, #ff5449)!important}.popular-bg[_ngcontent-%COMP%]{background-color:var(--%NS%app-color-closed, #388E3C)!important}.very-popular-bg[_ngcontent-%COMP%]{background-color:#4caf50}.item-selected[_ngcontent-%COMP%]{background-color:var(--%NS%ars-item-selected-background-color, #ced1d2);border-radius:0!important}.item-unread[_ngcontent-%COMP%]{font-weight:bolder}.items-group-title[_ngcontent-%COMP%]{color:var(--%NS%ars-color-secondary, #4a635f);font-size:large;font-weight:700;padding-left:25px;padding-bottom:10px;padding-top:10px}.items-group-title[_ngcontent-%COMP%] .group-spaced[_ngcontent-%COMP%]{padding:10px 0 0!important}.items-footer[_ngcontent-%COMP%]{padding:10px}.item[_ngcontent-%COMP%]{border-radius:12px;padding:10px 10px 10px 0;min-height:68px!important;margin-bottom:2px}.item[_ngcontent-%COMP%]:hover{background-color:var(--%NS%ars-item-hover-background-color, #eaecef)}.item[_ngcontent-%COMP%]:hover .item-content[_ngcontent-%COMP%]{-webkit-mask-image:linear-gradient(to right,black 85%,transparent 100%);mask-image:linear-gradient(to right,black 85%,transparent 100%)}@media screen and (min-width:0px)and (max-width:430px){.item[_ngcontent-%COMP%]:hover{background-color:var(--%NS%ars-item-hover-background-color)}.item[_ngcontent-%COMP%]:hover .item-content[_ngcontent-%COMP%]{-webkit-mask-image:linear-gradient(to right,black 55%,transparent 100%);mask-image:linear-gradient(to right,black 55%,transparent 100%)}}.item-content[_ngcontent-%COMP%] .item-info-1[_ngcontent-%COMP%], .item-content[_ngcontent-%COMP%] .info-1[_ngcontent-%COMP%]{font-size:x-small!important;font-weight:700!important;line-height:18px;text-transform:uppercase!important;color:var(--%NS%ars-color-accent, #7894ae)}.item-content[_ngcontent-%COMP%] .item-info-2[_ngcontent-%COMP%], .item-content[_ngcontent-%COMP%] .info-2[_ngcontent-%COMP%]{font-size:x-small!important;font-weight:700!important;line-height:18px;text-transform:uppercase!important;color:var(--%NS%ars-color-accent-low, #456179)}.item-content[_ngcontent-%COMP%] .item-info-3[_ngcontent-%COMP%], .item-content[_ngcontent-%COMP%] .info-3[_ngcontent-%COMP%]{font-size:x-small!important;font-weight:700!important;line-height:18px;text-transform:uppercase!important;color:var(--%NS%ars-color-error, #ff5449)}.item-content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%], .item-content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:small!important;line-height:18px;text-decoration:none!important;font-weight:400;min-height:unset;min-width:unset;white-space:initial!important}@supports (-webkit-line-clamp: 3){.item-content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%], .item-content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}}.item-content[_ngcontent-%COMP%] .details[_ngcontent-%COMP%]{margin-top:4px;font-size:x-small!important;font-weight:700;line-height:15px;color:var(--%NS%ars-color-accent-low, #456179);text-transform:uppercase!important;border-left:4px solid var(--%NS%ars-color-accent-low, #456179);padding-left:10px}.item-content[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .links[_ngcontent-%COMP%]{text-transform:none;text-decoration:none}.item-content[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .links[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .item-content[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .links[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .item-content[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .links[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-right:8px;font-weight:500!important;font-size:11px!important;color:var(--%NS%ars-color-text, #191c1b)}.item-content[_ngcontent-%COMP%] .details[_ngcontent-%COMP%] .links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer!important;color:var(--%NS%ars-color-link, #03A9F4);font-size:11px!important;font-weight:500!important}.item-content[_ngcontent-%COMP%] a.link[_ngcontent-%COMP%]{color:var(--%NS%ars-color-link, #03A9F4);cursor:pointer!important;text-decoration:none!important}.tile[_ngcontent-%COMP%]:hover{background-color:var(--%NS%ars-item-hover-background-color, #eaecef);border-radius:12px}.tile[_ngcontent-%COMP%]{cursor:pointer!important;padding:10px 13px!important;margin-bottom:20px!important}.tile[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{padding:4px 6px}.tile[_ngcontent-%COMP%] .image-mark[_ngcontent-%COMP%]{border-top:6px solid transparent;margin:0 8px}.tile[_ngcontent-%COMP%] .image-mark-unread[_ngcontent-%COMP%]{border-top-color:var(--%NS%app-color-unread, #f7931c);margin:0 8px}.tile[_ngcontent-%COMP%] .tile-image[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{height:125px;position:relative;background-color:transparent;overflow:hidden;display:flex;justify-content:center;align-items:center;border-radius:8px}.tile[_ngcontent-%COMP%] .tile-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:cover;width:100%;height:100%}.tile[_ngcontent-%COMP%] .tile-image[_ngcontent-%COMP%] .tile-info-1[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .tile-image[_ngcontent-%COMP%] .info-1[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] .tile-info-1[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] .info-1[_ngcontent-%COMP%]{position:absolute;left:0;bottom:0;padding:4px 8px;background-color:var(--%NS%ars-color-overlay, rgba(255, 255, 255, .75));color:var(--%NS%ars-color-text, #191c1b);font-size:small!important;font-weight:700!important;text-transform:uppercase!important}.tile[_ngcontent-%COMP%] .tile-image[_ngcontent-%COMP%] .tile-info-2[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .tile-image[_ngcontent-%COMP%] .info-2[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] .tile-info-2[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] .info-2[_ngcontent-%COMP%]{position:absolute;right:0;top:0;padding:4px 8px;background-color:var(--%NS%ars-color-overlay, rgba(255, 255, 255, .75));color:var(--%NS%ars-color-accent, #7894ae);font-size:small!important;font-weight:700!important;text-transform:uppercase!important}.tile[_ngcontent-%COMP%] .tile-image[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{position:absolute;left:0;top:0;height:42px}.tile[_ngcontent-%COMP%] .tile-image[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .check[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .tile-image[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .read-button[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .check[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .read-button[_ngcontent-%COMP%]{background-color:var(--%NS%ars-color-primary, #00a293)!important;color:var(--%NS%ars-color-text-low, #e0e2e5)!important}.tile[_ngcontent-%COMP%] .tile-image[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .unread-button[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .unread-button[_ngcontent-%COMP%]{background-color:var(--%NS%app-color-unread, #f7931c)!important;color:var(--%NS%ars-color-text-low, #e0e2e5)!important}.tile[_ngcontent-%COMP%] .tile-image[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .check-selected[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .check-selected[_ngcontent-%COMP%]{background-color:var(--%NS%ars-color-primary-hi, #12c0ae)!important}.tile[_ngcontent-%COMP%] .tile-date[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{padding:8px 0 6px!important;font-weight:700!important;text-transform:uppercase!important}.tile[_ngcontent-%COMP%] .tile-date[_ngcontent-%COMP%] .date-day[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .date[_ngcontent-%COMP%] .date-day[_ngcontent-%COMP%]{color:var(--%NS%ars-color-accent, #7894ae)}.tile[_ngcontent-%COMP%] .tile-date[_ngcontent-%COMP%] .date-divider[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .date[_ngcontent-%COMP%] .date-divider[_ngcontent-%COMP%]{width:1px;margin:0 8px;border-left:1px solid var(--%NS%ars-color-divider, #757d87)}.tile[_ngcontent-%COMP%] .tile-time[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{font-size:small!important;font-weight:700!important}.tile[_ngcontent-%COMP%] .tile-title[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{text-decoration:none!important;font-size:16px!important;font-weight:600;min-height:50px!important;max-height:70px!important;min-width:100%;white-space:initial!important;overflow:hidden!important}@supports (-webkit-line-clamp: 3){.tile[_ngcontent-%COMP%] .tile-title[_ngcontent-%COMP%], .tile[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}}.stripe[_ngcontent-%COMP%]:hover{background-color:var(--%NS%ars-item-hover-background-color, #eaecef);border-radius:12px}.stripe[_ngcontent-%COMP%]{cursor:pointer!important;padding:5px 10px!important;margin-bottom:10px!important}.stripe[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{padding:5px 15px!important}.stripe[_ngcontent-%COMP%] .image-mark[_ngcontent-%COMP%]{min-height:100%!important;border-left:6px solid transparent;margin:8px 0}.stripe[_ngcontent-%COMP%] .image-mark-unread[_ngcontent-%COMP%]{min-height:100%!important;border-left-color:var(--%NS%ars-color-error, #ff5449)!important;margin:8px 0}.stripe[_ngcontent-%COMP%] .stripe-image[_ngcontent-%COMP%], .stripe[_ngcontent-%COMP%] .image[_ngcontent-%COMP%]{width:150px!important;height:70px!important;position:relative;background-color:transparent;overflow:hidden;display:flex;justify-content:center;align-items:center;border-radius:8px}.stripe[_ngcontent-%COMP%] .stripe-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .stripe[_ngcontent-%COMP%] .image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:cover;width:100%;height:100%}.stripe[_ngcontent-%COMP%] .stripe-info-1[_ngcontent-%COMP%], .stripe[_ngcontent-%COMP%] .info-1[_ngcontent-%COMP%]{margin-top:8px;padding:4px 8px!important;background-color:var(--%NS%ars-color-overlay, rgba(255, 255, 255, .75))!important;color:var(--%NS%ars-color-text, #191c1b)!important;font-size:small!important;font-weight:700!important;text-transform:uppercase!important}.stripe[_ngcontent-%COMP%] .stripe-info-2[_ngcontent-%COMP%], .stripe[_ngcontent-%COMP%] .info-2[_ngcontent-%COMP%]{margin-top:8px;padding:4px 8px!important;background-color:var(--%NS%ars-color-overlay, rgba(255, 255, 255, .75))!important;color:var(--%NS%ars-color-accent, #7894ae)!important;font-size:small!important;font-weight:700!important;text-transform:uppercase!important}.stripe[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{position:absolute;left:0;top:0;height:42px}.stripe[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .check[_ngcontent-%COMP%], .stripe[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .read[_ngcontent-%COMP%]{background-color:var(--%NS%ars-color-primary, #00a293);color:var(--%NS%ars-color-text-low, #e0e2e5)}.stripe[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .check-selected[_ngcontent-%COMP%]{background-color:var(--%NS%ars-color-primary-hi, #12c0ae)}.stripe[_ngcontent-%COMP%] .stripe-date[_ngcontent-%COMP%], .stripe[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{padding:0!important;font-weight:700!important;text-transform:uppercase!important}.stripe[_ngcontent-%COMP%] .stripe-date[_ngcontent-%COMP%] .date-day[_ngcontent-%COMP%], .stripe[_ngcontent-%COMP%] .date[_ngcontent-%COMP%] .date-day[_ngcontent-%COMP%]{color:var(--%NS%ars-color-accent, #7894ae)}.stripe[_ngcontent-%COMP%] .stripe-date[_ngcontent-%COMP%] .date-divider[_ngcontent-%COMP%], .stripe[_ngcontent-%COMP%] .date[_ngcontent-%COMP%] .date-divider[_ngcontent-%COMP%]{width:1px;margin:0 8px;border-left:1px solid var(--%NS%ars-color-divider, #757d87)}.stripe[_ngcontent-%COMP%] .stripe-time[_ngcontent-%COMP%], .stripe[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{font-size:small!important;font-weight:700!important}.stripe[_ngcontent-%COMP%] .stripe-title[_ngcontent-%COMP%], .stripe[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{text-decoration:none!important;font-size:16px!important;font-weight:600;min-width:100%;white-space:initial!important;overflow:hidden!important}@supports (-webkit-line-clamp: 3){.stripe[_ngcontent-%COMP%] .stripe-title[_ngcontent-%COMP%], .stripe[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}}.badge[_ngcontent-%COMP%], .badge-red[_ngcontent-%COMP%]{margin-left:10px;padding:1px 4px;border-radius:3px;font-size:x-small;font-weight:600;text-align:center;background-color:#427505;text-transform:uppercase;white-space:nowrap;color:#e0e2e5}.badge-red[_ngcontent-%COMP%]{background-color:#a80710}.busy-backdrop[_ngcontent-%COMP%]{background-color:#0000006b!important}.legend-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;font-size:x-small;text-transform:uppercase;font-weight:500;margin-left:10px}.legend-container[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%]{display:inline-block;height:8px;width:8px;margin-right:4px}.legend-container[_ngcontent-%COMP%] .legend[_ngcontent-%COMP%]:not(:first-of-type){margin-left:10px}@media screen and (max-width:431px){.legend-container[_ngcontent-%COMP%]{font-size:9px!important}}.special-date[_ngcontent-%COMP%], .special-date-expired[_ngcontent-%COMP%], .special-date-expiring[_ngcontent-%COMP%]{border:2px var(--%NS%ars-color-accent, #7894ae) solid!important;border-radius:100%!important}.special-date-expired[_ngcontent-%COMP%]{border:2px var(--%NS%ars-color-error, #ff5449) solid!important}.special-date-expiring[_ngcontent-%COMP%]{border:2px var(--%NS%ars-color-warning, #FFC107) solid!important}.word-hit-chunk[_ngcontent-%COMP%], .word-hit[_ngcontent-%COMP%]{display:inline-block;font-size:inherit;background-color:var(--%NS%ars-word-hit-background-color, #FFEB3B);color:var(--%NS%ars-word-hit-color, #191c1b);padding:0 4px;margin:0 4px;border-radius:4px}.word-hit-chunk[_ngcontent-%COMP%]{background-color:var(--%NS%ars-word-chunk-hit-background-color, #8AFF59);color:var(--%NS%ars-word-hit-chunk-color, #191c1b)}.message-container[_ngcontent-%COMP%]{font-size:large;display:flex;justify-content:center;align-items:center;height:50%}.message-container[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{color:var(--%NS%ars-color-secondary, #4a635f);text-align:center;padding:40px}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:unset!important;padding:0!important}"]
761
+ });
762
+ }
763
+ };
764
+ (() => {
765
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClipperReferencesComponent, [{
766
+ type: Component,
767
+ args: [{
768
+ host: { "Bind": SystemUtils.generateUUID() },
769
+ standalone: true,
770
+ changeDetection: ChangeDetectionStrategy.OnPush,
771
+ imports: [
772
+ FlexLayoutModule,
773
+ MatDialogTitle,
774
+ MatButtonModule,
775
+ MatTooltipModule,
776
+ MatIconModule,
777
+ MatCheckboxModule,
778
+ MatSlideToggleModule,
779
+ MatMenuModule,
780
+ MatBadgeModule,
781
+ MatPaginatorModule,
782
+ MatDialogContent,
783
+ MatSidenavModule,
784
+ MatProgressBarModule,
785
+ ClipperDocumentMenuComponent,
786
+ ClipperSearchFacetsComponent,
787
+ ClipperSearchResultItemComponent
788
+ ],
789
+ template: "<div class=\"clipper-references-fixed\">\n <div class=\"dialog-header\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap='10px' fxFill>\n <div fxFlex=\"*\">\n <div mat-dialog-title>{{title}} </div>\n </div>\n <div fxLayoutAlign=\"end\">\n <button fxFlexAlign=\"start\" type=\"button\" mat-icon-button matTooltip=\"Chiudi\" aria-label=\"Chiudi\"\n (click)=\"close()\" class=\"dialog-close\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </div>\n @if (dialogData.mode > 0 || selection?.hasValue() || (snapshot && snapshot.facets?.hasFacets && filterPane &&\n (!filterPane.opened || filterPaneClosed()))) {\n <div class=\"dialog-toolbar\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxFill>\n <div fxFlex=\"*\">\n @if (dialogData.mode === 1) {\n <mat-slide-toggle [checked]=\"filterParams.excludeTextReferences === true\"\n (change)=\"filterParams.excludeTextReferences = $event.checked; fetch(true)\">\n &nbsp; Mostra solo se citati nelle note\n </mat-slide-toggle>\n } @else if (dialogData.mode == 2) {\n <mat-slide-toggle [checked]=\"filterParams.excludeNotesReferences === true\"\n (change)=\"filterParams.excludeNotesReferences = $event.checked; fetch(true)\">\n &nbsp; Mostra solo se citano nel testo il documento\n </mat-slide-toggle>\n }\n </div>\n <div fxLayoutAlign=\"end\">\n @if (selection?.hasValue()) {\n <button fxFlexAlign=\"center\" type=\"button\" mat-icon-button\n matTooltip=\"Azioni da eseguire sugli elementi selezionati\"\n [attr.aria-label]=\"'Menu opzioni per elementi selezionati'\" [matMenuTriggerFor]=\"menuSelections\"\n [disabled]=\"!snapshot.total\" [matBadge]=\"selection?.all?.length\">\n <mat-icon>checklist</mat-icon>\n </button>\n }\n <mat-menu #menuSelections=\"matMenu\">\n <clipper-document-menu [parent]=\"this\" selectionSource=\"selection\" [useSelections]=\"true\"\n [isReadable]=\"false\" [isReference]=\"true\" [canUseAIAssistant]=\"user?.hasAIAssistant ?? false\">\n </clipper-document-menu>\n </mat-menu>\n @if (snapshot && snapshot.facets?.hasFacets && filterPane && (!filterPane.opened || filterPaneClosed())) {\n <div fxFlexAlign=\"center\">\n <button type=\"button\" mat-icon-button matTooltip=\"Affina ricerca\" aria-label=\"'Affina ricerca'\"\n (click)=\"toggleFilterPane()\">\n <mat-icon>right_panel_open</mat-icon>\n </button>\n </div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n</div>\n<mat-dialog-content id=\"clipper-references-scrollable\">\n <mat-drawer-container class=\"fill\" [hasBackdrop]=\"filterPaneHasBackdrop()\">\n <mat-drawer #filterPane position=\"end\" class=\"drawer-small drawer-with-loader\" opened=\"false\">\n @if (filterBusy()) {\n <div class=\"overlay\"></div>\n }\n <div fxLayout=\"column\" fxFill>\n <div fxFlex=\"6px\">\n @if (filterBusy()) {\n <mat-progress-bar style=\"z-index: 11;\" mode=\"indeterminate\">\n </mat-progress-bar>\n }\n </div>\n <div fxFlex=\"78px\" class=\"title-container-with-loader\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxFill>\n <div class=\"title\">Affina ricerca</div>\n <div fxFlex=\"*\" fxLayoutAlign=\"end\">\n <button mat-icon-button (click)=\"toggleFilterPane()\"\n matTooltip=\"Nascondi\"><mat-icon>right_panel_close</mat-icon></button>\n </div>\n </div>\n </div>\n <div fxFlex=\"*\" class=\"scroll-hidden\" style=\"padding: 0 5px;\">\n <clipper-search-facets #facets [handleTooManyResults]=\"dialogData.canHandleTooManyResults\" ></clipper-search-facets>\n </div>\n </div>\n </mat-drawer>\n <div fxLayout=\"column\" fxFill>\n <div fxFlex=\"*\" [id]=\"scrollerId\" class=\"scroll-auto\" style=\"padding: 0 5px;\">\n @if (!snapshot.total) {\n <div class=\"message-container\">\n <p class=\"message\"><b>Nessun elemento da visualizzare.</b></p>\n </div>\n } @else {\n <div>\n @for (item of snapshot.items; track $index; let i = $index) {\n @if (item.group) {\n <div class=\"items-group-title\">\n <div [class.group-spaced]=\"i > 0\">{{item.group}}</div>\n </div>\n }\n <clipper-search-result-item [item]=\"item\" [parent]=\"this\" [isReadable]=\"false\"\n [actions]=\"contextMenu\"></clipper-search-result-item>\n }\n <mat-menu #contextMenu=\"matMenu\" (closed)=\"updateMenuButtonsVisibility()\">\n <ng-template matMenuContent let-item=\"item\">\n <clipper-document-menu [parent]=\"this\" [item]=\"item\" [isReadable]=\"false\" [isReference]=\"true\"\n [canUseAIAssistant]=\"user?.hasAIAssistant ?? false\">\n </clipper-document-menu>\n </ng-template>\n </mat-menu>\n </div>\n }\n </div>\n <!-- footer -->\n @if ((snapshot?.total ?? 0) > 0) {\n <div class=\"items-footer\">\n <div fxLayout=\"row wrap\" fxLayoutGap=\"10px\" fxLayoutAlign=\"space-between center\" fxFill>\n <!-- legend -->\n <div fxFlex.lt-md=\"100\" class=\"legend-container\">\n <div class=\"legend expired-bg \"></div>\n non più vigente\n </div>\n <div fxFlex.lt-md=\"100\" fxLayoutAlign=\"end\" [class.wide]=\"filterPane?.opened\">\n <div fxLayout=\"row\">\n <mat-paginator fxFlexAlign=\"center\" #paginator class=\"paginator\" [hidePageSize]=\"true\"\n [length]=\"snapshot?.total ?? 0\" [pageSize]=\"filterParams.count ?? 15\" [showFirstLastButtons]=\"true\"\n (page)=\"fetchMore($event)\">\n </mat-paginator>\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n </mat-drawer-container>\n</mat-dialog-content>",
790
+ styles: [".fill,.wide{min-width:100%!important;max-width:100%!important;width:100%!important}.dialog-info{font-size:x-small;font-weight:700;text-align:right;padding:10px}.dialog-info-green,.dialog-info-ok{color:var(--ars-color-ok, #388E3C)}.dialog-info-red,.dialog-info-error{color:var(--mat-form-field-error-text-color, #a80710)}.dialog-header{padding-bottom:20px}.dialog-toolbar{padding:0 5px 0 24px;height:48px;min-height:48px}.dialog-close{margin-right:5px;margin-top:0}.dialog-menu{margin-left:10px;margin-top:10px}.dialog-title{padding:0 24px}.section-title{font-size:large;font-weight:600;padding-top:10px;padding-bottom:8px}.center{text-align:center}.fill{min-height:100%!important;max-height:100%!important;height:100%!important}.scroll-auto{overflow:auto;height:100%}.scroll-hidden{overflow:hidden;height:100%}b{font-weight:700}.large{font-size:large!important;line-height:1.2!important}.smaller{font-size:smaller!important;line-height:1.2!important}.small{font-size:small!important;line-height:1.2!important}.small-icon-button{width:1.5rem!important;height:1.5rem!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}.small-icon-button .mat-mdc-button-touch-target{width:1.5rem!important;height:1.5rem!important}.x-small{font-size:x-small!important;line-height:1.2!important}.bold{font-weight:700}.uppercase{text-transform:uppercase!important}.lowercase{text-transform:lowercase!important}.truncated{min-width:0;max-width:100%}@supports (-webkit-line-clamp: 2){.truncated{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}.truncated span,.truncated div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@supports (-webkit-line-clamp: 2){.truncated span,.truncated div{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}.clipped{min-width:0;max-width:100%}.clipped span,.clipped div{white-space:nowrap;overflow:hidden;text-overflow:clip}.accent{color:var(--ars-color-accent, #7894ae)!important}.primary{color:var(--ars-color-primary, #00a293)!important}.secondary{color:var(--ars-color-secondary, #4a635f)!important}.error{color:var(--ars-color-error, #ff5449)!important}.success{color:var(--ars-color-ok, #388E3C)!important}.warning{color:var(--ars-color-warning, #FFC107)!important}.text{color:var(--ars-color-text, #191c1b)!important}.overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;background-color:var(--ars-color-overlay, rgba(255, 255, 255, .75))}.drawer-content{padding-top:10px}.drawer .title-container,.drawer .title-container-with-loader,.drawer-small .title-container,.drawer-small .title-container-with-loader{padding-right:5px;padding-bottom:20px;padding-left:0}.drawer .title-container,.drawer-small .title-container{padding-top:20px}.drawer .title-container-with-loader,.drawer-small .title-container-with-loader{padding-top:14px}.drawer .title,.drawer-small .title{font-size:19.2px!important;font-weight:600;padding-left:15px;min-width:150px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drawer .accordion-panel,.drawer-small .accordion-panel{background-color:transparent!important}.drawer .accordion-header,.drawer-small .accordion-header{padding-left:10px;padding-right:10px;border-radius:var(--mat-expansion-container-shape)}.drawer .mat-expansion-panel-body,.drawer-small .mat-expansion-panel-body{padding-left:10px!important;padding-right:10px!important;padding-bottom:20px!important}@media screen and (min-width:0px)and (max-width:430px){.drawer,.drawer-small{border-radius:0!important;min-width:100%!important;max-width:100%!important}}@media screen and (min-width:431px){.drawer{min-width:420px!important;max-width:420px!important}.drawer .title{min-width:200px}.drawer .mat-expansion-panel-body{padding-left:15px!important;padding-right:15px!important;padding-bottom:20px!important}.drawer-small{min-width:360px!important;max-width:360px!important}}.drawer-with-loader{padding-top:0!important}.drawer-transparent{background-color:transparent}.fade-in{animation:fadein .5s linear}@keyframes fadein{0%{opacity:0}to{opacity:1}}.bright{filter:brightness(.7)!important}@media(prefers-color-scheme:dark){.dialog-info-green,.dialog-info-ok{color:var(--ars-color-ok, #4CAF50)}.dialog-info-red,.dialog-info-error{color:var(--mat-form-field-error-text-color, #ff5449)}b,.bold{font-weight:600}.bright{filter:brightness(1.5)!important}}.clipper-logo{background-size:110px 48px;width:110px;height:48px}.clipper-selection-button{width:150px;font-size:small;font-weight:600}.clipper-selection-icon-button{background-color:var(--ars-color-primary, #00a293);color:var(--ars-color-text-low, #e0e2e5)}.clipper-selection-icon-button:hover{background-color:var(--ars-color-primary-hi, #12c0ae)}.unread{color:var(--app-color-unread, #f7931c)!important}.unread-bg{background-color:var(--app-color-unread, #f7931c)!important}.expired{color:var(--app-color-expired, #ff5449)!important}.expired-bg{background-color:var(--app-color-expired, #ff5449)!important}.expiring{color:var(--app-color-expiring, #FFC107)!important}.expiring-bg{background-color:var(--app-color-expiring, #FFC107)!important}.closed{color:var(--app-color-closed, #388E3C)!important}.closed-bg{background-color:var(--app-color-closed, #388E3C)!important}.error-bg{background-color:var(--ars-color-error, #ff5449)!important}.popular-bg{background-color:var(--app-color-closed, #388E3C)!important}.very-popular-bg{background-color:#4caf50}.item-selected{background-color:var(--ars-item-selected-background-color, #ced1d2);border-radius:0!important}.item-unread{font-weight:bolder}.items-group-title{color:var(--ars-color-secondary, #4a635f);font-size:large;font-weight:700;padding-left:25px;padding-bottom:10px;padding-top:10px}.items-group-title .group-spaced{padding:10px 0 0!important}.items-footer{padding:10px}.item{border-radius:12px;padding:10px 10px 10px 0;min-height:68px!important;margin-bottom:2px}.item:hover{background-color:var(--ars-item-hover-background-color, #eaecef)}.item:hover .item-content{-webkit-mask-image:linear-gradient(to right,black 85%,transparent 100%);mask-image:linear-gradient(to right,black 85%,transparent 100%)}@media screen and (min-width:0px)and (max-width:430px){.item:hover{background-color:var(--ars-item-hover-background-color)}.item:hover .item-content{-webkit-mask-image:linear-gradient(to right,black 55%,transparent 100%);mask-image:linear-gradient(to right,black 55%,transparent 100%)}}.item-content .item-info-1,.item-content .info-1{font-size:x-small!important;font-weight:700!important;line-height:18px;text-transform:uppercase!important;color:var(--ars-color-accent, #7894ae)}.item-content .item-info-2,.item-content .info-2{font-size:x-small!important;font-weight:700!important;line-height:18px;text-transform:uppercase!important;color:var(--ars-color-accent-low, #456179)}.item-content .item-info-3,.item-content .info-3{font-size:x-small!important;font-weight:700!important;line-height:18px;text-transform:uppercase!important;color:var(--ars-color-error, #ff5449)}.item-content .item-title,.item-content .title{font-size:small!important;line-height:18px;text-decoration:none!important;font-weight:400;min-height:unset;min-width:unset;white-space:initial!important}@supports (-webkit-line-clamp: 3){.item-content .item-title,.item-content .title{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}}.item-content .details{margin-top:4px;font-size:x-small!important;font-weight:700;line-height:15px;color:var(--ars-color-accent-low, #456179);text-transform:uppercase!important;border-left:4px solid var(--ars-color-accent-low, #456179);padding-left:10px}.item-content .details .links{text-transform:none;text-decoration:none}.item-content .details .links a,.item-content .details .links span,.item-content .details .links div{margin-right:8px;font-weight:500!important;font-size:11px!important;color:var(--ars-color-text, #191c1b)}.item-content .details .links a{cursor:pointer!important;color:var(--ars-color-link, #03A9F4);font-size:11px!important;font-weight:500!important}.item-content a.link{color:var(--ars-color-link, #03A9F4);cursor:pointer!important;text-decoration:none!important}.tile:hover{background-color:var(--ars-item-hover-background-color, #eaecef);border-radius:12px}.tile{cursor:pointer!important;padding:10px 13px!important;margin-bottom:20px!important}.tile .body{padding:4px 6px}.tile .image-mark{border-top:6px solid transparent;margin:0 8px}.tile .image-mark-unread{border-top-color:var(--app-color-unread, #f7931c);margin:0 8px}.tile .tile-image,.tile .image{height:125px;position:relative;background-color:transparent;overflow:hidden;display:flex;justify-content:center;align-items:center;border-radius:8px}.tile .tile-image img,.tile .image img{object-fit:cover;width:100%;height:100%}.tile .tile-image .tile-info-1,.tile .tile-image .info-1,.tile .image .tile-info-1,.tile .image .info-1{position:absolute;left:0;bottom:0;padding:4px 8px;background-color:var(--ars-color-overlay, rgba(255, 255, 255, .75));color:var(--ars-color-text, #191c1b);font-size:small!important;font-weight:700!important;text-transform:uppercase!important}.tile .tile-image .tile-info-2,.tile .tile-image .info-2,.tile .image .tile-info-2,.tile .image .info-2{position:absolute;right:0;top:0;padding:4px 8px;background-color:var(--ars-color-overlay, rgba(255, 255, 255, .75));color:var(--ars-color-accent, #7894ae);font-size:small!important;font-weight:700!important;text-transform:uppercase!important}.tile .tile-image .buttons,.tile .image .buttons{position:absolute;left:0;top:0;height:42px}.tile .tile-image .buttons .check,.tile .tile-image .buttons .read-button,.tile .image .buttons .check,.tile .image .buttons .read-button{background-color:var(--ars-color-primary, #00a293)!important;color:var(--ars-color-text-low, #e0e2e5)!important}.tile .tile-image .buttons .unread-button,.tile .image .buttons .unread-button{background-color:var(--app-color-unread, #f7931c)!important;color:var(--ars-color-text-low, #e0e2e5)!important}.tile .tile-image .buttons .check-selected,.tile .image .buttons .check-selected{background-color:var(--ars-color-primary-hi, #12c0ae)!important}.tile .tile-date,.tile .date{padding:8px 0 6px!important;font-weight:700!important;text-transform:uppercase!important}.tile .tile-date .date-day,.tile .date .date-day{color:var(--ars-color-accent, #7894ae)}.tile .tile-date .date-divider,.tile .date .date-divider{width:1px;margin:0 8px;border-left:1px solid var(--ars-color-divider, #757d87)}.tile .tile-time,.tile .time{font-size:small!important;font-weight:700!important}.tile .tile-title,.tile .title{text-decoration:none!important;font-size:16px!important;font-weight:600;min-height:50px!important;max-height:70px!important;min-width:100%;white-space:initial!important;overflow:hidden!important}@supports (-webkit-line-clamp: 3){.tile .tile-title,.tile .title{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}}.stripe:hover{background-color:var(--ars-item-hover-background-color, #eaecef);border-radius:12px}.stripe{cursor:pointer!important;padding:5px 10px!important;margin-bottom:10px!important}.stripe .body{padding:5px 15px!important}.stripe .image-mark{min-height:100%!important;border-left:6px solid transparent;margin:8px 0}.stripe .image-mark-unread{min-height:100%!important;border-left-color:var(--ars-color-error, #ff5449)!important;margin:8px 0}.stripe .stripe-image,.stripe .image{width:150px!important;height:70px!important;position:relative;background-color:transparent;overflow:hidden;display:flex;justify-content:center;align-items:center;border-radius:8px}.stripe .stripe-image img,.stripe .image img{object-fit:cover;width:100%;height:100%}.stripe .stripe-info-1,.stripe .info-1{margin-top:8px;padding:4px 8px!important;background-color:var(--ars-color-overlay, rgba(255, 255, 255, .75))!important;color:var(--ars-color-text, #191c1b)!important;font-size:small!important;font-weight:700!important;text-transform:uppercase!important}.stripe .stripe-info-2,.stripe .info-2{margin-top:8px;padding:4px 8px!important;background-color:var(--ars-color-overlay, rgba(255, 255, 255, .75))!important;color:var(--ars-color-accent, #7894ae)!important;font-size:small!important;font-weight:700!important;text-transform:uppercase!important}.stripe .buttons{position:absolute;left:0;top:0;height:42px}.stripe .buttons .check,.stripe .buttons .read{background-color:var(--ars-color-primary, #00a293);color:var(--ars-color-text-low, #e0e2e5)}.stripe .buttons .check-selected{background-color:var(--ars-color-primary-hi, #12c0ae)}.stripe .stripe-date,.stripe .date{padding:0!important;font-weight:700!important;text-transform:uppercase!important}.stripe .stripe-date .date-day,.stripe .date .date-day{color:var(--ars-color-accent, #7894ae)}.stripe .stripe-date .date-divider,.stripe .date .date-divider{width:1px;margin:0 8px;border-left:1px solid var(--ars-color-divider, #757d87)}.stripe .stripe-time,.stripe .time{font-size:small!important;font-weight:700!important}.stripe .stripe-title,.stripe .title{text-decoration:none!important;font-size:16px!important;font-weight:600;min-width:100%;white-space:initial!important;overflow:hidden!important}@supports (-webkit-line-clamp: 3){.stripe .stripe-title,.stripe .title{overflow:hidden;text-overflow:ellipsis;white-space:initial;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}}.badge,.badge-red{margin-left:10px;padding:1px 4px;border-radius:3px;font-size:x-small;font-weight:600;text-align:center;background-color:#427505;text-transform:uppercase;white-space:nowrap;color:#e0e2e5}.badge-red{background-color:#a80710}.busy-backdrop{background-color:#0000006b!important}.legend-container{display:flex;flex-direction:row;align-items:center;font-size:x-small;text-transform:uppercase;font-weight:500;margin-left:10px}.legend-container .legend{display:inline-block;height:8px;width:8px;margin-right:4px}.legend-container .legend:not(:first-of-type){margin-left:10px}@media screen and (max-width:431px){.legend-container{font-size:9px!important}}.special-date,.special-date-expired,.special-date-expiring{border:2px var(--ars-color-accent, #7894ae) solid!important;border-radius:100%!important}.special-date-expired{border:2px var(--ars-color-error, #ff5449) solid!important}.special-date-expiring{border:2px var(--ars-color-warning, #FFC107) solid!important}.word-hit-chunk,.word-hit{display:inline-block;font-size:inherit;background-color:var(--ars-word-hit-background-color, #FFEB3B);color:var(--ars-word-hit-color, #191c1b);padding:0 4px;margin:0 4px;border-radius:4px}.word-hit-chunk{background-color:var(--ars-word-chunk-hit-background-color, #8AFF59);color:var(--ars-word-hit-chunk-color, #191c1b)}.message-container{font-size:large;display:flex;justify-content:center;align-items:center;height:50%}.message-container .message{color:var(--ars-color-secondary, #4a635f);text-align:center;padding:40px}.mat-mdc-dialog-content{max-height:unset!important;padding:0!important}\n"]
791
+ }]
792
+ }], () => [], { filterPane: [{
793
+ type: i0.ViewChild,
794
+ args: ["filterPane", { isSignal: true }]
795
+ }] });
796
+ })();
797
+ (() => {
798
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ClipperReferencesComponent, {
799
+ className: "ClipperReferencesComponent",
800
+ filePath: "references/references.component.ts",
801
+ lineNumber: 63
802
+ });
803
+ })();
804
+ export { ClipperReferencesComponent };
805
+
806
+ //# sourceMappingURL=arsedizioni-ars-utils-clipper.ui-references.component-CBuJnNIf.mjs.map