@danske/sapphire-angular 1.19.2 → 1.19.3

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.
@@ -6405,11 +6405,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
6405
6405
  *
6406
6406
  */
6407
6407
  class ThemeRootDirective {
6408
- constructor(elementRef, theme) {
6408
+ constructor(elementRef, themeRef, parentTheme) {
6409
+ const theme = parentTheme || themeRef.theme;
6409
6410
  theme.applyOnDomNode(elementRef.nativeElement);
6410
6411
  }
6411
6412
  }
6412
- ThemeRootDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: ThemeRootDirective, deps: [{ token: i0.ElementRef }, { token: ThemeBaseDirective }], target: i0.ɵɵFactoryTarget.Directive });
6413
+ ThemeRootDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: ThemeRootDirective, deps: [{ token: i0.ElementRef }, { token: TopLevelThemeRef }, { token: ThemeBaseDirective, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
6413
6414
  ThemeRootDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.0", type: ThemeRootDirective, isStandalone: true, selector: "[sp-theme-root]", ngImport: i0 });
6414
6415
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: ThemeRootDirective, decorators: [{
6415
6416
  type: Directive,
@@ -6417,7 +6418,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImpor
6417
6418
  selector: '[sp-theme-root]',
6418
6419
  standalone: true,
6419
6420
  }]
6420
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: ThemeBaseDirective }]; } });
6421
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: TopLevelThemeRef }, { type: ThemeBaseDirective, decorators: [{
6422
+ type: Optional
6423
+ }, {
6424
+ type: SkipSelf
6425
+ }] }]; } });
6421
6426
 
6422
6427
  /**
6423
6428
  * - Makes sure currently applied theme is applied on overlays which are rendered as portal