@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,773 +0,0 @@
1
- import { n, t as e } 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 "./checkbox-BqlboAHd.js";
7
- import "./progress-LQmLMDjX.js";
8
- import { css as v, html as r, nothing as u } from "lit";
9
- import { customElement as h, property as s } from "lit/decorators.js";
10
- var F = v`
11
- :host {
12
- display: block;
13
- width: 100%;
14
- position: relative;
15
- box-sizing: border-box;
16
- font-family: var(--md-sys-typescale-font-family, inherit);
17
- background-color: var(--md-sys-color-surface, #FEF7FF);
18
- color: var(--md-sys-color-on-surface, #1D1B20);
19
- border-radius: var(--md-sys-shape-corner-medium, 12px);
20
- overflow: hidden;
21
- transition: box-shadow 200ms cubic-bezier(0.2, 0, 0, 1),
22
- background-color 200ms cubic-bezier(0.2, 0, 0, 1);
23
- }
24
-
25
- :host([bordered]) {
26
- border: 1px solid var(--md-sys-color-outline-variant, #CAC4D0);
27
- }
28
-
29
- :host([elevated]) {
30
- box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0, 0, 0, 0.15));
31
- }
32
-
33
- .table-wrapper {
34
- width: 100%;
35
- overflow-x: auto;
36
- -webkit-overflow-scrolling: touch;
37
- position: relative;
38
- }
39
-
40
- .progress-container {
41
- position: absolute;
42
- top: 0;
43
- left: 0;
44
- right: 0;
45
- z-index: 5;
46
- height: 4px;
47
- }
48
-
49
- .table {
50
- display: table;
51
- width: 100%;
52
- border-collapse: collapse;
53
- border-spacing: 0;
54
- text-align: left;
55
- font-size: var(--md-sys-typescale-body-medium-size, 14px);
56
- line-height: 20px;
57
- }
58
-
59
- /* Dense table variant */
60
- :host([dense]) {
61
- --md-table-cell-padding-y: 8px;
62
- --md-table-cell-padding-x: 12px;
63
- --md-table-header-padding-y: 10px;
64
- }
65
-
66
- /* Default cell padding variables */
67
- :host {
68
- --md-table-cell-padding-y: 14px;
69
- --md-table-cell-padding-x: 16px;
70
- --md-table-header-padding-y: 16px;
71
- --md-table-header-padding-x: 16px;
72
- }
73
- `, R = v`
74
- :host {
75
- display: table-header-group;
76
- background-color: var(--md-sys-color-surface-container-low, #F7F2FA);
77
- border-bottom: 1px solid var(--md-sys-color-outline-variant, #CAC4D0);
78
- }
79
-
80
- :host-context([sticky-header]),
81
- :host([sticky]) {
82
- position: sticky;
83
- top: 0;
84
- z-index: 2;
85
- }
86
- `, A = v`
87
- :host {
88
- display: table-row-group;
89
- }
90
- `, B = v`
91
- :host {
92
- display: table-row;
93
- position: relative;
94
- transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1);
95
- border-bottom: 1px solid var(--md-sys-color-outline-variant, #CAC4D0);
96
- }
97
-
98
- :host(:last-of-type) {
99
- border-bottom: none;
100
- }
101
-
102
- /* Hoverable rows */
103
- :host-context([hoverable]):hover,
104
- :host([hoverable]:hover),
105
- :host([interactive]:hover) {
106
- background-color: var(--md-sys-color-surface-container-high, #ECE6F0);
107
- }
108
-
109
- /* Striped rows */
110
- :host-context([striped]):host(:nth-of-type(even)) {
111
- background-color: var(--md-sys-color-surface-container-lowest, #FFFFFF);
112
- }
113
-
114
- :host-context([striped]):host(:nth-of-type(odd)) {
115
- background-color: var(--md-sys-color-surface-container-low, #F7F2FA);
116
- }
117
-
118
- /* Selected row */
119
- :host([selected]) {
120
- background-color: var(--md-sys-color-secondary-container, #E8DEF8) !important;
121
- }
122
-
123
- :host([interactive]) {
124
- cursor: pointer;
125
- }
126
-
127
- :host([disabled]) {
128
- opacity: 0.38;
129
- pointer-events: none;
130
- }
131
- `, P = v`
132
- :host {
133
- display: table-cell;
134
- vertical-align: middle;
135
- padding: var(--md-table-header-padding-y, 16px) var(--md-table-header-padding-x, 16px);
136
- color: var(--md-sys-color-on-surface-variant, #49454F);
137
- font-size: var(--md-sys-typescale-title-small-size, 14px);
138
- font-weight: 600;
139
- letter-spacing: 0.1px;
140
- border-bottom: 1px solid var(--md-sys-color-outline-variant, #CAC4D0);
141
- user-select: none;
142
- box-sizing: border-box;
143
- white-space: nowrap;
144
- }
145
-
146
- :host([sortable]) {
147
- cursor: pointer;
148
- }
149
-
150
- :host([sortable]:hover) {
151
- color: var(--md-sys-color-on-surface, #1D1B20);
152
- background-color: rgba(0, 0, 0, 0.04);
153
- }
154
-
155
- :host([align="start"]),
156
- :host([align="left"]) {
157
- text-align: left;
158
- }
159
-
160
- :host([align="center"]) {
161
- text-align: center;
162
- }
163
-
164
- :host([align="end"]),
165
- :host([align="right"]) {
166
- text-align: right;
167
- }
168
-
169
- .cell-content {
170
- display: inline-flex;
171
- align-items: center;
172
- gap: 6px;
173
- width: 100%;
174
- }
175
-
176
- :host([align="center"]) .cell-content {
177
- justify-content: center;
178
- }
179
-
180
- :host([align="end"]) .cell-content,
181
- :host([align="right"]) .cell-content {
182
- justify-content: flex-end;
183
- }
184
-
185
- .sort-icon {
186
- display: inline-flex;
187
- align-items: center;
188
- justify-content: center;
189
- font-size: 18px;
190
- color: var(--md-sys-color-primary, #6750A4);
191
- opacity: 0;
192
- transition: transform 200ms cubic-bezier(0.2, 0, 0, 1), opacity 150ms ease;
193
- }
194
-
195
- :host([sort-direction="asc"]) .sort-icon {
196
- opacity: 1;
197
- transform: rotate(0deg);
198
- }
199
-
200
- :host([sort-direction="desc"]) .sort-icon {
201
- opacity: 1;
202
- transform: rotate(180deg);
203
- }
204
-
205
- :host([sortable]:hover:not([sort-direction="asc"]):not([sort-direction="desc"])) .sort-icon {
206
- opacity: 0.5;
207
- }
208
- `, E = v`
209
- :host {
210
- display: table-cell;
211
- vertical-align: middle;
212
- padding: var(--md-table-cell-padding-y, 14px) var(--md-table-cell-padding-x, 16px);
213
- color: var(--md-sys-color-on-surface, #1D1B20);
214
- font-size: var(--md-sys-typescale-body-medium-size, 14px);
215
- border-bottom: 1px solid var(--md-sys-color-outline-variant, #CAC4D0);
216
- box-sizing: border-box;
217
- }
218
-
219
- :host([align="start"]),
220
- :host([align="left"]) {
221
- text-align: left;
222
- }
223
-
224
- :host([align="center"]) {
225
- text-align: center;
226
- }
227
-
228
- :host([align="end"]),
229
- :host([align="right"]) {
230
- text-align: right;
231
- }
232
-
233
- :host([numeric]) {
234
- font-variant-numeric: tabular-nums;
235
- text-align: right;
236
- }
237
-
238
- :host([truncate]) {
239
- max-width: 200px;
240
- overflow: hidden;
241
- text-overflow: ellipsis;
242
- white-space: nowrap;
243
- }
244
- `, M = v`
245
- :host {
246
- display: flex;
247
- align-items: center;
248
- justify-content: flex-end;
249
- gap: 16px;
250
- padding: 8px 16px;
251
- border-top: 1px solid var(--md-sys-color-outline-variant, #CAC4D0);
252
- background-color: var(--md-sys-color-surface, #FEF7FF);
253
- font-size: var(--md-sys-typescale-body-small-size, 12px);
254
- color: var(--md-sys-color-on-surface-variant, #49454F);
255
- box-sizing: border-box;
256
- }
257
-
258
- .rows-per-page {
259
- display: flex;
260
- align-items: center;
261
- gap: 8px;
262
- }
263
-
264
- select {
265
- padding: 4px 8px;
266
- border: 1px solid var(--md-sys-color-outline-variant, #CAC4D0);
267
- border-radius: var(--md-sys-shape-corner-extra-small, 4px);
268
- background-color: var(--md-sys-color-surface-container-low, #F7F2FA);
269
- color: var(--md-sys-color-on-surface, #1D1B20);
270
- font-family: inherit;
271
- font-size: inherit;
272
- outline: none;
273
- cursor: pointer;
274
- }
275
-
276
- select:focus {
277
- border-color: var(--md-sys-color-primary, #6750A4);
278
- }
279
-
280
- .range-label {
281
- user-select: none;
282
- }
283
-
284
- .actions {
285
- display: flex;
286
- align-items: center;
287
- gap: 4px;
288
- }
289
- `, b = class extends n {
290
- constructor(...i) {
291
- super(...i), this.sortable = !1, this.sortDirection = "none", this.align = "start", this.columnKey = "", this.width = "", this.handleClick = () => {
292
- if (!this.sortable) return;
293
- let t = "asc";
294
- this.sortDirection === "asc" ? t = "desc" : this.sortDirection === "desc" && (t = "none"), this.sortDirection = t, this.emitEvent("sort-change", {
295
- column: this.columnKey,
296
- direction: this.sortDirection
297
- });
298
- };
299
- }
300
- static {
301
- this.styles = [n.styles, P];
302
- }
303
- connectedCallback() {
304
- super.connectedCallback(), this.setAttribute("role", "columnheader"), this.addEventListener("click", this.handleClick);
305
- }
306
- disconnectedCallback() {
307
- super.disconnectedCallback(), this.removeEventListener("click", this.handleClick);
308
- }
309
- updated(i) {
310
- super.updated(i), i.has("width") && this.width && (this.style.width = this.width), i.has("sortDirection") && (this.sortDirection === "asc" ? this.setAttribute("aria-sort", "ascending") : this.sortDirection === "desc" ? this.setAttribute("aria-sort", "descending") : this.removeAttribute("aria-sort"));
311
- }
312
- render() {
313
- return r`
314
- <div class="cell-content">
315
- <slot></slot>
316
- ${this.sortable ? r`<span class="sort-icon" aria-hidden="true"><md-icon name="arrow_upward" size="18"></md-icon></span>` : u}
317
- </div>
318
- `;
319
- }
320
- };
321
- e([s({
322
- type: Boolean,
323
- reflect: !0
324
- })], b.prototype, "sortable", void 0);
325
- e([s({
326
- type: String,
327
- reflect: !0,
328
- attribute: "sort-direction"
329
- })], b.prototype, "sortDirection", void 0);
330
- e([s({
331
- type: String,
332
- reflect: !0
333
- })], b.prototype, "align", void 0);
334
- e([s({
335
- type: String,
336
- attribute: "column-key"
337
- })], b.prototype, "columnKey", void 0);
338
- e([s({ type: String })], b.prototype, "width", void 0);
339
- b = e([h("md-table-header-cell")], b);
340
- var x = class extends n {
341
- constructor(...i) {
342
- super(...i), this.align = "start", this.numeric = !1, this.truncate = !1;
343
- }
344
- static {
345
- this.styles = [n.styles, E];
346
- }
347
- connectedCallback() {
348
- super.connectedCallback(), this.setAttribute("role", "cell");
349
- }
350
- render() {
351
- return r`<slot></slot>`;
352
- }
353
- };
354
- e([s({
355
- type: String,
356
- reflect: !0
357
- })], x.prototype, "align", void 0);
358
- e([s({
359
- type: Boolean,
360
- reflect: !0
361
- })], x.prototype, "numeric", void 0);
362
- e([s({
363
- type: Boolean,
364
- reflect: !0
365
- })], x.prototype, "truncate", void 0);
366
- x = e([h("md-table-cell")], x);
367
- var y = class extends n {
368
- constructor(...i) {
369
- super(...i), this.selected = !1, this.selectable = !1, this.interactive = !1, this.disabled = !1, this.hoverable = !1, this.handleClick = (t) => {
370
- if (this.disabled) {
371
- t.preventDefault(), t.stopImmediatePropagation();
372
- return;
373
- }
374
- this.emitEvent("row-click", { row: this }), this.selectable && (this.selected = !this.selected, this.emitEvent("row-select", {
375
- selected: this.selected,
376
- row: this
377
- }));
378
- };
379
- }
380
- static {
381
- this.styles = [n.styles, B];
382
- }
383
- connectedCallback() {
384
- super.connectedCallback(), this.setAttribute("role", "row"), this.addEventListener("click", this.handleClick);
385
- }
386
- disconnectedCallback() {
387
- super.disconnectedCallback(), this.removeEventListener("click", this.handleClick);
388
- }
389
- updated(i) {
390
- super.updated(i), i.has("selected") && this.setAttribute("aria-selected", this.selected ? "true" : "false");
391
- }
392
- render() {
393
- return r`<slot></slot>`;
394
- }
395
- };
396
- e([s({
397
- type: Boolean,
398
- reflect: !0
399
- })], y.prototype, "selected", void 0);
400
- e([s({
401
- type: Boolean,
402
- reflect: !0
403
- })], y.prototype, "selectable", void 0);
404
- e([s({
405
- type: Boolean,
406
- reflect: !0
407
- })], y.prototype, "interactive", void 0);
408
- e([s({
409
- type: Boolean,
410
- reflect: !0
411
- })], y.prototype, "disabled", void 0);
412
- e([s({
413
- type: Boolean,
414
- reflect: !0
415
- })], y.prototype, "hoverable", void 0);
416
- y = e([h("md-table-row")], y);
417
- var w = class extends n {
418
- constructor(...i) {
419
- super(...i), this.sticky = !1;
420
- }
421
- static {
422
- this.styles = [n.styles, R];
423
- }
424
- connectedCallback() {
425
- super.connectedCallback(), this.setAttribute("role", "rowgroup");
426
- }
427
- render() {
428
- return r`<slot></slot>`;
429
- }
430
- };
431
- e([s({
432
- type: Boolean,
433
- reflect: !0
434
- })], w.prototype, "sticky", void 0);
435
- w = e([h("md-table-head")], w);
436
- var k = class extends n {
437
- static {
438
- this.styles = [n.styles, A];
439
- }
440
- connectedCallback() {
441
- super.connectedCallback(), this.setAttribute("role", "rowgroup");
442
- }
443
- render() {
444
- return r`<slot></slot>`;
445
- }
446
- };
447
- k = e([h("md-table-body")], k);
448
- var m = class extends n {
449
- constructor(...i) {
450
- super(...i), this.page = 1, this.pageSize = 10, this.total = 0, this.pageSizeOptions = [
451
- 5,
452
- 10,
453
- 25,
454
- 50
455
- ], this.showFirstLast = !0, this.handlePageSizeChange = (t) => {
456
- const c = t.target, d = Number(c.value);
457
- this.pageSize = d, this.page = 1, this.emitEvent("page-size-change", {
458
- page: this.page,
459
- pageSize: this.pageSize
460
- }), this.emitEvent("page-change", {
461
- page: this.page,
462
- pageSize: this.pageSize
463
- });
464
- }, this.firstPage = () => {
465
- this.page <= 1 || (this.page = 1, this.notifyPageChange());
466
- }, this.prevPage = () => {
467
- this.page <= 1 || (this.page -= 1, this.notifyPageChange());
468
- }, this.nextPage = () => {
469
- this.page >= this.totalPages || (this.page += 1, this.notifyPageChange());
470
- }, this.lastPage = () => {
471
- this.page >= this.totalPages || (this.page = this.totalPages, this.notifyPageChange());
472
- };
473
- }
474
- static {
475
- this.styles = [n.styles, M];
476
- }
477
- get totalPages() {
478
- return Math.max(1, Math.ceil(this.total / Math.max(1, this.pageSize)));
479
- }
480
- notifyPageChange() {
481
- this.emitEvent("page-change", {
482
- page: this.page,
483
- pageSize: this.pageSize
484
- });
485
- }
486
- render() {
487
- const i = `${this.total === 0 ? 0 : (this.page - 1) * this.pageSize + 1}–${Math.min(this.page * this.pageSize, this.total)} of ${this.total}`;
488
- return r`
489
- <div class="rows-per-page">
490
- <span>Rows per page:</span>
491
- <select .value=${String(this.pageSize)} @change=${this.handlePageSizeChange}>
492
- ${this.pageSizeOptions.map((t) => r`<option value=${t} ?selected=${t === this.pageSize}>${t}</option>`)}
493
- </select>
494
- </div>
495
-
496
- <div class="range-label">${i}</div>
497
-
498
- <div class="actions">
499
- ${this.showFirstLast ? r`
500
- <md-icon-button
501
- icon="first_page"
502
- aria-label="First page"
503
- ?disabled=${this.page <= 1}
504
- @click=${this.firstPage}
505
- ></md-icon-button>
506
- ` : u}
507
- <md-icon-button
508
- icon="chevron_left"
509
- aria-label="Previous page"
510
- ?disabled=${this.page <= 1}
511
- @click=${this.prevPage}
512
- ></md-icon-button>
513
- <md-icon-button
514
- icon="chevron_right"
515
- aria-label="Next page"
516
- ?disabled=${this.page >= this.totalPages}
517
- @click=${this.nextPage}
518
- ></md-icon-button>
519
- ${this.showFirstLast ? r`
520
- <md-icon-button
521
- icon="last_page"
522
- aria-label="Last page"
523
- ?disabled=${this.page >= this.totalPages}
524
- @click=${this.lastPage}
525
- ></md-icon-button>
526
- ` : u}
527
- </div>
528
- `;
529
- }
530
- };
531
- e([s({ type: Number })], m.prototype, "page", void 0);
532
- e([s({
533
- type: Number,
534
- attribute: "page-size"
535
- })], m.prototype, "pageSize", void 0);
536
- e([s({ type: Number })], m.prototype, "total", void 0);
537
- e([s({
538
- type: Array,
539
- attribute: "page-size-options"
540
- })], m.prototype, "pageSizeOptions", void 0);
541
- e([s({
542
- type: Boolean,
543
- attribute: "show-first-last"
544
- })], m.prototype, "showFirstLast", void 0);
545
- m = e([h("md-table-pagination")], m);
546
- var a = class extends n {
547
- constructor(...i) {
548
- super(...i), this.bordered = !1, this.elevated = !1, this.striped = !1, this.hoverable = !0, this.dense = !1, this.stickyHeader = !1, this.loading = !1, this.selectable = !1, this.columns = [], this.rows = [], this.selectedRows = [], this.sortColumn = "", this.sortDirection = "none", this.paginated = !1, this.page = 1, this.pageSize = 10, this.pageSizeOptions = [
549
- 5,
550
- 10,
551
- 25,
552
- 50
553
- ], this.total = 0, this.handleHeaderSortChange = (t) => {
554
- this.sortColumn = t.detail.column, this.sortDirection = t.detail.direction, this.emitEvent("sort-change", t.detail);
555
- }, this.handleSelectAllToggle = (t) => {
556
- const c = t.detail.checked, d = this.getProcessedRows();
557
- if (c) {
558
- const l = [...this.selectedRows];
559
- d.forEach((o) => {
560
- l.includes(o) || l.push(o);
561
- }), this.selectedRows = l;
562
- } else this.selectedRows = this.selectedRows.filter((l) => !d.includes(l));
563
- this.emitEvent("selection-change", {
564
- selectedRows: this.selectedRows,
565
- allSelected: c
566
- });
567
- }, this.handleRowSelectToggle = (t, c) => {
568
- const d = this.selectedRows.includes(t);
569
- d ? this.selectedRows = this.selectedRows.filter((l) => l !== t) : this.selectedRows = [...this.selectedRows, t], this.emitEvent("row-select", {
570
- row: t,
571
- index: c,
572
- selected: !d,
573
- selectedRows: this.selectedRows
574
- }), this.emitEvent("selection-change", { selectedRows: this.selectedRows });
575
- }, this.handlePaginationChange = (t) => {
576
- this.page = t.detail.page, this.pageSize = t.detail.pageSize, this.emitEvent("page-change", t.detail);
577
- };
578
- }
579
- static {
580
- this.styles = [n.styles, F];
581
- }
582
- connectedCallback() {
583
- super.connectedCallback(), this.setAttribute("role", "table");
584
- }
585
- getProcessedRows() {
586
- if (!this.rows || this.rows.length === 0) return [];
587
- let i = [...this.rows];
588
- if (this.sortColumn && this.sortDirection !== "none") {
589
- const t = this.sortDirection === "asc" ? 1 : -1;
590
- i.sort((c, d) => {
591
- const l = c[this.sortColumn], o = d[this.sortColumn];
592
- return l == null && o == null ? 0 : l == null ? 1 : o == null ? -1 : typeof l == "number" && typeof o == "number" ? (l - o) * t : String(l).localeCompare(String(o)) * t;
593
- });
594
- }
595
- if (this.paginated) {
596
- const t = (this.page - 1) * this.pageSize;
597
- i = i.slice(t, t + this.pageSize);
598
- }
599
- return i;
600
- }
601
- render() {
602
- const i = this.columns && this.columns.length > 0, t = i ? this.getProcessedRows() : [], c = this.total || (this.rows ? this.rows.length : 0), d = t.length > 0 && t.every((o) => this.selectedRows.includes(o)), l = !d && t.some((o) => this.selectedRows.includes(o));
603
- return r`
604
- <div class="table-wrapper">
605
- ${this.loading ? r`<div class="progress-container"><md-linear-progress indeterminate></md-linear-progress></div>` : u}
606
-
607
- <div class="table" role="table">
608
- ${i ? r`
609
- <md-table-head ?sticky=${this.stickyHeader}>
610
- <md-table-row>
611
- ${this.selectable ? r`
612
- <md-table-header-cell style="width: 48px; padding-right: 0;">
613
- <md-checkbox
614
- .checked=${d}
615
- .indeterminate=${l}
616
- aria-label="Select all rows"
617
- @change=${this.handleSelectAllToggle}
618
- ></md-checkbox>
619
- </md-table-header-cell>
620
- ` : u}
621
- ${this.columns.map((o) => {
622
- const f = this.sortColumn === o.key ? this.sortDirection : "none";
623
- return r`
624
- <md-table-header-cell
625
- column-key=${o.key}
626
- ?sortable=${!!o.sortable}
627
- sort-direction=${f}
628
- align=${o.align || (o.numeric ? "end" : "start")}
629
- width=${o.width || ""}
630
- @sort-change=${this.handleHeaderSortChange}
631
- >
632
- ${o.label}
633
- </md-table-header-cell>
634
- `;
635
- })}
636
- </md-table-row>
637
- </md-table-head>
638
-
639
- <md-table-body>
640
- ${t.map((o, f) => {
641
- const C = this.selectedRows.includes(o);
642
- return r`
643
- <md-table-row
644
- ?selected=${C}
645
- ?hoverable=${this.hoverable}
646
- @click=${() => this.emitEvent("row-click", {
647
- row: o,
648
- index: f
649
- })}
650
- >
651
- ${this.selectable ? r`
652
- <md-table-cell style="width: 48px; padding-right: 0;">
653
- <md-checkbox
654
- .checked=${C}
655
- aria-label="Select row"
656
- @change=${(g) => {
657
- g.stopPropagation(), this.handleRowSelectToggle(o, f);
658
- }}
659
- ></md-checkbox>
660
- </md-table-cell>
661
- ` : u}
662
- ${this.columns.map((g) => {
663
- const D = g.render ? g.render(o, f) : o[g.key];
664
- return r`
665
- <md-table-cell
666
- align=${g.align || (g.numeric ? "end" : "start")}
667
- ?numeric=${!!g.numeric}
668
- >
669
- ${D}
670
- </md-table-cell>
671
- `;
672
- })}
673
- </md-table-row>
674
- `;
675
- })}
676
- </md-table-body>
677
- ` : r`<slot></slot>`}
678
- </div>
679
- </div>
680
-
681
- ${this.paginated || i && this.rows.length > 0 && this.paginated ? r`
682
- <md-table-pagination
683
- .page=${this.page}
684
- .pageSize=${this.pageSize}
685
- .total=${c}
686
- .pageSizeOptions=${this.pageSizeOptions}
687
- @page-change=${this.handlePaginationChange}
688
- @page-size-change=${this.handlePaginationChange}
689
- ></md-table-pagination>
690
- ` : u}
691
- <slot name="pagination"></slot>
692
- `;
693
- }
694
- };
695
- e([s({
696
- type: Boolean,
697
- reflect: !0
698
- })], a.prototype, "bordered", void 0);
699
- e([s({
700
- type: Boolean,
701
- reflect: !0
702
- })], a.prototype, "elevated", void 0);
703
- e([s({
704
- type: Boolean,
705
- reflect: !0
706
- })], a.prototype, "striped", void 0);
707
- e([s({
708
- type: Boolean,
709
- reflect: !0
710
- })], a.prototype, "hoverable", void 0);
711
- e([s({
712
- type: Boolean,
713
- reflect: !0
714
- })], a.prototype, "dense", void 0);
715
- e([s({
716
- type: Boolean,
717
- reflect: !0,
718
- attribute: "sticky-header"
719
- })], a.prototype, "stickyHeader", void 0);
720
- e([s({
721
- type: Boolean,
722
- reflect: !0
723
- })], a.prototype, "loading", void 0);
724
- e([s({
725
- type: Boolean,
726
- reflect: !0
727
- })], a.prototype, "selectable", void 0);
728
- e([s({ type: Array })], a.prototype, "columns", void 0);
729
- e([s({ type: Array })], a.prototype, "rows", void 0);
730
- e([s({ type: Array })], a.prototype, "selectedRows", void 0);
731
- e([s({
732
- type: String,
733
- attribute: "sort-column"
734
- })], a.prototype, "sortColumn", void 0);
735
- e([s({
736
- type: String,
737
- attribute: "sort-direction"
738
- })], a.prototype, "sortDirection", void 0);
739
- e([s({ type: Boolean })], a.prototype, "paginated", void 0);
740
- e([s({ type: Number })], a.prototype, "page", void 0);
741
- e([s({
742
- type: Number,
743
- attribute: "page-size"
744
- })], a.prototype, "pageSize", void 0);
745
- e([s({
746
- type: Array,
747
- attribute: "page-size-options"
748
- })], a.prototype, "pageSizeOptions", void 0);
749
- e([s({ type: Number })], a.prototype, "total", void 0);
750
- a = e([h("md-table")], a);
751
- var S = class extends a {
752
- };
753
- S = e([h("md-data-table")], S);
754
- var z = class extends w {
755
- };
756
- z = e([h("md-table-header")], z);
757
- var $ = class extends b {
758
- };
759
- $ = e([h("md-table-head-cell")], $);
760
- export {
761
- w as a,
762
- b as c,
763
- x as i,
764
- m as l,
765
- a as n,
766
- $ as o,
767
- k as r,
768
- z as s,
769
- S as t,
770
- y as u
771
- };
772
-
773
- //# sourceMappingURL=table-CqHnneAj.js.map