@covalent/components 8.15.0-beta.8 → 8.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action-ribbon.js +1 -1
- package/action-ribbon.mjs +3 -4
- package/alert.js +1 -1
- package/alert.mjs +3 -4
- package/app-shell/app-shell.d.ts +3 -0
- package/app-shell/app-shell.d.ts.map +1 -1
- package/app-shell.js +6 -6
- package/app-shell.mjs +26 -25
- package/badge.js +1 -1
- package/badge.mjs +3 -4
- package/button.js +1 -1
- package/button.mjs +9 -10
- package/card/card-base.d.ts.map +1 -1
- package/card.js +7 -5
- package/card.mjs +9 -8
- package/check-list-item.js +1 -1
- package/check-list-item.mjs +8 -9
- package/checkbox.js +1 -1
- package/checkbox.mjs +15 -16
- package/{chip-fb0ea5c5.mjs → chip-2d0fd3f0.mjs} +1 -1
- package/{chip-c65a4549.js → chip-ebd0a88e.js} +1 -1
- package/chip-set.js +2 -2
- package/chip-set.mjs +45 -46
- package/chip.js +1 -1
- package/chip.mjs +4 -5
- package/circular-progress.js +1 -1
- package/circular-progress.mjs +4 -5
- package/class-map-4b94b017.mjs +62 -0
- package/class-map-b5efe8da.js +9 -0
- package/code-snippet.js +2 -2
- package/code-snippet.mjs +4 -5
- package/{dialog-86192b9a.js → dialog-82b03745.js} +1 -1
- package/{dialog-16aad066.mjs → dialog-c9dbe94d.mjs} +1 -1
- package/dialog.js +1 -1
- package/dialog.mjs +4 -5
- package/drawer.js +1 -1
- package/drawer.mjs +4 -5
- package/formfield.js +3 -3
- package/formfield.mjs +3 -4
- package/icon-button-toggle.js +1 -1
- package/icon-button-toggle.mjs +5 -6
- package/icon-button.js +1 -1
- package/icon-button.mjs +5 -6
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +6 -7
- package/icon-radio-toggle.js +3 -3
- package/icon-radio-toggle.mjs +6 -7
- package/index.d.ts +0 -3
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.mjs +118 -126
- package/linear-progress.js +1 -1
- package/linear-progress.mjs +4 -5
- package/{list-item-e628f363.mjs → list-item-24236190.mjs} +1 -1
- package/{list-item-e336fb0e.js → list-item-d72b2fff.js} +1 -1
- package/list-item.js +2 -2
- package/list-item.mjs +7 -8
- package/list.js +1 -1
- package/list.mjs +7 -8
- package/menu.js +5 -5
- package/menu.mjs +8 -9
- package/{mwc-checkbox-base-935d9566.js → mwc-checkbox-base-3d8c9549.js} +1 -1
- package/{mwc-checkbox-base-02b4eb91.mjs → mwc-checkbox-base-c40d16d2.mjs} +2 -2
- package/{mwc-drawer-base-bbae43c3.js → mwc-drawer-base-798b11f8.js} +1 -1
- package/{mwc-drawer-base-ca75f41f.mjs → mwc-drawer-base-9c77129c.mjs} +1 -1
- package/{mwc-line-ripple-directive-40145003.js → mwc-line-ripple-directive-a6b39a3c.js} +14 -14
- package/{mwc-line-ripple-directive-aabd8778.mjs → mwc-line-ripple-directive-f9dd7fe3.mjs} +5 -6
- package/{mwc-list-base-22616d0a.js → mwc-list-base-400b00e2.js} +1 -1
- package/{mwc-list-base-402e1d8e.mjs → mwc-list-base-495cbb3b.mjs} +1 -1
- package/{mwc-list-item-base-06d93e6e.js → mwc-list-item-base-297d86b0.js} +1 -1
- package/{mwc-list-item-base-3c6a3bfb.mjs → mwc-list-item-base-6449e812.mjs} +2 -2
- package/{mwc-menu-base-04586160.mjs → mwc-menu-base-9704207e.mjs} +3 -3
- package/{mwc-menu-base-08f54c38.js → mwc-menu-base-c75ca473.js} +1 -1
- package/{mwc-radio-base-768b4221.mjs → mwc-radio-base-4dbe9e38.mjs} +2 -2
- package/{mwc-radio-base-147cf999.js → mwc-radio-base-913e02e2.js} +1 -1
- package/{mwc-slider.css-cda43bd0.mjs → mwc-slider.css-30c91236.mjs} +3 -3
- package/{mwc-slider.css-c5f99704.js → mwc-slider.css-c7107d94.js} +1 -1
- package/{mwc-tab-base-0814a3ef.mjs → mwc-tab-base-effde6e4.mjs} +2 -2
- package/{mwc-tab-base-f2269fd1.js → mwc-tab-base-f28722aa.js} +1 -1
- package/{mwc-top-app-bar-base-8a7f7312.mjs → mwc-top-app-bar-base-28c4192d.mjs} +1 -1
- package/{mwc-top-app-bar-base-8c8cde51.js → mwc-top-app-bar-base-aec60f27.js} +1 -1
- package/nav-list-item.js +1 -1
- package/nav-list-item.mjs +7 -8
- package/package.json +1 -16
- package/radio-list-item.js +1 -1
- package/radio-list-item.mjs +8 -9
- package/radio.js +2 -2
- package/radio.mjs +6 -7
- package/{ripple-handlers-8883e893.mjs → ripple-handlers-0d9ad7c2.mjs} +2 -2
- package/{ripple-handlers-9fb4a31a.js → ripple-handlers-5d5b21db.js} +1 -1
- package/select.js +2 -2
- package/select.mjs +10 -11
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +2 -3
- package/slider-range.js +1 -1
- package/slider-range.mjs +6 -7
- package/slider.js +1 -1
- package/slider.mjs +11 -12
- package/snackbar.js +18 -14
- package/snackbar.mjs +159 -88
- package/status-dialog.js +1 -1
- package/status-dialog.mjs +6 -7
- package/status-header.js +1 -1
- package/status-header.mjs +3 -4
- package/{style-map-a135c6ab.js → style-map-88d2563f.js} +2 -2
- package/{style-map-e7ec6d41.mjs → style-map-bc3ed3e0.mjs} +1 -1
- package/switch.js +1 -1
- package/switch.mjs +5 -6
- package/tab-bar.js +2 -2
- package/tab-bar.mjs +6 -7
- package/tab.js +1 -1
- package/tab.mjs +8 -9
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +3 -4
- package/textarea.js +1 -1
- package/textarea.mjs +5 -6
- package/{textfield-93cfcf3c.mjs → textfield-69844234.mjs} +8 -9
- package/{textfield-0645375b.js → textfield-a064a2b4.js} +16 -16
- package/textfield.js +1 -1
- package/textfield.mjs +5 -6
- package/toolbar.js +1 -1
- package/toolbar.mjs +4 -5
- package/top-app-bar-fixed.js +1 -1
- package/top-app-bar-fixed.mjs +4 -5
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +7 -8
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +3 -4
- package/async-directive-4a34f75e.js +0 -5
- package/async-directive-99a01ec7.mjs +0 -78
- package/cell/cell.d.ts +0 -65
- package/cell/cell.d.ts.map +0 -1
- package/cell.js +0 -29
- package/cell.mjs +0 -147
- package/class-map-0a4c6ca9.js +0 -5
- package/class-map-6e504a9a.mjs +0 -38
- package/code-editor/code-editor.d.ts +0 -73
- package/code-editor/code-editor.d.ts.map +0 -1
- package/code-editor-3a09cbf1.js +0 -732
- package/code-editor-ce557bd5.mjs +0 -61376
- package/code-editor.js +0 -1
- package/code-editor.mjs +0 -10
- package/cpp-642b10c4.mjs +0 -387
- package/cpp-7eec3311.js +0 -6
- package/csharp-32862cd2.js +0 -6
- package/csharp-d987ddad.mjs +0 -320
- package/css-5dd354ac.mjs +0 -186
- package/css-9be95551.js +0 -8
- package/dart-031264ea.js +0 -6
- package/dart-5d209f63.mjs +0 -270
- package/directive-1186bc23.js +0 -5
- package/directive-daf4e9b6.mjs +0 -27
- package/go-46e3b371.mjs +0 -208
- package/go-cdd943fd.js +0 -6
- package/html-4fffc46e.js +0 -6
- package/html-783f1e7c.mjs +0 -286
- package/java-32d7b433.js +0 -6
- package/java-cd017f60.mjs +0 -221
- package/javascript-4d09cd3c.mjs +0 -80
- package/javascript-90bb18e6.js +0 -6
- package/kotlin-4b9019e1.js +0 -6
- package/kotlin-c6e52a56.mjs +0 -245
- package/lua-b46719a9.js +0 -6
- package/lua-f159160b.mjs +0 -157
- package/markdown-9b448c46.mjs +0 -202
- package/markdown-eae8e3ba.js +0 -6
- package/monacoeditorwork/css.worker.bundle.js +0 -45885
- package/monacoeditorwork/editor.worker.bundle.js +0 -9103
- package/monacoeditorwork/html.worker.bundle.js +0 -25134
- package/monacoeditorwork/json.worker.bundle.js +0 -16363
- package/monacoeditorwork/ts.worker.bundle.js +0 -170782
- package/notebook/notebook.d.ts +0 -87
- package/notebook/notebook.d.ts.map +0 -1
- package/notebook.js +0 -121
- package/notebook.mjs +0 -3447
- package/php-987b9d87.mjs +0 -471
- package/php-a6dcde52.js +0 -6
- package/python-562f8e9b.mjs +0 -264
- package/python-af3aad7d.js +0 -6
- package/r-42c6f0aa.js +0 -6
- package/r-630f5d6b.mjs +0 -245
- package/rust-87887495.js +0 -6
- package/rust-97f8f6e1.mjs +0 -337
- package/scala-c68c650c.mjs +0 -353
- package/scala-e8b7bd42.js +0 -6
- package/shell-09452d42.mjs +0 -224
- package/shell-43cfbe7d.js +0 -6
- package/sql-63ec8e76.mjs +0 -818
- package/sql-faf05577.js +0 -6
- package/style.css +0 -1
- package/swift-724ff2a3.js +0 -8
- package/swift-abdf1835.mjs +0 -315
- package/typescript-76d039b3.js +0 -6
- package/typescript-a2a5d6b2.mjs +0 -332
- package/xml-89571455.mjs +0 -100
- package/xml-e66929d0.js +0 -6
- package/yaml-11a91e71.js +0 -6
- package/yaml-4eccd122.mjs +0 -189
package/snackbar.mjs
CHANGED
@@ -1,14 +1,12 @@
|
|
1
|
-
import { D as
|
2
|
-
import { a as
|
3
|
-
import { B as
|
4
|
-
import { o as
|
1
|
+
import { D as M, x as b, i as C, r as D, e as w } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
+
import { a as $, b as x, _ as m } from "./tslib.es6-c4b0f3b1.mjs";
|
3
|
+
import { B as F } from "./base-element-acf30176.mjs";
|
4
|
+
import { o as g } from "./observer-be7b92e2.mjs";
|
5
5
|
import { n as l } from "./property-9b6ea53b.mjs";
|
6
|
-
import { i as
|
7
|
-
import { o as
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import { a as P } from "./utils-dc65fdc9.mjs";
|
11
|
-
import "./directive-helpers-e3ea6592.mjs";
|
6
|
+
import { i as O } from "./query-d843aa92.mjs";
|
7
|
+
import { i as L, t as S, e as P, o as R } from "./class-map-4b94b017.mjs";
|
8
|
+
import { e as z } from "./directive-helpers-e3ea6592.mjs";
|
9
|
+
import { a as U } from "./utils-dc65fdc9.mjs";
|
12
10
|
/**
|
13
11
|
* @license
|
14
12
|
* Copyright 2016 Google Inc.
|
@@ -31,39 +29,39 @@ import "./directive-helpers-e3ea6592.mjs";
|
|
31
29
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
32
30
|
* THE SOFTWARE.
|
33
31
|
*/
|
34
|
-
var
|
32
|
+
var B = (
|
35
33
|
/** @class */
|
36
34
|
function() {
|
37
|
-
function
|
35
|
+
function a(e) {
|
38
36
|
e === void 0 && (e = {}), this.adapter = e;
|
39
37
|
}
|
40
|
-
return Object.defineProperty(
|
38
|
+
return Object.defineProperty(a, "cssClasses", {
|
41
39
|
get: function() {
|
42
40
|
return {};
|
43
41
|
},
|
44
42
|
enumerable: !1,
|
45
43
|
configurable: !0
|
46
|
-
}), Object.defineProperty(
|
44
|
+
}), Object.defineProperty(a, "strings", {
|
47
45
|
get: function() {
|
48
46
|
return {};
|
49
47
|
},
|
50
48
|
enumerable: !1,
|
51
49
|
configurable: !0
|
52
|
-
}), Object.defineProperty(
|
50
|
+
}), Object.defineProperty(a, "numbers", {
|
53
51
|
get: function() {
|
54
52
|
return {};
|
55
53
|
},
|
56
54
|
enumerable: !1,
|
57
55
|
configurable: !0
|
58
|
-
}), Object.defineProperty(
|
56
|
+
}), Object.defineProperty(a, "defaultAdapter", {
|
59
57
|
get: function() {
|
60
58
|
return {};
|
61
59
|
},
|
62
60
|
enumerable: !1,
|
63
61
|
configurable: !0
|
64
|
-
}),
|
65
|
-
},
|
66
|
-
},
|
62
|
+
}), a.prototype.init = function() {
|
63
|
+
}, a.prototype.destroy = function() {
|
64
|
+
}, a;
|
67
65
|
}()
|
68
66
|
);
|
69
67
|
/**
|
@@ -92,7 +90,7 @@ var c = {
|
|
92
90
|
CLOSING: "mdc-snackbar--closing",
|
93
91
|
OPEN: "mdc-snackbar--open",
|
94
92
|
OPENING: "mdc-snackbar--opening"
|
95
|
-
},
|
93
|
+
}, k = {
|
96
94
|
ACTION_SELECTOR: ".mdc-snackbar__action",
|
97
95
|
ARIA_LIVE_LABEL_TEXT_ATTR: "data-mdc-snackbar-label-text",
|
98
96
|
CLOSED_EVENT: "MDCSnackbar:closed",
|
@@ -141,13 +139,13 @@ var c = {
|
|
141
139
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
142
140
|
* THE SOFTWARE.
|
143
141
|
*/
|
144
|
-
var
|
142
|
+
var E = c.OPENING, A = c.OPEN, T = c.CLOSING, V = k.REASON_ACTION, h = k.REASON_DISMISS, j = (
|
145
143
|
/** @class */
|
146
|
-
function(
|
147
|
-
|
144
|
+
function(a) {
|
145
|
+
$(e, a);
|
148
146
|
function e(t) {
|
149
|
-
var
|
150
|
-
return
|
147
|
+
var i = a.call(this, x(x({}, e.defaultAdapter), t)) || this;
|
148
|
+
return i.opened = !1, i.animationFrame = 0, i.animationTimer = 0, i.autoDismissTimer = 0, i.autoDismissTimeoutMs = o.DEFAULT_AUTO_DISMISS_TIMEOUT_MS, i.closeOnEscape = !0, i;
|
151
149
|
}
|
152
150
|
return Object.defineProperty(e, "cssClasses", {
|
153
151
|
get: function() {
|
@@ -157,7 +155,7 @@ var x = c.OPENING, v = c.OPEN, E = c.CLOSING, z = h.REASON_ACTION, _ = h.REASON_
|
|
157
155
|
configurable: !0
|
158
156
|
}), Object.defineProperty(e, "strings", {
|
159
157
|
get: function() {
|
160
|
-
return
|
158
|
+
return k;
|
161
159
|
},
|
162
160
|
enumerable: !1,
|
163
161
|
configurable: !0
|
@@ -189,101 +187,174 @@ var x = c.OPENING, v = c.OPEN, E = c.CLOSING, z = h.REASON_ACTION, _ = h.REASON_
|
|
189
187
|
enumerable: !1,
|
190
188
|
configurable: !0
|
191
189
|
}), e.prototype.destroy = function() {
|
192
|
-
this.clearAutoDismissTimer(), cancelAnimationFrame(this.animationFrame), this.animationFrame = 0, clearTimeout(this.animationTimer), this.animationTimer = 0, this.adapter.removeClass(
|
190
|
+
this.clearAutoDismissTimer(), cancelAnimationFrame(this.animationFrame), this.animationFrame = 0, clearTimeout(this.animationTimer), this.animationTimer = 0, this.adapter.removeClass(E), this.adapter.removeClass(A), this.adapter.removeClass(T);
|
193
191
|
}, e.prototype.open = function() {
|
194
192
|
var t = this;
|
195
|
-
this.clearAutoDismissTimer(), this.opened = !0, this.adapter.notifyOpening(), this.adapter.removeClass(
|
196
|
-
t.adapter.addClass(
|
197
|
-
var
|
198
|
-
t.handleAnimationTimerEnd(), t.adapter.notifyOpened(),
|
199
|
-
t.close(
|
200
|
-
},
|
193
|
+
this.clearAutoDismissTimer(), this.opened = !0, this.adapter.notifyOpening(), this.adapter.removeClass(T), this.adapter.addClass(E), this.adapter.announce(), this.runNextAnimationFrame(function() {
|
194
|
+
t.adapter.addClass(A), t.animationTimer = setTimeout(function() {
|
195
|
+
var i = t.getTimeoutMs();
|
196
|
+
t.handleAnimationTimerEnd(), t.adapter.notifyOpened(), i !== o.INDETERMINATE && (t.autoDismissTimer = setTimeout(function() {
|
197
|
+
t.close(h);
|
198
|
+
}, i));
|
201
199
|
}, o.SNACKBAR_ANIMATION_OPEN_TIME_MS);
|
202
200
|
});
|
203
201
|
}, e.prototype.close = function(t) {
|
204
|
-
var
|
202
|
+
var i = this;
|
205
203
|
t === void 0 && (t = ""), this.opened && (cancelAnimationFrame(this.animationFrame), this.animationFrame = 0, this.clearAutoDismissTimer(), this.opened = !1, this.adapter.notifyClosing(t), this.adapter.addClass(c.CLOSING), this.adapter.removeClass(c.OPEN), this.adapter.removeClass(c.OPENING), clearTimeout(this.animationTimer), this.animationTimer = setTimeout(function() {
|
206
|
-
|
204
|
+
i.handleAnimationTimerEnd(), i.adapter.notifyClosed(t);
|
207
205
|
}, o.SNACKBAR_ANIMATION_CLOSE_TIME_MS));
|
208
206
|
}, e.prototype.isOpen = function() {
|
209
207
|
return this.opened;
|
210
208
|
}, e.prototype.getTimeoutMs = function() {
|
211
209
|
return this.autoDismissTimeoutMs;
|
212
210
|
}, e.prototype.setTimeoutMs = function(t) {
|
213
|
-
var
|
214
|
-
if (t === o.INDETERMINATE || t <= n && t >=
|
211
|
+
var i = o.MIN_AUTO_DISMISS_TIMEOUT_MS, n = o.MAX_AUTO_DISMISS_TIMEOUT_MS, s = o.INDETERMINATE;
|
212
|
+
if (t === o.INDETERMINATE || t <= n && t >= i)
|
215
213
|
this.autoDismissTimeoutMs = t;
|
216
214
|
else
|
217
215
|
throw new Error(`
|
218
|
-
timeoutMs must be an integer in the range ` +
|
216
|
+
timeoutMs must be an integer in the range ` + i + "–" + n + `
|
219
217
|
(or ` + s + " to disable), but got '" + t + "'");
|
220
218
|
}, e.prototype.getCloseOnEscape = function() {
|
221
219
|
return this.closeOnEscape;
|
222
220
|
}, e.prototype.setCloseOnEscape = function(t) {
|
223
221
|
this.closeOnEscape = t;
|
224
222
|
}, e.prototype.handleKeyDown = function(t) {
|
225
|
-
var
|
226
|
-
|
223
|
+
var i = t.key === "Escape" || t.keyCode === 27;
|
224
|
+
i && this.getCloseOnEscape() && this.close(h);
|
227
225
|
}, e.prototype.handleActionButtonClick = function(t) {
|
228
|
-
this.close(
|
226
|
+
this.close(V);
|
229
227
|
}, e.prototype.handleActionIconClick = function(t) {
|
230
|
-
this.close(
|
228
|
+
this.close(h);
|
231
229
|
}, e.prototype.clearAutoDismissTimer = function() {
|
232
230
|
clearTimeout(this.autoDismissTimer), this.autoDismissTimer = 0;
|
233
231
|
}, e.prototype.handleAnimationTimerEnd = function() {
|
234
232
|
this.animationTimer = 0, this.adapter.removeClass(c.OPENING), this.adapter.removeClass(c.CLOSING);
|
235
233
|
}, e.prototype.runNextAnimationFrame = function(t) {
|
236
|
-
var
|
234
|
+
var i = this;
|
237
235
|
cancelAnimationFrame(this.animationFrame), this.animationFrame = requestAnimationFrame(function() {
|
238
|
-
|
236
|
+
i.animationFrame = 0, clearTimeout(i.animationTimer), i.animationTimer = setTimeout(t, 0);
|
239
237
|
});
|
240
238
|
}, e;
|
241
|
-
}(
|
239
|
+
}(B)
|
242
240
|
);
|
243
|
-
const
|
241
|
+
const y = j;
|
242
|
+
/**
|
243
|
+
* @license
|
244
|
+
* Copyright 2017 Google LLC
|
245
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
246
|
+
*/
|
247
|
+
const p = (a, e) => {
|
248
|
+
var t, i;
|
249
|
+
const n = a._$AN;
|
250
|
+
if (n === void 0)
|
251
|
+
return !1;
|
252
|
+
for (const s of n)
|
253
|
+
(i = (t = s)._$AO) === null || i === void 0 || i.call(t, e, !1), p(s, e);
|
254
|
+
return !0;
|
255
|
+
}, _ = (a) => {
|
256
|
+
let e, t;
|
257
|
+
do {
|
258
|
+
if ((e = a._$AM) === void 0)
|
259
|
+
break;
|
260
|
+
t = e._$AN, t.delete(a), a = e;
|
261
|
+
} while ((t == null ? void 0 : t.size) === 0);
|
262
|
+
}, I = (a) => {
|
263
|
+
for (let e; e = a._$AM; a = e) {
|
264
|
+
let t = e._$AN;
|
265
|
+
if (t === void 0)
|
266
|
+
e._$AN = t = /* @__PURE__ */ new Set();
|
267
|
+
else if (t.has(a))
|
268
|
+
break;
|
269
|
+
t.add(a), H(e);
|
270
|
+
}
|
271
|
+
};
|
272
|
+
function G(a) {
|
273
|
+
this._$AN !== void 0 ? (_(this), this._$AM = a, I(this)) : this._$AM = a;
|
274
|
+
}
|
275
|
+
function K(a, e = !1, t = 0) {
|
276
|
+
const i = this._$AH, n = this._$AN;
|
277
|
+
if (n !== void 0 && n.size !== 0)
|
278
|
+
if (e)
|
279
|
+
if (Array.isArray(i))
|
280
|
+
for (let s = t; s < i.length; s++)
|
281
|
+
p(i[s], !1), _(i[s]);
|
282
|
+
else
|
283
|
+
i != null && (p(i, !1), _(i));
|
284
|
+
else
|
285
|
+
p(this, a);
|
286
|
+
}
|
287
|
+
const H = (a) => {
|
288
|
+
var e, t, i, n;
|
289
|
+
a.type == S.CHILD && ((e = (i = a)._$AP) !== null && e !== void 0 || (i._$AP = K), (t = (n = a)._$AQ) !== null && t !== void 0 || (n._$AQ = G));
|
290
|
+
};
|
291
|
+
class X extends L {
|
292
|
+
constructor() {
|
293
|
+
super(...arguments), this._$AN = void 0;
|
294
|
+
}
|
295
|
+
_$AT(e, t, i) {
|
296
|
+
super._$AT(e, t, i), I(this), this.isConnected = e._$AU;
|
297
|
+
}
|
298
|
+
_$AO(e, t = !0) {
|
299
|
+
var i, n;
|
300
|
+
e !== this.isConnected && (this.isConnected = e, e ? (i = this.reconnected) === null || i === void 0 || i.call(this) : (n = this.disconnected) === null || n === void 0 || n.call(this)), t && (p(this, e), _(this));
|
301
|
+
}
|
302
|
+
setValue(e) {
|
303
|
+
if (z(this._$Ct))
|
304
|
+
this._$Ct._$AI(e, this);
|
305
|
+
else {
|
306
|
+
const t = [...this._$Ct._$AH];
|
307
|
+
t[this._$Ci] = e, this._$Ct._$AI(t, this, 0);
|
308
|
+
}
|
309
|
+
}
|
310
|
+
disconnected() {
|
311
|
+
}
|
312
|
+
reconnected() {
|
313
|
+
}
|
314
|
+
}
|
244
315
|
/**
|
245
316
|
* @license
|
246
317
|
* Copyright 2019 Google LLC
|
247
318
|
* SPDX-License-Identifier: Apache-2.0
|
248
319
|
*/
|
249
|
-
const { ARIA_LIVE_DELAY_MS:
|
250
|
-
class
|
320
|
+
const { ARIA_LIVE_DELAY_MS: Q } = y.numbers;
|
321
|
+
class Y extends X {
|
251
322
|
constructor(e) {
|
252
|
-
if (super(e), this.labelEl = null, this.timerId = null, this.previousPart = null, e.type !==
|
323
|
+
if (super(e), this.labelEl = null, this.timerId = null, this.previousPart = null, e.type !== S.CHILD)
|
253
324
|
throw new Error("AccessibleSnackbarLabel only supports child parts.");
|
254
325
|
}
|
255
|
-
update(e, [t,
|
326
|
+
update(e, [t, i]) {
|
256
327
|
var n;
|
257
|
-
if (!
|
328
|
+
if (!i)
|
258
329
|
return;
|
259
330
|
if (this.labelEl === null) {
|
260
|
-
const
|
261
|
-
|
262
|
-
const
|
263
|
-
return
|
331
|
+
const v = document.createElement("div"), N = b`<div class="mdc-snackbar__label" role="status" aria-live="polite"></div>`;
|
332
|
+
M(N, v);
|
333
|
+
const u = v.firstElementChild;
|
334
|
+
return u.textContent = t, (n = e.endNode) === null || n === void 0 || n.parentNode.insertBefore(u, e.endNode), this.labelEl = u, u;
|
264
335
|
}
|
265
336
|
const s = this.labelEl;
|
266
337
|
s.setAttribute("aria-live", "off"), s.textContent = "";
|
267
338
|
const r = document.createElement("span");
|
268
339
|
return r.style.display = "inline-block", r.style.width = "0", r.style.height = "1px", r.textContent = " ", s.appendChild(r), s.setAttribute("data-mdc-snackbar-label-text", t), this.timerId !== null && clearTimeout(this.timerId), this.timerId = window.setTimeout(() => {
|
269
340
|
this.timerId = null, s.setAttribute("aria-live", "polite"), s.removeAttribute("data-mdc-snackbar-label-text"), s.textContent = t, this.setValue(this.labelEl);
|
270
|
-
},
|
341
|
+
}, Q), s;
|
271
342
|
}
|
272
343
|
render(e, t) {
|
273
344
|
return t ? b`
|
274
345
|
<div class="mdc-snackbar__label" role="status" aria-live="polite">${e}</div>` : b``;
|
275
346
|
}
|
276
347
|
}
|
277
|
-
const
|
348
|
+
const q = P(Y);
|
278
349
|
/**
|
279
350
|
* @license
|
280
351
|
* Copyright 2018 Google LLC
|
281
352
|
* SPDX-License-Identifier: Apache-2.0
|
282
353
|
*/
|
283
|
-
const { OPENING_EVENT:
|
284
|
-
class d extends
|
354
|
+
const { OPENING_EVENT: J, OPENED_EVENT: W, CLOSING_EVENT: Z, CLOSED_EVENT: ee } = y.strings;
|
355
|
+
class d extends F {
|
285
356
|
constructor() {
|
286
|
-
super(...arguments), this.mdcFoundationClass =
|
357
|
+
super(...arguments), this.mdcFoundationClass = y, this.open = !1, this.timeoutMs = 5e3, this.closeOnEscape = !1, this.labelText = "", this.stacked = !1, this.leading = !1, this.reason = "";
|
287
358
|
}
|
288
359
|
render() {
|
289
360
|
const e = {
|
@@ -291,9 +362,9 @@ class d extends M {
|
|
291
362
|
"mdc-snackbar--leading": this.leading
|
292
363
|
};
|
293
364
|
return b`
|
294
|
-
<div class="mdc-snackbar ${
|
365
|
+
<div class="mdc-snackbar ${R(e)}" @keydown="${this._handleKeydown}">
|
295
366
|
<div class="mdc-snackbar__surface">
|
296
|
-
${
|
367
|
+
${q(this.labelText, this.open)}
|
297
368
|
<div class="mdc-snackbar__actions">
|
298
369
|
<slot name="action" @click="${this._handleActionClick}"></slot>
|
299
370
|
<slot name="dismiss" @click="${this._handleDismissClick}"></slot>
|
@@ -302,15 +373,15 @@ class d extends M {
|
|
302
373
|
</div>`;
|
303
374
|
}
|
304
375
|
createAdapter() {
|
305
|
-
return Object.assign(Object.assign({},
|
376
|
+
return Object.assign(Object.assign({}, U(this.mdcRoot)), { announce: () => {
|
306
377
|
}, notifyClosed: (e) => {
|
307
|
-
this.dispatchEvent(new CustomEvent(
|
378
|
+
this.dispatchEvent(new CustomEvent(ee, { bubbles: !0, cancelable: !0, detail: { reason: e } }));
|
308
379
|
}, notifyClosing: (e) => {
|
309
|
-
this.open = !1, this.dispatchEvent(new CustomEvent(
|
380
|
+
this.open = !1, this.dispatchEvent(new CustomEvent(Z, { bubbles: !0, cancelable: !0, detail: { reason: e } }));
|
310
381
|
}, notifyOpened: () => {
|
311
|
-
this.dispatchEvent(new CustomEvent(
|
382
|
+
this.dispatchEvent(new CustomEvent(W, { bubbles: !0, cancelable: !0 }));
|
312
383
|
}, notifyOpening: () => {
|
313
|
-
this.open = !0, this.dispatchEvent(new CustomEvent(
|
384
|
+
this.open = !0, this.dispatchEvent(new CustomEvent(J, { bubbles: !0, cancelable: !0 }));
|
314
385
|
} });
|
315
386
|
}
|
316
387
|
/** @export */
|
@@ -335,26 +406,26 @@ class d extends M {
|
|
335
406
|
}
|
336
407
|
}
|
337
408
|
m([
|
338
|
-
|
409
|
+
O(".mdc-snackbar")
|
339
410
|
], d.prototype, "mdcRoot", void 0);
|
340
411
|
m([
|
341
|
-
|
412
|
+
O(".mdc-snackbar__label")
|
342
413
|
], d.prototype, "labelElement", void 0);
|
343
414
|
m([
|
344
415
|
l({ type: Boolean, reflect: !0 }),
|
345
|
-
|
346
|
-
this.mdcFoundation && (
|
416
|
+
g(function(a) {
|
417
|
+
this.mdcFoundation && (a ? this.mdcFoundation.open() : (this.mdcFoundation.close(this.reason), this.reason = ""));
|
347
418
|
})
|
348
419
|
], d.prototype, "open", void 0);
|
349
420
|
m([
|
350
|
-
|
351
|
-
this.mdcFoundation.setTimeoutMs(
|
421
|
+
g(function(a) {
|
422
|
+
this.mdcFoundation.setTimeoutMs(a);
|
352
423
|
}),
|
353
424
|
l({ type: Number })
|
354
425
|
], d.prototype, "timeoutMs", void 0);
|
355
426
|
m([
|
356
|
-
|
357
|
-
this.mdcFoundation.setCloseOnEscape(
|
427
|
+
g(function(a) {
|
428
|
+
this.mdcFoundation.setCloseOnEscape(a);
|
358
429
|
}),
|
359
430
|
l({ type: Boolean })
|
360
431
|
], d.prototype, "closeOnEscape", void 0);
|
@@ -372,21 +443,21 @@ m([
|
|
372
443
|
* Copyright 2021 Google LLC
|
373
444
|
* SPDX-LIcense-Identifier: Apache-2.0
|
374
445
|
*/
|
375
|
-
const
|
446
|
+
const te = C`.mdc-snackbar{z-index:8;margin:8px;display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar__surface{background-color:#333333}.mdc-snackbar__label{color:rgba(255, 255, 255, 0.87)}.mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mdc-snackbar__surface{min-width:100%}}.mdc-snackbar__surface{max-width:672px}.mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2),0px 6px 10px 0px rgba(0, 0, 0, 0.14),0px 1px 18px 0px rgba(0,0,0,.12)}.mdc-snackbar__surface{border-radius:4px;border-radius:var(--mdc-shape-small, 4px)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar--leading{justify-content:flex-start}.mdc-snackbar--stacked .mdc-snackbar__label{padding-left:16px;padding-right:8px;padding-bottom:12px}[dir=rtl] .mdc-snackbar--stacked .mdc-snackbar__label,.mdc-snackbar--stacked .mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar--stacked .mdc-snackbar__surface{flex-direction:column;align-items:flex-start}.mdc-snackbar--stacked .mdc-snackbar__actions{align-self:flex-end;margin-bottom:8px}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto;transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1);transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-snackbar__label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action:not(:disabled){color:#bb86fc}.mdc-snackbar__action .mdc-button__ripple::before,.mdc-snackbar__action .mdc-button__ripple::after{background-color:#bb86fc;background-color:var(--mdc-ripple-color, #bb86fc)}.mdc-snackbar__action:hover .mdc-button__ripple::before,.mdc-snackbar__action.mdc-ripple-surface--hover .mdc-button__ripple::before{opacity:0.08;opacity:var(--mdc-ripple-hover-opacity, 0.08)}.mdc-snackbar__action.mdc-ripple-upgraded--background-focused .mdc-button__ripple::before,.mdc-snackbar__action:not(.mdc-ripple-upgraded):focus .mdc-button__ripple::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-snackbar__action:not(.mdc-ripple-upgraded) .mdc-button__ripple::after{transition:opacity 150ms linear}.mdc-snackbar__action:not(.mdc-ripple-upgraded):active .mdc-button__ripple::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-snackbar__action.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-snackbar__dismiss{color:rgba(255, 255, 255, 0.87)}.mdc-snackbar__dismiss .mdc-icon-button__ripple::before,.mdc-snackbar__dismiss .mdc-icon-button__ripple::after{background-color:rgba(255, 255, 255, 0.87);background-color:var(--mdc-ripple-color, rgba(255, 255, 255, 0.87))}.mdc-snackbar__dismiss:hover .mdc-icon-button__ripple::before,.mdc-snackbar__dismiss.mdc-ripple-surface--hover .mdc-icon-button__ripple::before{opacity:0.08;opacity:var(--mdc-ripple-hover-opacity, 0.08)}.mdc-snackbar__dismiss.mdc-ripple-upgraded--background-focused .mdc-icon-button__ripple::before,.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded):focus .mdc-icon-button__ripple::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded) .mdc-icon-button__ripple::after{transition:opacity 150ms linear}.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded):active .mdc-icon-button__ripple::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-snackbar__dismiss.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-snackbar__dismiss.mdc-snackbar__dismiss{width:36px;height:36px;padding:6px;font-size:18px}.mdc-snackbar__dismiss.mdc-snackbar__dismiss .mdc-icon-button__focus-ring{display:none}.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-snackbar__dismiss.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block;max-height:36px;max-width:36px}@media screen and (forced-colors: active){.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-snackbar__dismiss.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-snackbar__dismiss.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-snackbar__dismiss.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-snackbar__dismiss.mdc-snackbar__dismiss:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:36px;height:36px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-icon-button--reduced-size.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-snackbar__dismiss.mdc-snackbar__dismiss.mdc-icon-button--reduced-size:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{max-height:36px;max-width:36px}.mdc-snackbar__dismiss.mdc-snackbar__dismiss .mdc-icon-button__touch{position:absolute;top:50%;height:36px;left:50%;width:36px;transform:translate(-50%, -50%)}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}slot[name=action]::slotted(mwc-button){--mdc-theme-primary: var( --mdc-snackbar-action-color, #bb86fc )}slot[name=dismiss]::slotted(mwc-icon-button){--mdc-icon-size: 18px;--mdc-icon-button-size: 36px;color:rgba(255, 255, 255, 0.87);margin-left:8px;margin-right:0}[dir=rtl] slot[name=dismiss]::slotted(mwc-icon-button),::slotted(mwc-icon-buttonslot[name=dismiss][dir=rtl]){margin-left:0;margin-right:8px}`, ie = `:host{--mdc-snackbar-action-color: var(--mdc-theme-text-primary-on-dark);--mdc-theme-text-primary-on-background: var(--mdc-theme-text-primary-on-dark)}:host ::slotted(cv-icon-button){color:var(--mdc-theme-text-icon-on-dark)}
|
376
447
|
`;
|
377
|
-
var
|
378
|
-
for (var n =
|
379
|
-
(r =
|
380
|
-
return
|
448
|
+
var ae = Object.defineProperty, ne = Object.getOwnPropertyDescriptor, se = (a, e, t, i) => {
|
449
|
+
for (var n = i > 1 ? void 0 : i ? ne(e, t) : e, s = a.length - 1, r; s >= 0; s--)
|
450
|
+
(r = a[s]) && (n = (i ? r(e, t, n) : r(n)) || n);
|
451
|
+
return i && n && ae(e, t, n), n;
|
381
452
|
};
|
382
|
-
let
|
453
|
+
let f = class extends d {
|
383
454
|
};
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
],
|
388
|
-
const
|
455
|
+
f.styles = [te, C`${D(ie)}`];
|
456
|
+
f = se([
|
457
|
+
w("cv-snackbar")
|
458
|
+
], f);
|
459
|
+
const _e = f;
|
389
460
|
export {
|
390
|
-
|
391
|
-
|
461
|
+
f as CovalentSnackbar,
|
462
|
+
_e as default
|
392
463
|
};
|
package/status-dialog.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./query-assigned-elements-f623705d.js"),_=require("./property-57f6f6fe.js"),r=require("./state-0974a8e5.js"),h=require("./query-680f1868.js"),g=require("./dialog-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./query-assigned-elements-f623705d.js"),_=require("./property-57f6f6fe.js"),r=require("./state-0974a8e5.js"),h=require("./query-680f1868.js"),g=require("./dialog-82b03745.js"),o=require("./class-map-b5efe8da.js");require("./icon.js");require("./icon-button.js");require("./tslib.es6-98719205.js");require("./inert.esm-2cee6f2e.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./observer-a096ab43.js");require("./mwc-icon-f87639bc.js");require("./ripple-handlers-5d5b21db.js");require("./style-map-88d2563f.js");require("./aria-property-849c8816.js");require("./event-options-3f5eb195.js");require("./if-defined-f1c45245.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2016 Google Inc.
|
4
4
|
*
|
package/status-dialog.mjs
CHANGED
@@ -2,8 +2,8 @@ import { i as _, r as m, x as e, e as p } from "./query-assigned-elements-4a3921
|
|
2
2
|
import { n as h } from "./property-9b6ea53b.mjs";
|
3
3
|
import { t as g } from "./state-b5e865db.mjs";
|
4
4
|
import { i as v } from "./query-d843aa92.mjs";
|
5
|
-
import { s as u, a as f } from "./dialog-
|
6
|
-
import { o as l } from "./class-map-
|
5
|
+
import { s as u, a as f } from "./dialog-c9dbe94d.mjs";
|
6
|
+
import { o as l } from "./class-map-4b94b017.mjs";
|
7
7
|
import "./icon.mjs";
|
8
8
|
import "./icon-button.mjs";
|
9
9
|
import "./tslib.es6-c4b0f3b1.mjs";
|
@@ -11,10 +11,9 @@ import "./inert.esm-359d4581.mjs";
|
|
11
11
|
import "./base-element-acf30176.mjs";
|
12
12
|
import "./utils-dc65fdc9.mjs";
|
13
13
|
import "./observer-be7b92e2.mjs";
|
14
|
-
import "./directive-daf4e9b6.mjs";
|
15
14
|
import "./mwc-icon-5227aec3.mjs";
|
16
|
-
import "./ripple-handlers-
|
17
|
-
import "./style-map-
|
15
|
+
import "./ripple-handlers-0d9ad7c2.mjs";
|
16
|
+
import "./style-map-bc3ed3e0.mjs";
|
18
17
|
import "./aria-property-fa2717fe.mjs";
|
19
18
|
import "./event-options-78d6cf94.mjs";
|
20
19
|
import "./if-defined-c367f208.mjs";
|
@@ -216,8 +215,8 @@ n([
|
|
216
215
|
o = n([
|
217
216
|
p("cv-status-dialog")
|
218
217
|
], o);
|
219
|
-
const
|
218
|
+
const j = o;
|
220
219
|
export {
|
221
220
|
o as CovalentStatusDialog,
|
222
|
-
|
221
|
+
j as default
|
223
222
|
};
|
package/status-header.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./query-assigned-elements-f623705d.js"),u=require("./class-map-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./query-assigned-elements-f623705d.js"),u=require("./class-map-b5efe8da.js"),d=require("./property-57f6f6fe.js");var l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,n=(s,e,r,a)=>{for(var t=a>1?void 0:a?v(e,r):e,o=s.length-1,c;o>=0;o--)(c=s[o])&&(t=(a?c(e,r,t):c(t))||t);return a&&t&&l(e,r,t),t};class h extends i.s{constructor(){super(...arguments),this.state="neutral",this.statusText="",this.statusHelper="",this.titleText=""}render(){const e={active:this.state==="active",caution:this.state==="caution",error:this.state==="error",positive:this.state==="positive"};return i.x`
|
2
2
|
<div class="status-header ${u.o(e)}">
|
3
3
|
<div class="status-header-title">
|
4
4
|
<div class="status-header-title-text">${this.titleText}</div>
|
package/status-header.mjs
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { s as u, x as v, i as l, r as m, e as p } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
-
import { o as g } from "./class-map-
|
2
|
+
import { o as g } from "./class-map-4b94b017.mjs";
|
3
3
|
import { n as d } from "./property-9b6ea53b.mjs";
|
4
|
-
import "./directive-daf4e9b6.mjs";
|
5
4
|
var f = Object.defineProperty, y = Object.getOwnPropertyDescriptor, n = (c, e, s, a) => {
|
6
5
|
for (var t = a > 1 ? void 0 : a ? y(e, s) : e, r = c.length - 1, o; r >= 0; r--)
|
7
6
|
(o = c[r]) && (t = (a ? o(e, s, t) : o(t)) || t);
|
@@ -70,8 +69,8 @@ h.styles = [
|
|
70
69
|
h = _([
|
71
70
|
p("cv-status-header")
|
72
71
|
], h);
|
73
|
-
const
|
72
|
+
const P = h;
|
74
73
|
export {
|
75
74
|
h as CovalentStatusHeader,
|
76
|
-
|
75
|
+
P as default
|
77
76
|
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
"use strict";const
|
1
|
+
"use strict";const u=require("./query-assigned-elements-f623705d.js"),o=require("./class-map-b5efe8da.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2018 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
-
*/const
|
5
|
+
*/const l="important",c=" !"+l,d=o.e(class extends o.i{constructor(n){var t;if(super(n),n.type!==o.t.ATTRIBUTE||n.name!=="style"||((t=n.strings)===null||t===void 0?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((t,s)=>{const e=n[s];return e==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`},"")}update(n,[t]){const{style:s}=n.element;if(this.ht===void 0){this.ht=new Set;for(const e in t)this.ht.add(e);return this.render(t)}this.ht.forEach(e=>{t[e]==null&&(this.ht.delete(e),e.includes("-")?s.removeProperty(e):s[e]="")});for(const e in t){const r=t[e];if(r!=null){this.ht.add(e);const i=typeof r=="string"&&r.endsWith(c);e.includes("-")||i?s.setProperty(e,i?r.slice(0,-11):r,i?l:""):s[e]=r}}return u.T}});exports.o=d;
|
package/switch.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./query-assigned-elements-f623705d.js"),i=require("./tslib.es6-98719205.js"),P=require("./ripple-handlers-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./query-assigned-elements-f623705d.js"),i=require("./tslib.es6-98719205.js"),P=require("./ripple-handlers-5d5b21db.js"),O=require("./aria-property-849c8816.js"),$=require("./form-element-c553d6f5.js"),y=require("./property-57f6f6fe.js"),R=require("./state-0974a8e5.js"),L=require("./event-options-3f5eb195.js"),S=require("./query-680f1868.js"),q=require("./class-map-b5efe8da.js"),k=require("./if-defined-f1c45245.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./style-map-88d2563f.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2016 Google Inc.
|
4
4
|
*
|
package/switch.mjs
CHANGED
@@ -1,18 +1,17 @@
|
|
1
1
|
import { x as f, i as D, r as F, e as T } from "./query-assigned-elements-4a39219d.mjs";
|
2
2
|
import { b as B, c as x, a as P, d as H, e as I, _ as n } from "./tslib.es6-c4b0f3b1.mjs";
|
3
|
-
import { e as M, R as j } from "./ripple-handlers-
|
3
|
+
import { e as M, R as j } from "./ripple-handlers-0d9ad7c2.mjs";
|
4
4
|
import { a as E } from "./aria-property-fa2717fe.mjs";
|
5
5
|
import { F as X } from "./form-element-abadd335.mjs";
|
6
6
|
import { n as y } from "./property-9b6ea53b.mjs";
|
7
7
|
import { t as G } from "./state-b5e865db.mjs";
|
8
8
|
import { e as U } from "./event-options-78d6cf94.mjs";
|
9
9
|
import { i as $ } from "./query-d843aa92.mjs";
|
10
|
-
import { o as A } from "./class-map-
|
10
|
+
import { o as A } from "./class-map-4b94b017.mjs";
|
11
11
|
import { l as O } from "./if-defined-c367f208.mjs";
|
12
12
|
import "./base-element-acf30176.mjs";
|
13
13
|
import "./utils-dc65fdc9.mjs";
|
14
|
-
import "./style-map-
|
15
|
-
import "./directive-daf4e9b6.mjs";
|
14
|
+
import "./style-map-bc3ed3e0.mjs";
|
16
15
|
/**
|
17
16
|
* @license
|
18
17
|
* Copyright 2016 Google Inc.
|
@@ -532,8 +531,8 @@ C.styles = [Q, D`${F(Z)}`];
|
|
532
531
|
C = te([
|
533
532
|
T("cv-switch")
|
534
533
|
], C);
|
535
|
-
const
|
534
|
+
const fe = C;
|
536
535
|
export {
|
537
536
|
C as CovalentSwitch,
|
538
|
-
|
537
|
+
fe as default
|
539
538
|
};
|
package/tab-bar.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./tslib.es6-98719205.js"),f=require("./query-assigned-elements-f623705d.js"),x=require("./mwc-tab-base-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./tslib.es6-98719205.js"),f=require("./query-assigned-elements-f623705d.js"),x=require("./mwc-tab-base-f28722aa.js"),C=require("./base-element-58a3f9ea.js"),R=require("./event-options-3f5eb195.js"),g=require("./query-680f1868.js"),L=require("./utils-a8190a39.js"),I=require("./observer-a096ab43.js"),O=require("./property-57f6f6fe.js");require("./class-map-b5efe8da.js");require("./ripple-handlers-5d5b21db.js");require("./state-0974a8e5.js");require("./style-map-88d2563f.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2021 Google LLC
|
4
4
|
* SPDX-LIcense-Identifier: Apache-2.0
|
@@ -275,4 +275,4 @@
|
|
275
275
|
* @license
|
276
276
|
* Copyright 2021 Google LLC
|
277
277
|
* SPDX-LIcense-Identifier: Apache-2.0
|
278
|
-
*/const B=f.i`.mdc-tab-bar{width:100%}.mdc-tab{height:48px}.mdc-tab--stacked{height:72px}:host{display:block}.mdc-tab-bar{flex:1}mwc-tab{--mdc-tab-height: 48px;--mdc-tab-stacked-height: 72px}`;var H=Object.defineProperty,
|
278
|
+
*/const B=f.i`.mdc-tab-bar{width:100%}.mdc-tab{height:48px}.mdc-tab--stacked{height:72px}:host{display:block}.mdc-tab-bar{flex:1}mwc-tab{--mdc-tab-height: 48px;--mdc-tab-stacked-height: 72px}`;var H=Object.defineProperty,X=Object.getOwnPropertyDescriptor,q=(o,e,t,r)=>{for(var a=r>1?void 0:r?X(e,t):e,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=(r?i(e,t,a):i(a))||a);return r&&a&&H(e,t,a),a};exports.CovalentTabBar=class extends v{};exports.CovalentTabBar.styles=[B];exports.CovalentTabBar=q([f.e("cv-tab-bar")],exports.CovalentTabBar);const $=exports.CovalentTabBar;exports.default=$;
|