@luzmo/lucero 2.7.1 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/components/accordion/index.cjs +1 -1
  2. package/components/accordion/index.js +1 -1
  3. package/components/{accordion-BJLsCC-2.js → accordion-C9cVd8A8.js} +1 -1
  4. package/components/{accordion-OQ0RoC_7.cjs → accordion-DulsAsi7.cjs} +1 -1
  5. package/components/action-bar/index.cjs +1 -1
  6. package/components/action-bar/index.js +1 -1
  7. package/components/{action-bar-Dyt2tyjr.cjs → action-bar-BjTUUATD.cjs} +1 -1
  8. package/components/{action-bar-B-Y-gJ8B.js → action-bar-XpNzXzkl.js} +4 -4
  9. package/components/action-button/index.cjs +1 -1
  10. package/components/action-button/index.js +1 -1
  11. package/components/{action-button-CL4ZlryE.cjs → action-button-Cz4jSv__.cjs} +1 -1
  12. package/components/{action-button-BB3ZZFNN.js → action-button-LmKtPKfe.js} +1 -1
  13. package/components/action-group/index.cjs +1 -1
  14. package/components/action-group/index.js +1 -1
  15. package/components/{action-group-HECoPCas.js → action-group-CPxKx_oR.js} +1 -1
  16. package/components/{action-group-Doll-3Bf.cjs → action-group-DBxQJRLs.cjs} +1 -1
  17. package/components/action-menu/index.cjs +1 -1
  18. package/components/action-menu/index.js +1 -1
  19. package/components/{action-menu-DphCCjvX.cjs → action-menu-BFy0mEyu.cjs} +1 -1
  20. package/components/{action-menu-Bv9EA7__.js → action-menu-CT0OYS56.js} +3 -3
  21. package/components/avatar/index.cjs +1 -1
  22. package/components/avatar/index.js +1 -1
  23. package/components/{avatar-CVRQDsx6.js → avatar-BEk23sDA.js} +1 -1
  24. package/components/{avatar-DFzJbtId.cjs → avatar-C9EAInfy.cjs} +1 -1
  25. package/components/badge/index.cjs +1 -1
  26. package/components/badge/index.js +1 -1
  27. package/components/{badge-DzElGOcl.cjs → badge-CPpKOWh2.cjs} +1 -1
  28. package/components/{badge-BSfzmBRf.js → badge-bODlaAG_.js} +1 -1
  29. package/components/button/index.cjs +1 -1
  30. package/components/button/index.js +2 -2
  31. package/components/{button-CpaltgRZ.js → button-5jzMIMLW.js} +3 -3
  32. package/components/{button-BGEWdRbY.cjs → button-CjgL13CD.cjs} +1 -1
  33. package/components/button-group/index.cjs +1 -1
  34. package/components/button-group/index.js +1 -1
  35. package/components/{button-group-DMsT6N0P.js → button-group-B59rXxDn.js} +1 -1
  36. package/components/{button-group-C23OtGC0.cjs → button-group-DxMfPmBg.cjs} +1 -1
  37. package/components/calendar/index.cjs +1 -1
  38. package/components/calendar/index.js +1 -1
  39. package/components/{calendar-BqyGW8gU.cjs → calendar-4h_Fe-mw.cjs} +1 -1
  40. package/components/{calendar-D4x5gp_0.js → calendar-5V1hrKWy.js} +2 -2
  41. package/components/chat-message/index.cjs +1 -1
  42. package/components/chat-message/index.js +1 -1
  43. package/components/{chat-message-5gP_qbiz.js → chat-message--nzqHl6e.js} +1 -1
  44. package/components/{chat-message-Dn5GKsSD.cjs → chat-message-BzSel33p.cjs} +1 -1
  45. package/components/chat-message-group/index.cjs +1 -1
  46. package/components/chat-message-group/index.js +1 -1
  47. package/components/{chat-message-group-Bp4mshBY.js → chat-message-group-BIXlrlYi.js} +1 -1
  48. package/components/{chat-message-group-CJddlS85.cjs → chat-message-group-DLkSlQah.cjs} +1 -1
  49. package/components/checkbox/checkbox.d.ts +2 -0
  50. package/components/checkbox/index.cjs +1 -1
  51. package/components/checkbox/index.js +1 -1
  52. package/components/{checkbox-NSSgVzJg.cjs → checkbox-CFQqGnDX.cjs} +1 -1
  53. package/components/{checkbox-fW7WI915.js → checkbox-D884zXBt.js} +1 -1
  54. package/components/{close-button-7zS6PUzh.js → close-button-Bw8knwnc.js} +1 -1
  55. package/components/{close-button-B06i2hJn.cjs → close-button-DhHKKvHu.cjs} +1 -1
  56. package/components/color-area/index.cjs +1 -1
  57. package/components/color-area/index.js +1 -1
  58. package/components/{color-area-CFBE-rG3.cjs → color-area-Dnq-HQ-1.cjs} +1 -1
  59. package/components/{color-area-GGa8KJyd.js → color-area-QSGfRi4o.js} +2 -2
  60. package/components/color-field/index.cjs +1 -1
  61. package/components/color-field/index.js +1 -1
  62. package/components/{color-field-l-aJ6O4a.cjs → color-field-B-GC4H0K.cjs} +1 -1
  63. package/components/{color-field-BZljmVHt.js → color-field-vmTnlDec.js} +1 -1
  64. package/components/color-menu/index.cjs +1 -1
  65. package/components/color-menu/index.js +1 -1
  66. package/components/{color-menu-C56xj5Oe.cjs → color-menu-DGWGb0iH.cjs} +1 -1
  67. package/components/{color-menu-CEtmpeN7.js → color-menu-DthtTlKd.js} +7 -7
  68. package/components/color-palette/index.cjs +1 -1
  69. package/components/color-palette/index.js +1 -1
  70. package/components/{color-palette-D5NZDz5I.cjs → color-palette-C4Y8VU9j.cjs} +1 -1
  71. package/components/{color-palette-UU7Feiwh.js → color-palette-UnwRum-W.js} +1 -1
  72. package/components/color-palette-group/index.cjs +1 -1
  73. package/components/color-palette-group/index.js +1 -1
  74. package/components/{color-palette-group-DhGh0Db8.cjs → color-palette-group-BiPNlMgu.cjs} +1 -1
  75. package/components/{color-palette-group-CwmC9iR1.js → color-palette-group-jhNz9Gto.js} +1 -1
  76. package/components/color-picker/index.cjs +1 -1
  77. package/components/color-picker/index.js +1 -1
  78. package/components/{color-picker-CLGNQIkK.cjs → color-picker-Bu0IOUj-.cjs} +1 -1
  79. package/components/{color-picker-BDqJodTR.js → color-picker-DbAIgjDv.js} +4 -4
  80. package/components/color-slider/index.cjs +1 -1
  81. package/components/color-slider/index.js +1 -1
  82. package/components/{color-slider-DNd_ZrD6.js → color-slider-BGnaMhIf.js} +1 -1
  83. package/components/{color-slider-IYBn2DL7.cjs → color-slider-BuhOIoUI.cjs} +1 -1
  84. package/components/date-range-picker/index.cjs +1 -1
  85. package/components/date-range-picker/index.js +1 -1
  86. package/components/{date-range-picker-DyJdcFiA.cjs → date-range-picker-B7J_RFW6.cjs} +1 -1
  87. package/components/{date-range-picker-CoCz3uDz.js → date-range-picker-BilkNV82.js} +4 -4
  88. package/components/date-time-picker/index.cjs +1 -1
  89. package/components/date-time-picker/index.js +1 -1
  90. package/components/{date-time-picker-CEEeMXGn.cjs → date-time-picker-BNUIfpzG.cjs} +1 -1
  91. package/components/{date-time-picker-CsgO17tA.js → date-time-picker-DOsLR0EN.js} +4 -4
  92. package/components/divider/index.cjs +1 -1
  93. package/components/divider/index.js +1 -1
  94. package/components/{divider-fWGUxO6A.cjs → divider-BS5chsgx.cjs} +1 -1
  95. package/components/{divider-Bt0NIqfu.js → divider-CJRCMeKA.js} +1 -1
  96. package/components/field-label/index.cjs +1 -1
  97. package/components/field-label/index.js +1 -1
  98. package/components/{field-label-B3IsGUTv.cjs → field-label-61lILUqu.cjs} +1 -1
  99. package/components/{field-label-DOUnHwwh.js → field-label-B_VLKIJn.js} +1 -1
  100. package/components/index.cjs +1 -1
  101. package/components/index.js +72 -71
  102. package/components/infield-button/index.cjs +1 -1
  103. package/components/infield-button/index.js +1 -1
  104. package/components/{infield-button-uD1GqTLW.cjs → infield-button-B0qcV4gq.cjs} +1 -1
  105. package/components/{infield-button-CeE_JxR6.js → infield-button-CcaKuxAs.js} +1 -1
  106. package/components/{interaction-BjXWVy_C.cjs → interaction--DdZDJnw.cjs} +1 -1
  107. package/components/{interaction-BpCLJ1OV.js → interaction-DF63SBSQ.js} +1 -1
  108. package/components/menu/index.cjs +1 -1
  109. package/components/menu/index.js +1 -1
  110. package/components/{menu-f2S0m6h9.js → menu-CM-ZA_ZM.js} +1 -1
  111. package/components/{menu-CoJ5oERs.cjs → menu-tDMNLuND.cjs} +1 -1
  112. package/components/multi-language-field/index.cjs +1 -1
  113. package/components/multi-language-field/index.js +1 -1
  114. package/components/{multi-language-field-SZObnneZ.js → multi-language-field-B6Ne8_Yw.js} +2 -2
  115. package/components/{multi-language-field-nJmWDtPL.cjs → multi-language-field-C5C5yS94.cjs} +1 -1
  116. package/components/notice/index.cjs +1 -1
  117. package/components/notice/index.js +1 -1
  118. package/components/{notice-CrLVNmqL.js → notice-62Wpb7BH.js} +2 -2
  119. package/components/{notice-f0p0TiGw.cjs → notice-DrrmwMlw.cjs} +1 -1
  120. package/components/number-field/index.cjs +1 -1
  121. package/components/number-field/index.js +1 -1
  122. package/components/{number-field-BEt0cfcB.js → number-field-CMM5MC2R.js} +2 -2
  123. package/components/{number-field-DrarDCm4.cjs → number-field-N6nInW0X.cjs} +1 -1
  124. package/components/options/index.cjs +1 -1
  125. package/components/options/index.js +1 -1
  126. package/components/{options-BH_Y3UB6.cjs → options-CsRLHwaY.cjs} +1 -1
  127. package/components/{options-BiA2h1-i.js → options-DtJTjiP8.js} +2 -2
  128. package/components/{pending-state-A6NrvaQj.cjs → pending-state-CQuz9Qiv.cjs} +1 -1
  129. package/components/{pending-state-BuYmUP6G.js → pending-state-KsPO-6Ei.js} +1 -1
  130. package/components/permission-box/index.cjs +18 -0
  131. package/components/permission-box/index.d.ts +9 -0
  132. package/components/permission-box/index.js +19 -0
  133. package/components/permission-box/permission-box.d.ts +157 -0
  134. package/components/permission-box/types.d.ts +73 -0
  135. package/components/permission-box-BsmcqGnU.cjs +176 -0
  136. package/components/permission-box-yUZKSyS9.js +405 -0
  137. package/components/picker/index.cjs +1 -1
  138. package/components/picker/index.js +1 -1
  139. package/components/picker-button/index.cjs +1 -1
  140. package/components/picker-button/index.js +1 -1
  141. package/components/{picker-button-BWDfzx38.cjs → picker-button-CEo39nlA.cjs} +1 -1
  142. package/components/{picker-button-BhfY9gyk.js → picker-button-svME8NW2.js} +1 -1
  143. package/components/{picker-Dd25S3rP.cjs → picker-h0nO2GgS.cjs} +1 -1
  144. package/components/{picker-JhsRAtSd.js → picker-nWTz5f1J.js} +5 -5
  145. package/components/popover/index.cjs +1 -1
  146. package/components/popover/index.js +1 -1
  147. package/components/{popover-CFzz83f8.cjs → popover-6Qy-GpJj.cjs} +1 -1
  148. package/components/{popover-CWrRLzOL.js → popover-BdoJqBC5.js} +1 -1
  149. package/components/progress-bar/index.cjs +1 -1
  150. package/components/progress-bar/index.js +1 -1
  151. package/components/{progress-bar-D6wIZV5l.js → progress-bar-Bc5zjNDp.js} +1 -1
  152. package/components/{progress-bar-9Qg0PYAq.cjs → progress-bar-BsBnhg4r.cjs} +1 -1
  153. package/components/progress-circle/index.cjs +1 -1
  154. package/components/progress-circle/index.js +1 -1
  155. package/components/{progress-circle-DcGKwBTC.js → progress-circle-C5UOMP96.js} +1 -1
  156. package/components/{progress-circle-C_9UZs2Y.cjs → progress-circle-D-JW7zZS.cjs} +1 -1
  157. package/components/progress-steps/index.cjs +1 -1
  158. package/components/progress-steps/index.js +1 -1
  159. package/components/{progress-steps-Byem5ieS.js → progress-steps-BwV4fEcH.js} +1 -1
  160. package/components/{progress-steps-5MhpnGKv.cjs → progress-steps-l0tbGl3P.cjs} +1 -1
  161. package/components/prompt-box/index.cjs +1 -1
  162. package/components/prompt-box/index.js +1 -1
  163. package/components/{prompt-box-B1rmo4DX.cjs → prompt-box-B3gDbsQo.cjs} +1 -1
  164. package/components/{prompt-box-CL0ld3Na.js → prompt-box-BUMtyCsa.js} +4 -4
  165. package/components/question-box/index.cjs +1 -1
  166. package/components/question-box/index.js +1 -1
  167. package/components/question-box/question-box-templates.d.ts +1 -1
  168. package/components/{question-box-DmTWFlRn.cjs → question-box-C7oXNWje.cjs} +59 -59
  169. package/components/{question-box-CxzEveid.js → question-box-wYSFkVoP.js} +171 -179
  170. package/components/radio/index.cjs +1 -1
  171. package/components/radio/index.js +1 -1
  172. package/components/{radio-CyxICbLM.js → radio-B_oHwHgO.js} +1 -1
  173. package/components/{radio-Dd-GgUMm.cjs → radio-DJmITM2m.cjs} +1 -1
  174. package/components/search/index.cjs +1 -1
  175. package/components/search/index.js +1 -1
  176. package/components/{search-1KUNWKWg.cjs → search-CXuXsgJt.cjs} +1 -1
  177. package/components/{search-_NUUJLz0.js → search-Dl5y1IqM.js} +2 -2
  178. package/components/select/index.cjs +1 -1
  179. package/components/select/index.js +1 -1
  180. package/components/{select-ChM3Zfxd.cjs → select-Dm7rf5Un.cjs} +1 -1
  181. package/components/{select-8gtm46qA.js → select-lS54kKFO.js} +6 -6
  182. package/components/{sized-mixin-CSajkMro.cjs → sized-mixin-BqV6ywDw.cjs} +1 -1
  183. package/components/{sized-mixin-BmxIAuoH.js → sized-mixin-Cb-47MjG.js} +17 -1
  184. package/components/slider/index.cjs +1 -1
  185. package/components/slider/index.js +1 -1
  186. package/components/{slider-B1cCAj1x.cjs → slider-B9rBCFmR.cjs} +1 -1
  187. package/components/{slider-CD-aGN9I.js → slider-BDLAmlBf.js} +3 -3
  188. package/components/split-view/controllers/pane-visibility-controller.d.ts +22 -0
  189. package/components/split-view/controllers/size-memory-controller.d.ts +28 -0
  190. package/components/split-view/index.cjs +1 -1
  191. package/components/split-view/index.d.ts +1 -0
  192. package/components/split-view/index.js +1 -1
  193. package/components/split-view/split-view-model.d.ts +2 -0
  194. package/components/split-view/split-view.d.ts +85 -7
  195. package/components/split-view-Dr0Bef6i.cjs +45 -0
  196. package/components/split-view-akatWAkc.js +565 -0
  197. package/components/status-light/index.cjs +1 -1
  198. package/components/status-light/index.js +1 -1
  199. package/components/{status-light-Do6z53mM.cjs → status-light-CtETRd_o.cjs} +1 -1
  200. package/components/{status-light-DqHhhZed.js → status-light-kt3QBqrC.js} +1 -1
  201. package/components/swatch/index.cjs +1 -1
  202. package/components/swatch/index.js +1 -1
  203. package/components/{swatch-DiNMN-SZ.cjs → swatch-BX6GGDBs.cjs} +1 -1
  204. package/components/{swatch-BBVsuSAV.js → swatch-bXSCI96I.js} +1 -1
  205. package/components/switch/index.cjs +1 -1
  206. package/components/switch/index.js +1 -1
  207. package/components/{switch-DMhCYTgq.cjs → switch-CnnJrKpy.cjs} +1 -1
  208. package/components/{switch-BBtewLDD.js → switch-Do9jl9ur.js} +1 -1
  209. package/components/table/index.cjs +1 -1
  210. package/components/table/index.js +1 -1
  211. package/components/{table-Bf-00FYb.cjs → table-CF5do4qb.cjs} +1 -1
  212. package/components/{table-CfFwBCp1.js → table-FWX6kbpt.js} +2 -2
  213. package/components/tabs/index.cjs +1 -1
  214. package/components/tabs/index.js +1 -1
  215. package/components/{tabs-Dkt0B_-A.js → tabs-CODc4EYJ.js} +2 -2
  216. package/components/{tabs-B0WHKMuF.cjs → tabs-sIusiEWI.cjs} +1 -1
  217. package/components/tags/index.cjs +1 -1
  218. package/components/tags/index.js +1 -1
  219. package/components/{tags-Be4yrNPw.js → tags-BEfsznJy.js} +3 -3
  220. package/components/{tags-CHDNXpxh.cjs → tags-CWJqZufu.cjs} +1 -1
  221. package/components/text-field/index.cjs +1 -1
  222. package/components/text-field/index.js +2 -2
  223. package/components/{text-field-CBsx1CVo.js → text-field-5Ilezggg.js} +1 -1
  224. package/components/{text-field-CZixBD87.cjs → text-field-8IQu5JLQ.cjs} +1 -1
  225. package/components/{text-field-DwvDSctG.cjs → text-field-CLUvzUDH.cjs} +1 -1
  226. package/components/{text-field-SNbvQYOj.js → text-field-Cn51A87k.js} +2 -2
  227. package/components/toast/index.cjs +1 -1
  228. package/components/toast/index.js +1 -1
  229. package/components/{toast-CXZUVaYz.js → toast-B6x2SjM8.js} +1 -1
  230. package/components/{toast-B6yesIcI.cjs → toast-CpOVCCix.cjs} +1 -1
  231. package/components/tooltip/index.cjs +1 -1
  232. package/components/tooltip/index.js +1 -1
  233. package/components/{tooltip-BE01O3Sg.cjs → tooltip-CjfQup1K.cjs} +1 -1
  234. package/components/{tooltip-g2jd5Wsv.js → tooltip-ElTGebA9.js} +1 -1
  235. package/components/top-nav/index.cjs +1 -1
  236. package/components/top-nav/index.js +1 -1
  237. package/components/{top-nav-B0E1K_zf.cjs → top-nav-BG6vbFst.cjs} +1 -1
  238. package/components/{top-nav-DiUCsUpZ.js → top-nav-BMFB1WB0.js} +1 -1
  239. package/components/utils.cjs +1 -1
  240. package/components/utils.js +8 -8
  241. package/custom-elements.json +1 -1
  242. package/index.d.ts +1 -0
  243. package/package.json +7 -1
  244. package/standalone/accordion.js +3 -3
  245. package/standalone/action-bar.js +4 -4
  246. package/standalone/action-button.js +1 -1
  247. package/standalone/action-group.js +1 -1
  248. package/standalone/action-menu.js +6 -6
  249. package/standalone/avatar.js +5 -5
  250. package/standalone/badge.js +1 -1
  251. package/standalone/button-group.js +1 -1
  252. package/standalone/button.js +1 -1
  253. package/standalone/calendar.js +1 -1
  254. package/standalone/chat-message-group.js +2 -2
  255. package/standalone/chat-message.js +3 -3
  256. package/standalone/checkbox.js +1 -1
  257. package/standalone/chunks/{action-button-C946JGIA.js → action-button-CFXQ66x-.js} +1 -1
  258. package/standalone/chunks/{action-group-DlClwXLO.js → action-group-CX3Dg0Bu.js} +2 -2
  259. package/standalone/chunks/{badge-DPFbBRCY.js → badge-C1_QvLsq.js} +1 -1
  260. package/standalone/chunks/{button-COqfQNJv.js → button-DFVs4O1S.js} +1 -1
  261. package/standalone/chunks/{button-BhSe7abg.js → button-PsWOoEKo.js} +1 -1
  262. package/standalone/chunks/{button-base-DLYrzCSm.js → button-base-BuAaSi-H.js} +2 -2
  263. package/standalone/chunks/{calendar-BVrT8uqP.js → calendar-C8QpCEII.js} +5 -5
  264. package/standalone/chunks/{checkbox-4PoS7Uft.js → checkbox-DYjPiIwY.js} +1 -1
  265. package/standalone/chunks/{checkbox-mixin-HnfmivU3.js → checkbox-mixin-BRuj7--C.js} +2 -2
  266. package/standalone/chunks/{clear-button-qIMg8hR4.js → clear-button-BfZbJISP.js} +1 -1
  267. package/standalone/chunks/{close-button-DEiL5kEh.js → close-button-DdAb7Vyz.js} +1 -1
  268. package/standalone/chunks/color-area-B_G8a0NX.js +66 -0
  269. package/standalone/chunks/{color-field-BKDaLJQo.js → color-field-DlZIotvM.js} +1 -1
  270. package/standalone/chunks/{color-handle-DO7dxFGx.js → color-handle-h3fYn_2h.js} +1 -1
  271. package/standalone/chunks/{color-loupe-_dC69K1Z.js → color-loupe-ceV5LQbI.js} +1 -1
  272. package/standalone/chunks/{color-menu-6LhE-qWn.js → color-menu-CGxmlgwZ.js} +2 -2
  273. package/standalone/chunks/{color-slider-MSADvkPC.js → color-slider-Uv4iIRws.js} +2 -2
  274. package/standalone/chunks/{divider-vAjIOfo1.js → divider-BLhmxGvJ.js} +1 -1
  275. package/standalone/chunks/{field-group-C1oDgW9m.js → field-group-Pc_Pu61V.js} +1 -1
  276. package/standalone/chunks/{field-label-Djcst_hn.js → field-label-CYs6sh7M.js} +3 -3
  277. package/standalone/chunks/icon-CYZJZELU.js +2 -0
  278. package/standalone/chunks/{infield-button-B8EkjwP9.js → infield-button-umqY7wh3.js} +1 -1
  279. package/standalone/chunks/interaction-CII_biy8.js +2 -0
  280. package/standalone/chunks/lucero-runtime-BkqJ2L5f.js +18 -0
  281. package/standalone/chunks/luzmoCheck-BQw4HZFw.js +2 -0
  282. package/standalone/chunks/{manage-help-text-DO3PkWgh.js → manage-help-text-CrQxXqBH.js} +1 -1
  283. package/standalone/chunks/{menu-DtUgXalL.js → menu-BQ1vUHja.js} +6 -6
  284. package/standalone/chunks/{number-field-aOOuxxRh.js → number-field-Cujj8njt.js} +2 -2
  285. package/standalone/chunks/{observe-slot-presence-BxmG6A0m.js → observe-slot-presence-CITwnhtc.js} +1 -1
  286. package/standalone/chunks/{options-CPaX-OWy.js → options-BlDY_bJv.js} +12 -12
  287. package/standalone/chunks/{overlay-CgQMEmrM.js → overlay-Bcwu868u.js} +6 -6
  288. package/standalone/chunks/{pending-state-DnTXKvtm.js → pending-state-BbjpQDWR.js} +1 -1
  289. package/standalone/chunks/{picker-5IvNnimu.js → picker-BOuknvzl.js} +7 -7
  290. package/standalone/chunks/{picker-button-BIqlIkET.js → picker-button-B7gJZHYC.js} +1 -1
  291. package/standalone/chunks/{popover-Ca-FBqiU.js → popover-Dum9nObN.js} +2 -2
  292. package/standalone/chunks/progress-circle-CZodXLYe.js +17 -0
  293. package/standalone/chunks/property-BsZepKFj.js +2 -0
  294. package/standalone/chunks/{radio-BJ3RhyUD.js → radio-fCBCSuw9.js} +2 -2
  295. package/standalone/chunks/{segments-factory-DWNY1AUE.js → segments-factory-PfCggJk6.js} +1 -1
  296. package/standalone/chunks/{skeleton-loader-CymPdQl3.js → skeleton-loader-zvitohC5.js} +1 -1
  297. package/standalone/chunks/swatch-BL10VQ4z.js +33 -0
  298. package/standalone/chunks/{template-property-CyrkVY0Q.js → template-property-BeYccnca.js} +1 -1
  299. package/standalone/chunks/{text-field-C4D5FNRe.js → text-field-KnOMaj3Y.js} +1 -1
  300. package/standalone/chunks/{text-field-DwD97PEo.js → text-field-pIdOTrtY.js} +15 -15
  301. package/standalone/chunks/tooltip-CYQLlhx8.js +41 -0
  302. package/standalone/clear-button.js +1 -1
  303. package/standalone/close-button.js +1 -1
  304. package/standalone/color-area.js +1 -1
  305. package/standalone/color-field.js +1 -1
  306. package/standalone/color-handle.js +1 -1
  307. package/standalone/color-loupe.js +1 -1
  308. package/standalone/color-menu.js +1 -1
  309. package/standalone/color-palette-group.js +3 -3
  310. package/standalone/color-palette.js +1 -1
  311. package/standalone/color-picker.js +2 -2
  312. package/standalone/color-slider.js +1 -1
  313. package/standalone/date-range-picker.js +7 -7
  314. package/standalone/date-time-picker.js +8 -8
  315. package/standalone/divider.js +1 -1
  316. package/standalone/field-group.js +1 -1
  317. package/standalone/field-label.js +1 -1
  318. package/standalone/icon.js +1 -1
  319. package/standalone/infield-button.js +1 -1
  320. package/standalone/label.js +1 -1
  321. package/standalone/lit.js +1 -1
  322. package/standalone/manifest.json +46 -44
  323. package/standalone/menu.js +1 -1
  324. package/standalone/multi-language-field.js +1 -1
  325. package/standalone/notice.js +2 -2
  326. package/standalone/number-field.js +1 -1
  327. package/standalone/options.js +1 -1
  328. package/standalone/overlay.js +1 -1
  329. package/standalone/permission-box.js +178 -0
  330. package/standalone/picker-button.js +1 -1
  331. package/standalone/picker.js +1 -1
  332. package/standalone/popover.js +1 -1
  333. package/standalone/progress-bar.js +2 -2
  334. package/standalone/progress-circle.js +1 -1
  335. package/standalone/progress-steps.js +2 -2
  336. package/standalone/prompt-box.js +3 -3
  337. package/standalone/question-box.js +33 -33
  338. package/standalone/radio.js +1 -1
  339. package/standalone/search.js +2 -2
  340. package/standalone/select.js +9 -9
  341. package/standalone/skeleton-loader.js +1 -1
  342. package/standalone/slider.js +11 -11
  343. package/standalone/split-view.js +5 -3
  344. package/standalone/status-light.js +1 -1
  345. package/standalone/swatch.js +1 -1
  346. package/standalone/switch.js +1 -1
  347. package/standalone/table.js +24 -24
  348. package/standalone/tabs.js +7 -7
  349. package/standalone/tags.js +2 -2
  350. package/standalone/text-field.js +1 -1
  351. package/standalone/toast.js +1 -1
  352. package/standalone/tooltip.js +1 -1
  353. package/standalone/top-nav.js +10 -10
  354. package/standalone/utils.js +1 -1
  355. package/styles/mixins/tests/visually-hidden.test.d.ts +1 -0
  356. package/utils/reactive-controllers/interaction.d.ts +5 -1
  357. package/utils/sized-mixin.d.ts +8 -0
  358. package/components/split-view-DDwpoN2O.js +0 -357
  359. package/components/split-view-DNVlr5VD.cjs +0 -43
  360. package/standalone/chunks/color-area-D-AVcZza.js +0 -66
  361. package/standalone/chunks/icon-D69mOw1X.js +0 -2
  362. package/standalone/chunks/interaction-BQyflxg-.js +0 -2
  363. package/standalone/chunks/lucero-runtime-DMlHjBe_.js +0 -18
  364. package/standalone/chunks/progress-circle-CFtVq9Ou.js +0 -17
  365. package/standalone/chunks/property-BsDbx7Z2.js +0 -2
  366. package/standalone/chunks/swatch-zFOV4NtM.js +0 -33
  367. package/standalone/chunks/tooltip-B-j8PrNl.js +0 -41
@@ -4,20 +4,48 @@ import { Focusable } from '../../utils/focusable';
4
4
  * Divides two panes with an optionally interactive separator.
5
5
  *
6
6
  * @element luzmo-split-view
7
- * @slot - The first two elements are rendered as panes.
7
+ * @slot - The first two elements are rendered as panes. A `hidden` or
8
+ * `display: none` element among them is not a pane. Visibility is re-checked
9
+ * when a pane's own `hidden`, `style` or `class` changes and when the view
10
+ * resizes; a style change from an ancestor that resizes nothing is not
11
+ * picked up.
8
12
  * @attr primary-min - Minimum primary pane size in pixels.
9
13
  * @attr primary-max - Maximum primary pane size in pixels.
10
14
  * @attr secondary-min - Minimum secondary pane size in pixels.
11
15
  * @attr secondary-max - Maximum secondary pane size in pixels.
12
16
  * @attr primary-size - Initial primary pane size in pixels, percent, or `auto`.
17
+ * Ignored while stacked.
18
+ * @attr secondary-size - Initial secondary pane size in pixels, percent, or
19
+ * `auto`. When set, the secondary pane keeps its size as the view resizes.
20
+ * Ignored while stacked.
13
21
  * @attr splitter-pos - Current primary pane size in pixels.
22
+ * @attr stack-below - Inline size in pixels below which the panes stack.
23
+ * While stacked, the panes start at half the height each and keep their
24
+ * proportions as the view resizes; pane sizes, minimums and maximums are
25
+ * ignored.
14
26
  * @fires input - The splitter position changes during interaction.
15
27
  * @fires change - A splitter position change is committed.
28
+ * @fires {CustomEvent<InteractionEventDetail>} luzmo-interaction-start - A
29
+ * pointer drag or held key starts, before the first position change.
30
+ * @fires {CustomEvent<InteractionEventDetail>} luzmo-interaction-end - The
31
+ * interaction ends, after its last `input`/`change`.
32
+ * @fires {CustomEvent<InteractionEventDetail>} luzmo-interaction-cancel - A
33
+ * pointer drag is cancelled and its position restored.
16
34
  * @cssprop --luzmo-split-view-divider-color - Divider color.
17
35
  * @cssprop --luzmo-split-view-divider-color-hover - Hovered divider color.
18
36
  * @cssprop --luzmo-split-view-divider-color-active - Active divider color.
19
37
  * @cssprop --luzmo-split-view-divider-thickness - Visible divider thickness.
20
38
  * @cssprop --luzmo-split-view-focus-color - Focus indicator color.
39
+ * @cssprop --luzmo-split-view-handle-color - Grip color. Defaults to
40
+ * `--luzmo-split-view-divider-color` when that is set.
41
+ * @cssprop --luzmo-split-view-handle-color-hover - Hovered grip color.
42
+ * Defaults to `--luzmo-split-view-divider-color-hover` when that is set.
43
+ * @cssprop --luzmo-split-view-handle-color-active - Grip color while
44
+ * dragging. Defaults to `--luzmo-split-view-divider-color-active` when that is
45
+ * set.
46
+ * @cssprop --luzmo-split-view-handle-length - Grip size along the divider.
47
+ * @cssprop --luzmo-split-view-handle-thickness - Grip size across the divider.
48
+ * @cssprop --luzmo-split-view-handle-radius - Grip corner radius.
21
49
  */
22
50
  export declare class LuzmoSplitView extends Focusable {
23
51
  static get styles(): CSSResultArray;
@@ -42,8 +70,33 @@ export declare class LuzmoSplitView extends Focusable {
42
70
  /** Maximum secondary pane size in pixels. */
43
71
  set secondaryMax(value: number);
44
72
  get secondaryMax(): number;
45
- /** Initial primary pane size in pixels, percentage, or `auto`. */
73
+ /**
74
+ * Initial primary pane size in pixels, percentage, or `auto`. Ignored while
75
+ * stacked.
76
+ */
46
77
  primarySize: string;
78
+ /**
79
+ * Initial secondary pane size in pixels, percentage, or `auto`. When set,
80
+ * the secondary pane keeps its size as the view resizes and takes
81
+ * precedence over `primarySize`. Ignored while stacked.
82
+ */
83
+ secondarySize?: string;
84
+ /**
85
+ * Inline size in pixels below which the panes stack. `0` never stacks. The
86
+ * view is expected to fill its container: a content-sized view can change
87
+ * its own width when it stacks and flip back. While stacked, the panes
88
+ * start at half the height each and keep their proportions as the view
89
+ * resizes; pane sizes, minimums and maximums describe widths and are
90
+ * ignored.
91
+ */
92
+ set stackBelow(value: number);
93
+ get stackBelow(): number;
94
+ /**
95
+ * Read-only. Whether the panes are currently stacked by `stackBelow`.
96
+ * Reflected as the `stacked` attribute for styling; a consumer write to the
97
+ * attribute is undone on the next update.
98
+ */
99
+ get stacked(): boolean;
47
100
  /** Current primary pane size in pixels. */
48
101
  set splitterPos(value: number);
49
102
  get splitterPos(): number;
@@ -53,50 +106,75 @@ export declare class LuzmoSplitView extends Focusable {
53
106
  private _primaryMax;
54
107
  private _secondaryMin;
55
108
  private _secondaryMax;
109
+ private _stackBelow;
110
+ private _stacked;
56
111
  private _resizable;
57
112
  private _splitterPos;
58
113
  private _viewSize;
114
+ private _viewOrientation?;
59
115
  private _minPos;
60
116
  private _maxPos;
61
117
  private _enoughChildren;
62
118
  private _positionInitialized;
63
119
  private _initialSplitterPosSupplied;
64
- private _activePanes;
120
+ /** The secondary size a layout asked for before bounds clamped it. */
121
+ private _clampedSecondarySize?;
65
122
  private _restorePositionOnReconnect;
66
- private _paneInlineStyles;
123
+ private _pendingSource?;
67
124
  private _controlledElement?;
68
125
  private _controlledElementGeneratedId?;
69
126
  private _resizeObserver?;
127
+ private _observedInlineSize?;
70
128
  private _dragStartPosition?;
71
129
  private _dragPointerId?;
72
130
  private _dragChanged;
73
131
  private _capturedPointer?;
74
- private _lastExpandedPosition?;
132
+ private readonly _interaction;
133
+ private readonly _panes;
134
+ private readonly _memory;
75
135
  get focusElement(): HTMLElement;
76
136
  connectedCallback(): void;
77
137
  disconnectedCallback(): void;
138
+ private get _orientation();
139
+ private get _secondaryFixed();
78
140
  private _normalizeBound;
79
141
  private _measureView;
142
+ private _updateStacked;
143
+ private _handleResize;
80
144
  private _calculateBounds;
81
145
  private _clampPosition;
82
146
  private _resolveInitialPosition;
147
+ private _resolvePaneSize;
148
+ private _fixedSizeFromPosition;
149
+ private _positionFromFixedSize;
150
+ private _rememberPosition;
151
+ private _resolveRememberedPosition;
83
152
  private _applyPaneSizes;
84
- private _restorePaneStyles;
85
- private _setActivePanes;
86
153
  private _recalculate;
87
154
  private _syncAriaControls;
88
155
  private _clearControlledElementId;
89
156
  private handleSlotChange;
90
157
  private _dispatchValueEvent;
158
+ private _commitChange;
91
159
  private _setPosition;
92
160
  private handleKeydown;
161
+ private handleKeyup;
162
+ private handleFocusOut;
93
163
  private _capturePointer;
94
164
  private _releasePointer;
95
165
  private handlePointerDown;
166
+ private _snapshotDragStart;
96
167
  private _pointerPosition;
97
168
  private handlePointerMove;
98
169
  private _finishDrag;
99
170
  private handlePointerUp;
171
+ private _releaseDrag;
172
+ /**
173
+ * Finishes the pointer drag or held-key interaction in progress as if the
174
+ * user released it, so a host can settle the position before it removes or
175
+ * hides the view. Does nothing when no interaction is in progress.
176
+ */
177
+ endInteraction(): void;
100
178
  private _cancelDrag;
101
179
  private handlePointerCancel;
102
180
  protected render(): TemplateResult;
@@ -0,0 +1,45 @@
1
+ /*! * Lucero - The design system for Luzmo.
2
+ *
3
+ * Copyright © 2026 Luzmo
4
+ * All rights reserved.
5
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
+ * This license allows users with a current active Luzmo account to use Lucero.
7
+ * This license terminates automatically if a user no longer has an active Luzmo account.
8
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
+ *
10
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
+ * SOFTWARE.
17
+ * */
18
+ require("./tokens.cjs");const e=require("./decorate-SO02l0A6.cjs"),t=require("./focusable-BIHTrJd6.cjs"),n=require("./interaction--DdZDJnw.cjs");let r=require("lit"),i=require("lit/decorators.js");var a=class{constructor(e,t){this._options=t,this._candidates=[],this._active=[],this._inlineStyles=new Map,e.addController(this)}hostDisconnected(){this._observer?.disconnect(),this.restoreStyles(),this._active=[],this._candidates=[]}get active(){return this._active}observe(e){if(this._candidates=e,typeof MutationObserver<`u`){this._observer??=new MutationObserver(()=>{this.sync(),this._observer?.takeRecords()}),this._observer.disconnect();for(let t of e)this._observer.observe(t,{attributes:!0,attributeFilter:[`class`,`hidden`,`style`]})}}isShown(e){if(e.hidden)return!1;let t=this._inlineStyles.get(e);if(t?.appliedDisplay!==`none`||e.style.display!==`none`)return getComputedStyle(e).display!==`none`;e.style.display=t.display;let n=getComputedStyle(e).display!==`none`;return e.style.display=`none`,n}sync(){let e=this._candidates.filter(e=>this.isShown(e));(e.length!==this._active.length||e.some((e,t)=>e!==this._active[t]))&&this._options.onChange()}setActive(e){let t=e.slice(0,2),n=t.length!==this._active.length||t.some((e,t)=>e!==this._active[t]);if(n&&(this.restoreStyles(),this._active=t),n||this._inlineStyles.size===0)for(let e of t)this._inlineStyles.set(e,{display:e.style.display,flex:e.style.flex});return n}write(e){let t=this._observer?.takeRecords()??[];e(),this._observer?.takeRecords(),t.length>0&&queueMicrotask(()=>this.sync())}applyDisplay(e,t){let n=this._inlineStyles.get(e);n?.appliedDisplay!==void 0&&e.style.display!==n.appliedDisplay&&(n.display=e.style.display);let r=t?`none`:n?.display??``;e.style.display=r,n&&(n.appliedDisplay=r)}restoreStyles(){for(let[e,t]of this._inlineStyles)e.style.display===(t.appliedDisplay??t.display)&&(e.style.display=t.display),e.style.flex=t.flex;this._inlineStyles.clear()}},o=class{constructor(e){this._rememberedSizes={},this._lastExpandedPositions={},e.addController(this)}hostConnected(){}get dragStartMemory(){return this._dragStartMemory}rememberedSize(e){return this._rememberedSizes[e]}remember(e,t){this._rememberedSizes[e]=t}forget(e){e?delete this._rememberedSizes[e]:this._rememberedSizes={}}scale(e,t){for(let n of[this._rememberedSizes,this._lastExpandedPositions,this._dragStartMemory?.rememberedSizes,this._dragStartMemory?.lastExpandedPositions]){let r=n?.[e];n&&r!==void 0&&(n[e]=r*t)}}lastExpandedPosition(e){return this._lastExpandedPositions[e]}rememberExpanded(e,t){this._lastExpandedPositions[e]=t}snapshotDragStart(e){this._dragStartMemory={orientation:e,rememberedSizes:{...this._rememberedSizes},lastExpandedPositions:{...this._lastExpandedPositions}}}clearDragStart(){this._dragStartMemory=void 0}restoreRememberedSizes(e){this._rememberedSizes={...e?.rememberedSizes}}restoreLastExpandedPositions(e){this._lastExpandedPositions={...e?.lastExpandedPositions}}};function s(e,t){let n=Math.max(0,t.primaryMin,e-t.secondaryMax),r=Math.min(e,t.primaryMax,e-t.secondaryMin);if(n<=r)return{min:n,max:r};let i=Math.min(e,Math.max(0,e/2));return{min:i,max:i}}function c(e,t){return Math.min(t.max,Math.max(t.min,e))}function l(e,t){return t>0&&e<t}var u=`:host{min-block-size:0;min-inline-size:0;display:flex;position:relative}:host(:is([vertical],[stacked])){flex-direction:column}slot{display:contents}::slotted(*){min-block-size:0;min-inline-size:0}::slotted(:nth-child(n+3)){display:none!important}.separator{cursor:col-resize;block-size:100%;inline-size:var(--split-view-target-size);touch-action:none;z-index:1;outline:none;justify-content:center;align-items:center;display:flex;position:absolute;inset-block-start:0;inset-inline-start:calc(var(--splitter-position,0) * 1px - var(--split-view-target-size) / 2)}:host(:is([vertical],[stacked])) .separator{block-size:var(--split-view-target-size);cursor:row-resize;inline-size:100%;inset-block-start:calc(var(--splitter-position,0) * 1px - var(--split-view-target-size) / 2);inset-inline-start:0}.separator .divider{background-color:var(--luzmo-split-view-divider-color,var(--split-view-divider-color));block-size:100%;inline-size:var(--luzmo-split-view-divider-thickness,var(--split-view-divider-thickness));pointer-events:none}.separator .handle{background-color:var(--luzmo-split-view-handle-color,var(--luzmo-split-view-divider-color,var(--split-view-handle-color)));block-size:var(--luzmo-split-view-handle-length,var(--split-view-handle-length));border-radius:var(--luzmo-split-view-handle-radius,var(--split-view-handle-radius));inline-size:var(--luzmo-split-view-handle-thickness,var(--split-view-handle-thickness));pointer-events:none;display:none;position:absolute}:host([resizable]) .separator .handle{display:block}:host(:is([vertical],[stacked])) .separator .divider{block-size:var(--luzmo-split-view-divider-thickness,var(--split-view-divider-thickness));inline-size:100%}:host(:is([vertical],[stacked])) .separator .handle{block-size:var(--luzmo-split-view-handle-thickness,var(--split-view-handle-thickness));inline-size:var(--luzmo-split-view-handle-length,var(--split-view-handle-length))}:host(:not([vertical],[stacked])) .separator.start-edge{inset-inline-start:0}:host(:not([vertical],[stacked])) .separator.end-edge{inset-inline-start:calc(100% - var(--split-view-target-size))}.separator.start-edge .divider,.separator.end-edge .divider{position:absolute}:host(:not([vertical],[stacked])) .separator.start-edge .divider{inset-inline-start:0}:host(:not([vertical],[stacked])) .separator.start-edge .handle{inset-inline-start:calc(var(--split-view-focus-width) + var(--split-view-focus-offset))}:host(:not([vertical],[stacked])) .separator.end-edge .divider{inset-inline-end:0}:host(:not([vertical],[stacked])) .separator.end-edge .handle{inset-inline-end:calc(var(--split-view-focus-width) + var(--split-view-focus-offset))}:host(:is([vertical],[stacked])) .separator.start-edge{inset-block-start:0}:host(:is([vertical],[stacked])) .separator.end-edge{inset-block-start:calc(100% - var(--split-view-target-size))}:host(:is([vertical],[stacked])) .separator.start-edge .divider{inset-block-start:0}:host(:is([vertical],[stacked])) .separator.start-edge .handle{inset-block-start:calc(var(--split-view-focus-width) + var(--split-view-focus-offset))}:host(:is([vertical],[stacked])) .separator.end-edge .divider{inset-block-end:0}:host(:is([vertical],[stacked])) .separator.end-edge .handle{inset-block-end:calc(var(--split-view-focus-width) + var(--split-view-focus-offset))}:host([resizable]:not([disabled],[dragging])) .separator:hover .divider{background-color:var(--luzmo-split-view-divider-color-hover,var(--split-view-divider-color-hover))}:host([resizable]:not([disabled],[dragging])) .separator:hover .handle{background-color:var(--luzmo-split-view-handle-color-hover,var(--luzmo-split-view-divider-color-hover,var(--split-view-divider-color-hover)))}:host([dragging]) .separator .divider{background-color:var(--luzmo-split-view-divider-color-active,var(--split-view-divider-color-active))}:host([dragging]) .separator .handle{background-color:var(--luzmo-split-view-handle-color-active,var(--luzmo-split-view-divider-color-active,var(--split-view-divider-color-active)))}.separator:focus-visible .divider{background-color:var(--luzmo-split-view-focus-color,var(--split-view-focus-color))}.separator:focus-visible .handle{outline:var(--split-view-focus-width) solid var(--luzmo-split-view-focus-color,var(--split-view-focus-color));outline-offset:var(--split-view-focus-offset)}:host(:not([resizable])) .separator,:host([disabled]) .separator{cursor:default}@media (forced-colors:active){:host{--highcontrast-split-view-divider-color:CanvasText;--highcontrast-split-view-focus-color:Highlight}.separator .divider{background-color:var(--highcontrast-split-view-divider-color,var(--luzmo-split-view-divider-color,var(--split-view-divider-color)))}.separator .handle{background-color:var(--highcontrast-split-view-divider-color,var(--luzmo-split-view-handle-color,var(--luzmo-split-view-divider-color,var(--split-view-divider-color))))}:host([resizable]:not([disabled])) .separator:hover .divider,:host([resizable]:not([disabled])) .separator:hover .handle,:host([dragging]) .separator .divider,:host([dragging]) .separator .handle{background-color:highlight}.separator:focus-visible .divider{background-color:var(--highcontrast-split-view-focus-color,var(--luzmo-split-view-focus-color,var(--split-view-focus-color)))}.separator:focus-visible .handle{outline-color:var(--highcontrast-split-view-focus-color,var(--luzmo-split-view-focus-color,var(--split-view-focus-color)))}}:host{--split-view-divider-color:var(--luzmo-border-color-full);--split-view-divider-color-hover:var(--luzmo-primary-hover);--split-view-divider-color-active:var(--luzmo-primary-down);--split-view-divider-thickness:var(--luzmo-border-width);--split-view-focus-color:var(--luzmo-primary-focus);--split-view-target-size:var(--luzmo-component-height-xs);--split-view-focus-offset:var(--luzmo-border-width);--split-view-focus-width:var(--luzmo-indicator-width,1px);--split-view-handle-color:var(--luzmo-font-color-extra-dimmed);--split-view-handle-length:var(--luzmo-component-height);--split-view-handle-thickness:var(--luzmo-spacing-2);--split-view-handle-radius:var(--luzmo-border-radius-full)}`,d=3840,f=10,p=50,m=50,h={primaryMin:0,primaryMax:1/0,secondaryMin:0,secondaryMax:1/0},g=0,_=class extends t.t{constructor(...e){super(...e),this.vertical=!1,this.collapsible=!1,this.label=`Resize panels`,this.primarySize=`50%`,this._primaryMin=0,this._primaryMax=d,this._secondaryMin=0,this._secondaryMax=d,this._stackBelow=0,this._stacked=!1,this._resizable=!1,this._splitterPos=0,this._viewSize=0,this._minPos=0,this._maxPos=0,this._enoughChildren=!1,this._positionInitialized=!1,this._initialSplitterPosSupplied=!1,this._restorePositionOnReconnect=!1,this._dragChanged=!1,this._interaction=new n.t(this,{value:()=>this.splitterPos}),this._panes=new a(this,{onChange:()=>this.handleSlotChange()}),this._memory=new o(this)}static get styles(){let e=super.styles;return[...Array.isArray(e)?e:e?[e]:[],(0,r.unsafeCSS)(u)]}set resizable(e){let t=!!e;if(t===this._resizable)return;let n=this._resizable;this._resizable=t,t||this._cancelDrag(),this.requestUpdate(`resizable`,n)}get resizable(){return this._resizable}set primaryMin(e){let t=this._normalizeBound(e,0);if(t===this._primaryMin)return;let n=this._primaryMin;this._primaryMin=t,this.requestUpdate(`primaryMin`,n)}get primaryMin(){return this._primaryMin}set primaryMax(e){let t=this._normalizeBound(e,d);if(t===this._primaryMax)return;let n=this._primaryMax;this._primaryMax=t,this.requestUpdate(`primaryMax`,n)}get primaryMax(){return this._primaryMax}set secondaryMin(e){let t=this._normalizeBound(e,0);if(t===this._secondaryMin)return;let n=this._secondaryMin;this._secondaryMin=t,this.requestUpdate(`secondaryMin`,n)}get secondaryMin(){return this._secondaryMin}set secondaryMax(e){let t=this._normalizeBound(e,d);if(t===this._secondaryMax)return;let n=this._secondaryMax;this._secondaryMax=t,this.requestUpdate(`secondaryMax`,n)}get secondaryMax(){return this._secondaryMax}set stackBelow(e){let t=this._normalizeBound(e,0);if(t===this._stackBelow)return;let n=this._stackBelow;this._stackBelow=t,this.requestUpdate(`stackBelow`,n)}get stackBelow(){return this._stackBelow}get stacked(){return this._stacked}set splitterPos(e){this._positionInitialized||(this._initialSplitterPosSupplied=!0);let t=Number.isFinite(e)?e:0,n=this.collapsible&&(t===0||t===this._viewSize),r=this._positionInitialized&&!n?this._clampPosition(t):t;if(r===this._splitterPos)return;let i=this._splitterPos;this._splitterPos=r,this.requestUpdate(`splitterPos`,i)}get splitterPos(){return this._splitterPos}get focusElement(){return this._separator??this}connectedCallback(){this._positionInitialized||(this._initialSplitterPosSupplied=this._initialSplitterPosSupplied||this.hasAttribute(`splitter-pos`)),super.connectedCallback(),typeof ResizeObserver<`u`&&(this._resizeObserver??=new ResizeObserver(([e])=>{this._observedInlineSize=e.contentBoxSize?.[0]?.inlineSize??e.contentRect.width,this._handleResize()}),this._resizeObserver.observe(this)),this.updateComplete.then(()=>{this.isConnected&&this.handleSlotChange()})}disconnectedCallback(){this._cancelDrag(!1),this._resizeObserver?.disconnect(),this._observedInlineSize=void 0,this._restorePositionOnReconnect=!0,this._clearControlledElementId(),this._controlledElement=void 0,super.disconnectedCallback()}get _orientation(){return this.vertical||this._stacked?`vertical`:`horizontal`}get _secondaryFixed(){return!this._stacked&&!!this.secondarySize?.trim()}_normalizeBound(e,t){return Number.isFinite(e)&&e>=0?e:t}_measureView(){let e=this.getBoundingClientRect();return this._orientation===`vertical`?e.height:e.width}_updateStacked(){let e=this._observedInlineSize??this.getBoundingClientRect().width;if(e<=0)return!1;let t=!this.vertical&&l(e,this.stackBelow);return t!==this._stacked&&(this._stacked=t,this.toggleAttribute(`stacked`,t),this.requestUpdate(),!0)}_handleResize(){this._panes.sync();let e=this._updateStacked();this._recalculate(e?`remembered`:`current`)}_calculateBounds(){this._viewSize=this._measureView();let e=s(this._viewSize,this._stacked?h:{primaryMin:this.primaryMin,primaryMax:this.primaryMax,secondaryMin:this.secondaryMin,secondaryMax:this.secondaryMax});this._minPos=e.min,this._maxPos=e.max}_clampPosition(e){return c(e,{min:this._minPos,max:this._maxPos})}_resolveInitialPosition(){return this._stacked?this._viewSize/2:this._secondaryFixed?this._positionFromFixedSize(this._resolvePaneSize(this.secondarySize??``,this._panes.active[1])):this._resolvePaneSize(this.primarySize,this._controlledElement)}_resolvePaneSize(e,t){let n=e.trim(),r=this._orientation===`vertical`;if(/^\d+(?:\.\d+)?(?:px)?$/.test(n))return Number.parseFloat(n);if(/^\d+(?:\.\d+)?%$/.test(n))return Number.parseFloat(n)/100*this._viewSize;if(n===`auto`&&t){let e=Number.parseFloat(t.style.getPropertyValue(r?`block-size`:`inline-size`));if(Number.isFinite(e)&&e>0)return e;let n=Number.parseFloat(getComputedStyle(t).getPropertyValue(r?`height`:`width`));if(Number.isFinite(n)&&n>0)return n;let i=t.getBoundingClientRect(),a=r?i.height:i.width;if(Number.isFinite(a)&&a>0)return a}return this._viewSize/2}_fixedSizeFromPosition(e){return this._secondaryFixed?this._viewSize-e:e}_positionFromFixedSize(e){return this._secondaryFixed?this._viewSize-e:e}_rememberPosition(){this.splitterPos<=0||this.splitterPos>=this._viewSize||this._memory.remember(this._orientation,this._fixedSizeFromPosition(this.splitterPos))}_resolveRememberedPosition(){let e=this._memory.rememberedSize(this._orientation);return e===void 0?this._resolveInitialPosition():this._positionFromFixedSize(e)}_applyPaneSizes(){let[e,t]=this._panes.active,n=Math.round(this.splitterPos),r=Math.round(this._viewSize),i=`0 0 ${Math.round(this._fixedSizeFromPosition(n))}px`;this._panes.write(()=>{e&&(e.style.flex=this._secondaryFixed?`1 1 0`:i,this._panes.applyDisplay(e,r>0&&n<=0)),t&&(t.style.flex=this._secondaryFixed?i:`1 1 0`,this._panes.applyDisplay(t,r>0&&n>=r))})}_recalculate(e){let t=e===`current`?this._pendingSource??e:e;if(!this.isConnected||!this._enoughChildren||this._measureView()<=0){t!==`current`&&(this._pendingSource=t);return}this._pendingSource=void 0;let n=this._viewSize,r=this._viewOrientation,i=this._positionInitialized&&this.collapsible&&this.splitterPos===0,a=this._positionInitialized&&this.collapsible&&n>0&&this.splitterPos===n;this._calculateBounds(),this._viewOrientation=this._orientation;let o=this._stacked&&n>0&&r===this._orientation?this._viewSize/n:void 0;o!==void 0&&(this._memory.scale(this._orientation,o),this._dragStartPosition!==void 0&&(this._dragStartPosition*=o));let s,c;if(!this._positionInitialized)s=this._initialSplitterPosSupplied?this.splitterPos:this._resolveInitialPosition(),this._positionInitialized=!0;else if(t===`initial`)s=this._resolveInitialPosition();else if(t===`remembered`)s=this._resolveRememberedPosition();else if(i)s=0;else if(a)s=this._viewSize;else if(this._secondaryFixed&&n>0&&r===this._orientation){let e=this._clampedSecondarySize;c=e?.position===this.splitterPos?e.size:n-this.splitterPos,s=this._clampPosition(this._viewSize-c)}else s=o===void 0?this._clampPosition(this.splitterPos):this._clampPosition(this.splitterPos*o);this.splitterPos=s,c??=this._viewSize-s,this._clampedSecondarySize=this._secondaryFixed&&this._viewSize-this.splitterPos!==c?{position:this.splitterPos,size:c}:void 0,this._applyPaneSizes()}_syncAriaControls(){this._separator&&this._controlledElement&&(this._separator.ariaControlsElements=[this._controlledElement])}_clearControlledElementId(){this._controlledElement&&this._controlledElement.id===this._controlledElementGeneratedId&&this._controlledElement.removeAttribute(`id`),this._controlledElementGeneratedId=void 0}handleSlotChange(){let e=(this._paneSlot?.assignedElements()??[]).slice(0,2);this._panes.observe(e);let t=e.filter(e=>this._panes.isShown(e)),n=this._panes.setActive(t),r=t[0];r!==this._controlledElement&&(this._clearControlledElementId(),this._controlledElement=r),this._controlledElement&&!this._controlledElement.id&&(g+=1,this._controlledElementGeneratedId=`luzmo-split-view-pane-${g}`,this._controlledElement.id=this._controlledElementGeneratedId);let i=this._enoughChildren,a=t.length>=2;if(a!==this._enoughChildren&&(this._enoughChildren=a,this.requestUpdate()),a){let e=!i||n&&!this._restorePositionOnReconnect;this._restorePositionOnReconnect=!1,this.updateComplete.then(()=>{let t=this._updateStacked();this._recalculate(e||t?`remembered`:`current`),this._syncAriaControls()})}}_dispatchValueEvent(e){this.dispatchEvent(new Event(e,{bubbles:!0,composed:!0}))}_commitChange(){this._rememberPosition(),this._dispatchValueEvent(`change`)}_setPosition(e,t={}){let n=this._clampPosition(e);return this.collapsible&&t.collapse&&(e<=0&&(n=0),e>=this._viewSize&&(n=this._viewSize)),n!==this.splitterPos&&(this.splitterPos>0&&this.splitterPos<this._viewSize&&this._memory.rememberExpanded(this._orientation,this.splitterPos),this.splitterPos=n,this._applyPaneSizes(),(t.emit??!0)&&this._dispatchValueEvent(`input`),!0)}handleKeydown(e){if(!this.resizable||this.disabled)return;let t=this._orientation===`vertical`,n;switch(e.key){case`ArrowLeft`:t||(n=this.splitterPos+(this.isLTR?-10:f));break;case`ArrowRight`:t||(n=this.splitterPos+(this.isLTR?f:-10));break;case`ArrowUp`:t&&(n=this.splitterPos-f);break;case`ArrowDown`:t&&(n=this.splitterPos+f);break;case`PageUp`:n=this.splitterPos+(t?-50:p);break;case`PageDown`:n=this.splitterPos+(t?p:-50);break;case`Home`:n=this.collapsible?0:this._minPos;break;case`End`:n=this.collapsible?this._viewSize:this._maxPos;break;case`Enter`:if(!this.collapsible)return;n=this.splitterPos===0?this._memory.lastExpandedPosition(this._orientation)??this._viewSize/2:0;break;default:return}n!==void 0&&(e.preventDefault(),this._interaction.keyDown(e.key)&&(!this.resizable||this.disabled?this._interaction.end():this._setPosition(n,{collapse:!0,emit:!1})&&this._interaction.commit(()=>this._dispatchValueEvent(`input`),()=>this._commitChange())))}handleKeyup(e){this._interaction.keyUp(e.key)}handleFocusOut(){this._interaction.endKeyboard()}_capturePointer(e,t){try{e.setPointerCapture(t),this._capturedPointer={target:e,pointerId:t}}catch{this._capturedPointer=void 0}}_releasePointer(){let e=this._capturedPointer;this._capturedPointer=void 0,e?.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}handlePointerDown(e){this.resizable&&!this.disabled&&e.button===0&&this._dragStartPosition===void 0&&this._interaction.start(n.n(e))&&(!this.resizable||this.disabled?this._interaction.end():(this._dragPointerId=e.pointerId,this._snapshotDragStart(),this.toggleAttribute(`dragging`,!0),this._capturePointer(e.currentTarget,e.pointerId)))}_snapshotDragStart(){this._dragStartPosition=this.splitterPos,this._memory.snapshotDragStart(this._orientation),this._dragChanged=!1}_pointerPosition(e){let t=this.getBoundingClientRect();return this._orientation===`vertical`?e.clientY-t.top:this.isLTR?e.clientX-t.left:t.right-e.clientX}handlePointerMove(e){if(this._dragPointerId!==e.pointerId||this._dragStartPosition===void 0||!this.resizable||this.disabled)return;let t=this._pointerPosition(e);this.collapsible&&t<this._minPos-m&&(t=0),this.collapsible&&t>this._maxPos+m&&(t=this._viewSize),this._setPosition(t,{collapse:!0})&&(this._dragChanged=!0)}_finishDrag(){this._dragPointerId=void 0,this._releasePointer(),this._dragStartPosition=void 0,this._memory.clearDragStart(),this._dragChanged=!1,this.toggleAttribute(`dragging`,!1)}handlePointerUp(e){this._dragPointerId===e.pointerId&&this._dragStartPosition!==void 0&&(this._releaseDrag(),this._interaction.end())}_releaseDrag(){if(this._dragStartPosition===void 0)return;let e=this._dragChanged;this._finishDrag(),e&&this._commitChange()}endInteraction(){this._releaseDrag(),this._interaction.end()}_cancelDrag(e=!0){if(this._dragStartPosition===void 0)return;let t=this._dragStartPosition,n=this._memory.dragStartMemory;this._finishDrag(),e&&(this._memory.restoreRememberedSizes(n),this._setPosition(n?.orientation===this._orientation?t:this._resolveRememberedPosition(),{collapse:!0}),this._memory.restoreLastExpandedPositions(n),this._interaction.cancel())}handlePointerCancel(e){this._dragPointerId===e.pointerId&&this._cancelDrag()}render(){return r.html`
19
+ <slot @slotchange=${this.handleSlotChange}></slot>
20
+ ${this._enoughChildren?r.html`
21
+ <div
22
+ class="separator ${this.splitterPos<=0?`start-edge`:this._viewSize>0&&this.splitterPos>=this._viewSize?`end-edge`:``}"
23
+ role="separator"
24
+ aria-label=${this.label}
25
+ aria-disabled=${this.resizable?this.disabled?`true`:`false`:r.nothing}
26
+ aria-orientation=${this._orientation===`vertical`?`horizontal`:`vertical`}
27
+ aria-valuemin=${this.resizable?this._positionAsPercentage(this.collapsible?0:this._minPos):r.nothing}
28
+ aria-valuemax=${this.resizable?this._positionAsPercentage(this.collapsible?this._viewSize:this._maxPos):r.nothing}
29
+ aria-valuenow=${this.resizable?this._positionAsPercentage(this.splitterPos):r.nothing}
30
+ tabindex=${this.resizable?this.disabled?`-1`:`0`:r.nothing}
31
+ style=${`--splitter-position: ${this.splitterPos}`}
32
+ @keydown=${this.handleKeydown}
33
+ @keyup=${this.handleKeyup}
34
+ @focusout=${this.handleFocusOut}
35
+ @pointerdown=${this.handlePointerDown}
36
+ @pointermove=${this.handlePointerMove}
37
+ @pointerup=${this.handlePointerUp}
38
+ @pointercancel=${this.handlePointerCancel}
39
+ @lostpointercapture=${this.handlePointerCancel}
40
+ >
41
+ <span class="divider" aria-hidden="true"></span>
42
+ <span class="handle" aria-hidden="true"></span>
43
+ </div>
44
+ `:r.nothing}
45
+ `}_positionAsPercentage(e){return String(this._viewSize>0?Math.round(e/this._viewSize*100):0)}willUpdate(e){super.willUpdate(e),(e.has(`vertical`)||e.has(`stackBelow`))&&this._updateStacked()?this._recalculate(`remembered`):(e.has(`vertical`)||e.has(`primaryMin`)||e.has(`primaryMax`)||e.has(`secondaryMin`)||e.has(`secondaryMax`)||e.has(`collapsible`))&&this._recalculate(`current`),(e.has(`primarySize`)||e.has(`secondarySize`))&&(this._stacked?this._memory.forget(`horizontal`):(this._memory.forget(),this._recalculate(`initial`),this._dragStartPosition!==void 0&&this._snapshotDragStart()))}updated(e){super.updated(e),this.hasAttribute(`stacked`)!==this._stacked&&this.toggleAttribute(`stacked`,this._stacked),e.has(`splitterPos`)&&this._applyPaneSizes(),this._syncAriaControls(),e.has(`disabled`)&&this.disabled&&this._cancelDrag()}};e.t([(0,i.property)({type:Boolean,reflect:!0})],_.prototype,`vertical`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],_.prototype,`resizable`,null),e.t([(0,i.property)({type:Boolean,reflect:!0})],_.prototype,`collapsible`,void 0),e.t([(0,i.property)({type:String,reflect:!0})],_.prototype,`label`,void 0),e.t([(0,i.property)({type:Number,reflect:!0,attribute:`primary-min`})],_.prototype,`primaryMin`,null),e.t([(0,i.property)({type:Number,reflect:!0,attribute:`primary-max`})],_.prototype,`primaryMax`,null),e.t([(0,i.property)({type:Number,reflect:!0,attribute:`secondary-min`})],_.prototype,`secondaryMin`,null),e.t([(0,i.property)({type:Number,reflect:!0,attribute:`secondary-max`})],_.prototype,`secondaryMax`,null),e.t([(0,i.property)({type:String,reflect:!0,attribute:`primary-size`})],_.prototype,`primarySize`,void 0),e.t([(0,i.property)({type:String,reflect:!0,attribute:`secondary-size`})],_.prototype,`secondarySize`,void 0),e.t([(0,i.property)({type:Number,reflect:!0,attribute:`stack-below`})],_.prototype,`stackBelow`,null),e.t([(0,i.property)({type:Number,reflect:!0,attribute:`splitter-pos`})],_.prototype,`splitterPos`,null),e.t([(0,i.query)(`slot`)],_.prototype,`_paneSlot`,void 0),e.t([(0,i.query)(`[role="separator"]`)],_.prototype,`_separator`,void 0),typeof customElements<`u`&&!customElements.get(`luzmo-split-view`)&&customElements.define(`luzmo-split-view`,_),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return _}});