@momentum-ui/web-components 2.22.17 → 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/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/9058.js +1 -1
- package/dist/chunks/{md-7044.js → md-4663.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 +1 -1
- package/dist/comp/md-floating-modal.js +1 -1
- 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-timepicker-entry.js +1 -1
- package/dist/comp/md-timepicker.js +1 -1
- package/dist/index-entry.js +48 -52
- 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/popover/Popover.constants.d.ts +53 -0
- package/dist/types/components/popover/Popover.d.ts +288 -191
- 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/index-entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-virtualizer"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"),require("lit-html/directives/repeat"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit-html/directives/if-defined.js"),require("highlight.js/lib/core"),require("luxon"),require("sortablejs"),require("dompurify"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("country-codes-list"),require("country-flags-svg"),require("libphonenumber-js"),require("lit-html/directives/repeat.js"),require("lit-html/directives/template-content"),require("papaparse"),require("lit-html/directives/unsafe-html"),require("@popperjs/core/lib"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","lit-virtualizer","lit-html/directives/class-map.js","lit-html/directives/until.js","lit-html/directives/repeat","@popperjs/core/lib/modifiers/arrow","@popperjs/core/lib/modifiers/flip","@popperjs/core/lib/modifiers/offset","@popperjs/core/lib/modifiers/preventOverflow","@popperjs/core/lib/popper-lite","lit-html/directives/if-defined.js","highlight.js/lib/core","luxon","sortablejs","dompurify","@interactjs/actions/drag","@interactjs/actions/resize","@interactjs/auto-start","@interactjs/interact/index","@interactjs/modifiers","country-codes-list","country-flags-svg","libphonenumber-js","lit-html/directives/repeat.js","lit-html/directives/template-content","papaparse","lit-html/directives/unsafe-html","@popperjs/core/lib"],e);else{var i="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-virtualizer"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"),require("lit-html/directives/repeat"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit-html/directives/if-defined.js"),require("highlight.js/lib/core"),require("luxon"),require("sortablejs"),require("dompurify"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("country-codes-list"),require("country-flags-svg"),require("libphonenumber-js"),require("lit-html/directives/repeat.js"),require("lit-html/directives/template-content"),require("papaparse"),require("lit-html/directives/unsafe-html"),require("@popperjs/core/lib")):e(t["lit-element"],t["lit-html/directives/style-map"],t["lit-html"],t["lit-html/directives/class-map"],t["lit-html/directives/if-defined"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t.mobx,t["lit-virtualizer"],t["lit-html/directives/class-map.js"],t["lit-html/directives/until.js"],t["lit-html/directives/repeat"],t["@popperjs/core/lib/modifiers/arrow"],t["@popperjs/core/lib/modifiers/flip"],t["@popperjs/core/lib/modifiers/offset"],t["@popperjs/core/lib/modifiers/preventOverflow"],t["@popperjs/core/lib/popper-lite"],t["lit-html/directives/if-defined.js"],t["highlight.js/lib/core"],t.luxon,t.sortablejs,t.dompurify,t["@interactjs/actions/drag"],t["@interactjs/actions/resize"],t["@interactjs/auto-start"],t["@interactjs/interact/index"],t["@interactjs/modifiers"],t["country-codes-list"],t["country-flags-svg"],t["libphonenumber-js"],t["lit-html/directives/repeat.js"],t["lit-html/directives/template-content"],t.papaparse,t["lit-html/directives/unsafe-html"],t["@popperjs/core/lib"]);for(var s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(self,((t,e,i,s,o,r,n,a,l,d,h,p,c,u,m,y,b,v,g,f,w,x,C,$,S,E,T,k,A,I,L,O,M,P,D)=>(()=>{"use strict";var R,_,B,F,z,V={860:t=>{t.exports=I},1072:(t,e,i)=>{i.d(e,{Theme:()=>s});var s,o=i(77251),r=i(31890),n=i(4893),a=i(4863),l=i(41488),d=i(19130),h=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.darkTheme=!1,this.lumos=!1,this.activeTheme=d.dW,this.placement="bottom",this.popperInstance=null,this.handleTooltipRemoved=()=>{this.hideVirtualTooltip()}}setTheme(){return"momentum"===this.theme?this.darkTheme?d.Pm:d.f3:"lumos"===this.theme?this.darkTheme?d.Lu:d.dW:"momentumV2"===this.theme?this.darkTheme?d.Pm:d.f3:this.lumos?this.darkTheme?d.Lu:d.dW:this.darkTheme?d.Pm:d.f3}getStyleElement(){return document.createElement("style")}applyStyle(){const t=this.shadowRoot;if("adoptedStyleSheets"in document){const e=new CSSStyleSheet;e.replaceSync(this.activeTheme),t.adoptedStyleSheets=[e]}else{const e=this.getStyleElement();e.textContent=this.activeTheme.cssText,t.appendChild(e)}}removeChildFromVirtualPopper(){for(;this.virtualWrapper.firstElementChild;)this.virtualWrapper.firstElementChild.remove()}setInitStyleToVirtualReference(){const{style:t}=this.virtualReference;t.top="0",t.bottom="0",t.left="0",t.right="0",t.width="0",t.height="0",t.zIndex="-1"}setStyleToVirtualReference(t){const{style:e}=this.virtualReference,{top:i,bottom:s,left:o,right:r,width:n,height:a}=t;e.position="fixed",e.top=`${i}px`,e.bottom=`${s}px`,e.left=`${o}px`,e.right=`${r}px`,e.width=`${n}px`,e.height=`${a}px`,e.zIndex="-1"}setVirtualReferencePosition(t){const e=t.getBoundingClientRect();this.setStyleToVirtualReference(e)}initVirtualElements(t,e,i){const s=t.cloneNode(!0);this.virtualWrapper.hasChildNodes()&&this.removeChildFromVirtualPopper(),this.virtualWrapper.append(s),i&&this.setVirtualSlotContent(i),this.setVirtualReferencePosition(e)}setVirtualSlotContent(t){if(this.virtualTooltipContent){for(;this.virtualTooltipContent.firstElementChild;)this.virtualTooltipContent.firstElementChild.remove();t.forEach((t=>this.virtualTooltipContent.append(t)))}}updated(t){super.updated(t),(t.has("lumos")||t.has("darkTheme")||t.has("theme"))&&this.dispatchEvent(new CustomEvent("theme-changed",{composed:!0,bubbles:!0,detail:{darkTheme:this.darkTheme,lumos:this.lumos,theme:this.theme}})),this.activeTheme=this.setTheme(),this.applyStyle()}handleVirtualTooltipCreate(t){t.stopPropagation();const{popper:e,placement:i,reference:s,slotContent:o}=t.detail;this.placement=i,this.initVirtualElements(e,s,o),this.showVirtualTooltip()}handleVirtualTooltipDestroy(t){t.stopPropagation(),this.hideVirtualTooltip()}handleVirtualTooltipChangeMessage(t){const{popper:e,reference:i}=t.detail;if(this.virtualReference!==i)return;const s=e.querySelector(".md-tooltip__content"),o=this.virtualWrapper.querySelector(".md-tooltip__content");if(s&&o){const t=s.textContent,e=o.textContent;t&&e&&(o.textContent=t)}}handleVirtualTooltipSlotChange(t){const{slotContent:e}=t.detail;e&&this.setVirtualSlotContent(e)}destroyPopperInstance(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}createPopperInstance(t){if(this.virtualPopper){const e=8,i=4;this.popperInstance=(0,n.createPopper)(this.virtualReference,this.virtualPopper,{placement:t,modifiers:[...a.defaultModifiers,n.flip,n.offset,n.arrow,{name:"offset",options:{offset:({placement:t})=>{const s=e+i;return t.startsWith("left")||t.startsWith("right")||t.startsWith("top")||t.startsWith("bottom")?[0,s]:[8,8]}}},...this.virtualArrow?[{name:"arrow",options:{element:this.virtualArrow,padding:e}}]:[]]})}}get virtualPopper(){return this.shadowRoot.querySelector(".md-tooltip__popper")}get virtualArrow(){return this.shadowRoot.querySelector(".md-tooltip__arrow")}get virtualTooltipContent(){return this.shadowRoot.querySelector(".md-tooltip__content")}showVirtualTooltip(){this.virtualPopper&&(this.virtualPopper.toggleAttribute("data-show",!0),this.createPopperInstance(this.placement))}hideVirtualTooltip(){this.virtualPopper&&(this.virtualPopper.toggleAttribute("data-show",!1),this.destroyPopperInstance(),this.setInitStyleToVirtualReference())}setupEvents(){this.addEventListener("tooltip-create",this.handleVirtualTooltipCreate),this.addEventListener("tooltip-destroy",this.handleVirtualTooltipDestroy),this.addEventListener("tooltip-message",this.handleVirtualTooltipChangeMessage),this.addEventListener("tooltip-slot",this.handleVirtualTooltipSlotChange),document.addEventListener("tooltip-disconnected",this.handleTooltipRemoved,!0)}teardownEvents(){this.removeEventListener("tooltip-create",this.handleVirtualTooltipCreate),this.removeEventListener("tooltip-destroy",this.handleVirtualTooltipDestroy),this.removeEventListener("tooltip-message",this.handleVirtualTooltipChangeMessage),this.removeEventListener("tooltip-slot",this.handleVirtualTooltipSlotChange),document.removeEventListener("tooltip-disconnected",this.handleTooltipRemoved,!0)}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}firstUpdated(t){const e=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return i=this,s=void 0,r=function*(){e.firstUpdated.call(this,t),yield new Promise((t=>setTimeout(t,0))),this.setupEvents()},new((o=void 0)||(o=Promise))((function(t,e){function n(t){try{l(r.next(t))}catch(t){e(t)}}function a(t){try{l(r.throw(t))}catch(t){e(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o((function(t){t(i)}))).then(n,a)}l((r=r.apply(i,s||[])).next())}));var i,s,o,r}static get styles(){return[d.dW]}render(){return l.html`
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-virtualizer"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"),require("lit-html/directives/repeat"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("@floating-ui/dom"),require("lit-html/directives/if-defined.js"),require("highlight.js/lib/core"),require("luxon"),require("sortablejs"),require("dompurify"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("country-codes-list"),require("country-flags-svg"),require("libphonenumber-js"),require("lit-html/directives/repeat.js"),require("lit-html/directives/template-content"),require("papaparse"),require("lit-html/directives/unsafe-html"),require("@popperjs/core/lib"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","lit-virtualizer","lit-html/directives/class-map.js","lit-html/directives/until.js","lit-html/directives/repeat","@popperjs/core/lib/modifiers/arrow","@popperjs/core/lib/modifiers/flip","@popperjs/core/lib/modifiers/offset","@popperjs/core/lib/modifiers/preventOverflow","@popperjs/core/lib/popper-lite","@floating-ui/dom","lit-html/directives/if-defined.js","highlight.js/lib/core","luxon","sortablejs","dompurify","@interactjs/actions/drag","@interactjs/actions/resize","@interactjs/auto-start","@interactjs/interact/index","@interactjs/modifiers","country-codes-list","country-flags-svg","libphonenumber-js","lit-html/directives/repeat.js","lit-html/directives/template-content","papaparse","lit-html/directives/unsafe-html","@popperjs/core/lib"],e);else{var i="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-virtualizer"),require("lit-html/directives/class-map.js"),require("lit-html/directives/until.js"),require("lit-html/directives/repeat"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("@floating-ui/dom"),require("lit-html/directives/if-defined.js"),require("highlight.js/lib/core"),require("luxon"),require("sortablejs"),require("dompurify"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("country-codes-list"),require("country-flags-svg"),require("libphonenumber-js"),require("lit-html/directives/repeat.js"),require("lit-html/directives/template-content"),require("papaparse"),require("lit-html/directives/unsafe-html"),require("@popperjs/core/lib")):e(t["lit-element"],t["lit-html/directives/style-map"],t["lit-html"],t["lit-html/directives/class-map"],t["lit-html/directives/if-defined"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t.mobx,t["lit-virtualizer"],t["lit-html/directives/class-map.js"],t["lit-html/directives/until.js"],t["lit-html/directives/repeat"],t["@popperjs/core/lib/modifiers/arrow"],t["@popperjs/core/lib/modifiers/flip"],t["@popperjs/core/lib/modifiers/offset"],t["@popperjs/core/lib/modifiers/preventOverflow"],t["@popperjs/core/lib/popper-lite"],t["@floating-ui/dom"],t["lit-html/directives/if-defined.js"],t["highlight.js/lib/core"],t.luxon,t.sortablejs,t.dompurify,t["@interactjs/actions/drag"],t["@interactjs/actions/resize"],t["@interactjs/auto-start"],t["@interactjs/interact/index"],t["@interactjs/modifiers"],t["country-codes-list"],t["country-flags-svg"],t["libphonenumber-js"],t["lit-html/directives/repeat.js"],t["lit-html/directives/template-content"],t.papaparse,t["lit-html/directives/unsafe-html"],t["@popperjs/core/lib"]);for(var s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(self,((t,e,i,s,o,r,n,a,l,d,h,p,c,u,m,y,b,v,g,f,w,x,C,S,$,E,T,k,A,I,L,O,M,P,D,R)=>(()=>{"use strict";var _,B,z,F,V,j={860:t=>{t.exports=L},1072:(t,e,i)=>{i.d(e,{Theme:()=>s});var s,o=i(77251),r=i(31890),n=i(4893),a=i(4863),l=i(41488),d=i(19130),h=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.darkTheme=!1,this.lumos=!1,this.activeTheme=d.dW,this.placement="bottom",this.popperInstance=null,this.handleTooltipRemoved=()=>{this.hideVirtualTooltip()}}setTheme(){return"momentum"===this.theme?this.darkTheme?d.Pm:d.f3:"lumos"===this.theme?this.darkTheme?d.Lu:d.dW:"momentumV2"===this.theme?this.darkTheme?d.Pm:d.f3:this.lumos?this.darkTheme?d.Lu:d.dW:this.darkTheme?d.Pm:d.f3}getStyleElement(){return document.createElement("style")}applyStyle(){const t=this.shadowRoot;if("adoptedStyleSheets"in document){const e=new CSSStyleSheet;e.replaceSync(this.activeTheme),t.adoptedStyleSheets=[e]}else{const e=this.getStyleElement();e.textContent=this.activeTheme.cssText,t.appendChild(e)}}removeChildFromVirtualPopper(){for(;this.virtualWrapper.firstElementChild;)this.virtualWrapper.firstElementChild.remove()}setInitStyleToVirtualReference(){const{style:t}=this.virtualReference;t.top="0",t.bottom="0",t.left="0",t.right="0",t.width="0",t.height="0",t.zIndex="-1"}setStyleToVirtualReference(t){const{style:e}=this.virtualReference,{top:i,bottom:s,left:o,right:r,width:n,height:a}=t;e.position="fixed",e.top=`${i}px`,e.bottom=`${s}px`,e.left=`${o}px`,e.right=`${r}px`,e.width=`${n}px`,e.height=`${a}px`,e.zIndex="-1"}setVirtualReferencePosition(t){const e=t.getBoundingClientRect();this.setStyleToVirtualReference(e)}initVirtualElements(t,e,i){const s=t.cloneNode(!0);this.virtualWrapper.hasChildNodes()&&this.removeChildFromVirtualPopper(),this.virtualWrapper.append(s),i&&this.setVirtualSlotContent(i),this.setVirtualReferencePosition(e)}setVirtualSlotContent(t){if(this.virtualTooltipContent){for(;this.virtualTooltipContent.firstElementChild;)this.virtualTooltipContent.firstElementChild.remove();t.forEach((t=>this.virtualTooltipContent.append(t)))}}updated(t){super.updated(t),(t.has("lumos")||t.has("darkTheme")||t.has("theme"))&&this.dispatchEvent(new CustomEvent("theme-changed",{composed:!0,bubbles:!0,detail:{darkTheme:this.darkTheme,lumos:this.lumos,theme:this.theme}})),this.activeTheme=this.setTheme(),this.applyStyle()}handleVirtualTooltipCreate(t){t.stopPropagation();const{popper:e,placement:i,reference:s,slotContent:o}=t.detail;this.placement=i,this.initVirtualElements(e,s,o),this.showVirtualTooltip()}handleVirtualTooltipDestroy(t){t.stopPropagation(),this.hideVirtualTooltip()}handleVirtualTooltipChangeMessage(t){const{popper:e,reference:i}=t.detail;if(this.virtualReference!==i)return;const s=e.querySelector(".md-tooltip__content"),o=this.virtualWrapper.querySelector(".md-tooltip__content");if(s&&o){const t=s.textContent,e=o.textContent;t&&e&&(o.textContent=t)}}handleVirtualTooltipSlotChange(t){const{slotContent:e}=t.detail;e&&this.setVirtualSlotContent(e)}destroyPopperInstance(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}createPopperInstance(t){if(this.virtualPopper){const e=8,i=4;this.popperInstance=(0,n.createPopper)(this.virtualReference,this.virtualPopper,{placement:t,modifiers:[...a.defaultModifiers,n.flip,n.offset,n.arrow,{name:"offset",options:{offset:({placement:t})=>{const s=e+i;return t.startsWith("left")||t.startsWith("right")||t.startsWith("top")||t.startsWith("bottom")?[0,s]:[8,8]}}},...this.virtualArrow?[{name:"arrow",options:{element:this.virtualArrow,padding:e}}]:[]]})}}get virtualPopper(){return this.shadowRoot.querySelector(".md-tooltip__popper")}get virtualArrow(){return this.shadowRoot.querySelector(".md-tooltip__arrow")}get virtualTooltipContent(){return this.shadowRoot.querySelector(".md-tooltip__content")}showVirtualTooltip(){this.virtualPopper&&(this.virtualPopper.toggleAttribute("data-show",!0),this.createPopperInstance(this.placement))}hideVirtualTooltip(){this.virtualPopper&&(this.virtualPopper.toggleAttribute("data-show",!1),this.destroyPopperInstance(),this.setInitStyleToVirtualReference())}setupEvents(){this.addEventListener("tooltip-create",this.handleVirtualTooltipCreate),this.addEventListener("tooltip-destroy",this.handleVirtualTooltipDestroy),this.addEventListener("tooltip-message",this.handleVirtualTooltipChangeMessage),this.addEventListener("tooltip-slot",this.handleVirtualTooltipSlotChange),document.addEventListener("tooltip-disconnected",this.handleTooltipRemoved,!0)}teardownEvents(){this.removeEventListener("tooltip-create",this.handleVirtualTooltipCreate),this.removeEventListener("tooltip-destroy",this.handleVirtualTooltipDestroy),this.removeEventListener("tooltip-message",this.handleVirtualTooltipChangeMessage),this.removeEventListener("tooltip-slot",this.handleVirtualTooltipSlotChange),document.removeEventListener("tooltip-disconnected",this.handleTooltipRemoved,!0)}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}firstUpdated(t){const e=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return i=this,s=void 0,r=function*(){e.firstUpdated.call(this,t),yield new Promise((t=>setTimeout(t,0))),this.setupEvents()},new((o=void 0)||(o=Promise))((function(t,e){function n(t){try{l(r.next(t))}catch(t){e(t)}}function a(t){try{l(r.throw(t))}catch(t){e(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o((function(t){t(i)}))).then(n,a)}l((r=r.apply(i,s||[])).next())}));var i,s,o,r}static get styles(){return[d.dW]}render(){return l.html`
|
|
2
2
|
<div class="theme-wrapper" part="theme-wrapper">
|
|
3
3
|
<style>
|
|
4
4
|
${o.A} .theme-wrapper {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<div class="md-composite-avatar ${(0,a.classMap)(this.avatarClassMap)}">
|
|
14
14
|
<slot></slot>
|
|
15
15
|
</div>
|
|
16
|
-
`}};d([(0,n.property)({type:Number})],e.prototype,"size",void 0),e=d([(0,r.w)("md-composite-avatar")],e),t.ELEMENT=e}(s||(s={}))},3001:(t,e,i)=>{i.d(e,{Io:()=>n.I,TS:()=>a.T,UM:()=>r.U,dY:()=>o.d,wW:()=>l.w,yC:()=>s.y}),i(18889);var s=i(32972),o=i(28373),r=i(70300),n=i(84624),a=i(68387),l=i(31890)},3288:t=>{t.exports=
|
|
16
|
+
`}};d([(0,n.property)({type:Number})],e.prototype,"size",void 0),e=d([(0,r.w)("md-composite-avatar")],e),t.ELEMENT=e}(s||(s={}))},3001:(t,e,i)=>{i.d(e,{Io:()=>n.I,TS:()=>a.T,UM:()=>r.U,dY:()=>o.d,wW:()=>l.w,yC:()=>s.y}),i(18889);var s=i(32972),o=i(28373),r=i(70300),n=i(84624),a=i(68387),l=i(31890)},3288:t=>{t.exports=k},3527:t=>{t.exports=M},3664:(t,e,i)=>{i.d(e,{Checkbox:()=>s});var s,o=i(90195),r=i(3001),n=i(26272),a=i(31890),l=i(41488),d=i(18841),h=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.autofocus=!1,this._checked=!1,this._indeterminate=!1,this._disabled=!1,this.label="",this.tabIndex=0}get checked(){return this._checked}set checked(t){const e=this._checked;this._checked=t,this.indeterminate||this.setAttribute("aria-checked",`${t}`),this.requestUpdate("checked",e)}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=this._indeterminate;this._indeterminate=t,this.setAttribute("aria-checked","mixed"),this.requestUpdate("indeterminate",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}static get styles(){return[n.A,d.A]}toggleCheckbox(){this.checked=!this.checked}isCheckboxActive(){return this.disabled||this.indeterminate}handleClick(t){this.isCheckboxActive()?t.stopPropagation():(this.toggleCheckbox(),this.handleChange(t))}handleKeyDown(t){const{code:e}=t;e!==o.Uz.Space&&e!==o.Uz.Enter||(t.preventDefault(),this.isCheckboxActive()?t.stopPropagation():(this.toggleCheckbox(),this.handleChange(t)))}handleChange(t){this.dispatchEvent(new CustomEvent("checkbox-change",{bubbles:!0,composed:!0,detail:{sourceEvent:t}}))}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","checkbox"),this.label&&this.setAttribute("aria-label",this.label)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}update(t){super.update(t),t.has("indeterminate")&&(this.checked=!1)}updated(t){super.updated(t),t.has("indeterminate")&&(this.input.indeterminate=this.indeterminate)}render(){return l.html`
|
|
17
17
|
<input
|
|
18
18
|
class="checkbox-input"
|
|
19
19
|
type="checkbox"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<label part="checkbox-label" class="checkbox-label">
|
|
27
27
|
<slot></slot>
|
|
28
28
|
</label>
|
|
29
|
-
`}};h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"checked",null),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"indeterminate",null),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),h([(0,l.property)({type:String})],e.prototype,"label",void 0),h([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,l.query)(".checkbox-input")],e.prototype,"input",void 0),e=h([(0,a.w)("md-checkbox")],e),t.ELEMENT=e}(s||(s={}))},4863:t=>{t.exports=b},4893:t=>{t.exports=D},4928:(t,e,i)=>{i.d(e,{ComboBox:()=>s}),i(20109),i(61200);var s,o=i(90195),r=i(3001),n=i(31890),a=i(66677),l=i(26272),d=i(41488),h=i(40333),p=i(23968),c=i(97822),u=i(22818),m=i(8229),y=i(86635),b=i(97103),v=i(46795),g=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},f=function(t,e,i,s){return new(i||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}))};!function(t){class e{determineMessageType(t){return t.reduce(((t,e)=>"error"===e?t:e.type),"")}filterMessagesByType(t,e){return t.reduce(((t,i)=>i.type===e?t.concat(i.message):t),[])}}t.MessageController=e;let i=class extends((0,r.yC)(d.LitElement)){constructor(){super(...arguments),this._focusedIndex=-1,this._focusedGroupIndex=-1,this.label="Options",this.options=[],this.customOptions=[],this.placeholder="",this.isMulti=!1,this.useVirtualScroll=!1,this.disabled=!1,this.ordered=!1,this.expanded=!1,this.groupExpandedList=[],this.searchItem=!1,this.compact=!1,this.noClearIcon=!1,this.selectWhenInFocus=!1,this.selectedOptions=[],this.visibleOptions=8,this.optionId="",this.optionValue="",this.isCustomContent=!1,this.searchable=!1,this.shape="none",this.value=[],this.inputValue="",this.allowCustomValue=!1,this.autofocus=!1,this.resultsTextLocalization="No Results",this.optionsTextLocalization="No Options",this.trimSpace=!1,this.invalid=!1,this.invalidText="",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForComboBox="",this.clearAriaLabel="Clear",this.arrowAriaLabel="Expand",this.clearIconHeight="auto",this.allTextLocalization="All",this.selectAllTextLocalization="Select All",this.selectedTextLocalization="Selected",this.allowSelectAll=!1,this.showCustomError=!1,this.showLoader=!1,this.showSelectedCount=!1,this.popupChevronAriaHidden="true",this.newMomentum=!1,this.showFilterIcon=!1,this.preventFilter=!1,this.isDropdownArrow=!1,this.comboboxId="",this.helpText="",this.messageArr=[],this.htmlId="",this.readOnly=!1,this.messageController=new e,this.isOptGroup=!1,this.isSelectAllChecked=!1,this.multiSelectedIndex=-1,this.multiSelected=[],this.customContent=[],this.notifySelectedChange=(0,a.sg)((t=>{this.dispatchEvent(new CustomEvent("change-selected",{composed:!0,bubbles:!0,detail:t}))}),0),this.handleGroupFilter=t=>{const e=t.filter((t=>{if("string"!=typeof t&&"true"===t.isLabel)return t.groupName}));return this.searchItem=!0,this.groupExpandedList=e.map((t=>{if("string"!=typeof t)return t.groupName})),t.filter((e=>"string"==typeof e||"true"!==e.isLabel||!!t.find((t=>{if("string"!=typeof e&&"string"!=typeof t)return e.groupName===t.groupName&&"false"===t.isLabel}))))},this.notifyInputValueChanged=(0,a.sg)((t=>{this.dispatchEvent(new CustomEvent("combobox-input",{composed:!0,bubbles:!0,detail:{value:t}})),this.notifySearchResultCount(),this.focusedGroupIndex=0,requestAnimationFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1}))}),250),this.handleOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find((t=>t===this)),e||(this.setVisualListbox(!1),this.unselectedAllMultiTag()))}}get focusedIndex(){return this._focusedIndex}set focusedIndex(t){this.updateFocusedIndex(t)}updateFocusedIndex(t){var e;const i=this._focusedIndex;if(this.checkForVirtualScroll()){let i;i=this.allowSelectAll?0===t?"selectAll":this.getOptionId(this.filteredOptions[t-1]):this.getOptionId(this.filteredOptions[t]);const s=this.lists?null===(e=[...this.lists])||void 0===e?void 0:e.find((t=>0!==t.offsetHeight&&t.id===i)):"";this.lists&&[...this.lists].forEach((t=>{t.toggleAttribute("focused",!1)})),s&&(null==s||s.toggleAttribute("focused",!0))}else if(this.lists){const e=this.lists[i];e&&e.toggleAttribute("focused",!1);const s=this.lists[t];s&&s.toggleAttribute("focused",!0)}this._focusedIndex=t,this.requestUpdate("focusedIndex",i)}get focusedGroupIndex(){return this._focusedGroupIndex}set focusedGroupIndex(t){const e=this._focusedGroupIndex;if(this.labels&&0!==this.labels.length){const i=this.labels[e];i&&i.toggleAttribute("focused",!1);const s=this.labels[t];s&&(s.toggleAttribute("focused",!0),s.focus())}this._focusedGroupIndex=t,this.requestUpdate("focusedGroupIndex",e)}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForComboBox=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForComboBox=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForComboBox=`ComboBox Element, ${this.filteredOptions.length} results found.`}firstUpdated(t){this.ariaLabelForComboBox=this.ariaLabel?this.ariaLabel:"ComboBox Element",super.firstUpdated(t),this.isCustomContent&&(this.optionId="id",this.optionValue="value",this.setOptionCustomContent()),this.setInitialValue()}updated(t){super.updated(t),t.has("expanded")&&(this.expanded?(this.resizeListbox(),this.checkSelectedOptions()):this.unCheckAllOptions()),t.has("focusedIndex")&&this.focusedIndex>=0&&(this.checkForVirtualScroll()||this.scrollToOption()),t.has("value")&&0===this.selectedOptions.length&&this.setInitialValue(),t.has("customOptions")&&this.isCustomContent&&(this.setOptionCustomContent(),this.resizeListbox()),t.has("showCustomError")&&this.resizeListbox(),t.has("showLoader")&&this.resizeListbox(),t.has("searchItem")&&this.resizeListbox()}handleFocusIn(t){var e;this.disabled&&!this.readOnly||(this.noClearIcon&&(requestAnimationFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1})),this.selectWhenInFocus&&this.input.select()),null===(e=super.handleFocusIn)||void 0===e||e.call(this,t)),this.dispatchEvent(new CustomEvent("combobox-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("combobox-focus-out",{composed:!0,bubbles:!0}))}findFilteredOption(t){return this.isOptionObject(t)?this.filteredOptions.findIndex((e=>this.getOptionId(e)===this.getOptionId(t)&&this.getOptionValue(e)===this.getOptionValue(t))):this.filteredOptions.indexOf(t)}setInitialValue(){var t;if(this.value.length)if(this.isMulti)this.value.forEach((t=>{-1!==this.findFilteredOption(t)&&this.setSelectedOption(t)}));else{const e=this.value[0],i=this.findFilteredOption(e);-1!==i&&(this.setSelectedOption(e),this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedIndex=i,this.focusedGroupIndex=-1)}}isOptionObject(t){return"object"==typeof t&&null!==t}setOptionCustomContent(){if(this.isOptGroup){const t=[...this.querySelectorAll("optgroup")],e=[];for(const i of t){const t=i.getAttribute("label"),s=[...i.querySelectorAll("[slot]")];e.push({isLabel:"true",[this.optionValue]:t,groupName:t});for(const i of s){const s=i.getAttribute("aria-label"),o=i.getAttribute("display-value"),r=i.getAttribute("slot");s&&o&&e.push({[this.optionId]:s,[this.optionValue]:o,isLabel:"false",groupName:t,slot:r})}}this.options=e}else this.customContent=[...this.querySelectorAll("[slot]")],this.customContent&&this.customContent.length?this.options=this.customContent.map((t=>{const e=t.getAttribute("aria-label"),i=t.getAttribute("display-value");if(e&&i)return{[this.optionId]:e,[this.optionValue]:i}})):this.options=[]}getOptionValue(t){return this.isOptionObject(t)?t[this.optionValue]:t}getOptionGroupName(t){return null==t?void 0:t.groupName}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}getFocusedItem(t){if(t>=0)return this.filteredOptions[t]}setupEvents(){document.addEventListener("click",this.handleOutsideClick),this.addEventListener("remove-all-selected",this.removeAllSelected),this.addEventListener("selected-changed",this.selectedChange)}teardownEvents(){document.removeEventListener("click",this.handleOutsideClick),this.removeEventListener("remove-all-selected",this.removeAllSelected),this.removeEventListener("selected-changed",this.selectedChange)}setVisualListbox(t){this.expanded=t}setGroupList(t){this.groupExpandedList.includes(t)?(this.groupExpandedList.splice(this.groupExpandedList.indexOf(t),1),this.groupExpandedList=[...this.groupExpandedList]):this.searchItem?this.groupExpandedList.push(t):this.groupExpandedList=[t]}findSelectedOption(t){return this.optionId&&t?this.selectedOptions.findIndex((e=>e&&e[this.optionId]===t[this.optionId])):this.selectedOptions.indexOf(t)}findOptionIndex(t){const e=t.composedPath();if(this.checkForVirtualScroll()){let t="";return[...this.lists].forEach((i=>{e.includes(i)&&(t=i.id)})),this.filteredOptions.findIndex((e=>this.getOptionId(e)===t))}return[...this.lists].findIndex((t=>e.includes(t)))}checkSelectedOptions(){if(this.checkForVirtualScroll()){const t=this.selectedOptions.map((t=>this.getOptionId(t))),e=[...this.lists].filter((t=>"selectAll"!==t.id));null==e||e.forEach((e=>{t.includes(e.id)?(this.isMulti&&(null==e||e.setAttribute("aria-checked","true")),null==e||e.setAttribute("aria-selected","true")):this.isMulti&&(null==e||e.setAttribute("aria-checked","false"))}))}}unCheckAllOptions(){var t;this.checkForVirtualScroll()&&this.isMulti&&(null===(t=[...this.lists])||void 0===t||t.forEach((t=>{"selectAll"!==(null==t?void 0:t.id)&&(null==t||t.setAttribute("aria-checked","false"))})))}setSelectedOption(t){this.isMulti||(this.selectedOptions=[]);const e=this.findSelectedOption(t);if(-1!==e){const t=this.selectedOptions[e];this.selectedOptions.splice(e,1),this.notifySelectedChange({value:t,selected:this.selectedOptions})}else this.selectedOptions.push(t),this.notifySelectedChange({value:t,selected:this.selectedOptions});this.checkSelectedOptions(),this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()),this.requestUpdate()}filterOptions(t){if(this.preventFilter)return this.searchItem=!1,this.options;if(t&&t.length){const e=this.options.filter((e=>this.isOptGroup&&"string"!=typeof e&&"true"===e.isLabel?e:(this.isCustomContent?this.getOptionId(e):this.getOptionValue(e)).toLowerCase().includes(t.toLowerCase())));return this.isOptGroup?this.handleGroupFilter(e):e}return this.searchItem=!1,this.options}getListBoxVerticalPadding(){if(this.listBox){const t=window.getComputedStyle(this.listBox,null),e=parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom"));if(!isNaN(e))return e+2}return 10}resizeListbox(){this.updateOnNextFrame((()=>{var t;let e=0,i=0,s=0;const o=this.getListBoxVerticalPadding();if(this.lists){const t=this.checkForVirtualScroll()?[...this.lists].filter((t=>0!==t.offsetHeight)):[...this.lists];e=t.slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0),s=this.checkForVirtualScroll()&&this.allowSelectAll?t.slice(1,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0):t.slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0)}if(this.labels&&(i=[...this.labels].slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0)),this.listBox&&(this.listBox.style.maxHeight=`${e+i+o}px`),this.virtualizer&&(this.virtualizer.style.height=`${s+o}px`),this.showCustomError||this.showLoader){const e=null===(t=this.listBox)||void 0===t?void 0:t.querySelector("[slot]");this.listBox&&e&&(this.listBox.style.height=`${e.clientHeight+o}px`,this.listBox.style.maxHeight=`${e.clientHeight+o}px`)}}))}setInputValue(t=""){this.input.value=t}updateOnNextFrame(t){requestAnimationFrame(t)}unCheckedAllOptions(){this.isMulti&&(this.lists.forEach(((t,e)=>this.unCheckedOption(e))),this.isSelectAllChecked=!1)}unCheckedOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","false"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}checkAllOptions(){this.isMulti&&this.lists.forEach(((t,e)=>this.checkOption(e)))}checkOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","true"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}isSelectAllSelected(){return this.selectedOptions.length===this.options.length}setFocusOnHost(t){this.setFocus&&this.setFocus(t)}isOptionFocused(t){return this.focusedIndex===t}getAriaState(t){return this.isOptionFocused(t)}scrollToOption(){var t,e;let i=0;const{top:s,bottom:o}=this.listBox.getBoundingClientRect(),r=this.lists[this.focusedIndex],n=null===(t=this.lists[this.focusedIndex+1]||r)||void 0===t?void 0:t.getBoundingClientRect(),a=null===(e=this.lists[this.focusedIndex-1]||r)||void 0===e?void 0:e.getBoundingClientRect();(null==n?void 0:n.bottom)>o?i=n.bottom-o+2:(null==a?void 0:a.top)<s&&(i=a.top-s-2),this.updateOnNextFrame((()=>{this.listBox.scrollTop+=i}))}getCustomContentName(t){const e=this.options.indexOf(t);if(this.isOptGroup){const t=this.options[e];if(t&&"string"!=typeof t)return t.slot}else if(-1!==e)return this.customContent[e].slot}setInputSelectionRange(t,e){this.input.setSelectionRange(t,e)}isOptionChecked(t){return-1!==this.findSelectedOption(t)?"true":"false"}getInputSelection(){return this.input.selectionStart}canMultiSelect(){return 0===this.getInputSelection()&&0!==this.selectedOptions.length&&this.isMulti}removeMultiTag(){this.selected&&this.multiSelected.forEach((t=>{const e=this.selected[t];e&&e.hasAttribute("selected")&&this.removeSelected(this.selectedOptions[t])}))}unselectedAllMultiTag(){this.selected&&this.selected.forEach((t=>t.removeAttribute("selected"))),this.multiSelectedIndex=-1}findLastMultiSelected(){return this.selected[this.multiSelectedIndex]}toggleMultiSelectedTag(t,e){t&&t.toggleAttribute("selected",e)}selectMultiTag(t){if(this.canMultiSelect()){if(!t){this.multiSelected=[];const t=this.findLastMultiSelected();this.toggleMultiSelectedTag(t,!1)}this.multiSelectedIndex<=0?this.multiSelectedIndex=this.selectedOptions.length-1:this.multiSelectedIndex--,this.multiSelected.push(this.multiSelectedIndex);const e=this.findLastMultiSelected();this.toggleMultiSelectedTag(e,!0)}}handleListClick(t){return f(this,void 0,void 0,(function*(){this.dispatchEvent(new CustomEvent("selected-changed",{detail:{event:t}})),yield this.updateComplete,this.isMulti?this.setVisualListbox(!0):this.setVisualListbox(!1),this.updateOnNextFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1}))}))}handleSelectAll(){return f(this,void 0,void 0,(function*(){this.isSelectAllChecked=!this.isSelectAllChecked,this.isSelectAllChecked?(this.selectedOptions=[...this.options],this.checkAllOptions()):(this.selectedOptions=[],this.unCheckedAllOptions()),yield this.updateComplete,this.setVisualListbox(!0),this.notifySelectedChange({selected:this.selectedOptions})}))}handleInputKeyUp(t){switch(t.code){case o.Uz.Escape:break;case o.Uz.Backspace:this.setFocusOnHost(!0),this.setVisualListbox(!0),this.resizeListbox(),this.removeMultiTag();break;case o.Uz.ArrowLeft:this.isMulti&&(t.shiftKey?this.selectMultiTag(!0):this.selectMultiTag(!1));break;default:this.isMulti&&this.unselectedAllMultiTag()}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}removeAllSelected(){var t;this.focusedIndex=-1,this.focusedGroupIndex=-1,this.selectedOptions=[],this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.unCheckedAllOptions(),this.setSelectedAttribute(void 0),this.updateOnNextFrame((()=>{this.input.focus()})),this.notifySelectedChange({selected:this.selectedOptions})}removeSelected(t){const e=this.findSelectedOption(t),i=this.filteredOptions.indexOf(t);-1!==i&&this.unCheckedOption(i),-1!==e&&(this.selectedOptions.splice(e,1),this.requestUpdate()),this.updateOnNextFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1}))}selectedChange(t){var e;const{event:i}=t.detail;let s=this.findOptionIndex(i);if(-1!==s){this.focusedIndex=this.allowSelectAll&&this.checkForVirtualScroll()?s+1:s,this.isMulti&&this.allowSelectAll&&!this.checkForVirtualScroll()&&(s-=1);const t=this.getFocusedItem(s);this.setSelectedAttribute(t),t&&(this.setSelectedOption(t),this.isMulti?this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()):(this.setInputValue(this.getOptionValue(t)),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(t))))}}setSelectedAttribute(t){var e;let i="";t&&(i=this.getOptionId(t)),null===(e=this.lists)||void 0===e||e.forEach(((t,e)=>{(null==t?void 0:t.id)===i?null==t||t.setAttribute("selected","true"):null==t||t.setAttribute("selected","false")}))}shouldChangeButton(){const t=this.input&&this.input.value.length>0&&!this.noClearIcon||this.isMulti&&this.selectedOptions.length&&!this.noClearIcon;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}setCustomValue(){this.optionId||this.optionValue||(this.options=[...this.options,this.inputValue],this.setSelectedOption(this.inputValue),this.isMulti||this.updateOnNextFrame((()=>{var t;this.focusedIndex=this.filteredOptions.length-1;const e=this.getFocusedItem(this.focusedIndex);e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))})),this.dispatchEvent(new CustomEvent("custom-value-add",{composed:!0,bubbles:!0,detail:{value:this.inputValue}}))),this.inputValue=""}handleGroupFocus(){this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.filteredGroupOptions.length>0&&-1===this.focusedGroupIndex&&(this.focusedGroupIndex=this.filteredGroupOptions.findIndex((t=>"string"!=typeof t&&t.groupName===this.groupExpandedList[0]))),this.updateOnNextFrame((()=>{-1===this.focusedGroupIndex||!this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length-1||this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length?this.focusedGroupIndex=0:this.focusedGroupIndex++})),this.focusedIndex=-1}handleInputKeyDown(t){var e,i;switch(t.code){case o.Uz.Backspace:this.focusedIndex=-1;break;case o.Uz.Tab:case o.Uz.Enter:if(this.setFocusOnHost(!0),this.expanded&&this.updateOnNextFrame((()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);this.allowCustomValue&&this.input&&this.input.value.length&&-1===this.findFilteredOption(this.inputValue)?this.setCustomValue():(e&&(this.setSelectedAttribute(e),this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll())})),this.setVisualListbox(!1),t.code===o.Uz.Tab&&this.isMulti)return;break;case o.Uz.ArrowDown:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame((()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1}));break;case o.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame((()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedGroupIndex=-1)}));break;case o.Uz.ArrowLeft:case o.Uz.ArrowRight:t.stopPropagation();break;case o.Uz.Escape:this.setFocusOnHost(!0),this.expanded?(t.stopPropagation(),this.setVisualListbox(!1)):(this.setInputValue(),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,""),this.focusedIndex=-1,this.focusedGroupIndex=-1,this.removeAllSelected(),this.setSelectedAttribute(void 0));break;case o.Uz.Home:this.setInputSelectionRange(0,0);break;case o.Uz.End:{const{length:t}=this.inputValue;this.setInputSelectionRange(t,t)}break;case o.Uz.Space:if(this.isMulti&&this.expanded){t.preventDefault();const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.setSelectedAttribute(e),this.showSelectedCount||(this.setInputValue(),null===(i=this.input)||void 0===i||i.setAttribute(o.iw.AriaActivedescendant,""))),0===this.focusedIndex&&this.allowSelectAll&&this.handleSelectAll()}this.expanded=!0}}handleGroupLabelKeyDown(t,e){switch(t.code){case o.Uz.Tab:this.handleGroupFocus();break;case o.Uz.Enter:case o.Uz.Space:-1!==this.focusedGroupIndex?this.toggleGroupListBox(t,e.value):(this.setFocusOnHost(!0),this.setVisualListbox(!1),this.updateOnNextFrame((()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.updateOnNextFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1})))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll()})));break;case o.Uz.ArrowDown:if(0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame((()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1}));break;case o.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame((()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))}));break;case o.Uz.Escape:this.focusedGroupIndex=-1,this.setVisualListbox(!1),this.setFocusOnHost(!0),this.input.focus();break;default:this.setVisualListbox(!0)}}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-combobox-listbox"))t.target.focus();else if("md-icon"===t.target.localName){const s=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(s){const t=s.querySelector(".md-combobox-listbox");(0,b.setTimeout)((()=>{t.focus()}),10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus(),this.setGroupList(""),this.focusedGroupIndex=-1}}toggleGroupListBox(t,e){t.stopPropagation(),this.focusedGroupIndex=this.filteredGroupOptions.findIndex((t=>"string"!=typeof t&&t.groupName===e)),this.setGroupList(e),this.resizeListbox()}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}connectedCallback(){super.connectedCallback(),this.setupEvents(),this.querySelector("optgroup")&&(this.isOptGroup=!0)}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}static get styles(){return[l.A,v.A]}get listItemOptionMap(){return{"md-combobox-multiselect":this.isMulti,compact:this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}get filteredOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter((t=>!this.isOptGroup||("string"!=typeof t&&this.groupExpandedList.includes(this.getOptionGroupName(t))?"false"===t.isLabel:void 0)))}get filteredGroupOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter((t=>!this.isOptGroup||("string"!=typeof t?"true"===t.isLabel:void 0)))}get comboBoxTemplateClassMap(){return{[`md-combobox--${this.shape}`]:!!this.shape,"md-combobox-searchable":this.searchable,"md-combobox-has-leading-icon":this.searchable||this.showFilterIcon,"md-new-combobox":this.newMomentum,[`md-${this.messageType}`]:!!this.messageType,"md-combobox-readonly":this.readOnly,"md-combobox-compact":this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}searchIconTemplate(){return this.leadingIconTemplate("search-bold","search-icon")}filterIconTemplate(){return this.leadingIconTemplate("filter-bold","filter-icon")}leadingIconTemplate(t,e){return d.html`
|
|
29
|
+
`}};h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"checked",null),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"indeterminate",null),h([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),h([(0,l.property)({type:String})],e.prototype,"label",void 0),h([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,l.query)(".checkbox-input")],e.prototype,"input",void 0),e=h([(0,a.w)("md-checkbox")],e),t.ELEMENT=e}(s||(s={}))},4863:t=>{t.exports=b},4893:t=>{t.exports=R},4928:(t,e,i)=>{i.d(e,{ComboBox:()=>s}),i(20109),i(61200);var s,o=i(90195),r=i(3001),n=i(31890),a=i(66677),l=i(26272),d=i(41488),h=i(40333),p=i(23968),c=i(97822),u=i(22818),m=i(8229),y=i(86635),b=i(97103),v=i(46795),g=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},f=function(t,e,i,s){return new(i||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}))};!function(t){class e{determineMessageType(t){return t.reduce(((t,e)=>"error"===e?t:e.type),"")}filterMessagesByType(t,e){return t.reduce(((t,i)=>i.type===e?t.concat(i.message):t),[])}}t.MessageController=e;let i=class extends((0,r.yC)(d.LitElement)){constructor(){super(...arguments),this._focusedIndex=-1,this._focusedGroupIndex=-1,this.label="Options",this.options=[],this.customOptions=[],this.placeholder="",this.isMulti=!1,this.useVirtualScroll=!1,this.disabled=!1,this.ordered=!1,this.expanded=!1,this.groupExpandedList=[],this.searchItem=!1,this.compact=!1,this.noClearIcon=!1,this.selectWhenInFocus=!1,this.selectedOptions=[],this.visibleOptions=8,this.optionId="",this.optionValue="",this.isCustomContent=!1,this.searchable=!1,this.shape="none",this.value=[],this.inputValue="",this.allowCustomValue=!1,this.autofocus=!1,this.resultsTextLocalization="No Results",this.optionsTextLocalization="No Options",this.trimSpace=!1,this.invalid=!1,this.invalidText="",this.ariaLabel="",this.searchResultAriaLabel="",this.ariaLabelForComboBox="",this.clearAriaLabel="Clear",this.arrowAriaLabel="Expand",this.clearIconHeight="auto",this.allTextLocalization="All",this.selectAllTextLocalization="Select All",this.selectedTextLocalization="Selected",this.allowSelectAll=!1,this.showCustomError=!1,this.showLoader=!1,this.showSelectedCount=!1,this.popupChevronAriaHidden="true",this.newMomentum=!1,this.showFilterIcon=!1,this.preventFilter=!1,this.isDropdownArrow=!1,this.comboboxId="",this.helpText="",this.messageArr=[],this.htmlId="",this.readOnly=!1,this.messageController=new e,this.isOptGroup=!1,this.isSelectAllChecked=!1,this.multiSelectedIndex=-1,this.multiSelected=[],this.customContent=[],this.notifySelectedChange=(0,a.sg)((t=>{this.dispatchEvent(new CustomEvent("change-selected",{composed:!0,bubbles:!0,detail:t}))}),0),this.handleGroupFilter=t=>{const e=t.filter((t=>{if("string"!=typeof t&&"true"===t.isLabel)return t.groupName}));return this.searchItem=!0,this.groupExpandedList=e.map((t=>{if("string"!=typeof t)return t.groupName})),t.filter((e=>"string"==typeof e||"true"!==e.isLabel||!!t.find((t=>{if("string"!=typeof e&&"string"!=typeof t)return e.groupName===t.groupName&&"false"===t.isLabel}))))},this.notifyInputValueChanged=(0,a.sg)((t=>{this.dispatchEvent(new CustomEvent("combobox-input",{composed:!0,bubbles:!0,detail:{value:t}})),this.notifySearchResultCount(),this.focusedGroupIndex=0,requestAnimationFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1}))}),250),this.handleOutsideClick=t=>{let e=!1;const i=t.composedPath();i.length&&(e=!!i.find((t=>t===this)),e||(this.setVisualListbox(!1),this.unselectedAllMultiTag()))}}get focusedIndex(){return this._focusedIndex}set focusedIndex(t){this.updateFocusedIndex(t)}updateFocusedIndex(t){var e;const i=this._focusedIndex;if(this.checkForVirtualScroll()){let i;i=this.allowSelectAll?0===t?"selectAll":this.getOptionId(this.filteredOptions[t-1]):this.getOptionId(this.filteredOptions[t]);const s=this.lists?null===(e=[...this.lists])||void 0===e?void 0:e.find((t=>0!==t.offsetHeight&&t.id===i)):"";this.lists&&[...this.lists].forEach((t=>{t.toggleAttribute("focused",!1)})),s&&(null==s||s.toggleAttribute("focused",!0))}else if(this.lists){const e=this.lists[i];e&&e.toggleAttribute("focused",!1);const s=this.lists[t];s&&s.toggleAttribute("focused",!0)}this._focusedIndex=t,this.requestUpdate("focusedIndex",i)}get focusedGroupIndex(){return this._focusedGroupIndex}set focusedGroupIndex(t){const e=this._focusedGroupIndex;if(this.labels&&0!==this.labels.length){const i=this.labels[e];i&&i.toggleAttribute("focused",!1);const s=this.labels[t];s&&(s.toggleAttribute("focused",!0),s.focus())}this._focusedGroupIndex=t,this.requestUpdate("focusedGroupIndex",e)}get messageType(){return this.messageArr.length>0?this.messageController.determineMessageType(this.messageArr):null}get messages(){return this.messageType?this.messageController.filterMessagesByType(this.messageArr,this.messageType):null}notifySearchResultCount(){if(this.searchResultAriaLabel){const t=/{{.*?}}/g;this.ariaLabelForComboBox=this.searchResultAriaLabel.replace(t,this.filteredOptions.length.toString())}else this.ariaLabel?this.ariaLabelForComboBox=`${this.ariaLabel}, ${this.filteredOptions.length} results found.`:this.ariaLabelForComboBox=`ComboBox Element, ${this.filteredOptions.length} results found.`}firstUpdated(t){this.ariaLabelForComboBox=this.ariaLabel?this.ariaLabel:"ComboBox Element",super.firstUpdated(t),this.isCustomContent&&(this.optionId="id",this.optionValue="value",this.setOptionCustomContent()),this.setInitialValue()}updated(t){super.updated(t),t.has("expanded")&&(this.expanded?(this.resizeListbox(),this.checkSelectedOptions()):this.unCheckAllOptions()),t.has("focusedIndex")&&this.focusedIndex>=0&&(this.checkForVirtualScroll()||this.scrollToOption()),t.has("value")&&0===this.selectedOptions.length&&this.setInitialValue(),t.has("customOptions")&&this.isCustomContent&&(this.setOptionCustomContent(),this.resizeListbox()),t.has("showCustomError")&&this.resizeListbox(),t.has("showLoader")&&this.resizeListbox(),t.has("searchItem")&&this.resizeListbox()}handleFocusIn(t){var e;this.disabled&&!this.readOnly||(this.noClearIcon&&(requestAnimationFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1})),this.selectWhenInFocus&&this.input.select()),null===(e=super.handleFocusIn)||void 0===e||e.call(this,t)),this.dispatchEvent(new CustomEvent("combobox-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){var e;null===(e=super.handleFocusOut)||void 0===e||e.call(this,t),this.dispatchEvent(new CustomEvent("combobox-focus-out",{composed:!0,bubbles:!0}))}findFilteredOption(t){return this.isOptionObject(t)?this.filteredOptions.findIndex((e=>this.getOptionId(e)===this.getOptionId(t)&&this.getOptionValue(e)===this.getOptionValue(t))):this.filteredOptions.indexOf(t)}setInitialValue(){var t;if(this.value.length)if(this.isMulti)this.value.forEach((t=>{-1!==this.findFilteredOption(t)&&this.setSelectedOption(t)}));else{const e=this.value[0],i=this.findFilteredOption(e);-1!==i&&(this.setSelectedOption(e),this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedIndex=i,this.focusedGroupIndex=-1)}}isOptionObject(t){return"object"==typeof t&&null!==t}setOptionCustomContent(){if(this.isOptGroup){const t=[...this.querySelectorAll("optgroup")],e=[];for(const i of t){const t=i.getAttribute("label"),s=[...i.querySelectorAll("[slot]")];e.push({isLabel:"true",[this.optionValue]:t,groupName:t});for(const i of s){const s=i.getAttribute("aria-label"),o=i.getAttribute("display-value"),r=i.getAttribute("slot");s&&o&&e.push({[this.optionId]:s,[this.optionValue]:o,isLabel:"false",groupName:t,slot:r})}}this.options=e}else this.customContent=[...this.querySelectorAll("[slot]")],this.customContent&&this.customContent.length?this.options=this.customContent.map((t=>{const e=t.getAttribute("aria-label"),i=t.getAttribute("display-value");if(e&&i)return{[this.optionId]:e,[this.optionValue]:i}})):this.options=[]}getOptionValue(t){return this.isOptionObject(t)?t[this.optionValue]:t}getOptionGroupName(t){return null==t?void 0:t.groupName}getOptionId(t){return this.isOptionObject(t)?t[this.optionId]:t}getFocusedItem(t){if(t>=0)return this.filteredOptions[t]}setupEvents(){document.addEventListener("click",this.handleOutsideClick),this.addEventListener("remove-all-selected",this.removeAllSelected),this.addEventListener("selected-changed",this.selectedChange)}teardownEvents(){document.removeEventListener("click",this.handleOutsideClick),this.removeEventListener("remove-all-selected",this.removeAllSelected),this.removeEventListener("selected-changed",this.selectedChange)}setVisualListbox(t){this.expanded=t}setGroupList(t){this.groupExpandedList.includes(t)?(this.groupExpandedList.splice(this.groupExpandedList.indexOf(t),1),this.groupExpandedList=[...this.groupExpandedList]):this.searchItem?this.groupExpandedList.push(t):this.groupExpandedList=[t]}findSelectedOption(t){return this.optionId&&t?this.selectedOptions.findIndex((e=>e&&e[this.optionId]===t[this.optionId])):this.selectedOptions.indexOf(t)}findOptionIndex(t){const e=t.composedPath();if(this.checkForVirtualScroll()){let t="";return[...this.lists].forEach((i=>{e.includes(i)&&(t=i.id)})),this.filteredOptions.findIndex((e=>this.getOptionId(e)===t))}return[...this.lists].findIndex((t=>e.includes(t)))}checkSelectedOptions(){if(this.checkForVirtualScroll()){const t=this.selectedOptions.map((t=>this.getOptionId(t))),e=[...this.lists].filter((t=>"selectAll"!==t.id));null==e||e.forEach((e=>{t.includes(e.id)?(this.isMulti&&(null==e||e.setAttribute("aria-checked","true")),null==e||e.setAttribute("aria-selected","true")):this.isMulti&&(null==e||e.setAttribute("aria-checked","false"))}))}}unCheckAllOptions(){var t;this.checkForVirtualScroll()&&this.isMulti&&(null===(t=[...this.lists])||void 0===t||t.forEach((t=>{"selectAll"!==(null==t?void 0:t.id)&&(null==t||t.setAttribute("aria-checked","false"))})))}setSelectedOption(t){this.isMulti||(this.selectedOptions=[]);const e=this.findSelectedOption(t);if(-1!==e){const t=this.selectedOptions[e];this.selectedOptions.splice(e,1),this.notifySelectedChange({value:t,selected:this.selectedOptions})}else this.selectedOptions.push(t),this.notifySelectedChange({value:t,selected:this.selectedOptions});this.checkSelectedOptions(),this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()),this.requestUpdate()}filterOptions(t){if(this.preventFilter)return this.searchItem=!1,this.options;if(t&&t.length){const e=this.options.filter((e=>this.isOptGroup&&"string"!=typeof e&&"true"===e.isLabel?e:(this.isCustomContent?this.getOptionId(e):this.getOptionValue(e)).toLowerCase().includes(t.toLowerCase())));return this.isOptGroup?this.handleGroupFilter(e):e}return this.searchItem=!1,this.options}getListBoxVerticalPadding(){if(this.listBox){const t=window.getComputedStyle(this.listBox,null),e=parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom"));if(!isNaN(e))return e+2}return 10}resizeListbox(){this.updateOnNextFrame((()=>{var t;let e=0,i=0,s=0;const o=this.getListBoxVerticalPadding();if(this.lists){const t=this.checkForVirtualScroll()?[...this.lists].filter((t=>0!==t.offsetHeight)):[...this.lists];e=t.slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0),s=this.checkForVirtualScroll()&&this.allowSelectAll?t.slice(1,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0):t.slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0)}if(this.labels&&(i=[...this.labels].slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0)),this.listBox&&(this.listBox.style.maxHeight=`${e+i+o}px`),this.virtualizer&&(this.virtualizer.style.height=`${s+o}px`),this.showCustomError||this.showLoader){const e=null===(t=this.listBox)||void 0===t?void 0:t.querySelector("[slot]");this.listBox&&e&&(this.listBox.style.height=`${e.clientHeight+o}px`,this.listBox.style.maxHeight=`${e.clientHeight+o}px`)}}))}setInputValue(t=""){this.input.value=t}updateOnNextFrame(t){requestAnimationFrame(t)}unCheckedAllOptions(){this.isMulti&&(this.lists.forEach(((t,e)=>this.unCheckedOption(e))),this.isSelectAllChecked=!1)}unCheckedOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","false"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}checkAllOptions(){this.isMulti&&this.lists.forEach(((t,e)=>this.checkOption(e)))}checkOption(t){this.isMulti&&(this.lists[t].setAttribute("aria-checked","true"),this.notifySelectedChange({value:this.filteredOptions[t],selected:this.selectedOptions}))}isSelectAllSelected(){return this.selectedOptions.length===this.options.length}setFocusOnHost(t){this.setFocus&&this.setFocus(t)}isOptionFocused(t){return this.focusedIndex===t}getAriaState(t){return this.isOptionFocused(t)}scrollToOption(){var t,e;let i=0;const{top:s,bottom:o}=this.listBox.getBoundingClientRect(),r=this.lists[this.focusedIndex],n=null===(t=this.lists[this.focusedIndex+1]||r)||void 0===t?void 0:t.getBoundingClientRect(),a=null===(e=this.lists[this.focusedIndex-1]||r)||void 0===e?void 0:e.getBoundingClientRect();(null==n?void 0:n.bottom)>o?i=n.bottom-o+2:(null==a?void 0:a.top)<s&&(i=a.top-s-2),this.updateOnNextFrame((()=>{this.listBox.scrollTop+=i}))}getCustomContentName(t){const e=this.options.indexOf(t);if(this.isOptGroup){const t=this.options[e];if(t&&"string"!=typeof t)return t.slot}else if(-1!==e)return this.customContent[e].slot}setInputSelectionRange(t,e){this.input.setSelectionRange(t,e)}isOptionChecked(t){return-1!==this.findSelectedOption(t)?"true":"false"}getInputSelection(){return this.input.selectionStart}canMultiSelect(){return 0===this.getInputSelection()&&0!==this.selectedOptions.length&&this.isMulti}removeMultiTag(){this.selected&&this.multiSelected.forEach((t=>{const e=this.selected[t];e&&e.hasAttribute("selected")&&this.removeSelected(this.selectedOptions[t])}))}unselectedAllMultiTag(){this.selected&&this.selected.forEach((t=>t.removeAttribute("selected"))),this.multiSelectedIndex=-1}findLastMultiSelected(){return this.selected[this.multiSelectedIndex]}toggleMultiSelectedTag(t,e){t&&t.toggleAttribute("selected",e)}selectMultiTag(t){if(this.canMultiSelect()){if(!t){this.multiSelected=[];const t=this.findLastMultiSelected();this.toggleMultiSelectedTag(t,!1)}this.multiSelectedIndex<=0?this.multiSelectedIndex=this.selectedOptions.length-1:this.multiSelectedIndex--,this.multiSelected.push(this.multiSelectedIndex);const e=this.findLastMultiSelected();this.toggleMultiSelectedTag(e,!0)}}handleListClick(t){return f(this,void 0,void 0,(function*(){this.dispatchEvent(new CustomEvent("selected-changed",{detail:{event:t}})),yield this.updateComplete,this.isMulti?this.setVisualListbox(!0):this.setVisualListbox(!1),this.updateOnNextFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1}))}))}handleSelectAll(){return f(this,void 0,void 0,(function*(){this.isSelectAllChecked=!this.isSelectAllChecked,this.isSelectAllChecked?(this.selectedOptions=[...this.options],this.checkAllOptions()):(this.selectedOptions=[],this.unCheckedAllOptions()),yield this.updateComplete,this.setVisualListbox(!0),this.notifySelectedChange({selected:this.selectedOptions})}))}handleInputKeyUp(t){switch(t.code){case o.Uz.Escape:break;case o.Uz.Backspace:this.setFocusOnHost(!0),this.setVisualListbox(!0),this.resizeListbox(),this.removeMultiTag();break;case o.Uz.ArrowLeft:this.isMulti&&(t.shiftKey?this.selectMultiTag(!0):this.selectMultiTag(!1));break;default:this.isMulti&&this.unselectedAllMultiTag()}}handleInput(t){const e=t.target.value;this.inputValue=e.trim(),this.notifyInputValueChanged(e.trim())}removeAllSelected(){var t;this.focusedIndex=-1,this.focusedGroupIndex=-1,this.selectedOptions=[],this.inputValue="",this.setInputValue(),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,""),this.setVisualListbox(!1),this.unCheckedAllOptions(),this.setSelectedAttribute(void 0),this.updateOnNextFrame((()=>{this.input.focus()})),this.notifySelectedChange({selected:this.selectedOptions})}removeSelected(t){const e=this.findSelectedOption(t),i=this.filteredOptions.indexOf(t);-1!==i&&this.unCheckedOption(i),-1!==e&&(this.selectedOptions.splice(e,1),this.requestUpdate()),this.updateOnNextFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1}))}selectedChange(t){var e;const{event:i}=t.detail;let s=this.findOptionIndex(i);if(-1!==s){this.focusedIndex=this.allowSelectAll&&this.checkForVirtualScroll()?s+1:s,this.isMulti&&this.allowSelectAll&&!this.checkForVirtualScroll()&&(s-=1);const t=this.getFocusedItem(s);this.setSelectedAttribute(t),t&&(this.setSelectedOption(t),this.isMulti?this.isMulti&&this.allowSelectAll&&(this.isSelectAllChecked=this.isSelectAllSelected()):(this.setInputValue(this.getOptionValue(t)),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(t))))}}setSelectedAttribute(t){var e;let i="";t&&(i=this.getOptionId(t)),null===(e=this.lists)||void 0===e||e.forEach(((t,e)=>{(null==t?void 0:t.id)===i?null==t||t.setAttribute("selected","true"):null==t||t.setAttribute("selected","false")}))}shouldChangeButton(){const t=this.input&&this.input.value.length>0&&!this.noClearIcon||this.isMulti&&this.selectedOptions.length&&!this.noClearIcon;return t&&document.dispatchEvent(new CustomEvent("on-widget-update")),t}setCustomValue(){this.optionId||this.optionValue||(this.options=[...this.options,this.inputValue],this.setSelectedOption(this.inputValue),this.isMulti||this.updateOnNextFrame((()=>{var t;this.focusedIndex=this.filteredOptions.length-1;const e=this.getFocusedItem(this.focusedIndex);e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))})),this.dispatchEvent(new CustomEvent("custom-value-add",{composed:!0,bubbles:!0,detail:{value:this.inputValue}}))),this.inputValue=""}handleGroupFocus(){this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.filteredGroupOptions.length>0&&-1===this.focusedGroupIndex&&(this.focusedGroupIndex=this.filteredGroupOptions.findIndex((t=>"string"!=typeof t&&t.groupName===this.groupExpandedList[0]))),this.updateOnNextFrame((()=>{-1===this.focusedGroupIndex||!this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length-1||this.allowSelectAll&&this.focusedGroupIndex>=this.filteredGroupOptions.length?this.focusedGroupIndex=0:this.focusedGroupIndex++})),this.focusedIndex=-1}handleInputKeyDown(t){var e,i;switch(t.code){case o.Uz.Backspace:this.focusedIndex=-1;break;case o.Uz.Tab:case o.Uz.Enter:if(this.setFocusOnHost(!0),this.expanded&&this.updateOnNextFrame((()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);this.allowCustomValue&&this.input&&this.input.value.length&&-1===this.findFilteredOption(this.inputValue)?this.setCustomValue():(e&&(this.setSelectedAttribute(e),this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll())})),this.setVisualListbox(!1),t.code===o.Uz.Tab&&this.isMulti)return;break;case o.Uz.ArrowDown:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame((()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1}));break;case o.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return void this.handleGroupFocus();this.setFocusOnHost(!1),this.expanded||this.setVisualListbox(!0),this.updateOnNextFrame((()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.focusedGroupIndex=-1)}));break;case o.Uz.ArrowLeft:case o.Uz.ArrowRight:t.stopPropagation();break;case o.Uz.Escape:this.setFocusOnHost(!0),this.expanded?(t.stopPropagation(),this.setVisualListbox(!1)):(this.setInputValue(),null===(e=this.input)||void 0===e||e.setAttribute(o.iw.AriaActivedescendant,""),this.focusedIndex=-1,this.focusedGroupIndex=-1,this.removeAllSelected(),this.setSelectedAttribute(void 0));break;case o.Uz.Home:this.setInputSelectionRange(0,0);break;case o.Uz.End:{const{length:t}=this.inputValue;this.setInputSelectionRange(t,t)}break;case o.Uz.Space:if(this.isMulti&&this.expanded){t.preventDefault();const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.setSelectedAttribute(e),this.showSelectedCount||(this.setInputValue(),null===(i=this.input)||void 0===i||i.setAttribute(o.iw.AriaActivedescendant,""))),0===this.focusedIndex&&this.allowSelectAll&&this.handleSelectAll()}this.expanded=!0}}handleGroupLabelKeyDown(t,e){switch(t.code){case o.Uz.Tab:this.handleGroupFocus();break;case o.Uz.Enter:case o.Uz.Space:-1!==this.focusedGroupIndex?this.toggleGroupListBox(t,e.value):(this.setFocusOnHost(!0),this.setVisualListbox(!1),this.updateOnNextFrame((()=>{var t;const e=this.getFocusedItem(this.allowSelectAll?this.focusedIndex-1:this.focusedIndex);e&&(this.setSelectedOption(e),this.showSelectedCount||(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)),this.updateOnNextFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1})))),this.isMulti&&this.allowSelectAll&&0===this.focusedIndex&&this.handleSelectAll()})));break;case o.Uz.ArrowDown:if(0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame((()=>{var t;-1===this.focusedIndex||!this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length-1||this.allowSelectAll&&this.focusedIndex>=this.filteredOptions.length?this.focusedIndex=0:this.focusedIndex++;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],!this.showSelectedCount&&e&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e))),this.focusedGroupIndex=-1}));break;case o.Uz.ArrowUp:if(this.isOptGroup&&0===this.filteredOptions.length)return;this.setFocusOnHost(!1),this.updateOnNextFrame((()=>{var t;this.focusedIndex<=0?this.focusedIndex=this.allowSelectAll?this.filteredOptions.length:this.filteredOptions.length-1:this.focusedIndex--;const e=this.getFocusedItem(this.focusedIndex);this.groupExpandedList=[this.getOptionGroupName(e)],e&&!this.showSelectedCount&&(this.setInputValue(this.getOptionValue(e)),null===(t=this.input)||void 0===t||t.setAttribute(o.iw.AriaActivedescendant,this.getOptionId(e)))}));break;case o.Uz.Escape:this.focusedGroupIndex=-1,this.setVisualListbox(!1),this.setFocusOnHost(!0),this.input.focus();break;default:this.setVisualListbox(!0)}}toggleVisualListBox(t){var e,i;if(!this.readOnly){if(t.target.classList.contains("md-combobox-listbox"))t.target.focus();else if("md-icon"===t.target.localName){const s=null===(i=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===i?void 0:i.parentElement;if(s){const t=s.querySelector(".md-combobox-listbox");(0,b.setTimeout)((()=>{t.focus()}),10)}}this.expanded?this.setVisualListbox(!1):(this.dispatchEvent(new CustomEvent("combobox-on-expand",{composed:!0,bubbles:!0})),this.notifySearchResultCount(),this.setVisualListbox(!0)),this.input.focus(),this.setGroupList(""),this.focusedGroupIndex=-1}}toggleGroupListBox(t,e){t.stopPropagation(),this.focusedGroupIndex=this.filteredGroupOptions.findIndex((t=>"string"!=typeof t&&t.groupName===e)),this.setGroupList(e),this.resizeListbox()}handleRemoveAll(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove-all-selected"))}connectedCallback(){super.connectedCallback(),this.setupEvents(),this.querySelector("optgroup")&&(this.isOptGroup=!0)}disconnectedCallback(){super.disconnectedCallback(),this.teardownEvents()}static get styles(){return[l.A,v.A]}get listItemOptionMap(){return{"md-combobox-multiselect":this.isMulti,compact:this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}get filteredOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter((t=>!this.isOptGroup||("string"!=typeof t&&this.groupExpandedList.includes(this.getOptionGroupName(t))?"false"===t.isLabel:void 0)))}get filteredGroupOptions(){return this.filterOptions(this.trimSpace?this.inputValue.replace(/\s+/g,""):this.inputValue).filter((t=>!this.isOptGroup||("string"!=typeof t?"true"===t.isLabel:void 0)))}get comboBoxTemplateClassMap(){return{[`md-combobox--${this.shape}`]:!!this.shape,"md-combobox-searchable":this.searchable,"md-combobox-has-leading-icon":this.searchable||this.showFilterIcon,"md-new-combobox":this.newMomentum,[`md-${this.messageType}`]:!!this.messageType,"md-combobox-readonly":this.readOnly,"md-combobox-compact":this.compact,"md-combobox-dropdown-arrow":this.isDropdownArrow}}searchIconTemplate(){return this.leadingIconTemplate("search-bold","search-icon")}filterIconTemplate(){return this.leadingIconTemplate("filter-bold","filter-icon")}leadingIconTemplate(t,e){return d.html`
|
|
30
30
|
<md-icon
|
|
31
31
|
name=${t}
|
|
32
32
|
class=${e}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
</div>
|
|
244
244
|
`:h.nothing}
|
|
245
245
|
${this.messagesTemplate()} ${this.helpTextTemplate()}
|
|
246
|
-
`}};g([(0,d.property)({type:String})],i.prototype,"label",void 0),g([(0,d.property)({type:Array})],i.prototype,"options",void 0),g([(0,d.property)({type:Array,attribute:"custom-options"})],i.prototype,"customOptions",void 0),g([(0,d.property)({type:String})],i.prototype,"placeholder",void 0),g([(0,d.property)({type:Boolean,attribute:"is-multi"})],i.prototype,"isMulti",void 0),g([(0,d.property)({type:Boolean,attribute:"use-virtual-scroll"})],i.prototype,"useVirtualScroll",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"disabled",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"ordered",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"expanded",void 0),g([(0,d.property)({type:Array,reflect:!0})],i.prototype,"groupExpandedList",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchItem",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"compact",void 0),g([(0,d.property)({type:Boolean,attribute:"no-clear-icon"})],i.prototype,"noClearIcon",void 0),g([(0,d.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),g([(0,d.property)({type:Array})],i.prototype,"selectedOptions",void 0),g([(0,d.property)({type:Number,attribute:"visible-option",reflect:!0})],i.prototype,"visibleOptions",void 0),g([(0,d.property)({type:String,attribute:"option-id",reflect:!0})],i.prototype,"optionId",void 0),g([(0,d.property)({type:String,attribute:"option-value",reflect:!0})],i.prototype,"optionValue",void 0),g([(0,d.property)({type:Boolean,attribute:"with-custom-content"})],i.prototype,"isCustomContent",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchable",void 0),g([(0,d.property)({type:String})],i.prototype,"shape",void 0),g([(0,d.property)({type:Array})],i.prototype,"value",void 0),g([(0,d.property)({type:String,attribute:"input-value",reflect:!0})],i.prototype,"inputValue",void 0),g([(0,d.property)({type:Boolean,attribute:"allow-custom-value",reflect:!0})],i.prototype,"allowCustomValue",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),g([(0,d.property)({type:String,attribute:"no-results-i18n"})],i.prototype,"resultsTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"no-options-i18n"})],i.prototype,"optionsTextLocalization",void 0),g([(0,d.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],i.prototype,"trimSpace",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"invalid",void 0),g([(0,d.property)({type:String,reflect:!0,attribute:"invalid-text-i18n"})],i.prototype,"invalidText",void 0),g([(0,d.property)({type:String,reflect:!0})],i.prototype,"ariaLabel",void 0),g([(0,d.property)({type:String,attribute:"search-result-aria-label"})],i.prototype,"searchResultAriaLabel",void 0),g([(0,d.internalProperty)()],i.prototype,"ariaLabelForComboBox",void 0),g([(0,d.property)({type:String,attribute:"clear-aria-label"})],i.prototype,"clearAriaLabel",void 0),g([(0,d.property)({type:String,attribute:"arrow-aria-label"})],i.prototype,"arrowAriaLabel",void 0),g([(0,d.property)({type:String,attribute:"clear-icon-height"})],i.prototype,"clearIconHeight",void 0),g([(0,d.property)({type:String,attribute:"all-i18n"})],i.prototype,"allTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"select-all-i18n"})],i.prototype,"selectAllTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"selected-all-i18n"})],i.prototype,"selectedTextLocalization",void 0),g([(0,d.property)({type:Boolean,attribute:"allow-select-all",reflect:!0})],i.prototype,"allowSelectAll",void 0),g([(0,d.property)({type:Boolean,attribute:"show-custom-error",reflect:!0})],i.prototype,"showCustomError",void 0),g([(0,d.property)({type:Boolean,attribute:"show-loader",reflect:!0})],i.prototype,"showLoader",void 0),g([(0,d.property)({type:Boolean,attribute:"show-selected-count",reflect:!0})],i.prototype,"showSelectedCount",void 0),g([(0,d.property)({type:String,attribute:"popup-chevron-aria-hidden"})],i.prototype,"popupChevronAriaHidden",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"newMomentum",void 0),g([(0,d.property)({type:Boolean,attribute:"show-filter-icon"})],i.prototype,"showFilterIcon",void 0),g([(0,d.property)({type:Boolean,attribute:"prevent-filter"})],i.prototype,"preventFilter",void 0),g([(0,d.property)({type:Boolean,attribute:"is-dropdown-arrow"})],i.prototype,"isDropdownArrow",void 0),g([(0,d.property)({type:String})],i.prototype,"comboboxId",void 0),g([(0,d.property)({type:String})],i.prototype,"helpText",void 0),g([(0,d.property)({type:Array})],i.prototype,"messageArr",void 0),g([(0,d.property)({type:String})],i.prototype,"htmlId",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"readOnly",void 0),g([(0,d.internalProperty)()],i.prototype,"isOptGroup",void 0),g([(0,d.internalProperty)()],i.prototype,"isSelectAllChecked",void 0),g([(0,d.query)(".group")],i.prototype,"group",void 0),g([(0,d.query)(".md-combobox-listbox")],i.prototype,"input",void 0),g([(0,d.query)(".md-combobox-button")],i.prototype,"button",void 0),g([(0,d.query)("div#md-combobox-listbox")],i.prototype,"listBox",void 0),g([(0,d.query)(".virtual-scroll")],i.prototype,"virtualizer",void 0),g([(0,d.queryAll)("div.md-combobox-option")],i.prototype,"lists",void 0),g([(0,d.queryAll)(".group-label")],i.prototype,"labels",void 0),g([(0,d.queryAll)(".md-combobox-selected-item")],i.prototype,"selected",void 0),i=g([(0,n.w)("md-combobox")],i),t.ELEMENT=i}(s||(s={}))},6396:(t,e,i)=>{i.d(e,{Label:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(17518),l=i(11598),d=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.label="",this.theme="",this.radioLabel=!1,this.checkboxLabel=!1,this.toggleSwitchLabel=!1,this.htmlFor="",this.active=!1,this.disabled=!1,this.indeterminate=!1,this.secondaryLabel=!1}static get styles(){return[r.A,l.A]}setFocus(){this.dispatchEvent(new CustomEvent("setFocus"))}get labelClassMap(){return{[`md-label--${this.theme}`]:!!this.theme,"md-radio__label":this.radioLabel,"md-checkbox__label":this.checkboxLabel,"md-secondary-label":this.secondaryLabel,active:this.active,disabled:this.disabled,indeterminate:this.indeterminate}}handleClick(){this.setFocus(),this.dispatchEvent(new CustomEvent("label-click",{composed:!0,bubbles:!0,detail:{htmlFor:this.htmlFor}}))}render(){return n.html`
|
|
246
|
+
`}};g([(0,d.property)({type:String})],i.prototype,"label",void 0),g([(0,d.property)({type:Array})],i.prototype,"options",void 0),g([(0,d.property)({type:Array,attribute:"custom-options"})],i.prototype,"customOptions",void 0),g([(0,d.property)({type:String})],i.prototype,"placeholder",void 0),g([(0,d.property)({type:Boolean,attribute:"is-multi"})],i.prototype,"isMulti",void 0),g([(0,d.property)({type:Boolean,attribute:"use-virtual-scroll"})],i.prototype,"useVirtualScroll",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"disabled",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"ordered",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"expanded",void 0),g([(0,d.property)({type:Array,reflect:!0})],i.prototype,"groupExpandedList",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchItem",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"compact",void 0),g([(0,d.property)({type:Boolean,attribute:"no-clear-icon"})],i.prototype,"noClearIcon",void 0),g([(0,d.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),g([(0,d.property)({type:Array})],i.prototype,"selectedOptions",void 0),g([(0,d.property)({type:Number,attribute:"visible-option",reflect:!0})],i.prototype,"visibleOptions",void 0),g([(0,d.property)({type:String,attribute:"option-id",reflect:!0})],i.prototype,"optionId",void 0),g([(0,d.property)({type:String,attribute:"option-value",reflect:!0})],i.prototype,"optionValue",void 0),g([(0,d.property)({type:Boolean,attribute:"with-custom-content"})],i.prototype,"isCustomContent",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchable",void 0),g([(0,d.property)({type:String})],i.prototype,"shape",void 0),g([(0,d.property)({type:Array})],i.prototype,"value",void 0),g([(0,d.property)({type:String,attribute:"input-value",reflect:!0})],i.prototype,"inputValue",void 0),g([(0,d.property)({type:Boolean,attribute:"allow-custom-value",reflect:!0})],i.prototype,"allowCustomValue",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),g([(0,d.property)({type:String,attribute:"no-results-i18n"})],i.prototype,"resultsTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"no-options-i18n"})],i.prototype,"optionsTextLocalization",void 0),g([(0,d.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],i.prototype,"trimSpace",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"invalid",void 0),g([(0,d.property)({type:String,reflect:!0,attribute:"invalid-text-i18n"})],i.prototype,"invalidText",void 0),g([(0,d.property)({type:String,reflect:!0})],i.prototype,"ariaLabel",void 0),g([(0,d.property)({type:String,attribute:"search-result-aria-label"})],i.prototype,"searchResultAriaLabel",void 0),g([(0,d.internalProperty)()],i.prototype,"ariaLabelForComboBox",void 0),g([(0,d.property)({type:String,attribute:"clear-aria-label"})],i.prototype,"clearAriaLabel",void 0),g([(0,d.property)({type:String,attribute:"arrow-aria-label"})],i.prototype,"arrowAriaLabel",void 0),g([(0,d.property)({type:String,attribute:"clear-icon-height"})],i.prototype,"clearIconHeight",void 0),g([(0,d.property)({type:String,attribute:"all-i18n"})],i.prototype,"allTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"select-all-i18n"})],i.prototype,"selectAllTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"selected-all-i18n"})],i.prototype,"selectedTextLocalization",void 0),g([(0,d.property)({type:Boolean,attribute:"allow-select-all",reflect:!0})],i.prototype,"allowSelectAll",void 0),g([(0,d.property)({type:Boolean,attribute:"show-custom-error",reflect:!0})],i.prototype,"showCustomError",void 0),g([(0,d.property)({type:Boolean,attribute:"show-loader",reflect:!0})],i.prototype,"showLoader",void 0),g([(0,d.property)({type:Boolean,attribute:"show-selected-count",reflect:!0})],i.prototype,"showSelectedCount",void 0),g([(0,d.property)({type:String,attribute:"popup-chevron-aria-hidden"})],i.prototype,"popupChevronAriaHidden",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"newMomentum",void 0),g([(0,d.property)({type:Boolean,attribute:"show-filter-icon"})],i.prototype,"showFilterIcon",void 0),g([(0,d.property)({type:Boolean,attribute:"prevent-filter"})],i.prototype,"preventFilter",void 0),g([(0,d.property)({type:Boolean,attribute:"is-dropdown-arrow"})],i.prototype,"isDropdownArrow",void 0),g([(0,d.property)({type:String})],i.prototype,"comboboxId",void 0),g([(0,d.property)({type:String})],i.prototype,"helpText",void 0),g([(0,d.property)({type:Array})],i.prototype,"messageArr",void 0),g([(0,d.property)({type:String})],i.prototype,"htmlId",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"readOnly",void 0),g([(0,d.internalProperty)()],i.prototype,"isOptGroup",void 0),g([(0,d.internalProperty)()],i.prototype,"isSelectAllChecked",void 0),g([(0,d.query)(".group")],i.prototype,"group",void 0),g([(0,d.query)(".md-combobox-listbox")],i.prototype,"input",void 0),g([(0,d.query)(".md-combobox-button")],i.prototype,"button",void 0),g([(0,d.query)("div#md-combobox-listbox")],i.prototype,"listBox",void 0),g([(0,d.query)(".virtual-scroll")],i.prototype,"virtualizer",void 0),g([(0,d.queryAll)("div.md-combobox-option")],i.prototype,"lists",void 0),g([(0,d.queryAll)(".group-label")],i.prototype,"labels",void 0),g([(0,d.queryAll)(".md-combobox-selected-item")],i.prototype,"selected",void 0),i=g([(0,n.w)("md-combobox")],i),t.ELEMENT=i}(s||(s={}))},5784:t=>{t.exports=v},6396:(t,e,i)=>{i.d(e,{Label:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(17518),l=i(11598),d=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.label="",this.theme="",this.radioLabel=!1,this.checkboxLabel=!1,this.toggleSwitchLabel=!1,this.htmlFor="",this.active=!1,this.disabled=!1,this.indeterminate=!1,this.secondaryLabel=!1}static get styles(){return[r.A,l.A]}setFocus(){this.dispatchEvent(new CustomEvent("setFocus"))}get labelClassMap(){return{[`md-label--${this.theme}`]:!!this.theme,"md-radio__label":this.radioLabel,"md-checkbox__label":this.checkboxLabel,"md-secondary-label":this.secondaryLabel,active:this.active,disabled:this.disabled,indeterminate:this.indeterminate}}handleClick(){this.setFocus(),this.dispatchEvent(new CustomEvent("label-click",{composed:!0,bubbles:!0,detail:{htmlFor:this.htmlFor}}))}render(){return n.html`
|
|
247
247
|
<label
|
|
248
248
|
@click="${()=>this.handleClick()}"
|
|
249
249
|
class="md-label ${(0,a.classMap)(this.labelClassMap)}"
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
<slot></slot>
|
|
289
289
|
</div>
|
|
290
290
|
</div>
|
|
291
|
-
`}};p([(0,l.property)({type:String})],e.prototype,"label",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",null),p([(0,l.property)({type:Number,reflect:!0})],e.prototype,"level",null),p([(0,l.query)(".md-accordion-expander")],e.prototype,"header",void 0),e=p([(0,r.w)("md-accordion-item")],e),t.ELEMENT=e}(s||(s={}))},6963:t=>{t.exports=
|
|
291
|
+
`}};p([(0,l.property)({type:String})],e.prototype,"label",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),p([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",null),p([(0,l.property)({type:Number,reflect:!0})],e.prototype,"level",null),p([(0,l.query)(".md-accordion-expander")],e.prototype,"header",void 0),e=p([(0,r.w)("md-accordion-item")],e),t.ELEMENT=e}(s||(s={}))},6963:t=>{t.exports=O},8229:t=>{t.exports=e},10654:(t,e,i)=>{i.d(e,{Card:()=>s}),i(96798),i(99850),i(61200),i(68490),i(66245),i(11323),i(83192);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(22818),d=i(90195),h=i(70630),p=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.title="title",this.subtitle="",this.id="",this.info="",this.infoAriaLabel="Card Info",this.menuAriaLabel="Card Menu",this.menuOptions=[]}static get styles(){return[r.A,h.A]}handleCardClick(){this.dispatchEvent(new CustomEvent("card-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardKeyDown(t){t.code!==d.Uz.Enter&&t.code!==d.Uz.Space||this.dispatchEvent(new CustomEvent("card-keydown",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardMenuEvent(t,e){t.stopPropagation();const i=e.toLowerCase();this.dispatchEvent(new CustomEvent("card-menu-click",{detail:{id:this.id,type:i},bubbles:!0,composed:!0}))}handleCardMenuKeyDown(t,e){t.preventDefault(),this.dispatchEvent(new CustomEvent("card-menu-keydown",{detail:{id:this.id,type:e.toLowerCase(),keyCode:t.code},bubbles:!0,composed:!0}))}render(){return n.html`
|
|
292
292
|
<div
|
|
293
293
|
class="md-card"
|
|
294
294
|
id="${this.id}"
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
</div>
|
|
388
388
|
</div>
|
|
389
389
|
</div>
|
|
390
|
-
`}};e.activeOverlay=[],x([(0,g.property)({type:Boolean,attribute:"is-open",reflect:!0})],e.prototype,"isOpen",null),x([(0,g.property)({type:String})],e.prototype,"size",void 0),x([(0,g.property)({type:String,attribute:"max-height"})],e.prototype,"maxHeight",void 0),x([(0,g.property)({type:String,attribute:"custom-width"})],e.prototype,"customWidth",void 0),x([(0,g.property)({type:Boolean,attribute:"show-arrow"})],e.prototype,"showArrow",void 0),x([(0,g.property)({type:Boolean})],e.prototype,"disabled",void 0),x([(0,g.property)({type:String})],e.prototype,"placement",void 0),x([(0,g.property)({type:Boolean,attribute:"allow-hover-toggle"})],e.prototype,"allowHoverToggle",void 0),x([(0,g.property)({type:String})],e.prototype,"ariaRole",void 0),x([(0,g.property)({type:String})],e.prototype,"ariaLabel",void 0),x([(0,g.property)({type:Boolean,attribute:"is-date-picker"})],e.prototype,"isDatePicker",void 0),x([(0,g.property)({type:Number,attribute:"overlay-offset"})],e.prototype,"overlayOffset",void 0),x([(0,g.property)({type:Boolean,attribute:"keep-open-on-window-blur"})],e.prototype,"keepOpenOnWindowBlur",void 0),x([(0,g.query)(".overlay-container")],e.prototype,"overlayContainer",void 0),x([(0,g.query)(".overlay-arrow")],e.prototype,"arrow",void 0),x([(0,g.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),x([(0,g.queryAssignedNodes)("menu-trigger",!0)],e.prototype,"trigger",void 0),e=x([(0,n.w)("md-menu-overlay")],e),t.ELEMENT=e}(o||(o={}))},12176:(t,e,i)=>{i.d(e,{Spinner:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(8229),l=i(46325),d=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.size=56,this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[r.A,l.A]}get spinnerStyleMap(){return{width:`${this.size}px`,height:`${this.size}px`}}firstUpdated(t){super.firstUpdated(t),this.isAnimating=!0,this.startAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.isAnimating=!1,this.stopAnimation()}startAnimation(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-spinner");if(!e)return;let i=null;const s=t=>{if(!this.isAnimating)return;i||(i=t);const o=t-i,r=o/1e3*360;e.style.transform=`rotate(${r}deg)`,o>=1e3&&(i=t),this.animationFrameId=requestAnimationFrame(s)};this.animationFrameId=requestAnimationFrame(s)}stopAnimation(){var t;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-spinner");e&&(e.style.transform="")}render(){return n.html` <i class="md-spinner" part="spinner" style=${(0,a.styleMap)(this.spinnerStyleMap)}></i> `}};d([(0,n.property)({type:Number,reflect:!0})],e.prototype,"size",void 0),e=d([(0,o.w)("md-spinner")],e),t.ELEMENT=e}(s||(s={}))},13060:t=>{t.exports=
|
|
390
|
+
`}};e.activeOverlay=[],x([(0,g.property)({type:Boolean,attribute:"is-open",reflect:!0})],e.prototype,"isOpen",null),x([(0,g.property)({type:String})],e.prototype,"size",void 0),x([(0,g.property)({type:String,attribute:"max-height"})],e.prototype,"maxHeight",void 0),x([(0,g.property)({type:String,attribute:"custom-width"})],e.prototype,"customWidth",void 0),x([(0,g.property)({type:Boolean,attribute:"show-arrow"})],e.prototype,"showArrow",void 0),x([(0,g.property)({type:Boolean})],e.prototype,"disabled",void 0),x([(0,g.property)({type:String})],e.prototype,"placement",void 0),x([(0,g.property)({type:Boolean,attribute:"allow-hover-toggle"})],e.prototype,"allowHoverToggle",void 0),x([(0,g.property)({type:String})],e.prototype,"ariaRole",void 0),x([(0,g.property)({type:String})],e.prototype,"ariaLabel",void 0),x([(0,g.property)({type:Boolean,attribute:"is-date-picker"})],e.prototype,"isDatePicker",void 0),x([(0,g.property)({type:Number,attribute:"overlay-offset"})],e.prototype,"overlayOffset",void 0),x([(0,g.property)({type:Boolean,attribute:"keep-open-on-window-blur"})],e.prototype,"keepOpenOnWindowBlur",void 0),x([(0,g.query)(".overlay-container")],e.prototype,"overlayContainer",void 0),x([(0,g.query)(".overlay-arrow")],e.prototype,"arrow",void 0),x([(0,g.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),x([(0,g.queryAssignedNodes)("menu-trigger",!0)],e.prototype,"trigger",void 0),e=x([(0,n.w)("md-menu-overlay")],e),t.ELEMENT=e}(o||(o={}))},12176:(t,e,i)=>{i.d(e,{Spinner:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(8229),l=i(46325),d=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.size=56,this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[r.A,l.A]}get spinnerStyleMap(){return{width:`${this.size}px`,height:`${this.size}px`}}firstUpdated(t){super.firstUpdated(t),this.isAnimating=!0,this.startAnimation()}disconnectedCallback(){super.disconnectedCallback(),this.isAnimating=!1,this.stopAnimation()}startAnimation(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-spinner");if(!e)return;let i=null;const s=t=>{if(!this.isAnimating)return;i||(i=t);const o=t-i,r=o/1e3*360;e.style.transform=`rotate(${r}deg)`,o>=1e3&&(i=t),this.animationFrameId=requestAnimationFrame(s)};this.animationFrameId=requestAnimationFrame(s)}stopAnimation(){var t;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-spinner");e&&(e.style.transform="")}render(){return n.html` <i class="md-spinner" part="spinner" style=${(0,a.styleMap)(this.spinnerStyleMap)}></i> `}};d([(0,n.property)({type:Number,reflect:!0})],e.prototype,"size",void 0),e=d([(0,o.w)("md-spinner")],e),t.ELEMENT=e}(s||(s={}))},13060:t=>{t.exports=A},16643:(t,e,i)=>{i.d(e,{TAB_CROSS_WIDTH:()=>c,Tab:()=>u});var s=i(90195),o=i(3001),r=i(31890),n=i(26283),a=i(26272),l=i(41488),d=i(23968),h=i(30076),p=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const c=22;var u;!function(t){let e=class extends((0,o.yC)(l.LitElement)){constructor(){super(...arguments),this.tabIndex=-1,this.ariaLabel="",this.closable="",this.name="",this.isCrossVisible=!1,this.role="tab",this.type="line",this.newMomentum=!1,this.onlyIcon=!1,this.variant="ghost",this.visibleTab=!1,this._disabled=!1,this._selected=0===this.tabIndex,this.vertical=!1,this.viewportHidden=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,t?this.tabDisabled():this.tabEnabled(),this.requestUpdate("disabled",e)}tabDisabled(){-1!==this.tabIndex&&(this.tabIndex=-1),this.setAttribute("aria-disabled","true")}tabEnabled(){-1===this.tabIndex&&this.selected&&(this.tabIndex=0),this.removeAttribute("aria-disabled")}get selected(){return this._selected}set selected(t){const e=this._selected;this._selected=t,t?(this.setAttribute("aria-selected","true"),this.notifySelectedTab()):this.removeAttribute("aria-selected"),this.requestUpdate("selected",e)}static get styles(){return[a.A,h.A]}handleClick(t){t.preventDefault(),this.id&&this.dispatchEvent(new CustomEvent("tab-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleKeydown(t){if((0,n.o)(t.code)){if(this.disabled)return void t.preventDefault();this.handleClick(t)}}handleCrossKeydown(t){t.stopPropagation(),t.code===s.Uz.Enter&&this.handleCrossEventDispatch()}handleCrossClick(t){t.preventDefault(),!0!==this.disabled&&this.handleCrossEventDispatch()}handleCrossEventDispatch(){this.id&&("auto"===this.closable?this.dispatchEvent(new CustomEvent("tab-cross-click",{detail:{id:this.id},bubbles:!0,composed:!0})):"custom"===this.closable&&this.dispatchEvent(new CustomEvent("tab-close-click",{detail:{id:this.id,name:this.name},bubbles:!0,composed:!0})))}notifySelectedTab(){this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}update(t){super.update(t),t.has("disabled")&&this.disabled&&(this.selected=!1)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeydown)}firstUpdated(t){super.firstUpdated(t)}renderCrossButton(){return l.html`
|
|
391
391
|
<md-button
|
|
392
392
|
variant="ghost"
|
|
393
393
|
size="size-none"
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
>
|
|
475
475
|
<slot></slot>
|
|
476
476
|
</a>
|
|
477
|
-
`}})()} `}};h([(0,n.property)({type:String,attribute:!1})],e.prototype,"color",void 0),h([(0,n.property)({type:String})],e.prototype,"ariaLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"ariaRole",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inline",void 0),h([(0,n.property)({type:String,attribute:"inline-style"})],e.prototype,"inlineStyle",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inverted",void 0),h([(0,n.property)({type:String})],e.prototype,"href",void 0),h([(0,n.property)({type:String})],e.prototype,"tag",void 0),h([(0,n.property)({type:String})],e.prototype,"target",void 0),h([(0,n.property)({type:String})],e.prototype,"size",void 0),h([(0,n.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),e=h([(0,o.w)("md-link")],e),t.ELEMENT=e}(s||(s={}))},19239:t=>{t.exports=
|
|
477
|
+
`}})()} `}};h([(0,n.property)({type:String,attribute:!1})],e.prototype,"color",void 0),h([(0,n.property)({type:String})],e.prototype,"ariaLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"ariaRole",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inline",void 0),h([(0,n.property)({type:String,attribute:"inline-style"})],e.prototype,"inlineStyle",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inverted",void 0),h([(0,n.property)({type:String})],e.prototype,"href",void 0),h([(0,n.property)({type:String})],e.prototype,"tag",void 0),h([(0,n.property)({type:String})],e.prototype,"target",void 0),h([(0,n.property)({type:String})],e.prototype,"size",void 0),h([(0,n.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),e=h([(0,o.w)("md-link")],e),t.ELEMENT=e}(s||(s={}))},19239:t=>{t.exports=D},19479:(t,e,i)=>{i.d(e,{AlertBanner:()=>s}),i(96798),i(61200);var s,o=i(31890),r=i(26283),n=i(26272),a=i(41488),l=i(40333),d=i(17518),h=i(35467),p=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.type="",this.titleText="",this.message="",this.closable=!1,this.show=!1,this.closeAriaLabel="Close Banner",this.showBannerTypeIcon=!1,this.showRefreshButton=!1,this.alignment="center"}connectedCallback(){super.connectedCallback(),this.requestUpdate("show")}onHide(){this.show=!this.show,this.dispatchEvent(new CustomEvent("alertBanner-hide")),this.requestUpdate("show")}handleKeyDown(t){const{code:e}=t;(0,r.o)(e)&&this.onHide()}get isLeadingAlignment(){return"leading"===this.alignment}static get styles(){return[n.A,h.A]}getIconForType(){switch(this.type){case"error":return"error-legacy-bold";case"warning":return"warning-bold";case"success":return"check-circle-bold";default:return"info-circle-bold"}}get alertBannerClassMap(){return{"md-alert-banner":!0,[`md-alert-banner--${this.type}`]:this.type,"md-alert-banner--leading":this.isLeadingAlignment||this.titleText,closable:this.closable,"with-title":!!this.titleText}}get alertBannerTextClassMap(){return{"md-alert-banner__text":!0,"md-alert-banner__with-title":!!this.titleText,leading:this.isLeadingAlignment||this.titleText}}get alertBannerRightClassMap(){return{trailing:this.isLeadingAlignment||this.titleText}}get closeButtonTemplate(){const t=this.titleText?"close-div with-title":"close-div";return a.html`
|
|
478
478
|
<div class="${t}">
|
|
479
479
|
<md-button
|
|
480
480
|
class="md-alert-banner__close"
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
</div>
|
|
581
581
|
`}
|
|
582
582
|
</div>
|
|
583
|
-
`}static get styles(){return[o.A,l.A]}};h([(0,n.property)({type:String})],e.prototype,"htmlId",void 0),h([(0,n.property)({type:String})],e.prototype,"label",void 0),h([(0,n.property)({type:String})],e.prototype,"description",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"checked",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"small",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"smaller",void 0),h([(0,n.property)({type:String})],e.prototype,"alignLabel",void 0),h([(0,n.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),e=h([(0,r.w)("md-toggle-switch")],e),t.ELEMENT=e}(c||(c={}))},20727:t=>{t.exports=
|
|
583
|
+
`}static get styles(){return[o.A,l.A]}};h([(0,n.property)({type:String})],e.prototype,"htmlId",void 0),h([(0,n.property)({type:String})],e.prototype,"label",void 0),h([(0,n.property)({type:String})],e.prototype,"description",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"checked",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"small",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"smaller",void 0),h([(0,n.property)({type:String})],e.prototype,"alignLabel",void 0),h([(0,n.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),e=h([(0,r.w)("md-toggle-switch")],e),t.ELEMENT=e}(c||(c={}))},20727:t=>{t.exports=T},22818:t=>{t.exports=p},22962:t=>{t.exports=c},23026:(t,e,i)=>{i.d(e,{Pagination:()=>s}),i(96798),i(61200);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(4392),d=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this._currentPage=1,this.hasDots=!1,this.onlyDots=!1,this.noNavigation=!1,this.totalPage=0,this.visiblePage=3}get currentPage(){return this._currentPage}set currentPage(t){const e=this._currentPage;this._currentPage=t,this.notifyPageChange(e,t),this.requestUpdate("currentPage",e)}static get styles(){return[r.A,l.A]}computePrevious(t){1!==t&&t!==this.currentPage&&(this.currentPage-=1)}computeNext(t){t<=this.totalPage&&t!==this.currentPage&&(this.currentPage+=1)}computeFirst(){this.currentPage>=1&&(this.currentPage=1)}computeLast(){this.currentPage>=1&&(this.currentPage=this.totalPage)}computeCurrent(t){this.currentPage=t}notifyPageChange(t,e){this.dispatchEvent(new CustomEvent("page-change",{composed:!0,bubbles:!0,detail:{oldPage:t,newPage:e}}))}get hasPreviousPage(){return this.currentPage<=1}get hasNextPage(){return this.currentPage>=this.totalPage}computePageList(t){if(this.totalPage>this.visiblePage&&t){const[t,e,i]=[this.currentPage-1,this.currentPage,this.currentPage+1];let s=[];if(e<=this.visiblePage-1)return s=[...Array(this.visiblePage)].map(((t,e)=>1+e)),s.push("..."),s.push(this.totalPage),s;if(this.totalPage-e<=this.visiblePage-2){s=[],s.push(1),s.push("...");const t=[...Array(this.visiblePage)].map(((t,e)=>this.totalPage-this.visiblePage+1+e));return s.concat(t)}return[1,"...",t,e,i,"...",this.totalPage]}return[...Array(this.totalPage)].map(((t,e)=>1+e))}pagesTemplate(t){return this.computePageList(t).map((t=>"..."===t?n.html` <li class="page-ellipsis">${t}</li> `:n.html`
|
|
584
584
|
<li @click=${()=>this.computeCurrent(t)} aria-current=${t===this.currentPage}>
|
|
585
585
|
${t}
|
|
586
586
|
</li>
|
|
@@ -922,7 +922,7 @@
|
|
|
922
922
|
></span>
|
|
923
923
|
${this.step?this.ticksTemplate():d.nothing} ${this.hideValue?d.nothing:this.displayValueTemplate()}
|
|
924
924
|
</div>
|
|
925
|
-
`}};m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"min",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"max",void 0),m([(0,l.property)({type:Boolean,attribute:"hide-value"})],e.prototype,"hideValue",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"now",null),m([(0,l.property)({type:Number})],e.prototype,"text",void 0),m([(0,l.property)({type:String})],e.prototype,"label",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"step",void 0),m([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),m([(0,l.internalProperty)()],e.prototype,"dragging",void 0),e=m([(0,n.w)("md-slider")],e),t.ELEMENT=e}(s||(s={}))},26991:(t,e,i)=>{i.r(e),i.d(e,{Accordion:()=>s.Accordion,AccordionItem:()=>o.AccordionItem,ActivityButton:()=>r.ActivityButton,AdvanceList:()=>n.AdvanceList,Alert:()=>l.Alert,AlertBanner:()=>a.AlertBanner,AudioPlayer:()=>d.AudioPlayer,Avatar:()=>h.Avatar,AvatarType:()=>p,Badge:()=>u.Badge,Breadcrumb:()=>m.Breadcrumb,Button:()=>b.Button,ButtonGroup:()=>y.ButtonGroup,Card:()=>f.Card,CardAi:()=>v.CardAi,CardV2:()=>g.CardV2,ChatMessage:()=>w.ChatMessage,Checkbox:()=>x.Checkbox,CheckboxGroup:()=>C.CheckboxGroup,Chip:()
|
|
925
|
+
`}};m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"min",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"max",void 0),m([(0,l.property)({type:Boolean,attribute:"hide-value"})],e.prototype,"hideValue",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"now",null),m([(0,l.property)({type:Number})],e.prototype,"text",void 0),m([(0,l.property)({type:String})],e.prototype,"label",void 0),m([(0,l.property)({type:Number,reflect:!0})],e.prototype,"step",void 0),m([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),m([(0,l.internalProperty)()],e.prototype,"dragging",void 0),e=m([(0,n.w)("md-slider")],e),t.ELEMENT=e}(s||(s={}))},26991:(t,e,i)=>{i.r(e),i.d(e,{Accordion:()=>s.Accordion,AccordionItem:()=>o.AccordionItem,ActivityButton:()=>r.ActivityButton,AdvanceList:()=>n.AdvanceList,Alert:()=>l.Alert,AlertBanner:()=>a.AlertBanner,AudioPlayer:()=>d.AudioPlayer,Avatar:()=>h.Avatar,AvatarType:()=>p,Badge:()=>u.Badge,Breadcrumb:()=>m.Breadcrumb,Button:()=>b.Button,ButtonGroup:()=>y.ButtonGroup,Card:()=>f.Card,CardAi:()=>v.CardAi,CardV2:()=>g.CardV2,ChatMessage:()=>w.ChatMessage,Checkbox:()=>x.Checkbox,CheckboxGroup:()=>C.CheckboxGroup,Chip:()=>S.Chip,Coachmark:()=>E.Coachmark,CoachmarkPopover:()=>$.CoachmarkPopover,CodeEditor:()=>M,ComboBox:()=>D.ComboBox,CompositeAvatar:()=>c.CompositeAvatar,DatePicker:()=>B.DatePicker,DatePickerCalendar:()=>z.DatePickerCalendar,DatePickerDay:()=>F.DatePickerDay,DatePickerMonth:()=>V.DatePickerMonth,DatePickerWeek:()=>j.DatePickerWeek,DateRangePicker:()=>R.DateRangePicker,DateTimePicker:()=>_.DateTimePicker,Draggable:()=>N.Draggable,DraggableItem:()=>U.DraggableItem,Dropdown:()=>q.Dropdown,EditableTextfield:()=>H.EditableTextfield,Favorite:()=>K.Favorite,FloatingButtonBar:()=>Q,FloatingMinimizedModal:()=>Z.FloatingMinimizedModal,FloatingModal:()=>J.FloatingModal,Form:()=>tt.Form,Grabber:()=>et.Grabber,HelpText:()=>it.HelpText,Icon:()=>W.Icon,Input:()=>ot.Input,InputFile:()=>st.InputFile,Label:()=>rt.Label,Link:()=>nt.Link,List:()=>at.List,ListItem:()=>lt.ListItem,Loading:()=>dt.Loading,MeetingAlert:()=>ht.MeetingAlert,Menu:()=>ct.Menu,MenuItem:()=>ut.MenuItem,MenuOverlay:()=>pt.MenuOverlay,Modal:()=>mt.Modal,Pagination:()=>yt.Pagination,PhoneInput:()=>bt.PhoneInput,Popover:()=>vt.Popover,ProgressBar:()=>gt.ProgressBar,Radio:()=>ft.Radio,RadioGroup:()=>wt.RadioGroup,Slider:()=>xt.Slider,Spinner:()=>Ct.Spinner,Tab:()=>Et.Tab,TabPanel:()=>Tt.TabPanel,Table:()=>$t.Table,TableAdvanced:()=>St.TableAdvanced,Tabs:()=>kt.Tabs,TaskItem:()=>At.TaskItem,Theme:()=>It.Theme,ThemeManager:()=>Dt.ThemeManager,TimePicker:()=>Lt.TimePicker,ToggleSwitch:()=>Ot.ToggleSwitch,Tooltip:()=>Mt.Tooltip,iconUrlManager:()=>Pt.O,themeManager:()=>Dt.themeManager});var s=i(33328),o=i(6779),r=i(94891),n=i(28307),a=i(19479),l=i(74896),d=i(23779),h=i(38028);const p=["bot","group","self","typing",""];var c=i(2207),u=i(63704),m=i(92992),y=i(45629),b=i(96798),v=i(64311),g=i(90827),f=i(10654),w=i(95281),x=i(3664),C=i(55294),S=i(60046),$=i(29895),E=i(46312),T=i(3001),k=i(26272),A=i(45001),I=i.n(A),L=i(41488);const O=L.css`:host(md-code-editor) .md-code-editor{background:#091e26;border-radius:.25rem;color:#fff;min-height:18.75rem;overflow:hidden}:host(md-code-editor) .md-code-editor-header{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;background:#092d3b;flex:0 0 auto;font-size:14px;padding:.625rem}:host(md-code-editor) .md-code-editor-name{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center}:host(md-code-editor) .md-code-editor md-badge::part(badge){border-radius:.25rem;height:1.25rem;margin-right:.625rem;padding:.25rem .375rem;text-transform:capitalize}:host(md-code-editor) .md-code-editor-copy{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;line-height:1}:host(md-code-editor) .md-code-editor-copy-btn::part(button){background:0 0;color:#00a0d1;margin-left:.625rem}:host(md-code-editor) .md-code-editor-copy-btn[disabled]{cursor:not-allowed;opacity:.5}:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-quote{color:#ffecc2}:host(md-code-editor) .hljs-deletion,:host(md-code-editor) .hljs-name,:host(md-code-editor) .hljs-regexp,:host(md-code-editor) .hljs-selector-class,:host(md-code-editor) .hljs-selector-id,:host(md-code-editor) .hljs-tag,:host(md-code-editor) .hljs-template-variable,:host(md-code-editor) .hljs-variable{color:#ff9d52}:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-type{color:#fc9d03}:host(md-code-editor) .hljs-attribute{color:#ebd460}:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol{color:#93c437}:host(md-code-editor) .hljs-section,:host(md-code-editor) .hljs-title{color:#22c7d6}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{color:#f0e3fc}:host(md-code-editor) .hljs{background:rgba(0,0,0,0);color:#dedede;display:block;overflow-x:auto;padding:.5em}:host(md-code-editor) .hljs-emphasis{font-style:italic}:host(md-code-editor) .hljs-strong{font-weight:700}@media screen and (forced-colors:active){:host(md-code-editor) .hljs-addition,:host(md-code-editor) .hljs-attribute,:host(md-code-editor) .hljs-built_in,:host(md-code-editor) .hljs-builtin-name,:host(md-code-editor) .hljs-bullet,:host(md-code-editor) .hljs-comment,:host(md-code-editor) .hljs-link,:host(md-code-editor) .hljs-literal,:host(md-code-editor) .hljs-meta,:host(md-code-editor) .hljs-number,:host(md-code-editor) .hljs-params,:host(md-code-editor) .hljs-quote,:host(md-code-editor) .hljs-string,:host(md-code-editor) .hljs-symbol,:host(md-code-editor) .hljs-type{color:highlight}:host(md-code-editor) .hljs-keyword,:host(md-code-editor) .hljs-selector-tag{font-weight:700}}@media(forced-colors:active){:host(md-code-editor) .md-code-editor{outline:1px solid CanvasText}:host(md-code-editor) .md-code-editor-header{outline:1px solid CanvasText}}`;var M,P=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends L.LitElement{constructor(){super(...arguments),this.copyLocalization="cURL",this.copiedLocalization="Copied",this.method="get",this.acceptLanguage="javascript",this.url="javascript",this.disableCopyButton=!0,this.acceptTypes="",this.copied=!1}static get styles(){return[k.A,O]}handleSlotChange(){if(this.slotNodes&&this.slotNodes.length){const t=this.slotNodes.find((t=>"CODE"===t.tagName));if(t){const e=t.textContent;e&&this.highlightBlock(e)}}}handleUrlSlotChange(){if(this.copied=!1,this.slotUrl&&this.slotUrl.length){const t=this.slotUrl.find((t=>t));if(t){const e=t.textContent;e&&this.copyUrl(e)}}}highlightBlock(t){t&&(this.codeBlock.innerText=t),I().highlightElement(this.codeBlock)}copyUrl(t){this.codeUrl.innerText=t,this.disableCopyButton=!1}copyClipboard(){this.disableCopyButton||this.selectTarget(this.codeUrl)}copyText(){try{document.execCommand("copy"),this.copied=!0}catch(t){console.warn("Copy text failed"),this.copied=!1}}select(t){const e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),e&&(e.removeAllRanges(),e.addRange(i))}selectTarget(t){this.select(t),this.copyText()}importLanguage(t){return e=this,s=void 0,r=function*(){try{const{default:e}=yield i(29599)(`./${t}`);I().registerLanguage(`${t}`,e),this.setAcceptTypes()}catch(t){console.warn("Please set correct language name")}},new((o=void 0)||(o=Promise))((function(t,i){function n(t){try{l(r.next(t))}catch(t){i(t)}}function a(t){try{l(r.throw(t))}catch(t){i(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o((function(t){t(i)}))).then(n,a)}l((r=r.apply(e,s||[])).next())}));var e,s,o,r}getAllAcceptTypes(){const t=I().listLanguages();return t.length?t.map((t=>I().getLanguage(`${t}`).aliases)).map((t=>t.map((t=>`.${t}`)))).join(","):""}setAcceptTypes(){this.acceptTypes=this.getAllAcceptTypes()}updated(t){super.updated(t),t.has("acceptLanguage")&&this.importLanguage(this.acceptLanguage),t.has("acceptTypes")&&this.highlightBlock()}render(){return L.html`
|
|
926
926
|
<div class="md-code-editor" part="code-editor">
|
|
927
927
|
<div class="md-code-editor-header">
|
|
928
928
|
<div class="md-code-editor-name">
|
|
@@ -955,7 +955,7 @@
|
|
|
955
955
|
</pre>
|
|
956
956
|
</div>
|
|
957
957
|
</div>
|
|
958
|
-
`}};P([(0,L.property)({type:String})],e.prototype,"copyLocalization",void 0),P([(0,L.property)({type:String})],e.prototype,"copiedLocalization",void 0),P([(0,L.property)({type:String})],e.prototype,"method",void 0),P([(0,L.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),P([(0,L.property)({type:String})],e.prototype,"url",void 0),P([(0,L.query)("input[type='file']")],e.prototype,"input",void 0),P([(0,L.query)(".md-code-editor-code-block")],e.prototype,"codeBlock",void 0),P([(0,L.query)(".md-code-editor-url")],e.prototype,"codeUrl",void 0),P([(0,L.internalProperty)()],e.prototype,"disableCopyButton",void 0),P([(0,L.internalProperty)()],e.prototype,"acceptTypes",void 0),P([(0,L.internalProperty)()],e.prototype,"copied",void 0),P([(0,L.queryAssignedNodes)("code-block")],e.prototype,"slotNodes",void 0),P([(0,L.queryAssignedNodes)("code-url")],e.prototype,"slotUrl",void 0),e=P([(0,T.wW)("md-code-editor")],e),t.ELEMENT=e}(M||(M={}));var D=i(4928),R=i(69494),_=i(85416),B=i(38654),
|
|
958
|
+
`}};P([(0,L.property)({type:String})],e.prototype,"copyLocalization",void 0),P([(0,L.property)({type:String})],e.prototype,"copiedLocalization",void 0),P([(0,L.property)({type:String})],e.prototype,"method",void 0),P([(0,L.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),P([(0,L.property)({type:String})],e.prototype,"url",void 0),P([(0,L.query)("input[type='file']")],e.prototype,"input",void 0),P([(0,L.query)(".md-code-editor-code-block")],e.prototype,"codeBlock",void 0),P([(0,L.query)(".md-code-editor-url")],e.prototype,"codeUrl",void 0),P([(0,L.internalProperty)()],e.prototype,"disableCopyButton",void 0),P([(0,L.internalProperty)()],e.prototype,"acceptTypes",void 0),P([(0,L.internalProperty)()],e.prototype,"copied",void 0),P([(0,L.queryAssignedNodes)("code-block")],e.prototype,"slotNodes",void 0),P([(0,L.queryAssignedNodes)("code-url")],e.prototype,"slotUrl",void 0),e=P([(0,T.wW)("md-code-editor")],e),t.ELEMENT=e}(M||(M={}));var D=i(4928),R=i(69494),_=i(85416),B=i(38654),z=i(63208),F=i(16754),V=i(17814),j=i(10984),N=i(80072),U=i(24627),q=i(23184),H=i(50565),K=i(99850),W=i(61200),G=i(40333);const Y=L.css`:host{display:flex;align-items:center;height:1.75rem;border-radius:1.5625rem;background-color:var(--floating-button-bar-bg-color);box-shadow:var(--md-elevation-1);padding:.25rem .5rem;gap:.5rem;flex:1}.button{display:inline-flex;align-items:center;justify-content:center}.cancel{color:var(--floating-button-bar-secondary-color)}.label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.label.primary{font-family:var(--brand-font-medium);color:var(--floating-button-bar-primary-color);flex:1;min-width:0;justify-content:center}.label.secondary{color:var(--floating-button-bar-secondary-color);flex:1}.separator{width:1px;height:.75rem;background-color:var(--floating-button-bar-secondary-color)}`;var X=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Q=class extends L.LitElement{constructor(){super(...arguments),this.leadingLabel="",this.closeButtonAriaLabel="",this.showCloseButton=!0,this.actions=[]}static get styles(){return[Y]}onCancelButttonAction(){this.dispatchEvent(new CustomEvent("cancel-button-action",{composed:!0,bubbles:!0}))}get closeButtonTemplate(){return L.html`
|
|
959
959
|
<md-button
|
|
960
960
|
class="button cancel"
|
|
961
961
|
circle
|
|
@@ -979,7 +979,7 @@
|
|
|
979
979
|
`}getActionTemplate(t){return t.isIconOnly?this.getActionAndLabelTemplate(t):this.getPillButtonTemplate(t)}render(){return L.html`
|
|
980
980
|
${this.showCloseButton?this.closeButtonTemplate:G.nothing} ${this.getSecondaryLabelTemplate(this.leadingLabel)}
|
|
981
981
|
${this.actions.map((t=>L.html` ${this.separatorTemplate} ${this.getActionTemplate(t)} `))}
|
|
982
|
-
`}};X([(0,L.property)({type:String})],Q.prototype,"leadingLabel",void 0),X([(0,L.property)({type:String})],Q.prototype,"closeButtonAriaLabel",void 0),X([(0,L.property)({type:Boolean})],Q.prototype,"showCloseButton",void 0),X([(0,L.property)({type:Array})],Q.prototype,"actions",void 0),Q=X([(0,L.customElement)("md-floating-button-bar")],Q);var Z=i(58871),J=i(73093),tt=i(97866),et=i(69112),it=i(20109),st=i(52619),ot=i(96408),rt=i(6396),nt=i(19026),at=i(68490),lt=i(66245),dt=i(69788),ht=i(61997),pt=i(11323),ct=i(84032),ut=i(48171),mt=i(32252),yt=i(23026),bt=i(84205),vt=i(71128),gt=i(58287),ft=i(81144),wt=i(32217),xt=i(25428),Ct=i(12176)
|
|
982
|
+
`}};X([(0,L.property)({type:String})],Q.prototype,"leadingLabel",void 0),X([(0,L.property)({type:String})],Q.prototype,"closeButtonAriaLabel",void 0),X([(0,L.property)({type:Boolean})],Q.prototype,"showCloseButton",void 0),X([(0,L.property)({type:Array})],Q.prototype,"actions",void 0),Q=X([(0,L.customElement)("md-floating-button-bar")],Q);var Z=i(58871),J=i(73093),tt=i(97866),et=i(69112),it=i(20109),st=i(52619),ot=i(96408),rt=i(6396),nt=i(19026),at=i(68490),lt=i(66245),dt=i(69788),ht=i(61997),pt=i(11323),ct=i(84032),ut=i(48171),mt=i(32252),yt=i(23026),bt=i(84205),vt=i(71128),gt=i(58287),ft=i(81144),wt=i(32217),xt=i(25428),Ct=i(12176),St=i(77935),$t=i(40428),Et=i(16643),Tt=i(97737),kt=i(50226),At=i(86610),It=i(1072),Lt=i(49256),Ot=i(20331),Mt=i(83192),Pt=i(81786),Dt=i(37719)},28187:t=>{t.exports=P},28307:(t,e,i)=>{i.d(e,{AdvanceList:()=>s});var s,o=i(90195),r=i(31890),n=i(32972),a=i(26272),l=i(41488),d=i(86635),h=i(61705),p=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.prefixId="item-";let e=class extends((0,n.y)(l.LitElement)){constructor(){super(...arguments),this.items=[],this.isLoading=!1,this.isMulti=!1,this.groupOnMultiSelect=!1,this.value=[],this.ariaRoleList="listbox",this.ariaRoleListItem="option",this.ariaLabelList="",this.isError=!1,this.containerHeight="292px",this.lastSelectedIdByOrder="",this.selectAllItems=!1,this.focusReset=!1,this.disabledItems=[],this.totalRecords=0,this.isNonSelectable=!1,this.scrollIndex=-1,this.activeId="",this.selectedItemsIds=[],this.isUserNavigated=!1,this.handleKeyDown=e=>{var i;const{ArrowDown:s,ArrowUp:r,Tab:n,Space:a,Enter:l}=o.Uz,{code:d}=e,h=d===s,p=d===r,c=d===n,u=d===a,m=d===l;if(h||p){if(e.preventDefault(),this.isUserNavigated=!0,""===this.activeId&&this.value.length>0&&""!==this.value[0])return void(this.activeId=this.value[0]);if(""===this.activeId&&!p&&this.items.length>0)return void(this.activeId=this.items[0].id);const t=this.items.findIndex((t=>t.id===this.activeId));h?t<this.items.length-1&&!this.isNextElemenentStatusIndicator(t)&&(this.scrollIndex=t+1,this.activeId=this.items[this.scrollIndex].id):t>0&&(this.scrollIndex=t-1,this.activeId=this.items[this.scrollIndex].id)}else if(c)""===this.activeId&&this.value.length>0&&(this.activeId=this.value[0]);else if((u||m)&&(e.preventDefault(),this.activeId)){const e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(`#${t.prefixId}${this.activeId}`);e&&("true"===e.getAttribute("aria-disabled")||e.hasAttribute("disabled")||this.updateItemSelection(e))}},this.handleRangeChange=t=>{const{last:e}=t;this.updateSelectedState(),this.items.length<this.totalRecords&&e>=this.items.length-1&&!this.isLoading&&!this.isError&&this.dispatchEvent(new CustomEvent("load-more",{bubbles:!0,composed:!0})),this.isUserNavigated=!1}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick)}static get styles(){return[a.A,h.A]}getStyles(){return l.html`
|
|
983
983
|
<style>
|
|
984
984
|
:host .virtual-scroll {
|
|
985
985
|
height: ${this.containerHeight};
|
|
@@ -1013,7 +1013,7 @@
|
|
|
1013
1013
|
>
|
|
1014
1014
|
${(0,d.scroll)({items:this.items,renderItem:(t,e)=>this.renderItem(t,e||0),useShadowDOM:!0,scrollToIndex:this.isUserNavigated?{index:this.scrollIndex,position:0===this.scrollIndex?"start":"center"}:void 0})}
|
|
1015
1015
|
</div>
|
|
1016
|
-
`}};p([(0,l.property)({type:Array})],e.prototype,"items",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"isLoading",void 0),p([(0,l.property)({type:Boolean,attribute:"is-multi"})],e.prototype,"isMulti",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"groupOnMultiSelect",void 0),p([(0,l.property)({type:Array})],e.prototype,"value",void 0),p([(0,l.property)({type:String})],e.prototype,"ariaRoleList",void 0),p([(0,l.property)({type:String})],e.prototype,"ariaRoleListItem",void 0),p([(0,l.property)({type:String})],e.prototype,"ariaLabelList",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"isError",void 0),p([(0,l.property)({type:String})],e.prototype,"containerHeight",void 0),p([(0,l.property)({type:String})],e.prototype,"lastSelectedIdByOrder",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"selectAllItems",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"focusReset",void 0),p([(0,l.property)({type:Array})],e.prototype,"disabledItems",void 0),p([(0,l.property)({type:Number})],e.prototype,"totalRecords",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"isNonSelectable",void 0),p([(0,l.queryAll)("div.default-wrapper")],e.prototype,"lists",void 0),p([(0,l.query)(".virtual-scroll")],e.prototype,"listContainer",void 0),p([(0,l.internalProperty)()],e.prototype,"scrollIndex",void 0),p([(0,l.internalProperty)()],e.prototype,"activeId",void 0),p([(0,l.internalProperty)()],e.prototype,"selectedItemsIds",void 0),p([(0,l.internalProperty)()],e.prototype,"isUserNavigated",void 0),e=p([(0,r.w)("md-advance-list")],e),t.ELEMENT=e}(s||(s={}))},29895:(t,e,i)=>{i.d(e,{CoachmarkPopover:()=>s}),i(96798),i(61200),i(71128);var s,o=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(40587),d=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.placement="bottom",this.headerIconName=void 0,this.header=void 0,this.message=void 0,this.show=!1,this.hideCloseButton=!1,this.href="",this.slotContent=null}static get styles(){return[r.A,l.A]}connectedCallback(){super.connectedCallback()}notifyCustomEvent(t){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:{placement:this.placement,triggerComponent:this.triggerComponent,popper:this.popper}}))}notifyCoachCreate(){this.notifyCustomEvent("coach-create")}notifyPrimaryButtonAction(){this.notifyCustomEvent("primary-button-action")}notifySecondaryButtonAction(){this.notifyCustomEvent("secondary-button-action")}notifyLinkAction(){this.notifyCustomEvent("link-action")}notifyCoachClose(){this.notifyCustomEvent("coachmark-close")}handleSlotChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent=t)}}updated(t){super.updated(t),t.has("show")&&(this.show?this.notifyCoachCreate():this.notifyCoachClose())}coachmarkContentTemplate(){return n.html`
|
|
1016
|
+
`}};p([(0,l.property)({type:Array})],e.prototype,"items",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"isLoading",void 0),p([(0,l.property)({type:Boolean,attribute:"is-multi"})],e.prototype,"isMulti",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"groupOnMultiSelect",void 0),p([(0,l.property)({type:Array})],e.prototype,"value",void 0),p([(0,l.property)({type:String})],e.prototype,"ariaRoleList",void 0),p([(0,l.property)({type:String})],e.prototype,"ariaRoleListItem",void 0),p([(0,l.property)({type:String})],e.prototype,"ariaLabelList",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"isError",void 0),p([(0,l.property)({type:String})],e.prototype,"containerHeight",void 0),p([(0,l.property)({type:String})],e.prototype,"lastSelectedIdByOrder",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"selectAllItems",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"focusReset",void 0),p([(0,l.property)({type:Array})],e.prototype,"disabledItems",void 0),p([(0,l.property)({type:Number})],e.prototype,"totalRecords",void 0),p([(0,l.property)({type:Boolean})],e.prototype,"isNonSelectable",void 0),p([(0,l.queryAll)("div.default-wrapper")],e.prototype,"lists",void 0),p([(0,l.query)(".virtual-scroll")],e.prototype,"listContainer",void 0),p([(0,l.internalProperty)()],e.prototype,"scrollIndex",void 0),p([(0,l.internalProperty)()],e.prototype,"activeId",void 0),p([(0,l.internalProperty)()],e.prototype,"selectedItemsIds",void 0),p([(0,l.internalProperty)()],e.prototype,"isUserNavigated",void 0),e=p([(0,r.w)("md-advance-list")],e),t.ELEMENT=e}(s||(s={}))},29895:(t,e,i)=>{i.d(e,{CoachmarkPopover:()=>s}),i(96798),i(61200),i(71128);var s,o=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(40587),d=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.placement="bottom",this.triggerID="",this.headerIconName=void 0,this.header=void 0,this.message=void 0,this.show=!1,this.hideCloseButton=!1,this.href="",this.slotContent=null}static get styles(){return[r.A,l.A]}connectedCallback(){super.connectedCallback()}notifyCustomEvent(t){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:{placement:this.placement,triggerComponent:this.triggerComponent,popper:this.popper}}))}notifyCoachCreate(){this.notifyCustomEvent("coach-create")}notifyPrimaryButtonAction(){this.notifyCustomEvent("primary-button-action")}notifySecondaryButtonAction(){this.notifyCustomEvent("secondary-button-action")}notifyLinkAction(){this.notifyCustomEvent("link-action")}notifyCoachClose(){this.notifyCustomEvent("coachmark-close")}handleSlotChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent=t)}}updated(t){super.updated(t),t.has("show")&&(this.show?this.notifyCoachCreate():this.notifyCoachClose())}coachmarkContentTemplate(){return n.html`
|
|
1017
1017
|
<div class="md-coachmark__content">
|
|
1018
1018
|
${this.message?this.message:n.html` <slot name="coachmark-content" @slotchange=${this.handleSlotChange}></slot> `}
|
|
1019
1019
|
</div>
|
|
@@ -1043,24 +1043,29 @@
|
|
|
1043
1043
|
>`:""}
|
|
1044
1044
|
</div>
|
|
1045
1045
|
`}render(){return n.html`
|
|
1046
|
+
<slot name="trigger"></slot>
|
|
1046
1047
|
<md-popover
|
|
1047
1048
|
class="md-coachmark"
|
|
1048
|
-
?
|
|
1049
|
+
?visible=${this.show}
|
|
1049
1050
|
role="dialog"
|
|
1050
1051
|
show-arrow
|
|
1051
|
-
|
|
1052
|
+
triggerID=${this.triggerID}
|
|
1053
|
+
id="coachmark-popover"
|
|
1054
|
+
?close-button=${!this.hideCloseButton}
|
|
1052
1055
|
interactive
|
|
1053
1056
|
trigger="manual"
|
|
1054
|
-
|
|
1057
|
+
color="contrast"
|
|
1058
|
+
focus-trap
|
|
1059
|
+
focus-back-to-trigger
|
|
1055
1060
|
placement=${this.placement}
|
|
1056
|
-
|
|
1061
|
+
hide-on-escape
|
|
1062
|
+
@hidden="${()=>{this.notifyCoachClose()}}"
|
|
1057
1063
|
>
|
|
1058
|
-
<slot slot="triggerElement"></slot>
|
|
1059
1064
|
<div class="md-coachmark__popper" tabindex="-1">
|
|
1060
1065
|
${this.renderHeader()} ${this.renderBody()} ${this.renderFooter()}
|
|
1061
1066
|
</div>
|
|
1062
1067
|
</md-popover>
|
|
1063
|
-
`}};d([(0,n.property)({type:String})],e.prototype,"placement",void 0),d([(0,n.property)({type:String})],e.prototype,"headerIconName",void 0),d([(0,n.property)({type:String})],e.prototype,"header",void 0),d([(0,n.property)({type:String})],e.prototype,"message",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"show",void 0),d([(0,n.property)({type:Boolean,reflect:!0,attribute:"hide-close-button"})],e.prototype,"hideCloseButton",void 0),d([(0,n.property)({type:String})],e.prototype,"primaryButton",void 0),d([(0,n.property)({type:String})],e.prototype,"secondaryButton",void 0),d([(0,n.property)({type:String})],e.prototype,"linkText",void 0),d([(0,n.property)({type:String})],e.prototype,"href",void 0),d([(0,n.query)(".md-coachmark__trigger-component")],e.prototype,"triggerComponent",void 0),d([(0,n.query)(".md-coachmark__popper")],e.prototype,"popper",void 0),e=d([(0,o.w)("md-coachmark-popover")],e),t.ELEMENT=e}(s||(s={}))},31347:t=>{t.exports=
|
|
1068
|
+
`}};d([(0,n.property)({type:String})],e.prototype,"placement",void 0),d([(0,n.property)({type:String,reflect:!0})],e.prototype,"triggerID",void 0),d([(0,n.property)({type:String})],e.prototype,"headerIconName",void 0),d([(0,n.property)({type:String})],e.prototype,"header",void 0),d([(0,n.property)({type:String})],e.prototype,"message",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"show",void 0),d([(0,n.property)({type:Boolean,reflect:!0,attribute:"hide-close-button"})],e.prototype,"hideCloseButton",void 0),d([(0,n.property)({type:String})],e.prototype,"primaryButton",void 0),d([(0,n.property)({type:String})],e.prototype,"secondaryButton",void 0),d([(0,n.property)({type:String})],e.prototype,"linkText",void 0),d([(0,n.property)({type:String})],e.prototype,"href",void 0),d([(0,n.query)(".md-coachmark__trigger-component")],e.prototype,"triggerComponent",void 0),d([(0,n.query)(".md-coachmark__popper")],e.prototype,"popper",void 0),e=d([(0,o.w)("md-coachmark-popover")],e),t.ELEMENT=e}(s||(s={}))},31347:t=>{t.exports=C},32022:t=>{t.exports=r},32217:(t,e,i)=>{i.d(e,{RadioGroup:()=>s});var s,o=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(76067),h=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.label="group",this.checked=-1,this.alignment="vertical",this._disabled=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.requestUpdate("disabled",e)}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.label)}updated(t){super.updated(t),(t.has("slotted")||t.has("checked"))&&this.setFirstChecked()}get selectedRadioValue(){return this.slotted[this.selected].value}notifySelectedChange(){this.dispatchEvent(new CustomEvent("radio-change",{detail:{selected:this.selectedRadioValue},bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}setFirstChecked(){-1!==this.checked&&(this.selected=this.checked,this.setChecked(this.checked))}findRadioIndex(t){const e=t.composedPath();return this.slotted.findIndex((t=>e.includes(t)))}findCheckedRadioIndex(){return this.slotted.findIndex((t=>t.checked))}setChecked(t){const e=this.findCheckedRadioIndex();-1!==e&&e!==t&&this.slotted[e]&&(this.slotted[e].checked=!1),this.slotted[t]&&(this.slotted[t].checked=!0)}switchRadioOnArrowPress(t,e=1){const i=super.getAvailableSelectedIndex(t,e);-1!==i&&(this.selected=i,this.setChecked(i),this.notifySelectedChange())}isRadioDisabled(t){return this.slotted[t].disabled}handleClick(t){if(this.disabled)return!1;const e=this.findRadioIndex(t);-1!==e&&(this.isRadioDisabled(e)||(this.selected=e,this.setChecked(e),this.notifySelectedChange()))}handleKeyDown(t){if(this.disabled)return!1;const{code:e}=t;switch(e){case o.Uz.Enter:case o.Uz.Space:this.isRadioDisabled(this.selected)||(this.setChecked(this.selected),this.notifySelectedChange(),t.stopPropagation(),t.preventDefault());break;case o.Uz.ArrowUp:case o.Uz.ArrowLeft:0===this.selected?this.switchRadioOnArrowPress(this.slotted.length-1,-1):this.switchRadioOnArrowPress(this.selected-1,-1),t.stopPropagation(),t.preventDefault();break;case o.Uz.ArrowDown:case o.Uz.ArrowRight:this.selected===this.slotted.length-1?this.switchRadioOnArrowPress(0):this.switchRadioOnArrowPress(this.selected+1),t.stopPropagation(),t.preventDefault()}}get slotElement(){return this.radioSlot}static get styles(){return[a.A,d.A]}clearSelection(){const t=this.findCheckedRadioIndex();-1!=t&&(this.checked=-1,this.slotted[t].checked=!1)}render(){return l.html`
|
|
1064
1069
|
<div class="radio-group-container" part="radio-group-container">
|
|
1065
1070
|
<slot name="radio"></slot>
|
|
1066
1071
|
</div>
|
|
@@ -1242,7 +1247,7 @@
|
|
|
1242
1247
|
</table>
|
|
1243
1248
|
`:n.html` <p>${this.nodata}</p> `}
|
|
1244
1249
|
</div>
|
|
1245
|
-
`}};c([(0,n.property)({type:String})],e.prototype,"tabledata",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"zebra",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"clean",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"sorting",void 0),c([(0,n.property)({type:String})],e.prototype,"nodata",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"stickheader",void 0),c([(0,n.property)({type:String})],e.prototype,"label",void 0),c([(0,n.property)({type:Boolean,attribute:"no-borders"})],e.prototype,"noBorders",void 0),c([(0,n.property)({type:String})],e.prototype,"format",void 0),c([(0,n.property)({type:Array})],e.prototype,"warning",void 0),c([(0,n.property)({type:Array})],e.prototype,"errors",void 0),c([(0,n.internalProperty)()],e.prototype,"sort",void 0),c([(0,n.internalProperty)()],e.prototype,"csvData",void 0),c([(0,n.queryAll)('.md-table__body tr[role="row"]')],e.prototype,"rowTable",void 0),e=c([(0,o.w)("md-table")],e),t.ELEMENT=e}(s||(s={}))},41488:e=>{e.exports=t},41891:t=>{t.exports=
|
|
1250
|
+
`}};c([(0,n.property)({type:String})],e.prototype,"tabledata",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"zebra",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"clean",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"sorting",void 0),c([(0,n.property)({type:String})],e.prototype,"nodata",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"stickheader",void 0),c([(0,n.property)({type:String})],e.prototype,"label",void 0),c([(0,n.property)({type:Boolean,attribute:"no-borders"})],e.prototype,"noBorders",void 0),c([(0,n.property)({type:String})],e.prototype,"format",void 0),c([(0,n.property)({type:Array})],e.prototype,"warning",void 0),c([(0,n.property)({type:Array})],e.prototype,"errors",void 0),c([(0,n.internalProperty)()],e.prototype,"sort",void 0),c([(0,n.internalProperty)()],e.prototype,"csvData",void 0),c([(0,n.queryAll)('.md-table__body tr[role="row"]')],e.prototype,"rowTable",void 0),e=c([(0,o.w)("md-table")],e),t.ELEMENT=e}(s||(s={}))},41488:e=>{e.exports=t},41891:t=>{t.exports=x},45001:t=>{t.exports=f},45629:(t,e,i)=>{i.d(e,{ButtonGroup:()=>s});var s,o=i(90195),r=i(3001),n=i(26272),a=i(41488),l=i(71250),d=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.TS)((0,r.yC)(a.LitElement))){constructor(){super(...arguments),this.active=0,this.tabIndex=0,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get slotElement(){return this.buttonSlot}static get styles(){return[n.A,l.A]}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","group")}setButtonTabIndex(){this.slotted.forEach((t=>t.tabIndex=-1))}updated(t){super.updated(t),t.has("slotted")&&(this.setButtonTabIndex(),this.setFirstActive())}get selectedBtnValue(){return this.slotted[this.active].value}notifySelectedChange(){this.dispatchEvent(new CustomEvent("button-group-change",{detail:{selected:this.selectedBtnValue},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}setSelected(t){var e,i;const s=this.findSelectedBtnIndex();-1!==s&&s!==t&&(null===(e=this.slotted[s])||void 0===e||e.toggleAttribute("selected",!1)),null===(i=this.slotted[t])||void 0===i||i.toggleAttribute("selected",!0)}setFirstActive(){-1===this.findSelectedBtnIndex()&&this.setSelected(this.active)}findBtnIndex(t){const e=t.composedPath();return this.slotted.findIndex((t=>e.includes(t)))}findSelectedBtnIndex(){return this.slotted.findIndex((t=>t.hasAttribute("selected")))}isBtnDisabled(t){return this.slotted[t].disabled}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}switchBtnOnArrowPress(t,e=1){const i=this.getAvailableSelectedIndex(t,e);-1!==i&&(this.active=i,this.setSelected(i),this.notifySelectedChange())}getAvailableSelectedIndex(t,e=1){const i=this.slotted.length;for(let s=0,o=t;s<i;s+=1,o+=e){o<0?o=i-1:o>=i&&(o=0);const t=this.slotted[o];if(this.isFocusable(t))return o}return-1}isFocusable(t){return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")}handleClick(t){const e=this.findBtnIndex(t);-1!==e&&(this.isBtnDisabled(e)||(this.active=e,this.setSelected(e),this.notifySelectedChange()))}handleKeyDown(t){const{code:e}=t;switch(e){case o.Uz.Enter:case o.Uz.Space:this.isBtnDisabled(this.active)||(this.setSelected(this.active),this.notifySelectedChange());break;case o.Uz.ArrowLeft:0===this.active?this.switchBtnOnArrowPress(this.slotted.length-1,-1):this.switchBtnOnArrowPress(this.active-1,-1);break;case o.Uz.ArrowRight:this.active===this.slotted.length-1?this.switchBtnOnArrowPress(0):this.switchBtnOnArrowPress(this.active+1)}}render(){return a.html`
|
|
1246
1251
|
<div role="group" class="md-button-group" part="button-group">
|
|
1247
1252
|
<slot name="button"></slot>
|
|
1248
1253
|
</div>
|
|
@@ -1311,7 +1316,7 @@
|
|
|
1311
1316
|
${this.finalTwentyFourFormat?d.nothing:this.generateAmPmComboBox()}
|
|
1312
1317
|
</div>
|
|
1313
1318
|
</div>
|
|
1314
|
-
`}};m([(0,l.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),m([(0,l.property)({type:Boolean,attribute:"twenty-four-hour-format",reflect:!0})],e.prototype,"twentyFourHourFormat",void 0),m([(0,l.property)({type:String})],e.prototype,"timeSpecificity",void 0),m([(0,l.property)({type:String})],e.prototype,"locale",void 0),m([(0,l.property)({type:String,reflect:!0})],e.prototype,"value",void 0),m([(0,l.internalProperty)()],e.prototype,"finalTwentyFourFormat",void 0),m([(0,l.internalProperty)()],e.prototype,"timeObject",void 0),m([(0,l.internalProperty)()],e.prototype,"tabNext",void 0),m([(0,l.internalProperty)()],e.prototype,"timeValue",void 0),m([(0,l.internalProperty)()],e.prototype,"timeValidity",void 0),e=m([(0,o.w)("md-timepicker")],e),t.ELEMENT=e}(g||(g={}))},50226:(t,e,i)=>{i.d(e,{Tabs:()=>L}),i(61200),i(11323),i(83192);var s=i(90195),o=i(3001),r=i(66677),n=i(59164),a=i(26272),l=i(41488),d=i(40333),h=i(23968),p=i(22818),c=i(8229),u=i(19239),m=i(41891),y=i.n(m),b=i(97103),v=i(30076),g=i(16643),f=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},w=function(t,e,i,s){return new(i||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}))};const x="tab-more",C="more-menu-copy-",$="visibleToVisible",S="visibleToHidden",E="hiddenToVisible",T="hiddenToHidden",k="previous",A="next",I="fromMoreTabs";var L;!function(t){let e=class extends((0,o.UM)((0,o.Io)((0,o.TS)(l.LitElement)))){constructor(){super(...arguments),this.justified=!1,this.hugTabs=!1,this.overflowLabel="More Tabs",this.draggable=!1,this.direction="horizontal",this.moreItemsScrollLimit=Number.MAX_SAFE_INTEGER,this._selectedIndex=0,this.animation=100,this.ghostClass="",this.chosenClass="",this.forceFallback=!1,this.fallbackClass="",this.tabsId="",this.persistSelection=!1,this.compUniqueId="",this.type="line",this.newMomentum=!1,this.variant="ghost",this.scrollArrow=!1,this.leftArrowAriaLabel="Backward Button",this.rightArrowAriaLabel="Forward Button",this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1,this.isMoreTabMenuOpen=!1,this.isMoreTabMenuSelected=!1,this.isMoreTabMenuScrollable=!1,this.moreTabMenuOffsetWidth=0,this.moreTabMenuMaxHeight=null,this.tabsViewportDataList=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.noTabsVisible=!1,this.defaultTabsOrderArray=[],this.tabsOrderPrefsArray=[],this.isMoreTabTruncated=!1,this.showLeftArrow=!1,this.showRightArrow=!1,this.tabs=[],this.panels=[],this.tabsCopy=[],this.tabsHash={},this.tabsCopyHash={},this.tabsIdxHash={},this.tabsVisibleIdxHash={},this.tabsHiddenIdxHash={},this.visibleTabsSortableInstance=null,this.hiddenTabsSortableInstance=null,this.updateArrowsVisibility=()=>{this.tabsListElement&&requestAnimationFrame((()=>{const{scrollLeft:t,scrollWidth:e,clientWidth:i}=this.tabsListElement;this.showLeftArrow=t>0,this.showRightArrow=t+i<e-5}))},this.handleOnDragEnd=t=>w(this,void 0,void 0,(function*(){var e,i,s,o,r,n,a,l,d,h;t.stopPropagation();const p=t.oldIndex,c=t.newIndex,u=[...this.tabsFilteredAsVisibleList],m=[...this.tabsFilteredAsHiddenList],y=this.getDragDirection(t);if(void 0!==p&&void 0!==c){switch(y){case S:{null===(i=null===(e=this.hiddenTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t.item.id))||void 0===i||i.remove();const s=u[p],o=m.slice(-1)[0],r=c===this.tabsFilteredAsHiddenList.length?c-1:c;m.splice(r,0,s),m.pop();const n=u.filter((e=>e.id!==this.getNormalizedTabId(t.item.id)));n.push(o),this.tabsFilteredAsVisibleList=[...n],this.tabsFilteredAsHiddenList=[...m];break}case $:{const t=u[p];u.splice(p,1),u.splice(c,0,t),this.tabsFilteredAsVisibleList=u,c===this.tabsFilteredAsVisibleList.length-1&&(null===(o=null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children[this.visibleTabsContainerElement.children.length-1])||void 0===o||o.remove());const e=this.visibleTabsContainerElement.children[p],i=this.visibleTabsContainerElement.children[c];if(!e||!i)return;null===(r=this.visibleTabsContainerElement)||void 0===r||r.replaceChild(i,e),null===(n=this.visibleTabsContainerElement)||void 0===n||n.insertBefore(e,i);break}case E:{null===(l=null===(a=this.visibleTabsContainerElement)||void 0===a?void 0:a.querySelector("#"+t.item.id))||void 0===l||l.remove();const e=m[p],i=u.slice(-1)[0];m.splice(p,1),m.splice(0,0,i);const s=c===this.tabsFilteredAsVisibleList.length?c-1:c;u.splice(s,0,e),u.pop(),this.tabsFilteredAsVisibleList=u,this.tabsFilteredAsHiddenList=m;break}case T:{const t=m[p];m.splice(p,1),m.splice(c,0,t),this.tabsFilteredAsHiddenList=m,c===this.tabsFilteredAsHiddenList.length-1&&(null===(h=null===(d=this.hiddenTabsContainerElement)||void 0===d?void 0:d.children[this.hiddenTabsContainerElement.children.length-1])||void 0===h||h.remove());break}}if(this.compUniqueId){const t=[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],e=t.findIndex((t=>t.selected));this.storeSelectedTabIndex(e),this.tabsOrderPrefsArray=t.map((t=>t.name)),localStorage.setItem(this.compUniqueId,this.tabsOrderPrefsArray.join(","))}}}))}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._selectedIndex=t}generateOptions(){return{group:"shared",animation:10,swapThreshold:1,draggable:"md-tab",direction:this.direction,forceFallback:this.forceFallback,fallbackClass:this.fallbackClass,ghostClass:this.ghostClass,chosenClass:this.chosenClass,onEnd:this.handleOnDragEnd}}get currentTabsLayout(){return"horizontal"!==this.direction||this.scrollArrow?this.tabs:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList]}getCopyTabId(t){var e;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(C))?`${C}${t.id}`:t.id}getAriaControlId(t){var e,i;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(C))?`${C}${t.id}`:"tab_panel_"+(null===(i=t.id)||void 0===i?void 0:i.substring(4))}getTabIndex(t){var e,i;return this.isMoreTabMenuVisible&&0===this.getCurrentIndex(null==t?void 0:t.id)&&this.selected>(null===(e=this.tabsFilteredAsVisibleList)||void 0===e?void 0:e.length)-1||(null===(i=this.tabsFilteredAsVisibleList[this.selected])||void 0===i?void 0:i.id)===t.id?0:-1}getNormalizedTabId(t){return t.replace(C,"")}static get styles(){return[a.A,v.A]}ensureTabsUpdateComplete(t){return w(this,void 0,void 0,(function*(){const e=t.map((t=>void 0!==t.updateComplete?t.updateComplete:null)).filter((t=>null!==t));e.length&&(yield Promise.all(e))}))}measureTabsOffsetWidth(){return this.justified||"vertical"===this.direction?this.tabs.map((t=>{t.setAttribute("measuringrealwidth","");const e=t.closable?t.offsetWidth+g.TAB_CROSS_WIDTH:t.offsetWidth;return t.removeAttribute("measuringrealwidth"),e})):this.tabs.map((t=>t.closable?t.offsetWidth+g.TAB_CROSS_WIDTH:t.offsetWidth))}updateIsMoreTabTruncated(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-menu-overlay__overflow-label");if(e){const t=e.scrollWidth>e.clientWidth;this.isMoreTabTruncated!=t&&(this.isMoreTabTruncated=t)}}measureHiddenTabsCopiesOffsetHeight(){return this.tabsCopy.map((t=>t.offsetHeight))}manageOverflow(){return w(this,void 0,void 0,(function*(){var t,e;if("vertical"!==this.direction&&!this.scrollArrow){let i;i=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length?[...this.tabs]:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],i.forEach((t=>{var e,i,s,o,r;if((null===(e=t.children)||void 0===e?void 0:e.length)&&0===(null===(s=null===(i=t.children[0])||void 0===i?void 0:i.children)||void 0===s?void 0:s.length)){const e=null===(o=null==t?void 0:t.querySelector("slot"))||void 0===o?void 0:o.assignedNodes({flatten:!0})[0].cloneNode(!0);e&&(e.classList.add("tab-content"),null===(r=null==t?void 0:t.children[0])||void 0===r||r.appendChild(e))}}));const s=i.length;if(this.tabsListElement&&s){const o=(null===(t=this.tabsSettingsElement)||void 0===t?void 0:t.offsetWidth)?this.tabsListElement.offsetWidth-(null===(e=this.tabsSettingsElement)||void 0===e?void 0:e.offsetWidth):this.tabsListElement.offsetWidth;yield this.ensureTabsUpdateComplete(this.tabs);const r=this.measureTabsOffsetWidth(),n=i.reduce(((t,e,i)=>t+r[i]),0);if(n){yield this.setupMoreTab();let t=!0;o<n&&(t=!1);const e=[];let a=0;i.forEach(((i,n)=>{a+=r[n];const l=!t&&a+(n<s-1?this.moreTabMenuOffsetWidth:0)>o;e.push({isTabInViewportHidden:l,tabOffsetWidth:r[n]})})),this.tabsViewportDataList=e,this.tabsViewportDataList.forEach(((t,e)=>this.tabs[e].viewportHidden=t.isTabInViewportHidden)),this.isMoreTabMenuVisible=!!this.tabsViewportDataList.find((t=>t.isTabInViewportHidden)),this.tabsFilteredAsVisibleList=i.filter(((t,e)=>!this.tabsViewportDataList[e].isTabInViewportHidden)),this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce(((t,e,i)=>(t[e.id]=i,t)),{}),this.tabsFilteredAsHiddenList=i.filter(((t,e)=>this.tabsViewportDataList[e].isTabInViewportHidden)),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce(((t,e,i)=>(t[e.id]=i,t)),{})}}this.updateIsMoreTabMenuSelected();const o=this.tabsFilteredAsHiddenList.find((t=>!t.disabled));this.updateHiddenIdPositiveTabIndex(o)}}))}updateIsMoreTabMenuSelected(){this.isMoreTabMenuSelected=!!this.tabsFilteredAsHiddenList.find((t=>t.selected))}updateHiddenIdPositiveTabIndex(t){this.tabHiddenIdPositiveTabIndex=t?t.id:void 0}sortTabsAndPanes(){if(!this.tabsOrderPrefsArray.length)return;const t=(t,e)=>{var i,s;const o=null!==(i=t.getAttribute("name"))&&void 0!==i?i:"",r=null!==(s=e.getAttribute("name"))&&void 0!==s?s:"";return this.tabsOrderPrefsArray.indexOf(o)-this.tabsOrderPrefsArray.indexOf(r)};this.tabs.sort(t),this.panels.sort(t)}linkPanelsAndTabs(){return w(this,void 0,void 0,(function*(){this.sortTabsAndPanes();const{tabs:t,panels:e}=this;if(0===t.length||0===e.length)return void console.warn("The tabs or panels count should't be equal zero.");t.length!==e.length&&console.warn(`The amount of tabs (${t.length}) doesn't match the amount of panels (${e.length}).`);const i="vertical"===this.direction;t.forEach(((t,s)=>{const o=(0,n.O)("tabs"),r="tab_"+o,a="tab_panel_"+o;t.setAttribute("id",r),t.setAttribute("aria-controls",a),t.selected=this.selected===s,t.newMomentum=this.newMomentum,t.type=this.type,t.variant=this.variant,this.scrollArrow&&(t.visibleTab=!0),t.vertical!==i&&(t.vertical=i),t.viewportHidden&&(i||this.scrollArrow)&&(t.viewportHidden=!1);const l=e[s];l?(l.setAttribute("id",a),l.setAttribute("aria-labelledby",r),l.selected=this.selected===s,t.disabled&&(l.hidden=!0,l.selected=!1)):t.disabled=!0}));let s=this.selected;for(;s<t.length&&t[s].disabled;)s++;s=s===t.length?0:s,t[s].selected=!0,e[s].selected=!0,this.tabsHash=this.tabs.reduce(((t,e)=>(t[e.id]=e,t)),{}),this.tabsIdxHash=this.tabs.reduce(((t,e,i)=>(t[e.id]=i,t)),{})}))}get slotItem(){return this.tabSlotElement}filterSlotted(){return this.tabSlotElement.assignedElements()}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),this.manageOverflow(),this.updateIsMoreTabTruncated(),this.scrollArrow&&this.updateArrowsVisibility()}getDragDirection(t){return t.from===this.visibleTabsContainerElement&&t.to===this.hiddenTabsContainerElement?S:t.from===this.visibleTabsContainerElement&&t.to===this.visibleTabsContainerElement?$:t.from===this.hiddenTabsContainerElement&&t.to===this.visibleTabsContainerElement?E:t.from===this.hiddenTabsContainerElement&&t.to===this.hiddenTabsContainerElement?T:void 0}makeTabCopyFocus(t){t&&t.focus()}handleTabClick(t){const{id:e}=t.detail;this.handleNewSelectedTab(e)}handleNewSelectedTab(t){const e=this.tabsHash[this.getNormalizedTabId(t)];if(e&&!e.disabled){const t=this.tabsIdxHash[e.id];-1!==t&&this.updateSelectedTab(t);{const t=this.tabsCopyHash[this.getCopyTabId(e)];t&&this.makeTabCopyFocus(t),this.updateHiddenIdPositiveTabIndex(e)}}}handleTabCrossClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseEvent(t){var e,i;const s=this.tabsHash[this.getNormalizedTabId(t)];if(s&&!s.disabled&&("auto"===s.closable||"custom"===s.closable)){const s=this.tabsFilteredAsVisibleList.findIndex((e=>this.getNormalizedTabId(e.id)===this.getNormalizedTabId(t)));this.tabsFilteredAsVisibleList=this.tabsFilteredAsVisibleList.filter((e=>this.getNormalizedTabId(e.id)!==this.getNormalizedTabId(t))),null===(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t))||void 0===i||i.remove(),0!==this.tabsFilteredAsHiddenList.length&&(this.tabsFilteredAsVisibleList.push(this.tabsFilteredAsHiddenList[0]),this.tabsFilteredAsHiddenList.splice(0,1)),0===this.tabsFilteredAsHiddenList.length&&(this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1),this.handleUpdatedSeletedTabAfterCross(s)}}handleUpdatedSeletedTabAfterCross(t){var e;let i=t;for(;i<this.tabsFilteredAsVisibleList.length&&(null===(e=this.tabsFilteredAsVisibleList[i])||void 0===e?void 0:e.disabled);)i++;if(void 0===this.tabsFilteredAsVisibleList[i]||t===this.tabsFilteredAsVisibleList.length)for(i=t-1;i>=0&&this.tabsFilteredAsVisibleList[i].disabled;)i--;if(-1!==i){const t=this.tabs.findIndex((t=>t.id===this.tabsFilteredAsVisibleList[i].id));this.updateSelectedTab(t)}else this.updateSelectedTab(i);this.noTabsVisible=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length,this.requestUpdate()}setSelectedAttribute(t,e,i=!1){e&&(e.selected=i),t&&(t.selected=i,i&&(this.isMoreTabMenuSelected=this.isTabInMoreMenu(t)),this.isTabInMoreMenu(t)&&(this.isMoreTabMenuSelected=!0))}isTabInMoreMenu(t){return void 0!==this.tabsFilteredAsHiddenList.find((e=>e.id===t.id))}updateSelectedTab(t){const{tabs:e,panels:i}=this,s=this.tabs.findIndex((t=>t.hasAttribute("selected")));if(e&&i&&(this.setSelectedAttribute((0,r.Qx)(e,s),(0,r.Qx)(i,s),!1),this.setSelectedAttribute((0,r.Qx)(e,t),(0,r.Qx)(i,t),!0)),t>=0){this.dispatchSelectedChangedEvent(t);const i=this.currentTabsLayout.findIndex((i=>i.id===e[t].id));this.changeSelectedTabIdx(i)}}dispatchSelectedChangedEvent(t){const e=this.currentTabsLayout,i=this.tabs[t].id,s=e.findIndex((t=>t.id===i)),o=[];e.forEach((t=>{o.push(t.name)})),this.dispatchEvent(new CustomEvent("selected-changed",{detail:{value:s,tabsOrder:o},composed:!0,bubbles:!0}))}changeSelectedTabIdx(t){this.requestUpdate(),this.selected=t,this.updateComplete.then((()=>{var e,i;if(t<this.tabsFilteredAsVisibleList.length){const t=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.children[this.selected];null==t||t.focus()}else{const t=this.selected-this.tabsFilteredAsVisibleList.length,e=null===(i=this.hiddenTabsContainerElement)||void 0===i?void 0:i.children[t];this.moveFocusToTab(e);const s=this.tabsFilteredAsHiddenList[t];(null==s?void 0:s.disabled)||this.updateHiddenIdPositiveTabIndex(s)}})),this.updateIsMoreTabMenuSelected(),this.storeSelectedTabIndex(t)}storeSelectedTabIndex(t){this.persistSelection&&this.tabsId&&t>-1&&""!==this.tabsId.trim()&&sessionStorage.setItem(this.tabsId,`${t}`)}getCurrentIndex(t){var e,i,s;if(this.scrollArrow){const e=this.tabs.length;for(let i=0;i<e;i++)if(this.tabs[i].id===t)return i}const o=null!==(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.children.length)&&void 0!==i?i:0;for(let e=0;e<o;e++)if((null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children[e].id)===t)return e;return this.tabsVisibleIdxHash[t]}moveFocusToAdjacentTab(t,e){var i,s,o;const r=this.getCurrentIndex(t),n=this.slotItem.assignedElements();let a=0;if(this.scrollArrow){e===k?a=0===r?n.length-1:r-1:e===A&&(a=r===n.length-1?0:r+1),this.moveFocusToTab(n[a]);const t=n[a],s=t.getBoundingClientRect(),o=null===(i=this.tabsListElement)||void 0===i?void 0:i.getBoundingClientRect();return o&&(s.left>=o.left&&s.right<=o.right&&s.top>=o.top&&s.bottom<=o.bottom||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})),this.updateArrowsVisibility(),void(0,b.setTimeout)((()=>this.moveFocusToTab(n[a])),0)}const l=null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children,d=null!==(o=null==l?void 0:l.length)&&void 0!==o?o:0;l&&0!==d&&(e===k?a=0===r?d-1:r-1:e===A?a=r===d-1?0:r+1:e===I&&(a=this.selected>=d?0:this.selected),this.moveFocusToTab(l[a]))}moveFocusToTab(t){(0,b.setTimeout)((()=>null==t?void 0:t.focus()),0)}handleOverlayClose(){(0,b.setTimeout)((()=>{this.menuOverlayElement&&(this.menuOverlayElement.isOpen=!1)}),0)}dispatchKeydownEvent(t,e){e&&this.dispatchEvent(new CustomEvent("tab-keydown",{detail:{id:e,key:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,srcEvent:t},bubbles:!0,composed:!0}))}handleTabKeydown(t){var e,i,o,r,n,a,l;const d=t.target;if(t.target!=this&&!this.tabs.find((t=>t.id===(null==d?void 0:d.id))))return!1;let h;if((null===(e=t.composedPath())||void 0===e?void 0:e.length)>0?h=t.composedPath()[0].id:t.originalTarget&&(h=t.originalTarget.id),!h)return;const p=this.getNormalizedTabId(h);this.dispatchKeydownEvent(t,p);const c=t.code,{shiftKey:u}=t,m=!!this.isMoreTabMenuVisible&&p===x,y=m&&this.isMoreTabMenuVisible?this.moreTabMenuElement:this.tabsHash[this.getNormalizedTabId(p)],b=!this.isMoreTabMenuVisible||y&&this.tabsVisibleIdxHash[y.id]>-1,v=!!this.isMoreTabMenuVisible&&y&&this.tabsHiddenIdxHash[y.id]>-1,g=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length-1:this.tabs.length-1,f=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length:-1,w=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length+this.tabsFilteredAsHiddenList.length-1:-1;switch(c){case s.Uz.Tab:m&&!this.isMoreTabMenuOpen&&u&&(t.preventDefault(),this.moveFocusToAdjacentTab(h,I));break;case s.Uz.End:m||(b?(t.preventDefault(),this.moveFocusToTab(null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[(null===(o=this.tabsFilteredAsVisibleList)||void 0===o?void 0:o.length)-1])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(r=this.hiddenTabsContainerElement)||void 0===r?void 0:r.children[(null===(n=this.tabsFilteredAsHiddenList)||void 0===n?void 0:n.length)-1])));break;case s.Uz.Home:b?(t.preventDefault(),this.moveFocusToTab(null===(a=this.visibleTabsContainerElement)||void 0===a?void 0:a.children[0])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(l=this.hiddenTabsContainerElement)||void 0===l?void 0:l.children[0]));break;case s.Uz.ArrowLeft:m||(b||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,k));break;case s.Uz.ArrowRight:m||(b||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,A));break;case s.Uz.ArrowUp:if(m);else if(b&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(0===this.selected?g:this.selected-1);else if(v){t.preventDefault();const e=this.selected===f?w:this.selected-1;this.changeSelectedTabIdx(e)}break;case s.Uz.ArrowDown:if(m);else if(b&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(this.selected===g?0:this.selected+1);else if(v){t.preventDefault();const e=this.selected===w?f:this.selected+1;this.changeSelectedTabIdx(e)}break;case s.Uz.Enter:case s.Uz.NumpadEnter:case s.Uz.Space:if(m){const t=this.tabsFilteredAsHiddenList.filter((t=>!t.disabled)),e=t.length?t.find((t=>t.selected))||t[0]:void 0;if(this.updateHiddenIdPositiveTabIndex(e),e){const t=this.tabsIdxHash[this.getNormalizedTabId(e.id)];-1!==t&&this.updateSelectedTab(t)}}else if(y&&!y.disabled){const e=this.tabsIdxHash[this.getNormalizedTabId(y.id)];-1!==e&&(t.preventDefault(),this.updateSelectedTab(e))}}}setupTabsEvents(){this.addEventListener("tab-click",this.handleTabClick),this.addEventListener("tab-cross-click",this.handleTabCrossClick),this.addEventListener("tab-close-click",this.handleTabCloseClick),this.addEventListener("keydown",this.handleTabKeydown),this.addEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}teardownTabsEvents(){this.removeEventListener("tab-click",this.handleTabClick),this.removeEventListener("tab-cross-click",this.handleTabCrossClick),this.removeEventListener("tab-close-click",this.handleTabCloseClick),this.removeEventListener("keydown",this.handleTabKeydown),this.removeEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}clearTabOrderPrefs(t){const{compUniqueId:e}=t.detail;e===this.compUniqueId&&(localStorage.removeItem(this.tabsId),sessionStorage.removeItem(this.tabsId),localStorage.removeItem(this.compUniqueId),this.tabsOrderPrefsArray=this.defaultTabsOrderArray,this.selected=0,this.initializeTabs(),this.dispatchSelectedChangedEvent(0))}setupPanelsAndTabs(){this.tabSlotElement&&(this.tabs=this.tabSlotElement.assignedElements()),this.panelSlotElement&&(this.panels=this.panelSlotElement.assignedElements()),this.defaultTabsOrderArray=this.tabs.map((t=>t.name))}setupMoreTab(){return w(this,void 0,void 0,(function*(){"vertical"!==this.direction&&this.moreTabMenuElement&&!this.isMoreTabMenuMeasured&&(this.moreTabMenuElement.classList.add("md-menu-overlay__more_tab--measuring"),yield this.moreTabMenuElement.updateComplete,this.moreTabMenuElement.offsetWidth&&(this.moreTabMenuOffsetWidth=this.moreTabMenuElement.offsetWidth,this.isMoreTabMenuMeasured=!0),this.moreTabMenuElement.classList.remove("md-menu-overlay__more_tab--measuring"))}))}initializeSortable(){this.visibleTabsContainerElement&&this.hiddenTabsContainerElement&&(this.visibleTabsSortableInstance=y().create(this.visibleTabsContainerElement,this.generateOptions()),this.hiddenTabsSortableInstance=y().create(this.hiddenTabsContainerElement,this.generateOptions()))}initializeTabs(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),this.manageOverflow(),this.requestUpdate()}connectedCallback(){var t;if(super.connectedCallback(),this.setupTabsEvents(),this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=localStorage.getItem(this.tabsId);this.selected=t&&parseInt(t)>-1?parseInt(t):this.selected}this.compUniqueId&&(this.tabsOrderPrefsArray=(null===(t=localStorage.getItem(this.compUniqueId))||void 0===t?void 0:t.split(","))||[])}selectTabFromStorage(){if(this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=sessionStorage.getItem(this.tabsId);let e=0;if(t){const i=parseInt(t);e=i>-1?i:this.selected}const i=this.currentTabsLayout;i.length&&i[e].id?(this._selectedIndex=e,this.handleNewSelectedTab(i[e].id)):this.selected=e}}disconnectedCallback(){super.disconnectedCallback(),this.teardownTabsEvents()}firstUpdated(t){var e;super.firstUpdated(t),this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.selectTabFromStorage(),this.scrollArrow&&(this.updateArrowsVisibility(),null===(e=this.tabsListElement)||void 0===e||e.addEventListener("scroll",this.updateArrowsVisibility))}onDirectionChanged(){return w(this,void 0,void 0,(function*(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),yield this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),"horizontal"===this.direction&&(yield this.manageOverflow()),this.selectTabFromStorage(),this.scrollArrow&&this.updateArrowsVisibility()}))}updated(t){var e;if(super.updated(t),t.has("direction")&&t.get("direction")!==this.direction&&this.onDirectionChanged(),t.has("slotted")&&this.initializeTabs(),!this.draggable||this.visibleTabsSortableInstance||this.hiddenTabsSortableInstance||this.initializeSortable(),t.has("tabsFilteredAsHiddenList")&&(this.tabsCopy=Array.from((null===(e=this.tabsCopyHiddenListElements)||void 0===e?void 0:e.values())||[]),this.tabsCopyHash=this.tabsCopy.reduce(((t,e)=>(t[e.id]=e,t)),{})),(t.has("tabsFilteredAsVisibleList")||t.has("tabsFilteredAsHiddenList"))&&(this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce(((t,e,i)=>(t[e.id]=i,t)),{}),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce(((t,e,i)=>(t[e.id]=i,t)),{})),t.has("isMoreTabMenuOpen")&&this.isMoreTabMenuVisible){const e=t.get("isMoreTabMenuOpen");this.isMoreTabMenuOpen&&!e&&(this.moreItemsScrollLimit<this.tabsCopy.length?(this.isMoreTabMenuScrollable=!0,this.moreTabMenuMaxHeight=`${this.measureHiddenTabsCopiesOffsetHeight().slice(0,this.moreItemsScrollLimit).reduce(((t,e)=>t+e),0)}px`):(this.isMoreTabMenuScrollable=!1,this.moreTabMenuMaxHeight=null))}t.has("tabsId")&&this.selectTabFromStorage(),t.has("selectedIndex")&&this.updateSelectedTab(this.selectedIndex),t.has("overflowLabel")&&this.updateIsMoreTabTruncated(),t.has("scrollArrow")&&this.onDirectionChanged()}scrollTabs(t){if(!this.tabsListElement||"vertical"===this.direction)return;const e="left"===t?-100:100;this.tabsListElement.scrollBy({left:e,behavior:"smooth"}),(0,b.setTimeout)((()=>this.updateArrowsVisibility()),300)}get moreMenuButtonTemplate(){return l.html`
|
|
1319
|
+
`}};m([(0,l.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),m([(0,l.property)({type:Boolean,attribute:"twenty-four-hour-format",reflect:!0})],e.prototype,"twentyFourHourFormat",void 0),m([(0,l.property)({type:String})],e.prototype,"timeSpecificity",void 0),m([(0,l.property)({type:String})],e.prototype,"locale",void 0),m([(0,l.property)({type:String,reflect:!0})],e.prototype,"value",void 0),m([(0,l.internalProperty)()],e.prototype,"finalTwentyFourFormat",void 0),m([(0,l.internalProperty)()],e.prototype,"timeObject",void 0),m([(0,l.internalProperty)()],e.prototype,"tabNext",void 0),m([(0,l.internalProperty)()],e.prototype,"timeValue",void 0),m([(0,l.internalProperty)()],e.prototype,"timeValidity",void 0),e=m([(0,o.w)("md-timepicker")],e),t.ELEMENT=e}(g||(g={}))},50226:(t,e,i)=>{i.d(e,{Tabs:()=>L}),i(61200),i(11323),i(83192);var s=i(90195),o=i(3001),r=i(66677),n=i(59164),a=i(26272),l=i(41488),d=i(40333),h=i(23968),p=i(22818),c=i(8229),u=i(19239),m=i(41891),y=i.n(m),b=i(97103),v=i(30076),g=i(16643),f=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},w=function(t,e,i,s){return new(i||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}))};const x="tab-more",C="more-menu-copy-",S="visibleToVisible",$="visibleToHidden",E="hiddenToVisible",T="hiddenToHidden",k="previous",A="next",I="fromMoreTabs";var L;!function(t){let e=class extends((0,o.UM)((0,o.Io)((0,o.TS)(l.LitElement)))){constructor(){super(...arguments),this.justified=!1,this.hugTabs=!1,this.overflowLabel="More Tabs",this.draggable=!1,this.direction="horizontal",this.moreItemsScrollLimit=Number.MAX_SAFE_INTEGER,this._selectedIndex=0,this.animation=100,this.ghostClass="",this.chosenClass="",this.forceFallback=!1,this.fallbackClass="",this.tabsId="",this.persistSelection=!1,this.compUniqueId="",this.type="line",this.newMomentum=!1,this.variant="ghost",this.scrollArrow=!1,this.leftArrowAriaLabel="Backward Button",this.rightArrowAriaLabel="Forward Button",this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1,this.isMoreTabMenuOpen=!1,this.isMoreTabMenuSelected=!1,this.isMoreTabMenuScrollable=!1,this.moreTabMenuOffsetWidth=0,this.moreTabMenuMaxHeight=null,this.tabsViewportDataList=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.noTabsVisible=!1,this.defaultTabsOrderArray=[],this.tabsOrderPrefsArray=[],this.isMoreTabTruncated=!1,this.showLeftArrow=!1,this.showRightArrow=!1,this.tabs=[],this.panels=[],this.tabsCopy=[],this.tabsHash={},this.tabsCopyHash={},this.tabsIdxHash={},this.tabsVisibleIdxHash={},this.tabsHiddenIdxHash={},this.visibleTabsSortableInstance=null,this.hiddenTabsSortableInstance=null,this.updateArrowsVisibility=()=>{this.tabsListElement&&requestAnimationFrame((()=>{const{scrollLeft:t,scrollWidth:e,clientWidth:i}=this.tabsListElement;this.showLeftArrow=t>0,this.showRightArrow=t+i<e-5}))},this.handleOnDragEnd=t=>w(this,void 0,void 0,(function*(){var e,i,s,o,r,n,a,l,d,h;t.stopPropagation();const p=t.oldIndex,c=t.newIndex,u=[...this.tabsFilteredAsVisibleList],m=[...this.tabsFilteredAsHiddenList],y=this.getDragDirection(t);if(void 0!==p&&void 0!==c){switch(y){case $:{null===(i=null===(e=this.hiddenTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t.item.id))||void 0===i||i.remove();const s=u[p],o=m.slice(-1)[0],r=c===this.tabsFilteredAsHiddenList.length?c-1:c;m.splice(r,0,s),m.pop();const n=u.filter((e=>e.id!==this.getNormalizedTabId(t.item.id)));n.push(o),this.tabsFilteredAsVisibleList=[...n],this.tabsFilteredAsHiddenList=[...m];break}case S:{const t=u[p];u.splice(p,1),u.splice(c,0,t),this.tabsFilteredAsVisibleList=u,c===this.tabsFilteredAsVisibleList.length-1&&(null===(o=null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children[this.visibleTabsContainerElement.children.length-1])||void 0===o||o.remove());const e=this.visibleTabsContainerElement.children[p],i=this.visibleTabsContainerElement.children[c];if(!e||!i)return;null===(r=this.visibleTabsContainerElement)||void 0===r||r.replaceChild(i,e),null===(n=this.visibleTabsContainerElement)||void 0===n||n.insertBefore(e,i);break}case E:{null===(l=null===(a=this.visibleTabsContainerElement)||void 0===a?void 0:a.querySelector("#"+t.item.id))||void 0===l||l.remove();const e=m[p],i=u.slice(-1)[0];m.splice(p,1),m.splice(0,0,i);const s=c===this.tabsFilteredAsVisibleList.length?c-1:c;u.splice(s,0,e),u.pop(),this.tabsFilteredAsVisibleList=u,this.tabsFilteredAsHiddenList=m;break}case T:{const t=m[p];m.splice(p,1),m.splice(c,0,t),this.tabsFilteredAsHiddenList=m,c===this.tabsFilteredAsHiddenList.length-1&&(null===(h=null===(d=this.hiddenTabsContainerElement)||void 0===d?void 0:d.children[this.hiddenTabsContainerElement.children.length-1])||void 0===h||h.remove());break}}if(this.compUniqueId){const t=[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],e=t.findIndex((t=>t.selected));this.storeSelectedTabIndex(e),this.tabsOrderPrefsArray=t.map((t=>t.name)),localStorage.setItem(this.compUniqueId,this.tabsOrderPrefsArray.join(","))}}}))}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._selectedIndex=t}generateOptions(){return{group:"shared",animation:10,swapThreshold:1,draggable:"md-tab",direction:this.direction,forceFallback:this.forceFallback,fallbackClass:this.fallbackClass,ghostClass:this.ghostClass,chosenClass:this.chosenClass,onEnd:this.handleOnDragEnd}}get currentTabsLayout(){return"horizontal"!==this.direction||this.scrollArrow?this.tabs:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList]}getCopyTabId(t){var e;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(C))?`${C}${t.id}`:t.id}getAriaControlId(t){var e,i;return(null===(e=t.id)||void 0===e?void 0:e.startsWith(C))?`${C}${t.id}`:"tab_panel_"+(null===(i=t.id)||void 0===i?void 0:i.substring(4))}getTabIndex(t){var e,i;return this.isMoreTabMenuVisible&&0===this.getCurrentIndex(null==t?void 0:t.id)&&this.selected>(null===(e=this.tabsFilteredAsVisibleList)||void 0===e?void 0:e.length)-1||(null===(i=this.tabsFilteredAsVisibleList[this.selected])||void 0===i?void 0:i.id)===t.id?0:-1}getNormalizedTabId(t){return t.replace(C,"")}static get styles(){return[a.A,v.A]}ensureTabsUpdateComplete(t){return w(this,void 0,void 0,(function*(){const e=t.map((t=>void 0!==t.updateComplete?t.updateComplete:null)).filter((t=>null!==t));e.length&&(yield Promise.all(e))}))}measureTabsOffsetWidth(){return this.justified||"vertical"===this.direction?this.tabs.map((t=>{t.setAttribute("measuringrealwidth","");const e=t.closable?t.offsetWidth+g.TAB_CROSS_WIDTH:t.offsetWidth;return t.removeAttribute("measuringrealwidth"),e})):this.tabs.map((t=>t.closable?t.offsetWidth+g.TAB_CROSS_WIDTH:t.offsetWidth))}updateIsMoreTabTruncated(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-menu-overlay__overflow-label");if(e){const t=e.scrollWidth>e.clientWidth;this.isMoreTabTruncated!=t&&(this.isMoreTabTruncated=t)}}measureHiddenTabsCopiesOffsetHeight(){return this.tabsCopy.map((t=>t.offsetHeight))}manageOverflow(){return w(this,void 0,void 0,(function*(){var t,e;if("vertical"!==this.direction&&!this.scrollArrow){let i;i=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length?[...this.tabs]:[...this.tabsFilteredAsVisibleList,...this.tabsFilteredAsHiddenList],i.forEach((t=>{var e,i,s,o,r;if((null===(e=t.children)||void 0===e?void 0:e.length)&&0===(null===(s=null===(i=t.children[0])||void 0===i?void 0:i.children)||void 0===s?void 0:s.length)){const e=null===(o=null==t?void 0:t.querySelector("slot"))||void 0===o?void 0:o.assignedNodes({flatten:!0})[0].cloneNode(!0);e&&(e.classList.add("tab-content"),null===(r=null==t?void 0:t.children[0])||void 0===r||r.appendChild(e))}}));const s=i.length;if(this.tabsListElement&&s){const o=(null===(t=this.tabsSettingsElement)||void 0===t?void 0:t.offsetWidth)?this.tabsListElement.offsetWidth-(null===(e=this.tabsSettingsElement)||void 0===e?void 0:e.offsetWidth):this.tabsListElement.offsetWidth;yield this.ensureTabsUpdateComplete(this.tabs);const r=this.measureTabsOffsetWidth(),n=i.reduce(((t,e,i)=>t+r[i]),0);if(n){yield this.setupMoreTab();let t=!0;o<n&&(t=!1);const e=[];let a=0;i.forEach(((i,n)=>{a+=r[n];const l=!t&&a+(n<s-1?this.moreTabMenuOffsetWidth:0)>o;e.push({isTabInViewportHidden:l,tabOffsetWidth:r[n]})})),this.tabsViewportDataList=e,this.tabsViewportDataList.forEach(((t,e)=>this.tabs[e].viewportHidden=t.isTabInViewportHidden)),this.isMoreTabMenuVisible=!!this.tabsViewportDataList.find((t=>t.isTabInViewportHidden)),this.tabsFilteredAsVisibleList=i.filter(((t,e)=>!this.tabsViewportDataList[e].isTabInViewportHidden)),this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce(((t,e,i)=>(t[e.id]=i,t)),{}),this.tabsFilteredAsHiddenList=i.filter(((t,e)=>this.tabsViewportDataList[e].isTabInViewportHidden)),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce(((t,e,i)=>(t[e.id]=i,t)),{})}}this.updateIsMoreTabMenuSelected();const o=this.tabsFilteredAsHiddenList.find((t=>!t.disabled));this.updateHiddenIdPositiveTabIndex(o)}}))}updateIsMoreTabMenuSelected(){this.isMoreTabMenuSelected=!!this.tabsFilteredAsHiddenList.find((t=>t.selected))}updateHiddenIdPositiveTabIndex(t){this.tabHiddenIdPositiveTabIndex=t?t.id:void 0}sortTabsAndPanes(){if(!this.tabsOrderPrefsArray.length)return;const t=(t,e)=>{var i,s;const o=null!==(i=t.getAttribute("name"))&&void 0!==i?i:"",r=null!==(s=e.getAttribute("name"))&&void 0!==s?s:"";return this.tabsOrderPrefsArray.indexOf(o)-this.tabsOrderPrefsArray.indexOf(r)};this.tabs.sort(t),this.panels.sort(t)}linkPanelsAndTabs(){return w(this,void 0,void 0,(function*(){this.sortTabsAndPanes();const{tabs:t,panels:e}=this;if(0===t.length||0===e.length)return void console.warn("The tabs or panels count should't be equal zero.");t.length!==e.length&&console.warn(`The amount of tabs (${t.length}) doesn't match the amount of panels (${e.length}).`);const i="vertical"===this.direction;t.forEach(((t,s)=>{const o=(0,n.O)("tabs"),r="tab_"+o,a="tab_panel_"+o;t.setAttribute("id",r),t.setAttribute("aria-controls",a),t.selected=this.selected===s,t.newMomentum=this.newMomentum,t.type=this.type,t.variant=this.variant,this.scrollArrow&&(t.visibleTab=!0),t.vertical!==i&&(t.vertical=i),t.viewportHidden&&(i||this.scrollArrow)&&(t.viewportHidden=!1);const l=e[s];l?(l.setAttribute("id",a),l.setAttribute("aria-labelledby",r),l.selected=this.selected===s,t.disabled&&(l.hidden=!0,l.selected=!1)):t.disabled=!0}));let s=this.selected;for(;s<t.length&&t[s].disabled;)s++;s=s===t.length?0:s,t[s].selected=!0,e[s].selected=!0,this.tabsHash=this.tabs.reduce(((t,e)=>(t[e.id]=e,t)),{}),this.tabsIdxHash=this.tabs.reduce(((t,e,i)=>(t[e.id]=i,t)),{})}))}get slotItem(){return this.tabSlotElement}filterSlotted(){return this.tabSlotElement.assignedElements()}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),this.manageOverflow(),this.updateIsMoreTabTruncated(),this.scrollArrow&&this.updateArrowsVisibility()}getDragDirection(t){return t.from===this.visibleTabsContainerElement&&t.to===this.hiddenTabsContainerElement?$:t.from===this.visibleTabsContainerElement&&t.to===this.visibleTabsContainerElement?S:t.from===this.hiddenTabsContainerElement&&t.to===this.visibleTabsContainerElement?E:t.from===this.hiddenTabsContainerElement&&t.to===this.hiddenTabsContainerElement?T:void 0}makeTabCopyFocus(t){t&&t.focus()}handleTabClick(t){const{id:e}=t.detail;this.handleNewSelectedTab(e)}handleNewSelectedTab(t){const e=this.tabsHash[this.getNormalizedTabId(t)];if(e&&!e.disabled){const t=this.tabsIdxHash[e.id];-1!==t&&this.updateSelectedTab(t);{const t=this.tabsCopyHash[this.getCopyTabId(e)];t&&this.makeTabCopyFocus(t),this.updateHiddenIdPositiveTabIndex(e)}}}handleTabCrossClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseClick(t){const{id:e}=t.detail;this.handleTabCloseEvent(e)}handleTabCloseEvent(t){var e,i;const s=this.tabsHash[this.getNormalizedTabId(t)];if(s&&!s.disabled&&("auto"===s.closable||"custom"===s.closable)){const s=this.tabsFilteredAsVisibleList.findIndex((e=>this.getNormalizedTabId(e.id)===this.getNormalizedTabId(t)));this.tabsFilteredAsVisibleList=this.tabsFilteredAsVisibleList.filter((e=>this.getNormalizedTabId(e.id)!==this.getNormalizedTabId(t))),null===(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.querySelector("#"+t))||void 0===i||i.remove(),0!==this.tabsFilteredAsHiddenList.length&&(this.tabsFilteredAsVisibleList.push(this.tabsFilteredAsHiddenList[0]),this.tabsFilteredAsHiddenList.splice(0,1)),0===this.tabsFilteredAsHiddenList.length&&(this.isMoreTabMenuVisible=!1,this.isMoreTabMenuMeasured=!1),this.handleUpdatedSeletedTabAfterCross(s)}}handleUpdatedSeletedTabAfterCross(t){var e;let i=t;for(;i<this.tabsFilteredAsVisibleList.length&&(null===(e=this.tabsFilteredAsVisibleList[i])||void 0===e?void 0:e.disabled);)i++;if(void 0===this.tabsFilteredAsVisibleList[i]||t===this.tabsFilteredAsVisibleList.length)for(i=t-1;i>=0&&this.tabsFilteredAsVisibleList[i].disabled;)i--;if(-1!==i){const t=this.tabs.findIndex((t=>t.id===this.tabsFilteredAsVisibleList[i].id));this.updateSelectedTab(t)}else this.updateSelectedTab(i);this.noTabsVisible=0===this.tabsFilteredAsVisibleList.length&&0===this.tabsFilteredAsHiddenList.length,this.requestUpdate()}setSelectedAttribute(t,e,i=!1){e&&(e.selected=i),t&&(t.selected=i,i&&(this.isMoreTabMenuSelected=this.isTabInMoreMenu(t)),this.isTabInMoreMenu(t)&&(this.isMoreTabMenuSelected=!0))}isTabInMoreMenu(t){return void 0!==this.tabsFilteredAsHiddenList.find((e=>e.id===t.id))}updateSelectedTab(t){const{tabs:e,panels:i}=this,s=this.tabs.findIndex((t=>t.hasAttribute("selected")));if(e&&i&&(this.setSelectedAttribute((0,r.Qx)(e,s),(0,r.Qx)(i,s),!1),this.setSelectedAttribute((0,r.Qx)(e,t),(0,r.Qx)(i,t),!0)),t>=0){this.dispatchSelectedChangedEvent(t);const i=this.currentTabsLayout.findIndex((i=>i.id===e[t].id));this.changeSelectedTabIdx(i)}}dispatchSelectedChangedEvent(t){const e=this.currentTabsLayout,i=this.tabs[t].id,s=e.findIndex((t=>t.id===i)),o=[];e.forEach((t=>{o.push(t.name)})),this.dispatchEvent(new CustomEvent("selected-changed",{detail:{value:s,tabsOrder:o},composed:!0,bubbles:!0}))}changeSelectedTabIdx(t){this.requestUpdate(),this.selected=t,this.updateComplete.then((()=>{var e,i;if(t<this.tabsFilteredAsVisibleList.length){const t=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.children[this.selected];null==t||t.focus()}else{const t=this.selected-this.tabsFilteredAsVisibleList.length,e=null===(i=this.hiddenTabsContainerElement)||void 0===i?void 0:i.children[t];this.moveFocusToTab(e);const s=this.tabsFilteredAsHiddenList[t];(null==s?void 0:s.disabled)||this.updateHiddenIdPositiveTabIndex(s)}})),this.updateIsMoreTabMenuSelected(),this.storeSelectedTabIndex(t)}storeSelectedTabIndex(t){this.persistSelection&&this.tabsId&&t>-1&&""!==this.tabsId.trim()&&sessionStorage.setItem(this.tabsId,`${t}`)}getCurrentIndex(t){var e,i,s;if(this.scrollArrow){const e=this.tabs.length;for(let i=0;i<e;i++)if(this.tabs[i].id===t)return i}const o=null!==(i=null===(e=this.visibleTabsContainerElement)||void 0===e?void 0:e.children.length)&&void 0!==i?i:0;for(let e=0;e<o;e++)if((null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children[e].id)===t)return e;return this.tabsVisibleIdxHash[t]}moveFocusToAdjacentTab(t,e){var i,s,o;const r=this.getCurrentIndex(t),n=this.slotItem.assignedElements();let a=0;if(this.scrollArrow){e===k?a=0===r?n.length-1:r-1:e===A&&(a=r===n.length-1?0:r+1),this.moveFocusToTab(n[a]);const t=n[a],s=t.getBoundingClientRect(),o=null===(i=this.tabsListElement)||void 0===i?void 0:i.getBoundingClientRect();return o&&(s.left>=o.left&&s.right<=o.right&&s.top>=o.top&&s.bottom<=o.bottom||t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})),this.updateArrowsVisibility(),void(0,b.setTimeout)((()=>this.moveFocusToTab(n[a])),0)}const l=null===(s=this.visibleTabsContainerElement)||void 0===s?void 0:s.children,d=null!==(o=null==l?void 0:l.length)&&void 0!==o?o:0;l&&0!==d&&(e===k?a=0===r?d-1:r-1:e===A?a=r===d-1?0:r+1:e===I&&(a=this.selected>=d?0:this.selected),this.moveFocusToTab(l[a]))}moveFocusToTab(t){(0,b.setTimeout)((()=>null==t?void 0:t.focus()),0)}handleOverlayClose(){(0,b.setTimeout)((()=>{this.menuOverlayElement&&(this.menuOverlayElement.isOpen=!1)}),0)}dispatchKeydownEvent(t,e){e&&this.dispatchEvent(new CustomEvent("tab-keydown",{detail:{id:e,key:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,srcEvent:t},bubbles:!0,composed:!0}))}handleTabKeydown(t){var e,i,o,r,n,a,l;const d=t.target;if(t.target!=this&&!this.tabs.find((t=>t.id===(null==d?void 0:d.id))))return!1;let h;if((null===(e=t.composedPath())||void 0===e?void 0:e.length)>0?h=t.composedPath()[0].id:t.originalTarget&&(h=t.originalTarget.id),!h)return;const p=this.getNormalizedTabId(h);this.dispatchKeydownEvent(t,p);const c=t.code,{shiftKey:u}=t,m=!!this.isMoreTabMenuVisible&&p===x,y=m&&this.isMoreTabMenuVisible?this.moreTabMenuElement:this.tabsHash[this.getNormalizedTabId(p)],b=!this.isMoreTabMenuVisible||y&&this.tabsVisibleIdxHash[y.id]>-1,v=!!this.isMoreTabMenuVisible&&y&&this.tabsHiddenIdxHash[y.id]>-1,g=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length-1:this.tabs.length-1,f=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length:-1,w=this.isMoreTabMenuVisible?this.tabsFilteredAsVisibleList.length+this.tabsFilteredAsHiddenList.length-1:-1;switch(c){case s.Uz.Tab:m&&!this.isMoreTabMenuOpen&&u&&(t.preventDefault(),this.moveFocusToAdjacentTab(h,I));break;case s.Uz.End:m||(b?(t.preventDefault(),this.moveFocusToTab(null===(i=this.visibleTabsContainerElement)||void 0===i?void 0:i.children[(null===(o=this.tabsFilteredAsVisibleList)||void 0===o?void 0:o.length)-1])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(r=this.hiddenTabsContainerElement)||void 0===r?void 0:r.children[(null===(n=this.tabsFilteredAsHiddenList)||void 0===n?void 0:n.length)-1])));break;case s.Uz.Home:b?(t.preventDefault(),this.moveFocusToTab(null===(a=this.visibleTabsContainerElement)||void 0===a?void 0:a.children[0])):this.isMoreTabMenuOpen&&(t.preventDefault(),this.moveFocusToTab(null===(l=this.hiddenTabsContainerElement)||void 0===l?void 0:l.children[0]));break;case s.Uz.ArrowLeft:m||(b||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,k));break;case s.Uz.ArrowRight:m||(b||this.scrollArrow)&&(t.stopPropagation(),this.moveFocusToAdjacentTab(h,A));break;case s.Uz.ArrowUp:if(m);else if(b&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(0===this.selected?g:this.selected-1);else if(v){t.preventDefault();const e=this.selected===f?w:this.selected-1;this.changeSelectedTabIdx(e)}break;case s.Uz.ArrowDown:if(m);else if(b&&"vertical"===this.direction)t.preventDefault(),this.changeSelectedTabIdx(this.selected===g?0:this.selected+1);else if(v){t.preventDefault();const e=this.selected===w?f:this.selected+1;this.changeSelectedTabIdx(e)}break;case s.Uz.Enter:case s.Uz.NumpadEnter:case s.Uz.Space:if(m){const t=this.tabsFilteredAsHiddenList.filter((t=>!t.disabled)),e=t.length?t.find((t=>t.selected))||t[0]:void 0;if(this.updateHiddenIdPositiveTabIndex(e),e){const t=this.tabsIdxHash[this.getNormalizedTabId(e.id)];-1!==t&&this.updateSelectedTab(t)}}else if(y&&!y.disabled){const e=this.tabsIdxHash[this.getNormalizedTabId(y.id)];-1!==e&&(t.preventDefault(),this.updateSelectedTab(e))}}}setupTabsEvents(){this.addEventListener("tab-click",this.handleTabClick),this.addEventListener("tab-cross-click",this.handleTabCrossClick),this.addEventListener("tab-close-click",this.handleTabCloseClick),this.addEventListener("keydown",this.handleTabKeydown),this.addEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}teardownTabsEvents(){this.removeEventListener("tab-click",this.handleTabClick),this.removeEventListener("tab-cross-click",this.handleTabCrossClick),this.removeEventListener("tab-close-click",this.handleTabCloseClick),this.removeEventListener("keydown",this.handleTabKeydown),this.removeEventListener("clear-tab-order-prefs",this.clearTabOrderPrefs)}clearTabOrderPrefs(t){const{compUniqueId:e}=t.detail;e===this.compUniqueId&&(localStorage.removeItem(this.tabsId),sessionStorage.removeItem(this.tabsId),localStorage.removeItem(this.compUniqueId),this.tabsOrderPrefsArray=this.defaultTabsOrderArray,this.selected=0,this.initializeTabs(),this.dispatchSelectedChangedEvent(0))}setupPanelsAndTabs(){this.tabSlotElement&&(this.tabs=this.tabSlotElement.assignedElements()),this.panelSlotElement&&(this.panels=this.panelSlotElement.assignedElements()),this.defaultTabsOrderArray=this.tabs.map((t=>t.name))}setupMoreTab(){return w(this,void 0,void 0,(function*(){"vertical"!==this.direction&&this.moreTabMenuElement&&!this.isMoreTabMenuMeasured&&(this.moreTabMenuElement.classList.add("md-menu-overlay__more_tab--measuring"),yield this.moreTabMenuElement.updateComplete,this.moreTabMenuElement.offsetWidth&&(this.moreTabMenuOffsetWidth=this.moreTabMenuElement.offsetWidth,this.isMoreTabMenuMeasured=!0),this.moreTabMenuElement.classList.remove("md-menu-overlay__more_tab--measuring"))}))}initializeSortable(){this.visibleTabsContainerElement&&this.hiddenTabsContainerElement&&(this.visibleTabsSortableInstance=y().create(this.visibleTabsContainerElement,this.generateOptions()),this.hiddenTabsSortableInstance=y().create(this.hiddenTabsContainerElement,this.generateOptions()))}initializeTabs(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),this.manageOverflow(),this.requestUpdate()}connectedCallback(){var t;if(super.connectedCallback(),this.setupTabsEvents(),this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=localStorage.getItem(this.tabsId);this.selected=t&&parseInt(t)>-1?parseInt(t):this.selected}this.compUniqueId&&(this.tabsOrderPrefsArray=(null===(t=localStorage.getItem(this.compUniqueId))||void 0===t?void 0:t.split(","))||[])}selectTabFromStorage(){if(this.persistSelection){if(!this.tabsId||""===this.tabsId.trim())return void console.error("Unique tabs-id attribute is mandatory for persist the selection of tab");const t=sessionStorage.getItem(this.tabsId);let e=0;if(t){const i=parseInt(t);e=i>-1?i:this.selected}const i=this.currentTabsLayout;i.length&&i[e].id?(this._selectedIndex=e,this.handleNewSelectedTab(i[e].id)):this.selected=e}}disconnectedCallback(){super.disconnectedCallback(),this.teardownTabsEvents()}firstUpdated(t){var e;super.firstUpdated(t),this.setupPanelsAndTabs(),this.linkPanelsAndTabs(),this.selectTabFromStorage(),this.scrollArrow&&(this.updateArrowsVisibility(),null===(e=this.tabsListElement)||void 0===e||e.addEventListener("scroll",this.updateArrowsVisibility))}onDirectionChanged(){return w(this,void 0,void 0,(function*(){this.tabs=[],this.panels=[],this.tabsFilteredAsVisibleList=[],this.tabsFilteredAsHiddenList=[],this.isMoreTabMenuVisible=!1,this.setupPanelsAndTabs(),yield this.linkPanelsAndTabs(),this.draggable&&this.initializeSortable(),"horizontal"===this.direction&&(yield this.manageOverflow()),this.selectTabFromStorage(),this.scrollArrow&&this.updateArrowsVisibility()}))}updated(t){var e;if(super.updated(t),t.has("direction")&&t.get("direction")!==this.direction&&this.onDirectionChanged(),t.has("slotted")&&this.initializeTabs(),!this.draggable||this.visibleTabsSortableInstance||this.hiddenTabsSortableInstance||this.initializeSortable(),t.has("tabsFilteredAsHiddenList")&&(this.tabsCopy=Array.from((null===(e=this.tabsCopyHiddenListElements)||void 0===e?void 0:e.values())||[]),this.tabsCopyHash=this.tabsCopy.reduce(((t,e)=>(t[e.id]=e,t)),{})),(t.has("tabsFilteredAsVisibleList")||t.has("tabsFilteredAsHiddenList"))&&(this.tabsVisibleIdxHash=this.tabsFilteredAsVisibleList.reduce(((t,e,i)=>(t[e.id]=i,t)),{}),this.tabsHiddenIdxHash=this.tabsFilteredAsHiddenList.reduce(((t,e,i)=>(t[e.id]=i,t)),{})),t.has("isMoreTabMenuOpen")&&this.isMoreTabMenuVisible){const e=t.get("isMoreTabMenuOpen");this.isMoreTabMenuOpen&&!e&&(this.moreItemsScrollLimit<this.tabsCopy.length?(this.isMoreTabMenuScrollable=!0,this.moreTabMenuMaxHeight=`${this.measureHiddenTabsCopiesOffsetHeight().slice(0,this.moreItemsScrollLimit).reduce(((t,e)=>t+e),0)}px`):(this.isMoreTabMenuScrollable=!1,this.moreTabMenuMaxHeight=null))}t.has("tabsId")&&this.selectTabFromStorage(),t.has("selectedIndex")&&this.updateSelectedTab(this.selectedIndex),t.has("overflowLabel")&&this.updateIsMoreTabTruncated(),t.has("scrollArrow")&&this.onDirectionChanged()}scrollTabs(t){if(!this.tabsListElement||"vertical"===this.direction)return;const e="left"===t?-100:100;this.tabsListElement.scrollBy({left:e,behavior:"smooth"}),(0,b.setTimeout)((()=>this.updateArrowsVisibility()),300)}get moreMenuButtonTemplate(){return l.html`
|
|
1315
1320
|
<md-tab
|
|
1316
1321
|
slot="menu-trigger"
|
|
1317
1322
|
id="${x}"
|
|
@@ -1488,7 +1493,7 @@
|
|
|
1488
1493
|
<div role="group" aria-labelledby="id-group-label">
|
|
1489
1494
|
<slot name="checkbox"></slot>
|
|
1490
1495
|
</div>
|
|
1491
|
-
`}};h([(0,l.property)({type:String,attribute:"group-label"})],e.prototype,"label",void 0),h([(0,l.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),h([(0,l.query)("slot[name='checkbox']")],e.prototype,"checkboxSlot",void 0),e=h([(0,n.w)("md-checkboxgroup")],e),t.ELEMENT=e}(s||(s={}))},57346:t=>{t.exports=$},58088:t=>{t.exports=
|
|
1496
|
+
`}};h([(0,l.property)({type:String,attribute:"group-label"})],e.prototype,"label",void 0),h([(0,l.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),h([(0,l.query)("slot[name='checkbox']")],e.prototype,"checkboxSlot",void 0),e=h([(0,n.w)("md-checkboxgroup")],e),t.ELEMENT=e}(s||(s={}))},57346:t=>{t.exports=$},58088:t=>{t.exports=S},58287:(t,e,i)=>{i.d(e,{ProgressBar:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(31107),d=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.dynamic=!1,this.color="",this.label="",this.displayFormat="percentage",this.type="indeterminate",this.min=0,this.max=100,this.value=25,this.adjustedValue=0,this.valueFraction=0,this.meterWidth="100",this.getDisplayFormat=()=>"indeterminate"===this.type?(this.value=100,null):(this.adjustedValue=this.max-this.value<0?this.max:this.value,this.valueFraction=this.adjustedValue/this.max*100||0,this.meterWidth=this.valueFraction.toFixed(0)+"%","none"===this.displayFormat?null:"percentage"===this.displayFormat?this.meterWidth:`${this.adjustedValue} / ${this.max}`),this.getColor=()=>this.color?this.color:this.dynamic?this.valueFraction<25?"success":this.valueFraction<50?"info":this.valueFraction<75?"warning":"danger":void 0}connectedCallback(){super.connectedCallback(),this.requestUpdate("value")}static get styles(){return[r.A,l.A]}render(){const t={[`progress--${this.type}`]:this.type,[`progress--${this.color}`]:this.color};return n.html`
|
|
1492
1497
|
<span>
|
|
1493
1498
|
<div class="progressbar-info" data-key="${this.min}">
|
|
1494
1499
|
<span class="progressbar-label">${this.label}</span>
|
|
@@ -1831,15 +1836,15 @@
|
|
|
1831
1836
|
${this.renderHeader()}
|
|
1832
1837
|
<div class="content-margin">${this.renderCardText()} ${this.renderFooter()}</div>
|
|
1833
1838
|
</div>
|
|
1834
|
-
`}};p([(0,a.property)({type:String})],e.prototype,"id",void 0),p([(0,a.property)({type:String})],e.prototype,"title",void 0),p([(0,a.property)({type:String})],e.prototype,"cardText",void 0),p([(0,a.property)({type:String})],e.prototype,"timestamp",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"summariseMoreVisible",void 0),p([(0,a.property)({type:String})],e.prototype,"variant",void 0),p([(0,a.internalProperty)()],e.prototype,"copyChecked",void 0),p([(0,a.internalProperty)()],e.prototype,"thumbsUpChecked",void 0),p([(0,a.internalProperty)()],e.prototype,"thumbsDownChecked",void 0),e=p([(0,r.w)("md-card-ai")],e),t.ELEMENT=e}(o||(o={}))},65796:t=>{t.exports=
|
|
1839
|
+
`}};p([(0,a.property)({type:String})],e.prototype,"id",void 0),p([(0,a.property)({type:String})],e.prototype,"title",void 0),p([(0,a.property)({type:String})],e.prototype,"cardText",void 0),p([(0,a.property)({type:String})],e.prototype,"timestamp",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"summariseMoreVisible",void 0),p([(0,a.property)({type:String})],e.prototype,"variant",void 0),p([(0,a.internalProperty)()],e.prototype,"copyChecked",void 0),p([(0,a.internalProperty)()],e.prototype,"thumbsUpChecked",void 0),p([(0,a.internalProperty)()],e.prototype,"thumbsDownChecked",void 0),e=p([(0,r.w)("md-card-ai")],e),t.ELEMENT=e}(o||(o={}))},65796:t=>{t.exports=w},65875:t=>{t.exports=I},66245:(t,e,i)=>{i.d(e,{ListItem:()=>s});var s,o=i(3001),r=i(31890),n=i(26272),a=i(41488),l=i(23968),d=i(21392),h=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,o.yC)(a.LitElement)){constructor(){super(...arguments),this.role="option",this.tabIndex=-1,this.shape="rounded",this._disabled=!1,this._selected=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.requestUpdate("disabled",e)}get selected(){return this._selected}set selected(t){const e=this._selected;this._selected=t,this.requestUpdate("selected",e)}get listItemTemplateClassMap(){return{[`md-list-item--${this.shape}`]:!!this.shape}}static get styles(){return[n.A,d.A]}render(){return a.html`
|
|
1835
1840
|
<li class="md-list-item ${(0,l.classMap)(this.listItemTemplateClassMap)}" part="list-item">
|
|
1836
1841
|
<slot></slot>
|
|
1837
1842
|
</li>
|
|
1838
|
-
`}};h([(0,a.property)({type:String,reflect:!0})],e.prototype,"role",void 0),h([(0,a.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,a.property)({type:String,reflect:!0})],e.prototype,"shape",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),e=h([(0,r.w)("md-list-item")],e),t.ELEMENT=e}(s||(s={}))},66677:(t,e,i)=>{i.d(e,{QZ:()=>r,Qx:()=>n,sg:()=>o,ws:()=>s});const s=(t,e)=>{const i=[];[e].forEach((e=>{i.push(...((t,e)=>{const i=e.length;if(0===i)return[];const s=[],o=t.toLowerCase(),r=e.toLowerCase();let n=0,a=o.indexOf(r,n);for(;a>-1;)n=a+i,s.push([a,n]),a=o.indexOf(r,a+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 i=t[0][0],s=t[0][1];return t.shift(),t.forEach((([t,o])=>{t>=s?(e.push([i,s]),i=t,s=o):o>s&&(s=o)})),e.push([i,s]),e})(i),o=[];let r=0;return s.forEach((([e,i])=>{r!==e&&o.push({range:[e,i],matching:!1,text:t.slice(r,e)}),o.push({range:[e,i],matching:!0,text:t.slice(e,i)}),r=i})),r!==t.length&&o.push({range:[r],matching:!1,text:t.slice(r)}),o};function o(t,e,i){let s;return function(...o){const r=this,n=i&&!s;clearTimeout(s),s=setTimeout((function(){s=null,i||t.apply(r,o)}),e),n&&t.apply(r,o)}}function r(t,e){return function e(i){if(!i||i===document||i===window)return null;const s=i.closest(t);return null!=s?s:e(i.getRootNode().host)}(e)}function n(t,e){return e>=0&&e<t.length?t[e]:void 0}},68250:t=>{t.exports=m},68490:(t,e,i)=>{i.d(e,{List:()=>s});var s,o=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(97822),h=i(21392),p=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.alignment="vertical",this.label="option",this.activated=-1,this._role="listbox"}firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-label",this.label)}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}isFocusable(t){return!t.hasAttribute("hidden")}connectedCallback(){super.connectedCallback(),this._role=this.getAttribute("role")||"listbox",this.removeAttribute("role"),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}findListItemIndex(t){const e=t.composedPath();return this.slotted.findIndex((t=>e.includes(t)))}switchListItemOnArrowPress(t,e=1){const i=super.getAvailableSelectedIndex(t,e);-1!==i&&(this.selected=i)}setActivated(t){-1!==t&&(this.activated=t,this.selected=t,this.setSelected(t))}findSelectedListItemIndex(){return this.slotted.findIndex((t=>t.selected))}setSelected(t){const e=this.findSelectedListItemIndex();-1!==e&&e!==t&&(this.slotted[e].selected=!1),this.slotted[t]&&(this.slotted[t].selected=!0)}updated(t){super.updated(t),t.has("slotted")&&this.setActivated(this.activated),t.has("activated")&&this.setActivated(this.activated),t.has("label")&&this.setAttribute("aria-label",this.label)}isListItemDisabled(t){var e;const i=this.slotted[t];return null===(e=null==i?void 0:i.disabled)||void 0===e||e}handleClick(t){const e=this.findListItemIndex(t);-1!==e&&(this.isListItemDisabled(e)||(this.setActivated(e),this.notifySelectedChange()))}shouldElementHandleKey(t,e){if(t.hasAttribute("data-handles-keys")||t.closest("[data-handles-keys]"))return!0;const i=t.tagName.toLowerCase(),s=t.nodeName.toLowerCase(),r="input"===s||"textarea"===s||"select"===s,n=t.getAttribute("role"),a=t.hasAttribute("contenteditable")||"false"===t.getAttribute("aria-readonly"),l=[o.Uz.ArrowUp,o.Uz.ArrowDown,o.Uz.ArrowLeft,o.Uz.ArrowRight],d=[o.Uz.Enter,o.Uz.Space];return l.includes(e)?r||a||"textbox"===n||"combobox"===n||"listbox"===n||"menu"===n||"slider"===n||"scrollbar"===n||"tablist"===n||i.startsWith("md-")&&("md-input"===i||"md-select"===i||"md-combobox"===i):d.includes(e)?"button"===n||"link"===n||"checkbox"===n||"radio"===n||"button"===i||"a"===i||"md-button"===i||"md-checkbox"===i||"md-radio"===i||r:(e===o.Uz.Home||e===o.Uz.End)&&(r||a||"textbox"===n||"md-input"===i)}handleKeyDown(t){const e=t.composedPath()[0];if(this.shouldElementHandleKey(e,t.code))return;const{code:i}=t;switch(i){case o.Uz.End:this.switchListItemOnArrowPress(this.slotted.length-1);break;case o.Uz.Home:this.switchListItemOnArrowPress(0);break;case o.Uz.ArrowUp:case o.Uz.ArrowLeft:t.preventDefault(),0===this.selected?this.switchListItemOnArrowPress(this.slotted.length-1,-1):this.switchListItemOnArrowPress(this.selected-1,-1);break;case o.Uz.ArrowDown:case o.Uz.ArrowRight:t.preventDefault(),this.selected===this.slotted.length-1?this.switchListItemOnArrowPress(0):this.switchListItemOnArrowPress(this.selected+1);break;case o.Uz.Enter:case o.Uz.Space:this.isListItemDisabled(this.selected)||(this.setActivated(this.selected),this.notifySelectedChange())}}get slotElement(){return this.listItemSlot}static get styles(){return[a.A,h.A]}render(){return l.html`
|
|
1843
|
+
`}};h([(0,a.property)({type:String,reflect:!0})],e.prototype,"role",void 0),h([(0,a.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,a.property)({type:String,reflect:!0})],e.prototype,"shape",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"selected",null),e=h([(0,r.w)("md-list-item")],e),t.ELEMENT=e}(s||(s={}))},66677:(t,e,i)=>{i.d(e,{QZ:()=>r,Qx:()=>n,XI:()=>l,qi:()=>a,sg:()=>o,ws:()=>s});const s=(t,e)=>{const i=[];[e].forEach((e=>{i.push(...((t,e)=>{const i=e.length;if(0===i)return[];const s=[],o=t.toLowerCase(),r=e.toLowerCase();let n=0,a=o.indexOf(r,n);for(;a>-1;)n=a+i,s.push([a,n]),a=o.indexOf(r,a+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 i=t[0][0],s=t[0][1];return t.shift(),t.forEach((([t,o])=>{t>=s?(e.push([i,s]),i=t,s=o):o>s&&(s=o)})),e.push([i,s]),e})(i),o=[];let r=0;return s.forEach((([e,i])=>{r!==e&&o.push({range:[e,i],matching:!1,text:t.slice(r,e)}),o.push({range:[e,i],matching:!0,text:t.slice(e,i)}),r=i})),r!==t.length&&o.push({range:[r],matching:!1,text:t.slice(r)}),o};function o(t,e,i){let s;return function(...o){const r=this,n=i&&!s;clearTimeout(s),s=setTimeout((function(){s=null,i||t.apply(r,o)}),e),n&&t.apply(r,o)}}function r(t,e){return function e(i){if(!i||i===document||i===window)return null;const s=i.closest(t);return null!=s?s:e(i.getRootNode().host)}(e)}function n(t,e){return e>=0&&e<t.length?t[e]:void 0}function a(t,e=document){var i;const s=e instanceof ShadowRoot||e instanceof Document?e.querySelector(t):null===(i=e.shadowRoot)||void 0===i?void 0:i.querySelector(t);if(s)return s;const o=Array.from(e.querySelectorAll("*")).map((t=>t.shadowRoot?t.shadowRoot:null)).filter((t=>null!==t));for(const e of o){const i=a(t,e);if(i)return i}return null}function l(t,e=document){if(e instanceof ShadowRoot||e instanceof Document){const i=e.getElementById(t);if(i)return i}const i=Array.from(e.querySelectorAll("*")).map((t=>t.shadowRoot?t.shadowRoot:null)).filter((t=>null!==t));for(const e of i){const i=l(t,e);if(i)return i}return null}},68250:t=>{t.exports=m},68490:(t,e,i)=>{i.d(e,{List:()=>s});var s,o=i(90195),r=i(3001),n=i(31890),a=i(26272),l=i(41488),d=i(97822),h=i(21392),p=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.alignment="vertical",this.label="option",this.activated=-1,this._role="listbox"}firstUpdated(t){super.firstUpdated(t),this.setAttribute("aria-label",this.label)}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}isFocusable(t){return!t.hasAttribute("hidden")}connectedCallback(){super.connectedCallback(),this._role=this.getAttribute("role")||"listbox",this.removeAttribute("role"),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}findListItemIndex(t){const e=t.composedPath();return this.slotted.findIndex((t=>e.includes(t)))}switchListItemOnArrowPress(t,e=1){const i=super.getAvailableSelectedIndex(t,e);-1!==i&&(this.selected=i)}setActivated(t){-1!==t&&(this.activated=t,this.selected=t,this.setSelected(t))}findSelectedListItemIndex(){return this.slotted.findIndex((t=>t.selected))}setSelected(t){const e=this.findSelectedListItemIndex();-1!==e&&e!==t&&(this.slotted[e].selected=!1),this.slotted[t]&&(this.slotted[t].selected=!0)}updated(t){super.updated(t),t.has("slotted")&&this.setActivated(this.activated),t.has("activated")&&this.setActivated(this.activated),t.has("label")&&this.setAttribute("aria-label",this.label)}isListItemDisabled(t){var e;const i=this.slotted[t];return null===(e=null==i?void 0:i.disabled)||void 0===e||e}handleClick(t){const e=this.findListItemIndex(t);-1!==e&&(this.isListItemDisabled(e)||(this.setActivated(e),this.notifySelectedChange()))}shouldElementHandleKey(t,e){if(t.hasAttribute("data-handles-keys")||t.closest("[data-handles-keys]"))return!0;const i=t.tagName.toLowerCase(),s=t.nodeName.toLowerCase(),r="input"===s||"textarea"===s||"select"===s,n=t.getAttribute("role"),a=t.hasAttribute("contenteditable")||"false"===t.getAttribute("aria-readonly"),l=[o.Uz.ArrowUp,o.Uz.ArrowDown,o.Uz.ArrowLeft,o.Uz.ArrowRight],d=[o.Uz.Enter,o.Uz.Space];return l.includes(e)?r||a||"textbox"===n||"combobox"===n||"listbox"===n||"menu"===n||"slider"===n||"scrollbar"===n||"tablist"===n||i.startsWith("md-")&&("md-input"===i||"md-select"===i||"md-combobox"===i):d.includes(e)?"button"===n||"link"===n||"checkbox"===n||"radio"===n||"button"===i||"a"===i||"md-button"===i||"md-checkbox"===i||"md-radio"===i||r:(e===o.Uz.Home||e===o.Uz.End)&&(r||a||"textbox"===n||"md-input"===i)}handleKeyDown(t){const e=t.composedPath()[0];if(this.shouldElementHandleKey(e,t.code))return;const{code:i}=t;switch(i){case o.Uz.End:this.switchListItemOnArrowPress(this.slotted.length-1);break;case o.Uz.Home:this.switchListItemOnArrowPress(0);break;case o.Uz.ArrowUp:case o.Uz.ArrowLeft:t.preventDefault(),0===this.selected?this.switchListItemOnArrowPress(this.slotted.length-1,-1):this.switchListItemOnArrowPress(this.selected-1,-1);break;case o.Uz.ArrowDown:case o.Uz.ArrowRight:t.preventDefault(),this.selected===this.slotted.length-1?this.switchListItemOnArrowPress(0):this.switchListItemOnArrowPress(this.selected+1);break;case o.Uz.Enter:case o.Uz.Space:this.isListItemDisabled(this.selected)||(this.setActivated(this.selected),this.notifySelectedChange())}}get slotElement(){return this.listItemSlot}static get styles(){return[a.A,h.A]}render(){return l.html`
|
|
1839
1844
|
<ul role=${(0,d.ifDefined)("list"!==this._role?this._role:void 0)} class="md-list" part="list">
|
|
1840
1845
|
<slot name="list-item"></slot>
|
|
1841
1846
|
</ul>
|
|
1842
|
-
`}};p([(0,l.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),p([(0,l.property)({type:String})],e.prototype,"label",void 0),p([(0,l.property)({type:Number,reflect:!0})],e.prototype,"activated",void 0),p([(0,l.query)("slot[name='list-item']")],e.prototype,"listItemSlot",void 0),e=p([(0,n.w)("md-list")],e),t.ELEMENT=e}(s||(s={}))},69e3:t=>{t.exports=
|
|
1847
|
+
`}};p([(0,l.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),p([(0,l.property)({type:String})],e.prototype,"label",void 0),p([(0,l.property)({type:Number,reflect:!0})],e.prototype,"activated",void 0),p([(0,l.query)("slot[name='list-item']")],e.prototype,"listItemSlot",void 0),e=p([(0,n.w)("md-list")],e),t.ELEMENT=e}(s||(s={}))},69e3:t=>{t.exports=E},69112:(t,e,i)=>{i.d(e,{Grabber:()=>s}),i(61200);var s,o=i(37719),r=i(3001),n=i(31890),a=i(26283),l=i(26272),d=i(41488),h=i(23968),p=i(97822),c=i(42215),u=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,r.yC)(d.LitElement)){constructor(){super(...arguments),this.label="Expand",this.checkedLabel="Collapse",this.hovered=!1,this.disabled=!1,this.checked=!1,this.visible=!0,this.focused=!1,this.disableClickToggle=!1,this.alignment="leading",this.dragger=!1,this.shadow=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}static get styles(){return[l.A,c.A]}toggleGrabber(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("grabber-toggled",{detail:{checked:this.checked},bubbles:!0,composed:!0})))}handleMouseDown(){this.disableClickToggle||this.toggleGrabber()}handleKeyDown(t){this.disableClickToggle||(0,a.o)(t.code)&&(t.preventDefault(),this.toggleGrabber())}handleMouseEnter(){this.hovered=!0,this.dispatchHoverEvent()}handleMouseLeave(){this.hovered=!1,this.dispatchHoverEvent()}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}dispatchHoverEvent(){this.dispatchEvent(new CustomEvent("grabber-hover-changed",{bubbles:!0,composed:!0,detail:{hovered:this.hovered}}))}get collapsed(){return!this.checked}get grabberClassMap(){return{"md-grabber--active":this.checked,"md-grabber--disabled":this.disabled,"md-grabber--dragger":this.dragger,[`md-grabber--${this.alignment}`]:this.alignment,visible:this.visible||this.focused}}get grabberContainerClassMap(){return{[`${this.alignment}`]:!0,shadow:this.shadow&&(this.visible||this.checked)}}get iconName(){return this.dragger?"list-menu-bold":"leading"===this.alignment||"trailing"===this.alignment?this.checked?"arrow-left-bold":"arrow-right-bold":this.checked?"arrow-up-bold":"arrow-down-bold"}get iconSize(){return this.dragger||!1===o.themeManager.isMomentumV2Enabled?"10":"12"}render(){return d.html`
|
|
1843
1848
|
<div class="md-grabber__container ${(0,h.classMap)(this.grabberContainerClassMap)}">
|
|
1844
1849
|
<button
|
|
1845
1850
|
class="md-grabber ${(0,h.classMap)(this.grabberClassMap)}"
|
|
@@ -1866,32 +1871,23 @@
|
|
|
1866
1871
|
<span class=${(0,a.classMap)(this.loadingIconClassMap)}></span>
|
|
1867
1872
|
<span class=${(0,a.classMap)(this.loadingIconClassMap)}></span>
|
|
1868
1873
|
</div>
|
|
1869
|
-
`}};d([(0,n.property)({type:String})],e.prototype,"size",void 0),e=d([(0,o.w)("md-loading")],e),t.ELEMENT=e}(s||(s={}))},71128:(t,e,i)=>{i.d(e,{Popover:()=>s}),i(96798),i(61200);var s,o=i(90195),r=i(31890),n=i(28373),a=i(66677),l=i(26283),d=i(22962),h=i.n(d),p=i(84157),c=i.n(p),u=i(68250),m=i.n(u),y=i(69371),b=i.n(y),v=i(4863),g=i(41488),f=i(40333),w=i(23968),x=i(73679),C=i(35211),$=i(50325),S=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},E=function(t,e,i,s){return new(i||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}))};!function(t){let e=class extends((0,n.d)(g.LitElement)){constructor(){super(...arguments),this.placement="bottom",this.positioningStrategy=void 0,this.isOpen=!1,this.showArrow=!0,this.showClose=!1,this.interactive=!1,this.role="dialog",this.ariaLabel=null,this.offsetDistance=5,this.trigger="click",this.inverted=!1,this.triggerElement=null,this.popperInstance=null,this.isMouseOver=!1,this.onOutsideOverlayClick=t=>{var e;if(null===(e=this.trigger)||void 0===e?void 0:e.includes("manual"))return;let i=!1;const s=t.composedPath();s.length&&(i=!!s.find((t=>t===this)),i||(this.isOpen=!1))},this.onWindowBlurEvent=()=>{var t;(null===(t=this.trigger)||void 0===t?void 0:t.includes("manual"))||this.isOpen&&(this.isOpen=!1)},this.onOutsideOverlayKeydown=t=>E(this,void 0,void 0,(function*(){this.isOpen&&t.code===o.Uz.Escape&&(t.preventDefault(),this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger())})),this.onTriggerElementClicked=()=>{this.toggleOverlay()},this.onTriggerElementKeydown=t=>E(this,void 0,void 0,(function*(){(0,l.o)(t.code)&&(t.preventDefault(),this.toggleOverlay()),t.code===o.Uz.Escape&&this.isOpen&&(this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger())})),this.onFocusInTrigger=()=>{var t;(null===(t=this.trigger)||void 0===t?void 0:t.includes("focus"))&&(this.isOpen=!0)},this.onFocusOutTrigger=()=>{var t;(null===(t=this.trigger)||void 0===t?void 0:t.includes("focus"))&&!this.isMouseOver&&(this.isOpen=!1)},this.onMouseEnteredTriggerOrPopup=t=>{var e;this.isMouseOver=!0,(null===(e=this.trigger)||void 0===e?void 0:e.includes("mouseenter"))&&this.setIsOpenDebounced(!0)},this.onMouseLeaveTriggerOrPopup=t=>{var e;this.isMouseOver=!1,(null===(e=this.trigger)||void 0===e?void 0:e.includes("mouseenter"))&&!this.shouldStayOpenOnTriggerFocus()&&this.setIsOpenDebounced(!1)},this.setIsOpenDebounced=(0,a.sg)((t=>{this.isOpen=t}),100)}static get styles(){return[$.A]}connectedCallback(){super.connectedCallback()}disconnectedCallback(){var t,e,i,s,o;super.disconnectedCallback(),window.removeEventListener("blur",this.onWindowBlurEvent),document.removeEventListener("click",this.onOutsideOverlayClick),document.removeEventListener("keydown",this.onOutsideOverlayKeydown),this.triggerElement&&((null===(t=this.trigger)||void 0===t?void 0:t.includes("click"))&&(this.triggerElement.removeEventListener("click",this.onTriggerElementClicked),this.triggerElement.removeEventListener("keydown",this.onTriggerElementKeydown)),(null===(e=this.trigger)||void 0===e?void 0:e.includes("mouseenter"))&&(this.triggerElement.removeEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),this.triggerElement.removeEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup),null===(i=this.popoverContainer)||void 0===i||i.removeEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),null===(s=this.popoverContainer)||void 0===s||s.removeEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup)),(null===(o=this.trigger)||void 0===o?void 0:o.includes("focus"))&&(this.triggerElement.removeEventListener("focusin",this.onFocusInTrigger),this.triggerElement.removeEventListener("focusout",this.onFocusOutTrigger)))}setupTriggerEvents(){var t,e,i,s,o;this.triggerElement&&((null===(t=this.trigger)||void 0===t?void 0:t.includes("click"))&&(this.triggerElement.addEventListener("click",this.onTriggerElementClicked.bind(this)),this.triggerElement.addEventListener("keydown",this.onTriggerElementKeydown.bind(this))),(null===(e=this.trigger)||void 0===e?void 0:e.includes("mouseenter"))&&(this.triggerElement.addEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),this.triggerElement.addEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup),null===(i=this.popoverContainer)||void 0===i||i.addEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),null===(s=this.popoverContainer)||void 0===s||s.addEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup)),(null===(o=this.trigger)||void 0===o?void 0:o.includes("focus"))&&(this.triggerElement.addEventListener("focusin",this.onFocusInTrigger),this.triggerElement.addEventListener("focusout",this.onFocusOutTrigger)))}handleTriggerElementSlotChange(){const t=this.triggerSlot.assignedElements({flatten:!0});this.triggerElement=t.length>0?t[0]:null}onContentSlotChanged(){}shouldStayOpenOnTriggerFocus(){var t;return!!(null===(t=this.trigger)||void 0===t?void 0:t.includes("focus"))&&this.getRootNode().activeElement===this.triggerElement}firstUpdated(t){var e;super.firstUpdated(t),this.handleTriggerElementSlotChange(),this.setupTriggerEvents(),this.popoverContainer&&this.isOpen&&(this.createInstance(),null===(e=this.popoverContainer)||void 0===e||e.setAttribute("data-show",""))}focusInsideOverlay(){var t,e;this.focusableElements&&(this.focusableElements.length>1?null===(t=this.setInitialFocus)||void 0===t||t.call(this,1):this.focusableElements.length&&(null===(e=this.setInitialFocus)||void 0===e||e.call(this)))}focusOnTrigger(){return E(this,void 0,void 0,(function*(){requestAnimationFrame((()=>{var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.focusableElements[0].focus()}))}))}toggleOverlay(){var t;(null===(t=this.triggerElement)||void 0===t?void 0:t.hasAttribute("disabled"))||(this.isOpen=!this.isOpen)}handleCreatePopperFirstUpdate(){return E(this,void 0,void 0,(function*(){var t;this.isOpen&&this.interactive&&(null===(t=this.setFocusableElements)||void 0===t||t.call(this),yield this.updateComplete,this.focusInsideOverlay())}))}createInstance(){this.triggerElement?this.popperInstance=(0,v.createPopper)(this.triggerElement,this.popoverContainer,{onFirstUpdate:()=>{this.isOpen&&this.handleCreatePopperFirstUpdate()},placement:this.placement,strategy:this.positioningStrategy,modifiers:[...v.defaultModifiers,c(),m(),b(),h(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:t,reference:e})=>"left"===t||"right"===t?[e.height+e.y+this.offsetDistance,C.KC]:[0,this.showArrow?C.KC+this.offsetDistance:this.offsetDistance]}},{name:"arrow",options:{element:this.popoverArrow,padding:C.KC}},{name:"computeStyles",options:{adaptive:!1}}]}):console.warn("No trigger element not creating popper instance")}destroyInstance(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}updated(t){if(super.updated(t),t.has("isOpen")){const e=t.get("isOpen");this.isOpenUpdated(e,this.isOpen)}}isOpenUpdated(t,e){var i,s,o,r,n,a;t!==e&&(e?(this.createInstance(),this.dispatchPopoverIsOpenChanged(e),window.addEventListener("blur",this.onWindowBlurEvent),document.addEventListener("click",this.onOutsideOverlayClick),document.addEventListener("keydown",this.onOutsideOverlayKeydown),this.interactive&&(null===(i=this.activateFocusTrap)||void 0===i||i.call(this)),null===(s=this.triggerElement)||void 0===s||s.setAttribute("aria-expanded","true"),null===(o=this.popoverContainer)||void 0===o||o.setAttribute("data-show","")):(this.destroyInstance(),window.removeEventListener("blur",this.onWindowBlurEvent),document.removeEventListener("click",this.onOutsideOverlayClick),document.removeEventListener("keydown",this.onOutsideOverlayKeydown),this.dispatchPopoverIsOpenChanged(e),null===(r=this.deactivateFocusTrap)||void 0===r||r.call(this),null===(n=this.triggerElement)||void 0===n||n.removeAttribute("aria-expanded"),null===(a=this.popoverContainer)||void 0===a||a.removeAttribute("data-show")))}dispatchPopoverIsOpenChanged(t){this.dispatchEvent(new CustomEvent("popover-open-changed",{detail:{isOpen:t},composed:!0,bubbles:!0}))}get popoverClassMap(){return{"md-popover":!0,inverted:this.inverted}}get renderPopoverTemplate(){var t;return g.html` <div
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
<div class="popover-content" part="popover-content">
|
|
1887
|
-
<slot @slotchange=${this.onContentSlotChanged}></slot>
|
|
1888
|
-
</div>
|
|
1889
|
-
</div>`}render(){return g.html`
|
|
1890
|
-
<div class=${(0,w.classMap)(this.popoverClassMap)}>
|
|
1891
|
-
<slot name="triggerElement" aria-expanded=${this.isOpen}></slot>
|
|
1892
|
-
${this.renderPopoverTemplate}
|
|
1893
|
-
</div>
|
|
1894
|
-
`}};S([(0,g.property)({type:String})],e.prototype,"placement",void 0),S([(0,g.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),S([(0,g.property)({type:Boolean,attribute:"is-open"})],e.prototype,"isOpen",void 0),S([(0,g.property)({type:Boolean,attribute:"show-arrow"})],e.prototype,"showArrow",void 0),S([(0,g.property)({type:Boolean,attribute:"show-close"})],e.prototype,"showClose",void 0),S([(0,g.property)({type:Boolean})],e.prototype,"interactive",void 0),S([(0,g.property)({type:String,attribute:"role"})],e.prototype,"role",void 0),S([(0,g.property)({type:String,attribute:"aria-label"})],e.prototype,"ariaLabel",void 0),S([(0,g.property)({type:Number,attribute:"offset-distance"})],e.prototype,"offsetDistance",void 0),S([(0,g.query)('slot[name="triggerElement"]')],e.prototype,"triggerSlot",void 0),S([(0,g.query)(".popover-container")],e.prototype,"popoverContainer",void 0),S([(0,g.query)(".popover-arrow")],e.prototype,"popoverArrow",void 0),S([(0,g.property)({type:String})],e.prototype,"trigger",void 0),S([(0,g.property)({type:Boolean})],e.prototype,"inverted",void 0),S([(0,g.internalProperty)()],e.prototype,"isMouseOver",void 0),e=S([(0,r.w)("md-popover")],e),t.ELEMENT=e}(s||(s={}))},73093:(t,e,i)=>{i.d(e,{FloatingModal:()=>s}),i(96798),i(61200);var s,o=i(3001),r=i(31890),n=i(26272),a=(i(58088),i(57346),i(69e3),i(20727)),l=i.n(a),d=(i(3288),i(41488)),h=i(40333),p=i(97822),c=(i(58871),i(67330)),u=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,o.yC)((0,o.TS)(d.LitElement))){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.aspectRatio=!1,this.centered=!1,this.fixed=!1,this.full=!1,this.closeAriaLabel="Close Modal",this.resizeAriaLabel="Resize Modal",this.maximizeScreenLabel="Maximize Modal",this.minimizeAriaLabel="Minimize Modal",this.maximizable=!0,this.resizable=!0,this.minimize=!1,this.minimizable=!1,this.containerRect=null,this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.resizeMoveListener=t=>{const{target:e}=t;let i=parseFloat(e.getAttribute("data-x"))||0,s=parseFloat(e.getAttribute("data-y"))||0;e.style.setProperty("width",`${t.rect.width}px`,"important"),e.style.setProperty("height",`${t.rect.height}px`,"important");const{initialX:o,initialY:r}=this.getInitialPosition();i+=t.deltaRect.left+o,s+=t.deltaRect.top+r,this.setTargetPosition(e,i,s),this.applyInitialPosition=!1},this.resizeEndListener=()=>{this.setContainerRect()},this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.position?{initialX:Number(null===(t=this.position)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.position)||void 0===e?void 0:e.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:e}=t,{x:i,y:s}=this.getTransformValues(t);this.setTargetPosition(e,i,s),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[n.A,c.A]}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("position")&&!t.has("show")&&this.setInitialTargetPosition()}isNewPositionNotSame(){var t,e,i,s;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(e=this.position)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(s=this.position)||void 0===s?void 0:s.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.position)||void 0===t?void 0:t.x),Number(null===(e=this.position)||void 0===e?void 0:e.y))}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),e=this.container.getAttribute("data-y");return t&&e?(this.dispatchEvent(new CustomEvent("floating-modal-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:e}}})),`translate(${t}px, ${e}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame((()=>{return t=this,e=void 0,s=function*(){yield this.updateComplete,this.containerRect=this.container.getBoundingClientRect(),this.dispatchEvent(new CustomEvent("floating-modal-resize",{composed:!0,bubbles:!0,detail:{size:this.containerRect}})),this.containerTransform=this.getContainerTransform()},new((i=void 0)||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}));var t,e,i,s}))}setInteractInstance(){requestAnimationFrame((()=>{this.container&&(l()(this.container).draggable({autoScroll:!0,allowFrom:this.header,ignoreFrom:this.body,listeners:{move:this.dragMoveListener,end:this.dragEndListener}}),this.resizable&&l()(this.container).resizable({edges:{left:!0,right:!0,bottom:!0,top:!0},listeners:{end:this.resizeEndListener,move:this.resizeMoveListener},modifiers:this.aspectRatio?[l().modifiers.aspectRatio({ratio:"preserve",equalDelta:!0,modifiers:[l().modifiers.restrictSize({max:"parent"})]})]:void 0}))}))}handleClose(t){this.show=!1,this.full=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleMinimize(){this.minimizable&&(this.dragOccured||(this.minimize=!this.minimize,this.dispatchEvent(new CustomEvent("floating-modal-minimize",{composed:!0,bubbles:!0,detail:{minimize:this.minimize}}))),this.dragOccured=!1)}handleToggleExpandCollapse(){this.full=!this.full}getTransformValues(t){const{target:e,dx:i,dy:s}=t,{initialX:o,initialY:r}=this.getInitialPosition();return{x:(parseFloat(e.getAttribute("data-x"))||0)+i+o,y:(parseFloat(e.getAttribute("data-y"))||0)+s+r}}setTargetPosition(t,e,i){t.style.transform=`translate(${e}px, ${i}px)`,t.setAttribute("data-x",`${e}`),t.setAttribute("data-y",`${i}`)}destroyInteractInstance(){this.container&&l().isSet(this.container)&&l()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance()}renderedCallback(){this.containerTransform=this.position?`translate(${this.position.x}px, ${this.position.y}px)`:""}render(){return d.html`
|
|
1874
|
+
`}};d([(0,n.property)({type:String})],e.prototype,"size",void 0),e=d([(0,o.w)("md-loading")],e),t.ELEMENT=e}(s||(s={}))},71128:(t,e,i)=>{i.d(e,{Popover:()=>v}),i(96798),i(61200);var s=i(31890),o=i(28373),r=i(66677),n=i(5784),a=i(41488),l=i(40333),d=i(73679),h=i(68419),p=i(36365),c=i(3998),u=i(33759),m=i(50325),y=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n},b=function(t,e,i,s){return new(i||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}))};let v=class extends((0,o.d)(a.LitElement)){constructor(){super(),this.id="",this.triggerID="",this.trigger=h.zY.TRIGGER,this.placement=h.zY.PLACEMENT,this.strategy=h.zY.STRATEGY,this.color=h.zY.COLOR,this.visible=h.zY.VISIBLE,this.offset=h.zY.OFFSET,this.focusTrap=h.zY.FOCUS_TRAP,this.preventScroll=h.zY.PREVENT_SCROLL,this.showArrow=h.zY.ARROW,this.closeButton=h.zY.CLOSE_BUTTON,this.interactive=h.zY.INTERACTIVE,this.delay=h.zY.DELAY,this.hideOnEscape=h.zY.HIDE_ON_ESCAPE,this.hideOnBlur=h.zY.HIDE_ON_BLUR,this.hideOnOutsideClick=h.zY.HIDE_ON_CLICK_OUTSIDE,this.focusBackToTrigger=h.zY.FOCUS_BACK,this.backdrop=h.zY.BACKDROP,this.flip=h.zY.FLIP,this.size=h.zY.SIZE,this.zIndex=h.zY.Z_INDEX,this.appendTo="",this.closeButtonAriaLabel=null,this.role=h.zY.ROLE,this.ariaLabelledby=null,this.ariaDescribedby=null,this.disableAriaExpanded=h.zY.DISABLE_ARIA_EXPANDED,this.arrowElement=null,this.triggerElement=null,this.hoverTimer=null,this.isTriggerClicked=!1,this.openDelay=0,this.closeDelay=0,this.backdropElement=null,this.useLegacyFindFocusable=()=>!1,this.onOutsidePopoverClick=t=>{if(c.S.peek()!==this)return;const e=t.composedPath(),i=e.includes(this)||this.triggerElement&&e.includes(this.triggerElement),s=!!this.backdropElement&&e.includes(this.backdropElement);i&&!s||this.hidePopover()},this.onEscapeKeydown=t=>{this.visible&&"Escape"===t.code&&(t.preventDefault(),this.hidePopover())},this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hidePopover()},this.startCloseDelay=()=>{if(this.interactive){if(this.isTriggerClicked)return;this.hoverTimer=window.setTimeout((()=>{this.visible=!1}),this.closeDelay)}else this.hidePopover()},this.cancelCloseDelay=()=>{this.hoverTimer&&(clearTimeout(this.hoverTimer),this.hoverTimer=null)},this.showPopover=()=>{this.cancelCloseDelay(),setTimeout((()=>{this.utils.handleAppendTo(!0),this.visible=!0}),this.openDelay)},this.hidePopover=()=>{c.S.peek()===this&&setTimeout((()=>{this.visible=!1,this.isTriggerClicked=!1,this.utils.handleAppendTo(!1)}),this.closeDelay)},this.togglePopoverVisible=()=>{this.isTriggerClicked?this.hidePopover():(this.showPopover(),this.isTriggerClicked=!0)},this.onTriggerClick=t=>{this.trigger.includes("mouseenter")&&this.isMouseOverTrigger(t)||this.togglePopoverVisible()},this.utils=new u.h(this),this.preventClickOutside=!0}firstUpdated(t){const e=Object.create(null,{firstUpdated:{get:()=>super.firstUpdated}});return b(this,void 0,void 0,(function*(){e.firstUpdated.call(this,t),[this.openDelay,this.closeDelay]=this.utils.setupDelay(),this.setupTriggerListener(),this.utils.setupAccessibility(),this.style.zIndex=`${this.zIndex}`,p.T.onCreatedPopover(this),this.visible&&(this.utils.handleAppendTo(!0),this.positionPopover(),yield this.handleCreatePopoverFirstUpdate())}))}disconnectedCallback(){const t=Object.create(null,{disconnectedCallback:{get:()=>super.disconnectedCallback}});return b(this,void 0,void 0,(function*(){t.disconnectedCallback.call(this),this.removeEventListeners(),p.T.onDestroyedPopover(this),c.S.remove(this)}))}setupTriggerListener(){if(!this.triggerID)return;const t=this.getRootNode();if(this.triggerElement=(0,r.qi)(`[id="${this.triggerID}"]`,t),!this.triggerElement){const e=null==t?void 0:t.host;if(e){const t=e.querySelector("[slot]");(null==t?void 0:t.id)===this.triggerID&&(this.triggerElement=t)}}if(this.triggerElement){if("mouseenter"===this.trigger&&(this.interactive?this.trigger="mouseenter click":this.trigger="mouseenter focusin"),this.trigger.includes("click")&&this.triggerElement.addEventListener("click",this.onTriggerClick),this.trigger.includes("mouseenter")){const t=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.addEventListener("mouseenter",this.showPopover),this.triggerElement.addEventListener("mouseleave",this.startCloseDelay),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay),null==t||t.addEventListener("mouseenter",this.cancelCloseDelay)}this.trigger.includes("focusin")&&(this.triggerElement.addEventListener("focusin",this.showPopover),this.interactive||this.triggerElement.addEventListener("focusout",this.hidePopover)),this.addEventListener("focus-trap-exit",this.hidePopover)}}removeEventListeners(){if(!this.triggerElement)return;const t=this.renderRoot.querySelector(".popover-hover-bridge");this.triggerElement.removeEventListener("click",this.onTriggerClick),this.triggerElement.removeEventListener("mouseenter",this.showPopover),this.triggerElement.removeEventListener("mouseleave",this.hidePopover),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),this.triggerElement.removeEventListener("focusin",this.showPopover),this.triggerElement.removeEventListener("focusout",this.hidePopover),null==t||t.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("focus-trap-exit",this.hidePopover)}updated(t){const e=Object.create(null,{updated:{get:()=>super.updated}});return b(this,void 0,void 0,(function*(){if(e.updated.call(this,t),t.has("visible")){const e=t.get("visible")||!1;yield this.isOpenUpdated(e,this.visible),this.utils.updateAriaExpandedAttribute()}if(t.has("placement")&&this.setAttribute("placement",Object.values(h.ME).includes(this.placement)?this.placement:h.zY.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("trigger")){const t=this.trigger.split(" ").filter((t=>Object.values(h.tr).includes(t)));this.setAttribute("trigger",t.length>0?this.trigger:h.zY.TRIGGER),this.removeEventListeners(),this.setupTriggerListener()}t.has("color")&&this.setAttribute("color",Object.values(h.o$).includes(this.color)?this.color:h.zY.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.setupAccessibility(),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("interactive")&&this.utils.updateAriaHasPopupAttribute()}))}isOpenUpdated(t,e){const i=Object.create(null,{preventScroll:{get:()=>super.preventScroll,set:t=>super.preventScroll=t}});return b(this,void 0,void 0,(function*(){var s,o,r,n;if(t!==e&&this.triggerElement)if(e)c.S.peek()!==this&&c.S.push(this),i.preventScroll=this.preventScroll,this.focusTrap&&(null===(s=this.activateFocusTrap)||void 0===s||s.call(this)),this.backdrop&&(this.utils.createBackdrop(),this.triggerElement.style.zIndex=`${this.zIndex}`),this.positionPopover(),yield this.handleCreatePopoverFirstUpdate(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),"click"===this.trigger&&(this.triggerElement.style.pointerEvents="none")),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.addEventListener("keydown",this.onEscapeKeydown),p.T.onShowPopover(this);else{if(c.S.pop(),this.backdropElement&&(null===(o=this.backdropElement)||void 0===o||o.remove(),this.backdropElement=null),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),"click"===this.trigger&&(this.triggerElement.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick),this.hideOnEscape&&document.removeEventListener("keydown",this.onEscapeKeydown),null===(r=this.deactivateFocusTrap)||void 0===r||r.call(this),this.disableAriaExpanded||this.triggerElement.removeAttribute("aria-expanded"),this.interactive){const t=this.triggerElement.getAttribute("aria-haspopup");"dialog"!==t&&"alertdialog"!==t||this.triggerElement.removeAttribute("aria-haspopup")}this.focusBackToTrigger&&(null===(n=this.setFocusOnTrigger)||void 0===n||n.call(this,this.triggerElement)),p.T.onHidePopover(this)}}))}isMouseOverTrigger(t){if(this.triggerElement&&"undefined"!=typeof window&&"undefined"!=typeof document){const e=this.triggerElement.getBoundingClientRect(),{clientX:i,clientY:s}=t instanceof MouseEvent?t:{clientX:0,clientY:0};if(i>=e.left&&i<=e.right&&s>=e.top&&s<=e.bottom)return!0}return!1}handleCreatePopoverFirstUpdate(){return b(this,void 0,void 0,(function*(){var t,e;this.visible&&this.interactive&&(null===(t=this.setFocusableElements)||void 0===t||t.call(this),yield this.updateComplete,null===(e=this.setInitialFocus)||void 0===e||e.call(this))}))}positionPopover(){if(!this.triggerElement)return;const t=[(0,n.shift)()];let e=this.offset;if(this.flip&&t.push((0,n.flip)()),this.size){const e=this.renderRoot.querySelector('[part="popover-content"]');t.push((0,n.size)({apply({availableHeight:t}){e&&Object.assign(e.style,{maxHeight:`${t}px`,overflowY:"auto"})},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector(".popover-arrow"),this.arrowElement)){const i=this.arrowElement.offsetHeight;e=Math.sqrt(2*i**2)/2+this.offset,t.push((0,n.arrow)({element:this.arrowElement,padding:12}))}t.push((0,n.offset)(e)),(0,n.autoUpdate)(this.triggerElement,this,(()=>b(this,void 0,void 0,(function*(){if(!this.triggerElement)return;const{x:e,y:i,middlewareData:s,placement:o}=yield(0,n.computePosition)(this.triggerElement,this,{placement:this.placement,middleware:t,strategy:this.strategy});this.utils.updatePopoverStyle(e,i),s.arrow&&this.arrowElement&&this.utils.updateArrowStyle(s.arrow,o),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(o)}))))}render(){return a.html`
|
|
1875
|
+
<div class="popover-hover-bridge"></div>
|
|
1876
|
+
${this.closeButton?a.html` <md-button
|
|
1877
|
+
class="popover-close"
|
|
1878
|
+
hasRemoveStyle
|
|
1879
|
+
size="20"
|
|
1880
|
+
circle
|
|
1881
|
+
ariaLabel=${(0,d.ifDefined)(this.closeButtonAriaLabel)||""}
|
|
1882
|
+
@button-click="${this.hidePopover}"
|
|
1883
|
+
>
|
|
1884
|
+
<md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
1885
|
+
</md-button>`:l.nothing}
|
|
1886
|
+
${this.showArrow?a.html`<div class="popover-arrow"></div>`:l.nothing}
|
|
1887
|
+
<div part="popover-content">
|
|
1888
|
+
<slot></slot>
|
|
1889
|
+
</div>
|
|
1890
|
+
`}static get styles(){return[m.A]}};y([(0,a.property)({type:String,reflect:!0})],v.prototype,"id",void 0),y([(0,a.property)({type:String,reflect:!0})],v.prototype,"triggerID",void 0),y([(0,a.property)({type:String,reflect:!0})],v.prototype,"trigger",void 0),y([(0,a.property)({type:String,reflect:!0})],v.prototype,"placement",void 0),y([(0,a.property)({type:String,reflect:!0})],v.prototype,"strategy",void 0),y([(0,a.property)({type:String,reflect:!0})],v.prototype,"color",void 0),y([(0,a.property)({type:Boolean,reflect:!0})],v.prototype,"visible",void 0),y([(0,a.property)({type:Number,reflect:!0})],v.prototype,"offset",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"focus-trap"})],v.prototype,"focusTrap",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],v.prototype,"preventScroll",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"show-arrow"})],v.prototype,"showArrow",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"close-button"})],v.prototype,"closeButton",void 0),y([(0,a.property)({type:Boolean,reflect:!0})],v.prototype,"interactive",void 0),y([(0,a.property)({type:String,reflect:!0})],v.prototype,"delay",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],v.prototype,"hideOnEscape",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],v.prototype,"hideOnBlur",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],v.prototype,"hideOnOutsideClick",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],v.prototype,"focusBackToTrigger",void 0),y([(0,a.property)({type:Boolean,reflect:!0})],v.prototype,"backdrop",void 0),y([(0,a.property)({type:Boolean,reflect:!0})],v.prototype,"flip",void 0),y([(0,a.property)({type:Boolean,reflect:!0})],v.prototype,"size",void 0),y([(0,a.property)({type:Number,reflect:!0,attribute:"z-index"})],v.prototype,"zIndex",void 0),y([(0,a.property)({type:String,reflect:!0,attribute:"append-to"})],v.prototype,"appendTo",void 0),y([(0,a.property)({type:String,attribute:"close-button-aria-label",reflect:!0})],v.prototype,"closeButtonAriaLabel",void 0),y([(0,a.property)({type:String,reflect:!0})],v.prototype,"role",void 0),y([(0,a.property)({type:String,reflect:!0,attribute:"aria-labelledby"})],v.prototype,"ariaLabelledby",void 0),y([(0,a.property)({type:String,reflect:!0,attribute:"aria-describedby"})],v.prototype,"ariaDescribedby",void 0),y([(0,a.property)({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],v.prototype,"disableAriaExpanded",void 0),v=y([(0,s.w)("md-popover")],v)},73093:(t,e,i)=>{i.d(e,{FloatingModal:()=>s}),i(96798),i(61200);var s,o=i(3001),r=i(31890),n=i(26272),a=(i(58088),i(57346),i(69e3),i(20727)),l=i.n(a),d=(i(3288),i(41488)),h=i(40333),p=i(97822),c=(i(58871),i(67330)),u=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,o.yC)((0,o.TS)(d.LitElement))){constructor(){super(...arguments),this.heading="",this.label="",this.show=!1,this.aspectRatio=!1,this.centered=!1,this.fixed=!1,this.full=!1,this.closeAriaLabel="Close Modal",this.resizeAriaLabel="Resize Modal",this.maximizeScreenLabel="Maximize Modal",this.minimizeAriaLabel="Minimize Modal",this.maximizable=!0,this.resizable=!0,this.minimize=!1,this.minimizable=!1,this.containerRect=null,this.dragOccured=!1,this.containerTransform="",this.applyInitialPosition=!0,this.resizeMoveListener=t=>{const{target:e}=t;let i=parseFloat(e.getAttribute("data-x"))||0,s=parseFloat(e.getAttribute("data-y"))||0;e.style.setProperty("width",`${t.rect.width}px`,"important"),e.style.setProperty("height",`${t.rect.height}px`,"important");const{initialX:o,initialY:r}=this.getInitialPosition();i+=t.deltaRect.left+o,s+=t.deltaRect.top+r,this.setTargetPosition(e,i,s),this.applyInitialPosition=!1},this.resizeEndListener=()=>{this.setContainerRect()},this.getInitialPosition=()=>{var t,e;return this.applyInitialPosition&&this.position?{initialX:Number(null===(t=this.position)||void 0===t?void 0:t.x),initialY:Number(null===(e=this.position)||void 0===e?void 0:e.y)}:{initialX:0,initialY:0}},this.dragMoveListener=t=>{const{target:e}=t,{x:i,y:s}=this.getTransformValues(t);this.setTargetPosition(e,i,s),this.applyInitialPosition=!1},this.dragEndListener=()=>{this.dragOccured=!0,this.setContainerRect()}}static get styles(){return[n.A,c.A]}updated(t){super.updated(t),t.has("show")&&(this.container&&this.show?(this.applyInitialPosition=!0,this.setContainerRect(),this.setInteractInstance()):(this.cleanContainerStyles(),this.destroyInteractInstance())),this.container&&t.has("position")&&!t.has("show")&&this.setInitialTargetPosition()}isNewPositionNotSame(){var t,e,i,s;if(this.container)return Number(null===(t=this.container)||void 0===t?void 0:t.getAttribute("data-x"))!==(null===(e=this.position)||void 0===e?void 0:e.x)||Number(null===(i=this.container)||void 0===i?void 0:i.getAttribute("data-y"))!==(null===(s=this.position)||void 0===s?void 0:s.y)}setInitialTargetPosition(){var t,e;this.container&&this.isNewPositionNotSame()&&this.setTargetPosition(this.container,Number(null===(t=this.position)||void 0===t?void 0:t.x),Number(null===(e=this.position)||void 0===e?void 0:e.y))}cleanContainerStyles(){this.containerTransform=""}getContainerTransform(){const t=this.container.getAttribute("data-x"),e=this.container.getAttribute("data-y");return t&&e?(this.dispatchEvent(new CustomEvent("floating-modal-location",{composed:!0,bubbles:!0,detail:{transform:{x:t,y:e}}})),`translate(${t}px, ${e}px)`):this.container.style.transform}setContainerRect(){requestAnimationFrame((()=>{return t=this,e=void 0,s=function*(){yield this.updateComplete,this.containerRect=this.container.getBoundingClientRect(),this.dispatchEvent(new CustomEvent("floating-modal-resize",{composed:!0,bubbles:!0,detail:{size:this.containerRect}})),this.containerTransform=this.getContainerTransform()},new((i=void 0)||(i=Promise))((function(o,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(n,a)}l((s=s.apply(t,e||[])).next())}));var t,e,i,s}))}setInteractInstance(){requestAnimationFrame((()=>{this.container&&(l()(this.container).draggable({autoScroll:!0,allowFrom:this.header,ignoreFrom:this.body,listeners:{move:this.dragMoveListener,end:this.dragEndListener}}),this.resizable&&l()(this.container).resizable({edges:{left:!0,right:!0,bottom:!0,top:!0},listeners:{end:this.resizeEndListener,move:this.resizeMoveListener},modifiers:this.aspectRatio?[l().modifiers.aspectRatio({ratio:"preserve",equalDelta:!0,modifiers:[l().modifiers.restrictSize({max:"parent"})]})]:void 0}))}))}handleClose(t){this.show=!1,this.full=!1,this.dispatchEvent(new CustomEvent("floating-modal-close",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleMinimize(){this.minimizable&&(this.dragOccured||(this.minimize=!this.minimize,this.dispatchEvent(new CustomEvent("floating-modal-minimize",{composed:!0,bubbles:!0,detail:{minimize:this.minimize}}))),this.dragOccured=!1)}handleToggleExpandCollapse(){this.full=!this.full}getTransformValues(t){const{target:e,dx:i,dy:s}=t,{initialX:o,initialY:r}=this.getInitialPosition();return{x:(parseFloat(e.getAttribute("data-x"))||0)+i+o,y:(parseFloat(e.getAttribute("data-y"))||0)+s+r}}setTargetPosition(t,e,i){t.style.transform=`translate(${e}px, ${i}px)`,t.setAttribute("data-x",`${e}`),t.setAttribute("data-y",`${i}`)}destroyInteractInstance(){this.container&&l().isSet(this.container)&&l()(this.container).unset()}disconnectedCallback(){super.disconnectedCallback(),this.destroyInteractInstance()}renderedCallback(){this.containerTransform=this.position?`translate(${this.position.x}px, ${this.position.y}px)`:""}render(){return d.html`
|
|
1895
1891
|
${this.show?d.html`
|
|
1896
1892
|
<div
|
|
1897
1893
|
class="md-floating ${this.fixed?"fixed":""} ${this.minimize?"hide":""}"
|
|
@@ -1962,7 +1958,7 @@
|
|
|
1962
1958
|
</md-floating-modal-minimized>
|
|
1963
1959
|
</div>`:h.nothing}
|
|
1964
1960
|
`:h.nothing}
|
|
1965
|
-
`}};u([(0,d.property)({type:String})],e.prototype,"heading",void 0),u([(0,d.property)({type:String})],e.prototype,"label",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),u([(0,d.property)({type:Boolean,reflect:!0,attribute:"aspect-ratio"})],e.prototype,"aspectRatio",void 0),u([(0,d.property)({type:Boolean,reflect:!0,attribute:"centered"})],e.prototype,"centered",void 0),u([(0,d.property)({type:Boolean,reflect:!0,attribute:"fixed-strategy"})],e.prototype,"fixed",void 0),u([(0,d.property)({type:Boolean,reflect:!0,attribute:"full-screen"})],e.prototype,"full",void 0),u([(0,d.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),u([(0,d.property)({type:String,attribute:"resize-aria-label"})],e.prototype,"resizeAriaLabel",void 0),u([(0,d.property)({type:String,attribute:"maximize-aria-label"})],e.prototype,"maximizeScreenLabel",void 0),u([(0,d.property)({type:String,attribute:"minimize-aria-label"})],e.prototype,"minimizeAriaLabel",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"maximizable",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"resizable",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),u([(0,d.property)({type:Object})],e.prototype,"position",void 0),u([(0,d.property)({type:Object})],e.prototype,"minPosition",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"minimizable",void 0),u([(0,d.property)({type:Object})],e.prototype,"containerRect",void 0),u([(0,d.internalProperty)()],e.prototype,"dragOccured",void 0),u([(0,d.query)(".md-floating")],e.prototype,"container",void 0),u([(0,d.query)(".md-floating__body")],e.prototype,"body",void 0),u([(0,d.query)(".md-floating__header")],e.prototype,"header",void 0),u([(0,d.query)(".md-floating-min-parent")],e.prototype,"minimizedHeader",void 0),u([(0,d.query)('slot[name="header"]')],e.prototype,"headerSlot",void 0),e=u([(0,r.w)("md-floating-modal")],e),t.ELEMENT=e}(s||(s={}))},73679:t=>{t.exports=
|
|
1961
|
+
`}};u([(0,d.property)({type:String})],e.prototype,"heading",void 0),u([(0,d.property)({type:String})],e.prototype,"label",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),u([(0,d.property)({type:Boolean,reflect:!0,attribute:"aspect-ratio"})],e.prototype,"aspectRatio",void 0),u([(0,d.property)({type:Boolean,reflect:!0,attribute:"centered"})],e.prototype,"centered",void 0),u([(0,d.property)({type:Boolean,reflect:!0,attribute:"fixed-strategy"})],e.prototype,"fixed",void 0),u([(0,d.property)({type:Boolean,reflect:!0,attribute:"full-screen"})],e.prototype,"full",void 0),u([(0,d.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),u([(0,d.property)({type:String,attribute:"resize-aria-label"})],e.prototype,"resizeAriaLabel",void 0),u([(0,d.property)({type:String,attribute:"maximize-aria-label"})],e.prototype,"maximizeScreenLabel",void 0),u([(0,d.property)({type:String,attribute:"minimize-aria-label"})],e.prototype,"minimizeAriaLabel",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"maximizable",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"resizable",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),u([(0,d.property)({type:Object})],e.prototype,"position",void 0),u([(0,d.property)({type:Object})],e.prototype,"minPosition",void 0),u([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"minimizable",void 0),u([(0,d.property)({type:Object})],e.prototype,"containerRect",void 0),u([(0,d.internalProperty)()],e.prototype,"dragOccured",void 0),u([(0,d.query)(".md-floating")],e.prototype,"container",void 0),u([(0,d.query)(".md-floating__body")],e.prototype,"body",void 0),u([(0,d.query)(".md-floating__header")],e.prototype,"header",void 0),u([(0,d.query)(".md-floating-min-parent")],e.prototype,"minimizedHeader",void 0),u([(0,d.query)('slot[name="header"]')],e.prototype,"headerSlot",void 0),e=u([(0,r.w)("md-floating-modal")],e),t.ELEMENT=e}(s||(s={}))},73679:t=>{t.exports=g},74896:(t,e,i)=>{i.d(e,{Alert:()=>s}),i(61200),i(19026);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(62798),h=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.closable=!1,this.message="",this.show=!1,this.internalClose=!0,this.title="",this.btnlabel="Close",this.type="default",this.inline=!1,this.newMomentum=!1,this.primaryButton="",this.primaryButtonVariant="primary",this.primaryButtonColor="",this.secondaryButton="",this.link=!1,this.showMore=!1,this.href="",this.hasFooterSlotContent=!1,this.renderIconTemplate=()=>{switch(this.type){case"error":return n.html`
|
|
1966
1962
|
<md-icon
|
|
1967
1963
|
name="error-legacy-bold"
|
|
1968
1964
|
size="${this.newMomentum?24:32}"
|
|
@@ -2768,4 +2764,4 @@
|
|
|
2768
2764
|
size="16"
|
|
2769
2765
|
></md-icon>
|
|
2770
2766
|
</label>
|
|
2771
|
-
`}};c([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"checked",void 0),c([(0,l.property)({type:String})],e.prototype,"value",void 0),c([(0,l.property)({type:String})],e.prototype,"id",void 0),c([(0,l.property)({type:String})],e.prototype,"label",void 0),c([(0,l.internalProperty)()],e.prototype,"customId",void 0),e=c([(0,n.w)("md-favorite")],e),t.ELEMENT=e}(s||(s={}))}},
|
|
2767
|
+
`}};c([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"checked",void 0),c([(0,l.property)({type:String})],e.prototype,"value",void 0),c([(0,l.property)({type:String})],e.prototype,"id",void 0),c([(0,l.property)({type:String})],e.prototype,"label",void 0),c([(0,l.internalProperty)()],e.prototype,"customId",void 0),e=c([(0,n.w)("md-favorite")],e),t.ELEMENT=e}(s||(s={}))}},N={};function U(t){var e=N[t];if(void 0!==e)return e.exports;var i=N[t]={exports:{}};return j[t].call(i.exports,i,i.exports,U),i.exports}U.m=j,_=[],U.O=(t,e,i,s)=>{if(!e){var o=1/0;for(l=0;l<_.length;l++){for(var[e,i,s]=_[l],r=!0,n=0;n<e.length;n++)(!1&s||o>=s)&&Object.keys(U.O).every((t=>U.O[t](e[n])))?e.splice(n--,1):(r=!1,s<o&&(o=s));if(r){_.splice(l--,1);var a=i();void 0!==a&&(t=a)}}return t}s=s||0;for(var l=_.length;l>0&&_[l-1][2]>s;l--)_[l]=_[l-1];_[l]=[e,i,s]},U.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return U.d(e,{a:e}),e},z=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,U.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);U.r(i);var s={};B=B||[null,z({}),z([]),z(z)];for(var o=2&e&&t;"object"==typeof o&&!~B.indexOf(o);o=z(o))Object.getOwnPropertyNames(o).forEach((e=>s[e]=()=>t[e]));return s.default=()=>t,U.d(i,s),i},U.d=(t,e)=>{for(var i in e)U.o(e,i)&&!U.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},U.f={},U.e=t=>Promise.all(Object.keys(U.f).reduce(((e,i)=>(U.f[i](t,e),e)),[])),U.u=t=>"chunks/md-"+t+".js",U.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),U.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),F={},V="@momentum-ui/web-components:",U.l=(t,e,i,s)=>{if(F[t])F[t].push(e);else{var o,r;if(void 0!==i)for(var n=document.getElementsByTagName("script"),a=0;a<n.length;a++){var l=n[a];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==V+i){o=l;break}}o||(r=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,U.nc&&o.setAttribute("nonce",U.nc),o.setAttribute("data-webpack",V+i),o.src=t),F[t]=[e];var d=(e,i)=>{o.onerror=o.onload=null,clearTimeout(h);var s=F[t];if(delete F[t],o.parentNode&&o.parentNode.removeChild(o),s&&s.forEach((t=>t(i))),e)return e(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),r&&document.head.appendChild(o)}},U.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},U.p="/",(()=>{var t={109:0,144:0,195:0,445:0,502:0,555:0,671:0,762:0,984:0,1037:0,1200:0,1266:0,1323:0,1439:0,1459:0,1462:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,2105:0,2139:0,2169:0,2176:0,2330:0,2434:0,2547:0,2576:0,2779:0,2781:0,2909:0,3001:0,3079:0,3192:0,3413:0,3477:0,3539:0,3747:0,3820:0,3938:0,3943:0,4131:0,4139:0,4259:0,4545:0,4908:0,4928:0,4971:0,5156:0,5310:0,5369:0,5382:0,5433:0,5517:0,6029:0,6060:0,6085:0,6132:0,6220:0,6396:0,6408:0,6433:0,6494:0,6587:0,6652:0,6677:0,6724:0,6754:0,6798:0,6834:0,6920:0,7145:0,7219:0,7455:0,7684:0,7711:0,7719:0,7763:0,7814:0,7927:0,8028:0,8111:0,8115:0,8220:0,8334:0,8339:0,8442:0,8510:0,8654:0,8894:0,9058:0,9237:0,9788:0};U.f.j=(e,i)=>{var s=U.o(t,e)?t[e]:void 0;if(0!==s)if(s)i.push(s[2]);else{var o=new Promise(((i,o)=>s=t[e]=[i,o]));i.push(s[2]=o);var r=U.p+U.u(e),n=new Error;U.l(r,(i=>{if(U.o(t,e)&&(0!==(s=t[e])&&(t[e]=void 0),s)){var o=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;n.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",n.name="ChunkLoadError",n.type=o,n.request=r,s[1](n)}}),"chunk-"+e,e)}},U.O.j=e=>0===t[e];var e=(e,i)=>{var s,o,[r,n,a]=i,l=0;if(r.some((e=>0!==t[e]))){for(s in n)U.o(n,s)&&(U.m[s]=n[s]);if(a)var d=a(U)}for(e&&e(i);l<r.length;l++)o=r[l],U.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return U.O(d)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var q=U.O(void 0,[7678,7103,1890,6272,6325,6283,9217,5830,8889,8210,3135,1598,4977,1572,6366,7251,4974,2243,7919,3553,6700,528,4548,6795,76,1392,9164,8004,1214,1625,3625,6067,8841,3112,3866,1107,7330,7092,9719,6979,9130,6273,8612,9618,8521,2019,779,573,5801,2043,8171,2798,5467,2984,1869,2215,4392,630,3604,7833,8728,8227,1250,1705,7997,7875,6400,587,6441,6015,3663],(()=>U(26991)));return U.O(q)})()));
|