@francofantomius/material-components 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +2 -1
  3. package/custom-elements.json +1049 -300
  4. package/dist/chunks/{account-menu-Dau0UHTl.js → account-menu-Bo7NghIm.js} +181 -223
  5. package/dist/chunks/{account-menu-Dau0UHTl.js.map → account-menu-Bo7NghIm.js.map} +1 -1
  6. package/dist/chunks/app-drawer-DjKSuatE.js +855 -0
  7. package/dist/chunks/{app-drawer-Du1ePzxZ.js.map → app-drawer-DjKSuatE.js.map} +1 -1
  8. package/dist/chunks/{badge-G4EjcMoy.js → badge-sZzNelZz.js} +30 -34
  9. package/dist/chunks/{badge-G4EjcMoy.js.map → badge-sZzNelZz.js.map} +1 -1
  10. package/dist/chunks/{bottom-sheet-q79BBYAj.js → bottom-sheet-BGgbUmKd.js} +98 -109
  11. package/dist/chunks/{bottom-sheet-q79BBYAj.js.map → bottom-sheet-BGgbUmKd.js.map} +1 -1
  12. package/dist/chunks/{button-D2vn7kJ8.js → button-DeQQlYds.js} +62 -72
  13. package/dist/chunks/{button-D2vn7kJ8.js.map → button-DeQQlYds.js.map} +1 -1
  14. package/dist/chunks/button-group-R2jN8FXK.js +136 -0
  15. package/dist/chunks/{button-group-CNqvJx1n.js.map → button-group-R2jN8FXK.js.map} +1 -1
  16. package/dist/chunks/{card-DVffdPpv.js → card-CVhWizDF.js} +45 -50
  17. package/dist/chunks/{card-DVffdPpv.js.map → card-CVhWizDF.js.map} +1 -1
  18. package/dist/chunks/{carousel-item-BG6kjjjk.js → carousel-item-DNp2zhP9.js} +62 -73
  19. package/dist/chunks/{carousel-item-BG6kjjjk.js.map → carousel-item-DNp2zhP9.js.map} +1 -1
  20. package/dist/chunks/{checkbox-BqlboAHd.js → checkbox-CsqUHVOF.js} +59 -64
  21. package/dist/chunks/{checkbox-BqlboAHd.js.map → checkbox-CsqUHVOF.js.map} +1 -1
  22. package/dist/chunks/{chip-CI1ZINnr.js → chip-B5c-I8bj.js} +56 -63
  23. package/dist/chunks/{chip-CI1ZINnr.js.map → chip-B5c-I8bj.js.map} +1 -1
  24. package/dist/chunks/code-CM6hIZNx.js +1531 -0
  25. package/dist/chunks/{code-C5UFBkCh.js.map → code-CM6hIZNx.js.map} +1 -1
  26. package/dist/chunks/date-picker-B15_rR0f.js +774 -0
  27. package/dist/chunks/date-picker-B15_rR0f.js.map +1 -0
  28. package/dist/chunks/decorate-DknOJ8FJ.js +40 -0
  29. package/dist/chunks/{decorate-DXuynaiA.js.map → decorate-DknOJ8FJ.js.map} +1 -1
  30. package/dist/chunks/{dialog-DGVEE5m_.js → dialog-Czknf8dl.js} +47 -52
  31. package/dist/chunks/{dialog-DGVEE5m_.js.map → dialog-Czknf8dl.js.map} +1 -1
  32. package/dist/chunks/divider-DIyCOosa.js +78 -0
  33. package/dist/chunks/{divider-DNepwoZv.js.map → divider-DIyCOosa.js.map} +1 -1
  34. package/dist/chunks/{fab-C9j3WBHE.js → fab-aZC0-lHo.js} +38 -44
  35. package/dist/chunks/{fab-C9j3WBHE.js.map → fab-aZC0-lHo.js.map} +1 -1
  36. package/dist/chunks/{fab-menu.css-3pu930sZ.js → fab-menu.css-BdVg1k4c.js} +5 -6
  37. package/dist/chunks/{fab-menu.css-3pu930sZ.js.map → fab-menu.css-BdVg1k4c.js.map} +1 -1
  38. package/dist/chunks/focus-ring-K6SY_mIm.js +69 -0
  39. package/dist/chunks/{focus-ring-CuiJuM-y.js.map → focus-ring-K6SY_mIm.js.map} +1 -1
  40. package/dist/chunks/form-associated-Do5uXckv.js +69 -0
  41. package/dist/chunks/{form-associated-Cty_ZaS9.js.map → form-associated-Do5uXckv.js.map} +1 -1
  42. package/dist/chunks/icon-FvKeXi61.js +59 -0
  43. package/dist/chunks/{icon-DrNqcNEL.js.map → icon-FvKeXi61.js.map} +1 -1
  44. package/dist/chunks/{icon-button-BQz73GLa.js → icon-button-CulnCZpZ.js} +58 -67
  45. package/dist/chunks/{icon-button-BQz73GLa.js.map → icon-button-CulnCZpZ.js.map} +1 -1
  46. package/dist/chunks/{list-D8olR7oZ.js → list-D7yrbJRL.js} +64 -72
  47. package/dist/chunks/{list-D8olR7oZ.js.map → list-D7yrbJRL.js.map} +1 -1
  48. package/dist/chunks/{loading-indicator-CvWnZr9o.js → loading-indicator-D9AyxNQh.js} +41 -46
  49. package/dist/chunks/{loading-indicator-CvWnZr9o.js.map → loading-indicator-D9AyxNQh.js.map} +1 -1
  50. package/dist/chunks/{menu-item-BBSp5Cqc.js → menu-item-C3entPo7.js} +77 -91
  51. package/dist/chunks/{menu-item-BBSp5Cqc.js.map → menu-item-C3entPo7.js.map} +1 -1
  52. package/dist/chunks/{navigation-bar-item-C9DfOEzg.js → navigation-bar-item-CWHCQeNw.js} +98 -115
  53. package/dist/chunks/{navigation-bar-item-C9DfOEzg.js.map → navigation-bar-item-CWHCQeNw.js.map} +1 -1
  54. package/dist/chunks/{navigation-drawer-CKl44Ef5.js → navigation-drawer-pGer0t4z.js} +116 -138
  55. package/dist/chunks/{navigation-drawer-CKl44Ef5.js.map → navigation-drawer-pGer0t4z.js.map} +1 -1
  56. package/dist/chunks/{navigation-rail-item-6pdhNHJK.js → navigation-rail-item-CWvGjLjC.js} +70 -86
  57. package/dist/chunks/{navigation-rail-item-6pdhNHJK.js.map → navigation-rail-item-CWvGjLjC.js.map} +1 -1
  58. package/dist/chunks/{player-C4ydiIpr.js → player-dT08kxeG.js} +423 -466
  59. package/dist/chunks/{player-C4ydiIpr.js.map → player-dT08kxeG.js.map} +1 -1
  60. package/dist/chunks/{progress-LQmLMDjX.js → progress-etZuX_VD.js} +46 -53
  61. package/dist/chunks/{progress-LQmLMDjX.js.map → progress-etZuX_VD.js.map} +1 -1
  62. package/dist/chunks/radio-jPCwykIa.js +197 -0
  63. package/dist/chunks/{radio-Bily78NT.js.map → radio-jPCwykIa.js.map} +1 -1
  64. package/dist/chunks/ripple-CBOKeVfm.js +132 -0
  65. package/dist/chunks/{ripple-squbKHhj.js.map → ripple-CBOKeVfm.js.map} +1 -1
  66. package/dist/chunks/{search-bar-fUD0qU2P.js → search-bar-B6xxVT7u.js} +244 -203
  67. package/dist/chunks/search-bar-B6xxVT7u.js.map +1 -0
  68. package/dist/chunks/segmented-button-Fon9kOHV.js +253 -0
  69. package/dist/chunks/{segmented-button-B0BvGSQ7.js.map → segmented-button-Fon9kOHV.js.map} +1 -1
  70. package/dist/chunks/{side-sheet-S2w081AK.js → side-sheet-sQ8qGKVm.js} +73 -81
  71. package/dist/chunks/{side-sheet-S2w081AK.js.map → side-sheet-sQ8qGKVm.js.map} +1 -1
  72. package/dist/chunks/slider-OIyEcUU9.js +448 -0
  73. package/dist/chunks/slider-OIyEcUU9.js.map +1 -0
  74. package/dist/chunks/{snackbar-Wsz3BzEY.js → snackbar-Yi6fF9vM.js} +57 -62
  75. package/dist/chunks/{snackbar-Wsz3BzEY.js.map → snackbar-Yi6fF9vM.js.map} +1 -1
  76. package/dist/chunks/{split-button-DUfjukQY.js → split-button-CLjVJe3I.js} +155 -172
  77. package/dist/chunks/{split-button-DUfjukQY.js.map → split-button-CLjVJe3I.js.map} +1 -1
  78. package/dist/chunks/{switch-DdukrvXb.js → switch-mtu6AVEh.js} +54 -57
  79. package/dist/chunks/{switch-DdukrvXb.js.map → switch-mtu6AVEh.js.map} +1 -1
  80. package/dist/chunks/table-C5rCvdFc.js +724 -0
  81. package/dist/chunks/{table-CqHnneAj.js.map → table-C5rCvdFc.js.map} +1 -1
  82. package/dist/chunks/tabs-C0mtURlT.js +182 -0
  83. package/dist/chunks/{tabs-BfOtoeir.js.map → tabs-C0mtURlT.js.map} +1 -1
  84. package/dist/chunks/{text-field-hN6-2HQy.js → text-field-MifFD7uk.js} +92 -110
  85. package/dist/chunks/{text-field-hN6-2HQy.js.map → text-field-MifFD7uk.js.map} +1 -1
  86. package/dist/chunks/time-picker-JTcLcJuz.js +810 -0
  87. package/dist/chunks/time-picker-JTcLcJuz.js.map +1 -0
  88. package/dist/chunks/{toolbar-DXVQbQKJ.js → toolbar-CsxKc2Yd.js} +48 -55
  89. package/dist/chunks/{toolbar-DXVQbQKJ.js.map → toolbar-CsxKc2Yd.js.map} +1 -1
  90. package/dist/chunks/tooltip-Ds3lNowS.js +380 -0
  91. package/dist/chunks/{tooltip-CE7JMHMu.js.map → tooltip-Ds3lNowS.js.map} +1 -1
  92. package/dist/chunks/{top-app-bar-Dgbp6CFv.js → top-app-bar-TrnjKzOX.js} +52 -53
  93. package/dist/chunks/top-app-bar-TrnjKzOX.js.map +1 -0
  94. package/dist/components/account-menu/account-menu.js +2 -8
  95. package/dist/components/app-drawer/app-drawer.js +2 -9
  96. package/dist/components/badge/badge.js +2 -4
  97. package/dist/components/bottom-sheet/bottom-sheet.js +2 -4
  98. package/dist/components/button/button.js +2 -4
  99. package/dist/components/button-group/button-group.js +2 -4
  100. package/dist/components/card/card.js +2 -4
  101. package/dist/components/carousel/carousel-item.js +2 -4
  102. package/dist/components/carousel/carousel.js +214 -232
  103. package/dist/components/carousel/carousel.js.map +1 -1
  104. package/dist/components/checkbox/checkbox.js +2 -4
  105. package/dist/components/chip/chip.js +2 -5
  106. package/dist/components/code/code.js +2 -5
  107. package/dist/components/date-picker/date-picker.js +2 -4
  108. package/dist/components/dialog/dialog.js +2 -4
  109. package/dist/components/divider/divider.js +2 -4
  110. package/dist/components/fab/fab.js +2 -4
  111. package/dist/components/fab-menu/fab-menu-item.js +53 -61
  112. package/dist/components/fab-menu/fab-menu-item.js.map +1 -1
  113. package/dist/components/fab-menu/fab-menu.js +98 -111
  114. package/dist/components/fab-menu/fab-menu.js.map +1 -1
  115. package/dist/components/icon/icon.js +2 -4
  116. package/dist/components/icon-button/icon-button.js +2 -4
  117. package/dist/components/list/list.js +2 -5
  118. package/dist/components/loading-indicator/loading-indicator.js +2 -4
  119. package/dist/components/menu/menu-item.js +2 -4
  120. package/dist/components/menu/menu.js +165 -183
  121. package/dist/components/menu/menu.js.map +1 -1
  122. package/dist/components/navigation-bar/navigation-bar-item.js +2 -5
  123. package/dist/components/navigation-bar/navigation-bar.js +131 -143
  124. package/dist/components/navigation-bar/navigation-bar.js.map +1 -1
  125. package/dist/components/navigation-drawer/navigation-drawer.js +2 -8
  126. package/dist/components/navigation-rail/navigation-rail-item.js +2 -5
  127. package/dist/components/navigation-rail/navigation-rail.js +92 -102
  128. package/dist/components/navigation-rail/navigation-rail.js.map +1 -1
  129. package/dist/components/player/player.js +2 -7
  130. package/dist/components/progress/progress.js +2 -5
  131. package/dist/components/radio/radio.js +2 -5
  132. package/dist/components/search-bar/search-bar.js +2 -5
  133. package/dist/components/segmented-button/segmented-button.js +2 -5
  134. package/dist/components/side-sheet/side-sheet.js +2 -4
  135. package/dist/components/slider/slider.js +2 -4
  136. package/dist/components/snackbar/snackbar.js +2 -4
  137. package/dist/components/split-button/split-button.js +2 -4
  138. package/dist/components/switch/switch.js +2 -4
  139. package/dist/components/table/table.js +2 -13
  140. package/dist/components/tabs/tabs.js +2 -5
  141. package/dist/components/text-field/text-field.js +2 -4
  142. package/dist/components/time-picker/time-picker.js +2 -4
  143. package/dist/components/toolbar/toolbar.js +2 -4
  144. package/dist/components/tooltip/tooltip.js +2 -4
  145. package/dist/components/top-app-bar/top-app-bar.js +2 -5
  146. package/dist/index.js +52 -150
  147. package/dist/internal/focus-ring/focus-ring.js +2 -4
  148. package/dist/internal/ripple/ripple.js +2 -4
  149. package/dist/tokens/index.js +468 -314
  150. package/dist/tokens/index.js.map +1 -1
  151. package/llms.txt +74 -8
  152. package/package.json +2 -14
  153. package/dist/chunks/app-drawer-Du1ePzxZ.js +0 -903
  154. package/dist/chunks/button-group-CNqvJx1n.js +0 -143
  155. package/dist/chunks/code-C5UFBkCh.js +0 -1830
  156. package/dist/chunks/date-picker-DJeHi4w-.js +0 -777
  157. package/dist/chunks/date-picker-DJeHi4w-.js.map +0 -1
  158. package/dist/chunks/decorate-DXuynaiA.js +0 -39
  159. package/dist/chunks/divider-DNepwoZv.js +0 -82
  160. package/dist/chunks/focus-ring-CuiJuM-y.js +0 -71
  161. package/dist/chunks/form-associated-Cty_ZaS9.js +0 -73
  162. package/dist/chunks/icon-DrNqcNEL.js +0 -62
  163. package/dist/chunks/radio-Bily78NT.js +0 -205
  164. package/dist/chunks/ripple-squbKHhj.js +0 -135
  165. package/dist/chunks/search-bar-fUD0qU2P.js.map +0 -1
  166. package/dist/chunks/segmented-button-B0BvGSQ7.js +0 -265
  167. package/dist/chunks/slider-D-mnO8yQ.js +0 -450
  168. package/dist/chunks/slider-D-mnO8yQ.js.map +0 -1
  169. package/dist/chunks/table-CqHnneAj.js +0 -773
  170. package/dist/chunks/tabs-BfOtoeir.js +0 -191
  171. package/dist/chunks/time-picker-CZnb2sWz.js +0 -785
  172. package/dist/chunks/time-picker-CZnb2sWz.js.map +0 -1
  173. package/dist/chunks/tooltip-CE7JMHMu.js +0 -398
  174. package/dist/chunks/top-app-bar-Dgbp6CFv.js.map +0 -1
  175. package/dist/components/account-menu/account-menu.css.d.ts +0 -3
  176. package/dist/components/account-menu/account-menu.css.d.ts.map +0 -1
  177. package/dist/components/account-menu/account-menu.d.ts +0 -111
  178. package/dist/components/account-menu/account-menu.d.ts.map +0 -1
  179. package/dist/components/app-drawer/app-drawer.css.d.ts +0 -3
  180. package/dist/components/app-drawer/app-drawer.css.d.ts.map +0 -1
  181. package/dist/components/app-drawer/app-drawer.d.ts +0 -173
  182. package/dist/components/app-drawer/app-drawer.d.ts.map +0 -1
  183. package/dist/components/badge/badge.css.d.ts +0 -2
  184. package/dist/components/badge/badge.css.d.ts.map +0 -1
  185. package/dist/components/badge/badge.d.ts +0 -16
  186. package/dist/components/badge/badge.d.ts.map +0 -1
  187. package/dist/components/bottom-sheet/bottom-sheet.css.d.ts +0 -2
  188. package/dist/components/bottom-sheet/bottom-sheet.css.d.ts.map +0 -1
  189. package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -69
  190. package/dist/components/bottom-sheet/bottom-sheet.d.ts.map +0 -1
  191. package/dist/components/button/button.css.d.ts +0 -2
  192. package/dist/components/button/button.css.d.ts.map +0 -1
  193. package/dist/components/button/button.d.ts +0 -25
  194. package/dist/components/button/button.d.ts.map +0 -1
  195. package/dist/components/button-group/button-group.css.d.ts +0 -2
  196. package/dist/components/button-group/button-group.css.d.ts.map +0 -1
  197. package/dist/components/button-group/button-group.d.ts +0 -28
  198. package/dist/components/button-group/button-group.d.ts.map +0 -1
  199. package/dist/components/card/card.css.d.ts +0 -2
  200. package/dist/components/card/card.css.d.ts.map +0 -1
  201. package/dist/components/card/card.d.ts +0 -18
  202. package/dist/components/card/card.d.ts.map +0 -1
  203. package/dist/components/carousel/carousel-item.d.ts +0 -33
  204. package/dist/components/carousel/carousel-item.d.ts.map +0 -1
  205. package/dist/components/carousel/carousel.css.d.ts +0 -3
  206. package/dist/components/carousel/carousel.css.d.ts.map +0 -1
  207. package/dist/components/carousel/carousel.d.ts +0 -81
  208. package/dist/components/carousel/carousel.d.ts.map +0 -1
  209. package/dist/components/checkbox/checkbox.css.d.ts +0 -2
  210. package/dist/components/checkbox/checkbox.css.d.ts.map +0 -1
  211. package/dist/components/checkbox/checkbox.d.ts +0 -24
  212. package/dist/components/checkbox/checkbox.d.ts.map +0 -1
  213. package/dist/components/chip/chip.css.d.ts +0 -3
  214. package/dist/components/chip/chip.css.d.ts.map +0 -1
  215. package/dist/components/chip/chip.d.ts +0 -27
  216. package/dist/components/chip/chip.d.ts.map +0 -1
  217. package/dist/components/code/code.css.d.ts +0 -2
  218. package/dist/components/code/code.css.d.ts.map +0 -1
  219. package/dist/components/code/code.d.ts +0 -106
  220. package/dist/components/code/code.d.ts.map +0 -1
  221. package/dist/components/code/highlighter.d.ts +0 -8
  222. package/dist/components/code/highlighter.d.ts.map +0 -1
  223. package/dist/components/code/linter.d.ts +0 -44
  224. package/dist/components/code/linter.d.ts.map +0 -1
  225. package/dist/components/date-picker/date-picker.css.d.ts +0 -2
  226. package/dist/components/date-picker/date-picker.css.d.ts.map +0 -1
  227. package/dist/components/date-picker/date-picker.d.ts +0 -59
  228. package/dist/components/date-picker/date-picker.d.ts.map +0 -1
  229. package/dist/components/dialog/dialog.css.d.ts +0 -2
  230. package/dist/components/dialog/dialog.css.d.ts.map +0 -1
  231. package/dist/components/dialog/dialog.d.ts +0 -22
  232. package/dist/components/dialog/dialog.d.ts.map +0 -1
  233. package/dist/components/divider/divider.css.d.ts +0 -2
  234. package/dist/components/divider/divider.css.d.ts.map +0 -1
  235. package/dist/components/divider/divider.d.ts +0 -16
  236. package/dist/components/divider/divider.d.ts.map +0 -1
  237. package/dist/components/fab/fab.css.d.ts +0 -2
  238. package/dist/components/fab/fab.css.d.ts.map +0 -1
  239. package/dist/components/fab/fab.d.ts +0 -19
  240. package/dist/components/fab/fab.d.ts.map +0 -1
  241. package/dist/components/fab-menu/fab-menu-item.d.ts +0 -35
  242. package/dist/components/fab-menu/fab-menu-item.d.ts.map +0 -1
  243. package/dist/components/fab-menu/fab-menu.css.d.ts +0 -3
  244. package/dist/components/fab-menu/fab-menu.css.d.ts.map +0 -1
  245. package/dist/components/fab-menu/fab-menu.d.ts +0 -72
  246. package/dist/components/fab-menu/fab-menu.d.ts.map +0 -1
  247. package/dist/components/icon/icon.css.d.ts +0 -2
  248. package/dist/components/icon/icon.css.d.ts.map +0 -1
  249. package/dist/components/icon/icon.d.ts +0 -15
  250. package/dist/components/icon/icon.d.ts.map +0 -1
  251. package/dist/components/icon-button/icon-button.css.d.ts +0 -2
  252. package/dist/components/icon-button/icon-button.css.d.ts.map +0 -1
  253. package/dist/components/icon-button/icon-button.d.ts +0 -22
  254. package/dist/components/icon-button/icon-button.d.ts.map +0 -1
  255. package/dist/components/list/list.css.d.ts +0 -3
  256. package/dist/components/list/list.css.d.ts.map +0 -1
  257. package/dist/components/list/list.d.ts +0 -25
  258. package/dist/components/list/list.d.ts.map +0 -1
  259. package/dist/components/loading-indicator/loading-indicator.css.d.ts +0 -2
  260. package/dist/components/loading-indicator/loading-indicator.css.d.ts.map +0 -1
  261. package/dist/components/loading-indicator/loading-indicator.d.ts +0 -48
  262. package/dist/components/loading-indicator/loading-indicator.d.ts.map +0 -1
  263. package/dist/components/menu/menu-item.d.ts +0 -41
  264. package/dist/components/menu/menu-item.d.ts.map +0 -1
  265. package/dist/components/menu/menu.css.d.ts +0 -3
  266. package/dist/components/menu/menu.css.d.ts.map +0 -1
  267. package/dist/components/menu/menu.d.ts +0 -91
  268. package/dist/components/menu/menu.d.ts.map +0 -1
  269. package/dist/components/navigation-bar/navigation-bar-item.d.ts +0 -49
  270. package/dist/components/navigation-bar/navigation-bar-item.d.ts.map +0 -1
  271. package/dist/components/navigation-bar/navigation-bar.css.d.ts +0 -3
  272. package/dist/components/navigation-bar/navigation-bar.css.d.ts.map +0 -1
  273. package/dist/components/navigation-bar/navigation-bar.d.ts +0 -50
  274. package/dist/components/navigation-bar/navigation-bar.d.ts.map +0 -1
  275. package/dist/components/navigation-drawer/navigation-drawer.css.d.ts +0 -3
  276. package/dist/components/navigation-drawer/navigation-drawer.css.d.ts.map +0 -1
  277. package/dist/components/navigation-drawer/navigation-drawer.d.ts +0 -76
  278. package/dist/components/navigation-drawer/navigation-drawer.d.ts.map +0 -1
  279. package/dist/components/navigation-rail/navigation-rail-item.d.ts +0 -36
  280. package/dist/components/navigation-rail/navigation-rail-item.d.ts.map +0 -1
  281. package/dist/components/navigation-rail/navigation-rail.css.d.ts +0 -3
  282. package/dist/components/navigation-rail/navigation-rail.css.d.ts.map +0 -1
  283. package/dist/components/navigation-rail/navigation-rail.d.ts +0 -43
  284. package/dist/components/navigation-rail/navigation-rail.d.ts.map +0 -1
  285. package/dist/components/player/player.css.d.ts +0 -2
  286. package/dist/components/player/player.css.d.ts.map +0 -1
  287. package/dist/components/player/player.d.ts +0 -99
  288. package/dist/components/player/player.d.ts.map +0 -1
  289. package/dist/components/progress/progress.css.d.ts +0 -2
  290. package/dist/components/progress/progress.css.d.ts.map +0 -1
  291. package/dist/components/progress/progress.d.ts +0 -21
  292. package/dist/components/progress/progress.d.ts.map +0 -1
  293. package/dist/components/radio/radio.css.d.ts +0 -3
  294. package/dist/components/radio/radio.css.d.ts.map +0 -1
  295. package/dist/components/radio/radio.d.ts +0 -38
  296. package/dist/components/radio/radio.d.ts.map +0 -1
  297. package/dist/components/search-bar/search-bar.css.d.ts +0 -2
  298. package/dist/components/search-bar/search-bar.css.d.ts.map +0 -1
  299. package/dist/components/search-bar/search-bar.d.ts +0 -81
  300. package/dist/components/search-bar/search-bar.d.ts.map +0 -1
  301. package/dist/components/segmented-button/segmented-button.css.d.ts +0 -3
  302. package/dist/components/segmented-button/segmented-button.css.d.ts.map +0 -1
  303. package/dist/components/segmented-button/segmented-button.d.ts +0 -40
  304. package/dist/components/segmented-button/segmented-button.d.ts.map +0 -1
  305. package/dist/components/side-sheet/side-sheet.css.d.ts +0 -2
  306. package/dist/components/side-sheet/side-sheet.css.d.ts.map +0 -1
  307. package/dist/components/side-sheet/side-sheet.d.ts +0 -57
  308. package/dist/components/side-sheet/side-sheet.d.ts.map +0 -1
  309. package/dist/components/slider/slider.css.d.ts +0 -2
  310. package/dist/components/slider/slider.css.d.ts.map +0 -1
  311. package/dist/components/slider/slider.d.ts +0 -51
  312. package/dist/components/slider/slider.d.ts.map +0 -1
  313. package/dist/components/snackbar/snackbar.css.d.ts +0 -2
  314. package/dist/components/snackbar/snackbar.css.d.ts.map +0 -1
  315. package/dist/components/snackbar/snackbar.d.ts +0 -24
  316. package/dist/components/snackbar/snackbar.d.ts.map +0 -1
  317. package/dist/components/split-button/split-button.css.d.ts +0 -2
  318. package/dist/components/split-button/split-button.css.d.ts.map +0 -1
  319. package/dist/components/split-button/split-button.d.ts +0 -89
  320. package/dist/components/split-button/split-button.d.ts.map +0 -1
  321. package/dist/components/switch/switch.css.d.ts +0 -2
  322. package/dist/components/switch/switch.css.d.ts.map +0 -1
  323. package/dist/components/switch/switch.d.ts +0 -22
  324. package/dist/components/switch/switch.d.ts.map +0 -1
  325. package/dist/components/table/table.css.d.ts +0 -8
  326. package/dist/components/table/table.css.d.ts.map +0 -1
  327. package/dist/components/table/table.d.ts +0 -158
  328. package/dist/components/table/table.d.ts.map +0 -1
  329. package/dist/components/tabs/tabs.css.d.ts +0 -3
  330. package/dist/components/tabs/tabs.css.d.ts.map +0 -1
  331. package/dist/components/tabs/tabs.d.ts +0 -33
  332. package/dist/components/tabs/tabs.d.ts.map +0 -1
  333. package/dist/components/text-field/text-field.css.d.ts +0 -2
  334. package/dist/components/text-field/text-field.css.d.ts.map +0 -1
  335. package/dist/components/text-field/text-field.d.ts +0 -40
  336. package/dist/components/text-field/text-field.d.ts.map +0 -1
  337. package/dist/components/time-picker/time-picker.css.d.ts +0 -2
  338. package/dist/components/time-picker/time-picker.css.d.ts.map +0 -1
  339. package/dist/components/time-picker/time-picker.d.ts +0 -87
  340. package/dist/components/time-picker/time-picker.d.ts.map +0 -1
  341. package/dist/components/toolbar/toolbar.css.d.ts +0 -2
  342. package/dist/components/toolbar/toolbar.css.d.ts.map +0 -1
  343. package/dist/components/toolbar/toolbar.d.ts +0 -53
  344. package/dist/components/toolbar/toolbar.d.ts.map +0 -1
  345. package/dist/components/tooltip/tooltip.css.d.ts +0 -2
  346. package/dist/components/tooltip/tooltip.css.d.ts.map +0 -1
  347. package/dist/components/tooltip/tooltip.d.ts +0 -89
  348. package/dist/components/tooltip/tooltip.d.ts.map +0 -1
  349. package/dist/components/top-app-bar/top-app-bar.css.d.ts +0 -2
  350. package/dist/components/top-app-bar/top-app-bar.css.d.ts.map +0 -1
  351. package/dist/components/top-app-bar/top-app-bar.d.ts +0 -29
  352. package/dist/components/top-app-bar/top-app-bar.d.ts.map +0 -1
  353. package/dist/index.d.ts +0 -52
  354. package/dist/index.d.ts.map +0 -1
  355. package/dist/internal/base-component.d.ts +0 -13
  356. package/dist/internal/base-component.d.ts.map +0 -1
  357. package/dist/internal/focus-ring/focus-ring.css.d.ts +0 -2
  358. package/dist/internal/focus-ring/focus-ring.css.d.ts.map +0 -1
  359. package/dist/internal/focus-ring/focus-ring.d.ts +0 -18
  360. package/dist/internal/focus-ring/focus-ring.d.ts.map +0 -1
  361. package/dist/internal/form-associated.d.ts +0 -26
  362. package/dist/internal/form-associated.d.ts.map +0 -1
  363. package/dist/internal/ripple/ripple.css.d.ts +0 -2
  364. package/dist/internal/ripple/ripple.css.d.ts.map +0 -1
  365. package/dist/internal/ripple/ripple.d.ts +0 -23
  366. package/dist/internal/ripple/ripple.d.ts.map +0 -1
  367. package/dist/tokens/colors.d.ts +0 -42
  368. package/dist/tokens/colors.d.ts.map +0 -1
  369. package/dist/tokens/elevation.d.ts +0 -9
  370. package/dist/tokens/elevation.d.ts.map +0 -1
  371. package/dist/tokens/index.d.ts +0 -7
  372. package/dist/tokens/index.d.ts.map +0 -1
  373. package/dist/tokens/motion.d.ts +0 -21
  374. package/dist/tokens/motion.d.ts.map +0 -1
  375. package/dist/tokens/shape.d.ts +0 -10
  376. package/dist/tokens/shape.d.ts.map +0 -1
  377. package/dist/tokens/theme.css.d.ts +0 -4
  378. package/dist/tokens/theme.css.d.ts.map +0 -1
  379. package/dist/tokens/typography.d.ts +0 -101
  380. package/dist/tokens/typography.d.ts.map +0 -1
@@ -1,785 +0,0 @@
1
- import { t as a } from "./decorate-DXuynaiA.js";
2
- import { t as x } from "./form-associated-Cty_ZaS9.js";
3
- import "./icon-DrNqcNEL.js";
4
- import "./button-D2vn7kJ8.js";
5
- import "./icon-button-BQz73GLa.js";
6
- import { css as M, html as d, nothing as m } from "lit";
7
- import { customElement as $, property as p, query as y, state as f } from "lit/decorators.js";
8
- var w = M`
9
- :host {
10
- display: inline-block;
11
- color: var(--md-sys-color-on-surface, #1d1b20);
12
- font-family: var(--md-sys-typescale-font-family, 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif);
13
- user-select: none;
14
- box-sizing: border-box;
15
- }
16
-
17
- :host([hidden]) {
18
- display: none !important;
19
- }
20
-
21
- :host([modal]) {
22
- position: fixed;
23
- top: 0;
24
- left: 0;
25
- width: 100vw;
26
- height: 100vh;
27
- z-index: 1000;
28
- display: flex;
29
- align-items: center;
30
- justify-content: center;
31
- pointer-events: none;
32
- }
33
-
34
- :host([modal][open]) {
35
- pointer-events: auto;
36
- }
37
-
38
- :host([modal]:not([open])) {
39
- display: none;
40
- }
41
-
42
- /* Scrim Backdrop for Modal */
43
- .scrim {
44
- position: fixed;
45
- top: 0;
46
- left: 0;
47
- width: 100%;
48
- height: 100%;
49
- background-color: rgba(0, 0, 0, 0.32);
50
- z-index: -1;
51
- opacity: 0;
52
- transition: opacity 0.2s cubic-bezier(0.2, 0, 0, 1);
53
- }
54
-
55
- :host([modal][open]) .scrim {
56
- opacity: 1;
57
- }
58
-
59
- /* Picker Container / Surface */
60
- .picker-surface {
61
- background-color: var(--md-sys-color-surface-container-high, #ece6f0);
62
- color: var(--md-sys-color-on-surface, #1d1b20);
63
- border-radius: var(--md-sys-shape-corner-extra-large, 28px);
64
- padding: 24px;
65
- display: flex;
66
- flex-direction: column;
67
- align-items: center;
68
- box-shadow: var(--md-sys-elevation-3, 0 4px 8px 3px rgba(0, 0, 0, 0.15), 0 1px 3px 0 rgba(0, 0, 0, 0.3));
69
- max-width: 360px;
70
- width: 100%;
71
- box-sizing: border-box;
72
- position: relative;
73
- }
74
-
75
- :host(:not([modal])) .picker-surface {
76
- box-shadow: var(--md-sys-elevation-1, 0 1px 3px 1px rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.3));
77
- border: 1px solid var(--md-sys-color-outline-variant, #cac4d0);
78
- background-color: var(--md-sys-color-surface, #fef7ff);
79
- }
80
-
81
- /* Headline / Header */
82
- .header {
83
- width: 100%;
84
- margin-bottom: 20px;
85
- display: flex;
86
- align-items: center;
87
- justify-content: space-between;
88
- }
89
-
90
- .headline {
91
- font-size: 14px;
92
- font-weight: 500;
93
- letter-spacing: 0.1px;
94
- line-height: 20px;
95
- color: var(--md-sys-color-on-surface-variant, #49454f);
96
- margin: 0;
97
- }
98
-
99
- /* Time Display Input / Cards Row */
100
- .time-display-row {
101
- display: flex;
102
- align-items: center;
103
- justify-content: center;
104
- gap: 8px;
105
- margin-bottom: 24px;
106
- width: 100%;
107
- }
108
-
109
- .time-card-wrapper {
110
- display: flex;
111
- flex-direction: column;
112
- align-items: center;
113
- gap: 4px;
114
- }
115
-
116
- .time-card {
117
- width: 96px;
118
- height: 72px;
119
- background-color: var(--md-sys-color-surface-container-highest, #e6e0e9);
120
- color: var(--md-sys-color-on-surface, #1d1b20);
121
- border-radius: var(--md-sys-shape-corner-medium, 8px);
122
- display: flex;
123
- align-items: center;
124
- justify-content: center;
125
- font-size: 45px;
126
- font-weight: 400;
127
- line-height: 52px;
128
- cursor: pointer;
129
- border: 2px solid transparent;
130
- transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
131
- box-sizing: border-box;
132
- position: relative;
133
- outline: none;
134
- }
135
-
136
- .time-card:focus-visible {
137
- border-color: var(--md-sys-color-primary, #6750a4);
138
- }
139
-
140
- .time-card.active {
141
- background-color: var(--md-sys-color-primary-container, #eaddff);
142
- color: var(--md-sys-color-on-primary-container, #21005d);
143
- border-color: var(--md-sys-color-primary, #6750a4);
144
- }
145
-
146
- .time-input {
147
- width: 100%;
148
- height: 100%;
149
- background: transparent;
150
- border: none;
151
- outline: none;
152
- text-align: center;
153
- font-size: 45px;
154
- font-weight: 400;
155
- line-height: 52px;
156
- color: inherit;
157
- font-family: inherit;
158
- padding: 0;
159
- box-sizing: border-box;
160
- }
161
-
162
- .time-card-label {
163
- font-size: 12px;
164
- font-weight: 400;
165
- color: var(--md-sys-color-on-surface-variant, #49454f);
166
- text-transform: capitalize;
167
- }
168
-
169
- .time-separator {
170
- font-size: 45px;
171
- font-weight: 400;
172
- line-height: 52px;
173
- color: var(--md-sys-color-on-surface, #1d1b20);
174
- margin: 0 2px;
175
- display: flex;
176
- align-items: center;
177
- justify-content: center;
178
- padding-bottom: 20px;
179
- }
180
-
181
- /* Period Toggle (AM / PM) */
182
- .period-toggle {
183
- display: flex;
184
- flex-direction: column;
185
- border: 1px solid var(--md-sys-color-outline, #79747e);
186
- border-radius: var(--md-sys-shape-corner-medium, 8px);
187
- overflow: hidden;
188
- height: 72px;
189
- width: 48px;
190
- margin-left: 4px;
191
- box-sizing: border-box;
192
- }
193
-
194
- .period-button {
195
- flex: 1;
196
- display: flex;
197
- align-items: center;
198
- justify-content: center;
199
- background: transparent;
200
- border: none;
201
- font-size: 14px;
202
- font-weight: 500;
203
- color: var(--md-sys-color-on-surface-variant, #49454f);
204
- cursor: pointer;
205
- outline: none;
206
- transition: background-color 0.15s, color 0.15s;
207
- user-select: none;
208
- }
209
-
210
- .period-button:first-child {
211
- border-bottom: 1px solid var(--md-sys-color-outline, #79747e);
212
- }
213
-
214
- .period-button.selected {
215
- background-color: var(--md-sys-color-tertiary-container, #ffd8e4);
216
- color: var(--md-sys-color-on-tertiary-container, #31111d);
217
- }
218
-
219
- .period-button:focus-visible {
220
- background-color: var(--md-sys-color-surface-container-highest, #e6e0e9);
221
- }
222
-
223
- /* Clock Dial Surface */
224
- .dial-container {
225
- width: 256px;
226
- height: 256px;
227
- border-radius: 50%;
228
- background-color: var(--md-sys-color-surface-container-highest, #e6e0e9);
229
- position: relative;
230
- display: flex;
231
- align-items: center;
232
- justify-content: center;
233
- touch-action: none;
234
- cursor: pointer;
235
- margin: 8px 0;
236
- }
237
-
238
- .dial-center-pin {
239
- width: 8px;
240
- height: 8px;
241
- border-radius: 50%;
242
- background-color: var(--md-sys-color-primary, #6750a4);
243
- position: absolute;
244
- top: 50%;
245
- left: 50%;
246
- transform: translate(-50%, -50%);
247
- z-index: 3;
248
- pointer-events: none;
249
- }
250
-
251
- .dial-hand {
252
- position: absolute;
253
- bottom: 50%;
254
- left: 50%;
255
- width: 2px;
256
- background-color: var(--md-sys-color-primary, #6750a4);
257
- transform-origin: bottom center;
258
- z-index: 2;
259
- pointer-events: none;
260
- transition: height 0.15s cubic-bezier(0.2, 0, 0, 1);
261
- }
262
-
263
- .dial-selector-head {
264
- position: absolute;
265
- top: -24px;
266
- left: -23px;
267
- width: 48px;
268
- height: 48px;
269
- border-radius: 50%;
270
- background-color: var(--md-sys-color-primary, #6750a4);
271
- display: flex;
272
- align-items: center;
273
- justify-content: center;
274
- box-sizing: border-box;
275
- }
276
-
277
- .dial-inner-dot {
278
- width: 6px;
279
- height: 6px;
280
- border-radius: 50%;
281
- background-color: var(--md-sys-color-on-primary, #ffffff);
282
- }
283
-
284
- .dial-number {
285
- position: absolute;
286
- width: 40px;
287
- height: 40px;
288
- border-radius: 50%;
289
- display: flex;
290
- align-items: center;
291
- justify-content: center;
292
- font-size: 16px;
293
- font-weight: 500;
294
- color: var(--md-sys-color-on-surface, #1d1b20);
295
- transform: translate(-50%, -50%);
296
- z-index: 4;
297
- pointer-events: none;
298
- transition: color 0.15s ease;
299
- }
300
-
301
- .dial-number.small {
302
- font-size: 13px;
303
- color: var(--md-sys-color-on-surface-variant, #49454f);
304
- }
305
-
306
- .dial-number.selected {
307
- color: var(--md-sys-color-on-primary, #ffffff);
308
- }
309
-
310
- /* Actions Row */
311
- .actions-row {
312
- width: 100%;
313
- display: flex;
314
- align-items: center;
315
- justify-content: space-between;
316
- margin-top: 16px;
317
- }
318
-
319
- .mode-switch-btn {
320
- background: transparent;
321
- border: none;
322
- color: var(--md-sys-color-on-surface-variant, #49454f);
323
- cursor: pointer;
324
- padding: 8px;
325
- border-radius: 50%;
326
- display: flex;
327
- align-items: center;
328
- justify-content: center;
329
- outline: none;
330
- transition: background-color 0.15s;
331
- }
332
-
333
- .mode-switch-btn:hover {
334
- background-color: rgba(0, 0, 0, 0.06);
335
- }
336
-
337
- .mode-switch-btn:focus-visible {
338
- background-color: rgba(0, 0, 0, 0.12);
339
- }
340
-
341
- .dialog-buttons {
342
- display: flex;
343
- align-items: center;
344
- gap: 8px;
345
- }
346
-
347
- /* Disabled state */
348
- :host([disabled]) {
349
- pointer-events: none;
350
- opacity: 0.38;
351
- }
352
- `, r = class extends x {
353
- constructor(...e) {
354
- super(...e), this.value = "", this.format = "12h", this.view = "dial", this.modal = !1, this.open = !1, this.headline = "Select time", this.returnValue = "", this.autoSwitchToMinute = !0, this.cancelLabel = "Cancel", this.confirmLabel = "OK", this.activeField = "hour", this.selectedHour = 12, this.selectedMinute = 0, this.selectedPeriod = "AM", this.isDragging = !1, this.handleDialPointerDown = (t) => {
355
- this.disabled || (this.isDragging = !0, t.currentTarget.setPointerCapture(t.pointerId), this.updateDialFromPointer(t));
356
- }, this.handleDialPointerMove = (t) => {
357
- !this.isDragging || this.disabled || this.updateDialFromPointer(t);
358
- }, this.handleDialPointerUp = (t) => {
359
- !this.isDragging || this.disabled || (this.isDragging = !1, this.updateDialFromPointer(t), this.syncFormValue(), this.emitEvent("change", {
360
- value: this.value,
361
- hour: this.selectedHour,
362
- minute: this.selectedMinute,
363
- period: this.selectedPeriod,
364
- formatted24: this.getFormatted24(),
365
- formatted12: this.getFormatted12()
366
- }), this.activeField === "hour" && this.autoSwitchToMinute && (this.activeField = "minute"));
367
- }, this.handleHourInput = (t) => {
368
- const n = t.target;
369
- let s = parseInt(n.value, 10);
370
- isNaN(s) || (this.format === "24h" ? s = Math.min(23, Math.max(0, s)) : s = Math.min(12, Math.max(1, s)), this.selectedHour = s, this.syncFormValue(), this.notifyInput(), n.value.length >= 2 && this.minuteInputElement && (this.minuteInputElement.focus(), this.minuteInputElement.select()));
371
- }, this.handleMinuteInput = (t) => {
372
- const n = t.target;
373
- let s = parseInt(n.value, 10);
374
- isNaN(s) || (s = Math.min(59, Math.max(0, s)), this.selectedMinute = s, this.syncFormValue(), this.notifyInput());
375
- }, this.handleHourBlur = () => {
376
- this.hourInputElement && (this.hourInputElement.value = this.selectedHour.toString().padStart(2, "0")), this.syncFormValue(), this.emitEvent("change", {
377
- value: this.value,
378
- hour: this.selectedHour,
379
- minute: this.selectedMinute,
380
- period: this.selectedPeriod
381
- });
382
- }, this.handleMinuteBlur = () => {
383
- this.minuteInputElement && (this.minuteInputElement.value = this.selectedMinute.toString().padStart(2, "0")), this.syncFormValue(), this.emitEvent("change", {
384
- value: this.value,
385
- hour: this.selectedHour,
386
- minute: this.selectedMinute,
387
- period: this.selectedPeriod
388
- });
389
- };
390
- }
391
- static {
392
- this.styles = [x.styles, w];
393
- }
394
- connectedCallback() {
395
- super.connectedCallback(), this.parseValue(this.value), this.syncFormValue();
396
- }
397
- willUpdate(e) {
398
- super.willUpdate(e), e.has("value") && (this.parseValue(this.value), this.syncFormValue());
399
- }
400
- parseValue(e) {
401
- if (!e || typeof e != "string") {
402
- const i = /* @__PURE__ */ new Date();
403
- let l = i.getHours();
404
- const o = i.getMinutes();
405
- let u = "AM";
406
- this.format === "12h" && (u = l >= 12 ? "PM" : "AM", l = l % 12 || 12), this.selectedHour = l, this.selectedMinute = o, this.selectedPeriod = u;
407
- return;
408
- }
409
- const t = e.trim(), n = t.match(/^(\d{1,2}):(\d{2})\s*(AM|PM)$/i), s = t.match(/^(\d{1,2}):(\d{2})$/);
410
- if (n) {
411
- let i = parseInt(n[1], 10);
412
- const l = Math.min(59, Math.max(0, parseInt(n[2], 10))), o = n[3].toUpperCase();
413
- this.format === "24h" ? (o === "PM" && i < 12 && (i += 12), o === "AM" && i === 12 && (i = 0)) : i = Math.min(12, Math.max(1, i)), this.selectedHour = i, this.selectedMinute = l, this.selectedPeriod = o;
414
- } else if (s) {
415
- let i = parseInt(s[1], 10);
416
- const l = Math.min(59, Math.max(0, parseInt(s[2], 10)));
417
- if (this.format === "12h") {
418
- const o = i >= 12 ? "PM" : "AM";
419
- i = i % 12 || 12, this.selectedPeriod = o;
420
- } else i = Math.min(23, Math.max(0, i));
421
- this.selectedHour = i, this.selectedMinute = l;
422
- }
423
- }
424
- getFormattedTime() {
425
- const e = this.selectedMinute.toString().padStart(2, "0");
426
- return this.format === "24h" ? `${this.selectedHour.toString().padStart(2, "0")}:${e}` : `${this.selectedHour.toString().padStart(2, "0")}:${e} ${this.selectedPeriod}`;
427
- }
428
- getFormatted24() {
429
- const e = this.selectedMinute.toString().padStart(2, "0");
430
- let t = this.selectedHour;
431
- return this.format === "12h" && (this.selectedPeriod === "PM" && t < 12 && (t += 12), this.selectedPeriod === "AM" && t === 12 && (t = 0)), `${t.toString().padStart(2, "0")}:${e}`;
432
- }
433
- getFormatted12() {
434
- const e = this.selectedMinute.toString().padStart(2, "0");
435
- let t = this.selectedHour, n = this.selectedPeriod;
436
- return this.format === "24h" && (n = t >= 12 ? "PM" : "AM", t = t % 12 || 12), `${t.toString().padStart(2, "0")}:${e} ${n}`;
437
- }
438
- syncFormValue() {
439
- const e = this.getFormattedTime();
440
- this.value = e, this.setFormValue(e);
441
- }
442
- formResetCallback() {
443
- this.parseValue(""), this.syncFormValue(), this.activeField = "hour";
444
- }
445
- showModal() {
446
- this.modal = !0, this.open = !0, this.emitEvent("open");
447
- }
448
- show() {
449
- this.open = !0, this.emitEvent("open");
450
- }
451
- close(e) {
452
- e !== void 0 && (this.returnValue = e), this.open = !1, this.emitEvent("close", { returnValue: this.returnValue });
453
- }
454
- confirm() {
455
- this.syncFormValue();
456
- const e = {
457
- value: this.value,
458
- hour: this.selectedHour,
459
- minute: this.selectedMinute,
460
- period: this.selectedPeriod,
461
- formatted24: this.getFormatted24(),
462
- formatted12: this.getFormatted12()
463
- };
464
- this.emitEvent("change", e), this.emitEvent("confirm", e), this.modal && this.close("confirm");
465
- }
466
- cancel() {
467
- this.emitEvent("cancel"), this.modal && this.close("cancel");
468
- }
469
- toggleView() {
470
- this.view = this.view === "dial" ? "input" : "dial";
471
- }
472
- setField(e) {
473
- this.activeField = e;
474
- }
475
- setPeriod(e) {
476
- this.selectedPeriod !== e && (this.selectedPeriod = e, this.syncFormValue(), this.notifyInput());
477
- }
478
- notifyInput() {
479
- this.emitEvent("input", {
480
- value: this.getFormattedTime(),
481
- hour: this.selectedHour,
482
- minute: this.selectedMinute,
483
- period: this.selectedPeriod,
484
- formatted24: this.getFormatted24(),
485
- formatted12: this.getFormatted12()
486
- });
487
- }
488
- updateDialFromPointer(e) {
489
- if (!this.dialContainer) return;
490
- const t = this.dialContainer.getBoundingClientRect(), n = t.left + t.width / 2, s = t.top + t.height / 2, i = e.clientX - n, l = e.clientY - s;
491
- let o = Math.atan2(l, i) * (180 / Math.PI) + 90;
492
- o < 0 && (o += 360);
493
- const u = Math.hypot(i, l);
494
- if (this.activeField === "hour")
495
- if (this.format === "24h") {
496
- const c = u < 80;
497
- let h = Math.round(o / 30) % 12;
498
- h === 0 && (h = 12), c ? this.selectedHour = h : this.selectedHour = h === 12 ? 0 : h + 12;
499
- } else {
500
- let c = Math.round(o / 30) % 12;
501
- c === 0 && (c = 12), this.selectedHour = c;
502
- }
503
- else {
504
- const c = Math.round(o / 6) % 60;
505
- this.selectedMinute = c;
506
- }
507
- this.notifyInput();
508
- }
509
- renderDialHand() {
510
- let e = 0, t = 96;
511
- this.activeField === "hour" ? this.format === "24h" ? this.selectedHour >= 1 && this.selectedHour <= 12 ? (e = this.selectedHour % 12 * 30, t = 64) : (e = (this.selectedHour === 0 ? 12 : this.selectedHour - 12) % 12 * 30, t = 98) : (e = this.selectedHour % 12 * 30, t = 96) : (e = this.selectedMinute * 6, t = 96);
512
- const n = this.activeField === "minute" && this.selectedMinute % 5 !== 0;
513
- return d`
514
- <div
515
- class="dial-hand"
516
- style="transform: rotate(${e}deg); height: ${t}px;"
517
- >
518
- <div class="dial-selector-head">
519
- ${n ? d`<div class="dial-inner-dot"></div>` : m}
520
- </div>
521
- </div>
522
- `;
523
- }
524
- renderDialNumbers() {
525
- const t = [];
526
- if (this.activeField === "hour")
527
- if (this.format === "24h") {
528
- const s = [
529
- 12,
530
- 1,
531
- 2,
532
- 3,
533
- 4,
534
- 5,
535
- 6,
536
- 7,
537
- 8,
538
- 9,
539
- 10,
540
- 11
541
- ];
542
- for (let o = 0; o < 12; o++) {
543
- const u = s[o] === 12 ? 0 : s[o] + 12, c = u.toString().padStart(2, "0"), h = (o * 30 - 90) * (Math.PI / 180), v = 128 + 98 * Math.cos(h), g = 128 + 98 * Math.sin(h), b = this.selectedHour === u;
544
- t.push(d`
545
- <span
546
- class="dial-number small ${b ? "selected" : ""}"
547
- style="left: ${v}px; top: ${g}px;"
548
- >
549
- ${c}
550
- </span>
551
- `);
552
- }
553
- const i = 64, l = [
554
- 12,
555
- 1,
556
- 2,
557
- 3,
558
- 4,
559
- 5,
560
- 6,
561
- 7,
562
- 8,
563
- 9,
564
- 10,
565
- 11
566
- ];
567
- for (let o = 0; o < 12; o++) {
568
- const u = l[o], c = u.toString(), h = (o * 30 - 90) * (Math.PI / 180), v = 128 + i * Math.cos(h), g = 128 + i * Math.sin(h), b = this.selectedHour === u;
569
- t.push(d`
570
- <span
571
- class="dial-number ${b ? "selected" : ""}"
572
- style="left: ${v}px; top: ${g}px;"
573
- >
574
- ${c}
575
- </span>
576
- `);
577
- }
578
- } else {
579
- const s = [
580
- 12,
581
- 1,
582
- 2,
583
- 3,
584
- 4,
585
- 5,
586
- 6,
587
- 7,
588
- 8,
589
- 9,
590
- 10,
591
- 11
592
- ];
593
- for (let i = 0; i < 12; i++) {
594
- const l = s[i], o = (i * 30 - 90) * (Math.PI / 180), u = 128 + 96 * Math.cos(o), c = 128 + 96 * Math.sin(o), h = this.selectedHour === l;
595
- t.push(d`
596
- <span
597
- class="dial-number ${h ? "selected" : ""}"
598
- style="left: ${u}px; top: ${c}px;"
599
- >
600
- ${l}
601
- </span>
602
- `);
603
- }
604
- }
605
- else
606
- for (let s = 0; s < 12; s++) {
607
- const i = s * 5, l = i.toString().padStart(2, "0"), o = (s * 30 - 90) * (Math.PI / 180), u = 128 + 96 * Math.cos(o), c = 128 + 96 * Math.sin(o), h = this.selectedMinute === i;
608
- t.push(d`
609
- <span
610
- class="dial-number ${h ? "selected" : ""}"
611
- style="left: ${u}px; top: ${c}px;"
612
- >
613
- ${l}
614
- </span>
615
- `);
616
- }
617
- return t;
618
- }
619
- render() {
620
- const e = this.selectedHour.toString().padStart(2, "0"), t = this.selectedMinute.toString().padStart(2, "0");
621
- return d`
622
- ${this.modal ? d`<div class="scrim" @click=${this.cancel}></div>` : m}
623
-
624
- <div class="picker-surface" role="dialog" aria-modal=${this.modal ? "true" : "false"}>
625
- <div class="header">
626
- <h2 class="headline">${this.headline}</h2>
627
- </div>
628
-
629
- <div class="time-display-row">
630
- <div class="time-card-wrapper">
631
- ${this.view === "input" ? d`
632
- <div class="time-card ${this.activeField === "hour" ? "active" : ""}">
633
- <input
634
- id="hour-input"
635
- class="time-input"
636
- type="text"
637
- inputmode="numeric"
638
- maxlength="2"
639
- .value=${e}
640
- @input=${this.handleHourInput}
641
- @blur=${this.handleHourBlur}
642
- @focus=${() => this.setField("hour")}
643
- aria-label="Hour"
644
- />
645
- </div>
646
- ` : d`
647
- <button
648
- type="button"
649
- class="time-card ${this.activeField === "hour" ? "active" : ""}"
650
- @click=${() => this.setField("hour")}
651
- aria-label="Select hour"
652
- >
653
- ${e}
654
- </button>
655
- `}
656
- ${this.view === "input" ? d`<span class="time-card-label">Hour</span>` : m}
657
- </div>
658
-
659
- <span class="time-separator" aria-hidden="true">:</span>
660
-
661
- <div class="time-card-wrapper">
662
- ${this.view === "input" ? d`
663
- <div class="time-card ${this.activeField === "minute" ? "active" : ""}">
664
- <input
665
- id="minute-input"
666
- class="time-input"
667
- type="text"
668
- inputmode="numeric"
669
- maxlength="2"
670
- .value=${t}
671
- @input=${this.handleMinuteInput}
672
- @blur=${this.handleMinuteBlur}
673
- @focus=${() => this.setField("minute")}
674
- aria-label="Minute"
675
- />
676
- </div>
677
- ` : d`
678
- <button
679
- type="button"
680
- class="time-card ${this.activeField === "minute" ? "active" : ""}"
681
- @click=${() => this.setField("minute")}
682
- aria-label="Select minute"
683
- >
684
- ${t}
685
- </button>
686
- `}
687
- ${this.view === "input" ? d`<span class="time-card-label">Minute</span>` : m}
688
- </div>
689
-
690
- ${this.format === "12h" ? d`
691
- <div class="period-toggle" role="group" aria-label="Period selector">
692
- <button
693
- type="button"
694
- class="period-button ${this.selectedPeriod === "AM" ? "selected" : ""}"
695
- @click=${() => this.setPeriod("AM")}
696
- aria-pressed=${this.selectedPeriod === "AM"}
697
- >
698
- AM
699
- </button>
700
- <button
701
- type="button"
702
- class="period-button ${this.selectedPeriod === "PM" ? "selected" : ""}"
703
- @click=${() => this.setPeriod("PM")}
704
- aria-pressed=${this.selectedPeriod === "PM"}
705
- >
706
- PM
707
- </button>
708
- </div>
709
- ` : m}
710
- </div>
711
-
712
- ${this.view === "dial" ? d`
713
- <div
714
- class="dial-container"
715
- @pointerdown=${this.handleDialPointerDown}
716
- @pointermove=${this.handleDialPointerMove}
717
- @pointerup=${this.handleDialPointerUp}
718
- >
719
- <div class="dial-center-pin"></div>
720
- ${this.renderDialHand()}
721
- ${this.renderDialNumbers()}
722
- </div>
723
- ` : m}
724
-
725
- <div class="actions-row">
726
- <button
727
- type="button"
728
- class="mode-switch-btn"
729
- aria-label=${this.view === "dial" ? "Switch to text input" : "Switch to clock dial"}
730
- @click=${this.toggleView}
731
- >
732
- <md-icon name=${this.view === "dial" ? "keyboard" : "schedule"}></md-icon>
733
- </button>
734
-
735
- <div class="dialog-buttons">
736
- <md-button variant="text" @click=${this.cancel}>${this.cancelLabel}</md-button>
737
- <md-button variant="text" @click=${this.confirm}>${this.confirmLabel}</md-button>
738
- </div>
739
- </div>
740
- </div>
741
- `;
742
- }
743
- };
744
- a([p({ type: String })], r.prototype, "value", void 0);
745
- a([p({ type: String })], r.prototype, "format", void 0);
746
- a([p({ type: String })], r.prototype, "view", void 0);
747
- a([p({
748
- type: Boolean,
749
- reflect: !0
750
- })], r.prototype, "modal", void 0);
751
- a([p({
752
- type: Boolean,
753
- reflect: !0
754
- })], r.prototype, "open", void 0);
755
- a([p({ type: String })], r.prototype, "headline", void 0);
756
- a([p({
757
- type: String,
758
- attribute: "return-value"
759
- })], r.prototype, "returnValue", void 0);
760
- a([p({
761
- type: Boolean,
762
- attribute: "auto-switch-to-minute"
763
- })], r.prototype, "autoSwitchToMinute", void 0);
764
- a([p({
765
- type: String,
766
- attribute: "cancel-label"
767
- })], r.prototype, "cancelLabel", void 0);
768
- a([p({
769
- type: String,
770
- attribute: "confirm-label"
771
- })], r.prototype, "confirmLabel", void 0);
772
- a([f()], r.prototype, "activeField", void 0);
773
- a([f()], r.prototype, "selectedHour", void 0);
774
- a([f()], r.prototype, "selectedMinute", void 0);
775
- a([f()], r.prototype, "selectedPeriod", void 0);
776
- a([f()], r.prototype, "isDragging", void 0);
777
- a([y(".dial-container")], r.prototype, "dialContainer", void 0);
778
- a([y("#hour-input")], r.prototype, "hourInputElement", void 0);
779
- a([y("#minute-input")], r.prototype, "minuteInputElement", void 0);
780
- r = a([$("md-time-picker")], r);
781
- export {
782
- r as t
783
- };
784
-
785
- //# sourceMappingURL=time-picker-CZnb2sWz.js.map