@covalent/components 9.1.0 → 9.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_commonjsHelpers-DjF3Plf2.mjs → _commonjsHelpers-HP5nalso.mjs} +2 -2
- package/action-ribbon.js +2 -2
- package/action-ribbon.mjs +24 -24
- package/alert.js +3 -3
- package/alert.mjs +4 -4
- package/app-shell.js +1 -1
- package/app-shell.mjs +6 -6
- package/async-directive-2AOdKBUW.mjs +66 -0
- package/async-directive-DZ3MjSIj.js +5 -0
- package/badge.js +1 -1
- package/badge.mjs +6 -6
- package/{base-element-aUDWLn36.js → base-element-5ZU-p99q.js} +1 -1
- package/{base-element-C-U4OfWx.mjs → base-element-CzNmpVoz.mjs} +1 -1
- package/button.js +1 -1
- package/button.mjs +24 -24
- package/card.js +1 -1
- package/card.mjs +12 -12
- package/check-list-item.js +7 -7
- package/check-list-item.mjs +31 -31
- package/checkbox.js +1 -1
- package/checkbox.mjs +9 -9
- package/{chip-C8L37ovG.mjs → chip-5QP7xPTY.mjs} +6 -6
- package/{chip-BsDYOEFW.js → chip-CitHXhY7.js} +1 -1
- package/chip-set.js +1 -1
- package/chip-set.mjs +114 -114
- package/chip.js +1 -1
- package/chip.mjs +2 -2
- package/circular-progress.js +4 -4
- package/circular-progress.mjs +10 -10
- package/class-map-BHl5MHd7.mjs +36 -0
- package/class-map-PsUYVqvf.js +5 -0
- package/{code-editor-CSH3MdBF.js → code-editor-CCUZsYkN.js} +135 -137
- package/{code-editor-Bshyfjyn.mjs → code-editor-JaW-06cH.mjs} +8151 -8113
- package/code-editor.js +1 -1
- package/code-editor.mjs +2 -2
- package/code-snippet.js +1 -1
- package/code-snippet.mjs +7 -7
- package/{dialog-BoNH4r3n.mjs → dialog-BVmWYLqR.mjs} +194 -194
- package/{dialog-LUOzoMeO.js → dialog-DzaPP3Vt.js} +9 -9
- package/dialog.js +1 -1
- package/dialog.mjs +2 -2
- package/{directive-oAbCiebi.mjs → directive-B76A7YXI.mjs} +4 -4
- package/directive-C_VV3qwo.js +5 -0
- package/directive-helpers-6HCt_-zj.mjs +11 -0
- package/directive-helpers-BnUMbYHh.js +5 -0
- package/drawer.js +1 -1
- package/drawer.mjs +2 -2
- package/empty-state.js +1 -1
- package/empty-state.mjs +7 -7
- package/{event-options-CNykeE2u.mjs → event-options-D44mpm5S.mjs} +1 -1
- package/{event-options-BH8ks-kz.js → event-options-IG-2g8HU.js} +1 -1
- package/expansion-panel-item.js +1 -1
- package/expansion-panel-item.mjs +4 -4
- package/expansion-panel.js +1 -1
- package/expansion-panel.mjs +1 -1
- package/focused-page.js +1 -1
- package/focused-page.mjs +8 -8
- package/form-element--PS8uSRI.js +5 -0
- package/form-element-Dn0Lerng.mjs +50 -0
- package/formfield.js +4 -4
- package/formfield.mjs +13 -13
- package/{foundation-qQ4jzaAu.mjs → foundation-BYhAXCW_.mjs} +17 -15
- package/{foundation-PL3XY-m_.mjs → foundation-D6JHa7Lg.mjs} +4 -4
- package/{foundation-pgmPu2iJ.js → foundation-aT_gy6X8.js} +1 -1
- package/{foundation-CySCCTUE.js → foundation-sIsx2I_x.js} +2 -2
- package/full-screen-dialog.js +2 -2
- package/full-screen-dialog.mjs +12 -12
- package/{html-DrhRpsz9.mjs → html-DhKW0KfF.mjs} +1 -1
- package/{html-DUGRoHaj.js → html-S7zzCKH0.js} +1 -1
- package/icon/_icon-list.d.ts +4 -0
- package/icon/_icon-list.d.ts.map +1 -0
- package/icon/icon-demo.d.ts +14 -0
- package/icon/icon-demo.d.ts.map +1 -0
- package/icon-button-toggle.js +5 -5
- package/icon-button-toggle.mjs +35 -35
- package/icon-button.js +2 -2
- package/icon-button.mjs +28 -28
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +6 -6
- package/icon-lockup.js +5 -5
- package/icon-lockup.mjs +6 -6
- package/icon-radio-toggle.js +4 -4
- package/icon-radio-toggle.mjs +8 -8
- package/icon.js +1 -1
- package/icon.mjs +14 -14
- package/{if-defined-D8C6ewRn.js → if-defined-B7G84qob.js} +1 -1
- package/{if-defined-BsNkRMMG.mjs → if-defined-DN7whKwy.mjs} +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +10 -1
- package/index.mjs +450 -112
- package/{javascript-DKtDcqDi.mjs → javascript-BtkevR81.mjs} +1 -1
- package/{javascript-54eqLOAw.js → javascript-fH54qAGk.js} +1 -1
- package/linear-progress.js +7 -7
- package/linear-progress.mjs +17 -17
- package/{list-item-BZVW1fmJ.js → list-item-BQ6SDTvW.js} +1 -1
- package/{list-item-DCzzLVZh.mjs → list-item-DuBDCnZ-.mjs} +1 -1
- package/list-item.js +2 -2
- package/list-item.mjs +16 -16
- package/list.js +1 -1
- package/list.mjs +16 -16
- package/menu.js +2 -2
- package/menu.mjs +11 -11
- package/{mwc-checkbox.css-Cd0yCOHu.js → mwc-checkbox.css-BV3dyB4C.js} +1 -1
- package/{mwc-checkbox.css-MBOzkrQg.mjs → mwc-checkbox.css-CNoj0V14.mjs} +31 -31
- package/{mwc-drawer-base-Dgs9327G.mjs → mwc-drawer-base-A-4s_ZnE.mjs} +10 -10
- package/{mwc-drawer-base-D-48lqfn.js → mwc-drawer-base-DWczEPvb.js} +3 -3
- package/{mwc-icon-BZRds8SY.mjs → mwc-icon-DTCUplqR.mjs} +2 -2
- package/{mwc-icon-BumH81hp.js → mwc-icon-Xgr698ax.js} +1 -1
- package/{mwc-icon-button.css-DJMY7U7e.mjs → mwc-icon-button.css-DJiDOS0_.mjs} +1 -1
- package/{mwc-icon-button.css-BtgKBOl3.js → mwc-icon-button.css-DOVWWyjA.js} +1 -1
- package/{mwc-line-ripple-directive-zhm5Zc8i.mjs → mwc-line-ripple-directive-TO37-41n.mjs} +34 -34
- package/{mwc-line-ripple-directive-DvPWr3ER.js → mwc-line-ripple-directive-r80jluoU.js} +4 -4
- package/{mwc-list-item.css-CtRq5wSu.js → mwc-list-item.css-CO1JlA8e.js} +10 -10
- package/{mwc-list-item.css-g34xqhLC.mjs → mwc-list-item.css-Cg9onxQ-.mjs} +11 -11
- package/{mwc-list.css-DFOdJyFB.mjs → mwc-list.css-C_-DVEme.mjs} +102 -102
- package/{mwc-list.css-CaMJWsDp.js → mwc-list.css-Deg9oBaO.js} +1 -1
- package/{mwc-menu.css-pxcxlTrh.js → mwc-menu.css-Dvr-f3_T.js} +18 -18
- package/{mwc-menu.css-BEiPghgR.mjs → mwc-menu.css-qpZxKN-g.mjs} +306 -306
- package/{mwc-radio.css-XRx0vL1k.mjs → mwc-radio.css-BiHC1R8I.mjs} +11 -11
- package/{mwc-radio.css-CVMtIq-L.js → mwc-radio.css-DjO4Rn44.js} +1 -1
- package/{mwc-slider.css-WrkrmqkL.js → mwc-slider.css-DFOaS04S.js} +13 -13
- package/{mwc-slider.css-2Bqk43z7.mjs → mwc-slider.css-Deh1__Ar.mjs} +290 -279
- package/{mwc-tab.css-B9yQpkYf.mjs → mwc-tab.css-2UrPKkNg.mjs} +34 -34
- package/{mwc-tab.css-CgdXMZBB.js → mwc-tab.css-sq5suZKe.js} +11 -11
- package/{mwc-top-app-bar-base-B0EW9eNk.mjs → mwc-top-app-bar-base-BIZGhVtM.mjs} +40 -40
- package/{mwc-top-app-bar-base-CSXRBOiX.js → mwc-top-app-bar-base-DUdOcIjS.js} +7 -7
- package/nav-list-item.js +3 -3
- package/nav-list-item.mjs +18 -18
- package/notebook-cell.js +1 -1
- package/notebook-cell.mjs +25 -25
- package/package.json +6 -1
- package/{property-DYTC_2-m.js → property-BRKnMYJe.js} +1 -1
- package/{python-CEXbOLXn.mjs → python-BkZeja0y.mjs} +1 -1
- package/{python-CzGtlN7c.js → python-C2_KOh3o.js} +1 -1
- package/query-BvlE-gMJ.js +5 -0
- package/query-DSO61t36.mjs +15 -0
- package/query-assigned-elements-BQszEgac.js +31 -0
- package/query-assigned-elements-DhyCP_2z.mjs +591 -0
- package/query-assigned-nodes-9DFnkxV8.js +5 -0
- package/query-assigned-nodes-B-jCihdA.mjs +17 -0
- package/radio-list-item.js +5 -5
- package/radio-list-item.mjs +24 -24
- package/radio.js +1 -1
- package/radio.mjs +9 -9
- package/{ripple-handlers-i3WPEBiO.mjs → ripple-handlers-BAdg-fJB.mjs} +72 -72
- package/{ripple-handlers-CzfSBjWo.js → ripple-handlers-BDmOLx8c.js} +5 -5
- package/select.js +12 -12
- package/select.mjs +119 -118
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +8 -8
- package/slider-range.js +7 -7
- package/slider-range.mjs +39 -39
- package/slider.js +1 -1
- package/slider.mjs +18 -18
- package/snackbar.js +8 -8
- package/snackbar.mjs +21 -21
- package/{state-DaD9o2aK.mjs → state-B_tK3mBm.mjs} +2 -2
- package/{state-C3HoXfoa.js → state-Csv4sdJA.js} +1 -1
- package/status-dialog.js +1 -1
- package/status-dialog.mjs +7 -7
- package/status-header-item.js +1 -1
- package/status-header-item.mjs +18 -18
- package/status-header.js +1 -1
- package/status-header.mjs +2 -2
- package/style-map-3QfsA_1O.js +5 -0
- package/style-map-QxIETvrs.mjs +42 -0
- package/switch.js +6 -6
- package/switch.mjs +40 -40
- package/tab-bar.js +5 -5
- package/tab-bar.mjs +93 -93
- package/tab.js +1 -1
- package/tab.mjs +5 -5
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +11 -11
- package/textarea.js +6 -6
- package/textarea.mjs +22 -22
- package/{textfield-BwmiygD8.js → textfield-CO6CFCCn.js} +30 -30
- package/{textfield-C6sUZIeA.mjs → textfield-WSgoABZn.mjs} +103 -103
- package/textfield.js +2 -2
- package/textfield.mjs +9 -9
- package/toolbar.js +1 -1
- package/toolbar.mjs +2 -2
- package/tooltip.js +3 -3
- package/tooltip.mjs +56 -55
- package/{top-app-bar-4SA3DjLX.mjs → top-app-bar-BvXNELe9.mjs} +1 -1
- package/{top-app-bar-CGjBuyiD.js → top-app-bar-Cvp1aN42.js} +1 -1
- package/top-app-bar-fixed.js +8 -8
- package/top-app-bar-fixed.mjs +35 -35
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +12 -12
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +5 -5
- package/tree-list.js +1 -1
- package/tree-list.mjs +5 -5
- package/tslib.es6-CISSdiiH.mjs +75 -0
- package/{typescript-DotYReBq.mjs → typescript-BUN0g4m9.mjs} +1 -1
- package/{typescript-D_zVB3gH.js → typescript-DzngJr4U.js} +1 -1
- package/typography.js +1 -1
- package/typography.mjs +10 -10
- package/async-directive-Cx1B9M5C.mjs +0 -66
- package/async-directive-y3fBDDSk.js +0 -5
- package/class-map-C1SJpero.mjs +0 -36
- package/class-map-C8G1ALWK.js +0 -5
- package/directive-C7oCP5Bh.js +0 -5
- package/directive-helpers-CllkNDrI.mjs +0 -11
- package/directive-helpers-Duf3sfLn.js +0 -5
- package/form-element-CxSqbssX.mjs +0 -50
- package/form-element-DwqUbs65.js +0 -5
- package/query-BBDQWsft.mjs +0 -15
- package/query-BxDs8ftQ.js +0 -5
- package/query-assigned-elements-4CafVNR8.js +0 -31
- package/query-assigned-elements-DCt2xozt.mjs +0 -591
- package/query-assigned-nodes-B9zBfkh6.mjs +0 -17
- package/query-assigned-nodes-CckKHm2z.js +0 -5
- package/style-map-BJBXlSqn.js +0 -5
- package/style-map-CCsABR5m.mjs +0 -42
- package/tslib.es6-pPsSiLLK.mjs +0 -75
@@ -1,11 +1,11 @@
|
|
1
|
-
import { x as _, i as S, r as D, e as O } from "./query-assigned-elements-
|
2
|
-
import {
|
1
|
+
import { x as _, i as S, r as D, e as O } from "./query-assigned-elements-DhyCP_2z.mjs";
|
2
|
+
import { _ as F, a as x, b as r } from "./tslib.es6-CISSdiiH.mjs";
|
3
3
|
import "./inert.esm-BJ7IrRxy.mjs";
|
4
|
-
import { B as L } from "./base-element-
|
5
|
-
import { o as
|
4
|
+
import { B as L } from "./base-element-CzNmpVoz.mjs";
|
5
|
+
import { o as h } from "./observer-DQ8OfVDQ.mjs";
|
6
6
|
import { n as s } from "./property-DJzm_oB9.mjs";
|
7
|
-
import { i as m } from "./query-
|
8
|
-
import { o as E } from "./class-map-
|
7
|
+
import { i as m } from "./query-DSO61t36.mjs";
|
8
|
+
import { o as E } from "./class-map-BHl5MHd7.mjs";
|
9
9
|
import { a as T } from "./utils-Dr5MegQq.mjs";
|
10
10
|
/**
|
11
11
|
* @license
|
@@ -29,7 +29,7 @@ import { a as T } from "./utils-Dr5MegQq.mjs";
|
|
29
29
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
30
30
|
* THE SOFTWARE.
|
31
31
|
*/
|
32
|
-
var
|
32
|
+
var n = {
|
33
33
|
CLOSING: "mdc-dialog--closing",
|
34
34
|
OPEN: "mdc-dialog--open",
|
35
35
|
OPENING: "mdc-dialog--opening",
|
@@ -62,7 +62,7 @@ var a = {
|
|
62
62
|
// to prevent interactions with the content behind this scrim, and to capture
|
63
63
|
// scrim clicks.
|
64
64
|
SCRIM_HIDDEN: "mdc-dialog__scrim--hidden"
|
65
|
-
},
|
65
|
+
}, u = {
|
66
66
|
ACTION_ATTRIBUTE: "data-mdc-dialog-action",
|
67
67
|
BUTTON_DEFAULT_ATTRIBUTE: "data-mdc-dialog-button-default",
|
68
68
|
BUTTON_SELECTOR: ".mdc-dialog__button",
|
@@ -82,7 +82,7 @@ var a = {
|
|
82
82
|
".mdc-menu .mdc-deprecated-list-item"
|
83
83
|
].join(", "),
|
84
84
|
SURFACE_SELECTOR: ".mdc-dialog__surface"
|
85
|
-
},
|
85
|
+
}, y = {
|
86
86
|
DIALOG_ANIMATION_CLOSE_TIME_MS: 75,
|
87
87
|
DIALOG_ANIMATION_OPEN_TIME_MS: 150
|
88
88
|
};
|
@@ -114,26 +114,26 @@ var I = (
|
|
114
114
|
function o() {
|
115
115
|
this.rafIDs = /* @__PURE__ */ new Map();
|
116
116
|
}
|
117
|
-
return o.prototype.request = function(
|
117
|
+
return o.prototype.request = function(e, t) {
|
118
118
|
var i = this;
|
119
|
-
this.cancel(
|
120
|
-
var
|
121
|
-
i.rafIDs.delete(
|
119
|
+
this.cancel(e);
|
120
|
+
var a = requestAnimationFrame(function(c) {
|
121
|
+
i.rafIDs.delete(e), t(c);
|
122
122
|
});
|
123
|
-
this.rafIDs.set(
|
124
|
-
}, o.prototype.cancel = function(
|
125
|
-
var
|
126
|
-
|
123
|
+
this.rafIDs.set(e, a);
|
124
|
+
}, o.prototype.cancel = function(e) {
|
125
|
+
var t = this.rafIDs.get(e);
|
126
|
+
t && (cancelAnimationFrame(t), this.rafIDs.delete(e));
|
127
127
|
}, o.prototype.cancelAll = function() {
|
128
|
-
var
|
129
|
-
this.rafIDs.forEach(function(
|
130
|
-
|
128
|
+
var e = this;
|
129
|
+
this.rafIDs.forEach(function(t, i) {
|
130
|
+
e.cancel(i);
|
131
131
|
});
|
132
132
|
}, o.prototype.getQueue = function() {
|
133
|
-
var
|
134
|
-
return this.rafIDs.forEach(function(
|
135
|
-
|
136
|
-
}),
|
133
|
+
var e = [];
|
134
|
+
return this.rafIDs.forEach(function(t, i) {
|
135
|
+
e.push(i);
|
136
|
+
}), e;
|
137
137
|
}, o;
|
138
138
|
}()
|
139
139
|
);
|
@@ -162,8 +162,8 @@ var I = (
|
|
162
162
|
var R = (
|
163
163
|
/** @class */
|
164
164
|
function() {
|
165
|
-
function o(
|
166
|
-
|
165
|
+
function o(e) {
|
166
|
+
e === void 0 && (e = {}), this.adapter = e;
|
167
167
|
}
|
168
168
|
return Object.defineProperty(o, "cssClasses", {
|
169
169
|
get: function() {
|
@@ -223,10 +223,10 @@ var p;
|
|
223
223
|
var k = (
|
224
224
|
/** @class */
|
225
225
|
function(o) {
|
226
|
-
F(
|
227
|
-
function t
|
228
|
-
var i = o.call(this, x(x({},
|
229
|
-
return i.dialogOpen = !1, i.isFullscreen = !1, i.animationFrame = 0, i.animationTimer = 0, i.escapeKeyAction =
|
226
|
+
F(e, o);
|
227
|
+
function e(t) {
|
228
|
+
var i = o.call(this, x(x({}, e.defaultAdapter), t)) || this;
|
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
230
|
i.handleScrollEvent();
|
231
231
|
}, i.windowResizeHandler = function() {
|
232
232
|
i.layout();
|
@@ -234,25 +234,25 @@ var k = (
|
|
234
234
|
i.layout();
|
235
235
|
}, i;
|
236
236
|
}
|
237
|
-
return Object.defineProperty(
|
237
|
+
return Object.defineProperty(e, "cssClasses", {
|
238
238
|
get: function() {
|
239
|
-
return
|
239
|
+
return n;
|
240
240
|
},
|
241
241
|
enumerable: !1,
|
242
242
|
configurable: !0
|
243
|
-
}), Object.defineProperty(
|
243
|
+
}), Object.defineProperty(e, "strings", {
|
244
244
|
get: function() {
|
245
|
-
return
|
245
|
+
return u;
|
246
246
|
},
|
247
247
|
enumerable: !1,
|
248
248
|
configurable: !0
|
249
|
-
}), Object.defineProperty(
|
249
|
+
}), Object.defineProperty(e, "numbers", {
|
250
250
|
get: function() {
|
251
|
-
return
|
251
|
+
return y;
|
252
252
|
},
|
253
253
|
enumerable: !1,
|
254
254
|
configurable: !0
|
255
|
-
}), Object.defineProperty(
|
255
|
+
}), Object.defineProperty(e, "defaultAdapter", {
|
256
256
|
get: function() {
|
257
257
|
return {
|
258
258
|
addBodyClass: function() {
|
@@ -315,99 +315,99 @@ var k = (
|
|
315
315
|
},
|
316
316
|
enumerable: !1,
|
317
317
|
configurable: !0
|
318
|
-
}),
|
319
|
-
this.adapter.hasClass(
|
320
|
-
},
|
318
|
+
}), e.prototype.init = function() {
|
319
|
+
this.adapter.hasClass(n.STACKED) && this.setAutoStackButtons(!1), this.isFullscreen = this.adapter.hasClass(n.FULLSCREEN);
|
320
|
+
}, e.prototype.destroy = function() {
|
321
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);
|
322
|
-
},
|
322
|
+
}, e.prototype.open = function(t) {
|
323
323
|
var i = this;
|
324
|
-
this.dialogOpen = !0, this.adapter.notifyOpening(), this.adapter.addClass(
|
325
|
-
i.adapter.addClass(
|
324
|
+
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() {
|
325
|
+
i.adapter.addClass(n.OPEN), i.adapter.addBodyClass(n.SCROLL_LOCK), i.layout(), i.animationTimer = setTimeout(function() {
|
326
326
|
i.handleAnimationTimerEnd(), i.adapter.trapFocus(i.adapter.getInitialFocusEl()), i.adapter.notifyOpened();
|
327
|
-
},
|
327
|
+
}, y.DIALOG_ANIMATION_OPEN_TIME_MS);
|
328
328
|
});
|
329
|
-
},
|
329
|
+
}, e.prototype.close = function(t) {
|
330
330
|
var i = this;
|
331
|
-
|
332
|
-
i.adapter.releaseFocus(), i.handleAnimationTimerEnd(), i.adapter.notifyClosed(
|
333
|
-
},
|
334
|
-
},
|
335
|
-
var
|
336
|
-
this.adapter.addClass(
|
337
|
-
|
331
|
+
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() {
|
332
|
+
i.adapter.releaseFocus(), i.handleAnimationTimerEnd(), i.adapter.notifyClosed(t);
|
333
|
+
}, y.DIALOG_ANIMATION_CLOSE_TIME_MS));
|
334
|
+
}, e.prototype.showSurfaceScrim = function() {
|
335
|
+
var t = this;
|
336
|
+
this.adapter.addClass(n.SURFACE_SCRIM_SHOWING), this.runNextAnimationFrame(function() {
|
337
|
+
t.adapter.addClass(n.SURFACE_SCRIM_SHOWN);
|
338
338
|
});
|
339
|
-
},
|
340
|
-
this.adapter.removeClass(
|
341
|
-
},
|
342
|
-
this.adapter.removeClass(
|
343
|
-
},
|
339
|
+
}, e.prototype.hideSurfaceScrim = function() {
|
340
|
+
this.adapter.removeClass(n.SURFACE_SCRIM_SHOWN), this.adapter.addClass(n.SURFACE_SCRIM_HIDING);
|
341
|
+
}, e.prototype.handleSurfaceScrimTransitionEnd = function() {
|
342
|
+
this.adapter.removeClass(n.SURFACE_SCRIM_HIDING), this.adapter.removeClass(n.SURFACE_SCRIM_SHOWING);
|
343
|
+
}, e.prototype.isOpen = function() {
|
344
344
|
return this.dialogOpen;
|
345
|
-
},
|
345
|
+
}, e.prototype.getEscapeKeyAction = function() {
|
346
346
|
return this.escapeKeyAction;
|
347
|
-
},
|
348
|
-
this.escapeKeyAction =
|
349
|
-
},
|
347
|
+
}, e.prototype.setEscapeKeyAction = function(t) {
|
348
|
+
this.escapeKeyAction = t;
|
349
|
+
}, e.prototype.getScrimClickAction = function() {
|
350
350
|
return this.scrimClickAction;
|
351
|
-
},
|
352
|
-
this.scrimClickAction =
|
353
|
-
},
|
351
|
+
}, e.prototype.setScrimClickAction = function(t) {
|
352
|
+
this.scrimClickAction = t;
|
353
|
+
}, e.prototype.getAutoStackButtons = function() {
|
354
354
|
return this.autoStackButtons;
|
355
|
-
},
|
356
|
-
this.autoStackButtons =
|
357
|
-
},
|
355
|
+
}, e.prototype.setAutoStackButtons = function(t) {
|
356
|
+
this.autoStackButtons = t;
|
357
|
+
}, e.prototype.getSuppressDefaultPressSelector = function() {
|
358
358
|
return this.suppressDefaultPressSelector;
|
359
|
-
},
|
360
|
-
this.suppressDefaultPressSelector =
|
361
|
-
},
|
362
|
-
var
|
359
|
+
}, e.prototype.setSuppressDefaultPressSelector = function(t) {
|
360
|
+
this.suppressDefaultPressSelector = t;
|
361
|
+
}, e.prototype.layout = function() {
|
362
|
+
var t = this;
|
363
363
|
this.animFrame.request(p.POLL_LAYOUT_CHANGE, function() {
|
364
|
-
|
364
|
+
t.layoutInternal();
|
365
365
|
});
|
366
|
-
},
|
367
|
-
var i = this.adapter.eventTargetMatches(
|
366
|
+
}, e.prototype.handleClick = function(t) {
|
367
|
+
var i = this.adapter.eventTargetMatches(t.target, u.SCRIM_SELECTOR);
|
368
368
|
if (i && this.scrimClickAction !== "")
|
369
369
|
this.close(this.scrimClickAction);
|
370
370
|
else {
|
371
|
-
var
|
372
|
-
|
371
|
+
var a = this.adapter.getActionFromEvent(t);
|
372
|
+
a && this.close(a);
|
373
373
|
}
|
374
|
-
},
|
375
|
-
var i =
|
374
|
+
}, e.prototype.handleKeydown = function(t) {
|
375
|
+
var i = t.key === "Enter" || t.keyCode === 13;
|
376
376
|
if (i) {
|
377
|
-
var
|
378
|
-
if (!
|
379
|
-
var c =
|
377
|
+
var a = this.adapter.getActionFromEvent(t);
|
378
|
+
if (!a) {
|
379
|
+
var c = t.composedPath ? t.composedPath()[0] : t.target, l = this.suppressDefaultPressSelector ? !this.adapter.eventTargetMatches(c, this.suppressDefaultPressSelector) : !0;
|
380
380
|
i && l && this.adapter.clickDefaultButton();
|
381
381
|
}
|
382
382
|
}
|
383
|
-
},
|
384
|
-
var i =
|
383
|
+
}, e.prototype.handleDocumentKeydown = function(t) {
|
384
|
+
var i = t.key === "Escape" || t.keyCode === 27;
|
385
385
|
i && this.escapeKeyAction !== "" && this.close(this.escapeKeyAction);
|
386
|
-
},
|
387
|
-
var
|
386
|
+
}, e.prototype.handleScrollEvent = function() {
|
387
|
+
var t = this;
|
388
388
|
this.animFrame.request(p.POLL_SCROLL_POS, function() {
|
389
|
-
|
389
|
+
t.toggleScrollDividerHeader(), t.toggleScrollDividerFooter();
|
390
390
|
});
|
391
|
-
},
|
391
|
+
}, e.prototype.layoutInternal = function() {
|
392
392
|
this.autoStackButtons && this.detectStackedButtons(), this.toggleScrollableClasses();
|
393
|
-
},
|
394
|
-
this.animationTimer = 0, this.adapter.removeClass(
|
395
|
-
},
|
393
|
+
}, e.prototype.handleAnimationTimerEnd = function() {
|
394
|
+
this.animationTimer = 0, this.adapter.removeClass(n.OPENING), this.adapter.removeClass(n.CLOSING);
|
395
|
+
}, e.prototype.runNextAnimationFrame = function(t) {
|
396
396
|
var i = this;
|
397
397
|
cancelAnimationFrame(this.animationFrame), this.animationFrame = requestAnimationFrame(function() {
|
398
|
-
i.animationFrame = 0, clearTimeout(i.animationTimer), i.animationTimer = setTimeout(
|
398
|
+
i.animationFrame = 0, clearTimeout(i.animationTimer), i.animationTimer = setTimeout(t, 0);
|
399
399
|
});
|
400
|
-
},
|
401
|
-
this.adapter.removeClass(
|
402
|
-
var
|
403
|
-
|
404
|
-
},
|
405
|
-
this.adapter.removeClass(
|
406
|
-
},
|
407
|
-
this.adapter.isScrollableContentAtTop() ? this.adapter.hasClass(
|
408
|
-
},
|
409
|
-
this.adapter.isScrollableContentAtBottom() ? this.adapter.hasClass(
|
410
|
-
},
|
400
|
+
}, e.prototype.detectStackedButtons = function() {
|
401
|
+
this.adapter.removeClass(n.STACKED);
|
402
|
+
var t = this.adapter.areButtonsStacked();
|
403
|
+
t && this.adapter.addClass(n.STACKED), t !== this.areButtonsStacked && (this.adapter.reverseButtons(), this.areButtonsStacked = t);
|
404
|
+
}, e.prototype.toggleScrollableClasses = function() {
|
405
|
+
this.adapter.removeClass(n.SCROLLABLE), this.adapter.isContentScrollable() && (this.adapter.addClass(n.SCROLLABLE), this.isFullscreen && (this.toggleScrollDividerHeader(), this.toggleScrollDividerFooter()));
|
406
|
+
}, e.prototype.toggleScrollDividerHeader = function() {
|
407
|
+
this.adapter.isScrollableContentAtTop() ? this.adapter.hasClass(n.SCROLL_DIVIDER_HEADER) && this.adapter.removeClass(n.SCROLL_DIVIDER_HEADER) : this.adapter.addClass(n.SCROLL_DIVIDER_HEADER);
|
408
|
+
}, e.prototype.toggleScrollDividerFooter = function() {
|
409
|
+
this.adapter.isScrollableContentAtBottom() ? this.adapter.hasClass(n.SCROLL_DIVIDER_FOOTER) && this.adapter.removeClass(n.SCROLL_DIVIDER_FOOTER) : this.adapter.addClass(n.SCROLL_DIVIDER_FOOTER);
|
410
|
+
}, e;
|
411
411
|
}(R)
|
412
412
|
);
|
413
413
|
/**
|
@@ -432,26 +432,26 @@ var k = (
|
|
432
432
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
433
433
|
* THE SOFTWARE.
|
434
434
|
*/
|
435
|
-
function
|
435
|
+
function g(o) {
|
436
436
|
return o === void 0 && (o = window), H(o) ? { passive: !0 } : !1;
|
437
437
|
}
|
438
438
|
function H(o) {
|
439
439
|
o === void 0 && (o = window);
|
440
|
-
var
|
440
|
+
var e = !1;
|
441
441
|
try {
|
442
|
-
var
|
442
|
+
var t = {
|
443
443
|
// This function will be called when the browser
|
444
444
|
// attempts to access the passive property.
|
445
445
|
get passive() {
|
446
|
-
return
|
446
|
+
return e = !0, !1;
|
447
447
|
}
|
448
448
|
}, i = function() {
|
449
449
|
};
|
450
|
-
o.document.addEventListener("test", i,
|
450
|
+
o.document.addEventListener("test", i, t), o.document.removeEventListener("test", i, t);
|
451
451
|
} catch {
|
452
|
-
|
452
|
+
e = !1;
|
453
453
|
}
|
454
|
-
return
|
454
|
+
return e;
|
455
455
|
}
|
456
456
|
/**
|
457
457
|
* @license
|
@@ -475,32 +475,32 @@ function H(o) {
|
|
475
475
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
476
476
|
* THE SOFTWARE.
|
477
477
|
*/
|
478
|
-
function N(o,
|
478
|
+
function N(o, e) {
|
479
479
|
if (o.closest)
|
480
|
-
return o.closest(
|
481
|
-
for (var
|
482
|
-
if (C(
|
483
|
-
return
|
484
|
-
|
480
|
+
return o.closest(e);
|
481
|
+
for (var t = o; t; ) {
|
482
|
+
if (C(t, e))
|
483
|
+
return t;
|
484
|
+
t = t.parentElement;
|
485
485
|
}
|
486
486
|
return null;
|
487
487
|
}
|
488
|
-
function C(o,
|
489
|
-
var
|
490
|
-
return
|
488
|
+
function C(o, e) {
|
489
|
+
var t = o.matches || o.webkitMatchesSelector || o.msMatchesSelector;
|
490
|
+
return t.call(o, e);
|
491
491
|
}
|
492
492
|
/**
|
493
493
|
* @license
|
494
494
|
* Copyright 2019 Google LLC
|
495
495
|
* SPDX-License-Identifier: Apache-2.0
|
496
496
|
*/
|
497
|
-
const
|
497
|
+
const b = document.$blockingElements;
|
498
498
|
class d extends L {
|
499
499
|
constructor() {
|
500
500
|
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 = k, this.boundHandleClick = null, this.boundHandleKeydown = null, this.boundHandleDocumentKeydown = null;
|
501
501
|
}
|
502
|
-
set suppressDefaultPressSelector(
|
503
|
-
this.mdcFoundation ? this.mdcFoundation.setSuppressDefaultPressSelector(
|
502
|
+
set suppressDefaultPressSelector(e) {
|
503
|
+
this.mdcFoundation ? this.mdcFoundation.setSuppressDefaultPressSelector(e) : this.initialSupressDefaultPressSelector = e;
|
504
504
|
}
|
505
505
|
/**
|
506
506
|
* @export
|
@@ -509,96 +509,96 @@ class d extends L {
|
|
509
509
|
return this.mdcFoundation ? this.mdcFoundation.getSuppressDefaultPressSelector() : this.initialSupressDefaultPressSelector;
|
510
510
|
}
|
511
511
|
get primaryButton() {
|
512
|
-
let
|
513
|
-
|
514
|
-
const
|
515
|
-
return
|
512
|
+
let e = this.primarySlot.assignedNodes();
|
513
|
+
e = e.filter((i) => i instanceof HTMLElement);
|
514
|
+
const t = e[0];
|
515
|
+
return t || null;
|
516
516
|
}
|
517
|
-
emitNotification(
|
518
|
-
const i = { detail:
|
519
|
-
this.dispatchEvent(
|
517
|
+
emitNotification(e, t) {
|
518
|
+
const i = { detail: t ? { action: t } : {} }, a = new CustomEvent(e, i);
|
519
|
+
this.dispatchEvent(a);
|
520
520
|
}
|
521
521
|
getInitialFocusEl() {
|
522
|
-
const
|
523
|
-
if (
|
524
|
-
return
|
525
|
-
const
|
522
|
+
const e = `[${this.initialFocusAttribute}]`, t = this.querySelector(e);
|
523
|
+
if (t)
|
524
|
+
return t;
|
525
|
+
const a = this.primarySlot.assignedNodes({ flatten: !0 }), c = this.searchNodeTreesForAttribute(a, this.initialFocusAttribute);
|
526
526
|
if (c)
|
527
527
|
return c;
|
528
|
-
const w = this.secondarySlot.assignedNodes({ flatten: !0 }),
|
529
|
-
if (
|
530
|
-
return
|
528
|
+
const w = this.secondarySlot.assignedNodes({ flatten: !0 }), v = this.searchNodeTreesForAttribute(w, this.initialFocusAttribute);
|
529
|
+
if (v)
|
530
|
+
return v;
|
531
531
|
const A = this.contentSlot.assignedNodes({ flatten: !0 });
|
532
532
|
return this.searchNodeTreesForAttribute(A, this.initialFocusAttribute);
|
533
533
|
}
|
534
|
-
searchNodeTreesForAttribute(
|
535
|
-
for (const i of
|
534
|
+
searchNodeTreesForAttribute(e, t) {
|
535
|
+
for (const i of e)
|
536
536
|
if (i instanceof HTMLElement) {
|
537
|
-
if (i.hasAttribute(
|
537
|
+
if (i.hasAttribute(t))
|
538
538
|
return i;
|
539
539
|
{
|
540
|
-
const
|
541
|
-
if (
|
542
|
-
return
|
540
|
+
const a = i.querySelector(`[${t}]`);
|
541
|
+
if (a)
|
542
|
+
return a;
|
543
543
|
}
|
544
544
|
}
|
545
545
|
return null;
|
546
546
|
}
|
547
547
|
createAdapter() {
|
548
548
|
return Object.assign(Object.assign({}, T(this.mdcRoot)), { addBodyClass: () => document.body.style.overflow = "hidden", removeBodyClass: () => document.body.style.overflow = "", areButtonsStacked: () => this.stacked, clickDefaultButton: () => {
|
549
|
-
const
|
550
|
-
|
551
|
-
}, eventTargetMatches: (
|
552
|
-
if (!
|
549
|
+
const e = this.primaryButton;
|
550
|
+
e && e.click();
|
551
|
+
}, eventTargetMatches: (e, t) => e ? C(e, t) : !1, getActionFromEvent: (e) => {
|
552
|
+
if (!e.target)
|
553
553
|
return "";
|
554
|
-
const
|
555
|
-
return
|
554
|
+
const t = N(e.target, `[${this.actionAttribute}]`);
|
555
|
+
return t && t.getAttribute(this.actionAttribute);
|
556
556
|
}, getInitialFocusEl: () => this.getInitialFocusEl(), isContentScrollable: () => {
|
557
|
-
const
|
558
|
-
return
|
559
|
-
}, notifyClosed: (
|
560
|
-
this.closingDueToDisconnect || (this.open = !1), this.emitNotification("closing",
|
557
|
+
const e = this.contentElement;
|
558
|
+
return e ? e.scrollHeight > e.offsetHeight : !1;
|
559
|
+
}, notifyClosed: (e) => this.emitNotification("closed", e), notifyClosing: (e) => {
|
560
|
+
this.closingDueToDisconnect || (this.open = !1), this.emitNotification("closing", e);
|
561
561
|
}, notifyOpened: () => this.emitNotification("opened"), notifyOpening: () => {
|
562
562
|
this.open = !0, this.emitNotification("opening");
|
563
563
|
}, reverseButtons: () => {
|
564
564
|
}, releaseFocus: () => {
|
565
|
-
|
566
|
-
}, trapFocus: (
|
567
|
-
this.isConnected && (
|
568
|
-
}, registerContentEventHandler: (
|
569
|
-
this.contentElement.addEventListener(
|
570
|
-
}, deregisterContentEventHandler: (
|
571
|
-
this.contentElement.removeEventListener(
|
565
|
+
b.remove(this);
|
566
|
+
}, trapFocus: (e) => {
|
567
|
+
this.isConnected && (b.push(this), e && e.focus());
|
568
|
+
}, registerContentEventHandler: (e, t) => {
|
569
|
+
this.contentElement.addEventListener(e, t);
|
570
|
+
}, deregisterContentEventHandler: (e, t) => {
|
571
|
+
this.contentElement.removeEventListener(e, t);
|
572
572
|
}, isScrollableContentAtTop: () => {
|
573
|
-
const
|
574
|
-
return
|
573
|
+
const e = this.contentElement;
|
574
|
+
return e ? e.scrollTop === 0 : !1;
|
575
575
|
}, isScrollableContentAtBottom: () => {
|
576
|
-
const
|
577
|
-
return
|
578
|
-
}, registerWindowEventHandler: (
|
579
|
-
window.addEventListener(
|
580
|
-
}, deregisterWindowEventHandler: (
|
581
|
-
window.removeEventListener(
|
576
|
+
const e = this.contentElement;
|
577
|
+
return e ? Math.ceil(e.scrollHeight - e.scrollTop) === e.clientHeight : !1;
|
578
|
+
}, registerWindowEventHandler: (e, t) => {
|
579
|
+
window.addEventListener(e, t, g());
|
580
|
+
}, deregisterWindowEventHandler: (e, t) => {
|
581
|
+
window.removeEventListener(e, t, g());
|
582
582
|
} });
|
583
583
|
}
|
584
584
|
render() {
|
585
|
-
const
|
586
|
-
[
|
585
|
+
const e = {
|
586
|
+
[n.STACKED]: this.stacked
|
587
587
|
};
|
588
|
-
let
|
589
|
-
this.heading && (
|
588
|
+
let t = _``;
|
589
|
+
this.heading && (t = this.renderHeading());
|
590
590
|
const i = {
|
591
591
|
"mdc-dialog__actions": !this.hideActions
|
592
592
|
};
|
593
593
|
return _`
|
594
|
-
<div class="mdc-dialog ${E(
|
594
|
+
<div class="mdc-dialog ${E(e)}"
|
595
595
|
role="alertdialog"
|
596
596
|
aria-modal="true"
|
597
597
|
aria-labelledby="title"
|
598
598
|
aria-describedby="content">
|
599
599
|
<div class="mdc-dialog__container">
|
600
600
|
<div class="mdc-dialog__surface">
|
601
|
-
${
|
601
|
+
${t}
|
602
602
|
<div id="content" class="mdc-dialog__content">
|
603
603
|
<slot id="contentSlot"></slot>
|
604
604
|
</div>
|
@@ -633,28 +633,28 @@ class d extends L {
|
|
633
633
|
super.connectedCallback(), this.open && this.mdcFoundation && !this.mdcFoundation.isOpen() && (this.setEventListeners(), this.mdcFoundation.open());
|
634
634
|
}
|
635
635
|
disconnectedCallback() {
|
636
|
-
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,
|
636
|
+
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, b.remove(this));
|
637
637
|
}
|
638
638
|
forceLayout() {
|
639
639
|
this.mdcFoundation.layout();
|
640
640
|
}
|
641
641
|
focus() {
|
642
|
-
const
|
643
|
-
|
642
|
+
const e = this.getInitialFocusEl();
|
643
|
+
e && e.focus();
|
644
644
|
}
|
645
645
|
blur() {
|
646
646
|
if (!this.shadowRoot)
|
647
647
|
return;
|
648
|
-
const
|
649
|
-
if (
|
650
|
-
|
648
|
+
const e = this.shadowRoot.activeElement;
|
649
|
+
if (e)
|
650
|
+
e instanceof HTMLElement && e.blur();
|
651
651
|
else {
|
652
|
-
const
|
652
|
+
const t = this.getRootNode(), i = t instanceof Document ? t.activeElement : null;
|
653
653
|
i instanceof HTMLElement && i.blur();
|
654
654
|
}
|
655
655
|
}
|
656
656
|
setEventListeners() {
|
657
|
-
this.boundHandleClick && this.mdcRoot.addEventListener("click", this.boundHandleClick), this.boundHandleKeydown && this.mdcRoot.addEventListener("keydown", this.boundHandleKeydown,
|
657
|
+
this.boundHandleClick && this.mdcRoot.addEventListener("click", this.boundHandleClick), this.boundHandleKeydown && this.mdcRoot.addEventListener("keydown", this.boundHandleKeydown, g()), this.boundHandleDocumentKeydown && document.addEventListener("keydown", this.boundHandleDocumentKeydown, g());
|
658
658
|
}
|
659
659
|
removeEventListeners() {
|
660
660
|
this.boundHandleClick && this.mdcRoot.removeEventListener("click", this.boundHandleClick), this.boundHandleKeydown && this.mdcRoot.removeEventListener("keydown", this.boundHandleKeydown), this.boundHandleDocumentKeydown && document.removeEventListener("keydown", this.boundHandleDocumentKeydown);
|
@@ -689,7 +689,7 @@ r([
|
|
689
689
|
], d.prototype, "hideActions", void 0);
|
690
690
|
r([
|
691
691
|
s({ type: Boolean }),
|
692
|
-
|
692
|
+
h(function() {
|
693
693
|
this.forceLayout();
|
694
694
|
})
|
695
695
|
], d.prototype, "stacked", void 0);
|
@@ -698,19 +698,19 @@ r([
|
|
698
698
|
], d.prototype, "heading", void 0);
|
699
699
|
r([
|
700
700
|
s({ type: String }),
|
701
|
-
|
701
|
+
h(function(o) {
|
702
702
|
this.mdcFoundation.setScrimClickAction(o);
|
703
703
|
})
|
704
704
|
], d.prototype, "scrimClickAction", void 0);
|
705
705
|
r([
|
706
706
|
s({ type: String }),
|
707
|
-
|
707
|
+
h(function(o) {
|
708
708
|
this.mdcFoundation.setEscapeKeyAction(o);
|
709
709
|
})
|
710
710
|
], d.prototype, "escapeKeyAction", void 0);
|
711
711
|
r([
|
712
712
|
s({ type: Boolean, reflect: !0 }),
|
713
|
-
|
713
|
+
h(function(o) {
|
714
714
|
this.mdcFoundation && this.isConnected && (o ? (this.setEventListeners(), this.mdcFoundation.open()) : (this.removeEventListeners(), this.mdcFoundation.close(this.currentAction || this.defaultAction), this.currentAction = void 0));
|
715
715
|
})
|
716
716
|
], d.prototype, "open", void 0);
|
@@ -729,20 +729,20 @@ r([
|
|
729
729
|
* SPDX-LIcense-Identifier: Apache-2.0
|
730
730
|
*/
|
731
731
|
const P = 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}`, B = ":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)}:host .mdc-dialog .mdc-dialog__surface{border-radius:var(--cv-dialog-border-radius, var(--mdc-shape-medium, 4));min-height:var(--mdc-dialog-min-height)}:host .mdc-dialog .mdc-dialog__content{padding:var(--cv-dialog-vertical-padding, 20px) var(--cv-dialog-horizontal-padding, 24px)}";
|
732
|
-
var M = Object.defineProperty, K = Object.getOwnPropertyDescriptor, z = (o,
|
733
|
-
for (var
|
734
|
-
(l = o[c]) && (
|
735
|
-
return i &&
|
732
|
+
var M = Object.defineProperty, K = Object.getOwnPropertyDescriptor, z = (o, e, t, i) => {
|
733
|
+
for (var a = i > 1 ? void 0 : i ? K(e, t) : e, c = o.length - 1, l; c >= 0; c--)
|
734
|
+
(l = o[c]) && (a = (i ? l(e, t, a) : l(a)) || a);
|
735
|
+
return i && a && M(e, t, a), a;
|
736
736
|
};
|
737
|
-
let
|
737
|
+
let f = class extends d {
|
738
738
|
};
|
739
|
-
|
740
|
-
|
739
|
+
f.styles = [P, S`${D(B)}`];
|
740
|
+
f = z([
|
741
741
|
O("cv-dialog")
|
742
|
-
],
|
743
|
-
const Z =
|
742
|
+
], f);
|
743
|
+
const Z = f;
|
744
744
|
export {
|
745
|
-
|
745
|
+
f as C,
|
746
746
|
Z as a,
|
747
747
|
P as s
|
748
748
|
};
|