@covalent/components 9.0.0 → 9.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_commonjsHelpers-DjF3Plf2.mjs → _commonjsHelpers-HP5nalso.mjs} +2 -2
- package/action-ribbon.js +2 -2
- package/action-ribbon.mjs +24 -24
- package/alert.js +3 -3
- package/alert.mjs +4 -4
- package/app-shell.js +1 -1
- package/app-shell.mjs +6 -6
- package/async-directive-2AOdKBUW.mjs +66 -0
- package/async-directive-DZ3MjSIj.js +5 -0
- package/badge.js +1 -1
- package/badge.mjs +6 -6
- package/{base-element-aUDWLn36.js → base-element-5ZU-p99q.js} +1 -1
- package/{base-element-C-U4OfWx.mjs → base-element-CzNmpVoz.mjs} +1 -1
- package/button.js +1 -1
- package/button.mjs +24 -24
- package/card.js +1 -1
- package/card.mjs +12 -12
- package/check-list-item.js +7 -7
- package/check-list-item.mjs +31 -31
- package/checkbox.js +1 -1
- package/checkbox.mjs +9 -9
- package/{chip-C8L37ovG.mjs → chip-5QP7xPTY.mjs} +6 -6
- package/{chip-BsDYOEFW.js → chip-CitHXhY7.js} +1 -1
- package/chip-set.js +1 -1
- package/chip-set.mjs +114 -114
- package/chip.js +1 -1
- package/chip.mjs +2 -2
- package/circular-progress.js +4 -4
- package/circular-progress.mjs +10 -10
- package/class-map-BHl5MHd7.mjs +36 -0
- package/class-map-PsUYVqvf.js +5 -0
- package/{code-editor-CSH3MdBF.js → code-editor-CCUZsYkN.js} +135 -137
- package/{code-editor-Bshyfjyn.mjs → code-editor-JaW-06cH.mjs} +8151 -8113
- package/code-editor.js +1 -1
- package/code-editor.mjs +2 -2
- package/code-snippet.js +1 -1
- package/code-snippet.mjs +7 -7
- package/{dialog-BoNH4r3n.mjs → dialog-BVmWYLqR.mjs} +194 -194
- package/{dialog-LUOzoMeO.js → dialog-DzaPP3Vt.js} +9 -9
- package/dialog.js +1 -1
- package/dialog.mjs +2 -2
- package/{directive-oAbCiebi.mjs → directive-B76A7YXI.mjs} +4 -4
- package/directive-C_VV3qwo.js +5 -0
- package/directive-helpers-6HCt_-zj.mjs +11 -0
- package/directive-helpers-BnUMbYHh.js +5 -0
- package/drawer.js +1 -1
- package/drawer.mjs +2 -2
- package/empty-state.js +1 -1
- package/empty-state.mjs +7 -7
- package/{event-options-CNykeE2u.mjs → event-options-D44mpm5S.mjs} +1 -1
- package/{event-options-BH8ks-kz.js → event-options-IG-2g8HU.js} +1 -1
- package/expansion-panel-item.js +1 -1
- package/expansion-panel-item.mjs +4 -4
- package/expansion-panel.js +1 -1
- package/expansion-panel.mjs +1 -1
- package/focused-page.js +1 -1
- package/focused-page.mjs +8 -8
- package/form-element--PS8uSRI.js +5 -0
- package/form-element-Dn0Lerng.mjs +50 -0
- package/formfield.js +4 -4
- package/formfield.mjs +13 -13
- package/{foundation-qQ4jzaAu.mjs → foundation-BYhAXCW_.mjs} +17 -15
- package/{foundation-PL3XY-m_.mjs → foundation-D6JHa7Lg.mjs} +4 -4
- package/{foundation-pgmPu2iJ.js → foundation-aT_gy6X8.js} +1 -1
- package/{foundation-CySCCTUE.js → foundation-sIsx2I_x.js} +2 -2
- package/full-screen-dialog.js +2 -2
- package/full-screen-dialog.mjs +12 -12
- package/{html-DrhRpsz9.mjs → html-DhKW0KfF.mjs} +1 -1
- package/{html-DUGRoHaj.js → html-S7zzCKH0.js} +1 -1
- package/icon/_icon-list.d.ts +4 -0
- package/icon/_icon-list.d.ts.map +1 -0
- package/icon/icon-demo.d.ts +14 -0
- package/icon/icon-demo.d.ts.map +1 -0
- package/icon-button-toggle.js +5 -5
- package/icon-button-toggle.mjs +35 -35
- package/icon-button.js +2 -2
- package/icon-button.mjs +28 -28
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +6 -6
- package/icon-lockup.js +5 -5
- package/icon-lockup.mjs +6 -6
- package/icon-radio-toggle.js +4 -4
- package/icon-radio-toggle.mjs +8 -8
- package/icon.js +1 -1
- package/icon.mjs +14 -14
- package/{if-defined-D8C6ewRn.js → if-defined-B7G84qob.js} +1 -1
- package/{if-defined-BsNkRMMG.mjs → if-defined-DN7whKwy.mjs} +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +10 -1
- package/index.mjs +450 -112
- package/{javascript-DKtDcqDi.mjs → javascript-BtkevR81.mjs} +1 -1
- package/{javascript-54eqLOAw.js → javascript-fH54qAGk.js} +1 -1
- package/linear-progress.js +7 -7
- package/linear-progress.mjs +17 -17
- package/{list-item-BZVW1fmJ.js → list-item-BQ6SDTvW.js} +1 -1
- package/{list-item-DCzzLVZh.mjs → list-item-DuBDCnZ-.mjs} +1 -1
- package/list-item.js +2 -2
- package/list-item.mjs +16 -16
- package/list.js +1 -1
- package/list.mjs +16 -16
- package/menu.js +2 -2
- package/menu.mjs +11 -11
- package/{mwc-checkbox.css-Cd0yCOHu.js → mwc-checkbox.css-BV3dyB4C.js} +1 -1
- package/{mwc-checkbox.css-MBOzkrQg.mjs → mwc-checkbox.css-CNoj0V14.mjs} +31 -31
- package/{mwc-drawer-base-Dgs9327G.mjs → mwc-drawer-base-A-4s_ZnE.mjs} +10 -10
- package/{mwc-drawer-base-D-48lqfn.js → mwc-drawer-base-DWczEPvb.js} +3 -3
- package/{mwc-icon-BZRds8SY.mjs → mwc-icon-DTCUplqR.mjs} +2 -2
- package/{mwc-icon-BumH81hp.js → mwc-icon-Xgr698ax.js} +1 -1
- package/{mwc-icon-button.css-DJMY7U7e.mjs → mwc-icon-button.css-DJiDOS0_.mjs} +1 -1
- package/{mwc-icon-button.css-BtgKBOl3.js → mwc-icon-button.css-DOVWWyjA.js} +1 -1
- package/{mwc-line-ripple-directive-zhm5Zc8i.mjs → mwc-line-ripple-directive-TO37-41n.mjs} +34 -34
- package/{mwc-line-ripple-directive-DvPWr3ER.js → mwc-line-ripple-directive-r80jluoU.js} +4 -4
- package/{mwc-list-item.css-CtRq5wSu.js → mwc-list-item.css-CO1JlA8e.js} +10 -10
- package/{mwc-list-item.css-g34xqhLC.mjs → mwc-list-item.css-Cg9onxQ-.mjs} +11 -11
- package/{mwc-list.css-DFOdJyFB.mjs → mwc-list.css-C_-DVEme.mjs} +102 -102
- package/{mwc-list.css-CaMJWsDp.js → mwc-list.css-Deg9oBaO.js} +1 -1
- package/{mwc-menu.css-pxcxlTrh.js → mwc-menu.css-Dvr-f3_T.js} +18 -18
- package/{mwc-menu.css-BEiPghgR.mjs → mwc-menu.css-qpZxKN-g.mjs} +306 -306
- package/{mwc-radio.css-XRx0vL1k.mjs → mwc-radio.css-BiHC1R8I.mjs} +11 -11
- package/{mwc-radio.css-CVMtIq-L.js → mwc-radio.css-DjO4Rn44.js} +1 -1
- package/{mwc-slider.css-WrkrmqkL.js → mwc-slider.css-DFOaS04S.js} +13 -13
- package/{mwc-slider.css-2Bqk43z7.mjs → mwc-slider.css-Deh1__Ar.mjs} +290 -279
- package/{mwc-tab.css-B9yQpkYf.mjs → mwc-tab.css-2UrPKkNg.mjs} +34 -34
- package/{mwc-tab.css-CgdXMZBB.js → mwc-tab.css-sq5suZKe.js} +11 -11
- package/{mwc-top-app-bar-base-B0EW9eNk.mjs → mwc-top-app-bar-base-BIZGhVtM.mjs} +40 -40
- package/{mwc-top-app-bar-base-CSXRBOiX.js → mwc-top-app-bar-base-DUdOcIjS.js} +7 -7
- package/nav-list-item.js +3 -3
- package/nav-list-item.mjs +18 -18
- package/notebook-cell.js +1 -1
- package/notebook-cell.mjs +25 -25
- package/package.json +6 -1
- package/{property-DYTC_2-m.js → property-BRKnMYJe.js} +1 -1
- package/{python-CEXbOLXn.mjs → python-BkZeja0y.mjs} +1 -1
- package/{python-CzGtlN7c.js → python-C2_KOh3o.js} +1 -1
- package/query-BvlE-gMJ.js +5 -0
- package/query-DSO61t36.mjs +15 -0
- package/query-assigned-elements-BQszEgac.js +31 -0
- package/query-assigned-elements-DhyCP_2z.mjs +591 -0
- package/query-assigned-nodes-9DFnkxV8.js +5 -0
- package/query-assigned-nodes-B-jCihdA.mjs +17 -0
- package/radio-list-item.js +5 -5
- package/radio-list-item.mjs +24 -24
- package/radio.js +1 -1
- package/radio.mjs +9 -9
- package/{ripple-handlers-i3WPEBiO.mjs → ripple-handlers-BAdg-fJB.mjs} +72 -72
- package/{ripple-handlers-CzfSBjWo.js → ripple-handlers-BDmOLx8c.js} +5 -5
- package/select.js +12 -12
- package/select.mjs +119 -118
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +8 -8
- package/slider-range.js +7 -7
- package/slider-range.mjs +39 -39
- package/slider.js +1 -1
- package/slider.mjs +18 -18
- package/snackbar.js +8 -8
- package/snackbar.mjs +21 -21
- package/{state-DaD9o2aK.mjs → state-B_tK3mBm.mjs} +2 -2
- package/{state-C3HoXfoa.js → state-Csv4sdJA.js} +1 -1
- package/status-dialog.js +1 -1
- package/status-dialog.mjs +7 -7
- package/status-header-item.js +1 -1
- package/status-header-item.mjs +18 -18
- package/status-header.js +1 -1
- package/status-header.mjs +2 -2
- package/style-map-3QfsA_1O.js +5 -0
- package/style-map-QxIETvrs.mjs +42 -0
- package/switch.js +6 -6
- package/switch.mjs +40 -40
- package/tab-bar.js +5 -5
- package/tab-bar.mjs +93 -93
- package/tab.js +1 -1
- package/tab.mjs +5 -5
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +11 -11
- package/textarea.js +6 -6
- package/textarea.mjs +22 -22
- package/{textfield-BwmiygD8.js → textfield-CO6CFCCn.js} +30 -30
- package/{textfield-C6sUZIeA.mjs → textfield-WSgoABZn.mjs} +103 -103
- package/textfield.js +2 -2
- package/textfield.mjs +9 -9
- package/toolbar.js +1 -1
- package/toolbar.mjs +2 -2
- package/tooltip.js +3 -3
- package/tooltip.mjs +56 -55
- package/{top-app-bar-4SA3DjLX.mjs → top-app-bar-BvXNELe9.mjs} +1 -1
- package/{top-app-bar-CGjBuyiD.js → top-app-bar-Cvp1aN42.js} +1 -1
- package/top-app-bar-fixed.js +8 -8
- package/top-app-bar-fixed.mjs +35 -35
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +12 -12
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +5 -5
- package/tree-list.js +1 -1
- package/tree-list.mjs +5 -5
- package/tslib.es6-CISSdiiH.mjs +75 -0
- package/{typescript-DotYReBq.mjs → typescript-BUN0g4m9.mjs} +1 -1
- package/{typescript-D_zVB3gH.js → typescript-DzngJr4U.js} +1 -1
- package/typography.js +1 -1
- package/typography.mjs +10 -10
- package/async-directive-Cx1B9M5C.mjs +0 -66
- package/async-directive-y3fBDDSk.js +0 -5
- package/class-map-C1SJpero.mjs +0 -36
- package/class-map-C8G1ALWK.js +0 -5
- package/directive-C7oCP5Bh.js +0 -5
- package/directive-helpers-CllkNDrI.mjs +0 -11
- package/directive-helpers-Duf3sfLn.js +0 -5
- package/form-element-CxSqbssX.mjs +0 -50
- package/form-element-DwqUbs65.js +0 -5
- package/query-BBDQWsft.mjs +0 -15
- package/query-BxDs8ftQ.js +0 -5
- package/query-assigned-elements-4CafVNR8.js +0 -31
- package/query-assigned-elements-DCt2xozt.mjs +0 -591
- package/query-assigned-nodes-B9zBfkh6.mjs +0 -17
- package/query-assigned-nodes-CckKHm2z.js +0 -5
- package/style-map-BJBXlSqn.js +0 -5
- package/style-map-CCsABR5m.mjs +0 -42
- package/tslib.es6-pPsSiLLK.mjs +0 -75
package/chip-set.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { s as M, x as D, i as L, r as O, e as _ } from "./query-assigned-elements-
|
2
|
-
import { M as E, a as A, b as T, C as w, c as
|
3
|
-
import {
|
4
|
-
import { M as B } from "./foundation-
|
5
|
-
import { K as
|
1
|
+
import { s as M, x as D, i as L, r as O, e as _ } from "./query-assigned-elements-DhyCP_2z.mjs";
|
2
|
+
import { M as E, a as A, b as T, C as w, c as f } from "./chip-5QP7xPTY.mjs";
|
3
|
+
import { _ as P, a as F, c as I } from "./tslib.es6-CISSdiiH.mjs";
|
4
|
+
import { M as B } from "./foundation-D6JHa7Lg.mjs";
|
5
|
+
import { K as d } from "./keyboard-BLpVBEDM.mjs";
|
6
6
|
import { n as y } from "./property-DJzm_oB9.mjs";
|
7
|
-
import { i as U } from "./query-
|
7
|
+
import { i as U } from "./query-DSO61t36.mjs";
|
8
8
|
/**
|
9
9
|
* @license
|
10
10
|
* Copyright 2016 Google Inc.
|
@@ -35,10 +35,10 @@ var S;
|
|
35
35
|
(function(a) {
|
36
36
|
a.CHIP = "mdc-evolution-chip";
|
37
37
|
})(S || (S = {}));
|
38
|
-
var
|
38
|
+
var v;
|
39
39
|
(function(a) {
|
40
40
|
a.INTERACTION = "MDCChipSet:interaction", a.REMOVAL = "MDCChipSet:removal", a.SELECTION = "MDCChipSet:selection";
|
41
|
-
})(
|
41
|
+
})(v || (v = {}));
|
42
42
|
/**
|
43
43
|
* @license
|
44
44
|
* Copyright 2020 Google Inc.
|
@@ -61,16 +61,16 @@ var f;
|
|
61
61
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
62
62
|
* THE SOFTWARE.
|
63
63
|
*/
|
64
|
-
var
|
64
|
+
var l;
|
65
65
|
(function(a) {
|
66
66
|
a[a.INCREMENT = 0] = "INCREMENT", a[a.DECREMENT = 1] = "DECREMENT";
|
67
|
-
})(
|
67
|
+
})(l || (l = {}));
|
68
68
|
var $ = (
|
69
69
|
/** @class */
|
70
70
|
function(a) {
|
71
71
|
P(i, a);
|
72
|
-
function i(
|
73
|
-
return a.call(this, F(F({}, i.defaultAdapter),
|
72
|
+
function i(e) {
|
73
|
+
return a.call(this, F(F({}, i.defaultAdapter), e)) || this;
|
74
74
|
}
|
75
75
|
return Object.defineProperty(i, "defaultAdapter", {
|
76
76
|
get: function() {
|
@@ -115,8 +115,8 @@ var $ = (
|
|
115
115
|
},
|
116
116
|
enumerable: !1,
|
117
117
|
configurable: !0
|
118
|
-
}), i.prototype.handleChipAnimation = function(
|
119
|
-
var
|
118
|
+
}), i.prototype.handleChipAnimation = function(e) {
|
119
|
+
var t = e.detail, r = t.chipID, n = t.animation, o = t.isComplete, h = t.addedAnnouncement, s = t.removedAnnouncement, p = this.adapter.getChipIndexById(r);
|
120
120
|
if (n === E.EXIT && o) {
|
121
121
|
s && this.adapter.announceMessage(s), this.removeAfterAnimation(p, r);
|
122
122
|
return;
|
@@ -125,99 +125,99 @@ var $ = (
|
|
125
125
|
this.adapter.announceMessage(h);
|
126
126
|
return;
|
127
127
|
}
|
128
|
-
}, i.prototype.handleChipInteraction = function(
|
129
|
-
var
|
128
|
+
}, i.prototype.handleChipInteraction = function(e) {
|
129
|
+
var t = e.detail, r = t.source, n = t.chipID, o = t.isSelectable, h = t.isSelected, s = t.shouldRemove, p = this.adapter.getChipIndexById(n);
|
130
130
|
if (s) {
|
131
131
|
this.removeChip(p);
|
132
132
|
return;
|
133
133
|
}
|
134
|
-
this.focusChip(p, r, A.FOCUSABLE), this.adapter.emitEvent(
|
134
|
+
this.focusChip(p, r, A.FOCUSABLE), this.adapter.emitEvent(v.INTERACTION, {
|
135
135
|
chipIndex: p,
|
136
136
|
chipID: n
|
137
137
|
}), o && this.setSelection(p, r, !h);
|
138
|
-
}, i.prototype.handleChipNavigation = function(
|
139
|
-
var
|
138
|
+
}, i.prototype.handleChipNavigation = function(e) {
|
139
|
+
var t = e.detail, r = t.chipID, n = t.key, o = t.isRTL, h = t.source, s = this.adapter.getChipIndexById(r), p = n === d.ARROW_RIGHT && !o || n === d.ARROW_LEFT && o;
|
140
140
|
if (p) {
|
141
141
|
this.focusNextChipFrom(s + 1);
|
142
142
|
return;
|
143
143
|
}
|
144
|
-
var c = n ===
|
144
|
+
var c = n === d.ARROW_LEFT && !o || n === d.ARROW_RIGHT && o;
|
145
145
|
if (c) {
|
146
146
|
this.focusPrevChipFrom(s - 1);
|
147
147
|
return;
|
148
148
|
}
|
149
|
-
if (n ===
|
149
|
+
if (n === d.ARROW_DOWN) {
|
150
150
|
this.focusNextChipFrom(s + 1, h);
|
151
151
|
return;
|
152
152
|
}
|
153
|
-
if (n ===
|
153
|
+
if (n === d.ARROW_UP) {
|
154
154
|
this.focusPrevChipFrom(s - 1, h);
|
155
155
|
return;
|
156
156
|
}
|
157
|
-
if (n ===
|
157
|
+
if (n === d.HOME) {
|
158
158
|
this.focusNextChipFrom(0, h);
|
159
159
|
return;
|
160
160
|
}
|
161
|
-
if (n ===
|
161
|
+
if (n === d.END) {
|
162
162
|
this.focusPrevChipFrom(this.adapter.getChipCount() - 1, h);
|
163
163
|
return;
|
164
164
|
}
|
165
165
|
}, i.prototype.getSelectedChipIndexes = function() {
|
166
|
-
for (var
|
166
|
+
for (var e, t, r = /* @__PURE__ */ new Set(), n = this.adapter.getChipCount(), o = 0; o < n; o++) {
|
167
167
|
var h = this.adapter.getChipActionsAtIndex(o);
|
168
168
|
try {
|
169
|
-
for (var s = (
|
169
|
+
for (var s = (e = void 0, I(h)), p = s.next(); !p.done; p = s.next()) {
|
170
170
|
var c = p.value;
|
171
171
|
this.adapter.isChipSelectedAtIndex(o, c) && r.add(o);
|
172
172
|
}
|
173
173
|
} catch (u) {
|
174
|
-
|
174
|
+
e = { error: u };
|
175
175
|
} finally {
|
176
176
|
try {
|
177
|
-
p && !p.done && (
|
177
|
+
p && !p.done && (t = s.return) && t.call(s);
|
178
178
|
} finally {
|
179
|
-
if (
|
179
|
+
if (e) throw e.error;
|
180
180
|
}
|
181
181
|
}
|
182
182
|
}
|
183
183
|
return r;
|
184
|
-
}, i.prototype.setChipSelected = function(
|
185
|
-
this.adapter.isChipSelectableAtIndex(
|
186
|
-
}, i.prototype.isChipSelected = function(
|
187
|
-
return this.adapter.isChipSelectedAtIndex(
|
188
|
-
}, i.prototype.removeChip = function(
|
189
|
-
|
190
|
-
chipID: this.adapter.getChipIdAtIndex(
|
191
|
-
chipIndex:
|
184
|
+
}, i.prototype.setChipSelected = function(e, t, r) {
|
185
|
+
this.adapter.isChipSelectableAtIndex(e, t) && this.setSelection(e, t, r);
|
186
|
+
}, i.prototype.isChipSelected = function(e, t) {
|
187
|
+
return this.adapter.isChipSelectedAtIndex(e, t);
|
188
|
+
}, i.prototype.removeChip = function(e) {
|
189
|
+
e >= this.adapter.getChipCount() || e < 0 || (this.adapter.startChipAnimationAtIndex(e, E.EXIT), this.adapter.emitEvent(v.REMOVAL, {
|
190
|
+
chipID: this.adapter.getChipIdAtIndex(e),
|
191
|
+
chipIndex: e,
|
192
192
|
isComplete: !1
|
193
193
|
}));
|
194
|
-
}, i.prototype.addChip = function(
|
195
|
-
|
196
|
-
}, i.prototype.focusNextChipFrom = function(
|
197
|
-
for (var r = this.adapter.getChipCount(), n =
|
198
|
-
var o = this.getFocusableAction(n,
|
194
|
+
}, i.prototype.addChip = function(e) {
|
195
|
+
e >= this.adapter.getChipCount() || e < 0 || this.adapter.startChipAnimationAtIndex(e, E.ENTER);
|
196
|
+
}, i.prototype.focusNextChipFrom = function(e, t) {
|
197
|
+
for (var r = this.adapter.getChipCount(), n = e; n < r; n++) {
|
198
|
+
var o = this.getFocusableAction(n, l.INCREMENT, t);
|
199
199
|
if (o) {
|
200
200
|
this.focusChip(n, o, A.FOCUSABLE_AND_FOCUSED);
|
201
201
|
return;
|
202
202
|
}
|
203
203
|
}
|
204
|
-
}, i.prototype.focusPrevChipFrom = function(
|
205
|
-
for (var r =
|
206
|
-
var n = this.getFocusableAction(r,
|
204
|
+
}, i.prototype.focusPrevChipFrom = function(e, t) {
|
205
|
+
for (var r = e; r > -1; r--) {
|
206
|
+
var n = this.getFocusableAction(r, l.DECREMENT, t);
|
207
207
|
if (n) {
|
208
208
|
this.focusChip(r, n, A.FOCUSABLE_AND_FOCUSED);
|
209
209
|
return;
|
210
210
|
}
|
211
211
|
}
|
212
|
-
}, i.prototype.getFocusableAction = function(
|
213
|
-
var n = this.adapter.getChipActionsAtIndex(
|
214
|
-
return
|
215
|
-
}, i.prototype.getFirstFocusableAction = function(
|
212
|
+
}, i.prototype.getFocusableAction = function(e, t, r) {
|
213
|
+
var n = this.adapter.getChipActionsAtIndex(e);
|
214
|
+
return t === l.DECREMENT && n.reverse(), r ? this.getMatchingFocusableAction(e, n, r) : this.getFirstFocusableAction(e, n);
|
215
|
+
}, i.prototype.getFirstFocusableAction = function(e, t) {
|
216
216
|
var r, n;
|
217
217
|
try {
|
218
|
-
for (var o = I(
|
218
|
+
for (var o = I(t), h = o.next(); !h.done; h = o.next()) {
|
219
219
|
var s = h.value;
|
220
|
-
if (this.adapter.isChipFocusableAtIndex(
|
220
|
+
if (this.adapter.isChipFocusableAtIndex(e, s))
|
221
221
|
return s;
|
222
222
|
}
|
223
223
|
} catch (p) {
|
@@ -230,12 +230,12 @@ var $ = (
|
|
230
230
|
}
|
231
231
|
}
|
232
232
|
return null;
|
233
|
-
}, i.prototype.getMatchingFocusableAction = function(
|
233
|
+
}, i.prototype.getMatchingFocusableAction = function(e, t, r) {
|
234
234
|
var n, o, h = null;
|
235
235
|
try {
|
236
|
-
for (var s = I(
|
236
|
+
for (var s = I(t), p = s.next(); !p.done; p = s.next()) {
|
237
237
|
var c = p.value;
|
238
|
-
if (this.adapter.isChipFocusableAtIndex(
|
238
|
+
if (this.adapter.isChipFocusableAtIndex(e, c) && (h = c), h === r)
|
239
239
|
return h;
|
240
240
|
}
|
241
241
|
} catch (u) {
|
@@ -248,15 +248,15 @@ var $ = (
|
|
248
248
|
}
|
249
249
|
}
|
250
250
|
return h;
|
251
|
-
}, i.prototype.focusChip = function(
|
251
|
+
}, i.prototype.focusChip = function(e, t, r) {
|
252
252
|
var n, o;
|
253
|
-
this.adapter.setChipFocusAtIndex(
|
253
|
+
this.adapter.setChipFocusAtIndex(e, t, r);
|
254
254
|
for (var h = this.adapter.getChipCount(), s = 0; s < h; s++) {
|
255
255
|
var p = this.adapter.getChipActionsAtIndex(s);
|
256
256
|
try {
|
257
257
|
for (var c = (n = void 0, I(p)), u = c.next(); !u.done; u = c.next()) {
|
258
258
|
var m = u.value;
|
259
|
-
m ===
|
259
|
+
m === t && s === e || this.adapter.setChipFocusAtIndex(s, m, A.NOT_FOCUSABLE);
|
260
260
|
}
|
261
261
|
} catch (b) {
|
262
262
|
n = { error: b };
|
@@ -270,11 +270,11 @@ var $ = (
|
|
270
270
|
}
|
271
271
|
}, i.prototype.supportsMultiSelect = function() {
|
272
272
|
return this.adapter.getAttribute(N.ARIA_MULTISELECTABLE) === "true";
|
273
|
-
}, i.prototype.setSelection = function(
|
273
|
+
}, i.prototype.setSelection = function(e, t, r) {
|
274
274
|
var n, o;
|
275
|
-
if (this.adapter.setChipSelectedAtIndex(
|
276
|
-
chipID: this.adapter.getChipIdAtIndex(
|
277
|
-
chipIndex:
|
275
|
+
if (this.adapter.setChipSelectedAtIndex(e, t, r), this.adapter.emitEvent(v.SELECTION, {
|
276
|
+
chipID: this.adapter.getChipIdAtIndex(e),
|
277
|
+
chipIndex: e,
|
278
278
|
isSelected: r
|
279
279
|
}), !this.supportsMultiSelect())
|
280
280
|
for (var h = this.adapter.getChipCount(), s = 0; s < h; s++) {
|
@@ -282,7 +282,7 @@ var $ = (
|
|
282
282
|
try {
|
283
283
|
for (var c = (n = void 0, I(p)), u = c.next(); !u.done; u = c.next()) {
|
284
284
|
var m = u.value;
|
285
|
-
m ===
|
285
|
+
m === t && s === e || this.adapter.setChipSelectedAtIndex(s, m, !1);
|
286
286
|
}
|
287
287
|
} catch (b) {
|
288
288
|
n = { error: b };
|
@@ -294,16 +294,16 @@ var $ = (
|
|
294
294
|
}
|
295
295
|
}
|
296
296
|
}
|
297
|
-
}, i.prototype.removeAfterAnimation = function(
|
298
|
-
this.adapter.removeChipAtIndex(
|
299
|
-
chipIndex:
|
297
|
+
}, i.prototype.removeAfterAnimation = function(e, t) {
|
298
|
+
this.adapter.removeChipAtIndex(e), this.adapter.emitEvent(v.REMOVAL, {
|
299
|
+
chipIndex: e,
|
300
300
|
isComplete: !0,
|
301
|
-
chipID:
|
301
|
+
chipID: t
|
302
302
|
});
|
303
303
|
var r = this.adapter.getChipCount();
|
304
|
-
r <= 0 || this.focusNearestFocusableAction(
|
305
|
-
}, i.prototype.focusNearestFocusableAction = function(
|
306
|
-
for (var
|
304
|
+
r <= 0 || this.focusNearestFocusableAction(e);
|
305
|
+
}, i.prototype.focusNearestFocusableAction = function(e) {
|
306
|
+
for (var t = this.adapter.getChipCount(), r = e, n = e; r > -1 || n < t; ) {
|
307
307
|
var o = this.getNearestFocusableAction(r, n, T.TRAILING);
|
308
308
|
if (o) {
|
309
309
|
this.focusChip(o.index, o.action, A.FOCUSABLE_AND_FOCUSED);
|
@@ -311,18 +311,18 @@ var $ = (
|
|
311
311
|
}
|
312
312
|
r--, n++;
|
313
313
|
}
|
314
|
-
}, i.prototype.getNearestFocusableAction = function(
|
315
|
-
var n = this.getFocusableAction(
|
314
|
+
}, i.prototype.getNearestFocusableAction = function(e, t, r) {
|
315
|
+
var n = this.getFocusableAction(e, l.DECREMENT, r);
|
316
316
|
if (n)
|
317
317
|
return {
|
318
|
-
index:
|
318
|
+
index: e,
|
319
319
|
action: n
|
320
320
|
};
|
321
|
-
if (
|
321
|
+
if (t === e)
|
322
322
|
return null;
|
323
|
-
var o = this.getFocusableAction(
|
323
|
+
var o = this.getFocusableAction(t, l.INCREMENT, r);
|
324
324
|
return o ? {
|
325
|
-
index:
|
325
|
+
index: t,
|
326
326
|
action: o
|
327
327
|
} : null;
|
328
328
|
}, i;
|
@@ -366,31 +366,31 @@ var G = (
|
|
366
366
|
}
|
367
367
|
return a.getInstance = function() {
|
368
368
|
return a.instance || (a.instance = new a()), a.instance;
|
369
|
-
}, a.prototype.say = function(i,
|
370
|
-
var
|
369
|
+
}, a.prototype.say = function(i, e) {
|
370
|
+
var t, r, n = (t = e == null ? void 0 : e.priority) !== null && t !== void 0 ? t : R.POLITE, o = (r = e == null ? void 0 : e.ownerDocument) !== null && r !== void 0 ? r : document, h = this.getLiveRegion(n, o);
|
371
371
|
h.textContent = "", setTimeout(function() {
|
372
372
|
h.textContent = i, o.addEventListener("click", s);
|
373
373
|
}, 1);
|
374
374
|
function s() {
|
375
375
|
h.textContent = "", o.removeEventListener("click", s);
|
376
376
|
}
|
377
|
-
}, a.prototype.getLiveRegion = function(i,
|
378
|
-
var
|
379
|
-
|
380
|
-
var r =
|
381
|
-
if (r &&
|
377
|
+
}, a.prototype.getLiveRegion = function(i, e) {
|
378
|
+
var t = this.liveRegions.get(e);
|
379
|
+
t || (t = /* @__PURE__ */ new Map(), this.liveRegions.set(e, t));
|
380
|
+
var r = t.get(i);
|
381
|
+
if (r && e.body.contains(r))
|
382
382
|
return r;
|
383
|
-
var n = this.createLiveRegion(i,
|
384
|
-
return
|
385
|
-
}, a.prototype.createLiveRegion = function(i,
|
386
|
-
var
|
387
|
-
return
|
383
|
+
var n = this.createLiveRegion(i, e);
|
384
|
+
return t.set(i, n), n;
|
385
|
+
}, a.prototype.createLiveRegion = function(i, e) {
|
386
|
+
var t = e.createElement("div");
|
387
|
+
return t.style.position = "absolute", t.style.top = "-9999px", t.style.left = "-9999px", t.style.height = "1px", t.style.overflow = "hidden", t.setAttribute("aria-atomic", "true"), t.setAttribute("aria-live", i), t.setAttribute(W, "true"), e.body.appendChild(t), t;
|
388
388
|
}, a;
|
389
389
|
}()
|
390
|
-
), j = Object.defineProperty, g = (a, i,
|
390
|
+
), j = Object.defineProperty, g = (a, i, e, t) => {
|
391
391
|
for (var r = void 0, n = a.length - 1, o; n >= 0; n--)
|
392
|
-
(o = a[n]) && (r = o(i,
|
393
|
-
return r && j(i,
|
392
|
+
(o = a[n]) && (r = o(i, e, r) || r);
|
393
|
+
return r && j(i, e, r), r;
|
394
394
|
};
|
395
395
|
class C extends M {
|
396
396
|
constructor() {
|
@@ -418,28 +418,28 @@ class C extends M {
|
|
418
418
|
firstUpdated(i) {
|
419
419
|
var r;
|
420
420
|
super.firstUpdated(i);
|
421
|
-
const
|
422
|
-
for (let n = 0; n <
|
423
|
-
const o =
|
421
|
+
const e = (r = this.shadowRoot) == null ? void 0 : r.querySelector("slot"), t = (e == null ? void 0 : e.assignedElements().filter((n) => n instanceof w)) ?? [];
|
422
|
+
for (let n = 0; n < t.length; n++) {
|
423
|
+
const o = t[n];
|
424
424
|
this.chips.push(o);
|
425
425
|
}
|
426
426
|
this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new $(this.createAdapter()), this.mdcFoundation.init();
|
427
427
|
}
|
428
428
|
connectedCallback() {
|
429
|
-
super.connectedCallback(), this.addEventListener(
|
430
|
-
|
429
|
+
super.connectedCallback(), this.addEventListener(f.ANIMATION, this._handleChipAnimation), this.addEventListener(
|
430
|
+
f.INTERACTION,
|
431
431
|
this._handleChipInteraction
|
432
|
-
), this.addEventListener(
|
432
|
+
), this.addEventListener(f.NAVIGATION, this._handleChipNavigation);
|
433
433
|
}
|
434
434
|
disconnectedCallback() {
|
435
435
|
super.disconnectedCallback(), this.removeEventListener(
|
436
|
-
|
436
|
+
f.ANIMATION,
|
437
437
|
this._handleChipAnimation
|
438
438
|
), this.removeEventListener(
|
439
|
-
|
439
|
+
f.INTERACTION,
|
440
440
|
this._handleChipInteraction
|
441
441
|
), this.removeEventListener(
|
442
|
-
|
442
|
+
f.NAVIGATION,
|
443
443
|
this._handleChipNavigation
|
444
444
|
);
|
445
445
|
}
|
@@ -448,8 +448,8 @@ class C extends M {
|
|
448
448
|
/** Announces the message via an aria-live region */
|
449
449
|
announceMessage: V,
|
450
450
|
/** Emits the given event with the given detail. */
|
451
|
-
emitEvent: (i,
|
452
|
-
new CustomEvent(i, { bubbles: !0, detail:
|
451
|
+
emitEvent: (i, e) => this.dispatchEvent(
|
452
|
+
new CustomEvent(i, { bubbles: !0, detail: e })
|
453
453
|
),
|
454
454
|
/** Returns the value for the given attribute, if it exists. */
|
455
455
|
getAttribute: (i) => this.mdcRoot.getAttribute(i),
|
@@ -460,21 +460,21 @@ class C extends M {
|
|
460
460
|
/** Returns the ID of the chip at the given index. */
|
461
461
|
getChipIdAtIndex: (i) => this.chips[i].getElementID(),
|
462
462
|
/** Returns the index of the child chip with the matching ID. */
|
463
|
-
getChipIndexById: (i) => this.chips.findIndex((
|
463
|
+
getChipIndexById: (i) => this.chips.findIndex((e) => e.getElementID() === i),
|
464
464
|
/** Proxies to the MDCChip#isActionFocusable method. */
|
465
|
-
isChipFocusableAtIndex: (i,
|
465
|
+
isChipFocusableAtIndex: (i, e) => this.chips[i].isActionFocusable(e),
|
466
466
|
/** Proxies to the MDCChip#isActionSelectable method. */
|
467
|
-
isChipSelectableAtIndex: (i,
|
467
|
+
isChipSelectableAtIndex: (i, e) => this.chips[i].isActionSelectable(e),
|
468
468
|
/** Proxies to the MDCChip#isActionSelected method. */
|
469
|
-
isChipSelectedAtIndex: (i,
|
469
|
+
isChipSelectedAtIndex: (i, e) => this.chips[i].isActionSelected(e),
|
470
470
|
/** Removes the chip at the given index. */
|
471
471
|
removeChipAtIndex: (i) => this.chips[i].remove(),
|
472
472
|
/** Proxies to the MDCChip#setActionFocus method. */
|
473
|
-
setChipFocusAtIndex: (i,
|
473
|
+
setChipFocusAtIndex: (i, e, t) => this.chips[i].setActionFocus(e, t),
|
474
474
|
/** Proxies to the MDCChip#setActionSelected method. */
|
475
|
-
setChipSelectedAtIndex: (i,
|
475
|
+
setChipSelectedAtIndex: (i, e, t) => this.chips[i].setActionSelected(e, t),
|
476
476
|
/** Starts the chip animation at the given index. */
|
477
|
-
startChipAnimationAtIndex: (i,
|
477
|
+
startChipAnimationAtIndex: (i, e) => this.chips[i].startAnimation(e)
|
478
478
|
};
|
479
479
|
}
|
480
480
|
_handleChipAnimation(i) {
|
@@ -503,10 +503,10 @@ g([
|
|
503
503
|
y({ type: Number })
|
504
504
|
], C.prototype, "activeIndex");
|
505
505
|
const H = ".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}::slotted(cv-chip){margin:4px 0 4px 8px}[dir=rtl] ::slotted(cv-chip),::slotted(cv-chip[dir=rtl]){margin-left:0;margin-right:8px}";
|
506
|
-
var k = Object.defineProperty, K = Object.getOwnPropertyDescriptor, X = (a, i,
|
507
|
-
for (var r =
|
508
|
-
(o = a[n]) && (r = (
|
509
|
-
return
|
506
|
+
var k = Object.defineProperty, K = Object.getOwnPropertyDescriptor, X = (a, i, e, t) => {
|
507
|
+
for (var r = t > 1 ? void 0 : t ? K(i, e) : i, n = a.length - 1, o; n >= 0; n--)
|
508
|
+
(o = a[n]) && (r = (t ? o(i, e, r) : o(r)) || r);
|
509
|
+
return t && r && k(i, e, r), r;
|
510
510
|
};
|
511
511
|
let x = class extends C {
|
512
512
|
};
|
@@ -518,8 +518,8 @@ x.styles = [
|
|
518
518
|
x = X([
|
519
519
|
_("cv-chip-set")
|
520
520
|
], x);
|
521
|
-
const
|
521
|
+
const te = x;
|
522
522
|
export {
|
523
523
|
x as CovalentChipSet,
|
524
|
-
|
524
|
+
te as default
|
525
525
|
};
|
package/chip.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./query-assigned-elements-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./query-assigned-elements-BQszEgac.js");const e=require("./chip-CitHXhY7.js");Object.defineProperty(exports,"CovalentChip",{enumerable:!0,get:()=>e.CovalentChip});exports.default=e.CovalentChip$1;
|
package/chip.mjs
CHANGED
package/circular-progress.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./tslib.es6-CHeFCc6E.js"),m=require("./aria-property-Dl2ZKBbP.js"),a=require("./query-assigned-elements-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./tslib.es6-CHeFCc6E.js"),m=require("./aria-property-Dl2ZKBbP.js"),a=require("./query-assigned-elements-BQszEgac.js"),d=require("./property-BRKnMYJe.js"),u=require("./class-map-PsUYVqvf.js"),p=require("./if-defined-B7G84qob.js"),g=require("./style-map-3QfsA_1O.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2020 Google LLC
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
5
5
|
*/class o extends a.s{constructor(){super(...arguments),this.indeterminate=!1,this.progress=0,this.density=0,this.closed=!1}open(){this.closed=!1}close(){this.closed=!0}render(){const r={"mdc-circular-progress--closed":this.closed,"mdc-circular-progress--indeterminate":this.indeterminate},e=48+this.density*4,i={width:`${e}px`,height:`${e}px`};return a.x`
|
6
6
|
<div
|
7
|
-
class="mdc-circular-progress ${
|
8
|
-
style="${
|
7
|
+
class="mdc-circular-progress ${u.o(r)}"
|
8
|
+
style="${g.o(i)}"
|
9
9
|
role="progressbar"
|
10
10
|
aria-label="${p.l(this.ariaLabel)}"
|
11
11
|
aria-valuemin="0"
|
@@ -62,4 +62,4 @@
|
|
62
62
|
* @license
|
63
63
|
* Copyright 2021 Google LLC
|
64
64
|
* SPDX-LIcense-Identifier: Apache-2.0
|
65
|
-
*/const _=a.i`.mdc-circular-progress__determinate-circle,.mdc-circular-progress__indeterminate-circle-graphic{stroke:#6200ee;stroke:var(--mdc-theme-primary, #6200ee)}.mdc-circular-progress__determinate-track{stroke:transparent}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:transparent}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}:host{display:inline-flex}.mdc-circular-progress__determinate-track{stroke:transparent;stroke:var(--mdc-circular-progress-track-color, transparent)}`;var h=Object.defineProperty,f=Object.getOwnPropertyDescriptor,y=(l,r,e,i)=>{for(var c=i>1?void 0:i?f(r,e):r,s=l.length-1,t;s>=0;s--)(t=l[s])&&(c=(i?t(r,e,c):t(c))||c);return i&&c&&h(r,e,c),c};exports.CovalentCircularProgress=class extends o{};exports.CovalentCircularProgress.styles=[_];exports.CovalentCircularProgress=y([a.e("cv-circular-progress")],exports.CovalentCircularProgress);const
|
65
|
+
*/const _=a.i`.mdc-circular-progress__determinate-circle,.mdc-circular-progress__indeterminate-circle-graphic{stroke:#6200ee;stroke:var(--mdc-theme-primary, #6200ee)}.mdc-circular-progress__determinate-track{stroke:transparent}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:transparent}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}:host{display:inline-flex}.mdc-circular-progress__determinate-track{stroke:transparent;stroke:var(--mdc-circular-progress-track-color, transparent)}`;var h=Object.defineProperty,f=Object.getOwnPropertyDescriptor,y=(l,r,e,i)=>{for(var c=i>1?void 0:i?f(r,e):r,s=l.length-1,t;s>=0;s--)(t=l[s])&&(c=(i?t(r,e,c):t(c))||c);return i&&c&&h(r,e,c),c};exports.CovalentCircularProgress=class extends o{};exports.CovalentCircularProgress.styles=[_];exports.CovalentCircularProgress=y([a.e("cv-circular-progress")],exports.CovalentCircularProgress);const b=exports.CovalentCircularProgress;exports.default=b;
|
package/circular-progress.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { b as o } from "./tslib.es6-CISSdiiH.mjs";
|
2
2
|
import { a as g } from "./aria-property-6O5bK0tV.mjs";
|
3
|
-
import { s as u, x as d, i as
|
3
|
+
import { s as u, x as d, i as f, e as h } from "./query-assigned-elements-DhyCP_2z.mjs";
|
4
4
|
import { n } from "./property-DJzm_oB9.mjs";
|
5
|
-
import { o as _ } from "./class-map-
|
6
|
-
import { l as m } from "./if-defined-
|
7
|
-
import { o as y } from "./style-map-
|
5
|
+
import { o as _ } from "./class-map-BHl5MHd7.mjs";
|
6
|
+
import { l as m } from "./if-defined-DN7whKwy.mjs";
|
7
|
+
import { o as y } from "./style-map-QxIETvrs.mjs";
|
8
8
|
/**
|
9
9
|
* @license
|
10
10
|
* Copyright 2020 Google LLC
|
@@ -134,17 +134,17 @@ o([
|
|
134
134
|
* Copyright 2021 Google LLC
|
135
135
|
* SPDX-LIcense-Identifier: Apache-2.0
|
136
136
|
*/
|
137
|
-
const b =
|
138
|
-
var
|
139
|
-
for (var c = i > 1 ? void 0 : i ?
|
137
|
+
const b = f`.mdc-circular-progress__determinate-circle,.mdc-circular-progress__indeterminate-circle-graphic{stroke:#6200ee;stroke:var(--mdc-theme-primary, #6200ee)}.mdc-circular-progress__determinate-track{stroke:transparent}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:transparent}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}:host{display:inline-flex}.mdc-circular-progress__determinate-track{stroke:transparent;stroke:var(--mdc-circular-progress-track-color, transparent)}`;
|
138
|
+
var $ = Object.defineProperty, v = Object.getOwnPropertyDescriptor, k = (p, r, e, i) => {
|
139
|
+
for (var c = i > 1 ? void 0 : i ? v(r, e) : r, s = p.length - 1, t; s >= 0; s--)
|
140
140
|
(t = p[s]) && (c = (i ? t(r, e, c) : t(c)) || c);
|
141
|
-
return i && c &&
|
141
|
+
return i && c && $(r, e, c), c;
|
142
142
|
};
|
143
143
|
let l = class extends a {
|
144
144
|
};
|
145
145
|
l.styles = [b];
|
146
146
|
l = k([
|
147
|
-
|
147
|
+
h("cv-circular-progress")
|
148
148
|
], l);
|
149
149
|
const D = l;
|
150
150
|
export {
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { T as o } from "./query-assigned-elements-DhyCP_2z.mjs";
|
2
|
+
import { e as a, i as h, t as u } from "./directive-B76A7YXI.mjs";
|
3
|
+
/**
|
4
|
+
* @license
|
5
|
+
* Copyright 2018 Google LLC
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
7
|
+
*/
|
8
|
+
const c = a(class extends h {
|
9
|
+
constructor(n) {
|
10
|
+
var t;
|
11
|
+
if (super(n), n.type !== u.ATTRIBUTE || n.name !== "class" || ((t = n.strings) === null || t === void 0 ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
12
|
+
}
|
13
|
+
render(n) {
|
14
|
+
return " " + Object.keys(n).filter((t) => n[t]).join(" ") + " ";
|
15
|
+
}
|
16
|
+
update(n, [t]) {
|
17
|
+
var i, s;
|
18
|
+
if (this.it === void 0) {
|
19
|
+
this.it = /* @__PURE__ */ new Set(), n.strings !== void 0 && (this.nt = new Set(n.strings.join(" ").split(/\s/).filter((e) => e !== "")));
|
20
|
+
for (const e in t) t[e] && !(!((i = this.nt) === null || i === void 0) && i.has(e)) && this.it.add(e);
|
21
|
+
return this.render(t);
|
22
|
+
}
|
23
|
+
const r = n.element.classList;
|
24
|
+
this.it.forEach((e) => {
|
25
|
+
e in t || (r.remove(e), this.it.delete(e));
|
26
|
+
});
|
27
|
+
for (const e in t) {
|
28
|
+
const d = !!t[e];
|
29
|
+
d === this.it.has(e) || !((s = this.nt) === null || s === void 0) && s.has(e) || (d ? (r.add(e), this.it.add(e)) : (r.remove(e), this.it.delete(e)));
|
30
|
+
}
|
31
|
+
return o;
|
32
|
+
}
|
33
|
+
});
|
34
|
+
export {
|
35
|
+
c as o
|
36
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";const o=require("./query-assigned-elements-BQszEgac.js"),d=require("./directive-C_VV3qwo.js");/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2018 Google LLC
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
+
*/const a=d.e(class extends d.i{constructor(n){var t;if(super(n),n.type!==d.t.ATTRIBUTE||n.name!=="class"||((t=n.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(t=>n[t]).join(" ")+" "}update(n,[t]){var i,s;if(this.it===void 0){this.it=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(e=>e!=="")));for(const e in t)t[e]&&!(!((i=this.nt)===null||i===void 0)&&i.has(e))&&this.it.add(e);return this.render(t)}const r=n.element.classList;this.it.forEach(e=>{e in t||(r.remove(e),this.it.delete(e))});for(const e in t){const u=!!t[e];u===this.it.has(e)||!((s=this.nt)===null||s===void 0)&&s.has(e)||(u?(r.add(e),this.it.add(e)):(r.remove(e),this.it.delete(e)))}return o.T}});exports.o=a;
|