@momentum-ui/web-components 2.23.31 → 2.23.32

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/6273.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[6273],{38654:(t,e,i)=>{i.d(e,{DatePicker:()=>a}),i(63208),i(96408),i(11323);var a,o=i(90195),s=i(37719),r=i(31890),l=i(81625),n=i(66677),d=i(74548),p=i(41488),h=i(97822),c=i(65796),u=i(14974),m=function(t,e,i,a){var o,s=arguments.length,r=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(s<3?o(r):s>3?o(e,i,r):o(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.weekStartDays=["Sunday","Monday"];let e=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.required=!1,this.errorMessage="",this.customTrigger=!1,this.isMenuOverlayOpen=!1,this.newMomentum=void 0,this.compactInput=void 0,this.controlButtons=void 0,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.selectedDate=(0,l.tB)(),this.focusedDate=(0,l.tB)(),this.filterDate=void 0,this.maxDateData=void 0,this.minDateData=void 0,this.handleDateInputChange=t=>{var e,i;this.useISOFormat?this.value=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.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:t,value:this.value}}))},this.setOpen=t=>{this.menuOverlay.isOpen=t,this.isMenuOverlayOpen=t},this.setPreSelection=t=>{const e={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};(0,l.t_)(t,e)||(this.focusedDate=t)},this.handleInputKeyDown=t=>{t.code===o.Uz.ArrowDown&&this.setOpen(!0)},this.handleKeyDown=t=>{const e=t.detail.sourceEvent;let i=!1;const a=this.focusedDate;switch(!e.shiftKey&&e.code){case"Space":case"Enter":this.handleSelect(t),i=!0;break;case"Escape":this.setOpen(!1);break;case"ArrowUp":this.setPreSelection((0,l.WB)(a,1)),i=!0;break;case"ArrowLeft":this.setPreSelection((0,l.gg)(a,1)),i=!0;break;case"ArrowRight":this.setPreSelection((0,l.fi)(a,1)),i=!0;break;case"ArrowDown":this.setPreSelection((0,l.J4)(a,1)),i=!0}i&&(e.stopPropagation(),e.preventDefault())},this.getDefaultAriaLabel=()=>this.selectedDate&&this.selectedDate.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:s.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))}firstUpdated(t){super.firstUpdated(t),!this.value&&this.showDefaultNowDate&&(this.value=this.getFormattedDate(this.selectedDate))}updated(t){if(super.updated(t),this.value&&t.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)}t.has("locale")&&this.render(),this.minDate&&t.has("minDate")&&(this.minDateData=(0,l.mA)(this.minDate)),this.maxDate&&t.has("maxDate")&&(this.maxDateData=(0,l.mA)(this.maxDate))}handleSelect(t){var e;const i=t.detail.date,a=t.detail.sourceEvent;this.setPreSelection(i),this.dispatchEvent(new CustomEvent("date-pre-selection-change",{bubbles:!0,composed:!0,detail:{sourceEvent:a,data:i}})),(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)&&"apply-button-clicked"!==(null==a?void 0:a.type)||(this.setSelected(i,a),this.shouldCloseOnSelect&&this.setOpen(!1))}getISODateTime(t){return this.includesTime?t.startOf("second").toISO({suppressMilliseconds:!0}):t.toISODate()}setSelected(t,e){const i={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};if(!(0,l.t_)(t,i)){const e=this.getISODateTime(t);this.selectedDate=t,this.useISOFormat?this.value=e:this.value=t.toLocaleString(c.DateTime.DATE_SHORT,{locale:this.locale})}this.dispatchEvent(new CustomEvent("date-selection-change",{bubbles:!0,composed:!0,detail:{sourceEvent:e,data:t}}))}validateDateString(t){if(!t&&""!==t)return!0;if(this.useISOFormat){const e=RegExp(this.getValidRegexString()),i={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};return!!t&&e.test(t)&&!(0,l.t_)((0,l.mA)(t),i)}const e=(0,l.gq)(this.locale);return c.DateTime.fromFormat(t,e,{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 t,e,i,a,o,s;return this.controlButtons?p.html`
1
+ "use strict";(self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[]).push([[6273],{38654:(t,e,i)=>{i.d(e,{DatePicker:()=>a}),i(63208),i(96408),i(11323);var a,o=i(90195),s=i(37719),r=i(31890),l=i(81625),n=i(66677),d=i(74548),p=i(41488),h=i(97822),c=i(65796),u=i(14974),m=function(t,e,i,a){var o,s=arguments.length,r=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(r=(s<3?o(r):s>3?o(e,i,r):o(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.weekStartDays=["Sunday","Monday"];let e=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.required=!1,this.errorMessage="",this.customTrigger=!1,this.isMenuOverlayOpen=!1,this.newMomentum=void 0,this.compactInput=void 0,this.controlButtons=void 0,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.selectedDate=(0,l.tB)(),this.focusedDate=(0,l.tB)(),this.filterDate=void 0,this.maxDateData=void 0,this.minDateData=void 0,this.handleDateInputChange=t=>{var e,i;this.useISOFormat?this.value=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.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:t,value:this.value}}))},this.setOpen=t=>{this.menuOverlay.isOpen=t,this.isMenuOverlayOpen=t},this.setPreSelection=t=>{const e={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};(0,l.t_)(t,e)||(this.focusedDate=t)},this.handleInputKeyDown=t=>{t.code===o.Uz.ArrowDown&&this.setOpen(!0)},this.handleKeyDown=t=>{const e=t.detail.sourceEvent;let i=!1;const a=this.focusedDate;switch(!e.shiftKey&&e.code){case"Space":case"Enter":this.handleSelect(t),i=!0;break;case"Escape":this.setOpen(!1);break;case"ArrowUp":this.setPreSelection((0,l.WB)(a,1)),i=!0;break;case"ArrowLeft":this.setPreSelection((0,l.gg)(a,1)),i=!0;break;case"ArrowRight":this.setPreSelection((0,l.fi)(a,1)),i=!0;break;case"ArrowDown":this.setPreSelection((0,l.J4)(a,1)),i=!0}i&&(e.stopPropagation(),e.preventDefault())},this.getDefaultAriaLabel=()=>{var t;return(null===(t=this.selectedDate)||void 0===t?void 0:t.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:s.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))}firstUpdated(t){super.firstUpdated(t),!this.value&&this.showDefaultNowDate&&(this.value=this.getFormattedDate(this.selectedDate))}updated(t){if(super.updated(t),this.value&&t.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)}t.has("locale")&&this.render(),this.minDate&&t.has("minDate")&&(this.minDateData=(0,l.mA)(this.minDate)),this.maxDate&&t.has("maxDate")&&(this.maxDateData=(0,l.mA)(this.maxDate))}handleSelect(t){var e;const i=t.detail.date,a=t.detail.sourceEvent;this.setPreSelection(i),this.dispatchEvent(new CustomEvent("date-pre-selection-change",{bubbles:!0,composed:!0,detail:{sourceEvent:a,data:i}})),(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)&&"apply-button-clicked"!==(null==a?void 0:a.type)||(this.setSelected(i,a),this.shouldCloseOnSelect&&this.setOpen(!1))}getISODateTime(t){return this.includesTime?t.startOf("second").toISO({suppressMilliseconds:!0}):t.toISODate()}setSelected(t,e){const i={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};if(!(0,l.t_)(t,i)){const e=this.getISODateTime(t);this.selectedDate=t,this.useISOFormat?this.value=e:this.value=t.toLocaleString(c.DateTime.DATE_SHORT,{locale:this.locale})}this.dispatchEvent(new CustomEvent("date-selection-change",{bubbles:!0,composed:!0,detail:{sourceEvent:e,data:t}}))}validateDateString(t){if(!t&&""!==t)return!0;if(this.useISOFormat){const e=RegExp(this.getValidRegexString()),i={maxDate:this.maxDateData,minDate:this.minDateData,filterDate:this.filterDate};return!!t&&e.test(t)&&!(0,l.t_)((0,l.mA)(t),i)}const e=(0,l.gq)(this.locale);return c.DateTime.fromFormat(t,e,{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 t,e,i,a,o,s;return this.controlButtons?p.html`
2
2
  <div class="control-buttons">
3
3
  ${this.controlButtons.cancel?p.html`
4
4
  <md-button
@@ -1,4 +1,4 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/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"),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("luxon"));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","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","luxon"],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("@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("luxon")):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["@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.luxon);for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(self,(e,t,i,o,r,l,a,s,p,d,n,u,m,c,h,v)=>(()=>{"use strict";var f,y={4863:e=>{e.exports=h},8229:e=>{e.exports=i},17518:e=>{e.exports=p},22818:e=>{e.exports=d},22962:e=>{e.exports=n},23968:e=>{e.exports=t},32022:e=>{e.exports=l},40333:e=>{e.exports=o},41488:t=>{t.exports=e},60554:e=>{e.exports=a},65796:e=>{e.exports=v},68250:e=>{e.exports=m},69371:e=>{e.exports=c},84157:e=>{e.exports=u},85314:e=>{e.exports=s},85416:(e,t,i)=>{i.r(t),i.d(t,{DateTimePicker:()=>o}),i(96408),i(11323);var o,r=i(31890),l=i(81625),a=i(26272),s=i(41488),p=i(97822),d=i(65796),n=i(90195),u=i(33663),m=function(e,t,i,o){var r,l=arguments.length,a=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(l<3?r(a):l>3?r(t,i,a):r(t,i))||a);return l>3&&a&&Object.defineProperty(t,i,a),a};!function(e){e.weekStartDays=["Sunday","Monday"];let t=class extends s.LitElement{constructor(){super(...arguments),this.maxDate=void 0,this.minDate=void 0,this.weekStart="Sunday",this.ariaLabel="",this.twoDigitAutoTab=!1,this.shouldCloseOnSelect=!1,this.twentyFourHourFormat=!1,this.timeSpecificity=n.R5.SECOND,this.dateValue=void 0,this.timeValue="00:00:00-08:00",this.value=void 0,this.disableDateValidation=!1,this.locale=void 0,this.useISOFormat=!0,this.disabled=!1,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.controlButtons=void 0,this.fullDateTime=void 0,this.selectedTimeObject=void 0,this.selectedDateObject=(0,l.tB)(),this.firstCycle=!0,this.handleDateChange=e=>{var t,i;this.selectedDateObject=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.data,this.dateValue=null===(i=this.selectedDateObject)||void 0===i?void 0:i.toISODate(),this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleTimeChange=e=>{var t,i,o;this.selectedTimeObject=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.data,this.timeValue=null===(i=this.selectedTimeObject)||void 0===i?void 0:i.startOf("second").toISOTime({suppressMilliseconds:!0}),(null===(o=this.controlButtons)||void 0===o?void 0:o.apply)||this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleDateTimeInputChange=e=>{var t;this.value=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.value},this.parseValueForVisuals=e=>{e&&(this.dateValue=e.split("T")[0],this.timeValue=e.split("T")[1])},this.updateDateTimeObject=()=>{this.value?this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}):this.fullDateTime=d.DateTime.fromISO("",{locale:this.locale}),this.dispatchEvent(new CustomEvent("date-time-change",{bubbles:!0,composed:!0,detail:{dateTimeString:this.value,dateTime:this.fullDateTime,locale:this.locale,twentyFourHourFormat:this.twentyFourHourFormat}}))},this.combineDateAndTimeValues=(e,t)=>{e&&(this.value=t?`${e}T${t}`:e)}}firstUpdated(e){var t;if(super.firstUpdated(e),!this.value){const e=null===(t=this.selectedDateObject)||void 0===t?void 0:t.toISODate();this.combineDateAndTimeValues(e,this.timeValue)}}updated(e){var t;super.updated(e),e.has("value")&&(this.value&&this.parseValueForVisuals(this.value),this.firstCycle?this.firstCycle=!1:this.updateDateTimeObject()),this.dateValue&&this.timeValue&&!(null===(t=this.controlButtons)||void 0===t?void 0:t.apply)&&(e.has("timeValue")||e.has("dateValue"))&&this.combineDateAndTimeValues(this.dateValue,this.timeValue),this.value&&e.has("locale")&&(this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}))}static get styles(){return[a.A,u.A]}render(){var e;return s.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("@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("luxon"));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","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","luxon"],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("@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("luxon")):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["@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.luxon);for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(self,(e,t,i,o,r,a,l,s,p,d,n,u,m,c,h,v)=>(()=>{"use strict";var f,y={4863:e=>{e.exports=h},8229:e=>{e.exports=i},17518:e=>{e.exports=p},22818:e=>{e.exports=d},22962:e=>{e.exports=n},23968:e=>{e.exports=t},32022:e=>{e.exports=a},40333:e=>{e.exports=o},41488:t=>{t.exports=e},60554:e=>{e.exports=l},65796:e=>{e.exports=v},68250:e=>{e.exports=m},69371:e=>{e.exports=c},84157:e=>{e.exports=u},85314:e=>{e.exports=s},85416:(e,t,i)=>{i.r(t),i.d(t,{DateTimePicker:()=>o}),i(96408),i(11323);var o,r=i(31890),a=i(81625),l=i(26272),s=i(41488),p=i(97822),d=i(65796),n=i(90195),u=i(33663),m=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};!function(e){e.weekStartDays=["Sunday","Monday"];let t=class extends s.LitElement{constructor(){super(...arguments),this.maxDate=void 0,this.minDate=void 0,this.weekStart="Sunday",this.ariaLabel="",this.twoDigitAutoTab=!1,this.shouldCloseOnSelect=!1,this.twentyFourHourFormat=!1,this.timeSpecificity=n.R5.SECOND,this.dateValue=void 0,this.timeValue="00:00:00-08:00",this.value=void 0,this.disableDateValidation=!1,this.locale=void 0,this.placeholder=void 0,this.useISOFormat=!0,this.disabled=!1,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.compactInput=void 0,this.controlButtons=void 0,this.fullDateTime=void 0,this.selectedTimeObject=void 0,this.selectedDateObject=(0,a.tB)(),this.handleDateChange=e=>{var t,i;this.selectedDateObject=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.data,this.dateValue=null===(i=this.selectedDateObject)||void 0===i?void 0:i.toISODate(),this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleTimeChange=e=>{var t,i,o;this.selectedTimeObject=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.data,this.timeValue=null===(i=this.selectedTimeObject)||void 0===i?void 0:i.startOf("second").toISOTime({suppressMilliseconds:!0}),(null===(o=this.controlButtons)||void 0===o?void 0:o.apply)||this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleDateTimeInputChange=e=>{var t;this.value=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.value},this.parseValueForVisuals=e=>{e&&(this.dateValue=e.split("T")[0],this.timeValue=e.split("T")[1])},this.updateDateTimeObject=()=>{this.value?this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}):this.fullDateTime=d.DateTime.fromISO("",{locale:this.locale}),this.dispatchEvent(new CustomEvent("date-time-change",{bubbles:!0,composed:!0,detail:{dateTimeString:this.value,dateTime:this.fullDateTime,locale:this.locale,twentyFourHourFormat:this.twentyFourHourFormat}}))},this.combineDateAndTimeValues=(e,t)=>{e&&(this.value=t?`${e}T${t}`:e)}}firstUpdated(e){var t;if(super.firstUpdated(e),!this.value&&this.showDefaultNowDate){const e=null===(t=this.selectedDateObject)||void 0===t?void 0:t.toISODate();this.combineDateAndTimeValues(e,this.timeValue)}}updated(e){var t;super.updated(e),e.has("value")&&(this.value&&this.parseValueForVisuals(this.value),this.updateDateTimeObject()),this.dateValue&&this.timeValue&&!(null===(t=this.controlButtons)||void 0===t?void 0:t.apply)&&(e.has("dateValue")||e.has("timeValue"))&&this.combineDateAndTimeValues(this.dateValue,this.timeValue),this.value&&e.has("locale")&&(this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}))}get placeholderValue(){return this.placeholder?this.placeholder:"YYYY-MM-DDTHH:MM:SS-HH:MM"}static get styles(){return[l.A,u.A]}render(){var e;return s.html`
2
2
  <md-datepicker
3
3
  includes-time
4
4
  ?disabled=${this.disabled}
@@ -10,13 +10,15 @@
10
10
  .useISOFormat=${this.useISOFormat}
11
11
  .showDefaultNowDate=${this.showDefaultNowDate}
12
12
  weekStart=${this.weekStart}
13
- placeholder="YYYY-MM-DDTHH:MM:SS-HH:MM"
13
+ placeholder=${this.placeholderValue}
14
14
  locale=${(0,p.ifDefined)(this.locale)}
15
15
  .controlButtons=${this.controlButtons}
16
16
  .shouldCloseOnSelect=${this.shouldCloseOnSelect}
17
17
  @date-selection-change=${this.handleDateChange}
18
18
  @date-input-change=${this.handleDateTimeInputChange}
19
- .validateDate=${!this.disableDateValidation}>
19
+ .validateDate=${!this.disableDateValidation}
20
+ ?compact-input=${this.compactInput}
21
+ >
20
22
  <div slot="time-picker" class="included-timepicker-wrapper">
21
23
  <div class="time-picker-separator"></div>
22
24
  <md-timepicker
@@ -30,4 +32,4 @@
30
32
  </div>
31
33
  </md-datepicker>
32
34
  </div>
33
- `}};m([(0,s.property)({type:String})],t.prototype,"maxDate",void 0),m([(0,s.property)({type:String})],t.prototype,"minDate",void 0),m([(0,s.property)({type:String})],t.prototype,"weekStart",void 0),m([(0,s.property)({type:String})],t.prototype,"ariaLabel",void 0),m([(0,s.property)({type:Boolean,attribute:"two-digit-auto-tab"})],t.prototype,"twoDigitAutoTab",void 0),m([(0,s.property)({type:Boolean,attribute:"should-close-on-select"})],t.prototype,"shouldCloseOnSelect",void 0),m([(0,s.property)({type:Boolean,attribute:"twenty-four-hour-format"})],t.prototype,"twentyFourHourFormat",void 0),m([(0,s.property)({type:String})],t.prototype,"timeSpecificity",void 0),m([(0,s.property)({type:String,attribute:"date-value"})],t.prototype,"dateValue",void 0),m([(0,s.property)({type:String,attribute:"time-value"})],t.prototype,"timeValue",void 0),m([(0,s.property)({type:String,reflect:!0})],t.prototype,"value",void 0),m([(0,s.property)({type:Boolean,attribute:"disable-date-validation"})],t.prototype,"disableDateValidation",void 0),m([(0,s.property)({type:String})],t.prototype,"locale",void 0),m([(0,s.property)({type:Boolean})],t.prototype,"useISOFormat",void 0),m([(0,s.property)({type:Boolean})],t.prototype,"disabled",void 0),m([(0,s.property)({type:String,attribute:"positioning-strategy"})],t.prototype,"positioningStrategy",void 0),m([(0,s.property)({type:Boolean,attribute:"show-default-now-date"})],t.prototype,"showDefaultNowDate",void 0),m([(0,s.property)({type:Object,attribute:!1})],t.prototype,"controlButtons",void 0),m([(0,s.internalProperty)()],t.prototype,"fullDateTime",void 0),m([(0,s.internalProperty)()],t.prototype,"selectedTimeObject",void 0),m([(0,s.internalProperty)()],t.prototype,"selectedDateObject",void 0),m([(0,s.query)("md-datepicker")],t.prototype,"datePicker",void 0),m([(0,s.query)("md-timepicker")],t.prototype,"timePicker",void 0),t=m([(0,r.w)("md-date-time-picker")],t),e.ELEMENT=t}(o||(o={}))},90195:(e,t,i)=>{var o,r,l,a;i.d(t,{R5:()=>r,Uz:()=>o}),function(e){e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.Backspace="Backspace",e.Delete="Delete",e.End="End",e.Enter="Enter",e.Escape="Escape",e.Home="Home",e.Space="Space",e.Tab="Tab",e.Digit1="Digit1",e.Digit2="Digit2",e.Digit3="Digit3",e.Digit4="Digit4",e.Digit5="Digit5",e.Digit6="Digit6",e.Digit7="Digit7",e.Digit8="Digit8",e.Digit9="Digit9",e.NumpadEnter="NumpadEnter"}(o||(o={})),function(e){e.HOUR="hour",e.MINUTE="minute",e.SECOND="second",e.AM_PM="am_pm"}(r||(r={})),function(e){e.GRAMMAR="grammar",e.FALSE="false",e.SPELLING="spelling",e.TRUE="true"}(l||(l={})),function(e){e.AriaActivedescendant="aria-activedescendant"}(a||(a={}))},97822:e=>{e.exports=r}},b={};function D(e){var t=b[e];if(void 0!==t)return t.exports;var i=b[e]={exports:{}};return y[e](i,i.exports,D),i.exports}D.m=y,f=[],D.O=(e,t,i,o)=>{if(!t){var r=1/0;for(p=0;p<f.length;p++){for(var[t,i,o]=f[p],l=!0,a=0;a<t.length;a++)(!1&o||r>=o)&&Object.keys(D.O).every(e=>D.O[e](t[a]))?t.splice(a--,1):(l=!1,o<r&&(r=o));if(l){f.splice(p--,1);var s=i();void 0!==s&&(e=s)}}return e}o=o||0;for(var p=f.length;p>0&&f[p-1][2]>o;p--)f[p]=f[p-1];f[p]=[t,i,o]},D.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return D.d(t,{a:t}),t},D.d=(e,t)=>{for(var i in t)D.o(t,i)&&!D.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},D.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),D.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={195:0,671:0,2576:0,2781:0,5433:0};D.O.j=t=>0===e[t];var t=(t,i)=>{var o,r,[l,a,s]=i,p=0;if(l.some(t=>0!==e[t])){for(o in a)D.o(a,o)&&(D.m[o]=a[o]);if(s)var d=s(D)}for(t&&t(i);p<l.length;p++)r=l[p],D.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return D.O(d)},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 g=D.O(void 0,[6860,1890,6272,6325,6283,9217,2176,6798,5830,1200,8210,4977,1270,3135,1598,109,1572,6677,6366,6396,1323,6408,4006,3663],()=>D(85416));return D.O(g)})());
35
+ `}};m([(0,s.property)({type:String})],t.prototype,"maxDate",void 0),m([(0,s.property)({type:String})],t.prototype,"minDate",void 0),m([(0,s.property)({type:String})],t.prototype,"weekStart",void 0),m([(0,s.property)({type:String})],t.prototype,"ariaLabel",void 0),m([(0,s.property)({type:Boolean,attribute:"two-digit-auto-tab"})],t.prototype,"twoDigitAutoTab",void 0),m([(0,s.property)({type:Boolean,attribute:"should-close-on-select"})],t.prototype,"shouldCloseOnSelect",void 0),m([(0,s.property)({type:Boolean,attribute:"twenty-four-hour-format"})],t.prototype,"twentyFourHourFormat",void 0),m([(0,s.property)({type:String})],t.prototype,"timeSpecificity",void 0),m([(0,s.property)({type:String,attribute:"date-value"})],t.prototype,"dateValue",void 0),m([(0,s.property)({type:String,attribute:"time-value"})],t.prototype,"timeValue",void 0),m([(0,s.property)({type:String,reflect:!0})],t.prototype,"value",void 0),m([(0,s.property)({type:Boolean,attribute:"disable-date-validation"})],t.prototype,"disableDateValidation",void 0),m([(0,s.property)({type:String})],t.prototype,"locale",void 0),m([(0,s.property)({type:String,attribute:"placeholder"})],t.prototype,"placeholder",void 0),m([(0,s.property)({type:Boolean})],t.prototype,"useISOFormat",void 0),m([(0,s.property)({type:Boolean})],t.prototype,"disabled",void 0),m([(0,s.property)({type:String,attribute:"positioning-strategy"})],t.prototype,"positioningStrategy",void 0),m([(0,s.property)({type:Boolean,attribute:"show-default-now-date"})],t.prototype,"showDefaultNowDate",void 0),m([(0,s.property)({type:Boolean,attribute:"compact-input"})],t.prototype,"compactInput",void 0),m([(0,s.property)({type:Object,attribute:!1})],t.prototype,"controlButtons",void 0),m([(0,s.internalProperty)()],t.prototype,"fullDateTime",void 0),m([(0,s.internalProperty)()],t.prototype,"selectedTimeObject",void 0),m([(0,s.internalProperty)()],t.prototype,"selectedDateObject",void 0),m([(0,s.query)("md-datepicker")],t.prototype,"datePicker",void 0),m([(0,s.query)("md-timepicker")],t.prototype,"timePicker",void 0),t=m([(0,r.w)("md-date-time-picker")],t),e.ELEMENT=t}(o||(o={}))},90195:(e,t,i)=>{var o,r,a,l;i.d(t,{R5:()=>r,Uz:()=>o}),function(e){e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.Backspace="Backspace",e.Delete="Delete",e.End="End",e.Enter="Enter",e.Escape="Escape",e.Home="Home",e.Space="Space",e.Tab="Tab",e.Digit1="Digit1",e.Digit2="Digit2",e.Digit3="Digit3",e.Digit4="Digit4",e.Digit5="Digit5",e.Digit6="Digit6",e.Digit7="Digit7",e.Digit8="Digit8",e.Digit9="Digit9",e.NumpadEnter="NumpadEnter"}(o||(o={})),function(e){e.HOUR="hour",e.MINUTE="minute",e.SECOND="second",e.AM_PM="am_pm"}(r||(r={})),function(e){e.GRAMMAR="grammar",e.FALSE="false",e.SPELLING="spelling",e.TRUE="true"}(a||(a={})),function(e){e.AriaActivedescendant="aria-activedescendant"}(l||(l={}))},97822:e=>{e.exports=r}},b={};function D(e){var t=b[e];if(void 0!==t)return t.exports;var i=b[e]={exports:{}};return y[e](i,i.exports,D),i.exports}D.m=y,f=[],D.O=(e,t,i,o)=>{if(!t){var r=1/0;for(p=0;p<f.length;p++){for(var[t,i,o]=f[p],a=!0,l=0;l<t.length;l++)(!1&o||r>=o)&&Object.keys(D.O).every(e=>D.O[e](t[l]))?t.splice(l--,1):(a=!1,o<r&&(r=o));if(a){f.splice(p--,1);var s=i();void 0!==s&&(e=s)}}return e}o=o||0;for(var p=f.length;p>0&&f[p-1][2]>o;p--)f[p]=f[p-1];f[p]=[t,i,o]},D.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return D.d(t,{a:t}),t},D.d=(e,t)=>{for(var i in t)D.o(t,i)&&!D.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},D.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),D.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={195:0,671:0,2576:0,2781:0,5433:0};D.O.j=t=>0===e[t];var t=(t,i)=>{var o,r,[a,l,s]=i,p=0;if(a.some(t=>0!==e[t])){for(o in l)D.o(l,o)&&(D.m[o]=l[o]);if(s)var d=s(D)}for(t&&t(i);p<a.length;p++)r=a[p],D.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return D.O(d)},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 g=D.O(void 0,[6860,1890,6272,6325,6283,9217,2176,6798,5830,1200,8210,4977,1270,3135,1598,109,1572,6677,6366,6396,1323,6408,4006,3663],()=>D(85416));return D.O(g)})());
@@ -1,4 +1,4 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("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"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","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"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("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")):t(e["lit-element"],e["lit-html/directives/style-map"],e["lit-html"],e["lit-html/directives/class-map"],e["lit-html/directives/if-defined"],e.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"]);for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(self,(e,t,i,o,r,a,s,l,n,p,d,c,u,m,h,v)=>(()=>{"use strict";var y,f={4863:e=>{e.exports=v},8229:e=>{e.exports=t},17518:e=>{e.exports=p},22818:e=>{e.exports=d},22962:e=>{e.exports=c},23968:e=>{e.exports=o},32022:e=>{e.exports=s},38654:(e,t,i)=>{i.r(t),i.d(t,{DatePicker:()=>o}),i(63208),i(96408),i(11323);var o,r=i(90195),a=i(37719),s=i(31890),l=i(81625),n=i(66677),p=i(74548),d=i(41488),c=i(97822),u=i(65796),m=i(14974),h=function(e,t,i,o){var r,a=arguments.length,s=a<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--)(r=e[l])&&(s=(a<3?r(s):a>3?r(t,i,s):r(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.required=!1,this.errorMessage="",this.customTrigger=!1,this.isMenuOverlayOpen=!1,this.newMomentum=void 0,this.compactInput=void 0,this.controlButtons=void 0,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.selectedDate=(0,l.tB)(),this.focusedDate=(0,l.tB)(),this.filterDate=void 0,this.maxDateData=void 0,this.minDateData=void 0,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(u.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=>{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===r.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=()=>this.selectedDate&&this.selectedDate.isValid?`Choose Date, selected date is ${this.selectedDate.toLocaleString(u.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))}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=u.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))}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(u.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 u.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,r,a;return this.controlButtons?d.html`
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("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"));else if("function"==typeof define&&define.amd)define(["lit-element","lit-html/directives/style-map","lit-html","lit-html/directives/class-map","lit-html/directives/if-defined","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"],t);else{var i="object"==typeof exports?t(require("lit-element"),require("lit-html/directives/style-map"),require("lit-html"),require("lit-html/directives/class-map"),require("lit-html/directives/if-defined"),require("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")):t(e["lit-element"],e["lit-html/directives/style-map"],e["lit-html"],e["lit-html/directives/class-map"],e["lit-html/directives/if-defined"],e.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"]);for(var o in i)("object"==typeof exports?exports:e)[o]=i[o]}}(self,(e,t,i,o,r,a,s,l,n,p,d,c,u,m,h,v)=>(()=>{"use strict";var y,f={4863:e=>{e.exports=v},8229:e=>{e.exports=t},17518:e=>{e.exports=p},22818:e=>{e.exports=d},22962:e=>{e.exports=c},23968:e=>{e.exports=o},32022:e=>{e.exports=s},38654:(e,t,i)=>{i.r(t),i.d(t,{DatePicker:()=>o}),i(63208),i(96408),i(11323);var o,r=i(90195),a=i(37719),s=i(31890),l=i(81625),n=i(66677),p=i(74548),d=i(41488),c=i(97822),u=i(65796),m=i(14974),h=function(e,t,i,o){var r,a=arguments.length,s=a<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--)(r=e[l])&&(s=(a<3?r(s):a>3?r(t,i,s):r(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.required=!1,this.errorMessage="",this.customTrigger=!1,this.isMenuOverlayOpen=!1,this.newMomentum=void 0,this.compactInput=void 0,this.controlButtons=void 0,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.selectedDate=(0,l.tB)(),this.focusedDate=(0,l.tB)(),this.filterDate=void 0,this.maxDateData=void 0,this.minDateData=void 0,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(u.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=>{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===r.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(u.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))}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=u.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))}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(u.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 u.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,r,a;return this.controlButtons?d.html`
2
2
  <div class="control-buttons">
3
3
  ${this.controlButtons.cancel?d.html`
4
4
  <md-button
@@ -2403,7 +2403,7 @@
2403
2403
  .messageArr="${!this.isValid||this.showErrorMessage?[{type:"error",id:this.id,ariaLive:"polite",message:this.errorMessage}]:[]}"
2404
2404
  ></md-input>
2405
2405
  </div>
2406
- `}};d([(0,a.property)({type:String,reflect:!0})],e.prototype,"codePlaceholder",void 0),d([(0,a.property)({type:String})],e.prototype,"numberPlaceholder",void 0),d([(0,a.property)({type:String,attribute:"country-calling-code"})],e.prototype,"countryCallingCode",void 0),d([(0,a.property)({type:Boolean,attribute:"show-flags"})],e.prototype,"showFlags",void 0),d([(0,a.property)({type:Boolean})],e.prototype,"pill",void 0),d([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),d([(0,a.property)({type:String})],e.prototype,"value",void 0),d([(0,a.property)({type:String})],e.prototype,"errorMessage",void 0),d([(0,a.property)({type:Boolean})],e.prototype,"showErrorMessage",void 0),d([(0,a.property)({type:String,attribute:"clear-icon-height"})],e.prototype,"clearIconHeight",void 0),d([(0,a.property)({type:String})],e.prototype,"countryCodeAriaLabel",void 0),d([(0,a.property)({type:String})],e.prototype,"dialNumberAriaLabel",void 0),d([(0,a.property)({type:String})],e.prototype,"clearAriaLabel",void 0),d([(0,a.property)({type:String})],e.prototype,"clearCountryCodeAriaLabel",void 0),d([(0,a.property)({type:String})],e.prototype,"id",void 0),d([(0,a.property)({type:Boolean})],e.prototype,"newMomentum",void 0),d([(0,a.internalProperty)()],e.prototype,"countryCode",void 0),d([(0,a.internalProperty)()],e.prototype,"formattedValue",void 0),d([(0,a.internalProperty)()],e.prototype,"isValid",void 0),e=d([(0,o.w)("md-phone-input")],e),t.ELEMENT=e}(s||(s={}))},85314:t=>{t.exports=a},85416:(t,e,i)=>{i.d(e,{DateTimePicker:()=>s}),i(96408),i(11323);var s,o=i(31890),r=i(81625),n=i(26272),a=i(41488),l=i(97822),d=i(65796),h=i(90195),p=i(33663),c=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.weekStartDays=["Sunday","Monday"];let e=class extends a.LitElement{constructor(){super(...arguments),this.maxDate=void 0,this.minDate=void 0,this.weekStart="Sunday",this.ariaLabel="",this.twoDigitAutoTab=!1,this.shouldCloseOnSelect=!1,this.twentyFourHourFormat=!1,this.timeSpecificity=h.R5.SECOND,this.dateValue=void 0,this.timeValue="00:00:00-08:00",this.value=void 0,this.disableDateValidation=!1,this.locale=void 0,this.useISOFormat=!0,this.disabled=!1,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.controlButtons=void 0,this.fullDateTime=void 0,this.selectedTimeObject=void 0,this.selectedDateObject=(0,r.tB)(),this.firstCycle=!0,this.handleDateChange=t=>{var e,i;this.selectedDateObject=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.data,this.dateValue=null===(i=this.selectedDateObject)||void 0===i?void 0:i.toISODate(),this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleTimeChange=t=>{var e,i,s;this.selectedTimeObject=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.data,this.timeValue=null===(i=this.selectedTimeObject)||void 0===i?void 0:i.startOf("second").toISOTime({suppressMilliseconds:!0}),(null===(s=this.controlButtons)||void 0===s?void 0:s.apply)||this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleDateTimeInputChange=t=>{var e;this.value=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.value},this.parseValueForVisuals=t=>{t&&(this.dateValue=t.split("T")[0],this.timeValue=t.split("T")[1])},this.updateDateTimeObject=()=>{this.value?this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}):this.fullDateTime=d.DateTime.fromISO("",{locale:this.locale}),this.dispatchEvent(new CustomEvent("date-time-change",{bubbles:!0,composed:!0,detail:{dateTimeString:this.value,dateTime:this.fullDateTime,locale:this.locale,twentyFourHourFormat:this.twentyFourHourFormat}}))},this.combineDateAndTimeValues=(t,e)=>{t&&(this.value=e?`${t}T${e}`:t)}}firstUpdated(t){var e;if(super.firstUpdated(t),!this.value){const t=null===(e=this.selectedDateObject)||void 0===e?void 0:e.toISODate();this.combineDateAndTimeValues(t,this.timeValue)}}updated(t){var e;super.updated(t),t.has("value")&&(this.value&&this.parseValueForVisuals(this.value),this.firstCycle?this.firstCycle=!1:this.updateDateTimeObject()),this.dateValue&&this.timeValue&&!(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)&&(t.has("timeValue")||t.has("dateValue"))&&this.combineDateAndTimeValues(this.dateValue,this.timeValue),this.value&&t.has("locale")&&(this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}))}static get styles(){return[n.A,p.A]}render(){var t;return a.html`
2406
+ `}};d([(0,a.property)({type:String,reflect:!0})],e.prototype,"codePlaceholder",void 0),d([(0,a.property)({type:String})],e.prototype,"numberPlaceholder",void 0),d([(0,a.property)({type:String,attribute:"country-calling-code"})],e.prototype,"countryCallingCode",void 0),d([(0,a.property)({type:Boolean,attribute:"show-flags"})],e.prototype,"showFlags",void 0),d([(0,a.property)({type:Boolean})],e.prototype,"pill",void 0),d([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),d([(0,a.property)({type:String})],e.prototype,"value",void 0),d([(0,a.property)({type:String})],e.prototype,"errorMessage",void 0),d([(0,a.property)({type:Boolean})],e.prototype,"showErrorMessage",void 0),d([(0,a.property)({type:String,attribute:"clear-icon-height"})],e.prototype,"clearIconHeight",void 0),d([(0,a.property)({type:String})],e.prototype,"countryCodeAriaLabel",void 0),d([(0,a.property)({type:String})],e.prototype,"dialNumberAriaLabel",void 0),d([(0,a.property)({type:String})],e.prototype,"clearAriaLabel",void 0),d([(0,a.property)({type:String})],e.prototype,"clearCountryCodeAriaLabel",void 0),d([(0,a.property)({type:String})],e.prototype,"id",void 0),d([(0,a.property)({type:Boolean})],e.prototype,"newMomentum",void 0),d([(0,a.internalProperty)()],e.prototype,"countryCode",void 0),d([(0,a.internalProperty)()],e.prototype,"formattedValue",void 0),d([(0,a.internalProperty)()],e.prototype,"isValid",void 0),e=d([(0,o.w)("md-phone-input")],e),t.ELEMENT=e}(s||(s={}))},85314:t=>{t.exports=a},85416:(t,e,i)=>{i.d(e,{DateTimePicker:()=>s}),i(96408),i(11323);var s,o=i(31890),r=i(81625),n=i(26272),a=i(41488),l=i(97822),d=i(65796),h=i(90195),p=i(33663),c=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.weekStartDays=["Sunday","Monday"];let e=class extends a.LitElement{constructor(){super(...arguments),this.maxDate=void 0,this.minDate=void 0,this.weekStart="Sunday",this.ariaLabel="",this.twoDigitAutoTab=!1,this.shouldCloseOnSelect=!1,this.twentyFourHourFormat=!1,this.timeSpecificity=h.R5.SECOND,this.dateValue=void 0,this.timeValue="00:00:00-08:00",this.value=void 0,this.disableDateValidation=!1,this.locale=void 0,this.placeholder=void 0,this.useISOFormat=!0,this.disabled=!1,this.positioningStrategy=void 0,this.showDefaultNowDate=!0,this.compactInput=void 0,this.controlButtons=void 0,this.fullDateTime=void 0,this.selectedTimeObject=void 0,this.selectedDateObject=(0,r.tB)(),this.handleDateChange=t=>{var e,i;this.selectedDateObject=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.data,this.dateValue=null===(i=this.selectedDateObject)||void 0===i?void 0:i.toISODate(),this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleTimeChange=t=>{var e,i,s;this.selectedTimeObject=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.data,this.timeValue=null===(i=this.selectedTimeObject)||void 0===i?void 0:i.startOf("second").toISOTime({suppressMilliseconds:!0}),(null===(s=this.controlButtons)||void 0===s?void 0:s.apply)||this.combineDateAndTimeValues(this.dateValue,this.timeValue)},this.handleDateTimeInputChange=t=>{var e;this.value=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.value},this.parseValueForVisuals=t=>{t&&(this.dateValue=t.split("T")[0],this.timeValue=t.split("T")[1])},this.updateDateTimeObject=()=>{this.value?this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}):this.fullDateTime=d.DateTime.fromISO("",{locale:this.locale}),this.dispatchEvent(new CustomEvent("date-time-change",{bubbles:!0,composed:!0,detail:{dateTimeString:this.value,dateTime:this.fullDateTime,locale:this.locale,twentyFourHourFormat:this.twentyFourHourFormat}}))},this.combineDateAndTimeValues=(t,e)=>{t&&(this.value=e?`${t}T${e}`:t)}}firstUpdated(t){var e;if(super.firstUpdated(t),!this.value&&this.showDefaultNowDate){const t=null===(e=this.selectedDateObject)||void 0===e?void 0:e.toISODate();this.combineDateAndTimeValues(t,this.timeValue)}}updated(t){var e;super.updated(t),t.has("value")&&(this.value&&this.parseValueForVisuals(this.value),this.updateDateTimeObject()),this.dateValue&&this.timeValue&&!(null===(e=this.controlButtons)||void 0===e?void 0:e.apply)&&(t.has("dateValue")||t.has("timeValue"))&&this.combineDateAndTimeValues(this.dateValue,this.timeValue),this.value&&t.has("locale")&&(this.fullDateTime=d.DateTime.fromISO(this.value,{locale:this.locale}))}get placeholderValue(){return this.placeholder?this.placeholder:"YYYY-MM-DDTHH:MM:SS-HH:MM"}static get styles(){return[n.A,p.A]}render(){var t;return a.html`
2407
2407
  <md-datepicker
2408
2408
  includes-time
2409
2409
  ?disabled=${this.disabled}
@@ -2415,13 +2415,15 @@
2415
2415
  .useISOFormat=${this.useISOFormat}
2416
2416
  .showDefaultNowDate=${this.showDefaultNowDate}
2417
2417
  weekStart=${this.weekStart}
2418
- placeholder="YYYY-MM-DDTHH:MM:SS-HH:MM"
2418
+ placeholder=${this.placeholderValue}
2419
2419
  locale=${(0,l.ifDefined)(this.locale)}
2420
2420
  .controlButtons=${this.controlButtons}
2421
2421
  .shouldCloseOnSelect=${this.shouldCloseOnSelect}
2422
2422
  @date-selection-change=${this.handleDateChange}
2423
2423
  @date-input-change=${this.handleDateTimeInputChange}
2424
- .validateDate=${!this.disableDateValidation}>
2424
+ .validateDate=${!this.disableDateValidation}
2425
+ ?compact-input=${this.compactInput}
2426
+ >
2425
2427
  <div slot="time-picker" class="included-timepicker-wrapper">
2426
2428
  <div class="time-picker-separator"></div>
2427
2429
  <md-timepicker
@@ -2435,7 +2437,7 @@
2435
2437
  </div>
2436
2438
  </md-datepicker>
2437
2439
  </div>
2438
- `}};c([(0,a.property)({type:String})],e.prototype,"maxDate",void 0),c([(0,a.property)({type:String})],e.prototype,"minDate",void 0),c([(0,a.property)({type:String})],e.prototype,"weekStart",void 0),c([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),c([(0,a.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),c([(0,a.property)({type:Boolean,attribute:"should-close-on-select"})],e.prototype,"shouldCloseOnSelect",void 0),c([(0,a.property)({type:Boolean,attribute:"twenty-four-hour-format"})],e.prototype,"twentyFourHourFormat",void 0),c([(0,a.property)({type:String})],e.prototype,"timeSpecificity",void 0),c([(0,a.property)({type:String,attribute:"date-value"})],e.prototype,"dateValue",void 0),c([(0,a.property)({type:String,attribute:"time-value"})],e.prototype,"timeValue",void 0),c([(0,a.property)({type:String,reflect:!0})],e.prototype,"value",void 0),c([(0,a.property)({type:Boolean,attribute:"disable-date-validation"})],e.prototype,"disableDateValidation",void 0),c([(0,a.property)({type:String})],e.prototype,"locale",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"useISOFormat",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,a.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),c([(0,a.property)({type:Boolean,attribute:"show-default-now-date"})],e.prototype,"showDefaultNowDate",void 0),c([(0,a.property)({type:Object,attribute:!1})],e.prototype,"controlButtons",void 0),c([(0,a.internalProperty)()],e.prototype,"fullDateTime",void 0),c([(0,a.internalProperty)()],e.prototype,"selectedTimeObject",void 0),c([(0,a.internalProperty)()],e.prototype,"selectedDateObject",void 0),c([(0,a.query)("md-datepicker")],e.prototype,"datePicker",void 0),c([(0,a.query)("md-timepicker")],e.prototype,"timePicker",void 0),e=c([(0,o.w)("md-date-time-picker")],e),t.ELEMENT=e}(s||(s={}))},86610:(t,e,i)=>{i.d(e,{TaskItem:()=>s}),i(38028),i(63704),i(61200);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(31465),h=i(5657),p=i(50182),c=i(97822),u=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.mediaType=d.r.TELEPHONY,this.status="",this.popovertitle="",this.queue="",this.queueTimeLabel="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.disabled=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.isRestyle=!1,this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.additionEmptyMargin=!1}get title(){return this.displayTitle}set title(t){this.titleValue=t,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(t){this.itemTitleValue=t,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}handleClick(t){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.blur()}handleKeyDown(t){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:t.code},bubbles:!0,composed:!0}))}getAriaLabel(){var t,e,i,s;if(this.customAriaLabel)return this.customAriaLabel;let o=this.queue;if(!o){const i=this.querySelector('[slot="queue"]');if(i){o=null!==(e=null===(t=i.textContent)||void 0===t?void 0:t.trim())&&void 0!==e?e:i.innerText.trim();const s=/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/.exec(o);if(s){const[,t=0,e,i]=s.map(Number);(new Date).setHours(t,e,i),o=o.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${t?t+" hours ":""}${e} minutes ${i} seconds`)}}}const r=this.querySelector('[slot="queue-time"]');let n=this.queueTimeLabel;return r&&(n+=`${null!==(s=null===(i=r.textContent)||void 0===i?void 0:i.trim())&&void 0!==s?s:r.innerText.trim()}`),`${this.mediaType} ${this.status} ${this.popovertitle} ${this.itemTitle} ${o} ${n} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,p.A]}get sanitizedTabIndexForContainer(){var t;return null!==(t=parseInt(this.tabIndexForContainer))&&void 0!==t?t:0}handleAdditionSlotChange(){var t;const e=(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-taskitem__addition")).getBoundingClientRect();this.additionEmptyMargin=0===e.width&&0===e.height}render(){return n.html`
2440
+ `}};c([(0,a.property)({type:String})],e.prototype,"maxDate",void 0),c([(0,a.property)({type:String})],e.prototype,"minDate",void 0),c([(0,a.property)({type:String})],e.prototype,"weekStart",void 0),c([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),c([(0,a.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),c([(0,a.property)({type:Boolean,attribute:"should-close-on-select"})],e.prototype,"shouldCloseOnSelect",void 0),c([(0,a.property)({type:Boolean,attribute:"twenty-four-hour-format"})],e.prototype,"twentyFourHourFormat",void 0),c([(0,a.property)({type:String})],e.prototype,"timeSpecificity",void 0),c([(0,a.property)({type:String,attribute:"date-value"})],e.prototype,"dateValue",void 0),c([(0,a.property)({type:String,attribute:"time-value"})],e.prototype,"timeValue",void 0),c([(0,a.property)({type:String,reflect:!0})],e.prototype,"value",void 0),c([(0,a.property)({type:Boolean,attribute:"disable-date-validation"})],e.prototype,"disableDateValidation",void 0),c([(0,a.property)({type:String})],e.prototype,"locale",void 0),c([(0,a.property)({type:String,attribute:"placeholder"})],e.prototype,"placeholder",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"useISOFormat",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,a.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),c([(0,a.property)({type:Boolean,attribute:"show-default-now-date"})],e.prototype,"showDefaultNowDate",void 0),c([(0,a.property)({type:Boolean,attribute:"compact-input"})],e.prototype,"compactInput",void 0),c([(0,a.property)({type:Object,attribute:!1})],e.prototype,"controlButtons",void 0),c([(0,a.internalProperty)()],e.prototype,"fullDateTime",void 0),c([(0,a.internalProperty)()],e.prototype,"selectedTimeObject",void 0),c([(0,a.internalProperty)()],e.prototype,"selectedDateObject",void 0),c([(0,a.query)("md-datepicker")],e.prototype,"datePicker",void 0),c([(0,a.query)("md-timepicker")],e.prototype,"timePicker",void 0),e=c([(0,o.w)("md-date-time-picker")],e),t.ELEMENT=e}(s||(s={}))},86610:(t,e,i)=>{i.d(e,{TaskItem:()=>s}),i(38028),i(63704),i(61200);var s,o=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(31465),h=i(5657),p=i(50182),c=i(97822),u=function(t,e,i,s){var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.mediaType=d.r.TELEPHONY,this.status="",this.popovertitle="",this.queue="",this.queueTimeLabel="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.disabled=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.isRestyle=!1,this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.additionEmptyMargin=!1}get title(){return this.displayTitle}set title(t){this.titleValue=t,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(t){this.itemTitleValue=t,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}handleClick(t){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.blur()}handleKeyDown(t){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:t.code},bubbles:!0,composed:!0}))}getAriaLabel(){var t,e,i,s;if(this.customAriaLabel)return this.customAriaLabel;let o=this.queue;if(!o){const i=this.querySelector('[slot="queue"]');if(i){o=null!==(e=null===(t=i.textContent)||void 0===t?void 0:t.trim())&&void 0!==e?e:i.innerText.trim();const s=/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/.exec(o);if(s){const[,t=0,e,i]=s.map(Number);(new Date).setHours(t,e,i),o=o.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${t?t+" hours ":""}${e} minutes ${i} seconds`)}}}const r=this.querySelector('[slot="queue-time"]');let n=this.queueTimeLabel;return r&&(n+=`${null!==(s=null===(i=r.textContent)||void 0===i?void 0:i.trim())&&void 0!==s?s:r.innerText.trim()}`),`${this.mediaType} ${this.status} ${this.popovertitle} ${this.itemTitle} ${o} ${n} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,p.A]}get sanitizedTabIndexForContainer(){var t;return null!==(t=parseInt(this.tabIndexForContainer))&&void 0!==t?t:0}handleAdditionSlotChange(){var t;const e=(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-taskitem__addition")).getBoundingClientRect();this.additionEmptyMargin=0===e.width&&0===e.height}render(){return n.html`
2439
2441
  <div
2440
2442
  part="task-item-container"
2441
2443
  class="md-taskitem ${(0,l.classMap)({selected:this.selected})}"
@@ -20,25 +20,27 @@ export declare namespace DateTimePicker {
20
20
  value: string | undefined;
21
21
  disableDateValidation: boolean;
22
22
  locale: string | undefined;
23
+ placeholder: string | undefined;
23
24
  useISOFormat: boolean;
24
25
  disabled: boolean;
25
26
  positioningStrategy?: StrategyType;
26
27
  showDefaultNowDate: boolean;
28
+ compactInput?: boolean;
27
29
  controlButtons?: DatePickerControlButtons;
28
30
  private fullDateTime;
29
31
  private selectedTimeObject;
30
32
  private selectedDateObject;
31
- firstCycle: boolean;
32
33
  datePicker: DatePicker.ELEMENT;
33
34
  timePicker: TimePicker.ELEMENT;
34
35
  protected firstUpdated(changedProperties: PropertyValues): void;
35
36
  protected updated(changedProperties: PropertyValues): void;
36
- handleDateChange: (event: any) => void;
37
- handleTimeChange: (event: any) => void;
37
+ handleDateChange: (event: CustomEvent) => void;
38
+ handleTimeChange: (event: CustomEvent) => void;
38
39
  handleDateTimeInputChange: (event: CustomEvent) => void;
39
40
  parseValueForVisuals: (value: string) => void;
40
41
  updateDateTimeObject: () => void;
41
42
  combineDateAndTimeValues: (dateString: string | undefined | null, timeString: string | null) => void;
43
+ private get placeholderValue();
42
44
  static get styles(): import("lit-element").CSSResult[];
43
45
  render(): import("lit-element").TemplateResult;
44
46
  }
@@ -81,7 +81,7 @@ export declare namespace Grabber {
81
81
  visible: boolean;
82
82
  };
83
83
  private get grabberContainerClassMap();
84
- get iconName(): "arrow-up-bold" | "arrow-down-bold" | "list-menu-bold" | "arrow-left-bold" | "arrow-right-bold";
84
+ get iconName(): "arrow-up-bold" | "arrow-down-bold" | "arrow-left-bold" | "arrow-right-bold" | "list-menu-bold";
85
85
  get iconSize(): "10" | "12";
86
86
  render(): import("lit-element").TemplateResult;
87
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momentum-ui/web-components",
3
- "version": "2.23.31",
3
+ "version": "2.23.32",
4
4
  "author": "Yana Harris",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/momentum-design/momentum-ui.git",