@momentum-ui/web-components 2.25.3 → 2.25.4

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.
@@ -30,7 +30,7 @@
30
30
  `)():a.nothing}
31
31
  <slot></slot>
32
32
  </span>
33
- `}};h([(0,l.property)({type:String})],e.prototype,"ariaLabel",void 0),h([(0,l.property)({type:String})],e.prototype,"color",void 0),h([(0,l.property)({type:String})],e.prototype,"bgColor",void 0),h([(0,l.property)({type:String})],e.prototype,"textColor",void 0),h([(0,l.property)({type:String})],e.prototype,"height",void 0),h([(0,l.property)({type:String})],e.prototype,"width",void 0),h([(0,l.property)({type:Boolean})],e.prototype,"outlined",void 0),h([(0,l.property)({type:Boolean})],e.prototype,"compact",void 0),h([(0,l.property)({type:Boolean})],e.prototype,"circle",void 0),h([(0,l.property)({type:Number,attribute:"circle-size"})],e.prototype,"circleSize",void 0),h([(0,l.property)({type:Number})],e.prototype,"size",void 0),h([(0,l.property)({type:Boolean})],e.prototype,"small",void 0),h([(0,l.property)({type:Boolean})],e.prototype,"split",void 0),h([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,l.property)({type:String})],e.prototype,"tabIndexing",void 0),h([(0,l.property)({type:String})],e.prototype,"ariaHiddenSplits",void 0),e=h([(0,o.w)("md-badge")],e),t.ELEMENT=e}(s||(s={}))},85314:t=>{t.exports=a},86610:(t,e,i)=>{i.r(e),i.d(e,{TaskItem:()=>s}),i(38028),i(63704),i(61200);var s,o=i(31890),r=i(26272),l=i(41488),a=i(40333),n=i(23968),p=i(31465),d=i(5657),m=i(50182),h=i(97822),c=function(t,e,i,s){var o,r=arguments.length,l=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(l=(r<3?o(l):r>3?o(e,i,l):o(e,i))||l);return r>3&&l&&Object.defineProperty(e,i,l),l};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.mediaType=p.r.TELEPHONY,this.status="",this.popovertitle="",this.queue="",this.queueTimeLabel="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.disabled=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.isRestyle=!1,this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.additionEmptyMargin=!1}get title(){return this.displayTitle}set title(t){this.titleValue=t,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(t){this.itemTitleValue=t,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}handleClick(t){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.blur()}handleKeyDown(t){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:t.code},bubbles:!0,composed:!0}))}getAriaLabel(){var t,e,i,s;if(this.customAriaLabel)return this.customAriaLabel;let o=this.queue;if(!o){const i=this.querySelector('[slot="queue"]');if(i){o=null!==(e=null===(t=i.textContent)||void 0===t?void 0:t.trim())&&void 0!==e?e:i.innerText.trim();const s=/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/.exec(o);if(s){const[,t=0,e,i]=s.map(Number);(new Date).setHours(t,e,i),o=o.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${t?t+" hours ":""}${e} minutes ${i} seconds`)}}}const r=this.querySelector('[slot="queue-time"]');let l=this.queueTimeLabel;return r&&(l+=`${null!==(s=null===(i=r.textContent)||void 0===i?void 0:i.trim())&&void 0!==s?s:r.innerText.trim()}`),`${this.mediaType} ${this.status} ${this.popovertitle} ${this.itemTitle} ${o} ${l} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,m.A]}get sanitizedTabIndexForContainer(){var t;return null!==(t=parseInt(this.tabIndexForContainer))&&void 0!==t?t:0}handleAdditionSlotChange(){var t;const e=(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-taskitem__addition")).getBoundingClientRect();this.additionEmptyMargin=0===e.width&&0===e.height}render(){return l.html`
33
+ `}};h([(0,l.property)({type:String})],e.prototype,"ariaLabel",void 0),h([(0,l.property)({type:String})],e.prototype,"color",void 0),h([(0,l.property)({type:String})],e.prototype,"bgColor",void 0),h([(0,l.property)({type:String})],e.prototype,"textColor",void 0),h([(0,l.property)({type:String})],e.prototype,"height",void 0),h([(0,l.property)({type:String})],e.prototype,"width",void 0),h([(0,l.property)({type:Boolean})],e.prototype,"outlined",void 0),h([(0,l.property)({type:Boolean})],e.prototype,"compact",void 0),h([(0,l.property)({type:Boolean})],e.prototype,"circle",void 0),h([(0,l.property)({type:Number,attribute:"circle-size"})],e.prototype,"circleSize",void 0),h([(0,l.property)({type:Number})],e.prototype,"size",void 0),h([(0,l.property)({type:Boolean})],e.prototype,"small",void 0),h([(0,l.property)({type:Boolean})],e.prototype,"split",void 0),h([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,l.property)({type:String})],e.prototype,"tabIndexing",void 0),h([(0,l.property)({type:String})],e.prototype,"ariaHiddenSplits",void 0),e=h([(0,o.w)("md-badge")],e),t.ELEMENT=e}(s||(s={}))},85314:t=>{t.exports=a},86610:(t,e,i)=>{i.r(e),i.d(e,{TaskItem:()=>s}),i(38028),i(63704),i(61200);var s,o=i(31890),r=i(26272),l=i(41488),a=i(40333),n=i(23968),p=i(97822),d=i(31465),m=i(5657),h=i(50182),c=function(t,e,i,s){var o,r=arguments.length,l=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(l=(r<3?o(l):r>3?o(e,i,l):o(e,i))||l);return r>3&&l&&Object.defineProperty(e,i,l),l};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.mediaType=d.r.TELEPHONY,this.status="",this.popovertitle="",this.queue="",this.queueTimeLabel="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.disabled=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.isRestyle=!1,this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.additionEmptyMargin=!1}get title(){return this.displayTitle}set title(t){this.titleValue=t,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(t){this.itemTitleValue=t,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}handleClick(t){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.blur()}handleKeyDown(t){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:t.code},bubbles:!0,composed:!0}))}getAriaLabel(){var t,e,i,s;if(this.customAriaLabel)return this.customAriaLabel;let o=this.queue;if(!o){const i=this.querySelector('[slot="queue"]');if(i){o=null!==(e=null===(t=i.textContent)||void 0===t?void 0:t.trim())&&void 0!==e?e:i.innerText.trim();const s=/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/.exec(o);if(s){const[,t=0,e,i]=s.map(Number);(new Date).setHours(t,e,i),o=o.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${t?t+" hours ":""}${e} minutes ${i} seconds`)}}}const r=this.querySelector('[slot="queue-time"]');let l=this.queueTimeLabel;return r&&(l+=`${null!==(s=null===(i=r.textContent)||void 0===i?void 0:i.trim())&&void 0!==s?s:r.innerText.trim()}`),`${this.mediaType} ${this.status} ${this.popovertitle} ${this.itemTitle} ${o} ${l} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,h.A]}get sanitizedTabIndexForContainer(){var t;return null!==(t=parseInt(this.tabIndexForContainer))&&void 0!==t?t:0}handleAdditionSlotChange(){var t;const e=(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-taskitem__addition")).getBoundingClientRect();this.additionEmptyMargin=0===e.width&&0===e.height}render(){return l.html`
34
34
  <div
35
35
  part="task-item-container"
36
36
  class="md-taskitem ${(0,n.classMap)({selected:this.selected})}"
@@ -39,11 +39,11 @@
39
39
  @click=${t=>this.handleClick(t)}
40
40
  @keydown=${t=>this.handleKeyDown(t)}
41
41
  aria-label=${this.getAriaLabel()}
42
- aria-disabled=${(0,h.ifDefined)(this.disabled||void 0)}
42
+ aria-disabled=${(0,p.ifDefined)(this.disabled||void 0)}
43
43
  >
44
44
  <div class="md-taskitem__mediatype">
45
- ${(0,d.i0)(this.isRestyle,this.mediaType,this.selected,this.status,this.iconSrc)}
46
- ${this.status&&!this.isRestyle?l.html` <span class=${`md-taskitem__status ${this.status}`}> ${(0,d.LG)(this.status)} </span> `:a.nothing}
45
+ ${(0,m.i0)(this.isRestyle,this.mediaType,this.selected,this.status,this.iconSrc)}
46
+ ${this.status&&!this.isRestyle?l.html` <span class=${`md-taskitem__status ${this.status}`}> ${(0,m.LG)(this.status)} </span> `:a.nothing}
47
47
  </div>
48
48
  <div class="md-taskitem__content" part="task-item-content">
49
49
  ${this.popovertitle?l.html`
@@ -56,7 +56,9 @@
56
56
  class="md-taskitem__content_title ${(0,n.classMap)({mainTitle:!this.popovertitle,"display-only-title":this.displayOnlyTitle})}"
57
57
  ><md-tooltip placement="bottom" slot-to-tooltip>${this.itemTitle}</md-tooltip></span
58
58
  >
59
- `:l.html` <span class="md-taskitem__content_popover_title popover-item-title"><slot name="title"></slot></span> `}
59
+ `:l.html`
60
+ <span class="md-taskitem__content_popover_title popover-item-title"><slot name="title"></slot></span>
61
+ `}
60
62
  <div class="md-taskitem__content_inner">
61
63
  ${this.displayOnlyTitle?a.nothing:l.html`
62
64
  <span class="md-taskitem__content_queue">
@@ -83,8 +85,8 @@
83
85
  ${this.lastmessage?a.nothing:l.html` <slot name="lastmessage"></slot> `}
84
86
  </div>
85
87
  <div class="md-taskitem__addition ${(0,n.classMap)({empty_addition:this.additionEmptyMargin})}">
86
- <slot @slotchange="${this.handleAdditionSlotChange}"></slot>
87
- ${(0,d.Um)(this.quantity,this.isRestyle,this)}
88
+ <slot @slotchange=${this.handleAdditionSlotChange}></slot>
89
+ ${(0,m.Um)(this.quantity,this.isRestyle,this)}
88
90
  </div>
89
91
  </div>
90
92
  `}};c([(0,l.property)({type:String})],e.prototype,"mediaType",void 0),c([(0,l.property)({type:String})],e.prototype,"status",void 0),c([(0,l.property)({type:String})],e.prototype,"popovertitle",void 0),c([(0,l.property)({type:String})],e.prototype,"queue",void 0),c([(0,l.property)({type:String,attribute:"queue-time-label"})],e.prototype,"queueTimeLabel",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"accepted",void 0),c([(0,l.property)({type:Boolean,attribute:"display-only-title"})],e.prototype,"displayOnlyTitle",void 0),c([(0,l.property)({type:Number})],e.prototype,"quantity",void 0),c([(0,l.property)({type:String})],e.prototype,"lastmessage",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"selected",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,l.property)({type:String})],e.prototype,"customAriaLabel",void 0),c([(0,l.property)({type:String})],e.prototype,"iconSrc",void 0),c([(0,l.property)({type:String})],e.prototype,"tabIndexForContainer",void 0),c([(0,l.property)({type:Boolean,attribute:"is-restyle"})],e.prototype,"isRestyle",void 0),c([(0,l.property)({type:String,reflect:!0})],e.prototype,"title",null),c([(0,l.property)({type:String,reflect:!0,attribute:"item-title"})],e.prototype,"itemTitle",null),c([(0,l.internalProperty)()],e.prototype,"additionEmptyMargin",void 0),e=c([(0,o.w)("md-task-item")],e),t.ELEMENT=e}(s||(s={}))},97822:t=>{t.exports=o}},h={};function c(t){var e=h[t];if(void 0!==e)return e.exports;var i=h[t]={exports:{}};return m[t](i,i.exports,c),i.exports}c.m=m,d=[],c.O=(t,e,i,s)=>{if(!e){var o=1/0;for(n=0;n<d.length;n++){for(var[e,i,s]=d[n],r=!0,l=0;l<e.length;l++)(!1&s||o>=s)&&Object.keys(c.O).every(t=>c.O[t](e[l]))?e.splice(l--,1):(r=!1,s<o&&(o=s));if(r){d.splice(n--,1);var a=i();void 0!==a&&(t=a)}}return t}s=s||0;for(var n=d.length;n>0&&d[n-1][2]>s;n--)d[n]=d[n-1];d[n]=[e,i,s]},c.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return c.d(e,{a:e}),e},c.d=(t,e)=>{for(var i in e)c.o(e,i)&&!c.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},c.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),c.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={8111:0,8339:0};c.O.j=e=>0===t[e];var e=(e,i)=>{var s,o,[r,l,a]=i,n=0;if(r.some(e=>0!==t[e])){for(s in l)c.o(l,s)&&(c.m[s]=l[s]);if(a)var p=a(c)}for(e&&e(i);n<r.length;n++)o=r[n],c.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return c.O(p)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var u=c.O(void 0,[6633,1890,6272,6325,6283,9217,2176,6798,5830,1200,2576,3553,6877,6700,8923,7119,8028,2019,8612,5427],()=>c(86610));return c.O(u)})());
@@ -12,9 +12,9 @@
12
12
  max=${(0,h.ifDefined)(e.max)}
13
13
  maxLength=${2}
14
14
  placeholder="${y[t]}"
15
- @input-change="${e=>this.handleTimeChange(e,t)}"
16
- @input-keydown="${e=>this.handleTimeKeyDown(e,t)}"
17
- @input-blur="${e=>this.handleTimeBlur(e,t)}"
15
+ @input-change=${e=>this.handleTimeChange(e,t)}
16
+ @input-keydown=${e=>this.handleTimeKeyDown(e,t)}
17
+ @input-blur=${e=>this.handleTimeBlur(e,t)}
18
18
  .messageArr=${[{message:"",type:this.messageType(this.timeValidity[t])}]}
19
19
  .ariaLabel="${t}-input"
20
20
  ariaInvalid="${!this.timeValidity[t]}"
@@ -31,7 +31,7 @@
31
31
  no-clear-icon
32
32
  .inputValue=${this.timeValue[s.R5.AM_PM]}
33
33
  .ariaLabel=${this.timeValue[s.R5.AM_PM]}
34
- @change-selected="${t=>this.handleTimeChange(t,s.R5.AM_PM)}"
34
+ @change-selected=${t=>this.handleTimeChange(t,s.R5.AM_PM)}
35
35
  >
36
36
  </md-combobox>
37
37
  `}get timePickerClassMap(){return{"twenty-four-hour-format":this.finalTwentyFourFormat}}connectedCallback(){super.connectedCallback(),this.initializeTimeValues()}updated(t){super.updated(t),["value","locale","twentyFourHourFormat","showDefaultNowTime","timeSpecificity"].some(e=>t.has(e))&&this.initializeTimeValues()}initializeTimeValues(){if(this.showDefaultNowTime||this.value){const t=this.value||(0,r.tB)().toISOTime({suppressMilliseconds:!0});t&&this.updateValue(t)}else{const t=c.DateTime.now().setLocale(this.locale),e=this.getLocaleTimeFormat(t);this.finalTwentyFourFormat=this.twentyFourHourFormat||e;const i=this.timeSpecificity===s.R5.MINUTE||this.timeSpecificity===s.R5.SECOND,o=this.timeSpecificity===s.R5.SECOND;this.timeValue={[s.R5.HOUR]:"",[s.R5.MINUTE]:i?"":"00",[s.R5.SECOND]:o?"":"00",[s.R5.AM_PM]:"AM"}}}updateValue(t){const e=t||this.value;if(!e)return;this.timeObject=c.DateTime.fromISO(e,{locale:this.locale});const i=this.getLocaleTimeFormat(this.timeObject);this.finalTwentyFourFormat=this.twentyFourHourFormat||i,this.value=this.timeObject.toISOTime({suppressMilliseconds:!0}),this.updateTimeValues()}dispatchTimeChangeEvent(){this.dispatchEvent(new CustomEvent("time-selection-change",{bubbles:!0,composed:!0,detail:{time:this.value,data:this.timeObject,isValid:this.isEntireTimeValid()}}))}handleTimeChange(t,e){var i,o,r;this.timeValue[e]=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.value,this.requestUpdate(),this.formatTimeUnit(e);const a=this.timeValue[e];if(this.twoDigitAutoTab&&this.tabNext&&(e!==s.R5.AM_PM&&2===a.length&&"0"!==a[0]||"00"===a)){t.preventDefault();const e=null==t?void 0:t.target,i=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("md-input, md-combobox");if(i){const t=Array.prototype.findIndex.call(i,t=>null==e?void 0:e.isEqualNode(t)),s=(t+1)%i.length;if(t<i.length-1){const t=null===(r=i[s].shadowRoot)||void 0===r?void 0:r.querySelector("input");null==t||t.focus()}}}else e===s.R5.AM_PM&&this.updateTimeUnit(e);t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-change`,{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.timeValue[e]}`,isValid:this.timeValidity[e]}}))}handleTimeKeyDown(t,e){var i;const o=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.srcEvent;if(!o)return void console.warn("srcEvent is undefined");const{key:r}=o;r===s.Uz.ArrowDown||r===s.Uz.ArrowUp?this.tabNext=!1:this.tabNext=!0,this.timeValidity[e]=!0,this.requestUpdate(),t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-keydown`,{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.timeValue[e]}`}}))}handleTimeBlur(t,e){"0"===this.timeValue[e]&&(this.timeValue[e]="00"),this.updateTimeUnit(e),this.requestUpdate(),t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-blur`,{bubbles:!0,composed:!0,detail:{srcEvent:t,time:this.value,isValid:this.timeValidity[e]}}))}static get styles(){return[l.A,p.A]}render(){return n.html`
@@ -324,7 +324,7 @@
324
324
  ${this.messagesTemplate()} ${this.helpTextTemplate()}
325
325
  `}};g([(0,d.property)({type:String})],i.prototype,"label",void 0),g([(0,d.property)({type:Array})],i.prototype,"options",void 0),g([(0,d.property)({type:Array,attribute:"custom-options"})],i.prototype,"customOptions",void 0),g([(0,d.property)({type:String})],i.prototype,"placeholder",void 0),g([(0,d.property)({type:Boolean,attribute:"is-multi"})],i.prototype,"isMulti",void 0),g([(0,d.property)({type:Boolean,attribute:"use-virtual-scroll"})],i.prototype,"useVirtualScroll",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"disabled",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"ordered",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"expanded",void 0),g([(0,d.property)({type:Array,reflect:!0})],i.prototype,"groupExpandedList",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchItem",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"compact",void 0),g([(0,d.property)({type:Boolean,attribute:"no-clear-icon"})],i.prototype,"noClearIcon",void 0),g([(0,d.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),g([(0,d.property)({type:Array})],i.prototype,"selectedOptions",void 0),g([(0,d.property)({type:Number,attribute:"visible-option",reflect:!0})],i.prototype,"visibleOptions",void 0),g([(0,d.property)({type:String,attribute:"option-id",reflect:!0})],i.prototype,"optionId",void 0),g([(0,d.property)({type:String,attribute:"option-value",reflect:!0})],i.prototype,"optionValue",void 0),g([(0,d.property)({type:Boolean,attribute:"with-custom-content"})],i.prototype,"isCustomContent",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchable",void 0),g([(0,d.property)({type:String})],i.prototype,"shape",void 0),g([(0,d.property)({type:Array})],i.prototype,"value",void 0),g([(0,d.property)({type:String,attribute:"input-value",reflect:!0})],i.prototype,"inputValue",void 0),g([(0,d.property)({type:Boolean,attribute:"allow-custom-value",reflect:!0})],i.prototype,"allowCustomValue",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),g([(0,d.property)({type:String,attribute:"no-results-i18n"})],i.prototype,"resultsTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"no-options-i18n"})],i.prototype,"optionsTextLocalization",void 0),g([(0,d.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],i.prototype,"trimSpace",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"invalid",void 0),g([(0,d.property)({type:String,reflect:!0,attribute:"invalid-text-i18n"})],i.prototype,"invalidText",void 0),g([(0,d.property)({type:String,reflect:!0})],i.prototype,"ariaLabel",void 0),g([(0,d.property)({type:String,attribute:"search-result-aria-label"})],i.prototype,"searchResultAriaLabel",void 0),g([(0,d.internalProperty)()],i.prototype,"ariaLabelForComboBox",void 0),g([(0,d.property)({type:String,attribute:"clear-aria-label"})],i.prototype,"clearAriaLabel",void 0),g([(0,d.property)({type:String,attribute:"arrow-aria-label"})],i.prototype,"arrowAriaLabel",void 0),g([(0,d.property)({type:String,attribute:"clear-icon-height"})],i.prototype,"clearIconHeight",void 0),g([(0,d.property)({type:String,attribute:"all-i18n"})],i.prototype,"allTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"select-all-i18n"})],i.prototype,"selectAllTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"selected-all-i18n"})],i.prototype,"selectedTextLocalization",void 0),g([(0,d.property)({type:Boolean,attribute:"allow-select-all",reflect:!0})],i.prototype,"allowSelectAll",void 0),g([(0,d.property)({type:Boolean,attribute:"show-custom-error",reflect:!0})],i.prototype,"showCustomError",void 0),g([(0,d.property)({type:Boolean,attribute:"show-loader",reflect:!0})],i.prototype,"showLoader",void 0),g([(0,d.property)({type:Boolean,attribute:"show-selected-count",reflect:!0})],i.prototype,"showSelectedCount",void 0),g([(0,d.property)({type:String,attribute:"popup-chevron-aria-hidden"})],i.prototype,"popupChevronAriaHidden",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"newMomentum",void 0),g([(0,d.property)({type:Boolean,attribute:"show-filter-icon"})],i.prototype,"showFilterIcon",void 0),g([(0,d.property)({type:Boolean,attribute:"prevent-filter"})],i.prototype,"preventFilter",void 0),g([(0,d.property)({type:Boolean,attribute:"is-dropdown-arrow"})],i.prototype,"isDropdownArrow",void 0),g([(0,d.property)({type:String})],i.prototype,"comboboxId",void 0),g([(0,d.property)({type:String})],i.prototype,"helpText",void 0),g([(0,d.property)({type:Array})],i.prototype,"messageArr",void 0),g([(0,d.property)({type:String})],i.prototype,"htmlId",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"readOnly",void 0),g([(0,d.internalProperty)()],i.prototype,"isOptGroup",void 0),g([(0,d.internalProperty)()],i.prototype,"isSelectAllChecked",void 0),g([(0,d.query)(".group")],i.prototype,"group",void 0),g([(0,d.query)(".md-combobox-listbox")],i.prototype,"input",void 0),g([(0,d.query)(".md-combobox-button")],i.prototype,"button",void 0),g([(0,d.query)("div#md-combobox-listbox")],i.prototype,"listBox",void 0),g([(0,d.query)(".virtual-scroll")],i.prototype,"virtualizer",void 0),g([(0,d.queryAll)("div.md-combobox-option")],i.prototype,"lists",void 0),g([(0,d.queryAll)(".group-label")],i.prototype,"labels",void 0),g([(0,d.queryAll)(".md-combobox-selected-item")],i.prototype,"selected",void 0),i=g([(0,n.w)("md-combobox")],i),t.ELEMENT=i}(o||(o={}))},5784:t=>{t.exports=f},6396:(t,e,i)=>{i.d(e,{Label:()=>o});var o,s=i(31890),r=i(26272),n=i(41488),a=i(17518),l=i(11598),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.label="",this.theme="",this.radioLabel=!1,this.checkboxLabel=!1,this.toggleSwitchLabel=!1,this.htmlFor="",this.active=!1,this.disabled=!1,this.indeterminate=!1,this.secondaryLabel=!1}static get styles(){return[r.A,l.A]}setFocus(){this.dispatchEvent(new CustomEvent("setFocus"))}get labelClassMap(){return{[`md-label--${this.theme}`]:!!this.theme,"md-radio__label":this.radioLabel,"md-checkbox__label":this.checkboxLabel,"md-secondary-label":this.secondaryLabel,active:this.active,disabled:this.disabled,indeterminate:this.indeterminate}}handleClick(){this.setFocus(),this.dispatchEvent(new CustomEvent("label-click",{composed:!0,bubbles:!0,detail:{htmlFor:this.htmlFor}}))}render(){return n.html`
326
326
  <label
327
- @click="${()=>this.handleClick()}"
327
+ @click=${()=>this.handleClick()}
328
328
  class="md-label ${(0,a.classMap)(this.labelClassMap)}"
329
329
  for="${this.htmlFor}"
330
330
  >
@@ -445,10 +445,10 @@
445
445
  ${this.renderOverflowY()};
446
446
  }
447
447
  </style>
448
- `}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.updateComplete.then(()=>{this.handleTriggerSlotChange()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.removeTriggerEventListeners()}checkIsInputField(t){var e;return"md-input"===(null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase())}updateTriggerElementAriaExpanded(){this.triggerElement&&(this.isOpen?(this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","true")):(this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","false")))}handleTriggerSlotChange(){this.removeTriggerEventListeners(),this.setupTriggerEventListeners(),this.updateTriggerElementAriaExpanded(),this.popperInstance&&this.destroy(),this.isOpen&&(this.create(),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",this.isOpen))}removeTriggerEventListeners(){this.triggerElement&&(this.triggerElement.removeEventListener("click",this.handleTriggerClick),this.triggerElement.removeEventListener("keydown",this.handleTriggerKeyDown),this.allowHoverToggle&&(this.triggerElement.removeEventListener("mouseenter",this.expandPopup),this.triggerElement.removeEventListener("mouseleave",this.collapsePopup),this.overlayContainer.removeEventListener("mouseenter",this.expandPopup),this.overlayContainer.removeEventListener("mouseleave",this.collapsePopup)),this.triggerElement=null)}setupTriggerEventListeners(){if(this.trigger){if(this.triggerElement=this.trigger[0],!this.triggerElement)return;this.triggerElement.addEventListener("click",this.handleTriggerClick),this.allowHoverToggle&&(this.triggerElement.addEventListener("mouseenter",this.expandPopup),this.triggerElement.addEventListener("mouseleave",this.collapsePopup),this.overlayContainer.addEventListener("mouseenter",this.expandPopup),this.overlayContainer.addEventListener("mouseleave",this.collapsePopup)),this.arrow&&this.showArrow&&this.arrow.toggleAttribute("data-show",!0),this.checkIsInputField(this.triggerElement)||this.triggerElement.addEventListener("keydown",this.handleTriggerKeyDown),this.triggerElement.setAttribute("aria-haspopup","true")}}update(t){super.update(t),t.has("isOpen")&&(this.isOpen?(this.activateFocusTrap(),document.addEventListener("menu-item-click",this.handleTriggerClick)):(this.deactivateFocusTrap(),document.removeEventListener("menu-item-click",this.handleTriggerClick))),t.has("showArrow")&&this.arrow&&this.arrow.toggleAttribute("data-show",this.showArrow)}updated(t){super.updated(t),t.has("isOpen")&&(this.isOpen?(this.dispatchMenuOpen(),requestAnimationFrame(()=>{document.addEventListener("click",this.handleOutsideOverlayClick)}),this.updateTriggerElementAriaExpanded()):(this.dispatchMenuClose(),document.removeEventListener("click",this.handleOutsideOverlayClick),this.updateTriggerElementAriaExpanded()))}dispatchMenuOpen(){this.dispatchEvent(new CustomEvent("menu-overlay-open",{composed:!0,bubbles:!0}))}dispatchMenuClose(){this.dispatchEvent(new CustomEvent("menu-overlay-close",{composed:!0,bubbles:!0}))}handleInstance(t){t?this.create():this.destroy()}create(){this.triggerElement&&(this.popperInstance=(0,v.createPopper)(this.triggerElement,this.overlayContainer,{onFirstUpdate:()=>x(this,void 0,void 0,function*(){var t;this.isOpen&&(null===(t=this.popperInstance)||void 0===t||t.update(),this.setFocusableElements(),yield this.updateComplete,this.focusInsideOverlay())}),placement:this.placement,strategy:this.positioningStrategy,modifiers:[...v.defaultModifiers,c(),m(),b(),h(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:t,reference:e})=>"left-end"===t||"right-end"===t?[e.height+e.y+3,14]:[0,this.overlayOffset]}},{name:"arrow",options:{element:this.arrow,padding:5}},{name:"computeStyles",options:{adaptive:!1}}]}))}destroy(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}toggleOverlay(){this.disabled||(this.isOpen=!this.isOpen)}focusOnTrigger(){requestAnimationFrame(()=>{var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.focusableElements[0].focus()})}focusInsideOverlay(){this.focusableElements&&(this.focusableElements.length>1?this.setInitialFocus(1):this.focusableElements.length&&this.setInitialFocus())}focusOnNestedTrigger(t){var e;null===(e=this.setFocusOnTrigger)||void 0===e||e.call(this,t)}handleWindowBlurEvent(){this._isOpen&&!this.keepOpenOnWindowBlur&&(this.isOpen=!1)}static get styles(){return[w.A]}render(){return g.html`
448
+ `}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.updateComplete.then(()=>{this.handleTriggerSlotChange()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.removeTriggerEventListeners()}checkIsInputField(t){var e;return"md-input"===(null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase())}updateTriggerElementAriaExpanded(){this.triggerElement&&(this.isOpen?(this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","true")):(this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","false")))}handleTriggerSlotChange(){this.removeTriggerEventListeners(),this.setupTriggerEventListeners(),this.updateTriggerElementAriaExpanded(),this.popperInstance&&this.destroy(),this.isOpen&&(this.create(),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",this.isOpen))}removeTriggerEventListeners(){this.triggerElement&&(this.triggerElement.removeEventListener("click",this.handleTriggerClick),this.triggerElement.removeEventListener("keydown",this.handleTriggerKeyDown),this.allowHoverToggle&&(this.triggerElement.removeEventListener("mouseenter",this.expandPopup),this.triggerElement.removeEventListener("mouseleave",this.collapsePopup),this.overlayContainer.removeEventListener("mouseenter",this.expandPopup),this.overlayContainer.removeEventListener("mouseleave",this.collapsePopup)),this.triggerElement=null)}setupTriggerEventListeners(){if(this.trigger){if(this.triggerElement=this.trigger[0],!this.triggerElement)return;this.triggerElement.addEventListener("click",this.handleTriggerClick),this.allowHoverToggle&&(this.triggerElement.addEventListener("mouseenter",this.expandPopup),this.triggerElement.addEventListener("mouseleave",this.collapsePopup),this.overlayContainer.addEventListener("mouseenter",this.expandPopup),this.overlayContainer.addEventListener("mouseleave",this.collapsePopup)),this.arrow&&this.showArrow&&this.arrow.toggleAttribute("data-show",!0),this.checkIsInputField(this.triggerElement)||this.triggerElement.addEventListener("keydown",this.handleTriggerKeyDown),this.triggerElement.setAttribute("aria-haspopup","true")}}update(t){super.update(t),t.has("isOpen")&&(this.isOpen?(this.activateFocusTrap(),document.addEventListener("menu-item-click",this.handleTriggerClick)):(this.deactivateFocusTrap(),document.removeEventListener("menu-item-click",this.handleTriggerClick))),t.has("showArrow")&&this.arrow&&this.arrow.toggleAttribute("data-show",this.showArrow)}updated(t){if(super.updated(t),t.has("isOpen")){const e=t.get("isOpen");this.isOpen?(this.dispatchMenuOpen(),requestAnimationFrame(()=>{document.addEventListener("click",this.handleOutsideOverlayClick)}),this.updateTriggerElementAriaExpanded()):!0===e&&(this.dispatchMenuClose(),document.removeEventListener("click",this.handleOutsideOverlayClick),this.updateTriggerElementAriaExpanded())}}dispatchMenuOpen(){this.dispatchEvent(new CustomEvent("menu-overlay-open",{composed:!0,bubbles:!0}))}dispatchMenuClose(){this.dispatchEvent(new CustomEvent("menu-overlay-close",{composed:!0,bubbles:!0}))}handleInstance(t){t?this.create():this.destroy()}create(){this.triggerElement&&(this.popperInstance=(0,v.createPopper)(this.triggerElement,this.overlayContainer,{onFirstUpdate:()=>x(this,void 0,void 0,function*(){var t;this.isOpen&&(null===(t=this.popperInstance)||void 0===t||t.update(),this.setFocusableElements(),yield this.updateComplete,this.focusInsideOverlay())}),placement:this.placement,strategy:this.positioningStrategy,modifiers:[...v.defaultModifiers,c(),m(),b(),h(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:t,reference:e})=>"left-end"===t||"right-end"===t?[e.height+e.y+3,14]:[0,this.overlayOffset]}},{name:"arrow",options:{element:this.arrow,padding:5}},{name:"computeStyles",options:{adaptive:!1}}]}))}destroy(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}toggleOverlay(){this.disabled||(this.isOpen=!this.isOpen)}focusOnTrigger(){requestAnimationFrame(()=>{var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.focusableElements[0].focus()})}focusInsideOverlay(){this.focusableElements&&(this.focusableElements.length>1?this.setInitialFocus(1):this.focusableElements.length&&this.setInitialFocus())}focusOnNestedTrigger(t){var e;null===(e=this.setFocusOnTrigger)||void 0===e||e.call(this,t)}handleWindowBlurEvent(){this._isOpen&&!this.keepOpenOnWindowBlur&&(this.isOpen=!1)}static get styles(){return[w.A]}render(){return g.html`
449
449
  ${this.getStyles()}
450
450
  <div class="md-menu-overlay">
451
- <slot @slotchange="${this.handleTriggerSlotChange}" name="menu-trigger"></slot>
451
+ <slot @slotchange=${this.handleTriggerSlotChange} name="menu-trigger"></slot>
452
452
  <div
453
453
  part="overlay"
454
454
  class="overlay-container"
@@ -560,7 +560,7 @@
560
560
  ariaLabel=${this.ariaLabel}
561
561
  placeholder="${this.codePlaceholder}"
562
562
  .value="${this.countryCallingCode?[this.getFormatedCountryCallingCode()]:[]}"
563
- @change-selected="${t=>this.handleCountryChange(t)}"
563
+ @change-selected=${t=>this.handleCountryChange(t)}
564
564
  with-custom-content
565
565
  ?newMomentum=${this.newMomentum}
566
566
  ?is-dropdown-arrow=${this.isDropdownArrow}
@@ -611,8 +611,8 @@
611
611
  hasRemoveStyle
612
612
  circle
613
613
  ariaLabel=${this.closeAriaLabel}
614
- @click="${this.onHide}"
615
- @keydown="${this.handleKeyDown}"
614
+ @click=${this.onHide}
615
+ @keydown=${this.handleKeyDown}
616
616
  >
617
617
  <md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
618
618
  </md-button>
@@ -627,7 +627,7 @@
627
627
  </md-icon>
628
628
  `:a.html`<slot name="left"></slot>`,o=this.titleText?"refresh-button-with-title":"refresh-button",s=this.showRefreshButton?a.html` <md-button
629
629
  class="${o}"
630
- @click="${()=>this.dispatchEvent(new CustomEvent("alertBanner-refresh-button-click"))}"
630
+ @click=${()=>this.dispatchEvent(new CustomEvent("alertBanner-refresh-button-click"))}
631
631
  variant="ghostInheritTextColor"
632
632
  circle
633
633
  size="20"
@@ -879,8 +879,8 @@
879
879
  aria-label="${this.title}"
880
880
  aria-controls="md-dropdown-list"
881
881
  aria-haspopup="listbox"
882
- ?disabled="${this.disabled}"
883
- @click="${()=>this.onLabelClick()}"
882
+ ?disabled=${this.disabled}
883
+ @click=${()=>this.onLabelClick()}
884
884
  part="dropdown-header"
885
885
  role="combobox"
886
886
  tabindex="0"
@@ -917,7 +917,7 @@
917
917
  part="dropdown-option"
918
918
  ?focused="${e===this.focusedIndex}"
919
919
  ?selected="${t.key===this.selectedKey}"
920
- @click="${()=>{this.focusToIndexWithOption(t),this.select(),this.collapse()}}"
920
+ @click=${()=>{this.focusToIndexWithOption(t),this.select(),this.collapse()}}
921
921
  >
922
922
  <span class="select-label" part="label">
923
923
  <span>${t.value}</span>
@@ -938,7 +938,7 @@
938
938
  <md-button
939
939
  hasRemoveStyle
940
940
  class="play-btn"
941
- @click="${this.togglePlay}"
941
+ @click=${this.togglePlay}
942
942
  aria-label="${this.isPlaying?this.labelMap.pauseBtn.ariaLabel:this.labelMap.playBtn.ariaLabel}"
943
943
  >
944
944
  ${this.isPlaying?n.html` <md-icon slot="icon" name="pause-bold" size="16" iconSet="momentumDesign"></md-icon> `:n.html` <md-icon slot="icon" name="play-bold" size="16" iconSet="momentumDesign"></md-icon> `}
@@ -957,7 +957,7 @@
957
957
  </div>
958
958
  <div class="timeline-container">
959
959
  <md-tooltip placement="top" message="${this.labelMap.timeline.tooltipText}">
960
- <div class="timeline" @click="${this.setTime}" aria-label="${this.labelMap.timeline.ariaLabel}">
960
+ <div class="timeline" @click=${this.setTime} aria-label="${this.labelMap.timeline.ariaLabel}">
961
961
  <div class="progress-bar" style="width: ${this.currentTime/this.duration*100}%"></div>
962
962
  <div class="buffer-bar" style="width: ${this.bufferedRange/this.duration*100}%"></div>
963
963
  </div>
@@ -965,8 +965,8 @@
965
965
  </div>
966
966
  <div
967
967
  class="volume-container"
968
- @mouseleave="${()=>this.toggleVolumeExpand(!1)}"
969
- @mouseenter="${()=>this.toggleVolumeExpand(!0)}"
968
+ @mouseleave=${()=>this.toggleVolumeExpand(!1)}
969
+ @mouseenter=${()=>this.toggleVolumeExpand(!0)}
970
970
  aria-label="${this.labelMap.volumeSlider.ariaLabel}"
971
971
  >
972
972
  <md-tooltip
@@ -975,7 +975,7 @@
975
975
  >
976
976
  <div
977
977
  class="volume"
978
- @mousedown="${this.handleVolumeChange}"
978
+ @mousedown=${this.handleVolumeChange}
979
979
  aria-label="${this.labelMap.volumeSlider.ariaLabel} ${Math.trunc(100*this.volume)}%"
980
980
  >
981
981
  <div class="volume-slider" style="width: ${this.isMuted?0:100*this.volume}%"></div>
@@ -986,7 +986,7 @@
986
986
  hasRemoveStyle
987
987
  class="volume-btn"
988
988
  aria-label="${this.labelMap.volumeBtn.ariaLabel}"
989
- @click="${this.toggleSoundMute}"
989
+ @click=${this.toggleSoundMute}
990
990
  >
991
991
  ${this.isMuted?n.html`
992
992
  <md-icon slot="icon" name="speaker-muted-bold" size="16" iconSet="momentumDesign"></md-icon>
@@ -996,7 +996,7 @@
996
996
  </div>
997
997
  <div class="speed-icon-container" aria-label="${this.labelMap.playbackSpeedBtn.ariaLabel}">
998
998
  <md-tooltip placement="top" message="${this.labelMap.playbackSpeedBtn.tooltipText}">
999
- <md-button hasRemoveStyle id="speed-btn" @click="${this.toggleSpeedPopup}">
999
+ <md-button hasRemoveStyle id="speed-btn" @click=${this.toggleSpeedPopup}>
1000
1000
  <md-icon slot="icon" name="too-fast-bold" size="16" iconSet="momentumDesign"></md-icon>
1001
1001
  </md-button>
1002
1002
  </md-tooltip>
@@ -1005,7 +1005,7 @@
1005
1005
  ${p.map(t=>{const e=this.selectedPlaybackSpeed==t.value&&!this.currentlySelectingPlaybackSpeed;return n.html`
1006
1006
  <li
1007
1007
  class=${e?"speed-popup-selected-speed":""}
1008
- @click="${()=>this.setPlaybackSpeed(t.value)}"
1008
+ @click=${()=>this.setPlaybackSpeed(t.value)}
1009
1009
  >
1010
1010
  <span>${t.label}</span>
1011
1011
  ${this.playbackSpeed==t.value?n.html`
@@ -1132,7 +1132,7 @@
1132
1132
  focus-back-to-trigger
1133
1133
  placement=${this.placement}
1134
1134
  hide-on-escape
1135
- @hidden="${()=>{this.notifyCoachClose()}}"
1135
+ @hidden=${()=>{this.notifyCoachClose()}}
1136
1136
  >
1137
1137
  <div class="md-coachmark__popper" tabindex="-1">
1138
1138
  ${this.renderHeader()} ${this.renderBody()} ${this.renderFooter()}
@@ -1149,8 +1149,8 @@
1149
1149
  size="20"
1150
1150
  circle
1151
1151
  class="md-close md-modal__close"
1152
- @click="${this.hideModal}"
1153
- @keydown="${this.handleKeyDown}"
1152
+ @click=${this.hideModal}
1153
+ @keydown=${this.handleKeyDown}
1154
1154
  ariaLabel=${this.ariaLabelClose}
1155
1155
  >
1156
1156
  <md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
@@ -1173,8 +1173,8 @@
1173
1173
  <div part="modal-footer" class="md-modal__footer">
1174
1174
  <md-button
1175
1175
  aria-label=${this.ariaLabelCancel}
1176
- @click="${this.handleFooterClick}"
1177
- @keydown="${this.handleKeyDown}"
1176
+ @click=${this.handleFooterClick}
1177
+ @keydown=${this.handleKeyDown}
1178
1178
  variant="secondary"
1179
1179
  >
1180
1180
  <span>Cancel</span>
@@ -1183,8 +1183,8 @@
1183
1183
  type="submit"
1184
1184
  variant="primary"
1185
1185
  aria-label=${this.ariaLabelSubmit}
1186
- @click="${this.handleFooterClick}"
1187
- @keydown="${this.handleKeyDown}"
1186
+ @click=${this.handleFooterClick}
1187
+ @keydown=${this.handleKeyDown}
1188
1188
  >
1189
1189
  <span>${this.closeBtnName}</span>
1190
1190
  </md-button>
@@ -1192,7 +1192,7 @@
1192
1192
  `}get modalBackDropClassMap(){return{in:this.show&&this.animating}}get modalContainerClassMap(){return{in:this.show,[`md-modal--${this.size}`]:!!this.size,[`md-modal--${this.computedAlignment}`]:!!this.computedAlignment}}render(){return d.html`
1193
1193
  ${this.show?d.html`
1194
1194
  <div part="modal-backdrop" class="md-modal__backdrop fade ${(0,p.classMap)(this.modalBackDropClassMap)}">
1195
- ${this.backdropClickExit?d.html` <div class="md-modal_overlay" @click="${this.handleCloseBackdrop}"></div> `:h.nothing}
1195
+ ${this.backdropClickExit?d.html` <div class="md-modal_overlay" @click=${this.handleCloseBackdrop}></div> `:h.nothing}
1196
1196
 
1197
1197
  <div
1198
1198
  part="modal-container"
@@ -1362,9 +1362,9 @@
1362
1362
  max=${(0,p.ifDefined)(e.max)}
1363
1363
  maxLength=${2}
1364
1364
  placeholder="${v[t]}"
1365
- @input-change="${e=>this.handleTimeChange(e,t)}"
1366
- @input-keydown="${e=>this.handleTimeKeyDown(e,t)}"
1367
- @input-blur="${e=>this.handleTimeBlur(e,t)}"
1365
+ @input-change=${e=>this.handleTimeChange(e,t)}
1366
+ @input-keydown=${e=>this.handleTimeKeyDown(e,t)}
1367
+ @input-blur=${e=>this.handleTimeBlur(e,t)}
1368
1368
  .messageArr=${[{message:"",type:this.messageType(this.timeValidity[t])}]}
1369
1369
  .ariaLabel="${t}-input"
1370
1370
  ariaInvalid="${!this.timeValidity[t]}"
@@ -1381,7 +1381,7 @@
1381
1381
  no-clear-icon
1382
1382
  .inputValue=${this.timeValue[o.R5.AM_PM]}
1383
1383
  .ariaLabel=${this.timeValue[o.R5.AM_PM]}
1384
- @change-selected="${t=>this.handleTimeChange(t,o.R5.AM_PM)}"
1384
+ @change-selected=${t=>this.handleTimeChange(t,o.R5.AM_PM)}
1385
1385
  >
1386
1386
  </md-combobox>
1387
1387
  `}get timePickerClassMap(){return{"twenty-four-hour-format":this.finalTwentyFourFormat}}connectedCallback(){super.connectedCallback(),this.initializeTimeValues()}updated(t){super.updated(t),["value","locale","twentyFourHourFormat","showDefaultNowTime","timeSpecificity"].some(e=>t.has(e))&&this.initializeTimeValues()}initializeTimeValues(){if(this.showDefaultNowTime||this.value){const t=this.value||(0,r.tB)().toISOTime({suppressMilliseconds:!0});t&&this.updateValue(t)}else{const t=c.DateTime.now().setLocale(this.locale),e=this.getLocaleTimeFormat(t);this.finalTwentyFourFormat=this.twentyFourHourFormat||e;const i=this.timeSpecificity===o.R5.MINUTE||this.timeSpecificity===o.R5.SECOND,s=this.timeSpecificity===o.R5.SECOND;this.timeValue={[o.R5.HOUR]:"",[o.R5.MINUTE]:i?"":"00",[o.R5.SECOND]:s?"":"00",[o.R5.AM_PM]:"AM"}}}updateValue(t){const e=t||this.value;if(!e)return;this.timeObject=c.DateTime.fromISO(e,{locale:this.locale});const i=this.getLocaleTimeFormat(this.timeObject);this.finalTwentyFourFormat=this.twentyFourHourFormat||i,this.value=this.timeObject.toISOTime({suppressMilliseconds:!0}),this.updateTimeValues()}dispatchTimeChangeEvent(){this.dispatchEvent(new CustomEvent("time-selection-change",{bubbles:!0,composed:!0,detail:{time:this.value,data:this.timeObject,isValid:this.isEntireTimeValid()}}))}handleTimeChange(t,e){var i,s,r;this.timeValue[e]=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.value,this.requestUpdate(),this.formatTimeUnit(e);const n=this.timeValue[e];if(this.twoDigitAutoTab&&this.tabNext&&(e!==o.R5.AM_PM&&2===n.length&&"0"!==n[0]||"00"===n)){t.preventDefault();const e=null==t?void 0:t.target,i=null===(s=this.shadowRoot)||void 0===s?void 0:s.querySelectorAll("md-input, md-combobox");if(i){const t=Array.prototype.findIndex.call(i,t=>null==e?void 0:e.isEqualNode(t)),o=(t+1)%i.length;if(t<i.length-1){const t=null===(r=i[o].shadowRoot)||void 0===r?void 0:r.querySelector("input");null==t||t.focus()}}}else e===o.R5.AM_PM&&this.updateTimeUnit(e);t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-change`,{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.timeValue[e]}`,isValid:this.timeValidity[e]}}))}handleTimeKeyDown(t,e){var i;const s=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.srcEvent;if(!s)return void console.warn("srcEvent is undefined");const{key:r}=s;r===o.Uz.ArrowDown||r===o.Uz.ArrowUp?this.tabNext=!1:this.tabNext=!0,this.timeValidity[e]=!0,this.requestUpdate(),t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-keydown`,{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.timeValue[e]}`}}))}handleTimeBlur(t,e){"0"===this.timeValue[e]&&(this.timeValue[e]="00"),this.updateTimeUnit(e),this.requestUpdate(),t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-blur`,{bubbles:!0,composed:!0,detail:{srcEvent:t,time:this.value,isValid:this.timeValidity[e]}}))}static get styles(){return[a.A,u.A]}render(){return l.html`
@@ -1429,7 +1429,7 @@
1429
1429
  id="${this.getCopyTabId(t)}"
1430
1430
  aria-label=${t.ariaLabel}
1431
1431
  aria-controls="${this.getAriaControlId(t)}"
1432
- @click="${()=>this.handleOverlayClose()}"
1432
+ @click=${()=>this.handleOverlayClose()}
1433
1433
  tabIndex="${this.tabHiddenIdPositiveTabIndex===t.id?0:-1}"
1434
1434
  role="menuitem"
1435
1435
  ?newMomentum=${this.newMomentum}
@@ -1446,8 +1446,8 @@
1446
1446
  max-height="${"288px"}"
1447
1447
  class="md-menu-overlay__more ${(0,h.classMap)({"md-menu-overlay__more--hidden":this.isMoreTabMenuMeasured&&!this.isMoreTabMenuVisible})}"
1448
1448
  placement="bottom-end"
1449
- @menu-overlay-open="${()=>this.isMoreTabMenuOpen=!0}"
1450
- @menu-overlay-close="${()=>this.isMoreTabMenuOpen=!1}"
1449
+ @menu-overlay-open=${()=>this.isMoreTabMenuOpen=!0}
1450
+ @menu-overlay-close=${()=>this.isMoreTabMenuOpen=!1}
1451
1451
  >
1452
1452
  ${this.moreMenuButtonTemplate}
1453
1453
  <div
@@ -1599,7 +1599,7 @@
1599
1599
  <div
1600
1600
  class="md-floating ${this.minimize?"":"hide"} md-floating-minimize"
1601
1601
  @click=${this.handleMinimize}
1602
- @keydown="${this.handleKeyDown}"
1602
+ @keydown=${this.handleKeyDown}
1603
1603
  role="dialog"
1604
1604
  tabindex="-1"
1605
1605
  part="floating-minimized"
@@ -1627,7 +1627,7 @@
1627
1627
  aria-label="${this.closeAriaLabel}"
1628
1628
  circle
1629
1629
  @click=${this.handleClose}
1630
- @keydown="${this.handleKeyDownClose}"
1630
+ @keydown=${this.handleKeyDownClose}
1631
1631
  >
1632
1632
  <md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
1633
1633
  </md-button>
@@ -1937,12 +1937,12 @@
1937
1937
  aria-label=${(0,p.ifDefined)(this.label.length?this.label:void 0)}
1938
1938
  type="button"
1939
1939
  role="button"
1940
- @click="${()=>this.handleMouseDown()}"
1941
- @keydown="${t=>this.handleKeyDown(t)}"
1942
- @mouseenter="${()=>this.handleMouseEnter()}"
1943
- @mouseleave="${()=>this.handleMouseLeave()}"
1944
- @focus="${()=>this.handleFocus()}"
1945
- @blur="${()=>this.handleBlur()}"
1940
+ @click=${()=>this.handleMouseDown()}
1941
+ @keydown=${t=>this.handleKeyDown(t)}
1942
+ @mouseenter=${()=>this.handleMouseEnter()}
1943
+ @mouseleave=${()=>this.handleMouseLeave()}
1944
+ @focus=${()=>this.handleFocus()}
1945
+ @blur=${()=>this.handleBlur()}
1946
1946
  >
1947
1947
  <md-icon name="${this.iconName}" size="${this.iconSize}" iconSet="momentumDesign"></md-icon>
1948
1948
  </button>
@@ -1961,7 +1961,7 @@
1961
1961
  size="20"
1962
1962
  circle
1963
1963
  ariaLabel=${(0,d.ifDefined)(this.closeButtonAriaLabel)||""}
1964
- @button-click="${this.hidePopover}"
1964
+ @button-click=${this.hidePopover}
1965
1965
  >
1966
1966
  <md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
1967
1967
  </md-button>`:l.nothing}
@@ -2092,7 +2092,7 @@
2092
2092
  hasRemoveStyle
2093
2093
  color="color-none"
2094
2094
  circle
2095
- @click="${()=>this.close()}"
2095
+ @click=${()=>this.close()}
2096
2096
  >
2097
2097
  <md-icon slot="icon" name="cancel-bold" size="18" iconSet="momentumDesign"></md-icon>
2098
2098
  </md-button>
@@ -2151,7 +2151,7 @@
2151
2151
  hasRemoveStyle
2152
2152
  color="color-none"
2153
2153
  circle
2154
- @click="${()=>this.close()}"
2154
+ @click=${()=>this.close()}
2155
2155
  >
2156
2156
  <md-icon slot="icon" name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
2157
2157
  </md-button>
@@ -2390,7 +2390,7 @@
2390
2390
  ariaLabel=${this.countryCodeAriaLabel}
2391
2391
  codePlaceholder="${this.codePlaceholder}"
2392
2392
  .countryCallingCode="${this.countryCallingCode}"
2393
- @country-code-changed="${t=>this.handleCountryChange(t)}"
2393
+ @country-code-changed=${t=>this.handleCountryChange(t)}
2394
2394
  ?newMomentum=${this.newMomentum}
2395
2395
  ?isDropdownArrow=${!0}
2396
2396
  .clearAriaLabel="${this.clearCountryCodeAriaLabel}"
@@ -2402,9 +2402,9 @@
2402
2402
  placeholder=${this.numberPlaceholder}
2403
2403
  .ariaInvalid=${this.isValid?"false":"true"}
2404
2404
  .ariaLabel=${`${this.dialNumberAriaLabel}`}
2405
- @input-change="${t=>this.handlePhoneChange(t)}"
2406
- @input-blur="${t=>this.handleBlur(t)}"
2407
- @input-keydown="${t=>this.handleKeydown(t)}"
2405
+ @input-change=${t=>this.handlePhoneChange(t)}
2406
+ @input-blur=${t=>this.handleBlur(t)}
2407
+ @input-keydown=${t=>this.handleKeydown(t)}
2408
2408
  shape="${this.pill?"pill":"none"}"
2409
2409
  .ariaControls=${this.id}
2410
2410
  clear
@@ -2450,7 +2450,7 @@
2450
2450
  </div>
2451
2451
  </md-datepicker>
2452
2452
  </div>
2453
- `}};c([(0,a.property)({type:String})],e.prototype,"maxDate",void 0),c([(0,a.property)({type:String})],e.prototype,"minDate",void 0),c([(0,a.property)({type:String})],e.prototype,"weekStart",void 0),c([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),c([(0,a.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),c([(0,a.property)({type:Boolean,attribute:"should-close-on-select"})],e.prototype,"shouldCloseOnSelect",void 0),c([(0,a.property)({type:Boolean,attribute:"twenty-four-hour-format"})],e.prototype,"twentyFourHourFormat",void 0),c([(0,a.property)({type:String})],e.prototype,"timeSpecificity",void 0),c([(0,a.property)({type:String,attribute:"date-value"})],e.prototype,"dateValue",void 0),c([(0,a.property)({type:String,attribute:"time-value"})],e.prototype,"timeValue",void 0),c([(0,a.property)({type:String,reflect:!0})],e.prototype,"value",void 0),c([(0,a.property)({type:Boolean,attribute:"disable-date-validation"})],e.prototype,"disableDateValidation",void 0),c([(0,a.property)({type:String})],e.prototype,"locale",void 0),c([(0,a.property)({type:String,attribute:"placeholder"})],e.prototype,"placeholder",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"useISOFormat",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,a.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),c([(0,a.property)({type:Boolean,attribute:"show-default-now-date"})],e.prototype,"showDefaultNowDate",void 0),c([(0,a.property)({type:Boolean,attribute:"compact-input"})],e.prototype,"compactInput",void 0),c([(0,a.property)({type:Object,attribute:!1})],e.prototype,"controlButtons",void 0),c([(0,a.internalProperty)()],e.prototype,"fullDateTime",void 0),c([(0,a.internalProperty)()],e.prototype,"selectedTimeObject",void 0),c([(0,a.internalProperty)()],e.prototype,"selectedDateObject",void 0),c([(0,a.query)("md-datepicker")],e.prototype,"datePicker",void 0),c([(0,a.query)("md-timepicker")],e.prototype,"timePicker",void 0),e=c([(0,s.w)("md-date-time-picker")],e),t.ELEMENT=e}(o||(o={}))},86610:(t,e,i)=>{i.d(e,{TaskItem:()=>o}),i(38028),i(63704),i(61200);var o,s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(31465),h=i(5657),p=i(50182),c=i(97822),u=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.mediaType=d.r.TELEPHONY,this.status="",this.popovertitle="",this.queue="",this.queueTimeLabel="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.disabled=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.isRestyle=!1,this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.additionEmptyMargin=!1}get title(){return this.displayTitle}set title(t){this.titleValue=t,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(t){this.itemTitleValue=t,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}handleClick(t){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.blur()}handleKeyDown(t){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:t.code},bubbles:!0,composed:!0}))}getAriaLabel(){var t,e,i,o;if(this.customAriaLabel)return this.customAriaLabel;let s=this.queue;if(!s){const i=this.querySelector('[slot="queue"]');if(i){s=null!==(e=null===(t=i.textContent)||void 0===t?void 0:t.trim())&&void 0!==e?e:i.innerText.trim();const o=/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/.exec(s);if(o){const[,t=0,e,i]=o.map(Number);(new Date).setHours(t,e,i),s=s.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${t?t+" hours ":""}${e} minutes ${i} seconds`)}}}const r=this.querySelector('[slot="queue-time"]');let n=this.queueTimeLabel;return r&&(n+=`${null!==(o=null===(i=r.textContent)||void 0===i?void 0:i.trim())&&void 0!==o?o:r.innerText.trim()}`),`${this.mediaType} ${this.status} ${this.popovertitle} ${this.itemTitle} ${s} ${n} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,p.A]}get sanitizedTabIndexForContainer(){var t;return null!==(t=parseInt(this.tabIndexForContainer))&&void 0!==t?t:0}handleAdditionSlotChange(){var t;const e=(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-taskitem__addition")).getBoundingClientRect();this.additionEmptyMargin=0===e.width&&0===e.height}render(){return n.html`
2453
+ `}};c([(0,a.property)({type:String})],e.prototype,"maxDate",void 0),c([(0,a.property)({type:String})],e.prototype,"minDate",void 0),c([(0,a.property)({type:String})],e.prototype,"weekStart",void 0),c([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),c([(0,a.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),c([(0,a.property)({type:Boolean,attribute:"should-close-on-select"})],e.prototype,"shouldCloseOnSelect",void 0),c([(0,a.property)({type:Boolean,attribute:"twenty-four-hour-format"})],e.prototype,"twentyFourHourFormat",void 0),c([(0,a.property)({type:String})],e.prototype,"timeSpecificity",void 0),c([(0,a.property)({type:String,attribute:"date-value"})],e.prototype,"dateValue",void 0),c([(0,a.property)({type:String,attribute:"time-value"})],e.prototype,"timeValue",void 0),c([(0,a.property)({type:String,reflect:!0})],e.prototype,"value",void 0),c([(0,a.property)({type:Boolean,attribute:"disable-date-validation"})],e.prototype,"disableDateValidation",void 0),c([(0,a.property)({type:String})],e.prototype,"locale",void 0),c([(0,a.property)({type:String,attribute:"placeholder"})],e.prototype,"placeholder",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"useISOFormat",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,a.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),c([(0,a.property)({type:Boolean,attribute:"show-default-now-date"})],e.prototype,"showDefaultNowDate",void 0),c([(0,a.property)({type:Boolean,attribute:"compact-input"})],e.prototype,"compactInput",void 0),c([(0,a.property)({type:Object,attribute:!1})],e.prototype,"controlButtons",void 0),c([(0,a.internalProperty)()],e.prototype,"fullDateTime",void 0),c([(0,a.internalProperty)()],e.prototype,"selectedTimeObject",void 0),c([(0,a.internalProperty)()],e.prototype,"selectedDateObject",void 0),c([(0,a.query)("md-datepicker")],e.prototype,"datePicker",void 0),c([(0,a.query)("md-timepicker")],e.prototype,"timePicker",void 0),e=c([(0,s.w)("md-date-time-picker")],e),t.ELEMENT=e}(o||(o={}))},86610:(t,e,i)=>{i.d(e,{TaskItem:()=>o}),i(38028),i(63704),i(61200);var o,s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(97822),h=i(31465),p=i(5657),c=i(50182),u=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.mediaType=h.r.TELEPHONY,this.status="",this.popovertitle="",this.queue="",this.queueTimeLabel="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.disabled=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.isRestyle=!1,this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.additionEmptyMargin=!1}get title(){return this.displayTitle}set title(t){this.titleValue=t,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(t){this.itemTitleValue=t,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}handleClick(t){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.blur()}handleKeyDown(t){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:t.code},bubbles:!0,composed:!0}))}getAriaLabel(){var t,e,i,o;if(this.customAriaLabel)return this.customAriaLabel;let s=this.queue;if(!s){const i=this.querySelector('[slot="queue"]');if(i){s=null!==(e=null===(t=i.textContent)||void 0===t?void 0:t.trim())&&void 0!==e?e:i.innerText.trim();const o=/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/.exec(s);if(o){const[,t=0,e,i]=o.map(Number);(new Date).setHours(t,e,i),s=s.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${t?t+" hours ":""}${e} minutes ${i} seconds`)}}}const r=this.querySelector('[slot="queue-time"]');let n=this.queueTimeLabel;return r&&(n+=`${null!==(o=null===(i=r.textContent)||void 0===i?void 0:i.trim())&&void 0!==o?o:r.innerText.trim()}`),`${this.mediaType} ${this.status} ${this.popovertitle} ${this.itemTitle} ${s} ${n} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,c.A]}get sanitizedTabIndexForContainer(){var t;return null!==(t=parseInt(this.tabIndexForContainer))&&void 0!==t?t:0}handleAdditionSlotChange(){var t;const e=(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-taskitem__addition")).getBoundingClientRect();this.additionEmptyMargin=0===e.width&&0===e.height}render(){return n.html`
2454
2454
  <div
2455
2455
  part="task-item-container"
2456
2456
  class="md-taskitem ${(0,l.classMap)({selected:this.selected})}"
@@ -2459,11 +2459,11 @@
2459
2459
  @click=${t=>this.handleClick(t)}
2460
2460
  @keydown=${t=>this.handleKeyDown(t)}
2461
2461
  aria-label=${this.getAriaLabel()}
2462
- aria-disabled=${(0,c.ifDefined)(this.disabled||void 0)}
2462
+ aria-disabled=${(0,d.ifDefined)(this.disabled||void 0)}
2463
2463
  >
2464
2464
  <div class="md-taskitem__mediatype">
2465
- ${(0,h.i0)(this.isRestyle,this.mediaType,this.selected,this.status,this.iconSrc)}
2466
- ${this.status&&!this.isRestyle?n.html` <span class=${`md-taskitem__status ${this.status}`}> ${(0,h.LG)(this.status)} </span> `:a.nothing}
2465
+ ${(0,p.i0)(this.isRestyle,this.mediaType,this.selected,this.status,this.iconSrc)}
2466
+ ${this.status&&!this.isRestyle?n.html` <span class=${`md-taskitem__status ${this.status}`}> ${(0,p.LG)(this.status)} </span> `:a.nothing}
2467
2467
  </div>
2468
2468
  <div class="md-taskitem__content" part="task-item-content">
2469
2469
  ${this.popovertitle?n.html`
@@ -2476,7 +2476,9 @@
2476
2476
  class="md-taskitem__content_title ${(0,l.classMap)({mainTitle:!this.popovertitle,"display-only-title":this.displayOnlyTitle})}"
2477
2477
  ><md-tooltip placement="bottom" slot-to-tooltip>${this.itemTitle}</md-tooltip></span
2478
2478
  >
2479
- `:n.html` <span class="md-taskitem__content_popover_title popover-item-title"><slot name="title"></slot></span> `}
2479
+ `:n.html`
2480
+ <span class="md-taskitem__content_popover_title popover-item-title"><slot name="title"></slot></span>
2481
+ `}
2480
2482
  <div class="md-taskitem__content_inner">
2481
2483
  ${this.displayOnlyTitle?a.nothing:n.html`
2482
2484
  <span class="md-taskitem__content_queue">
@@ -2503,8 +2505,8 @@
2503
2505
  ${this.lastmessage?a.nothing:n.html` <slot name="lastmessage"></slot> `}
2504
2506
  </div>
2505
2507
  <div class="md-taskitem__addition ${(0,l.classMap)({empty_addition:this.additionEmptyMargin})}">
2506
- <slot @slotchange="${this.handleAdditionSlotChange}"></slot>
2507
- ${(0,h.Um)(this.quantity,this.isRestyle,this)}
2508
+ <slot @slotchange=${this.handleAdditionSlotChange}></slot>
2509
+ ${(0,p.Um)(this.quantity,this.isRestyle,this)}
2508
2510
  </div>
2509
2511
  </div>
2510
2512
  `}};u([(0,n.property)({type:String})],e.prototype,"mediaType",void 0),u([(0,n.property)({type:String})],e.prototype,"status",void 0),u([(0,n.property)({type:String})],e.prototype,"popovertitle",void 0),u([(0,n.property)({type:String})],e.prototype,"queue",void 0),u([(0,n.property)({type:String,attribute:"queue-time-label"})],e.prototype,"queueTimeLabel",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"accepted",void 0),u([(0,n.property)({type:Boolean,attribute:"display-only-title"})],e.prototype,"displayOnlyTitle",void 0),u([(0,n.property)({type:Number})],e.prototype,"quantity",void 0),u([(0,n.property)({type:String})],e.prototype,"lastmessage",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"selected",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,n.property)({type:String})],e.prototype,"customAriaLabel",void 0),u([(0,n.property)({type:String})],e.prototype,"iconSrc",void 0),u([(0,n.property)({type:String})],e.prototype,"tabIndexForContainer",void 0),u([(0,n.property)({type:Boolean,attribute:"is-restyle"})],e.prototype,"isRestyle",void 0),u([(0,n.property)({type:String,reflect:!0})],e.prototype,"title",null),u([(0,n.property)({type:String,reflect:!0,attribute:"item-title"})],e.prototype,"itemTitle",null),u([(0,n.internalProperty)()],e.prototype,"additionEmptyMargin",void 0),e=u([(0,s.w)("md-task-item")],e),t.ELEMENT=e}(o||(o={}))},86635:t=>{t.exports=l},90195:(t,e,i)=>{var o,s,r,n;i.d(e,{R5:()=>s,Uz:()=>o,iw:()=>n}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(o||(o={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(s||(s={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(n||(n={}))},90827:(t,e,i)=>{i.d(e,{CardV2:()=>u}),i(96798),i(61200),i(83192);var o=i(31890),s=i(26272),r=i(41488),n=i(40333),a=i(23968),l=i(65796),d=i(52759),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const p="hh:mm:ss";var c,u;!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(c||(c={})),function(t){let e=class extends r.LitElement{constructor(){super(...arguments),this.state=c.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.createdTime=0,this.active=!1,this.expandable=!1,this.expandAriaLabel="Expand for more details",this.renderedData=""}connectedCallback(){super.connectedCallback(),this.checkForExtraInfoSlot()}disconnectedCallback(){super.disconnectedCallback(),this.clearInterval()}clearInterval(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}static get styles(){return[s.A,d.A]}get isCardActive(){return this.state===c.ACTIVE}update(t){super.update(t),(t.has("active")||t.has("data")||t.has("createdTime"))&&this.calculateRenderedData()}expandCardToggled(){var t;this.state=this.isCardActive?c.DEFAULT:c.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isCardActive},bubbles:!0,composed:!0}))}checkForExtraInfoSlot(){var t;(null===(t=this.extraInfoSlot)||void 0===t?void 0:t.assignedNodes().length)>0?this.setAttribute("has-extra-info",""):this.removeAttribute("has-extra-info")}handleExtraInfoSlotChange(t){this.checkForExtraInfoSlot()}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===c.INACTIVE}}get footerExpandClassMap(){return{"md-card-v2-footer-expand":!0,hidden:!this.expandable}}get expandCardHandler(){return this.expandable?this.expandCardToggled:null}renderHeader(){return r.html`
@@ -2585,8 +2587,11 @@
2585
2587
  <div class="md-chat-message_title">
2586
2588
  <span>${this.isSelfType?this.computedYouLabel:this.title}</span>
2587
2589
  </div>
2588
- ${this.clickableTimestamp?n.html`<md-link class="md-chat-message_time"
2589
- @click=${t=>{t.preventDefault(),this.timeStampClicked()}}>${this.time}</md-link>`:n.html`<div class="md-chat-message_time">${this.time}</div>`}
2590
+ ${this.clickableTimestamp?n.html`<md-link
2591
+ class="md-chat-message_time"
2592
+ @click=${t=>{t.preventDefault(),this.timeStampClicked()}}
2593
+ >${this.time}</md-link
2594
+ >`:n.html`<div class="md-chat-message_time">${this.time}</div>`}
2590
2595
  <div class="md-chat-message_status">${this.status}</div>
2591
2596
  <div class="md-chat-message_custom_content">
2592
2597
  <slot name="custom-content"></slot>
@@ -2707,7 +2712,7 @@
2707
2712
  secondaryLabel
2708
2713
  .htmlFor=${this.htmlId}
2709
2714
  .label=${this.secondaryLabel}
2710
- @label-click="${()=>this.handleLabelClick()}"
2715
+ @label-click=${()=>this.handleLabelClick()}
2711
2716
  ></md-label>
2712
2717
  `:d.nothing}helpTextTemplate(){return this.helpText?l.html`
2713
2718
  <md-help-text
@@ -2731,7 +2736,7 @@
2731
2736
  class="md-input__label ${(0,h.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
2732
2737
  .htmlFor=${this.htmlId}
2733
2738
  .label=${this.label}
2734
- @label-click="${()=>this.handleLabelClick()}"
2739
+ @label-click=${()=>this.handleLabelClick()}
2735
2740
  ></md-label>
2736
2741
  `:d.nothing}static get styles(){return[a.A,m.A]}render(){return l.html`
2737
2742
  <div class="md-input-container ${(0,h.classMap)(this.inputClassMap)}" part="md-input-container">
@@ -204,7 +204,7 @@ export declare namespace ComboBox {
204
204
  checkForVirtualScroll(): boolean;
205
205
  rangeChanged(): void;
206
206
  getCustomErrorContent(): DocumentFragment;
207
- getCustomContent(option: string | OptionMember): TemplateResult | DocumentFragment;
207
+ getCustomContent(option: string | OptionMember): DocumentFragment | TemplateResult;
208
208
  renderGroupLabelHeader(option: OptionMember, optionIndex: number): TemplateResult;
209
209
  renderWithoutVirtualScroll(): import("lit-html").DirectiveFn;
210
210
  highlightingSearchedText(option: OptionMember | string): TemplateResult[];
@@ -11,8 +11,8 @@ import "@/components/menu-overlay/MenuOverlay";
11
11
  import { LitElement, PropertyValues, TemplateResult } from "lit-element";
12
12
  import { DateTime } from "luxon";
13
13
  import { MenuOverlay } from "../menu-overlay/MenuOverlay";
14
- import { StrategyType } from "../popover/Popover.types";
15
14
  import { Popover } from "../popover/Popover";
15
+ import { StrategyType } from "../popover/Popover.types";
16
16
  export interface DatePickerControlButton {
17
17
  value: string;
18
18
  ariaLabel?: string;
@@ -1,6 +1,6 @@
1
- export { FormControl } from './FormControl';
2
- export { FormGroup } from './FormGroup';
3
- export { FormArray } from './FormArray';
4
- export { Validators } from './validators';
5
- export { AbstractControl } from './Form.types';
6
- export { ValidationError } from './Form.types';
1
+ export { FormControl } from "./FormControl";
2
+ export { FormGroup } from "./FormGroup";
3
+ export { FormArray } from "./FormArray";
4
+ export { Validators } from "./validators";
5
+ export { AbstractControl } from "./Form.types";
6
+ export { ValidationError } from "./Form.types";
@@ -9,7 +9,7 @@ import "@/components/avatar/Avatar";
9
9
  import "@/components/badge/Badge";
10
10
  import "@/components/icon/Icon";
11
11
  import { LitElement } from "lit-element";
12
- import { TaskItemStatus, TaskItemMediaType } from "./TaskItem.constants";
12
+ import { TaskItemMediaType, TaskItemStatus } from "./TaskItem.constants";
13
13
  export declare namespace TaskItem {
14
14
  type TaskItemStatus = (typeof TaskItemStatus)[keyof typeof TaskItemStatus];
15
15
  type TaskItemMediaType = (typeof TaskItemMediaType)[keyof typeof TaskItemMediaType];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momentum-ui/web-components",
3
- "version": "2.25.3",
3
+ "version": "2.25.4",
4
4
  "author": "Yana Harris",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/momentum-design/momentum-ui.git",