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