@magmonium/one 0.4.92 → 0.4.94

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.
@@ -4424,7 +4424,8 @@ var SectionSearchComponent = class SectionSearchComponent extends BaseTextInputC
4424
4424
  resultText = signal("", ...ngDevMode ? [{ debugName: "resultText" }] : /* istanbul ignore next */ []);
4425
4425
  isDesignMode = !!inject(IS_DESIGN_MODE, { optional: true });
4426
4426
  scrollSticky = injectScrollSticky(0, "none");
4427
- isSticky = computed(() => this.sticky() && this.scrollSticky(), ...ngDevMode ? [{ debugName: "isSticky" }] : /* istanbul ignore next */ []);
4427
+ stickyOn = computed(() => this.sticky() && !this.isDesignMode, ...ngDevMode ? [{ debugName: "stickyOn" }] : /* istanbul ignore next */ []);
4428
+ isSticky = computed(() => this.stickyOn() && this.scrollSticky(), ...ngDevMode ? [{ debugName: "isSticky" }] : /* istanbul ignore next */ []);
4428
4429
  sectionContext = inject(SECTION_CONTEXT, { optional: true });
4429
4430
  sidepanel = computed(() => this.sectionContext?.sidepanel() ?? false, ...ngDevMode ? [{ debugName: "sidepanel" }] : /* istanbul ignore next */ []);
4430
4431
  noBorder = computed(() => this.sectionContext?.variant() === "noBorder", ...ngDevMode ? [{ debugName: "noBorder" }] : /* istanbul ignore next */ []);
@@ -4626,7 +4627,7 @@ var SectionSearchComponent = class SectionSearchComponent extends BaseTextInputC
4626
4627
  host: {
4627
4628
  listeners: { "focusout": "onFocusOut($event)" },
4628
4629
  properties: {
4629
- "class.is-sticky-enabled": "sticky()",
4630
+ "class.is-sticky-enabled": "stickyOn()",
4630
4631
  "class.is-sticky": "isSticky()",
4631
4632
  "class.has-sidepanel": "sidepanel()",
4632
4633
  "class.has-results": "showResults()",
@@ -4829,7 +4830,7 @@ i0.ɵɵngDeclareClassMetadata({
4829
4830
  ],
4830
4831
  host: {
4831
4832
  "(focusout)": "onFocusOut($event)",
4832
- "[class.is-sticky-enabled]": "sticky()",
4833
+ "[class.is-sticky-enabled]": "stickyOn()",
4833
4834
  "[class.is-sticky]": "isSticky()",
4834
4835
  "[class.has-sidepanel]": "sidepanel()",
4835
4836
  "[class.has-results]": "showResults()",
@@ -7743,7 +7744,8 @@ var SectionPaginationComponent = class SectionPaginationComponent {
7743
7744
  selectorDir = viewChild(SelectorDirective, ...ngDevMode ? [{ debugName: "selectorDir" }] : /* istanbul ignore next */ []);
7744
7745
  scrollSticky = injectScrollSticky(0, "none");
7745
7746
  sectionContext = inject(SECTION_CONTEXT, { optional: true });
7746
- isSticky = computed(() => this.sticky() && this.scrollSticky(), ...ngDevMode ? [{ debugName: "isSticky" }] : /* istanbul ignore next */ []);
7747
+ stickyOn = computed(() => this.sticky() && !this.isDesignMode, ...ngDevMode ? [{ debugName: "stickyOn" }] : /* istanbul ignore next */ []);
7748
+ isSticky = computed(() => this.stickyOn() && this.scrollSticky(), ...ngDevMode ? [{ debugName: "isSticky" }] : /* istanbul ignore next */ []);
7747
7749
  noBorder = computed(() => this.sectionContext?.variant() === "noBorder", ...ngDevMode ? [{ debugName: "noBorder" }] : /* istanbul ignore next */ []);
7748
7750
  options = computed(() => {
7749
7751
  const authored = (this.perPageOptions() ?? "").split(",").map((entry) => Number(entry.trim())).filter((size) => Number.isFinite(size) && size > 0);
@@ -7937,7 +7939,7 @@ var SectionPaginationComponent = class SectionPaginationComponent {
7937
7939
  host: {
7938
7940
  properties: {
7939
7941
  "class.is-hidden": "!visible()",
7940
- "class.is-sticky-enabled": "sticky()",
7942
+ "class.is-sticky-enabled": "stickyOn()",
7941
7943
  "class.is-sticky": "isSticky()",
7942
7944
  "class.align-left": "align() === \"left\"",
7943
7945
  "class.align-center": "align() === \"center\"",
@@ -8113,7 +8115,7 @@ i0.ɵɵngDeclareClassMetadata({
8113
8115
  host: {
8114
8116
  class: "m-section-pagination",
8115
8117
  "[class.is-hidden]": "!visible()",
8116
- "[class.is-sticky-enabled]": "sticky()",
8118
+ "[class.is-sticky-enabled]": "stickyOn()",
8117
8119
  "[class.is-sticky]": "isSticky()",
8118
8120
  "[class.align-left]": "align() === \"left\"",
8119
8121
  "[class.align-center]": "align() === \"center\"",
@@ -9768,8 +9770,9 @@ var SectionComponent = class SectionComponent extends ConfigComponent {
9768
9770
  resolvedMaxWidth = computed(() => this.maxWidth() ?? this.config()?.maxWidth, ...ngDevMode ? [{ debugName: "resolvedMaxWidth" }] : /* istanbul ignore next */ []);
9769
9771
  resolvedHeightMode = computed(() => this.heightMode() ?? this.config()?.heightMode, ...ngDevMode ? [{ debugName: "resolvedHeightMode" }] : /* istanbul ignore next */ []);
9770
9772
  resolvedMaxHeight = computed(() => this.maxHeight() ?? this.height() ?? this.config()?.maxHeight ?? this.config()?.height, ...ngDevMode ? [{ debugName: "resolvedMaxHeight" }] : /* istanbul ignore next */ []);
9771
- isFullHeight = computed(() => this.resolvedHeightMode() === "full" || this.resolvedMaxHeight() === "full", ...ngDevMode ? [{ debugName: "isFullHeight" }] : /* istanbul ignore next */ []);
9773
+ isFullHeight = computed(() => !this.isDesignMode && (this.resolvedHeightMode() === "full" || this.resolvedMaxHeight() === "full"), ...ngDevMode ? [{ debugName: "isFullHeight" }] : /* istanbul ignore next */ []);
9772
9774
  cssMaxHeight = computed(() => {
9775
+ if (this.isDesignMode) return void 0;
9773
9776
  const mode = this.resolvedHeightMode();
9774
9777
  const val = this.resolvedMaxHeight();
9775
9778
  if (mode === "full" || val === "full") return "100vh";
@@ -16736,6 +16739,7 @@ var SectionHeaderComponent = class SectionHeaderComponent {
16736
16739
  translateService = inject(TranslateService);
16737
16740
  host = inject(ElementRef);
16738
16741
  subText = computed(() => this.noTranslate() ? this.subLabel() : this.translateService.translate(this.subLabel(), this.params()), ...ngDevMode ? [{ debugName: "subText" }] : /* istanbul ignore next */ []);
16742
+ isDesignMode = !!inject(IS_DESIGN_MODE, { optional: true });
16739
16743
  scrollSticky = injectScrollSticky(120, "none");
16740
16744
  sectionContext = inject(SECTION_CONTEXT, { optional: true });
16741
16745
  sidepanel = computed(() => this.sectionContext?.sidepanel() ?? false, ...ngDevMode ? [{ debugName: "sidepanel" }] : /* istanbul ignore next */ []);
@@ -16743,7 +16747,8 @@ var SectionHeaderComponent = class SectionHeaderComponent {
16743
16747
  resolvedMaxWidth = computed(() => this.maxWidth() ?? this.sectionContext?.maxWidth?.(), ...ngDevMode ? [{ debugName: "resolvedMaxWidth" }] : /* istanbul ignore next */ []);
16744
16748
  boxAlign = computed(() => this.sectionContext?.align?.() ?? "left", ...ngDevMode ? [{ debugName: "boxAlign" }] : /* istanbul ignore next */ []);
16745
16749
  iconBox = computed(() => HEADER_LINE_BOX[this.level()], ...ngDevMode ? [{ debugName: "iconBox" }] : /* istanbul ignore next */ []);
16746
- isSticky = computed(() => this.sticky() && this.scrollSticky(), ...ngDevMode ? [{ debugName: "isSticky" }] : /* istanbul ignore next */ []);
16750
+ stickyOn = computed(() => this.sticky() && !this.isDesignMode, ...ngDevMode ? [{ debugName: "stickyOn" }] : /* istanbul ignore next */ []);
16751
+ isSticky = computed(() => this.stickyOn() && this.scrollSticky(), ...ngDevMode ? [{ debugName: "isSticky" }] : /* istanbul ignore next */ []);
16747
16752
  hasMenu = computed(() => !!this.menu() || !!this.menuName(), ...ngDevMode ? [{ debugName: "hasMenu" }] : /* istanbul ignore next */ []);
16748
16753
  actionConfig = computed(() => {
16749
16754
  const icon = this.actionButton();
@@ -16943,7 +16948,7 @@ var SectionHeaderComponent = class SectionHeaderComponent {
16943
16948
  host: {
16944
16949
  listeners: { "click": "onHeaderClick($event)" },
16945
16950
  properties: {
16946
- "class.is-sticky-enabled": "sticky()",
16951
+ "class.is-sticky-enabled": "stickyOn()",
16947
16952
  "class.is-sticky": "isSticky()",
16948
16953
  "class.has-menu": "hasMenu()",
16949
16954
  "class.align-left": "alignment() === \"left\"",
@@ -17086,7 +17091,7 @@ i0.ɵɵngDeclareClassMetadata({
17086
17091
  changeDetection: ChangeDetectionStrategy.OnPush,
17087
17092
  host: {
17088
17093
  class: "m-section-header",
17089
- "[class.is-sticky-enabled]": "sticky()",
17094
+ "[class.is-sticky-enabled]": "stickyOn()",
17090
17095
  "[class.is-sticky]": "isSticky()",
17091
17096
  "[class.has-menu]": "hasMenu()",
17092
17097
  "[class.align-left]": "alignment() === \"left\"",
@@ -17286,8 +17291,10 @@ var SectionFooterComponent = class SectionFooterComponent {
17286
17291
  align = input("right", ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
17287
17292
  maxWidth = input(...ngDevMode ? [void 0, { debugName: "maxWidth" }] : /* istanbul ignore next */ []);
17288
17293
  fullWidth = input(false, ...ngDevMode ? [{ debugName: "fullWidth" }] : /* istanbul ignore next */ []);
17294
+ isDesignMode = !!inject(IS_DESIGN_MODE, { optional: true });
17289
17295
  scrollSticky = injectScrollSticky(0, "none");
17290
- isSticky = computed(() => this.sticky() && this.scrollSticky(), ...ngDevMode ? [{ debugName: "isSticky" }] : /* istanbul ignore next */ []);
17296
+ stickyOn = computed(() => this.sticky() && !this.isDesignMode, ...ngDevMode ? [{ debugName: "stickyOn" }] : /* istanbul ignore next */ []);
17297
+ isSticky = computed(() => this.stickyOn() && this.scrollSticky(), ...ngDevMode ? [{ debugName: "isSticky" }] : /* istanbul ignore next */ []);
17291
17298
  sectionContext = inject(SECTION_CONTEXT, { optional: true });
17292
17299
  sidepanel = computed(() => this.sectionContext?.sidepanel() ?? false, ...ngDevMode ? [{ debugName: "sidepanel" }] : /* istanbul ignore next */ []);
17293
17300
  noBorder = computed(() => this.sectionContext?.variant() === "noBorder", ...ngDevMode ? [{ debugName: "noBorder" }] : /* istanbul ignore next */ []);
@@ -17339,7 +17346,7 @@ var SectionFooterComponent = class SectionFooterComponent {
17339
17346
  },
17340
17347
  host: {
17341
17348
  properties: {
17342
- "class.is-sticky-enabled": "sticky()",
17349
+ "class.is-sticky-enabled": "stickyOn()",
17343
17350
  "class.is-sticky": "isSticky()",
17344
17351
  "class.align-left": "align() === \"left\"",
17345
17352
  "class.align-center": "align() === \"center\"",
@@ -17373,7 +17380,7 @@ i0.ɵɵngDeclareClassMetadata({
17373
17380
  changeDetection: ChangeDetectionStrategy.OnPush,
17374
17381
  host: {
17375
17382
  class: "m-section-footer",
17376
- "[class.is-sticky-enabled]": "sticky()",
17383
+ "[class.is-sticky-enabled]": "stickyOn()",
17377
17384
  "[class.is-sticky]": "isSticky()",
17378
17385
  "[class.align-left]": "align() === \"left\"",
17379
17386
  "[class.align-center]": "align() === \"center\"",