@luzmo/analytics-components-kit 1.0.1-alpha.4 → 1.0.1-alpha.6

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 (372) hide show
  1. package/components/async-directive-DWRUSKKF-C2JoUGYR.cjs +56 -0
  2. package/components/async-directive-DWRUSKKF-CNTJHpgh.js +152 -0
  3. package/components/base-BjTwmyRF.cjs +24 -0
  4. package/components/base-D76d76ww-BiajPmzU.cjs +40 -0
  5. package/components/base-D76d76ww-gf0ESLsU.js +45 -0
  6. package/components/base-D76d76ww.js +28 -0
  7. package/{lib/button-base-CtfPWS-P.js → components/button-base-B7v4eeRh-B4fczZlv.js} +55 -36
  8. package/components/button-base-B7v4eeRh-CjngVDsD.cjs +43 -0
  9. package/components/checkbox-mixin-BFGTmw17-BR4ufh0S.js +88 -0
  10. package/components/checkbox-mixin-BFGTmw17-lIHmn1jk.cjs +45 -0
  11. package/components/directive-helpers-nlQRAaQt-CQ_hWlbQ.cjs +80 -0
  12. package/components/directive-helpers-nlQRAaQt-arNFWD5u.js +115 -0
  13. package/components/display-settings/display-settings.d.ts +70 -0
  14. package/components/display-settings/index.cjs +105 -0
  15. package/components/display-settings/index.d.ts +7 -0
  16. package/components/display-settings/index.js +238 -0
  17. package/components/display-settings-binning/display-settings-binning.d.ts +32 -0
  18. package/components/display-settings-binning/index.cjs +51 -0
  19. package/components/display-settings-binning/index.d.ts +7 -0
  20. package/components/display-settings-binning/index.js +136 -0
  21. package/components/display-settings-datetime/display-settings-datetime.d.ts +85 -0
  22. package/{lib/en-GB-BqYHIX1v.cjs → components/display-settings-datetime/index.cjs} +1 -1
  23. package/components/display-settings-datetime/index.d.ts +7 -0
  24. package/{lib/draggable-data-item → components/display-settings-datetime}/index.js +2 -2
  25. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +30 -0
  26. package/components/display-settings-grand-totals/index.cjs +41 -0
  27. package/components/display-settings-grand-totals/index.d.ts +7 -0
  28. package/components/display-settings-grand-totals/index.js +115 -0
  29. package/components/display-settings-numeric/display-settings-numeric.d.ts +73 -0
  30. package/components/display-settings-numeric/helpers/constants.d.ts +17 -0
  31. package/components/display-settings-numeric/index.cjs +146 -0
  32. package/components/display-settings-numeric/index.d.ts +7 -0
  33. package/{lib/index-CM80_HQw.js → components/display-settings-numeric/index.js} +116 -106
  34. package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +44 -0
  35. package/components/display-settings-period-over-period/helpers/constants.d.ts +33 -0
  36. package/components/display-settings-period-over-period/index.cjs +103 -0
  37. package/components/display-settings-period-over-period/index.d.ts +7 -0
  38. package/{lib/index-DJp_9h0l.js → components/display-settings-period-over-period/index.js} +113 -132
  39. package/components/divider.module-DwOuLGU3-B19eHVg2.js +40 -0
  40. package/components/divider.module-DwOuLGU3-Bg8RrFkc.cjs +36 -0
  41. package/components/draggable-data-item/draggable-data-item.d.ts +25 -0
  42. package/components/draggable-data-item/index.cjs +55 -0
  43. package/components/draggable-data-item/index.d.ts +7 -0
  44. package/components/draggable-data-item/index.js +140 -0
  45. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +29 -0
  46. package/components/draggable-data-item-level/helpers/calculate-type-icon.d.ts +2 -0
  47. package/components/draggable-data-item-level/helpers/generate-preview.d.ts +1 -0
  48. package/components/draggable-data-item-level/index.cjs +36 -0
  49. package/components/draggable-data-item-level/index.d.ts +7 -0
  50. package/{lib/index-DrIA0eFE.js → components/draggable-data-item-level/index.js} +143 -242
  51. package/components/droppable-slot/droppable-slot.d.ts +49 -0
  52. package/components/droppable-slot/index.cjs +69 -0
  53. package/components/droppable-slot/index.d.ts +7 -0
  54. package/components/droppable-slot/index.js +255 -0
  55. package/components/droppable-slot/item-slots-configs/area-chart-slots.config.d.ts +44 -0
  56. package/components/droppable-slot/item-slots-configs/bar-chart-slots.config.d.ts +24 -0
  57. package/components/droppable-slot/item-slots-configs/donut-chart-slots.config.d.ts +20 -0
  58. package/components/edit-item/edit-item.d.ts +50 -0
  59. package/components/edit-item/index.cjs +85 -0
  60. package/components/edit-item/index.d.ts +7 -0
  61. package/components/edit-item/index.js +333 -0
  62. package/components/edit-option/edit-option.d.ts +22 -0
  63. package/components/edit-option/helpers/control-markup.d.ts +14 -0
  64. package/components/edit-option/helpers/control-templates/action-button-group-template.d.ts +2 -0
  65. package/components/edit-option/helpers/control-templates/color-picker-template.d.ts +2 -0
  66. package/components/edit-option/helpers/control-templates/multi-language-field-template.d.ts +8 -0
  67. package/components/edit-option/helpers/control-templates/number-field-template.d.ts +2 -0
  68. package/components/edit-option/helpers/control-templates/picker-template.d.ts +2 -0
  69. package/components/edit-option/helpers/control-templates/positions-number-field-template.d.ts +2 -0
  70. package/components/edit-option/helpers/control-templates/radio-button-group.d.ts +2 -0
  71. package/components/edit-option/helpers/control-templates/slider-template.d.ts +2 -0
  72. package/components/edit-option/helpers/control-templates/switch-template.d.ts +2 -0
  73. package/components/edit-option/helpers/control-templates/text-field-template.d.ts +7 -0
  74. package/components/edit-option/helpers/generate-callback.d.ts +1 -0
  75. package/components/edit-option/helpers/get-control-by-key.d.ts +1 -0
  76. package/components/edit-option/helpers/get-extra-label-values.d.ts +7 -0
  77. package/components/edit-option/helpers/get-value-by-key.d.ts +1 -0
  78. package/components/edit-option/index.cjs +176 -0
  79. package/components/edit-option/index.d.ts +7 -0
  80. package/components/edit-option/index.js +507 -0
  81. package/components/edit-option/item-configs/bar-chart.config.d.ts +108 -0
  82. package/components/edit-option/item-configs/column-chart.config.d.ts +108 -0
  83. package/components/edit-option/item-configs/donut-chart.config.d.ts +102 -0
  84. package/components/edit-option/item-configs/imageobject.config.d.ts +128 -0
  85. package/components/edit-option/item-configs/line-chart.config.d.ts +96 -0
  86. package/components/edit-option/item-configs/textobject.config.d.ts +13 -0
  87. package/components/edit-option/item-translations/bar-chart.en.d.ts +48 -0
  88. package/components/edit-option/item-translations/bar-chart.fr.d.ts +23 -0
  89. package/components/edit-option/item-translations/bar-chart.nl.d.ts +23 -0
  90. package/components/edit-option/item-translations/donut-chart.en.d.ts +64 -0
  91. package/components/edit-option/item-translations/donut-chart.fr.d.ts +18 -0
  92. package/components/edit-option/item-translations/donut-chart.nl.d.ts +18 -0
  93. package/components/edit-option-action-button-group/edit-option-action-button-group.d.ts +27 -0
  94. package/components/edit-option-action-button-group/index.cjs +44 -0
  95. package/components/edit-option-action-button-group/index.d.ts +7 -0
  96. package/components/edit-option-action-button-group/index.js +144 -0
  97. package/components/edit-option-base/edit-option-base.d.ts +22 -0
  98. package/components/edit-option-base-Ck3NFAli.cjs +53 -0
  99. package/components/edit-option-base-w3UBiCoU.js +120 -0
  100. package/components/edit-option-color-picker/edit-option-color-picker.d.ts +23 -0
  101. package/components/edit-option-color-picker/index.cjs +472 -0
  102. package/components/edit-option-color-picker/index.d.ts +7 -0
  103. package/components/edit-option-color-picker/index.js +2553 -0
  104. package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +15 -0
  105. package/components/edit-option-multi-language-field/index.cjs +31 -0
  106. package/components/edit-option-multi-language-field/index.d.ts +7 -0
  107. package/components/edit-option-multi-language-field/index.js +102 -0
  108. package/components/edit-option-number-field/edit-option-number-field.d.ts +19 -0
  109. package/components/edit-option-number-field/index.cjs +32 -0
  110. package/components/edit-option-number-field/index.d.ts +7 -0
  111. package/components/edit-option-number-field/index.js +115 -0
  112. package/components/edit-option-picker/edit-option-picker.d.ts +22 -0
  113. package/components/edit-option-picker/index.cjs +35 -0
  114. package/components/edit-option-picker/index.d.ts +7 -0
  115. package/components/edit-option-picker/index.js +106 -0
  116. package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts +28 -0
  117. package/components/edit-option-positions-number-field/index.cjs +42 -0
  118. package/components/edit-option-positions-number-field/index.d.ts +7 -0
  119. package/components/edit-option-positions-number-field/index.js +170 -0
  120. package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +18 -0
  121. package/components/edit-option-radio-button-group/index.cjs +36 -0
  122. package/components/edit-option-radio-button-group/index.d.ts +7 -0
  123. package/components/edit-option-radio-button-group/index.js +113 -0
  124. package/components/edit-option-slider/edit-option-slider.d.ts +15 -0
  125. package/components/edit-option-slider/index.cjs +48 -0
  126. package/components/edit-option-slider/index.d.ts +7 -0
  127. package/components/edit-option-slider/index.js +1253 -0
  128. package/components/edit-option-switch/edit-option-switch.d.ts +11 -0
  129. package/components/edit-option-switch/index.cjs +50 -0
  130. package/components/edit-option-switch/index.d.ts +7 -0
  131. package/components/edit-option-switch/index.js +171 -0
  132. package/components/edit-option-text-field/edit-option-text-field.d.ts +15 -0
  133. package/components/edit-option-text-field/index.cjs +31 -0
  134. package/components/edit-option-text-field/index.d.ts +7 -0
  135. package/components/edit-option-text-field/index.js +100 -0
  136. package/components/element-resolution-FCUT-wql--7ctE626.js +163 -0
  137. package/components/element-resolution-FCUT-wql-DSTvdyds.cjs +68 -0
  138. package/{lib/droppable-slot/index.cjs → components/en-BvtH5B9A.cjs} +1 -1
  139. package/{lib/index-D_KYpfBM.js → components/en-CN4CDOzo.js} +2 -3
  140. package/{lib/en-GB-CYx--4nh.js → components/en-GB-BMvD7axC.js} +1 -1
  141. package/{lib/index-0314DjEl.cjs → components/en-GB-DrOGXwdM.cjs} +1 -1
  142. package/{lib/draggable-data-item/index.cjs → components/en-US-BvtH5B9A.cjs} +1 -1
  143. package/components/en-US-CN4CDOzo.js +23 -0
  144. package/components/focus-group-DHeTq18L-C9l9oHwM.cjs +36 -0
  145. package/components/focus-group-DHeTq18L-rNUu13eb.js +237 -0
  146. package/{lib/get-css-variable-BHHQ0SnL.js → components/get-css-variable-Bhbr-Kr1.js} +379 -410
  147. package/components/get-css-variable-DLiZYZEi.cjs +24 -0
  148. package/components/if-defined-BSAr_4u4-CNmaFBUP.cjs +60 -0
  149. package/components/if-defined-BSAr_4u4-CVDyXUmc.js +95 -0
  150. package/components/if-defined-_S7apvH1.js +29 -0
  151. package/components/if-defined-aQZR75uI.cjs +24 -0
  152. package/components/index-B0ZqIWfU.cjs +39 -0
  153. package/components/index-BEi8DTwW.cjs +36 -0
  154. package/components/index-Bti4K2L2.cjs +67 -0
  155. package/components/index-BuW8doNV.js +299 -0
  156. package/components/index-BxFGd_xp.cjs +36 -0
  157. package/components/index-ByfMhxDr.cjs +36 -0
  158. package/{lib/progress-circle/index.js → components/index-C44nA7Wn.js} +53 -20
  159. package/components/index-CHLcEawI.js +77 -0
  160. package/components/index-CKbGBBId.cjs +54 -0
  161. package/components/index-CMvLpPKD-CgGXdNKs.js +935 -0
  162. package/components/index-CMvLpPKD-DoxJRhRP.cjs +95 -0
  163. package/components/index-CQjWiSIp.cjs +202 -0
  164. package/components/index-C_Cxv6xn.js +164 -0
  165. package/components/index-C_xCeCrL.cjs +185 -0
  166. package/components/index-CdHFj3ra.cjs +59 -0
  167. package/components/index-Ci0Pe5UA.js +317 -0
  168. package/components/index-DC2Pby0z.cjs +95 -0
  169. package/components/index-DDleIdd8.cjs +192 -0
  170. package/components/index-DLrQ4hc5.cjs +42 -0
  171. package/components/index-DMbzEC_s.js +104 -0
  172. package/{lib/index-B9h2L_hV.js → components/index-DUlH3hbL.js} +1233 -1110
  173. package/{lib/en-CIeY2T5K.js → components/index-DeyQ1JGg.js} +439 -447
  174. package/components/index-DiSrnT1e.js +77 -0
  175. package/{lib/picker/index.js → components/index-Dkom_Qy5.js} +22 -6
  176. package/components/index-DxXcY78P.cjs +36 -0
  177. package/components/index-EkTLplXl.cjs +95 -0
  178. package/{lib/droppable-slot/index.js → components/index-FSUV_4nO.js} +18 -4
  179. package/components/index-Pmv-d4iw.js +744 -0
  180. package/{lib/index-CBCm4_7S.js → components/index-aLxc3xA_.js} +400 -459
  181. package/{lib/index-Bd4cKS9O.js → components/index-dJXOanPE.js} +67 -47
  182. package/components/index-f8GtjOLn.cjs +57 -0
  183. package/components/index-fbS4OrPM.js +145 -0
  184. package/components/index.cjs +20 -0
  185. package/components/index.js +74 -0
  186. package/components/language-resolution-8yZa5r_P-CLZhU076.js +161 -0
  187. package/components/language-resolution-8yZa5r_P-CpbzT4ej.cjs +52 -0
  188. package/components/localize-B6AsX_Zv.js +52 -0
  189. package/components/localize-DbobqcKs.cjs +20 -0
  190. package/components/observe-slot-text-ggb4kKgY-DqsddtTd.cjs +86 -0
  191. package/components/observe-slot-text-ggb4kKgY-yUxhPbbJ.js +221 -0
  192. package/{lib/popover-Bwnkg-5-.js → components/popover-DlkzrLpl-DFIvgCjc.js} +25 -6
  193. package/components/popover-DlkzrLpl-TYw7ejnD.cjs +48 -0
  194. package/components/property-CXJD1jOW.js +1480 -0
  195. package/components/property-ChsOQ1Yj.cjs +112 -0
  196. package/components/query-D5qWDopr.cjs +24 -0
  197. package/components/query-Ddbd72Um.js +39 -0
  198. package/components/query-assigned-nodes-C76XVPWY-BcyGjObB.cjs +40 -0
  199. package/components/query-assigned-nodes-C76XVPWY-DPC6kOmH.js +55 -0
  200. package/components/roving-tabindex-DOg4z6ZU-DmyYPRYY.cjs +36 -0
  201. package/components/roving-tabindex-DOg4z6ZU-dufnVmvL.js +85 -0
  202. package/components/sized-mixin-BxMraZLS-Dc6r-Wg4.js +82 -0
  203. package/components/sized-mixin-BxMraZLS-w9I35lP7.cjs +36 -0
  204. package/components/slot-menu/index.cjs +55 -0
  205. package/components/slot-menu/index.d.ts +7 -0
  206. package/components/slot-menu/index.js +188 -0
  207. package/components/slot-menu/slot-menu.d.ts +66 -0
  208. package/components/slot-menu-list/index.cjs +39 -0
  209. package/components/slot-menu-list/index.d.ts +7 -0
  210. package/components/slot-menu-list/index.js +351 -0
  211. package/components/slot-menu-list/slot-menu-list.d.ts +33 -0
  212. package/components/state-DLrsMPet.cjs +24 -0
  213. package/components/state-DwFtyqCc.js +31 -0
  214. package/components/task-CgK9ztaw.cjs +24 -0
  215. package/components/task-DYLITx7R.js +120 -0
  216. package/components/text-field-CvKSS59x-BzSqtt2_.js +412 -0
  217. package/components/text-field-CvKSS59x-D0MM0fDH.cjs +131 -0
  218. package/components/utils.cjs +20 -0
  219. package/components/utils.js +20 -0
  220. package/components/when-CDK1Tt5Y-BN3qcTK0.cjs +40 -0
  221. package/components/when-CDK1Tt5Y-C6ViXC43.js +47 -0
  222. package/custom-elements.json +3562 -884
  223. package/index.d.ts +23 -0
  224. package/package.json +132 -17
  225. package/utils/formatter/calculate-duration.d.ts +2 -0
  226. package/utils/formatter/decompose-numeric-format.d.ts +11 -0
  227. package/utils/formatter/default-local-formats.d.ts +20 -0
  228. package/utils/formatter/formats/cs.d.ts +20 -0
  229. package/utils/formatter/formats/da.d.ts +20 -0
  230. package/utils/formatter/formats/de.d.ts +21 -0
  231. package/utils/formatter/formats/en-GB.d.ts +21 -0
  232. package/utils/formatter/formats/en-US.d.ts +1 -0
  233. package/utils/formatter/formats/en.d.ts +1 -0
  234. package/utils/formatter/formats/es.d.ts +54 -0
  235. package/utils/formatter/formats/fi.d.ts +20 -0
  236. package/utils/formatter/formats/fr.d.ts +54 -0
  237. package/utils/formatter/formats/he.d.ts +20 -0
  238. package/utils/formatter/formats/hu.d.ts +20 -0
  239. package/utils/formatter/formats/it.d.ts +54 -0
  240. package/utils/formatter/formats/ja.d.ts +20 -0
  241. package/utils/formatter/formats/ko.d.ts +20 -0
  242. package/utils/formatter/formats/mk.d.ts +20 -0
  243. package/utils/formatter/formats/nl.d.ts +21 -0
  244. package/utils/formatter/formats/no.d.ts +21 -0
  245. package/utils/formatter/formats/pl.d.ts +20 -0
  246. package/utils/formatter/formats/pt.d.ts +20 -0
  247. package/utils/formatter/formats/ru.d.ts +20 -0
  248. package/utils/formatter/formats/sv.d.ts +20 -0
  249. package/utils/formatter/formats/tr.d.ts +21 -0
  250. package/utils/formatter/formats/zh-CN.d.ts +20 -0
  251. package/utils/formatter/formats/zh-TW.d.ts +20 -0
  252. package/utils/formatter/formatter.d.ts +9 -0
  253. package/utils/formatter/localize.d.ts +3 -0
  254. package/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
  255. package/utils/get-css-variable.d.ts +1 -0
  256. package/utils/index.d.ts +1 -0
  257. package/utils/time/formats.const.d.ts +8 -0
  258. package/utils/time/periods.const.d.ts +29 -0
  259. package/utils/types/column.types.d.ts +56 -0
  260. package/utils/types/type-check.d.ts +7 -0
  261. package/lib/async-directive-CPjMHOPu.cjs +0 -24
  262. package/lib/async-directive-SCUUQ3Mh.js +0 -114
  263. package/lib/button-base-B4PdJFVe.cjs +0 -27
  264. package/lib/directive-helpers-BSB0tfc9.cjs +0 -32
  265. package/lib/directive-helpers-eY1rHtyn.js +0 -154
  266. package/lib/divider.module-BW8qaMVq.js +0 -211
  267. package/lib/divider.module-DEy88Ieh.cjs +0 -20
  268. package/lib/en-BDBzmAXX.cjs +0 -202
  269. package/lib/get-css-variable-D439CdH9.cjs +0 -24
  270. package/lib/if-defined-BbzmSG-O.js +0 -757
  271. package/lib/if-defined-V7yEJWI3.cjs +0 -54
  272. package/lib/index-BDXFsKUM.cjs +0 -146
  273. package/lib/index-BmAD29P2.js +0 -106
  274. package/lib/index-Bo1DpZ-1.cjs +0 -58
  275. package/lib/index-C4ePDYEC.cjs +0 -41
  276. package/lib/index-C9xEN5Ji.js +0 -82
  277. package/lib/index-CcF-9wyF.cjs +0 -71
  278. package/lib/index-CfEm5P0J.cjs +0 -196
  279. package/lib/index-CrWoFMZ3.cjs +0 -22
  280. package/lib/index-CtEJZdT0.js +0 -1627
  281. package/lib/index-CvX-HLY1.cjs +0 -322
  282. package/lib/index-D37RwuEH.js +0 -1584
  283. package/lib/index-D5puKlcm.cjs +0 -96
  284. package/lib/index-DGz6jCKo.cjs +0 -26
  285. package/lib/index-DSbgZduE.js +0 -501
  286. package/lib/index-DdtjeKYI.js +0 -928
  287. package/lib/index-Dj7PF4Q9.cjs +0 -63
  288. package/lib/index-Dq3HAOaM.js +0 -127
  289. package/lib/index-jt6FL_uE.cjs +0 -20
  290. package/lib/index-kJR406YZ.cjs +0 -112
  291. package/lib/index-v8ZTprPO.cjs +0 -51
  292. package/lib/index.cjs +0 -875
  293. package/lib/index.js +0 -6411
  294. package/lib/observe-slot-text-DOYmGOZe.js +0 -181
  295. package/lib/observe-slot-text-oJ0a2KY9.cjs +0 -42
  296. package/lib/picker/index.cjs +0 -20
  297. package/lib/popover-CQGN8nbX.cjs +0 -32
  298. package/lib/progress-circle/index.cjs +0 -35
  299. /package/{lib → components}/area-chart-slots.config-BLxiYX05.cjs +0 -0
  300. /package/{lib → components}/area-chart-slots.config-C0c2ZzBh.js +0 -0
  301. /package/{lib → components}/bar-chart-slots.config-GSSL7XVA.js +0 -0
  302. /package/{lib → components}/bar-chart-slots.config-Jx1PveTM.cjs +0 -0
  303. /package/{lib → components}/bar-chart.config-B57geUzJ.cjs +0 -0
  304. /package/{lib → components}/bar-chart.config-CQ6HAvs2.js +0 -0
  305. /package/{lib → components}/bar-chart.en-BqYbiHO3.cjs +0 -0
  306. /package/{lib → components}/bar-chart.en-FwT00qdU.js +0 -0
  307. /package/{lib → components}/bar-chart.fr-DGx9smEh.cjs +0 -0
  308. /package/{lib → components}/bar-chart.fr-DbxKiM0j.js +0 -0
  309. /package/{lib → components}/bar-chart.nl-BYzVExsz.cjs +0 -0
  310. /package/{lib → components}/bar-chart.nl-ahX1ARpH.js +0 -0
  311. /package/{lib → components}/column-chart.config-B57geUzJ.cjs +0 -0
  312. /package/{lib → components}/column-chart.config-C9hP0kX7.js +0 -0
  313. /package/{lib → components}/cs-DVZ0Tapy.js +0 -0
  314. /package/{lib → components}/cs-I9E81keK.cjs +0 -0
  315. /package/{lib → components}/da-DHy05oSR.js +0 -0
  316. /package/{lib → components}/da-QkdvupDg.cjs +0 -0
  317. /package/{lib → components}/de-Dn5mUzha.cjs +0 -0
  318. /package/{lib → components}/de-iM39JlAt.js +0 -0
  319. /package/{lib → components}/decompose-numeric-format-B3rVVHpO.cjs +0 -0
  320. /package/{lib → components}/decompose-numeric-format-BuZcjH2k.js +0 -0
  321. /package/{lib → components}/donut-chart-slots.config-BEwhfq27.js +0 -0
  322. /package/{lib → components}/donut-chart-slots.config-DIp-24lO.cjs +0 -0
  323. /package/{lib → components}/donut-chart.config-3DhKiSSM.js +0 -0
  324. /package/{lib → components}/donut-chart.config-DLWJUlHx.cjs +0 -0
  325. /package/{lib → components}/donut-chart.en-Blb9oSdU.cjs +0 -0
  326. /package/{lib → components}/donut-chart.en-CzjT4-XN.js +0 -0
  327. /package/{lib → components}/donut-chart.fr-BeTVa2wh.cjs +0 -0
  328. /package/{lib → components}/donut-chart.fr-DftPrKbG.js +0 -0
  329. /package/{lib → components}/donut-chart.nl-D9YGbOce.cjs +0 -0
  330. /package/{lib → components}/donut-chart.nl-NMatXfhK.js +0 -0
  331. /package/{lib → components}/es-CwyPlN5d.cjs +0 -0
  332. /package/{lib → components}/es-KhTq4jX8.js +0 -0
  333. /package/{lib → components}/fi-Dh_ebgpe.js +0 -0
  334. /package/{lib → components}/fi-rijeZE5V.cjs +0 -0
  335. /package/{lib → components}/fr-BcgE-6S_.cjs +0 -0
  336. /package/{lib → components}/fr-CU727YF1.js +0 -0
  337. /package/{lib → components}/he-Au3xg6lR.js +0 -0
  338. /package/{lib → components}/he-O6Ih8Bqh.cjs +0 -0
  339. /package/{lib → components}/hu-BnZ8y3xQ.cjs +0 -0
  340. /package/{lib → components}/hu-DNJ-P_MW.js +0 -0
  341. /package/{lib → components}/imageobject.config-B7ld9bj3.cjs +0 -0
  342. /package/{lib → components}/imageobject.config-DZLp9Elq.js +0 -0
  343. /package/{lib → components}/it-Bh5U73z6.js +0 -0
  344. /package/{lib → components}/it-PshtLMkq.cjs +0 -0
  345. /package/{lib → components}/ja-CCcHUL61.js +0 -0
  346. /package/{lib → components}/ja-KIS2HdaG.cjs +0 -0
  347. /package/{lib → components}/ko--l4qmjLV.cjs +0 -0
  348. /package/{lib → components}/ko-DhapsZMM.js +0 -0
  349. /package/{lib → components}/line-chart.config-BZcvfO2c.cjs +0 -0
  350. /package/{lib → components}/line-chart.config-CIVN6uLI.js +0 -0
  351. /package/{lib → components}/mk-B9HPSuKa.js +0 -0
  352. /package/{lib → components}/mk-DZlj-edb.cjs +0 -0
  353. /package/{lib → components}/nl-BKlDqOXb.cjs +0 -0
  354. /package/{lib → components}/nl-BwSt5Bf4.js +0 -0
  355. /package/{lib → components}/no-D-DofYnx.js +0 -0
  356. /package/{lib → components}/no-D_SzxhTu.cjs +0 -0
  357. /package/{lib → components}/pl-D_L_0Boq.js +0 -0
  358. /package/{lib → components}/pl-PIK23rK_.cjs +0 -0
  359. /package/{lib → components}/pt-B0BBS5VB.js +0 -0
  360. /package/{lib → components}/pt-Dqlu4MS5.cjs +0 -0
  361. /package/{lib → components}/ru-Vo-m3O_2.js +0 -0
  362. /package/{lib → components}/ru-zyNDTB04.cjs +0 -0
  363. /package/{lib → components}/sv-1DPTltNQ.cjs +0 -0
  364. /package/{lib → components}/sv-CiozMaev.js +0 -0
  365. /package/{lib → components}/textobject.config-C8opcGG4.js +0 -0
  366. /package/{lib → components}/textobject.config-DbAajFz8.cjs +0 -0
  367. /package/{lib → components}/tr-BkmWvOG2.cjs +0 -0
  368. /package/{lib → components}/tr-D_D4i5iv.js +0 -0
  369. /package/{lib → components}/zh-CN-DTZ4OmdP.cjs +0 -0
  370. /package/{lib → components}/zh-CN-wsl7eFSd.js +0 -0
  371. /package/{lib → components}/zh-TW-DTZ4OmdP.cjs +0 -0
  372. /package/{lib → components}/zh-TW-wsl7eFSd.js +0 -0
@@ -0,0 +1,935 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ import { k as w, h as b, H as h, d as I, R as r, r as M } from "./property-CXJD1jOW.js";
21
+ import { d as z } from "./if-defined-BSAr_4u4-CVDyXUmc.js";
22
+ import { m as x } from "./sized-mixin-BxMraZLS-Dc6r-Wg4.js";
23
+ import { r as R } from "./divider.module-DwOuLGU3-B19eHVg2.js";
24
+ import { n as P } from "./directive-helpers-nlQRAaQt-arNFWD5u.js";
25
+ import { m as D } from "./query-assigned-nodes-C76XVPWY-DPC6kOmH.js";
26
+ import { n as y } from "./element-resolution-FCUT-wql--7ctE626.js";
27
+ import { b as O, y as U, a as S } from "./observe-slot-text-ggb4kKgY-yUxhPbbJ.js";
28
+ import { a as L } from "./index-Ci0Pe5UA.js";
29
+ import { luzmoIcon as E, luzmoAngleRight as T, luzmoCheck as $ } from "@luzmo/icons";
30
+ import { o as B } from "./index-DUlH3hbL.js";
31
+ /*! * Lucero - The design system for Luzmo.
32
+ *
33
+ * Copyright © 2025 Luzmo
34
+ * All rights reserved.
35
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
36
+ * This license allows users with a current active Luzmo account to use Lucero.
37
+ * This license terminates automatically if a user no longer has an active Luzmo account.
38
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
39
+ *
40
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
41
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
42
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
43
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
44
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
45
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
46
+ * SOFTWARE.
47
+ * */
48
+ const f = Symbol("slotContentIsPresent");
49
+ function F(a, e) {
50
+ var t, o;
51
+ const i = Array.isArray(e) ? e : [e];
52
+ class n extends (o = a, t = f, o) {
53
+ constructor(...c) {
54
+ super(c), this[t] = /* @__PURE__ */ new Map(), this.managePresenceObservedSlot = () => {
55
+ let d = !1;
56
+ i.forEach((g) => {
57
+ const p = !!this.querySelector(`:scope > ${g}`), C = this[f].get(g) || !1;
58
+ d = d || C !== p, this[f].set(
59
+ g,
60
+ !!this.querySelector(`:scope > ${g}`)
61
+ );
62
+ }), d && this.updateComplete.then(() => {
63
+ this.requestUpdate();
64
+ });
65
+ }, new S(this, {
66
+ config: {
67
+ childList: !0,
68
+ subtree: !0
69
+ },
70
+ callback: () => {
71
+ this.managePresenceObservedSlot();
72
+ }
73
+ }), this.managePresenceObservedSlot();
74
+ }
75
+ /**
76
+ * @private
77
+ */
78
+ get slotContentIsPresent() {
79
+ if (i.length === 1)
80
+ return this[f].get(i[0]) || !1;
81
+ throw new Error(
82
+ "Multiple selectors provided to `ObserveSlotPresence` use `getSlotContentPresence(selector: string)` instead."
83
+ );
84
+ }
85
+ getSlotContentPresence(c) {
86
+ if (this[f].has(c))
87
+ return this[f].get(c) || !1;
88
+ throw new Error(
89
+ `The provided selector \`${c}\` is not being observed.`
90
+ );
91
+ }
92
+ }
93
+ return n;
94
+ }
95
+ const _ = ":host{--menu-item-top-to-action: var(--luzmo-spacing-1);--menu-item-top-to-checkbox: var(--luzmo-spacing-1);--menu-item-label-line-height: var(--luzmo-line-height);--menu-item-label-line-height-cjk: 1.5;--menu-item-label-to-description-spacing: 1px;--menu-item-focus-indicator-width: var(--luzmo-indicator-width);--menu-item-focus-indicator-color: var(--luzmo-indicator-color);--menu-item-label-to-value-area-min-spacing: var(--luzmo-spacing-3);--menu-item-label-content-color-default: var(--luzmo-font-color);--menu-item-label-content-color-hover: var(--luzmo-font-color-hover);--menu-item-label-content-color-down: var(--luzmo-font-color-down);--menu-item-label-content-color-focus: var(--luzmo-font-color-focus);--menu-item-highlight-label-background-color: var(--luzmo-primary);--menu-item-highlight-label-content-color: var(--luzmo-font-color);--menu-item-highlight-label-content-color-hover: var( --luzmo-font-color-hover );--menu-item-highlight-label-content-color-down: var(--luzmo-font-color-down);--menu-item-highlight-label-content-color-focus: var( --luzmo-font-color-focus );--menu-item-label-icon-color-default: var(--luzmo-font-color);--menu-item-label-icon-color-hover: var(--luzmo-font-color-hover);--menu-item-label-icon-color-down: var(--luzmo-font-color-down);--menu-item-label-icon-color-focus: var(--luzmo-font-color-focus);--menu-item-label-content-color-disabled: var(--luzmo-font-color-disabled);--menu-item-label-icon-color-disabled: var(--luzmo-font-color-disabled);--menu-item-description-line-height: var(--luzmo-line-height);--menu-item-description-line-height-cjk: 1.5;--menu-item-description-color-default: var(--luzmo-font-color);--menu-item-description-color-hover: var(--luzmo-font-color-hover);--menu-item-description-color-down: var(--luzmo-font-color-down);--menu-item-description-color-focus: var(--luzmo-font-color-focus);--menu-item-description-color-disabled: var(--luzmo-color-disabled);--menu-section-header-line-height: var(--luzmo-line-height);--menu-section-header-line-height-cjk: 1.5;--menu-section-header-font-weight: bold;--menu-section-header-color: var(--luzmo-font-color-hard);--menu-collapsible-icon-color: var(--luzmo-font-color-hard);--menu-checkmark-icon-color-default: var(--luzmo-primary);--menu-checkmark-icon-color-hover: var(--luzmo-primary-hover);--menu-checkmark-icon-color-down: var(--luzmo-primary-down);--menu-checkmark-icon-color-focus: var(--luzmo-primary-focus);--menu-drillin-icon-color-default: var(--luzmo-font-color);--menu-drillin-icon-color-hover: var(--luzmo-font-color-hover);--menu-drillin-icon-color-down: var(--luzmo-font-color-down);--menu-drillin-icon-color-focus: var(--luzmo-font-color-focus);--menu-item-value-color-default: var(--luzmo-font-color);--menu-item-value-color-hover: var(--luzmo-font-color-hover);--menu-item-value-color-down: var(--luzmo-font-color-down);--menu-item-value-color-focus: var(--luzmo-font-color-focus);--menu-checkmark-display-hidden: none;--menu-checkmark-display-shown: block;--menu-checkmark-display: block;--menu-item-collapsible-no-icon-submenu-item-padding-x-start: 28px;--menu-item-background-color-selected: var(--luzmo-background-color);--menu-item-background-color-default: var(--luzmo-background-color);--menu-item-background-color-hover: var(--luzmo-background-color-hover);--menu-item-background-color-down: var(--luzmo-background-color-down);--menu-item-background-color-key-focus: var(--luzmo-background-color-focus)}:host{--menu-item-min-height: var(--luzmo-component-height);--menu-item-icon-height: var(--luzmo-font-size);--menu-item-icon-width: var(--luzmo-font-size);--menu-item-label-font-size: var(--luzmo-font-size);--menu-item-label-text-to-visual: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--menu-item-label-inline-edge-to-content: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--menu-item-top-edge-to-text: var(--luzmo-spacing-1);--menu-item-bottom-edge-to-text: var(--luzmo-spacing-1);--menu-item-text-to-control: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--menu-item-description-font-size: var(--luzmo-font-size-xs);--menu-section-header-font-size: var(--luzmo-font-size);--menu-section-header-min-width: var(--luzmo-component-height);--menu-item-selectable-edge-to-text-not-selected: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--menu-item-checkmark-size: var(--luzmo-font-size-xs);--menu-item-angle-size: var(--luzmo-font-size);--menu-item-top-to-checkmark: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) );--menu-back-icon-margin: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) )}:host([size=s]){--menu-item-min-height: var(--luzmo-component-height-s);--menu-item-icon-height: var(--luzmo-font-size-s);--menu-item-icon-width: var(--luzmo-font-size-s);--menu-item-label-font-size: var(--luzmo-font-size-s);--menu-item-label-text-to-visual: var(--luzmo-spacing-3);--menu-item-label-inline-edge-to-content: var(--luzmo-spacing-3);--menu-item-top-edge-to-text: var(--luzmo-spacing-1);--menu-item-bottom-edge-to-text: var(--luzmo-spacing-1);--menu-item-text-to-control: var(--luzmo-spacing-2);--menu-item-description-font-size: var(--luzmo-font-size-xs);--menu-section-header-font-size: var(--luzmo-font-size-s);--menu-section-header-min-width: var(--luzmo-component-height-s);--menu-item-selectable-edge-to-text-not-selected: var(--luzmo-spacing-3);--menu-item-checkmark-size: var(--luzmo-font-size-xs);--menu-item-angle-size: var(--luzmo-font-size-s);--menu-item-top-to-checkmark: var(--luzmo-spacing-3);--menu-back-icon-margin: var(--luzmo-spacing-3)}:host([size=l]){--menu-item-min-height: var(--luzmo-component-height-l);--menu-item-icon-height: var(--luzmo-font-size-l);--menu-item-icon-width: var(--luzmo-font-size-l);--menu-item-label-font-size: var(--luzmo-font-size-l);--menu-item-label-text-to-visual: var(--luzmo-spacing-4);--menu-item-label-inline-edge-to-content: var(--luzmo-spacing-4);--menu-item-top-edge-to-text: var(--luzmo-spacing-2);--menu-item-bottom-edge-to-text: var(--luzmo-spacing-2);--menu-item-text-to-control: var(--luzmo-spacing-3);--menu-item-description-font-size: var(--luzmo-font-size-s);--menu-section-header-font-size: var(--luzmo-font-size-l);--menu-section-header-min-width: var(--luzmo-component-height-l);--menu-item-selectable-edge-to-text-not-selected: var(--luzmo-spacing-4);--menu-item-checkmark-size: var(--luzmo-font-size-s);--menu-item-angle-size: var(--luzmo-font-size-l);--menu-item-top-to-checkmark: var(--luzmo-spacing-4);--menu-back-icon-margin: var(--luzmo-spacing-4)}:host([size=xl]){--menu-item-min-height: var(--luzmo-component-height-xl);--menu-item-icon-height: var(--font-size-xl);--menu-item-icon-width: var(--font-size-xl);--menu-item-label-font-size: var(--font-size-xl);--menu-item-label-text-to-visual: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--menu-item-label-inline-edge-to-content: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--menu-item-top-edge-to-text: var(--luzmo-spacing-2);--menu-item-bottom-edge-to-text: var(--luzmo-spacing-2);--menu-item-text-to-control: var(--luzmo-spacing-4);--menu-item-description-font-size: var(--luzmo-font-size);--menu-section-header-font-size: var(--font-size-xl);--menu-section-header-min-width: var(--luzmo-component-height-xl);--menu-item-selectable-edge-to-text-not-selected: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--menu-item-checkmark-size: var(--font-size);--menu-item-angle-size: var(--luzmo-font-size-xl);--menu-item-top-to-checkmark: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--menu-back-icon-margin: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) )}:host([variant=highlight]){--menu-item-highlight-label-content-color: var(--luzmo-primary-inverse-color);--menu-item-highlight-label-content-color-hover: var( --luzmo-primary-inverse-color );--menu-item-highlight-label-content-color-down: var( --luzmo-primary-inverse-color );--menu-item-highlight-label-content-color-focus: var( --luzmo-primary-inverse-color )}@media (forced-colors: active){:host{--highcontrast-menu-item-background-color-default: ButtonFace;--highcontrast-menu-item-color-default: ButtonText;--highcontrast-menu-item-background-color-focus: Highlight;--highcontrast-menu-item-color-focus: HighlightText;--highcontrast-menu-checkmark-icon-color-default: Highlight;--highcontrast-menu-item-color-disabled: GrayText;--highcontrast-menu-item-focus-indicator-color: Highlight;--highcontrast-menu-item-selected-background-color: Highlight;--highcontrast-menu-item-selected-color: HighlightText}@supports (color: SelectedItem){:host{--highcontrast-menu-item-selected-background-color: SelectedItem;--highcontrast-menu-item-selected-color: SelectedItemText}}}:host{inline-size:auto;inline-size:var(--luzmo-menu-inline-size, auto);box-sizing:border-box;margin:0;padding:0;list-style-type:none;display:inline-block;overflow:auto}:host:lang(ja),:host:lang(ko),:host:lang(zh){--menu-item-label-line-height: var( --luzmo-menu-item-label-line-height-cjk, var(--menu-item-label-line-height-cjk) );--menu-item-description-line-height: var( --luzmo-menu-item-description-line-height-cjk, var(--menu-item-description-line-height-cjk) );--menu-section-header-line-height: var( --luzmo-menu-section-header-line-height-cjk, var(--menu-section-header-line-height-cjk) )}:host([selects]) ::slotted(luzmo-menu-item){--menu-checkmark-display: var(--menu-checkmark-display-hidden);padding-inline-start:var(--luzmo-menu-item-selectable-edge-to-text-not-selected, var(--menu-item-selectable-edge-to-text-not-selected))}:host([selects]) ::slotted(luzmo-menu-item[selected]){--menu-checkmark-display: var(--menu-checkmark-display-shown);padding-inline-start:var(--luzmo-menu-item-label-inline-edge-to-content, var(--menu-item-label-inline-edge-to-content))}.luzmo-Menu-backIcon{margin-block:var(--luzmo-menu-back-icon-margin-block, var(--menu-back-icon-margin));margin-inline:var(--luzmo-menu-back-icon-margin-inline, var(--menu-back-icon-margin));fill:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-back-icon-color-default, var(--menu-section-header-color)));color:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-back-icon-color-default, var(--menu-section-header-color)))}.luzmo-Menu-back:focus-visible{box-shadow:inset calc(var(--luzmo-menu-item-focus-indicator-width, var(--menu-item-focus-indicator-width)) * 1) 0 0 0 var(--highcontrast-menu-item-focus-indicator-color, var(--luzmo-menu-item-focus-indicator-color, var(--menu-item-focus-indicator-color)));box-shadow:inset calc(var(--luzmo-menu-item-focus-indicator-width, var(--menu-item-focus-indicator-width)) * var(--menu-item-focus-indicator-direction-scalar, 1)) 0 0 0 var(--highcontrast-menu-item-focus-indicator-color, var(--luzmo-menu-item-focus-indicator-color, var(--menu-item-focus-indicator-color)))}.luzmo-Menu-sectionHeading{color:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-section-header-color, var(--menu-section-header-color)));font-size:var(--luzmo-menu-section-header-font-size, var(--menu-section-header-font-size));font-weight:var(--luzmo-menu-section-header-font-weight, var(--menu-section-header-font-weight));line-height:var(--luzmo-menu-section-header-line-height, var(--menu-section-header-line-height));min-inline-size:var(--luzmo-menu-section-header-min-width, var(--menu-section-header-min-width));padding-block-start:var(--luzmo-menu-section-header-top-edge-to-text, var(--luzmo-menu-item-top-edge-to-text, var(--menu-item-top-edge-to-text)));padding-block-end:var(--luzmo-menu-section-header-bottom-edge-to-text, var(--luzmo-menu-item-bottom-edge-to-text, var(--menu-item-bottom-edge-to-text)));padding-inline:var(--luzmo-menu-item-label-inline-edge-to-content, var(--menu-item-label-inline-edge-to-content));grid-area:sectionHeadingArea/1/sectionHeadingArea/-1;display:block}.luzmo-Menu-back{padding-inline:0 var(--luzmo-menu-back-padding-inline-end, var(--menu-item-label-inline-edge-to-content));padding-inline:var(--luzmo-menu-back-padding-inline-start, 0) var(--luzmo-menu-back-padding-inline-end, var(--menu-item-label-inline-edge-to-content));padding-block:0;padding-block:var(--luzmo-menu-back-padding-block-start, 0) var(--luzmo-menu-back-padding-block-end, 0);flex-flow:wrap;align-items:center;display:flex}.luzmo-Menu-back .luzmo-Menu-sectionHeading{padding:0}.luzmo-Menu-backButton{cursor:pointer;background:none;border:0;margin:0;padding:0;display:inline-flex}.luzmo-Menu-backButton:focus-visible{outline:var(--luzmo-indicator-width) solid var(--luzmo-indicator-color);outline-offset:calc((var(--luzmo-indicator-width) + 1px) * -1)}.luzmo-Menu-backHeading{color:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-back-heading-color, var(--menu-section-header-color)));font-size:var(--luzmo-menu-section-header-font-size, var(--menu-section-header-font-size));font-weight:var(--luzmo-menu-section-header-font-weight, var(--menu-section-header-font-weight));line-height:var(--luzmo-menu-section-header-line-height, var(--menu-section-header-line-height));display:block}:host{display:inline-flex;flex-direction:column;width:100%}:host(:focus){outline:none}::slotted(*){flex-shrink:0}";
96
+ var j = Object.defineProperty, H = Object.getOwnPropertyDescriptor, v = (a, e, t, o) => {
97
+ for (var i = o > 1 ? void 0 : o ? H(e, t) : e, n = a.length - 1, l; n >= 0; n--)
98
+ (l = a[n]) && (i = (o ? l(e, t, i) : l(i)) || i);
99
+ return o && i && j(e, t, i), i;
100
+ };
101
+ function q(a, e) {
102
+ return !!e && (a === e || a.contains(e));
103
+ }
104
+ class m extends x(w, {
105
+ noDefaultSize: !0
106
+ }) {
107
+ constructor() {
108
+ super(), this.label = "", this.ignore = !1, this.value = "", this.valueSeparator = ",", this.selectedItems = [], this.focusedItemIndex = 0, this.focusInItemIndex = 0, this._selected = [], this.cacheUpdated = Promise.resolve(), this.childItemSet = /* @__PURE__ */ new Set(), this.selectedItemsMap = /* @__PURE__ */ new Map(), this._hasUpdatedSelectedItemIndex = !1, this._willUpdateItems = !1, this.pointerUpTarget = null, this.descendentOverlays = /* @__PURE__ */ new Map(), this.handleSubmenuClosed = (e) => {
109
+ e.stopPropagation(), e.composedPath()[0].dispatchEvent(
110
+ new Event("luzmo-menu-submenu-closed", {
111
+ bubbles: !0,
112
+ composed: !0
113
+ })
114
+ );
115
+ }, this.handleSubmenuOpened = (e) => {
116
+ e.stopPropagation(), e.composedPath()[0].dispatchEvent(
117
+ new Event("luzmo-menu-submenu-opened", {
118
+ bubbles: !0,
119
+ composed: !0
120
+ })
121
+ );
122
+ const t = this.childItems[this.focusedItemIndex];
123
+ t && (t.focused = !1);
124
+ const o = e.composedPath().find((n) => this.childItemSet.has(n));
125
+ if (!o)
126
+ return;
127
+ const i = this.childItems.indexOf(
128
+ o
129
+ );
130
+ this.focusedItemIndex = i, this.focusInItemIndex = i;
131
+ }, this.resolveCacheUpdated = () => {
132
+ }, this.addEventListener(
133
+ "luzmo-menu-item-added-or-updated",
134
+ this.onSelectableItemAddedOrUpdated
135
+ ), this.addEventListener(
136
+ "luzmo-menu-item-added-or-updated",
137
+ this.onFocusableItemAddedOrUpdated,
138
+ {
139
+ capture: !0
140
+ }
141
+ ), this.addEventListener("click", this.handleClick), this.addEventListener("pointerup", this.handlePointerup), this.addEventListener("focusin", this.handleFocusin), this.addEventListener("blur", this.handleBlur), this.addEventListener("luzmo-opened", this.handleSubmenuOpened), this.addEventListener("luzmo-closed", this.handleSubmenuClosed);
142
+ }
143
+ static get styles() {
144
+ return [b(_)];
145
+ }
146
+ get isSubmenu() {
147
+ return this.slot === "submenu";
148
+ }
149
+ get selected() {
150
+ return this._selected;
151
+ }
152
+ set selected(e) {
153
+ if (e === this.selected)
154
+ return;
155
+ const t = this.selected;
156
+ this._selected = e, this.selectedItems = [], this.selectedItemsMap.clear(), this.childItems.forEach((o) => {
157
+ this === o.menuData.selectionRoot && (o.selected = this.selected.includes(o.value), o.selected && (this.selectedItems.push(o), this.selectedItemsMap.set(o, !0)));
158
+ }), this.requestUpdate("selected", t);
159
+ }
160
+ get childItems() {
161
+ return this.cachedChildItems || (this.cachedChildItems = this.updateCachedMenuItems()), this.cachedChildItems;
162
+ }
163
+ /**
164
+ * Hide this getter from web-component-analyzer until
165
+ * https://github.com/runem/web-component-analyzer/issues/131
166
+ * has been addressed.
167
+ *
168
+ * @private
169
+ */
170
+ get childRole() {
171
+ if (this.resolvedRole === "listbox")
172
+ return "option";
173
+ switch (this.resolvedSelects) {
174
+ case "single":
175
+ return "menuitemradio";
176
+ case "multiple":
177
+ return "menuitemcheckbox";
178
+ default:
179
+ return "menuitem";
180
+ }
181
+ }
182
+ get ownRole() {
183
+ return "menu";
184
+ }
185
+ focus({ preventScroll: e } = {}) {
186
+ if (this.childItems.every((o) => o.disabled))
187
+ return;
188
+ if (this.childItems.some((o) => o.menuData.focusRoot !== this)) {
189
+ super.focus({ preventScroll: e });
190
+ return;
191
+ }
192
+ this.focusMenuItemByOffset(0), super.focus({ preventScroll: e });
193
+ const t = this.selectedItems[0];
194
+ t && !e && t.scrollIntoView({ block: "nearest" });
195
+ }
196
+ handleFocusin(e) {
197
+ var t;
198
+ if (this.childItems.some((n) => n.menuData.focusRoot !== this))
199
+ return;
200
+ const o = this.getRootNode().activeElement, i = ((t = this.childItems[this.focusedItemIndex]) == null ? void 0 : t.menuData.selectionRoot) || this;
201
+ if ((o !== i || e.target !== this) && (i.focus({ preventScroll: !0 }), o && this.focusedItemIndex === 0)) {
202
+ const n = this.childItems.indexOf(o);
203
+ this.focusMenuItemByOffset(Math.max(n, 0));
204
+ }
205
+ this.startListeningToKeyboard();
206
+ }
207
+ startListeningToKeyboard() {
208
+ this.addEventListener("keydown", this.handleKeydown);
209
+ }
210
+ handleBlur(e) {
211
+ q(this, e.relatedTarget) || (this.stopListeningToKeyboard(), this.childItems.forEach((t) => t.focused = !1), this.removeAttribute("aria-activedescendant"));
212
+ }
213
+ stopListeningToKeyboard() {
214
+ this.removeEventListener("keydown", this.handleKeydown);
215
+ }
216
+ selectOrToggleItem(e) {
217
+ const t = this.resolvedSelects, o = new Map(this.selectedItemsMap), i = [...this.selected], n = [...this.selectedItems], l = this.value, c = this.childItems[this.focusedItemIndex];
218
+ if (c && (c.focused = !1, c.active = !1), this.focusedItemIndex = this.childItems.indexOf(e), this.forwardFocusVisibleToItem(e), t === "multiple") {
219
+ this.selectedItemsMap.has(e) ? this.selectedItemsMap.delete(e) : this.selectedItemsMap.set(e, !0);
220
+ const d = [], g = [];
221
+ this.childItemSet.forEach((p) => {
222
+ p.menuData.selectionRoot === this && this.selectedItemsMap.has(p) && (d.push(p.value), g.push(p));
223
+ }), this._selected = d, this.selectedItems = g, this.value = this.selected.join(this.valueSeparator);
224
+ } else
225
+ this.selectedItemsMap.clear(), this.selectedItemsMap.set(e, !0), this.value = e.value, this._selected = [e.value], this.selectedItems = [e];
226
+ if (!this.dispatchEvent(
227
+ new Event("change", {
228
+ cancelable: !0,
229
+ bubbles: !0,
230
+ composed: !0
231
+ })
232
+ )) {
233
+ this._selected = i, this.selectedItems = n, this.selectedItemsMap = o, this.value = l;
234
+ return;
235
+ }
236
+ if (t === "single") {
237
+ for (const d of o.keys())
238
+ d !== e && (d.selected = !1);
239
+ e.selected = !0;
240
+ } else t === "multiple" && (e.selected = !e.selected);
241
+ }
242
+ handleKeydown(e) {
243
+ if (e.defaultPrevented)
244
+ return;
245
+ const t = this.childItems[this.focusedItemIndex];
246
+ t && (t.focused = !0);
247
+ const { key: o } = e;
248
+ if (e.shiftKey && e.target !== this && this.hasAttribute("tabindex")) {
249
+ this.removeAttribute("tabindex");
250
+ const i = (n) => {
251
+ !n.shiftKey && !this.hasAttribute("tabindex") && (this.tabIndex = 0, document.removeEventListener("keyup", i), this.removeEventListener("focusout", i));
252
+ };
253
+ document.addEventListener("keyup", i), this.addEventListener("focusout", i);
254
+ }
255
+ if (o === "Tab") {
256
+ this.prepareToCleanUp();
257
+ return;
258
+ }
259
+ if (o === " " && t != null && t.hasSubmenu) {
260
+ t.openOverlay();
261
+ return;
262
+ }
263
+ if (o === " " || o === "Enter") {
264
+ const i = this.childItems[this.focusedItemIndex];
265
+ i && i.menuData.selectionRoot === e.target && (e.preventDefault(), i.click());
266
+ return;
267
+ }
268
+ if (o === "ArrowDown" || o === "ArrowUp") {
269
+ const i = this.childItems[this.focusedItemIndex];
270
+ i && i.menuData.selectionRoot === e.target && this.navigateWithinMenu(e);
271
+ return;
272
+ }
273
+ this.navigateBetweenRelatedMenus(e);
274
+ }
275
+ focusMenuItemByOffset(e) {
276
+ const t = e || 1, o = this.childItems[this.focusedItemIndex];
277
+ o && (o.focused = !1, o.active = o.open), this.focusedItemIndex = (this.childItems.length + this.focusedItemIndex + e) % this.childItems.length;
278
+ let i = this.childItems[this.focusedItemIndex], n = this.childItems.length;
279
+ for (; i != null && i.disabled && n; )
280
+ n -= 1, this.focusedItemIndex = (this.childItems.length + this.focusedItemIndex + t) % this.childItems.length, i = this.childItems[this.focusedItemIndex];
281
+ return i != null && i.disabled || this.forwardFocusVisibleToItem(i), i;
282
+ }
283
+ updateSelectedItemIndex() {
284
+ let e = 0;
285
+ const t = /* @__PURE__ */ new Map(), o = [], i = [];
286
+ let n = this.childItems.length;
287
+ for (; n; ) {
288
+ n -= 1;
289
+ const l = this.childItems[n];
290
+ l.menuData.selectionRoot === this && ((l.selected || !this._hasUpdatedSelectedItemIndex && this.selected.includes(l.value)) && (e = n, t.set(l, !0), o.unshift(l.value), i.unshift(l)), n !== e && (l.focused = !1));
291
+ }
292
+ i.map((l, c) => {
293
+ c > 0 && (l.focused = !1);
294
+ }), this.selectedItemsMap = t, this._selected = o, this.selectedItems = i, this.value = this.selected.join(this.valueSeparator), this.focusedItemIndex = e, this.focusInItemIndex = e;
295
+ }
296
+ closeDescendentOverlays() {
297
+ this.descendentOverlays.forEach((e) => {
298
+ e.open = !1;
299
+ }), this.descendentOverlays = /* @__PURE__ */ new Map();
300
+ }
301
+ render() {
302
+ return this.renderMenuItemSlot();
303
+ }
304
+ connectedCallback() {
305
+ super.connectedCallback(), !this.hasAttribute("role") && !this.ignore && this.setAttribute("role", this.ownRole), this.updateComplete.then(() => this.updateItemFocus());
306
+ }
307
+ disconnectedCallback() {
308
+ this.cachedChildItems = void 0, this.selectedItems = [], this.selectedItemsMap.clear(), this.childItemSet.clear(), this.descendentOverlays = /* @__PURE__ */ new Map(), super.disconnectedCallback();
309
+ }
310
+ handleDescendentOverlayOpened(e) {
311
+ const t = e.composedPath()[0];
312
+ t.overlayElement && this.descendentOverlays.set(t.overlayElement, t.overlayElement);
313
+ }
314
+ handleDescendentOverlayClosed(e) {
315
+ const t = e.composedPath()[0];
316
+ t.overlayElement && this.descendentOverlays.delete(t.overlayElement);
317
+ }
318
+ navigateWithinMenu(e) {
319
+ const { key: t } = e, o = this.childItems[this.focusedItemIndex], i = t === "ArrowDown" ? 1 : -1, n = this.focusMenuItemByOffset(i);
320
+ n !== o && (e.preventDefault(), e.stopPropagation(), n.scrollIntoView({ block: "nearest" }));
321
+ }
322
+ navigateBetweenRelatedMenus(e) {
323
+ const { key: t } = e;
324
+ e.stopPropagation();
325
+ const o = this.isLTR && t === "ArrowRight" || !this.isLTR && t === "ArrowLeft", i = this.isLTR && t === "ArrowLeft" || !this.isLTR && t === "ArrowRight";
326
+ if (o) {
327
+ const n = this.childItems[this.focusedItemIndex];
328
+ n != null && n.hasSubmenu && n.openOverlay();
329
+ } else i && this.isSubmenu && (this.dispatchEvent(new Event("close", { bubbles: !0 })), this.updateSelectedItemIndex());
330
+ }
331
+ renderMenuItemSlot() {
332
+ return h`
333
+ <slot
334
+ @luzmo-menu-submenu-opened=${this.handleDescendentOverlayOpened}
335
+ @luzmo-menu-submenu-closed=${this.handleDescendentOverlayClosed}
336
+ @slotchange=${this.handleSlotchange}
337
+ ></slot>
338
+ `;
339
+ }
340
+ firstUpdated(e) {
341
+ if (super.firstUpdated(e), !this.hasAttribute("tabindex") && !this.ignore) {
342
+ const o = this.getAttribute("role");
343
+ this.tabIndex = o === "group" ? -1 : 0;
344
+ }
345
+ const t = [
346
+ new Promise((o) => requestAnimationFrame(() => o(!0)))
347
+ ];
348
+ [...this.children].forEach((o) => {
349
+ o.localName === "luzmo-menu-item" && t.push(o.updateComplete);
350
+ }), this.childItemsUpdated = Promise.all(t);
351
+ }
352
+ updated(e) {
353
+ super.updated(e), e.has("selects") && this.hasUpdated && this.selectsChanged(), e.has("label") && (this.label || e.get("label") !== void 0) && (this.label ? this.setAttribute("aria-label", this.label) : this.removeAttribute("aria-label"));
354
+ }
355
+ selectsChanged() {
356
+ const e = [
357
+ new Promise((t) => requestAnimationFrame(() => t(!0)))
358
+ ];
359
+ this.childItemSet.forEach((t) => {
360
+ e.push(t.triggerUpdate());
361
+ }), this.childItemsUpdated = Promise.all(e);
362
+ }
363
+ async getUpdateComplete() {
364
+ const e = await super.getUpdateComplete();
365
+ return await this.childItemsUpdated, await this.cacheUpdated, e;
366
+ }
367
+ updateCachedMenuItems() {
368
+ if (this.cachedChildItems = [], !this.menuSlot)
369
+ return [];
370
+ const e = this.menuSlot.assignedElements({
371
+ flatten: !0
372
+ });
373
+ for (const [t, o] of e.entries()) {
374
+ if (this.childItemSet.has(o)) {
375
+ this.cachedChildItems.push(o);
376
+ continue;
377
+ }
378
+ const i = o.localName === "slot" ? o.assignedElements({
379
+ flatten: !0
380
+ }) : [...o.querySelectorAll(":scope > *")];
381
+ e.splice(
382
+ t,
383
+ 1,
384
+ o,
385
+ ...i
386
+ );
387
+ }
388
+ return this.cachedChildItems;
389
+ }
390
+ /**
391
+ * When a descendant `<luzmo-menu-item>` element is added or updated it will dispatch
392
+ * this event to announce its presence in the DOM. During the CAPTURE phase the first
393
+ * Menu based element that the event encounters will manage the focus state of the
394
+ * dispatching `<luzmo-menu-item>` element.
395
+ * @param event
396
+ */
397
+ onFocusableItemAddedOrUpdated(e) {
398
+ e.menuCascade.set(this, {
399
+ hadFocusRoot: !!e.item.menuData.focusRoot,
400
+ ancestorWithSelects: e.currentAncestorWithSelects
401
+ }), this.selects && (e.currentAncestorWithSelects = this), e.item.menuData.focusRoot = e.item.menuData.focusRoot || this;
402
+ }
403
+ /**
404
+ * When a descendant `<luzmo-menu-item>` element is added or updated it will dispatch
405
+ * this event to announce its presence in the DOM. During the BUBBLE phase the first
406
+ * Menu based element that the event encounters that does not inherit selection will
407
+ * manage the selection state of the dispatching `<luzmo-menu-item>` element.
408
+ * @param event
409
+ */
410
+ onSelectableItemAddedOrUpdated(e) {
411
+ var t, o;
412
+ const i = e.menuCascade.get(this);
413
+ if (!i)
414
+ return;
415
+ if (e.item.menuData.parentMenu = e.item.menuData.parentMenu || this, i.hadFocusRoot && !this.ignore && (this.tabIndex = -1), this.addChildItem(e.item), this.selects === "inherit") {
416
+ this.resolvedSelects = "inherit";
417
+ const l = (t = e.currentAncestorWithSelects) == null ? void 0 : t.ignore;
418
+ this.resolvedRole = l ? "none" : ((o = e.currentAncestorWithSelects) == null ? void 0 : o.getAttribute("role")) || this.getAttribute("role") || void 0;
419
+ } else this.selects ? (this.resolvedRole = this.ignore ? "none" : this.getAttribute("role") || void 0, this.resolvedSelects = this.selects) : (this.resolvedRole = this.ignore ? "none" : this.getAttribute("role") || void 0, this.resolvedSelects = this.resolvedRole === "none" ? "ignore" : "none");
420
+ const n = this.resolvedSelects === "single" || this.resolvedSelects === "multiple";
421
+ e.item.menuData.cleanupSteps.push(
422
+ (l) => this.removeChildItem(l)
423
+ ), (n || !this.selects && this.resolvedSelects !== "ignore") && !e.item.menuData.selectionRoot && (e.item.setRole(this.childRole), e.item.menuData.selectionRoot = e.item.menuData.selectionRoot || this, e.item.selected && (this.selectedItemsMap.set(e.item, !0), this.selectedItems = [...this.selectedItems, e.item], this._selected = [...this.selected, e.item.value], this.value = this.selected.join(this.valueSeparator)));
424
+ }
425
+ addChildItem(e) {
426
+ this.childItemSet.add(e), this.handleItemsChanged();
427
+ }
428
+ async removeChildItem(e) {
429
+ this.childItemSet.delete(e), this.cachedChildItems = void 0, e.focused && (this.handleItemsChanged(), await this.updateComplete, this.focus());
430
+ }
431
+ handleClick(e) {
432
+ if (this.pointerUpTarget === e.target) {
433
+ this.pointerUpTarget = null;
434
+ return;
435
+ }
436
+ this.handlePointerBasedSelection(e);
437
+ }
438
+ handlePointerup(e) {
439
+ this.pointerUpTarget = e.target, this.handlePointerBasedSelection(e);
440
+ }
441
+ handlePointerBasedSelection(e) {
442
+ var t, o;
443
+ if (e instanceof MouseEvent && e.button !== 0)
444
+ return;
445
+ const i = e.composedPath().find((n) => n instanceof Element ? n.getAttribute("role") === this.childRole : !1);
446
+ if (e.defaultPrevented) {
447
+ const n = this.childItems.indexOf(i);
448
+ ((t = i == null ? void 0 : i.menuData) == null ? void 0 : t.focusRoot) === this && n !== -1 && (this.focusedItemIndex = n);
449
+ return;
450
+ }
451
+ if (i != null && i.href && i.href.length > 0) {
452
+ this.dispatchEvent(
453
+ new Event("change", {
454
+ bubbles: !0,
455
+ composed: !0
456
+ })
457
+ );
458
+ return;
459
+ } else if (((o = i == null ? void 0 : i.menuData) == null ? void 0 : o.selectionRoot) === this && this.childItems.length > 0) {
460
+ if (e.preventDefault(), i.hasSubmenu || i.open)
461
+ return;
462
+ this.selectOrToggleItem(i);
463
+ } else
464
+ return;
465
+ this.prepareToCleanUp();
466
+ }
467
+ prepareToCleanUp() {
468
+ document.addEventListener(
469
+ "focusout",
470
+ () => {
471
+ requestAnimationFrame(() => {
472
+ const e = this.childItems[this.focusedItemIndex];
473
+ e && (e.focused = !1, this.updateSelectedItemIndex());
474
+ });
475
+ },
476
+ { once: !0 }
477
+ );
478
+ }
479
+ handleItemsChanged() {
480
+ this.cachedChildItems = void 0, this._willUpdateItems || (this._willUpdateItems = !0, this.cacheUpdated = this.updateCache());
481
+ }
482
+ async updateCache() {
483
+ await (this.hasUpdated ? new Promise((e) => requestAnimationFrame(() => e(!0))) : Promise.all([
484
+ new Promise((e) => requestAnimationFrame(() => e(!0))),
485
+ this.updateComplete
486
+ ])), this.cachedChildItems === void 0 && (this.updateSelectedItemIndex(), this.updateItemFocus()), this._willUpdateItems = !1;
487
+ }
488
+ updateItemFocus() {
489
+ if (this.childItems.length === 0)
490
+ return;
491
+ const e = this.childItems[this.focusInItemIndex];
492
+ this.getRootNode().activeElement === e.menuData.focusRoot && this.forwardFocusVisibleToItem(e);
493
+ }
494
+ forwardFocusVisibleToItem(e) {
495
+ if (!e || e.menuData.focusRoot !== this)
496
+ return;
497
+ this.closeDescendentOverlays();
498
+ const t = this.hasVisibleFocusInTree() || !!this.childItems.some((o) => o.hasVisibleFocusInTree());
499
+ e.focused = t, this.setAttribute("aria-activedescendant", e.id), e.menuData.selectionRoot && e.menuData.selectionRoot !== this && e.menuData.selectionRoot.focus();
500
+ }
501
+ handleSlotchange({
502
+ target: e
503
+ }) {
504
+ const t = e.assignedElements({
505
+ flatten: !0
506
+ });
507
+ this.childItems.length !== t.length && t.forEach((o) => {
508
+ o.triggerUpdate !== void 0 ? o.triggerUpdate() : o.childItems !== void 0 && o.childItems.forEach((i) => {
509
+ i.triggerUpdate();
510
+ });
511
+ });
512
+ }
513
+ }
514
+ v([
515
+ r({ type: String, reflect: !0 })
516
+ ], m.prototype, "label", 2);
517
+ v([
518
+ r({ type: Boolean, reflect: !0 })
519
+ ], m.prototype, "ignore", 2);
520
+ v([
521
+ r({ type: String, reflect: !0 })
522
+ ], m.prototype, "selects", 2);
523
+ v([
524
+ r({ type: String })
525
+ ], m.prototype, "value", 2);
526
+ v([
527
+ r({ type: String, attribute: "value-separator" })
528
+ ], m.prototype, "valueSeparator", 2);
529
+ v([
530
+ r({ attribute: !1 })
531
+ ], m.prototype, "selected", 1);
532
+ v([
533
+ r({ attribute: !1 })
534
+ ], m.prototype, "selectedItems", 2);
535
+ v([
536
+ z("slot:not([name])")
537
+ ], m.prototype, "menuSlot", 2);
538
+ const W = ":host{--menu-divider-thickness: var( --divider-thickness-medium, var(--luzmo-border-width) );inline-size:auto;margin-block:var(--luzmo-menu-section-divider-margin-block, max(0px, (var(--menu-item-section-divider-height) - var(--menu-divider-thickness)) / 2));margin-inline:var(--luzmo-menu-item-label-inline-edge-to-content, var(--menu-item-label-inline-edge-to-content));overflow:visible}.luzmo-Menu-back:focus-visible{box-shadow:inset calc(var(--luzmo-menu-item-focus-indicator-width, var(--menu-item-focus-indicator-width)) * 1) 0 0 0 var(--highcontrast-menu-item-focus-indicator-color, var(--luzmo-menu-item-focus-indicator-color, var(--menu-item-focus-indicator-color)));box-shadow:inset calc(var(--luzmo-menu-item-focus-indicator-width, var(--menu-item-focus-indicator-width)) * var(--menu-item-focus-indicator-direction-scalar, 1)) 0 0 0 var(--highcontrast-menu-item-focus-indicator-color, var(--luzmo-menu-item-focus-indicator-color, var(--menu-item-focus-indicator-color)))}.luzmo-Menu-back{padding-inline:0 var(--luzmo-menu-back-padding-inline-end, var(--menu-item-label-inline-edge-to-content));padding-inline:var(--luzmo-menu-back-padding-inline-start, 0) var(--luzmo-menu-back-padding-inline-end, var(--menu-item-label-inline-edge-to-content));padding-block:0;padding-block:var(--luzmo-menu-back-padding-block-start, 0) var(--luzmo-menu-back-padding-block-end, 0);flex-flow:wrap;align-items:center;display:flex}.luzmo-Menu-backButton{cursor:pointer;background:none;border:0;margin:0;padding:0;display:inline-flex}.luzmo-Menu-backButton:focus-visible{outline:var(--focus-indicator-thickness) solid var(--focus-indicator-color);outline-offset:calc((var(--focus-indicator-thickness) + 1px) * -1)}.luzmo-Menu-backHeading{color:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-back-heading-color, var(--menu-section-header-color)));font-size:var(--luzmo-menu-section-header-font-size, var(--menu-section-header-font-size));font-weight:var(--luzmo-menu-section-header-font-weight, var(--menu-section-header-font-weight));line-height:var(--luzmo-menu-section-header-line-height, var(--menu-section-header-line-height));display:block}:host{display:block;flex-shrink:0}";
539
+ class K extends x(w, {
540
+ validSizes: ["s", "m", "l"]
541
+ }) {
542
+ static get styles() {
543
+ return [b(R), b(W)];
544
+ }
545
+ firstUpdated(e) {
546
+ super.firstUpdated(e), this.setAttribute("role", "separator");
547
+ }
548
+ }
549
+ const N = ".luzmo-Menu-back:focus-visible{box-shadow:inset calc(var(--luzmo-menu-item-focus-indicator-width, var(--menu-item-focus-indicator-width)) * 1) 0 0 0 var(--highcontrast-menu-item-focus-indicator-color, var(--luzmo-menu-item-focus-indicator-color, var(--menu-item-focus-indicator-color)));box-shadow:inset calc(var(--luzmo-menu-item-focus-indicator-width, var(--menu-item-focus-indicator-width)) * var(--menu-item-focus-indicator-direction-scalar, 1)) 0 0 0 var(--highcontrast-menu-item-focus-indicator-color, var(--luzmo-menu-item-focus-indicator-color, var(--menu-item-focus-indicator-color)))}.header{color:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-section-header-color, var(--menu-section-header-color)));font-size:var(--luzmo-menu-section-header-font-size, var(--menu-section-header-font-size));font-weight:var(--luzmo-menu-section-header-font-weight, var(--menu-section-header-font-weight));line-height:var(--luzmo-menu-section-header-line-height, var(--menu-section-header-line-height));min-inline-size:var(--luzmo-menu-section-header-min-width, var(--menu-section-header-min-width));padding-block-start:var(--luzmo-menu-section-header-top-edge-to-text, var(--luzmo-menu-item-top-edge-to-text, var(--menu-item-top-edge-to-text)));padding-block-end:var(--luzmo-menu-section-header-bottom-edge-to-text, var(--luzmo-menu-item-bottom-edge-to-text, var(--menu-item-bottom-edge-to-text)));padding-inline:var(--luzmo-menu-item-label-inline-edge-to-content, var(--menu-item-label-inline-edge-to-content));grid-area:sectionHeadingArea/1/sectionHeadingArea/-1;display:block}.luzmo-Menu-back{padding-inline:0 var(--luzmo-menu-back-padding-inline-end, var(--menu-item-label-inline-edge-to-content));padding-inline:var(--luzmo-menu-back-padding-inline-start, 0) var(--luzmo-menu-back-padding-inline-end, var(--menu-item-label-inline-edge-to-content));padding-block:0;padding-block:var(--luzmo-menu-back-padding-block-start, 0) var(--luzmo-menu-back-padding-block-end, 0);flex-flow:wrap;align-items:center;display:flex}.luzmo-Menu-back .header{padding:0}.luzmo-Menu-backButton{cursor:pointer;background:none;border:0;margin:0;padding:0;display:inline-flex}.luzmo-Menu-backButton:focus-visible{outline:var(--focus-indicator-thickness) solid var(--focus-indicator-color);outline-offset:calc((var(--focus-indicator-thickness) + 1px) * -1)}.luzmo-Menu-backHeading{color:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-back-heading-color, var(--menu-section-header-color)));font-size:var(--luzmo-menu-section-header-font-size, var(--menu-section-header-font-size));font-weight:var(--luzmo-menu-section-header-font-weight, var(--menu-section-header-font-weight));line-height:var(--luzmo-menu-section-header-line-height, var(--menu-section-header-line-height));display:block}:host{margin:0;display:inline-flex;overflow:visible;flex-direction:column}[hidden]{display:none!important}";
550
+ var V = Object.defineProperty, A = (a, e, t, o) => {
551
+ for (var i = void 0, n = a.length - 1, l; n >= 0; n--)
552
+ (l = a[n]) && (i = l(e, t, i) || i);
553
+ return i && V(e, t, i), i;
554
+ };
555
+ class k extends m {
556
+ constructor() {
557
+ super(...arguments), this.headerId = "";
558
+ }
559
+ static get styles() {
560
+ return [...super.styles, b(N)];
561
+ }
562
+ render() {
563
+ return h`
564
+ <span class="header" ?hidden=${!this.headerElement}>
565
+ <slot name="header" @slotchange=${this.updateLabel}></slot>
566
+ </span>
567
+ <luzmo-menu ignore>${this.renderMenuItemSlot()}</luzmo-menu>
568
+ `;
569
+ }
570
+ get ownRole() {
571
+ switch (this.selects) {
572
+ case "multiple":
573
+ case "single":
574
+ case "inherit":
575
+ return "group";
576
+ default:
577
+ return "menu";
578
+ }
579
+ }
580
+ updateLabel() {
581
+ const e = this.headerElements.length > 0 ? this.headerElements[0] : void 0;
582
+ if (e !== this.headerElement)
583
+ if (this.headerElement && this.headerElement.id === this.headerId && this.headerElement.removeAttribute("id"), e) {
584
+ this.headerId = this.headerId || `luzmo-menu-group-label-${y()}`;
585
+ const t = e.id || this.headerId;
586
+ e.id || (e.id = t), this.setAttribute("aria-labelledby", t);
587
+ } else
588
+ this.removeAttribute("aria-labelledby");
589
+ this.headerElement = e;
590
+ }
591
+ }
592
+ A([
593
+ D({
594
+ slot: "header",
595
+ flatten: !0
596
+ })
597
+ ], k.prototype, "headerElements");
598
+ A([
599
+ P()
600
+ ], k.prototype, "headerElement");
601
+ const G = '.checkmark{display:var(--luzmo-menu-checkmark-display, var(--menu-checkmark-display));font-size:var(--luzmo-menu-item-checkmark-size, var(--menu-item-checkmark-size));fill:var(--highcontrast-menu-checkmark-icon-color-default, var(--luzmo-menu-checkmark-icon-color-default, var(--menu-checkmark-icon-color-default)));color:var(--highcontrast-menu-checkmark-icon-color-default, var(--luzmo-menu-checkmark-icon-color-default, var(--menu-checkmark-icon-color-default)));opacity:1;grid-area:checkmarkArea;align-self:start;margin-block-start:calc(var(--luzmo-menu-item-top-to-checkmark, var(--menu-item-top-to-checkmark)) - var(--luzmo-menu-item-top-edge-to-text, var(--menu-item-top-edge-to-text)));margin-inline-end:var(--luzmo-menu-item-text-to-control, var(--menu-item-text-to-control))}.angle{font-size:var(--menu-item-angle-size);grid-area:angleArea;align-self:center;margin-inline-end:var(--luzmo-menu-item-text-to-control, var(--menu-item-text-to-control))}.luzmo-Menu-back:focus-visible{box-shadow:inset calc(var(--luzmo-menu-item-focus-indicator-width, var(--menu-item-focus-indicator-width)) * 1) 0 0 0 var(--highcontrast-menu-item-focus-indicator-color, var(--luzmo-menu-item-focus-indicator-color, var(--menu-item-focus-indicator-color)));box-shadow:inset calc(var(--luzmo-menu-item-focus-indicator-width, var(--menu-item-focus-indicator-width)) * var(--menu-item-focus-indicator-direction-scalar, 1)) 0 0 0 var(--highcontrast-menu-item-focus-indicator-color, var(--luzmo-menu-item-focus-indicator-color, var(--menu-item-focus-indicator-color)))}.luzmo-Menu-backButton:focus-visible{outline:var(--focus-indicator-thickness) solid var(--focus-indicator-color);outline-offset:calc((var(--focus-indicator-thickness) + 1px) * -1)}::slotted([slot=icon]){fill:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-item-label-icon-color-default, var(--menu-item-label-icon-color-default)));color:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-item-label-icon-color-default, var(--menu-item-label-icon-color-default)));grid-area:iconArea;align-self:start}::slotted([slot=icon]){margin-inline-end:var(--luzmo-menu-item-label-text-to-visual, var(--menu-item-label-text-to-visual))}:host{cursor:pointer;box-sizing:border-box;background-color:var(--highcontrast-menu-item-background-color-default, var(--luzmo-menu-item-background-color-default, var(--menu-item-background-color-default)));line-height:var(--luzmo-menu-item-label-line-height, var(--menu-item-label-line-height));min-block-size:var(--luzmo-menu-item-min-height, var(--menu-item-min-height));padding-block-start:var(--luzmo-menu-item-top-edge-to-text, var(--menu-item-top-edge-to-text));padding-block-end:var(--luzmo-menu-item-bottom-edge-to-text, var(--menu-item-bottom-edge-to-text));padding-inline:var(--luzmo-menu-item-label-inline-edge-to-content, var(--menu-item-label-inline-edge-to-content));grid-template:". angleAreaCollapsible . headingIconArea sectionHeadingArea . . ." "selectedArea angleAreaCollapsible checkmarkArea iconArea labelArea valueArea actionsArea angleAreaDrillIn" 1fr ". . . . descriptionArea . . ." ". . . . submenuArea . . ." ". . . . . . . ."/auto auto auto auto 1fr auto auto auto;justify-content:start;margin:0;-webkit-text-decoration:none;text-decoration:none;display:grid;align-items:center;position:relative}.luzmo-Menu-itemCheckbox{--luzmo-checkbox-top-to-text: 0;--luzmo-checkbox-text-to-control: 0;min-block-size:0}.luzmo-Menu-itemCheckbox .luzmo-Checkbox-box{margin-block-start:var(--luzmo-menu-item-top-to-checkbox, var(--menu-item-top-to-checkbox));margin-block-end:0;margin-inline-end:var(--luzmo-menu-item-text-to-control, var(--menu-item-text-to-control))}.luzmo-Menu-itemSwitch{min-block-size:0}.luzmo-Menu-itemSwitch .luzmo-Switch-switch{margin-block-start:var(--luzmo-menu-item-top-to-action, var(--menu-item-top-to-action));margin-block-end:0}#label{grid-area:submenuItemLabelArea}::slotted([slot=value]){grid-area:submenuItemValueArea}:host([focused]),:host(:focus){background-color:var(--highcontrast-menu-item-background-color-focus, var(--luzmo-menu-item-background-color-key-focus, var(--menu-item-background-color-key-focus)));outline:none}:host([focused])>#label,:host(:focus)>#label{color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-label-content-color-focus, var(--menu-item-label-content-color-focus)))}:host([focused])>[name=description]::slotted(*),:host(:focus)>[name=description]::slotted(*){color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-description-color-focus, var(--menu-item-description-color-focus)))}:host([focused])>::slotted([slot=value]),:host(:focus)>::slotted([slot=value]){color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-value-color-focus, var(--menu-item-value-color-focus)))}:host([focused])>.icon:not(.angle,.checkmark),:host(:focus)>.icon:not(.angle,.checkmark){fill:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-label-icon-color-focus, var(--menu-item-label-icon-color-focus)));color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-label-icon-color-focus, var(--menu-item-label-icon-color-focus)))}:host([focused])>.angle,:host(:focus)>.angle{fill:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-collapsible-icon-color, var(--menu-collapsible-icon-color)));color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-collapsible-icon-color, var(--menu-collapsible-icon-color)))}:host([focused])>.checkmark,:host(:focus)>.checkmark{fill:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-checkmark-icon-color-focus, var(--menu-checkmark-icon-color-focus)));color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-checkmark-icon-color-focus, var(--menu-checkmark-icon-color-focus)))}:host:dir(rtl),:host([dir=rtl]){--menu-item-focus-indicator-direction-scalar: -1}:host(:is(:active,[active])){background-color:var(--highcontrast-menu-item-background-color-focus, var(--luzmo-menu-item-background-color-down, var(--menu-item-background-color-down)))}:host(:is(:active,[active]))>#label{color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-label-content-color-down, var(--menu-item-label-content-color-down)))}:host(:is(:active,[active]))>[name=description]::slotted(*){color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-description-color-down, var(--menu-item-description-color-down)))}:host(:is(:active,[active]))>::slotted([slot=value]){color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-value-color-down, var(--menu-item-value-color-down)))}:host(:is(:active,[active]))>.icon:not(.angle,.checkmark){fill:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-label-icon-color-down, var(--menu-item-label-icon-color-down)));color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-label-icon-color-down, var(--menu-item-label-icon-color-down)))}:host(:is(:active,[active]))>.angle{fill:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-collapsible-icon-color, var(--menu-collapsible-icon-color)));color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-collapsible-icon-color, var(--menu-collapsible-icon-color)))}:host(:is(:active,[active]))>.checkmark{fill:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-checkmark-icon-color-down, var(--menu-checkmark-icon-color-down)));color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-checkmark-icon-color-down, var(--menu-checkmark-icon-color-down)))}:host([disabled]),:host([aria-disabled=true]){background-color:initial}:host([disabled]) #label,:host([disabled]) ::slotted([slot=value]),:host([aria-disabled=true]) #label,:host([aria-disabled=true]) ::slotted([slot=value]){color:var(--highcontrast-menu-item-color-disabled, var(--luzmo-menu-item-label-content-color-disabled, var(--menu-item-label-content-color-disabled)))}:host([disabled]) [name=description]::slotted(*),:host([aria-disabled=true]) [name=description]::slotted(*){color:var(--highcontrast-menu-item-color-disabled, var(--luzmo-menu-item-description-color-disabled, var(--menu-item-description-color-disabled)))}:host([disabled]) ::slotted([slot=icon]),:host([aria-disabled=true]) ::slotted([slot=icon]){color:var(--highcontrast-menu-item-color-disabled, var(--luzmo-menu-item-label-icon-color-disabled, var(--menu-item-label-icon-color-disabled)));fill:var(--highcontrast-menu-item-color-disabled, var(--luzmo-menu-item-label-icon-color-disabled, var(--menu-item-label-icon-color-disabled)))}:host([focused]) .luzmo-Menu-back,:host([focused]){box-shadow:inset calc(var(--luzmo-menu-item-focus-indicator-width, var(--menu-item-focus-indicator-width)) * 1) 0 0 0 var(--highcontrast-menu-item-focus-indicator-color, var(--luzmo-menu-item-focus-indicator-color, var(--menu-item-focus-indicator-color)));box-shadow:inset calc(var(--luzmo-menu-item-focus-indicator-width, var(--menu-item-focus-indicator-width)) * var(--menu-item-focus-indicator-direction-scalar, 1)) 0 0 0 var(--highcontrast-menu-item-focus-indicator-color, var(--luzmo-menu-item-focus-indicator-color, var(--menu-item-focus-indicator-color)))}:host .is-selectableMultiple{align-items:start}.is-selectableMultiple .luzmo-Menu-itemCheckbox{grid-area:checkmarkArea}.luzmo-Menu-itemSelection{grid-area:selectedArea}#label{--luzmo-switch-control-label-spacing: 0;--luzmo-switch-spacing-top-to-label: 0;font-size:var(--luzmo-menu-item-label-font-size, var(--menu-item-label-font-size));color:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-item-label-content-color-default, var(--menu-item-label-content-color-default)));-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;grid-area:labelArea}:host([selected]) #label{color:var(--menu-item-highlight-label-content-color)}::slotted([slot=value]){color:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-item-value-color-default, var(--menu-item-value-color-default)));font-size:var(--luzmo-menu-item-label-font-size, var(--menu-item-label-font-size));grid-area:valueArea;justify-self:end}.luzmo-Menu-itemActions,::slotted([slot=value]){align-self:start;margin-inline-start:var(--luzmo-menu-item-label-to-value-area-min-spacing, var(--menu-item-label-to-value-area-min-spacing))}.luzmo-Menu-itemActions{grid-area:actionsArea}[name=description]::slotted(*){color:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-item-description-color-default, var(--menu-item-description-color-default)));font-size:var(--luzmo-menu-item-description-font-size, var(--menu-item-description-font-size));-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;line-height:var(--luzmo-menu-item-description-line-height, var(--menu-item-description-line-height));grid-area:descriptionArea;margin-block-start:var(--luzmo-menu-item-label-to-description-spacing, var(--menu-item-label-to-description-spacing))}:host([no-wrap]) #label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.luzmo-Menu-item--collapsible.is-open{padding-block-end:0}.luzmo-Menu-item--collapsible.is-open .angle{transform:rotate(90deg)}:host([focused]) .luzmo-Menu-item--collapsible.is-open,:host(:is(:active,[active])) .luzmo-Menu-item--collapsible.is-open,.luzmo-Menu-item--collapsible.is-open:focus{background-color:var(--highcontrast-menu-item-background-color-default, var(--luzmo-menu-item-background-color-default, var(--menu-item-background-color-default)))}.luzmo-Menu-item--collapsible ::slotted([slot=icon]){grid-area:headingIconArea}.luzmo-Menu-item--collapsible>::slotted([slot=icon]){padding-block-start:var(--luzmo-menu-section-header-top-edge-to-text, var(--luzmo-menu-item-top-edge-to-text, var(--menu-item-top-edge-to-text)));padding-block-end:var(--luzmo-menu-section-header-bottom-edge-to-text, var(--luzmo-menu-item-bottom-edge-to-text, var(--menu-item-bottom-edge-to-text)))}.luzmo-Menu-item--collapsible .angle{grid-area:angleAreaCollapsible}:host([has-submenu]) .angle{fill:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-drillin-icon-color-default, var(--menu-drillin-icon-color-default)));color:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-drillin-icon-color-default, var(--menu-drillin-icon-color-default)));grid-area:angleAreaDrillIn;margin-inline-start:var(--luzmo-menu-item-label-to-value-area-min-spacing, var(--menu-item-label-to-value-area-min-spacing));margin-inline-end:0}:host([has-submenu]) .is-open{--menu-item-background-color-default: var( --highcontrast-menu-item-selected-background-color, var( --luzmo-menu-item-background-color-hover, var(--menu-item-background-color-hover) ) )}:host([has-submenu]) .is-open .icon:not(.angle,.checkmark){fill:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-label-icon-color-hover, var(--menu-item-label-icon-color-hover)));color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-label-icon-color-hover, var(--menu-item-label-icon-color-hover)))}:host([has-submenu]) .is-open .angle{fill:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-drillin-icon-color-hover, var(--menu-drillin-icon-color-hover)));color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-drillin-icon-color-hover, var(--menu-drillin-icon-color-hover)))}:host([has-submenu]) .is-open .checkmark{fill:var(--highcontrast-menu-checkmark-icon-color-default, var(--luzmo-menu-checkmark-icon-color-hover, var(--menu-checkmark-icon-color-hover)));color:var(--highcontrast-menu-checkmark-icon-color-default, var(--luzmo-menu-checkmark-icon-color-hover, var(--menu-checkmark-icon-color-hover)))}@media (hover: hover){:host(:hover){background-color:var(--highcontrast-menu-item-background-color-focus, var(--luzmo-menu-item-background-color-hover, var(--menu-item-background-color-hover)))}:host(:hover)>#label{color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-label-content-color-hover, var(--menu-item-label-content-color-hover)))}:host([selected]:hover)>#label{color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-highlight-label-content-color, var(--menu-item-highlight-label-content-color)))}:host(:hover)>[name=description]::slotted(*){color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-description-color-hover, var(--menu-item-description-color-hover)))}:host(:hover)>::slotted([slot=value]){color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-value-color-hover, var(--menu-item-value-color-hover)))}:host(:hover)>.icon:not(.angle,.checkmark){fill:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-label-icon-color-hover, var(--menu-item-label-icon-color-hover)));color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-item-label-icon-color-hover, var(--menu-item-label-icon-color-hover)))}:host(:hover)>.angle{fill:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-collapsible-icon-color, var(--menu-collapsible-icon-color)));color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-collapsible-icon-color, var(--menu-collapsible-icon-color)))}:host(:hover)>.checkmark{fill:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-checkmark-icon-color-hover, var(--menu-checkmark-icon-color-hover)));color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-checkmark-icon-color-hover, var(--menu-checkmark-icon-color-hover)))}:host([disabled]:hover),:host([aria-disabled=true]:hover){cursor:default;background-color:initial}:host([disabled]:hover) #label,:host([disabled]:hover) ::slotted([slot=value]),:host([aria-disabled=true]:hover) #label,:host([aria-disabled=true]:hover) ::slotted([slot=value]){color:var(--highcontrast-menu-item-color-disabled, var(--luzmo-menu-item-label-content-color-disabled, var(--menu-item-label-content-color-disabled)))}:host([disabled]:hover) [name=description]::slotted(*),:host([aria-disabled=true]:hover) [name=description]::slotted(*){color:var(--highcontrast-menu-item-color-disabled, var(--luzmo-menu-item-description-color-disabled, var(--menu-item-description-color-disabled)))}:host([disabled]:hover) ::slotted([slot=icon]),:host([aria-disabled=true]:hover) ::slotted([slot=icon]){color:var(--highcontrast-menu-item-color-disabled, var(--luzmo-menu-item-label-icon-color-disabled, var(--menu-item-label-icon-color-disabled)));fill:var(--highcontrast-menu-item-color-disabled, var(--luzmo-menu-item-label-icon-color-disabled, var(--menu-item-label-icon-color-disabled)))}.luzmo-Menu-item--collapsible.is-open:hover{background-color:var(--highcontrast-menu-item-background-color-default, var(--luzmo-menu-item-background-color-default, var(--menu-item-background-color-default)))}:host([has-submenu]:hover) .angle{fill:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-drillin-icon-color-hover, var(--menu-drillin-icon-color-hover)));color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-drillin-icon-color-hover, var(--menu-drillin-icon-color-hover)))}}:host([has-submenu][focused]) .angle,:host([has-submenu]:focus) .angle{fill:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-drillin-icon-color-focus, var(--menu-drillin-icon-color-focus)));color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-drillin-icon-color-focus, var(--menu-drillin-icon-color-focus)))}:host([has-submenu]:is(:active,[active])) .angle{fill:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-drillin-icon-color-down, var(--menu-drillin-icon-color-down)));color:var(--highcontrast-menu-item-color-focus, var(--luzmo-menu-drillin-icon-color-down, var(--menu-drillin-icon-color-down)))}.luzmo-Menu-back{padding-inline:0 var(--luzmo-menu-back-padding-inline-end, var(--menu-item-label-inline-edge-to-content));padding-inline:var(--luzmo-menu-back-padding-inline-start, 0) var(--luzmo-menu-back-padding-inline-end, var(--menu-item-label-inline-edge-to-content));padding-block:0;padding-block:var(--luzmo-menu-back-padding-block-start, 0) var(--luzmo-menu-back-padding-block-end, 0);flex-flow:wrap;align-items:center;display:flex}.luzmo-Menu-backButton{cursor:pointer;background:none;border:0;margin:0;padding:0;display:inline-flex}:host([focused]) .luzmo-Menu-backButton{outline:var(--focus-indicator-thickness) solid var(--focus-indicator-color);outline-offset:calc((var(--focus-indicator-thickness) + 1px) * -1)}.luzmo-Menu-backHeading{color:var(--highcontrast-menu-item-color-default, var(--luzmo-menu-back-heading-color, var(--menu-section-header-color)));font-size:var(--luzmo-menu-section-header-font-size, var(--menu-section-header-font-size));font-weight:var(--luzmo-menu-section-header-font-weight, var(--menu-section-header-font-weight));line-height:var(--luzmo-menu-section-header-line-height, var(--menu-section-header-line-height));display:block}:host{text-align:initial;font-family:var(--luzmo-menu-item-font-family, var(--luzmo-font-family))}:host([hidden]){display:none}:host([disabled]){pointer-events:none}:host([disabled]) [name=value]::slotted(*){color:var(--luzmo-menu-item-label-icon-color-disabled, var(--luzmo-disabled-color))}:host([has-submenu][disabled]) .angle{color:var(--luzmo-menu-item-label-icon-color-disabled, var(--luzmo-disabled-color))}#button{position:absolute;top:0;right:0;bottom:0;left:0}.icon-container>svg{vertical-align:top}:host([dir=ltr]) [icon-only]::slotted(:last-of-type){margin-right:auto}:host([dir=rtl]) [icon-only]::slotted(:last-of-type){margin-left:auto}@media (forced-colors: active){:host{forced-color-adjust:none}}::slotted([slot=submenu]){width:max-content;max-width:100%}:host([no-wrap]) #label{display:block}';
602
+ var J = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, u = (a, e, t, o) => {
603
+ for (var i = o > 1 ? void 0 : o ? Q(e, t) : e, n = a.length - 1, l; n >= 0; n--)
604
+ (l = a[n]) && (i = (o ? l(e, t, i) : l(i)) || i);
605
+ return o && i && J(e, t, i), i;
606
+ };
607
+ const X = 100, Y = (a) => h`
608
+ <span class="icon-container icon checkmark ${a.join(" ")}">
609
+ ${E($)}
610
+ </span>
611
+ `, Z = (a) => h`
612
+ <span class="icon-container icon angle ${a.join(" ")}">
613
+ ${E(T, { className: "indicator" })}
614
+ </span>
615
+ `;
616
+ class ee extends Event {
617
+ constructor(e) {
618
+ super("luzmo-menu-item-added-or-updated", {
619
+ bubbles: !0,
620
+ composed: !0
621
+ }), this.menuCascade = /* @__PURE__ */ new WeakMap(), this.clear(e);
622
+ }
623
+ get item() {
624
+ return this._item;
625
+ }
626
+ clear(e) {
627
+ this._item = e, this.currentAncestorWithSelects = void 0, e.menuData = {
628
+ cleanupSteps: [],
629
+ focusRoot: void 0,
630
+ selectionRoot: void 0,
631
+ parentMenu: void 0
632
+ }, this.menuCascade = /* @__PURE__ */ new WeakMap();
633
+ }
634
+ }
635
+ class s extends O(
636
+ U(F(M, '[slot="icon"]'))
637
+ ) {
638
+ constructor() {
639
+ super(), this.active = !1, this.dependencyManager = new L(this), this.focused = !1, this.selected = !1, this._value = "", this.hasSubmenu = !1, this.noWrap = !1, this.renderAngleIcon = (e = []) => Z(e), this.renderCheckIcon = (e = []) => Y(e), this.open = !1, this.handleSlottableRequest = (e) => {
640
+ var t;
641
+ (t = this.submenuElement) == null || t.dispatchEvent(
642
+ new B(e.name, e.data)
643
+ );
644
+ }, this.proxyFocus = () => {
645
+ this.focus();
646
+ }, this.handleBeforetoggle = (e) => {
647
+ e.newState === "closed" && (this.open = !0, this.overlayElement.manuallyKeepOpen(), this.overlayElement.removeEventListener(
648
+ "beforetoggle",
649
+ this.handleBeforetoggle
650
+ ));
651
+ }, this.recentlyLeftChild = !1, this.willDispatchUpdate = !1, this.menuData = {
652
+ focusRoot: void 0,
653
+ parentMenu: void 0,
654
+ selectionRoot: void 0,
655
+ cleanupSteps: []
656
+ }, this.addEventListener("click", this.handleClickCapture, {
657
+ capture: !0
658
+ }), new S(this, {
659
+ config: {
660
+ characterData: !0,
661
+ childList: !0,
662
+ subtree: !0
663
+ },
664
+ callback: (e) => {
665
+ e.every(
666
+ (t) => t.target.slot === "submenu"
667
+ ) || this.breakItemChildrenCache();
668
+ }
669
+ });
670
+ }
671
+ static get styles() {
672
+ return [b(G)];
673
+ }
674
+ get value() {
675
+ return this._value || this.itemText;
676
+ }
677
+ set value(e) {
678
+ e !== this._value && (this._value = e || "", this._value ? this.setAttribute("value", this._value) : this.removeAttribute("value"));
679
+ }
680
+ /**
681
+ * @private
682
+ */
683
+ get itemText() {
684
+ return this.itemChildren.content.reduce(
685
+ (e, t) => e + (t.textContent || "").trim(),
686
+ ""
687
+ );
688
+ }
689
+ get focusElement() {
690
+ return this;
691
+ }
692
+ get hasIcon() {
693
+ return this.slotContentIsPresent;
694
+ }
695
+ get itemChildren() {
696
+ if (!this.iconSlot || !this.contentSlot)
697
+ return {
698
+ icon: [],
699
+ content: []
700
+ };
701
+ if (this._itemChildren)
702
+ return this._itemChildren;
703
+ const e = this.iconSlot.assignedElements().map((o) => {
704
+ const i = o.cloneNode(!0);
705
+ return i.removeAttribute("slot"), i.classList.toggle("icon"), i;
706
+ }), t = this.contentSlot.assignedNodes().map((o) => o.cloneNode(!0));
707
+ return this._itemChildren = { icon: e, content: t }, this._itemChildren;
708
+ }
709
+ click() {
710
+ this.disabled || this.shouldProxyClick() || super.click();
711
+ }
712
+ handleClickCapture(e) {
713
+ if (this.disabled)
714
+ return e.preventDefault(), e.stopImmediatePropagation(), e.stopPropagation(), !1;
715
+ }
716
+ shouldProxyClick() {
717
+ let e = !1;
718
+ return this.anchorElement && (this.anchorElement.click(), e = !0), e;
719
+ }
720
+ breakItemChildrenCache() {
721
+ this._itemChildren = void 0, this.triggerUpdate();
722
+ }
723
+ renderSubmenu() {
724
+ const e = h`
725
+ <slot
726
+ name="submenu"
727
+ @slotchange=${this.manageSubmenu}
728
+ @luzmo-menu-item-added-or-updated=${{
729
+ handleEvent: (t) => {
730
+ t.clear(t.item);
731
+ },
732
+ capture: !0
733
+ }}
734
+ @focusin=${(t) => t.stopPropagation()}
735
+ ></slot>
736
+ `;
737
+ return this.hasSubmenu ? (this.dependencyManager.add("luzmo-overlay"), this.dependencyManager.add("luzmo-popover"), import("./index-DUlH3hbL.js").then((t) => t.b).then((t) => t.f), import("./popover-DlkzrLpl-DFIvgCjc.js"), h`
738
+ <luzmo-overlay
739
+ .triggerElement=${this}
740
+ ?disabled=${!this.hasSubmenu}
741
+ ?open=${this.hasSubmenu && this.open && this.dependencyManager.loaded}
742
+ .placement=${this.isLTR ? "right-start" : "left-start"}
743
+ .offset=${[-10, -5]}
744
+ .type=${"auto"}
745
+ @close=${(t) => t.stopPropagation()}
746
+ @slottable-request=${this.handleSlottableRequest}
747
+ >
748
+ <luzmo-popover
749
+ @change=${(t) => {
750
+ this.handleSubmenuChange(t), this.open = !1;
751
+ }}
752
+ @pointerenter=${this.handleSubmenuPointerenter}
753
+ @pointerleave=${this.handleSubmenuPointerleave}
754
+ @luzmo-menu-item-added-or-updated=${(t) => t.stopPropagation()}
755
+ >
756
+ ${e}
757
+ </luzmo-popover>
758
+ </luzmo-overlay>
759
+ ${this.renderAngleIcon()}
760
+ `) : e;
761
+ }
762
+ render() {
763
+ return h`
764
+ ${this.selected ? h`
765
+ ${this.renderCheckIcon(
766
+ this.hasIcon ? ["checkmark--withAdjacentIcon"] : []
767
+ )}
768
+ ` : I}
769
+ <slot name="icon"></slot>
770
+ <div id="label">
771
+ <slot id="slot"></slot>
772
+ </div>
773
+ <slot name="description"></slot>
774
+ <slot name="value"></slot>
775
+ ${this.href && this.href.length > 0 ? super.renderAnchor({
776
+ id: "button",
777
+ ariaHidden: !0,
778
+ className: "button anchor hidden"
779
+ }) : I}
780
+ ${this.renderSubmenu()}
781
+ `;
782
+ }
783
+ manageSubmenu(e) {
784
+ this.submenuElement = e.target.assignedElements({
785
+ flatten: !0
786
+ })[0], this.hasSubmenu = !!this.submenuElement, this.hasSubmenu && this.setAttribute("aria-haspopup", "true");
787
+ }
788
+ handlePointerdown(e) {
789
+ e.target === this && this.hasSubmenu && this.open && (this.addEventListener("focus", this.handleSubmenuFocus, {
790
+ once: !0
791
+ }), this.overlayElement.addEventListener(
792
+ "beforetoggle",
793
+ this.handleBeforetoggle
794
+ ));
795
+ }
796
+ firstUpdated(e) {
797
+ super.firstUpdated(e), this.setAttribute("tabindex", "-1"), this.addEventListener("pointerdown", this.handlePointerdown), this.addEventListener("pointerenter", this.closeOverlaysForRoot), this.hasAttribute("id") || (this.id = `luzmo-menu-item-${y()}`);
798
+ }
799
+ closeOverlaysForRoot() {
800
+ var e;
801
+ this.open || (e = this.menuData.parentMenu) == null || e.closeDescendentOverlays();
802
+ }
803
+ handleSubmenuClick(e) {
804
+ e.composedPath().includes(this.overlayElement) || this.openOverlay();
805
+ }
806
+ handleSubmenuFocus() {
807
+ requestAnimationFrame(() => {
808
+ this.overlayElement.open = this.open;
809
+ });
810
+ }
811
+ handlePointerenter() {
812
+ if (this.leaveTimeout) {
813
+ clearTimeout(this.leaveTimeout), delete this.leaveTimeout;
814
+ return;
815
+ }
816
+ this.openOverlay();
817
+ }
818
+ handlePointerleave() {
819
+ this.open && !this.recentlyLeftChild && (this.leaveTimeout = setTimeout(() => {
820
+ delete this.leaveTimeout, this.open = !1;
821
+ }, X));
822
+ }
823
+ /**
824
+ * When there is a `change` event in the submenu for this item
825
+ * then we "click" this item to cascade the selection up the
826
+ * menu tree allowing all submenus between the initial selection
827
+ * and the root of the tree to have their selection changes and
828
+ * be closed.
829
+ */
830
+ handleSubmenuChange(e) {
831
+ var t;
832
+ e.stopPropagation(), (t = this.menuData.selectionRoot) == null || t.selectOrToggleItem(this);
833
+ }
834
+ handleSubmenuPointerenter() {
835
+ this.recentlyLeftChild = !0;
836
+ }
837
+ handleSubmenuPointerleave() {
838
+ requestAnimationFrame(() => {
839
+ this.recentlyLeftChild = !1;
840
+ });
841
+ }
842
+ handleSubmenuOpen(e) {
843
+ this.focused = !1;
844
+ const t = e.composedPath().find(
845
+ (o) => o !== this.overlayElement && o.localName === "luzmo-overlay"
846
+ );
847
+ this.overlayElement.parentOverlayToForceClose = t;
848
+ }
849
+ cleanup() {
850
+ this.open = !1, this.active = !1;
851
+ }
852
+ openOverlay() {
853
+ !this.hasSubmenu || this.open || this.disabled || (this.open = !0, this.active = !0, this.setAttribute("aria-expanded", "true"), this.addEventListener("luzmo-closed", this.cleanup, {
854
+ once: !0
855
+ }));
856
+ }
857
+ updateAriaSelected() {
858
+ const e = this.getAttribute("role");
859
+ e === "option" ? this.setAttribute("aria-selected", this.selected ? "true" : "false") : (e === "menuitemcheckbox" || e === "menuitemradio") && this.setAttribute("aria-checked", this.selected ? "true" : "false");
860
+ }
861
+ setRole(e) {
862
+ this.setAttribute("role", e), this.updateAriaSelected();
863
+ }
864
+ updated(e) {
865
+ var t, o;
866
+ if (super.updated(e), e.has("label") && (this.label || e.get("label") !== void 0) && this.setAttribute("aria-label", this.label || ""), e.has("active") && (this.active || e.get("active") !== void 0) && this.active && ((t = this.menuData.selectionRoot) == null || t.closeDescendentOverlays()), this.anchorElement && (this.anchorElement.addEventListener("focus", this.proxyFocus), this.anchorElement.tabIndex = -1), e.has("selected") && this.updateAriaSelected(), e.has("hasSubmenu") && (this.hasSubmenu || e.get("hasSubmenu") !== void 0))
867
+ if (this.hasSubmenu) {
868
+ this.abortControllerSubmenu = new AbortController();
869
+ const i = { signal: this.abortControllerSubmenu.signal };
870
+ this.addEventListener("click", this.handleSubmenuClick, i), this.addEventListener("pointerenter", this.handlePointerenter, i), this.addEventListener("pointerleave", this.handlePointerleave, i), this.addEventListener("luzmo-opened", this.handleSubmenuOpen, i);
871
+ } else
872
+ (o = this.abortControllerSubmenu) == null || o.abort();
873
+ }
874
+ connectedCallback() {
875
+ super.connectedCallback(), this.triggerUpdate();
876
+ }
877
+ disconnectedCallback() {
878
+ this.menuData.cleanupSteps.forEach((e) => e(this)), this.menuData = {
879
+ focusRoot: void 0,
880
+ parentMenu: void 0,
881
+ selectionRoot: void 0,
882
+ cleanupSteps: []
883
+ }, super.disconnectedCallback();
884
+ }
885
+ async triggerUpdate() {
886
+ this.willDispatchUpdate || (this.willDispatchUpdate = !0, await new Promise((e) => requestAnimationFrame(e)), this.dispatchUpdate());
887
+ }
888
+ dispatchUpdate() {
889
+ this.isConnected && (this.dispatchEvent(new ee(this)), this.willDispatchUpdate = !1);
890
+ }
891
+ }
892
+ u([
893
+ r({ type: Boolean, reflect: !0 })
894
+ ], s.prototype, "active", 2);
895
+ u([
896
+ r({ type: Boolean, reflect: !0 })
897
+ ], s.prototype, "focused", 2);
898
+ u([
899
+ r({ type: Boolean, reflect: !0 })
900
+ ], s.prototype, "selected", 2);
901
+ u([
902
+ r({ type: String })
903
+ ], s.prototype, "value", 1);
904
+ u([
905
+ r({ type: Boolean, reflect: !0, attribute: "has-submenu" })
906
+ ], s.prototype, "hasSubmenu", 2);
907
+ u([
908
+ z("slot:not([name])")
909
+ ], s.prototype, "contentSlot", 2);
910
+ u([
911
+ z('slot[name="icon"]')
912
+ ], s.prototype, "iconSlot", 2);
913
+ u([
914
+ r({
915
+ type: Boolean,
916
+ reflect: !0,
917
+ attribute: "no-wrap",
918
+ hasChanged() {
919
+ return !1;
920
+ }
921
+ })
922
+ ], s.prototype, "noWrap", 2);
923
+ u([
924
+ z(".anchor")
925
+ ], s.prototype, "anchorElement", 2);
926
+ u([
927
+ z("luzmo-overlay")
928
+ ], s.prototype, "overlayElement", 2);
929
+ u([
930
+ r({ type: Boolean, reflect: !0 })
931
+ ], s.prototype, "open", 2);
932
+ customElements.get("luzmo-menu") || customElements.define("luzmo-menu", m);
933
+ customElements.get("luzmo-menu-divider") || customElements.define("luzmo-menu-divider", K);
934
+ customElements.get("luzmo-menu-group") || customElements.define("luzmo-menu-group", k);
935
+ customElements.get("luzmo-menu-item") || customElements.define("luzmo-menu-item", s);