@proximus/lavender-autocomplete 2.0.0-alpha.232 → 2.0.0-alpha.233

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.
package/dist/index.es.js CHANGED
@@ -1629,7 +1629,7 @@ var Se = [
1629
1629
  customElements.get("px-container") || customElements.define("px-container", Te);
1630
1630
  //#endregion
1631
1631
  //#region ../../components/Layout/src/Stack.css?inline
1632
- var Ee = ":host{--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;--flex-overflow-y--mobile-value:visible;--flex-overflow-y--tablet-value:visible;--flex-overflow-y--laptop-value:visible;--flex-overflow-y--desktop-value:visible;--flex-max-height--mobile-value:none;--flex-max-height--tablet-value:none;--flex-max-height--laptop-value:none;--flex-max-height--desktop-value:none;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);overflow-y:var(--flex-overflow-y--mobile-value);max-height:var(--flex-max-height--mobile-value);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value);overflow-y:var(--flex-overflow-y--tablet-value);max-height:var(--flex-max-height--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value);overflow-y:var(--flex-overflow-y--laptop-value);max-height:var(--flex-max-height--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-y:var(--flex-overflow-y--desktop-value);max-height:var(--flex-max-height--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", B = new CSSStyleSheet();
1632
+ var Ee = ":host{--flex-min-width--mobile-value:auto;--flex-min-width--tablet-value:auto;--flex-min-width--laptop-value:auto;--flex-min-width--desktop-value:auto;--flex-max-width--mobile-value:none;--flex-max-width--tablet-value:none;--flex-max-width--laptop-value:none;--flex-max-width--desktop-value:none;min-width:var(--flex-min-width--mobile-value);max-width:var(--flex-max-width--mobile-value);--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;--flex-overflow-y--mobile-value:visible;--flex-overflow-y--tablet-value:visible;--flex-overflow-y--laptop-value:visible;--flex-overflow-y--desktop-value:visible;--flex-max-height--mobile-value:none;--flex-max-height--tablet-value:none;--flex-max-height--laptop-value:none;--flex-max-height--desktop-value:none;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);overflow-y:var(--flex-overflow-y--mobile-value);max-height:var(--flex-max-height--mobile-value);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){:host{min-width:var(--flex-min-width--tablet-value);max-width:var(--flex-max-width--tablet-value)}.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value);overflow-y:var(--flex-overflow-y--tablet-value);max-height:var(--flex-max-height--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){:host{min-width:var(--flex-min-width--laptop-value);max-width:var(--flex-max-width--laptop-value)}.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value);overflow-y:var(--flex-overflow-y--laptop-value);max-height:var(--flex-max-height--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){:host{min-width:var(--flex-min-width--desktop-value);max-width:var(--flex-max-width--desktop-value)}.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-y:var(--flex-overflow-y--desktop-value);max-height:var(--flex-max-height--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", B = new CSSStyleSheet();
1633
1633
  B.replaceSync(Ee);
1634
1634
  var V = document.createElement("template");
1635
1635
  V.innerHTML = "<div class=\"flex-container\"><slot></slot></div>";
@@ -1720,7 +1720,17 @@ var De = [
1720
1720
  "max-height--mobile",
1721
1721
  "max-height--tablet",
1722
1722
  "max-height--laptop",
1723
- "max-height--desktop"
1723
+ "max-height--desktop",
1724
+ "min-width",
1725
+ "min-width--mobile",
1726
+ "min-width--tablet",
1727
+ "min-width--laptop",
1728
+ "min-width--desktop",
1729
+ "max-width",
1730
+ "max-width--mobile",
1731
+ "max-width--tablet",
1732
+ "max-width--laptop",
1733
+ "max-width--desktop"
1724
1734
  ];
1725
1735
  }
1726
1736
  attributeChangedCallback(e, t, n) {
@@ -1760,6 +1770,18 @@ var De = [
1760
1770
  case "direction--desktop":
1761
1771
  this.updateFlexProperties(e, t, n, De), this.updateVerticalStyles();
1762
1772
  break;
1773
+ case "min-width":
1774
+ case "min-width--mobile":
1775
+ case "min-width--tablet":
1776
+ case "min-width--laptop":
1777
+ case "min-width--desktop":
1778
+ case "max-width":
1779
+ case "max-width--mobile":
1780
+ case "max-width--tablet":
1781
+ case "max-width--laptop":
1782
+ case "max-width--desktop":
1783
+ n && !CSS.supports(e.split("--")[0], n) && h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateFlexProperties(e, t, n);
1784
+ break;
1763
1785
  case "overflow-y":
1764
1786
  case "overflow-y--mobile":
1765
1787
  case "overflow-y--tablet":
@@ -1798,7 +1820,7 @@ var De = [
1798
1820
  u(r, n) ? this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n) : h(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
1799
1821
  }
1800
1822
  updateFlexProperties(e, n, r, i) {
1801
- r !== null && !this.checkName(i, r) && h(`"${r}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
1823
+ i && r !== null && !this.checkName(i, r) && h(`"${r}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
1802
1824
  let a = e.indexOf("--");
1803
1825
  if (a === -1) for (let n of t.breakpoints) this.getAttribute(`${e}--${n}`) || this.updateStyle(e, n, r, i);
1804
1826
  else {
@@ -1807,12 +1829,12 @@ var De = [
1807
1829
  }
1808
1830
  }
1809
1831
  updateStyle(e, t, n, r) {
1810
- let i = `--flex-${e}--${t}-value`, a = e === "gap";
1811
- if (!n) this.$el.style.removeProperty(i), a && this.style.removeProperty(`--host-gap--${t}`);
1832
+ let i = `--flex-${e}--${t}-value`, a = e === "gap", o = e === "min-width" || e === "max-width", s = o ? this : this.$el;
1833
+ if (o && n && !CSS.supports(e, n) && (n = null), !n) s.style.removeProperty(i), a && this.style.removeProperty(`--host-gap--${t}`);
1812
1834
  else if (a && r && r.includes(n)) {
1813
1835
  let e = `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`;
1814
1836
  this.$el.style.setProperty(i, e), this.style.setProperty(`--host-gap--${t}`, e);
1815
- } else this.$el.style.setProperty(i, n);
1837
+ } else s.style.setProperty(i, n);
1816
1838
  }
1817
1839
  static {
1818
1840
  this.breakpoints = [
@@ -2062,6 +2084,66 @@ var De = [
2062
2084
  set maxHeightDesktop(e) {
2063
2085
  S(this, "max-height--desktop", e);
2064
2086
  }
2087
+ get minWidth() {
2088
+ return this.getAttribute("min-width") ?? "auto";
2089
+ }
2090
+ set minWidth(e) {
2091
+ S(this, "min-width", e);
2092
+ }
2093
+ get minWidthMobile() {
2094
+ return this.getAttribute("min-width--mobile");
2095
+ }
2096
+ set minWidthMobile(e) {
2097
+ S(this, "min-width--mobile", e);
2098
+ }
2099
+ get minWidthTablet() {
2100
+ return this.getAttribute("min-width--tablet");
2101
+ }
2102
+ set minWidthTablet(e) {
2103
+ S(this, "min-width--tablet", e);
2104
+ }
2105
+ get minWidthLaptop() {
2106
+ return this.getAttribute("min-width--laptop");
2107
+ }
2108
+ set minWidthLaptop(e) {
2109
+ S(this, "min-width--laptop", e);
2110
+ }
2111
+ get minWidthDesktop() {
2112
+ return this.getAttribute("min-width--desktop");
2113
+ }
2114
+ set minWidthDesktop(e) {
2115
+ S(this, "min-width--desktop", e);
2116
+ }
2117
+ get maxWidth() {
2118
+ return this.getAttribute("max-width") ?? "none";
2119
+ }
2120
+ set maxWidth(e) {
2121
+ S(this, "max-width", e);
2122
+ }
2123
+ get maxWidthMobile() {
2124
+ return this.getAttribute("max-width--mobile");
2125
+ }
2126
+ set maxWidthMobile(e) {
2127
+ S(this, "max-width--mobile", e);
2128
+ }
2129
+ get maxWidthTablet() {
2130
+ return this.getAttribute("max-width--tablet");
2131
+ }
2132
+ set maxWidthTablet(e) {
2133
+ S(this, "max-width--tablet", e);
2134
+ }
2135
+ get maxWidthLaptop() {
2136
+ return this.getAttribute("max-width--laptop");
2137
+ }
2138
+ set maxWidthLaptop(e) {
2139
+ S(this, "max-width--laptop", e);
2140
+ }
2141
+ get maxWidthDesktop() {
2142
+ return this.getAttribute("max-width--desktop");
2143
+ }
2144
+ set maxWidthDesktop(e) {
2145
+ S(this, "max-width--desktop", e);
2146
+ }
2065
2147
  get $el() {
2066
2148
  return this.shadowRoot.firstElementChild;
2067
2149
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@proximus/lavender-autocomplete",
4
- "version": "2.0.0-alpha.232",
4
+ "version": "2.0.0-alpha.233",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-autocomplete",
3
- "version": "2.0.0-alpha.232",
3
+ "version": "2.0.0-alpha.233",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",