@arsedizioni/ars-utils 18.3.59 → 18.3.61

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 (93) hide show
  1. package/esm2022/clipper.common/common/common.module.mjs +4 -4
  2. package/esm2022/clipper.common/common/interceptors/auth.interceptor.mjs +3 -3
  3. package/esm2022/clipper.common/common/services/clipper.service.mjs +16 -13
  4. package/esm2022/clipper.ui/ui/browser-dialog/browser-dialog.component.mjs +3 -3
  5. package/esm2022/clipper.ui/ui/document/document.component.mjs +3 -3
  6. package/esm2022/clipper.ui/ui/document-index/document-index.component.mjs +3 -3
  7. package/esm2022/clipper.ui/ui/document-manager/document-manager.mjs +3 -3
  8. package/esm2022/clipper.ui/ui/document-menu/document-menu.component.mjs +3 -3
  9. package/esm2022/clipper.ui/ui/references/references.component.mjs +3 -3
  10. package/esm2022/clipper.ui/ui/search-calendar/search-calendar.component.mjs +3 -3
  11. package/esm2022/clipper.ui/ui/search-dialog/search-dialog.component.mjs +3 -3
  12. package/esm2022/clipper.ui/ui/search-facets/search-facets.component.mjs +3 -3
  13. package/esm2022/clipper.ui/ui/search-free-text-help/search-free-text-help.component.mjs +3 -3
  14. package/esm2022/clipper.ui/ui/search-free-text-query-builder/search-free-text-query-builder.component.mjs +3 -3
  15. package/esm2022/clipper.ui/ui/search-result-item/search-result-item.component.mjs +3 -3
  16. package/esm2022/clipper.ui/ui/search-result-manager/search-result-manager.mjs +3 -3
  17. package/esm2022/core/core.module.mjs +8 -8
  18. package/esm2022/core/dateFnsAdapter.mjs +3 -3
  19. package/esm2022/core/directives/autoFocusDirective.mjs +3 -3
  20. package/esm2022/core/directives/changeDateIntervalDirective.mjs +3 -3
  21. package/esm2022/core/directives/copyClipboardDirective.mjs +4 -4
  22. package/esm2022/core/directives/validators.mjs +33 -33
  23. package/esm2022/core/pipes/format.pipe.mjs +4 -4
  24. package/esm2022/core/pipes/replace.pipe.mjs +4 -4
  25. package/esm2022/core/pipes/safe-html.pipe.mjs +4 -4
  26. package/esm2022/core/pipes/safe-url.pipe.mjs +4 -4
  27. package/esm2022/core/pipes/search-callback.pipe.mjs +3 -3
  28. package/esm2022/core/pipes/search-filter.pipe.mjs +4 -4
  29. package/esm2022/core/services/broadcast.service.mjs +3 -3
  30. package/esm2022/core/services/environment.service.mjs +3 -3
  31. package/esm2022/core/services/screen.service.mjs +3 -3
  32. package/esm2022/core/services/theme.service.mjs +3 -3
  33. package/esm2022/evolution.common/common/common.module.mjs +4 -4
  34. package/esm2022/evolution.common/common/interceptors/auth.interceptor.mjs +3 -3
  35. package/esm2022/evolution.common/common/services/evolution.service.mjs +14 -11
  36. package/esm2022/help/components/help-viewer/help-viewer.component.mjs +6 -6
  37. package/esm2022/help/help.module.mjs +4 -4
  38. package/esm2022/help/services/help.service.mjs +3 -3
  39. package/esm2022/support.common/common/common.module.mjs +4 -4
  40. package/esm2022/support.common/common/interceptors/auth.interceptor.mjs +3 -3
  41. package/esm2022/support.common/common/services/support.service.mjs +10 -8
  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 +3 -3
  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 +3 -3
  48. package/esm2022/ui/ui/dialogs/credentials/credentials-dialog.component.mjs +3 -3
  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 +9 -6
  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 +3 -3
  65. package/esm2022/ui.application/ui/dialogs/prompt-date/prompt-date-dialog.component.mjs +3 -3
  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 +3 -3
  68. package/esm2022/ui.application/ui/dialogs/select-file/select-file-dialog.component.mjs +3 -3
  69. package/esm2022/ui.application/ui/dialogs/select-picture/select-picture-dialog.component.mjs +3 -3
  70. package/esm2022/ui.application/ui/dialogs/select-tree/select-tree-dialog.component.mjs +6 -6
  71. package/esm2022/ui.application/ui/dialogs/send-to/send-to-dialog.component.mjs +3 -3
  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 +22 -19
  78. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  79. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +39 -39
  80. package/fesm2022/arsedizioni-ars-utils-core.mjs +89 -89
  81. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +20 -17
  82. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
  83. package/fesm2022/arsedizioni-ars-utils-help.mjs +13 -13
  84. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +16 -14
  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-tinymce.mjs +7 -7
  88. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +63 -60
  89. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
  90. package/fesm2022/arsedizioni-ars-utils-ui.mjs +34 -34
  91. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +7 -7
  92. package/package.json +7 -7
  93. package/ui.application/ui/components/button-selector/button-selector.component.d.ts +2 -1
@@ -127,8 +127,8 @@ export class LoginOAuthComponent {
127
127
  // Use wrapper click to prevent Illegal invocation exception
128
128
  googleButtonWrapper.click();
129
129
  }
130
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: LoginOAuthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
131
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.5", type: LoginOAuthComponent, isStandalone: true, selector: "login-oauth", inputs: { appName: { classPropertyName: "appName", publicName: "appName", isSignal: true, isRequired: false, transformFunction: null }, autoInitialize: { classPropertyName: "autoInitialize", publicName: "autoInitialize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { success: "success" }, providers: [{
130
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LoginOAuthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
131
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.7", type: LoginOAuthComponent, isStandalone: true, selector: "login-oauth", inputs: { appName: { classPropertyName: "appName", publicName: "appName", isSignal: true, isRequired: false, transformFunction: null }, autoInitialize: { classPropertyName: "autoInitialize", publicName: "autoInitialize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { success: "success" }, providers: [{
132
132
  provide: MSAL_INSTANCE,
133
133
  deps: [EnvironmentService],
134
134
  useFactory: MSALInstanceFactory
@@ -145,7 +145,7 @@ export class LoginOAuthComponent {
145
145
  MsalService,
146
146
  MsalBroadcastService], ngImport: i0, template: "<div class=\"login-oauth\">\r\n <div class=\"message\">\r\n <p>Questa sezione consente di accedere al servizio utilizzando un provider OAuth2.</p>\r\n <p>La email utilizzata deve essere collegata ad un utente valido di {{appName()}} e dei servizi ad esso connessi.</p>\r\n </div>\r\n <div class=\"button\">\r\n <button mat-flat-button color=\"primary\" (click)=\"loginMSAL()\" [attr.aria-label]=\"'Effettua accesso'\"\r\n [disabled]=\"!oauthMicrosoftReady()\" style=\"width: 100%;\">\r\n Accedi con Microsoft</button>\r\n </div>\r\n <div class=\"button\">\r\n <button mat-flat-button color=\"primary\" (click)=\"loginGoogle()\" style=\"width: 100%;\"\r\n [attr.aria-label]=\"'Effettua accesso'\" [disabled]=\"!oauthGoogleReady()\">\r\n Accedi con Google</button>\r\n </div>\r\n</div>", styles: [".login-oauth{text-align:center}.login-oauth .button{padding:10px 0;width:100%}.login-oauth .message{padding:0 0 10px!important;font-size:small}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
147
147
  }
148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: LoginOAuthComponent, decorators: [{
148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: LoginOAuthComponent, decorators: [{
149
149
  type: Component,
150
150
  args: [{ selector: 'login-oauth', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{
151
151
  provide: MSAL_INSTANCE,
@@ -2,11 +2,11 @@ import { NgModule } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
3
  // Material
4
4
  export class ArsUIOAuthModule {
5
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: ArsUIOAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.5", ngImport: i0, type: ArsUIOAuthModule }); }
7
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: ArsUIOAuthModule }); }
5
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ArsUIOAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: ArsUIOAuthModule }); }
7
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ArsUIOAuthModule }); }
8
8
  }
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: ArsUIOAuthModule, decorators: [{
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ArsUIOAuthModule, decorators: [{
10
10
  type: NgModule
11
11
  }] });
12
12
  export * from "./definitions";
@@ -2051,16 +2051,19 @@ class ClipperService {
2051
2051
  this.broadcastServiceSubscription = this.broadcastService.getMessage().subscribe((message) => {
2052
2052
  if (message.id === ClipperMessages.LOGIN_CHANGED) {
2053
2053
  setTimeout(() => {
2054
- this.login(message.data.email, message.data.password, true, message.data.oauth, message.data.oauthAccessToken).subscribe((r) => {
2055
- if (!r.success)
2056
- this.dialogService.error(r.message, null, "Errore di Clipper");
2057
- else {
2058
- if ((this.flags & ClipperServiceFlags.DisplayConnectionStateMessages) > 0) {
2059
- this.dialogService.toast('Connesso a Clipper', 1500, 'power');
2054
+ this.login(message.data.email, message.data.password, true, message.data.oauth, message.data.oauthAccessToken).subscribe({
2055
+ next: r => {
2056
+ if (!r.success)
2057
+ this.dialogService.error(r.message, null, "Errore di Clipper");
2058
+ else {
2059
+ if ((this.flags & ClipperServiceFlags.DisplayConnectionStateMessages) > 0) {
2060
+ this.dialogService.toast('Connesso a Clipper', 1500, 'power');
2061
+ }
2062
+ // Load bag
2063
+ this.loadBag();
2060
2064
  }
2061
- // Load bag
2062
- this.loadBag();
2063
- }
2065
+ },
2066
+ error: () => { console.log("Clipper non disponibile."); } // Avoid unwanted errors on client
2064
2067
  });
2065
2068
  }, 500);
2066
2069
  }
@@ -2919,10 +2922,10 @@ class ClipperService {
2919
2922
  downloadArchiveFile(id, otp = null) {
2920
2923
  return this.httpClient.get(this._serviceUri + '/archive/files/download/?id=' + id + '&otp=' + otp, { responseType: 'blob' });
2921
2924
  }
2922
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: ClipperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2923
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: ClipperService, providedIn: 'root' }); }
2925
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ClipperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2926
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ClipperService, providedIn: 'root' }); }
2924
2927
  }
2925
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: ClipperService, decorators: [{
2928
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ClipperService, decorators: [{
2926
2929
  type: Injectable,
2927
2930
  args: [{
2928
2931
  providedIn: 'root',
@@ -3001,19 +3004,19 @@ class ClipperAuthInterceptor {
3001
3004
  }
3002
3005
  return request;
3003
3006
  }
3004
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: ClipperAuthInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3005
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: ClipperAuthInterceptor }); }
3007
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ClipperAuthInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3008
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ClipperAuthInterceptor }); }
3006
3009
  }
3007
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: ClipperAuthInterceptor, decorators: [{
3010
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ClipperAuthInterceptor, decorators: [{
3008
3011
  type: Injectable
3009
3012
  }] });
3010
3013
 
3011
3014
  class ArsClipperCommonModule {
3012
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: ArsClipperCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3013
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.5", ngImport: i0, type: ArsClipperCommonModule }); }
3014
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: ArsClipperCommonModule }); }
3015
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ArsClipperCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3016
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: ArsClipperCommonModule }); }
3017
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ArsClipperCommonModule }); }
3015
3018
  }
3016
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: ArsClipperCommonModule, decorators: [{
3019
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ArsClipperCommonModule, decorators: [{
3017
3020
  type: NgModule
3018
3021
  }] });
3019
3022