@mhmo91/schmancy 0.8.3 → 0.8.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 (365) hide show
  1. package/dist/{animated-text-Bc3qyXjp.cjs → animated-text-B3DQRJBy.cjs} +2 -2
  2. package/dist/{animated-text-Bc3qyXjp.cjs.map → animated-text-B3DQRJBy.cjs.map} +1 -1
  3. package/dist/{animated-text-CNx6Pmlo.js → animated-text-BAj4-6hE.js} +3 -3
  4. package/dist/{animated-text-CNx6Pmlo.js.map → animated-text-BAj4-6hE.js.map} +1 -1
  5. package/dist/animated-text.cjs +1 -1
  6. package/dist/animated-text.js +1 -1
  7. package/dist/area.cjs +1 -1
  8. package/dist/{area.component-7mWxekxE.js → area.component-CP4DZ0d8.js} +3 -3
  9. package/dist/{area.component-7mWxekxE.js.map → area.component-CP4DZ0d8.js.map} +1 -1
  10. package/dist/{area.component-CS_gSutH.cjs → area.component-ChxSLt16.cjs} +2 -2
  11. package/dist/{area.component-CS_gSutH.cjs.map → area.component-ChxSLt16.cjs.map} +1 -1
  12. package/dist/area.js +1 -1
  13. package/dist/{autocomplete-y-IyzH4r.cjs → autocomplete-CAaVSg4g.cjs} +2 -2
  14. package/dist/{autocomplete-y-IyzH4r.cjs.map → autocomplete-CAaVSg4g.cjs.map} +1 -1
  15. package/dist/{autocomplete-Ci4jo3Ur.js → autocomplete-CGbACUYd.js} +4 -4
  16. package/dist/{autocomplete-Ci4jo3Ur.js.map → autocomplete-CGbACUYd.js.map} +1 -1
  17. package/dist/autocomplete.cjs +1 -1
  18. package/dist/autocomplete.js +1 -1
  19. package/dist/{avatar-DBfJucB9.cjs → avatar-nWOZXEsW.cjs} +3 -3
  20. package/dist/avatar-nWOZXEsW.cjs.map +1 -0
  21. package/dist/{avatar-BdyuuIk7.js → avatar-rLCF6MSI.js} +58 -58
  22. package/dist/avatar-rLCF6MSI.js.map +1 -0
  23. package/dist/badge.cjs +1 -1
  24. package/dist/badge.js +1 -1
  25. package/dist/{boat-CowHieO2.js → boat-Ckt9v__d.js} +3 -3
  26. package/dist/{boat-CowHieO2.js.map → boat-Ckt9v__d.js.map} +1 -1
  27. package/dist/{boat-DkNUc1UO.cjs → boat-yNAZ2LLB.cjs} +2 -2
  28. package/dist/{boat-DkNUc1UO.cjs.map → boat-yNAZ2LLB.cjs.map} +1 -1
  29. package/dist/boat.cjs +1 -1
  30. package/dist/boat.js +1 -1
  31. package/dist/busy.cjs +1 -1
  32. package/dist/busy.js +1 -1
  33. package/dist/button.cjs +1 -1
  34. package/dist/button.js +1 -1
  35. package/dist/card.cjs +1 -1
  36. package/dist/card.js +1 -1
  37. package/dist/charts.cjs +1 -1
  38. package/dist/charts.js +1 -1
  39. package/dist/{checkbox-BvWcABPr.cjs → checkbox-BnAlpsJN.cjs} +2 -2
  40. package/dist/{checkbox-BvWcABPr.cjs.map → checkbox-BnAlpsJN.cjs.map} +1 -1
  41. package/dist/{checkbox-BY4Sn8F2.js → checkbox-D22yfGe3.js} +2 -2
  42. package/dist/{checkbox-BY4Sn8F2.js.map → checkbox-D22yfGe3.js.map} +1 -1
  43. package/dist/checkbox.cjs +1 -1
  44. package/dist/checkbox.js +1 -1
  45. package/dist/chips.cjs +1 -1
  46. package/dist/chips.js +2 -2
  47. package/dist/code-highlight.cjs +1 -1
  48. package/dist/code-highlight.js +1 -1
  49. package/dist/{code-preview-CYjmAxfs.js → code-preview-DPlQayFd.js} +2 -2
  50. package/dist/{code-preview-CYjmAxfs.js.map → code-preview-DPlQayFd.js.map} +1 -1
  51. package/dist/{code-preview-BIFIJigy.cjs → code-preview-jPnX60FF.cjs} +2 -2
  52. package/dist/{code-preview-BIFIJigy.cjs.map → code-preview-jPnX60FF.cjs.map} +1 -1
  53. package/dist/components.cjs +1 -1
  54. package/dist/components.js +1 -1
  55. package/dist/content-drawer.cjs +1 -1
  56. package/dist/content-drawer.js +1 -1
  57. package/dist/{date-range-BdIqI7LC.js → date-range-GFm5NG33.js} +4 -4
  58. package/dist/{date-range-BdIqI7LC.js.map → date-range-GFm5NG33.js.map} +1 -1
  59. package/dist/{date-range-inline-Df8u6Ecy.cjs → date-range-inline-CgX2o0FP.cjs} +2 -2
  60. package/dist/{date-range-inline-Df8u6Ecy.cjs.map → date-range-inline-CgX2o0FP.cjs.map} +1 -1
  61. package/dist/{date-range-inline-Cnhs9atd.js → date-range-inline-DTQLESAZ.js} +3 -3
  62. package/dist/{date-range-inline-Cnhs9atd.js.map → date-range-inline-DTQLESAZ.js.map} +1 -1
  63. package/dist/date-range-inline.cjs +1 -1
  64. package/dist/date-range-inline.js +1 -1
  65. package/dist/{date-range-B80Ummtv.cjs → date-range-ug3B9CFT.cjs} +2 -2
  66. package/dist/{date-range-B80Ummtv.cjs.map → date-range-ug3B9CFT.cjs.map} +1 -1
  67. package/dist/date-range.cjs +1 -1
  68. package/dist/date-range.js +1 -1
  69. package/dist/{delay-BWsVHQib.cjs → delay-CWtBL0VD.cjs} +2 -2
  70. package/dist/{delay-BWsVHQib.cjs.map → delay-CWtBL0VD.cjs.map} +1 -1
  71. package/dist/{delay-CCa9nN4A.js → delay-DEe1CmHc.js} +2 -2
  72. package/dist/{delay-CCa9nN4A.js.map → delay-DEe1CmHc.js.map} +1 -1
  73. package/dist/delay.cjs +1 -1
  74. package/dist/delay.js +1 -1
  75. package/dist/{details-Bee5ya0L.js → details-D-LXW23W.js} +2 -2
  76. package/dist/{details-Bee5ya0L.js.map → details-D-LXW23W.js.map} +1 -1
  77. package/dist/{details-oaVHXU7U.cjs → details-DVke77dU.cjs} +2 -2
  78. package/dist/{details-oaVHXU7U.cjs.map → details-DVke77dU.cjs.map} +1 -1
  79. package/dist/details.cjs +1 -1
  80. package/dist/details.js +1 -1
  81. package/dist/dialog.cjs +1 -1
  82. package/dist/{dialog.component-BriB-kFi.cjs → dialog.component-BM0D-hK9.cjs} +2 -2
  83. package/dist/{dialog.component-BriB-kFi.cjs.map → dialog.component-BM0D-hK9.cjs.map} +1 -1
  84. package/dist/{dialog.component-CMUoCC7O.js → dialog.component-a7FlKhGD.js} +3 -3
  85. package/dist/{dialog.component-CMUoCC7O.js.map → dialog.component-a7FlKhGD.js.map} +1 -1
  86. package/dist/dialog.js +1 -1
  87. package/dist/{divider-B7DBbYFI.js → divider-CzTpxOqt.js} +3 -3
  88. package/dist/{divider-B7DBbYFI.js.map → divider-CzTpxOqt.js.map} +1 -1
  89. package/dist/{divider-Dl4TToQZ.cjs → divider-D8KStUhN.cjs} +2 -2
  90. package/dist/{divider-Dl4TToQZ.cjs.map → divider-D8KStUhN.cjs.map} +1 -1
  91. package/dist/divider.cjs +1 -1
  92. package/dist/divider.js +1 -1
  93. package/dist/{dropdown-content-C2W7OttQ.cjs → dropdown-content-CngZN3vv.cjs} +2 -2
  94. package/dist/{dropdown-content-C2W7OttQ.cjs.map → dropdown-content-CngZN3vv.cjs.map} +1 -1
  95. package/dist/{dropdown-content-DzhOtilY.js → dropdown-content-DCn-g0-f.js} +3 -3
  96. package/dist/{dropdown-content-DzhOtilY.js.map → dropdown-content-DCn-g0-f.js.map} +1 -1
  97. package/dist/dropdown.cjs +1 -1
  98. package/dist/dropdown.js +1 -1
  99. package/dist/{email-recipients-Bh5VC0rc.cjs → email-recipients-BhntMZMf.cjs} +2 -2
  100. package/dist/{email-recipients-Bh5VC0rc.cjs.map → email-recipients-BhntMZMf.cjs.map} +1 -1
  101. package/dist/{email-recipients-BWqZKo3m.js → email-recipients-BzjAKNJ0.js} +6 -6
  102. package/dist/{email-recipients-BWqZKo3m.js.map → email-recipients-BzjAKNJ0.js.map} +1 -1
  103. package/dist/extra.cjs +1 -1
  104. package/dist/extra.js +1 -1
  105. package/dist/{flex-53G-PJx7.js → flex-5dR48zie.js} +2 -2
  106. package/dist/{flex-53G-PJx7.js.map → flex-5dR48zie.js.map} +1 -1
  107. package/dist/{flex-DFSIy0t4.cjs → flex-oHl2EfYB.cjs} +2 -2
  108. package/dist/{flex-DFSIy0t4.cjs.map → flex-oHl2EfYB.cjs.map} +1 -1
  109. package/dist/{form-Zq7g2JS8.cjs → form-BlPiAPt7.cjs} +2 -2
  110. package/dist/{form-Zq7g2JS8.cjs.map → form-BlPiAPt7.cjs.map} +1 -1
  111. package/dist/{form-BtRK9bnp.js → form-BxVM6JTn.js} +2 -2
  112. package/dist/{form-BtRK9bnp.js.map → form-BxVM6JTn.js.map} +1 -1
  113. package/dist/form.cjs +1 -1
  114. package/dist/form.js +1 -1
  115. package/dist/{formField.mixin-2jSL7WF_.js → formField.mixin-BCGA7Ea3.js} +2 -2
  116. package/dist/{formField.mixin-2jSL7WF_.js.map → formField.mixin-BCGA7Ea3.js.map} +1 -1
  117. package/dist/{formField.mixin-DkN2ufR_.cjs → formField.mixin-BfJMifU9.cjs} +2 -2
  118. package/dist/{formField.mixin-DkN2ufR_.cjs.map → formField.mixin-BfJMifU9.cjs.map} +1 -1
  119. package/dist/{icon-pU_cfmpD.cjs → icon-DHEXr3c-.cjs} +2 -2
  120. package/dist/{icon-pU_cfmpD.cjs.map → icon-DHEXr3c-.cjs.map} +1 -1
  121. package/dist/{icon-B5qeYrDu.js → icon-DYpLoegR.js} +2 -2
  122. package/dist/{icon-B5qeYrDu.js.map → icon-DYpLoegR.js.map} +1 -1
  123. package/dist/{icon-button-HSYaQBNF.js → icon-button-CmZBLHWC.js} +3 -3
  124. package/dist/{icon-button-HSYaQBNF.js.map → icon-button-CmZBLHWC.js.map} +1 -1
  125. package/dist/{icon-button-BpmGFjaR.cjs → icon-button-IbSX8C98.cjs} +2 -2
  126. package/dist/{icon-button-BpmGFjaR.cjs.map → icon-button-IbSX8C98.cjs.map} +1 -1
  127. package/dist/icons.cjs +1 -1
  128. package/dist/icons.js +1 -1
  129. package/dist/index.cjs +1 -1
  130. package/dist/index.js +56 -56
  131. package/dist/{input-8G9YY9qv.cjs → input-BByjYlgl.cjs} +2 -2
  132. package/dist/{input-8G9YY9qv.cjs.map → input-BByjYlgl.cjs.map} +1 -1
  133. package/dist/{input-BJMF5Fyk.js → input-D0cQ9DOY.js} +3 -3
  134. package/dist/{input-BJMF5Fyk.js.map → input-D0cQ9DOY.js.map} +1 -1
  135. package/dist/{input-chip-tbrw56ix.js → input-chip-B5ErXgCB.js} +2 -2
  136. package/dist/{input-chip-tbrw56ix.js.map → input-chip-B5ErXgCB.js.map} +1 -1
  137. package/dist/{input-chip-CocdqTzr.cjs → input-chip-DkWaTciP.cjs} +2 -2
  138. package/dist/{input-chip-CocdqTzr.cjs.map → input-chip-DkWaTciP.cjs.map} +1 -1
  139. package/dist/input.cjs +1 -1
  140. package/dist/input.js +1 -1
  141. package/dist/{json-DPnyOA3K.cjs → json-BZVe74np.cjs} +2 -2
  142. package/dist/{json-DPnyOA3K.cjs.map → json-BZVe74np.cjs.map} +1 -1
  143. package/dist/{json-CvcloKQv.js → json-PKewOWuJ.js} +3 -3
  144. package/dist/{json-CvcloKQv.js.map → json-PKewOWuJ.js.map} +1 -1
  145. package/dist/json.cjs +1 -1
  146. package/dist/json.js +1 -1
  147. package/dist/layout.cjs +1 -1
  148. package/dist/layout.js +2 -2
  149. package/dist/{lightbox-service-3mHqBKEh.cjs → lightbox-service-D-0JtxB1.cjs} +2 -2
  150. package/dist/lightbox-service-D-0JtxB1.cjs.map +1 -0
  151. package/dist/{lightbox-service-DxbYZAuv.js → lightbox-service-DZMnb1eU.js} +3 -3
  152. package/dist/lightbox-service-DZMnb1eU.js.map +1 -0
  153. package/dist/lightbox.cjs +1 -1
  154. package/dist/lightbox.js +1 -1
  155. package/dist/{list-JjR7WOrd.cjs → list-B_2m7l3g.cjs} +6 -6
  156. package/dist/list-B_2m7l3g.cjs.map +1 -0
  157. package/dist/{list-FWXmY-eQ.js → list-CW56LV-v.js} +13 -13
  158. package/dist/list-CW56LV-v.js.map +1 -0
  159. package/dist/list.cjs +1 -1
  160. package/dist/list.js +1 -1
  161. package/dist/{litElement.mixin-BVBdv0GP.cjs → litElement.mixin-CrpeGpZ7.cjs} +2 -2
  162. package/dist/{litElement.mixin-BVBdv0GP.cjs.map → litElement.mixin-CrpeGpZ7.cjs.map} +1 -1
  163. package/dist/{litElement.mixin-Wcu4yIIs.js → litElement.mixin-DHZXtvYq.js} +2 -2
  164. package/dist/{litElement.mixin-Wcu4yIIs.js.map → litElement.mixin-DHZXtvYq.js.map} +1 -1
  165. package/dist/mailbox.cjs +1 -1
  166. package/dist/mailbox.js +1 -1
  167. package/dist/{map-Br6xJFxG.js → map-2Hl60a0A.js} +6 -6
  168. package/dist/{map-Br6xJFxG.js.map → map-2Hl60a0A.js.map} +1 -1
  169. package/dist/{map-D9R3OCne.cjs → map-DyPS9G7M.cjs} +3 -3
  170. package/dist/{map-D9R3OCne.cjs.map → map-DyPS9G7M.cjs.map} +1 -1
  171. package/dist/map.cjs +1 -1
  172. package/dist/map.js +1 -1
  173. package/dist/{media-DibPwAjJ.cjs → media-CS8HpKnK.cjs} +2 -2
  174. package/dist/{media-DibPwAjJ.cjs.map → media-CS8HpKnK.cjs.map} +1 -1
  175. package/dist/{media-BV_1DfcW.js → media-DtWbcRxL.js} +2 -2
  176. package/dist/{media-BV_1DfcW.js.map → media-DtWbcRxL.js.map} +1 -1
  177. package/dist/{menu-HKqlq99V.js → menu-Caju5-zd.js} +3 -3
  178. package/dist/{menu-HKqlq99V.js.map → menu-Caju5-zd.js.map} +1 -1
  179. package/dist/{menu-vNrV-Nuq.cjs → menu-rX5RPAI2.cjs} +2 -2
  180. package/dist/{menu-vNrV-Nuq.cjs.map → menu-rX5RPAI2.cjs.map} +1 -1
  181. package/dist/menu.cjs +1 -1
  182. package/dist/menu.js +1 -1
  183. package/dist/mixins.cjs +1 -1
  184. package/dist/mixins.js +3 -3
  185. package/dist/nav-drawer.cjs +1 -1
  186. package/dist/nav-drawer.js +1 -1
  187. package/dist/navigation-bar.cjs +1 -1
  188. package/dist/navigation-bar.js +1 -1
  189. package/dist/{navigation-rail-DKXumnmt.js → navigation-rail-Ctketq5a.js} +32 -25
  190. package/dist/navigation-rail-Ctketq5a.js.map +1 -0
  191. package/dist/{navigation-rail-D1o3qDe_.cjs → navigation-rail-DC9_oSIM.cjs} +12 -12
  192. package/dist/navigation-rail-DC9_oSIM.cjs.map +1 -0
  193. package/dist/navigation-rail.cjs +1 -1
  194. package/dist/navigation-rail.js +1 -1
  195. package/dist/{notification-service-B5ljba4P.js → notification-service-CUlfXqmj.js} +3 -3
  196. package/dist/{notification-service-B5ljba4P.js.map → notification-service-CUlfXqmj.js.map} +1 -1
  197. package/dist/{notification-service-ICRT05L0.cjs → notification-service-DknbpqTt.cjs} +2 -2
  198. package/dist/{notification-service-ICRT05L0.cjs.map → notification-service-DknbpqTt.cjs.map} +1 -1
  199. package/dist/notification.cjs +1 -1
  200. package/dist/notification.js +2 -2
  201. package/dist/{notify-B9CpO1Ru.js → notify-DJSOWTxv.js} +2 -2
  202. package/dist/{notify-B9CpO1Ru.js.map → notify-DJSOWTxv.js.map} +1 -1
  203. package/dist/{notify-NX-dl60E.cjs → notify-DickIEHW.cjs} +2 -2
  204. package/dist/{notify-NX-dl60E.cjs.map → notify-DickIEHW.cjs.map} +1 -1
  205. package/dist/{option-B4JKMrLg.js → option-Bng41-rY.js} +2 -2
  206. package/dist/{option-B4JKMrLg.js.map → option-Bng41-rY.js.map} +1 -1
  207. package/dist/{option-epyXLWoY.cjs → option-DYT5Rkgy.cjs} +2 -2
  208. package/dist/{option-epyXLWoY.cjs.map → option-DYT5Rkgy.cjs.map} +1 -1
  209. package/dist/option.cjs +1 -1
  210. package/dist/option.js +1 -1
  211. package/dist/{page-Bmi1QHtq.cjs → page-BLn9gtSd.cjs} +2 -2
  212. package/dist/{page-Bmi1QHtq.cjs.map → page-BLn9gtSd.cjs.map} +1 -1
  213. package/dist/{page-BpygEntU.js → page-D-ROcQDd.js} +4 -4
  214. package/dist/{page-BpygEntU.js.map → page-D-ROcQDd.js.map} +1 -1
  215. package/dist/page.cjs +1 -1
  216. package/dist/page.js +1 -1
  217. package/dist/{payment-card-form-3kAXDbXf.cjs → payment-card-form-5UtfWzoW.cjs} +2 -2
  218. package/dist/{payment-card-form-3kAXDbXf.cjs.map → payment-card-form-5UtfWzoW.cjs.map} +1 -1
  219. package/dist/{payment-card-form-BxkHuSls.js → payment-card-form-BJa4RgF2.js} +3 -3
  220. package/dist/{payment-card-form-BxkHuSls.js.map → payment-card-form-BJa4RgF2.js.map} +1 -1
  221. package/dist/{pills-C3fIvfn8.js → pills-BS5rZ6C3.js} +3 -3
  222. package/dist/{pills-C3fIvfn8.js.map → pills-BS5rZ6C3.js.map} +1 -1
  223. package/dist/{pills-MmHyBGQu.cjs → pills-Blf7IAeq.cjs} +2 -2
  224. package/dist/{pills-MmHyBGQu.cjs.map → pills-Blf7IAeq.cjs.map} +1 -1
  225. package/dist/{progress-qx8jtrOA.cjs → progress-DlhYniW_.cjs} +5 -5
  226. package/dist/progress-DlhYniW_.cjs.map +1 -0
  227. package/dist/{progress-0POmJs5o.js → progress-yTIX6EqC.js} +10 -13
  228. package/dist/progress-yTIX6EqC.js.map +1 -0
  229. package/dist/progress.cjs +1 -1
  230. package/dist/progress.js +1 -1
  231. package/dist/{qr-scanner-DQq-WLyo.cjs → qr-scanner-DOs7uNS_.cjs} +2 -2
  232. package/dist/{qr-scanner-DQq-WLyo.cjs.map → qr-scanner-DOs7uNS_.cjs.map} +1 -1
  233. package/dist/{qr-scanner-jwOSrD0N.js → qr-scanner-DjZ8mgHV.js} +2 -2
  234. package/dist/{qr-scanner-jwOSrD0N.js.map → qr-scanner-DjZ8mgHV.js.map} +1 -1
  235. package/dist/qr-scanner.cjs +1 -1
  236. package/dist/qr-scanner.js +1 -1
  237. package/dist/{radio-button-DraEYR2R.cjs → radio-button-N_PrrxKB.cjs} +2 -2
  238. package/dist/{radio-button-DraEYR2R.cjs.map → radio-button-N_PrrxKB.cjs.map} +1 -1
  239. package/dist/{radio-button-B0EUK_wg.js → radio-button-me3SRHGu.js} +3 -3
  240. package/dist/{radio-button-B0EUK_wg.js.map → radio-button-me3SRHGu.js.map} +1 -1
  241. package/dist/radio-group.cjs +1 -1
  242. package/dist/radio-group.js +1 -1
  243. package/dist/{schmancy-steps-container-C2StAA5K.js → schmancy-steps-container-J6P-NNNj.js} +2 -2
  244. package/dist/{schmancy-steps-container-C2StAA5K.js.map → schmancy-steps-container-J6P-NNNj.js.map} +1 -1
  245. package/dist/{schmancy-steps-container-B5aiqgMA.cjs → schmancy-steps-container-T57BKMzi.cjs} +2 -2
  246. package/dist/{schmancy-steps-container-B5aiqgMA.cjs.map → schmancy-steps-container-T57BKMzi.cjs.map} +1 -1
  247. package/dist/{scroll-Bu-vAg3d.js → scroll-C_gfUgjn.js} +2 -2
  248. package/dist/{scroll-Bu-vAg3d.js.map → scroll-C_gfUgjn.js.map} +1 -1
  249. package/dist/{scroll-BqT7bvhu.cjs → scroll-CecsowP7.cjs} +2 -2
  250. package/dist/{scroll-BqT7bvhu.cjs.map → scroll-CecsowP7.cjs.map} +1 -1
  251. package/dist/{select-i-uKur-W.js → select-BBA0gBHf.js} +3 -3
  252. package/dist/{select-i-uKur-W.js.map → select-BBA0gBHf.js.map} +1 -1
  253. package/dist/{select-HiEGJvOX.cjs → select-D9oCjv7N.cjs} +2 -2
  254. package/dist/{select-HiEGJvOX.cjs.map → select-D9oCjv7N.cjs.map} +1 -1
  255. package/dist/select.cjs +1 -1
  256. package/dist/select.js +1 -1
  257. package/dist/{sheet-BbrRW0S5.cjs → sheet-0oUfBmXX.cjs} +2 -2
  258. package/dist/{sheet-BbrRW0S5.cjs.map → sheet-0oUfBmXX.cjs.map} +1 -1
  259. package/dist/{sheet-B1g7E4dQ.js → sheet-CNcDT3VP.js} +5 -5
  260. package/dist/{sheet-B1g7E4dQ.js.map → sheet-CNcDT3VP.js.map} +1 -1
  261. package/dist/sheet.cjs +1 -1
  262. package/dist/sheet.js +2 -2
  263. package/dist/{sheet.service-4etIM-p6.js → sheet.service-2MobB-9z.js} +2 -2
  264. package/dist/{sheet.service-4etIM-p6.js.map → sheet.service-2MobB-9z.js.map} +1 -1
  265. package/dist/{sheet.service-BiRZjCdN.cjs → sheet.service-su_7yDQ-.cjs} +2 -2
  266. package/dist/{sheet.service-BiRZjCdN.cjs.map → sheet.service-su_7yDQ-.cjs.map} +1 -1
  267. package/dist/{slider-VYnbIRH2.cjs → slider-CV-Ehp_5.cjs} +2 -2
  268. package/dist/{slider-VYnbIRH2.cjs.map → slider-CV-Ehp_5.cjs.map} +1 -1
  269. package/dist/{slider-8E3Wad0t.js → slider-CkE-iFUy.js} +3 -3
  270. package/dist/{slider-8E3Wad0t.js.map → slider-CkE-iFUy.js.map} +1 -1
  271. package/dist/slider.cjs +1 -1
  272. package/dist/slider.js +1 -1
  273. package/dist/{spinner-DJgcI5wr.cjs → spinner-Bfn8KC-9.cjs} +2 -2
  274. package/dist/{spinner-DJgcI5wr.cjs.map → spinner-Bfn8KC-9.cjs.map} +1 -1
  275. package/dist/{spinner-CKm13CKN.js → spinner-DiMbWXp9.js} +2 -2
  276. package/dist/{spinner-CKm13CKN.js.map → spinner-DiMbWXp9.js.map} +1 -1
  277. package/dist/steps.cjs +1 -1
  278. package/dist/steps.js +1 -1
  279. package/dist/{suggestion-chip-6njXvvHm.js → suggestion-chip-CEDqUNoS.js} +3 -3
  280. package/dist/{suggestion-chip-6njXvvHm.js.map → suggestion-chip-CEDqUNoS.js.map} +1 -1
  281. package/dist/{suggestion-chip-DdLfqk7o.cjs → suggestion-chip-HhsLtZXR.cjs} +2 -2
  282. package/dist/{suggestion-chip-DdLfqk7o.cjs.map → suggestion-chip-HhsLtZXR.cjs.map} +1 -1
  283. package/dist/{surface-DcqbWGub.cjs → surface-CW3H23Va.cjs} +2 -2
  284. package/dist/{surface-DcqbWGub.cjs.map → surface-CW3H23Va.cjs.map} +1 -1
  285. package/dist/{surface-BYU3l_Q2.js → surface-eBfnSwQS.js} +2 -2
  286. package/dist/{surface-BYU3l_Q2.js.map → surface-eBfnSwQS.js.map} +1 -1
  287. package/dist/surface.cjs +1 -1
  288. package/dist/surface.js +1 -1
  289. package/dist/{table-C9fzDjjk.cjs → table-D0tiSL_u.cjs} +2 -2
  290. package/dist/{table-C9fzDjjk.cjs.map → table-D0tiSL_u.cjs.map} +1 -1
  291. package/dist/{table-Dq12ollZ.js → table-Dmo4TvTx.js} +2 -2
  292. package/dist/{table-Dq12ollZ.js.map → table-Dmo4TvTx.js.map} +1 -1
  293. package/dist/table.cjs +1 -1
  294. package/dist/table.js +1 -1
  295. package/dist/{tabs-compatibility-wnzlHtln.js → tabs-compatibility-Bit6y6en.js} +2 -2
  296. package/dist/{tabs-compatibility-wnzlHtln.js.map → tabs-compatibility-Bit6y6en.js.map} +1 -1
  297. package/dist/{tabs-compatibility-Dwtjfkcf.cjs → tabs-compatibility-Vq_2-ekz.cjs} +2 -2
  298. package/dist/{tabs-compatibility-Dwtjfkcf.cjs.map → tabs-compatibility-Vq_2-ekz.cjs.map} +1 -1
  299. package/dist/tabs.cjs +1 -1
  300. package/dist/tabs.js +1 -1
  301. package/dist/{tailwind.mixin-Ddt05Frc.js → tailwind.mixin-Bp_PR6yc.js} +2 -2
  302. package/dist/{tailwind.mixin-Ddt05Frc.js.map → tailwind.mixin-Bp_PR6yc.js.map} +1 -1
  303. package/dist/{tailwind.mixin-UijsBrYW.cjs → tailwind.mixin-Cp4PyXok.cjs} +2 -2
  304. package/dist/{tailwind.mixin-UijsBrYW.cjs.map → tailwind.mixin-Cp4PyXok.cjs.map} +1 -1
  305. package/dist/teleport.cjs +1 -1
  306. package/dist/teleport.js +1 -1
  307. package/dist/{textarea-Vd3zayJZ.js → textarea-B1d1QCqT.js} +2 -2
  308. package/dist/{textarea-Vd3zayJZ.js.map → textarea-B1d1QCqT.js.map} +1 -1
  309. package/dist/{textarea-DGmsw1B_.cjs → textarea-DG8CHhZA.cjs} +2 -2
  310. package/dist/{textarea-DGmsw1B_.cjs.map → textarea-DG8CHhZA.cjs.map} +1 -1
  311. package/dist/textarea.cjs +1 -1
  312. package/dist/textarea.js +1 -1
  313. package/dist/{theme-button-DG_Xwg9H.cjs → theme-button-CPL6Eaqd.cjs} +2 -2
  314. package/dist/{theme-button-DG_Xwg9H.cjs.map → theme-button-CPL6Eaqd.cjs.map} +1 -1
  315. package/dist/{theme-button-rGpEW_xS.js → theme-button-CrLuMQNe.js} +2 -2
  316. package/dist/{theme-button-rGpEW_xS.js.map → theme-button-CrLuMQNe.js.map} +1 -1
  317. package/dist/theme-button.cjs +1 -1
  318. package/dist/theme-button.js +1 -1
  319. package/dist/{theme-controller-boat-pLzK5zxL.cjs → theme-controller-boat-CXbNJSI3.cjs} +2 -2
  320. package/dist/{theme-controller-boat-pLzK5zxL.cjs.map → theme-controller-boat-CXbNJSI3.cjs.map} +1 -1
  321. package/dist/{theme-controller-boat-B1fjcqJI.js → theme-controller-boat-CzSmjyKq.js} +3 -3
  322. package/dist/{theme-controller-boat-B1fjcqJI.js.map → theme-controller-boat-CzSmjyKq.js.map} +1 -1
  323. package/dist/theme.cjs +1 -1
  324. package/dist/theme.js +1 -1
  325. package/dist/{timezone-IQkwr6Oh.js → timezone-4vwX0BgA.js} +3 -3
  326. package/dist/{timezone-IQkwr6Oh.js.map → timezone-4vwX0BgA.js.map} +1 -1
  327. package/dist/{timezone-BhUaIAV7.cjs → timezone-BxvQcqe1.cjs} +2 -2
  328. package/dist/{timezone-BhUaIAV7.cjs.map → timezone-BxvQcqe1.cjs.map} +1 -1
  329. package/dist/{tooltip-CwaiZC8f.js → tooltip-CjdvBf4X.js} +2 -2
  330. package/dist/{tooltip-CwaiZC8f.js.map → tooltip-CjdvBf4X.js.map} +1 -1
  331. package/dist/{tooltip-iEvxKg8g.cjs → tooltip-ZtnGjoJd.cjs} +2 -2
  332. package/dist/{tooltip-iEvxKg8g.cjs.map → tooltip-ZtnGjoJd.cjs.map} +1 -1
  333. package/dist/tooltip.cjs +1 -1
  334. package/dist/tooltip.js +1 -1
  335. package/dist/{tree-D9EbEsxn.js → tree-CBEjV7jP.js} +2 -2
  336. package/dist/{tree-D9EbEsxn.js.map → tree-CBEjV7jP.js.map} +1 -1
  337. package/dist/{tree-Bclu6uvv.cjs → tree-DP5U00NA.cjs} +2 -2
  338. package/dist/{tree-Bclu6uvv.cjs.map → tree-DP5U00NA.cjs.map} +1 -1
  339. package/dist/tree.cjs +1 -1
  340. package/dist/tree.js +1 -1
  341. package/dist/{typewriter-Bscwd-36.cjs → typewriter-C6kFjLcX.cjs} +2 -2
  342. package/dist/{typewriter-Bscwd-36.cjs.map → typewriter-C6kFjLcX.cjs.map} +1 -1
  343. package/dist/{typewriter-BjDPgRlj.js → typewriter-Eo5qXoGC.js} +4 -4
  344. package/dist/{typewriter-BjDPgRlj.js.map → typewriter-Eo5qXoGC.js.map} +1 -1
  345. package/dist/typewriter.cjs +1 -1
  346. package/dist/typewriter.js +1 -1
  347. package/dist/{typography-CConBBFH.js → typography-C_1gdM2I.js} +2 -2
  348. package/dist/{typography-CConBBFH.js.map → typography-C_1gdM2I.js.map} +1 -1
  349. package/dist/{typography-DLGT3DGz.cjs → typography-DGyjlLCE.cjs} +2 -2
  350. package/dist/{typography-DLGT3DGz.cjs.map → typography-DGyjlLCE.cjs.map} +1 -1
  351. package/dist/typography.cjs +1 -1
  352. package/dist/typography.js +1 -1
  353. package/package.json +1 -1
  354. package/types/src/navigation-rail/navigation-rail.d.ts +2 -0
  355. package/types/src/progress/progress.d.ts +1 -1
  356. package/dist/avatar-BdyuuIk7.js.map +0 -1
  357. package/dist/avatar-DBfJucB9.cjs.map +0 -1
  358. package/dist/lightbox-service-3mHqBKEh.cjs.map +0 -1
  359. package/dist/lightbox-service-DxbYZAuv.js.map +0 -1
  360. package/dist/list-FWXmY-eQ.js.map +0 -1
  361. package/dist/list-JjR7WOrd.cjs.map +0 -1
  362. package/dist/navigation-rail-D1o3qDe_.cjs.map +0 -1
  363. package/dist/navigation-rail-DKXumnmt.js.map +0 -1
  364. package/dist/progress-0POmJs5o.js.map +0 -1
  365. package/dist/progress-qx8jtrOA.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";require("rxjs"),require("rxjs/operators"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const m=require("lit/decorators.js");require("./tailwind.mixin-UijsBrYW.cjs");const h=require("./litElement.mixin-BVBdv0GP.cjs"),l=require("lit"),d=require("./dialog-service-C86xTS8q.cjs");var p=Object.getOwnPropertyDescriptor;let u=class extends h.$LitElement(l.css`
1
+ "use strict";require("rxjs"),require("rxjs/operators"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const m=require("lit/decorators.js");require("./tailwind.mixin-Cp4PyXok.cjs");const h=require("./litElement.mixin-CrpeGpZ7.cjs"),l=require("lit"),d=require("./dialog-service-C86xTS8q.cjs");var p=Object.getOwnPropertyDescriptor;let u=class extends h.$LitElement(l.css`
2
2
  :host {
3
3
  display: block;
4
4
  }
@@ -21,4 +21,4 @@
21
21
  <slot></slot>
22
22
  </div>
23
23
  `}};a([m.query("slot:not([name])")],c.prototype,"menuSlot",2),c=a([m.customElement("schmancy-menu")],c);
24
- //# sourceMappingURL=menu-vNrV-Nuq.cjs.map
24
+ //# sourceMappingURL=menu-rX5RPAI2.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu-vNrV-Nuq.cjs","sources":["../src/menu/menu-item.ts","../src/menu/menu.ts"],"sourcesContent":["import { $LitElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\nimport { $dialog } from '../dialog/dialog-service'\n\n@customElement('schmancy-menu-item')\nexport default class SchmancyMenuItem extends $LitElement(css`\n\t:host {\n\t\tdisplay: block;\n\t}\n`) {\n\n\tprotected render(): unknown {\n\t\treturn html`\n\t\t\t<schmancy-list-item @click=${() => $dialog.dismiss()}>\n\t\t\t\t<slot></slot>\n\t\t\t</schmancy-list-item>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-menu-item': SchmancyMenuItem\n\t}\n}\n","import { $LitElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement, query } from 'lit/decorators.js'\nimport { $dialog } from '../dialog/dialog-service'\n\n/**\n * Menu Component\n *\n * CRITICAL: The dialog ONLY renders the raw menu items passed via the default slot.\n * NO <ul> wrapper, NO classes, NO additional markup in the dialog call.\n * The dialog service handles positioning and display - we just pass the pure content.\n *\n * @example Basic menu with auto-dismiss\n * ```typescript\n * <schmancy-menu>\n * <schmancy-button slot=\"trigger\">Actions</schmancy-button>\n * <schmancy-menu-item @click=${() => editItem()}>Edit</schmancy-menu-item>\n * <schmancy-menu-item @click=${() => deleteItem()}>Delete</schmancy-menu-item>\n * </schmancy-menu>\n * ```\n * Note: Dialog auto-dismisses when schmancy-menu-item is clicked\n *\n * @example Custom component (manual dismiss)\n * ```typescript\n * <schmancy-menu>\n * <schmancy-icon-button slot=\"trigger\">settings</schmancy-icon-button>\n * <my-settings-form @submit=${() => $dialog.dismiss()}></my-settings-form>\n * </schmancy-menu>\n * ```\n * Note: Custom components must call $dialog.dismiss() manually\n *\n * @slot trigger - Button to open menu (new naming)\n * @slot button - Button to open menu (backward compatible)\n * @slot default - Menu items or any custom component to display in dialog\n */\n@customElement('schmancy-menu')\nexport default class SchmancyMenu extends $LitElement(css`\n\t:host {\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t}\n`) {\n\t@query('slot:not([name])')\n\tprivate menuSlot!: HTMLSlotElement\n\n\tprivate showMenu(event: MouseEvent) {\n\t\tconst menuItems = this.menuSlot?.assignedElements() || []\n\t\tif (menuItems.length === 0) return\n\n\t\t// Create container and move actual elements to preserve full functionality\n\t\tconst dialogContainer = document.createElement('div')\n\t\tmenuItems.forEach(item => dialogContainer.appendChild(item))\n\n\t\t$dialog\n\t\t\t.component(dialogContainer, {\n\t\t\t\tposition: event,\n\t\t\t\thideActions: true,\n\t\t})\n\t\t\t.finally(() => {\n\t\t\t\t// Restore elements as light DOM children (will be projected via slot)\n\t\t\t\tmenuItems.forEach(item => this.appendChild(item))\n\t\t\t})\n\t}\n\n\trender() {\n\t\treturn html`\n\t\t\t<slot name=\"trigger\" @click=${this.showMenu}>\n\t\t\t\t<slot name=\"button\" @click=${this.showMenu}>\n\t\t\t\t\t<schmancy-icon-button>more_vert</schmancy-icon-button>\n\t\t\t\t</slot>\n\t\t\t</slot>\n\t\t\t<div hidden>\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-menu': SchmancyMenu\n\t}\n}\n"],"names":["SchmancyMenuItem","$LitElement","css","render","html","$dialog","dismiss","customElement","SchmancyMenu","event","menuItems","this","menuSlot","assignedElements","length","dialogContainer","document","createElement","forEach","item","appendChild","component","position","hideActions","finally","showMenu","__decorateClass","query","prototype"],"mappings":"wWAMA,IAAqBA,EAArB,cAA8CC,EAAAA,YAAYC,EAAAA;AAAAA;AAAAA;AAAAA;AAAAA,GAM/C,QAAAC,CACT,OAAOC,EAAAA;AAAAA,gCACuB,IAAMC,EAAAA,QAAQC,QAAAA,CAAAA;AAAAA;AAAAA;AAAAA,GAI7C,CAAA,EAZoBN,wGAArB,CADCO,EAAAA,cAAc,oBAAA,CAAA,EACMP,mMC8BrB,IAAqBQ,EAArB,cAA0CP,EAAAA,YAAYC,EAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,GAS7C,SAASO,GAChB,MAAMC,EAAYC,KAAKC,UAAUC,iBAAAA,GAAsB,GACvD,GAAIH,EAAUI,SAAW,EAAG,OAG5B,MAAMC,EAAkBC,SAASC,cAAc,KAAA,EAC/CP,EAAUQ,QAAQC,GAAQJ,EAAgBK,YAAYD,IAEtDd,EAAAA,QACEgB,UAAUN,EAAiB,CAC3BO,SAAUb,EACVc,YAAAA,KAEAC,QAAQ,IAAA,CAERd,EAAUQ,QAAQC,GAAQR,KAAKS,YAAYD,CAAAA,CAAAA,CAAAA,CAAAA,CAE9C,CAEA,QAAAhB,CACC,OAAOC,EAAAA;AAAAA,iCACwBO,KAAKc,QAAAA;AAAAA,iCACLd,KAAKc,QAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,GAQrC,CAAA,EAhCQC,EAAA,CADPC,EAAAA,MAAM,qBANanB,EAOZoB,UAAA,WAAA,CAAA,EAPYpB,EAArBkB,EAAA,CADCnB,EAAAA,cAAc,eAAA,CAAA,EACMC,CAAAA"}
1
+ {"version":3,"file":"menu-rX5RPAI2.cjs","sources":["../src/menu/menu-item.ts","../src/menu/menu.ts"],"sourcesContent":["import { $LitElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\nimport { $dialog } from '../dialog/dialog-service'\n\n@customElement('schmancy-menu-item')\nexport default class SchmancyMenuItem extends $LitElement(css`\n\t:host {\n\t\tdisplay: block;\n\t}\n`) {\n\n\tprotected render(): unknown {\n\t\treturn html`\n\t\t\t<schmancy-list-item @click=${() => $dialog.dismiss()}>\n\t\t\t\t<slot></slot>\n\t\t\t</schmancy-list-item>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-menu-item': SchmancyMenuItem\n\t}\n}\n","import { $LitElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement, query } from 'lit/decorators.js'\nimport { $dialog } from '../dialog/dialog-service'\n\n/**\n * Menu Component\n *\n * CRITICAL: The dialog ONLY renders the raw menu items passed via the default slot.\n * NO <ul> wrapper, NO classes, NO additional markup in the dialog call.\n * The dialog service handles positioning and display - we just pass the pure content.\n *\n * @example Basic menu with auto-dismiss\n * ```typescript\n * <schmancy-menu>\n * <schmancy-button slot=\"trigger\">Actions</schmancy-button>\n * <schmancy-menu-item @click=${() => editItem()}>Edit</schmancy-menu-item>\n * <schmancy-menu-item @click=${() => deleteItem()}>Delete</schmancy-menu-item>\n * </schmancy-menu>\n * ```\n * Note: Dialog auto-dismisses when schmancy-menu-item is clicked\n *\n * @example Custom component (manual dismiss)\n * ```typescript\n * <schmancy-menu>\n * <schmancy-icon-button slot=\"trigger\">settings</schmancy-icon-button>\n * <my-settings-form @submit=${() => $dialog.dismiss()}></my-settings-form>\n * </schmancy-menu>\n * ```\n * Note: Custom components must call $dialog.dismiss() manually\n *\n * @slot trigger - Button to open menu (new naming)\n * @slot button - Button to open menu (backward compatible)\n * @slot default - Menu items or any custom component to display in dialog\n */\n@customElement('schmancy-menu')\nexport default class SchmancyMenu extends $LitElement(css`\n\t:host {\n\t\tposition: relative;\n\t\tdisplay: flex;\n\t}\n`) {\n\t@query('slot:not([name])')\n\tprivate menuSlot!: HTMLSlotElement\n\n\tprivate showMenu(event: MouseEvent) {\n\t\tconst menuItems = this.menuSlot?.assignedElements() || []\n\t\tif (menuItems.length === 0) return\n\n\t\t// Create container and move actual elements to preserve full functionality\n\t\tconst dialogContainer = document.createElement('div')\n\t\tmenuItems.forEach(item => dialogContainer.appendChild(item))\n\n\t\t$dialog\n\t\t\t.component(dialogContainer, {\n\t\t\t\tposition: event,\n\t\t\t\thideActions: true,\n\t\t})\n\t\t\t.finally(() => {\n\t\t\t\t// Restore elements as light DOM children (will be projected via slot)\n\t\t\t\tmenuItems.forEach(item => this.appendChild(item))\n\t\t\t})\n\t}\n\n\trender() {\n\t\treturn html`\n\t\t\t<slot name=\"trigger\" @click=${this.showMenu}>\n\t\t\t\t<slot name=\"button\" @click=${this.showMenu}>\n\t\t\t\t\t<schmancy-icon-button>more_vert</schmancy-icon-button>\n\t\t\t\t</slot>\n\t\t\t</slot>\n\t\t\t<div hidden>\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-menu': SchmancyMenu\n\t}\n}\n"],"names":["SchmancyMenuItem","$LitElement","css","render","html","$dialog","dismiss","customElement","SchmancyMenu","event","menuItems","this","menuSlot","assignedElements","length","dialogContainer","document","createElement","forEach","item","appendChild","component","position","hideActions","finally","showMenu","__decorateClass","query","prototype"],"mappings":"wWAMA,IAAqBA,EAArB,cAA8CC,EAAAA,YAAYC,EAAAA;AAAAA;AAAAA;AAAAA;AAAAA,GAM/C,QAAAC,CACT,OAAOC,EAAAA;AAAAA,gCACuB,IAAMC,EAAAA,QAAQC,QAAAA,CAAAA;AAAAA;AAAAA;AAAAA,GAI7C,CAAA,EAZoBN,wGAArB,CADCO,EAAAA,cAAc,oBAAA,CAAA,EACMP,mMC8BrB,IAAqBQ,EAArB,cAA0CP,EAAAA,YAAYC,EAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,GAS7C,SAASO,GAChB,MAAMC,EAAYC,KAAKC,UAAUC,iBAAAA,GAAsB,GACvD,GAAIH,EAAUI,SAAW,EAAG,OAG5B,MAAMC,EAAkBC,SAASC,cAAc,KAAA,EAC/CP,EAAUQ,QAAQC,GAAQJ,EAAgBK,YAAYD,IAEtDd,EAAAA,QACEgB,UAAUN,EAAiB,CAC3BO,SAAUb,EACVc,YAAAA,KAEAC,QAAQ,IAAA,CAERd,EAAUQ,QAAQC,GAAQR,KAAKS,YAAYD,CAAAA,CAAAA,CAAAA,CAAAA,CAE9C,CAEA,QAAAhB,CACC,OAAOC,EAAAA;AAAAA,iCACwBO,KAAKc,QAAAA;AAAAA,iCACLd,KAAKc,QAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,GAQrC,CAAA,EAhCQC,EAAA,CADPC,EAAAA,MAAM,qBANanB,EAOZoB,UAAA,WAAA,CAAA,EAPYpB,EAArBkB,EAAA,CADCnB,EAAAA,cAAc,eAAA,CAAA,EACMC,CAAAA"}
package/dist/menu.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";require("./menu-vNrV-Nuq.cjs");
1
+ "use strict";require("./menu-rX5RPAI2.cjs");
2
2
  //# sourceMappingURL=menu.cjs.map
package/dist/menu.js CHANGED
@@ -1,2 +1,2 @@
1
- import "./menu-HKqlq99V.js";
1
+ import "./menu-Caju5-zd.js";
2
2
  //# sourceMappingURL=menu.js.map
package/dist/mixins.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./tailwind.mixin-UijsBrYW.cjs"),i=require("./formField.mixin-DkN2ufR_.cjs"),l=require("./litElement.mixin-BVBdv0GP.cjs");exports.BaseElement=e.BaseElement,exports.TailwindElement=e.TailwindElement,exports.tailwindStyles=e.tailwindStyles,exports.FormFieldMixin=i.FormFieldMixin,exports.SchmancyFormField=i.SchmancyFormField,exports.$LitElement=l.$LitElement;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./tailwind.mixin-Cp4PyXok.cjs"),i=require("./formField.mixin-BfJMifU9.cjs"),l=require("./litElement.mixin-CrpeGpZ7.cjs");exports.BaseElement=e.BaseElement,exports.TailwindElement=e.TailwindElement,exports.tailwindStyles=e.tailwindStyles,exports.FormFieldMixin=i.FormFieldMixin,exports.SchmancyFormField=i.SchmancyFormField,exports.$LitElement=l.$LitElement;
2
2
  //# sourceMappingURL=mixins.cjs.map
package/dist/mixins.js CHANGED
@@ -1,6 +1,6 @@
1
- import { B as t, T as i, t as m } from "./tailwind.mixin-Ddt05Frc.js";
2
- import { F as o, S as r } from "./formField.mixin-2jSL7WF_.js";
3
- import { $ as n } from "./litElement.mixin-Wcu4yIIs.js";
1
+ import { B as t, T as i, t as m } from "./tailwind.mixin-Bp_PR6yc.js";
2
+ import { F as o, S as r } from "./formField.mixin-BCGA7Ea3.js";
3
+ import { $ as n } from "./litElement.mixin-DHZXtvYq.js";
4
4
  export {
5
5
  n as $LitElement,
6
6
  t as BaseElement,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./avatar-DBfJucB9.cjs");exports.$drawer=e.$drawer,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),exports.schmancyNavDrawer=e.schmancyNavDrawer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./avatar-nWOZXEsW.cjs");exports.$drawer=e.$drawer,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),exports.schmancyNavDrawer=e.schmancyNavDrawer;
2
2
  //# sourceMappingURL=nav-drawer.cjs.map
@@ -1,4 +1,4 @@
1
- import { $ as c, k as e, m as n, n as m, o as s, l as o, p as t, j as w } from "./avatar-BdyuuIk7.js";
1
+ import { $ as c, k as e, m as n, n as m, o as s, l as o, p as t, j as w } from "./avatar-rLCF6MSI.js";
2
2
  export {
3
3
  c as $drawer,
4
4
  e as SchmancyDrawerAppbar,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./avatar-DBfJucB9.cjs");Object.defineProperty(exports,"SchmancyNavigationBar",{enumerable:!0,get:()=>e.SchmancyNavigationBar}),Object.defineProperty(exports,"SchmancyNavigationBarItem",{enumerable:!0,get:()=>e.SchmancyNavigationBarItem});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./avatar-nWOZXEsW.cjs");Object.defineProperty(exports,"SchmancyNavigationBar",{enumerable:!0,get:()=>e.SchmancyNavigationBar}),Object.defineProperty(exports,"SchmancyNavigationBarItem",{enumerable:!0,get:()=>e.SchmancyNavigationBarItem});
2
2
  //# sourceMappingURL=navigation-bar.cjs.map
@@ -1,4 +1,4 @@
1
- import { r as c, q as i } from "./avatar-BdyuuIk7.js";
1
+ import { r as c, q as i } from "./avatar-rLCF6MSI.js";
2
2
  export {
3
3
  c as SchmancyNavigationBar,
4
4
  i as SchmancyNavigationBarItem
@@ -1,19 +1,19 @@
1
- import { BehaviorSubject as y, merge as m, fromEvent as v, takeUntil as f } from "rxjs";
2
- import { tap as p, delay as k, distinctUntilChanged as x } from "rxjs/operators";
1
+ import { BehaviorSubject as g, merge as m, fromEvent as v, takeUntil as f } from "rxjs";
2
+ import { tap as d, delay as k, distinctUntilChanged as x } from "rxjs/operators";
3
3
  import "lit/directives/class-map.js";
4
4
  import "lit/directives/style-map.js";
5
- import { property as a, state as g, customElement as w, queryAssignedElements as V } from "lit/decorators.js";
6
- import "./tailwind.mixin-Ddt05Frc.js";
7
- import { $ } from "./litElement.mixin-Wcu4yIIs.js";
5
+ import { property as a, state as y, customElement as w, queryAssignedElements as S } from "lit/decorators.js";
6
+ import "./tailwind.mixin-Bp_PR6yc.js";
7
+ import { $ } from "./litElement.mixin-DHZXtvYq.js";
8
8
  import { html as u } from "lit";
9
9
  import { when as b } from "lit/directives/when.js";
10
- var S = Object.defineProperty, E = Object.getOwnPropertyDescriptor, o = (e, t, i, s) => {
11
- for (var c, n = s > 1 ? void 0 : s ? E(t, i) : t, d = e.length - 1; d >= 0; d--) (c = e[d]) && (n = (s ? c(t, i, n) : c(n)) || n);
12
- return s && n && S(t, i, n), n;
10
+ var V = Object.defineProperty, C = Object.getOwnPropertyDescriptor, o = (e, t, i, s) => {
11
+ for (var c, n = s > 1 ? void 0 : s ? C(t, i) : t, p = e.length - 1; p >= 0; p--) (c = e[p]) && (n = (s ? c(t, i, n) : c(n)) || n);
12
+ return s && n && V(t, i, n), n;
13
13
  };
14
14
  let l = class extends $() {
15
15
  constructor() {
16
- super(...arguments), this.hovering$ = new y(!1), this.pressing$ = new y(!1), this.active$ = new y(!1), this.icon = "", this.label = "", this.value = "", this.badge = "", this.badgeVariant = "error", this.showLabel = !1, this.disabled = !1, this.nested = !1, this.group = !1, this.showRipple = !1;
16
+ super(...arguments), this.hovering$ = new g(!1), this.pressing$ = new g(!1), this.active$ = new g(!1), this.icon = "", this.label = "", this.value = "", this.badge = "", this.badgeVariant = "error", this.showLabel = !1, this.disabled = !1, this.nested = !1, this.group = !1, this.showRipple = !1;
17
17
  }
18
18
  get active() {
19
19
  return this.active$.value;
@@ -28,9 +28,9 @@ let l = class extends $() {
28
28
  this.active = e;
29
29
  }
30
30
  connectedCallback() {
31
- super.connectedCallback(), m(v(this, "mouseenter").pipe(p(() => this.hovering$.next(!0))), v(this, "mouseleave").pipe(p(() => this.hovering$.next(!1)))).pipe(f(this.disconnecting)).subscribe(), m(v(this, "mousedown").pipe(p(() => this.pressing$.next(!0))), v(this, "mouseup").pipe(p(() => this.pressing$.next(!1))), v(this, "mouseleave").pipe(p(() => this.pressing$.next(!1)))).pipe(f(this.disconnecting)).subscribe(), this.pressing$.pipe(p((e) => {
31
+ super.connectedCallback(), m(v(this, "mouseenter").pipe(d(() => this.hovering$.next(!0))), v(this, "mouseleave").pipe(d(() => this.hovering$.next(!1)))).pipe(f(this.disconnecting)).subscribe(), m(v(this, "mousedown").pipe(d(() => this.pressing$.next(!0))), v(this, "mouseup").pipe(d(() => this.pressing$.next(!1))), v(this, "mouseleave").pipe(d(() => this.pressing$.next(!1)))).pipe(f(this.disconnecting)).subscribe(), this.pressing$.pipe(d((e) => {
32
32
  e && !this.disabled && (this.showRipple = !0);
33
- }), k(600), p(() => this.showRipple = !1), f(this.disconnecting)).subscribe(), this.active$.pipe(x(), p((e) => {
33
+ }), k(600), d(() => this.showRipple = !1), f(this.disconnecting)).subscribe(), this.active$.pipe(x(), d((e) => {
34
34
  this.requestUpdate(), this.setAttribute("aria-selected", String(e)), this.setAttribute("tabindex", e ? "0" : "-1");
35
35
  }), f(this.disconnecting)).subscribe(), this.setAttribute("role", "listitem"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", this.active ? "0" : "-1");
36
36
  }
@@ -45,7 +45,7 @@ let l = class extends $() {
45
45
  this.disabled || e.key !== "Enter" && e.key !== " " || (e.preventDefault(), this.click());
46
46
  }
47
47
  render() {
48
- const e = !!this.querySelector('[slot="icon"]'), t = this.querySelector('[slot="badge"]'), i = this.classMap({ "flex flex-col items-center justify-center": !0, "min-h-14 w-full": !0, "py-3": !0, "gap-1": !0, "rounded-lg": !0, "cursor-pointer": !0, relative: !0, "select-none": !0, "box-border": !0, "text-surface-onVariant": !this.active, "text-secondary-onContainer": this.active, "hover:bg-surface-containerHighest": !0, "transition-all duration-150 ease-out": !0, "pointer-events-none opacity-38": this.disabled, "[&>.ripple]:scale-100": this.showRipple, "min-h-12 pl-8": this.nested, "mb-2 after:absolute after:bottom-[-4px] after:left-3 after:right-3 after:h-px after:bg-outline-variant after:opacity-12": this.group }), s = this.classMap({ "flex items-center justify-center": !0, "w-auto min-w-14 h-8": !0, "flex-shrink-0 relative z-10": !0 }), c = this.classMap({ "absolute top-1/2 left-1/2 opacity-50": !0, "w-14 h-8": !0, "rounded-lg": !0, "bg-secondary-container": !0, "transition-transform duration-150 ease-out": !0, "z-0": !0, "scale-0 -translate-x-1/2 -translate-y-1/2": !this.active, "scale-100 -translate-x-1/2 -translate-y-1/2": this.active }), n = this.classMap({ "text-2xl leading-none": !this.nested, "text-xl leading-none": this.nested, "relative z-10": !0 }), d = this.classMap({ "text-xs font-medium leading-4": !0, "text-center": !0, "overflow-hidden text-ellipsis whitespace-nowrap": !0, "z-10 max-w-14 px-1": !0, hidden: !this.showLabel && !this.label }), A = this.classMap({ "absolute top-2 right-3": !0, "min-w-4 h-4": !0, "rounded-sm": !0, "text-xs font-semibold": !0, "flex items-center justify-center": !0, "px-1 box-border z-20": !0, "animate-pulse": !0, "bg-error-default text-error-on": this.badgeVariant === "error", "bg-primary-default text-primary-on": this.badgeVariant === "primary", "bg-secondary-default text-secondary-on": this.badgeVariant === "secondary" }), I = this.classMap({ "absolute inset-0 rounded-lg overflow-hidden z-0": !0, 'before:content-[""] before:absolute before:top-1/2 before:left-1/2': !0, "before:w-0 before:h-0 before:rounded-full": !0, "before:bg-current before:opacity-0": !0, "before:-translate-x-1/2 before:-translate-y-1/2": !0, "before:transition-all before:duration-300": !0, "before:w-[200%] before:h-[200%] before:opacity-12": this.showRipple });
48
+ const e = !!this.querySelector('[slot="icon"]'), t = this.querySelector('[slot="badge"]'), i = this.classMap({ "flex flex-col items-center justify-center": !0, "min-h-14 w-full": !0, "py-3": !0, "gap-1": !0, "rounded-lg": !0, "cursor-pointer": !0, relative: !0, "select-none": !0, "box-border": !0, "text-surface-onVariant": !this.active, "text-secondary-onContainer": this.active, "hover:bg-surface-containerHighest": !0, "transition-all duration-150 ease-out": !0, "pointer-events-none opacity-38": this.disabled, "[&>.ripple]:scale-100": this.showRipple, "min-h-12 pl-8": this.nested, "mb-2 after:absolute after:bottom-[-4px] after:left-3 after:right-3 after:h-px after:bg-outline-variant after:opacity-12": this.group }), s = this.classMap({ "flex items-center justify-center": !0, "w-auto min-w-14 h-8": !0, "flex-shrink-0 relative z-10": !0 }), c = this.classMap({ "absolute top-1/2 left-1/2 opacity-50": !0, "w-14 h-8": !0, "rounded-lg": !0, "bg-secondary-container": !0, "transition-transform duration-150 ease-out": !0, "z-0": !0, "scale-0 -translate-x-1/2 -translate-y-1/2": !this.active, "scale-100 -translate-x-1/2 -translate-y-1/2": this.active }), n = this.classMap({ "text-2xl leading-none": !this.nested, "text-xl leading-none": this.nested, "relative z-10": !0 }), p = this.classMap({ "text-xs font-medium leading-4": !0, "text-center": !0, "overflow-hidden text-ellipsis whitespace-nowrap": !0, "z-10 max-w-14 px-1": !0, hidden: !this.showLabel && !this.label }), A = this.classMap({ "absolute top-2 right-3": !0, "min-w-4 h-4": !0, "rounded-sm": !0, "text-xs font-semibold": !0, "flex items-center justify-center": !0, "px-1 box-border z-20": !0, "animate-pulse": !0, "bg-error-default text-error-on": this.badgeVariant === "error", "bg-primary-default text-primary-on": this.badgeVariant === "primary", "bg-secondary-default text-secondary-on": this.badgeVariant === "secondary" }), I = this.classMap({ "absolute inset-0 rounded-lg overflow-hidden z-0": !0, 'before:content-[""] before:absolute before:top-1/2 before:left-1/2': !0, "before:w-0 before:h-0 before:rounded-full": !0, "before:bg-current before:opacity-0": !0, "before:-translate-x-1/2 before:-translate-y-1/2": !0, "before:transition-all before:duration-300": !0, "before:w-[200%] before:h-[200%] before:opacity-12": this.showRipple });
49
49
  return u`
50
50
  <div
51
51
  class=${i}
@@ -69,7 +69,7 @@ let l = class extends $() {
69
69
  `))}
70
70
  </div>
71
71
 
72
- ${b(this.label, () => u`<span class=${d} part="label">${this.label}</span>`)}
72
+ ${b(this.label, () => u`<span class=${p} part="label">${this.label}</span>`)}
73
73
 
74
74
  ${b(this.badge, () => u`
75
75
  ${b(t, () => u`<slot name="badge"></slot>`, () => u`
@@ -101,14 +101,14 @@ let l = class extends $() {
101
101
  `;
102
102
  }
103
103
  };
104
- o([a({ type: String })], l.prototype, "icon", 2), o([a({ type: String })], l.prototype, "label", 2), o([a({ type: String })], l.prototype, "value", 2), o([a({ type: Boolean, reflect: !0 })], l.prototype, "active", 1), o([a({ type: Boolean, reflect: !0 })], l.prototype, "selected", 1), o([a({ type: String })], l.prototype, "badge", 2), o([a({ type: String })], l.prototype, "badgeVariant", 2), o([a({ type: Boolean, attribute: "show-label" })], l.prototype, "showLabel", 2), o([a({ type: Boolean, reflect: !0 })], l.prototype, "disabled", 2), o([a({ type: Boolean, reflect: !0 })], l.prototype, "nested", 2), o([a({ type: Boolean, reflect: !0 })], l.prototype, "group", 2), o([g()], l.prototype, "showRipple", 2), l = o([w("schmancy-navigation-rail-item")], l);
105
- var C = Object.defineProperty, M = Object.getOwnPropertyDescriptor, h = (e, t, i, s) => {
106
- for (var c, n = s > 1 ? void 0 : s ? M(t, i) : t, d = e.length - 1; d >= 0; d--) (c = e[d]) && (n = (s ? c(t, i, n) : c(n)) || n);
107
- return s && n && C(t, i, n), n;
104
+ o([a({ type: String })], l.prototype, "icon", 2), o([a({ type: String })], l.prototype, "label", 2), o([a({ type: String })], l.prototype, "value", 2), o([a({ type: Boolean, reflect: !0 })], l.prototype, "active", 1), o([a({ type: Boolean, reflect: !0 })], l.prototype, "selected", 1), o([a({ type: String })], l.prototype, "badge", 2), o([a({ type: String })], l.prototype, "badgeVariant", 2), o([a({ type: Boolean, attribute: "show-label" })], l.prototype, "showLabel", 2), o([a({ type: Boolean, reflect: !0 })], l.prototype, "disabled", 2), o([a({ type: Boolean, reflect: !0 })], l.prototype, "nested", 2), o([a({ type: Boolean, reflect: !0 })], l.prototype, "group", 2), o([y()], l.prototype, "showRipple", 2), l = o([w("schmancy-navigation-rail-item")], l);
105
+ var E = Object.defineProperty, M = Object.getOwnPropertyDescriptor, h = (e, t, i, s) => {
106
+ for (var c, n = s > 1 ? void 0 : s ? M(t, i) : t, p = e.length - 1; p >= 0; p--) (c = e[p]) && (n = (s ? c(t, i, n) : c(n)) || n);
107
+ return s && n && E(t, i, n), n;
108
108
  };
109
109
  let r = class extends $() {
110
110
  constructor() {
111
- super(...arguments), this.activeIndex$ = new y(-1), this._activeValue = "", this.labelVisibility = "all", this.alignment = "top", this.showTooltips = !0, this.keyboardNavigation = !0, this.expanded = !1, this.focusedIndex = -1, this.isFullscreen = !1;
111
+ super(...arguments), this.activeIndex$ = new g(-1), this._activeValue = "", this.labelVisibility = "all", this.alignment = "top", this.showTooltips = !0, this.keyboardNavigation = !0, this.expanded = !1, this.focusedIndex = -1, this.hasHeaderContent = !1, this.isFullscreen = !1;
112
112
  }
113
113
  get activeIndex() {
114
114
  return this.activeIndex$.value;
@@ -126,7 +126,7 @@ let r = class extends $() {
126
126
  return this.allElements.filter((e) => e.tagName === "SCHMANCY-NAVIGATION-RAIL-ITEM");
127
127
  }
128
128
  connectedCallback() {
129
- super.connectedCallback(), this.keyboardNavigation && this.addEventListener("keydown", this.handleKeyDown), this.activeIndex$.pipe(x(), p((e) => this.updateActiveStates(e)), f(this.disconnecting)).subscribe(), v(window, "fullscreen").pipe(p((e) => {
129
+ super.connectedCallback(), this.keyboardNavigation && this.addEventListener("keydown", this.handleKeyDown), this.activeIndex$.pipe(x(), d((e) => this.updateActiveStates(e)), f(this.disconnecting)).subscribe(), v(window, "fullscreen").pipe(d((e) => {
130
130
  const t = e;
131
131
  this.isFullscreen = t.detail;
132
132
  }), f(this.disconnecting)).subscribe(), this.setupNavigateListener(), this.updateLabelVisibility(), this.setAttribute("role", "navigation"), this.setAttribute("aria-label", "Main navigation");
@@ -202,16 +202,16 @@ let r = class extends $() {
202
202
  e.stopPropagation(), this.dispatchEvent(new CustomEvent("menu-click", { bubbles: !0, composed: !0 }));
203
203
  }
204
204
  render() {
205
- const e = this.classMap({ "flex flex-col": !0, "h-full": !0, "box-border relative overflow-visible": !0, "z-10 hover:z-[100]": !0, "w-20": !this.isFullscreen, "w-0": this.isFullscreen, "transition-all duration-300 ease-emphasized": !0, "opacity-100": !this.isFullscreen, "opacity-0 pointer-events-none": this.isFullscreen, "overflow-hidden": this.isFullscreen }), t = this.classMap({ "flex flex-col h-full": !0, "box-border relative": !0, "py-2": !0, "bg-surface-default text-surface-on": !0, "transition-all duration-300 ease-emphasized": !0, "w-20": !this.expanded, "px-3": !this.expanded, "w-60": this.expanded, "px-4": this.expanded, "shadow-lg": this.expanded }), i = this.classMap({ "flex flex-col items-center gap-1 mb-2": !0, '[&_[slot="fab"]]:mb-2': !0, '[&_[slot="menu"]]:mb-3': !0 }), s = this.classMap({ "flex-1 flex flex-col gap-3": !0, "min-h-0": !0, "justify-start": this.alignment === "top", "justify-center": this.alignment === "center", "justify-end": this.alignment === "bottom" }), c = this.classMap({ "flex flex-col items-center gap-1 mt-auto pt-2": !0 });
205
+ const e = this.classMap({ "flex flex-col": !0, "h-full": !0, "box-border relative overflow-visible": !0, "z-10 hover:z-[100]": !0, "w-20": !this.isFullscreen, "w-0": this.isFullscreen, "transition-all duration-300 ease-emphasized": !0, "opacity-100": !this.isFullscreen, "opacity-0 pointer-events-none": this.isFullscreen, "overflow-hidden": this.isFullscreen }), t = this.classMap({ "flex flex-col h-full": !0, "box-border relative": !0, "py-2": !0, "bg-surface-default text-surface-on": !0, "transition-all duration-300 ease-emphasized": !0, "w-20": !this.expanded, "px-3": !this.expanded, "w-60": this.expanded, "px-4": this.expanded, "shadow-lg": this.expanded }), i = this.classMap({ "flex flex-col items-center gap-1": !0, hidden: !this.hasHeaderContent }), s = this.classMap({ "flex-1 flex flex-col gap-3": !0, "min-h-0": !0, "justify-start": this.alignment === "top", "justify-center": this.alignment === "center", "justify-end": this.alignment === "bottom" }), c = this.classMap({ "flex flex-col items-center gap-1 mt-auto pt-2": !0 });
206
206
  return u`
207
207
  <div
208
208
  class=${e}
209
209
  >
210
210
  <div class=${t} part="rail">
211
211
  <div class=${i} part="header">
212
- <slot name="fab" @click=${this.handleFabClick}></slot>
213
- <slot name="menu" @click=${this.handleMenuClick}></slot>
214
- <slot name="header"></slot>
212
+ <slot name="fab" @click=${this.handleFabClick} @slotchange=${this.handleHeaderSlotChange}></slot>
213
+ <slot name="menu" @click=${this.handleMenuClick} @slotchange=${this.handleHeaderSlotChange}></slot>
214
+ <slot name="header" @slotchange=${this.handleHeaderSlotChange}></slot>
215
215
  </div>
216
216
 
217
217
  <nav class=${s} part="nav" role="list">
@@ -235,15 +235,22 @@ let r = class extends $() {
235
235
  }
236
236
  });
237
237
  }
238
+ handleHeaderSlotChange() {
239
+ const e = this.shadowRoot?.querySelector('[part="header"]');
240
+ if (e) {
241
+ const t = e.querySelectorAll("slot");
242
+ this.hasHeaderContent = Array.from(t).some((i) => i.assignedNodes({ flatten: !0 }).length > 0);
243
+ }
244
+ }
238
245
  handleSlotChange() {
239
246
  this.updateLabelVisibility(), this.updateActiveStates(this.activeIndex), this.navigationItems.forEach((e, t) => {
240
247
  e.setAttribute("role", "listitem"), e.hasAttribute("tabindex") || e.setAttribute("tabindex", t === this.activeIndex ? "0" : "-1");
241
248
  });
242
249
  }
243
250
  };
244
- h([a({ type: Number })], r.prototype, "activeIndex", 1), h([a({ type: String })], r.prototype, "activeValue", 1), h([a({ type: String, attribute: "label-visibility", reflect: !0 })], r.prototype, "labelVisibility", 2), h([a({ type: String, reflect: !0 })], r.prototype, "alignment", 2), h([a({ type: Boolean })], r.prototype, "showTooltips", 2), h([a({ type: Boolean })], r.prototype, "keyboardNavigation", 2), h([a({ type: Boolean, reflect: !0 })], r.prototype, "expanded", 2), h([g()], r.prototype, "focusedIndex", 2), h([g()], r.prototype, "isFullscreen", 2), h([V({ flatten: !0 })], r.prototype, "allElements", 2), r = h([w("schmancy-navigation-rail")], r);
251
+ h([a({ type: Number })], r.prototype, "activeIndex", 1), h([a({ type: String })], r.prototype, "activeValue", 1), h([a({ type: String, attribute: "label-visibility", reflect: !0 })], r.prototype, "labelVisibility", 2), h([a({ type: String, reflect: !0 })], r.prototype, "alignment", 2), h([a({ type: Boolean })], r.prototype, "showTooltips", 2), h([a({ type: Boolean })], r.prototype, "keyboardNavigation", 2), h([a({ type: Boolean, reflect: !0 })], r.prototype, "expanded", 2), h([y()], r.prototype, "focusedIndex", 2), h([y()], r.prototype, "hasHeaderContent", 2), h([y()], r.prototype, "isFullscreen", 2), h([S({ flatten: !0 })], r.prototype, "allElements", 2), r = h([w("schmancy-navigation-rail")], r);
245
252
  export {
246
253
  l as S,
247
254
  r as a
248
255
  };
249
- //# sourceMappingURL=navigation-rail-DKXumnmt.js.map
256
+ //# sourceMappingURL=navigation-rail-Ctketq5a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation-rail-Ctketq5a.js","sources":["../src/navigation-rail/navigation-rail-item.ts","../src/navigation-rail/navigation-rail.ts"],"sourcesContent":["import { $LitElement } from '@mixins/index'\r\nimport { html, PropertyValues } from 'lit'\r\nimport { customElement, property, state } from 'lit/decorators.js'\r\nimport { when } from 'lit/directives/when.js'\r\nimport { BehaviorSubject, fromEvent, merge, takeUntil } from 'rxjs'\r\nimport { delay, distinctUntilChanged, tap } from 'rxjs/operators'\r\n\r\nexport type NavigationRailItemClickEvent = CustomEvent<{\r\n\ticon: string\r\n\tlabel: string\r\n\tvalue: string\r\n\tactive: boolean\r\n}>\r\n\r\n/**\r\n * Material Design 3 Navigation Rail Item Component\r\n * @see https://m3.material.io/components/navigation-rail/overview\r\n *\r\n * `<schmancy-navigation-rail-item>` component\r\n *\r\n * Individual navigation item for use within a navigation rail.\r\n * Represents a single destination or action with an icon and optional label.\r\n *\r\n * @element schmancy-navigation-rail-item\r\n * @slot icon - Slot for the navigation item icon (e.g., schmancy-icon)\r\n * @slot - Default slot for custom content\r\n * @slot badge - Custom badge content\r\n *\r\n * @fires navigate - When the item is clicked\r\n *\r\n * @csspart container - The main item container\r\n * @csspart indicator - The active indicator\r\n * @csspart icon - The icon container\r\n * @csspart label - The label text\r\n * @csspart badge - The badge element\r\n *\r\n * @example\r\n * <schmancy-navigation-rail-item\r\n * icon=\"home\"\r\n * label=\"Home\"\r\n * value=\"/home\"\r\n * badge=\"3\"\r\n * active>\r\n * </schmancy-navigation-rail-item>\r\n *\r\n * @example\r\n * <!-- Using 'selected' alias -->\r\n * <schmancy-navigation-rail-item\r\n * icon=\"settings\"\r\n * label=\"Settings\"\r\n * value=\"/settings\"\r\n * selected>\r\n * </schmancy-navigation-rail-item>\r\n *\r\n * @example\r\n * <!-- With custom icon -->\r\n * <schmancy-navigation-rail-item label=\"Dashboard\">\r\n * <schmancy-icon slot=\"icon\">dashboard</schmancy-icon>\r\n * </schmancy-navigation-rail-item>\r\n */\r\n@customElement('schmancy-navigation-rail-item')\r\nexport class SchmancyNavigationRailItem extends $LitElement() {\r\n\t// Observable state\r\n\tprivate hovering$ = new BehaviorSubject<boolean>(false)\r\n\tprivate pressing$ = new BehaviorSubject<boolean>(false)\r\n\tprivate active$ = new BehaviorSubject<boolean>(false)\r\n\r\n\t// Properties\r\n\t/**\r\n\t * Icon name (Material Symbols icon)\r\n\t */\r\n\t@property({ type: String })\r\n\ticon = ''\r\n\r\n\t/**\r\n\t * Label text for the navigation item\r\n\t */\r\n\t@property({ type: String })\r\n\tlabel = ''\r\n\r\n\t/**\r\n\t * Value associated with this item (useful for routing)\r\n\t */\r\n\t@property({ type: String })\r\n\tvalue = ''\r\n\r\n\t/**\r\n\t * Whether this item is currently active/selected\r\n\t * @default false\r\n\t */\r\n\t@property({ type: Boolean, reflect: true })\r\n\tget active() { return this.active$.value }\r\n\tset active(value: boolean) {\r\n\t\tthis.active$.next(value)\r\n\t}\r\n\r\n\t/**\r\n\t * Whether this item is currently selected (alias for active)\r\n\t * @default false\r\n\t */\r\n\t@property({ type: Boolean, reflect: true })\r\n\tget selected() { return this.active }\r\n\tset selected(value: boolean) { this.active = value }\r\n\r\n\t/**\r\n\t * Badge text or number to display\r\n\t */\r\n\t@property({ type: String })\r\n\tbadge = ''\r\n\r\n\t/**\r\n\t * Badge variant\r\n\t */\r\n\t@property({ type: String })\r\n\tbadgeVariant: 'error' | 'primary' | 'secondary' = 'error'\r\n\r\n\t/**\r\n\t * Whether to show the label (controlled by parent rail)\r\n\t * @default false\r\n\t */\r\n\t@property({ type: Boolean, attribute: 'show-label' })\r\n\tshowLabel = false\r\n\r\n\t/**\r\n\t * Whether this item is disabled\r\n\t * @default false\r\n\t */\r\n\t@property({ type: Boolean, reflect: true })\r\n\tdisabled = false\r\n\r\n\t/**\r\n\t * Whether this is a nested item (sub-navigation)\r\n\t * @default false\r\n\t */\r\n\t@property({ type: Boolean, reflect: true })\r\n\tnested = false\r\n\r\n\t/**\r\n\t * Whether this item represents a group separator\r\n\t * @default false\r\n\t */\r\n\t@property({ type: Boolean, reflect: true })\r\n\tgroup = false\r\n\r\n\t// State\r\n\t@state()\r\n\tprivate showRipple = false\r\n\r\n\r\n\tconnectedCallback() {\r\n\t\tsuper.connectedCallback()\r\n\r\n\t\t// Set up hover tracking\r\n\t\tmerge(\r\n\t\t\tfromEvent(this, 'mouseenter').pipe(tap(() => this.hovering$.next(true))),\r\n\t\t\tfromEvent(this, 'mouseleave').pipe(tap(() => this.hovering$.next(false)))\r\n\t\t).pipe(takeUntil(this.disconnecting)).subscribe()\r\n\r\n\t\t// Set up press tracking\r\n\t\tmerge(\r\n\t\t\tfromEvent(this, 'mousedown').pipe(tap(() => this.pressing$.next(true))),\r\n\t\t\tfromEvent(this, 'mouseup').pipe(tap(() => this.pressing$.next(false))),\r\n\t\t\tfromEvent(this, 'mouseleave').pipe(tap(() => this.pressing$.next(false)))\r\n\t\t).pipe(takeUntil(this.disconnecting)).subscribe()\r\n\r\n\r\n\t\t// Ripple effect with M3 timing\r\n\t\tthis.pressing$.pipe(\r\n\t\t\ttap(pressing => {\r\n\t\t\t\tif (pressing && !this.disabled) {\r\n\t\t\t\t\tthis.showRipple = true\r\n\t\t\t\t}\r\n\t\t\t}),\r\n\t\t\t// M3 standard ripple duration\r\n\t\t\tdelay(600),\r\n\t\t\ttap(() => this.showRipple = false),\r\n\t\t\ttakeUntil(this.disconnecting)\r\n\t\t).subscribe()\r\n\r\n\t\t// Subscribe to active state changes for reactive updates\r\n\t\tthis.active$.pipe(\r\n\t\t\tdistinctUntilChanged(),\r\n\t\t\ttap((isActive) => {\r\n\t\t\t\tthis.requestUpdate()\r\n\t\t\t\t// Update ARIA attributes reactively\r\n\t\t\t\tthis.setAttribute('aria-selected', String(isActive))\r\n\t\t\t\tthis.setAttribute('tabindex', isActive ? '0' : '-1')\r\n\t\t\t}),\r\n\t\t\ttakeUntil(this.disconnecting)\r\n\t\t).subscribe()\r\n\r\n\t\t// Set ARIA attributes\r\n\t\tthis.setAttribute('role', 'listitem')\r\n\t\tif (!this.hasAttribute('tabindex')) {\r\n\t\t\tthis.setAttribute('tabindex', this.active ? '0' : '-1')\r\n\t\t}\r\n\t}\r\n\r\n\tupdated(changedProperties: PropertyValues) {\r\n\t\tsuper.updated(changedProperties)\r\n\r\n\t\t// Active state is now handled by the BehaviorSubject subscription\r\n\t\t// So we don't need to duplicate it here\r\n\r\n\t\tif (changedProperties.has('disabled')) {\r\n\t\t\tthis.setAttribute('aria-disabled', String(this.disabled))\r\n\t\t}\r\n\r\n\t\tif (changedProperties.has('label')) {\r\n\t\t\tthis.setAttribute('aria-label', this.label)\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Handle click events\r\n\t */\r\n\tprivate handleClick(event: Event) {\r\n\t\tif (this.disabled) {\r\n\t\t\tevent.preventDefault()\r\n\t\t\tevent.stopPropagation()\r\n\t\t\treturn\r\n\t\t}\r\n\r\n\t\t// Emit navigate event with the value\r\n\t\tthis.dispatchEvent(new CustomEvent('navigate', {\r\n\t\t\tdetail: this.value || this.label,\r\n\t\t\tbubbles: true,\r\n\t\t\tcomposed: true\r\n\t\t}))\r\n\r\n\t\t// Visual feedback is handled by the ripple effect in connectedCallback\r\n\t\t// The parent rail will confirm and update via activeIndex\r\n\t}\r\n\r\n\t/**\r\n\t * Handle keyboard events\r\n\t */\r\n\tprivate handleKeyDown(event: KeyboardEvent) {\r\n\t\tif (this.disabled) return\r\n\r\n\t\tif (event.key === 'Enter' || event.key === ' ') {\r\n\t\t\tevent.preventDefault()\r\n\t\t\tthis.click()\r\n\t\t}\r\n\t}\r\n\r\n\tprotected render() {\r\n\t\tconst hasCustomIcon = !!this.querySelector('[slot=\"icon\"]')\r\n\t\tconst hasCustomBadge = this.querySelector('[slot=\"badge\"]')\r\n\r\n\t\t// M3 Navigation Rail Item classes with theme integration\r\n\t\tconst containerClasses = this.classMap({\r\n\t\t\t// Layout & Spacing (M3 56px height, 12px vertical padding)\r\n\t\t\t'flex flex-col items-center justify-center': true,\r\n\t\t\t'min-h-14 w-full': true, // min-h-14 = 56px\r\n\t\t\t'py-3': true, // py-3 = 12px top/bottom\r\n\t\t\t'gap-1': true, // gap-1 = 4px\r\n\r\n\t\t\t// M3 Shape & Interaction\r\n\t\t\t'rounded-lg': true, // M3 large corner radius\r\n\t\t\t'cursor-pointer': true,\r\n\t\t\t'relative': true,\r\n\t\t\t'select-none': true,\r\n\t\t\t'box-border': true,\r\n\r\n\t\t\t// Colors & States\r\n\t\t\t'text-surface-onVariant': !this.active,\r\n\t\t\t'text-secondary-onContainer': this.active,\r\n\t\t\t'hover:bg-surface-containerHighest': true,\r\n\r\n\t\t\t// Transitions (M3 emphasized motion)\r\n\t\t\t'transition-all duration-150 ease-out': true,\r\n\r\n\t\t\t// Disabled state\r\n\t\t\t'pointer-events-none opacity-38': this.disabled,\r\n\r\n\t\t\t// Active ripple effect\r\n\t\t\t'[&>.ripple]:scale-100': this.showRipple,\r\n\r\n\t\t\t// Nested item adjustments\r\n\t\t\t'min-h-12 pl-8': this.nested, // 48px height, 32px left padding for nested\r\n\r\n\t\t\t// Group separator\r\n\t\t\t'mb-2 after:absolute after:bottom-[-4px] after:left-3 after:right-3 after:h-px after:bg-outline-variant after:opacity-12': this.group,\r\n\t\t})\r\n\r\n\t\t// Icon container with active indicator\r\n\t\tconst iconContainerClasses = this.classMap({\r\n\t\t\t'flex items-center justify-center': true,\r\n\t\t\t'w-auto min-w-14 h-8': true, // 56px min-width, 32px height\r\n\t\t\t'flex-shrink-0 relative z-10': true,\r\n\t\t})\r\n\r\n\t\t// Active indicator behind icon\r\n\t\tconst indicatorClasses = this.classMap({\r\n\t\t\t'absolute top-1/2 left-1/2 opacity-50': true,\r\n\t\t\t'w-14 h-8': true, // 56px x 32px\r\n\t\t\t'rounded-lg': true, // M3 large corner radius\r\n\t\t\t'bg-secondary-container': true,\r\n\t\t\t'transition-transform duration-150 ease-out': true,\r\n\t\t\t'z-0': true,\r\n\t\t\t// Transform based on active state\r\n\t\t\t'scale-0 -translate-x-1/2 -translate-y-1/2': !this.active,\r\n\t\t\t'scale-100 -translate-x-1/2 -translate-y-1/2': this.active,\r\n\t\t})\r\n\r\n\t\t// Icon styling\r\n\t\tconst iconClasses = this.classMap({\r\n\t\t\t'text-2xl leading-none': !this.nested, // 24px icon for normal\r\n\t\t\t'text-xl leading-none': this.nested, // 20px icon for nested\r\n\t\t\t'relative z-10': true,\r\n\t\t\t// Material Symbols font variations handled via CSS custom properties\r\n\t\t})\r\n\r\n\t\t// Label styling\r\n\t\tconst labelClasses = this.classMap({\r\n\t\t\t'text-xs font-medium leading-4': true, // 12px, medium weight, 16px line height\r\n\t\t\t'text-center': true,\r\n\t\t\t'overflow-hidden text-ellipsis whitespace-nowrap': true,\r\n\t\t\t'z-10 max-w-14 px-1': true, // max 56px width, 4px horizontal padding\r\n\t\t\t'hidden': !this.showLabel && !this.label, // Hide if not shown or no label\r\n\t\t})\r\n\r\n\t\t// Badge styling with dynamic colors\r\n\t\tconst badgeClasses = this.classMap({\r\n\t\t\t'absolute top-2 right-3': true, // 8px from top, 12px from right\r\n\t\t\t'min-w-4 h-4': true, // 16px min-width and height\r\n\t\t\t'rounded-sm': true, // M3 small corner radius\r\n\t\t\t'text-xs font-semibold': true, // 11px, 600 weight\r\n\t\t\t'flex items-center justify-center': true,\r\n\t\t\t'px-1 box-border z-20': true, // 4px padding\r\n\t\t\t'animate-pulse': true, // Pulse animation\r\n\t\t\t// Dynamic background based on variant\r\n\t\t\t'bg-error-default text-error-on': this.badgeVariant === 'error',\r\n\t\t\t'bg-primary-default text-primary-on': this.badgeVariant === 'primary',\r\n\t\t\t'bg-secondary-default text-secondary-on': this.badgeVariant === 'secondary',\r\n\t\t})\r\n\r\n\t\t// Ripple effect classes\r\n\t\tconst rippleClasses = this.classMap({\r\n\t\t\t'absolute inset-0 rounded-lg overflow-hidden z-0': true,\r\n\t\t\t'before:content-[\"\"] before:absolute before:top-1/2 before:left-1/2': true,\r\n\t\t\t'before:w-0 before:h-0 before:rounded-full': true,\r\n\t\t\t'before:bg-current before:opacity-0': true,\r\n\t\t\t'before:-translate-x-1/2 before:-translate-y-1/2': true,\r\n\t\t\t'before:transition-all before:duration-300': true,\r\n\t\t\t// Active state\r\n\t\t\t'before:w-[200%] before:h-[200%] before:opacity-12': this.showRipple,\r\n\t\t})\r\n\r\n\t\treturn html`\r\n\t\t\t<div\r\n\t\t\t\tclass=${containerClasses}\r\n\t\t\t\tpart=\"container\"\r\n\t\t\t\t@click=${this.handleClick}\r\n\t\t\t\t@keydown=${this.handleKeyDown}\r\n\t\t\t\tstyle=\"outline: ${this.matches(':focus-visible') ? '2px solid var(--schmancy-sys-color-primary-default)' : 'none'}; outline-offset: 2px;\"\r\n\t\t\t>\r\n\t\t\t\t<span class=${rippleClasses} aria-hidden=\"true\"></span>\r\n\r\n\t\t\t\t<div class=${iconContainerClasses} part=\"icon\">\r\n\t\t\t\t\t\t\t<span class=${indicatorClasses} part=\"indicator\" aria-hidden=\"true\"></span>\r\n\t\t\t\t\t\t\t${when(hasCustomIcon,\r\n\t\t\t\t\t\t\t\t() => html`<slot name=\"icon\"></slot>`,\r\n\t\t\t\t\t\t\t\t() => when(this.icon,\r\n\t\t\t\t\t\t\t\t\t() => html`\r\n\t\t\t\t\t\t\t\t\t\t<span\r\n\t\t\t\t\t\t\t\t\t\t\tclass=${iconClasses}\r\n\t\t\t\t\t\t\t\t\t\t\tpart=\"icon-text\"\r\n\t\t\t\t\t\t\t\t\t\t\tstyle=\"font-family: 'Material Symbols Outlined'; font-variation-settings: 'FILL' ${this.active ? '1' : '0'}, 'wght' 400, 'GRAD' 0, 'opsz' ${this.nested ? '20' : '24'};\"\r\n\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t${this.icon}\r\n\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t${when(this.label,\r\n\t\t\t\t\t\t\t() => html`<span class=${labelClasses} part=\"label\">${this.label}</span>`\r\n\t\t\t\t\t\t)}\r\n\r\n\t\t\t\t${when(this.badge,\r\n\t\t\t\t\t() => html`\r\n\t\t\t\t\t\t${when(hasCustomBadge,\r\n\t\t\t\t\t\t\t() => html`<slot name=\"badge\"></slot>`,\r\n\t\t\t\t\t\t\t() => html`\r\n\t\t\t\t\t\t\t\t<span\r\n\t\t\t\t\t\t\t\t\tclass=${badgeClasses}\r\n\t\t\t\t\t\t\t\t\tpart=\"badge\"\r\n\t\t\t\t\t\t\t\t\taria-label=\"${this.badge} notifications\"\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t${this.badge}\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t`\r\n\t\t\t\t\t\t)}\r\n\t\t\t\t\t`\r\n\t\t\t\t)}\r\n\r\n\t\t\t\t<!-- Tooltip shown via title attribute -->\r\n\t\t\t\t${when(this.hasAttribute('title'),\r\n\t\t\t\t\t() => html`\r\n\t\t\t\t\t\t<div class=\"\r\n\t\t\t\t\t\t\tabsolute left-[calc(100%+8px)] top-1/2 -translate-y-1/2\r\n\t\t\t\t\t\t\tbg-surface-inverse text-surface-inverseOn\r\n\t\t\t\t\t\t\tpx-2 py-1 rounded-sm text-xs whitespace-nowrap\r\n\t\t\t\t\t\t\tz-[1000] pointer-events-none opacity-0\r\n\t\t\t\t\t\t\thover:opacity-100 hover:translate-x-0\r\n\t\t\t\t\t\t\ttransition-all duration-150 ease-out\r\n\t\t\t\t\t\t\t-translate-x-1\r\n\t\t\t\t\t\t\" aria-hidden=\"true\">\r\n\t\t\t\t\t\t\t${this.getAttribute('title')}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t`\r\n\t\t\t\t)}\r\n\t\t\t</div>\r\n\t\t`\r\n\t}\r\n}\r\n\r\ndeclare global {\r\n\tinterface HTMLElementTagNameMap {\r\n\t\t'schmancy-navigation-rail-item': SchmancyNavigationRailItem\r\n\t}\r\n}","import { $LitElement } from '@mixins/index'\r\nimport { html, PropertyValues } from 'lit'\r\nimport { customElement, property, queryAssignedElements, state } from 'lit/decorators.js'\r\nimport { BehaviorSubject, fromEvent, takeUntil } from 'rxjs'\r\nimport { distinctUntilChanged, tap } from 'rxjs/operators'\r\nimport { SchmancyNavigationRailItem } from './navigation-rail-item'\r\n\r\nexport type NavigateEvent = CustomEvent<string>\r\n\r\nexport type NavigationRailMenuClickEvent = CustomEvent<void>\r\n\r\nexport type NavigationRailFabClickEvent = CustomEvent<void>\r\n\r\n\r\nexport type LabelVisibility = 'all' | 'selected' | 'none'\r\n\r\n/**\r\n * Material Design 3 Navigation Rail Component\r\n * @see https://m3.material.io/components/navigation-rail/overview\r\n *\r\n * `<schmancy-navigation-rail>` component\r\n *\r\n * A Material Design 3 vertical navigation component positioned on the left side of an application.\r\n * Navigation rails provide access to between 3-7 primary destinations with a compact footprint.\r\n * Automatically hides in fullscreen mode when triggered via schmancyTheme.next({ fullscreen: true }).\r\n *\r\n * @element schmancy-navigation-rail\r\n * @slot fab - Slot for a floating action button at the top\r\n * @slot menu - Slot for a menu icon or button below the FAB\r\n * @slot header - Custom header content slot\r\n * @slot footer - Custom footer content slot\r\n * @slot - Default slot for navigation rail items\r\n *\r\n * @fires navigate - When a navigation item is selected\r\n * @fires menu-click - When the menu button is clicked\r\n * @fires fab-click - When the FAB is clicked\r\n *\r\n * @csspart rail - The main rail container\r\n * @csspart header - The header section\r\n * @csspart nav - The navigation items container\r\n * @csspart footer - The footer section\r\n *\r\n * @example\r\n * <schmancy-navigation-rail activeIndex=\"0\">\r\n * <schmancy-button slot=\"fab\" variant=\"filled\" aria-label=\"Compose\">\r\n * <schmancy-icon>add</schmancy-icon>\r\n * </schmancy-button>\r\n * <schmancy-button slot=\"menu\" variant=\"text\" aria-label=\"Menu\">\r\n * <schmancy-icon>menu</schmancy-icon>\r\n * </schmancy-button>\r\n * <schmancy-navigation-rail-item icon=\"home\" label=\"Home\"></schmancy-navigation-rail-item>\r\n * <schmancy-navigation-rail-item icon=\"search\" label=\"Search\"></schmancy-navigation-rail-item>\r\n * <schmancy-navigation-rail-item icon=\"favorite\" label=\"Favorites\" badge=\"3\"></schmancy-navigation-rail-item>\r\n * <schmancy-navigation-rail-item icon=\"settings\" label=\"Settings\"></schmancy-navigation-rail-item>\r\n * </schmancy-navigation-rail>\r\n */\r\n@customElement('schmancy-navigation-rail')\r\nexport class SchmancyNavigationRail extends $LitElement() {\r\n\t// Observable state\r\n\tprivate activeIndex$ = new BehaviorSubject<number>(-1)\r\n\r\n\t// Properties\r\n\t/**\r\n\t * The currently active item index\r\n\t * @default -1\r\n\t */\r\n\t@property({ type: Number })\r\n\tget activeIndex() {\r\n\t\treturn this.activeIndex$.value\r\n\t}\r\n\tset activeIndex(value: number) {\r\n\t\tthis.activeIndex$.next(value)\r\n\t}\r\n\r\n\t/**\r\n\t * The currently active item value (for programmatic selection)\r\n\t */\r\n\t@property({ type: String })\r\n\tget activeValue() {\r\n\t\treturn this._activeValue\r\n\t}\r\n\tset activeValue(value: string) {\r\n\t\tthis._activeValue = value\r\n\t\tthis.updateActiveByValue(value)\r\n\t}\r\n\tprivate _activeValue = ''\r\n\r\n\t/**\r\n\t * When to show labels for navigation items\r\n\t * 'all' - Always show labels for all items\r\n\t * 'selected' - Only show label for selected item\r\n\t * 'none' - Never show labels\r\n\t * @default 'all'\r\n\t */\r\n\t@property({ type: String, attribute: 'label-visibility', reflect: true })\r\n\tlabelVisibility: LabelVisibility = 'all'\r\n\r\n\t/**\r\n\t * Alignment of navigation items\r\n\t * @default 'top'\r\n\t */\r\n\t@property({ type: String, reflect: true })\r\n\talignment: 'top' | 'center' | 'bottom' = 'top'\r\n\r\n\t/**\r\n\t * Show tooltips when labels are hidden\r\n\t * @default true\r\n\t */\r\n\t@property({ type: Boolean })\r\n\tshowTooltips = true\r\n\r\n\t/**\r\n\t * Enable keyboard navigation\r\n\t * @default true\r\n\t */\r\n\t@property({ type: Boolean })\r\n\tkeyboardNavigation = true\r\n\r\n\t/**\r\n\t * Whether the navigation rail is expanded\r\n\t * @default false\r\n\t */\r\n\t@property({ type: Boolean, reflect: true })\r\n\texpanded = false\r\n\r\n\r\n\t// State\r\n\t@state()\r\n\tprivate focusedIndex = -1\r\n\r\n\t@state()\r\n\tprivate hasHeaderContent = false\r\n\r\n\t@state()\r\n\tprivate isFullscreen = false\r\n\r\n\t// Queries\r\n\r\n\t@queryAssignedElements({ flatten: true })\r\n\tprivate allElements!: Element[]\r\n\r\n\tprivate get navigationItems(): SchmancyNavigationRailItem[] {\r\n\t\treturn this.allElements.filter(el => el.tagName === 'SCHMANCY-NAVIGATION-RAIL-ITEM') as SchmancyNavigationRailItem[]\r\n\t}\r\n\r\n\tconnectedCallback() {\r\n\t\tsuper.connectedCallback()\r\n\r\n\t\t// Set up keyboard navigation if enabled\r\n\t\tif (this.keyboardNavigation) {\r\n\t\t\tthis.addEventListener('keydown', this.handleKeyDown)\r\n\t\t}\r\n\r\n\t\t// Subscribe to active index changes with distinct values only\r\n\t\tthis.activeIndex$\r\n\t\t\t.pipe(\r\n\t\t\t\tdistinctUntilChanged(),\r\n\t\t\t\ttap(index => this.updateActiveStates(index)),\r\n\t\t\t\ttakeUntil(this.disconnecting),\r\n\t\t\t)\r\n\t\t\t.subscribe()\r\n\r\n\t\t// Listen to fullscreen events\r\n\t\tfromEvent(window, 'fullscreen').pipe(\r\n\t\t\ttap((event: Event) => {\r\n\t\t\t\tconst customEvent = event as CustomEvent\r\n\t\t\t\tthis.isFullscreen = customEvent.detail\r\n\t\t\t}),\r\n\t\t\ttakeUntil(this.disconnecting)\r\n\t\t).subscribe()\r\n\r\n\t\t// Listen for navigate events from child items\r\n\t\tthis.setupNavigateListener()\r\n\r\n\t\t// Set up label visibility\r\n\t\tthis.updateLabelVisibility()\r\n\r\n\t\t// Update ARIA attributes\r\n\t\tthis.setAttribute('role', 'navigation')\r\n\t\tthis.setAttribute('aria-label', 'Main navigation')\r\n\t}\r\n\r\n\tupdated(changedProperties: PropertyValues) {\r\n\t\tsuper.updated(changedProperties)\r\n\r\n\t\tif (changedProperties.has('labelVisibility')) {\r\n\t\t\tthis.updateLabelVisibility()\r\n\t\t}\r\n\r\n\t\tif (changedProperties.has('activeValue')) {\r\n\t\t\tthis.updateActiveByValue(this.activeValue)\r\n\t\t}\r\n\r\n\t\tif (changedProperties.has('expanded')) {\r\n\t\t\tthis.updateLabelVisibility()\r\n\t\t}\r\n\t}\r\n\r\n\tprivate updateActiveStates(index: number) {\r\n\t\tthis.navigationItems.forEach((item, i) => {\r\n\t\t\tconst isActive = i === index\r\n\t\t\titem.active = isActive\r\n\t\t\titem.setAttribute('aria-selected', String(isActive))\r\n\t\t\titem.setAttribute('tabindex', isActive ? '0' : '-1')\r\n\r\n\t\t\t// Update activeValue when index changes\r\n\t\t\tif (isActive) {\r\n\t\t\t\tthis._activeValue = item.value || item.label || ''\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\r\n\tprivate updateActiveByValue(value: string) {\r\n\t\tconst index = this.navigationItems.findIndex(item => item.getAttribute('value') === value || item.label === value)\r\n\t\tif (index >= 0) {\r\n\t\t\tthis.activeIndex = index\r\n\t\t}\r\n\t}\r\n\r\n\tprivate updateLabelVisibility() {\r\n\t\tthis.navigationItems.forEach((item, i) => {\r\n\t\t\tlet shouldShowLabel = false\r\n\r\n\t\t\t// M3 Spec: In expanded state, always show all labels\r\n\t\t\tif (this.expanded) {\r\n\t\t\t\tshouldShowLabel = true\r\n\t\t\t} else {\r\n\t\t\t\t// In collapsed state, respect labelVisibility setting\r\n\t\t\t\tshouldShowLabel =\r\n\t\t\t\t\tthis.labelVisibility === 'all' || (this.labelVisibility === 'selected' && i === this.activeIndex)\r\n\t\t\t}\r\n\r\n\t\t\titem.showLabel = shouldShowLabel\r\n\r\n\t\t\t// Add tooltips when labels are hidden (only in collapsed state)\r\n\t\t\tif (this.showTooltips && !shouldShowLabel && !this.expanded && item.label) {\r\n\t\t\t\titem.setAttribute('title', item.label)\r\n\t\t\t} else {\r\n\t\t\t\titem.removeAttribute('title')\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\r\n\t// Note: Hover-based label showing removed for M3 compliance\r\n\t// Labels are now controlled via labelVisibility property and expanded state\r\n\r\n\t/**\r\n\t * Programmatically expand the navigation rail\r\n\t */\r\n\texpand() {\r\n\t\tthis.expanded = true\r\n\t}\r\n\r\n\t/**\r\n\t * Programmatically collapse the navigation rail\r\n\t */\r\n\tcollapse() {\r\n\t\tthis.expanded = false\r\n\t}\r\n\r\n\t/**\r\n\t * Add a boat item to the navigation rail\r\n\t * @param config Configuration for the boat item\r\n\t * @returns The created or existing navigation rail item element\r\n\t */\r\n\tpublic addBoatItem(config: { id: string; title: string; icon?: string }) {\r\n\t\t// Check if item already exists\r\n\t\tconst existingItem = this.querySelector(`[value=\"${config.id}\"]`) as HTMLElement\r\n\t\tif (existingItem) {\r\n\t\t\t// Item already exists, just return it\r\n\t\t\treturn existingItem\r\n\t\t}\r\n\r\n\t\t// Create new item\r\n\t\tconst item = document.createElement('schmancy-navigation-rail-item')\r\n\t\titem.setAttribute('value', config.id)\r\n\t\titem.innerHTML = `\r\n\t\t\t<schmancy-icon slot=\"icon\">${config.icon || 'widgets'}</schmancy-icon>\r\n\t\t\t${config.title}\r\n\t\t`\r\n\t\t// Add to the rail before any footer content\r\n\t\tconst footer = this.querySelector('[slot=\"footer\"]')\r\n\t\tif (footer) {\r\n\t\t\tthis.insertBefore(item, footer)\r\n\t\t} else {\r\n\t\t\tthis.appendChild(item)\r\n\t\t}\r\n\t\treturn item\r\n\t}\r\n\r\n\t/**\r\n\t * Toggle the navigation rail between expanded and collapsed states\r\n\t */\r\n\ttoggle() {\r\n\t\tthis.expanded = !this.expanded\r\n\t}\r\n\r\n\r\n\tprivate handleKeyDown(event: KeyboardEvent) {\r\n\t\tconst items = this.navigationItems\r\n\t\tif (items.length === 0) return\r\n\r\n\t\tlet newIndex = this.focusedIndex >= 0 ? this.focusedIndex : this.activeIndex\r\n\r\n\t\tswitch (event.key) {\r\n\t\t\tcase 'ArrowDown':\r\n\t\t\t\tevent.preventDefault()\r\n\t\t\t\tnewIndex = (newIndex + 1) % items.length\r\n\t\t\t\tbreak\r\n\t\t\tcase 'ArrowUp':\r\n\t\t\t\tevent.preventDefault()\r\n\t\t\t\tnewIndex = newIndex <= 0 ? items.length - 1 : newIndex - 1\r\n\t\t\t\tbreak\r\n\t\t\tcase 'Home':\r\n\t\t\t\tevent.preventDefault()\r\n\t\t\t\tnewIndex = 0\r\n\t\t\t\tbreak\r\n\t\t\tcase 'End':\r\n\t\t\t\tevent.preventDefault()\r\n\t\t\t\tnewIndex = items.length - 1\r\n\t\t\t\tbreak\r\n\t\t\tcase 'Enter':\r\n\t\t\tcase ' ':\r\n\t\t\t\tevent.preventDefault()\r\n\t\t\t\tif (newIndex >= 0) {\r\n\t\t\t\t\titems[newIndex].click()\r\n\t\t\t\t}\r\n\t\t\t\treturn\r\n\t\t\tdefault:\r\n\t\t\t\treturn\r\n\t\t}\r\n\r\n\t\tthis.focusedIndex = newIndex\r\n\t\titems[newIndex].focus()\r\n\t}\r\n\r\n\tprivate handleFabClick(event: Event) {\r\n\t\tevent.stopPropagation()\r\n\t\tthis.dispatchEvent(\r\n\t\t\tnew CustomEvent('fab-click', {\r\n\t\t\t\tbubbles: true,\r\n\t\t\t\tcomposed: true,\r\n\t\t\t}),\r\n\t\t)\r\n\t}\r\n\r\n\tprivate handleMenuClick(event: Event) {\r\n\t\tevent.stopPropagation()\r\n\t\tthis.dispatchEvent(\r\n\t\t\tnew CustomEvent('menu-click', {\r\n\t\t\t\tbubbles: true,\r\n\t\t\t\tcomposed: true,\r\n\t\t\t}),\r\n\t\t)\r\n\t}\r\n\r\n\tprotected render() {\r\n\t\t// Host-level classes for the navigation rail\r\n\t\tconst hostClasses = this.classMap({\r\n\t\t\t// Layout & Structure - Fixed width to prevent layout shift\r\n\t\t\t'flex flex-col': true,\r\n\t\t\t'h-full': true,\r\n\t\t\t'box-border relative overflow-visible': true,\r\n\t\t\t'z-10 hover:z-[100]': true, // Base z-index, elevated on hover for overlay\r\n\r\n\t\t\t// Width - collapses to 0 when fullscreen\r\n\t\t\t'w-20': !this.isFullscreen, // w-20 = 80px fixed width (M3 spec: 80dp)\r\n\t\t\t'w-0': this.isFullscreen, // Collapse width to 0 in fullscreen\r\n\r\n\t\t\t// Visibility and transition\r\n\t\t\t'transition-all duration-300 ease-emphasized': true,\r\n\t\t\t'opacity-100': !this.isFullscreen,\r\n\t\t\t'opacity-0 pointer-events-none': this.isFullscreen,\r\n\t\t\t'overflow-hidden': this.isFullscreen, // Hide overflow when collapsed\r\n\t\t})\r\n\r\n\t\t// Rail container - programmatically controlled width\r\n\t\tconst railClasses = this.classMap({\r\n\t\t\t// Layout & Structure\r\n\t\t\t'flex flex-col h-full': true,\r\n\t\t\t'box-border relative': true,\r\n\t\t\t'py-2': true,\r\n\r\n\r\n\t\t\t// M3 Colors & Theme\r\n\t\t\t'bg-surface-default text-surface-on': true,\r\n\r\n\t\t\t// M3 Motion - smooth transitions for width and shadow\r\n\t\t\t'transition-all duration-300 ease-emphasized': true,\r\n\r\n\t\t\t// Collapsed state (default) - M3 standard 80px width\r\n\t\t\t'w-20': !this.expanded, // w-20 = 80px (M3 spec: 80dp)\r\n\t\t\t'px-3': !this.expanded, // px-3 = 12px (M3 spec: 12px to center 56px items)\r\n\r\n\t\t\t// Expanded state - M3 expanded width with shadow\r\n\t\t\t'w-60': this.expanded, // w-60 = 240px expanded width\r\n\t\t\t'px-4': this.expanded, // Larger padding when expanded\r\n\t\t\t'shadow-lg': this.expanded, // M3 elevation 3 shadow when expanded\r\n\t\t})\r\n\r\n\t\t// Header section classes - hidden when no content\r\n\t\tconst headerClasses = this.classMap({\r\n\t\t\t'flex flex-col items-center gap-1': true,\r\n\t\t\t'hidden': !this.hasHeaderContent,\r\n\t\t})\r\n\r\n\t\t// Navigation container classes with alignment\r\n\t\tconst navClasses = this.classMap({\r\n\t\t\t'flex-1 flex flex-col gap-3': true, // gap-3 = 12px (M3 spec: 12px item spacing)\r\n\t\t\t'min-h-0': true, // Allow flex shrinking and proper scroll container height calculation\r\n\t\t\t// Alignment variants\r\n\t\t\t'justify-start': this.alignment === 'top',\r\n\t\t\t'justify-center': this.alignment === 'center',\r\n\t\t\t'justify-end': this.alignment === 'bottom',\r\n\t\t})\r\n\r\n\t\t// Footer section classes\r\n\t\tconst footerClasses = this.classMap({\r\n\t\t\t'flex flex-col items-center gap-1 mt-auto pt-2': true,\r\n\t\t})\r\n\r\n\t\treturn html`\r\n\t\t\t<div\r\n\t\t\t\tclass=${hostClasses}\r\n\t\t\t>\r\n\t\t\t\t<div class=${railClasses} part=\"rail\">\r\n\t\t\t\t\t<div class=${headerClasses} part=\"header\">\r\n\t\t\t\t\t\t<slot name=\"fab\" @click=${this.handleFabClick} @slotchange=${this.handleHeaderSlotChange}></slot>\r\n\t\t\t\t\t\t<slot name=\"menu\" @click=${this.handleMenuClick} @slotchange=${this.handleHeaderSlotChange}></slot>\r\n\t\t\t\t\t\t<slot name=\"header\" @slotchange=${this.handleHeaderSlotChange}></slot>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<nav class=${navClasses} part=\"nav\" role=\"list\">\r\n\t\t\t\t\t\t<schmancy-scroll hide direction=\"vertical\">\r\n\t\t\t\t\t\t\t<slot @slotchange=${this.handleSlotChange}></slot>\r\n\t\t\t\t\t\t</schmancy-scroll>\r\n\t\t\t\t\t</nav>\r\n\r\n\t\t\t\t\t<div class=${footerClasses} part=\"footer\">\r\n\t\t\t\t\t\t<slot name=\"footer\"></slot>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t`\r\n\t}\r\n\r\n\tprivate setupNavigateListener() {\r\n\t\t// Listen for navigate events from child items\r\n\t\tthis.addEventListener('navigate', (e: Event) => {\r\n\t\t\tif (e instanceof CustomEvent) {\r\n\t\t\t\tconst value = e.detail\r\n\t\t\t\t// Find the item that dispatched the event and update active state\r\n\t\t\t\tconst itemIndex = this.navigationItems.findIndex(item => item.value === value || item.label === value)\r\n\t\t\t\tif (itemIndex >= 0) {\r\n\t\t\t\t\tthis.activeIndex = itemIndex\r\n\t\t\t\t\tthis._activeValue = value\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\r\n\tprivate handleHeaderSlotChange() {\r\n\t\t// Check if any header slot has content\r\n\t\tconst headerDiv = this.shadowRoot?.querySelector('[part=\"header\"]')\r\n\t\tif (headerDiv) {\r\n\t\t\tconst allSlots = headerDiv.querySelectorAll('slot')\r\n\t\t\tthis.hasHeaderContent = Array.from(allSlots).some(s =>\r\n\t\t\t\ts.assignedNodes({ flatten: true }).length > 0\r\n\t\t\t)\r\n\t\t}\r\n\t}\r\n\r\n\tprivate handleSlotChange() {\r\n\t\t// Update items when slot content changes\r\n\t\tthis.updateLabelVisibility()\r\n\t\tthis.updateActiveStates(this.activeIndex)\r\n\r\n\t\t// Set ARIA attributes on items\r\n\t\tthis.navigationItems.forEach((item, index) => {\r\n\t\t\titem.setAttribute('role', 'listitem')\r\n\t\t\tif (!item.hasAttribute('tabindex')) {\r\n\t\t\t\titem.setAttribute('tabindex', index === this.activeIndex ? '0' : '-1')\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n}\r\n\r\ndeclare global {\r\n\tinterface HTMLElementTagNameMap {\r\n\t\t'schmancy-navigation-rail': SchmancyNavigationRail\r\n\t}\r\n}\r\n"],"names":["SchmancyNavigationRailItem","$LitElement","constructor","super","arguments","this","hovering$","BehaviorSubject","pressing$","active$","icon","label","value","badge","badgeVariant","showLabel","disabled","nested","group","showRipple","active","next","selected","connectedCallback","merge","fromEvent","pipe","tap","takeUntil","disconnecting","subscribe","pressing","delay","distinctUntilChanged","isActive","requestUpdate","setAttribute","String","hasAttribute","changedProperties","updated","has","event","preventDefault","stopPropagation","dispatchEvent","CustomEvent","detail","bubbles","composed","key","click","render","hasCustomIcon","querySelector","hasCustomBadge","containerClasses","classMap","relative","iconContainerClasses","indicatorClasses","iconClasses","labelClasses","hidden","badgeClasses","rippleClasses","html","handleClick","handleKeyDown","matches","when","getAttribute","__decorateClass","property","type","prototype","Boolean","reflect","attribute","state","customElement","SchmancyNavigationRail","activeIndex$","_activeValue","labelVisibility","alignment","showTooltips","keyboardNavigation","expanded","focusedIndex","hasHeaderContent","isFullscreen","activeIndex","activeValue","updateActiveByValue","allElements","filter","el","tagName","addEventListener","index","updateActiveStates","window","customEvent","setupNavigateListener","updateLabelVisibility","navigationItems","forEach","item","i","findIndex","shouldShowLabel","removeAttribute","collapse","config","existingItem","id","document","createElement","innerHTML","title","footer","insertBefore","appendChild","items","length","newIndex","focus","hostClasses","railClasses","headerClasses","navClasses","footerClasses","handleFabClick","handleHeaderSlotChange","handleMenuClick","handleSlotChange","e","itemIndex","headerDiv","shadowRoot","allSlots","querySelectorAll","Array","from","some","s","assignedNodes","flatten","Number","queryAssignedElements"],"mappings":";;;;;;;;;;;;;AA6DO,IAAMA,IAAN,cAAyCC,EAAAA,EAAAA;AAAAA,EAAzC,cAAAC;AAAAC,UAAAA,GAAAC,SAAAA,GAENC,KAAQC,YAAY,IAAIC,EAAAA,EAAyB,GACjDF,KAAQG,YAAY,IAAID,EAAAA,EAAyB,GACjDF,KAAQI,UAAU,IAAIF,EAAAA,EAAyB,GAO/CF,KAAAK,OAAO,IAMPL,KAAAM,QAAQ,IAMRN,KAAAO,QAAQ,IAwBRP,KAAAQ,QAAQ,IAMRR,KAAAS,eAAkD,SAOlDT,KAAAU,YAAAA,IAOAV,KAAAW,WAAAA,IAOAX,KAAAY,SAAAA,IAOAZ,KAAAa,QAAAA,IAIAb,KAAQc,aAAAA;AAAAA,EAAa;AAAA,EAvDrB,IAAA,SAAIC;AAAW,WAAOf,KAAKI,QAAQG;AAAAA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A,CAAA,GAOAH,EAAA,CADCC,EAAS,EAAEC,MAAME,SAASC,SAAAA,GAAS,CAAA,CAAA,GAjExBI,EAkEZN,WAAA,YAAA,CAAA,GAKQH,EAAA,CADPO,EAAAA,CAAAA,GAtEWE,EAuEJN,WAAA,gBAAA,CAAA,GAGAH,EAAA,CADPO,EAAAA,CAAAA,GAzEWE,EA0EJN,WAAA,oBAAA,CAAA,GAGAH,EAAA,CADPO,EAAAA,CAAAA,GA5EWE,EA6EJN,WAAA,gBAAA,CAAA,GAKAH,EAAA,CADP8E,EAAsB,EAAEF,YAAS,CAAA,CAAA,GAjFtBnE,EAkFJN,WAAA,eAAA,CAAA,GAlFIM,IAANT,EAAA,CADNQ,EAAc,0BAAA,CAAA,GACFC,CAAAA;"}
@@ -1,4 +1,4 @@
1
- "use strict";const n=require("rxjs"),r=require("rxjs/operators");require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const s=require("lit/decorators.js");require("./tailwind.mixin-UijsBrYW.cjs");const b=require("./litElement.mixin-BVBdv0GP.cjs"),d=require("lit"),u=require("lit/directives/when.js");var m=Object.defineProperty,g=Object.getOwnPropertyDescriptor,o=(e,t,i,a)=>{for(var c,l=a>1?void 0:a?g(t,i):t,p=e.length-1;p>=0;p--)(c=e[p])&&(l=(a?c(t,i,l):c(l))||l);return a&&l&&m(t,i,l),l};exports.SchmancyNavigationRailItem=class extends b.$LitElement(){constructor(){super(...arguments),this.hovering$=new n.BehaviorSubject(!1),this.pressing$=new n.BehaviorSubject(!1),this.active$=new n.BehaviorSubject(!1),this.icon="",this.label="",this.value="",this.badge="",this.badgeVariant="error",this.showLabel=!1,this.disabled=!1,this.nested=!1,this.group=!1,this.showRipple=!1}get active(){return this.active$.value}set active(e){this.active$.next(e)}get selected(){return this.active}set selected(e){this.active=e}connectedCallback(){super.connectedCallback(),n.merge(n.fromEvent(this,"mouseenter").pipe(r.tap(()=>this.hovering$.next(!0))),n.fromEvent(this,"mouseleave").pipe(r.tap(()=>this.hovering$.next(!1)))).pipe(n.takeUntil(this.disconnecting)).subscribe(),n.merge(n.fromEvent(this,"mousedown").pipe(r.tap(()=>this.pressing$.next(!0))),n.fromEvent(this,"mouseup").pipe(r.tap(()=>this.pressing$.next(!1))),n.fromEvent(this,"mouseleave").pipe(r.tap(()=>this.pressing$.next(!1)))).pipe(n.takeUntil(this.disconnecting)).subscribe(),this.pressing$.pipe(r.tap(e=>{e&&!this.disabled&&(this.showRipple=!0)}),r.delay(600),r.tap(()=>this.showRipple=!1),n.takeUntil(this.disconnecting)).subscribe(),this.active$.pipe(r.distinctUntilChanged(),r.tap(e=>{this.requestUpdate(),this.setAttribute("aria-selected",String(e)),this.setAttribute("tabindex",e?"0":"-1")}),n.takeUntil(this.disconnecting)).subscribe(),this.setAttribute("role","listitem"),this.hasAttribute("tabindex")||this.setAttribute("tabindex",this.active?"0":"-1")}updated(e){super.updated(e),e.has("disabled")&&this.setAttribute("aria-disabled",String(this.disabled)),e.has("label")&&this.setAttribute("aria-label",this.label)}handleClick(e){if(this.disabled)return e.preventDefault(),void e.stopPropagation();this.dispatchEvent(new CustomEvent("navigate",{detail:this.value||this.label,bubbles:!0,composed:!0}))}handleKeyDown(e){this.disabled||e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),this.click())}render(){const e=!!this.querySelector('[slot="icon"]'),t=this.querySelector('[slot="badge"]'),i=this.classMap({"flex flex-col items-center justify-center":!0,"min-h-14 w-full":!0,"py-3":!0,"gap-1":!0,"rounded-lg":!0,"cursor-pointer":!0,relative:!0,"select-none":!0,"box-border":!0,"text-surface-onVariant":!this.active,"text-secondary-onContainer":this.active,"hover:bg-surface-containerHighest":!0,"transition-all duration-150 ease-out":!0,"pointer-events-none opacity-38":this.disabled,"[&>.ripple]:scale-100":this.showRipple,"min-h-12 pl-8":this.nested,"mb-2 after:absolute after:bottom-[-4px] after:left-3 after:right-3 after:h-px after:bg-outline-variant after:opacity-12":this.group}),a=this.classMap({"flex items-center justify-center":!0,"w-auto min-w-14 h-8":!0,"flex-shrink-0 relative z-10":!0}),c=this.classMap({"absolute top-1/2 left-1/2 opacity-50":!0,"w-14 h-8":!0,"rounded-lg":!0,"bg-secondary-container":!0,"transition-transform duration-150 ease-out":!0,"z-0":!0,"scale-0 -translate-x-1/2 -translate-y-1/2":!this.active,"scale-100 -translate-x-1/2 -translate-y-1/2":this.active}),l=this.classMap({"text-2xl leading-none":!this.nested,"text-xl leading-none":this.nested,"relative z-10":!0}),p=this.classMap({"text-xs font-medium leading-4":!0,"text-center":!0,"overflow-hidden text-ellipsis whitespace-nowrap":!0,"z-10 max-w-14 px-1":!0,hidden:!this.showLabel&&!this.label}),v=this.classMap({"absolute top-2 right-3":!0,"min-w-4 h-4":!0,"rounded-sm":!0,"text-xs font-semibold":!0,"flex items-center justify-center":!0,"px-1 box-border z-20":!0,"animate-pulse":!0,"bg-error-default text-error-on":this.badgeVariant==="error","bg-primary-default text-primary-on":this.badgeVariant==="primary","bg-secondary-default text-secondary-on":this.badgeVariant==="secondary"}),y=this.classMap({"absolute inset-0 rounded-lg overflow-hidden z-0":!0,'before:content-[""] before:absolute before:top-1/2 before:left-1/2':!0,"before:w-0 before:h-0 before:rounded-full":!0,"before:bg-current before:opacity-0":!0,"before:-translate-x-1/2 before:-translate-y-1/2":!0,"before:transition-all before:duration-300":!0,"before:w-[200%] before:h-[200%] before:opacity-12":this.showRipple});return d.html`
1
+ "use strict";const n=require("rxjs"),r=require("rxjs/operators");require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const a=require("lit/decorators.js");require("./tailwind.mixin-Cp4PyXok.cjs");const b=require("./litElement.mixin-CrpeGpZ7.cjs"),d=require("lit"),u=require("lit/directives/when.js");var g=Object.defineProperty,m=Object.getOwnPropertyDescriptor,o=(e,t,i,s)=>{for(var h,l=s>1?void 0:s?m(t,i):t,p=e.length-1;p>=0;p--)(h=e[p])&&(l=(s?h(t,i,l):h(l))||l);return s&&l&&g(t,i,l),l};exports.SchmancyNavigationRailItem=class extends b.$LitElement(){constructor(){super(...arguments),this.hovering$=new n.BehaviorSubject(!1),this.pressing$=new n.BehaviorSubject(!1),this.active$=new n.BehaviorSubject(!1),this.icon="",this.label="",this.value="",this.badge="",this.badgeVariant="error",this.showLabel=!1,this.disabled=!1,this.nested=!1,this.group=!1,this.showRipple=!1}get active(){return this.active$.value}set active(e){this.active$.next(e)}get selected(){return this.active}set selected(e){this.active=e}connectedCallback(){super.connectedCallback(),n.merge(n.fromEvent(this,"mouseenter").pipe(r.tap(()=>this.hovering$.next(!0))),n.fromEvent(this,"mouseleave").pipe(r.tap(()=>this.hovering$.next(!1)))).pipe(n.takeUntil(this.disconnecting)).subscribe(),n.merge(n.fromEvent(this,"mousedown").pipe(r.tap(()=>this.pressing$.next(!0))),n.fromEvent(this,"mouseup").pipe(r.tap(()=>this.pressing$.next(!1))),n.fromEvent(this,"mouseleave").pipe(r.tap(()=>this.pressing$.next(!1)))).pipe(n.takeUntil(this.disconnecting)).subscribe(),this.pressing$.pipe(r.tap(e=>{e&&!this.disabled&&(this.showRipple=!0)}),r.delay(600),r.tap(()=>this.showRipple=!1),n.takeUntil(this.disconnecting)).subscribe(),this.active$.pipe(r.distinctUntilChanged(),r.tap(e=>{this.requestUpdate(),this.setAttribute("aria-selected",String(e)),this.setAttribute("tabindex",e?"0":"-1")}),n.takeUntil(this.disconnecting)).subscribe(),this.setAttribute("role","listitem"),this.hasAttribute("tabindex")||this.setAttribute("tabindex",this.active?"0":"-1")}updated(e){super.updated(e),e.has("disabled")&&this.setAttribute("aria-disabled",String(this.disabled)),e.has("label")&&this.setAttribute("aria-label",this.label)}handleClick(e){if(this.disabled)return e.preventDefault(),void e.stopPropagation();this.dispatchEvent(new CustomEvent("navigate",{detail:this.value||this.label,bubbles:!0,composed:!0}))}handleKeyDown(e){this.disabled||e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),this.click())}render(){const e=!!this.querySelector('[slot="icon"]'),t=this.querySelector('[slot="badge"]'),i=this.classMap({"flex flex-col items-center justify-center":!0,"min-h-14 w-full":!0,"py-3":!0,"gap-1":!0,"rounded-lg":!0,"cursor-pointer":!0,relative:!0,"select-none":!0,"box-border":!0,"text-surface-onVariant":!this.active,"text-secondary-onContainer":this.active,"hover:bg-surface-containerHighest":!0,"transition-all duration-150 ease-out":!0,"pointer-events-none opacity-38":this.disabled,"[&>.ripple]:scale-100":this.showRipple,"min-h-12 pl-8":this.nested,"mb-2 after:absolute after:bottom-[-4px] after:left-3 after:right-3 after:h-px after:bg-outline-variant after:opacity-12":this.group}),s=this.classMap({"flex items-center justify-center":!0,"w-auto min-w-14 h-8":!0,"flex-shrink-0 relative z-10":!0}),h=this.classMap({"absolute top-1/2 left-1/2 opacity-50":!0,"w-14 h-8":!0,"rounded-lg":!0,"bg-secondary-container":!0,"transition-transform duration-150 ease-out":!0,"z-0":!0,"scale-0 -translate-x-1/2 -translate-y-1/2":!this.active,"scale-100 -translate-x-1/2 -translate-y-1/2":this.active}),l=this.classMap({"text-2xl leading-none":!this.nested,"text-xl leading-none":this.nested,"relative z-10":!0}),p=this.classMap({"text-xs font-medium leading-4":!0,"text-center":!0,"overflow-hidden text-ellipsis whitespace-nowrap":!0,"z-10 max-w-14 px-1":!0,hidden:!this.showLabel&&!this.label}),v=this.classMap({"absolute top-2 right-3":!0,"min-w-4 h-4":!0,"rounded-sm":!0,"text-xs font-semibold":!0,"flex items-center justify-center":!0,"px-1 box-border z-20":!0,"animate-pulse":!0,"bg-error-default text-error-on":this.badgeVariant==="error","bg-primary-default text-primary-on":this.badgeVariant==="primary","bg-secondary-default text-secondary-on":this.badgeVariant==="secondary"}),y=this.classMap({"absolute inset-0 rounded-lg overflow-hidden z-0":!0,'before:content-[""] before:absolute before:top-1/2 before:left-1/2':!0,"before:w-0 before:h-0 before:rounded-full":!0,"before:bg-current before:opacity-0":!0,"before:-translate-x-1/2 before:-translate-y-1/2":!0,"before:transition-all before:duration-300":!0,"before:w-[200%] before:h-[200%] before:opacity-12":this.showRipple});return d.html`
2
2
  <div
3
3
  class=${i}
4
4
  part="container"
@@ -8,8 +8,8 @@
8
8
  >
9
9
  <span class=${y} aria-hidden="true"></span>
10
10
 
11
- <div class=${a} part="icon">
12
- <span class=${c} part="indicator" aria-hidden="true"></span>
11
+ <div class=${s} part="icon">
12
+ <span class=${h} part="indicator" aria-hidden="true"></span>
13
13
  ${u.when(e,()=>d.html`<slot name="icon"></slot>`,()=>u.when(this.icon,()=>d.html`
14
14
  <span
15
15
  class=${l}
@@ -50,30 +50,30 @@
50
50
  </div>
51
51
  `)}
52
52
  </div>
53
- `}},o([s.property({type:String})],exports.SchmancyNavigationRailItem.prototype,"icon",2),o([s.property({type:String})],exports.SchmancyNavigationRailItem.prototype,"label",2),o([s.property({type:String})],exports.SchmancyNavigationRailItem.prototype,"value",2),o([s.property({type:Boolean,reflect:!0})],exports.SchmancyNavigationRailItem.prototype,"active",1),o([s.property({type:Boolean,reflect:!0})],exports.SchmancyNavigationRailItem.prototype,"selected",1),o([s.property({type:String})],exports.SchmancyNavigationRailItem.prototype,"badge",2),o([s.property({type:String})],exports.SchmancyNavigationRailItem.prototype,"badgeVariant",2),o([s.property({type:Boolean,attribute:"show-label"})],exports.SchmancyNavigationRailItem.prototype,"showLabel",2),o([s.property({type:Boolean,reflect:!0})],exports.SchmancyNavigationRailItem.prototype,"disabled",2),o([s.property({type:Boolean,reflect:!0})],exports.SchmancyNavigationRailItem.prototype,"nested",2),o([s.property({type:Boolean,reflect:!0})],exports.SchmancyNavigationRailItem.prototype,"group",2),o([s.state()],exports.SchmancyNavigationRailItem.prototype,"showRipple",2),exports.SchmancyNavigationRailItem=o([s.customElement("schmancy-navigation-rail-item")],exports.SchmancyNavigationRailItem);var f=Object.defineProperty,x=Object.getOwnPropertyDescriptor,h=(e,t,i,a)=>{for(var c,l=a>1?void 0:a?x(t,i):t,p=e.length-1;p>=0;p--)(c=e[p])&&(l=(a?c(t,i,l):c(l))||l);return a&&l&&f(t,i,l),l};exports.SchmancyNavigationRail=class extends b.$LitElement(){constructor(){super(...arguments),this.activeIndex$=new n.BehaviorSubject(-1),this._activeValue="",this.labelVisibility="all",this.alignment="top",this.showTooltips=!0,this.keyboardNavigation=!0,this.expanded=!1,this.focusedIndex=-1,this.isFullscreen=!1}get activeIndex(){return this.activeIndex$.value}set activeIndex(e){this.activeIndex$.next(e)}get activeValue(){return this._activeValue}set activeValue(e){this._activeValue=e,this.updateActiveByValue(e)}get navigationItems(){return this.allElements.filter(e=>e.tagName==="SCHMANCY-NAVIGATION-RAIL-ITEM")}connectedCallback(){super.connectedCallback(),this.keyboardNavigation&&this.addEventListener("keydown",this.handleKeyDown),this.activeIndex$.pipe(r.distinctUntilChanged(),r.tap(e=>this.updateActiveStates(e)),n.takeUntil(this.disconnecting)).subscribe(),n.fromEvent(window,"fullscreen").pipe(r.tap(e=>{const t=e;this.isFullscreen=t.detail}),n.takeUntil(this.disconnecting)).subscribe(),this.setupNavigateListener(),this.updateLabelVisibility(),this.setAttribute("role","navigation"),this.setAttribute("aria-label","Main navigation")}updated(e){super.updated(e),e.has("labelVisibility")&&this.updateLabelVisibility(),e.has("activeValue")&&this.updateActiveByValue(this.activeValue),e.has("expanded")&&this.updateLabelVisibility()}updateActiveStates(e){this.navigationItems.forEach((t,i)=>{const a=i===e;t.active=a,t.setAttribute("aria-selected",String(a)),t.setAttribute("tabindex",a?"0":"-1"),a&&(this._activeValue=t.value||t.label||"")})}updateActiveByValue(e){const t=this.navigationItems.findIndex(i=>i.getAttribute("value")===e||i.label===e);t>=0&&(this.activeIndex=t)}updateLabelVisibility(){this.navigationItems.forEach((e,t)=>{let i=!1;i=!!this.expanded||this.labelVisibility==="all"||this.labelVisibility==="selected"&&t===this.activeIndex,e.showLabel=i,this.showTooltips&&!i&&!this.expanded&&e.label?e.setAttribute("title",e.label):e.removeAttribute("title")})}expand(){this.expanded=!0}collapse(){this.expanded=!1}addBoatItem(e){const t=this.querySelector(`[value="${e.id}"]`);if(t)return t;const i=document.createElement("schmancy-navigation-rail-item");i.setAttribute("value",e.id),i.innerHTML=`
53
+ `}},o([a.property({type:String})],exports.SchmancyNavigationRailItem.prototype,"icon",2),o([a.property({type:String})],exports.SchmancyNavigationRailItem.prototype,"label",2),o([a.property({type:String})],exports.SchmancyNavigationRailItem.prototype,"value",2),o([a.property({type:Boolean,reflect:!0})],exports.SchmancyNavigationRailItem.prototype,"active",1),o([a.property({type:Boolean,reflect:!0})],exports.SchmancyNavigationRailItem.prototype,"selected",1),o([a.property({type:String})],exports.SchmancyNavigationRailItem.prototype,"badge",2),o([a.property({type:String})],exports.SchmancyNavigationRailItem.prototype,"badgeVariant",2),o([a.property({type:Boolean,attribute:"show-label"})],exports.SchmancyNavigationRailItem.prototype,"showLabel",2),o([a.property({type:Boolean,reflect:!0})],exports.SchmancyNavigationRailItem.prototype,"disabled",2),o([a.property({type:Boolean,reflect:!0})],exports.SchmancyNavigationRailItem.prototype,"nested",2),o([a.property({type:Boolean,reflect:!0})],exports.SchmancyNavigationRailItem.prototype,"group",2),o([a.state()],exports.SchmancyNavigationRailItem.prototype,"showRipple",2),exports.SchmancyNavigationRailItem=o([a.customElement("schmancy-navigation-rail-item")],exports.SchmancyNavigationRailItem);var f=Object.defineProperty,x=Object.getOwnPropertyDescriptor,c=(e,t,i,s)=>{for(var h,l=s>1?void 0:s?x(t,i):t,p=e.length-1;p>=0;p--)(h=e[p])&&(l=(s?h(t,i,l):h(l))||l);return s&&l&&f(t,i,l),l};exports.SchmancyNavigationRail=class extends b.$LitElement(){constructor(){super(...arguments),this.activeIndex$=new n.BehaviorSubject(-1),this._activeValue="",this.labelVisibility="all",this.alignment="top",this.showTooltips=!0,this.keyboardNavigation=!0,this.expanded=!1,this.focusedIndex=-1,this.hasHeaderContent=!1,this.isFullscreen=!1}get activeIndex(){return this.activeIndex$.value}set activeIndex(e){this.activeIndex$.next(e)}get activeValue(){return this._activeValue}set activeValue(e){this._activeValue=e,this.updateActiveByValue(e)}get navigationItems(){return this.allElements.filter(e=>e.tagName==="SCHMANCY-NAVIGATION-RAIL-ITEM")}connectedCallback(){super.connectedCallback(),this.keyboardNavigation&&this.addEventListener("keydown",this.handleKeyDown),this.activeIndex$.pipe(r.distinctUntilChanged(),r.tap(e=>this.updateActiveStates(e)),n.takeUntil(this.disconnecting)).subscribe(),n.fromEvent(window,"fullscreen").pipe(r.tap(e=>{const t=e;this.isFullscreen=t.detail}),n.takeUntil(this.disconnecting)).subscribe(),this.setupNavigateListener(),this.updateLabelVisibility(),this.setAttribute("role","navigation"),this.setAttribute("aria-label","Main navigation")}updated(e){super.updated(e),e.has("labelVisibility")&&this.updateLabelVisibility(),e.has("activeValue")&&this.updateActiveByValue(this.activeValue),e.has("expanded")&&this.updateLabelVisibility()}updateActiveStates(e){this.navigationItems.forEach((t,i)=>{const s=i===e;t.active=s,t.setAttribute("aria-selected",String(s)),t.setAttribute("tabindex",s?"0":"-1"),s&&(this._activeValue=t.value||t.label||"")})}updateActiveByValue(e){const t=this.navigationItems.findIndex(i=>i.getAttribute("value")===e||i.label===e);t>=0&&(this.activeIndex=t)}updateLabelVisibility(){this.navigationItems.forEach((e,t)=>{let i=!1;i=!!this.expanded||this.labelVisibility==="all"||this.labelVisibility==="selected"&&t===this.activeIndex,e.showLabel=i,this.showTooltips&&!i&&!this.expanded&&e.label?e.setAttribute("title",e.label):e.removeAttribute("title")})}expand(){this.expanded=!0}collapse(){this.expanded=!1}addBoatItem(e){const t=this.querySelector(`[value="${e.id}"]`);if(t)return t;const i=document.createElement("schmancy-navigation-rail-item");i.setAttribute("value",e.id),i.innerHTML=`
54
54
  <schmancy-icon slot="icon">${e.icon||"widgets"}</schmancy-icon>
55
55
  ${e.title}
56
- `;const a=this.querySelector('[slot="footer"]');return a?this.insertBefore(i,a):this.appendChild(i),i}toggle(){this.expanded=!this.expanded}handleKeyDown(e){const t=this.navigationItems;if(t.length===0)return;let i=this.focusedIndex>=0?this.focusedIndex:this.activeIndex;switch(e.key){case"ArrowDown":e.preventDefault(),i=(i+1)%t.length;break;case"ArrowUp":e.preventDefault(),i=i<=0?t.length-1:i-1;break;case"Home":e.preventDefault(),i=0;break;case"End":e.preventDefault(),i=t.length-1;break;case"Enter":case" ":return e.preventDefault(),void(i>=0&&t[i].click());default:return}this.focusedIndex=i,t[i].focus()}handleFabClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("fab-click",{bubbles:!0,composed:!0}))}handleMenuClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("menu-click",{bubbles:!0,composed:!0}))}render(){const e=this.classMap({"flex flex-col":!0,"h-full":!0,"box-border relative overflow-visible":!0,"z-10 hover:z-[100]":!0,"w-20":!this.isFullscreen,"w-0":this.isFullscreen,"transition-all duration-300 ease-emphasized":!0,"opacity-100":!this.isFullscreen,"opacity-0 pointer-events-none":this.isFullscreen,"overflow-hidden":this.isFullscreen}),t=this.classMap({"flex flex-col h-full":!0,"box-border relative":!0,"py-2":!0,"bg-surface-default text-surface-on":!0,"transition-all duration-300 ease-emphasized":!0,"w-20":!this.expanded,"px-3":!this.expanded,"w-60":this.expanded,"px-4":this.expanded,"shadow-lg":this.expanded}),i=this.classMap({"flex flex-col items-center gap-1 mb-2":!0,'[&_[slot="fab"]]:mb-2':!0,'[&_[slot="menu"]]:mb-3':!0}),a=this.classMap({"flex-1 flex flex-col gap-3":!0,"min-h-0":!0,"justify-start":this.alignment==="top","justify-center":this.alignment==="center","justify-end":this.alignment==="bottom"}),c=this.classMap({"flex flex-col items-center gap-1 mt-auto pt-2":!0});return d.html`
56
+ `;const s=this.querySelector('[slot="footer"]');return s?this.insertBefore(i,s):this.appendChild(i),i}toggle(){this.expanded=!this.expanded}handleKeyDown(e){const t=this.navigationItems;if(t.length===0)return;let i=this.focusedIndex>=0?this.focusedIndex:this.activeIndex;switch(e.key){case"ArrowDown":e.preventDefault(),i=(i+1)%t.length;break;case"ArrowUp":e.preventDefault(),i=i<=0?t.length-1:i-1;break;case"Home":e.preventDefault(),i=0;break;case"End":e.preventDefault(),i=t.length-1;break;case"Enter":case" ":return e.preventDefault(),void(i>=0&&t[i].click());default:return}this.focusedIndex=i,t[i].focus()}handleFabClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("fab-click",{bubbles:!0,composed:!0}))}handleMenuClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("menu-click",{bubbles:!0,composed:!0}))}render(){const e=this.classMap({"flex flex-col":!0,"h-full":!0,"box-border relative overflow-visible":!0,"z-10 hover:z-[100]":!0,"w-20":!this.isFullscreen,"w-0":this.isFullscreen,"transition-all duration-300 ease-emphasized":!0,"opacity-100":!this.isFullscreen,"opacity-0 pointer-events-none":this.isFullscreen,"overflow-hidden":this.isFullscreen}),t=this.classMap({"flex flex-col h-full":!0,"box-border relative":!0,"py-2":!0,"bg-surface-default text-surface-on":!0,"transition-all duration-300 ease-emphasized":!0,"w-20":!this.expanded,"px-3":!this.expanded,"w-60":this.expanded,"px-4":this.expanded,"shadow-lg":this.expanded}),i=this.classMap({"flex flex-col items-center gap-1":!0,hidden:!this.hasHeaderContent}),s=this.classMap({"flex-1 flex flex-col gap-3":!0,"min-h-0":!0,"justify-start":this.alignment==="top","justify-center":this.alignment==="center","justify-end":this.alignment==="bottom"}),h=this.classMap({"flex flex-col items-center gap-1 mt-auto pt-2":!0});return d.html`
57
57
  <div
58
58
  class=${e}
59
59
  >
60
60
  <div class=${t} part="rail">
61
61
  <div class=${i} part="header">
62
- <slot name="fab" @click=${this.handleFabClick}></slot>
63
- <slot name="menu" @click=${this.handleMenuClick}></slot>
64
- <slot name="header"></slot>
62
+ <slot name="fab" @click=${this.handleFabClick} @slotchange=${this.handleHeaderSlotChange}></slot>
63
+ <slot name="menu" @click=${this.handleMenuClick} @slotchange=${this.handleHeaderSlotChange}></slot>
64
+ <slot name="header" @slotchange=${this.handleHeaderSlotChange}></slot>
65
65
  </div>
66
66
 
67
- <nav class=${a} part="nav" role="list">
67
+ <nav class=${s} part="nav" role="list">
68
68
  <schmancy-scroll hide direction="vertical">
69
69
  <slot @slotchange=${this.handleSlotChange}></slot>
70
70
  </schmancy-scroll>
71
71
  </nav>
72
72
 
73
- <div class=${c} part="footer">
73
+ <div class=${h} part="footer">
74
74
  <slot name="footer"></slot>
75
75
  </div>
76
76
  </div>
77
77
  </div>
78
- `}setupNavigateListener(){this.addEventListener("navigate",e=>{if(e instanceof CustomEvent){const t=e.detail,i=this.navigationItems.findIndex(a=>a.value===t||a.label===t);i>=0&&(this.activeIndex=i,this._activeValue=t)}})}handleSlotChange(){this.updateLabelVisibility(),this.updateActiveStates(this.activeIndex),this.navigationItems.forEach((e,t)=>{e.setAttribute("role","listitem"),e.hasAttribute("tabindex")||e.setAttribute("tabindex",t===this.activeIndex?"0":"-1")})}},h([s.property({type:Number})],exports.SchmancyNavigationRail.prototype,"activeIndex",1),h([s.property({type:String})],exports.SchmancyNavigationRail.prototype,"activeValue",1),h([s.property({type:String,attribute:"label-visibility",reflect:!0})],exports.SchmancyNavigationRail.prototype,"labelVisibility",2),h([s.property({type:String,reflect:!0})],exports.SchmancyNavigationRail.prototype,"alignment",2),h([s.property({type:Boolean})],exports.SchmancyNavigationRail.prototype,"showTooltips",2),h([s.property({type:Boolean})],exports.SchmancyNavigationRail.prototype,"keyboardNavigation",2),h([s.property({type:Boolean,reflect:!0})],exports.SchmancyNavigationRail.prototype,"expanded",2),h([s.state()],exports.SchmancyNavigationRail.prototype,"focusedIndex",2),h([s.state()],exports.SchmancyNavigationRail.prototype,"isFullscreen",2),h([s.queryAssignedElements({flatten:!0})],exports.SchmancyNavigationRail.prototype,"allElements",2),exports.SchmancyNavigationRail=h([s.customElement("schmancy-navigation-rail")],exports.SchmancyNavigationRail);
79
- //# sourceMappingURL=navigation-rail-D1o3qDe_.cjs.map
78
+ `}setupNavigateListener(){this.addEventListener("navigate",e=>{if(e instanceof CustomEvent){const t=e.detail,i=this.navigationItems.findIndex(s=>s.value===t||s.label===t);i>=0&&(this.activeIndex=i,this._activeValue=t)}})}handleHeaderSlotChange(){const e=this.shadowRoot?.querySelector('[part="header"]');if(e){const t=e.querySelectorAll("slot");this.hasHeaderContent=Array.from(t).some(i=>i.assignedNodes({flatten:!0}).length>0)}}handleSlotChange(){this.updateLabelVisibility(),this.updateActiveStates(this.activeIndex),this.navigationItems.forEach((e,t)=>{e.setAttribute("role","listitem"),e.hasAttribute("tabindex")||e.setAttribute("tabindex",t===this.activeIndex?"0":"-1")})}},c([a.property({type:Number})],exports.SchmancyNavigationRail.prototype,"activeIndex",1),c([a.property({type:String})],exports.SchmancyNavigationRail.prototype,"activeValue",1),c([a.property({type:String,attribute:"label-visibility",reflect:!0})],exports.SchmancyNavigationRail.prototype,"labelVisibility",2),c([a.property({type:String,reflect:!0})],exports.SchmancyNavigationRail.prototype,"alignment",2),c([a.property({type:Boolean})],exports.SchmancyNavigationRail.prototype,"showTooltips",2),c([a.property({type:Boolean})],exports.SchmancyNavigationRail.prototype,"keyboardNavigation",2),c([a.property({type:Boolean,reflect:!0})],exports.SchmancyNavigationRail.prototype,"expanded",2),c([a.state()],exports.SchmancyNavigationRail.prototype,"focusedIndex",2),c([a.state()],exports.SchmancyNavigationRail.prototype,"hasHeaderContent",2),c([a.state()],exports.SchmancyNavigationRail.prototype,"isFullscreen",2),c([a.queryAssignedElements({flatten:!0})],exports.SchmancyNavigationRail.prototype,"allElements",2),exports.SchmancyNavigationRail=c([a.customElement("schmancy-navigation-rail")],exports.SchmancyNavigationRail);
79
+ //# sourceMappingURL=navigation-rail-DC9_oSIM.cjs.map