@covalent/components 8.23.2 → 9.0.0-beta.2
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/{_commonjsHelpers-2f131a27.mjs → _commonjsHelpers-DjF3Plf2.mjs} +2 -4
- package/action-ribbon.js +5 -6
- package/action-ribbon.mjs +47 -51
- package/alert.js +5 -6
- package/alert.mjs +48 -52
- package/app-shell.js +1 -2
- package/app-shell.mjs +13 -30
- package/{async-directive-99a01ec7.mjs → async-directive-Cx1B9M5C.mjs} +11 -23
- package/{async-directive-4a34f75e.js → async-directive-y3fBDDSk.js} +1 -1
- package/badge.js +1 -2
- package/badge.mjs +10 -12
- package/{base-element-acf30176.mjs → base-element-C-U4OfWx.mjs} +2 -2
- package/{base-element-58a3f9ea.js → base-element-aUDWLn36.js} +1 -1
- package/button.js +2 -3
- package/button.mjs +18 -23
- package/card.js +8 -9
- package/card.mjs +36 -38
- package/check-list-item.js +11 -15
- package/check-list-item.mjs +53 -70
- package/checkbox.js +1 -2
- package/checkbox.mjs +15 -31
- package/{chip-c65a4549.js → chip-BsDYOEFW.js} +31 -32
- package/{chip-fb0ea5c5.mjs → chip-C8L37ovG.mjs} +110 -117
- package/chip-set.js +5 -6
- package/chip-set.mjs +73 -83
- package/chip.js +1 -1
- package/chip.mjs +4 -13
- package/circular-progress.js +1 -1
- package/circular-progress.mjs +9 -10
- package/{class-map-6e504a9a.mjs → class-map-C1SJpero.mjs} +4 -6
- package/{class-map-0a4c6ca9.js → class-map-C8G1ALWK.js} +1 -1
- package/{code-editor-712d0ce9.mjs → code-editor-CxQzms2S.mjs} +13485 -13720
- package/code-editor-hT6MTCL6.js +660 -0
- package/code-editor.js +1 -1
- package/code-editor.mjs +3 -6
- package/code-snippet.js +5 -6
- package/code-snippet.mjs +235 -284
- package/{dialog-78a9fd0e.mjs → dialog-BoNH4r3n.mjs} +23 -25
- package/{dialog-83104700.js → dialog-LUOzoMeO.js} +6 -7
- package/dialog.js +1 -1
- package/dialog.mjs +4 -13
- package/directive-C7oCP5Bh.js +5 -0
- package/{directive-helpers-e3ea6592.mjs → directive-helpers-CllkNDrI.mjs} +1 -1
- package/{directive-helpers-0ce1f995.js → directive-helpers-Duf3sfLn.js} +1 -1
- package/{directive-daf4e9b6.mjs → directive-oAbCiebi.mjs} +4 -4
- package/drawer.js +2 -3
- package/drawer.mjs +7 -17
- package/empty-state.js +2 -3
- package/empty-state.mjs +12 -15
- package/{event-options-3f5eb195.js → event-options-BH8ks-kz.js} +1 -1
- package/{event-options-78d6cf94.mjs → event-options-CNykeE2u.mjs} +1 -1
- package/expansion-panel-item.js +1 -2
- package/expansion-panel-item.mjs +6 -9
- package/expansion-panel.js +1 -1
- package/expansion-panel.mjs +2 -2
- package/focused-page.js +1 -2
- package/focused-page.mjs +13 -16
- package/{form-element-abadd335.mjs → form-element-CxSqbssX.mjs} +4 -4
- package/{form-element-c553d6f5.js → form-element-DwqUbs65.js} +1 -1
- package/formfield.js +6 -7
- package/formfield.mjs +19 -23
- package/{foundation-e980aa3d.js → foundation-CySCCTUE.js} +3 -3
- package/{foundation-d533452a.mjs → foundation-qQ4jzaAu.mjs} +11 -13
- package/full-screen-dialog.js +4 -5
- package/full-screen-dialog.mjs +13 -22
- package/{html-021d0b5b.mjs → html-BFM6gjw5.mjs} +13 -18
- package/html-BMgGKfr0.js +6 -0
- package/icon-button-toggle.js +11 -16
- package/icon-button-toggle.mjs +68 -78
- package/icon-button.js +6 -11
- package/icon-button.mjs +56 -66
- package/icon-check-toggle.js +6 -7
- package/icon-check-toggle.mjs +10 -23
- package/icon-radio-toggle.js +4 -5
- package/icon-radio-toggle.mjs +13 -29
- package/icon.js +1 -5
- package/icon.mjs +13 -20
- package/{if-defined-c367f208.mjs → if-defined-BsNkRMMG.mjs} +1 -1
- package/{if-defined-f1c45245.js → if-defined-D8C6ewRn.js} +1 -1
- package/index.js +1 -1
- package/index.mjs +110 -150
- package/{inert.esm-359d4581.mjs → inert.esm-BJ7IrRxy.mjs} +3 -4
- package/{javascript-5b83986c.js → javascript-20JK5_5Y.js} +1 -1
- package/{javascript-d2604785.mjs → javascript-BVQ0GGQP.mjs} +4 -10
- package/linear-progress.js +2 -3
- package/linear-progress.mjs +12 -14
- package/list-item-BZVW1fmJ.js +5 -0
- package/list-item-DCzzLVZh.mjs +11 -0
- package/list-item.js +5 -5
- package/list-item.mjs +21 -32
- package/list.js +3 -8
- package/list.mjs +18 -38
- package/menu.js +3 -8
- package/menu.mjs +18 -39
- package/{mwc-checkbox.css-b3434429.js → mwc-checkbox.css-Cd0yCOHu.js} +42 -2
- package/{mwc-checkbox.css-8f4f1a9b.mjs → mwc-checkbox.css-MBOzkrQg.mjs} +198 -3
- package/{mwc-drawer-base-bbae43c3.js → mwc-drawer-base-D-48lqfn.js} +5 -5
- package/{mwc-drawer-base-ca75f41f.mjs → mwc-drawer-base-Dgs9327G.mjs} +24 -26
- package/{mwc-icon-5227aec3.mjs → mwc-icon-BZRds8SY.mjs} +6 -5
- package/{mwc-icon-f87639bc.js → mwc-icon-BumH81hp.js} +2 -2
- package/mwc-icon-button.css-BtgKBOl3.js +5 -0
- package/mwc-icon-button.css-DJMY7U7e.mjs +10 -0
- package/{mwc-line-ripple-directive-40145003.js → mwc-line-ripple-directive-DvPWr3ER.js} +1 -1
- package/{mwc-line-ripple-directive-aabd8778.mjs → mwc-line-ripple-directive-zhm5Zc8i.mjs} +7 -7
- package/{list-item-8b940ec8.js → mwc-list-item.css-CtRq5wSu.js} +28 -6
- package/{list-item-ef175b93.mjs → mwc-list-item.css-g34xqhLC.mjs} +199 -9
- package/mwc-list.css-CaMJWsDp.js +111 -0
- package/{mwc-list-base-402e1d8e.mjs → mwc-list.css-DFOdJyFB.mjs} +213 -213
- package/{mwc-menu-base-04586160.mjs → mwc-menu.css-BEiPghgR.mjs} +90 -92
- package/{mwc-menu-base-08f54c38.js → mwc-menu.css-pxcxlTrh.js} +22 -22
- package/mwc-radio.css-CVMtIq-L.js +105 -0
- package/{mwc-radio-base-768b4221.mjs → mwc-radio.css-XRx0vL1k.mjs} +124 -118
- package/{mwc-slider.css-cda43bd0.mjs → mwc-slider.css-2Bqk43z7.mjs} +200 -211
- package/{mwc-slider.css-c5f99704.js → mwc-slider.css-WrkrmqkL.js} +6 -6
- package/{mwc-tab-base-0814a3ef.mjs → mwc-tab.css-B9yQpkYf.mjs} +126 -122
- package/{mwc-tab-base-f2269fd1.js → mwc-tab.css-CgdXMZBB.js} +26 -22
- package/{mwc-top-app-bar-base-8a7f7312.mjs → mwc-top-app-bar-base-B0EW9eNk.mjs} +13 -15
- package/{mwc-top-app-bar-base-8c8cde51.js → mwc-top-app-bar-base-CSXRBOiX.js} +3 -3
- package/nav-list-item.js +4 -5
- package/nav-list-item.mjs +12 -23
- package/notebook-cell.js +8 -9
- package/notebook-cell.mjs +14 -29
- package/package.json +1 -1
- package/python-B8sEpp0H.js +6 -0
- package/{python-0707b744.mjs → python-BRZC-1dQ.mjs} +11 -16
- package/query-BBDQWsft.mjs +15 -0
- package/query-BxDs8ftQ.js +5 -0
- package/{query-assigned-elements-4a39219d.mjs → query-assigned-elements-DCt2xozt.mjs} +32 -57
- package/{query-assigned-nodes-df691e78.mjs → query-assigned-nodes-B9zBfkh6.mjs} +1 -1
- package/{query-assigned-nodes-99eae71d.js → query-assigned-nodes-CckKHm2z.js} +1 -1
- package/radio-list-item.js +9 -13
- package/radio-list-item.mjs +50 -66
- package/radio.js +1 -2
- package/radio.mjs +15 -32
- package/{ripple-handlers-9fb4a31a.js → ripple-handlers-CzfSBjWo.js} +8 -8
- package/{ripple-handlers-8883e893.mjs → ripple-handlers-i3WPEBiO.mjs} +20 -25
- package/select.js +15 -20
- package/select.mjs +196 -213
- package/side-sheet.js +1 -2
- package/side-sheet.mjs +18 -27
- package/slider-range.js +1 -1
- package/slider-range.mjs +15 -19
- package/slider.js +1 -1
- package/slider.mjs +18 -26
- package/snackbar.js +9 -10
- package/snackbar.mjs +30 -33
- package/{state-0974a8e5.js → state-C3HoXfoa.js} +1 -1
- package/{state-b5e865db.mjs → state-DaD9o2aK.mjs} +1 -1
- package/status-dialog/status-dialog.d.ts.map +1 -1
- package/status-dialog.js +15 -37
- package/status-dialog.mjs +47 -116
- package/status-header-item.js +1 -2
- package/status-header-item.mjs +7 -8
- package/status-header.js +4 -5
- package/status-header.mjs +22 -24
- package/{style-map-a135c6ab.js → style-map-BJBXlSqn.js} +1 -1
- package/{style-map-e7ec6d41.mjs → style-map-CCsABR5m.mjs} +4 -6
- package/style.css +1 -1
- package/switch.js +6 -7
- package/switch.mjs +20 -29
- package/tab-bar.js +18 -22
- package/tab-bar.mjs +192 -205
- package/tab.js +1 -6
- package/tab.mjs +13 -31
- package/text-lockup.js +1 -2
- package/text-lockup.mjs +14 -16
- package/textarea.js +15 -19
- package/textarea.mjs +53 -68
- package/textfield-BwmiygD8.js +136 -0
- package/textfield-C6sUZIeA.mjs +927 -0
- package/textfield.js +3 -7
- package/textfield.mjs +17 -37
- package/toolbar.js +1 -2
- package/toolbar.mjs +6 -13
- package/tooltip.js +3 -4
- package/tooltip.mjs +29 -40
- package/{top-app-bar-f83386e0.mjs → top-app-bar-4SA3DjLX.mjs} +2 -3
- package/{top-app-bar-a531c1b4.js → top-app-bar-CGjBuyiD.js} +2 -3
- package/top-app-bar-fixed.js +6 -6
- package/top-app-bar-fixed.mjs +24 -32
- package/top-app-bar.js +3 -3
- package/top-app-bar.mjs +18 -25
- package/tree-list-item.js +1 -2
- package/tree-list-item.mjs +9 -13
- package/tree-list.js +1 -2
- package/tree-list.mjs +6 -7
- package/{tslib.es6-c4b0f3b1.mjs → tslib.es6-pPsSiLLK.mjs} +15 -26
- package/typescript-CqVUCaiQ.js +6 -0
- package/{typescript-399a453a.mjs → typescript-qqbekFoQ.mjs} +10 -15
- package/typography.js +1 -2
- package/typography.mjs +7 -8
- package/code-editor-b36fad77.js +0 -662
- package/directive-1186bc23.js +0 -5
- package/html-b2900c6a.js +0 -6
- package/mwc-checkbox-base-02b4eb91.mjs +0 -198
- package/mwc-checkbox-base-935d9566.js +0 -41
- package/mwc-list-base-22616d0a.js +0 -111
- package/mwc-list-item-base-06d93e6e.js +0 -28
- package/mwc-list-item-base-3c6a3bfb.mjs +0 -202
- package/mwc-radio-base-147cf999.js +0 -101
- package/mwc-radio.css-4e140252.js +0 -5
- package/mwc-radio.css-7454bb11.mjs +0 -10
- package/python-6a1f2ad7.js +0 -6
- package/query-680f1868.js +0 -5
- package/query-d843aa92.mjs +0 -25
- package/textfield-83e78e56.js +0 -133
- package/textfield-853ebae5.mjs +0 -933
- package/typescript-98fbdb3d.js +0 -6
- /package/{_commonjsHelpers-2367a3a2.js → _commonjsHelpers-6jR-N8xe.js} +0 -0
- /package/{aria-property-fa2717fe.mjs → aria-property-6O5bK0tV.mjs} +0 -0
- /package/{aria-property-849c8816.js → aria-property-Dl2ZKBbP.js} +0 -0
- /package/{css-9be95551.js → css-Bn4le2Sp.js} +0 -0
- /package/{css-5dd354ac.mjs → css-DjwjINlv.mjs} +0 -0
- /package/{foundation-2334d146.mjs → foundation-PL3XY-m_.mjs} +0 -0
- /package/{foundation-e830bd94.js → foundation-pgmPu2iJ.js} +0 -0
- /package/{inert.esm-2cee6f2e.js → inert.esm-CNFtJ8pb.js} +0 -0
- /package/{keyboard-983b121c.mjs → keyboard-BLpVBEDM.mjs} +0 -0
- /package/{keyboard-39125691.js → keyboard-CZlaSOb1.js} +0 -0
- /package/{markdown-eae8e3ba.js → markdown-CrnizovQ.js} +0 -0
- /package/{markdown-9b448c46.mjs → markdown-bAu8rWEZ.mjs} +0 -0
- /package/{observer-be7b92e2.mjs → observer-DQ8OfVDQ.mjs} +0 -0
- /package/{observer-a096ab43.js → observer-N9cgkDqh.js} +0 -0
- /package/{property-9b6ea53b.mjs → property-DJzm_oB9.mjs} +0 -0
- /package/{property-57f6f6fe.js → property-DYTC_2-m.js} +0 -0
- /package/{query-assigned-elements-f623705d.js → query-assigned-elements-4CafVNR8.js} +0 -0
- /package/{r-42c6f0aa.js → r-DKABafMl.js} +0 -0
- /package/{r-630f5d6b.mjs → r-rF4J5dF2.mjs} +0 -0
- /package/{sql-63ec8e76.mjs → sql-CL8qgBkR.mjs} +0 -0
- /package/{sql-faf05577.js → sql-CXm05EUD.js} +0 -0
- /package/{tslib.es6-98719205.js → tslib.es6-CHeFCc6E.js} +0 -0
- /package/{utils-dc65fdc9.mjs → utils-Dr5MegQq.mjs} +0 -0
- /package/{utils-a8190a39.js → utils-wMBJ9n_n.js} +0 -0
@@ -1,30 +1,24 @@
|
|
1
|
-
import { _ as
|
2
|
-
import {
|
3
|
-
import { L as
|
4
|
-
import { B as
|
5
|
-
import { o as
|
6
|
-
import { i as
|
7
|
-
import { n as
|
8
|
-
import { i as
|
9
|
-
import { o as
|
10
|
-
import { l as U } from "./if-defined-
|
11
|
-
/**
|
12
|
-
* @license
|
13
|
-
* Copyright 2021 Google LLC
|
14
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
15
|
-
*/
|
16
|
-
const j = z`:host{cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;height:48px;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mdc-list-side-padding, 16px);padding-right:var(--mdc-list-side-padding, 16px);outline:none;height:48px;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host:focus{outline:none}:host([activated]){color:#6200ee;color:var(--mdc-theme-primary, #6200ee);--mdc-ripple-color: var( --mdc-theme-primary, #6200ee )}:host([activated]) .mdc-deprecated-list-item__graphic{color:#6200ee;color:var(--mdc-theme-primary, #6200ee)}:host([activated]) .fake-activated-ripple::before{position:absolute;display:block;top:0;bottom:0;left:0;right:0;width:100%;height:100%;pointer-events:none;z-index:1;content:"";opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12);background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-deprecated-list-item__graphic{flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;display:inline-flex}.mdc-deprecated-list-item__graphic ::slotted(*){flex-shrink:0;align-items:center;justify-content:center;fill:currentColor;width:100%;height:100%;text-align:center}.mdc-deprecated-list-item__meta{width:var(--mdc-list-item-meta-size, 24px);height:var(--mdc-list-item-meta-size, 24px);margin-left:auto;margin-right:0;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-item__meta.multi{width:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:var(--mdc-list-item-meta-size, 24px);line-height:var(--mdc-list-item-meta-size, 24px)}.mdc-deprecated-list-item__meta ::slotted(.material-icons),.mdc-deprecated-list-item__meta ::slotted(mwc-icon){line-height:var(--mdc-list-item-meta-size, 24px) !important}.mdc-deprecated-list-item__meta ::slotted(:not(.material-icons):not(mwc-icon)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.75rem;font-size:var(--mdc-typography-caption-font-size, 0.75rem);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}[dir=rtl] .mdc-deprecated-list-item__meta,.mdc-deprecated-list-item__meta[dir=rtl]{margin-left:0;margin-right:auto}.mdc-deprecated-list-item__meta ::slotted(*){width:100%;height:100%}.mdc-deprecated-list-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-deprecated-list-item__text ::slotted([for]),.mdc-deprecated-list-item__text[for]{pointer-events:none}.mdc-deprecated-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;margin-bottom:-20px;display:block}.mdc-deprecated-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-deprecated-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-deprecated-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal;display:block}.mdc-deprecated-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__secondary-text{font-size:inherit}* ::slotted(a),a{color:inherit;text-decoration:none}:host([twoline]){height:72px}:host([twoline]) .mdc-deprecated-list-item__text{align-self:flex-start}:host([disabled]),:host([noninteractive]){cursor:default;pointer-events:none}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*){opacity:.38}:host([disabled]) .mdc-deprecated-list-item__text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__primary-text ::slotted(*),:host([disabled]) .mdc-deprecated-list-item__secondary-text ::slotted(*){color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-deprecated-list-item__secondary-text ::slotted(*){color:rgba(0, 0, 0, 0.54);color:var(--mdc-theme-text-secondary-on-background, rgba(0, 0, 0, 0.54))}.mdc-deprecated-list-item__graphic ::slotted(*){background-color:transparent;color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38))}.mdc-deprecated-list-group__subheader ::slotted(*){color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 40px);height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 40px);line-height:var(--mdc-list-item-graphic-size, 40px)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 40px) !important}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic ::slotted(*){border-radius:50%}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic,:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic,:host([graphic=control]) .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 16px)}[dir=rtl] :host([graphic=avatar]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=medium]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=large]) .mdc-deprecated-list-item__graphic,[dir=rtl] :host([graphic=control]) .mdc-deprecated-list-item__graphic,:host([graphic=avatar]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=medium]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=large]) .mdc-deprecated-list-item__graphic[dir=rtl],:host([graphic=control]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 16px);margin-right:0}:host([graphic=icon]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 24px);height:var(--mdc-list-item-graphic-size, 24px);margin-left:0;margin-right:var(--mdc-list-item-graphic-margin, 32px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 24px);line-height:var(--mdc-list-item-graphic-size, 24px)}:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=icon]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 24px) !important}[dir=rtl] :host([graphic=icon]) .mdc-deprecated-list-item__graphic,:host([graphic=icon]) .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:var(--mdc-list-item-graphic-margin, 32px);margin-right:0}:host([graphic=avatar]:not([twoLine])),:host([graphic=icon]:not([twoLine])){height:56px}:host([graphic=medium]:not([twoLine])),:host([graphic=large]:not([twoLine])){height:72px}:host([graphic=medium]) .mdc-deprecated-list-item__graphic,:host([graphic=large]) .mdc-deprecated-list-item__graphic{width:var(--mdc-list-item-graphic-size, 56px);height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic.multi,:host([graphic=large]) .mdc-deprecated-list-item__graphic.multi{width:auto}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(*),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(*){width:var(--mdc-list-item-graphic-size, 56px);line-height:var(--mdc-list-item-graphic-size, 56px)}:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=medium]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(.material-icons),:host([graphic=large]) .mdc-deprecated-list-item__graphic ::slotted(mwc-icon){line-height:var(--mdc-list-item-graphic-size, 56px) !important}:host([graphic=large]){padding-left:0px}`;
|
1
|
+
import { _ as h } from "./tslib.es6-pPsSiLLK.mjs";
|
2
|
+
import { e as k, x as P, i as H } from "./query-assigned-elements-DCt2xozt.mjs";
|
3
|
+
import { L as K, s as V } from "./mwc-list-item.css-g34xqhLC.mjs";
|
4
|
+
import { B as X } from "./base-element-C-U4OfWx.mjs";
|
5
|
+
import { o as y } from "./observer-DQ8OfVDQ.mjs";
|
6
|
+
import { i as G, b as z, d as $ } from "./utils-Dr5MegQq.mjs";
|
7
|
+
import { n as A } from "./property-DJzm_oB9.mjs";
|
8
|
+
import { i as j } from "./query-BBDQWsft.mjs";
|
9
|
+
import { o as W } from "./query-assigned-nodes-B9zBfkh6.mjs";
|
10
|
+
import { l as U } from "./if-defined-BsNkRMMG.mjs";
|
17
11
|
/**
|
18
12
|
* @license
|
19
13
|
* Copyright 2020 Google LLC
|
20
14
|
* SPDX-License-Identifier: Apache-2.0
|
21
15
|
*/
|
22
|
-
let
|
16
|
+
let D = class extends K {
|
23
17
|
};
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
],
|
18
|
+
D.styles = [V];
|
19
|
+
D = h([
|
20
|
+
k("mwc-list-item")
|
21
|
+
], D);
|
28
22
|
/**
|
29
23
|
* @license
|
30
24
|
* Copyright 2016 Google Inc.
|
@@ -50,36 +44,36 @@ F = p([
|
|
50
44
|
var Y = (
|
51
45
|
/** @class */
|
52
46
|
function() {
|
53
|
-
function
|
47
|
+
function n(e) {
|
54
48
|
e === void 0 && (e = {}), this.adapter = e;
|
55
49
|
}
|
56
|
-
return Object.defineProperty(
|
50
|
+
return Object.defineProperty(n, "cssClasses", {
|
57
51
|
get: function() {
|
58
52
|
return {};
|
59
53
|
},
|
60
54
|
enumerable: !1,
|
61
55
|
configurable: !0
|
62
|
-
}), Object.defineProperty(
|
56
|
+
}), Object.defineProperty(n, "strings", {
|
63
57
|
get: function() {
|
64
58
|
return {};
|
65
59
|
},
|
66
60
|
enumerable: !1,
|
67
61
|
configurable: !0
|
68
|
-
}), Object.defineProperty(
|
62
|
+
}), Object.defineProperty(n, "numbers", {
|
69
63
|
get: function() {
|
70
64
|
return {};
|
71
65
|
},
|
72
66
|
enumerable: !1,
|
73
67
|
configurable: !0
|
74
|
-
}), Object.defineProperty(
|
68
|
+
}), Object.defineProperty(n, "defaultAdapter", {
|
75
69
|
get: function() {
|
76
70
|
return {};
|
77
71
|
},
|
78
72
|
enumerable: !1,
|
79
73
|
configurable: !0
|
80
|
-
}),
|
81
|
-
},
|
82
|
-
},
|
74
|
+
}), n.prototype.init = function() {
|
75
|
+
}, n.prototype.destroy = function() {
|
76
|
+
}, n;
|
83
77
|
}()
|
84
78
|
);
|
85
79
|
/**
|
@@ -104,7 +98,7 @@ var Y = (
|
|
104
98
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
105
99
|
* THE SOFTWARE.
|
106
100
|
*/
|
107
|
-
var
|
101
|
+
var d = {
|
108
102
|
UNKNOWN: "Unknown",
|
109
103
|
BACKSPACE: "Backspace",
|
110
104
|
ENTER: "Enter",
|
@@ -120,22 +114,22 @@ var a = {
|
|
120
114
|
DELETE: "Delete",
|
121
115
|
ESCAPE: "Escape",
|
122
116
|
TAB: "Tab"
|
123
|
-
},
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
var
|
117
|
+
}, l = /* @__PURE__ */ new Set();
|
118
|
+
l.add(d.BACKSPACE);
|
119
|
+
l.add(d.ENTER);
|
120
|
+
l.add(d.SPACEBAR);
|
121
|
+
l.add(d.PAGE_UP);
|
122
|
+
l.add(d.PAGE_DOWN);
|
123
|
+
l.add(d.END);
|
124
|
+
l.add(d.HOME);
|
125
|
+
l.add(d.ARROW_LEFT);
|
126
|
+
l.add(d.ARROW_UP);
|
127
|
+
l.add(d.ARROW_RIGHT);
|
128
|
+
l.add(d.ARROW_DOWN);
|
129
|
+
l.add(d.DELETE);
|
130
|
+
l.add(d.ESCAPE);
|
131
|
+
l.add(d.TAB);
|
132
|
+
var u = {
|
139
133
|
BACKSPACE: 8,
|
140
134
|
ENTER: 13,
|
141
135
|
SPACEBAR: 32,
|
@@ -150,36 +144,36 @@ var h = {
|
|
150
144
|
DELETE: 46,
|
151
145
|
ESCAPE: 27,
|
152
146
|
TAB: 9
|
153
|
-
},
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
var
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
function
|
178
|
-
var e =
|
179
|
-
if (
|
147
|
+
}, c = /* @__PURE__ */ new Map();
|
148
|
+
c.set(u.BACKSPACE, d.BACKSPACE);
|
149
|
+
c.set(u.ENTER, d.ENTER);
|
150
|
+
c.set(u.SPACEBAR, d.SPACEBAR);
|
151
|
+
c.set(u.PAGE_UP, d.PAGE_UP);
|
152
|
+
c.set(u.PAGE_DOWN, d.PAGE_DOWN);
|
153
|
+
c.set(u.END, d.END);
|
154
|
+
c.set(u.HOME, d.HOME);
|
155
|
+
c.set(u.ARROW_LEFT, d.ARROW_LEFT);
|
156
|
+
c.set(u.ARROW_UP, d.ARROW_UP);
|
157
|
+
c.set(u.ARROW_RIGHT, d.ARROW_RIGHT);
|
158
|
+
c.set(u.ARROW_DOWN, d.ARROW_DOWN);
|
159
|
+
c.set(u.DELETE, d.DELETE);
|
160
|
+
c.set(u.ESCAPE, d.ESCAPE);
|
161
|
+
c.set(u.TAB, d.TAB);
|
162
|
+
var g = /* @__PURE__ */ new Set();
|
163
|
+
g.add(d.PAGE_UP);
|
164
|
+
g.add(d.PAGE_DOWN);
|
165
|
+
g.add(d.END);
|
166
|
+
g.add(d.HOME);
|
167
|
+
g.add(d.ARROW_LEFT);
|
168
|
+
g.add(d.ARROW_UP);
|
169
|
+
g.add(d.ARROW_RIGHT);
|
170
|
+
g.add(d.ARROW_DOWN);
|
171
|
+
function S(n) {
|
172
|
+
var e = n.key;
|
173
|
+
if (l.has(e))
|
180
174
|
return e;
|
181
|
-
var t =
|
182
|
-
return t ||
|
175
|
+
var t = c.get(n.keyCode);
|
176
|
+
return t || d.UNKNOWN;
|
183
177
|
}
|
184
178
|
/**
|
185
179
|
* @license
|
@@ -203,7 +197,7 @@ function A(r) {
|
|
203
197
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
204
198
|
* THE SOFTWARE.
|
205
199
|
*/
|
206
|
-
var
|
200
|
+
var T, _, r = {
|
207
201
|
LIST_ITEM_ACTIVATED_CLASS: "mdc-list-item--activated",
|
208
202
|
LIST_ITEM_CLASS: "mdc-list-item",
|
209
203
|
LIST_ITEM_DISABLED_CLASS: "mdc-list-item--disabled",
|
@@ -212,8 +206,8 @@ var x, E, n = {
|
|
212
206
|
LIST_ITEM_PRIMARY_TEXT_CLASS: "mdc-list-item__primary-text",
|
213
207
|
ROOT: "mdc-list"
|
214
208
|
};
|
215
|
-
|
216
|
-
var
|
209
|
+
T = {}, T["" + r.LIST_ITEM_ACTIVATED_CLASS] = "mdc-list-item--activated", T["" + r.LIST_ITEM_CLASS] = "mdc-list-item", T["" + r.LIST_ITEM_DISABLED_CLASS] = "mdc-list-item--disabled", T["" + r.LIST_ITEM_SELECTED_CLASS] = "mdc-list-item--selected", T["" + r.LIST_ITEM_PRIMARY_TEXT_CLASS] = "mdc-list-item__primary-text", T["" + r.ROOT] = "mdc-list";
|
210
|
+
var L = (_ = {}, _["" + r.LIST_ITEM_ACTIVATED_CLASS] = "mdc-deprecated-list-item--activated", _["" + r.LIST_ITEM_CLASS] = "mdc-deprecated-list-item", _["" + r.LIST_ITEM_DISABLED_CLASS] = "mdc-deprecated-list-item--disabled", _["" + r.LIST_ITEM_SELECTED_CLASS] = "mdc-deprecated-list-item--selected", _["" + r.LIST_ITEM_TEXT_CLASS] = "mdc-deprecated-list-item__text", _["" + r.LIST_ITEM_PRIMARY_TEXT_CLASS] = "mdc-deprecated-list-item__primary-text", _["" + r.ROOT] = "mdc-deprecated-list", _), v = {
|
217
211
|
ACTION_EVENT: "MDCList:action",
|
218
212
|
SELECTION_CHANGE_EVENT: "MDCList:selectionChange",
|
219
213
|
ARIA_CHECKED: "aria-checked",
|
@@ -230,21 +224,21 @@ var v = (E = {}, E["" + n.LIST_ITEM_ACTIVATED_CLASS] = "mdc-deprecated-list-item
|
|
230
224
|
CHECKBOX_RADIO_SELECTOR: 'input[type="checkbox"], input[type="radio"]',
|
231
225
|
CHECKBOX_SELECTOR: 'input[type="checkbox"]',
|
232
226
|
CHILD_ELEMENTS_TO_TOGGLE_TABINDEX: `
|
233
|
-
.` +
|
234
|
-
.` +
|
235
|
-
.` +
|
236
|
-
.` +
|
227
|
+
.` + r.LIST_ITEM_CLASS + ` button:not(:disabled),
|
228
|
+
.` + r.LIST_ITEM_CLASS + ` a,
|
229
|
+
.` + L[r.LIST_ITEM_CLASS] + ` button:not(:disabled),
|
230
|
+
.` + L[r.LIST_ITEM_CLASS] + ` a
|
237
231
|
`,
|
238
232
|
DEPRECATED_SELECTOR: ".mdc-deprecated-list",
|
239
233
|
FOCUSABLE_CHILD_ELEMENTS: `
|
240
|
-
.` +
|
241
|
-
.` +
|
242
|
-
.` +
|
243
|
-
.` +
|
244
|
-
.` +
|
245
|
-
.` +
|
246
|
-
.` +
|
247
|
-
.` +
|
234
|
+
.` + r.LIST_ITEM_CLASS + ` button:not(:disabled),
|
235
|
+
.` + r.LIST_ITEM_CLASS + ` a,
|
236
|
+
.` + r.LIST_ITEM_CLASS + ` input[type="radio"]:not(:disabled),
|
237
|
+
.` + r.LIST_ITEM_CLASS + ` input[type="checkbox"]:not(:disabled),
|
238
|
+
.` + L[r.LIST_ITEM_CLASS] + ` button:not(:disabled),
|
239
|
+
.` + L[r.LIST_ITEM_CLASS] + ` a,
|
240
|
+
.` + L[r.LIST_ITEM_CLASS] + ` input[type="radio"]:not(:disabled),
|
241
|
+
.` + L[r.LIST_ITEM_CLASS] + ` input[type="checkbox"]:not(:disabled)
|
248
242
|
`,
|
249
243
|
RADIO_SELECTOR: 'input[type="radio"]',
|
250
244
|
SELECTED_ITEM_SELECTOR: '[aria-selected="true"], [aria-current="true"]'
|
@@ -257,39 +251,39 @@ var v = (E = {}, E["" + n.LIST_ITEM_ACTIVATED_CLASS] = "mdc-deprecated-list-item
|
|
257
251
|
* Copyright 2020 Google LLC
|
258
252
|
* SPDX-License-Identifier: Apache-2.0
|
259
253
|
*/
|
260
|
-
const
|
261
|
-
const t = Array.from(
|
262
|
-
let
|
263
|
-
for (;
|
264
|
-
const
|
265
|
-
if (
|
266
|
-
|
254
|
+
const N = (n, e) => n - e, q = (n, e) => {
|
255
|
+
const t = Array.from(n), i = Array.from(e), s = { added: [], removed: [] }, o = t.sort(N), a = i.sort(N);
|
256
|
+
let E = 0, x = 0;
|
257
|
+
for (; E < o.length || x < a.length; ) {
|
258
|
+
const p = o[E], I = a[x];
|
259
|
+
if (p === I) {
|
260
|
+
E++, x++;
|
267
261
|
continue;
|
268
262
|
}
|
269
|
-
if (
|
270
|
-
s.removed.push(
|
263
|
+
if (p !== void 0 && (I === void 0 || p < I)) {
|
264
|
+
s.removed.push(p), E++;
|
271
265
|
continue;
|
272
266
|
}
|
273
|
-
if (
|
274
|
-
s.added.push(
|
267
|
+
if (I !== void 0 && (p === void 0 || I < p)) {
|
268
|
+
s.added.push(I), x++;
|
275
269
|
continue;
|
276
270
|
}
|
277
271
|
}
|
278
272
|
return s;
|
279
273
|
}, Z = ["input", "button", "textarea", "select"];
|
280
|
-
function
|
281
|
-
return
|
274
|
+
function C(n) {
|
275
|
+
return n instanceof Set;
|
282
276
|
}
|
283
|
-
const
|
284
|
-
const e =
|
285
|
-
return
|
277
|
+
const F = (n) => {
|
278
|
+
const e = n === m.UNSET_INDEX ? /* @__PURE__ */ new Set() : n;
|
279
|
+
return C(e) ? new Set(e) : /* @__PURE__ */ new Set([e]);
|
286
280
|
};
|
287
|
-
class
|
281
|
+
class w extends Y {
|
288
282
|
constructor(e) {
|
289
|
-
super(Object.assign(Object.assign({},
|
283
|
+
super(Object.assign(Object.assign({}, w.defaultAdapter), e)), this.isMulti_ = !1, this.wrapFocus_ = !1, this.isVertical_ = !0, this.selectedIndex_ = m.UNSET_INDEX, this.focusedItemIndex_ = m.UNSET_INDEX, this.useActivatedClass_ = !1, this.ariaCurrentAttrValue_ = null;
|
290
284
|
}
|
291
285
|
static get strings() {
|
292
|
-
return
|
286
|
+
return v;
|
293
287
|
}
|
294
288
|
static get numbers() {
|
295
289
|
return m;
|
@@ -334,13 +328,13 @@ class N extends Y {
|
|
334
328
|
this.isMulti_ = e;
|
335
329
|
const t = this.selectedIndex_;
|
336
330
|
if (e) {
|
337
|
-
if (!
|
331
|
+
if (!C(t)) {
|
338
332
|
const i = t === m.UNSET_INDEX;
|
339
333
|
this.selectedIndex_ = i ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([t]);
|
340
334
|
}
|
341
|
-
} else if (
|
335
|
+
} else if (C(t))
|
342
336
|
if (t.size) {
|
343
|
-
const i = Array.from(t).sort(
|
337
|
+
const i = Array.from(t).sort(N);
|
344
338
|
this.selectedIndex_ = i[0];
|
345
339
|
} else
|
346
340
|
this.selectedIndex_ = m.UNSET_INDEX;
|
@@ -361,7 +355,7 @@ class N extends Y {
|
|
361
355
|
return this.selectedIndex_;
|
362
356
|
}
|
363
357
|
setSelectedIndex(e) {
|
364
|
-
this.isIndexValid_(e) && (this.isMulti_ ? this.setMultiSelectionAtIndex_(
|
358
|
+
this.isIndexValid_(e) && (this.isMulti_ ? this.setMultiSelectionAtIndex_(F(e)) : this.setSingleSelectionAtIndex_(e));
|
365
359
|
}
|
366
360
|
/**
|
367
361
|
* Focus in handler for the list items.
|
@@ -381,30 +375,30 @@ class N extends Y {
|
|
381
375
|
* Key handler for the list.
|
382
376
|
*/
|
383
377
|
handleKeydown(e, t, i) {
|
384
|
-
const s =
|
378
|
+
const s = S(e) === "ArrowLeft", o = S(e) === "ArrowUp", a = S(e) === "ArrowRight", E = S(e) === "ArrowDown", x = S(e) === "Home", p = S(e) === "End", I = S(e) === "Enter", B = S(e) === "Spacebar";
|
385
379
|
if (this.adapter.isRootFocused()) {
|
386
|
-
|
380
|
+
o || p ? (e.preventDefault(), this.focusLastElement()) : (E || x) && (e.preventDefault(), this.focusFirstElement());
|
387
381
|
return;
|
388
382
|
}
|
389
|
-
let
|
390
|
-
if (
|
383
|
+
let b = this.adapter.getFocusedElementIndex();
|
384
|
+
if (b === -1 && (b = i, b < 0))
|
391
385
|
return;
|
392
|
-
let
|
393
|
-
if (this.isVertical_ &&
|
394
|
-
this.preventDefaultEvent(e),
|
395
|
-
else if (this.isVertical_ &&
|
396
|
-
this.preventDefaultEvent(e),
|
397
|
-
else if (
|
398
|
-
this.preventDefaultEvent(e),
|
399
|
-
else if (
|
400
|
-
this.preventDefaultEvent(e),
|
401
|
-
else if ((
|
386
|
+
let R;
|
387
|
+
if (this.isVertical_ && E || !this.isVertical_ && a)
|
388
|
+
this.preventDefaultEvent(e), R = this.focusNextElement(b);
|
389
|
+
else if (this.isVertical_ && o || !this.isVertical_ && s)
|
390
|
+
this.preventDefaultEvent(e), R = this.focusPrevElement(b);
|
391
|
+
else if (x)
|
392
|
+
this.preventDefaultEvent(e), R = this.focusFirstElement();
|
393
|
+
else if (p)
|
394
|
+
this.preventDefaultEvent(e), R = this.focusLastElement();
|
395
|
+
else if ((I || B) && t) {
|
402
396
|
const M = e.target;
|
403
|
-
if (M && M.tagName === "A" &&
|
397
|
+
if (M && M.tagName === "A" && I)
|
404
398
|
return;
|
405
|
-
this.preventDefaultEvent(e), this.setSelectedIndexOnAction_(
|
399
|
+
this.preventDefaultEvent(e), this.setSelectedIndexOnAction_(b, !0);
|
406
400
|
}
|
407
|
-
this.focusedItemIndex_ =
|
401
|
+
this.focusedItemIndex_ = b, R !== void 0 && (this.setTabindexAtIndex_(R), this.focusedItemIndex_ = R);
|
408
402
|
}
|
409
403
|
/**
|
410
404
|
* Click handler for the list.
|
@@ -463,12 +457,12 @@ class N extends Y {
|
|
463
457
|
this.selectedIndex_ !== e && (this.selectedIndex_ !== m.UNSET_INDEX && (this.adapter.setSelectedStateForElementIndex(this.selectedIndex_, !1), this.useActivatedClass_ && this.adapter.setActivatedStateForElementIndex(this.selectedIndex_, !1)), t && this.adapter.setSelectedStateForElementIndex(e, !0), this.useActivatedClass_ && this.adapter.setActivatedStateForElementIndex(e, !0), this.setAriaForSingleSelectionAtIndex_(e), this.selectedIndex_ = e, this.adapter.notifySelected(e));
|
464
458
|
}
|
465
459
|
setMultiSelectionAtIndex_(e, t = !0) {
|
466
|
-
const i =
|
460
|
+
const i = F(this.selectedIndex_), s = q(i, e);
|
467
461
|
if (!(!s.removed.length && !s.added.length)) {
|
468
|
-
for (const
|
469
|
-
t && this.adapter.setSelectedStateForElementIndex(
|
470
|
-
for (const
|
471
|
-
t && this.adapter.setSelectedStateForElementIndex(
|
462
|
+
for (const o of s.removed)
|
463
|
+
t && this.adapter.setSelectedStateForElementIndex(o, !1), this.useActivatedClass_ && this.adapter.setActivatedStateForElementIndex(o, !1);
|
464
|
+
for (const o of s.added)
|
465
|
+
t && this.adapter.setSelectedStateForElementIndex(o, !0), this.useActivatedClass_ && this.adapter.setActivatedStateForElementIndex(o, !0);
|
472
466
|
this.selectedIndex_ = e, this.adapter.notifySelected(e, s);
|
473
467
|
}
|
474
468
|
}
|
@@ -476,8 +470,8 @@ class N extends Y {
|
|
476
470
|
* Sets aria attribute for single selection at given index.
|
477
471
|
*/
|
478
472
|
setAriaForSingleSelectionAtIndex_(e) {
|
479
|
-
this.selectedIndex_ === m.UNSET_INDEX && (this.ariaCurrentAttrValue_ = this.adapter.getAttributeForElementIndex(e,
|
480
|
-
const t = this.ariaCurrentAttrValue_ !== null, i = t ?
|
473
|
+
this.selectedIndex_ === m.UNSET_INDEX && (this.ariaCurrentAttrValue_ = this.adapter.getAttributeForElementIndex(e, v.ARIA_CURRENT));
|
474
|
+
const t = this.ariaCurrentAttrValue_ !== null, i = t ? v.ARIA_CURRENT : v.ARIA_SELECTED;
|
481
475
|
this.selectedIndex_ !== m.UNSET_INDEX && this.adapter.setAttributeForElementIndex(this.selectedIndex_, i, "false");
|
482
476
|
const s = t ? this.ariaCurrentAttrValue_ : "true";
|
483
477
|
this.adapter.setAttributeForElementIndex(e, i, s);
|
@@ -487,7 +481,7 @@ class N extends Y {
|
|
487
481
|
}
|
488
482
|
setTabindexToFirstSelectedItem_() {
|
489
483
|
let e = 0;
|
490
|
-
typeof this.selectedIndex_ == "number" && this.selectedIndex_ !== m.UNSET_INDEX ? e = this.selectedIndex_ :
|
484
|
+
typeof this.selectedIndex_ == "number" && this.selectedIndex_ !== m.UNSET_INDEX ? e = this.selectedIndex_ : C(this.selectedIndex_) && this.selectedIndex_.size > 0 && (e = Math.min(...this.selectedIndex_)), this.setTabindexAtIndex_(e);
|
491
485
|
}
|
492
486
|
isIndexValid_(e) {
|
493
487
|
if (e instanceof Set) {
|
@@ -527,8 +521,8 @@ class N extends Y {
|
|
527
521
|
toggleMultiAtIndex(e, t, i = !0) {
|
528
522
|
let s = !1;
|
529
523
|
t === void 0 ? s = !this.adapter.getSelectedStateForElementIndex(e) : s = t;
|
530
|
-
const
|
531
|
-
s ?
|
524
|
+
const o = F(this.selectedIndex_);
|
525
|
+
s ? o.add(e) : o.delete(e), this.setMultiSelectionAtIndex_(o, i);
|
532
526
|
}
|
533
527
|
}
|
534
528
|
/**
|
@@ -536,22 +530,22 @@ class N extends Y {
|
|
536
530
|
* Copyright 2020 Google LLC
|
537
531
|
* SPDX-License-Identifier: Apache-2.0
|
538
532
|
*/
|
539
|
-
function J(
|
533
|
+
function J(n, e = 50) {
|
540
534
|
let t;
|
541
535
|
return function(i = !0) {
|
542
536
|
clearTimeout(t), t = setTimeout(() => {
|
543
|
-
|
537
|
+
n(i);
|
544
538
|
}, e);
|
545
539
|
};
|
546
540
|
}
|
547
|
-
const
|
541
|
+
const O = (n) => n.hasAttribute("mwc-list-item");
|
548
542
|
function Q() {
|
549
|
-
const
|
550
|
-
this.itemsReady = new Promise((e) => this.itemsReadyResolver = e),
|
543
|
+
const n = this.itemsReadyResolver;
|
544
|
+
this.itemsReady = new Promise((e) => this.itemsReadyResolver = e), n();
|
551
545
|
}
|
552
|
-
class
|
546
|
+
class f extends X {
|
553
547
|
constructor() {
|
554
|
-
super(), this.mdcAdapter = null, this.mdcFoundationClass =
|
548
|
+
super(), this.mdcAdapter = null, this.mdcFoundationClass = w, this.activatable = !1, this.multi = !1, this.wrapFocus = !1, this.itemRoles = null, this.innerRole = null, this.innerAriaLabel = null, this.rootTabbable = !1, this.previousTabindex = null, this.noninteractive = !1, this.itemsReadyResolver = () => {
|
555
549
|
}, this.itemsReady = Promise.resolve([]), this.items_ = [];
|
556
550
|
const e = J(this.layout.bind(this));
|
557
551
|
this.debouncedLayout = (t = !0) => {
|
@@ -569,24 +563,24 @@ class u extends K {
|
|
569
563
|
updateItems() {
|
570
564
|
var e;
|
571
565
|
const t = (e = this.assignedElements) !== null && e !== void 0 ? e : [], i = [];
|
572
|
-
for (const
|
573
|
-
|
566
|
+
for (const a of t)
|
567
|
+
O(a) && (i.push(a), a._managingList = this), a.hasAttribute("divider") && !a.hasAttribute("role") && a.setAttribute("role", "separator");
|
574
568
|
this.items_ = i;
|
575
569
|
const s = /* @__PURE__ */ new Set();
|
576
|
-
if (this.items_.forEach((
|
577
|
-
this.itemRoles ?
|
570
|
+
if (this.items_.forEach((a, E) => {
|
571
|
+
this.itemRoles ? a.setAttribute("role", this.itemRoles) : a.removeAttribute("role"), a.selected && s.add(E);
|
578
572
|
}), this.multi)
|
579
573
|
this.select(s);
|
580
574
|
else {
|
581
|
-
const
|
582
|
-
this.select(
|
575
|
+
const a = s.size ? s.entries().next().value[1] : -1;
|
576
|
+
this.select(a);
|
583
577
|
}
|
584
|
-
const
|
585
|
-
this.dispatchEvent(
|
578
|
+
const o = new Event("items-updated", { bubbles: !0, composed: !0 });
|
579
|
+
this.dispatchEvent(o);
|
586
580
|
}
|
587
581
|
get selected() {
|
588
582
|
const e = this.index;
|
589
|
-
if (!
|
583
|
+
if (!C(e))
|
590
584
|
return e === -1 ? null : this.items[e];
|
591
585
|
const t = [];
|
592
586
|
for (const i of e)
|
@@ -639,7 +633,7 @@ class u extends K {
|
|
639
633
|
}
|
640
634
|
onKeydown(e) {
|
641
635
|
if (this.mdcFoundation && this.mdcRoot) {
|
642
|
-
const t = this.getIndexOfTarget(e), i = e.target, s =
|
636
|
+
const t = this.getIndexOfTarget(e), i = e.target, s = O(i);
|
643
637
|
this.mdcFoundation.handleKeydown(e, s, t);
|
644
638
|
}
|
645
639
|
}
|
@@ -648,16 +642,16 @@ class u extends K {
|
|
648
642
|
let t = this.getIndexOfTarget(e);
|
649
643
|
if (t === -1 && (this.layout(), t = this.getIndexOfTarget(e), t === -1) || this.items[t].disabled)
|
650
644
|
return;
|
651
|
-
const s = e.detail.selected,
|
652
|
-
this.mdcFoundation.handleSingleSelection(t,
|
645
|
+
const s = e.detail.selected, o = e.detail.source;
|
646
|
+
this.mdcFoundation.handleSingleSelection(t, o === "interaction", s), e.stopPropagation();
|
653
647
|
}
|
654
648
|
}
|
655
649
|
getIndexOfTarget(e) {
|
656
650
|
const t = this.items, i = e.composedPath();
|
657
651
|
for (const s of i) {
|
658
|
-
let
|
659
|
-
if (
|
660
|
-
return
|
652
|
+
let o = -1;
|
653
|
+
if (G(s) && O(s) && (o = t.indexOf(s)), o !== -1)
|
654
|
+
return o;
|
661
655
|
}
|
662
656
|
return -1;
|
663
657
|
}
|
@@ -697,7 +691,7 @@ class u extends K {
|
|
697
691
|
const s = new CustomEvent("selected", i);
|
698
692
|
this.dispatchEvent(s);
|
699
693
|
},
|
700
|
-
isFocusInsideList: () =>
|
694
|
+
isFocusInsideList: () => z(this),
|
701
695
|
isRootFocused: () => {
|
702
696
|
const e = this.mdcRoot;
|
703
697
|
return e.getRootNode().activeElement === e;
|
@@ -752,12 +746,12 @@ class u extends K {
|
|
752
746
|
getFocusedItemIndex() {
|
753
747
|
if (!this.mdcRoot || !this.items.length)
|
754
748
|
return -1;
|
755
|
-
const e =
|
749
|
+
const e = $();
|
756
750
|
if (!e.length)
|
757
751
|
return -1;
|
758
752
|
for (let t = e.length - 1; t >= 0; t--) {
|
759
753
|
const i = e[t];
|
760
|
-
if (
|
754
|
+
if (O(i))
|
761
755
|
return this.items.indexOf(i);
|
762
756
|
}
|
763
757
|
return -1;
|
@@ -779,62 +773,68 @@ class u extends K {
|
|
779
773
|
e && e.blur();
|
780
774
|
}
|
781
775
|
}
|
782
|
-
|
783
|
-
|
784
|
-
],
|
785
|
-
|
786
|
-
|
787
|
-
],
|
788
|
-
|
789
|
-
|
790
|
-
],
|
791
|
-
|
792
|
-
|
793
|
-
],
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
this.mdcFoundation && this.mdcFoundation.setUseActivatedClass(
|
776
|
+
h([
|
777
|
+
A({ type: String })
|
778
|
+
], f.prototype, "emptyMessage", void 0);
|
779
|
+
h([
|
780
|
+
j(".mdc-deprecated-list")
|
781
|
+
], f.prototype, "mdcRoot", void 0);
|
782
|
+
h([
|
783
|
+
W("", !0, "*")
|
784
|
+
], f.prototype, "assignedElements", void 0);
|
785
|
+
h([
|
786
|
+
W("", !0, '[tabindex="0"]')
|
787
|
+
], f.prototype, "tabbableElements", void 0);
|
788
|
+
h([
|
789
|
+
A({ type: Boolean }),
|
790
|
+
y(function(n) {
|
791
|
+
this.mdcFoundation && this.mdcFoundation.setUseActivatedClass(n);
|
798
792
|
})
|
799
|
-
],
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
this.mdcFoundation && this.mdcFoundation.setMulti(
|
793
|
+
], f.prototype, "activatable", void 0);
|
794
|
+
h([
|
795
|
+
A({ type: Boolean }),
|
796
|
+
y(function(n, e) {
|
797
|
+
this.mdcFoundation && this.mdcFoundation.setMulti(n), e !== void 0 && this.layout();
|
804
798
|
})
|
805
|
-
],
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
this.mdcFoundation && this.mdcFoundation.setWrapFocus(
|
799
|
+
], f.prototype, "multi", void 0);
|
800
|
+
h([
|
801
|
+
A({ type: Boolean }),
|
802
|
+
y(function(n) {
|
803
|
+
this.mdcFoundation && this.mdcFoundation.setWrapFocus(n);
|
810
804
|
})
|
811
|
-
],
|
812
|
-
|
813
|
-
|
814
|
-
|
805
|
+
], f.prototype, "wrapFocus", void 0);
|
806
|
+
h([
|
807
|
+
A({ type: String }),
|
808
|
+
y(function(n, e) {
|
815
809
|
e !== void 0 && this.updateItems();
|
816
810
|
})
|
817
|
-
],
|
818
|
-
|
819
|
-
|
820
|
-
],
|
821
|
-
|
822
|
-
|
823
|
-
],
|
824
|
-
|
825
|
-
|
826
|
-
],
|
827
|
-
|
828
|
-
|
829
|
-
|
811
|
+
], f.prototype, "itemRoles", void 0);
|
812
|
+
h([
|
813
|
+
A({ type: String })
|
814
|
+
], f.prototype, "innerRole", void 0);
|
815
|
+
h([
|
816
|
+
A({ type: String })
|
817
|
+
], f.prototype, "innerAriaLabel", void 0);
|
818
|
+
h([
|
819
|
+
A({ type: Boolean })
|
820
|
+
], f.prototype, "rootTabbable", void 0);
|
821
|
+
h([
|
822
|
+
A({ type: Boolean, reflect: !0 }),
|
823
|
+
y(function(n) {
|
830
824
|
var e, t;
|
831
|
-
if (
|
825
|
+
if (n) {
|
832
826
|
const i = (t = (e = this.tabbableElements) === null || e === void 0 ? void 0 : e[0]) !== null && t !== void 0 ? t : null;
|
833
827
|
this.previousTabindex = i, i && i.setAttribute("tabindex", "-1");
|
834
|
-
} else
|
835
|
-
!r && this.previousTabindex && (this.previousTabindex.setAttribute("tabindex", "0"), this.previousTabindex = null);
|
828
|
+
} else !n && this.previousTabindex && (this.previousTabindex.setAttribute("tabindex", "0"), this.previousTabindex = null);
|
836
829
|
})
|
837
|
-
],
|
830
|
+
], f.prototype, "noninteractive", void 0);
|
831
|
+
/**
|
832
|
+
* @license
|
833
|
+
* Copyright 2021 Google LLC
|
834
|
+
* SPDX-LIcense-Identifier: Apache-2.0
|
835
|
+
*/
|
836
|
+
const me = H`@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{display:block}.mdc-deprecated-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size, 1rem);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.75rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);line-height:1.5rem;margin:0;padding:8px 0;list-style-type:none;color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));padding:var(--mdc-list-vertical-padding, 8px) 0}.mdc-deprecated-list:focus{outline:none}.mdc-deprecated-list-item{height:48px}.mdc-deprecated-list--dense{padding-top:4px;padding-bottom:4px;font-size:.812rem}.mdc-deprecated-list ::slotted([divider]){height:0;margin:0;border:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgba(0, 0, 0, 0.12)}.mdc-deprecated-list ::slotted([divider][padded]){margin:0 var(--mdc-list-side-padding, 16px)}.mdc-deprecated-list ::slotted([divider][inset]){margin-left:var(--mdc-list-inset-margin, 72px);margin-right:0;width:calc( 100% - var(--mdc-list-inset-margin, 72px) )}[dir=rtl] .mdc-deprecated-list ::slotted([divider][inset]),.mdc-deprecated-list ::slotted([divider][inset][dir=rtl]){margin-left:0;margin-right:var(--mdc-list-inset-margin, 72px)}.mdc-deprecated-list ::slotted([divider][inset][padded]){width:calc( 100% - var(--mdc-list-inset-margin, 72px) - var(--mdc-list-side-padding, 16px) )}.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:40px}.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 20px}.mdc-deprecated-list--two-line.mdc-deprecated-list--dense ::slotted([mwc-list-item]),.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list-item]){height:60px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense ::slotted([mwc-list]){--mdc-list-item-graphic-size: 36px}:host([noninteractive]){pointer-events:none;cursor:default}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text){display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-deprecated-list--dense ::slotted(.mdc-deprecated-list-item__primary-text)::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}`;
|
838
837
|
export {
|
839
|
-
|
838
|
+
f as L,
|
839
|
+
me as s
|
840
840
|
};
|