@arsedizioni/ars-utils 18.2.365 → 18.2.371

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 (118) hide show
  1. package/clipper.common/common/services/clipper.service.d.ts +1 -1
  2. package/clipper.ui/ui/document-menu/document-menu.component.d.ts +1 -1
  3. package/esm2022/clipper.common/common/common.module.mjs +4 -4
  4. package/esm2022/clipper.common/common/definitions.mjs +11 -11
  5. package/esm2022/clipper.common/common/interceptors/auth.interceptor.mjs +3 -3
  6. package/esm2022/clipper.common/common/services/clipper.service.mjs +24 -18
  7. package/esm2022/clipper.ui/ui/browser-dialog/browser-dialog.component.mjs +5 -5
  8. package/esm2022/clipper.ui/ui/document/document.component.mjs +3 -3
  9. package/esm2022/clipper.ui/ui/document-index/document-index.component.mjs +3 -3
  10. package/esm2022/clipper.ui/ui/document-manager/document-manager.mjs +3 -3
  11. package/esm2022/clipper.ui/ui/document-menu/document-menu.component.mjs +3 -3
  12. package/esm2022/clipper.ui/ui/references/references.component.mjs +5 -5
  13. package/esm2022/clipper.ui/ui/search-calendar/search-calendar.component.mjs +3 -3
  14. package/esm2022/clipper.ui/ui/search-dialog/search-dialog.component.mjs +5 -5
  15. package/esm2022/clipper.ui/ui/search-facets/search-facets.component.mjs +3 -3
  16. package/esm2022/clipper.ui/ui/search-free-text-help/search-free-text-help.component.mjs +3 -3
  17. package/esm2022/clipper.ui/ui/search-free-text-query-builder/search-free-text-query-builder.component.mjs +3 -3
  18. package/esm2022/clipper.ui/ui/search-result-item/search-result-item.component.mjs +4 -4
  19. package/esm2022/clipper.ui/ui/search-result-manager/search-result-manager.mjs +3 -3
  20. package/esm2022/core/core.module.mjs +8 -8
  21. package/esm2022/core/dateFnsAdapter.mjs +3 -3
  22. package/esm2022/core/directives/autoFocusDirective.mjs +3 -3
  23. package/esm2022/core/directives/changeDateIntervalDirective.mjs +3 -3
  24. package/esm2022/core/directives/copyClipboardDirective.mjs +4 -4
  25. package/esm2022/core/directives/validators.mjs +33 -33
  26. package/esm2022/core/pipes/format.pipe.mjs +4 -4
  27. package/esm2022/core/pipes/replace.pipe.mjs +4 -4
  28. package/esm2022/core/pipes/safe-html.pipe.mjs +4 -4
  29. package/esm2022/core/pipes/safe-url.pipe.mjs +4 -4
  30. package/esm2022/core/pipes/search-callback.pipe.mjs +3 -3
  31. package/esm2022/core/pipes/search-filter.pipe.mjs +4 -4
  32. package/esm2022/core/services/broadcast.service.mjs +3 -3
  33. package/esm2022/core/services/environment.service.mjs +3 -3
  34. package/esm2022/core/services/screen.service.mjs +3 -3
  35. package/esm2022/core/services/theme.service.mjs +3 -3
  36. package/esm2022/evolution.common/arsedizioni-ars-utils-evolution.common.mjs +5 -0
  37. package/esm2022/evolution.common/common/common.module.mjs +16 -0
  38. package/esm2022/evolution.common/common/definitions.mjs +358 -0
  39. package/esm2022/evolution.common/common/interceptors/auth.interceptor.mjs +83 -0
  40. package/esm2022/evolution.common/common/messages.mjs +8 -0
  41. package/esm2022/evolution.common/common/services/evolution.service.mjs +357 -0
  42. package/esm2022/evolution.common/public_api.mjs +5 -0
  43. package/esm2022/help/components/help-viewer/help-viewer.component.mjs +7 -7
  44. package/esm2022/help/help.module.mjs +4 -4
  45. package/esm2022/help/services/help.service.mjs +3 -3
  46. package/esm2022/public_api.mjs +2 -1
  47. package/esm2022/support.common/common/common.module.mjs +4 -4
  48. package/esm2022/support.common/common/interceptors/auth.interceptor.mjs +41 -35
  49. package/esm2022/support.common/common/messages.mjs +2 -1
  50. package/esm2022/support.common/common/services/support.service.mjs +37 -70
  51. package/esm2022/support.ui/ui/notifications-browser/notification/notification.component.mjs +3 -3
  52. package/esm2022/support.ui/ui/notifications-browser/notifications-browser.component.mjs +4 -4
  53. package/esm2022/tinymce/full-screen-editor/full-screen-editor.component.mjs +3 -3
  54. package/esm2022/tinymce/tinymce.module.mjs +4 -4
  55. package/esm2022/ui/ui/dialogs/busy/busy-dialog.component.mjs +3 -3
  56. package/esm2022/ui/ui/dialogs/confirm/confirm-dialog.component.mjs +4 -4
  57. package/esm2022/ui/ui/dialogs/credentials/credentials-dialog.component.mjs +4 -4
  58. package/esm2022/ui/ui/dialogs/info/info-dialog.component.mjs +3 -3
  59. package/esm2022/ui/ui/dialogs/recover-password/recover-password-dialog.component.mjs +3 -3
  60. package/esm2022/ui/ui/dialogs/reset-password/reset-password-dialog.component.mjs +3 -3
  61. package/esm2022/ui/ui/dialogs/toast/toast.component.mjs +3 -3
  62. package/esm2022/ui/ui/paginatorIntl.mjs +3 -3
  63. package/esm2022/ui/ui/services/dialog.service.mjs +3 -3
  64. package/esm2022/ui/ui/services/ui.service.mjs +3 -3
  65. package/esm2022/ui/ui/ui.module.mjs +4 -4
  66. package/esm2022/ui.application/ui/components/button-selector/button-selector.component.mjs +3 -3
  67. package/esm2022/ui.application/ui/components/button-toggle/button-toggle.component.mjs +3 -3
  68. package/esm2022/ui.application/ui/components/calendar-empty-header/calendar-empy-header.component.mjs +3 -3
  69. package/esm2022/ui.application/ui/components/chips-selector/chips-selector.component.mjs +3 -3
  70. package/esm2022/ui.application/ui/components/file-input/file-input.component.mjs +3 -3
  71. package/esm2022/ui.application/ui/components/file-preview/file-preview.component.mjs +3 -3
  72. package/esm2022/ui.application/ui/components/filter-bar/filter-bar.component.mjs +3 -3
  73. package/esm2022/ui.application/ui/dialogs/prompt/prompt-dialog.component.mjs +4 -4
  74. package/esm2022/ui.application/ui/dialogs/prompt-date/prompt-date-dialog.component.mjs +4 -4
  75. package/esm2022/ui.application/ui/dialogs/prompt-time/prompt-time-dialog.component.mjs +3 -3
  76. package/esm2022/ui.application/ui/dialogs/select/select-dialog.component.mjs +4 -4
  77. package/esm2022/ui.application/ui/dialogs/select-file/select-file-dialog.component.mjs +4 -4
  78. package/esm2022/ui.application/ui/dialogs/select-picture/select-picture-dialog.component.mjs +4 -4
  79. package/esm2022/ui.application/ui/dialogs/select-tree/select-tree-dialog.component.mjs +7 -7
  80. package/esm2022/ui.application/ui/dialogs/send-to/send-to-dialog.component.mjs +4 -4
  81. package/esm2022/ui.application/ui/directives/resize-table-column.directive.mjs +3 -3
  82. package/esm2022/ui.application/ui/services/applicationDialog.service.mjs +3 -3
  83. package/esm2022/ui.application/ui/ui.module.mjs +4 -4
  84. package/esm2022/ui.oauth/ui/components/login/login-oauth.component.mjs +3 -3
  85. package/esm2022/ui.oauth/ui/ui.module.mjs +4 -4
  86. package/evolution.common/common/common.module.d.ts +10 -0
  87. package/evolution.common/common/definitions.d.ts +166 -0
  88. package/evolution.common/common/interceptors/auth.interceptor.d.ts +24 -0
  89. package/evolution.common/common/messages.d.ts +6 -0
  90. package/evolution.common/common/services/evolution.service.d.ts +123 -0
  91. package/evolution.common/index.d.ts +5 -0
  92. package/evolution.common/public_api.d.ts +1 -0
  93. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +40 -34
  94. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  95. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +42 -42
  96. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  97. package/fesm2022/arsedizioni-ars-utils-core.mjs +89 -89
  98. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +817 -0
  99. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -0
  100. package/fesm2022/arsedizioni-ars-utils-help.mjs +13 -13
  101. package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
  102. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +78 -107
  103. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  104. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +6 -6
  105. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs.map +1 -1
  106. package/fesm2022/arsedizioni-ars-utils-tinymce.mjs +7 -7
  107. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +58 -58
  108. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
  109. package/fesm2022/arsedizioni-ars-utils-ui.mjs +34 -34
  110. package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
  111. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +7 -7
  112. package/fesm2022/arsedizioni-ars-utils.mjs +1 -0
  113. package/fesm2022/arsedizioni-ars-utils.mjs.map +1 -1
  114. package/package.json +18 -12
  115. package/public_api.d.ts +1 -0
  116. package/support.common/common/interceptors/auth.interceptor.d.ts +8 -0
  117. package/support.common/common/messages.d.ts +1 -0
  118. package/support.common/common/services/support.service.d.ts +15 -26
@@ -6,5 +6,6 @@ export declare const SupportMessages: {
6
6
  LOGIN_COMPLETED: string;
7
7
  LOGIN_DISCONNECTED: string;
8
8
  LOGOUT_COMPLETED: string;
9
+ LOGOUT: string;
9
10
  NOTIFICATION_READ: string;
10
11
  };
@@ -1,20 +1,14 @@
1
1
  import { OnDestroy } from '@angular/core';
2
2
  import { ApiResult } from '@arsedizioni/ars-utils/core';
3
- import { Observable } from 'rxjs';
4
3
  import { SupportLoginResult, SupportNotificationInfo, SupportNotificationsMarkParams, SupportNotificationsSearchParams, SupportNotificationsSearchResult, SupportProduct, SupportProductModule, SupportUserInfo } from '../definitions';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class SupportService implements OnDestroy {
7
- private readonly REFRESH_INTERVAL;
8
6
  private httpClient;
9
7
  private broadcastService;
10
- private refreshing;
11
- private tokenRefreshInterval;
12
- private tokenRefreshTimer?;
13
- private tokenRefreshTimerSubscription?;
14
8
  private broadcastServiceSubscription?;
15
9
  private _loginInfo;
16
- get loginInfo(): SupportUserInfo;
17
- set loginInfo(value: SupportUserInfo);
10
+ get loginInfo(): SupportUserInfo | null;
11
+ set loginInfo(value: SupportUserInfo | null);
18
12
  private _serviceUri;
19
13
  get serviceUri(): string;
20
14
  products: SupportProduct;
@@ -26,25 +20,20 @@ export declare class SupportService implements OnDestroy {
26
20
  /**
27
21
  * Initialize service
28
22
  * @param serviceUri : the service uri
29
- * @param tokenRefreshInterval : the token refresh interval
30
23
  * @param products: the supported products
31
24
  * @param products: the supported products
32
25
  */
33
- initialize(serviceUri?: string, tokenRefreshInterval?: number, products?: SupportProduct, productModules?: SupportProductModule): void;
26
+ initialize(serviceUri?: string, products?: SupportProduct, productModules?: SupportProductModule): void;
34
27
  /**
35
28
  * Set JWT token
36
- * @param token : The token to store
29
+ * @param value : the login result
37
30
  */
38
31
  private setToken;
39
- /**
40
- * Enable JWT token auto refresh
41
- */
42
- private enableTokenRefresh;
43
32
  /**
44
33
  * Return current JWT token
45
- * @returns: the string JWT token or string empty if none
34
+ * @param refresh: true to get the refresh token. Default is false.
46
35
  */
47
- getToken(): string;
36
+ getToken(refresh?: boolean): string;
48
37
  /**
49
38
  * Perform login
50
39
  * @param email: the guest email
@@ -52,11 +41,11 @@ export declare class SupportService implements OnDestroy {
52
41
  * @param oauthAccessToken: the optional oauth2 access token
53
42
  * @returns: the login result
54
43
  */
55
- login(email?: string | null | undefined, oauth?: number | null | undefined, oauthAccessToken?: string | null | undefined): Observable<ApiResult<SupportLoginResult>>;
44
+ login(email?: string | null | undefined, oauth?: number | null | undefined, oauthAccessToken?: string | null | undefined): import("rxjs").Observable<ApiResult<SupportLoginResult>>;
56
45
  /**
57
46
  * Perform logout
58
47
  */
59
- logout(): Observable<any>;
48
+ logout(): import("rxjs").Observable<any>;
60
49
  /**
61
50
  * Reset login refresh timer and logins state
62
51
  */
@@ -66,9 +55,9 @@ export declare class SupportService implements OnDestroy {
66
55
  */
67
56
  clear(): void;
68
57
  /**
69
- * Perform token refresh
70
- */
71
- private refresh;
58
+ * Perform token refresh
59
+ */
60
+ refresh(): import("rxjs").Observable<void>;
72
61
  /**
73
62
  * Navigate to support service
74
63
  */
@@ -81,22 +70,22 @@ export declare class SupportService implements OnDestroy {
81
70
  * Query notifications
82
71
  * @param params: query parameters
83
72
  */
84
- queryNotifications(params: SupportNotificationsSearchParams): Observable<ApiResult<SupportNotificationsSearchResult>>;
73
+ queryNotifications(params: SupportNotificationsSearchParams): import("rxjs").Observable<ApiResult<SupportNotificationsSearchResult>>;
85
74
  /**
86
75
  * Retrieve a notification
87
76
  * @param id: the notification id
88
77
  */
89
- getNotification(id: number): Observable<ApiResult<SupportNotificationInfo>>;
78
+ getNotification(id: number): import("rxjs").Observable<ApiResult<SupportNotificationInfo>>;
90
79
  /**
91
80
  * Mark a group of notifications as read
92
81
  * @param ids: the array of notification's ids to set as read
93
82
  */
94
- markNotifications(params: SupportNotificationsMarkParams): Observable<ApiResult<boolean>>;
83
+ markNotifications(params: SupportNotificationsMarkParams): import("rxjs").Observable<ApiResult<boolean>>;
95
84
  /**
96
85
  * Download a notification document
97
86
  * @param documentId : the notification document id
98
87
  */
99
- dowloadNotificationDocument(documentId: number): Observable<Blob>;
88
+ dowloadNotificationDocument(documentId: number): import("rxjs").Observable<Blob>;
100
89
  static ɵfac: i0.ɵɵFactoryDeclaration<SupportService, never>;
101
90
  static ɵprov: i0.ɵɵInjectableDeclaration<SupportService>;
102
91
  }