@momentum-ui/web-components 2.22.16 → 2.23.0
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/dist/1323.js +2 -2
- package/dist/1439.js +1 -1
- package/dist/3135.js +1 -1
- package/dist/3820.js +1 -0
- package/dist/587.js +1 -1
- package/dist/6015.js +1 -1
- package/dist/6652.js +1 -1
- package/dist/6677.js +1 -1
- package/dist/754.js +1 -1
- package/dist/8004.js +1 -0
- package/dist/8612.js +3 -3
- package/dist/9058.js +1 -1
- package/dist/9130.js +1 -1
- package/dist/assets/icons/svg/voxon-horizontal.svg +1 -0
- package/dist/assets/icons/svg/voxon-mark.svg +1 -0
- package/dist/chunks/{md-7044.js → md-4663.js} +1 -1
- package/dist/comp/md-card-ai-entry.js +1 -1
- package/dist/comp/md-card-entry.js +1 -1
- package/dist/comp/md-card.js +1 -1
- package/dist/comp/md-coachmark-popover-entry.js +37 -41
- package/dist/comp/md-coachmark-popover.js +1 -1
- package/dist/comp/md-combobox-entry.js +1 -1
- package/dist/comp/md-combobox.js +1 -1
- package/dist/comp/md-date-range-picker-entry.js +1 -1
- package/dist/comp/md-date-range-picker.js +1 -1
- package/dist/comp/md-date-time-picker-entry.js +1 -1
- package/dist/comp/md-date-time-picker.js +1 -1
- package/dist/comp/md-datepicker-entry.js +1 -1
- package/dist/comp/md-datepicker.js +1 -1
- package/dist/comp/md-draggable-entry.js +1 -1
- package/dist/comp/md-draggable.js +1 -1
- package/dist/comp/md-floating-modal-entry.js +3 -3
- package/dist/comp/md-floating-modal.js +1 -1
- package/dist/comp/md-menu-overlay-entry.js +2 -2
- package/dist/comp/md-phone-input-entry.js +1 -1
- package/dist/comp/md-phone-input.js +1 -1
- package/dist/comp/md-popover-entry.js +17 -26
- package/dist/comp/md-popover.js +1 -1
- package/dist/comp/md-tabs-entry.js +1 -1
- package/dist/comp/md-task-item-entry.js +19 -17
- package/dist/comp/md-timepicker-entry.js +1 -1
- package/dist/comp/md-timepicker.js +1 -1
- package/dist/index-entry.js +58 -60
- package/dist/index.js +1 -1
- package/dist/types/components/coachmark-popover/CoachmarkPopover.d.ts +1 -0
- package/dist/types/components/combobox/ComboBox.d.ts +1 -1
- package/dist/types/components/floating-modal/FloatingModal.d.ts +1 -0
- package/dist/types/components/menu-overlay/MenuOverlay.d.ts +0 -1
- package/dist/types/components/popover/Popover.constants.d.ts +53 -0
- package/dist/types/components/popover/Popover.d.ts +288 -192
- package/dist/types/components/popover/Popover.events.d.ts +34 -0
- package/dist/types/components/popover/Popover.stack.d.ts +45 -0
- package/dist/types/components/popover/Popover.types.d.ts +13 -1
- package/dist/types/components/popover/Popover.utils.d.ts +63 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/helpers.d.ts +2 -0
- package/package.json +2 -1
- package/dist/4663.js +0 -1
package/dist/1323.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1323],{11323:(e,t,i)=>{var r,s,n=i(90195),o=i(31890),a=i(28373),l=i(66677),h=i(22962),d=i.n(h),p=i(84157),
|
|
1
|
+
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1323],{11323:(e,t,i)=>{var r,s,n=i(90195),o=i(31890),a=i(28373),l=i(66677),h=i(22962),d=i.n(h),p=i(84157),v=i.n(p),u=i(68250),c=i.n(u),g=i(69371),y=i.n(g),m=i(4863),E=i(41488),O=i(97822),f=i(16366),w=function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},b=function(e,t,i,r){return new(i||(i=Promise))((function(s,n){function o(e){try{l(r.next(e))}catch(e){n(e)}}function a(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}l((r=r.apply(e,t||[])).next())}))};!function(e){e.small="260px",e.large="370px"}(r||(r={})),function(e){let t=class extends((0,a.d)(E.LitElement)){constructor(){super(...arguments),this._isOpen=!1,this.size="large",this.maxHeight="",this.customWidth="",this.showArrow=!1,this.disabled=!1,this.placement="bottom",this.allowHoverToggle=!1,this.ariaRole="menu",this.ariaLabel="",this.isDatePicker=!1,this.overlayOffset=15,this.keepOpenOnWindowBlur=!1,this.positioningStrategy=void 0,this.popperInstance=null,this.triggerElement=null,this.updateActiveMenuOverlayOpened=t=>{var i;this===t.target&&(null===(i=e.ELEMENT.activeOverlay)||void 0===i||i.push(t.target))},this.updateActiveMenuOverlayClosed=t=>{var i,r;const s=e.ELEMENT.activeOverlay.indexOf(t.target);this===t.target&&-1!==s&&(e.ELEMENT.activeOverlay.splice(s,1),e.ELEMENT.activeOverlay.length>0?(null===(i=e.ELEMENT.activeOverlay[e.ELEMENT.activeOverlay.length-1])||void 0===i||i.setFocusableElements(),null===(r=e.ELEMENT.activeOverlay[e.ELEMENT.activeOverlay.length-1])||void 0===r||r.focusOnNestedTrigger(this.triggerElement)):this.setFocusableElements())},this.handleTriggerClick=()=>{this.toggleOverlay()},this.setOverlay=(0,l.sg)((e=>{this.disabled||(this.isOpen=e)}),100),this.expandPopup=()=>{this.setOverlay(!0)},this.collapsePopup=()=>{this.setOverlay(!1)},this.handleOutsideOverlayKeydown=t=>b(this,void 0,void 0,(function*(){let i=!1;const r=t.composedPath();r.length&&(i=!!r.find((e=>e===this)),!i)||!this.overlayContainer||t.code!==n.Uz.Escape||(t.preventDefault(),(e.ELEMENT.activeOverlay.length>0?e.ELEMENT.activeOverlay[e.ELEMENT.activeOverlay.length-1]:void 0)===this&&(this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger()))})),this.handleTriggerKeyDown=e=>b(this,void 0,void 0,(function*(){switch(e.code){case n.Uz.Space:case n.Uz.Enter:e.preventDefault(),this.toggleOverlay(),this.isOpen||(yield this.updateComplete,this.focusOnTrigger())}})),this.handleOutsideOverlayClick=e=>{let t=!1;const i=e.composedPath();i.length&&(t=!!i.find((e=>e===this)),t||this.preventClickOutside||(this.isOpen=!1))}}get isOpen(){return this._isOpen}set isOpen(e){const t=this._isOpen;this._isOpen=e,this.handleInstance(e),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",e),this.requestUpdate("isOpen",t)}renderMaxHeight(){return this.maxHeight?`max-height: ${this.maxHeight};`:"max-height: calc(100vh - 48px);"}renderOverflowY(){return this.isDatePicker?"overflow-y: visible;":"overflow-y: auto;"}renderWidth(){return this.customWidth?`width: ${this.customWidth};`:"small"===this.size?`width: ${r.small};`:`width: ${r.large};`}getStyles(){return E.html`
|
|
2
2
|
<style>
|
|
3
3
|
:host .md-menu-overlay .overlay-content {
|
|
4
4
|
${this.renderMaxHeight()};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
${this.renderOverflowY()};
|
|
7
7
|
}
|
|
8
8
|
</style>
|
|
9
|
-
`}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("click",this.handleOutsideOverlayClick),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.triggerElement&&(this.triggerElement.removeEventListener("click",this.handleTriggerClick),this.triggerElement.removeEventListener("keydown",this.handleTriggerKeyDown),this.allowHoverToggle&&(this.triggerElement.removeEventListener("mouseenter",this.expandPopup),this.triggerElement.removeEventListener("mouseleave",this.collapsePopup),this.overlayContainer.removeEventListener("mouseenter",this.expandPopup),this.overlayContainer.removeEventListener("mouseleave",this.collapsePopup)),this.triggerElement=null)}checkIsInputField(e){var t;return"md-input"===(null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase())}updateTriggerElementAriaExpanded(){this.triggerElement&&(this.isOpen?this.triggerElement.setAttribute("aria-expanded","true"):this.triggerElement.removeAttribute("aria-expanded"))}firstUpdated(e){const t=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return b(this,void 0,void 0,(function*(){t.firstUpdated.call(this,e),yield new Promise((e=>setTimeout(e,0))),this.trigger&&(this.triggerElement=this.trigger[0],this.triggerElement.addEventListener("click",this.handleTriggerClick),this.allowHoverToggle&&(this.triggerElement.addEventListener("mouseenter",this.expandPopup),this.triggerElement.addEventListener("mouseleave",this.collapsePopup),this.overlayContainer.addEventListener("mouseenter",this.expandPopup),this.overlayContainer.addEventListener("mouseleave",this.collapsePopup)),this.checkIsInputField(this.triggerElement)||this.triggerElement.addEventListener("keydown",this.handleTriggerKeyDown),this.triggerElement.setAttribute("aria-haspopup","true")),this.overlayContainer&&this.isOpen&&(this.handleInstance(!0),this.overlayContainer.toggleAttribute("data-show",!0)),this.arrow&&this.showArrow&&this.arrow.toggleAttribute("data-show",!0),e.has("isOpen")&&this.updateTriggerElementAriaExpanded()}))}update(e){super.update(e),e.has("isOpen")&&(this.isOpen?(this.activateFocusTrap(),document.addEventListener("menu-item-click",this.handleTriggerClick)):(this.deactivateFocusTrap(),document.removeEventListener("menu-item-click",this.handleTriggerClick)))}updated(e){super.updated(e),e.has("isOpen")&&(this.isOpen?(this.dispatchMenuOpen(),this.triggerElement&&(this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","true"))):(this.dispatchMenuClose(),this.triggerElement&&(this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","false"))))}dispatchMenuOpen(){this.dispatchEvent(new CustomEvent("menu-overlay-open",{composed:!0,bubbles:!0}))}dispatchMenuClose(){this.dispatchEvent(new CustomEvent("menu-overlay-close",{composed:!0,bubbles:!0}))}handleInstance(e){e?this.create():this.destroy()}create(){this.triggerElement&&(this.popperInstance=(0,m.createPopper)(this.triggerElement,this.overlayContainer,{onFirstUpdate:()=>b(this,void 0,void 0,(function*(){var e;this.isOpen&&(null===(e=this.popperInstance)||void 0===e||e.update(),this.setFocusableElements(),yield this.updateComplete,this.focusInsideOverlay())})),placement:this.placement,strategy:this.positioningStrategy,modifiers:[...m.defaultModifiers,
|
|
9
|
+
`}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("click",this.handleOutsideOverlayClick),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.triggerElement&&(this.triggerElement.removeEventListener("click",this.handleTriggerClick),this.triggerElement.removeEventListener("keydown",this.handleTriggerKeyDown),this.allowHoverToggle&&(this.triggerElement.removeEventListener("mouseenter",this.expandPopup),this.triggerElement.removeEventListener("mouseleave",this.collapsePopup),this.overlayContainer.removeEventListener("mouseenter",this.expandPopup),this.overlayContainer.removeEventListener("mouseleave",this.collapsePopup)),this.triggerElement=null)}checkIsInputField(e){var t;return"md-input"===(null===(t=null==e?void 0:e.tagName)||void 0===t?void 0:t.toLowerCase())}updateTriggerElementAriaExpanded(){this.triggerElement&&(this.isOpen?this.triggerElement.setAttribute("aria-expanded","true"):this.triggerElement.removeAttribute("aria-expanded"))}firstUpdated(e){const t=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return b(this,void 0,void 0,(function*(){t.firstUpdated.call(this,e),yield new Promise((e=>setTimeout(e,0))),this.trigger&&(this.triggerElement=this.trigger[0],this.triggerElement.addEventListener("click",this.handleTriggerClick),this.allowHoverToggle&&(this.triggerElement.addEventListener("mouseenter",this.expandPopup),this.triggerElement.addEventListener("mouseleave",this.collapsePopup),this.overlayContainer.addEventListener("mouseenter",this.expandPopup),this.overlayContainer.addEventListener("mouseleave",this.collapsePopup)),this.checkIsInputField(this.triggerElement)||this.triggerElement.addEventListener("keydown",this.handleTriggerKeyDown),this.triggerElement.setAttribute("aria-haspopup","true")),this.overlayContainer&&this.isOpen&&(this.handleInstance(!0),this.overlayContainer.toggleAttribute("data-show",!0)),this.arrow&&this.showArrow&&this.arrow.toggleAttribute("data-show",!0),e.has("isOpen")&&this.updateTriggerElementAriaExpanded()}))}update(e){super.update(e),e.has("isOpen")&&(this.isOpen?(this.activateFocusTrap(),document.addEventListener("menu-item-click",this.handleTriggerClick)):(this.deactivateFocusTrap(),document.removeEventListener("menu-item-click",this.handleTriggerClick)))}updated(e){super.updated(e),e.has("isOpen")&&(this.isOpen?(this.dispatchMenuOpen(),this.triggerElement&&(this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","true"))):(this.dispatchMenuClose(),this.triggerElement&&(this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","false"))))}dispatchMenuOpen(){this.dispatchEvent(new CustomEvent("menu-overlay-open",{composed:!0,bubbles:!0}))}dispatchMenuClose(){this.dispatchEvent(new CustomEvent("menu-overlay-close",{composed:!0,bubbles:!0}))}handleInstance(e){e?this.create():this.destroy()}create(){this.triggerElement&&(this.popperInstance=(0,m.createPopper)(this.triggerElement,this.overlayContainer,{onFirstUpdate:()=>b(this,void 0,void 0,(function*(){var e;this.isOpen&&(null===(e=this.popperInstance)||void 0===e||e.update(),this.setFocusableElements(),yield this.updateComplete,this.focusInsideOverlay())})),placement:this.placement,strategy:this.positioningStrategy,modifiers:[...m.defaultModifiers,v(),c(),y(),d(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:e,reference:t})=>"left-end"===e||"right-end"===e?[t.height+t.y+3,14]:[0,this.overlayOffset]}},{name:"arrow",options:{element:this.arrow,padding:5}},{name:"computeStyles",options:{adaptive:!1}}]}))}destroy(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}toggleOverlay(){this.disabled||(this.isOpen=!this.isOpen)}focusOnTrigger(){requestAnimationFrame((()=>{var e;(null===(e=this.focusableElements)||void 0===e?void 0:e.length)&&this.focusableElements[0].focus()}))}focusInsideOverlay(){this.focusableElements&&(this.focusableElements.length>1?this.setInitialFocus(1):this.focusableElements.length&&this.setInitialFocus())}focusOnNestedTrigger(e){var t;null===(t=this.setFocusOnTrigger)||void 0===t||t.call(this,e)}handleWindowBlurEvent(){this._isOpen&&!this.keepOpenOnWindowBlur&&(this.isOpen=!1)}static get styles(){return[f.A]}render(){return E.html`
|
|
10
10
|
${this.getStyles()}
|
|
11
11
|
<div class="md-menu-overlay">
|
|
12
12
|
<slot name="menu-trigger"></slot>
|
package/dist/1439.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1439,6677,9058],{66677:(t,
|
|
1
|
+
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1439,3820,6677,9058],{66677:(o,t,n)=>{function e(o,t=document){var n;const r=t instanceof ShadowRoot||t instanceof Document?t.querySelector(o):null===(n=t.shadowRoot)||void 0===n?void 0:n.querySelector(o);if(r)return r;const l=Array.from(t.querySelectorAll("*")).map((o=>o.shadowRoot?o.shadowRoot:null)).filter((o=>null!==o));for(const t of l){const n=e(o,t);if(n)return n}return null}function r(o,t=document){if(t instanceof ShadowRoot||t instanceof Document){const n=t.getElementById(o);if(n)return n}const n=Array.from(t.querySelectorAll("*")).map((o=>o.shadowRoot?o.shadowRoot:null)).filter((o=>null!==o));for(const t of n){const n=r(o,t);if(n)return n}return null}n.d(t,{XI:()=>r,qi:()=>e})}}]);
|
package/dist/3135.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[754,3135,8373],{28373:(e,t,s)=>{s.d(t,{d:()=>r});var i=s(90195),n=s(41488),o=s(18889),a=s(32972),
|
|
1
|
+
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[754,3135,8373],{28373:(e,t,s)=>{s.d(t,{d:()=>r});var i=s(90195),n=s(41488),o=s(18889),a=s(32972),l=function(e,t,s,i){var n,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(o<3?n(a):o>3?n(t,s,a):n(t,s))||a);return o>3&&a&&Object.defineProperty(t,s,a),a},c=function(e,t,s,i){return new(s||(s=Promise))((function(n,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function l(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(a,l)}c((i=i.apply(e,t||[])).next())}))};const r=e=>{if((0,o.V)(r,e))return e;class t extends((0,a.y)(e)){constructor(){super(...arguments),this.focusableElements=[],this.initialFocusComplete=!1,this.focusableTimer=[],this.activeFocusTrap=!1,this.preventClickOutside=!1,this.focusTrapIndex=-1,this.preventScroll=!1,this.shouldWrapFocus=()=>!0,this.useLegacyFindFocusable=()=>!0,this.handleFocusOnClear=()=>{this.trapFocus(!0)},this.handleKeydownFocusTrap=e=>{e.code!==i.Uz.Tab||e.shiftKey&&e.code!==i.Uz.Tab||this.activeFocusTrap&&this.focusableElements.length&&(e.shiftKey?(e.preventDefault(),this.trapFocus(!0)):(e.preventDefault(),this.trapFocus(!1)))},this.handleOutsideTrapClick=e=>{let t=!1;const s=e.composedPath();s.length&&(t=!!s.find((e=>e===this)),t||this.preventClickOutside||!this.activeFocusTrap?t&&this.activeFocusTrap&&this.initialFocusComplete&&this.handleClickInsideTrap(e):this.deactivateFocusTrap())},this.updateFocusableElements=()=>{this.focusableTimer&&(clearTimeout(this.focusableTimer),this.focusableElements=[]),this.focusableTimer=setTimeout((()=>{this.setFocusableElements()}),10)},this.handleChildFocusTrap=e=>{e.target!==this&&(e.stopPropagation(),this.deactivateFocusTrap(!1))},this.handleChildFocusUntrap=e=>{e.target!==this&&(e.stopPropagation(),this.activateFocusTrap(!1))}}updated(e){if(super.updated(e),e.has("focusTrapIndex")){const t=e.get("focusTrapIndex"),s=this.focusableElements[t];s&&(s.blur(),s.toggleAttribute("focus-visible",!1));const i=this.focusableElements[this.focusTrapIndex];i&&this.tryFocus(i)}}tryFocus(e){requestAnimationFrame((()=>c(this,void 0,void 0,(function*(){this.isElementFocused(e)&&e.focus({preventScroll:this.preventScroll}),void 0!==e.updateComplete&&(yield e.updateComplete),document.hasFocus()&&this.isElementFocused(e)&&e.focus({preventScroll:this.preventScroll}),this.initialFocusComplete||(this.initialFocusComplete=!0)}))))}domRectCollection(e){return 0===e.getClientRects().length}viewportPosition(e){const{width:t,height:s}=e.getBoundingClientRect(),{offsetWidth:i,offsetHeight:n}=e;return i+n+s+t===0}isNotVisible(e){return"SLOT"!==e.tagName&&(this.viewportPosition(e)||this.domRectCollection(e))}hasHiddenStyle(e){const t=e.style;return t?"none"===t.display||"0"===t.opacity||"hidden"===t.visibility||"collapse"===t.visibility:e instanceof HTMLElement==0}hasComputedHidden(e){const t=getComputedStyle(e);return"hidden"===t.visibility||"0"===t.height}isHidden(e){return e.hasAttribute("hidden")||e.hasAttribute("aria-hidden")&&"true"===e.getAttribute("aria-hidden")||this.hasHiddenStyle(e)||this.isNotVisible(e)||this.hasComputedHidden(e)}isNotTabbable(e){return"-1"===e.getAttribute("tabindex")}isInteractiveElement(e){return e instanceof HTMLButtonElement||e instanceof HTMLDetailsElement||e instanceof HTMLEmbedElement||e instanceof HTMLIFrameElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||!!(e instanceof HTMLAnchorElement&&e.hasAttribute("href"))||e instanceof HTMLInputElement&&"hidden"!==e.type||!(!(e instanceof HTMLAudioElement||e instanceof HTMLVideoElement)||!e.hasAttribute("controls"))||!(!(e instanceof HTMLImageElement||e instanceof HTMLObjectElement)||!e.hasAttribute("usemap"))||!!(e.hasAttribute("tabindex")&&e.tabIndex>-1)}isFocusable(e){return!this.isHidden(e)&&!this.isNotTabbable(e)&&!!this.isInteractiveElement(e)}shouldSkipFocus(e){var t;return(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.split(" ").indexOf("md-combobox-listbox"))>-1}handleFindFocusableSlot(e,t){const s=e.assignedNodes().filter((e=>e.nodeType===e.ELEMENT_NODE));if(s.length){const e=s[0].parentElement;e&&this.findFocusable(e,t)}}findFocusable(e,t){return this.useLegacyFindFocusable()?this.legacyFindFocusable(e,t):this.newFindFocusable(e,t)}legacyFindFocusable(e,t){const s=Array.from(e.children);for(const e of s)if(!this.isHidden(e)){if(this.shouldSkipFocus(e))break;if(this.isFocusable(e)&&t.add(e),e.shadowRoot)this.findFocusable(e.shadowRoot,t);else if("SLOT"===e.tagName){const s=e;this.handleFindFocusableSlot(s,t)}else this.findFocusable(e,t)}return[...t]}newFindFocusable(e,t){const s=Array.from(e.children);for(const e of s)if(!this.isHidden(e)){if(this.shouldSkipFocus(e))break;if(this.isFocusable(e)&&t.add(e),e.shadowRoot)this.findFocusable(e.shadowRoot,t);else if("SLOT"===e.tagName){const s=e;this.handleFindFocusableSlot(s,t)}else this.findFocusable(e,t)}return[...t]}isEqualFocusNode(e,t){return e.nodeType>=0&&t.isEqualNode(e)&&t==e}findElement(e){return this.focusableElements.findIndex((t=>this.isEqualFocusNode(e,t)))}calculateNextFocusIndex(e,t){return t?e>0?e-1:this.shouldWrapFocus()?this.focusableElements.length-1:0:e+1<this.focusableElements.length?e+1:this.shouldWrapFocus()?0:this.focusableElements.length-1}trapFocus(e){const t=this.getDeepActiveElement(),s=this.findElement(t);if(e)-1===s&&this.focusTrapIndex-1>0?this.focusTrapIndex--:this.focusTrapIndex=this.calculateNextFocusIndex(s,e);else if(-1===s&&this.focusTrapIndex+1<this.focusableElements.length)this.focusTrapIndex++;else if(s===this.focusableElements.length-1&&0===this.focusTrapIndex){const e=this.focusableElements[this.focusTrapIndex];e&&this.tryFocus(e)}else this.focusTrapIndex=this.calculateNextFocusIndex(s,e)}hasAutofocus(e){return e.hasAttribute("autofocus")}setInitialFocus(e=0,t=!1){let s=-1;this.initialFocusComplete=!1,this.focusableElements.length&&!t&&(s=this.focusableElements.findIndex(this.hasAutofocus)),this.focusableElements.length&&-1===s&&("object"==typeof e?s=this.findElement(e):"number"==typeof e&&(s=e)),this.focusableElements[s]&&(this.focusTrapIndex=s)}setFocusOnTrigger(e){if(!e)return;const t=this.getDeepNestedTriggerElement(e);if(t.length>0){const e=this.findElement(t[0]);this.focusTrapIndex=e}}getDeepNestedTriggerElement(e){return e.shadowRoot?this.findFocusable(e.shadowRoot,new Set):this.isFocusable(e)?[e]:this.findFocusable(e,new Set)}setFocusableElements(){this.shadowRoot?this.focusableElements=this.findFocusable(this.shadowRoot,new Set):console.warn("shadow root is not available")}firstUpdated(e){const t=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return c(this,void 0,void 0,(function*(){t.firstUpdated.call(this,e),yield new Promise((e=>setTimeout(e,0))),this.setFocusableElements()}))}activateFocusTrap(e=!0){e&&this.dispatchEvent(new CustomEvent("on-focus-trap",{bubbles:!0,composed:!0,cancelable:!0})),this.activeFocusTrap=!0}deactivateFocusTrap(e=!0){this.activeFocusTrap=!1,this.focusTrapIndex=-1,this.removeAttribute("focus-trap-index"),e&&this.dispatchEvent(new CustomEvent("on-focus-untrap",{bubbles:!0,composed:!0,cancelable:!0}))}handleClickInsideTrap(e){const t=e.composedPath(),s=t.findIndex((e=>-1!==this.findElement(e)));if(-1!==s){const e=t[s],i=this.findElement(e);-1!==i&&(this.focusTrapIndex=i)}}manageNewElement(e){requestAnimationFrame((()=>{this.setFocusableElements();const t=this.findElement(e);-1!==t&&(this.focusTrapIndex=t)}))}handleFocusVisible(e){const t=(e.detail?e.detail.sourceEvent:e).composedPath()[0];-1===(e.detail?this.findElement(t):-1)&&t!==this&&this.manageNewElement(t)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeydownFocusTrap),this.addEventListener("focus-visible",this.handleFocusVisible),this.addEventListener("on-focus-trap",this.handleChildFocusTrap),this.addEventListener("on-focus-untrap",this.handleChildFocusUntrap),document.addEventListener("click",this.handleOutsideTrapClick),document.addEventListener("on-widget-update",this.updateFocusableElements),this.addEventListener("input-clear",this.handleFocusOnClear)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydownFocusTrap),this.removeEventListener("focus-visible",this.handleFocusVisible),this.removeEventListener("on-focus-trap",this.handleChildFocusTrap),this.removeEventListener("on-focus-untrap",this.handleChildFocusUntrap),document.removeEventListener("click",this.handleOutsideTrapClick),document.removeEventListener("on-widget-update",this.updateFocusableElements),this.removeEventListener("input-clear",this.handleFocusOnClear),this.focusableTimer&&clearTimeout(this.focusableTimer)}}return l([(0,n.internalProperty)()],t.prototype,"focusableElements",void 0),l([(0,n.internalProperty)()],t.prototype,"initialFocusComplete",void 0),l([(0,n.internalProperty)()],t.prototype,"focusableTimer",void 0),l([(0,n.property)({type:Boolean,reflect:!0,attribute:"active-focus-trap"})],t.prototype,"activeFocusTrap",void 0),l([(0,n.property)({type:Boolean,reflect:!0,attribute:"prevent-click-outside"})],t.prototype,"preventClickOutside",void 0),l([(0,n.property)({type:Number,reflect:!0,attribute:"focus-trap-index"})],t.prototype,"focusTrapIndex",void 0),l([(0,n.property)({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],t.prototype,"preventScroll",void 0),(0,o.B)(r,t),t}}}]);
|
package/dist/3820.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1439,3820,6677,9058],{66677:(t,e,n)=>{n.d(e,{sg:()=>o,ws:()=>s});const s=(t,e)=>{const n=[];[e].forEach((e=>{n.push(...((t,e)=>{const n=e.length;if(0===n)return[];const s=[],o=t.toLowerCase(),r=e.toLowerCase();let c=0,u=o.indexOf(r,c);for(;u>-1;)c=u+n,s.push([u,c]),u=o.indexOf(r,u+1);return s})(t,e))}));const s=(([...t])=>{if(!t.length)return[];t.sort(((t,e)=>t[0]!==e[0]?t[0]-e[0]:t[1]-e[1]));const e=[];let n=t[0][0],s=t[0][1];return t.shift(),t.forEach((([t,o])=>{t>=s?(e.push([n,s]),n=t,s=o):o>s&&(s=o)})),e.push([n,s]),e})(n),o=[];let r=0;return s.forEach((([e,n])=>{r!==e&&o.push({range:[e,n],matching:!1,text:t.slice(r,e)}),o.push({range:[e,n],matching:!0,text:t.slice(e,n)}),r=n})),r!==t.length&&o.push({range:[r],matching:!1,text:t.slice(r)}),o};function o(t,e,n){let s;return function(...o){const r=this,c=n&&!s;clearTimeout(s),s=setTimeout((function(){s=null,n||t.apply(r,o)}),e),c&&t.apply(r,o)}}}}]);
|
package/dist/587.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[587],{40587:(e,r,o)=>{o.d(r,{A:()=>a});const a=o(41488).css`.md-coachmark{--coachmark-arrow-border-color:var(--coachmark-default-bg-color)}.md-
|
|
1
|
+
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[587],{40587:(e,r,o)=>{o.d(r,{A:()=>a});const a=o(41488).css`.md-coachmark{--coachmark-arrow-border-color:var(--coachmark-default-bg-color)}.md-coachmark__popper{border-radius:.3125rem;min-width:10.625rem;max-width:18.75rem;width:266px}.md-coachmark__popper .header-container{display:flex;width:100%;gap:.25rem;padding-right:1.75rem;align-items:center}.md-coachmark__popper .header-container.hide-close{margin-right:.75rem}.md-coachmark__popper .header-title{font-family:var(--brand-font-bold);font-size:.875rem;font-weight:var(--brand-font-weight-bold,700);line-height:1.25rem}.md-coachmark__popper .body-container{display:flex}.md-coachmark__popper .md-coachmark__content{font-family:var(--brand-font-regular);font-size:.875rem;font-weight:450;line-height:1.25rem}.md-coachmark__popper .footer-container{display:flex;justify-content:flex-end;flex-direction:row;gap:.5rem;padding-top:.75rem;flex-grow:1}`}}]);
|
package/dist/6015.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[6015],{29599:(s,j,e)=>{var a={"./1c":[32402,2402],"./1c.js":[32402,2402],"./abnf":[52701,2701],"./abnf.js":[52701,2701],"./accesslog":[35076,5076],"./accesslog.js":[35076,5076],"./actionscript":[49115,9115],"./actionscript.js":[49115,9115],"./ada":[99428,9428],"./ada.js":[99428,9428],"./angelscript":[57246,7246],"./angelscript.js":[57246,7246],"./apache":[29980,9980],"./apache.js":[29980,9980],"./applescript":[42731,2731],"./applescript.js":[42731,2731],"./arcade":[18206,8206],"./arcade.js":[18206,8206],"./arduino":[27220,7220],"./arduino.js":[27220,7220],"./armasm":[79139,9139],"./armasm.js":[79139,9139],"./asciidoc":[49405,9405],"./asciidoc.js":[49405,9405],"./aspectj":[36478,6478],"./aspectj.js":[36478,6478],"./autohotkey":[62923,2923],"./autohotkey.js":[62923,2923],"./autoit":[77556,7556],"./autoit.js":[77556,7556],"./avrasm":[13732,3732],"./avrasm.js":[13732,3732],"./awk":[19277,9277],"./awk.js":[19277,9277],"./axapta":[77909,7909],"./axapta.js":[77909,7909],"./bash":[35344,5344],"./bash.js":[35344,5344],"./basic":[6722,6722],"./basic.js":[6722,6722],"./bnf":[75610,5610],"./bnf.js":[75610,5610],"./brainfuck":[25439,5439],"./brainfuck.js":[25439,5439],"./c":[39497,9497],"./c-like":[97053,7053],"./c-like.js":[97053,7053],"./c.js":[39497,9497],"./cal":[67040,7040],"./cal.js":[67040,7040],"./capnproto":[60436,436],"./capnproto.js":[60436,436],"./ceylon":[3838,3838],"./ceylon.js":[3838,3838],"./clean":[78333,8333],"./clean.js":[78333,8333],"./clojure":[80364,364],"./clojure-repl":[5892,5892],"./clojure-repl.js":[5892,5892],"./clojure.js":[80364,364],"./cmake":[56427,6427],"./cmake.js":[56427,6427],"./coffeescript":[64125,4125],"./coffeescript.js":[64125,4125],"./coq":[39081,9081],"./coq.js":[39081,9081],"./cos":[30279,279],"./cos.js":[30279,279],"./cpp":[29721,9721],"./cpp.js":[29721,9721],"./crmsh":[67015,7015],"./crmsh.js":[67015,7015],"./crystal":[33270,3270],"./crystal.js":[33270,3270],"./cs":[21352,1352],"./cs.js":[21352,1352],"./csharp":[88425,8425],"./csharp.js":[88425,8425],"./csp":[82086,2086],"./csp.js":[82086,2086],"./css":[53315,3315],"./css.js":[53315,3315],"./d":[91036,1036],"./d.js":[91036,1036],"./dart":[81192,8811],"./dart.js":[81192,8811],"./delphi":[61870,1870],"./delphi.js":[61870,1870],"./diff":[6033,6033],"./diff.js":[6033,6033],"./django":[35133,5133],"./django.js":[35133,5133],"./dns":[49927,9927],"./dns.js":[49927,9927],"./dockerfile":[26756,6756],"./dockerfile.js":[26756,6756],"./dos":[55754,5754],"./dos.js":[55754,5754],"./dsconfig":[91533,1533],"./dsconfig.js":[91533,1533],"./dts":[39129,9129],"./dts.js":[39129,9129],"./dust":[14058,4058],"./dust.js":[14058,4058],"./ebnf":[44177,4177],"./ebnf.js":[44177,4177],"./elixir":[81297,1297],"./elixir.js":[81297,1297],"./elm":[42292,2292],"./elm.js":[42292,2292],"./erb":[84663,7044],"./erb.js":[84663,7044],"./erlang":[945,945],"./erlang-repl":[81983,1983],"./erlang-repl.js":[81983,1983],"./erlang.js":[945,945],"./excel":[58451,8451],"./excel.js":[58451,8451],"./fix":[7003,7003],"./fix.js":[7003,7003],"./flix":[24701,4701],"./flix.js":[24701,4701],"./fortran":[30258,258],"./fortran.js":[30258,258],"./fsharp":[94108,4108],"./fsharp.js":[94108,4108],"./gams":[48126,8126],"./gams.js":[48126,8126],"./gauss":[25117,5117],"./gauss.js":[25117,5117],"./gcode":[19156,9156],"./gcode.js":[19156,9156],"./gherkin":[13666,3666],"./gherkin.js":[13666,3666],"./glsl":[19614,9614],"./glsl.js":[19614,9614],"./gml":[2904,2904],"./gml.js":[2904,2904],"./go":[22183,4564],"./go.js":[22183,4564],"./golo":[14205,4205],"./golo.js":[14205,4205],"./gradle":[29789,9789],"./gradle.js":[29789,9789],"./groovy":[72896,2896],"./groovy.js":[72896,2896],"./haml":[57292,7292],"./haml.js":[57292,7292],"./handlebars":[18514,8514],"./handlebars.js":[18514,8514],"./haskell":[34904,4904],"./haskell.js":[34904,4904],"./haxe":[58670,8670],"./haxe.js":[58670,8670],"./hsp":[51679,1679],"./hsp.js":[51679,1679],"./htmlbars":[22329,2329],"./htmlbars.js":[22329,2329],"./http":[73402,3402],"./http.js":[73402,3402],"./hy":[45617,5617],"./hy.js":[45617,5617],"./inform7":[12962,2962],"./inform7.js":[12962,2962],"./ini":[40634,634],"./ini.js":[40634,634],"./irpf90":[76414,6414],"./irpf90.js":[76414,6414],"./isbl":[1012,1012],"./isbl.js":[1012,1012],"./java":[59405,1786],"./java.js":[59405,1786],"./javascript":[95089,5089],"./javascript.js":[95089,5089],"./jboss-cli":[39040,9040],"./jboss-cli.js":[39040,9040],"./json":[65772,5772],"./json.js":[65772,5772],"./julia":[27601,7601],"./julia-repl":[3231,3231],"./julia-repl.js":[3231,3231],"./julia.js":[27601,7601],"./kotlin":[99559,9559],"./kotlin.js":[99559,9559],"./lasso":[31942,1942],"./lasso.js":[31942,1942],"./latex":[8100,8100],"./latex.js":[8100,8100],"./ldif":[86685,6685],"./ldif.js":[86685,6685],"./leaf":[98186,8186],"./leaf.js":[98186,8186],"./less":[52539,2539],"./less.js":[52539,2539],"./lisp":[51077,3458],"./lisp.js":[51077,3458],"./livecodeserver":[75814,5814],"./livecodeserver.js":[75814,5814],"./livescript":[3035,3035],"./livescript.js":[3035,3035],"./llvm":[33543,3543],"./llvm.js":[33543,3543],"./lsl":[3399,3399],"./lsl.js":[3399,3399],"./lua":[32670,2670],"./lua.js":[32670,2670],"./makefile":[59934,9934],"./makefile.js":[59934,9934],"./markdown":[96503,6503],"./markdown.js":[96503,6503],"./mathematica":[55672,5672],"./mathematica.js":[55672,5672],"./matlab":[56023,6023],"./matlab.js":[56023,6023],"./maxima":[29433,9433],"./maxima.js":[29433,9433],"./mel":[68254,8254],"./mel.js":[68254,8254],"./mercury":[48557,8557],"./mercury.js":[48557,8557],"./mipsasm":[24714,4714],"./mipsasm.js":[24714,4714],"./mizar":[69407,9407],"./mizar.js":[69407,9407],"./mojolicious":[90593,593],"./mojolicious.js":[90593,593],"./monkey":[29387,9387],"./monkey.js":[29387,9387],"./moonscript":[75468,5468],"./moonscript.js":[75468,5468],"./n1ql":[52962,581],"./n1ql.js":[52962,581],"./nginx":[4896,4896],"./nginx.js":[4896,4896],"./nim":[63712,3712],"./nim.js":[63712,3712],"./nimrod":[18891,8891],"./nimrod.js":[18891,8891],"./nix":[34659,4659],"./nix.js":[34659,4659],"./node-repl":[26122,6122],"./node-repl.js":[26122,6122],"./nsis":[64561,4561],"./nsis.js":[64561,4561],"./objectivec":[96494,4113],"./objectivec.js":[96494,4113],"./ocaml":[60108,108],"./ocaml.js":[60108,108],"./openscad":[89689,9689],"./openscad.js":[89689,9689],"./oxygene":[78327,8327],"./oxygene.js":[78327,8327],"./parser3":[52052,2052],"./parser3.js":[52052,2052],"./perl":[36891,6891],"./perl.js":[36891,6891],"./pf":[9412,9412],"./pf.js":[9412,9412],"./pgsql":[80431,431],"./pgsql.js":[80431,431],"./php":[34608,4608],"./php-template":[85579,5579],"./php-template.js":[85579,5579],"./php.js":[34608,4608],"./plaintext":[7939,7939],"./plaintext.js":[7939,7939],"./pony":[39350,9350],"./pony.js":[39350,9350],"./powershell":[26571,6571],"./powershell.js":[26571,6571],"./processing":[50181,181],"./processing.js":[50181,181],"./profile":[46269,6269],"./profile.js":[46269,6269],"./prolog":[3105,3105],"./prolog.js":[3105,3105],"./properties":[79975,9975],"./properties.js":[79975,9975],"./protobuf":[25093,5093],"./protobuf.js":[25093,5093],"./puppet":[69104,9104],"./puppet.js":[69104,9104],"./purebasic":[94412,4412],"./purebasic.js":[94412,4412],"./python":[87192,7192],"./python-repl":[90736,736],"./python-repl.js":[90736,736],"./python.js":[87192,7192],"./q":[23255,3255],"./q.js":[23255,3255],"./qml":[55506,5506],"./qml.js":[55506,5506],"./r":[22698,2698],"./r.js":[22698,2698],"./reasonml":[15331,5331],"./reasonml.js":[15331,5331],"./rib":[24745,4745],"./rib.js":[24745,4745],"./roboconf":[75812,5812],"./roboconf.js":[75812,5812],"./routeros":[53557,3557],"./routeros.js":[53557,3557],"./rsl":[53409,3409],"./rsl.js":[53409,3409],"./ruby":[82978,2978],"./ruby.js":[82978,2978],"./ruleslanguage":[78385,8385],"./ruleslanguage.js":[78385,8385],"./rust":[39688,9688],"./rust.js":[39688,9688],"./sas":[7005,7005],"./sas.js":[7005,7005],"./scala":[43618,3618],"./scala.js":[43618,3618],"./scheme":[36617,6617],"./scheme.js":[36617,6617],"./scilab":[92970,2970],"./scilab.js":[92970,2970],"./scss":[3206,3206],"./scss.js":[3206,3206],"./shell":[77918,7918],"./shell.js":[77918,7918],"./smali":[91180,1180],"./smali.js":[91180,1180],"./smalltalk":[72241,2241],"./smalltalk.js":[72241,2241],"./sml":[4460,4460],"./sml.js":[4460,4460],"./sqf":[7186,7186],"./sqf.js":[7186,7186],"./sql":[76384,6384],"./sql.js":[76384,6384],"./sql_more":[30414,414],"./sql_more.js":[30414,414],"./stan":[24490,4490],"./stan.js":[24490,4490],"./stata":[81497,1497],"./stata.js":[81497,1497],"./step21":[36809,6809],"./step21.js":[36809,6809],"./stylus":[62224,2224],"./stylus.js":[62224,2224],"./subunit":[95976,5976],"./subunit.js":[95976,5976],"./swift":[94635,4635],"./swift.js":[94635,4635],"./taggerscript":[98199,8199],"./taggerscript.js":[98199,8199],"./tap":[58713,8713],"./tap.js":[58713,8713],"./tcl":[41519,1519],"./tcl.js":[41519,1519],"./tex":[94321,4321],"./tex.js":[94321,4321],"./thrift":[45449,5449],"./thrift.js":[45449,5449],"./tp":[88454,8454],"./tp.js":[88454,8454],"./twig":[23195,3195],"./twig.js":[23195,3195],"./typescript":[62825,2825],"./typescript.js":[62825,2825],"./vala":[55320,5320],"./vala.js":[55320,5320],"./vbnet":[50959,959],"./vbnet.js":[50959,959],"./vbscript":[27274,4893],"./vbscript-html":[88103,8103],"./vbscript-html.js":[88103,8103],"./vbscript.js":[27274,4893],"./verilog":[57522,7522],"./verilog.js":[57522,7522],"./vhdl":[37492,7492],"./vhdl.js":[37492,7492],"./vim":[1192,1192],"./vim.js":[1192,1192],"./x86asm":[53447,3447],"./x86asm.js":[53447,3447],"./xl":[15790,5790],"./xl.js":[15790,5790],"./xml":[17285,7285],"./xml.js":[17285,7285],"./xquery":[78130,8130],"./xquery.js":[78130,8130],"./yaml":[17533,7533],"./yaml.js":[17533,7533],"./zephir":[57204,7204],"./zephir.js":[57204,7204]};function l(s){if(!e.o(a,s))return Promise.resolve().then((()=>{var j=new Error("Cannot find module '"+s+"'");throw j.code="MODULE_NOT_FOUND",j}));var j=a[s],l=j[0];return e.e(j[1]).then((()=>e.t(l,23)))}l.keys=()=>Object.keys(a),l.id=29599,s.exports=l},45213:(s,j,e)=>{"use strict";e.d(j,{A:()=>a});const a=e(41488).css`:host(md-input-file) md-button{margin:.25rem}:host(md-input-file) input[type=file]{display:none}`}}]);
|
|
1
|
+
(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[6015],{29599:(s,j,e)=>{var a={"./1c":[32402,2402],"./1c.js":[32402,2402],"./abnf":[52701,2701],"./abnf.js":[52701,2701],"./accesslog":[35076,5076],"./accesslog.js":[35076,5076],"./actionscript":[49115,9115],"./actionscript.js":[49115,9115],"./ada":[99428,9428],"./ada.js":[99428,9428],"./angelscript":[57246,7246],"./angelscript.js":[57246,7246],"./apache":[29980,9980],"./apache.js":[29980,9980],"./applescript":[42731,2731],"./applescript.js":[42731,2731],"./arcade":[18206,8206],"./arcade.js":[18206,8206],"./arduino":[27220,7220],"./arduino.js":[27220,7220],"./armasm":[79139,9139],"./armasm.js":[79139,9139],"./asciidoc":[49405,9405],"./asciidoc.js":[49405,9405],"./aspectj":[36478,6478],"./aspectj.js":[36478,6478],"./autohotkey":[62923,2923],"./autohotkey.js":[62923,2923],"./autoit":[77556,7556],"./autoit.js":[77556,7556],"./avrasm":[13732,3732],"./avrasm.js":[13732,3732],"./awk":[19277,9277],"./awk.js":[19277,9277],"./axapta":[77909,7909],"./axapta.js":[77909,7909],"./bash":[35344,5344],"./bash.js":[35344,5344],"./basic":[6722,6722],"./basic.js":[6722,6722],"./bnf":[75610,5610],"./bnf.js":[75610,5610],"./brainfuck":[25439,5439],"./brainfuck.js":[25439,5439],"./c":[39497,9497],"./c-like":[97053,7053],"./c-like.js":[97053,7053],"./c.js":[39497,9497],"./cal":[67040,7040],"./cal.js":[67040,7040],"./capnproto":[60436,436],"./capnproto.js":[60436,436],"./ceylon":[3838,3838],"./ceylon.js":[3838,3838],"./clean":[78333,8333],"./clean.js":[78333,8333],"./clojure":[80364,364],"./clojure-repl":[5892,5892],"./clojure-repl.js":[5892,5892],"./clojure.js":[80364,364],"./cmake":[56427,6427],"./cmake.js":[56427,6427],"./coffeescript":[64125,4125],"./coffeescript.js":[64125,4125],"./coq":[39081,9081],"./coq.js":[39081,9081],"./cos":[30279,279],"./cos.js":[30279,279],"./cpp":[29721,9721],"./cpp.js":[29721,9721],"./crmsh":[67015,7015],"./crmsh.js":[67015,7015],"./crystal":[33270,3270],"./crystal.js":[33270,3270],"./cs":[21352,1352],"./cs.js":[21352,1352],"./csharp":[88425,8425],"./csharp.js":[88425,8425],"./csp":[82086,2086],"./csp.js":[82086,2086],"./css":[53315,3315],"./css.js":[53315,3315],"./d":[91036,1036],"./d.js":[91036,1036],"./dart":[81192,8811],"./dart.js":[81192,8811],"./delphi":[61870,1870],"./delphi.js":[61870,1870],"./diff":[6033,6033],"./diff.js":[6033,6033],"./django":[35133,5133],"./django.js":[35133,5133],"./dns":[49927,9927],"./dns.js":[49927,9927],"./dockerfile":[26756,6756],"./dockerfile.js":[26756,6756],"./dos":[55754,5754],"./dos.js":[55754,5754],"./dsconfig":[91533,1533],"./dsconfig.js":[91533,1533],"./dts":[39129,9129],"./dts.js":[39129,9129],"./dust":[14058,4058],"./dust.js":[14058,4058],"./ebnf":[44177,4177],"./ebnf.js":[44177,4177],"./elixir":[81297,1297],"./elixir.js":[81297,1297],"./elm":[42292,2292],"./elm.js":[42292,2292],"./erb":[84663,4663],"./erb.js":[84663,4663],"./erlang":[945,945],"./erlang-repl":[81983,1983],"./erlang-repl.js":[81983,1983],"./erlang.js":[945,945],"./excel":[58451,8451],"./excel.js":[58451,8451],"./fix":[7003,7003],"./fix.js":[7003,7003],"./flix":[24701,4701],"./flix.js":[24701,4701],"./fortran":[30258,258],"./fortran.js":[30258,258],"./fsharp":[94108,4108],"./fsharp.js":[94108,4108],"./gams":[48126,8126],"./gams.js":[48126,8126],"./gauss":[25117,5117],"./gauss.js":[25117,5117],"./gcode":[19156,9156],"./gcode.js":[19156,9156],"./gherkin":[13666,3666],"./gherkin.js":[13666,3666],"./glsl":[19614,9614],"./glsl.js":[19614,9614],"./gml":[2904,2904],"./gml.js":[2904,2904],"./go":[22183,4564],"./go.js":[22183,4564],"./golo":[14205,4205],"./golo.js":[14205,4205],"./gradle":[29789,9789],"./gradle.js":[29789,9789],"./groovy":[72896,2896],"./groovy.js":[72896,2896],"./haml":[57292,7292],"./haml.js":[57292,7292],"./handlebars":[18514,8514],"./handlebars.js":[18514,8514],"./haskell":[34904,4904],"./haskell.js":[34904,4904],"./haxe":[58670,8670],"./haxe.js":[58670,8670],"./hsp":[51679,1679],"./hsp.js":[51679,1679],"./htmlbars":[22329,2329],"./htmlbars.js":[22329,2329],"./http":[73402,3402],"./http.js":[73402,3402],"./hy":[45617,5617],"./hy.js":[45617,5617],"./inform7":[12962,2962],"./inform7.js":[12962,2962],"./ini":[40634,634],"./ini.js":[40634,634],"./irpf90":[76414,6414],"./irpf90.js":[76414,6414],"./isbl":[1012,1012],"./isbl.js":[1012,1012],"./java":[59405,1786],"./java.js":[59405,1786],"./javascript":[95089,5089],"./javascript.js":[95089,5089],"./jboss-cli":[39040,9040],"./jboss-cli.js":[39040,9040],"./json":[65772,5772],"./json.js":[65772,5772],"./julia":[27601,7601],"./julia-repl":[3231,3231],"./julia-repl.js":[3231,3231],"./julia.js":[27601,7601],"./kotlin":[99559,9559],"./kotlin.js":[99559,9559],"./lasso":[31942,1942],"./lasso.js":[31942,1942],"./latex":[8100,8100],"./latex.js":[8100,8100],"./ldif":[86685,6685],"./ldif.js":[86685,6685],"./leaf":[98186,8186],"./leaf.js":[98186,8186],"./less":[52539,2539],"./less.js":[52539,2539],"./lisp":[51077,3458],"./lisp.js":[51077,3458],"./livecodeserver":[75814,5814],"./livecodeserver.js":[75814,5814],"./livescript":[3035,3035],"./livescript.js":[3035,3035],"./llvm":[33543,3543],"./llvm.js":[33543,3543],"./lsl":[3399,3399],"./lsl.js":[3399,3399],"./lua":[32670,2670],"./lua.js":[32670,2670],"./makefile":[59934,9934],"./makefile.js":[59934,9934],"./markdown":[96503,6503],"./markdown.js":[96503,6503],"./mathematica":[55672,5672],"./mathematica.js":[55672,5672],"./matlab":[56023,6023],"./matlab.js":[56023,6023],"./maxima":[29433,9433],"./maxima.js":[29433,9433],"./mel":[68254,8254],"./mel.js":[68254,8254],"./mercury":[48557,8557],"./mercury.js":[48557,8557],"./mipsasm":[24714,4714],"./mipsasm.js":[24714,4714],"./mizar":[69407,9407],"./mizar.js":[69407,9407],"./mojolicious":[90593,593],"./mojolicious.js":[90593,593],"./monkey":[29387,9387],"./monkey.js":[29387,9387],"./moonscript":[75468,5468],"./moonscript.js":[75468,5468],"./n1ql":[52962,581],"./n1ql.js":[52962,581],"./nginx":[4896,4896],"./nginx.js":[4896,4896],"./nim":[63712,3712],"./nim.js":[63712,3712],"./nimrod":[18891,8891],"./nimrod.js":[18891,8891],"./nix":[34659,4659],"./nix.js":[34659,4659],"./node-repl":[26122,6122],"./node-repl.js":[26122,6122],"./nsis":[64561,4561],"./nsis.js":[64561,4561],"./objectivec":[96494,4113],"./objectivec.js":[96494,4113],"./ocaml":[60108,108],"./ocaml.js":[60108,108],"./openscad":[89689,9689],"./openscad.js":[89689,9689],"./oxygene":[78327,8327],"./oxygene.js":[78327,8327],"./parser3":[52052,2052],"./parser3.js":[52052,2052],"./perl":[36891,6891],"./perl.js":[36891,6891],"./pf":[9412,9412],"./pf.js":[9412,9412],"./pgsql":[80431,431],"./pgsql.js":[80431,431],"./php":[34608,4608],"./php-template":[85579,5579],"./php-template.js":[85579,5579],"./php.js":[34608,4608],"./plaintext":[7939,7939],"./plaintext.js":[7939,7939],"./pony":[39350,9350],"./pony.js":[39350,9350],"./powershell":[26571,6571],"./powershell.js":[26571,6571],"./processing":[50181,181],"./processing.js":[50181,181],"./profile":[46269,6269],"./profile.js":[46269,6269],"./prolog":[3105,3105],"./prolog.js":[3105,3105],"./properties":[79975,9975],"./properties.js":[79975,9975],"./protobuf":[25093,5093],"./protobuf.js":[25093,5093],"./puppet":[69104,9104],"./puppet.js":[69104,9104],"./purebasic":[94412,4412],"./purebasic.js":[94412,4412],"./python":[87192,7192],"./python-repl":[90736,736],"./python-repl.js":[90736,736],"./python.js":[87192,7192],"./q":[23255,3255],"./q.js":[23255,3255],"./qml":[55506,5506],"./qml.js":[55506,5506],"./r":[22698,2698],"./r.js":[22698,2698],"./reasonml":[15331,5331],"./reasonml.js":[15331,5331],"./rib":[24745,4745],"./rib.js":[24745,4745],"./roboconf":[75812,5812],"./roboconf.js":[75812,5812],"./routeros":[53557,3557],"./routeros.js":[53557,3557],"./rsl":[53409,3409],"./rsl.js":[53409,3409],"./ruby":[82978,2978],"./ruby.js":[82978,2978],"./ruleslanguage":[78385,8385],"./ruleslanguage.js":[78385,8385],"./rust":[39688,9688],"./rust.js":[39688,9688],"./sas":[7005,7005],"./sas.js":[7005,7005],"./scala":[43618,3618],"./scala.js":[43618,3618],"./scheme":[36617,6617],"./scheme.js":[36617,6617],"./scilab":[92970,2970],"./scilab.js":[92970,2970],"./scss":[3206,3206],"./scss.js":[3206,3206],"./shell":[77918,7918],"./shell.js":[77918,7918],"./smali":[91180,1180],"./smali.js":[91180,1180],"./smalltalk":[72241,2241],"./smalltalk.js":[72241,2241],"./sml":[4460,4460],"./sml.js":[4460,4460],"./sqf":[7186,7186],"./sqf.js":[7186,7186],"./sql":[76384,6384],"./sql.js":[76384,6384],"./sql_more":[30414,414],"./sql_more.js":[30414,414],"./stan":[24490,4490],"./stan.js":[24490,4490],"./stata":[81497,1497],"./stata.js":[81497,1497],"./step21":[36809,6809],"./step21.js":[36809,6809],"./stylus":[62224,2224],"./stylus.js":[62224,2224],"./subunit":[95976,5976],"./subunit.js":[95976,5976],"./swift":[94635,4635],"./swift.js":[94635,4635],"./taggerscript":[98199,8199],"./taggerscript.js":[98199,8199],"./tap":[58713,8713],"./tap.js":[58713,8713],"./tcl":[41519,1519],"./tcl.js":[41519,1519],"./tex":[94321,4321],"./tex.js":[94321,4321],"./thrift":[45449,5449],"./thrift.js":[45449,5449],"./tp":[88454,8454],"./tp.js":[88454,8454],"./twig":[23195,3195],"./twig.js":[23195,3195],"./typescript":[62825,2825],"./typescript.js":[62825,2825],"./vala":[55320,5320],"./vala.js":[55320,5320],"./vbnet":[50959,959],"./vbnet.js":[50959,959],"./vbscript":[27274,4893],"./vbscript-html":[88103,8103],"./vbscript-html.js":[88103,8103],"./vbscript.js":[27274,4893],"./verilog":[57522,7522],"./verilog.js":[57522,7522],"./vhdl":[37492,7492],"./vhdl.js":[37492,7492],"./vim":[1192,1192],"./vim.js":[1192,1192],"./x86asm":[53447,3447],"./x86asm.js":[53447,3447],"./xl":[15790,5790],"./xl.js":[15790,5790],"./xml":[17285,7285],"./xml.js":[17285,7285],"./xquery":[78130,8130],"./xquery.js":[78130,8130],"./yaml":[17533,7533],"./yaml.js":[17533,7533],"./zephir":[57204,7204],"./zephir.js":[57204,7204]};function l(s){if(!e.o(a,s))return Promise.resolve().then((()=>{var j=new Error("Cannot find module '"+s+"'");throw j.code="MODULE_NOT_FOUND",j}));var j=a[s],l=j[0];return e.e(j[1]).then((()=>e.t(l,23)))}l.keys=()=>Object.keys(a),l.id=29599,s.exports=l},45213:(s,j,e)=>{"use strict";e.d(j,{A:()=>a});const a=e(41488).css`:host(md-input-file) md-button{margin:.25rem}:host(md-input-file) input[type=file]{display:none}`}}]);
|
package/dist/6652.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1439,6652,6677,9058],{63208:(t,e,i)=>{i(17814),i(61200);var o,r=i(31890),a=i(81625),n=i(26272),s=i(41488),d=i(14974),h=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends s.LitElement{constructor(){super(...arguments),this.monthFormat="MMMM yyyy",this.filterParams=void 0,this.handleMonthChange=void 0,this.datePickerProps=void 0,this.shortDay=!1,this.viewAnchorDate=(0,a.tB)(),this.localeMonth=void 0,this.setDate=(t,e)=>{this.viewAnchorDate=t,null==e||e()},this.increaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,a.PS)(i,1),(()=>e&&e(t,this.viewAnchorDate)))},this.decreaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,a.SL)(i,1),(()=>e&&e(t,this.viewAnchorDate)))},this.renderMonthName=()=>s.html` <div class="md-datepicker__navigation--current-month" aria-live="polite">${this.localeMonth}</div> `,this.renderPreviousMonthButton=()=>{var t,e;const i=(null===(t=this.filterParams)||void 0===t?void 0:t.minDate)&&(0,a.PD)(this.viewAnchorDate,null===(e=this.filterParams)||void 0===e?void 0:e.minDate);return s.html`
|
|
1
|
+
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1439,3820,6652,6677,9058],{63208:(t,e,i)=>{i(17814),i(61200);var o,r=i(31890),a=i(81625),n=i(26272),s=i(41488),d=i(14974),h=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends s.LitElement{constructor(){super(...arguments),this.monthFormat="MMMM yyyy",this.filterParams=void 0,this.handleMonthChange=void 0,this.datePickerProps=void 0,this.shortDay=!1,this.viewAnchorDate=(0,a.tB)(),this.localeMonth=void 0,this.setDate=(t,e)=>{this.viewAnchorDate=t,null==e||e()},this.increaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,a.PS)(i,1),(()=>e&&e(t,this.viewAnchorDate)))},this.decreaseMonth=t=>{const{handleMonthChange:e}=this,{viewAnchorDate:i}=this;this.setDate((0,a.SL)(i,1),(()=>e&&e(t,this.viewAnchorDate)))},this.renderMonthName=()=>s.html` <div class="md-datepicker__navigation--current-month" aria-live="polite">${this.localeMonth}</div> `,this.renderPreviousMonthButton=()=>{var t,e;const i=(null===(t=this.filterParams)||void 0===t?void 0:t.minDate)&&(0,a.PD)(this.viewAnchorDate,null===(e=this.filterParams)||void 0===e?void 0:e.minDate);return s.html`
|
|
2
2
|
<md-button
|
|
3
3
|
variant="ghost"
|
|
4
4
|
circle
|
package/dist/6677.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1439,6677,9058],{66677:(t,e,n)=>{function o(t,e,n){let o;return function(...s){const u=this,m=n&&!o;clearTimeout(o),o=setTimeout((function(){o=null,n||t.apply(u,s)}),e),m&&t.apply(u,s)}}n.d(e,{sg:()=>o})}}]);
|
|
1
|
+
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1439,3820,6677,9058],{66677:(t,e,n)=>{function o(t,e,n){let o;return function(...s){const u=this,m=n&&!o;clearTimeout(o),o=setTimeout((function(){o=null,n||t.apply(u,s)}),e),m&&t.apply(u,s)}}n.d(e,{sg:()=>o})}}]);
|
package/dist/754.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[754,3135,8373],{28373:(e,t,s)=>{s.d(t,{d:()=>r});var i=s(90195),n=s(41488),o=s(18889),a=s(32972),
|
|
1
|
+
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[754,3135,8373],{28373:(e,t,s)=>{s.d(t,{d:()=>r});var i=s(90195),n=s(41488),o=s(18889),a=s(32972),l=function(e,t,s,i){var n,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(n=e[l])&&(a=(o<3?n(a):o>3?n(t,s,a):n(t,s))||a);return o>3&&a&&Object.defineProperty(t,s,a),a},c=function(e,t,s,i){return new(s||(s=Promise))((function(n,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function l(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(a,l)}c((i=i.apply(e,t||[])).next())}))};const r=e=>{if((0,o.V)(r,e))return e;class t extends((0,a.y)(e)){constructor(){super(...arguments),this.focusableElements=[],this.initialFocusComplete=!1,this.focusableTimer=[],this.activeFocusTrap=!1,this.preventClickOutside=!1,this.focusTrapIndex=-1,this.preventScroll=!1,this.shouldWrapFocus=()=>!0,this.useLegacyFindFocusable=()=>!0,this.handleFocusOnClear=()=>{this.trapFocus(!0)},this.handleKeydownFocusTrap=e=>{e.code!==i.Uz.Tab||e.shiftKey&&e.code!==i.Uz.Tab||this.activeFocusTrap&&this.focusableElements.length&&(e.shiftKey?(e.preventDefault(),this.trapFocus(!0)):(e.preventDefault(),this.trapFocus(!1)))},this.handleOutsideTrapClick=e=>{let t=!1;const s=e.composedPath();s.length&&(t=!!s.find((e=>e===this)),t||this.preventClickOutside||!this.activeFocusTrap?t&&this.activeFocusTrap&&this.initialFocusComplete&&this.handleClickInsideTrap(e):this.deactivateFocusTrap())},this.updateFocusableElements=()=>{this.focusableTimer&&(clearTimeout(this.focusableTimer),this.focusableElements=[]),this.focusableTimer=setTimeout((()=>{this.setFocusableElements()}),10)},this.handleChildFocusTrap=e=>{e.target!==this&&(e.stopPropagation(),this.deactivateFocusTrap(!1))},this.handleChildFocusUntrap=e=>{e.target!==this&&(e.stopPropagation(),this.activateFocusTrap(!1))}}updated(e){if(super.updated(e),e.has("focusTrapIndex")){const t=e.get("focusTrapIndex"),s=this.focusableElements[t];s&&(s.blur(),s.toggleAttribute("focus-visible",!1));const i=this.focusableElements[this.focusTrapIndex];i&&this.tryFocus(i)}}tryFocus(e){requestAnimationFrame((()=>c(this,void 0,void 0,(function*(){this.isElementFocused(e)&&e.focus({preventScroll:this.preventScroll}),void 0!==e.updateComplete&&(yield e.updateComplete),document.hasFocus()&&this.isElementFocused(e)&&e.focus({preventScroll:this.preventScroll}),this.initialFocusComplete||(this.initialFocusComplete=!0)}))))}domRectCollection(e){return 0===e.getClientRects().length}viewportPosition(e){const{width:t,height:s}=e.getBoundingClientRect(),{offsetWidth:i,offsetHeight:n}=e;return i+n+s+t===0}isNotVisible(e){return"SLOT"!==e.tagName&&(this.viewportPosition(e)||this.domRectCollection(e))}hasHiddenStyle(e){const t=e.style;return t?"none"===t.display||"0"===t.opacity||"hidden"===t.visibility||"collapse"===t.visibility:e instanceof HTMLElement==0}hasComputedHidden(e){const t=getComputedStyle(e);return"hidden"===t.visibility||"0"===t.height}isHidden(e){return e.hasAttribute("hidden")||e.hasAttribute("aria-hidden")&&"true"===e.getAttribute("aria-hidden")||this.hasHiddenStyle(e)||this.isNotVisible(e)||this.hasComputedHidden(e)}isNotTabbable(e){return"-1"===e.getAttribute("tabindex")}isInteractiveElement(e){return e instanceof HTMLButtonElement||e instanceof HTMLDetailsElement||e instanceof HTMLEmbedElement||e instanceof HTMLIFrameElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||!!(e instanceof HTMLAnchorElement&&e.hasAttribute("href"))||e instanceof HTMLInputElement&&"hidden"!==e.type||!(!(e instanceof HTMLAudioElement||e instanceof HTMLVideoElement)||!e.hasAttribute("controls"))||!(!(e instanceof HTMLImageElement||e instanceof HTMLObjectElement)||!e.hasAttribute("usemap"))||!!(e.hasAttribute("tabindex")&&e.tabIndex>-1)}isFocusable(e){return!this.isHidden(e)&&!this.isNotTabbable(e)&&!!this.isInteractiveElement(e)}shouldSkipFocus(e){var t;return(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.split(" ").indexOf("md-combobox-listbox"))>-1}handleFindFocusableSlot(e,t){const s=e.assignedNodes().filter((e=>e.nodeType===e.ELEMENT_NODE));if(s.length){const e=s[0].parentElement;e&&this.findFocusable(e,t)}}findFocusable(e,t){return this.useLegacyFindFocusable()?this.legacyFindFocusable(e,t):this.newFindFocusable(e,t)}legacyFindFocusable(e,t){const s=Array.from(e.children);for(const e of s)if(!this.isHidden(e)){if(this.shouldSkipFocus(e))break;if(this.isFocusable(e)&&t.add(e),e.shadowRoot)this.findFocusable(e.shadowRoot,t);else if("SLOT"===e.tagName){const s=e;this.handleFindFocusableSlot(s,t)}else this.findFocusable(e,t)}return[...t]}newFindFocusable(e,t){const s=Array.from(e.children);for(const e of s)if(!this.isHidden(e)){if(this.shouldSkipFocus(e))break;if(this.isFocusable(e)&&t.add(e),e.shadowRoot)this.findFocusable(e.shadowRoot,t);else if("SLOT"===e.tagName){const s=e;this.handleFindFocusableSlot(s,t)}else this.findFocusable(e,t)}return[...t]}isEqualFocusNode(e,t){return e.nodeType>=0&&t.isEqualNode(e)&&t==e}findElement(e){return this.focusableElements.findIndex((t=>this.isEqualFocusNode(e,t)))}calculateNextFocusIndex(e,t){return t?e>0?e-1:this.shouldWrapFocus()?this.focusableElements.length-1:0:e+1<this.focusableElements.length?e+1:this.shouldWrapFocus()?0:this.focusableElements.length-1}trapFocus(e){const t=this.getDeepActiveElement(),s=this.findElement(t);if(e)-1===s&&this.focusTrapIndex-1>0?this.focusTrapIndex--:this.focusTrapIndex=this.calculateNextFocusIndex(s,e);else if(-1===s&&this.focusTrapIndex+1<this.focusableElements.length)this.focusTrapIndex++;else if(s===this.focusableElements.length-1&&0===this.focusTrapIndex){const e=this.focusableElements[this.focusTrapIndex];e&&this.tryFocus(e)}else this.focusTrapIndex=this.calculateNextFocusIndex(s,e)}hasAutofocus(e){return e.hasAttribute("autofocus")}setInitialFocus(e=0,t=!1){let s=-1;this.initialFocusComplete=!1,this.focusableElements.length&&!t&&(s=this.focusableElements.findIndex(this.hasAutofocus)),this.focusableElements.length&&-1===s&&("object"==typeof e?s=this.findElement(e):"number"==typeof e&&(s=e)),this.focusableElements[s]&&(this.focusTrapIndex=s)}setFocusOnTrigger(e){if(!e)return;const t=this.getDeepNestedTriggerElement(e);if(t.length>0){const e=this.findElement(t[0]);this.focusTrapIndex=e}}getDeepNestedTriggerElement(e){return e.shadowRoot?this.findFocusable(e.shadowRoot,new Set):this.isFocusable(e)?[e]:this.findFocusable(e,new Set)}setFocusableElements(){this.shadowRoot?this.focusableElements=this.findFocusable(this.shadowRoot,new Set):console.warn("shadow root is not available")}firstUpdated(e){const t=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return c(this,void 0,void 0,(function*(){t.firstUpdated.call(this,e),yield new Promise((e=>setTimeout(e,0))),this.setFocusableElements()}))}activateFocusTrap(e=!0){e&&this.dispatchEvent(new CustomEvent("on-focus-trap",{bubbles:!0,composed:!0,cancelable:!0})),this.activeFocusTrap=!0}deactivateFocusTrap(e=!0){this.activeFocusTrap=!1,this.focusTrapIndex=-1,this.removeAttribute("focus-trap-index"),e&&this.dispatchEvent(new CustomEvent("on-focus-untrap",{bubbles:!0,composed:!0,cancelable:!0}))}handleClickInsideTrap(e){const t=e.composedPath(),s=t.findIndex((e=>-1!==this.findElement(e)));if(-1!==s){const e=t[s],i=this.findElement(e);-1!==i&&(this.focusTrapIndex=i)}}manageNewElement(e){requestAnimationFrame((()=>{this.setFocusableElements();const t=this.findElement(e);-1!==t&&(this.focusTrapIndex=t)}))}handleFocusVisible(e){const t=(e.detail?e.detail.sourceEvent:e).composedPath()[0];-1===(e.detail?this.findElement(t):-1)&&t!==this&&this.manageNewElement(t)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeydownFocusTrap),this.addEventListener("focus-visible",this.handleFocusVisible),this.addEventListener("on-focus-trap",this.handleChildFocusTrap),this.addEventListener("on-focus-untrap",this.handleChildFocusUntrap),document.addEventListener("click",this.handleOutsideTrapClick),document.addEventListener("on-widget-update",this.updateFocusableElements),this.addEventListener("input-clear",this.handleFocusOnClear)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeydownFocusTrap),this.removeEventListener("focus-visible",this.handleFocusVisible),this.removeEventListener("on-focus-trap",this.handleChildFocusTrap),this.removeEventListener("on-focus-untrap",this.handleChildFocusUntrap),document.removeEventListener("click",this.handleOutsideTrapClick),document.removeEventListener("on-widget-update",this.updateFocusableElements),this.removeEventListener("input-clear",this.handleFocusOnClear),this.focusableTimer&&clearTimeout(this.focusableTimer)}}return l([(0,n.internalProperty)()],t.prototype,"focusableElements",void 0),l([(0,n.internalProperty)()],t.prototype,"initialFocusComplete",void 0),l([(0,n.internalProperty)()],t.prototype,"focusableTimer",void 0),l([(0,n.property)({type:Boolean,reflect:!0,attribute:"active-focus-trap"})],t.prototype,"activeFocusTrap",void 0),l([(0,n.property)({type:Boolean,reflect:!0,attribute:"prevent-click-outside"})],t.prototype,"preventClickOutside",void 0),l([(0,n.property)({type:Number,reflect:!0,attribute:"focus-trap-index"})],t.prototype,"focusTrapIndex",void 0),l([(0,n.property)({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],t.prototype,"preventScroll",void 0),(0,o.B)(r,t),t}}}]);
|
package/dist/8004.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[8004],{3998:(e,o,t)=>{t.d(o,{S:()=>r});const r=new class{constructor(){this.stack=[]}push(e){this.stack.push(e)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(e){this.stack=this.stack.filter((o=>o!==e))}clear(){this.stack=[]}}},33759:(e,o,t)=>{t.d(o,{h:()=>i});var r=t(66677);class i{constructor(e){this.arrowPixelChange=!1,this.originalParent=null,this.originalNextSibling=null,this.popover=e}setupDelay(){try{const[e,o]=this.popover.delay.split(",").map((e=>{const o=parseInt(e,10);if(Number.isNaN(o)||o<0)throw new Error(`Invalid delay value: ${e}`);return o}));return[e,o]}catch(e){return this.popover.delay="0,0",[0,0]}}setupHoverBridge(e){const o=this.popover.renderRoot.querySelector(".popover-hover-bridge");Object.assign(o.style,{top:"",left:"",right:"",bottom:""});const t=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,r=this.popover.offsetHeight||0,i=this.popover.offsetWidth||0,p=!!this.popover.appendTo&&this.originalParent;if(o){const s=e.split("-")[0];switch(p&&this.popover.trigger.includes("mouseenter")&&o.addEventListener("mouseenter",this.popover.cancelCloseDelay),s){case"top":o.style.height=t,o.style.bottom=`calc(-1 * (${t}))`,o.style.left="50%",o.style.width=`${i}px`;break;case"left":o.style.height=`${r}px`,o.style.width=t,o.style.right=`calc(-1.5 * (${t}))`;break;case"right":o.style.height=`${r}px`,o.style.width=t,o.style.left=`calc(-0.5 * (${t}))`;break;default:o.style.height=t,o.style.top=`calc(-1 * (${t}))`,o.style.left="50%",o.style.width=`${i}px`}}}handleAppendTo(e){if(this.popover.appendTo)if(e){this.originalParent=this.popover.parentNode,this.originalNextSibling=this.popover.nextSibling;const e=(0,r.XI)(this.popover.appendTo,document);if(e&&(this.popover.removeEventListeners(),e.appendChild(this.popover),this.popover.setupTriggerListener(),this.popover.trigger.includes("mouseenter"))){const e=this.popover.renderRoot.querySelector(".popover-hover-bridge");e&&e.addEventListener("mouseenter",this.popover.cancelCloseDelay)}}else this.originalParent&&(this.popover.removeEventListeners(),this.originalNextSibling?this.originalParent.insertBefore(this.popover,this.originalNextSibling):this.originalParent.appendChild(this.popover),this.popover.setupTriggerListener())}setupAccessibility(){var e,o,t;"dialog"!==this.popover.role&&"alertdialog"!==this.popover.role||this.popover.toggleAttribute("aria-modal",this.popover.interactive),this.popover.interactive?(this.popover.setAttribute("aria-modal","true"),this.popover.ariaLabel||(this.popover.ariaLabel=(null===(e=this.popover.triggerElement)||void 0===e?void 0:e.ariaLabel)||(null===(o=this.popover.triggerElement)||void 0===o?void 0:o.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=(null===(t=this.popover.triggerElement)||void 0===t?void 0:t.id)||"")):this.popover.removeAttribute("aria-modal")}updateAriaHasPopupAttribute(){var e,o,t;this.popover.interactive?null===(e=this.popover.triggerElement)||void 0===e||e.setAttribute("aria-haspopup",(null===(o=this.popover.triggerElement)||void 0===o?void 0:o.getAttribute("aria-haspopup"))||"dialog"):null===(t=this.popover.triggerElement)||void 0===t||t.removeAttribute("aria-haspopup")}updateAriaExpandedAttribute(){var e,o;this.popover.disableAriaExpanded?null===(e=this.popover.triggerElement)||void 0===e||e.removeAttribute("aria-expanded"):null===(o=this.popover.triggerElement)||void 0===o||o.setAttribute("aria-expanded",`${this.popover.visible}`)}updateArrowStyle(e,o){var t;if(!this.popover.arrowElement)return;const r=o.split("-")[0],i={top:"bottom",right:"left",bottom:"top",left:"right"}[r],{x:p,y:s}=e,a=this.popover.arrowElement.getBoundingClientRect(),n=null===(t=this.popover.arrowElement.offsetParent)||void 0===t?void 0:t.getBoundingClientRect();if(!this.arrowPixelChange){const e=(null==n?void 0:n[i])?12-Math.abs(a[i]-n[i]):0;1===Math.round(e)?this.arrowPixelChange=!0:this.arrowPixelChange=!1}const d=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",r),Object.assign(this.popover.arrowElement.style,{left:null!=p?`${p}px`:"",top:null!=s?`${s}px`:"",[i]:-this.popover.arrowElement.offsetHeight/2-d+"px"})}updatePopoverStyle(e,o){Object.assign(this.popover.style,{left:`${e}px`,top:`${o}px`})}createBackdrop(){var e;if(!this.popover.backdropElement){const o=document.createElement("div");o.classList.add("popover-backdrop"),null===(e=this.popover.parentElement)||void 0===e||e.appendChild(o);const t=document.createElement("style");t.textContent=`\n .popover-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: transparent;\n z-index: ${this.popover.zIndex-1};\n }\n `,o.appendChild(t),this.popover.backdropElement=o}}}},36365:(e,o,t)=>{t.d(o,{T:()=>r});class r{static dispatchPopoverEvent(e,o){o.dispatchEvent(new CustomEvent(e,{detail:{show:o.visible},composed:!0,bubbles:!0}))}static onShowPopover(e){this.dispatchPopoverEvent("shown",e)}static onHidePopover(e){this.dispatchPopoverEvent("hidden",e)}static onCreatedPopover(e){this.dispatchPopoverEvent("created",e)}static onDestroyedPopover(e){this.dispatchPopoverEvent("destroyed",e)}}},50325:(e,o,t)=>{t.d(o,{A:()=>r});const r=t(41488).css`:host{--md-popover-arrow-border-radius:0.1875rem;--md-popover-arrow-border:0.0625rem solid var(--popover-border-color);--md-popover-elevation-3:var(--md-elevation-3);--md-popover-max-width:max-content;--md-popover-max-height:auto;--md-popover-position:absolute;display:none;position:var(--md-popover-position);top:0;left:0;box-sizing:content-box;background-color:var(--popover-bg-color);border-radius:.5rem;border:.0625rem solid var(--popover-border-color);filter:var(--md-popover-elevation-3);width:var(--md-popover-max-width)}:host([strategy=fixed]){--md-popover-position:fixed}:host([visible]){display:block}:host([color=contrast]){background-color:var(--popover-inverted-bg-color);border-color:var(--popover-inverted-border-color);color:var(--popover-inverted-text-color)}:host([color=contrast]) .popover-arrow{background-color:var(--popover-inverted-bg-color);border-color:var(--popover-inverted-border-color)}:host([color=contrast]) .popover-close{color:var(--popover-inverted-text-color)}:host::part(popover-content){position:relative;padding:.75rem;min-width:max-content;z-index:9998;max-height:var(--md-popover-max-height)}.popover-hover-bridge{position:absolute;transform:translateX(-50%);background:rgba(0,0,0,0);pointer-events:auto}.popover-arrow{position:absolute;width:1rem;height:1rem;background-color:var(--popover-bg-color);transform:rotate(45deg);pointer-events:none;border:var(--md-popover-arrow-border)}.popover-close{position:absolute;right:.75rem;top:.75rem;cursor:pointer;z-index:9999;padding-left:.5rem;width:1.25rem;height:1.25rem}.popover-arrow[data-side=top]{border-top:none;border-left:none;border-bottom-right-radius:var(--md-popover-arrow-border-radius);border-top-left-radius:100%}.popover-arrow[data-side=bottom]{border-bottom:none;border-right:none;border-top-left-radius:var(--md-popover-arrow-border-radius);border-bottom-right-radius:100%}.popover-arrow[data-side=right]{border-top:none;border-right:none;border-bottom-left-radius:var(--md-popover-arrow-border-radius);border-top-right-radius:100%}.popover-arrow[data-side=left]{border-bottom:none;border-left:none;border-top-right-radius:var(--md-popover-arrow-border-radius);border-bottom-left-radius:100%}`},68419:(e,o,t)=>{t.d(o,{ME:()=>r,o$:()=>p,tr:()=>i,zY:()=>s});const r={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},i={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},p={TONAL:"tonal",CONTRAST:"contrast"},s={PLACEMENT:r.BOTTOM,STRATEGY:"absolute",TRIGGER:i.CLICK,COLOR:p.TONAL,OFFSET:4,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:"dialog",Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1}}}]);
|
package/dist/8612.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1465,8612],{5657:(e,t,i)=>{i.d(t,{LG:()=>
|
|
1
|
+
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1465,8612],{5657:(e,t,i)=>{i.d(t,{LG:()=>l,Um:()=>d,i0:()=>n});var a=i(41488),o=i(40333),m=i(31465);const n=(e,t,i,o,m)=>a.html`${e?r(t,i,o,m):c(t,i,m)}`,s=(e,t,i,m)=>a.html`<md-avatar
|
|
2
2
|
size="32"
|
|
3
3
|
type=${i}
|
|
4
4
|
state=${e?"active":"rest"}
|
|
5
5
|
presence-type=${null!=t?t:""}
|
|
6
6
|
newMomentum
|
|
7
7
|
>${null!=m?m:o.nothing}</md-avatar
|
|
8
|
-
>`,r=(e,t,i,o)=>{switch(e.toLowerCase()){case m.r.PROGRESSIVE_CAMPAIGN:case m.r.CALLBACK:case m.r.TELEPHONY:return s(t,i,"channel-call");case m.r.OUTBOUND_TELEPHONY:return s(t,i,"channel-callback");case m.r.INBOUND_TELEPHONY:return s(t,i,"channel-call-inbound");case m.r.APPLE_MESSAGES:return s(t,i,"channel-apple-chat");case m.r.OUTBOUND_CAMPAIGN:return s(t,i,"channel-campaign");case m.r.CHAT:return s(t,i,"channel-chat");case m.r.EMAIL:return s(t,i,"channel-email-inbound");case m.r.SMS:return s(t,i,"channel-sms-inbound");case m.r.FACEBOOK:return s(t,i,"channel-fb-messenger");case m.r.WHATSAPP:return s(t,i,"channel-whats-app");case m.r.MESSENGER:return s(t,i,"channel-facebook");case m.r.MIDCALL_TELEPHONY:return s(t,i,"channel-monitoring");case m.r.OUTBOUND_EMAIL:return s(t,i,"channel-email-outbound");case m.r.OUTBOUND_SMS:return s(t,i,"channel-sms-outbound");case m.r.SOCIAL_X:return s(t,i,"channel-twitter-x");case m.r.VIBER:return s(t,i,"channel-viber");case m.r.WECHAT:return s(t,i,"channel-we-chat");case m.r.WEBEX:return s(t,i,"channel-webex");case m.r.GOOGLE_MESSAGES:return s(t,i,"channel-custom",a.html`<img height="32px" width="32px" src="${o}" />`);case m.r.ICON_SRC:return s(t,i,"channel-custom",a.html`<img height="20px" width="20px" src="${o}" />`);default:return s(t,i,"channel-custom",a.html`<slot name="task-type"></slot>`)}},
|
|
8
|
+
>`,r=(e,t,i,o)=>{switch(e.toLowerCase()){case m.r.PROGRESSIVE_CAMPAIGN:case m.r.CALLBACK:case m.r.TELEPHONY:return s(t,i,"channel-call");case m.r.OUTBOUND_TELEPHONY:return s(t,i,"channel-callback");case m.r.INBOUND_TELEPHONY:return s(t,i,"channel-call-inbound");case m.r.APPLE_MESSAGES:return s(t,i,"channel-apple-chat");case m.r.OUTBOUND_CAMPAIGN:return s(t,i,"channel-campaign");case m.r.CHAT:return s(t,i,"channel-chat");case m.r.EMAIL:return s(t,i,"channel-email-inbound");case m.r.SMS:return s(t,i,"channel-sms-inbound");case m.r.FACEBOOK:return s(t,i,"channel-fb-messenger");case m.r.WHATSAPP:return s(t,i,"channel-whats-app");case m.r.MESSENGER:return s(t,i,"channel-facebook");case m.r.MIDCALL_TELEPHONY:return s(t,i,"channel-monitoring");case m.r.OUTBOUND_EMAIL:return s(t,i,"channel-email-outbound");case m.r.OUTBOUND_SMS:return s(t,i,"channel-sms-outbound");case m.r.SOCIAL_X:return s(t,i,"channel-twitter-x");case m.r.VIBER:return s(t,i,"channel-viber");case m.r.WECHAT:return s(t,i,"channel-we-chat");case m.r.WEBEX:return s(t,i,"channel-webex");case m.r.GOOGLE_MESSAGES:return s(t,i,"channel-custom",a.html`<img height="32px" width="32px" src="${o}" />`);case m.r.ICON_SRC:return s(t,i,"channel-custom",a.html`<img height="20px" width="20px" src="${o}" />`);default:return s(t,i,"channel-custom",a.html`<slot name="task-type"></slot>`)}},l=e=>{switch(e){case m.j.CONSULTING:return a.html` <md-icon name="headset-bold" size="12" iconSet="momentumDesign"></md-icon> `;case m.j.PLAY:return a.html` <md-icon name="play-bold" size="12" iconSet="momentumDesign"></md-icon> `;case m.j.HOLD:return a.html` <md-icon name="pause-bold" size="12" iconSet="momentumDesign"></md-icon> `;case m.j.CONFERENCE:return a.html` <md-icon name="meet-bold" size="16" iconSet="momentumDesign"></md-icon> `;case m.j.TRANSFERED:return a.html` <md-icon name="assign-privilege-bold" size="16" iconSet="momentumDesign"></md-icon> `;case m.j.COURTESY_CALLBACK:return a.html` <md-icon name="callrate-bold" size="12" iconSet="momentumDesign"></md-icon> `;case m.j.CAMPAIGN:return a.html` <md-icon name="announcement-bold" size="12" iconSet="momentumDesign"></md-icon> `;default:return a.html` <slot name="task-status"></slot> `}},c=(e,t,i)=>{switch(e.toLowerCase()){case m.r.TELEPHONY:return a.html`
|
|
9
9
|
<md-badge color="green" circle>
|
|
10
10
|
<md-icon name="handset-filled" size="20" iconSet="momentumDesign"></md-icon>
|
|
11
11
|
</md-badge>
|
|
@@ -56,4 +56,4 @@
|
|
|
56
56
|
<md-badge bgColor="#25D366" circle>
|
|
57
57
|
<md-icon name="whatsApp_16" iconSet="momentumUI" color="white-100"></md-icon>
|
|
58
58
|
</md-badge>
|
|
59
|
-
`;default:return a.html` <slot name="task-type"></slot> `}},d=(e,t,i)=>{if(e<=0)return i.removeAttribute("has-messages"),o.nothing;i.setAttribute("has-messages","true");const m=e>99?"99+":e.toString();return t?a.html` <md-badge color="unreadcount"> ${m} </md-badge>`:a.html` <span class="new-chat-quantity">${m}</span> `}},31465:(e,t,i)=>{i.d(t,{j:()=>a,r:()=>o});const a={CONSULTING:"consulting",PLAY:"play",HOLD:"hold",CONFERENCE:"conference",TRANSFERED:"transfered",COURTESY_CALLBACK:"courtesy_callback",CAMPAIGN:"campaign"},o={TELEPHONY:"telephony",OUTBOUND_TELEPHONY:"outbound telephony",INBOUND_TELEPHONY:"inbound telephony",OUTBOUND_CAMPAIGN:"outbound-campaign",CALLBACK:"callback",CHAT:"chat",PROGRESSIVE_CAMPAIGN:"progressive_campaign",MIDCALL_TELEPHONY:"midcall telephony",APPLE_MESSAGES:"applemessages",ICON_SRC:"icon src",EMAIL:"email",SMS:"sms",FACEBOOK:"facebook",WHATSAPP:"whatsapp",MESSENGER:"messenger",OUTBOUND_EMAIL:"outboundemail",OUTBOUND_SMS:"outboundsms",SOCIAL_X:"socialx",VIBER:"viber",WECHAT:"wechat",WEBEX:"webex",GOOGLE_MESSAGES:"googlemessages"}},50182:(e,t,i)=>{i.d(t,{A:()=>a});const a=i(41488).css`:host{width:100%}.md-taskitem{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:stretch;border-radius:.5rem;color:var(--md-secondary-text-color);cursor:pointer;margin-bottom:4px;min-height:5rem;padding:.75rem;position:relative;width:auto;z-index:0}.md-taskitem.selected{background-color:var(--taskitem-pressed-bg-color,#fff);box-shadow:0 .125rem .25rem rgba(0,0,0,.16)}.md-taskitem.selected .md-taskitem__content_chat,.md-taskitem.selected .md-taskitem__content_popover_title,.md-taskitem.selected .md-taskitem__content_queue{color:var(--taskitem-selected-text-color)}.md-taskitem.selected .md-taskitem__content_title.mainTitle{color:var(--taskitem-selected-text-color)}.md-taskitem:hover{background-color:var(--taskitem-hover-bg-color)}.md-taskitem:hover .md-taskitem__content_chat,.md-taskitem:hover .md-taskitem__content_popover_title,.md-taskitem:hover .md-taskitem__content_queue{color:var(--taskitem-selected-text-color)}.md-taskitem:hover .md-taskitem__content_title.mainTitle{color:var(--taskitem-selected-text-color)}.md-taskitem:active{background-color:var(--taskitem-pressed-bg-color)}.md-taskitem:active .md-taskitem__content_chat,.md-taskitem:active .md-taskitem__content_popover_title,.md-taskitem:active .md-taskitem__content_queue{color:var(--taskitem-selected-text-color)}.md-taskitem:active .md-taskitem__content_title.mainTitle{color:var(--taskitem-selected-text-color)}.md-taskitem:focus{background:var(--taskitem-focus-bg-color);box-shadow:none;outline:0}.md-taskitem:focus::after{box-shadow:0 0 0 .125rem var(--taskitem-focus-border-color,#007aa3)}.md-taskitem::after{bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0;z-index:-1;border-radius:.5rem;margin:-.125rem}.md-taskitem__mediatype{margin-right:.5rem;position:relative;width:2.625rem}.md-taskitem__mediatype img{max-width:fit-content}.md-taskitem__mediatype .md-taskitem__status{align-items:center;display:inline-flex;justify-content:space-around;position:absolute;background:var(--taskitem-status-bg-color);border-radius:50%;bottom:-4px;color:var(--taskitem-status-text-color);height:1.25rem;right:-4px;width:1.25rem}.md-taskitem__mediatype .md-taskitem__status md-icon{height:.75rem}.md-taskitem__mediatype .md-taskitem__status md-icon::part(icon){vertical-align:top}.md-taskitem__mediatype .md-taskitem__status.hold{background:var(--taskitem-status-pause-bg-color)}.md-taskitem__content{align-content:stretch;align-items:flex-start;align-self:stretch;display:flex;flex:0 1 auto;flex-direction:column;justify-content:center;width:calc(100% - (2.625rem + 6.25rem))}.md-taskitem__content_popover_title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--taskitem-text-color);font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:14px;line-height:.9375rem;margin-bottom:.5rem;width:100%}.md-taskitem__content_title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;line-height:1.1875rem;margin-bottom:.5rem;width:100%}.md-taskitem__content_title.mainTitle{color:var(--taskitem-text-color);font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif)}.md-taskitem__content_title.display-only-title{margin-bottom:0;width:6.25rem}.md-taskitem__content_inner{display:flex;flex:0 1 auto;width:100%}.md-taskitem__content_queue{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:.875rem;width:100%}.md-taskitem__content_chat{color:var(--taskitem-chat-text-color);display:flex;font-size:12px;line-height:.875rem;margin-top:.5rem;position:relative;width:100%}.md-taskitem__content_chat .new-chat_massages{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:2.5rem;width:calc(100% - .5rem)}.md-taskitem__addition{align-items:flex-end;display:flex;flex-direction:column;margin-left:.5rem;text-align:right;width:6.25rem}.md-taskitem__addition .new-chat-quantity{background:var(--taskitem-chat-quantity-bg-color);border-radius:9px;color:var(--taskitem-chat-quantity-text-color);display:inline-block;font-size:10px;line-height:.875rem;min-width:18px;padding:.125rem .25rem;text-align:center}:host([is-restyle]) .md-taskitem{padding:.5rem .75rem;justify-content:space-between}:host([is-restyle]) .md-taskitem__mediatype{margin-right:.75rem;white-space:nowrap;width:auto}:host([is-restyle]) .md-taskitem .md-taskitem__content{width:auto;min-width:0;flex:1}:host([is-restyle]) .md-taskitem .md-taskitem__content_popover_title,:host([is-restyle]) .md-taskitem .md-taskitem__content_title{font-size:1rem;font-weight:500;line-height:24px;margin:0;font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);color:var(--taskitem-restyle-text-color)}:host([is-restyle]) .md-taskitem .md-taskitem__content_queue{font-size:.875rem;line-height:20px;color:var(--taskitem-text-color);width:auto}:host([is-restyle]) .md-taskitem .md-taskitem__content_queue_time{font-size:.875rem;line-height:20px;color:var(--taskitem-text-color);margin-left:4px;min-width:4.375rem;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([is-restyle]) .md-taskitem .md-taskitem__content_queue_time_dot{background-color:var(--taskitem-restyle-dot-color);border-radius:50%;height:.25rem;width:.25rem;display:inline-flex;margin:3px 0}:host([is-restyle]) .md-taskitem .md-taskitem__content_queue_time ::slotted(*){display:inline-flex}:host([is-restyle]) .md-taskitem .md-taskitem__content_chat{margin:0;font-size:.875rem;line-height:20px;color:var(--taskitem-text-color)}:host([is-restyle]) .md-taskitem .md-taskitem__content_chat .new-chat_massages{padding:0}:host([is-restyle]) .md-taskitem__addition{white-space:nowrap;margin-left:.75rem;width:auto}:host([is-restyle]) .md-taskitem__addition.empty_addition{margin:0}:host([is-restyle]) .md-taskitem .avatar-badge::part(badge){height:2rem;width:2rem;background-color:var(--avatar-darkgray-bg-color)}:host([is-restyle]) .md-taskitem.selected .avatar-badge::part(badge){background-color:var(--avatar-white-bg-color)}:host([is-restyle]) .md-taskitem.selected .md-taskitem__content_popover_title,:host([is-restyle]) .md-taskitem.selected .md-taskitem__content_title{font-weight:700}:host([is-restyle]) .md-taskitem::after{margin:0}:host([is-restyle][disabled]) .md-taskitem{cursor:not-allowed;pointer-events:none}:host([is-restyle][disabled]) .md-taskitem .md-taskitem__content_chat,:host([is-restyle][disabled]) .md-taskitem .md-taskitem__content_popover_title,:host([is-restyle][disabled]) .md-taskitem .md-taskitem__content_queue,:host([is-restyle][disabled]) .md-taskitem .md-taskitem__content_title{color:var(--taskitem-restyle-text-disabled-color)}:host([is-restyle][has-messages=true]) .md-taskitem__content_popover_title ::part(tooltip_reference),:host([is-restyle][has-messages=true]) .md-taskitem__content_title ::part(tooltip_reference){font-weight:700!important}:host([is-restyle][has-messages=true]) .md-taskitem__addition{margin-left:.75rem!important}@media(forced-colors:active){.md-taskitem:focus{outline:1px solid Highlight}.md-taskitem.selected,.md-taskitem:hover{forced-color-adjust:none;outline:1px solid Highlight;background-color:Highlight;color:HighlightText;box-shadow:none}.md-taskitem:active{forced-color-adjust:none;outline:1px solid HighlightText;background-color:Highlight;color:HighlightText;box-shadow:none}.md-taskitem__addition .new-chat-quantity{forced-color-adjust:auto}}`}}]);
|
|
59
|
+
`;default:return a.html` <slot name="task-type"></slot> `}},d=(e,t,i)=>{if(e<=0)return i.removeAttribute("has-messages"),o.nothing;i.setAttribute("has-messages","true");const m=e>99?"99+":e.toString();return t?a.html` <md-badge color="unreadcount"> ${m} </md-badge>`:a.html` <span class="new-chat-quantity">${m}</span> `}},31465:(e,t,i)=>{i.d(t,{j:()=>a,r:()=>o});const a={CONSULTING:"consulting",PLAY:"play",HOLD:"hold",CONFERENCE:"conference",TRANSFERED:"transfered",COURTESY_CALLBACK:"courtesy_callback",CAMPAIGN:"campaign"},o={TELEPHONY:"telephony",OUTBOUND_TELEPHONY:"outbound telephony",INBOUND_TELEPHONY:"inbound telephony",OUTBOUND_CAMPAIGN:"outbound-campaign",CALLBACK:"callback",CHAT:"chat",PROGRESSIVE_CAMPAIGN:"progressive_campaign",MIDCALL_TELEPHONY:"midcall telephony",APPLE_MESSAGES:"applemessages",ICON_SRC:"icon src",EMAIL:"email",SMS:"sms",FACEBOOK:"facebook",WHATSAPP:"whatsapp",MESSENGER:"messenger",OUTBOUND_EMAIL:"outboundemail",OUTBOUND_SMS:"outboundsms",SOCIAL_X:"socialx",VIBER:"viber",WECHAT:"wechat",WEBEX:"webex",GOOGLE_MESSAGES:"googlemessages"}},50182:(e,t,i)=>{i.d(t,{A:()=>a});const a=i(41488).css`:host{width:100%}.md-taskitem{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:stretch;border-radius:.5rem;color:var(--md-secondary-text-color);cursor:pointer;margin-bottom:4px;min-height:5rem;padding:.75rem;position:relative;width:auto;z-index:0}.md-taskitem.selected{background-color:var(--taskitem-pressed-bg-color,#fff);box-shadow:0 .125rem .25rem rgba(0,0,0,.16)}.md-taskitem.selected .md-taskitem__content_chat,.md-taskitem.selected .md-taskitem__content_popover_title,.md-taskitem.selected .md-taskitem__content_queue{color:var(--taskitem-selected-text-color)}.md-taskitem.selected .md-taskitem__content_title.mainTitle{color:var(--taskitem-selected-text-color)}.md-taskitem:hover{background-color:var(--taskitem-hover-bg-color)}.md-taskitem:hover .md-taskitem__content_chat,.md-taskitem:hover .md-taskitem__content_popover_title,.md-taskitem:hover .md-taskitem__content_queue{color:var(--taskitem-selected-text-color)}.md-taskitem:hover .md-taskitem__content_title.mainTitle{color:var(--taskitem-selected-text-color)}.md-taskitem:active{background-color:var(--taskitem-pressed-bg-color)}.md-taskitem:active .md-taskitem__content_chat,.md-taskitem:active .md-taskitem__content_popover_title,.md-taskitem:active .md-taskitem__content_queue{color:var(--taskitem-selected-text-color)}.md-taskitem:active .md-taskitem__content_title.mainTitle{color:var(--taskitem-selected-text-color)}.md-taskitem:focus{background:var(--taskitem-focus-bg-color);box-shadow:none;outline:0}.md-taskitem:focus::after{box-shadow:0 0 0 .125rem var(--taskitem-focus-border-color,#007aa3)}.md-taskitem::after{bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0;z-index:-1;border-radius:.5rem;margin:-.125rem}.md-taskitem__mediatype{margin-right:.5rem;position:relative;width:2.625rem}.md-taskitem__mediatype img{max-width:fit-content}.md-taskitem__mediatype .md-taskitem__status{align-items:center;display:inline-flex;justify-content:space-around;position:absolute;background:var(--taskitem-status-bg-color);border-radius:50%;bottom:-4px;color:var(--taskitem-status-text-color);height:1.25rem;right:-4px;width:1.25rem}.md-taskitem__mediatype .md-taskitem__status md-icon{height:.75rem}.md-taskitem__mediatype .md-taskitem__status md-icon::part(icon){vertical-align:top}.md-taskitem__mediatype .md-taskitem__status.hold{background:var(--taskitem-status-pause-bg-color)}.md-taskitem__content{align-content:stretch;align-items:flex-start;align-self:stretch;display:flex;flex:0 1 auto;flex-direction:column;justify-content:center;width:calc(100% - (2.625rem + 6.25rem))}.md-taskitem__content_popover_title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--taskitem-text-color);font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:14px;line-height:.9375rem;margin-bottom:.5rem;width:100%}.md-taskitem__content_popover_title.popover-item-title{margin-bottom:0}.md-taskitem__content_title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;line-height:1.1875rem;margin-bottom:.5rem;width:100%}.md-taskitem__content_title.mainTitle{color:var(--taskitem-text-color);font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif)}.md-taskitem__content_title.display-only-title{margin-bottom:0;width:6.25rem}.md-taskitem__content_inner{display:flex;flex:0 1 auto;width:100%}.md-taskitem__content_queue{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:.875rem;width:100%}.md-taskitem__content_chat{color:var(--taskitem-chat-text-color);display:flex;font-size:12px;line-height:.875rem;margin-top:.5rem;position:relative;width:100%}.md-taskitem__content_chat .new-chat_massages{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:2.5rem;width:calc(100% - .5rem)}.md-taskitem__addition{align-items:flex-end;display:flex;flex-direction:column;margin-left:.5rem;text-align:right;width:6.25rem}.md-taskitem__addition .new-chat-quantity{background:var(--taskitem-chat-quantity-bg-color);border-radius:9px;color:var(--taskitem-chat-quantity-text-color);display:inline-block;font-size:10px;line-height:.875rem;min-width:18px;padding:.125rem .25rem;text-align:center}:host([is-restyle]) .md-taskitem{padding:.5rem .75rem;justify-content:space-between}:host([is-restyle]) .md-taskitem__mediatype{margin-right:.75rem;white-space:nowrap;width:auto}:host([is-restyle]) .md-taskitem .md-taskitem__content{width:auto;min-width:0;flex:1}:host([is-restyle]) .md-taskitem .md-taskitem__content_popover_title,:host([is-restyle]) .md-taskitem .md-taskitem__content_title{font-size:1rem;font-weight:500;line-height:24px;margin:0;font-family:var(--brand-font-regular, "CiscoSansTT Regular", "Helvetica Neue", Helvetica, Arial, sans-serif);color:var(--taskitem-restyle-text-color)}:host([is-restyle]) .md-taskitem .md-taskitem__content_queue{font-size:.875rem;line-height:20px;color:var(--taskitem-text-color);width:auto}:host([is-restyle]) .md-taskitem .md-taskitem__content_queue_time{font-size:.875rem;line-height:20px;color:var(--taskitem-text-color);margin-left:4px;min-width:4.375rem;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([is-restyle]) .md-taskitem .md-taskitem__content_queue_time_dot{background-color:var(--taskitem-restyle-dot-color);border-radius:50%;height:.25rem;width:.25rem;display:inline-flex;margin:3px 0}:host([is-restyle]) .md-taskitem .md-taskitem__content_queue_time ::slotted(*){display:inline-flex}:host([is-restyle]) .md-taskitem .md-taskitem__content_chat{margin:0;font-size:.875rem;line-height:20px;color:var(--taskitem-text-color)}:host([is-restyle]) .md-taskitem .md-taskitem__content_chat .new-chat_massages{padding:0}:host([is-restyle]) .md-taskitem__addition{white-space:nowrap;margin-left:.75rem;width:auto}:host([is-restyle]) .md-taskitem__addition.empty_addition{margin:0}:host([is-restyle]) .md-taskitem .avatar-badge::part(badge){height:2rem;width:2rem;background-color:var(--avatar-darkgray-bg-color)}:host([is-restyle]) .md-taskitem.selected .avatar-badge::part(badge){background-color:var(--avatar-white-bg-color)}:host([is-restyle]) .md-taskitem.selected .md-taskitem__content_popover_title,:host([is-restyle]) .md-taskitem.selected .md-taskitem__content_title{font-weight:700}:host([is-restyle]) .md-taskitem::after{margin:0}:host([is-restyle][disabled]) .md-taskitem{cursor:not-allowed;pointer-events:none}:host([is-restyle][disabled]) .md-taskitem .md-taskitem__content_chat,:host([is-restyle][disabled]) .md-taskitem .md-taskitem__content_popover_title,:host([is-restyle][disabled]) .md-taskitem .md-taskitem__content_queue,:host([is-restyle][disabled]) .md-taskitem .md-taskitem__content_title{color:var(--taskitem-restyle-text-disabled-color)}:host([is-restyle][has-messages=true]) .md-taskitem__content_popover_title ::part(tooltip_reference),:host([is-restyle][has-messages=true]) .md-taskitem__content_title ::part(tooltip_reference){font-weight:700!important}:host([is-restyle][has-messages=true]) .md-taskitem__addition{margin-left:.75rem!important}@media(forced-colors:active){.md-taskitem:focus{outline:1px solid Highlight}.md-taskitem.selected,.md-taskitem:hover{forced-color-adjust:none;outline:1px solid Highlight;background-color:Highlight;color:HighlightText;box-shadow:none}.md-taskitem:active{forced-color-adjust:none;outline:1px solid HighlightText;background-color:Highlight;color:HighlightText;box-shadow:none}.md-taskitem__addition .new-chat-quantity{forced-color-adjust:auto}}`}}]);
|
package/dist/9058.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1439,6677,9058],{66677:(n,t,e)=>{function o(n,t){return function t(e){if(!e||e===document||e===window)return null;const o=e.closest(n);return null!=o?o:t(e.getRootNode().host)}(t)}e.d(t,{QZ:()=>o})}}]);
|
|
1
|
+
"use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1439,3820,6677,9058],{66677:(n,t,e)=>{function o(n,t){return function t(e){if(!e||e===document||e===window)return null;const o=e.closest(n);return null!=o?o:t(e.getRootNode().host)}(t)}e.d(t,{QZ:()=>o})}}]);
|