@ama-mfe/ng-utils 14.6.0-prerelease.9 → 15.0.0-rc.1
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/ama-mfe-ng-utils.mjs +163 -144
- package/fesm2022/ama-mfe-ng-utils.mjs.map +1 -1
- package/package.json +12 -12
- package/schematics/ng-add/index.js +2 -1
- package/schematics/ng-add/index.js.map +1 -1
- package/types/ama-mfe-ng-utils.d.ts +20 -14
- package/types/ama-mfe-ng-utils.d.ts.map +1 -1
|
@@ -20,11 +20,13 @@ class ConnectDirective {
|
|
|
20
20
|
/**
|
|
21
21
|
* The connection ID required for the message peer service.
|
|
22
22
|
*/
|
|
23
|
-
this.connect = input.required(
|
|
23
|
+
this.connect = input.required(/* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [{ debugName: "connect" }] : /* istanbul ignore next */ []));
|
|
24
25
|
/**
|
|
25
26
|
* The sanitized source URL for the iframe.
|
|
26
27
|
*/
|
|
27
|
-
this.src = input(
|
|
28
|
+
this.src = input(/* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [undefined, { debugName: "src" }] : /* istanbul ignore next */ []));
|
|
28
30
|
this.messageService = inject(MessagePeerService);
|
|
29
31
|
this.domSanitizer = inject(DomSanitizer);
|
|
30
32
|
this.iframeElement = inject(ElementRef).nativeElement;
|
|
@@ -32,7 +34,8 @@ class ConnectDirective {
|
|
|
32
34
|
const src = this.src();
|
|
33
35
|
const srcString = src && this.domSanitizer.sanitize(SecurityContext.RESOURCE_URL, src);
|
|
34
36
|
return srcString && new URL(srcString).origin;
|
|
35
|
-
},
|
|
37
|
+
}, /* @ts-ignore */
|
|
38
|
+
...(ngDevMode ? [{ debugName: "clientOrigin" }] : /* istanbul ignore next */ []));
|
|
36
39
|
const logger = inject(LoggerService);
|
|
37
40
|
// When the origin or connection ID change - reconnect the message service
|
|
38
41
|
effect((onCleanup) => {
|
|
@@ -58,10 +61,10 @@ class ConnectDirective {
|
|
|
58
61
|
});
|
|
59
62
|
});
|
|
60
63
|
}
|
|
61
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
62
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
64
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ConnectDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
65
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: ConnectDirective, isStandalone: true, selector: "iframe[connect]", inputs: { connect: { classPropertyName: "connect", publicName: "connect", isSignal: true, isRequired: true, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "src": "this.srcAttr" } }, ngImport: i0 }); }
|
|
63
66
|
}
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ConnectDirective, decorators: [{
|
|
65
68
|
type: Directive,
|
|
66
69
|
args: [{
|
|
67
70
|
selector: 'iframe[connect]',
|
|
@@ -143,10 +146,10 @@ class ProducerManagerService {
|
|
|
143
146
|
}
|
|
144
147
|
return handlersPresent;
|
|
145
148
|
}
|
|
146
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
147
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
149
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ProducerManagerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
150
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ProducerManagerService, providedIn: 'root' }); }
|
|
148
151
|
}
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ProducerManagerService, decorators: [{
|
|
150
153
|
type: Injectable,
|
|
151
154
|
args: [{
|
|
152
155
|
providedIn: 'root'
|
|
@@ -170,7 +173,8 @@ class ConsumerManagerService {
|
|
|
170
173
|
constructor() {
|
|
171
174
|
this.messageService = inject(MessagePeerService);
|
|
172
175
|
this.producerManagerService = inject(ProducerManagerService);
|
|
173
|
-
this.registeredConsumers = signal([],
|
|
176
|
+
this.registeredConsumers = signal([], /* @ts-ignore */
|
|
177
|
+
...(ngDevMode ? [{ debugName: "registeredConsumers" }] : /* istanbul ignore next */ []));
|
|
174
178
|
this.logger = inject(LoggerService);
|
|
175
179
|
/** The list of registered consumers */
|
|
176
180
|
this.consumers = this.registeredConsumers.asReadonly();
|
|
@@ -267,10 +271,10 @@ class ConsumerManagerService {
|
|
|
267
271
|
return consumers.filter((c) => c !== consumer);
|
|
268
272
|
});
|
|
269
273
|
}
|
|
270
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
271
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
274
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ConsumerManagerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
275
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ConsumerManagerService, providedIn: 'root' }); }
|
|
272
276
|
}
|
|
273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ConsumerManagerService, decorators: [{
|
|
274
278
|
type: Injectable,
|
|
275
279
|
args: [{
|
|
276
280
|
providedIn: 'root'
|
|
@@ -340,7 +344,7 @@ const registerConsumer = (consumer) => {
|
|
|
340
344
|
*/
|
|
341
345
|
class HistoryConsumerService extends AbstractMessageConsumer {
|
|
342
346
|
constructor() {
|
|
343
|
-
super();
|
|
347
|
+
super(...arguments);
|
|
344
348
|
/**
|
|
345
349
|
* The type of messages this service handles.
|
|
346
350
|
*/
|
|
@@ -357,21 +361,16 @@ class HistoryConsumerService extends AbstractMessageConsumer {
|
|
|
357
361
|
history.go(message.payload.delta);
|
|
358
362
|
}
|
|
359
363
|
};
|
|
360
|
-
/**
|
|
361
|
-
* Auto-starts the consumer on creation.
|
|
362
|
-
* @deprecated The constructor auto-starts the consumer for backwards compatibility. It will be removed in v15;
|
|
363
|
-
*/
|
|
364
|
-
this.start();
|
|
365
364
|
}
|
|
366
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
367
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
365
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: HistoryConsumerService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
366
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: HistoryConsumerService, providedIn: 'root' }); }
|
|
368
367
|
}
|
|
369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: HistoryConsumerService, decorators: [{
|
|
370
369
|
type: Injectable,
|
|
371
370
|
args: [{
|
|
372
371
|
providedIn: 'root'
|
|
373
372
|
}]
|
|
374
|
-
}]
|
|
373
|
+
}] });
|
|
375
374
|
|
|
376
375
|
/**
|
|
377
376
|
* Provides necessary overrides to make the module navigation in history work in an embedded context :
|
|
@@ -482,10 +481,10 @@ class HostInfoPipe {
|
|
|
482
481
|
return typeof url === 'string' ? moduleUrlStringyfied : this.domSanitizer.bypassSecurityTrustResourceUrl(moduleUrlStringyfied);
|
|
483
482
|
}
|
|
484
483
|
}
|
|
485
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
486
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
484
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: HostInfoPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
485
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: HostInfoPipe, isStandalone: true, name: "hostInfo" }); }
|
|
487
486
|
}
|
|
488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: HostInfoPipe, decorators: [{
|
|
489
488
|
type: Pipe,
|
|
490
489
|
args: [{
|
|
491
490
|
name: 'hostInfo'
|
|
@@ -584,8 +583,9 @@ function provideConnection(connectionConfigOptions) {
|
|
|
584
583
|
*/
|
|
585
584
|
class ResizeConsumerService extends AbstractMessageConsumer {
|
|
586
585
|
constructor() {
|
|
587
|
-
super();
|
|
588
|
-
this.newHeight = signal(undefined,
|
|
586
|
+
super(...arguments);
|
|
587
|
+
this.newHeight = signal(undefined, /* @ts-ignore */
|
|
588
|
+
...(ngDevMode ? [{ debugName: "newHeight" }] : /* istanbul ignore next */ []));
|
|
589
589
|
/**
|
|
590
590
|
* A readonly signal that provides the new height information from the channel.
|
|
591
591
|
*/
|
|
@@ -604,21 +604,16 @@ class ResizeConsumerService extends AbstractMessageConsumer {
|
|
|
604
604
|
*/
|
|
605
605
|
'1.0': (message) => this.newHeight.set({ height: message.payload.height, channelId: message.from })
|
|
606
606
|
};
|
|
607
|
-
/**
|
|
608
|
-
* Auto-starts the consumer on creation.
|
|
609
|
-
* @deprecated The constructor auto-starts the consumer for backwards compatibility. It will be removed in v15;
|
|
610
|
-
*/
|
|
611
|
-
this.start();
|
|
612
607
|
}
|
|
613
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
614
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
608
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ResizeConsumerService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
609
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ResizeConsumerService, providedIn: 'root' }); }
|
|
615
610
|
}
|
|
616
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ResizeConsumerService, decorators: [{
|
|
617
612
|
type: Injectable,
|
|
618
613
|
args: [{
|
|
619
614
|
providedIn: 'root'
|
|
620
615
|
}]
|
|
621
|
-
}]
|
|
616
|
+
}] });
|
|
622
617
|
|
|
623
618
|
/**
|
|
624
619
|
* A directive that adjusts the min-height of an element based on resize messages from a specified channel.
|
|
@@ -630,7 +625,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
630
625
|
*
|
|
631
626
|
* The available height is calculated by:
|
|
632
627
|
* 1. Finding the nearest scrollable parent container and using its `clientHeight`
|
|
633
|
-
* 2. Falling back to viewport calculation: `
|
|
628
|
+
* 2. Falling back to viewport calculation: `viewport height - element's top position` (the viewport height is read from
|
|
629
|
+
* `window.visualViewport` when available, as `window.innerHeight` is rounded and would overestimate the space)
|
|
634
630
|
*
|
|
635
631
|
* The element's min-height is updated whenever:
|
|
636
632
|
* - A resize message is received from the matching channel (using `scalable` or `connect` input as channel ID)
|
|
@@ -642,17 +638,20 @@ class ScalableDirective {
|
|
|
642
638
|
/**
|
|
643
639
|
* The connection ID for the element, used as channel id backup
|
|
644
640
|
*/
|
|
645
|
-
this.connect = input(
|
|
641
|
+
this.connect = input(/* @ts-ignore */
|
|
642
|
+
...(ngDevMode ? [undefined, { debugName: "connect" }] : /* istanbul ignore next */ []));
|
|
646
643
|
/**
|
|
647
644
|
* The channel id
|
|
648
645
|
*/
|
|
649
|
-
this.scalable = input(
|
|
646
|
+
this.scalable = input(/* @ts-ignore */
|
|
647
|
+
...(ngDevMode ? [undefined, { debugName: "scalable" }] : /* istanbul ignore next */ []));
|
|
650
648
|
this.resizeHandler = inject(ResizeConsumerService);
|
|
651
649
|
this.destroyRef = inject(DestroyRef);
|
|
652
650
|
this.elem = inject(ElementRef);
|
|
653
651
|
this.renderer = inject(Renderer2);
|
|
654
652
|
/** Signal holding the current available container height */
|
|
655
|
-
this.availableHeight = signal(undefined,
|
|
653
|
+
this.availableHeight = signal(undefined, /* @ts-ignore */
|
|
654
|
+
...(ngDevMode ? [{ debugName: "availableHeight" }] : /* istanbul ignore next */ []));
|
|
656
655
|
/** Cached container element */
|
|
657
656
|
this.container = null;
|
|
658
657
|
/**
|
|
@@ -666,7 +665,8 @@ class ScalableDirective {
|
|
|
666
665
|
return newHeightFromChannel;
|
|
667
666
|
}
|
|
668
667
|
return undefined;
|
|
669
|
-
},
|
|
668
|
+
}, /* @ts-ignore */
|
|
669
|
+
...(ngDevMode ? [{ debugName: "newHeightFromChannel" }] : /* istanbul ignore next */ []));
|
|
670
670
|
this.resizeHandler.start();
|
|
671
671
|
// Start height observer after layout is complete (read phase ensures styles are applied)
|
|
672
672
|
afterNextRender({
|
|
@@ -681,6 +681,18 @@ class ScalableDirective {
|
|
|
681
681
|
this.resizeObserver?.disconnect();
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
|
+
/**
|
|
685
|
+
* Get the viewport height without the rounding applied by `window.innerHeight`.
|
|
686
|
+
*
|
|
687
|
+
* `window.innerHeight` is an integer, rounded from the actual viewport height (e.g. `677.6px` is reported as `678`),
|
|
688
|
+
* which would lead to a min-height slightly bigger than the available space and therefore to an unwanted scrollbar.
|
|
689
|
+
* `visualViewport.height` exposes the sub-pixel value; it is scaled back by `visualViewport.scale` to stay on the
|
|
690
|
+
* layout viewport scale when the page is pinch-zoomed.
|
|
691
|
+
*/
|
|
692
|
+
getViewportHeight() {
|
|
693
|
+
const visualViewport = window.visualViewport;
|
|
694
|
+
return visualViewport ? visualViewport.height * visualViewport.scale : window.innerHeight;
|
|
695
|
+
}
|
|
684
696
|
/**
|
|
685
697
|
* Calculate the available height from the scrollable container.
|
|
686
698
|
*/
|
|
@@ -688,9 +700,9 @@ class ScalableDirective {
|
|
|
688
700
|
if (this.container) {
|
|
689
701
|
return this.container.clientHeight || undefined;
|
|
690
702
|
}
|
|
691
|
-
// Fallback: use viewport
|
|
703
|
+
// Fallback: use viewport, floored to avoid exceeding the actual available space because of sub-pixel positions
|
|
692
704
|
const rect = this.elem.nativeElement.getBoundingClientRect();
|
|
693
|
-
const availableHeight =
|
|
705
|
+
const availableHeight = Math.floor(this.getViewportHeight() - rect.top);
|
|
694
706
|
return availableHeight > 0 ? availableHeight : undefined;
|
|
695
707
|
}
|
|
696
708
|
/**
|
|
@@ -747,10 +759,10 @@ class ScalableDirective {
|
|
|
747
759
|
this.renderer.setStyle(this.elem.nativeElement, 'min-height', `${height}px`);
|
|
748
760
|
}
|
|
749
761
|
}
|
|
750
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
751
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
762
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ScalableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
763
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: ScalableDirective, isStandalone: true, selector: "[scalable]", inputs: { connect: { classPropertyName: "connect", publicName: "connect", isSignal: true, isRequired: false, transformFunction: null }, scalable: { classPropertyName: "scalable", publicName: "scalable", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
752
764
|
}
|
|
753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ScalableDirective, decorators: [{
|
|
754
766
|
type: Directive,
|
|
755
767
|
args: [{
|
|
756
768
|
selector: '[scalable]',
|
|
@@ -851,7 +863,8 @@ class ThemeProducerService {
|
|
|
851
863
|
name: selectedThemeName,
|
|
852
864
|
css: null
|
|
853
865
|
}
|
|
854
|
-
: undefined,
|
|
866
|
+
: undefined, /* @ts-ignore */
|
|
867
|
+
...(ngDevMode ? [{ debugName: "currentThemeSelection" }] : /* istanbul ignore next */ []));
|
|
855
868
|
this.currentTheme = this.currentThemeSelection.asReadonly();
|
|
856
869
|
if (selectedThemeName) {
|
|
857
870
|
void this.changeTheme(selectedThemeName);
|
|
@@ -908,10 +921,10 @@ class ThemeProducerService {
|
|
|
908
921
|
this.logger.error('Error in theme service message', message);
|
|
909
922
|
this.revertToPreviousTheme();
|
|
910
923
|
}
|
|
911
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
912
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
924
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ThemeProducerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
925
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ThemeProducerService, providedIn: 'root' }); }
|
|
913
926
|
}
|
|
914
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
927
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ThemeProducerService, decorators: [{
|
|
915
928
|
type: Injectable,
|
|
916
929
|
args: [{
|
|
917
930
|
providedIn: 'root'
|
|
@@ -944,10 +957,10 @@ class ApplyTheme {
|
|
|
944
957
|
}
|
|
945
958
|
return undefined;
|
|
946
959
|
}
|
|
947
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
948
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
960
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApplyTheme, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
961
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: ApplyTheme, isStandalone: true, name: "applyTheme" }); }
|
|
949
962
|
}
|
|
950
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
963
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApplyTheme, decorators: [{
|
|
951
964
|
type: Pipe,
|
|
952
965
|
args: [{
|
|
953
966
|
name: 'applyTheme'
|
|
@@ -971,15 +984,16 @@ class SandboxDirective {
|
|
|
971
984
|
* Defaults to empty string (most restrictive: all restrictions apply).
|
|
972
985
|
* Set once at initialization; runtime changes are ignored for security reasons.
|
|
973
986
|
*/
|
|
974
|
-
this.mfeSandbox = input('',
|
|
987
|
+
this.mfeSandbox = input('', /* @ts-ignore */
|
|
988
|
+
...(ngDevMode ? [{ debugName: "mfeSandbox" }] : /* istanbul ignore next */ []));
|
|
975
989
|
}
|
|
976
990
|
ngOnInit() {
|
|
977
991
|
this.renderer.setAttribute(this.elementRef.nativeElement, 'sandbox', this.mfeSandbox());
|
|
978
992
|
}
|
|
979
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
980
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
993
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SandboxDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
994
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: SandboxDirective, isStandalone: true, selector: "iframe[mfeSandbox]", inputs: { mfeSandbox: { classPropertyName: "mfeSandbox", publicName: "mfeSandbox", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
981
995
|
}
|
|
982
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SandboxDirective, decorators: [{
|
|
983
997
|
type: Directive,
|
|
984
998
|
args: [{
|
|
985
999
|
selector: 'iframe[mfeSandbox]'
|
|
@@ -994,28 +1008,33 @@ class IframeEmbedComponent {
|
|
|
994
1008
|
constructor() {
|
|
995
1009
|
this.domSanitizer = inject(DomSanitizer);
|
|
996
1010
|
/** The URL for the iframe source (plain string or pre-sanitized SafeResourceUrl). */
|
|
997
|
-
this.src = input.required(
|
|
1011
|
+
this.src = input.required(/* @ts-ignore */
|
|
1012
|
+
...(ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []));
|
|
998
1013
|
/** The sanitized URL, auto-sanitized if a plain string is provided. */
|
|
999
1014
|
this.safeSrc = computed(() => {
|
|
1000
1015
|
const value = this.src();
|
|
1001
1016
|
return typeof value === 'string'
|
|
1002
1017
|
? this.domSanitizer.bypassSecurityTrustResourceUrl(value)
|
|
1003
1018
|
: value;
|
|
1004
|
-
},
|
|
1019
|
+
}, /* @ts-ignore */
|
|
1020
|
+
...(ngDevMode ? [{ debugName: "safeSrc" }] : /* istanbul ignore next */ []));
|
|
1005
1021
|
/** The unique identifier for the module, used for cross-iframe communication. */
|
|
1006
|
-
this.moduleId = input.required(
|
|
1022
|
+
this.moduleId = input.required(/* @ts-ignore */
|
|
1023
|
+
...(ngDevMode ? [{ debugName: "moduleId" }] : /* istanbul ignore next */ []));
|
|
1007
1024
|
/** The host application identifier sent to the embedded module. */
|
|
1008
|
-
this.hostApplicationId = input.required(
|
|
1025
|
+
this.hostApplicationId = input.required(/* @ts-ignore */
|
|
1026
|
+
...(ngDevMode ? [{ debugName: "hostApplicationId" }] : /* istanbul ignore next */ []));
|
|
1009
1027
|
/**
|
|
1010
1028
|
* The sandbox attribute for the iframe.
|
|
1011
1029
|
* Pass through to the SandboxDirective on the iframe element.
|
|
1012
1030
|
*/
|
|
1013
|
-
this.sandbox = input('allow-scripts allow-same-origin',
|
|
1031
|
+
this.sandbox = input('allow-scripts allow-same-origin', /* @ts-ignore */
|
|
1032
|
+
...(ngDevMode ? [{ debugName: "sandbox" }] : /* istanbul ignore next */ []));
|
|
1014
1033
|
}
|
|
1015
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1016
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1034
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: IframeEmbedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1035
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: IframeEmbedComponent, isStandalone: true, selector: "mfe-iframe-embed", inputs: { src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: true, transformFunction: null }, moduleId: { classPropertyName: "moduleId", publicName: "moduleId", isSignal: true, isRequired: true, transformFunction: null }, hostApplicationId: { classPropertyName: "hostApplicationId", publicName: "hostApplicationId", isSignal: true, isRequired: true, transformFunction: null }, sandbox: { classPropertyName: "sandbox", publicName: "sandbox", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@let hostInfoOptions = {hostId: hostApplicationId(), moduleId: moduleId()};\n<iframe\n [connect]=\"hostInfoOptions.moduleId\"\n scalable\n [src]=\"safeSrc() | hostInfo: hostInfoOptions | applyTheme\"\n [mfeSandbox]=\"sandbox()\">\n</iframe>\n", styles: ["mfe-iframe-embed iframe{height:100%;width:100%;display:block}\n"], dependencies: [{ kind: "directive", type: ConnectDirective, selector: "iframe[connect]", inputs: ["connect", "src"] }, { kind: "directive", type: ScalableDirective, selector: "[scalable]", inputs: ["connect", "scalable"] }, { kind: "directive", type: SandboxDirective, selector: "iframe[mfeSandbox]", inputs: ["mfeSandbox"] }, { kind: "pipe", type: ApplyTheme, name: "applyTheme" }, { kind: "pipe", type: HostInfoPipe, name: "hostInfo" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1017
1036
|
}
|
|
1018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1037
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: IframeEmbedComponent, decorators: [{
|
|
1019
1038
|
type: Component,
|
|
1020
1039
|
args: [{ selector: 'mfe-iframe-embed', imports: [
|
|
1021
1040
|
ConnectDirective,
|
|
@@ -1033,7 +1052,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1033
1052
|
*/
|
|
1034
1053
|
class NavigationConsumerService extends AbstractMessageConsumer {
|
|
1035
1054
|
constructor() {
|
|
1036
|
-
super();
|
|
1055
|
+
super(...arguments);
|
|
1037
1056
|
this.router = inject(Router);
|
|
1038
1057
|
this.activeRoute = inject(ActivatedRoute);
|
|
1039
1058
|
this.requestedUrl = new Subject();
|
|
@@ -1071,11 +1090,6 @@ class NavigationConsumerService extends AbstractMessageConsumer {
|
|
|
1071
1090
|
this.navigate(message.payload.url, message.payload.extras);
|
|
1072
1091
|
}
|
|
1073
1092
|
};
|
|
1074
|
-
/**
|
|
1075
|
-
* Auto-starts the consumer on creation.
|
|
1076
|
-
* @deprecated The constructor auto-starts the consumer for backwards compatibility. It will be removed in v15;
|
|
1077
|
-
*/
|
|
1078
|
-
this.start();
|
|
1079
1093
|
}
|
|
1080
1094
|
/**
|
|
1081
1095
|
* Parses a URL and returns an object containing the paths and query parameters.
|
|
@@ -1103,15 +1117,15 @@ class NavigationConsumerService extends AbstractMessageConsumer {
|
|
|
1103
1117
|
replaceUrl: extras?.replaceUrl
|
|
1104
1118
|
});
|
|
1105
1119
|
}
|
|
1106
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1107
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1120
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationConsumerService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1121
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationConsumerService, providedIn: 'root' }); }
|
|
1108
1122
|
}
|
|
1109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationConsumerService, decorators: [{
|
|
1110
1124
|
type: Injectable,
|
|
1111
1125
|
args: [{
|
|
1112
1126
|
providedIn: 'root'
|
|
1113
1127
|
}]
|
|
1114
|
-
}]
|
|
1128
|
+
}] });
|
|
1115
1129
|
|
|
1116
1130
|
/**
|
|
1117
1131
|
* This service allows routes to be memorized with an optional lifetime and provides methods to retrieve and manage these routes.
|
|
@@ -1149,10 +1163,10 @@ class RouteMemorizeService {
|
|
|
1149
1163
|
getRoute(channelId) {
|
|
1150
1164
|
return this.routeStack[channelId];
|
|
1151
1165
|
}
|
|
1152
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1153
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1166
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RouteMemorizeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1167
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RouteMemorizeService, providedIn: 'root' }); }
|
|
1154
1168
|
}
|
|
1155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RouteMemorizeService, decorators: [{
|
|
1156
1170
|
type: Injectable,
|
|
1157
1171
|
args: [{
|
|
1158
1172
|
providedIn: 'root'
|
|
@@ -1200,10 +1214,10 @@ class RestoreRoute {
|
|
|
1200
1214
|
return typeof url === 'string' ? moduleUrlStringyfied : this.domSanitizer.bypassSecurityTrustResourceUrl(moduleUrlStringyfied);
|
|
1201
1215
|
}
|
|
1202
1216
|
}
|
|
1203
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1204
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
1217
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RestoreRoute, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1218
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: RestoreRoute, isStandalone: true, name: "restoreRoute" }); }
|
|
1205
1219
|
}
|
|
1206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RestoreRoute, decorators: [{
|
|
1207
1221
|
type: Pipe,
|
|
1208
1222
|
args: [{
|
|
1209
1223
|
name: 'restoreRoute'
|
|
@@ -1216,28 +1230,34 @@ class RouteMemorizeDirective {
|
|
|
1216
1230
|
* Whether to memorize the route.
|
|
1217
1231
|
* Default is true.
|
|
1218
1232
|
*/
|
|
1219
|
-
this.memorizeRoute = input(true,
|
|
1233
|
+
this.memorizeRoute = input(true, /* @ts-ignore */
|
|
1234
|
+
...(ngDevMode ? [{ debugName: "memorizeRoute" }] : /* istanbul ignore next */ []));
|
|
1220
1235
|
/**
|
|
1221
1236
|
* The ID used to memorize the route.
|
|
1222
1237
|
*/
|
|
1223
|
-
this.memorizeRouteId = input(
|
|
1238
|
+
this.memorizeRouteId = input(/* @ts-ignore */
|
|
1239
|
+
...(ngDevMode ? [undefined, { debugName: "memorizeRouteId" }] : /* istanbul ignore next */ []));
|
|
1224
1240
|
/**
|
|
1225
1241
|
* The maximum age for memorizing the route.
|
|
1226
1242
|
* Default is 0.
|
|
1227
1243
|
*/
|
|
1228
|
-
this.memorizeMaxAge = input(0,
|
|
1244
|
+
this.memorizeMaxAge = input(0, /* @ts-ignore */
|
|
1245
|
+
...(ngDevMode ? [{ debugName: "memorizeMaxAge" }] : /* istanbul ignore next */ []));
|
|
1229
1246
|
/**
|
|
1230
1247
|
* The maximum age for memorizing the route, used as a fallback.
|
|
1231
1248
|
* Default is 0.
|
|
1232
1249
|
*/
|
|
1233
|
-
this.memorizeRouteMaxAge = input(0,
|
|
1250
|
+
this.memorizeRouteMaxAge = input(0, /* @ts-ignore */
|
|
1251
|
+
...(ngDevMode ? [{ debugName: "memorizeRouteMaxAge" }] : /* istanbul ignore next */ []));
|
|
1234
1252
|
/**
|
|
1235
1253
|
* The connection ID for the iframe where the actual directive is applied.
|
|
1236
1254
|
*/
|
|
1237
|
-
this.connect = input(
|
|
1255
|
+
this.connect = input(/* @ts-ignore */
|
|
1256
|
+
...(ngDevMode ? [undefined, { debugName: "connect" }] : /* istanbul ignore next */ []));
|
|
1238
1257
|
this.maxAge = computed(() => {
|
|
1239
1258
|
return this.memorizeMaxAge() || this.memorizeRouteMaxAge();
|
|
1240
|
-
},
|
|
1259
|
+
}, /* @ts-ignore */
|
|
1260
|
+
...(ngDevMode ? [{ debugName: "maxAge" }] : /* istanbul ignore next */ []));
|
|
1241
1261
|
const memory = inject(RouteMemorizeService);
|
|
1242
1262
|
const requestedUrlSignal = toSignal(inject(NavigationConsumerService).requestedUrl$);
|
|
1243
1263
|
/**
|
|
@@ -1257,10 +1277,10 @@ class RouteMemorizeDirective {
|
|
|
1257
1277
|
}
|
|
1258
1278
|
});
|
|
1259
1279
|
}
|
|
1260
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1261
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1280
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RouteMemorizeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1281
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: RouteMemorizeDirective, isStandalone: true, selector: "iframe[memorizeRoute]", inputs: { memorizeRoute: { classPropertyName: "memorizeRoute", publicName: "memorizeRoute", isSignal: true, isRequired: false, transformFunction: null }, memorizeRouteId: { classPropertyName: "memorizeRouteId", publicName: "memorizeRouteId", isSignal: true, isRequired: false, transformFunction: null }, memorizeMaxAge: { classPropertyName: "memorizeMaxAge", publicName: "memorizeMaxAge", isSignal: true, isRequired: false, transformFunction: null }, memorizeRouteMaxAge: { classPropertyName: "memorizeRouteMaxAge", publicName: "memorizeRouteMaxAge", isSignal: true, isRequired: false, transformFunction: null }, connect: { classPropertyName: "connect", publicName: "connect", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
1262
1282
|
}
|
|
1263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RouteMemorizeDirective, decorators: [{
|
|
1264
1284
|
type: Directive,
|
|
1265
1285
|
args: [{
|
|
1266
1286
|
selector: 'iframe[memorizeRoute]',
|
|
@@ -1374,10 +1394,10 @@ class RoutingService {
|
|
|
1374
1394
|
}
|
|
1375
1395
|
});
|
|
1376
1396
|
}
|
|
1377
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1378
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1397
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RoutingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1398
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RoutingService, providedIn: 'root' }); }
|
|
1379
1399
|
}
|
|
1380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RoutingService, decorators: [{
|
|
1381
1401
|
type: Injectable,
|
|
1382
1402
|
args: [{
|
|
1383
1403
|
providedIn: 'root'
|
|
@@ -1393,7 +1413,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1393
1413
|
*/
|
|
1394
1414
|
class NavigationBlockService {
|
|
1395
1415
|
constructor() {
|
|
1396
|
-
this.stateSignal = signal({ blocked: false },
|
|
1416
|
+
this.stateSignal = signal({ blocked: false }, /* @ts-ignore */
|
|
1417
|
+
...(ngDevMode ? [{ debugName: "stateSignal" }] : /* istanbul ignore next */ []));
|
|
1397
1418
|
/** Readonly view of the current navigation block state. */
|
|
1398
1419
|
this.state = this.stateSignal.asReadonly();
|
|
1399
1420
|
}
|
|
@@ -1408,10 +1429,10 @@ class NavigationBlockService {
|
|
|
1408
1429
|
unblock() {
|
|
1409
1430
|
this.stateSignal.set({ blocked: false });
|
|
1410
1431
|
}
|
|
1411
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1412
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1432
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1433
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockService, providedIn: 'root' }); }
|
|
1413
1434
|
}
|
|
1414
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockService, decorators: [{
|
|
1415
1436
|
type: Injectable,
|
|
1416
1437
|
args: [{
|
|
1417
1438
|
providedIn: 'root'
|
|
@@ -1453,10 +1474,10 @@ class NavigationBlockStateProducerService {
|
|
|
1453
1474
|
handleError(message) {
|
|
1454
1475
|
this.logger.error('navigation-block state message could not be consumed by the shell', message);
|
|
1455
1476
|
}
|
|
1456
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1457
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1477
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockStateProducerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1478
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockStateProducerService, providedIn: 'root' }); }
|
|
1458
1479
|
}
|
|
1459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockStateProducerService, decorators: [{
|
|
1460
1481
|
type: Injectable,
|
|
1461
1482
|
args: [{
|
|
1462
1483
|
providedIn: 'root'
|
|
@@ -1489,7 +1510,8 @@ class NavigationBlockStateConsumerService extends AbstractMessageConsumer {
|
|
|
1489
1510
|
});
|
|
1490
1511
|
}
|
|
1491
1512
|
};
|
|
1492
|
-
this.blockStateSignal = signal(undefined,
|
|
1513
|
+
this.blockStateSignal = signal(undefined, /* @ts-ignore */
|
|
1514
|
+
...(ngDevMode ? [{ debugName: "blockStateSignal" }] : /* istanbul ignore next */ []));
|
|
1493
1515
|
/** Last navigation block state reported by any module. */
|
|
1494
1516
|
this.blockState = this.blockStateSignal.asReadonly();
|
|
1495
1517
|
}
|
|
@@ -1499,10 +1521,10 @@ class NavigationBlockStateConsumerService extends AbstractMessageConsumer {
|
|
|
1499
1521
|
clear() {
|
|
1500
1522
|
this.blockStateSignal.set({ blocked: false });
|
|
1501
1523
|
}
|
|
1502
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1503
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1524
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockStateConsumerService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1525
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockStateConsumerService, providedIn: 'root' }); }
|
|
1504
1526
|
}
|
|
1505
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1527
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockStateConsumerService, decorators: [{
|
|
1506
1528
|
type: Injectable,
|
|
1507
1529
|
args: [{
|
|
1508
1530
|
providedIn: 'root'
|
|
@@ -1604,10 +1626,10 @@ class NavigationRequestManagerService {
|
|
|
1604
1626
|
}
|
|
1605
1627
|
this.producerManagerService.unregister(this);
|
|
1606
1628
|
}
|
|
1607
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1608
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1629
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationRequestManagerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1630
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationRequestManagerService, providedIn: 'root' }); }
|
|
1609
1631
|
}
|
|
1610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationRequestManagerService, decorators: [{
|
|
1611
1633
|
type: Injectable,
|
|
1612
1634
|
args: [{
|
|
1613
1635
|
providedIn: 'root'
|
|
@@ -1685,10 +1707,10 @@ class NavigationRequestConsumerService extends AbstractMessageConsumer {
|
|
|
1685
1707
|
}
|
|
1686
1708
|
this.producerService.sendDecision(message.payload.correlationId, message.from);
|
|
1687
1709
|
}
|
|
1688
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1689
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1710
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationRequestConsumerService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1711
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationRequestConsumerService, providedIn: 'root' }); }
|
|
1690
1712
|
}
|
|
1691
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationRequestConsumerService, decorators: [{
|
|
1692
1714
|
type: Injectable,
|
|
1693
1715
|
args: [{
|
|
1694
1716
|
providedIn: 'root'
|
|
@@ -1727,10 +1749,10 @@ class BrowserConfirmationStrategy {
|
|
|
1727
1749
|
// eslint-disable-next-line no-alert -- intentional use of window.confirm for basic confirmation strategy
|
|
1728
1750
|
return Promise.resolve(window.confirm(message));
|
|
1729
1751
|
}
|
|
1730
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1731
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1752
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BrowserConfirmationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1753
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BrowserConfirmationStrategy, providedIn: 'root' }); }
|
|
1732
1754
|
}
|
|
1733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BrowserConfirmationStrategy, decorators: [{
|
|
1734
1756
|
type: Injectable,
|
|
1735
1757
|
args: [{
|
|
1736
1758
|
providedIn: 'root'
|
|
@@ -1778,10 +1800,10 @@ class NavigationBlockConfirmationService {
|
|
|
1778
1800
|
this.pendingConfirmation = pending;
|
|
1779
1801
|
return pending;
|
|
1780
1802
|
}
|
|
1781
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1782
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1803
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockConfirmationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1804
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockConfirmationService, providedIn: 'root' }); }
|
|
1783
1805
|
}
|
|
1784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockConfirmationService, decorators: [{
|
|
1785
1807
|
type: Injectable,
|
|
1786
1808
|
args: [{
|
|
1787
1809
|
providedIn: 'root'
|
|
@@ -1843,10 +1865,10 @@ class NavigationDecisionConsumerService extends AbstractMessageConsumer {
|
|
|
1843
1865
|
};
|
|
1844
1866
|
this.producerService = inject(NavigationRequestManagerService);
|
|
1845
1867
|
}
|
|
1846
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1847
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1868
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationDecisionConsumerService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1869
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationDecisionConsumerService, providedIn: 'root' }); }
|
|
1848
1870
|
}
|
|
1849
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationDecisionConsumerService, decorators: [{
|
|
1850
1872
|
type: Injectable,
|
|
1851
1873
|
args: [{
|
|
1852
1874
|
providedIn: 'root'
|
|
@@ -1982,10 +2004,10 @@ class ResizeService {
|
|
|
1982
2004
|
});
|
|
1983
2005
|
afterNextRender(() => this.resizeObserver?.observe(document.body));
|
|
1984
2006
|
}
|
|
1985
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1986
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2007
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ResizeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2008
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ResizeService, providedIn: 'root' }); }
|
|
1987
2009
|
}
|
|
1988
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2010
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ResizeService, decorators: [{
|
|
1989
2011
|
type: Injectable,
|
|
1990
2012
|
args: [{
|
|
1991
2013
|
providedIn: 'root'
|
|
@@ -1997,7 +2019,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1997
2019
|
*/
|
|
1998
2020
|
class ThemeConsumerService extends AbstractMessageConsumer {
|
|
1999
2021
|
constructor() {
|
|
2000
|
-
super();
|
|
2022
|
+
super(...arguments);
|
|
2001
2023
|
this.domSanitizer = inject(DomSanitizer);
|
|
2002
2024
|
/**
|
|
2003
2025
|
* The type of messages this service handles ('theme').
|
|
@@ -2025,21 +2047,16 @@ class ThemeConsumerService extends AbstractMessageConsumer {
|
|
|
2025
2047
|
}
|
|
2026
2048
|
}
|
|
2027
2049
|
};
|
|
2028
|
-
/**
|
|
2029
|
-
* Auto-starts the consumer on creation.
|
|
2030
|
-
* @deprecated The constructor auto-starts the consumer for backwards compatibility. It will be removed in v15;
|
|
2031
|
-
*/
|
|
2032
|
-
this.start();
|
|
2033
2050
|
}
|
|
2034
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2035
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2051
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ThemeConsumerService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2052
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ThemeConsumerService, providedIn: 'root' }); }
|
|
2036
2053
|
}
|
|
2037
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2054
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ThemeConsumerService, decorators: [{
|
|
2038
2055
|
type: Injectable,
|
|
2039
2056
|
args: [{
|
|
2040
2057
|
providedIn: 'root'
|
|
2041
2058
|
}]
|
|
2042
|
-
}]
|
|
2059
|
+
}] });
|
|
2043
2060
|
|
|
2044
2061
|
/**
|
|
2045
2062
|
* DOM events that indicate user activity
|
|
@@ -2207,10 +2224,10 @@ class IframeActivityTrackerService {
|
|
|
2207
2224
|
this.stopActivityInterval();
|
|
2208
2225
|
this.config = undefined;
|
|
2209
2226
|
}
|
|
2210
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2211
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2227
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: IframeActivityTrackerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2228
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: IframeActivityTrackerService, providedIn: 'root' }); }
|
|
2212
2229
|
}
|
|
2213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: IframeActivityTrackerService, decorators: [{
|
|
2214
2231
|
type: Injectable,
|
|
2215
2232
|
args: [{
|
|
2216
2233
|
providedIn: 'root'
|
|
@@ -2247,7 +2264,8 @@ class ActivityProducerService {
|
|
|
2247
2264
|
* Signal that emits local activity information.
|
|
2248
2265
|
* This allows consumers to react to activity detected by this producer.
|
|
2249
2266
|
*/
|
|
2250
|
-
this.localActivityWritable = signal(undefined,
|
|
2267
|
+
this.localActivityWritable = signal(undefined, /* @ts-ignore */
|
|
2268
|
+
...(ngDevMode ? [{ debugName: "localActivityWritable" }] : /* istanbul ignore next */ []));
|
|
2251
2269
|
/**
|
|
2252
2270
|
* Read-only signal containing the latest local activity info.
|
|
2253
2271
|
* Use this signal to react to locally detected activity.
|
|
@@ -2387,10 +2405,10 @@ class ActivityProducerService {
|
|
|
2387
2405
|
this.lastEmitTimestamps.clear();
|
|
2388
2406
|
this.iframeActivityTracker.stop();
|
|
2389
2407
|
}
|
|
2390
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2391
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2408
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ActivityProducerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2409
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ActivityProducerService, providedIn: 'root' }); }
|
|
2392
2410
|
}
|
|
2393
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ActivityProducerService, decorators: [{
|
|
2394
2412
|
type: Injectable,
|
|
2395
2413
|
args: [{
|
|
2396
2414
|
providedIn: 'root'
|
|
@@ -2407,7 +2425,8 @@ class ActivityConsumerService {
|
|
|
2407
2425
|
/**
|
|
2408
2426
|
* Signal containing the latest activity info
|
|
2409
2427
|
*/
|
|
2410
|
-
this.latestReceivedActivityWritable = signal(undefined,
|
|
2428
|
+
this.latestReceivedActivityWritable = signal(undefined, /* @ts-ignore */
|
|
2429
|
+
...(ngDevMode ? [{ debugName: "latestReceivedActivityWritable" }] : /* istanbul ignore next */ []));
|
|
2411
2430
|
/**
|
|
2412
2431
|
* Read-only signal containing the latest activity info received from other peers via the message protocol.
|
|
2413
2432
|
* Access the timestamp via latestReceivedActivity()?.timestamp
|
|
@@ -2443,10 +2462,10 @@ class ActivityConsumerService {
|
|
|
2443
2462
|
stop() {
|
|
2444
2463
|
this.consumerManagerService.unregister(this);
|
|
2445
2464
|
}
|
|
2446
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2447
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2465
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ActivityConsumerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2466
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ActivityConsumerService, providedIn: 'root' }); }
|
|
2448
2467
|
}
|
|
2449
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ActivityConsumerService, decorators: [{
|
|
2450
2469
|
type: Injectable,
|
|
2451
2470
|
args: [{
|
|
2452
2471
|
providedIn: 'root'
|