@arsedizioni/ars-utils 18.2.364 → 18.2.370

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 (97) hide show
  1. package/clipper.ui/ui/document-menu/document-menu.component.d.ts +1 -1
  2. package/esm2022/clipper.common/common/common.module.mjs +4 -4
  3. package/esm2022/clipper.common/common/definitions.mjs +11 -11
  4. package/esm2022/clipper.common/common/interceptors/auth.interceptor.mjs +3 -3
  5. package/esm2022/clipper.common/common/services/clipper.service.mjs +17 -17
  6. package/esm2022/clipper.ui/ui/browser-dialog/browser-dialog.component.mjs +5 -5
  7. package/esm2022/clipper.ui/ui/document/document.component.mjs +3 -3
  8. package/esm2022/clipper.ui/ui/document-index/document-index.component.mjs +3 -3
  9. package/esm2022/clipper.ui/ui/document-manager/document-manager.mjs +3 -3
  10. package/esm2022/clipper.ui/ui/document-menu/document-menu.component.mjs +6 -6
  11. package/esm2022/clipper.ui/ui/references/references.component.mjs +5 -5
  12. package/esm2022/clipper.ui/ui/search-calendar/search-calendar.component.mjs +3 -3
  13. package/esm2022/clipper.ui/ui/search-dialog/search-dialog.component.mjs +5 -5
  14. package/esm2022/clipper.ui/ui/search-facets/search-facets.component.mjs +3 -3
  15. package/esm2022/clipper.ui/ui/search-free-text-help/search-free-text-help.component.mjs +3 -3
  16. package/esm2022/clipper.ui/ui/search-free-text-query-builder/search-free-text-query-builder.component.mjs +3 -3
  17. package/esm2022/clipper.ui/ui/search-result-item/search-result-item.component.mjs +4 -4
  18. package/esm2022/clipper.ui/ui/search-result-manager/search-result-manager.mjs +3 -3
  19. package/esm2022/core/core.module.mjs +8 -8
  20. package/esm2022/core/dateFnsAdapter.mjs +3 -3
  21. package/esm2022/core/directives/autoFocusDirective.mjs +3 -3
  22. package/esm2022/core/directives/changeDateIntervalDirective.mjs +3 -3
  23. package/esm2022/core/directives/copyClipboardDirective.mjs +4 -4
  24. package/esm2022/core/directives/validators.mjs +33 -33
  25. package/esm2022/core/pipes/format.pipe.mjs +4 -4
  26. package/esm2022/core/pipes/replace.pipe.mjs +4 -4
  27. package/esm2022/core/pipes/safe-html.pipe.mjs +4 -4
  28. package/esm2022/core/pipes/safe-url.pipe.mjs +4 -4
  29. package/esm2022/core/pipes/search-callback.pipe.mjs +3 -3
  30. package/esm2022/core/pipes/search-filter.pipe.mjs +4 -4
  31. package/esm2022/core/services/broadcast.service.mjs +3 -3
  32. package/esm2022/core/services/environment.service.mjs +3 -3
  33. package/esm2022/core/services/screen.service.mjs +3 -3
  34. package/esm2022/core/services/theme.service.mjs +3 -3
  35. package/esm2022/help/components/help-viewer/help-viewer.component.mjs +7 -7
  36. package/esm2022/help/help.module.mjs +4 -4
  37. package/esm2022/help/services/help.service.mjs +3 -3
  38. package/esm2022/support.common/common/common.module.mjs +4 -4
  39. package/esm2022/support.common/common/interceptors/auth.interceptor.mjs +41 -35
  40. package/esm2022/support.common/common/messages.mjs +2 -1
  41. package/esm2022/support.common/common/services/support.service.mjs +27 -69
  42. package/esm2022/support.ui/ui/notifications-browser/notification/notification.component.mjs +3 -3
  43. package/esm2022/support.ui/ui/notifications-browser/notifications-browser.component.mjs +4 -4
  44. package/esm2022/tinymce/full-screen-editor/full-screen-editor.component.mjs +3 -3
  45. package/esm2022/tinymce/tinymce.module.mjs +4 -4
  46. package/esm2022/ui/ui/dialogs/busy/busy-dialog.component.mjs +3 -3
  47. package/esm2022/ui/ui/dialogs/confirm/confirm-dialog.component.mjs +4 -4
  48. package/esm2022/ui/ui/dialogs/credentials/credentials-dialog.component.mjs +4 -4
  49. package/esm2022/ui/ui/dialogs/info/info-dialog.component.mjs +3 -3
  50. package/esm2022/ui/ui/dialogs/recover-password/recover-password-dialog.component.mjs +3 -3
  51. package/esm2022/ui/ui/dialogs/reset-password/reset-password-dialog.component.mjs +3 -3
  52. package/esm2022/ui/ui/dialogs/toast/toast.component.mjs +3 -3
  53. package/esm2022/ui/ui/paginatorIntl.mjs +3 -3
  54. package/esm2022/ui/ui/services/dialog.service.mjs +3 -3
  55. package/esm2022/ui/ui/services/ui.service.mjs +3 -3
  56. package/esm2022/ui/ui/ui.module.mjs +4 -4
  57. package/esm2022/ui.application/ui/components/button-selector/button-selector.component.mjs +3 -3
  58. package/esm2022/ui.application/ui/components/button-toggle/button-toggle.component.mjs +3 -3
  59. package/esm2022/ui.application/ui/components/calendar-empty-header/calendar-empy-header.component.mjs +3 -3
  60. package/esm2022/ui.application/ui/components/chips-selector/chips-selector.component.mjs +3 -3
  61. package/esm2022/ui.application/ui/components/file-input/file-input.component.mjs +3 -3
  62. package/esm2022/ui.application/ui/components/file-preview/file-preview.component.mjs +3 -3
  63. package/esm2022/ui.application/ui/components/filter-bar/filter-bar.component.mjs +3 -3
  64. package/esm2022/ui.application/ui/dialogs/prompt/prompt-dialog.component.mjs +4 -4
  65. package/esm2022/ui.application/ui/dialogs/prompt-date/prompt-date-dialog.component.mjs +4 -4
  66. package/esm2022/ui.application/ui/dialogs/prompt-time/prompt-time-dialog.component.mjs +3 -3
  67. package/esm2022/ui.application/ui/dialogs/select/select-dialog.component.mjs +4 -4
  68. package/esm2022/ui.application/ui/dialogs/select-file/select-file-dialog.component.mjs +4 -4
  69. package/esm2022/ui.application/ui/dialogs/select-picture/select-picture-dialog.component.mjs +4 -4
  70. package/esm2022/ui.application/ui/dialogs/select-tree/select-tree-dialog.component.mjs +7 -7
  71. package/esm2022/ui.application/ui/dialogs/send-to/send-to-dialog.component.mjs +4 -4
  72. package/esm2022/ui.application/ui/directives/resize-table-column.directive.mjs +3 -3
  73. package/esm2022/ui.application/ui/services/applicationDialog.service.mjs +3 -3
  74. package/esm2022/ui.application/ui/ui.module.mjs +4 -4
  75. package/esm2022/ui.oauth/ui/components/login/login-oauth.component.mjs +3 -3
  76. package/esm2022/ui.oauth/ui/ui.module.mjs +4 -4
  77. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +33 -33
  78. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  79. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +44 -44
  80. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  81. package/fesm2022/arsedizioni-ars-utils-core.mjs +89 -89
  82. package/fesm2022/arsedizioni-ars-utils-help.mjs +13 -13
  83. package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
  84. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +68 -106
  85. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  86. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +6 -6
  87. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs.map +1 -1
  88. package/fesm2022/arsedizioni-ars-utils-tinymce.mjs +7 -7
  89. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +58 -58
  90. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
  91. package/fesm2022/arsedizioni-ars-utils-ui.mjs +34 -34
  92. package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
  93. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +7 -7
  94. package/package.json +7 -7
  95. package/support.common/common/interceptors/auth.interceptor.d.ts +8 -0
  96. package/support.common/common/messages.d.ts +1 -0
  97. package/support.common/common/services/support.service.d.ts +13 -24
@@ -1593,17 +1593,17 @@ class ClipperDashboard {
1593
1593
  this.unreadItems = computed(() => {
1594
1594
  const states = [];
1595
1595
  let totalUnread = 0;
1596
- this.items().filter(x => x.id == ClipperModule.News
1596
+ this.items().filter((x) => x.id == ClipperModule.News
1597
1597
  || x.id === ClipperModule.Approfondimenti
1598
- || x.id === ClipperModule.Giurisprudenza).forEach(x => {
1598
+ || x.id === ClipperModule.Giurisprudenza).forEach((x) => {
1599
1599
  totalUnread += x.unreadItems ?? 0;
1600
1600
  });
1601
1601
  states.push([ClipperModule.News, totalUnread]);
1602
- states.push([ClipperModule.GazzetteBollettiniEFontiDiverse, this.items().find(x => x.id == ClipperModule.GazzetteBollettiniEFontiDiverse)?.unreadItems ?? 0]);
1603
- states.push([ClipperModule.Giurisprudenza, this.items().find(x => x.id == ClipperModule.Giurisprudenza)?.unreadItems ?? 0]);
1604
- states.push([ClipperModule.ModificheAbrogazioniERinvii, this.items().find(x => x.id == ClipperModule.ModificheAbrogazioniERinvii)?.unreadItems ?? 0]);
1605
- states.push([ClipperModule.AllerteAlimentari, this.items().find(x => x.id == ClipperModule.AllerteAlimentari)?.unreadItems ?? 0]);
1606
- states.push([ClipperModule.QuesitiECasiRisolti, this.items().find(x => x.id == ClipperModule.QuesitiECasiRisolti)?.unreadItems ?? 0]);
1602
+ states.push([ClipperModule.GazzetteBollettiniEFontiDiverse, this.items().find((x) => x.id == ClipperModule.GazzetteBollettiniEFontiDiverse)?.unreadItems ?? 0]);
1603
+ states.push([ClipperModule.Giurisprudenza, this.items().find((x) => x.id == ClipperModule.Giurisprudenza)?.unreadItems ?? 0]);
1604
+ states.push([ClipperModule.ModificheAbrogazioniERinvii, this.items().find((x) => x.id == ClipperModule.ModificheAbrogazioniERinvii)?.unreadItems ?? 0]);
1605
+ states.push([ClipperModule.AllerteAlimentari, this.items().find((x) => x.id == ClipperModule.AllerteAlimentari)?.unreadItems ?? 0]);
1606
+ states.push([ClipperModule.QuesitiECasiRisolti, this.items().find((x) => x.id == ClipperModule.QuesitiECasiRisolti)?.unreadItems ?? 0]);
1607
1607
  return states;
1608
1608
  });
1609
1609
  }
@@ -1613,10 +1613,10 @@ class ClipperDashboard {
1613
1613
  * @param increment : the increment (can be negative)
1614
1614
  */
1615
1615
  updateUnreadItems(module, increment) {
1616
- let item = this.items()?.find(x => x.id == module);
1616
+ let item = this.items()?.find((x) => x.id == module);
1617
1617
  if (item) {
1618
1618
  item.unreadItems += increment;
1619
- this.items.update(values => [...values]);
1619
+ this.items.update((values) => [...values]);
1620
1620
  }
1621
1621
  }
1622
1622
  /***
@@ -1625,7 +1625,7 @@ class ClipperDashboard {
1625
1625
  * @returns the module unread items
1626
1626
  */
1627
1627
  getUnreadItems(module) {
1628
- return this.unreadItems()?.find(x => x[0] === module)?.[1];
1628
+ return this.unreadItems()?.find((x) => x[0] === module)?.[1];
1629
1629
  }
1630
1630
  }
1631
1631
  class ClipperUtils {
@@ -1906,10 +1906,10 @@ class ClipperService {
1906
1906
  this._serviceUri = serviceUri;
1907
1907
  // React to message broadcasting
1908
1908
  if (!this.broadcastServiceSubscription) {
1909
- this.broadcastServiceSubscription = this.broadcastService.getMessage().subscribe(message => {
1909
+ this.broadcastServiceSubscription = this.broadcastService.getMessage().subscribe((message) => {
1910
1910
  if (message.id === ClipperMessages.LOGIN_CHANGED) {
1911
1911
  setTimeout(() => {
1912
- this.login(message.data.email, message.data.password, true, message.data.oauth, message.data.oauthAccessToken).subscribe(r => {
1912
+ this.login(message.data.email, message.data.password, true, message.data.oauth, message.data.oauthAccessToken).subscribe((r) => {
1913
1913
  if (!r.success)
1914
1914
  this.dialogService.error(r.message, null, "Errore di Clipper");
1915
1915
  else {
@@ -1923,7 +1923,7 @@ class ClipperService {
1923
1923
  else if (message.id === ClipperMessages.LOGOUT_COMPLETED ||
1924
1924
  message.id === ClipperMessages.LOGIN_DISCONNECTED) {
1925
1925
  if (this.loggedIn()) {
1926
- this.logout().subscribe(r => {
1926
+ this.logout().subscribe((r) => {
1927
1927
  if (!r.success) {
1928
1928
  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");
1929
1929
  }
@@ -1990,7 +1990,7 @@ class ClipperService {
1990
1990
  this.loggingIn.set(false);
1991
1991
  localStorage.removeItem('clipper_login');
1992
1992
  return throwError(() => err);
1993
- }), map(r => {
1993
+ }), map((r) => {
1994
1994
  this.loggingIn.set(false);
1995
1995
  if (r.success) {
1996
1996
  // Store access token
@@ -2053,7 +2053,7 @@ class ClipperService {
2053
2053
  * Perform token refresh
2054
2054
  */
2055
2055
  refresh() {
2056
- return this.httpClient.get(this._serviceUri + '/refresh2/?token=' + this.getToken(true)).pipe(map(r => {
2056
+ return this.httpClient.get(this._serviceUri + '/refresh2/?token=' + this.getToken(true)).pipe(map((r) => {
2057
2057
  // Update token
2058
2058
  this.setToken(r.value);
2059
2059
  }));
@@ -2220,7 +2220,7 @@ class ClipperService {
2220
2220
  */
2221
2221
  loadDashboard() {
2222
2222
  this.httpClient
2223
- .post(this._serviceUri + '/account/dashboard', { refreshing: true }).subscribe(r => {
2223
+ .post(this._serviceUri + '/account/dashboard', { refreshing: true }).subscribe((r) => {
2224
2224
  if (r.success) {
2225
2225
  this.dashboard.documentUpdates = r.value.documentUpdates;
2226
2226
  this.dashboard.expiredDeadlines = r.value.expiredDeadlines;
@@ -2267,7 +2267,7 @@ class ClipperService {
2267
2267
  loadBag() {
2268
2268
  return this.httpClient
2269
2269
  .get(this.serviceUri + '/documents/working')
2270
- .subscribe(r => {
2270
+ .subscribe((r) => {
2271
2271
  if (!r.success) {
2272
2272
  this.dialogService.error(r.message);
2273
2273
  }
@@ -2298,7 +2298,7 @@ class ClipperService {
2298
2298
  addToBag(documentIds) {
2299
2299
  return this.httpClient
2300
2300
  .post(this.serviceUri + '/documents/working/add', { documentIds: documentIds })
2301
- .subscribe(r => {
2301
+ .subscribe((r) => {
2302
2302
  if (!r.success) {
2303
2303
  this.dialogService.error(r.message);
2304
2304
  }
@@ -2318,7 +2318,7 @@ class ClipperService {
2318
2318
  }
2319
2319
  });
2320
2320
  if (newItems.length > 0) {
2321
- this.bag.update(values => [...values, ...newItems]);
2321
+ this.bag.update((values) => [...values, ...newItems]);
2322
2322
  }
2323
2323
  this.dialogService.toast('Operazione completata con successo.');
2324
2324
  }
@@ -2332,14 +2332,14 @@ class ClipperService {
2332
2332
  removeFromBag(documentId) {
2333
2333
  return this.httpClient
2334
2334
  .post(this.serviceUri + '/documents/working/delete', { documentIds: [documentId] })
2335
- .subscribe(r => {
2335
+ .subscribe((r) => {
2336
2336
  if (!r.success) {
2337
2337
  this.dialogService.error(r.message);
2338
2338
  }
2339
2339
  else {
2340
- const p = this.bag().findIndex(n => n.documentId === documentId);
2340
+ const p = this.bag().findIndex((n) => n.documentId === documentId);
2341
2341
  if (p !== -1) {
2342
- this.bag.update(values => {
2342
+ this.bag.update((values) => {
2343
2343
  values.splice(p, 1);
2344
2344
  return [...values];
2345
2345
  });
@@ -2354,7 +2354,7 @@ class ClipperService {
2354
2354
  clearBag() {
2355
2355
  return this.httpClient
2356
2356
  .post(this.serviceUri + '/documents/working/delete', { deleteAll: true })
2357
- .subscribe(r => {
2357
+ .subscribe((r) => {
2358
2358
  if (!r.success) {
2359
2359
  this.dialogService.error(r.message);
2360
2360
  }
@@ -2391,10 +2391,10 @@ class ClipperService {
2391
2391
  return this.httpClient
2392
2392
  .post(this.serviceUri + '/documents/searches/delete', { id: id });
2393
2393
  }
2394
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ClipperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2395
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ClipperService, providedIn: 'root' }); }
2394
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.1", ngImport: i0, type: ClipperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2395
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.1", ngImport: i0, type: ClipperService, providedIn: 'root' }); }
2396
2396
  }
2397
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ClipperService, decorators: [{
2397
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.1", ngImport: i0, type: ClipperService, decorators: [{
2398
2398
  type: Injectable,
2399
2399
  args: [{
2400
2400
  providedIn: 'root',
@@ -2469,19 +2469,19 @@ class ClipperAuthInterceptor {
2469
2469
  }
2470
2470
  return request;
2471
2471
  }
2472
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ClipperAuthInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2473
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ClipperAuthInterceptor }); }
2472
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.1", ngImport: i0, type: ClipperAuthInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2473
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.1", ngImport: i0, type: ClipperAuthInterceptor }); }
2474
2474
  }
2475
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ClipperAuthInterceptor, decorators: [{
2475
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.1", ngImport: i0, type: ClipperAuthInterceptor, decorators: [{
2476
2476
  type: Injectable
2477
2477
  }] });
2478
2478
 
2479
2479
  class ArsClipperCommonModule {
2480
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ArsClipperCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2481
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.4", ngImport: i0, type: ArsClipperCommonModule }); }
2482
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ArsClipperCommonModule }); }
2480
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.1", ngImport: i0, type: ArsClipperCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2481
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.1", ngImport: i0, type: ArsClipperCommonModule }); }
2482
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.1", ngImport: i0, type: ArsClipperCommonModule }); }
2483
2483
  }
2484
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: ArsClipperCommonModule, decorators: [{
2484
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.1", ngImport: i0, type: ArsClipperCommonModule, decorators: [{
2485
2485
  type: NgModule
2486
2486
  }] });
2487
2487