@ngx-smz/core 21.1.11 → 21.1.12

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.
@@ -35599,18 +35599,15 @@ const SmzLoaders = [
35599
35599
  { id: SmzLoader.SQUARE, name: 'Loader Square' },
35600
35600
  ];
35601
35601
 
35602
- /* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return, @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type, @typescript-eslint/typedef, no-underscore-dangle, no-console, eqeqeq, @typescript-eslint/no-unused-vars, @typescript-eslint/no-useless-constructor, @typescript-eslint/explicit-member-accessibility, max-len, no-prototype-builtins, @typescript-eslint/no-shadow, @typescript-eslint/no-empty-object-type */
35603
35602
  class ThemeManagerService {
35604
35603
  document;
35605
- _document;
35606
35604
  contentLink = [];
35607
35605
  constructor(document) {
35608
35606
  this.document = document;
35609
- this._document = document;
35610
35607
  }
35611
35608
  createCss(...paths) {
35612
35609
  paths.forEach(path => {
35613
- const link = this._document.createElement('link');
35610
+ const link = this.document.createElement('link');
35614
35611
  link.setAttribute('rel', 'stylesheet');
35615
35612
  link.setAttribute('type', 'text/css');
35616
35613
  link.setAttribute('href', path);
@@ -35620,12 +35617,13 @@ class ThemeManagerService {
35620
35617
  link,
35621
35618
  });
35622
35619
  });
35620
+ this.propagate();
35623
35621
  }
35624
35622
  propagate() {
35625
35623
  this.contentLink
35626
35624
  .filter((x) => !x.isLoaded)
35627
35625
  .forEach((x) => {
35628
- this._document.head.appendChild(x.link);
35626
+ this.document.head.appendChild(x.link);
35629
35627
  x.isLoaded = true;
35630
35628
  });
35631
35629
  }
@@ -35635,7 +35633,7 @@ class ThemeManagerService {
35635
35633
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ThemeManagerService, decorators: [{
35636
35634
  type: Injectable,
35637
35635
  args: [{ providedIn: 'root' }]
35638
- }], ctorParameters: () => [{ type: undefined, decorators: [{
35636
+ }], ctorParameters: () => [{ type: Document, decorators: [{
35639
35637
  type: Inject,
35640
35638
  args: [DOCUMENT]
35641
35639
  }] }] });