@arsedizioni/ars-utils 22.0.81 → 22.0.82
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 +24 -24
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +48 -48
- package/fesm2022/arsedizioni-ars-utils-core.mjs +206 -121
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +15 -15
- package/fesm2022/arsedizioni-ars-utils-help.mjs +9 -9
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +9 -9
- package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +6 -6
- package/fesm2022/arsedizioni-ars-utils-tinymce.mjs +3 -3
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +57 -57
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +97 -97
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +6 -6
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1 -1
- package/types/arsedizioni-ars-utils-core.d.ts +53 -4
- package/types/arsedizioni-ars-utils-ui.application.d.ts +2 -2
- package/types/arsedizioni-ars-utils-ui.d.ts +1 -1
|
@@ -201,8 +201,8 @@ class LoginOAuthComponent {
|
|
|
201
201
|
}
|
|
202
202
|
this.googleButtonWrapper.click();
|
|
203
203
|
}
|
|
204
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
205
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
204
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: LoginOAuthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
205
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: LoginOAuthComponent, isStandalone: true, selector: "login-oauth", inputs: { showInfo: { classPropertyName: "showInfo", publicName: "showInfo", isSignal: true, isRequired: false, transformFunction: null }, applicationName: { classPropertyName: "applicationName", publicName: "applicationName", isSignal: true, isRequired: false, transformFunction: null }, autoInitialize: { classPropertyName: "autoInitialize", publicName: "autoInitialize", isSignal: true, isRequired: false, transformFunction: null }, allowMicrosoft: { classPropertyName: "allowMicrosoft", publicName: "allowMicrosoft", isSignal: true, isRequired: false, transformFunction: null }, allowGoogle: { classPropertyName: "allowGoogle", publicName: "allowGoogle", isSignal: true, isRequired: false, transformFunction: null }, googleClientId: { classPropertyName: "googleClientId", publicName: "googleClientId", isSignal: true, isRequired: false, transformFunction: null }, msalScope: { classPropertyName: "msalScope", publicName: "msalScope", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { success: "success" }, providers: [
|
|
206
206
|
{
|
|
207
207
|
provide: MSAL_INSTANCE,
|
|
208
208
|
deps: [EnvironmentService],
|
|
@@ -221,7 +221,7 @@ class LoginOAuthComponent {
|
|
|
221
221
|
MsalBroadcastService
|
|
222
222
|
], ngImport: i0, template: "<div class=\"login-oauth\">\r\n @if(showInfo()) {\r\n <div class=\"message\">\r\n <p>Questa sezione consente di accedere al servizio utilizzando un provider OAuth2.</p>\r\n @if(applicationName()) {\r\n <p>La email utilizzata deve essere collegata ad un utente valido di {{applicationName()}} e dei servizi ad esso\r\n connessi.</p>\r\n }\r\n </div>\r\n }\r\n @if (allowMicrosoft()) {\r\n <div class=\"button\">\r\n <button mat-flat-button (click)=\"loginMSAL()\" aria-label=\"Effettua accesso\"\r\n [disabled]=\"!oauthMicrosoftReady()\" style=\"width: 100%;\">\r\n Accedi con Microsoft</button>\r\n </div>\r\n }\r\n @if (allowGoogle()) {\r\n <div class=\"button\">\r\n <button mat-flat-button (click)=\"loginGoogle()\" style=\"width: 100%;\"\r\n aria-label=\"Effettua accesso\" [disabled]=\"!oauthGoogleReady()\">\r\n Accedi con Google</button>\r\n </div>\r\n }\r\n</div>\r\n", styles: [".login-oauth{text-align:center}.login-oauth .button{padding:10px 0;width:100%}.login-oauth .message{padding:0 0 10px!important;font-size:small}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
223
223
|
}
|
|
224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: LoginOAuthComponent, decorators: [{
|
|
225
225
|
type: Component,
|
|
226
226
|
args: [{ selector: 'login-oauth', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
227
227
|
{
|
|
@@ -274,10 +274,10 @@ class LoginOAuthOkMSComponent {
|
|
|
274
274
|
console.error('Errore durante la comunicazione della risposta di autenticazione:', error);
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
278
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
277
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: LoginOAuthOkMSComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
278
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: LoginOAuthOkMSComponent, isStandalone: true, selector: "app-login-oauth-ok-ms", inputs: { message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div fxLayout=\"column\" fxLayoutAlign=\"center center\" fxFill>\r\n <div class=\"login-auto fade-in\">\r\n <div class=\"message\">\r\n Autenticazione in corso...\r\n </div>\r\n <mat-progress-bar mode=\"indeterminate\" ></mat-progress-bar>\r\n </div>\r\n</div>\r\n", styles: [".login-auto{padding:20px 0}.login-auto .message{font-size:large;font-weight:700;color:var(--ars-color-primary);max-width:300px;text-align:center;width:100%;padding:40px 0}\n"], dependencies: [{ kind: "ngmodule", type: FlexLayoutModule }, { kind: "directive", type: i1$1.FxLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg] ", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i1$1.FxLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg] ", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i1$1.FxFlexFillDirective, selector: " [fxFlexFill], [fxFill], [fxFlexFill.xs], [fxFlexFill.sm], [fxFlexFill.md], [fxFlexFill.lg], [fxFlexFill.xl], [fxFlexFill.lt-sm], [fxFlexFill.lt-md], [fxFlexFill.lt-lg], [fxFlexFill.lt-xl], [fxFlexFill.gt-xs], [fxFlexFill.gt-sm], [fxFlexFill.gt-md], [fxFlexFill.gt-lg] ", inputs: ["fxFlexFill", "fxFill", "fxFlexFill.xs", "fxFlexFill.sm", "fxFlexFill.md", "fxFlexFill.lg", "fxFlexFill.xl", "fxFlexFill.lt-sm", "fxFlexFill.lt-md", "fxFlexFill.lt-lg", "fxFlexFill.lt-xl", "fxFlexFill.gt-xs", "fxFlexFill.gt-sm", "fxFlexFill.gt-md", "fxFlexFill.gt-lg"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
279
279
|
}
|
|
280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: LoginOAuthOkMSComponent, decorators: [{
|
|
281
281
|
type: Component,
|
|
282
282
|
args: [{ selector: 'app-login-oauth-ok-ms', changeDetection: ChangeDetectionStrategy.OnPush, imports: [FlexLayoutModule, MatProgressBarModule], template: "<div fxLayout=\"column\" fxLayoutAlign=\"center center\" fxFill>\r\n <div class=\"login-auto fade-in\">\r\n <div class=\"message\">\r\n Autenticazione in corso...\r\n </div>\r\n <mat-progress-bar mode=\"indeterminate\" ></mat-progress-bar>\r\n </div>\r\n</div>\r\n", styles: [".login-auto{padding:20px 0}.login-auto .message{font-size:large;font-weight:700;color:var(--ars-color-primary);max-width:300px;text-align:center;width:100%;padding:40px 0}\n"] }]
|
|
283
283
|
}], ctorParameters: () => [], propDecorators: { message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }] } });
|
package/package.json
CHANGED
|
@@ -1049,7 +1049,7 @@ declare class ClipperDocumentMenuComponent {
|
|
|
1049
1049
|
private readonly renderer2;
|
|
1050
1050
|
private readonly clipperService;
|
|
1051
1051
|
readonly useSelections: _angular_core.InputSignal<boolean>;
|
|
1052
|
-
readonly selectionSource: _angular_core.InputSignal<"
|
|
1052
|
+
readonly selectionSource: _angular_core.InputSignal<"none" | "selection" | "bag">;
|
|
1053
1053
|
/**
|
|
1054
1054
|
* Computed signal that returns the current effective document selection.
|
|
1055
1055
|
* Re-evaluates when any input signal or the underlying selection model changes.
|
|
@@ -14,6 +14,14 @@ declare const MAT_DATE_FNS_FORMATS: MatDateFormats;
|
|
|
14
14
|
*/
|
|
15
15
|
declare class DateFnsAdapter extends DateAdapter<Date, Locale> {
|
|
16
16
|
constructor();
|
|
17
|
+
/**
|
|
18
|
+
* Wraps a date/instant into a Europe/Rome TZDate whose JSON serialisation emits a
|
|
19
|
+
* naive local datetime string ("yyyy-MM-dd'T'HH:mm:ss") instead of a UTC instant,
|
|
20
|
+
* so the wall-clock value the user entered is preserved end-to-end (no timezone shift).
|
|
21
|
+
* @param value - The source Date or Unix timestamp in milliseconds.
|
|
22
|
+
* @returns a Europe/Rome TZDate whose toJSON yields a naive local datetime string.
|
|
23
|
+
*/
|
|
24
|
+
private static toLocal;
|
|
17
25
|
/**
|
|
18
26
|
* Returns the year component of the given date.
|
|
19
27
|
* @param date - The source date.
|
|
@@ -77,7 +85,7 @@ declare class DateFnsAdapter extends DateAdapter<Date, Locale> {
|
|
|
77
85
|
*/
|
|
78
86
|
createDate(year: number, month: number, date: number): Date;
|
|
79
87
|
/**
|
|
80
|
-
* Returns
|
|
88
|
+
* Returns the current date and time in the Europe/Rome timezone, preserving the wall-clock value.
|
|
81
89
|
*/
|
|
82
90
|
today(): Date;
|
|
83
91
|
/**
|
|
@@ -116,8 +124,10 @@ declare class DateFnsAdapter extends DateAdapter<Date, Locale> {
|
|
|
116
124
|
*/
|
|
117
125
|
addCalendarDays(date: Date, days: number): Date;
|
|
118
126
|
/**
|
|
119
|
-
* Serialises a date to an ISO 8601 date string (`yyyy-MM-dd`)
|
|
127
|
+
* Serialises a date to an ISO 8601 date-only string (`yyyy-MM-dd`) using its Europe/Rome calendar day,
|
|
128
|
+
* independent of the browser timezone.
|
|
120
129
|
* @param date - The date to serialise.
|
|
130
|
+
* @returns the yyyy-MM-dd string for the date in Europe/Rome.
|
|
121
131
|
*/
|
|
122
132
|
toIso8601(date: Date): string;
|
|
123
133
|
/**
|
|
@@ -141,14 +151,53 @@ declare class DateFnsAdapter extends DateAdapter<Date, Locale> {
|
|
|
141
151
|
* Returns a sentinel `Date` that represents an invalid date (`new Date(NaN)`).
|
|
142
152
|
*/
|
|
143
153
|
invalid(): Date;
|
|
154
|
+
/**
|
|
155
|
+
* Returns the hours component (0-23) of the given date.
|
|
156
|
+
* @param date - The source date.
|
|
157
|
+
*/
|
|
158
|
+
getHours(date: Date): number;
|
|
159
|
+
/**
|
|
160
|
+
* Returns the minutes component (0-59) of the given date.
|
|
161
|
+
* @param date - The source date.
|
|
162
|
+
*/
|
|
163
|
+
getMinutes(date: Date): number;
|
|
164
|
+
/**
|
|
165
|
+
* Returns the seconds component (0-59) of the given date.
|
|
166
|
+
* @param date - The source date.
|
|
167
|
+
*/
|
|
168
|
+
getSeconds(date: Date): number;
|
|
169
|
+
/**
|
|
170
|
+
* Returns a clone of `target` with its time-of-day set to the given hours/minutes/seconds,
|
|
171
|
+
* keeping the date part unchanged.
|
|
172
|
+
* @param target - The date whose time should be set.
|
|
173
|
+
* @param hours - New hours (0-23).
|
|
174
|
+
* @param minutes - New minutes (0-59).
|
|
175
|
+
* @param seconds - New seconds (0-59).
|
|
176
|
+
*/
|
|
177
|
+
setTime(target: Date, hours: number, minutes: number, seconds: number): Date;
|
|
178
|
+
/**
|
|
179
|
+
* Adds the given number of seconds to a date.
|
|
180
|
+
* @param date - The base date.
|
|
181
|
+
* @param amount - Number of seconds to add (can be negative).
|
|
182
|
+
*/
|
|
183
|
+
addSeconds(date: Date, amount: number): Date;
|
|
184
|
+
/**
|
|
185
|
+
* Parses a time-only value into a `Date` (today's date, in `Europe/Rome`, with the parsed
|
|
186
|
+
* time-of-day set). The wall-clock time is preserved exactly as entered.
|
|
187
|
+
* @param value - The value to parse (a string, or an existing `Date`).
|
|
188
|
+
* @param parseFormat - A format string or an array of format strings (date-fns tokens).
|
|
189
|
+
* @returns the parsed Date, an invalid sentinel, or null for unrecognised input.
|
|
190
|
+
*/
|
|
191
|
+
parseTime(value: unknown, parseFormat: string | string[]): Date | null;
|
|
144
192
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateFnsAdapter, never>;
|
|
145
193
|
static ɵprov: i0.ɵɵInjectableDeclaration<DateFnsAdapter>;
|
|
146
194
|
}
|
|
147
195
|
/**
|
|
148
|
-
* Standalone providers for the
|
|
196
|
+
* Standalone providers for the ARS date-fns adapter.
|
|
149
197
|
*
|
|
150
198
|
* Configures Angular Material to use {@link DateFnsAdapter} (Europe/Rome timezone)
|
|
151
|
-
* and the matching {@link MAT_DATE_FNS_FORMATS}.
|
|
199
|
+
* and the matching {@link MAT_DATE_FNS_FORMATS}. Also supports `mat-timepicker` since
|
|
200
|
+
* {@link DateFnsAdapter} implements the time-related `DateAdapter` methods.
|
|
152
201
|
*
|
|
153
202
|
* @example
|
|
154
203
|
* bootstrapApplication(AppComponent, {
|
|
@@ -1005,7 +1005,7 @@ declare class ChipsSelectorComponent implements OnDestroy, ControlValueAccessor
|
|
|
1005
1005
|
/** Minimum width in pixels when collapsed. Use `-1` for automatic. */
|
|
1006
1006
|
readonly collapsedWidth: _angular_core.InputSignal<number>;
|
|
1007
1007
|
/** Display mode used when the selector is in collapsed state. */
|
|
1008
|
-
readonly collapsedDisplayMode: _angular_core.InputSignal<"
|
|
1008
|
+
readonly collapsedDisplayMode: _angular_core.InputSignal<"button" | "dropdown">;
|
|
1009
1009
|
/** Pixel threshold below which the selector collapses. Use `-1` to disable. */
|
|
1010
1010
|
readonly collapseAt: _angular_core.InputSignal<number>;
|
|
1011
1011
|
/** When `true`, `collapseAt` is compared against the container width rather than the window width. */
|
|
@@ -1018,7 +1018,7 @@ declare class ChipsSelectorComponent implements OnDestroy, ControlValueAccessor
|
|
|
1018
1018
|
/** When `true`, at least one item must remain selected. */
|
|
1019
1019
|
readonly mustSelect: _angular_core.InputSignal<boolean>;
|
|
1020
1020
|
/** Layout mode: `'collapsed'` forces dropdown mode, `'dynamic'` collapses based on `collapseAt`. */
|
|
1021
|
-
readonly mode: _angular_core.InputSignal<"
|
|
1021
|
+
readonly mode: _angular_core.InputSignal<"dynamic" | "collapsed">;
|
|
1022
1022
|
/** When `true`, chips are stacked vertically instead of wrapping horizontally. */
|
|
1023
1023
|
readonly stacked: _angular_core.InputSignal<boolean>;
|
|
1024
1024
|
/** Chips below this index receive extra padding to align with other UI elements. */
|
|
@@ -410,7 +410,7 @@ declare class BusyDialogComponent {
|
|
|
410
410
|
/** Current progress value (0–100). Used when `progressMode` is `'determinate'`. */
|
|
411
411
|
readonly progress: _angular_core.WritableSignal<number>;
|
|
412
412
|
/** Progress mode passed to the Material progress components. */
|
|
413
|
-
readonly progressMode: _angular_core.WritableSignal<"
|
|
413
|
+
readonly progressMode: _angular_core.WritableSignal<"indeterminate" | "determinate">;
|
|
414
414
|
/** Message displayed above the progress indicator. */
|
|
415
415
|
readonly message: _angular_core.WritableSignal<string>;
|
|
416
416
|
/**
|