@covalent/components 10.3.1 → 10.3.3
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 +5 -5
- package/action-ribbon.mjs +33 -33
- package/alert.js +5 -5
- package/alert.mjs +54 -54
- package/app-shell.js +1 -1
- package/app-shell.mjs +7 -7
- package/async-directive-JqUnzsgG.mjs +66 -0
- package/async-directive-X7VhNdG3.js +5 -0
- package/badge.js +1 -1
- package/badge.mjs +4 -4
- package/{base-element-5ZU-p99q.js → base-element-DP9GZic2.js} +1 -1
- package/{base-element-CzNmpVoz.mjs → base-element-DUJkJh_y.mjs} +1 -1
- package/button.js +2 -2
- package/button.mjs +29 -29
- package/card.js +8 -8
- package/card.mjs +39 -39
- package/check-list-item.js +8 -8
- package/check-list-item.mjs +34 -34
- package/checkbox.js +1 -1
- package/checkbox.mjs +15 -15
- package/{chip-CitHXhY7.js → chip-CiCrVTPi.js} +40 -40
- package/{chip-5QP7xPTY.mjs → chip-kcYskdL2.mjs} +37 -37
- package/chip-set.js +5 -5
- package/chip-set.mjs +135 -135
- package/chip.js +1 -1
- package/chip.mjs +2 -2
- package/circular-progress.js +15 -15
- package/circular-progress.mjs +25 -25
- package/class-map-DPUylGZM.mjs +36 -0
- package/class-map-DTzB8z-1.js +5 -0
- package/{code-editor-XU5DhFbC.mjs → code-editor-C3uCywXF.mjs} +7930 -7977
- package/{code-editor-CryBkPGy.js → code-editor-DRE322br.js} +116 -116
- package/code-editor.js +1 -1
- package/code-editor.mjs +2 -2
- package/code-snippet.js +1 -1
- package/code-snippet.mjs +5 -5
- package/{dialog-BodJc4rc.mjs → dialog-CzHKHFcv.mjs} +185 -185
- package/{dialog-DMqDMT_N.js → dialog-DnrVj2jp.js} +9 -9
- package/dialog.js +1 -1
- package/dialog.mjs +2 -2
- package/directive-C7oCP5Bh.js +5 -0
- package/directive-helpers-C-un5pST.js +5 -0
- package/directive-helpers-DS-VuBZD.mjs +11 -0
- package/{directive-B76A7YXI.mjs → directive-oAbCiebi.mjs} +4 -4
- package/drawer.js +2 -2
- package/drawer.mjs +14 -14
- package/empty-state.js +1 -1
- package/empty-state.mjs +6 -6
- package/{event-options-D44mpm5S.mjs → event-options-C7DvXRgq.mjs} +1 -1
- package/{event-options-IG-2g8HU.js → event-options-DD382x85.js} +1 -1
- package/expansion-panel-item.js +1 -1
- package/expansion-panel-item.mjs +3 -3
- package/expansion-panel.js +1 -1
- package/expansion-panel.mjs +5 -5
- package/focused-page.js +1 -1
- package/focused-page.mjs +7 -7
- package/form-element-BOhYShN_.mjs +50 -0
- package/form-element-BSAsNxWv.js +5 -0
- package/formfield.js +7 -7
- package/formfield.mjs +45 -45
- package/{foundation-BYhAXCW_.mjs → foundation-CZtT3AWn.mjs} +15 -17
- package/{foundation-sIsx2I_x.js → foundation-CySCCTUE.js} +2 -2
- package/{foundation-D6JHa7Lg.mjs → foundation-PL3XY-m_.mjs} +4 -4
- package/{foundation-aT_gy6X8.js → foundation-pgmPu2iJ.js} +1 -1
- package/full-screen-dialog.js +2 -2
- package/full-screen-dialog.mjs +10 -10
- package/{html-DW6Y8eLM.mjs → html-B4ZQgAyG.mjs} +1 -1
- package/{html-CEiNqoVv.js → html-BmXgAsCP.js} +1 -1
- package/icon-button-toggle.js +5 -5
- package/icon-button-toggle.mjs +29 -29
- package/icon-button.js +3 -3
- package/icon-button.mjs +32 -32
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +7 -7
- package/icon-lockup.js +5 -5
- package/icon-lockup.mjs +4 -4
- package/icon-radio-toggle.js +1 -1
- package/icon-radio-toggle.mjs +13 -13
- package/icon.js +1 -1
- package/icon.mjs +13 -13
- package/{if-defined-B7G84qob.js → if-defined-CZCqOAYs.js} +1 -1
- package/{if-defined-DN7whKwy.mjs → if-defined-DGrxuPYz.mjs} +1 -1
- package/index.js +7 -7
- package/index.mjs +121 -121
- package/{javascript-vVCDG6Rm.js → javascript-Cc9WaUTf.js} +1 -1
- package/{javascript-DzJ0FiwJ.mjs → javascript-Dyp_SycE.mjs} +1 -1
- package/linear-progress.js +7 -7
- package/linear-progress.mjs +32 -32
- package/{list-item-COi_Dg4N.js → list-item-qiQvSXie.js} +1 -1
- package/{list-item-Bh5n0QpR.mjs → list-item-quxukAxk.mjs} +1 -1
- package/list-item.js +7 -7
- package/list-item.mjs +21 -21
- package/list.js +3 -3
- package/list.mjs +16 -16
- package/menu.js +3 -3
- package/menu.mjs +15 -15
- package/{mwc-checkbox.css-CNoj0V14.mjs → mwc-checkbox.css-BrjbMwch.mjs} +28 -28
- package/{mwc-checkbox.css-BV3dyB4C.js → mwc-checkbox.css-u49MHsHT.js} +1 -1
- package/{mwc-drawer-base-C96HTnbC.mjs → mwc-drawer-base-B75WxHwf.mjs} +10 -10
- package/{mwc-drawer-base-BIn51sQu.js → mwc-drawer-base-BymazAF9.js} +3 -3
- package/{mwc-icon-Xgr698ax.js → mwc-icon-BUzuM0iB.js} +1 -1
- package/{mwc-icon-DTCUplqR.mjs → mwc-icon-U80igLyY.mjs} +2 -2
- package/{mwc-icon-button.css-DOVWWyjA.js → mwc-icon-button.css-BzElD_JI.js} +1 -1
- package/{mwc-icon-button.css-DJiDOS0_.mjs → mwc-icon-button.css-DosQIdlt.mjs} +1 -1
- package/{mwc-line-ripple-directive-TO37-41n.mjs → mwc-line-ripple-directive-AW6v6TRk.mjs} +34 -34
- package/{mwc-line-ripple-directive-r80jluoU.js → mwc-line-ripple-directive-DBy5sTfo.js} +4 -4
- package/{mwc-list-item.css-CO1JlA8e.js → mwc-list-item.css-Bib8TVz5.js} +10 -10
- package/{mwc-list-item.css-Cg9onxQ-.mjs → mwc-list-item.css-BtGzAhUF.mjs} +10 -10
- package/{mwc-list.css-C_-DVEme.mjs → mwc-list.css-BBbQixrF.mjs} +100 -100
- package/{mwc-list.css-Deg9oBaO.js → mwc-list.css-DWV8pw-x.js} +1 -1
- package/{mwc-menu.css-qpZxKN-g.mjs → mwc-menu.css-BUjxqJjM.mjs} +303 -303
- package/{mwc-menu.css-Dvr-f3_T.js → mwc-menu.css-D3EFugOg.js} +18 -18
- package/{mwc-radio.css-DjO4Rn44.js → mwc-radio.css-BWiWreTh.js} +1 -1
- package/{mwc-radio.css-BiHC1R8I.mjs → mwc-radio.css-DPbyzNg_.mjs} +8 -8
- package/{mwc-slider.css-Deh1__Ar.mjs → mwc-slider.css-CBNgYCJf.mjs} +277 -288
- package/{mwc-slider.css-DFOaS04S.js → mwc-slider.css-DytByuJk.js} +13 -13
- package/{mwc-tab.css-sq5suZKe.js → mwc-tab.css-CrjUDOft.js} +11 -11
- package/{mwc-tab.css-2UrPKkNg.mjs → mwc-tab.css-DJHVL7wZ.mjs} +31 -31
- package/{mwc-top-app-bar-base-DUdOcIjS.js → mwc-top-app-bar-base-Gxaye-WD.js} +3 -3
- package/{mwc-top-app-bar-base-BIZGhVtM.mjs → mwc-top-app-bar-base-N3OLLWe5.mjs} +21 -21
- package/nav-list-item.js +1 -1
- package/nav-list-item.mjs +14 -14
- package/notebook-cell.js +1 -1
- package/notebook-cell.mjs +23 -23
- package/package.json +1 -1
- package/{property-BRKnMYJe.js → property-DYTC_2-m.js} +1 -1
- package/{python-DnfGbG5q.js → python-DKLi-dau.js} +1 -1
- package/{python-CddQNZH2.mjs → python-WzHADE7X.mjs} +1 -1
- package/query-CDOd1Kwm.mjs +15 -0
- package/query-Dv2F3m_t.js +5 -0
- package/query-assigned-elements-8EurZY45.js +31 -0
- package/query-assigned-elements-D930kELM.mjs +591 -0
- package/query-assigned-nodes-BAfLwxmx.js +5 -0
- package/query-assigned-nodes-Dof2CSLU.mjs +17 -0
- package/radio-list-item.js +9 -9
- package/radio-list-item.mjs +28 -28
- package/radio.js +1 -1
- package/radio.mjs +15 -15
- package/{ripple-handlers-BDmOLx8c.js → ripple-handlers-C7an-EE1.js} +5 -5
- package/{ripple-handlers-BAdg-fJB.mjs → ripple-handlers-_gEIkKpx.mjs} +71 -71
- package/select.js +12 -12
- package/select.mjs +140 -141
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +8 -8
- package/slider-range.js +5 -5
- package/slider-range.mjs +43 -43
- package/slider.js +2 -2
- package/slider.mjs +19 -19
- package/snackbar.js +11 -11
- package/snackbar.mjs +54 -54
- package/{state-Csv4sdJA.js → state-C3HoXfoa.js} +1 -1
- package/status-dialog.js +1 -1
- package/status-dialog.mjs +6 -6
- package/status-header-item.js +1 -1
- package/status-header-item.mjs +17 -17
- package/status-header.js +5 -5
- package/status-header.mjs +34 -34
- package/style-map-D2TR7M-D.mjs +42 -0
- package/style-map-DOMuf9Fg.js +5 -0
- package/switch.js +5 -5
- package/switch.mjs +42 -42
- package/tab-bar.js +11 -11
- package/tab-bar.mjs +98 -98
- package/tab.js +1 -1
- package/tab.mjs +13 -13
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +9 -9
- package/textarea.js +6 -6
- package/textarea.mjs +29 -29
- package/{textfield-CO6CFCCn.js → textfield-BKtErr_f.js} +30 -30
- package/{textfield-WSgoABZn.mjs → textfield-CTlapGQ5.mjs} +102 -102
- package/textfield.js +3 -3
- package/textfield.mjs +17 -17
- package/toolbar.js +1 -1
- package/toolbar.mjs +5 -5
- package/tooltip.js +3 -3
- package/tooltip.mjs +55 -56
- package/{top-app-bar-BvXNELe9.mjs → top-app-bar-BVk3lmos.mjs} +1 -1
- package/{top-app-bar-Cvp1aN42.js → top-app-bar-CbU9QpTA.js} +1 -1
- package/top-app-bar-fixed.js +8 -8
- package/top-app-bar-fixed.mjs +40 -40
- package/top-app-bar.js +3 -3
- package/top-app-bar.mjs +18 -18
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +4 -4
- package/tree-list.js +4 -4
- package/tree-list.mjs +22 -22
- package/tslib.es6-CJ7TUrOc.mjs +75 -0
- package/{typescript-CdlgcZ3y.mjs → typescript-C0UD96ot.mjs} +1 -1
- package/{typescript-BRw9OFm1.js → typescript-pxLTVSy-.js} +1 -1
- package/typography.js +2 -2
- package/typography.mjs +11 -11
- package/async-directive-2AOdKBUW.mjs +0 -66
- package/async-directive-DZ3MjSIj.js +0 -5
- package/class-map-BHl5MHd7.mjs +0 -36
- package/class-map-PsUYVqvf.js +0 -5
- package/directive-C_VV3qwo.js +0 -5
- package/directive-helpers-6HCt_-zj.mjs +0 -11
- package/directive-helpers-BnUMbYHh.js +0 -5
- package/form-element--PS8uSRI.js +0 -5
- package/form-element-Dn0Lerng.mjs +0 -50
- package/index.scss +0 -1
- package/query-BvlE-gMJ.js +0 -5
- package/query-DSO61t36.mjs +0 -15
- package/query-assigned-elements-BQszEgac.js +0 -31
- package/query-assigned-elements-DhyCP_2z.mjs +0 -591
- package/query-assigned-nodes-9DFnkxV8.js +0 -5
- package/query-assigned-nodes-B-jCihdA.mjs +0 -17
- package/style-map-3QfsA_1O.js +0 -5
- package/style-map-QxIETvrs.mjs +0 -42
- package/theme/_index.scss +0 -46
- package/theme/prebuilt/dark-theme.css +0 -1
- package/theme/prebuilt/dark-theme.css.map +0 -1
- package/theme/prebuilt/light-theme.css +0 -1
- package/theme/prebuilt/light-theme.css.map +0 -1
- package/tslib.es6-CISSdiiH.mjs +0 -75
package/linear-progress.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { s as y, x as u, i as g, r as b, e as h } from "./query-assigned-elements-
|
|
2
|
-
import { b as a } from "./tslib.es6-
|
|
3
|
-
import { a as
|
|
1
|
+
import { s as y, x as u, i as g, r as b, e as h } from "./query-assigned-elements-D930kELM.mjs";
|
|
2
|
+
import { b as a } from "./tslib.es6-CJ7TUrOc.mjs";
|
|
3
|
+
import { a as v } from "./aria-property-6O5bK0tV.mjs";
|
|
4
4
|
import { n as o } from "./property-DJzm_oB9.mjs";
|
|
5
5
|
import { t } from "./state-B_tK3mBm.mjs";
|
|
6
|
-
import { i as
|
|
7
|
-
import { o as x } from "./class-map-
|
|
8
|
-
import { l as p } from "./if-defined-
|
|
9
|
-
import { o as f } from "./style-map-
|
|
6
|
+
import { i as _ } from "./query-CDOd1Kwm.mjs";
|
|
7
|
+
import { o as x } from "./class-map-DPUylGZM.mjs";
|
|
8
|
+
import { l as p } from "./if-defined-DGrxuPYz.mjs";
|
|
9
|
+
import { o as f } from "./style-map-D2TR7M-D.mjs";
|
|
10
10
|
/**
|
|
11
11
|
* @license
|
|
12
12
|
* Copyright 2018 Google LLC
|
|
@@ -29,7 +29,7 @@ class e extends y {
|
|
|
29
29
|
"mdc-linear-progress--indeterminate": this.indeterminate,
|
|
30
30
|
// needed for controller-less render
|
|
31
31
|
"mdc-linear-progress--animation-ready": this.animationReady
|
|
32
|
-
},
|
|
32
|
+
}, s = {
|
|
33
33
|
"--mdc-linear-progress-primary-half": this.stylePrimaryHalf,
|
|
34
34
|
"--mdc-linear-progress-primary-half-neg": this.stylePrimaryHalf !== "" ? `-${this.stylePrimaryHalf}` : "",
|
|
35
35
|
"--mdc-linear-progress-primary-full": this.stylePrimaryFull,
|
|
@@ -40,16 +40,16 @@ class e extends y {
|
|
|
40
40
|
"--mdc-linear-progress-secondary-half-neg": this.styleSecondaryHalf !== "" ? `-${this.styleSecondaryHalf}` : "",
|
|
41
41
|
"--mdc-linear-progress-secondary-full": this.styleSecondaryFull,
|
|
42
42
|
"--mdc-linear-progress-secondary-full-neg": this.styleSecondaryFull !== "" ? `-${this.styleSecondaryFull}` : ""
|
|
43
|
-
},
|
|
43
|
+
}, i = {
|
|
44
44
|
"flex-basis": this.indeterminate ? "100%" : `${this.buffer * 100}%`
|
|
45
|
-
},
|
|
45
|
+
}, n = {
|
|
46
46
|
transform: this.indeterminate ? "scaleX(1)" : `scaleX(${this.progress})`
|
|
47
47
|
};
|
|
48
48
|
return u`
|
|
49
49
|
<div
|
|
50
50
|
role="progressbar"
|
|
51
51
|
class="mdc-linear-progress ${x(r)}"
|
|
52
|
-
style="${f(
|
|
52
|
+
style="${f(s)}"
|
|
53
53
|
dir="${p(this.reverse ? "rtl" : void 0)}"
|
|
54
54
|
aria-label="${p(this.ariaLabel)}"
|
|
55
55
|
aria-valuemin="0"
|
|
@@ -59,13 +59,13 @@ class e extends y {
|
|
|
59
59
|
<div class="mdc-linear-progress__buffer">
|
|
60
60
|
<div
|
|
61
61
|
class="mdc-linear-progress__buffer-bar"
|
|
62
|
-
style=${f(
|
|
62
|
+
style=${f(i)}>
|
|
63
63
|
</div>
|
|
64
64
|
<div class="mdc-linear-progress__buffer-dots"></div>
|
|
65
65
|
</div>
|
|
66
66
|
<div
|
|
67
67
|
class="mdc-linear-progress__bar mdc-linear-progress__primary-bar"
|
|
68
|
-
style=${f(
|
|
68
|
+
style=${f(n)}>
|
|
69
69
|
<span class="mdc-linear-progress__bar-inner"></span>
|
|
70
70
|
</div>
|
|
71
71
|
<div class="mdc-linear-progress__bar mdc-linear-progress__secondary-bar">
|
|
@@ -92,10 +92,10 @@ class e extends y {
|
|
|
92
92
|
if (window.ResizeObserver) {
|
|
93
93
|
this.resizeObserver = new window.ResizeObserver((r) => {
|
|
94
94
|
if (this.indeterminate) {
|
|
95
|
-
for (const
|
|
96
|
-
if (
|
|
97
|
-
const
|
|
98
|
-
this.calculateAndSetAnimationDimensions(
|
|
95
|
+
for (const s of r)
|
|
96
|
+
if (s.contentRect) {
|
|
97
|
+
const i = s.contentRect.width;
|
|
98
|
+
this.calculateAndSetAnimationDimensions(i);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}), this.resizeObserver.observe(this.rootEl);
|
|
@@ -104,8 +104,8 @@ class e extends y {
|
|
|
104
104
|
this.resizeObserver = null;
|
|
105
105
|
}
|
|
106
106
|
calculateAndSetAnimationDimensions(r) {
|
|
107
|
-
const
|
|
108
|
-
this.stylePrimaryHalf = `${
|
|
107
|
+
const s = r * 0.8367142, i = r * 2.00611057, n = r * 0.37651913, l = r * 0.84386165, m = r * 1.60277782;
|
|
108
|
+
this.stylePrimaryHalf = `${s}px`, this.stylePrimaryFull = `${i}px`, this.styleSecondaryQuarter = `${n}px`, this.styleSecondaryHalf = `${l}px`, this.styleSecondaryFull = `${m}px`, this.restartAnimation();
|
|
109
109
|
}
|
|
110
110
|
async restartAnimation() {
|
|
111
111
|
this.animationReady = !1, await this.updateComplete, await new Promise(requestAnimationFrame), this.animationReady = !0, await this.updateComplete;
|
|
@@ -118,7 +118,7 @@ class e extends y {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
a([
|
|
121
|
-
|
|
121
|
+
_(".mdc-linear-progress")
|
|
122
122
|
], e.prototype, "rootEl", void 0);
|
|
123
123
|
a([
|
|
124
124
|
o({ type: Boolean, reflect: !0 })
|
|
@@ -136,7 +136,7 @@ a([
|
|
|
136
136
|
o({ type: Boolean, reflect: !0 })
|
|
137
137
|
], e.prototype, "closed", void 0);
|
|
138
138
|
a([
|
|
139
|
-
|
|
139
|
+
v,
|
|
140
140
|
o({ attribute: "aria-label" })
|
|
141
141
|
], e.prototype, "ariaLabel", void 0);
|
|
142
142
|
a([
|
|
@@ -166,19 +166,19 @@ a([
|
|
|
166
166
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
167
167
|
*/
|
|
168
168
|
const w = g`@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%);transform:translateX(var(--mdc-linear-progress-primary-half, 83.67142%))}100%{transform:translateX(200.611057%);transform:translateX(var(--mdc-linear-progress-primary-full, 200.611057%))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%);transform:translateX(var(--mdc-linear-progress-secondary-quarter, 37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%);transform:translateX(var(--mdc-linear-progress-secondary-half, 84.386165%))}100%{transform:translateX(160.277782%);transform:translateX(var(--mdc-linear-progress-secondary-full, 160.277782%))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(-10px)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%);transform:translateX(var(--mdc-linear-progress-primary-half-neg, -83.67142%))}100%{transform:translateX(-200.611057%);transform:translateX(var(--mdc-linear-progress-primary-full-neg, -200.611057%))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg, -37.651913%))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%);transform:translateX(var(--mdc-linear-progress-secondary-half-neg, -84.386165%))}100%{transform:translateX(-160.277782%);transform:translateX(var(--mdc-linear-progress-secondary-full-neg, -160.277782%))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid transparent;overflow:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;width:100%;height:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;width:100%;height:100%}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}.mdc-linear-progress__bar-inner{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-linear-progress__buffer-dots{background-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E")}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6}.mdc-linear-progress{height:4px}.mdc-linear-progress__bar-inner{border-top-width:4px}.mdc-linear-progress__buffer-dots{background-size:10px 4px}:host{display:block}.mdc-linear-progress__buffer-bar{background-color:#e6e6e6;background-color:var(--mdc-linear-progress-buffer-color, #e6e6e6)}.mdc-linear-progress__buffer-dots{background-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E");background-image:var(--mdc-linear-progress-buffering-dots-image, url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E"))}`, X = ":host{--mdc-linear-progress-buffer-color: var(--mdc-theme-border)}";
|
|
169
|
-
var
|
|
170
|
-
for (var
|
|
171
|
-
(
|
|
172
|
-
return n
|
|
169
|
+
var k = Object.getOwnPropertyDescriptor, z = (c, r, s, i) => {
|
|
170
|
+
for (var n = i > 1 ? void 0 : i ? k(r, s) : r, l = c.length - 1, m; l >= 0; l--)
|
|
171
|
+
(m = c[l]) && (n = m(n) || n);
|
|
172
|
+
return n;
|
|
173
173
|
};
|
|
174
|
-
let
|
|
174
|
+
let d = class extends e {
|
|
175
175
|
};
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
d.styles = [w, g`${b(X)}`];
|
|
177
|
+
d = z([
|
|
178
178
|
h("cv-linear-progress")
|
|
179
|
-
],
|
|
180
|
-
const
|
|
179
|
+
], d);
|
|
180
|
+
const E = d;
|
|
181
181
|
export {
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
d as CovalentLinearProgress,
|
|
183
|
+
E as default
|
|
184
184
|
};
|
package/list-item.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./mwc-list-item.css-
|
|
2
|
-
${
|
|
3
|
-
`,
|
|
4
|
-
${
|
|
5
|
-
`,
|
|
6
|
-
${
|
|
7
|
-
`];exports.CovalentListItem=c([
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./mwc-list-item.css-Bib8TVz5.js"),e=require("./query-assigned-elements-8EurZY45.js"),o=require("./list-item-qiQvSXie.js");var m=Object.getOwnPropertyDescriptor,c=(s,r,v,i)=>{for(var t=i>1?void 0:i?m(r,v):r,l=s.length-1,n;l>=0;l--)(n=s[l])&&(t=n(t)||t);return t};exports.CovalentListItem=class extends a.ListItemBase{};exports.CovalentListItem.styles=[e.i`
|
|
2
|
+
${e.r(a.styles)}
|
|
3
|
+
`,e.i`
|
|
4
|
+
${e.r(o.styles)}
|
|
5
|
+
`,e.i`
|
|
6
|
+
${e.r(o.covalentStyles)}
|
|
7
|
+
`];exports.CovalentListItem=c([e.e("cv-list-item")],exports.CovalentListItem);const u=exports.CovalentListItem;exports.default=u;
|
package/list-item.mjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { s as
|
|
4
|
-
var $ = Object.
|
|
5
|
-
for (var
|
|
6
|
-
(
|
|
7
|
-
return t
|
|
1
|
+
import { s as n, L as c } from "./mwc-list-item.css-BtGzAhUF.mjs";
|
|
2
|
+
import { r, i as a, e as p } from "./query-assigned-elements-D930kELM.mjs";
|
|
3
|
+
import { s as f, c as y } from "./list-item-quxukAxk.mjs";
|
|
4
|
+
var $ = Object.getOwnPropertyDescriptor, L = (l, o, v, m) => {
|
|
5
|
+
for (var t = m > 1 ? void 0 : m ? $(o, v) : o, e = l.length - 1, i; e >= 0; e--)
|
|
6
|
+
(i = l[e]) && (t = i(t) || t);
|
|
7
|
+
return t;
|
|
8
8
|
};
|
|
9
|
-
let
|
|
9
|
+
let s = class extends c {
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
${
|
|
11
|
+
s.styles = [
|
|
12
|
+
a`
|
|
13
|
+
${r(n)}
|
|
14
14
|
`,
|
|
15
|
-
|
|
16
|
-
${
|
|
15
|
+
a`
|
|
16
|
+
${r(f)}
|
|
17
17
|
`,
|
|
18
|
-
|
|
19
|
-
${
|
|
18
|
+
a`
|
|
19
|
+
${r(y)}
|
|
20
20
|
`
|
|
21
21
|
];
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
],
|
|
25
|
-
const
|
|
22
|
+
s = L([
|
|
23
|
+
p("cv-list-item")
|
|
24
|
+
], s);
|
|
25
|
+
const I = s;
|
|
26
26
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
s as CovalentListItem,
|
|
28
|
+
I as default
|
|
29
29
|
};
|
package/list.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
2
|
-
${
|
|
3
|
-
`];exports.CovalentList=g([
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./query-assigned-elements-8EurZY45.js"),l=require("./mwc-list.css-DWV8pw-x.js"),v=":host{padding-right:var(--cv-list-padding-right, 0);padding-left:var(--cv-list-padding-left, 0)}:host(.subnav) ::slotted(*),:host([subnav]) ::slotted(*){height:32px;font-weight:var(--mdc-typography-body2-font-weight);border-radius:var(--cv-list-item-border-radius, 100px);padding-right:var(--cv-list-padding-right, 16px);padding-left:var(--cv-list-padding-left, 16px)}:host(.subnav),:host([subnav]){--cv-list-padding-right: 0;--cv-list-padding-left: 16px;padding-left:32px}.mdc-deprecated-list{width:100%}";var o=Object.getOwnPropertyDescriptor,g=(e,a,n,d)=>{for(var t=d>1?void 0:d?o(a,n):a,s=e.length-1,r;s>=0;s--)(r=e[s])&&(t=r(t)||t);return t};exports.CovalentList=class extends l.ListBase{};exports.CovalentList.styles=[l.styles,i.i`
|
|
2
|
+
${i.r(v)}
|
|
3
|
+
`];exports.CovalentList=g([i.e("cv-list")],exports.CovalentList);const p=exports.CovalentList;exports.default=p;
|
package/list.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as o, L as g } from "./mwc-list.css-
|
|
3
|
-
const
|
|
4
|
-
var
|
|
5
|
-
for (var t =
|
|
6
|
-
(r =
|
|
7
|
-
return
|
|
1
|
+
import { r as p, i as n, e as v } from "./query-assigned-elements-D930kELM.mjs";
|
|
2
|
+
import { s as o, L as g } from "./mwc-list.css-BBbQixrF.mjs";
|
|
3
|
+
const h = ":host{padding-right:var(--cv-list-padding-right, 0);padding-left:var(--cv-list-padding-left, 0)}:host(.subnav) ::slotted(*),:host([subnav]) ::slotted(*){height:32px;font-weight:var(--mdc-typography-body2-font-weight);border-radius:var(--cv-list-item-border-radius, 100px);padding-right:var(--cv-list-padding-right, 16px);padding-left:var(--cv-list-padding-left, 16px)}:host(.subnav),:host([subnav]){--cv-list-padding-right: 0;--cv-list-padding-left: 16px;padding-left:32px}.mdc-deprecated-list{width:100%}";
|
|
4
|
+
var c = Object.getOwnPropertyDescriptor, f = (e, a, l, d) => {
|
|
5
|
+
for (var t = d > 1 ? void 0 : d ? c(a, l) : a, i = e.length - 1, r; i >= 0; i--)
|
|
6
|
+
(r = e[i]) && (t = r(t) || t);
|
|
7
|
+
return t;
|
|
8
8
|
};
|
|
9
|
-
let
|
|
9
|
+
let s = class extends g {
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
s.styles = [
|
|
12
12
|
o,
|
|
13
|
-
|
|
14
|
-
${
|
|
13
|
+
n`
|
|
14
|
+
${p(h)}
|
|
15
15
|
`
|
|
16
16
|
];
|
|
17
|
-
|
|
17
|
+
s = f([
|
|
18
18
|
v("cv-list")
|
|
19
|
-
],
|
|
20
|
-
const
|
|
19
|
+
], s);
|
|
20
|
+
const x = s;
|
|
21
21
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
s as CovalentList,
|
|
23
|
+
x as default
|
|
24
24
|
};
|
package/menu.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
2
|
-
${
|
|
3
|
-
`];exports.CovalentMenu=M([
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./mwc-menu.css-D3EFugOg.js"),s=require("./query-assigned-elements-8EurZY45.js"),o="mwc-menu-surface{--mdc-theme-surface: var(--cv-theme-surface-container)}";var v=Object.getOwnPropertyDescriptor,M=(n,u,c,r)=>{for(var e=r>1?void 0:r?v(u,c):u,t=n.length-1,a;t>=0;t--)(a=n[t])&&(e=a(e)||e);return e};exports.CovalentMenu=class extends l.MenuBase{};exports.CovalentMenu.styles=[l.styles,s.i`
|
|
2
|
+
${s.r(o)}
|
|
3
|
+
`];exports.CovalentMenu=M([s.e("cv-menu")],exports.CovalentMenu);const i=exports.CovalentMenu;exports.default=i;
|
package/menu.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import {
|
|
1
|
+
import { s as l, M as u } from "./mwc-menu.css-BUjxqJjM.mjs";
|
|
2
|
+
import { r as m, i as v, e as f } from "./query-assigned-elements-D930kELM.mjs";
|
|
3
3
|
const p = "mwc-menu-surface{--mdc-theme-surface: var(--cv-theme-surface-container)}";
|
|
4
|
-
var
|
|
5
|
-
for (var e =
|
|
6
|
-
(c =
|
|
7
|
-
return
|
|
4
|
+
var i = Object.getOwnPropertyDescriptor, y = (r, a, o, n) => {
|
|
5
|
+
for (var e = n > 1 ? void 0 : n ? i(a, o) : a, t = r.length - 1, c; t >= 0; t--)
|
|
6
|
+
(c = r[t]) && (e = c(e) || e);
|
|
7
|
+
return e;
|
|
8
8
|
};
|
|
9
|
-
let
|
|
9
|
+
let s = class extends u {
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
s.styles = [
|
|
12
|
+
l,
|
|
13
|
+
v`
|
|
14
14
|
${m(p)}
|
|
15
15
|
`
|
|
16
16
|
];
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
],
|
|
20
|
-
const h =
|
|
17
|
+
s = y([
|
|
18
|
+
f("cv-menu")
|
|
19
|
+
], s);
|
|
20
|
+
const h = s;
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
s as CovalentMenu,
|
|
23
23
|
h as default
|
|
24
24
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { b as c } from "./tslib.es6-
|
|
2
|
-
import { e as l, R as p } from "./ripple-handlers-
|
|
1
|
+
import { b as c } from "./tslib.es6-CJ7TUrOc.mjs";
|
|
2
|
+
import { e as l, R as p } from "./ripple-handlers-_gEIkKpx.mjs";
|
|
3
3
|
import { a as i } from "./aria-property-6O5bK0tV.mjs";
|
|
4
|
-
import { F as x } from "./form-element-
|
|
5
|
-
import { x as h, i as u } from "./query-assigned-elements-
|
|
6
|
-
import { n as
|
|
4
|
+
import { F as x } from "./form-element-BOhYShN_.mjs";
|
|
5
|
+
import { x as h, i as u } from "./query-assigned-elements-D930kELM.mjs";
|
|
6
|
+
import { n as d } from "./property-DJzm_oB9.mjs";
|
|
7
7
|
import { t as n } from "./state-B_tK3mBm.mjs";
|
|
8
|
-
import { e as _ } from "./event-options-
|
|
9
|
-
import { i as k } from "./query-
|
|
10
|
-
import { o as f } from "./class-map-
|
|
11
|
-
import { l as t } from "./if-defined-
|
|
8
|
+
import { e as _ } from "./event-options-C7DvXRgq.mjs";
|
|
9
|
+
import { i as k } from "./query-CDOd1Kwm.mjs";
|
|
10
|
+
import { o as f } from "./class-map-DPUylGZM.mjs";
|
|
11
|
+
import { l as t } from "./if-defined-DGrxuPYz.mjs";
|
|
12
12
|
/**
|
|
13
13
|
* @license
|
|
14
14
|
* Copyright 2019 Google LLC
|
|
@@ -22,15 +22,15 @@ class o extends x {
|
|
|
22
22
|
return {};
|
|
23
23
|
}
|
|
24
24
|
update(e) {
|
|
25
|
-
const
|
|
26
|
-
if (
|
|
27
|
-
const s = this.calculateAnimationStateName(!!a, !!
|
|
25
|
+
const r = e.get("indeterminate"), a = e.get("checked"), m = e.get("disabled");
|
|
26
|
+
if (r !== void 0 || a !== void 0 || m !== void 0) {
|
|
27
|
+
const s = this.calculateAnimationStateName(!!a, !!r, !!m), b = this.calculateAnimationStateName(this.checked, this.indeterminate, this.disabled);
|
|
28
28
|
this.animationClass = `${s}-${b}`;
|
|
29
29
|
}
|
|
30
30
|
super.update(e);
|
|
31
31
|
}
|
|
32
|
-
calculateAnimationStateName(e,
|
|
33
|
-
return a ? "disabled" :
|
|
32
|
+
calculateAnimationStateName(e, r, a) {
|
|
33
|
+
return a ? "disabled" : r ? "indeterminate" : e ? "checked" : "unchecked";
|
|
34
34
|
}
|
|
35
35
|
// TODO(dfreedm): Make this use selected as a param after Polymer/internal#739
|
|
36
36
|
/** @soyTemplate */
|
|
@@ -49,7 +49,7 @@ class o extends x {
|
|
|
49
49
|
* @soyClasses checkboxClasses: .mdc-checkbox
|
|
50
50
|
*/
|
|
51
51
|
render() {
|
|
52
|
-
const e = this.indeterminate || this.checked,
|
|
52
|
+
const e = this.indeterminate || this.checked, r = {
|
|
53
53
|
"mdc-checkbox--disabled": this.disabled,
|
|
54
54
|
"mdc-checkbox--selected": e,
|
|
55
55
|
"mdc-checkbox--touch": !this.reducedTouchTarget,
|
|
@@ -63,7 +63,7 @@ class o extends x {
|
|
|
63
63
|
"mdc-checkbox--anim-unchecked-indeterminate": this.animationClass == "unchecked-indeterminate"
|
|
64
64
|
}, a = this.indeterminate ? "mixed" : void 0;
|
|
65
65
|
return h`
|
|
66
|
-
<div class="mdc-checkbox mdc-checkbox--upgraded ${f(
|
|
66
|
+
<div class="mdc-checkbox mdc-checkbox--upgraded ${f(r)}">
|
|
67
67
|
<input type="checkbox"
|
|
68
68
|
class="mdc-checkbox__native-control"
|
|
69
69
|
name="${t(this.name)}"
|
|
@@ -108,10 +108,10 @@ class o extends x {
|
|
|
108
108
|
this.focused = !1, this.handleRippleBlur();
|
|
109
109
|
}
|
|
110
110
|
handleRippleMouseDown(e) {
|
|
111
|
-
const
|
|
112
|
-
window.removeEventListener("mouseup",
|
|
111
|
+
const r = () => {
|
|
112
|
+
window.removeEventListener("mouseup", r), this.handleRippleDeactivate();
|
|
113
113
|
};
|
|
114
|
-
window.addEventListener("mouseup",
|
|
114
|
+
window.addEventListener("mouseup", r), this.rippleHandlers.startPress(e);
|
|
115
115
|
}
|
|
116
116
|
handleRippleTouchStart(e) {
|
|
117
117
|
this.rippleHandlers.startPress(e);
|
|
@@ -149,34 +149,34 @@ c([
|
|
|
149
149
|
k("input")
|
|
150
150
|
], o.prototype, "formElement", void 0);
|
|
151
151
|
c([
|
|
152
|
-
|
|
152
|
+
d({ type: Boolean, reflect: !0 })
|
|
153
153
|
], o.prototype, "checked", void 0);
|
|
154
154
|
c([
|
|
155
|
-
|
|
155
|
+
d({ type: Boolean })
|
|
156
156
|
], o.prototype, "indeterminate", void 0);
|
|
157
157
|
c([
|
|
158
|
-
|
|
158
|
+
d({ type: Boolean, reflect: !0 })
|
|
159
159
|
], o.prototype, "disabled", void 0);
|
|
160
160
|
c([
|
|
161
|
-
|
|
161
|
+
d({ type: String, reflect: !0 })
|
|
162
162
|
], o.prototype, "name", void 0);
|
|
163
163
|
c([
|
|
164
|
-
|
|
164
|
+
d({ type: String })
|
|
165
165
|
], o.prototype, "value", void 0);
|
|
166
166
|
c([
|
|
167
167
|
i,
|
|
168
|
-
|
|
168
|
+
d({ type: String, attribute: "aria-label" })
|
|
169
169
|
], o.prototype, "ariaLabel", void 0);
|
|
170
170
|
c([
|
|
171
171
|
i,
|
|
172
|
-
|
|
172
|
+
d({ type: String, attribute: "aria-labelledby" })
|
|
173
173
|
], o.prototype, "ariaLabelledBy", void 0);
|
|
174
174
|
c([
|
|
175
175
|
i,
|
|
176
|
-
|
|
176
|
+
d({ type: String, attribute: "aria-describedby" })
|
|
177
177
|
], o.prototype, "ariaDescribedBy", void 0);
|
|
178
178
|
c([
|
|
179
|
-
|
|
179
|
+
d({ type: Boolean })
|
|
180
180
|
], o.prototype, "reducedTouchTarget", void 0);
|
|
181
181
|
c([
|
|
182
182
|
n()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("./tslib.es6-CHeFCc6E.js"),k=require("./ripple-handlers-
|
|
1
|
+
"use strict";const o=require("./tslib.es6-CHeFCc6E.js"),k=require("./ripple-handlers-C7an-EE1.js"),n=require("./aria-property-Dl2ZKBbP.js"),p=require("./form-element-BSAsNxWv.js"),i=require("./query-assigned-elements-8EurZY45.js"),d=require("./property-DYTC_2-m.js"),m=require("./state-C3HoXfoa.js"),x=require("./event-options-DD382x85.js"),s=require("./query-Dv2F3m_t.js"),u=require("./class-map-DTzB8z-1.js"),t=require("./if-defined-CZCqOAYs.js");/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as h, a as p, b as r } from "./tslib.es6-
|
|
1
|
+
import { _ as h, a as p, b as r } from "./tslib.es6-CJ7TUrOc.mjs";
|
|
2
2
|
import "./inert.esm-C8R-X3j4.mjs";
|
|
3
|
-
import { B as b } from "./base-element-
|
|
3
|
+
import { B as b } from "./base-element-DUJkJh_y.mjs";
|
|
4
4
|
import { o as F } from "./observer-DQ8OfVDQ.mjs";
|
|
5
|
-
import { x as c } from "./query-assigned-elements-
|
|
5
|
+
import { x as c } from "./query-assigned-elements-D930kELM.mjs";
|
|
6
6
|
import { n as l } from "./property-DJzm_oB9.mjs";
|
|
7
|
-
import { i as C } from "./query-
|
|
8
|
-
import { o as g } from "./class-map-
|
|
7
|
+
import { i as C } from "./query-CDOd1Kwm.mjs";
|
|
8
|
+
import { o as g } from "./class-map-DPUylGZM.mjs";
|
|
9
9
|
import { a as N } from "./utils-Dr5MegQq.mjs";
|
|
10
10
|
/**
|
|
11
11
|
* @license
|
|
@@ -124,7 +124,7 @@ var T = (
|
|
|
124
124
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
125
125
|
* THE SOFTWARE.
|
|
126
126
|
*/
|
|
127
|
-
var
|
|
127
|
+
var v = (
|
|
128
128
|
/** @class */
|
|
129
129
|
function(n) {
|
|
130
130
|
h(e, n);
|
|
@@ -194,8 +194,8 @@ var E = (
|
|
|
194
194
|
var s = t.keyCode, o = t.key, d = o === "Escape" || s === 27;
|
|
195
195
|
d && this.close();
|
|
196
196
|
}, e.prototype.handleTransitionEnd = function(t) {
|
|
197
|
-
var s = i.OPENING, o = 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, o = 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(o));
|
|
199
199
|
}, e.prototype.opened = function() {
|
|
200
200
|
}, e.prototype.closed = function() {
|
|
201
201
|
}, e.prototype.runNextAnimationFrame = function(t) {
|
|
@@ -244,7 +244,7 @@ var m = (
|
|
|
244
244
|
}, e.prototype.closed = function() {
|
|
245
245
|
this.adapter.releaseFocus();
|
|
246
246
|
}, e;
|
|
247
|
-
}(
|
|
247
|
+
}(v)
|
|
248
248
|
);
|
|
249
249
|
/**
|
|
250
250
|
* @license
|
|
@@ -257,7 +257,7 @@ class a extends b {
|
|
|
257
257
|
super(...arguments), this._previousFocus = null, this.open = !1, this.hasHeader = !1, this.type = "";
|
|
258
258
|
}
|
|
259
259
|
get mdcFoundationClass() {
|
|
260
|
-
return this.type === "modal" ? m :
|
|
260
|
+
return this.type === "modal" ? m : v;
|
|
261
261
|
}
|
|
262
262
|
createAdapter() {
|
|
263
263
|
return Object.assign(Object.assign({}, N(this.mdcRoot)), { elementHasClass: (e, t) => e.classList.contains(t), saveFocus: () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("./tslib.es6-CHeFCc6E.js");require("./inert.esm-t-228rpY.js");const
|
|
1
|
+
"use strict";const r=require("./tslib.es6-CHeFCc6E.js");require("./inert.esm-t-228rpY.js");const E=require("./base-element-DP9GZic2.js"),O=require("./observer-N9cgkDqh.js"),c=require("./query-assigned-elements-8EurZY45.js"),l=require("./property-DYTC_2-m.js"),f=require("./query-Dv2F3m_t.js"),b=require("./class-map-DTzB8z-1.js"),_=require("./utils-wMBJ9n_n.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}(F);/**
|
|
65
65
|
* @license
|
|
66
66
|
* Copyright 2018 Google Inc.
|
|
67
67
|
*
|
|
@@ -86,7 +86,7 @@
|
|
|
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
|
|
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:h}createAdapter(){return Object.assign(Object.assign({},_.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>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("./tslib.es6-CHeFCc6E.js"),e=require("./query-assigned-elements-
|
|
1
|
+
"use strict";const n=require("./tslib.es6-CHeFCc6E.js"),e=require("./query-assigned-elements-8EurZY45.js");/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2021 Google LLC
|
|
4
4
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as o } from "./tslib.es6-
|
|
2
|
-
import { i as n, s as e, x as i, e as s } from "./query-assigned-elements-
|
|
1
|
+
import { b as o } from "./tslib.es6-CJ7TUrOc.mjs";
|
|
2
|
+
import { i as n, s as e, x as i, e as s } from "./query-assigned-elements-D930kELM.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
5
5
|
* Copyright 2021 Google LLC
|