@momentum-ui/web-components 2.26.21 → 2.26.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/1200.js CHANGED
@@ -1,8 +1,8 @@
1
- "use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1200],{61200:(t,e,i)=>{i(96798);var o,n=i(31890),s=i(26272),r=i(32022),c=i.n(r),a=i(60554),h=i.n(a),l=i(41488),p=i(40333),d=i(23968),u=i(97822),m=i(8229),g=i(57955),v=i(66873),y=i(81786),S=i(9223),b=function(t,e,i,o){var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){var e;let i=e=class extends l.LitElement{constructor(){super(...arguments),this.color="",this.description="",this.name="",this.id="",this.size="",this.title="",this.ariaHidden=null,this.type="",this.isActive=!1,this.isComboBoxIcon=!1,this.sizeOverrided=!1,this.iconSet="momentumUI",this.svgIcon=null,this._ariaLabel="",this.consoleHandler=(t,e)=>{switch(t){case"color-warn":console.warn(`[@momentum-ui/web-component] Icon: ${e} may not exist in the design system, please use a color name from https://momentum.design/styles/color/style`);break;case"name-error":console.warn(`[@momentum-ui/web-component] Icon: Icon ${e} does not exist in the design system. Visit https://momentum.design/icons for a list of available icons or to request a new icon.`)}}}isSvgAlreadyLoaded(t){var e,i;return!!this.svgIcon&&(null===(i=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"))||void 0===i?void 0:i.includes(t))}loadSvgIcon(t){return e=this,i=void 0,n=function*(){var e,i;if(this.isSvgAlreadyLoaded(t))return;const o="momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet?yield(0,S.Jp)(this.computedSvgPath,t,"svg"):yield(0,S.D6)(t);o&&(this.svgIcon=o,null===(e=this.svgIcon)||void 0===e||e.setAttribute("class",`icon ${t}`),null===(i=this.svgIcon)||void 0===i||i.setAttribute("part","icon"),this.setSvgIconAttributes(),this.requestUpdate())},new((o=void 0)||(o=Promise))(function(t,s){function r(t){try{a(n.next(t))}catch(t){s(t)}}function c(t){try{a(n.throw(t))}catch(t){s(t)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o(function(t){t(i)})).then(r,c)}a((n=n.apply(e,i||[])).next())});var e,i,o,n}setSvgIconAttributes(){this.svgIcon&&(this.iconFontSize&&this.svgIcon.setAttribute("width",`${this.iconFontSize}px`),this.iconFontSize&&this.svgIcon.setAttribute("height",`${this.iconFontSize}px`),this.color?this.svgIcon.setAttribute("fill",this.iconColor):this.svgIcon.setAttribute("fill","currentColor"))}get computedSvgPath(){return this.svgUrl?this.svgUrl:y.O.svgIconUrl}getIsMomentumDesignName(t){return t.endsWith("-filled")||t.endsWith("-light")||t.endsWith("-regular")||t.endsWith("-bold")}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet)return this.name;if("preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name))return this.name;const t=this.momentumUIIconLookupName,i=e.designLookup.get(t);return null!=i?i:t}updated(t){if(super.updated(t),this.doesIconSetSupportSVG)if(t.has("name")||t.has("iconSet")){const t=this.svgIconName;t&&"Unknown"!==t&&this.loadSvgIcon(t)}else(t.has("iconFontSize")||t.has("color"))&&this.setSvgIconAttributes()}get ariaLabel(){return this._ariaLabel?this._ariaLabel:this.title&&this.description?`${this.title} ${this.description}`:this.title?this.title:this.description?this.description:"icon"}set ariaLabel(t){const e=this._ariaLabel;this._ariaLabel=t,this.requestUpdate("ariaLabel",e)}get buttonClassMap(){return{[`md-button--icon-${this.type}`]:!!this.type}}get iconFontSize(){const t=this.name.split("_")[1];return this.size||t||16}get iconColor(){return this.color.startsWith("#")?(this.consoleHandler("color-warn",this.color),this.color):this.color.startsWith("var(")?this.color:h()(this.color)}get iconClassMap(){return{"md-combobox-input__icon":this.isComboBoxIcon,"md-combobox-input__icon--active":this.isComboBoxIcon&&this.isActive,[`${this.iconName}`]:!!this.iconName}}get momentumUIIconLookupName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t=t.split("_")[0],t}getIconName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t}handleSizeOverride(t){return`${t.split("_")[0]}_${this.iconFontSize}`}get iconName(){const t=this.getIconName();return this.sizeOverrided?this.handleSizeOverride(t):"preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name)?"":c().includes(t)||""===t?`icon-${t}`:this.consoleHandler("name-error",t)}get iconStyleMap(){return Object.assign(Object.assign({},this.iconFontSize&&{"font-size":`${this.iconFontSize}px`}),this.color&&{color:this.iconColor})}static get styles(){return[s.A,v.A]}handleIconClick(t){this.dispatchEvent(new CustomEvent("icon-click",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get doesIconSetSupportSVG(){return"momentumDesign"===this.iconSet||"preferMomentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return l.html`
1
+ "use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[1200],{61200:(t,e,i)=>{i(96798);var o,n=i(31890),s=i(26272),r=i(32022),c=i.n(r),a=i(60554),l=i.n(a),h=i(41488),d=i(40333),p=i(23968),u=i(97822),m=i(8229),g=i(57955),v=i(66873),y=i(81786),S=i(9223),b=function(t,e,i,o){var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){var e;let i=e=class extends h.LitElement{constructor(){super(...arguments),this.color="",this.description="",this.name="",this.id="",this.size="",this.title="",this.ariaHidden=null,this.type="",this.isActive=!1,this.isComboBoxIcon=!1,this.sizeOverrided=!1,this.iconSet="momentumUI",this.svgIcon=null,this._ariaLabel="",this.consoleHandler=(t,e)=>{switch(t){case"color-warn":console.warn(`[@momentum-ui/web-component] Icon: ${e} may not exist in the design system, please use a color name from https://momentum.design/styles/color/style`);break;case"name-error":console.warn(`[@momentum-ui/web-component] Icon: Icon ${e} does not exist in the design system. Visit https://momentum.design/icons for a list of available icons or to request a new icon.`);break;case"name-changed":console.warn(`[@momentum-ui/web-component] Icon: The name changed to '${e[0]}' before the SVG icon '${e[1]}' finished loading; skipping outdated result.`)}}}isSvgAlreadyLoaded(t){var e,i;return!!this.svgIcon&&(null===(i=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"))||void 0===i?void 0:i.includes(t))}loadSvgIcon(t){return e=this,i=void 0,n=function*(){var e,i,o,n;if(this.isSvgAlreadyLoaded(t))return;const s=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"),r="momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet?yield(0,S.Jp)(this.computedSvgPath,t,"svg"):yield(0,S.D6)(t);if(!r)return;const c=null===(i=this.svgIcon)||void 0===i?void 0:i.getAttribute("class");s===c?(this.svgIcon=r,null===(o=this.svgIcon)||void 0===o||o.setAttribute("class",`icon ${t}`),null===(n=this.svgIcon)||void 0===n||n.setAttribute("part","icon"),this.setSvgIconAttributes(),this.requestUpdate()):this.consoleHandler("name-changed",[null!=c?c:"",t])},new((o=void 0)||(o=Promise))(function(t,s){function r(t){try{a(n.next(t))}catch(t){s(t)}}function c(t){try{a(n.throw(t))}catch(t){s(t)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o(function(t){t(i)})).then(r,c)}a((n=n.apply(e,i||[])).next())});var e,i,o,n}setSvgIconAttributes(){this.svgIcon&&(this.iconFontSize&&this.svgIcon.setAttribute("width",`${this.iconFontSize}px`),this.iconFontSize&&this.svgIcon.setAttribute("height",`${this.iconFontSize}px`),this.color?this.svgIcon.setAttribute("fill",this.iconColor):this.svgIcon.setAttribute("fill","currentColor"))}get computedSvgPath(){return this.svgUrl?this.svgUrl:y.O.svgIconUrl}getIsMomentumDesignName(t){return t.endsWith("-filled")||t.endsWith("-light")||t.endsWith("-regular")||t.endsWith("-bold")}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet)return this.name;if("preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name))return this.name;const t=this.momentumUIIconLookupName,i=e.designLookup.get(t);return null!=i?i:t}updated(t){if(super.updated(t),this.doesIconSetSupportSVG)if(t.has("name")||t.has("iconSet")){const t=this.svgIconName;t&&"Unknown"!==t&&this.loadSvgIcon(t)}else(t.has("iconFontSize")||t.has("color"))&&this.setSvgIconAttributes()}get ariaLabel(){return this._ariaLabel?this._ariaLabel:this.title&&this.description?`${this.title} ${this.description}`:this.title?this.title:this.description?this.description:"icon"}set ariaLabel(t){const e=this._ariaLabel;this._ariaLabel=t,this.requestUpdate("ariaLabel",e)}get buttonClassMap(){return{[`md-button--icon-${this.type}`]:!!this.type}}get iconFontSize(){const t=this.name.split("_")[1];return this.size||t||16}get iconColor(){return this.color.startsWith("#")?(this.consoleHandler("color-warn",this.color),this.color):this.color.startsWith("var(")?this.color:l()(this.color)}get iconClassMap(){return{"md-combobox-input__icon":this.isComboBoxIcon,"md-combobox-input__icon--active":this.isComboBoxIcon&&this.isActive,[`${this.iconName}`]:!!this.iconName}}get momentumUIIconLookupName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t=t.split("_")[0],t}getIconName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t}handleSizeOverride(t){return`${t.split("_")[0]}_${this.iconFontSize}`}get iconName(){const t=this.getIconName();return this.sizeOverrided?this.handleSizeOverride(t):"preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name)?"":c().includes(t)||""===t?`icon-${t}`:this.consoleHandler("name-error",t)}get iconStyleMap(){return Object.assign(Object.assign({},this.iconFontSize&&{"font-size":`${this.iconFontSize}px`}),this.color&&{color:this.iconColor})}static get styles(){return[s.A,v.A]}handleIconClick(t){this.dispatchEvent(new CustomEvent("icon-click",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get doesIconSetSupportSVG(){return"momentumDesign"===this.iconSet||"preferMomentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return h.html`
2
2
  <i
3
3
  part="icon"
4
4
  id=${this.id}
5
- class="md-icon icon ${(0,d.classMap)(this.iconClassMap)}"
5
+ class="md-icon icon ${(0,p.classMap)(this.iconClassMap)}"
6
6
  style=${(0,m.styleMap)(this.iconStyleMap)}
7
7
  role="img"
8
8
  aria-label=${this.ariaLabel}
@@ -11,7 +11,7 @@
11
11
  @click=${t=>this.handleIconClick(t)}
12
12
  >
13
13
  </i>
14
- `}renderSVGIcon(){var t;return l.html`
14
+ `}renderSVGIcon(){var t;return h.html`
15
15
  <div
16
16
  class="svg-icon-container"
17
17
  id=${this.id}
@@ -21,6 +21,6 @@
21
21
  aria-hidden=${(0,u.ifDefined)(null!==(t=this.ariaHidden)&&void 0!==t?t:void 0)}
22
22
  @click=${t=>this.handleIconClick(t)}
23
23
  >
24
- ${this.svgIcon?this.svgIcon:p.nothing}
24
+ ${this.svgIcon?this.svgIcon:d.nothing}
25
25
  </div>
26
- `}};i.designLookup=new Map(Object.entries(g)),b([(0,l.property)({type:String})],i.prototype,"color",void 0),b([(0,l.property)({type:String})],i.prototype,"description",void 0),b([(0,l.property)({type:String})],i.prototype,"name",void 0),b([(0,l.property)({type:String})],i.prototype,"id",void 0),b([(0,l.property)({type:String})],i.prototype,"size",void 0),b([(0,l.property)({type:String})],i.prototype,"title",void 0),b([(0,l.property)({type:String})],i.prototype,"ariaHidden",void 0),b([(0,l.property)({type:String})],i.prototype,"type",void 0),b([(0,l.property)({type:Boolean})],i.prototype,"isActive",void 0),b([(0,l.property)({type:Boolean})],i.prototype,"isComboBoxIcon",void 0),b([(0,l.property)({type:Boolean})],i.prototype,"sizeOverrided",void 0),b([(0,l.property)({type:String})],i.prototype,"iconSet",void 0),b([(0,l.property)({type:String,attribute:"svg-url"})],i.prototype,"svgUrl",void 0),b([(0,l.internalProperty)()],i.prototype,"svgIcon",void 0),b([(0,l.property)({type:String})],i.prototype,"ariaLabel",null),i=e=b([(0,n.w)("md-icon")],i),t.ELEMENT=i}(o||(o={}))}}]);
26
+ `}};i.designLookup=new Map(Object.entries(g)),b([(0,h.property)({type:String})],i.prototype,"color",void 0),b([(0,h.property)({type:String})],i.prototype,"description",void 0),b([(0,h.property)({type:String})],i.prototype,"name",void 0),b([(0,h.property)({type:String})],i.prototype,"id",void 0),b([(0,h.property)({type:String})],i.prototype,"size",void 0),b([(0,h.property)({type:String})],i.prototype,"title",void 0),b([(0,h.property)({type:String})],i.prototype,"ariaHidden",void 0),b([(0,h.property)({type:String})],i.prototype,"type",void 0),b([(0,h.property)({type:Boolean})],i.prototype,"isActive",void 0),b([(0,h.property)({type:Boolean})],i.prototype,"isComboBoxIcon",void 0),b([(0,h.property)({type:Boolean})],i.prototype,"sizeOverrided",void 0),b([(0,h.property)({type:String})],i.prototype,"iconSet",void 0),b([(0,h.property)({type:String,attribute:"svg-url"})],i.prototype,"svgUrl",void 0),b([(0,h.internalProperty)()],i.prototype,"svgIcon",void 0),b([(0,h.property)({type:String})],i.prototype,"ariaLabel",null),i=e=b([(0,n.w)("md-icon")],i),t.ELEMENT=i}(o||(o={}))}}]);
package/dist/6273.js CHANGED
@@ -1,9 +1,9 @@
1
- "use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[6273],{38654:(e,t,i)=>{i.d(t,{DatePicker:()=>o}),i(63208),i(96408),i(11323);var o,a=i(90195),r=i(37719),s=i(31890),l=i(81625),n=i(66677),d=i(74548),p=i(41488),h=i(97822),c=i(65796),u=i(71128),m=i(14974),y=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};!function(e){e.weekStartDays=["Sunday","Monday"];let t=class extends p.LitElement{constructor(){super(...arguments),this.shouldCloseOnSelect=!1,this.maxDate=void 0,this.minDate=void 0,this.value=void 0,this.weekStart="Sunday",this.placeholder=void 0,this.locale=void 0,this.useISOFormat=!0,this.validateDate=!0,this.includesTime=!1,this.disabled=!1,this.htmlId="",this.label="",this.ariaLabel=null,this.displayValue=null,this.required=!1,this.errorMessage="",this.customTrigger=!1,this.isMenuOverlayOpen=!1,this.newMomentum=void 0,this.disableUserTextInput=!1,this.compactInput=void 0,this.controlButtons=void 0,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.usePopover=!1,this.triggerID="date-trigger",this.animationFrame=!1,this.isDatePickerMonthLoading=!1,this.isDatePickerMonthError=!1,this.errorMessages={},this.selectedDate=(0,l.tB)(),this.focusedDate=(0,l.tB)(),this.filterDate=void 0,this.onRetry=void 0,this.maxDateData=void 0,this.minDateData=void 0,this.popoverController=null,this.handleDateInputChange=e=>{var t,i;this.useISOFormat?this.value=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.value:this.value=null===(i=this.selectedDate)||void 0===i?void 0:i.toLocaleString(c.DateTime.DATE_SHORT,{locale:this.locale}),this.dispatchEvent(new CustomEvent("date-input-change",{bubbles:!0,composed:!0,detail:{sourceEvent:e,value:this.value}}))},this.setOpen=e=>{var t,i;this.usePopover?e?null===(t=this.popoverController)||void 0===t||t.show():null===(i=this.popoverController)||void 0===i||i.hide():this.menuOverlay.isOpen=e,this.isMenuOverlayOpen=e},this.setPreSelection=e=>{const t={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};(0,l.t_)(e,t)||(this.focusedDate=e)},this.handleInputKeyDown=e=>{e.code===a.Uz.ArrowDown&&this.setOpen(!0)},this.handleKeyDown=e=>{const t=e.detail.sourceEvent;let i=!1;const o=this.focusedDate;switch(!t.shiftKey&&t.code){case"Space":case"Enter":this.handleSelect(e),i=!0;break;case"Escape":this.setOpen(!1);break;case"ArrowUp":this.setPreSelection((0,l.WB)(o,1)),i=!0;break;case"ArrowLeft":this.setPreSelection((0,l.gg)(o,1)),i=!0;break;case"ArrowRight":this.setPreSelection((0,l.fi)(o,1)),i=!0;break;case"ArrowDown":this.setPreSelection((0,l.J4)(o,1)),i=!0}i&&(t.stopPropagation(),t.preventDefault())},this.getDefaultAriaLabel=()=>{var e;return(null===(e=this.selectedDate)||void 0===e?void 0:e.isValid)?`Choose Date, selected date is ${this.selectedDate.toLocaleString(c.DateTime.DATE_FULL)}`:"Choose Date"},this.getValidRegexString=()=>this.includesTime?d.b.ISOString:d.b.ISODateString}get computedNewMomentum(){return void 0!==this.newMomentum?this.newMomentum:r.themeManager.isMomentumV2Enabled}static get styles(){return m.A}connectedCallback(){super.connectedCallback(),this.minDate&&(this.minDateData=(0,l.mA)(this.minDate)),this.maxDate&&(this.maxDateData=(0,l.mA)(this.maxDate)),this.usePopover&&(this.popoverController=new u.PopoverController)}firstUpdated(e){super.firstUpdated(e),!this.value&&this.showDefaultNowDate&&(this.value=this.getFormattedDate(this.selectedDate))}updated(e){if(super.updated(e),this.value&&e.has("value")){if((0,n.QZ)("md-date-range-picker",this))return;this.useISOFormat?this.selectedDate=(0,l.mA)(this.value):this.selectedDate=c.DateTime.fromFormat(this.value,(0,l.gq)(this.locale),{locale:this.locale}),this.setPreSelection(this.selectedDate)}e.has("locale")&&this.render(),this.minDate&&e.has("minDate")&&(this.minDateData=(0,l.mA)(this.minDate)),this.maxDate&&e.has("maxDate")&&(this.maxDateData=(0,l.mA)(this.maxDate)),!this.usePopover&&e.has("usePopover")&&(this.popoverController=new u.PopoverController)}handleSelect(e){var t;const i=e.detail.date,o=e.detail.sourceEvent;this.setPreSelection(i),this.dispatchEvent(new CustomEvent("date-pre-selection-change",{bubbles:!0,composed:!0,detail:{sourceEvent:o,data:i}})),(null===(t=this.controlButtons)||void 0===t?void 0:t.apply)&&"apply-button-clicked"!==(null==o?void 0:o.type)||(this.setSelected(i,o),this.shouldCloseOnSelect&&this.setOpen(!1))}getISODateTime(e){return this.includesTime?e.startOf("second").toISO({suppressMilliseconds:!0}):e.toISODate()}setSelected(e,t){const i={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};if(!(0,l.t_)(e,i)){const t=this.getISODateTime(e);this.selectedDate=e,this.useISOFormat?this.value=t:this.value=e.toLocaleString(c.DateTime.DATE_SHORT,{locale:this.locale})}this.dispatchEvent(new CustomEvent("date-selection-change",{bubbles:!0,composed:!0,detail:{sourceEvent:t,data:e}}))}validateDateString(e){if(!e&&""!==e)return!0;if(this.useISOFormat){const t=RegExp(this.getValidRegexString()),i={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};return!!e&&t.test(e)&&!(0,l.t_)((0,l.mA)(e),i)}const t=(0,l.gq)(this.locale);return c.DateTime.fromFormat(e,t,{locale:this.locale}).isValid}isValueValid(){return!this.validateDate||this.validateDateString(this.value)}get messageArray(){return this.errorMessage?[{message:this.errorMessage,type:"error"}]:this.isValueValid()?[]:[{message:"",type:"error"}]}onCancelClick(){this.setOpen(!1)}onApplyClick(){this.handleSelect(new CustomEvent("day-select",{detail:{date:this.focusedDate,sourceEvent:new Event("apply-button-clicked")}}))}renderControlButtons(){var e,t,i,o,a,r;return!this.controlButtons||this.isDatePickerMonthLoading||this.isDatePickerMonthError?p.html``:p.html`
1
+ "use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[6273],{38654:(e,t,i)=>{i.d(t,{DatePicker:()=>o}),i(63208),i(96408),i(11323);var o,a=i(90195),r=i(37719),s=i(31890),l=i(81625),n=i(74548),d=i(41488),p=i(97822),h=i(65796),c=i(71128),u=i(14974),m=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};!function(e){e.weekStartDays=["Sunday","Monday"];let t=class extends d.LitElement{constructor(){super(...arguments),this.shouldCloseOnSelect=!1,this.maxDate=void 0,this.minDate=void 0,this.value=void 0,this.weekStart="Sunday",this.placeholder=void 0,this.locale=void 0,this.useISOFormat=!0,this.validateDate=!0,this.includesTime=!1,this.disabled=!1,this.htmlId="",this.label="",this.ariaLabel=null,this.displayValue=null,this.required=!1,this.errorMessage="",this.customTrigger=!1,this.isMenuOverlayOpen=!1,this.newMomentum=void 0,this.disableUserTextInput=!1,this.compactInput=void 0,this.controlButtons=void 0,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.usePopover=!1,this.triggerID="date-trigger",this.animationFrame=!1,this.isDatePickerMonthLoading=!1,this.isDatePickerMonthError=!1,this.errorMessages={},this.selectedDate=(0,l.tB)(),this.focusedDate=(0,l.tB)(),this.filterDate=void 0,this.onRetry=void 0,this.maxDateData=void 0,this.minDateData=void 0,this.popoverController=null,this.handleDateInputChange=e=>{var t,i;this.useISOFormat?this.value=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.value:this.value=null===(i=this.selectedDate)||void 0===i?void 0:i.toLocaleString(h.DateTime.DATE_SHORT,{locale:this.locale}),this.dispatchEvent(new CustomEvent("date-input-change",{bubbles:!0,composed:!0,detail:{sourceEvent:e,value:this.value}}))},this.setOpen=e=>{var t,i;this.usePopover?e?null===(t=this.popoverController)||void 0===t||t.show():null===(i=this.popoverController)||void 0===i||i.hide():this.menuOverlay.isOpen=e,this.isMenuOverlayOpen=e},this.setPreSelection=e=>{const t={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};(0,l.t_)(e,t)||(this.focusedDate=e)},this.handleInputKeyDown=e=>{e.code===a.Uz.ArrowDown&&this.setOpen(!0)},this.handleKeyDown=e=>{const t=e.detail.sourceEvent;let i=!1;const o=this.focusedDate;switch(!t.shiftKey&&t.code){case"Space":case"Enter":this.handleSelect(e),i=!0;break;case"Escape":this.setOpen(!1);break;case"ArrowUp":this.setPreSelection((0,l.WB)(o,1)),i=!0;break;case"ArrowLeft":this.setPreSelection((0,l.gg)(o,1)),i=!0;break;case"ArrowRight":this.setPreSelection((0,l.fi)(o,1)),i=!0;break;case"ArrowDown":this.setPreSelection((0,l.J4)(o,1)),i=!0}i&&(t.stopPropagation(),t.preventDefault())},this.getDefaultAriaLabel=()=>{var e;return(null===(e=this.selectedDate)||void 0===e?void 0:e.isValid)?`Choose Date, selected date is ${this.selectedDate.toLocaleString(h.DateTime.DATE_FULL)}`:"Choose Date"},this.getValidRegexString=()=>this.includesTime?n.b.ISOString:n.b.ISODateString}get computedNewMomentum(){return void 0!==this.newMomentum?this.newMomentum:r.themeManager.isMomentumV2Enabled}static get styles(){return u.A}connectedCallback(){super.connectedCallback(),this.minDate&&(this.minDateData=(0,l.mA)(this.minDate)),this.maxDate&&(this.maxDateData=(0,l.mA)(this.maxDate)),this.usePopover&&(this.popoverController=new c.PopoverController)}firstUpdated(e){super.firstUpdated(e),!this.value&&this.showDefaultNowDate&&(this.value=this.getFormattedDate(this.selectedDate))}updated(e){super.updated(e),this.value&&e.has("value")&&(this.useISOFormat?this.selectedDate=(0,l.mA)(this.value):this.selectedDate=h.DateTime.fromFormat(this.value,(0,l.gq)(this.locale),{locale:this.locale}),this.setPreSelection(this.selectedDate)),e.has("locale")&&this.render(),this.minDate&&e.has("minDate")&&(this.minDateData=(0,l.mA)(this.minDate)),this.maxDate&&e.has("maxDate")&&(this.maxDateData=(0,l.mA)(this.maxDate)),!this.usePopover&&e.has("usePopover")&&(this.popoverController=new c.PopoverController)}handleSelect(e){var t;const i=e.detail.date,o=e.detail.sourceEvent;this.setPreSelection(i),this.dispatchEvent(new CustomEvent("date-pre-selection-change",{bubbles:!0,composed:!0,detail:{sourceEvent:o,data:i}})),(null===(t=this.controlButtons)||void 0===t?void 0:t.apply)&&"apply-button-clicked"!==(null==o?void 0:o.type)||(this.setSelected(i,o),this.shouldCloseOnSelect&&this.setOpen(!1))}getISODateTime(e){return this.includesTime?e.startOf("second").toISO({suppressMilliseconds:!0}):e.toISODate()}setSelected(e,t){const i={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};if(!(0,l.t_)(e,i)){const t=this.getISODateTime(e);this.selectedDate=e,this.useISOFormat?this.value=t:this.value=e.toLocaleString(h.DateTime.DATE_SHORT,{locale:this.locale})}this.dispatchEvent(new CustomEvent("date-selection-change",{bubbles:!0,composed:!0,detail:{sourceEvent:t,data:e}}))}validateDateString(e){if(!e&&""!==e)return!0;if(this.useISOFormat){const t=RegExp(this.getValidRegexString()),i={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};return!!e&&t.test(e)&&!(0,l.t_)((0,l.mA)(e),i)}const t=(0,l.gq)(this.locale);return h.DateTime.fromFormat(e,t,{locale:this.locale}).isValid}isValueValid(){return!this.validateDate||this.validateDateString(this.value)}get messageArray(){return this.errorMessage?[{message:this.errorMessage,type:"error"}]:this.isValueValid()?[]:[{message:"",type:"error"}]}onCancelClick(){this.setOpen(!1)}onApplyClick(){this.handleSelect(new CustomEvent("day-select",{detail:{date:this.focusedDate,sourceEvent:new Event("apply-button-clicked")}}))}renderControlButtons(){var e,t,i,o,a,r;return!this.controlButtons||this.isDatePickerMonthLoading||this.isDatePickerMonthError?d.html``:d.html`
2
2
  <div class="control-buttons">
3
- ${this.controlButtons.cancel?p.html`
3
+ ${this.controlButtons.cancel?d.html`
4
4
  <md-button
5
5
  class="cancel-button"
6
- aria-label=${(0,h.ifDefined)(null===(e=this.controlButtons.cancel)||void 0===e?void 0:e.ariaLabel)}
6
+ aria-label=${(0,p.ifDefined)(null===(e=this.controlButtons.cancel)||void 0===e?void 0:e.ariaLabel)}
7
7
  ?disabled=${null!==(i=null===(t=this.controlButtons.cancel)||void 0===t?void 0:t.disabled)&&void 0!==i&&i}
8
8
  @button-click=${this.onCancelClick}
9
9
  variant="secondary"
@@ -11,10 +11,10 @@
11
11
  ${this.controlButtons.cancel.value}
12
12
  </md-button>
13
13
  `:null}
14
- ${this.controlButtons.apply?p.html`
14
+ ${this.controlButtons.apply?d.html`
15
15
  <md-button
16
16
  class="apply-button"
17
- aria-label=${(0,h.ifDefined)(null===(o=this.controlButtons.apply)||void 0===o?void 0:o.ariaLabel)}
17
+ aria-label=${(0,p.ifDefined)(null===(o=this.controlButtons.apply)||void 0===o?void 0:o.ariaLabel)}
18
18
  ?disabled=${null!==(r=null===(a=this.controlButtons.apply)||void 0===a?void 0:a.disabled)&&void 0!==r&&r}
19
19
  @button-click=${this.onApplyClick}
20
20
  variant="primary"
@@ -23,12 +23,12 @@
23
23
  </md-button>
24
24
  `:null}
25
25
  </div>
26
- `}getPlaceHolderString(){var e;return this.placeholder?this.placeholder:this.useISOFormat?"YYYY-MM-DD":(0,l.gq)(null!==(e=this.locale)&&void 0!==e?e:c.DateTime.local().locale).toUpperCase()}getFormattedDate(e){return e?this.useISOFormat?this.getISODateTime(e):this.includesTime?e.toLocaleString(c.DateTime.DATETIME_SHORT,{locale:this.locale}):e.toLocaleString(c.DateTime.DATE_SHORT,{locale:this.locale}):null}getAriaLabel(){var e;return null!==(e=this.ariaLabel)&&void 0!==e?e:this.getDefaultAriaLabel()}get isAriaExpanded(){return this.isMenuOverlayOpen?"true":"false"}renderPopover(){var e,t;return p.html`
26
+ `}getPlaceHolderString(){var e;return this.placeholder?this.placeholder:this.useISOFormat?"YYYY-MM-DD":(0,l.gq)(null!==(e=this.locale)&&void 0!==e?e:h.DateTime.local().locale).toUpperCase()}getFormattedDate(e){return e?this.useISOFormat?this.getISODateTime(e):this.includesTime?e.toLocaleString(h.DateTime.DATETIME_SHORT,{locale:this.locale}):e.toLocaleString(h.DateTime.DATE_SHORT,{locale:this.locale}):null}getAriaLabel(){var e;return null!==(e=this.ariaLabel)&&void 0!==e?e:this.getDefaultAriaLabel()}get isAriaExpanded(){return this.isMenuOverlayOpen?"true":"false"}renderPopover(){var e,t;return d.html`
27
27
  <md-popover
28
28
  trigger="click"
29
29
  .triggerID=${this.triggerID}
30
30
  placement="bottom"
31
- strategy=${(0,h.ifDefined)(this.positioningStrategy)}
31
+ strategy=${(0,p.ifDefined)(this.positioningStrategy)}
32
32
  hide-on-escape
33
33
  hide-on-outside-click
34
34
  focus-trap
@@ -53,11 +53,11 @@
53
53
  ${this.renderControlButtons()}
54
54
  </div>
55
55
  </md-popover>
56
- ${this.customTrigger?p.html`
56
+ ${this.customTrigger?d.html`
57
57
  <span slot="menu-trigger">
58
58
  <slot name="date-trigger"></slot>
59
59
  </span>
60
- `:p.html`
60
+ `:d.html`
61
61
  <md-input
62
62
  id="date-trigger"
63
63
  class="date-input"
@@ -65,7 +65,7 @@
65
65
  ariaRole="combobox"
66
66
  ?newMomentum=${this.computedNewMomentum}
67
67
  placeholder=${this.getPlaceHolderString()}
68
- value=${null!==(e=this.displayValue)&&void 0!==e?e:(0,h.ifDefined)(null!==(t=this.value)&&void 0!==t?t:void 0)}
68
+ value=${null!==(e=this.displayValue)&&void 0!==e?e:(0,p.ifDefined)(null!==(t=this.value)&&void 0!==t?t:void 0)}
69
69
  .disableUserTextInput=${this.disableUserTextInput}
70
70
  htmlId=${this.htmlId}
71
71
  label=${this.label}
@@ -85,25 +85,25 @@
85
85
  <md-icon slot="input-section" name="calendar-month-bold" size="16" iconSet="momentumDesign"></md-icon>
86
86
  </md-input>
87
87
  `}
88
- `}renderMenuOverlay(){var e,t;return p.html`
88
+ `}renderMenuOverlay(){var e,t;return d.html`
89
89
  <md-menu-overlay
90
90
  is-date-picker
91
91
  custom-width="272px"
92
92
  ?disabled=${this.disabled}
93
- positioning-strategy=${(0,h.ifDefined)(this.positioningStrategy)}
93
+ positioning-strategy=${(0,p.ifDefined)(this.positioningStrategy)}
94
94
  >
95
- ${this.customTrigger?p.html`
95
+ ${this.customTrigger?d.html`
96
96
  <span slot="menu-trigger">
97
97
  <slot name="date-trigger"></slot>
98
98
  </span>
99
- `:p.html`
99
+ `:d.html`
100
100
  <md-input
101
101
  class="date-input"
102
102
  slot="menu-trigger"
103
103
  ariaRole="combobox"
104
104
  ?newMomentum=${this.computedNewMomentum}
105
105
  placeholder=${this.getPlaceHolderString()}
106
- value=${null!==(e=this.displayValue)&&void 0!==e?e:(0,h.ifDefined)(null!==(t=this.value)&&void 0!==t?t:void 0)}
106
+ value=${null!==(e=this.displayValue)&&void 0!==e?e:(0,p.ifDefined)(null!==(t=this.value)&&void 0!==t?t:void 0)}
107
107
  .disableUserTextInput=${this.disableUserTextInput}
108
108
  htmlId=${this.htmlId}
109
109
  label=${this.label}
@@ -140,4 +140,4 @@
140
140
  ${this.renderControlButtons()}
141
141
  </div>
142
142
  </md-menu-overlay>
143
- `}render(){return this.usePopover?this.renderPopover():this.renderMenuOverlay()}};y([(0,p.property)({type:Boolean,attribute:"should-close-on-select"})],t.prototype,"shouldCloseOnSelect",void 0),y([(0,p.property)({type:String})],t.prototype,"maxDate",void 0),y([(0,p.property)({type:String})],t.prototype,"minDate",void 0),y([(0,p.property)({type:String,reflect:!0})],t.prototype,"value",void 0),y([(0,p.property)({type:String})],t.prototype,"weekStart",void 0),y([(0,p.property)({type:String,reflect:!0})],t.prototype,"placeholder",void 0),y([(0,p.property)({type:String})],t.prototype,"locale",void 0),y([(0,p.property)({type:Boolean})],t.prototype,"useISOFormat",void 0),y([(0,p.property)({type:Boolean})],t.prototype,"validateDate",void 0),y([(0,p.property)({type:Boolean,reflect:!0,attribute:"includes-time"})],t.prototype,"includesTime",void 0),y([(0,p.property)({type:Boolean})],t.prototype,"disabled",void 0),y([(0,p.property)({type:String})],t.prototype,"htmlId",void 0),y([(0,p.property)({type:String})],t.prototype,"label",void 0),y([(0,p.property)({type:String})],t.prototype,"ariaLabel",void 0),y([(0,p.property)({type:String})],t.prototype,"displayValue",void 0),y([(0,p.property)({type:Boolean})],t.prototype,"required",void 0),y([(0,p.property)({type:String,reflect:!0})],t.prototype,"errorMessage",void 0),y([(0,p.property)({type:Boolean,attribute:"custom-trigger"})],t.prototype,"customTrigger",void 0),y([(0,p.property)({type:Boolean})],t.prototype,"isMenuOverlayOpen",void 0),y([(0,p.property)({type:Boolean})],t.prototype,"newMomentum",void 0),y([(0,p.property)({type:Boolean})],t.prototype,"disableUserTextInput",void 0),y([(0,p.property)({type:Boolean,attribute:"compact-input"})],t.prototype,"compactInput",void 0),y([(0,p.property)({type:Object,attribute:!1})],t.prototype,"controlButtons",void 0),y([(0,p.property)({type:String,attribute:"positioning-strategy"})],t.prototype,"positioningStrategy",void 0),y([(0,p.property)({type:Boolean,attribute:"show-default-now-date"})],t.prototype,"showDefaultNowDate",void 0),y([(0,p.property)({type:Boolean,attribute:"use-popover"})],t.prototype,"usePopover",void 0),y([(0,p.property)({type:String,attribute:"triggerID"})],t.prototype,"triggerID",void 0),y([(0,p.property)({type:Boolean,reflect:!0,attribute:"animation-frame"})],t.prototype,"animationFrame",void 0),y([(0,p.property)({type:Boolean,reflect:!0,attribute:"is-date-picker-month-loading"})],t.prototype,"isDatePickerMonthLoading",void 0),y([(0,p.property)({type:Boolean,reflect:!0,attribute:"is-date-picker-month-error"})],t.prototype,"isDatePickerMonthError",void 0),y([(0,p.property)({type:Object,attribute:!1})],t.prototype,"errorMessages",void 0),y([(0,p.internalProperty)()],t.prototype,"selectedDate",void 0),y([(0,p.internalProperty)()],t.prototype,"focusedDate",void 0),y([(0,p.property)()],t.prototype,"filterDate",void 0),y([(0,p.property)({attribute:!1})],t.prototype,"onRetry",void 0),y([(0,p.internalProperty)()],t.prototype,"maxDateData",void 0),y([(0,p.internalProperty)()],t.prototype,"minDateData",void 0),y([(0,p.query)("md-menu-overlay")],t.prototype,"menuOverlay",void 0),y([(0,p.query)("md-popover")],t.prototype,"popoverElement",void 0),t=y([(0,s.w)("md-datepicker")],t),e.ELEMENT=t}(o||(o={}))}}]);
143
+ `}render(){return this.usePopover?this.renderPopover():this.renderMenuOverlay()}};m([(0,d.property)({type:Boolean,attribute:"should-close-on-select"})],t.prototype,"shouldCloseOnSelect",void 0),m([(0,d.property)({type:String})],t.prototype,"maxDate",void 0),m([(0,d.property)({type:String})],t.prototype,"minDate",void 0),m([(0,d.property)({type:String,reflect:!0})],t.prototype,"value",void 0),m([(0,d.property)({type:String})],t.prototype,"weekStart",void 0),m([(0,d.property)({type:String,reflect:!0})],t.prototype,"placeholder",void 0),m([(0,d.property)({type:String})],t.prototype,"locale",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"useISOFormat",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"validateDate",void 0),m([(0,d.property)({type:Boolean,reflect:!0,attribute:"includes-time"})],t.prototype,"includesTime",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"disabled",void 0),m([(0,d.property)({type:String})],t.prototype,"htmlId",void 0),m([(0,d.property)({type:String})],t.prototype,"label",void 0),m([(0,d.property)({type:String})],t.prototype,"ariaLabel",void 0),m([(0,d.property)({type:String})],t.prototype,"displayValue",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"required",void 0),m([(0,d.property)({type:String,reflect:!0})],t.prototype,"errorMessage",void 0),m([(0,d.property)({type:Boolean,attribute:"custom-trigger"})],t.prototype,"customTrigger",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"isMenuOverlayOpen",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"newMomentum",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"disableUserTextInput",void 0),m([(0,d.property)({type:Boolean,attribute:"compact-input"})],t.prototype,"compactInput",void 0),m([(0,d.property)({type:Object,attribute:!1})],t.prototype,"controlButtons",void 0),m([(0,d.property)({type:String,attribute:"positioning-strategy"})],t.prototype,"positioningStrategy",void 0),m([(0,d.property)({type:Boolean,attribute:"show-default-now-date"})],t.prototype,"showDefaultNowDate",void 0),m([(0,d.property)({type:Boolean,attribute:"use-popover"})],t.prototype,"usePopover",void 0),m([(0,d.property)({type:String,attribute:"triggerID"})],t.prototype,"triggerID",void 0),m([(0,d.property)({type:Boolean,reflect:!0,attribute:"animation-frame"})],t.prototype,"animationFrame",void 0),m([(0,d.property)({type:Boolean,reflect:!0,attribute:"is-date-picker-month-loading"})],t.prototype,"isDatePickerMonthLoading",void 0),m([(0,d.property)({type:Boolean,reflect:!0,attribute:"is-date-picker-month-error"})],t.prototype,"isDatePickerMonthError",void 0),m([(0,d.property)({type:Object,attribute:!1})],t.prototype,"errorMessages",void 0),m([(0,d.internalProperty)()],t.prototype,"selectedDate",void 0),m([(0,d.internalProperty)()],t.prototype,"focusedDate",void 0),m([(0,d.property)()],t.prototype,"filterDate",void 0),m([(0,d.property)({attribute:!1})],t.prototype,"onRetry",void 0),m([(0,d.internalProperty)()],t.prototype,"maxDateData",void 0),m([(0,d.internalProperty)()],t.prototype,"minDateData",void 0),m([(0,d.query)("md-menu-overlay")],t.prototype,"menuOverlay",void 0),m([(0,d.query)("md-popover")],t.prototype,"popoverElement",void 0),t=m([(0,s.w)("md-datepicker")],t),e.ELEMENT=t}(o||(o={}))}}]);
package/dist/7330.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[7330],{67330:(o,i,e)=>{e.d(i,{A:()=>t});const t=e(41488).css`.md-floating{background-color:var(--floating-modal-main-bg-color);border:1px solid var(--floating-modal-outer-border-color);border-radius:8px;box-shadow:var(--floating-modal-main-box-shadow);display:flex;flex-direction:column;max-height:100%;max-width:100%;position:absolute;touch-action:none;user-select:none;z-index:1040}.md-floating.fixed{position:fixed}.md-floating.hide{display:block;height:0;visibility:hidden;width:0}.md-floating.md-floating-minimize{background:var(--floating-modal-main-bg-color-alternate);border-radius:8px;width:100%}.md-floating.md-floating-minimize:focus{box-shadow:0 0 0 .125rem #005e7d;outline:0}.md-floating .md-floating__header-button{align-items:center;display:inline-flex}.md-floating .md-floating__header{align-items:center;border-bottom:none;color:var(--floating-modal-main-text-color);display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;max-height:3rem;padding:1rem;width:100%;gap:.5rem}.md-floating .md-floating__header-text{flex:2 1 auto;font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:16px;line-height:16px;text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:auto}.md-floating .md-floating__body{height:calc(100% - 3rem);overflow:auto;padding:.75rem 1rem;padding-top:0}.md-floating .md-floating-body-minimize{display:block;height:0;visibility:hidden}.md-floating .md-floating__header-minimize{border-bottom:0;color:var(--floating-modal-main-text-color-alternate);font-size:16px;line-height:24px;width:100%}.md-floating-min-parent{bottom:0;height:3rem;position:absolute;right:0;width:223px}`}}]);
1
+ "use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[7330],{67330:(i,o,e)=>{e.d(o,{A:()=>t});const t=e(41488).css`.md-floating{background-color:var(--floating-modal-main-bg-color);border:1px solid var(--floating-modal-outer-border-color);border-radius:8px;box-shadow:var(--floating-modal-main-box-shadow);display:flex;flex-direction:column;max-height:100%;max-width:100%;position:absolute;touch-action:none;user-select:none;z-index:1040}.md-floating.fixed{position:fixed}.md-floating.hide{display:block;height:0;visibility:hidden;width:0}.md-floating.md-floating-minimize{background:var(--floating-modal-main-bg-color-alternate);border-radius:8px;width:100%}.md-floating.md-floating-minimize:focus{box-shadow:0 0 0 .125rem #005e7d;outline:0}.md-floating .md-floating__header-button{align-items:center;display:inline-flex}.md-floating .md-floating__header{align-items:center;border-bottom:none;color:var(--floating-modal-main-text-color);display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;max-height:3rem;padding:1rem;width:100%;gap:.5rem}.md-floating .md-floating__header-text{flex:2 1 auto;font-family:var(--brand-font-bold, "CiscoSansTT Bold", "Helvetica Neue", Helvetica, Arial, sans-serif);font-size:16px;line-height:16px;text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.md-floating .md-floating__body{height:calc(100% - 3rem);overflow:auto;padding:.75rem 1rem;padding-top:0}.md-floating .md-floating-body-minimize{display:block;height:0;visibility:hidden}.md-floating .md-floating__header-minimize{border-bottom:0;color:var(--floating-modal-main-text-color-alternate);font-size:16px;line-height:24px;width:100%}.md-floating-min-parent{bottom:0;height:3rem;position:absolute;right:0;width:223px}`}}]);
@@ -1,10 +1,10 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html"),require("lit-html/directives/if-defined"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map","lit-html","lit-html/directives/if-defined"],e);else{var i="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html"),require("lit-html/directives/if-defined")):e(t["lit-element"],t["lit-html/directives/class-map"],t["lit-html"],t["lit-html/directives/if-defined"]);for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(self,(t,e,i,o)=>(()=>{"use strict";var r,s={23968:t=>{t.exports=e},40333:t=>{t.exports=i},41488:e=>{e.exports=t},58287:(t,e,i)=>{var o,r=i(31890),s=i(26272),l=i(41488),p=i(23968),n=i(31107),a=function(t,e,i,o){var r,s=arguments.length,l=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,i,o);else for(var p=t.length-1;p>=0;p--)(r=t[p])&&(l=(s<3?r(l):s>3?r(e,i,l):r(e,i))||l);return s>3&&l&&Object.defineProperty(e,i,l),l};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.dynamic=!1,this.color="",this.label="",this.displayFormat="percentage",this.type="indeterminate",this.min=0,this.max=100,this.value=25,this.adjustedValue=0,this.valueFraction=0,this.meterWidth="100",this.getDisplayFormat=()=>"indeterminate"===this.type?(this.value=100,null):(this.adjustedValue=this.max-this.value<0?this.max:this.value,this.valueFraction=this.adjustedValue/this.max*100||0,this.meterWidth=this.valueFraction.toFixed(0)+"%","none"===this.displayFormat?null:"percentage"===this.displayFormat?this.meterWidth:`${this.adjustedValue} / ${this.max}`),this.getColor=()=>this.color?this.color:this.dynamic?this.valueFraction<25?"success":this.valueFraction<50?"info":this.valueFraction<75?"warning":"danger":void 0}connectedCallback(){super.connectedCallback(),this.requestUpdate("value")}static get styles(){return[s.A,n.A]}render(){const t={[`progress--${this.type}`]:this.type,[`progress--${this.color}`]:this.color};return l.html`
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html"),require("lit-html/directives/if-defined"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map","lit-html","lit-html/directives/if-defined"],e);else{var i="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html"),require("lit-html/directives/if-defined")):e(t["lit-element"],t["lit-html/directives/class-map"],t["lit-html"],t["lit-html/directives/if-defined"]);for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(self,(t,e,i,o)=>(()=>{"use strict";var r,s={23968:t=>{t.exports=e},40333:t=>{t.exports=i},41488:e=>{e.exports=t},58287:(t,e,i)=>{var o,r=i(31890),s=i(26272),l=i(41488),n=i(23968),p=i(31107),a=function(t,e,i,o){var r,s=arguments.length,l=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(l=(s<3?r(l):s>3?r(e,i,l):r(e,i))||l);return s>3&&l&&Object.defineProperty(e,i,l),l};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this.dynamic=!1,this.color="",this.label="",this.displayFormat="percentage",this.type="indeterminate",this.min=0,this.max=100,this.value=25,this.adjustedValue=0,this.valueFraction=0,this.meterWidth="100",this.getDisplayFormat=()=>"indeterminate"===this.type?(this.value=100,null):(this.adjustedValue=this.max-this.value<0?this.max:this.value,this.valueFraction=this.adjustedValue/this.max*100||0,this.meterWidth=this.valueFraction.toFixed(0)+"%","none"===this.displayFormat?null:"percentage"===this.displayFormat?this.meterWidth:`${this.adjustedValue} / ${this.max}`),this.getColor=()=>this.color?this.color:this.dynamic?this.valueFraction<25?"success":this.valueFraction<50?"info":this.valueFraction<75?"warning":"danger":void 0}connectedCallback(){super.connectedCallback(),this.requestUpdate("value")}static get styles(){return[s.A,p.A]}render(){const t={[`progress--${this.type}`]:this.type,[`progress--${this.color}`]:this.color};return l.html`
2
2
  <span>
3
3
  <div class="progressbar-info" data-key="${this.min}">
4
4
  <span class="progressbar-label">${this.label}</span>
5
5
  <span class="progressbar-progress">${this.getDisplayFormat()}</span>
6
6
  </div>
7
- <div class="progress ${(0,p.classMap)(t)}" data-key="${this.max}">
7
+ <div class="progress ${(0,n.classMap)(t)}" data-key="${this.max}">
8
8
  <span
9
9
  class="meter"
10
10
  role="progressbar"
@@ -18,7 +18,7 @@
18
18
  </span>
19
19
  </div>
20
20
  </span>
21
- `}};a([(0,l.property)({type:Boolean})],e.prototype,"dynamic",void 0),a([(0,l.property)({type:String})],e.prototype,"color",void 0),a([(0,l.property)({type:String})],e.prototype,"label",void 0),a([(0,l.property)({type:String})],e.prototype,"displayFormat",void 0),a([(0,l.property)({type:String})],e.prototype,"type",void 0),a([(0,l.property)({type:Number})],e.prototype,"min",void 0),a([(0,l.property)({type:Number})],e.prototype,"max",void 0),a([(0,l.property)({type:Number})],e.prototype,"value",void 0),a([(0,l.property)({type:Number})],e.prototype,"adjustedValue",void 0),a([(0,l.property)({type:Number})],e.prototype,"valueFraction",void 0),a([(0,l.property)({type:String})],e.prototype,"meterWidth",void 0),e=a([(0,r.w)("md-progress-bar")],e),t.ELEMENT=e}(o||(o={}))},60046:(t,e,i)=>{i.r(e),i.d(e,{Chip:()=>o}),i(58287),i(83192);var o,r=i(90195),s=i(31890),l=i(26272),p=i(41488),n=i(40333),a=i(23968),h=i(97822),d=i(49618),c=function(t,e,i,o){var r,s=arguments.length,l=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,i,o);else for(var p=t.length-1;p>=0;p--)(r=t[p])&&(l=(s<3?r(l):s>3?r(e,i,l):r(e,i))||l);return s>3&&l&&Object.defineProperty(e,i,l),l};!function(t){let e=class extends p.LitElement{constructor(){super(...arguments),this.color="",this.bgColor="",this.textColor="",this.height="",this.icon="",this.iconColor="",this.iconSize="",this.role="group",this.id="",this.small=!1,this.readonly=!1,this.selected=!1,this.disabled=!1,this.determinateProgress=0,this.indeterminateProgress=!1,this.tooltipText="",this.tooltipPlacement="auto",this.iconSet="momentumUI",this.suppressDefaultMaxWidth=!1,this.decorative=!1,this.shouldTruncateValue=!0,this.value="",this.textOverflow=!1,this.renderedText="",this.MAX_LENGTH=18,this.PRE_TRUNC_CHARS=6,this.POST_TRUNC_CHARS=9,this.DOT_COUNT=3,this.selectionChange=t=>{this.dispatchEvent(new CustomEvent("chip-selected",{composed:!0,bubbles:!0,detail:{selected:t}}))},this.handleClear=t=>{this.dispatchEvent(new CustomEvent("chip-deleted",{composed:!0,bubbles:!0,detail:{id:t}}))},this.handleSelect=()=>{this.disabled||(this.selected=!0,this.selectionChange(!0))},this.handleDeSelect=()=>{this.selected=!1,this.selectionChange(!1)},this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:n.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:n.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:n.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height?p.html`
21
+ `}};a([(0,l.property)({type:Boolean})],e.prototype,"dynamic",void 0),a([(0,l.property)({type:String})],e.prototype,"color",void 0),a([(0,l.property)({type:String})],e.prototype,"label",void 0),a([(0,l.property)({type:String})],e.prototype,"displayFormat",void 0),a([(0,l.property)({type:String})],e.prototype,"type",void 0),a([(0,l.property)({type:Number})],e.prototype,"min",void 0),a([(0,l.property)({type:Number})],e.prototype,"max",void 0),a([(0,l.property)({type:Number})],e.prototype,"value",void 0),a([(0,l.property)({type:Number})],e.prototype,"adjustedValue",void 0),a([(0,l.property)({type:Number})],e.prototype,"valueFraction",void 0),a([(0,l.property)({type:String})],e.prototype,"meterWidth",void 0),e=a([(0,r.w)("md-progress-bar")],e),t.ELEMENT=e}(o||(o={}))},60046:(t,e,i)=>{i.r(e),i.d(e,{Chip:()=>o}),i(58287),i(83192);var o,r=i(90195),s=i(31890),l=i(26272),n=i(41488),p=i(40333),a=i(23968),h=i(97822),d=i(49618),c=function(t,e,i,o){var r,s=arguments.length,l=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(l=(s<3?r(l):s>3?r(e,i,l):r(e,i))||l);return s>3&&l&&Object.defineProperty(e,i,l),l};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.color="",this.bgColor="",this.textColor="",this.height="",this.icon="",this.iconColor="",this.iconSize="",this.role="group",this.id="",this.small=!1,this.readonly=!1,this.selected=!1,this.disabled=!1,this.determinateProgress=0,this.indeterminateProgress=!1,this.tooltipText="",this.tooltipPlacement="auto",this.iconSet="momentumUI",this.suppressDefaultMaxWidth=!1,this.decorative=!1,this.shouldTruncateValue=!0,this.value="",this.textOverflow=!1,this.renderedText="",this.MAXWIDTH=115,this.selectionChange=t=>{this.dispatchEvent(new CustomEvent("chip-selected",{composed:!0,bubbles:!0,detail:{selected:t}}))},this.handleClear=t=>{this.dispatchEvent(new CustomEvent("chip-deleted",{composed:!0,bubbles:!0,detail:{id:t}}))},this.handleSelect=()=>{this.disabled||(this.selected=!0,this.selectionChange(!0))},this.handleDeSelect=()=>{this.selected=!1,this.selectionChange(!1)},this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:p.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:p.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:p.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height?n.html`
22
22
  <style>
23
23
  :host .md-chip {
24
24
  ${this.renderBgColor()};
@@ -26,7 +26,7 @@
26
26
  ${this.renderHeight()};
27
27
  }
28
28
  </style>
29
- `:n.nothing}connectedCallback(){super.connectedCallback(),this.truncStringPortion(this.value),this.setAttribute("role",this.role)}updated(t){super.updated(t),this.truncStringPortion(this.value)}truncStringPortion(t,e=this.PRE_TRUNC_CHARS,i=this.POST_TRUNC_CHARS,o=this.DOT_COUNT){if(this.value.length>this.MAX_LENGTH&&this.shouldTruncateValue){let r="";r+=t.substring(0,e),r+=".".repeat(o),r+=t.substring(t.length-i,t.length),this.renderedText=r,this.textOverflow=!0}else this.renderedText=this.value}handleClick(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("md-tooltip");null==e||e.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:null==e?void 0:e.placement,reference:null==e?void 0:e.reference,popper:null==e?void 0:e.popper}})),this.dispatchEvent(new CustomEvent("chip-interaction",{composed:!0,bubbles:!0,detail:{id:this.id}}))}handleKeydown(t){switch(t.code){case r.Uz.Space:case r.Uz.Enter:this.handleSelect(),this.handleClick()}}static get styles(){return[l.A,d.A]}loadingTemplate(){return this.determinateProgress||this.indeterminateProgress?this.determinateProgress?p.html`
29
+ `:p.nothing}connectedCallback(){super.connectedCallback(),this.truncStringPortion(this.value),this.setAttribute("role",this.role)}updated(t){super.updated(t),this.truncStringPortion(this.value)}getTextWidth(t,e=getComputedStyle(this).font){const i=document.createElement("canvas").getContext("2d");return i?(i.font=e,i.measureText(t).width):0}truncStringPortion(t){const e=this.getTextWidth(t);if(console.log("Text width:",e),!this.shouldTruncateValue||e<this.MAXWIDTH)return this.renderedText=t,void(this.textOverflow=!1);const i=Array.from(t);let o=Math.min(4,i.length),r=Math.min(5,Math.max(0,i.length-o-1)),s=i.slice(0,o).join(""),l=i.slice(-r).join(""),n=`${s}…${l}`;if(this.getTextWidth(n)>this.MAXWIDTH)return this.renderedText=n,void(this.textOverflow=!0);for(;o+r<i.length;){let t=!1;if(o+r<i.length){const e=s+i[o],r=`${e}…${l}`;this.getTextWidth(r)<=this.MAXWIDTH&&(s=e,o+=1,n=r,t=!0)}if(o+r<i.length){const e=i[i.length-r-1]+l,o=`${s}…${e}`;this.getTextWidth(o)<=this.MAXWIDTH&&(l=e,r+=1,n=o,t=!0)}if(!t)break}this.renderedText=n,this.textOverflow=!0}handleClick(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("md-tooltip");null==e||e.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:null==e?void 0:e.placement,reference:null==e?void 0:e.reference,popper:null==e?void 0:e.popper}})),this.dispatchEvent(new CustomEvent("chip-interaction",{composed:!0,bubbles:!0,detail:{id:this.id}}))}handleKeydown(t){switch(t.code){case r.Uz.Space:case r.Uz.Enter:this.handleSelect(),this.handleClick()}}static get styles(){return[l.A,d.A]}loadingTemplate(){return this.determinateProgress||this.indeterminateProgress?this.determinateProgress?n.html`
30
30
  <md-progress-bar
31
31
  class="md-chip--loading"
32
32
  type="determinate"
@@ -34,9 +34,9 @@
34
34
  displayFormat="none"
35
35
  >
36
36
  </md-progress-bar>
37
- `:p.html`
37
+ `:n.html`
38
38
  <md-progress-bar class="md-chip--loading" type="indeterminate" displayFormat="none"></md-progress-bar>
39
- `:n.nothing}iconTemplate(){const t=this.disabled?"":this.iconColor;return this.icon?p.html`
39
+ `:p.nothing}iconTemplate(){const t=this.disabled?"":this.iconColor;return this.icon?n.html`
40
40
  <md-icon
41
41
  class="md-chip--icon"
42
42
  part="chip-icon"
@@ -46,7 +46,7 @@
46
46
  size="${(0,h.ifDefined)(this.iconSize)}"
47
47
  >
48
48
  </md-icon>
49
- `:n.nothing}getToolTipContent(){return this.tooltipText&&this.textOverflow?this.value===this.tooltipText?this.tooltipText:`${this.value}, ${this.tooltipText}`:this.tooltipText?this.tooltipText:this.value}get textContentClassMap(){return{"md-chip--textcontent":!0,"md-chip--suppress-default-max-width":this.suppressDefaultMaxWidth}}get textContentTemplate(){return p.html`<span part="text-content" class=${(0,a.classMap)(this.textContentClassMap)}> ${this.renderedText}</span>`}render(){const t={"md-chip--small":this.small,"md-chip--disabled":this.disabled,[`md-chip--${this.color}`]:this.color,"suppress-max-width":this.suppressDefaultMaxWidth,"md-chip--interactive":!this.decorative},e=this.decorative?void 0:this.selected?"true":"false";return p.html`
49
+ `:p.nothing}getToolTipContent(){return this.tooltipText&&this.textOverflow?this.value===this.tooltipText?this.tooltipText:`${this.value}, ${this.tooltipText}`:this.tooltipText?this.tooltipText:this.value}get textContentClassMap(){return{"md-chip--textcontent":!0,"md-chip--suppress-default-max-width":this.suppressDefaultMaxWidth}}get textContentTemplate(){return n.html`<span part="text-content" class=${(0,a.classMap)(this.textContentClassMap)}> ${this.renderedText}</span>`}render(){const t={"md-chip--small":this.small,"md-chip--disabled":this.disabled,[`md-chip--${this.color}`]:this.color,"suppress-max-width":this.suppressDefaultMaxWidth,"md-chip--interactive":!this.decorative},e=this.decorative?void 0:this.selected?"true":"false";return n.html`
50
50
  ${this.getStyles()}
51
51
  <md-tooltip
52
52
  ?disabled=${!this.tooltipText&&!this.textOverflow}
@@ -65,8 +65,8 @@
65
65
  >
66
66
  ${this.loadingTemplate()} ${this.iconTemplate()}
67
67
  <slot name="custom-left-content" part="chip-left"> </slot>
68
- ${this.renderedText?this.textContentTemplate:n.nothing}
68
+ ${this.renderedText?this.textContentTemplate:p.nothing}
69
69
  <slot name="custom-right-content" part="chip-right"> </slot>
70
70
  </span>
71
71
  </md-tooltip>
72
- `}};c([(0,p.property)({type:String})],e.prototype,"color",void 0),c([(0,p.property)({type:String})],e.prototype,"bgColor",void 0),c([(0,p.property)({type:String})],e.prototype,"textColor",void 0),c([(0,p.property)({type:String})],e.prototype,"height",void 0),c([(0,p.property)({type:String})],e.prototype,"icon",void 0),c([(0,p.property)({type:String})],e.prototype,"iconColor",void 0),c([(0,p.property)({type:String})],e.prototype,"iconSize",void 0),c([(0,p.property)({type:String})],e.prototype,"role",void 0),c([(0,p.property)({type:String,reflect:!0})],e.prototype,"id",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"small",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"readonly",void 0),c([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,p.property)({type:Number})],e.prototype,"determinateProgress",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"indeterminateProgress",void 0),c([(0,p.property)({type:String})],e.prototype,"tooltipText",void 0),c([(0,p.property)({type:String})],e.prototype,"tooltipPlacement",void 0),c([(0,p.property)({type:String})],e.prototype,"iconSet",void 0),c([(0,p.property)({type:Boolean,attribute:"suppress-default-max-width"})],e.prototype,"suppressDefaultMaxWidth",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"decorative",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"shouldTruncateValue",void 0),c([(0,p.property)({type:String,hasChanged:(t,e)=>t!==e})],e.prototype,"value",void 0),c([(0,p.internalProperty)({hasChanged:(t,e)=>t!==e})],e.prototype,"textOverflow",void 0),c([(0,p.internalProperty)()],e.prototype,"renderedText",void 0),e=c([(0,s.w)("md-chip")],e),t.ELEMENT=e}(o||(o={}))},97822:t=>{t.exports=o}},l={};function p(t){var e=l[t];if(void 0!==e)return e.exports;var i=l[t]={exports:{}};return s[t](i,i.exports,p),i.exports}p.m=s,r=[],p.O=(t,e,i,o)=>{if(!e){var s=1/0;for(h=0;h<r.length;h++){for(var[e,i,o]=r[h],l=!0,n=0;n<e.length;n++)(!1&o||s>=o)&&Object.keys(p.O).every(t=>p.O[t](e[n]))?e.splice(n--,1):(l=!1,o<s&&(s=o));if(l){r.splice(h--,1);var a=i();void 0!==a&&(t=a)}}return t}o=o||0;for(var h=r.length;h>0&&r[h-1][2]>o;h--)r[h]=r[h-1];r[h]=[e,i,o]},p.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return p.d(e,{a:e}),e},p.d=(t,e)=>{for(var i in e)p.o(e,i)&&!p.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},p.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),p.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={5369:0,8894:0};p.O.j=e=>0===t[e];var e=(e,i)=>{var o,r,[s,l,n]=i,a=0;if(s.some(e=>0!==t[e])){for(o in l)p.o(l,o)&&(p.m[o]=l[o]);if(n)var h=n(p)}for(e&&e(i);a<s.length;a++)r=s[a],p.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return p.O(h)},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 n=p.O(void 0,[1890,6272,8889,8373,4624,591,768,195,6677,7251,7919,3192,5382,1107,9618],()=>p(60046));return p.O(n)})());
72
+ `}};c([(0,n.property)({type:String})],e.prototype,"color",void 0),c([(0,n.property)({type:String})],e.prototype,"bgColor",void 0),c([(0,n.property)({type:String})],e.prototype,"textColor",void 0),c([(0,n.property)({type:String})],e.prototype,"height",void 0),c([(0,n.property)({type:String})],e.prototype,"icon",void 0),c([(0,n.property)({type:String})],e.prototype,"iconColor",void 0),c([(0,n.property)({type:String})],e.prototype,"iconSize",void 0),c([(0,n.property)({type:String})],e.prototype,"role",void 0),c([(0,n.property)({type:String,reflect:!0})],e.prototype,"id",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"small",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"readonly",void 0),c([(0,n.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,n.property)({type:Number})],e.prototype,"determinateProgress",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"indeterminateProgress",void 0),c([(0,n.property)({type:String})],e.prototype,"tooltipText",void 0),c([(0,n.property)({type:String})],e.prototype,"tooltipPlacement",void 0),c([(0,n.property)({type:String})],e.prototype,"iconSet",void 0),c([(0,n.property)({type:Boolean,attribute:"suppress-default-max-width"})],e.prototype,"suppressDefaultMaxWidth",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"decorative",void 0),c([(0,n.property)({type:Boolean})],e.prototype,"shouldTruncateValue",void 0),c([(0,n.property)({type:String,hasChanged:(t,e)=>t!==e})],e.prototype,"value",void 0),c([(0,n.internalProperty)({hasChanged:(t,e)=>t!==e})],e.prototype,"textOverflow",void 0),c([(0,n.internalProperty)()],e.prototype,"renderedText",void 0),e=c([(0,s.w)("md-chip")],e),t.ELEMENT=e}(o||(o={}))},97822:t=>{t.exports=o}},l={};function n(t){var e=l[t];if(void 0!==e)return e.exports;var i=l[t]={exports:{}};return s[t](i,i.exports,n),i.exports}n.m=s,r=[],n.O=(t,e,i,o)=>{if(!e){var s=1/0;for(h=0;h<r.length;h++){for(var[e,i,o]=r[h],l=!0,p=0;p<e.length;p++)(!1&o||s>=o)&&Object.keys(n.O).every(t=>n.O[t](e[p]))?e.splice(p--,1):(l=!1,o<s&&(s=o));if(l){r.splice(h--,1);var a=i();void 0!==a&&(t=a)}}return t}o=o||0;for(var h=r.length;h>0&&r[h-1][2]>o;h--)r[h]=r[h-1];r[h]=[e,i,o]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={5369:0,8894:0};n.O.j=e=>0===t[e];var e=(e,i)=>{var o,r,[s,l,p]=i,a=0;if(s.some(e=>0!==t[e])){for(o in l)n.o(l,o)&&(n.m[o]=l[o]);if(p)var h=p(n)}for(e&&e(i);a<s.length;a++)r=s[a],n.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return n.O(h)},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 p=n.O(void 0,[1890,6272,8889,8373,4624,591,768,195,6677,7251,7919,3192,5382,1107,9618],()=>n(60046));return n.O(p)})());
@@ -1,9 +1,9 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("luxon"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-html/directives/class-map.js"),require("lit-html/directives/repeat"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("@floating-ui/dom"),require("lit-html/directives/if-defined.js"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map","lit-html/directives/style-map","lit-html","lit-html/directives/if-defined","luxon","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","lit-html/directives/class-map.js","lit-html/directives/repeat","@popperjs/core/lib/modifiers/arrow","@popperjs/core/lib/modifiers/flip","@popperjs/core/lib/modifiers/offset","@popperjs/core/lib/modifiers/preventOverflow","@popperjs/core/lib/popper-lite","@floating-ui/dom","lit-html/directives/if-defined.js"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("luxon"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-html/directives/class-map.js"),require("lit-html/directives/repeat"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("@floating-ui/dom"),require("lit-html/directives/if-defined.js")):t(e["lit-element"],e["lit-html/directives/class-map"],e["lit-html/directives/style-map"],e["lit-html"],e["lit-html/directives/if-defined"],e.luxon,e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx,e["lit-html/directives/class-map.js"],e["lit-html/directives/repeat"],e["@popperjs/core/lib/modifiers/arrow"],e["@popperjs/core/lib/modifiers/flip"],e["@popperjs/core/lib/modifiers/offset"],e["@popperjs/core/lib/modifiers/preventOverflow"],e["@popperjs/core/lib/popper-lite"],e["@floating-ui/dom"],e["lit-html/directives/if-defined.js"]);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,(e,t,i,r,o,a,s,l,n,p,d,h,c,u,m,v,y,g)=>(()=>{"use strict";var f,D={4863:e=>{e.exports=v},5784:e=>{e.exports=y},8229:e=>{e.exports=i},17518:e=>{e.exports=p},22818:e=>{e.exports=d},22962:e=>{e.exports=h},23968:e=>{e.exports=t},32022:e=>{e.exports=s},38654:(e,t,i)=>{i.r(t),i.d(t,{DatePicker:()=>r}),i(63208),i(96408),i(11323);var r,o=i(90195),a=i(37719),s=i(31890),l=i(81625),n=i(66677),p=i(74548),d=i(41488),h=i(97822),c=i(65796),u=i(71128),m=i(14974),v=function(e,t,i,r){var o,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(s=(a<3?o(s):a>3?o(t,i,s):o(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};!function(e){e.weekStartDays=["Sunday","Monday"];let t=class extends d.LitElement{constructor(){super(...arguments),this.shouldCloseOnSelect=!1,this.maxDate=void 0,this.minDate=void 0,this.value=void 0,this.weekStart="Sunday",this.placeholder=void 0,this.locale=void 0,this.useISOFormat=!0,this.validateDate=!0,this.includesTime=!1,this.disabled=!1,this.htmlId="",this.label="",this.ariaLabel=null,this.displayValue=null,this.required=!1,this.errorMessage="",this.customTrigger=!1,this.isMenuOverlayOpen=!1,this.newMomentum=void 0,this.disableUserTextInput=!1,this.compactInput=void 0,this.controlButtons=void 0,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.usePopover=!1,this.triggerID="date-trigger",this.animationFrame=!1,this.isDatePickerMonthLoading=!1,this.isDatePickerMonthError=!1,this.errorMessages={},this.selectedDate=(0,l.tB)(),this.focusedDate=(0,l.tB)(),this.filterDate=void 0,this.onRetry=void 0,this.maxDateData=void 0,this.minDateData=void 0,this.popoverController=null,this.handleDateInputChange=e=>{var t,i;this.useISOFormat?this.value=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.value:this.value=null===(i=this.selectedDate)||void 0===i?void 0:i.toLocaleString(c.DateTime.DATE_SHORT,{locale:this.locale}),this.dispatchEvent(new CustomEvent("date-input-change",{bubbles:!0,composed:!0,detail:{sourceEvent:e,value:this.value}}))},this.setOpen=e=>{var t,i;this.usePopover?e?null===(t=this.popoverController)||void 0===t||t.show():null===(i=this.popoverController)||void 0===i||i.hide():this.menuOverlay.isOpen=e,this.isMenuOverlayOpen=e},this.setPreSelection=e=>{const t={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};(0,l.t_)(e,t)||(this.focusedDate=e)},this.handleInputKeyDown=e=>{e.code===o.Uz.ArrowDown&&this.setOpen(!0)},this.handleKeyDown=e=>{const t=e.detail.sourceEvent;let i=!1;const r=this.focusedDate;switch(!t.shiftKey&&t.code){case"Space":case"Enter":this.handleSelect(e),i=!0;break;case"Escape":this.setOpen(!1);break;case"ArrowUp":this.setPreSelection((0,l.WB)(r,1)),i=!0;break;case"ArrowLeft":this.setPreSelection((0,l.gg)(r,1)),i=!0;break;case"ArrowRight":this.setPreSelection((0,l.fi)(r,1)),i=!0;break;case"ArrowDown":this.setPreSelection((0,l.J4)(r,1)),i=!0}i&&(t.stopPropagation(),t.preventDefault())},this.getDefaultAriaLabel=()=>{var e;return(null===(e=this.selectedDate)||void 0===e?void 0:e.isValid)?`Choose Date, selected date is ${this.selectedDate.toLocaleString(c.DateTime.DATE_FULL)}`:"Choose Date"},this.getValidRegexString=()=>this.includesTime?p.b.ISOString:p.b.ISODateString}get computedNewMomentum(){return void 0!==this.newMomentum?this.newMomentum:a.themeManager.isMomentumV2Enabled}static get styles(){return m.A}connectedCallback(){super.connectedCallback(),this.minDate&&(this.minDateData=(0,l.mA)(this.minDate)),this.maxDate&&(this.maxDateData=(0,l.mA)(this.maxDate)),this.usePopover&&(this.popoverController=new u.PopoverController)}firstUpdated(e){super.firstUpdated(e),!this.value&&this.showDefaultNowDate&&(this.value=this.getFormattedDate(this.selectedDate))}updated(e){if(super.updated(e),this.value&&e.has("value")){if((0,n.QZ)("md-date-range-picker",this))return;this.useISOFormat?this.selectedDate=(0,l.mA)(this.value):this.selectedDate=c.DateTime.fromFormat(this.value,(0,l.gq)(this.locale),{locale:this.locale}),this.setPreSelection(this.selectedDate)}e.has("locale")&&this.render(),this.minDate&&e.has("minDate")&&(this.minDateData=(0,l.mA)(this.minDate)),this.maxDate&&e.has("maxDate")&&(this.maxDateData=(0,l.mA)(this.maxDate)),!this.usePopover&&e.has("usePopover")&&(this.popoverController=new u.PopoverController)}handleSelect(e){var t;const i=e.detail.date,r=e.detail.sourceEvent;this.setPreSelection(i),this.dispatchEvent(new CustomEvent("date-pre-selection-change",{bubbles:!0,composed:!0,detail:{sourceEvent:r,data:i}})),(null===(t=this.controlButtons)||void 0===t?void 0:t.apply)&&"apply-button-clicked"!==(null==r?void 0:r.type)||(this.setSelected(i,r),this.shouldCloseOnSelect&&this.setOpen(!1))}getISODateTime(e){return this.includesTime?e.startOf("second").toISO({suppressMilliseconds:!0}):e.toISODate()}setSelected(e,t){const i={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};if(!(0,l.t_)(e,i)){const t=this.getISODateTime(e);this.selectedDate=e,this.useISOFormat?this.value=t:this.value=e.toLocaleString(c.DateTime.DATE_SHORT,{locale:this.locale})}this.dispatchEvent(new CustomEvent("date-selection-change",{bubbles:!0,composed:!0,detail:{sourceEvent:t,data:e}}))}validateDateString(e){if(!e&&""!==e)return!0;if(this.useISOFormat){const t=RegExp(this.getValidRegexString()),i={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};return!!e&&t.test(e)&&!(0,l.t_)((0,l.mA)(e),i)}const t=(0,l.gq)(this.locale);return c.DateTime.fromFormat(e,t,{locale:this.locale}).isValid}isValueValid(){return!this.validateDate||this.validateDateString(this.value)}get messageArray(){return this.errorMessage?[{message:this.errorMessage,type:"error"}]:this.isValueValid()?[]:[{message:"",type:"error"}]}onCancelClick(){this.setOpen(!1)}onApplyClick(){this.handleSelect(new CustomEvent("day-select",{detail:{date:this.focusedDate,sourceEvent:new Event("apply-button-clicked")}}))}renderControlButtons(){var e,t,i,r,o,a;return!this.controlButtons||this.isDatePickerMonthLoading||this.isDatePickerMonthError?d.html``:d.html`
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("luxon"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-html/directives/class-map.js"),require("lit-html/directives/repeat"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("@floating-ui/dom"),require("lit-html/directives/if-defined.js"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map","lit-html/directives/style-map","lit-html","lit-html/directives/if-defined","luxon","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx","lit-html/directives/class-map.js","lit-html/directives/repeat","@popperjs/core/lib/modifiers/arrow","@popperjs/core/lib/modifiers/flip","@popperjs/core/lib/modifiers/offset","@popperjs/core/lib/modifiers/preventOverflow","@popperjs/core/lib/popper-lite","@floating-ui/dom","lit-html/directives/if-defined.js"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("luxon"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"),require("lit-html/directives/class-map.js"),require("lit-html/directives/repeat"),require("@popperjs/core/lib/modifiers/arrow"),require("@popperjs/core/lib/modifiers/flip"),require("@popperjs/core/lib/modifiers/offset"),require("@popperjs/core/lib/modifiers/preventOverflow"),require("@popperjs/core/lib/popper-lite"),require("@floating-ui/dom"),require("lit-html/directives/if-defined.js")):t(e["lit-element"],e["lit-html/directives/class-map"],e["lit-html/directives/style-map"],e["lit-html"],e["lit-html/directives/if-defined"],e.luxon,e["@momentum-ui/icons/data/momentumUiIconsNames.json"],e["@momentum-ui/utils/lib/getColorValue"],e.mobx,e["lit-html/directives/class-map.js"],e["lit-html/directives/repeat"],e["@popperjs/core/lib/modifiers/arrow"],e["@popperjs/core/lib/modifiers/flip"],e["@popperjs/core/lib/modifiers/offset"],e["@popperjs/core/lib/modifiers/preventOverflow"],e["@popperjs/core/lib/popper-lite"],e["@floating-ui/dom"],e["lit-html/directives/if-defined.js"]);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,(e,t,i,r,o,a,s,l,n,p,d,h,c,u,m,v,y,g)=>(()=>{"use strict";var f,D={4863:e=>{e.exports=v},5784:e=>{e.exports=y},8229:e=>{e.exports=i},17518:e=>{e.exports=p},22818:e=>{e.exports=d},22962:e=>{e.exports=h},23968:e=>{e.exports=t},32022:e=>{e.exports=s},38654:(e,t,i)=>{i.r(t),i.d(t,{DatePicker:()=>r}),i(63208),i(96408),i(11323);var r,o=i(90195),a=i(37719),s=i(31890),l=i(81625),n=i(74548),p=i(41488),d=i(97822),h=i(65796),c=i(71128),u=i(14974),m=function(e,t,i,r){var o,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(s=(a<3?o(s):a>3?o(t,i,s):o(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};!function(e){e.weekStartDays=["Sunday","Monday"];let t=class extends p.LitElement{constructor(){super(...arguments),this.shouldCloseOnSelect=!1,this.maxDate=void 0,this.minDate=void 0,this.value=void 0,this.weekStart="Sunday",this.placeholder=void 0,this.locale=void 0,this.useISOFormat=!0,this.validateDate=!0,this.includesTime=!1,this.disabled=!1,this.htmlId="",this.label="",this.ariaLabel=null,this.displayValue=null,this.required=!1,this.errorMessage="",this.customTrigger=!1,this.isMenuOverlayOpen=!1,this.newMomentum=void 0,this.disableUserTextInput=!1,this.compactInput=void 0,this.controlButtons=void 0,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.usePopover=!1,this.triggerID="date-trigger",this.animationFrame=!1,this.isDatePickerMonthLoading=!1,this.isDatePickerMonthError=!1,this.errorMessages={},this.selectedDate=(0,l.tB)(),this.focusedDate=(0,l.tB)(),this.filterDate=void 0,this.onRetry=void 0,this.maxDateData=void 0,this.minDateData=void 0,this.popoverController=null,this.handleDateInputChange=e=>{var t,i;this.useISOFormat?this.value=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.value:this.value=null===(i=this.selectedDate)||void 0===i?void 0:i.toLocaleString(h.DateTime.DATE_SHORT,{locale:this.locale}),this.dispatchEvent(new CustomEvent("date-input-change",{bubbles:!0,composed:!0,detail:{sourceEvent:e,value:this.value}}))},this.setOpen=e=>{var t,i;this.usePopover?e?null===(t=this.popoverController)||void 0===t||t.show():null===(i=this.popoverController)||void 0===i||i.hide():this.menuOverlay.isOpen=e,this.isMenuOverlayOpen=e},this.setPreSelection=e=>{const t={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};(0,l.t_)(e,t)||(this.focusedDate=e)},this.handleInputKeyDown=e=>{e.code===o.Uz.ArrowDown&&this.setOpen(!0)},this.handleKeyDown=e=>{const t=e.detail.sourceEvent;let i=!1;const r=this.focusedDate;switch(!t.shiftKey&&t.code){case"Space":case"Enter":this.handleSelect(e),i=!0;break;case"Escape":this.setOpen(!1);break;case"ArrowUp":this.setPreSelection((0,l.WB)(r,1)),i=!0;break;case"ArrowLeft":this.setPreSelection((0,l.gg)(r,1)),i=!0;break;case"ArrowRight":this.setPreSelection((0,l.fi)(r,1)),i=!0;break;case"ArrowDown":this.setPreSelection((0,l.J4)(r,1)),i=!0}i&&(t.stopPropagation(),t.preventDefault())},this.getDefaultAriaLabel=()=>{var e;return(null===(e=this.selectedDate)||void 0===e?void 0:e.isValid)?`Choose Date, selected date is ${this.selectedDate.toLocaleString(h.DateTime.DATE_FULL)}`:"Choose Date"},this.getValidRegexString=()=>this.includesTime?n.b.ISOString:n.b.ISODateString}get computedNewMomentum(){return void 0!==this.newMomentum?this.newMomentum:a.themeManager.isMomentumV2Enabled}static get styles(){return u.A}connectedCallback(){super.connectedCallback(),this.minDate&&(this.minDateData=(0,l.mA)(this.minDate)),this.maxDate&&(this.maxDateData=(0,l.mA)(this.maxDate)),this.usePopover&&(this.popoverController=new c.PopoverController)}firstUpdated(e){super.firstUpdated(e),!this.value&&this.showDefaultNowDate&&(this.value=this.getFormattedDate(this.selectedDate))}updated(e){super.updated(e),this.value&&e.has("value")&&(this.useISOFormat?this.selectedDate=(0,l.mA)(this.value):this.selectedDate=h.DateTime.fromFormat(this.value,(0,l.gq)(this.locale),{locale:this.locale}),this.setPreSelection(this.selectedDate)),e.has("locale")&&this.render(),this.minDate&&e.has("minDate")&&(this.minDateData=(0,l.mA)(this.minDate)),this.maxDate&&e.has("maxDate")&&(this.maxDateData=(0,l.mA)(this.maxDate)),!this.usePopover&&e.has("usePopover")&&(this.popoverController=new c.PopoverController)}handleSelect(e){var t;const i=e.detail.date,r=e.detail.sourceEvent;this.setPreSelection(i),this.dispatchEvent(new CustomEvent("date-pre-selection-change",{bubbles:!0,composed:!0,detail:{sourceEvent:r,data:i}})),(null===(t=this.controlButtons)||void 0===t?void 0:t.apply)&&"apply-button-clicked"!==(null==r?void 0:r.type)||(this.setSelected(i,r),this.shouldCloseOnSelect&&this.setOpen(!1))}getISODateTime(e){return this.includesTime?e.startOf("second").toISO({suppressMilliseconds:!0}):e.toISODate()}setSelected(e,t){const i={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};if(!(0,l.t_)(e,i)){const t=this.getISODateTime(e);this.selectedDate=e,this.useISOFormat?this.value=t:this.value=e.toLocaleString(h.DateTime.DATE_SHORT,{locale:this.locale})}this.dispatchEvent(new CustomEvent("date-selection-change",{bubbles:!0,composed:!0,detail:{sourceEvent:t,data:e}}))}validateDateString(e){if(!e&&""!==e)return!0;if(this.useISOFormat){const t=RegExp(this.getValidRegexString()),i={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};return!!e&&t.test(e)&&!(0,l.t_)((0,l.mA)(e),i)}const t=(0,l.gq)(this.locale);return h.DateTime.fromFormat(e,t,{locale:this.locale}).isValid}isValueValid(){return!this.validateDate||this.validateDateString(this.value)}get messageArray(){return this.errorMessage?[{message:this.errorMessage,type:"error"}]:this.isValueValid()?[]:[{message:"",type:"error"}]}onCancelClick(){this.setOpen(!1)}onApplyClick(){this.handleSelect(new CustomEvent("day-select",{detail:{date:this.focusedDate,sourceEvent:new Event("apply-button-clicked")}}))}renderControlButtons(){var e,t,i,r,o,a;return!this.controlButtons||this.isDatePickerMonthLoading||this.isDatePickerMonthError?p.html``:p.html`
2
2
  <div class="control-buttons">
3
- ${this.controlButtons.cancel?d.html`
3
+ ${this.controlButtons.cancel?p.html`
4
4
  <md-button
5
5
  class="cancel-button"
6
- aria-label=${(0,h.ifDefined)(null===(e=this.controlButtons.cancel)||void 0===e?void 0:e.ariaLabel)}
6
+ aria-label=${(0,d.ifDefined)(null===(e=this.controlButtons.cancel)||void 0===e?void 0:e.ariaLabel)}
7
7
  ?disabled=${null!==(i=null===(t=this.controlButtons.cancel)||void 0===t?void 0:t.disabled)&&void 0!==i&&i}
8
8
  @button-click=${this.onCancelClick}
9
9
  variant="secondary"
@@ -11,10 +11,10 @@
11
11
  ${this.controlButtons.cancel.value}
12
12
  </md-button>
13
13
  `:null}
14
- ${this.controlButtons.apply?d.html`
14
+ ${this.controlButtons.apply?p.html`
15
15
  <md-button
16
16
  class="apply-button"
17
- aria-label=${(0,h.ifDefined)(null===(r=this.controlButtons.apply)||void 0===r?void 0:r.ariaLabel)}
17
+ aria-label=${(0,d.ifDefined)(null===(r=this.controlButtons.apply)||void 0===r?void 0:r.ariaLabel)}
18
18
  ?disabled=${null!==(a=null===(o=this.controlButtons.apply)||void 0===o?void 0:o.disabled)&&void 0!==a&&a}
19
19
  @button-click=${this.onApplyClick}
20
20
  variant="primary"
@@ -23,12 +23,12 @@
23
23
  </md-button>
24
24
  `:null}
25
25
  </div>
26
- `}getPlaceHolderString(){var e;return this.placeholder?this.placeholder:this.useISOFormat?"YYYY-MM-DD":(0,l.gq)(null!==(e=this.locale)&&void 0!==e?e:c.DateTime.local().locale).toUpperCase()}getFormattedDate(e){return e?this.useISOFormat?this.getISODateTime(e):this.includesTime?e.toLocaleString(c.DateTime.DATETIME_SHORT,{locale:this.locale}):e.toLocaleString(c.DateTime.DATE_SHORT,{locale:this.locale}):null}getAriaLabel(){var e;return null!==(e=this.ariaLabel)&&void 0!==e?e:this.getDefaultAriaLabel()}get isAriaExpanded(){return this.isMenuOverlayOpen?"true":"false"}renderPopover(){var e,t;return d.html`
26
+ `}getPlaceHolderString(){var e;return this.placeholder?this.placeholder:this.useISOFormat?"YYYY-MM-DD":(0,l.gq)(null!==(e=this.locale)&&void 0!==e?e:h.DateTime.local().locale).toUpperCase()}getFormattedDate(e){return e?this.useISOFormat?this.getISODateTime(e):this.includesTime?e.toLocaleString(h.DateTime.DATETIME_SHORT,{locale:this.locale}):e.toLocaleString(h.DateTime.DATE_SHORT,{locale:this.locale}):null}getAriaLabel(){var e;return null!==(e=this.ariaLabel)&&void 0!==e?e:this.getDefaultAriaLabel()}get isAriaExpanded(){return this.isMenuOverlayOpen?"true":"false"}renderPopover(){var e,t;return p.html`
27
27
  <md-popover
28
28
  trigger="click"
29
29
  .triggerID=${this.triggerID}
30
30
  placement="bottom"
31
- strategy=${(0,h.ifDefined)(this.positioningStrategy)}
31
+ strategy=${(0,d.ifDefined)(this.positioningStrategy)}
32
32
  hide-on-escape
33
33
  hide-on-outside-click
34
34
  focus-trap
@@ -53,11 +53,11 @@
53
53
  ${this.renderControlButtons()}
54
54
  </div>
55
55
  </md-popover>
56
- ${this.customTrigger?d.html`
56
+ ${this.customTrigger?p.html`
57
57
  <span slot="menu-trigger">
58
58
  <slot name="date-trigger"></slot>
59
59
  </span>
60
- `:d.html`
60
+ `:p.html`
61
61
  <md-input
62
62
  id="date-trigger"
63
63
  class="date-input"
@@ -65,7 +65,7 @@
65
65
  ariaRole="combobox"
66
66
  ?newMomentum=${this.computedNewMomentum}
67
67
  placeholder=${this.getPlaceHolderString()}
68
- value=${null!==(e=this.displayValue)&&void 0!==e?e:(0,h.ifDefined)(null!==(t=this.value)&&void 0!==t?t:void 0)}
68
+ value=${null!==(e=this.displayValue)&&void 0!==e?e:(0,d.ifDefined)(null!==(t=this.value)&&void 0!==t?t:void 0)}
69
69
  .disableUserTextInput=${this.disableUserTextInput}
70
70
  htmlId=${this.htmlId}
71
71
  label=${this.label}
@@ -85,25 +85,25 @@
85
85
  <md-icon slot="input-section" name="calendar-month-bold" size="16" iconSet="momentumDesign"></md-icon>
86
86
  </md-input>
87
87
  `}
88
- `}renderMenuOverlay(){var e,t;return d.html`
88
+ `}renderMenuOverlay(){var e,t;return p.html`
89
89
  <md-menu-overlay
90
90
  is-date-picker
91
91
  custom-width="272px"
92
92
  ?disabled=${this.disabled}
93
- positioning-strategy=${(0,h.ifDefined)(this.positioningStrategy)}
93
+ positioning-strategy=${(0,d.ifDefined)(this.positioningStrategy)}
94
94
  >
95
- ${this.customTrigger?d.html`
95
+ ${this.customTrigger?p.html`
96
96
  <span slot="menu-trigger">
97
97
  <slot name="date-trigger"></slot>
98
98
  </span>
99
- `:d.html`
99
+ `:p.html`
100
100
  <md-input
101
101
  class="date-input"
102
102
  slot="menu-trigger"
103
103
  ariaRole="combobox"
104
104
  ?newMomentum=${this.computedNewMomentum}
105
105
  placeholder=${this.getPlaceHolderString()}
106
- value=${null!==(e=this.displayValue)&&void 0!==e?e:(0,h.ifDefined)(null!==(t=this.value)&&void 0!==t?t:void 0)}
106
+ value=${null!==(e=this.displayValue)&&void 0!==e?e:(0,d.ifDefined)(null!==(t=this.value)&&void 0!==t?t:void 0)}
107
107
  .disableUserTextInput=${this.disableUserTextInput}
108
108
  htmlId=${this.htmlId}
109
109
  label=${this.label}
@@ -140,4 +140,4 @@
140
140
  ${this.renderControlButtons()}
141
141
  </div>
142
142
  </md-menu-overlay>
143
- `}render(){return this.usePopover?this.renderPopover():this.renderMenuOverlay()}};v([(0,d.property)({type:Boolean,attribute:"should-close-on-select"})],t.prototype,"shouldCloseOnSelect",void 0),v([(0,d.property)({type:String})],t.prototype,"maxDate",void 0),v([(0,d.property)({type:String})],t.prototype,"minDate",void 0),v([(0,d.property)({type:String,reflect:!0})],t.prototype,"value",void 0),v([(0,d.property)({type:String})],t.prototype,"weekStart",void 0),v([(0,d.property)({type:String,reflect:!0})],t.prototype,"placeholder",void 0),v([(0,d.property)({type:String})],t.prototype,"locale",void 0),v([(0,d.property)({type:Boolean})],t.prototype,"useISOFormat",void 0),v([(0,d.property)({type:Boolean})],t.prototype,"validateDate",void 0),v([(0,d.property)({type:Boolean,reflect:!0,attribute:"includes-time"})],t.prototype,"includesTime",void 0),v([(0,d.property)({type:Boolean})],t.prototype,"disabled",void 0),v([(0,d.property)({type:String})],t.prototype,"htmlId",void 0),v([(0,d.property)({type:String})],t.prototype,"label",void 0),v([(0,d.property)({type:String})],t.prototype,"ariaLabel",void 0),v([(0,d.property)({type:String})],t.prototype,"displayValue",void 0),v([(0,d.property)({type:Boolean})],t.prototype,"required",void 0),v([(0,d.property)({type:String,reflect:!0})],t.prototype,"errorMessage",void 0),v([(0,d.property)({type:Boolean,attribute:"custom-trigger"})],t.prototype,"customTrigger",void 0),v([(0,d.property)({type:Boolean})],t.prototype,"isMenuOverlayOpen",void 0),v([(0,d.property)({type:Boolean})],t.prototype,"newMomentum",void 0),v([(0,d.property)({type:Boolean})],t.prototype,"disableUserTextInput",void 0),v([(0,d.property)({type:Boolean,attribute:"compact-input"})],t.prototype,"compactInput",void 0),v([(0,d.property)({type:Object,attribute:!1})],t.prototype,"controlButtons",void 0),v([(0,d.property)({type:String,attribute:"positioning-strategy"})],t.prototype,"positioningStrategy",void 0),v([(0,d.property)({type:Boolean,attribute:"show-default-now-date"})],t.prototype,"showDefaultNowDate",void 0),v([(0,d.property)({type:Boolean,attribute:"use-popover"})],t.prototype,"usePopover",void 0),v([(0,d.property)({type:String,attribute:"triggerID"})],t.prototype,"triggerID",void 0),v([(0,d.property)({type:Boolean,reflect:!0,attribute:"animation-frame"})],t.prototype,"animationFrame",void 0),v([(0,d.property)({type:Boolean,reflect:!0,attribute:"is-date-picker-month-loading"})],t.prototype,"isDatePickerMonthLoading",void 0),v([(0,d.property)({type:Boolean,reflect:!0,attribute:"is-date-picker-month-error"})],t.prototype,"isDatePickerMonthError",void 0),v([(0,d.property)({type:Object,attribute:!1})],t.prototype,"errorMessages",void 0),v([(0,d.internalProperty)()],t.prototype,"selectedDate",void 0),v([(0,d.internalProperty)()],t.prototype,"focusedDate",void 0),v([(0,d.property)()],t.prototype,"filterDate",void 0),v([(0,d.property)({attribute:!1})],t.prototype,"onRetry",void 0),v([(0,d.internalProperty)()],t.prototype,"maxDateData",void 0),v([(0,d.internalProperty)()],t.prototype,"minDateData",void 0),v([(0,d.query)("md-menu-overlay")],t.prototype,"menuOverlay",void 0),v([(0,d.query)("md-popover")],t.prototype,"popoverElement",void 0),t=v([(0,s.w)("md-datepicker")],t),e.ELEMENT=t}(r||(r={}))},40333:e=>{e.exports=r},41488:t=>{t.exports=e},60554:e=>{e.exports=l},65796:e=>{e.exports=a},68250:e=>{e.exports=u},69371:e=>{e.exports=m},73679:e=>{e.exports=g},84157:e=>{e.exports=c},85314:e=>{e.exports=n},97822:e=>{e.exports=o}},b={};function S(e){var t=b[e];if(void 0!==t)return t.exports;var i=b[e]={exports:{}};return D[e](i,i.exports,S),i.exports}S.m=D,f=[],S.O=(e,t,i,r)=>{if(!t){var o=1/0;for(n=0;n<f.length;n++){for(var[t,i,r]=f[n],a=!0,s=0;s<t.length;s++)(!1&r||o>=r)&&Object.keys(S.O).every(e=>S.O[e](t[s]))?t.splice(s--,1):(a=!1,r<o&&(o=r));if(a){f.splice(n--,1);var l=i();void 0!==l&&(e=l)}}return e}r=r||0;for(var n=f.length;n>0&&f[n-1][2]>r;n--)f[n]=f[n-1];f[n]=[t,i,r]},S.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return S.d(t,{a:t}),t},S.d=(e,t)=>{for(var i in t)S.o(t,i)&&!S.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),S.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={1586:0,6273:0};S.O.j=t=>0===e[t];var t=(t,i)=>{var r,o,[a,s,l]=i,n=0;if(a.some(t=>0!==e[t])){for(r in s)S.o(s,r)&&(S.m[r]=s[r]);if(l)var p=l(S)}for(t&&t(i);n<a.length;n++)o=a[n],S.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return S.O(p)},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 x=S.O(void 0,[750,1890,6272,6325,9217,6283,2176,6798,5830,1200,2576,8210,4977,1270,3135,1598,109,1572,6366,6396,4974,6408,1323,8004,6754,4548,7719,984,1625,7814,2555],()=>S(38654));return S.O(x)})());
143
+ `}render(){return this.usePopover?this.renderPopover():this.renderMenuOverlay()}};m([(0,p.property)({type:Boolean,attribute:"should-close-on-select"})],t.prototype,"shouldCloseOnSelect",void 0),m([(0,p.property)({type:String})],t.prototype,"maxDate",void 0),m([(0,p.property)({type:String})],t.prototype,"minDate",void 0),m([(0,p.property)({type:String,reflect:!0})],t.prototype,"value",void 0),m([(0,p.property)({type:String})],t.prototype,"weekStart",void 0),m([(0,p.property)({type:String,reflect:!0})],t.prototype,"placeholder",void 0),m([(0,p.property)({type:String})],t.prototype,"locale",void 0),m([(0,p.property)({type:Boolean})],t.prototype,"useISOFormat",void 0),m([(0,p.property)({type:Boolean})],t.prototype,"validateDate",void 0),m([(0,p.property)({type:Boolean,reflect:!0,attribute:"includes-time"})],t.prototype,"includesTime",void 0),m([(0,p.property)({type:Boolean})],t.prototype,"disabled",void 0),m([(0,p.property)({type:String})],t.prototype,"htmlId",void 0),m([(0,p.property)({type:String})],t.prototype,"label",void 0),m([(0,p.property)({type:String})],t.prototype,"ariaLabel",void 0),m([(0,p.property)({type:String})],t.prototype,"displayValue",void 0),m([(0,p.property)({type:Boolean})],t.prototype,"required",void 0),m([(0,p.property)({type:String,reflect:!0})],t.prototype,"errorMessage",void 0),m([(0,p.property)({type:Boolean,attribute:"custom-trigger"})],t.prototype,"customTrigger",void 0),m([(0,p.property)({type:Boolean})],t.prototype,"isMenuOverlayOpen",void 0),m([(0,p.property)({type:Boolean})],t.prototype,"newMomentum",void 0),m([(0,p.property)({type:Boolean})],t.prototype,"disableUserTextInput",void 0),m([(0,p.property)({type:Boolean,attribute:"compact-input"})],t.prototype,"compactInput",void 0),m([(0,p.property)({type:Object,attribute:!1})],t.prototype,"controlButtons",void 0),m([(0,p.property)({type:String,attribute:"positioning-strategy"})],t.prototype,"positioningStrategy",void 0),m([(0,p.property)({type:Boolean,attribute:"show-default-now-date"})],t.prototype,"showDefaultNowDate",void 0),m([(0,p.property)({type:Boolean,attribute:"use-popover"})],t.prototype,"usePopover",void 0),m([(0,p.property)({type:String,attribute:"triggerID"})],t.prototype,"triggerID",void 0),m([(0,p.property)({type:Boolean,reflect:!0,attribute:"animation-frame"})],t.prototype,"animationFrame",void 0),m([(0,p.property)({type:Boolean,reflect:!0,attribute:"is-date-picker-month-loading"})],t.prototype,"isDatePickerMonthLoading",void 0),m([(0,p.property)({type:Boolean,reflect:!0,attribute:"is-date-picker-month-error"})],t.prototype,"isDatePickerMonthError",void 0),m([(0,p.property)({type:Object,attribute:!1})],t.prototype,"errorMessages",void 0),m([(0,p.internalProperty)()],t.prototype,"selectedDate",void 0),m([(0,p.internalProperty)()],t.prototype,"focusedDate",void 0),m([(0,p.property)()],t.prototype,"filterDate",void 0),m([(0,p.property)({attribute:!1})],t.prototype,"onRetry",void 0),m([(0,p.internalProperty)()],t.prototype,"maxDateData",void 0),m([(0,p.internalProperty)()],t.prototype,"minDateData",void 0),m([(0,p.query)("md-menu-overlay")],t.prototype,"menuOverlay",void 0),m([(0,p.query)("md-popover")],t.prototype,"popoverElement",void 0),t=m([(0,s.w)("md-datepicker")],t),e.ELEMENT=t}(r||(r={}))},40333:e=>{e.exports=r},41488:t=>{t.exports=e},60554:e=>{e.exports=l},65796:e=>{e.exports=a},68250:e=>{e.exports=u},69371:e=>{e.exports=m},73679:e=>{e.exports=g},84157:e=>{e.exports=c},85314:e=>{e.exports=n},97822:e=>{e.exports=o}},b={};function S(e){var t=b[e];if(void 0!==t)return t.exports;var i=b[e]={exports:{}};return D[e](i,i.exports,S),i.exports}S.m=D,f=[],S.O=(e,t,i,r)=>{if(!t){var o=1/0;for(n=0;n<f.length;n++){for(var[t,i,r]=f[n],a=!0,s=0;s<t.length;s++)(!1&r||o>=r)&&Object.keys(S.O).every(e=>S.O[e](t[s]))?t.splice(s--,1):(a=!1,r<o&&(o=r));if(a){f.splice(n--,1);var l=i();void 0!==l&&(e=l)}}return e}r=r||0;for(var n=f.length;n>0&&f[n-1][2]>r;n--)f[n]=f[n-1];f[n]=[t,i,r]},S.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return S.d(t,{a:t}),t},S.d=(e,t)=>{for(var i in t)S.o(t,i)&&!S.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},S.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),S.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={1586:0,6273:0};S.O.j=t=>0===e[t];var t=(t,i)=>{var r,o,[a,s,l]=i,n=0;if(a.some(t=>0!==e[t])){for(r in s)S.o(s,r)&&(S.m[r]=s[r]);if(l)var p=l(S)}for(t&&t(i);n<a.length;n++)o=a[n],S.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return S.O(p)},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 x=S.O(void 0,[750,1890,6272,6325,9217,6283,2176,6798,5830,1200,2576,8210,4977,1270,3135,1598,109,1572,6366,6396,4974,6408,1323,8004,6754,4548,7719,984,1625,7814,2555],()=>S(38654));return S.O(x)})());
@@ -1,4 +1,4 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map","lit-html/directives/style-map","lit-html","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx"],e);else{var i="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx")):e(t["lit-element"],t["lit-html/directives/class-map"],t["lit-html/directives/style-map"],t["lit-html"],t["lit-html/directives/if-defined"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t.mobx);for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(self,(t,e,i,o,n,s,r,l)=>(()=>{"use strict";var c,a={8229:t=>{t.exports=i},23968:t=>{t.exports=e},32022:t=>{t.exports=s},40333:t=>{t.exports=o},41488:e=>{e.exports=t},60554:t=>{t.exports=r},61200:(t,e,i)=>{i.r(e),i.d(e,{Icon:()=>x,iconSet:()=>I,iconSize:()=>b,iconType:()=>S}),i(96798);var o=i(31890),n=i(26272),s=i(32022),r=i.n(s),l=i(60554),c=i.n(l),a=i(41488),m=i(40333),u=i(23968),h=i(97822),d=i(8229),p=i(57955),v=i(66873),g=i(81786),y=i(9223),f=function(t,e,i,o){var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const b=["14","16","18","20","28","36","56",14,16,18,20,28,36,56],S=["","white"],I=["momentumUI","preferMomentumDesign","momentumDesign","momentumBrandVisuals","svg"];var x;!function(t){var e;let i=e=class extends a.LitElement{constructor(){super(...arguments),this.color="",this.description="",this.name="",this.id="",this.size="",this.title="",this.ariaHidden=null,this.type="",this.isActive=!1,this.isComboBoxIcon=!1,this.sizeOverrided=!1,this.iconSet="momentumUI",this.svgIcon=null,this._ariaLabel="",this.consoleHandler=(t,e)=>{switch(t){case"color-warn":console.warn(`[@momentum-ui/web-component] Icon: ${e} may not exist in the design system, please use a color name from https://momentum.design/styles/color/style`);break;case"name-error":console.warn(`[@momentum-ui/web-component] Icon: Icon ${e} does not exist in the design system. Visit https://momentum.design/icons for a list of available icons or to request a new icon.`)}}}isSvgAlreadyLoaded(t){var e,i;return!!this.svgIcon&&(null===(i=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"))||void 0===i?void 0:i.includes(t))}loadSvgIcon(t){return e=this,i=void 0,n=function*(){var e,i;if(this.isSvgAlreadyLoaded(t))return;const o="momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet?yield(0,y.Jp)(this.computedSvgPath,t,"svg"):yield(0,y.D6)(t);o&&(this.svgIcon=o,null===(e=this.svgIcon)||void 0===e||e.setAttribute("class",`icon ${t}`),null===(i=this.svgIcon)||void 0===i||i.setAttribute("part","icon"),this.setSvgIconAttributes(),this.requestUpdate())},new((o=void 0)||(o=Promise))(function(t,s){function r(t){try{c(n.next(t))}catch(t){s(t)}}function l(t){try{c(n.throw(t))}catch(t){s(t)}}function c(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o(function(t){t(i)})).then(r,l)}c((n=n.apply(e,i||[])).next())});var e,i,o,n}setSvgIconAttributes(){this.svgIcon&&(this.iconFontSize&&this.svgIcon.setAttribute("width",`${this.iconFontSize}px`),this.iconFontSize&&this.svgIcon.setAttribute("height",`${this.iconFontSize}px`),this.color?this.svgIcon.setAttribute("fill",this.iconColor):this.svgIcon.setAttribute("fill","currentColor"))}get computedSvgPath(){return this.svgUrl?this.svgUrl:g.O.svgIconUrl}getIsMomentumDesignName(t){return t.endsWith("-filled")||t.endsWith("-light")||t.endsWith("-regular")||t.endsWith("-bold")}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet)return this.name;if("preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name))return this.name;const t=this.momentumUIIconLookupName,i=e.designLookup.get(t);return null!=i?i:t}updated(t){if(super.updated(t),this.doesIconSetSupportSVG)if(t.has("name")||t.has("iconSet")){const t=this.svgIconName;t&&"Unknown"!==t&&this.loadSvgIcon(t)}else(t.has("iconFontSize")||t.has("color"))&&this.setSvgIconAttributes()}get ariaLabel(){return this._ariaLabel?this._ariaLabel:this.title&&this.description?`${this.title} ${this.description}`:this.title?this.title:this.description?this.description:"icon"}set ariaLabel(t){const e=this._ariaLabel;this._ariaLabel=t,this.requestUpdate("ariaLabel",e)}get buttonClassMap(){return{[`md-button--icon-${this.type}`]:!!this.type}}get iconFontSize(){const t=this.name.split("_")[1];return this.size||t||16}get iconColor(){return this.color.startsWith("#")?(this.consoleHandler("color-warn",this.color),this.color):this.color.startsWith("var(")?this.color:c()(this.color)}get iconClassMap(){return{"md-combobox-input__icon":this.isComboBoxIcon,"md-combobox-input__icon--active":this.isComboBoxIcon&&this.isActive,[`${this.iconName}`]:!!this.iconName}}get momentumUIIconLookupName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t=t.split("_")[0],t}getIconName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t}handleSizeOverride(t){return`${t.split("_")[0]}_${this.iconFontSize}`}get iconName(){const t=this.getIconName();return this.sizeOverrided?this.handleSizeOverride(t):"preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name)?"":r().includes(t)||""===t?`icon-${t}`:this.consoleHandler("name-error",t)}get iconStyleMap(){return Object.assign(Object.assign({},this.iconFontSize&&{"font-size":`${this.iconFontSize}px`}),this.color&&{color:this.iconColor})}static get styles(){return[n.A,v.A]}handleIconClick(t){this.dispatchEvent(new CustomEvent("icon-click",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get doesIconSetSupportSVG(){return"momentumDesign"===this.iconSet||"preferMomentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return a.html`
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/class-map","lit-html/directives/style-map","lit-html","lit-html/directives/if-defined","@momentum-ui/icons/data/momentumUiIconsNames.json","@momentum-ui/utils/lib/getColorValue","mobx"],e);else{var i="object"==typeof exports?e(require("lit-element"),require("lit-html/directives/class-map"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/if-defined"),require("@momentum-ui/icons/data/momentumUiIconsNames.json"),require("@momentum-ui/utils/lib/getColorValue"),require("mobx")):e(t["lit-element"],t["lit-html/directives/class-map"],t["lit-html/directives/style-map"],t["lit-html"],t["lit-html/directives/if-defined"],t["@momentum-ui/icons/data/momentumUiIconsNames.json"],t["@momentum-ui/utils/lib/getColorValue"],t.mobx);for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(self,(t,e,i,o,n,s,r,l)=>(()=>{"use strict";var c,a={8229:t=>{t.exports=i},23968:t=>{t.exports=e},32022:t=>{t.exports=s},40333:t=>{t.exports=o},41488:e=>{e.exports=t},60554:t=>{t.exports=r},61200:(t,e,i)=>{i.r(e),i.d(e,{Icon:()=>x,iconSet:()=>I,iconSize:()=>b,iconType:()=>S}),i(96798);var o=i(31890),n=i(26272),s=i(32022),r=i.n(s),l=i(60554),c=i.n(l),a=i(41488),m=i(40333),u=i(23968),h=i(97822),d=i(8229),p=i(57955),v=i(66873),g=i(81786),y=i(9223),f=function(t,e,i,o){var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const b=["14","16","18","20","28","36","56",14,16,18,20,28,36,56],S=["","white"],I=["momentumUI","preferMomentumDesign","momentumDesign","momentumBrandVisuals","svg"];var x;!function(t){var e;let i=e=class extends a.LitElement{constructor(){super(...arguments),this.color="",this.description="",this.name="",this.id="",this.size="",this.title="",this.ariaHidden=null,this.type="",this.isActive=!1,this.isComboBoxIcon=!1,this.sizeOverrided=!1,this.iconSet="momentumUI",this.svgIcon=null,this._ariaLabel="",this.consoleHandler=(t,e)=>{switch(t){case"color-warn":console.warn(`[@momentum-ui/web-component] Icon: ${e} may not exist in the design system, please use a color name from https://momentum.design/styles/color/style`);break;case"name-error":console.warn(`[@momentum-ui/web-component] Icon: Icon ${e} does not exist in the design system. Visit https://momentum.design/icons for a list of available icons or to request a new icon.`);break;case"name-changed":console.warn(`[@momentum-ui/web-component] Icon: The name changed to '${e[0]}' before the SVG icon '${e[1]}' finished loading; skipping outdated result.`)}}}isSvgAlreadyLoaded(t){var e,i;return!!this.svgIcon&&(null===(i=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"))||void 0===i?void 0:i.includes(t))}loadSvgIcon(t){return e=this,i=void 0,n=function*(){var e,i,o,n;if(this.isSvgAlreadyLoaded(t))return;const s=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"),r="momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet?yield(0,y.Jp)(this.computedSvgPath,t,"svg"):yield(0,y.D6)(t);if(!r)return;const l=null===(i=this.svgIcon)||void 0===i?void 0:i.getAttribute("class");s===l?(this.svgIcon=r,null===(o=this.svgIcon)||void 0===o||o.setAttribute("class",`icon ${t}`),null===(n=this.svgIcon)||void 0===n||n.setAttribute("part","icon"),this.setSvgIconAttributes(),this.requestUpdate()):this.consoleHandler("name-changed",[null!=l?l:"",t])},new((o=void 0)||(o=Promise))(function(t,s){function r(t){try{c(n.next(t))}catch(t){s(t)}}function l(t){try{c(n.throw(t))}catch(t){s(t)}}function c(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o(function(t){t(i)})).then(r,l)}c((n=n.apply(e,i||[])).next())});var e,i,o,n}setSvgIconAttributes(){this.svgIcon&&(this.iconFontSize&&this.svgIcon.setAttribute("width",`${this.iconFontSize}px`),this.iconFontSize&&this.svgIcon.setAttribute("height",`${this.iconFontSize}px`),this.color?this.svgIcon.setAttribute("fill",this.iconColor):this.svgIcon.setAttribute("fill","currentColor"))}get computedSvgPath(){return this.svgUrl?this.svgUrl:g.O.svgIconUrl}getIsMomentumDesignName(t){return t.endsWith("-filled")||t.endsWith("-light")||t.endsWith("-regular")||t.endsWith("-bold")}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet)return this.name;if("preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name))return this.name;const t=this.momentumUIIconLookupName,i=e.designLookup.get(t);return null!=i?i:t}updated(t){if(super.updated(t),this.doesIconSetSupportSVG)if(t.has("name")||t.has("iconSet")){const t=this.svgIconName;t&&"Unknown"!==t&&this.loadSvgIcon(t)}else(t.has("iconFontSize")||t.has("color"))&&this.setSvgIconAttributes()}get ariaLabel(){return this._ariaLabel?this._ariaLabel:this.title&&this.description?`${this.title} ${this.description}`:this.title?this.title:this.description?this.description:"icon"}set ariaLabel(t){const e=this._ariaLabel;this._ariaLabel=t,this.requestUpdate("ariaLabel",e)}get buttonClassMap(){return{[`md-button--icon-${this.type}`]:!!this.type}}get iconFontSize(){const t=this.name.split("_")[1];return this.size||t||16}get iconColor(){return this.color.startsWith("#")?(this.consoleHandler("color-warn",this.color),this.color):this.color.startsWith("var(")?this.color:c()(this.color)}get iconClassMap(){return{"md-combobox-input__icon":this.isComboBoxIcon,"md-combobox-input__icon--active":this.isComboBoxIcon&&this.isActive,[`${this.iconName}`]:!!this.iconName}}get momentumUIIconLookupName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t=t.split("_")[0],t}getIconName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t}handleSizeOverride(t){return`${t.split("_")[0]}_${this.iconFontSize}`}get iconName(){const t=this.getIconName();return this.sizeOverrided?this.handleSizeOverride(t):"preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name)?"":r().includes(t)||""===t?`icon-${t}`:this.consoleHandler("name-error",t)}get iconStyleMap(){return Object.assign(Object.assign({},this.iconFontSize&&{"font-size":`${this.iconFontSize}px`}),this.color&&{color:this.iconColor})}static get styles(){return[n.A,v.A]}handleIconClick(t){this.dispatchEvent(new CustomEvent("icon-click",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get doesIconSetSupportSVG(){return"momentumDesign"===this.iconSet||"preferMomentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return a.html`
2
2
  <i
3
3
  part="icon"
4
4
  id=${this.id}
@@ -1203,7 +1203,7 @@
1203
1203
  ${this.hasNotification?a.html` <span class="md-avatar__notification-badge"></span> `:l.nothing}
1204
1204
  ${this.renderPresence()}
1205
1205
  </div>
1206
- `}};y([(0,a.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),y([(0,a.property)({type:String})],e.prototype,"alt",void 0),y([(0,a.property)({type:String})],e.prototype,"src",void 0),y([(0,a.property)({type:String})],e.prototype,"label",void 0),y([(0,a.property)({type:String})],e.prototype,"title",void 0),y([(0,a.property)({type:String})],e.prototype,"color",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"decrypting",void 0),y([(0,a.property)({type:String})],e.prototype,"role",void 0),y([(0,a.property)({type:String,attribute:"icon-name"})],e.prototype,"iconName",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"failurePresence",void 0),y([(0,a.property)({type:String})],e.prototype,"type",void 0),y([(0,a.property)({type:String,attribute:"presence-type"})],e.prototype,"presenceType",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"newMomentum",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"typing",void 0),y([(0,a.property)({type:Number})],e.prototype,"size",void 0),y([(0,a.property)({type:Boolean,attribute:"has-notification"})],e.prototype,"hasNotification",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"clickable",void 0),y([(0,a.property)({attribute:!1})],e.prototype,"clickFunction",void 0),y([(0,a.property)({type:String,attribute:"avatar-style"})],e.prototype,"avatarStyle",void 0),y([(0,a.property)({type:String})],e.prototype,"state",void 0),y([(0,a.internalProperty)()],e.prototype,"imageLoaded",void 0),y([(0,a.internalProperty)()],e.prototype,"imageErrored",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceColor",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceIcon",void 0),e=y([(0,s.w)("md-avatar")],e),t.ELEMENT=e}(o||(o={}))},39791:(t,e,i)=>{i.r(e),i.d(e,{Accordion:()=>o.Accordion,AccordionItem:()=>s.AccordionItem,ActivityButton:()=>r.ActivityButton,AdvanceList:()=>n.AdvanceList,Alert:()=>l.Alert,AlertBanner:()=>a.AlertBanner,ArrayValidators:()=>yt,AudioPlayer:()=>d.AudioPlayer,Avatar:()=>h.Avatar,AvatarType:()=>p,Badge:()=>u.Badge,Breadcrumb:()=>E.Breadcrumb,Button:()=>$.Button,ButtonGroup:()=>S.ButtonGroup,Card:()=>A.Card,CardAi:()=>T.CardAi,CardV2:()=>k.CardV2,ChatMessage:()=>I.ChatMessage,Checkbox:()=>L.Checkbox,CheckboxGroup:()=>O.CheckboxGroup,Chip:()=>M.Chip,Coachmark:()=>P.Coachmark,CoachmarkPopover:()=>D.CoachmarkPopover,CodeEditor:()=>F,ComboBox:()=>N.ComboBox,CompositeAvatar:()=>c.CompositeAvatar,CountryCodePicker:()=>j.CountryCodePicker,DatePicker:()=>H.DatePicker,DatePickerCalendar:()=>K.DatePickerCalendar,DatePickerDay:()=>W.DatePickerDay,DatePickerMonth:()=>G.DatePickerMonth,DatePickerWeek:()=>Y.DatePickerWeek,DateRangePicker:()=>U.DateRangePicker,DateTimePicker:()=>q.DateTimePicker,Draggable:()=>X.Draggable,DraggableItem:()=>Z.DraggableItem,Dropdown:()=>Q.Dropdown,EditableTextfield:()=>J.EditableTextfield,Favorite:()=>tt.Favorite,FloatingButtonBar:()=>nt,FloatingMinimizedModal:()=>at.FloatingMinimizedModal,FloatingModal:()=>lt.FloatingModal,Form:()=>vt.Form,FormArray:()=>ct,FormControl:()=>ht,FormGroup:()=>pt,Grabber:()=>bt.Grabber,HelpText:()=>gt.HelpText,Icon:()=>g.Icon,Input:()=>wt.Input,InputFile:()=>ft.InputFile,Label:()=>xt.Label,Link:()=>Ct.Link,List:()=>Lt.List,ListItem:()=>Ot.ListItem,ListItemV2:()=>Tt,ListV2:()=>At,Loading:()=>Mt.Loading,MeetingAlert:()=>Dt.MeetingAlert,Menu:()=>Rt.Menu,MenuItem:()=>_t.MenuItem,MenuOverlay:()=>Pt.MenuOverlay,Modal:()=>Bt.Modal,NotificationBadge:()=>C,Pagination:()=>zt.Pagination,PhoneInput:()=>Ft.PhoneInput,Popover:()=>Vt.Popover,PopoverController:()=>Vt.PopoverController,Presence:()=>Nt.Presence,ProgressBar:()=>jt.ProgressBar,Radio:()=>Ut.Radio,RadioGroup:()=>qt.RadioGroup,Skeleton:()=>Kt,Slider:()=>Gt.Slider,Spinner:()=>Yt.Spinner,Tab:()=>Qt.Tab,TabPanel:()=>Jt.TabPanel,Table:()=>Zt.Table,TableAdvanced:()=>Xt.TableAdvanced,Tabs:()=>te.Tabs,TaskItem:()=>ee.TaskItem,Theme:()=>ie.Theme,ThemeManager:()=>ne.ThemeManager,TimePicker:()=>oe.TimePicker,ToggleSwitch:()=>se.ToggleSwitch,Tooltip:()=>et.Tooltip,Validators:()=>ut,iconUrlManager:()=>re.O,registerThemeManagerGlobally:()=>ne.registerThemeManagerGlobally,themeManager:()=>ne.themeManager});var o=i(33328),s=i(6779),r=i(94891),n=i(28307),a=i(19479),l=i(74896),d=i(23779),h=i(38028);const p=["bot","group","self","typing",""];var c=i(2207),u=i(63704),m=i(3001),y=i(41488),v=i(17518),b=i(73679),g=i(61200),f=i(15427);const w=y.css`:host{color:var(--badge-notification-primary-foreground-color);font-size:var(--font-size-body-small,.75rem);font-weight:var(--brand-font-weight-medium,500);line-height:var(--font-lineheight-body-small,1rem);font-family:var(--brand-font-medium);box-sizing:border-box;align-items:center;display:flex;height:fit-content;justify-content:center;width:fit-content}.md-notification-badge-overlay{outline:.0625rem solid var(--badge-notification-overlay-border-color)}.md-notification-badge-text{box-sizing:border-box;padding:0 .25rem;border-radius:6.25rem;min-width:1rem;display:flex;justify-content:center;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-dot{width:.75rem;height:.75rem;border-radius:50%;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-icon{padding:2px;size:1rem;border-radius:50%;box-sizing:border-box}.md-notification-badge-icon__primary{background-color:var(--badge-notification-primary-background-color);color:var(--badge-notification-primary-foreground-color)}.md-notification-badge-icon__success{background-color:var(--badge-notification-success-background-color);color:var(--badge-notification-success-foreground-color)}.md-notification-badge-icon__warning{background-color:var(--badge-notification-warning-background-color);color:var(--badge-notification-warning-foreground-color)}.md-notification-badge-icon__error{background-color:var(--badge-notification-error-background-color);color:var(--badge-notification-error-foreground-color)}.md-notification-badge-icon__secondary{background-color:var(--badge-notification-secondary-background-color);color:var(--badge-notification-secondary-foreground-color)}@media(forced-colors:active){.md-notification-badge-dot,.md-notification-badge-icon,.md-notification-badge-text{outline:.125rem solid}}`;var x=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};let C=class extends y.LitElement{constructor(){super(...arguments),this.variant=f.zY.VARIANT,this.maxCounter=f.zY.MAX_COUNTER,this.overlay=!1,this.ariaLabel=null}static get styles(){return[w]}getCounterText(t,e){return void 0===e||"number"!=typeof e||0===t?"":e>t?`${t}+`:t>f.zY.MAX_COUNTER_LIMIT||e>f.zY.MAX_COUNTER_LIMIT?`${f.zY.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t,e){return y.html`
1206
+ `}};y([(0,a.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),y([(0,a.property)({type:String})],e.prototype,"alt",void 0),y([(0,a.property)({type:String})],e.prototype,"src",void 0),y([(0,a.property)({type:String})],e.prototype,"label",void 0),y([(0,a.property)({type:String})],e.prototype,"title",void 0),y([(0,a.property)({type:String})],e.prototype,"color",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"decrypting",void 0),y([(0,a.property)({type:String})],e.prototype,"role",void 0),y([(0,a.property)({type:String,attribute:"icon-name"})],e.prototype,"iconName",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"failurePresence",void 0),y([(0,a.property)({type:String})],e.prototype,"type",void 0),y([(0,a.property)({type:String,attribute:"presence-type"})],e.prototype,"presenceType",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"newMomentum",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"typing",void 0),y([(0,a.property)({type:Number})],e.prototype,"size",void 0),y([(0,a.property)({type:Boolean,attribute:"has-notification"})],e.prototype,"hasNotification",void 0),y([(0,a.property)({type:Boolean})],e.prototype,"clickable",void 0),y([(0,a.property)({attribute:!1})],e.prototype,"clickFunction",void 0),y([(0,a.property)({type:String,attribute:"avatar-style"})],e.prototype,"avatarStyle",void 0),y([(0,a.property)({type:String})],e.prototype,"state",void 0),y([(0,a.internalProperty)()],e.prototype,"imageLoaded",void 0),y([(0,a.internalProperty)()],e.prototype,"imageErrored",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceColor",void 0),y([(0,a.internalProperty)()],e.prototype,"presenceIcon",void 0),e=y([(0,s.w)("md-avatar")],e),t.ELEMENT=e}(o||(o={}))},39791:(t,e,i)=>{i.r(e),i.d(e,{Accordion:()=>o.Accordion,AccordionItem:()=>s.AccordionItem,ActivityButton:()=>r.ActivityButton,AdvanceList:()=>n.AdvanceList,Alert:()=>l.Alert,AlertBanner:()=>a.AlertBanner,ArrayValidators:()=>yt,AudioPlayer:()=>d.AudioPlayer,Avatar:()=>h.Avatar,AvatarType:()=>p,Badge:()=>u.Badge,Breadcrumb:()=>E.Breadcrumb,Button:()=>$.Button,ButtonGroup:()=>S.ButtonGroup,Card:()=>A.Card,CardAi:()=>T.CardAi,CardV2:()=>k.CardV2,ChatMessage:()=>I.ChatMessage,Checkbox:()=>L.Checkbox,CheckboxGroup:()=>O.CheckboxGroup,Chip:()=>M.Chip,Coachmark:()=>P.Coachmark,CoachmarkPopover:()=>D.CoachmarkPopover,CodeEditor:()=>F,ComboBox:()=>N.ComboBox,CompositeAvatar:()=>c.CompositeAvatar,CountryCodePicker:()=>j.CountryCodePicker,DatePicker:()=>H.DatePicker,DatePickerCalendar:()=>W.DatePickerCalendar,DatePickerDay:()=>K.DatePickerDay,DatePickerMonth:()=>G.DatePickerMonth,DatePickerWeek:()=>Y.DatePickerWeek,DateRangePicker:()=>U.DateRangePicker,DateTimePicker:()=>q.DateTimePicker,Draggable:()=>X.Draggable,DraggableItem:()=>Z.DraggableItem,Dropdown:()=>Q.Dropdown,EditableTextfield:()=>J.EditableTextfield,Favorite:()=>tt.Favorite,FloatingButtonBar:()=>nt,FloatingMinimizedModal:()=>at.FloatingMinimizedModal,FloatingModal:()=>lt.FloatingModal,Form:()=>vt.Form,FormArray:()=>ct,FormControl:()=>ht,FormGroup:()=>pt,Grabber:()=>bt.Grabber,HelpText:()=>gt.HelpText,Icon:()=>g.Icon,Input:()=>wt.Input,InputFile:()=>ft.InputFile,Label:()=>xt.Label,Link:()=>Ct.Link,List:()=>Lt.List,ListItem:()=>Ot.ListItem,ListItemV2:()=>Tt,ListV2:()=>At,Loading:()=>Mt.Loading,MeetingAlert:()=>Dt.MeetingAlert,Menu:()=>Rt.Menu,MenuItem:()=>_t.MenuItem,MenuOverlay:()=>Pt.MenuOverlay,Modal:()=>Bt.Modal,NotificationBadge:()=>C,Pagination:()=>zt.Pagination,PhoneInput:()=>Ft.PhoneInput,Popover:()=>Vt.Popover,PopoverController:()=>Vt.PopoverController,Presence:()=>Nt.Presence,ProgressBar:()=>jt.ProgressBar,Radio:()=>Ut.Radio,RadioGroup:()=>qt.RadioGroup,Skeleton:()=>Wt,Slider:()=>Gt.Slider,Spinner:()=>Yt.Spinner,Tab:()=>Qt.Tab,TabPanel:()=>Jt.TabPanel,Table:()=>Zt.Table,TableAdvanced:()=>Xt.TableAdvanced,Tabs:()=>te.Tabs,TaskItem:()=>ee.TaskItem,Theme:()=>ie.Theme,ThemeManager:()=>ne.ThemeManager,TimePicker:()=>oe.TimePicker,ToggleSwitch:()=>se.ToggleSwitch,Tooltip:()=>et.Tooltip,Validators:()=>ut,iconUrlManager:()=>re.O,registerThemeManagerGlobally:()=>ne.registerThemeManagerGlobally,themeManager:()=>ne.themeManager});var o=i(33328),s=i(6779),r=i(94891),n=i(28307),a=i(19479),l=i(74896),d=i(23779),h=i(38028);const p=["bot","group","self","typing",""];var c=i(2207),u=i(63704),m=i(3001),y=i(41488),v=i(17518),b=i(73679),g=i(61200),f=i(15427);const w=y.css`:host{color:var(--badge-notification-primary-foreground-color);font-size:var(--font-size-body-small,.75rem);font-weight:var(--brand-font-weight-medium,500);line-height:var(--font-lineheight-body-small,1rem);font-family:var(--brand-font-medium);box-sizing:border-box;align-items:center;display:flex;height:fit-content;justify-content:center;width:fit-content}.md-notification-badge-overlay{outline:.0625rem solid var(--badge-notification-overlay-border-color)}.md-notification-badge-text{box-sizing:border-box;padding:0 .25rem;border-radius:6.25rem;min-width:1rem;display:flex;justify-content:center;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-dot{width:.75rem;height:.75rem;border-radius:50%;background-color:var(--badge-notification-primary-background-color)}.md-notification-badge-icon{padding:2px;size:1rem;border-radius:50%;box-sizing:border-box}.md-notification-badge-icon__primary{background-color:var(--badge-notification-primary-background-color);color:var(--badge-notification-primary-foreground-color)}.md-notification-badge-icon__success{background-color:var(--badge-notification-success-background-color);color:var(--badge-notification-success-foreground-color)}.md-notification-badge-icon__warning{background-color:var(--badge-notification-warning-background-color);color:var(--badge-notification-warning-foreground-color)}.md-notification-badge-icon__error{background-color:var(--badge-notification-error-background-color);color:var(--badge-notification-error-foreground-color)}.md-notification-badge-icon__secondary{background-color:var(--badge-notification-secondary-background-color);color:var(--badge-notification-secondary-foreground-color)}@media(forced-colors:active){.md-notification-badge-dot,.md-notification-badge-icon,.md-notification-badge-text{outline:.125rem solid}}`;var x=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};let C=class extends y.LitElement{constructor(){super(...arguments),this.variant=f.zY.VARIANT,this.maxCounter=f.zY.MAX_COUNTER,this.overlay=!1,this.ariaLabel=null}static get styles(){return[w]}getCounterText(t,e){return void 0===e||"number"!=typeof e||0===t?"":e>t?`${t}+`:t>f.zY.MAX_COUNTER_LIMIT||e>f.zY.MAX_COUNTER_LIMIT?`${f.zY.MAX_COUNTER_LIMIT}+`:e.toString()}getBadgeIcon(t,e){return y.html`
1207
1207
  <md-icon
1208
1208
  class="md-notification-badge-icon ${(0,v.classMap)({"md-notification-badge-overlay":this.overlay,[`md-notification-badge-icon__${e}`]:!0})}"
1209
1209
  iconSet="momentumDesign"
@@ -1249,7 +1249,7 @@
1249
1249
  </pre>
1250
1250
  </div>
1251
1251
  </div>
1252
- `}};V([(0,y.property)({type:String})],e.prototype,"copyLocalization",void 0),V([(0,y.property)({type:String})],e.prototype,"copiedLocalization",void 0),V([(0,y.property)({type:String})],e.prototype,"method",void 0),V([(0,y.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),V([(0,y.property)({type:String})],e.prototype,"url",void 0),V([(0,y.query)("input[type='file']")],e.prototype,"input",void 0),V([(0,y.query)(".md-code-editor-code-block")],e.prototype,"codeBlock",void 0),V([(0,y.query)(".md-code-editor-url")],e.prototype,"codeUrl",void 0),V([(0,y.internalProperty)()],e.prototype,"disableCopyButton",void 0),V([(0,y.internalProperty)()],e.prototype,"acceptTypes",void 0),V([(0,y.internalProperty)()],e.prototype,"copied",void 0),V([(0,y.queryAssignedNodes)("code-block")],e.prototype,"slotNodes",void 0),V([(0,y.queryAssignedNodes)("code-url")],e.prototype,"slotUrl",void 0),e=V([(0,m.wW)("md-code-editor")],e),t.ELEMENT=e}(F||(F={}));var N=i(4928),j=i(18224),U=i(69494),q=i(85416),H=i(38654),K=i(63208),W=i(16754),G=i(17814),Y=i(10984),X=i(80072),Z=i(24627),Q=i(23184),J=i(50565),tt=i(99850),et=i(83192),it=i(40333),ot=i(97822);const st=y.css`:host{display:inline-flex;align-items:center;height:1.75rem;border-radius:1.5625rem;background-color:var(--floating-button-bar-bg-color);box-shadow:var(--md-elevation-1);padding:.25rem .5rem;gap:.5rem}.button{display:inline-flex;align-items:center;justify-content:center}.button.pill::part(button){font-size:.875rem;padding-left:.75rem;padding-right:.75rem}.cancel{color:var(--floating-button-bar-secondary-color)}.label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.label.primary{font-family:var(--brand-font-medium);color:var(--floating-button-bar-primary-color);flex:1;min-width:0;justify-content:center}.label.secondary{color:var(--floating-button-bar-secondary-color);padding-right:4px}.separator{width:1px;height:.75rem;background-color:var(--floating-button-bar-secondary-color)}md-tooltip::part(tooltip_reference){display:flex;align-items:center}`;var rt=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};let nt=class extends y.LitElement{constructor(){super(...arguments),this.leadingLabel="",this.closeButtonAriaLabel="",this.showCloseButton=!0,this.actions=[]}static get styles(){return[st]}onCancelButttonAction(){this.dispatchEvent(new CustomEvent("cancel-button-action",{composed:!0,bubbles:!0}))}get closeButtonTemplate(){return y.html`
1252
+ `}};V([(0,y.property)({type:String})],e.prototype,"copyLocalization",void 0),V([(0,y.property)({type:String})],e.prototype,"copiedLocalization",void 0),V([(0,y.property)({type:String})],e.prototype,"method",void 0),V([(0,y.property)({type:String,attribute:"accept-language"})],e.prototype,"acceptLanguage",void 0),V([(0,y.property)({type:String})],e.prototype,"url",void 0),V([(0,y.query)("input[type='file']")],e.prototype,"input",void 0),V([(0,y.query)(".md-code-editor-code-block")],e.prototype,"codeBlock",void 0),V([(0,y.query)(".md-code-editor-url")],e.prototype,"codeUrl",void 0),V([(0,y.internalProperty)()],e.prototype,"disableCopyButton",void 0),V([(0,y.internalProperty)()],e.prototype,"acceptTypes",void 0),V([(0,y.internalProperty)()],e.prototype,"copied",void 0),V([(0,y.queryAssignedNodes)("code-block")],e.prototype,"slotNodes",void 0),V([(0,y.queryAssignedNodes)("code-url")],e.prototype,"slotUrl",void 0),e=V([(0,m.wW)("md-code-editor")],e),t.ELEMENT=e}(F||(F={}));var N=i(4928),j=i(18224),U=i(69494),q=i(85416),H=i(38654),W=i(63208),K=i(16754),G=i(17814),Y=i(10984),X=i(80072),Z=i(24627),Q=i(23184),J=i(50565),tt=i(99850),et=i(83192),it=i(40333),ot=i(97822);const st=y.css`:host{display:inline-flex;align-items:center;height:1.75rem;border-radius:1.5625rem;background-color:var(--floating-button-bar-bg-color);box-shadow:var(--md-elevation-1);padding:.25rem .5rem;gap:.5rem}.button{display:inline-flex;align-items:center;justify-content:center}.button.pill::part(button){font-size:.875rem;padding-left:.75rem;padding-right:.75rem}.cancel{color:var(--floating-button-bar-secondary-color)}.label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.label.primary{font-family:var(--brand-font-medium);color:var(--floating-button-bar-primary-color);flex:1;min-width:0;justify-content:center}.label.secondary{color:var(--floating-button-bar-secondary-color);padding-right:4px}.separator{width:1px;height:.75rem;background-color:var(--floating-button-bar-secondary-color)}md-tooltip::part(tooltip_reference){display:flex;align-items:center}`;var rt=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};let nt=class extends y.LitElement{constructor(){super(...arguments),this.leadingLabel="",this.closeButtonAriaLabel="",this.showCloseButton=!0,this.actions=[]}static get styles(){return[st]}onCancelButttonAction(){this.dispatchEvent(new CustomEvent("cancel-button-action",{composed:!0,bubbles:!0}))}get closeButtonTemplate(){return y.html`
1253
1253
  <md-tooltip
1254
1254
  message="${(0,ot.ifDefined)(this.closeButtonAriaLabel)}"
1255
1255
  ?disabled=${!this.closeButtonAriaLabel}
@@ -1332,7 +1332,7 @@
1332
1332
  @click=${this.stopEventPropagation}
1333
1333
  @keyup=${this.stopEventPropagation}
1334
1334
  @keydown=${this.stopEventPropagation}
1335
- ></slot>`}stopArrowKeyEventPropagation(t){t instanceof KeyboardEvent&&(0,St.q)(t.key)&&t.stopPropagation()}isExpandCollapseKey(t){return t===Et.Uz.ArrowRight||t===Et.Uz.ArrowLeft}stopEventPropagation(t){(t instanceof KeyboardEvent&&((0,St.o)(t.key)||this.isExpandCollapseKey(t.key))||t instanceof MouseEvent)&&t.stopPropagation()}setExpanded(t){this.expanded=t,this.setAttribute("aria-expanded",String(this.expanded)),this.dispatchEvent(new CustomEvent("list-item-expanded",{bubbles:!0,detail:this.expanded}))}_handleExpand(t){t.stopPropagation(),this.expandable&&this.setExpanded(!this.expanded)}_handleListItemClick(t){const e=t.composedPath(),i=e[0];!e.includes(this.header)&&i!==this||this.disabled||this.dispatchEvent(new CustomEvent("list-item-click",{bubbles:!0}))}_handleArrowKeyExpand(t){t.key!==Et.Uz.ArrowRight||this.expanded?t.key===Et.Uz.ArrowLeft&&this.expanded&&(t.stopPropagation(),this.setExpanded(!1)):(t.stopPropagation(),this.setExpanded(!0))}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem"),this.setAttribute("tabindex","0"),this.addEventListener("click",this._handleListItemClick),this.expandable&&this.addEventListener("keydown",this._handleArrowKeyExpand)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleListItemClick),this.removeEventListener("keydown",this._handleArrowKeyExpand)}static get styles(){return $t}};kt([(0,y.property)({type:String,reflect:!0})],e.prototype,"label",void 0),kt([(0,y.property)({type:String,reflect:!0,attribute:"secondary-label"})],e.prototype,"secondaryLabel",void 0),kt([(0,y.property)({type:String,reflect:!0,attribute:"tertiary-label"})],e.prototype,"tertiaryLabel",void 0),kt([(0,y.property)({type:Boolean})],e.prototype,"expandable",void 0),kt([(0,y.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",void 0),kt([(0,y.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),kt([(0,y.property)({type:String})],e.prototype,"variant",void 0),kt([(0,y.property)({type:String,attribute:"expand-label"})],e.prototype,"expandLabel",void 0),kt([(0,y.query)(".header")],e.prototype,"header",void 0),e=kt([(0,y.customElement)("md-list-item-v2")],e),t.ELEMENT=e}(Tt||(Tt={}));var At,It=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 y.LitElement{constructor(){super(...arguments),this.gap="none",this.orientation="vertical"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","list"),this.addEventListener("keydown",this.handleKeyDown)}render(){return y.html` <slot @click=${this.handleMouseClick}></slot>`}get listItems(){return Array.from(this.assignedNodes).filter(t=>t instanceof Tt.ELEMENT&&!t.disabled)}handleMouseClick(t){const e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}getNewIndexBasedOnKey(t,e,i){switch(t){case Et.Uz.ArrowDown:return(e+1)%i;case Et.Uz.ArrowUp:return(e-1+i)%i;case Et.Uz.Home:return 0;case Et.Uz.End:return i-1;default:return}}handleKeyDown(t){var e;const i=this.getCurrentIndex(t.target),o=this.getNewIndexBasedOnKey(t.key,i,this.listItems.length);void 0!==o&&(null===(e=this.listItems[o])||void 0===e||e.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,i)=>{const o=t===i?"0":"-1";e.setAttribute("tabindex",o)})}static get styles(){return $t}};It([(0,y.property)({type:String})],e.prototype,"gap",void 0),It([(0,y.property)({type:String})],e.prototype,"orientation",void 0),It([(0,y.queryAssignedNodes)()],e.prototype,"assignedNodes",void 0),e=It([(0,y.customElement)("md-list-v2")],e),t.ELEMENT=e}(At||(At={}));var Lt=i(68490),Ot=i(66245),Mt=i(69788),Dt=i(61997),Pt=i(11323),Rt=i(84032),_t=i(48171),Bt=i(32252),zt=i(23026),Ft=i(84205),Vt=i(71128),Nt=i(15300),jt=i(58287),Ut=i(81144),qt=i(32217);const Ht=y.css`:host{width:100%;height:100%;display:block;background-color:var(--md-textColor-primary);opacity:.5}:host([variant=circle]){border-radius:50%}:host([variant=rectangular]){border-radius:0}:host([variant=rounded]){border-radius:.5rem}:host([animation=none]){animation:none}:host([animation=pulse]){animation:skeleton-pulse 2s ease-in-out infinite}@keyframes skeleton-pulse{0%{opacity:.5}50%{opacity:.25}100%{opacity:.5}}`;var Kt,Wt=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 y.LitElement{constructor(){super(...arguments),this.variant="rounded",this.animation="pulse"}render(){var t,e;return this.style.width=null!==(t=this.width)&&void 0!==t?t:this.style.width,this.style.height=null!==(e=this.height)&&void 0!==e?e:this.style.height,y.html`<slot></slot>`}static get styles(){return[Ht]}};Wt([(0,y.property)({type:String})],e.prototype,"width",void 0),Wt([(0,y.property)({type:String})],e.prototype,"height",void 0),Wt([(0,y.property)({reflect:!0})],e.prototype,"variant",void 0),Wt([(0,y.property)({reflect:!0})],e.prototype,"animation",void 0),e=Wt([(0,y.customElement)("md-skeleton")],e),t.ELEMENT=e}(Kt||(Kt={}));var Gt=i(25428),Yt=i(12176),Xt=i(77935),Zt=i(40428),Qt=i(16643),Jt=i(97737),te=i(50226),ee=i(86610),ie=i(1072),oe=i(49256),se=i(20331),re=i(81786),ne=i(37719)},40333:t=>{t.exports=o},40428:(t,e,i)=>{i.d(e,{Table:()=>o}),i(61200);var o,s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(17518),d=i(28187),h=i.n(d),p=i(43604),c=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.tabledata="",this.zebra=!1,this.clean=!1,this.sorting=!1,this.nodata="No data Loaded",this.stickheader=!1,this.label="Table",this.noBorders=!1,this.format="default",this.warning=[],this.errors=[],this.sort={columnName:"",sortting:!1},this.csvData=void 0,this.config={quoteChar:'"',escapeChar:'""',header:!1,preview:0,comments:!1,step:void 0,complete:void 0}}connectedCallback(){super.connectedCallback(),this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.requestUpdate("tabledata"),this.linkCellItems()}get rowItem(){return this.rowTable}linkCellItems(){const t=this.rowTable;null==t||t.forEach((t,e)=>{this.warning.forEach(i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach((t,e)=>{e+1===i.col&&(t.classList.add("warning"),t.insertAdjacentHTML("beforeend",'<md-icon name="warning-regular" size="24" iconSet="momentumDesign" color="var(--md-alert-warning-text-color)"></md-icon>'))})}),this.errors.forEach(i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach((t,e)=>{e+1===i.col&&(t.classList.add("error"),t.insertAdjacentHTML("beforeend",'<md-icon name="clear-bold" size="24" iconSet="momentumDesign" color="var(--md-alert-error-text-color)"></md-icon>'))})})})}sortTab(t,e){const i=t.target,o=Array.from(this.csvData),s=this.headerRow.indexOf(e);e!==this.sort.columnName||!0!==this.sort.sortting?(o.sort(function(t,e){const i=t[s].toLowerCase(),o=e[s].toLowerCase();return i>o?1:i<o?-1:0}),this.sort.sortting=!0,i.classList.remove("sortedZyx"),i.classList.add("sortedAbc")):(o.reverse(),this.sort.sortting=!1,i.classList.remove("sortedAbc"),i.classList.add("sortedZyx")),this.sort.columnName=e,this.csvData=o,this.requestUpdate("csvData")}update(t){super.update(t),t.has("tabledata")&&(this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.linkCellItems())}static get styles(){return[r.A,p.A]}get tableClassMap(){return{"md-table--clean":this.clean,"md-table--no-borders":this.noBorders,"md-table--stripped":this.zebra,"md-table--sorting":this.sorting}}getSortTemplate(t){return this.sort.columnName!==t?a.nothing:n.html`
1335
+ ></slot>`}stopArrowKeyEventPropagation(t){t instanceof KeyboardEvent&&(0,St.q)(t.key)&&t.stopPropagation()}isExpandCollapseKey(t){return t===Et.Uz.ArrowRight||t===Et.Uz.ArrowLeft}stopEventPropagation(t){(t instanceof KeyboardEvent&&((0,St.o)(t.key)||this.isExpandCollapseKey(t.key))||t instanceof MouseEvent)&&t.stopPropagation()}setExpanded(t){this.expanded=t,this.setAttribute("aria-expanded",String(this.expanded)),this.dispatchEvent(new CustomEvent("list-item-expanded",{bubbles:!0,detail:this.expanded}))}_handleExpand(t){t.stopPropagation(),this.expandable&&this.setExpanded(!this.expanded)}_handleListItemClick(t){const e=t.composedPath(),i=e[0];!e.includes(this.header)&&i!==this||this.disabled||this.dispatchEvent(new CustomEvent("list-item-click",{bubbles:!0}))}_handleArrowKeyExpand(t){t.key!==Et.Uz.ArrowRight||this.expanded?t.key===Et.Uz.ArrowLeft&&this.expanded&&(t.stopPropagation(),this.setExpanded(!1)):(t.stopPropagation(),this.setExpanded(!0))}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem"),this.setAttribute("tabindex","0"),this.addEventListener("click",this._handleListItemClick),this.expandable&&this.addEventListener("keydown",this._handleArrowKeyExpand)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleListItemClick),this.removeEventListener("keydown",this._handleArrowKeyExpand)}static get styles(){return $t}};kt([(0,y.property)({type:String,reflect:!0})],e.prototype,"label",void 0),kt([(0,y.property)({type:String,reflect:!0,attribute:"secondary-label"})],e.prototype,"secondaryLabel",void 0),kt([(0,y.property)({type:String,reflect:!0,attribute:"tertiary-label"})],e.prototype,"tertiaryLabel",void 0),kt([(0,y.property)({type:Boolean})],e.prototype,"expandable",void 0),kt([(0,y.property)({type:Boolean,reflect:!0})],e.prototype,"expanded",void 0),kt([(0,y.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0),kt([(0,y.property)({type:String})],e.prototype,"variant",void 0),kt([(0,y.property)({type:String,attribute:"expand-label"})],e.prototype,"expandLabel",void 0),kt([(0,y.query)(".header")],e.prototype,"header",void 0),e=kt([(0,y.customElement)("md-list-item-v2")],e),t.ELEMENT=e}(Tt||(Tt={}));var At,It=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 y.LitElement{constructor(){super(...arguments),this.gap="none",this.orientation="vertical"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","list"),this.addEventListener("keydown",this.handleKeyDown)}render(){return y.html` <slot @click=${this.handleMouseClick}></slot>`}get listItems(){return Array.from(this.assignedNodes).filter(t=>t instanceof Tt.ELEMENT&&!t.disabled)}handleMouseClick(t){const e=this.getCurrentIndex(t.target);this.resetTabIndexAndSetActiveTabIndex(e)}getNewIndexBasedOnKey(t,e,i){switch(t){case Et.Uz.ArrowDown:return(e+1)%i;case Et.Uz.ArrowUp:return(e-1+i)%i;case Et.Uz.Home:return 0;case Et.Uz.End:return i-1;default:return}}handleKeyDown(t){var e;const i=this.getCurrentIndex(t.target),o=this.getNewIndexBasedOnKey(t.key,i,this.listItems.length);void 0!==o&&(null===(e=this.listItems[o])||void 0===e||e.focus(),this.resetTabIndexAndSetActiveTabIndex(o))}getCurrentIndex(t){return this.listItems.findIndex(e=>e===t||e===t.parentElement)}resetTabIndexAndSetActiveTabIndex(t){this.listItems.forEach((e,i)=>{const o=t===i?"0":"-1";e.setAttribute("tabindex",o)})}static get styles(){return $t}};It([(0,y.property)({type:String})],e.prototype,"gap",void 0),It([(0,y.property)({type:String})],e.prototype,"orientation",void 0),It([(0,y.queryAssignedNodes)()],e.prototype,"assignedNodes",void 0),e=It([(0,y.customElement)("md-list-v2")],e),t.ELEMENT=e}(At||(At={}));var Lt=i(68490),Ot=i(66245),Mt=i(69788),Dt=i(61997),Pt=i(11323),Rt=i(84032),_t=i(48171),Bt=i(32252),zt=i(23026),Ft=i(84205),Vt=i(71128),Nt=i(15300),jt=i(58287),Ut=i(81144),qt=i(32217);const Ht=y.css`:host{width:100%;height:100%;display:block;background-color:var(--md-textColor-primary);opacity:.5}:host([variant=circle]){border-radius:50%}:host([variant=rectangular]){border-radius:0}:host([variant=rounded]){border-radius:.5rem}:host([animation=none]){animation:none}:host([animation=pulse]){animation:skeleton-pulse 2s ease-in-out infinite}@keyframes skeleton-pulse{0%{opacity:.5}50%{opacity:.25}100%{opacity:.5}}`;var Wt,Kt=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 y.LitElement{constructor(){super(...arguments),this.variant="rounded",this.animation="pulse"}render(){var t,e;return this.style.width=null!==(t=this.width)&&void 0!==t?t:this.style.width,this.style.height=null!==(e=this.height)&&void 0!==e?e:this.style.height,y.html`<slot></slot>`}static get styles(){return[Ht]}};Kt([(0,y.property)({type:String})],e.prototype,"width",void 0),Kt([(0,y.property)({type:String})],e.prototype,"height",void 0),Kt([(0,y.property)({reflect:!0})],e.prototype,"variant",void 0),Kt([(0,y.property)({reflect:!0})],e.prototype,"animation",void 0),e=Kt([(0,y.customElement)("md-skeleton")],e),t.ELEMENT=e}(Wt||(Wt={}));var Gt=i(25428),Yt=i(12176),Xt=i(77935),Zt=i(40428),Qt=i(16643),Jt=i(97737),te=i(50226),ee=i(86610),ie=i(1072),oe=i(49256),se=i(20331),re=i(81786),ne=i(37719)},40333:t=>{t.exports=o},40428:(t,e,i)=>{i.d(e,{Table:()=>o}),i(61200);var o,s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(17518),d=i(28187),h=i.n(d),p=i(43604),c=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.tabledata="",this.zebra=!1,this.clean=!1,this.sorting=!1,this.nodata="No data Loaded",this.stickheader=!1,this.label="Table",this.noBorders=!1,this.format="default",this.warning=[],this.errors=[],this.sort={columnName:"",sortting:!1},this.csvData=void 0,this.config={quoteChar:'"',escapeChar:'""',header:!1,preview:0,comments:!1,step:void 0,complete:void 0}}connectedCallback(){super.connectedCallback(),this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.requestUpdate("tabledata"),this.linkCellItems()}get rowItem(){return this.rowTable}linkCellItems(){const t=this.rowTable;null==t||t.forEach((t,e)=>{this.warning.forEach(i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach((t,e)=>{e+1===i.col&&(t.classList.add("warning"),t.insertAdjacentHTML("beforeend",'<md-icon name="warning-regular" size="24" iconSet="momentumDesign" color="var(--md-alert-warning-text-color)"></md-icon>'))})}),this.errors.forEach(i=>{e+1===i.row&&t.querySelectorAll('td[role="cell"').forEach((t,e)=>{e+1===i.col&&(t.classList.add("error"),t.insertAdjacentHTML("beforeend",'<md-icon name="clear-bold" size="24" iconSet="momentumDesign" color="var(--md-alert-error-text-color)"></md-icon>'))})})})}sortTab(t,e){const i=t.target,o=Array.from(this.csvData),s=this.headerRow.indexOf(e);e!==this.sort.columnName||!0!==this.sort.sortting?(o.sort(function(t,e){const i=t[s].toLowerCase(),o=e[s].toLowerCase();return i>o?1:i<o?-1:0}),this.sort.sortting=!0,i.classList.remove("sortedZyx"),i.classList.add("sortedAbc")):(o.reverse(),this.sort.sortting=!1,i.classList.remove("sortedAbc"),i.classList.add("sortedZyx")),this.sort.columnName=e,this.csvData=o,this.requestUpdate("csvData")}update(t){super.update(t),t.has("tabledata")&&(this.results=h().parse(this.tabledata,this.config),this.headerRow=this.results.data[0],this.csvData=this.results.data.slice(1,this.results.data.length),this.linkCellItems())}static get styles(){return[r.A,p.A]}get tableClassMap(){return{"md-table--clean":this.clean,"md-table--no-borders":this.noBorders,"md-table--stripped":this.zebra,"md-table--sorting":this.sorting}}getSortTemplate(t){return this.sort.columnName!==t?a.nothing:n.html`
1336
1336
  <md-icon
1337
1337
  name=${this.sort.sortting?"sort-descending-bold":"sort-ascending-bold"}
1338
1338
  iconSet="momentumDesign"
@@ -1685,7 +1685,7 @@
1685
1685
  </div>
1686
1686
  </div>
1687
1687
  `:c.nothing}
1688
- `}};y([(0,p.property)({type:String})],e.prototype,"heading",void 0),y([(0,p.property)({type:String})],e.prototype,"label",void 0),y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),y([(0,p.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),y([(0,p.property)({type:String,attribute:"maximize-icon-aria-label"})],e.prototype,"maximizeIconAriaLabel",void 0),y([(0,p.property)({type:Object})],e.prototype,"minPosition",void 0),y([(0,p.query)(".md-floating")],e.prototype,"container",void 0),y([(0,p.query)(".md-floating__header")],e.prototype,"header",void 0),y([(0,p.internalProperty)()],e.prototype,"dragOccured",void 0),y([(0,p.internalProperty)()],e.prototype,"containerTransform",void 0),e=y([(0,n.w)("md-floating-modal-minimized")],e),t.ELEMENT=e}(o||(o={}))},60046:(t,e,i)=>{i.d(e,{Chip:()=>o}),i(58287),i(83192);var o,s=i(90195),r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(97822),p=i(49618),c=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 a.LitElement{constructor(){super(...arguments),this.color="",this.bgColor="",this.textColor="",this.height="",this.icon="",this.iconColor="",this.iconSize="",this.role="group",this.id="",this.small=!1,this.readonly=!1,this.selected=!1,this.disabled=!1,this.determinateProgress=0,this.indeterminateProgress=!1,this.tooltipText="",this.tooltipPlacement="auto",this.iconSet="momentumUI",this.suppressDefaultMaxWidth=!1,this.decorative=!1,this.shouldTruncateValue=!0,this.value="",this.textOverflow=!1,this.renderedText="",this.MAX_LENGTH=18,this.PRE_TRUNC_CHARS=6,this.POST_TRUNC_CHARS=9,this.DOT_COUNT=3,this.selectionChange=t=>{this.dispatchEvent(new CustomEvent("chip-selected",{composed:!0,bubbles:!0,detail:{selected:t}}))},this.handleClear=t=>{this.dispatchEvent(new CustomEvent("chip-deleted",{composed:!0,bubbles:!0,detail:{id:t}}))},this.handleSelect=()=>{this.disabled||(this.selected=!0,this.selectionChange(!0))},this.handleDeSelect=()=>{this.selected=!1,this.selectionChange(!1)},this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:l.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:l.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:l.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height?a.html`
1688
+ `}};y([(0,p.property)({type:String})],e.prototype,"heading",void 0),y([(0,p.property)({type:String})],e.prototype,"label",void 0),y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"show",void 0),y([(0,p.property)({type:String,attribute:"close-aria-label"})],e.prototype,"closeAriaLabel",void 0),y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"minimize",void 0),y([(0,p.property)({type:String,attribute:"maximize-icon-aria-label"})],e.prototype,"maximizeIconAriaLabel",void 0),y([(0,p.property)({type:Object})],e.prototype,"minPosition",void 0),y([(0,p.query)(".md-floating")],e.prototype,"container",void 0),y([(0,p.query)(".md-floating__header")],e.prototype,"header",void 0),y([(0,p.internalProperty)()],e.prototype,"dragOccured",void 0),y([(0,p.internalProperty)()],e.prototype,"containerTransform",void 0),e=y([(0,n.w)("md-floating-modal-minimized")],e),t.ELEMENT=e}(o||(o={}))},60046:(t,e,i)=>{i.d(e,{Chip:()=>o}),i(58287),i(83192);var o,s=i(90195),r=i(31890),n=i(26272),a=i(41488),l=i(40333),d=i(23968),h=i(97822),p=i(49618),c=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 a.LitElement{constructor(){super(...arguments),this.color="",this.bgColor="",this.textColor="",this.height="",this.icon="",this.iconColor="",this.iconSize="",this.role="group",this.id="",this.small=!1,this.readonly=!1,this.selected=!1,this.disabled=!1,this.determinateProgress=0,this.indeterminateProgress=!1,this.tooltipText="",this.tooltipPlacement="auto",this.iconSet="momentumUI",this.suppressDefaultMaxWidth=!1,this.decorative=!1,this.shouldTruncateValue=!0,this.value="",this.textOverflow=!1,this.renderedText="",this.MAXWIDTH=115,this.selectionChange=t=>{this.dispatchEvent(new CustomEvent("chip-selected",{composed:!0,bubbles:!0,detail:{selected:t}}))},this.handleClear=t=>{this.dispatchEvent(new CustomEvent("chip-deleted",{composed:!0,bubbles:!0,detail:{id:t}}))},this.handleSelect=()=>{this.disabled||(this.selected=!0,this.selectionChange(!0))},this.handleDeSelect=()=>{this.selected=!1,this.selectionChange(!1)},this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:l.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:l.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:l.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height?a.html`
1689
1689
  <style>
1690
1690
  :host .md-chip {
1691
1691
  ${this.renderBgColor()};
@@ -1693,7 +1693,7 @@
1693
1693
  ${this.renderHeight()};
1694
1694
  }
1695
1695
  </style>
1696
- `:l.nothing}connectedCallback(){super.connectedCallback(),this.truncStringPortion(this.value),this.setAttribute("role",this.role)}updated(t){super.updated(t),this.truncStringPortion(this.value)}truncStringPortion(t,e=this.PRE_TRUNC_CHARS,i=this.POST_TRUNC_CHARS,o=this.DOT_COUNT){if(this.value.length>this.MAX_LENGTH&&this.shouldTruncateValue){let s="";s+=t.substring(0,e),s+=".".repeat(o),s+=t.substring(t.length-i,t.length),this.renderedText=s,this.textOverflow=!0}else this.renderedText=this.value}handleClick(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("md-tooltip");null==e||e.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:null==e?void 0:e.placement,reference:null==e?void 0:e.reference,popper:null==e?void 0:e.popper}})),this.dispatchEvent(new CustomEvent("chip-interaction",{composed:!0,bubbles:!0,detail:{id:this.id}}))}handleKeydown(t){switch(t.code){case s.Uz.Space:case s.Uz.Enter:this.handleSelect(),this.handleClick()}}static get styles(){return[n.A,p.A]}loadingTemplate(){return this.determinateProgress||this.indeterminateProgress?this.determinateProgress?a.html`
1696
+ `:l.nothing}connectedCallback(){super.connectedCallback(),this.truncStringPortion(this.value),this.setAttribute("role",this.role)}updated(t){super.updated(t),this.truncStringPortion(this.value)}getTextWidth(t,e=getComputedStyle(this).font){const i=document.createElement("canvas").getContext("2d");return i?(i.font=e,i.measureText(t).width):0}truncStringPortion(t){const e=this.getTextWidth(t);if(console.log("Text width:",e),!this.shouldTruncateValue||e<this.MAXWIDTH)return this.renderedText=t,void(this.textOverflow=!1);const i=Array.from(t);let o=Math.min(4,i.length),s=Math.min(5,Math.max(0,i.length-o-1)),r=i.slice(0,o).join(""),n=i.slice(-s).join(""),a=`${r}…${n}`;if(this.getTextWidth(a)>this.MAXWIDTH)return this.renderedText=a,void(this.textOverflow=!0);for(;o+s<i.length;){let t=!1;if(o+s<i.length){const e=r+i[o],s=`${e}…${n}`;this.getTextWidth(s)<=this.MAXWIDTH&&(r=e,o+=1,a=s,t=!0)}if(o+s<i.length){const e=i[i.length-s-1]+n,o=`${r}…${e}`;this.getTextWidth(o)<=this.MAXWIDTH&&(n=e,s+=1,a=o,t=!0)}if(!t)break}this.renderedText=a,this.textOverflow=!0}handleClick(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("md-tooltip");null==e||e.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:null==e?void 0:e.placement,reference:null==e?void 0:e.reference,popper:null==e?void 0:e.popper}})),this.dispatchEvent(new CustomEvent("chip-interaction",{composed:!0,bubbles:!0,detail:{id:this.id}}))}handleKeydown(t){switch(t.code){case s.Uz.Space:case s.Uz.Enter:this.handleSelect(),this.handleClick()}}static get styles(){return[n.A,p.A]}loadingTemplate(){return this.determinateProgress||this.indeterminateProgress?this.determinateProgress?a.html`
1697
1697
  <md-progress-bar
1698
1698
  class="md-chip--loading"
1699
1699
  type="determinate"
@@ -1736,7 +1736,7 @@
1736
1736
  <slot name="custom-right-content" part="chip-right"> </slot>
1737
1737
  </span>
1738
1738
  </md-tooltip>
1739
- `}};c([(0,a.property)({type:String})],e.prototype,"color",void 0),c([(0,a.property)({type:String})],e.prototype,"bgColor",void 0),c([(0,a.property)({type:String})],e.prototype,"textColor",void 0),c([(0,a.property)({type:String})],e.prototype,"height",void 0),c([(0,a.property)({type:String})],e.prototype,"icon",void 0),c([(0,a.property)({type:String})],e.prototype,"iconColor",void 0),c([(0,a.property)({type:String})],e.prototype,"iconSize",void 0),c([(0,a.property)({type:String})],e.prototype,"role",void 0),c([(0,a.property)({type:String,reflect:!0})],e.prototype,"id",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"small",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"readonly",void 0),c([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,a.property)({type:Number})],e.prototype,"determinateProgress",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"indeterminateProgress",void 0),c([(0,a.property)({type:String})],e.prototype,"tooltipText",void 0),c([(0,a.property)({type:String})],e.prototype,"tooltipPlacement",void 0),c([(0,a.property)({type:String})],e.prototype,"iconSet",void 0),c([(0,a.property)({type:Boolean,attribute:"suppress-default-max-width"})],e.prototype,"suppressDefaultMaxWidth",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"decorative",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"shouldTruncateValue",void 0),c([(0,a.property)({type:String,hasChanged:(t,e)=>t!==e})],e.prototype,"value",void 0),c([(0,a.internalProperty)({hasChanged:(t,e)=>t!==e})],e.prototype,"textOverflow",void 0),c([(0,a.internalProperty)()],e.prototype,"renderedText",void 0),e=c([(0,r.w)("md-chip")],e),t.ELEMENT=e}(o||(o={}))},60554:t=>{t.exports=n},61200:(t,e,i)=>{i.d(e,{Icon:()=>o}),i(96798);var o,s=i(31890),r=i(26272),n=i(32022),a=i.n(n),l=i(60554),d=i.n(l),h=i(41488),p=i(40333),c=i(23968),u=i(97822),m=i(8229),y=i(57955),v=i(66873),b=i(81786),g=i(9223),f=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){var e;let i=e=class extends h.LitElement{constructor(){super(...arguments),this.color="",this.description="",this.name="",this.id="",this.size="",this.title="",this.ariaHidden=null,this.type="",this.isActive=!1,this.isComboBoxIcon=!1,this.sizeOverrided=!1,this.iconSet="momentumUI",this.svgIcon=null,this._ariaLabel="",this.consoleHandler=(t,e)=>{switch(t){case"color-warn":console.warn(`[@momentum-ui/web-component] Icon: ${e} may not exist in the design system, please use a color name from https://momentum.design/styles/color/style`);break;case"name-error":console.warn(`[@momentum-ui/web-component] Icon: Icon ${e} does not exist in the design system. Visit https://momentum.design/icons for a list of available icons or to request a new icon.`)}}}isSvgAlreadyLoaded(t){var e,i;return!!this.svgIcon&&(null===(i=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"))||void 0===i?void 0:i.includes(t))}loadSvgIcon(t){return e=this,i=void 0,s=function*(){var e,i;if(this.isSvgAlreadyLoaded(t))return;const o="momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet?yield(0,g.Jp)(this.computedSvgPath,t,"svg"):yield(0,g.D6)(t);o&&(this.svgIcon=o,null===(e=this.svgIcon)||void 0===e||e.setAttribute("class",`icon ${t}`),null===(i=this.svgIcon)||void 0===i||i.setAttribute("part","icon"),this.setSvgIconAttributes(),this.requestUpdate())},new((o=void 0)||(o=Promise))(function(t,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o(function(t){t(i)})).then(n,a)}l((s=s.apply(e,i||[])).next())});var e,i,o,s}setSvgIconAttributes(){this.svgIcon&&(this.iconFontSize&&this.svgIcon.setAttribute("width",`${this.iconFontSize}px`),this.iconFontSize&&this.svgIcon.setAttribute("height",`${this.iconFontSize}px`),this.color?this.svgIcon.setAttribute("fill",this.iconColor):this.svgIcon.setAttribute("fill","currentColor"))}get computedSvgPath(){return this.svgUrl?this.svgUrl:b.O.svgIconUrl}getIsMomentumDesignName(t){return t.endsWith("-filled")||t.endsWith("-light")||t.endsWith("-regular")||t.endsWith("-bold")}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet)return this.name;if("preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name))return this.name;const t=this.momentumUIIconLookupName,i=e.designLookup.get(t);return null!=i?i:t}updated(t){if(super.updated(t),this.doesIconSetSupportSVG)if(t.has("name")||t.has("iconSet")){const t=this.svgIconName;t&&"Unknown"!==t&&this.loadSvgIcon(t)}else(t.has("iconFontSize")||t.has("color"))&&this.setSvgIconAttributes()}get ariaLabel(){return this._ariaLabel?this._ariaLabel:this.title&&this.description?`${this.title} ${this.description}`:this.title?this.title:this.description?this.description:"icon"}set ariaLabel(t){const e=this._ariaLabel;this._ariaLabel=t,this.requestUpdate("ariaLabel",e)}get buttonClassMap(){return{[`md-button--icon-${this.type}`]:!!this.type}}get iconFontSize(){const t=this.name.split("_")[1];return this.size||t||16}get iconColor(){return this.color.startsWith("#")?(this.consoleHandler("color-warn",this.color),this.color):this.color.startsWith("var(")?this.color:d()(this.color)}get iconClassMap(){return{"md-combobox-input__icon":this.isComboBoxIcon,"md-combobox-input__icon--active":this.isComboBoxIcon&&this.isActive,[`${this.iconName}`]:!!this.iconName}}get momentumUIIconLookupName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t=t.split("_")[0],t}getIconName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t}handleSizeOverride(t){return`${t.split("_")[0]}_${this.iconFontSize}`}get iconName(){const t=this.getIconName();return this.sizeOverrided?this.handleSizeOverride(t):"preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name)?"":a().includes(t)||""===t?`icon-${t}`:this.consoleHandler("name-error",t)}get iconStyleMap(){return Object.assign(Object.assign({},this.iconFontSize&&{"font-size":`${this.iconFontSize}px`}),this.color&&{color:this.iconColor})}static get styles(){return[r.A,v.A]}handleIconClick(t){this.dispatchEvent(new CustomEvent("icon-click",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get doesIconSetSupportSVG(){return"momentumDesign"===this.iconSet||"preferMomentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return h.html`
1739
+ `}};c([(0,a.property)({type:String})],e.prototype,"color",void 0),c([(0,a.property)({type:String})],e.prototype,"bgColor",void 0),c([(0,a.property)({type:String})],e.prototype,"textColor",void 0),c([(0,a.property)({type:String})],e.prototype,"height",void 0),c([(0,a.property)({type:String})],e.prototype,"icon",void 0),c([(0,a.property)({type:String})],e.prototype,"iconColor",void 0),c([(0,a.property)({type:String})],e.prototype,"iconSize",void 0),c([(0,a.property)({type:String})],e.prototype,"role",void 0),c([(0,a.property)({type:String,reflect:!0})],e.prototype,"id",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"small",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"readonly",void 0),c([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,a.property)({type:Number})],e.prototype,"determinateProgress",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"indeterminateProgress",void 0),c([(0,a.property)({type:String})],e.prototype,"tooltipText",void 0),c([(0,a.property)({type:String})],e.prototype,"tooltipPlacement",void 0),c([(0,a.property)({type:String})],e.prototype,"iconSet",void 0),c([(0,a.property)({type:Boolean,attribute:"suppress-default-max-width"})],e.prototype,"suppressDefaultMaxWidth",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"decorative",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"shouldTruncateValue",void 0),c([(0,a.property)({type:String,hasChanged:(t,e)=>t!==e})],e.prototype,"value",void 0),c([(0,a.internalProperty)({hasChanged:(t,e)=>t!==e})],e.prototype,"textOverflow",void 0),c([(0,a.internalProperty)()],e.prototype,"renderedText",void 0),e=c([(0,r.w)("md-chip")],e),t.ELEMENT=e}(o||(o={}))},60554:t=>{t.exports=n},61200:(t,e,i)=>{i.d(e,{Icon:()=>o}),i(96798);var o,s=i(31890),r=i(26272),n=i(32022),a=i.n(n),l=i(60554),d=i.n(l),h=i(41488),p=i(40333),c=i(23968),u=i(97822),m=i(8229),y=i(57955),v=i(66873),b=i(81786),g=i(9223),f=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){var e;let i=e=class extends h.LitElement{constructor(){super(...arguments),this.color="",this.description="",this.name="",this.id="",this.size="",this.title="",this.ariaHidden=null,this.type="",this.isActive=!1,this.isComboBoxIcon=!1,this.sizeOverrided=!1,this.iconSet="momentumUI",this.svgIcon=null,this._ariaLabel="",this.consoleHandler=(t,e)=>{switch(t){case"color-warn":console.warn(`[@momentum-ui/web-component] Icon: ${e} may not exist in the design system, please use a color name from https://momentum.design/styles/color/style`);break;case"name-error":console.warn(`[@momentum-ui/web-component] Icon: Icon ${e} does not exist in the design system. Visit https://momentum.design/icons for a list of available icons or to request a new icon.`);break;case"name-changed":console.warn(`[@momentum-ui/web-component] Icon: The name changed to '${e[0]}' before the SVG icon '${e[1]}' finished loading; skipping outdated result.`)}}}isSvgAlreadyLoaded(t){var e,i;return!!this.svgIcon&&(null===(i=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"))||void 0===i?void 0:i.includes(t))}loadSvgIcon(t){return e=this,i=void 0,s=function*(){var e,i,o,s;if(this.isSvgAlreadyLoaded(t))return;const r=null===(e=this.svgIcon)||void 0===e?void 0:e.getAttribute("class"),n="momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet?yield(0,g.Jp)(this.computedSvgPath,t,"svg"):yield(0,g.D6)(t);if(!n)return;const a=null===(i=this.svgIcon)||void 0===i?void 0:i.getAttribute("class");r===a?(this.svgIcon=n,null===(o=this.svgIcon)||void 0===o||o.setAttribute("class",`icon ${t}`),null===(s=this.svgIcon)||void 0===s||s.setAttribute("part","icon"),this.setSvgIconAttributes(),this.requestUpdate()):this.consoleHandler("name-changed",[null!=a?a:"",t])},new((o=void 0)||(o=Promise))(function(t,r){function n(t){try{l(s.next(t))}catch(t){r(t)}}function a(t){try{l(s.throw(t))}catch(t){r(t)}}function l(e){var i;e.done?t(e.value):(i=e.value,i instanceof o?i:new o(function(t){t(i)})).then(n,a)}l((s=s.apply(e,i||[])).next())});var e,i,o,s}setSvgIconAttributes(){this.svgIcon&&(this.iconFontSize&&this.svgIcon.setAttribute("width",`${this.iconFontSize}px`),this.iconFontSize&&this.svgIcon.setAttribute("height",`${this.iconFontSize}px`),this.color?this.svgIcon.setAttribute("fill",this.iconColor):this.svgIcon.setAttribute("fill","currentColor"))}get computedSvgPath(){return this.svgUrl?this.svgUrl:b.O.svgIconUrl}getIsMomentumDesignName(t){return t.endsWith("-filled")||t.endsWith("-light")||t.endsWith("-regular")||t.endsWith("-bold")}get svgIconName(){if("momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet)return this.name;if("preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name))return this.name;const t=this.momentumUIIconLookupName,i=e.designLookup.get(t);return null!=i?i:t}updated(t){if(super.updated(t),this.doesIconSetSupportSVG)if(t.has("name")||t.has("iconSet")){const t=this.svgIconName;t&&"Unknown"!==t&&this.loadSvgIcon(t)}else(t.has("iconFontSize")||t.has("color"))&&this.setSvgIconAttributes()}get ariaLabel(){return this._ariaLabel?this._ariaLabel:this.title&&this.description?`${this.title} ${this.description}`:this.title?this.title:this.description?this.description:"icon"}set ariaLabel(t){const e=this._ariaLabel;this._ariaLabel=t,this.requestUpdate("ariaLabel",e)}get buttonClassMap(){return{[`md-button--icon-${this.type}`]:!!this.type}}get iconFontSize(){const t=this.name.split("_")[1];return this.size||t||16}get iconColor(){return this.color.startsWith("#")?(this.consoleHandler("color-warn",this.color),this.color):this.color.startsWith("var(")?this.color:d()(this.color)}get iconClassMap(){return{"md-combobox-input__icon":this.isComboBoxIcon,"md-combobox-input__icon--active":this.isComboBoxIcon&&this.isActive,[`${this.iconName}`]:!!this.iconName}}get momentumUIIconLookupName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t=t.split("_")[0],t}getIconName(){let t=this.name;return t=t.startsWith("icon-")?t.substring(5):t,t}handleSizeOverride(t){return`${t.split("_")[0]}_${this.iconFontSize}`}get iconName(){const t=this.getIconName();return this.sizeOverrided?this.handleSizeOverride(t):"preferMomentumDesign"===this.iconSet&&this.getIsMomentumDesignName(this.name)?"":a().includes(t)||""===t?`icon-${t}`:this.consoleHandler("name-error",t)}get iconStyleMap(){return Object.assign(Object.assign({},this.iconFontSize&&{"font-size":`${this.iconFontSize}px`}),this.color&&{color:this.iconColor})}static get styles(){return[r.A,v.A]}handleIconClick(t){this.dispatchEvent(new CustomEvent("icon-click",{bubbles:!0,composed:!0,detail:{srcEvent:t}}))}get doesIconSetSupportSVG(){return"momentumDesign"===this.iconSet||"preferMomentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}get isSVGRender(){return this.svgIcon&&"preferMomentumDesign"===this.iconSet||"momentumDesign"===this.iconSet||"momentumBrandVisuals"===this.iconSet||"svg"===this.iconSet}render(){return this.isSVGRender?this.renderSVGIcon():this.renderFontIcon()}renderFontIcon(){var t;return h.html`
1740
1740
  <i
1741
1741
  part="icon"
1742
1742
  id=${this.id}
@@ -40,11 +40,9 @@ export declare namespace Chip {
40
40
  private renderedText;
41
41
  connectedCallback(): void;
42
42
  updated(changedProperties: PropertyValues): void;
43
- MAX_LENGTH: number;
44
- PRE_TRUNC_CHARS: number;
45
- POST_TRUNC_CHARS: number;
46
- DOT_COUNT: number;
47
- truncStringPortion(str: string, firstCharCount?: number, endCharCount?: number, dotCount?: number): void;
43
+ getTextWidth(text: string, font?: string): number;
44
+ MAXWIDTH: number;
45
+ truncStringPortion(text: string): void;
48
46
  protected selectionChange: (newState: boolean) => void;
49
47
  handleClear: (chipId: string) => void;
50
48
  handleSelect: () => void;
@@ -83,7 +83,7 @@ export declare namespace Grabber {
83
83
  };
84
84
  private get grabberContainerClassMap();
85
85
  private get isRtl();
86
- get iconName(): "arrow-up-bold" | "arrow-down-bold" | "list-menu-bold" | "arrow-right-bold" | "arrow-left-bold";
86
+ get iconName(): "arrow-up-bold" | "arrow-down-bold" | "arrow-left-bold" | "arrow-right-bold" | "list-menu-bold";
87
87
  get iconSize(): "10" | "12";
88
88
  render(): import("lit-element").TemplateResult;
89
89
  }
@@ -163,7 +163,7 @@ export declare namespace Icon {
163
163
  get buttonClassMap(): {
164
164
  [x: string]: boolean;
165
165
  };
166
- consoleHandler: (message: string, data: string) => void;
166
+ consoleHandler: (message: string, data: string | string[]) => void;
167
167
  get iconFontSize(): string | 16;
168
168
  get iconColor(): any;
169
169
  get iconClassMap(): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momentum-ui/web-components",
3
- "version": "2.26.21",
3
+ "version": "2.26.24",
4
4
  "author": "Yana Harris",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/momentum-design/momentum-ui.git",