@proximus/lavender 1.4.11-alpha.13 → 1.4.11-alpha.14

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.
@@ -10809,7 +10809,7 @@ class Drawer extends HTMLElement {
10809
10809
  if (!customElements.get("px-drawer")) {
10810
10810
  customElements.define("px-drawer", Drawer);
10811
10811
  }
10812
- const styles$x = ':host{position:relative}::slotted([slot="popover"]){position:fixed;border-radius:var(--px-radius-main, 8px);background:var(--px-color-background-container-light-default, #fff);box-shadow:0 20px 25px -5px #25252514;margin:0;padding:var(--px-padding-xs-mobile) 0;border:0;right:0;width:auto}:host([grow]) ::slotted([slot="trigger"]):after{right:0;padding-right:var(--px-padding-xs-mobile)}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="bottom-right"]) ::slotted([slot="popover"]){left:auto}@media screen and (max-width: 47.938rem){::slotted([slot="trigger"]){display:block;width:100%}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}}@media screen and (min-width: 48rem){::slotted([slot="popover"]){padding-block:var(--px-padding-s-desktop);right:auto;width:auto}}';
10812
+ const styles$x = ':host{position:relative}::slotted([slot="popover"]){position:fixed;border-radius:var(--px-radius-main, 8px);background:var(--px-color-background-container-light-default, #fff);box-shadow:0 20px 25px -5px #25252514;margin:0;padding:var(--px-padding-xs-mobile) 0;border:0;right:0;width:auto;max-height:var(--px-popover-max-height)}:host([grow]) ::slotted([slot="trigger"]):after{right:0;padding-right:var(--px-padding-xs-mobile)}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){top:auto}:host([anchoralignment="bottom-right"]) ::slotted([slot="popover"]){left:auto}@media screen and (max-width: 47.938rem){::slotted([slot="trigger"]){display:block;width:100%}:host([anchoralignment="top-left"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}:host([anchoralignment="top-right"]) ::slotted([slot="popover"]){left:var(--px-padding-s-mobile)}}@media screen and (min-width: 48rem){::slotted([slot="popover"]){padding-block:var(--px-padding-s-desktop);right:auto;width:auto}}';
10813
10813
  const anchorAlignmentValues = [
10814
10814
  "top-left",
10815
10815
  "top-right",
@@ -10941,7 +10941,8 @@ class Dropdown extends WithExtraAttributes {
10941
10941
  "id",
10942
10942
  "anchoralignment",
10943
10943
  "use-polyfill",
10944
- "manual-toggle"
10944
+ "manual-toggle",
10945
+ "popover-height"
10945
10946
  ];
10946
10947
  }
10947
10948
  connectedCallback() {
@@ -10983,12 +10984,25 @@ class Dropdown extends WithExtraAttributes {
10983
10984
  (_a = this.$trigger) == null ? void 0 : _a.removeAttribute("aria-expanded");
10984
10985
  }
10985
10986
  break;
10987
+ case "popover-height":
10988
+ this.updatePopoverHeight(newValue);
10989
+ break;
10986
10990
  default:
10987
10991
  super.attributeChangedCallback(name, oldValue, newValue);
10988
10992
  break;
10989
10993
  }
10990
10994
  }
10991
10995
  }
10996
+ updatePopoverHeight(newValue) {
10997
+ if (newValue) {
10998
+ this.$popoverElement.style.setProperty(
10999
+ "--px-popover-max-height",
11000
+ newValue
11001
+ );
11002
+ } else {
11003
+ this.$popoverElement.style.removeProperty("--px-popover-max-height");
11004
+ }
11005
+ }
10992
11006
  initPopover() {
10993
11007
  if (this.$trigger) {
10994
11008
  this.$trigger.setAttribute("popovertarget", this.popoverId);
@@ -11051,6 +11065,16 @@ class Dropdown extends WithExtraAttributes {
11051
11065
  this.removeAttribute("manual-toggle");
11052
11066
  }
11053
11067
  }
11068
+ get popoverHeight() {
11069
+ return this.getAttribute("popover-height");
11070
+ }
11071
+ set popoverHeight(value) {
11072
+ if (value) {
11073
+ this.setAttribute("popover-height", value);
11074
+ } else {
11075
+ this.removeAttribute("popover-height");
11076
+ }
11077
+ }
11054
11078
  }
11055
11079
  _Dropdown_instances = new WeakSet();
11056
11080
  resetManualPopoverDisplay_fn = function() {
@@ -13866,7 +13890,7 @@ class MddSectionItem extends HTMLElement {
13866
13890
  if (!customElements.get("px-mdd-section-item")) {
13867
13891
  customElements.define("px-mdd-section-item", MddSectionItem);
13868
13892
  }
13869
- const styles$n = '*{box-sizing:border-box}#container{display:flex;flex-wrap:nowrap;font-family:var(--px-font-family);font-size:var(--px-font-size-base);color:var(--px-color-text-neutral-default);width:inherit;border-radius:var(--px-radius-main);background-color:var(--px-color-background-surface-default);overflow:hidden}#container.info{border-left:5px var(--px-color-icon-brand-default) solid}#container.success{border-left:5px var(--px-color-icon-purpose-success-default) solid}#container.warning{border-left:5px var(--px-color-icon-purpose-warning-default) solid}#container.error{border-left:5px var(--px-color-icon-purpose-error-default) solid}#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-mobile)))}#content-container{display:flex;padding:var(--px-padding-m-mobile);flex-grow:1}#content-container px-vstack{max-height:100%}#media-container{display:none}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-mobile);right:var(--px-padding-m-mobile)}dialog{background:transparent;border-radius:0;box-shadow:none;padding:0;border:0;box-sizing:border-box;transform:scale(.95);animation:modalIn .3s ease-out forwards;max-width:calc(100% - (var(--px-spacing-s-mobile) * 2));max-height:calc(100% - (var(--px-spacing-s-mobile) * 2))}dialog[open]{display:flex}::backdrop{background:#0000004d;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}#content{max-height:12.5rem;overflow:auto}@media screen and (min-width: 48rem){dialog{max-width:calc(100% - (var(--px-spacing-s-tablet) * 2));max-height:calc(100% - (var(--px-spacing-s-tablet) * 2))}#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-tablet)))}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-tablet);right:var(--px-padding-m-tablet)}#content{max-height:25rem}}@media screen and (min-width: 64.0625rem){dialog{max-width:calc(100% - (var(--px-spacing-s-laptop) * 2));max-height:calc(100% - (var(--px-spacing-s-laptop) * 2))}#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-laptop)))}::slotted(px-button-icon[slot="close-button"]){top:var(--px-padding-m-laptop);right:var(--px-padding-m-laptop)}:host([media-src]) #container.has-close-button #icon-container{max-width:100%}:host([media-src]) #media-container{display:block;background-size:cover;background-position:center center;background-repeat:no-repeat;flex-basis:25rem;flex-shrink:0}}@media screen and (min-width: 69.875rem){#container{width:1080px}}@media screen and (min-width: 90.0625rem){dialog{max-width:calc(100% - (var(--px-spacing-s-desktop) * 2));max-height:calc(100% - (var(--px-spacing-s-desktop) * 2))}:host(:not([media-src])) #container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-desktop)))}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-desktop);right:var(--px-padding-m-desktop)}}@keyframes modalIn{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}';
13893
+ const styles$n = '*{box-sizing:border-box}#container{display:flex;flex-wrap:nowrap;font-family:var(--px-font-family);font-size:var(--px-font-size-base);color:var(--px-color-text-neutral-default);width:inherit;border-radius:var(--px-radius-main);background-color:var(--px-color-background-surface-default);overflow:hidden}#container.info{border-left:5px var(--px-color-icon-brand-default) solid}#container.success{border-left:5px var(--px-color-icon-purpose-success-default) solid}#container.warning{border-left:5px var(--px-color-icon-purpose-warning-default) solid}#container.error{border-left:5px var(--px-color-icon-purpose-error-default) solid}#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-mobile)))}#content-container{display:flex;padding:var(--px-padding-m-mobile);flex-grow:1}#content-container px-vstack{max-height:100%;flex-grow:1}#media-container{display:none}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-mobile);right:var(--px-padding-m-mobile)}dialog{background:transparent;border-radius:0;box-shadow:none;padding:0;border:0;box-sizing:border-box;transform:scale(.95);animation:modalIn .3s ease-out forwards;max-width:calc(100% - (var(--px-spacing-s-mobile) * 2));max-height:calc(100% - (var(--px-spacing-s-mobile) * 2))}dialog[open]{display:flex}::backdrop{background:#0000004d;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}#content{max-height:12.5rem;overflow:auto}@media screen and (min-width: 48rem){dialog{max-width:calc(100% - (var(--px-spacing-s-tablet) * 2));max-height:calc(100% - (var(--px-spacing-s-tablet) * 2))}#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-tablet)))}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-tablet);right:var(--px-padding-m-tablet)}#content{max-height:25rem}}@media screen and (min-width: 64.0625rem){dialog{max-width:calc(100% - (var(--px-spacing-s-laptop) * 2));max-height:calc(100% - (var(--px-spacing-s-laptop) * 2))}#container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-laptop)))}::slotted(px-button-icon[slot="close-button"]){top:var(--px-padding-m-laptop);right:var(--px-padding-m-laptop)}:host([media-src]) #container.has-close-button #icon-container{max-width:100%}:host([media-src]) #media-container{display:block;background-size:cover;background-position:center center;background-repeat:no-repeat;flex-basis:25rem;flex-shrink:0}}@media screen and (min-width: 69.875rem){#container{width:1080px}}@media screen and (min-width: 90.0625rem){dialog{max-width:calc(100% - (var(--px-spacing-s-desktop) * 2));max-height:calc(100% - (var(--px-spacing-s-desktop) * 2))}:host(:not([media-src])) #container.has-close-button #icon-container{max-width:calc(100% - (var(--px-size-m) + var(--px-spacing-s-desktop)))}::slotted(px-button-icon[slot="close-button"]){position:absolute;top:var(--px-padding-m-desktop);right:var(--px-padding-m-desktop)}}@keyframes modalIn{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}';
13870
13894
  const styleSheet$m = new CSSStyleSheet();
13871
13895
  styleSheet$m.replaceSync(styles$n);
13872
13896
  const CLOSE_EVENT$1 = "px.lavender.modal.close";
@@ -17945,7 +17969,7 @@ class Typography extends HTMLElement {
17945
17969
  if (!customElements.get("px-typography")) {
17946
17970
  customElements.define("px-typography", Typography);
17947
17971
  }
17948
- const styles$1 = ":host .dropdown-content{background-color:var(--px-color-background-surface-default);border-radius:var(--px-radius-main);box-shadow:0 4px 6px -1px #25252514;overflow:hidden}:host([inverted]) .dropdown-content{background-color:var(--px-color-background-surface-dark)}";
17972
+ const styles$1 = ":host .dropdown-content{background-color:var(--px-color-background-surface-default);border-radius:var(--px-radius-main);box-shadow:0 4px 6px -1px #25252514;padding:0;margin-top:calc(var(--px-focus-offset-mobile) + var(--px-focus-outline-mobile));overflow:auto}@media screen and (min-width: 48rem){:host .dropdown-content{margin-top:calc(var(--px-focus-offset-tablet) + var(--px-focus-outline-tablet))}}@media screen and (min-width: 64.0625rem){:host .dropdown-content{margin-top:calc(var(--px-focus-offset-laptop) + var(--px-focus-outline-laptop))}}@media screen and (min-width: 90.0625rem){:host .dropdown-content{margin-top:calc(var(--px-focus-offset-desktop) + var(--px-focus-outline-desktop))}}:host([inverted]) .dropdown-content{background-color:var(--px-color-background-surface-dark)}";
17949
17973
  const styleSheet$2 = new CSSStyleSheet();
17950
17974
  styleSheet$2.replaceSync(styles$1);
17951
17975
  const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
@@ -18016,27 +18040,34 @@ const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
18016
18040
  "extended--mobile",
18017
18041
  "extended--tablet",
18018
18042
  "extended--laptop",
18019
- "extended--desktop"
18043
+ "extended--desktop",
18044
+ "popover-height"
18020
18045
  ];
18021
18046
  }
18022
18047
  attributeChangedCallback(name, oldValue, newValue) {
18023
- switch (name) {
18024
- case "size":
18025
- case "state":
18026
- case "extended":
18027
- case "extended--mobile":
18028
- case "extended--tablet":
18029
- case "extended--laptop":
18030
- case "extended--desktop":
18031
- if (newValue !== null) {
18032
- this.$input.setAttribute(name, newValue);
18033
- } else {
18034
- this.$input.removeAttribute(name);
18035
- }
18036
- break;
18037
- default:
18038
- super.attributeChangedCallback(name, oldValue, newValue);
18039
- break;
18048
+ if (oldValue !== newValue) {
18049
+ switch (name) {
18050
+ case "size":
18051
+ case "state":
18052
+ case "extended":
18053
+ case "extended--mobile":
18054
+ case "extended--tablet":
18055
+ case "extended--laptop":
18056
+ case "extended--desktop":
18057
+ if (newValue !== null) {
18058
+ this.$input.setAttribute(name, newValue);
18059
+ } else {
18060
+ this.$input.removeAttribute(name);
18061
+ }
18062
+ break;
18063
+ case "popover-height":
18064
+ this.setDefaultPopoverHeight();
18065
+ this.$dropDown.popoverHeight = this.popoverHeight;
18066
+ break;
18067
+ default:
18068
+ super.attributeChangedCallback(name, oldValue, newValue);
18069
+ break;
18070
+ }
18040
18071
  }
18041
18072
  }
18042
18073
  connectedCallback() {
@@ -18055,11 +18086,17 @@ const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
18055
18086
  if (labelId) {
18056
18087
  this.$dropDownContent.setAttribute("aria-labelledby", labelId);
18057
18088
  }
18089
+ this.setDefaultPopoverHeight();
18058
18090
  }
18059
18091
  disconnectedCallback() {
18060
18092
  this.$input.removeEventListener("input", __privateGet(this, _onInput));
18061
18093
  this.removeEventListener("keydown", __privateGet(this, _onKeyDown));
18062
18094
  }
18095
+ setDefaultPopoverHeight() {
18096
+ if (!this.popoverHeight) {
18097
+ this.popoverHeight = "16.5rem";
18098
+ }
18099
+ }
18063
18100
  get value() {
18064
18101
  return this.$input.value;
18065
18102
  }
@@ -18093,6 +18130,16 @@ const _Autocomplete = class _Autocomplete extends WithExtraAttributes {
18093
18130
  get $label() {
18094
18131
  return this.querySelector('[slot="label"]');
18095
18132
  }
18133
+ get popoverHeight() {
18134
+ return this.getAttribute("popover-height");
18135
+ }
18136
+ set popoverHeight(value) {
18137
+ if (value) {
18138
+ this.setAttribute("popover-height", value);
18139
+ } else {
18140
+ this.removeAttribute("popover-height");
18141
+ }
18142
+ }
18096
18143
  };
18097
18144
  _controlId = new WeakMap();
18098
18145
  _onKeyDown = new WeakMap();