@covalent/components 6.3.0 → 7.0.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/action-ribbon.js +6 -6
- package/action-ribbon.mjs +23 -24
- package/alert.js +4 -4
- package/alert.mjs +27 -28
- package/app-shell.js +4 -4
- package/app-shell.mjs +10 -10
- package/{base-element-d5abe37a.js → base-element-58a3f9ea.js} +1 -1
- package/{base-element-c3dc926e.mjs → base-element-67ae173f.mjs} +2 -2
- package/button.js +4 -4
- package/button.mjs +13 -13
- package/card.js +8 -8
- package/card.mjs +4 -4
- package/check-list-item.js +3 -3
- package/check-list-item.mjs +16 -16
- package/checkbox.js +1 -1
- package/checkbox.mjs +15 -15
- package/circular-progress.js +7 -7
- package/circular-progress.mjs +6 -6
- package/class-map-4b94b017.mjs +62 -0
- package/class-map-b5efe8da.js +9 -0
- package/code-snippet.js +9 -9
- package/code-snippet.mjs +1276 -1213
- package/{dialog-8ee07177.js → dialog-79036d60.js} +4 -4
- package/{dialog-85c21333.mjs → dialog-9ac44447.mjs} +39 -39
- package/dialog.js +1 -1
- package/dialog.mjs +8 -8
- package/{directive-helpers-fce8cf91.js → directive-helpers-0ce1f995.js} +2 -2
- package/{directive-helpers-725a181d.mjs → directive-helpers-e3ea6592.mjs} +3 -3
- package/drawer.js +1 -1
- package/drawer.mjs +8 -8
- package/empty-state.js +7 -7
- package/empty-state.mjs +4 -4
- package/{event-options-7bc382d8.js → event-options-3f5eb195.js} +1 -1
- package/{event-options-3937d997.mjs → event-options-78d6cf94.mjs} +1 -1
- package/{form-element-6dbd7afa.mjs → form-element-bd973124.mjs} +4 -4
- package/{form-element-d4e7bcdb.js → form-element-ead758d4.js} +2 -2
- package/{foundation-c580100a.mjs → foundation-3f556da7.mjs} +78 -28
- package/{foundation-3f55a9dc.js → foundation-62d4413d.js} +24 -3
- package/icon-button.js +5 -5
- package/icon-button.mjs +12 -12
- package/icon-check-toggle.js +5 -5
- package/icon-check-toggle.mjs +15 -15
- package/icon-radio-toggle.js +4 -4
- package/icon-radio-toggle.mjs +15 -15
- package/icon.js +1 -1
- package/icon.mjs +3 -3
- package/{if-defined-639ed018.mjs → if-defined-c367f208.mjs} +1 -1
- package/if-defined-f1c45245.js +5 -0
- package/index.js +1 -1
- package/index.mjs +120 -121
- package/linear-progress.js +6 -6
- package/linear-progress.mjs +13 -13
- package/{list-defdaa3b.js → list-05db7fed.js} +2 -2
- package/{list-d616957b.mjs → list-066f5de4.mjs} +3 -3
- package/list-expansion.js +4 -4
- package/list-expansion.mjs +25 -25
- package/{list-item-3fa66f09.js → list-item-8da7ba96.js} +3 -3
- package/{list-item-d5c05e10.mjs → list-item-ba77097d.mjs} +6 -6
- package/list-item.js +1 -1
- package/list-item.mjs +13 -13
- package/list.js +1 -1
- package/list.mjs +15 -15
- package/menu.js +1 -1
- package/menu.mjs +15 -15
- package/{mwc-checkbox-base-10e977f2.mjs → mwc-checkbox-base-3da36456.mjs} +21 -21
- package/{mwc-checkbox-base-435c1f1d.js → mwc-checkbox-base-d46c7666.js} +9 -9
- package/{mwc-checkbox.css-b7abc7fd.mjs → mwc-checkbox.css-8f4f1a9b.mjs} +1 -1
- package/{mwc-checkbox.css-956e3d6c.js → mwc-checkbox.css-b3434429.js} +1 -1
- package/{mwc-drawer-base-f44fcf34.js → mwc-drawer-base-8eecb1de.js} +6 -6
- package/{mwc-drawer-base-b2b772c3.mjs → mwc-drawer-base-fe660bdf.mjs} +10 -10
- package/{mwc-icon-b96fb867.js → mwc-icon-8c9cd0c9.js} +2 -2
- package/{mwc-icon-c7013880.mjs → mwc-icon-ba18383d.mjs} +2 -2
- package/{mwc-line-ripple-directive-a97ce725.js → mwc-line-ripple-directive-d1cf9570.js} +3 -3
- package/{mwc-line-ripple-directive-c3e1f04a.mjs → mwc-line-ripple-directive-ffce2cff.mjs} +6 -6
- package/{mwc-list-base-c0f8af1c.mjs → mwc-list-base-32d4ac31.mjs} +9 -9
- package/{mwc-list-base-7d5f7278.js → mwc-list-base-cb3500b4.js} +4 -4
- package/{mwc-list-item-base-803b9771.js → mwc-list-item-base-4a4d1e1b.js} +8 -8
- package/{mwc-list-item-base-acef0223.mjs → mwc-list-item-base-8654347d.mjs} +7 -7
- package/{mwc-list-item.css-401e2407.js → mwc-list-item.css-25adc0c4.js} +1 -1
- package/{mwc-list-item.css-b5481d96.mjs → mwc-list-item.css-b0009fc7.mjs} +1 -1
- package/{mwc-menu-base-8970b43d.mjs → mwc-menu-base-572a76b9.mjs} +11 -11
- package/{mwc-menu-base-ac49fe54.js → mwc-menu-base-f14ec544.js} +17 -17
- package/{mwc-radio-base-442d495a.js → mwc-radio-base-470b4fcc.js} +4 -4
- package/{mwc-radio-base-c29e6f42.mjs → mwc-radio-base-9446d39b.mjs} +11 -11
- package/{mwc-radio.css-388ad26d.js → mwc-radio.css-4e140252.js} +1 -1
- package/{mwc-radio.css-4694aa9c.mjs → mwc-radio.css-7454bb11.mjs} +1 -1
- package/{mwc-slider.css-336f809b.mjs → mwc-slider.css-10adbaf8.mjs} +12 -12
- package/{mwc-slider.css-48f02f1e.js → mwc-slider.css-9dd57b10.js} +11 -11
- package/{mwc-tab-base-7fb3d339.mjs → mwc-tab-base-4ba47acc.mjs} +14 -14
- package/{mwc-tab-base-1a19b299.js → mwc-tab-base-fc3ffb43.js} +13 -13
- package/{mwc-top-app-bar-base-14e0a018.js → mwc-top-app-bar-base-0304e67f.js} +8 -8
- package/{mwc-top-app-bar-base-79c87e69.mjs → mwc-top-app-bar-base-adc4168a.mjs} +22 -24
- package/nav-list-item.js +2 -2
- package/nav-list-item.mjs +13 -13
- package/package.json +1 -1
- package/{property-074570d1.js → property-57f6f6fe.js} +1 -1
- package/{property-ca27685b.mjs → property-9b6ea53b.mjs} +9 -9
- package/{query-2ba749b7.js → query-680f1868.js} +1 -1
- package/{query-assigned-elements-514e5265.mjs → query-assigned-elements-4a39219d.mjs} +153 -152
- package/query-assigned-elements-f623705d.js +31 -0
- package/{query-assigned-nodes-9ec0fa5f.js → query-assigned-nodes-99eae71d.js} +1 -1
- package/{query-assigned-nodes-bea12e0c.mjs → query-assigned-nodes-df691e78.mjs} +1 -1
- package/{query-1e7846ea.mjs → query-d843aa92.mjs} +1 -1
- package/radio-list-item.js +3 -3
- package/radio-list-item.mjs +18 -18
- package/radio.js +1 -1
- package/radio.mjs +15 -15
- package/{ripple-handlers-227497d3.mjs → ripple-handlers-321219b8.mjs} +10 -10
- package/{ripple-handlers-2176f137.js → ripple-handlers-c82b1232.js} +5 -5
- package/select.js +10 -10
- package/select.mjs +20 -20
- package/side-sheet.js +2 -2
- package/side-sheet.mjs +21 -21
- package/slider-range.js +7 -7
- package/slider-range.mjs +13 -13
- package/slider.js +3 -3
- package/slider.mjs +15 -15
- package/snackbar.js +6 -6
- package/snackbar.mjs +12 -12
- package/state-0974a8e5.js +5 -0
- package/{state-6f7e570d.mjs → state-b5e865db.mjs} +1 -1
- package/status-header-item.js +3 -3
- package/status-header-item.mjs +15 -15
- package/status-header.js +2 -2
- package/status-header.mjs +3 -3
- package/style-map-88d2563f.js +5 -0
- package/style-map-bc3ed3e0.mjs +44 -0
- package/style.css +1 -1
- package/switch.js +8 -8
- package/switch.mjs +13 -13
- package/tab-bar.js +5 -5
- package/tab-bar.mjs +16 -16
- package/tab.js +1 -1
- package/tab.mjs +12 -12
- package/text-lockup.js +4 -4
- package/text-lockup.mjs +7 -7
- package/textarea.js +4 -4
- package/textarea.mjs +26 -26
- package/{textfield-507c6a06.js → textfield-0993c163.js} +12 -12
- package/{textfield-276b0ded.mjs → textfield-2cee5a1a.mjs} +14 -14
- package/textfield.js +1 -1
- package/textfield.mjs +14 -14
- package/toolbar.js +1 -1
- package/toolbar.mjs +8 -8
- package/tooltip/tooltip.d.ts.map +1 -1
- package/tooltip.js +32 -11
- package/tooltip.mjs +611 -516
- package/{top-app-bar-34e85527.js → top-app-bar-a531c1b4.js} +1 -1
- package/{top-app-bar-a236c3bc.mjs → top-app-bar-f83386e0.mjs} +1 -1
- package/top-app-bar-fixed.js +89 -5
- package/top-app-bar-fixed.mjs +279 -37
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +9 -9
- package/tree-list-item.js +7 -7
- package/tree-list-item.mjs +6 -6
- package/tree-list.js +2 -2
- package/tree-list.mjs +1 -1
- package/tslib.es6-e6a11c8a.js +1 -0
- package/tslib.es6-f1eaf65c.mjs +82 -0
- package/typography.js +3 -3
- package/typography.mjs +2 -2
- package/{utils-dc65fdc9.mjs → utils-2932417c.mjs} +2 -2
- package/class-map-08c84aeb.mjs +0 -62
- package/class-map-50b8edb4.js +0 -9
- package/foundation-2334d146.mjs +0 -60
- package/foundation-e830bd94.js +0 -22
- package/if-defined-cb12d481.js +0 -5
- package/query-assigned-elements-07e38f46.js +0 -33
- package/state-949232e6.js +0 -5
- package/style-map-2cb0fb63.mjs +0 -40
- package/style-map-3056a771.js +0 -5
- package/tslib.es6-6b53b818.js +0 -1
- package/tslib.es6-b5e819a6.mjs +0 -82
package/list.mjs
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
import "./mwc-list-base-
|
2
|
-
import { C as L, a as b } from "./list-
|
3
|
-
import "./query-assigned-elements-
|
4
|
-
import "./property-
|
5
|
-
import "./tslib.es6-
|
6
|
-
import "./mwc-list-item-base-
|
7
|
-
import "./ripple-handlers-
|
8
|
-
import "./base-element-
|
9
|
-
import "./utils-
|
10
|
-
import "./state-
|
11
|
-
import "./query-
|
12
|
-
import "./class-map-
|
13
|
-
import "./style-map-
|
1
|
+
import "./mwc-list-base-32d4ac31.mjs";
|
2
|
+
import { C as L, a as b } from "./list-066f5de4.mjs";
|
3
|
+
import "./query-assigned-elements-4a39219d.mjs";
|
4
|
+
import "./property-9b6ea53b.mjs";
|
5
|
+
import "./tslib.es6-f1eaf65c.mjs";
|
6
|
+
import "./mwc-list-item-base-8654347d.mjs";
|
7
|
+
import "./ripple-handlers-321219b8.mjs";
|
8
|
+
import "./base-element-67ae173f.mjs";
|
9
|
+
import "./utils-2932417c.mjs";
|
10
|
+
import "./state-b5e865db.mjs";
|
11
|
+
import "./query-d843aa92.mjs";
|
12
|
+
import "./class-map-4b94b017.mjs";
|
13
|
+
import "./style-map-bc3ed3e0.mjs";
|
14
14
|
import "./observer-be7b92e2.mjs";
|
15
|
-
import "./query-assigned-nodes-
|
16
|
-
import "./if-defined-
|
15
|
+
import "./query-assigned-nodes-df691e78.mjs";
|
16
|
+
import "./if-defined-c367f208.mjs";
|
17
17
|
export {
|
18
18
|
L as CovalentList,
|
19
19
|
b as default
|
package/menu.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./mwc-menu-base-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./mwc-menu-base-f14ec544.js"),l=require("./query-assigned-elements-f623705d.js");require("./tslib.es6-e6a11c8a.js");require("./mwc-list-base-cb3500b4.js");require("./mwc-list-item-base-4a4d1e1b.js");require("./ripple-handlers-c82b1232.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./property-57f6f6fe.js");require("./state-0974a8e5.js");require("./query-680f1868.js");require("./class-map-b5efe8da.js");require("./style-map-88d2563f.js");require("./observer-a096ab43.js");require("./query-assigned-nodes-99eae71d.js");require("./if-defined-f1c45245.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2021 Google LLC
|
4
4
|
* SPDX-LIcense-Identifier: Apache-2.0
|
package/menu.mjs
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
import { M as n } from "./mwc-menu-base-
|
2
|
-
import { i as l, e as c } from "./query-assigned-elements-
|
3
|
-
import "./tslib.es6-
|
4
|
-
import "./mwc-list-base-
|
5
|
-
import "./mwc-list-item-base-
|
6
|
-
import "./ripple-handlers-
|
7
|
-
import "./base-element-
|
8
|
-
import "./utils-
|
9
|
-
import "./property-
|
10
|
-
import "./state-
|
11
|
-
import "./query-
|
12
|
-
import "./class-map-
|
13
|
-
import "./style-map-
|
1
|
+
import { M as n } from "./mwc-menu-base-572a76b9.mjs";
|
2
|
+
import { i as l, e as c } from "./query-assigned-elements-4a39219d.mjs";
|
3
|
+
import "./tslib.es6-f1eaf65c.mjs";
|
4
|
+
import "./mwc-list-base-32d4ac31.mjs";
|
5
|
+
import "./mwc-list-item-base-8654347d.mjs";
|
6
|
+
import "./ripple-handlers-321219b8.mjs";
|
7
|
+
import "./base-element-67ae173f.mjs";
|
8
|
+
import "./utils-2932417c.mjs";
|
9
|
+
import "./property-9b6ea53b.mjs";
|
10
|
+
import "./state-b5e865db.mjs";
|
11
|
+
import "./query-d843aa92.mjs";
|
12
|
+
import "./class-map-4b94b017.mjs";
|
13
|
+
import "./style-map-bc3ed3e0.mjs";
|
14
14
|
import "./observer-be7b92e2.mjs";
|
15
|
-
import "./query-assigned-nodes-
|
16
|
-
import "./if-defined-
|
15
|
+
import "./query-assigned-nodes-df691e78.mjs";
|
16
|
+
import "./if-defined-c367f208.mjs";
|
17
17
|
/**
|
18
18
|
* @license
|
19
19
|
* Copyright 2021 Google LLC
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
import { e as u, R as k } from "./ripple-handlers-
|
1
|
+
import { b as t } from "./tslib.es6-f1eaf65c.mjs";
|
2
|
+
import { e as u, R as k } from "./ripple-handlers-321219b8.mjs";
|
3
3
|
import { a as r } from "./aria-property-fa2717fe.mjs";
|
4
|
-
import { F as b } from "./form-element-
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import { t as c } from "./state-
|
8
|
-
import { e as v } from "./event-options-
|
9
|
-
import { i as h } from "./query-
|
10
|
-
import { o as f } from "./class-map-
|
11
|
-
import { l as
|
4
|
+
import { F as b } from "./form-element-bd973124.mjs";
|
5
|
+
import { x as l } from "./query-assigned-elements-4a39219d.mjs";
|
6
|
+
import { n as d } from "./property-9b6ea53b.mjs";
|
7
|
+
import { t as c } from "./state-b5e865db.mjs";
|
8
|
+
import { e as v } from "./event-options-78d6cf94.mjs";
|
9
|
+
import { i as h } from "./query-d843aa92.mjs";
|
10
|
+
import { o as f } from "./class-map-4b94b017.mjs";
|
11
|
+
import { l as s } from "./if-defined-c367f208.mjs";
|
12
12
|
/**
|
13
13
|
* @license
|
14
14
|
* Copyright 2019 Google LLC
|
@@ -22,15 +22,15 @@ class i extends b {
|
|
22
22
|
return {};
|
23
23
|
}
|
24
24
|
update(e) {
|
25
|
-
const a = e.get("indeterminate"),
|
26
|
-
if (a !== void 0 ||
|
27
|
-
const p = this.calculateAnimationStateName(!!
|
25
|
+
const a = e.get("indeterminate"), n = e.get("checked"), o = e.get("disabled");
|
26
|
+
if (a !== void 0 || n !== void 0 || o !== void 0) {
|
27
|
+
const p = this.calculateAnimationStateName(!!n, !!a, !!o), m = this.calculateAnimationStateName(this.checked, this.indeterminate, this.disabled);
|
28
28
|
this.animationClass = `${p}-${m}`;
|
29
29
|
}
|
30
30
|
super.update(e);
|
31
31
|
}
|
32
|
-
calculateAnimationStateName(e, a,
|
33
|
-
return
|
32
|
+
calculateAnimationStateName(e, a, n) {
|
33
|
+
return n ? "disabled" : a ? "indeterminate" : e ? "checked" : "unchecked";
|
34
34
|
}
|
35
35
|
// TODO(dfreedm): Make this use selected as a param after Polymer/internal#739
|
36
36
|
/** @soyTemplate */
|
@@ -61,16 +61,16 @@ class i extends b {
|
|
61
61
|
"mdc-checkbox--anim-indeterminate-unchecked": this.animationClass == "indeterminate-unchecked",
|
62
62
|
"mdc-checkbox--anim-unchecked-checked": this.animationClass == "unchecked-checked",
|
63
63
|
"mdc-checkbox--anim-unchecked-indeterminate": this.animationClass == "unchecked-indeterminate"
|
64
|
-
},
|
64
|
+
}, n = this.indeterminate ? "mixed" : void 0;
|
65
65
|
return l`
|
66
66
|
<div class="mdc-checkbox mdc-checkbox--upgraded ${f(a)}">
|
67
67
|
<input type="checkbox"
|
68
68
|
class="mdc-checkbox__native-control"
|
69
|
-
name="${
|
70
|
-
aria-checked="${n
|
71
|
-
aria-label="${
|
72
|
-
aria-labelledby="${
|
73
|
-
aria-describedby="${
|
69
|
+
name="${s(this.name)}"
|
70
|
+
aria-checked="${s(n)}"
|
71
|
+
aria-label="${s(this.ariaLabel)}"
|
72
|
+
aria-labelledby="${s(this.ariaLabelledBy)}"
|
73
|
+
aria-describedby="${s(this.ariaDescribedBy)}"
|
74
74
|
data-indeterminate="${this.indeterminate ? "true" : "false"}"
|
75
75
|
?disabled="${this.disabled}"
|
76
76
|
.indeterminate="${this.indeterminate}"
|
@@ -1,18 +1,18 @@
|
|
1
|
-
"use strict";const i=require("./tslib.es6-
|
1
|
+
"use strict";const i=require("./tslib.es6-e6a11c8a.js"),h=require("./ripple-handlers-c82b1232.js"),r=require("./aria-property-849c8816.js"),k=require("./form-element-ead758d4.js"),l=require("./query-assigned-elements-f623705d.js"),n=require("./property-57f6f6fe.js"),c=require("./state-0974a8e5.js"),b=require("./event-options-3f5eb195.js"),p=require("./query-680f1868.js"),v=require("./class-map-b5efe8da.js"),s=require("./if-defined-f1c45245.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
5
|
-
*/class t extends k.FormElement{constructor(){super(...arguments),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.name="",this.value="on",this.reducedTouchTarget=!1,this.animationClass="",this.shouldRenderRipple=!1,this.focused=!1,this.mdcFoundationClass=void 0,this.mdcFoundation=void 0,this.rippleElement=null,this.rippleHandlers=new h.RippleHandlers(()=>(this.shouldRenderRipple=!0,this.ripple.then(e=>this.rippleElement=e),this.ripple))}createAdapter(){return{}}update(e){const a=e.get("indeterminate"),
|
5
|
+
*/class t extends k.FormElement{constructor(){super(...arguments),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.name="",this.value="on",this.reducedTouchTarget=!1,this.animationClass="",this.shouldRenderRipple=!1,this.focused=!1,this.mdcFoundationClass=void 0,this.mdcFoundation=void 0,this.rippleElement=null,this.rippleHandlers=new h.RippleHandlers(()=>(this.shouldRenderRipple=!0,this.ripple.then(e=>this.rippleElement=e),this.ripple))}createAdapter(){return{}}update(e){const a=e.get("indeterminate"),d=e.get("checked"),o=e.get("disabled");if(a!==void 0||d!==void 0||o!==void 0){const u=this.calculateAnimationStateName(!!d,!!a,!!o),m=this.calculateAnimationStateName(this.checked,this.indeterminate,this.disabled);this.animationClass=`${u}-${m}`}super.update(e)}calculateAnimationStateName(e,a,d){return d?"disabled":a?"indeterminate":e?"checked":"unchecked"}renderRipple(){return this.shouldRenderRipple?this.renderRippleTemplate():""}renderRippleTemplate(){return l.x`<mwc-ripple
|
6
6
|
.disabled="${this.disabled}"
|
7
|
-
unbounded></mwc-ripple>`}render(){const e=this.indeterminate||this.checked,a={"mdc-checkbox--disabled":this.disabled,"mdc-checkbox--selected":e,"mdc-checkbox--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-checkbox--anim-checked-indeterminate":this.animationClass=="checked-indeterminate","mdc-checkbox--anim-checked-unchecked":this.animationClass=="checked-unchecked","mdc-checkbox--anim-indeterminate-checked":this.animationClass=="indeterminate-checked","mdc-checkbox--anim-indeterminate-unchecked":this.animationClass=="indeterminate-unchecked","mdc-checkbox--anim-unchecked-checked":this.animationClass=="unchecked-checked","mdc-checkbox--anim-unchecked-indeterminate":this.animationClass=="unchecked-indeterminate"},
|
7
|
+
unbounded></mwc-ripple>`}render(){const e=this.indeterminate||this.checked,a={"mdc-checkbox--disabled":this.disabled,"mdc-checkbox--selected":e,"mdc-checkbox--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-checkbox--anim-checked-indeterminate":this.animationClass=="checked-indeterminate","mdc-checkbox--anim-checked-unchecked":this.animationClass=="checked-unchecked","mdc-checkbox--anim-indeterminate-checked":this.animationClass=="indeterminate-checked","mdc-checkbox--anim-indeterminate-unchecked":this.animationClass=="indeterminate-unchecked","mdc-checkbox--anim-unchecked-checked":this.animationClass=="unchecked-checked","mdc-checkbox--anim-unchecked-indeterminate":this.animationClass=="unchecked-indeterminate"},d=this.indeterminate?"mixed":void 0;return l.x`
|
8
8
|
<div class="mdc-checkbox mdc-checkbox--upgraded ${v.o(a)}">
|
9
9
|
<input type="checkbox"
|
10
10
|
class="mdc-checkbox__native-control"
|
11
|
-
name="${
|
12
|
-
aria-checked="${
|
13
|
-
aria-label="${
|
14
|
-
aria-labelledby="${
|
15
|
-
aria-describedby="${
|
11
|
+
name="${s.l(this.name)}"
|
12
|
+
aria-checked="${s.l(d)}"
|
13
|
+
aria-label="${s.l(this.ariaLabel)}"
|
14
|
+
aria-labelledby="${s.l(this.ariaLabelledBy)}"
|
15
|
+
aria-describedby="${s.l(this.ariaDescribedBy)}"
|
16
16
|
data-indeterminate="${this.indeterminate?"true":"false"}"
|
17
17
|
?disabled="${this.disabled}"
|
18
18
|
.indeterminate="${this.indeterminate}"
|
@@ -38,4 +38,4 @@
|
|
38
38
|
<div class="mdc-checkbox__mixedmark"></div>
|
39
39
|
</div>
|
40
40
|
${this.renderRipple()}
|
41
|
-
</div>`}setFormData(e){this.name&&this.checked&&e.append(this.name,this.value)}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleBlur(){this.focused=!1,this.handleRippleBlur()}handleRippleMouseDown(e){const a=()=>{window.removeEventListener("mouseup",a),this.handleRippleDeactivate()};window.addEventListener("mouseup",a),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleChange(){this.checked=this.formElement.checked,this.indeterminate=this.formElement.indeterminate}resetAnimationClass(){this.animationClass=""}get isRippleActive(){var e;return((e=this.rippleElement)===null||e===void 0?void 0:e.isActive)||!1}}i.__decorate([p.i(".mdc-checkbox")],t.prototype,"mdcRoot",void 0);i.__decorate([p.i("input")],t.prototype,"formElement",void 0);i.__decorate([
|
41
|
+
</div>`}setFormData(e){this.name&&this.checked&&e.append(this.name,this.value)}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleBlur(){this.focused=!1,this.handleRippleBlur()}handleRippleMouseDown(e){const a=()=>{window.removeEventListener("mouseup",a),this.handleRippleDeactivate()};window.addEventListener("mouseup",a),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleChange(){this.checked=this.formElement.checked,this.indeterminate=this.formElement.indeterminate}resetAnimationClass(){this.animationClass=""}get isRippleActive(){var e;return((e=this.rippleElement)===null||e===void 0?void 0:e.isActive)||!1}}i.__decorate([p.i(".mdc-checkbox")],t.prototype,"mdcRoot",void 0);i.__decorate([p.i("input")],t.prototype,"formElement",void 0);i.__decorate([n.n({type:Boolean,reflect:!0})],t.prototype,"checked",void 0);i.__decorate([n.n({type:Boolean})],t.prototype,"indeterminate",void 0);i.__decorate([n.n({type:Boolean,reflect:!0})],t.prototype,"disabled",void 0);i.__decorate([n.n({type:String,reflect:!0})],t.prototype,"name",void 0);i.__decorate([n.n({type:String})],t.prototype,"value",void 0);i.__decorate([r.ariaProperty,n.n({type:String,attribute:"aria-label"})],t.prototype,"ariaLabel",void 0);i.__decorate([r.ariaProperty,n.n({type:String,attribute:"aria-labelledby"})],t.prototype,"ariaLabelledBy",void 0);i.__decorate([r.ariaProperty,n.n({type:String,attribute:"aria-describedby"})],t.prototype,"ariaDescribedBy",void 0);i.__decorate([n.n({type:Boolean})],t.prototype,"reducedTouchTarget",void 0);i.__decorate([c.t()],t.prototype,"animationClass",void 0);i.__decorate([c.t()],t.prototype,"shouldRenderRipple",void 0);i.__decorate([c.t()],t.prototype,"focused",void 0);i.__decorate([h.e("mwc-ripple")],t.prototype,"ripple",void 0);i.__decorate([b.e({passive:!0})],t.prototype,"handleRippleTouchStart",null);exports.CheckboxBase=t;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const r=require("./tslib.es6-
|
1
|
+
"use strict";const r=require("./tslib.es6-e6a11c8a.js");require("./inert.esm-2cee6f2e.js");const E=require("./base-element-58a3f9ea.js"),O=require("./observer-a096ab43.js"),c=require("./query-assigned-elements-f623705d.js"),l=require("./property-57f6f6fe.js"),f=require("./query-680f1868.js"),b=require("./class-map-b5efe8da.js"),F=require("./utils-a8190a39.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2016 Google Inc.
|
4
4
|
*
|
@@ -61,7 +61,7 @@
|
|
61
61
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
62
62
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
63
63
|
* THE SOFTWARE.
|
64
|
-
*/var h=function(n){r.__extends(e,n);function e(t){var i=n.call(this,r.__assign(r.__assign({},e.defaultAdapter),t))||this;return i.animationFrame=0,i.animationTimer=0,i}return Object.defineProperty(e,"strings",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},elementHasClass:function(){return!1},notifyClose:function(){},notifyOpen:function(){},saveFocus:function(){},restoreFocus:function(){},focusActiveNavigationItem:function(){},trapFocus:function(){},releaseFocus:function(){}}},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.animationFrame&&cancelAnimationFrame(this.animationFrame),this.animationTimer&&clearTimeout(this.animationTimer)},e.prototype.open=function(){var t=this;this.isOpen()||this.isOpening()||this.isClosing()||(this.adapter.addClass(s.OPEN),this.adapter.addClass(s.ANIMATE),this.runNextAnimationFrame(function(){t.adapter.addClass(s.OPENING)}),this.adapter.saveFocus())},e.prototype.close=function(){!this.isOpen()||this.isOpening()||this.isClosing()||this.adapter.addClass(s.CLOSING)},e.prototype.isOpen=function(){return this.adapter.hasClass(s.OPEN)},e.prototype.isOpening=function(){return this.adapter.hasClass(s.OPENING)||this.adapter.hasClass(s.ANIMATE)},e.prototype.isClosing=function(){return this.adapter.hasClass(s.CLOSING)},e.prototype.handleKeydown=function(t){var i=t.keyCode,o=t.key,d=o==="Escape"||i===27;d&&this.close()},e.prototype.handleTransitionEnd=function(t){var i=s.OPENING,o=s.CLOSING,d=s.OPEN,C=s.ANIMATE,
|
64
|
+
*/var h=function(n){r.__extends(e,n);function e(t){var i=n.call(this,r.__assign(r.__assign({},e.defaultAdapter),t))||this;return i.animationFrame=0,i.animationTimer=0,i}return Object.defineProperty(e,"strings",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},elementHasClass:function(){return!1},notifyClose:function(){},notifyOpen:function(){},saveFocus:function(){},restoreFocus:function(){},focusActiveNavigationItem:function(){},trapFocus:function(){},releaseFocus:function(){}}},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.animationFrame&&cancelAnimationFrame(this.animationFrame),this.animationTimer&&clearTimeout(this.animationTimer)},e.prototype.open=function(){var t=this;this.isOpen()||this.isOpening()||this.isClosing()||(this.adapter.addClass(s.OPEN),this.adapter.addClass(s.ANIMATE),this.runNextAnimationFrame(function(){t.adapter.addClass(s.OPENING)}),this.adapter.saveFocus())},e.prototype.close=function(){!this.isOpen()||this.isOpening()||this.isClosing()||this.adapter.addClass(s.CLOSING)},e.prototype.isOpen=function(){return this.adapter.hasClass(s.OPEN)},e.prototype.isOpening=function(){return this.adapter.hasClass(s.OPENING)||this.adapter.hasClass(s.ANIMATE)},e.prototype.isClosing=function(){return this.adapter.hasClass(s.CLOSING)},e.prototype.handleKeydown=function(t){var i=t.keyCode,o=t.key,d=o==="Escape"||i===27;d&&this.close()},e.prototype.handleTransitionEnd=function(t){var i=s.OPENING,o=s.CLOSING,d=s.OPEN,C=s.ANIMATE,v=s.ROOT,y=this.isElement(t.target)&&this.adapter.elementHasClass(t.target,v);y&&(this.isClosing()?(this.adapter.removeClass(d),this.closed(),this.adapter.restoreFocus(),this.adapter.notifyClose()):(this.adapter.focusActiveNavigationItem(),this.opened(),this.adapter.notifyOpen()),this.adapter.removeClass(C),this.adapter.removeClass(i),this.adapter.removeClass(o))},e.prototype.opened=function(){},e.prototype.closed=function(){},e.prototype.runNextAnimationFrame=function(t){var i=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame(function(){i.animationFrame=0,clearTimeout(i.animationTimer),i.animationTimer=setTimeout(t,0)})},e.prototype.isElement=function(t){return!!t.classList},e}(_);const g=h;/**
|
65
65
|
* @license
|
66
66
|
* Copyright 2018 Google Inc.
|
67
67
|
*
|
@@ -86,20 +86,20 @@
|
|
86
86
|
* @license
|
87
87
|
* Copyright 2018 Google LLC
|
88
88
|
* SPDX-License-Identifier: Apache-2.0
|
89
|
-
*/const m=document.$blockingElements;class a extends E.BaseElement{constructor(){super(...arguments),this._previousFocus=null,this.open=!1,this.hasHeader=!1,this.type=""}get mdcFoundationClass(){return this.type==="modal"?p:g}createAdapter(){return Object.assign(Object.assign({},F.addHasRemoveClass(this.mdcRoot)),{elementHasClass:(e,t)=>e.classList.contains(t),saveFocus:()=>{this._previousFocus=this.getRootNode().activeElement},restoreFocus:()=>{this._previousFocus&&this._previousFocus.focus&&this._previousFocus.focus()},notifyClose:()=>{this.open=!1,this.dispatchEvent(new Event(u.CLOSE_EVENT,{bubbles:!0,cancelable:!0}))},notifyOpen:()=>{this.open=!0,this.dispatchEvent(new Event(u.OPEN_EVENT,{bubbles:!0,cancelable:!0}))},focusActiveNavigationItem:()=>{},trapFocus:()=>{m.push(this),this.appContent.inert=!0},releaseFocus:()=>{m.remove(this),this.appContent.inert=!1}})}_handleScrimClick(){this.mdcFoundation instanceof p&&this.mdcFoundation.handleScrimClick()}render(){const e=this.type==="dismissible"||this.type==="modal",t=this.type==="modal",i=this.hasHeader?c.
|
89
|
+
*/const m=document.$blockingElements;class a extends E.BaseElement{constructor(){super(...arguments),this._previousFocus=null,this.open=!1,this.hasHeader=!1,this.type=""}get mdcFoundationClass(){return this.type==="modal"?p:g}createAdapter(){return Object.assign(Object.assign({},F.addHasRemoveClass(this.mdcRoot)),{elementHasClass:(e,t)=>e.classList.contains(t),saveFocus:()=>{this._previousFocus=this.getRootNode().activeElement},restoreFocus:()=>{this._previousFocus&&this._previousFocus.focus&&this._previousFocus.focus()},notifyClose:()=>{this.open=!1,this.dispatchEvent(new Event(u.CLOSE_EVENT,{bubbles:!0,cancelable:!0}))},notifyOpen:()=>{this.open=!0,this.dispatchEvent(new Event(u.OPEN_EVENT,{bubbles:!0,cancelable:!0}))},focusActiveNavigationItem:()=>{},trapFocus:()=>{m.push(this),this.appContent.inert=!0},releaseFocus:()=>{m.remove(this),this.appContent.inert=!1}})}_handleScrimClick(){this.mdcFoundation instanceof p&&this.mdcFoundation.handleScrimClick()}render(){const e=this.type==="dismissible"||this.type==="modal",t=this.type==="modal",i=this.hasHeader?c.x`
|
90
90
|
<div class="mdc-drawer__header">
|
91
91
|
<h3 class="mdc-drawer__title"><slot name="title"></slot></h3>
|
92
92
|
<h6 class="mdc-drawer__subtitle"><slot name="subtitle"></slot></h6>
|
93
93
|
<slot name="header"></slot>
|
94
94
|
</div>
|
95
|
-
`:"",o={"mdc-drawer--dismissible":e,"mdc-drawer--modal":t};return c.
|
95
|
+
`:"",o={"mdc-drawer--dismissible":e,"mdc-drawer--modal":t};return c.x`
|
96
96
|
<aside class="mdc-drawer ${b.o(o)}">
|
97
97
|
${i}
|
98
98
|
<div class="mdc-drawer__content"><slot></slot></div>
|
99
99
|
</aside>
|
100
|
-
${t?c.
|
100
|
+
${t?c.x`<div class="mdc-drawer-scrim"
|
101
101
|
@click="${this._handleScrimClick}"></div>`:""}
|
102
102
|
<div class="mdc-drawer-app-content">
|
103
103
|
<slot name="appContent"></slot>
|
104
104
|
</div>
|
105
|
-
`}firstUpdated(){this.mdcRoot.addEventListener("keydown",e=>this.mdcFoundation.handleKeydown(e)),this.mdcRoot.addEventListener("transitionend",e=>this.mdcFoundation.handleTransitionEnd(e))}updated(e){e.has("type")&&this.createFoundation()}}r.__decorate([f.i(".mdc-drawer")],a.prototype,"mdcRoot",void 0);r.__decorate([f.i(".mdc-drawer-app-content")],a.prototype,"appContent",void 0);r.__decorate([O.observer(function(n){this.type!==""&&(n?this.mdcFoundation.open():this.mdcFoundation.close())}),l.
|
105
|
+
`}firstUpdated(){this.mdcRoot.addEventListener("keydown",e=>this.mdcFoundation.handleKeydown(e)),this.mdcRoot.addEventListener("transitionend",e=>this.mdcFoundation.handleTransitionEnd(e))}updated(e){e.has("type")&&this.createFoundation()}}r.__decorate([f.i(".mdc-drawer")],a.prototype,"mdcRoot",void 0);r.__decorate([f.i(".mdc-drawer-app-content")],a.prototype,"appContent",void 0);r.__decorate([O.observer(function(n){this.type!==""&&(n?this.mdcFoundation.open():this.mdcFoundation.close())}),l.n({type:Boolean,reflect:!0})],a.prototype,"open",void 0);r.__decorate([l.n({type:Boolean})],a.prototype,"hasHeader",void 0);r.__decorate([l.n({reflect:!0})],a.prototype,"type",void 0);exports.DrawerBase=a;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import {
|
1
|
+
import { _ as h, a as p, b as r } from "./tslib.es6-f1eaf65c.mjs";
|
2
2
|
import "./inert.esm-359d4581.mjs";
|
3
|
-
import { B as F } from "./base-element-
|
3
|
+
import { B as F } from "./base-element-67ae173f.mjs";
|
4
4
|
import { o as b } from "./observer-be7b92e2.mjs";
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import { i as C } from "./query-
|
8
|
-
import { o as g } from "./class-map-
|
9
|
-
import { a as N } from "./utils-
|
5
|
+
import { x as c } from "./query-assigned-elements-4a39219d.mjs";
|
6
|
+
import { n as l } from "./property-9b6ea53b.mjs";
|
7
|
+
import { i as C } from "./query-d843aa92.mjs";
|
8
|
+
import { o as g } from "./class-map-4b94b017.mjs";
|
9
|
+
import { a as N } from "./utils-2932417c.mjs";
|
10
10
|
/**
|
11
11
|
* @license
|
12
12
|
* Copyright 2016 Google Inc.
|
@@ -194,8 +194,8 @@ var v = (
|
|
194
194
|
var s = t.keyCode, a = t.key, d = a === "Escape" || s === 27;
|
195
195
|
d && this.close();
|
196
196
|
}, e.prototype.handleTransitionEnd = function(t) {
|
197
|
-
var s = i.OPENING, a = i.CLOSING, d = i.OPEN,
|
198
|
-
O && (this.isClosing() ? (this.adapter.removeClass(d), this.closed(), this.adapter.restoreFocus(), this.adapter.notifyClose()) : (this.adapter.focusActiveNavigationItem(), this.opened(), this.adapter.notifyOpen()), this.adapter.removeClass(
|
197
|
+
var s = i.OPENING, a = i.CLOSING, d = i.OPEN, E = i.ANIMATE, y = i.ROOT, O = this.isElement(t.target) && this.adapter.elementHasClass(t.target, y);
|
198
|
+
O && (this.isClosing() ? (this.adapter.removeClass(d), this.closed(), this.adapter.restoreFocus(), this.adapter.notifyClose()) : (this.adapter.focusActiveNavigationItem(), this.opened(), this.adapter.notifyOpen()), this.adapter.removeClass(E), this.adapter.removeClass(s), this.adapter.removeClass(a));
|
199
199
|
}, e.prototype.opened = function() {
|
200
200
|
}, e.prototype.closed = function() {
|
201
201
|
}, e.prototype.runNextAnimationFrame = function(t) {
|
@@ -204,7 +204,7 @@ var v = (
|
|
204
204
|
s.animationFrame = 0, clearTimeout(s.animationTimer), s.animationTimer = setTimeout(t, 0);
|
205
205
|
});
|
206
206
|
}, e.prototype.isElement = function(t) {
|
207
|
-
return
|
207
|
+
return !!t.classList;
|
208
208
|
}, e;
|
209
209
|
}(w)
|
210
210
|
);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const n=require("./tslib.es6-
|
1
|
+
"use strict";const n=require("./tslib.es6-e6a11c8a.js"),e=require("./query-assigned-elements-f623705d.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2021 Google LLC
|
4
4
|
* SPDX-LIcense-Identifier: Apache-2.0
|
@@ -6,4 +6,4 @@
|
|
6
6
|
* @license
|
7
7
|
* Copyright 2018 Google LLC
|
8
8
|
* SPDX-License-Identifier: Apache-2.0
|
9
|
-
*/exports.Icon=class extends e.s{render(){return e.
|
9
|
+
*/exports.Icon=class extends e.s{render(){return e.x`<span><slot></slot></span>`}};exports.Icon.styles=[t];exports.Icon=n.__decorate([e.e("mwc-icon")],exports.Icon);
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import { i as n, s as e,
|
1
|
+
import { b as o } from "./tslib.es6-f1eaf65c.mjs";
|
2
|
+
import { i as n, s as e, x as i, e as s } from "./query-assigned-elements-4a39219d.mjs";
|
3
3
|
/**
|
4
4
|
* @license
|
5
5
|
* Copyright 2021 Google LLC
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const o=require("./tslib.es6-
|
1
|
+
"use strict";const o=require("./tslib.es6-e6a11c8a.js"),c=require("./query-assigned-elements-f623705d.js"),m=require("./base-element-58a3f9ea.js"),p=require("./property-57f6f6fe.js"),h=require("./query-680f1868.js"),i=require("./class-map-b5efe8da.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2016 Google Inc.
|
4
4
|
*
|
@@ -65,14 +65,14 @@
|
|
65
65
|
* @license
|
66
66
|
* Copyright 2019 Google LLC
|
67
67
|
* SPDX-License-Identifier: Apache-2.0
|
68
|
-
*/class s extends m.BaseElement{constructor(){super(...arguments),this.mdcFoundationClass=E,this.width=0,this.open=!1,this.lastOpen=this.open}createAdapter(){return{addClass:e=>this.mdcRoot.classList.add(e),removeClass:e=>this.mdcRoot.classList.remove(e),setNotchWidthProperty:e=>this.notchElement.style.setProperty("width",`${e}px`),removeNotchWidthProperty:()=>this.notchElement.style.removeProperty("width")}}openOrClose(e,n){this.mdcFoundation&&(e&&n!==void 0?this.mdcFoundation.notch(n):this.mdcFoundation.closeNotch())}render(){this.openOrClose(this.open,this.width);const e=i.o({"mdc-notched-outline--notched":this.open});return c.
|
68
|
+
*/class s extends m.BaseElement{constructor(){super(...arguments),this.mdcFoundationClass=E,this.width=0,this.open=!1,this.lastOpen=this.open}createAdapter(){return{addClass:e=>this.mdcRoot.classList.add(e),removeClass:e=>this.mdcRoot.classList.remove(e),setNotchWidthProperty:e=>this.notchElement.style.setProperty("width",`${e}px`),removeNotchWidthProperty:()=>this.notchElement.style.removeProperty("width")}}openOrClose(e,n){this.mdcFoundation&&(e&&n!==void 0?this.mdcFoundation.notch(n):this.mdcFoundation.closeNotch())}render(){this.openOrClose(this.open,this.width);const e=i.o({"mdc-notched-outline--notched":this.open});return c.x`
|
69
69
|
<span class="mdc-notched-outline ${e}">
|
70
70
|
<span class="mdc-notched-outline__leading"></span>
|
71
71
|
<span class="mdc-notched-outline__notch">
|
72
72
|
<slot></slot>
|
73
73
|
</span>
|
74
74
|
<span class="mdc-notched-outline__trailing"></span>
|
75
|
-
</span>`}}o.__decorate([h.i(".mdc-notched-outline")],s.prototype,"mdcRoot",void 0);o.__decorate([p.
|
75
|
+
</span>`}}o.__decorate([h.i(".mdc-notched-outline")],s.prototype,"mdcRoot",void 0);o.__decorate([p.n({type:Number})],s.prototype,"width",void 0);o.__decorate([p.n({type:Boolean,reflect:!0})],s.prototype,"open",void 0);o.__decorate([h.i(".mdc-notched-outline__notch")],s.prototype,"notchElement",void 0);/**
|
76
76
|
* @license
|
77
77
|
* Copyright 2021 Google LLC
|
78
78
|
* SPDX-LIcense-Identifier: Apache-2.0
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import { B as y } from "./base-element-
|
4
|
-
import {
|
5
|
-
import { i as f } from "./query-
|
6
|
-
import { o as L, e as m, i as b, t as l } from "./class-map-
|
1
|
+
import { _ as u, a as d, b as a } from "./tslib.es6-f1eaf65c.mjs";
|
2
|
+
import { x as _, i as v, e as E } from "./query-assigned-elements-4a39219d.mjs";
|
3
|
+
import { B as y } from "./base-element-67ae173f.mjs";
|
4
|
+
import { n as h } from "./property-9b6ea53b.mjs";
|
5
|
+
import { i as f } from "./query-d843aa92.mjs";
|
6
|
+
import { o as L, e as m, i as b, t as l } from "./class-map-4b94b017.mjs";
|
7
7
|
/**
|
8
8
|
* @license
|
9
9
|
* Copyright 2016 Google Inc.
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import {
|
2
|
-
import { i as z, e as B,
|
3
|
-
import { L as H } from "./mwc-list-item-base-
|
4
|
-
import { B as K } from "./base-element-
|
1
|
+
import { b as p } from "./tslib.es6-f1eaf65c.mjs";
|
2
|
+
import { i as z, e as B, x as P } from "./query-assigned-elements-4a39219d.mjs";
|
3
|
+
import { L as H } from "./mwc-list-item-base-8654347d.mjs";
|
4
|
+
import { B as K } from "./base-element-67ae173f.mjs";
|
5
5
|
import { o as L } from "./observer-be7b92e2.mjs";
|
6
|
-
import { i as V,
|
7
|
-
import {
|
8
|
-
import { i as $ } from "./query-
|
9
|
-
import { o as k } from "./query-assigned-nodes-
|
10
|
-
import { l as U } from "./if-defined-
|
6
|
+
import { i as V, d as X, b as G } from "./utils-2932417c.mjs";
|
7
|
+
import { n as I } from "./property-9b6ea53b.mjs";
|
8
|
+
import { i as $ } from "./query-d843aa92.mjs";
|
9
|
+
import { o as k } from "./query-assigned-nodes-df691e78.mjs";
|
10
|
+
import { l as U } from "./if-defined-c367f208.mjs";
|
11
11
|
/**
|
12
12
|
* @license
|
13
13
|
* Copyright 2021 Google LLC
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const p=require("./tslib.es6-
|
1
|
+
"use strict";const p=require("./tslib.es6-e6a11c8a.js"),O=require("./query-assigned-elements-f623705d.js"),B=require("./mwc-list-item-base-4a4d1e1b.js"),H=require("./base-element-58a3f9ea.js"),L=require("./observer-a096ab43.js"),F=require("./utils-a8190a39.js"),I=require("./property-57f6f6fe.js"),K=require("./query-680f1868.js"),W=require("./query-assigned-nodes-99eae71d.js"),k=require("./if-defined-f1c45245.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2021 Google LLC
|
4
4
|
* SPDX-LIcense-Identifier: Apache-2.0
|
@@ -91,7 +91,7 @@
|
|
91
91
|
* @license
|
92
92
|
* Copyright 2020 Google LLC
|
93
93
|
* SPDX-License-Identifier: Apache-2.0
|
94
|
-
*/function $(r,e=50){let t;return function(i=!0){clearTimeout(t),t=setTimeout(()=>{r(i)},e)}}const w=r=>r.hasAttribute("mwc-list-item");function j(){const r=this.itemsReadyResolver;this.itemsReady=new Promise(e=>this.itemsReadyResolver=e),r()}class u extends H.BaseElement{constructor(){super(),this.mdcAdapter=null,this.mdcFoundationClass=P,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=()=>{},this.itemsReady=Promise.resolve([]),this.items_=[];const e=$(this.layout.bind(this));this.debouncedLayout=(t=!0)=>{j.call(this),e(t)}}async getUpdateComplete(){const e=await super.getUpdateComplete();return await this.itemsReady,e}get items(){return this.items_}updateItems(){var e;const t=(e=this.assignedElements)!==null&&e!==void 0?e:[],i=[];for(const o of t)w(o)&&(i.push(o),o._managingList=this),o.hasAttribute("divider")&&!o.hasAttribute("role")&&o.setAttribute("role","separator");this.items_=i;const s=new Set;if(this.items_.forEach((o,_)=>{this.itemRoles?o.setAttribute("role",this.itemRoles):o.removeAttribute("role"),o.selected&&s.add(_)}),this.multi)this.select(s);else{const o=s.size?s.entries().next().value[1]:-1;this.select(o)}const d=new Event("items-updated",{bubbles:!0,composed:!0});this.dispatchEvent(d)}get selected(){const e=this.index;if(!R(e))return e===-1?null:this.items[e];const t=[];for(const i of e)t.push(this.items[i]);return t}get index(){return this.mdcFoundation?this.mdcFoundation.getSelectedIndex():-1}render(){const e=this.innerRole===null?void 0:this.innerRole,t=this.innerAriaLabel===null?void 0:this.innerAriaLabel,i=this.rootTabbable?"0":"-1";return O.
|
94
|
+
*/function $(r,e=50){let t;return function(i=!0){clearTimeout(t),t=setTimeout(()=>{r(i)},e)}}const w=r=>r.hasAttribute("mwc-list-item");function j(){const r=this.itemsReadyResolver;this.itemsReady=new Promise(e=>this.itemsReadyResolver=e),r()}class u extends H.BaseElement{constructor(){super(),this.mdcAdapter=null,this.mdcFoundationClass=P,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=()=>{},this.itemsReady=Promise.resolve([]),this.items_=[];const e=$(this.layout.bind(this));this.debouncedLayout=(t=!0)=>{j.call(this),e(t)}}async getUpdateComplete(){const e=await super.getUpdateComplete();return await this.itemsReady,e}get items(){return this.items_}updateItems(){var e;const t=(e=this.assignedElements)!==null&&e!==void 0?e:[],i=[];for(const o of t)w(o)&&(i.push(o),o._managingList=this),o.hasAttribute("divider")&&!o.hasAttribute("role")&&o.setAttribute("role","separator");this.items_=i;const s=new Set;if(this.items_.forEach((o,_)=>{this.itemRoles?o.setAttribute("role",this.itemRoles):o.removeAttribute("role"),o.selected&&s.add(_)}),this.multi)this.select(s);else{const o=s.size?s.entries().next().value[1]:-1;this.select(o)}const d=new Event("items-updated",{bubbles:!0,composed:!0});this.dispatchEvent(d)}get selected(){const e=this.index;if(!R(e))return e===-1?null:this.items[e];const t=[];for(const i of e)t.push(this.items[i]);return t}get index(){return this.mdcFoundation?this.mdcFoundation.getSelectedIndex():-1}render(){const e=this.innerRole===null?void 0:this.innerRole,t=this.innerAriaLabel===null?void 0:this.innerAriaLabel,i=this.rootTabbable?"0":"-1";return O.x`
|
95
95
|
<!-- @ts-ignore -->
|
96
96
|
<ul
|
97
97
|
tabindex=${i}
|
@@ -106,6 +106,6 @@
|
|
106
106
|
<slot></slot>
|
107
107
|
${this.renderPlaceholder()}
|
108
108
|
</ul>
|
109
|
-
`}renderPlaceholder(){var e;const t=(e=this.assignedElements)!==null&&e!==void 0?e:[];return this.emptyMessage!==void 0&&t.length===0?O.
|
109
|
+
`}renderPlaceholder(){var e;const t=(e=this.assignedElements)!==null&&e!==void 0?e:[];return this.emptyMessage!==void 0&&t.length===0?O.x`
|
110
110
|
<mwc-list-item noninteractive>${this.emptyMessage}</mwc-list-item>
|
111
|
-
`:null}firstUpdated(){super.firstUpdated(),this.items.length||(this.mdcFoundation.setMulti(this.multi),this.layout())}onFocusIn(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e);this.mdcFoundation.handleFocusIn(e,t)}}onFocusOut(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e);this.mdcFoundation.handleFocusOut(e,t)}}onKeydown(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e),i=e.target,s=w(i);this.mdcFoundation.handleKeydown(e,s,t)}}onRequestSelected(e){if(this.mdcFoundation){let t=this.getIndexOfTarget(e);if(t===-1&&(this.layout(),t=this.getIndexOfTarget(e),t===-1)||this.items[t].disabled)return;const s=e.detail.selected,d=e.detail.source;this.mdcFoundation.handleSingleSelection(t,d==="interaction",s),e.stopPropagation()}}getIndexOfTarget(e){const t=this.items,i=e.composedPath();for(const s of i){let d=-1;if(F.isNodeElement(s)&&w(s)&&(d=t.indexOf(s)),d!==-1)return d}return-1}createAdapter(){return this.mdcAdapter={getListItemCount:()=>this.mdcRoot?this.items.length:0,getFocusedElementIndex:this.getFocusedItemIndex,getAttributeForElementIndex:(e,t)=>{if(!this.mdcRoot)return"";const s=this.items[e];return s?s.getAttribute(t):""},setAttributeForElementIndex:(e,t,i)=>{if(!this.mdcRoot)return;const s=this.items[e];s&&s.setAttribute(t,i)},focusItemAtIndex:e=>{const t=this.items[e];t&&t.focus()},setTabIndexForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.tabindex=t)},notifyAction:e=>{const t={bubbles:!0,composed:!0};t.detail={index:e};const i=new CustomEvent("action",t);this.dispatchEvent(i)},notifySelected:(e,t)=>{const i={bubbles:!0,composed:!0};i.detail={index:e,diff:t};const s=new CustomEvent("selected",i);this.dispatchEvent(s)},isFocusInsideList:()=>F.doesElementContainFocus(this),isRootFocused:()=>{const e=this.mdcRoot;return e.getRootNode().activeElement===e},setDisabledStateForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.disabled=t)},getDisabledStateForElementIndex:e=>{const t=this.items[e];return t?t.disabled:!1},setSelectedStateForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.selected=t)},getSelectedStateForElementIndex:e=>{const t=this.items[e];return t?t.selected:!1},setActivatedStateForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.activated=t)}},this.mdcAdapter}selectUi(e,t=!1){const i=this.items[e];i&&(i.selected=!0,i.activated=t)}deselectUi(e){const t=this.items[e];t&&(t.selected=!1,t.activated=!1)}select(e){this.mdcFoundation&&this.mdcFoundation.setSelectedIndex(e)}toggle(e,t){this.multi&&this.mdcFoundation.toggleMultiAtIndex(e,t)}onListItemConnected(e){const t=e.target;this.layout(this.items.indexOf(t)===-1)}layout(e=!0){e&&this.updateItems();const t=this.items[0];for(const i of this.items)i.tabindex=-1;t&&(this.noninteractive?this.previousTabindex||(this.previousTabindex=t):t.tabindex=0),this.itemsReadyResolver()}getFocusedItemIndex(){if(!this.mdcRoot||!this.items.length)return-1;const e=F.deepActiveElementPath();if(!e.length)return-1;for(let t=e.length-1;t>=0;t--){const i=e[t];if(w(i))return this.items.indexOf(i)}return-1}focusItemAtIndex(e){for(const t of this.items)if(t.tabindex===0){t.tabindex=-1;break}this.items[e].tabindex=0,this.items[e].focus()}focus(){const e=this.mdcRoot;e&&e.focus()}blur(){const e=this.mdcRoot;e&&e.blur()}}p.__decorate([I.
|
111
|
+
`:null}firstUpdated(){super.firstUpdated(),this.items.length||(this.mdcFoundation.setMulti(this.multi),this.layout())}onFocusIn(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e);this.mdcFoundation.handleFocusIn(e,t)}}onFocusOut(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e);this.mdcFoundation.handleFocusOut(e,t)}}onKeydown(e){if(this.mdcFoundation&&this.mdcRoot){const t=this.getIndexOfTarget(e),i=e.target,s=w(i);this.mdcFoundation.handleKeydown(e,s,t)}}onRequestSelected(e){if(this.mdcFoundation){let t=this.getIndexOfTarget(e);if(t===-1&&(this.layout(),t=this.getIndexOfTarget(e),t===-1)||this.items[t].disabled)return;const s=e.detail.selected,d=e.detail.source;this.mdcFoundation.handleSingleSelection(t,d==="interaction",s),e.stopPropagation()}}getIndexOfTarget(e){const t=this.items,i=e.composedPath();for(const s of i){let d=-1;if(F.isNodeElement(s)&&w(s)&&(d=t.indexOf(s)),d!==-1)return d}return-1}createAdapter(){return this.mdcAdapter={getListItemCount:()=>this.mdcRoot?this.items.length:0,getFocusedElementIndex:this.getFocusedItemIndex,getAttributeForElementIndex:(e,t)=>{if(!this.mdcRoot)return"";const s=this.items[e];return s?s.getAttribute(t):""},setAttributeForElementIndex:(e,t,i)=>{if(!this.mdcRoot)return;const s=this.items[e];s&&s.setAttribute(t,i)},focusItemAtIndex:e=>{const t=this.items[e];t&&t.focus()},setTabIndexForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.tabindex=t)},notifyAction:e=>{const t={bubbles:!0,composed:!0};t.detail={index:e};const i=new CustomEvent("action",t);this.dispatchEvent(i)},notifySelected:(e,t)=>{const i={bubbles:!0,composed:!0};i.detail={index:e,diff:t};const s=new CustomEvent("selected",i);this.dispatchEvent(s)},isFocusInsideList:()=>F.doesElementContainFocus(this),isRootFocused:()=>{const e=this.mdcRoot;return e.getRootNode().activeElement===e},setDisabledStateForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.disabled=t)},getDisabledStateForElementIndex:e=>{const t=this.items[e];return t?t.disabled:!1},setSelectedStateForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.selected=t)},getSelectedStateForElementIndex:e=>{const t=this.items[e];return t?t.selected:!1},setActivatedStateForElementIndex:(e,t)=>{const i=this.items[e];i&&(i.activated=t)}},this.mdcAdapter}selectUi(e,t=!1){const i=this.items[e];i&&(i.selected=!0,i.activated=t)}deselectUi(e){const t=this.items[e];t&&(t.selected=!1,t.activated=!1)}select(e){this.mdcFoundation&&this.mdcFoundation.setSelectedIndex(e)}toggle(e,t){this.multi&&this.mdcFoundation.toggleMultiAtIndex(e,t)}onListItemConnected(e){const t=e.target;this.layout(this.items.indexOf(t)===-1)}layout(e=!0){e&&this.updateItems();const t=this.items[0];for(const i of this.items)i.tabindex=-1;t&&(this.noninteractive?this.previousTabindex||(this.previousTabindex=t):t.tabindex=0),this.itemsReadyResolver()}getFocusedItemIndex(){if(!this.mdcRoot||!this.items.length)return-1;const e=F.deepActiveElementPath();if(!e.length)return-1;for(let t=e.length-1;t>=0;t--){const i=e[t];if(w(i))return this.items.indexOf(i)}return-1}focusItemAtIndex(e){for(const t of this.items)if(t.tabindex===0){t.tabindex=-1;break}this.items[e].tabindex=0,this.items[e].focus()}focus(){const e=this.mdcRoot;e&&e.focus()}blur(){const e=this.mdcRoot;e&&e.blur()}}p.__decorate([I.n({type:String})],u.prototype,"emptyMessage",void 0);p.__decorate([K.i(".mdc-deprecated-list")],u.prototype,"mdcRoot",void 0);p.__decorate([W.o("",!0,"*")],u.prototype,"assignedElements",void 0);p.__decorate([W.o("",!0,'[tabindex="0"]')],u.prototype,"tabbableElements",void 0);p.__decorate([I.n({type:Boolean}),L.observer(function(r){this.mdcFoundation&&this.mdcFoundation.setUseActivatedClass(r)})],u.prototype,"activatable",void 0);p.__decorate([I.n({type:Boolean}),L.observer(function(r,e){this.mdcFoundation&&this.mdcFoundation.setMulti(r),e!==void 0&&this.layout()})],u.prototype,"multi",void 0);p.__decorate([I.n({type:Boolean}),L.observer(function(r){this.mdcFoundation&&this.mdcFoundation.setWrapFocus(r)})],u.prototype,"wrapFocus",void 0);p.__decorate([I.n({type:String}),L.observer(function(r,e){e!==void 0&&this.updateItems()})],u.prototype,"itemRoles",void 0);p.__decorate([I.n({type:String})],u.prototype,"innerRole",void 0);p.__decorate([I.n({type:String})],u.prototype,"innerAriaLabel",void 0);p.__decorate([I.n({type:Boolean})],u.prototype,"rootTabbable",void 0);p.__decorate([I.n({type:Boolean,reflect:!0}),L.observer(function(r){var e,t;if(r){const i=(t=(e=this.tabbableElements)===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:null;this.previousTabindex=i,i&&i.setAttribute("tabindex","-1")}else!r&&this.previousTabindex&&(this.previousTabindex.setAttribute("tabindex","0"),this.previousTabindex=null)})],u.prototype,"noninteractive",void 0);exports.ListBase=u;
|
@@ -1,28 +1,28 @@
|
|
1
|
-
"use strict";const s=require("./tslib.es6-
|
1
|
+
"use strict";const s=require("./tslib.es6-e6a11c8a.js"),c=require("./ripple-handlers-c82b1232.js"),l=require("./observer-a096ab43.js"),r=require("./query-assigned-elements-f623705d.js"),n=require("./property-57f6f6fe.js"),d=require("./state-0974a8e5.js"),p=require("./query-680f1868.js"),h=require("./class-map-b5efe8da.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2020 Google LLC
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
5
|
-
*/class t extends r.s{constructor(){super(...arguments),this.value="",this.group=null,this.tabindex=-1,this.disabled=!1,this.twoline=!1,this.activated=!1,this.graphic=null,this.multipleGraphics=!1,this.hasMeta=!1,this.noninteractive=!1,this.selected=!1,this.shouldRenderRipple=!1,this._managingList=null,this.boundOnClick=this.onClick.bind(this),this._firstChanged=!0,this._skipPropRequest=!1,this.rippleHandlers=new c.RippleHandlers(()=>(this.shouldRenderRipple=!0,this.ripple)),this.listeners=[{target:this,eventNames:["click"],cb:()=>{this.onClick()}},{target:this,eventNames:["mouseenter"],cb:this.rippleHandlers.startHover},{target:this,eventNames:["mouseleave"],cb:this.rippleHandlers.endHover},{target:this,eventNames:["focus"],cb:this.rippleHandlers.startFocus},{target:this,eventNames:["blur"],cb:this.rippleHandlers.endFocus},{target:this,eventNames:["mousedown","touchstart"],cb:e=>{const i=e.type;this.onDown(i==="mousedown"?"mouseup":"touchend",e)}}]}get text(){const e=this.textContent;return e?e.trim():""}render(){const e=this.renderText(),i=this.graphic?this.renderGraphic():r.
|
5
|
+
*/class t extends r.s{constructor(){super(...arguments),this.value="",this.group=null,this.tabindex=-1,this.disabled=!1,this.twoline=!1,this.activated=!1,this.graphic=null,this.multipleGraphics=!1,this.hasMeta=!1,this.noninteractive=!1,this.selected=!1,this.shouldRenderRipple=!1,this._managingList=null,this.boundOnClick=this.onClick.bind(this),this._firstChanged=!0,this._skipPropRequest=!1,this.rippleHandlers=new c.RippleHandlers(()=>(this.shouldRenderRipple=!0,this.ripple)),this.listeners=[{target:this,eventNames:["click"],cb:()=>{this.onClick()}},{target:this,eventNames:["mouseenter"],cb:this.rippleHandlers.startHover},{target:this,eventNames:["mouseleave"],cb:this.rippleHandlers.endHover},{target:this,eventNames:["focus"],cb:this.rippleHandlers.startFocus},{target:this,eventNames:["blur"],cb:this.rippleHandlers.endFocus},{target:this,eventNames:["mousedown","touchstart"],cb:e=>{const i=e.type;this.onDown(i==="mousedown"?"mouseup":"touchend",e)}}]}get text(){const e=this.textContent;return e?e.trim():""}render(){const e=this.renderText(),i=this.graphic?this.renderGraphic():r.x``,o=this.hasMeta?this.renderMeta():r.x``;return r.x`
|
6
6
|
${this.renderRipple()}
|
7
7
|
${i}
|
8
8
|
${e}
|
9
|
-
${o}`}renderRipple(){return this.shouldRenderRipple?r.
|
9
|
+
${o}`}renderRipple(){return this.shouldRenderRipple?r.x`
|
10
10
|
<mwc-ripple
|
11
11
|
.activated=${this.activated}>
|
12
|
-
</mwc-ripple>`:this.activated?r.
|
12
|
+
</mwc-ripple>`:this.activated?r.x`<div class="fake-activated-ripple"></div>`:""}renderGraphic(){const e={multi:this.multipleGraphics};return r.x`
|
13
13
|
<span class="mdc-deprecated-list-item__graphic material-icons ${h.o(e)}">
|
14
14
|
<slot name="graphic"></slot>
|
15
|
-
</span>`}renderMeta(){return r.
|
15
|
+
</span>`}renderMeta(){return r.x`
|
16
16
|
<span class="mdc-deprecated-list-item__meta material-icons">
|
17
17
|
<slot name="meta"></slot>
|
18
|
-
</span>`}renderText(){const e=this.twoline?this.renderTwoline():this.renderSingleLine();return r.
|
18
|
+
</span>`}renderText(){const e=this.twoline?this.renderTwoline():this.renderSingleLine();return r.x`
|
19
19
|
<span class="mdc-deprecated-list-item__text">
|
20
20
|
${e}
|
21
|
-
</span>`}renderSingleLine(){return r.
|
21
|
+
</span>`}renderSingleLine(){return r.x`<slot></slot>`}renderTwoline(){return r.x`
|
22
22
|
<span class="mdc-deprecated-list-item__primary-text">
|
23
23
|
<slot></slot>
|
24
24
|
</span>
|
25
25
|
<span class="mdc-deprecated-list-item__secondary-text">
|
26
26
|
<slot name="secondary"></slot>
|
27
27
|
</span>
|
28
|
-
`}onClick(){this.fireRequestSelected(!this.selected,"interaction")}onDown(e,i){const o=()=>{window.removeEventListener(e,o),this.rippleHandlers.endPress()};window.addEventListener(e,o),this.rippleHandlers.startPress(i)}fireRequestSelected(e,i){if(this.noninteractive)return;const o=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:i,selected:e}});this.dispatchEvent(o)}connectedCallback(){super.connectedCallback(),this.noninteractive||this.setAttribute("mwc-list-item","");for(const e of this.listeners)for(const i of e.eventNames)e.target.addEventListener(i,e.cb,{passive:!0})}disconnectedCallback(){super.disconnectedCallback();for(const e of this.listeners)for(const i of e.eventNames)e.target.removeEventListener(i,e.cb);this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}firstUpdated(){const e=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(e)}}s.__decorate([p.i("slot")],t.prototype,"slotElement",void 0);s.__decorate([c.e("mwc-ripple")],t.prototype,"ripple",void 0);s.__decorate([n.
|
28
|
+
`}onClick(){this.fireRequestSelected(!this.selected,"interaction")}onDown(e,i){const o=()=>{window.removeEventListener(e,o),this.rippleHandlers.endPress()};window.addEventListener(e,o),this.rippleHandlers.startPress(i)}fireRequestSelected(e,i){if(this.noninteractive)return;const o=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:i,selected:e}});this.dispatchEvent(o)}connectedCallback(){super.connectedCallback(),this.noninteractive||this.setAttribute("mwc-list-item","");for(const e of this.listeners)for(const i of e.eventNames)e.target.addEventListener(i,e.cb,{passive:!0})}disconnectedCallback(){super.disconnectedCallback();for(const e of this.listeners)for(const i of e.eventNames)e.target.removeEventListener(i,e.cb);this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}firstUpdated(){const e=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(e)}}s.__decorate([p.i("slot")],t.prototype,"slotElement",void 0);s.__decorate([c.e("mwc-ripple")],t.prototype,"ripple",void 0);s.__decorate([n.n({type:String})],t.prototype,"value",void 0);s.__decorate([n.n({type:String,reflect:!0})],t.prototype,"group",void 0);s.__decorate([n.n({type:Number,reflect:!0})],t.prototype,"tabindex",void 0);s.__decorate([n.n({type:Boolean,reflect:!0}),l.observer(function(a){a?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")})],t.prototype,"disabled",void 0);s.__decorate([n.n({type:Boolean,reflect:!0})],t.prototype,"twoline",void 0);s.__decorate([n.n({type:Boolean,reflect:!0})],t.prototype,"activated",void 0);s.__decorate([n.n({type:String,reflect:!0})],t.prototype,"graphic",void 0);s.__decorate([n.n({type:Boolean})],t.prototype,"multipleGraphics",void 0);s.__decorate([n.n({type:Boolean})],t.prototype,"hasMeta",void 0);s.__decorate([n.n({type:Boolean,reflect:!0}),l.observer(function(a){a?(this.removeAttribute("aria-checked"),this.removeAttribute("mwc-list-item"),this.selected=!1,this.activated=!1,this.tabIndex=-1):this.setAttribute("mwc-list-item","")})],t.prototype,"noninteractive",void 0);s.__decorate([n.n({type:Boolean,reflect:!0}),l.observer(function(a){const e=this.getAttribute("role"),i=e==="gridcell"||e==="option"||e==="row"||e==="tab";if(i&&a?this.setAttribute("aria-selected","true"):i&&this.setAttribute("aria-selected","false"),this._firstChanged){this._firstChanged=!1;return}this._skipPropRequest||this.fireRequestSelected(a,"property")})],t.prototype,"selected",void 0);s.__decorate([d.t()],t.prototype,"shouldRenderRipple",void 0);s.__decorate([d.t()],t.prototype,"_managingList",void 0);exports.ListItemBase=t;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import {
|
2
|
-
import { e as c, R as d } from "./ripple-handlers-
|
1
|
+
import { b as t } from "./tslib.es6-f1eaf65c.mjs";
|
2
|
+
import { e as c, R as d } from "./ripple-handlers-321219b8.mjs";
|
3
3
|
import { o as l } from "./observer-be7b92e2.mjs";
|
4
|
-
import { s as h,
|
5
|
-
import {
|
6
|
-
import { t as p } from "./state-
|
7
|
-
import { i as u } from "./query-
|
8
|
-
import { o as m } from "./class-map-
|
4
|
+
import { s as h, x as n } from "./query-assigned-elements-4a39219d.mjs";
|
5
|
+
import { n as r } from "./property-9b6ea53b.mjs";
|
6
|
+
import { t as p } from "./state-b5e865db.mjs";
|
7
|
+
import { i as u } from "./query-d843aa92.mjs";
|
8
|
+
import { o as m } from "./class-map-4b94b017.mjs";
|
9
9
|
/**
|
10
10
|
* @license
|
11
11
|
* Copyright 2020 Google LLC
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
import { i as V, e as K,
|
3
|
-
import { L as Q } from "./mwc-list-base-
|
4
|
-
import { B as j } from "./base-element-
|
1
|
+
import { b as o, _ as U, a as B, c as q } from "./tslib.es6-f1eaf65c.mjs";
|
2
|
+
import { i as V, e as K, x as F } from "./query-assigned-elements-4a39219d.mjs";
|
3
|
+
import { L as Q } from "./mwc-list-base-32d4ac31.mjs";
|
4
|
+
import { B as j } from "./base-element-67ae173f.mjs";
|
5
5
|
import { o as g } from "./observer-be7b92e2.mjs";
|
6
|
-
import { a as Y,
|
7
|
-
import {
|
8
|
-
import { t as b } from "./state-
|
9
|
-
import { i as D } from "./query-
|
10
|
-
import { o as P } from "./class-map-
|
11
|
-
import {
|
6
|
+
import { a as Y, d as Z, b as J } from "./utils-2932417c.mjs";
|
7
|
+
import { n as a } from "./property-9b6ea53b.mjs";
|
8
|
+
import { t as b } from "./state-b5e865db.mjs";
|
9
|
+
import { i as D } from "./query-d843aa92.mjs";
|
10
|
+
import { o as P } from "./class-map-4b94b017.mjs";
|
11
|
+
import { o as tt } from "./style-map-bc3ed3e0.mjs";
|
12
12
|
/**
|
13
13
|
* @license
|
14
14
|
* Copyright 2021 Google LLC
|
@@ -411,7 +411,7 @@ var X = (
|
|
411
411
|
t.adapter.restoreFocus();
|
412
412
|
}, M.TOUCH_EVENT_WAIT_MS);
|
413
413
|
}, e.prototype.hasBit = function(t, i) {
|
414
|
-
return
|
414
|
+
return !!(t & i);
|
415
415
|
}, e.prototype.setBit = function(t, i) {
|
416
416
|
return t | i;
|
417
417
|
}, e.prototype.unsetBit = function(t, i) {
|