@orangelogic/design-system 3.11.0 → 3.13.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 (183) hide show
  1. package/library/chunks/{AxisLabelRadial.fe7zjixN.js → AxisLabelRadial.WmAEaa1v.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.8Mpxz385.js → BaseColumnSeries.CA7CJ3dz.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.DuadaOTa.js → CandlestickSeries.DXRjCTbq.js} +2 -2
  4. package/library/chunks/{Circle.6LomW0ej.js → Circle.D0OhNxs6.js} +1 -1
  5. package/library/chunks/{ColumnSeries.D1NLfRh5.js → ColumnSeries.B9RPnhH2.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.Bi9vxLDV.js → EditableAxisLabel.BMw-UWXO.js} +2 -2
  7. package/library/chunks/{EditableLabel.CMR3O9E-.js → EditableLabel.C4IbcCqP.js} +1 -1
  8. package/library/chunks/{Gradient.CquE8_a4.js → Gradient.B8nYUJGr.js} +1 -1
  9. package/library/chunks/{LinearGradient.CVN1VJp-.js → LinearGradient.D35vPMt3.js} +2 -2
  10. package/library/chunks/{Picture.BYTZ_I8g.js → Picture.BK1LgzpJ.js} +1 -1
  11. package/library/chunks/{Polygon.CU2sMltE.js → Polygon.sDQ7eTW_.js} +1 -1
  12. package/library/chunks/{ProgressPie.Dd74dbmm.js → ProgressPie.WR8hKkuu.js} +5 -5
  13. package/library/chunks/{RadialLabel.7ka6ND-t.js → RadialLabel.CUDs8pwi.js} +1 -1
  14. package/library/chunks/{Scrollbar.DqUnZReo.js → Scrollbar.CBeC4QOU.js} +1 -1
  15. package/library/chunks/{Slice.BVI8rfHI.js → Slice.A9JOqhaa.js} +1 -1
  16. package/library/chunks/{Slider.DtjYaJOw.js → Slider.IR4xGxTB.js} +1 -1
  17. package/library/chunks/{SpriteResizer.Ci2Wt2YJ.js → SpriteResizer.C4Pr8M2O.js} +1 -1
  18. package/library/chunks/{Triangle.C75emy3D.js → Triangle.B8AHSXVN.js} +1 -1
  19. package/library/chunks/{ZoomTools.CA9mtHI8.js → ZoomTools.Bc-o69p-.js} +1 -1
  20. package/library/chunks/{am-chart.Cr-vMjcY.js → am-chart._tN87j9G.js} +252 -252
  21. package/library/chunks/{animation.BD-1xugN.js → animation.C44TQFrM.js} +1 -1
  22. package/library/chunks/{asset-link-format.CxDu37Om.js → asset-link-format.DGRqjqpk.js} +134 -133
  23. package/library/chunks/{button.-Jl_NdgM.js → button.BQoebhw_.js} +2 -2
  24. package/library/chunks/{color-swatch-group.DGPlxYsp.js → color-swatch-group.D25fjSK-.js} +12 -12
  25. package/library/chunks/{color-swatch.Dc-IqxsX.js → color-swatch.DxxOpJXT.js} +2 -2
  26. package/library/chunks/{colorPicker.Cg6Zxf8f.js → colorPicker.DkLlH4Wq.js} +5 -5
  27. package/library/chunks/{component.styles.CRO4Odto.js → component.styles.CAS3c9pM.js} +1 -1
  28. package/library/chunks/{confirm-popover.mgYIjZdo.js → confirm-popover.C35rVtVI.js} +4 -4
  29. package/library/chunks/{dialog.YFc-HBc5.js → dialog.Dl9aHLD4.js} +2 -2
  30. package/library/chunks/{document-viewer.DhJ4jBNe.js → document-viewer.sz5uTo3c.js} +9 -9
  31. package/library/chunks/{dot-pagination.BgETAL2j.js → dot-pagination.BNoG-qx7.js} +1 -1
  32. package/library/chunks/{exporting.Djsoh75g.js → exporting.AEbCtXAu.js} +2 -2
  33. package/library/chunks/{flow.aZRVH3p1.js → flow.C_iJT08S.js} +5 -5
  34. package/library/chunks/{folder-select.Hl51n0ge.js → folder-select.CHY44KlA.js} +5 -5
  35. package/library/chunks/{gantt.Bv6_3H9y.js → gantt.MUysUK5v.js} +8 -8
  36. package/library/chunks/{header.BeZml2NV.js → header.v8maWlzT.js} +1 -1
  37. package/library/chunks/{hierarchy.C4LxmFxx.js → hierarchy.C5iJ2TzI.js} +5 -5
  38. package/library/chunks/{icon-button.ENVA7x3u.js → icon-button.5-oAlIkv.js} +2 -2
  39. package/library/chunks/{icon.CpHbi8tH.js → icon.BLXWp6CU.js} +1 -1
  40. package/library/chunks/{iframe.Cgy_DE7W.js → iframe.DOwG9Q7o.js} +1 -1
  41. package/library/chunks/{image.1ufrCtW1.js → image.BSh7WAGF.js} +3 -3
  42. package/library/chunks/{index.2SOQHTpX.js → index.D5h7hksG.js} +17 -17
  43. package/library/chunks/{index.BAJfz5QI.js → index.Nlc7Fj2h.js} +16 -16
  44. package/library/chunks/{input.BJ5LN8of.js → input.BRZzv6Zk.js} +2 -2
  45. package/library/chunks/{json.Dz5QFEi5.js → json.DF7pARBV.js} +3 -3
  46. package/library/chunks/{map.CBcV0WVq.js → map.BXDkCMzZ.js} +2 -2
  47. package/library/chunks/{markdown.CrIkpd0h.js → markdown.b03AOvFT.js} +1 -1
  48. package/library/chunks/{menu-item.DfsfX25P.js → menu-item.HtTWOcq4.js} +2 -2
  49. package/library/chunks/{option.B34is9Z5.js → option.DgxoCq1j.js} +2 -2
  50. package/library/chunks/{pagination.DMAcWRyI.js → pagination.DtdNeZZD.js} +6 -6
  51. package/library/chunks/{percent.D8mkiJ2G.js → percent.DRsIolhK.js} +3 -3
  52. package/library/chunks/{radar.B3p5bRix.js → radar.D-c6oTy6.js} +4 -4
  53. package/library/chunks/{sliceGrouper.CcRqQhZX.js → sliceGrouper.CV7jLsd5.js} +1 -1
  54. package/library/chunks/{stock.CQbn6zW4.js → stock.Bf_BuveB.js} +9 -9
  55. package/library/chunks/{tab-group.D14m1Kel.js → tab-group.BQh_hMDd.js} +4 -4
  56. package/library/chunks/{timeline.Czz_uBEd.js → timeline.CBzTbwCn.js} +5 -5
  57. package/library/chunks/{toast.CCWVobz5.js → toast.CGIDPKV8.js} +1 -1
  58. package/library/chunks/transformation.OaRYixzE.js +385 -0
  59. package/library/chunks/{tree.BEFWro0D.js → tree.DKofDMGu.js} +39 -37
  60. package/library/chunks/{types.D0NvE1EB.js → types.C96J8khO.js} +22431 -21719
  61. package/library/chunks/{typography.IqHbnd3C.js → typography.T72DuoCa.js} +1 -1
  62. package/library/chunks/{venn.B5Jl-c4i.js → venn.CTDnALBD.js} +1 -1
  63. package/library/chunks/{wc.B2THb2Kk.js → wc.DJeU7GL0.js} +1 -1
  64. package/library/chunks/{xy.BO6U5QrZ.js → xy.CW6DZQA8.js} +10 -10
  65. package/library/components/alert.js +2 -2
  66. package/library/components/am-chart.js +2 -2
  67. package/library/components/animated-image.js +2 -2
  68. package/library/components/animation.js +2 -2
  69. package/library/components/array-line-clamp.js +1 -1
  70. package/library/components/asset-link-format.js +5 -5
  71. package/library/components/atoms.js +22 -22
  72. package/library/components/audio.js +3 -3
  73. package/library/components/avatar.js +2 -2
  74. package/library/components/badge.js +1 -1
  75. package/library/components/bicolor-picker.js +1 -1
  76. package/library/components/border-input-group.js +2 -2
  77. package/library/components/breadcrumb-item.js +1 -1
  78. package/library/components/breadcrumb.js +2 -2
  79. package/library/components/button-group.js +1 -1
  80. package/library/components/button.js +3 -3
  81. package/library/components/card.js +1 -1
  82. package/library/components/checkbox.js +2 -2
  83. package/library/components/color-picker.js +4 -4
  84. package/library/components/color-swatch-group.js +6 -6
  85. package/library/components/color-swatch.js +3 -3
  86. package/library/components/confirm-popover.js +5 -5
  87. package/library/components/copy-button.js +2 -2
  88. package/library/components/corner-position-input-group.js +3 -3
  89. package/library/components/cropper.js +1 -1
  90. package/library/components/date-calendar.js +2 -2
  91. package/library/components/details.js +2 -2
  92. package/library/components/dialog.js +3 -3
  93. package/library/components/diff.js +1 -1
  94. package/library/components/divider.js +1 -1
  95. package/library/components/document-viewer.js +5 -5
  96. package/library/components/dot-pagination.js +2 -2
  97. package/library/components/dot-status.js +1 -1
  98. package/library/components/drawer.js +2 -2
  99. package/library/components/dropdown.js +2 -2
  100. package/library/components/dynamic-select.js +3 -3
  101. package/library/components/e-chart.js +1 -1
  102. package/library/components/element-clamp.js +2 -2
  103. package/library/components/file-on-demand.js +11 -11
  104. package/library/components/folder-select.js +5 -5
  105. package/library/components/format-time.js +1 -1
  106. package/library/components/grid-item.js +1 -1
  107. package/library/components/grid.js +1 -1
  108. package/library/components/header.js +2 -2
  109. package/library/components/icon-button.js +3 -3
  110. package/library/components/icon.js +2 -2
  111. package/library/components/iframe.js +2 -2
  112. package/library/components/image-comparer.js +2 -2
  113. package/library/components/image.js +3 -3
  114. package/library/components/include.js +1 -1
  115. package/library/components/input-group.js +1 -1
  116. package/library/components/input.js +3 -3
  117. package/library/components/line-clamp.js +2 -2
  118. package/library/components/markdown.js +2 -2
  119. package/library/components/masonry.js +3 -3
  120. package/library/components/menu-item.js +3 -3
  121. package/library/components/menu-label.js +1 -1
  122. package/library/components/menu-section.js +1 -1
  123. package/library/components/menu.js +2 -2
  124. package/library/components/molecules.js +3 -3
  125. package/library/components/mutation-observer.js +1 -1
  126. package/library/components/option.js +3 -3
  127. package/library/components/organisms.js +2 -2
  128. package/library/components/padding-input-group.js +2 -2
  129. package/library/components/pagination.js +6 -6
  130. package/library/components/popup.js +1 -1
  131. package/library/components/position-picker.js +1 -1
  132. package/library/components/progress-bar.js +1 -1
  133. package/library/components/progress-ring.js +1 -1
  134. package/library/components/qr-code.js +1 -1
  135. package/library/components/radio-button.js +1 -1
  136. package/library/components/radio-card.js +1 -1
  137. package/library/components/radio-group.js +1 -1
  138. package/library/components/radio.js +2 -2
  139. package/library/components/range.js +1 -1
  140. package/library/components/rating.js +2 -2
  141. package/library/components/relative-time.js +1 -1
  142. package/library/components/resize-observer.js +1 -1
  143. package/library/components/select.js +4 -4
  144. package/library/components/shadow-input-group.js +2 -2
  145. package/library/components/share-option-list.js +3 -3
  146. package/library/components/sidebar.js +3 -3
  147. package/library/components/size-input-group.js +3 -3
  148. package/library/components/skeleton.js +1 -1
  149. package/library/components/space.js +1 -1
  150. package/library/components/spinner.js +1 -1
  151. package/library/components/split-panel.js +1 -1
  152. package/library/components/step.js +2 -2
  153. package/library/components/stepper-wizard.js +2 -2
  154. package/library/components/stepper.js +1 -1
  155. package/library/components/switch.js +1 -1
  156. package/library/components/tab-group.js +5 -5
  157. package/library/components/tab-panel.js +1 -1
  158. package/library/components/tab.js +2 -2
  159. package/library/components/tag.js +2 -2
  160. package/library/components/textarea.js +1 -1
  161. package/library/components/timecode.js +2 -2
  162. package/library/components/tooltip.js +1 -1
  163. package/library/components/tree-item.js +3 -3
  164. package/library/components/tree.js +2 -2
  165. package/library/components/typeface.js +3 -3
  166. package/library/components/types.js +150 -151
  167. package/library/components/typography.js +2 -2
  168. package/library/components/video.js +2 -2
  169. package/library/components/visually-hidden.js +1 -1
  170. package/library/package.json +1 -1
  171. package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +33 -0
  172. package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +2 -0
  173. package/library/packages/organisms/src/content-builder/blocks/video/video.d.ts +1 -0
  174. package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/index.d.ts +13 -2
  175. package/library/packages/tools/src/tiptap/extensions/google/index.d.ts +4 -0
  176. package/library/packages/tools/src/tiptap/extensions/paste-inline-filter/index.d.ts +28 -0
  177. package/library/packages/tools/src/tiptap/utils/flatten-spans.d.ts +5 -0
  178. package/library/packages/tools/src/tiptap/utils/normalize-tabs.d.ts +7 -0
  179. package/library/packages/utils/src/transformation/transformation.d.ts +10 -29
  180. package/library/react-web-component.d.ts +20 -0
  181. package/library/utils.js +94 -95
  182. package/package.json +1 -1
  183. package/library/chunks/transformation.D27sTUdZ.js +0 -392
@@ -1,8 +1,8 @@
1
1
  import { C as F, n as l } from "./lib-cortex-element.CVMmyPMC.js";
2
- import { c as O } from "./component.styles.CRO4Odto.js";
2
+ import { c as O } from "./component.styles.CAS3c9pM.js";
3
3
  import { c as U } from "./custom-element.L4WJXn1j.js";
4
4
  import { L as N } from "./i18n.CNnI4-0K.js";
5
- import { c as X } from "./math.DuKzLacZ.js";
5
+ import { c as j } from "./math.DuKzLacZ.js";
6
6
  import { w as b } from "./watch.DJF5K-8U.js";
7
7
  import { i as R, x as m, E } from "./lit-element.jLBm65_O.js";
8
8
  import { r as g } from "./state.CSDxrqLd.js";
@@ -10,17 +10,17 @@ import { e as f } from "./query.BBf1UFkC.js";
10
10
  import { s as L, a as D, b as $ } from "./event.BeKOsirN.js";
11
11
  import { e as C } from "./class-map.BiVq-cVR.js";
12
12
  import { o as _ } from "./if-defined.BRoBj_Rp.js";
13
- import { l as j } from "./live.DCegntDo.js";
13
+ import { l as K } from "./live.DCegntDo.js";
14
14
  import { n as y } from "./when.Dr1es41R.js";
15
15
  import { g as z, s as G } from "./animation-registry.HmpwNuGH.js";
16
- import K from "../components/checkbox.js";
17
- import { C as V } from "./icon.CpHbi8tH.js";
18
- import W from "../components/line-clamp.js";
19
- import Y from "../components/spinner.js";
20
- import { i as J } from "./browser.BHOCIF_A.js";
21
- import { S as Q } from "./sortable.esm.oSzf6C5Q.js";
22
- import { v as ee } from "./v4.CKZ6klMF.js";
23
- function te(e, t, i) {
16
+ import V from "../components/checkbox.js";
17
+ import { C as W } from "./icon.BLXWp6CU.js";
18
+ import Y from "../components/line-clamp.js";
19
+ import J from "../components/spinner.js";
20
+ import { i as Q } from "./browser.BHOCIF_A.js";
21
+ import { S as ee } from "./sortable.esm.oSzf6C5Q.js";
22
+ import { v as te } from "./v4.CKZ6klMF.js";
23
+ function ie(e, t, i) {
24
24
  let a;
25
25
  return function(...r) {
26
26
  const n = this, d = function() {
@@ -29,8 +29,8 @@ function te(e, t, i) {
29
29
  a && clearTimeout(a), a = window.setTimeout(d, t);
30
30
  };
31
31
  }
32
- const ie = R`:host{--selected-color:var(--cx-color-primary-600);--selected-background-color:var(--cx-color-primary-50);--hover-background-color:var(--cx-menu-item-background-color-hover);--active-background-color:var(--cx-color-neutral-200);--item-padding:var(--cx-spacing-2x-small) var(--cx-spacing-x-small);outline:0;display:block}:host(:focus-visible) .tree-item{outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}[hidden]{display:none!important}slot:not([name])::slotted(cx-icon){margin-inline-end:var(--cx-spacing-x-small)}.tree-item{color:var(--cx-color-neutral-900);cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:column;align-items:stretch;display:flex;position:relative}.tree-item__checkbox{margin-inline-end:var(--cx-spacing-x-small)}.tree-item__expand-button,.tree-item__checkbox,.tree-item__label{font-family:var(--cx-font-sans);font-size:var(--cx-tree-item-font-size,var(--cx-font-size-small));font-weight:var(--cx-tree-item-font-weight,var(--cx-font-weight-medium));line-height:var(--cx-tree-item-line-height,var(--cx-line-height-large));letter-spacing:var(--cx-tree-item-letter-spacing,var(--cx-letter-spacing-normal))}.tree-item__checkbox::part(base){align-items:center;display:flex}.tree-item__checkbox::part(label){margin-inline-start:0}.tree-item__indentation{flex-shrink:0;width:1em;display:block}.tree-item__expand-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tree-item__expand-button{box-sizing:content-box;color:var(--cx-color-neutral-500);cursor:pointer;min-width:max(1em,1rem);min-height:max(1em,1rem);transition:var(--cx-transition-medium) rotate ease;flex-shrink:0;justify-content:center;align-items:center;display:flex;position:relative}.tree-item--expanded .tree-item__expand-button{rotate:90deg}.tree-item--expanded.tree-item--rtl .tree-item__expand-button{rotate:-90deg}.tree-item--expanded slot[name=expand-icon],.tree-item:not(.tree-item--expanded) slot[name=collapse-icon]{display:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item .tree-item__expand-icon-slot{color:var(--selected-color)}.tree-item:not(.tree-item--has-expand-button) .tree-item__expand-icon-slot{visibility:hidden;opacity:0;pointer-events:none}.tree-item__expand-button--visible{cursor:pointer}.tree-item__item{border-radius:var(--cx-border-radius-large);padding:var(--item-padding,var(--cx-spacing-x-small) var(--cx-spacing-small));transition:var(--cx-transition-x-fast) background-color ease;align-items:center;display:flex}.tree-item__item:hover{background-color:var(--hover-background-color)}.tree-item__item:active{background-color:var(--active-background-color)}.tree-item--disabled .tree-item__item{opacity:.5;cursor:default;outline:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{background-color:var(--selected-background-color);color:var(--selected-color)}:host(:not([aria-disabled=true])) .tree-item__expand-button{color:var(--cx-color-neutral)}:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected,:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__expand-button,:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){color:var(--cx-color-neutral-0)}:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){--hover-background-color:var(--cx-color-neutral-0)}.tree-item__label{align-items:center;display:flex}.tree-item__actions{font-size:var(--cx-font-size-medium);align-items:center;width:fit-content;margin-inline-start:auto;display:flex}.tree-item__actions::slotted(*){visibility:hidden;opacity:0;transition:var(--cx-transition-x-fast) visibility, var(--cx-transition-x-fast) opacity ease}.tree-item__item:hover .tree-item__actions::slotted(*){visibility:visible;opacity:1}@supports not (overlay:auto){.tree-item__actions::slotted(cx-dropdown[open]){visibility:visible;opacity:1}}.tree-item__children{font-size:calc(1em + var(--indent-size,var(--cx-spacing-medium)));gap:var(--children-gap,0);flex-direction:column;display:flex}@media (forced-colors:active){:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{outline:1px dashed selecteditem}}::slotted(cx-tree-item){--hover-background-color:inherit;--active-background-color:inherit;--selected-background-color:inherit;--selected-color:inherit}:host([variant=text]){--selected-background-color:transparent;--selected-color:inherit;--hover-background-color:transparent;--active-background-color:transparent;--hover-color:var(--cx-color-primary)}:host([variant=text]:not([aria-disabled=true])) .tree-item__item:hover{color:var(--hover-color)}:host([data-dragging]){position:relative}:host([data-dragging=inside]){background-color:var(--cx-color-primary-400)}:host([data-dragging=before]):before{content:"";border-top:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;top:0;left:0}:host([data-dragging=after]):before{content:"";border-bottom:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;bottom:0;left:0}`, I = "tree-sortable", w = 0.2, P = (e) => e == null;
33
- function ae() {
32
+ const ae = R`:host{--selected-color:var(--cx-color-primary-600);--selected-background-color:var(--cx-color-primary-50);--hover-background-color:var(--cx-menu-item-background-color-hover);--active-background-color:var(--cx-color-neutral-200);--item-padding:var(--cx-spacing-2x-small) var(--cx-spacing-x-small);outline:0;display:block}:host(:focus-visible) .tree-item{outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}[hidden]{display:none!important}slot:not([name])::slotted(cx-icon){margin-inline-end:var(--cx-spacing-x-small)}.tree-item{color:var(--cx-color-neutral-900);cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:column;align-items:stretch;display:flex;position:relative}.tree-item__checkbox{margin-inline-end:var(--cx-spacing-x-small)}.tree-item__expand-button,.tree-item__checkbox,.tree-item__label{font-family:var(--cx-font-sans);font-size:var(--cx-tree-item-font-size,var(--cx-font-size-small));font-weight:var(--cx-tree-item-font-weight,var(--cx-font-weight-medium));line-height:var(--cx-tree-item-line-height,var(--cx-line-height-large));letter-spacing:var(--cx-tree-item-letter-spacing,var(--cx-letter-spacing-normal))}.tree-item__checkbox::part(base){align-items:center;display:flex}.tree-item__checkbox::part(label){margin-inline-start:0}.tree-item__indentation{flex-shrink:0;width:1em;display:block}.tree-item__expand-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tree-item__expand-button{box-sizing:content-box;color:var(--cx-color-neutral-500);cursor:pointer;min-width:max(1em,1rem);min-height:max(1em,1rem);transition:var(--cx-transition-medium) rotate ease;flex-shrink:0;justify-content:center;align-items:center;display:flex;position:relative}.tree-item--expanded .tree-item__expand-button{rotate:90deg}.tree-item--expanded.tree-item--rtl .tree-item__expand-button{rotate:-90deg}.tree-item--expanded slot[name=expand-icon],.tree-item:not(.tree-item--expanded) slot[name=collapse-icon]{display:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item .tree-item__expand-icon-slot{color:var(--selected-color)}.tree-item:not(.tree-item--has-expand-button) .tree-item__expand-icon-slot{visibility:hidden;opacity:0;pointer-events:none}.tree-item__expand-button--visible{cursor:pointer}.tree-item__item{border-radius:var(--cx-border-radius-large);padding:var(--item-padding,var(--cx-spacing-x-small) var(--cx-spacing-small));transition:var(--cx-transition-x-fast) background-color ease;align-items:center;display:flex}.tree-item__item:hover{background-color:var(--hover-background-color)}.tree-item__item:active{background-color:var(--active-background-color)}.tree-item--disabled .tree-item__item{opacity:.5;cursor:default;outline:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{background-color:var(--selected-background-color);color:var(--selected-color)}:host(:not([aria-disabled=true])) .tree-item__expand-button{color:var(--cx-color-neutral)}:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected,:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__expand-button,:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){color:var(--cx-color-neutral-0)}:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){--hover-background-color:var(--cx-color-neutral-0)}.tree-item__label{align-items:center;display:flex}.tree-item__actions{font-size:var(--cx-font-size-medium);align-items:center;width:fit-content;margin-inline-start:auto;display:flex}.tree-item__actions::slotted(*){visibility:hidden;opacity:0;transition:var(--cx-transition-x-fast) visibility, var(--cx-transition-x-fast) opacity ease}.tree-item__item:hover .tree-item__actions::slotted(*){visibility:visible;opacity:1}@supports not (overlay:auto){.tree-item__actions::slotted(cx-dropdown[open]){visibility:visible;opacity:1}}.tree-item__children{font-size:calc(1em + var(--indent-size,var(--cx-spacing-medium)));gap:var(--children-gap,0);flex-direction:column;display:flex}@media (forced-colors:active){:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{outline:1px dashed selecteditem}}::slotted(cx-tree-item){--hover-background-color:inherit;--active-background-color:inherit;--selected-background-color:inherit;--selected-color:inherit}:host([variant=text]){--selected-background-color:transparent;--selected-color:inherit;--hover-background-color:transparent;--active-background-color:transparent;--hover-color:var(--cx-color-primary)}:host([variant=text]:not([aria-disabled=true])) .tree-item__item:hover{color:var(--hover-color)}:host([data-dragging]){position:relative}:host([data-dragging=inside]){background-color:var(--cx-color-primary-400)}:host([data-dragging=before]):before{content:"";border-top:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;top:0;left:0}:host([data-dragging=after]):before{content:"";border-bottom:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;bottom:0;left:0}`, I = "tree-sortable", w = 0.2, P = (e) => e == null;
33
+ function ne() {
34
34
  function e() {
35
35
  }
36
36
  let t = null;
@@ -54,7 +54,9 @@ function ae() {
54
54
  putSortable: x,
55
55
  target: p
56
56
  }) {
57
- if (t = null, !i || !i.options[I] || !i.options.getDropZone || P(i.options.insertBeforeZonePercentage) || P(i.options.insertAfterZonePercentage) || !["CX-TREE-ITEM", "CX-TREE"].includes(p.tagName) || p.hasAttribute("no-drag")) {
57
+ t = null;
58
+ const q = !!d?.contains(p);
59
+ if (!i || !i.options[I] || !i.options.getDropZone || P(i.options.insertBeforeZonePercentage) || P(i.options.insertAfterZonePercentage) || !["CX-TREE-ITEM", "CX-TREE"].includes(p.tagName) || p.hasAttribute("no-drag") || q) {
58
60
  a();
59
61
  return;
60
62
  }
@@ -65,8 +67,8 @@ function ae() {
65
67
  }
66
68
  const B = A.getBoundingClientRect(), T = (u.clientY - B.top) / B.height, S = x || this.sortable;
67
69
  S.captureAnimationState(), S !== i && i.captureAnimationState();
68
- const q = p.parentNode;
69
- if (d && q)
70
+ const X = p.parentNode;
71
+ if (d && X)
70
72
  if (T < i.options.insertBeforeZonePercentage)
71
73
  t = {
72
74
  dragEl: d,
@@ -114,7 +116,7 @@ function ae() {
114
116
  pluginName: I
115
117
  });
116
118
  }
117
- class v extends Q {
119
+ class v extends ee {
118
120
  constructor(t, i) {
119
121
  super(t, i);
120
122
  }
@@ -122,14 +124,14 @@ class v extends Q {
122
124
  return new v(t, i);
123
125
  }
124
126
  }
125
- v.mount(new ae());
127
+ v.mount(new ne());
126
128
  const M = (e) => ({
127
129
  ...e,
128
130
  animation: 100,
129
131
  draggable: "cx-tree-item:not([no-drag])",
130
132
  emptyInsertThreshold: 0,
131
133
  fallbackOnBody: !0,
132
- forceFallback: J(),
134
+ forceFallback: Q(),
133
135
  getDropZone: (t) => t?.shadowRoot?.querySelector(".tree-item__item"),
134
136
  insertAfterZonePercentage: 1 - w,
135
137
  insertBeforeZonePercentage: w,
@@ -143,10 +145,10 @@ const M = (e) => ({
143
145
  [I]: !0,
144
146
  swapThreshold: w
145
147
  });
146
- var ne = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, s = (e, t, i, a) => {
147
- for (var r = a > 1 ? void 0 : a ? oe(t, i) : t, n = e.length - 1, d; n >= 0; n--)
148
+ var oe = Object.defineProperty, re = Object.getOwnPropertyDescriptor, s = (e, t, i, a) => {
149
+ for (var r = a > 1 ? void 0 : a ? re(t, i) : t, n = e.length - 1, d; n >= 0; n--)
148
150
  (d = e[n]) && (r = (a ? d(t, i, r) : d(r)) || r);
149
- return a && r && ne(t, i, r), r;
151
+ return a && r && oe(t, i, r), r;
150
152
  };
151
153
  let o = class extends F {
152
154
  constructor() {
@@ -327,7 +329,7 @@ let o = class extends F {
327
329
  checked-icon:checkbox__checked-icon,
328
330
  indeterminate-icon:checkbox__indeterminate-icon,
329
331
  label:checkbox__label
330
- " class="tree-item__checkbox" ?disabled=${this.disabled} ?checked=${j(this.selected)} ?indeterminate=${this.indeterminate} tabindex="-1"></cx-checkbox>`
332
+ " class="tree-item__checkbox" ?disabled=${this.disabled} ?checked=${K(this.selected)} ?indeterminate=${this.indeterminate} tabindex="-1"></cx-checkbox>`
331
333
  )}
332
334
 
333
335
  ${y(
@@ -341,12 +343,12 @@ let o = class extends F {
341
343
  )}</div><div class="tree-item__children" part="children" role="group"><slot name="children" @slotchange=${this.handleChildrenSlotChange}></slot></div>`);
342
344
  }
343
345
  };
344
- o.styles = [O, ie];
346
+ o.styles = [O, ae];
345
347
  o.dependencies = {
346
- "cx-checkbox": K,
347
- "cx-icon": V,
348
- "cx-line-clamp": W,
349
- "cx-spinner": Y
348
+ "cx-checkbox": V,
349
+ "cx-icon": W,
350
+ "cx-line-clamp": Y,
351
+ "cx-spinner": J
350
352
  };
351
353
  s([
352
354
  f("slot:not([name])")
@@ -494,11 +496,11 @@ G("tree-item.collapse", {
494
496
  ],
495
497
  options: { duration: 200, easing: "cubic-bezier(0.4, 0.0, 0.2, 1)" }
496
498
  });
497
- const re = R`:host{--indent-guide-color:var(--cx-color-neutral-200);--indent-guide-offset:0;--indent-guide-style:solid;--indent-guide-width:0;--indent-size:var(--cx-spacing-large);font-size:0;display:block}:host::part(children){gap:var(--children-gap,0);flex-direction:column;display:flex}:host([dragging]) ::slotted(cx-tree-item){--hover-background-color:transparent!important;--active-background-color:transparent!important;--selected-background-color:transparent!important}`;
498
- var se = Object.defineProperty, le = Object.getOwnPropertyDescriptor, h = (e, t, i, a) => {
499
- for (var r = a > 1 ? void 0 : a ? le(t, i) : t, n = e.length - 1, d; n >= 0; n--)
499
+ const se = R`:host{--indent-guide-color:var(--cx-color-neutral-200);--indent-guide-offset:0;--indent-guide-style:solid;--indent-guide-width:0;--indent-size:var(--cx-spacing-large);font-size:0;display:block}:host::part(children){gap:var(--children-gap,0);flex-direction:column;display:flex}:host([dragging]) ::slotted(cx-tree-item){--hover-background-color:transparent!important;--active-background-color:transparent!important;--selected-background-color:transparent!important}`;
500
+ var le = Object.defineProperty, de = Object.getOwnPropertyDescriptor, h = (e, t, i, a) => {
501
+ for (var r = a > 1 ? void 0 : a ? de(t, i) : t, n = e.length - 1, d; n >= 0; n--)
500
502
  (d = e[n]) && (r = (a ? d(t, i, r) : d(r)) || r);
501
- return a && r && se(t, i, r), r;
503
+ return a && r && le(t, i, r), r;
502
504
  };
503
505
  function H(e) {
504
506
  const t = e.getChildrenItems({ includeDisabled: !1 });
@@ -533,7 +535,7 @@ let c = class extends F {
533
535
  }
534
536
  runConnectedCallback() {
535
537
  if (this.addEventListener("focusin", this.handleFocusIn), this.addEventListener("focusout", this.handleFocusOut), this.addEventListener("mousedown", this.handleHostMouseDown), this.addEventListener("cx-lazy-change", this.handleSlotChange), this.mutationObserver = new MutationObserver(this.handleTreeChanged), this.mutationObserver.observe(this, { childList: !0, subtree: !0 }), this.autoExpandToSelected) {
536
- const e = te(() => {
538
+ const e = ie(() => {
537
539
  customElements.whenDefined("cx-tree-item").then(() => {
538
540
  this.selectedItems.forEach((t) => {
539
541
  this.expandToItem(t);
@@ -647,7 +649,7 @@ let c = class extends F {
647
649
  if (t.length > 0) {
648
650
  e.preventDefault();
649
651
  const r = t.findIndex((x) => x.matches(":focus")), n = t[r], d = (x) => {
650
- const p = t[X(x, 0, t.length - 1)];
652
+ const p = t[j(x, 0, t.length - 1)];
651
653
  this.focusItem(p);
652
654
  }, u = (x) => {
653
655
  n.expanded = x;
@@ -725,7 +727,7 @@ let c = class extends F {
725
727
  }
726
728
  getSortableGroup() {
727
729
  if (!this.disabledSortableGroup)
728
- return this.sortableGroup || (this.sortableGroup = ee()), this.sortableGroup;
730
+ return this.sortableGroup || (this.sortableGroup = te()), this.sortableGroup;
729
731
  }
730
732
  handleSortableStart() {
731
733
  this.setAttribute("dragging", "");
@@ -789,7 +791,7 @@ let c = class extends F {
789
791
  return m`<div part="base" class="tree" @click=${this.handleClick} @keydown=${this.handleKeyDown} @mousedown=${this.handleMouseDown}><slot part="children" @slotchange=${this.handleSlotChange}></slot><span hidden aria-hidden="true"><slot name="expand-icon"></slot></span><span hidden aria-hidden="true"><slot name="collapse-icon"></slot></span></div>`;
790
792
  }
791
793
  };
792
- c.styles = [O, re];
794
+ c.styles = [O, se];
793
795
  h([
794
796
  f("slot:not([name])")
795
797
  ], c.prototype, "defaultSlot", 2);
@@ -859,6 +861,6 @@ export {
859
861
  c as a,
860
862
  Z as b,
861
863
  H as c,
862
- te as d,
864
+ ie as d,
863
865
  k as s
864
866
  };