@momentum-ui/web-components 2.20.0 → 2.21.0-dev
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/1200.js +1 -1
- package/dist/1323.js +2 -2
- package/dist/4367.js +1 -1
- package/dist/6248.js +1 -1
- package/dist/6283.js +1 -0
- package/dist/6652.js +1 -1
- package/dist/76.js +1 -1
- package/dist/9058.js +1 -1
- package/dist/{6875.js → 9217.js} +1 -1
- package/dist/comp/md-accordion-item-entry.js +2 -2
- package/dist/comp/md-accordion-item.js +1 -1
- package/dist/comp/md-activity-button-entry.js +2 -2
- package/dist/comp/md-activity-button.js +1 -1
- package/dist/comp/md-alert-banner-entry.js +5 -5
- package/dist/comp/md-alert-banner.js +1 -1
- package/dist/comp/md-alert-entry.js +29 -29
- package/dist/comp/md-alert.js +1 -1
- package/dist/comp/md-audio-player-entry.js +4 -4
- package/dist/comp/md-audio-player.js +1 -1
- package/dist/comp/md-avatar-entry.js +2 -2
- package/dist/comp/md-avatar.js +1 -1
- package/dist/comp/md-button-entry.js +1 -1
- package/dist/comp/md-button.js +1 -1
- package/dist/comp/md-card-ai-entry.js +4 -4
- package/dist/comp/md-card-ai.js +1 -1
- package/dist/comp/md-card-entry.js +5 -5
- package/dist/comp/md-card-v2-entry.js +6 -6
- package/dist/comp/md-card-v2.js +1 -1
- package/dist/comp/md-card.js +1 -1
- package/dist/comp/md-chat-message-entry.js +2 -2
- package/dist/comp/md-chat-message.js +1 -1
- package/dist/comp/md-coachmark-entry.js +1 -1
- package/dist/comp/md-coachmark-popover-entry.js +3 -3
- package/dist/comp/md-coachmark-popover.js +1 -1
- package/dist/comp/md-coachmark.js +1 -1
- package/dist/comp/md-combobox-entry.js +2 -2
- package/dist/comp/md-combobox.js +1 -1
- package/dist/comp/md-date-range-picker-entry.js +1 -1
- package/dist/comp/md-date-range-picker.js +1 -1
- package/dist/comp/md-date-time-picker-entry.js +2 -2
- package/dist/comp/md-date-time-picker.js +1 -1
- package/dist/comp/md-datepicker-calendar-entry.js +9 -9
- package/dist/comp/md-datepicker-calendar.js +1 -1
- package/dist/comp/md-datepicker-day-entry.js +1 -1
- package/dist/comp/md-datepicker-day.js +1 -1
- package/dist/comp/md-datepicker-entry.js +2 -2
- package/dist/comp/md-datepicker-month-entry.js +1 -1
- package/dist/comp/md-datepicker-month.js +1 -1
- package/dist/comp/md-datepicker-week-entry.js +1 -1
- package/dist/comp/md-datepicker-week.js +1 -1
- package/dist/comp/md-datepicker.js +1 -1
- package/dist/comp/md-dropdown-entry.js +2 -2
- package/dist/comp/md-dropdown.js +1 -1
- package/dist/comp/md-editable-field-entry.js +3 -3
- package/dist/comp/md-editable-field.js +1 -1
- package/dist/comp/md-favorite-entry.js +2 -2
- package/dist/comp/md-favorite.js +1 -1
- package/dist/comp/md-floating-minimize-entry.js +5 -5
- package/dist/comp/md-floating-minimize.js +1 -1
- package/dist/comp/md-floating-modal-entry.js +3 -3
- package/dist/comp/md-floating-modal.js +1 -1
- package/dist/comp/md-grabber-entry.js +2 -2
- package/dist/comp/md-grabber.js +1 -1
- package/dist/comp/md-icon-entry.js +2 -2
- package/dist/comp/md-icon.js +1 -1
- package/dist/comp/md-inpu.js +1 -1
- package/dist/comp/md-input-entry.js +2 -2
- package/dist/comp/md-input-file.js +1 -1
- package/dist/comp/md-input.js +1 -1
- package/dist/comp/md-meeting-alert-entry.js +11 -11
- package/dist/comp/md-meeting-alert.js +1 -1
- package/dist/comp/md-menu-overlay-entry.js +5 -5
- package/dist/comp/md-menu-overlay.js +1 -1
- package/dist/comp/md-modal-entry.js +2 -2
- package/dist/comp/md-modal.js +1 -1
- package/dist/comp/md-pagination-entry.js +9 -9
- package/dist/comp/md-pagination.js +1 -1
- package/dist/comp/md-phone-input-entry.js +4 -4
- package/dist/comp/md-phone-input.js +1 -1
- package/dist/comp/md-popover-entry.js +6 -6
- package/dist/comp/md-popover.js +1 -1
- package/dist/comp/md-tab-entry.js +12 -18
- package/dist/comp/md-tab-panel-entry.js +1 -1
- package/dist/comp/md-tab.js +1 -1
- package/dist/comp/md-table-advanced-entry.js +5 -5
- package/dist/comp/md-table-advanced.js +1 -1
- package/dist/comp/md-table-entry.js +2 -2
- package/dist/comp/md-table.js +1 -1
- package/dist/comp/md-tabs-entry.js +94 -95
- package/dist/comp/md-tabs.js +1 -1
- package/dist/comp/md-task-item-entry.js +8 -8
- package/dist/comp/md-task-item.js +1 -1
- package/dist/comp/md-timepicker-entry.js +2 -2
- package/dist/comp/md-timepicker.js +1 -1
- package/dist/index-entry.js +127 -128
- package/dist/index.js +1 -1
- package/dist/types/components/combobox/ComboBox.d.ts +1 -1
- package/dist/types/components/icon/Icon.d.ts +1 -0
- package/dist/types/components/menu-overlay/MenuOverlay.d.ts +1 -0
- package/dist/types/components/tabs/Tab.d.ts +6 -2
- package/dist/types/components/tabs/TabPanel.d.ts +1 -0
- package/dist/types/components/tabs/Tabs.d.ts +7 -2
- package/dist/types/utils/helpers.d.ts +1 -0
- package/package.json +4 -5
|
@@ -19,4 +19,4 @@
|
|
|
19
19
|
<slot></slot>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
22
|
-
`}};p([(0,c.property)({type:String})],t.prototype,"message",void 0),p([(0,c.property)({type:String})],t.prototype,"actionname",void 0),p([(0,c.property)({type:Boolean})],t.prototype,"hidebutton",void 0),p([(0,c.property)({type:String})],t.prototype,"placement",void 0),p([(0,c.property)({type:Boolean})],t.prototype,"show",void 0),p([(0,c.property)({type:String})],t.prototype,"color",void 0),p([(0,c.query)(".md-coachmark__popper")],t.prototype,"popper",void 0),p([(0,c.query)(".md-coachmark__reference")],t.prototype,"reference",void 0),t=p([(0,a.w)("md-coachmark")],t),e.ELEMENT=t}(h||(h={}))},97822:e=>{e.exports=a}},c={};function l(e){var t=c[e];if(void 0!==t)return t.exports;var o=c[e]={exports:{}};return s[e](o,o.exports,l),o.exports}l.m=s,i=[],l.O=(e,t,o,r)=>{if(!t){var a=1/0;for(p=0;p<i.length;p++){for(var[t,o,r]=i[p],s=!0,c=0;c<t.length;c++)(!1&r||a>=r)&&Object.keys(l.O).every((e=>l.O[e](t[c])))?t.splice(c--,1):(s=!1,r<a&&(a=r));if(s){i.splice(p--,1);var n=o();void 0!==n&&(e=n)}}return e}r=r||0;for(var p=i.length;p>0&&i[p-1][2]>r;p--)i[p]=i[p-1];i[p]=[t,o,r]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={2779:0};l.O.j=t=>0===e[t];var t=(t,o)=>{var r,a,[i,s,c]=o,n=0;if(i.some((t=>0!==e[t]))){for(r in s)l.o(s,r)&&(l.m[r]=s[r]);if(c)var p=c(l)}for(t&&t(o);n<i.length;n++)a=i[n],l.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return l.O(p)},o=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var n=l.O(void 0,[1890,6272,6325,
|
|
22
|
+
`}};p([(0,c.property)({type:String})],t.prototype,"message",void 0),p([(0,c.property)({type:String})],t.prototype,"actionname",void 0),p([(0,c.property)({type:Boolean})],t.prototype,"hidebutton",void 0),p([(0,c.property)({type:String})],t.prototype,"placement",void 0),p([(0,c.property)({type:Boolean})],t.prototype,"show",void 0),p([(0,c.property)({type:String})],t.prototype,"color",void 0),p([(0,c.query)(".md-coachmark__popper")],t.prototype,"popper",void 0),p([(0,c.query)(".md-coachmark__reference")],t.prototype,"reference",void 0),t=p([(0,a.w)("md-coachmark")],t),e.ELEMENT=t}(h||(h={}))},97822:e=>{e.exports=a}},c={};function l(e){var t=c[e];if(void 0!==t)return t.exports;var o=c[e]={exports:{}};return s[e](o,o.exports,l),o.exports}l.m=s,i=[],l.O=(e,t,o,r)=>{if(!t){var a=1/0;for(p=0;p<i.length;p++){for(var[t,o,r]=i[p],s=!0,c=0;c<t.length;c++)(!1&r||a>=r)&&Object.keys(l.O).every((e=>l.O[e](t[c])))?t.splice(c--,1):(s=!1,r<a&&(a=r));if(s){i.splice(p--,1);var n=o();void 0!==n&&(e=n)}}return e}r=r||0;for(var p=i.length;p>0&&i[p-1][2]>r;p--)i[p]=i[p-1];i[p]=[t,o,r]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={2779:0};l.O.j=t=>0===e[t];var t=(t,o)=>{var r,a,[i,s,c]=o,n=0;if(i.some((t=>0!==e[t]))){for(r in s)l.o(s,r)&&(l.m[r]=s[r]);if(c)var p=c(l)}for(t&&t(o);n<i.length;n++)a=i[n],l.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return l.O(p)},o=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var n=l.O(void 0,[1890,6272,6325,6283,9217,2176,6798,8889,300,2576,4624,591,768,3135,9058,2043,7763],(()=>l(46312)));return l.O(n)})()));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(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("@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(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("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit-html/directives/if-defined.js"),require("@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"));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","@popperjs/core/lib/modifiers/arrow","@popperjs/core/lib/modifiers/flip","@popperjs/core/lib/modifiers/offset","@popperjs/core/lib/modifiers/preventOverflow","@popperjs/core/lib/popper-lite","lit-html/directives/if-defined.js","@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg","@momentum-design/brand-visuals/dist/logos/svg/social-x.svg","@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg","@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg","@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"],t);else{var o="object"==typeof exports?t(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("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("lit-html/directives/if-defined.js"),require("@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg")):t(e["lit-element"],e["lit-html/directives/style-map"],e["lit-html"],e["lit-html/directives/class-map"],e["lit-html/directives/if-defined"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e["@popperjs/core/lib/modifiers/arrow"],e["@popperjs/core/lib/modifiers/flip"],e["@popperjs/core/lib/modifiers/offset"],e["@popperjs/core/lib/modifiers/preventOverflow"],e["@popperjs/core/lib/popper-lite"],e["lit-html/directives/if-defined.js"],e["@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"]);for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,((e,t,o,i,s,r,n,l,a,d,p,c,u,m,v,g,h,f,b,y,O,E,w,C,q,x,k)=>(()=>{"use strict";var j,T,L,P={4863:e=>{e.exports=c},8229:e=>{e.exports=t},8827:e=>{e.exports=C},9614:e=>{e.exports=w},15553:e=>{e.exports=y},17874:e=>{e.exports=x},22962:e=>{e.exports=l},23035:e=>{e.exports=k},23968:e=>{e.exports=i},29895:(e,t,o)=>{o.r(t),o.d(t,{CoachmarkPopover:()=>i}),o(96798),o(61200),o(71128);var i,s=o(31890),r=o(26272),n=o(41488),l=o(23968),a=o(40587),d=function(e,t,o,i){var s,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(n=(r<3?s(n):r>3?s(t,o,n):s(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n};!function(e){let t=class extends n.LitElement{constructor(){super(...arguments),this.placement="bottom",this.headerIconName=void 0,this.header=void 0,this.message=void 0,this.show=!1,this.hideCloseButton=!1,this.href="",this.slotContent=null}static get styles(){return[r.A,a.A]}connectedCallback(){super.connectedCallback()}notifyCustomEvent(e){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,detail:{placement:this.placement,triggerComponent:this.triggerComponent,popper:this.popper}}))}notifyCoachCreate(){this.notifyCustomEvent("coach-create")}notifyPrimaryButtonAction(){this.notifyCustomEvent("primary-button-action")}notifySecondaryButtonAction(){this.notifyCustomEvent("secondary-button-action")}notifyLinkAction(){this.notifyCustomEvent("link-action")}notifyCoachClose(){this.notifyCustomEvent("coachmark-close")}handleSlotChange(e){const t=e.target;if(t){const e=t.assignedElements({flatten:!0});e.length&&(this.slotContent=e)}}updated(e){super.updated(e),e.has("show")&&(this.show?this.notifyCoachCreate():this.notifyCoachClose())}coachmarkContentTemplate(){return n.html`
|
|
2
2
|
<div class="md-coachmark__content">
|
|
3
3
|
${this.message?this.message:n.html` <slot name="coachmark-content" @slotchange=${this.handleSlotChange}></slot> `}
|
|
4
4
|
</div>
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
${this.renderHeader()} ${this.renderBody()} ${this.renderFooter()}
|
|
45
45
|
</div>
|
|
46
46
|
</md-popover>
|
|
47
|
-
`}};d([(0,n.property)({type:String})],t.prototype,"placement",void 0),d([(0,n.property)({type:String})],t.prototype,"headerIconName",void 0),d([(0,n.property)({type:String})],t.prototype,"header",void 0),d([(0,n.property)({type:String})],t.prototype,"message",void 0),d([(0,n.property)({type:Boolean})],t.prototype,"show",void 0),d([(0,n.property)({type:Boolean,reflect:!0,attribute:"hide-close-button"})],t.prototype,"hideCloseButton",void 0),d([(0,n.property)({type:String})],t.prototype,"primaryButton",void 0),d([(0,n.property)({type:String})],t.prototype,"secondaryButton",void 0),d([(0,n.property)({type:String})],t.prototype,"linkText",void 0),d([(0,n.property)({type:String})],t.prototype,"href",void 0),d([(0,n.query)(".md-coachmark__trigger-component")],t.prototype,"triggerComponent",void 0),d([(0,n.query)(".md-coachmark__popper")],t.prototype,"popper",void 0),t=d([(0,
|
|
47
|
+
`}};d([(0,n.property)({type:String})],t.prototype,"placement",void 0),d([(0,n.property)({type:String})],t.prototype,"headerIconName",void 0),d([(0,n.property)({type:String})],t.prototype,"header",void 0),d([(0,n.property)({type:String})],t.prototype,"message",void 0),d([(0,n.property)({type:Boolean})],t.prototype,"show",void 0),d([(0,n.property)({type:Boolean,reflect:!0,attribute:"hide-close-button"})],t.prototype,"hideCloseButton",void 0),d([(0,n.property)({type:String})],t.prototype,"primaryButton",void 0),d([(0,n.property)({type:String})],t.prototype,"secondaryButton",void 0),d([(0,n.property)({type:String})],t.prototype,"linkText",void 0),d([(0,n.property)({type:String})],t.prototype,"href",void 0),d([(0,n.query)(".md-coachmark__trigger-component")],t.prototype,"triggerComponent",void 0),d([(0,n.query)(".md-coachmark__popper")],t.prototype,"popper",void 0),t=d([(0,s.w)("md-coachmark-popover")],t),e.ELEMENT=t}(i||(i={}))},32022:e=>{e.exports=r},32325:e=>{e.exports=h},40333:e=>{e.exports=o},41392:e=>{e.exports=f},41488:t=>{t.exports=e},46180:e=>{e.exports=m},60554:e=>{e.exports=n},63830:e=>{e.exports=q},68250:e=>{e.exports=d},69371:e=>{e.exports=p},70369:e=>{e.exports=O},71128:(e,t,o)=>{o(96798),o(61200);var i,s=o(90195),r=o(31890),n=o(28373),l=o(66677),a=o(26283),d=o(22962),p=o.n(d),c=o(84157),u=o.n(c),m=o(68250),v=o.n(m),g=o(69371),h=o.n(g),f=o(4863),b=o(41488),y=o(40333),O=o(73679),E=o(35211),w=o(50325),C=function(e,t,o,i){var s,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(n=(r<3?s(n):r>3?s(t,o,n):s(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n},q=function(e,t,o,i){return new(o||(o=Promise))((function(s,r){function n(e){try{a(i.next(e))}catch(e){r(e)}}function l(e){try{a(i.throw(e))}catch(e){r(e)}}function a(e){var t;e.done?s(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(n,l)}a((i=i.apply(e,t||[])).next())}))};!function(e){let t=class extends((0,n.d)(b.LitElement)){constructor(){super(...arguments),this.placement="bottom",this.isOpen=!1,this.showArrow=!0,this.showClose=!1,this.interactive=!1,this.shouldWrapFocus=()=>this.interactive,this.role="dialog",this.ariaLabel=null,this.offsetDistance=5,this.trigger="click",this.triggerElement=null,this.popperInstance=null,this.isMouseOver=!1,this.onOutsideOverlayClick=e=>{var t;if(null===(t=this.trigger)||void 0===t?void 0:t.includes("manual"))return;let o=!1;const i=e.composedPath();i.length&&(o=!!i.find((e=>e===this)),o||(this.isOpen=!1))},this.onWindowBlurEvent=()=>{var e;(null===(e=this.trigger)||void 0===e?void 0:e.includes("manual"))||this.isOpen&&(this.isOpen=!1)},this.onOutsideOverlayKeydown=e=>q(this,void 0,void 0,(function*(){this.isOpen&&e.code===s.Uz.Escape&&(e.preventDefault(),this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger())})),this.onTriggerElementClicked=()=>{this.toggleOverlay()},this.onTriggerElementKeydown=e=>q(this,void 0,void 0,(function*(){(0,a.o)(e.code)&&(e.preventDefault(),this.toggleOverlay()),e.code===s.Uz.Escape&&this.isOpen&&(this.isOpen=!1,yield this.updateComplete,this.focusOnTrigger())})),this.onFocusInTrigger=()=>{var e;(null===(e=this.trigger)||void 0===e?void 0:e.includes("focus"))&&(this.isOpen=!0)},this.onFocusOutTrigger=()=>{var e;(null===(e=this.trigger)||void 0===e?void 0:e.includes("focus"))&&!this.isMouseOver&&(this.isOpen=!1)},this.onMouseEnteredTriggerOrPopup=e=>{var t;this.isMouseOver=!0,(null===(t=this.trigger)||void 0===t?void 0:t.includes("mouseenter"))&&this.setIsOpenDebounced(!0)},this.onMouseLeaveTriggerOrPopup=e=>{var t;this.isMouseOver=!1,(null===(t=this.trigger)||void 0===t?void 0:t.includes("mouseenter"))&&!this.shouldStayOpenOnTriggerFocus()&&this.setIsOpenDebounced(!1)},this.setIsOpenDebounced=(0,l.sg)((e=>{this.isOpen=e}),100)}static get styles(){return[w.A]}connectedCallback(){super.connectedCallback()}disconnectedCallback(){var e,t,o,i,s;super.disconnectedCallback(),window.removeEventListener("blur",this.onWindowBlurEvent),document.removeEventListener("click",this.onOutsideOverlayClick),document.removeEventListener("keydown",this.onOutsideOverlayKeydown),this.triggerElement&&((null===(e=this.trigger)||void 0===e?void 0:e.includes("click"))&&(this.triggerElement.removeEventListener("click",this.onTriggerElementClicked),this.triggerElement.removeEventListener("keydown",this.onTriggerElementKeydown)),(null===(t=this.trigger)||void 0===t?void 0:t.includes("mouseenter"))&&(this.triggerElement.removeEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),this.triggerElement.removeEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup),null===(o=this.popoverContainer)||void 0===o||o.removeEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),null===(i=this.popoverContainer)||void 0===i||i.removeEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup)),(null===(s=this.trigger)||void 0===s?void 0:s.includes("focus"))&&(this.triggerElement.removeEventListener("focusin",this.onFocusInTrigger),this.triggerElement.removeEventListener("focusout",this.onFocusOutTrigger)))}setupTriggerEvents(){var e,t,o,i,s;this.triggerElement&&((null===(e=this.trigger)||void 0===e?void 0:e.includes("click"))&&(this.triggerElement.addEventListener("click",this.onTriggerElementClicked.bind(this)),this.triggerElement.addEventListener("keydown",this.onTriggerElementKeydown.bind(this))),(null===(t=this.trigger)||void 0===t?void 0:t.includes("mouseenter"))&&(this.triggerElement.addEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),this.triggerElement.addEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup),null===(o=this.popoverContainer)||void 0===o||o.addEventListener("mouseenter",this.onMouseEnteredTriggerOrPopup),null===(i=this.popoverContainer)||void 0===i||i.addEventListener("mouseleave",this.onMouseLeaveTriggerOrPopup)),(null===(s=this.trigger)||void 0===s?void 0:s.includes("focus"))&&(this.triggerElement.addEventListener("focusin",this.onFocusInTrigger),this.triggerElement.addEventListener("focusout",this.onFocusOutTrigger)))}handleTriggerElementSlotChange(){const e=this.triggerSlot.assignedElements({flatten:!0});this.triggerElement=e.length>0?e[0]:null}onContentSlotChanged(){}shouldStayOpenOnTriggerFocus(){var e;return!!(null===(e=this.trigger)||void 0===e?void 0:e.includes("focus"))&&this.getRootNode().activeElement===this.triggerElement}firstUpdated(e){var t;super.firstUpdated(e),this.handleTriggerElementSlotChange(),this.setupTriggerEvents(),this.popoverContainer&&this.isOpen&&(this.createInstance(),null===(t=this.popoverContainer)||void 0===t||t.setAttribute("data-show",""))}focusInsideOverlay(){var e,t;this.focusableElements&&(this.focusableElements.length>1?null===(e=this.setInitialFocus)||void 0===e||e.call(this,1):this.focusableElements.length&&(null===(t=this.setInitialFocus)||void 0===t||t.call(this)))}focusOnTrigger(){return q(this,void 0,void 0,(function*(){requestAnimationFrame((()=>{var e;(null===(e=this.focusableElements)||void 0===e?void 0:e.length)&&this.focusableElements[0].focus()}))}))}toggleOverlay(){var e;(null===(e=this.triggerElement)||void 0===e?void 0:e.hasAttribute("disabled"))||(this.isOpen=!this.isOpen)}handleCreatePopperFirstUpdate(){return q(this,void 0,void 0,(function*(){var e;this.isOpen&&this.interactive&&(null===(e=this.setFocusableElements)||void 0===e||e.call(this),yield this.updateComplete,this.focusInsideOverlay())}))}createInstance(){this.triggerElement?this.popperInstance=(0,f.createPopper)(this.triggerElement,this.popoverContainer,{onFirstUpdate:()=>{this.isOpen&&this.handleCreatePopperFirstUpdate()},placement:this.placement,modifiers:[...f.defaultModifiers,u(),v(),h(),p(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:e,reference:t})=>"left"===e||"right"===e?[t.height+t.y+this.offsetDistance,E.KC]:[0,this.showArrow?E.KC+this.offsetDistance:this.offsetDistance]}},{name:"arrow",options:{element:this.popoverArrow,padding:E.KC}},{name:"computeStyles",options:{adaptive:!0}}]}):console.warn("No trigger element not creating popper instance")}destroyInstance(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}updated(e){if(super.updated(e),e.has("isOpen")){const t=e.get("isOpen");this.isOpenUpdated(t,this.isOpen)}}isOpenUpdated(e,t){var o,i,s,r,n,l;e!==t&&(t?(this.createInstance(),this.dispatchPopoverIsOpenChanged(t),window.addEventListener("blur",this.onWindowBlurEvent),document.addEventListener("click",this.onOutsideOverlayClick),document.addEventListener("keydown",this.onOutsideOverlayKeydown),this.interactive&&(null===(o=this.activateFocusTrap)||void 0===o||o.call(this)),null===(i=this.triggerElement)||void 0===i||i.setAttribute("aria-expanded","true"),null===(s=this.popoverContainer)||void 0===s||s.setAttribute("data-show","")):(this.destroyInstance(),window.removeEventListener("blur",this.onWindowBlurEvent),document.removeEventListener("click",this.onOutsideOverlayClick),document.removeEventListener("keydown",this.onOutsideOverlayKeydown),this.dispatchPopoverIsOpenChanged(t),null===(r=this.deactivateFocusTrap)||void 0===r||r.call(this),null===(n=this.triggerElement)||void 0===n||n.removeAttribute("aria-expanded"),null===(l=this.popoverContainer)||void 0===l||l.removeAttribute("data-show")))}dispatchPopoverIsOpenChanged(e){this.dispatchEvent(new CustomEvent("popover-open-changed",{detail:{isOpen:e},composed:!0,bubbles:!0}))}render(){var e;return b.html`
|
|
48
48
|
<div class="md-popover">
|
|
49
49
|
<slot name="triggerElement" aria-expanded=${this.isOpen}></slot>
|
|
50
50
|
<div
|
|
@@ -69,4 +69,4 @@
|
|
|
69
69
|
</div>
|
|
70
70
|
</div>
|
|
71
71
|
</div>
|
|
72
|
-
`}};C([(0,b.property)({type:String})],t.prototype,"placement",void 0),C([(0,b.property)({type:Boolean,attribute:"is-open"})],t.prototype,"isOpen",void 0),C([(0,b.property)({type:Boolean,attribute:"show-arrow"})],t.prototype,"showArrow",void 0),C([(0,b.property)({type:Boolean,attribute:"show-close"})],t.prototype,"showClose",void 0),C([(0,b.property)({type:Boolean})],t.prototype,"interactive",void 0),C([(0,b.property)({type:String,attribute:"role"})],t.prototype,"role",void 0),C([(0,b.property)({type:String,attribute:"aria-label"})],t.prototype,"ariaLabel",void 0),C([(0,b.property)({type:Number,attribute:"offset-distance"})],t.prototype,"offsetDistance",void 0),C([(0,b.query)('slot[name="triggerElement"]')],t.prototype,"triggerSlot",void 0),C([(0,b.query)(".popover-container")],t.prototype,"popoverContainer",void 0),C([(0,b.query)(".popover-arrow")],t.prototype,"popoverArrow",void 0),C([(0,b.property)({type:String})],t.prototype,"trigger",void 0),C([(0,b.internalProperty)()],t.prototype,"isMouseOver",void 0),t=C([(0,r.w)("md-popover")],t),e.ELEMENT=t}(
|
|
72
|
+
`}};C([(0,b.property)({type:String})],t.prototype,"placement",void 0),C([(0,b.property)({type:Boolean,attribute:"is-open"})],t.prototype,"isOpen",void 0),C([(0,b.property)({type:Boolean,attribute:"show-arrow"})],t.prototype,"showArrow",void 0),C([(0,b.property)({type:Boolean,attribute:"show-close"})],t.prototype,"showClose",void 0),C([(0,b.property)({type:Boolean})],t.prototype,"interactive",void 0),C([(0,b.property)({type:String,attribute:"role"})],t.prototype,"role",void 0),C([(0,b.property)({type:String,attribute:"aria-label"})],t.prototype,"ariaLabel",void 0),C([(0,b.property)({type:Number,attribute:"offset-distance"})],t.prototype,"offsetDistance",void 0),C([(0,b.query)('slot[name="triggerElement"]')],t.prototype,"triggerSlot",void 0),C([(0,b.query)(".popover-container")],t.prototype,"popoverContainer",void 0),C([(0,b.query)(".popover-arrow")],t.prototype,"popoverArrow",void 0),C([(0,b.property)({type:String})],t.prototype,"trigger",void 0),C([(0,b.internalProperty)()],t.prototype,"isMouseOver",void 0),t=C([(0,r.w)("md-popover")],t),e.ELEMENT=t}(i||(i={}))},73679:e=>{e.exports=u},81187:e=>{e.exports=v},84157:e=>{e.exports=a},87344:e=>{e.exports=b},88069:e=>{e.exports=g},92033:e=>{e.exports=E},97822:e=>{e.exports=s}},S={};function $(e){var t=S[e];if(void 0!==t)return t.exports;var o=S[e]={exports:{}};return P[e](o,o.exports,$),o.exports}$.m=P,j=[],$.O=(e,t,o,i)=>{if(!t){var s=1/0;for(a=0;a<j.length;a++){for(var[t,o,i]=j[a],r=!0,n=0;n<t.length;n++)(!1&i||s>=i)&&Object.keys($.O).every((e=>$.O[e](t[n])))?t.splice(n--,1):(r=!1,i<s&&(s=i));if(r){j.splice(a--,1);var l=o();void 0!==l&&(e=l)}}return e}i=i||0;for(var a=j.length;a>0&&j[a-1][2]>i;a--)j[a]=j[a-1];j[a]=[t,o,i]},$.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return $.d(t,{a:t}),t},L=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,$.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);$.r(o);var i={};T=T||[null,L({}),L([]),L(L)];for(var s=2&t&&e;"object"==typeof s&&!~T.indexOf(s);s=L(s))Object.getOwnPropertyNames(s).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,$.d(o,i),o},$.d=(e,t)=>{for(var o in t)$.o(t,o)&&!$.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},$.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),$.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={3413:0,4131:0};$.O.j=t=>0===e[t];var t=(t,o)=>{var i,s,[r,n,l]=o,a=0;if(r.some((t=>0!==e[t]))){for(i in n)$.o(n,i)&&($.m[i]=n[i]);if(l)var d=l($)}for(t&&t(o);a<r.length;a++)s=r[a],$.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return $.O(d)},o=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var I=$.O(void 0,[4367,1890,6272,6325,6283,9217,2176,6798,6248,1200,2576,8210,1270,3135,6677,4663,587],(()=>$(29895)));return $.O(I)})()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require("../4367"),require("../1890"),require("../6272"),require("../6325"),require("../
|
|
1
|
+
require("../4367"),require("../1890"),require("../6272"),require("../6325"),require("../6283"),require("../9217"),require("../2176"),require("../6798"),require("../6248"),require("../1200"),require("../2576"),require("../8210"),require("../1270"),require("../3135"),require("../6677"),require("../4663"),require("../587"),module.exports=require("../comp/md-coachmark-popover-entry");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require("../1890"),require("../6272"),require("../6325"),require("../
|
|
1
|
+
require("../1890"),require("../6272"),require("../6325"),require("../6283"),require("../9217"),require("../2176"),require("../6798"),require("../8889"),require("../300"),require("../2576"),require("../4624"),require("../591"),require("../768"),require("../3135"),require("../9058"),require("../2043"),require("../7763"),module.exports=require("../comp/md-coachmark-entry");
|
|
@@ -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/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"),require("lit-html/directives/repeat"),require("lit-virtualizer"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map","lit-html/directives/style-map","lit-html","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg","@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-x.svg","@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg","lit-html/directives/repeat","lit-virtualizer"],e);else{var s="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"),require("lit-html/directives/repeat"),require("lit-virtualizer")):e(t["lit-element"],t["lit-html/directives/class-map"],t["lit-html/directives/style-map"],t["lit-html"],t["lit-html/directives/if-defined"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t["@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"],t["lit-html/directives/repeat"],t["lit-virtualizer"]);for(var i in s)("object"==typeof exports?exports:t)[i]=s[i]}}(self,((t,e,s,i,o,l,n,r,a,d,h,u,c,p,m,g,b,v,f,x,y,O,I)=>(()=>{"use strict";var S,w={4928:(t,e,s)=>{s.r(e),s.d(e,{ComboBox:()=>i}),s(20109),s(61200);var i,o=s(90195),l=s(3001),n=s(31890),r=s(66677),a=s(26272),d=s(41488),h=s(40333),u=s(23968),c=s(97822),p=s(22818),m=s(8229),g=s(86635),b=s(97103),v=s(46795),f=function(t,e,s,i){var o,l=arguments.length,n=l<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(n=(l<3?o(n):l>3?o(e,s,n):o(e,s))||n);return l>3&&n&&Object.defineProperty(e,s,n),n},x=function(t,e,s,i){return new(s||(s=Promise))((function(o,l){function n(t){try{a(i.next(t))}catch(t){l(t)}}function r(t){try{a(i.throw(t))}catch(t){l(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(n,r)}a((i=i.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,s)=>s.type===e?t.concat(s.message):t),[])}}t.MessageController=e;let s=class extends((0,l.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,r.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,r.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 s=t.composedPath();s.length&&(e=!!s.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 s=this._focusedIndex;if(this.checkForVirtualScroll()){let s;s=this.allowSelectAll?0===t?"selectAll":this.getOptionId(this.filteredOptions[t-1]):this.getOptionId(this.filteredOptions[t]);const i=this.lists?null===(e=[...this.lists])||void 0===e?void 0:e.find((t=>0!==t.offsetHeight&&t.id===s)):"";this.lists&&[...this.lists].forEach((t=>{t.toggleAttribute("focused",!1)})),i&&(null==i||i.toggleAttribute("focused",!0))}else if(this.lists){const e=this.lists[s];e&&e.toggleAttribute("focused",!1);const i=this.lists[t];i&&i.toggleAttribute("focused",!0)}this._focusedIndex=t,this.requestUpdate("focusedIndex",s)}get focusedGroupIndex(){return this._focusedGroupIndex}set focusedGroupIndex(t){const e=this._focusedGroupIndex;if(this.labels&&0!==this.labels.length){const s=this.labels[e];s&&s.toggleAttribute("focused",!1);const i=this.labels[t];i&&(i.toggleAttribute("focused",!0),i.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){this.disabled&&!this.readOnly||(this.noClearIcon&&(requestAnimationFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1})),this.selectWhenInFocus&&this.input.select()),super.handleFocusIn&&super.handleFocusIn(t)),this.dispatchEvent(new CustomEvent("combobox-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){super.handleFocusOut&&super.handleFocusOut(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],s=this.findFilteredOption(e);-1!==s&&(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=s,this.focusedGroupIndex=-1)}}isOptionObject(t){return"object"==typeof t&&null!==t}setOptionCustomContent(){if(this.isOptGroup){const t=[...this.querySelectorAll("optgroup")],e=[];for(const s of t){const t=s.getAttribute("label"),i=[...s.querySelectorAll("[slot]")];e.push({isLabel:"true",[this.optionValue]:t,groupName:t});for(const s of i){const i=s.getAttribute("aria-label"),o=s.getAttribute("display-value"),l=s.getAttribute("slot");i&&o&&e.push({[this.optionId]:i,[this.optionValue]:o,isLabel:"false",groupName:t,slot:l})}}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"),s=t.getAttribute("display-value");if(e&&s)return{[this.optionId]:e,[this.optionValue]:s}})):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((s=>{e.includes(s)&&(t=s.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,s=0,i=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),i=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&&(s=[...this.labels].slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0)),this.listBox&&(this.listBox.style.maxHeight=`${e+s+o}px`),this.virtualizer&&(this.virtualizer.style.height=`${i+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 s=0;const{top:i,bottom:o}=this.listBox.getBoundingClientRect(),l=this.lists[this.focusedIndex],n=null===(t=this.lists[this.focusedIndex+1]||l)||void 0===t?void 0:t.getBoundingClientRect(),r=null===(e=this.lists[this.focusedIndex-1]||l)||void 0===e?void 0:e.getBoundingClientRect();(null==n?void 0:n.bottom)>o?s=n.bottom-o+2:(null==r?void 0:r.top)<i&&(s=r.top-i-2),this.updateOnNextFrame((()=>{this.listBox.scrollTop+=s}))}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 x(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 x(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),s=this.filteredOptions.indexOf(t);-1!==s&&this.unCheckedOption(s),-1!==e&&(this.selectedOptions.splice(e,1),this.requestUpdate()),this.updateOnNextFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1}))}selectedChange(t){var e;const{event:s}=t.detail;let i=this.findOptionIndex(s);if(-1!==i){this.focusedIndex=this.allowSelectAll&&this.checkForVirtualScroll()?i+1:i,this.isMulti&&this.allowSelectAll&&!this.checkForVirtualScroll()&&(i-=1);const t=this.getFocusedItem(i);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 s="";t&&(s=this.getOptionId(t)),null===(e=this.lists)||void 0===e||e.forEach(((t,e)=>{(null==t?void 0:t.id)===s?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,s;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===(s=this.input)||void 0===s||s.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,s;if(!this.readOnly){if(t.target.classList.contains("md-combobox-listbox"))t.target.focus();else if("md-icon"===t.target.localName){const i=null===(s=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===s?void 0:s.parentElement;if(i){const t=i.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[a.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`
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit-html/directives/repeat"),require("lit-virtualizer"),require("@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map","lit-html/directives/style-map","lit-html","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","lit-html/directives/repeat","lit-virtualizer","@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg","@momentum-design/brand-visuals/dist/logos/svg/social-x.svg","@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg","@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg","@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"],e);else{var s="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("lit-html/directives/repeat"),require("lit-virtualizer"),require("@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg")):e(t["lit-element"],t["lit-html/directives/class-map"],t["lit-html/directives/style-map"],t["lit-html"],t["lit-html/directives/if-defined"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t["lit-html/directives/repeat"],t["lit-virtualizer"],t["@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"],t["@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"]);for(var i in s)("object"==typeof exports?exports:t)[i]=s[i]}}(self,((t,e,s,i,o,l,n,r,a,d,h,u,c,p,m,g,b,v,f,x,y,O,I)=>(()=>{"use strict";var S,w,A,C={4928:(t,e,s)=>{s.r(e),s.d(e,{ComboBox:()=>i}),s(20109),s(61200);var i,o=s(90195),l=s(3001),n=s(31890),r=s(66677),a=s(26272),d=s(41488),h=s(40333),u=s(23968),c=s(97822),p=s(22818),m=s(8229),g=s(86635),b=s(97103),v=s(46795),f=function(t,e,s,i){var o,l=arguments.length,n=l<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(n=(l<3?o(n):l>3?o(e,s,n):o(e,s))||n);return l>3&&n&&Object.defineProperty(e,s,n),n},x=function(t,e,s,i){return new(s||(s=Promise))((function(o,l){function n(t){try{a(i.next(t))}catch(t){l(t)}}function r(t){try{a(i.throw(t))}catch(t){l(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(n,r)}a((i=i.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,s)=>s.type===e?t.concat(s.message):t),[])}}t.MessageController=e;let s=class extends((0,l.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,r.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,r.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 s=t.composedPath();s.length&&(e=!!s.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 s=this._focusedIndex;if(this.checkForVirtualScroll()){let s;s=this.allowSelectAll?0===t?"selectAll":this.getOptionId(this.filteredOptions[t-1]):this.getOptionId(this.filteredOptions[t]);const i=this.lists?null===(e=[...this.lists])||void 0===e?void 0:e.find((t=>0!==t.offsetHeight&&t.id===s)):"";this.lists&&[...this.lists].forEach((t=>{t.toggleAttribute("focused",!1)})),i&&(null==i||i.toggleAttribute("focused",!0))}else if(this.lists){const e=this.lists[s];e&&e.toggleAttribute("focused",!1);const i=this.lists[t];i&&i.toggleAttribute("focused",!0)}this._focusedIndex=t,this.requestUpdate("focusedIndex",s)}get focusedGroupIndex(){return this._focusedGroupIndex}set focusedGroupIndex(t){const e=this._focusedGroupIndex;if(this.labels&&0!==this.labels.length){const s=this.labels[e];s&&s.toggleAttribute("focused",!1);const i=this.labels[t];i&&(i.toggleAttribute("focused",!0),i.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){this.disabled&&!this.readOnly||(this.noClearIcon&&(requestAnimationFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1})),this.selectWhenInFocus&&this.input.select()),super.handleFocusIn&&super.handleFocusIn(t)),this.dispatchEvent(new CustomEvent("combobox-focus-in",{composed:!0,bubbles:!0}))}handleFocusOut(t){super.handleFocusOut&&super.handleFocusOut(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],s=this.findFilteredOption(e);-1!==s&&(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=s,this.focusedGroupIndex=-1)}}isOptionObject(t){return"object"==typeof t&&null!==t}setOptionCustomContent(){if(this.isOptGroup){const t=[...this.querySelectorAll("optgroup")],e=[];for(const s of t){const t=s.getAttribute("label"),i=[...s.querySelectorAll("[slot]")];e.push({isLabel:"true",[this.optionValue]:t,groupName:t});for(const s of i){const i=s.getAttribute("aria-label"),o=s.getAttribute("display-value"),l=s.getAttribute("slot");i&&o&&e.push({[this.optionId]:i,[this.optionValue]:o,isLabel:"false",groupName:t,slot:l})}}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"),s=t.getAttribute("display-value");if(e&&s)return{[this.optionId]:e,[this.optionValue]:s}})):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((s=>{e.includes(s)&&(t=s.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,s=0,i=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),i=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&&(s=[...this.labels].slice(0,this.visibleOptions).reduce(((t,e)=>t+e.offsetHeight),0)),this.listBox&&(this.listBox.style.maxHeight=`${e+s+o}px`),this.virtualizer&&(this.virtualizer.style.height=`${i+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 s=0;const{top:i,bottom:o}=this.listBox.getBoundingClientRect(),l=this.lists[this.focusedIndex],n=null===(t=this.lists[this.focusedIndex+1]||l)||void 0===t?void 0:t.getBoundingClientRect(),r=null===(e=this.lists[this.focusedIndex-1]||l)||void 0===e?void 0:e.getBoundingClientRect();(null==n?void 0:n.bottom)>o?s=n.bottom-o+2:(null==r?void 0:r.top)<i&&(s=r.top-i-2),this.updateOnNextFrame((()=>{this.listBox.scrollTop+=s}))}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 x(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 x(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),s=this.filteredOptions.indexOf(t);-1!==s&&this.unCheckedOption(s),-1!==e&&(this.selectedOptions.splice(e,1),this.requestUpdate()),this.updateOnNextFrame((()=>{this.input.focus(),this.focusedGroupIndex=-1}))}selectedChange(t){var e;const{event:s}=t.detail;let i=this.findOptionIndex(s);if(-1!==i){this.focusedIndex=this.allowSelectAll&&this.checkForVirtualScroll()?i+1:i,this.isMulti&&this.allowSelectAll&&!this.checkForVirtualScroll()&&(i-=1);const t=this.getFocusedItem(i);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 s="";t&&(s=this.getOptionId(t)),null===(e=this.lists)||void 0===e||e.forEach(((t,e)=>{(null==t?void 0:t.id)===s?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,s;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===(s=this.input)||void 0===s||s.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,s;if(!this.readOnly){if(t.target.classList.contains("md-combobox-listbox"))t.target.focus();else if("md-icon"===t.target.localName){const i=null===(s=null===(e=t.target.parentElement)||void 0===e?void 0:e.parentElement)||void 0===s?void 0:s.parentElement;if(i){const t=i.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[a.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`
|
|
2
2
|
<md-icon
|
|
3
3
|
name=${t}
|
|
4
4
|
class=${e}
|
|
@@ -215,4 +215,4 @@
|
|
|
215
215
|
</div>
|
|
216
216
|
`:h.nothing}
|
|
217
217
|
${this.messagesTemplate()} ${this.helpTextTemplate()}
|
|
218
|
-
`}};f([(0,d.property)({type:String})],s.prototype,"label",void 0),f([(0,d.property)({type:Array})],s.prototype,"options",void 0),f([(0,d.property)({type:Array,attribute:"custom-options"})],s.prototype,"customOptions",void 0),f([(0,d.property)({type:String})],s.prototype,"placeholder",void 0),f([(0,d.property)({type:Boolean,attribute:"is-multi"})],s.prototype,"isMulti",void 0),f([(0,d.property)({type:Boolean,attribute:"use-virtual-scroll"})],s.prototype,"useVirtualScroll",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"disabled",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"ordered",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"expanded",void 0),f([(0,d.property)({type:Array,reflect:!0})],s.prototype,"groupExpandedList",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"searchItem",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"compact",void 0),f([(0,d.property)({type:Boolean,attribute:"no-clear-icon"})],s.prototype,"noClearIcon",void 0),f([(0,d.property)({type:Boolean,attribute:"select-when-in-focus"})],s.prototype,"selectWhenInFocus",void 0),f([(0,d.property)({type:Array})],s.prototype,"selectedOptions",void 0),f([(0,d.property)({type:Number,attribute:"visible-option",reflect:!0})],s.prototype,"visibleOptions",void 0),f([(0,d.property)({type:String,attribute:"option-id",reflect:!0})],s.prototype,"optionId",void 0),f([(0,d.property)({type:String,attribute:"option-value",reflect:!0})],s.prototype,"optionValue",void 0),f([(0,d.property)({type:Boolean,attribute:"with-custom-content"})],s.prototype,"isCustomContent",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"searchable",void 0),f([(0,d.property)({type:String})],s.prototype,"shape",void 0),f([(0,d.property)({type:Array})],s.prototype,"value",void 0),f([(0,d.property)({type:String,attribute:"input-value",reflect:!0})],s.prototype,"inputValue",void 0),f([(0,d.property)({type:Boolean,attribute:"allow-custom-value",reflect:!0})],s.prototype,"allowCustomValue",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"autofocus",void 0),f([(0,d.property)({type:String,attribute:"no-results-i18n"})],s.prototype,"resultsTextLocalization",void 0),f([(0,d.property)({type:String,attribute:"no-options-i18n"})],s.prototype,"optionsTextLocalization",void 0),f([(0,d.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],s.prototype,"trimSpace",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"invalid",void 0),f([(0,d.property)({type:String,reflect:!0,attribute:"invalid-text-i18n"})],s.prototype,"invalidText",void 0),f([(0,d.property)({type:String,reflect:!0})],s.prototype,"ariaLabel",void 0),f([(0,d.property)({type:String,attribute:"search-result-aria-label"})],s.prototype,"searchResultAriaLabel",void 0),f([(0,d.internalProperty)()],s.prototype,"ariaLabelForComboBox",void 0),f([(0,d.property)({type:String,attribute:"clear-aria-label"})],s.prototype,"clearAriaLabel",void 0),f([(0,d.property)({type:String,attribute:"arrow-aria-label"})],s.prototype,"arrowAriaLabel",void 0),f([(0,d.property)({type:String,attribute:"clear-icon-height"})],s.prototype,"clearIconHeight",void 0),f([(0,d.property)({type:String,attribute:"all-i18n"})],s.prototype,"allTextLocalization",void 0),f([(0,d.property)({type:String,attribute:"select-all-i18n"})],s.prototype,"selectAllTextLocalization",void 0),f([(0,d.property)({type:String,attribute:"selected-all-i18n"})],s.prototype,"selectedTextLocalization",void 0),f([(0,d.property)({type:Boolean,attribute:"allow-select-all",reflect:!0})],s.prototype,"allowSelectAll",void 0),f([(0,d.property)({type:Boolean,attribute:"show-custom-error",reflect:!0})],s.prototype,"showCustomError",void 0),f([(0,d.property)({type:Boolean,attribute:"show-loader",reflect:!0})],s.prototype,"showLoader",void 0),f([(0,d.property)({type:Boolean,attribute:"show-selected-count",reflect:!0})],s.prototype,"showSelectedCount",void 0),f([(0,d.property)({type:String,attribute:"popup-chevron-aria-hidden"})],s.prototype,"popupChevronAriaHidden",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"newMomentum",void 0),f([(0,d.property)({type:Boolean,attribute:"show-filter-icon"})],s.prototype,"showFilterIcon",void 0),f([(0,d.property)({type:Boolean,attribute:"prevent-filter"})],s.prototype,"preventFilter",void 0),f([(0,d.property)({type:Boolean,attribute:"is-dropdown-arrow"})],s.prototype,"isDropdownArrow",void 0),f([(0,d.property)({type:String})],s.prototype,"comboboxId",void 0),f([(0,d.property)({type:String})],s.prototype,"helpText",void 0),f([(0,d.property)({type:Array})],s.prototype,"messageArr",void 0),f([(0,d.property)({type:String})],s.prototype,"htmlId",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"readOnly",void 0),f([(0,d.internalProperty)()],s.prototype,"isOptGroup",void 0),f([(0,d.internalProperty)()],s.prototype,"isSelectAllChecked",void 0),f([(0,d.query)(".group")],s.prototype,"group",void 0),f([(0,d.query)(".md-combobox-listbox")],s.prototype,"input",void 0),f([(0,d.query)(".md-combobox-button")],s.prototype,"button",void 0),f([(0,d.query)("div#md-combobox-listbox")],s.prototype,"listBox",void 0),f([(0,d.query)(".virtual-scroll")],s.prototype,"virtualizer",void 0),f([(0,d.queryAll)("div.md-combobox-option")],s.prototype,"lists",void 0),f([(0,d.queryAll)(".group-label")],s.prototype,"labels",void 0),f([(0,d.queryAll)(".md-combobox-selected-item")],s.prototype,"selected",void 0),s=f([(0,n.w)("md-combobox")],s),t.ELEMENT=s}(i||(i={}))},8229:t=>{t.exports=s},8827:t=>{t.exports=
|
|
218
|
+
`}};f([(0,d.property)({type:String})],s.prototype,"label",void 0),f([(0,d.property)({type:Array})],s.prototype,"options",void 0),f([(0,d.property)({type:Array,attribute:"custom-options"})],s.prototype,"customOptions",void 0),f([(0,d.property)({type:String})],s.prototype,"placeholder",void 0),f([(0,d.property)({type:Boolean,attribute:"is-multi"})],s.prototype,"isMulti",void 0),f([(0,d.property)({type:Boolean,attribute:"use-virtual-scroll"})],s.prototype,"useVirtualScroll",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"disabled",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"ordered",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"expanded",void 0),f([(0,d.property)({type:Array,reflect:!0})],s.prototype,"groupExpandedList",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"searchItem",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"compact",void 0),f([(0,d.property)({type:Boolean,attribute:"no-clear-icon"})],s.prototype,"noClearIcon",void 0),f([(0,d.property)({type:Boolean,attribute:"select-when-in-focus"})],s.prototype,"selectWhenInFocus",void 0),f([(0,d.property)({type:Array})],s.prototype,"selectedOptions",void 0),f([(0,d.property)({type:Number,attribute:"visible-option",reflect:!0})],s.prototype,"visibleOptions",void 0),f([(0,d.property)({type:String,attribute:"option-id",reflect:!0})],s.prototype,"optionId",void 0),f([(0,d.property)({type:String,attribute:"option-value",reflect:!0})],s.prototype,"optionValue",void 0),f([(0,d.property)({type:Boolean,attribute:"with-custom-content"})],s.prototype,"isCustomContent",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"searchable",void 0),f([(0,d.property)({type:String})],s.prototype,"shape",void 0),f([(0,d.property)({type:Array})],s.prototype,"value",void 0),f([(0,d.property)({type:String,attribute:"input-value",reflect:!0})],s.prototype,"inputValue",void 0),f([(0,d.property)({type:Boolean,attribute:"allow-custom-value",reflect:!0})],s.prototype,"allowCustomValue",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"autofocus",void 0),f([(0,d.property)({type:String,attribute:"no-results-i18n"})],s.prototype,"resultsTextLocalization",void 0),f([(0,d.property)({type:String,attribute:"no-options-i18n"})],s.prototype,"optionsTextLocalization",void 0),f([(0,d.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],s.prototype,"trimSpace",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"invalid",void 0),f([(0,d.property)({type:String,reflect:!0,attribute:"invalid-text-i18n"})],s.prototype,"invalidText",void 0),f([(0,d.property)({type:String,reflect:!0})],s.prototype,"ariaLabel",void 0),f([(0,d.property)({type:String,attribute:"search-result-aria-label"})],s.prototype,"searchResultAriaLabel",void 0),f([(0,d.internalProperty)()],s.prototype,"ariaLabelForComboBox",void 0),f([(0,d.property)({type:String,attribute:"clear-aria-label"})],s.prototype,"clearAriaLabel",void 0),f([(0,d.property)({type:String,attribute:"arrow-aria-label"})],s.prototype,"arrowAriaLabel",void 0),f([(0,d.property)({type:String,attribute:"clear-icon-height"})],s.prototype,"clearIconHeight",void 0),f([(0,d.property)({type:String,attribute:"all-i18n"})],s.prototype,"allTextLocalization",void 0),f([(0,d.property)({type:String,attribute:"select-all-i18n"})],s.prototype,"selectAllTextLocalization",void 0),f([(0,d.property)({type:String,attribute:"selected-all-i18n"})],s.prototype,"selectedTextLocalization",void 0),f([(0,d.property)({type:Boolean,attribute:"allow-select-all",reflect:!0})],s.prototype,"allowSelectAll",void 0),f([(0,d.property)({type:Boolean,attribute:"show-custom-error",reflect:!0})],s.prototype,"showCustomError",void 0),f([(0,d.property)({type:Boolean,attribute:"show-loader",reflect:!0})],s.prototype,"showLoader",void 0),f([(0,d.property)({type:Boolean,attribute:"show-selected-count",reflect:!0})],s.prototype,"showSelectedCount",void 0),f([(0,d.property)({type:String,attribute:"popup-chevron-aria-hidden"})],s.prototype,"popupChevronAriaHidden",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"newMomentum",void 0),f([(0,d.property)({type:Boolean,attribute:"show-filter-icon"})],s.prototype,"showFilterIcon",void 0),f([(0,d.property)({type:Boolean,attribute:"prevent-filter"})],s.prototype,"preventFilter",void 0),f([(0,d.property)({type:Boolean,attribute:"is-dropdown-arrow"})],s.prototype,"isDropdownArrow",void 0),f([(0,d.property)({type:String})],s.prototype,"comboboxId",void 0),f([(0,d.property)({type:String})],s.prototype,"helpText",void 0),f([(0,d.property)({type:Array})],s.prototype,"messageArr",void 0),f([(0,d.property)({type:String})],s.prototype,"htmlId",void 0),f([(0,d.property)({type:Boolean,reflect:!0})],s.prototype,"readOnly",void 0),f([(0,d.internalProperty)()],s.prototype,"isOptGroup",void 0),f([(0,d.internalProperty)()],s.prototype,"isSelectAllChecked",void 0),f([(0,d.query)(".group")],s.prototype,"group",void 0),f([(0,d.query)(".md-combobox-listbox")],s.prototype,"input",void 0),f([(0,d.query)(".md-combobox-button")],s.prototype,"button",void 0),f([(0,d.query)("div#md-combobox-listbox")],s.prototype,"listBox",void 0),f([(0,d.query)(".virtual-scroll")],s.prototype,"virtualizer",void 0),f([(0,d.queryAll)("div.md-combobox-option")],s.prototype,"lists",void 0),f([(0,d.queryAll)(".group-label")],s.prototype,"labels",void 0),f([(0,d.queryAll)(".md-combobox-selected-item")],s.prototype,"selected",void 0),s=f([(0,n.w)("md-combobox")],s),t.ELEMENT=s}(i||(i={}))},8229:t=>{t.exports=s},8827:t=>{t.exports=x},9614:t=>{t.exports=f},15553:t=>{t.exports=g},17874:t=>{t.exports=O},22818:t=>{t.exports=r},23035:t=>{t.exports=I},23968:t=>{t.exports=e},32022:t=>{t.exports=l},32325:t=>{t.exports=c},40333:t=>{t.exports=i},41392:t=>{t.exports=p},41488:e=>{e.exports=t},46180:t=>{t.exports=d},60554:t=>{t.exports=n},63830:t=>{t.exports=y},70369:t=>{t.exports=b},81187:t=>{t.exports=h},86635:t=>{t.exports=a},87344:t=>{t.exports=m},88069:t=>{t.exports=u},92033:t=>{t.exports=v},97822:t=>{t.exports=o}},L={};function V(t){var e=L[t];if(void 0!==e)return e.exports;var s=L[t]={exports:{}};return C[t].call(s.exports,s,s.exports,V),s.exports}V.m=C,S=[],V.O=(t,e,s,i)=>{if(!e){var o=1/0;for(a=0;a<S.length;a++){for(var[e,s,i]=S[a],l=!0,n=0;n<e.length;n++)(!1&i||o>=i)&&Object.keys(V.O).every((t=>V.O[t](e[n])))?e.splice(n--,1):(l=!1,i<o&&(o=i));if(l){S.splice(a--,1);var r=s();void 0!==r&&(t=r)}}return t}i=i||0;for(var a=S.length;a>0&&S[a-1][2]>i;a--)S[a]=S[a-1];S[a]=[e,s,i]},V.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return V.d(e,{a:e}),e},A=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,V.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 s=Object.create(null);V.r(s);var i={};w=w||[null,A({}),A([]),A(A)];for(var o=2&e&&t;"object"==typeof o&&!~w.indexOf(o);o=A(o))Object.getOwnPropertyNames(o).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,V.d(s,i),s},V.d=(t,e)=>{for(var s in e)V.o(e,s)&&!V.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},V.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),V.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),V.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={2169:0,2547:0};V.O.j=e=>0===t[e];var e=(e,s)=>{var i,o,[l,n,r]=s,a=0;if(l.some((e=>0!==t[e]))){for(i in n)V.o(n,i)&&(V.m[i]=n[i]);if(r)var d=r(V)}for(e&&e(s);a<l.length;a++)o=l[a],V.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return V.O(d)},s=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];s.forEach(e.bind(null,0)),s.push=e.bind(null,s.push.bind(s))})();var $=V.O(void 0,[4367,7103,1890,6272,6325,6283,9217,2176,6798,6248,1200,8889,300,8373,4624,591,768,3001,4977,109,6795,1439,5433],(()=>V(4928)));return V.O($)})()));
|
package/dist/comp/md-combobox.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require("../4367"),require("../7103"),require("../1890"),require("../6272"),require("../6325"),require("../
|
|
1
|
+
require("../4367"),require("../7103"),require("../1890"),require("../6272"),require("../6325"),require("../6283"),require("../9217"),require("../2176"),require("../6798"),require("../6248"),require("../1200"),require("../8889"),require("../300"),require("../8373"),require("../4624"),require("../591"),require("../768"),require("../3001"),require("../4977"),require("../109"),require("../6795"),require("../1439"),require("../5433"),module.exports=require("../comp/md-combobox-entry");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,s){if("object"==typeof exports&&"object"==typeof module)module.exports=s(require("lit-element"),require("luxon"),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("@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"),require("lit-html/directives/class-map.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("mobx"));else if("function"==typeof define&&define.amd)define(["lit-element","luxon","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","@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg","@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-x.svg","@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg","lit-html/directives/class-map.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","mobx"],s);else{var o="object"==typeof exports?s(require("lit-element"),require("luxon"),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("@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"),require("lit-html/directives/class-map.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("mobx")):s(e["lit-element"],e.luxon,e["lit-html/directives/style-map"],e["lit-html"],e["lit-html/directives/class-map"],e["lit-html/directives/if-defined"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e["@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"],e["lit-html/directives/class-map.js"],e["lit-html/directives/repeat"],e["@popperjs/core/lib/modifiers/arrow"],e["@popperjs/core/lib/modifiers/flip"],e["@popperjs/core/lib/modifiers/offset"],e["@popperjs/core/lib/modifiers/preventOverflow"],e["@popperjs/core/lib/popper-lite"],e.mobx);for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,((e,s,o,i,t,r,l,a,n,m,d,g,u,c,v,p,b,f,h,q,x,j,D,y,w,O,S,T,k,E)=>(()=>{"use strict";var C,P={4863:e=>{e.exports=k},8229:e=>{e.exports=o},8827:e=>{e.exports=g},9614:e=>{e.exports=u},15553:e=>{e.exports=p},17518:e=>{e.exports=D},17874:e=>{e.exports=m},19011:e=>{e.exports=f},22818:e=>{e.exports=y},22962:e=>{e.exports=w},23035:e=>{e.exports=n},23968:e=>{e.exports=t},32022:e=>{e.exports=l},32325:e=>{e.exports=h},40333:e=>{e.exports=i},41488:s=>{s.exports=e},46180:e=>{e.exports=j},60554:e=>{e.exports=a},63830:e=>{e.exports=d},65796:e=>{e.exports=s},68250:e=>{e.exports=S},69371:e=>{e.exports=T},69494:(e,s,o)=>{o.r(s),o.d(s,{DateRangePicker:()=>i});var i,t=o(31890),r=o(41488),l=o(65796),a=o(38654),n=function(e,s,o,i){var t,r=arguments.length,l=r<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,s,o,i);else for(var a=e.length-1;a>=0;a--)(t=e[a])&&(l=(r<3?t(l):r>3?t(s,o,l):t(s,o))||l);return r>3&&l&&Object.defineProperty(s,o,l),l};!function(e){let s=class extends a.DatePicker.ELEMENT{constructor(){super(...arguments),this.startDate=void 0,this.endDate=void 0,this.updateValue=()=>{this.startDate&&this.endDate&&(this.value=`${this.sqlDateToSlashes(this.startDate)} - ${this.sqlDateToSlashes(this.endDate)}`)},this.handleDateSelection=e=>{const s=e.detail.data;this.startDate?this.endDate?(this.startDate=this.dateToSqlTranslate(s),this.endDate=void 0):s<l.DateTime.fromISO(this.startDate)?(this.endDate=this.startDate,this.startDate=this.dateToSqlTranslate(s)):this.endDate=this.dateToSqlTranslate(s):this.startDate=this.dateToSqlTranslate(s),this.emitDateRange(),this.updateValue()}}connectedCallback(){super.connectedCallback(),super.render(),this.addEventListener("date-selection-change",this.handleDateSelection)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("date-selection-change",this.handleDateSelection)}dateToSqlTranslate(e){return e.toSQLDate()}sqlDateToSlashes(e){return e.replace(/-+/g,"/")}emitDateRange(){if(!this.startDate||!this.endDate)return;const e=new CustomEvent("date-range-change",{detail:{startDate:this.startDate,endDate:this.endDate}});this.dispatchEvent(e)}};n([(0,r.property)({type:String,attribute:"start-date",reflect:!0})],s.prototype,"startDate",void 0),n([(0,r.property)({type:String,attribute:"end-date",reflect:!0})],s.prototype,"endDate",void 0),s=n([(0,t.w)("md-date-range-picker")],s),e.ELEMENT=s}(i||(i={}))},70369:e=>{e.exports=v},81187:e=>{e.exports=x},84157:e=>{e.exports=O},85314:e=>{e.exports=E},87344:e=>{e.exports=b},88069:e=>{e.exports=q},92033:e=>{e.exports=c},97822:e=>{e.exports=r}},N={};function R(e){var s=N[e];if(void 0!==s)return s.exports;var o=N[e]={exports:{}};return P[e](o,o.exports,R),o.exports}R.m=P,C=[],R.O=(e,s,o,i)=>{if(!s){var t=1/0;for(n=0;n<C.length;n++){for(var[s,o,i]=C[n],r=!0,l=0;l<s.length;l++)(!1&i||t>=i)&&Object.keys(R.O).every((e=>R.O[e](s[l])))?s.splice(l--,1):(r=!1,i<t&&(t=i));if(r){C.splice(n--,1);var a=o();void 0!==a&&(e=a)}}return e}i=i||0;for(var n=C.length;n>0&&C[n-1][2]>i;n--)C[n]=C[n-1];C[n]=[s,o,i]},R.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return R.d(s,{a:s}),s},R.d=(e,s)=>{for(var o in s)R.o(s,o)&&!R.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:s[o]})},R.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),R.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={2105:0};R.O.j=s=>0===e[s];var s=(s,o)=>{var i,t,[r,l,a]=o,n=0;if(r.some((s=>0!==e[s]))){for(i in l)R.o(l,i)&&(R.m[i]=l[i]);if(a)var m=a(R)}for(s&&s(o);n<r.length;n++)t=r[n],R.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return R.O(m)},o=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];o.forEach(s.bind(null,0)),o.push=s.bind(null,o.push.bind(o))})();var V=R.O(void 0,[4367,1890,6272,6325,6875,2176,6798,6248,1200,2576,8210,1270,3135,1598,4977,1572,6396,6366,109,4974,1323,6408,6754,4548,7719,984,1625,7814,6273,6652],(()=>R(69494)));return R.O(V)})()));
|
|
1
|
+
!function(e,s){if("object"==typeof exports&&"object"==typeof module)module.exports=s(require("lit-element"),require("luxon"),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("lit-html/directives/class-map.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("mobx"),require("@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"));else if("function"==typeof define&&define.amd)define(["lit-element","luxon","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","lit-html/directives/class-map.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","mobx","@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg","@momentum-design/brand-visuals/dist/logos/svg/social-x.svg","@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg","@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg","@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg","@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"],s);else{var o="object"==typeof exports?s(require("lit-element"),require("luxon"),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("lit-html/directives/class-map.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("mobx"),require("@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"),require("@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg")):s(e["lit-element"],e.luxon,e["lit-html/directives/style-map"],e["lit-html"],e["lit-html/directives/class-map"],e["lit-html/directives/if-defined"],e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e["lit-html/directives/class-map.js"],e["lit-html/directives/repeat"],e["@popperjs/core/lib/modifiers/arrow"],e["@popperjs/core/lib/modifiers/flip"],e["@popperjs/core/lib/modifiers/offset"],e["@popperjs/core/lib/modifiers/preventOverflow"],e["@popperjs/core/lib/popper-lite"],e.mobx,e["@momentum-design/brand-visuals/dist/logos/svg/webex-app-icon-color-container.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-x.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-whatsapp-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-wechat-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-viber-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-telegram-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-rcs-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-microsoft-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-line-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-fbmessenger-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-facebook-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/social-alexa-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/cisco-ai-assistant-color.svg"],e["@momentum-design/brand-visuals/dist/logos/svg/apple-business-chat-color.svg"]);for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,((e,s,o,i,t,r,l,a,n,m,d,u,g,c,v,p,b,f,h,q,x,j,D,y,O,w,S,T,k,E)=>(()=>{"use strict";var P,_,C,N={4863:e=>{e.exports=v},8229:e=>{e.exports=o},8827:e=>{e.exports=S},9614:e=>{e.exports=w},15553:e=>{e.exports=D},17518:e=>{e.exports=n},17874:e=>{e.exports=k},22818:e=>{e.exports=m},22962:e=>{e.exports=d},23035:e=>{e.exports=E},23968:e=>{e.exports=t},32022:e=>{e.exports=l},32325:e=>{e.exports=q},40333:e=>{e.exports=i},41392:e=>{e.exports=x},41488:s=>{s.exports=e},46180:e=>{e.exports=b},60554:e=>{e.exports=a},63830:e=>{e.exports=T},65796:e=>{e.exports=s},68250:e=>{e.exports=g},69371:e=>{e.exports=c},69494:(e,s,o)=>{o.r(s),o.d(s,{DateRangePicker:()=>i});var i,t=o(31890),r=o(41488),l=o(65796),a=o(38654),n=function(e,s,o,i){var t,r=arguments.length,l=r<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,s,o,i);else for(var a=e.length-1;a>=0;a--)(t=e[a])&&(l=(r<3?t(l):r>3?t(s,o,l):t(s,o))||l);return r>3&&l&&Object.defineProperty(s,o,l),l};!function(e){let s=class extends a.DatePicker.ELEMENT{constructor(){super(...arguments),this.startDate=void 0,this.endDate=void 0,this.updateValue=()=>{this.startDate&&this.endDate&&(this.value=`${this.sqlDateToSlashes(this.startDate)} - ${this.sqlDateToSlashes(this.endDate)}`)},this.handleDateSelection=e=>{const s=e.detail.data;this.startDate?this.endDate?(this.startDate=this.dateToSqlTranslate(s),this.endDate=void 0):s<l.DateTime.fromISO(this.startDate)?(this.endDate=this.startDate,this.startDate=this.dateToSqlTranslate(s)):this.endDate=this.dateToSqlTranslate(s):this.startDate=this.dateToSqlTranslate(s),this.emitDateRange(),this.updateValue()}}connectedCallback(){super.connectedCallback(),super.render(),this.addEventListener("date-selection-change",this.handleDateSelection)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("date-selection-change",this.handleDateSelection)}dateToSqlTranslate(e){return e.toSQLDate()}sqlDateToSlashes(e){return e.replace(/-+/g,"/")}emitDateRange(){if(!this.startDate||!this.endDate)return;const e=new CustomEvent("date-range-change",{detail:{startDate:this.startDate,endDate:this.endDate}});this.dispatchEvent(e)}};n([(0,r.property)({type:String,attribute:"start-date",reflect:!0})],s.prototype,"startDate",void 0),n([(0,r.property)({type:String,attribute:"end-date",reflect:!0})],s.prototype,"endDate",void 0),s=n([(0,t.w)("md-date-range-picker")],s),e.ELEMENT=s}(i||(i={}))},70369:e=>{e.exports=y},81187:e=>{e.exports=f},84157:e=>{e.exports=u},85314:e=>{e.exports=p},87344:e=>{e.exports=j},88069:e=>{e.exports=h},92033:e=>{e.exports=O},97822:e=>{e.exports=r}},M={};function R(e){var s=M[e];if(void 0!==s)return s.exports;var o=M[e]={exports:{}};return N[e](o,o.exports,R),o.exports}R.m=N,P=[],R.O=(e,s,o,i)=>{if(!s){var t=1/0;for(n=0;n<P.length;n++){for(var[s,o,i]=P[n],r=!0,l=0;l<s.length;l++)(!1&i||t>=i)&&Object.keys(R.O).every((e=>R.O[e](s[l])))?s.splice(l--,1):(r=!1,i<t&&(t=i));if(r){P.splice(n--,1);var a=o();void 0!==a&&(e=a)}}return e}i=i||0;for(var n=P.length;n>0&&P[n-1][2]>i;n--)P[n]=P[n-1];P[n]=[s,o,i]},R.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return R.d(s,{a:s}),s},C=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,R.t=function(e,s){if(1&s&&(e=this(e)),8&s)return e;if("object"==typeof e&&e){if(4&s&&e.__esModule)return e;if(16&s&&"function"==typeof e.then)return e}var o=Object.create(null);R.r(o);var i={};_=_||[null,C({}),C([]),C(C)];for(var t=2&s&&e;"object"==typeof t&&!~_.indexOf(t);t=C(t))Object.getOwnPropertyNames(t).forEach((s=>i[s]=()=>e[s]));return i.default=()=>e,R.d(o,i),o},R.d=(e,s)=>{for(var o in s)R.o(s,o)&&!R.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:s[o]})},R.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),R.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={2105:0};R.O.j=s=>0===e[s];var s=(s,o)=>{var i,t,[r,l,a]=o,n=0;if(r.some((s=>0!==e[s]))){for(i in l)R.o(l,i)&&(R.m[i]=l[i]);if(a)var m=a(R)}for(s&&s(o);n<r.length;n++)t=r[n],R.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return R.O(m)},o=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];o.forEach(s.bind(null,0)),o.push=s.bind(null,o.push.bind(o))})();var V=R.O(void 0,[4367,1890,6272,6325,6283,9217,2176,6798,6248,1200,2576,8210,1270,3135,1598,4977,1572,6396,6366,109,4974,1323,6408,6754,4548,7719,984,1625,7814,6273,6652],(()=>R(69494)));return R.O(V)})()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require("../4367"),require("../1890"),require("../6272"),require("../6325"),require("../
|
|
1
|
+
require("../4367"),require("../1890"),require("../6272"),require("../6325"),require("../6283"),require("../9217"),require("../2176"),require("../6798"),require("../6248"),require("../1200"),require("../2576"),require("../8210"),require("../1270"),require("../3135"),require("../1598"),require("../4977"),require("../1572"),require("../6396"),require("../6366"),require("../109"),require("../4974"),require("../1323"),require("../6408"),require("../6754"),require("../4548"),require("../7719"),require("../984"),require("../1625"),require("../7814"),require("../6273"),require("../6652"),module.exports=require("../comp/md-date-range-picker-entry");
|