@francofantomius/material-components 1.1.2 → 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 (378) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +2 -1
  3. package/custom-elements.json +680 -19
  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-CfN-emMP.js → search-bar-B6xxVT7u.js} +167 -185
  67. package/dist/chunks/{search-bar-CfN-emMP.js.map → search-bar-B6xxVT7u.js.map} +1 -1
  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-VzrSd-r5.js → top-app-bar-TrnjKzOX.js} +46 -53
  93. package/dist/chunks/{top-app-bar-VzrSd-r5.js.map → top-app-bar-TrnjKzOX.js.map} +1 -1
  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 +72 -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/segmented-button-B0BvGSQ7.js +0 -265
  166. package/dist/chunks/slider-D-mnO8yQ.js +0 -450
  167. package/dist/chunks/slider-D-mnO8yQ.js.map +0 -1
  168. package/dist/chunks/table-CqHnneAj.js +0 -773
  169. package/dist/chunks/tabs-BfOtoeir.js +0 -191
  170. package/dist/chunks/time-picker-CZnb2sWz.js +0 -785
  171. package/dist/chunks/time-picker-CZnb2sWz.js.map +0 -1
  172. package/dist/chunks/tooltip-CE7JMHMu.js +0 -398
  173. package/dist/components/account-menu/account-menu.css.d.ts +0 -3
  174. package/dist/components/account-menu/account-menu.css.d.ts.map +0 -1
  175. package/dist/components/account-menu/account-menu.d.ts +0 -111
  176. package/dist/components/account-menu/account-menu.d.ts.map +0 -1
  177. package/dist/components/app-drawer/app-drawer.css.d.ts +0 -3
  178. package/dist/components/app-drawer/app-drawer.css.d.ts.map +0 -1
  179. package/dist/components/app-drawer/app-drawer.d.ts +0 -173
  180. package/dist/components/app-drawer/app-drawer.d.ts.map +0 -1
  181. package/dist/components/badge/badge.css.d.ts +0 -2
  182. package/dist/components/badge/badge.css.d.ts.map +0 -1
  183. package/dist/components/badge/badge.d.ts +0 -16
  184. package/dist/components/badge/badge.d.ts.map +0 -1
  185. package/dist/components/bottom-sheet/bottom-sheet.css.d.ts +0 -2
  186. package/dist/components/bottom-sheet/bottom-sheet.css.d.ts.map +0 -1
  187. package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -69
  188. package/dist/components/bottom-sheet/bottom-sheet.d.ts.map +0 -1
  189. package/dist/components/button/button.css.d.ts +0 -2
  190. package/dist/components/button/button.css.d.ts.map +0 -1
  191. package/dist/components/button/button.d.ts +0 -25
  192. package/dist/components/button/button.d.ts.map +0 -1
  193. package/dist/components/button-group/button-group.css.d.ts +0 -2
  194. package/dist/components/button-group/button-group.css.d.ts.map +0 -1
  195. package/dist/components/button-group/button-group.d.ts +0 -28
  196. package/dist/components/button-group/button-group.d.ts.map +0 -1
  197. package/dist/components/card/card.css.d.ts +0 -2
  198. package/dist/components/card/card.css.d.ts.map +0 -1
  199. package/dist/components/card/card.d.ts +0 -18
  200. package/dist/components/card/card.d.ts.map +0 -1
  201. package/dist/components/carousel/carousel-item.d.ts +0 -33
  202. package/dist/components/carousel/carousel-item.d.ts.map +0 -1
  203. package/dist/components/carousel/carousel.css.d.ts +0 -3
  204. package/dist/components/carousel/carousel.css.d.ts.map +0 -1
  205. package/dist/components/carousel/carousel.d.ts +0 -81
  206. package/dist/components/carousel/carousel.d.ts.map +0 -1
  207. package/dist/components/checkbox/checkbox.css.d.ts +0 -2
  208. package/dist/components/checkbox/checkbox.css.d.ts.map +0 -1
  209. package/dist/components/checkbox/checkbox.d.ts +0 -24
  210. package/dist/components/checkbox/checkbox.d.ts.map +0 -1
  211. package/dist/components/chip/chip.css.d.ts +0 -3
  212. package/dist/components/chip/chip.css.d.ts.map +0 -1
  213. package/dist/components/chip/chip.d.ts +0 -27
  214. package/dist/components/chip/chip.d.ts.map +0 -1
  215. package/dist/components/code/code.css.d.ts +0 -2
  216. package/dist/components/code/code.css.d.ts.map +0 -1
  217. package/dist/components/code/code.d.ts +0 -106
  218. package/dist/components/code/code.d.ts.map +0 -1
  219. package/dist/components/code/highlighter.d.ts +0 -8
  220. package/dist/components/code/highlighter.d.ts.map +0 -1
  221. package/dist/components/code/linter.d.ts +0 -44
  222. package/dist/components/code/linter.d.ts.map +0 -1
  223. package/dist/components/date-picker/date-picker.css.d.ts +0 -2
  224. package/dist/components/date-picker/date-picker.css.d.ts.map +0 -1
  225. package/dist/components/date-picker/date-picker.d.ts +0 -59
  226. package/dist/components/date-picker/date-picker.d.ts.map +0 -1
  227. package/dist/components/dialog/dialog.css.d.ts +0 -2
  228. package/dist/components/dialog/dialog.css.d.ts.map +0 -1
  229. package/dist/components/dialog/dialog.d.ts +0 -22
  230. package/dist/components/dialog/dialog.d.ts.map +0 -1
  231. package/dist/components/divider/divider.css.d.ts +0 -2
  232. package/dist/components/divider/divider.css.d.ts.map +0 -1
  233. package/dist/components/divider/divider.d.ts +0 -16
  234. package/dist/components/divider/divider.d.ts.map +0 -1
  235. package/dist/components/fab/fab.css.d.ts +0 -2
  236. package/dist/components/fab/fab.css.d.ts.map +0 -1
  237. package/dist/components/fab/fab.d.ts +0 -19
  238. package/dist/components/fab/fab.d.ts.map +0 -1
  239. package/dist/components/fab-menu/fab-menu-item.d.ts +0 -35
  240. package/dist/components/fab-menu/fab-menu-item.d.ts.map +0 -1
  241. package/dist/components/fab-menu/fab-menu.css.d.ts +0 -3
  242. package/dist/components/fab-menu/fab-menu.css.d.ts.map +0 -1
  243. package/dist/components/fab-menu/fab-menu.d.ts +0 -72
  244. package/dist/components/fab-menu/fab-menu.d.ts.map +0 -1
  245. package/dist/components/icon/icon.css.d.ts +0 -2
  246. package/dist/components/icon/icon.css.d.ts.map +0 -1
  247. package/dist/components/icon/icon.d.ts +0 -15
  248. package/dist/components/icon/icon.d.ts.map +0 -1
  249. package/dist/components/icon-button/icon-button.css.d.ts +0 -2
  250. package/dist/components/icon-button/icon-button.css.d.ts.map +0 -1
  251. package/dist/components/icon-button/icon-button.d.ts +0 -22
  252. package/dist/components/icon-button/icon-button.d.ts.map +0 -1
  253. package/dist/components/list/list.css.d.ts +0 -3
  254. package/dist/components/list/list.css.d.ts.map +0 -1
  255. package/dist/components/list/list.d.ts +0 -25
  256. package/dist/components/list/list.d.ts.map +0 -1
  257. package/dist/components/loading-indicator/loading-indicator.css.d.ts +0 -2
  258. package/dist/components/loading-indicator/loading-indicator.css.d.ts.map +0 -1
  259. package/dist/components/loading-indicator/loading-indicator.d.ts +0 -48
  260. package/dist/components/loading-indicator/loading-indicator.d.ts.map +0 -1
  261. package/dist/components/menu/menu-item.d.ts +0 -41
  262. package/dist/components/menu/menu-item.d.ts.map +0 -1
  263. package/dist/components/menu/menu.css.d.ts +0 -3
  264. package/dist/components/menu/menu.css.d.ts.map +0 -1
  265. package/dist/components/menu/menu.d.ts +0 -91
  266. package/dist/components/menu/menu.d.ts.map +0 -1
  267. package/dist/components/navigation-bar/navigation-bar-item.d.ts +0 -49
  268. package/dist/components/navigation-bar/navigation-bar-item.d.ts.map +0 -1
  269. package/dist/components/navigation-bar/navigation-bar.css.d.ts +0 -3
  270. package/dist/components/navigation-bar/navigation-bar.css.d.ts.map +0 -1
  271. package/dist/components/navigation-bar/navigation-bar.d.ts +0 -50
  272. package/dist/components/navigation-bar/navigation-bar.d.ts.map +0 -1
  273. package/dist/components/navigation-drawer/navigation-drawer.css.d.ts +0 -3
  274. package/dist/components/navigation-drawer/navigation-drawer.css.d.ts.map +0 -1
  275. package/dist/components/navigation-drawer/navigation-drawer.d.ts +0 -76
  276. package/dist/components/navigation-drawer/navigation-drawer.d.ts.map +0 -1
  277. package/dist/components/navigation-rail/navigation-rail-item.d.ts +0 -36
  278. package/dist/components/navigation-rail/navigation-rail-item.d.ts.map +0 -1
  279. package/dist/components/navigation-rail/navigation-rail.css.d.ts +0 -3
  280. package/dist/components/navigation-rail/navigation-rail.css.d.ts.map +0 -1
  281. package/dist/components/navigation-rail/navigation-rail.d.ts +0 -43
  282. package/dist/components/navigation-rail/navigation-rail.d.ts.map +0 -1
  283. package/dist/components/player/player.css.d.ts +0 -2
  284. package/dist/components/player/player.css.d.ts.map +0 -1
  285. package/dist/components/player/player.d.ts +0 -99
  286. package/dist/components/player/player.d.ts.map +0 -1
  287. package/dist/components/progress/progress.css.d.ts +0 -2
  288. package/dist/components/progress/progress.css.d.ts.map +0 -1
  289. package/dist/components/progress/progress.d.ts +0 -21
  290. package/dist/components/progress/progress.d.ts.map +0 -1
  291. package/dist/components/radio/radio.css.d.ts +0 -3
  292. package/dist/components/radio/radio.css.d.ts.map +0 -1
  293. package/dist/components/radio/radio.d.ts +0 -38
  294. package/dist/components/radio/radio.d.ts.map +0 -1
  295. package/dist/components/search-bar/search-bar.css.d.ts +0 -2
  296. package/dist/components/search-bar/search-bar.css.d.ts.map +0 -1
  297. package/dist/components/search-bar/search-bar.d.ts +0 -84
  298. package/dist/components/search-bar/search-bar.d.ts.map +0 -1
  299. package/dist/components/segmented-button/segmented-button.css.d.ts +0 -3
  300. package/dist/components/segmented-button/segmented-button.css.d.ts.map +0 -1
  301. package/dist/components/segmented-button/segmented-button.d.ts +0 -40
  302. package/dist/components/segmented-button/segmented-button.d.ts.map +0 -1
  303. package/dist/components/side-sheet/side-sheet.css.d.ts +0 -2
  304. package/dist/components/side-sheet/side-sheet.css.d.ts.map +0 -1
  305. package/dist/components/side-sheet/side-sheet.d.ts +0 -57
  306. package/dist/components/side-sheet/side-sheet.d.ts.map +0 -1
  307. package/dist/components/slider/slider.css.d.ts +0 -2
  308. package/dist/components/slider/slider.css.d.ts.map +0 -1
  309. package/dist/components/slider/slider.d.ts +0 -51
  310. package/dist/components/slider/slider.d.ts.map +0 -1
  311. package/dist/components/snackbar/snackbar.css.d.ts +0 -2
  312. package/dist/components/snackbar/snackbar.css.d.ts.map +0 -1
  313. package/dist/components/snackbar/snackbar.d.ts +0 -24
  314. package/dist/components/snackbar/snackbar.d.ts.map +0 -1
  315. package/dist/components/split-button/split-button.css.d.ts +0 -2
  316. package/dist/components/split-button/split-button.css.d.ts.map +0 -1
  317. package/dist/components/split-button/split-button.d.ts +0 -89
  318. package/dist/components/split-button/split-button.d.ts.map +0 -1
  319. package/dist/components/switch/switch.css.d.ts +0 -2
  320. package/dist/components/switch/switch.css.d.ts.map +0 -1
  321. package/dist/components/switch/switch.d.ts +0 -22
  322. package/dist/components/switch/switch.d.ts.map +0 -1
  323. package/dist/components/table/table.css.d.ts +0 -8
  324. package/dist/components/table/table.css.d.ts.map +0 -1
  325. package/dist/components/table/table.d.ts +0 -158
  326. package/dist/components/table/table.d.ts.map +0 -1
  327. package/dist/components/tabs/tabs.css.d.ts +0 -3
  328. package/dist/components/tabs/tabs.css.d.ts.map +0 -1
  329. package/dist/components/tabs/tabs.d.ts +0 -33
  330. package/dist/components/tabs/tabs.d.ts.map +0 -1
  331. package/dist/components/text-field/text-field.css.d.ts +0 -2
  332. package/dist/components/text-field/text-field.css.d.ts.map +0 -1
  333. package/dist/components/text-field/text-field.d.ts +0 -40
  334. package/dist/components/text-field/text-field.d.ts.map +0 -1
  335. package/dist/components/time-picker/time-picker.css.d.ts +0 -2
  336. package/dist/components/time-picker/time-picker.css.d.ts.map +0 -1
  337. package/dist/components/time-picker/time-picker.d.ts +0 -87
  338. package/dist/components/time-picker/time-picker.d.ts.map +0 -1
  339. package/dist/components/toolbar/toolbar.css.d.ts +0 -2
  340. package/dist/components/toolbar/toolbar.css.d.ts.map +0 -1
  341. package/dist/components/toolbar/toolbar.d.ts +0 -53
  342. package/dist/components/toolbar/toolbar.d.ts.map +0 -1
  343. package/dist/components/tooltip/tooltip.css.d.ts +0 -2
  344. package/dist/components/tooltip/tooltip.css.d.ts.map +0 -1
  345. package/dist/components/tooltip/tooltip.d.ts +0 -89
  346. package/dist/components/tooltip/tooltip.d.ts.map +0 -1
  347. package/dist/components/top-app-bar/top-app-bar.css.d.ts +0 -2
  348. package/dist/components/top-app-bar/top-app-bar.css.d.ts.map +0 -1
  349. package/dist/components/top-app-bar/top-app-bar.d.ts +0 -29
  350. package/dist/components/top-app-bar/top-app-bar.d.ts.map +0 -1
  351. package/dist/index.d.ts +0 -52
  352. package/dist/index.d.ts.map +0 -1
  353. package/dist/internal/base-component.d.ts +0 -13
  354. package/dist/internal/base-component.d.ts.map +0 -1
  355. package/dist/internal/focus-ring/focus-ring.css.d.ts +0 -2
  356. package/dist/internal/focus-ring/focus-ring.css.d.ts.map +0 -1
  357. package/dist/internal/focus-ring/focus-ring.d.ts +0 -18
  358. package/dist/internal/focus-ring/focus-ring.d.ts.map +0 -1
  359. package/dist/internal/form-associated.d.ts +0 -26
  360. package/dist/internal/form-associated.d.ts.map +0 -1
  361. package/dist/internal/ripple/ripple.css.d.ts +0 -2
  362. package/dist/internal/ripple/ripple.css.d.ts.map +0 -1
  363. package/dist/internal/ripple/ripple.d.ts +0 -23
  364. package/dist/internal/ripple/ripple.d.ts.map +0 -1
  365. package/dist/tokens/colors.d.ts +0 -42
  366. package/dist/tokens/colors.d.ts.map +0 -1
  367. package/dist/tokens/elevation.d.ts +0 -9
  368. package/dist/tokens/elevation.d.ts.map +0 -1
  369. package/dist/tokens/index.d.ts +0 -7
  370. package/dist/tokens/index.d.ts.map +0 -1
  371. package/dist/tokens/motion.d.ts +0 -21
  372. package/dist/tokens/motion.d.ts.map +0 -1
  373. package/dist/tokens/shape.d.ts +0 -10
  374. package/dist/tokens/shape.d.ts.map +0 -1
  375. package/dist/tokens/theme.css.d.ts +0 -4
  376. package/dist/tokens/theme.css.d.ts.map +0 -1
  377. package/dist/tokens/typography.d.ts +0 -101
  378. package/dist/tokens/typography.d.ts.map +0 -1
@@ -1,9 +1,10 @@
1
- import { t as a } from "./decorate-DXuynaiA.js";
2
- import { t as p } from "./form-associated-Cty_ZaS9.js";
3
- import "./icon-DrNqcNEL.js";
4
- import { css as m, html as r, nothing as l } from "lit";
5
- import { customElement as v, property as s, query as x, state as f } from "lit/decorators.js";
6
- var y = m`
1
+ import { t as e } from "./decorate-DknOJ8FJ.js";
2
+ import { t } from "./form-associated-Do5uXckv.js";
3
+ import "./icon-FvKeXi61.js";
4
+ import { css as n, html as r, nothing as i } from "lit";
5
+ import { customElement as a, property as o, query as s, state as c } from "lit/decorators.js";
6
+ //#region src/components/search-bar/search-bar.css.ts
7
+ var l = n`
7
8
  :host {
8
9
  display: block;
9
10
  box-sizing: border-box;
@@ -480,124 +481,125 @@ var y = m`
480
481
  max-height: calc(100vh - 57px);
481
482
  max-height: calc(100dvh - 57px);
482
483
  }
483
- `, t = class extends p {
484
- constructor(...i) {
485
- super(...i), this.size = "medium", this.compact = !1, this.value = "", this.placeholder = "Search", this.active = !1, this.suggestions = [], this.leadingIcon = "search", this.activeLeadingIcon = "arrow_back", this.trailingIcon = "", this.showBackButton = !0, this.showClearButton = !0, this.responsive = !0, this.collapseOnMobile = !0, this.fullscreen = !1, this.autoDeactivateOnSelect = !0, this.highlightedIndex = -1, this.handleFocus = () => {
486
- this.active || (this.active = !0, this.emitEvent("active-change", { active: !0 }));
487
- }, this.handleInput = (e) => {
488
- const o = e.target;
489
- this.value = o.value, this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.highlightedIndex = -1, this.emitEvent("input", { value: this.value });
490
- }, this.handleChange = () => {
491
- this.emitEvent("change", { value: this.value });
492
- }, this.handleKeyDown = (e) => {
493
- const o = this.suggestions.length;
494
- if (e.key === "Escape") {
495
- e.preventDefault(), this.close(), this.inputElement?.blur();
496
- return;
497
- }
498
- if (e.key === "ArrowDown") {
499
- if (!this.active) {
500
- this.show();
501
- return;
502
- }
503
- o > 0 && (e.preventDefault(), this.highlightedIndex = (this.highlightedIndex + 1) % o);
504
- return;
505
- }
506
- if (e.key === "ArrowUp") {
507
- o > 0 && this.active && (e.preventDefault(), this.highlightedIndex = this.highlightedIndex <= 0 ? o - 1 : this.highlightedIndex - 1);
508
- return;
509
- }
510
- if (e.key === "Enter")
511
- if (this.active && this.highlightedIndex >= 0 && this.highlightedIndex < o) {
512
- const n = this.suggestions[this.highlightedIndex];
513
- n !== void 0 && (e.preventDefault(), this.selectSuggestion(n, this.highlightedIndex));
514
- } else this.emitEvent("search", { value: this.value });
515
- }, this.handleTriggerClick = (e) => {
516
- e.stopPropagation(), this.show();
517
- }, this.handleTriggerKeyDown = (e) => {
518
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.show());
519
- }, this.handleTrailingTriggerClick = (e) => {
520
- e.stopPropagation(), this.emitEvent("trailing-icon-click", { icon: this.trailingIcon }) && this.show();
521
- }, this.handleBackClick = (e) => {
522
- e.stopPropagation(), this.close();
523
- }, this.handleScrimClick = () => {
524
- this.close();
525
- }, this.handleClearClick = (e) => {
526
- e.stopPropagation(), this.clear();
527
- };
528
- }
529
- static {
530
- this.styles = [p.styles, y];
531
- }
532
- connectedCallback() {
533
- super.connectedCallback(), this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.toggleAttribute("active", this.active), this.toggleAttribute("collapse-on-mobile", this.collapseOnMobile);
534
- }
535
- willUpdate(i) {
536
- super.willUpdate(i), i.has("value") && (this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value)), i.has("active") && (this.toggleAttribute("active", this.active), this.active || (this.highlightedIndex = -1)), i.has("collapseOnMobile") && this.toggleAttribute("collapse-on-mobile", this.collapseOnMobile);
537
- }
538
- formResetCallback() {
539
- this.value = "", this.setFormValue(null), this.toggleAttribute("has-value", !1), this.highlightedIndex = -1;
540
- }
541
- focus() {
542
- this.inputElement?.focus();
543
- }
544
- show() {
545
- this.active || (this.active = !0, this.emitEvent("active-change", { active: !0 })), this.updateComplete.then(() => {
546
- this.inputElement?.focus();
547
- });
548
- }
549
- open() {
550
- this.show();
551
- }
552
- close() {
553
- this.active && (this.active = !1, this.highlightedIndex = -1, this.emitEvent("active-change", { active: !1 }));
554
- }
555
- collapse() {
556
- this.close();
557
- }
558
- toggle() {
559
- this.active ? this.close() : this.show();
560
- }
561
- clear() {
562
- this.value = "", this.setFormValue(""), this.toggleAttribute("has-value", !1), this.highlightedIndex = -1, this.emitEvent("input", { value: "" }), this.emitEvent("clear"), this.inputElement?.focus();
563
- }
564
- selectSuggestion(i, e) {
565
- const o = typeof i == "string" ? i : i.label, n = typeof i == "string" ? i : i.value ?? i.label;
566
- this.value = n, this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.emitEvent("suggestion-select", {
567
- suggestion: i,
568
- label: o,
569
- value: n,
570
- index: e
571
- }), this.emitEvent("search", {
572
- value: this.value,
573
- suggestion: i
574
- }), this.autoDeactivateOnSelect && this.close();
575
- }
576
- renderSuggestionItem(i, e) {
577
- const o = typeof i == "string", n = o ? i : i.label, c = o ? void 0 : i.supportingText, h = o ? void 0 : i.trailingSupportingText, b = !o && i.icon ? i.icon : "history", d = this.highlightedIndex === e;
578
- return r`
484
+ `, u = class extends t {
485
+ constructor(...e) {
486
+ super(...e), this.size = "medium", this.compact = !1, this.value = "", this.placeholder = "Search", this.active = !1, this.suggestions = [], this.leadingIcon = "search", this.activeLeadingIcon = "arrow_back", this.trailingIcon = "", this.showBackButton = !0, this.showClearButton = !0, this.responsive = !0, this.collapseOnMobile = !0, this.fullscreen = !1, this.autoDeactivateOnSelect = !0, this.highlightedIndex = -1, this.handleFocus = () => {
487
+ this.active || (this.active = !0, this.emitEvent("active-change", { active: !0 }));
488
+ }, this.handleInput = (e) => {
489
+ let t = e.target;
490
+ this.value = t.value, this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.highlightedIndex = -1, this.emitEvent("input", { value: this.value });
491
+ }, this.handleChange = () => {
492
+ this.emitEvent("change", { value: this.value });
493
+ }, this.handleKeyDown = (e) => {
494
+ let t = this.suggestions.length;
495
+ if (e.key === "Escape") {
496
+ e.preventDefault(), this.close(), this.inputElement?.blur();
497
+ return;
498
+ }
499
+ if (e.key === "ArrowDown") {
500
+ if (!this.active) {
501
+ this.show();
502
+ return;
503
+ }
504
+ t > 0 && (e.preventDefault(), this.highlightedIndex = (this.highlightedIndex + 1) % t);
505
+ return;
506
+ }
507
+ if (e.key === "ArrowUp") {
508
+ t > 0 && this.active && (e.preventDefault(), this.highlightedIndex = this.highlightedIndex <= 0 ? t - 1 : this.highlightedIndex - 1);
509
+ return;
510
+ }
511
+ if (e.key === "Enter") {
512
+ if (this.active && this.highlightedIndex >= 0 && this.highlightedIndex < t) {
513
+ let t = this.suggestions[this.highlightedIndex];
514
+ t !== void 0 && (e.preventDefault(), this.selectSuggestion(t, this.highlightedIndex));
515
+ } else this.emitEvent("search", { value: this.value });
516
+ }
517
+ }, this.handleTriggerClick = (e) => {
518
+ e.stopPropagation(), this.show();
519
+ }, this.handleTriggerKeyDown = (e) => {
520
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.show());
521
+ }, this.handleTrailingTriggerClick = (e) => {
522
+ e.stopPropagation(), this.emitEvent("trailing-icon-click", { icon: this.trailingIcon }) && this.show();
523
+ }, this.handleBackClick = (e) => {
524
+ e.stopPropagation(), this.close();
525
+ }, this.handleScrimClick = () => {
526
+ this.close();
527
+ }, this.handleClearClick = (e) => {
528
+ e.stopPropagation(), this.clear();
529
+ };
530
+ }
531
+ static {
532
+ this.styles = [t.styles, l];
533
+ }
534
+ connectedCallback() {
535
+ super.connectedCallback(), this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.toggleAttribute("active", this.active), this.toggleAttribute("collapse-on-mobile", this.collapseOnMobile);
536
+ }
537
+ willUpdate(e) {
538
+ super.willUpdate(e), e.has("value") && (this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value)), e.has("active") && (this.toggleAttribute("active", this.active), this.active || (this.highlightedIndex = -1)), e.has("collapseOnMobile") && this.toggleAttribute("collapse-on-mobile", this.collapseOnMobile);
539
+ }
540
+ formResetCallback() {
541
+ this.value = "", this.setFormValue(null), this.toggleAttribute("has-value", !1), this.highlightedIndex = -1;
542
+ }
543
+ focus() {
544
+ this.inputElement?.focus();
545
+ }
546
+ show() {
547
+ this.active || (this.active = !0, this.emitEvent("active-change", { active: !0 })), this.updateComplete.then(() => {
548
+ this.inputElement?.focus();
549
+ });
550
+ }
551
+ open() {
552
+ this.show();
553
+ }
554
+ close() {
555
+ this.active && (this.active = !1, this.highlightedIndex = -1, this.emitEvent("active-change", { active: !1 }));
556
+ }
557
+ collapse() {
558
+ this.close();
559
+ }
560
+ toggle() {
561
+ this.active ? this.close() : this.show();
562
+ }
563
+ clear() {
564
+ this.value = "", this.setFormValue(""), this.toggleAttribute("has-value", !1), this.highlightedIndex = -1, this.emitEvent("input", { value: "" }), this.emitEvent("clear"), this.inputElement?.focus();
565
+ }
566
+ selectSuggestion(e, t) {
567
+ let n = typeof e == "string" ? e : e.label, r = typeof e == "string" ? e : e.value ?? e.label;
568
+ this.value = r, this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.emitEvent("suggestion-select", {
569
+ suggestion: e,
570
+ label: n,
571
+ value: r,
572
+ index: t
573
+ }), this.emitEvent("search", {
574
+ value: this.value,
575
+ suggestion: e
576
+ }), this.autoDeactivateOnSelect && this.close();
577
+ }
578
+ renderSuggestionItem(e, t) {
579
+ let n = typeof e == "string", a = n ? e : e.label, o = n ? void 0 : e.supportingText, s = n ? void 0 : e.trailingSupportingText, c = !n && e.icon ? e.icon : "history", l = this.highlightedIndex === t;
580
+ return r`
579
581
  <div
580
- class="suggestion-item ${d ? "highlighted" : ""}"
582
+ class="suggestion-item ${l ? "highlighted" : ""}"
581
583
  role="option"
582
- aria-selected=${d ? "true" : "false"}
583
- @click=${() => this.selectSuggestion(i, e)}
584
+ aria-selected=${l ? "true" : "false"}
585
+ @click=${() => this.selectSuggestion(e, t)}
584
586
  >
585
587
  <span class="suggestion-icon">
586
- <md-icon name=${b}></md-icon>
588
+ <md-icon name=${c}></md-icon>
587
589
  </span>
588
590
  <div class="suggestion-text">
589
- <span class="suggestion-label">${n}</span>
590
- ${c ? r`<span class="suggestion-supporting">${c}</span>` : l}
591
+ <span class="suggestion-label">${a}</span>
592
+ ${o ? r`<span class="suggestion-supporting">${o}</span>` : i}
591
593
  </div>
592
- ${h ? r`<span class="suggestion-trailing">${h}</span>` : l}
594
+ ${s ? r`<span class="suggestion-trailing">${s}</span>` : i}
593
595
  </div>
594
596
  `;
595
- }
596
- render() {
597
- const i = this.active && this.showBackButton, e = !!this.trailingIcon;
598
- return r`
597
+ }
598
+ render() {
599
+ let e = this.active && this.showBackButton, t = !!this.trailingIcon;
600
+ return r`
599
601
  <div
600
- class="search-trigger-container ${e ? "has-trailing" : ""}"
602
+ class="search-trigger-container ${t ? "has-trailing" : ""}"
601
603
  role="button"
602
604
  tabindex="0"
603
605
  aria-label=${this.placeholder || "Search"}
@@ -617,7 +619,7 @@ var y = m`
617
619
  <md-icon name=${this.leadingIcon || "search"}></md-icon>
618
620
  </button>
619
621
 
620
- ${e ? r`
622
+ ${t ? r`
621
623
  <div class="trigger-divider" aria-hidden="true"></div>
622
624
  <button
623
625
  class="trigger-btn trigger-trailing-btn"
@@ -629,7 +631,7 @@ var y = m`
629
631
  >
630
632
  <md-icon name=${this.trailingIcon}></md-icon>
631
633
  </button>
632
- ` : l}
634
+ ` : i}
633
635
  </div>
634
636
 
635
637
  <div class="scrim" @click=${this.handleScrimClick}></div>
@@ -638,7 +640,7 @@ var y = m`
638
640
  <div class="search-bar-header">
639
641
  <span class="leading-slot">
640
642
  <slot name="leading-icon">
641
- ${i ? r`
643
+ ${e ? r`
642
644
  <button
643
645
  class="icon-btn"
644
646
  type="button"
@@ -683,14 +685,14 @@ var y = m`
683
685
  >
684
686
  <md-icon name="close"></md-icon>
685
687
  </button>
686
- ` : l}
688
+ ` : i}
687
689
 
688
690
  <slot name="trailing-icon">
689
691
  ${this.trailingIcon ? r`
690
692
  <span class="icon-btn" style="cursor: default;">
691
693
  <md-icon name=${this.trailingIcon}></md-icon>
692
694
  </span>
693
- ` : l}
695
+ ` : i}
694
696
  </slot>
695
697
  </span>
696
698
  </div>
@@ -699,7 +701,7 @@ var y = m`
699
701
 
700
702
  <div class="suggestions-container" role="listbox" aria-label="Suggestions">
701
703
  <slot name="suggestions">
702
- ${this.suggestions.map((o, n) => this.renderSuggestionItem(o, n))}
704
+ ${this.suggestions.map((e, t) => this.renderSuggestionItem(e, t))}
703
705
  </slot>
704
706
  <div class="extra-content">
705
707
  <slot></slot>
@@ -707,69 +709,49 @@ var y = m`
707
709
  </div>
708
710
  </div>
709
711
  `;
710
- }
711
- };
712
- a([s({
713
- type: String,
714
- reflect: !0
715
- })], t.prototype, "size", void 0);
716
- a([s({
717
- type: Boolean,
718
- reflect: !0
719
- })], t.prototype, "compact", void 0);
720
- a([s({ type: String })], t.prototype, "value", void 0);
721
- a([s({ type: String })], t.prototype, "placeholder", void 0);
722
- a([s({
723
- type: Boolean,
724
- reflect: !0
725
- })], t.prototype, "active", void 0);
726
- a([s({ type: Array })], t.prototype, "suggestions", void 0);
727
- a([s({
728
- type: String,
729
- attribute: "leading-icon"
730
- })], t.prototype, "leadingIcon", void 0);
731
- a([s({
732
- type: String,
733
- attribute: "active-leading-icon"
734
- })], t.prototype, "activeLeadingIcon", void 0);
735
- a([s({
736
- type: String,
737
- attribute: "trailing-icon"
738
- })], t.prototype, "trailingIcon", void 0);
739
- a([s({
740
- type: Boolean,
741
- attribute: "show-back-button"
742
- })], t.prototype, "showBackButton", void 0);
743
- a([s({
744
- type: Boolean,
745
- attribute: "show-clear-button"
746
- })], t.prototype, "showClearButton", void 0);
747
- a([s({
748
- type: Boolean,
749
- reflect: !0
750
- })], t.prototype, "responsive", void 0);
751
- a([s({
752
- type: Boolean,
753
- attribute: "collapse-on-mobile",
754
- reflect: !0
755
- })], t.prototype, "collapseOnMobile", void 0);
756
- a([s({
757
- type: Boolean,
758
- reflect: !0
759
- })], t.prototype, "fullscreen", void 0);
760
- a([s({
761
- type: Boolean,
762
- attribute: "auto-deactivate-on-select"
763
- })], t.prototype, "autoDeactivateOnSelect", void 0);
764
- a([f()], t.prototype, "highlightedIndex", void 0);
765
- a([x("input")], t.prototype, "inputElement", void 0);
766
- t = a([v("md-search-bar")], t);
767
- var g = class extends t {
712
+ }
768
713
  };
769
- g = a([v("md-search")], g);
770
- export {
771
- t as n,
772
- g as t
773
- };
774
-
775
- //# sourceMappingURL=search-bar-CfN-emMP.js.map
714
+ e([o({
715
+ type: String,
716
+ reflect: !0
717
+ })], u.prototype, "size", void 0), e([o({
718
+ type: Boolean,
719
+ reflect: !0
720
+ })], u.prototype, "compact", void 0), e([o({ type: String })], u.prototype, "value", void 0), e([o({ type: String })], u.prototype, "placeholder", void 0), e([o({
721
+ type: Boolean,
722
+ reflect: !0
723
+ })], u.prototype, "active", void 0), e([o({ type: Array })], u.prototype, "suggestions", void 0), e([o({
724
+ type: String,
725
+ attribute: "leading-icon"
726
+ })], u.prototype, "leadingIcon", void 0), e([o({
727
+ type: String,
728
+ attribute: "active-leading-icon"
729
+ })], u.prototype, "activeLeadingIcon", void 0), e([o({
730
+ type: String,
731
+ attribute: "trailing-icon"
732
+ })], u.prototype, "trailingIcon", void 0), e([o({
733
+ type: Boolean,
734
+ attribute: "show-back-button"
735
+ })], u.prototype, "showBackButton", void 0), e([o({
736
+ type: Boolean,
737
+ attribute: "show-clear-button"
738
+ })], u.prototype, "showClearButton", void 0), e([o({
739
+ type: Boolean,
740
+ reflect: !0
741
+ })], u.prototype, "responsive", void 0), e([o({
742
+ type: Boolean,
743
+ attribute: "collapse-on-mobile",
744
+ reflect: !0
745
+ })], u.prototype, "collapseOnMobile", void 0), e([o({
746
+ type: Boolean,
747
+ reflect: !0
748
+ })], u.prototype, "fullscreen", void 0), e([o({
749
+ type: Boolean,
750
+ attribute: "auto-deactivate-on-select"
751
+ })], u.prototype, "autoDeactivateOnSelect", void 0), e([c()], u.prototype, "highlightedIndex", void 0), e([s("input")], u.prototype, "inputElement", void 0), u = e([a("md-search-bar")], u);
752
+ var d = class extends u {};
753
+ d = e([a("md-search")], d);
754
+ //#endregion
755
+ export { u as n, d as t };
756
+
757
+ //# sourceMappingURL=search-bar-B6xxVT7u.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-bar-CfN-emMP.js","names":[],"sources":["../../src/components/search-bar/search-bar.css.ts","../../src/components/search-bar/search-bar.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const searchBarStyles = css`\n :host {\n display: block;\n box-sizing: border-box;\n position: relative;\n width: 100%;\n max-width: var(--md-search-bar-max-width, 100%);\n font-family: var(--md-sys-typescale-font-family, inherit);\n color: var(--md-sys-color-on-surface, #1D1B20);\n vertical-align: middle;\n\n --_height: var(--md-search-bar-height, 56px);\n --_shape: var(--md-search-bar-shape, var(--md-search-bar-border-radius, var(--md-sys-shape-corner-full, 28px)));\n --_shape-active: var(--md-search-bar-shape-active, var(--md-sys-shape-corner-extra-large, 28px 28px 16px 16px));\n --_bg: var(--md-search-bar-container-color, var(--md-search-bar-bg, var(--md-sys-color-surface-container-high, #ECE6F0)));\n --_elevation: var(--md-search-bar-elevation, var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0, 0, 0, 0.15)));\n --_elevation-active: var(--md-search-bar-elevation-active, var(--md-sys-elevation-level3, 0px 4px 8px 3px rgba(0, 0, 0, 0.15)));\n --_btn-size: var(--md-search-bar-icon-button-size, 40px);\n --_icon-size: var(--md-search-bar-icon-size, 24px);\n --_font-size: var(--md-search-bar-font-size, var(--md-sys-typescale-body-large-size, 16px));\n --_line-height: var(--md-search-bar-line-height, var(--md-sys-typescale-body-large-line-height, 24px));\n --_padding: var(--md-search-bar-padding, 0 8px 0 16px);\n }\n\n :host([size=\"small\"]),\n :host([size=\"compact\"]),\n :host([compact]) {\n --_height: var(--md-search-bar-height, 40px);\n --_shape: var(--md-search-bar-shape, var(--md-search-bar-border-radius, 20px));\n --_shape-active: var(--md-search-bar-shape-active, 20px 20px 12px 12px);\n --_btn-size: var(--md-search-bar-icon-button-size, 32px);\n --_icon-size: var(--md-search-bar-icon-size, 20px);\n --_font-size: var(--md-search-bar-font-size, var(--md-sys-typescale-body-medium-size, 14px));\n --_line-height: var(--md-search-bar-line-height, 20px);\n --_padding: var(--md-search-bar-padding, 0 6px 0 12px);\n }\n\n :host([size=\"large\"]) {\n --_height: var(--md-search-bar-height, 64px);\n --_shape: var(--md-search-bar-shape, var(--md-search-bar-border-radius, 32px));\n --_shape-active: var(--md-search-bar-shape-active, 32px 32px 20px 20px);\n --_btn-size: var(--md-search-bar-icon-button-size, 48px);\n --_icon-size: var(--md-search-bar-icon-size, 24px);\n --_font-size: var(--md-search-bar-font-size, 18px);\n --_line-height: var(--md-search-bar-line-height, 26px);\n --_padding: var(--md-search-bar-padding, 0 12px 0 20px);\n }\n\n :host([disabled]) {\n pointer-events: none;\n opacity: 0.38;\n }\n\n .scrim {\n display: none;\n }\n\n /* Scrim when active in docked mode to catch outside clicks */\n :host([active]) .scrim {\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 40;\n background: transparent;\n }\n\n .search-container {\n position: relative;\n z-index: 1;\n display: flex;\n flex-direction: column;\n width: 100%;\n box-sizing: border-box;\n background-color: var(--_bg);\n border-radius: var(--_shape);\n box-shadow: var(--_elevation);\n transition: box-shadow 200ms cubic-bezier(0.2, 0, 0, 1),\n border-radius 200ms cubic-bezier(0.2, 0, 0, 1),\n background-color 200ms cubic-bezier(0.2, 0, 0, 1);\n }\n\n .search-bar-header {\n display: flex;\n align-items: center;\n min-height: var(--_height);\n height: var(--_height);\n padding: var(--_padding);\n box-sizing: border-box;\n gap: 8px;\n }\n\n .leading-slot, .trailing-slot {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .icon-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--_btn-size);\n height: var(--_btn-size);\n border: none;\n background: transparent;\n border-radius: 50%;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n cursor: pointer;\n padding: 0;\n outline: none;\n position: relative;\n transition: background-color 150ms ease;\n }\n\n .icon-btn md-icon {\n font-size: var(--_icon-size);\n --md-icon-size: var(--_icon-size);\n }\n\n .icon-btn:hover {\n background-color: rgba(73, 69, 79, 0.08);\n }\n\n .icon-btn:focus-visible {\n background-color: rgba(73, 69, 79, 0.12);\n }\n\n .input-wrapper {\n display: flex;\n flex: 1;\n min-width: 0;\n align-items: center;\n position: relative;\n }\n\n input {\n width: 100%;\n border: none;\n background: transparent;\n outline: none;\n font-family: inherit;\n font-size: var(--_font-size);\n line-height: var(--_line-height);\n color: var(--md-sys-color-on-surface, #1D1B20);\n padding: 0 4px;\n margin: 0;\n box-sizing: border-box;\n -webkit-appearance: none;\n appearance: none;\n }\n\n input::-webkit-search-decoration,\n input::-webkit-search-cancel-button,\n input::-webkit-search-results-button,\n input::-webkit-search-results-decoration {\n -webkit-appearance: none;\n appearance: none;\n display: none;\n }\n\n input::-ms-clear,\n input::-ms-reveal {\n display: none;\n width: 0;\n height: 0;\n }\n\n input::placeholder {\n color: var(--md-sys-color-on-surface-variant, #49454F);\n opacity: 0.8;\n }\n\n /* Active Docked Mode */\n :host([active]) .search-container {\n z-index: 50;\n border-radius: var(--_shape-active);\n box-shadow: var(--_elevation-active);\n }\n\n /* Divider when active */\n .divider {\n display: none;\n height: 1px;\n background-color: var(--md-sys-color-outline-variant, #CAC4D0);\n margin: 0 16px;\n }\n\n :host([active]) .divider {\n display: block;\n }\n\n /* Suggestions / Content Container */\n .suggestions-container {\n display: none;\n flex-direction: column;\n max-height: 360px;\n overflow-y: auto;\n padding: 8px 0;\n box-sizing: border-box;\n }\n\n :host([active]) .suggestions-container {\n display: flex;\n }\n\n .suggestion-item {\n display: flex;\n align-items: center;\n min-height: 48px;\n padding: 0 16px;\n gap: 16px;\n box-sizing: border-box;\n cursor: pointer;\n position: relative;\n user-select: none;\n color: var(--md-sys-color-on-surface, #1D1B20);\n transition: background-color 150ms ease;\n }\n\n .suggestion-item:hover,\n .suggestion-item.highlighted {\n background-color: rgba(73, 69, 79, 0.08);\n }\n\n .suggestion-item.selected {\n background-color: rgba(73, 69, 79, 0.12);\n }\n\n .suggestion-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n flex-shrink: 0;\n }\n\n .suggestion-icon md-icon {\n font-size: var(--_icon-size);\n --md-icon-size: var(--_icon-size);\n }\n\n .suggestion-text {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0;\n overflow: hidden;\n }\n\n .suggestion-label {\n font-size: var(--_font-size);\n line-height: 20px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .suggestion-supporting {\n font-size: var(--md-sys-typescale-body-medium-size, 14px);\n line-height: 16px;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-top: 2px;\n }\n\n .suggestion-trailing {\n font-size: var(--md-sys-typescale-body-medium-size, 14px);\n color: var(--md-sys-color-on-surface-variant, #49454F);\n flex-shrink: 0;\n }\n\n .search-trigger-container {\n display: none;\n }\n\n /* Responsive Fullscreen / Mobile Collapsed Mode */\n @media (max-width: 768px) {\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])),\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) {\n display: inline-flex;\n width: auto;\n max-width: none;\n vertical-align: middle;\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n background-color: transparent;\n border-radius: 50%;\n box-shadow: none;\n cursor: pointer;\n user-select: none;\n outline: none;\n transition: background-color 200ms ease, box-shadow 200ms ease;\n -webkit-tap-highlight-color: transparent;\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container.has-trailing,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container.has-trailing {\n height: var(--_height);\n padding: 0 4px;\n gap: 2px;\n background-color: var(--_bg);\n border-radius: var(--_shape);\n box-shadow: var(--_elevation);\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container.has-trailing:hover,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container.has-trailing:hover {\n box-shadow: var(--md-sys-elevation-level2, 0px 2px 6px 2px rgba(0, 0, 0, 0.15));\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container:focus-visible,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container:focus-visible {\n outline: 2px solid var(--md-sys-color-primary, #6750A4);\n outline-offset: 2px;\n }\n\n .trigger-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--_btn-size);\n height: var(--_btn-size);\n min-width: var(--_btn-size);\n min-height: var(--_btn-size);\n border-radius: 50%;\n border: none;\n background: transparent;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n cursor: pointer;\n padding: 0;\n margin: 0;\n outline: none;\n position: relative;\n transition: background-color 150ms ease, color 150ms ease;\n -webkit-tap-highlight-color: transparent;\n }\n\n .trigger-btn md-icon {\n font-size: var(--_icon-size);\n --md-icon-size: var(--_icon-size);\n }\n\n .trigger-btn:hover {\n background-color: rgba(73, 69, 79, 0.08);\n }\n\n .trigger-btn:focus-visible {\n background-color: rgba(73, 69, 79, 0.12);\n }\n\n .trigger-divider {\n width: 1px;\n height: 22px;\n background-color: var(--md-sys-color-outline-variant, #CAC4D0);\n margin: 0 2px;\n flex-shrink: 0;\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-container,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-container {\n display: none;\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .scrim,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .scrim {\n display: none;\n }\n\n :host([responsive][active]),\n :host([collapse-on-mobile][active]) {\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n height: 100dvh;\n max-width: 100vw;\n margin: 0;\n padding: 0;\n z-index: 99999;\n }\n\n :host([responsive][active]) .search-trigger-container,\n :host([collapse-on-mobile][active]) .search-trigger-container {\n display: none;\n }\n\n :host([responsive][active]) .scrim,\n :host([collapse-on-mobile][active]) .scrim {\n display: none;\n }\n\n :host([responsive][active]) .search-container,\n :host([collapse-on-mobile][active]) .search-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n height: 100dvh;\n max-width: 100vw;\n border-radius: 0;\n box-shadow: none;\n z-index: 99999;\n background-color: var(--_bg);\n }\n\n :host([responsive][active]) .suggestions-container,\n :host([collapse-on-mobile][active]) .suggestions-container {\n flex: 1;\n max-height: calc(100vh - 57px);\n max-height: calc(100dvh - 57px);\n }\n }\n\n /* Forced Fullscreen attribute */\n :host([fullscreen][active]) {\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n height: 100dvh;\n max-width: 100vw;\n z-index: 99999;\n }\n\n :host([fullscreen][active]) .search-trigger-container {\n display: none;\n }\n\n :host([fullscreen][active]) .scrim {\n display: none;\n }\n\n :host([fullscreen][active]) .search-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n height: 100dvh;\n max-width: 100vw;\n border-radius: 0;\n box-shadow: none;\n z-index: 99999;\n background-color: var(--_bg);\n }\n\n :host([fullscreen][active]) .suggestions-container {\n flex: 1;\n max-height: calc(100vh - 57px);\n max-height: calc(100dvh - 57px);\n }\n`;\n\n","import { html, nothing } from 'lit';\nimport { customElement, property, state, query } from 'lit/decorators.js';\nimport { MdFormAssociatedElement } from '../../internal/form-associated.js';\nimport '../icon/icon.js';\nimport { searchBarStyles } from './search-bar.css.js';\n\nexport type SearchBarSize = 'small' | 'compact' | 'medium' | 'large';\n\nexport interface SearchSuggestion {\n id?: string;\n label: string;\n value?: string;\n supportingText?: string;\n trailingSupportingText?: string;\n icon?: string;\n [key: string]: unknown;\n}\n\n@customElement('md-search-bar')\nexport class MdSearchBar extends MdFormAssociatedElement {\n static override styles = [MdFormAssociatedElement.styles, searchBarStyles];\n\n @property({ type: String, reflect: true })\n size: SearchBarSize = 'medium';\n\n @property({ type: Boolean, reflect: true })\n compact = false;\n\n @property({ type: String })\n value = '';\n\n @property({ type: String })\n placeholder = 'Search';\n\n @property({ type: Boolean, reflect: true })\n active = false;\n\n @property({ type: Array })\n suggestions: Array<string | SearchSuggestion> = [];\n\n @property({ type: String, attribute: 'leading-icon' })\n leadingIcon = 'search';\n\n @property({ type: String, attribute: 'active-leading-icon' })\n activeLeadingIcon = 'arrow_back';\n\n @property({ type: String, attribute: 'trailing-icon' })\n trailingIcon = '';\n\n @property({ type: Boolean, attribute: 'show-back-button' })\n showBackButton = true;\n\n @property({ type: Boolean, attribute: 'show-clear-button' })\n showClearButton = true;\n\n @property({ type: Boolean, reflect: true })\n responsive = true;\n\n @property({ type: Boolean, attribute: 'collapse-on-mobile', reflect: true })\n collapseOnMobile = true;\n\n @property({ type: Boolean, reflect: true })\n fullscreen = false;\n\n @property({ type: Boolean, attribute: 'auto-deactivate-on-select' })\n autoDeactivateOnSelect = true;\n\n @state()\n private highlightedIndex = -1;\n\n @query('input')\n private inputElement?: HTMLInputElement;\n\n override connectedCallback() {\n super.connectedCallback();\n this.setFormValue(this.value);\n this.toggleAttribute('has-value', Boolean(this.value));\n this.toggleAttribute('active', this.active);\n this.toggleAttribute('collapse-on-mobile', this.collapseOnMobile);\n }\n\n override willUpdate(changedProperties: Map<string, unknown>) {\n super.willUpdate(changedProperties);\n if (changedProperties.has('value')) {\n this.setFormValue(this.value);\n this.toggleAttribute('has-value', Boolean(this.value));\n }\n if (changedProperties.has('active')) {\n this.toggleAttribute('active', this.active);\n if (!this.active) {\n this.highlightedIndex = -1;\n }\n }\n if (changedProperties.has('collapseOnMobile')) {\n this.toggleAttribute('collapse-on-mobile', this.collapseOnMobile);\n }\n }\n\n override formResetCallback() {\n this.value = '';\n this.setFormValue(null);\n this.toggleAttribute('has-value', false);\n this.highlightedIndex = -1;\n }\n\n /**\n * Focuses the search input field.\n */\n override focus() {\n this.inputElement?.focus();\n }\n\n /**\n * Opens / activates the search view.\n */\n show() {\n if (!this.active) {\n this.active = true;\n this.emitEvent('active-change', { active: true });\n }\n this.updateComplete.then(() => {\n this.inputElement?.focus();\n });\n }\n\n /**\n * Alias for show()\n */\n open() {\n this.show();\n }\n\n /**\n * Closes / deactivates the search view.\n */\n close() {\n if (this.active) {\n this.active = false;\n this.highlightedIndex = -1;\n this.emitEvent('active-change', { active: false });\n }\n }\n\n /**\n * Alias for close()\n */\n collapse() {\n this.close();\n }\n\n /**\n * Toggles the active state of the search bar.\n */\n toggle() {\n if (this.active) {\n this.close();\n } else {\n this.show();\n }\n }\n\n /**\n * Clears the current search input.\n */\n clear() {\n this.value = '';\n this.setFormValue('');\n this.toggleAttribute('has-value', false);\n this.highlightedIndex = -1;\n this.emitEvent('input', { value: '' });\n this.emitEvent('clear');\n this.inputElement?.focus();\n }\n\n private handleFocus = () => {\n if (!this.active) {\n this.active = true;\n this.emitEvent('active-change', { active: true });\n }\n };\n\n private handleInput = (event: Event) => {\n const target = event.target as HTMLInputElement;\n this.value = target.value;\n this.setFormValue(this.value);\n this.toggleAttribute('has-value', Boolean(this.value));\n this.highlightedIndex = -1;\n this.emitEvent('input', { value: this.value });\n };\n\n private handleChange = () => {\n this.emitEvent('change', { value: this.value });\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n const count = this.suggestions.length;\n\n if (event.key === 'Escape') {\n event.preventDefault();\n this.close();\n this.inputElement?.blur();\n return;\n }\n\n if (event.key === 'ArrowDown') {\n if (!this.active) {\n this.show();\n return;\n }\n if (count > 0) {\n event.preventDefault();\n this.highlightedIndex = (this.highlightedIndex + 1) % count;\n }\n return;\n }\n\n if (event.key === 'ArrowUp') {\n if (count > 0 && this.active) {\n event.preventDefault();\n this.highlightedIndex = this.highlightedIndex <= 0 ? count - 1 : this.highlightedIndex - 1;\n }\n return;\n }\n\n if (event.key === 'Enter') {\n if (this.active && this.highlightedIndex >= 0 && this.highlightedIndex < count) {\n const item = this.suggestions[this.highlightedIndex];\n if (item !== undefined) {\n event.preventDefault();\n this.selectSuggestion(item, this.highlightedIndex);\n }\n } else {\n this.emitEvent('search', { value: this.value });\n }\n }\n };\n\n private handleTriggerClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.show();\n };\n\n private handleTriggerKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.show();\n }\n };\n\n private handleTrailingTriggerClick = (event: MouseEvent) => {\n event.stopPropagation();\n const allowed = this.emitEvent('trailing-icon-click', { icon: this.trailingIcon });\n if (allowed) {\n this.show();\n }\n };\n\n private handleBackClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.close();\n };\n\n private handleScrimClick = () => {\n this.close();\n };\n\n private handleClearClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.clear();\n };\n\n private selectSuggestion(suggestion: string | SearchSuggestion, index: number) {\n const label = typeof suggestion === 'string' ? suggestion : suggestion.label;\n const value = typeof suggestion === 'string' ? suggestion : (suggestion.value ?? suggestion.label);\n\n this.value = value;\n this.setFormValue(this.value);\n this.toggleAttribute('has-value', Boolean(this.value));\n this.emitEvent('suggestion-select', { suggestion, label, value, index });\n this.emitEvent('search', { value: this.value, suggestion });\n\n if (this.autoDeactivateOnSelect) {\n this.close();\n }\n }\n\n private renderSuggestionItem(suggestion: string | SearchSuggestion, index: number) {\n const isString = typeof suggestion === 'string';\n const label = isString ? suggestion : suggestion.label;\n const supportingText = !isString ? suggestion.supportingText : undefined;\n const trailingSupportingText = !isString ? suggestion.trailingSupportingText : undefined;\n const iconName = !isString && suggestion.icon ? suggestion.icon : 'history';\n const isHighlighted = this.highlightedIndex === index;\n\n return html`\n <div\n class=\"suggestion-item ${isHighlighted ? 'highlighted' : ''}\"\n role=\"option\"\n aria-selected=${isHighlighted ? 'true' : 'false'}\n @click=${() => this.selectSuggestion(suggestion, index)}\n >\n <span class=\"suggestion-icon\">\n <md-icon name=${iconName}></md-icon>\n </span>\n <div class=\"suggestion-text\">\n <span class=\"suggestion-label\">${label}</span>\n ${supportingText ? html`<span class=\"suggestion-supporting\">${supportingText}</span>` : nothing}\n </div>\n ${trailingSupportingText ? html`<span class=\"suggestion-trailing\">${trailingSupportingText}</span>` : nothing}\n </div>\n `;\n }\n\n override render() {\n const showBack = this.active && this.showBackButton;\n const hasTrailing = Boolean(this.trailingIcon);\n\n return html`\n <div\n class=\"search-trigger-container ${hasTrailing ? 'has-trailing' : ''}\"\n role=\"button\"\n tabindex=\"0\"\n aria-label=${this.placeholder || 'Search'}\n title=${this.placeholder || 'Search'}\n ?disabled=${this.disabled}\n @click=${this.handleTriggerClick}\n @keydown=${this.handleTriggerKeyDown}\n >\n <button\n class=\"trigger-btn\"\n type=\"button\"\n aria-label=${this.placeholder || 'Search'}\n title=${this.placeholder || 'Search'}\n ?disabled=${this.disabled}\n @click=${this.handleTriggerClick}\n >\n <md-icon name=${this.leadingIcon || 'search'}></md-icon>\n </button>\n\n ${hasTrailing\n ? html`\n <div class=\"trigger-divider\" aria-hidden=\"true\"></div>\n <button\n class=\"trigger-btn trigger-trailing-btn\"\n type=\"button\"\n aria-label=${this.trailingIcon}\n title=${this.trailingIcon}\n ?disabled=${this.disabled}\n @click=${this.handleTrailingTriggerClick}\n >\n <md-icon name=${this.trailingIcon}></md-icon>\n </button>\n `\n : nothing}\n </div>\n\n <div class=\"scrim\" @click=${this.handleScrimClick}></div>\n\n <div class=\"search-container\" role=\"search\">\n <div class=\"search-bar-header\">\n <span class=\"leading-slot\">\n <slot name=\"leading-icon\">\n ${showBack\n ? html`\n <button\n class=\"icon-btn\"\n type=\"button\"\n aria-label=\"Back\"\n @click=${this.handleBackClick}\n >\n <md-icon name=${this.activeLeadingIcon}></md-icon>\n </button>\n `\n : html`\n <span class=\"icon-btn\" style=\"cursor: default;\">\n <md-icon name=${this.leadingIcon}></md-icon>\n </span>\n `}\n </slot>\n </span>\n\n <div class=\"input-wrapper\">\n <input\n type=\"search\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-expanded=${this.active ? 'true' : 'false'}\n aria-label=${this.placeholder}\n placeholder=${this.placeholder}\n .value=${this.value}\n ?disabled=${this.disabled}\n @input=${this.handleInput}\n @change=${this.handleChange}\n @keydown=${this.handleKeyDown}\n @focus=${this.handleFocus}\n @click=${this.handleFocus}\n />\n </div>\n\n <span class=\"trailing-slot\">\n ${this.showClearButton && this.value\n ? html`\n <button\n class=\"icon-btn clear-btn\"\n type=\"button\"\n aria-label=\"Clear search\"\n @click=${this.handleClearClick}\n >\n <md-icon name=\"close\"></md-icon>\n </button>\n `\n : nothing}\n\n <slot name=\"trailing-icon\">\n ${this.trailingIcon\n ? html`\n <span class=\"icon-btn\" style=\"cursor: default;\">\n <md-icon name=${this.trailingIcon}></md-icon>\n </span>\n `\n : nothing}\n </slot>\n </span>\n </div>\n\n <div class=\"divider\"></div>\n\n <div class=\"suggestions-container\" role=\"listbox\" aria-label=\"Suggestions\">\n <slot name=\"suggestions\">\n ${this.suggestions.map((item, idx) => this.renderSuggestionItem(item, idx))}\n </slot>\n <div class=\"extra-content\">\n <slot></slot>\n </div>\n </div>\n </div>\n `;\n }\n}\n\n@customElement('md-search')\nexport class MdSearch extends MdSearchBar {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-search-bar': MdSearchBar;\n 'md-search': MdSearch;\n }\n}\n"],"mappings":";;;;;AAEA,IAAa,IAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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AgB,CAAC,CAAA,GAAA,EAAA,WAAA,gBAAA,MAAA;AAGrD,EAAA,CAAA,EAAS;AAAA,EAAE,MAAM;AAAA,EAAS,WAAW;AAAmB,CAAC,CAAA,GAAA,EAAA,WAAA,kBAAA,MAAA;AAGzD,EAAA,CAAA,EAAS;AAAA,EAAE,MAAM;AAAA,EAAS,WAAW;AAAoB,CAAC,CAAA,GAAA,EAAA,WAAA,mBAAA,MAAA;AAG1D,EAAA,CAAA,EAAS;AAAA,EAAE,MAAM;AAAA,EAAS,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,cAAA,MAAA;AAGzC,EAAA,CAAA,EAAS;AAAA,EAAE,MAAM;AAAA,EAAS,WAAW;AAAA,EAAsB,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,oBAAA,MAAA;AAG1E,EAAA,CAAA,EAAS;AAAA,EAAE,MAAM;AAAA,EAAS,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,cAAA,MAAA;AAGzC,EAAA,CAAA,EAAS;AAAA,EAAE,MAAM;AAAA,EAAS,WAAW;AAA4B,CAAC,CAAA,GAAA,EAAA,WAAA,0BAAA,MAAA;AAGlE,EAAA,CAAA,EAAM,CAAA,GAAA,EAAA,WAAA,oBAAA,MAAA;AAGN,EAAA,CAAA,EAAM,OAAO,CAAA,GAAA,EAAA,WAAA,gBAAA,MAAA;AApDf,IAAA,EAAA,CAAA,EAAc,eAAe,CAAA,GAAA,CAAA;AAuavB,IAAM,IAAN,cAAuB,EAAY;AAAC;AAD1C,IAAA,EAAA,CAAA,EAAc,WAAW,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"search-bar-B6xxVT7u.js","names":[],"sources":["../../src/components/search-bar/search-bar.css.ts","../../src/components/search-bar/search-bar.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport const searchBarStyles = css`\n :host {\n display: block;\n box-sizing: border-box;\n position: relative;\n width: 100%;\n max-width: var(--md-search-bar-max-width, 100%);\n font-family: var(--md-sys-typescale-font-family, inherit);\n color: var(--md-sys-color-on-surface, #1D1B20);\n vertical-align: middle;\n\n --_height: var(--md-search-bar-height, 56px);\n --_shape: var(--md-search-bar-shape, var(--md-search-bar-border-radius, var(--md-sys-shape-corner-full, 28px)));\n --_shape-active: var(--md-search-bar-shape-active, var(--md-sys-shape-corner-extra-large, 28px 28px 16px 16px));\n --_bg: var(--md-search-bar-container-color, var(--md-search-bar-bg, var(--md-sys-color-surface-container-high, #ECE6F0)));\n --_elevation: var(--md-search-bar-elevation, var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0, 0, 0, 0.15)));\n --_elevation-active: var(--md-search-bar-elevation-active, var(--md-sys-elevation-level3, 0px 4px 8px 3px rgba(0, 0, 0, 0.15)));\n --_btn-size: var(--md-search-bar-icon-button-size, 40px);\n --_icon-size: var(--md-search-bar-icon-size, 24px);\n --_font-size: var(--md-search-bar-font-size, var(--md-sys-typescale-body-large-size, 16px));\n --_line-height: var(--md-search-bar-line-height, var(--md-sys-typescale-body-large-line-height, 24px));\n --_padding: var(--md-search-bar-padding, 0 8px 0 16px);\n }\n\n :host([size=\"small\"]),\n :host([size=\"compact\"]),\n :host([compact]) {\n --_height: var(--md-search-bar-height, 40px);\n --_shape: var(--md-search-bar-shape, var(--md-search-bar-border-radius, 20px));\n --_shape-active: var(--md-search-bar-shape-active, 20px 20px 12px 12px);\n --_btn-size: var(--md-search-bar-icon-button-size, 32px);\n --_icon-size: var(--md-search-bar-icon-size, 20px);\n --_font-size: var(--md-search-bar-font-size, var(--md-sys-typescale-body-medium-size, 14px));\n --_line-height: var(--md-search-bar-line-height, 20px);\n --_padding: var(--md-search-bar-padding, 0 6px 0 12px);\n }\n\n :host([size=\"large\"]) {\n --_height: var(--md-search-bar-height, 64px);\n --_shape: var(--md-search-bar-shape, var(--md-search-bar-border-radius, 32px));\n --_shape-active: var(--md-search-bar-shape-active, 32px 32px 20px 20px);\n --_btn-size: var(--md-search-bar-icon-button-size, 48px);\n --_icon-size: var(--md-search-bar-icon-size, 24px);\n --_font-size: var(--md-search-bar-font-size, 18px);\n --_line-height: var(--md-search-bar-line-height, 26px);\n --_padding: var(--md-search-bar-padding, 0 12px 0 20px);\n }\n\n :host([disabled]) {\n pointer-events: none;\n opacity: 0.38;\n }\n\n .scrim {\n display: none;\n }\n\n /* Scrim when active in docked mode to catch outside clicks */\n :host([active]) .scrim {\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 40;\n background: transparent;\n }\n\n .search-container {\n position: relative;\n z-index: 1;\n display: flex;\n flex-direction: column;\n width: 100%;\n box-sizing: border-box;\n background-color: var(--_bg);\n border-radius: var(--_shape);\n box-shadow: var(--_elevation);\n transition: box-shadow 200ms cubic-bezier(0.2, 0, 0, 1),\n border-radius 200ms cubic-bezier(0.2, 0, 0, 1),\n background-color 200ms cubic-bezier(0.2, 0, 0, 1);\n }\n\n .search-bar-header {\n display: flex;\n align-items: center;\n min-height: var(--_height);\n height: var(--_height);\n padding: var(--_padding);\n box-sizing: border-box;\n gap: 8px;\n }\n\n .leading-slot, .trailing-slot {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .icon-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--_btn-size);\n height: var(--_btn-size);\n border: none;\n background: transparent;\n border-radius: 50%;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n cursor: pointer;\n padding: 0;\n outline: none;\n position: relative;\n transition: background-color 150ms ease;\n }\n\n .icon-btn md-icon {\n font-size: var(--_icon-size);\n --md-icon-size: var(--_icon-size);\n }\n\n .icon-btn:hover {\n background-color: rgba(73, 69, 79, 0.08);\n }\n\n .icon-btn:focus-visible {\n background-color: rgba(73, 69, 79, 0.12);\n }\n\n .input-wrapper {\n display: flex;\n flex: 1;\n min-width: 0;\n align-items: center;\n position: relative;\n }\n\n input {\n width: 100%;\n border: none;\n background: transparent;\n outline: none;\n font-family: inherit;\n font-size: var(--_font-size);\n line-height: var(--_line-height);\n color: var(--md-sys-color-on-surface, #1D1B20);\n padding: 0 4px;\n margin: 0;\n box-sizing: border-box;\n -webkit-appearance: none;\n appearance: none;\n }\n\n input::-webkit-search-decoration,\n input::-webkit-search-cancel-button,\n input::-webkit-search-results-button,\n input::-webkit-search-results-decoration {\n -webkit-appearance: none;\n appearance: none;\n display: none;\n }\n\n input::-ms-clear,\n input::-ms-reveal {\n display: none;\n width: 0;\n height: 0;\n }\n\n input::placeholder {\n color: var(--md-sys-color-on-surface-variant, #49454F);\n opacity: 0.8;\n }\n\n /* Active Docked Mode */\n :host([active]) .search-container {\n z-index: 50;\n border-radius: var(--_shape-active);\n box-shadow: var(--_elevation-active);\n }\n\n /* Divider when active */\n .divider {\n display: none;\n height: 1px;\n background-color: var(--md-sys-color-outline-variant, #CAC4D0);\n margin: 0 16px;\n }\n\n :host([active]) .divider {\n display: block;\n }\n\n /* Suggestions / Content Container */\n .suggestions-container {\n display: none;\n flex-direction: column;\n max-height: 360px;\n overflow-y: auto;\n padding: 8px 0;\n box-sizing: border-box;\n }\n\n :host([active]) .suggestions-container {\n display: flex;\n }\n\n .suggestion-item {\n display: flex;\n align-items: center;\n min-height: 48px;\n padding: 0 16px;\n gap: 16px;\n box-sizing: border-box;\n cursor: pointer;\n position: relative;\n user-select: none;\n color: var(--md-sys-color-on-surface, #1D1B20);\n transition: background-color 150ms ease;\n }\n\n .suggestion-item:hover,\n .suggestion-item.highlighted {\n background-color: rgba(73, 69, 79, 0.08);\n }\n\n .suggestion-item.selected {\n background-color: rgba(73, 69, 79, 0.12);\n }\n\n .suggestion-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n flex-shrink: 0;\n }\n\n .suggestion-icon md-icon {\n font-size: var(--_icon-size);\n --md-icon-size: var(--_icon-size);\n }\n\n .suggestion-text {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0;\n overflow: hidden;\n }\n\n .suggestion-label {\n font-size: var(--_font-size);\n line-height: 20px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .suggestion-supporting {\n font-size: var(--md-sys-typescale-body-medium-size, 14px);\n line-height: 16px;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-top: 2px;\n }\n\n .suggestion-trailing {\n font-size: var(--md-sys-typescale-body-medium-size, 14px);\n color: var(--md-sys-color-on-surface-variant, #49454F);\n flex-shrink: 0;\n }\n\n .search-trigger-container {\n display: none;\n }\n\n /* Responsive Fullscreen / Mobile Collapsed Mode */\n @media (max-width: 768px) {\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])),\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) {\n display: inline-flex;\n width: auto;\n max-width: none;\n vertical-align: middle;\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n background-color: transparent;\n border-radius: 50%;\n box-shadow: none;\n cursor: pointer;\n user-select: none;\n outline: none;\n transition: background-color 200ms ease, box-shadow 200ms ease;\n -webkit-tap-highlight-color: transparent;\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container.has-trailing,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container.has-trailing {\n height: var(--_height);\n padding: 0 4px;\n gap: 2px;\n background-color: var(--_bg);\n border-radius: var(--_shape);\n box-shadow: var(--_elevation);\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container.has-trailing:hover,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container.has-trailing:hover {\n box-shadow: var(--md-sys-elevation-level2, 0px 2px 6px 2px rgba(0, 0, 0, 0.15));\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container:focus-visible,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-trigger-container:focus-visible {\n outline: 2px solid var(--md-sys-color-primary, #6750A4);\n outline-offset: 2px;\n }\n\n .trigger-btn {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--_btn-size);\n height: var(--_btn-size);\n min-width: var(--_btn-size);\n min-height: var(--_btn-size);\n border-radius: 50%;\n border: none;\n background: transparent;\n color: var(--md-sys-color-on-surface-variant, #49454F);\n cursor: pointer;\n padding: 0;\n margin: 0;\n outline: none;\n position: relative;\n transition: background-color 150ms ease, color 150ms ease;\n -webkit-tap-highlight-color: transparent;\n }\n\n .trigger-btn md-icon {\n font-size: var(--_icon-size);\n --md-icon-size: var(--_icon-size);\n }\n\n .trigger-btn:hover {\n background-color: rgba(73, 69, 79, 0.08);\n }\n\n .trigger-btn:focus-visible {\n background-color: rgba(73, 69, 79, 0.12);\n }\n\n .trigger-divider {\n width: 1px;\n height: 22px;\n background-color: var(--md-sys-color-outline-variant, #CAC4D0);\n margin: 0 2px;\n flex-shrink: 0;\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .search-container,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .search-container {\n display: none;\n }\n\n :host([responsive]:not([active]):not([collapse-on-mobile=\"false\"])) .scrim,\n :host([collapse-on-mobile]:not([active]):not([collapse-on-mobile=\"false\"])) .scrim {\n display: none;\n }\n\n :host([responsive][active]),\n :host([collapse-on-mobile][active]) {\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n height: 100dvh;\n max-width: 100vw;\n margin: 0;\n padding: 0;\n z-index: 99999;\n }\n\n :host([responsive][active]) .search-trigger-container,\n :host([collapse-on-mobile][active]) .search-trigger-container {\n display: none;\n }\n\n :host([responsive][active]) .scrim,\n :host([collapse-on-mobile][active]) .scrim {\n display: none;\n }\n\n :host([responsive][active]) .search-container,\n :host([collapse-on-mobile][active]) .search-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n height: 100dvh;\n max-width: 100vw;\n border-radius: 0;\n box-shadow: none;\n z-index: 99999;\n background-color: var(--_bg);\n }\n\n :host([responsive][active]) .suggestions-container,\n :host([collapse-on-mobile][active]) .suggestions-container {\n flex: 1;\n max-height: calc(100vh - 57px);\n max-height: calc(100dvh - 57px);\n }\n }\n\n /* Forced Fullscreen attribute */\n :host([fullscreen][active]) {\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n height: 100dvh;\n max-width: 100vw;\n z-index: 99999;\n }\n\n :host([fullscreen][active]) .search-trigger-container {\n display: none;\n }\n\n :host([fullscreen][active]) .scrim {\n display: none;\n }\n\n :host([fullscreen][active]) .search-container {\n display: flex;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n height: 100dvh;\n max-width: 100vw;\n border-radius: 0;\n box-shadow: none;\n z-index: 99999;\n background-color: var(--_bg);\n }\n\n :host([fullscreen][active]) .suggestions-container {\n flex: 1;\n max-height: calc(100vh - 57px);\n max-height: calc(100dvh - 57px);\n }\n`;\n\n","import { html, nothing } from 'lit';\nimport { customElement, property, state, query } from 'lit/decorators.js';\nimport { MdFormAssociatedElement } from '../../internal/form-associated.js';\nimport '../icon/icon.js';\nimport { searchBarStyles } from './search-bar.css.js';\n\nexport type SearchBarSize = 'small' | 'compact' | 'medium' | 'large';\n\nexport interface SearchSuggestion {\n id?: string;\n label: string;\n value?: string;\n supportingText?: string;\n trailingSupportingText?: string;\n icon?: string;\n [key: string]: unknown;\n}\n\n@customElement('md-search-bar')\nexport class MdSearchBar extends MdFormAssociatedElement {\n static override styles = [MdFormAssociatedElement.styles, searchBarStyles];\n\n @property({ type: String, reflect: true })\n size: SearchBarSize = 'medium';\n\n @property({ type: Boolean, reflect: true })\n compact = false;\n\n @property({ type: String })\n value = '';\n\n @property({ type: String })\n placeholder = 'Search';\n\n @property({ type: Boolean, reflect: true })\n active = false;\n\n @property({ type: Array })\n suggestions: Array<string | SearchSuggestion> = [];\n\n @property({ type: String, attribute: 'leading-icon' })\n leadingIcon = 'search';\n\n @property({ type: String, attribute: 'active-leading-icon' })\n activeLeadingIcon = 'arrow_back';\n\n @property({ type: String, attribute: 'trailing-icon' })\n trailingIcon = '';\n\n @property({ type: Boolean, attribute: 'show-back-button' })\n showBackButton = true;\n\n @property({ type: Boolean, attribute: 'show-clear-button' })\n showClearButton = true;\n\n @property({ type: Boolean, reflect: true })\n responsive = true;\n\n @property({ type: Boolean, attribute: 'collapse-on-mobile', reflect: true })\n collapseOnMobile = true;\n\n @property({ type: Boolean, reflect: true })\n fullscreen = false;\n\n @property({ type: Boolean, attribute: 'auto-deactivate-on-select' })\n autoDeactivateOnSelect = true;\n\n @state()\n private highlightedIndex = -1;\n\n @query('input')\n private inputElement?: HTMLInputElement;\n\n override connectedCallback() {\n super.connectedCallback();\n this.setFormValue(this.value);\n this.toggleAttribute('has-value', Boolean(this.value));\n this.toggleAttribute('active', this.active);\n this.toggleAttribute('collapse-on-mobile', this.collapseOnMobile);\n }\n\n override willUpdate(changedProperties: Map<string, unknown>) {\n super.willUpdate(changedProperties);\n if (changedProperties.has('value')) {\n this.setFormValue(this.value);\n this.toggleAttribute('has-value', Boolean(this.value));\n }\n if (changedProperties.has('active')) {\n this.toggleAttribute('active', this.active);\n if (!this.active) {\n this.highlightedIndex = -1;\n }\n }\n if (changedProperties.has('collapseOnMobile')) {\n this.toggleAttribute('collapse-on-mobile', this.collapseOnMobile);\n }\n }\n\n override formResetCallback() {\n this.value = '';\n this.setFormValue(null);\n this.toggleAttribute('has-value', false);\n this.highlightedIndex = -1;\n }\n\n /**\n * Focuses the search input field.\n */\n override focus() {\n this.inputElement?.focus();\n }\n\n /**\n * Opens / activates the search view.\n */\n show() {\n if (!this.active) {\n this.active = true;\n this.emitEvent('active-change', { active: true });\n }\n this.updateComplete.then(() => {\n this.inputElement?.focus();\n });\n }\n\n /**\n * Alias for show()\n */\n open() {\n this.show();\n }\n\n /**\n * Closes / deactivates the search view.\n */\n close() {\n if (this.active) {\n this.active = false;\n this.highlightedIndex = -1;\n this.emitEvent('active-change', { active: false });\n }\n }\n\n /**\n * Alias for close()\n */\n collapse() {\n this.close();\n }\n\n /**\n * Toggles the active state of the search bar.\n */\n toggle() {\n if (this.active) {\n this.close();\n } else {\n this.show();\n }\n }\n\n /**\n * Clears the current search input.\n */\n clear() {\n this.value = '';\n this.setFormValue('');\n this.toggleAttribute('has-value', false);\n this.highlightedIndex = -1;\n this.emitEvent('input', { value: '' });\n this.emitEvent('clear');\n this.inputElement?.focus();\n }\n\n private handleFocus = () => {\n if (!this.active) {\n this.active = true;\n this.emitEvent('active-change', { active: true });\n }\n };\n\n private handleInput = (event: Event) => {\n const target = event.target as HTMLInputElement;\n this.value = target.value;\n this.setFormValue(this.value);\n this.toggleAttribute('has-value', Boolean(this.value));\n this.highlightedIndex = -1;\n this.emitEvent('input', { value: this.value });\n };\n\n private handleChange = () => {\n this.emitEvent('change', { value: this.value });\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n const count = this.suggestions.length;\n\n if (event.key === 'Escape') {\n event.preventDefault();\n this.close();\n this.inputElement?.blur();\n return;\n }\n\n if (event.key === 'ArrowDown') {\n if (!this.active) {\n this.show();\n return;\n }\n if (count > 0) {\n event.preventDefault();\n this.highlightedIndex = (this.highlightedIndex + 1) % count;\n }\n return;\n }\n\n if (event.key === 'ArrowUp') {\n if (count > 0 && this.active) {\n event.preventDefault();\n this.highlightedIndex = this.highlightedIndex <= 0 ? count - 1 : this.highlightedIndex - 1;\n }\n return;\n }\n\n if (event.key === 'Enter') {\n if (this.active && this.highlightedIndex >= 0 && this.highlightedIndex < count) {\n const item = this.suggestions[this.highlightedIndex];\n if (item !== undefined) {\n event.preventDefault();\n this.selectSuggestion(item, this.highlightedIndex);\n }\n } else {\n this.emitEvent('search', { value: this.value });\n }\n }\n };\n\n private handleTriggerClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.show();\n };\n\n private handleTriggerKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.show();\n }\n };\n\n private handleTrailingTriggerClick = (event: MouseEvent) => {\n event.stopPropagation();\n const allowed = this.emitEvent('trailing-icon-click', { icon: this.trailingIcon });\n if (allowed) {\n this.show();\n }\n };\n\n private handleBackClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.close();\n };\n\n private handleScrimClick = () => {\n this.close();\n };\n\n private handleClearClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.clear();\n };\n\n private selectSuggestion(suggestion: string | SearchSuggestion, index: number) {\n const label = typeof suggestion === 'string' ? suggestion : suggestion.label;\n const value = typeof suggestion === 'string' ? suggestion : (suggestion.value ?? suggestion.label);\n\n this.value = value;\n this.setFormValue(this.value);\n this.toggleAttribute('has-value', Boolean(this.value));\n this.emitEvent('suggestion-select', { suggestion, label, value, index });\n this.emitEvent('search', { value: this.value, suggestion });\n\n if (this.autoDeactivateOnSelect) {\n this.close();\n }\n }\n\n private renderSuggestionItem(suggestion: string | SearchSuggestion, index: number) {\n const isString = typeof suggestion === 'string';\n const label = isString ? suggestion : suggestion.label;\n const supportingText = !isString ? suggestion.supportingText : undefined;\n const trailingSupportingText = !isString ? suggestion.trailingSupportingText : undefined;\n const iconName = !isString && suggestion.icon ? suggestion.icon : 'history';\n const isHighlighted = this.highlightedIndex === index;\n\n return html`\n <div\n class=\"suggestion-item ${isHighlighted ? 'highlighted' : ''}\"\n role=\"option\"\n aria-selected=${isHighlighted ? 'true' : 'false'}\n @click=${() => this.selectSuggestion(suggestion, index)}\n >\n <span class=\"suggestion-icon\">\n <md-icon name=${iconName}></md-icon>\n </span>\n <div class=\"suggestion-text\">\n <span class=\"suggestion-label\">${label}</span>\n ${supportingText ? html`<span class=\"suggestion-supporting\">${supportingText}</span>` : nothing}\n </div>\n ${trailingSupportingText ? html`<span class=\"suggestion-trailing\">${trailingSupportingText}</span>` : nothing}\n </div>\n `;\n }\n\n override render() {\n const showBack = this.active && this.showBackButton;\n const hasTrailing = Boolean(this.trailingIcon);\n\n return html`\n <div\n class=\"search-trigger-container ${hasTrailing ? 'has-trailing' : ''}\"\n role=\"button\"\n tabindex=\"0\"\n aria-label=${this.placeholder || 'Search'}\n title=${this.placeholder || 'Search'}\n ?disabled=${this.disabled}\n @click=${this.handleTriggerClick}\n @keydown=${this.handleTriggerKeyDown}\n >\n <button\n class=\"trigger-btn\"\n type=\"button\"\n aria-label=${this.placeholder || 'Search'}\n title=${this.placeholder || 'Search'}\n ?disabled=${this.disabled}\n @click=${this.handleTriggerClick}\n >\n <md-icon name=${this.leadingIcon || 'search'}></md-icon>\n </button>\n\n ${hasTrailing\n ? html`\n <div class=\"trigger-divider\" aria-hidden=\"true\"></div>\n <button\n class=\"trigger-btn trigger-trailing-btn\"\n type=\"button\"\n aria-label=${this.trailingIcon}\n title=${this.trailingIcon}\n ?disabled=${this.disabled}\n @click=${this.handleTrailingTriggerClick}\n >\n <md-icon name=${this.trailingIcon}></md-icon>\n </button>\n `\n : nothing}\n </div>\n\n <div class=\"scrim\" @click=${this.handleScrimClick}></div>\n\n <div class=\"search-container\" role=\"search\">\n <div class=\"search-bar-header\">\n <span class=\"leading-slot\">\n <slot name=\"leading-icon\">\n ${showBack\n ? html`\n <button\n class=\"icon-btn\"\n type=\"button\"\n aria-label=\"Back\"\n @click=${this.handleBackClick}\n >\n <md-icon name=${this.activeLeadingIcon}></md-icon>\n </button>\n `\n : html`\n <span class=\"icon-btn\" style=\"cursor: default;\">\n <md-icon name=${this.leadingIcon}></md-icon>\n </span>\n `}\n </slot>\n </span>\n\n <div class=\"input-wrapper\">\n <input\n type=\"search\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-expanded=${this.active ? 'true' : 'false'}\n aria-label=${this.placeholder}\n placeholder=${this.placeholder}\n .value=${this.value}\n ?disabled=${this.disabled}\n @input=${this.handleInput}\n @change=${this.handleChange}\n @keydown=${this.handleKeyDown}\n @focus=${this.handleFocus}\n @click=${this.handleFocus}\n />\n </div>\n\n <span class=\"trailing-slot\">\n ${this.showClearButton && this.value\n ? html`\n <button\n class=\"icon-btn clear-btn\"\n type=\"button\"\n aria-label=\"Clear search\"\n @click=${this.handleClearClick}\n >\n <md-icon name=\"close\"></md-icon>\n </button>\n `\n : nothing}\n\n <slot name=\"trailing-icon\">\n ${this.trailingIcon\n ? html`\n <span class=\"icon-btn\" style=\"cursor: default;\">\n <md-icon name=${this.trailingIcon}></md-icon>\n </span>\n `\n : nothing}\n </slot>\n </span>\n </div>\n\n <div class=\"divider\"></div>\n\n <div class=\"suggestions-container\" role=\"listbox\" aria-label=\"Suggestions\">\n <slot name=\"suggestions\">\n ${this.suggestions.map((item, idx) => this.renderSuggestionItem(item, idx))}\n </slot>\n <div class=\"extra-content\">\n <slot></slot>\n </div>\n </div>\n </div>\n `;\n }\n}\n\n@customElement('md-search')\nexport class MdSearch extends MdSearchBar {}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'md-search-bar': MdSearchBar;\n 'md-search': MdSearch;\n }\n}\n"],"mappings":";;;;;;AAEA,IAAa,IAAkB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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