@covalent/components 6.3.0-beta.4 → 6.4.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/app-shell.d.ts +0 -13
- package/app-shell/app-shell.d.ts.map +1 -1
- package/app-shell.js +12 -20
- package/app-shell.mjs +54 -85
- 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/list-expansion.d.ts +4 -1
- package/list/list-expansion.d.ts.map +1 -1
- package/list/list-item.d.ts +2 -0
- package/list/list-item.d.ts.map +1 -1
- package/list/list.d.ts +5 -0
- package/list/list.d.ts.map +1 -1
- package/list/nav-list-item.d.ts +1 -0
- package/list/nav-list-item.d.ts.map +1 -1
- package/list-05db7fed.js +5 -0
- package/list-066f5de4.mjs +45 -0
- package/list-expansion.js +9 -11
- package/list-expansion.mjs +53 -47
- package/list-item-8da7ba96.js +9 -0
- package/list-item-ba77097d.mjs +44 -0
- package/list-item.js +1 -1
- package/list-item.mjs +13 -13
- package/list.js +1 -6
- package/list.mjs +17 -38
- 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 +10 -10
- package/nav-list-item.mjs +31 -28
- package/package.json +1 -2
- 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/list-item-1c65e4db.mjs +0 -32
- package/list-item-ee331821.js +0 -8
- 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-expansion.mjs
CHANGED
@@ -1,67 +1,73 @@
|
|
1
|
-
import { i as
|
2
|
-
import {
|
3
|
-
import
|
4
|
-
import "./list-
|
5
|
-
import "./
|
6
|
-
import "./
|
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 { i as l, r as h, l as d, x as c, A as v, e as f } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
+
import { n as m } from "./property-9b6ea53b.mjs";
|
3
|
+
import { C as u, s as g } from "./list-066f5de4.mjs";
|
4
|
+
import "./mwc-list-base-32d4ac31.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 "./
|
16
|
-
|
15
|
+
import "./query-assigned-nodes-df691e78.mjs";
|
16
|
+
import "./if-defined-c367f208.mjs";
|
17
|
+
const x = `.mdc-deprecated-list{--mdc-list-side-padding: 72px;transition:transform .15s ease-out;overflow:hidden;height:var(--cv-list-menu-height, 0)}.mdc-deprecated-list slot::slotted(*){height:32px}:host([open]) ul{transition:min-height .25s ease-in;height:var(--cv-list-menu-height, inherit)}
|
17
18
|
`;
|
18
|
-
var
|
19
|
-
for (var
|
20
|
-
(a = e[
|
21
|
-
return
|
22
|
-
}
|
23
|
-
let
|
19
|
+
var O = Object.defineProperty, C = Object.getOwnPropertyDescriptor, i = (e, n, t, o) => {
|
20
|
+
for (var r = o > 1 ? void 0 : o ? C(n, t) : n, p = e.length - 1, a; p >= 0; p--)
|
21
|
+
(a = e[p]) && (r = (o ? a(n, t, r) : a(r)) || r);
|
22
|
+
return o && r && O(n, t, r), r;
|
23
|
+
};
|
24
|
+
let s = class extends u {
|
24
25
|
constructor() {
|
25
|
-
super(), this.open = !1;
|
26
|
+
super(), this.open = !1, this.navOpen = !1;
|
26
27
|
}
|
27
28
|
_toggleOpen() {
|
28
29
|
this.open = !this.open, this.expansionHeader.forEach((e) => {
|
29
30
|
e.activated = this.open, e.selected = this.open;
|
30
31
|
});
|
31
32
|
}
|
33
|
+
attributeChangedCallback(e, n, t) {
|
34
|
+
super.attributeChangedCallback(e, n, t), e === "navopen" && this.expansionHeader.forEach((o) => {
|
35
|
+
t === "true" ? (o.navOpen = !!t, o.setAttribute("navopen", t)) : o.removeAttribute("navopen");
|
36
|
+
});
|
37
|
+
}
|
32
38
|
render() {
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
${this.renderRipple()} ${t} ${o} ${e} ${r} ${s}
|
37
|
-
</div>
|
38
|
-
<div class="expansion-panel">
|
39
|
-
<slot name="expansion-panel"></slot>
|
40
|
-
</div>
|
39
|
+
return c`
|
40
|
+
<slot name="expansionHeader" @click=${this._toggleOpen}></slot>
|
41
|
+
${this.navOpen ? super.render() : v}
|
41
42
|
`;
|
42
43
|
}
|
43
44
|
};
|
44
|
-
|
45
|
-
|
46
|
-
${h(
|
45
|
+
s.styles = [
|
46
|
+
l`
|
47
|
+
${h(g)}
|
47
48
|
`,
|
48
|
-
|
49
|
+
l`
|
50
|
+
${h(x)}
|
51
|
+
`
|
49
52
|
];
|
50
|
-
|
53
|
+
s.shadowRootOptions = {
|
51
54
|
mode: "open",
|
52
55
|
delegatesFocus: !0
|
53
56
|
};
|
54
|
-
|
55
|
-
|
56
|
-
],
|
57
|
-
|
58
|
-
m({
|
59
|
-
],
|
60
|
-
i
|
61
|
-
|
62
|
-
],
|
63
|
-
|
57
|
+
i([
|
58
|
+
m({ type: Boolean, reflect: !0 })
|
59
|
+
], s.prototype, "open", 2);
|
60
|
+
i([
|
61
|
+
m({ type: Boolean, reflect: !0 })
|
62
|
+
], s.prototype, "navOpen", 2);
|
63
|
+
i([
|
64
|
+
d({ slot: "expansionHeader" })
|
65
|
+
], s.prototype, "expansionHeader", 2);
|
66
|
+
s = i([
|
67
|
+
f("cv-expansion-list")
|
68
|
+
], s);
|
69
|
+
const z = s;
|
64
70
|
export {
|
65
|
-
|
66
|
-
|
71
|
+
s as CovalentExpansionList,
|
72
|
+
z as default
|
67
73
|
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";const m=require("./mwc-list-item-base-4a4d1e1b.js"),t=require("./query-assigned-elements-f623705d.js"),p=require("./property-57f6f6fe.js"),a=require("./mwc-list-item.css-25adc0c4.js"),l=`.expansion-icon{margin-left:-16px;margin-right:-8px;color:var(--cv-list-item-text-icon-on-background, var(--mdc-theme-text-icon-on-background))}:host([childItem]){height:32px}:host([childItem]) .mdc-deprecated-list-item__text{padding-left:56px}
|
2
|
+
`;var d=Object.defineProperty,v=Object.getOwnPropertyDescriptor,h=(c,s,i,r)=>{for(var e=r>1?void 0:r?v(s,i):s,n=c.length-1,o;n>=0;n--)(o=c[n])&&(e=(r?o(s,i,e):o(e))||e);return r&&e&&d(s,i,e),e};exports.CovalentListItem=class extends m.ListItemBase{constructor(){super(...arguments),this.hasChildren=!1}render(){const s=this.renderText(),i=this.graphic?this.renderGraphic():t.A,r=this.hasMeta?this.renderMeta():t.A,e=this.activated?"arrow_drop_down":"arrow_right",n=this.hasChildren?t.x`<cv-icon class="expansion-icon">${e}</cv-icon>`:t.A,o=this.hasChildren?t.x`<slot name="child"></slot>`:t.A;return t.x` ${this.renderRipple()} ${n} ${i} ${s} ${r}
|
3
|
+
${o}`}};exports.CovalentListItem.styles=[t.i`
|
4
|
+
${t.r(a.styles)}
|
5
|
+
`,t.i`
|
6
|
+
${t.r(a.styles$1)}
|
7
|
+
`,t.i`
|
8
|
+
${t.r(l)}
|
9
|
+
`];h([p.n({type:Boolean,reflect:!0})],exports.CovalentListItem.prototype,"hasChildren",2);exports.CovalentListItem=h([t.e("cv-list-item")],exports.CovalentListItem);const u=exports.CovalentListItem;exports.CovalentListItem$1=u;exports.styles=l;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { L as d } from "./mwc-list-item-base-8654347d.mjs";
|
2
|
+
import { i as h, r as l, A as a, x as p, e as v } from "./query-assigned-elements-4a39219d.mjs";
|
3
|
+
import { n as x } from "./property-9b6ea53b.mjs";
|
4
|
+
import { s as f, a as $ } from "./mwc-list-item.css-b0009fc7.mjs";
|
5
|
+
const g = `.expansion-icon{margin-left:-16px;margin-right:-8px;color:var(--cv-list-item-text-icon-on-background, var(--mdc-theme-text-icon-on-background))}:host([childItem]){height:32px}:host([childItem]) .mdc-deprecated-list-item__text{padding-left:56px}
|
6
|
+
`;
|
7
|
+
var _ = Object.defineProperty, u = Object.getOwnPropertyDescriptor, m = (n, e, r, s) => {
|
8
|
+
for (var t = s > 1 ? void 0 : s ? u(e, r) : e, o = n.length - 1, c; o >= 0; o--)
|
9
|
+
(c = n[o]) && (t = (s ? c(e, r, t) : c(t)) || t);
|
10
|
+
return s && t && _(e, r, t), t;
|
11
|
+
};
|
12
|
+
let i = class extends d {
|
13
|
+
constructor() {
|
14
|
+
super(...arguments), this.hasChildren = !1;
|
15
|
+
}
|
16
|
+
render() {
|
17
|
+
const n = this.renderText(), e = this.graphic ? this.renderGraphic() : a, r = this.hasMeta ? this.renderMeta() : a, s = this.activated ? "arrow_drop_down" : "arrow_right", t = this.hasChildren ? p`<cv-icon class="expansion-icon">${s}</cv-icon>` : a, o = this.hasChildren ? p`<slot name="child"></slot>` : a;
|
18
|
+
return p` ${this.renderRipple()} ${t} ${e} ${n} ${r}
|
19
|
+
${o}`;
|
20
|
+
}
|
21
|
+
};
|
22
|
+
i.styles = [
|
23
|
+
h`
|
24
|
+
${l(f)}
|
25
|
+
`,
|
26
|
+
h`
|
27
|
+
${l($)}
|
28
|
+
`,
|
29
|
+
h`
|
30
|
+
${l(g)}
|
31
|
+
`
|
32
|
+
];
|
33
|
+
m([
|
34
|
+
x({ type: Boolean, reflect: !0 })
|
35
|
+
], i.prototype, "hasChildren", 2);
|
36
|
+
i = m([
|
37
|
+
v("cv-list-item")
|
38
|
+
], i);
|
39
|
+
const b = i;
|
40
|
+
export {
|
41
|
+
i as C,
|
42
|
+
b as a,
|
43
|
+
g as s
|
44
|
+
};
|
package/list-item.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./mwc-list-item-base-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./mwc-list-item-base-4a4d1e1b.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./mwc-list-item.css-25adc0c4.js");const e=require("./list-item-8da7ba96.js");require("./tslib.es6-e6a11c8a.js");require("./ripple-handlers-c82b1232.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./state-0974a8e5.js");require("./query-680f1868.js");require("./class-map-b5efe8da.js");require("./style-map-88d2563f.js");require("./observer-a096ab43.js");Object.defineProperty(exports,"CovalentListItem",{enumerable:!0,get:()=>e.CovalentListItem});exports.default=e.CovalentListItem$1;
|
package/list-item.mjs
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
import "./mwc-list-item-base-
|
2
|
-
import "./query-assigned-elements-
|
3
|
-
import "./
|
4
|
-
import
|
5
|
-
import "./
|
6
|
-
import "./
|
7
|
-
import "./
|
8
|
-
import "./
|
9
|
-
import "./
|
10
|
-
import "./state-
|
11
|
-
import "./query-
|
12
|
-
import "./class-map-
|
13
|
-
import "./style-map-
|
1
|
+
import "./mwc-list-item-base-8654347d.mjs";
|
2
|
+
import "./query-assigned-elements-4a39219d.mjs";
|
3
|
+
import "./property-9b6ea53b.mjs";
|
4
|
+
import "./mwc-list-item.css-b0009fc7.mjs";
|
5
|
+
import { C as v, a as x } from "./list-item-ba77097d.mjs";
|
6
|
+
import "./tslib.es6-f1eaf65c.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
15
|
export {
|
16
16
|
v as CovalentListItem,
|
package/list.js
CHANGED
@@ -1,6 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
2
|
-
* @license
|
3
|
-
* Copyright 2021 Google LLC
|
4
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
5
|
-
*/const o=r.i`@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}`,c=`:host{padding-right:var(--cv-list-padding-right, 16px)}:host(.subnav){--cv-list-padding-right: 0;--cv-list-item-text-padding: 68px}:host(.subnav) ::slotted(*){height:32px;font-weight:var(--mdc-typography-body2-font-weight);border-radius:0 28px 28px 0;padding:0}.mdc-deprecated-list{display:flex;flex-direction:column;align-items:center;width:100%}
|
6
|
-
`;var p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,g=(d,t,a,i)=>{for(var e=i>1?void 0:i?m(t,a):t,s=d.length-1,n;s>=0;s--)(n=d[s])&&(e=(i?n(t,a,e):n(e))||e);return i&&e&&p(t,a,e),e};exports.CovalentList=class extends l.ListBase{};exports.CovalentList.styles=[o,r.i`${r.r(c)}`];exports.CovalentList=g([r.e("cv-list")],exports.CovalentList);const h=exports.CovalentList;exports.default=h;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./mwc-list-base-cb3500b4.js");const e=require("./list-05db7fed.js");require("./query-assigned-elements-f623705d.js");require("./property-57f6f6fe.js");require("./tslib.es6-e6a11c8a.js");require("./mwc-list-item-base-4a4d1e1b.js");require("./ripple-handlers-c82b1232.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.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");Object.defineProperty(exports,"CovalentList",{enumerable:!0,get:()=>e.CovalentList});exports.default=e.CovalentList$1;
|
package/list.mjs
CHANGED
@@ -1,41 +1,20 @@
|
|
1
|
-
import
|
2
|
-
import { L as
|
3
|
-
import "./
|
4
|
-
import "./
|
5
|
-
import "./
|
6
|
-
import "./base-
|
7
|
-
import "./
|
8
|
-
import "./
|
9
|
-
import "./
|
10
|
-
import "./
|
11
|
-
import "./
|
12
|
-
import "./
|
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";
|
13
14
|
import "./observer-be7b92e2.mjs";
|
14
|
-
import "./query-assigned-nodes-
|
15
|
-
import "./if-defined-
|
16
|
-
/**
|
17
|
-
* @license
|
18
|
-
* Copyright 2021 Google LLC
|
19
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
20
|
-
*/
|
21
|
-
const c = n`@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}`, g = `:host{padding-right:var(--cv-list-padding-right, 16px)}:host(.subnav){--cv-list-padding-right: 0;--cv-list-item-text-padding: 68px}:host(.subnav) ::slotted(*){height:32px;font-weight:var(--mdc-typography-body2-font-weight);border-radius:0 28px 28px 0;padding:0}.mdc-deprecated-list{display:flex;flex-direction:column;align-items:center;width:100%}
|
22
|
-
`;
|
23
|
-
var h = Object.defineProperty, f = Object.getOwnPropertyDescriptor, v = (o, e, d, i) => {
|
24
|
-
for (var t = i > 1 ? void 0 : i ? f(e, d) : e, a = o.length - 1, s; a >= 0; a--)
|
25
|
-
(s = o[a]) && (t = (i ? s(e, d, t) : s(t)) || t);
|
26
|
-
return i && t && h(e, d, t), t;
|
27
|
-
};
|
28
|
-
let r = class extends m {
|
29
|
-
};
|
30
|
-
r.styles = [
|
31
|
-
c,
|
32
|
-
n`${l(g)}`
|
33
|
-
];
|
34
|
-
r = v([
|
35
|
-
p("cv-list")
|
36
|
-
], r);
|
37
|
-
const R = r;
|
15
|
+
import "./query-assigned-nodes-df691e78.mjs";
|
16
|
+
import "./if-defined-c367f208.mjs";
|
38
17
|
export {
|
39
|
-
|
40
|
-
|
18
|
+
L as CovalentList,
|
19
|
+
b as default
|
41
20
|
};
|
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
|