@francofantomius/material-components 1.1.1 → 1.2.0

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