@momentum-ui/web-components 2.23.16 → 2.23.18
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/6408.js +4 -4
- package/dist/comp/md-card-v2-entry.js +13 -13
- package/dist/comp/md-editable-field-entry.js +16 -16
- package/dist/comp/md-input-entry.js +2 -2
- package/dist/index-entry.js +95 -95
- package/dist/types/components/card-v2/CardV2.d.ts +11 -2
- package/dist/types/components/form/Form.types.d.ts +6 -0
- package/dist/types/components/form/FormArray.d.ts +3 -1
- package/dist/types/components/form/FormControl.d.ts +5 -1
- package/dist/types/components/form/FormGroup.d.ts +3 -1
- package/dist/types/components/form/ObservableControl.d.ts +11 -0
- package/dist/types/components/form/index.d.ts +6 -0
- package/dist/types/components/input/Input.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -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("@floating-ui/dom"),require("lit-html/directives/if-defined.js"),require("highlight.js/lib/core"),require("country-codes-list"),require("country-flags-svg"),require("lit-html/directives/repeat.js"),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("libphonenumber-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","country-codes-list","country-flags-svg","lit-html/directives/repeat.js","luxon","sortablejs","dompurify","@interactjs/actions/drag","@interactjs/actions/resize","@interactjs/auto-start","@interactjs/interact/index","@interactjs/modifiers","libphonenumber-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("country-codes-list"),require("country-flags-svg"),require("lit-html/directives/repeat.js"),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("libphonenumber-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["country-codes-list"],t["country-flags-svg"],t["lit-html/directives/repeat.js"],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["libphonenumber-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,C,x,S,$,E,T,k,A,L,I,O,M,P,D,R)=>(()=>{"use strict";var _,B,z,F,V,j={860:t=>{t.exports=O},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.activeTooltipTrigger=null,this.handleTooltipRemoved=()=>{this.hideVirtualTooltip(),this.activeTooltipTrigger=null}}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.activeTooltipTrigger=s,this.placement=i,this.initVirtualElements(e,s,o),this.showVirtualTooltip()}handleVirtualTooltipDestroy(t){t.stopPropagation(),this.hideVirtualTooltip(),this.activeTooltipTrigger===t.detail.reference&&(this.activeTooltipTrigger=null)}handleVirtualTooltipChangeMessage(t){var e;const{popper:i,reference:s}=t.detail;if(this.activeTooltipTrigger!==s)return;const o=i.querySelector(".md-tooltip__content"),r=this.virtualWrapper.querySelector(".md-tooltip__content");if(o&&r){const t=o.textContent,i=r.textContent;t&&i&&(r.textContent=t,null===(e=this.popperInstance)||void 0===e||e.update())}}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("luxon"),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("country-codes-list"),require("country-flags-svg"),require("lit-html/directives/repeat.js"),require("sortablejs"),require("dompurify"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("libphonenumber-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","luxon","@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","country-codes-list","country-flags-svg","lit-html/directives/repeat.js","sortablejs","dompurify","@interactjs/actions/drag","@interactjs/actions/resize","@interactjs/auto-start","@interactjs/interact/index","@interactjs/modifiers","libphonenumber-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("luxon"),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("country-codes-list"),require("country-flags-svg"),require("lit-html/directives/repeat.js"),require("sortablejs"),require("dompurify"),require("@interactjs/actions/drag"),require("@interactjs/actions/resize"),require("@interactjs/auto-start"),require("@interactjs/interact/index"),require("@interactjs/modifiers"),require("libphonenumber-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.luxon,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["country-codes-list"],t["country-flags-svg"],t["lit-html/directives/repeat.js"],t.sortablejs,t.dompurify,t["@interactjs/actions/drag"],t["@interactjs/actions/resize"],t["@interactjs/auto-start"],t["@interactjs/interact/index"],t["@interactjs/modifiers"],t["libphonenumber-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,C,x,S,$,E,T,k,A,L,I,O,M,P,D,R)=>(()=>{"use strict";var _,B,z,F,V,j={860:t=>{t.exports=O},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.activeTooltipTrigger=null,this.handleTooltipRemoved=()=>{this.hideVirtualTooltip(),this.activeTooltipTrigger=null}}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.activeTooltipTrigger=s,this.placement=i,this.initVirtualElements(e,s,o),this.showVirtualTooltip()}handleVirtualTooltipDestroy(t){t.stopPropagation(),this.hideVirtualTooltip(),this.activeTooltipTrigger===t.detail.reference&&(this.activeTooltipTrigger=null)}handleVirtualTooltipChangeMessage(t){var e;const{popper:i,reference:s}=t.detail;if(this.activeTooltipTrigger!==s)return;const o=i.querySelector(".md-tooltip__content"),r=this.virtualWrapper.querySelector(".md-tooltip__content");if(o&&r){const t=o.textContent,i=r.textContent;t&&i&&(r.textContent=t,null===(e=this.popperInstance)||void 0===e||e.update())}}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 {
|
|
@@ -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,n.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`
|
|
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,n.w)("md-checkbox")],e),t.ELEMENT=e}(s||(s={}))},4863:t=>{t.exports=v},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={}))},5784:t=>{t.exports=
|
|
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=g},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=S},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=[],C([(0,g.property)({type:Boolean,attribute:"is-open",reflect:!0})],e.prototype,"isOpen",null),C([(0,g.property)({type:String})],e.prototype,"size",void 0),C([(0,g.property)({type:String,attribute:"max-height"})],e.prototype,"maxHeight",void 0),C([(0,g.property)({type:String,attribute:"custom-width"})],e.prototype,"customWidth",void 0),C([(0,g.property)({type:Boolean,attribute:"show-arrow"})],e.prototype,"showArrow",void 0),C([(0,g.property)({type:Boolean})],e.prototype,"disabled",void 0),C([(0,g.property)({type:String})],e.prototype,"placement",void 0),C([(0,g.property)({type:Boolean,attribute:"allow-hover-toggle"})],e.prototype,"allowHoverToggle",void 0),C([(0,g.property)({type:String})],e.prototype,"ariaRole",void 0),C([(0,g.property)({type:String})],e.prototype,"ariaLabel",void 0),C([(0,g.property)({type:Boolean,attribute:"is-date-picker"})],e.prototype,"isDatePicker",void 0),C([(0,g.property)({type:Number,attribute:"overlay-offset"})],e.prototype,"overlayOffset",void 0),C([(0,g.property)({type:Boolean,attribute:"keep-open-on-window-blur"})],e.prototype,"keepOpenOnWindowBlur",void 0),C([(0,g.query)(".overlay-container")],e.prototype,"overlayContainer",void 0),C([(0,g.query)(".overlay-arrow")],e.prototype,"arrow",void 0),C([(0,g.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),C([(0,g.queryAssignedNodes)("menu-trigger",!0)],e.prototype,"trigger",void 0),e=C([(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=[],C([(0,g.property)({type:Boolean,attribute:"is-open",reflect:!0})],e.prototype,"isOpen",null),C([(0,g.property)({type:String})],e.prototype,"size",void 0),C([(0,g.property)({type:String,attribute:"max-height"})],e.prototype,"maxHeight",void 0),C([(0,g.property)({type:String,attribute:"custom-width"})],e.prototype,"customWidth",void 0),C([(0,g.property)({type:Boolean,attribute:"show-arrow"})],e.prototype,"showArrow",void 0),C([(0,g.property)({type:Boolean})],e.prototype,"disabled",void 0),C([(0,g.property)({type:String})],e.prototype,"placement",void 0),C([(0,g.property)({type:Boolean,attribute:"allow-hover-toggle"})],e.prototype,"allowHoverToggle",void 0),C([(0,g.property)({type:String})],e.prototype,"ariaRole",void 0),C([(0,g.property)({type:String})],e.prototype,"ariaLabel",void 0),C([(0,g.property)({type:Boolean,attribute:"is-date-picker"})],e.prototype,"isDatePicker",void 0),C([(0,g.property)({type:Number,attribute:"overlay-offset"})],e.prototype,"overlayOffset",void 0),C([(0,g.property)({type:Boolean,attribute:"keep-open-on-window-blur"})],e.prototype,"keepOpenOnWindowBlur",void 0),C([(0,g.query)(".overlay-container")],e.prototype,"overlayContainer",void 0),C([(0,g.query)(".overlay-arrow")],e.prototype,"arrow",void 0),C([(0,g.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),C([(0,g.queryAssignedNodes)("menu-trigger",!0)],e.prototype,"trigger",void 0),e=C([(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=C},15300:(t,e,i)=>{i.d(e,{Presence:()=>s}),i(61200);var s,o=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(38923),d=i(76877),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.name="",this.size=48,this.title="",this.color="",this.presenceType="",this.newMomentum=!1,this.failurePresence=!1,this.avatarLinked=!1}static get styles(){return[r.A,d.A]}get presenceClassMap(){return{"avatar-presence-wrapper":this.avatarLinked}}render(){if(this.presenceType){const{presenceIcon:t,presenceColor:e}=(0,l.E)(this.presenceType,this.failurePresence,this.newMomentum);this.name=t,this.color=e}return n.html`
|
|
391
391
|
<div class="${(0,a.classMap)(this.presenceClassMap)}" data-size=${this.size} data-icon-size=${this.size}>
|
|
392
392
|
<md-icon
|
|
393
393
|
name="${this.name}"
|
|
@@ -640,7 +640,7 @@
|
|
|
640
640
|
</div>
|
|
641
641
|
`}
|
|
642
642
|
</div>
|
|
643
|
-
`}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=L},22818:t=>{t.exports=p},22962:t=>{t.exports=
|
|
643
|
+
`}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=L},22818:t=>{t.exports=p},22962:t=>{t.exports=u},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`
|
|
644
644
|
<li @click=${()=>this.computeCurrent(t)} aria-current=${t===this.currentPage}>
|
|
645
645
|
${t}
|
|
646
646
|
</li>
|
|
@@ -982,72 +982,7 @@
|
|
|
982
982
|
></span>
|
|
983
983
|
${this.step?this.ticksTemplate():d.nothing} ${this.hideValue?d.nothing:this.displayValueTemplate()}
|
|
984
984
|
</div>
|
|
985
|
-
`}};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={}))},
|
|
986
|
-
<div class="md-code-editor" part="code-editor">
|
|
987
|
-
<div class="md-code-editor-header">
|
|
988
|
-
<div class="md-code-editor-name">
|
|
989
|
-
<md-badge color="blue">
|
|
990
|
-
<slot name="method" method=${this.method}></slot>
|
|
991
|
-
</md-badge>
|
|
992
|
-
<span class="md-code-editor-url">
|
|
993
|
-
<slot name="code-url" @slotchange=${this.handleUrlSlotChange}>${this.url}</slot>
|
|
994
|
-
</span>
|
|
995
|
-
</div>
|
|
996
|
-
<div class="md-code-editor-copy">
|
|
997
|
-
<span>${this.copied?this.copiedLocalization.trim():this.copyLocalization.trim()}</span>
|
|
998
|
-
<md-button
|
|
999
|
-
circle
|
|
1000
|
-
size="20"
|
|
1001
|
-
?disabled=${this.disableCopyButton}
|
|
1002
|
-
@click=${this.copyClipboard}
|
|
1003
|
-
class="md-code-editor-copy-btn"
|
|
1004
|
-
>
|
|
1005
|
-
<md-icon slot="icon" name="icon-copy_16"></md-icon>
|
|
1006
|
-
</md-button>
|
|
1007
|
-
</div>
|
|
1008
|
-
</div>
|
|
1009
|
-
<div class="md-code-editor-content">
|
|
1010
|
-
<pre class="md-code-editor-code-block">
|
|
1011
|
-
<slot name="code-block" @slotchange=${this.handleSlotChange}>
|
|
1012
|
-
<code class=${this.acceptLanguage}>
|
|
1013
|
-
</code>
|
|
1014
|
-
</slot>
|
|
1015
|
-
</pre>
|
|
1016
|
-
</div>
|
|
1017
|
-
</div>
|
|
1018
|
-
`}};P([(0,I.property)({type:String})],e.prototype,"copyLocalization",void 0),P([(0,I.property)({type:String})],e.prototype,"copiedLocalization",void 0),P([(0,I.property)({type:String})],e.prototype,"method",void 0),P([(0,I.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),P([(0,I.property)({type:String})],e.prototype,"url",void 0),P([(0,I.query)("input[type='file']")],e.prototype,"input",void 0),P([(0,I.query)(".md-code-editor-code-block")],e.prototype,"codeBlock",void 0),P([(0,I.query)(".md-code-editor-url")],e.prototype,"codeUrl",void 0),P([(0,I.internalProperty)()],e.prototype,"disableCopyButton",void 0),P([(0,I.internalProperty)()],e.prototype,"acceptTypes",void 0),P([(0,I.internalProperty)()],e.prototype,"copied",void 0),P([(0,I.queryAssignedNodes)("code-block")],e.prototype,"slotNodes",void 0),P([(0,I.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(18224),_=i(69494),B=i(85416),z=i(38654),F=i(63208),V=i(16754),j=i(17814),N=i(10984),U=i(80072),q=i(24627),H=i(23184),W=i(50565),K=i(99850),G=i(61200),Y=i(83192),X=i(40333),Q=i(97822);const Z=I.css`:host{display:inline-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}.button{display:inline-flex;align-items:center;justify-content:center}.button.pill::part(button){font-size:.875rem;padding-left:.75rem;padding-right:.75rem}.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);padding-right:4px}.separator{width:1px;height:.75rem;background-color:var(--floating-button-bar-secondary-color)}md-tooltip::part(tooltip_reference){display:flex;align-items:center}`;var J=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 tt=class extends I.LitElement{constructor(){super(...arguments),this.leadingLabel="",this.closeButtonAriaLabel="",this.showCloseButton=!0,this.actions=[]}static get styles(){return[Z]}onCancelButttonAction(){this.dispatchEvent(new CustomEvent("cancel-button-action",{composed:!0,bubbles:!0}))}get closeButtonTemplate(){return I.html`
|
|
1019
|
-
<md-tooltip
|
|
1020
|
-
message="${(0,Q.ifDefined)(this.closeButtonAriaLabel)}"
|
|
1021
|
-
?disabled=${!this.closeButtonAriaLabel}
|
|
1022
|
-
placement="top"
|
|
1023
|
-
>
|
|
1024
|
-
<md-button
|
|
1025
|
-
class="button cancel"
|
|
1026
|
-
circle
|
|
1027
|
-
size="20"
|
|
1028
|
-
variant="ghostInheritTextColor"
|
|
1029
|
-
ariaLabel=${(0,Q.ifDefined)(this.closeButtonAriaLabel)}
|
|
1030
|
-
@button-click=${()=>this.onCancelButttonAction()}
|
|
1031
|
-
>
|
|
1032
|
-
<md-icon slot="icon" iconSet="momentumDesign" name="cancel-bold" size="16"></md-icon>
|
|
1033
|
-
</md-button>
|
|
1034
|
-
</md-tooltip>
|
|
1035
|
-
`}getPrimaryLabelTemplate(t){return I.html` <span class="label primary">${t}</span> `}getSecondaryLabelTemplate(t){return I.html` <span class="label secondary">${t}</span> `}get separatorTemplate(){return I.html` <div class="separator"></div> `}getIconTemplate(t){return I.html`${t.icon?I.html`<md-icon slot="icon" iconSet="momentumDesign" name=${t.icon} size="16"></md-icon>`:X.nothing}`}getPillButtonTemplate(t){return I.html`
|
|
1036
|
-
<md-button class="button pill" size="24" variant="inverted-ghost" @button-click=${()=>t.action()}>
|
|
1037
|
-
${this.getIconTemplate(t)} ${this.getPrimaryLabelTemplate(t.label)}
|
|
1038
|
-
</md-button>
|
|
1039
|
-
`}getCircleButtonTemplate(t){return I.html`
|
|
1040
|
-
<md-button class="button" circle size="24" variant="inverted-secondary" @button-click=${()=>t.action()}>
|
|
1041
|
-
${this.getIconTemplate(t)}
|
|
1042
|
-
</md-button>
|
|
1043
|
-
`}getTooltipCircleButtonTemplate(t){return I.html`
|
|
1044
|
-
<md-tooltip message="${t.label}" placement="top"> ${this.getCircleButtonTemplate(t)} </md-tooltip>
|
|
1045
|
-
`}getActionAndLabelTemplate(t){var e;const i=null!==(e=t.iconAlign)&&void 0!==e?e:"right";return I.html`
|
|
1046
|
-
${"left"===i?I.html`${this.getCircleButtonTemplate(t)} ${this.getPrimaryLabelTemplate(t.label)}`:I.html`${this.getPrimaryLabelTemplate(t.label)} ${this.getCircleButtonTemplate(t)}`}
|
|
1047
|
-
`}getActionTemplate(t){return t.isIconOnly?this.getTooltipCircleButtonTemplate(t):this.getPillButtonTemplate(t)}getActionGroupTemplate(t){return I.html` ${this.separatorTemplate} ${t.actions.map((t=>this.getActionTemplate(t)))} `}render(){return I.html`
|
|
1048
|
-
${this.showCloseButton?this.closeButtonTemplate:X.nothing} ${this.getSecondaryLabelTemplate(this.leadingLabel)}
|
|
1049
|
-
${this.actions.map((t=>this.getActionGroupTemplate(t)))}
|
|
1050
|
-
`}};J([(0,I.property)({type:String})],tt.prototype,"leadingLabel",void 0),J([(0,I.property)({type:String})],tt.prototype,"closeButtonAriaLabel",void 0),J([(0,I.property)({type:Boolean})],tt.prototype,"showCloseButton",void 0),J([(0,I.property)({type:Array})],tt.prototype,"actions",void 0),tt=J([(0,I.customElement)("md-floating-button-bar")],tt);var et=i(58871),it=i(73093),st=i(97866),ot=i(69112),rt=i(20109),nt=i(52619),at=i(96408),lt=i(6396),dt=i(19026),ht=i(68490),pt=i(66245),ct=i(69788),ut=i(61997),mt=i(11323),yt=i(84032),bt=i(48171),vt=i(32252),gt=i(23026),ft=i(84205),wt=i(71128),Ct=i(15300),xt=i(58287),St=i(81144),$t=i(32217),Et=i(25428),Tt=i(12176),kt=i(77935),At=i(40428),Lt=i(16643),It=i(97737),Ot=i(50226),Mt=i(86610),Pt=i(1072),Dt=i(49256),Rt=i(20331),_t=i(81786),Bt=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`
|
|
985
|
+
`}};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={}))},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`
|
|
1051
986
|
<style>
|
|
1052
987
|
:host .virtual-scroll {
|
|
1053
988
|
height: ${this.containerHeight};
|
|
@@ -1318,7 +1253,7 @@
|
|
|
1318
1253
|
</table>
|
|
1319
1254
|
`:n.html` <p>${this.nodata}</p> `}
|
|
1320
1255
|
</div>
|
|
1321
|
-
`}};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=$},45001:t=>{t.exports=
|
|
1256
|
+
`}};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=$},45001:t=>{t.exports=w},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`
|
|
1322
1257
|
<div role="group" class="md-button-group" part="button-group">
|
|
1323
1258
|
<slot name="button"></slot>
|
|
1324
1259
|
</div>
|
|
@@ -1910,11 +1845,11 @@
|
|
|
1910
1845
|
${this.renderHeader()}
|
|
1911
1846
|
<div class="content-margin">${this.renderCardText()} ${this.renderFooter()}</div>
|
|
1912
1847
|
</div>
|
|
1913
|
-
`}};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=
|
|
1848
|
+
`}};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=c},65875:t=>{t.exports=x},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`
|
|
1914
1849
|
<div class="md-list-item ${(0,l.classMap)(this.listItemTemplateClassMap)}" part="list-item">
|
|
1915
1850
|
<slot></slot>
|
|
1916
1851
|
</div>
|
|
1917
|
-
`}};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,dw:()=>d,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=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e: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=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null})).filter((t=>null!==t));for(const e of i){const i=l(t,e);if(i)return i}return null}function d(){var t;let e=document.activeElement;for(;null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement;)e=e.shadowRoot.activeElement;return e}},68250:t=>{t.exports=
|
|
1852
|
+
`}};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,dw:()=>d,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=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e: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=>{var e;return null!==(e=t.shadowRoot)&&void 0!==e?e:null})).filter((t=>null!==t));for(const e of i){const i=l(t,e);if(i)return i}return null}function d(){var t;let e=document.activeElement;for(;null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement;)e=e.shadowRoot.activeElement;return e}},68250:t=>{t.exports=y},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`
|
|
1918
1853
|
<ul role=${(0,d.ifDefined)("list"!==this._role?this._role:void 0)} class="md-list" part="list">
|
|
1919
1854
|
<slot name="list-item"></slot>
|
|
1920
1855
|
</ul>
|
|
@@ -1939,7 +1874,7 @@
|
|
|
1939
1874
|
<md-icon name="${this.iconName}" size="${this.iconSize}" iconSet="momentumDesign"></md-icon>
|
|
1940
1875
|
</button>
|
|
1941
1876
|
</div>
|
|
1942
|
-
`}};u([(0,d.property)({type:String})],e.prototype,"label",void 0),u([(0,d.property)({type:String})],e.prototype,"checkedLabel",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"hovered",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"checked",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"visible",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"focused",void 0),u([(0,d.property)({type:Boolean,attribute:"disable-click-toggle"})],e.prototype,"disableClickToggle",void 0),u([(0,d.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"dragger",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"shadow",void 0),e=u([(0,n.w)("md-grabber")],e),t.ELEMENT=e}(s||(s={}))},69371:t=>{t.exports=
|
|
1877
|
+
`}};u([(0,d.property)({type:String})],e.prototype,"label",void 0),u([(0,d.property)({type:String})],e.prototype,"checkedLabel",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"hovered",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"checked",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"visible",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"focused",void 0),u([(0,d.property)({type:Boolean,attribute:"disable-click-toggle"})],e.prototype,"disableClickToggle",void 0),u([(0,d.property)({type:String,reflect:!0})],e.prototype,"alignment",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"dragger",void 0),u([(0,d.property)({type:Boolean})],e.prototype,"shadow",void 0),e=u([(0,n.w)("md-grabber")],e),t.ELEMENT=e}(s||(s={}))},69371:t=>{t.exports=b},69494:(t,e,i)=>{i.d(e,{DateRangePicker:()=>h});var s=i(31890),o=i(81625),r=i(41488),n=i(65796),a=i(38654),l=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 d=" - ";var h;!function(t){let e=class extends a.DatePicker.ELEMENT{constructor(){super(...arguments),this.startDate=void 0,this.endDate=void 0,this.updateValue=()=>{if(this.startDate&&this.endDate){const t=t=>this.useISOFormat?t:n.DateTime.fromISO(t).toLocaleString(n.DateTime.DATE_SHORT,{locale:this.locale}),e=t(this.startDate),i=t(this.endDate);this.value=`${e}${d}${i}`}},this.isValueValid=()=>{var t,e;if(!this.validateDate)return!0;const i=null!==(e=null===(t=this.value)||void 0===t?void 0:t.split(d))&&void 0!==e?e:[];return 2===i.length&&this.validateDateString(i[0])&&this.validateDateString(i[1])},this.getDefaultAriaLabel=()=>{if(this.startDate&&this.endDate){const t=n.DateTime.fromISO(this.startDate),e=n.DateTime.fromISO(this.endDate);if(t.isValid&&e.isValid)return`Choose Date Range, currently selected range is ${t.toLocaleString(n.DateTime.DATE_FULL)} to ${e.toLocaleString(n.DateTime.DATE_FULL)}`}return"Choose Date Range"}}connectedCallback(){super.connectedCallback(),super.render(),this.addEventListener("date-pre-selection-change",this.handleDateSelection),this.updateValue()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("date-pre-selection-change",this.handleDateSelection)}updated(t){super.updated(t),!t.has("startDate")&&!t.has("endDate")||t.has("focusedDate")||this.updateValue()}getPlaceHolderString(){if(this.placeholder)return this.placeholder;if(this.useISOFormat)return`YYYY-MM-DD${d}YYYY-MM-DD`;const t=(0,o.gq)(this.locale).toUpperCase();return`${t}${d}${t}`}setSelected(){}dateToSqlTranslate(t){return t.toSQLDate()}onApplyClick(){this.emitDateRange(),this.updateValue(),this.shouldCloseOnSelect&&this.setOpen(!1)}handleDateSelection(t){var e;const i=t.detail.data;i&&(this.selectedDate=i,this.focusedDate=i,this.startDate?this.endDate?(this.startDate=this.dateToSqlTranslate(i),this.endDate=void 0):i<n.DateTime.fromISO(this.startDate)?(this.endDate=this.startDate,this.startDate=this.dateToSqlTranslate(i)):this.endDate=this.dateToSqlTranslate(i):this.startDate=this.dateToSqlTranslate(i),(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)||(this.emitDateRange(),this.updateValue()))}emitDateRange(){if(!this.startDate||!this.endDate)return;const t=new CustomEvent("date-range-change",{detail:{startDate:this.startDate,endDate:this.endDate}});this.dispatchEvent(t)}};l([(0,r.property)({type:String,attribute:"start-date",reflect:!0})],e.prototype,"startDate",void 0),l([(0,r.property)({type:String,attribute:"end-date",reflect:!0})],e.prototype,"endDate",void 0),e=l([(0,s.w)("md-date-range-picker")],e),t.ELEMENT=e}(h||(h={}))},69788:(t,e,i)=>{i.d(e,{Loading:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(17518),l=i(76700),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="",this.isAnimating=!1,this.animationFrameId=null}static get styles(){return[r.A,l.A]}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.querySelectorAll(".md-loading__icon");if(!e)return;let i=null;const s=1400,o=t=>{if(!this.isAnimating)return;i||(i=t);const r=(t-i)%s;e.forEach(((t,e)=>{const i=(r-200*e+s)%s;let o=0,n=.1;if(i<280){const t=.1+i/280*.9;o=t,n=t}else if(i<1400){const t=Math.min((i-280)/1120*2,1);o=Math.max(1-.9*t,.9),n=Math.max(1-.9*t,.2)}t.style.transform=`scale(${o})`,t.style.opacity=`${n}`})),this.animationFrameId=requestAnimationFrame(o)};this.animationFrameId=requestAnimationFrame(o)}stopAnimation(){var t;null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null);const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".md-loading__icon");e&&e.forEach((t=>{t.style.transform="scale(0, 0)",t.style.opacity="0.1"}))}get loadingClassMap(){return{[`md-loading--${this.size}`]:!!this.size}}get loadingIconClassMap(){return{"md-loading__icon":!0}}render(){return n.html`
|
|
1943
1878
|
<div class="md-loading ${(0,a.classMap)(this.loadingClassMap)}">
|
|
1944
1879
|
<span class=${(0,a.classMap)(this.loadingIconClassMap)}></span>
|
|
1945
1880
|
<span class=${(0,a.classMap)(this.loadingIconClassMap)}></span>
|
|
@@ -2032,7 +1967,7 @@
|
|
|
2032
1967
|
</md-floating-modal-minimized>
|
|
2033
1968
|
</div>`:h.nothing}
|
|
2034
1969
|
`:h.nothing}
|
|
2035
|
-
`}};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=
|
|
1970
|
+
`}};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=f},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`
|
|
2036
1971
|
<md-icon
|
|
2037
1972
|
name="error-legacy-bold"
|
|
2038
1973
|
size="${this.newMomentum?24:32}"
|
|
@@ -2319,7 +2254,72 @@
|
|
|
2319
2254
|
</div>
|
|
2320
2255
|
`;return r.options.isHeader?n.html` <th part="cell-ishead" scope="row" title="${i.text}">${y}</th> `:n.html` <td part=${0===s?"first-cell":"cell"} title="${i.text}">${y}</td> `}))}
|
|
2321
2256
|
</tr>
|
|
2322
|
-
`}static get styles(){return[r.A,u.A]}};b([(0,n.property)({attribute:"config"})],e.prototype,"config",void 0),b([(0,n.property)({attribute:"data"})],e.prototype,"data",void 0),b([(0,n.property)({type:String})],e.prototype,"isRowFocusable",void 0),b([(0,m.Wj)()],e.prototype,"md-table-advanced-change",void 0),b([(0,n.internalProperty)()],e.prototype,"tableConfig",void 0),b([(0,n.internalProperty)()],e.prototype,"tableData",void 0),b([(0,n.internalProperty)()],e.prototype,"error",void 0),b([(0,n.internalProperty)()],e.prototype,"COLS",void 0),b([(0,n.internalProperty)()],e.prototype,"ROWS",void 0),b([(0,n.internalProperty)()],e.prototype,"dragRow",void 0),b([(0,n.internalProperty)()],e.prototype,"dropRow",void 0),b([(0,n.internalProperty)()],e.prototype,"drops",void 0),b([(0,n.internalProperty)()],e.prototype,"dragCol",void 0),b([(0,n.internalProperty)()],e.prototype,"dropCol",void 0),b([(0,n.queryAll)("tr[tabindex]")],e.prototype,"tableRaws",void 0),b([(0,m.sg)(500)],e.prototype,"filter",null),e=b([(0,s.w)("md-table-advanced")],e),t.ELEMENT=e}(g||(g={}))},
|
|
2257
|
+
`}static get styles(){return[r.A,u.A]}};b([(0,n.property)({attribute:"config"})],e.prototype,"config",void 0),b([(0,n.property)({attribute:"data"})],e.prototype,"data",void 0),b([(0,n.property)({type:String})],e.prototype,"isRowFocusable",void 0),b([(0,m.Wj)()],e.prototype,"md-table-advanced-change",void 0),b([(0,n.internalProperty)()],e.prototype,"tableConfig",void 0),b([(0,n.internalProperty)()],e.prototype,"tableData",void 0),b([(0,n.internalProperty)()],e.prototype,"error",void 0),b([(0,n.internalProperty)()],e.prototype,"COLS",void 0),b([(0,n.internalProperty)()],e.prototype,"ROWS",void 0),b([(0,n.internalProperty)()],e.prototype,"dragRow",void 0),b([(0,n.internalProperty)()],e.prototype,"dropRow",void 0),b([(0,n.internalProperty)()],e.prototype,"drops",void 0),b([(0,n.internalProperty)()],e.prototype,"dragCol",void 0),b([(0,n.internalProperty)()],e.prototype,"dropCol",void 0),b([(0,n.queryAll)("tr[tabindex]")],e.prototype,"tableRaws",void 0),b([(0,m.sg)(500)],e.prototype,"filter",null),e=b([(0,s.w)("md-table-advanced")],e),t.ELEMENT=e}(g||(g={}))},77999:(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:()=>C.Checkbox,CheckboxGroup:()=>x.CheckboxGroup,Chip:()=>S.Chip,Coachmark:()=>E.Coachmark,CoachmarkPopover:()=>$.CoachmarkPopover,CodeEditor:()=>M,ComboBox:()=>D.ComboBox,CompositeAvatar:()=>c.CompositeAvatar,CountryCodePicker:()=>R.CountryCodePicker,DatePicker:()=>z.DatePicker,DatePickerCalendar:()=>F.DatePickerCalendar,DatePickerDay:()=>V.DatePickerDay,DatePickerMonth:()=>j.DatePickerMonth,DatePickerWeek:()=>N.DatePickerWeek,DateRangePicker:()=>_.DateRangePicker,DateTimePicker:()=>B.DateTimePicker,Draggable:()=>U.Draggable,DraggableItem:()=>q.DraggableItem,Dropdown:()=>H.Dropdown,EditableTextfield:()=>W.EditableTextfield,Favorite:()=>K.Favorite,FloatingButtonBar:()=>tt,FloatingMinimizedModal:()=>et.FloatingMinimizedModal,FloatingModal:()=>it.FloatingModal,Form:()=>st.Form,FormArray:()=>jt,FormControl:()=>Ft,FormGroup:()=>Vt,Grabber:()=>ot.Grabber,HelpText:()=>rt.HelpText,Icon:()=>G.Icon,Input:()=>at.Input,InputFile:()=>nt.InputFile,Label:()=>lt.Label,Link:()=>dt.Link,List:()=>ht.List,ListItem:()=>pt.ListItem,Loading:()=>ct.Loading,MeetingAlert:()=>ut.MeetingAlert,Menu:()=>yt.Menu,MenuItem:()=>bt.MenuItem,MenuOverlay:()=>mt.MenuOverlay,Modal:()=>vt.Modal,Pagination:()=>gt.Pagination,PhoneInput:()=>ft.PhoneInput,Popover:()=>wt.Popover,PopoverController:()=>wt.PopoverController,Presence:()=>Ct.Presence,ProgressBar:()=>xt.ProgressBar,Radio:()=>St.Radio,RadioGroup:()=>$t.RadioGroup,Slider:()=>Et.Slider,Spinner:()=>Tt.Spinner,Tab:()=>Lt.Tab,TabPanel:()=>It.TabPanel,Table:()=>At.Table,TableAdvanced:()=>kt.TableAdvanced,Tabs:()=>Ot.Tabs,TaskItem:()=>Mt.TaskItem,Theme:()=>Pt.Theme,ThemeManager:()=>Bt.ThemeManager,TimePicker:()=>Dt.TimePicker,ToggleSwitch:()=>Rt.ToggleSwitch,Tooltip:()=>Y.Tooltip,Validators:()=>Nt,iconUrlManager:()=>_t.O,themeManager:()=>Bt.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),C=i(3664),x=i(55294),S=i(60046),$=i(29895),E=i(46312),T=i(3001),k=i(26272),A=i(45001),L=i.n(A),I=i(41488);const O=I.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 I.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),L().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}`);L().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=L().listLanguages();return t.length?t.map((t=>L().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 I.html`
|
|
2258
|
+
<div class="md-code-editor" part="code-editor">
|
|
2259
|
+
<div class="md-code-editor-header">
|
|
2260
|
+
<div class="md-code-editor-name">
|
|
2261
|
+
<md-badge color="blue">
|
|
2262
|
+
<slot name="method" method=${this.method}></slot>
|
|
2263
|
+
</md-badge>
|
|
2264
|
+
<span class="md-code-editor-url">
|
|
2265
|
+
<slot name="code-url" @slotchange=${this.handleUrlSlotChange}>${this.url}</slot>
|
|
2266
|
+
</span>
|
|
2267
|
+
</div>
|
|
2268
|
+
<div class="md-code-editor-copy">
|
|
2269
|
+
<span>${this.copied?this.copiedLocalization.trim():this.copyLocalization.trim()}</span>
|
|
2270
|
+
<md-button
|
|
2271
|
+
circle
|
|
2272
|
+
size="20"
|
|
2273
|
+
?disabled=${this.disableCopyButton}
|
|
2274
|
+
@click=${this.copyClipboard}
|
|
2275
|
+
class="md-code-editor-copy-btn"
|
|
2276
|
+
>
|
|
2277
|
+
<md-icon slot="icon" name="icon-copy_16"></md-icon>
|
|
2278
|
+
</md-button>
|
|
2279
|
+
</div>
|
|
2280
|
+
</div>
|
|
2281
|
+
<div class="md-code-editor-content">
|
|
2282
|
+
<pre class="md-code-editor-code-block">
|
|
2283
|
+
<slot name="code-block" @slotchange=${this.handleSlotChange}>
|
|
2284
|
+
<code class=${this.acceptLanguage}>
|
|
2285
|
+
</code>
|
|
2286
|
+
</slot>
|
|
2287
|
+
</pre>
|
|
2288
|
+
</div>
|
|
2289
|
+
</div>
|
|
2290
|
+
`}};P([(0,I.property)({type:String})],e.prototype,"copyLocalization",void 0),P([(0,I.property)({type:String})],e.prototype,"copiedLocalization",void 0),P([(0,I.property)({type:String})],e.prototype,"method",void 0),P([(0,I.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),P([(0,I.property)({type:String})],e.prototype,"url",void 0),P([(0,I.query)("input[type='file']")],e.prototype,"input",void 0),P([(0,I.query)(".md-code-editor-code-block")],e.prototype,"codeBlock",void 0),P([(0,I.query)(".md-code-editor-url")],e.prototype,"codeUrl",void 0),P([(0,I.internalProperty)()],e.prototype,"disableCopyButton",void 0),P([(0,I.internalProperty)()],e.prototype,"acceptTypes",void 0),P([(0,I.internalProperty)()],e.prototype,"copied",void 0),P([(0,I.queryAssignedNodes)("code-block")],e.prototype,"slotNodes",void 0),P([(0,I.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(18224),_=i(69494),B=i(85416),z=i(38654),F=i(63208),V=i(16754),j=i(17814),N=i(10984),U=i(80072),q=i(24627),H=i(23184),W=i(50565),K=i(99850),G=i(61200),Y=i(83192),X=i(40333),Q=i(97822);const Z=I.css`:host{display:inline-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}.button{display:inline-flex;align-items:center;justify-content:center}.button.pill::part(button){font-size:.875rem;padding-left:.75rem;padding-right:.75rem}.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);padding-right:4px}.separator{width:1px;height:.75rem;background-color:var(--floating-button-bar-secondary-color)}md-tooltip::part(tooltip_reference){display:flex;align-items:center}`;var J=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 tt=class extends I.LitElement{constructor(){super(...arguments),this.leadingLabel="",this.closeButtonAriaLabel="",this.showCloseButton=!0,this.actions=[]}static get styles(){return[Z]}onCancelButttonAction(){this.dispatchEvent(new CustomEvent("cancel-button-action",{composed:!0,bubbles:!0}))}get closeButtonTemplate(){return I.html`
|
|
2291
|
+
<md-tooltip
|
|
2292
|
+
message="${(0,Q.ifDefined)(this.closeButtonAriaLabel)}"
|
|
2293
|
+
?disabled=${!this.closeButtonAriaLabel}
|
|
2294
|
+
placement="top"
|
|
2295
|
+
>
|
|
2296
|
+
<md-button
|
|
2297
|
+
class="button cancel"
|
|
2298
|
+
circle
|
|
2299
|
+
size="20"
|
|
2300
|
+
variant="ghostInheritTextColor"
|
|
2301
|
+
ariaLabel=${(0,Q.ifDefined)(this.closeButtonAriaLabel)}
|
|
2302
|
+
@button-click=${()=>this.onCancelButttonAction()}
|
|
2303
|
+
>
|
|
2304
|
+
<md-icon slot="icon" iconSet="momentumDesign" name="cancel-bold" size="16"></md-icon>
|
|
2305
|
+
</md-button>
|
|
2306
|
+
</md-tooltip>
|
|
2307
|
+
`}getPrimaryLabelTemplate(t){return I.html` <span class="label primary">${t}</span> `}getSecondaryLabelTemplate(t){return I.html` <span class="label secondary">${t}</span> `}get separatorTemplate(){return I.html` <div class="separator"></div> `}getIconTemplate(t){return I.html`${t.icon?I.html`<md-icon slot="icon" iconSet="momentumDesign" name=${t.icon} size="16"></md-icon>`:X.nothing}`}getPillButtonTemplate(t){return I.html`
|
|
2308
|
+
<md-button class="button pill" size="24" variant="inverted-ghost" @button-click=${()=>t.action()}>
|
|
2309
|
+
${this.getIconTemplate(t)} ${this.getPrimaryLabelTemplate(t.label)}
|
|
2310
|
+
</md-button>
|
|
2311
|
+
`}getCircleButtonTemplate(t){return I.html`
|
|
2312
|
+
<md-button class="button" circle size="24" variant="inverted-secondary" @button-click=${()=>t.action()}>
|
|
2313
|
+
${this.getIconTemplate(t)}
|
|
2314
|
+
</md-button>
|
|
2315
|
+
`}getTooltipCircleButtonTemplate(t){return I.html`
|
|
2316
|
+
<md-tooltip message="${t.label}" placement="top"> ${this.getCircleButtonTemplate(t)} </md-tooltip>
|
|
2317
|
+
`}getActionAndLabelTemplate(t){var e;const i=null!==(e=t.iconAlign)&&void 0!==e?e:"right";return I.html`
|
|
2318
|
+
${"left"===i?I.html`${this.getCircleButtonTemplate(t)} ${this.getPrimaryLabelTemplate(t.label)}`:I.html`${this.getPrimaryLabelTemplate(t.label)} ${this.getCircleButtonTemplate(t)}`}
|
|
2319
|
+
`}getActionTemplate(t){return t.isIconOnly?this.getTooltipCircleButtonTemplate(t):this.getPillButtonTemplate(t)}getActionGroupTemplate(t){return I.html` ${this.separatorTemplate} ${t.actions.map((t=>this.getActionTemplate(t)))} `}render(){return I.html`
|
|
2320
|
+
${this.showCloseButton?this.closeButtonTemplate:X.nothing} ${this.getSecondaryLabelTemplate(this.leadingLabel)}
|
|
2321
|
+
${this.actions.map((t=>this.getActionGroupTemplate(t)))}
|
|
2322
|
+
`}};J([(0,I.property)({type:String})],tt.prototype,"leadingLabel",void 0),J([(0,I.property)({type:String})],tt.prototype,"closeButtonAriaLabel",void 0),J([(0,I.property)({type:Boolean})],tt.prototype,"showCloseButton",void 0),J([(0,I.property)({type:Array})],tt.prototype,"actions",void 0),tt=J([(0,I.customElement)("md-floating-button-bar")],tt);var et=i(58871),it=i(73093),st=i(97866),ot=i(69112),rt=i(20109),nt=i(52619),at=i(96408),lt=i(6396),dt=i(19026),ht=i(68490),pt=i(66245),ct=i(69788),ut=i(61997),mt=i(11323),yt=i(84032),bt=i(48171),vt=i(32252),gt=i(23026),ft=i(84205),wt=i(71128),Ct=i(15300),xt=i(58287),St=i(81144),$t=i(32217),Et=i(25428),Tt=i(12176),kt=i(77935),At=i(40428),Lt=i(16643),It=i(97737),Ot=i(50226),Mt=i(86610),Pt=i(1072),Dt=i(49256),Rt=i(20331),_t=i(81786),Bt=i(37719);class zt{constructor(){this.listeners=new Set}onChange(t){return this.listeners.add(t),{unsubscribe:()=>{this.listeners.delete(t)}}}emitChange(){for(const t of Array.from(this.listeners))t(this)}}class Ft extends zt{constructor(t,e=[]){super(),this.validationErrors=[],this.touched=!1,this.currentValue=t,this.validators=e,this.validate()}get value(){return this.currentValue}markAsTouched(){this.touched=!0,this.validate()}get valid(){return 0===this.validationErrors.length}get errors(){return this.touched?this.validationErrors:[]}setValue(t){this.currentValue=t,this.markAsTouched()}validate(){this.emitChange(),this.validationErrors=this.validators.map((t=>t(this.currentValue))).filter((t=>null!==t))}}class Vt extends zt{constructor(t){var e;super(),this.controls=t;for(const t of Object.keys(this.controls)){const i=this.controls[t];null===(e=i.onChange)||void 0===e||e.call(i,(()=>this.emitChange()))}}get(t){return this.controls[t]}get value(){const t={};for(const e in this.controls)t[e]=this.controls[e].value;return t}get valid(){return Object.values(this.controls).every((t=>t.valid))}validate(){for(const t of Object.values(this.controls))t.validate();this.emitChange()}markAllAsTouched(){Object.values(this.controls).forEach((t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)}))}}class jt extends zt{constructor(t){var e;super(),this.controls=t;for(const t of this.controls)null===(e=t.onChange)||void 0===e||e.call(t,(()=>this.emitChange()))}at(t){return this.controls[t]}push(t){var e;this.controls.push(t),null===(e=t.onChange)||void 0===e||e.call(t,(()=>this.emitChange())),this.emitChange()}removeAt(t){this.controls.splice(t,1),this.emitChange()}get value(){return this.controls.map((t=>t.value))}get valid(){return this.controls.every((t=>t.valid))}get length(){return this.controls.length}getControls(){return this.controls}validate(){this.controls.forEach((t=>t.validate())),this.emitChange()}markAllAsTouched(){this.controls.forEach((t=>{var e,i;null===(e=t.markAllAsTouched)||void 0===e||e.call(t),null===(i=t.markAsTouched)||void 0===i||i.call(t)}))}}const Nt={required:()=>t=>null==t||"string"==typeof t&&""===t.trim()?{type:"required"}:null,minLength:t=>e=>e.length<t?{type:"minLength",count:t}:null,maxLength:t=>e=>e.length>t?{type:"maxLength",count:t}:null}},80072:(t,e,i)=>{i.d(e,{Draggable:()=>s});var s,o=i(41488),r=i(41891),n=i.n(r),a=i(26272),l=i(6979),d=i(66677),h=i(3001),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,h.TS)(o.LitElement)){constructor(){super(...arguments),this.delay=0,this.animation=0,this.handle="",this.filter="",this.easing="",this.direction="vertical",this.group=null,this.draggableItems="md-draggable-item",this.ghostClass="",this.chosenClass="",this.dragClass="",this.fallbackClass="",this.swapThreshold=1,this.touchStartThreshold=0,this.forceFallback=!1,this.sort=!1,this.disabled=!1,this.editable=!1,this.sortableInstance=null,this.handleOnChange=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-change",t)},this.handleOnClone=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-clone",t)},this.handleOnUnchoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-unchoose",t)},this.handleOnRemove=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-remove",t)},this.handleOnAdd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-add",t)},this.handleOnChoose=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-choose",t)},this.handleOnEnd=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-end",t)},this.handleOnMove=(0,d.sg)((t=>{t.stopPropagation(),this.dispatchDragEvent("drag-move",t)}),100),this.handleOnStart=t=>{t.stopPropagation(),this.dispatchDragEvent("drag-start",t)}}static get styles(){return[a.A,l.A]}get slotElement(){return this.draggableSlot}generateOptions(){return Object.assign(Object.assign({},this.group&&{group:this.group}),{disabled:this.disabled,animation:this.animation,sort:this.sort,delay:this.delay,handle:this.handle,easing:this.easing,filter:this.filter,swapThreshold:this.swapThreshold,touchStartThreshold:this.touchStartThreshold,draggable:this.draggableItems,direction:this.direction,ghostClass:this.ghostClass,chosenClass:this.chosenClass,dragClass:this.dragClass,fallbackClass:this.fallbackClass,forceFallback:this.forceFallback,onStart:this.handleOnStart,onMove:this.handleOnMove,onEnd:this.handleOnEnd,onChoose:this.handleOnChoose,onAdd:this.handleOnAdd,onRemove:this.handleOnRemove,onUnchoose:this.handleOnUnchoose,onClone:this.handleOnClone,onChange:this.handleOnChange})}initializeSortable(){this.sortableInstance||(this.sortableInstance=n().create(this,this.generateOptions()))}dispatchDragEvent(t,e){this.dispatchEvent(new CustomEvent(t,{composed:!0,bubbles:!0,detail:{srcEvent:e}}))}cleanupSortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}connectedCallback(){super.connectedCallback(),this.initializeSortable()}disconnectedCallback(){super.disconnectedCallback(),this.cleanupSortable()}setSortableOption(t,e){this.sortableInstance&&void 0!==this.sortableInstance.option(t)&&this.sortableInstance.option(t,e)}updateSortableInstance(t){for(const e of t.keys()){const t=this[e];this.setSortableOption(e,t)}}updated(t){super.updated(t),this.updateSortableInstance(t)}slottedChanged(){this.initializeSortable()}render(){return o.html`
|
|
2323
2323
|
<div class="md-draggable" part="draggable" aria-disabled=${this.disabled}>
|
|
2324
2324
|
<slot name="draggable-item"></slot>
|
|
2325
2325
|
</div>
|
|
@@ -2366,7 +2366,7 @@
|
|
|
2366
2366
|
<slot></slot>
|
|
2367
2367
|
</ul>
|
|
2368
2368
|
</nav>
|
|
2369
|
-
`}};m([(0,h.property)({type:Boolean})],e.prototype,"justified",void 0),m([(0,h.property)({type:String})],e.prototype,"direction",void 0),m([(0,h.query)("slot")],e.prototype,"menuSlotElement",void 0),m([(0,h.query)("md-menu-overlay")],e.prototype,"menuSubElement",void 0),e=m([(0,r.w)("md-menu")],e),t.ELEMENT=e}(s||(s={}))},84157:t=>{t.exports=
|
|
2369
|
+
`}};m([(0,h.property)({type:Boolean})],e.prototype,"justified",void 0),m([(0,h.property)({type:String})],e.prototype,"direction",void 0),m([(0,h.query)("slot")],e.prototype,"menuSlotElement",void 0),m([(0,h.query)("md-menu-overlay")],e.prototype,"menuSubElement",void 0),e=m([(0,r.w)("md-menu")],e),t.ELEMENT=e}(s||(s={}))},84157:t=>{t.exports=m},84205:(t,e,i)=>{i.d(e,{PhoneInput:()=>s}),i(4928),i(96408);var s,o=i(31890),r=i(26272),n=i(860),a=i(41488),l=i(77833),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 a.LitElement{constructor(){super(...arguments),this.codePlaceholder="+1",this.numberPlaceholder="Enter Phone Number",this.countryCallingCode="",this.showFlags=!1,this.pill=!1,this.disabled=!1,this.value="",this.errorMessage="",this.showErrorMessage=!1,this.clearIconHeight="auto",this.countryCodeAriaLabel="",this.dialNumberAriaLabel="",this.clearAriaLabel="Clear Input",this.clearCountryCodeAriaLabel="Clear Country Code",this.id="",this.newMomentum=!1,this.countryCode="US",this.formattedValue="",this.isValid=!0}connectedCallback(){super.connectedCallback(),""===this.id&&(this.id=`md-phone-input-${Math.random().toString(36).substring(2,6)}`),this.validateInput(this.value)}validateNumber(){this.isValid=!this.value||(0,n.isValidNumberForRegion)(this.value,this.countryCode)}handleCountryChange(t){var e,i;const s=t.detail.srcEvent;s.detail.value&&(null===(e=s.detail.value)||void 0===e?void 0:e.id)?(this.countryCallingCode=s.detail.value.id,this.countryCode=null===(i=s.detail.value.id.split(",")[2])||void 0===i?void 0:i.trim()):(this.countryCode="US",this.countryCallingCode=""),this.validateNumber(),this.dispatchEvent(new CustomEvent("countrycode-change",{bubbles:!0,composed:!0,detail:{srcEvent:s,isValid:this.isValid}}))}handlePhoneChange(t){this.value=t.detail.value,t.stopPropagation(),this.dispatchEvent(new CustomEvent("phoneinput-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}handleKeydown(t){this.isValid=!0,t.stopPropagation(),this.dispatchEvent(new CustomEvent("phoneinput-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}handleBlur(t){this.validateInput(this.value),this.validateNumber(),t.stopPropagation(),this.removeCountryCode(),this.dispatchEvent(new CustomEvent("phoneinput-blur",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.countryCallingCode}${this.value}`,isValid:this.isValid,phoneNumber:this.value}}))}removeCountryCode(){var t;const e=null===(t=this.countryCallingCode.split(",")[0])||void 0===t?void 0:t.trim();if(this.value.startsWith(e)){const t=this.value.slice(e.length).replace(/^-/,"");this.value=t}}validateInput(t){this.formattedValue=new n.AsYouType(this.countryCode).input(t)}get flagClassMap(){return{"new-momentum":this.newMomentum}}static get styles(){return[r.A,l.A]}render(){return a.html`
|
|
2370
2370
|
<div class="md-phone-input__container">
|
|
2371
2371
|
<md-country-code-picker
|
|
2372
2372
|
part="md-country-code-picker"
|
|
@@ -2488,38 +2488,38 @@
|
|
|
2488
2488
|
${(0,h.Um)(this.quantity,this.isRestyle,this)}
|
|
2489
2489
|
</div>
|
|
2490
2490
|
</div>
|
|
2491
|
-
`}};u([(0,n.property)({type:String})],e.prototype,"mediaType",void 0),u([(0,n.property)({type:String})],e.prototype,"status",void 0),u([(0,n.property)({type:String})],e.prototype,"popovertitle",void 0),u([(0,n.property)({type:String})],e.prototype,"queue",void 0),u([(0,n.property)({type:String,attribute:"queue-time-label"})],e.prototype,"queueTimeLabel",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"accepted",void 0),u([(0,n.property)({type:Boolean,attribute:"display-only-title"})],e.prototype,"displayOnlyTitle",void 0),u([(0,n.property)({type:Number})],e.prototype,"quantity",void 0),u([(0,n.property)({type:String})],e.prototype,"lastmessage",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"selected",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,n.property)({type:String})],e.prototype,"customAriaLabel",void 0),u([(0,n.property)({type:String})],e.prototype,"iconSrc",void 0),u([(0,n.property)({type:String})],e.prototype,"tabIndexForContainer",void 0),u([(0,n.property)({type:Boolean,attribute:"is-restyle"})],e.prototype,"isRestyle",void 0),u([(0,n.property)({type:String,reflect:!0})],e.prototype,"title",null),u([(0,n.property)({type:String,reflect:!0,attribute:"item-title"})],e.prototype,"itemTitle",null),u([(0,n.internalProperty)()],e.prototype,"additionEmptyMargin",void 0),e=u([(0,o.w)("md-task-item")],e),t.ELEMENT=e}(s||(s={}))},86635:t=>{t.exports=l},90195:(t,e,i)=>{var s,o,r,n;i.d(e,{R5:()=>o,Uz:()=>s,iw:()=>n}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(s||(s={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(o||(o={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(n||(n={}))},90827:(t,e,i)=>{i.d(e,{CardV2:()=>
|
|
2491
|
+
`}};u([(0,n.property)({type:String})],e.prototype,"mediaType",void 0),u([(0,n.property)({type:String})],e.prototype,"status",void 0),u([(0,n.property)({type:String})],e.prototype,"popovertitle",void 0),u([(0,n.property)({type:String})],e.prototype,"queue",void 0),u([(0,n.property)({type:String,attribute:"queue-time-label"})],e.prototype,"queueTimeLabel",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"accepted",void 0),u([(0,n.property)({type:Boolean,attribute:"display-only-title"})],e.prototype,"displayOnlyTitle",void 0),u([(0,n.property)({type:Number})],e.prototype,"quantity",void 0),u([(0,n.property)({type:String})],e.prototype,"lastmessage",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"selected",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,n.property)({type:String})],e.prototype,"customAriaLabel",void 0),u([(0,n.property)({type:String})],e.prototype,"iconSrc",void 0),u([(0,n.property)({type:String})],e.prototype,"tabIndexForContainer",void 0),u([(0,n.property)({type:Boolean,attribute:"is-restyle"})],e.prototype,"isRestyle",void 0),u([(0,n.property)({type:String,reflect:!0})],e.prototype,"title",null),u([(0,n.property)({type:String,reflect:!0,attribute:"item-title"})],e.prototype,"itemTitle",null),u([(0,n.internalProperty)()],e.prototype,"additionEmptyMargin",void 0),e=u([(0,o.w)("md-task-item")],e),t.ELEMENT=e}(s||(s={}))},86635:t=>{t.exports=l},90195:(t,e,i)=>{var s,o,r,n;i.d(e,{R5:()=>o,Uz:()=>s,iw:()=>n}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(s||(s={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(o||(o={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(n||(n={}))},90827:(t,e,i)=>{i.d(e,{CardV2:()=>u}),i(96798),i(61200),i(83192);var s=i(31890),o=i(26272),r=i(41488),n=i(40333),a=i(23968),l=i(65796),d=i(52759),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};const p="hh:mm:ss";var c,u;!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(c||(c={})),function(t){let e=class extends r.LitElement{constructor(){super(...arguments),this.state=c.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.createdTime=0,this.active=!1,this.expandable=!1,this.expandAriaLabel="Expand for more details",this.renderedData=""}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.clearInterval()}clearInterval(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}static get styles(){return[o.A,d.A]}get isCardActive(){return this.state===c.ACTIVE}update(t){super.update(t),(t.has("active")||t.has("data")||t.has("createdTime"))&&this.calculateRenderedData()}expandCardToggled(){var t;this.state=this.isCardActive?c.DEFAULT:c.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isCardActive},bubbles:!0,composed:!0}))}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===c.INACTIVE}}get footerClassMap(){return{"md-card-v2-footer":!0,hidden:!this.expandable}}get expandCardHandler(){return this.expandable?this.expandCardToggled:null}renderHeader(){return r.html`
|
|
2492
2492
|
<div class="md-card-v2-header-title">
|
|
2493
2493
|
<h3>${this.header}</h3>
|
|
2494
|
-
${this.info?
|
|
2494
|
+
${this.info?r.html`
|
|
2495
2495
|
<md-tooltip message="${this.info}" placement="top">
|
|
2496
|
-
<md-button ariaLabel="${this.info}" size="20" variant="ghost" circle>
|
|
2496
|
+
<md-button ariaLabel="${this.header}, ${this.data}, ${this.info}" size="20" variant="ghost" circle>
|
|
2497
2497
|
<md-icon slot="icon" name="info-badge-filled" iconSet="momentumDesign"></md-icon>
|
|
2498
2498
|
</md-button>
|
|
2499
2499
|
</md-tooltip>
|
|
2500
|
-
`:
|
|
2500
|
+
`:n.nothing}
|
|
2501
2501
|
</div>
|
|
2502
|
-
`}renderFooter(){return
|
|
2503
|
-
<div class="${(0,
|
|
2504
|
-
<md-button ariaLabel="" circle size="28"
|
|
2502
|
+
`}renderFooter(){return r.html`
|
|
2503
|
+
<div class="${(0,a.classMap)(this.footerClassMap)}">
|
|
2504
|
+
<md-button ariaLabel="${this.expandAriaLabel}" circle size="28">
|
|
2505
2505
|
<md-icon
|
|
2506
2506
|
slot="icon"
|
|
2507
2507
|
iconSet="momentumDesign"
|
|
2508
|
-
name=${this.
|
|
2508
|
+
name=${this.isCardActive?"arrow-circle-up-bold":"arrow-circle-down-bold"}
|
|
2509
2509
|
size="18"
|
|
2510
2510
|
>
|
|
2511
2511
|
</md-icon>
|
|
2512
2512
|
</md-button>
|
|
2513
2513
|
</div>
|
|
2514
|
-
`}render(){return
|
|
2515
|
-
<div class="${(0,
|
|
2514
|
+
`}calculateRenderedData(){this.clearInterval(),!this.active&&this.data?this.renderedData=this.data:this.active&&this.createdTime>0&&(this.renderedData=l.Duration.fromMillis(Date.now()-this.createdTime).toFormat(p),this.interval=window.setInterval((()=>{this.renderedData=l.Duration.fromMillis(Date.now()-this.createdTime).toFormat(p)}),1e3))}render(){return r.html`
|
|
2515
|
+
<div class="${(0,a.classMap)(this.cardClassMap)}" @click=${this.expandCardHandler}>
|
|
2516
2516
|
<div class="md-card-v2-header">${this.renderHeader()}</div>
|
|
2517
|
-
<div class="${(0,
|
|
2518
|
-
<h2>${this.
|
|
2517
|
+
<div class="${(0,a.classMap)(this.contentClassMap)}">
|
|
2518
|
+
<h2>${this.renderedData}</h2>
|
|
2519
2519
|
</div>
|
|
2520
2520
|
${this.renderFooter()}
|
|
2521
2521
|
</div>
|
|
2522
|
-
`}};
|
|
2522
|
+
`}};h([(0,r.property)({type:String})],e.prototype,"state",void 0),h([(0,r.property)({type:String})],e.prototype,"identifier",void 0),h([(0,r.property)({type:String})],e.prototype,"header",void 0),h([(0,r.property)({type:String})],e.prototype,"info",void 0),h([(0,r.property)({type:String})],e.prototype,"data",void 0),h([(0,r.property)({type:Number})],e.prototype,"createdTime",void 0),h([(0,r.property)({type:Boolean})],e.prototype,"active",void 0),h([(0,r.property)({type:Boolean,reflect:!0})],e.prototype,"expandable",void 0),h([(0,r.property)({type:String,attribute:"expand-aria-label"})],e.prototype,"expandAriaLabel",void 0),h([(0,r.internalProperty)()],e.prototype,"interval",void 0),h([(0,r.internalProperty)()],e.prototype,"renderedData",void 0),e=h([(0,s.w)("md-card-v2")],e),t.ELEMENT=e}(u||(u={}))},92992:(t,e,i)=>{i.d(e,{Breadcrumb:()=>s});var s,o=i(31890),r=i(26272),n=i(41488),a=i(97822),l=i(22818),d=i(46441),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.label="Breadcrumb",this.navCrumbs=[]}static get styles(){return[r.A,d.A]}setLastAnchorCurrent(){var t;(null===(t=this.anchors)||void 0===t?void 0:t.length)&&this.anchors[this.anchors.length-1].setAttribute("aria-current","page")}firstUpdated(t){super.firstUpdated(t),this.setLastAnchorCurrent()}update(t){super.update(t),t.has("navCrumbs")&&this.setLastAnchorCurrent()}handleClick(t){var e;const i=t.target;if(null===(e=this.anchors)||void 0===e?void 0:e.length){const t=Array.from(this.anchors).indexOf(i);-1!==t&&(this.navCrumbs=[...this.navCrumbs.splice(0,t+1)])}}render(){return n.html`
|
|
2523
2523
|
<nav aria-label="${(0,a.ifDefined)(this.label?this.label:void 0)}" class="md-breadcrumb">
|
|
2524
2524
|
<ul @click=${t=>this.handleClick(t)}>
|
|
2525
2525
|
${(0,l.repeat)(this.navCrumbs,(t=>t.link),(t=>n.html`
|
|
@@ -2569,7 +2569,7 @@
|
|
|
2569
2569
|
</div>
|
|
2570
2570
|
</div>
|
|
2571
2571
|
</div>
|
|
2572
|
-
`}};d([(0,n.property)({type:String})],e.prototype,"title",void 0),d([(0,n.property)({type:String})],e.prototype,"src",void 0),d([(0,n.property)({type:String})],e.prototype,"time",void 0),d([(0,n.property)({type:String})],e.prototype,"label",void 0),d([(0,n.property)({type:String})],e.prototype,"status",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"clickableTimestamp",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"self-label"})],e.prototype,"selfLabel",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"self",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"avatar-color"})],e.prototype,"avatarColor",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"avatar-type"})],e.prototype,"avatarType",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"avatar-size"})],e.prototype,"avatarSize",void 0),e=d([(0,o.w)("md-chat-message")],e),t.ELEMENT=e}(s||(s={}))},96408:(t,e,i)=>{i.d(e,{Input:()=>s}),i(20109),i(61200),i(6396),i(12176);var s,o=i(90195),r=i(31890),n=i(32972),a=i(26272),l=(i(32022),i(41488)),d=i(40333),h=i(23968),p=i(97822),c=i(22818),u=i(8229),m=i(21572),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};!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,n.y)(l.LitElement)){constructor(){super(...arguments),this.ariaDescribedBy="",this.ariaInvalid="false",this.ariaLabel="input",this.autofocus=!1,this.auxiliaryContentPosition=null,this.clear=!1,this.clearAriaLabel="",this.compact=!1,this.containerSize="small-12",this.disabled=!1,this.id="",this.inputSize="",this.isFilled=!1,this.isLoading=!1,this.label="",this.helpText="",this.hideMessage=!1,this.htmlId="",this.role="",this.messageArr=[],this.min=void 0,this.max=void 0,this.maxLength=void 0,this.multi=!1,this.multiline=!1,this.name="",this.nestedLevel=0,this.placeholder="",this.readOnly=!1,this.required=!1,this.searchable=!1,this.secondaryLabel="",this.selectWhenInFocus=!1,this.shape="",this.type="text",this.value="",this.ariaControls="",this.ariaExpanded="",this.newMomentum=!1,this.isEditing=!1,this.hasRightSlotContent=!1,this.messageController=new e}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}select(){this.input.select()}handleOutsideClick(t){let e=!1;const i=t.composedPath();i.length&&(e=!!i.find((t=>t===this)),e||(this.input.blur(),this.isEditing=!1))}handleKeyDown(t){this.dispatchEvent(new CustomEvent("input-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleFocus(t){this.disabled||(this.isEditing=!0,this.selectWhenInFocus&&this.select(),this.dispatchEvent(new CustomEvent("input-focus",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleMouseDown(t){this.disabled||(this.isEditing=!0,this.dispatchEvent(new CustomEvent("input-mousedown",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleChange(t){this.value=t.target.value,this.dispatchEvent(new CustomEvent("input-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:this.value}}))}handleBlur(t){this.isEditing=!1,this.dispatchEvent(new CustomEvent("input-blur",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleClear(t){if("keydown"===t.type){const{code:e}=t;if(e!==o.Uz.Space&&e!==o.Uz.Enter)return;t.preventDefault(),t.stopPropagation()}else"click"===t.type&&(t.preventDefault(),t.stopPropagation());this.input.focus(),this.dispatchEvent(new CustomEvent("input-clear",{bubbles:!0,composed:!0,detail:{srcEvent:t}})),document.dispatchEvent(new CustomEvent("on-widget-update")),this.handleChange(t)}handleLabelClick(){this.input.focus()}handleRighSlotChange(){var t;this.hasRightSlotContent=(null===(t=this.inputSectionRightSlot)||void 0===t?void 0:t.assignedNodes().length)>0}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}get inputClassMap(){return{"md-input--filled":this.isFilled,colums:!!this.containerSize,[`${this.containerSize}`]:!!this.containerSize,"md-read-only":this.readOnly,"md-disabled":this.disabled,[`md-${this.messageType}`]:!!this.messageType,[`md-input--nested-${this.nestedLevel}`]:!!this.nestedLevel,"md-multi":this.multi,"md-new-momentum":this.newMomentum}}get inputWrapperClassMap(){return{columns:!!this.inputSize,[`${this.inputSize}`]:!!this.inputSize}}get inputTemplateClassMap(){return{"md-input--multiline":this.multiline,"md-input--multi":this.multi,[`md-input--${this.shape}`]:!!this.shape,"md-input--compact":this.compact,"md-input--before":"before"===this.auxiliaryContentPosition||this.searchable,"md-input--after":"after"===this.auxiliaryContentPosition,"md-active":this.isEditing,"md-focus":this.isEditing,"md-read-only":this.readOnly,"md-disabled":this.disabled,"md-dirty":!!this.value,"md-has-right-icon":this.hasRightIcon}}get ariaExpandedValue(){return"true"===this.ariaExpanded||"false"===this.ariaExpanded?this.ariaExpanded:"undefined"}get hasRightIcon(){return!(!this.clear||this.disabled||!this.value||this.readOnly)||!this.compact&&this.hasRightSlotContent}inputTemplate(){var t;return this.multiline?l.html`
|
|
2572
|
+
`}};d([(0,n.property)({type:String})],e.prototype,"title",void 0),d([(0,n.property)({type:String})],e.prototype,"src",void 0),d([(0,n.property)({type:String})],e.prototype,"time",void 0),d([(0,n.property)({type:String})],e.prototype,"label",void 0),d([(0,n.property)({type:String})],e.prototype,"status",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"clickableTimestamp",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"self-label"})],e.prototype,"selfLabel",void 0),d([(0,n.property)({type:Boolean})],e.prototype,"self",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"avatar-color"})],e.prototype,"avatarColor",void 0),d([(0,n.property)({type:String,reflect:!0,attribute:"avatar-type"})],e.prototype,"avatarType",void 0),d([(0,n.property)({type:Number,reflect:!0,attribute:"avatar-size"})],e.prototype,"avatarSize",void 0),e=d([(0,o.w)("md-chat-message")],e),t.ELEMENT=e}(s||(s={}))},96408:(t,e,i)=>{i.d(e,{Input:()=>s}),i(20109),i(61200),i(6396),i(12176);var s,o=i(90195),r=i(31890),n=i(32972),a=i(26272),l=(i(32022),i(41488)),d=i(40333),h=i(23968),p=i(97822),c=i(22818),u=i(8229),m=i(21572),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};!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,n.y)(l.LitElement)){constructor(){super(...arguments),this.ariaDescribedBy="",this.ariaInvalid="false",this.ariaLabel="input",this.autofocus=!1,this.auxiliaryContentPosition=null,this.clear=!1,this.clearAriaLabel="",this.compact=!1,this.containerSize="small-12",this.disabled=!1,this.id="",this.inputSize="",this.isFilled=!1,this.isLoading=!1,this.label="",this.helpText="",this.hideMessage=!1,this.htmlId="",this.role="",this.messageArr=[],this.min=void 0,this.max=void 0,this.maxLength=void 0,this.multi=!1,this.multiline=!1,this.name="",this.nestedLevel=0,this.placeholder="",this.readOnly=!1,this.required=!1,this.searchable=!1,this.secondaryLabel="",this.selectWhenInFocus=!1,this.shape="",this.type="text",this.value="",this.ariaControls="",this.ariaExpanded="",this.newMomentum=!1,this.isEditing=!1,this.hasRightSlotContent=!1,this.messageController=new e}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideClick)}select(){this.input.select()}handleOutsideClick(t){let e=!1;const i=t.composedPath();i.length&&(e=!!i.find((t=>t===this)),e||(this.input.blur(),this.isEditing=!1))}handleKeyDown(t){this.dispatchEvent(new CustomEvent("input-keydown",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleFocus(t){this.disabled||(this.isEditing=!0,this.selectWhenInFocus&&this.select(),this.dispatchEvent(new CustomEvent("input-focus",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleMouseDown(t){this.disabled||(this.isEditing=!0,this.dispatchEvent(new CustomEvent("input-mousedown",{bubbles:!0,composed:!0,detail:{srcEvent:t}})))}handleChange(t){var e;this.value=t.target.value,null===(e=this.control)||void 0===e||e.setValue(this.value),this.dispatchEvent(new CustomEvent("input-change",{bubbles:!0,composed:!0,detail:{srcEvent:t,value:this.value}}))}handleBlur(t){var e;null===(e=this.control)||void 0===e||e.markAsTouched(),this.isEditing=!1,this.dispatchEvent(new CustomEvent("input-blur",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}handleClear(t){if("keydown"===t.type){const{code:e}=t;if(e!==o.Uz.Space&&e!==o.Uz.Enter)return;t.preventDefault(),t.stopPropagation()}else"click"===t.type&&(t.preventDefault(),t.stopPropagation());this.input.focus(),this.dispatchEvent(new CustomEvent("input-clear",{bubbles:!0,composed:!0,detail:{srcEvent:t}})),document.dispatchEvent(new CustomEvent("on-widget-update")),this.handleChange(t)}handleLabelClick(){this.input.focus()}handleRighSlotChange(){var t;this.hasRightSlotContent=(null===(t=this.inputSectionRightSlot)||void 0===t?void 0:t.assignedNodes().length)>0}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}get inputClassMap(){return{"md-input--filled":this.isFilled,colums:!!this.containerSize,[`${this.containerSize}`]:!!this.containerSize,"md-read-only":this.readOnly,"md-disabled":this.disabled,[`md-${this.messageType}`]:!!this.messageType,[`md-input--nested-${this.nestedLevel}`]:!!this.nestedLevel,"md-multi":this.multi,"md-new-momentum":this.newMomentum}}get inputWrapperClassMap(){return{columns:!!this.inputSize,[`${this.inputSize}`]:!!this.inputSize}}get inputTemplateClassMap(){return{"md-input--multiline":this.multiline,"md-input--multi":this.multi,[`md-input--${this.shape}`]:!!this.shape,"md-input--compact":this.compact,"md-input--before":"before"===this.auxiliaryContentPosition||this.searchable,"md-input--after":"after"===this.auxiliaryContentPosition,"md-active":this.isEditing,"md-focus":this.isEditing,"md-read-only":this.readOnly,"md-disabled":this.disabled,"md-dirty":!!this.value,"md-has-right-icon":this.hasRightIcon}}get ariaExpandedValue(){return"true"===this.ariaExpanded||"false"===this.ariaExpanded?this.ariaExpanded:"undefined"}get hasRightIcon(){return!(!this.clear||this.disabled||!this.value||this.readOnly)||!this.compact&&this.hasRightSlotContent}inputTemplate(){var t;return this.multiline?l.html`
|
|
2573
2573
|
<textarea
|
|
2574
2574
|
part="input"
|
|
2575
2575
|
class="md-input ${(0,h.classMap)(this.inputTemplateClassMap)}"
|
|
@@ -2692,7 +2692,7 @@
|
|
|
2692
2692
|
</div>
|
|
2693
2693
|
${this.messagesTemplate()} ${this.secondaryLabelTemplate()} ${this.helpTextTemplate()}
|
|
2694
2694
|
</div>
|
|
2695
|
-
`}};y([(0,l.property)({type:String})],i.prototype,"ariaDescribedBy",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"ariaInvalid",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaLabel",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,l.property)({type:String})],i.prototype,"auxiliaryContentPosition",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"clear",void 0),y([(0,l.property)({type:String})],i.prototype,"clearAriaLabel",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"compact",void 0),y([(0,l.property)({type:String})],i.prototype,"containerSize",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"disabled",void 0),y([(0,l.property)({type:String})],i.prototype,"id",void 0),y([(0,l.property)({type:String})],i.prototype,"inputSize",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"isFilled",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"isLoading",void 0),y([(0,l.property)({type:String})],i.prototype,"label",void 0),y([(0,l.property)({type:String})],i.prototype,"helpText",void 0),y([(0,l.property)({type:Boolean,attribute:"hide-message",reflect:!0})],i.prototype,"hideMessage",void 0),y([(0,l.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,l.property)({type:String})],i.prototype,"role",void 0),y([(0,l.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,l.property)({type:Number,reflect:!0})],i.prototype,"min",void 0),y([(0,l.property)({type:Number,reflect:!0})],i.prototype,"max",void 0),y([(0,l.property)({type:Number})],i.prototype,"maxLength",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"multi",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"multiline",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"name",void 0),y([(0,l.property)({type:Number})],i.prototype,"nestedLevel",void 0),y([(0,l.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"readOnly",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"required",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"searchable",void 0),y([(0,l.property)({type:String})],i.prototype,"secondaryLabel",void 0),y([(0,l.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),y([(0,l.property)({type:String})],i.prototype,"shape",void 0),y([(0,l.property)({type:String})],i.prototype,"type",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"value",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaControls",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaExpanded",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,l.query)(".md-input")],i.prototype,"input",void 0),y([(0,l.internalProperty)()],i.prototype,"isEditing",void 0),y([(0,l.query)('slot[name="input-section-right"]')],i.prototype,"inputSectionRightSlot",void 0),y([(0,l.internalProperty)()],i.prototype,"hasRightSlotContent",void 0),i=y([(0,r.w)("md-input")],i),t.ELEMENT=i}(s||(s={}))},96798:(t,e,i)=>{i.d(e,{Button:()=>s});var s,o=i(73940),r=(i(12176),i(31890)),n=i(26283),a=i(26272),l=i(41488),d=i(40333),h=i(23968),p=i(97822),c=i(11740),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 l.LitElement{constructor(){super(...arguments),this._active=!1,this._tabIndex=0,this.ariaLabel="",this.ariaLabelledBy="",this.ariaLive="",this.ariaExpanded="",this.ariaHaspopup="false",this.ariaPressed="",this.circle=!1,this.rounded=!1,this.color="",this.containerLarge=!1,this.disabled=!1,this.href="",this.id="",this.value="",this.keyboardKey="",this.label="",this.loading=!1,this.outline=!1,this.hasRemoveStyle=!1,this.size="32",this.tag="button",this.type="button",this.role="button",this.variant="secondary",this.width="",this.maxWidth="",this.activityType="",this.iconActive=!1,this.isActive=!1,this.renderWidth=()=>this.width?`width: ${this.width};`:d.nothing,this.renderMaxWidth=()=>this.maxWidth?`max-width: ${this.maxWidth};`:d.nothing,this.getStyles=()=>{if(this.width||this.maxWidth)return l.html`
|
|
2695
|
+
`}};y([(0,l.property)({type:String})],i.prototype,"ariaDescribedBy",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"ariaInvalid",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaLabel",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,l.property)({type:String})],i.prototype,"auxiliaryContentPosition",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"clear",void 0),y([(0,l.property)({type:String})],i.prototype,"clearAriaLabel",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"compact",void 0),y([(0,l.property)({type:String})],i.prototype,"containerSize",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"disabled",void 0),y([(0,l.property)({type:String})],i.prototype,"id",void 0),y([(0,l.property)({type:String})],i.prototype,"inputSize",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"isFilled",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"isLoading",void 0),y([(0,l.property)({type:String})],i.prototype,"label",void 0),y([(0,l.property)({type:String})],i.prototype,"helpText",void 0),y([(0,l.property)({type:Boolean,attribute:"hide-message",reflect:!0})],i.prototype,"hideMessage",void 0),y([(0,l.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,l.property)({type:String})],i.prototype,"role",void 0),y([(0,l.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,l.property)({type:Number,reflect:!0})],i.prototype,"min",void 0),y([(0,l.property)({type:Number,reflect:!0})],i.prototype,"max",void 0),y([(0,l.property)({type:Number})],i.prototype,"maxLength",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"multi",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"multiline",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"name",void 0),y([(0,l.property)({type:Number})],i.prototype,"nestedLevel",void 0),y([(0,l.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"readOnly",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"required",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"searchable",void 0),y([(0,l.property)({type:String})],i.prototype,"secondaryLabel",void 0),y([(0,l.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),y([(0,l.property)({type:String})],i.prototype,"shape",void 0),y([(0,l.property)({type:String})],i.prototype,"type",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"value",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaControls",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaExpanded",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,l.property)({type:Object})],i.prototype,"control",void 0),y([(0,l.query)(".md-input")],i.prototype,"input",void 0),y([(0,l.internalProperty)()],i.prototype,"isEditing",void 0),y([(0,l.query)('slot[name="input-section-right"]')],i.prototype,"inputSectionRightSlot",void 0),y([(0,l.internalProperty)()],i.prototype,"hasRightSlotContent",void 0),i=y([(0,r.w)("md-input")],i),t.ELEMENT=i}(s||(s={}))},96798:(t,e,i)=>{i.d(e,{Button:()=>s});var s,o=i(73940),r=(i(12176),i(31890)),n=i(26283),a=i(26272),l=i(41488),d=i(40333),h=i(23968),p=i(97822),c=i(11740),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 l.LitElement{constructor(){super(...arguments),this._active=!1,this._tabIndex=0,this.ariaLabel="",this.ariaLabelledBy="",this.ariaLive="",this.ariaExpanded="",this.ariaHaspopup="false",this.ariaPressed="",this.circle=!1,this.rounded=!1,this.color="",this.containerLarge=!1,this.disabled=!1,this.href="",this.id="",this.value="",this.keyboardKey="",this.label="",this.loading=!1,this.outline=!1,this.hasRemoveStyle=!1,this.size="32",this.tag="button",this.type="button",this.role="button",this.variant="secondary",this.width="",this.maxWidth="",this.activityType="",this.iconActive=!1,this.isActive=!1,this.renderWidth=()=>this.width?`width: ${this.width};`:d.nothing,this.renderMaxWidth=()=>this.maxWidth?`max-width: ${this.maxWidth};`:d.nothing,this.getStyles=()=>{if(this.width||this.maxWidth)return l.html`
|
|
2696
2696
|
<style>
|
|
2697
2697
|
:host .md-button--${this.size} {
|
|
2698
2698
|
${this.renderWidth()};
|
|
@@ -2808,4 +2808,4 @@
|
|
|
2808
2808
|
size="16"
|
|
2809
2809
|
></md-icon>
|
|
2810
2810
|
</label>
|
|
2811
|
-
`}};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,6753:0,6754:0,6798:0,6834:0,6920:0,7119: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};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,[4288,7103,1890,6272,6325,6283,9217,5830,8889,8210,4977,3135,1598,1572,6366,7251,4974,2243,7919,3553,6877,6700,6795,8923,4548,76,1392,9164,8004,1214,1625,3625,6067,8841,3112,3866,1107,7330,7092,9719,6979,9130,6273,9618,8612,8521,2019,779,573,5801,2043,8171,2798,5467,2984,1869,2215,4392,630,3604,8728,8227,1250,1705,7997,6953,7875,7833,6400,587,6441,6015,3663],(()=>U(
|
|
2811
|
+
`}};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,6753:0,6754:0,6798:0,6834:0,6920:0,7119: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};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,[4288,7103,1890,6272,6325,6283,9217,5830,8889,8210,4977,3135,1598,1572,6366,7251,4974,2243,7919,3553,6877,6700,6795,8923,4548,76,1392,9164,8004,1214,1625,3625,6067,8841,3112,3866,1107,7330,7092,9719,6979,9130,6273,9618,8612,8521,2019,779,573,5801,2043,8171,2798,5467,2984,1869,2215,4392,630,3604,8728,8227,1250,1705,7997,6953,7875,7833,6400,587,6441,6015,3663],(()=>U(77999)));return U.O(q)})()));
|