@arsedizioni/ars-utils 22.6.85 → 22.6.88
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 +3158 -3344
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +7616 -4772
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.date.mjs +321 -702
- package/fesm2022/arsedizioni-ars-utils-core.date.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs +445 -590
- package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +1735 -2370
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.validators.mjs +1280 -1470
- package/fesm2022/arsedizioni-ars-utils-core.validators.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +1097 -1528
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +198 -294
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs +115 -117
- package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs +1607 -613
- package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs +840 -367
- package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +1634 -651
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs +1255 -792
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +1410 -357
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +2401 -944
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +1553 -741
- package/fesm2022/arsedizioni-ars-utils-ui.files.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs +901 -430
- package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.help.mjs +737 -530
- package/fesm2022/arsedizioni-ars-utils-ui.help.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +6638 -1755
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs +1479 -1207
- package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs +1003 -270
- package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +497 -278
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs +48 -52
- package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs +464 -704
- package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs +724 -657
- package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils.mjs +3 -19
- package/fesm2022/arsedizioni-ars-utils.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +1151 -1163
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1588 -1426
- package/types/arsedizioni-ars-utils-core.d.ts +1169 -1172
- package/types/arsedizioni-ars-utils-core.date.d.ts +204 -208
- package/types/arsedizioni-ars-utils-core.markdown.d.ts +128 -126
- package/types/arsedizioni-ars-utils-core.validators.d.ts +270 -236
- package/types/arsedizioni-ars-utils-evolution.common.d.ts +1054 -1067
- package/types/arsedizioni-ars-utils-support.common.d.ts +225 -234
- package/types/arsedizioni-ars-utils-ui.controls.d.ts +440 -278
- package/types/arsedizioni-ars-utils-ui.controls.date.d.ts +24 -28
- package/types/arsedizioni-ars-utils-ui.controls.tree.d.ts +172 -136
- package/types/arsedizioni-ars-utils-ui.d.ts +2035 -821
- package/types/arsedizioni-ars-utils-ui.dialogs.auth.d.ts +327 -322
- package/types/arsedizioni-ars-utils-ui.dialogs.d.ts +343 -347
- package/types/arsedizioni-ars-utils-ui.dialogs.prompt.d.ts +167 -167
- package/types/arsedizioni-ars-utils-ui.dialogs.select.d.ts +373 -367
- package/types/arsedizioni-ars-utils-ui.files.d.ts +335 -283
- package/types/arsedizioni-ars-utils-ui.filters.d.ts +232 -160
- package/types/arsedizioni-ars-utils-ui.help.d.ts +204 -211
- package/types/arsedizioni-ars-utils-ui.navigation.d.ts +811 -646
- package/types/arsedizioni-ars-utils-ui.notifications.d.ts +74 -78
- package/types/arsedizioni-ars-utils-ui.oauth.d.ts +102 -62
- package/types/arsedizioni-ars-utils-ui.paginator.d.ts +19 -22
- package/types/arsedizioni-ars-utils-ui.shell.d.ts +376 -382
- package/types/arsedizioni-ars-utils-ui.tinymce.d.ts +244 -231
- package/types/arsedizioni-ars-utils.d.ts +1 -3
|
@@ -1,78 +1,74 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SupportNotificationsBrowserComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export { SupportNotificationsBrowserComponent };
|
|
1
|
+
import { MatPaginator, PageEvent } from "@angular/material/paginator";
|
|
2
|
+
import { ScreenService, SelectableModel } from "@arsedizioni/ars-utils/core";
|
|
3
|
+
import { SupportNotificationInfo, SupportNotificationsSearchParams } from "@arsedizioni/ars-utils/support.common";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SupportNotificationsBrowserComponent {
|
|
6
|
+
readonly paginator: import("@angular/core").Signal<MatPaginator>;
|
|
7
|
+
protected readonly screenService: ScreenService;
|
|
8
|
+
private readonly supportService;
|
|
9
|
+
private readonly broadcastService;
|
|
10
|
+
private readonly dialogService;
|
|
11
|
+
private readonly destroyRef;
|
|
12
|
+
protected selection: SelectableModel<SupportNotificationInfo, number>;
|
|
13
|
+
protected searchParams: SupportNotificationsSearchParams;
|
|
14
|
+
/** Current free-text search value, bound to the search input. */
|
|
15
|
+
protected readonly searchText: import("@angular/core").WritableSignal<string>;
|
|
16
|
+
/** Signal form for the search box (max 200 characters). */
|
|
17
|
+
protected readonly searchForm: import("@angular/forms/signals").FieldTree<string, string | number, "writable">;
|
|
18
|
+
protected total: import("@angular/core").WritableSignal<number>;
|
|
19
|
+
protected items: import("@angular/core").WritableSignal<SupportNotificationInfo[]>;
|
|
20
|
+
constructor();
|
|
21
|
+
/**
|
|
22
|
+
* Scrolls the notifications list back to the top.
|
|
23
|
+
*/
|
|
24
|
+
private updateScroll;
|
|
25
|
+
/**
|
|
26
|
+
* Resets the `isMenuOpen` flag on all items after a context menu is closed.
|
|
27
|
+
*/
|
|
28
|
+
protected updateMenuButtonsVisibility(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the ids of the currently selected items.
|
|
31
|
+
* Shows an error and returns `undefined` when the selection exceeds 50 items.
|
|
32
|
+
* @returns An array of selected notification ids, or `undefined` on validation failure.
|
|
33
|
+
*/
|
|
34
|
+
private getSelectedIds;
|
|
35
|
+
/**
|
|
36
|
+
* Returns the CSS class to apply to the read-state indicator stripe.
|
|
37
|
+
* @param item - The notification to evaluate.
|
|
38
|
+
* @returns `'unread-bg'` when the notification has not been read, otherwise `undefined`.
|
|
39
|
+
*/
|
|
40
|
+
protected getItemStateCssClass(item: SupportNotificationInfo): string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Returns the tooltip text for the read-state indicator stripe.
|
|
43
|
+
* @param item - The notification to evaluate.
|
|
44
|
+
* @returns `'Non letto'` when unread, otherwise an empty string.
|
|
45
|
+
*/
|
|
46
|
+
protected getItemStateTooltip(item: SupportNotificationInfo): string;
|
|
47
|
+
/**
|
|
48
|
+
* Resets pagination to page 0 and fetches a fresh result set.
|
|
49
|
+
*/
|
|
50
|
+
protected find(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Fetches the current page of notifications from the server.
|
|
53
|
+
*/
|
|
54
|
+
private fetch;
|
|
55
|
+
/**
|
|
56
|
+
* Handles paginator page changes and loads the corresponding result page.
|
|
57
|
+
* @param e - The `PageEvent` emitted by `MatPaginator`.
|
|
58
|
+
*/
|
|
59
|
+
protected fetchMore(e: PageEvent): void;
|
|
60
|
+
/**
|
|
61
|
+
* Marks one or more notifications as read or unread.
|
|
62
|
+
* When no specific item is supplied, acts on the current selection.
|
|
63
|
+
* @param item - A single notification to mark, or `undefined` to use the selection.
|
|
64
|
+
* @param unmark - `true` to mark as unread; `false` (default) to mark as read.
|
|
65
|
+
*/
|
|
66
|
+
protected mark(item?: SupportNotificationInfo, unmark?: boolean): void;
|
|
67
|
+
/**
|
|
68
|
+
* Opens the notification detail dialog for the given item.
|
|
69
|
+
* @param item - The notification to display.
|
|
70
|
+
*/
|
|
71
|
+
protected show(item: SupportNotificationInfo): void;
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SupportNotificationsBrowserComponent, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SupportNotificationsBrowserComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
74
|
+
}
|
|
@@ -1,63 +1,103 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
declare function
|
|
7
|
-
declare function
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
1
|
+
import { EnvironmentService, LoginOAuthResult } from "@arsedizioni/ars-utils/core";
|
|
2
|
+
import { MsalGuardConfiguration, MsalInterceptorConfiguration } from "@azure/msal-angular";
|
|
3
|
+
import { IPublicClientApplication } from "@azure/msal-browser";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare function MSALInstanceFactory(environment: EnvironmentService): IPublicClientApplication;
|
|
6
|
+
export declare function MSALInterceptorConfigFactory(environment: EnvironmentService): MsalInterceptorConfiguration;
|
|
7
|
+
export declare function MSALGuardConfigFactory(): MsalGuardConfiguration;
|
|
8
|
+
export declare class LoginOAuthComponent {
|
|
9
|
+
private readonly destroyRef;
|
|
10
|
+
private readonly msalBroadcastService;
|
|
11
|
+
private readonly msaLService;
|
|
12
|
+
private readonly dialogService;
|
|
13
|
+
private readonly ngZone;
|
|
14
|
+
/** Emitted when OAuth authentication succeeds. */
|
|
15
|
+
readonly success: import("@angular/core").OutputEmitterRef<LoginOAuthResult>;
|
|
16
|
+
/** Whether to show the introductory info panel. */
|
|
17
|
+
readonly showInfo: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
/** Application name displayed in the info panel. */
|
|
19
|
+
readonly applicationName: import("@angular/core").InputSignal<string>;
|
|
20
|
+
/** Whether to trigger `initialize()` automatically on mount. */
|
|
21
|
+
readonly autoInitialize: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
/** Whether the Microsoft login button is shown. */
|
|
23
|
+
readonly allowMicrosoft: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
/** Whether the Google login button is shown. */
|
|
25
|
+
readonly allowGoogle: import("@angular/core").InputSignal<boolean>;
|
|
26
|
+
/** Google OAuth client id. Override per deployment. */
|
|
27
|
+
readonly googleClientId: import("@angular/core").InputSignal<string>;
|
|
28
|
+
/** MSAL access-token scope requested after login. */
|
|
29
|
+
readonly msalScope: import("@angular/core").InputSignal<string>;
|
|
30
|
+
protected readonly oauthReady: import("@angular/core").WritableSignal<boolean>;
|
|
31
|
+
protected readonly oauthMicrosoftReady: import("@angular/core").WritableSignal<boolean>;
|
|
32
|
+
protected readonly oauthGoogleReady: import("@angular/core").WritableSignal<boolean>;
|
|
33
|
+
/** Hidden GSI button proxy, created once the Google library is ready. */
|
|
34
|
+
private googleButtonWrapper?;
|
|
35
|
+
constructor();
|
|
36
|
+
/**
|
|
37
|
+
* Initialize OAuth providers (Microsoft MSAL and Google GSI).
|
|
38
|
+
* Safe to call multiple times — already-initialized providers are skipped.
|
|
39
|
+
* Must be public so the host component can trigger it manually when `autoInitialize` is false.
|
|
40
|
+
*/
|
|
41
|
+
initialize(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Trigger a Microsoft (MSAL) login popup and acquire an access token on success.
|
|
44
|
+
*/
|
|
45
|
+
protected loginMSAL(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Trigger the hidden Google GSI button to open the Google sign-in flow.
|
|
48
|
+
*/
|
|
49
|
+
protected loginGoogle(): void;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoginOAuthComponent, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoginOAuthComponent, "login-oauth", never, {
|
|
52
|
+
"showInfo": {
|
|
53
|
+
"alias": "showInfo";
|
|
54
|
+
"required": false;
|
|
55
|
+
"isSignal": true;
|
|
56
|
+
};
|
|
57
|
+
"applicationName": {
|
|
58
|
+
"alias": "applicationName";
|
|
59
|
+
"required": false;
|
|
60
|
+
"isSignal": true;
|
|
61
|
+
};
|
|
62
|
+
"autoInitialize": {
|
|
63
|
+
"alias": "autoInitialize";
|
|
64
|
+
"required": false;
|
|
65
|
+
"isSignal": true;
|
|
66
|
+
};
|
|
67
|
+
"allowMicrosoft": {
|
|
68
|
+
"alias": "allowMicrosoft";
|
|
69
|
+
"required": false;
|
|
70
|
+
"isSignal": true;
|
|
71
|
+
};
|
|
72
|
+
"allowGoogle": {
|
|
73
|
+
"alias": "allowGoogle";
|
|
74
|
+
"required": false;
|
|
75
|
+
"isSignal": true;
|
|
76
|
+
};
|
|
77
|
+
"googleClientId": {
|
|
78
|
+
"alias": "googleClientId";
|
|
79
|
+
"required": false;
|
|
80
|
+
"isSignal": true;
|
|
81
|
+
};
|
|
82
|
+
"msalScope": {
|
|
83
|
+
"alias": "msalScope";
|
|
84
|
+
"required": false;
|
|
85
|
+
"isSignal": true;
|
|
86
|
+
};
|
|
87
|
+
}, {
|
|
88
|
+
"success": "success";
|
|
89
|
+
}, never, never, true, never>;
|
|
53
90
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
91
|
+
export declare class LoginOAuthOkMSComponent {
|
|
92
|
+
/** Message displayed while the popup is completing authentication. */
|
|
93
|
+
readonly message: import("@angular/core").InputSignal<string>;
|
|
94
|
+
constructor();
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoginOAuthOkMSComponent, never>;
|
|
96
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoginOAuthOkMSComponent, "app-login-oauth-ok-ms", never, {
|
|
97
|
+
"message": {
|
|
98
|
+
"alias": "message";
|
|
99
|
+
"required": false;
|
|
100
|
+
"isSignal": true;
|
|
101
|
+
};
|
|
102
|
+
}, {}, never, never, true, never>;
|
|
103
|
+
}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
import { MatPaginatorIntl } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
|
|
1
|
+
import { MatPaginatorIntl } from "@angular/material/paginator";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
4
3
|
/** Italian localisation for the Material paginator labels. */
|
|
5
|
-
declare class PaginatorIntl extends MatPaginatorIntl {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { PaginatorIntl };
|
|
4
|
+
export declare class PaginatorIntl extends MatPaginatorIntl {
|
|
5
|
+
itemsPerPageLabel: string;
|
|
6
|
+
nextPageLabel: string;
|
|
7
|
+
previousPageLabel: string;
|
|
8
|
+
lastPageLabel: string;
|
|
9
|
+
firstPageLabel: string;
|
|
10
|
+
/**
|
|
11
|
+
* Returns the human-readable range label shown inside the paginator.
|
|
12
|
+
* @param page - Zero-based index of the current page.
|
|
13
|
+
* @param pageSize - Number of items displayed per page.
|
|
14
|
+
* @param length - Total number of items, or `-1` when the total is still being calculated.
|
|
15
|
+
* @returns A formatted string such as `"1 - 25 di 100"`.
|
|
16
|
+
*/
|
|
17
|
+
getRangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatorIntl, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
20
|
+
}
|