@francofantomius/material-components 1.1.2 → 1.3.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 +59 -0
- package/README.md +2 -1
- package/custom-elements.json +922 -37
- 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-CfN-emMP.js → search-bar-B4lAXza_.js} +304 -226
- package/dist/chunks/search-bar-B4lAXza_.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-VzrSd-r5.js → top-app-bar-TrnjKzOX.js} +46 -53
- package/dist/chunks/{top-app-bar-VzrSd-r5.js.map → top-app-bar-TrnjKzOX.js.map} +1 -1
- 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 +94 -13
- package/package.json +6 -17
- 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-CfN-emMP.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/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 -84
- 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,12 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { t as e } from "./decorate-DknOJ8FJ.js";
|
|
2
|
+
import { t } from "./form-associated-Do5uXckv.js";
|
|
3
|
+
import "./ripple-CBOKeVfm.js";
|
|
4
|
+
import "./focus-ring-K6SY_mIm.js";
|
|
5
|
+
import "./icon-FvKeXi61.js";
|
|
6
|
+
import { css as n, html as r, nothing as i } from "lit";
|
|
7
|
+
import { customElement as a, property as o, query as s, state as c } from "lit/decorators.js";
|
|
8
|
+
//#region src/components/search-bar/search-bar.css.ts
|
|
9
|
+
var l = n`
|
|
7
10
|
:host {
|
|
8
11
|
display: block;
|
|
9
12
|
box-sizing: border-box;
|
|
@@ -104,6 +107,20 @@ var y = m`
|
|
|
104
107
|
flex-shrink: 0;
|
|
105
108
|
}
|
|
106
109
|
|
|
110
|
+
.leading-slot.empty,
|
|
111
|
+
:host([has-no-leading]) .leading-slot {
|
|
112
|
+
display: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:host([has-no-leading]) input {
|
|
116
|
+
padding-left: 8px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.leading-slot ::slotted(md-icon-button),
|
|
120
|
+
.trailing-slot ::slotted(md-icon-button) {
|
|
121
|
+
--md-icon-button-size: var(--_btn-size);
|
|
122
|
+
}
|
|
123
|
+
|
|
107
124
|
.icon-btn {
|
|
108
125
|
display: inline-flex;
|
|
109
126
|
align-items: center;
|
|
@@ -118,6 +135,9 @@ var y = m`
|
|
|
118
135
|
padding: 0;
|
|
119
136
|
outline: none;
|
|
120
137
|
position: relative;
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
user-select: none;
|
|
140
|
+
-webkit-tap-highlight-color: transparent;
|
|
121
141
|
transition: background-color 150ms ease;
|
|
122
142
|
}
|
|
123
143
|
|
|
@@ -182,11 +202,15 @@ var y = m`
|
|
|
182
202
|
/* Active Docked Mode */
|
|
183
203
|
:host([active]) .search-container {
|
|
184
204
|
z-index: 50;
|
|
185
|
-
border-radius: var(--_shape
|
|
205
|
+
border-radius: var(--_shape);
|
|
186
206
|
box-shadow: var(--_elevation-active);
|
|
187
207
|
}
|
|
188
208
|
|
|
189
|
-
|
|
209
|
+
:host([active][has-suggestions]) .search-container {
|
|
210
|
+
border-radius: var(--_shape-active);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* Divider when active and has suggestions */
|
|
190
214
|
.divider {
|
|
191
215
|
display: none;
|
|
192
216
|
height: 1px;
|
|
@@ -194,7 +218,7 @@ var y = m`
|
|
|
194
218
|
margin: 0 16px;
|
|
195
219
|
}
|
|
196
220
|
|
|
197
|
-
:host([active]) .divider {
|
|
221
|
+
:host([active][has-suggestions]) .divider {
|
|
198
222
|
display: block;
|
|
199
223
|
}
|
|
200
224
|
|
|
@@ -208,7 +232,7 @@ var y = m`
|
|
|
208
232
|
box-sizing: border-box;
|
|
209
233
|
}
|
|
210
234
|
|
|
211
|
-
:host([active]) .suggestions-container {
|
|
235
|
+
:host([active][has-suggestions]) .suggestions-container {
|
|
212
236
|
display: flex;
|
|
213
237
|
}
|
|
214
238
|
|
|
@@ -347,6 +371,8 @@ var y = m`
|
|
|
347
371
|
margin: 0;
|
|
348
372
|
outline: none;
|
|
349
373
|
position: relative;
|
|
374
|
+
overflow: hidden;
|
|
375
|
+
user-select: none;
|
|
350
376
|
transition: background-color 150ms ease, color 150ms ease;
|
|
351
377
|
-webkit-tap-highlight-color: transparent;
|
|
352
378
|
}
|
|
@@ -480,124 +506,155 @@ var y = m`
|
|
|
480
506
|
max-height: calc(100vh - 57px);
|
|
481
507
|
max-height: calc(100dvh - 57px);
|
|
482
508
|
}
|
|
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
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
509
|
+
`, u = class extends t {
|
|
510
|
+
constructor(...e) {
|
|
511
|
+
super(...e), this.size = "medium", this.compact = !1, this.value = "", this.placeholder = "Search", this.active = !1, this.suggestions = [], this.searchIconPosition = "leading", 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.hasLeadingSlotContent = !1, this.hasCustomContent = !1, this.handleLeadingSlotChange = (e) => {
|
|
512
|
+
let t = e.target.assignedElements({ flatten: !0 });
|
|
513
|
+
this.hasLeadingSlotContent = t.length > 0, this.requestUpdate();
|
|
514
|
+
}, this.handleContentSlotChange = (e) => {
|
|
515
|
+
let t = e.target.assignedElements({ flatten: !0 });
|
|
516
|
+
this.hasCustomContent = t.length > 0, this.requestUpdate();
|
|
517
|
+
}, this.handleFocus = () => {
|
|
518
|
+
this.active || (this.active = !0, this.emitEvent("active-change", { active: !0 }));
|
|
519
|
+
}, this.handleInput = (e) => {
|
|
520
|
+
let t = e.target;
|
|
521
|
+
this.value = t.value, this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.highlightedIndex = -1, this.emitEvent("input", { value: this.value });
|
|
522
|
+
}, this.handleChange = () => {
|
|
523
|
+
this.emitEvent("change", { value: this.value });
|
|
524
|
+
}, this.handleKeyDown = (e) => {
|
|
525
|
+
let t = this.suggestions.length;
|
|
526
|
+
if (e.key === "Escape") {
|
|
527
|
+
e.preventDefault(), this.close(), this.inputElement?.blur();
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
530
|
+
if (e.key === "ArrowDown") {
|
|
531
|
+
if (!this.active) {
|
|
532
|
+
this.show();
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
|
+
t > 0 && (e.preventDefault(), this.highlightedIndex = (this.highlightedIndex + 1) % t);
|
|
536
|
+
return;
|
|
537
|
+
}
|
|
538
|
+
if (e.key === "ArrowUp") {
|
|
539
|
+
t > 0 && this.active && (e.preventDefault(), this.highlightedIndex = this.highlightedIndex <= 0 ? t - 1 : this.highlightedIndex - 1);
|
|
540
|
+
return;
|
|
541
|
+
}
|
|
542
|
+
if (e.key === "Enter") {
|
|
543
|
+
if (this.active && this.highlightedIndex >= 0 && this.highlightedIndex < t) {
|
|
544
|
+
let t = this.suggestions[this.highlightedIndex];
|
|
545
|
+
t !== void 0 && (e.preventDefault(), this.selectSuggestion(t, this.highlightedIndex));
|
|
546
|
+
} else this.emitEvent("search", { value: this.value });
|
|
547
|
+
}
|
|
548
|
+
}, this.handleTriggerClick = (e) => {
|
|
549
|
+
e.stopPropagation(), this.show();
|
|
550
|
+
}, this.handleTriggerKeyDown = (e) => {
|
|
551
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.show());
|
|
552
|
+
}, this.handleLeadingClick = (e) => {
|
|
553
|
+
e.stopPropagation();
|
|
554
|
+
let t = this.effectiveLeadingIcon;
|
|
555
|
+
this.emitEvent("leading-icon-click", { icon: t }) && t === "search" && this.show();
|
|
556
|
+
}, this.handleTrailingClick = (e) => {
|
|
557
|
+
e.stopPropagation();
|
|
558
|
+
let t = this.effectiveTrailingIcon;
|
|
559
|
+
this.emitEvent("trailing-icon-click", { icon: t }) && (t === "search" || this.effectiveSearchIconPosition === "trailing") && (this.active || this.show(), this.emitEvent("search", { value: this.value }));
|
|
560
|
+
}, this.handleTrailingTriggerClick = (e) => {
|
|
561
|
+
e.stopPropagation();
|
|
562
|
+
let t = this.effectiveTrailingIcon;
|
|
563
|
+
this.emitEvent("trailing-icon-click", { icon: t }) && (this.show(), (t === "search" || this.effectiveSearchIconPosition === "trailing") && this.emitEvent("search", { value: this.value }));
|
|
564
|
+
}, this.handleBackClick = (e) => {
|
|
565
|
+
e.stopPropagation(), this.close();
|
|
566
|
+
}, this.handleScrimClick = () => {
|
|
567
|
+
this.close();
|
|
568
|
+
}, this.handleClearClick = (e) => {
|
|
569
|
+
e.stopPropagation(), this.clear();
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
static {
|
|
573
|
+
this.styles = [t.styles, l];
|
|
574
|
+
}
|
|
575
|
+
get effectiveSearchIconPosition() {
|
|
576
|
+
return this.searchIconPosition === "trailing" || this.searchIconPosition === "right" || this.trailingIcon === "search" ? "trailing" : "leading";
|
|
577
|
+
}
|
|
578
|
+
get effectiveLeadingIcon() {
|
|
579
|
+
return this.effectiveSearchIconPosition === "trailing" ? this.leadingIcon && this.leadingIcon !== "search" ? this.leadingIcon : "" : this.leadingIcon || "search";
|
|
580
|
+
}
|
|
581
|
+
get effectiveTrailingIcon() {
|
|
582
|
+
return this.effectiveSearchIconPosition === "trailing" ? this.trailingIcon || "search" : this.trailingIcon;
|
|
583
|
+
}
|
|
584
|
+
get hasContent() {
|
|
585
|
+
return !!(this.suggestions && this.suggestions.length > 0 || this.hasCustomContent);
|
|
586
|
+
}
|
|
587
|
+
connectedCallback() {
|
|
588
|
+
super.connectedCallback(), this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.toggleAttribute("active", this.active), this.toggleAttribute("collapse-on-mobile", this.collapseOnMobile), this.toggleAttribute("has-suggestions", this.hasContent), this.toggleAttribute("has-no-leading", !this.effectiveLeadingIcon && (!this.active || !this.showBackButton || !this.hasContent) && !this.hasLeadingSlotContent);
|
|
589
|
+
}
|
|
590
|
+
willUpdate(e) {
|
|
591
|
+
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), this.toggleAttribute("has-suggestions", this.hasContent), this.toggleAttribute("has-no-leading", !this.effectiveLeadingIcon && (!this.active || !this.showBackButton || !this.hasContent) && !this.hasLeadingSlotContent);
|
|
592
|
+
}
|
|
593
|
+
formResetCallback() {
|
|
594
|
+
this.value = "", this.setFormValue(null), this.toggleAttribute("has-value", !1), this.highlightedIndex = -1;
|
|
595
|
+
}
|
|
596
|
+
focus() {
|
|
597
|
+
this.inputElement?.focus();
|
|
598
|
+
}
|
|
599
|
+
show() {
|
|
600
|
+
this.active || (this.active = !0, this.emitEvent("active-change", { active: !0 })), this.updateComplete.then(() => {
|
|
601
|
+
this.inputElement?.focus();
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
open() {
|
|
605
|
+
this.show();
|
|
606
|
+
}
|
|
607
|
+
close() {
|
|
608
|
+
this.active && (this.active = !1, this.highlightedIndex = -1, this.emitEvent("active-change", { active: !1 }));
|
|
609
|
+
}
|
|
610
|
+
collapse() {
|
|
611
|
+
this.close();
|
|
612
|
+
}
|
|
613
|
+
toggle() {
|
|
614
|
+
this.active ? this.close() : this.show();
|
|
615
|
+
}
|
|
616
|
+
clear() {
|
|
617
|
+
this.value = "", this.setFormValue(""), this.toggleAttribute("has-value", !1), this.highlightedIndex = -1, this.emitEvent("input", { value: "" }), this.emitEvent("clear"), this.inputElement?.focus();
|
|
618
|
+
}
|
|
619
|
+
selectSuggestion(e, t) {
|
|
620
|
+
let n = typeof e == "string" ? e : e.label, r = typeof e == "string" ? e : e.value ?? e.label;
|
|
621
|
+
this.value = r, this.setFormValue(this.value), this.toggleAttribute("has-value", !!this.value), this.emitEvent("suggestion-select", {
|
|
622
|
+
suggestion: e,
|
|
623
|
+
label: n,
|
|
624
|
+
value: r,
|
|
625
|
+
index: t
|
|
626
|
+
}), this.emitEvent("search", {
|
|
627
|
+
value: this.value,
|
|
628
|
+
suggestion: e
|
|
629
|
+
}), this.autoDeactivateOnSelect && this.close();
|
|
630
|
+
}
|
|
631
|
+
renderSuggestionItem(e, t) {
|
|
632
|
+
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;
|
|
633
|
+
return r`
|
|
579
634
|
<div
|
|
580
|
-
class="suggestion-item ${
|
|
635
|
+
class="suggestion-item ${l ? "highlighted" : ""}"
|
|
581
636
|
role="option"
|
|
582
|
-
aria-selected=${
|
|
583
|
-
@click=${() => this.selectSuggestion(
|
|
637
|
+
aria-selected=${l ? "true" : "false"}
|
|
638
|
+
@click=${() => this.selectSuggestion(e, t)}
|
|
584
639
|
>
|
|
585
640
|
<span class="suggestion-icon">
|
|
586
|
-
<md-icon name=${
|
|
641
|
+
<md-icon name=${c}></md-icon>
|
|
587
642
|
</span>
|
|
588
643
|
<div class="suggestion-text">
|
|
589
|
-
<span class="suggestion-label">${
|
|
590
|
-
${
|
|
644
|
+
<span class="suggestion-label">${a}</span>
|
|
645
|
+
${o ? r`<span class="suggestion-supporting">${o}</span>` : i}
|
|
591
646
|
</div>
|
|
592
|
-
${
|
|
647
|
+
${s ? r`<span class="suggestion-trailing">${s}</span>` : i}
|
|
593
648
|
</div>
|
|
594
649
|
`;
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
650
|
+
}
|
|
651
|
+
render() {
|
|
652
|
+
let e = this.fullscreen || this.responsive && typeof window < "u" && window.matchMedia?.("(max-width: 768px)").matches, t = this.active && this.showBackButton && (this.hasContent || e), n = this.effectiveSearchIconPosition, a = this.effectiveLeadingIcon, o = this.effectiveTrailingIcon, s = "search", c = "", l = !1;
|
|
653
|
+
n === "trailing" ? a ? (s = a, c = o || "search", l = !0) : (s = o || "search", l = !1) : (s = a || "search", o && (c = o, l = !0));
|
|
654
|
+
let u = t || !!a || this.hasLeadingSlotContent;
|
|
655
|
+
return r`
|
|
599
656
|
<div
|
|
600
|
-
class="search-trigger-container ${
|
|
657
|
+
class="search-trigger-container ${l ? "has-trailing" : ""}"
|
|
601
658
|
role="button"
|
|
602
659
|
tabindex="0"
|
|
603
660
|
aria-label=${this.placeholder || "Search"}
|
|
@@ -609,49 +666,67 @@ var y = m`
|
|
|
609
666
|
<button
|
|
610
667
|
class="trigger-btn"
|
|
611
668
|
type="button"
|
|
612
|
-
aria-label=${this.placeholder || "Search"}
|
|
613
|
-
title=${this.placeholder || "Search"}
|
|
669
|
+
aria-label=${s === "menu" ? "Menu" : this.placeholder || "Search"}
|
|
670
|
+
title=${s === "menu" ? "Menu" : this.placeholder || "Search"}
|
|
614
671
|
?disabled=${this.disabled}
|
|
615
|
-
@click=${
|
|
672
|
+
@click=${(e) => {
|
|
673
|
+
a && a !== "search" ? this.handleLeadingClick(e) : this.handleTriggerClick(e);
|
|
674
|
+
}}
|
|
616
675
|
>
|
|
617
|
-
<md-
|
|
676
|
+
<md-ripple ?disabled=${this.disabled}></md-ripple>
|
|
677
|
+
<md-focus-ring></md-focus-ring>
|
|
678
|
+
<md-icon name=${s}></md-icon>
|
|
618
679
|
</button>
|
|
619
680
|
|
|
620
|
-
${
|
|
681
|
+
${l ? r`
|
|
621
682
|
<div class="trigger-divider" aria-hidden="true"></div>
|
|
622
683
|
<button
|
|
623
684
|
class="trigger-btn trigger-trailing-btn"
|
|
624
685
|
type="button"
|
|
625
|
-
aria-label=${
|
|
626
|
-
title=${
|
|
686
|
+
aria-label=${c === "search" ? "Search" : c}
|
|
687
|
+
title=${c === "search" ? "Search" : c}
|
|
627
688
|
?disabled=${this.disabled}
|
|
628
689
|
@click=${this.handleTrailingTriggerClick}
|
|
629
690
|
>
|
|
630
|
-
<md-
|
|
691
|
+
<md-ripple ?disabled=${this.disabled}></md-ripple>
|
|
692
|
+
<md-focus-ring></md-focus-ring>
|
|
693
|
+
<md-icon name=${c}></md-icon>
|
|
631
694
|
</button>
|
|
632
|
-
` :
|
|
695
|
+
` : i}
|
|
633
696
|
</div>
|
|
634
697
|
|
|
635
698
|
<div class="scrim" @click=${this.handleScrimClick}></div>
|
|
636
699
|
|
|
637
700
|
<div class="search-container" role="search">
|
|
638
701
|
<div class="search-bar-header">
|
|
639
|
-
<span class="leading-slot">
|
|
640
|
-
<slot name="leading
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
702
|
+
<span class="leading-slot ${u ? "" : "empty"}">
|
|
703
|
+
<slot name="leading" @slotchange=${this.handleLeadingSlotChange}>
|
|
704
|
+
<slot name="leading-icon" @slotchange=${this.handleLeadingSlotChange}>
|
|
705
|
+
${t ? r`
|
|
706
|
+
<button
|
|
707
|
+
class="icon-btn back-btn"
|
|
708
|
+
type="button"
|
|
709
|
+
aria-label="Back"
|
|
710
|
+
@click=${this.handleBackClick}
|
|
711
|
+
>
|
|
712
|
+
<md-ripple ?disabled=${this.disabled}></md-ripple>
|
|
713
|
+
<md-focus-ring></md-focus-ring>
|
|
714
|
+
<md-icon name=${this.activeLeadingIcon}></md-icon>
|
|
715
|
+
</button>
|
|
716
|
+
` : a ? r`
|
|
717
|
+
<button
|
|
718
|
+
class="icon-btn leading-btn"
|
|
719
|
+
type="button"
|
|
720
|
+
aria-label=${a === "menu" ? "Menu" : a}
|
|
721
|
+
?disabled=${this.disabled}
|
|
722
|
+
@click=${this.handleLeadingClick}
|
|
723
|
+
>
|
|
724
|
+
<md-ripple ?disabled=${this.disabled}></md-ripple>
|
|
725
|
+
<md-focus-ring></md-focus-ring>
|
|
726
|
+
<md-icon name=${a}></md-icon>
|
|
727
|
+
</button>
|
|
728
|
+
` : i}
|
|
729
|
+
</slot>
|
|
655
730
|
</slot>
|
|
656
731
|
</span>
|
|
657
732
|
|
|
@@ -681,95 +756,98 @@ var y = m`
|
|
|
681
756
|
aria-label="Clear search"
|
|
682
757
|
@click=${this.handleClearClick}
|
|
683
758
|
>
|
|
759
|
+
<md-ripple ?disabled=${this.disabled}></md-ripple>
|
|
760
|
+
<md-focus-ring></md-focus-ring>
|
|
684
761
|
<md-icon name="close"></md-icon>
|
|
685
762
|
</button>
|
|
686
|
-
` :
|
|
687
|
-
|
|
688
|
-
<slot name="trailing
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
<
|
|
692
|
-
|
|
693
|
-
|
|
763
|
+
` : i}
|
|
764
|
+
|
|
765
|
+
<slot name="trailing">
|
|
766
|
+
<slot name="trailing-icon">
|
|
767
|
+
${o ? r`
|
|
768
|
+
<button
|
|
769
|
+
class="icon-btn trailing-btn"
|
|
770
|
+
type="button"
|
|
771
|
+
aria-label=${o === "search" ? "Search" : o}
|
|
772
|
+
?disabled=${this.disabled}
|
|
773
|
+
@click=${this.handleTrailingClick}
|
|
774
|
+
>
|
|
775
|
+
<md-ripple ?disabled=${this.disabled}></md-ripple>
|
|
776
|
+
<md-focus-ring></md-focus-ring>
|
|
777
|
+
<md-icon name=${o}></md-icon>
|
|
778
|
+
</button>
|
|
779
|
+
` : i}
|
|
780
|
+
</slot>
|
|
694
781
|
</slot>
|
|
695
782
|
</span>
|
|
696
783
|
</div>
|
|
697
784
|
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
785
|
+
${this.hasContent ? r`
|
|
786
|
+
<div class="divider"></div>
|
|
787
|
+
|
|
788
|
+
<div class="suggestions-container" role="listbox" aria-label="Suggestions">
|
|
789
|
+
<slot name="suggestions" @slotchange=${this.handleContentSlotChange}>
|
|
790
|
+
${this.suggestions.map((e, t) => this.renderSuggestionItem(e, t))}
|
|
791
|
+
</slot>
|
|
792
|
+
<div class="extra-content">
|
|
793
|
+
<slot @slotchange=${this.handleContentSlotChange}></slot>
|
|
794
|
+
</div>
|
|
795
|
+
</div>
|
|
796
|
+
` : r`
|
|
797
|
+
<div class="extra-content" style="display: none;">
|
|
798
|
+
<slot name="suggestions" @slotchange=${this.handleContentSlotChange}></slot>
|
|
799
|
+
<slot @slotchange=${this.handleContentSlotChange}></slot>
|
|
800
|
+
</div>
|
|
801
|
+
`}
|
|
708
802
|
</div>
|
|
709
803
|
`;
|
|
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 {
|
|
804
|
+
}
|
|
768
805
|
};
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
806
|
+
e([o({
|
|
807
|
+
type: String,
|
|
808
|
+
reflect: !0
|
|
809
|
+
})], u.prototype, "size", void 0), e([o({
|
|
810
|
+
type: Boolean,
|
|
811
|
+
reflect: !0
|
|
812
|
+
})], 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({
|
|
813
|
+
type: Boolean,
|
|
814
|
+
reflect: !0
|
|
815
|
+
})], u.prototype, "active", void 0), e([o({ type: Array })], u.prototype, "suggestions", void 0), e([o({
|
|
816
|
+
type: String,
|
|
817
|
+
attribute: "search-icon-position",
|
|
818
|
+
reflect: !0
|
|
819
|
+
})], u.prototype, "searchIconPosition", void 0), e([o({
|
|
820
|
+
type: String,
|
|
821
|
+
attribute: "leading-icon"
|
|
822
|
+
})], u.prototype, "leadingIcon", void 0), e([o({
|
|
823
|
+
type: String,
|
|
824
|
+
attribute: "active-leading-icon"
|
|
825
|
+
})], u.prototype, "activeLeadingIcon", void 0), e([o({
|
|
826
|
+
type: String,
|
|
827
|
+
attribute: "trailing-icon"
|
|
828
|
+
})], u.prototype, "trailingIcon", void 0), e([o({
|
|
829
|
+
type: Boolean,
|
|
830
|
+
attribute: "show-back-button"
|
|
831
|
+
})], u.prototype, "showBackButton", void 0), e([o({
|
|
832
|
+
type: Boolean,
|
|
833
|
+
attribute: "show-clear-button"
|
|
834
|
+
})], u.prototype, "showClearButton", void 0), e([o({
|
|
835
|
+
type: Boolean,
|
|
836
|
+
reflect: !0
|
|
837
|
+
})], u.prototype, "responsive", void 0), e([o({
|
|
838
|
+
type: Boolean,
|
|
839
|
+
attribute: "collapse-on-mobile",
|
|
840
|
+
reflect: !0
|
|
841
|
+
})], u.prototype, "collapseOnMobile", void 0), e([o({
|
|
842
|
+
type: Boolean,
|
|
843
|
+
reflect: !0
|
|
844
|
+
})], u.prototype, "fullscreen", void 0), e([o({
|
|
845
|
+
type: Boolean,
|
|
846
|
+
attribute: "auto-deactivate-on-select"
|
|
847
|
+
})], u.prototype, "autoDeactivateOnSelect", void 0), e([c()], u.prototype, "highlightedIndex", void 0), e([c()], u.prototype, "hasLeadingSlotContent", void 0), e([s("input")], u.prototype, "inputElement", void 0), e([c()], u.prototype, "hasCustomContent", void 0), u = e([a("md-search-bar")], u);
|
|
848
|
+
var d = class extends u {};
|
|
849
|
+
d = e([a("md-search")], d);
|
|
850
|
+
//#endregion
|
|
851
|
+
export { u as n, d as t };
|
|
852
|
+
|
|
853
|
+
//# sourceMappingURL=search-bar-B4lAXza_.js.map
|