@arsedizioni/ars-utils 22.0.6 → 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/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +11 -11
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +1314 -1515
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +260 -5
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +2 -2
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +2 -2
- package/types/arsedizioni-ars-utils-evolution.common.d.ts +1 -1
- package/types/arsedizioni-ars-utils-support.common.d.ts +1 -1
- package/types/arsedizioni-ars-utils-ui.application.d.ts +12 -74
- package/types/arsedizioni-ars-utils-ui.d.ts +65 -3
package/package.json
CHANGED
|
@@ -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,
|
|
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
|
/**
|
|
@@ -166,7 +166,7 @@ declare class ClipperDocumentManager {
|
|
|
166
166
|
/**
|
|
167
167
|
* Opens a dialog to manage the documents in the working bag (view, select, delete).
|
|
168
168
|
*/
|
|
169
|
-
openBag(): void
|
|
169
|
+
openBag(): Promise<void>;
|
|
170
170
|
/**
|
|
171
171
|
* Sends a print command to the Clipper document iframe.
|
|
172
172
|
*/
|
|
@@ -596,7 +596,7 @@ declare class ClipperBrowserComponent extends ClipperSearchResultManager {
|
|
|
596
596
|
* Saves the current filter parameters as a named search.
|
|
597
597
|
* @param newFilter - When true, always prompts for a new filter name; otherwise updates the existing one. Defaults to false.
|
|
598
598
|
*/
|
|
599
|
-
saveFilter(newFilter?: boolean): void
|
|
599
|
+
saveFilter(newFilter?: boolean): Promise<void>;
|
|
600
600
|
/**
|
|
601
601
|
* Prompts for confirmation and then deletes the currently active saved filter.
|
|
602
602
|
*/
|
|
@@ -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
|
|
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
|
|
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
|
|
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: {
|
|
@@ -775,7 +764,7 @@ declare class ApplicationDialogService extends DialogService {
|
|
|
775
764
|
* @param width - Maximum dialog width in pixels.
|
|
776
765
|
* @returns The opened dialog reference.
|
|
777
766
|
*/
|
|
778
|
-
sendTo(title?: string, text?: string, subject?: string, canPopulate?: boolean, count?: number, options?: any, width?: number): MatDialogRef<SendToDialogComponent, any>;
|
|
767
|
+
sendTo(title?: string, text?: string, subject?: string, canPopulate?: boolean, count?: number, options?: any, width?: number): Promise<MatDialogRef<SendToDialogComponent, any> | null>;
|
|
779
768
|
/**
|
|
780
769
|
* Open a tree-node selection dialog.
|
|
781
770
|
* @param nodes - The tree nodes to display.
|
|
@@ -787,7 +776,7 @@ declare class ApplicationDialogService extends DialogService {
|
|
|
787
776
|
* @param canAppend - Whether the append-node action is available.
|
|
788
777
|
* @returns The opened dialog reference.
|
|
789
778
|
*/
|
|
790
|
-
selectTree(nodes: any, title?: string, description?: string, initialFilter?: string, width?: number, okCaption?: string, canAppend?: boolean): MatDialogRef<SelectTreeDialogComponent, any>;
|
|
779
|
+
selectTree(nodes: any, title?: string, description?: string, initialFilter?: string, width?: number, okCaption?: string, canAppend?: boolean): Promise<MatDialogRef<SelectTreeDialogComponent, any> | null>;
|
|
791
780
|
/**
|
|
792
781
|
* Open a picture-selection dialog.
|
|
793
782
|
* @param title - Dialog title.
|
|
@@ -800,7 +789,7 @@ declare class ApplicationDialogService extends DialogService {
|
|
|
800
789
|
* @param maxPictureHeight - Maximum accepted picture height in pixels.
|
|
801
790
|
* @returns The opened dialog reference.
|
|
802
791
|
*/
|
|
803
|
-
selectPicture(title?: string, description?: string, okCaption?: string, options?: any, width?: number, maxSize?: number, maxPictureWidth?: number, maxPictureHeight?: number): MatDialogRef<SelectPictureDialogComponent, any>;
|
|
792
|
+
selectPicture(title?: string, description?: string, okCaption?: string, options?: any, width?: number, maxSize?: number, maxPictureWidth?: number, maxPictureHeight?: number): Promise<MatDialogRef<SelectPictureDialogComponent, any> | null>;
|
|
804
793
|
/**
|
|
805
794
|
* Open a file-selection dialog.
|
|
806
795
|
* @param title - Dialog title.
|
|
@@ -814,7 +803,7 @@ declare class ApplicationDialogService extends DialogService {
|
|
|
814
803
|
* @param accept - Accepted file extensions (e.g. `.pdf,.docx`).
|
|
815
804
|
* @returns The opened dialog reference.
|
|
816
805
|
*/
|
|
817
|
-
selectFile(title?: string, description?: string, okCaption?: string, helpLink?: string, helpCaption?: string, options?: any, width?: number, maxSize?: number, accept?: string): MatDialogRef<SelectFileDialogComponent, any>;
|
|
806
|
+
selectFile(title?: string, description?: string, okCaption?: string, helpLink?: string, helpCaption?: string, options?: any, width?: number, maxSize?: number, accept?: string): Promise<MatDialogRef<SelectFileDialogComponent, any> | null>;
|
|
818
807
|
/**
|
|
819
808
|
* Open a multipurpose selection and CRUD dialog.
|
|
820
809
|
* @param data - The dialog configuration model.
|
|
@@ -822,7 +811,7 @@ declare class ApplicationDialogService extends DialogService {
|
|
|
822
811
|
* @param closeOnNavigation - Whether the dialog closes on route navigation.
|
|
823
812
|
* @returns The opened dialog reference.
|
|
824
813
|
*/
|
|
825
|
-
select(data: SelectDialogData, disableClose?: boolean, closeOnNavigation?: boolean): MatDialogRef<SelectDialogComponent, any>;
|
|
814
|
+
select(data: SelectDialogData, disableClose?: boolean, closeOnNavigation?: boolean): Promise<MatDialogRef<SelectDialogComponent, any> | null>;
|
|
826
815
|
/**
|
|
827
816
|
* Prompt the user to enter a value.
|
|
828
817
|
* @param title - Dialog title.
|
|
@@ -836,7 +825,7 @@ declare class ApplicationDialogService extends DialogService {
|
|
|
836
825
|
* @param required - Whether the input is required.
|
|
837
826
|
* @returns The opened dialog reference.
|
|
838
827
|
*/
|
|
839
|
-
prompt(title: string, type?: PromptDialogType, description?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): MatDialogRef<PromptDialogComponent>;
|
|
828
|
+
prompt(title: string, type?: PromptDialogType, description?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): Promise<MatDialogRef<PromptDialogComponent> | null>;
|
|
840
829
|
/**
|
|
841
830
|
* Prompt the user to enter a date or date interval.
|
|
842
831
|
* @param title - Dialog title.
|
|
@@ -850,7 +839,7 @@ declare class ApplicationDialogService extends DialogService {
|
|
|
850
839
|
* @param required - Whether the input is required.
|
|
851
840
|
* @returns The opened dialog reference.
|
|
852
841
|
*/
|
|
853
|
-
promptDate(title: string, type?: PromptDialogType.Date | PromptDialogType.DateInterval, description?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): MatDialogRef<PromptDateDialogComponent>;
|
|
842
|
+
promptDate(title: string, type?: PromptDialogType.Date | PromptDialogType.DateInterval, description?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): Promise<MatDialogRef<PromptDateDialogComponent> | null>;
|
|
854
843
|
/**
|
|
855
844
|
* Prompt the user to enter a time value.
|
|
856
845
|
* @param title - Dialog title.
|
|
@@ -864,7 +853,7 @@ declare class ApplicationDialogService extends DialogService {
|
|
|
864
853
|
* @param required - Whether the input is required.
|
|
865
854
|
* @returns The opened dialog reference.
|
|
866
855
|
*/
|
|
867
|
-
promptTime(title: string, description?: string, slots?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): MatDialogRef<PromptTimeDialogComponent>;
|
|
856
|
+
promptTime(title: string, description?: string, slots?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): Promise<MatDialogRef<PromptTimeDialogComponent> | null>;
|
|
868
857
|
/**
|
|
869
858
|
* Prompt the user to enter an OTP code.
|
|
870
859
|
* @param title - Dialog title.
|
|
@@ -874,7 +863,7 @@ declare class ApplicationDialogService extends DialogService {
|
|
|
874
863
|
* @param width - Maximum dialog width in pixels.
|
|
875
864
|
* @returns The opened dialog reference.
|
|
876
865
|
*/
|
|
877
|
-
promptOtp(title?: string, description?: string, okCaption?: string, cancelCaption?: string, width?: number): MatDialogRef<PromptOtpDialogComponent>;
|
|
866
|
+
promptOtp(title?: string, description?: string, okCaption?: string, cancelCaption?: string, width?: number): Promise<MatDialogRef<PromptOtpDialogComponent> | null>;
|
|
878
867
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ApplicationDialogService, never>;
|
|
879
868
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ApplicationDialogService>;
|
|
880
869
|
}
|
|
@@ -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
|
-
|
|
1525
|
-
|
|
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 };
|