@orangelogic/design-system 2.60.0 → 2.61.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 (248) hide show
  1. package/library/apps/cortex/src/types.d.ts +2 -0
  2. package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
  3. package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
  4. package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
  5. package/library/chunks/animate.El-MpOws.js +37 -0
  6. package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
  7. package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
  8. package/library/chunks/array.DCtvHiLS.js +81 -0
  9. package/library/chunks/asset.CG_yXtWK.js +288 -0
  10. package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
  11. package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
  12. package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
  13. package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
  14. package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
  15. package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
  16. package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
  17. package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
  18. package/library/chunks/color.vLD2sNTs.js +164 -0
  19. package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
  20. package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
  21. package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
  22. package/library/chunks/converters.DkDtLstb.js +11 -0
  23. package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
  24. package/library/chunks/custom-element.L4WJXn1j.js +14 -0
  25. package/library/chunks/debounce.DaHuiSGU.js +15 -0
  26. package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
  27. package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
  28. package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
  29. package/library/chunks/dom.CZrJ64Dm.js +92 -0
  30. package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
  31. package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
  32. package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
  33. package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
  34. package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
  35. package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
  36. package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
  37. package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
  38. package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
  39. package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
  40. package/library/chunks/identity.ByMq8VxU.js +6 -0
  41. package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
  42. package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
  43. package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
  44. package/library/chunks/image.mbpyiQpQ.js +82 -0
  45. package/library/chunks/index.S0wy3rzm.js +373 -0
  46. package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
  47. package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
  48. package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
  49. package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
  50. package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
  51. package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
  52. package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
  53. package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
  54. package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
  55. package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
  56. package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
  57. package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
  58. package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
  59. package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
  60. package/library/chunks/responsive.CA6dcNiM.js +17 -0
  61. package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
  62. package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
  63. package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
  64. package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
  65. package/library/chunks/string.Cp_XNbnV.js +160 -0
  66. package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
  67. package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
  68. package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
  69. package/library/chunks/template.CsJd8Pb_.js +20 -0
  70. package/library/chunks/time.D_uFZqqe.js +118 -0
  71. package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
  72. package/library/chunks/toast.BXNbwZV8.js +25 -0
  73. package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
  74. package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
  75. package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
  76. package/library/chunks/url.LjsR2sB5.js +15 -0
  77. package/library/chunks/user-agent.D9aPuOyL.js +4 -0
  78. package/library/chunks/watch.q1sEjPWL.js +501 -0
  79. package/library/components/alert.js +38 -35
  80. package/library/components/animated-image.js +25 -23
  81. package/library/components/animation.js +7 -5
  82. package/library/components/array-line-clamp.d.ts +3 -0
  83. package/library/components/array-line-clamp.js +195 -0
  84. package/library/components/asset-link-format.js +223 -212
  85. package/library/components/atoms.js +164 -162
  86. package/library/components/avatar.js +28 -26
  87. package/library/components/badge.js +10 -8
  88. package/library/components/bicolor-picker.js +21 -19
  89. package/library/components/border-input-group.js +11 -9
  90. package/library/components/breadcrumb-item.js +14 -12
  91. package/library/components/breadcrumb.js +24 -22
  92. package/library/components/button-group.js +26 -24
  93. package/library/components/button.js +14 -13
  94. package/library/components/card.js +28 -19
  95. package/library/components/checkbox.js +29 -23
  96. package/library/components/color-picker.js +19 -17
  97. package/library/components/color-swatch-group.js +20 -17
  98. package/library/components/color-swatch.js +16 -13
  99. package/library/components/confirm-popover.js +11 -9
  100. package/library/components/copy-button.js +15 -13
  101. package/library/components/corner-position-input-group.js +13 -11
  102. package/library/components/cortex-element.d.ts +3 -0
  103. package/library/components/cortex-element.js +5 -0
  104. package/library/components/cropper.js +7 -5
  105. package/library/components/details.js +23 -20
  106. package/library/components/dialog.js +19 -16
  107. package/library/components/divider.js +13 -11
  108. package/library/components/dot-pagination.js +11 -9
  109. package/library/components/dot-status.js +10 -8
  110. package/library/components/drawer.js +63 -51
  111. package/library/components/dropdown.js +29 -26
  112. package/library/components/dynamic-select.js +12 -10
  113. package/library/components/element-clamp.js +28 -25
  114. package/library/components/file-on-demand.js +21 -20
  115. package/library/components/folder-select.js +12 -10
  116. package/library/components/format-bytes.js +11 -10
  117. package/library/components/format-date.js +11 -9
  118. package/library/components/format-number.js +16 -15
  119. package/library/components/format-time.js +118 -9
  120. package/library/components/grid-item.js +48 -46
  121. package/library/components/grid.js +31 -29
  122. package/library/components/header.js +10 -9
  123. package/library/components/hub-connection.js +6 -5
  124. package/library/components/icon-button.js +20 -18
  125. package/library/components/icon.js +17 -15
  126. package/library/components/iframe.js +10 -8
  127. package/library/components/image-comparer.js +27 -25
  128. package/library/components/image.js +14 -11
  129. package/library/components/include.js +26 -24
  130. package/library/components/input-group.js +15 -13
  131. package/library/components/input.js +23 -21
  132. package/library/components/line-clamp.js +12 -10
  133. package/library/components/list-editor.js +17 -15
  134. package/library/components/markdown.js +80 -78
  135. package/library/components/masonry.js +46 -44
  136. package/library/components/menu-item.js +151 -136
  137. package/library/components/menu-label.js +15 -13
  138. package/library/components/menu-section.js +18 -16
  139. package/library/components/menu.js +10 -8
  140. package/library/components/molecules.js +5 -5
  141. package/library/components/mutation-observer.js +12 -10
  142. package/library/components/option.js +10 -8
  143. package/library/components/organisms.js +2 -2
  144. package/library/components/padding-input-group.js +30 -28
  145. package/library/components/pagination.js +14 -12
  146. package/library/components/popup.js +3296 -9
  147. package/library/components/position-picker.js +12 -10
  148. package/library/components/progress-bar.js +13 -11
  149. package/library/components/progress-ring.js +15 -13
  150. package/library/components/qr-code.js +54 -52
  151. package/library/components/radio-button.js +19 -17
  152. package/library/components/radio-card.js +14 -12
  153. package/library/components/radio-group.js +20 -18
  154. package/library/components/radio.js +15 -13
  155. package/library/components/range.js +25 -23
  156. package/library/components/rating.js +17 -15
  157. package/library/components/relative-time.js +16 -14
  158. package/library/components/resize-observer.js +21 -19
  159. package/library/components/select.js +1442 -25
  160. package/library/components/shadow-input-group.js +19 -17
  161. package/library/components/share-option-list.js +20 -18
  162. package/library/components/sidebar.js +14 -12
  163. package/library/components/size-input-group.js +35 -33
  164. package/library/components/skeleton.js +12 -10
  165. package/library/components/space.js +12 -10
  166. package/library/components/spinner.js +17 -15
  167. package/library/components/split-panel.js +15 -13
  168. package/library/components/step.js +18 -16
  169. package/library/components/stepper-wizard.js +11 -9
  170. package/library/components/stepper.js +13 -11
  171. package/library/components/switch.js +21 -19
  172. package/library/components/tab-group.js +15 -13
  173. package/library/components/tab-panel.js +20 -18
  174. package/library/components/tab.js +18 -16
  175. package/library/components/table.js +69 -67
  176. package/library/components/tag.js +11 -9
  177. package/library/components/textarea.js +20 -18
  178. package/library/components/timecode.js +98 -8
  179. package/library/components/tooltip.js +24 -21
  180. package/library/components/tree-item.js +14 -11
  181. package/library/components/tree.js +12 -10
  182. package/library/components/typeface.js +13 -11
  183. package/library/components/types.js +15487 -15444
  184. package/library/components/typography.js +6 -4
  185. package/library/components/video.js +13 -11
  186. package/library/components/visually-hidden.js +15 -13
  187. package/library/events.d.ts +1 -0
  188. package/library/events.js +1 -0
  189. package/library/package.json +11 -2
  190. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
  191. package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
  192. package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
  193. package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
  194. package/library/packages/atoms/src/components/include/include.d.ts +1 -0
  195. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
  196. package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
  197. package/library/packages/atoms/src/index.d.ts +1 -0
  198. package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
  199. package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
  200. package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
  201. package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
  202. package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
  203. package/library/packages/events/src/events.d.ts +6 -2
  204. package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
  205. package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
  206. package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
  207. package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
  208. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
  209. package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
  210. package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
  211. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
  212. package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
  213. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
  214. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
  215. package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
  216. package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
  217. package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
  218. package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
  219. package/library/packages/services/src/api/folder/folder.d.ts +4 -8
  220. package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
  221. package/library/packages/types/src/file-on-demand.d.ts +4 -0
  222. package/library/packages/types/src/folder-select.d.ts +9 -2
  223. package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
  224. package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
  225. package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
  226. package/library/packages/utils/src/font/font.d.ts +26 -0
  227. package/library/packages/utils/src/font/index.d.ts +1 -0
  228. package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
  229. package/library/packages/utils/src/history-manager/index.d.ts +1 -0
  230. package/library/packages/utils/src/index.d.ts +45 -0
  231. package/library/packages/utils/src/template/index.d.ts +1 -0
  232. package/library/packages/utils/src/template/template.d.ts +3 -0
  233. package/library/react-web-component.d.ts +418 -360
  234. package/library/utils.d.ts +1 -0
  235. package/library/utils.js +180 -0
  236. package/package.json +11 -2
  237. package/library/chunks/animation-registry.DavRkTTr.js +0 -69
  238. package/library/chunks/asset.Ba-CxnNM.js +0 -309
  239. package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
  240. package/library/chunks/dom.C0OFx7ND.js +0 -78
  241. package/library/chunks/format-time.BW6-ZWCX.js +0 -226
  242. package/library/chunks/isObjectLike.z36Fu426.js +0 -34
  243. package/library/chunks/popup._w5T7x8f.js +0 -3307
  244. package/library/chunks/select.DfO4de04.js +0 -1441
  245. package/library/chunks/string.BCk3SmdZ.js +0 -144
  246. package/library/chunks/timecode.D7XTiQ_3.js +0 -105
  247. package/library/chunks/watch.BCJD77bD.js +0 -547
  248. package/library/packages/events/src/cx-load-more.d.ts +0 -8
@@ -1,16 +1,18 @@
1
- import { i as k, x as h, n as r, C as S, c as C } from "../chunks/custom-element.vnXBMQxc.js";
2
- import { c as w } from "../chunks/component.styles.CI-v8BZa.js";
3
- import { d as v, L as _ } from "../chunks/i18n.BP2FRO1v.js";
4
- import { H as M, g as L } from "../chunks/slot.DJLm4Dig.js";
5
- import { w as b } from "../chunks/watch.BCJD77bD.js";
1
+ import { n as a, C as k } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
+ import { c as S } from "../chunks/component.styles.DMSLciL5.js";
3
+ import { c as w } from "../chunks/custom-element.L4WJXn1j.js";
4
+ import { d as x, L as C } from "../chunks/i18n.DrzK7TPf.js";
5
+ import { H as _, g as M } from "../chunks/slot.j5oheLJC.js";
6
+ import { w as f } from "../chunks/watch.q1sEjPWL.js";
7
+ import { i as L, x as h } from "../chunks/lit-element.jLBm65_O.js";
6
8
  import { e as d } from "../chunks/query.BBf1UFkC.js";
7
- import { e as x } from "../chunks/class-map.CoZTSvbM.js";
8
- import { o as m } from "../chunks/if-defined.MfEgpxEN.js";
9
+ import { e as b } from "../chunks/class-map.BiVq-cVR.js";
10
+ import { o as m } from "../chunks/if-defined.BRoBj_Rp.js";
9
11
  import P from "./icon.js";
10
- import { C as E } from "../chunks/popup._w5T7x8f.js";
12
+ import E from "./popup.js";
11
13
  import z from "./spinner.js";
12
- import { e as D, n as R } from "../chunks/ref.BaCjlzLO.js";
13
- const $ = k`
14
+ import { e as D, n as R } from "../chunks/ref.bzeTdX0K.js";
15
+ const $ = L`
14
16
  :host {
15
17
  --submenu-offset: -2px;
16
18
  --prefix-font-size: var(--cx-font-size-small);
@@ -53,7 +55,8 @@ const $ = k`
53
55
 
54
56
  .menu-item.menu-item--disabled .menu-item__label,
55
57
  .menu-item.menu-item--disabled .menu-item__prefix,
56
- .menu-item.menu-item--disabled .menu-item__chevron {
58
+ .menu-item.menu-item--disabled .menu-item__chevron,
59
+ .menu-item.menu-item--disabled .menu-item__check {
57
60
  opacity: 0.5;
58
61
  }
59
62
 
@@ -197,6 +200,10 @@ const $ = k`
197
200
  margin-right: var(--cx-spacing-2x-small);
198
201
  }
199
202
 
203
+ .menu-item .menu-item__check--always-show {
204
+ visibility: visible;
205
+ }
206
+
200
207
  .menu-item .menu-item__chevron {
201
208
  display: var(--submenu-icon-display, flex);
202
209
  }
@@ -235,8 +242,8 @@ const $ = k`
235
242
  }
236
243
  `;
237
244
  class T {
238
- constructor(e, s) {
239
- this.popupRef = D(), this.parent = null, this.enableSubmenuTimer = -1, this.isHorizontalMenu = !1, this.isConnected = !1, this.isPopupConnected = !1, this.skidding = 0, this.submenuOpenDelay = 100, (this.host = e).addController(this), this.hasSlotController = s, this.handleMouseMove = this.handleMouseMove.bind(this), this.handleMouseOver = this.handleMouseOver.bind(this), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleClick = this.handleClick.bind(this), this.handleSubmenuIconClick = this.handleSubmenuIconClick.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.handleMouseLeave = this.handleMouseLeave.bind(this), this.handlePopupMouseover = this.handlePopupMouseover.bind(this), this.handlePopupReposition = this.handlePopupReposition.bind(this);
245
+ constructor(e, n) {
246
+ this.popupRef = D(), this.parent = null, this.enableSubmenuTimer = -1, this.isHorizontalMenu = !1, this.isConnected = !1, this.isPopupConnected = !1, this.skidding = 0, this.submenuOpenDelay = 100, (this.host = e).addController(this), this.hasSlotController = n, this.handleMouseMove = this.handleMouseMove.bind(this), this.handleMouseOver = this.handleMouseOver.bind(this), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleClick = this.handleClick.bind(this), this.handleSubmenuIconClick = this.handleSubmenuIconClick.bind(this), this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this), this.handleMouseLeave = this.handleMouseLeave.bind(this), this.handlePopupMouseover = this.handlePopupMouseover.bind(this), this.handlePopupReposition = this.handlePopupReposition.bind(this);
240
247
  }
241
248
  get popup() {
242
249
  return this.popupRef.value;
@@ -283,10 +290,10 @@ class T {
283
290
  }
284
291
  // Set the safe triangle cursor position
285
292
  handleMouseMove(e) {
286
- const s = getComputedStyle(this.host).direction === "rtl" || this.popupRef.value?.dataset.currentPlacement?.startsWith("left");
293
+ const n = getComputedStyle(this.host).direction === "rtl" || this.popupRef.value?.dataset.currentPlacement?.startsWith("left");
287
294
  this.host.style.setProperty(
288
295
  "--safe-triangle-cursor-x",
289
- `${e.clientX + (s ? 1 : 0)}px`
296
+ `${e.clientX + (n ? 1 : 0)}px`
290
297
  ), this.host.style.setProperty(
291
298
  "--safe-triangle-cursor-y",
292
299
  `${e.clientY}px`
@@ -296,32 +303,32 @@ class T {
296
303
  this.hasSlotController.test("submenu") && this.enableSubmenu();
297
304
  }
298
305
  handleSubmenuEntry(e) {
299
- const s = this.host.renderRoot.querySelector("slot[name='submenu']");
300
- if (!s) {
306
+ const n = this.host.renderRoot.querySelector("slot[name='submenu']");
307
+ if (!n) {
301
308
  console.error(
302
309
  "Cannot activate a submenu if no corresponding menuitem can be found.",
303
310
  this
304
311
  );
305
312
  return;
306
313
  }
307
- let t = null;
308
- for (const a of s.assignedElements())
309
- if (t = a.querySelectorAll("cx-menu-item, [role^='menuitem']"), t.length !== 0)
314
+ let i = null;
315
+ for (const r of n.assignedElements())
316
+ if (i = r.querySelectorAll("cx-menu-item, [role^='menuitem']"), i.length !== 0)
310
317
  break;
311
- if (!t || t.length === 0) {
318
+ if (!i || i.length === 0) {
312
319
  this.host.lazy && (e.preventDefault(), e.stopPropagation(), this.enableSubmenu(!1));
313
320
  return;
314
321
  }
315
- t[0].setAttribute("tabindex", "0");
316
- for (let a = 1; a !== t.length; ++a)
317
- t[a].setAttribute("tabindex", "-1");
318
- this.popupRef.value && (e.preventDefault(), e.stopPropagation(), this.popupRef.value.active ? t[0] instanceof HTMLElement && t[0].focus() : (this.enableSubmenu(!1), this.popupRef.value.addEventListener("cx-opened", () => {
319
- t[0] instanceof HTMLElement && t[0].focus();
322
+ i[0].setAttribute("tabindex", "0");
323
+ for (let r = 1; r !== i.length; ++r)
324
+ i[r].setAttribute("tabindex", "-1");
325
+ this.popupRef.value && (e.preventDefault(), e.stopPropagation(), this.popupRef.value.active ? i[0] instanceof HTMLElement && i[0].focus() : (this.enableSubmenu(!1), this.popupRef.value.addEventListener("cx-opened", () => {
326
+ i[0] instanceof HTMLElement && i[0].focus();
320
327
  }), this.host.requestUpdate()));
321
328
  }
322
329
  // Focus on the first menu-item of a submenu.
323
330
  handleKeyDown(e) {
324
- const s = () => {
331
+ const n = () => {
325
332
  e.preventDefault(), e.stopPropagation(), this.host.focus(), this.disableSubmenu();
326
333
  };
327
334
  switch (e.key) {
@@ -334,11 +341,11 @@ class T {
334
341
  break;
335
342
  }
336
343
  case "ArrowLeft": {
337
- e.target !== this.host && !this.isHorizontalMenu && s();
344
+ e.target !== this.host && !this.isHorizontalMenu && n();
338
345
  break;
339
346
  }
340
347
  case "ArrowUp": {
341
- e.target !== this.host && this.isHorizontalMenu && s();
348
+ e.target !== this.host && this.isHorizontalMenu && n();
342
349
  break;
343
350
  }
344
351
  case "ArrowRight": {
@@ -358,8 +365,8 @@ class T {
358
365
  e.preventDefault(), e.stopPropagation(), this.isExpanded() ? this.disableSubmenu() : this.enableSubmenu();
359
366
  }
360
367
  handleDocumentMouseDown(e) {
361
- const s = e.composedPath();
362
- this.host && !s.includes(this.host) && this.disableSubmenu();
368
+ const n = e.composedPath();
369
+ this.host && !n.includes(this.host) && this.disableSubmenu();
363
370
  }
364
371
  // Close this submenu on focus outside of the parent or any descendants.
365
372
  handleMouseLeave(e) {
@@ -371,19 +378,19 @@ class T {
371
378
  }
372
379
  // Set the safe triangle values for the submenu when the position changes
373
380
  handlePopupReposition() {
374
- const s = this.host.renderRoot.querySelector("slot[name='submenu']")?.assignedElements({ flatten: !0 }).filter((p) => p.localName === "cx-menu")[0], t = getComputedStyle(this.host).direction === "rtl" || this.popupRef.value?.dataset.currentPlacement?.startsWith("left");
375
- if (!s)
381
+ const n = this.host.renderRoot.querySelector("slot[name='submenu']")?.assignedElements({ flatten: !0 }).filter((p) => p.localName === "cx-menu")[0], i = getComputedStyle(this.host).direction === "rtl" || this.popupRef.value?.dataset.currentPlacement?.startsWith("left");
382
+ if (!n)
376
383
  return;
377
- const { height: a, left: l, top: u, width: c } = s.getBoundingClientRect();
384
+ const { height: r, left: l, top: u, width: c } = n.getBoundingClientRect();
378
385
  this.host.style.setProperty(
379
386
  "--safe-triangle-submenu-start-x",
380
- `${t ? l + c : l}px`
387
+ `${i ? l + c : l}px`
381
388
  ), this.host.style.setProperty("--safe-triangle-submenu-start-y", `${u}px`), this.host.style.setProperty(
382
389
  "--safe-triangle-submenu-end-x",
383
- `${t ? l + c : l}px`
390
+ `${i ? l + c : l}px`
384
391
  ), this.host.style.setProperty(
385
392
  "--safe-triangle-submenu-end-y",
386
- `${u + a}px`
393
+ `${u + r}px`
387
394
  );
388
395
  }
389
396
  setSubmenuState(e) {
@@ -403,11 +410,11 @@ class T {
403
410
  updateSkidding() {
404
411
  if (!this.host.parentElement?.computedStyleMap)
405
412
  return;
406
- const e = this.host.parentElement.computedStyleMap(), s = v(this.host) === "rtl", t = this.host.submenuPlacement ?? (s ? "left-start" : "right-start"), a = t.startsWith("left") || t.startsWith("right");
413
+ const e = this.host.parentElement.computedStyleMap(), n = x(this.host) === "rtl", i = this.host.submenuPlacement ?? (n ? "left-start" : "right-start"), r = i.startsWith("left") || i.startsWith("right");
407
414
  let l = [];
408
- a && (t.endsWith("-start") ? l = ["padding-top", "border-top-width", "margin-top"] : t.endsWith("-end") && (l = ["padding-bottom", "border-bottom-width", "margin-bottom"]));
415
+ r && (i.endsWith("-start") ? l = ["padding-top", "border-top-width", "margin-top"] : i.endsWith("-end") && (l = ["padding-bottom", "border-bottom-width", "margin-bottom"]));
409
416
  const u = l.reduce((c, p) => {
410
- const f = e.get(p) ?? new CSSUnitValue(0, "px"), g = (f instanceof CSSUnitValue ? f : new CSSUnitValue(0, "px")).to("px"), y = t.endsWith("-end") ? 1 : -1;
417
+ const v = e.get(p) ?? new CSSUnitValue(0, "px"), g = (v instanceof CSSUnitValue ? v : new CSSUnitValue(0, "px")).to("px"), y = i.endsWith("-end") ? 1 : -1;
411
418
  return c + g.value * y;
412
419
  }, 0);
413
420
  this.skidding = u;
@@ -416,14 +423,14 @@ class T {
416
423
  return this.popupRef.value ? this.popupRef.value.active : !1;
417
424
  }
418
425
  renderSubmenu() {
419
- const e = v(this.host) === "rtl";
426
+ const e = x(this.host) === "rtl";
420
427
  if (!this.hasSlotController.test("submenu"))
421
428
  return null;
422
- const s = this.host.submenuPlacement ?? (e ? "left-start" : "right-start");
429
+ const n = this.host.submenuPlacement ?? (e ? "left-start" : "right-start");
423
430
  return h`
424
431
  <cx-popup
425
432
  ${R(this.popupRef)}
426
- placement=${s}
433
+ placement=${n}
427
434
  anchor="anchor"
428
435
  part="submenu-popup"
429
436
  flip
@@ -441,14 +448,14 @@ class T {
441
448
  `;
442
449
  }
443
450
  }
444
- var O = Object.defineProperty, H = Object.getOwnPropertyDescriptor, n = (o, e, s, t) => {
445
- for (var a = t > 1 ? void 0 : t ? H(e, s) : e, l = o.length - 1, u; l >= 0; l--)
446
- (u = o[l]) && (a = (t ? u(e, s, a) : u(a)) || a);
447
- return t && a && O(e, s, a), a;
451
+ var O = Object.defineProperty, I = Object.getOwnPropertyDescriptor, s = (o, e, n, i) => {
452
+ for (var r = i > 1 ? void 0 : i ? I(e, n) : e, l = o.length - 1, u; l >= 0; l--)
453
+ (u = o[l]) && (r = (i ? u(e, n, r) : u(r)) || r);
454
+ return i && r && O(e, n, r), r;
448
455
  };
449
- let i = class extends S {
456
+ let t = class extends k {
450
457
  constructor() {
451
- super(), this.type = "normal", this.submenuTrigger = "both", this.checked = !1, this.value = "", this.href = "", this.rel = "noreferrer noopener", this.loading = !1, this.disabled = !1, this.active = !1, this.readonly = !1, this.menu = "", this.lazy = !1, this.localize = new _(this), this.hasSlotController = new M(
458
+ super(), this.type = "normal", this.submenuTrigger = "both", this.checked = !1, this.value = "", this.href = "", this.rel = "noreferrer noopener", this.loading = !1, this.disabled = !1, this.active = !1, this.readonly = !1, this.menu = "", this.alwaysShowCheckedIcon = !1, this.lazy = !1, this.localize = new C(this), this.hasSlotController = new _(
452
459
  this,
453
460
  "submenu",
454
461
  "submenu-icon"
@@ -466,9 +473,7 @@ let i = class extends S {
466
473
  });
467
474
  }
468
475
  disconnectedCallback() {
469
- super.disconnectedCallback(), this.removeEventListener("click", this.handleHostClick), this.removeEventListener("mouseover", this.handleMouseOver), document.removeEventListener("wheel", this.handleDocumentWheel, {
470
- passive: !1
471
- });
476
+ super.disconnectedCallback(), this.removeEventListener("click", this.handleHostClick), this.removeEventListener("mouseover", this.handleMouseOver), document.removeEventListener("wheel", this.handleDocumentWheel);
472
477
  }
473
478
  handleDefaultSlotChange() {
474
479
  const o = this.getTextLabel();
@@ -509,18 +514,18 @@ let i = class extends S {
509
514
  }
510
515
  /** Returns a text label based on the contents of the menu item's default slot. */
511
516
  getTextLabel() {
512
- return L(this.defaultSlot);
517
+ return M(this.defaultSlot);
513
518
  }
514
519
  isSubmenu() {
515
520
  return this.hasSlotController.test("submenu") || !!this.menu.trim();
516
521
  }
517
522
  renderBase(o) {
518
- const e = !!this.href, s = this.localize.dir() === "rtl", t = this.submenuController.isExpanded();
523
+ const e = !!this.href, n = this.localize.dir() === "rtl", i = this.submenuController.isExpanded();
519
524
  return e ? h`
520
525
  <a
521
526
  id="anchor"
522
527
  part="base"
523
- class=${x({
528
+ class=${b({
524
529
  "menu-item": !0,
525
530
  "menu-item--active": this.active,
526
531
  "menu-item--checkbox": this.type === "checkbox",
@@ -528,8 +533,8 @@ let i = class extends S {
528
533
  "menu-item--disabled": this.disabled,
529
534
  "menu-item--has-submenu": this.isSubmenu(),
530
535
  "menu-item--loading": this.loading,
531
- "menu-item--rtl": s,
532
- "menu-item--submenu-expanded": t
536
+ "menu-item--rtl": n,
537
+ "menu-item--submenu-expanded": i
533
538
  })}
534
539
  aria-haspopup=${this.isSubmenu()}
535
540
  href=${m(this.href)}
@@ -546,7 +551,7 @@ let i = class extends S {
546
551
  <div
547
552
  id="anchor"
548
553
  part="base"
549
- class=${x({
554
+ class=${b({
550
555
  "menu-item": !0,
551
556
  "menu-item--active": this.active,
552
557
  "menu-item--checkbox": this.type === "checkbox",
@@ -554,8 +559,8 @@ let i = class extends S {
554
559
  "menu-item--disabled": this.disabled,
555
560
  "menu-item--has-submenu": this.isSubmenu(),
556
561
  "menu-item--loading": this.loading,
557
- "menu-item--rtl": s,
558
- "menu-item--submenu-expanded": t
562
+ "menu-item--rtl": n,
563
+ "menu-item--submenu-expanded": i
559
564
  })}
560
565
  aria-haspopup=${this.isSubmenu()}
561
566
  aria-label=${this.getTextLabel()}
@@ -568,9 +573,16 @@ let i = class extends S {
568
573
  const o = this.localize.dir() === "rtl";
569
574
  let e;
570
575
  return this.submenuPlacement && (this.submenuPlacement.startsWith("top") || this.submenuPlacement.startsWith("bottom")) ? e = "keyboard_arrow_down" : e = o ? "chevron_left" : "chevron_right", this.renderBase(h`
571
- <span part="checked-icon" class="menu-item__check">
576
+ <slot
577
+ part="checked-icon"
578
+ name="checked-icon"
579
+ class=${b({
580
+ "menu-item__check": !0,
581
+ "menu-item__check--always-show": this.alwaysShowCheckedIcon
582
+ })}
583
+ >
572
584
  <cx-icon name="check"></cx-icon>
573
- </span>
585
+ </slot>
574
586
 
575
587
  <slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
576
588
 
@@ -596,87 +608,90 @@ let i = class extends S {
596
608
  `);
597
609
  }
598
610
  };
599
- i.styles = [w, $];
600
- i.dependencies = {
611
+ t.styles = [S, $];
612
+ t.dependencies = {
601
613
  "cx-icon": P,
602
614
  "cx-popup": E,
603
615
  "cx-spinner": z
604
616
  };
605
- n([
617
+ s([
606
618
  d("slot:not([name])")
607
- ], i.prototype, "defaultSlot", 2);
608
- n([
619
+ ], t.prototype, "defaultSlot", 2);
620
+ s([
609
621
  d("a#anchor", !0)
610
- ], i.prototype, "anchor", 2);
611
- n([
622
+ ], t.prototype, "anchor", 2);
623
+ s([
612
624
  d(".menu-item")
613
- ], i.prototype, "menuItem", 2);
614
- n([
625
+ ], t.prototype, "menuItem", 2);
626
+ s([
615
627
  d(".menu-item__chevron")
616
- ], i.prototype, "submenuIcon", 2);
617
- n([
618
- r()
619
- ], i.prototype, "type", 2);
620
- n([
621
- r({ attribute: "submenu-trigger" })
622
- ], i.prototype, "submenuTrigger", 2);
623
- n([
624
- r({ reflect: !0, type: Boolean })
625
- ], i.prototype, "checked", 2);
626
- n([
627
- r()
628
- ], i.prototype, "value", 2);
629
- n([
630
- r()
631
- ], i.prototype, "href", 2);
632
- n([
633
- r()
634
- ], i.prototype, "target", 2);
635
- n([
636
- r()
637
- ], i.prototype, "rel", 2);
638
- n([
639
- r()
640
- ], i.prototype, "download", 2);
641
- n([
642
- r({ reflect: !0, type: Boolean })
643
- ], i.prototype, "loading", 2);
644
- n([
645
- r({ reflect: !0, type: Boolean })
646
- ], i.prototype, "disabled", 2);
647
- n([
648
- r({ reflect: !0, type: Boolean })
649
- ], i.prototype, "active", 2);
650
- n([
651
- r({ reflect: !0, type: Boolean })
652
- ], i.prototype, "readonly", 2);
653
- n([
654
- r({ attribute: "flip-boundary", type: Object })
655
- ], i.prototype, "flipBoundary", 2);
656
- n([
657
- r({ attribute: "shift-boundary", type: Object })
658
- ], i.prototype, "shiftBoundary", 2);
659
- n([
660
- r({ reflect: !0 })
661
- ], i.prototype, "menu", 2);
662
- n([
663
- r({ attribute: "submenu-placement" })
664
- ], i.prototype, "submenuPlacement", 2);
665
- n([
666
- r({ reflect: !0, type: Boolean })
667
- ], i.prototype, "lazy", 2);
668
- n([
669
- b("checked")
670
- ], i.prototype, "handleCheckedChange", 1);
671
- n([
672
- b("disabled")
673
- ], i.prototype, "handleDisabledChange", 1);
674
- n([
675
- b("type")
676
- ], i.prototype, "handleTypeChange", 1);
677
- i = n([
678
- C("cx-menu-item")
679
- ], i);
628
+ ], t.prototype, "submenuIcon", 2);
629
+ s([
630
+ a()
631
+ ], t.prototype, "type", 2);
632
+ s([
633
+ a({ attribute: "submenu-trigger" })
634
+ ], t.prototype, "submenuTrigger", 2);
635
+ s([
636
+ a({ reflect: !0, type: Boolean })
637
+ ], t.prototype, "checked", 2);
638
+ s([
639
+ a()
640
+ ], t.prototype, "value", 2);
641
+ s([
642
+ a()
643
+ ], t.prototype, "href", 2);
644
+ s([
645
+ a()
646
+ ], t.prototype, "target", 2);
647
+ s([
648
+ a()
649
+ ], t.prototype, "rel", 2);
650
+ s([
651
+ a()
652
+ ], t.prototype, "download", 2);
653
+ s([
654
+ a({ reflect: !0, type: Boolean })
655
+ ], t.prototype, "loading", 2);
656
+ s([
657
+ a({ reflect: !0, type: Boolean })
658
+ ], t.prototype, "disabled", 2);
659
+ s([
660
+ a({ reflect: !0, type: Boolean })
661
+ ], t.prototype, "active", 2);
662
+ s([
663
+ a({ reflect: !0, type: Boolean })
664
+ ], t.prototype, "readonly", 2);
665
+ s([
666
+ a({ attribute: "flip-boundary", type: Object })
667
+ ], t.prototype, "flipBoundary", 2);
668
+ s([
669
+ a({ attribute: "shift-boundary", type: Object })
670
+ ], t.prototype, "shiftBoundary", 2);
671
+ s([
672
+ a({ reflect: !0 })
673
+ ], t.prototype, "menu", 2);
674
+ s([
675
+ a({ attribute: "always-show-checked-icon", reflect: !0, type: Boolean })
676
+ ], t.prototype, "alwaysShowCheckedIcon", 2);
677
+ s([
678
+ a({ attribute: "submenu-placement" })
679
+ ], t.prototype, "submenuPlacement", 2);
680
+ s([
681
+ a({ reflect: !0, type: Boolean })
682
+ ], t.prototype, "lazy", 2);
683
+ s([
684
+ f("checked")
685
+ ], t.prototype, "handleCheckedChange", 1);
686
+ s([
687
+ f("disabled")
688
+ ], t.prototype, "handleDisabledChange", 1);
689
+ s([
690
+ f("type")
691
+ ], t.prototype, "handleTypeChange", 1);
692
+ t = s([
693
+ w("cx-menu-item")
694
+ ], t);
680
695
  export {
681
- i as default
696
+ t as default
682
697
  };
@@ -1,6 +1,8 @@
1
- import { i as c, C as i, x as m, c as p } from "../chunks/custom-element.vnXBMQxc.js";
2
- import { c as x } from "../chunks/component.styles.CI-v8BZa.js";
3
- const u = c`
1
+ import { C as c } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
+ import { c as i } from "../chunks/component.styles.DMSLciL5.js";
3
+ import { c as m } from "../chunks/custom-element.L4WJXn1j.js";
4
+ import { i as p, x } from "../chunks/lit-element.jLBm65_O.js";
5
+ const f = p`
4
6
  :host {
5
7
  display: block;
6
8
  }
@@ -18,20 +20,20 @@ const u = c`
18
20
  -webkit-user-select: none;
19
21
  }
20
22
  `;
21
- var v = Object.getOwnPropertyDescriptor, f = (s, a, o, n) => {
22
- for (var e = n > 1 ? void 0 : n ? v(a, o) : a, l = s.length - 1, r; l >= 0; l--)
23
- (r = s[l]) && (e = r(e) || e);
23
+ var u = Object.getOwnPropertyDescriptor, v = (r, s, o, a) => {
24
+ for (var e = a > 1 ? void 0 : a ? u(s, o) : s, t = r.length - 1, n; t >= 0; t--)
25
+ (n = r[t]) && (e = n(e) || e);
24
26
  return e;
25
27
  };
26
- let t = class extends i {
28
+ let l = class extends c {
27
29
  render() {
28
- return m` <slot part="base" class="menu-label"></slot> `;
30
+ return x` <slot part="base" class="menu-label"></slot> `;
29
31
  }
30
32
  };
31
- t.styles = [x, u];
32
- t = f([
33
- p("cx-menu-label")
34
- ], t);
33
+ l.styles = [i, f];
34
+ l = v([
35
+ m("cx-menu-label")
36
+ ], l);
35
37
  export {
36
- t as default
38
+ l as default
37
39
  };
@@ -1,8 +1,10 @@
1
- import { i as u, n as b, C as h, E as m, x as c, c as p } from "../chunks/custom-element.vnXBMQxc.js";
2
- import { c as d } from "../chunks/component.styles.CI-v8BZa.js";
3
- import { e as v } from "../chunks/query.BBf1UFkC.js";
4
- import f from "./menu-label.js";
5
- const C = u`
1
+ import { n as u, C as b } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
+ import { c as m } from "../chunks/component.styles.DMSLciL5.js";
3
+ import { c as h } from "../chunks/custom-element.L4WJXn1j.js";
4
+ import { i as p, E as d, x as c } from "../chunks/lit-element.jLBm65_O.js";
5
+ import { e as f } from "../chunks/query.BBf1UFkC.js";
6
+ import v from "./menu-label.js";
7
+ const C = p`
6
8
  :host {
7
9
  display: block;
8
10
  }
@@ -15,12 +17,12 @@ const C = u`
15
17
  display: none;
16
18
  }
17
19
  `;
18
- var y = Object.defineProperty, x = Object.getOwnPropertyDescriptor, a = (r, t, n, l) => {
19
- for (var e = l > 1 ? void 0 : l ? x(t, n) : t, i = r.length - 1, o; i >= 0; i--)
20
- (o = r[i]) && (e = (l ? o(t, n, e) : o(e)) || e);
21
- return l && e && y(t, n, e), e;
20
+ var y = Object.defineProperty, x = Object.getOwnPropertyDescriptor, a = (n, t, r, l) => {
21
+ for (var e = l > 1 ? void 0 : l ? x(t, r) : t, i = n.length - 1, o; i >= 0; i--)
22
+ (o = n[i]) && (e = (l ? o(t, r, e) : o(e)) || e);
23
+ return l && e && y(t, r, e), e;
22
24
  };
23
- let s = class extends h {
25
+ let s = class extends b {
24
26
  constructor() {
25
27
  super(...arguments), this.label = "", this.mutationObserver = null;
26
28
  }
@@ -41,23 +43,23 @@ let s = class extends h {
41
43
  }
42
44
  render() {
43
45
  return c`
44
- ${this.label.length > 0 ? c`<cx-menu-label part="label">${this.label}</cx-menu-label>` : m}
46
+ ${this.label.length > 0 ? c`<cx-menu-label part="label">${this.label}</cx-menu-label>` : d}
45
47
  <slot @slotchange=${this.handleSlotChange}></slot>
46
48
  `;
47
49
  }
48
50
  };
49
- s.styles = [d, C];
51
+ s.styles = [m, C];
50
52
  s.dependencies = {
51
- "cx-menu-label": f
53
+ "cx-menu-label": v
52
54
  };
53
55
  a([
54
- v("slot")
56
+ f("slot")
55
57
  ], s.prototype, "defaultSlot", 2);
56
58
  a([
57
- b({ type: String })
59
+ u({ type: String })
58
60
  ], s.prototype, "label", 2);
59
61
  s = a([
60
- p("cx-menu-section")
62
+ h("cx-menu-section")
61
63
  ], s);
62
64
  export {
63
65
  s as default
@@ -1,11 +1,13 @@
1
- import { i as f, n as c, C as p, x as d, c as b } from "../chunks/custom-element.vnXBMQxc.js";
2
- import { c as g } from "../chunks/component.styles.CI-v8BZa.js";
3
- import { L as v } from "../chunks/i18n.BP2FRO1v.js";
4
- import { r as y } from "../chunks/state.Cw55xXlb.js";
1
+ import { n as c, C as f } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
+ import { c as p } from "../chunks/component.styles.DMSLciL5.js";
3
+ import { c as b } from "../chunks/custom-element.L4WJXn1j.js";
4
+ import { L as g } from "../chunks/i18n.DrzK7TPf.js";
5
+ import { i as v, x as d } from "../chunks/lit-element.jLBm65_O.js";
6
+ import { r as y } from "../chunks/state.CSDxrqLd.js";
5
7
  import { e as w } from "../chunks/query.BBf1UFkC.js";
6
8
  import { n as x } from "../chunks/when.Dr1es41R.js";
7
9
  import M from "./menu-item.js";
8
- const k = f`
10
+ const k = v`
9
11
  :host {
10
12
  display: block;
11
13
  position: relative;
@@ -100,9 +102,9 @@ var A = Object.defineProperty, I = Object.getOwnPropertyDescriptor, u = (e, t, r
100
102
  function m(e) {
101
103
  return e.tagName.toLowerCase() === "cx-menu" && e instanceof l && e.getAttribute("role") === "menu";
102
104
  }
103
- let l = class extends p {
105
+ let l = class extends f {
104
106
  constructor() {
105
- super(...arguments), this.localize = new v(this), this.horizontal = !1, this.variant = "default", this.active = !1, this.name = "", this.back = "", this.default = !1, this.bubbleKeyDown = !1, this.ignoredKeys = [], this.disabledTabLoop = !1, this.resizeObserver = null, this.slotMutationObserver = null;
107
+ super(...arguments), this.localize = new g(this), this.horizontal = !1, this.variant = "default", this.active = !1, this.name = "", this.back = "", this.default = !1, this.bubbleKeyDown = !1, this.ignoredKeys = [], this.disabledTabLoop = !1, this.resizeObserver = null, this.slotMutationObserver = null;
106
108
  }
107
109
  connectedCallback() {
108
110
  super.connectedCallback(), this.setAttribute("role", "menu"), this.slotMutationObserver = new MutationObserver(() => this.handleSlotChange()), this.slotMutationObserver.observe(this, {
@@ -378,7 +380,7 @@ let l = class extends p {
378
380
  ></slot>`;
379
381
  }
380
382
  };
381
- l.styles = [g, k];
383
+ l.styles = [p, k];
382
384
  u([
383
385
  w("slot")
384
386
  ], l.prototype, "defaultSlot", 2);
@@ -1,12 +1,12 @@
1
1
  import { default as e } from "./bicolor-picker.js";
2
2
  import { default as a } from "./border-input-group.js";
3
- import { C as p } from "../chunks/color-swatch.DUe3iLLo.js";
4
- import { C } from "../chunks/confirm-popover.D2TF1x6K.js";
3
+ import { C as p } from "../chunks/color-swatch.Bpb_hW2H.js";
4
+ import { C } from "../chunks/confirm-popover.C1uA36JR.js";
5
5
  import { default as u } from "./corner-position-input-group.js";
6
- import { C as m } from "../chunks/cropper.aA0v16xS.js";
6
+ import { C as m } from "../chunks/cropper.BraEEykE.js";
7
7
  import { default as i } from "./dynamic-select.js";
8
- import { C as c } from "../chunks/folder-select.DiWCwR-T.js";
9
- import { C as P } from "../chunks/list-editor.COkw5JKG.js";
8
+ import { C as c } from "../chunks/folder-select.CSEQxIXF.js";
9
+ import { C as P } from "../chunks/list-editor.CrLntuM7.js";
10
10
  import { default as I } from "./masonry.js";
11
11
  import { default as y } from "./padding-input-group.js";
12
12
  import { default as w } from "./position-picker.js";