@arsedizioni/ars-utils 22.0.20 → 22.0.21
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 +3 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +35 -2
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +1 -0
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1 -1
- package/types/arsedizioni-ars-utils-core.d.ts +26 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Pipe, inject, makeEnvironmentProviders, Injectable, ElementRef, afterNextRender, Directive, input, DestroyRef, HostListener, output, forwardRef, EventEmitter, signal, computed, Service, RendererFactory2 } from '@angular/core';
|
|
2
|
+
import { Pipe, inject, makeEnvironmentProviders, Injectable, ElementRef, afterNextRender, Directive, input, DestroyRef, HostListener, output, forwardRef, EventEmitter, signal, computed, Service, PLATFORM_ID, RendererFactory2 } from '@angular/core';
|
|
3
3
|
import { parseISO, parse, format, getYear, getMonth, getDate, getDay, getDaysInMonth, addYears, addMonths, addDays, formatISO, isDate, isValid, endOfDay } from 'date-fns';
|
|
4
4
|
import { it } from 'date-fns/locale';
|
|
5
5
|
import { TZDate } from '@date-fns/tz';
|
|
@@ -10,6 +10,7 @@ import { Subject, BehaviorSubject } from 'rxjs';
|
|
|
10
10
|
import { debounceTime } from 'rxjs/operators';
|
|
11
11
|
import { NG_VALIDATORS } from '@angular/forms';
|
|
12
12
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
13
|
+
import { isPlatformBrowser } from '@angular/common';
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* Zero-dependency Markdown to HTML converter.
|
|
@@ -3332,6 +3333,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
3332
3333
|
type: Service
|
|
3333
3334
|
}] });
|
|
3334
3335
|
|
|
3336
|
+
class SplashService {
|
|
3337
|
+
constructor() {
|
|
3338
|
+
this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
|
|
3339
|
+
}
|
|
3340
|
+
/**
|
|
3341
|
+
* Resolve the global splash API exposed by index.html.
|
|
3342
|
+
* @returns The API object, or `undefined` when the splash has already
|
|
3343
|
+
* been removed or when running in SSR.
|
|
3344
|
+
*/
|
|
3345
|
+
get api() {
|
|
3346
|
+
return this.isBrowser ? window.splash : undefined;
|
|
3347
|
+
}
|
|
3348
|
+
/**
|
|
3349
|
+
* Update the splash message (e.g. "Accesso in corso...").
|
|
3350
|
+
* No-op when the splash is gone or in SSR.
|
|
3351
|
+
* @param text - The new message to display.
|
|
3352
|
+
*/
|
|
3353
|
+
setMessage(text) { this.api?.setMessage(text); }
|
|
3354
|
+
/**
|
|
3355
|
+
* Defuse the watchdog: Angular bootstrap succeeded,
|
|
3356
|
+
* no automatic reload will ever fire.
|
|
3357
|
+
*/
|
|
3358
|
+
bootstrapped() { this.api?.disarm(); }
|
|
3359
|
+
/** Fade out and remove the splash overlay from the DOM. */
|
|
3360
|
+
hide() { this.api?.hide(); }
|
|
3361
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: SplashService, deps: [], target: i0.ɵɵFactoryTarget.Service }); }
|
|
3362
|
+
static { this.ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.1", ngImport: i0, type: SplashService }); }
|
|
3363
|
+
}
|
|
3364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: SplashService, decorators: [{
|
|
3365
|
+
type: Service
|
|
3366
|
+
}] });
|
|
3367
|
+
|
|
3335
3368
|
/**
|
|
3336
3369
|
* Application-level theme management service.
|
|
3337
3370
|
*
|
|
@@ -3462,5 +3495,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
3462
3495
|
* Generated bundle index. Do not edit.
|
|
3463
3496
|
*/
|
|
3464
3497
|
|
|
3465
|
-
export { AutoFocusDirective, Breakpoints, BroadcastChannelManager, BroadcastService, CopyClipboardDirective, DateFnsAdapter, DateFormat, DateInterval, DateIntervalChangeDirective, DeleteModel, EmailsValidatorDirective, EnvironmentService, EqualsValidatorDirective, FileInfo, FileSizeValidatorDirective, FormatHtmlPipe, FormatMarkdownPipe, FormatPipe, GroupModel, GuidValidatorDirective, IDModel, ImportModel, MAT_DATE_FNS_FORMATS, MaxTermsValidatorDirective, NotEmptyValidatorDirective, NotEqualValidatorDirective, NotFutureValidatorDirective, PasswordValidatorDirective, QueryModel, RelationModel, RemoveFocusDirective, ReplacePipe, SafeHtmlPipe, SafeUrlPipe, ScreenService, SearchCallbackPipe, SearchFilterPipe, SelectableModel, SqlDateValidatorDirective, SystemUtils, ThemeService, TimeValidatorDirective, UpdateRelationsModel, UrlValidatorDirective, UtilsMessages, ValidIfDirective, ValidatorDirective, ValueModel, provideArsCore, provideArsDateFns };
|
|
3498
|
+
export { AutoFocusDirective, Breakpoints, BroadcastChannelManager, BroadcastService, CopyClipboardDirective, DateFnsAdapter, DateFormat, DateInterval, DateIntervalChangeDirective, DeleteModel, EmailsValidatorDirective, EnvironmentService, EqualsValidatorDirective, FileInfo, FileSizeValidatorDirective, FormatHtmlPipe, FormatMarkdownPipe, FormatPipe, GroupModel, GuidValidatorDirective, IDModel, ImportModel, MAT_DATE_FNS_FORMATS, MaxTermsValidatorDirective, NotEmptyValidatorDirective, NotEqualValidatorDirective, NotFutureValidatorDirective, PasswordValidatorDirective, QueryModel, RelationModel, RemoveFocusDirective, ReplacePipe, SafeHtmlPipe, SafeUrlPipe, ScreenService, SearchCallbackPipe, SearchFilterPipe, SelectableModel, SplashService, SqlDateValidatorDirective, SystemUtils, ThemeService, TimeValidatorDirective, UpdateRelationsModel, UrlValidatorDirective, UtilsMessages, ValidIfDirective, ValidatorDirective, ValueModel, provideArsCore, provideArsDateFns };
|
|
3466
3499
|
//# sourceMappingURL=arsedizioni-ars-utils-core.mjs.map
|