@limetech/lime-elements 37.1.0-next.29 → 37.1.0-next.30

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.
Files changed (66) hide show
  1. package/dist/cjs/limel-breadcrumbs.cjs.entry.js +1 -1
  2. package/dist/cjs/limel-breadcrumbs.cjs.entry.js.map +1 -1
  3. package/dist/cjs/limel-dialog.cjs.entry.js +2 -2
  4. package/dist/cjs/limel-dialog.cjs.entry.js.map +1 -1
  5. package/dist/cjs/limel-icon-button.cjs.entry.js +2 -2
  6. package/dist/cjs/limel-icon-button.cjs.entry.js.map +1 -1
  7. package/dist/cjs/limel-info-tile.cjs.entry.js +1 -1
  8. package/dist/cjs/limel-info-tile.cjs.entry.js.map +1 -1
  9. package/dist/collection/components/action-bar/action-bar-item/action-bar-item.css +27 -0
  10. package/dist/collection/components/badge/badge.css +27 -0
  11. package/dist/collection/components/breadcrumbs/breadcrumbs.css +40 -2
  12. package/dist/collection/components/button/button.css +27 -0
  13. package/dist/collection/components/button-group/button-group.css +27 -0
  14. package/dist/collection/components/chip-set/chip-set.css +27 -0
  15. package/dist/collection/components/circular-progress/circular-progress.css +27 -0
  16. package/dist/collection/components/code-editor/code-editor.css +27 -0
  17. package/dist/collection/components/collapsible-section/collapsible-section.css +27 -0
  18. package/dist/collection/components/color-picker/color-picker-palette.css +54 -0
  19. package/dist/collection/components/color-picker/color-picker.css +27 -0
  20. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +27 -0
  21. package/dist/collection/components/dialog/dialog.css +54 -15
  22. package/dist/collection/components/dialog/dialog.js +1 -1
  23. package/dist/collection/components/dialog/dialog.js.map +1 -1
  24. package/dist/collection/components/dock/dock-button/dock-button.css +27 -0
  25. package/dist/collection/components/dock/dock.css +27 -0
  26. package/dist/collection/components/form/form.css +27 -0
  27. package/dist/collection/components/header/header.css +27 -0
  28. package/dist/collection/components/icon-button/icon-button.css +38 -237
  29. package/dist/collection/components/icon-button/icon-button.js +1 -1
  30. package/dist/collection/components/icon-button/icon-button.js.map +1 -1
  31. package/dist/collection/components/info-tile/info-tile.css +27 -0
  32. package/dist/collection/components/input-field/input-field.css +27 -0
  33. package/dist/collection/components/list/list.css +54 -0
  34. package/dist/collection/components/menu-list/menu-list.css +54 -0
  35. package/dist/collection/components/popover-surface/popover-surface.css +27 -0
  36. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.css +27 -0
  37. package/dist/collection/components/select/select.css +27 -0
  38. package/dist/collection/components/shortcut/shortcut.css +27 -0
  39. package/dist/collection/components/split-button/split-button.css +27 -0
  40. package/dist/collection/components/table/table.css +108 -0
  41. package/dist/collection/style/mixins.scss +61 -0
  42. package/dist/esm/limel-breadcrumbs.entry.js +1 -1
  43. package/dist/esm/limel-breadcrumbs.entry.js.map +1 -1
  44. package/dist/esm/limel-dialog.entry.js +2 -2
  45. package/dist/esm/limel-dialog.entry.js.map +1 -1
  46. package/dist/esm/limel-icon-button.entry.js +2 -2
  47. package/dist/esm/limel-icon-button.entry.js.map +1 -1
  48. package/dist/esm/limel-info-tile.entry.js +1 -1
  49. package/dist/esm/limel-info-tile.entry.js.map +1 -1
  50. package/dist/lime-elements/lime-elements.esm.js +1 -1
  51. package/dist/lime-elements/p-22031b5b.entry.js +2 -0
  52. package/dist/lime-elements/p-22031b5b.entry.js.map +1 -0
  53. package/dist/lime-elements/p-6933a99c.entry.js +2 -0
  54. package/dist/lime-elements/p-6933a99c.entry.js.map +1 -0
  55. package/dist/lime-elements/p-749acb43.entry.js +2 -0
  56. package/dist/lime-elements/{p-b70f517e.entry.js.map → p-749acb43.entry.js.map} +1 -1
  57. package/dist/lime-elements/{p-9f5250a0.entry.js → p-9eacc71c.entry.js} +7 -7
  58. package/dist/lime-elements/{p-9f5250a0.entry.js.map → p-9eacc71c.entry.js.map} +1 -1
  59. package/dist/lime-elements/style/mixins.scss +61 -0
  60. package/dist/scss/mixins.scss +61 -0
  61. package/package.json +2 -2
  62. package/dist/lime-elements/p-291abad1.entry.js +0 -2
  63. package/dist/lime-elements/p-291abad1.entry.js.map +0 -1
  64. package/dist/lime-elements/p-b70f517e.entry.js +0 -2
  65. package/dist/lime-elements/p-c3e428ff.entry.js +0 -2
  66. package/dist/lime-elements/p-c3e428ff.entry.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import{r as i,c as t,h as o,g as e}from"./p-3075aa67.js";import{d as n}from"./p-c70b1ea3.js";import{c as a}from"./p-3ccdc4a3.js";import{M as r,a as d}from"./p-48d4ef20.js";import{m as c,c as l}from"./p-dcc97cc2.js";import{M as s}from"./p-cbc43682.js";import{A as m}from"./p-48105d44.js";import{i as g}from"./p-ade76f1d.js";import"./p-eda23c05.js";import"./p-c93050d6.js";import"./p-4c3358cb.js";import"./p-0b1af919.js";import"./p-858c6b82.js";import"./p-9acf7b5d.js";
1
+ import{r as i,c as t,h as e,g as o}from"./p-3075aa67.js";import{d as n}from"./p-c70b1ea3.js";import{c as a}from"./p-3ccdc4a3.js";import{M as d,a as r}from"./p-48d4ef20.js";import{m as c,c as l}from"./p-dcc97cc2.js";import{M as s}from"./p-cbc43682.js";import{A as m}from"./p-48105d44.js";import{i as g}from"./p-ade76f1d.js";import"./p-eda23c05.js";import"./p-c93050d6.js";import"./p-4c3358cb.js";import"./p-0b1af919.js";import"./p-858c6b82.js";import"./p-9acf7b5d.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2016 Google Inc.
@@ -20,7 +20,7 @@ import{r as i,c as t,h as o,g as e}from"./p-3075aa67.js";import{d as n}from"./p-
20
20
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
22
  * THE SOFTWARE.
23
- */function h(i,t,o){return t(i,{initialFocusEl:o})}function u(i){return i?i.scrollHeight>i.offsetHeight:false}function f(i){return i?i.scrollTop===0:false}function p(i){return i?Math.ceil(i.scrollHeight-i.scrollTop)===i.clientHeight:false}function _(i){var t=new Set;[].forEach.call(i,(function(i){return t.add(i.offsetTop)}));return t.size>1}
23
+ */function h(i,t,e){return t(i,{initialFocusEl:e})}function u(i){return i?i.scrollHeight>i.offsetHeight:false}function f(i){return i?i.scrollTop===0:false}function p(i){return i?Math.ceil(i.scrollHeight-i.scrollTop)===i.clientHeight:false}function _(i){var t=new Set;[].forEach.call(i,(function(i){return t.add(i.offsetTop)}));return t.size>1}
24
24
  /*! *****************************************************************************
25
25
  Copyright (c) Microsoft Corporation.
26
26
 
@@ -34,7 +34,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
34
34
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
35
35
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
36
36
  PERFORMANCE OF THIS SOFTWARE.
37
- ***************************************************************************** */var b=function(i,t){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))i[o]=t[o]};return b(i,t)};function x(i,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");b(i,t);function o(){this.constructor=i}i.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}var v=function(){v=Object.assign||function i(t){for(var o,e=1,n=arguments.length;e<n;e++){o=arguments[e];for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a))t[a]=o[a]}return t};return v.apply(this,arguments)};function y(i){var t=typeof Symbol==="function"&&Symbol.iterator,o=t&&i[t],e=0;if(o)return o.call(i);if(i&&typeof i.length==="number")return{next:function(){if(i&&e>=i.length)i=void 0;return{value:i&&i[e++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}
37
+ ***************************************************************************** */var b=function(i,t){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))i[e]=t[e]};return b(i,t)};function x(i,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");b(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var v=function(){v=Object.assign||function i(t){for(var e,o=1,n=arguments.length;o<n;o++){e=arguments[o];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a))t[a]=e[a]}return t};return v.apply(this,arguments)};function y(i){var t=typeof Symbol==="function"&&Symbol.iterator,e=t&&i[t],o=0;if(e)return e.call(i);if(i&&typeof i.length==="number")return{next:function(){if(i&&o>=i.length)i=void 0;return{value:i&&i[o++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}
38
38
  /**
39
39
  * @license
40
40
  * Copyright 2020 Google Inc.
@@ -56,7 +56,7 @@ PERFORMANCE OF THIS SOFTWARE.
56
56
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
57
57
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
58
58
  * THE SOFTWARE.
59
- */var w="mdc-dom-focus-sentinel";var E=function(){function i(i,t){if(t===void 0){t={}}this.root=i;this.options=t;this.elFocusedBeforeTrapFocus=null}i.prototype.trapFocus=function(){var i=this.getFocusableElements(this.root);if(i.length===0){throw new Error("FocusTrap: Element must have at least one focusable child.")}this.elFocusedBeforeTrapFocus=document.activeElement instanceof HTMLElement?document.activeElement:null;this.wrapTabFocus(this.root);if(!this.options.skipInitialFocus){this.focusInitialElement(i,this.options.initialFocusEl)}};i.prototype.releaseFocus=function(){[].slice.call(this.root.querySelectorAll("."+w)).forEach((function(i){i.parentElement.removeChild(i)}));if(!this.options.skipRestoreFocus&&this.elFocusedBeforeTrapFocus){this.elFocusedBeforeTrapFocus.focus()}};i.prototype.wrapTabFocus=function(i){var t=this;var o=this.createSentinel();var e=this.createSentinel();o.addEventListener("focus",(function(){var o=t.getFocusableElements(i);if(o.length>0){o[o.length-1].focus()}}));e.addEventListener("focus",(function(){var o=t.getFocusableElements(i);if(o.length>0){o[0].focus()}}));i.insertBefore(o,i.children[0]);i.appendChild(e)};i.prototype.focusInitialElement=function(i,t){var o=0;if(t){o=Math.max(i.indexOf(t),0)}i[o].focus()};i.prototype.getFocusableElements=function(i){var t=[].slice.call(i.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button"));return t.filter((function(i){var t=i.getAttribute("aria-disabled")==="true"||i.getAttribute("disabled")!=null||i.getAttribute("hidden")!=null||i.getAttribute("aria-hidden")==="true";var o=i.tabIndex>=0&&i.getBoundingClientRect().width>0&&!i.classList.contains(w)&&!t;var e=false;if(o){var n=getComputedStyle(i);e=n.display==="none"||n.visibility==="hidden"}return o&&!e}))};i.prototype.createSentinel=function(){var i=document.createElement("div");i.setAttribute("tabindex","0");i.setAttribute("aria-hidden","true");i.classList.add(w);return i};return i}();
59
+ */var w="mdc-dom-focus-sentinel";var E=function(){function i(i,t){if(t===void 0){t={}}this.root=i;this.options=t;this.elFocusedBeforeTrapFocus=null}i.prototype.trapFocus=function(){var i=this.getFocusableElements(this.root);if(i.length===0){throw new Error("FocusTrap: Element must have at least one focusable child.")}this.elFocusedBeforeTrapFocus=document.activeElement instanceof HTMLElement?document.activeElement:null;this.wrapTabFocus(this.root);if(!this.options.skipInitialFocus){this.focusInitialElement(i,this.options.initialFocusEl)}};i.prototype.releaseFocus=function(){[].slice.call(this.root.querySelectorAll("."+w)).forEach((function(i){i.parentElement.removeChild(i)}));if(!this.options.skipRestoreFocus&&this.elFocusedBeforeTrapFocus){this.elFocusedBeforeTrapFocus.focus()}};i.prototype.wrapTabFocus=function(i){var t=this;var e=this.createSentinel();var o=this.createSentinel();e.addEventListener("focus",(function(){var e=t.getFocusableElements(i);if(e.length>0){e[e.length-1].focus()}}));o.addEventListener("focus",(function(){var e=t.getFocusableElements(i);if(e.length>0){e[0].focus()}}));i.insertBefore(e,i.children[0]);i.appendChild(o)};i.prototype.focusInitialElement=function(i,t){var e=0;if(t){e=Math.max(i.indexOf(t),0)}i[e].focus()};i.prototype.getFocusableElements=function(i){var t=[].slice.call(i.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button"));return t.filter((function(i){var t=i.getAttribute("aria-disabled")==="true"||i.getAttribute("disabled")!=null||i.getAttribute("hidden")!=null||i.getAttribute("aria-hidden")==="true";var e=i.tabIndex>=0&&i.getBoundingClientRect().width>0&&!i.classList.contains(w)&&!t;var o=false;if(e){var n=getComputedStyle(i);o=n.display==="none"||n.visibility==="hidden"}return e&&!o}))};i.prototype.createSentinel=function(){var i=document.createElement("div");i.setAttribute("tabindex","0");i.setAttribute("aria-hidden","true");i.classList.add(w);return i};return i}();
60
60
  /**
61
61
  * @license
62
62
  * Copyright 2016 Google Inc.
@@ -100,7 +100,7 @@ PERFORMANCE OF THIS SOFTWARE.
100
100
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
101
101
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
102
102
  * THE SOFTWARE.
103
- */var O;(function(i){i["POLL_SCROLL_POS"]="poll_scroll_position";i["POLL_LAYOUT_CHANGE"]="poll_layout_change"})(O||(O={}));var S=function(i){x(t,i);function t(o){var e=i.call(this,v(v({},t.defaultAdapter),o))||this;e.dialogOpen=false;e.isFullscreen=false;e.animationFrame=0;e.animationTimer=0;e.escapeKeyAction=k.CLOSE_ACTION;e.scrimClickAction=k.CLOSE_ACTION;e.autoStackButtons=true;e.areButtonsStacked=false;e.suppressDefaultPressSelector=k.SUPPRESS_DEFAULT_PRESS_SELECTOR;e.animFrame=new m;e.contentScrollHandler=function(){e.handleScrollEvent()};e.windowResizeHandler=function(){e.layout()};e.windowOrientationChangeHandler=function(){e.layout()};return e}Object.defineProperty(t,"cssClasses",{get:function(){return C},enumerable:false,configurable:true});Object.defineProperty(t,"strings",{get:function(){return k},enumerable:false,configurable:true});Object.defineProperty(t,"numbers",{get:function(){return T},enumerable:false,configurable:true});Object.defineProperty(t,"defaultAdapter",{get:function(){return{addBodyClass:function(){return undefined},addClass:function(){return undefined},areButtonsStacked:function(){return false},clickDefaultButton:function(){return undefined},eventTargetMatches:function(){return false},getActionFromEvent:function(){return""},getInitialFocusEl:function(){return null},hasClass:function(){return false},isContentScrollable:function(){return false},notifyClosed:function(){return undefined},notifyClosing:function(){return undefined},notifyOpened:function(){return undefined},notifyOpening:function(){return undefined},releaseFocus:function(){return undefined},removeBodyClass:function(){return undefined},removeClass:function(){return undefined},reverseButtons:function(){return undefined},trapFocus:function(){return undefined},registerContentEventHandler:function(){return undefined},deregisterContentEventHandler:function(){return undefined},isScrollableContentAtTop:function(){return false},isScrollableContentAtBottom:function(){return false},registerWindowEventHandler:function(){return undefined},deregisterWindowEventHandler:function(){return undefined}}},enumerable:false,configurable:true});t.prototype.init=function(){if(this.adapter.hasClass(C.STACKED)){this.setAutoStackButtons(false)}this.isFullscreen=this.adapter.hasClass(C.FULLSCREEN)};t.prototype.destroy=function(){if(this.animationTimer){clearTimeout(this.animationTimer);this.handleAnimationTimerEnd()}if(this.isFullscreen){this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler)}this.animFrame.cancelAll();this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler);this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler)};t.prototype.open=function(i){var t=this;this.dialogOpen=true;this.adapter.notifyOpening();this.adapter.addClass(C.OPENING);if(this.isFullscreen){this.adapter.registerContentEventHandler("scroll",this.contentScrollHandler)}if(i&&i.isAboveFullscreenDialog){this.adapter.addClass(C.SCRIM_HIDDEN)}this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler);this.adapter.registerWindowEventHandler("orientationchange",this.windowOrientationChangeHandler);this.runNextAnimationFrame((function(){t.adapter.addClass(C.OPEN);t.adapter.addBodyClass(C.SCROLL_LOCK);t.layout();t.animationTimer=setTimeout((function(){t.handleAnimationTimerEnd();t.adapter.trapFocus(t.adapter.getInitialFocusEl());t.adapter.notifyOpened()}),T.DIALOG_ANIMATION_OPEN_TIME_MS)}))};t.prototype.close=function(i){var t=this;if(i===void 0){i=""}if(!this.dialogOpen){return}this.dialogOpen=false;this.adapter.notifyClosing(i);this.adapter.addClass(C.CLOSING);this.adapter.removeClass(C.OPEN);this.adapter.removeBodyClass(C.SCROLL_LOCK);if(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(){t.adapter.releaseFocus();t.handleAnimationTimerEnd();t.adapter.notifyClosed(i)}),T.DIALOG_ANIMATION_CLOSE_TIME_MS)};t.prototype.showSurfaceScrim=function(){var i=this;this.adapter.addClass(C.SURFACE_SCRIM_SHOWING);this.runNextAnimationFrame((function(){i.adapter.addClass(C.SURFACE_SCRIM_SHOWN)}))};t.prototype.hideSurfaceScrim=function(){this.adapter.removeClass(C.SURFACE_SCRIM_SHOWN);this.adapter.addClass(C.SURFACE_SCRIM_HIDING)};t.prototype.handleSurfaceScrimTransitionEnd=function(){this.adapter.removeClass(C.SURFACE_SCRIM_HIDING);this.adapter.removeClass(C.SURFACE_SCRIM_SHOWING)};t.prototype.isOpen=function(){return this.dialogOpen};t.prototype.getEscapeKeyAction=function(){return this.escapeKeyAction};t.prototype.setEscapeKeyAction=function(i){this.escapeKeyAction=i};t.prototype.getScrimClickAction=function(){return this.scrimClickAction};t.prototype.setScrimClickAction=function(i){this.scrimClickAction=i};t.prototype.getAutoStackButtons=function(){return this.autoStackButtons};t.prototype.setAutoStackButtons=function(i){this.autoStackButtons=i};t.prototype.getSuppressDefaultPressSelector=function(){return this.suppressDefaultPressSelector};t.prototype.setSuppressDefaultPressSelector=function(i){this.suppressDefaultPressSelector=i};t.prototype.layout=function(){var i=this;this.animFrame.request(O.POLL_LAYOUT_CHANGE,(function(){i.layoutInternal()}))};t.prototype.handleClick=function(i){var t=this.adapter.eventTargetMatches(i.target,k.SCRIM_SELECTOR);if(t&&this.scrimClickAction!==""){this.close(this.scrimClickAction)}else{var o=this.adapter.getActionFromEvent(i);if(o){this.close(o)}}};t.prototype.handleKeydown=function(i){var t=i.key==="Enter"||i.keyCode===13;if(!t){return}var o=this.adapter.getActionFromEvent(i);if(o){return}var e=i.composedPath?i.composedPath()[0]:i.target;var n=this.suppressDefaultPressSelector?!this.adapter.eventTargetMatches(e,this.suppressDefaultPressSelector):true;if(t&&n){this.adapter.clickDefaultButton()}};t.prototype.handleDocumentKeydown=function(i){var t=i.key==="Escape"||i.keyCode===27;if(t&&this.escapeKeyAction!==""){this.close(this.escapeKeyAction)}};t.prototype.handleScrollEvent=function(){var i=this;this.animFrame.request(O.POLL_SCROLL_POS,(function(){i.toggleScrollDividerHeader();i.toggleScrollDividerFooter()}))};t.prototype.layoutInternal=function(){if(this.autoStackButtons){this.detectStackedButtons()}this.toggleScrollableClasses()};t.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0;this.adapter.removeClass(C.OPENING);this.adapter.removeClass(C.CLOSING)};t.prototype.runNextAnimationFrame=function(i){var t=this;cancelAnimationFrame(this.animationFrame);this.animationFrame=requestAnimationFrame((function(){t.animationFrame=0;clearTimeout(t.animationTimer);t.animationTimer=setTimeout(i,0)}))};t.prototype.detectStackedButtons=function(){this.adapter.removeClass(C.STACKED);var i=this.adapter.areButtonsStacked();if(i){this.adapter.addClass(C.STACKED)}if(i!==this.areButtonsStacked){this.adapter.reverseButtons();this.areButtonsStacked=i}};t.prototype.toggleScrollableClasses=function(){this.adapter.removeClass(C.SCROLLABLE);if(this.adapter.isContentScrollable()){this.adapter.addClass(C.SCROLLABLE);if(this.isFullscreen){this.toggleScrollDividerHeader();this.toggleScrollDividerFooter()}}};t.prototype.toggleScrollDividerHeader=function(){if(!this.adapter.isScrollableContentAtTop()){this.adapter.addClass(C.SCROLL_DIVIDER_HEADER)}else if(this.adapter.hasClass(C.SCROLL_DIVIDER_HEADER)){this.adapter.removeClass(C.SCROLL_DIVIDER_HEADER)}};t.prototype.toggleScrollDividerFooter=function(){if(!this.adapter.isScrollableContentAtBottom()){this.adapter.addClass(C.SCROLL_DIVIDER_FOOTER)}else if(this.adapter.hasClass(C.SCROLL_DIVIDER_FOOTER)){this.adapter.removeClass(C.SCROLL_DIVIDER_FOOTER)}};return t}(r);
103
+ */var O;(function(i){i["POLL_SCROLL_POS"]="poll_scroll_position";i["POLL_LAYOUT_CHANGE"]="poll_layout_change"})(O||(O={}));var S=function(i){x(t,i);function t(e){var o=i.call(this,v(v({},t.defaultAdapter),e))||this;o.dialogOpen=false;o.isFullscreen=false;o.animationFrame=0;o.animationTimer=0;o.escapeKeyAction=k.CLOSE_ACTION;o.scrimClickAction=k.CLOSE_ACTION;o.autoStackButtons=true;o.areButtonsStacked=false;o.suppressDefaultPressSelector=k.SUPPRESS_DEFAULT_PRESS_SELECTOR;o.animFrame=new m;o.contentScrollHandler=function(){o.handleScrollEvent()};o.windowResizeHandler=function(){o.layout()};o.windowOrientationChangeHandler=function(){o.layout()};return o}Object.defineProperty(t,"cssClasses",{get:function(){return C},enumerable:false,configurable:true});Object.defineProperty(t,"strings",{get:function(){return k},enumerable:false,configurable:true});Object.defineProperty(t,"numbers",{get:function(){return T},enumerable:false,configurable:true});Object.defineProperty(t,"defaultAdapter",{get:function(){return{addBodyClass:function(){return undefined},addClass:function(){return undefined},areButtonsStacked:function(){return false},clickDefaultButton:function(){return undefined},eventTargetMatches:function(){return false},getActionFromEvent:function(){return""},getInitialFocusEl:function(){return null},hasClass:function(){return false},isContentScrollable:function(){return false},notifyClosed:function(){return undefined},notifyClosing:function(){return undefined},notifyOpened:function(){return undefined},notifyOpening:function(){return undefined},releaseFocus:function(){return undefined},removeBodyClass:function(){return undefined},removeClass:function(){return undefined},reverseButtons:function(){return undefined},trapFocus:function(){return undefined},registerContentEventHandler:function(){return undefined},deregisterContentEventHandler:function(){return undefined},isScrollableContentAtTop:function(){return false},isScrollableContentAtBottom:function(){return false},registerWindowEventHandler:function(){return undefined},deregisterWindowEventHandler:function(){return undefined}}},enumerable:false,configurable:true});t.prototype.init=function(){if(this.adapter.hasClass(C.STACKED)){this.setAutoStackButtons(false)}this.isFullscreen=this.adapter.hasClass(C.FULLSCREEN)};t.prototype.destroy=function(){if(this.animationTimer){clearTimeout(this.animationTimer);this.handleAnimationTimerEnd()}if(this.isFullscreen){this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler)}this.animFrame.cancelAll();this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler);this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler)};t.prototype.open=function(i){var t=this;this.dialogOpen=true;this.adapter.notifyOpening();this.adapter.addClass(C.OPENING);if(this.isFullscreen){this.adapter.registerContentEventHandler("scroll",this.contentScrollHandler)}if(i&&i.isAboveFullscreenDialog){this.adapter.addClass(C.SCRIM_HIDDEN)}this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler);this.adapter.registerWindowEventHandler("orientationchange",this.windowOrientationChangeHandler);this.runNextAnimationFrame((function(){t.adapter.addClass(C.OPEN);t.adapter.addBodyClass(C.SCROLL_LOCK);t.layout();t.animationTimer=setTimeout((function(){t.handleAnimationTimerEnd();t.adapter.trapFocus(t.adapter.getInitialFocusEl());t.adapter.notifyOpened()}),T.DIALOG_ANIMATION_OPEN_TIME_MS)}))};t.prototype.close=function(i){var t=this;if(i===void 0){i=""}if(!this.dialogOpen){return}this.dialogOpen=false;this.adapter.notifyClosing(i);this.adapter.addClass(C.CLOSING);this.adapter.removeClass(C.OPEN);this.adapter.removeBodyClass(C.SCROLL_LOCK);if(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(){t.adapter.releaseFocus();t.handleAnimationTimerEnd();t.adapter.notifyClosed(i)}),T.DIALOG_ANIMATION_CLOSE_TIME_MS)};t.prototype.showSurfaceScrim=function(){var i=this;this.adapter.addClass(C.SURFACE_SCRIM_SHOWING);this.runNextAnimationFrame((function(){i.adapter.addClass(C.SURFACE_SCRIM_SHOWN)}))};t.prototype.hideSurfaceScrim=function(){this.adapter.removeClass(C.SURFACE_SCRIM_SHOWN);this.adapter.addClass(C.SURFACE_SCRIM_HIDING)};t.prototype.handleSurfaceScrimTransitionEnd=function(){this.adapter.removeClass(C.SURFACE_SCRIM_HIDING);this.adapter.removeClass(C.SURFACE_SCRIM_SHOWING)};t.prototype.isOpen=function(){return this.dialogOpen};t.prototype.getEscapeKeyAction=function(){return this.escapeKeyAction};t.prototype.setEscapeKeyAction=function(i){this.escapeKeyAction=i};t.prototype.getScrimClickAction=function(){return this.scrimClickAction};t.prototype.setScrimClickAction=function(i){this.scrimClickAction=i};t.prototype.getAutoStackButtons=function(){return this.autoStackButtons};t.prototype.setAutoStackButtons=function(i){this.autoStackButtons=i};t.prototype.getSuppressDefaultPressSelector=function(){return this.suppressDefaultPressSelector};t.prototype.setSuppressDefaultPressSelector=function(i){this.suppressDefaultPressSelector=i};t.prototype.layout=function(){var i=this;this.animFrame.request(O.POLL_LAYOUT_CHANGE,(function(){i.layoutInternal()}))};t.prototype.handleClick=function(i){var t=this.adapter.eventTargetMatches(i.target,k.SCRIM_SELECTOR);if(t&&this.scrimClickAction!==""){this.close(this.scrimClickAction)}else{var e=this.adapter.getActionFromEvent(i);if(e){this.close(e)}}};t.prototype.handleKeydown=function(i){var t=i.key==="Enter"||i.keyCode===13;if(!t){return}var e=this.adapter.getActionFromEvent(i);if(e){return}var o=i.composedPath?i.composedPath()[0]:i.target;var n=this.suppressDefaultPressSelector?!this.adapter.eventTargetMatches(o,this.suppressDefaultPressSelector):true;if(t&&n){this.adapter.clickDefaultButton()}};t.prototype.handleDocumentKeydown=function(i){var t=i.key==="Escape"||i.keyCode===27;if(t&&this.escapeKeyAction!==""){this.close(this.escapeKeyAction)}};t.prototype.handleScrollEvent=function(){var i=this;this.animFrame.request(O.POLL_SCROLL_POS,(function(){i.toggleScrollDividerHeader();i.toggleScrollDividerFooter()}))};t.prototype.layoutInternal=function(){if(this.autoStackButtons){this.detectStackedButtons()}this.toggleScrollableClasses()};t.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0;this.adapter.removeClass(C.OPENING);this.adapter.removeClass(C.CLOSING)};t.prototype.runNextAnimationFrame=function(i){var t=this;cancelAnimationFrame(this.animationFrame);this.animationFrame=requestAnimationFrame((function(){t.animationFrame=0;clearTimeout(t.animationTimer);t.animationTimer=setTimeout(i,0)}))};t.prototype.detectStackedButtons=function(){this.adapter.removeClass(C.STACKED);var i=this.adapter.areButtonsStacked();if(i){this.adapter.addClass(C.STACKED)}if(i!==this.areButtonsStacked){this.adapter.reverseButtons();this.areButtonsStacked=i}};t.prototype.toggleScrollableClasses=function(){this.adapter.removeClass(C.SCROLLABLE);if(this.adapter.isContentScrollable()){this.adapter.addClass(C.SCROLLABLE);if(this.isFullscreen){this.toggleScrollDividerHeader();this.toggleScrollDividerFooter()}}};t.prototype.toggleScrollDividerHeader=function(){if(!this.adapter.isScrollableContentAtTop()){this.adapter.addClass(C.SCROLL_DIVIDER_HEADER)}else if(this.adapter.hasClass(C.SCROLL_DIVIDER_HEADER)){this.adapter.removeClass(C.SCROLL_DIVIDER_HEADER)}};t.prototype.toggleScrollDividerFooter=function(){if(!this.adapter.isScrollableContentAtBottom()){this.adapter.addClass(C.SCROLL_DIVIDER_FOOTER)}else if(this.adapter.hasClass(C.SCROLL_DIVIDER_FOOTER)){this.adapter.removeClass(C.SCROLL_DIVIDER_FOOTER)}};return t}(d);
104
104
  /**
105
105
  * @license
106
106
  * Copyright 2017 Google Inc.
@@ -122,5 +122,5 @@ PERFORMANCE OF THIS SOFTWARE.
122
122
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
123
123
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
124
124
  * THE SOFTWARE.
125
- */var A=S.strings;var D=function(i){x(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(t.prototype,"isOpen",{get:function(){return this.foundation.isOpen()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"escapeKeyAction",{get:function(){return this.foundation.getEscapeKeyAction()},set:function(i){this.foundation.setEscapeKeyAction(i)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"scrimClickAction",{get:function(){return this.foundation.getScrimClickAction()},set:function(i){this.foundation.setScrimClickAction(i)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"autoStackButtons",{get:function(){return this.foundation.getAutoStackButtons()},set:function(i){this.foundation.setAutoStackButtons(i)},enumerable:false,configurable:true});t.attachTo=function(i){return new t(i)};t.prototype.initialize=function(i){var t,o;if(i===void 0){i=function(i,t){return new E(i,t)}}var e=this.root.querySelector(A.CONTAINER_SELECTOR);if(!e){throw new Error("Dialog component requires a "+A.CONTAINER_SELECTOR+" container element")}this.container=e;this.content=this.root.querySelector(A.CONTENT_SELECTOR);this.buttons=[].slice.call(this.root.querySelectorAll(A.BUTTON_SELECTOR));this.defaultButton=this.root.querySelector("["+A.BUTTON_DEFAULT_ATTRIBUTE+"]");this.focusTrapFactory=i;this.buttonRipples=[];try{for(var n=y(this.buttons),a=n.next();!a.done;a=n.next()){var r=a.value;this.buttonRipples.push(new s(r))}}catch(i){t={error:i}}finally{try{if(a&&!a.done&&(o=n.return))o.call(n)}finally{if(t)throw t.error}}};t.prototype.initialSyncWithDOM=function(){var i=this;this.focusTrap=h(this.container,this.focusTrapFactory,this.getInitialFocusEl()||undefined);this.handleClick=this.foundation.handleClick.bind(this.foundation);this.handleKeydown=this.foundation.handleKeydown.bind(this.foundation);this.handleDocumentKeydown=this.foundation.handleDocumentKeydown.bind(this.foundation);this.handleOpening=function(){document.addEventListener("keydown",i.handleDocumentKeydown)};this.handleClosing=function(){document.removeEventListener("keydown",i.handleDocumentKeydown)};this.listen("click",this.handleClick);this.listen("keydown",this.handleKeydown);this.listen(A.OPENING_EVENT,this.handleOpening);this.listen(A.CLOSING_EVENT,this.handleClosing)};t.prototype.destroy=function(){this.unlisten("click",this.handleClick);this.unlisten("keydown",this.handleKeydown);this.unlisten(A.OPENING_EVENT,this.handleOpening);this.unlisten(A.CLOSING_EVENT,this.handleClosing);this.handleClosing();this.buttonRipples.forEach((function(i){i.destroy()}));i.prototype.destroy.call(this)};t.prototype.layout=function(){this.foundation.layout()};t.prototype.open=function(){this.foundation.open()};t.prototype.close=function(i){if(i===void 0){i=""}this.foundation.close(i)};t.prototype.getDefaultFoundation=function(){var i=this;var t={addBodyClass:function(i){return document.body.classList.add(i)},addClass:function(t){return i.root.classList.add(t)},areButtonsStacked:function(){return _(i.buttons)},clickDefaultButton:function(){if(i.defaultButton&&!i.defaultButton.disabled){i.defaultButton.click()}},eventTargetMatches:function(i,t){return i?c(i,t):false},getActionFromEvent:function(i){if(!i.target){return""}var t=l(i.target,"["+A.ACTION_ATTRIBUTE+"]");return t&&t.getAttribute(A.ACTION_ATTRIBUTE)},getInitialFocusEl:function(){return i.getInitialFocusEl()},hasClass:function(t){return i.root.classList.contains(t)},isContentScrollable:function(){return u(i.content)},notifyClosed:function(t){return i.emit(A.CLOSED_EVENT,t?{action:t}:{})},notifyClosing:function(t){return i.emit(A.CLOSING_EVENT,t?{action:t}:{})},notifyOpened:function(){return i.emit(A.OPENED_EVENT,{})},notifyOpening:function(){return i.emit(A.OPENING_EVENT,{})},releaseFocus:function(){i.focusTrap.releaseFocus()},removeBodyClass:function(i){return document.body.classList.remove(i)},removeClass:function(t){return i.root.classList.remove(t)},reverseButtons:function(){i.buttons.reverse();i.buttons.forEach((function(i){i.parentElement.appendChild(i)}))},trapFocus:function(){i.focusTrap.trapFocus()},registerContentEventHandler:function(t,o){if(i.content instanceof HTMLElement){i.content.addEventListener(t,o)}},deregisterContentEventHandler:function(t,o){if(i.content instanceof HTMLElement){i.content.removeEventListener(t,o)}},isScrollableContentAtTop:function(){return f(i.content)},isScrollableContentAtBottom:function(){return p(i.content)},registerWindowEventHandler:function(i,t){window.addEventListener(i,t)},deregisterWindowEventHandler:function(i,t){window.removeEventListener(i,t)}};return new S(t)};t.prototype.getInitialFocusEl=function(){return this.root.querySelector("["+A.INITIAL_FOCUS_ATTRIBUTE+"]")};return t}(d);const I=':host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--mdc-theme-error:var(\n --lime-error-background-color,\n rgb(var(--color-red-dark))\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n rgb(var(--contrast-1500))\n )}:host{--dialog-background-color:var(--lime-elevated-surface-background-color);--header-heading-color:var(--dialog-heading-title-color);--header-subheading-color:var(--dialog-heading-subtitle-color);--header-supporting-text-color:var(--dialog-heading-supporting-text-color);--header-icon-color:var(--dialog-heading-icon-color);--header-icon-background-color:var(--dialog-heading-icon-background-color)}.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, 0.32)}.mdc-dialog .mdc-dialog__surface-scrim{background-color:rgba(0, 0, 0, 0.32)}.mdc-dialog .mdc-dialog__title{color:rgba(0, 0, 0, 0.87)}.mdc-dialog .mdc-dialog__content{color:rgba(0, 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, 0.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:1px solid rgba(0, 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, 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, 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:0.875rem;font-size:var(--mdc-typography-headline6-font-size, 0.875rem);line-height:0.875rem;line-height:var(--mdc-typography-headline6-line-height, 0.875rem);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:0.8125rem;font-size:var(--mdc-typography-body1-font-size, 0.8125rem);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-dialog__title-icon{}.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)}@media all and (-ms-high-contrast: none), (-ms-high-contrast: active){.mdc-dialog .mdc-dialog__container{}}.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 (-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}.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}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;-webkit-overflow-scrolling:touch}.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}.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{z-index:var(--dialog-z-index, 7);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}@media (max-width: 16032px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media (min-width: 16032px){.mdc-dialog .mdc-dialog__surface{max-width:16000px}}@media (max-height: 16032px){.mdc-dialog.full-screen .mdc-dialog__surface{max-height:calc(100% - 32px)}}@media (min-height: 16032px){.mdc-dialog.full-screen .mdc-dialog__surface{max-height:16000px}}@media all and (-ms-high-contrast: none), (-ms-high-contrast: active){.mdc-dialog.full-screen .mdc-dialog__container{}}@media (-ms-high-contrast: none) and (min-height: 16032px), (-ms-high-contrast: active) and (min-height: 16032px){.mdc-dialog.full-screen .mdc-dialog__container{align-items:stretch;height:auto}}.mdc-dialog.full-screen .mdc-dialog__container{height:100%;width:100%}.mdc-dialog.full-screen .mdc-dialog__container .mdc-dialog__surface{height:100%;width:100%}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(var(--color-black), 0.4)}.mdc-dialog .mdc-dialog__container{height:100%;width:var(--dialog-width, auto)}.mdc-dialog .mdc-dialog__surface{width:var(--dialog-width, auto);height:var(--dialog-height, auto);background-color:var(--dialog-background-color);box-shadow:var(--shadow-depth-64);max-width:var(--dialog-max-width, calc(100vw - 2rem));max-height:var(--dialog-max-height, calc(100% - 2rem));border-radius:var(--dialog-border-radius, 0.25rem)}.mdc-dialog .mdc-dialog__content{color:var(--mdc-theme-on-surface);padding:var(--dialog-padding-top-bottom, min(1.5rem, 3vw)) var(--dialog-padding-left-right, min(1.25rem, 3vw))}.scrollbox{--dialog-background-color-transparent:rgba(var(--contrast-100), 0);--dialog-scroll-shadow-color:rgba(var(--color-black), 0.2);--dialog-scroll-shadow-color-transparent:rgba(var(--color-black), 0);background:linear-gradient(var(--dialog-background-color) 30%, var(--dialog-background-color-transparent)), linear-gradient(var(--dialog-background-color-transparent), var(--dialog-background-color) 70%) 0 100%, radial-gradient(farthest-side at 50% 0, var(--dialog-scroll-shadow-color), var(--dialog-scroll-shadow-color-transparent)), radial-gradient(farthest-side at 50% 100%, var(--dialog-scroll-shadow-color), var(--dialog-scroll-shadow-color-transparent)) 0 100%;background-repeat:no-repeat;background-color:var(--dialog-background-color);background-size:100% 2.5rem, 100% 2.5rem, 100% 0.875rem, 100% 0.875rem;background-attachment:local, local, scroll, scroll}#initialFocusElement{position:absolute;opacity:0;pointer-events:none;z-index:-1}slot[name=header]{display:none}slot[name=button]{display:flex;gap:0.5rem;width:100%;justify-content:flex-end}@media screen and (max-width: 760px){slot[name=button]{flex-direction:column-reverse}.mdc-dialog__actions{padding:min(1.5rem, 3vw);padding-top:1rem}}';const j=class{constructor(o){i(this,o);this.close=t(this,"close",7);this.closing=t(this,"closing",7);this.showFooter=true;this.heading=undefined;this.fullscreen=false;this.open=false;this.closingActions={escapeKey:true,scrimClick:true};this.handleMdcOpened=this.handleMdcOpened.bind(this);this.handleMdcClosed=this.handleMdcClosed.bind(this);this.handleMdcClosing=this.handleMdcClosing.bind(this)}connectedCallback(){this.initialize()}componentWillLoad(){this.id=a();this.showFooter=!!this.host.querySelector('[slot="button"]')}componentDidLoad(){this.initialize()}initialize(){const i=this.host.shadowRoot.querySelector(".mdc-dialog");if(!i){return}this.mdcDialog=new D(i);if(this.open){this.mdcDialog.open()}this.mdcDialog.listen("MDCDialog:opened",this.handleMdcOpened);this.mdcDialog.listen("MDCDialog:closed",this.handleMdcClosed);this.mdcDialog.listen("MDCDialog:closing",this.handleMdcClosing);this.setClosingActions()}disconnectedCallback(){this.mdcDialog.unlisten("MDCDialog:opened",this.handleMdcOpened);this.mdcDialog.unlisten("MDCDialog:closed",this.handleMdcClosed);this.mdcDialog.unlisten("MDCDialog:closing",this.handleMdcClosing);this.mdcDialog.destroy()}render(){return o("div",{class:{"mdc-dialog":true,"full-screen":!!this.fullscreen},role:"alertdialog","aria-modal":"true","aria-labelledby":"limel-dialog-title-"+this.id,"aria-describedby":"limel-dialog-content-"+this.id},o("input",{hidden:true,id:"initialFocusEl"}),o("div",{class:"mdc-dialog__container"},o("div",{class:"mdc-dialog__surface"},o("input",{type:"text",id:"initialFocusElement"}),this.renderHeading(),o("div",{class:"mdc-dialog__content scrollbox",id:"limel-dialog-content-"+this.id},o("slot",null)),this.renderFooter())),o("div",{class:"mdc-dialog__scrim"}))}watchHandler(i,t){if(t===i){return}if(!this.mdcDialog){return}if(i){this.mdcDialog.open()}else{this.mdcDialog.close()}}closingActionsChanged(i,t){if(g(i,t)){return}this.setClosingActions()}handleMdcOpened(){const i=100;setTimeout(n,i)}handleMdcClosed(){if(this.open){this.close.emit()}this.open=false}handleMdcClosing(){this.closing.emit()}isBadgeHeading(i){return typeof i==="object"&&!!i.title&&!!i.icon}renderHeading(){if(this.isBadgeHeading(this.heading)){const{title:i,subtitle:t,supportingText:e,icon:n}=this.heading;return o("limel-header",{icon:n,heading:i,subheading:t,supportingText:e})}else if(typeof this.heading==="string"){return o("limel-header",{heading:this.heading})}return null}renderFooter(){if(this.showFooter){return o("footer",{class:"mdc-dialog__actions"},o("slot",{name:"button"}))}}setClosingActions(){this.mdcDialog.scrimClickAction="";if(this.closingActions.scrimClick){this.mdcDialog.scrimClickAction="close"}this.mdcDialog.escapeKeyAction="";if(this.closingActions.escapeKey){this.mdcDialog.escapeKeyAction="close"}}get host(){return e(this)}static get watchers(){return{open:["watchHandler"],closingActions:["closingActionsChanged"]}}};j.style=I;export{j as limel_dialog};
126
- //# sourceMappingURL=p-9f5250a0.entry.js.map
125
+ */var A=S.strings;var D=function(i){x(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}Object.defineProperty(t.prototype,"isOpen",{get:function(){return this.foundation.isOpen()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"escapeKeyAction",{get:function(){return this.foundation.getEscapeKeyAction()},set:function(i){this.foundation.setEscapeKeyAction(i)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"scrimClickAction",{get:function(){return this.foundation.getScrimClickAction()},set:function(i){this.foundation.setScrimClickAction(i)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"autoStackButtons",{get:function(){return this.foundation.getAutoStackButtons()},set:function(i){this.foundation.setAutoStackButtons(i)},enumerable:false,configurable:true});t.attachTo=function(i){return new t(i)};t.prototype.initialize=function(i){var t,e;if(i===void 0){i=function(i,t){return new E(i,t)}}var o=this.root.querySelector(A.CONTAINER_SELECTOR);if(!o){throw new Error("Dialog component requires a "+A.CONTAINER_SELECTOR+" container element")}this.container=o;this.content=this.root.querySelector(A.CONTENT_SELECTOR);this.buttons=[].slice.call(this.root.querySelectorAll(A.BUTTON_SELECTOR));this.defaultButton=this.root.querySelector("["+A.BUTTON_DEFAULT_ATTRIBUTE+"]");this.focusTrapFactory=i;this.buttonRipples=[];try{for(var n=y(this.buttons),a=n.next();!a.done;a=n.next()){var d=a.value;this.buttonRipples.push(new s(d))}}catch(i){t={error:i}}finally{try{if(a&&!a.done&&(e=n.return))e.call(n)}finally{if(t)throw t.error}}};t.prototype.initialSyncWithDOM=function(){var i=this;this.focusTrap=h(this.container,this.focusTrapFactory,this.getInitialFocusEl()||undefined);this.handleClick=this.foundation.handleClick.bind(this.foundation);this.handleKeydown=this.foundation.handleKeydown.bind(this.foundation);this.handleDocumentKeydown=this.foundation.handleDocumentKeydown.bind(this.foundation);this.handleOpening=function(){document.addEventListener("keydown",i.handleDocumentKeydown)};this.handleClosing=function(){document.removeEventListener("keydown",i.handleDocumentKeydown)};this.listen("click",this.handleClick);this.listen("keydown",this.handleKeydown);this.listen(A.OPENING_EVENT,this.handleOpening);this.listen(A.CLOSING_EVENT,this.handleClosing)};t.prototype.destroy=function(){this.unlisten("click",this.handleClick);this.unlisten("keydown",this.handleKeydown);this.unlisten(A.OPENING_EVENT,this.handleOpening);this.unlisten(A.CLOSING_EVENT,this.handleClosing);this.handleClosing();this.buttonRipples.forEach((function(i){i.destroy()}));i.prototype.destroy.call(this)};t.prototype.layout=function(){this.foundation.layout()};t.prototype.open=function(){this.foundation.open()};t.prototype.close=function(i){if(i===void 0){i=""}this.foundation.close(i)};t.prototype.getDefaultFoundation=function(){var i=this;var t={addBodyClass:function(i){return document.body.classList.add(i)},addClass:function(t){return i.root.classList.add(t)},areButtonsStacked:function(){return _(i.buttons)},clickDefaultButton:function(){if(i.defaultButton&&!i.defaultButton.disabled){i.defaultButton.click()}},eventTargetMatches:function(i,t){return i?c(i,t):false},getActionFromEvent:function(i){if(!i.target){return""}var t=l(i.target,"["+A.ACTION_ATTRIBUTE+"]");return t&&t.getAttribute(A.ACTION_ATTRIBUTE)},getInitialFocusEl:function(){return i.getInitialFocusEl()},hasClass:function(t){return i.root.classList.contains(t)},isContentScrollable:function(){return u(i.content)},notifyClosed:function(t){return i.emit(A.CLOSED_EVENT,t?{action:t}:{})},notifyClosing:function(t){return i.emit(A.CLOSING_EVENT,t?{action:t}:{})},notifyOpened:function(){return i.emit(A.OPENED_EVENT,{})},notifyOpening:function(){return i.emit(A.OPENING_EVENT,{})},releaseFocus:function(){i.focusTrap.releaseFocus()},removeBodyClass:function(i){return document.body.classList.remove(i)},removeClass:function(t){return i.root.classList.remove(t)},reverseButtons:function(){i.buttons.reverse();i.buttons.forEach((function(i){i.parentElement.appendChild(i)}))},trapFocus:function(){i.focusTrap.trapFocus()},registerContentEventHandler:function(t,e){if(i.content instanceof HTMLElement){i.content.addEventListener(t,e)}},deregisterContentEventHandler:function(t,e){if(i.content instanceof HTMLElement){i.content.removeEventListener(t,e)}},isScrollableContentAtTop:function(){return f(i.content)},isScrollableContentAtBottom:function(){return p(i.content)},registerWindowEventHandler:function(i,t){window.addEventListener(i,t)},deregisterWindowEventHandler:function(i,t){window.removeEventListener(i,t)}};return new S(t)};t.prototype.getInitialFocusEl=function(){return this.root.querySelector("["+A.INITIAL_FOCUS_ATTRIBUTE+"]")};return t}(r);const I=':host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--mdc-theme-error:var(\n --lime-error-background-color,\n rgb(var(--color-red-dark))\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n rgb(var(--contrast-1500))\n )}:host{--dialog-background-color:var(--lime-elevated-surface-background-color);--header-heading-color:var(--dialog-heading-title-color);--header-subheading-color:var(--dialog-heading-subtitle-color);--header-supporting-text-color:var(--dialog-heading-supporting-text-color);--header-icon-color:var(--dialog-heading-icon-color);--header-icon-background-color:var(--dialog-heading-icon-background-color)}.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, 0.32)}.mdc-dialog .mdc-dialog__surface-scrim{background-color:rgba(0, 0, 0, 0.32)}.mdc-dialog .mdc-dialog__title{color:rgba(0, 0, 0, 0.87)}.mdc-dialog .mdc-dialog__content{color:rgba(0, 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, 0.12)}.mdc-dialog.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:1px solid rgba(0, 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, 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, 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:0.875rem;font-size:var(--mdc-typography-headline6-font-size, 0.875rem);line-height:0.875rem;line-height:var(--mdc-typography-headline6-line-height, 0.875rem);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:0.8125rem;font-size:var(--mdc-typography-body1-font-size, 0.8125rem);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-dialog__title-icon{}.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)}@media all and (-ms-high-contrast: none), (-ms-high-contrast: active){.mdc-dialog .mdc-dialog__container{}}.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 (-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}.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}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;-webkit-overflow-scrolling:touch}.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}.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{z-index:var(--dialog-z-index, 7);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}@media (max-width: 16032px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media (min-width: 16032px){.mdc-dialog .mdc-dialog__surface{max-width:16000px}}@media (max-height: 16032px){.mdc-dialog.full-screen .mdc-dialog__surface{max-height:calc(100% - 32px)}}@media (min-height: 16032px){.mdc-dialog.full-screen .mdc-dialog__surface{max-height:16000px}}@media all and (-ms-high-contrast: none), (-ms-high-contrast: active){.mdc-dialog.full-screen .mdc-dialog__container{}}@media (-ms-high-contrast: none) and (min-height: 16032px), (-ms-high-contrast: active) and (min-height: 16032px){.mdc-dialog.full-screen .mdc-dialog__container{align-items:stretch;height:auto}}.mdc-dialog.full-screen .mdc-dialog__container{height:100%;width:100%}.mdc-dialog.full-screen .mdc-dialog__container .mdc-dialog__surface{height:100%;width:100%}.mdc-dialog .mdc-dialog__scrim{background-color:rgba(var(--color-black), 0.4)}.mdc-dialog .mdc-dialog__container{height:100%;width:var(--dialog-width, auto)}.mdc-dialog .mdc-dialog__surface{width:var(--dialog-width, auto);height:var(--dialog-height, auto);background-color:var(--dialog-background-color);box-shadow:var(--shadow-depth-64);max-width:var(--dialog-max-width, calc(100vw - 2rem));max-height:var(--dialog-max-height, calc(100% - 2rem));border-radius:var(--dialog-border-radius, 0.25rem)}.mdc-dialog .mdc-dialog__content{--limel-top-edge-fade-height:var(--dialog-padding-top-bottom, 1.5rem);--limel-bottom-edge-fade-height:var(\n --dialog-padding-top-bottom,\n 1.5rem\n );--limel-overflow-mask-vertical:linear-gradient(\n to bottom,\n transparent 0%,\n black calc(0% + var(--limel-top-edge-fade-height, 1rem)),\n black calc(100% - var(--limel-bottom-edge-fade-height, 1rem)),\n transparent 100%\n );-webkit-mask-image:var(--limel-overflow-mask-vertical);mask-image:var(--limel-overflow-mask-vertical);padding-top:var(--limel-top-edge-fade-height, 1rem);padding-bottom:var(--limel-bottom-edge-fade-height, 1rem);color:var(--mdc-theme-on-surface);padding-left:var(--dialog-padding-left-right, min(1.25rem, 3vw));padding-right:var(--dialog-padding-left-right, min(1.25rem, 3vw))}#initialFocusElement{position:absolute;opacity:0;pointer-events:none;z-index:-1}slot[name=header]{display:none}slot[name=button]{display:flex;gap:0.5rem;width:100%;justify-content:flex-end}@media screen and (max-width: 760px){slot[name=button]{flex-direction:column-reverse}.mdc-dialog__actions{padding:min(1.5rem, 3vw);padding-top:1rem}}';const j=class{constructor(e){i(this,e);this.close=t(this,"close",7);this.closing=t(this,"closing",7);this.showFooter=true;this.heading=undefined;this.fullscreen=false;this.open=false;this.closingActions={escapeKey:true,scrimClick:true};this.handleMdcOpened=this.handleMdcOpened.bind(this);this.handleMdcClosed=this.handleMdcClosed.bind(this);this.handleMdcClosing=this.handleMdcClosing.bind(this)}connectedCallback(){this.initialize()}componentWillLoad(){this.id=a();this.showFooter=!!this.host.querySelector('[slot="button"]')}componentDidLoad(){this.initialize()}initialize(){const i=this.host.shadowRoot.querySelector(".mdc-dialog");if(!i){return}this.mdcDialog=new D(i);if(this.open){this.mdcDialog.open()}this.mdcDialog.listen("MDCDialog:opened",this.handleMdcOpened);this.mdcDialog.listen("MDCDialog:closed",this.handleMdcClosed);this.mdcDialog.listen("MDCDialog:closing",this.handleMdcClosing);this.setClosingActions()}disconnectedCallback(){this.mdcDialog.unlisten("MDCDialog:opened",this.handleMdcOpened);this.mdcDialog.unlisten("MDCDialog:closed",this.handleMdcClosed);this.mdcDialog.unlisten("MDCDialog:closing",this.handleMdcClosing);this.mdcDialog.destroy()}render(){return e("div",{class:{"mdc-dialog":true,"full-screen":!!this.fullscreen},role:"alertdialog","aria-modal":"true","aria-labelledby":"limel-dialog-title-"+this.id,"aria-describedby":"limel-dialog-content-"+this.id},e("input",{hidden:true,id:"initialFocusEl"}),e("div",{class:"mdc-dialog__container"},e("div",{class:"mdc-dialog__surface"},e("input",{type:"text",id:"initialFocusElement"}),this.renderHeading(),e("div",{class:"mdc-dialog__content",id:"limel-dialog-content-"+this.id},e("slot",null)),this.renderFooter())),e("div",{class:"mdc-dialog__scrim"}))}watchHandler(i,t){if(t===i){return}if(!this.mdcDialog){return}if(i){this.mdcDialog.open()}else{this.mdcDialog.close()}}closingActionsChanged(i,t){if(g(i,t)){return}this.setClosingActions()}handleMdcOpened(){const i=100;setTimeout(n,i)}handleMdcClosed(){if(this.open){this.close.emit()}this.open=false}handleMdcClosing(){this.closing.emit()}isBadgeHeading(i){return typeof i==="object"&&!!i.title&&!!i.icon}renderHeading(){if(this.isBadgeHeading(this.heading)){const{title:i,subtitle:t,supportingText:o,icon:n}=this.heading;return e("limel-header",{icon:n,heading:i,subheading:t,supportingText:o})}else if(typeof this.heading==="string"){return e("limel-header",{heading:this.heading})}return null}renderFooter(){if(this.showFooter){return e("footer",{class:"mdc-dialog__actions"},e("slot",{name:"button"}))}}setClosingActions(){this.mdcDialog.scrimClickAction="";if(this.closingActions.scrimClick){this.mdcDialog.scrimClickAction="close"}this.mdcDialog.escapeKeyAction="";if(this.closingActions.escapeKey){this.mdcDialog.escapeKeyAction="close"}}get host(){return o(this)}static get watchers(){return{open:["watchHandler"],closingActions:["closingActionsChanged"]}}};j.style=I;export{j as limel_dialog};
126
+ //# sourceMappingURL=p-9eacc71c.entry.js.map