@covalent/components 6.0.5 → 6.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/action-ribbon.js +1 -1
- package/action-ribbon.mjs +9 -9
- package/alert.js +1 -1
- package/alert.mjs +9 -9
- package/app-shell.js +1 -1
- package/app-shell.mjs +10 -10
- package/aria-property-fa2717fe.mjs +41 -0
- package/base-element-c3dc926e.mjs +28 -0
- package/{base-element.mjs → base-element-d5abe37a.js} +1 -1
- package/button.js +1 -1
- package/button.mjs +14 -14
- package/card.js +1 -1
- package/card.mjs +3 -3
- package/check-list-item.js +1 -1
- package/check-list-item.mjs +18 -18
- package/checkbox.js +1 -1
- package/checkbox.mjs +16 -16
- package/circular-progress.js +1 -1
- package/circular-progress.mjs +7 -7
- package/class-map-08c84aeb.mjs +62 -0
- package/{class-map.mjs → class-map-50b8edb4.js} +3 -3
- package/code-snippet.js +1 -1
- package/code-snippet.mjs +4 -4
- package/{dialog2.mjs → dialog-85c21333.mjs} +9 -9
- package/dialog-8ee07177.js +162 -0
- package/dialog.js +1 -1
- package/dialog.mjs +14 -162
- package/directive-helpers-725a181d.mjs +11 -0
- package/directive-helpers-fce8cf91.js +5 -0
- package/drawer.js +1 -1
- package/drawer.mjs +10 -10
- package/empty-state.js +1 -1
- package/empty-state.mjs +4 -4
- package/event-options-3937d997.mjs +14 -0
- package/event-options-7bc382d8.js +5 -0
- package/form-element-6dbd7afa.mjs +50 -0
- package/{form-element.mjs → form-element-d4e7bcdb.js} +1 -1
- package/foundation-2334d146.mjs +60 -0
- package/{foundation.mjs → foundation-3f55a9dc.js} +3 -3
- package/foundation-c580100a.mjs +152 -0
- package/icon-button.js +1 -1
- package/icon-button.mjs +13 -13
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +16 -16
- package/icon-radio-toggle.js +1 -1
- package/icon-radio-toggle.mjs +17 -17
- package/icon.js +1 -1
- package/icon.mjs +3 -3
- package/if-defined-639ed018.mjs +10 -0
- package/if-defined-cb12d481.js +5 -0
- package/index.js +1 -1
- package/index.mjs +39 -39
- package/inert.esm-359d4581.mjs +640 -0
- package/linear-progress.js +1 -1
- package/linear-progress.mjs +9 -9
- package/list-170cca53.js +5 -0
- package/{list2.mjs → list-28b77a61.mjs} +2 -2
- package/list-expansion.js +1 -1
- package/list-expansion.mjs +16 -16
- package/list-item-26ddcc43.js +8 -0
- package/{list-item2.mjs → list-item-c1e72538.mjs} +4 -4
- package/list-item.js +1 -1
- package/list-item.mjs +18 -8
- package/list.js +1 -1
- package/list.mjs +20 -5
- package/menu.js +1 -1
- package/menu.mjs +16 -16
- package/mwc-checkbox-base-10e977f2.mjs +198 -0
- package/{mwc-checkbox-base.mjs → mwc-checkbox-base-435c1f1d.js} +1 -1
- package/{mwc-checkbox.css.mjs → mwc-checkbox.css-956e3d6c.js} +1 -1
- package/mwc-checkbox.css-b7abc7fd.mjs +10 -0
- package/mwc-drawer-base-b2b772c3.mjs +335 -0
- package/{mwc-drawer-base.mjs → mwc-drawer-base-f44fcf34.js} +1 -1
- package/{mwc-icon.mjs → mwc-icon-b96fb867.js} +3 -3
- package/mwc-icon-c7013880.mjs +26 -0
- package/{mwc-line-ripple-directive.mjs → mwc-line-ripple-directive-a97ce725.js} +1 -1
- package/mwc-line-ripple-directive-c3e1f04a.mjs +653 -0
- package/{mwc-list-base.mjs → mwc-list-base-7d5f7278.js} +1 -1
- package/mwc-list-base-c0f8af1c.mjs +840 -0
- package/{mwc-list-item-base.mjs → mwc-list-item-base-803b9771.js} +1 -1
- package/mwc-list-item-base-acef0223.mjs +202 -0
- package/{mwc-list-item.css.mjs → mwc-list-item.css-401e2407.js} +1 -1
- package/mwc-list-item.css-b5481d96.mjs +17 -0
- package/mwc-menu-base-8970b43d.mjs +1145 -0
- package/{mwc-menu-base.mjs → mwc-menu-base-ac49fe54.js} +1 -1
- package/{mwc-radio-base.mjs → mwc-radio-base-442d495a.js} +1 -1
- package/mwc-radio-base-c29e6f42.mjs +528 -0
- package/{mwc-radio.css.mjs → mwc-radio.css-388ad26d.js} +1 -1
- package/mwc-radio.css-4694aa9c.mjs +10 -0
- package/mwc-slider.css-336f809b.mjs +956 -0
- package/{mwc-slider.css.mjs → mwc-slider.css-48f02f1e.js} +16 -16
- package/{mwc-tab-base.mjs → mwc-tab-base-1a19b299.js} +1 -1
- package/mwc-tab-base-7fb3d339.mjs +694 -0
- package/{mwc-top-app-bar-base.mjs → mwc-top-app-bar-base-14e0a018.js} +1 -1
- package/mwc-top-app-bar-base-79c87e69.mjs +380 -0
- package/nav-list-item.js +1 -1
- package/nav-list-item.mjs +14 -14
- package/{observer.mjs → observer-a096ab43.js} +1 -1
- package/observer-be7b92e2.mjs +32 -0
- package/package.json +1 -1
- package/{property.mjs → property-074570d1.js} +1 -1
- package/property-ca27685b.mjs +20 -0
- package/query-1e7846ea.mjs +25 -0
- package/query-2ba749b7.js +5 -0
- package/query-assigned-elements-514e5265.mjs +615 -0
- package/{query-assigned-nodes.mjs → query-assigned-nodes-9ec0fa5f.js} +1 -1
- package/query-assigned-nodes-bea12e0c.mjs +17 -0
- package/radio-list-item.js +1 -1
- package/radio-list-item.mjs +18 -18
- package/radio.js +1 -1
- package/radio.mjs +17 -17
- package/{ripple-handlers.mjs → ripple-handlers-2176f137.js} +7 -7
- package/ripple-handlers-227497d3.mjs +761 -0
- package/select.js +1 -1
- package/select.mjs +20 -20
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +10 -10
- package/slider-range.js +1 -1
- package/slider-range.mjs +14 -14
- package/slider.js +1 -1
- package/slider.mjs +14 -14
- package/snackbar.js +1 -1
- package/snackbar.mjs +9 -9
- package/state-6f7e570d.mjs +12 -0
- package/{state.mjs → state-949232e6.js} +1 -1
- package/status-header-item.js +1 -1
- package/status-header-item.mjs +2 -2
- package/status-header.js +1 -1
- package/status-header.mjs +3 -3
- package/style-map-2cb0fb63.mjs +40 -0
- package/{style-map.mjs → style-map-3056a771.js} +1 -1
- package/style.css +1 -1
- package/switch.js +1 -1
- package/switch.mjs +14 -14
- package/tab-bar.js +1 -1
- package/tab-bar.mjs +13 -13
- package/tab.js +1 -1
- package/tab.mjs +13 -13
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +3 -3
- package/textarea.js +1 -1
- package/textarea.mjs +15 -15
- package/{textfield2.mjs → textfield-276b0ded.mjs} +13 -13
- package/textfield-507c6a06.js +133 -0
- package/textfield.js +1 -1
- package/textfield.mjs +41 -132
- package/toolbar.js +1 -1
- package/toolbar.mjs +8 -8
- package/tooltip.js +1 -1
- package/tooltip.mjs +6 -6
- package/top-app-bar-34e85527.js +6 -0
- package/{top-app-bar2.mjs → top-app-bar-a236c3bc.mjs} +1 -1
- package/top-app-bar-fixed.js +1 -1
- package/top-app-bar-fixed.mjs +9 -9
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +30 -6
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +3 -3
- package/tree-list.js +1 -1
- package/tree-list.mjs +1 -1
- package/{tslib.es6.mjs → tslib.es6-6b53b818.js} +1 -1
- package/tslib.es6-b5e819a6.mjs +82 -0
- package/typography.js +1 -1
- package/typography.mjs +2 -2
- package/{utils.mjs → utils-a8190a39.js} +1 -1
- package/utils-dc65fdc9.mjs +52 -0
- package/directive-helpers.mjs +0 -5
- package/event-options.mjs +0 -5
- package/if-defined.mjs +0 -5
- package/query.mjs +0 -5
- /package/{aria-property.mjs → aria-property-849c8816.js} +0 -0
- /package/{foundation2.mjs → foundation-e830bd94.js} +0 -0
- /package/{inert.esm.mjs → inert.esm-2cee6f2e.js} +0 -0
- /package/{query-assigned-elements.mjs → query-assigned-elements-07e38f46.js} +0 -0
@@ -0,0 +1,335 @@
|
|
1
|
+
import { a as h, b as p, _ as r } from "./tslib.es6-b5e819a6.mjs";
|
2
|
+
import "./inert.esm-359d4581.mjs";
|
3
|
+
import { B as F } from "./base-element-c3dc926e.mjs";
|
4
|
+
import { o as b } from "./observer-be7b92e2.mjs";
|
5
|
+
import { y as c } from "./query-assigned-elements-514e5265.mjs";
|
6
|
+
import { e as l } from "./property-ca27685b.mjs";
|
7
|
+
import { i as C } from "./query-1e7846ea.mjs";
|
8
|
+
import { o as g } from "./class-map-08c84aeb.mjs";
|
9
|
+
import { a as N } from "./utils-dc65fdc9.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 i = {
|
33
|
+
ANIMATE: "mdc-drawer--animate",
|
34
|
+
CLOSING: "mdc-drawer--closing",
|
35
|
+
DISMISSIBLE: "mdc-drawer--dismissible",
|
36
|
+
MODAL: "mdc-drawer--modal",
|
37
|
+
OPEN: "mdc-drawer--open",
|
38
|
+
OPENING: "mdc-drawer--opening",
|
39
|
+
ROOT: "mdc-drawer"
|
40
|
+
}, u = {
|
41
|
+
APP_CONTENT_SELECTOR: ".mdc-drawer-app-content",
|
42
|
+
CLOSE_EVENT: "MDCDrawer:closed",
|
43
|
+
OPEN_EVENT: "MDCDrawer:opened",
|
44
|
+
SCRIM_SELECTOR: ".mdc-drawer-scrim",
|
45
|
+
LIST_SELECTOR: ".mdc-list,.mdc-deprecated-list",
|
46
|
+
LIST_ITEM_ACTIVATED_SELECTOR: ".mdc-list-item--activated,.mdc-deprecated-list-item--activated"
|
47
|
+
};
|
48
|
+
/**
|
49
|
+
* @license
|
50
|
+
* Copyright 2016 Google Inc.
|
51
|
+
*
|
52
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
53
|
+
* of this software and associated documentation files (the "Software"), to deal
|
54
|
+
* in the Software without restriction, including without limitation the rights
|
55
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
56
|
+
* copies of the Software, and to permit persons to whom the Software is
|
57
|
+
* furnished to do so, subject to the following conditions:
|
58
|
+
*
|
59
|
+
* The above copyright notice and this permission notice shall be included in
|
60
|
+
* all copies or substantial portions of the Software.
|
61
|
+
*
|
62
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
63
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
64
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
65
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
66
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
67
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
68
|
+
* THE SOFTWARE.
|
69
|
+
*/
|
70
|
+
var w = (
|
71
|
+
/** @class */
|
72
|
+
function() {
|
73
|
+
function n(e) {
|
74
|
+
e === void 0 && (e = {}), this.adapter = e;
|
75
|
+
}
|
76
|
+
return Object.defineProperty(n, "cssClasses", {
|
77
|
+
get: function() {
|
78
|
+
return {};
|
79
|
+
},
|
80
|
+
enumerable: !1,
|
81
|
+
configurable: !0
|
82
|
+
}), Object.defineProperty(n, "strings", {
|
83
|
+
get: function() {
|
84
|
+
return {};
|
85
|
+
},
|
86
|
+
enumerable: !1,
|
87
|
+
configurable: !0
|
88
|
+
}), Object.defineProperty(n, "numbers", {
|
89
|
+
get: function() {
|
90
|
+
return {};
|
91
|
+
},
|
92
|
+
enumerable: !1,
|
93
|
+
configurable: !0
|
94
|
+
}), Object.defineProperty(n, "defaultAdapter", {
|
95
|
+
get: function() {
|
96
|
+
return {};
|
97
|
+
},
|
98
|
+
enumerable: !1,
|
99
|
+
configurable: !0
|
100
|
+
}), n.prototype.init = function() {
|
101
|
+
}, n.prototype.destroy = function() {
|
102
|
+
}, n;
|
103
|
+
}()
|
104
|
+
);
|
105
|
+
/**
|
106
|
+
* @license
|
107
|
+
* Copyright 2018 Google Inc.
|
108
|
+
*
|
109
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
110
|
+
* of this software and associated documentation files (the "Software"), to deal
|
111
|
+
* in the Software without restriction, including without limitation the rights
|
112
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
113
|
+
* copies of the Software, and to permit persons to whom the Software is
|
114
|
+
* furnished to do so, subject to the following conditions:
|
115
|
+
*
|
116
|
+
* The above copyright notice and this permission notice shall be included in
|
117
|
+
* all copies or substantial portions of the Software.
|
118
|
+
*
|
119
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
120
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
121
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
122
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
123
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
124
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
125
|
+
* THE SOFTWARE.
|
126
|
+
*/
|
127
|
+
var v = (
|
128
|
+
/** @class */
|
129
|
+
function(n) {
|
130
|
+
h(e, n);
|
131
|
+
function e(t) {
|
132
|
+
var s = n.call(this, p(p({}, e.defaultAdapter), t)) || this;
|
133
|
+
return s.animationFrame = 0, s.animationTimer = 0, s;
|
134
|
+
}
|
135
|
+
return Object.defineProperty(e, "strings", {
|
136
|
+
get: function() {
|
137
|
+
return u;
|
138
|
+
},
|
139
|
+
enumerable: !1,
|
140
|
+
configurable: !0
|
141
|
+
}), Object.defineProperty(e, "cssClasses", {
|
142
|
+
get: function() {
|
143
|
+
return i;
|
144
|
+
},
|
145
|
+
enumerable: !1,
|
146
|
+
configurable: !0
|
147
|
+
}), Object.defineProperty(e, "defaultAdapter", {
|
148
|
+
get: function() {
|
149
|
+
return {
|
150
|
+
addClass: function() {
|
151
|
+
},
|
152
|
+
removeClass: function() {
|
153
|
+
},
|
154
|
+
hasClass: function() {
|
155
|
+
return !1;
|
156
|
+
},
|
157
|
+
elementHasClass: function() {
|
158
|
+
return !1;
|
159
|
+
},
|
160
|
+
notifyClose: function() {
|
161
|
+
},
|
162
|
+
notifyOpen: function() {
|
163
|
+
},
|
164
|
+
saveFocus: function() {
|
165
|
+
},
|
166
|
+
restoreFocus: function() {
|
167
|
+
},
|
168
|
+
focusActiveNavigationItem: function() {
|
169
|
+
},
|
170
|
+
trapFocus: function() {
|
171
|
+
},
|
172
|
+
releaseFocus: function() {
|
173
|
+
}
|
174
|
+
};
|
175
|
+
},
|
176
|
+
enumerable: !1,
|
177
|
+
configurable: !0
|
178
|
+
}), e.prototype.destroy = function() {
|
179
|
+
this.animationFrame && cancelAnimationFrame(this.animationFrame), this.animationTimer && clearTimeout(this.animationTimer);
|
180
|
+
}, e.prototype.open = function() {
|
181
|
+
var t = this;
|
182
|
+
this.isOpen() || this.isOpening() || this.isClosing() || (this.adapter.addClass(i.OPEN), this.adapter.addClass(i.ANIMATE), this.runNextAnimationFrame(function() {
|
183
|
+
t.adapter.addClass(i.OPENING);
|
184
|
+
}), this.adapter.saveFocus());
|
185
|
+
}, e.prototype.close = function() {
|
186
|
+
!this.isOpen() || this.isOpening() || this.isClosing() || this.adapter.addClass(i.CLOSING);
|
187
|
+
}, e.prototype.isOpen = function() {
|
188
|
+
return this.adapter.hasClass(i.OPEN);
|
189
|
+
}, e.prototype.isOpening = function() {
|
190
|
+
return this.adapter.hasClass(i.OPENING) || this.adapter.hasClass(i.ANIMATE);
|
191
|
+
}, e.prototype.isClosing = function() {
|
192
|
+
return this.adapter.hasClass(i.CLOSING);
|
193
|
+
}, e.prototype.handleKeydown = function(t) {
|
194
|
+
var s = t.keyCode, a = t.key, d = a === "Escape" || s === 27;
|
195
|
+
d && this.close();
|
196
|
+
}, e.prototype.handleTransitionEnd = function(t) {
|
197
|
+
var s = i.OPENING, a = i.CLOSING, d = i.OPEN, y = i.ANIMATE, E = i.ROOT, O = this.isElement(t.target) && this.adapter.elementHasClass(t.target, E);
|
198
|
+
O && (this.isClosing() ? (this.adapter.removeClass(d), this.closed(), this.adapter.restoreFocus(), this.adapter.notifyClose()) : (this.adapter.focusActiveNavigationItem(), this.opened(), this.adapter.notifyOpen()), this.adapter.removeClass(y), this.adapter.removeClass(s), this.adapter.removeClass(a));
|
199
|
+
}, e.prototype.opened = function() {
|
200
|
+
}, e.prototype.closed = function() {
|
201
|
+
}, e.prototype.runNextAnimationFrame = function(t) {
|
202
|
+
var s = this;
|
203
|
+
cancelAnimationFrame(this.animationFrame), this.animationFrame = requestAnimationFrame(function() {
|
204
|
+
s.animationFrame = 0, clearTimeout(s.animationTimer), s.animationTimer = setTimeout(t, 0);
|
205
|
+
});
|
206
|
+
}, e.prototype.isElement = function(t) {
|
207
|
+
return Boolean(t.classList);
|
208
|
+
}, e;
|
209
|
+
}(w)
|
210
|
+
);
|
211
|
+
const T = v;
|
212
|
+
/**
|
213
|
+
* @license
|
214
|
+
* Copyright 2018 Google Inc.
|
215
|
+
*
|
216
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
217
|
+
* of this software and associated documentation files (the "Software"), to deal
|
218
|
+
* in the Software without restriction, including without limitation the rights
|
219
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
220
|
+
* copies of the Software, and to permit persons to whom the Software is
|
221
|
+
* furnished to do so, subject to the following conditions:
|
222
|
+
*
|
223
|
+
* The above copyright notice and this permission notice shall be included in
|
224
|
+
* all copies or substantial portions of the Software.
|
225
|
+
*
|
226
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
227
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
228
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
229
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
230
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
231
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
232
|
+
* THE SOFTWARE.
|
233
|
+
*/
|
234
|
+
var _ = (
|
235
|
+
/** @class */
|
236
|
+
function(n) {
|
237
|
+
h(e, n);
|
238
|
+
function e() {
|
239
|
+
return n !== null && n.apply(this, arguments) || this;
|
240
|
+
}
|
241
|
+
return e.prototype.handleScrimClick = function() {
|
242
|
+
this.close();
|
243
|
+
}, e.prototype.opened = function() {
|
244
|
+
this.adapter.trapFocus();
|
245
|
+
}, e.prototype.closed = function() {
|
246
|
+
this.adapter.releaseFocus();
|
247
|
+
}, e;
|
248
|
+
}(v)
|
249
|
+
);
|
250
|
+
const m = _;
|
251
|
+
/**
|
252
|
+
* @license
|
253
|
+
* Copyright 2018 Google LLC
|
254
|
+
* SPDX-License-Identifier: Apache-2.0
|
255
|
+
*/
|
256
|
+
const f = document.$blockingElements;
|
257
|
+
class o extends F {
|
258
|
+
constructor() {
|
259
|
+
super(...arguments), this._previousFocus = null, this.open = !1, this.hasHeader = !1, this.type = "";
|
260
|
+
}
|
261
|
+
get mdcFoundationClass() {
|
262
|
+
return this.type === "modal" ? m : T;
|
263
|
+
}
|
264
|
+
createAdapter() {
|
265
|
+
return Object.assign(Object.assign({}, N(this.mdcRoot)), { elementHasClass: (e, t) => e.classList.contains(t), saveFocus: () => {
|
266
|
+
this._previousFocus = this.getRootNode().activeElement;
|
267
|
+
}, restoreFocus: () => {
|
268
|
+
this._previousFocus && this._previousFocus.focus && this._previousFocus.focus();
|
269
|
+
}, notifyClose: () => {
|
270
|
+
this.open = !1, this.dispatchEvent(new Event(u.CLOSE_EVENT, { bubbles: !0, cancelable: !0 }));
|
271
|
+
}, notifyOpen: () => {
|
272
|
+
this.open = !0, this.dispatchEvent(new Event(u.OPEN_EVENT, { bubbles: !0, cancelable: !0 }));
|
273
|
+
}, focusActiveNavigationItem: () => {
|
274
|
+
}, trapFocus: () => {
|
275
|
+
f.push(this), this.appContent.inert = !0;
|
276
|
+
}, releaseFocus: () => {
|
277
|
+
f.remove(this), this.appContent.inert = !1;
|
278
|
+
} });
|
279
|
+
}
|
280
|
+
_handleScrimClick() {
|
281
|
+
this.mdcFoundation instanceof m && this.mdcFoundation.handleScrimClick();
|
282
|
+
}
|
283
|
+
render() {
|
284
|
+
const e = this.type === "dismissible" || this.type === "modal", t = this.type === "modal", s = this.hasHeader ? c`
|
285
|
+
<div class="mdc-drawer__header">
|
286
|
+
<h3 class="mdc-drawer__title"><slot name="title"></slot></h3>
|
287
|
+
<h6 class="mdc-drawer__subtitle"><slot name="subtitle"></slot></h6>
|
288
|
+
<slot name="header"></slot>
|
289
|
+
</div>
|
290
|
+
` : "";
|
291
|
+
return c`
|
292
|
+
<aside class="mdc-drawer ${g({
|
293
|
+
"mdc-drawer--dismissible": e,
|
294
|
+
"mdc-drawer--modal": t
|
295
|
+
})}">
|
296
|
+
${s}
|
297
|
+
<div class="mdc-drawer__content"><slot></slot></div>
|
298
|
+
</aside>
|
299
|
+
${t ? c`<div class="mdc-drawer-scrim"
|
300
|
+
@click="${this._handleScrimClick}"></div>` : ""}
|
301
|
+
<div class="mdc-drawer-app-content">
|
302
|
+
<slot name="appContent"></slot>
|
303
|
+
</div>
|
304
|
+
`;
|
305
|
+
}
|
306
|
+
// note, we avoid calling `super.firstUpdated()` to control when
|
307
|
+
// `createFoundation()` is called.
|
308
|
+
firstUpdated() {
|
309
|
+
this.mdcRoot.addEventListener("keydown", (e) => this.mdcFoundation.handleKeydown(e)), this.mdcRoot.addEventListener("transitionend", (e) => this.mdcFoundation.handleTransitionEnd(e));
|
310
|
+
}
|
311
|
+
updated(e) {
|
312
|
+
e.has("type") && this.createFoundation();
|
313
|
+
}
|
314
|
+
}
|
315
|
+
r([
|
316
|
+
C(".mdc-drawer")
|
317
|
+
], o.prototype, "mdcRoot", void 0);
|
318
|
+
r([
|
319
|
+
C(".mdc-drawer-app-content")
|
320
|
+
], o.prototype, "appContent", void 0);
|
321
|
+
r([
|
322
|
+
b(function(n) {
|
323
|
+
this.type !== "" && (n ? this.mdcFoundation.open() : this.mdcFoundation.close());
|
324
|
+
}),
|
325
|
+
l({ type: Boolean, reflect: !0 })
|
326
|
+
], o.prototype, "open", void 0);
|
327
|
+
r([
|
328
|
+
l({ type: Boolean })
|
329
|
+
], o.prototype, "hasHeader", void 0);
|
330
|
+
r([
|
331
|
+
l({ reflect: !0 })
|
332
|
+
], o.prototype, "type", void 0);
|
333
|
+
export {
|
334
|
+
o as D
|
335
|
+
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const r=require("./tslib.es6.
|
1
|
+
"use strict";const r=require("./tslib.es6-6b53b818.js");require("./inert.esm-2cee6f2e.js");const E=require("./base-element-d5abe37a.js"),O=require("./observer-a096ab43.js"),c=require("./query-assigned-elements-07e38f46.js"),l=require("./property-074570d1.js"),f=require("./query-2ba749b7.js"),b=require("./class-map-50b8edb4.js"),F=require("./utils-a8190a39.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2016 Google Inc.
|
4
4
|
*
|
@@ -1,9 +1,9 @@
|
|
1
|
-
"use strict";const
|
1
|
+
"use strict";const n=require("./tslib.es6-6b53b818.js"),e=require("./query-assigned-elements-07e38f46.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2021 Google LLC
|
4
4
|
* SPDX-LIcense-Identifier: Apache-2.0
|
5
|
-
*/const
|
5
|
+
*/const t=e.i`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`;/**
|
6
6
|
* @license
|
7
7
|
* Copyright 2018 Google LLC
|
8
8
|
* SPDX-License-Identifier: Apache-2.0
|
9
|
-
*/exports.Icon=class extends e.s{render(){return e.y`<span><slot></slot></span>`}};exports.Icon.styles=[
|
9
|
+
*/exports.Icon=class extends e.s{render(){return e.y`<span><slot></slot></span>`}};exports.Icon.styles=[t];exports.Icon=n.__decorate([e.e("mwc-icon")],exports.Icon);
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { _ as o } from "./tslib.es6-b5e819a6.mjs";
|
2
|
+
import { i as n, s as e, y as i, e as s } from "./query-assigned-elements-514e5265.mjs";
|
3
|
+
/**
|
4
|
+
* @license
|
5
|
+
* Copyright 2021 Google LLC
|
6
|
+
* SPDX-LIcense-Identifier: Apache-2.0
|
7
|
+
*/
|
8
|
+
const r = n`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`;
|
9
|
+
/**
|
10
|
+
* @license
|
11
|
+
* Copyright 2018 Google LLC
|
12
|
+
* SPDX-License-Identifier: Apache-2.0
|
13
|
+
*/
|
14
|
+
let t = class extends e {
|
15
|
+
/** @soyTemplate */
|
16
|
+
render() {
|
17
|
+
return i`<span><slot></slot></span>`;
|
18
|
+
}
|
19
|
+
};
|
20
|
+
t.styles = [r];
|
21
|
+
t = o([
|
22
|
+
s("mwc-icon")
|
23
|
+
], t);
|
24
|
+
export {
|
25
|
+
t as I
|
26
|
+
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const o=require("./tslib.es6.
|
1
|
+
"use strict";const o=require("./tslib.es6-6b53b818.js"),c=require("./query-assigned-elements-07e38f46.js"),m=require("./base-element-d5abe37a.js"),p=require("./property-074570d1.js"),h=require("./query-2ba749b7.js"),i=require("./class-map-50b8edb4.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2016 Google Inc.
|
4
4
|
*
|