@covalent/components 6.2.0 → 6.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action-ribbon.js +1 -1
- package/action-ribbon.mjs +9 -9
- package/alert.js +1 -1
- package/alert.mjs +9 -9
- package/app-shell/app-shell.d.ts +2 -0
- package/app-shell/app-shell.d.ts.map +1 -1
- package/app-shell.js +7 -7
- package/app-shell.mjs +50 -42
- package/{base-element-d5abe37a.js → base-element.mjs} +1 -1
- package/button.js +1 -1
- package/button.mjs +14 -14
- package/card.js +1 -1
- package/card.mjs +3 -3
- package/check-list-item.js +1 -1
- package/check-list-item.mjs +18 -18
- package/checkbox.js +1 -1
- package/checkbox.mjs +16 -16
- package/circular-progress.js +1 -1
- package/circular-progress.mjs +7 -7
- package/{class-map-50b8edb4.js → class-map.mjs} +3 -3
- package/code-snippet.js +1 -1
- package/code-snippet.mjs +4 -4
- package/dialog.js +1 -1
- package/dialog.mjs +162 -14
- package/{dialog-85c21333.mjs → dialog2.mjs} +9 -9
- package/directive-helpers.mjs +5 -0
- package/drawer.js +1 -1
- package/drawer.mjs +10 -10
- package/empty-state.js +1 -1
- package/empty-state.mjs +4 -4
- package/event-options.mjs +5 -0
- package/{form-element-d4e7bcdb.js → form-element.mjs} +1 -1
- package/{foundation-3f55a9dc.js → foundation.mjs} +3 -3
- package/icon-button.js +1 -1
- package/icon-button.mjs +13 -13
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +16 -16
- package/icon-radio/icon-radio-toggle.d.ts +2 -3
- package/icon-radio/icon-radio-toggle.d.ts.map +1 -1
- package/icon-radio-toggle.js +8 -14
- package/icon-radio-toggle.mjs +45 -63
- package/icon.js +1 -1
- package/icon.mjs +3 -3
- package/if-defined.mjs +5 -0
- package/index.js +1 -1
- package/index.mjs +39 -39
- package/linear-progress.js +1 -1
- package/linear-progress.mjs +9 -9
- package/list/list-expansion.d.ts +3 -2
- package/list/list-expansion.d.ts.map +1 -1
- package/list/list-item.d.ts.map +1 -1
- package/list/list.d.ts +5 -0
- package/list/list.d.ts.map +1 -1
- package/list-expansion.js +8 -8
- package/list-expansion.mjs +45 -40
- package/list-item.js +1 -1
- package/list-item.mjs +9 -18
- package/list-item2.mjs +44 -0
- package/list.js +1 -1
- package/list.mjs +5 -20
- package/{list-28b77a61.mjs → list2.mjs} +36 -16
- package/menu.js +1 -1
- package/menu.mjs +16 -16
- package/{mwc-checkbox-base-435c1f1d.js → mwc-checkbox-base.mjs} +1 -1
- package/{mwc-checkbox.css-956e3d6c.js → mwc-checkbox.css.mjs} +1 -1
- package/{mwc-drawer-base-f44fcf34.js → mwc-drawer-base.mjs} +1 -1
- package/{mwc-icon-b96fb867.js → mwc-icon.mjs} +3 -3
- package/{mwc-line-ripple-directive-a97ce725.js → mwc-line-ripple-directive.mjs} +1 -1
- package/{mwc-list-base-7d5f7278.js → mwc-list-base.mjs} +1 -1
- package/{mwc-list-item-base-803b9771.js → mwc-list-item-base.mjs} +1 -1
- package/{mwc-list-item.css-401e2407.js → mwc-list-item.css.mjs} +1 -1
- package/{mwc-menu-base-ac49fe54.js → mwc-menu-base.mjs} +1 -1
- package/{mwc-radio-base-442d495a.js → mwc-radio-base.mjs} +1 -1
- package/{mwc-radio.css-388ad26d.js → mwc-radio.css.mjs} +1 -1
- package/{mwc-slider.css-48f02f1e.js → mwc-slider.css.mjs} +16 -16
- package/{mwc-tab-base-1a19b299.js → mwc-tab-base.mjs} +1 -1
- package/{mwc-top-app-bar-base-14e0a018.js → mwc-top-app-bar-base.mjs} +1 -1
- package/nav-list-item.js +1 -1
- package/nav-list-item.mjs +14 -14
- package/{observer-a096ab43.js → observer.mjs} +1 -1
- package/package.json +1 -1
- package/{property-074570d1.js → property.mjs} +1 -1
- package/{query-assigned-nodes-9ec0fa5f.js → query-assigned-nodes.mjs} +1 -1
- package/query.mjs +5 -0
- package/radio-list-item.js +1 -1
- package/radio-list-item.mjs +18 -18
- package/radio.js +1 -1
- package/radio.mjs +17 -17
- package/{ripple-handlers-2176f137.js → ripple-handlers.mjs} +7 -7
- package/select.js +1 -1
- package/select.mjs +20 -20
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +10 -10
- package/slider-range.js +1 -1
- package/slider-range.mjs +14 -14
- package/slider.js +1 -1
- package/slider.mjs +14 -14
- package/snackbar.js +1 -1
- package/snackbar.mjs +9 -9
- package/{state-949232e6.js → state.mjs} +1 -1
- package/status-header-item.js +1 -1
- package/status-header-item.mjs +2 -2
- package/status-header.js +1 -1
- package/status-header.mjs +3 -3
- package/{style-map-3056a771.js → style-map.mjs} +1 -1
- package/style.css +1 -1
- package/switch.js +1 -1
- package/switch.mjs +14 -14
- package/tab-bar.js +1 -1
- package/tab-bar.mjs +13 -13
- package/tab.js +1 -1
- package/tab.mjs +13 -13
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +3 -3
- package/textarea.js +1 -1
- package/textarea.mjs +15 -15
- package/textfield.js +1 -1
- package/textfield.mjs +132 -41
- package/{textfield-276b0ded.mjs → textfield2.mjs} +13 -13
- package/toolbar.js +1 -1
- package/toolbar.mjs +8 -8
- package/tooltip.js +1 -1
- package/tooltip.mjs +6 -6
- package/top-app-bar-fixed.js +1 -1
- package/top-app-bar-fixed.mjs +9 -9
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +6 -30
- package/{top-app-bar-a236c3bc.mjs → top-app-bar2.mjs} +1 -1
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +3 -3
- package/tree-list.js +1 -1
- package/tree-list.mjs +1 -1
- package/{tslib.es6-6b53b818.js → tslib.es6.mjs} +1 -1
- package/typography.js +1 -1
- package/typography.mjs +2 -2
- package/{utils-a8190a39.js → utils.mjs} +1 -1
- package/aria-property-fa2717fe.mjs +0 -41
- package/base-element-c3dc926e.mjs +0 -28
- package/class-map-08c84aeb.mjs +0 -62
- package/dialog-8ee07177.js +0 -162
- package/directive-helpers-725a181d.mjs +0 -11
- package/directive-helpers-fce8cf91.js +0 -5
- package/event-options-3937d997.mjs +0 -14
- package/event-options-7bc382d8.js +0 -5
- package/form-element-6dbd7afa.mjs +0 -50
- package/foundation-2334d146.mjs +0 -60
- package/foundation-c580100a.mjs +0 -152
- package/if-defined-639ed018.mjs +0 -10
- package/if-defined-cb12d481.js +0 -5
- package/inert.esm-359d4581.mjs +0 -640
- package/list-170cca53.js +0 -5
- package/list-item-26ddcc43.js +0 -8
- package/list-item-c1e72538.mjs +0 -43
- package/mwc-checkbox-base-10e977f2.mjs +0 -198
- package/mwc-checkbox.css-b7abc7fd.mjs +0 -10
- package/mwc-drawer-base-b2b772c3.mjs +0 -335
- package/mwc-icon-c7013880.mjs +0 -26
- package/mwc-line-ripple-directive-c3e1f04a.mjs +0 -653
- package/mwc-list-base-c0f8af1c.mjs +0 -840
- package/mwc-list-item-base-acef0223.mjs +0 -202
- package/mwc-list-item.css-b5481d96.mjs +0 -17
- package/mwc-menu-base-8970b43d.mjs +0 -1145
- package/mwc-radio-base-c29e6f42.mjs +0 -528
- package/mwc-radio.css-4694aa9c.mjs +0 -10
- package/mwc-slider.css-336f809b.mjs +0 -956
- package/mwc-tab-base-7fb3d339.mjs +0 -694
- package/mwc-top-app-bar-base-79c87e69.mjs +0 -380
- package/observer-be7b92e2.mjs +0 -32
- package/property-ca27685b.mjs +0 -20
- package/query-1e7846ea.mjs +0 -25
- package/query-2ba749b7.js +0 -5
- package/query-assigned-elements-514e5265.mjs +0 -615
- package/query-assigned-nodes-bea12e0c.mjs +0 -17
- package/ripple-handlers-227497d3.mjs +0 -761
- package/state-6f7e570d.mjs +0 -12
- package/style-map-2cb0fb63.mjs +0 -40
- package/textfield-507c6a06.js +0 -133
- package/top-app-bar-34e85527.js +0 -6
- package/tslib.es6-b5e819a6.mjs +0 -82
- package/utils-dc65fdc9.mjs +0 -52
- /package/{aria-property-849c8816.js → aria-property.mjs} +0 -0
- /package/{foundation-e830bd94.js → foundation2.mjs} +0 -0
- /package/{inert.esm-2cee6f2e.js → inert.esm.mjs} +0 -0
- /package/{query-assigned-elements-07e38f46.js → query-assigned-elements.mjs} +0 -0
package/dialog-8ee07177.js
DELETED
@@ -1,162 +0,0 @@
|
|
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;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import "./query-assigned-elements-514e5265.mjs";
|
2
|
-
/**
|
3
|
-
* @license
|
4
|
-
* Copyright 2020 Google LLC
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
6
|
-
*/
|
7
|
-
const r = (o) => o.strings === void 0, t = {}, e = (o, s = t) => o._$AH = s;
|
8
|
-
export {
|
9
|
-
r as e,
|
10
|
-
e as s
|
11
|
-
};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { o as e } from "./query-assigned-elements-514e5265.mjs";
|
2
|
-
/**
|
3
|
-
* @license
|
4
|
-
* Copyright 2017 Google LLC
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
6
|
-
*/
|
7
|
-
function n(o) {
|
8
|
-
return e({ finisher: (r, t) => {
|
9
|
-
Object.assign(r.prototype[t], o);
|
10
|
-
} });
|
11
|
-
}
|
12
|
-
export {
|
13
|
-
n as e
|
14
|
-
};
|
@@ -1,50 +0,0 @@
|
|
1
|
-
import { _ as r } from "./tslib.es6-b5e819a6.mjs";
|
2
|
-
import { e as a } from "./property-ca27685b.mjs";
|
3
|
-
import "./query-assigned-elements-514e5265.mjs";
|
4
|
-
import { B as d } from "./base-element-c3dc926e.mjs";
|
5
|
-
/**
|
6
|
-
* @license
|
7
|
-
* Copyright 2018 Google LLC
|
8
|
-
* SPDX-License-Identifier: Apache-2.0
|
9
|
-
*/
|
10
|
-
var o, e;
|
11
|
-
const l = (e = (o = window.ShadyDOM) === null || o === void 0 ? void 0 : o.inUse) !== null && e !== void 0 ? e : !1;
|
12
|
-
class n extends d {
|
13
|
-
constructor() {
|
14
|
-
super(...arguments), this.disabled = !1, this.containingForm = null, this.formDataListener = (t) => {
|
15
|
-
this.disabled || this.setFormData(t.formData);
|
16
|
-
};
|
17
|
-
}
|
18
|
-
findFormElement() {
|
19
|
-
if (!this.shadowRoot || l)
|
20
|
-
return null;
|
21
|
-
const s = this.getRootNode().querySelectorAll("form");
|
22
|
-
for (const i of Array.from(s))
|
23
|
-
if (i.contains(this))
|
24
|
-
return i;
|
25
|
-
return null;
|
26
|
-
}
|
27
|
-
connectedCallback() {
|
28
|
-
var t;
|
29
|
-
super.connectedCallback(), this.containingForm = this.findFormElement(), (t = this.containingForm) === null || t === void 0 || t.addEventListener("formdata", this.formDataListener);
|
30
|
-
}
|
31
|
-
disconnectedCallback() {
|
32
|
-
var t;
|
33
|
-
super.disconnectedCallback(), (t = this.containingForm) === null || t === void 0 || t.removeEventListener("formdata", this.formDataListener), this.containingForm = null;
|
34
|
-
}
|
35
|
-
click() {
|
36
|
-
this.formElement && !this.disabled && (this.formElement.focus(), this.formElement.click());
|
37
|
-
}
|
38
|
-
firstUpdated() {
|
39
|
-
super.firstUpdated(), this.shadowRoot && this.mdcRoot.addEventListener("change", (t) => {
|
40
|
-
this.dispatchEvent(new Event("change", t));
|
41
|
-
});
|
42
|
-
}
|
43
|
-
}
|
44
|
-
n.shadowRootOptions = { mode: "open", delegatesFocus: !0 };
|
45
|
-
r([
|
46
|
-
a({ type: Boolean })
|
47
|
-
], n.prototype, "disabled", void 0);
|
48
|
-
export {
|
49
|
-
n as F
|
50
|
-
};
|
package/foundation-2334d146.mjs
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
/**
|
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
|
-
*/
|
23
|
-
var n = (
|
24
|
-
/** @class */
|
25
|
-
function() {
|
26
|
-
function e(t) {
|
27
|
-
t === void 0 && (t = {}), this.adapter = t;
|
28
|
-
}
|
29
|
-
return Object.defineProperty(e, "cssClasses", {
|
30
|
-
get: function() {
|
31
|
-
return {};
|
32
|
-
},
|
33
|
-
enumerable: !1,
|
34
|
-
configurable: !0
|
35
|
-
}), Object.defineProperty(e, "strings", {
|
36
|
-
get: function() {
|
37
|
-
return {};
|
38
|
-
},
|
39
|
-
enumerable: !1,
|
40
|
-
configurable: !0
|
41
|
-
}), Object.defineProperty(e, "numbers", {
|
42
|
-
get: function() {
|
43
|
-
return {};
|
44
|
-
},
|
45
|
-
enumerable: !1,
|
46
|
-
configurable: !0
|
47
|
-
}), Object.defineProperty(e, "defaultAdapter", {
|
48
|
-
get: function() {
|
49
|
-
return {};
|
50
|
-
},
|
51
|
-
enumerable: !1,
|
52
|
-
configurable: !0
|
53
|
-
}), e.prototype.init = function() {
|
54
|
-
}, e.prototype.destroy = function() {
|
55
|
-
}, e;
|
56
|
-
}()
|
57
|
-
);
|
58
|
-
export {
|
59
|
-
n as M
|
60
|
-
};
|
package/foundation-c580100a.mjs
DELETED
@@ -1,152 +0,0 @@
|
|
1
|
-
import { a as f, b as d } from "./tslib.es6-b5e819a6.mjs";
|
2
|
-
import { M as m } from "./foundation-2334d146.mjs";
|
3
|
-
/**
|
4
|
-
* @license
|
5
|
-
* Copyright 2020 Google Inc.
|
6
|
-
*
|
7
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
-
* of this software and associated documentation files (the "Software"), to deal
|
9
|
-
* in the Software without restriction, including without limitation the rights
|
10
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
-
* copies of the Software, and to permit persons to whom the Software is
|
12
|
-
* furnished to do so, subject to the following conditions:
|
13
|
-
*
|
14
|
-
* The above copyright notice and this permission notice shall be included in
|
15
|
-
* all copies or substantial portions of the Software.
|
16
|
-
*
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
23
|
-
* THE SOFTWARE.
|
24
|
-
*/
|
25
|
-
var s = {
|
26
|
-
CLOSING: "mdc-banner--closing",
|
27
|
-
OPEN: "mdc-banner--open",
|
28
|
-
OPENING: "mdc-banner--opening"
|
29
|
-
}, c = {
|
30
|
-
BANNER_ANIMATION_CLOSE_TIME_MS: 250,
|
31
|
-
BANNER_ANIMATION_OPEN_TIME_MS: 300
|
32
|
-
}, C = {
|
33
|
-
CLOSED: "MDCBanner:closed",
|
34
|
-
CLOSING: "MDCBanner:closing",
|
35
|
-
OPENED: "MDCBanner:opened",
|
36
|
-
OPENING: "MDCBanner:opening",
|
37
|
-
ACTION_CLICKED: "MDCBanner:actionClicked"
|
38
|
-
}, l = {
|
39
|
-
CONTENT: ".mdc-banner__content",
|
40
|
-
PRIMARY_ACTION: ".mdc-banner__primary-action",
|
41
|
-
SECONDARY_ACTION: ".mdc-banner__secondary-action",
|
42
|
-
TEXT: ".mdc-banner__text"
|
43
|
-
}, a;
|
44
|
-
(function(e) {
|
45
|
-
e[e.PRIMARY = 0] = "PRIMARY", e[e.SECONDARY = 1] = "SECONDARY", e[e.UNSPECIFIED = 2] = "UNSPECIFIED";
|
46
|
-
})(a || (a = {}));
|
47
|
-
var u;
|
48
|
-
(function(e) {
|
49
|
-
e[e.PRIMARY = 0] = "PRIMARY", e[e.SECONDARY = 1] = "SECONDARY", e[e.UNKNOWN = 2] = "UNKNOWN";
|
50
|
-
})(u || (u = {}));
|
51
|
-
/**
|
52
|
-
* @license
|
53
|
-
* Copyright 2020 Google Inc.
|
54
|
-
*
|
55
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
56
|
-
* of this software and associated documentation files (the "Software"), to deal
|
57
|
-
* in the Software without restriction, including without limitation the rights
|
58
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
59
|
-
* copies of the Software, and to permit persons to whom the Software is
|
60
|
-
* furnished to do so, subject to the following conditions:
|
61
|
-
*
|
62
|
-
* The above copyright notice and this permission notice shall be included in
|
63
|
-
* all copies or substantial portions of the Software.
|
64
|
-
*
|
65
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
66
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
67
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
68
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
69
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
70
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
71
|
-
* THE SOFTWARE.
|
72
|
-
*/
|
73
|
-
var r = s.OPENING, p = s.OPEN, o = s.CLOSING, O = (
|
74
|
-
/** @class */
|
75
|
-
function(e) {
|
76
|
-
f(t, e);
|
77
|
-
function t(n) {
|
78
|
-
var i = e.call(this, d(d({}, t.defaultAdapter), n)) || this;
|
79
|
-
return i.isOpened = !1, i.animationFrame = 0, i.animationTimer = 0, i;
|
80
|
-
}
|
81
|
-
return Object.defineProperty(t, "defaultAdapter", {
|
82
|
-
get: function() {
|
83
|
-
return {
|
84
|
-
addClass: function() {
|
85
|
-
},
|
86
|
-
getContentHeight: function() {
|
87
|
-
return 0;
|
88
|
-
},
|
89
|
-
notifyClosed: function() {
|
90
|
-
},
|
91
|
-
notifyClosing: function() {
|
92
|
-
},
|
93
|
-
notifyOpened: function() {
|
94
|
-
},
|
95
|
-
notifyOpening: function() {
|
96
|
-
},
|
97
|
-
notifyActionClicked: function() {
|
98
|
-
},
|
99
|
-
releaseFocus: function() {
|
100
|
-
},
|
101
|
-
removeClass: function() {
|
102
|
-
},
|
103
|
-
setStyleProperty: function() {
|
104
|
-
},
|
105
|
-
trapFocus: function() {
|
106
|
-
}
|
107
|
-
};
|
108
|
-
},
|
109
|
-
enumerable: !1,
|
110
|
-
configurable: !0
|
111
|
-
}), t.prototype.destroy = function() {
|
112
|
-
cancelAnimationFrame(this.animationFrame), this.animationFrame = 0, clearTimeout(this.animationTimer), this.animationTimer = 0;
|
113
|
-
}, t.prototype.open = function() {
|
114
|
-
var n = this;
|
115
|
-
this.isOpened = !0, this.adapter.notifyOpening(), this.adapter.removeClass(o), this.adapter.addClass(r);
|
116
|
-
var i = this.adapter.getContentHeight();
|
117
|
-
this.animationFrame = requestAnimationFrame(function() {
|
118
|
-
n.adapter.addClass(p), n.adapter.setStyleProperty("height", i + "px"), n.animationTimer = setTimeout(function() {
|
119
|
-
n.handleAnimationTimerEnd(), n.adapter.trapFocus(), n.adapter.notifyOpened();
|
120
|
-
}, c.BANNER_ANIMATION_OPEN_TIME_MS);
|
121
|
-
});
|
122
|
-
}, t.prototype.close = function(n) {
|
123
|
-
var i = this;
|
124
|
-
this.isOpened && (cancelAnimationFrame(this.animationFrame), this.animationFrame = 0, this.isOpened = !1, this.adapter.notifyClosing(n), this.adapter.addClass(o), this.adapter.setStyleProperty("height", "0"), this.adapter.removeClass(p), this.adapter.removeClass(r), clearTimeout(this.animationTimer), this.animationTimer = setTimeout(function() {
|
125
|
-
i.adapter.releaseFocus(), i.handleAnimationTimerEnd(), i.adapter.notifyClosed(n);
|
126
|
-
}, c.BANNER_ANIMATION_CLOSE_TIME_MS));
|
127
|
-
}, t.prototype.isOpen = function() {
|
128
|
-
return this.isOpened;
|
129
|
-
}, t.prototype.handlePrimaryActionClick = function(n) {
|
130
|
-
n === void 0 && (n = !1), n ? this.adapter.notifyActionClicked(
|
131
|
-
0
|
132
|
-
/* PRIMARY */
|
133
|
-
) : this.close(a.PRIMARY);
|
134
|
-
}, t.prototype.handleSecondaryActionClick = function(n) {
|
135
|
-
n === void 0 && (n = !1), n ? this.adapter.notifyActionClicked(
|
136
|
-
1
|
137
|
-
/* SECONDARY */
|
138
|
-
) : this.close(a.SECONDARY);
|
139
|
-
}, t.prototype.layout = function() {
|
140
|
-
var n = this.adapter.getContentHeight();
|
141
|
-
this.adapter.setStyleProperty("height", n + "px");
|
142
|
-
}, t.prototype.handleAnimationTimerEnd = function() {
|
143
|
-
this.animationTimer = 0, this.adapter.removeClass(r), this.adapter.removeClass(o);
|
144
|
-
}, t;
|
145
|
-
}(m)
|
146
|
-
);
|
147
|
-
export {
|
148
|
-
a as C,
|
149
|
-
O as M,
|
150
|
-
C as e,
|
151
|
-
l as s
|
152
|
-
};
|
package/if-defined-639ed018.mjs
DELETED