@arsedizioni/ars-utils 22.0.7 → 22.0.8

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.7",
3
+ "version": "22.0.8",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -1,12 +1,12 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { Signal } from '@angular/core';
3
3
  import { NameValueItem, Folder, QueryModel, LoginResult, QueryResultModel, ApiResult, UpdateResultModel, FolderTree } from '@arsedizioni/ars-utils/core';
4
- import { LoginOAuthType, SendToDialogResult } from '@arsedizioni/ars-utils/ui.application';
4
+ import { LoginOAuthType, ResetPasswordDialogResult, RecoverPasswordDialogResult } from '@arsedizioni/ars-utils/ui';
5
+ import { SendToDialogResult } from '@arsedizioni/ars-utils/ui.application';
5
6
  import * as _angular_common_http from '@angular/common/http';
6
7
  import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
7
8
  import * as rxjs from 'rxjs';
8
9
  import { Observable } from 'rxjs';
9
- import { ResetPasswordDialogResult, RecoverPasswordDialogResult } from '@arsedizioni/ars-utils/ui';
10
10
 
11
11
  declare const ClipperMessages: {
12
12
  /**
@@ -1053,7 +1053,7 @@ declare class ClipperDocumentMenuComponent {
1053
1053
  /** Internal counter incremented on each external selection-model change to drive signal re-evaluation. */
1054
1054
  private readonly selectionChangeTick;
1055
1055
  readonly useSelections: _angular_core.InputSignal<boolean>;
1056
- readonly selectionSource: _angular_core.InputSignal<"bag" | "selection" | "none">;
1056
+ readonly selectionSource: _angular_core.InputSignal<"selection" | "bag" | "none">;
1057
1057
  /**
1058
1058
  * Computed signal that returns the current effective document selection.
1059
1059
  * Re-evaluates when any input signal or the underlying selection model changes.
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { OnDestroy, Signal } from '@angular/core';
3
3
  import { SendToModel, LoginResult, QueryModel, ApiResult, INode, FolderTree } from '@arsedizioni/ars-utils/core';
4
- import { LoginOAuthType } from '@arsedizioni/ars-utils/ui.application';
4
+ import { LoginOAuthType } from '@arsedizioni/ars-utils/ui';
5
5
  import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
6
6
  import * as rxjs from 'rxjs';
7
7
  import { Observable } from 'rxjs';
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { OnDestroy } from '@angular/core';
3
3
  import { LoginResult, ApiResult } from '@arsedizioni/ars-utils/core';
4
- import { LoginOAuthType } from '@arsedizioni/ars-utils/ui.application';
4
+ import { LoginOAuthType } from '@arsedizioni/ars-utils/ui';
5
5
  import * as rxjs from 'rxjs';
6
6
 
7
7
  declare const SupportMessages: {
@@ -1,6 +1,6 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { OnDestroy, AfterViewInit, EnvironmentProviders, DoCheck, ElementRef } from '@angular/core';
3
- import { INode, Searchable, SearchBag, NameValueItem, DateInterval, SearchFilterMetadata, FileInfo, EnvironmentService } from '@arsedizioni/ars-utils/core';
3
+ import { INode, Searchable, SearchBag, NameValueItem, DateInterval, SearchFilterMetadata, FileInfo } from '@arsedizioni/ars-utils/core';
4
4
  import { MatFormFieldAppearance, MatFormFieldControl } from '@angular/material/form-field';
5
5
  import { MatDialogRef } from '@angular/material/dialog';
6
6
  import { DialogService } from '@arsedizioni/ars-utils/ui';
@@ -11,8 +11,6 @@ import { NgForm, ControlValueAccessor, NgControl } from '@angular/forms';
11
11
  import { MatCheckboxChange } from '@angular/material/checkbox';
12
12
  import { MatSelectionList, MatSelectionListChange } from '@angular/material/list';
13
13
  import { MatPaginator, PageEvent } from '@angular/material/paginator';
14
- import { MsalGuardConfiguration, MsalInterceptorConfiguration } from '@azure/msal-angular';
15
- import { IPublicClientApplication } from '@azure/msal-browser';
16
14
 
17
15
  declare class ResizeTableColumnDirective {
18
16
  /** Whether this column is resizable. Bound via the `resizeColumn` attribute. */
@@ -265,15 +263,6 @@ interface PromptDialogData {
265
263
  interface PromptTimeDialogData extends PromptDialogData {
266
264
  slots?: string;
267
265
  }
268
- declare enum LoginOAuthType {
269
- None = 0,
270
- Microsoft = 1,
271
- Google = 2
272
- }
273
- interface LoginOAuthResult {
274
- type: LoginOAuthType;
275
- token: string;
276
- }
277
266
 
278
267
  /** Constants identifying each filter group slot and text filter channels. */
279
268
  declare const Filters: {
@@ -1521,56 +1510,5 @@ declare class TreePickerComponent {
1521
1510
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreePickerComponent, "tree-picker", never, { "tree": { "alias": "tree"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "descriptionEmpty": { "alias": "descriptionEmpty"; "required": false; "isSignal": true; }; "maxDepth": { "alias": "maxDepth"; "required": false; "isSignal": true; }; "maxDepthOverrides": { "alias": "maxDepthOverrides"; "required": false; "isSignal": true; }; "minDepth": { "alias": "minDepth"; "required": false; "isSignal": true; }; }, { "selection": "selectionChange"; "selectionCount": "selectionCount"; "changed": "changed"; }, never, never, true, never>;
1522
1511
  }
1523
1512
 
1524
- declare function MSALInstanceFactory(environment: EnvironmentService): IPublicClientApplication;
1525
- declare function MSALInterceptorConfigFactory(environment: EnvironmentService): MsalInterceptorConfiguration;
1526
- declare function MSALGuardConfigFactory(): MsalGuardConfiguration;
1527
- declare class LoginOAuthComponent {
1528
- private readonly destroyRef;
1529
- private readonly msalBroadcastService;
1530
- private readonly msaLService;
1531
- private readonly dialogService;
1532
- private readonly ngZone;
1533
- /** Emitted when OAuth authentication succeeds. */
1534
- readonly success: _angular_core.OutputEmitterRef<LoginOAuthResult>;
1535
- /** Whether to show the introductory info panel. */
1536
- readonly showInfo: _angular_core.InputSignal<boolean>;
1537
- /** Application name displayed in the info panel. */
1538
- readonly applicationName: _angular_core.InputSignal<string>;
1539
- /** Whether to trigger `initialize()` automatically on mount. */
1540
- readonly autoInitialize: _angular_core.InputSignal<boolean>;
1541
- /** Whether the Microsoft login button is shown. */
1542
- readonly allowMicrosoft: _angular_core.InputSignal<boolean>;
1543
- /** Whether the Google login button is shown. */
1544
- readonly allowGoogle: _angular_core.InputSignal<boolean>;
1545
- protected readonly oauthReady: _angular_core.WritableSignal<boolean>;
1546
- protected readonly oauthMicrosoftReady: _angular_core.WritableSignal<boolean>;
1547
- protected readonly oauthGoogleReady: _angular_core.WritableSignal<boolean>;
1548
- constructor();
1549
- /**
1550
- * Initialize OAuth providers (Microsoft MSAL and Google GSI).
1551
- * Safe to call multiple times — already-initialized providers are skipped.
1552
- * Must be public so the host component can trigger it manually when `autoInitialize` is false.
1553
- */
1554
- initialize(): void;
1555
- /**
1556
- * Trigger a Microsoft (MSAL) login popup and acquire an access token on success.
1557
- */
1558
- protected loginMSAL(): void;
1559
- /**
1560
- * Trigger the hidden Google GSI button to open the Google sign-in flow.
1561
- */
1562
- protected loginGoogle(): void;
1563
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<LoginOAuthComponent, never>;
1564
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<LoginOAuthComponent, "login-oauth", never, { "showInfo": { "alias": "showInfo"; "required": false; "isSignal": true; }; "applicationName": { "alias": "applicationName"; "required": false; "isSignal": true; }; "autoInitialize": { "alias": "autoInitialize"; "required": false; "isSignal": true; }; "allowMicrosoft": { "alias": "allowMicrosoft"; "required": false; "isSignal": true; }; "allowGoogle": { "alias": "allowGoogle"; "required": false; "isSignal": true; }; }, { "success": "success"; }, never, never, true, never>;
1565
- }
1566
-
1567
- declare class LoginOAuthOkMSComponent {
1568
- /** Message displayed while the popup is completing authentication. */
1569
- readonly message: _angular_core.InputSignal<string>;
1570
- constructor();
1571
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<LoginOAuthOkMSComponent, never>;
1572
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<LoginOAuthOkMSComponent, "app-login-oauth-ok-ms", never, { "message": { "alias": "message"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1573
- }
1574
-
1575
- export { ApplicationDialogService, ArsUIApplicationModule, ButtonSelectorComponent, ButtonToggleComponent, CalendarEmptyHeader, ChipsSelectorComponent, CurrentFilter, CurrentFilterChanged, CurrentFilterItem, FileInputComponent, FilePreviewComponent, FilterBarComponent, Filters, ItemNode, LoginOAuthComponent, LoginOAuthOkMSComponent, LoginOAuthType, MSALGuardConfigFactory, MSALInstanceFactory, MSALInterceptorConfigFactory, PromptDateDialogComponent, PromptDialogComponent, PromptDialogType, PromptOtpDialogComponent, PromptTimeDialogComponent, ResizeTableColumnDirective, SelectDialogComponent, SelectFileDialogComponent, SelectPictureDialogComponent, SelectTreeDialogComponent, SelectableItem, SelectableNode, SendToDialogComponent, TreeDataSource, TreePickerComponent, provideArsUIApplication };
1576
- export type { ButtonToggleInfo, FilePreviewDialogData, FilterGroup, FilterItem, ISelectableItem, LoginOAuthResult, PromptDateDialogResult, PromptDialogData, PromptDialogResult, PromptOtpDialogResult, PromptTimeDialogData, SelectDialogAppend, SelectDialogData, SelectDialogDelete, SelectDialogEdit, SelectDialogFilter, SelectDialogLookup, SelectDialogResult, SelectFile, SelectFileDialogData, SelectFileOption, SelectPictureFileDialogData, SelectTreeDialogAppend, SelectTreeDialogData, SelectTreeDialogResult, SelectableFilter, SendToDialogData, SendToDialogResult, SendToPopulateData };
1513
+ export { ApplicationDialogService, ArsUIApplicationModule, ButtonSelectorComponent, ButtonToggleComponent, CalendarEmptyHeader, ChipsSelectorComponent, CurrentFilter, CurrentFilterChanged, CurrentFilterItem, FileInputComponent, FilePreviewComponent, FilterBarComponent, Filters, ItemNode, PromptDateDialogComponent, PromptDialogComponent, PromptDialogType, PromptOtpDialogComponent, PromptTimeDialogComponent, ResizeTableColumnDirective, SelectDialogComponent, SelectFileDialogComponent, SelectPictureDialogComponent, SelectTreeDialogComponent, SelectableItem, SelectableNode, SendToDialogComponent, TreeDataSource, TreePickerComponent, provideArsUIApplication };
1514
+ export type { ButtonToggleInfo, FilePreviewDialogData, FilterGroup, FilterItem, ISelectableItem, PromptDateDialogResult, PromptDialogData, PromptDialogResult, PromptOtpDialogResult, PromptTimeDialogData, SelectDialogAppend, SelectDialogData, SelectDialogDelete, SelectDialogEdit, SelectDialogFilter, SelectDialogLookup, SelectDialogResult, SelectFile, SelectFileDialogData, SelectFileOption, SelectPictureFileDialogData, SelectTreeDialogAppend, SelectTreeDialogData, SelectTreeDialogResult, SelectableFilter, SendToDialogData, SendToDialogResult, SendToPopulateData };
@@ -1,7 +1,7 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { EnvironmentProviders, ElementRef, TemplateRef, InjectionToken, Signal, Renderer2 } from '@angular/core';
3
3
  import * as i1 from '@arsedizioni/ars-utils/core';
4
- import { PasswordStrength } from '@arsedizioni/ars-utils/core';
4
+ import { PasswordStrength, EnvironmentService } from '@arsedizioni/ars-utils/core';
5
5
  import { MatPaginatorIntl } from '@angular/material/paginator';
6
6
  import { ComponentType } from '@angular/cdk/portal';
7
7
  import { MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
@@ -9,6 +9,8 @@ import { MatSnackBarRef } from '@angular/material/snack-bar';
9
9
  import { Observable } from 'rxjs';
10
10
  import { MatFormFieldAppearance } from '@angular/material/form-field';
11
11
  import { ControlValueAccessor } from '@angular/forms';
12
+ import { MsalGuardConfiguration, MsalInterceptorConfiguration } from '@azure/msal-angular';
13
+ import { IPublicClientApplication } from '@azure/msal-browser';
12
14
 
13
15
  interface DialogResult {
14
16
  result?: 'ok' | 'cancel' | 'other';
@@ -37,6 +39,15 @@ interface CredentialsDialogResult {
37
39
  rememberMe?: boolean;
38
40
  code?: string;
39
41
  }
42
+ declare enum LoginOAuthType {
43
+ None = 0,
44
+ Microsoft = 1,
45
+ Google = 2
46
+ }
47
+ interface LoginOAuthResult {
48
+ type: LoginOAuthType;
49
+ token: string;
50
+ }
40
51
 
41
52
  /** Italian localisation for the Material paginator labels. */
42
53
  declare class PaginatorIntl extends MatPaginatorIntl {
@@ -621,6 +632,57 @@ declare class PasswordStrengthComponent {
621
632
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<PasswordStrengthComponent, "password-strength", never, { "password": { "alias": "password"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
622
633
  }
623
634
 
635
+ declare function MSALInstanceFactory(environment: EnvironmentService): IPublicClientApplication;
636
+ declare function MSALInterceptorConfigFactory(environment: EnvironmentService): MsalInterceptorConfiguration;
637
+ declare function MSALGuardConfigFactory(): MsalGuardConfiguration;
638
+ declare class LoginOAuthComponent {
639
+ private readonly destroyRef;
640
+ private readonly msalBroadcastService;
641
+ private readonly msaLService;
642
+ private readonly dialogService;
643
+ private readonly ngZone;
644
+ /** Emitted when OAuth authentication succeeds. */
645
+ readonly success: _angular_core.OutputEmitterRef<LoginOAuthResult>;
646
+ /** Whether to show the introductory info panel. */
647
+ readonly showInfo: _angular_core.InputSignal<boolean>;
648
+ /** Application name displayed in the info panel. */
649
+ readonly applicationName: _angular_core.InputSignal<string>;
650
+ /** Whether to trigger `initialize()` automatically on mount. */
651
+ readonly autoInitialize: _angular_core.InputSignal<boolean>;
652
+ /** Whether the Microsoft login button is shown. */
653
+ readonly allowMicrosoft: _angular_core.InputSignal<boolean>;
654
+ /** Whether the Google login button is shown. */
655
+ readonly allowGoogle: _angular_core.InputSignal<boolean>;
656
+ protected readonly oauthReady: _angular_core.WritableSignal<boolean>;
657
+ protected readonly oauthMicrosoftReady: _angular_core.WritableSignal<boolean>;
658
+ protected readonly oauthGoogleReady: _angular_core.WritableSignal<boolean>;
659
+ constructor();
660
+ /**
661
+ * Initialize OAuth providers (Microsoft MSAL and Google GSI).
662
+ * Safe to call multiple times — already-initialized providers are skipped.
663
+ * Must be public so the host component can trigger it manually when `autoInitialize` is false.
664
+ */
665
+ initialize(): void;
666
+ /**
667
+ * Trigger a Microsoft (MSAL) login popup and acquire an access token on success.
668
+ */
669
+ protected loginMSAL(): void;
670
+ /**
671
+ * Trigger the hidden Google GSI button to open the Google sign-in flow.
672
+ */
673
+ protected loginGoogle(): void;
674
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<LoginOAuthComponent, never>;
675
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<LoginOAuthComponent, "login-oauth", never, { "showInfo": { "alias": "showInfo"; "required": false; "isSignal": true; }; "applicationName": { "alias": "applicationName"; "required": false; "isSignal": true; }; "autoInitialize": { "alias": "autoInitialize"; "required": false; "isSignal": true; }; "allowMicrosoft": { "alias": "allowMicrosoft"; "required": false; "isSignal": true; }; "allowGoogle": { "alias": "allowGoogle"; "required": false; "isSignal": true; }; }, { "success": "success"; }, never, never, true, never>;
676
+ }
677
+
678
+ declare class LoginOAuthOkMSComponent {
679
+ /** Message displayed while the popup is completing authentication. */
680
+ readonly message: _angular_core.InputSignal<string>;
681
+ constructor();
682
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<LoginOAuthOkMSComponent, never>;
683
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<LoginOAuthOkMSComponent, "app-login-oauth-ok-ms", never, { "message": { "alias": "message"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
684
+ }
685
+
624
686
  declare class IfBpDirective {
625
687
  private readonly tpl;
626
688
  private readonly vcr;
@@ -1420,5 +1482,5 @@ declare class ArsUIFlexModule {
1420
1482
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<ArsUIFlexModule>;
1421
1483
  }
1422
1484
 
1423
- export { ALIAS_FAMILIES, ALIAS_INDEX, ArsUIFlexModule, ArsUIModule, BS5_BREAKPOINTS, BusyDialogComponent, BusyTimer, CANONICAL_ALIASES, ConfirmDialogComponent, CredentialsDialogComponent, DeleteDialogComponent, DeleteDialogConfirmMode, DialogService, FxClassDirective, FxFlexAlignDirective, FxFlexDirective, FxFlexFillDirective, FxFlexOffsetDirective, FxFlexOrderDirective, FxGridAreaDirective, FxGridColumnDirective, FxGridDirective, FxLayoutAlignDirective, FxLayoutDirective, FxLayoutGapDirective, FxLayoutWrapDirective, FxShowHideDirective, FxStyleDirective, IfBpDirective, InfoDialogComponent, LAYOUT_BREAKPOINTS, MediaObserver, NON_CANONICAL_PRIORITY, OtpInputComponent, PaginatorIntl, PasswordStrengthComponent, RecoverPasswordDialogComponent, ResetPasswordDialogComponent, ResponsiveBaseDirective, ToastComponent, UIService, provideArsUI, resolve, resolveAll, resolveNonCanonical };
1424
- export type { BpValues, BreakpointAlias, CanonicalKey, ConfirmDialogData, ConfirmDialogOption, CredentialsDialogData, CredentialsDialogResult, DeleteDialogData, DialogOption, DialogResult, IDialogService, InfoDialogData, NcValues, NonCanonicalKey, RecoverPasswordDialogData, RecoverPasswordDialogResult, ResetPasswordDialogData, ResetPasswordDialogMode, ResetPasswordDialogResult, ToastData };
1485
+ export { ALIAS_FAMILIES, ALIAS_INDEX, ArsUIFlexModule, ArsUIModule, BS5_BREAKPOINTS, BusyDialogComponent, BusyTimer, CANONICAL_ALIASES, ConfirmDialogComponent, CredentialsDialogComponent, DeleteDialogComponent, DeleteDialogConfirmMode, DialogService, FxClassDirective, FxFlexAlignDirective, FxFlexDirective, FxFlexFillDirective, FxFlexOffsetDirective, FxFlexOrderDirective, FxGridAreaDirective, FxGridColumnDirective, FxGridDirective, FxLayoutAlignDirective, FxLayoutDirective, FxLayoutGapDirective, FxLayoutWrapDirective, FxShowHideDirective, FxStyleDirective, IfBpDirective, InfoDialogComponent, LAYOUT_BREAKPOINTS, LoginOAuthComponent, LoginOAuthOkMSComponent, LoginOAuthType, MSALGuardConfigFactory, MSALInstanceFactory, MSALInterceptorConfigFactory, MediaObserver, NON_CANONICAL_PRIORITY, OtpInputComponent, PaginatorIntl, PasswordStrengthComponent, RecoverPasswordDialogComponent, ResetPasswordDialogComponent, ResponsiveBaseDirective, ToastComponent, UIService, provideArsUI, resolve, resolveAll, resolveNonCanonical };
1486
+ export type { BpValues, BreakpointAlias, CanonicalKey, ConfirmDialogData, ConfirmDialogOption, CredentialsDialogData, CredentialsDialogResult, DeleteDialogData, DialogOption, DialogResult, IDialogService, InfoDialogData, LoginOAuthResult, NcValues, NonCanonicalKey, RecoverPasswordDialogData, RecoverPasswordDialogResult, ResetPasswordDialogData, ResetPasswordDialogMode, ResetPasswordDialogResult, ToastData };