@arsedizioni/ars-utils 22.0.53 → 22.0.55

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arsedizioni/ars-utils",
3
- "version": "22.0.53",
3
+ "version": "22.0.55",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -4,9 +4,8 @@ import { NameValueItem, Folder, QueryModel, QueryResultModel, LoginResult, ApiRe
4
4
  import { SendToDialogResult } from '@arsedizioni/ars-utils/ui.application';
5
5
  import { LoginOAuthType } from '@arsedizioni/ars-utils/ui.oauth';
6
6
  import * as _angular_common_http from '@angular/common/http';
7
- import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
7
+ import { HttpInterceptorFn } from '@angular/common/http';
8
8
  import * as rxjs from 'rxjs';
9
- import { Observable } from 'rxjs';
10
9
  import { ResetPasswordDialogResult, RecoverPasswordDialogResult } from '@arsedizioni/ars-utils/ui';
11
10
 
12
11
  declare const ClipperMessages: {
@@ -1107,37 +1106,23 @@ declare class ClipperSearchUtils {
1107
1106
  declare const NotesColors: NameValueItem<string>[];
1108
1107
 
1109
1108
  /**
1110
- * HTTP interceptor that attaches Clipper authentication headers to every request
1111
- * targeting the Clipper service, and broadcasts user-friendly error messages
1112
- * when the server returns an error response.
1109
+ * Builds the Clipper auth HTTP interceptor.
1110
+ *
1111
+ * Takes its two inputs — the Clipper base URI and the service flags — directly
1112
+ * as arguments (captured in the closure), so it never injects ClipperService:
1113
+ * registering it does not pull the full Clipper service into the eager bundle.
1114
+ *
1115
+ * Register it with `withInterceptors`:
1116
+ * @example
1117
+ * provideHttpClient(withInterceptors([
1118
+ * clipperAuthInterceptor(environment.serviceUri, ClipperServiceFlags.NotifySystemErrors),
1119
+ * ]))
1120
+ *
1121
+ * @param serviceUri - Base URI of the Clipper service; only requests starting with it are handled.
1122
+ * @param flags - Service flags (e.g. NotifySystemErrors). Defaults to None.
1123
+ * @returns An `HttpInterceptorFn` ready to register.
1113
1124
  */
1114
- declare class ClipperAuthInterceptor implements HttpInterceptor {
1115
- private readonly clipperService;
1116
- private readonly broadcastService;
1117
- private lastErrorTime;
1118
- /**
1119
- * Intercepts every outgoing HTTP request.
1120
- * When the request targets the Clipper service URI, attaches credentials and
1121
- * a client-ID header, then pipes the response through an error handler.
1122
- * @param request - The outgoing HTTP request.
1123
- * @param next - The next handler in the interceptor chain.
1124
- * @returns An observable of the HTTP event stream.
1125
- */
1126
- intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
1127
- /**
1128
- * Processes an HTTP error, broadcasting a user-friendly message when appropriate.
1129
- * Errors are debounced: only one message is sent per `ERROR_DEBOUNCE_MS` window.
1130
- *
1131
- * This handler only ever runs for requests already targeting the Clipper service
1132
- * (see `intercept`). A transport-level failure produces an `HttpErrorResponse`
1133
- * with status `0` and a `null` url, so the url is only validated when present —
1134
- * that way genuine network failures still surface the "service unavailable" message.
1135
- * @param error - The raw error value thrown by the HTTP layer.
1136
- */
1137
- private handleError;
1138
- static ɵfac: i0.ɵɵFactoryDeclaration<ClipperAuthInterceptor, never>;
1139
- static ɵprov: i0.ɵɵInjectableDeclaration<ClipperAuthInterceptor>;
1140
- }
1125
+ declare function clipperAuthInterceptor(serviceUri: string, flags?: ClipperServiceFlags): HttpInterceptorFn;
1141
1126
 
1142
1127
  /**
1143
1128
  * Account management: password reset/recovery, settings, channel activation, trial info
@@ -1889,5 +1874,5 @@ declare class ClipperCoreService {
1889
1874
  static ɵprov: i0.ɵɵInjectableDeclaration<ClipperCoreService>;
1890
1875
  }
1891
1876
 
1892
- export { ClipperAccountService, ClipperArchiveCopyMode, ClipperArchiveFileStorageType, ClipperArchiveFileStorageTypes, ClipperArchiveFileType, ClipperArchiveFileTypes, ClipperArchiveFilesSearchParams, ClipperArchiveFoldersSearchParams, ClipperArchiveService, ClipperAuthInterceptor, ClipperAuthors, ClipperCalendarCopyMode, ClipperCalendarSearchParams, ClipperCalendarService, ClipperCalendarState, ClipperCalendarStates, ClipperChannel, ClipperChannelSettings, ClipperChannels, ClipperCollaborationService, ClipperCoreService, ClipperDashboard, ClipperDocumentChangeReasons, ClipperDocumentContainer, ClipperDocumentsService, ClipperExportDocumentsFormat, ClipperFacet, ClipperLoginService, ClipperMessages, ClipperModel, ClipperModels, ClipperModule, ClipperModuleGroup, ClipperModuleGroups, ClipperModules, ClipperQueryDocumentFlags, ClipperQueryReferencesMode, ClipperRecurrenceType, ClipperRecurrenceTypes, ClipperRegions, ClipperSearchCalendarSnapshotResult, ClipperSearchFacetsSnapshot, ClipperSearchParams, ClipperSearchResult, ClipperSearchUtils, ClipperSectorTypes, ClipperSectors, ClipperSelectionMode, ClipperService, ClipperServiceFlags, ClipperSort, ClipperSources, ClipperTeamInfo, ClipperTeamProduct, ClipperTeamProductPermission, ClipperUpdateChannelsStateParams, ClipperUtils, NotesColors };
1877
+ export { ClipperAccountService, ClipperArchiveCopyMode, ClipperArchiveFileStorageType, ClipperArchiveFileStorageTypes, ClipperArchiveFileType, ClipperArchiveFileTypes, ClipperArchiveFilesSearchParams, ClipperArchiveFoldersSearchParams, ClipperArchiveService, ClipperAuthors, ClipperCalendarCopyMode, ClipperCalendarSearchParams, ClipperCalendarService, ClipperCalendarState, ClipperCalendarStates, ClipperChannel, ClipperChannelSettings, ClipperChannels, ClipperCollaborationService, ClipperCoreService, ClipperDashboard, ClipperDocumentChangeReasons, ClipperDocumentContainer, ClipperDocumentsService, ClipperExportDocumentsFormat, ClipperFacet, ClipperLoginService, ClipperMessages, ClipperModel, ClipperModels, ClipperModule, ClipperModuleGroup, ClipperModuleGroups, ClipperModules, ClipperQueryDocumentFlags, ClipperQueryReferencesMode, ClipperRecurrenceType, ClipperRecurrenceTypes, ClipperRegions, ClipperSearchCalendarSnapshotResult, ClipperSearchFacetsSnapshot, ClipperSearchParams, ClipperSearchResult, ClipperSearchUtils, ClipperSectorTypes, ClipperSectors, ClipperSelectionMode, ClipperService, ClipperServiceFlags, ClipperSort, ClipperSources, ClipperTeamInfo, ClipperTeamProduct, ClipperTeamProductPermission, ClipperUpdateChannelsStateParams, ClipperUtils, NotesColors, clipperAuthInterceptor };
1893
1878
  export type { ClipperArchiveFileInfo, ClipperArchiveFilesCopyParams, ClipperArchiveFilesDeleteParams, ClipperArchiveFilesSearchResult, ClipperArchiveFolderTree, ClipperArchiveFoldersImportParams, ClipperArchiveFoldersSearchResult, ClipperArsEventInfo, ClipperAvailableChannel, ClipperCalendarCopyDeadlinesParams, ClipperCalendarSaveDeadlineParams, ClipperCalendarSearchResult, ClipperChannelSettingsItem, ClipperContactInfo, ClipperContactsSearchParams, ClipperDashboardItem, ClipperDashboardModelItem, ClipperDashboardResult, ClipperDayGroup, ClipperDayItem, ClipperDeadlineInfo, ClipperDeleteWorkingDocumentsParams, ClipperDocumentAnchorInfo, ClipperDocumentInfo, ClipperDocumentNote, ClipperDocumentNoteTracking, ClipperDocumentRelevantChunkHit, ClipperDocumentRelevants, ClipperDocumentStructure, ClipperDocumentUpdateStateParams, ClipperExportDocumentsParams, ClipperLastDaysResult, ClipperLoginInfo, ClipperLoginResult, ClipperNotesSearchParams, ClipperNotesSearchResult, ClipperNotifyDocumentNoteParams, ClipperOTPInfo, ClipperReferencesSearchParams, ClipperSearchArsEventsParams, ClipperSearchArsEventsResult, ClipperSearchCalendarSnapshotMonth, ClipperSearchFacet, ClipperSearchFacetGroup, ClipperSearchFacetsResult, ClipperSearchFilter, ClipperSendDocumentsByEmailParams, ClipperSettingsInfo, ClipperTaxonomyParams, ClipperTeamMemberInfo, ClipperTeamMembersSearchResult, ClipperTeamProductInfo, ClipperTeamsSearchParams, ClipperTeamsSearchResult, ClipperTopicInfo, ClipperUserChannelInfo, ClipperUserInfo, ClipperUserLink, ClipperUserSearch, ClipperUserTrialInfo, ClipperUserWorkingDocument, EditDialogCompleted, EditDialogData, EditedEventArgs, SectorInfo };
@@ -1,8 +1,7 @@
1
1
  import { QueryModel, SendToModel, LoginResult, ApiResult, FolderTree } from '@arsedizioni/ars-utils/core';
2
2
  import { LoginOAuthType } from '@arsedizioni/ars-utils/ui.oauth';
3
- import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
3
+ import { HttpInterceptorFn } from '@angular/common/http';
4
4
  import * as rxjs from 'rxjs';
5
- import { Observable } from 'rxjs';
6
5
  import * as i0 from '@angular/core';
7
6
  import { Signal, WritableSignal } from '@angular/core';
8
7
 
@@ -703,32 +702,24 @@ interface EvolutionComplianceActivitiesAddParams extends EvolutionComplianceActi
703
702
  }
704
703
 
705
704
  /**
706
- * HTTP interceptor that attaches Evolution authentication headers to every request
707
- * targeting the Evolution service, and broadcasts user-friendly error messages
708
- * when the server returns an error response.
705
+ * Builds the Evolution auth HTTP interceptor.
706
+ *
707
+ * Takes its two inputs — the Evolution base URI and the service flags — directly
708
+ * as arguments (captured in the closure), so it never injects EvolutionService:
709
+ * registering it does not pull the full Evolution service into the eager bundle.
710
+ *
711
+ * Register it with `withInterceptors`:
712
+ * @example
713
+ * provideHttpClient(withInterceptors([
714
+ * evolutionAuthInterceptor(environment.evolutionServiceUri,
715
+ * EvolutionServiceFlags.DisplayConnectionStateMessages | EvolutionServiceFlags.Embedded),
716
+ * ]))
717
+ *
718
+ * @param serviceUri - Base URI of the Evolution service; only requests starting with it are handled.
719
+ * @param flags - Service flags (e.g. NotifySystemErrors). Defaults to None.
720
+ * @returns An `HttpInterceptorFn` ready to register.
709
721
  */
710
- declare class EvolutionAuthInterceptor implements HttpInterceptor {
711
- private readonly evolutionService;
712
- private readonly broadcastService;
713
- private lastErrorTime;
714
- /**
715
- * Intercepts every outgoing HTTP request.
716
- * When the request targets the Evolution service URI, attaches credentials and
717
- * a client-ID header, then pipes the response through an error handler.
718
- * @param request - The outgoing HTTP request.
719
- * @param next - The next handler in the interceptor chain.
720
- * @returns An observable of the HTTP event stream.
721
- */
722
- intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
723
- /**
724
- * Processes an HTTP error, broadcasting a user-friendly message when appropriate.
725
- * Errors are debounced: only one message is sent per `ERROR_DEBOUNCE_MS` window.
726
- * @param error - The raw error value thrown by the HTTP layer.
727
- */
728
- private handleError;
729
- static ɵfac: i0.ɵɵFactoryDeclaration<EvolutionAuthInterceptor, never>;
730
- static ɵprov: i0.ɵɵInjectableDeclaration<EvolutionAuthInterceptor>;
731
- }
722
+ declare function evolutionAuthInterceptor(serviceUri: string, flags?: EvolutionServiceFlags): HttpInterceptorFn;
732
723
 
733
724
  /**
734
725
  * Authentication service for the Evolution module: login / logout / MFA,
@@ -992,5 +983,5 @@ declare class EvolutionService {
992
983
  static ɵprov: i0.ɵɵInjectableDeclaration<EvolutionService>;
993
984
  }
994
985
 
995
- export { AccountService, ComplianceService, ERPComplianceActivityState, ERPComplianceLawOrigin, ERPComplianceLawState, ERPComplianceLawsSelectionType, ERPComplianceNotificationLimit, ERPComplianceProfileFlags, ERPComplianceProfileRole, ERPComplianceRegisterNotificationType, ERPComplianceRegisterSiteImportOptions, ERPComplianceScope, ERPExportFormat, ERPExportPart, ERPExportSource, ERPExportType, ERPModule, ERPPlace, ERPPlacePermission, ERPRecurrenceFrequencyType, EvolutionAuthInterceptor, EvolutionComplianceActivityStates, EvolutionComplianceContextInfo, EvolutionComplianceLawChangeStates, EvolutionComplianceLawOrigins, EvolutionComplianceLawStates, EvolutionComplianceNotificationLimits, EvolutionComplianceNotifications, EvolutionComplianceObligationAuthorities, EvolutionComplianceObligationTypes, EvolutionComplianceProfileFlags, EvolutionComplianceProfileRoles, EvolutionComplianceScopes, EvolutionMessages, EvolutionRecurrenceFrequencyTypes, EvolutionService, EvolutionServiceFlags, LoginService };
986
+ export { AccountService, ComplianceService, ERPComplianceActivityState, ERPComplianceLawOrigin, ERPComplianceLawState, ERPComplianceLawsSelectionType, ERPComplianceNotificationLimit, ERPComplianceProfileFlags, ERPComplianceProfileRole, ERPComplianceRegisterNotificationType, ERPComplianceRegisterSiteImportOptions, ERPComplianceScope, ERPExportFormat, ERPExportPart, ERPExportSource, ERPExportType, ERPModule, ERPPlace, ERPPlacePermission, ERPRecurrenceFrequencyType, EvolutionComplianceActivityStates, EvolutionComplianceContextInfo, EvolutionComplianceLawChangeStates, EvolutionComplianceLawOrigins, EvolutionComplianceLawStates, EvolutionComplianceNotificationLimits, EvolutionComplianceNotifications, EvolutionComplianceObligationAuthorities, EvolutionComplianceObligationTypes, EvolutionComplianceProfileFlags, EvolutionComplianceProfileRoles, EvolutionComplianceScopes, EvolutionMessages, EvolutionRecurrenceFrequencyTypes, EvolutionService, EvolutionServiceFlags, LoginService, evolutionAuthInterceptor };
996
987
  export type { ComplianceRegisterUsersResultModel, EvolutionChangeContextModel, EvolutionChangeContextResultModel, EvolutionComplianceActivitiesAddParams, EvolutionComplianceActivity, EvolutionComplianceLaswExportParams, EvolutionComplianceLaw, EvolutionComplianceLawDocumentInfo, EvolutionComplianceLawReference, EvolutionComplianceLawsAddParams, EvolutionComplianceRegister, EvolutionComplianceRegisterProfile, EvolutionComplianceRegisterSite, EvolutionContextInfo, EvolutionExportModel, EvolutionLicenceModuleInfo, EvolutionLoginInfo, EvolutionLoginResult, EvolutionPermission, EvolutionPlacePermission, EvolutionPlaceable, EvolutionQueryRegisterProfilesModel, EvolutionRegisterProfileSiteInfo, EvolutionRegisterProfileUserInfo, EvolutionUserInfo, EvolutionUserLink, EvolutionUserModuleInfo };
@@ -974,9 +974,9 @@ declare function validateBasis(basis: string, grow?: string, shrink?: string): s
974
974
  */
975
975
  declare function buildFlexStyles(value: string, direction: string, hasWrap: boolean): Record<string, string | null>;
976
976
  /**
977
- * Resolves the fxFlex "fill" inputs to a value `buildFlexStyles` understands.
978
- * Both `fxFlex="*"` and a bare `fxFlex` mean "fill the remaining space" `grow`
979
- * (`flex: 1 1 100%`, max-* 100%); every other value is returned unchanged.
977
+ * Resolves the non-ngx `fxFlex="*"` extension to `grow` (`flex: 1 1 100%`, max-* 100%).
978
+ * Every other value — including a bare `fxFlex` ('') is returned unchanged, so a bare
979
+ * fxFlex keeps the ngx-layout default (`1 1 0%` in row, `1 1 0.000000001px` in column).
980
980
  * @param raw - The resolved fxFlex value for the active breakpoint.
981
981
  * @returns The value to pass to `buildFlexStyles`.
982
982
  */