@orangelogic/design-system 2.154.0 → 2.155.0

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.
Files changed (32) hide show
  1. package/library/chunks/active-elements.jTVWtBDp.js +10 -0
  2. package/library/chunks/{color-swatch-group.BX90sRwa.js → color-swatch-group.Gh-drOGJ.js} +10 -7
  3. package/library/chunks/{confirm-popover.BFBhjDQ9.js → confirm-popover.C-eHPJaU.js} +1 -1
  4. package/library/chunks/{dialog.DIXmnVis.js → dialog.Bzf4-IgH.js} +1 -1
  5. package/library/chunks/{header.DpBmcfR_.js → header.x8SZLjAG.js} +30 -3
  6. package/library/chunks/{modal.U1QltQKe.js → modal.jdGhujoh.js} +28 -35
  7. package/library/chunks/{tabbable.CcMz3mIL.js → tabbable.BwnZBHrm.js} +2 -2
  8. package/library/components/atoms.js +2 -2
  9. package/library/components/color-swatch-group.js +1 -1
  10. package/library/components/confirm-popover.js +2 -2
  11. package/library/components/dialog.js +2 -2
  12. package/library/components/drawer.js +1 -1
  13. package/library/components/dropdown.js +1 -1
  14. package/library/components/file-on-demand.js +2 -2
  15. package/library/components/header.js +1 -1
  16. package/library/components/menu-item.js +12 -6
  17. package/library/components/molecules.js +1 -1
  18. package/library/components/organisms.js +1 -1
  19. package/library/components/popup.js +37 -34
  20. package/library/components/select.js +34 -31
  21. package/library/components/types.js +1613 -1589
  22. package/library/package.json +1 -1
  23. package/library/packages/atoms/src/components/menu-item/submenu-controller.d.ts +1 -0
  24. package/library/packages/atoms/src/components/popup/popup.d.ts +1 -0
  25. package/library/packages/molecules/src/multi-select/components/board/board.utils.d.ts +7 -0
  26. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +1 -1
  27. package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +1 -1
  28. package/library/packages/organisms/src/content-builder/configs/search-box.d.ts +1 -0
  29. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +2 -0
  30. package/library/packages/services/src/api/endpoints.d.ts +1 -1
  31. package/library/utils.js +142 -141
  32. package/package.json +1 -1
@@ -2,11 +2,11 @@ import { a as _e, i as Vt, r as ze, x as U } from "../chunks/lit-element.jLBm65_
2
2
  import { n as y, C as Be } from "../chunks/lib-cortex-element.CVMmyPMC.js";
3
3
  import { r as Me } from "../chunks/state.CSDxrqLd.js";
4
4
  import { e as Ct } from "../chunks/query.BBf1UFkC.js";
5
- import { e as He } from "../chunks/base.D76d76ww.js";
5
+ import { e as Ie } from "../chunks/base.D76d76ww.js";
6
6
  import { e as ht } from "../chunks/class-map.BiVq-cVR.js";
7
7
  import { o as Lt } from "../chunks/if-defined.BRoBj_Rp.js";
8
8
  import { o as se } from "../chunks/style-map.llVFPd__.js";
9
- import { i as gt, p as ne, f as Ie, a as We } from "../chunks/browser.BHOCIF_A.js";
9
+ import { i as gt, p as ne, f as He, a as We } from "../chunks/browser.BHOCIF_A.js";
10
10
  import { c as ye } from "../chunks/component.styles.CRO4Odto.js";
11
11
  import { c as qe } from "../chunks/custom-element.L4WJXn1j.js";
12
12
  import { d as Ve } from "../chunks/debounce.DaHuiSGU.js";
@@ -20,7 +20,7 @@ import { n as Ue } from "../chunks/when.Dr1es41R.js";
20
20
  function Ye(e) {
21
21
  return (t, o) => {
22
22
  const { slot: i, selector: s } = e ?? {}, r = "slot" + (i ? `[name=${i}]` : ":not([name])");
23
- return He(t, o, { get() {
23
+ return Ie(t, o, { get() {
24
24
  const n = this.renderRoot?.querySelector(r), a = n?.assignedElements(e) ?? [];
25
25
  return s === void 0 ? a : a.filter((l) => l.matches(s));
26
26
  } });
@@ -856,7 +856,7 @@ class yi {
856
856
  this.closeOverlay(t);
857
857
  }
858
858
  }
859
- const le = new yi(), vi = ["top", "right", "bottom", "left"], Q = Math.min, T = Math.max, xt = Math.round, yt = Math.floor, I = (e) => ({
859
+ const le = new yi(), vi = ["top", "right", "bottom", "left"], Q = Math.min, T = Math.max, xt = Math.round, yt = Math.floor, H = (e) => ({
860
860
  x: e,
861
861
  y: e
862
862
  }), bi = {
@@ -1140,7 +1140,7 @@ const Di = (e) => ({
1140
1140
  }, p = Zt(s), f = Qt(p), m = await n.getDimensions(c), g = p === "y", v = g ? "top" : "left", x = g ? "bottom" : "right", E = g ? "clientHeight" : "clientWidth", C = r.reference[f] + r.reference[p] - u[p] - r.floating[f], P = u[p] - r.reference[p], $ = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(c));
1141
1141
  let A = $ ? $[E] : 0;
1142
1142
  (!A || !await (n.isElement == null ? void 0 : n.isElement($))) && (A = a.floating[E] || r.floating[f]);
1143
- const V = C / 2 - P / 2, M = A / 2 - m[f] / 2 - 1, L = Q(d[v], M), X = Q(d[x], M), H = L, G = A - m[f] - X, R = A / 2 - m[f] / 2 + V, et = _t(H, R, G), j = !l.arrow && at(s) != null && R !== et && r.reference[f] / 2 - (R < H ? L : X) - m[f] / 2 < 0, F = j ? R < H ? R - H : R - G : 0;
1143
+ const V = C / 2 - P / 2, M = A / 2 - m[f] / 2 - 1, L = Q(d[v], M), X = Q(d[x], M), I = L, G = A - m[f] - X, R = A / 2 - m[f] / 2 + V, et = _t(I, R, G), j = !l.arrow && at(s) != null && R !== et && r.reference[f] / 2 - (R < I ? L : X) - m[f] / 2 < 0, F = j ? R < I ? R - I : R - G : 0;
1144
1144
  return {
1145
1145
  [p]: u[p] + F,
1146
1146
  data: {
@@ -1189,7 +1189,7 @@ const Di = (e) => ({
1189
1189
  placement: s,
1190
1190
  overflows: M
1191
1191
  }], !M.every((R) => R <= 0)) {
1192
- var X, H;
1192
+ var X, I;
1193
1193
  const R = (((X = r.flip) == null ? void 0 : X.index) || 0) + 1, et = A[R];
1194
1194
  if (et && (!(d === "alignment" ? x !== Y(et) : !1) || // We leave the current main axis only if every placement on that axis
1195
1195
  // overflows the main axis.
@@ -1203,7 +1203,7 @@ const Di = (e) => ({
1203
1203
  placement: et
1204
1204
  }
1205
1205
  };
1206
- let j = (H = L.filter((F) => F.overflows[0] <= 0).sort((F, N) => F.overflows[1] - N.overflows[1])[0]) == null ? void 0 : H.placement;
1206
+ let j = (I = L.filter((F) => F.overflows[0] <= 0).sort((F, N) => F.overflows[1] - N.overflows[1])[0]) == null ? void 0 : I.placement;
1207
1207
  if (!j)
1208
1208
  switch (p) {
1209
1209
  case "bestFit": {
@@ -1417,8 +1417,8 @@ const Ni = function(e) {
1417
1417
  const x = m - h.top - h.bottom, E = f - h.left - h.right, C = Q(m - h[g], x), P = Q(f - h[v], E), $ = !t.middlewareData.shift;
1418
1418
  let A = C, V = P;
1419
1419
  if ((o = t.middlewareData.shift) != null && o.enabled.x && (V = E), (i = t.middlewareData.shift) != null && i.enabled.y && (A = x), $ && !u) {
1420
- const L = T(h.left, 0), X = T(h.right, 0), H = T(h.top, 0), G = T(h.bottom, 0);
1421
- p ? V = f - 2 * (L !== 0 || X !== 0 ? L + X : T(h.left, h.right)) : A = m - 2 * (H !== 0 || G !== 0 ? H + G : T(h.top, h.bottom));
1420
+ const L = T(h.left, 0), X = T(h.right, 0), I = T(h.top, 0), G = T(h.bottom, 0);
1421
+ p ? V = f - 2 * (L !== 0 || X !== 0 ? L + X : T(h.left, h.right)) : A = m - 2 * (I !== 0 || G !== 0 ? I + G : T(h.top, h.bottom));
1422
1422
  }
1423
1423
  await l({
1424
1424
  ...t,
@@ -1471,12 +1471,12 @@ function mt(e) {
1471
1471
  return /auto|scroll|overlay|hidden|clip/.test(t + i + o) && !Bi.has(s);
1472
1472
  }
1473
1473
  const Mi = /* @__PURE__ */ new Set(["table", "td", "th"]);
1474
- function Hi(e) {
1474
+ function Ii(e) {
1475
1475
  return Mi.has(lt(e));
1476
1476
  }
1477
- const Ii = [":popover-open", ":modal"];
1477
+ const Hi = [":popover-open", ":modal"];
1478
1478
  function St(e) {
1479
- return Ii.some((t) => {
1479
+ return Hi.some((t) => {
1480
1480
  try {
1481
1481
  return e.matches(t);
1482
1482
  } catch {
@@ -1564,7 +1564,7 @@ function ee(e) {
1564
1564
  function nt(e) {
1565
1565
  const t = ee(e);
1566
1566
  if (!W(t))
1567
- return I(1);
1567
+ return H(1);
1568
1568
  const o = t.getBoundingClientRect(), {
1569
1569
  width: i,
1570
1570
  height: s,
@@ -1576,7 +1576,7 @@ function nt(e) {
1576
1576
  y: a
1577
1577
  };
1578
1578
  }
1579
- const Yi = /* @__PURE__ */ I(0);
1579
+ const Yi = /* @__PURE__ */ H(0);
1580
1580
  function Ce(e) {
1581
1581
  const t = D(e);
1582
1582
  return !te() || !t.visualViewport ? Yi : {
@@ -1590,9 +1590,9 @@ function Ki(e, t, o) {
1590
1590
  function ot(e, t, o, i) {
1591
1591
  t === void 0 && (t = !1), o === void 0 && (o = !1);
1592
1592
  const s = e.getBoundingClientRect(), r = ee(e);
1593
- let n = I(1);
1593
+ let n = H(1);
1594
1594
  t && (i ? z(i) && (n = nt(i)) : n = nt(e));
1595
- const a = Ki(r, o, i) ? Ce(r) : I(0);
1595
+ const a = Ki(r, o, i) ? Ce(r) : H(0);
1596
1596
  let l = (s.left + a.x) / n.x, c = (s.top + a.y) / n.y, h = s.width / n.x, d = s.height / n.y;
1597
1597
  if (r) {
1598
1598
  const u = D(r), p = i && z(i) ? D(i) : i;
@@ -1637,13 +1637,13 @@ function Xi(e) {
1637
1637
  let l = {
1638
1638
  scrollLeft: 0,
1639
1639
  scrollTop: 0
1640
- }, c = I(1);
1641
- const h = I(0), d = W(i);
1640
+ }, c = H(1);
1641
+ const h = H(0), d = W(i);
1642
1642
  if ((d || !d && !r) && ((lt(i) !== "body" || mt(n)) && (l = Tt(i)), W(i))) {
1643
1643
  const p = ot(i);
1644
1644
  c = nt(i), h.x = p.x + i.clientLeft, h.y = p.y + i.clientTop;
1645
1645
  }
1646
- const u = n && !d && !r ? Oe(n, l, !0) : I(0);
1646
+ const u = n && !d && !r ? Oe(n, l, !0) : H(0);
1647
1647
  return {
1648
1648
  width: o.width * c.x,
1649
1649
  height: o.height * c.y,
@@ -1682,7 +1682,7 @@ function Qi(e, t) {
1682
1682
  }
1683
1683
  const Zi = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1684
1684
  function to(e, t) {
1685
- const o = ot(e, !0, t === "fixed"), i = o.top + e.clientTop, s = o.left + e.clientLeft, r = W(e) ? nt(e) : I(1), n = e.clientWidth * r.x, a = e.clientHeight * r.y, l = s * r.x, c = i * r.y;
1685
+ const o = ot(e, !0, t === "fixed"), i = o.top + e.clientTop, s = o.left + e.clientLeft, r = W(e) ? nt(e) : H(1), n = e.clientWidth * r.x, a = e.clientHeight * r.y, l = s * r.x, c = i * r.y;
1686
1686
  return {
1687
1687
  width: n,
1688
1688
  height: a,
@@ -1760,7 +1760,7 @@ function so(e, t, o) {
1760
1760
  scrollLeft: 0,
1761
1761
  scrollTop: 0
1762
1762
  };
1763
- const l = I(0);
1763
+ const l = H(0);
1764
1764
  function c() {
1765
1765
  l.x = ie(s);
1766
1766
  }
@@ -1770,7 +1770,7 @@ function so(e, t, o) {
1770
1770
  l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
1771
1771
  } else s && c();
1772
1772
  r && !i && s && c();
1773
- const h = s && !i && !r ? Oe(s, a) : I(0), d = n.left + a.scrollLeft - l.x - h.x, u = n.top + a.scrollTop - l.y - h.y;
1773
+ const h = s && !i && !r ? Oe(s, a) : H(0), d = n.left + a.scrollLeft - l.x - h.x, u = n.top + a.scrollTop - l.y - h.y;
1774
1774
  return {
1775
1775
  x: d,
1776
1776
  y: u,
@@ -1803,7 +1803,7 @@ function Se(e, t) {
1803
1803
  return o;
1804
1804
  }
1805
1805
  let i = ge(e, t);
1806
- for (; i && Hi(i) && $t(i); )
1806
+ for (; i && Ii(i) && $t(i); )
1807
1807
  i = ge(i, t);
1808
1808
  return i && rt(i) && $t(i) && !Rt(i) ? o : i || ji(e) || o;
1809
1809
  }
@@ -1883,7 +1883,7 @@ function ao(e, t) {
1883
1883
  }
1884
1884
  return n(!0), r;
1885
1885
  }
1886
- function Ht(e, t, o, i) {
1886
+ function It(e, t, o, i) {
1887
1887
  i === void 0 && (i = {});
1888
1888
  const {
1889
1889
  ancestorScroll: s = !0,
@@ -1919,7 +1919,7 @@ function Ht(e, t, o, i) {
1919
1919
  }), d?.(), (v = p) == null || v.disconnect(), p = null, l && cancelAnimationFrame(f);
1920
1920
  };
1921
1921
  }
1922
- const It = Ni, Te = _i, Wt = Li, qt = zi, lo = ki, De = Di, Le = (e, t, o) => {
1922
+ const Ht = Ni, Te = _i, Wt = Li, qt = zi, lo = ki, De = Di, Le = (e, t, o) => {
1923
1923
  const i = /* @__PURE__ */ new Map(), s = {
1924
1924
  platform: Mt,
1925
1925
  ...o
@@ -1965,7 +1965,7 @@ class po {
1965
1965
  async placeOverlay(t = this.target, o = this.options) {
1966
1966
  if (this.target = t, this.options = o, !t || !o)
1967
1967
  return;
1968
- const i = Ht(
1968
+ const i = It(
1969
1969
  o.trigger,
1970
1970
  t,
1971
1971
  this.closeForAncestorUpdate,
@@ -1974,7 +1974,7 @@ class po {
1974
1974
  elementResize: !1,
1975
1975
  layoutShift: !1
1976
1976
  }
1977
- ), s = Ht(
1977
+ ), s = It(
1978
1978
  o.trigger,
1979
1979
  t,
1980
1980
  this.updatePlacement,
@@ -2004,7 +2004,7 @@ class po {
2004
2004
  }), [s = 0, r = 0] = Array.isArray(t?.offset) ? t.offset : [t.offset, 0], n = this.host.elements.find(
2005
2005
  (u) => u.tipElement
2006
2006
  )?.tipElement, a = [
2007
- It({
2007
+ Ht({
2008
2008
  crossAxis: r,
2009
2009
  mainAxis: s
2010
2010
  }),
@@ -2715,11 +2715,11 @@ let b = class extends Be {
2715
2715
  return this.sync || this.autoSize;
2716
2716
  }
2717
2717
  disconnectedCallback() {
2718
- super.disconnectedCallback(), this.stop();
2718
+ super.disconnectedCallback(), this.stopImmediate();
2719
2719
  }
2720
2720
  connectedUpdatedCallback() {
2721
2721
  if (this.strategy === "overlay" && (this.start(), !ne)) {
2722
- const e = Ie(this);
2722
+ const e = He(this);
2723
2723
  e && (this.autoSizeBoundary = e, this.flipBoundary = e, this.shiftBoundary = e);
2724
2724
  }
2725
2725
  }
@@ -2743,13 +2743,16 @@ let b = class extends Be {
2743
2743
  )), this.anchorEl && this.start();
2744
2744
  }
2745
2745
  start() {
2746
- !this.anchorEl || !this.isConnected || (this.cleanup = Ht(this.anchorEl, this.popup, () => {
2746
+ !this.anchorEl || !this.isConnected || (this.cleanup = It(this.anchorEl, this.popup, () => {
2747
2747
  this.reposition();
2748
2748
  }));
2749
2749
  }
2750
+ stopImmediate() {
2751
+ this.cleanup && (this.cleanup(), this.cleanup = void 0, this.removeAttribute("data-current-placement"), this.style.removeProperty("--auto-size-available-width"), this.style.removeProperty("--auto-size-available-height"));
2752
+ }
2750
2753
  async stop() {
2751
2754
  return new Promise((e) => {
2752
- this.cleanup ? (this.cleanup(), this.cleanup = void 0, this.removeAttribute("data-current-placement"), this.style.removeProperty("--auto-size-available-width"), this.style.removeProperty("--auto-size-available-height"), requestAnimationFrame(() => e())) : e();
2755
+ this.cleanup ? (this.stopImmediate(), requestAnimationFrame(() => e())) : e();
2753
2756
  });
2754
2757
  }
2755
2758
  /** Forces the popup to recalculate and reposition itself. */
@@ -2758,9 +2761,9 @@ let b = class extends Be {
2758
2761
  return;
2759
2762
  const e = [
2760
2763
  // The offset middleware goes first
2761
- this.placement === "center" ? It(
2764
+ this.placement === "center" ? Ht(
2762
2765
  ({ rects: t }) => -t.reference.height / 2 - t.floating.height / 2
2763
- ) : It({ crossAxis: this.skidding, mainAxis: this.distance })
2766
+ ) : Ht({ crossAxis: this.skidding, mainAxis: this.distance })
2764
2767
  ];
2765
2768
  this.sync ? e.push(
2766
2769
  qt({
@@ -3,42 +3,43 @@ import { C } from "../chunks/typography.IqHbnd3C.js";
3
3
  import { n as a, C as S } from "../chunks/lib-cortex-element.CVMmyPMC.js";
4
4
  import { c as k } from "../chunks/component.styles.CRO4Odto.js";
5
5
  import { f as D } from "../chunks/form-control.styles.CaGWmeAS.js";
6
+ import { g as I } from "../chunks/active-elements.jTVWtBDp.js";
6
7
  import { s as x, a as y, w as v } from "../chunks/event.BeKOsirN.js";
7
8
  import { c as z } from "../chunks/custom-element.L4WJXn1j.js";
8
- import { d as I } from "../chunks/default-value.COZopaet.js";
9
- import { F as $ } from "../chunks/form.CP9KLGjF.js";
10
- import { L } from "../chunks/i18n.Bchq8v1d.js";
11
- import { s as F } from "../chunks/scroll.xtO5yojm.js";
12
- import { H as V } from "../chunks/slot.j5oheLJC.js";
9
+ import { d as $ } from "../chunks/default-value.COZopaet.js";
10
+ import { F as L } from "../chunks/form.CP9KLGjF.js";
11
+ import { L as F } from "../chunks/i18n.Bchq8v1d.js";
12
+ import { s as V } from "../chunks/scroll.xtO5yojm.js";
13
+ import { H as E } from "../chunks/slot.j5oheLJC.js";
13
14
  import { i as T } from "../chunks/user-agent.D9aPuOyL.js";
14
15
  import { w as p } from "../chunks/watch.DOt4Mabe.js";
15
- import { i as E, x as u, E as B } from "../chunks/lit-element.jLBm65_O.js";
16
+ import { i as B, x as u, E as A } from "../chunks/lit-element.jLBm65_O.js";
16
17
  import { r as g } from "../chunks/state.CSDxrqLd.js";
17
18
  import { e as m } from "../chunks/query.BBf1UFkC.js";
18
19
  import { e as b } from "../chunks/class-map.BiVq-cVR.js";
19
- import { o as A } from "../chunks/unsafe-html.Dff7-rCx.js";
20
+ import { o as P } from "../chunks/unsafe-html.Dff7-rCx.js";
20
21
  import { n as f } from "../chunks/when.Dr1es41R.js";
21
22
  import { s as O, g as _ } from "../chunks/animation-registry.HmpwNuGH.js";
22
- import { C as P } from "../chunks/icon.mxNZ85k0.js";
23
+ import { C as U } from "../chunks/icon.mxNZ85k0.js";
23
24
  import { C as d } from "../chunks/option.qN3aaqVI.js";
24
- import U from "./popup.js";
25
- import M from "./spinner.js";
26
- import N from "./tag.js";
27
- const R = (t) => !(document.createElement(t.tagName).constructor === HTMLElement || customElements.get(t.tagName.toLowerCase())), W = E`:host{display:block}:host([data-user-invalid])::part(combobox){border-color:var(--cx-input-invalid-border-color)}:host([data-user-invalid]:focus-within)::part(combobox){border-color:var(--cx-input-invalid-border-color);box-shadow:var(--cx-input-invalid-shadow)}.select{vertical-align:middle;flex:auto;width:100%;display:inline-flex;position:relative}.select::part(popup){z-index:var(--cx-z-index-dropdown)}.select[data-current-placement^=top]::part(popup){transform-origin:bottom}.select[data-current-placement^=bottom]::part(popup){transform-origin:top}.select__combobox{font-family:var(--cx-input-font-family);font-weight:var(--cx-input-font-weight);letter-spacing:var(--cx-input-letter-spacing);vertical-align:middle;cursor:pointer;transition:var(--cx-transition-fast) color, var(--cx-transition-fast) border, var(--cx-transition-fast) box-shadow, var(--cx-transition-fast) background-color;flex:1;justify-content:start;align-items:center;width:20ch;min-width:0;display:flex;position:relative;overflow:hidden}.select__display-input{width:100%;font:inherit;color:var(--cx-input-color);cursor:inherit;-webkit-appearance:none;text-overflow:ellipsis;background:0 0;border:none;margin:0;padding:0;transition:padding-top .2s ease-in-out;position:relative;overflow:hidden}:host([allow-freetext]) .input-container,:host([allow-freetext]) .select__display-input{cursor:text}:host([allow-freetext]) .select--disabled .input-container,:host([allow-freetext]) .select--disabled .select__display-input{cursor:default}.select__tags+.select__display-input{padding-top:var(--cx-spacing-2x-small)}.select__display-input--small{line-height:var(--cx-line-height-small)}.select__display-input--medium{line-height:var(--cx-line-height-medium)}.select__display-input--large{line-height:var(--cx-line-height-large)}.select__display-input--hidden{visibility:hidden;height:0;padding-top:0!important}.form-control--has-label .select__display-input{padding-top:var(--cx-spacing-x-small);padding-bottom:var(--cx-spacing-2x-small)}.select__display-input::placeholder{color:var(--cx-input-placeholder-color)}.select:not(.select--disabled):hover .select__display-input{color:var(--cx-input-color-hover)}.select:not(.select--disabled):hover .select__combobox{border-color:var(--cx-input-border-color-hover)}.select__display-input:focus{outline:none}.select__value-input{opacity:0;z-index:-1;width:100%;height:100%;margin:0;padding:0;position:absolute;top:0;left:0}.select__tags{flex-wrap:wrap;align-items:center;max-width:100%;display:flex}.form-control--has-label .select__tags{margin-top:var(--cx-spacing-x-small)}.select--small:not(.select--placeholder-visible) .select__tags,.select--medium:not(.select--placeholder-visible) .select__tags,.select--large:not(.select--placeholder-visible) .select__tags{min-height:var(--cx-line-height-medium)}.select__tags::slotted(cx-tag){cursor:pointer!important}.select--disabled .select__tags,.select--disabled .select__tags::slotted(cx-tag){cursor:default!important}.select__tag-wrapper{line-height:1}.select--standard .select__combobox{background-color:var(--cx-input-background-color);border:solid var(--cx-input-border-width) var(--cx-input-border-color)}.select--standard.select--disabled .select__combobox{background-color:var(--cx-input-background-color-disabled);border-color:var(--cx-input-border-color-disabled);color:var(--cx-input-color-disabled);opacity:.5;cursor:default;outline:none}.select--standard:not(.select--disabled).select--open .select__combobox,.select--standard:not(.select--disabled).select--focused .select__combobox{background-color:var(--cx-input-background-color-focus);border-color:var(--cx-input-border-color-focus)}.select--filled .select__combobox{background-color:var(--cx-input-filled-background-color);color:var(--cx-input-color);border:none}.select--filled:hover:not(.select--disabled) .select__combobox{background-color:var(--cx-input-filled-background-color-hover)}.select--filled.select--disabled .select__combobox{background-color:var(--cx-input-filled-background-color-disabled);opacity:.5;cursor:default}.select--filled:not(.select--disabled).select--open .select__combobox,.select--filled:not(.select--disabled).select--focused .select__combobox{background-color:var(--cx-input-filled-background-color-focus);outline:var(--cx-focus-ring)}.select--small .select__combobox{border-radius:var(--cx-input-border-radius-small);font-size:var(--cx-input-font-size-small);min-height:var(--cx-input-height-small);padding-block:0;padding-inline:var(--cx-input-spacing-small)}.form-control:not(.form-control--has-label) .select--small.select--multiple .select__combobox{padding-block:2px}.form-control:not(.form-control--has-label) .select--multiple .select__display-input{margin-top:0}.form-control:not(.form-control--has-label) .input-container{justify-content:center}.form-control:not(.form-control--has-label) .input-container .select__display-input{margin-top:0}.select--small .select__clear{margin-inline-start:var(--cx-input-spacing-small)}.select--small .select__prefix::slotted(*){margin-inline-end:var(--cx-input-spacing-small)}.select--small .select__tags{gap:2px}.select--medium .select__combobox{border-radius:var(--cx-input-border-radius-medium);font-size:var(--cx-input-font-size-small);min-height:var(--cx-input-height-medium);padding-block:0;padding-inline:var(--cx-input-spacing-medium)}.form-control:not(.form-control--has-label) .select--medium.select--multiple .select__combobox{padding-block:3px}.select--medium .select__clear{margin-inline-start:var(--cx-input-spacing-medium)}.select--medium .select__prefix::slotted(*){margin-inline-end:var(--cx-input-spacing-medium)}.select--medium .select__tags{gap:3px}.select--large .select__combobox{border-radius:var(--cx-input-border-radius-large);font-size:var(--cx-input-font-size-small);min-height:var(--cx-input-height-large);padding-block:0;padding-inline:var(--cx-input-spacing-large)}.form-control:not(.form-control--has-label) .select--large.select--multiple .select__combobox{padding-block:4px}.select--large .select__clear{margin-inline-start:var(--cx-input-spacing-large)}.select--large .select__prefix::slotted(*){margin-inline-end:var(--cx-input-spacing-large)}.select--large .select__tags{gap:4px}.select--pill.select--small .select__combobox{border-radius:var(--cx-input-height-small)}.select--pill.select--medium .select__combobox{border-radius:var(--cx-input-height-medium)}.select--pill.select--large .select__combobox{border-radius:var(--cx-input-height-large)}.select__prefix,.select__suffix{color:var(--cx-input-placeholder-color);flex:0;align-items:center;display:inline-flex}.select__clear{font-size:inherit;color:var(--cx-input-icon-color);transition:var(--cx-transition-fast) color;cursor:pointer;z-index:1;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.select__clear:hover{color:var(--cx-input-icon-color-hover)}.select__clear:focus{outline:none}.select__expand-icon{transition:var(--cx-transition-medium) rotate ease;rotate:0;font-size:var(--cx-font-size-large);flex:none;align-items:center;margin-inline-start:var(--cx-spacing-small);display:flex}.select--open .select__expand-icon{rotate:var(--cx-select-expand-icon-rotate-open,-180deg)}.select__listbox{font-family:var(--cx-font-sans);font-size:var(--cx-font-size-medium);font-weight:var(--cx-font-weight-regular);box-shadow:var(--cx-shadow-large);background:var(--cx-panel-background-color);border:solid var(--cx-panel-border-width) var(--cx-panel-border-color);border-radius:var(--cx-border-radius-large);padding-block:var(--cx-spacing-x-small);overscroll-behavior:none;max-width:var(--auto-size-available-width);max-height:var(--auto-size-available-height);padding-inline:0;display:block;position:relative;overflow:auto}.select__listbox ::slotted(cx-divider){--spacing:var(--cx-spacing-x-small);width:calc(100% - (var(--cx-spacing-x-small) * 2));margin-inline:auto}.select__listbox ::slotted(small){font-size:var(--cx-font-size-x-small);font-weight:var(--cx-font-weight-medium);line-height:var(--cx-line-height-x-small);color:var(--cx-color-neutral-600);padding-block:var(--cx-spacing-2x-small);padding-inline:var(--cx-spacing-small);display:block}.select__no-options{font-size:var(--cx-font-size-small);color:var(--cx-color-neutral-500);padding-block:var(--cx-spacing-2x-small);padding-inline:var(--cx-spacing-small);text-align:left;cursor:default;user-select:none;display:block}.input-container{flex-direction:column;flex:1;align-self:stretch;width:0;display:inline-flex;position:relative}.input-container__display-value{column-gap:var(--cx-spacing-small);row-gap:var(--cx-spacing-3x-small);flex-flow:wrap;width:100%;height:100%;display:flex}.form-control__label{pointer-events:none;width:fit-content;line-height:1;-webkit-transition:transform .2s ease-in-out;-moz-transition:transform .2s ease-in-out;transition:transform .2s ease-in-out;position:relative}.select--small .form-control__label{transform:translateY(calc(( var(--cx-input-height-small) + 1.25rem - var(--cx-input-font-size-small) ) / 2));margin:0}.select--medium .form-control__label{transform:translateY(calc(( var(--cx-input-height-medium) / 2 + 1rem - var(--cx-input-font-size-medium) )));margin:0}.select--large .form-control__label{transform:translateY(calc(( var(--cx-input-height-large) + 1rem - var(--cx-input-font-size-large) ) / 2));margin:0}.form-control--has-label .select--small{min-height:calc(var(--cx-input-height-small) + 1rem)}.form-control--has-label .select--medium{min-height:calc(var(--cx-input-height-medium) + 1rem)}.form-control--has-label .select--large{min-height:calc(var(--cx-input-height-large) + 1rem)}.form-control--has-label .select--focused .form-control__label,.form-control--has-label .select--placeholder-visible .form-control__label,.form-control--has-label .select:not(.select--empty) .form-control__label{transform:translateY(calc(var(--cx-spacing-2x-small) + var(--cx-spacing-3x-small)))}.select__listbox slot{flex-direction:column;display:flex}:host([data-cx-input-group__input--first]:not([data-cx-input-group__input--last])) .select__combobox{border-start-end-radius:0;border-end-end-radius:0}:host([data-cx-input-group__input--inner]) .select__combobox{border-radius:0}:host([data-cx-input-group__input--last]:not([data-cx-input-group__input--first])) .select__combobox{border-start-start-radius:0;border-end-start-radius:0}:host([data-cx-input-group__input]:not([data-cx-input-group__input--first])){margin-inline-start:calc(-1 * var(--cx-input-border-width))}:host([data-cx-input-group__input--hover]){z-index:1}:host([data-cx-input-group__input--focus]),:host([data-cx-input-group__input][checked]){z-index:2}`;
28
- var H = Object.defineProperty, q = Object.getOwnPropertyDescriptor, s = (t, e, o, n) => {
29
- for (var l = n > 1 ? void 0 : n ? q(e, o) : e, r = t.length - 1, c; r >= 0; r--)
25
+ import M from "./popup.js";
26
+ import N from "./spinner.js";
27
+ import R from "./tag.js";
28
+ const W = (t) => !(document.createElement(t.tagName).constructor === HTMLElement || customElements.get(t.tagName.toLowerCase())), H = B`:host{display:block}:host([data-user-invalid])::part(combobox){border-color:var(--cx-input-invalid-border-color)}:host([data-user-invalid]:focus-within)::part(combobox){border-color:var(--cx-input-invalid-border-color);box-shadow:var(--cx-input-invalid-shadow)}.select{vertical-align:middle;flex:auto;width:100%;display:inline-flex;position:relative}.select::part(popup){z-index:var(--cx-z-index-dropdown)}.select[data-current-placement^=top]::part(popup){transform-origin:bottom}.select[data-current-placement^=bottom]::part(popup){transform-origin:top}.select__combobox{font-family:var(--cx-input-font-family);font-weight:var(--cx-input-font-weight);letter-spacing:var(--cx-input-letter-spacing);vertical-align:middle;cursor:pointer;transition:var(--cx-transition-fast) color, var(--cx-transition-fast) border, var(--cx-transition-fast) box-shadow, var(--cx-transition-fast) background-color;flex:1;justify-content:start;align-items:center;width:20ch;min-width:0;display:flex;position:relative;overflow:hidden}.select__display-input{width:100%;font:inherit;color:var(--cx-input-color);cursor:inherit;-webkit-appearance:none;text-overflow:ellipsis;background:0 0;border:none;margin:0;padding:0;transition:padding-top .2s ease-in-out;position:relative;overflow:hidden}:host([allow-freetext]) .input-container,:host([allow-freetext]) .select__display-input{cursor:text}:host([allow-freetext]) .select--disabled .input-container,:host([allow-freetext]) .select--disabled .select__display-input{cursor:default}.select__tags+.select__display-input{padding-top:var(--cx-spacing-2x-small)}.select__display-input--small{line-height:var(--cx-line-height-small)}.select__display-input--medium{line-height:var(--cx-line-height-medium)}.select__display-input--large{line-height:var(--cx-line-height-large)}.select__display-input--hidden{visibility:hidden;height:0;padding-top:0!important}.form-control--has-label .select__display-input{padding-top:var(--cx-spacing-x-small);padding-bottom:var(--cx-spacing-2x-small)}.select__display-input::placeholder{color:var(--cx-input-placeholder-color)}.select:not(.select--disabled):hover .select__display-input{color:var(--cx-input-color-hover)}.select:not(.select--disabled):hover .select__combobox{border-color:var(--cx-input-border-color-hover)}.select__display-input:focus{outline:none}.select__value-input{opacity:0;z-index:-1;width:100%;height:100%;margin:0;padding:0;position:absolute;top:0;left:0}.select__tags{flex-wrap:wrap;align-items:center;max-width:100%;display:flex}.form-control--has-label .select__tags{margin-top:var(--cx-spacing-x-small)}.select--small:not(.select--placeholder-visible) .select__tags,.select--medium:not(.select--placeholder-visible) .select__tags,.select--large:not(.select--placeholder-visible) .select__tags{min-height:var(--cx-line-height-medium)}.select__tags::slotted(cx-tag){cursor:pointer!important}.select--disabled .select__tags,.select--disabled .select__tags::slotted(cx-tag){cursor:default!important}.select__tag-wrapper{line-height:1}.select--standard .select__combobox{background-color:var(--cx-input-background-color);border:solid var(--cx-input-border-width) var(--cx-input-border-color)}.select--standard.select--disabled .select__combobox{background-color:var(--cx-input-background-color-disabled);border-color:var(--cx-input-border-color-disabled);color:var(--cx-input-color-disabled);opacity:.5;cursor:default;outline:none}.select--standard:not(.select--disabled).select--open .select__combobox,.select--standard:not(.select--disabled).select--focused .select__combobox{background-color:var(--cx-input-background-color-focus);border-color:var(--cx-input-border-color-focus)}.select--filled .select__combobox{background-color:var(--cx-input-filled-background-color);color:var(--cx-input-color);border:none}.select--filled:hover:not(.select--disabled) .select__combobox{background-color:var(--cx-input-filled-background-color-hover)}.select--filled.select--disabled .select__combobox{background-color:var(--cx-input-filled-background-color-disabled);opacity:.5;cursor:default}.select--filled:not(.select--disabled).select--open .select__combobox,.select--filled:not(.select--disabled).select--focused .select__combobox{background-color:var(--cx-input-filled-background-color-focus);outline:var(--cx-focus-ring)}.select--small .select__combobox{border-radius:var(--cx-input-border-radius-small);font-size:var(--cx-input-font-size-small);min-height:var(--cx-input-height-small);padding-block:0;padding-inline:var(--cx-input-spacing-small)}.form-control:not(.form-control--has-label) .select--small.select--multiple .select__combobox{padding-block:2px}.form-control:not(.form-control--has-label) .select--multiple .select__display-input{margin-top:0}.form-control:not(.form-control--has-label) .input-container{justify-content:center}.form-control:not(.form-control--has-label) .input-container .select__display-input{margin-top:0}.select--small .select__clear{margin-inline-start:var(--cx-input-spacing-small)}.select--small .select__prefix::slotted(*){margin-inline-end:var(--cx-input-spacing-small)}.select--small .select__tags{gap:2px}.select--medium .select__combobox{border-radius:var(--cx-input-border-radius-medium);font-size:var(--cx-input-font-size-small);min-height:var(--cx-input-height-medium);padding-block:0;padding-inline:var(--cx-input-spacing-medium)}.form-control:not(.form-control--has-label) .select--medium.select--multiple .select__combobox{padding-block:3px}.select--medium .select__clear{margin-inline-start:var(--cx-input-spacing-medium)}.select--medium .select__prefix::slotted(*){margin-inline-end:var(--cx-input-spacing-medium)}.select--medium .select__tags{gap:3px}.select--large .select__combobox{border-radius:var(--cx-input-border-radius-large);font-size:var(--cx-input-font-size-small);min-height:var(--cx-input-height-large);padding-block:0;padding-inline:var(--cx-input-spacing-large)}.form-control:not(.form-control--has-label) .select--large.select--multiple .select__combobox{padding-block:4px}.select--large .select__clear{margin-inline-start:var(--cx-input-spacing-large)}.select--large .select__prefix::slotted(*){margin-inline-end:var(--cx-input-spacing-large)}.select--large .select__tags{gap:4px}.select--pill.select--small .select__combobox{border-radius:var(--cx-input-height-small)}.select--pill.select--medium .select__combobox{border-radius:var(--cx-input-height-medium)}.select--pill.select--large .select__combobox{border-radius:var(--cx-input-height-large)}.select__prefix,.select__suffix{color:var(--cx-input-placeholder-color);flex:0;align-items:center;display:inline-flex}.select__clear{font-size:inherit;color:var(--cx-input-icon-color);transition:var(--cx-transition-fast) color;cursor:pointer;z-index:1;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.select__clear:hover{color:var(--cx-input-icon-color-hover)}.select__clear:focus{outline:none}.select__expand-icon{transition:var(--cx-transition-medium) rotate ease;rotate:0;font-size:var(--cx-font-size-large);flex:none;align-items:center;margin-inline-start:var(--cx-spacing-small);display:flex}.select--open .select__expand-icon{rotate:var(--cx-select-expand-icon-rotate-open,-180deg)}.select__listbox{font-family:var(--cx-font-sans);font-size:var(--cx-font-size-medium);font-weight:var(--cx-font-weight-regular);box-shadow:var(--cx-shadow-large);background:var(--cx-panel-background-color);border:solid var(--cx-panel-border-width) var(--cx-panel-border-color);border-radius:var(--cx-border-radius-large);padding-block:var(--cx-spacing-x-small);overscroll-behavior:none;max-width:var(--auto-size-available-width);max-height:var(--auto-size-available-height);padding-inline:0;display:block;position:relative;overflow:auto}.select__listbox ::slotted(cx-divider){--spacing:var(--cx-spacing-x-small);width:calc(100% - (var(--cx-spacing-x-small) * 2));margin-inline:auto}.select__listbox ::slotted(small){font-size:var(--cx-font-size-x-small);font-weight:var(--cx-font-weight-medium);line-height:var(--cx-line-height-x-small);color:var(--cx-color-neutral-600);padding-block:var(--cx-spacing-2x-small);padding-inline:var(--cx-spacing-small);display:block}.select__no-options{font-size:var(--cx-font-size-small);color:var(--cx-color-neutral-500);padding-block:var(--cx-spacing-2x-small);padding-inline:var(--cx-spacing-small);text-align:left;cursor:default;user-select:none;display:block}.input-container{flex-direction:column;flex:1;align-self:stretch;width:0;display:inline-flex;position:relative}.input-container__display-value{column-gap:var(--cx-spacing-small);row-gap:var(--cx-spacing-3x-small);flex-flow:wrap;width:100%;height:100%;display:flex}.form-control__label{pointer-events:none;width:fit-content;line-height:1;-webkit-transition:transform .2s ease-in-out;-moz-transition:transform .2s ease-in-out;transition:transform .2s ease-in-out;position:relative}.select--small .form-control__label{transform:translateY(calc(( var(--cx-input-height-small) + 1.25rem - var(--cx-input-font-size-small) ) / 2));margin:0}.select--medium .form-control__label{transform:translateY(calc(( var(--cx-input-height-medium) / 2 + 1rem - var(--cx-input-font-size-medium) )));margin:0}.select--large .form-control__label{transform:translateY(calc(( var(--cx-input-height-large) + 1rem - var(--cx-input-font-size-large) ) / 2));margin:0}.form-control--has-label .select--small{min-height:calc(var(--cx-input-height-small) + 1rem)}.form-control--has-label .select--medium{min-height:calc(var(--cx-input-height-medium) + 1rem)}.form-control--has-label .select--large{min-height:calc(var(--cx-input-height-large) + 1rem)}.form-control--has-label .select--focused .form-control__label,.form-control--has-label .select--placeholder-visible .form-control__label,.form-control--has-label .select:not(.select--empty) .form-control__label{transform:translateY(calc(var(--cx-spacing-2x-small) + var(--cx-spacing-3x-small)))}.select__listbox slot{flex-direction:column;display:flex}:host([data-cx-input-group__input--first]:not([data-cx-input-group__input--last])) .select__combobox{border-start-end-radius:0;border-end-end-radius:0}:host([data-cx-input-group__input--inner]) .select__combobox{border-radius:0}:host([data-cx-input-group__input--last]:not([data-cx-input-group__input--first])) .select__combobox{border-start-start-radius:0;border-end-start-radius:0}:host([data-cx-input-group__input]:not([data-cx-input-group__input--first])){margin-inline-start:calc(-1 * var(--cx-input-border-width))}:host([data-cx-input-group__input--hover]){z-index:1}:host([data-cx-input-group__input--focus]),:host([data-cx-input-group__input][checked]){z-index:2}`;
29
+ var q = Object.defineProperty, j = Object.getOwnPropertyDescriptor, s = (t, e, o, n) => {
30
+ for (var l = n > 1 ? void 0 : n ? j(e, o) : e, r = t.length - 1, c; r >= 0; r--)
30
31
  (c = t[r]) && (l = (n ? c(e, o, l) : c(l)) || l);
31
- return n && l && H(e, o, l), l;
32
+ return n && l && q(e, o, l), l;
32
33
  };
33
34
  let i = class extends S {
34
35
  constructor() {
35
- super(...arguments), this.formControlController = new $(this, {
36
+ super(...arguments), this.formControlController = new L(this, {
36
37
  assumeInteractionOn: ["cx-input"]
37
- }), this.hasSlotController = new V(
38
+ }), this.hasSlotController = new E(
38
39
  this,
39
40
  "help-text",
40
41
  "label"
41
- ), this.localize = new L(this), this.typeToSelectString = "", this.hasFocus = !1, this.displayLabel = "", this.selectedOptions = [], this.name = "", this.value = "", this.fallbackOptionValue = "", this.defaultValue = "", this.size = "medium", this.placeholder = "", this.allowFreetext = !1, this.multiple = !1, this.maxOptionsVisible = 3, this.disabled = !1, this.clearable = !1, this.open = !1, this.hoist = !1, this.noFlip = !1, this.freeWidth = !1, this.autosizePadding = 10, this.filled = !1, this.pill = !1, this.label = "", this.placement = "bottom", this.helpText = "", this.form = void 0, this.required = !1, this.useTag = !1, this.noSelectOnEnter = !1, this.noResetCurrent = !1, this.noDropdown = !1, this.loading = !1, this.getTag = (t) => {
42
+ ), this.localize = new F(this), this.typeToSelectString = "", this.hasFocus = !1, this.displayLabel = "", this.selectedOptions = [], this.name = "", this.value = "", this.fallbackOptionValue = "", this.defaultValue = "", this.size = "medium", this.placeholder = "", this.allowFreetext = !1, this.multiple = !1, this.maxOptionsVisible = 3, this.disabled = !1, this.clearable = !1, this.open = !1, this.hoist = !1, this.noFlip = !1, this.freeWidth = !1, this.autosizePadding = 10, this.filled = !1, this.pill = !1, this.label = "", this.placement = "bottom", this.helpText = "", this.form = void 0, this.required = !1, this.useTag = !1, this.noSelectOnEnter = !1, this.noResetCurrent = !1, this.noDropdown = !1, this.loading = !1, this.getTag = (t) => {
42
43
  const e = this.hasSlotController.test("label"), n = (this.label ? !0 : !!e) ? this.size === "large" ? "medium" : "small" : this.size, l = (r) => {
43
44
  this.handleTagRemove(r, t);
44
45
  };
@@ -55,8 +56,10 @@ let i = class extends S {
55
56
  if (!(!t || !(t instanceof d)))
56
57
  return t.disabled;
57
58
  }, this.stayOpenOnSelect = !1, this.closeOnSelect = !1, this.forceOnChange = !1, this.allowDefaultMouseDown = !1, this.noOptionText = "", this.handleDocumentFocusIn = (t) => {
58
- const e = t.composedPath();
59
- this && !e.includes(this) && !this.stayOpenOnSelect && this.hide();
59
+ !t.composedPath().includes(this) && !this.stayOpenOnSelect && requestAnimationFrame(() => {
60
+ const o = I();
61
+ !(this.contains(o ?? null) || this.shadowRoot?.contains(o ?? null)) && this.open && this.hide();
62
+ });
60
63
  }, this.handleDocumentKeyDown = (t) => {
61
64
  const e = t.target, o = e.closest(".select__clear") !== null, n = e.closest("cx-icon-button") !== null;
62
65
  if (!(o || n)) {
@@ -294,7 +297,7 @@ let i = class extends S {
294
297
  return;
295
298
  o.push(c);
296
299
  const h = r.tagName.toLowerCase();
297
- if (!R(r) && !customElements.get(h)) {
300
+ if (!W(r) && !customElements.get(h)) {
298
301
  customElements.whenDefined(h).then(() => this.handleDefaultSlotChange());
299
302
  return;
300
303
  }
@@ -304,7 +307,7 @@ let i = class extends S {
304
307
  e,
305
308
  t
306
309
  );
307
- this.setSelectedOptions(n, l ? this.value : void 0);
310
+ this.setSelectedOptions(n, l ? this.value : void 0), this.hasFocus && !this.open && !this.disabled && t.length > 0 && this.show();
308
311
  }
309
312
  handleTagRemove(t, e) {
310
313
  t.stopPropagation(), this.disabled || (this.toggleOptionSelection(e, !1), this.updateComplete.then(() => {
@@ -390,11 +393,11 @@ let i = class extends S {
390
393
  return this.selectedOptions.map((n, l) => {
391
394
  if (l < this.maxOptionsVisible || this.maxOptionsVisible <= 0) {
392
395
  const r = this.getTag(n, l);
393
- return u`${typeof r == "string" ? A(r) : r}`;
396
+ return u`${typeof r == "string" ? P(r) : r}`;
394
397
  } else if (l === this.maxOptionsVisible)
395
398
  return u`<cx-tag ?pill=${this.pill} size=${o}>
396
399
  +${this.selectedOptions.length - l}</cx-tag>`;
397
- return B;
400
+ return A;
398
401
  });
399
402
  }
400
403
  handleInvalid(t) {
@@ -423,7 +426,7 @@ let i = class extends S {
423
426
  const { keyframes: t, options: e } = _(this, "select.show", {
424
427
  dir: this.localize.dir()
425
428
  });
426
- await y(this.popup.popup, t, e), this.currentOption && F(this.currentOption, this.listbox, "vertical", "auto"), this.emit("cx-after-show");
429
+ await y(this.popup.popup, t, e), this.currentOption && V(this.currentOption, this.listbox, "vertical", "auto"), this.emit("cx-after-show");
427
430
  } else {
428
431
  this.emit("cx-hide"), this.removeOpenListeners(), await x(this);
429
432
  const { keyframes: t, options: e } = _(this, "select.hide", {
@@ -521,14 +524,14 @@ let i = class extends S {
521
524
  i.styles = [
522
525
  k,
523
526
  D,
524
- W
527
+ H
525
528
  ];
526
529
  i.dependencies = {
527
- "cx-icon": P,
530
+ "cx-icon": U,
528
531
  "cx-line-clamp": w,
529
- "cx-popup": U,
530
- "cx-spinner": M,
531
- "cx-tag": N,
532
+ "cx-popup": M,
533
+ "cx-spinner": N,
534
+ "cx-tag": R,
532
535
  "cx-typography": C
533
536
  };
534
537
  s([
@@ -573,7 +576,7 @@ s([
573
576
  a({ attribute: "fallback-option-value", type: String })
574
577
  ], i.prototype, "fallbackOptionValue", 2);
575
578
  s([
576
- I()
579
+ $()
577
580
  ], i.prototype, "defaultValue", 2);
578
581
  s([
579
582
  a({ reflect: !0 })