@momentum-ui/web-components 3.0.2 → 3.0.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.
@@ -19,7 +19,7 @@
19
19
  height: ${this.containerHeight};
20
20
  }
21
21
  </style>
22
- `}disconnectedCallback(){var e;super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),null===(e=this.listContainer)||void 0===e||e.removeEventListener("keydown",this.handleKeyDown)}firstUpdated(e){var t;super.firstUpdated(e),null===(t=this.listContainer)||void 0===t||t.addEventListener("keydown",this.handleKeyDown)}willUpdate(e){var t;null===(t=super.willUpdate)||void 0===t||t.call(this,e),e.has("value")&&(void 0!==e.get("value")||this.value.length>0)&&(this.selectedItemsIds=this.value),e.has("selectAllItems")&&this.selectAllItems&&(this.selectedItemsIds=this.items.filter(e=>e&&e.id&&!this.disabledItems.includes(e.id)).map(e=>e.id)),e.has("focusReset")&&this.focusReset&&(this.activeId="")}updated(e){super.updated(e),e.has("value")&&(void 0!==e.get("value")||this.value.length>0)&&this.updateSelectedState(),e.has("selectAllItems")&&this.selectAllItems&&(this.updateSelectedState(),this.notifySelectedChange())}setCheckboxAttributes(e,t){var i,s,r,l;!e||(null===(i=t.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))&&"true"===(null===(s=t.firstElementChild)||void 0===s?void 0:s.getAttribute("aria-disabled"))?null===(l=t.querySelector("md-checkbox"))||void 0===l||l.removeAttribute("checked"):null===(r=t.querySelector("md-checkbox"))||void 0===r||r.setAttribute("checked","true")}updateWrapperAttributes(e,t){this.isMulti?this.setCheckboxAttributes(t,e):e.classList.toggle("selected",t),e.setAttribute("selected",t.toString()),e.setAttribute("aria-selected",t.toString()),e.setAttribute("tabindex",t?"0":"-1")}updateSelectedState(){var t;Array.from((null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".default-wrapper"))||[]).forEach(t=>{var i,s;const r=this.selectedItemsIds.some(i=>t.id===`${e.prefixId}${i}`);this.updateWrapperAttributes(t,r),this.groupOnMultiSelect&&this.value.length>0&&this.items.length!==this.value.length&&t.id===`${e.prefixId}${this.lastSelectedIdByOrder}`?t.classList.add("selected-border-bottom"):t.classList.remove("selected-border-bottom"),t.id===`${e.prefixId}${this.activeId}`?(t.setAttribute("tabindex","0"),t.focus()):t.setAttribute("tabindex","-1"),""==this.activeId&&t.id===`${e.prefixId}${this.value[0]}`&&t.setAttribute("tabindex","0"),(null===(i=t.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))||"true"===(null===(s=t.firstElementChild)||void 0===s?void 0:s.getAttribute("aria-disabled"))?(t.setAttribute("disabled",""),t.setAttribute("aria-disabled","true")):(t.removeAttribute("disabled"),t.removeAttribute("aria-disabled"))})}findClickedItem(e){var t;const i=Array.from((null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".default-wrapper"))||[]),s=e.composedPath(),r=i.find(e=>s.includes(e));if(r)return(null==r?void 0:r.hasAttribute("disabled"))||"true"===(null==r?void 0:r.getAttribute("aria-disabled"))?0:r}isNextElemenentStatusIndicator(e){return(this.isLoading||this.isError)&&e===this.items.length-2}updateItemForMultiSelect(e){const t=this.selectedItemsIds.indexOf(e);-1===t?(this.selectedItemsIds.push(this.activeId),this.selectedItemsIds.length===this.items.length-this.disabledItems.length&&(this.selectAllItems=!0)):(this.selectedItemsIds.splice(t,1),this.selectAllItems=!1)}updateItemSelection(e){e&&(this.activeId=e.id.substring(e.id.indexOf("-")+1),this.isMulti?this.updateItemForMultiSelect(this.activeId):this.selectedItemsIds=[this.activeId],this.updateSelectedState(),this.notifySelectedChange())}handleClick(e){e.preventDefault(),this.isUserNavigated=!1;const t=this.findClickedItem(e);t&&(this.scrollIndex=parseInt(t.getAttribute("index")||"0"),this.updateItemSelection(t))}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selectedItemsIds},bubbles:!0,composed:!0}))}getActiveDescendant(){return this.activeId?`${e.prefixId}${this.activeId}`:this.value&&this.value.length>0&&this.value[0]?`${e.prefixId}${this.value[0]}`:""}render(){return o.html`
22
+ `}disconnectedCallback(){var e;super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),null===(e=this.listContainer)||void 0===e||e.removeEventListener("keydown",this.handleKeyDown)}firstUpdated(e){var t;super.firstUpdated(e),null===(t=this.listContainer)||void 0===t||t.addEventListener("keydown",this.handleKeyDown)}willUpdate(e){var t;null===(t=super.willUpdate)||void 0===t||t.call(this,e),e.has("value")&&(void 0!==e.get("value")||this.value.length>0)&&(this.selectedItemsIds=this.value),e.has("selectAllItems")&&this.selectAllItems&&(this.selectedItemsIds=this.items.filter(e=>e&&e.id&&!this.disabledItems.includes(e.id)).map(e=>e.id)),e.has("focusReset")&&this.focusReset&&(this.activeId="")}updated(e){super.updated(e),e.has("value")&&(void 0!==e.get("value")||this.value.length>0)&&requestAnimationFrame(()=>this.updateSelectedState()),e.has("selectAllItems")&&this.selectAllItems&&(this.updateSelectedState(),this.notifySelectedChange())}setCheckboxAttributes(e,t){var i,s,r,l;!e||(null===(i=t.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))&&"true"===(null===(s=t.firstElementChild)||void 0===s?void 0:s.getAttribute("aria-disabled"))?null===(l=t.querySelector("md-checkbox"))||void 0===l||l.removeAttribute("checked"):null===(r=t.querySelector("md-checkbox"))||void 0===r||r.setAttribute("checked","true")}updateWrapperAttributes(e,t){this.isMulti?this.setCheckboxAttributes(t,e):e.classList.toggle("selected",t),e.setAttribute("selected",t.toString()),e.setAttribute("aria-selected",t.toString()),e.setAttribute("tabindex",t?"0":"-1")}updateSelectedState(){var t;Array.from((null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".default-wrapper"))||[]).forEach(t=>{var i,s;const r=this.selectedItemsIds.some(i=>t.id===`${e.prefixId}${i}`);this.updateWrapperAttributes(t,r),this.groupOnMultiSelect&&this.value.length>0&&this.items.length!==this.value.length&&t.id===`${e.prefixId}${this.lastSelectedIdByOrder}`?t.classList.add("selected-border-bottom"):t.classList.remove("selected-border-bottom"),t.id===`${e.prefixId}${this.activeId}`?(t.setAttribute("tabindex","0"),t.focus()):t.setAttribute("tabindex","-1"),""==this.activeId&&t.id===`${e.prefixId}${this.value[0]}`&&t.setAttribute("tabindex","0"),(null===(i=t.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))||"true"===(null===(s=t.firstElementChild)||void 0===s?void 0:s.getAttribute("aria-disabled"))?(t.setAttribute("disabled",""),t.setAttribute("aria-disabled","true")):(t.removeAttribute("disabled"),t.removeAttribute("aria-disabled"))})}findClickedItem(e){var t;const i=Array.from((null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".default-wrapper"))||[]),s=e.composedPath(),r=i.find(e=>s.includes(e));if(r)return(null==r?void 0:r.hasAttribute("disabled"))||"true"===(null==r?void 0:r.getAttribute("aria-disabled"))?0:r}isNextElemenentStatusIndicator(e){return(this.isLoading||this.isError)&&e===this.items.length-2}updateItemForMultiSelect(e){const t=this.selectedItemsIds.indexOf(e);-1===t?(this.selectedItemsIds.push(this.activeId),this.selectedItemsIds.length===this.items.length-this.disabledItems.length&&(this.selectAllItems=!0)):(this.selectedItemsIds.splice(t,1),this.selectAllItems=!1)}updateItemSelection(e){e&&(this.activeId=e.id.substring(e.id.indexOf("-")+1),this.isMulti?this.updateItemForMultiSelect(this.activeId):this.selectedItemsIds=[this.activeId],this.updateSelectedState(),this.notifySelectedChange())}handleClick(e){e.preventDefault(),this.isUserNavigated=!1;const t=this.findClickedItem(e);t&&(this.scrollIndex=parseInt(t.getAttribute("index")||"0"),this.updateItemSelection(t))}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selectedItemsIds},bubbles:!0,composed:!0}))}getActiveDescendant(){return this.activeId?`${e.prefixId}${this.activeId}`:this.value&&this.value.length>0&&this.value[0]?`${e.prefixId}${this.value[0]}`:""}render(){return o.html`
23
23
  ${this.getStyles()}
24
24
  <div
25
25
  class="md-advance-list-wrapper virtual-scroll"
@@ -28,11 +28,11 @@
28
28
  aria-multiselectable=${this.isMulti}
29
29
  aria-label=${this.ariaLabelList}
30
30
  role=${this.ariaRoleList}
31
- @rangechange=${this.handleRangeChange}
32
31
  >
33
32
  <lit-virtualizer
34
33
  .items=${this.items}
35
34
  .renderItem=${(e,t)=>this.renderItem(e,t)}
35
+ @rangeChanged=${this.handleRangeChange}
36
36
  ></lit-virtualizer>
37
37
  </div>
38
38
  `}};c([(0,n.property)({type:Array})],t.prototype,"items",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"isLoading",void 0),c([(0,n.property)({type:Boolean,attribute:"is-multi"})],t.prototype,"isMulti",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"groupOnMultiSelect",void 0),c([(0,n.property)({type:Array})],t.prototype,"value",void 0),c([(0,n.property)({type:String})],t.prototype,"ariaRoleList",void 0),c([(0,n.property)({type:String})],t.prototype,"ariaRoleListItem",void 0),c([(0,n.property)({type:String})],t.prototype,"ariaLabelList",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"isError",void 0),c([(0,n.property)({type:String})],t.prototype,"containerHeight",void 0),c([(0,n.property)({type:String})],t.prototype,"lastSelectedIdByOrder",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"selectAllItems",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"focusReset",void 0),c([(0,n.property)({type:Array})],t.prototype,"disabledItems",void 0),c([(0,n.property)({type:Number})],t.prototype,"totalRecords",void 0),c([(0,n.property)({type:Boolean})],t.prototype,"isNonSelectable",void 0),c([(0,n.query)(".virtual-scroll")],t.prototype,"listContainer",void 0),c([(0,n.query)("lit-virtualizer")],t.prototype,"virtualizer",void 0),c([(0,n.state)()],t.prototype,"scrollIndex",void 0),c([(0,n.state)()],t.prototype,"activeId",void 0),c([(0,n.state)()],t.prototype,"selectedItemsIds",void 0),c([(0,n.state)()],t.prototype,"isUserNavigated",void 0),t=c([(0,l.w)("md-advance-list")],t),e.ELEMENT=t}(s||(s={}))},70429(e){e.exports=t},83048(e){e.exports=i},87161(t){t.exports=e}},l={};function a(e){var t=l[e];if(void 0!==t)return t.exports;var i=l[e]={exports:{}};return r[e](i,i.exports,a),i.exports}a.m=r,s=[],a.O=(e,t,i,r)=>{if(!t){var l=1/0;for(h=0;h<s.length;h++){for(var[t,i,r]=s[h],d=!0,o=0;o<t.length;o++)(!1&r||l>=r)&&Object.keys(a.O).every(e=>a.O[e](t[o]))?t.splice(o--,1):(d=!1,r<l&&(l=r));if(d){s.splice(h--,1);var n=i();void 0!==n&&(e=n)}}return e}r=r||0;for(var h=s.length;h>0&&s[h-1][2]>r;h--)s[h]=s[h-1];s[h]=[t,i,r]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={3079:0};a.O.j=t=>0===e[t];var t=(t,i)=>{var s,r,[l,d,o]=i,n=0;if(l.some(t=>0!==e[t])){for(s in d)a.o(d,s)&&(a.m[s]=d[s]);if(o)var h=o(a)}for(t&&t(i);n<l.length;n++)r=l[n],a.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return a.O(h)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var d=a.O(void 0,[1890,4313,2576,8210,1270,9312],()=>a(28307));return a.O(d)})());
@@ -991,7 +991,7 @@
991
991
  height: ${this.containerHeight};
992
992
  }
993
993
  </style>
994
- `}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),null===(t=this.listContainer)||void 0===t||t.removeEventListener("keydown",this.handleKeyDown)}firstUpdated(t){var e;super.firstUpdated(t),null===(e=this.listContainer)||void 0===e||e.addEventListener("keydown",this.handleKeyDown)}willUpdate(t){var e;null===(e=super.willUpdate)||void 0===e||e.call(this,t),t.has("value")&&(void 0!==t.get("value")||this.value.length>0)&&(this.selectedItemsIds=this.value),t.has("selectAllItems")&&this.selectAllItems&&(this.selectedItemsIds=this.items.filter(t=>t&&t.id&&!this.disabledItems.includes(t.id)).map(t=>t.id)),t.has("focusReset")&&this.focusReset&&(this.activeId="")}updated(t){super.updated(t),t.has("value")&&(void 0!==t.get("value")||this.value.length>0)&&this.updateSelectedState(),t.has("selectAllItems")&&this.selectAllItems&&(this.updateSelectedState(),this.notifySelectedChange())}setCheckboxAttributes(t,e){var i,o,s,r;!t||(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))&&"true"===(null===(o=e.firstElementChild)||void 0===o?void 0:o.getAttribute("aria-disabled"))?null===(r=e.querySelector("md-checkbox"))||void 0===r||r.removeAttribute("checked"):null===(s=e.querySelector("md-checkbox"))||void 0===s||s.setAttribute("checked","true")}updateWrapperAttributes(t,e){this.isMulti?this.setCheckboxAttributes(e,t):t.classList.toggle("selected",e),t.setAttribute("selected",e.toString()),t.setAttribute("aria-selected",e.toString()),t.setAttribute("tabindex",e?"0":"-1")}updateSelectedState(){var e;Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]).forEach(e=>{var i,o;const s=this.selectedItemsIds.some(i=>e.id===`${t.prefixId}${i}`);this.updateWrapperAttributes(e,s),this.groupOnMultiSelect&&this.value.length>0&&this.items.length!==this.value.length&&e.id===`${t.prefixId}${this.lastSelectedIdByOrder}`?e.classList.add("selected-border-bottom"):e.classList.remove("selected-border-bottom"),e.id===`${t.prefixId}${this.activeId}`?(e.setAttribute("tabindex","0"),e.focus()):e.setAttribute("tabindex","-1"),""==this.activeId&&e.id===`${t.prefixId}${this.value[0]}`&&e.setAttribute("tabindex","0"),(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))||"true"===(null===(o=e.firstElementChild)||void 0===o?void 0:o.getAttribute("aria-disabled"))?(e.setAttribute("disabled",""),e.setAttribute("aria-disabled","true")):(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled"))})}findClickedItem(t){var e;const i=Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]),o=t.composedPath(),s=i.find(t=>o.includes(t));if(s)return(null==s?void 0:s.hasAttribute("disabled"))||"true"===(null==s?void 0:s.getAttribute("aria-disabled"))?0:s}isNextElemenentStatusIndicator(t){return(this.isLoading||this.isError)&&t===this.items.length-2}updateItemForMultiSelect(t){const e=this.selectedItemsIds.indexOf(t);-1===e?(this.selectedItemsIds.push(this.activeId),this.selectedItemsIds.length===this.items.length-this.disabledItems.length&&(this.selectAllItems=!0)):(this.selectedItemsIds.splice(e,1),this.selectAllItems=!1)}updateItemSelection(t){t&&(this.activeId=t.id.substring(t.id.indexOf("-")+1),this.isMulti?this.updateItemForMultiSelect(this.activeId):this.selectedItemsIds=[this.activeId],this.updateSelectedState(),this.notifySelectedChange())}handleClick(t){t.preventDefault(),this.isUserNavigated=!1;const e=this.findClickedItem(t);e&&(this.scrollIndex=parseInt(e.getAttribute("index")||"0"),this.updateItemSelection(e))}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selectedItemsIds},bubbles:!0,composed:!0}))}getActiveDescendant(){return this.activeId?`${t.prefixId}${this.activeId}`:this.value&&this.value.length>0&&this.value[0]?`${t.prefixId}${this.value[0]}`:""}render(){return l.html`
994
+ `}disconnectedCallback(){var t;super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),null===(t=this.listContainer)||void 0===t||t.removeEventListener("keydown",this.handleKeyDown)}firstUpdated(t){var e;super.firstUpdated(t),null===(e=this.listContainer)||void 0===e||e.addEventListener("keydown",this.handleKeyDown)}willUpdate(t){var e;null===(e=super.willUpdate)||void 0===e||e.call(this,t),t.has("value")&&(void 0!==t.get("value")||this.value.length>0)&&(this.selectedItemsIds=this.value),t.has("selectAllItems")&&this.selectAllItems&&(this.selectedItemsIds=this.items.filter(t=>t&&t.id&&!this.disabledItems.includes(t.id)).map(t=>t.id)),t.has("focusReset")&&this.focusReset&&(this.activeId="")}updated(t){super.updated(t),t.has("value")&&(void 0!==t.get("value")||this.value.length>0)&&requestAnimationFrame(()=>this.updateSelectedState()),t.has("selectAllItems")&&this.selectAllItems&&(this.updateSelectedState(),this.notifySelectedChange())}setCheckboxAttributes(t,e){var i,o,s,r;!t||(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))&&"true"===(null===(o=e.firstElementChild)||void 0===o?void 0:o.getAttribute("aria-disabled"))?null===(r=e.querySelector("md-checkbox"))||void 0===r||r.removeAttribute("checked"):null===(s=e.querySelector("md-checkbox"))||void 0===s||s.setAttribute("checked","true")}updateWrapperAttributes(t,e){this.isMulti?this.setCheckboxAttributes(e,t):t.classList.toggle("selected",e),t.setAttribute("selected",e.toString()),t.setAttribute("aria-selected",e.toString()),t.setAttribute("tabindex",e?"0":"-1")}updateSelectedState(){var e;Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]).forEach(e=>{var i,o;const s=this.selectedItemsIds.some(i=>e.id===`${t.prefixId}${i}`);this.updateWrapperAttributes(e,s),this.groupOnMultiSelect&&this.value.length>0&&this.items.length!==this.value.length&&e.id===`${t.prefixId}${this.lastSelectedIdByOrder}`?e.classList.add("selected-border-bottom"):e.classList.remove("selected-border-bottom"),e.id===`${t.prefixId}${this.activeId}`?(e.setAttribute("tabindex","0"),e.focus()):e.setAttribute("tabindex","-1"),""==this.activeId&&e.id===`${t.prefixId}${this.value[0]}`&&e.setAttribute("tabindex","0"),(null===(i=e.firstElementChild)||void 0===i?void 0:i.hasAttribute("disabled"))||"true"===(null===(o=e.firstElementChild)||void 0===o?void 0:o.getAttribute("aria-disabled"))?(e.setAttribute("disabled",""),e.setAttribute("aria-disabled","true")):(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled"))})}findClickedItem(t){var e;const i=Array.from((null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".default-wrapper"))||[]),o=t.composedPath(),s=i.find(t=>o.includes(t));if(s)return(null==s?void 0:s.hasAttribute("disabled"))||"true"===(null==s?void 0:s.getAttribute("aria-disabled"))?0:s}isNextElemenentStatusIndicator(t){return(this.isLoading||this.isError)&&t===this.items.length-2}updateItemForMultiSelect(t){const e=this.selectedItemsIds.indexOf(t);-1===e?(this.selectedItemsIds.push(this.activeId),this.selectedItemsIds.length===this.items.length-this.disabledItems.length&&(this.selectAllItems=!0)):(this.selectedItemsIds.splice(e,1),this.selectAllItems=!1)}updateItemSelection(t){t&&(this.activeId=t.id.substring(t.id.indexOf("-")+1),this.isMulti?this.updateItemForMultiSelect(this.activeId):this.selectedItemsIds=[this.activeId],this.updateSelectedState(),this.notifySelectedChange())}handleClick(t){t.preventDefault(),this.isUserNavigated=!1;const e=this.findClickedItem(t);e&&(this.scrollIndex=parseInt(e.getAttribute("index")||"0"),this.updateItemSelection(e))}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selectedItemsIds},bubbles:!0,composed:!0}))}getActiveDescendant(){return this.activeId?`${t.prefixId}${this.activeId}`:this.value&&this.value.length>0&&this.value[0]?`${t.prefixId}${this.value[0]}`:""}render(){return l.html`
995
995
  ${this.getStyles()}
996
996
  <div
997
997
  class="md-advance-list-wrapper virtual-scroll"
@@ -1000,11 +1000,11 @@
1000
1000
  aria-multiselectable=${this.isMulti}
1001
1001
  aria-label=${this.ariaLabelList}
1002
1002
  role=${this.ariaRoleList}
1003
- @rangechange=${this.handleRangeChange}
1004
1003
  >
1005
1004
  <lit-virtualizer
1006
1005
  .items=${this.items}
1007
1006
  .renderItem=${(t,e)=>this.renderItem(t,e)}
1007
+ @rangeChanged=${this.handleRangeChange}
1008
1008
  ></lit-virtualizer>
1009
1009
  </div>
1010
1010
  `}};c([(0,d.property)({type:Array})],e.prototype,"items",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"isLoading",void 0),c([(0,d.property)({type:Boolean,attribute:"is-multi"})],e.prototype,"isMulti",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"groupOnMultiSelect",void 0),c([(0,d.property)({type:Array})],e.prototype,"value",void 0),c([(0,d.property)({type:String})],e.prototype,"ariaRoleList",void 0),c([(0,d.property)({type:String})],e.prototype,"ariaRoleListItem",void 0),c([(0,d.property)({type:String})],e.prototype,"ariaLabelList",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"isError",void 0),c([(0,d.property)({type:String})],e.prototype,"containerHeight",void 0),c([(0,d.property)({type:String})],e.prototype,"lastSelectedIdByOrder",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"selectAllItems",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"focusReset",void 0),c([(0,d.property)({type:Array})],e.prototype,"disabledItems",void 0),c([(0,d.property)({type:Number})],e.prototype,"totalRecords",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"isNonSelectable",void 0),c([(0,d.query)(".virtual-scroll")],e.prototype,"listContainer",void 0),c([(0,d.query)("lit-virtualizer")],e.prototype,"virtualizer",void 0),c([(0,d.state)()],e.prototype,"scrollIndex",void 0),c([(0,d.state)()],e.prototype,"activeId",void 0),c([(0,d.state)()],e.prototype,"selectedItemsIds",void 0),c([(0,d.state)()],e.prototype,"isUserNavigated",void 0),e=c([(0,r.w)("md-advance-list")],e),t.ELEMENT=e}(o||(o={}))},29895(t,e,i){i.d(e,{CoachmarkPopover:()=>o}),i(96798),i(61200),i(71128);var o,s=i(31890),r=i(4313),a=i(87161),n=i(70429),l=i(85125),d=i(32924),h=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.placement="bottom",this.triggerID="",this.headerIconName=void 0,this.header=void 0,this.message=void 0,this.show=!1,this.hideCloseButton=!1,this.href="",this.slotContent=null}static get styles(){return[r.A,d.A]}connectedCallback(){super.connectedCallback()}notifyCustomEvent(t){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:{placement:this.placement,triggerComponent:this.triggerComponent,popper:this.popper}}))}notifyCoachCreate(){this.notifyCustomEvent("coach-create")}notifyPrimaryButtonAction(){this.notifyCustomEvent("primary-button-action")}notifySecondaryButtonAction(){this.notifyCustomEvent("secondary-button-action")}notifyLinkAction(){this.notifyCustomEvent("link-action")}notifyCoachClose(){this.notifyCustomEvent("coachmark-close")}handleSlotChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent=t)}}updated(t){super.updated(t),t.has("show")&&(this.show?this.notifyCoachCreate():this.notifyCoachClose())}coachmarkContentTemplate(){return a.html`
@@ -75,7 +75,7 @@ export declare namespace Avatar {
75
75
  private get chatIconSize();
76
76
  private get presenceSize();
77
77
  private get iconSize();
78
- get renderIsTyping(): import("lit").TemplateResult<1> | typeof nothing;
78
+ get renderIsTyping(): typeof nothing | import("lit").TemplateResult<1>;
79
79
  private get avatarLetter();
80
80
  private get avatarIcon();
81
81
  private get avatarImage();
@@ -85,8 +85,8 @@ export declare namespace Avatar {
85
85
  handleKeyDown(event: KeyboardEvent): void;
86
86
  handleClick(event: MouseEvent): void;
87
87
  private getBrandOrDesignIconSet;
88
- get avatarContent(): import("lit").TemplateResult<1> | typeof nothing;
89
- renderPresence(): import("lit").TemplateResult<1> | typeof nothing;
88
+ get avatarContent(): typeof nothing | import("lit").TemplateResult<1>;
89
+ renderPresence(): typeof nothing | import("lit").TemplateResult<1>;
90
90
  private renderAvatarContent;
91
91
  render(): import("lit").TemplateResult<1>;
92
92
  }
@@ -31,7 +31,7 @@ export declare namespace Badge {
31
31
  renderTextColor: () => string | typeof nothing;
32
32
  renderHeight: () => string | typeof nothing;
33
33
  renderWidth: () => string | typeof nothing;
34
- getStyles: () => import("lit").TemplateResult<1> | typeof nothing;
34
+ getStyles: () => typeof nothing | import("lit").TemplateResult<1>;
35
35
  static get styles(): import("lit").CSSResult[];
36
36
  private get computedAriaHiddenSplits();
37
37
  private get computedTabIndex();
@@ -129,10 +129,10 @@ export declare namespace Button {
129
129
  get slottedText(): string | null | undefined;
130
130
  get hasIcon(): boolean;
131
131
  iconTemplate: () => import("lit").TemplateResult<1>;
132
- textTemplate: () => import("lit").TemplateResult<1> | typeof nothing;
132
+ textTemplate: () => typeof nothing | import("lit").TemplateResult<1>;
133
133
  childrenTemplate(): import("lit").TemplateResult<1>;
134
134
  get computedAriaExpand(): "true" | "false" | undefined;
135
- buttonTemplate(tag: Button.Tag): import("lit").TemplateResult<1> | typeof nothing;
135
+ buttonTemplate(tag: Button.Tag): typeof nothing | import("lit").TemplateResult<1>;
136
136
  get buttonContainerClassMap(): {
137
137
  "md-button__container": boolean;
138
138
  "md-button__container--small": boolean;
@@ -52,10 +52,10 @@ export declare namespace Chip {
52
52
  protected renderBgColor: () => string | typeof nothing;
53
53
  protected renderTextColor: () => string | typeof nothing;
54
54
  protected renderHeight: () => string | typeof nothing;
55
- protected getStyles: () => import("lit").TemplateResult<1> | typeof nothing;
55
+ protected getStyles: () => typeof nothing | import("lit").TemplateResult<1>;
56
56
  static get styles(): import("lit").CSSResult[];
57
- protected loadingTemplate(): import("lit").TemplateResult<1> | typeof nothing;
58
- protected iconTemplate(): import("lit").TemplateResult<1> | typeof nothing;
57
+ protected loadingTemplate(): typeof nothing | import("lit").TemplateResult<1>;
58
+ protected iconTemplate(): typeof nothing | import("lit").TemplateResult<1>;
59
59
  getToolTipContent(): string;
60
60
  private get textContentClassMap();
61
61
  private get textContentTemplate();
@@ -199,7 +199,7 @@ export declare namespace ComboBox {
199
199
  arrowButtonTemplate(): TemplateResult<1>;
200
200
  groupArrowButtonTemplate(data: string): TemplateResult<1>;
201
201
  getSelectAllOption(): TemplateResult<1>;
202
- getSelctedCount(): TemplateResult<1> | typeof nothing;
202
+ getSelctedCount(): typeof nothing | TemplateResult<1>;
203
203
  checkForVirtualScroll(): boolean;
204
204
  rangeChanged(): void;
205
205
  getCustomErrorContent(): DocumentFragment;
@@ -210,8 +210,8 @@ export declare namespace ComboBox {
210
210
  addStyle(): import("lit-html/development/directive").DirectiveResult<typeof import("lit/directives/style-map.js").StyleMapDirective>;
211
211
  renderItem(option: OptionMember | string, index: number): TemplateResult;
212
212
  inputTitle(): string;
213
- helpTextTemplate(): TemplateResult<1> | typeof nothing;
214
- messagesTemplate(): TemplateResult<1> | typeof nothing;
213
+ helpTextTemplate(): typeof nothing | TemplateResult<1>;
214
+ messagesTemplate(): typeof nothing | TemplateResult<1>;
215
215
  get newArrowButtonTemplate(): TemplateResult<1>;
216
216
  get renderNewMomentumArrow(): TemplateResult;
217
217
  get renderTrailingInputControls(): TemplateResult;
@@ -138,8 +138,8 @@ export declare namespace Dropdown {
138
138
  };
139
139
  handleInput(event: Event): void;
140
140
  private notifyInputValueChanged;
141
- helpTextTemplate(): import("lit").TemplateResult<1> | typeof nothing;
142
- messagesTemplate(): import("lit").TemplateResult<1> | typeof nothing;
141
+ helpTextTemplate(): typeof nothing | import("lit").TemplateResult<1>;
142
+ messagesTemplate(): typeof nothing | import("lit").TemplateResult<1>;
143
143
  iconTemplate(): import("lit").TemplateResult<1>;
144
144
  clearButtonTemplate(): import("lit").TemplateResult<1>;
145
145
  arrowButtonTemplate(): import("lit").TemplateResult<1>;
@@ -40,7 +40,7 @@ export declare namespace EditableTextfield {
40
40
  showAlert(): void;
41
41
  static get styles(): CSSResultArray;
42
42
  get overflowStyles(): string | false | 0;
43
- messagesTemplate(): import("lit").TemplateResult<1> | typeof nothing;
43
+ messagesTemplate(): typeof nothing | import("lit").TemplateResult<1>;
44
44
  render(): import("lit").TemplateResult<1>;
45
45
  }
46
46
  }
@@ -161,15 +161,15 @@ export declare namespace Input {
161
161
  get ariaExpandedValue(): "true" | "false" | undefined;
162
162
  get hasRightIcon(): boolean;
163
163
  inputTemplate(): import("lit").TemplateResult<1>;
164
- inputLeftTemplate(): import("lit").TemplateResult<1> | typeof nothing;
164
+ inputLeftTemplate(): typeof nothing | import("lit").TemplateResult<1>;
165
165
  private get inputRightTemplateClassMap();
166
166
  inputRightTemplate(): import("lit").TemplateResult<1> | undefined;
167
167
  private get comboBoxButtonTemplate();
168
168
  private characterCountLabelTemplate;
169
- secondaryLabelTemplate(): import("lit").TemplateResult<1> | typeof nothing;
170
- helpTextTemplate(): import("lit").TemplateResult<1> | typeof nothing;
171
- messagesTemplate(): import("lit").TemplateResult<1> | typeof nothing;
172
- labelTemplate(): import("lit").TemplateResult<1> | typeof nothing;
169
+ secondaryLabelTemplate(): typeof nothing | import("lit").TemplateResult<1>;
170
+ helpTextTemplate(): typeof nothing | import("lit").TemplateResult<1>;
171
+ messagesTemplate(): typeof nothing | import("lit").TemplateResult<1>;
172
+ labelTemplate(): typeof nothing | import("lit").TemplateResult<1>;
173
173
  static get styles(): import("lit").CSSResult[];
174
174
  render(): import("lit").TemplateResult<1>;
175
175
  }
@@ -23,7 +23,7 @@ export declare namespace Radio {
23
23
  private get inputAriaLabel();
24
24
  static get styles(): import("lit").CSSResult[];
25
25
  private get helpTextClassMap();
26
- messagesTemplate(): import("lit").TemplateResult<1> | typeof nothing;
26
+ messagesTemplate(): typeof nothing | import("lit").TemplateResult<1>;
27
27
  render(): import("lit").TemplateResult<1>;
28
28
  }
29
29
  export {};
@@ -5,4 +5,4 @@ export declare const getChannelAvatar: (selected: boolean, status: string | null
5
5
  export declare const renderTaskType: (mediaType: string, selected: boolean, status: string | null, iconSrc: string) => TemplateResult<1>;
6
6
  export declare const renderStatus: (status: string) => TemplateResult<1>;
7
7
  export declare const renderLegacyTaskType: (mediaType: string, selected: boolean, iconSrc: string) => TemplateResult<1>;
8
- export declare const renderChatCount: (quantity: number, isRestyle: boolean, element: HTMLElement) => TemplateResult<1> | typeof nothing;
8
+ export declare const renderChatCount: (quantity: number, isRestyle: boolean, element: HTMLElement) => typeof nothing | TemplateResult<1>;
@@ -3,7 +3,7 @@ import { LitElement, nothing, PropertyValues } from "lit";
3
3
  export declare class ColorTableSandbox extends LitElement {
4
4
  private colorTokenTableData;
5
5
  firstUpdated(changedProperties: PropertyValues): void;
6
- renderColorTable(): import("lit").TemplateResult<1> | typeof nothing;
6
+ renderColorTable(): typeof nothing | import("lit").TemplateResult<1>;
7
7
  static get styles(): import("lit").CSSResult[];
8
8
  render(): import("lit").TemplateResult<1>;
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momentum-ui/web-components",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "author": "Yana Harris",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/momentum-design/momentum-ui.git",