@ngx-smz/core 21.1.11 → 21.1.13

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.
@@ -28317,6 +28317,17 @@ class SmzDialogOverlayPanelBuilder extends SmzBuilderUtilities {
28317
28317
  }
28318
28318
  }
28319
28319
 
28320
+ /** Literal class strings so Tailwind JIT can detect and emit arbitrary min-height utilities. */
28321
+ const smzDialogMinHeightClassByViewportPercent = {
28322
+ 50: 'min-h-[50vh]',
28323
+ 60: 'min-h-[60vh]',
28324
+ 65: 'min-h-[65vh]',
28325
+ 70: 'min-h-[70vh]',
28326
+ 75: 'min-h-[75vh]',
28327
+ 80: 'min-h-[80vh]',
28328
+ 85: 'min-h-[85vh]',
28329
+ 90: 'min-h-[90vh]',
28330
+ };
28320
28331
  class SmzDialogBuilder extends SmzBuilderUtilities {
28321
28332
  that = this;
28322
28333
  defaultConfig = GlobalInjector.config.dialogs;
@@ -28421,7 +28432,7 @@ class SmzDialogBuilder extends SmzBuilderUtilities {
28421
28432
  return this;
28422
28433
  }
28423
28434
  setMinHeight(percentageOfScreen) {
28424
- this.dialogState.containerStyleClass = `min-h-[${percentageOfScreen}vh]`;
28435
+ this.dialogState.containerStyleClass = smzDialogMinHeightClassByViewportPercent[percentageOfScreen];
28425
28436
  return this;
28426
28437
  }
28427
28438
  overrideFeatureContainerStyles(styleClassParam) {
@@ -35599,18 +35610,15 @@ const SmzLoaders = [
35599
35610
  { id: SmzLoader.SQUARE, name: 'Loader Square' },
35600
35611
  ];
35601
35612
 
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
35613
  class ThemeManagerService {
35604
35614
  document;
35605
- _document;
35606
35615
  contentLink = [];
35607
35616
  constructor(document) {
35608
35617
  this.document = document;
35609
- this._document = document;
35610
35618
  }
35611
35619
  createCss(...paths) {
35612
35620
  paths.forEach(path => {
35613
- const link = this._document.createElement('link');
35621
+ const link = this.document.createElement('link');
35614
35622
  link.setAttribute('rel', 'stylesheet');
35615
35623
  link.setAttribute('type', 'text/css');
35616
35624
  link.setAttribute('href', path);
@@ -35620,12 +35628,13 @@ class ThemeManagerService {
35620
35628
  link,
35621
35629
  });
35622
35630
  });
35631
+ this.propagate();
35623
35632
  }
35624
35633
  propagate() {
35625
35634
  this.contentLink
35626
35635
  .filter((x) => !x.isLoaded)
35627
35636
  .forEach((x) => {
35628
- this._document.head.appendChild(x.link);
35637
+ this.document.head.appendChild(x.link);
35629
35638
  x.isLoaded = true;
35630
35639
  });
35631
35640
  }
@@ -35635,7 +35644,7 @@ class ThemeManagerService {
35635
35644
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImport: i0, type: ThemeManagerService, decorators: [{
35636
35645
  type: Injectable,
35637
35646
  args: [{ providedIn: 'root' }]
35638
- }], ctorParameters: () => [{ type: undefined, decorators: [{
35647
+ }], ctorParameters: () => [{ type: Document, decorators: [{
35639
35648
  type: Inject,
35640
35649
  args: [DOCUMENT]
35641
35650
  }] }] });
@@ -55733,6 +55742,15 @@ class SmzCardsInjectableComponentBuilder {
55733
55742
  }
55734
55743
  }
55735
55744
 
55745
+ /** Literal class strings so Tailwind JIT can emit margin utilities used by addGap. */
55746
+ const smzTimelineEventGapClassBySpacingScale = {
55747
+ 2: ' mb-2 block ',
55748
+ 4: ' mb-4 block ',
55749
+ 6: ' mb-6 block ',
55750
+ 8: ' mb-8 block ',
55751
+ 10: ' mb-10 block ',
55752
+ 12: ' mb-12 block ',
55753
+ };
55736
55754
  class SmzTimelineViewBuilder extends SmzBuilderUtilities {
55737
55755
  builderRef;
55738
55756
  viewDataRef;
@@ -55762,7 +55780,7 @@ class SmzTimelineViewBuilder extends SmzBuilderUtilities {
55762
55780
  return this;
55763
55781
  }
55764
55782
  addGap(gap = 8) {
55765
- this.viewStylesRef.event = ` mb-${gap} block `;
55783
+ this.viewStylesRef.event = smzTimelineEventGapClassBySpacingScale[gap];
55766
55784
  return this;
55767
55785
  }
55768
55786
  setAlign(align) {