@mhmo91/schmancy 0.10.29 → 0.10.30

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 (427) hide show
  1. package/dist/{mixins-BfazlmLD.js → SchmancyElement-BQ4DFufc.js} +166 -493
  2. package/dist/SchmancyElement-BQ4DFufc.js.map +1 -0
  3. package/dist/{mixins-CxGRIPYQ.cjs → SchmancyElement-DhSiMp6Y.cjs} +2 -242
  4. package/dist/SchmancyElement-DhSiMp6Y.cjs.map +1 -0
  5. package/dist/agent/{flow-3RrZM-e7.js.map → flow-CvG1fLW5.js.map} +1 -1
  6. package/dist/agent/schmancy.agent.js +8487 -2979
  7. package/dist/agent/schmancy.agent.js.map +1 -1
  8. package/dist/agent/{vendor-material-color-33Mj762T.js.map → vendor-material-color-DcL7ZPxx.js.map} +1 -1
  9. package/dist/animation-CCOIW4wJ.cjs.map +1 -1
  10. package/dist/animation-DCznELuT.js.map +1 -1
  11. package/dist/{area-D5wIy4Fn.js → area-BjpUWvzE.js} +7 -7
  12. package/dist/{area-D5wIy4Fn.js.map → area-BjpUWvzE.js.map} +1 -1
  13. package/dist/area-CgTzkxah.cjs +21 -0
  14. package/dist/{area-HXuLLQnN.cjs.map → area-CgTzkxah.cjs.map} +1 -1
  15. package/dist/area.cjs +1 -1
  16. package/dist/area.js +1 -1
  17. package/dist/{audio-CxO5a2HL.js → audio-CwBJntnB.js} +1 -1
  18. package/dist/{audio-CxO5a2HL.js.map → audio-CwBJntnB.js.map} +1 -1
  19. package/dist/{audio-Cvmemu84.cjs → audio-DISBFOaR.cjs} +1 -1
  20. package/dist/{audio-Cvmemu84.cjs.map → audio-DISBFOaR.cjs.map} +1 -1
  21. package/dist/audio.cjs +1 -1
  22. package/dist/audio.js +2 -2
  23. package/dist/{autocomplete-hj2AQyEF.cjs → autocomplete-DbCUOgWU.cjs} +2 -2
  24. package/dist/{autocomplete-hj2AQyEF.cjs.map → autocomplete-DbCUOgWU.cjs.map} +1 -1
  25. package/dist/{autocomplete-DCkkdDON.js → autocomplete-Dy708jem.js} +7 -7
  26. package/dist/{autocomplete-DCkkdDON.js.map → autocomplete-Dy708jem.js.map} +1 -1
  27. package/dist/autocomplete.cjs +1 -1
  28. package/dist/autocomplete.js +1 -1
  29. package/dist/avatar.cjs +3 -3
  30. package/dist/avatar.cjs.map +1 -1
  31. package/dist/avatar.js +5 -5
  32. package/dist/avatar.js.map +1 -1
  33. package/dist/badge.cjs +1 -1
  34. package/dist/badge.js +1 -1
  35. package/dist/{boat-B_5F_rFr.cjs → boat-BzZN_iwp.cjs} +11 -11
  36. package/dist/{boat-B_5F_rFr.cjs.map → boat-BzZN_iwp.cjs.map} +1 -1
  37. package/dist/{boat-BfgbRnhA.js → boat-Z4Lzl3ai.js} +8 -8
  38. package/dist/{boat-BfgbRnhA.js.map → boat-Z4Lzl3ai.js.map} +1 -1
  39. package/dist/boat.cjs +1 -1
  40. package/dist/boat.js +1 -1
  41. package/dist/breadcrumb.cjs +4 -4
  42. package/dist/breadcrumb.cjs.map +1 -1
  43. package/dist/breadcrumb.js +7 -7
  44. package/dist/breadcrumb.js.map +1 -1
  45. package/dist/{busy-D6tAS-kW.js → busy-CRFGPkcP.js} +7 -7
  46. package/dist/{busy-D6tAS-kW.js.map → busy-CRFGPkcP.js.map} +1 -1
  47. package/dist/{busy-zIt9bTZn.cjs → busy-Cu-47DfN.cjs} +8 -8
  48. package/dist/{busy-zIt9bTZn.cjs.map → busy-Cu-47DfN.cjs.map} +1 -1
  49. package/dist/busy.cjs +1 -1
  50. package/dist/busy.js +1 -1
  51. package/dist/{button-8oMffyiO.cjs → button-CN_JTjRd.cjs} +15 -15
  52. package/dist/{button-8oMffyiO.cjs.map → button-CN_JTjRd.cjs.map} +1 -1
  53. package/dist/{button-D7AejvfK.js → button-D_USF3tt.js} +10 -10
  54. package/dist/{button-D7AejvfK.js.map → button-D_USF3tt.js.map} +1 -1
  55. package/dist/button.cjs +19 -19
  56. package/dist/button.cjs.map +1 -1
  57. package/dist/button.js +9 -9
  58. package/dist/button.js.map +1 -1
  59. package/dist/{card-CTucMMgp.cjs → card-D4P5_gg9.cjs} +10 -10
  60. package/dist/{card-CTucMMgp.cjs.map → card-D4P5_gg9.cjs.map} +1 -1
  61. package/dist/{card-CUt9fm_4.js → card-DpN5KIYc.js} +15 -15
  62. package/dist/{card-CUt9fm_4.js.map → card-DpN5KIYc.js.map} +1 -1
  63. package/dist/card.cjs +1 -1
  64. package/dist/card.js +1 -1
  65. package/dist/{checkbox-DMmqe2OO.js → checkbox-C8ChypKf.js} +5 -5
  66. package/dist/{checkbox-DMmqe2OO.js.map → checkbox-C8ChypKf.js.map} +1 -1
  67. package/dist/{checkbox-DrKsfzC4.cjs → checkbox-hhXVXDV1.cjs} +3 -3
  68. package/dist/{checkbox-DrKsfzC4.cjs.map → checkbox-hhXVXDV1.cjs.map} +1 -1
  69. package/dist/checkbox.cjs +1 -1
  70. package/dist/checkbox.js +1 -1
  71. package/dist/{chips-DRGsqDMA.js → chips-B8R9q4yl.js} +27 -27
  72. package/dist/{chips-DRGsqDMA.js.map → chips-B8R9q4yl.js.map} +1 -1
  73. package/dist/{chips-B1yQgLyW.cjs → chips-BTLlO_Ow.cjs} +18 -18
  74. package/dist/{chips-B1yQgLyW.cjs.map → chips-BTLlO_Ow.cjs.map} +1 -1
  75. package/dist/chips.cjs +1 -1
  76. package/dist/chips.js +2 -2
  77. package/dist/connectivity.cjs +7 -7
  78. package/dist/connectivity.cjs.map +1 -1
  79. package/dist/connectivity.js +5 -5
  80. package/dist/connectivity.js.map +1 -1
  81. package/dist/content-drawer.cjs +1 -1
  82. package/dist/content-drawer.js +1 -1
  83. package/dist/cursor-glow-Ah7VXSj7.js.map +1 -1
  84. package/dist/cursor-glow-Bulq-38P.cjs.map +1 -1
  85. package/dist/{date-range-BeF0dW1W.cjs → date-range-9h6ZSkZb.cjs} +3 -3
  86. package/dist/{date-range-BeF0dW1W.cjs.map → date-range-9h6ZSkZb.cjs.map} +1 -1
  87. package/dist/{date-range-TDF-f0ss.js → date-range-CS96dWMh.js} +7 -7
  88. package/dist/{date-range-TDF-f0ss.js.map → date-range-CS96dWMh.js.map} +1 -1
  89. package/dist/date-range-inline-CAxnHA-l.cjs +43 -0
  90. package/dist/{date-range-inline-BnhQZTK0.cjs.map → date-range-inline-CAxnHA-l.cjs.map} +1 -1
  91. package/dist/{date-range-inline-JLsmcle2.js → date-range-inline-DCXdGeRv.js} +5 -5
  92. package/dist/{date-range-inline-JLsmcle2.js.map → date-range-inline-DCXdGeRv.js.map} +1 -1
  93. package/dist/date-range-inline.cjs +1 -1
  94. package/dist/date-range-inline.js +1 -1
  95. package/dist/date-range.cjs +1 -1
  96. package/dist/date-range.js +1 -1
  97. package/dist/delay.cjs +4 -4
  98. package/dist/delay.cjs.map +1 -1
  99. package/dist/delay.js +6 -6
  100. package/dist/delay.js.map +1 -1
  101. package/dist/{details-T75tUASO.cjs → details-BC0IObBd.cjs} +2 -2
  102. package/dist/{details-T75tUASO.cjs.map → details-BC0IObBd.cjs.map} +1 -1
  103. package/dist/{details-ChMhQpcY.js → details-Pgd0slKn.js} +11 -11
  104. package/dist/{details-ChMhQpcY.js.map → details-Pgd0slKn.js.map} +1 -1
  105. package/dist/details.cjs +1 -1
  106. package/dist/details.js +1 -1
  107. package/dist/{directives-DgPbz0lQ.js → directives-B-RT9R2u.js} +3 -3
  108. package/dist/{directives-DgPbz0lQ.js.map → directives-B-RT9R2u.js.map} +1 -1
  109. package/dist/{directives-BkSqmLBV.cjs → directives-CFWacnWU.cjs} +1 -1
  110. package/dist/{directives-BkSqmLBV.cjs.map → directives-CFWacnWU.cjs.map} +1 -1
  111. package/dist/directives.cjs +1 -1
  112. package/dist/directives.js +2 -2
  113. package/dist/discovery.service-CIa3Eeuk.cjs.map +1 -1
  114. package/dist/discovery.service-DZFxtRwW.js.map +1 -1
  115. package/dist/{divider-D69bhEUY.js → divider-BMzm0lOz.js} +5 -5
  116. package/dist/{divider-D69bhEUY.js.map → divider-BMzm0lOz.js.map} +1 -1
  117. package/dist/{divider-DopO0yKi.cjs → divider-D1OzaRAQ.cjs} +3 -3
  118. package/dist/{divider-DopO0yKi.cjs.map → divider-D1OzaRAQ.cjs.map} +1 -1
  119. package/dist/divider.cjs +1 -1
  120. package/dist/divider.js +1 -1
  121. package/dist/dropdown.cjs +4 -4
  122. package/dist/dropdown.cjs.map +1 -1
  123. package/dist/dropdown.js +8 -8
  124. package/dist/dropdown.js.map +1 -1
  125. package/dist/{expand-KLSx5dea.js → expand-C0Uqxfv0.js} +10 -10
  126. package/dist/{expand-KLSx5dea.js.map → expand-C0Uqxfv0.js.map} +1 -1
  127. package/dist/{expand-C386rVT8.cjs → expand-CiQkzth9.cjs} +3 -3
  128. package/dist/{expand-C386rVT8.cjs.map → expand-CiQkzth9.cjs.map} +1 -1
  129. package/dist/expand.cjs +1 -1
  130. package/dist/expand.js +1 -1
  131. package/dist/float-Bu_IfKRd.cjs +1 -0
  132. package/dist/{float-DyaPI0qO.cjs.map → float-Bu_IfKRd.cjs.map} +1 -1
  133. package/dist/{float-BoPLNysg.js → float-DwBMXhek.js} +2 -2
  134. package/dist/{float-BoPLNysg.js.map → float-DwBMXhek.js.map} +1 -1
  135. package/dist/float.cjs +1 -1
  136. package/dist/float.js +1 -1
  137. package/dist/{form-CYeMWHmy.js → form-B9Je2W_m.js} +7 -7
  138. package/dist/{form-CYeMWHmy.js.map → form-B9Je2W_m.js.map} +1 -1
  139. package/dist/{form-CGIJlQyP.cjs → form-BnbAVZyf.cjs} +3 -3
  140. package/dist/{form-CGIJlQyP.cjs.map → form-BnbAVZyf.cjs.map} +1 -1
  141. package/dist/form.cjs +6 -6
  142. package/dist/form.cjs.map +1 -1
  143. package/dist/form.js +12 -12
  144. package/dist/form.js.map +1 -1
  145. package/dist/gravity-6pL6CfIr.cjs.map +1 -1
  146. package/dist/gravity-sVK3zGBF.js.map +1 -1
  147. package/dist/handover/agent-runtime-followups.md +1 -1
  148. package/dist/handover/agent-runtime-v1.md +3 -3
  149. package/dist/hashContent-BqU6v1Xr.js.map +1 -1
  150. package/dist/hashContent-iRZJJWtE.cjs.map +1 -1
  151. package/dist/{icons-CJUA5bfI.cjs → icons-BfWQl5k5.cjs} +6 -6
  152. package/dist/{icons-CJUA5bfI.cjs.map → icons-BfWQl5k5.cjs.map} +1 -1
  153. package/dist/{icons-BUQNMhjw.js → icons-DJHPXKgR.js} +4 -4
  154. package/dist/{icons-BUQNMhjw.js.map → icons-DJHPXKgR.js.map} +1 -1
  155. package/dist/icons.cjs +1 -1
  156. package/dist/icons.js +1 -1
  157. package/dist/{iframe-CbL0jCo1.js → iframe-DLz8ll0s.js} +5 -5
  158. package/dist/{iframe-CbL0jCo1.js.map → iframe-DLz8ll0s.js.map} +1 -1
  159. package/dist/{iframe-pn7MIeH8.cjs → iframe-UtczJypj.cjs} +5 -5
  160. package/dist/{iframe-pn7MIeH8.cjs.map → iframe-UtczJypj.cjs.map} +1 -1
  161. package/dist/iframe.cjs +1 -1
  162. package/dist/iframe.js +1 -1
  163. package/dist/index.cjs +1 -1
  164. package/dist/index.js +69 -70
  165. package/dist/{input-C1h5lLiJ.js → input-AQbBEj2f.js} +15 -15
  166. package/dist/{input-C1h5lLiJ.js.map → input-AQbBEj2f.js.map} +1 -1
  167. package/dist/{input-Cmc0IoUP.cjs → input-Pp6A1m3s.cjs} +2 -2
  168. package/dist/{input-Cmc0IoUP.cjs.map → input-Pp6A1m3s.cjs.map} +1 -1
  169. package/dist/{input-chip-B0X_CodJ.cjs → input-chip-B5vYNuEm.cjs} +9 -9
  170. package/dist/{input-chip-B0X_CodJ.cjs.map → input-chip-B5vYNuEm.cjs.map} +1 -1
  171. package/dist/{input-chip-DqAR4nPD.js → input-chip-Bbs_gXOB.js} +10 -10
  172. package/dist/{input-chip-DqAR4nPD.js.map → input-chip-Bbs_gXOB.js.map} +1 -1
  173. package/dist/input.cjs +1 -1
  174. package/dist/input.js +1 -1
  175. package/dist/json.cjs +3 -3
  176. package/dist/json.cjs.map +1 -1
  177. package/dist/json.js +5 -5
  178. package/dist/json.js.map +1 -1
  179. package/dist/kbd.cjs +2 -2
  180. package/dist/kbd.cjs.map +1 -1
  181. package/dist/kbd.js +5 -5
  182. package/dist/kbd.js.map +1 -1
  183. package/dist/{layout-DSAjo92m.js → layout-9K1zxhZn.js} +1 -1
  184. package/dist/{layout-DSAjo92m.js.map → layout-9K1zxhZn.js.map} +1 -1
  185. package/dist/{layout-eXb9wjDh.cjs → layout-B0dct--7.cjs} +1 -1
  186. package/dist/{layout-eXb9wjDh.cjs.map → layout-B0dct--7.cjs.map} +1 -1
  187. package/dist/layout.cjs +2 -2
  188. package/dist/layout.cjs.map +1 -1
  189. package/dist/layout.js +7 -7
  190. package/dist/layout.js.map +1 -1
  191. package/dist/lazy-CayEFyC3.cjs.map +1 -1
  192. package/dist/lazy-D-bO2r4m.js.map +1 -1
  193. package/dist/{lightbox-BiNK_plj.cjs → lightbox-D_EizrG3.cjs} +21 -21
  194. package/dist/{lightbox-BiNK_plj.cjs.map → lightbox-D_EizrG3.cjs.map} +1 -1
  195. package/dist/{lightbox-C3zomJ-r.js → lightbox-DmJTs2My.js} +9 -9
  196. package/dist/{lightbox-C3zomJ-r.js.map → lightbox-DmJTs2My.js.map} +1 -1
  197. package/dist/lightbox.cjs +1 -1
  198. package/dist/lightbox.js +1 -1
  199. package/dist/{list-CbM9w9OM.cjs → list-BSn8czyO.cjs} +5 -5
  200. package/dist/{list-CbM9w9OM.cjs.map → list-BSn8czyO.cjs.map} +1 -1
  201. package/dist/{list-Bbmp1uMa.js → list-DjSSRZxF.js} +12 -12
  202. package/dist/{list-Bbmp1uMa.js.map → list-DjSSRZxF.js.map} +1 -1
  203. package/dist/list.cjs +1 -1
  204. package/dist/list.js +1 -1
  205. package/dist/magnetic-B2VKNfDu.js.map +1 -1
  206. package/dist/magnetic-MQ3HMHJi.cjs.map +1 -1
  207. package/dist/{menu-Ph2hboJd.js → menu-CCVEde6u.js} +7 -7
  208. package/dist/{menu-Ph2hboJd.js.map → menu-CCVEde6u.js.map} +1 -1
  209. package/dist/menu-DTNnq7j_.cjs +23 -0
  210. package/dist/{menu-Bfay8vF8.cjs.map → menu-DTNnq7j_.cjs.map} +1 -1
  211. package/dist/menu.cjs +1 -1
  212. package/dist/menu.js +1 -1
  213. package/dist/mixins-BYfSDvbP.js +412 -0
  214. package/dist/mixins-BYfSDvbP.js.map +1 -0
  215. package/dist/mixins-YQI9JogS.cjs +245 -0
  216. package/dist/mixins-YQI9JogS.cjs.map +1 -0
  217. package/dist/mixins.cjs +1 -1
  218. package/dist/mixins.js +3 -2
  219. package/dist/nav-drawer.cjs +1 -1
  220. package/dist/nav-drawer.js +1 -1
  221. package/dist/navigation-bar.cjs +1 -1
  222. package/dist/navigation-bar.js +1 -1
  223. package/dist/navigation-rail.cjs +10 -10
  224. package/dist/navigation-rail.cjs.map +1 -1
  225. package/dist/navigation-rail.js +15 -15
  226. package/dist/navigation-rail.js.map +1 -1
  227. package/dist/{notification-Du5FRbYp.js → notification-BNEuu3Q2.js} +7 -7
  228. package/dist/{notification-Du5FRbYp.js.map → notification-BNEuu3Q2.js.map} +1 -1
  229. package/dist/notification-RhaYvA1I.cjs +24 -0
  230. package/dist/{notification-DT_cAi8U.cjs.map → notification-RhaYvA1I.cjs.map} +1 -1
  231. package/dist/notification.cjs +1 -1
  232. package/dist/notification.js +1 -1
  233. package/dist/{option-B7y4FhOn.js → option-BLMYRy5C.js} +6 -6
  234. package/dist/{option-B7y4FhOn.js.map → option-BLMYRy5C.js.map} +1 -1
  235. package/dist/{option-Cl5Q987d.cjs → option-Dk7UFFlr.cjs} +5 -5
  236. package/dist/{option-Cl5Q987d.cjs.map → option-Dk7UFFlr.cjs.map} +1 -1
  237. package/dist/option.cjs +1 -1
  238. package/dist/option.js +1 -1
  239. package/dist/overlay-BbntqsVm.cjs +43 -0
  240. package/dist/{overlay-CRwfhbyi.cjs.map → overlay-BbntqsVm.cjs.map} +1 -1
  241. package/dist/{overlay-B79m-KXf.js → overlay-CujzmLxg.js} +11 -11
  242. package/dist/{overlay-B79m-KXf.js.map → overlay-CujzmLxg.js.map} +1 -1
  243. package/dist/overlay-stack-Bdr9lOqi.cjs.map +1 -1
  244. package/dist/overlay-stack-D2rgxQLh.js.map +1 -1
  245. package/dist/overlay.cjs +1 -1
  246. package/dist/overlay.confirm-body-CMge0LP5.cjs +70 -0
  247. package/dist/{overlay.confirm-body-CxOomuN6.cjs.map → overlay.confirm-body-CMge0LP5.cjs.map} +1 -1
  248. package/dist/{overlay.confirm-body-CW_spktW.js → overlay.confirm-body-CRk4MvKh.js} +13 -13
  249. package/dist/{overlay.confirm-body-CW_spktW.js.map → overlay.confirm-body-CRk4MvKh.js.map} +1 -1
  250. package/dist/overlay.js +3 -3
  251. package/dist/{overlay.service-DsBb_UwG.js → overlay.service-DnT4SBlJ.js} +2 -2
  252. package/dist/{overlay.service-DsBb_UwG.js.map → overlay.service-DnT4SBlJ.js.map} +1 -1
  253. package/dist/{overlay.service-fb3KaMiP.cjs → overlay.service-Dq5XtSEL.cjs} +1 -1
  254. package/dist/{overlay.service-fb3KaMiP.cjs.map → overlay.service-Dq5XtSEL.cjs.map} +1 -1
  255. package/dist/{progress-fnGrmHpm.cjs → progress-Bqd4DdOQ.cjs} +7 -7
  256. package/dist/{progress-fnGrmHpm.cjs.map → progress-Bqd4DdOQ.cjs.map} +1 -1
  257. package/dist/{progress-CMwUEDB1.js → progress-Cu_wh6Sl.js} +10 -10
  258. package/dist/{progress-CMwUEDB1.js.map → progress-Cu_wh6Sl.js.map} +1 -1
  259. package/dist/progress.cjs +1 -1
  260. package/dist/progress.js +1 -1
  261. package/dist/radio-group-C8rUbYL6.cjs +19 -0
  262. package/dist/{radio-group-DQRJGMgS.cjs.map → radio-group-C8rUbYL6.cjs.map} +1 -1
  263. package/dist/{radio-group-Zb0fies1.js → radio-group-Duzgx17I.js} +7 -7
  264. package/dist/{radio-group-Zb0fies1.js.map → radio-group-Duzgx17I.js.map} +1 -1
  265. package/dist/radio-group.cjs +1 -1
  266. package/dist/radio-group.js +1 -1
  267. package/dist/range.cjs +2 -2
  268. package/dist/range.cjs.map +1 -1
  269. package/dist/range.js +5 -5
  270. package/dist/range.js.map +1 -1
  271. package/dist/reduced-motion-D-L12p7G.js.map +1 -1
  272. package/dist/reduced-motion-Ds-HjMzn.cjs.map +1 -1
  273. package/dist/rxjs-utils-Csnks202.cjs.map +1 -1
  274. package/dist/rxjs-utils-d-ivVN84.js.map +1 -1
  275. package/dist/search-DPKoC-dT.cjs.map +1 -1
  276. package/dist/search-MvIBA93K.js.map +1 -1
  277. package/dist/{select-BJJKYtEi.js → select-CzCv1f1c.js} +6 -6
  278. package/dist/{select-BJJKYtEi.js.map → select-CzCv1f1c.js.map} +1 -1
  279. package/dist/{select-C-acFFtV.cjs → select-DdqEsfnG.cjs} +2 -2
  280. package/dist/{select-C-acFFtV.cjs.map → select-DdqEsfnG.cjs.map} +1 -1
  281. package/dist/select.cjs +1 -1
  282. package/dist/select.js +1 -1
  283. package/dist/skeleton.cjs +2 -2
  284. package/dist/skeleton.cjs.map +1 -1
  285. package/dist/skeleton.js +5 -5
  286. package/dist/skeleton.js.map +1 -1
  287. package/dist/skills/form.md +34 -0
  288. package/dist/skills/schmancy/form.md +34 -0
  289. package/dist/slider.cjs +7 -7
  290. package/dist/slider.cjs.map +1 -1
  291. package/dist/slider.js +6 -6
  292. package/dist/slider.js.map +1 -1
  293. package/dist/{sound.service-v_jqCkos.js → sound.service-BOWTBG16.js} +1 -1
  294. package/dist/{sound.service-v_jqCkos.js.map → sound.service-BOWTBG16.js.map} +1 -1
  295. package/dist/{sound.service-DVJZb9ox.cjs → sound.service-BwIzAFQx.cjs} +1 -1
  296. package/dist/{sound.service-DVJZb9ox.cjs.map → sound.service-BwIzAFQx.cjs.map} +1 -1
  297. package/dist/{splash-screen-CCDpzGg_.js → splash-screen-Dj-zuGuB.js} +6 -6
  298. package/dist/{splash-screen-CCDpzGg_.js.map → splash-screen-Dj-zuGuB.js.map} +1 -1
  299. package/dist/splash-screen-_KhxgneW.cjs +41 -0
  300. package/dist/{splash-screen-CGnhHDB_.cjs.map → splash-screen-_KhxgneW.cjs.map} +1 -1
  301. package/dist/splash-screen.cjs +1 -1
  302. package/dist/splash-screen.js +1 -1
  303. package/dist/src-BSjgxN07.cjs +263 -0
  304. package/dist/{src-C0MzzF_S.cjs.map → src-BSjgxN07.cjs.map} +1 -1
  305. package/dist/{src-CUcUMK0M.js → src-Curgs4Yp.js} +82 -82
  306. package/dist/{src-CUcUMK0M.js.map → src-Curgs4Yp.js.map} +1 -1
  307. package/dist/state-BthYuA3T.cjs +1 -0
  308. package/dist/state-BthYuA3T.cjs.map +1 -0
  309. package/dist/{state-CHbIt2Dw.js → state-E0bVrZ7q.js} +293 -279
  310. package/dist/state-E0bVrZ7q.js.map +1 -0
  311. package/dist/state.cjs +1 -1
  312. package/dist/state.js +3 -3
  313. package/dist/steps.cjs +10 -10
  314. package/dist/steps.cjs.map +1 -1
  315. package/dist/steps.js +9 -9
  316. package/dist/steps.js.map +1 -1
  317. package/dist/{surface-CLcc26d2.js → surface-C2TIedTq.js} +4 -4
  318. package/dist/{surface-CLcc26d2.js.map → surface-C2TIedTq.js.map} +1 -1
  319. package/dist/surface-D-GqzyLn.cjs +7 -0
  320. package/dist/{surface-DPzlMMYX.cjs.map → surface-D-GqzyLn.cjs.map} +1 -1
  321. package/dist/surface.cjs +1 -1
  322. package/dist/surface.js +1 -1
  323. package/dist/switch.cjs +2 -2
  324. package/dist/switch.cjs.map +1 -1
  325. package/dist/switch.js +6 -6
  326. package/dist/switch.js.map +1 -1
  327. package/dist/table.cjs +11 -11
  328. package/dist/table.cjs.map +1 -1
  329. package/dist/table.js +10 -10
  330. package/dist/table.js.map +1 -1
  331. package/dist/{tabs-BvEal6oS.js → tabs-CLRVe23a.js} +11 -11
  332. package/dist/{tabs-BvEal6oS.js.map → tabs-CLRVe23a.js.map} +1 -1
  333. package/dist/{tabs-DEKOKYrn.cjs → tabs-C_493iod.cjs} +4 -4
  334. package/dist/{tabs-DEKOKYrn.cjs.map → tabs-C_493iod.cjs.map} +1 -1
  335. package/dist/tabs.cjs +1 -1
  336. package/dist/tabs.js +1 -1
  337. package/dist/teleport.cjs +1 -1
  338. package/dist/teleport.js +1 -1
  339. package/dist/{textarea-CH62STRD.js → textarea-BWEyOtPy.js} +9 -9
  340. package/dist/{textarea-CH62STRD.js.map → textarea-BWEyOtPy.js.map} +1 -1
  341. package/dist/textarea-CICgd2oP.cjs +43 -0
  342. package/dist/{textarea-Cjlsy3y9.cjs.map → textarea-CICgd2oP.cjs.map} +1 -1
  343. package/dist/textarea.cjs +1 -1
  344. package/dist/textarea.js +1 -1
  345. package/dist/{theme-z82BIRuw.js → theme-Bfg_H2AF.js} +12 -12
  346. package/dist/{theme-z82BIRuw.js.map → theme-Bfg_H2AF.js.map} +1 -1
  347. package/dist/theme-D7zOJiyg.cjs +181 -0
  348. package/dist/{theme-CG3Gpne7.cjs.map → theme-D7zOJiyg.cjs.map} +1 -1
  349. package/dist/{theme-button-oWeOoeSw.js → theme-button-C53GdQER.js} +4 -4
  350. package/dist/{theme-button-oWeOoeSw.js.map → theme-button-C53GdQER.js.map} +1 -1
  351. package/dist/theme-button-DgeBcqFm.cjs +8 -0
  352. package/dist/{theme-button-CEc_Kl54.cjs.map → theme-button-DgeBcqFm.cjs.map} +1 -1
  353. package/dist/theme-button.cjs +1 -1
  354. package/dist/theme-button.js +1 -1
  355. package/dist/theme.cjs +1 -1
  356. package/dist/theme.interface-CSt7JUBD.cjs.map +1 -1
  357. package/dist/theme.interface-odQEpZZH.js.map +1 -1
  358. package/dist/theme.js +3 -3
  359. package/dist/{theme.service-Bh08uOSJ.js → theme.service-BqDuioYc.js} +1 -1
  360. package/dist/{theme.service-Bh08uOSJ.js.map → theme.service-BqDuioYc.js.map} +1 -1
  361. package/dist/{theme.service-Y-e8b331.cjs → theme.service-C3PoISGd.cjs} +1 -1
  362. package/dist/{theme.service-Y-e8b331.cjs.map → theme.service-C3PoISGd.cjs.map} +1 -1
  363. package/dist/tooltip.cjs.map +1 -1
  364. package/dist/tooltip.js.map +1 -1
  365. package/dist/tree.cjs +3 -3
  366. package/dist/tree.cjs.map +1 -1
  367. package/dist/tree.js +4 -4
  368. package/dist/tree.js.map +1 -1
  369. package/dist/types.cjs.map +1 -1
  370. package/dist/types.js.map +1 -1
  371. package/dist/typewriter.cjs.map +1 -1
  372. package/dist/typewriter.js.map +1 -1
  373. package/dist/{typography-CjAvaB88.cjs → typography-B19fJ5YT.cjs} +4 -4
  374. package/dist/{typography-CjAvaB88.cjs.map → typography-B19fJ5YT.cjs.map} +1 -1
  375. package/dist/{typography-DP82e3GJ.js → typography-CzbQv-X0.js} +10 -10
  376. package/dist/{typography-DP82e3GJ.js.map → typography-CzbQv-X0.js.map} +1 -1
  377. package/dist/typography.cjs +1 -1
  378. package/dist/typography.js +1 -1
  379. package/dist/utils-DTa3QHxk.cjs.map +1 -1
  380. package/dist/utils-H8wNknWC.js.map +1 -1
  381. package/dist/visually-hidden.cjs +2 -2
  382. package/dist/visually-hidden.cjs.map +1 -1
  383. package/dist/visually-hidden.js +4 -4
  384. package/dist/visually-hidden.js.map +1 -1
  385. package/dist/window-DXB53PuA.cjs +59 -0
  386. package/dist/{window-aVXgfw__.cjs.map → window-DXB53PuA.cjs.map} +1 -1
  387. package/dist/{window-BkPXY-8m.js → window-DpctMXiy.js} +9 -9
  388. package/dist/{window-BkPXY-8m.js.map → window-DpctMXiy.js.map} +1 -1
  389. package/dist/window.cjs +1 -1
  390. package/dist/window.js +1 -1
  391. package/package.json +1 -1
  392. package/skills/schmancy/form.md +34 -0
  393. package/src/state/active-host.ts +50 -1
  394. package/src/state/index.ts +50 -11
  395. package/src/state/schmancy-context.ts +97 -88
  396. package/src/surface/surface.styles.ts +14 -10
  397. package/types/src/state/active-host.d.ts +3 -0
  398. package/types/src/state/index.d.ts +16 -2
  399. package/types/src/state/schmancy-context.d.ts +2 -2
  400. package/dist/active-host-BP0zy_Y9.js +0 -63
  401. package/dist/active-host-BP0zy_Y9.js.map +0 -1
  402. package/dist/active-host-jH3iloCR.cjs +0 -1
  403. package/dist/active-host-jH3iloCR.cjs.map +0 -1
  404. package/dist/agent/overlay.confirm-body-BFYWMa45.js +0 -5518
  405. package/dist/agent/overlay.confirm-body-BFYWMa45.js.map +0 -1
  406. package/dist/area-HXuLLQnN.cjs +0 -21
  407. package/dist/date-range-inline-BnhQZTK0.cjs +0 -43
  408. package/dist/float-DyaPI0qO.cjs +0 -1
  409. package/dist/menu-Bfay8vF8.cjs +0 -23
  410. package/dist/mixins-BfazlmLD.js.map +0 -1
  411. package/dist/mixins-CxGRIPYQ.cjs.map +0 -1
  412. package/dist/notification-DT_cAi8U.cjs +0 -24
  413. package/dist/overlay-CRwfhbyi.cjs +0 -43
  414. package/dist/overlay.confirm-body-CxOomuN6.cjs +0 -70
  415. package/dist/radio-group-DQRJGMgS.cjs +0 -19
  416. package/dist/splash-screen-CGnhHDB_.cjs +0 -41
  417. package/dist/src-C0MzzF_S.cjs +0 -263
  418. package/dist/state-CHbIt2Dw.js.map +0 -1
  419. package/dist/state-DcGj-pJJ.cjs +0 -1
  420. package/dist/state-DcGj-pJJ.cjs.map +0 -1
  421. package/dist/surface-DPzlMMYX.cjs +0 -7
  422. package/dist/textarea-Cjlsy3y9.cjs +0 -43
  423. package/dist/theme-CG3Gpne7.cjs +0 -181
  424. package/dist/theme-button-CEc_Kl54.cjs +0 -8
  425. package/dist/window-aVXgfw__.cjs +0 -59
  426. /package/dist/agent/{flow-3RrZM-e7.js → flow-CvG1fLW5.js} +0 -0
  427. /package/dist/agent/{vendor-material-color-33Mj762T.js → vendor-material-color-DcL7ZPxx.js} +0 -0
@@ -1 +1 @@
1
- require(`./splash-screen-CGnhHDB_.cjs`);
1
+ require(`./splash-screen-_KhxgneW.cjs`);
@@ -1 +1 @@
1
- import "./splash-screen-CCDpzGg_.js";
1
+ import "./splash-screen-Dj-zuGuB.js";
@@ -0,0 +1,263 @@
1
+ require(`./chunk-CncqDLb2.cjs`);const e=require(`./SchmancyElement-DhSiMp6Y.cjs`);require(`./mixins-YQI9JogS.cjs`);const t=require(`./area-CgTzkxah.cjs`);require(`./state-BthYuA3T.cjs`),require(`./audio-DISBFOaR.cjs`),require(`./autocomplete-DbCUOgWU.cjs`);const n=require(`./directives-CFWacnWU.cjs`),r=require(`./theme.service-C3PoISGd.cjs`);require(`./boat-BzZN_iwp.cjs`),require(`./busy-Cu-47DfN.cjs`),require(`./button.cjs`),require(`./card-D4P5_gg9.cjs`),require(`./checkbox-hhXVXDV1.cjs`),require(`./chips-BTLlO_Ow.cjs`),require(`./connectivity.cjs`);const i=require(`./overlay.service-Dq5XtSEL.cjs`);require(`./date-range-9h6ZSkZb.cjs`),require(`./date-range-inline-CAxnHA-l.cjs`),require(`./delay.cjs`),require(`./details-BC0IObBd.cjs`),require(`./discovery.cjs`),require(`./divider-D1OzaRAQ.cjs`),require(`./dropdown.cjs`),require(`./expand-CiQkzth9.cjs`),require(`./float-Bu_IfKRd.cjs`),require(`./window.cjs`),require(`./input.cjs`),require(`./radio-group-C8rUbYL6.cjs`),require(`./range.cjs`);const a=require(`./theme.interface-CSt7JUBD.cjs`);require(`./select-DdqEsfnG.cjs`),require(`./switch.cjs`),require(`./textarea-CICgd2oP.cjs`),require(`./form.cjs`),require(`./icons-BfWQl5k5.cjs`),require(`./iframe-UtczJypj.cjs`),require(`./notification-RhaYvA1I.cjs`),require(`./json.cjs`),require(`./layout.cjs`),require(`./lightbox-D_EizrG3.cjs`),require(`./list-BSn8czyO.cjs`),require(`./menu-DTNnq7j_.cjs`),require(`./navigation-rail.cjs`),require(`./option-Dk7UFFlr.cjs`),require(`./overlay-BbntqsVm.cjs`),require(`./progress.cjs`),require(`./rxjs-utils-Csnks202.cjs`),require(`./slider.cjs`),require(`./steps.cjs`),require(`./surface.cjs`),require(`./table.cjs`),require(`./tabs-C_493iod.cjs`),require(`./theme-D7zOJiyg.cjs`),require(`./theme-button-DgeBcqFm.cjs`),require(`./tooltip.cjs`),require(`./tree.cjs`);const o=require(`./types.cjs`);require(`./typewriter.cjs`),require(`./typography.cjs`),require(`./utils-DTa3QHxk.cjs`),require(`./avatar.cjs`),require(`./breadcrumb.cjs`),require(`./kbd.cjs`),require(`./skeleton.cjs`),require(`./splash-screen-_KhxgneW.cjs`),require(`./visually-hidden.cjs`);let s=require(`rxjs`),c=require(`rxjs/operators`),l=require(`@lit/context`),u=require(`lit/decorators.js`),d=require(`lit`),f=require(`lit/directives/when.js`);var p=class extends e.t{constructor(...e){super(...e),this.color=`primary`,this.size=`md`,this.shape=`pill`,this.outlined=!1,this.icon=``,this.pulse=!1}static{this.styles=[d.css`
2
+ :host {
3
+ display: inline-flex;
4
+ width: fit-content;
5
+ }
6
+
7
+ /* Enhanced pulse animation for better attention-getting */
8
+ @keyframes elegant-pulse {
9
+ 0%, 100% {
10
+ opacity: 1;
11
+ }
12
+ 50% {
13
+ opacity: 0.85;
14
+ }
15
+ }
16
+
17
+ .animate-pulse {
18
+ animation: elegant-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
19
+ }
20
+ `]}getSizeClasses(){switch(this.size){case`xs`:return`text-xs py-0.75 px-1.5 gap-0.5 leading-none`;case`sm`:return`text-xs py-1.5 px-2.5 gap-0.5 tracking-wide leading-none`;case`lg`:return`text-base py-2 px-4 gap-1 tracking-wide`;default:return`text-sm py-1.5 px-3 gap-0.5`}}getShapeClasses(){switch(this.shape){case`square`:return`rounded`;case`rounded`:return`rounded-md`;default:return`rounded-full`}}getIconSizeClass(){switch(this.size){case`xs`:return`text-xs`;case`sm`:default:return`text-sm`;case`lg`:return`text-lg`}}getExoticStyles(){let e={};return this.size===`lg`&&(e.letterSpacing=`0.03em`,e.fontWeight=`500`),this.size===`sm`&&(e.letterSpacing=`0.02em`),e}getColorStyles(){return{primary:{bg:this.outlined?`transparent`:`color-mix(in srgb, ${a.t.sys.color.primary.container} 92%, ${a.t.sys.color.primary.default} 8%)`,text:this.outlined?a.t.sys.color.primary.default:a.t.sys.color.primary.onContainer,border:this.outlined?`color-mix(in srgb, ${a.t.sys.color.primary.default} 90%, ${a.t.sys.color.surface.highest} 10%)`:void 0},secondary:{bg:this.outlined?`transparent`:`color-mix(in srgb, ${a.t.sys.color.secondary.container} 95%, ${a.t.sys.color.secondary.default} 5%)`,text:this.outlined?a.t.sys.color.secondary.default:a.t.sys.color.secondary.onContainer,border:this.outlined?`color-mix(in srgb, ${a.t.sys.color.secondary.default} 85%, ${a.t.sys.color.surface.highest} 15%)`:void 0},tertiary:{bg:this.outlined?`transparent`:`color-mix(in srgb, ${a.t.sys.color.tertiary.container} 94%, ${a.t.sys.color.tertiary.default} 6%)`,text:this.outlined?a.t.sys.color.tertiary.default:a.t.sys.color.tertiary.onContainer,border:this.outlined?`color-mix(in srgb, ${a.t.sys.color.tertiary.default} 88%, ${a.t.sys.color.surface.highest} 12%)`:void 0},success:{bg:this.outlined?`transparent`:`color-mix(in srgb, ${a.t.sys.color.success.container} 90%, ${a.t.sys.color.success.default} 10%)`,text:this.outlined?a.t.sys.color.success.default:a.t.sys.color.success.onContainer,border:this.outlined?`color-mix(in srgb, ${a.t.sys.color.success.default} 85%, ${a.t.sys.color.surface.bright} 15%)`:void 0},warning:{bg:this.outlined?`transparent`:`color-mix(in srgb, ${a.t.sys.color.tertiary.container} 85%, ${a.t.sys.color.tertiary.default} 15%)`,text:this.outlined?a.t.sys.color.tertiary.default:a.t.sys.color.tertiary.onContainer,border:this.outlined?`color-mix(in srgb, ${a.t.sys.color.tertiary.default} 90%, ${a.t.sys.color.surface.highest} 10%)`:void 0},error:{bg:this.outlined?`transparent`:`color-mix(in srgb, ${a.t.sys.color.error.container} 92%, ${a.t.sys.color.error.default} 8%)`,text:this.outlined?a.t.sys.color.error.default:a.t.sys.color.error.onContainer,border:this.outlined?`color-mix(in srgb, ${a.t.sys.color.error.default} 88%, ${a.t.sys.color.surface.bright} 12%)`:void 0},neutral:{bg:this.outlined?`transparent`:`color-mix(in srgb, ${a.t.sys.color.surface.high} 95%, ${a.t.sys.color.outline} 5%)`,text:this.outlined?`color-mix(in srgb, ${a.t.sys.color.surface.on} 95%, ${a.t.sys.color.surface.default} 5%)`:a.t.sys.color.surface.on,border:this.outlined?`color-mix(in srgb, ${a.t.sys.color.outline} 85%, ${a.t.sys.color.surface.highest} 15%)`:void 0},surface:{bg:this.outlined?`transparent`:a.t.sys.color.surface.high,text:a.t.sys.color.surface.on,border:this.outlined?a.t.sys.color.outline:void 0}}[this.color]}render(){let e=this.getSizeClasses(),t=this.getShapeClasses(),r=this.getColorStyles(),i=this.getIconSizeClass(),a=this.getExoticStyles(),o={"inline-flex items-center justify-center font-medium":!0,"transition-all duration-200 ease-in-out":!0,[e]:!0,[t]:!0,"animate-pulse":this.pulse,"border border-solid":this.outlined,"shadow-sm":!this.outlined&&this.size===`sm`,shadow:!this.outlined&&this.size===`md`,"shadow-md":!this.outlined&&this.size===`lg`,"hover:brightness-95 hover:-translate-y-px":this.outlined,"hover:brightness-[0.98]":!this.outlined},s={borderColor:r.border,backdropFilter:this.outlined?`blur(4px)`:void 0,boxShadow:this.size!==`lg`||this.outlined?void 0:`0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1)`,...a};return d.html`
21
+ <div
22
+ part="badge"
23
+ class="${this.classMap(o)}"
24
+ style="${this.styleMap(s)}"
25
+ ${n.S({bgColor:r.bg,color:r.text})}
26
+ >
27
+ <!-- Icon slot or named icon -->
28
+ <slot name="icon">
29
+ ${this.icon?d.html`
30
+ <div part="icon" class="shrink-0 flex items-center justify-center leading-none">
31
+ <schmancy-icon class="${i} flex items-center justify-center">${this.icon}</schmancy-icon>
32
+ </div>
33
+ `:``}
34
+ </slot>
35
+
36
+ <!-- Content with proper spacing from icon -->
37
+ <div part="content" class="flex items-center leading-none tracking-[0.01em] ${this.icon?`ml-[0.38em]`:``}">
38
+ <slot></slot>
39
+ </div>
40
+ </div>
41
+ `}};e.p([(0,u.property)({type:String,reflect:!0})],p.prototype,`color`,void 0),e.p([(0,u.property)({type:String,reflect:!0})],p.prototype,`size`,void 0),e.p([(0,u.property)({type:String,reflect:!0})],p.prototype,`shape`,void 0),e.p([(0,u.property)({type:Boolean,reflect:!0})],p.prototype,`outlined`,void 0),e.p([(0,u.property)({type:String})],p.prototype,`icon`,void 0),e.p([(0,u.property)({type:Boolean,reflect:!0})],p.prototype,`pulse`,void 0),p=e.p([(0,u.customElement)(`schmancy-badge`)],p);var m=class extends p{};m=e.p([(0,u.customElement)(`sch-badge`)],m);var h=new class{constructor(){this.$drawer=new s.Subject,this.pushCounter=0,this.isDismissing$=new s.BehaviorSubject(!1),this.$drawer.pipe((0,s.concatMap)(e=>{switch(e.action){case`dismiss`:return(0,s.of)(e).pipe((0,s.tap)(()=>{this.isDismissing$.next(!0),this.dispatchToggleEvent(e.ref,`close`)}),(0,s.delay)(300),(0,s.tap)(()=>this.isDismissing$.next(!1)));case`render`:return(0,s.of)(e).pipe((0,s.tap)(()=>{this.dispatchToggleEvent(e.ref,`open`),this.dispatchRenderEvent(e.ref,e.component,e.title)}));case`push`:return(0,s.of)(e).pipe((0,s.tap)(()=>this.handlePush(e.ref,e.component,e.state,e.params,e.props)));default:return(0,s.of)(null)}})).subscribe()}dispatchToggleEvent(e,t){e.dispatchEvent(new CustomEvent(o.SchmancyEvents.ContentDrawerToggle,{detail:{state:t},bubbles:!0,composed:!0}))}dispatchRenderEvent(e,t,n,r,i,a){e.dispatchEvent(new CustomEvent(`schmancy-content-drawer-render`,{detail:{component:t,title:n,state:r,params:i,props:a},bubbles:!0,composed:!0}))}dimiss(e){this.$drawer.next({action:`dismiss`,ref:e})}render(e,t,n){e.dispatchEvent(new CustomEvent(`custom-event`)),this.$drawer.next({action:`render`,ref:e,component:t,title:n})}handlePush(e,t,n,r,i){let a={...n,_drawerPushId:++this.pushCounter};this.dispatchToggleEvent(e,`open`),this.dispatchRenderEvent(e,t,void 0,a,r,i)}push(e){this.$drawer.next({action:`push`,ref:window,...e})}},g=(0,l.createContext)(`push`),_=(0,l.createContext)(`close`),v=(0,l.createContext)(Math.floor(Math.random()*Date.now()).toString()),y=(0,l.createContext)(`100%`),b=(0,l.createContext)({}),x=`schmancy-content-drawer-overlay-dismiss`,S=class extends e.t{constructor(...e){super(...e),this.minWidth={main:360,sheet:576},this.schmancyContentDrawerID=Math.floor(Math.random()*Date.now()).toString(),this.maxHeight=`100%`,this._overlaySubscription=null}static{this.styles=[d.css`
42
+ :host {
43
+ position: relative;
44
+ inset: 0;
45
+ display: block;
46
+ overflow: hidden;
47
+ }
48
+ `]}firstUpdated(){this.setupResizeListener(),this.setupToggleListener(),this.setupRenderListener()}setupResizeListener(){(0,s.merge)((0,s.fromEvent)(window,`resize`),(0,s.fromEvent)(window,o.SchmancyEvents.ContentDrawerResize)).pipe((0,s.startWith)(!0),(0,s.debounceTime)(100),(0,s.map)(()=>this.clientWidth||window.innerWidth),(0,s.map)(e=>e>=this.minWidth.main+this.minWidth.sheet),(0,s.distinctUntilChanged)(),(0,s.tap)(()=>this.updateMaxHeight()),(0,s.takeUntil)(this.disconnecting)).subscribe(e=>this.updateMode(e))}setupToggleListener(){(0,s.fromEvent)(window,o.SchmancyEvents.ContentDrawerToggle).pipe((0,s.tap)(e=>e.stopPropagation()),(0,s.map)(e=>e.detail.state),(0,s.takeUntil)(this.disconnecting)).subscribe(e=>{this.open=e})}setupRenderListener(){(0,s.fromEvent)(window,`schmancy-content-drawer-render`).pipe((0,s.tap)(e=>e.stopPropagation()),(0,s.map)(e=>e.detail),(0,s.takeUntil)(this.disconnecting)).subscribe(e=>this.handleRender(e)),(0,s.fromEvent)(this,x).pipe((0,s.takeUntil)(this.disconnecting)).subscribe(()=>this.dismissOverlay())}updateMaxHeight(){this.maxHeight=window.innerHeight-this.getOffsetTop(this)+`px`,this.style.setProperty(`max-height`,this.maxHeight)}updateMode(e){e?(this.mode=`push`,this.open=`open`):(this.mode=`overlay`,this.open=`close`)}handleRender(e){this.mode===`push`?t.S.push({area:this.schmancyContentDrawerID,component:e.component,historyStrategy:`silent`,state:e.state,params:e.params,props:e.props}):this.mode===`overlay`&&(this._overlaySubscription?.unsubscribe(),this._overlaySubscription=i.o(e.component,{props:e.props}).pipe((0,s.takeUntil)(this.disconnecting)).subscribe({complete:()=>{this._overlaySubscription=null}}))}dismissOverlay(){this._overlaySubscription?.unsubscribe(),this._overlaySubscription=null}getOffsetTop(e){let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}render(){return this.mode&&this.open?d.html`
49
+ <div class=${[`grid h-full`,`grid-flow-col auto-cols-max`,`grid-rows-[1fr]`,`justify-items-stretch items-stretch`,this.mode===`overlay`?`grid-cols-[1fr]`:`grid-cols-[auto_1fr]`].join(` `)}>
50
+ <slot></slot>
51
+ </div>
52
+ `:d.nothing}};e.p([(0,l.provide)({context:b})],S.prototype,`minWidth`,void 0),e.p([(0,l.provide)({context:_}),(0,u.property)()],S.prototype,`open`,void 0),e.p([(0,l.provide)({context:g}),(0,u.state)()],S.prototype,`mode`,void 0),e.p([(0,l.provide)({context:v})],S.prototype,`schmancyContentDrawerID`,void 0),e.p([(0,l.provide)({context:y})],S.prototype,`maxHeight`,void 0),e.p([(0,u.queryAssignedElements)({flatten:!0})],S.prototype,`assignedElements`,void 0),S=e.p([(0,u.customElement)(`schmancy-content-drawer`)],S);var C=class extends e.t{static{this.styles=[d.css`
53
+ :host {
54
+ display: block;
55
+ overflow: hidden;
56
+ }
57
+ `]}connectedCallback(){super.connectedCallback(),this.minWidth?this.drawerMinWidth.main=this.minWidth:this.minWidth=this.drawerMinWidth.main}update(e){super.update(e),e.has(`minWidth`)&&this.minWidth&&(this.drawerMinWidth.main=this.minWidth,this.dispatchEvent(new CustomEvent(o.SchmancyEvents.ContentDrawerResize,{bubbles:!0,composed:!0})))}render(){let e={minWidth:`${this.minWidth}px`,maxHeight:this.maxHeight};return d.html`
58
+ <section class="relative inset-0 h-full">
59
+ <div class=${[`grid h-full relative overflow-scroll`,`grid-flow-col auto-cols-max`,`grid-rows-[1fr]`,`items-stretch justify-items-stretch`,this.mode===`push`?`grid-cols-[auto_1fr]`:`grid-cols-[1fr]`].join(` `)}>
60
+ <section style=${this.styleMap(e)}>
61
+ <slot></slot>
62
+ </section>
63
+ </div>
64
+ ${(0,f.when)(this.mode===`push`,()=>d.html` <schmancy-divider class="absolute right-0 top-0" orientation="vertical"></schmancy-divider>`)}
65
+ </section>
66
+ `}};e.p([(0,u.property)({type:Number})],C.prototype,`minWidth`,void 0),e.p([(0,l.consume)({context:b,subscribe:!0})],C.prototype,`drawerMinWidth`,void 0),e.p([(0,l.consume)({context:g,subscribe:!0}),(0,u.state)()],C.prototype,`mode`,void 0),e.p([(0,l.consume)({context:y,subscribe:!0}),(0,u.state)()],C.prototype,`maxHeight`,void 0),C=e.p([(0,u.customElement)(`schmancy-content-drawer-main`)],C);var w=class extends e.t{static{this.styles=[d.css`
67
+ :host {
68
+ overflow: scroll;
69
+ }
70
+ `]}connectedCallback(){super.connectedCallback(),this.minWidth?this.drawerMinWidth.sheet=this.minWidth:this.minWidth=this.drawerMinWidth.sheet}updated(e){super.updated(e),e.has(`minWidth`)&&this.minWidth?(this.drawerMinWidth.sheet=this.minWidth,this.dispatchEvent(new CustomEvent(o.SchmancyEvents.ContentDrawerResize,{bubbles:!0,composed:!0}))):(e.has(`state`)||e.has(`mode`))&&(this.mode===`overlay`?this.state===`close`?this.closeAll():this.state:this.mode===`push`&&(this.requestOverlayDismiss(),this.state===`close`?this.closeAll():this.state===`open`&&this.open()))}open(){this.mode===`overlay`?this.sheet.style.position=`fixed`:this.sheet.style.position=`relative`,this.sheet.style.display=`block`,this.sheet.animate([{opacity:0,transform:`translateX(100%)`},{opacity:1,transform:`translateX(0%)`}],{duration:250,easing:`cubic-bezier(0.5, 0.01, 0.25, 1)`})}requestOverlayDismiss(){this.dispatchEvent(new CustomEvent(x,{bubbles:!0,composed:!0}))}closeAll(){this.requestOverlayDismiss(),this.closeSheet().pipe((0,s.takeUntil)(this.disconnecting)).subscribe()}closeSheet(){return new s.Observable(e=>{this.sheet.animate([{opacity:1,transform:`translateX(0%)`},{opacity:1,transform:`translateX(100%)`}],{duration:250,easing:`cubic-bezier(0.5, 0.01, 0.25, 1)`}).onfinish=()=>{this.sheet.style.display=`none`,e.next(),e.complete()}})}render(){let e={"block h-full w-full":this.mode===`push`,"absolute z-50":this.mode===`overlay`,"opacity-1":this.mode===`overlay`&&this.state===`open`},t={minWidth:`${this.minWidth}px`,maxHeight:this.maxHeight};return d.html`
71
+ <section id="sheet" class="${this.classMap(e)}" style=${this.styleMap(t)}>
72
+ <schmancy-area class="h-full w-full" name="${this.schmancyContentDrawerID}">
73
+ <slot name="placeholder"></slot>
74
+ </schmancy-area>
75
+ </section>
76
+ `}};e.p([(0,u.property)({type:Number})],w.prototype,`minWidth`,void 0),e.p([(0,l.consume)({context:g,subscribe:!0}),(0,u.state)()],w.prototype,`mode`,void 0),e.p([(0,l.consume)({context:_,subscribe:!0}),(0,u.state)()],w.prototype,`state`,void 0),e.p([(0,l.consume)({context:v})],w.prototype,`schmancyContentDrawerID`,void 0),e.p([(0,u.query)(`#sheet`)],w.prototype,`sheet`,void 0),e.p([(0,u.queryAssignedElements)({flatten:!0,slot:void 0})],w.prototype,`defaultSlot`,void 0),e.p([(0,l.consume)({context:b,subscribe:!0})],w.prototype,`drawerMinWidth`,void 0),e.p([(0,l.consume)({context:y,subscribe:!0}),(0,u.state)()],w.prototype,`maxHeight`,void 0),w=e.p([(0,u.customElement)(`schmancy-content-drawer-sheet`)],w);var T=new class{constructor(){this.$drawer=new s.Subject,this.$drawer.pipe((0,s.debounceTime)(10)).subscribe(e=>{e.state?window.dispatchEvent(new CustomEvent(o.SchmancyEvents.NavDrawer_toggle,{detail:{state:`open`},bubbles:!0,composed:!0})):window.dispatchEvent(new CustomEvent(o.SchmancyEvents.NavDrawer_toggle,{detail:{state:`close`},bubbles:!0,composed:!0}))})}open(e){this.$drawer.next({self:e,state:!0})}close(e){this.$drawer.next({self:e,state:!1})}},E=T,D=class extends e.t{static{this.styles=[d.css`
77
+ :host {
78
+ display: block;
79
+ width: 100%;
80
+ min-width: 0;
81
+ }
82
+ `]}render(){return d.html`<slot></slot>`}};D=e.p([(0,u.customElement)(`schmancy-nav-drawer-appbar`)],D);var O=class extends e.t{static{this.styles=[d.css`
83
+ :host {
84
+ display: block;
85
+ position: relative;
86
+ inset: 0;
87
+ overflow-y: auto;
88
+ }
89
+ `]}connectedCallback(){super.connectedCallback(),(0,s.fromEvent)(this,`scroll`).pipe((0,s.takeUntil)(this.disconnecting)).subscribe(e=>{this.parentElement.dispatchEvent(new CustomEvent(`scroll`,{detail:e,bubbles:!0,composed:!0}))})}render(){return d.html` <slot></slot> `}};O=e.p([(0,u.customElement)(`schmancy-nav-drawer-content`)],O);var k,A=(0,l.createContext)(`push`),j=(0,l.createContext)(`close`),M=class extends e.t{static{k=this}constructor(...e){super(...e),this.fullscreen=!1,this.breakpoint=`md`}static{this.styles=[d.css`
90
+ :host {
91
+ display: grid;
92
+ grid-template-columns: auto 1fr;
93
+ grid-template-rows: 1fr;
94
+ flex-grow: 1;
95
+ height: 100%;
96
+ overflow: hidden;
97
+ /* Initially hide the component until it's ready */
98
+ visibility: hidden;
99
+ }
100
+
101
+ :host([data-ready]) {
102
+ visibility: visible;
103
+ }
104
+
105
+ :host([fullscreen]) {
106
+ grid-template-columns: 1fr;
107
+ }
108
+ `]}static{this.BREAKPOINTS={sm:640,md:768,lg:1024,xl:1280}}firstUpdated(){this.updateState(window.innerWidth),this.setAttribute(`data-ready`,``),(0,s.fromEvent)(window,`resize`).pipe((0,s.map)(e=>e.target.innerWidth),(0,s.map)(e=>e>=k.BREAKPOINTS[this.breakpoint]),(0,s.distinctUntilChanged)(),(0,s.debounceTime)(100),(0,s.takeUntil)(this.disconnecting)).subscribe(e=>{e?(this.mode=`push`,this.open=`open`):(this.mode=`overlay`,this.open=`close`)}),(0,s.fromEvent)(window,`fullscreen`).pipe((0,s.tap)(e=>{let t=e;this.fullscreen=t.detail}),(0,s.takeUntil)(this.disconnecting)).subscribe(),(0,s.fromEvent)(window,o.SchmancyEvents.NavDrawer_toggle).pipe((0,s.tap)(e=>{e.stopPropagation()}),(0,s.map)(e=>e.detail.state),(0,s.takeUntil)(this.disconnecting),(0,s.debounceTime)(10)).subscribe(e=>{e===`toggle`&&(e=this.open===`open`?`close`:`open`),this.mode===`push`&&e===`close`||(this.open=e)})}updateState(e){let t=e>=k.BREAKPOINTS[this.breakpoint];this.mode=t?`push`:`overlay`,this.open=t?`open`:`close`}render(){return d.html`<slot></slot>`}};e.p([(0,u.property)({type:Boolean,reflect:!0})],M.prototype,`fullscreen`,void 0),e.p([(0,u.property)({type:String,attribute:`breakpoint`})],M.prototype,`breakpoint`,void 0),e.p([(0,l.provide)({context:A}),(0,u.state)()],M.prototype,`mode`,void 0),e.p([(0,l.provide)({context:j}),(0,u.property)()],M.prototype,`open`,void 0),M=k=e.p([(0,u.customElement)(`schmancy-nav-drawer`)],M);var N=`cubic-bezier(0.5, 0.01, 0.25, 1)`,P=class extends e.t{constructor(...e){super(...e),this.width=`220px`,this._initialized=!1}firstUpdated(){this.mode===`overlay`?this.drawerState===`close`?(this.nav.style.transform=`translateX(-100%)`,this.overlay.style.display=`none`):this.drawerState===`open`&&(this.nav.style.transform=`translateX(0)`,this.overlay.style.display=`block`,this.overlay.style.opacity=`0.4`):this.mode===`push`&&(this.nav.style.transform=`translateX(0)`,this.overlay.style.display=`none`),this._initialized=!0}updated(e){this._initialized&&(e.has(`drawerState`)||e.has(`mode`))&&(this.mode===`overlay`?this.drawerState===`open`?this.nav.style.transform!==`translateX(0)`&&(this.openOverlay(),this.showNavDrawer()):this.drawerState===`close`&&this.nav.style.transform!==`translateX(-100%)`&&(this.hideNavDrawer(),this.closeOverlay()):this.mode===`push`&&(this.nav.style.transform!==`translateX(0)`&&this.showNavDrawer(),this.overlay.style.display!==`none`&&this.closeOverlay()))}openOverlay(){this.overlay.style.display=`block`,this.overlay.animate([{opacity:0},{opacity:.4}],{duration:200,easing:N,fill:`forwards`})}closeOverlay(){this.overlay.animate([{opacity:.4},{opacity:0}],{duration:150,easing:N,fill:`forwards`}).onfinish=()=>{this.overlay.style.display=`none`}}showNavDrawer(){this.nav.animate([{transform:`translateX(-100%)`},{transform:`translateX(0)`}],{duration:200,easing:N,fill:`forwards`}).onfinish=()=>{this.nav.style.transform=`translateX(0)`}}hideNavDrawer(){this.nav.animate([{transform:`translateX(0)`},{transform:`translateX(-100%)`}],{duration:200,easing:N,fill:`forwards`}).onfinish=()=>{this.nav.style.transform=`translateX(-100%)`}}handleOverlayClick(){window.dispatchEvent(new CustomEvent(o.SchmancyEvents.NavDrawer_toggle,{detail:{state:`close`},bubbles:!0,composed:!0}))}render(){let e={"max-w-[360px] w-fit h-full overflow-auto":!0,block:this.mode===`push`,"fixed inset-0 z-50":this.mode===`overlay`},t={width:this.width};return d.html`
109
+ <nav
110
+ style=${this.styleMap(t)}
111
+ class="${this.classMap({...e})}"
112
+ ${n.S({bgColor:a.t.sys.color.surface.containerLowest})}
113
+ >
114
+ <slot></slot>
115
+ </nav>
116
+ <div
117
+ id="overlay"
118
+ ${n.S({bgColor:a.t.sys.color.scrim})}
119
+ @click=${this.handleOverlayClick}
120
+ class="${this.classMap({"fixed inset-0 z-49 hidden":!0})}"
121
+ ></div>
122
+ `}};e.p([(0,l.consume)({context:A,subscribe:!0}),(0,u.state)()],P.prototype,`mode`,void 0),e.p([(0,l.consume)({context:j,subscribe:!0}),(0,u.state)()],P.prototype,`drawerState`,void 0),e.p([(0,u.query)(`#overlay`)],P.prototype,`overlay`,void 0),e.p([(0,u.query)(`nav`)],P.prototype,`nav`,void 0),e.p([(0,u.property)({type:String})],P.prototype,`width`,void 0),e.p([(0,u.state)()],P.prototype,`_initialized`,void 0),P=e.p([(0,u.customElement)(`schmancy-nav-drawer-navbar`)],P);var F=class extends e.t{constructor(...e){super(...e),this.icon=``,this.label=``,this.badge=``,this.active$=new s.BehaviorSubject(!1),this.disabled=!1,this.hideLabels=!1,this.ripples=[],this.addRippleEffect=e=>{if(this.disabled)return;let t=this.shadowRoot?.querySelector(`.w-16.h-8`);if(t){let n=t.getBoundingClientRect(),r={x:e.clientX-n.left,y:e.clientY-n.top,id:Date.now()};this.ripples=[...this.ripples,r],(0,s.timer)(600).pipe((0,c.tap)(()=>{this.ripples=this.ripples.filter(e=>e.id!==r.id)}),(0,c.takeUntil)(this.disconnecting)).subscribe()}},this.handleClick=e=>{if(this.disabled)return e.preventDefault(),void e.stopPropagation();this.addRippleEffect(e)},this.handleKeyDown=e=>{this.disabled||e.key!==`Enter`&&e.key!==` `||e.preventDefault()}}static{this.styles=[d.css`
123
+ :host {
124
+ display: flex;
125
+ flex: 1;
126
+ min-width: 48px;
127
+ max-width: 168px;
128
+ user-select: none;
129
+ -webkit-tap-highlight-color: transparent;
130
+ }
131
+
132
+ :host([disabled]) {
133
+ pointer-events: none;
134
+ }
135
+
136
+ button {
137
+ font-family: inherit;
138
+ border: none;
139
+ background: none;
140
+ width: 100%;
141
+ padding: 0;
142
+ margin: 0;
143
+ text-align: center;
144
+ color: inherit;
145
+ }
146
+
147
+ button:focus {
148
+ outline: none;
149
+ }
150
+
151
+ button:focus-visible {
152
+ outline: 2px solid var(--focus-color);
153
+ outline-offset: 2px;
154
+ border-radius: 8px;
155
+ }
156
+
157
+ /* Ripple animation */
158
+ @keyframes ripple {
159
+ to {
160
+ transform: scale(4);
161
+ opacity: 0;
162
+ }
163
+ }
164
+
165
+ .ripple-effect {
166
+ position: absolute;
167
+ border-radius: 50%;
168
+ width: 20px;
169
+ height: 20px;
170
+ background-color: currentColor;
171
+ opacity: 0.25;
172
+ animation: ripple 0.6s ease-out;
173
+ pointer-events: none;
174
+ }
175
+ `]}get active(){return this.active$.value}set active(e){this.active$.next(e)}setActive(e){this.active=e}connectedCallback(){super.connectedCallback(),this.active$.pipe((0,c.takeUntil)(this.disconnecting)).subscribe(()=>{this.requestUpdate()}),this.setupNavigationStream()}setupNavigationStream(){let e=this.shadowRoot?.querySelector(`button`);e&&(0,s.merge)((0,s.fromEvent)(e,`click`).pipe((0,c.filter)(()=>!this.disabled)),(0,s.fromEvent)(e,`keydown`).pipe((0,c.filter)(()=>!this.disabled),(0,c.filter)(e=>e.key===`Enter`||e.key===` `),(0,c.tap)(e=>e.preventDefault()))).pipe((0,c.tap)(()=>{this.dispatchEvent(new CustomEvent(`bar-item-click`,{detail:{icon:this.icon,label:this.label,active:this.active},bubbles:!0,composed:!0}))}),(0,c.takeUntil)(this.disconnecting)).subscribe()}formatBadge(e){let t=Number(e);return isNaN(t)?e.slice(0,3):t>99?`99+`:String(t)}firstUpdated(){this.setupNavigationStream()}render(){let e=this.querySelector(`[slot]`)||this.textContent?.trim()&&!this.label,t=this.badge?this.formatBadge(this.badge):``,r=t&&t!==`0`,i=this.querySelector(`[slot="icon"]`),o={"relative flex flex-col items-center justify-center":!0,"flex-1 min-w-[48px] max-w-[168px]":!0,"py-2 px-1 cursor-pointer":!this.disabled,"transition-all duration-200":!0,"hover:bg-surface-containerHigh":!this.disabled&&!this.active,"cursor-not-allowed opacity-38":this.disabled,"outline-none":!0,"focus-visible:outline-2 focus-visible:outline-offset-2":!0},s={"w-16 h-8 rounded-2xl":!0,"flex items-center justify-center":!0,"transition-all duration-200":!0,"bg-secondary-container":this.active,"group-hover:bg-surface-containerHighest":!this.active&&!this.disabled,"relative overflow-hidden":!0},c={"absolute top-0 right-3":!0,"min-w-[6px] h-1.5":!r,"min-w-[16px] h-4":r,"rounded-full":!r,"rounded-lg":r,"flex items-center justify-center":r,"px-1":r,"transition-all duration-200":!0,"z-10":!0},l=this.active?{color:a.t.sys.color.secondary.onContainer}:{color:a.t.sys.color.surface.onVariant},u={"--focus-color":a.t.sys.color.primary.default};return d.html`
176
+ <button
177
+ type="button"
178
+ class=${this.classMap(o)}
179
+ @click=${this.handleClick}
180
+ @keydown=${this.handleKeyDown}
181
+ ?disabled=${this.disabled}
182
+ aria-pressed=${this.active}
183
+ aria-label=${this.label||`Navigation item`}
184
+ style=${this.styleMap({...u,"outline-color":`var(--focus-color)`})}
185
+ ${n.S(l)}
186
+ >
187
+ <!-- Icon with indicator background -->
188
+ <div class=${this.classMap(s)}>
189
+ <!-- Ripple effects -->
190
+ ${this.ripples.map(e=>d.html`
191
+ <span
192
+ class="ripple-effect"
193
+ style=${this.styleMap({left:`${e.x}px`,top:`${e.y}px`,transform:`translate(-50%, -50%)`})}
194
+ ></span>
195
+ `)}
196
+
197
+ ${i?d.html`<slot name="icon"></slot>`:this.icon?d.html`
198
+ <schmancy-icon
199
+ .fill=${+!!this.active}
200
+ class="relative z-10 flex items-center justify-center transition-all duration-200"
201
+ style="--schmancy-icon-size: 24px;"
202
+ aria-hidden="true"
203
+ >
204
+ ${this.icon}
205
+ </schmancy-icon>
206
+ `:e?d.html`<slot></slot>`:``}
207
+ </div>
208
+
209
+ <!-- Label below icon -->
210
+ ${!this.hideLabels&&this.label?d.html`
211
+ <span class=${this.classMap({"text-xs font-medium leading-4 mt-1":!0,"text-center max-w-full":!0,"overflow-hidden text-ellipsis whitespace-nowrap":!0,"transition-all duration-200":!0})}>${this.label}</span>
212
+ `:``}
213
+
214
+ <!-- Badge -->
215
+ ${r?d.html`
216
+ <span
217
+ class=${this.classMap(c)}
218
+ aria-label="${t} notifications"
219
+ ${n.S({bgColor:a.t.sys.color.error.default,color:a.t.sys.color.error.on})}
220
+ >
221
+ <span class="text-[10px] font-medium leading-none">${t}</span>
222
+ </span>
223
+ `:this.badge?d.html`
224
+ <span
225
+ class=${this.classMap(c)}
226
+ aria-label="Has notifications"
227
+ ${n.S({bgColor:a.t.sys.color.error.default})}
228
+ ></span>
229
+ `:``}
230
+ </button>
231
+ `}};e.p([(0,u.property)({type:String})],F.prototype,`icon`,void 0),e.p([(0,u.property)({type:String})],F.prototype,`label`,void 0),e.p([(0,u.property)({type:String})],F.prototype,`badge`,void 0),e.p([(0,u.property)({type:Boolean,reflect:!0})],F.prototype,`active`,null),e.p([(0,u.property)({type:Boolean,reflect:!0})],F.prototype,`disabled`,void 0),e.p([(0,u.property)({type:Boolean,reflect:!0})],F.prototype,`hideLabels`,void 0),e.p([(0,u.state)()],F.prototype,`ripples`,void 0),F=e.p([(0,u.customElement)(`schmancy-navigation-bar-item`)],F);var I=class extends e.t{constructor(...e){super(...e),this.activeIndex$=new s.BehaviorSubject(-1),this.hideLabels=!1,this.elevation=2,this.hideOnScroll=!1,this.focusedIndex=-1,this.isHiddenByScroll=!1,this.isFullscreen=!1,this.SCROLL_THRESHOLD=10,this.mobileMediaQuery=null,this.visibility$=new s.Subject,this.handleItemClick=e=>{let t=this.getItems(),n=e.target,r=t.findIndex(e=>e===n);if(r===-1)return;if(this.activeIndex===r)return void this.dispatchEvent(new CustomEvent(o.SchmancyEvents.NavDrawer_toggle,{detail:{state:`toggle`},bubbles:!0,composed:!0}));let i=this.activeIndex;this.activeIndex=r,this.dispatchEvent(new CustomEvent(`navigation-change`,{detail:{oldIndex:i,newIndex:r,item:n},bubbles:!0,composed:!0}))},this.handleKeyDown=e=>{let t=this.getItems(),n=this.focusedIndex===-1?this.activeIndex:this.focusedIndex;switch(e.key){case`ArrowLeft`:e.preventDefault(),n>0&&this.focusItem(n-1);break;case`ArrowRight`:e.preventDefault(),n<t.length-1&&this.focusItem(n+1);break;case`Home`:e.preventDefault(),this.focusItem(0);break;case`End`:e.preventDefault(),this.focusItem(t.length-1);break;case`Enter`:case` `:e.preventDefault(),this.focusedIndex!==-1&&t[this.focusedIndex]?.click()}}}static{this.styles=[d.css`
232
+ :host {
233
+ display: block;
234
+ transition: transform 0.3s ease-in-out;
235
+ }
236
+
237
+ :host([hide-on-scroll]) {
238
+ transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
239
+ }
240
+
241
+ /* Support 3-7 items with equal distribution */
242
+ ::slotted(schmancy-navigation-bar-item) {
243
+ flex: 1;
244
+ max-width: 168px; /* Prevent items from being too wide */
245
+ }
246
+
247
+ /* Accessibility focus indicators */
248
+ :host(:focus-within) {
249
+ outline: 2px solid var(--schmancy-sys-color-primary);
250
+ outline-offset: -2px;
251
+ }
252
+ `]}get activeIndex(){return this.activeIndex$.value}set activeIndex(e){this.activeIndex$.next(e)}getItems(){let e=this.shadowRoot?.querySelector(`slot`);return e?e.assignedElements({flatten:!0}).filter(e=>e.tagName.toLowerCase()===`schmancy-navigation-bar-item`):[]}isMobileViewport(){return this.mobileMediaQuery?.matches??!1}updateBottomOffset(){let e=!this.isFullscreen&&this.isMobileViewport();r.n.setBottomOffset(e?80:0)}connectedCallback(){super.connectedCallback(),this.mobileMediaQuery=window.matchMedia(`(max-width: 767px)`),(0,s.fromEvent)(this.mobileMediaQuery,`change`).pipe((0,c.tap)(()=>this.updateBottomOffset()),(0,c.takeUntil)(this.disconnecting)).subscribe(),r.n.fullscreen$.pipe((0,c.tap)(e=>{this.isFullscreen=e,this.visibility$.next(!this.isFullscreen&&!this.isHiddenByScroll),this.updateBottomOffset()}),(0,c.takeUntil)(this.disconnecting)).subscribe(),this.updateBottomOffset(),(0,s.fromEvent)(this,`bar-item-click`).pipe((0,c.tap)(e=>this.handleItemClick(e)),(0,c.takeUntil)(this.disconnecting)).subscribe(),(0,s.fromEvent)(this,`keydown`).pipe((0,c.tap)(e=>this.handleKeyDown(e)),(0,c.takeUntil)(this.disconnecting)).subscribe(),this.activeIndex$.pipe((0,c.takeUntil)(this.disconnecting)).subscribe(e=>{this.updateActiveStates(e)}),this.hideOnScroll&&this.setupScrollListener(),this.updateItems()}disconnectedCallback(){super.disconnectedCallback(),r.n.setBottomOffset(0),this.mobileMediaQuery=null}setupScrollListener(){(0,s.fromEvent)(window,`scroll`).pipe((0,c.throttleTime)(100),(0,c.map)(()=>window.scrollY),(0,c.pairwise)(),(0,c.filter)(([e,t])=>Math.abs(t-e)>this.SCROLL_THRESHOLD),(0,c.tap)(([e,t])=>{let n=t>e,r=t<e,i=this.isHiddenByScroll;n&&!this.isHiddenByScroll?this.isHiddenByScroll=!0:r&&this.isHiddenByScroll&&(this.isHiddenByScroll=!1),t<=this.SCROLL_THRESHOLD&&(this.isHiddenByScroll=!1),i!==this.isHiddenByScroll&&this.visibility$.next(!this.isHiddenByScroll&&!this.isFullscreen)}),(0,c.takeUntil)(this.disconnecting)).subscribe()}focusItem(e){let t=this.getItems();t[e]&&(this.focusedIndex=e,t[e].focus())}updateItems(){let e=this.shadowRoot?.querySelector(`slot`);if(e){let t=()=>{this.updateActiveStates(this.activeIndex)};e.addEventListener(`slotchange`,t),t()}}addBoatItem(e){let t=this.querySelector(`[value="${e.id}"]`);if(t)return t;let n=document.createElement(`schmancy-navigation-bar-item`);return n.setAttribute(`value`,e.id),n.innerHTML=`\n\t\t\t<schmancy-icon>${e.icon||`widgets`}</schmancy-icon>\n\t\t\t<span>${e.title}</span>\n\t\t`,this.appendChild(n),n}updateActiveStates(e){this.getItems().forEach((t,n)=>{t.setActive(n===e),t.hideLabels=this.hideLabels,t.tabIndex=n===e?0:-1})}updated(e){super.updated(e),e.has(`hideLabels`)&&this.updateActiveStates(this.activeIndex),e.has(`hideOnScroll`)&&(this.hideOnScroll&&!e.get(`hideOnScroll`)?this.setupScrollListener():this.hideOnScroll||(this.isHiddenByScroll=!1,this.visibility$.next(!this.isFullscreen)))}render(){let e=this.isFullscreen||this.isHiddenByScroll,t={"h-20":!0,"flex items-center justify-around":!0,"px-2 py-3 box-border":!0,"transition-all duration-300 ease-in-out":!0,"z-10":!0,"shadow-none":this.elevation===0,"shadow-sm":this.elevation===1,"shadow-md":this.elevation===2,"shadow-lg":this.elevation===3,"shadow-xl":this.elevation===4,"shadow-2xl":this.elevation===5},r=e?`translateY(100%)`:`translateY(0)`;return d.html`
253
+ <nav
254
+ class=${this.classMap(t)}
255
+ role="navigation"
256
+ aria-label="Main navigation"
257
+ aria-hidden=${e}
258
+ style="transform: ${r};"
259
+ ${n.S({bgColor:a.t.sys.color.surface.container,color:a.t.sys.color.surface.on})}
260
+ >
261
+ <slot></slot>
262
+ </nav>
263
+ `}};e.p([(0,u.property)({type:Number})],I.prototype,`activeIndex`,null),e.p([(0,u.property)({type:Boolean,reflect:!0})],I.prototype,`hideLabels`,void 0),e.p([(0,u.property)({type:Number,reflect:!0})],I.prototype,`elevation`,void 0),e.p([(0,u.property)({type:Boolean,reflect:!0})],I.prototype,`hideOnScroll`,void 0),e.p([(0,u.state)()],I.prototype,`focusedIndex`,void 0),e.p([(0,u.state)()],I.prototype,`isHiddenByScroll`,void 0),e.p([(0,u.state)()],I.prototype,`isFullscreen`,void 0),I=e.p([(0,u.customElement)(`schmancy-navigation-bar`)],I);var L=`whereAreYouRicky`,R=`hereMorty`,z=new class{constructor(){this.activeTeleportations=new Map,this.flipRequests=new s.Subject,this.find=e=>(0,s.zip)([(0,s.fromEvent)(window,R).pipe((0,s.filter)(t=>!!t.detail.component.uuid&&!!e.id&&t.detail.component.id===e.id&&t.detail.component.uuid!==e.uuid),(0,s.map)(e=>e.detail.component),(0,s.take)(1)),(0,s.of)(e).pipe((0,s.tap)(()=>{window.dispatchEvent(new CustomEvent(L,{detail:{id:e.id,callerID:e.uuid}}))}))]).pipe((0,s.map)(([e])=>e),(0,s.timeout)(0)),this.flip=e=>{let{from:t,to:n}=e,r=n.element.style.zIndex;n.element.style.transformOrigin=`top left`,n.element.style.setProperty(`visibility`,`visible`),n.element.style.zIndex=`1000`;let i=[{transform:`translate(${t.rect.left-n.rect.left}px, ${t.rect.top-n.rect.top}px) scale(${t.rect.width/n.rect.width}, ${t.rect.height/n.rect.height})`},{transform:`translate(0, 0) scale(1, 1)`}];n.element.animate(i,{duration:250,delay:10,easing:`cubic-bezier(0.455, 0.03, 0.515, 0.955)`}).onfinish=()=>{n.element.style.zIndex=r,n.element.style.transformOrigin=``}},this.flipRequests.pipe((0,s.bufferTime)(1),(0,s.map)(e=>e.map(({from:e,to:t,host:n},r)=>({from:e,to:t,host:n,i:r}))),(0,s.concatMap)(e=>(0,s.zip)(e.map(e=>(0,s.of)(this.flip(e)))))).subscribe()}};function B(e){return(0,s.interval)(50).pipe((0,c.map)(()=>e.getBoundingClientRect()),(0,c.distinctUntilChanged)((e,t)=>e.width===t.width&&e.height===t.height&&e.top===t.top&&e.right===t.right&&e.bottom===t.bottom&&e.left===t.left),(0,c.take)(1))}var V=class extends e.t{constructor(...e){super(...e),this.uuid=Math.floor(Math.random()*Date.now()),this.delay=0,this.debugging=!1}static{this.styles=[d.css``]}get _slottedChildren(){return this.shadowRoot.querySelector(`slot`).assignedElements({flatten:!0})}connectedCallback(){if(this.id===void 0)throw Error(`id is required`);super.connectedCallback(),(0,s.merge)((0,s.fromEvent)(window,t.b).pipe((0,s.tap)({next:()=>{this.dispatchEvent(new CustomEvent(t.x,{detail:{component:this},bubbles:!0,composed:!0}))}})),(0,s.fromEvent)(window,L).pipe((0,s.tap)({next:e=>{e.detail.id===this.id&&this.uuid&&e.detail.callerID!==this.uuid&&this.dispatchEvent(new CustomEvent(R,{detail:{component:this},bubbles:!0,composed:!0}))}}))).pipe((0,s.takeUntil)(this.disconnecting)).subscribe()}async firstUpdated(){(0,s.of)(z.activeTeleportations.get(this.id)).pipe((0,s.filter)(e=>!!e),(0,s.takeUntil)(this.disconnecting),(0,s.throwIfEmpty)()).subscribe({next:e=>{this.style.setProperty(`visibility`,`hidden`),B(this).pipe((0,s.takeUntil)(this.disconnecting)).subscribe({next:t=>{z.activeTeleportations.set(this.id,t),z.flipRequests.next({from:{rect:e},to:{rect:t,element:this._slottedChildren[0]},host:this})}})},error:()=>{this.style.setProperty(`visibility`,`visible`),B(this).pipe((0,s.takeUntil)(this.disconnecting)).subscribe({next:e=>{z.activeTeleportations.set(this.id,e)}})},complete:()=>{}})}render(){return d.html`<slot></slot>`}};e.p([(0,u.property)({type:Number,reflect:!0})],V.prototype,`uuid`,void 0),e.p([(0,u.property)({type:String})],V.prototype,`id`,void 0),e.p([(0,u.property)({type:Number})],V.prototype,`delay`,void 0),V=e.p([(0,u.customElement)(`schmancy-teleport`)],V),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return y}});