@orangelogic/design-system 5.3.0 → 5.5.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 (156) hide show
  1. package/library/chunks/{alert.D4RTWtiS.js → alert.BTx5WrMW.js} +2 -2
  2. package/library/chunks/{array-line-clamp.CFndztdp.js → array-line-clamp.CSD5TJwY.js} +2 -2
  3. package/library/chunks/{asset-link-format.BbDrlRL5.js → asset-link-format.B6G_kkxY.js} +10 -10
  4. package/library/chunks/{audio.jEmfjIWU.js → audio.D-RNp6pB.js} +2 -2
  5. package/library/chunks/{bicolor-picker.DoLf8yCy.js → bicolor-picker.Di6_ouh7.js} +1 -1
  6. package/library/chunks/{block-width.nVsYTBw6.js → block-width.CxG0o-ys.js} +34 -34
  7. package/library/chunks/{border-input-group.CQ-BZvjI.js → border-input-group.Bhqm-2v3.js} +3 -3
  8. package/library/chunks/{breadcrumb.8_0yuiOI.js → breadcrumb.DGEXPv4Z.js} +1 -1
  9. package/library/chunks/{button.VUFrOP0u.js → button.Cb05UUhX.js} +2 -2
  10. package/library/chunks/{color-picker.C1CCN1nS.js → color-picker.LH11XDqS.js} +10 -10
  11. package/library/chunks/{color-swatch-group.BAIZMur5.js → color-swatch-group.Lbz2NFLj.js} +18 -18
  12. package/library/chunks/{color-swatch.93BgkncM.js → color-swatch.Vs0CjK_Q.js} +3 -3
  13. package/library/chunks/{config-manager.DijEOQly.js → config-manager.BxJjdpW6.js} +27 -27
  14. package/library/chunks/{configs-controller.B91MEy-4.js → configs-controller.DGZdhoAi.js} +37 -8
  15. package/library/chunks/{confirm-popover.BRYw_62p.js → confirm-popover.iC32B-4U.js} +4 -4
  16. package/library/chunks/{copy-button.BVuGJ0pX.js → copy-button.BRnl4ixX.js} +2 -2
  17. package/library/chunks/{corner-position-input-group.zh-KziJB.js → corner-position-input-group.CKnXvRRm.js} +4 -4
  18. package/library/chunks/{date-calendar.D-LYjKFX.js → date-calendar.DGxKZpwF.js} +2 -2
  19. package/library/chunks/{details.BXMJk9oy.js → details.LeCmn59N.js} +1 -1
  20. package/library/chunks/{dialog.C21jNK4r.js → dialog.CwyicAWn.js} +3 -3
  21. package/library/chunks/{document-viewer.CZ2Fhfs7.js → document-viewer.CiA9XG0Q.js} +14 -14
  22. package/library/chunks/{dot-pagination.BdG_9NTv.js → dot-pagination.txks7Yj7.js} +2 -2
  23. package/library/chunks/{drawer.DM1zAUgP.js → drawer.DS7ciPxP.js} +2 -2
  24. package/library/chunks/{dropdown.DG5U64BM.js → dropdown.DCt5NZdG.js} +4 -4
  25. package/library/chunks/{dynamic-select.hfD2F6e4.js → dynamic-select.BL-GUIfe.js} +5 -5
  26. package/library/chunks/{e-chart.BtYiI1g7.js → e-chart.Ccc30xOG.js} +2 -2
  27. package/library/chunks/{element-clamp.Bmn_oyV6.js → element-clamp.BeIjf7p2.js} +2 -2
  28. package/library/chunks/{file-on-demand.DoiRhsJ7.js → file-on-demand.DXK2a3a7.js} +16 -16
  29. package/library/chunks/{folder-select.DrM6sqAw.js → folder-select.BLXtCINu.js} +7 -7
  30. package/library/chunks/{format-time.BZ7jIbu7.js → format-time.D1IsBp2N.js} +1 -1
  31. package/library/chunks/{header.aHKslWaJ.js → header.CYB8JxSb.js} +2 -2
  32. package/library/chunks/{i18n.qIMzqW-F.js → i18n.D8Tm7ans.js} +1 -0
  33. package/library/chunks/{icon-button.DTyZ7Nwc.js → icon-button.XvDdPL62.js} +2 -2
  34. package/library/chunks/{iframe.DU9XEE6J.js → iframe.DuGe-czx.js} +1 -1
  35. package/library/chunks/{image-comparer.yDCQTe-Z.js → image-comparer.DdAifPpS.js} +1 -1
  36. package/library/chunks/{image.C6ffajdy.js → image.FF2m5_FZ.js} +2 -2
  37. package/library/chunks/{input.1CW0nLBL.js → input.DquWjNQZ.js} +1 -1
  38. package/library/chunks/{line-clamp.BDFNqZZ8.js → line-clamp.DHAS1At9.js} +2 -2
  39. package/library/chunks/{markdown.BBOqRlzE.js → markdown.Ctgg0Jzr.js} +2 -2
  40. package/library/chunks/{masonry.BrOEearB.js → masonry.DrqmhHt7.js} +3 -3
  41. package/library/chunks/{menu-item.B6Lww_R9.js → menu-item.uKRikM6E.js} +3 -3
  42. package/library/chunks/{menu.DgRAUDo_.js → menu.CdMdpylo.js} +2 -2
  43. package/library/chunks/{option.DXo-QZhI.js → option.CAOhE2QT.js} +1 -1
  44. package/library/chunks/{padding-input-group.tjIBMptQ.js → padding-input-group.C8aVYReF.js} +1 -1
  45. package/library/chunks/{pagination.CVVtlgOf.js → pagination.BB16qmYV.js} +7 -7
  46. package/library/chunks/{popup.jQD3De0E.js → popup.BewXcW7J.js} +1 -1
  47. package/library/chunks/{position-picker.DW9YTney.js → position-picker.DDv6ZrTD.js} +1 -1
  48. package/library/chunks/{progress-bar.2YrCjo_K.js → progress-bar.C2IoWGmY.js} +1 -1
  49. package/library/chunks/{progress-ring.D50j7Uhy.js → progress-ring.BItEsQZc.js} +1 -1
  50. package/library/chunks/{radio-card.C_GVggMn.js → radio-card.C-6E-Ku-.js} +1 -1
  51. package/library/chunks/{range.C14Kx5Ln.js → range.BHOqG_eC.js} +2 -2
  52. package/library/chunks/{rating.B6WhmtiT.js → rating.R_1c-zO9.js} +1 -1
  53. package/library/chunks/{relative-time.BF48GQmV.js → relative-time.CkoVzoko.js} +1 -1
  54. package/library/chunks/{select.D-QQK2rH.js → select.BqBBPc5B.js} +62 -47
  55. package/library/chunks/{shadow-input-group.Ch6vHKZp.js → shadow-input-group.DtA_r_F9.js} +2 -2
  56. package/library/chunks/{share-option-list.DZHvOfV4.js → share-option-list.BPwex4CF.js} +2 -2
  57. package/library/chunks/{sidebar.BftNiyQt.js → sidebar.BRE2DBbj.js} +3 -3
  58. package/library/chunks/{size-input-group.CbsKvFaO.js → size-input-group.BUL7nmT-.js} +5 -5
  59. package/library/chunks/{spinner.CCSVc6Z6.js → spinner.It9UUFro.js} +1 -1
  60. package/library/chunks/{split-panel.CRHvHDiv.js → split-panel.R06Wq0e3.js} +1 -1
  61. package/library/chunks/{src.DEO8lR91.js → src.BfKvNYvD.js} +47 -47
  62. package/library/chunks/{src.D0_s2pWf.js → src.VZSx3KzE.js} +1 -1
  63. package/library/chunks/{step.CiCIM79l.js → step.BeU-y9Lc.js} +3 -3
  64. package/library/chunks/{stepper-wizard.BKSPLzfU.js → stepper-wizard.CoyuZA8N.js} +2 -2
  65. package/library/chunks/{stepper.r0k2sIAi.js → stepper.BzYqJ-G5.js} +1 -1
  66. package/library/chunks/{tab-group.B6O3pBw0.js → tab-group.CWN6PIGF.js} +840 -839
  67. package/library/chunks/{tab.DHblc3F_.js → tab.BQT2tP4A.js} +3 -3
  68. package/library/chunks/{tag.Bp7R2CeG.js → tag.bP-tedJL.js} +3 -3
  69. package/library/chunks/{tooltip.C11omEOs.js → tooltip.Dz_kkD4H.js} +2 -2
  70. package/library/chunks/{tree.CpN2Va5s.js → tree.C3RZdwlq.js} +3 -3
  71. package/library/chunks/{typeface.oJr92CGd.js → typeface.B7w0N2Fz.js} +3 -3
  72. package/library/chunks/{video.CtWiwJj6.js → video.XjelzwKX.js} +3 -3
  73. package/library/components/alert.js +1 -1
  74. package/library/components/array-line-clamp.js +1 -1
  75. package/library/components/asset-link-format.js +1 -1
  76. package/library/components/atoms.js +48 -48
  77. package/library/components/audio.js +1 -1
  78. package/library/components/bicolor-picker.js +1 -1
  79. package/library/components/border-input-group.js +1 -1
  80. package/library/components/breadcrumb.js +1 -1
  81. package/library/components/button.js +1 -1
  82. package/library/components/color-picker.js +1 -1
  83. package/library/components/color-swatch-group.js +1 -1
  84. package/library/components/color-swatch.js +1 -1
  85. package/library/components/confirm-popover.js +1 -1
  86. package/library/components/copy-button.js +1 -1
  87. package/library/components/corner-position-input-group.js +1 -1
  88. package/library/components/date-calendar.js +1 -1
  89. package/library/components/details.js +1 -1
  90. package/library/components/dialog.js +1 -1
  91. package/library/components/document-viewer.js +1 -1
  92. package/library/components/dot-pagination.js +1 -1
  93. package/library/components/drawer.js +1 -1
  94. package/library/components/dropdown.js +1 -1
  95. package/library/components/dynamic-select.js +1 -1
  96. package/library/components/e-chart.js +1 -1
  97. package/library/components/element-clamp.js +1 -1
  98. package/library/components/file-on-demand.js +1 -1
  99. package/library/components/folder-select.js +1 -1
  100. package/library/components/format-bytes.js +1 -1
  101. package/library/components/format-date.js +1 -1
  102. package/library/components/format-number.js +1 -1
  103. package/library/components/format-time.js +1 -1
  104. package/library/components/header.js +1 -1
  105. package/library/components/icon-button.js +1 -1
  106. package/library/components/iframe.js +1 -1
  107. package/library/components/image-comparer.js +1 -1
  108. package/library/components/image.js +1 -1
  109. package/library/components/input.js +1 -1
  110. package/library/components/line-clamp.js +1 -1
  111. package/library/components/markdown.js +1 -1
  112. package/library/components/masonry.js +1 -1
  113. package/library/components/menu-item.js +1 -1
  114. package/library/components/menu.js +1 -1
  115. package/library/components/molecules.js +16 -16
  116. package/library/components/option.js +1 -1
  117. package/library/components/organisms.js +3 -3
  118. package/library/components/padding-input-group.js +1 -1
  119. package/library/components/pagination.js +1 -1
  120. package/library/components/popup.js +1 -1
  121. package/library/components/position-picker.js +1 -1
  122. package/library/components/progress-bar.js +1 -1
  123. package/library/components/progress-ring.js +1 -1
  124. package/library/components/radio-card.js +1 -1
  125. package/library/components/range.js +1 -1
  126. package/library/components/rating.js +1 -1
  127. package/library/components/relative-time.js +1 -1
  128. package/library/components/select.js +1 -1
  129. package/library/components/shadow-input-group.js +1 -1
  130. package/library/components/share-option-list.js +1 -1
  131. package/library/components/sidebar.js +1 -1
  132. package/library/components/size-input-group.js +1 -1
  133. package/library/components/spinner.js +1 -1
  134. package/library/components/split-panel.js +1 -1
  135. package/library/components/step.js +1 -1
  136. package/library/components/stepper-wizard.js +1 -1
  137. package/library/components/stepper.js +1 -1
  138. package/library/components/tab-group.js +1 -1
  139. package/library/components/tab.js +1 -1
  140. package/library/components/tag.js +1 -1
  141. package/library/components/tooltip.js +1 -1
  142. package/library/components/tree-item.js +1 -1
  143. package/library/components/tree.js +1 -1
  144. package/library/components/typeface.js +1 -1
  145. package/library/components/types.js +72 -72
  146. package/library/components/video.js +1 -1
  147. package/library/package.json +1 -1
  148. package/library/packages/atoms/src/components/select/select.d.ts +6 -0
  149. package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +5 -0
  150. package/library/packages/organisms/src/content-builder/blocks/column-group/column-group.d.ts +7 -0
  151. package/library/packages/organisms/src/content-builder/configs/column-group.d.ts +1 -0
  152. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +1 -0
  153. package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
  154. package/library/react-web-component.d.ts +12 -0
  155. package/library/utils.js +2 -2
  156. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { c as e, d as t } from "./lit.CyJqR2kf.js";
2
2
  import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as o } from "./component.styles.0xM1ZmBs.js";
4
4
  import { t as s } from "./custom-element.BEMYNDK1.js";
5
- import { t as c } from "./i18n.qIMzqW-F.js";
5
+ import { t as c } from "./i18n.D8Tm7ans.js";
6
6
  import { t as l } from "./class-map.D8nsNOVJ.js";
7
7
  import { t as u } from "./if-defined.B29V_rEp.js";
8
8
  import { t as d } from "./style-map.DPGQIxip.js";
@@ -3,7 +3,7 @@ import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtd
3
3
  import { t as s } from "./query.B1yi7t71.js";
4
4
  import { t as c } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as l } from "./custom-element.BEMYNDK1.js";
6
- import { t as u } from "./i18n.qIMzqW-F.js";
6
+ import { t as u } from "./i18n.D8Tm7ans.js";
7
7
  //#region ../../packages/atoms/src/components/progress-ring/progress-ring.styles.ts
8
8
  var d = t`:host{--size:128px;--track-width:4px;--track-color:var(--cx-color-neutral-200);--indicator-width:var(--track-width);--indicator-color:var(--cx-color-primary);--indicator-transition-duration:.35s;display:inline-flex}.progress-ring{justify-content:center;align-items:center;display:inline-flex;position:relative}.progress-ring__image{width:var(--size);height:var(--size);transform-origin:50%;rotate:-90deg}.progress-ring__track,.progress-ring__indicator{--radius:calc(var(--size) / 2 - max(var(--track-width), var(--indicator-width)) * .5);--circumference:calc(var(--radius) * 2 * 3.14159);fill:none;r:var(--radius);cx:calc(var(--size) / 2);cy:calc(var(--size) / 2)}.progress-ring__track{stroke:var(--track-color);stroke-width:var(--track-width)}.progress-ring__indicator{stroke:var(--indicator-color);stroke-width:var(--indicator-width);stroke-linecap:round;transition-property:stroke-dashoffset;transition-duration:var(--indicator-transition-duration);stroke-dasharray:var(--circumference) var(--circumference);stroke-dashoffset:calc(var(--circumference) - var(--percentage) * var(--circumference))}.progress-ring__label{text-align:center;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}`, f = class extends o {
9
9
  constructor(...e) {
@@ -6,7 +6,7 @@ import { t as l } from "./custom-element.BEMYNDK1.js";
6
6
  import { t as u } from "./slot.CZUlACxT.js";
7
7
  import { t as d } from "./watch.Ub5r8btz.js";
8
8
  import { t as f } from "./class-map.D8nsNOVJ.js";
9
- import { t as p } from "./line-clamp.BDFNqZZ8.js";
9
+ import { t as p } from "./line-clamp.DHAS1At9.js";
10
10
  import { t as m } from "./card.3c-X4hqR.js";
11
11
  import { t as h } from "./radio.BmN7pFIX.js";
12
12
  //#region ../../packages/atoms/src/components/radio-card/radio-card.styles.ts
@@ -4,7 +4,7 @@ import { t as s } from "./event-options.DmLrpUIg.js";
4
4
  import { t as c } from "./query.B1yi7t71.js";
5
5
  import { t as l } from "./component.styles.0xM1ZmBs.js";
6
6
  import { t as u } from "./custom-element.BEMYNDK1.js";
7
- import { t as d } from "./i18n.qIMzqW-F.js";
7
+ import { t as d } from "./i18n.D8Tm7ans.js";
8
8
  import { t as f } from "./slot.CZUlACxT.js";
9
9
  import { t as p } from "./watch.Ub5r8btz.js";
10
10
  import { t as m } from "./class-map.D8nsNOVJ.js";
@@ -13,7 +13,7 @@ import { t as g } from "./style-map.DPGQIxip.js";
13
13
  import { t as _ } from "./debounce.Ci-xdsHE.js";
14
14
  import { t as v } from "./form.ChOu6BIn.js";
15
15
  import { t as y } from "./resize-observer.D9EHlnZI.js";
16
- import { t as b } from "./tooltip.C11omEOs.js";
16
+ import { t as b } from "./tooltip.Dz_kkD4H.js";
17
17
  import { t as x } from "./form-control.styles.Cec6lJbi.js";
18
18
  import { t as S } from "./default-value.opqQgoRT.js";
19
19
  import { t as C } from "./live.DBO71pfx.js";
@@ -4,7 +4,7 @@ import { t as s } from "./event-options.DmLrpUIg.js";
4
4
  import { t as c } from "./query.B1yi7t71.js";
5
5
  import { t as l } from "./component.styles.0xM1ZmBs.js";
6
6
  import { t as u } from "./custom-element.BEMYNDK1.js";
7
- import { t as d } from "./i18n.qIMzqW-F.js";
7
+ import { t as d } from "./i18n.D8Tm7ans.js";
8
8
  import { t as f } from "./watch.Ub5r8btz.js";
9
9
  import { t as p } from "./class-map.D8nsNOVJ.js";
10
10
  import { t as m } from "./icon.CeQpEaQz.js";
@@ -2,7 +2,7 @@ import { c as e, d as t } from "./lit.CyJqR2kf.js";
2
2
  import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as s } from "./component.styles.0xM1ZmBs.js";
4
4
  import { t as c } from "./custom-element.BEMYNDK1.js";
5
- import { t as l } from "./i18n.qIMzqW-F.js";
5
+ import { t as l } from "./i18n.D8Tm7ans.js";
6
6
  //#region ../../packages/atoms/src/components/relative-time/relative-time.styles.ts
7
7
  var u = t`:host{display:contents}.relative-time{color:var(--cx-relative-time-color,inherit);font-size:var(--cx-relative-time-font-size,inherit);font-weight:var(--cx-relative-time-font-weight,inherit)}`, d = [
8
8
  {
@@ -1,11 +1,11 @@
1
1
  import { c as e, d as t, r as n } from "./lit.CyJqR2kf.js";
2
2
  import { a as r, i, n as a, r as o, t as s } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as c } from "./query.B1yi7t71.js";
4
- import { t as l } from "./popup.jQD3De0E.js";
4
+ import { t as l } from "./popup.BewXcW7J.js";
5
5
  import { t as u } from "./component.styles.0xM1ZmBs.js";
6
6
  import { n as d, o as f, t as p } from "./event.C11S4obG.js";
7
7
  import { t as m } from "./custom-element.BEMYNDK1.js";
8
- import { t as h } from "./i18n.qIMzqW-F.js";
8
+ import { t as h } from "./i18n.D8Tm7ans.js";
9
9
  import { t as g } from "./slot.CZUlACxT.js";
10
10
  import { t as _ } from "./watch.Ub5r8btz.js";
11
11
  import { t as v } from "./class-map.D8nsNOVJ.js";
@@ -13,23 +13,23 @@ import { r as y, t as b } from "./animation-registry.DKd2AOcC.js";
13
13
  import { t as x } from "./if-defined.B29V_rEp.js";
14
14
  import { t as S } from "./when.BUskJLtZ.js";
15
15
  import { t as C } from "./icon.CeQpEaQz.js";
16
- import { t as w } from "./spinner.CCSVc6Z6.js";
16
+ import { t as w } from "./spinner.It9UUFro.js";
17
17
  import { a as T, o as E } from "./string.TY0RTPc8.js";
18
18
  import { t as D } from "./form.ChOu6BIn.js";
19
- import { t as O } from "./line-clamp.BDFNqZZ8.js";
20
- import { t as k } from "./tag.Bp7R2CeG.js";
19
+ import { t as O } from "./line-clamp.DHAS1At9.js";
20
+ import { t as k } from "./tag.bP-tedJL.js";
21
21
  import { t as A } from "./typography.B0mkhqTB.js";
22
22
  import { t as j } from "./form-control.styles.Cec6lJbi.js";
23
23
  import { t as M } from "./default-value.opqQgoRT.js";
24
24
  import { n as N } from "./active-elements.Tk45XSNQ.js";
25
- import { t as P } from "./option.DXo-QZhI.js";
25
+ import { t as P } from "./option.CAOhE2QT.js";
26
26
  import { n as F } from "./scroll.CEH_a4pm.js";
27
27
  import { t as I } from "./user-agent.D2bRhUeS.js";
28
28
  import { t as L } from "./unsafe-html.Cb838aX7.js";
29
29
  //#region ../../packages/atoms/src/utilities/type-check.ts
30
30
  var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement || customElements.get(e.tagName.toLowerCase())), z = t`: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(--select-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}.select__options{display:contents}.select__footer{display:none}.select__listbox--has-footer{flex-direction:column;display:flex}.select__listbox--has-footer .select__options{overscroll-behavior:none;flex:0 auto;min-height:0;display:block;overflow:auto}.select__listbox--has-footer .select__footer{flex:none;display:block}.select__listbox--has-footer .select__footer--separated:before{content:"";margin:0 var(--cx-spacing-x-small);border-top:solid var(--cx-panel-border-width) var(--cx-panel-border-color);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}`, B = class extends s {
31
31
  constructor(...t) {
32
- super(...t), this.formControlController = new D(this, { assumeInteractionOn: ["cx-input"] }), this.hasSlotController = new g(this, "footer", "help-text", "label"), this.localize = new h(this), this.typeToSelectString = "", this.openListenersRoot = null, this.hasFocus = !1, this.displayLabel = "", this.selectedOptions = [], this.name = "", this.value = "", this.fallbackOptionValue = "", this.matchEmptyValue = !1, 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.noExpandIcon = !1, this.loading = !1, this.getTag = (t) => {
32
+ super(...t), this.formControlController = new D(this, { assumeInteractionOn: ["cx-input"] }), this.hasSlotController = new g(this, "footer", "help-text", "label"), this.localize = new h(this), this.typeToSelectString = "", this.#n = !1, this.openListenersRoot = null, this.hasFocus = !1, this.displayLabel = "", this.selectedOptions = [], this.name = "", this.value = "", this.fallbackOptionValue = "", this.matchEmptyValue = !1, 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.noExpandIcon = !1, this.loading = !1, this.getTag = (t) => {
33
33
  let n = this.hasSlotController.test("label"), r = this.label || n ? this.size === "large" ? "medium" : "small" : this.size;
34
34
  return e`<cx-tag part="tag" exportparts="
35
35
  base:tag__base,
@@ -43,7 +43,7 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
43
43
  if (e && e instanceof P) return e.selected;
44
44
  }, this.getOptionDisabled = (e) => {
45
45
  if (e && e instanceof P) return e.disabled;
46
- }, this.stayOpenOnSelect = !1, this.closeOnSelect = !1, this.forceOnChange = !1, this.allowDefaultMouseDown = !1, this.noOptionText = "", this.handleDocumentFocusIn = (e) => {
46
+ }, this.stayOpenOnSelect = !1, this.closeOnSelect = !1, this.clearQueryPostSelection = !1, this.forceOnChange = !1, this.allowDefaultMouseDown = !1, this.noOptionText = "", this.handleDocumentFocusIn = (e) => {
47
47
  !e.composedPath().includes(this) && !this.stayOpenOnSelect && requestAnimationFrame(() => {
48
48
  let e = N();
49
49
  !(this.contains(e ?? null) || this.shadowRoot?.contains(e ?? null)) && this.open && this.hide();
@@ -60,7 +60,7 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
60
60
  this.show();
61
61
  return;
62
62
  }
63
- this.currentOption && !this.currentOption.hidden && this.currentOption.isConnected && !this.getOptionDisabled(this.currentOption) && (this.noSelectOnEnter || (this.multiple ? (this.toggleOptionSelection(this.currentOption), this.#p(), this.inputBehavior === "select" && this.selectOptionByInput()) : this.setSelectedOptions(this.currentOption), this.updateComplete.then(() => {
63
+ this.currentOption && !this.currentOption.hidden && this.currentOption.isConnected && !this.getOptionDisabled(this.currentOption) && (this.noSelectOnEnter || (this.multiple ? (this.toggleOptionSelection(this.currentOption), this.#h(), this.inputBehavior === "select" && this.selectOptionByInput()) : (this.setSelectedOptions(this.currentOption), this.#g()), this.updateComplete.then(() => {
64
64
  this.emit("cx-input"), this.emit("cx-change");
65
65
  })), (!this.multiple || this.closeOnSelect) && !this.stayOpenOnSelect && (this.hide(), this.displayInput.focus({ preventScroll: !0 })));
66
66
  return;
@@ -72,14 +72,14 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
72
72
  "End"
73
73
  ].includes(e.key)) {
74
74
  let t = this.getAllOptions().filter((e) => this.inputBehavior !== "filter" || !e.hidden), n = this.currentOption ? t.indexOf(this.currentOption) : -1, r = Math.max(0, n);
75
- if (e.preventDefault(), !this.open && (!this.#c() || (this.show(), this.currentOption))) return;
75
+ if (e.preventDefault(), !this.open && (!this.#u() || (this.show(), this.currentOption))) return;
76
76
  e.key === "ArrowDown" ? (r = n + 1, r > t.length - 1 && (r = 0)) : e.key === "ArrowUp" ? (r = n - 1, r < 0 && (r = t.length - 1)) : e.key === "Home" ? r = 0 : e.key === "End" && (r = t.length - 1), this.setCurrentOption(t[r]);
77
77
  }
78
78
  }
79
79
  }, this.handleDocumentMouseDown = (e) => {
80
80
  let t = e.composedPath();
81
81
  this && !t.includes(this) && !this.stayOpenOnSelect && this.hide();
82
- }, this.#l = {
82
+ }, this.#d = {
83
83
  folded: "",
84
84
  raw: ""
85
85
  };
@@ -97,12 +97,13 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
97
97
  "cx-tag": k,
98
98
  "cx-typography": A
99
99
  };
100
+ #n;
100
101
  get shouldShowNoOptionsMessage() {
101
102
  return !!this.noOptionText && this.getVisibleOptions().length === 0;
102
103
  }
103
- get #n() {
104
+ get #r() {
104
105
  let e = this.getVisibleOptions();
105
- return e.length > 0 && !this.#i(e[0]) && this.#i(e[e.length - 1]);
106
+ return e.length > 0 && !this.#o(e[0]) && this.#o(e[e.length - 1]);
106
107
  }
107
108
  get validity() {
108
109
  return this.valueInput ? this.valueInput.validity : { valid: !0 };
@@ -141,7 +142,7 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
141
142
  }
142
143
  }
143
144
  filterCallback(e, t) {
144
- return this.filterIgnoreAccents ? E(this.getOptionLabel(e), { ignoreAccents: !0 }).includes(this.#u(t)) : this.getOptionLabel(e).toLowerCase().includes(t);
145
+ return this.filterIgnoreAccents ? E(this.getOptionLabel(e), { ignoreAccents: !0 }).includes(this.#f(t)) : this.getOptionLabel(e).toLowerCase().includes(t);
145
146
  }
146
147
  connectedCallback() {
147
148
  super.connectedCallback(), this.stayOpenOnSelect || (this.open = !1);
@@ -170,7 +171,7 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
170
171
  }
171
172
  handleBlur(e) {
172
173
  let t = e.relatedTarget;
173
- t && this.contains(t) || (this.hasFocus = !1, this.allowFreetext || (this.displayLabel = this.#s(), this.displayInput.value = this.displayLabel, this.typeToSelectString = ""), this.emit("cx-blur"));
174
+ t && this.contains(t) || (this.hasFocus = !1, this.allowFreetext || (this.displayLabel = this.#l(), this.displayInput.value = this.displayLabel, this.typeToSelectString = ""), this.emit("cx-blur"));
174
175
  }
175
176
  handleInput(e) {
176
177
  let t = e.target, n = [
@@ -196,9 +197,10 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
196
197
  break;
197
198
  case "select": this.selectOptionByInput();
198
199
  }
199
- this.#d();
200
+ this.#p();
200
201
  }
201
202
  handleComboboxMouseDown(e) {
203
+ if (this.#n = !this.disabled && this.inputBehavior === "filter" && this.open && e.target === this.displayInput, this.#n) return;
202
204
  let t = e.composedPath(), n = !1, r = !1;
203
205
  t.forEach((e) => {
204
206
  if (e instanceof HTMLElement && e.classList.contains("select__expand-icon")) {
@@ -208,22 +210,29 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
208
210
  e instanceof HTMLElement && e.tagName.toLowerCase() === "cx-icon-button" && (n = !0);
209
211
  }), !(this.disabled || n) && (r || this.inputBehavior !== "filter" || !this.open || !this.multiple && !this.useTag ? (this.allowDefaultMouseDown || this.allowFreetext ? requestAnimationFrame(() => {
210
212
  this.displayInput.focus({ preventScroll: !0 });
211
- }) : (e.preventDefault(), this.displayInput.focus({ preventScroll: !0 })), this.open = !this.open && (this.getAllOptions().length > 0 || !!this.noOptionText) && this.#c()) : (this.allowFreetext || e.preventDefault(), this.displayInput.focus({ preventScroll: !0 })));
213
+ }) : (e.preventDefault(), this.displayInput.focus({ preventScroll: !0 })), this.open = !this.open && (this.getAllOptions().length > 0 || !!this.noOptionText) && this.#u()) : (this.allowFreetext || e.preventDefault(), this.displayInput.focus({ preventScroll: !0 })));
212
214
  }
213
215
  handleComboboxKeyDown(e) {
214
216
  e.key !== "Tab" && ((e.key !== "Escape" || this.open && (this.shouldShowNoOptionsMessage || this.getVisibleOptions().length > 0)) && e.stopPropagation(), this.handleDocumentKeyDown(e));
215
217
  }
216
218
  handleClearClick(e) {
217
- e.stopPropagation(), (this.value !== "" || this.displayLabel !== "") && (this.setSelectedOptions([]), this.displayInput.focus({ preventScroll: !0 }), this.#p(), this.updateComplete.then(() => {
219
+ e.stopPropagation(), (this.value !== "" || this.displayLabel !== "") && (this.setSelectedOptions([]), this.displayInput.focus({ preventScroll: !0 }), this.#h(), this.updateComplete.then(() => {
218
220
  this.emit("cx-clear"), this.emit("cx-input"), this.emit("cx-change");
219
221
  }));
220
222
  }
221
223
  handleClearMouseDown(e) {
222
224
  e.stopPropagation(), e.preventDefault();
223
225
  }
226
+ #i() {
227
+ this.#n = !1;
228
+ }
224
229
  handleOptionClick(e) {
230
+ if (this.#n) {
231
+ this.#n = !1;
232
+ return;
233
+ }
225
234
  let t = e.target.closest("[role=\"option\"], cx-option"), n = this.value, r = e.composedPath().some((e) => e?.classList?.contains("tree-item__expand-button")), i = e.composedPath().some((e) => e?.classList?.contains("tree-item__actions"));
226
- t && !this.getOptionDisabled(t) && !r && !i && (this.multiple ? (this.toggleOptionSelection(t), this.#p()) : this.setSelectedOptions(t), this.updateComplete.then(() => this.displayInput.focus({ preventScroll: !0 })), (this.value !== n || this.forceOnChange) && this.updateComplete.then(() => {
235
+ t && !this.getOptionDisabled(t) && !r && !i && (this.multiple ? (this.toggleOptionSelection(t), this.#h()) : (this.setSelectedOptions(t), this.#g()), this.updateComplete.then(() => this.displayInput.focus({ preventScroll: !0 })), (this.value !== n || this.forceOnChange) && this.updateComplete.then(() => {
227
236
  this.emit("cx-input"), this.emit("cx-change");
228
237
  }), (!this.multiple || this.closeOnSelect) && !this.stayOpenOnSelect && (this.hide(), this.displayInput.focus({ preventScroll: !0 })));
229
238
  }
@@ -244,26 +253,26 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
244
253
  this.setSelectedOptions(r, i ? this.value : void 0), this.hasFocus && !this.open && !this.disabled && e.length > 0 && this.show();
245
254
  }
246
255
  handleTagRemove(e, t) {
247
- e.stopPropagation(), this.disabled || (this.toggleOptionSelection(t, !1), this.#p(), this.updateComplete.then(() => {
256
+ e.stopPropagation(), this.disabled || (this.toggleOptionSelection(t, !1), this.#h(), this.updateComplete.then(() => {
248
257
  this.emit("cx-input"), this.emit("cx-change");
249
258
  }));
250
259
  }
251
260
  getAllOptions() {
252
- return this.#a([...this.querySelectorAll("[role=\"option\"], cx-option")]);
261
+ return this.#s([...this.querySelectorAll("[role=\"option\"], cx-option")]);
253
262
  }
254
263
  getFirstOption() {
255
264
  return this.querySelector("cx-option");
256
265
  }
257
- #r() {
258
- return this.#a([...this.querySelectorAll("cx-option")]).find((e) => !e.hidden) ?? null;
266
+ #a() {
267
+ return this.#s([...this.querySelectorAll("cx-option")]).find((e) => !e.hidden) ?? null;
259
268
  }
260
- #i(e) {
269
+ #o(e) {
261
270
  return e.slot === "footer" && e.parentElement === this;
262
271
  }
263
- #a(e) {
264
- return e.some((e) => this.#i(e)) ? [...e.filter((e) => !this.#i(e)), ...e.filter((e) => this.#i(e))] : e;
272
+ #s(e) {
273
+ return e.some((e) => this.#o(e)) ? [...e.filter((e) => !this.#o(e)), ...e.filter((e) => this.#o(e))] : e;
265
274
  }
266
- #o() {
275
+ #c() {
267
276
  return this.hasSlotController.test("footer") ? this.optionsContainer : this.listbox;
268
277
  }
269
278
  getVisibleOptions() {
@@ -294,11 +303,11 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
294
303
  let n = this.getOptionSelected(e), r = new Set(this.selectedOptions);
295
304
  n ? r.add(e) : r.delete(e), this.selectionChanged(void 0, [...r]);
296
305
  }
297
- #s() {
306
+ #l() {
298
307
  return this.multiple ? "" : this.getOptionLabel(this.selectedOptions[0]) ?? "";
299
308
  }
300
309
  selectionChanged(e, t) {
301
- this.selectedOptions = t ?? this.getAllOptions().filter((e) => this.getOptionSelected(e)), this.value = this.multiple ? e ?? this.selectedOptions.map((e) => this.getOptionValue(e)) : e ?? this.getOptionValue(this.selectedOptions[0]) ?? "", this.displayLabel = this.#s(), this.updateComplete.then(() => {
310
+ this.selectedOptions = t ?? this.getAllOptions().filter((e) => this.getOptionSelected(e)), this.value = this.multiple ? e ?? this.selectedOptions.map((e) => this.getOptionValue(e)) : e ?? this.getOptionValue(this.selectedOptions[0]) ?? "", this.displayLabel = this.#l(), this.updateComplete.then(() => {
302
311
  this.formControlController.updateValidity();
303
312
  });
304
313
  }
@@ -331,13 +340,13 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
331
340
  if (this.noDropdown) return;
332
341
  if (this.inputBehavior === "filter" && this.filterOptionsByInput(), !this.noResetCurrent) {
333
342
  let [e] = this.selectedOptions;
334
- this.setCurrentOption(e && !e.hidden ? e : this.#r() ?? this.getFirstOption());
343
+ this.setCurrentOption(e && !e.hidden ? e : this.#a() ?? this.getFirstOption());
335
344
  }
336
345
  this.emit("cx-show"), this.addOpenListeners(), await f(this), this.listbox.hidden = !1, this.popup.active = !0, requestAnimationFrame(() => {
337
346
  this.currentOption && this.setCurrentOption(this.currentOption);
338
347
  });
339
348
  let { keyframes: e, options: t } = b(this, "select.show", { dir: this.localize.dir() });
340
- await d(this.popup.popup, e, t), this.currentOption && !this.#i(this.currentOption) && F(this.currentOption, this.#o(), "vertical", "auto"), this.emit("cx-after-show");
349
+ await d(this.popup.popup, e, t), this.currentOption && !this.#o(this.currentOption) && F(this.currentOption, this.#c(), "vertical", "auto"), this.emit("cx-after-show");
341
350
  } else {
342
351
  this.emit("cx-hide"), this.removeOpenListeners(), await f(this);
343
352
  let { keyframes: e, options: t } = b(this, "select.hide", { dir: this.localize.dir() });
@@ -351,31 +360,34 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
351
360
  break;
352
361
  }
353
362
  }
354
- #c() {
363
+ #u() {
355
364
  return this.typeToSelectString.length >= Math.max(0, this.minQueryLength || 0);
356
365
  }
357
- #l;
358
- #u(e) {
359
- return this.#l.raw !== e && (this.#l = {
366
+ #d;
367
+ #f(e) {
368
+ return this.#d.raw !== e && (this.#d = {
360
369
  folded: E(e, { ignoreAccents: !0 }),
361
370
  raw: e
362
- }), this.#l.folded;
371
+ }), this.#d.folded;
363
372
  }
364
- #d() {
365
- this.open && !this.#c() && this.hide();
373
+ #p() {
374
+ this.open && !this.#u() && this.hide();
366
375
  }
367
- #f(e) {
376
+ #m(e) {
368
377
  return !this.highlightMatches || e.hidden ? [] : T(e.getTextLabel(), this.typeToSelectString, { ignoreAccents: this.filterIgnoreAccents });
369
378
  }
370
379
  filterOptionsByInput() {
371
380
  let e = this.getAllOptions();
372
- for (let t of e) this.filterCallback(t, this.typeToSelectString) ? (t.hidden = !1, t.style.removeProperty("display")) : (t.hidden = !0, t.style.setProperty("display", "none")), t instanceof P && (t.matchRanges = this.#f(t));
373
- this.#m(), this.popup.style.removeProperty("--auto-size-available-width"), this.popup.style.removeProperty("--auto-size-available-height");
381
+ for (let t of e) this.filterCallback(t, this.typeToSelectString) ? (t.hidden = !1, t.style.removeProperty("display")) : (t.hidden = !0, t.style.setProperty("display", "none")), t instanceof P && (t.matchRanges = this.#m(t));
382
+ this.#_(), this.popup.style.removeProperty("--auto-size-available-width"), this.popup.style.removeProperty("--auto-size-available-height");
374
383
  }
375
- #p() {
376
- this.typeToSelectString = "", this.displayLabel = "", this.displayInput.value = "", this.inputBehavior === "filter" && this.filterOptionsByInput(), this.#d();
384
+ #h() {
385
+ this.typeToSelectString = "", this.displayLabel = "", this.displayInput.value = "", this.inputBehavior === "filter" && this.filterOptionsByInput(), this.#p();
377
386
  }
378
- #m() {
387
+ #g() {
388
+ this.clearQueryPostSelection && (this.typeToSelectString = "");
389
+ }
390
+ #_() {
379
391
  let { currentOption: e } = this;
380
392
  if (!e || !e.hidden && e.isConnected) return;
381
393
  let t = this.getVisibleOptions()[0];
@@ -386,7 +398,7 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
386
398
  this.open = !1;
387
399
  return;
388
400
  }
389
- if ((this.getAllOptions().length !== 0 || this.noOptionText) && this.#c()) return this.open = !0, p(this, "cx-after-show");
401
+ if ((this.getAllOptions().length !== 0 || this.noOptionText) && this.#u()) return this.open = !0, p(this, "cx-after-show");
390
402
  }
391
403
  async hide() {
392
404
  if (!this.open || this.disabled) {
@@ -402,7 +414,7 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
402
414
  this.displayInput.blur();
403
415
  }
404
416
  render() {
405
- let t = this.hasSlotController.test("label"), r = this.hasSlotController.test("help-text"), i = this.hasSlotController.test("footer"), a = i && this.#n, o = this.label ? !0 : !!t, s = this.helpText ? !0 : !!r, c = this.clearable && !this.disabled && (this.displayLabel.length > 0 || this.selectedOptions.length > 0), l = this.placeholder && this.value.length === 0 && this.displayLabel.length === 0, u = this.value.length === 0 && this.displayLabel.length === 0 || (this.multiple || this.useTag) && this.tags.length === 0, d = (this.multiple || this.useTag) && this.selectedOptions.length > 0;
417
+ let t = this.hasSlotController.test("label"), r = this.hasSlotController.test("help-text"), i = this.hasSlotController.test("footer"), a = i && this.#r, o = this.label ? !0 : !!t, s = this.helpText ? !0 : !!r, c = this.clearable && !this.disabled && (this.displayLabel.length > 0 || this.selectedOptions.length > 0), l = this.placeholder && this.value.length === 0 && this.displayLabel.length === 0, u = this.value.length === 0 && this.displayLabel.length === 0 || (this.multiple || this.useTag) && this.tags.length === 0, d = (this.multiple || this.useTag) && this.selectedOptions.length > 0;
406
418
  return e`<div part="form-control" class=${v({
407
419
  "form-control": !0,
408
420
  "form-control--has-help-text": s,
@@ -436,7 +448,7 @@ var R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement |
436
448
  ${S(c, () => e`<button part="clear-button" class="select__clear" type="button" aria-label=${this.localize.term("clearEntry")} @mousedown=${this.handleClearMouseDown} @click=${this.handleClearClick} tabindex="-1"><slot name="clear-icon"><cx-icon name="cancel"></cx-icon></slot></button>`)}<slot name="suffix" part="suffix" class="select__suffix"></slot>${this.noExpandIcon ? n : e`<slot name="expand-icon" part="expand-icon" class="select__expand-icon"><cx-icon name="arrow_drop_down"></cx-icon></slot>`}</div><div id="listbox" role="listbox" aria-expanded=${this.open ? "true" : "false"} ?hidden=${!this.open || this.disabled} aria-multiselectable=${this.multiple ? "true" : "false"} aria-label=${x(o ? void 0 : this.dataset.label)} aria-labelledby=${x(o ? "label" : void 0)} part="listbox" class=${v({
437
449
  select__listbox: !0,
438
450
  "select__listbox--has-footer": i
439
- })} tabindex="-1" @mouseup=${this.handleOptionClick} @slotchange=${this.handleDefaultSlotChange}><div class="select__options"><slot></slot>${S(this.shouldShowNoOptionsMessage, () => e`<cx-typography variant="body3" class="select__no-options" role="option">${this.noOptionText}</cx-typography>`)}</div><div part="listbox-footer" class=${v({
451
+ })} tabindex="-1" @mousedown=${this.#i} @mouseup=${this.handleOptionClick} @slotchange=${this.handleDefaultSlotChange}><div class="select__options"><slot></slot>${S(this.shouldShowNoOptionsMessage, () => e`<cx-typography variant="body3" class="select__no-options" role="option">${this.noOptionText}</cx-typography>`)}</div><div part="listbox-footer" class=${v({
440
452
  select__footer: !0,
441
453
  "select__footer--separated": a
442
454
  })}><slot name="footer"></slot></div></div></cx-popup></div><div part="form-control-help-text" id="help-text" class="form-control__help-text" aria-hidden=${s ? "false" : "true"}><slot name="help-text">${this.helpText}</slot></div></div>`;
@@ -545,6 +557,9 @@ a([c(".select"), o("design:type", l === void 0 ? Object : l)], B.prototype, "pop
545
557
  attribute: "close-on-select",
546
558
  type: Boolean
547
559
  }), o("design:type", Object)], B.prototype, "closeOnSelect", void 0), a([r({
560
+ attribute: "clear-query-post-selection",
561
+ type: Boolean
562
+ }), o("design:type", Object)], B.prototype, "clearQueryPostSelection", void 0), a([r({
548
563
  attribute: "force-on-change",
549
564
  type: Boolean
550
565
  }), o("design:type", Object)], B.prototype, "forceOnChange", void 0), a([r({
@@ -3,10 +3,10 @@ import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as o } from "./component.styles.0xM1ZmBs.js";
4
4
  import { t as s } from "./custom-element.BEMYNDK1.js";
5
5
  import { t as c } from "./repeat.CKv9FPlC.js";
6
- import { t as l } from "./input.1CW0nLBL.js";
6
+ import { t as l } from "./input.DquWjNQZ.js";
7
7
  import { t as u } from "./space.Dd8jezXK.js";
8
8
  import { t as d } from "./input-group.Dmd8XcxL.js";
9
- import { t as f } from "./bicolor-picker.DoLf8yCy.js";
9
+ import { t as f } from "./bicolor-picker.Di6_ouh7.js";
10
10
  //#region ../../packages/molecules/src/shadow-input-group/shadow-input-group.styles.ts
11
11
  var p = t``, m = class extends a {
12
12
  constructor(...e) {
@@ -5,7 +5,7 @@ import { t as c } from "./query.B1yi7t71.js";
5
5
  import { t as l } from "./component.styles.0xM1ZmBs.js";
6
6
  import { i as u } from "./event.C11S4obG.js";
7
7
  import { t as d } from "./custom-element.BEMYNDK1.js";
8
- import { t as f } from "./i18n.qIMzqW-F.js";
8
+ import { t as f } from "./i18n.D8Tm7ans.js";
9
9
  import { t as p } from "./slot.CZUlACxT.js";
10
10
  import { t as m } from "./watch.Ub5r8btz.js";
11
11
  import { t as h } from "./class-map.D8nsNOVJ.js";
@@ -14,7 +14,7 @@ import { t as _ } from "./icon.CeQpEaQz.js";
14
14
  import { t as v } from "./style-map.DPGQIxip.js";
15
15
  import { t as y } from "./dom.8wD7rIGz.js";
16
16
  import { t as b } from "./resize-observer.D9EHlnZI.js";
17
- import { t as x } from "./tooltip.C11omEOs.js";
17
+ import { t as x } from "./tooltip.Dz_kkD4H.js";
18
18
  import { t as S } from "./typography.B0mkhqTB.js";
19
19
  import { t as C } from "./math.od1DVmRk.js";
20
20
  import { t as w } from "./repeat.CKv9FPlC.js";
@@ -3,18 +3,18 @@ import { a as r, i, n as a, r as o, t as s } from "./cortex-element.DTrNUtdr.js"
3
3
  import { t as c } from "./query.B1yi7t71.js";
4
4
  import { t as l } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as u } from "./custom-element.BEMYNDK1.js";
6
- import { t as d } from "./i18n.qIMzqW-F.js";
6
+ import { t as d } from "./i18n.D8Tm7ans.js";
7
7
  import { t as f } from "./slot.CZUlACxT.js";
8
8
  import { t as p } from "./watch.Ub5r8btz.js";
9
9
  import { t as m } from "./class-map.D8nsNOVJ.js";
10
- import { t as h } from "./icon-button.DTyZ7Nwc.js";
10
+ import { t as h } from "./icon-button.XvDdPL62.js";
11
11
  import { t as g } from "./icon.CeQpEaQz.js";
12
12
  import { t as _ } from "./resize-observer.D9EHlnZI.js";
13
13
  import { t as v } from "./drag.s0AcVpKh.js";
14
14
  import { n as y } from "./tabbable.BSwpOHdm.js";
15
15
  import { t as b } from "./divider.CqSNZCU8.js";
16
16
  //#region ../../packages/molecules/src/sidebar/sidebar.styles.ts
17
- var x = t`:host{--_background-color:var(--background-color,var(--cx-color-neutral-0));--_hint-color:var(--hint-color,var(--cx-color-primary-300));--_open-trigger-padding:var(--open-trigger-padding,var(--cx-spacing-medium));--closed-width:0px;display:block}.sidebar{grid-template-rows:100%;grid-template-areas:"main";display:grid;position:relative}.sidebar,.group--opened,.group--closed,.group_content,.open_trigger{height:100%}.group--opened,.group--closed{grid-area:main}.sidebar__header{padding:var(--cx-spacing-x-small) var(--cx-spacing-small);position:relative}.sidebar--no-header .sidebar__header{display:none}.content{padding:var(--cx-spacing-small);padding-bottom:var(--cx-spacing-small);flex-grow:1}.sidebar__divider{--spacing:6px;position:absolute;top:0}.sidebar__divider:hover{--color:var(--_hint-color);cursor:col-resize}.sidebar--not-resizable .sidebar__divider{cursor:default;pointer-events:none}.sidebar--not-resizable .sidebar__divider:hover{--color:inherit;cursor:default}.sidebar--left .sidebar__divider{right:calc(0px - var(--spacing))}.sidebar--right .sidebar__divider{left:calc(0px - var(--spacing))}.close_trigger{visibility:hidden;top:max(calc(var(--header-height) / 2), 32px);position:absolute;transform:translateY(-50%)}.close_trigger>cx-icon-button::part(base){background-color:var(--cx-color-neutral-0)}.sidebar--left .close_trigger{right:0;transform:translate(50%,-50%)}.sidebar--right .close_trigger{left:0;transform:translate(-50%,-50%)}.sidebar--close-trigger-center .close_trigger{top:50%}.sidebar--close-trigger-end .close_trigger{top:auto;bottom:var(--cx-spacing-medium)}.sidebar--left.sidebar--close-trigger-end .close_trigger{transform:translate(50%)}.sidebar--right.sidebar--close-trigger-end .close_trigger{transform:translate(-50%)}.sidebar--opened:hover .close_trigger{visibility:visible}.open_trigger{padding:var(--_open-trigger-padding);cursor:pointer;background-color:var(--_background-color);position:relative}.open_trigger:focus-visible,.group--main .group_content:focus-visible{outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}.open_trigger_hint{--spacing:0;position:absolute;top:0;right:0}.open_trigger:hover .open_trigger_hint{--color:var(--_hint-color)}.group_container{overflow-x:clip}.group--opened,.group--closed{flex-direction:column;display:flex}.group--closed{width:var(--closed-width)}.group_content{background-color:var(--_background-color);contain:inline-size;overflow:clip auto}.group--opened .group_content{width:var(--size);min-width:var(--min-width);max-width:var(--max-width)}.sidebar--opened .group--opened{visibility:visible}.sidebar--opened .group--closed{visibility:hidden;width:0}.sidebar:not(.sidebar--opened) .group--closed{visibility:visible}.sidebar:not(.sidebar--opened) .group--opened{contain:inline-size;visibility:hidden;width:0}.sidebar:not(.sidebar--opened) .group--main .group_content{width:0;overflow:hidden}`, S = class extends s {
17
+ var x = t`:host{--_background-color:var(--background-color,var(--cx-color-neutral-0));--_hint-color:var(--hint-color,var(--cx-color-primary-300));--_open-trigger-padding:var(--open-trigger-padding,var(--cx-spacing-medium));--closed-width:0px;display:block}.sidebar{grid-template-rows:100%;grid-template-areas:"main";display:grid;position:relative}.sidebar,.group--opened,.group--closed,.group_content,.open_trigger{height:100%}.group--opened,.group--closed{grid-area:main}.sidebar__header{padding:var(--cx-spacing-x-small) var(--cx-spacing-small);position:relative}.sidebar--no-header .sidebar__header{display:none}.content{padding:var(--cx-spacing-small);padding-bottom:var(--cx-spacing-small);flex-grow:1}.sidebar__divider{--spacing:6px;position:absolute;top:0}.sidebar__divider:hover{--color:var(--_hint-color);cursor:col-resize}.sidebar--not-resizable .sidebar__divider{cursor:default;pointer-events:none}.sidebar--not-resizable .sidebar__divider:hover{--color:inherit;cursor:default}.sidebar--left .sidebar__divider{right:calc(0px - var(--spacing))}.sidebar--right .sidebar__divider{left:calc(0px - var(--spacing))}.close_trigger{visibility:hidden;top:max(calc(var(--header-height) / 2), 32px);position:absolute;transform:translateY(-50%)}.close_trigger>cx-icon-button::part(base){background-color:var(--cx-color-neutral-0)}.sidebar--left .close_trigger{right:0;transform:translate(50%,-50%)}.sidebar--right .close_trigger{left:0;transform:translate(-50%,-50%)}.sidebar--close-trigger-center .close_trigger{top:50%}.sidebar--close-trigger-end .close_trigger{top:auto;bottom:var(--cx-spacing-medium)}.sidebar--left.sidebar--close-trigger-end .close_trigger{transform:translate(50%)}.sidebar--right.sidebar--close-trigger-end .close_trigger{transform:translate(-50%)}.sidebar--opened:hover .close_trigger{visibility:visible}.open_trigger{padding:var(--_open-trigger-padding);cursor:pointer;background-color:var(--_background-color);position:relative}.open_trigger:focus-visible,.group--main .group_content:focus-visible{outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}.open_trigger_hint{--spacing:0;position:absolute;top:0;right:0}.open_trigger:hover .open_trigger_hint{--color:var(--_hint-color)}.group_container{overflow-x:clip}.group--opened,.group--closed{flex-direction:column;display:flex}.group--closed{width:var(--closed-width)}.group_content{background-color:var(--_background-color);contain:inline-size;overflow:clip auto}.group--opened .group_content{width:var(--size);min-width:var(--min-width);max-width:var(--max-width)}.sidebar--opened .group--opened{visibility:visible}.sidebar--opened .group--closed{visibility:hidden;width:0}.sidebar:not(.sidebar--opened) .group--closed{visibility:visible}.sidebar:not(.sidebar--opened) .group--opened{contain:inline-size;visibility:hidden;width:0}.sidebar:not(.sidebar--opened) .group--main{overflow:clip}.sidebar:not(.sidebar--opened) .group--main .group_content{width:var(--size);min-width:var(--min-width);max-width:var(--max-width);visibility:hidden}`, S = class extends s {
18
18
  static #e = this.styles = [l, x];
19
19
  static #t = this.dependencies = {
20
20
  "cx-divider": b,
@@ -3,15 +3,15 @@ import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtd
3
3
  import { t as s } from "./query.B1yi7t71.js";
4
4
  import { t as c } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as l } from "./custom-element.BEMYNDK1.js";
6
- import { t as u } from "./i18n.qIMzqW-F.js";
6
+ import { t as u } from "./i18n.D8Tm7ans.js";
7
7
  import { t as d } from "./watch.Ub5r8btz.js";
8
- import { t as f } from "./icon-button.DTyZ7Nwc.js";
8
+ import { t as f } from "./icon-button.XvDdPL62.js";
9
9
  import { t as p } from "./when.BUskJLtZ.js";
10
- import { t as m } from "./tooltip.C11omEOs.js";
10
+ import { t as m } from "./tooltip.Dz_kkD4H.js";
11
11
  import { t as h } from "./default-value.opqQgoRT.js";
12
- import { t as g } from "./input.1CW0nLBL.js";
12
+ import { t as g } from "./input.DquWjNQZ.js";
13
13
  import { t as _ } from "./space.Dd8jezXK.js";
14
- import { t as v } from "./select.D-QQK2rH.js";
14
+ import { t as v } from "./select.BqBBPc5B.js";
15
15
  //#region ../../packages/types/src/size-input-group.ts
16
16
  var y = /* @__PURE__ */ function(e) {
17
17
  return e.Percentage = "percentage", e.Pixel = "pixel", e;
@@ -2,7 +2,7 @@ import { c as e, d as t } from "./lit.CyJqR2kf.js";
2
2
  import { n, t as r } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as i } from "./component.styles.0xM1ZmBs.js";
4
4
  import { t as a } from "./custom-element.BEMYNDK1.js";
5
- import { t as o } from "./i18n.qIMzqW-F.js";
5
+ import { t as o } from "./i18n.D8Tm7ans.js";
6
6
  //#region ../../packages/atoms/src/components/spinner/spinner.styles.ts
7
7
  var s = t`:host{--track-width:2px;--track-color:#80808040;--indicator-color:var(--cx-color-primary);--speed:2s;flex:none;width:1em;max-width:1em;height:1em;max-height:1em;display:inline-flex}.spinner{flex:auto;width:1em;height:1em}.spinner__track,.spinner__indicator{fill:none;stroke-width:var(--track-width);r:calc(.5em - var(--track-width) / 2);cx:calc(.5em);cy:calc(.5em);transform-origin:.5em .5em}.spinner__track{stroke:var(--track-color);transform-origin:0 0}.spinner__indicator{stroke:var(--indicator-color);stroke-linecap:round;stroke-dasharray:150% 75%;animation:spin var(--speed) linear infinite}@keyframes spin{0%{stroke-dasharray:.05em 3em;transform:rotate(0)}50%{stroke-dasharray:1.375em 1.375em;transform:rotate(450deg)}to{stroke-dasharray:.05em 3em;transform:rotate(1080deg)}}`, c = class extends r {
8
8
  constructor(...e) {
@@ -3,7 +3,7 @@ import { a as n, n as r, r as i, t as a } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as o } from "./query.B1yi7t71.js";
4
4
  import { t as s } from "./component.styles.0xM1ZmBs.js";
5
5
  import { t as c } from "./custom-element.BEMYNDK1.js";
6
- import { t as l } from "./i18n.qIMzqW-F.js";
6
+ import { t as l } from "./i18n.D8Tm7ans.js";
7
7
  import { t as u } from "./watch.Ub5r8btz.js";
8
8
  import { t as d } from "./if-defined.B29V_rEp.js";
9
9
  import { t as f } from "./drag.s0AcVpKh.js";