@francofantomius/material-components 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +2 -1
  3. package/custom-elements.json +1049 -300
  4. package/dist/chunks/{account-menu-Dau0UHTl.js → account-menu-Bo7NghIm.js} +181 -223
  5. package/dist/chunks/{account-menu-Dau0UHTl.js.map → account-menu-Bo7NghIm.js.map} +1 -1
  6. package/dist/chunks/app-drawer-DjKSuatE.js +855 -0
  7. package/dist/chunks/{app-drawer-Du1ePzxZ.js.map → app-drawer-DjKSuatE.js.map} +1 -1
  8. package/dist/chunks/{badge-G4EjcMoy.js → badge-sZzNelZz.js} +30 -34
  9. package/dist/chunks/{badge-G4EjcMoy.js.map → badge-sZzNelZz.js.map} +1 -1
  10. package/dist/chunks/{bottom-sheet-q79BBYAj.js → bottom-sheet-BGgbUmKd.js} +98 -109
  11. package/dist/chunks/{bottom-sheet-q79BBYAj.js.map → bottom-sheet-BGgbUmKd.js.map} +1 -1
  12. package/dist/chunks/{button-D2vn7kJ8.js → button-DeQQlYds.js} +62 -72
  13. package/dist/chunks/{button-D2vn7kJ8.js.map → button-DeQQlYds.js.map} +1 -1
  14. package/dist/chunks/button-group-R2jN8FXK.js +136 -0
  15. package/dist/chunks/{button-group-CNqvJx1n.js.map → button-group-R2jN8FXK.js.map} +1 -1
  16. package/dist/chunks/{card-DVffdPpv.js → card-CVhWizDF.js} +45 -50
  17. package/dist/chunks/{card-DVffdPpv.js.map → card-CVhWizDF.js.map} +1 -1
  18. package/dist/chunks/{carousel-item-BG6kjjjk.js → carousel-item-DNp2zhP9.js} +62 -73
  19. package/dist/chunks/{carousel-item-BG6kjjjk.js.map → carousel-item-DNp2zhP9.js.map} +1 -1
  20. package/dist/chunks/{checkbox-BqlboAHd.js → checkbox-CsqUHVOF.js} +59 -64
  21. package/dist/chunks/{checkbox-BqlboAHd.js.map → checkbox-CsqUHVOF.js.map} +1 -1
  22. package/dist/chunks/{chip-CI1ZINnr.js → chip-B5c-I8bj.js} +56 -63
  23. package/dist/chunks/{chip-CI1ZINnr.js.map → chip-B5c-I8bj.js.map} +1 -1
  24. package/dist/chunks/code-CM6hIZNx.js +1531 -0
  25. package/dist/chunks/{code-C5UFBkCh.js.map → code-CM6hIZNx.js.map} +1 -1
  26. package/dist/chunks/date-picker-B15_rR0f.js +774 -0
  27. package/dist/chunks/date-picker-B15_rR0f.js.map +1 -0
  28. package/dist/chunks/decorate-DknOJ8FJ.js +40 -0
  29. package/dist/chunks/{decorate-DXuynaiA.js.map → decorate-DknOJ8FJ.js.map} +1 -1
  30. package/dist/chunks/{dialog-DGVEE5m_.js → dialog-Czknf8dl.js} +47 -52
  31. package/dist/chunks/{dialog-DGVEE5m_.js.map → dialog-Czknf8dl.js.map} +1 -1
  32. package/dist/chunks/divider-DIyCOosa.js +78 -0
  33. package/dist/chunks/{divider-DNepwoZv.js.map → divider-DIyCOosa.js.map} +1 -1
  34. package/dist/chunks/{fab-C9j3WBHE.js → fab-aZC0-lHo.js} +38 -44
  35. package/dist/chunks/{fab-C9j3WBHE.js.map → fab-aZC0-lHo.js.map} +1 -1
  36. package/dist/chunks/{fab-menu.css-3pu930sZ.js → fab-menu.css-BdVg1k4c.js} +5 -6
  37. package/dist/chunks/{fab-menu.css-3pu930sZ.js.map → fab-menu.css-BdVg1k4c.js.map} +1 -1
  38. package/dist/chunks/focus-ring-K6SY_mIm.js +69 -0
  39. package/dist/chunks/{focus-ring-CuiJuM-y.js.map → focus-ring-K6SY_mIm.js.map} +1 -1
  40. package/dist/chunks/form-associated-Do5uXckv.js +69 -0
  41. package/dist/chunks/{form-associated-Cty_ZaS9.js.map → form-associated-Do5uXckv.js.map} +1 -1
  42. package/dist/chunks/icon-FvKeXi61.js +59 -0
  43. package/dist/chunks/{icon-DrNqcNEL.js.map → icon-FvKeXi61.js.map} +1 -1
  44. package/dist/chunks/{icon-button-BQz73GLa.js → icon-button-CulnCZpZ.js} +58 -67
  45. package/dist/chunks/{icon-button-BQz73GLa.js.map → icon-button-CulnCZpZ.js.map} +1 -1
  46. package/dist/chunks/{list-D8olR7oZ.js → list-D7yrbJRL.js} +64 -72
  47. package/dist/chunks/{list-D8olR7oZ.js.map → list-D7yrbJRL.js.map} +1 -1
  48. package/dist/chunks/{loading-indicator-CvWnZr9o.js → loading-indicator-D9AyxNQh.js} +41 -46
  49. package/dist/chunks/{loading-indicator-CvWnZr9o.js.map → loading-indicator-D9AyxNQh.js.map} +1 -1
  50. package/dist/chunks/{menu-item-BBSp5Cqc.js → menu-item-C3entPo7.js} +77 -91
  51. package/dist/chunks/{menu-item-BBSp5Cqc.js.map → menu-item-C3entPo7.js.map} +1 -1
  52. package/dist/chunks/{navigation-bar-item-C9DfOEzg.js → navigation-bar-item-CWHCQeNw.js} +98 -115
  53. package/dist/chunks/{navigation-bar-item-C9DfOEzg.js.map → navigation-bar-item-CWHCQeNw.js.map} +1 -1
  54. package/dist/chunks/{navigation-drawer-CKl44Ef5.js → navigation-drawer-pGer0t4z.js} +116 -138
  55. package/dist/chunks/{navigation-drawer-CKl44Ef5.js.map → navigation-drawer-pGer0t4z.js.map} +1 -1
  56. package/dist/chunks/{navigation-rail-item-6pdhNHJK.js → navigation-rail-item-CWvGjLjC.js} +70 -86
  57. package/dist/chunks/{navigation-rail-item-6pdhNHJK.js.map → navigation-rail-item-CWvGjLjC.js.map} +1 -1
  58. package/dist/chunks/{player-C4ydiIpr.js → player-dT08kxeG.js} +423 -466
  59. package/dist/chunks/{player-C4ydiIpr.js.map → player-dT08kxeG.js.map} +1 -1
  60. package/dist/chunks/{progress-LQmLMDjX.js → progress-etZuX_VD.js} +46 -53
  61. package/dist/chunks/{progress-LQmLMDjX.js.map → progress-etZuX_VD.js.map} +1 -1
  62. package/dist/chunks/radio-jPCwykIa.js +197 -0
  63. package/dist/chunks/{radio-Bily78NT.js.map → radio-jPCwykIa.js.map} +1 -1
  64. package/dist/chunks/ripple-CBOKeVfm.js +132 -0
  65. package/dist/chunks/{ripple-squbKHhj.js.map → ripple-CBOKeVfm.js.map} +1 -1
  66. package/dist/chunks/{search-bar-fUD0qU2P.js → search-bar-B6xxVT7u.js} +244 -203
  67. package/dist/chunks/search-bar-B6xxVT7u.js.map +1 -0
  68. package/dist/chunks/segmented-button-Fon9kOHV.js +253 -0
  69. package/dist/chunks/{segmented-button-B0BvGSQ7.js.map → segmented-button-Fon9kOHV.js.map} +1 -1
  70. package/dist/chunks/{side-sheet-S2w081AK.js → side-sheet-sQ8qGKVm.js} +73 -81
  71. package/dist/chunks/{side-sheet-S2w081AK.js.map → side-sheet-sQ8qGKVm.js.map} +1 -1
  72. package/dist/chunks/slider-OIyEcUU9.js +448 -0
  73. package/dist/chunks/slider-OIyEcUU9.js.map +1 -0
  74. package/dist/chunks/{snackbar-Wsz3BzEY.js → snackbar-Yi6fF9vM.js} +57 -62
  75. package/dist/chunks/{snackbar-Wsz3BzEY.js.map → snackbar-Yi6fF9vM.js.map} +1 -1
  76. package/dist/chunks/{split-button-DUfjukQY.js → split-button-CLjVJe3I.js} +155 -172
  77. package/dist/chunks/{split-button-DUfjukQY.js.map → split-button-CLjVJe3I.js.map} +1 -1
  78. package/dist/chunks/{switch-DdukrvXb.js → switch-mtu6AVEh.js} +54 -57
  79. package/dist/chunks/{switch-DdukrvXb.js.map → switch-mtu6AVEh.js.map} +1 -1
  80. package/dist/chunks/table-C5rCvdFc.js +724 -0
  81. package/dist/chunks/{table-CqHnneAj.js.map → table-C5rCvdFc.js.map} +1 -1
  82. package/dist/chunks/tabs-C0mtURlT.js +182 -0
  83. package/dist/chunks/{tabs-BfOtoeir.js.map → tabs-C0mtURlT.js.map} +1 -1
  84. package/dist/chunks/{text-field-hN6-2HQy.js → text-field-MifFD7uk.js} +92 -110
  85. package/dist/chunks/{text-field-hN6-2HQy.js.map → text-field-MifFD7uk.js.map} +1 -1
  86. package/dist/chunks/time-picker-JTcLcJuz.js +810 -0
  87. package/dist/chunks/time-picker-JTcLcJuz.js.map +1 -0
  88. package/dist/chunks/{toolbar-DXVQbQKJ.js → toolbar-CsxKc2Yd.js} +48 -55
  89. package/dist/chunks/{toolbar-DXVQbQKJ.js.map → toolbar-CsxKc2Yd.js.map} +1 -1
  90. package/dist/chunks/tooltip-Ds3lNowS.js +380 -0
  91. package/dist/chunks/{tooltip-CE7JMHMu.js.map → tooltip-Ds3lNowS.js.map} +1 -1
  92. package/dist/chunks/{top-app-bar-Dgbp6CFv.js → top-app-bar-TrnjKzOX.js} +52 -53
  93. package/dist/chunks/top-app-bar-TrnjKzOX.js.map +1 -0
  94. package/dist/components/account-menu/account-menu.js +2 -8
  95. package/dist/components/app-drawer/app-drawer.js +2 -9
  96. package/dist/components/badge/badge.js +2 -4
  97. package/dist/components/bottom-sheet/bottom-sheet.js +2 -4
  98. package/dist/components/button/button.js +2 -4
  99. package/dist/components/button-group/button-group.js +2 -4
  100. package/dist/components/card/card.js +2 -4
  101. package/dist/components/carousel/carousel-item.js +2 -4
  102. package/dist/components/carousel/carousel.js +214 -232
  103. package/dist/components/carousel/carousel.js.map +1 -1
  104. package/dist/components/checkbox/checkbox.js +2 -4
  105. package/dist/components/chip/chip.js +2 -5
  106. package/dist/components/code/code.js +2 -5
  107. package/dist/components/date-picker/date-picker.js +2 -4
  108. package/dist/components/dialog/dialog.js +2 -4
  109. package/dist/components/divider/divider.js +2 -4
  110. package/dist/components/fab/fab.js +2 -4
  111. package/dist/components/fab-menu/fab-menu-item.js +53 -61
  112. package/dist/components/fab-menu/fab-menu-item.js.map +1 -1
  113. package/dist/components/fab-menu/fab-menu.js +98 -111
  114. package/dist/components/fab-menu/fab-menu.js.map +1 -1
  115. package/dist/components/icon/icon.js +2 -4
  116. package/dist/components/icon-button/icon-button.js +2 -4
  117. package/dist/components/list/list.js +2 -5
  118. package/dist/components/loading-indicator/loading-indicator.js +2 -4
  119. package/dist/components/menu/menu-item.js +2 -4
  120. package/dist/components/menu/menu.js +165 -183
  121. package/dist/components/menu/menu.js.map +1 -1
  122. package/dist/components/navigation-bar/navigation-bar-item.js +2 -5
  123. package/dist/components/navigation-bar/navigation-bar.js +131 -143
  124. package/dist/components/navigation-bar/navigation-bar.js.map +1 -1
  125. package/dist/components/navigation-drawer/navigation-drawer.js +2 -8
  126. package/dist/components/navigation-rail/navigation-rail-item.js +2 -5
  127. package/dist/components/navigation-rail/navigation-rail.js +92 -102
  128. package/dist/components/navigation-rail/navigation-rail.js.map +1 -1
  129. package/dist/components/player/player.js +2 -7
  130. package/dist/components/progress/progress.js +2 -5
  131. package/dist/components/radio/radio.js +2 -5
  132. package/dist/components/search-bar/search-bar.js +2 -5
  133. package/dist/components/segmented-button/segmented-button.js +2 -5
  134. package/dist/components/side-sheet/side-sheet.js +2 -4
  135. package/dist/components/slider/slider.js +2 -4
  136. package/dist/components/snackbar/snackbar.js +2 -4
  137. package/dist/components/split-button/split-button.js +2 -4
  138. package/dist/components/switch/switch.js +2 -4
  139. package/dist/components/table/table.js +2 -13
  140. package/dist/components/tabs/tabs.js +2 -5
  141. package/dist/components/text-field/text-field.js +2 -4
  142. package/dist/components/time-picker/time-picker.js +2 -4
  143. package/dist/components/toolbar/toolbar.js +2 -4
  144. package/dist/components/tooltip/tooltip.js +2 -4
  145. package/dist/components/top-app-bar/top-app-bar.js +2 -5
  146. package/dist/index.js +52 -150
  147. package/dist/internal/focus-ring/focus-ring.js +2 -4
  148. package/dist/internal/ripple/ripple.js +2 -4
  149. package/dist/tokens/index.js +468 -314
  150. package/dist/tokens/index.js.map +1 -1
  151. package/llms.txt +74 -8
  152. package/package.json +2 -14
  153. package/dist/chunks/app-drawer-Du1ePzxZ.js +0 -903
  154. package/dist/chunks/button-group-CNqvJx1n.js +0 -143
  155. package/dist/chunks/code-C5UFBkCh.js +0 -1830
  156. package/dist/chunks/date-picker-DJeHi4w-.js +0 -777
  157. package/dist/chunks/date-picker-DJeHi4w-.js.map +0 -1
  158. package/dist/chunks/decorate-DXuynaiA.js +0 -39
  159. package/dist/chunks/divider-DNepwoZv.js +0 -82
  160. package/dist/chunks/focus-ring-CuiJuM-y.js +0 -71
  161. package/dist/chunks/form-associated-Cty_ZaS9.js +0 -73
  162. package/dist/chunks/icon-DrNqcNEL.js +0 -62
  163. package/dist/chunks/radio-Bily78NT.js +0 -205
  164. package/dist/chunks/ripple-squbKHhj.js +0 -135
  165. package/dist/chunks/search-bar-fUD0qU2P.js.map +0 -1
  166. package/dist/chunks/segmented-button-B0BvGSQ7.js +0 -265
  167. package/dist/chunks/slider-D-mnO8yQ.js +0 -450
  168. package/dist/chunks/slider-D-mnO8yQ.js.map +0 -1
  169. package/dist/chunks/table-CqHnneAj.js +0 -773
  170. package/dist/chunks/tabs-BfOtoeir.js +0 -191
  171. package/dist/chunks/time-picker-CZnb2sWz.js +0 -785
  172. package/dist/chunks/time-picker-CZnb2sWz.js.map +0 -1
  173. package/dist/chunks/tooltip-CE7JMHMu.js +0 -398
  174. package/dist/chunks/top-app-bar-Dgbp6CFv.js.map +0 -1
  175. package/dist/components/account-menu/account-menu.css.d.ts +0 -3
  176. package/dist/components/account-menu/account-menu.css.d.ts.map +0 -1
  177. package/dist/components/account-menu/account-menu.d.ts +0 -111
  178. package/dist/components/account-menu/account-menu.d.ts.map +0 -1
  179. package/dist/components/app-drawer/app-drawer.css.d.ts +0 -3
  180. package/dist/components/app-drawer/app-drawer.css.d.ts.map +0 -1
  181. package/dist/components/app-drawer/app-drawer.d.ts +0 -173
  182. package/dist/components/app-drawer/app-drawer.d.ts.map +0 -1
  183. package/dist/components/badge/badge.css.d.ts +0 -2
  184. package/dist/components/badge/badge.css.d.ts.map +0 -1
  185. package/dist/components/badge/badge.d.ts +0 -16
  186. package/dist/components/badge/badge.d.ts.map +0 -1
  187. package/dist/components/bottom-sheet/bottom-sheet.css.d.ts +0 -2
  188. package/dist/components/bottom-sheet/bottom-sheet.css.d.ts.map +0 -1
  189. package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -69
  190. package/dist/components/bottom-sheet/bottom-sheet.d.ts.map +0 -1
  191. package/dist/components/button/button.css.d.ts +0 -2
  192. package/dist/components/button/button.css.d.ts.map +0 -1
  193. package/dist/components/button/button.d.ts +0 -25
  194. package/dist/components/button/button.d.ts.map +0 -1
  195. package/dist/components/button-group/button-group.css.d.ts +0 -2
  196. package/dist/components/button-group/button-group.css.d.ts.map +0 -1
  197. package/dist/components/button-group/button-group.d.ts +0 -28
  198. package/dist/components/button-group/button-group.d.ts.map +0 -1
  199. package/dist/components/card/card.css.d.ts +0 -2
  200. package/dist/components/card/card.css.d.ts.map +0 -1
  201. package/dist/components/card/card.d.ts +0 -18
  202. package/dist/components/card/card.d.ts.map +0 -1
  203. package/dist/components/carousel/carousel-item.d.ts +0 -33
  204. package/dist/components/carousel/carousel-item.d.ts.map +0 -1
  205. package/dist/components/carousel/carousel.css.d.ts +0 -3
  206. package/dist/components/carousel/carousel.css.d.ts.map +0 -1
  207. package/dist/components/carousel/carousel.d.ts +0 -81
  208. package/dist/components/carousel/carousel.d.ts.map +0 -1
  209. package/dist/components/checkbox/checkbox.css.d.ts +0 -2
  210. package/dist/components/checkbox/checkbox.css.d.ts.map +0 -1
  211. package/dist/components/checkbox/checkbox.d.ts +0 -24
  212. package/dist/components/checkbox/checkbox.d.ts.map +0 -1
  213. package/dist/components/chip/chip.css.d.ts +0 -3
  214. package/dist/components/chip/chip.css.d.ts.map +0 -1
  215. package/dist/components/chip/chip.d.ts +0 -27
  216. package/dist/components/chip/chip.d.ts.map +0 -1
  217. package/dist/components/code/code.css.d.ts +0 -2
  218. package/dist/components/code/code.css.d.ts.map +0 -1
  219. package/dist/components/code/code.d.ts +0 -106
  220. package/dist/components/code/code.d.ts.map +0 -1
  221. package/dist/components/code/highlighter.d.ts +0 -8
  222. package/dist/components/code/highlighter.d.ts.map +0 -1
  223. package/dist/components/code/linter.d.ts +0 -44
  224. package/dist/components/code/linter.d.ts.map +0 -1
  225. package/dist/components/date-picker/date-picker.css.d.ts +0 -2
  226. package/dist/components/date-picker/date-picker.css.d.ts.map +0 -1
  227. package/dist/components/date-picker/date-picker.d.ts +0 -59
  228. package/dist/components/date-picker/date-picker.d.ts.map +0 -1
  229. package/dist/components/dialog/dialog.css.d.ts +0 -2
  230. package/dist/components/dialog/dialog.css.d.ts.map +0 -1
  231. package/dist/components/dialog/dialog.d.ts +0 -22
  232. package/dist/components/dialog/dialog.d.ts.map +0 -1
  233. package/dist/components/divider/divider.css.d.ts +0 -2
  234. package/dist/components/divider/divider.css.d.ts.map +0 -1
  235. package/dist/components/divider/divider.d.ts +0 -16
  236. package/dist/components/divider/divider.d.ts.map +0 -1
  237. package/dist/components/fab/fab.css.d.ts +0 -2
  238. package/dist/components/fab/fab.css.d.ts.map +0 -1
  239. package/dist/components/fab/fab.d.ts +0 -19
  240. package/dist/components/fab/fab.d.ts.map +0 -1
  241. package/dist/components/fab-menu/fab-menu-item.d.ts +0 -35
  242. package/dist/components/fab-menu/fab-menu-item.d.ts.map +0 -1
  243. package/dist/components/fab-menu/fab-menu.css.d.ts +0 -3
  244. package/dist/components/fab-menu/fab-menu.css.d.ts.map +0 -1
  245. package/dist/components/fab-menu/fab-menu.d.ts +0 -72
  246. package/dist/components/fab-menu/fab-menu.d.ts.map +0 -1
  247. package/dist/components/icon/icon.css.d.ts +0 -2
  248. package/dist/components/icon/icon.css.d.ts.map +0 -1
  249. package/dist/components/icon/icon.d.ts +0 -15
  250. package/dist/components/icon/icon.d.ts.map +0 -1
  251. package/dist/components/icon-button/icon-button.css.d.ts +0 -2
  252. package/dist/components/icon-button/icon-button.css.d.ts.map +0 -1
  253. package/dist/components/icon-button/icon-button.d.ts +0 -22
  254. package/dist/components/icon-button/icon-button.d.ts.map +0 -1
  255. package/dist/components/list/list.css.d.ts +0 -3
  256. package/dist/components/list/list.css.d.ts.map +0 -1
  257. package/dist/components/list/list.d.ts +0 -25
  258. package/dist/components/list/list.d.ts.map +0 -1
  259. package/dist/components/loading-indicator/loading-indicator.css.d.ts +0 -2
  260. package/dist/components/loading-indicator/loading-indicator.css.d.ts.map +0 -1
  261. package/dist/components/loading-indicator/loading-indicator.d.ts +0 -48
  262. package/dist/components/loading-indicator/loading-indicator.d.ts.map +0 -1
  263. package/dist/components/menu/menu-item.d.ts +0 -41
  264. package/dist/components/menu/menu-item.d.ts.map +0 -1
  265. package/dist/components/menu/menu.css.d.ts +0 -3
  266. package/dist/components/menu/menu.css.d.ts.map +0 -1
  267. package/dist/components/menu/menu.d.ts +0 -91
  268. package/dist/components/menu/menu.d.ts.map +0 -1
  269. package/dist/components/navigation-bar/navigation-bar-item.d.ts +0 -49
  270. package/dist/components/navigation-bar/navigation-bar-item.d.ts.map +0 -1
  271. package/dist/components/navigation-bar/navigation-bar.css.d.ts +0 -3
  272. package/dist/components/navigation-bar/navigation-bar.css.d.ts.map +0 -1
  273. package/dist/components/navigation-bar/navigation-bar.d.ts +0 -50
  274. package/dist/components/navigation-bar/navigation-bar.d.ts.map +0 -1
  275. package/dist/components/navigation-drawer/navigation-drawer.css.d.ts +0 -3
  276. package/dist/components/navigation-drawer/navigation-drawer.css.d.ts.map +0 -1
  277. package/dist/components/navigation-drawer/navigation-drawer.d.ts +0 -76
  278. package/dist/components/navigation-drawer/navigation-drawer.d.ts.map +0 -1
  279. package/dist/components/navigation-rail/navigation-rail-item.d.ts +0 -36
  280. package/dist/components/navigation-rail/navigation-rail-item.d.ts.map +0 -1
  281. package/dist/components/navigation-rail/navigation-rail.css.d.ts +0 -3
  282. package/dist/components/navigation-rail/navigation-rail.css.d.ts.map +0 -1
  283. package/dist/components/navigation-rail/navigation-rail.d.ts +0 -43
  284. package/dist/components/navigation-rail/navigation-rail.d.ts.map +0 -1
  285. package/dist/components/player/player.css.d.ts +0 -2
  286. package/dist/components/player/player.css.d.ts.map +0 -1
  287. package/dist/components/player/player.d.ts +0 -99
  288. package/dist/components/player/player.d.ts.map +0 -1
  289. package/dist/components/progress/progress.css.d.ts +0 -2
  290. package/dist/components/progress/progress.css.d.ts.map +0 -1
  291. package/dist/components/progress/progress.d.ts +0 -21
  292. package/dist/components/progress/progress.d.ts.map +0 -1
  293. package/dist/components/radio/radio.css.d.ts +0 -3
  294. package/dist/components/radio/radio.css.d.ts.map +0 -1
  295. package/dist/components/radio/radio.d.ts +0 -38
  296. package/dist/components/radio/radio.d.ts.map +0 -1
  297. package/dist/components/search-bar/search-bar.css.d.ts +0 -2
  298. package/dist/components/search-bar/search-bar.css.d.ts.map +0 -1
  299. package/dist/components/search-bar/search-bar.d.ts +0 -81
  300. package/dist/components/search-bar/search-bar.d.ts.map +0 -1
  301. package/dist/components/segmented-button/segmented-button.css.d.ts +0 -3
  302. package/dist/components/segmented-button/segmented-button.css.d.ts.map +0 -1
  303. package/dist/components/segmented-button/segmented-button.d.ts +0 -40
  304. package/dist/components/segmented-button/segmented-button.d.ts.map +0 -1
  305. package/dist/components/side-sheet/side-sheet.css.d.ts +0 -2
  306. package/dist/components/side-sheet/side-sheet.css.d.ts.map +0 -1
  307. package/dist/components/side-sheet/side-sheet.d.ts +0 -57
  308. package/dist/components/side-sheet/side-sheet.d.ts.map +0 -1
  309. package/dist/components/slider/slider.css.d.ts +0 -2
  310. package/dist/components/slider/slider.css.d.ts.map +0 -1
  311. package/dist/components/slider/slider.d.ts +0 -51
  312. package/dist/components/slider/slider.d.ts.map +0 -1
  313. package/dist/components/snackbar/snackbar.css.d.ts +0 -2
  314. package/dist/components/snackbar/snackbar.css.d.ts.map +0 -1
  315. package/dist/components/snackbar/snackbar.d.ts +0 -24
  316. package/dist/components/snackbar/snackbar.d.ts.map +0 -1
  317. package/dist/components/split-button/split-button.css.d.ts +0 -2
  318. package/dist/components/split-button/split-button.css.d.ts.map +0 -1
  319. package/dist/components/split-button/split-button.d.ts +0 -89
  320. package/dist/components/split-button/split-button.d.ts.map +0 -1
  321. package/dist/components/switch/switch.css.d.ts +0 -2
  322. package/dist/components/switch/switch.css.d.ts.map +0 -1
  323. package/dist/components/switch/switch.d.ts +0 -22
  324. package/dist/components/switch/switch.d.ts.map +0 -1
  325. package/dist/components/table/table.css.d.ts +0 -8
  326. package/dist/components/table/table.css.d.ts.map +0 -1
  327. package/dist/components/table/table.d.ts +0 -158
  328. package/dist/components/table/table.d.ts.map +0 -1
  329. package/dist/components/tabs/tabs.css.d.ts +0 -3
  330. package/dist/components/tabs/tabs.css.d.ts.map +0 -1
  331. package/dist/components/tabs/tabs.d.ts +0 -33
  332. package/dist/components/tabs/tabs.d.ts.map +0 -1
  333. package/dist/components/text-field/text-field.css.d.ts +0 -2
  334. package/dist/components/text-field/text-field.css.d.ts.map +0 -1
  335. package/dist/components/text-field/text-field.d.ts +0 -40
  336. package/dist/components/text-field/text-field.d.ts.map +0 -1
  337. package/dist/components/time-picker/time-picker.css.d.ts +0 -2
  338. package/dist/components/time-picker/time-picker.css.d.ts.map +0 -1
  339. package/dist/components/time-picker/time-picker.d.ts +0 -87
  340. package/dist/components/time-picker/time-picker.d.ts.map +0 -1
  341. package/dist/components/toolbar/toolbar.css.d.ts +0 -2
  342. package/dist/components/toolbar/toolbar.css.d.ts.map +0 -1
  343. package/dist/components/toolbar/toolbar.d.ts +0 -53
  344. package/dist/components/toolbar/toolbar.d.ts.map +0 -1
  345. package/dist/components/tooltip/tooltip.css.d.ts +0 -2
  346. package/dist/components/tooltip/tooltip.css.d.ts.map +0 -1
  347. package/dist/components/tooltip/tooltip.d.ts +0 -89
  348. package/dist/components/tooltip/tooltip.d.ts.map +0 -1
  349. package/dist/components/top-app-bar/top-app-bar.css.d.ts +0 -2
  350. package/dist/components/top-app-bar/top-app-bar.css.d.ts.map +0 -1
  351. package/dist/components/top-app-bar/top-app-bar.d.ts +0 -29
  352. package/dist/components/top-app-bar/top-app-bar.d.ts.map +0 -1
  353. package/dist/index.d.ts +0 -52
  354. package/dist/index.d.ts.map +0 -1
  355. package/dist/internal/base-component.d.ts +0 -13
  356. package/dist/internal/base-component.d.ts.map +0 -1
  357. package/dist/internal/focus-ring/focus-ring.css.d.ts +0 -2
  358. package/dist/internal/focus-ring/focus-ring.css.d.ts.map +0 -1
  359. package/dist/internal/focus-ring/focus-ring.d.ts +0 -18
  360. package/dist/internal/focus-ring/focus-ring.d.ts.map +0 -1
  361. package/dist/internal/form-associated.d.ts +0 -26
  362. package/dist/internal/form-associated.d.ts.map +0 -1
  363. package/dist/internal/ripple/ripple.css.d.ts +0 -2
  364. package/dist/internal/ripple/ripple.css.d.ts.map +0 -1
  365. package/dist/internal/ripple/ripple.d.ts +0 -23
  366. package/dist/internal/ripple/ripple.d.ts.map +0 -1
  367. package/dist/tokens/colors.d.ts +0 -42
  368. package/dist/tokens/colors.d.ts.map +0 -1
  369. package/dist/tokens/elevation.d.ts +0 -9
  370. package/dist/tokens/elevation.d.ts.map +0 -1
  371. package/dist/tokens/index.d.ts +0 -7
  372. package/dist/tokens/index.d.ts.map +0 -1
  373. package/dist/tokens/motion.d.ts +0 -21
  374. package/dist/tokens/motion.d.ts.map +0 -1
  375. package/dist/tokens/shape.d.ts +0 -10
  376. package/dist/tokens/shape.d.ts.map +0 -1
  377. package/dist/tokens/theme.css.d.ts +0 -4
  378. package/dist/tokens/theme.css.d.ts.map +0 -1
  379. package/dist/tokens/typography.d.ts +0 -101
  380. package/dist/tokens/typography.d.ts.map +0 -1
@@ -0,0 +1,855 @@
1
+ import { n as e, t } from "./decorate-DknOJ8FJ.js";
2
+ import "./ripple-CBOKeVfm.js";
3
+ import "./focus-ring-K6SY_mIm.js";
4
+ import "./icon-FvKeXi61.js";
5
+ import "./icon-button-CulnCZpZ.js";
6
+ import { css as n, html as r, nothing as i } from "lit";
7
+ import { customElement as a, property as o } from "lit/decorators.js";
8
+ //#region src/components/app-drawer/app-drawer.css.ts
9
+ var s = n`
10
+ :host {
11
+ display: inline-block;
12
+ position: relative;
13
+ font-family: var(--md-sys-typescale-font-family, inherit);
14
+ }
15
+
16
+ :host([hidden]) {
17
+ display: none;
18
+ }
19
+
20
+ .trigger-container {
21
+ display: inline-flex;
22
+ }
23
+
24
+ .backdrop {
25
+ display: none;
26
+ position: fixed;
27
+ inset: 0;
28
+ z-index: 990;
29
+ background-color: transparent;
30
+ }
31
+
32
+ :host([modal]) .backdrop {
33
+ background-color: rgba(0, 0, 0, 0.32);
34
+ backdrop-filter: blur(1px);
35
+ }
36
+
37
+ :host([open][modal]) .backdrop {
38
+ display: block;
39
+ }
40
+
41
+ .popover {
42
+ display: none;
43
+ position: absolute;
44
+ top: calc(100% + 8px);
45
+ right: 0;
46
+ z-index: 1000;
47
+ width: var(--md-app-drawer-width, 328px);
48
+ max-width: calc(100vw - 24px);
49
+ max-height: var(--md-app-drawer-max-height, 460px);
50
+ box-sizing: border-box;
51
+ padding: 16px;
52
+ border-radius: var(--md-sys-shape-corner-extra-large, 24px);
53
+ background-color: var(--md-sys-color-surface-container-high, #ECE6F0);
54
+ color: var(--md-sys-color-on-surface, #1D1B20);
55
+ box-shadow: var(--md-sys-elevation-level3, 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.3));
56
+ overflow-y: auto;
57
+ overflow-x: hidden;
58
+ overscroll-behavior: contain;
59
+ scrollbar-width: thin;
60
+ scrollbar-color: var(--md-sys-color-outline-variant, #CAC4D0) transparent;
61
+ }
62
+
63
+ :host([alignment='start']) .popover,
64
+ :host([pivot='left']) .popover {
65
+ right: auto;
66
+ left: 0;
67
+ }
68
+
69
+ :host([open]) .popover {
70
+ display: flex;
71
+ flex-direction: column;
72
+ gap: 12px;
73
+ animation: md-app-drawer-in 150ms cubic-bezier(0.2, 0, 0, 1) forwards;
74
+ }
75
+
76
+ @keyframes md-app-drawer-in {
77
+ from {
78
+ opacity: 0;
79
+ transform: scale(0.92) translateY(-8px);
80
+ }
81
+ to {
82
+ opacity: 1;
83
+ transform: scale(1) translateY(0);
84
+ }
85
+ }
86
+
87
+ .header {
88
+ display: flex;
89
+ align-items: center;
90
+ justify-content: space-between;
91
+ padding: 0 4px;
92
+ min-height: 40px;
93
+ box-sizing: border-box;
94
+ }
95
+
96
+ .header-leading {
97
+ display: flex;
98
+ align-items: center;
99
+ gap: 4px;
100
+ min-width: 0;
101
+ }
102
+
103
+ .back-btn,
104
+ slot[name="back-button"] {
105
+ display: none;
106
+ --md-icon-size: 24px;
107
+ font-size: 24px;
108
+ flex-shrink: 0;
109
+ }
110
+
111
+ .header-actions {
112
+ display: flex;
113
+ align-items: center;
114
+ gap: 4px;
115
+ margin-left: auto;
116
+ }
117
+
118
+ .edit-btn,
119
+ .reset-btn {
120
+ --md-icon-size: 20px;
121
+ font-size: 20px;
122
+ }
123
+
124
+ :host([editing]) .grid ::slotted(md-app-drawer-item),
125
+ :host([editing]) .grid ::slotted(md-app-item),
126
+ :host([editing]) .grid ::slotted(md-app-launcher-item) {
127
+ cursor: grab;
128
+ }
129
+
130
+ .headline {
131
+ margin: 0;
132
+ font-size: var(--md-sys-typescale-title-medium-size, 16px);
133
+ font-weight: 500;
134
+ line-height: 24px;
135
+ color: var(--md-sys-color-on-surface, #1D1B20);
136
+ white-space: nowrap;
137
+ overflow: hidden;
138
+ text-overflow: ellipsis;
139
+ }
140
+
141
+ .grid {
142
+ display: grid;
143
+ grid-template-columns: repeat(var(--md-app-drawer-columns, 3), 1fr);
144
+ gap: 8px;
145
+ width: 100%;
146
+ box-sizing: border-box;
147
+ }
148
+
149
+ ::slotted([draggable='true']) {
150
+ cursor: grab;
151
+ }
152
+
153
+ ::slotted([dragging]),
154
+ ::slotted(.is-dragging) {
155
+ opacity: 0.4;
156
+ transform: scale(0.95);
157
+ cursor: grabbing !important;
158
+ }
159
+
160
+ ::slotted([drag-over]),
161
+ ::slotted(.drag-over) {
162
+ outline: 2px dashed var(--md-sys-color-primary, #6750A4);
163
+ outline-offset: -2px;
164
+ border-radius: var(--md-sys-shape-corner-medium, 12px);
165
+ background-color: var(--md-sys-color-surface-container-highest, rgba(103, 80, 164, 0.08));
166
+ }
167
+
168
+ .footer {
169
+ display: flex;
170
+ align-items: center;
171
+ justify-content: center;
172
+ text-align: center;
173
+ width: 100%;
174
+ padding-top: 12px;
175
+ margin-top: 4px;
176
+ border-top: 1px solid var(--md-sys-color-outline-variant, rgba(0, 0, 0, 0.1));
177
+ }
178
+
179
+ .footer ::slotted(*) {
180
+ margin-left: auto;
181
+ margin-right: auto;
182
+ text-align: center;
183
+ }
184
+
185
+ .footer:empty {
186
+ display: none;
187
+ }
188
+
189
+ /* Responsive Fullscreen / Mobile Mode */
190
+ @media (max-width: 768px) {
191
+ .back-btn,
192
+ slot[name="back-button"] {
193
+ display: inline-flex;
194
+ }
195
+
196
+ :host([open]) .popover {
197
+ position: fixed;
198
+ top: 0;
199
+ left: 0;
200
+ right: 0;
201
+ bottom: 0;
202
+ width: 100vw;
203
+ max-width: 100vw;
204
+ height: 100vh;
205
+ height: 100dvh;
206
+ max-height: 100vh;
207
+ max-height: 100dvh;
208
+ border-radius: 0;
209
+ box-shadow: none;
210
+ z-index: 10000;
211
+ padding: 12px 16px env(safe-area-inset-bottom, 16px) 16px;
212
+ margin: 0;
213
+ gap: 16px;
214
+ animation: md-app-drawer-mobile-in 200ms cubic-bezier(0.2, 0, 0, 1) forwards;
215
+ }
216
+
217
+ .header {
218
+ min-height: 48px;
219
+ padding: 0;
220
+ gap: 8px;
221
+ }
222
+
223
+ .header-leading {
224
+ gap: 8px;
225
+ }
226
+
227
+ .headline {
228
+ font-size: var(--md-sys-typescale-title-large-size, 20px);
229
+ font-weight: 500;
230
+ line-height: 28px;
231
+ }
232
+
233
+ .grid {
234
+ grid-template-columns: repeat(var(--md-app-drawer-columns, 3), 1fr);
235
+ gap: 12px 8px;
236
+ flex: 1;
237
+ align-content: start;
238
+ }
239
+
240
+ .footer {
241
+ padding-top: 16px;
242
+ padding-bottom: 8px;
243
+ }
244
+ }
245
+
246
+ @keyframes md-app-drawer-mobile-in {
247
+ from {
248
+ opacity: 0;
249
+ transform: translateY(12px);
250
+ }
251
+ to {
252
+ opacity: 1;
253
+ transform: translateY(0);
254
+ }
255
+ }
256
+
257
+ /* Explicit Fullscreen Mode */
258
+ :host([fullscreen]) .back-btn,
259
+ :host([fullscreen]) slot[name="back-button"] {
260
+ display: inline-flex;
261
+ }
262
+
263
+ :host([fullscreen][open]) .popover {
264
+ position: fixed;
265
+ top: 0;
266
+ left: 0;
267
+ right: 0;
268
+ bottom: 0;
269
+ width: 100vw;
270
+ max-width: 100vw;
271
+ height: 100vh;
272
+ height: 100dvh;
273
+ max-height: 100vh;
274
+ max-height: 100dvh;
275
+ border-radius: 0;
276
+ box-shadow: none;
277
+ z-index: 10000;
278
+ padding: 12px 16px env(safe-area-inset-bottom, 16px) 16px;
279
+ margin: 0;
280
+ gap: 16px;
281
+ }
282
+
283
+ :host([fullscreen]) .header {
284
+ min-height: 48px;
285
+ padding: 0;
286
+ gap: 8px;
287
+ }
288
+
289
+ :host([fullscreen]) .header-leading {
290
+ gap: 8px;
291
+ }
292
+
293
+ :host([fullscreen]) .headline {
294
+ font-size: var(--md-sys-typescale-title-large-size, 20px);
295
+ font-weight: 500;
296
+ line-height: 28px;
297
+ }
298
+
299
+ :host([fullscreen]) .grid {
300
+ grid-template-columns: repeat(var(--md-app-drawer-columns, 3), 1fr);
301
+ gap: 12px 8px;
302
+ flex: 1;
303
+ align-content: start;
304
+ }
305
+
306
+ :host([fullscreen]) .footer {
307
+ padding-top: 16px;
308
+ padding-bottom: 8px;
309
+ }
310
+ `, c = n`
311
+ :host {
312
+ display: block;
313
+ box-sizing: border-box;
314
+ font-family: var(--md-sys-typescale-font-family, inherit);
315
+ }
316
+
317
+ :host([hidden]) {
318
+ display: none;
319
+ }
320
+
321
+ .item {
322
+ position: relative;
323
+ display: flex;
324
+ flex-direction: column;
325
+ align-items: center;
326
+ justify-content: center;
327
+ text-align: center;
328
+ width: 100%;
329
+ min-height: 84px;
330
+ padding: 8px 4px;
331
+ box-sizing: border-box;
332
+ border-radius: var(--md-sys-shape-corner-medium, 12px);
333
+ color: var(--md-sys-color-on-surface, #1D1B20);
334
+ text-decoration: none;
335
+ cursor: pointer;
336
+ user-select: none;
337
+ transition: background-color 150ms ease;
338
+ background: transparent;
339
+ border: none;
340
+ outline: none;
341
+ -webkit-tap-highlight-color: transparent;
342
+ }
343
+
344
+ .item:hover {
345
+ background-color: var(--md-sys-color-surface-container-highest, rgba(0, 0, 0, 0.06));
346
+ }
347
+
348
+ :host([active]) .item,
349
+ :host([selected]) .item {
350
+ background-color: var(--md-sys-color-secondary-container, #E8DEF8);
351
+ color: var(--md-sys-color-on-secondary-container, #1D192B);
352
+ }
353
+
354
+ :host([disabled]) .item {
355
+ opacity: 0.38;
356
+ cursor: not-allowed;
357
+ pointer-events: none;
358
+ }
359
+
360
+ :host([draggable='true']) .item {
361
+ cursor: grab;
362
+ }
363
+
364
+ :host([dragging]) {
365
+ opacity: 0.4;
366
+ transform: scale(0.95);
367
+ }
368
+
369
+ :host([dragging]) .item {
370
+ cursor: grabbing;
371
+ }
372
+
373
+ :host([drag-over]) .item {
374
+ outline: 2px dashed var(--md-sys-color-primary, #6750A4);
375
+ outline-offset: -2px;
376
+ background-color: var(--md-sys-color-surface-container-highest, rgba(103, 80, 164, 0.08));
377
+ }
378
+
379
+ .icon-wrapper {
380
+ position: relative;
381
+ display: flex;
382
+ align-items: center;
383
+ justify-content: center;
384
+ width: 44px;
385
+ height: 44px;
386
+ margin-bottom: 4px;
387
+ border-radius: var(--md-sys-shape-corner-full, 9999px);
388
+ color: var(--md-sys-color-primary, #6750A4);
389
+ }
390
+
391
+ .icon-wrapper md-icon {
392
+ --md-icon-size: 28px;
393
+ font-size: 28px;
394
+ }
395
+
396
+ .icon-image {
397
+ width: 32px;
398
+ height: 32px;
399
+ object-fit: contain;
400
+ border-radius: 4px;
401
+ }
402
+
403
+ .label {
404
+ display: -webkit-box;
405
+ -webkit-line-clamp: 2;
406
+ -webkit-box-orient: vertical;
407
+ overflow: hidden;
408
+ text-overflow: ellipsis;
409
+ font-size: 12px;
410
+ line-height: 16px;
411
+ font-weight: 500;
412
+ max-width: 100%;
413
+ word-break: break-word;
414
+ }
415
+
416
+ .badge-container {
417
+ position: absolute;
418
+ top: 2px;
419
+ right: 2px;
420
+ }
421
+ `, l = class extends e {
422
+ constructor(...e) {
423
+ super(...e), this.icon = "", this.src = "", this.label = "", this.headline = "", this.badge = "", this.href = "", this.target = "", this.disabled = !1, this.active = !1, this.selected = !1, this.dragging = !1, this.dragOver = !1, this.wasDragging = !1, this.handleClick = (e) => {
424
+ if (this.disabled || this.wasDragging || this.dragging) {
425
+ e.preventDefault(), e.stopImmediatePropagation();
426
+ return;
427
+ }
428
+ let t = this.label || this.headline;
429
+ this.emitEvent("item-click", {
430
+ label: t,
431
+ icon: this.icon,
432
+ src: this.src,
433
+ href: this.href,
434
+ active: this.active
435
+ });
436
+ };
437
+ }
438
+ static {
439
+ this.styles = [e.styles, c];
440
+ }
441
+ willUpdate(e) {
442
+ super.willUpdate(e), e.has("selected") && !e.has("active") ? this.active = this.selected : e.has("active") && !e.has("selected") && (this.selected = this.active);
443
+ }
444
+ internalSetDragging(e) {
445
+ this.dragging = e, e ? this.wasDragging = !0 : setTimeout(() => {
446
+ this.wasDragging = !1;
447
+ }, 100);
448
+ }
449
+ render() {
450
+ let e = this.label || this.headline, t = this.src ? r`<img class="icon-image" src=${this.src} alt=${e || "App icon"} draggable="false" />` : this.icon ? r`<md-icon name=${this.icon}></md-icon>` : i, n = r`
451
+ <md-ripple ?disabled=${this.disabled}></md-ripple>
452
+ <md-focus-ring></md-focus-ring>
453
+
454
+ <div class="icon-wrapper">
455
+ <slot name="icon">${t}</slot>
456
+ ${this.badge ? r`<div class="badge-container"><slot name="badge"><span class="badge">${this.badge}</span></slot></div>` : r`<div class="badge-container"><slot name="badge"></slot></div>`}
457
+ </div>
458
+
459
+ <span class="label">
460
+ <slot>${e}</slot>
461
+ </span>
462
+ `;
463
+ return this.href ? r`
464
+ <a
465
+ class="item"
466
+ href=${this.disabled ? i : this.href}
467
+ target=${this.target || i}
468
+ aria-disabled=${this.disabled ? "true" : i}
469
+ tabindex=${this.disabled ? "-1" : "0"}
470
+ draggable="false"
471
+ @click=${this.handleClick}
472
+ >
473
+ ${n}
474
+ </a>
475
+ ` : r`
476
+ <button
477
+ class="item"
478
+ type="button"
479
+ tabindex=${this.disabled ? "-1" : "0"}
480
+ aria-disabled=${this.disabled ? "true" : i}
481
+ ?disabled=${this.disabled}
482
+ draggable="false"
483
+ @click=${this.handleClick}
484
+ >
485
+ ${n}
486
+ </button>
487
+ `;
488
+ }
489
+ };
490
+ t([o({ type: String })], l.prototype, "icon", void 0), t([o({ type: String })], l.prototype, "src", void 0), t([o({ type: String })], l.prototype, "label", void 0), t([o({ type: String })], l.prototype, "headline", void 0), t([o({ type: String })], l.prototype, "badge", void 0), t([o({ type: String })], l.prototype, "href", void 0), t([o({ type: String })], l.prototype, "target", void 0), t([o({
491
+ type: Boolean,
492
+ reflect: !0
493
+ })], l.prototype, "disabled", void 0), t([o({
494
+ type: Boolean,
495
+ reflect: !0
496
+ })], l.prototype, "active", void 0), t([o({
497
+ type: Boolean,
498
+ reflect: !0
499
+ })], l.prototype, "selected", void 0), t([o({
500
+ type: Boolean,
501
+ reflect: !0
502
+ })], l.prototype, "dragging", void 0), t([o({
503
+ type: Boolean,
504
+ reflect: !0,
505
+ attribute: "drag-over"
506
+ })], l.prototype, "dragOver", void 0), l = t([a("md-app-drawer-item")], l);
507
+ var u = class extends e {
508
+ constructor(...e) {
509
+ super(...e), this.open = !1, this.headline = "", this.icon = "apps", this.ariaLabelText = "App launcher", this.noTrigger = !1, this.alignment = "end", this.pivot = "right", this.modal = !1, this.fullscreen = !1, this.columns = 3, this.reorderable = !0, this.editable = !0, this.editing = !1, this.storageKey = "", this.disableStorage = !1, this.isReordering = !1, this.initialOrder = [], this.draggedItem = null, this.dropTargetItem = null, this.handleKeyDown = (e) => {
510
+ e.key === "Escape" && this.open && this.close();
511
+ }, this.handleDocumentClick = (e) => {
512
+ this.open && (e.composedPath().includes(this) || this.close());
513
+ }, this.handleBackdropClick = () => {
514
+ this.close();
515
+ }, this.handleBackClick = (e) => {
516
+ e.stopPropagation(), this.close();
517
+ }, this.handleTriggerClick = (e) => {
518
+ e.stopPropagation(), this.toggle();
519
+ }, this.handleEditToggle = (e) => {
520
+ e.stopPropagation(), this.toggleEdit();
521
+ }, this.handleResetClick = (e) => {
522
+ e.stopPropagation(), this.resetOrder();
523
+ }, this.handleSlotChange = () => {
524
+ this.isReordering || (this.initialOrder.length === 0 && (this.initialOrder = this.getOrder()), this.applySavedOrder(), this.updateDraggableItems());
525
+ }, this.handleDragStart = (e) => {
526
+ if (!this.isReorderActive()) return;
527
+ let t = this.findDrawerItem(e);
528
+ t && (t.disabled || t.hasAttribute("disabled") || (this.draggedItem = t, t.classList.add("is-dragging"), t.setAttribute("dragging", ""), typeof t.internalSetDragging == "function" && t.internalSetDragging(!0), e.dataTransfer && (e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("text/plain", this.getItemKey(t)))));
529
+ }, this.handleDragOver = (e) => {
530
+ if (!this.isReorderActive() || !this.draggedItem) return;
531
+ let t = this.findDrawerItem(e);
532
+ if (!t || t === this.draggedItem) {
533
+ this.dropTargetItem && this.dropTargetItem !== this.draggedItem && (this.dropTargetItem.classList.remove("drag-over", "drop-target"), this.dropTargetItem.removeAttribute("drag-over"), "dragOver" in this.dropTargetItem && (this.dropTargetItem.dragOver = !1), this.dropTargetItem = null);
534
+ return;
535
+ }
536
+ e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "move"), this.dropTargetItem !== t && (this.dropTargetItem && (this.dropTargetItem.classList.remove("drag-over", "drop-target"), this.dropTargetItem.removeAttribute("drag-over"), "dragOver" in this.dropTargetItem && (this.dropTargetItem.dragOver = !1)), this.dropTargetItem = t, t.classList.add("drag-over", "drop-target"), t.setAttribute("drag-over", ""), "dragOver" in t && (t.dragOver = !0));
537
+ }, this.handleDragLeave = (e) => {
538
+ let t = e.relatedTarget;
539
+ this.dropTargetItem && (!t || !this.dropTargetItem.contains(t)) && (this.dropTargetItem.classList.remove("drag-over", "drop-target"), this.dropTargetItem.removeAttribute("drag-over"), "dragOver" in this.dropTargetItem && (this.dropTargetItem.dragOver = !1), this.dropTargetItem = null);
540
+ }, this.handleDrop = (e) => {
541
+ if (!this.isReorderActive() || !this.draggedItem) return;
542
+ e.preventDefault();
543
+ let t = this.findDrawerItem(e);
544
+ if (t && t !== this.draggedItem) {
545
+ let e = this.getItems(), n = e.indexOf(this.draggedItem), r = e.indexOf(t);
546
+ n !== -1 && r !== -1 && this.reorderItem(n, r);
547
+ }
548
+ this.cleanupDrag();
549
+ }, this.handleDragEnd = () => {
550
+ this.cleanupDrag();
551
+ }, this.handleItemKeyDown = (e) => {
552
+ if (!(!this.isReorderActive() || !e.altKey) && [
553
+ "ArrowLeft",
554
+ "ArrowRight",
555
+ "ArrowUp",
556
+ "ArrowDown"
557
+ ].includes(e.key)) {
558
+ let t = this.findDrawerItem(e);
559
+ if (!t) return;
560
+ let n = this.getItems(), r = n.indexOf(t);
561
+ if (r === -1) return;
562
+ let i = r, a = this.columns || 3;
563
+ e.key === "ArrowLeft" ? i = r - 1 : e.key === "ArrowRight" ? i = r + 1 : e.key === "ArrowUp" ? i = r - a : e.key === "ArrowDown" && (i = r + a), i >= 0 && i < n.length && i !== r && (e.preventDefault(), e.stopPropagation(), this.reorderItem(r, i), t.focus?.());
564
+ }
565
+ };
566
+ }
567
+ static {
568
+ this.styles = [e.styles, s];
569
+ }
570
+ get trigger() {
571
+ return !this.noTrigger;
572
+ }
573
+ set trigger(e) {
574
+ this.noTrigger = !e, this.requestUpdate("noTrigger");
575
+ }
576
+ connectedCallback() {
577
+ super.connectedCallback(), window.addEventListener("keydown", this.handleKeyDown), document.addEventListener("pointerdown", this.handleDocumentClick), this.addEventListener("dragstart", this.handleDragStart), this.addEventListener("dragover", this.handleDragOver), this.addEventListener("dragleave", this.handleDragLeave), this.addEventListener("drop", this.handleDrop), this.addEventListener("dragend", this.handleDragEnd), this.addEventListener("keydown", this.handleItemKeyDown), requestAnimationFrame(() => {
578
+ this.initialOrder.length === 0 && (this.initialOrder = this.getOrder()), this.applySavedOrder(), this.updateDraggableItems();
579
+ });
580
+ }
581
+ disconnectedCallback() {
582
+ super.disconnectedCallback(), window.removeEventListener("keydown", this.handleKeyDown), document.removeEventListener("pointerdown", this.handleDocumentClick), this.removeEventListener("dragstart", this.handleDragStart), this.removeEventListener("dragover", this.handleDragOver), this.removeEventListener("dragleave", this.handleDragLeave), this.removeEventListener("drop", this.handleDrop), this.removeEventListener("dragend", this.handleDragEnd), this.removeEventListener("keydown", this.handleItemKeyDown);
583
+ }
584
+ updated(e) {
585
+ super.updated(e), e.has("open") && (this.open ? this.emitEvent("open") : this.emitEvent("close")), e.has("columns") && (this.columns && this.columns !== 3 ? this.style.setProperty("--md-app-drawer-columns", String(this.columns)) : this.style.removeProperty("--md-app-drawer-columns")), (e.has("reorderable") || e.has("editable")) && this.updateDraggableItems(), e.has("editing") && (this.updateDraggableItems(), this.emitEvent("edit-toggle", { editing: this.editing })), (e.has("storageKey") || e.has("disableStorage")) && this.applySavedOrder();
586
+ }
587
+ getItemKey(e) {
588
+ return e.getAttribute("key") || e.getAttribute("app-id") || e.getAttribute("data-id") || (e.id ? e.id : e.label || e.getAttribute("label") || e.headline || e.getAttribute("headline") || e.href || e.getAttribute("href") || e.icon || e.getAttribute("icon") || e.textContent?.trim() || "");
589
+ }
590
+ getEffectiveStorageKey() {
591
+ return this.storageKey ? this.storageKey : this.id ? `md-app-drawer-order-${this.id}` : "md-app-drawer-order";
592
+ }
593
+ getItems() {
594
+ let e = this.shadowRoot?.querySelector(".grid slot:not([name])");
595
+ if (e) {
596
+ let t = e.assignedElements().filter((e) => e instanceof HTMLElement && (!e.hasAttribute("slot") || e.getAttribute("slot") === ""));
597
+ if (t.length > 0) return t;
598
+ }
599
+ return Array.from(this.children).filter((e) => e instanceof HTMLElement && (!e.hasAttribute("slot") || e.getAttribute("slot") === ""));
600
+ }
601
+ loadOrder() {
602
+ if (this.disableStorage) return null;
603
+ try {
604
+ let e = this.getEffectiveStorageKey(), t = localStorage.getItem(e);
605
+ if (!t) return null;
606
+ let n = JSON.parse(t);
607
+ return Array.isArray(n) ? n : null;
608
+ } catch {
609
+ return null;
610
+ }
611
+ }
612
+ saveOrder(e) {
613
+ let t = e || this.getOrder();
614
+ if (!this.disableStorage) try {
615
+ let e = this.getEffectiveStorageKey();
616
+ localStorage.setItem(e, JSON.stringify(t));
617
+ } catch {}
618
+ return t;
619
+ }
620
+ getOrder() {
621
+ return this.getItems().map((e) => this.getItemKey(e));
622
+ }
623
+ firstUpdated(e) {
624
+ super.firstUpdated(e), this.initialOrder.length === 0 && (this.initialOrder = this.getOrder()), this.applySavedOrder(), this.updateDraggableItems();
625
+ }
626
+ setOrder(e) {
627
+ if (!e || !e.length) return;
628
+ this.initialOrder.length === 0 && (this.initialOrder = this.getOrder());
629
+ let t = this.getItems();
630
+ if (t.length <= 1) return;
631
+ let n = /* @__PURE__ */ new Map(), r = [];
632
+ for (let e of t) {
633
+ let t = this.getItemKey(e);
634
+ t && !n.has(t) ? n.set(t, e) : r.push(e);
635
+ }
636
+ let i = [];
637
+ for (let t of e) {
638
+ let e = n.get(t);
639
+ e && (i.push(e), n.delete(t));
640
+ }
641
+ n.forEach((e) => i.push(e)), i.push(...r);
642
+ let a = !1;
643
+ for (let e = 0; e < t.length; e++) if (t[e] !== i[e]) {
644
+ a = !0;
645
+ break;
646
+ }
647
+ if (a) {
648
+ this.isReordering = !0;
649
+ for (let e of i) this.appendChild(e);
650
+ this.isReordering = !1;
651
+ }
652
+ }
653
+ applySavedOrder() {
654
+ let e = this.loadOrder();
655
+ e && e.length > 0 && this.setOrder(e);
656
+ }
657
+ resetOrder() {
658
+ if (!this.disableStorage) try {
659
+ localStorage.removeItem(this.getEffectiveStorageKey());
660
+ } catch {}
661
+ this.initialOrder.length > 0 && this.setOrder(this.initialOrder);
662
+ let e = this.getOrder();
663
+ this.emitEvent("reorder", {
664
+ order: e,
665
+ item: null,
666
+ oldIndex: -1,
667
+ newIndex: -1
668
+ }), this.emitEvent("reset", { order: e });
669
+ }
670
+ reorderItem(e, t) {
671
+ this.initialOrder.length === 0 && (this.initialOrder = this.getOrder());
672
+ let n = this.getItems();
673
+ if (e < 0 || e >= n.length || t < 0 || t >= n.length || e === t) return;
674
+ let r = n[e], i = n[t];
675
+ if (!r || !i) return;
676
+ this.isReordering = !0, e < t ? i.after(r) : i.before(r), this.isReordering = !1;
677
+ let a = this.getOrder();
678
+ this.saveOrder(a), this.emitEvent("reorder", {
679
+ order: a,
680
+ item: r,
681
+ oldIndex: e,
682
+ newIndex: t
683
+ });
684
+ }
685
+ isReorderActive() {
686
+ return this.reorderable && (!this.editable || this.editing);
687
+ }
688
+ toggleEdit() {
689
+ this.editing = !this.editing;
690
+ }
691
+ startEditing() {
692
+ this.editing = !0;
693
+ }
694
+ stopEditing() {
695
+ this.editing = !1;
696
+ }
697
+ updateDraggableItems() {
698
+ let e = this.isReorderActive(), t = this.getItems();
699
+ for (let n of t) {
700
+ let t = n.disabled || n.hasAttribute("disabled");
701
+ e && !t ? n.setAttribute("draggable", "true") : n.removeAttribute("draggable");
702
+ }
703
+ }
704
+ findDrawerItem(e) {
705
+ let t = e.composedPath(), n = this.getItems();
706
+ for (let e of t) if (e instanceof HTMLElement && n.includes(e)) return e;
707
+ return null;
708
+ }
709
+ cleanupDrag() {
710
+ this.draggedItem &&= (this.draggedItem.classList.remove("is-dragging"), this.draggedItem.removeAttribute("dragging"), typeof this.draggedItem.internalSetDragging == "function" && this.draggedItem.internalSetDragging(!1), null), this.dropTargetItem &&= (this.dropTargetItem.classList.remove("drag-over", "drop-target"), this.dropTargetItem.removeAttribute("drag-over"), "dragOver" in this.dropTargetItem && (this.dropTargetItem.dragOver = !1), null);
711
+ let e = this.getItems();
712
+ for (let t of e) t.classList.remove("is-dragging", "drag-over", "drop-target"), t.removeAttribute("dragging"), t.removeAttribute("drag-over"), typeof t.internalSetDragging == "function" && t.internalSetDragging(!1), "dragOver" in t && (t.dragOver = !1);
713
+ }
714
+ show() {
715
+ this.open ||= !0;
716
+ }
717
+ close() {
718
+ this.open && (this.open = !1, this.editing &&= !1);
719
+ }
720
+ toggle() {
721
+ this.open = !this.open;
722
+ }
723
+ render() {
724
+ let e = this.headline ? r`<span class="headline">${this.headline}</span>` : i, t = r`
725
+ <slot name="back-button">
726
+ <md-icon-button
727
+ class="back-btn"
728
+ variant="standard"
729
+ icon="arrow_back"
730
+ aria-label="Close"
731
+ title="Close"
732
+ @click=${this.handleBackClick}
733
+ ></md-icon-button>
734
+ </slot>
735
+ `, n = this.reorderable && this.editable ? r`
736
+ <div class="header-actions">
737
+ ${this.editing ? r`
738
+ <slot name="reset-button">
739
+ <md-icon-button
740
+ class="reset-btn"
741
+ variant="standard"
742
+ icon="arrow_back"
743
+ aria-label="Reset to default order"
744
+ title="Reset to default order"
745
+ @click=${this.handleResetClick}
746
+ ></md-icon-button>
747
+ </slot>
748
+ ` : i}
749
+ <slot name="edit-button">
750
+ <md-icon-button
751
+ class="edit-btn"
752
+ variant=${this.editing ? "filled" : "standard"}
753
+ icon=${this.editing ? "check" : "edit"}
754
+ aria-label=${this.editing ? "Done editing" : "Edit apps order"}
755
+ title=${this.editing ? "Done editing" : "Edit apps order"}
756
+ @click=${this.handleEditToggle}
757
+ ></md-icon-button>
758
+ </slot>
759
+ </div>
760
+ ` : i, a = this.noTrigger ? r`<slot name="trigger" @click=${this.handleTriggerClick}></slot>` : r`
761
+ <div class="trigger-container" @click=${this.handleTriggerClick}>
762
+ <slot name="trigger">
763
+ <md-icon-button
764
+ icon=${this.icon}
765
+ aria-label=${this.ariaLabelText}
766
+ aria-expanded=${this.open ? "true" : "false"}
767
+ aria-haspopup="dialog"
768
+ ></md-icon-button>
769
+ </slot>
770
+ </div>
771
+ `;
772
+ return r`
773
+ <div class="backdrop" @click=${this.handleBackdropClick}></div>
774
+
775
+ <div class="trigger-wrapper">
776
+ ${a}
777
+ </div>
778
+
779
+ <div
780
+ class="popover"
781
+ role="dialog"
782
+ aria-modal=${this.modal ? "true" : "false"}
783
+ aria-label=${this.headline || this.ariaLabelText}
784
+ aria-hidden=${this.open ? "false" : "true"}
785
+ >
786
+ <div class="header">
787
+ <div class="header-leading">
788
+ ${t}
789
+ <slot name="header">
790
+ ${e}
791
+ </slot>
792
+ </div>
793
+ ${n}
794
+ </div>
795
+
796
+ <div class="grid" role="group" aria-label="Apps">
797
+ <slot @slotchange=${this.handleSlotChange}></slot>
798
+ </div>
799
+
800
+ <div class="footer">
801
+ <slot name="footer"></slot>
802
+ </div>
803
+ </div>
804
+ `;
805
+ }
806
+ };
807
+ t([o({
808
+ type: Boolean,
809
+ reflect: !0
810
+ })], u.prototype, "open", void 0), t([o({ type: String })], u.prototype, "headline", void 0), t([o({ type: String })], u.prototype, "icon", void 0), t([o({
811
+ type: String,
812
+ attribute: "aria-label"
813
+ })], u.prototype, "ariaLabelText", void 0), t([o({
814
+ type: Boolean,
815
+ attribute: "no-trigger"
816
+ })], u.prototype, "noTrigger", void 0), t([o({
817
+ type: String,
818
+ reflect: !0
819
+ })], u.prototype, "alignment", void 0), t([o({
820
+ type: String,
821
+ reflect: !0
822
+ })], u.prototype, "pivot", void 0), t([o({
823
+ type: Boolean,
824
+ reflect: !0
825
+ })], u.prototype, "modal", void 0), t([o({
826
+ type: Boolean,
827
+ reflect: !0
828
+ })], u.prototype, "fullscreen", void 0), t([o({ type: Number })], u.prototype, "columns", void 0), t([o({
829
+ type: Boolean,
830
+ reflect: !0
831
+ })], u.prototype, "reorderable", void 0), t([o({
832
+ type: Boolean,
833
+ reflect: !0
834
+ })], u.prototype, "editable", void 0), t([o({
835
+ type: Boolean,
836
+ reflect: !0
837
+ })], u.prototype, "editing", void 0), t([o({
838
+ type: String,
839
+ attribute: "storage-key"
840
+ })], u.prototype, "storageKey", void 0), t([o({
841
+ type: Boolean,
842
+ attribute: "disable-storage"
843
+ })], u.prototype, "disableStorage", void 0), u = t([a("md-app-drawer")], u);
844
+ var d = class extends u {};
845
+ d = t([a("md-app-launcher")], d);
846
+ var f = class extends u {};
847
+ f = t([a("md-apps-menu")], f);
848
+ var p = class extends l {};
849
+ p = t([a("md-app-item")], p);
850
+ var m = class extends l {};
851
+ m = t([a("md-app-launcher-item")], m);
852
+ //#endregion
853
+ export { m as a, d as i, l as n, f as o, p as r, u as t };
854
+
855
+ //# sourceMappingURL=app-drawer-DjKSuatE.js.map