@arsedizioni/ars-utils 22.0.22 → 22.0.23
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.
|
@@ -310,17 +310,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
310
310
|
type: Injectable
|
|
311
311
|
}], ctorParameters: () => [] });
|
|
312
312
|
/**
|
|
313
|
-
* Standalone providers for the
|
|
313
|
+
* Standalone providers for the ars-utils date-fns adapter.
|
|
314
314
|
*
|
|
315
315
|
* Configures Angular Material to use {@link DateFnsAdapter} (Europe/Rome timezone)
|
|
316
316
|
* and the matching {@link MAT_DATE_FNS_FORMATS}.
|
|
317
317
|
*
|
|
318
318
|
* @example
|
|
319
319
|
* bootstrapApplication(AppComponent, {
|
|
320
|
-
* providers: [
|
|
320
|
+
* providers: [provideArsDateFns()]
|
|
321
321
|
* });
|
|
322
322
|
*/
|
|
323
|
-
function
|
|
323
|
+
function provideArsDateFns() {
|
|
324
324
|
return makeEnvironmentProviders([
|
|
325
325
|
{
|
|
326
326
|
provide: DateAdapter,
|
|
@@ -3138,17 +3138,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
3138
3138
|
}]
|
|
3139
3139
|
}] });
|
|
3140
3140
|
|
|
3141
|
-
const Breakpoints = {
|
|
3142
|
-
XXSmall: '(max-width: 349.98px)',
|
|
3143
|
-
XSmall: '(max-width: 599.98px)',
|
|
3144
|
-
Small: '(min-width: 600px) and (max-width: 959.98px)',
|
|
3145
|
-
SmallMedium: '(min-width: 600px) and (max-width: 1059.98px)',
|
|
3146
|
-
Medium: '(min-width: 960px) and (max-width: 1279.98px)',
|
|
3147
|
-
MediumLarge: '(min-width: 960px) and (max-width: 1459.98px)',
|
|
3148
|
-
Large: '(min-width: 1460px) and (max-width: 1919.98px)',
|
|
3149
|
-
XLarge: '(min-width: 1920px)'
|
|
3150
|
-
};
|
|
3151
|
-
|
|
3152
3141
|
const UtilsMessages = {
|
|
3153
3142
|
/**
|
|
3154
3143
|
* Messages
|
|
@@ -3447,6 +3436,7 @@ class BroadcastChannelManager {
|
|
|
3447
3436
|
}
|
|
3448
3437
|
}
|
|
3449
3438
|
|
|
3439
|
+
const CHANNEL_NAME = 'D2693418-B18F-41BB-BAE9-41BB5407957A-CHANNEL';
|
|
3450
3440
|
/**
|
|
3451
3441
|
* Application-level messaging service that combines two transports:
|
|
3452
3442
|
* - An in-process RxJS `Subject` for same-tab communication (`sendMessage` / `getMessage`).
|
|
@@ -3455,15 +3445,15 @@ class BroadcastChannelManager {
|
|
|
3455
3445
|
class BroadcastService {
|
|
3456
3446
|
constructor() {
|
|
3457
3447
|
this.subject = new Subject();
|
|
3458
|
-
this.channel = new BroadcastChannelManager(
|
|
3448
|
+
this.channel = new BroadcastChannelManager(CHANNEL_NAME);
|
|
3459
3449
|
}
|
|
3460
3450
|
/**
|
|
3461
3451
|
* Creates a new standalone `BroadcastChannelManager` instance bound to the shared ARS channel.
|
|
3462
3452
|
* Useful when a caller needs direct channel access outside the service.
|
|
3463
|
-
* @returns A new `BroadcastChannelManager` connected to `'
|
|
3453
|
+
* @returns A new `BroadcastChannelManager` connected to `'D2693418-B18F-41BB-BAE9-41BB5407957A-CHANNEL'`.
|
|
3464
3454
|
*/
|
|
3465
3455
|
static createChannel() {
|
|
3466
|
-
return new BroadcastChannelManager(
|
|
3456
|
+
return new BroadcastChannelManager(CHANNEL_NAME);
|
|
3467
3457
|
}
|
|
3468
3458
|
ngOnDestroy() {
|
|
3469
3459
|
this.channel?.dispose();
|
|
@@ -3806,5 +3796,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImpor
|
|
|
3806
3796
|
* Generated bundle index. Do not edit.
|
|
3807
3797
|
*/
|
|
3808
3798
|
|
|
3809
|
-
export { AutoFocusDirective,
|
|
3799
|
+
export { AutoFocusDirective, BroadcastChannelManager, BroadcastService, CHANNEL_NAME, 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, provideArsDateFns };
|
|
3810
3800
|
//# sourceMappingURL=arsedizioni-ars-utils-core.mjs.map
|