@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,774 @@
1
+ import { t as e } from "./decorate-DknOJ8FJ.js";
2
+ import { t } from "./form-associated-Do5uXckv.js";
3
+ import "./ripple-CBOKeVfm.js";
4
+ import "./focus-ring-K6SY_mIm.js";
5
+ import "./icon-FvKeXi61.js";
6
+ import "./button-DeQQlYds.js";
7
+ import "./icon-button-CulnCZpZ.js";
8
+ import { css as n, html as r, nothing as i } from "lit";
9
+ import { customElement as a, property as o, query as s, state as c } from "lit/decorators.js";
10
+ //#region src/components/date-picker/date-picker.css.ts
11
+ var l = n`
12
+ :host {
13
+ display: inline-block;
14
+ font-family: var(--md-sys-typescale-font-family, Roboto, sans-serif);
15
+ color: var(--md-sys-color-on-surface, #1D1B20);
16
+ box-sizing: border-box;
17
+ }
18
+
19
+ :host([variant="modal"]) {
20
+ display: contents;
21
+ }
22
+
23
+ *, *::before, *::after {
24
+ box-sizing: border-box;
25
+ }
26
+
27
+ /* --- Picker Surface Container --- */
28
+ .picker-surface {
29
+ display: flex;
30
+ flex-direction: column;
31
+ width: 328px;
32
+ background-color: var(--md-sys-color-surface-container-high, #ECE6F0);
33
+ border-radius: var(--md-sys-shape-corner-extra-large, 28px);
34
+ overflow: hidden;
35
+ position: relative;
36
+ box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0, 0, 0, 0.15));
37
+ user-select: none;
38
+ transition: box-shadow 200ms cubic-bezier(0.2, 0, 0, 1);
39
+ }
40
+
41
+ :host([variant="docked"]) .picker-surface {
42
+ border: 1px solid var(--md-sys-color-outline-variant, #CAC4D0);
43
+ box-shadow: var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0, 0, 0, 0.15));
44
+ }
45
+
46
+ :host([disabled]) {
47
+ pointer-events: none;
48
+ opacity: 0.38;
49
+ }
50
+
51
+ /* --- Header --- */
52
+ .header {
53
+ padding: 20px 24px 16px 24px;
54
+ display: flex;
55
+ flex-direction: column;
56
+ gap: 8px;
57
+ position: relative;
58
+ }
59
+
60
+ .header-top {
61
+ display: flex;
62
+ align-items: center;
63
+ justify-content: space-between;
64
+ }
65
+
66
+ .subhead {
67
+ font-size: var(--md-sys-typescale-label-medium-size, 12px);
68
+ line-height: 16px;
69
+ font-weight: 500;
70
+ color: var(--md-sys-color-on-surface-variant, #49454F);
71
+ letter-spacing: 0.5px;
72
+ text-transform: uppercase;
73
+ }
74
+
75
+ .headline {
76
+ font-size: var(--md-sys-typescale-headline-large-size, 28px);
77
+ line-height: 36px;
78
+ font-weight: 400;
79
+ color: var(--md-sys-color-on-surface, #1D1B20);
80
+ min-height: 36px;
81
+ display: flex;
82
+ align-items: center;
83
+ word-break: break-word;
84
+ }
85
+
86
+ .headline.placeholder {
87
+ color: var(--md-sys-color-on-surface-variant, #49454F);
88
+ font-size: 24px;
89
+ }
90
+
91
+ .header-divider {
92
+ height: 1px;
93
+ background-color: var(--md-sys-color-outline-variant, #CAC4D0);
94
+ margin: 0 16px;
95
+ }
96
+
97
+ /* --- Navigation Controls --- */
98
+ .navigation {
99
+ display: flex;
100
+ align-items: center;
101
+ justify-content: space-between;
102
+ padding: 12px 16px 4px 16px;
103
+ }
104
+
105
+ .month-year-btn {
106
+ display: inline-flex;
107
+ align-items: center;
108
+ gap: 4px;
109
+ background: transparent;
110
+ border: none;
111
+ padding: 8px 12px;
112
+ border-radius: var(--md-sys-shape-corner-full, 9999px);
113
+ font-family: inherit;
114
+ font-size: var(--md-sys-typescale-label-large-size, 14px);
115
+ font-weight: 500;
116
+ color: var(--md-sys-color-on-surface-variant, #49454F);
117
+ cursor: pointer;
118
+ transition: background-color 150ms ease, color 150ms ease;
119
+ }
120
+
121
+ .month-year-btn:hover {
122
+ background-color: rgba(73, 69, 79, 0.08);
123
+ color: var(--md-sys-color-on-surface, #1D1B20);
124
+ }
125
+
126
+ .month-year-btn .dropdown-icon {
127
+ transition: transform 200ms cubic-bezier(0.2, 0, 0, 1);
128
+ }
129
+
130
+ .month-year-btn.open .dropdown-icon {
131
+ transform: rotate(180deg);
132
+ }
133
+
134
+ .nav-arrows {
135
+ display: flex;
136
+ align-items: center;
137
+ gap: 4px;
138
+ }
139
+
140
+ /* --- Calendar View --- */
141
+ .calendar-content {
142
+ padding: 0 12px 12px 12px;
143
+ }
144
+
145
+ .weekdays {
146
+ display: grid;
147
+ grid-template-columns: repeat(7, 1fr);
148
+ text-align: center;
149
+ padding: 8px 0;
150
+ }
151
+
152
+ .weekday {
153
+ font-size: var(--md-sys-typescale-body-small-size, 12px);
154
+ font-weight: 500;
155
+ color: var(--md-sys-color-on-surface, #1D1B20);
156
+ height: 24px;
157
+ display: flex;
158
+ align-items: center;
159
+ justify-content: center;
160
+ }
161
+
162
+ .days-grid {
163
+ display: grid;
164
+ grid-template-columns: repeat(7, 1fr);
165
+ row-gap: 4px;
166
+ }
167
+
168
+ .day-cell {
169
+ position: relative;
170
+ height: 40px;
171
+ display: flex;
172
+ align-items: center;
173
+ justify-content: center;
174
+ }
175
+
176
+ /* Range Highlight Band */
177
+ .range-band {
178
+ position: absolute;
179
+ top: 0;
180
+ bottom: 0;
181
+ left: 0;
182
+ right: 0;
183
+ background-color: var(--md-sys-color-primary-container, #EADDFF);
184
+ z-index: 0;
185
+ }
186
+
187
+ .day-cell.range-start .range-band {
188
+ left: 50%;
189
+ }
190
+
191
+ .day-cell.range-end .range-band {
192
+ right: 50%;
193
+ }
194
+
195
+ .day-cell.range-start.range-end .range-band {
196
+ display: none;
197
+ }
198
+
199
+ /* Day Button */
200
+ .day-btn {
201
+ position: relative;
202
+ z-index: 1;
203
+ width: 36px;
204
+ height: 36px;
205
+ border-radius: var(--md-sys-shape-corner-full, 50%);
206
+ border: 1px solid transparent;
207
+ background: transparent;
208
+ color: var(--md-sys-color-on-surface, #1D1B20);
209
+ font-family: inherit;
210
+ font-size: var(--md-sys-typescale-body-medium-size, 14px);
211
+ font-weight: 400;
212
+ display: flex;
213
+ align-items: center;
214
+ justify-content: center;
215
+ cursor: pointer;
216
+ padding: 0;
217
+ outline: none;
218
+ transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
219
+ }
220
+
221
+ .day-btn:hover:not(.disabled):not(.selected):not(.range-start):not(.range-end) {
222
+ background-color: rgba(103, 80, 164, 0.08);
223
+ }
224
+
225
+ /* Today state */
226
+ .day-btn.today {
227
+ border-color: var(--md-sys-color-primary, #6750A4);
228
+ color: var(--md-sys-color-primary, #6750A4);
229
+ font-weight: 500;
230
+ }
231
+
232
+ /* In range middle state */
233
+ .day-cell.in-range .day-btn {
234
+ color: var(--md-sys-color-on-primary-container, #21005D);
235
+ background-color: transparent;
236
+ }
237
+
238
+ /* Selected / Range Start / Range End */
239
+ .day-btn.selected,
240
+ .day-btn.range-start,
241
+ .day-btn.range-end {
242
+ background-color: var(--md-sys-color-primary, #6750A4);
243
+ color: var(--md-sys-color-on-primary, #FFFFFF);
244
+ font-weight: 500;
245
+ }
246
+
247
+ .day-btn.disabled {
248
+ color: var(--md-sys-color-on-surface, #1D1B20);
249
+ opacity: 0.38;
250
+ cursor: not-allowed;
251
+ pointer-events: none;
252
+ }
253
+
254
+ /* --- Year Picker View --- */
255
+ .year-picker-view {
256
+ height: 280px;
257
+ overflow-y: auto;
258
+ display: grid;
259
+ grid-template-columns: repeat(3, 1fr);
260
+ gap: 8px;
261
+ padding: 12px 16px;
262
+ align-content: start;
263
+ }
264
+
265
+ .year-btn {
266
+ background: transparent;
267
+ border: 1px solid transparent;
268
+ border-radius: var(--md-sys-shape-corner-full, 9999px);
269
+ padding: 10px 0;
270
+ font-family: inherit;
271
+ font-size: var(--md-sys-typescale-label-large-size, 14px);
272
+ color: var(--md-sys-color-on-surface, #1D1B20);
273
+ cursor: pointer;
274
+ text-align: center;
275
+ transition: background-color 150ms ease, color 150ms ease;
276
+ }
277
+
278
+ .year-btn:hover:not(.selected) {
279
+ background-color: rgba(103, 80, 164, 0.08);
280
+ }
281
+
282
+ .year-btn.selected {
283
+ background-color: var(--md-sys-color-primary, #6750A4);
284
+ color: var(--md-sys-color-on-primary, #FFFFFF);
285
+ font-weight: 500;
286
+ }
287
+
288
+ .year-btn.current {
289
+ border-color: var(--md-sys-color-primary, #6750A4);
290
+ color: var(--md-sys-color-primary, #6750A4);
291
+ }
292
+
293
+ /* --- Actions Footer --- */
294
+ .actions {
295
+ display: flex;
296
+ align-items: center;
297
+ justify-content: flex-end;
298
+ gap: 8px;
299
+ padding: 8px 16px 16px 16px;
300
+ }
301
+
302
+ /* --- Supporting / Error Text --- */
303
+ .supporting-text {
304
+ padding: 4px 16px 0;
305
+ font-size: var(--md-sys-typescale-body-small-size, 12px);
306
+ line-height: 16px;
307
+ color: var(--md-sys-color-on-surface-variant, #49454F);
308
+ }
309
+
310
+ :host([error]) .supporting-text {
311
+ color: var(--md-sys-color-error, #B3261E);
312
+ }
313
+
314
+ /* --- Modal Scrim & Dialog Container --- */
315
+ dialog {
316
+ padding: 0;
317
+ border: none;
318
+ border-radius: var(--md-sys-shape-corner-extra-large, 28px);
319
+ background: transparent;
320
+ color: inherit;
321
+ box-shadow: var(--md-sys-elevation-level3, 0px 1px 3px 0px rgba(0, 0, 0, 0.30));
322
+ position: fixed;
323
+ inset: 0;
324
+ margin: auto;
325
+ z-index: 1000;
326
+ overflow: visible;
327
+ }
328
+
329
+ dialog::backdrop {
330
+ background-color: rgba(0, 0, 0, 0.32);
331
+ backdrop-filter: blur(2px);
332
+ animation: md-fade-in 150ms ease-out forwards;
333
+ }
334
+
335
+ dialog[open] {
336
+ animation: md-dialog-in 150ms cubic-bezier(0.2, 0, 0, 1) forwards;
337
+ }
338
+
339
+ @keyframes md-fade-in {
340
+ from { opacity: 0; }
341
+ to { opacity: 1; }
342
+ }
343
+
344
+ @keyframes md-dialog-in {
345
+ from {
346
+ opacity: 0;
347
+ transform: scale(0.92);
348
+ }
349
+ to {
350
+ opacity: 1;
351
+ transform: scale(1);
352
+ }
353
+ }
354
+ `, u = [
355
+ "January",
356
+ "February",
357
+ "March",
358
+ "April",
359
+ "May",
360
+ "June",
361
+ "July",
362
+ "August",
363
+ "September",
364
+ "October",
365
+ "November",
366
+ "December"
367
+ ], d = [
368
+ "S",
369
+ "M",
370
+ "T",
371
+ "W",
372
+ "T",
373
+ "F",
374
+ "S"
375
+ ], f = [
376
+ "M",
377
+ "T",
378
+ "W",
379
+ "T",
380
+ "F",
381
+ "S",
382
+ "S"
383
+ ];
384
+ function p(e) {
385
+ return e < 10 ? `0${e}` : `${e}`;
386
+ }
387
+ function m(e, t, n) {
388
+ return `${e}-${p(t + 1)}-${p(n)}`;
389
+ }
390
+ function h(e) {
391
+ if (!e || typeof e != "string") return null;
392
+ let t = e.split("-");
393
+ if (t.length !== 3) return null;
394
+ let n = parseInt(t[0], 10), r = parseInt(t[1], 10) - 1, i = parseInt(t[2], 10);
395
+ return isNaN(n) || isNaN(r) || isNaN(i) ? null : {
396
+ year: n,
397
+ month: r,
398
+ day: i
399
+ };
400
+ }
401
+ function g() {
402
+ let e = /* @__PURE__ */ new Date();
403
+ return m(e.getFullYear(), e.getMonth(), e.getDate());
404
+ }
405
+ function _(e) {
406
+ let t = h(e);
407
+ return t ? new Date(t.year, t.month, t.day).toLocaleDateString("en-US", {
408
+ weekday: "short",
409
+ month: "short",
410
+ day: "numeric"
411
+ }) : "";
412
+ }
413
+ function v(e) {
414
+ let t = h(e);
415
+ return t ? new Date(t.year, t.month, t.day).toLocaleDateString("en-US", {
416
+ month: "short",
417
+ day: "numeric"
418
+ }) : "";
419
+ }
420
+ var y = class extends t {
421
+ constructor(...e) {
422
+ super(...e), this.variant = "docked", this.range = !1, this.value = "", this.startDate = "", this.endDate = "", this.nameStart = "", this.nameEnd = "", this.min = "", this.max = "", this.label = "", this.headline = "", this.open = !1, this.error = !1, this.errorText = "", this.supportingText = "", this.firstDayOfWeek = 0, this.showActions = !1, this.viewYear = (/* @__PURE__ */ new Date()).getFullYear(), this.viewMonth = (/* @__PURE__ */ new Date()).getMonth(), this.viewMode = "calendar", this.hoverDate = null, this.selectingEnd = !1, this.initialValue = "", this.initialStartDate = "", this.initialEndDate = "", this.handlePrevMonth = () => {
423
+ this.viewMonth === 0 ? (this.viewMonth = 11, --this.viewYear) : --this.viewMonth;
424
+ }, this.handleNextMonth = () => {
425
+ this.viewMonth === 11 ? (this.viewMonth = 0, this.viewYear += 1) : this.viewMonth += 1;
426
+ }, this.toggleViewMode = () => {
427
+ this.viewMode = this.viewMode === "calendar" ? "year" : "calendar";
428
+ }, this.selectYear = (e) => {
429
+ this.viewYear = e, this.viewMode = "calendar";
430
+ }, this.handleDayClick = (e) => {
431
+ if (!this.isDateDisabled(e)) {
432
+ if (!this.range) {
433
+ this.value = e, this.updateFormValue(), this.validateInput(), this.emitEvent("input", { value: this.value }), this.emitEvent("change", { value: this.value }), this.emitEvent("select", {
434
+ date: e,
435
+ type: "single"
436
+ });
437
+ return;
438
+ }
439
+ !this.selectingEnd || !this.startDate || e < this.startDate ? (this.startDate = e, this.endDate = "", this.value = e, this.selectingEnd = !0, this.updateFormValue(), this.validateInput(), this.emitEvent("select", {
440
+ date: e,
441
+ type: "start"
442
+ }), this.emitEvent("input", { value: this.value })) : (this.endDate = e, this.value = `${this.startDate}/${this.endDate}`, this.selectingEnd = !1, this.updateFormValue(), this.validateInput(), this.emitEvent("select", {
443
+ date: e,
444
+ type: "end"
445
+ }), this.emitEvent("input", { value: this.value }), this.emitEvent("change", {
446
+ value: this.value,
447
+ startDate: this.startDate,
448
+ endDate: this.endDate
449
+ }));
450
+ }
451
+ }, this.handleDayMouseEnter = (e) => {
452
+ this.range && this.selectingEnd && this.startDate && (this.hoverDate = e);
453
+ }, this.handleDayMouseLeave = () => {
454
+ this.hoverDate = null;
455
+ }, this.handleCancel = (e) => {
456
+ e && e.preventDefault(), this.emitEvent("cancel"), this.close();
457
+ }, this.handleConfirm = () => {
458
+ this.emitEvent("change", {
459
+ value: this.value,
460
+ startDate: this.startDate,
461
+ endDate: this.endDate
462
+ }), this.close();
463
+ };
464
+ }
465
+ static {
466
+ this.styles = [t.styles, l];
467
+ }
468
+ connectedCallback() {
469
+ super.connectedCallback(), this.range && (this.startDate || this.endDate) && (this.value = this.startDate && this.endDate ? `${this.startDate}/${this.endDate}` : this.startDate || ""), this.initialValue = this.value, this.initialStartDate = this.startDate, this.initialEndDate = this.endDate, this.syncInitialState(), this.updateFormValue(), this.validateInput();
470
+ }
471
+ willUpdate(e) {
472
+ if (super.willUpdate(e), e.has("value") && this.handleValueChange(), (e.has("startDate") || e.has("endDate")) && this.range) {
473
+ let e = this.startDate && this.endDate ? `${this.startDate}/${this.endDate}` : this.startDate || "";
474
+ this.value !== e && (this.value = e);
475
+ }
476
+ (e.has("value") || e.has("startDate") || e.has("endDate") || e.has("range") || e.has("name") || e.has("nameStart") || e.has("nameEnd") || e.has("disabled") || e.has("required") || e.has("min") || e.has("max")) && (this.updateFormValue(), this.validateInput());
477
+ }
478
+ updated(e) {
479
+ super.updated(e), e.has("open") && this.variant === "modal" && (this.open ? (this.dialogElement && !this.dialogElement.open && this.dialogElement.showModal(), this.emitEvent("open")) : (this.dialogElement && this.dialogElement.open && this.dialogElement.close(), this.emitEvent("close")));
480
+ }
481
+ syncInitialState() {
482
+ let e = h(this.startDate || (this.range ? this.value.split("/")[0] ?? "" : this.value));
483
+ if (e) this.viewYear = e.year, this.viewMonth = e.month;
484
+ else {
485
+ let e = /* @__PURE__ */ new Date();
486
+ this.viewYear = e.getFullYear(), this.viewMonth = e.getMonth();
487
+ }
488
+ if (this.range && this.value && this.value.includes("/")) {
489
+ let [e, t] = this.value.split("/");
490
+ this.startDate = e || "", this.endDate = t || "";
491
+ }
492
+ }
493
+ handleValueChange() {
494
+ if (this.range) {
495
+ if (this.value.includes("/")) {
496
+ let [e, t] = this.value.split("/");
497
+ this.startDate = e || "", this.endDate = t || "";
498
+ } else this.startDate = this.value, this.endDate = "";
499
+ } else {
500
+ let e = h(this.value);
501
+ e && (this.viewYear = e.year, this.viewMonth = e.month);
502
+ }
503
+ }
504
+ updateFormValue() {
505
+ if (this.disabled) {
506
+ this.setFormValue(null);
507
+ return;
508
+ }
509
+ if (this.range) {
510
+ if (this.nameStart || this.nameEnd) {
511
+ let e = new FormData();
512
+ this.nameStart && e.append(this.nameStart, this.startDate), this.nameEnd && e.append(this.nameEnd, this.endDate), this.setFormValue(e);
513
+ } else {
514
+ let e = this.startDate && this.endDate ? `${this.startDate}/${this.endDate}` : this.startDate || this.value || "";
515
+ this.setFormValue(e || null);
516
+ }
517
+ } else this.setFormValue(this.value || null);
518
+ }
519
+ formDisabledCallback(e) {
520
+ this.disabled = e, this.updateFormValue(), this.validateInput();
521
+ }
522
+ formResetCallback() {
523
+ this.value = this.initialValue, this.startDate = this.initialStartDate, this.endDate = this.initialEndDate, this.selectingEnd = !1, this.syncInitialState(), this.updateFormValue(), this.validateInput();
524
+ }
525
+ showModal() {
526
+ this.open = !0;
527
+ }
528
+ show() {
529
+ this.open = !0;
530
+ }
531
+ close() {
532
+ this.open = !1;
533
+ }
534
+ reset() {
535
+ this.formResetCallback();
536
+ }
537
+ validateInput() {
538
+ if (this.disabled) {
539
+ this.setValidity({}), this.errorText || (this.error = !1);
540
+ return;
541
+ }
542
+ if (this.required && (this.range ? !this.startDate || !this.endDate : !this.value)) {
543
+ this.setValidity({ valueMissing: !0 }, this.errorText || "A date is required"), this.error = !0;
544
+ return;
545
+ }
546
+ if (this.min && this.value) {
547
+ let e = this.range ? this.startDate : this.value;
548
+ if (e && e < this.min) {
549
+ this.setValidity({ rangeUnderflow: !0 }, this.errorText || `Date must be after ${this.min}`), this.error = !0;
550
+ return;
551
+ }
552
+ }
553
+ if (this.max && this.value) {
554
+ let e = this.range ? this.endDate || this.startDate : this.value;
555
+ if (e && e > this.max) {
556
+ this.setValidity({ rangeOverflow: !0 }, this.errorText || `Date must be before ${this.max}`), this.error = !0;
557
+ return;
558
+ }
559
+ }
560
+ this.setValidity({}), this.errorText || (this.error = !1);
561
+ }
562
+ isDateDisabled(e) {
563
+ return !!(this.disabled || this.min && e < this.min || this.max && e > this.max);
564
+ }
565
+ getFormattedHeadline() {
566
+ if (this.headline) return this.headline;
567
+ if (!this.range) return this.value ? _(this.value) : "Select date";
568
+ if (!this.startDate && !this.endDate) return "Select range";
569
+ if (this.startDate && !this.endDate) return `${v(this.startDate)} – End date`;
570
+ if (this.startDate && this.endDate) {
571
+ let e = h(this.startDate), t = h(this.endDate);
572
+ return e && t && e.year === t.year ? `${v(this.startDate)} – ${v(this.endDate)}, ${e.year}` : `${v(this.startDate)} – ${v(this.endDate)}`;
573
+ }
574
+ return "Select range";
575
+ }
576
+ renderCalendarGrid() {
577
+ let e = this.viewYear, t = this.viewMonth, n = new Date(e, t + 1, 0).getDate(), a = new Date(e, t, 1).getDay();
578
+ this.firstDayOfWeek === 1 && (a = (a + 6) % 7);
579
+ let o = this.firstDayOfWeek === 1 ? f : d, s = g(), c = [];
580
+ for (let e = 0; e < a; e++) c.push(r`<div class="day-cell empty"></div>`);
581
+ for (let a = 1; a <= n; a++) {
582
+ let n = m(e, t, a), o = n === s, l = this.isDateDisabled(n), u = !1, d = !1, f = !1, p = !1;
583
+ if (!this.range) u = this.value === n;
584
+ else {
585
+ let e = this.endDate || (this.selectingEnd ? this.hoverDate : null);
586
+ d = this.startDate === n, f = e === n, u = d || f, this.startDate && e && e > this.startDate && (p = n >= this.startDate && n <= e);
587
+ }
588
+ let h = [
589
+ "day-cell",
590
+ d ? "range-start" : "",
591
+ f ? "range-end" : "",
592
+ p ? "in-range" : ""
593
+ ].filter(Boolean).join(" "), g = [
594
+ "day-btn",
595
+ u ? "selected" : "",
596
+ o ? "today" : "",
597
+ d ? "range-start" : "",
598
+ f ? "range-end" : "",
599
+ l ? "disabled" : ""
600
+ ].filter(Boolean).join(" ");
601
+ c.push(r`
602
+ <div class=${h}>
603
+ ${p ? r`<div class="range-band"></div>` : i}
604
+ <button
605
+ type="button"
606
+ class=${g}
607
+ ?disabled=${l}
608
+ aria-label=${n}
609
+ aria-selected=${u ? "true" : "false"}
610
+ @click=${() => this.handleDayClick(n)}
611
+ @mouseenter=${() => this.handleDayMouseEnter(n)}
612
+ @mouseleave=${this.handleDayMouseLeave}
613
+ >
614
+ <md-ripple ?disabled=${l}></md-ripple>
615
+ ${a}
616
+ </button>
617
+ </div>
618
+ `);
619
+ }
620
+ return r`
621
+ <div class="calendar-content">
622
+ <div class="weekdays" role="row">
623
+ ${o.map((e) => r`<div class="weekday" role="columnheader">${e}</div>`)}
624
+ </div>
625
+ <div class="days-grid" role="grid">
626
+ ${c}
627
+ </div>
628
+ </div>
629
+ `;
630
+ }
631
+ renderYearPicker() {
632
+ let e = (/* @__PURE__ */ new Date()).getFullYear(), t = e - 50, n = e + 50, i = [];
633
+ for (let a = t; a <= n; a++) {
634
+ let t = a === this.viewYear, n = a === e;
635
+ i.push(r`
636
+ <button
637
+ type="button"
638
+ class="year-btn ${t ? "selected" : ""} ${n ? "current" : ""}"
639
+ @click=${() => this.selectYear(a)}
640
+ >
641
+ <md-ripple></md-ripple>
642
+ ${a}
643
+ </button>
644
+ `);
645
+ }
646
+ return r`
647
+ <div class="year-picker-view">
648
+ ${i}
649
+ </div>
650
+ `;
651
+ }
652
+ renderPickerSurface() {
653
+ let e = this.viewMode === "year", t = this.label || (this.range ? "Select range" : "Select date"), n = this.getFormattedHeadline(), a = !!(this.range ? this.startDate : this.value), o = this.showActions || this.variant === "modal";
654
+ return r`
655
+ <div class="picker-surface">
656
+ <div class="header">
657
+ <div class="header-top">
658
+ <span class="subhead">${t}</span>
659
+ <md-icon-button
660
+ icon=${e ? "calendar_month" : "edit_calendar"}
661
+ aria-label=${e ? "Switch to calendar view" : "Switch to year view"}
662
+ @click=${this.toggleViewMode}
663
+ ></md-icon-button>
664
+ </div>
665
+ <div class="headline ${a ? "" : "placeholder"}">
666
+ ${n}
667
+ </div>
668
+ </div>
669
+
670
+ <div class="header-divider"></div>
671
+
672
+ <div class="navigation">
673
+ <button
674
+ type="button"
675
+ class="month-year-btn ${e ? "open" : ""}"
676
+ @click=${this.toggleViewMode}
677
+ aria-label="Toggle year selection"
678
+ >
679
+ <span>${u[this.viewMonth]} ${this.viewYear}</span>
680
+ <md-icon class="dropdown-icon" name="arrow_drop_down"></md-icon>
681
+ </button>
682
+
683
+ ${e ? i : r`
684
+ <div class="nav-arrows">
685
+ <md-icon-button
686
+ icon="chevron_left"
687
+ aria-label="Previous month"
688
+ @click=${this.handlePrevMonth}
689
+ ></md-icon-button>
690
+ <md-icon-button
691
+ icon="chevron_right"
692
+ aria-label="Next month"
693
+ @click=${this.handleNextMonth}
694
+ ></md-icon-button>
695
+ </div>
696
+ `}
697
+ </div>
698
+
699
+ ${e ? this.renderYearPicker() : this.renderCalendarGrid()}
700
+
701
+ ${o ? r`
702
+ <div class="actions">
703
+ <slot name="actions">
704
+ <md-button variant="text" @click=${this.handleCancel}>Cancel</md-button>
705
+ <md-button variant="text" @click=${this.handleConfirm}>OK</md-button>
706
+ </slot>
707
+ </div>
708
+ ` : i}
709
+ </div>
710
+
711
+ ${this.supportingText || this.errorText ? r`
712
+ <div class="supporting-text">
713
+ ${this.error && this.errorText || this.supportingText}
714
+ </div>
715
+ ` : i}
716
+ `;
717
+ }
718
+ render() {
719
+ return this.variant === "modal" ? r`
720
+ <dialog
721
+ @cancel=${this.handleCancel}
722
+ @click=${(e) => {
723
+ e.target === this.dialogElement && this.handleCancel();
724
+ }}
725
+ >
726
+ ${this.renderPickerSurface()}
727
+ </dialog>
728
+ ` : this.renderPickerSurface();
729
+ }
730
+ };
731
+ e([o({
732
+ type: String,
733
+ reflect: !0
734
+ })], y.prototype, "variant", void 0), e([o({
735
+ type: Boolean,
736
+ reflect: !0
737
+ })], y.prototype, "range", void 0), e([o({
738
+ type: String,
739
+ reflect: !0
740
+ })], y.prototype, "value", void 0), e([o({
741
+ type: String,
742
+ attribute: "start-date"
743
+ })], y.prototype, "startDate", void 0), e([o({
744
+ type: String,
745
+ attribute: "end-date"
746
+ })], y.prototype, "endDate", void 0), e([o({
747
+ type: String,
748
+ attribute: "name-start"
749
+ })], y.prototype, "nameStart", void 0), e([o({
750
+ type: String,
751
+ attribute: "name-end"
752
+ })], y.prototype, "nameEnd", void 0), e([o({ type: String })], y.prototype, "min", void 0), e([o({ type: String })], y.prototype, "max", void 0), e([o({ type: String })], y.prototype, "label", void 0), e([o({ type: String })], y.prototype, "headline", void 0), e([o({
753
+ type: Boolean,
754
+ reflect: !0
755
+ })], y.prototype, "open", void 0), e([o({
756
+ type: Boolean,
757
+ reflect: !0
758
+ })], y.prototype, "error", void 0), e([o({
759
+ type: String,
760
+ attribute: "error-text"
761
+ })], y.prototype, "errorText", void 0), e([o({
762
+ type: String,
763
+ attribute: "supporting-text"
764
+ })], y.prototype, "supportingText", void 0), e([o({
765
+ type: Number,
766
+ attribute: "first-day-of-week"
767
+ })], y.prototype, "firstDayOfWeek", void 0), e([o({
768
+ type: Boolean,
769
+ attribute: "show-actions"
770
+ })], y.prototype, "showActions", void 0), e([c()], y.prototype, "viewYear", void 0), e([c()], y.prototype, "viewMonth", void 0), e([c()], y.prototype, "viewMode", void 0), e([c()], y.prototype, "hoverDate", void 0), e([c()], y.prototype, "selectingEnd", void 0), e([s("dialog")], y.prototype, "dialogElement", void 0), y = e([a("md-date-picker")], y);
771
+ //#endregion
772
+ export { y as t };
773
+
774
+ //# sourceMappingURL=date-picker-B15_rR0f.js.map