@covalent/components 6.0.1 → 6.0.2
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.mjs +9 -7
- package/alert.mjs +13 -11
- package/app-shell.mjs +10 -4
- package/aria-property.mjs +41 -0
- package/base-element.mjs +28 -0
- package/button.mjs +180 -13
- package/card.mjs +3 -3
- package/check-list-item.mjs +92 -14
- package/checkbox.mjs +26 -14
- package/circular-progress.mjs +144 -10
- package/class-map.mjs +62 -0
- package/code-snippet.mjs +6 -5
- package/covalent.mjs +2 -2
- package/covalent.umd.js +3339 -137
- package/dialog.mjs +750 -15
- package/directive-helpers.mjs +11 -0
- package/drawer.mjs +26 -15
- package/empty-state.mjs +4 -4
- package/event-options.mjs +14 -0
- package/form-element.mjs +50 -0
- package/foundation.mjs +152 -0
- package/foundation2.mjs +60 -0
- package/icon-button.mjs +130 -15
- package/icon-check-toggle.mjs +18 -8
- package/icon-radio-toggle.mjs +29 -18
- package/icon.mjs +19 -13
- package/if-defined.mjs +10 -0
- package/inert.esm.mjs +640 -0
- package/linear-progress.mjs +178 -15
- package/list-expansion.mjs +33 -22
- package/list-item.mjs +19 -20
- package/list.mjs +26 -13
- package/menu.mjs +32 -13
- package/mwc-checkbox-base.mjs +198 -0
- package/mwc-checkbox.css.mjs +10 -0
- package/mwc-drawer-base.mjs +335 -0
- package/mwc-icon.mjs +26 -0
- package/mwc-line-ripple-directive.mjs +653 -0
- package/mwc-list-base.mjs +840 -0
- package/mwc-list-item-base.mjs +202 -0
- package/mwc-list-item.css.mjs +17 -0
- package/mwc-menu-base.mjs +1145 -0
- package/mwc-radio-base.mjs +528 -0
- package/mwc-radio.css.mjs +10 -0
- package/mwc-slider.css.mjs +956 -0
- package/mwc-tab-base.mjs +694 -0
- package/mwc-top-app-bar-base.mjs +380 -0
- package/nav-list-item.mjs +28 -20
- package/observer.mjs +32 -0
- package/package.json +9 -2
- package/property.mjs +20 -0
- package/query-assigned-elements.mjs +615 -0
- package/query-assigned-nodes.mjs +17 -0
- package/query.mjs +25 -0
- package/radio-list-item.mjs +93 -12
- package/radio.mjs +28 -15
- package/ripple-handlers.mjs +761 -0
- package/select.mjs +1257 -15
- package/side-sheet.mjs +21 -16
- package/slider-range.mjs +438 -11
- package/slider.mjs +253 -13
- package/snackbar.mjs +456 -15
- package/src/action-ribbon/action-ribbon-base.d.ts +30 -0
- package/src/action-ribbon/action-ribbon-base.d.ts.map +1 -0
- package/src/action-ribbon/action-ribbon.d.ts +15 -0
- package/src/action-ribbon/action-ribbon.d.ts.map +1 -0
- package/src/alert/alert-base.d.ts +31 -0
- package/src/alert/alert-base.d.ts.map +1 -0
- package/src/alert/alert.d.ts +15 -0
- package/src/alert/alert.d.ts.map +1 -0
- package/src/app-shell/app-shell.d.ts +26 -0
- package/src/app-shell/app-shell.d.ts.map +1 -0
- package/src/button/button.d.ts +10 -0
- package/src/button/button.d.ts.map +1 -0
- package/src/card/card-base.d.ts +25 -0
- package/src/card/card-base.d.ts.map +1 -0
- package/src/card/card.d.ts +10 -0
- package/src/card/card.d.ts.map +1 -0
- package/src/checkbox/checkbox.d.ts +10 -0
- package/src/checkbox/checkbox.d.ts.map +1 -0
- package/src/chips/chip-base.d.ts +52 -0
- package/src/chips/chip-base.d.ts.map +1 -0
- package/src/chips/chip-set-base.d.ts +33 -0
- package/src/chips/chip-set-base.d.ts.map +1 -0
- package/src/chips/chip-set.d.ts +15 -0
- package/src/chips/chip-set.d.ts.map +1 -0
- package/src/chips/chip.d.ts +15 -0
- package/src/chips/chip.d.ts.map +1 -0
- package/src/chips/foundation.d.ts +60 -0
- package/src/chips/foundation.d.ts.map +1 -0
- package/src/circular-progress/circular-progress.d.ts +10 -0
- package/src/circular-progress/circular-progress.d.ts.map +1 -0
- package/src/code-snippet/code-snippet.d.ts +21 -0
- package/src/code-snippet/code-snippet.d.ts.map +1 -0
- package/src/dialog/dialog.d.ts +10 -0
- package/src/dialog/dialog.d.ts.map +1 -0
- package/src/drawer/drawer.d.ts +10 -0
- package/src/drawer/drawer.d.ts.map +1 -0
- package/src/empty-state/empty-state.d.ts +16 -0
- package/src/empty-state/empty-state.d.ts.map +1 -0
- package/src/formfield/formfield.d.ts +10 -0
- package/src/formfield/formfield.d.ts.map +1 -0
- package/src/icon/icon.d.ts +10 -0
- package/src/icon/icon.d.ts.map +1 -0
- package/src/icon-button/icon-button.d.ts +10 -0
- package/src/icon-button/icon-button.d.ts.map +1 -0
- package/src/icon-checkbox/icon-check-toggle.d.ts +15 -0
- package/src/icon-checkbox/icon-check-toggle.d.ts.map +1 -0
- package/src/icon-radio/icon-radio-toggle.d.ts +14 -0
- package/src/icon-radio/icon-radio-toggle.d.ts.map +1 -0
- package/src/index.d.ts +3 -0
- package/src/index.d.ts.map +1 -0
- package/src/linear-progress/linear-progress.d.ts +10 -0
- package/src/linear-progress/linear-progress.d.ts.map +1 -0
- package/src/list/check-list-item.d.ts +10 -0
- package/src/list/check-list-item.d.ts.map +1 -0
- package/src/list/list-expansion.d.ts +18 -0
- package/src/list/list-expansion.d.ts.map +1 -0
- package/src/list/list-item.d.ts +12 -0
- package/src/list/list-item.d.ts.map +1 -0
- package/src/list/list.d.ts +10 -0
- package/src/list/list.d.ts.map +1 -0
- package/src/list/nav-list-item.d.ts +12 -0
- package/src/list/nav-list-item.d.ts.map +1 -0
- package/src/list/radio-list-item.d.ts +10 -0
- package/src/list/radio-list-item.d.ts.map +1 -0
- package/src/menu/menu.d.ts +10 -0
- package/src/menu/menu.d.ts.map +1 -0
- package/src/radio/radio.d.ts +10 -0
- package/src/radio/radio.d.ts.map +1 -0
- package/src/select/select.d.ts +10 -0
- package/src/select/select.d.ts.map +1 -0
- package/src/side-sheet/side-sheet.d.ts +18 -0
- package/src/side-sheet/side-sheet.d.ts.map +1 -0
- package/src/slider/slider-range.d.ts +10 -0
- package/src/slider/slider-range.d.ts.map +1 -0
- package/src/slider/slider.d.ts +10 -0
- package/src/slider/slider.d.ts.map +1 -0
- package/src/snackbar/snackbar.d.ts +10 -0
- package/src/snackbar/snackbar.d.ts.map +1 -0
- package/src/status-header/status-header-base.d.ts +9 -0
- package/src/status-header/status-header-base.d.ts.map +1 -0
- package/src/status-header/status-header-item.d.ts +17 -0
- package/src/status-header/status-header-item.d.ts.map +1 -0
- package/src/status-header/status-header.d.ts +15 -0
- package/src/status-header/status-header.d.ts.map +1 -0
- package/src/switch/switch.d.ts +10 -0
- package/src/switch/switch.d.ts.map +1 -0
- package/src/tab/tab-bar.d.ts +10 -0
- package/src/tab/tab-bar.d.ts.map +1 -0
- package/src/tab/tab.d.ts +10 -0
- package/src/tab/tab.d.ts.map +1 -0
- package/src/text-lockup/text-lockup.d.ts +17 -0
- package/src/text-lockup/text-lockup.d.ts.map +1 -0
- package/src/textarea/textarea.d.ts +10 -0
- package/src/textarea/textarea.d.ts.map +1 -0
- package/src/textfield/textfield.d.ts +10 -0
- package/src/textfield/textfield.d.ts.map +1 -0
- package/src/toolbar/toolbar.d.ts +10 -0
- package/src/toolbar/toolbar.d.ts.map +1 -0
- package/src/tooltip/tooltip.d.ts +27 -0
- package/src/tooltip/tooltip.d.ts.map +1 -0
- package/src/top-app-bar/top-app-bar-fixed.d.ts +10 -0
- package/src/top-app-bar/top-app-bar-fixed.d.ts.map +1 -0
- package/src/top-app-bar/top-app-bar.d.ts +10 -0
- package/src/top-app-bar/top-app-bar.d.ts.map +1 -0
- package/src/tree-list/tree-list-item.d.ts +16 -0
- package/src/tree-list/tree-list-item.d.ts.map +1 -0
- package/src/tree-list/tree-list.d.ts +11 -0
- package/src/tree-list/tree-list.d.ts.map +1 -0
- package/src/typography/typography.d.ts +12 -0
- package/src/typography/typography.d.ts.map +1 -0
- package/state.mjs +12 -0
- package/status-header-item.mjs +16 -16
- package/status-header.mjs +5 -5
- package/style-map.mjs +40 -0
- package/switch.mjs +531 -15
- package/tab-bar.mjs +1030 -13
- package/tab.mjs +29 -15
- package/text-lockup.mjs +8 -8
- package/textarea.mjs +111 -16
- package/textfield.mjs +34 -18
- package/textfield2.mjs +929 -2
- package/toolbar.mjs +8 -3
- package/tooltip.mjs +1153 -96
- package/top-app-bar-fixed.mjs +78 -18
- package/top-app-bar.mjs +19 -15
- package/top-app-bar2.mjs +9 -2
- package/tree-list-item.mjs +3 -3
- package/tree-list.mjs +6 -7
- package/tslib.es6.mjs +82 -0
- package/typography.mjs +8 -8
- package/utils.mjs +52 -0
package/snackbar.mjs
CHANGED
@@ -1,20 +1,461 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
|
1
|
+
import { Z as M, y as b, i as C, r as D, e as w } from "./query-assigned-elements.mjs";
|
2
|
+
import { _ as $, a as x, b as m } from "./tslib.es6.mjs";
|
3
|
+
import { B as F } from "./base-element.mjs";
|
4
|
+
import { o as g } from "./observer.mjs";
|
5
|
+
import { e as l } from "./property.mjs";
|
6
|
+
import { i as O } from "./query.mjs";
|
7
|
+
import { i as L, t as S, e as P, o as R } from "./class-map.mjs";
|
8
|
+
import { e as z } from "./directive-helpers.mjs";
|
9
|
+
import { a as U } from "./utils.mjs";
|
10
|
+
/**
|
11
|
+
* @license
|
12
|
+
* Copyright 2016 Google Inc.
|
13
|
+
*
|
14
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
15
|
+
* of this software and associated documentation files (the "Software"), to deal
|
16
|
+
* in the Software without restriction, including without limitation the rights
|
17
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
18
|
+
* copies of the Software, and to permit persons to whom the Software is
|
19
|
+
* furnished to do so, subject to the following conditions:
|
20
|
+
*
|
21
|
+
* The above copyright notice and this permission notice shall be included in
|
22
|
+
* all copies or substantial portions of the Software.
|
23
|
+
*
|
24
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
25
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
26
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
27
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
28
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
29
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
30
|
+
* THE SOFTWARE.
|
31
|
+
*/
|
32
|
+
var B = (
|
33
|
+
/** @class */
|
34
|
+
function() {
|
35
|
+
function a(e) {
|
36
|
+
e === void 0 && (e = {}), this.adapter = e;
|
37
|
+
}
|
38
|
+
return Object.defineProperty(a, "cssClasses", {
|
39
|
+
get: function() {
|
40
|
+
return {};
|
41
|
+
},
|
42
|
+
enumerable: !1,
|
43
|
+
configurable: !0
|
44
|
+
}), Object.defineProperty(a, "strings", {
|
45
|
+
get: function() {
|
46
|
+
return {};
|
47
|
+
},
|
48
|
+
enumerable: !1,
|
49
|
+
configurable: !0
|
50
|
+
}), Object.defineProperty(a, "numbers", {
|
51
|
+
get: function() {
|
52
|
+
return {};
|
53
|
+
},
|
54
|
+
enumerable: !1,
|
55
|
+
configurable: !0
|
56
|
+
}), Object.defineProperty(a, "defaultAdapter", {
|
57
|
+
get: function() {
|
58
|
+
return {};
|
59
|
+
},
|
60
|
+
enumerable: !1,
|
61
|
+
configurable: !0
|
62
|
+
}), a.prototype.init = function() {
|
63
|
+
}, a.prototype.destroy = function() {
|
64
|
+
}, a;
|
65
|
+
}()
|
66
|
+
);
|
67
|
+
/**
|
68
|
+
* @license
|
69
|
+
* Copyright 2018 Google Inc.
|
70
|
+
*
|
71
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
72
|
+
* of this software and associated documentation files (the "Software"), to deal
|
73
|
+
* in the Software without restriction, including without limitation the rights
|
74
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
75
|
+
* copies of the Software, and to permit persons to whom the Software is
|
76
|
+
* furnished to do so, subject to the following conditions:
|
77
|
+
*
|
78
|
+
* The above copyright notice and this permission notice shall be included in
|
79
|
+
* all copies or substantial portions of the Software.
|
80
|
+
*
|
81
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
82
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
83
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
84
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
85
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
86
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
87
|
+
* THE SOFTWARE.
|
88
|
+
*/
|
89
|
+
var c = {
|
90
|
+
CLOSING: "mdc-snackbar--closing",
|
91
|
+
OPEN: "mdc-snackbar--open",
|
92
|
+
OPENING: "mdc-snackbar--opening"
|
93
|
+
}, k = {
|
94
|
+
ACTION_SELECTOR: ".mdc-snackbar__action",
|
95
|
+
ARIA_LIVE_LABEL_TEXT_ATTR: "data-mdc-snackbar-label-text",
|
96
|
+
CLOSED_EVENT: "MDCSnackbar:closed",
|
97
|
+
CLOSING_EVENT: "MDCSnackbar:closing",
|
98
|
+
DISMISS_SELECTOR: ".mdc-snackbar__dismiss",
|
99
|
+
LABEL_SELECTOR: ".mdc-snackbar__label",
|
100
|
+
OPENED_EVENT: "MDCSnackbar:opened",
|
101
|
+
OPENING_EVENT: "MDCSnackbar:opening",
|
102
|
+
REASON_ACTION: "action",
|
103
|
+
REASON_DISMISS: "dismiss",
|
104
|
+
SURFACE_SELECTOR: ".mdc-snackbar__surface"
|
105
|
+
}, o = {
|
106
|
+
DEFAULT_AUTO_DISMISS_TIMEOUT_MS: 5e3,
|
107
|
+
INDETERMINATE: -1,
|
108
|
+
MAX_AUTO_DISMISS_TIMEOUT_MS: 1e4,
|
109
|
+
MIN_AUTO_DISMISS_TIMEOUT_MS: 4e3,
|
110
|
+
// These variables need to be kept in sync with the values in _variables.scss.
|
111
|
+
SNACKBAR_ANIMATION_CLOSE_TIME_MS: 75,
|
112
|
+
SNACKBAR_ANIMATION_OPEN_TIME_MS: 150,
|
113
|
+
/**
|
114
|
+
* Number of milliseconds to wait between temporarily clearing the label text
|
115
|
+
* in the DOM and subsequently restoring it. This is necessary to force IE 11
|
116
|
+
* to pick up the `aria-live` content change and announce it to the user.
|
117
|
+
*/
|
118
|
+
ARIA_LIVE_DELAY_MS: 1e3
|
119
|
+
};
|
120
|
+
/**
|
121
|
+
* @license
|
122
|
+
* Copyright 2018 Google Inc.
|
123
|
+
*
|
124
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
125
|
+
* of this software and associated documentation files (the "Software"), to deal
|
126
|
+
* in the Software without restriction, including without limitation the rights
|
127
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
128
|
+
* copies of the Software, and to permit persons to whom the Software is
|
129
|
+
* furnished to do so, subject to the following conditions:
|
130
|
+
*
|
131
|
+
* The above copyright notice and this permission notice shall be included in
|
132
|
+
* all copies or substantial portions of the Software.
|
133
|
+
*
|
134
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
135
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
136
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
137
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
138
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
139
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
140
|
+
* THE SOFTWARE.
|
141
|
+
*/
|
142
|
+
var E = c.OPENING, A = c.OPEN, T = c.CLOSING, V = k.REASON_ACTION, f = k.REASON_DISMISS, j = (
|
143
|
+
/** @class */
|
144
|
+
function(a) {
|
145
|
+
$(e, a);
|
146
|
+
function e(t) {
|
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;
|
149
|
+
}
|
150
|
+
return Object.defineProperty(e, "cssClasses", {
|
151
|
+
get: function() {
|
152
|
+
return c;
|
153
|
+
},
|
154
|
+
enumerable: !1,
|
155
|
+
configurable: !0
|
156
|
+
}), Object.defineProperty(e, "strings", {
|
157
|
+
get: function() {
|
158
|
+
return k;
|
159
|
+
},
|
160
|
+
enumerable: !1,
|
161
|
+
configurable: !0
|
162
|
+
}), Object.defineProperty(e, "numbers", {
|
163
|
+
get: function() {
|
164
|
+
return o;
|
165
|
+
},
|
166
|
+
enumerable: !1,
|
167
|
+
configurable: !0
|
168
|
+
}), Object.defineProperty(e, "defaultAdapter", {
|
169
|
+
get: function() {
|
170
|
+
return {
|
171
|
+
addClass: function() {
|
172
|
+
},
|
173
|
+
announce: function() {
|
174
|
+
},
|
175
|
+
notifyClosed: function() {
|
176
|
+
},
|
177
|
+
notifyClosing: function() {
|
178
|
+
},
|
179
|
+
notifyOpened: function() {
|
180
|
+
},
|
181
|
+
notifyOpening: function() {
|
182
|
+
},
|
183
|
+
removeClass: function() {
|
184
|
+
}
|
185
|
+
};
|
186
|
+
},
|
187
|
+
enumerable: !1,
|
188
|
+
configurable: !0
|
189
|
+
}), e.prototype.destroy = function() {
|
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);
|
191
|
+
}, e.prototype.open = function() {
|
192
|
+
var t = this;
|
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(f);
|
198
|
+
}, i));
|
199
|
+
}, o.SNACKBAR_ANIMATION_OPEN_TIME_MS);
|
200
|
+
});
|
201
|
+
}, e.prototype.close = function(t) {
|
202
|
+
var i = this;
|
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() {
|
204
|
+
i.handleAnimationTimerEnd(), i.adapter.notifyClosed(t);
|
205
|
+
}, o.SNACKBAR_ANIMATION_CLOSE_TIME_MS));
|
206
|
+
}, e.prototype.isOpen = function() {
|
207
|
+
return this.opened;
|
208
|
+
}, e.prototype.getTimeoutMs = function() {
|
209
|
+
return this.autoDismissTimeoutMs;
|
210
|
+
}, e.prototype.setTimeoutMs = function(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)
|
213
|
+
this.autoDismissTimeoutMs = t;
|
214
|
+
else
|
215
|
+
throw new Error(`
|
216
|
+
timeoutMs must be an integer in the range ` + i + "–" + n + `
|
217
|
+
(or ` + s + " to disable), but got '" + t + "'");
|
218
|
+
}, e.prototype.getCloseOnEscape = function() {
|
219
|
+
return this.closeOnEscape;
|
220
|
+
}, e.prototype.setCloseOnEscape = function(t) {
|
221
|
+
this.closeOnEscape = t;
|
222
|
+
}, e.prototype.handleKeyDown = function(t) {
|
223
|
+
var i = t.key === "Escape" || t.keyCode === 27;
|
224
|
+
i && this.getCloseOnEscape() && this.close(f);
|
225
|
+
}, e.prototype.handleActionButtonClick = function(t) {
|
226
|
+
this.close(V);
|
227
|
+
}, e.prototype.handleActionIconClick = function(t) {
|
228
|
+
this.close(f);
|
229
|
+
}, e.prototype.clearAutoDismissTimer = function() {
|
230
|
+
clearTimeout(this.autoDismissTimer), this.autoDismissTimer = 0;
|
231
|
+
}, e.prototype.handleAnimationTimerEnd = function() {
|
232
|
+
this.animationTimer = 0, this.adapter.removeClass(c.OPENING), this.adapter.removeClass(c.CLOSING);
|
233
|
+
}, e.prototype.runNextAnimationFrame = function(t) {
|
234
|
+
var i = this;
|
235
|
+
cancelAnimationFrame(this.animationFrame), this.animationFrame = requestAnimationFrame(function() {
|
236
|
+
i.animationFrame = 0, clearTimeout(i.animationTimer), i.animationTimer = setTimeout(t, 0);
|
237
|
+
});
|
238
|
+
}, e;
|
239
|
+
}(B)
|
240
|
+
);
|
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
|
+
}
|
315
|
+
/**
|
316
|
+
* @license
|
317
|
+
* Copyright 2019 Google LLC
|
318
|
+
* SPDX-License-Identifier: Apache-2.0
|
319
|
+
*/
|
320
|
+
const { ARIA_LIVE_DELAY_MS: Q } = y.numbers;
|
321
|
+
class Y extends X {
|
322
|
+
constructor(e) {
|
323
|
+
if (super(e), this.labelEl = null, this.timerId = null, this.previousPart = null, e.type !== S.CHILD)
|
324
|
+
throw new Error("AccessibleSnackbarLabel only supports child parts.");
|
325
|
+
}
|
326
|
+
update(e, [t, i]) {
|
327
|
+
var n;
|
328
|
+
if (!i)
|
329
|
+
return;
|
330
|
+
if (this.labelEl === null) {
|
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;
|
335
|
+
}
|
336
|
+
const s = this.labelEl;
|
337
|
+
s.setAttribute("aria-live", "off"), s.textContent = "";
|
338
|
+
const r = document.createElement("span");
|
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(() => {
|
340
|
+
this.timerId = null, s.setAttribute("aria-live", "polite"), s.removeAttribute("data-mdc-snackbar-label-text"), s.textContent = t, this.setValue(this.labelEl);
|
341
|
+
}, Q), s;
|
342
|
+
}
|
343
|
+
render(e, t) {
|
344
|
+
return t ? b`
|
345
|
+
<div class="mdc-snackbar__label" role="status" aria-live="polite">${e}</div>` : b``;
|
346
|
+
}
|
347
|
+
}
|
348
|
+
const q = P(Y);
|
349
|
+
/**
|
350
|
+
* @license
|
351
|
+
* Copyright 2018 Google LLC
|
352
|
+
* SPDX-License-Identifier: Apache-2.0
|
353
|
+
*/
|
354
|
+
const { OPENING_EVENT: Z, OPENED_EVENT: J, CLOSING_EVENT: W, CLOSED_EVENT: ee } = y.strings;
|
355
|
+
class d extends F {
|
356
|
+
constructor() {
|
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 = "";
|
358
|
+
}
|
359
|
+
render() {
|
360
|
+
const e = {
|
361
|
+
"mdc-snackbar--stacked": this.stacked,
|
362
|
+
"mdc-snackbar--leading": this.leading
|
363
|
+
};
|
364
|
+
return b`
|
365
|
+
<div class="mdc-snackbar ${R(e)}" @keydown="${this._handleKeydown}">
|
366
|
+
<div class="mdc-snackbar__surface">
|
367
|
+
${q(this.labelText, this.open)}
|
368
|
+
<div class="mdc-snackbar__actions">
|
369
|
+
<slot name="action" @click="${this._handleActionClick}"></slot>
|
370
|
+
<slot name="dismiss" @click="${this._handleDismissClick}"></slot>
|
371
|
+
</div>
|
372
|
+
</div>
|
373
|
+
</div>`;
|
374
|
+
}
|
375
|
+
createAdapter() {
|
376
|
+
return Object.assign(Object.assign({}, U(this.mdcRoot)), { announce: () => {
|
377
|
+
}, notifyClosed: (e) => {
|
378
|
+
this.dispatchEvent(new CustomEvent(ee, { bubbles: !0, cancelable: !0, detail: { reason: e } }));
|
379
|
+
}, notifyClosing: (e) => {
|
380
|
+
this.open = !1, this.dispatchEvent(new CustomEvent(W, { bubbles: !0, cancelable: !0, detail: { reason: e } }));
|
381
|
+
}, notifyOpened: () => {
|
382
|
+
this.dispatchEvent(new CustomEvent(J, { bubbles: !0, cancelable: !0 }));
|
383
|
+
}, notifyOpening: () => {
|
384
|
+
this.open = !0, this.dispatchEvent(new CustomEvent(Z, { bubbles: !0, cancelable: !0 }));
|
385
|
+
} });
|
386
|
+
}
|
387
|
+
/** @export */
|
388
|
+
show() {
|
389
|
+
this.open = !0;
|
390
|
+
}
|
391
|
+
/** @export */
|
392
|
+
close(e = "") {
|
393
|
+
this.reason = e, this.open = !1;
|
394
|
+
}
|
395
|
+
firstUpdated() {
|
396
|
+
super.firstUpdated(), this.open && this.mdcFoundation.open();
|
397
|
+
}
|
398
|
+
_handleKeydown(e) {
|
399
|
+
this.mdcFoundation.handleKeyDown(e);
|
400
|
+
}
|
401
|
+
_handleActionClick(e) {
|
402
|
+
this.mdcFoundation.handleActionButtonClick(e);
|
403
|
+
}
|
404
|
+
_handleDismissClick(e) {
|
405
|
+
this.mdcFoundation.handleActionIconClick(e);
|
406
|
+
}
|
407
|
+
}
|
408
|
+
m([
|
409
|
+
O(".mdc-snackbar")
|
410
|
+
], d.prototype, "mdcRoot", void 0);
|
411
|
+
m([
|
412
|
+
O(".mdc-snackbar__label")
|
413
|
+
], d.prototype, "labelElement", void 0);
|
414
|
+
m([
|
415
|
+
l({ type: Boolean, reflect: !0 }),
|
416
|
+
g(function(a) {
|
417
|
+
this.mdcFoundation && (a ? this.mdcFoundation.open() : (this.mdcFoundation.close(this.reason), this.reason = ""));
|
418
|
+
})
|
419
|
+
], d.prototype, "open", void 0);
|
420
|
+
m([
|
421
|
+
g(function(a) {
|
422
|
+
this.mdcFoundation.setTimeoutMs(a);
|
423
|
+
}),
|
424
|
+
l({ type: Number })
|
425
|
+
], d.prototype, "timeoutMs", void 0);
|
426
|
+
m([
|
427
|
+
g(function(a) {
|
428
|
+
this.mdcFoundation.setCloseOnEscape(a);
|
429
|
+
}),
|
430
|
+
l({ type: Boolean })
|
431
|
+
], d.prototype, "closeOnEscape", void 0);
|
432
|
+
m([
|
433
|
+
l({ type: String })
|
434
|
+
], d.prototype, "labelText", void 0);
|
435
|
+
m([
|
436
|
+
l({ type: Boolean })
|
437
|
+
], d.prototype, "stacked", void 0);
|
438
|
+
m([
|
439
|
+
l({ type: Boolean })
|
440
|
+
], d.prototype, "leading", void 0);
|
441
|
+
/**
|
442
|
+
* @license
|
443
|
+
* Copyright 2021 Google LLC
|
444
|
+
* SPDX-LIcense-Identifier: Apache-2.0
|
445
|
+
*/
|
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)}:host ::slotted(cv-icon-button){color:var(--mdc-theme-text-icon-on-dark)}
|
6
447
|
`;
|
7
|
-
var
|
8
|
-
for (var
|
9
|
-
(
|
10
|
-
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;
|
11
452
|
};
|
12
|
-
let
|
453
|
+
let h = class extends d {
|
13
454
|
};
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
],
|
455
|
+
h.styles = [te, C`${D(ie)}`];
|
456
|
+
h = se([
|
457
|
+
w("cv-snackbar")
|
458
|
+
], h);
|
18
459
|
export {
|
19
|
-
|
460
|
+
h as CovalentSnackbarBase
|
20
461
|
};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { MDCBannerAdapter } from '@material/banner/adapter';
|
2
|
+
import { CloseReason } from '@material/banner/constants';
|
3
|
+
import { MDCBannerFoundation } from '@material/banner';
|
4
|
+
import { LitElement, TemplateResult } from 'lit';
|
5
|
+
export declare class ActionRibbonBase extends LitElement {
|
6
|
+
protected mdcFoundation: MDCBannerFoundation;
|
7
|
+
protected readonly mdcFoundationClass: typeof MDCBannerFoundation;
|
8
|
+
protected mdcRoot: HTMLElement;
|
9
|
+
protected mdcContent: HTMLElement;
|
10
|
+
protected primaryActionEl: HTMLElement;
|
11
|
+
open: boolean;
|
12
|
+
labelText: string;
|
13
|
+
icon: string;
|
14
|
+
iconAriaLabel: string;
|
15
|
+
centered: boolean;
|
16
|
+
/**
|
17
|
+
* The state representation active|negative|positive|caution
|
18
|
+
*/
|
19
|
+
state?: 'active' | 'negative' | 'positive' | 'caution';
|
20
|
+
protected reason: CloseReason;
|
21
|
+
protected render(): TemplateResult<1>;
|
22
|
+
protected renderIcon(): TemplateResult;
|
23
|
+
protected createAdapter(): MDCBannerAdapter;
|
24
|
+
/** @export */
|
25
|
+
show(): void;
|
26
|
+
/** @export */
|
27
|
+
close(reason?: CloseReason): void;
|
28
|
+
protected firstUpdated(): Promise<void>;
|
29
|
+
}
|
30
|
+
//# sourceMappingURL=action-ribbon-base.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"action-ribbon-base.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/action-ribbon/action-ribbon-base.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAEL,WAAW,EAGZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAIvD,qBAAa,gBAAiB,SAAQ,UAAU;IAC9C,SAAS,CAAC,aAAa,EAAG,mBAAmB,CAAC;IAC9C,SAAS,CAAC,QAAQ,CAAC,kBAAkB,6BAAuB;IAEtC,SAAS,CAAC,OAAO,EAAG,WAAW,CAAC;IAC5B,SAAS,CAAC,UAAU,EAAG,WAAW,CAAC;IAC5B,SAAS,CAAC,eAAe,EAAG,WAAW,CAAC;IAazE,IAAI,UAAQ;IAEgB,SAAS,SAAM;IAEf,IAAI,SAAM;IACV,aAAa,SAAM;IAElB,QAAQ,UAAQ;IAE7C;;OAEG;IAEH,KAAK,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;IAEvD,SAAS,CAAC,MAAM,EAAE,WAAW,CAA2B;cAErC,MAAM;IAsBzB,SAAS,CAAC,UAAU,IAAI,cAAc;IAQtC,SAAS,CAAC,aAAa,IAAI,gBAAgB;IA2C3C,cAAc;IACd,IAAI;IAIJ,cAAc;IACd,KAAK,CAAC,MAAM,cAA0B;cAKb,YAAY;CAUtC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { ActionRibbonBase } from './action-ribbon-base';
|
2
|
+
/**
|
3
|
+
* Action ribbon
|
4
|
+
*
|
5
|
+
* @slot - This element has a slot
|
6
|
+
*/
|
7
|
+
export declare class CovalentActionRibbon extends ActionRibbonBase {
|
8
|
+
static styles: import("lit").CSSResult[];
|
9
|
+
}
|
10
|
+
declare global {
|
11
|
+
interface HTMLElementTagNameMap {
|
12
|
+
'cv-action-ribbon': CovalentActionRibbon;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=action-ribbon.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"action-ribbon.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/action-ribbon/action-ribbon.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD;;;;GAIG;AACH,qBACa,oBAAqB,SAAQ,gBAAgB;IACxD,OAAgB,MAAM,4BAIpB;CACH;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,oBAAoB,CAAC;KAC1C;CACF"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { MDCBannerFoundation } from '@material/banner/foundation';
|
2
|
+
import { MDCBannerAdapter } from '@material/banner/adapter';
|
3
|
+
import { CloseReason } from '@material/banner/constants';
|
4
|
+
import { LitElement, TemplateResult } from 'lit';
|
5
|
+
export declare class AlertBase extends LitElement {
|
6
|
+
protected mdcFoundation: MDCBannerFoundation;
|
7
|
+
protected readonly mdcFoundationClass: typeof MDCBannerFoundation;
|
8
|
+
protected mdcRoot: HTMLElement;
|
9
|
+
protected mdcContent: HTMLElement;
|
10
|
+
open: boolean;
|
11
|
+
titleText: string;
|
12
|
+
descriptionText: string;
|
13
|
+
icon: string;
|
14
|
+
iconAriaLabel: string;
|
15
|
+
inline: boolean;
|
16
|
+
/**
|
17
|
+
* The state representation active|negative|positive|caution
|
18
|
+
*/
|
19
|
+
state: string;
|
20
|
+
protected reason: CloseReason;
|
21
|
+
protected render(): TemplateResult<1>;
|
22
|
+
/** @soyTemplate */
|
23
|
+
protected renderIcon(): TemplateResult;
|
24
|
+
protected createAdapter(): MDCBannerAdapter;
|
25
|
+
/** @export */
|
26
|
+
show(): void;
|
27
|
+
/** @export */
|
28
|
+
close(reason?: CloseReason): void;
|
29
|
+
protected firstUpdated(): Promise<void>;
|
30
|
+
}
|
31
|
+
//# sourceMappingURL=alert-base.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"alert-base.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/alert/alert-base.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAU,WAAW,EAAU,MAAM,4BAA4B,CAAC;AAEzE,OAAO,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAIvD,qBAAa,SAAU,SAAQ,UAAU;IACvC,SAAS,CAAC,aAAa,EAAG,mBAAmB,CAAC;IAC9C,SAAS,CAAC,QAAQ,CAAC,kBAAkB,6BAAuB;IAEtC,SAAS,CAAC,OAAO,EAAG,WAAW,CAAC;IACvB,SAAS,CAAC,UAAU,EAAG,WAAW,CAAC;IAalE,IAAI,UAAQ;IAEgB,SAAS,SAAM;IACf,eAAe,SAAM;IAErB,IAAI,SAAM;IACV,aAAa,SAAM;IAElB,MAAM,UAAS;IAC5C;;OAEG;IAEH,KAAK,SAAM;IAEX,SAAS,CAAC,MAAM,EAAE,WAAW,CAA2B;cAErC,MAAM;IAyBzB,mBAAmB;IACnB,SAAS,CAAC,UAAU,IAAI,cAAc;IAQtC,SAAS,CAAC,aAAa,IAAI,gBAAgB;IAsC3C,cAAc;IACd,IAAI;IAIJ,cAAc;IACd,KAAK,CAAC,MAAM,cAA0B;cAKb,YAAY;CAStC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { AlertBase } from './alert-base';
|
2
|
+
/**
|
3
|
+
* Action ribbon
|
4
|
+
*
|
5
|
+
* @slot - This element has a slot
|
6
|
+
*/
|
7
|
+
export declare class CovalentAlert extends AlertBase {
|
8
|
+
static styles: import("lit").CSSResult[];
|
9
|
+
}
|
10
|
+
declare global {
|
11
|
+
interface HTMLElementTagNameMap {
|
12
|
+
'cv-alert': CovalentAlert;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=alert.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/alert/alert.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC;;;;GAIG;AACH,qBACa,aAAc,SAAQ,SAAS;IAC1C,OAAgB,MAAM,4BAIpB;CACH;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,aAAa,CAAC;KAC3B;CACF"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { DrawerBase } from '@material/mwc-drawer/mwc-drawer-base';
|
2
|
+
declare global {
|
3
|
+
interface HTMLElementTagNameMap {
|
4
|
+
'cv-app-shell': CovalentAppShell;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
/**
|
8
|
+
* App Shell element.
|
9
|
+
*
|
10
|
+
* @slot - This element has a slot
|
11
|
+
*/
|
12
|
+
export declare class CovalentAppShell extends DrawerBase {
|
13
|
+
static styles: import("lit").CSSResult[];
|
14
|
+
/**
|
15
|
+
* The name of the application to show in the small app bar
|
16
|
+
*/
|
17
|
+
appName: string;
|
18
|
+
helpOpen: boolean;
|
19
|
+
constructor();
|
20
|
+
private _toggleOpen;
|
21
|
+
resizeEvent(): void;
|
22
|
+
connectedCallback(): void;
|
23
|
+
disconnectedCallback(): void;
|
24
|
+
render(): import("lit-html").TemplateResult<1>;
|
25
|
+
}
|
26
|
+
//# sourceMappingURL=app-shell.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"app-shell.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/app-shell/app-shell.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAGlE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,gBAAgB,CAAC;KAClC;CACF;AAED;;;;GAIG;AACH,qBACa,gBAAiB,SAAQ,UAAU;IAC9C,OAAgB,MAAM,4BAIpB;IAEF;;OAEG;IAEH,OAAO,SAAM;IAGb,QAAQ,UAAS;;IAQjB,OAAO,CAAC,WAAW;IAWnB,WAAW;IAWF,iBAAiB;IAKjB,oBAAoB;IAKpB,MAAM;CAsDhB"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ButtonBase } from '@material/mwc-button/mwc-button-base';
|
2
|
+
declare global {
|
3
|
+
interface HTMLElementTagNameMap {
|
4
|
+
'cv-button': CovalentButtonBase;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
export declare class CovalentButtonBase extends ButtonBase {
|
8
|
+
static styles: import("lit").CSSResult[];
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=button.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../libs/components/src/button/button.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAGlE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,kBAAkB,CAAC;KACjC;CACF;AAED,qBACa,kBAAmB,SAAQ,UAAU;IAChD,OAAgB,MAAM,4BAA2C;CAClE"}
|