@ama-mfe/ng-utils 14.6.0-prerelease.56 → 14.6.0-prerelease.58
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.
|
@@ -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.
|
|
@@ -643,17 +638,20 @@ class ScalableDirective {
|
|
|
643
638
|
/**
|
|
644
639
|
* The connection ID for the element, used as channel id backup
|
|
645
640
|
*/
|
|
646
|
-
this.connect = input(
|
|
641
|
+
this.connect = input(/* @ts-ignore */
|
|
642
|
+
...(ngDevMode ? [undefined, { debugName: "connect" }] : /* istanbul ignore next */ []));
|
|
647
643
|
/**
|
|
648
644
|
* The channel id
|
|
649
645
|
*/
|
|
650
|
-
this.scalable = input(
|
|
646
|
+
this.scalable = input(/* @ts-ignore */
|
|
647
|
+
...(ngDevMode ? [undefined, { debugName: "scalable" }] : /* istanbul ignore next */ []));
|
|
651
648
|
this.resizeHandler = inject(ResizeConsumerService);
|
|
652
649
|
this.destroyRef = inject(DestroyRef);
|
|
653
650
|
this.elem = inject(ElementRef);
|
|
654
651
|
this.renderer = inject(Renderer2);
|
|
655
652
|
/** Signal holding the current available container height */
|
|
656
|
-
this.availableHeight = signal(undefined,
|
|
653
|
+
this.availableHeight = signal(undefined, /* @ts-ignore */
|
|
654
|
+
...(ngDevMode ? [{ debugName: "availableHeight" }] : /* istanbul ignore next */ []));
|
|
657
655
|
/** Cached container element */
|
|
658
656
|
this.container = null;
|
|
659
657
|
/**
|
|
@@ -667,7 +665,8 @@ class ScalableDirective {
|
|
|
667
665
|
return newHeightFromChannel;
|
|
668
666
|
}
|
|
669
667
|
return undefined;
|
|
670
|
-
},
|
|
668
|
+
}, /* @ts-ignore */
|
|
669
|
+
...(ngDevMode ? [{ debugName: "newHeightFromChannel" }] : /* istanbul ignore next */ []));
|
|
671
670
|
this.resizeHandler.start();
|
|
672
671
|
// Start height observer after layout is complete (read phase ensures styles are applied)
|
|
673
672
|
afterNextRender({
|
|
@@ -760,10 +759,10 @@ class ScalableDirective {
|
|
|
760
759
|
this.renderer.setStyle(this.elem.nativeElement, 'min-height', `${height}px`);
|
|
761
760
|
}
|
|
762
761
|
}
|
|
763
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
764
|
-
/** @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 }); }
|
|
765
764
|
}
|
|
766
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ScalableDirective, decorators: [{
|
|
767
766
|
type: Directive,
|
|
768
767
|
args: [{
|
|
769
768
|
selector: '[scalable]',
|
|
@@ -864,7 +863,8 @@ class ThemeProducerService {
|
|
|
864
863
|
name: selectedThemeName,
|
|
865
864
|
css: null
|
|
866
865
|
}
|
|
867
|
-
: undefined,
|
|
866
|
+
: undefined, /* @ts-ignore */
|
|
867
|
+
...(ngDevMode ? [{ debugName: "currentThemeSelection" }] : /* istanbul ignore next */ []));
|
|
868
868
|
this.currentTheme = this.currentThemeSelection.asReadonly();
|
|
869
869
|
if (selectedThemeName) {
|
|
870
870
|
void this.changeTheme(selectedThemeName);
|
|
@@ -921,10 +921,10 @@ class ThemeProducerService {
|
|
|
921
921
|
this.logger.error('Error in theme service message', message);
|
|
922
922
|
this.revertToPreviousTheme();
|
|
923
923
|
}
|
|
924
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
925
|
-
/** @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' }); }
|
|
926
926
|
}
|
|
927
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
927
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ThemeProducerService, decorators: [{
|
|
928
928
|
type: Injectable,
|
|
929
929
|
args: [{
|
|
930
930
|
providedIn: 'root'
|
|
@@ -957,10 +957,10 @@ class ApplyTheme {
|
|
|
957
957
|
}
|
|
958
958
|
return undefined;
|
|
959
959
|
}
|
|
960
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
961
|
-
/** @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" }); }
|
|
962
962
|
}
|
|
963
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
963
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ApplyTheme, decorators: [{
|
|
964
964
|
type: Pipe,
|
|
965
965
|
args: [{
|
|
966
966
|
name: 'applyTheme'
|
|
@@ -984,15 +984,16 @@ class SandboxDirective {
|
|
|
984
984
|
* Defaults to empty string (most restrictive: all restrictions apply).
|
|
985
985
|
* Set once at initialization; runtime changes are ignored for security reasons.
|
|
986
986
|
*/
|
|
987
|
-
this.mfeSandbox = input('',
|
|
987
|
+
this.mfeSandbox = input('', /* @ts-ignore */
|
|
988
|
+
...(ngDevMode ? [{ debugName: "mfeSandbox" }] : /* istanbul ignore next */ []));
|
|
988
989
|
}
|
|
989
990
|
ngOnInit() {
|
|
990
991
|
this.renderer.setAttribute(this.elementRef.nativeElement, 'sandbox', this.mfeSandbox());
|
|
991
992
|
}
|
|
992
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
993
|
-
/** @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 }); }
|
|
994
995
|
}
|
|
995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SandboxDirective, decorators: [{
|
|
996
997
|
type: Directive,
|
|
997
998
|
args: [{
|
|
998
999
|
selector: 'iframe[mfeSandbox]'
|
|
@@ -1007,28 +1008,33 @@ class IframeEmbedComponent {
|
|
|
1007
1008
|
constructor() {
|
|
1008
1009
|
this.domSanitizer = inject(DomSanitizer);
|
|
1009
1010
|
/** The URL for the iframe source (plain string or pre-sanitized SafeResourceUrl). */
|
|
1010
|
-
this.src = input.required(
|
|
1011
|
+
this.src = input.required(/* @ts-ignore */
|
|
1012
|
+
...(ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []));
|
|
1011
1013
|
/** The sanitized URL, auto-sanitized if a plain string is provided. */
|
|
1012
1014
|
this.safeSrc = computed(() => {
|
|
1013
1015
|
const value = this.src();
|
|
1014
1016
|
return typeof value === 'string'
|
|
1015
1017
|
? this.domSanitizer.bypassSecurityTrustResourceUrl(value)
|
|
1016
1018
|
: value;
|
|
1017
|
-
},
|
|
1019
|
+
}, /* @ts-ignore */
|
|
1020
|
+
...(ngDevMode ? [{ debugName: "safeSrc" }] : /* istanbul ignore next */ []));
|
|
1018
1021
|
/** The unique identifier for the module, used for cross-iframe communication. */
|
|
1019
|
-
this.moduleId = input.required(
|
|
1022
|
+
this.moduleId = input.required(/* @ts-ignore */
|
|
1023
|
+
...(ngDevMode ? [{ debugName: "moduleId" }] : /* istanbul ignore next */ []));
|
|
1020
1024
|
/** The host application identifier sent to the embedded module. */
|
|
1021
|
-
this.hostApplicationId = input.required(
|
|
1025
|
+
this.hostApplicationId = input.required(/* @ts-ignore */
|
|
1026
|
+
...(ngDevMode ? [{ debugName: "hostApplicationId" }] : /* istanbul ignore next */ []));
|
|
1022
1027
|
/**
|
|
1023
1028
|
* The sandbox attribute for the iframe.
|
|
1024
1029
|
* Pass through to the SandboxDirective on the iframe element.
|
|
1025
1030
|
*/
|
|
1026
|
-
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 */ []));
|
|
1027
1033
|
}
|
|
1028
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1029
|
-
/** @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 }); }
|
|
1030
1036
|
}
|
|
1031
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1037
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: IframeEmbedComponent, decorators: [{
|
|
1032
1038
|
type: Component,
|
|
1033
1039
|
args: [{ selector: 'mfe-iframe-embed', imports: [
|
|
1034
1040
|
ConnectDirective,
|
|
@@ -1046,7 +1052,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImpo
|
|
|
1046
1052
|
*/
|
|
1047
1053
|
class NavigationConsumerService extends AbstractMessageConsumer {
|
|
1048
1054
|
constructor() {
|
|
1049
|
-
super();
|
|
1055
|
+
super(...arguments);
|
|
1050
1056
|
this.router = inject(Router);
|
|
1051
1057
|
this.activeRoute = inject(ActivatedRoute);
|
|
1052
1058
|
this.requestedUrl = new Subject();
|
|
@@ -1084,11 +1090,6 @@ class NavigationConsumerService extends AbstractMessageConsumer {
|
|
|
1084
1090
|
this.navigate(message.payload.url, message.payload.extras);
|
|
1085
1091
|
}
|
|
1086
1092
|
};
|
|
1087
|
-
/**
|
|
1088
|
-
* Auto-starts the consumer on creation.
|
|
1089
|
-
* @deprecated The constructor auto-starts the consumer for backwards compatibility. It will be removed in v15;
|
|
1090
|
-
*/
|
|
1091
|
-
this.start();
|
|
1092
1093
|
}
|
|
1093
1094
|
/**
|
|
1094
1095
|
* Parses a URL and returns an object containing the paths and query parameters.
|
|
@@ -1116,15 +1117,15 @@ class NavigationConsumerService extends AbstractMessageConsumer {
|
|
|
1116
1117
|
replaceUrl: extras?.replaceUrl
|
|
1117
1118
|
});
|
|
1118
1119
|
}
|
|
1119
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1120
|
-
/** @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' }); }
|
|
1121
1122
|
}
|
|
1122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationConsumerService, decorators: [{
|
|
1123
1124
|
type: Injectable,
|
|
1124
1125
|
args: [{
|
|
1125
1126
|
providedIn: 'root'
|
|
1126
1127
|
}]
|
|
1127
|
-
}]
|
|
1128
|
+
}] });
|
|
1128
1129
|
|
|
1129
1130
|
/**
|
|
1130
1131
|
* This service allows routes to be memorized with an optional lifetime and provides methods to retrieve and manage these routes.
|
|
@@ -1162,10 +1163,10 @@ class RouteMemorizeService {
|
|
|
1162
1163
|
getRoute(channelId) {
|
|
1163
1164
|
return this.routeStack[channelId];
|
|
1164
1165
|
}
|
|
1165
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1166
|
-
/** @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' }); }
|
|
1167
1168
|
}
|
|
1168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RouteMemorizeService, decorators: [{
|
|
1169
1170
|
type: Injectable,
|
|
1170
1171
|
args: [{
|
|
1171
1172
|
providedIn: 'root'
|
|
@@ -1213,10 +1214,10 @@ class RestoreRoute {
|
|
|
1213
1214
|
return typeof url === 'string' ? moduleUrlStringyfied : this.domSanitizer.bypassSecurityTrustResourceUrl(moduleUrlStringyfied);
|
|
1214
1215
|
}
|
|
1215
1216
|
}
|
|
1216
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1217
|
-
/** @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" }); }
|
|
1218
1219
|
}
|
|
1219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RestoreRoute, decorators: [{
|
|
1220
1221
|
type: Pipe,
|
|
1221
1222
|
args: [{
|
|
1222
1223
|
name: 'restoreRoute'
|
|
@@ -1229,28 +1230,34 @@ class RouteMemorizeDirective {
|
|
|
1229
1230
|
* Whether to memorize the route.
|
|
1230
1231
|
* Default is true.
|
|
1231
1232
|
*/
|
|
1232
|
-
this.memorizeRoute = input(true,
|
|
1233
|
+
this.memorizeRoute = input(true, /* @ts-ignore */
|
|
1234
|
+
...(ngDevMode ? [{ debugName: "memorizeRoute" }] : /* istanbul ignore next */ []));
|
|
1233
1235
|
/**
|
|
1234
1236
|
* The ID used to memorize the route.
|
|
1235
1237
|
*/
|
|
1236
|
-
this.memorizeRouteId = input(
|
|
1238
|
+
this.memorizeRouteId = input(/* @ts-ignore */
|
|
1239
|
+
...(ngDevMode ? [undefined, { debugName: "memorizeRouteId" }] : /* istanbul ignore next */ []));
|
|
1237
1240
|
/**
|
|
1238
1241
|
* The maximum age for memorizing the route.
|
|
1239
1242
|
* Default is 0.
|
|
1240
1243
|
*/
|
|
1241
|
-
this.memorizeMaxAge = input(0,
|
|
1244
|
+
this.memorizeMaxAge = input(0, /* @ts-ignore */
|
|
1245
|
+
...(ngDevMode ? [{ debugName: "memorizeMaxAge" }] : /* istanbul ignore next */ []));
|
|
1242
1246
|
/**
|
|
1243
1247
|
* The maximum age for memorizing the route, used as a fallback.
|
|
1244
1248
|
* Default is 0.
|
|
1245
1249
|
*/
|
|
1246
|
-
this.memorizeRouteMaxAge = input(0,
|
|
1250
|
+
this.memorizeRouteMaxAge = input(0, /* @ts-ignore */
|
|
1251
|
+
...(ngDevMode ? [{ debugName: "memorizeRouteMaxAge" }] : /* istanbul ignore next */ []));
|
|
1247
1252
|
/**
|
|
1248
1253
|
* The connection ID for the iframe where the actual directive is applied.
|
|
1249
1254
|
*/
|
|
1250
|
-
this.connect = input(
|
|
1255
|
+
this.connect = input(/* @ts-ignore */
|
|
1256
|
+
...(ngDevMode ? [undefined, { debugName: "connect" }] : /* istanbul ignore next */ []));
|
|
1251
1257
|
this.maxAge = computed(() => {
|
|
1252
1258
|
return this.memorizeMaxAge() || this.memorizeRouteMaxAge();
|
|
1253
|
-
},
|
|
1259
|
+
}, /* @ts-ignore */
|
|
1260
|
+
...(ngDevMode ? [{ debugName: "maxAge" }] : /* istanbul ignore next */ []));
|
|
1254
1261
|
const memory = inject(RouteMemorizeService);
|
|
1255
1262
|
const requestedUrlSignal = toSignal(inject(NavigationConsumerService).requestedUrl$);
|
|
1256
1263
|
/**
|
|
@@ -1270,10 +1277,10 @@ class RouteMemorizeDirective {
|
|
|
1270
1277
|
}
|
|
1271
1278
|
});
|
|
1272
1279
|
}
|
|
1273
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1274
|
-
/** @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 }); }
|
|
1275
1282
|
}
|
|
1276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RouteMemorizeDirective, decorators: [{
|
|
1277
1284
|
type: Directive,
|
|
1278
1285
|
args: [{
|
|
1279
1286
|
selector: 'iframe[memorizeRoute]',
|
|
@@ -1387,10 +1394,10 @@ class RoutingService {
|
|
|
1387
1394
|
}
|
|
1388
1395
|
});
|
|
1389
1396
|
}
|
|
1390
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1391
|
-
/** @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' }); }
|
|
1392
1399
|
}
|
|
1393
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: RoutingService, decorators: [{
|
|
1394
1401
|
type: Injectable,
|
|
1395
1402
|
args: [{
|
|
1396
1403
|
providedIn: 'root'
|
|
@@ -1406,7 +1413,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImpo
|
|
|
1406
1413
|
*/
|
|
1407
1414
|
class NavigationBlockService {
|
|
1408
1415
|
constructor() {
|
|
1409
|
-
this.stateSignal = signal({ blocked: false },
|
|
1416
|
+
this.stateSignal = signal({ blocked: false }, /* @ts-ignore */
|
|
1417
|
+
...(ngDevMode ? [{ debugName: "stateSignal" }] : /* istanbul ignore next */ []));
|
|
1410
1418
|
/** Readonly view of the current navigation block state. */
|
|
1411
1419
|
this.state = this.stateSignal.asReadonly();
|
|
1412
1420
|
}
|
|
@@ -1421,10 +1429,10 @@ class NavigationBlockService {
|
|
|
1421
1429
|
unblock() {
|
|
1422
1430
|
this.stateSignal.set({ blocked: false });
|
|
1423
1431
|
}
|
|
1424
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1425
|
-
/** @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' }); }
|
|
1426
1434
|
}
|
|
1427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockService, decorators: [{
|
|
1428
1436
|
type: Injectable,
|
|
1429
1437
|
args: [{
|
|
1430
1438
|
providedIn: 'root'
|
|
@@ -1466,10 +1474,10 @@ class NavigationBlockStateProducerService {
|
|
|
1466
1474
|
handleError(message) {
|
|
1467
1475
|
this.logger.error('navigation-block state message could not be consumed by the shell', message);
|
|
1468
1476
|
}
|
|
1469
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1470
|
-
/** @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' }); }
|
|
1471
1479
|
}
|
|
1472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockStateProducerService, decorators: [{
|
|
1473
1481
|
type: Injectable,
|
|
1474
1482
|
args: [{
|
|
1475
1483
|
providedIn: 'root'
|
|
@@ -1502,7 +1510,8 @@ class NavigationBlockStateConsumerService extends AbstractMessageConsumer {
|
|
|
1502
1510
|
});
|
|
1503
1511
|
}
|
|
1504
1512
|
};
|
|
1505
|
-
this.blockStateSignal = signal(undefined,
|
|
1513
|
+
this.blockStateSignal = signal(undefined, /* @ts-ignore */
|
|
1514
|
+
...(ngDevMode ? [{ debugName: "blockStateSignal" }] : /* istanbul ignore next */ []));
|
|
1506
1515
|
/** Last navigation block state reported by any module. */
|
|
1507
1516
|
this.blockState = this.blockStateSignal.asReadonly();
|
|
1508
1517
|
}
|
|
@@ -1512,10 +1521,10 @@ class NavigationBlockStateConsumerService extends AbstractMessageConsumer {
|
|
|
1512
1521
|
clear() {
|
|
1513
1522
|
this.blockStateSignal.set({ blocked: false });
|
|
1514
1523
|
}
|
|
1515
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1516
|
-
/** @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' }); }
|
|
1517
1526
|
}
|
|
1518
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1527
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockStateConsumerService, decorators: [{
|
|
1519
1528
|
type: Injectable,
|
|
1520
1529
|
args: [{
|
|
1521
1530
|
providedIn: 'root'
|
|
@@ -1617,10 +1626,10 @@ class NavigationRequestManagerService {
|
|
|
1617
1626
|
}
|
|
1618
1627
|
this.producerManagerService.unregister(this);
|
|
1619
1628
|
}
|
|
1620
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1621
|
-
/** @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' }); }
|
|
1622
1631
|
}
|
|
1623
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationRequestManagerService, decorators: [{
|
|
1624
1633
|
type: Injectable,
|
|
1625
1634
|
args: [{
|
|
1626
1635
|
providedIn: 'root'
|
|
@@ -1698,10 +1707,10 @@ class NavigationRequestConsumerService extends AbstractMessageConsumer {
|
|
|
1698
1707
|
}
|
|
1699
1708
|
this.producerService.sendDecision(message.payload.correlationId, message.from);
|
|
1700
1709
|
}
|
|
1701
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1702
|
-
/** @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' }); }
|
|
1703
1712
|
}
|
|
1704
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationRequestConsumerService, decorators: [{
|
|
1705
1714
|
type: Injectable,
|
|
1706
1715
|
args: [{
|
|
1707
1716
|
providedIn: 'root'
|
|
@@ -1740,10 +1749,10 @@ class BrowserConfirmationStrategy {
|
|
|
1740
1749
|
// eslint-disable-next-line no-alert -- intentional use of window.confirm for basic confirmation strategy
|
|
1741
1750
|
return Promise.resolve(window.confirm(message));
|
|
1742
1751
|
}
|
|
1743
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1744
|
-
/** @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' }); }
|
|
1745
1754
|
}
|
|
1746
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BrowserConfirmationStrategy, decorators: [{
|
|
1747
1756
|
type: Injectable,
|
|
1748
1757
|
args: [{
|
|
1749
1758
|
providedIn: 'root'
|
|
@@ -1791,10 +1800,10 @@ class NavigationBlockConfirmationService {
|
|
|
1791
1800
|
this.pendingConfirmation = pending;
|
|
1792
1801
|
return pending;
|
|
1793
1802
|
}
|
|
1794
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1795
|
-
/** @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' }); }
|
|
1796
1805
|
}
|
|
1797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationBlockConfirmationService, decorators: [{
|
|
1798
1807
|
type: Injectable,
|
|
1799
1808
|
args: [{
|
|
1800
1809
|
providedIn: 'root'
|
|
@@ -1856,10 +1865,10 @@ class NavigationDecisionConsumerService extends AbstractMessageConsumer {
|
|
|
1856
1865
|
};
|
|
1857
1866
|
this.producerService = inject(NavigationRequestManagerService);
|
|
1858
1867
|
}
|
|
1859
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1860
|
-
/** @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' }); }
|
|
1861
1870
|
}
|
|
1862
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: NavigationDecisionConsumerService, decorators: [{
|
|
1863
1872
|
type: Injectable,
|
|
1864
1873
|
args: [{
|
|
1865
1874
|
providedIn: 'root'
|
|
@@ -1995,10 +2004,10 @@ class ResizeService {
|
|
|
1995
2004
|
});
|
|
1996
2005
|
afterNextRender(() => this.resizeObserver?.observe(document.body));
|
|
1997
2006
|
}
|
|
1998
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1999
|
-
/** @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' }); }
|
|
2000
2009
|
}
|
|
2001
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2010
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ResizeService, decorators: [{
|
|
2002
2011
|
type: Injectable,
|
|
2003
2012
|
args: [{
|
|
2004
2013
|
providedIn: 'root'
|
|
@@ -2010,7 +2019,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.18", ngImpo
|
|
|
2010
2019
|
*/
|
|
2011
2020
|
class ThemeConsumerService extends AbstractMessageConsumer {
|
|
2012
2021
|
constructor() {
|
|
2013
|
-
super();
|
|
2022
|
+
super(...arguments);
|
|
2014
2023
|
this.domSanitizer = inject(DomSanitizer);
|
|
2015
2024
|
/**
|
|
2016
2025
|
* The type of messages this service handles ('theme').
|
|
@@ -2038,21 +2047,16 @@ class ThemeConsumerService extends AbstractMessageConsumer {
|
|
|
2038
2047
|
}
|
|
2039
2048
|
}
|
|
2040
2049
|
};
|
|
2041
|
-
/**
|
|
2042
|
-
* Auto-starts the consumer on creation.
|
|
2043
|
-
* @deprecated The constructor auto-starts the consumer for backwards compatibility. It will be removed in v15;
|
|
2044
|
-
*/
|
|
2045
|
-
this.start();
|
|
2046
2050
|
}
|
|
2047
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2048
|
-
/** @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' }); }
|
|
2049
2053
|
}
|
|
2050
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2054
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ThemeConsumerService, decorators: [{
|
|
2051
2055
|
type: Injectable,
|
|
2052
2056
|
args: [{
|
|
2053
2057
|
providedIn: 'root'
|
|
2054
2058
|
}]
|
|
2055
|
-
}]
|
|
2059
|
+
}] });
|
|
2056
2060
|
|
|
2057
2061
|
/**
|
|
2058
2062
|
* DOM events that indicate user activity
|
|
@@ -2220,10 +2224,10 @@ class IframeActivityTrackerService {
|
|
|
2220
2224
|
this.stopActivityInterval();
|
|
2221
2225
|
this.config = undefined;
|
|
2222
2226
|
}
|
|
2223
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2224
|
-
/** @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' }); }
|
|
2225
2229
|
}
|
|
2226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: IframeActivityTrackerService, decorators: [{
|
|
2227
2231
|
type: Injectable,
|
|
2228
2232
|
args: [{
|
|
2229
2233
|
providedIn: 'root'
|
|
@@ -2260,7 +2264,8 @@ class ActivityProducerService {
|
|
|
2260
2264
|
* Signal that emits local activity information.
|
|
2261
2265
|
* This allows consumers to react to activity detected by this producer.
|
|
2262
2266
|
*/
|
|
2263
|
-
this.localActivityWritable = signal(undefined,
|
|
2267
|
+
this.localActivityWritable = signal(undefined, /* @ts-ignore */
|
|
2268
|
+
...(ngDevMode ? [{ debugName: "localActivityWritable" }] : /* istanbul ignore next */ []));
|
|
2264
2269
|
/**
|
|
2265
2270
|
* Read-only signal containing the latest local activity info.
|
|
2266
2271
|
* Use this signal to react to locally detected activity.
|
|
@@ -2400,10 +2405,10 @@ class ActivityProducerService {
|
|
|
2400
2405
|
this.lastEmitTimestamps.clear();
|
|
2401
2406
|
this.iframeActivityTracker.stop();
|
|
2402
2407
|
}
|
|
2403
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2404
|
-
/** @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' }); }
|
|
2405
2410
|
}
|
|
2406
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ActivityProducerService, decorators: [{
|
|
2407
2412
|
type: Injectable,
|
|
2408
2413
|
args: [{
|
|
2409
2414
|
providedIn: 'root'
|
|
@@ -2420,7 +2425,8 @@ class ActivityConsumerService {
|
|
|
2420
2425
|
/**
|
|
2421
2426
|
* Signal containing the latest activity info
|
|
2422
2427
|
*/
|
|
2423
|
-
this.latestReceivedActivityWritable = signal(undefined,
|
|
2428
|
+
this.latestReceivedActivityWritable = signal(undefined, /* @ts-ignore */
|
|
2429
|
+
...(ngDevMode ? [{ debugName: "latestReceivedActivityWritable" }] : /* istanbul ignore next */ []));
|
|
2424
2430
|
/**
|
|
2425
2431
|
* Read-only signal containing the latest activity info received from other peers via the message protocol.
|
|
2426
2432
|
* Access the timestamp via latestReceivedActivity()?.timestamp
|
|
@@ -2456,10 +2462,10 @@ class ActivityConsumerService {
|
|
|
2456
2462
|
stop() {
|
|
2457
2463
|
this.consumerManagerService.unregister(this);
|
|
2458
2464
|
}
|
|
2459
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2460
|
-
/** @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' }); }
|
|
2461
2467
|
}
|
|
2462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ActivityConsumerService, decorators: [{
|
|
2463
2469
|
type: Injectable,
|
|
2464
2470
|
args: [{
|
|
2465
2471
|
providedIn: 'root'
|