@orangelogic/design-system 2.48.0 → 2.49.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 (189) hide show
  1. package/library/chunks/{amazon_s3.BB3xCgkt.js → amazon_s3.DeaMdPPn.js} +1 -1
  2. package/library/chunks/{animation.DPqSuC7g.js → animation.B7d72NVK.js} +2 -2
  3. package/library/chunks/{button.DQ1SyxmK.js → button.DCaz7tVb.js} +39 -33
  4. package/library/chunks/{button.styles.CRh5_Ev4.js → button.styles.C8AIO8fd.js} +1 -1
  5. package/library/chunks/{chatbot.D37AAQvv.js → chatbot.sm4Rph1v.js} +2 -2
  6. package/library/chunks/{class-map.DqNfBvJI.js → class-map.CoZTSvbM.js} +1 -1
  7. package/library/chunks/{color-swatch-group.DN7t4a6b.js → color-swatch-group.18TICCVX.js} +16 -13
  8. package/library/chunks/{color-swatch.CyN0Rfwc.js → color-swatch.BVFmLzfK.js} +9 -9
  9. package/library/chunks/{component.styles.DtouHn2g.js → component.styles.CI-v8BZa.js} +1 -1
  10. package/library/chunks/{confirm-popover.CFrckJqd.js → confirm-popover.BvRVjl2b.js} +6 -6
  11. package/library/chunks/{cropper.CfSeVI5y.js → cropper.aA0v16xS.js} +3 -3
  12. package/library/chunks/{custom-element.fmLrnDZr.js → custom-element.vnXBMQxc.js} +17 -11
  13. package/library/chunks/{default-value.BrNrMtnz.js → default-value.CIKAvD5l.js} +1 -1
  14. package/library/chunks/{dialog.B1-k8d10.js → dialog.Cj9XqgFc.js} +26 -23
  15. package/library/chunks/{directive-helpers.D78ZFDYN.js → directive-helpers.DBHob-_L.js} +1 -1
  16. package/library/chunks/{dom.DDszM5Cy.js → dom.CaZCTJCL.js} +1 -1
  17. package/library/chunks/{dot-pagination.Ci2f-RDI.js → dot-pagination.Bl8K-G8Q.js} +5 -5
  18. package/library/chunks/{file-on-demand.DKBPqNSf.js → file-on-demand.BQR4rKDc.js} +15 -15
  19. package/library/chunks/{folder-select.BY9NfYq8.js → folder-select.ez3fKPUF.js} +10 -10
  20. package/library/chunks/{form-control.styles.j0hNjZTU.js → form-control.styles.NE2Q-quE.js} +1 -1
  21. package/library/chunks/{form.BY8-x3IU.js → form.DycFDdkp.js} +1 -1
  22. package/library/chunks/{guard.L-Ctqt3S.js → guard.BDP4A85K.js} +1 -1
  23. package/library/chunks/{header.55H9vN7t.js → header.BZiLoNKd.js} +8 -8
  24. package/library/chunks/{hub-connection.BiLljnv2.js → hub-connection.CxfaT11o.js} +2 -2
  25. package/library/chunks/{if-defined.CKupVaWs.js → if-defined.MfEgpxEN.js} +1 -1
  26. package/library/chunks/{iframe.BYMxR3Sc.js → iframe.BULqQVyL.js} +4 -4
  27. package/library/chunks/{image.qBD2O7kA.js → image.CRz6QPaa.js} +42 -39
  28. package/library/chunks/{list-editor.BT8jyXOn.js → list-editor.c__KOqBj.js} +11 -11
  29. package/library/chunks/{live.DCdtYl87.js → live.LdB9xEhp.js} +2 -2
  30. package/library/chunks/{mailchimp.ZMIYWF8f.js → mailchimp.BjbPJfd-.js} +1 -1
  31. package/library/chunks/{option.DrGgLWa5.js → option.Bx0TQ3Aw.js} +4 -4
  32. package/library/chunks/{orangelogic.B9VE3Ocx.js → orangelogic.BgbQXkBv.js} +1 -1
  33. package/library/chunks/{overlayscrollbars.BhATcEys.js → overlayscrollbars.aFuRG5Rs.js} +1 -1
  34. package/library/chunks/{popup.dmeEbJcf.js → popup.DjWAljHx.js} +99 -99
  35. package/library/chunks/{ref.BDmlFGTP.js → ref.BaCjlzLO.js} +2 -2
  36. package/library/chunks/{repeat.B1pVpmRx.js → repeat.CauKaXyy.js} +2 -2
  37. package/library/chunks/{select.Bc4UXmFy.js → select.kCK7Ljie.js} +11 -11
  38. package/library/chunks/{state.Dt9F_SuS.js → state.Cw55xXlb.js} +1 -1
  39. package/library/chunks/{static.kLXgh3Gq.js → static.BjNkqt7_.js} +1 -1
  40. package/library/chunks/{style-map.lEJHEwk3.js → style-map.CZovMmo_.js} +1 -1
  41. package/library/chunks/{tab-group.BHNXl1XO.js → tab-group.D5JZyPZM.js} +8 -8
  42. package/library/chunks/{table.CNDxXSQ-.js → table.D_DSVLyS.js} +11 -11
  43. package/library/chunks/{timecode.DYwU2oVN.js → timecode.D4_FNCCI.js} +4 -4
  44. package/library/chunks/{tree.CwqbM4ad.js → tree.DmH2Ckn-.js} +22 -21
  45. package/library/chunks/{typography.trna8y2b.js → typography.BFpl0WMA.js} +2 -2
  46. package/library/chunks/{unsafe-html.BpqikVtf.js → unsafe-html.DyO9_Rsq.js} +1 -1
  47. package/library/components/alert.js +4 -4
  48. package/library/components/animated-image.js +3 -3
  49. package/library/components/animation.js +3 -3
  50. package/library/components/asset-link-format.js +89 -80
  51. package/library/components/atoms.js +18 -18
  52. package/library/components/avatar.js +4 -4
  53. package/library/components/badge.js +3 -3
  54. package/library/components/bicolor-picker.js +3 -3
  55. package/library/components/border-input-group.js +2 -2
  56. package/library/components/breadcrumb-item.js +5 -5
  57. package/library/components/breadcrumb.js +2 -2
  58. package/library/components/button-group.js +3 -3
  59. package/library/components/button.js +9 -9
  60. package/library/components/card.js +3 -3
  61. package/library/components/checkbox.js +9 -9
  62. package/library/components/color-picker.js +10 -10
  63. package/library/components/color-swatch-group.js +13 -13
  64. package/library/components/color-swatch.js +10 -10
  65. package/library/components/confirm-popover.js +7 -7
  66. package/library/components/copy-button.js +4 -4
  67. package/library/components/corner-position-input-group.js +4 -4
  68. package/library/components/cropper.js +4 -4
  69. package/library/components/details.js +7 -4
  70. package/library/components/dialog.js +9 -9
  71. package/library/components/divider.js +2 -2
  72. package/library/components/dot-pagination.js +6 -6
  73. package/library/components/dot-status.js +3 -3
  74. package/library/components/drawer.js +11 -11
  75. package/library/components/dropdown.js +7 -10
  76. package/library/components/dynamic-select.js +7 -7
  77. package/library/components/element-clamp.js +5 -5
  78. package/library/components/file-on-demand.js +15 -15
  79. package/library/components/folder-select.js +6 -6
  80. package/library/components/format-bytes.js +1 -1
  81. package/library/components/format-date.js +1 -1
  82. package/library/components/format-number.js +1 -1
  83. package/library/components/format-time.js +3 -3
  84. package/library/components/grid-item.js +3 -3
  85. package/library/components/grid.js +4 -4
  86. package/library/components/header.js +6 -6
  87. package/library/components/hub-connection.js +3 -3
  88. package/library/components/icon-button.js +15 -12
  89. package/library/components/icon.js +8 -8
  90. package/library/components/iframe.js +5 -5
  91. package/library/components/image-comparer.js +4 -4
  92. package/library/components/image.js +8 -8
  93. package/library/components/include.js +2 -2
  94. package/library/components/input-group.js +3 -3
  95. package/library/components/input.js +25 -25
  96. package/library/components/line-clamp.js +5 -5
  97. package/library/components/list-editor.js +11 -11
  98. package/library/components/markdown.js +3 -3
  99. package/library/components/masonry.js +43 -43
  100. package/library/components/menu-item.js +10 -8
  101. package/library/components/menu-label.js +2 -2
  102. package/library/components/menu-section.js +2 -2
  103. package/library/components/menu.js +3 -3
  104. package/library/components/molecules.js +5 -5
  105. package/library/components/mutation-observer.js +2 -2
  106. package/library/components/option.js +5 -5
  107. package/library/components/organisms.js +2 -2
  108. package/library/components/padding-input-group.js +3 -3
  109. package/library/components/pagination.js +9 -9
  110. package/library/components/popup.js +4 -4
  111. package/library/components/position-picker.js +2 -2
  112. package/library/components/progress-bar.js +5 -5
  113. package/library/components/progress-ring.js +3 -3
  114. package/library/components/qr-code.js +3 -3
  115. package/library/components/radio-button.js +7 -7
  116. package/library/components/radio-card.js +4 -4
  117. package/library/components/radio-group.js +8 -8
  118. package/library/components/radio.js +4 -4
  119. package/library/components/range.js +13 -13
  120. package/library/components/rating.js +7 -7
  121. package/library/components/relative-time.js +2 -2
  122. package/library/components/resize-observer.js +2 -2
  123. package/library/components/select.js +12 -12
  124. package/library/components/shadow-input-group.js +3 -3
  125. package/library/components/share-option-list.js +17 -17
  126. package/library/components/sidebar.js +4 -4
  127. package/library/components/size-input-group.js +5 -5
  128. package/library/components/skeleton.js +3 -3
  129. package/library/components/space.js +2 -2
  130. package/library/components/spinner.js +2 -2
  131. package/library/components/split-panel.js +19 -16
  132. package/library/components/step.js +4 -4
  133. package/library/components/stepper-wizard.js +4 -4
  134. package/library/components/stepper.js +4 -4
  135. package/library/components/switch.js +9 -9
  136. package/library/components/tab-group.js +9 -9
  137. package/library/components/tab-panel.js +3 -3
  138. package/library/components/tab.js +3 -3
  139. package/library/components/table.js +6 -6
  140. package/library/components/tag.js +3 -3
  141. package/library/components/textarea.js +9 -9
  142. package/library/components/timecode.js +5 -5
  143. package/library/components/tooltip.js +25 -22
  144. package/library/components/tree-item.js +7 -7
  145. package/library/components/tree.js +4 -4
  146. package/library/components/typeface.js +5 -5
  147. package/library/components/types.js +2900 -2890
  148. package/library/components/typography.js +3 -3
  149. package/library/components/video.js +8 -5
  150. package/library/components/visually-hidden.js +2 -2
  151. package/library/package.json +1 -1
  152. package/library/packages/atoms/src/components/button/button.d.ts +4 -0
  153. package/library/packages/atoms/src/components/details/details.d.ts +1 -0
  154. package/library/packages/atoms/src/components/dialog/dialog.d.ts +1 -0
  155. package/library/packages/atoms/src/components/drawer/drawer.d.ts +1 -1
  156. package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +1 -2
  157. package/library/packages/atoms/src/components/header/header.d.ts +1 -1
  158. package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +3 -1
  159. package/library/packages/atoms/src/components/image/image.d.ts +1 -0
  160. package/library/packages/atoms/src/components/input/input.d.ts +1 -1
  161. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +1 -1
  162. package/library/packages/atoms/src/components/popup/popup.d.ts +1 -1
  163. package/library/packages/atoms/src/components/split-panel/split-panel.d.ts +1 -0
  164. package/library/packages/atoms/src/components/tooltip/tooltip.d.ts +1 -0
  165. package/library/packages/atoms/src/components/tree/tree.d.ts +1 -1
  166. package/library/packages/atoms/src/components/video/video.d.ts +1 -0
  167. package/library/packages/base/src/cortex-element.d.ts +2 -0
  168. package/library/packages/molecules/src/3d-viewer/3d-viewer.d.ts +1 -5
  169. package/library/packages/molecules/src/3d-viewer/components/3d-viewer-config/3d-viewer-config.d.ts +1 -1
  170. package/library/packages/molecules/src/masonry/masonry.d.ts +1 -1
  171. package/library/packages/molecules/src/page-outline/page-outline.d.ts +1 -1
  172. package/library/packages/molecules/src/search-box/search-box.d.ts +1 -0
  173. package/library/packages/molecules/src/share-option-list/share-option-list.d.ts +2 -2
  174. package/library/packages/molecules/src/view-and-sort/view-and-sort.d.ts +1 -1
  175. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +1 -0
  176. package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +1 -1
  177. package/library/packages/organisms/src/carousel/carousel.d.ts +2 -1
  178. package/library/packages/organisms/src/cluster-management/cluster-management.d.ts +1 -0
  179. package/library/packages/organisms/src/color-swatch-group/color-swatch-group.d.ts +1 -0
  180. package/library/packages/organisms/src/comment/components/comment-menu/comment-menu.d.ts +1 -1
  181. package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +1 -2
  182. package/library/packages/organisms/src/content-builder/content-builder.d.ts +1 -1
  183. package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/rte-bubble-menu.d.ts +1 -0
  184. package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/rte-image-viewer.d.ts +1 -0
  185. package/library/packages/organisms/src/video-editor/components/video-editor-timeline/video-editor-timeline.d.ts +1 -0
  186. package/library/packages/organisms/src/video-editor/components/video-editor-track/video-editor-track.d.ts +1 -1
  187. package/library/packages/organisms/src/video-editor/components/video-editor-tracks/video-editor-tracks.d.ts +1 -1
  188. package/library/packages/organisms/src/video-editor/video-editor.d.ts +1 -1
  189. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { T as A } from "./custom-element.fmLrnDZr.js";
1
+ import { T as A } from "./custom-element.vnXBMQxc.js";
2
2
  import { e as M, i as b, t as j } from "./directive.oAbCiebi.js";
3
- import { p as C, v as h, s as v, M as x, m as D } from "./directive-helpers.D78ZFDYN.js";
3
+ import { p as C, v as h, s as v, M as x, m as D } from "./directive-helpers.DBHob-_L.js";
4
4
  /**
5
5
  * @license
6
6
  * Copyright 2017 Google LLC
@@ -1,24 +1,24 @@
1
1
  import O from "../components/line-clamp.js";
2
- import { C } from "./typography.trna8y2b.js";
3
- import { i as S, n as o, C as k, x as p, E as z, c as D } from "./custom-element.fmLrnDZr.js";
4
- import { c as I } from "./component.styles.DtouHn2g.js";
5
- import { f as L } from "./form-control.styles.j0hNjZTU.js";
2
+ import { C } from "./typography.BFpl0WMA.js";
3
+ import { i as S, n as o, C as k, x as p, E as z, c as D } from "./custom-element.vnXBMQxc.js";
4
+ import { c as I } from "./component.styles.CI-v8BZa.js";
5
+ import { f as L } from "./form-control.styles.NE2Q-quE.js";
6
6
  import { s as w, a as x, g as y, b as v } from "./animation-registry.DavRkTTr.js";
7
- import { d as $ } from "./default-value.BrNrMtnz.js";
7
+ import { d as $ } from "./default-value.CIKAvD5l.js";
8
8
  import { w as _ } from "./event.mFzZi4sr.js";
9
- import { F as E } from "./form.BY8-x3IU.js";
9
+ import { F as E } from "./form.DycFDdkp.js";
10
10
  import { L as T } from "./i18n.CXUGdxzx.js";
11
11
  import { s as A } from "./scroll.DwPiX2Ox.js";
12
12
  import { H as B } from "./slot.DJLm4Dig.js";
13
13
  import { w as h } from "./watch.BCJD77bD.js";
14
- import { r as f } from "./state.Dt9F_SuS.js";
14
+ import { r as f } from "./state.Cw55xXlb.js";
15
15
  import { e as u } from "./query.BBf1UFkC.js";
16
- import { e as b } from "./class-map.DqNfBvJI.js";
17
- import { o as F } from "./unsafe-html.BpqikVtf.js";
16
+ import { e as b } from "./class-map.CoZTSvbM.js";
17
+ import { o as F } from "./unsafe-html.DyO9_Rsq.js";
18
18
  import { n as m } from "./when.Dr1es41R.js";
19
19
  import V from "../components/icon.js";
20
- import { C as d } from "./option.DrGgLWa5.js";
21
- import { C as P } from "./popup.dmeEbJcf.js";
20
+ import { C as d } from "./option.Bx0TQ3Aw.js";
21
+ import { C as P } from "./popup.DjWAljHx.js";
22
22
  import M from "../components/spinner.js";
23
23
  import U from "../components/tag.js";
24
24
  const N = () => navigator.userAgent.includes("Cortex") || navigator.userAgent.includes("Photoshop") || navigator.userAgent.includes("AfterEffect") || navigator.userAgent.includes("Illustrator"), R = (e) => !(document.createElement(e.tagName).constructor === HTMLElement || customElements.get(e.tagName.toLowerCase())), W = S`
@@ -1,4 +1,4 @@
1
- import { n as r } from "./custom-element.fmLrnDZr.js";
1
+ import { n as r } from "./custom-element.vnXBMQxc.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -1,4 +1,4 @@
1
- import { x as S } from "./custom-element.fmLrnDZr.js";
1
+ import { x as S } from "./custom-element.vnXBMQxc.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2020 Google LLC
@@ -1,4 +1,4 @@
1
- import { T as l } from "./custom-element.fmLrnDZr.js";
1
+ import { T as l } from "./custom-element.vnXBMQxc.js";
2
2
  import { e as u, i as c, t as d } from "./directive.oAbCiebi.js";
3
3
  /**
4
4
  * @license
@@ -1,21 +1,21 @@
1
1
  import In from "../components/resize-observer.js";
2
- import { i as Fn, n as wt, C as Ln, x as $t, c as $n } from "./custom-element.fmLrnDZr.js";
3
- import { c as Nn } from "./component.styles.DtouHn2g.js";
2
+ import { i as Fn, n as wt, C as Ln, x as $t, c as $n } from "./custom-element.vnXBMQxc.js";
3
+ import { c as Nn } from "./component.styles.CI-v8BZa.js";
4
4
  import { L as Bn } from "./i18n.CXUGdxzx.js";
5
5
  import { s as Zi } from "./scroll.DwPiX2Ox.js";
6
6
  import { w as ft } from "./watch.BCJD77bD.js";
7
- import { i as Wn } from "./dom.DDszM5Cy.js";
7
+ import { i as Wn } from "./dom.CaZCTJCL.js";
8
8
  import { s as Vn } from "./parse.Cu5nBDTb.js";
9
- import { r as at } from "./state.Dt9F_SuS.js";
9
+ import { r as at } from "./state.Cw55xXlb.js";
10
10
  import { t as Un } from "./event-options.CYHYGOd8.js";
11
11
  import { e as It } from "./query.BBf1UFkC.js";
12
12
  import { r as Hn } from "./query-all.i3PyvTUQ.js";
13
- import { e as Nt } from "./class-map.DqNfBvJI.js";
14
- import { i as Ji } from "./guard.L-Ctqt3S.js";
13
+ import { e as Nt } from "./class-map.CoZTSvbM.js";
14
+ import { i as Ji } from "./guard.BDP4A85K.js";
15
15
  import { o as tr } from "./map.D8heArFD.js";
16
- import { o as Ue } from "./style-map.lEJHEwk3.js";
16
+ import { o as Ue } from "./style-map.CZovMmo_.js";
17
17
  import { n as Pe } from "./when.Dr1es41R.js";
18
- import { C as Yn } from "./button.DQ1SyxmK.js";
18
+ import { C as Yn } from "./button.DCaz7tVb.js";
19
19
  import Xn from "../components/dropdown.js";
20
20
  import qn from "../components/icon-button.js";
21
21
  import Gn from "../components/menu.js";
@@ -4,30 +4,30 @@ import fs from "../components/line-clamp.js";
4
4
  import Yt from "../components/space.js";
5
5
  import ms from "../components/spinner.js";
6
6
  import gs from "../components/tag.js";
7
- import { i as Qt, n as y, C as Ue, x as T, E as bs, c as $e } from "./custom-element.fmLrnDZr.js";
8
- import { c as Zt } from "./component.styles.DtouHn2g.js";
9
- import { o as ws, O as vs } from "./overlayscrollbars.BhATcEys.js";
7
+ import { i as Qt, n as y, C as Ue, x as T, E as bs, c as $e } from "./custom-element.vnXBMQxc.js";
8
+ import { c as Zt } from "./component.styles.CI-v8BZa.js";
9
+ import { o as ws, O as vs } from "./overlayscrollbars.aFuRG5Rs.js";
10
10
  import { P as ys } from "./pagination.y5oqoPVr.js";
11
11
  import { L as ei } from "./i18n.CXUGdxzx.js";
12
12
  import { w as X } from "./watch.BCJD77bD.js";
13
- import { r as Ae } from "./state.Dt9F_SuS.js";
13
+ import { r as Ae } from "./state.Cw55xXlb.js";
14
14
  import { e as Te } from "./query.BBf1UFkC.js";
15
- import { e as Cs } from "./class-map.DqNfBvJI.js";
15
+ import { e as Cs } from "./class-map.CoZTSvbM.js";
16
16
  import { n as q } from "./when.Dr1es41R.js";
17
- import { C as ti } from "./button.DQ1SyxmK.js";
17
+ import { C as ti } from "./button.DCaz7tVb.js";
18
18
  import ii from "../components/icon.js";
19
19
  import si from "../components/tooltip.js";
20
20
  import { r as Es } from "./choose.BTbF6BAn.js";
21
- import { o as xs } from "./if-defined.CKupVaWs.js";
22
- import { c as et } from "./repeat.B1pVpmRx.js";
23
- import { o as tt } from "./style-map.lEJHEwk3.js";
21
+ import { o as xs } from "./if-defined.MfEgpxEN.js";
22
+ import { c as et } from "./repeat.CauKaXyy.js";
23
+ import { o as tt } from "./style-map.CZovMmo_.js";
24
24
  import ts from "../components/dropdown.js";
25
25
  import is from "../components/menu.js";
26
26
  import ss from "../components/menu-item.js";
27
27
  import Rs from "../components/menu-section.js";
28
28
  import Ts from "../components/input.js";
29
- import { C as ks } from "./typography.trna8y2b.js";
30
- import { g as W } from "./dom.DDszM5Cy.js";
29
+ import { C as ks } from "./typography.BFpl0WMA.js";
30
+ import { g as W } from "./dom.CaZCTJCL.js";
31
31
  import { s as R } from "./string.D6poLUEC.js";
32
32
  import { a as Ms } from "./index.Cpamj0jB.js";
33
33
  var Z = /* @__PURE__ */ ((l) => (l.Bottom = "bottom", l.Center = "center", l.Nearest = "nearest", l.Top = "top", l))(Z || {}), U = /* @__PURE__ */ ((l) => (l.All = "all", l.Cell = "cell", l.Column = "column", l.Row = "row", l))(U || {}), os = /* @__PURE__ */ ((l) => (l.Left = "left", l.Right = "right", l))(os || {}), ie = /* @__PURE__ */ ((l) => (l.Local = "local", l.Remote = "remote", l))(ie || {}), A = /* @__PURE__ */ ((l) => (l.Asc = "asc", l.Desc = "desc", l.None = "none", l))(A || {}), ge = /* @__PURE__ */ ((l) => (l.Ends = "ends", l.Equal = "=", l.GreaterOrEqual = ">=", l.GreaterThan = ">", l.In = "in", l.Keywords = "keywords", l.LessOrEqual = "<=", l.LessThan = "<", l.Like = "like", l.NotEqual = "!=", l.Regex = "regex", l.Starts = "starts", l))(ge || {});
@@ -1,9 +1,9 @@
1
- import { C as l, T as d } from "./typography.trna8y2b.js";
2
- import { i as y, n as s, C as f, E as g, x as u, c as x } from "./custom-element.fmLrnDZr.js";
3
- import { c as v } from "./component.styles.DtouHn2g.js";
1
+ import { C as l, T as d } from "./typography.BFpl0WMA.js";
2
+ import { i as y, n as s, C as f, E as g, x as u, c as x } from "./custom-element.vnXBMQxc.js";
3
+ import { c as v } from "./component.styles.CI-v8BZa.js";
4
4
  import { T as b, f as c } from "./string.D6poLUEC.js";
5
5
  import { w as h } from "./watch.BCJD77bD.js";
6
- import { r as S } from "./state.Dt9F_SuS.js";
6
+ import { r as S } from "./state.Cw55xXlb.js";
7
7
  const C = {
8
8
  fromAttribute: (r) => r?.split(" ").map((e) => {
9
9
  const o = Number.parseFloat(e);
@@ -1,14 +1,14 @@
1
- import { i as R, C as N, x as g, E as L, n as l, c as G } from "./custom-element.fmLrnDZr.js";
2
- import { c as M } from "./component.styles.DtouHn2g.js";
1
+ import { i as R, C as N, x as g, E as L, n as l, c as G } from "./custom-element.vnXBMQxc.js";
2
+ import { c as M } from "./component.styles.CI-v8BZa.js";
3
3
  import { L as Z } from "./i18n.CXUGdxzx.js";
4
4
  import { c as K } from "./math.DqTA6ya4.js";
5
5
  import { w as b } from "./watch.BCJD77bD.js";
6
- import { r as y } from "./state.Dt9F_SuS.js";
6
+ import { r as y } from "./state.Cw55xXlb.js";
7
7
  import { e as f } from "./query.BBf1UFkC.js";
8
8
  import { a as z, g as P, b as U, c as $, s as H } from "./animation-registry.DavRkTTr.js";
9
- import { e as w } from "./class-map.DqNfBvJI.js";
10
- import { o as _ } from "./if-defined.CKupVaWs.js";
11
- import { l as W } from "./live.DCdtYl87.js";
9
+ import { e as C } from "./class-map.CoZTSvbM.js";
10
+ import { o as _ } from "./if-defined.MfEgpxEN.js";
11
+ import { l as W } from "./live.LdB9xEhp.js";
12
12
  import { n as E } from "./when.Dr1es41R.js";
13
13
  import Y from "../components/checkbox.js";
14
14
  import J from "../components/icon.js";
@@ -30,15 +30,15 @@ for (let e = 0; e < 256; ++e)
30
30
  function ne(e, t = 0) {
31
31
  return (p[e[t + 0]] + p[e[t + 1]] + p[e[t + 2]] + p[e[t + 3]] + "-" + p[e[t + 4]] + p[e[t + 5]] + "-" + p[e[t + 6]] + p[e[t + 7]] + "-" + p[e[t + 8]] + p[e[t + 9]] + "-" + p[e[t + 10]] + p[e[t + 11]] + p[e[t + 12]] + p[e[t + 13]] + p[e[t + 14]] + p[e[t + 15]]).toLowerCase();
32
32
  }
33
- let I;
33
+ let w;
34
34
  const oe = new Uint8Array(16);
35
35
  function ae() {
36
- if (!I) {
36
+ if (!w) {
37
37
  if (typeof crypto > "u" || !crypto.getRandomValues)
38
38
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
39
- I = crypto.getRandomValues.bind(crypto);
39
+ w = crypto.getRandomValues.bind(crypto);
40
40
  }
41
- return I(oe);
41
+ return w(oe);
42
42
  }
43
43
  const re = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), F = { randomUUID: re };
44
44
  function se(e, t, i) {
@@ -303,7 +303,7 @@ const le = R`
303
303
  width: 100%;
304
304
  border-bottom: var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);
305
305
  }
306
- `, k = "tree-sortable", C = 0.2, O = (e) => e == null;
306
+ `, k = "tree-sortable", I = 0.2, O = (e) => e == null;
307
307
  function de() {
308
308
  function e() {
309
309
  }
@@ -405,8 +405,8 @@ const j = (e) => ({
405
405
  fallbackOnBody: !0,
406
406
  forceFallback: ee(),
407
407
  getDropZone: (t) => t?.shadowRoot?.querySelector(".tree-item__item"),
408
- insertAfterZonePercentage: 1 - C,
409
- insertBeforeZonePercentage: C,
408
+ insertAfterZonePercentage: 1 - I,
409
+ insertBeforeZonePercentage: I,
410
410
  invertSwap: !0,
411
411
  onStart(t) {
412
412
  if (e.onStart?.(t), t.item.tagName === "CX-TREE-ITEM") {
@@ -415,7 +415,7 @@ const j = (e) => ({
415
415
  }
416
416
  },
417
417
  [k]: !0,
418
- swapThreshold: C
418
+ swapThreshold: I
419
419
  });
420
420
  var ce = Object.defineProperty, he = Object.getOwnPropertyDescriptor, s = (e, t, i, n) => {
421
421
  for (var r = n > 1 ? void 0 : n ? he(t, i) : t, o = e.length - 1, d; o >= 0; o--)
@@ -515,7 +515,7 @@ let a = class extends N {
515
515
  const e = this.localize.dir() === "rtl", t = this.showExpandButton;
516
516
  return g` <div
517
517
  part="expand-button"
518
- class=${w({
518
+ class=${C({
519
519
  "tree-item__expand-button": !0,
520
520
  "tree-item__expand-button--visible": t
521
521
  })}
@@ -583,7 +583,7 @@ let a = class extends N {
583
583
  <a
584
584
  id="anchor"
585
585
  part="base"
586
- class=${w({
586
+ class=${C({
587
587
  "tree-item": !0,
588
588
  "tree-item--disabled": this.disabled,
589
589
  "tree-item--expanded": this.expanded,
@@ -603,7 +603,7 @@ let a = class extends N {
603
603
  ` : g`
604
604
  <div
605
605
  part="base"
606
- class=${w({
606
+ class=${C({
607
607
  "tree-item": !0,
608
608
  "tree-item--disabled": this.disabled,
609
609
  "tree-item--expanded": this.expanded,
@@ -887,10 +887,10 @@ function A(e, t = !1, i = "single") {
887
887
  }
888
888
  let c = class extends N {
889
889
  constructor() {
890
- super(), this.sortable = !1, this.sortableGroup = null, this.disabledSortableGroup = !1, this.selection = "single", this.disabledAutoExpand = !1, this.autoExpandToSelected = !1, this.expandButtonPlacement = "start", this.noForwardExpandButtonPlacement = !1, this.forceOnChange = !1, this.labelSelectSingle = !1, this.noDragInside = !1, this.noIndeterminatePreviouslySelected = !1, this.focusable = !1, this.clickTarget = null, this.localize = new Z(this), this.sortableInstance = null, this.handleSortableUpdate = this.handleSortableUpdate.bind(this), this.handleSortableStart = this.handleSortableStart.bind(this), this.handleSortableEnd = this.handleSortableEnd.bind(this), this.handleFocusIn = this.handleFocusIn.bind(this), this.handleFocusOut = this.handleFocusOut.bind(this), this.handleSlotChange = this.handleSlotChange.bind(this), this.handleTreeChanged = this.handleTreeChanged.bind(this), this.initTreeItem = this.initTreeItem.bind(this), this.addEventListener("focusin", this.handleFocusIn), this.addEventListener("focusout", this.handleFocusOut), this.addEventListener("cx-lazy-change", this.handleSlotChange);
890
+ super(), this.sortable = !1, this.sortableGroup = null, this.disabledSortableGroup = !1, this.selection = "single", this.disabledAutoExpand = !1, this.autoExpandToSelected = !1, this.expandButtonPlacement = "start", this.noForwardExpandButtonPlacement = !1, this.forceOnChange = !1, this.labelSelectSingle = !1, this.noDragInside = !1, this.noIndeterminatePreviouslySelected = !1, this.focusable = !1, this.clickTarget = null, this.localize = new Z(this), this.sortableInstance = null, this.handleSortableUpdate = this.handleSortableUpdate.bind(this), this.handleSortableStart = this.handleSortableStart.bind(this), this.handleSortableEnd = this.handleSortableEnd.bind(this), this.handleFocusIn = this.handleFocusIn.bind(this), this.handleFocusOut = this.handleFocusOut.bind(this), this.handleSlotChange = this.handleSlotChange.bind(this), this.handleTreeChanged = this.handleTreeChanged.bind(this), this.initTreeItem = this.initTreeItem.bind(this);
891
891
  }
892
- runFirstUpdated() {
893
- if (this.setAttribute("role", "tree"), this.setAttribute("tabindex", "0"), this.mutationObserver = new MutationObserver(this.handleTreeChanged), this.mutationObserver.observe(this, { childList: !0, subtree: !0 }), this.autoExpandToSelected) {
892
+ runConnectedCallback() {
893
+ if (this.addEventListener("focusin", this.handleFocusIn), this.addEventListener("focusout", this.handleFocusOut), this.addEventListener("cx-lazy-change", this.handleSlotChange), this.setAttribute("role", "tree"), this.setAttribute("tabindex", "0"), this.mutationObserver = new MutationObserver(this.handleTreeChanged), this.mutationObserver.observe(this, { childList: !0, subtree: !0 }), this.autoExpandToSelected) {
894
894
  const e = ie(() => {
895
895
  customElements.whenDefined("cx-tree-item").then(() => {
896
896
  this.selectedItems.forEach((t) => {
@@ -905,9 +905,10 @@ let c = class extends N {
905
905
  subtree: !0
906
906
  });
907
907
  }
908
+ this.hasUpdated && this.sortable && this.initSortable();
908
909
  }
909
910
  disconnectedCallback() {
910
- super.disconnectedCallback(), this.mutationObserver?.disconnect(), this.autoExpandObserver?.disconnect(), this.destroySortable();
911
+ super.disconnectedCallback(), this.removeEventListener("focusin", this.handleFocusIn), this.removeEventListener("focusout", this.handleFocusOut), this.removeEventListener("cx-lazy-change", this.handleSlotChange), this.mutationObserver?.disconnect(), this.autoExpandObserver?.disconnect(), this.destroySortable();
911
912
  }
912
913
  /**
913
914
  * Generates a clone of the expand icon element to use for each tree item
@@ -1,5 +1,5 @@
1
- import { i as f, n as v, C as c, x as i, c as d } from "./custom-element.fmLrnDZr.js";
2
- import { c as x } from "./component.styles.DtouHn2g.js";
1
+ import { i as f, n as v, C as c, x as i, c as d } from "./custom-element.vnXBMQxc.js";
2
+ import { c as x } from "./component.styles.CI-v8BZa.js";
3
3
  var t = /* @__PURE__ */ ((e) => (e.Body1 = "body1", e.Body2 = "body2", e.Body3 = "body3", e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e.Small = "small", e))(t || {});
4
4
  const m = f`
5
5
  :host {
@@ -1,4 +1,4 @@
1
- import { E as r, T as s } from "./custom-element.fmLrnDZr.js";
1
+ import { E as r, T as s } from "./custom-element.vnXBMQxc.js";
2
2
  import { i as n, t as o, e as c } from "./directive.oAbCiebi.js";
3
3
  /**
4
4
  * @license
@@ -1,13 +1,13 @@
1
- import { i as b, n as s, C as x, x as h, c as y } from "../chunks/custom-element.fmLrnDZr.js";
2
- import { c as C } from "../chunks/component.styles.DtouHn2g.js";
1
+ import { i as b, n as s, C as x, x as h, c as y } from "../chunks/custom-element.vnXBMQxc.js";
2
+ import { c as C } from "../chunks/component.styles.CI-v8BZa.js";
3
3
  import { s as f, a as u, g as p, b as m } from "../chunks/animation-registry.DavRkTTr.js";
4
4
  import { w as v } from "../chunks/event.mFzZi4sr.js";
5
5
  import { L as T } from "../chunks/i18n.CXUGdxzx.js";
6
6
  import { H as I } from "../chunks/slot.DJLm4Dig.js";
7
7
  import { w as g } from "../chunks/watch.BCJD77bD.js";
8
- import { r as A } from "../chunks/state.Dt9F_SuS.js";
8
+ import { r as A } from "../chunks/state.Cw55xXlb.js";
9
9
  import { e as _ } from "../chunks/query.BBf1UFkC.js";
10
- import { e as w } from "../chunks/class-map.DqNfBvJI.js";
10
+ import { e as w } from "../chunks/class-map.CoZTSvbM.js";
11
11
  import H from "./icon-button.js";
12
12
  const k = b`
13
13
  :host {
@@ -1,7 +1,7 @@
1
- import { i as p, n as c, C as g, x as d, c as y } from "../chunks/custom-element.fmLrnDZr.js";
2
- import { c as x } from "../chunks/component.styles.DtouHn2g.js";
1
+ import { i as p, n as c, C as g, x as d, c as y } from "../chunks/custom-element.vnXBMQxc.js";
2
+ import { c as x } from "../chunks/component.styles.CI-v8BZa.js";
3
3
  import { w as m } from "../chunks/watch.BCJD77bD.js";
4
- import { r as h } from "../chunks/state.Dt9F_SuS.js";
4
+ import { r as h } from "../chunks/state.Cw55xXlb.js";
5
5
  import { e as f } from "../chunks/query.BBf1UFkC.js";
6
6
  import u from "./icon.js";
7
7
  const v = p`
@@ -1,8 +1,8 @@
1
- import "../chunks/custom-element.fmLrnDZr.js";
2
- import "../chunks/component.styles.DtouHn2g.js";
1
+ import "../chunks/custom-element.vnXBMQxc.js";
2
+ import "../chunks/component.styles.CI-v8BZa.js";
3
3
  import "../chunks/watch.BCJD77bD.js";
4
4
  import "../chunks/query-async.CTgXGyQ5.js";
5
- import { C as a } from "../chunks/animation.DPqSuC7g.js";
5
+ import { C as a } from "../chunks/animation.B7d72NVK.js";
6
6
  export {
7
7
  a as default
8
8
  };