@covalent/components 6.2.1 → 6.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action-ribbon.js +6 -6
- package/action-ribbon.mjs +35 -30
- package/alert.js +6 -6
- package/alert.mjs +19 -14
- package/app-shell.js +8 -8
- package/app-shell.mjs +12 -6
- package/aria-property-fa2717fe.mjs +41 -0
- package/base-element-c3dc926e.mjs +28 -0
- package/base-element-d5abe37a.js +5 -0
- package/button.js +9 -9
- package/button.mjs +25 -16
- package/card.js +8 -8
- package/card.mjs +17 -15
- package/check-list-item.js +9 -9
- package/check-list-item.mjs +26 -17
- package/checkbox.js +2 -2
- package/checkbox.mjs +29 -20
- package/circular-progress.js +29 -29
- package/circular-progress.mjs +14 -10
- package/class-map-08c84aeb.mjs +62 -0
- package/class-map-50b8edb4.js +9 -0
- package/code-snippet.js +9 -9
- package/code-snippet.mjs +10 -7
- package/{dialog2.mjs → dialog-85c21333.mjs} +56 -50
- 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 +3 -3
- package/drawer.mjs +15 -9
- package/empty-state.js +5 -5
- package/empty-state.mjs +6 -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} +2 -2
- package/foundation-2334d146.mjs +60 -0
- package/{foundation.mjs → foundation-3f55a9dc.js} +3 -3
- package/foundation-c580100a.mjs +152 -0
- package/icon-button.js +8 -8
- package/icon-button.mjs +25 -16
- package/icon-check-toggle.js +9 -9
- package/icon-check-toggle.mjs +20 -11
- package/icon-radio-toggle.js +5 -5
- package/icon-radio-toggle.mjs +34 -25
- package/icon.js +2 -2
- package/icon.mjs +9 -8
- package/if-defined-639ed018.mjs +10 -0
- package/if-defined-cb12d481.js +5 -0
- package/index.js +1 -1
- package/index.mjs +124 -114
- package/inert.esm-359d4581.mjs +640 -0
- package/linear-progress.js +12 -12
- package/linear-progress.mjs +23 -17
- package/{list2.mjs → list-d616957b.mjs} +7 -6
- package/list-defdaa3b.js +5 -0
- package/list-expansion.js +8 -8
- package/list-expansion.mjs +43 -34
- package/list-item-3fa66f09.js +9 -0
- package/list-item-d5c05e10.mjs +44 -0
- package/list-item.js +1 -1
- package/list-item.mjs +18 -9
- package/list.js +1 -1
- package/list.mjs +20 -5
- package/menu.js +2 -2
- package/menu.mjs +29 -20
- package/mwc-checkbox-base-10e977f2.mjs +198 -0
- package/{mwc-checkbox-base.mjs → mwc-checkbox-base-435c1f1d.js} +6 -6
- package/mwc-checkbox.css-956e3d6c.js +5 -0
- 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} +11 -11
- package/mwc-icon-b96fb867.js +9 -0
- package/mwc-icon-c7013880.mjs +26 -0
- package/{mwc-line-ripple-directive.mjs → mwc-line-ripple-directive-a97ce725.js} +16 -16
- package/mwc-line-ripple-directive-c3e1f04a.mjs +653 -0
- package/mwc-list-base-7d5f7278.js +111 -0
- package/mwc-list-base-c0f8af1c.mjs +840 -0
- package/mwc-list-item-base-803b9771.js +28 -0
- package/mwc-list-item-base-acef0223.mjs +202 -0
- package/mwc-list-item.css-401e2407.js +9 -0
- 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} +20 -20
- package/{mwc-radio-base.mjs → mwc-radio-base-442d495a.js} +11 -11
- package/mwc-radio-base-c29e6f42.mjs +528 -0
- package/mwc-radio.css-388ad26d.js +5 -0
- 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} +20 -20
- package/{mwc-tab-base.mjs → mwc-tab-base-1a19b299.js} +22 -22
- package/mwc-tab-base-7fb3d339.mjs +694 -0
- package/{mwc-top-app-bar-base.mjs → mwc-top-app-bar-base-14e0a018.js} +10 -10
- package/mwc-top-app-bar-base-79c87e69.mjs +380 -0
- package/nav-list-item.js +10 -10
- package/nav-list-item.mjs +36 -28
- package/{observer.mjs → observer-a096ab43.js} +1 -1
- package/observer-be7b92e2.mjs +32 -0
- package/package.json +1 -1
- package/property-074570d1.js +5 -0
- package/property-ca27685b.mjs +20 -0
- package/query-1e7846ea.mjs +25 -0
- package/query-2ba749b7.js +5 -0
- package/query-assigned-elements-07e38f46.js +33 -0
- package/query-assigned-elements-514e5265.mjs +615 -0
- package/query-assigned-nodes-9ec0fa5f.js +5 -0
- package/query-assigned-nodes-bea12e0c.mjs +17 -0
- package/radio-list-item.js +10 -10
- package/radio-list-item.mjs +33 -24
- package/radio.js +2 -2
- package/radio.mjs +28 -19
- package/ripple-handlers-2176f137.js +107 -0
- package/ripple-handlers-227497d3.mjs +761 -0
- package/select.js +28 -28
- package/select.mjs +31 -21
- package/side-sheet.js +4 -4
- package/side-sheet.mjs +14 -8
- package/slider-range.js +7 -7
- package/slider-range.mjs +72 -64
- package/slider.js +3 -3
- package/slider.mjs +29 -21
- package/snackbar.js +15 -15
- package/snackbar.mjs +27 -21
- package/state-6f7e570d.mjs +12 -0
- package/state-949232e6.js +5 -0
- package/status-header-item.js +4 -4
- package/status-header-item.mjs +14 -13
- package/status-header.js +6 -6
- package/status-header.mjs +9 -7
- package/style-map-2cb0fb63.mjs +40 -0
- package/style-map-3056a771.js +5 -0
- package/switch.js +18 -18
- package/switch.mjs +31 -22
- package/tab-bar.js +21 -21
- package/tab-bar.mjs +23 -14
- package/tab.js +3 -3
- package/tab.mjs +15 -6
- package/text-lockup.js +5 -5
- package/text-lockup.mjs +8 -6
- package/textarea.js +14 -14
- package/textarea.mjs +28 -20
- package/{textfield2.mjs → textfield-276b0ded.mjs} +28 -21
- package/textfield-507c6a06.js +133 -0
- package/textfield.js +3 -3
- package/textfield.mjs +41 -132
- package/toolbar.js +3 -3
- package/toolbar.mjs +10 -4
- package/tooltip.js +12 -12
- package/tooltip.mjs +13 -9
- 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 +5 -5
- package/top-app-bar-fixed.mjs +29 -23
- package/top-app-bar.js +3 -3
- package/top-app-bar.mjs +30 -6
- package/tree-list-item.js +8 -8
- package/tree-list-item.mjs +5 -3
- package/tree-list.js +3 -3
- package/tree-list.mjs +4 -4
- package/tslib.es6-6b53b818.js +1 -0
- package/tslib.es6-b5e819a6.mjs +82 -0
- package/typography.js +4 -4
- package/typography.mjs +12 -11
- package/utils-a8190a39.js +5 -0
- package/utils-dc65fdc9.mjs +52 -0
- package/directive-helpers.mjs +0 -5
- package/if-defined.mjs +0 -5
- package/list-item2.mjs +0 -43
- package/mwc-checkbox.css.mjs +0 -5
- package/mwc-icon.mjs +0 -9
- package/mwc-list-base.mjs +0 -111
- package/mwc-list-item-base.mjs +0 -28
- package/mwc-list-item.css.mjs +0 -9
- package/mwc-radio.css.mjs +0 -5
- package/mwc-ripple.mjs +0 -175
- package/ripple-handlers.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/code-snippet.mjs
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { i as Tt, r as St, s as wt, y as Se, e as Ot } from "./query-assigned-elements-514e5265.mjs";
|
2
|
+
import { e as ve } from "./property-ca27685b.mjs";
|
3
|
+
import { o as Rt } from "./query-assigned-nodes-bea12e0c.mjs";
|
4
|
+
import { o as At } from "./class-map-08c84aeb.mjs";
|
2
5
|
const Mt = `:host{background-color:var(--mdc-theme-surface-canvas);border-radius:var(--mdc-shape-medium);display:block;position:relative;overflow:hidden}:host pre{margin:0;padding:16px 0;overflow:auto}:host pre code.hljs.cv-code-snippet{padding:0 16px;display:block;overflow-x:auto}:host .hljs{color:var(--cov-theme-code-snippet-color, #abb2bf)}:host .hljs-comment,:host .hljs-quote{color:var(--cov-theme-code-snippet-comment, #5c6370);font-style:italic}:host .hljs-doctag,:host .hljs-formula,:host .hljs-keyword{color:var(--cov-theme-code-snippet-keyword, #c678dd)}:host .hljs-deletion,:host .hljs-name,:host .hljs-section,:host .hljs-selector-tag,:host .hljs-subst{color:var(--cov-theme-code-snippet-selector, #e06c75)}:host .hljs-literal{color:var(--cov-theme-code-snippet-literal, #56b6c2)}:host .hljs-addition,:host .hljs-attribute,:host .hljs-meta .hljs-string,:host .hljs-regexp,:host .hljs-string{color:var(--cov-theme-code-snippet-string, #98c379)}:host .hljs-attr,:host .hljs-number,:host .hljs-selector-attr,:host .hljs-selector-class,:host .hljs-selector-pseudo,:host .hljs-template-variable,:host .hljs-type,:host .hljs-variable{color:var(--cov-theme-code-snippet-variable, #d19a66)}:host .hljs-bullet,:host .hljs-link,:host .hljs-meta,:host .hljs-selector-id,:host .hljs-symbol,:host .hljs-title{color:var(--cov-theme-code-snippet-title, #61aeee)}:host .hljs-built_in,:host .hljs-class .hljs-title,:host .hljs-title.class_{color:var(--cov-theme-code-snippet-class, #e6c07b)}:host .hljs-emphasis{font-style:italic}:host .hljs-strong{font-weight:700}:host .hljs-link{text-decoration:underline}:host([inline]){border-radius:0}.header{border-bottom:1px solid var(--mdc-theme-border);position:sticky;top:-8px;background-color:var(--mdc-theme-surface-canvas);display:flex;justify-content:space-between;padding:4px 8px 4px 16px;align-items:center;border-radius:var(--mdc-shape-medium) var(--mdc-shape-medium) 0 0}.title{font-family:var(--mdc-typography-subtitle2-font-family);font-size:var(--mdc-typography-subtitle2-font-size);font-weight:var(--mdc-typography-subtitle2-font-weight);line-height:var(--mdc-typography-subtitle2-line-height);padding-right:16px}
|
3
6
|
`;
|
4
7
|
var _n = { exports: {} };
|
@@ -12072,7 +12075,7 @@ var ca = Object.defineProperty, la = Object.getOwnPropertyDescriptor, pe = (n, e
|
|
12072
12075
|
(a = n[o]) && (c = (s ? a(e, t, c) : a(c)) || c);
|
12073
12076
|
return s && c && ca(e, t, c), c;
|
12074
12077
|
};
|
12075
|
-
let ce = class extends
|
12078
|
+
let ce = class extends wt {
|
12076
12079
|
constructor() {
|
12077
12080
|
super(...arguments), this.inline = !1, this.hideHeader = !1, this._code = "";
|
12078
12081
|
}
|
@@ -12100,7 +12103,7 @@ let ce = class extends Ot {
|
|
12100
12103
|
return this.maxHeight && this.maxHeight > 0 && (t = `max-height: ${this.maxHeight}px`), Se`<pre
|
12101
12104
|
style="${t}"
|
12102
12105
|
part="container"
|
12103
|
-
><code class="${
|
12106
|
+
><code class="${At(n)}">${e}</code></pre>`;
|
12104
12107
|
}
|
12105
12108
|
renderHeader() {
|
12106
12109
|
return Se`<div class="header" part="header">
|
@@ -12127,16 +12130,16 @@ pe([
|
|
12127
12130
|
ve({ type: Boolean, reflect: !0 })
|
12128
12131
|
], ce.prototype, "hideHeader", 2);
|
12129
12132
|
pe([
|
12130
|
-
|
12133
|
+
Rt({})
|
12131
12134
|
], ce.prototype, "_codeItems", 2);
|
12132
12135
|
pe([
|
12133
12136
|
ve()
|
12134
12137
|
], ce.prototype, "maxHeight", 2);
|
12135
12138
|
ce = pe([
|
12136
|
-
|
12139
|
+
Ot("cv-code-snippet")
|
12137
12140
|
], ce);
|
12138
|
-
const
|
12141
|
+
const pa = ce;
|
12139
12142
|
export {
|
12140
12143
|
ce as CovalentCodeSnippet,
|
12141
|
-
|
12144
|
+
pa as default
|
12142
12145
|
};
|
@@ -1,6 +1,12 @@
|
|
1
|
-
import {
|
2
|
-
import "./
|
3
|
-
import
|
1
|
+
import { y as _, i as S, r as D, e as O } from "./query-assigned-elements-514e5265.mjs";
|
2
|
+
import { a as F, b as x, _ as r } from "./tslib.es6-b5e819a6.mjs";
|
3
|
+
import "./inert.esm-359d4581.mjs";
|
4
|
+
import { B as L } from "./base-element-c3dc926e.mjs";
|
5
|
+
import { o as h } from "./observer-be7b92e2.mjs";
|
6
|
+
import { e as s } from "./property-ca27685b.mjs";
|
7
|
+
import { i as m } from "./query-1e7846ea.mjs";
|
8
|
+
import { o as E } from "./class-map-08c84aeb.mjs";
|
9
|
+
import { a as T } from "./utils-dc65fdc9.mjs";
|
4
10
|
/**
|
5
11
|
* @license
|
6
12
|
* Copyright 2016 Google Inc.
|
@@ -23,7 +29,7 @@ import { o as f } from "./observer.mjs";
|
|
23
29
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
30
|
* THE SOFTWARE.
|
25
31
|
*/
|
26
|
-
var
|
32
|
+
var a = {
|
27
33
|
CLOSING: "mdc-dialog--closing",
|
28
34
|
OPEN: "mdc-dialog--open",
|
29
35
|
OPENING: "mdc-dialog--opening",
|
@@ -111,10 +117,10 @@ var I = (
|
|
111
117
|
return o.prototype.request = function(t, e) {
|
112
118
|
var i = this;
|
113
119
|
this.cancel(t);
|
114
|
-
var
|
120
|
+
var n = requestAnimationFrame(function(c) {
|
115
121
|
i.rafIDs.delete(t), e(c);
|
116
122
|
});
|
117
|
-
this.rafIDs.set(t,
|
123
|
+
this.rafIDs.set(t, n);
|
118
124
|
}, o.prototype.cancel = function(t) {
|
119
125
|
var e = this.rafIDs.get(t);
|
120
126
|
e && (cancelAnimationFrame(e), this.rafIDs.delete(t));
|
@@ -217,7 +223,7 @@ var p;
|
|
217
223
|
var k = (
|
218
224
|
/** @class */
|
219
225
|
function(o) {
|
220
|
-
|
226
|
+
F(t, o);
|
221
227
|
function t(e) {
|
222
228
|
var i = o.call(this, x(x({}, t.defaultAdapter), e)) || this;
|
223
229
|
return i.dialogOpen = !1, i.isFullscreen = !1, i.animationFrame = 0, i.animationTimer = 0, i.escapeKeyAction = u.CLOSE_ACTION, i.scrimClickAction = u.CLOSE_ACTION, i.autoStackButtons = !0, i.areButtonsStacked = !1, i.suppressDefaultPressSelector = u.SUPPRESS_DEFAULT_PRESS_SELECTOR, i.animFrame = new I(), i.contentScrollHandler = function() {
|
@@ -230,7 +236,7 @@ var k = (
|
|
230
236
|
}
|
231
237
|
return Object.defineProperty(t, "cssClasses", {
|
232
238
|
get: function() {
|
233
|
-
return
|
239
|
+
return a;
|
234
240
|
},
|
235
241
|
enumerable: !1,
|
236
242
|
configurable: !0
|
@@ -310,30 +316,30 @@ var k = (
|
|
310
316
|
enumerable: !1,
|
311
317
|
configurable: !0
|
312
318
|
}), t.prototype.init = function() {
|
313
|
-
this.adapter.hasClass(
|
319
|
+
this.adapter.hasClass(a.STACKED) && this.setAutoStackButtons(!1), this.isFullscreen = this.adapter.hasClass(a.FULLSCREEN);
|
314
320
|
}, t.prototype.destroy = function() {
|
315
321
|
this.animationTimer && (clearTimeout(this.animationTimer), this.handleAnimationTimerEnd()), this.isFullscreen && this.adapter.deregisterContentEventHandler("scroll", this.contentScrollHandler), this.animFrame.cancelAll(), this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler), this.adapter.deregisterWindowEventHandler("orientationchange", this.windowOrientationChangeHandler);
|
316
322
|
}, t.prototype.open = function(e) {
|
317
323
|
var i = this;
|
318
|
-
this.dialogOpen = !0, this.adapter.notifyOpening(), this.adapter.addClass(
|
319
|
-
i.adapter.addClass(
|
324
|
+
this.dialogOpen = !0, this.adapter.notifyOpening(), this.adapter.addClass(a.OPENING), this.isFullscreen && this.adapter.registerContentEventHandler("scroll", this.contentScrollHandler), e && e.isAboveFullscreenDialog && this.adapter.addClass(a.SCRIM_HIDDEN), this.adapter.registerWindowEventHandler("resize", this.windowResizeHandler), this.adapter.registerWindowEventHandler("orientationchange", this.windowOrientationChangeHandler), this.runNextAnimationFrame(function() {
|
325
|
+
i.adapter.addClass(a.OPEN), i.adapter.addBodyClass(a.SCROLL_LOCK), i.layout(), i.animationTimer = setTimeout(function() {
|
320
326
|
i.handleAnimationTimerEnd(), i.adapter.trapFocus(i.adapter.getInitialFocusEl()), i.adapter.notifyOpened();
|
321
327
|
}, y.DIALOG_ANIMATION_OPEN_TIME_MS);
|
322
328
|
});
|
323
329
|
}, t.prototype.close = function(e) {
|
324
330
|
var i = this;
|
325
|
-
e === void 0 && (e = ""), this.dialogOpen && (this.dialogOpen = !1, this.adapter.notifyClosing(e), this.adapter.addClass(
|
331
|
+
e === void 0 && (e = ""), this.dialogOpen && (this.dialogOpen = !1, this.adapter.notifyClosing(e), this.adapter.addClass(a.CLOSING), this.adapter.removeClass(a.OPEN), this.adapter.removeBodyClass(a.SCROLL_LOCK), this.isFullscreen && this.adapter.deregisterContentEventHandler("scroll", this.contentScrollHandler), this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler), this.adapter.deregisterWindowEventHandler("orientationchange", this.windowOrientationChangeHandler), cancelAnimationFrame(this.animationFrame), this.animationFrame = 0, clearTimeout(this.animationTimer), this.animationTimer = setTimeout(function() {
|
326
332
|
i.adapter.releaseFocus(), i.handleAnimationTimerEnd(), i.adapter.notifyClosed(e);
|
327
333
|
}, y.DIALOG_ANIMATION_CLOSE_TIME_MS));
|
328
334
|
}, t.prototype.showSurfaceScrim = function() {
|
329
335
|
var e = this;
|
330
|
-
this.adapter.addClass(
|
331
|
-
e.adapter.addClass(
|
336
|
+
this.adapter.addClass(a.SURFACE_SCRIM_SHOWING), this.runNextAnimationFrame(function() {
|
337
|
+
e.adapter.addClass(a.SURFACE_SCRIM_SHOWN);
|
332
338
|
});
|
333
339
|
}, t.prototype.hideSurfaceScrim = function() {
|
334
|
-
this.adapter.removeClass(
|
340
|
+
this.adapter.removeClass(a.SURFACE_SCRIM_SHOWN), this.adapter.addClass(a.SURFACE_SCRIM_HIDING);
|
335
341
|
}, t.prototype.handleSurfaceScrimTransitionEnd = function() {
|
336
|
-
this.adapter.removeClass(
|
342
|
+
this.adapter.removeClass(a.SURFACE_SCRIM_HIDING), this.adapter.removeClass(a.SURFACE_SCRIM_SHOWING);
|
337
343
|
}, t.prototype.isOpen = function() {
|
338
344
|
return this.dialogOpen;
|
339
345
|
}, t.prototype.getEscapeKeyAction = function() {
|
@@ -362,14 +368,14 @@ var k = (
|
|
362
368
|
if (i && this.scrimClickAction !== "")
|
363
369
|
this.close(this.scrimClickAction);
|
364
370
|
else {
|
365
|
-
var
|
366
|
-
|
371
|
+
var n = this.adapter.getActionFromEvent(e);
|
372
|
+
n && this.close(n);
|
367
373
|
}
|
368
374
|
}, t.prototype.handleKeydown = function(e) {
|
369
375
|
var i = e.key === "Enter" || e.keyCode === 13;
|
370
376
|
if (i) {
|
371
|
-
var
|
372
|
-
if (!
|
377
|
+
var n = this.adapter.getActionFromEvent(e);
|
378
|
+
if (!n) {
|
373
379
|
var c = e.composedPath ? e.composedPath()[0] : e.target, l = this.suppressDefaultPressSelector ? !this.adapter.eventTargetMatches(c, this.suppressDefaultPressSelector) : !0;
|
374
380
|
i && l && this.adapter.clickDefaultButton();
|
375
381
|
}
|
@@ -385,22 +391,22 @@ var k = (
|
|
385
391
|
}, t.prototype.layoutInternal = function() {
|
386
392
|
this.autoStackButtons && this.detectStackedButtons(), this.toggleScrollableClasses();
|
387
393
|
}, t.prototype.handleAnimationTimerEnd = function() {
|
388
|
-
this.animationTimer = 0, this.adapter.removeClass(
|
394
|
+
this.animationTimer = 0, this.adapter.removeClass(a.OPENING), this.adapter.removeClass(a.CLOSING);
|
389
395
|
}, t.prototype.runNextAnimationFrame = function(e) {
|
390
396
|
var i = this;
|
391
397
|
cancelAnimationFrame(this.animationFrame), this.animationFrame = requestAnimationFrame(function() {
|
392
398
|
i.animationFrame = 0, clearTimeout(i.animationTimer), i.animationTimer = setTimeout(e, 0);
|
393
399
|
});
|
394
400
|
}, t.prototype.detectStackedButtons = function() {
|
395
|
-
this.adapter.removeClass(
|
401
|
+
this.adapter.removeClass(a.STACKED);
|
396
402
|
var e = this.adapter.areButtonsStacked();
|
397
|
-
e && this.adapter.addClass(
|
403
|
+
e && this.adapter.addClass(a.STACKED), e !== this.areButtonsStacked && (this.adapter.reverseButtons(), this.areButtonsStacked = e);
|
398
404
|
}, t.prototype.toggleScrollableClasses = function() {
|
399
|
-
this.adapter.removeClass(
|
405
|
+
this.adapter.removeClass(a.SCROLLABLE), this.adapter.isContentScrollable() && (this.adapter.addClass(a.SCROLLABLE), this.isFullscreen && (this.toggleScrollDividerHeader(), this.toggleScrollDividerFooter()));
|
400
406
|
}, t.prototype.toggleScrollDividerHeader = function() {
|
401
|
-
this.adapter.isScrollableContentAtTop() ? this.adapter.hasClass(
|
407
|
+
this.adapter.isScrollableContentAtTop() ? this.adapter.hasClass(a.SCROLL_DIVIDER_HEADER) && this.adapter.removeClass(a.SCROLL_DIVIDER_HEADER) : this.adapter.addClass(a.SCROLL_DIVIDER_HEADER);
|
402
408
|
}, t.prototype.toggleScrollDividerFooter = function() {
|
403
|
-
this.adapter.isScrollableContentAtBottom() ? this.adapter.hasClass(
|
409
|
+
this.adapter.isScrollableContentAtBottom() ? this.adapter.hasClass(a.SCROLL_DIVIDER_FOOTER) && this.adapter.removeClass(a.SCROLL_DIVIDER_FOOTER) : this.adapter.addClass(a.SCROLL_DIVIDER_FOOTER);
|
404
410
|
}, t;
|
405
411
|
}(R)
|
406
412
|
);
|
@@ -490,7 +496,7 @@ function C(o, t) {
|
|
490
496
|
* SPDX-License-Identifier: Apache-2.0
|
491
497
|
*/
|
492
498
|
const b = document.$blockingElements;
|
493
|
-
class d extends
|
499
|
+
class d extends L {
|
494
500
|
constructor() {
|
495
501
|
super(...arguments), this.hideActions = !1, this.stacked = !1, this.heading = "", this.scrimClickAction = "close", this.escapeKeyAction = "close", this.open = !1, this.defaultAction = "close", this.actionAttribute = "dialogAction", this.initialFocusAttribute = "dialogInitialFocus", this.initialSupressDefaultPressSelector = "", this.mdcFoundationClass = H, this.boundHandleClick = null, this.boundHandleKeydown = null, this.boundHandleDocumentKeydown = null;
|
496
502
|
}
|
@@ -510,14 +516,14 @@ class d extends O {
|
|
510
516
|
return e || null;
|
511
517
|
}
|
512
518
|
emitNotification(t, e) {
|
513
|
-
const i = { detail: e ? { action: e } : {} },
|
514
|
-
this.dispatchEvent(
|
519
|
+
const i = { detail: e ? { action: e } : {} }, n = new CustomEvent(t, i);
|
520
|
+
this.dispatchEvent(n);
|
515
521
|
}
|
516
522
|
getInitialFocusEl() {
|
517
523
|
const t = `[${this.initialFocusAttribute}]`, e = this.querySelector(t);
|
518
524
|
if (e)
|
519
525
|
return e;
|
520
|
-
const
|
526
|
+
const n = this.primarySlot.assignedNodes({ flatten: !0 }), c = this.searchNodeTreesForAttribute(n, this.initialFocusAttribute);
|
521
527
|
if (c)
|
522
528
|
return c;
|
523
529
|
const w = this.secondarySlot.assignedNodes({ flatten: !0 }), v = this.searchNodeTreesForAttribute(w, this.initialFocusAttribute);
|
@@ -532,15 +538,15 @@ class d extends O {
|
|
532
538
|
if (i.hasAttribute(e))
|
533
539
|
return i;
|
534
540
|
{
|
535
|
-
const
|
536
|
-
if (
|
537
|
-
return
|
541
|
+
const n = i.querySelector(`[${e}]`);
|
542
|
+
if (n)
|
543
|
+
return n;
|
538
544
|
}
|
539
545
|
}
|
540
546
|
return null;
|
541
547
|
}
|
542
548
|
createAdapter() {
|
543
|
-
return Object.assign(Object.assign({},
|
549
|
+
return Object.assign(Object.assign({}, T(this.mdcRoot)), { addBodyClass: () => document.body.style.overflow = "hidden", removeBodyClass: () => document.body.style.overflow = "", areButtonsStacked: () => this.stacked, clickDefaultButton: () => {
|
544
550
|
const t = this.primaryButton;
|
545
551
|
t && t.click();
|
546
552
|
}, eventTargetMatches: (t, e) => t ? C(t, e) : !1, getActionFromEvent: (t) => {
|
@@ -578,7 +584,7 @@ class d extends O {
|
|
578
584
|
}
|
579
585
|
render() {
|
580
586
|
const t = {
|
581
|
-
[
|
587
|
+
[a.STACKED]: this.stacked
|
582
588
|
};
|
583
589
|
let e = _``;
|
584
590
|
this.heading && (e = this.renderHeading());
|
@@ -684,7 +690,7 @@ r([
|
|
684
690
|
], d.prototype, "hideActions", void 0);
|
685
691
|
r([
|
686
692
|
s({ type: Boolean }),
|
687
|
-
|
693
|
+
h(function() {
|
688
694
|
this.forceLayout();
|
689
695
|
})
|
690
696
|
], d.prototype, "stacked", void 0);
|
@@ -693,19 +699,19 @@ r([
|
|
693
699
|
], d.prototype, "heading", void 0);
|
694
700
|
r([
|
695
701
|
s({ type: String }),
|
696
|
-
|
702
|
+
h(function(o) {
|
697
703
|
this.mdcFoundation.setScrimClickAction(o);
|
698
704
|
})
|
699
705
|
], d.prototype, "scrimClickAction", void 0);
|
700
706
|
r([
|
701
707
|
s({ type: String }),
|
702
|
-
|
708
|
+
h(function(o) {
|
703
709
|
this.mdcFoundation.setEscapeKeyAction(o);
|
704
710
|
})
|
705
711
|
], d.prototype, "escapeKeyAction", void 0);
|
706
712
|
r([
|
707
713
|
s({ type: Boolean, reflect: !0 }),
|
708
|
-
|
714
|
+
h(function(o) {
|
709
715
|
this.mdcFoundation && this.isConnected && (o ? (this.setEventListeners(), this.mdcFoundation.open()) : (this.removeEventListeners(), this.mdcFoundation.close(this.currentAction || this.defaultAction), this.currentAction = void 0));
|
710
716
|
})
|
711
717
|
], d.prototype, "open", void 0);
|
@@ -726,19 +732,19 @@ r([
|
|
726
732
|
const B = S`.mdc-dialog .mdc-dialog__surface{background-color:#fff;background-color:var(--mdc-theme-surface, #fff)}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(0,0,0,.32)}.mdc-dialog .mdc-dialog__surface-scrim{background-color:rgba(0,0,0,.32)}.mdc-dialog .mdc-dialog__title{color:rgba(0,0,0,.87)}.mdc-dialog .mdc-dialog__content{color:rgba(0,0,0,.6)}.mdc-dialog .mdc-dialog__close{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-dialog .mdc-dialog__close .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close .mdc-icon-button__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-dialog .mdc-dialog__close:hover .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close.mdc-ripple-surface--hover .mdc-icon-button__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-dialog .mdc-dialog__close.mdc-ripple-upgraded--background-focused .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded):focus .mdc-icon-button__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded) .mdc-icon-button__ripple::after{transition:opacity 150ms linear}.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded):active .mdc-icon-button__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-dialog .mdc-dialog__close.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions,.mdc-dialog.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:rgba(0,0,0,.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:0}.mdc-dialog.mdc-dialog-scroll-divider-header.mdc-dialog--fullscreen .mdc-dialog__header{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12)}.mdc-dialog .mdc-dialog__surface{border-radius:4px;border-radius:var(--mdc-shape-medium, 4px)}.mdc-dialog__surface{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2),0px 24px 38px 3px rgba(0, 0, 0, 0.14),0px 9px 46px 8px rgba(0,0,0,.12)}.mdc-dialog__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.25rem;font-size:var(--mdc-typography-headline6-font-size, 1.25rem);line-height:2rem;line-height:var(--mdc-typography-headline6-line-height, 2rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:0.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit)}.mdc-dialog__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-body1-font-size, 1rem);line-height:1.5rem;line-height:var(--mdc-typography-body1-line-height, 1.5rem);font-weight:400;font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:0.03125em;letter-spacing:var(--mdc-typography-body1-letter-spacing, 0.03125em);text-decoration:inherit;text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body1-text-transform, inherit)}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:7;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(max-width: 600px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid transparent;display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid transparent}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid transparent}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1;z-index:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}#actions:not(.mdc-dialog__actions){display:none}.mdc-dialog__surface{box-shadow:var(--mdc-dialog-box-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}@media(min-width: 560px){.mdc-dialog .mdc-dialog__surface{max-width:560px;max-width:var(--mdc-dialog-max-width, 560px)}}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(0, 0, 0, 0.32);background-color:var(--mdc-dialog-scrim-color, rgba(0, 0, 0, 0.32))}.mdc-dialog .mdc-dialog__title{color:rgba(0, 0, 0, 0.87);color:var(--mdc-dialog-heading-ink-color, rgba(0, 0, 0, 0.87))}.mdc-dialog .mdc-dialog__content{color:rgba(0, 0, 0, 0.6);color:var(--mdc-dialog-content-ink-color, rgba(0, 0, 0, 0.6))}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions{border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-dialog-scroll-divider-color, rgba(0, 0, 0, 0.12))}.mdc-dialog .mdc-dialog__surface{min-width:280px;min-width:var(--mdc-dialog-min-width, 280px)}.mdc-dialog .mdc-dialog__surface{max-height:var(--mdc-dialog-max-height, calc(100% - 32px))}#actions ::slotted(*){margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] #actions ::slotted(*),#actions ::slotted(*[dir=rtl]){margin-left:0;margin-right:8px}[dir=rtl] #actions ::slotted(*),#actions ::slotted(*[dir=rtl]){text-align:left}.mdc-dialog--stacked #actions{flex-direction:column-reverse}.mdc-dialog--stacked #actions *:not(:last-child) ::slotted(*){flex-basis:.000000001px;margin-top:12px}`, M = `:host{--mdc-dialog-heading-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-dialog-content-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-dialog-scroll-divider-color: var(--mdc-theme-border)}
|
727
733
|
`;
|
728
734
|
var K = Object.defineProperty, z = Object.getOwnPropertyDescriptor, U = (o, t, e, i) => {
|
729
|
-
for (var
|
730
|
-
(l = o[c]) && (
|
731
|
-
return i &&
|
735
|
+
for (var n = i > 1 ? void 0 : i ? z(t, e) : t, c = o.length - 1, l; c >= 0; c--)
|
736
|
+
(l = o[c]) && (n = (i ? l(t, e, n) : l(n)) || n);
|
737
|
+
return i && n && K(t, e, n), n;
|
732
738
|
};
|
733
|
-
let
|
739
|
+
let f = class extends d {
|
734
740
|
};
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
],
|
739
|
-
const
|
741
|
+
f.styles = [B, S`${D(M)}`];
|
742
|
+
f = U([
|
743
|
+
O("cv-dialog")
|
744
|
+
], f);
|
745
|
+
const tt = f;
|
740
746
|
export {
|
741
|
-
|
742
|
-
|
747
|
+
f as C,
|
748
|
+
tt as a,
|
743
749
|
B as s
|
744
750
|
};
|
@@ -0,0 +1,162 @@
|
|
1
|
+
"use strict";const l=require("./query-assigned-elements-07e38f46.js"),d=require("./tslib.es6-6b53b818.js");require("./inert.esm-2cee6f2e.js");const w=require("./base-element-d5abe37a.js"),f=require("./observer-a096ab43.js"),s=require("./property-074570d1.js"),u=require("./query-2ba749b7.js"),b=require("./class-map-50b8edb4.js"),A=require("./utils-a8190a39.js");/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2016 Google Inc.
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/var n={CLOSING:"mdc-dialog--closing",OPEN:"mdc-dialog--open",OPENING:"mdc-dialog--opening",SCROLLABLE:"mdc-dialog--scrollable",SCROLL_LOCK:"mdc-dialog-scroll-lock",STACKED:"mdc-dialog--stacked",FULLSCREEN:"mdc-dialog--fullscreen",SCROLL_DIVIDER_HEADER:"mdc-dialog-scroll-divider-header",SCROLL_DIVIDER_FOOTER:"mdc-dialog-scroll-divider-footer",SURFACE_SCRIM_SHOWN:"mdc-dialog__surface-scrim--shown",SURFACE_SCRIM_SHOWING:"mdc-dialog__surface-scrim--showing",SURFACE_SCRIM_HIDING:"mdc-dialog__surface-scrim--hiding",SCRIM_HIDDEN:"mdc-dialog__scrim--hidden"},g={ACTION_ATTRIBUTE:"data-mdc-dialog-action",BUTTON_DEFAULT_ATTRIBUTE:"data-mdc-dialog-button-default",BUTTON_SELECTOR:".mdc-dialog__button",CLOSED_EVENT:"MDCDialog:closed",CLOSE_ACTION:"close",CLOSING_EVENT:"MDCDialog:closing",CONTAINER_SELECTOR:".mdc-dialog__container",CONTENT_SELECTOR:".mdc-dialog__content",DESTROY_ACTION:"destroy",INITIAL_FOCUS_ATTRIBUTE:"data-mdc-dialog-initial-focus",OPENED_EVENT:"MDCDialog:opened",OPENING_EVENT:"MDCDialog:opening",SCRIM_SELECTOR:".mdc-dialog__scrim",SUPPRESS_DEFAULT_PRESS_SELECTOR:["textarea",".mdc-menu .mdc-list-item",".mdc-menu .mdc-deprecated-list-item"].join(", "),SURFACE_SELECTOR:".mdc-dialog__surface"},_={DIALOG_ANIMATION_CLOSE_TIME_MS:75,DIALOG_ANIMATION_OPEN_TIME_MS:150};/**
|
23
|
+
* @license
|
24
|
+
* Copyright 2020 Google Inc.
|
25
|
+
*
|
26
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
27
|
+
* of this software and associated documentation files (the "Software"), to deal
|
28
|
+
* in the Software without restriction, including without limitation the rights
|
29
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
30
|
+
* copies of the Software, and to permit persons to whom the Software is
|
31
|
+
* furnished to do so, subject to the following conditions:
|
32
|
+
*
|
33
|
+
* The above copyright notice and this permission notice shall be included in
|
34
|
+
* all copies or substantial portions of the Software.
|
35
|
+
*
|
36
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
37
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
38
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
39
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
40
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
41
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
42
|
+
* THE SOFTWARE.
|
43
|
+
*/var D=function(){function o(){this.rafIDs=new Map}return o.prototype.request=function(e,t){var i=this;this.cancel(e);var a=requestAnimationFrame(function(c){i.rafIDs.delete(e),t(c)});this.rafIDs.set(e,a)},o.prototype.cancel=function(e){var t=this.rafIDs.get(e);t&&(cancelAnimationFrame(t),this.rafIDs.delete(e))},o.prototype.cancelAll=function(){var e=this;this.rafIDs.forEach(function(t,i){e.cancel(i)})},o.prototype.getQueue=function(){var e=[];return this.rafIDs.forEach(function(t,i){e.push(i)}),e},o}();/**
|
44
|
+
* @license
|
45
|
+
* Copyright 2016 Google Inc.
|
46
|
+
*
|
47
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
48
|
+
* of this software and associated documentation files (the "Software"), to deal
|
49
|
+
* in the Software without restriction, including without limitation the rights
|
50
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
51
|
+
* copies of the Software, and to permit persons to whom the Software is
|
52
|
+
* furnished to do so, subject to the following conditions:
|
53
|
+
*
|
54
|
+
* The above copyright notice and this permission notice shall be included in
|
55
|
+
* all copies or substantial portions of the Software.
|
56
|
+
*
|
57
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
58
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
59
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
60
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
61
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
62
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
63
|
+
* THE SOFTWARE.
|
64
|
+
*/var O=function(){function o(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(o,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(o,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),o.prototype.init=function(){},o.prototype.destroy=function(){},o}();/**
|
65
|
+
* @license
|
66
|
+
* Copyright 2017 Google Inc.
|
67
|
+
*
|
68
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
69
|
+
* of this software and associated documentation files (the "Software"), to deal
|
70
|
+
* in the Software without restriction, including without limitation the rights
|
71
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
72
|
+
* copies of the Software, and to permit persons to whom the Software is
|
73
|
+
* furnished to do so, subject to the following conditions:
|
74
|
+
*
|
75
|
+
* The above copyright notice and this permission notice shall be included in
|
76
|
+
* all copies or substantial portions of the Software.
|
77
|
+
*
|
78
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
79
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
80
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
81
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
82
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
83
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
84
|
+
* THE SOFTWARE.
|
85
|
+
*/var h;(function(o){o.POLL_SCROLL_POS="poll_scroll_position",o.POLL_LAYOUT_CHANGE="poll_layout_change"})(h||(h={}));var F=function(o){d.__extends(e,o);function e(t){var i=o.call(this,d.__assign(d.__assign({},e.defaultAdapter),t))||this;return i.dialogOpen=!1,i.isFullscreen=!1,i.animationFrame=0,i.animationTimer=0,i.escapeKeyAction=g.CLOSE_ACTION,i.scrimClickAction=g.CLOSE_ACTION,i.autoStackButtons=!0,i.areButtonsStacked=!1,i.suppressDefaultPressSelector=g.SUPPRESS_DEFAULT_PRESS_SELECTOR,i.animFrame=new D,i.contentScrollHandler=function(){i.handleScrollEvent()},i.windowResizeHandler=function(){i.layout()},i.windowOrientationChangeHandler=function(){i.layout()},i}return Object.defineProperty(e,"cssClasses",{get:function(){return n},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return g},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return _},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addBodyClass:function(){},addClass:function(){},areButtonsStacked:function(){return!1},clickDefaultButton:function(){},eventTargetMatches:function(){return!1},getActionFromEvent:function(){return""},getInitialFocusEl:function(){return null},hasClass:function(){return!1},isContentScrollable:function(){return!1},notifyClosed:function(){},notifyClosing:function(){},notifyOpened:function(){},notifyOpening:function(){},releaseFocus:function(){},removeBodyClass:function(){},removeClass:function(){},reverseButtons:function(){},trapFocus:function(){},registerContentEventHandler:function(){},deregisterContentEventHandler:function(){},isScrollableContentAtTop:function(){return!1},isScrollableContentAtBottom:function(){return!1},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.hasClass(n.STACKED)&&this.setAutoStackButtons(!1),this.isFullscreen=this.adapter.hasClass(n.FULLSCREEN)},e.prototype.destroy=function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.handleAnimationTimerEnd()),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.animFrame.cancelAll(),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler)},e.prototype.open=function(t){var i=this;this.dialogOpen=!0,this.adapter.notifyOpening(),this.adapter.addClass(n.OPENING),this.isFullscreen&&this.adapter.registerContentEventHandler("scroll",this.contentScrollHandler),t&&t.isAboveFullscreenDialog&&this.adapter.addClass(n.SCRIM_HIDDEN),this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler),this.adapter.registerWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),this.runNextAnimationFrame(function(){i.adapter.addClass(n.OPEN),i.adapter.addBodyClass(n.SCROLL_LOCK),i.layout(),i.animationTimer=setTimeout(function(){i.handleAnimationTimerEnd(),i.adapter.trapFocus(i.adapter.getInitialFocusEl()),i.adapter.notifyOpened()},_.DIALOG_ANIMATION_OPEN_TIME_MS)})},e.prototype.close=function(t){var i=this;t===void 0&&(t=""),this.dialogOpen&&(this.dialogOpen=!1,this.adapter.notifyClosing(t),this.adapter.addClass(n.CLOSING),this.adapter.removeClass(n.OPEN),this.adapter.removeBodyClass(n.SCROLL_LOCK),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=setTimeout(function(){i.adapter.releaseFocus(),i.handleAnimationTimerEnd(),i.adapter.notifyClosed(t)},_.DIALOG_ANIMATION_CLOSE_TIME_MS))},e.prototype.showSurfaceScrim=function(){var t=this;this.adapter.addClass(n.SURFACE_SCRIM_SHOWING),this.runNextAnimationFrame(function(){t.adapter.addClass(n.SURFACE_SCRIM_SHOWN)})},e.prototype.hideSurfaceScrim=function(){this.adapter.removeClass(n.SURFACE_SCRIM_SHOWN),this.adapter.addClass(n.SURFACE_SCRIM_HIDING)},e.prototype.handleSurfaceScrimTransitionEnd=function(){this.adapter.removeClass(n.SURFACE_SCRIM_HIDING),this.adapter.removeClass(n.SURFACE_SCRIM_SHOWING)},e.prototype.isOpen=function(){return this.dialogOpen},e.prototype.getEscapeKeyAction=function(){return this.escapeKeyAction},e.prototype.setEscapeKeyAction=function(t){this.escapeKeyAction=t},e.prototype.getScrimClickAction=function(){return this.scrimClickAction},e.prototype.setScrimClickAction=function(t){this.scrimClickAction=t},e.prototype.getAutoStackButtons=function(){return this.autoStackButtons},e.prototype.setAutoStackButtons=function(t){this.autoStackButtons=t},e.prototype.getSuppressDefaultPressSelector=function(){return this.suppressDefaultPressSelector},e.prototype.setSuppressDefaultPressSelector=function(t){this.suppressDefaultPressSelector=t},e.prototype.layout=function(){var t=this;this.animFrame.request(h.POLL_LAYOUT_CHANGE,function(){t.layoutInternal()})},e.prototype.handleClick=function(t){var i=this.adapter.eventTargetMatches(t.target,g.SCRIM_SELECTOR);if(i&&this.scrimClickAction!=="")this.close(this.scrimClickAction);else{var a=this.adapter.getActionFromEvent(t);a&&this.close(a)}},e.prototype.handleKeydown=function(t){var i=t.key==="Enter"||t.keyCode===13;if(i){var a=this.adapter.getActionFromEvent(t);if(!a){var c=t.composedPath?t.composedPath()[0]:t.target,m=this.suppressDefaultPressSelector?!this.adapter.eventTargetMatches(c,this.suppressDefaultPressSelector):!0;i&&m&&this.adapter.clickDefaultButton()}}},e.prototype.handleDocumentKeydown=function(t){var i=t.key==="Escape"||t.keyCode===27;i&&this.escapeKeyAction!==""&&this.close(this.escapeKeyAction)},e.prototype.handleScrollEvent=function(){var t=this;this.animFrame.request(h.POLL_SCROLL_POS,function(){t.toggleScrollDividerHeader(),t.toggleScrollDividerFooter()})},e.prototype.layoutInternal=function(){this.autoStackButtons&&this.detectStackedButtons(),this.toggleScrollableClasses()},e.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0,this.adapter.removeClass(n.OPENING),this.adapter.removeClass(n.CLOSING)},e.prototype.runNextAnimationFrame=function(t){var i=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame(function(){i.animationFrame=0,clearTimeout(i.animationTimer),i.animationTimer=setTimeout(t,0)})},e.prototype.detectStackedButtons=function(){this.adapter.removeClass(n.STACKED);var t=this.adapter.areButtonsStacked();t&&this.adapter.addClass(n.STACKED),t!==this.areButtonsStacked&&(this.adapter.reverseButtons(),this.areButtonsStacked=t)},e.prototype.toggleScrollableClasses=function(){this.adapter.removeClass(n.SCROLLABLE),this.adapter.isContentScrollable()&&(this.adapter.addClass(n.SCROLLABLE),this.isFullscreen&&(this.toggleScrollDividerHeader(),this.toggleScrollDividerFooter()))},e.prototype.toggleScrollDividerHeader=function(){this.adapter.isScrollableContentAtTop()?this.adapter.hasClass(n.SCROLL_DIVIDER_HEADER)&&this.adapter.removeClass(n.SCROLL_DIVIDER_HEADER):this.adapter.addClass(n.SCROLL_DIVIDER_HEADER)},e.prototype.toggleScrollDividerFooter=function(){this.adapter.isScrollableContentAtBottom()?this.adapter.hasClass(n.SCROLL_DIVIDER_FOOTER)&&this.adapter.removeClass(n.SCROLL_DIVIDER_FOOTER):this.adapter.addClass(n.SCROLL_DIVIDER_FOOTER)},e}(O);const L=F;/**
|
86
|
+
* @license
|
87
|
+
* Copyright 2019 Google Inc.
|
88
|
+
*
|
89
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
90
|
+
* of this software and associated documentation files (the "Software"), to deal
|
91
|
+
* in the Software without restriction, including without limitation the rights
|
92
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
93
|
+
* copies of the Software, and to permit persons to whom the Software is
|
94
|
+
* furnished to do so, subject to the following conditions:
|
95
|
+
*
|
96
|
+
* The above copyright notice and this permission notice shall be included in
|
97
|
+
* all copies or substantial portions of the Software.
|
98
|
+
*
|
99
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
100
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
101
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
102
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
103
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
104
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
105
|
+
* THE SOFTWARE.
|
106
|
+
*/function p(o){return o===void 0&&(o=window),T(o)?{passive:!0}:!1}function T(o){o===void 0&&(o=window);var e=!1;try{var t={get passive(){return e=!0,!1}},i=function(){};o.document.addEventListener("test",i,t),o.document.removeEventListener("test",i,t)}catch{e=!1}return e}/**
|
107
|
+
* @license
|
108
|
+
* Copyright 2018 Google Inc.
|
109
|
+
*
|
110
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
111
|
+
* of this software and associated documentation files (the "Software"), to deal
|
112
|
+
* in the Software without restriction, including without limitation the rights
|
113
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
114
|
+
* copies of the Software, and to permit persons to whom the Software is
|
115
|
+
* furnished to do so, subject to the following conditions:
|
116
|
+
*
|
117
|
+
* The above copyright notice and this permission notice shall be included in
|
118
|
+
* all copies or substantial portions of the Software.
|
119
|
+
*
|
120
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
121
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
122
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
123
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
124
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
125
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
126
|
+
* THE SOFTWARE.
|
127
|
+
*/function I(o,e){if(o.closest)return o.closest(e);for(var t=o;t;){if(x(t,e))return t;t=t.parentElement}return null}function x(o,e){var t=o.matches||o.webkitMatchesSelector||o.msMatchesSelector;return t.call(o,e)}/**
|
128
|
+
* @license
|
129
|
+
* Copyright 2019 Google LLC
|
130
|
+
* SPDX-License-Identifier: Apache-2.0
|
131
|
+
*/const y=document.$blockingElements;class r extends w.BaseElement{constructor(){super(...arguments),this.hideActions=!1,this.stacked=!1,this.heading="",this.scrimClickAction="close",this.escapeKeyAction="close",this.open=!1,this.defaultAction="close",this.actionAttribute="dialogAction",this.initialFocusAttribute="dialogInitialFocus",this.initialSupressDefaultPressSelector="",this.mdcFoundationClass=L,this.boundHandleClick=null,this.boundHandleKeydown=null,this.boundHandleDocumentKeydown=null}set suppressDefaultPressSelector(e){this.mdcFoundation?this.mdcFoundation.setSuppressDefaultPressSelector(e):this.initialSupressDefaultPressSelector=e}get suppressDefaultPressSelector(){return this.mdcFoundation?this.mdcFoundation.getSuppressDefaultPressSelector():this.initialSupressDefaultPressSelector}get primaryButton(){let e=this.primarySlot.assignedNodes();e=e.filter(i=>i instanceof HTMLElement);const t=e[0];return t||null}emitNotification(e,t){const i={detail:t?{action:t}:{}},a=new CustomEvent(e,i);this.dispatchEvent(a)}getInitialFocusEl(){const e=`[${this.initialFocusAttribute}]`,t=this.querySelector(e);if(t)return t;const a=this.primarySlot.assignedNodes({flatten:!0}),c=this.searchNodeTreesForAttribute(a,this.initialFocusAttribute);if(c)return c;const E=this.secondarySlot.assignedNodes({flatten:!0}),v=this.searchNodeTreesForAttribute(E,this.initialFocusAttribute);if(v)return v;const S=this.contentSlot.assignedNodes({flatten:!0});return this.searchNodeTreesForAttribute(S,this.initialFocusAttribute)}searchNodeTreesForAttribute(e,t){for(const i of e)if(i instanceof HTMLElement){if(i.hasAttribute(t))return i;{const a=i.querySelector(`[${t}]`);if(a)return a}}return null}createAdapter(){return Object.assign(Object.assign({},A.addHasRemoveClass(this.mdcRoot)),{addBodyClass:()=>document.body.style.overflow="hidden",removeBodyClass:()=>document.body.style.overflow="",areButtonsStacked:()=>this.stacked,clickDefaultButton:()=>{const e=this.primaryButton;e&&e.click()},eventTargetMatches:(e,t)=>e?x(e,t):!1,getActionFromEvent:e=>{if(!e.target)return"";const t=I(e.target,`[${this.actionAttribute}]`);return t&&t.getAttribute(this.actionAttribute)},getInitialFocusEl:()=>this.getInitialFocusEl(),isContentScrollable:()=>{const e=this.contentElement;return e?e.scrollHeight>e.offsetHeight:!1},notifyClosed:e=>this.emitNotification("closed",e),notifyClosing:e=>{this.closingDueToDisconnect||(this.open=!1),this.emitNotification("closing",e)},notifyOpened:()=>this.emitNotification("opened"),notifyOpening:()=>{this.open=!0,this.emitNotification("opening")},reverseButtons:()=>{},releaseFocus:()=>{y.remove(this)},trapFocus:e=>{this.isConnected&&(y.push(this),e&&e.focus())},registerContentEventHandler:(e,t)=>{this.contentElement.addEventListener(e,t)},deregisterContentEventHandler:(e,t)=>{this.contentElement.removeEventListener(e,t)},isScrollableContentAtTop:()=>{const e=this.contentElement;return e?e.scrollTop===0:!1},isScrollableContentAtBottom:()=>{const e=this.contentElement;return e?Math.ceil(e.scrollHeight-e.scrollTop)===e.clientHeight:!1},registerWindowEventHandler:(e,t)=>{window.addEventListener(e,t,p())},deregisterWindowEventHandler:(e,t)=>{window.removeEventListener(e,t,p())}})}render(){const e={[n.STACKED]:this.stacked};let t=l.y``;this.heading&&(t=this.renderHeading());const i={"mdc-dialog__actions":!this.hideActions};return l.y`
|
132
|
+
<div class="mdc-dialog ${b.o(e)}"
|
133
|
+
role="alertdialog"
|
134
|
+
aria-modal="true"
|
135
|
+
aria-labelledby="title"
|
136
|
+
aria-describedby="content">
|
137
|
+
<div class="mdc-dialog__container">
|
138
|
+
<div class="mdc-dialog__surface">
|
139
|
+
${t}
|
140
|
+
<div id="content" class="mdc-dialog__content">
|
141
|
+
<slot id="contentSlot"></slot>
|
142
|
+
</div>
|
143
|
+
<footer
|
144
|
+
id="actions"
|
145
|
+
class="${b.o(i)}">
|
146
|
+
<span>
|
147
|
+
<slot name="secondaryAction"></slot>
|
148
|
+
</span>
|
149
|
+
<span>
|
150
|
+
<slot name="primaryAction"></slot>
|
151
|
+
</span>
|
152
|
+
</footer>
|
153
|
+
</div>
|
154
|
+
</div>
|
155
|
+
<div class="mdc-dialog__scrim"></div>
|
156
|
+
</div>`}renderHeading(){return l.y`
|
157
|
+
<h2 id="title" class="mdc-dialog__title">${this.heading}</h2>`}firstUpdated(){super.firstUpdated(),this.mdcFoundation.setAutoStackButtons(!0),this.initialSupressDefaultPressSelector?this.suppressDefaultPressSelector=this.initialSupressDefaultPressSelector:this.suppressDefaultPressSelector=[this.suppressDefaultPressSelector,"mwc-textarea","mwc-menu mwc-list-item","mwc-select mwc-list-item"].join(", "),this.boundHandleClick=this.mdcFoundation.handleClick.bind(this.mdcFoundation),this.boundHandleKeydown=this.mdcFoundation.handleKeydown.bind(this.mdcFoundation),this.boundHandleDocumentKeydown=this.mdcFoundation.handleDocumentKeydown.bind(this.mdcFoundation)}connectedCallback(){super.connectedCallback(),this.open&&this.mdcFoundation&&!this.mdcFoundation.isOpen()&&(this.setEventListeners(),this.mdcFoundation.open())}disconnectedCallback(){super.disconnectedCallback(),this.open&&this.mdcFoundation&&(this.removeEventListeners(),this.closingDueToDisconnect=!0,this.mdcFoundation.close(this.currentAction||this.defaultAction),this.closingDueToDisconnect=!1,this.currentAction=void 0,y.remove(this))}forceLayout(){this.mdcFoundation.layout()}focus(){const e=this.getInitialFocusEl();e&&e.focus()}blur(){if(!this.shadowRoot)return;const e=this.shadowRoot.activeElement;if(e)e instanceof HTMLElement&&e.blur();else{const t=this.getRootNode(),i=t instanceof Document?t.activeElement:null;i instanceof HTMLElement&&i.blur()}}setEventListeners(){this.boundHandleClick&&this.mdcRoot.addEventListener("click",this.boundHandleClick),this.boundHandleKeydown&&this.mdcRoot.addEventListener("keydown",this.boundHandleKeydown,p()),this.boundHandleDocumentKeydown&&document.addEventListener("keydown",this.boundHandleDocumentKeydown,p())}removeEventListeners(){this.boundHandleClick&&this.mdcRoot.removeEventListener("click",this.boundHandleClick),this.boundHandleKeydown&&this.mdcRoot.removeEventListener("keydown",this.boundHandleKeydown),this.boundHandleDocumentKeydown&&document.removeEventListener("keydown",this.boundHandleDocumentKeydown)}close(){this.open=!1}show(){this.open=!0}}d.__decorate([u.i(".mdc-dialog")],r.prototype,"mdcRoot",void 0);d.__decorate([u.i('slot[name="primaryAction"]')],r.prototype,"primarySlot",void 0);d.__decorate([u.i('slot[name="secondaryAction"]')],r.prototype,"secondarySlot",void 0);d.__decorate([u.i("#contentSlot")],r.prototype,"contentSlot",void 0);d.__decorate([u.i(".mdc-dialog__content")],r.prototype,"contentElement",void 0);d.__decorate([u.i(".mdc-container")],r.prototype,"conatinerElement",void 0);d.__decorate([s.e({type:Boolean})],r.prototype,"hideActions",void 0);d.__decorate([s.e({type:Boolean}),f.observer(function(){this.forceLayout()})],r.prototype,"stacked",void 0);d.__decorate([s.e({type:String})],r.prototype,"heading",void 0);d.__decorate([s.e({type:String}),f.observer(function(o){this.mdcFoundation.setScrimClickAction(o)})],r.prototype,"scrimClickAction",void 0);d.__decorate([s.e({type:String}),f.observer(function(o){this.mdcFoundation.setEscapeKeyAction(o)})],r.prototype,"escapeKeyAction",void 0);d.__decorate([s.e({type:Boolean,reflect:!0}),f.observer(function(o){this.mdcFoundation&&this.isConnected&&(o?(this.setEventListeners(),this.mdcFoundation.open()):(this.removeEventListeners(),this.mdcFoundation.close(this.currentAction||this.defaultAction),this.currentAction=void 0))})],r.prototype,"open",void 0);d.__decorate([s.e()],r.prototype,"defaultAction",void 0);d.__decorate([s.e()],r.prototype,"actionAttribute",void 0);d.__decorate([s.e()],r.prototype,"initialFocusAttribute",void 0);/**
|
158
|
+
* @license
|
159
|
+
* Copyright 2021 Google LLC
|
160
|
+
* SPDX-LIcense-Identifier: Apache-2.0
|
161
|
+
*/const C=l.i`.mdc-dialog .mdc-dialog__surface{background-color:#fff;background-color:var(--mdc-theme-surface, #fff)}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(0,0,0,.32)}.mdc-dialog .mdc-dialog__surface-scrim{background-color:rgba(0,0,0,.32)}.mdc-dialog .mdc-dialog__title{color:rgba(0,0,0,.87)}.mdc-dialog .mdc-dialog__content{color:rgba(0,0,0,.6)}.mdc-dialog .mdc-dialog__close{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-dialog .mdc-dialog__close .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close .mdc-icon-button__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-dialog .mdc-dialog__close:hover .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close.mdc-ripple-surface--hover .mdc-icon-button__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-dialog .mdc-dialog__close.mdc-ripple-upgraded--background-focused .mdc-icon-button__ripple::before,.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded):focus .mdc-icon-button__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded) .mdc-icon-button__ripple::after{transition:opacity 150ms linear}.mdc-dialog .mdc-dialog__close:not(.mdc-ripple-upgraded):active .mdc-icon-button__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-dialog .mdc-dialog__close.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions,.mdc-dialog.mdc-dialog--scrollable.mdc-dialog-scroll-divider-footer .mdc-dialog__actions{border-color:rgba(0,0,0,.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:0}.mdc-dialog.mdc-dialog-scroll-divider-header.mdc-dialog--fullscreen .mdc-dialog__header{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0,0,0,.12)}.mdc-dialog .mdc-dialog__surface{border-radius:4px;border-radius:var(--mdc-shape-medium, 4px)}.mdc-dialog__surface{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2),0px 24px 38px 3px rgba(0, 0, 0, 0.14),0px 9px 46px 8px rgba(0,0,0,.12)}.mdc-dialog__title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.25rem;font-size:var(--mdc-typography-headline6-font-size, 1.25rem);line-height:2rem;line-height:var(--mdc-typography-headline6-line-height, 2rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:0.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit)}.mdc-dialog__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-body1-font-size, 1rem);line-height:1.5rem;line-height:var(--mdc-typography-body1-line-height, 1.5rem);font-weight:400;font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:0.03125em;letter-spacing:var(--mdc-typography-body1-letter-spacing, 0.03125em);text-decoration:inherit;text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body1-text-transform, inherit)}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color, #fff)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:7;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(max-width: 600px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid transparent;display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid transparent}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid transparent}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1;z-index:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}#actions:not(.mdc-dialog__actions){display:none}.mdc-dialog__surface{box-shadow:var(--mdc-dialog-box-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}@media(min-width: 560px){.mdc-dialog .mdc-dialog__surface{max-width:560px;max-width:var(--mdc-dialog-max-width, 560px)}}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(0, 0, 0, 0.32);background-color:var(--mdc-dialog-scrim-color, rgba(0, 0, 0, 0.32))}.mdc-dialog .mdc-dialog__title{color:rgba(0, 0, 0, 0.87);color:var(--mdc-dialog-heading-ink-color, rgba(0, 0, 0, 0.87))}.mdc-dialog .mdc-dialog__content{color:rgba(0, 0, 0, 0.6);color:var(--mdc-dialog-content-ink-color, rgba(0, 0, 0, 0.6))}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title,.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__actions{border-color:rgba(0, 0, 0, 0.12);border-color:var(--mdc-dialog-scroll-divider-color, rgba(0, 0, 0, 0.12))}.mdc-dialog .mdc-dialog__surface{min-width:280px;min-width:var(--mdc-dialog-min-width, 280px)}.mdc-dialog .mdc-dialog__surface{max-height:var(--mdc-dialog-max-height, calc(100% - 32px))}#actions ::slotted(*){margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] #actions ::slotted(*),#actions ::slotted(*[dir=rtl]){margin-left:0;margin-right:8px}[dir=rtl] #actions ::slotted(*),#actions ::slotted(*[dir=rtl]){text-align:left}.mdc-dialog--stacked #actions{flex-direction:column-reverse}.mdc-dialog--stacked #actions *:not(:last-child) ::slotted(*){flex-basis:.000000001px;margin-top:12px}`,R=`:host{--mdc-dialog-heading-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-dialog-content-ink-color: var(--mdc-theme-text-primary-on-background);--mdc-dialog-scroll-divider-color: var(--mdc-theme-border)}
|
162
|
+
`;var k=Object.defineProperty,H=Object.getOwnPropertyDescriptor,N=(o,e,t,i)=>{for(var a=i>1?void 0:i?H(e,t):e,c=o.length-1,m;c>=0;c--)(m=o[c])&&(a=(i?m(e,t,a):m(a))||a);return i&&a&&k(e,t,a),a};exports.CovalentDialog=class extends r{};exports.CovalentDialog.styles=[C,l.i`${l.r(R)}`];exports.CovalentDialog=N([l.e("cv-dialog")],exports.CovalentDialog);const P=exports.CovalentDialog;exports.CovalentDialog$1=P;exports.styles=C;
|
package/dialog.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./query-assigned-elements-07e38f46.js");const e=require("./dialog-8ee07177.js");require("./tslib.es6-6b53b818.js");require("./inert.esm-2cee6f2e.js");require("./base-element-d5abe37a.js");require("./utils-a8190a39.js");require("./observer-a096ab43.js");require("./property-074570d1.js");require("./query-2ba749b7.js");require("./class-map-50b8edb4.js");Object.defineProperty(exports,"CovalentDialog",{enumerable:!0,get:()=>e.CovalentDialog});exports.default=e.CovalentDialog$1;
|