@arsedizioni/ars-utils 18.1.74 → 18.1.76

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 (113) hide show
  1. package/clipper.common/common/common.module.d.ts +1 -2
  2. package/clipper.common/common/definitions.d.ts +317 -0
  3. package/clipper.common/common/interceptors/auth.interceptor.d.ts +2 -5
  4. package/clipper.common/common/messages.d.ts +4 -0
  5. package/clipper.common/common/services/clipper.service.d.ts +12 -36
  6. package/clipper.ui/{ui/document/documents.d.ts → documents.d.ts} +2 -6
  7. package/clipper.ui/public_api.d.ts +6 -5
  8. package/clipper.ui/ui/browser-dialog/browser-dialog.component.d.ts +30 -143
  9. package/clipper.ui/ui/clipper.scss +270 -106
  10. package/clipper.ui/ui/document/document.component.d.ts +64 -118
  11. package/clipper.ui/ui/document-index/document-index.component.d.ts +34 -0
  12. package/clipper.ui/ui/document-manager/document-manager.d.ts +126 -0
  13. package/clipper.ui/ui/document-menu/document-menu.component.d.ts +28 -0
  14. package/clipper.ui/ui/references/references.component.d.ts +39 -73
  15. package/clipper.ui/ui/search-calendar/search-calendar.component.d.ts +40 -0
  16. package/clipper.ui/ui/search-dialog/search-dialog.component.d.ts +37 -40
  17. package/clipper.ui/ui/search-facets/search-facets.component.d.ts +22 -70
  18. package/clipper.ui/ui/search-free-text-help/search-free-text-help.component.d.ts +0 -1
  19. package/clipper.ui/ui/search-free-text-query-builder/search-free-text-query-builder.component.d.ts +8 -12
  20. package/clipper.ui/ui/search-result-item/search-result-item.component.d.ts +6 -4
  21. package/clipper.ui/ui/search-result-manager/search-result-manager.d.ts +147 -0
  22. package/esm2022/clipper.common/common/common.module.mjs +2 -3
  23. package/esm2022/clipper.common/common/definitions.mjs +1536 -0
  24. package/esm2022/clipper.common/common/interceptors/auth.interceptor.mjs +15 -15
  25. package/esm2022/clipper.common/common/messages.mjs +6 -1
  26. package/esm2022/clipper.common/common/services/clipper.service.mjs +65 -65
  27. package/esm2022/clipper.ui/documents.mjs +51 -0
  28. package/esm2022/clipper.ui/public_api.mjs +7 -6
  29. package/esm2022/clipper.ui/ui/browser-dialog/browser-dialog.component.mjs +320 -785
  30. package/esm2022/clipper.ui/ui/document/document.component.mjs +213 -320
  31. package/esm2022/clipper.ui/ui/document-index/document-index.component.mjs +121 -0
  32. package/esm2022/clipper.ui/ui/document-manager/document-manager.mjs +431 -0
  33. package/esm2022/clipper.ui/ui/document-menu/document-menu.component.mjs +56 -0
  34. package/esm2022/clipper.ui/ui/references/references.component.mjs +244 -438
  35. package/esm2022/clipper.ui/ui/search-calendar/search-calendar.component.mjs +116 -0
  36. package/esm2022/clipper.ui/ui/search-dialog/search-dialog.component.mjs +216 -205
  37. package/esm2022/clipper.ui/ui/search-facets/search-facets.component.mjs +157 -209
  38. package/esm2022/clipper.ui/ui/search-free-text-help/search-free-text-help.component.mjs +7 -8
  39. package/esm2022/clipper.ui/ui/search-free-text-query-builder/search-free-text-query-builder.component.mjs +22 -23
  40. package/esm2022/clipper.ui/ui/search-result-item/search-result-item.component.mjs +12 -10
  41. package/esm2022/clipper.ui/ui/search-result-manager/search-result-manager.mjs +462 -0
  42. package/esm2022/help/components/help-viewer/help-viewer.component.mjs +25 -28
  43. package/esm2022/support.common/common/definitions.mjs +21 -0
  44. package/esm2022/support.common/common/services/support.service.mjs +9 -7
  45. package/esm2022/support.common/public_api.mjs +2 -2
  46. package/esm2022/support.ui/ui/notifications-browser/notification/notification.component.mjs +3 -3
  47. package/esm2022/support.ui/ui/notifications-browser/notifications-browser.component.mjs +4 -5
  48. package/esm2022/ui/ui/dialogs/busy/busy-dialog.component.mjs +3 -3
  49. package/esm2022/ui/ui/dialogs/confirm/confirm-dialog.component.mjs +3 -3
  50. package/esm2022/ui/ui/dialogs/credentials/credentials-dialog.component.mjs +3 -3
  51. package/esm2022/ui/ui/dialogs/info/info-dialog.component.mjs +3 -3
  52. package/esm2022/ui/ui/dialogs/recover-password/recover-password-dialog.component.mjs +3 -3
  53. package/esm2022/ui/ui/dialogs/reset-password/reset-password-dialog.component.mjs +3 -3
  54. package/esm2022/ui.application/public_api.mjs +4 -1
  55. package/esm2022/ui.application/ui/components/button-selector/button-selector.component.mjs +163 -0
  56. package/esm2022/ui.application/ui/components/button-toggle/button-toggle.component.mjs +47 -0
  57. package/esm2022/ui.application/ui/components/chips-selector/chips-selector.component.mjs +239 -0
  58. package/esm2022/ui.application/ui/components/file-preview/file-preview.component.mjs +23 -24
  59. package/esm2022/ui.application/ui/components/filter-bar/filter-bar.component.mjs +3 -3
  60. package/esm2022/ui.application/ui/dialogs/prompt/prompt-dialog.component.mjs +3 -3
  61. package/esm2022/ui.application/ui/dialogs/prompt-date/prompt-date-dialog.component.mjs +3 -3
  62. package/esm2022/ui.application/ui/dialogs/prompt-time/prompt-time-dialog.component.mjs +3 -3
  63. package/esm2022/ui.application/ui/dialogs/select/select-dialog.component.mjs +3 -3
  64. package/esm2022/ui.application/ui/dialogs/select-file/select-file-dialog.component.mjs +3 -3
  65. package/esm2022/ui.application/ui/dialogs/select-picture/select-picture-dialog.component.mjs +3 -3
  66. package/esm2022/ui.application/ui/dialogs/select-tree/select-tree-dialog.component.mjs +3 -3
  67. package/esm2022/ui.application/ui/dialogs/send-to/send-to-dialog.component.mjs +3 -3
  68. package/esm2022/ui.application/ui/messages.mjs +3 -3
  69. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +1608 -1507
  70. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  71. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +2283 -2407
  72. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  73. package/fesm2022/arsedizioni-ars-utils-help.mjs +25 -28
  74. package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
  75. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +8 -6
  76. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  77. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +5 -6
  78. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs.map +1 -1
  79. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +450 -47
  80. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
  81. package/fesm2022/arsedizioni-ars-utils-ui.mjs +12 -12
  82. package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
  83. package/help/components/help-viewer/help-viewer.component.d.ts +6 -10
  84. package/package.json +13 -13
  85. package/styles/ui.scss +140 -0
  86. package/support.common/common/services/support.service.d.ts +2 -2
  87. package/support.common/public_api.d.ts +1 -1
  88. package/ui.application/public_api.d.ts +3 -0
  89. package/ui.application/ui/components/button-selector/button-selector.component.d.ts +49 -0
  90. package/ui.application/ui/components/button-toggle/button-toggle.component.d.ts +26 -0
  91. package/ui.application/ui/components/chips-selector/chips-selector.component.d.ts +70 -0
  92. package/ui.application/ui/components/file-preview/file-preview.component.d.ts +4 -8
  93. package/ui.application/ui/messages.d.ts +2 -2
  94. package/clipper.common/common/clipper.d.ts +0 -119
  95. package/clipper.common/common/search.d.ts +0 -49
  96. package/clipper.ui/ui/document/base/document-base.component.d.ts +0 -38
  97. package/clipper.ui/ui/document/document-index/document-index.component.d.ts +0 -38
  98. package/clipper.ui/ui/document/document-menu/document-menu.component.d.ts +0 -30
  99. package/clipper.ui/ui/last-15-days/last-15-days.component.d.ts +0 -41
  100. package/esm2022/clipper.common/common/clipper.mjs +0 -1371
  101. package/esm2022/clipper.common/common/search.mjs +0 -69
  102. package/esm2022/clipper.ui/ui/document/base/document-base.component.mjs +0 -194
  103. package/esm2022/clipper.ui/ui/document/document-index/document-index.component.mjs +0 -121
  104. package/esm2022/clipper.ui/ui/document/document-menu/document-menu.component.mjs +0 -88
  105. package/esm2022/clipper.ui/ui/document/documents.mjs +0 -49
  106. package/esm2022/clipper.ui/ui/last-15-days/last-15-days.component.mjs +0 -107
  107. package/esm2022/help/components/help-search-query-builder/help-search-query-builder.component.mjs +0 -114
  108. package/esm2022/support.common/common/support.mjs +0 -21
  109. package/esm2022/ui.oauth/ui/components/login/loginOAuth.component.mjs +0 -198
  110. package/help/components/help-search-query-builder/help-search-query-builder.component.d.ts +0 -29
  111. package/help/help.scss +0 -72
  112. package/ui.oauth/ui/components/login/loginOAuth.component.d.ts +0 -38
  113. /package/support.common/common/{support.d.ts → definitions.d.ts} +0 -0
@@ -1,13 +1,11 @@
1
1
  import { CommonModule } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { Injectable, NgModule } from '@angular/core';
4
- import * as i1 from '@angular/common/http';
5
- import { HttpHeaders, HTTP_INTERCEPTORS } from '@angular/common/http';
3
+ import { inject, Injectable, NgModule } from '@angular/core';
4
+ import { HttpClient, HttpHeaders, HTTP_INTERCEPTORS } from '@angular/common/http';
5
+ import { DialogService } from '@arsedizioni/ars-utils/ui';
6
6
  import { timer, EMPTY, throwError, of, catchError as catchError$1 } from 'rxjs';
7
- import * as i2 from '@arsedizioni/ars-utils/core';
8
- import { SystemUtils, Scrollable } from '@arsedizioni/ars-utils/core';
7
+ import { BroadcastService, SystemUtils, Scrollable } from '@arsedizioni/ars-utils/core';
9
8
  import { switchMap, shareReplay, catchError, map } from 'rxjs/operators';
10
- import * as i3 from '@arsedizioni/ars-utils/ui';
11
9
 
12
10
  var ClipperSelectionMode;
13
11
  (function (ClipperSelectionMode) {
@@ -15,1370 +13,1535 @@ var ClipperSelectionMode;
15
13
  ClipperSelectionMode[ClipperSelectionMode["Multi"] = 2] = "Multi";
16
14
  ClipperSelectionMode[ClipperSelectionMode["Any"] = 3] = "Any";
17
15
  })(ClipperSelectionMode || (ClipperSelectionMode = {}));
18
- const ClipperDefinitions = {
19
- // Modules
20
- MOD_NEWS: 1,
21
- MOD_AGGIORNAMENTO_NORMATIVO: 2,
22
- MOD_COORDINAMENTO: 3,
23
- MOD_NORMATIVA_VIGENTE: 4,
24
- MOD_JURIS: 5,
25
- MOD_ARTICOLI: 6,
26
- MOD_ALLERTE_ALIMENTARI: 8,
27
- MOD_GUIDE: 9,
28
- MOD_QUESITI: 10,
29
- MOD_METODI_ANALISI: 11,
30
- MOD_SCADENZE_SEGNALAZIONI: 12,
31
- MOD_CALENDARIO: 13,
32
- MOD_SEMANTIC_SEARCH: 999,
33
- // Document models
34
- DM_UNKNOWN: 0,
35
- DM_GUIDA: 1,
36
- DM_AGGIORNAMENTO_NORMATIVO: 2,
37
- DM_NEWS: 3,
38
- DM_ARTICOLO: 4,
39
- DM_JURIS: 5,
40
- DM_QUESITO: 8,
41
- DM_NORMATIVA_VIGENTE: 9,
42
- DM_SCADENZA: 10,
43
- DM_COORDINAMENTO: 11,
44
- DM_ALLERTE_ALIMENTARI: 13,
45
- DM_METODI_ANALISI: 14,
46
- DM_GUIDA_NORMATIVA: 15,
47
- DM_SCHEDA_ADEMPIMENTI: 16,
48
- DM_APPROFONDIMENTO: 17,
49
- DM_GIURISPRUDENZA_RECENTE: 18,
50
- DM_SCADENZA_SEGNALAZIONE: 19,
51
- DM_SEGNALAZIONE: 20,
52
- // Facets
53
- FAC_SECTOR: 1,
54
- FAC_YEAR: 2,
55
- FAC_DOCUMENTTYPE: 3,
56
- FAC_TOPIC: 4,
57
- FAC_ARTICLE: 5,
58
- FAC_AUTHOR: 6,
59
- FAC_REASON: 95,
60
- // Sorts
61
- SRT_DEFAULT: 0,
62
- SRT_RELEVANCE: 1,
63
- SRT_DATE_ASC: 2,
64
- SRT_DATE_DESC: 3,
65
- SRT_ORIGINAL: 4,
66
- SRT_POPULARITY: 5,
67
- SRT_TAXONOMY: 6,
68
- // Document snapshot mode
69
- SM_REFERENCES_IN: 1,
70
- SM_REFERENCES_OUT: 2,
71
- SM_CHANGES_IN: 3,
72
- SM_CHANGES_OUT: 5,
73
- SM_JURIS: 4,
74
- // Document fragment type
75
- FT_NONE: 0,
76
- FT_NOTES: 1,
77
- FT_TEXT: 2,
78
- FT_ARTICLE: 3,
79
- FT_ATTACHMENT: 4,
80
- FT_PART_HEAD: 5,
81
- FT_PART_TITLE: 6,
82
- FT_PART_CHAPTER: 7,
83
- FT_PART: 8,
84
- FT_PART_SECTION: 9,
85
- FT_APPENDIX: 10,
86
- FT_FILE: 20,
87
- // Document marks
88
- MARK_APPLICABLE: 1,
89
- MARK_NOT_APPLICABLE: 2,
90
- // Regions
91
- REGIONS: [
92
- {
93
- id: '4RAB',
94
- name: 'Abruzzo',
95
- },
96
- {
97
- id: '4RBA',
98
- name: 'Basilicata',
99
- },
100
- {
101
- id: '4RCAL',
102
- name: 'Calabria',
103
- },
104
- {
105
- id: '4RCAM',
106
- name: 'Campania',
107
- },
108
- {
109
- id: '4REM',
110
- name: 'Emilia Romagna',
111
- },
112
- {
113
- id: '4RFVG',
114
- name: 'Friuli Venezia Giulia',
115
- },
116
- {
117
- id: '4RLA',
118
- name: 'Lazio',
119
- },
120
- {
121
- id: '4RLI',
122
- name: 'Liguria',
123
- },
124
- {
125
- id: '4RLO',
126
- name: 'Lombardia',
127
- },
128
- {
129
- id: '4RMA',
130
- name: 'Marche',
131
- },
132
- {
133
- id: '4RMO',
134
- name: 'Molise',
135
- },
136
- {
137
- id: '4RPI',
138
- name: 'Piemonte',
139
- },
140
- {
141
- id: '4RPU',
142
- name: 'Puglia',
143
- },
144
- {
145
- id: '4RSA',
146
- name: 'Sardegna',
147
- },
148
- {
149
- id: '4RSI',
150
- name: 'Sicilia',
151
- },
152
- {
153
- id: '4RTO',
154
- name: 'Toscana',
155
- },
156
- {
157
- id: '4RTAA',
158
- name: 'Trentino Alto Adige',
159
- },
160
- {
161
- id: '4RUM',
162
- name: 'Umbria',
163
- },
164
- {
165
- id: '4RVA',
166
- name: "Valle D'Aosta",
167
- },
168
- {
169
- id: '4RVE',
170
- name: 'Veneto',
171
- },
172
- {
173
- id: '4PAT',
174
- name: 'Prov. Aut. Trento',
175
- },
176
- {
177
- id: '4PAB',
178
- name: 'Prov. Aut. Bolzano',
179
- },
180
- ],
181
- // All models
182
- MODELS: [
183
- { id: '2', name: 'Aggiornamento normativo' },
184
- { id: '3', name: 'News' },
185
- { id: '4', name: 'Articoli' },
186
- { id: '5', name: 'Juris' },
187
- { id: '8', name: 'Quesiti' },
188
- { id: '9', name: 'Normativa vigente' },
189
- { id: '10', name: 'Scadenze' },
190
- { id: '13', name: 'Allerte alimentari' },
191
- { id: '14', name: 'Metodi di analisi' },
192
- { id: '15', name: 'Guide normative' },
193
- { id: '16', name: 'Schede adempimenti' },
194
- { id: '17', name: 'Approfondimenti' },
195
- { id: '18', name: 'Juris' },
196
- ],
197
- // All sectors
198
- SECTORS: [
199
- {
200
- id: 'LC',
201
- name: 'Legislazione comunitaria',
202
- group: 'S',
203
- channels: '|LA|SA|OP|E|',
204
- },
205
- {
206
- id: 'LN',
207
- name: 'Legislazione nazionale',
208
- group: 'S',
209
- channels: '|LA|SA|OP|E|',
210
- },
211
- {
212
- id: 'LR',
213
- name: 'Legislazione regionale',
214
- group: 'S',
215
- channels: '|LA|SA|OP|E|',
216
- },
217
- {
218
- id: '4RAB',
219
- name: ' Abruzzo',
220
- group: 'A',
221
- channels: '|LA|SA|OP|E|',
222
- },
223
- {
224
- id: '4PAB',
225
- name: ' Prov. Aut. Bolzano',
226
- group: 'A',
227
- channels: '|LA|SA|OP|E|',
228
- },
229
- {
230
- id: '4RBA',
231
- name: ' Basilicata',
232
- group: 'A',
233
- channels: '|LA|SA|OP|E|',
234
- },
235
- {
236
- id: '4RCAL',
237
- name: ' Calabria',
238
- group: 'A',
239
- channels: '|LA|SA|OP|E|',
240
- },
241
- {
242
- id: '4RCAM',
243
- name: ' Campania',
244
- group: 'A',
245
- channels: '|LA|SA|OP|E|',
246
- },
247
- {
248
- id: '4REM',
249
- name: ' Emilia Romagna',
250
- group: 'A',
251
- channels: '|LA|SA|OP|E|',
252
- },
253
- {
254
- id: '4RFVG',
255
- name: ' Friuli Venezia Giulia',
256
- group: 'A',
257
- channels: '|LA|SA|OP|E|',
258
- },
259
- {
260
- id: '4RLA',
261
- name: ' Lazio',
262
- group: 'A',
263
- channels: '|LA|SA|OP|E|',
264
- },
265
- {
266
- id: '4RLI',
267
- name: ' Liguria',
268
- group: 'A',
269
- channels: '|LA|SA|OP|E|',
270
- },
271
- {
272
- id: '4RLO',
273
- name: ' Lombardia',
274
- group: 'A',
275
- channels: '|LA|SA|OP|E|',
276
- },
277
- {
278
- id: '4RMA',
279
- name: ' Marche',
280
- group: 'A',
281
- channels: '|LA|SA|OP|E|',
282
- },
283
- {
284
- id: '4RMO',
285
- name: ' Molise',
286
- group: 'A',
287
- channels: '|LA|SA|OP|E|',
288
- },
289
- {
290
- id: '4RPI',
291
- name: ' Piemonte',
292
- group: 'A',
293
- channels: '|LA|SA|OP|E|',
294
- },
295
- {
296
- id: '4RPU',
297
- name: ' Puglia',
298
- group: 'A',
299
- channels: '|LA|SA|OP|E|',
300
- },
301
- {
302
- id: '4RSA',
303
- name: ' Sardegna',
304
- group: 'A',
305
- channels: '|LA|SA|OP|E|',
306
- },
307
- {
308
- id: '4RSI',
309
- name: ' Sicilia',
310
- group: 'A',
311
- channels: '|LA|SA|OP|E|',
312
- },
313
- {
314
- id: '4RTO',
315
- name: ' Toscana',
316
- group: 'A',
317
- channels: '|LA|SA|OP|E|',
318
- },
319
- {
320
- id: '4RTAA',
321
- name: ' Trentino Alto Adige',
322
- group: 'A',
323
- channels: '|LA|SA|OP|E|',
324
- },
325
- {
326
- id: '4PAT',
327
- name: ' Prov. Aut. Trento',
328
- group: 'A',
329
- channels: '|LA|SA|OP|E|',
330
- },
331
- {
332
- id: '4RUM',
333
- name: ' Umbria',
334
- group: 'A',
335
- channels: '|LA|SA|OP|E|',
336
- },
337
- {
338
- id: '4RVA',
339
- name: " Valle D'Aosta",
340
- group: 'A',
341
- channels: '|LA|SA|OP|E|',
342
- },
343
- {
344
- id: '4RVE',
345
- name: ' Veneto',
346
- group: 'A',
347
- channels: '|LA|SA|OP|E|',
348
- },
349
- {
350
- id: 'GC',
351
- name: 'Giurisprudenza comunitaria',
352
- group: 'S',
353
- channels: '|LA|SA|OP|E|',
354
- },
355
- {
356
- id: 'GN',
357
- name: 'Giurisprudenza nazionale',
358
- group: 'S',
359
- channels: '|LA|SA|OP|E|',
360
- },
361
- {
362
- id: 'TN',
363
- name: 'Normativa tecnica',
364
- group: 'S',
365
- channels: '|LA|SA|OP|E|',
366
- },
367
- {
368
- id: 'TI',
369
- name: 'Normativa tecnica internazionale',
370
- group: 'S',
371
- channels: '|LA|SA|OP|E|',
372
- },
373
- {
374
- id: 'NI',
375
- name: 'Normativa internazionale',
376
- group: 'S',
377
- channels: '|LA|SA|OP|E|',
378
- },
379
- {
380
- id: 'SN',
381
- name: 'Documentazione scientifica',
382
- group: 'S',
383
- channels: '|SA|',
384
- },
385
- ],
386
- // Authors
387
- SECTOR_AUTHORS: [
388
- {
389
- sectorId: 'LR',
390
- scope: null,
391
- authorId: '4RAB',
392
- authorDescription: 'Abruzzo',
393
- },
394
- {
395
- sectorId: 'LR',
396
- scope: null,
397
- authorId: '4RBA',
398
- authorDescription: 'Basilicata',
399
- },
400
- {
401
- sectorId: 'LR',
402
- scope: null,
403
- authorId: '4RCAL',
404
- authorDescription: 'Calabria',
405
- },
406
- {
407
- sectorId: 'LR',
408
- scope: null,
409
- authorId: '4RCAM',
410
- authorDescription: 'Campania',
411
- },
412
- {
413
- sectorId: 'LR',
414
- scope: null,
415
- authorId: '4REM',
416
- authorDescription: 'Emilia Romagna',
417
- },
418
- {
419
- sectorId: 'LR',
420
- scope: null,
421
- authorId: '4RFVG',
422
- authorDescription: 'Friuli Venezia Giulia',
423
- },
424
- {
425
- sectorId: 'LR',
426
- scope: null,
427
- authorId: '4RLA',
428
- authorDescription: 'Lazio',
429
- },
430
- {
431
- sectorId: 'LR',
432
- scope: null,
433
- authorId: '4RLI',
434
- authorDescription: 'Liguria',
435
- },
436
- {
437
- sectorId: 'LR',
438
- scope: null,
439
- authorId: '4RLO',
440
- authorDescription: 'Lombardia',
441
- },
442
- {
443
- sectorId: 'LR',
444
- scope: null,
445
- authorId: '4RMA',
446
- authorDescription: 'Marche',
447
- },
448
- {
449
- sectorId: 'LR',
450
- scope: null,
451
- authorId: '4RMO',
452
- authorDescription: 'Molise',
453
- },
454
- {
455
- sectorId: 'LR',
456
- scope: null,
457
- authorId: '4RPI',
458
- authorDescription: 'Piemonte',
459
- },
460
- {
461
- sectorId: 'LR',
462
- scope: null,
463
- authorId: '4RPU',
464
- authorDescription: 'Puglia',
465
- },
466
- {
467
- sectorId: 'LR',
468
- scope: null,
469
- authorId: '4RSA',
470
- authorDescription: 'Sardegna',
471
- },
472
- {
473
- sectorId: 'LR',
474
- scope: null,
475
- authorId: '4RSI',
476
- authorDescription: 'Sicilia',
477
- },
478
- {
479
- sectorId: 'LR',
480
- scope: null,
481
- authorId: '4RTO',
482
- authorDescription: 'Toscana',
483
- },
484
- {
485
- sectorId: 'LR',
486
- scope: null,
487
- authorId: '4RTAA',
488
- authorDescription: 'Trentino Trentino Alto Adige',
489
- },
490
- {
491
- sectorId: 'LR',
492
- scope: null,
493
- authorId: '4RUM',
494
- authorDescription: 'Umbria',
495
- },
496
- {
497
- sectorId: 'LR',
498
- scope: null,
499
- authorId: '4RVA',
500
- authorDescription: "Valle D'Aosta",
501
- },
502
- {
503
- sectorId: 'LR',
504
- scope: null,
505
- authorId: '4RVE',
506
- authorDescription: 'Veneto',
507
- },
508
- {
509
- sectorId: 'LR',
510
- scope: null,
511
- authorId: '4PAB',
512
- authorDescription: 'Prov. Autonoma di Bolzano',
513
- },
514
- {
515
- sectorId: 'LR',
516
- scope: null,
517
- authorId: '4PAT',
518
- authorDescription: 'Prov. Autonoma di Trento',
519
- },
520
- {
521
- sectorId: 'TN',
522
- scope: '|LA|',
523
- authorId: '6CEI',
524
- authorDescription: 'C.E.I. - Comitato Elettrotecnico Italiano',
525
- },
526
- {
527
- sectorId: 'TN',
528
- scope: '|LA|SA|',
529
- authorId: '6CNR',
530
- authorDescription: 'C.N.R. - Consiglio Nazionale delle Ricerche',
531
- },
532
- {
533
- sectorId: 'TN',
534
- scope: '|LA|',
535
- authorId: '6ENPI',
536
- authorDescription: 'E.N.P.I. - Ente Nazionale Prevenzione Infortuni',
537
- },
538
- {
539
- sectorId: 'TN',
540
- scope: '|LA|',
541
- authorId: '6INAI',
542
- authorDescription: 'I.N.A.I.L. - Istituto nazionale Assicurazione Infortuni sul Lavoro',
543
- },
544
- {
545
- sectorId: 'TN',
546
- scope: '|LA|',
547
- authorId: '6ISPS',
548
- authorDescription: 'I.S.P.E.S.L. - Istituto Superiore per la Prevenzione e la Sicurezza del Lavoro',
549
- },
550
- {
551
- sectorId: 'TN',
552
- scope: '|LA|',
553
- authorId: '6INPS',
554
- authorDescription: 'I.N.P.S. - Istituto Nazionale Previdenza Sociale',
555
- },
556
- {
557
- sectorId: 'TN',
558
- scope: '|LA|SA|',
559
- authorId: '6ISS',
560
- authorDescription: 'I.S.S. - Istituto Superiore di Sanità',
561
- },
562
- {
563
- sectorId: 'TN',
564
- scope: '|LA|SA|',
565
- authorId: '6UNI',
566
- authorDescription: 'U.N.I. - Ente Nazionale Italiano di Unificazione',
567
- },
568
- //{
569
- // sectorId: 'TN',
570
- // scope: '|SA|',
571
- // authorId: '6AOAC',
572
- // authorDescription: 'AOAC',
573
- //},
574
- //{
575
- // sectorId: 'TN',
576
- // scope: '|SA|',
577
- // authorId: '6CAC',
578
- // authorDescription: 'Codex Alimentarius Commission',
579
- //},
580
- //{
581
- // sectorId: 'TN',
582
- // scope: '|SA|',
583
- // authorId: '6FDA',
584
- // authorDescription: 'FDA - Food and Drug Administration',
585
- //},
586
- //{
587
- // sectorId: 'TN',
588
- // scope: '|SA|',
589
- // authorId: '6NSF',
590
- // authorDescription: 'NSF International',
591
- //},
592
- //{
593
- // sectorId: 'TN',
594
- // scope: '|SA|',
595
- // authorId: '6USDA',
596
- // authorDescription: 'USDA - United States Department of Agriculture',
597
- //},
598
- {
599
- sectorId: 'GN',
600
- scope: null,
601
- authorId: '5CC',
602
- authorDescription: 'Corte Costituzionale',
603
- },
604
- {
605
- sectorId: 'GN',
606
- scope: null,
607
- authorId: '5CCC',
608
- authorDescription: 'Corte di Cassazione Civile',
609
- },
610
- {
611
- sectorId: 'GN',
612
- scope: null,
613
- authorId: '5CCP',
614
- authorDescription: 'Corte di Cassazione Penale',
615
- },
616
- {
617
- sectorId: 'GN',
618
- scope: null,
619
- authorId: '5CASA',
620
- authorDescription: "Corte d'Assise d'Appello",
621
- },
622
- {
623
- sectorId: 'GN',
624
- scope: null,
625
- authorId: '5CAS',
626
- authorDescription: "Corte d'Assise",
627
- },
628
- {
629
- sectorId: 'GN',
630
- scope: null,
631
- authorId: '5CA',
632
- authorDescription: "Corte d'Appello",
633
- },
634
- {
635
- sectorId: 'GN',
636
- scope: null,
637
- authorId: '5PCA',
638
- authorDescription: "Procura Generale Corte d'Appello",
639
- },
640
- {
641
- sectorId: 'GN',
642
- scope: null,
643
- authorId: '5GDP',
644
- authorDescription: 'Giudice di Pace',
645
- },
646
- {
647
- sectorId: 'GN',
648
- scope: null,
649
- authorId: '5PR',
650
- authorDescription: 'Procura della Repubblica',
651
- },
652
- {
653
- sectorId: 'GN',
654
- scope: null,
655
- authorId: '5T',
656
- authorDescription: 'Tribunale',
657
- },
658
- {
659
- sectorId: 'GN',
660
- scope: null,
661
- authorId: '5P',
662
- authorDescription: 'Pretura',
663
- },
664
- {
665
- sectorId: 'GN',
666
- scope: null,
667
- authorId: '5CDS',
668
- authorDescription: 'Consiglio di Stato',
669
- },
670
- {
671
- sectorId: 'GN',
672
- scope: null,
673
- authorId: '5TAR',
674
- authorDescription: 'Tribunale Amministrativo Regionale',
675
- },
676
- {
677
- sectorId: 'GN',
678
- scope: null,
679
- authorId: '5TSA',
680
- authorDescription: 'Tribunale Superiore delle Acque',
681
- },
682
- {
683
- sectorId: 'GN',
684
- scope: null,
685
- authorId: '5TGA',
686
- authorDescription: 'Tribunale Regionale acque',
687
- },
688
- {
689
- sectorId: 'GN',
690
- scope: null,
691
- authorId: '5CTP',
692
- authorDescription: 'Commissione Tributaria Provinciale',
693
- },
694
- {
695
- sectorId: 'GN',
696
- scope: null,
697
- authorId: '5CTR',
698
- authorDescription: 'Commissione Tributaria Regionale',
699
- },
700
- {
701
- sectorId: 'GN',
702
- scope: null,
703
- authorId: '5CGAS',
704
- authorDescription: 'Cons. di Giustizia Amm.va della Sicilia',
705
- },
706
- {
707
- sectorId: 'GN',
708
- scope: null,
709
- authorId: '5CDC',
710
- authorDescription: 'Corte dei Conti',
711
- },
712
- {
713
- sectorId: 'GC',
714
- scope: null,
715
- authorId: '3CJCE',
716
- authorDescription: 'Corte di Giustizia CEE/CE',
717
- },
718
- {
719
- sectorId: 'GC',
720
- scope: null,
721
- authorId: '3CEDM',
722
- authorDescription: "Corte Europea per i Diritti dell'Uomo",
723
- },
724
- {
725
- sectorId: 'GC',
726
- scope: null,
727
- authorId: '3CWJ',
728
- authorDescription: 'Corte Internazionale di Giustizia',
729
- },
730
- {
731
- sectorId: 'GC',
732
- scope: null,
733
- authorId: '3T1CE',
734
- authorDescription: 'Tribunale di Primo Grado CEE/CE',
735
- },
736
- ],
737
- // Document types
738
- SECTOR_TYPES: [
739
- {
740
- sectorId: 'NI',
741
- documentTypeId: '14',
742
- documentTypeDescription: 'Convenzione Internazionale',
743
- },
744
- {
745
- sectorId: 'NI',
746
- documentTypeId: '6',
747
- documentTypeDescription: 'Accordo Multilaterale',
748
- },
749
- //{
750
- // sectorId: "LN",
751
- // scope: "|LA|SA|",
752
- // // documentTypeId: null,
753
- // documentTypeDescription: "Legislazione nazionale"
754
- //},
755
- {
756
- sectorId: 'LN',
757
- documentTypeId: '4',
758
- documentTypeDescription: 'Accordo (naz.)',
759
- },
760
- {
761
- sectorId: 'LN',
762
- documentTypeId: '75',
763
- documentTypeDescription: 'Altri documenti (naz.)',
764
- },
765
- {
766
- sectorId: 'LN',
767
- documentTypeId: '17',
768
- documentTypeDescription: 'Circolare Commissariale',
769
- },
770
- {
771
- sectorId: 'LN',
772
- documentTypeId: '58',
773
- documentTypeDescription: 'Circolare (Comitati)',
774
- },
775
- {
776
- sectorId: 'LN',
777
- documentTypeId: '10',
778
- documentTypeDescription: 'Circolare Ministeriale',
779
- },
780
- {
781
- sectorId: 'LN',
782
- documentTypeId: '13',
783
- documentTypeDescription: 'Comunicato (naz.)',
784
- },
785
- {
786
- sectorId: 'LN',
787
- documentTypeId: '15',
788
- documentTypeDescription: 'Costituzione della Repubblica',
789
- },
790
- {
791
- sectorId: 'LN',
792
- documentTypeId: '18',
793
- documentTypeDescription: 'Decreto Commissariale',
794
- },
795
- {
796
- sectorId: 'LN',
797
- documentTypeId: '21',
798
- documentTypeDescription: 'Decreto Capo Provv. Stato',
799
- },
800
- {
801
- sectorId: 'LN',
802
- documentTypeId: '22',
803
- documentTypeDescription: 'Decreto Pres. Cons. Ministri',
804
- },
805
- {
806
- sectorId: 'LN',
807
- documentTypeId: '25',
808
- documentTypeDescription: 'Decreto Presidente Repubblica',
809
- },
810
- {
811
- sectorId: 'LN',
812
- documentTypeId: '27',
813
- documentTypeDescription: 'Decreto Legge',
814
- },
815
- {
816
- sectorId: 'LN',
817
- documentTypeId: '28',
818
- documentTypeDescription: 'Decreto Legge Luogotenenziale',
819
- },
820
- {
821
- sectorId: 'LN',
822
- documentTypeId: '29',
823
- documentTypeDescription: 'D.Lgs. Capo Provv. Stato',
824
- },
825
- {
826
- sectorId: 'LN',
827
- documentTypeId: '30',
828
- documentTypeDescription: 'D.Lgs. Governo',
829
- },
830
- {
831
- sectorId: 'LN',
832
- documentTypeId: '32',
833
- documentTypeDescription: 'D.Lgs. Luogotenenziale',
834
- },
835
- {
836
- sectorId: 'LN',
837
- documentTypeId: '33',
838
- documentTypeDescription: 'Decreto Luogotenenziale',
839
- },
840
- {
841
- sectorId: 'LN',
842
- documentTypeId: '34',
843
- documentTypeDescription: 'Decreto Ministeriale',
844
- },
845
- {
846
- sectorId: 'LN',
847
- documentTypeId: '35',
848
- documentTypeDescription: 'Deliberazione (naz.)',
849
- },
850
- {
851
- sectorId: 'LN',
852
- documentTypeId: '47',
853
- documentTypeDescription: 'Determinazione (naz.)',
854
- },
855
- {
856
- sectorId: 'LN',
857
- documentTypeId: '73',
858
- documentTypeDescription: 'Direttiva (naz.)',
859
- },
860
- {
861
- sectorId: 'LN',
862
- documentTypeId: '26',
863
- documentTypeDescription: 'Documento di consultazione',
864
- },
865
- {
866
- sectorId: 'LN',
867
- documentTypeId: '48',
868
- documentTypeDescription: 'Legge',
869
- },
870
- {
871
- sectorId: 'LN',
872
- documentTypeId: '42',
873
- documentTypeDescription: 'Lettera Circolare (Comitati)',
874
- },
875
- {
876
- sectorId: 'LN',
877
- documentTypeId: '43',
878
- documentTypeDescription: 'Lettera Circolare Ministeriale',
879
- },
880
- {
881
- sectorId: 'LN',
882
- documentTypeId: '74',
883
- documentTypeDescription: 'Linee guida (naz.)',
884
- },
885
- {
886
- sectorId: 'LN',
887
- documentTypeId: '56',
888
- documentTypeDescription: 'Nota Ministeriale',
889
- },
890
- {
891
- sectorId: 'LN',
892
- documentTypeId: '91',
893
- documentTypeDescription: 'Ordinanza Commissariale',
894
- },
895
- {
896
- sectorId: 'LN',
897
- documentTypeId: '82',
898
- documentTypeDescription: 'Ordinanza Pres. Cons. Ministri',
899
- },
900
- {
901
- sectorId: 'LN',
902
- documentTypeId: '57',
903
- documentTypeDescription: 'Ordinanza Ministeriale',
904
- },
905
- {
906
- sectorId: 'LN',
907
- documentTypeId: '76',
908
- documentTypeDescription: 'Provvedimento (naz.)',
909
- },
910
- {
911
- sectorId: 'LN',
912
- documentTypeId: '66',
913
- documentTypeDescription: 'Regio Decreto',
914
- },
915
- {
916
- sectorId: 'LN',
917
- documentTypeId: '67',
918
- documentTypeDescription: 'Regio Decreto Legge',
919
- },
920
- {
921
- sectorId: 'LN',
922
- documentTypeId: '68',
923
- documentTypeDescription: 'Regio Decreto Legislativo',
924
- },
925
- {
926
- sectorId: 'LN',
927
- documentTypeId: '71',
928
- documentTypeDescription: 'Statuto delle Regioni Ordinarie',
929
- },
930
- //{
931
- // sectorId: "LC",
932
- // scope: "|LA|SA|",
933
- // // documentTypeId: null,
934
- // documentTypeDescription: "Legislazione comunitaria"
935
- //},
936
- {
937
- sectorId: 'LC',
938
- documentTypeId: '2',
939
- documentTypeDescription: 'Accordi CEE/CE/UE con Stati terzi o altri soggetti',
940
- },
941
- {
942
- sectorId: 'LC',
943
- documentTypeId: '7',
944
- documentTypeDescription: 'Atti diversi CEE/UE',
945
- },
946
- {
947
- sectorId: 'LC',
948
- documentTypeId: '92',
949
- documentTypeDescription: 'Comunicazione CE',
950
- },
951
- {
952
- sectorId: 'LC',
953
- documentTypeId: '87',
954
- documentTypeDescription: 'Decisione CEE/CEEA/CECA',
955
- },
956
- {
957
- sectorId: 'LC',
958
- documentTypeId: '39',
959
- documentTypeDescription: 'Direttiva CEE/CEEA/CE',
960
- },
961
- {
962
- sectorId: 'LC',
963
- documentTypeId: '89',
964
- documentTypeDescription: 'Parere CE',
965
- },
966
- {
967
- sectorId: 'LC',
968
- documentTypeId: '95',
969
- documentTypeDescription: 'Raccomandazione CE',
970
- },
971
- {
972
- sectorId: 'LC',
973
- documentTypeId: '64',
974
- documentTypeDescription: 'Regolamento CEE/UE',
975
- },
976
- {
977
- sectorId: 'LC',
978
- documentTypeId: '96',
979
- documentTypeDescription: 'Risoluzione CE',
980
- },
981
- {
982
- sectorId: 'LC',
983
- documentTypeId: '78',
984
- documentTypeDescription: 'Trattato CEE',
985
- },
986
- //{
987
- // sectorId: "LR",
988
- // scope: "|LA|SA|",
989
- // // documentTypeId: null,
990
- // documentTypeDescription: "Legislazione regionale"
991
- //},
992
- {
993
- sectorId: 'LR',
994
- documentTypeId: '69',
995
- documentTypeDescription: 'Altri documenti (reg.)',
996
- },
997
- {
998
- sectorId: 'LR',
999
- documentTypeId: '11',
1000
- documentTypeDescription: 'Circolare Pres. Giunta Reg.',
1001
- },
1002
- {
1003
- sectorId: 'LR',
1004
- documentTypeId: '46',
1005
- documentTypeDescription: "Circolare dell'Assessore",
1006
- },
1007
- {
1008
- sectorId: 'LR',
1009
- documentTypeId: '83',
1010
- documentTypeDescription: 'Circolare reg.',
1011
- },
1012
- {
1013
- sectorId: 'LR',
1014
- documentTypeId: '70',
1015
- documentTypeDescription: 'Comunicato (reg.)',
1016
- },
1017
- {
1018
- sectorId: 'LR',
1019
- documentTypeId: '80',
1020
- documentTypeDescription: 'Decreto del Dirigente',
1021
- },
1022
- {
1023
- sectorId: 'LR',
1024
- documentTypeId: '24',
1025
- documentTypeDescription: 'Decreto Pres. Giunta Prov.',
1026
- },
1027
- {
1028
- sectorId: 'LR',
1029
- documentTypeId: '23',
1030
- documentTypeDescription: 'Decreto Pres. Giunta Reg.',
1031
- },
1032
- {
1033
- sectorId: 'LR',
1034
- documentTypeId: '19',
1035
- documentTypeDescription: "Decreto dell'Assessore Regionale",
1036
- },
1037
- {
1038
- sectorId: 'LR',
1039
- documentTypeId: '31',
1040
- documentTypeDescription: 'Delib. Consiglio Prov.',
1041
- },
1042
- {
1043
- sectorId: 'LR',
1044
- documentTypeId: '36',
1045
- documentTypeDescription: 'Delib. Consiglio Reg.',
1046
- },
1047
- {
1048
- sectorId: 'LR',
1049
- documentTypeId: '37',
1050
- documentTypeDescription: 'Delib. Giunta Prov.',
1051
- },
1052
- {
1053
- sectorId: 'LR',
1054
- documentTypeId: '38',
1055
- documentTypeDescription: 'Delib. Giunta Reg.',
1056
- },
1057
- {
1058
- sectorId: 'LR',
1059
- documentTypeId: '81',
1060
- documentTypeDescription: 'Determinazione del Dirigente',
1061
- },
1062
- {
1063
- sectorId: 'LR',
1064
- documentTypeId: '12',
1065
- documentTypeDescription: 'Direttiva (reg.)',
1066
- },
1067
- {
1068
- sectorId: 'LR',
1069
- documentTypeId: '49',
1070
- documentTypeDescription: 'Legge Prov. Aut.',
1071
- },
1072
- {
1073
- sectorId: 'LR',
1074
- documentTypeId: '50',
1075
- documentTypeDescription: 'Legge Regionale',
1076
- },
1077
- {
1078
- sectorId: 'LR',
1079
- documentTypeId: '51',
1080
- documentTypeDescription: 'Linee guida (reg.)',
1081
- },
1082
- {
1083
- sectorId: 'LR',
1084
- documentTypeId: '9',
1085
- documentTypeDescription: 'Ordinanza Pres. Prov.',
1086
- },
1087
- {
1088
- sectorId: 'LR',
1089
- documentTypeId: '55',
1090
- documentTypeDescription: 'Ordinanza Pres. Reg.',
1091
- },
1092
- {
1093
- sectorId: 'LR',
1094
- documentTypeId: '85',
1095
- documentTypeDescription: 'Provvedimento (reg.)',
1096
- },
1097
- {
1098
- sectorId: 'LR',
1099
- documentTypeId: '65',
1100
- documentTypeDescription: 'Regolamento Regionale',
1101
- },
1102
- //{
1103
- // sectorId: "GN",
1104
- // scope: "|LA|SA|",
1105
- // // documentTypeId: null,
1106
- // documentTypeDescription: "Giurisprudenza nazionale"
1107
- //},
1108
- {
1109
- sectorId: 'GN',
1110
- documentTypeId: '63',
1111
- documentTypeDescription: 'Decisione',
1112
- },
1113
- {
1114
- sectorId: 'GN',
1115
- documentTypeId: '41',
1116
- documentTypeDescription: 'Decreto Penale',
1117
- },
1118
- {
1119
- sectorId: 'GN',
1120
- documentTypeId: '54',
1121
- documentTypeDescription: 'Ordinanza',
1122
- },
1123
- {
1124
- sectorId: 'GN',
1125
- documentTypeId: '62',
1126
- documentTypeDescription: 'Ricorso',
1127
- },
1128
- {
1129
- sectorId: 'GN',
1130
- documentTypeId: '72',
1131
- documentTypeDescription: 'Sentenza',
1132
- },
1133
- //{
1134
- // sectorId: "GC",
1135
- // scope: "|LA|SA|",
1136
- // // documentTypeId: null,
1137
- // documentTypeDescription: "Giurisprudenza comunitaria"
1138
- //},
1139
- {
1140
- sectorId: 'GC',
1141
- documentTypeId: '88',
1142
- documentTypeDescription: 'Ordinanza CE',
1143
- },
1144
- {
1145
- sectorId: 'GC',
1146
- documentTypeId: '90',
1147
- documentTypeDescription: 'Sentenza CE',
1148
- },
1149
- //{
1150
- // sectorId: "TN",
1151
- // scope: "|LA|SA|",
1152
- // // documentTypeId: null,
1153
- // documentTypeDescription: "Normativa tecnica"
1154
- //},
1155
- {
1156
- sectorId: 'TN',
1157
- documentTypeId: '44',
1158
- documentTypeDescription: 'Circolare (Enti ed Istituti)',
1159
- },
1160
- {
1161
- sectorId: 'TN',
1162
- documentTypeId: '20',
1163
- documentTypeDescription: 'Comunicato (Enti ed Istituti)',
1164
- },
1165
- {
1166
- sectorId: 'TN',
1167
- documentTypeId: '60',
1168
- documentTypeDescription: 'Decreto (Enti ed Istituti)',
1169
- },
1170
- {
1171
- sectorId: 'TN',
1172
- documentTypeId: '40',
1173
- documentTypeDescription: 'Delibera (Enti ed Istituti)',
1174
- },
1175
- {
1176
- sectorId: 'TN',
1177
- documentTypeId: '53',
1178
- documentTypeDescription: 'Fascicolo (Enti ed Istituti)',
1179
- },
1180
- {
1181
- sectorId: 'TN',
1182
- documentTypeId: '45',
1183
- documentTypeDescription: 'Istruzione Tecnica',
1184
- },
1185
- {
1186
- sectorId: 'TN',
1187
- documentTypeId: '59',
1188
- documentTypeDescription: 'Lettera Circolare (Enti ed Istituti)',
1189
- },
1190
- {
1191
- sectorId: 'TN',
1192
- documentTypeId: '79',
1193
- documentTypeDescription: 'Linee guida (Enti ed Istituti)',
1194
- },
1195
- {
1196
- sectorId: 'TN',
1197
- documentTypeId: '98',
1198
- documentTypeDescription: 'Norma Tecnica',
1199
- },
1200
- {
1201
- sectorId: 'TN',
1202
- documentTypeId: '97',
1203
- documentTypeDescription: 'Opuscolo Tecnico',
1204
- },
1205
- {
1206
- sectorId: 'TN',
1207
- documentTypeId: '77',
1208
- documentTypeDescription: 'Pubblicazione (Enti ed Istituti)',
1209
- },
1210
- {
1211
- sectorId: 'TN',
1212
- documentTypeId: '86',
1213
- documentTypeDescription: 'Quaderno',
1214
- },
1215
- {
1216
- sectorId: 'TN',
1217
- documentTypeId: '52',
1218
- documentTypeDescription: 'Regolamento (Enti ed Istituti)',
1219
- },
1220
- //{
1221
- // sectorId: "TI",
1222
- // scope: "|LA|SA|",
1223
- // // documentTypeId: null,
1224
- // documentTypeDescription: "Normativa tecnica internazionale"
1225
- //},
1226
- //{
1227
- // sectorId: "TI",
1228
- // // documentTypeId: "99",
1229
- // documentTypeDescription: "Norma Tecnica Internazionale"
1230
- //},
1231
- //{
1232
- // sectorId: "SN",
1233
- // scope: "|SA|",
1234
- // // documentTypeId: null,
1235
- // documentTypeDescription: "Documentazione scientifica"
1236
- //}
1237
- // 2020.0408 nuovi / modificati
1238
- {
1239
- sectorId: 'TN',
1240
- documentTypeId: '84',
1241
- documentTypeDescription: 'Istruzione Operativa (Enti e Istituti)',
1242
- },
1243
- {
1244
- sectorId: 'TN',
1245
- documentTypeId: '94',
1246
- documentTypeDescription: 'Nota (Enti e Istituti)',
1247
- },
1248
- {
1249
- sectorId: 'NI',
1250
- documentTypeId: '104',
1251
- documentTypeDescription: 'Regolamento UNECE',
1252
- },
1253
- {
1254
- sectorId: 'SN',
1255
- documentTypeId: '105',
1256
- documentTypeDescription: 'Documento',
1257
- },
1258
- {
1259
- sectorId: 'TN',
1260
- documentTypeId: '106',
1261
- documentTypeDescription: 'Direttiva (Enti e Istituti)',
1262
- },
1263
- {
1264
- sectorId: 'TN',
1265
- documentTypeId: '74',
1266
- documentTypeDescription: 'Prassi di riferimento',
1267
- },
1268
- {
1269
- sectorId: 'LN',
1270
- documentTypeID: '16',
1271
- documentTypeDescription: 'Linee guida (naz.)',
1272
- },
1273
- {
1274
- sectorId: 'LN',
1275
- documentTypeID: '3',
1276
- documentTypeDescription: 'Direttiva (naz.)',
1277
- },
1278
- {
1279
- sectorId: 'TI',
1280
- documentTypeID: '107',
1281
- documentTypeDescription: 'Normativa Tecnica Internazionale',
1282
- },
1283
- ],
1284
- // Sources
1285
- SOURCES: [
1286
- {
1287
- id: 'ACCML',
1288
- name: 'Accordi Multilaterali',
1289
- },
1290
- {
1291
- id: 'AEEG',
1292
- name: "Sito Autorità per l'Energia Elettrica, il Gas e il Sistema Idrico",
1293
- },
1294
- {
1295
- id: 'ARERA',
1296
- name: 'Sito Autorità di Regolazione per Energia, Reti e Ambiente',
1297
- },
1298
- {
1299
- id: 'BUR',
1300
- name: 'Bollettino Uff. Regione',
1301
- },
1302
- {
1303
- id: 'BUS',
1304
- name: 'Suppl. speciale al Bollettino Uff.',
1305
- },
1306
- {
1307
- id: 'BUSO',
1308
- name: 'Suppl. ordin. al Bollettino Uff.',
1309
- },
1310
- {
1311
- id: 'BUSS',
1312
- name: 'Suppl. straord. al Bollettino Uff.',
1313
- },
1314
- {
1315
- id: 'GU',
1316
- name: 'Gazzetta Ufficiale Italiana',
1317
- },
1318
- {
1319
- id: 'GUCC',
1320
- name: 'Gazz. Uff. Corte Costituzionale',
1321
- },
1322
- {
1323
- id: 'GUCE',
1324
- name: 'Gazzetta ufficiale delle Comunità europee',
1325
- },
1326
- {
1327
- id: 'GUES',
1328
- name: 'Gazz. Uff. Ediz. Speciale',
1329
- },
1330
- {
1331
- id: 'GURS',
1332
- name: 'Gazz. Uff. Regione Sicilia',
1333
- },
1334
- {
1335
- id: 'GUS',
1336
- name: 'Gazz. Uff. Serie Speciale',
1337
- },
1338
- {
1339
- id: 'GUSO',
1340
- name: 'Suppl. ordin. alla Gazzetta Ufficiale',
1341
- },
1342
- {
1343
- id: 'GUSS',
1344
- name: 'Suppl. straord. alla Gazzetta Ufficiale',
1345
- },
1346
- {
1347
- id: 'GUUE',
1348
- name: 'Gazzetta ufficiale dell’Unione europea',
1349
- },
1350
- {
1351
- id: 'MAC',
1352
- name: 'Massimario Civile',
1353
- },
1354
- {
1355
- id: 'MAP',
1356
- name: 'Massimario Penale',
1357
- },
1358
- {
1359
- id: 'NONE',
1360
- name: 'Fonti diverse',
1361
- },
1362
- {
1363
- id: 'TATEO',
1364
- name: 'Scienza, mercato e opinioni',
1365
- },
1366
- ],
1367
- CHANGE_REASONS: [
1368
- { name: 'Abrogazione', value: 1 },
1369
- { name: 'Annullamento', value: 5 },
1370
- { name: 'Modifica', value: 2 },
1371
- { name: 'Sostiuzione', value: 3 },
1372
- { name: 'Segnalazione', value: 6 },
1373
- { name: 'Rettifica', value: 7 },
1374
- ],
1375
- CALENDAR_STATES: [
1376
- { value: 4, name: 'Aperte' },
1377
- { value: 3, name: 'Chiuse' },
1378
- { value: 2, name: 'Imminenti' },
1379
- { value: 1, name: 'Passate e aperte' },
1380
- ],
16
+ var ClipperModuleGroup;
17
+ (function (ClipperModuleGroup) {
18
+ ClipperModuleGroup[ClipperModuleGroup["Home"] = 0] = "Home";
19
+ ClipperModuleGroup[ClipperModuleGroup["NormativaVigente"] = 1] = "NormativaVigente";
20
+ ClipperModuleGroup[ClipperModuleGroup["RimaniAggiornato"] = 2] = "RimaniAggiornato";
21
+ ClipperModuleGroup[ClipperModuleGroup["Contributi"] = 3] = "Contributi";
22
+ ClipperModuleGroup[ClipperModuleGroup["DGInfo"] = 4] = "DGInfo";
23
+ ClipperModuleGroup[ClipperModuleGroup["Calendario"] = 11] = "Calendario";
24
+ ClipperModuleGroup[ClipperModuleGroup["Archivio"] = 12] = "Archivio";
25
+ })(ClipperModuleGroup || (ClipperModuleGroup = {}));
26
+ var ClipperModule;
27
+ (function (ClipperModule) {
28
+ ClipperModule[ClipperModule["NormativaVigente"] = 101] = "NormativaVigente";
29
+ ClipperModule[ClipperModule["News"] = 201] = "News";
30
+ ClipperModule[ClipperModule["GazzetteBollettiniEFontiDiverse"] = 202] = "GazzetteBollettiniEFontiDiverse";
31
+ ClipperModule[ClipperModule["Giurisprudenza"] = 203] = "Giurisprudenza";
32
+ ClipperModule[ClipperModule["ModificheAbrogazioniERinvii"] = 204] = "ModificheAbrogazioniERinvii";
33
+ ClipperModule[ClipperModule["ScadenzeESegnalazioni"] = 205] = "ScadenzeESegnalazioni";
34
+ ClipperModule[ClipperModule["AllerteAlimentari"] = 206] = "AllerteAlimentari";
35
+ ClipperModule[ClipperModule["Approfondimenti"] = 301] = "Approfondimenti";
36
+ ClipperModule[ClipperModule["QuesitiECasiRisolti"] = 302] = "QuesitiECasiRisolti";
37
+ ClipperModule[ClipperModule["MetodiDiAnalisi"] = 303] = "MetodiDiAnalisi";
38
+ ClipperModule[ClipperModule["Search"] = 999] = "Search";
39
+ })(ClipperModule || (ClipperModule = {}));
40
+ var ClipperModel;
41
+ (function (ClipperModel) {
42
+ ClipperModel[ClipperModel["Unknown"] = 0] = "Unknown";
43
+ ClipperModel[ClipperModel["AggiornamentoNormativo"] = 2] = "AggiornamentoNormativo";
44
+ ClipperModel[ClipperModel["News"] = 3] = "News";
45
+ ClipperModel[ClipperModel["Articoli"] = 4] = "Articoli";
46
+ ClipperModel[ClipperModel["Juris"] = 5] = "Juris";
47
+ ClipperModel[ClipperModel["Quesiti"] = 6] = "Quesiti";
48
+ ClipperModel[ClipperModel["NormativaVigente"] = 9] = "NormativaVigente";
49
+ ClipperModel[ClipperModel["Scadenza"] = 10] = "Scadenza";
50
+ ClipperModel[ClipperModel["Coordinamento"] = 11] = "Coordinamento";
51
+ ClipperModel[ClipperModel["AllerteAlimentari"] = 13] = "AllerteAlimentari";
52
+ ClipperModel[ClipperModel["MetodiDiAnalisi"] = 14] = "MetodiDiAnalisi";
53
+ ClipperModel[ClipperModel["Segnalazione"] = 20] = "Segnalazione";
54
+ })(ClipperModel || (ClipperModel = {}));
55
+ const ClipperModels = [
56
+ { value: ClipperModel.AggiornamentoNormativo, name: "Aggiornamento normativo" },
57
+ { value: ClipperModel.News, name: 'News' },
58
+ { value: ClipperModel.Articoli, name: 'Articoli' },
59
+ { value: ClipperModel.Juris, name: 'Juris' },
60
+ { value: ClipperModel.Quesiti, name: 'Quesiti' },
61
+ { value: ClipperModel.NormativaVigente, name: 'Normativa vigente' },
62
+ { value: ClipperModel.Scadenza, name: 'Scadenze' },
63
+ { value: ClipperModel.AllerteAlimentari, name: 'Allerte alimentari' },
64
+ { value: ClipperModel.MetodiDiAnalisi, name: 'Metodi di analisi' }
65
+ ];
66
+ const ClipperModuleGroups = [
67
+ { name: "", value: ClipperModuleGroup.Home },
68
+ { name: "Normativa vigente", value: ClipperModuleGroup.NormativaVigente },
69
+ { name: "Rimani aggiornato", value: ClipperModuleGroup.RimaniAggiornato },
70
+ { name: "Contributi", value: ClipperModuleGroup.Contributi },
71
+ { name: "DG Info", value: ClipperModuleGroup.DGInfo },
72
+ { name: "Calendario", value: ClipperModuleGroup.Calendario },
73
+ { name: "Archivio", value: ClipperModuleGroup.Archivio }
74
+ ];
75
+ const ClipperModules = [
76
+ { name: "Normativa vigente", value: ClipperModule.NormativaVigente, parentValue: ClipperModuleGroup.NormativaVigente },
77
+ { name: "News e approfondimenti", value: ClipperModule.News, parentValue: ClipperModuleGroup.RimaniAggiornato },
78
+ { name: "Gazzette, Bollettini e fonti deverse", value: ClipperModule.GazzetteBollettiniEFontiDiverse, parentValue: ClipperModuleGroup.RimaniAggiornato },
79
+ { name: "Giurisprudenza", value: ClipperModule.Giurisprudenza, parentValue: ClipperModuleGroup.RimaniAggiornato },
80
+ { name: "Modifiche, abrogazioni e rinvii", value: ClipperModule.ModificheAbrogazioniERinvii, parentValue: ClipperModuleGroup.RimaniAggiornato },
81
+ { name: "Scadenze e segnalazioni", value: ClipperModule.ScadenzeESegnalazioni, parentValue: ClipperModuleGroup.RimaniAggiornato },
82
+ { name: "Allerte alimentari", value: ClipperModule.AllerteAlimentari, parentValue: ClipperModuleGroup.RimaniAggiornato },
83
+ { name: "Approfondimenti", value: ClipperModule.Approfondimenti, parentValue: ClipperModuleGroup.Contributi },
84
+ { name: "Quesiti e casi risoli", value: ClipperModule.QuesitiECasiRisolti, parentValue: ClipperModuleGroup.Contributi },
85
+ { name: "Medodi di analisi", value: ClipperModule.MetodiDiAnalisi, parentValue: ClipperModuleGroup.Contributi }
86
+ ];
87
+ const ClipperChannels = [
88
+ { value: "LA", name: "Lavoro e Ambiente" },
89
+ { value: "SA", name: "Sostanze Alimentari" },
90
+ { value: "E", name: "Energia" },
91
+ { value: "OP", name: "Merci Pericolose" }
92
+ ];
93
+ const ClipperRegions = [
94
+ {
95
+ value: '4RAB',
96
+ name: 'Abruzzo',
97
+ },
98
+ {
99
+ value: '4RBA',
100
+ name: 'Basilicata',
101
+ },
102
+ {
103
+ value: '4RCAL',
104
+ name: 'Calabria',
105
+ },
106
+ {
107
+ value: '4RCAM',
108
+ name: 'Campania',
109
+ },
110
+ {
111
+ value: '4REM',
112
+ name: 'Emilia Romagna',
113
+ },
114
+ {
115
+ value: '4RFVG',
116
+ name: 'Friuli Venezia Giulia',
117
+ },
118
+ {
119
+ value: '4RLA',
120
+ name: 'Lazio',
121
+ },
122
+ {
123
+ value: '4RLI',
124
+ name: 'Liguria',
125
+ },
126
+ {
127
+ value: '4RLO',
128
+ name: 'Lombardia',
129
+ },
130
+ {
131
+ value: '4RMA',
132
+ name: 'Marche',
133
+ },
134
+ {
135
+ value: '4RMO',
136
+ name: 'Molise',
137
+ },
138
+ {
139
+ value: '4RPI',
140
+ name: 'Piemonte',
141
+ },
142
+ {
143
+ value: '4RPU',
144
+ name: 'Puglia',
145
+ },
146
+ {
147
+ value: '4RSA',
148
+ name: 'Sardegna',
149
+ },
150
+ {
151
+ value: '4RSI',
152
+ name: 'Sicilia',
153
+ },
154
+ {
155
+ value: '4RTO',
156
+ name: 'Toscana',
157
+ },
158
+ {
159
+ value: '4RTAA',
160
+ name: 'Trentino Alto Adige',
161
+ },
162
+ {
163
+ value: '4RUM',
164
+ name: 'Umbria',
165
+ },
166
+ {
167
+ value: '4RVA',
168
+ name: "Valle D'Aosta",
169
+ },
170
+ {
171
+ value: '4RVE',
172
+ name: 'Veneto',
173
+ },
174
+ {
175
+ value: '4PAT',
176
+ name: 'Prov. Aut. Trento',
177
+ },
178
+ {
179
+ value: '4PAB',
180
+ name: 'Prov. Aut. Bolzano',
181
+ }
182
+ ];
183
+ const ClipperSectors = [
184
+ {
185
+ value: 'LC',
186
+ name: 'Legislazione comunitaria',
187
+ shortName: 'Comunitaria',
188
+ group: 'S',
189
+ channels: '|LA|SA|OP|E|',
190
+ },
191
+ {
192
+ value: 'LN',
193
+ name: 'Legislazione nazionale',
194
+ shortName: 'Nazionale',
195
+ group: 'S',
196
+ channels: '|LA|SA|OP|E|',
197
+ },
198
+ {
199
+ value: 'LR',
200
+ name: 'Legislazione regionale',
201
+ shortName: 'Regionale',
202
+ group: 'S',
203
+ channels: '|LA|SA|OP|E|',
204
+ },
205
+ {
206
+ value: '4RAB',
207
+ name: ' Abruzzo',
208
+ group: 'A',
209
+ channels: '|LA|SA|OP|E|',
210
+ },
211
+ {
212
+ value: '4PAB',
213
+ name: ' Prov. Aut. Bolzano',
214
+ group: 'A',
215
+ channels: '|LA|SA|OP|E|',
216
+ },
217
+ {
218
+ value: '4RBA',
219
+ name: ' Basilicata',
220
+ group: 'A',
221
+ channels: '|LA|SA|OP|E|',
222
+ },
223
+ {
224
+ value: '4RCAL',
225
+ name: ' Calabria',
226
+ group: 'A',
227
+ channels: '|LA|SA|OP|E|',
228
+ },
229
+ {
230
+ value: '4RCAM',
231
+ name: ' Campania',
232
+ group: 'A',
233
+ channels: '|LA|SA|OP|E|',
234
+ },
235
+ {
236
+ value: '4REM',
237
+ name: ' Emilia Romagna',
238
+ group: 'A',
239
+ channels: '|LA|SA|OP|E|',
240
+ },
241
+ {
242
+ value: '4RFVG',
243
+ name: ' Friuli Venezia Giulia',
244
+ group: 'A',
245
+ channels: '|LA|SA|OP|E|',
246
+ },
247
+ {
248
+ value: '4RLA',
249
+ name: ' Lazio',
250
+ group: 'A',
251
+ channels: '|LA|SA|OP|E|',
252
+ },
253
+ {
254
+ value: '4RLI',
255
+ name: ' Liguria',
256
+ group: 'A',
257
+ channels: '|LA|SA|OP|E|',
258
+ },
259
+ {
260
+ value: '4RLO',
261
+ name: ' Lombardia',
262
+ group: 'A',
263
+ channels: '|LA|SA|OP|E|',
264
+ },
265
+ {
266
+ value: '4RMA',
267
+ name: ' Marche',
268
+ group: 'A',
269
+ channels: '|LA|SA|OP|E|',
270
+ },
271
+ {
272
+ value: '4RMO',
273
+ name: ' Molise',
274
+ group: 'A',
275
+ channels: '|LA|SA|OP|E|',
276
+ },
277
+ {
278
+ value: '4RPI',
279
+ name: ' Piemonte',
280
+ group: 'A',
281
+ channels: '|LA|SA|OP|E|',
282
+ },
283
+ {
284
+ value: '4RPU',
285
+ name: ' Puglia',
286
+ group: 'A',
287
+ channels: '|LA|SA|OP|E|',
288
+ },
289
+ {
290
+ value: '4RSA',
291
+ name: ' Sardegna',
292
+ group: 'A',
293
+ channels: '|LA|SA|OP|E|',
294
+ },
295
+ {
296
+ value: '4RSI',
297
+ name: ' Sicilia',
298
+ group: 'A',
299
+ channels: '|LA|SA|OP|E|',
300
+ },
301
+ {
302
+ value: '4RTO',
303
+ name: ' Toscana',
304
+ group: 'A',
305
+ channels: '|LA|SA|OP|E|',
306
+ },
307
+ {
308
+ value: '4RTAA',
309
+ name: ' Trentino Alto Adige',
310
+ group: 'A',
311
+ channels: '|LA|SA|OP|E|',
312
+ },
313
+ {
314
+ value: '4PAT',
315
+ name: ' Prov. Aut. Trento',
316
+ group: 'A',
317
+ channels: '|LA|SA|OP|E|',
318
+ },
319
+ {
320
+ value: '4RUM',
321
+ name: ' Umbria',
322
+ group: 'A',
323
+ channels: '|LA|SA|OP|E|',
324
+ },
325
+ {
326
+ value: '4RVA',
327
+ name: " Valle D'Aosta",
328
+ group: 'A',
329
+ channels: '|LA|SA|OP|E|',
330
+ },
331
+ {
332
+ value: '4RVE',
333
+ name: ' Veneto',
334
+ group: 'A',
335
+ channels: '|LA|SA|OP|E|',
336
+ },
337
+ {
338
+ value: 'GC',
339
+ name: 'Giurisprudenza comunitaria',
340
+ shortName: 'Giuris. comunitaria',
341
+ group: 'S',
342
+ channels: '|LA|SA|OP|E|',
343
+ },
344
+ {
345
+ value: 'GN',
346
+ name: 'Giurisprudenza nazionale',
347
+ shortName: 'Giurisprudenza',
348
+ group: 'S',
349
+ channels: '|LA|SA|OP|E|',
350
+ },
351
+ {
352
+ value: 'TN',
353
+ name: 'Normativa tecnica',
354
+ shortName: 'Tecnica',
355
+ group: 'S',
356
+ channels: '|LA|SA|OP|E|',
357
+ },
358
+ {
359
+ value: 'TI',
360
+ name: 'Normativa tecnica internazionale',
361
+ shortName: 'Tecnica internaz.',
362
+ group: 'S',
363
+ channels: '|LA|SA|OP|E|',
364
+ },
365
+ {
366
+ value: 'NI',
367
+ name: 'Normativa internazionale',
368
+ shortName: 'Internazionale',
369
+ group: 'S',
370
+ channels: '|LA|SA|OP|E|',
371
+ },
372
+ {
373
+ value: 'SN',
374
+ name: 'Documentazione scientifica',
375
+ shortName: 'Scientifica',
376
+ group: 'S',
377
+ channels: '|SA|',
378
+ },
379
+ ];
380
+ const ClipperSectorTypes = [
381
+ {
382
+ parentValue: 'NI',
383
+ value: '14',
384
+ name: 'Convenzione Internazionale',
385
+ },
386
+ {
387
+ parentValue: 'NI',
388
+ value: '6',
389
+ name: 'Accordo Multilaterale',
390
+ },
391
+ {
392
+ parentValue: 'LN',
393
+ value: '4',
394
+ name: 'Accordo (naz.)',
395
+ },
396
+ {
397
+ parentValue: 'LN',
398
+ value: '75',
399
+ name: 'Altri documenti (naz.)',
400
+ },
401
+ {
402
+ parentValue: 'LN',
403
+ value: '17',
404
+ name: 'Circolare Commissariale',
405
+ },
406
+ {
407
+ parentValue: 'LN',
408
+ value: '58',
409
+ name: 'Circolare (Comitati)',
410
+ },
411
+ {
412
+ parentValue: 'LN',
413
+ value: '10',
414
+ name: 'Circolare Ministeriale',
415
+ },
416
+ {
417
+ parentValue: 'LN',
418
+ value: '13',
419
+ name: 'Comunicato (naz.)',
420
+ },
421
+ {
422
+ parentValue: 'LN',
423
+ value: '15',
424
+ name: 'Costituzione della Repubblica',
425
+ },
426
+ {
427
+ parentValue: 'LN',
428
+ value: '18',
429
+ name: 'Decreto Commissariale',
430
+ },
431
+ {
432
+ parentValue: 'LN',
433
+ value: '21',
434
+ name: 'Decreto Capo Provv. Stato',
435
+ },
436
+ {
437
+ parentValue: 'LN',
438
+ value: '22',
439
+ name: 'Decreto Pres. Cons. Ministri',
440
+ },
441
+ {
442
+ parentValue: 'LN',
443
+ value: '25',
444
+ name: 'Decreto Presidente Repubblica',
445
+ },
446
+ {
447
+ parentValue: 'LN',
448
+ value: '27',
449
+ name: 'Decreto Legge',
450
+ },
451
+ {
452
+ parentValue: 'LN',
453
+ value: '28',
454
+ name: 'Decreto Legge Luogotenenziale',
455
+ },
456
+ {
457
+ parentValue: 'LN',
458
+ value: '29',
459
+ name: 'D.Lgs. Capo Provv. Stato',
460
+ },
461
+ {
462
+ parentValue: 'LN',
463
+ value: '30',
464
+ name: 'D.Lgs. Governo',
465
+ },
466
+ {
467
+ parentValue: 'LN',
468
+ value: '32',
469
+ name: 'D.Lgs. Luogotenenziale',
470
+ },
471
+ {
472
+ parentValue: 'LN',
473
+ value: '33',
474
+ name: 'Decreto Luogotenenziale',
475
+ },
476
+ {
477
+ parentValue: 'LN',
478
+ value: '34',
479
+ name: 'Decreto Ministeriale',
480
+ },
481
+ {
482
+ parentValue: 'LN',
483
+ value: '35',
484
+ name: 'Deliberazione (naz.)',
485
+ },
486
+ {
487
+ parentValue: 'LN',
488
+ value: '47',
489
+ name: 'Determinazione (naz.)',
490
+ },
491
+ {
492
+ parentValue: 'LN',
493
+ value: '26',
494
+ name: 'Documento di consultazione',
495
+ },
496
+ {
497
+ parentValue: 'LN',
498
+ value: '48',
499
+ name: 'Legge',
500
+ },
501
+ {
502
+ parentValue: 'LN',
503
+ value: '42',
504
+ name: 'Lettera Circolare (Comitati)',
505
+ },
506
+ {
507
+ parentValue: 'LN',
508
+ value: '43',
509
+ name: 'Lettera Circolare Ministeriale',
510
+ },
511
+ {
512
+ parentValue: 'LN',
513
+ value: '56',
514
+ name: 'Nota Ministeriale',
515
+ },
516
+ {
517
+ parentValue: 'LN',
518
+ value: '91',
519
+ name: 'Ordinanza Commissariale',
520
+ },
521
+ {
522
+ parentValue: 'LN',
523
+ value: '82',
524
+ name: 'Ordinanza Pres. Cons. Ministri',
525
+ },
526
+ {
527
+ parentValue: 'LN',
528
+ value: '57',
529
+ name: 'Ordinanza Ministeriale',
530
+ },
531
+ {
532
+ parentValue: 'LN',
533
+ value: '76',
534
+ name: 'Provvedimento (naz.)',
535
+ },
536
+ {
537
+ parentValue: 'LN',
538
+ value: '66',
539
+ name: 'Regio Decreto',
540
+ },
541
+ {
542
+ parentValue: 'LN',
543
+ value: '67',
544
+ name: 'Regio Decreto Legge',
545
+ },
546
+ {
547
+ parentValue: 'LN',
548
+ value: '68',
549
+ name: 'Regio Decreto Legislativo',
550
+ },
551
+ {
552
+ parentValue: 'LN',
553
+ value: '71',
554
+ name: 'Statuto delle Regioni Ordinarie',
555
+ },
556
+ {
557
+ parentValue: 'LC',
558
+ value: '2',
559
+ name: 'Accordi CEE/CE/UE con Stati terzi o altri soggetti',
560
+ },
561
+ {
562
+ parentValue: 'LC',
563
+ value: '7',
564
+ name: 'Atti diversi CEE/UE',
565
+ },
566
+ {
567
+ parentValue: 'LC',
568
+ value: '92',
569
+ name: 'Comunicazione CE',
570
+ },
571
+ {
572
+ parentValue: 'LC',
573
+ value: '87',
574
+ name: 'Decisione CEE/CEEA/CECA',
575
+ },
576
+ {
577
+ parentValue: 'LC',
578
+ value: '39',
579
+ name: 'Direttiva CEE/CEEA/CE',
580
+ },
581
+ {
582
+ parentValue: 'LC',
583
+ value: '89',
584
+ name: 'Parere CE',
585
+ },
586
+ {
587
+ parentValue: 'LC',
588
+ value: '95',
589
+ name: 'Raccomandazione CE',
590
+ },
591
+ {
592
+ parentValue: 'LC',
593
+ value: '64',
594
+ name: 'Regolamento CEE/UE',
595
+ },
596
+ {
597
+ parentValue: 'LC',
598
+ value: '96',
599
+ name: 'Risoluzione CE',
600
+ },
601
+ {
602
+ parentValue: 'LC',
603
+ value: '78',
604
+ name: 'Trattato CEE',
605
+ },
606
+ {
607
+ parentValue: 'LR',
608
+ value: '69',
609
+ name: 'Altri documenti (reg.)',
610
+ },
611
+ {
612
+ parentValue: 'LR',
613
+ value: '11',
614
+ name: 'Circolare Pres. Giunta Reg.',
615
+ },
616
+ {
617
+ parentValue: 'LR',
618
+ value: '46',
619
+ name: "Circolare dell'Assessore",
620
+ },
621
+ {
622
+ parentValue: 'LR',
623
+ value: '83',
624
+ name: 'Circolare reg.',
625
+ },
626
+ {
627
+ parentValue: 'LR',
628
+ value: '70',
629
+ name: 'Comunicato (reg.)',
630
+ },
631
+ {
632
+ parentValue: 'LR',
633
+ value: '80',
634
+ name: 'Decreto del Dirigente',
635
+ },
636
+ {
637
+ parentValue: 'LR',
638
+ value: '24',
639
+ name: 'Decreto Pres. Giunta Prov.',
640
+ },
641
+ {
642
+ parentValue: 'LR',
643
+ value: '23',
644
+ name: 'Decreto Pres. Giunta Reg.',
645
+ },
646
+ {
647
+ parentValue: 'LR',
648
+ value: '19',
649
+ name: "Decreto dell'Assessore Regionale",
650
+ },
651
+ {
652
+ parentValue: 'LR',
653
+ value: '31',
654
+ name: 'Delib. Consiglio Prov.',
655
+ },
656
+ {
657
+ parentValue: 'LR',
658
+ value: '36',
659
+ name: 'Delib. Consiglio Reg.',
660
+ },
661
+ {
662
+ parentValue: 'LR',
663
+ value: '37',
664
+ name: 'Delib. Giunta Prov.',
665
+ },
666
+ {
667
+ parentValue: 'LR',
668
+ value: '38',
669
+ name: 'Delib. Giunta Reg.',
670
+ },
671
+ {
672
+ parentValue: 'LR',
673
+ value: '81',
674
+ name: 'Determinazione del Dirigente',
675
+ },
676
+ {
677
+ parentValue: 'LR',
678
+ value: '12',
679
+ name: 'Direttiva (reg.)',
680
+ },
681
+ {
682
+ parentValue: 'LR',
683
+ value: '49',
684
+ name: 'Legge Prov. Aut.',
685
+ },
686
+ {
687
+ parentValue: 'LR',
688
+ value: '50',
689
+ name: 'Legge Regionale',
690
+ },
691
+ {
692
+ parentValue: 'LR',
693
+ value: '51',
694
+ name: 'Linee guida (reg.)',
695
+ },
696
+ {
697
+ parentValue: 'LR',
698
+ value: '9',
699
+ name: 'Ordinanza Pres. Prov.',
700
+ },
701
+ {
702
+ parentValue: 'LR',
703
+ value: '55',
704
+ name: 'Ordinanza Pres. Reg.',
705
+ },
706
+ {
707
+ parentValue: 'LR',
708
+ value: '85',
709
+ name: 'Provvedimento (reg.)',
710
+ },
711
+ {
712
+ parentValue: 'LR',
713
+ value: '65',
714
+ name: 'Regolamento Regionale',
715
+ },
716
+ {
717
+ parentValue: 'GN',
718
+ value: '63',
719
+ name: 'Decisione',
720
+ },
721
+ {
722
+ parentValue: 'GN',
723
+ value: '41',
724
+ name: 'Decreto Penale',
725
+ },
726
+ {
727
+ parentValue: 'GN',
728
+ value: '54',
729
+ name: 'Ordinanza',
730
+ },
731
+ {
732
+ parentValue: 'GN',
733
+ value: '62',
734
+ name: 'Ricorso',
735
+ },
736
+ {
737
+ parentValue: 'GN',
738
+ value: '72',
739
+ name: 'Sentenza',
740
+ },
741
+ {
742
+ parentValue: 'GC',
743
+ value: '88',
744
+ name: 'Ordinanza CE',
745
+ },
746
+ {
747
+ parentValue: 'GC',
748
+ value: '90',
749
+ name: 'Sentenza CE',
750
+ },
751
+ {
752
+ parentValue: 'TN',
753
+ value: '73',
754
+ name: 'Altri documenti (Enti ed Istituti)',
755
+ },
756
+ {
757
+ parentValue: 'TN',
758
+ value: '44',
759
+ name: 'Circolare (Enti ed Istituti)',
760
+ },
761
+ {
762
+ parentValue: 'TN',
763
+ value: '20',
764
+ name: 'Comunicato (Enti ed Istituti)',
765
+ },
766
+ {
767
+ parentValue: 'TN',
768
+ value: '60',
769
+ name: 'Decreto (Enti ed Istituti)',
770
+ },
771
+ {
772
+ parentValue: 'TN',
773
+ value: '40',
774
+ name: 'Delibera (Enti ed Istituti)',
775
+ },
776
+ {
777
+ parentValue: 'TN',
778
+ value: '53',
779
+ name: 'Fascicolo (Enti ed Istituti)',
780
+ },
781
+ {
782
+ parentValue: 'TN',
783
+ value: '45',
784
+ name: 'Istruzione Tecnica',
785
+ },
786
+ {
787
+ parentValue: 'TN',
788
+ value: '59',
789
+ name: 'Lettera Circolare (Enti ed Istituti)',
790
+ },
791
+ {
792
+ parentValue: 'TN',
793
+ value: '79',
794
+ name: 'Linee guida (Enti ed Istituti)',
795
+ },
796
+ {
797
+ parentValue: 'TN',
798
+ value: '98',
799
+ name: 'Norma Tecnica',
800
+ },
801
+ {
802
+ parentValue: 'TN',
803
+ value: '97',
804
+ name: 'Opuscolo Tecnico',
805
+ },
806
+ {
807
+ parentValue: 'TN',
808
+ value: '77',
809
+ name: 'Pubblicazione (Enti ed Istituti)',
810
+ },
811
+ {
812
+ parentValue: 'TN',
813
+ value: '86',
814
+ name: 'Quaderno',
815
+ },
816
+ {
817
+ parentValue: 'TN',
818
+ value: '52',
819
+ name: 'Regolamento (Enti ed Istituti)',
820
+ },
821
+ {
822
+ parentValue: 'TN',
823
+ value: '84',
824
+ name: 'Istruzione Operativa (Enti e Istituti)',
825
+ },
826
+ {
827
+ parentValue: 'TN',
828
+ value: '94',
829
+ name: 'Nota (Enti e Istituti)',
830
+ },
831
+ {
832
+ parentValue: 'NI',
833
+ value: '104',
834
+ name: 'Regolamento UNECE',
835
+ },
836
+ {
837
+ parentValue: 'SN',
838
+ value: '105',
839
+ name: 'Documento',
840
+ },
841
+ {
842
+ parentValue: 'TN',
843
+ value: '106',
844
+ name: 'Direttiva (Enti e Istituti)',
845
+ },
846
+ {
847
+ parentValue: 'TN',
848
+ value: '74',
849
+ name: 'Prassi di riferimento',
850
+ },
851
+ {
852
+ parentValue: 'LN',
853
+ value: '16',
854
+ name: 'Linee guida (naz.)',
855
+ },
856
+ {
857
+ parentValue: 'LN',
858
+ value: '3',
859
+ name: 'Direttiva (naz.)',
860
+ },
861
+ {
862
+ parentValue: 'TI',
863
+ value: '107',
864
+ name: 'Normativa Tecnica Internazionale',
865
+ },
866
+ ];
867
+ const ClipperAuthors = [
868
+ {
869
+ sectorId: 'LR',
870
+ channels: null,
871
+ value: '4RAB',
872
+ name: 'Abruzzo',
873
+ },
874
+ {
875
+ sectorId: 'LR',
876
+ channels: null,
877
+ value: '4RBA',
878
+ name: 'Basilicata',
879
+ },
880
+ {
881
+ sectorId: 'LR',
882
+ channels: null,
883
+ value: '4RCAL',
884
+ name: 'Calabria',
885
+ },
886
+ {
887
+ sectorId: 'LR',
888
+ channels: null,
889
+ value: '4RCAM',
890
+ name: 'Campania',
891
+ },
892
+ {
893
+ sectorId: 'LR',
894
+ channels: null,
895
+ value: '4REM',
896
+ name: 'Emilia Romagna',
897
+ },
898
+ {
899
+ sectorId: 'LR',
900
+ channels: null,
901
+ value: '4RFVG',
902
+ name: 'Friuli Venezia Giulia',
903
+ },
904
+ {
905
+ sectorId: 'LR',
906
+ channels: null,
907
+ value: '4RLA',
908
+ name: 'Lazio',
909
+ },
910
+ {
911
+ sectorId: 'LR',
912
+ channels: null,
913
+ value: '4RLI',
914
+ name: 'Liguria',
915
+ },
916
+ {
917
+ sectorId: 'LR',
918
+ channels: null,
919
+ value: '4RLO',
920
+ name: 'Lombardia',
921
+ },
922
+ {
923
+ sectorId: 'LR',
924
+ channels: null,
925
+ value: '4RMA',
926
+ name: 'Marche',
927
+ },
928
+ {
929
+ sectorId: 'LR',
930
+ channels: null,
931
+ value: '4RMO',
932
+ name: 'Molise',
933
+ },
934
+ {
935
+ sectorId: 'LR',
936
+ channels: null,
937
+ value: '4RPI',
938
+ name: 'Piemonte',
939
+ },
940
+ {
941
+ sectorId: 'LR',
942
+ channels: null,
943
+ value: '4RPU',
944
+ name: 'Puglia',
945
+ },
946
+ {
947
+ sectorId: 'LR',
948
+ channels: null,
949
+ value: '4RSA',
950
+ name: 'Sardegna',
951
+ },
952
+ {
953
+ sectorId: 'LR',
954
+ channels: null,
955
+ value: '4RSI',
956
+ name: 'Sicilia',
957
+ },
958
+ {
959
+ sectorId: 'LR',
960
+ channels: null,
961
+ value: '4RTO',
962
+ name: 'Toscana',
963
+ },
964
+ {
965
+ sectorId: 'LR',
966
+ channels: null,
967
+ value: '4RTAA',
968
+ name: 'Trentino Trentino Alto Adige',
969
+ },
970
+ {
971
+ sectorId: 'LR',
972
+ channels: null,
973
+ value: '4RUM',
974
+ name: 'Umbria',
975
+ },
976
+ {
977
+ sectorId: 'LR',
978
+ channels: null,
979
+ value: '4RVA',
980
+ name: "Valle D'Aosta",
981
+ },
982
+ {
983
+ sectorId: 'LR',
984
+ channels: null,
985
+ value: '4RVE',
986
+ name: 'Veneto',
987
+ },
988
+ {
989
+ sectorId: 'LR',
990
+ channels: null,
991
+ value: '4PAB',
992
+ name: 'Prov. Autonoma di Bolzano',
993
+ },
994
+ {
995
+ sectorId: 'LR',
996
+ channels: null,
997
+ value: '4PAT',
998
+ name: 'Prov. Autonoma di Trento',
999
+ },
1000
+ {
1001
+ sectorId: 'TN',
1002
+ channels: '|LA|',
1003
+ value: '6CEI',
1004
+ name: 'C.E.I. - Comitato Elettrotecnico Italiano',
1005
+ },
1006
+ {
1007
+ sectorId: 'TN',
1008
+ channels: '|LA|SA|',
1009
+ value: '6CNR',
1010
+ name: 'C.N.R. - Consiglio Nazionale delle Ricerche',
1011
+ },
1012
+ {
1013
+ sectorId: 'TN',
1014
+ channels: '|LA|',
1015
+ value: '6ENPI',
1016
+ name: 'E.N.P.I. - Ente Nazionale Prevenzione Infortuni',
1017
+ },
1018
+ {
1019
+ sectorId: 'TN',
1020
+ channels: '|LA|',
1021
+ value: '6INAI',
1022
+ name: 'I.N.A.I.L. - Istituto nazionale Assicurazione Infortuni sul Lavoro',
1023
+ },
1024
+ {
1025
+ sectorId: 'TN',
1026
+ channels: '|LA|',
1027
+ value: '6ISPS',
1028
+ name: 'I.S.P.E.S.L. - Istituto Superiore per la Prevenzione e la Sicurezza del Lavoro',
1029
+ },
1030
+ {
1031
+ sectorId: 'TN',
1032
+ channels: '|LA|',
1033
+ value: '6INPS',
1034
+ name: 'I.N.P.S. - Istituto Nazionale Previdenza Sociale',
1035
+ },
1036
+ {
1037
+ sectorId: 'TN',
1038
+ channels: '|LA|SA|',
1039
+ value: '6ISS',
1040
+ name: 'I.S.S. - Istituto Superiore di Sanità',
1041
+ },
1042
+ {
1043
+ sectorId: 'TN',
1044
+ channels: '|LA|SA|',
1045
+ value: '6UNI',
1046
+ name: 'U.N.I. - Ente Nazionale Italiano di Unificazione',
1047
+ },
1048
+ {
1049
+ sectorId: 'GN',
1050
+ channels: null,
1051
+ value: '5CC',
1052
+ name: 'Corte Costituzionale',
1053
+ },
1054
+ {
1055
+ sectorId: 'GN',
1056
+ channels: null,
1057
+ value: '5CCC',
1058
+ name: 'Corte di Cassazione Civile',
1059
+ },
1060
+ {
1061
+ sectorId: 'GN',
1062
+ channels: null,
1063
+ value: '5CCP',
1064
+ name: 'Corte di Cassazione Penale',
1065
+ },
1066
+ {
1067
+ sectorId: 'GN',
1068
+ channels: null,
1069
+ value: '5CASA',
1070
+ name: "Corte d'Assise d'Appello",
1071
+ },
1072
+ {
1073
+ sectorId: 'GN',
1074
+ channels: null,
1075
+ value: '5CAS',
1076
+ name: "Corte d'Assise",
1077
+ },
1078
+ {
1079
+ sectorId: 'GN',
1080
+ channels: null,
1081
+ value: '5CA',
1082
+ name: "Corte d'Appello",
1083
+ },
1084
+ {
1085
+ sectorId: 'GN',
1086
+ channels: null,
1087
+ value: '5PCA',
1088
+ name: "Procura Generale Corte d'Appello",
1089
+ },
1090
+ {
1091
+ sectorId: 'GN',
1092
+ channels: null,
1093
+ value: '5GDP',
1094
+ name: 'Giudice di Pace',
1095
+ },
1096
+ {
1097
+ sectorId: 'GN',
1098
+ channels: null,
1099
+ value: '5PR',
1100
+ name: 'Procura della Repubblica',
1101
+ },
1102
+ {
1103
+ sectorId: 'GN',
1104
+ channels: null,
1105
+ value: '5T',
1106
+ name: 'Tribunale',
1107
+ },
1108
+ {
1109
+ sectorId: 'GN',
1110
+ channels: null,
1111
+ value: '5P',
1112
+ name: 'Pretura',
1113
+ },
1114
+ {
1115
+ sectorId: 'GN',
1116
+ channels: null,
1117
+ value: '5CDS',
1118
+ name: 'Consiglio di Stato',
1119
+ },
1120
+ {
1121
+ sectorId: 'GN',
1122
+ channels: null,
1123
+ value: '5TAR',
1124
+ name: 'Tribunale Amministrativo Regionale',
1125
+ },
1126
+ {
1127
+ sectorId: 'GN',
1128
+ channels: null,
1129
+ value: '5TSA',
1130
+ name: 'Tribunale Superiore delle Acque',
1131
+ },
1132
+ {
1133
+ sectorId: 'GN',
1134
+ channels: null,
1135
+ value: '5TGA',
1136
+ name: 'Tribunale Regionale acque',
1137
+ },
1138
+ {
1139
+ sectorId: 'GN',
1140
+ channels: null,
1141
+ value: '5CTP',
1142
+ name: 'Commissione Tributaria Provinciale',
1143
+ },
1144
+ {
1145
+ sectorId: 'GN',
1146
+ channels: null,
1147
+ value: '5CTR',
1148
+ name: 'Commissione Tributaria Regionale',
1149
+ },
1150
+ {
1151
+ sectorId: 'GN',
1152
+ channels: null,
1153
+ value: '5CGAS',
1154
+ name: 'Cons. di Giustizia Amm.va della Sicilia',
1155
+ },
1156
+ {
1157
+ sectorId: 'GN',
1158
+ channels: null,
1159
+ value: '5CDC',
1160
+ name: 'Corte dei Conti',
1161
+ },
1162
+ {
1163
+ sectorId: 'GC',
1164
+ channels: null,
1165
+ value: '3CJCE',
1166
+ name: 'Corte di Giustizia CEE/CE',
1167
+ },
1168
+ {
1169
+ sectorId: 'GC',
1170
+ channels: null,
1171
+ value: '3CEDM',
1172
+ name: "Corte Europea per i Diritti dell'Uomo",
1173
+ },
1174
+ {
1175
+ sectorId: 'GC',
1176
+ channels: null,
1177
+ value: '3CWJ',
1178
+ name: 'Corte Internazionale di Giustizia',
1179
+ },
1180
+ {
1181
+ sectorId: 'GC',
1182
+ channels: null,
1183
+ value: '3T1CE',
1184
+ name: 'Tribunale di Primo Grado CEE/CE',
1185
+ },
1186
+ ];
1187
+ const ClipperSources = [
1188
+ {
1189
+ value: 'ACCML',
1190
+ name: 'Accordi Multilaterali',
1191
+ },
1192
+ {
1193
+ value: 'AEEG',
1194
+ name: "Sito Autorità per l'Energia Elettrica, il Gas e il Sistema Idrico",
1195
+ },
1196
+ {
1197
+ value: 'ARERA',
1198
+ name: 'Sito Autorità di Regolazione per Energia, Reti e Ambiente',
1199
+ },
1200
+ {
1201
+ value: 'BUR',
1202
+ name: 'Bollettino Uff. Regione',
1203
+ },
1204
+ {
1205
+ value: 'BUS',
1206
+ name: 'Suppl. speciale al Bollettino Uff.',
1207
+ },
1208
+ {
1209
+ value: 'BUSO',
1210
+ name: 'Suppl. ordin. al Bollettino Uff.',
1211
+ },
1212
+ {
1213
+ value: 'BUSS',
1214
+ name: 'Suppl. straord. al Bollettino Uff.',
1215
+ },
1216
+ {
1217
+ value: 'GU',
1218
+ name: 'Gazzetta Ufficiale Italiana',
1219
+ },
1220
+ {
1221
+ value: 'GUCC',
1222
+ name: 'Gazz. Uff. Corte Costituzionale',
1223
+ },
1224
+ {
1225
+ value: 'GUCE',
1226
+ name: 'Gazzetta ufficiale delle Comunità europee',
1227
+ },
1228
+ {
1229
+ value: 'GUES',
1230
+ name: 'Gazz. Uff. Ediz. Speciale',
1231
+ },
1232
+ {
1233
+ value: 'GURS',
1234
+ name: 'Gazz. Uff. Regione Sicilia',
1235
+ },
1236
+ {
1237
+ value: 'GUS',
1238
+ name: 'Gazz. Uff. Serie Speciale',
1239
+ },
1240
+ {
1241
+ value: 'GUSO',
1242
+ name: 'Suppl. ordin. alla Gazzetta Ufficiale',
1243
+ },
1244
+ {
1245
+ value: 'GUSS',
1246
+ name: 'Suppl. straord. alla Gazzetta Ufficiale',
1247
+ },
1248
+ {
1249
+ value: 'GUUE',
1250
+ name: 'Gazzetta ufficiale dell’Unione europea',
1251
+ },
1252
+ {
1253
+ value: 'MAC',
1254
+ name: 'Massimario Civile',
1255
+ },
1256
+ {
1257
+ value: 'MAP',
1258
+ name: 'Massimario Penale',
1259
+ },
1260
+ {
1261
+ value: 'NONE',
1262
+ name: 'Fonti diverse',
1263
+ }
1264
+ ];
1265
+ const ClipperDocumentChangeReason = [
1266
+ { name: 'Abrogazione', value: 1 },
1267
+ { name: 'Annullamento', value: 5 },
1268
+ { name: 'Modifica', value: 2 },
1269
+ { name: 'Sostiuzione', value: 3 },
1270
+ { name: 'Segnalazione', value: 6 },
1271
+ { name: 'Rettifica', value: 7 },
1272
+ ];
1273
+ class ClipperSearchResult {
1274
+ constructor() {
1275
+ this.days = null;
1276
+ this.interval = null;
1277
+ this.items = null;
1278
+ this.facets = null;
1279
+ this.total = null;
1280
+ this.searchInfo = null;
1281
+ this.searchParams = null;
1282
+ this.snapshotMode = null;
1283
+ }
1284
+ }
1285
+ class ClipperSearchFacetsSnapshot {
1286
+ constructor() {
1287
+ this.groups = [];
1288
+ this.usedGroups = [];
1289
+ this.hasFacets = false;
1290
+ this.hasTooManyResults = false;
1291
+ this.sector = null;
1292
+ this.author = null;
1293
+ this.anchor = null;
1294
+ this.type = null;
1295
+ this.reason = null;
1296
+ this.fromDate = null;
1297
+ this.toDate = null;
1298
+ this.interval = null;
1299
+ this.changedInterval = false;
1300
+ this.changedSector = false;
1301
+ this.changedAuthor = false;
1302
+ this.changedAnchor = false;
1303
+ this.changedType = false;
1304
+ this.changedReason = false;
1305
+ }
1306
+ }
1307
+ class ClipperSearchCalendarSnapshotResult {
1308
+ constructor() {
1309
+ this.months = null;
1310
+ }
1311
+ }
1312
+ const ClipperConfig = {
1313
+ // Client uri
1314
+ uri: null,
1315
+ // Service uri
1316
+ serviceUri: null,
1317
+ // Global state
1318
+ loggedIn: false,
1319
+ loginInfo: null
1381
1320
  };
1321
+ var ClipperSort;
1322
+ (function (ClipperSort) {
1323
+ ClipperSort[ClipperSort["Default"] = 0] = "Default";
1324
+ ClipperSort[ClipperSort["Relevance"] = 1] = "Relevance";
1325
+ ClipperSort[ClipperSort["DateAsc"] = 2] = "DateAsc";
1326
+ ClipperSort[ClipperSort["DateDesc"] = 3] = "DateDesc";
1327
+ ClipperSort[ClipperSort["SourceDateAsc"] = 4] = "SourceDateAsc";
1328
+ ClipperSort[ClipperSort["SourceDateDesc"] = 5] = "SourceDateDesc";
1329
+ ClipperSort[ClipperSort["Popularity"] = 6] = "Popularity";
1330
+ })(ClipperSort || (ClipperSort = {}));
1331
+ var ClipperDocumentSnapshotMode;
1332
+ (function (ClipperDocumentSnapshotMode) {
1333
+ ClipperDocumentSnapshotMode[ClipperDocumentSnapshotMode["ReferencesIn"] = 1] = "ReferencesIn";
1334
+ ClipperDocumentSnapshotMode[ClipperDocumentSnapshotMode["ReferencesOut"] = 2] = "ReferencesOut";
1335
+ ClipperDocumentSnapshotMode[ClipperDocumentSnapshotMode["ChangesIn"] = 3] = "ChangesIn";
1336
+ ClipperDocumentSnapshotMode[ClipperDocumentSnapshotMode["ChangesOut"] = 5] = "ChangesOut";
1337
+ ClipperDocumentSnapshotMode[ClipperDocumentSnapshotMode["Juris"] = 4] = "Juris";
1338
+ })(ClipperDocumentSnapshotMode || (ClipperDocumentSnapshotMode = {}));
1339
+ var ClipperFacet;
1340
+ (function (ClipperFacet) {
1341
+ ClipperFacet[ClipperFacet["Sector"] = 1] = "Sector";
1342
+ ClipperFacet[ClipperFacet["Year"] = 2] = "Year";
1343
+ ClipperFacet[ClipperFacet["DocumentType"] = 3] = "DocumentType";
1344
+ ClipperFacet[ClipperFacet["Topic"] = 4] = "Topic";
1345
+ ClipperFacet[ClipperFacet["Article"] = 5] = "Article";
1346
+ ClipperFacet[ClipperFacet["Author"] = 6] = "Author";
1347
+ ClipperFacet[ClipperFacet["Reason"] = 95] = "Reason";
1348
+ })(ClipperFacet || (ClipperFacet = {}));
1349
+ class ClipperUtils {
1350
+ /**
1351
+ * Return the Clipper group name
1352
+ * @param value: the group value
1353
+ * @returns the group name
1354
+ */
1355
+ static getClipperModuleGroupName(value) {
1356
+ return ClipperModuleGroups.filter((n) => n.value === value)?.[0].name;
1357
+ }
1358
+ /**
1359
+ * Return the list of modules of a group
1360
+ * @param value: the module name
1361
+ * @returns the list of modules
1362
+ */
1363
+ static getClipperModuleGroupItems(value) {
1364
+ return ClipperModules.filter((n) => n.parentValue === value);
1365
+ }
1366
+ /**
1367
+ * Return the list of available sort options for a list of modules
1368
+ * @param modules : the modules list
1369
+ * @returns the list of availbale sort options
1370
+ */
1371
+ static getClipperAvailableSortOptions(modules = undefined, params = undefined) {
1372
+ const options = [
1373
+ { name: "Data decrescente", value: 1 },
1374
+ { name: "Data crescente", value: 2 },
1375
+ { name: "Data fonte decrescente", value: 3 },
1376
+ { name: "Data fonte crescente", value: 4 },
1377
+ { name: "Rilevanza", value: 5 },
1378
+ { name: "Popolarità", value: 6 },
1379
+ ];
1380
+ let sortOptions = [];
1381
+ if (params && ClipperSearchUtils.isTextQuery(params)) {
1382
+ sortOptions.push(options[4]);
1383
+ }
1384
+ if (modules && modules.length > 0 && modules.length === 1) {
1385
+ if (modules[0].value === ClipperModule.NormativaVigente) {
1386
+ sortOptions.push(options[0]);
1387
+ sortOptions.push(options[1]);
1388
+ sortOptions.push(options[2]);
1389
+ sortOptions.push(options[3]);
1390
+ sortOptions.push(options[5]);
1391
+ }
1392
+ else if (modules[0].value === ClipperModule.GazzetteBollettiniEFontiDiverse) {
1393
+ sortOptions.push(options[2]);
1394
+ sortOptions.push(options[3]);
1395
+ }
1396
+ else {
1397
+ sortOptions.push(options[0]);
1398
+ sortOptions.push(options[1]);
1399
+ }
1400
+ }
1401
+ else {
1402
+ sortOptions.push(options[0]);
1403
+ sortOptions.push(options[1]);
1404
+ }
1405
+ return sortOptions;
1406
+ }
1407
+ }
1408
+ class ClipperSearchUtils {
1409
+ /**
1410
+ * Clear the search params object
1411
+ * @param params : the search params to clear
1412
+ */
1413
+ static clear(params) {
1414
+ params.sector = null;
1415
+ params.sectors = null;
1416
+ params.author = null;
1417
+ params.authors = null;
1418
+ params.topic = null;
1419
+ params.taxonomy = null;
1420
+ params.taxonomyPath = null;
1421
+ params.taxonomyNode = null;
1422
+ params.number = null;
1423
+ params.fromDate = null;
1424
+ params.toDate = null;
1425
+ params.year = null;
1426
+ params.sourceNumber = null;
1427
+ params.source = null;
1428
+ params.sourceFromDate = null;
1429
+ params.sourceToDate = null;
1430
+ params.sourceYear = null;
1431
+ params.text = null;
1432
+ params.titleOnly = false;
1433
+ params.type = null;
1434
+ params.showUnreadDocumentsOnly = false;
1435
+ params.showCommentedDocumentsOnly = false;
1436
+ params.channels = [...ClipperChannels];
1437
+ params.changeReason = null;
1438
+ params.changedNumber = null;
1439
+ params.changedYear = null;
1440
+ params.changedTitle = null;
1441
+ params.modifierNumber = null;
1442
+ params.modifierYear = null;
1443
+ params.modifierTitle = null;
1444
+ }
1445
+ /**
1446
+ * Prepare the module specific query
1447
+ * @param params : the search params to use
1448
+ * @param module : the module to prepare the search params for
1449
+ * @returns the new search params
1450
+ */
1451
+ static prepare(params, module) {
1452
+ let moduleParams = {};
1453
+ moduleParams.channels = params.channels;
1454
+ moduleParams.text = params.text;
1455
+ moduleParams.titleOnly = params.titleOnly;
1456
+ moduleParams.first = params.first;
1457
+ moduleParams.count = params.count;
1458
+ moduleParams.sortMode = params.sortMode;
1459
+ switch (module) {
1460
+ case ClipperModule.ScadenzeESegnalazioni:
1461
+ case ClipperModule.QuesitiECasiRisolti:
1462
+ break;
1463
+ case ClipperModule.News:
1464
+ case ClipperModule.AllerteAlimentari:
1465
+ moduleParams.fromDate = params.fromDate;
1466
+ moduleParams.toDate = params.toDate;
1467
+ break;
1468
+ case ClipperModule.GazzetteBollettiniEFontiDiverse:
1469
+ case ClipperModule.NormativaVigente:
1470
+ moduleParams.sector = params.sector;
1471
+ moduleParams.sectors = params.sectors;
1472
+ moduleParams.author = params.author;
1473
+ moduleParams.authors = params.authors;
1474
+ moduleParams.type = params.type;
1475
+ moduleParams.topic = params.topic;
1476
+ moduleParams.number = params.number;
1477
+ moduleParams.year = params.year;
1478
+ moduleParams.fromDate = params.fromDate;
1479
+ moduleParams.toDate = params.toDate;
1480
+ moduleParams.showCommentedDocumentsOnly = params.showCommentedDocumentsOnly;
1481
+ moduleParams.source = params.source;
1482
+ moduleParams.sourceNumber = params.sourceNumber;
1483
+ moduleParams.sourceYear = params.sourceYear;
1484
+ moduleParams.sourceFromDate = params.sourceFromDate;
1485
+ moduleParams.sourceToDate = params.sourceToDate;
1486
+ break;
1487
+ case ClipperModule.Giurisprudenza:
1488
+ moduleParams.sector = params.sector;
1489
+ moduleParams.sectors = params.sectors;
1490
+ moduleParams.number = params.number;
1491
+ moduleParams.year = params.year;
1492
+ moduleParams.fromDate = params.fromDate;
1493
+ moduleParams.toDate = params.toDate;
1494
+ break;
1495
+ }
1496
+ return moduleParams;
1497
+ }
1498
+ /**
1499
+ * Check if current filter is a text based search
1500
+ * @param params : the search params to check
1501
+ * @returns true if is a text based search
1502
+ */
1503
+ static isTextQuery(params) {
1504
+ return params.text != null && params.text?.length > 0;
1505
+ }
1506
+ /**
1507
+ * Try to add a query
1508
+ * @param q : the new query
1509
+ * @param queries : the new query
1510
+ */
1511
+ static concatTextQuery(q, queries) {
1512
+ if (q && q.length > 0) {
1513
+ if (queries.length == 0 && (q[0] === '+' || q[0] === '-'))
1514
+ q = q.substring(1);
1515
+ if (q[q.length - 1] !== '\"' && q.indexOf(' ') !== -1)
1516
+ q = "\"" + q + "\"";
1517
+ if (queries.length > 0)
1518
+ queries += ", ";
1519
+ queries += q;
1520
+ }
1521
+ return queries;
1522
+ }
1523
+ /**
1524
+ * Normalize text query
1525
+ * @param text : the text query to normalize
1526
+ * @returns : the text normalized or null
1527
+ */
1528
+ static normalizeTextQuery(text) {
1529
+ if (!text || text.length === 0)
1530
+ return null;
1531
+ let q = '';
1532
+ let queries = '';
1533
+ for (let i = 0; i < text.length; i++) {
1534
+ if (text[i] === ',') {
1535
+ queries = this.concatTextQuery(q.trim(), queries);
1536
+ q = '';
1537
+ }
1538
+ else
1539
+ q += text[i];
1540
+ }
1541
+ queries = this.concatTextQuery(q.trim(), queries);
1542
+ return queries;
1543
+ }
1544
+ }
1382
1545
 
1383
1546
  const ClipperMessages = {
1384
1547
  /**
@@ -1394,6 +1557,11 @@ const ClipperMessages = {
1394
1557
  DOCUMENT_NAVIGATED: '$clipper-document-navigated',
1395
1558
  DOCUMENT_SELECTED: '$clipper-document-selected',
1396
1559
  DOCUMENT_SELECTED_INNER: '$clipper-document-selected_inner',
1560
+ // COMMANDS
1561
+ COMMAND_ARCHIVE_ADD: '$clipper-command-archive-add',
1562
+ COMMAND_CALENDAR_ADD: '$clipper-command-calendar-add',
1563
+ COMMAND_WORKING_ADD: '$clipper-command-working-documents-add',
1564
+ COMMAND_SEARCH_RESTORED: '$clipper-command-search-restored',
1397
1565
  // Interop
1398
1566
  INTEROP_RS_NEW_LAW: '$clipper-interop-rs-new-law',
1399
1567
  INTEROP_RS_NEW_ACTIVITY: '$clipper-interop-rs-new-activity',
@@ -1464,11 +1632,11 @@ class ClipperService {
1464
1632
  set servicePrefix(value) {
1465
1633
  this._servicePrefix = value;
1466
1634
  }
1467
- constructor(http, $broadcast, $dialog) {
1468
- this.http = http;
1469
- this.$broadcast = $broadcast;
1470
- this.$dialog = $dialog;
1635
+ constructor() {
1471
1636
  this.REFRESH_INTERVAL = 60000 * 50; //50 min
1637
+ this.httpClient = inject(HttpClient);
1638
+ this.broadcastService = inject(BroadcastService);
1639
+ this.dialogService = inject(DialogService);
1472
1640
  this.refreshing = false;
1473
1641
  this._loginInfo = null;
1474
1642
  this._loggedIn = false;
@@ -1482,10 +1650,12 @@ class ClipperService {
1482
1650
  }
1483
1651
  ngOnDestroy() {
1484
1652
  // Clean-up
1485
- if (this.tokenRefreshTimerSubscription)
1653
+ if (this.tokenRefreshTimerSubscription) {
1486
1654
  this.tokenRefreshTimerSubscription.unsubscribe();
1487
- if (this.messageWatcher)
1488
- this.messageWatcher.unsubscribe();
1655
+ }
1656
+ if (this.broadcastServiceSubscription) {
1657
+ this.broadcastServiceSubscription.unsubscribe();
1658
+ }
1489
1659
  }
1490
1660
  /**
1491
1661
  * Initialize service
@@ -1501,15 +1671,15 @@ class ClipperService {
1501
1671
  this._serviceUri = serviceUri;
1502
1672
  this._servicePrefix = servicePrefix;
1503
1673
  // React to message broadcasting
1504
- if (!this.messageWatcher) {
1505
- this.messageWatcher = this.$broadcast.getMessage().subscribe((message) => {
1674
+ if (!this.broadcastServiceSubscription) {
1675
+ this.broadcastServiceSubscription = this.broadcastService.getMessage().subscribe((message) => {
1506
1676
  if (message.id === ClipperMessages.LOGIN_CHANGED) {
1507
1677
  setTimeout(() => {
1508
1678
  this.login(message.data.email, message.data.password, message.data.oauth, message.data.oauthAccessToken).subscribe((r) => {
1509
1679
  if (!r.success)
1510
- this.$dialog.error(r.message, null, "Errore di Clipper");
1680
+ this.dialogService.error(r.message, null, "Errore di Clipper");
1511
1681
  else {
1512
- this.$dialog.toast('Connesso a Clipper', 1500, 'power');
1682
+ this.dialogService.toast('Connesso a Clipper', 1500, 'power');
1513
1683
  // Load bag
1514
1684
  this.loadBag();
1515
1685
  }
@@ -1522,9 +1692,9 @@ class ClipperService {
1522
1692
  this.logout().subscribe({
1523
1693
  next: (r) => {
1524
1694
  if (!r.success)
1525
- this.$dialog.error("<p>" + r.message + "</p><br><br><hr><p class='small'><i>Per eliminare la configurazione di Clipper accedere a:<br><b>menu > personalizza > collegamenti</b></i></p>", null, "Errore di Clipper");
1695
+ this.dialogService.error("<p>" + r.message + "</p><br><br><hr><p class='small'><i>Per eliminare la configurazione di Clipper accedere a:<br><b>menu > personalizza > collegamenti</b></i></p>", null, "Errore di Clipper");
1526
1696
  else {
1527
- this.$dialog.toast('Disconnesso da Clipper', 1500, 'power_off');
1697
+ this.dialogService.toast('Disconnesso da Clipper', 1500, 'power_off');
1528
1698
  // Clear bag
1529
1699
  this._bag = null;
1530
1700
  }
@@ -1616,7 +1786,7 @@ class ClipperService {
1616
1786
  login(email = null, password = null, oauth = null, oauthAccessToken = null) {
1617
1787
  this.clear();
1618
1788
  this.loggingIn = true;
1619
- return this.http
1789
+ return this.httpClient
1620
1790
  .post(this._serviceUri + '/login', {
1621
1791
  user: oauth ? null : email,
1622
1792
  password: oauth ? null : password,
@@ -1665,7 +1835,7 @@ class ClipperService {
1665
1835
  * Perform logout
1666
1836
  */
1667
1837
  logout() {
1668
- return this.http.post(this._serviceUri + '/logout', {}).pipe(map((r) => { return r; }), catchError((_e) => {
1838
+ return this.httpClient.post(this._serviceUri + '/logout', {}).pipe(map((r) => { return r; }), catchError((_e) => {
1669
1839
  this.clear();
1670
1840
  return of([]);
1671
1841
  }));
@@ -1698,7 +1868,7 @@ class ClipperService {
1698
1868
  * Perform token refresh
1699
1869
  */
1700
1870
  refresh() {
1701
- return this.http.post(this._serviceUri + '/refresh', {}).pipe(map((r) => {
1871
+ return this.httpClient.post(this._serviceUri + '/refresh', {}).pipe(map((r) => {
1702
1872
  // Update token
1703
1873
  this.setToken(r.value.token);
1704
1874
  }));
@@ -1708,73 +1878,73 @@ class ClipperService {
1708
1878
  * @param id: the optional repository id
1709
1879
  */
1710
1880
  newOTP(id) {
1711
- return this.http.get(this._serviceUri + '/otp/new/?id=' + id);
1881
+ return this.httpClient.get(this._serviceUri + '/otp/new/?id=' + id);
1712
1882
  }
1713
1883
  /**
1714
1884
  * Load home personalized contents
1715
1885
  */
1716
1886
  home() {
1717
- return this.http.get(this._serviceUri + '/account/home');
1887
+ return this.httpClient.get(this._serviceUri + '/account/home');
1718
1888
  }
1719
1889
  /**
1720
1890
  * Query documents
1721
1891
  */
1722
1892
  query(params) {
1723
- return this.http.post(this._serviceUri + '/documents', params);
1893
+ return this.httpClient.post(this._serviceUri + '/documents', params);
1724
1894
  }
1725
1895
  /**
1726
1896
  * Get facets for a query
1727
1897
  */
1728
1898
  queryFacets(params) {
1729
- return this.http.post(this._serviceUri + '/documents/facets', params);
1899
+ return this.httpClient.post(this._serviceUri + '/documents/facets', params);
1730
1900
  }
1731
1901
  /**
1732
1902
  * Export a document in pdf format
1733
1903
  */
1734
1904
  exportPdf(id) {
1735
- return this.http.get(this._serviceUri + '/documents/export/' + id, { responseType: 'blob' });
1905
+ return this.httpClient.get(this._serviceUri + '/documents/export/' + id, { responseType: 'blob' });
1736
1906
  }
1737
1907
  /**
1738
1908
  * Export document list (query or selected items) or export deadlines as ics
1739
1909
  */
1740
1910
  export(params) {
1741
- return this.http.post(this._serviceUri + '/documents/export', params, { responseType: 'blob' });
1911
+ return this.httpClient.post(this._serviceUri + '/documents/export', params, { responseType: 'blob' });
1742
1912
  }
1743
1913
  /**
1744
1914
  * Send documents link by email
1745
1915
  */
1746
1916
  sendTo(params) {
1747
- return this.http.post(this._serviceUri + '/documents/send', params);
1917
+ return this.httpClient.post(this._serviceUri + '/documents/send', params);
1748
1918
  }
1749
1919
  /**
1750
1920
  * Display a page the full document report
1751
1921
  */
1752
1922
  report(id) {
1753
- return this.http.get(this._serviceUri + '/documents/report/' + id, { responseType: 'blob' });
1923
+ return this.httpClient.get(this._serviceUri + '/documents/report/' + id, { responseType: 'blob' });
1754
1924
  }
1755
1925
  /**
1756
1926
  * Get document comment
1757
1927
  */
1758
1928
  comment(id) {
1759
- return this.http.get(this._serviceUri + '/documents/comment/' + id);
1929
+ return this.httpClient.get(this._serviceUri + '/documents/comment/' + id);
1760
1930
  }
1761
1931
  /**
1762
1932
  * Get document info
1763
1933
  */
1764
1934
  info(id) {
1765
- return this.http.get(this._serviceUri + '/documents/info/' + id);
1935
+ return this.httpClient.get(this._serviceUri + '/documents/info/' + id);
1766
1936
  }
1767
1937
  /**
1768
1938
  * Get document structure
1769
1939
  */
1770
1940
  index(id) {
1771
- return this.http.get(this._serviceUri + '/documents/structure/' + id);
1941
+ return this.httpClient.get(this._serviceUri + '/documents/structure/' + id);
1772
1942
  }
1773
1943
  /**
1774
1944
  * Get document last update
1775
1945
  */
1776
1946
  lastUpdate(id) {
1777
- return this.http.get(this._serviceUri + '/documents/last-update/' + id);
1947
+ return this.httpClient.get(this._serviceUri + '/documents/last-update/' + id);
1778
1948
  }
1779
1949
  /**
1780
1950
  * Query document references
@@ -1782,17 +1952,17 @@ class ClipperService {
1782
1952
  references(params) {
1783
1953
  let mode = params.mode;
1784
1954
  if (!mode)
1785
- mode = ClipperDefinitions.SM_REFERENCES_IN;
1955
+ mode = ClipperDocumentSnapshotMode.ReferencesIn;
1786
1956
  switch (mode) {
1787
- case ClipperDefinitions.SM_REFERENCES_IN:
1788
- case ClipperDefinitions.SM_REFERENCES_OUT:
1957
+ case ClipperDocumentSnapshotMode.ReferencesIn:
1958
+ case ClipperDocumentSnapshotMode.ReferencesOut:
1789
1959
  params.mode = mode;
1790
- return this.http.post(this._serviceUri + '/documents/references', params);
1791
- case ClipperDefinitions.SM_CHANGES_IN:
1792
- case ClipperDefinitions.SM_CHANGES_OUT:
1793
- return this.http.post(this._serviceUri + '/documents/changes', params);
1794
- case ClipperDefinitions.SM_JURIS:
1795
- return this.http.post(this._serviceUri + '/documents/juris', params);
1960
+ return this.httpClient.post(this._serviceUri + '/documents/references', params);
1961
+ case ClipperDocumentSnapshotMode.ChangesIn:
1962
+ case ClipperDocumentSnapshotMode.ChangesOut:
1963
+ return this.httpClient.post(this._serviceUri + '/documents/changes', params);
1964
+ case ClipperDocumentSnapshotMode.Juris:
1965
+ return this.httpClient.post(this._serviceUri + '/documents/juris', params);
1796
1966
  default:
1797
1967
  return null;
1798
1968
  }
@@ -1803,17 +1973,17 @@ class ClipperService {
1803
1973
  referencesFacets(params) {
1804
1974
  let mode = params.mode;
1805
1975
  if (!mode)
1806
- mode = ClipperDefinitions.SM_REFERENCES_IN;
1976
+ mode = ClipperDocumentSnapshotMode.ReferencesIn;
1807
1977
  switch (mode) {
1808
- case ClipperDefinitions.SM_REFERENCES_IN:
1809
- case ClipperDefinitions.SM_REFERENCES_OUT:
1978
+ case ClipperDocumentSnapshotMode.ReferencesIn:
1979
+ case ClipperDocumentSnapshotMode.ReferencesOut:
1810
1980
  params.mode = mode;
1811
- return this.http.post(this._serviceUri + '/documents/references/facets', params);
1812
- case ClipperDefinitions.SM_CHANGES_IN:
1813
- case ClipperDefinitions.SM_CHANGES_OUT:
1814
- return this.http.post(this._serviceUri + '/documents/changes/facets', params);
1815
- case ClipperDefinitions.SM_JURIS:
1816
- return this.http.post(this._serviceUri + '/documents/juris/facets', params);
1981
+ return this.httpClient.post(this._serviceUri + '/documents/references/facets', params);
1982
+ case ClipperDocumentSnapshotMode.ChangesIn:
1983
+ case ClipperDocumentSnapshotMode.ChangesOut:
1984
+ return this.httpClient.post(this._serviceUri + '/documents/changes/facets', params);
1985
+ case ClipperDocumentSnapshotMode.Juris:
1986
+ return this.httpClient.post(this._serviceUri + '/documents/juris/facets', params);
1817
1987
  default: return null;
1818
1988
  }
1819
1989
  }
@@ -1821,7 +1991,7 @@ class ClipperService {
1821
1991
  * Get document juris articles
1822
1992
  */
1823
1993
  jurisArticles(params) {
1824
- return this.http.post(this._serviceUri + '/documents/juris/articles', params);
1994
+ return this.httpClient.post(this._serviceUri + '/documents/juris/articles', params);
1825
1995
  }
1826
1996
  /**
1827
1997
  * Convert folders in a tree of Node object.
@@ -1860,23 +2030,23 @@ class ClipperService {
1860
2030
  if (params == null) {
1861
2031
  params = { documentModel: 0, countItems: false };
1862
2032
  }
1863
- return this.http.post(this._serviceUri + '/taxonomy', params);
2033
+ return this.httpClient.post(this._serviceUri + '/taxonomy', params);
1864
2034
  }
1865
2035
  /**
1866
2036
  * Retrieve topics
1867
2037
  */
1868
2038
  getTopics() {
1869
- return this.http.get(this._serviceUri + '/topics');
2039
+ return this.httpClient.get(this._serviceUri + '/topics');
1870
2040
  }
1871
2041
  /**
1872
2042
  * Load bag
1873
2043
  */
1874
2044
  loadBag() {
1875
- this.http
2045
+ this.httpClient
1876
2046
  .get(this._serviceUri + '/documents/working')
1877
2047
  .subscribe((r) => {
1878
2048
  if (!r.success)
1879
- this.$dialog.error(r.message);
2049
+ this.dialogService.error(r.message);
1880
2050
  else {
1881
2051
  if (r.value) {
1882
2052
  this._bag = [];
@@ -1892,11 +2062,11 @@ class ClipperService {
1892
2062
  * @param ids the document ids to add
1893
2063
  */
1894
2064
  addToBag(ids) {
1895
- return this.http
2065
+ return this.httpClient
1896
2066
  .post(this._serviceUri + '/documents/working/add', { documentIds: ids })
1897
2067
  .pipe(map((r) => {
1898
2068
  if (!r.success)
1899
- this.$dialog.error(r.message);
2069
+ this.dialogService.error(r.message);
1900
2070
  else {
1901
2071
  if (r.value) {
1902
2072
  r.value.forEach((n) => {
@@ -1912,11 +2082,11 @@ class ClipperService {
1912
2082
  * @param id : the document id
1913
2083
  */
1914
2084
  removeFromBag(id) {
1915
- return this.http
2085
+ return this.httpClient
1916
2086
  .post(this._serviceUri + '/documents/working/delete', { documentIds: [id] })
1917
2087
  .pipe(map((r) => {
1918
2088
  if (!r.success)
1919
- this.$dialog.error(r.message);
2089
+ this.dialogService.error(r.message);
1920
2090
  else {
1921
2091
  let p = SystemUtils.arrayFindIndexByKey(this._bag, 'DocumentId', id);
1922
2092
  if (p !== -1) {
@@ -1926,7 +2096,7 @@ class ClipperService {
1926
2096
  }
1927
2097
  }));
1928
2098
  }
1929
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: ClipperService, deps: [{ token: i1.HttpClient }, { token: i2.BroadcastService }, { token: i3.DialogService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2099
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: ClipperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1930
2100
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: ClipperService, providedIn: 'root' }); }
1931
2101
  }
1932
2102
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: ClipperService, decorators: [{
@@ -1934,19 +2104,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImpor
1934
2104
  args: [{
1935
2105
  providedIn: 'root',
1936
2106
  }]
1937
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.BroadcastService }, { type: i3.DialogService }] });
2107
+ }], ctorParameters: () => [] });
1938
2108
 
1939
2109
  class ClipperAuthInterceptor {
1940
- constructor($clipper, $dialog) {
1941
- this.$clipper = $clipper;
1942
- this.$dialog = $dialog;
2110
+ constructor() {
2111
+ this.clipperService = inject(ClipperService);
2112
+ this.dialogService = inject(DialogService);
1943
2113
  }
1944
2114
  intercept(request, next) {
1945
2115
  // Add width-credentials
1946
2116
  request = request.clone({ withCredentials: true });
1947
2117
  return next.handle(this.addTokenToRequest(request))
1948
2118
  .pipe(catchError$1((err) => {
1949
- if (request.url.startsWith(this.$clipper.serviceUri)) {
2119
+ if (request.url.startsWith(this.clipperService.serviceUri)) {
1950
2120
  // Get the message
1951
2121
  let message = err.error?.message || err.message || "Impossibile eseguire l'operazione richiesta.";
1952
2122
  let invalidSession = err.status === 401;
@@ -1968,10 +2138,10 @@ class ClipperAuthInterceptor {
1968
2138
  // Display message
1969
2139
  if (message) {
1970
2140
  setTimeout(() => {
1971
- this.$dialog.error(message, null, 'Errore in Clipper', 'Ok', 500, invalidSession ? 5000 : null).afterClosed().subscribe(() => {
2141
+ this.dialogService.error(message, null, 'Errore in Clipper', 'Ok', 500, invalidSession ? 5000 : null).afterClosed().subscribe(() => {
1972
2142
  if (invalidSession) {
1973
- if (this.$clipper.loggedIn) {
1974
- this.$clipper.reset();
2143
+ if (this.clipperService.loggedIn) {
2144
+ this.clipperService.reset();
1975
2145
  }
1976
2146
  }
1977
2147
  });
@@ -1987,9 +2157,9 @@ class ClipperAuthInterceptor {
1987
2157
  * @param token: the token or null to use curre3nt
1988
2158
  */
1989
2159
  addTokenToRequest(request, token = null) {
1990
- if (request.url.startsWith(this.$clipper.serviceUri)) {
2160
+ if (request.url.startsWith(this.clipperService.serviceUri)) {
1991
2161
  if (!token)
1992
- token = this.$clipper.getToken();
2162
+ token = this.clipperService.getToken();
1993
2163
  if (token) {
1994
2164
  return request.clone({
1995
2165
  setHeaders: {
@@ -2001,81 +2171,12 @@ class ClipperAuthInterceptor {
2001
2171
  }
2002
2172
  return request;
2003
2173
  }
2004
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: ClipperAuthInterceptor, deps: [{ token: ClipperService }, { token: i3.DialogService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2174
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: ClipperAuthInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2005
2175
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: ClipperAuthInterceptor }); }
2006
2176
  }
2007
2177
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: ClipperAuthInterceptor, decorators: [{
2008
2178
  type: Injectable
2009
- }], ctorParameters: () => [{ type: ClipperService }, { type: i3.DialogService }] });
2010
-
2011
- class SearchUtils {
2012
- static clear(params) {
2013
- params.sector = null;
2014
- params.author = null;
2015
- params.topic = null;
2016
- params.taxonomy = null;
2017
- params.taxonomyPath = null;
2018
- params.taxonomyNode = null;
2019
- params.year = null;
2020
- params.number = null;
2021
- params.fromDate = null;
2022
- params.toDate = null;
2023
- params.sourceNumber = null;
2024
- params.source = null;
2025
- params.sourceFromDate = null;
2026
- params.sourceToDate = null;
2027
- params.text = null;
2028
- params.titleOnly = false;
2029
- params.type = null;
2030
- params.showUnreadDocumentsOnly = false;
2031
- params.reason = null;
2032
- params.changedNumber = null;
2033
- params.changedYear = null;
2034
- params.changedTitle = null;
2035
- params.modifierNumber = null;
2036
- params.modifierYear = null;
2037
- params.modifierTitle = null;
2038
- }
2039
- /**
2040
- * Try to add a query
2041
- * @param q : the new query
2042
- * @param queries : the new query
2043
- * @returns
2044
- */
2045
- static concatTextQuery(q, queries) {
2046
- if (q && q.length > 0) {
2047
- if (queries.length == 0 && (q[0] === '+' || q[0] === '-'))
2048
- q = q.substring(1);
2049
- if (q[q.length - 1] !== '\"' && q.indexOf(' ') !== -1)
2050
- q = "\"" + q + "\"";
2051
- if (queries.length > 0)
2052
- queries += ", ";
2053
- queries += q;
2054
- }
2055
- return queries;
2056
- }
2057
- /**
2058
- * Normalize text query
2059
- * @param text : the text query to normalize
2060
- * @returns : the text normalized
2061
- */
2062
- static normalizeTextQuery(text) {
2063
- if (!text || text.length === 0)
2064
- return null;
2065
- let q = '';
2066
- let queries = '';
2067
- for (let i = 0; i < text.length; i++) {
2068
- if (text[i] === ',') {
2069
- queries = this.concatTextQuery(q.trim(), queries);
2070
- q = '';
2071
- }
2072
- else
2073
- q += text[i];
2074
- }
2075
- queries = this.concatTextQuery(q.trim(), queries);
2076
- return queries;
2077
- }
2078
- }
2179
+ }] });
2079
2180
 
2080
2181
  class ArsClipperCommonModule {
2081
2182
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.3", ngImport: i0, type: ArsClipperCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
@@ -2102,5 +2203,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImpor
2102
2203
  * Generated bundle index. Do not edit.
2103
2204
  */
2104
2205
 
2105
- export { ArsClipperCommonModule, ClipperDefinitions, ClipperMessages, ClipperSelectionMode, ClipperService, SearchUtils };
2206
+ export { ArsClipperCommonModule, ClipperAuthors, ClipperChannels, ClipperConfig, ClipperDocumentChangeReason, ClipperDocumentSnapshotMode, ClipperFacet, ClipperMessages, ClipperModel, ClipperModels, ClipperModule, ClipperModuleGroup, ClipperModuleGroups, ClipperModules, ClipperRegions, ClipperSearchCalendarSnapshotResult, ClipperSearchFacetsSnapshot, ClipperSearchResult, ClipperSearchUtils, ClipperSectorTypes, ClipperSectors, ClipperSelectionMode, ClipperService, ClipperSort, ClipperSources, ClipperUtils };
2106
2207
  //# sourceMappingURL=arsedizioni-ars-utils-clipper.common.mjs.map