@francofantomius/material-components 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/README.md +2 -1
- package/custom-elements.json +1049 -300
- package/dist/chunks/{account-menu-Dau0UHTl.js → account-menu-Bo7NghIm.js} +181 -223
- package/dist/chunks/{account-menu-Dau0UHTl.js.map → account-menu-Bo7NghIm.js.map} +1 -1
- package/dist/chunks/app-drawer-DjKSuatE.js +855 -0
- package/dist/chunks/{app-drawer-Du1ePzxZ.js.map → app-drawer-DjKSuatE.js.map} +1 -1
- package/dist/chunks/{badge-G4EjcMoy.js → badge-sZzNelZz.js} +30 -34
- package/dist/chunks/{badge-G4EjcMoy.js.map → badge-sZzNelZz.js.map} +1 -1
- package/dist/chunks/{bottom-sheet-q79BBYAj.js → bottom-sheet-BGgbUmKd.js} +98 -109
- package/dist/chunks/{bottom-sheet-q79BBYAj.js.map → bottom-sheet-BGgbUmKd.js.map} +1 -1
- package/dist/chunks/{button-D2vn7kJ8.js → button-DeQQlYds.js} +62 -72
- package/dist/chunks/{button-D2vn7kJ8.js.map → button-DeQQlYds.js.map} +1 -1
- package/dist/chunks/button-group-R2jN8FXK.js +136 -0
- package/dist/chunks/{button-group-CNqvJx1n.js.map → button-group-R2jN8FXK.js.map} +1 -1
- package/dist/chunks/{card-DVffdPpv.js → card-CVhWizDF.js} +45 -50
- package/dist/chunks/{card-DVffdPpv.js.map → card-CVhWizDF.js.map} +1 -1
- package/dist/chunks/{carousel-item-BG6kjjjk.js → carousel-item-DNp2zhP9.js} +62 -73
- package/dist/chunks/{carousel-item-BG6kjjjk.js.map → carousel-item-DNp2zhP9.js.map} +1 -1
- package/dist/chunks/{checkbox-BqlboAHd.js → checkbox-CsqUHVOF.js} +59 -64
- package/dist/chunks/{checkbox-BqlboAHd.js.map → checkbox-CsqUHVOF.js.map} +1 -1
- package/dist/chunks/{chip-CI1ZINnr.js → chip-B5c-I8bj.js} +56 -63
- package/dist/chunks/{chip-CI1ZINnr.js.map → chip-B5c-I8bj.js.map} +1 -1
- package/dist/chunks/code-CM6hIZNx.js +1531 -0
- package/dist/chunks/{code-C5UFBkCh.js.map → code-CM6hIZNx.js.map} +1 -1
- package/dist/chunks/date-picker-B15_rR0f.js +774 -0
- package/dist/chunks/date-picker-B15_rR0f.js.map +1 -0
- package/dist/chunks/decorate-DknOJ8FJ.js +40 -0
- package/dist/chunks/{decorate-DXuynaiA.js.map → decorate-DknOJ8FJ.js.map} +1 -1
- package/dist/chunks/{dialog-DGVEE5m_.js → dialog-Czknf8dl.js} +47 -52
- package/dist/chunks/{dialog-DGVEE5m_.js.map → dialog-Czknf8dl.js.map} +1 -1
- package/dist/chunks/divider-DIyCOosa.js +78 -0
- package/dist/chunks/{divider-DNepwoZv.js.map → divider-DIyCOosa.js.map} +1 -1
- package/dist/chunks/{fab-C9j3WBHE.js → fab-aZC0-lHo.js} +38 -44
- package/dist/chunks/{fab-C9j3WBHE.js.map → fab-aZC0-lHo.js.map} +1 -1
- package/dist/chunks/{fab-menu.css-3pu930sZ.js → fab-menu.css-BdVg1k4c.js} +5 -6
- package/dist/chunks/{fab-menu.css-3pu930sZ.js.map → fab-menu.css-BdVg1k4c.js.map} +1 -1
- package/dist/chunks/focus-ring-K6SY_mIm.js +69 -0
- package/dist/chunks/{focus-ring-CuiJuM-y.js.map → focus-ring-K6SY_mIm.js.map} +1 -1
- package/dist/chunks/form-associated-Do5uXckv.js +69 -0
- package/dist/chunks/{form-associated-Cty_ZaS9.js.map → form-associated-Do5uXckv.js.map} +1 -1
- package/dist/chunks/icon-FvKeXi61.js +59 -0
- package/dist/chunks/{icon-DrNqcNEL.js.map → icon-FvKeXi61.js.map} +1 -1
- package/dist/chunks/{icon-button-BQz73GLa.js → icon-button-CulnCZpZ.js} +58 -67
- package/dist/chunks/{icon-button-BQz73GLa.js.map → icon-button-CulnCZpZ.js.map} +1 -1
- package/dist/chunks/{list-D8olR7oZ.js → list-D7yrbJRL.js} +64 -72
- package/dist/chunks/{list-D8olR7oZ.js.map → list-D7yrbJRL.js.map} +1 -1
- package/dist/chunks/{loading-indicator-CvWnZr9o.js → loading-indicator-D9AyxNQh.js} +41 -46
- package/dist/chunks/{loading-indicator-CvWnZr9o.js.map → loading-indicator-D9AyxNQh.js.map} +1 -1
- package/dist/chunks/{menu-item-BBSp5Cqc.js → menu-item-C3entPo7.js} +77 -91
- package/dist/chunks/{menu-item-BBSp5Cqc.js.map → menu-item-C3entPo7.js.map} +1 -1
- package/dist/chunks/{navigation-bar-item-C9DfOEzg.js → navigation-bar-item-CWHCQeNw.js} +98 -115
- package/dist/chunks/{navigation-bar-item-C9DfOEzg.js.map → navigation-bar-item-CWHCQeNw.js.map} +1 -1
- package/dist/chunks/{navigation-drawer-CKl44Ef5.js → navigation-drawer-pGer0t4z.js} +116 -138
- package/dist/chunks/{navigation-drawer-CKl44Ef5.js.map → navigation-drawer-pGer0t4z.js.map} +1 -1
- package/dist/chunks/{navigation-rail-item-6pdhNHJK.js → navigation-rail-item-CWvGjLjC.js} +70 -86
- package/dist/chunks/{navigation-rail-item-6pdhNHJK.js.map → navigation-rail-item-CWvGjLjC.js.map} +1 -1
- package/dist/chunks/{player-C4ydiIpr.js → player-dT08kxeG.js} +423 -466
- package/dist/chunks/{player-C4ydiIpr.js.map → player-dT08kxeG.js.map} +1 -1
- package/dist/chunks/{progress-LQmLMDjX.js → progress-etZuX_VD.js} +46 -53
- package/dist/chunks/{progress-LQmLMDjX.js.map → progress-etZuX_VD.js.map} +1 -1
- package/dist/chunks/radio-jPCwykIa.js +197 -0
- package/dist/chunks/{radio-Bily78NT.js.map → radio-jPCwykIa.js.map} +1 -1
- package/dist/chunks/ripple-CBOKeVfm.js +132 -0
- package/dist/chunks/{ripple-squbKHhj.js.map → ripple-CBOKeVfm.js.map} +1 -1
- package/dist/chunks/{search-bar-fUD0qU2P.js → search-bar-B6xxVT7u.js} +244 -203
- package/dist/chunks/search-bar-B6xxVT7u.js.map +1 -0
- package/dist/chunks/segmented-button-Fon9kOHV.js +253 -0
- package/dist/chunks/{segmented-button-B0BvGSQ7.js.map → segmented-button-Fon9kOHV.js.map} +1 -1
- package/dist/chunks/{side-sheet-S2w081AK.js → side-sheet-sQ8qGKVm.js} +73 -81
- package/dist/chunks/{side-sheet-S2w081AK.js.map → side-sheet-sQ8qGKVm.js.map} +1 -1
- package/dist/chunks/slider-OIyEcUU9.js +448 -0
- package/dist/chunks/slider-OIyEcUU9.js.map +1 -0
- package/dist/chunks/{snackbar-Wsz3BzEY.js → snackbar-Yi6fF9vM.js} +57 -62
- package/dist/chunks/{snackbar-Wsz3BzEY.js.map → snackbar-Yi6fF9vM.js.map} +1 -1
- package/dist/chunks/{split-button-DUfjukQY.js → split-button-CLjVJe3I.js} +155 -172
- package/dist/chunks/{split-button-DUfjukQY.js.map → split-button-CLjVJe3I.js.map} +1 -1
- package/dist/chunks/{switch-DdukrvXb.js → switch-mtu6AVEh.js} +54 -57
- package/dist/chunks/{switch-DdukrvXb.js.map → switch-mtu6AVEh.js.map} +1 -1
- package/dist/chunks/table-C5rCvdFc.js +724 -0
- package/dist/chunks/{table-CqHnneAj.js.map → table-C5rCvdFc.js.map} +1 -1
- package/dist/chunks/tabs-C0mtURlT.js +182 -0
- package/dist/chunks/{tabs-BfOtoeir.js.map → tabs-C0mtURlT.js.map} +1 -1
- package/dist/chunks/{text-field-hN6-2HQy.js → text-field-MifFD7uk.js} +92 -110
- package/dist/chunks/{text-field-hN6-2HQy.js.map → text-field-MifFD7uk.js.map} +1 -1
- package/dist/chunks/time-picker-JTcLcJuz.js +810 -0
- package/dist/chunks/time-picker-JTcLcJuz.js.map +1 -0
- package/dist/chunks/{toolbar-DXVQbQKJ.js → toolbar-CsxKc2Yd.js} +48 -55
- package/dist/chunks/{toolbar-DXVQbQKJ.js.map → toolbar-CsxKc2Yd.js.map} +1 -1
- package/dist/chunks/tooltip-Ds3lNowS.js +380 -0
- package/dist/chunks/{tooltip-CE7JMHMu.js.map → tooltip-Ds3lNowS.js.map} +1 -1
- package/dist/chunks/{top-app-bar-Dgbp6CFv.js → top-app-bar-TrnjKzOX.js} +52 -53
- package/dist/chunks/top-app-bar-TrnjKzOX.js.map +1 -0
- package/dist/components/account-menu/account-menu.js +2 -8
- package/dist/components/app-drawer/app-drawer.js +2 -9
- package/dist/components/badge/badge.js +2 -4
- package/dist/components/bottom-sheet/bottom-sheet.js +2 -4
- package/dist/components/button/button.js +2 -4
- package/dist/components/button-group/button-group.js +2 -4
- package/dist/components/card/card.js +2 -4
- package/dist/components/carousel/carousel-item.js +2 -4
- package/dist/components/carousel/carousel.js +214 -232
- package/dist/components/carousel/carousel.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +2 -4
- package/dist/components/chip/chip.js +2 -5
- package/dist/components/code/code.js +2 -5
- package/dist/components/date-picker/date-picker.js +2 -4
- package/dist/components/dialog/dialog.js +2 -4
- package/dist/components/divider/divider.js +2 -4
- package/dist/components/fab/fab.js +2 -4
- package/dist/components/fab-menu/fab-menu-item.js +53 -61
- package/dist/components/fab-menu/fab-menu-item.js.map +1 -1
- package/dist/components/fab-menu/fab-menu.js +98 -111
- package/dist/components/fab-menu/fab-menu.js.map +1 -1
- package/dist/components/icon/icon.js +2 -4
- package/dist/components/icon-button/icon-button.js +2 -4
- package/dist/components/list/list.js +2 -5
- package/dist/components/loading-indicator/loading-indicator.js +2 -4
- package/dist/components/menu/menu-item.js +2 -4
- package/dist/components/menu/menu.js +165 -183
- package/dist/components/menu/menu.js.map +1 -1
- package/dist/components/navigation-bar/navigation-bar-item.js +2 -5
- package/dist/components/navigation-bar/navigation-bar.js +131 -143
- package/dist/components/navigation-bar/navigation-bar.js.map +1 -1
- package/dist/components/navigation-drawer/navigation-drawer.js +2 -8
- package/dist/components/navigation-rail/navigation-rail-item.js +2 -5
- package/dist/components/navigation-rail/navigation-rail.js +92 -102
- package/dist/components/navigation-rail/navigation-rail.js.map +1 -1
- package/dist/components/player/player.js +2 -7
- package/dist/components/progress/progress.js +2 -5
- package/dist/components/radio/radio.js +2 -5
- package/dist/components/search-bar/search-bar.js +2 -5
- package/dist/components/segmented-button/segmented-button.js +2 -5
- package/dist/components/side-sheet/side-sheet.js +2 -4
- package/dist/components/slider/slider.js +2 -4
- package/dist/components/snackbar/snackbar.js +2 -4
- package/dist/components/split-button/split-button.js +2 -4
- package/dist/components/switch/switch.js +2 -4
- package/dist/components/table/table.js +2 -13
- package/dist/components/tabs/tabs.js +2 -5
- package/dist/components/text-field/text-field.js +2 -4
- package/dist/components/time-picker/time-picker.js +2 -4
- package/dist/components/toolbar/toolbar.js +2 -4
- package/dist/components/tooltip/tooltip.js +2 -4
- package/dist/components/top-app-bar/top-app-bar.js +2 -5
- package/dist/index.js +52 -150
- package/dist/internal/focus-ring/focus-ring.js +2 -4
- package/dist/internal/ripple/ripple.js +2 -4
- package/dist/tokens/index.js +468 -314
- package/dist/tokens/index.js.map +1 -1
- package/llms.txt +74 -8
- package/package.json +2 -14
- package/dist/chunks/app-drawer-Du1ePzxZ.js +0 -903
- package/dist/chunks/button-group-CNqvJx1n.js +0 -143
- package/dist/chunks/code-C5UFBkCh.js +0 -1830
- package/dist/chunks/date-picker-DJeHi4w-.js +0 -777
- package/dist/chunks/date-picker-DJeHi4w-.js.map +0 -1
- package/dist/chunks/decorate-DXuynaiA.js +0 -39
- package/dist/chunks/divider-DNepwoZv.js +0 -82
- package/dist/chunks/focus-ring-CuiJuM-y.js +0 -71
- package/dist/chunks/form-associated-Cty_ZaS9.js +0 -73
- package/dist/chunks/icon-DrNqcNEL.js +0 -62
- package/dist/chunks/radio-Bily78NT.js +0 -205
- package/dist/chunks/ripple-squbKHhj.js +0 -135
- package/dist/chunks/search-bar-fUD0qU2P.js.map +0 -1
- package/dist/chunks/segmented-button-B0BvGSQ7.js +0 -265
- package/dist/chunks/slider-D-mnO8yQ.js +0 -450
- package/dist/chunks/slider-D-mnO8yQ.js.map +0 -1
- package/dist/chunks/table-CqHnneAj.js +0 -773
- package/dist/chunks/tabs-BfOtoeir.js +0 -191
- package/dist/chunks/time-picker-CZnb2sWz.js +0 -785
- package/dist/chunks/time-picker-CZnb2sWz.js.map +0 -1
- package/dist/chunks/tooltip-CE7JMHMu.js +0 -398
- package/dist/chunks/top-app-bar-Dgbp6CFv.js.map +0 -1
- package/dist/components/account-menu/account-menu.css.d.ts +0 -3
- package/dist/components/account-menu/account-menu.css.d.ts.map +0 -1
- package/dist/components/account-menu/account-menu.d.ts +0 -111
- package/dist/components/account-menu/account-menu.d.ts.map +0 -1
- package/dist/components/app-drawer/app-drawer.css.d.ts +0 -3
- package/dist/components/app-drawer/app-drawer.css.d.ts.map +0 -1
- package/dist/components/app-drawer/app-drawer.d.ts +0 -173
- package/dist/components/app-drawer/app-drawer.d.ts.map +0 -1
- package/dist/components/badge/badge.css.d.ts +0 -2
- package/dist/components/badge/badge.css.d.ts.map +0 -1
- package/dist/components/badge/badge.d.ts +0 -16
- package/dist/components/badge/badge.d.ts.map +0 -1
- package/dist/components/bottom-sheet/bottom-sheet.css.d.ts +0 -2
- package/dist/components/bottom-sheet/bottom-sheet.css.d.ts.map +0 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -69
- package/dist/components/bottom-sheet/bottom-sheet.d.ts.map +0 -1
- package/dist/components/button/button.css.d.ts +0 -2
- package/dist/components/button/button.css.d.ts.map +0 -1
- package/dist/components/button/button.d.ts +0 -25
- package/dist/components/button/button.d.ts.map +0 -1
- package/dist/components/button-group/button-group.css.d.ts +0 -2
- package/dist/components/button-group/button-group.css.d.ts.map +0 -1
- package/dist/components/button-group/button-group.d.ts +0 -28
- package/dist/components/button-group/button-group.d.ts.map +0 -1
- package/dist/components/card/card.css.d.ts +0 -2
- package/dist/components/card/card.css.d.ts.map +0 -1
- package/dist/components/card/card.d.ts +0 -18
- package/dist/components/card/card.d.ts.map +0 -1
- package/dist/components/carousel/carousel-item.d.ts +0 -33
- package/dist/components/carousel/carousel-item.d.ts.map +0 -1
- package/dist/components/carousel/carousel.css.d.ts +0 -3
- package/dist/components/carousel/carousel.css.d.ts.map +0 -1
- package/dist/components/carousel/carousel.d.ts +0 -81
- package/dist/components/carousel/carousel.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.css.d.ts +0 -2
- package/dist/components/checkbox/checkbox.css.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.d.ts +0 -24
- package/dist/components/checkbox/checkbox.d.ts.map +0 -1
- package/dist/components/chip/chip.css.d.ts +0 -3
- package/dist/components/chip/chip.css.d.ts.map +0 -1
- package/dist/components/chip/chip.d.ts +0 -27
- package/dist/components/chip/chip.d.ts.map +0 -1
- package/dist/components/code/code.css.d.ts +0 -2
- package/dist/components/code/code.css.d.ts.map +0 -1
- package/dist/components/code/code.d.ts +0 -106
- package/dist/components/code/code.d.ts.map +0 -1
- package/dist/components/code/highlighter.d.ts +0 -8
- package/dist/components/code/highlighter.d.ts.map +0 -1
- package/dist/components/code/linter.d.ts +0 -44
- package/dist/components/code/linter.d.ts.map +0 -1
- package/dist/components/date-picker/date-picker.css.d.ts +0 -2
- package/dist/components/date-picker/date-picker.css.d.ts.map +0 -1
- package/dist/components/date-picker/date-picker.d.ts +0 -59
- package/dist/components/date-picker/date-picker.d.ts.map +0 -1
- package/dist/components/dialog/dialog.css.d.ts +0 -2
- package/dist/components/dialog/dialog.css.d.ts.map +0 -1
- package/dist/components/dialog/dialog.d.ts +0 -22
- package/dist/components/dialog/dialog.d.ts.map +0 -1
- package/dist/components/divider/divider.css.d.ts +0 -2
- package/dist/components/divider/divider.css.d.ts.map +0 -1
- package/dist/components/divider/divider.d.ts +0 -16
- package/dist/components/divider/divider.d.ts.map +0 -1
- package/dist/components/fab/fab.css.d.ts +0 -2
- package/dist/components/fab/fab.css.d.ts.map +0 -1
- package/dist/components/fab/fab.d.ts +0 -19
- package/dist/components/fab/fab.d.ts.map +0 -1
- package/dist/components/fab-menu/fab-menu-item.d.ts +0 -35
- package/dist/components/fab-menu/fab-menu-item.d.ts.map +0 -1
- package/dist/components/fab-menu/fab-menu.css.d.ts +0 -3
- package/dist/components/fab-menu/fab-menu.css.d.ts.map +0 -1
- package/dist/components/fab-menu/fab-menu.d.ts +0 -72
- package/dist/components/fab-menu/fab-menu.d.ts.map +0 -1
- package/dist/components/icon/icon.css.d.ts +0 -2
- package/dist/components/icon/icon.css.d.ts.map +0 -1
- package/dist/components/icon/icon.d.ts +0 -15
- package/dist/components/icon/icon.d.ts.map +0 -1
- package/dist/components/icon-button/icon-button.css.d.ts +0 -2
- package/dist/components/icon-button/icon-button.css.d.ts.map +0 -1
- package/dist/components/icon-button/icon-button.d.ts +0 -22
- package/dist/components/icon-button/icon-button.d.ts.map +0 -1
- package/dist/components/list/list.css.d.ts +0 -3
- package/dist/components/list/list.css.d.ts.map +0 -1
- package/dist/components/list/list.d.ts +0 -25
- package/dist/components/list/list.d.ts.map +0 -1
- package/dist/components/loading-indicator/loading-indicator.css.d.ts +0 -2
- package/dist/components/loading-indicator/loading-indicator.css.d.ts.map +0 -1
- package/dist/components/loading-indicator/loading-indicator.d.ts +0 -48
- package/dist/components/loading-indicator/loading-indicator.d.ts.map +0 -1
- package/dist/components/menu/menu-item.d.ts +0 -41
- package/dist/components/menu/menu-item.d.ts.map +0 -1
- package/dist/components/menu/menu.css.d.ts +0 -3
- package/dist/components/menu/menu.css.d.ts.map +0 -1
- package/dist/components/menu/menu.d.ts +0 -91
- package/dist/components/menu/menu.d.ts.map +0 -1
- package/dist/components/navigation-bar/navigation-bar-item.d.ts +0 -49
- package/dist/components/navigation-bar/navigation-bar-item.d.ts.map +0 -1
- package/dist/components/navigation-bar/navigation-bar.css.d.ts +0 -3
- package/dist/components/navigation-bar/navigation-bar.css.d.ts.map +0 -1
- package/dist/components/navigation-bar/navigation-bar.d.ts +0 -50
- package/dist/components/navigation-bar/navigation-bar.d.ts.map +0 -1
- package/dist/components/navigation-drawer/navigation-drawer.css.d.ts +0 -3
- package/dist/components/navigation-drawer/navigation-drawer.css.d.ts.map +0 -1
- package/dist/components/navigation-drawer/navigation-drawer.d.ts +0 -76
- package/dist/components/navigation-drawer/navigation-drawer.d.ts.map +0 -1
- package/dist/components/navigation-rail/navigation-rail-item.d.ts +0 -36
- package/dist/components/navigation-rail/navigation-rail-item.d.ts.map +0 -1
- package/dist/components/navigation-rail/navigation-rail.css.d.ts +0 -3
- package/dist/components/navigation-rail/navigation-rail.css.d.ts.map +0 -1
- package/dist/components/navigation-rail/navigation-rail.d.ts +0 -43
- package/dist/components/navigation-rail/navigation-rail.d.ts.map +0 -1
- package/dist/components/player/player.css.d.ts +0 -2
- package/dist/components/player/player.css.d.ts.map +0 -1
- package/dist/components/player/player.d.ts +0 -99
- package/dist/components/player/player.d.ts.map +0 -1
- package/dist/components/progress/progress.css.d.ts +0 -2
- package/dist/components/progress/progress.css.d.ts.map +0 -1
- package/dist/components/progress/progress.d.ts +0 -21
- package/dist/components/progress/progress.d.ts.map +0 -1
- package/dist/components/radio/radio.css.d.ts +0 -3
- package/dist/components/radio/radio.css.d.ts.map +0 -1
- package/dist/components/radio/radio.d.ts +0 -38
- package/dist/components/radio/radio.d.ts.map +0 -1
- package/dist/components/search-bar/search-bar.css.d.ts +0 -2
- package/dist/components/search-bar/search-bar.css.d.ts.map +0 -1
- package/dist/components/search-bar/search-bar.d.ts +0 -81
- package/dist/components/search-bar/search-bar.d.ts.map +0 -1
- package/dist/components/segmented-button/segmented-button.css.d.ts +0 -3
- package/dist/components/segmented-button/segmented-button.css.d.ts.map +0 -1
- package/dist/components/segmented-button/segmented-button.d.ts +0 -40
- package/dist/components/segmented-button/segmented-button.d.ts.map +0 -1
- package/dist/components/side-sheet/side-sheet.css.d.ts +0 -2
- package/dist/components/side-sheet/side-sheet.css.d.ts.map +0 -1
- package/dist/components/side-sheet/side-sheet.d.ts +0 -57
- package/dist/components/side-sheet/side-sheet.d.ts.map +0 -1
- package/dist/components/slider/slider.css.d.ts +0 -2
- package/dist/components/slider/slider.css.d.ts.map +0 -1
- package/dist/components/slider/slider.d.ts +0 -51
- package/dist/components/slider/slider.d.ts.map +0 -1
- package/dist/components/snackbar/snackbar.css.d.ts +0 -2
- package/dist/components/snackbar/snackbar.css.d.ts.map +0 -1
- package/dist/components/snackbar/snackbar.d.ts +0 -24
- package/dist/components/snackbar/snackbar.d.ts.map +0 -1
- package/dist/components/split-button/split-button.css.d.ts +0 -2
- package/dist/components/split-button/split-button.css.d.ts.map +0 -1
- package/dist/components/split-button/split-button.d.ts +0 -89
- package/dist/components/split-button/split-button.d.ts.map +0 -1
- package/dist/components/switch/switch.css.d.ts +0 -2
- package/dist/components/switch/switch.css.d.ts.map +0 -1
- package/dist/components/switch/switch.d.ts +0 -22
- package/dist/components/switch/switch.d.ts.map +0 -1
- package/dist/components/table/table.css.d.ts +0 -8
- package/dist/components/table/table.css.d.ts.map +0 -1
- package/dist/components/table/table.d.ts +0 -158
- package/dist/components/table/table.d.ts.map +0 -1
- package/dist/components/tabs/tabs.css.d.ts +0 -3
- package/dist/components/tabs/tabs.css.d.ts.map +0 -1
- package/dist/components/tabs/tabs.d.ts +0 -33
- package/dist/components/tabs/tabs.d.ts.map +0 -1
- package/dist/components/text-field/text-field.css.d.ts +0 -2
- package/dist/components/text-field/text-field.css.d.ts.map +0 -1
- package/dist/components/text-field/text-field.d.ts +0 -40
- package/dist/components/text-field/text-field.d.ts.map +0 -1
- package/dist/components/time-picker/time-picker.css.d.ts +0 -2
- package/dist/components/time-picker/time-picker.css.d.ts.map +0 -1
- package/dist/components/time-picker/time-picker.d.ts +0 -87
- package/dist/components/time-picker/time-picker.d.ts.map +0 -1
- package/dist/components/toolbar/toolbar.css.d.ts +0 -2
- package/dist/components/toolbar/toolbar.css.d.ts.map +0 -1
- package/dist/components/toolbar/toolbar.d.ts +0 -53
- package/dist/components/toolbar/toolbar.d.ts.map +0 -1
- package/dist/components/tooltip/tooltip.css.d.ts +0 -2
- package/dist/components/tooltip/tooltip.css.d.ts.map +0 -1
- package/dist/components/tooltip/tooltip.d.ts +0 -89
- package/dist/components/tooltip/tooltip.d.ts.map +0 -1
- package/dist/components/top-app-bar/top-app-bar.css.d.ts +0 -2
- package/dist/components/top-app-bar/top-app-bar.css.d.ts.map +0 -1
- package/dist/components/top-app-bar/top-app-bar.d.ts +0 -29
- package/dist/components/top-app-bar/top-app-bar.d.ts.map +0 -1
- package/dist/index.d.ts +0 -52
- package/dist/index.d.ts.map +0 -1
- package/dist/internal/base-component.d.ts +0 -13
- package/dist/internal/base-component.d.ts.map +0 -1
- package/dist/internal/focus-ring/focus-ring.css.d.ts +0 -2
- package/dist/internal/focus-ring/focus-ring.css.d.ts.map +0 -1
- package/dist/internal/focus-ring/focus-ring.d.ts +0 -18
- package/dist/internal/focus-ring/focus-ring.d.ts.map +0 -1
- package/dist/internal/form-associated.d.ts +0 -26
- package/dist/internal/form-associated.d.ts.map +0 -1
- package/dist/internal/ripple/ripple.css.d.ts +0 -2
- package/dist/internal/ripple/ripple.css.d.ts.map +0 -1
- package/dist/internal/ripple/ripple.d.ts +0 -23
- package/dist/internal/ripple/ripple.d.ts.map +0 -1
- package/dist/tokens/colors.d.ts +0 -42
- package/dist/tokens/colors.d.ts.map +0 -1
- package/dist/tokens/elevation.d.ts +0 -9
- package/dist/tokens/elevation.d.ts.map +0 -1
- package/dist/tokens/index.d.ts +0 -7
- package/dist/tokens/index.d.ts.map +0 -1
- package/dist/tokens/motion.d.ts +0 -21
- package/dist/tokens/motion.d.ts.map +0 -1
- package/dist/tokens/shape.d.ts +0 -10
- package/dist/tokens/shape.d.ts.map +0 -1
- package/dist/tokens/theme.css.d.ts +0 -4
- package/dist/tokens/theme.css.d.ts.map +0 -1
- package/dist/tokens/typography.d.ts +0 -101
- package/dist/tokens/typography.d.ts.map +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t
|
|
3
|
-
import "./icon-
|
|
4
|
-
import { css as
|
|
5
|
-
import { customElement as
|
|
6
|
-
|
|
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;
|
|
@@ -13,6 +14,42 @@ var y = m`
|
|
|
13
14
|
font-family: var(--md-sys-typescale-font-family, inherit);
|
|
14
15
|
color: var(--md-sys-color-on-surface, #1D1B20);
|
|
15
16
|
vertical-align: middle;
|
|
17
|
+
|
|
18
|
+
--_height: var(--md-search-bar-height, 56px);
|
|
19
|
+
--_shape: var(--md-search-bar-shape, var(--md-search-bar-border-radius, var(--md-sys-shape-corner-full, 28px)));
|
|
20
|
+
--_shape-active: var(--md-search-bar-shape-active, var(--md-sys-shape-corner-extra-large, 28px 28px 16px 16px));
|
|
21
|
+
--_bg: var(--md-search-bar-container-color, var(--md-search-bar-bg, var(--md-sys-color-surface-container-high, #ECE6F0)));
|
|
22
|
+
--_elevation: var(--md-search-bar-elevation, var(--md-sys-elevation-level1, 0px 1px 3px 1px rgba(0, 0, 0, 0.15)));
|
|
23
|
+
--_elevation-active: var(--md-search-bar-elevation-active, var(--md-sys-elevation-level3, 0px 4px 8px 3px rgba(0, 0, 0, 0.15)));
|
|
24
|
+
--_btn-size: var(--md-search-bar-icon-button-size, 40px);
|
|
25
|
+
--_icon-size: var(--md-search-bar-icon-size, 24px);
|
|
26
|
+
--_font-size: var(--md-search-bar-font-size, var(--md-sys-typescale-body-large-size, 16px));
|
|
27
|
+
--_line-height: var(--md-search-bar-line-height, var(--md-sys-typescale-body-large-line-height, 24px));
|
|
28
|
+
--_padding: var(--md-search-bar-padding, 0 8px 0 16px);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([size="small"]),
|
|
32
|
+
:host([size="compact"]),
|
|
33
|
+
:host([compact]) {
|
|
34
|
+
--_height: var(--md-search-bar-height, 40px);
|
|
35
|
+
--_shape: var(--md-search-bar-shape, var(--md-search-bar-border-radius, 20px));
|
|
36
|
+
--_shape-active: var(--md-search-bar-shape-active, 20px 20px 12px 12px);
|
|
37
|
+
--_btn-size: var(--md-search-bar-icon-button-size, 32px);
|
|
38
|
+
--_icon-size: var(--md-search-bar-icon-size, 20px);
|
|
39
|
+
--_font-size: var(--md-search-bar-font-size, var(--md-sys-typescale-body-medium-size, 14px));
|
|
40
|
+
--_line-height: var(--md-search-bar-line-height, 20px);
|
|
41
|
+
--_padding: var(--md-search-bar-padding, 0 6px 0 12px);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host([size="large"]) {
|
|
45
|
+
--_height: var(--md-search-bar-height, 64px);
|
|
46
|
+
--_shape: var(--md-search-bar-shape, var(--md-search-bar-border-radius, 32px));
|
|
47
|
+
--_shape-active: var(--md-search-bar-shape-active, 32px 32px 20px 20px);
|
|
48
|
+
--_btn-size: var(--md-search-bar-icon-button-size, 48px);
|
|
49
|
+
--_icon-size: var(--md-search-bar-icon-size, 24px);
|
|
50
|
+
--_font-size: var(--md-search-bar-font-size, 18px);
|
|
51
|
+
--_line-height: var(--md-search-bar-line-height, 26px);
|
|
52
|
+
--_padding: var(--md-search-bar-padding, 0 12px 0 20px);
|
|
16
53
|
}
|
|
17
54
|
|
|
18
55
|
:host([disabled]) {
|
|
@@ -43,9 +80,9 @@ var y = m`
|
|
|
43
80
|
flex-direction: column;
|
|
44
81
|
width: 100%;
|
|
45
82
|
box-sizing: border-box;
|
|
46
|
-
background-color: var(--
|
|
47
|
-
border-radius: var(--
|
|
48
|
-
box-shadow: var(--
|
|
83
|
+
background-color: var(--_bg);
|
|
84
|
+
border-radius: var(--_shape);
|
|
85
|
+
box-shadow: var(--_elevation);
|
|
49
86
|
transition: box-shadow 200ms cubic-bezier(0.2, 0, 0, 1),
|
|
50
87
|
border-radius 200ms cubic-bezier(0.2, 0, 0, 1),
|
|
51
88
|
background-color 200ms cubic-bezier(0.2, 0, 0, 1);
|
|
@@ -54,9 +91,9 @@ var y = m`
|
|
|
54
91
|
.search-bar-header {
|
|
55
92
|
display: flex;
|
|
56
93
|
align-items: center;
|
|
57
|
-
min-height:
|
|
58
|
-
height:
|
|
59
|
-
padding:
|
|
94
|
+
min-height: var(--_height);
|
|
95
|
+
height: var(--_height);
|
|
96
|
+
padding: var(--_padding);
|
|
60
97
|
box-sizing: border-box;
|
|
61
98
|
gap: 8px;
|
|
62
99
|
}
|
|
@@ -72,8 +109,8 @@ var y = m`
|
|
|
72
109
|
display: inline-flex;
|
|
73
110
|
align-items: center;
|
|
74
111
|
justify-content: center;
|
|
75
|
-
width:
|
|
76
|
-
height:
|
|
112
|
+
width: var(--_btn-size);
|
|
113
|
+
height: var(--_btn-size);
|
|
77
114
|
border: none;
|
|
78
115
|
background: transparent;
|
|
79
116
|
border-radius: 50%;
|
|
@@ -85,6 +122,11 @@ var y = m`
|
|
|
85
122
|
transition: background-color 150ms ease;
|
|
86
123
|
}
|
|
87
124
|
|
|
125
|
+
.icon-btn md-icon {
|
|
126
|
+
font-size: var(--_icon-size);
|
|
127
|
+
--md-icon-size: var(--_icon-size);
|
|
128
|
+
}
|
|
129
|
+
|
|
88
130
|
.icon-btn:hover {
|
|
89
131
|
background-color: rgba(73, 69, 79, 0.08);
|
|
90
132
|
}
|
|
@@ -107,8 +149,8 @@ var y = m`
|
|
|
107
149
|
background: transparent;
|
|
108
150
|
outline: none;
|
|
109
151
|
font-family: inherit;
|
|
110
|
-
font-size: var(--
|
|
111
|
-
line-height: var(--
|
|
152
|
+
font-size: var(--_font-size);
|
|
153
|
+
line-height: var(--_line-height);
|
|
112
154
|
color: var(--md-sys-color-on-surface, #1D1B20);
|
|
113
155
|
padding: 0 4px;
|
|
114
156
|
margin: 0;
|
|
@@ -141,8 +183,8 @@ var y = m`
|
|
|
141
183
|
/* Active Docked Mode */
|
|
142
184
|
:host([active]) .search-container {
|
|
143
185
|
z-index: 50;
|
|
144
|
-
border-radius: var(--
|
|
145
|
-
box-shadow: var(--
|
|
186
|
+
border-radius: var(--_shape-active);
|
|
187
|
+
box-shadow: var(--_elevation-active);
|
|
146
188
|
}
|
|
147
189
|
|
|
148
190
|
/* Divider when active */
|
|
@@ -202,6 +244,11 @@ var y = m`
|
|
|
202
244
|
flex-shrink: 0;
|
|
203
245
|
}
|
|
204
246
|
|
|
247
|
+
.suggestion-icon md-icon {
|
|
248
|
+
font-size: var(--_icon-size);
|
|
249
|
+
--md-icon-size: var(--_icon-size);
|
|
250
|
+
}
|
|
251
|
+
|
|
205
252
|
.suggestion-text {
|
|
206
253
|
display: flex;
|
|
207
254
|
flex-direction: column;
|
|
@@ -211,7 +258,7 @@ var y = m`
|
|
|
211
258
|
}
|
|
212
259
|
|
|
213
260
|
.suggestion-label {
|
|
214
|
-
font-size: var(--
|
|
261
|
+
font-size: var(--_font-size);
|
|
215
262
|
line-height: 20px;
|
|
216
263
|
white-space: nowrap;
|
|
217
264
|
overflow: hidden;
|
|
@@ -265,12 +312,12 @@ var y = m`
|
|
|
265
312
|
|
|
266
313
|
:host([responsive]:not([active]):not([collapse-on-mobile="false"])) .search-trigger-container.has-trailing,
|
|
267
314
|
:host([collapse-on-mobile]:not([active]):not([collapse-on-mobile="false"])) .search-trigger-container.has-trailing {
|
|
268
|
-
height:
|
|
315
|
+
height: var(--_height);
|
|
269
316
|
padding: 0 4px;
|
|
270
317
|
gap: 2px;
|
|
271
|
-
background-color: var(--
|
|
272
|
-
border-radius: var(--
|
|
273
|
-
box-shadow: var(--
|
|
318
|
+
background-color: var(--_bg);
|
|
319
|
+
border-radius: var(--_shape);
|
|
320
|
+
box-shadow: var(--_elevation);
|
|
274
321
|
}
|
|
275
322
|
|
|
276
323
|
:host([responsive]:not([active]):not([collapse-on-mobile="false"])) .search-trigger-container.has-trailing:hover,
|
|
@@ -288,10 +335,10 @@ var y = m`
|
|
|
288
335
|
display: inline-flex;
|
|
289
336
|
align-items: center;
|
|
290
337
|
justify-content: center;
|
|
291
|
-
width:
|
|
292
|
-
height:
|
|
293
|
-
min-width:
|
|
294
|
-
min-height:
|
|
338
|
+
width: var(--_btn-size);
|
|
339
|
+
height: var(--_btn-size);
|
|
340
|
+
min-width: var(--_btn-size);
|
|
341
|
+
min-height: var(--_btn-size);
|
|
295
342
|
border-radius: 50%;
|
|
296
343
|
border: none;
|
|
297
344
|
background: transparent;
|
|
@@ -305,6 +352,11 @@ var y = m`
|
|
|
305
352
|
-webkit-tap-highlight-color: transparent;
|
|
306
353
|
}
|
|
307
354
|
|
|
355
|
+
.trigger-btn md-icon {
|
|
356
|
+
font-size: var(--_icon-size);
|
|
357
|
+
--md-icon-size: var(--_icon-size);
|
|
358
|
+
}
|
|
359
|
+
|
|
308
360
|
.trigger-btn:hover {
|
|
309
361
|
background-color: rgba(73, 69, 79, 0.08);
|
|
310
362
|
}
|
|
@@ -373,7 +425,7 @@ var y = m`
|
|
|
373
425
|
border-radius: 0;
|
|
374
426
|
box-shadow: none;
|
|
375
427
|
z-index: 99999;
|
|
376
|
-
background-color: var(--
|
|
428
|
+
background-color: var(--_bg);
|
|
377
429
|
}
|
|
378
430
|
|
|
379
431
|
:host([responsive][active]) .suggestions-container,
|
|
@@ -421,7 +473,7 @@ var y = m`
|
|
|
421
473
|
border-radius: 0;
|
|
422
474
|
box-shadow: none;
|
|
423
475
|
z-index: 99999;
|
|
424
|
-
background-color: var(--
|
|
476
|
+
background-color: var(--_bg);
|
|
425
477
|
}
|
|
426
478
|
|
|
427
479
|
:host([fullscreen][active]) .suggestions-container {
|
|
@@ -429,124 +481,125 @@ var y = m`
|
|
|
429
481
|
max-height: calc(100vh - 57px);
|
|
430
482
|
max-height: calc(100dvh - 57px);
|
|
431
483
|
}
|
|
432
|
-
`,
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
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`
|
|
528
581
|
<div
|
|
529
|
-
class="suggestion-item ${
|
|
582
|
+
class="suggestion-item ${l ? "highlighted" : ""}"
|
|
530
583
|
role="option"
|
|
531
|
-
aria-selected=${
|
|
532
|
-
@click=${() => this.selectSuggestion(
|
|
584
|
+
aria-selected=${l ? "true" : "false"}
|
|
585
|
+
@click=${() => this.selectSuggestion(e, t)}
|
|
533
586
|
>
|
|
534
587
|
<span class="suggestion-icon">
|
|
535
|
-
<md-icon name=${
|
|
588
|
+
<md-icon name=${c}></md-icon>
|
|
536
589
|
</span>
|
|
537
590
|
<div class="suggestion-text">
|
|
538
|
-
<span class="suggestion-label">${
|
|
539
|
-
${
|
|
591
|
+
<span class="suggestion-label">${a}</span>
|
|
592
|
+
${o ? r`<span class="suggestion-supporting">${o}</span>` : i}
|
|
540
593
|
</div>
|
|
541
|
-
${
|
|
594
|
+
${s ? r`<span class="suggestion-trailing">${s}</span>` : i}
|
|
542
595
|
</div>
|
|
543
596
|
`;
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
597
|
+
}
|
|
598
|
+
render() {
|
|
599
|
+
let e = this.active && this.showBackButton, t = !!this.trailingIcon;
|
|
600
|
+
return r`
|
|
548
601
|
<div
|
|
549
|
-
class="search-trigger-container ${
|
|
602
|
+
class="search-trigger-container ${t ? "has-trailing" : ""}"
|
|
550
603
|
role="button"
|
|
551
604
|
tabindex="0"
|
|
552
605
|
aria-label=${this.placeholder || "Search"}
|
|
@@ -566,7 +619,7 @@ var y = m`
|
|
|
566
619
|
<md-icon name=${this.leadingIcon || "search"}></md-icon>
|
|
567
620
|
</button>
|
|
568
621
|
|
|
569
|
-
${
|
|
622
|
+
${t ? r`
|
|
570
623
|
<div class="trigger-divider" aria-hidden="true"></div>
|
|
571
624
|
<button
|
|
572
625
|
class="trigger-btn trigger-trailing-btn"
|
|
@@ -578,7 +631,7 @@ var y = m`
|
|
|
578
631
|
>
|
|
579
632
|
<md-icon name=${this.trailingIcon}></md-icon>
|
|
580
633
|
</button>
|
|
581
|
-
` :
|
|
634
|
+
` : i}
|
|
582
635
|
</div>
|
|
583
636
|
|
|
584
637
|
<div class="scrim" @click=${this.handleScrimClick}></div>
|
|
@@ -587,7 +640,7 @@ var y = m`
|
|
|
587
640
|
<div class="search-bar-header">
|
|
588
641
|
<span class="leading-slot">
|
|
589
642
|
<slot name="leading-icon">
|
|
590
|
-
${
|
|
643
|
+
${e ? r`
|
|
591
644
|
<button
|
|
592
645
|
class="icon-btn"
|
|
593
646
|
type="button"
|
|
@@ -596,7 +649,7 @@ var y = m`
|
|
|
596
649
|
>
|
|
597
650
|
<md-icon name=${this.activeLeadingIcon}></md-icon>
|
|
598
651
|
</button>
|
|
599
|
-
` :
|
|
652
|
+
` : r`
|
|
600
653
|
<span class="icon-btn" style="cursor: default;">
|
|
601
654
|
<md-icon name=${this.leadingIcon}></md-icon>
|
|
602
655
|
</span>
|
|
@@ -623,7 +676,7 @@ var y = m`
|
|
|
623
676
|
</div>
|
|
624
677
|
|
|
625
678
|
<span class="trailing-slot">
|
|
626
|
-
${this.showClearButton && this.value ?
|
|
679
|
+
${this.showClearButton && this.value ? r`
|
|
627
680
|
<button
|
|
628
681
|
class="icon-btn clear-btn"
|
|
629
682
|
type="button"
|
|
@@ -632,14 +685,14 @@ var y = m`
|
|
|
632
685
|
>
|
|
633
686
|
<md-icon name="close"></md-icon>
|
|
634
687
|
</button>
|
|
635
|
-
` :
|
|
688
|
+
` : i}
|
|
636
689
|
|
|
637
690
|
<slot name="trailing-icon">
|
|
638
|
-
${this.trailingIcon ?
|
|
691
|
+
${this.trailingIcon ? r`
|
|
639
692
|
<span class="icon-btn" style="cursor: default;">
|
|
640
693
|
<md-icon name=${this.trailingIcon}></md-icon>
|
|
641
694
|
</span>
|
|
642
|
-
` :
|
|
695
|
+
` : i}
|
|
643
696
|
</slot>
|
|
644
697
|
</span>
|
|
645
698
|
</div>
|
|
@@ -648,7 +701,7 @@ var y = m`
|
|
|
648
701
|
|
|
649
702
|
<div class="suggestions-container" role="listbox" aria-label="Suggestions">
|
|
650
703
|
<slot name="suggestions">
|
|
651
|
-
${this.suggestions.map((
|
|
704
|
+
${this.suggestions.map((e, t) => this.renderSuggestionItem(e, t))}
|
|
652
705
|
</slot>
|
|
653
706
|
<div class="extra-content">
|
|
654
707
|
<slot></slot>
|
|
@@ -656,61 +709,49 @@ var y = m`
|
|
|
656
709
|
</div>
|
|
657
710
|
</div>
|
|
658
711
|
`;
|
|
659
|
-
|
|
712
|
+
}
|
|
660
713
|
};
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
o([
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
})],
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
o([f()], i.prototype, "highlightedIndex", void 0);
|
|
706
|
-
o([x("input")], i.prototype, "inputElement", void 0);
|
|
707
|
-
i = o([u("md-search-bar")], i);
|
|
708
|
-
var g = class extends i {
|
|
709
|
-
};
|
|
710
|
-
g = o([u("md-search")], g);
|
|
711
|
-
export {
|
|
712
|
-
i as n,
|
|
713
|
-
g as t
|
|
714
|
-
};
|
|
715
|
-
|
|
716
|
-
//# sourceMappingURL=search-bar-fUD0qU2P.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
|