@momentum-ui/web-components 2.25.3 → 2.25.5
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/1323.js +2 -2
- package/dist/2237.js +1 -0
- package/dist/2555.js +1 -1
- package/dist/3192.js +4 -4
- package/dist/5830.js +1 -1
- package/dist/6273.js +3 -3
- package/dist/6396.js +1 -1
- package/dist/6408.js +2 -2
- package/dist/6798.js +3 -3
- package/dist/7330.js +1 -1
- package/dist/comp/md-accordion-item-entry.js +1 -1
- package/dist/comp/md-accordion-item.js +1 -1
- package/dist/comp/md-activity-button-entry.js +1 -1
- package/dist/comp/md-activity-button.js +1 -1
- package/dist/comp/md-alert-banner-entry.js +4 -4
- package/dist/comp/md-alert-banner.js +1 -1
- package/dist/comp/md-alert-entry.js +39 -39
- package/dist/comp/md-alert.js +1 -1
- package/dist/comp/md-audio-player-entry.js +9 -9
- package/dist/comp/md-audio-player.js +1 -1
- package/dist/comp/md-avatar-entry.js +1 -1
- package/dist/comp/md-avatar.js +1 -1
- package/dist/comp/md-button-entry.js +8 -8
- package/dist/comp/md-card-ai-entry.js +1 -1
- package/dist/comp/md-card-ai.js +1 -1
- package/dist/comp/md-card-entry.js +1 -1
- package/dist/comp/md-card-v2-entry.js +1 -1
- package/dist/comp/md-card-v2.js +1 -1
- package/dist/comp/md-card.js +1 -1
- package/dist/comp/md-chat-message-entry.js +6 -3
- package/dist/comp/md-chat-message.js +1 -1
- package/dist/comp/md-checkbox-entry.js +1 -1
- package/dist/comp/md-checkbox.js +1 -1
- package/dist/comp/md-coachmark-popover-entry.js +3 -3
- package/dist/comp/md-coachmark-popover.js +1 -1
- package/dist/comp/md-combobox-entry.js +1 -1
- package/dist/comp/md-combobox.js +1 -1
- package/dist/comp/md-country-code-picker-entry.js +2 -2
- package/dist/comp/md-country-code-picker.js +1 -1
- package/dist/comp/md-date-range-picker-entry.js +1 -1
- package/dist/comp/md-date-range-picker.js +1 -1
- package/dist/comp/md-date-time-picker-entry.js +1 -1
- package/dist/comp/md-date-time-picker.js +1 -1
- package/dist/comp/md-datepicker-calendar-entry.js +1 -1
- package/dist/comp/md-datepicker-calendar.js +1 -1
- package/dist/comp/md-datepicker-entry.js +4 -4
- package/dist/comp/md-datepicker.js +1 -1
- package/dist/comp/md-dropdown-entry.js +4 -4
- package/dist/comp/md-dropdown.js +1 -1
- package/dist/comp/md-editable-field-entry.js +1 -1
- package/dist/comp/md-editable-field.js +1 -1
- package/dist/comp/md-favorite-entry.js +1 -1
- package/dist/comp/md-favorite.js +1 -1
- package/dist/comp/md-floating-minimize-entry.js +8 -6
- package/dist/comp/md-floating-minimize.js +1 -1
- package/dist/comp/md-floating-modal-entry.js +14 -9
- package/dist/comp/md-floating-modal.js +1 -1
- package/dist/comp/md-grabber-entry.js +7 -7
- package/dist/comp/md-grabber.js +1 -1
- package/dist/comp/md-icon-entry.js +1 -1
- package/dist/comp/md-icon.js +1 -1
- package/dist/comp/md-input-entry.js +3 -3
- package/dist/comp/md-input.js +1 -1
- package/dist/comp/md-label-entry.js +1 -1
- package/dist/comp/md-link-entry.js +36 -36
- package/dist/comp/md-meeting-alert-entry.js +1 -1
- package/dist/comp/md-meeting-alert.js +1 -1
- package/dist/comp/md-menu-overlay-entry.js +2 -2
- package/dist/comp/md-modal-entry.js +8 -8
- package/dist/comp/md-modal.js +1 -1
- package/dist/comp/md-pagination-entry.js +1 -1
- package/dist/comp/md-pagination.js +1 -1
- package/dist/comp/md-phone-input-entry.js +6 -6
- package/dist/comp/md-phone-input.js +1 -1
- package/dist/comp/md-popover-entry.js +2 -2
- package/dist/comp/md-popover.js +1 -1
- package/dist/comp/md-presence-entry.js +1 -1
- package/dist/comp/md-presence.js +1 -1
- package/dist/comp/md-table-advanced-entry.js +1 -1
- package/dist/comp/md-table-advanced.js +1 -1
- package/dist/comp/md-table-entry.js +1 -1
- package/dist/comp/md-table.js +1 -1
- package/dist/comp/md-tabs-entry.js +4 -4
- package/dist/comp/md-tabs.js +1 -1
- package/dist/comp/md-task-item-entry.js +10 -8
- package/dist/comp/md-task-item.js +1 -1
- package/dist/comp/md-timepicker-entry.js +5 -5
- package/dist/comp/md-timepicker.js +1 -1
- package/dist/comp/md-tooltip-entry.js +2 -2
- package/dist/index-entry.js +116 -106
- package/dist/index.js +1 -1
- package/dist/types/components/button/Button.d.ts +6 -1
- package/dist/types/components/combobox/ComboBox.d.ts +1 -1
- package/dist/types/components/datepicker/DatePicker.d.ts +1 -1
- package/dist/types/components/dropdown/Dropdown.d.ts +14 -2
- package/dist/types/components/form/index.d.ts +6 -6
- package/dist/types/components/grabber/Grabber.d.ts +1 -1
- package/dist/types/components/link/Link.d.ts +7 -0
- package/dist/types/components/slider/Slider.d.ts +11 -0
- package/dist/types/components/taskitem/TaskItem.d.ts +1 -1
- package/dist/types/components/tooltip/Tooltip.d.ts +3 -0
- package/package.json +2 -2
- package/dist/6633.js +0 -1
package/dist/index-entry.js
CHANGED
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
${this.messagesTemplate()} ${this.helpTextTemplate()}
|
|
325
325
|
`}};g([(0,d.property)({type:String})],i.prototype,"label",void 0),g([(0,d.property)({type:Array})],i.prototype,"options",void 0),g([(0,d.property)({type:Array,attribute:"custom-options"})],i.prototype,"customOptions",void 0),g([(0,d.property)({type:String})],i.prototype,"placeholder",void 0),g([(0,d.property)({type:Boolean,attribute:"is-multi"})],i.prototype,"isMulti",void 0),g([(0,d.property)({type:Boolean,attribute:"use-virtual-scroll"})],i.prototype,"useVirtualScroll",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"disabled",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"ordered",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"expanded",void 0),g([(0,d.property)({type:Array,reflect:!0})],i.prototype,"groupExpandedList",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchItem",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"compact",void 0),g([(0,d.property)({type:Boolean,attribute:"no-clear-icon"})],i.prototype,"noClearIcon",void 0),g([(0,d.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),g([(0,d.property)({type:Array})],i.prototype,"selectedOptions",void 0),g([(0,d.property)({type:Number,attribute:"visible-option",reflect:!0})],i.prototype,"visibleOptions",void 0),g([(0,d.property)({type:String,attribute:"option-id",reflect:!0})],i.prototype,"optionId",void 0),g([(0,d.property)({type:String,attribute:"option-value",reflect:!0})],i.prototype,"optionValue",void 0),g([(0,d.property)({type:Boolean,attribute:"with-custom-content"})],i.prototype,"isCustomContent",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"searchable",void 0),g([(0,d.property)({type:String})],i.prototype,"shape",void 0),g([(0,d.property)({type:Array})],i.prototype,"value",void 0),g([(0,d.property)({type:String,attribute:"input-value",reflect:!0})],i.prototype,"inputValue",void 0),g([(0,d.property)({type:Boolean,attribute:"allow-custom-value",reflect:!0})],i.prototype,"allowCustomValue",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),g([(0,d.property)({type:String,attribute:"no-results-i18n"})],i.prototype,"resultsTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"no-options-i18n"})],i.prototype,"optionsTextLocalization",void 0),g([(0,d.property)({type:Boolean,reflect:!0,attribute:"search-trim-space"})],i.prototype,"trimSpace",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"invalid",void 0),g([(0,d.property)({type:String,reflect:!0,attribute:"invalid-text-i18n"})],i.prototype,"invalidText",void 0),g([(0,d.property)({type:String,reflect:!0})],i.prototype,"ariaLabel",void 0),g([(0,d.property)({type:String,attribute:"search-result-aria-label"})],i.prototype,"searchResultAriaLabel",void 0),g([(0,d.internalProperty)()],i.prototype,"ariaLabelForComboBox",void 0),g([(0,d.property)({type:String,attribute:"clear-aria-label"})],i.prototype,"clearAriaLabel",void 0),g([(0,d.property)({type:String,attribute:"arrow-aria-label"})],i.prototype,"arrowAriaLabel",void 0),g([(0,d.property)({type:String,attribute:"clear-icon-height"})],i.prototype,"clearIconHeight",void 0),g([(0,d.property)({type:String,attribute:"all-i18n"})],i.prototype,"allTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"select-all-i18n"})],i.prototype,"selectAllTextLocalization",void 0),g([(0,d.property)({type:String,attribute:"selected-all-i18n"})],i.prototype,"selectedTextLocalization",void 0),g([(0,d.property)({type:Boolean,attribute:"allow-select-all",reflect:!0})],i.prototype,"allowSelectAll",void 0),g([(0,d.property)({type:Boolean,attribute:"show-custom-error",reflect:!0})],i.prototype,"showCustomError",void 0),g([(0,d.property)({type:Boolean,attribute:"show-loader",reflect:!0})],i.prototype,"showLoader",void 0),g([(0,d.property)({type:Boolean,attribute:"show-selected-count",reflect:!0})],i.prototype,"showSelectedCount",void 0),g([(0,d.property)({type:String,attribute:"popup-chevron-aria-hidden"})],i.prototype,"popupChevronAriaHidden",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"newMomentum",void 0),g([(0,d.property)({type:Boolean,attribute:"show-filter-icon"})],i.prototype,"showFilterIcon",void 0),g([(0,d.property)({type:Boolean,attribute:"prevent-filter"})],i.prototype,"preventFilter",void 0),g([(0,d.property)({type:Boolean,attribute:"is-dropdown-arrow"})],i.prototype,"isDropdownArrow",void 0),g([(0,d.property)({type:String})],i.prototype,"comboboxId",void 0),g([(0,d.property)({type:String})],i.prototype,"helpText",void 0),g([(0,d.property)({type:Array})],i.prototype,"messageArr",void 0),g([(0,d.property)({type:String})],i.prototype,"htmlId",void 0),g([(0,d.property)({type:Boolean,reflect:!0})],i.prototype,"readOnly",void 0),g([(0,d.internalProperty)()],i.prototype,"isOptGroup",void 0),g([(0,d.internalProperty)()],i.prototype,"isSelectAllChecked",void 0),g([(0,d.query)(".group")],i.prototype,"group",void 0),g([(0,d.query)(".md-combobox-listbox")],i.prototype,"input",void 0),g([(0,d.query)(".md-combobox-button")],i.prototype,"button",void 0),g([(0,d.query)("div#md-combobox-listbox")],i.prototype,"listBox",void 0),g([(0,d.query)(".virtual-scroll")],i.prototype,"virtualizer",void 0),g([(0,d.queryAll)("div.md-combobox-option")],i.prototype,"lists",void 0),g([(0,d.queryAll)(".group-label")],i.prototype,"labels",void 0),g([(0,d.queryAll)(".md-combobox-selected-item")],i.prototype,"selected",void 0),i=g([(0,n.w)("md-combobox")],i),t.ELEMENT=i}(o||(o={}))},5784:t=>{t.exports=f},6396:(t,e,i)=>{i.d(e,{Label:()=>o});var o,s=i(31890),r=i(26272),n=i(41488),a=i(17518),l=i(11598),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.label="",this.theme="",this.radioLabel=!1,this.checkboxLabel=!1,this.toggleSwitchLabel=!1,this.htmlFor="",this.active=!1,this.disabled=!1,this.indeterminate=!1,this.secondaryLabel=!1}static get styles(){return[r.A,l.A]}setFocus(){this.dispatchEvent(new CustomEvent("setFocus"))}get labelClassMap(){return{[`md-label--${this.theme}`]:!!this.theme,"md-radio__label":this.radioLabel,"md-checkbox__label":this.checkboxLabel,"md-secondary-label":this.secondaryLabel,active:this.active,disabled:this.disabled,indeterminate:this.indeterminate}}handleClick(){this.setFocus(),this.dispatchEvent(new CustomEvent("label-click",{composed:!0,bubbles:!0,detail:{htmlFor:this.htmlFor}}))}render(){return n.html`
|
|
326
326
|
<label
|
|
327
|
-
@click
|
|
327
|
+
@click=${()=>this.handleClick()}
|
|
328
328
|
class="md-label ${(0,a.classMap)(this.labelClassMap)}"
|
|
329
329
|
for="${this.htmlFor}"
|
|
330
330
|
>
|
|
@@ -445,10 +445,10 @@
|
|
|
445
445
|
${this.renderOverflowY()};
|
|
446
446
|
}
|
|
447
447
|
</style>
|
|
448
|
-
`}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.updateComplete.then(()=>{this.handleTriggerSlotChange()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.removeTriggerEventListeners()}checkIsInputField(t){var e;return"md-input"===(null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase())}updateTriggerElementAriaExpanded(){this.triggerElement&&(this.isOpen?(this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","true")):(this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","false")))}handleTriggerSlotChange(){this.removeTriggerEventListeners(),this.setupTriggerEventListeners(),this.updateTriggerElementAriaExpanded(),this.popperInstance&&this.destroy(),this.isOpen&&(this.create(),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",this.isOpen))}removeTriggerEventListeners(){this.triggerElement&&(this.triggerElement.removeEventListener("click",this.handleTriggerClick),this.triggerElement.removeEventListener("keydown",this.handleTriggerKeyDown),this.allowHoverToggle&&(this.triggerElement.removeEventListener("mouseenter",this.expandPopup),this.triggerElement.removeEventListener("mouseleave",this.collapsePopup),this.overlayContainer.removeEventListener("mouseenter",this.expandPopup),this.overlayContainer.removeEventListener("mouseleave",this.collapsePopup)),this.triggerElement=null)}setupTriggerEventListeners(){if(this.trigger){if(this.triggerElement=this.trigger[0],!this.triggerElement)return;this.triggerElement.addEventListener("click",this.handleTriggerClick),this.allowHoverToggle&&(this.triggerElement.addEventListener("mouseenter",this.expandPopup),this.triggerElement.addEventListener("mouseleave",this.collapsePopup),this.overlayContainer.addEventListener("mouseenter",this.expandPopup),this.overlayContainer.addEventListener("mouseleave",this.collapsePopup)),this.arrow&&this.showArrow&&this.arrow.toggleAttribute("data-show",!0),this.checkIsInputField(this.triggerElement)||this.triggerElement.addEventListener("keydown",this.handleTriggerKeyDown),this.triggerElement.setAttribute("aria-haspopup","true")}}update(t){super.update(t),t.has("isOpen")&&(this.isOpen?(this.activateFocusTrap(),document.addEventListener("menu-item-click",this.handleTriggerClick)):(this.deactivateFocusTrap(),document.removeEventListener("menu-item-click",this.handleTriggerClick))),t.has("showArrow")&&this.arrow&&this.arrow.toggleAttribute("data-show",this.showArrow)}updated(t){super.updated(t),t.has("isOpen")
|
|
448
|
+
`}connectedCallback(){super.connectedCallback(),this.handleWindowBlurEvent=this.handleWindowBlurEvent.bind(this),window.addEventListener("blur",this.handleWindowBlurEvent),document.addEventListener("keydown",this.handleOutsideOverlayKeydown),this.addEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.addEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.updateComplete.then(()=>{this.handleTriggerSlotChange()})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.handleOutsideOverlayClick),document.removeEventListener("keydown",this.handleOutsideOverlayKeydown),window.removeEventListener("blur",this.handleWindowBlurEvent),this.removeEventListener("menu-overlay-open",this.updateActiveMenuOverlayOpened),this.removeEventListener("menu-overlay-close",this.updateActiveMenuOverlayClosed),this.removeTriggerEventListeners()}checkIsInputField(t){var e;return"md-input"===(null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase())}updateTriggerElementAriaExpanded(){this.triggerElement&&(this.isOpen?(this.triggerElement.setAttribute("aria-expanded","true"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","true")):(this.triggerElement.removeAttribute("aria-expanded"),this.triggerElement.hasAttribute("ariaexpanded")&&this.triggerElement.setAttribute("ariaexpanded","false")))}handleTriggerSlotChange(){this.removeTriggerEventListeners(),this.setupTriggerEventListeners(),this.updateTriggerElementAriaExpanded(),this.popperInstance&&this.destroy(),this.isOpen&&(this.create(),this.overlayContainer&&this.overlayContainer.toggleAttribute("data-show",this.isOpen))}removeTriggerEventListeners(){this.triggerElement&&(this.triggerElement.removeEventListener("click",this.handleTriggerClick),this.triggerElement.removeEventListener("keydown",this.handleTriggerKeyDown),this.allowHoverToggle&&(this.triggerElement.removeEventListener("mouseenter",this.expandPopup),this.triggerElement.removeEventListener("mouseleave",this.collapsePopup),this.overlayContainer.removeEventListener("mouseenter",this.expandPopup),this.overlayContainer.removeEventListener("mouseleave",this.collapsePopup)),this.triggerElement=null)}setupTriggerEventListeners(){if(this.trigger){if(this.triggerElement=this.trigger[0],!this.triggerElement)return;this.triggerElement.addEventListener("click",this.handleTriggerClick),this.allowHoverToggle&&(this.triggerElement.addEventListener("mouseenter",this.expandPopup),this.triggerElement.addEventListener("mouseleave",this.collapsePopup),this.overlayContainer.addEventListener("mouseenter",this.expandPopup),this.overlayContainer.addEventListener("mouseleave",this.collapsePopup)),this.arrow&&this.showArrow&&this.arrow.toggleAttribute("data-show",!0),this.checkIsInputField(this.triggerElement)||this.triggerElement.addEventListener("keydown",this.handleTriggerKeyDown),this.triggerElement.setAttribute("aria-haspopup","true")}}update(t){super.update(t),t.has("isOpen")&&(this.isOpen?(this.activateFocusTrap(),document.addEventListener("menu-item-click",this.handleTriggerClick)):(this.deactivateFocusTrap(),document.removeEventListener("menu-item-click",this.handleTriggerClick))),t.has("showArrow")&&this.arrow&&this.arrow.toggleAttribute("data-show",this.showArrow)}updated(t){if(super.updated(t),t.has("isOpen")){const e=t.get("isOpen");this.isOpen?(this.dispatchMenuOpen(),requestAnimationFrame(()=>{document.addEventListener("click",this.handleOutsideOverlayClick)}),this.updateTriggerElementAriaExpanded()):!0===e&&(this.dispatchMenuClose(),document.removeEventListener("click",this.handleOutsideOverlayClick),this.updateTriggerElementAriaExpanded())}}dispatchMenuOpen(){this.dispatchEvent(new CustomEvent("menu-overlay-open",{composed:!0,bubbles:!0}))}dispatchMenuClose(){this.dispatchEvent(new CustomEvent("menu-overlay-close",{composed:!0,bubbles:!0}))}handleInstance(t){t?this.create():this.destroy()}create(){this.triggerElement&&(this.popperInstance=(0,v.createPopper)(this.triggerElement,this.overlayContainer,{onFirstUpdate:()=>x(this,void 0,void 0,function*(){var t;this.isOpen&&(null===(t=this.popperInstance)||void 0===t||t.update(),this.setFocusableElements(),yield this.updateComplete,this.focusInsideOverlay())}),placement:this.placement,strategy:this.positioningStrategy,modifiers:[...v.defaultModifiers,c(),m(),b(),h(),{name:"preventOverflow",options:{padding:16}},{name:"offset",options:{offset:({placement:t,reference:e})=>"left-end"===t||"right-end"===t?[e.height+e.y+3,14]:[0,this.overlayOffset]}},{name:"arrow",options:{element:this.arrow,padding:5}},{name:"computeStyles",options:{adaptive:!1}}]}))}destroy(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}toggleOverlay(){this.disabled||(this.isOpen=!this.isOpen)}focusOnTrigger(){requestAnimationFrame(()=>{var t;(null===(t=this.focusableElements)||void 0===t?void 0:t.length)&&this.focusableElements[0].focus()})}focusInsideOverlay(){this.focusableElements&&(this.focusableElements.length>1?this.setInitialFocus(1):this.focusableElements.length&&this.setInitialFocus())}focusOnNestedTrigger(t){var e;null===(e=this.setFocusOnTrigger)||void 0===e||e.call(this,t)}handleWindowBlurEvent(){this._isOpen&&!this.keepOpenOnWindowBlur&&(this.isOpen=!1)}static get styles(){return[w.A]}render(){return g.html`
|
|
449
449
|
${this.getStyles()}
|
|
450
450
|
<div class="md-menu-overlay">
|
|
451
|
-
<slot @slotchange
|
|
451
|
+
<slot @slotchange=${this.handleTriggerSlotChange} name="menu-trigger"></slot>
|
|
452
452
|
<div
|
|
453
453
|
part="overlay"
|
|
454
454
|
class="overlay-container"
|
|
@@ -560,7 +560,7 @@
|
|
|
560
560
|
ariaLabel=${this.ariaLabel}
|
|
561
561
|
placeholder="${this.codePlaceholder}"
|
|
562
562
|
.value="${this.countryCallingCode?[this.getFormatedCountryCallingCode()]:[]}"
|
|
563
|
-
@change-selected
|
|
563
|
+
@change-selected=${t=>this.handleCountryChange(t)}
|
|
564
564
|
with-custom-content
|
|
565
565
|
?newMomentum=${this.newMomentum}
|
|
566
566
|
?is-dropdown-arrow=${this.isDropdownArrow}
|
|
@@ -569,50 +569,50 @@
|
|
|
569
569
|
${(0,p.repeat)(this.codeList,t=>t.name,(t,e)=>this.countryCodeOptionTemplate(t,e))}
|
|
570
570
|
</md-combobox>
|
|
571
571
|
</div>
|
|
572
|
-
`}};u([(0,l.property)({type:String,reflect:!0})],e.prototype,"codePlaceholder",void 0),u([(0,l.property)({type:String,attribute:"country-calling-code"})],e.prototype,"countryCallingCode",void 0),u([(0,l.property)({type:Boolean,attribute:"show-flags"})],e.prototype,"showFlags",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"pill",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaLabel",void 0),u([(0,l.property)({type:String})],e.prototype,"clearAriaLabel",void 0),u([(0,l.property)({type:String})],e.prototype,"id",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"newMomentum",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"isDropdownArrow",void 0),u([(0,l.internalProperty)()],e.prototype,"countryCode",void 0),u([(0,l.internalProperty)()],e.prototype,"codeList",void 0),u([(0,l.query)("md-combobox")],e.prototype,"combobox",void 0),e=u([(0,s.w)("md-country-code-picker")],e),t.ELEMENT=e}(o||(o={}))},19026:(t,e,i)=>{i.d(e,{Link:()=>o});var o,s=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(97822),d=i(73112),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.color="",this.ariaLabel="",this.ariaRole="link",this.disabled=!1,this.inline=!1,this.inlineStyle=void 0,this.inverted=void 0,this.href="",this.tag="a",this.target="_self",this.size=void 0,this._tabIndex=0}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}static get styles(){return[r.A,d.A]}
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
572
|
+
`}};u([(0,l.property)({type:String,reflect:!0})],e.prototype,"codePlaceholder",void 0),u([(0,l.property)({type:String,attribute:"country-calling-code"})],e.prototype,"countryCallingCode",void 0),u([(0,l.property)({type:Boolean,attribute:"show-flags"})],e.prototype,"showFlags",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"pill",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaLabel",void 0),u([(0,l.property)({type:String})],e.prototype,"clearAriaLabel",void 0),u([(0,l.property)({type:String})],e.prototype,"id",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"newMomentum",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"isDropdownArrow",void 0),u([(0,l.internalProperty)()],e.prototype,"countryCode",void 0),u([(0,l.internalProperty)()],e.prototype,"codeList",void 0),u([(0,l.query)("md-combobox")],e.prototype,"combobox",void 0),e=u([(0,s.w)("md-country-code-picker")],e),t.ELEMENT=e}(o||(o={}))},19026:(t,e,i)=>{i.d(e,{Link:()=>o});var o,s=i(31890),r=i(26272),n=i(41488),a=i(23968),l=i(97822),d=i(73112),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.color="",this.ariaLabel="",this.ariaRole="link",this.disabled=!1,this.inline=!1,this.inlineStyle=void 0,this.inverted=void 0,this.href="",this.tag="a",this.target="_self",this.size=void 0,this._tabIndex=0,this.autofocus=!1}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}static get styles(){return[r.A,d.A]}firstUpdated(){this.autofocus&&requestAnimationFrame(()=>{this.focus()})}focus(){var t;null===(t=this.linkRef)||void 0===t||t.focus()}blur(){var t;null===(t=this.linkRef)||void 0===t||t.blur()}get linkClassNamesInfo(){return{[`md-link--${this.color}`]:this.color,"md-link--inline":this.inline,[`md-link--inline-style-${this.inlineStyle}`]:!!this.inlineStyle,[`${this.size}`]:!!this.size,inverted:!0===this.inverted,disabled:this.disabled}}get linkElement(){switch(this.tag){case"div":return n.html`
|
|
573
|
+
<div
|
|
574
|
+
class="md-link ${(0,a.classMap)(this.linkClassNamesInfo)}"
|
|
575
|
+
tabindex=${this.tabIndex}
|
|
576
|
+
aria-label=${(0,l.ifDefined)(this.ariaLabel||void 0)}
|
|
577
|
+
aria-disabled=${(0,l.ifDefined)(this.disabled||void 0)}
|
|
578
|
+
role=${this.ariaRole}
|
|
579
|
+
part="link"
|
|
580
|
+
>
|
|
581
|
+
<slot></slot>
|
|
582
|
+
</div>
|
|
583
|
+
`;case"span":return n.html`
|
|
584
|
+
<span
|
|
585
|
+
class="md-link ${(0,a.classMap)(this.linkClassNamesInfo)}"
|
|
586
|
+
tabindex=${this.tabIndex}
|
|
587
|
+
aria-label=${(0,l.ifDefined)(this.ariaLabel||void 0)}
|
|
588
|
+
aria-disabled=${(0,l.ifDefined)(this.disabled||void 0)}
|
|
589
|
+
role=${this.ariaRole}
|
|
590
|
+
part="link"
|
|
591
|
+
>
|
|
592
|
+
<slot></slot>
|
|
593
|
+
</span>
|
|
594
|
+
`;default:return n.html`
|
|
595
|
+
<a
|
|
596
|
+
class="md-link ${(0,a.classMap)(this.linkClassNamesInfo)}"
|
|
597
|
+
.target="${this.target}"
|
|
598
|
+
href=${(0,l.ifDefined)(this.disabled?void 0:this.href)}
|
|
599
|
+
tabindex=${this.tabIndex}
|
|
600
|
+
aria-label=${(0,l.ifDefined)(this.ariaLabel||void 0)}
|
|
601
|
+
aria-disabled=${(0,l.ifDefined)(this.disabled||void 0)}
|
|
602
|
+
role=${this.ariaRole}
|
|
603
|
+
part="link"
|
|
604
|
+
>
|
|
605
|
+
<slot></slot>
|
|
606
|
+
</a>
|
|
607
|
+
`}}render(){return n.html` ${this.linkElement} `}};h([(0,n.property)({type:String,attribute:!1})],e.prototype,"color",void 0),h([(0,n.property)({type:String})],e.prototype,"ariaLabel",void 0),h([(0,n.property)({type:String})],e.prototype,"ariaRole",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inline",void 0),h([(0,n.property)({type:String,attribute:"inline-style"})],e.prototype,"inlineStyle",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"inverted",void 0),h([(0,n.property)({type:String})],e.prototype,"href",void 0),h([(0,n.property)({type:String})],e.prototype,"tag",void 0),h([(0,n.property)({type:String})],e.prototype,"target",void 0),h([(0,n.property)({type:String})],e.prototype,"size",void 0),h([(0,n.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),h([(0,n.property)({type:Boolean})],e.prototype,"autofocus",void 0),h([(0,n.query)(".md-link")],e.prototype,"linkRef",void 0),e=h([(0,s.w)("md-link")],e),t.ELEMENT=e}(o||(o={}))},19239:t=>{t.exports=P},19479:(t,e,i)=>{i.d(e,{AlertBanner:()=>o}),i(96798),i(61200);var o,s=i(31890),r=i(26283),n=i(26272),a=i(41488),l=i(40333),d=i(17518),h=i(35467),p=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.type="",this.titleText="",this.message="",this.closable=!1,this.show=!1,this.closeAriaLabel="Close Banner",this.showBannerTypeIcon=!1,this.showRefreshButton=!1,this.alignment="center"}connectedCallback(){super.connectedCallback(),this.requestUpdate("show")}onHide(){this.show=!this.show,this.dispatchEvent(new CustomEvent("alertBanner-hide")),this.requestUpdate("show")}handleKeyDown(t){const{code:e}=t;(0,r.o)(e)&&this.onHide()}get isLeadingAlignment(){return"leading"===this.alignment}static get styles(){return[n.A,h.A]}getIconForType(){switch(this.type){case"error":return"error-legacy-bold";case"warning":return"warning-bold";case"success":return"check-circle-bold";default:return"info-circle-bold"}}get alertBannerClassMap(){return{"md-alert-banner":!0,[`md-alert-banner--${this.type}`]:this.type,"md-alert-banner--leading":this.isLeadingAlignment||this.titleText,closable:this.closable,"with-title":!!this.titleText}}get alertBannerTextClassMap(){return{"md-alert-banner__text":!0,"md-alert-banner__with-title":!!this.titleText,leading:this.isLeadingAlignment||this.titleText}}get alertBannerRightClassMap(){return{trailing:this.isLeadingAlignment||this.titleText}}get closeButtonTemplate(){const t=this.titleText?"close-div with-title":"close-div";return a.html`
|
|
608
608
|
<div class="${t}">
|
|
609
609
|
<md-button
|
|
610
610
|
class="md-alert-banner__close"
|
|
611
611
|
hasRemoveStyle
|
|
612
612
|
circle
|
|
613
613
|
ariaLabel=${this.closeAriaLabel}
|
|
614
|
-
@click
|
|
615
|
-
@keydown
|
|
614
|
+
@click=${this.onHide}
|
|
615
|
+
@keydown=${this.handleKeyDown}
|
|
616
616
|
>
|
|
617
617
|
<md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
618
618
|
</md-button>
|
|
@@ -627,7 +627,7 @@
|
|
|
627
627
|
</md-icon>
|
|
628
628
|
`:a.html`<slot name="left"></slot>`,o=this.titleText?"refresh-button-with-title":"refresh-button",s=this.showRefreshButton?a.html` <md-button
|
|
629
629
|
class="${o}"
|
|
630
|
-
@click
|
|
630
|
+
@click=${()=>this.dispatchEvent(new CustomEvent("alertBanner-refresh-button-click"))}
|
|
631
631
|
variant="ghostInheritTextColor"
|
|
632
632
|
circle
|
|
633
633
|
size="20"
|
|
@@ -879,8 +879,8 @@
|
|
|
879
879
|
aria-label="${this.title}"
|
|
880
880
|
aria-controls="md-dropdown-list"
|
|
881
881
|
aria-haspopup="listbox"
|
|
882
|
-
?disabled
|
|
883
|
-
@click
|
|
882
|
+
?disabled=${this.disabled}
|
|
883
|
+
@click=${()=>this.onLabelClick()}
|
|
884
884
|
part="dropdown-header"
|
|
885
885
|
role="combobox"
|
|
886
886
|
tabindex="0"
|
|
@@ -917,7 +917,7 @@
|
|
|
917
917
|
part="dropdown-option"
|
|
918
918
|
?focused="${e===this.focusedIndex}"
|
|
919
919
|
?selected="${t.key===this.selectedKey}"
|
|
920
|
-
@click
|
|
920
|
+
@click=${()=>{this.focusToIndexWithOption(t),this.select(),this.collapse()}}
|
|
921
921
|
>
|
|
922
922
|
<span class="select-label" part="label">
|
|
923
923
|
<span>${t.value}</span>
|
|
@@ -938,7 +938,7 @@
|
|
|
938
938
|
<md-button
|
|
939
939
|
hasRemoveStyle
|
|
940
940
|
class="play-btn"
|
|
941
|
-
@click
|
|
941
|
+
@click=${this.togglePlay}
|
|
942
942
|
aria-label="${this.isPlaying?this.labelMap.pauseBtn.ariaLabel:this.labelMap.playBtn.ariaLabel}"
|
|
943
943
|
>
|
|
944
944
|
${this.isPlaying?n.html` <md-icon slot="icon" name="pause-bold" size="16" iconSet="momentumDesign"></md-icon> `:n.html` <md-icon slot="icon" name="play-bold" size="16" iconSet="momentumDesign"></md-icon> `}
|
|
@@ -957,7 +957,7 @@
|
|
|
957
957
|
</div>
|
|
958
958
|
<div class="timeline-container">
|
|
959
959
|
<md-tooltip placement="top" message="${this.labelMap.timeline.tooltipText}">
|
|
960
|
-
<div class="timeline" @click
|
|
960
|
+
<div class="timeline" @click=${this.setTime} aria-label="${this.labelMap.timeline.ariaLabel}">
|
|
961
961
|
<div class="progress-bar" style="width: ${this.currentTime/this.duration*100}%"></div>
|
|
962
962
|
<div class="buffer-bar" style="width: ${this.bufferedRange/this.duration*100}%"></div>
|
|
963
963
|
</div>
|
|
@@ -965,8 +965,8 @@
|
|
|
965
965
|
</div>
|
|
966
966
|
<div
|
|
967
967
|
class="volume-container"
|
|
968
|
-
@mouseleave
|
|
969
|
-
@mouseenter
|
|
968
|
+
@mouseleave=${()=>this.toggleVolumeExpand(!1)}
|
|
969
|
+
@mouseenter=${()=>this.toggleVolumeExpand(!0)}
|
|
970
970
|
aria-label="${this.labelMap.volumeSlider.ariaLabel}"
|
|
971
971
|
>
|
|
972
972
|
<md-tooltip
|
|
@@ -975,7 +975,7 @@
|
|
|
975
975
|
>
|
|
976
976
|
<div
|
|
977
977
|
class="volume"
|
|
978
|
-
@mousedown
|
|
978
|
+
@mousedown=${this.handleVolumeChange}
|
|
979
979
|
aria-label="${this.labelMap.volumeSlider.ariaLabel} ${Math.trunc(100*this.volume)}%"
|
|
980
980
|
>
|
|
981
981
|
<div class="volume-slider" style="width: ${this.isMuted?0:100*this.volume}%"></div>
|
|
@@ -986,7 +986,7 @@
|
|
|
986
986
|
hasRemoveStyle
|
|
987
987
|
class="volume-btn"
|
|
988
988
|
aria-label="${this.labelMap.volumeBtn.ariaLabel}"
|
|
989
|
-
@click
|
|
989
|
+
@click=${this.toggleSoundMute}
|
|
990
990
|
>
|
|
991
991
|
${this.isMuted?n.html`
|
|
992
992
|
<md-icon slot="icon" name="speaker-muted-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
@@ -996,7 +996,7 @@
|
|
|
996
996
|
</div>
|
|
997
997
|
<div class="speed-icon-container" aria-label="${this.labelMap.playbackSpeedBtn.ariaLabel}">
|
|
998
998
|
<md-tooltip placement="top" message="${this.labelMap.playbackSpeedBtn.tooltipText}">
|
|
999
|
-
<md-button hasRemoveStyle id="speed-btn" @click
|
|
999
|
+
<md-button hasRemoveStyle id="speed-btn" @click=${this.toggleSpeedPopup}>
|
|
1000
1000
|
<md-icon slot="icon" name="too-fast-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
1001
1001
|
</md-button>
|
|
1002
1002
|
</md-tooltip>
|
|
@@ -1005,7 +1005,7 @@
|
|
|
1005
1005
|
${p.map(t=>{const e=this.selectedPlaybackSpeed==t.value&&!this.currentlySelectingPlaybackSpeed;return n.html`
|
|
1006
1006
|
<li
|
|
1007
1007
|
class=${e?"speed-popup-selected-speed":""}
|
|
1008
|
-
@click
|
|
1008
|
+
@click=${()=>this.setPlaybackSpeed(t.value)}
|
|
1009
1009
|
>
|
|
1010
1010
|
<span>${t.label}</span>
|
|
1011
1011
|
${this.playbackSpeed==t.value?n.html`
|
|
@@ -1132,7 +1132,7 @@
|
|
|
1132
1132
|
focus-back-to-trigger
|
|
1133
1133
|
placement=${this.placement}
|
|
1134
1134
|
hide-on-escape
|
|
1135
|
-
@hidden
|
|
1135
|
+
@hidden=${()=>{this.notifyCoachClose()}}
|
|
1136
1136
|
>
|
|
1137
1137
|
<div class="md-coachmark__popper" tabindex="-1">
|
|
1138
1138
|
${this.renderHeader()} ${this.renderBody()} ${this.renderFooter()}
|
|
@@ -1149,8 +1149,8 @@
|
|
|
1149
1149
|
size="20"
|
|
1150
1150
|
circle
|
|
1151
1151
|
class="md-close md-modal__close"
|
|
1152
|
-
@click
|
|
1153
|
-
@keydown
|
|
1152
|
+
@click=${this.hideModal}
|
|
1153
|
+
@keydown=${this.handleKeyDown}
|
|
1154
1154
|
ariaLabel=${this.ariaLabelClose}
|
|
1155
1155
|
>
|
|
1156
1156
|
<md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
@@ -1173,8 +1173,8 @@
|
|
|
1173
1173
|
<div part="modal-footer" class="md-modal__footer">
|
|
1174
1174
|
<md-button
|
|
1175
1175
|
aria-label=${this.ariaLabelCancel}
|
|
1176
|
-
@click
|
|
1177
|
-
@keydown
|
|
1176
|
+
@click=${this.handleFooterClick}
|
|
1177
|
+
@keydown=${this.handleKeyDown}
|
|
1178
1178
|
variant="secondary"
|
|
1179
1179
|
>
|
|
1180
1180
|
<span>Cancel</span>
|
|
@@ -1183,8 +1183,8 @@
|
|
|
1183
1183
|
type="submit"
|
|
1184
1184
|
variant="primary"
|
|
1185
1185
|
aria-label=${this.ariaLabelSubmit}
|
|
1186
|
-
@click
|
|
1187
|
-
@keydown
|
|
1186
|
+
@click=${this.handleFooterClick}
|
|
1187
|
+
@keydown=${this.handleKeyDown}
|
|
1188
1188
|
>
|
|
1189
1189
|
<span>${this.closeBtnName}</span>
|
|
1190
1190
|
</md-button>
|
|
@@ -1192,7 +1192,7 @@
|
|
|
1192
1192
|
`}get modalBackDropClassMap(){return{in:this.show&&this.animating}}get modalContainerClassMap(){return{in:this.show,[`md-modal--${this.size}`]:!!this.size,[`md-modal--${this.computedAlignment}`]:!!this.computedAlignment}}render(){return d.html`
|
|
1193
1193
|
${this.show?d.html`
|
|
1194
1194
|
<div part="modal-backdrop" class="md-modal__backdrop fade ${(0,p.classMap)(this.modalBackDropClassMap)}">
|
|
1195
|
-
${this.backdropClickExit?d.html` <div class="md-modal_overlay" @click
|
|
1195
|
+
${this.backdropClickExit?d.html` <div class="md-modal_overlay" @click=${this.handleCloseBackdrop}></div> `:h.nothing}
|
|
1196
1196
|
|
|
1197
1197
|
<div
|
|
1198
1198
|
part="modal-container"
|
|
@@ -1362,9 +1362,9 @@
|
|
|
1362
1362
|
max=${(0,p.ifDefined)(e.max)}
|
|
1363
1363
|
maxLength=${2}
|
|
1364
1364
|
placeholder="${v[t]}"
|
|
1365
|
-
@input-change
|
|
1366
|
-
@input-keydown
|
|
1367
|
-
@input-blur
|
|
1365
|
+
@input-change=${e=>this.handleTimeChange(e,t)}
|
|
1366
|
+
@input-keydown=${e=>this.handleTimeKeyDown(e,t)}
|
|
1367
|
+
@input-blur=${e=>this.handleTimeBlur(e,t)}
|
|
1368
1368
|
.messageArr=${[{message:"",type:this.messageType(this.timeValidity[t])}]}
|
|
1369
1369
|
.ariaLabel="${t}-input"
|
|
1370
1370
|
ariaInvalid="${!this.timeValidity[t]}"
|
|
@@ -1381,7 +1381,7 @@
|
|
|
1381
1381
|
no-clear-icon
|
|
1382
1382
|
.inputValue=${this.timeValue[o.R5.AM_PM]}
|
|
1383
1383
|
.ariaLabel=${this.timeValue[o.R5.AM_PM]}
|
|
1384
|
-
@change-selected
|
|
1384
|
+
@change-selected=${t=>this.handleTimeChange(t,o.R5.AM_PM)}
|
|
1385
1385
|
>
|
|
1386
1386
|
</md-combobox>
|
|
1387
1387
|
`}get timePickerClassMap(){return{"twenty-four-hour-format":this.finalTwentyFourFormat}}connectedCallback(){super.connectedCallback(),this.initializeTimeValues()}updated(t){super.updated(t),["value","locale","twentyFourHourFormat","showDefaultNowTime","timeSpecificity"].some(e=>t.has(e))&&this.initializeTimeValues()}initializeTimeValues(){if(this.showDefaultNowTime||this.value){const t=this.value||(0,r.tB)().toISOTime({suppressMilliseconds:!0});t&&this.updateValue(t)}else{const t=c.DateTime.now().setLocale(this.locale),e=this.getLocaleTimeFormat(t);this.finalTwentyFourFormat=this.twentyFourHourFormat||e;const i=this.timeSpecificity===o.R5.MINUTE||this.timeSpecificity===o.R5.SECOND,s=this.timeSpecificity===o.R5.SECOND;this.timeValue={[o.R5.HOUR]:"",[o.R5.MINUTE]:i?"":"00",[o.R5.SECOND]:s?"":"00",[o.R5.AM_PM]:"AM"}}}updateValue(t){const e=t||this.value;if(!e)return;this.timeObject=c.DateTime.fromISO(e,{locale:this.locale});const i=this.getLocaleTimeFormat(this.timeObject);this.finalTwentyFourFormat=this.twentyFourHourFormat||i,this.value=this.timeObject.toISOTime({suppressMilliseconds:!0}),this.updateTimeValues()}dispatchTimeChangeEvent(){this.dispatchEvent(new CustomEvent("time-selection-change",{bubbles:!0,composed:!0,detail:{time:this.value,data:this.timeObject,isValid:this.isEntireTimeValid()}}))}handleTimeChange(t,e){var i,s,r;this.timeValue[e]=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.value,this.requestUpdate(),this.formatTimeUnit(e);const n=this.timeValue[e];if(this.twoDigitAutoTab&&this.tabNext&&(e!==o.R5.AM_PM&&2===n.length&&"0"!==n[0]||"00"===n)){t.preventDefault();const e=null==t?void 0:t.target,i=null===(s=this.shadowRoot)||void 0===s?void 0:s.querySelectorAll("md-input, md-combobox");if(i){const t=Array.prototype.findIndex.call(i,t=>null==e?void 0:e.isEqualNode(t)),o=(t+1)%i.length;if(t<i.length-1){const t=null===(r=i[o].shadowRoot)||void 0===r?void 0:r.querySelector("input");null==t||t.focus()}}}else e===o.R5.AM_PM&&this.updateTimeUnit(e);t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-change`,{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.timeValue[e]}`,isValid:this.timeValidity[e]}}))}handleTimeKeyDown(t,e){var i;const s=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.srcEvent;if(!s)return void console.warn("srcEvent is undefined");const{key:r}=s;r===o.Uz.ArrowDown||r===o.Uz.ArrowUp?this.tabNext=!1:this.tabNext=!0,this.timeValidity[e]=!0,this.requestUpdate(),t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-keydown`,{bubbles:!0,composed:!0,detail:{srcEvent:t,value:`${this.timeValue[e]}`}}))}handleTimeBlur(t,e){"0"===this.timeValue[e]&&(this.timeValue[e]="00"),this.updateTimeUnit(e),this.requestUpdate(),t.stopPropagation(),this.dispatchEvent(new CustomEvent(`${e}-blur`,{bubbles:!0,composed:!0,detail:{srcEvent:t,time:this.value,isValid:this.timeValidity[e]}}))}static get styles(){return[a.A,u.A]}render(){return l.html`
|
|
@@ -1429,7 +1429,7 @@
|
|
|
1429
1429
|
id="${this.getCopyTabId(t)}"
|
|
1430
1430
|
aria-label=${t.ariaLabel}
|
|
1431
1431
|
aria-controls="${this.getAriaControlId(t)}"
|
|
1432
|
-
@click
|
|
1432
|
+
@click=${()=>this.handleOverlayClose()}
|
|
1433
1433
|
tabIndex="${this.tabHiddenIdPositiveTabIndex===t.id?0:-1}"
|
|
1434
1434
|
role="menuitem"
|
|
1435
1435
|
?newMomentum=${this.newMomentum}
|
|
@@ -1446,8 +1446,8 @@
|
|
|
1446
1446
|
max-height="${"288px"}"
|
|
1447
1447
|
class="md-menu-overlay__more ${(0,h.classMap)({"md-menu-overlay__more--hidden":this.isMoreTabMenuMeasured&&!this.isMoreTabMenuVisible})}"
|
|
1448
1448
|
placement="bottom-end"
|
|
1449
|
-
@menu-overlay-open
|
|
1450
|
-
@menu-overlay-close
|
|
1449
|
+
@menu-overlay-open=${()=>this.isMoreTabMenuOpen=!0}
|
|
1450
|
+
@menu-overlay-close=${()=>this.isMoreTabMenuOpen=!1}
|
|
1451
1451
|
>
|
|
1452
1452
|
${this.moreMenuButtonTemplate}
|
|
1453
1453
|
<div
|
|
@@ -1599,7 +1599,7 @@
|
|
|
1599
1599
|
<div
|
|
1600
1600
|
class="md-floating ${this.minimize?"":"hide"} md-floating-minimize"
|
|
1601
1601
|
@click=${this.handleMinimize}
|
|
1602
|
-
@keydown
|
|
1602
|
+
@keydown=${this.handleKeyDown}
|
|
1603
1603
|
role="dialog"
|
|
1604
1604
|
tabindex="-1"
|
|
1605
1605
|
part="floating-minimized"
|
|
@@ -1613,7 +1613,8 @@
|
|
|
1613
1613
|
</div>
|
|
1614
1614
|
<md-button
|
|
1615
1615
|
color="color-none"
|
|
1616
|
-
|
|
1616
|
+
size="20"
|
|
1617
|
+
class="md-floating__resize md-floating__header-button"
|
|
1617
1618
|
ariaLabel="${this.maximizeIconAriaLabel}"
|
|
1618
1619
|
circle
|
|
1619
1620
|
@click=${this.handleMinimize}
|
|
@@ -1623,11 +1624,12 @@
|
|
|
1623
1624
|
|
|
1624
1625
|
<md-button
|
|
1625
1626
|
color="color-none"
|
|
1626
|
-
|
|
1627
|
+
size="20"
|
|
1628
|
+
class="md-floating__close md-floating__header-button"
|
|
1627
1629
|
aria-label="${this.closeAriaLabel}"
|
|
1628
1630
|
circle
|
|
1629
1631
|
@click=${this.handleClose}
|
|
1630
|
-
@keydown
|
|
1632
|
+
@keydown=${this.handleKeyDownClose}
|
|
1631
1633
|
>
|
|
1632
1634
|
<md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
1633
1635
|
</md-button>
|
|
@@ -1937,12 +1939,12 @@
|
|
|
1937
1939
|
aria-label=${(0,p.ifDefined)(this.label.length?this.label:void 0)}
|
|
1938
1940
|
type="button"
|
|
1939
1941
|
role="button"
|
|
1940
|
-
@click
|
|
1941
|
-
@keydown
|
|
1942
|
-
@mouseenter
|
|
1943
|
-
@mouseleave
|
|
1944
|
-
@focus
|
|
1945
|
-
@blur
|
|
1942
|
+
@click=${()=>this.handleMouseDown()}
|
|
1943
|
+
@keydown=${t=>this.handleKeyDown(t)}
|
|
1944
|
+
@mouseenter=${()=>this.handleMouseEnter()}
|
|
1945
|
+
@mouseleave=${()=>this.handleMouseLeave()}
|
|
1946
|
+
@focus=${()=>this.handleFocus()}
|
|
1947
|
+
@blur=${()=>this.handleBlur()}
|
|
1946
1948
|
>
|
|
1947
1949
|
<md-icon name="${this.iconName}" size="${this.iconSize}" iconSet="momentumDesign"></md-icon>
|
|
1948
1950
|
</button>
|
|
@@ -1961,7 +1963,7 @@
|
|
|
1961
1963
|
size="20"
|
|
1962
1964
|
circle
|
|
1963
1965
|
ariaLabel=${(0,d.ifDefined)(this.closeButtonAriaLabel)||""}
|
|
1964
|
-
@button-click
|
|
1966
|
+
@button-click=${this.hidePopover}
|
|
1965
1967
|
>
|
|
1966
1968
|
<md-icon name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
1967
1969
|
</md-button>`:l.nothing}
|
|
@@ -1988,16 +1990,18 @@
|
|
|
1988
1990
|
</div>
|
|
1989
1991
|
${this.minimizable?d.html` <md-button
|
|
1990
1992
|
color="color-none"
|
|
1991
|
-
|
|
1993
|
+
size="20"
|
|
1994
|
+
class="md-floating__minimize md-floating__header-button"
|
|
1992
1995
|
ariaLabel="${this.minimizeAriaLabel}"
|
|
1993
1996
|
circle
|
|
1994
1997
|
@click=${this.handleMinimize}
|
|
1995
1998
|
>
|
|
1996
|
-
<md-icon name="minus-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
1999
|
+
<md-icon name="minus-bold" size="16" iconSet="momentumDesign" ariaHidden="true"></md-icon>
|
|
1997
2000
|
</md-button>`:h.nothing}
|
|
1998
2001
|
${!this.minimize&&this.maximizable?d.html` <md-button
|
|
1999
2002
|
color="color-none"
|
|
2000
|
-
|
|
2003
|
+
size="20"
|
|
2004
|
+
class="md-floating__resize md-floating__header-button"
|
|
2001
2005
|
ariaLabel="${this.full?this.resizeAriaLabel:this.maximizeScreenLabel}"
|
|
2002
2006
|
circle
|
|
2003
2007
|
@click=${this.handleToggleExpandCollapse}
|
|
@@ -2011,7 +2015,8 @@
|
|
|
2011
2015
|
|
|
2012
2016
|
<md-button
|
|
2013
2017
|
color="color-none"
|
|
2014
|
-
|
|
2018
|
+
size="20"
|
|
2019
|
+
class="md-floating__close md-floating__header-button"
|
|
2015
2020
|
ariaLabel="${this.closeAriaLabel}"
|
|
2016
2021
|
circle
|
|
2017
2022
|
@click=${this.handleClose}
|
|
@@ -2092,7 +2097,7 @@
|
|
|
2092
2097
|
hasRemoveStyle
|
|
2093
2098
|
color="color-none"
|
|
2094
2099
|
circle
|
|
2095
|
-
@click
|
|
2100
|
+
@click=${()=>this.close()}
|
|
2096
2101
|
>
|
|
2097
2102
|
<md-icon slot="icon" name="cancel-bold" size="18" iconSet="momentumDesign"></md-icon>
|
|
2098
2103
|
</md-button>
|
|
@@ -2151,7 +2156,7 @@
|
|
|
2151
2156
|
hasRemoveStyle
|
|
2152
2157
|
color="color-none"
|
|
2153
2158
|
circle
|
|
2154
|
-
@click
|
|
2159
|
+
@click=${()=>this.close()}
|
|
2155
2160
|
>
|
|
2156
2161
|
<md-icon slot="icon" name="cancel-bold" size="16" iconSet="momentumDesign"></md-icon>
|
|
2157
2162
|
</md-button>
|
|
@@ -2352,7 +2357,7 @@
|
|
|
2352
2357
|
<slot></slot>
|
|
2353
2358
|
</label>
|
|
2354
2359
|
</div>
|
|
2355
|
-
`}};h([(0,a.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,a.property)({type:String})],e.prototype,"label",void 0),h([(0,a.property)({type:String})],e.prototype,"value",void 0),h([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"checked",void 0),e=h([(0,r.w)("md-radio")],e),t.ELEMENT=e}(o||(o={}))},83192:(t,e,i)=>{i.d(e,{Tooltip:()=>o});var o,s=i(90195),r=i(3001),n=i(31890),a=i(66677),l=i(26272),d=i(41488),h=i(23968),p=i(77251),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((0,r.UM)((0,r.yC)(d.LitElement))){constructor(){super(...arguments),this.message="",this.placement="auto",this.disabled=!1,this.opened=!1,this.slotToTooltip=!1,this.slotContent=null,this._keyDownListener=t=>{this.handleKeyDown(t)},this._wheelListener=t=>{this.opened&&this.notifyTooltipDestroy()}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this._keyDownListener),window.addEventListener("wheel",this._wheelListener,{passive:!0})}disconnectedCallback(){this.notifyTooltipDisconnected(),super.disconnectedCallback(),document.removeEventListener("keydown",this._keyDownListener),window.removeEventListener("wheel",this._wheelListener)}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),(0,a.sg)(()=>{this.slotToTooltip&&(this.disabled=this.reference&&!this.isContentTruncated(this.reference))},100)()}handleFocusIn(t){super.handleFocusIn&&super.handleFocusIn(t),this.notifyTooltipCreate()}handleFocusOut(t){super.handleFocusOut&&super.handleFocusOut(t),this.notifyTooltipDestroy()}openTooltip(){this.dispatchEvent(new CustomEvent("tooltip-create",{bubbles:!0,composed:!0,detail:Object.assign({placement:this.placement,reference:this.reference,popper:this.popper},!this.message&&{slotContent:this.slotContent})}))}notifyTooltipDisconnected(){document.dispatchEvent(new CustomEvent("tooltip-disconnected",{bubbles:!0,composed:!0,detail:{}}))}closeTooltip(){this.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}changeMessage(){this.dispatchEvent(new CustomEvent("tooltip-message",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}changeSlotContent(t){this.dispatchEvent(new CustomEvent("tooltip-slot",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper,slotContent:t}}))}notifyTooltipCreate(){this.disabled
|
|
2360
|
+
`}};h([(0,a.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),h([(0,a.property)({type:String})],e.prototype,"label",void 0),h([(0,a.property)({type:String})],e.prototype,"value",void 0),h([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),h([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"checked",void 0),e=h([(0,r.w)("md-radio")],e),t.ELEMENT=e}(o||(o={}))},83192:(t,e,i)=>{i.d(e,{Tooltip:()=>o});var o,s=i(90195),r=i(3001),n=i(31890),a=i(66677),l=i(26272),d=i(41488),h=i(23968),p=i(77251),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((0,r.UM)((0,r.yC)(d.LitElement))){constructor(){super(...arguments),this.message="",this.placement="auto",this.disabled=!1,this.opened=!1,this.slotToTooltip=!1,this.slotContent=null,this._keyDownListener=t=>{this.handleKeyDown(t)},this._wheelListener=t=>{this.opened&&this.notifyTooltipDestroy()}}hasMessage(){return this.message&&this.message.trim().length>0}hasSlotContent(){return this.slotContent&&this.slotContent.length>0}get hasTooltipContent(){return this.hasMessage()||this.hasSlotContent()}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this._keyDownListener),window.addEventListener("wheel",this._wheelListener,{passive:!0})}disconnectedCallback(){this.notifyTooltipDisconnected(),super.disconnectedCallback(),document.removeEventListener("keydown",this._keyDownListener),window.removeEventListener("wheel",this._wheelListener)}handleResize(t){var e;null===(e=super.handleResize)||void 0===e||e.call(this,t),(0,a.sg)(()=>{this.slotToTooltip&&(this.disabled=this.reference&&!this.isContentTruncated(this.reference))},100)()}handleFocusIn(t){super.handleFocusIn&&super.handleFocusIn(t),this.notifyTooltipCreate()}handleFocusOut(t){super.handleFocusOut&&super.handleFocusOut(t),this.notifyTooltipDestroy()}openTooltip(){this.dispatchEvent(new CustomEvent("tooltip-create",{bubbles:!0,composed:!0,detail:Object.assign({placement:this.placement,reference:this.reference,popper:this.popper},!this.message&&{slotContent:this.slotContent})}))}notifyTooltipDisconnected(){document.dispatchEvent(new CustomEvent("tooltip-disconnected",{bubbles:!0,composed:!0,detail:{}}))}closeTooltip(){this.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}changeMessage(){this.dispatchEvent(new CustomEvent("tooltip-message",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper}}))}changeSlotContent(t){this.dispatchEvent(new CustomEvent("tooltip-slot",{bubbles:!0,composed:!0,detail:{placement:this.placement,reference:this.reference,popper:this.popper,slotContent:t}}))}notifyTooltipCreate(){!this.disabled&&this.hasTooltipContent&&(this.opened=!0)}notifyTooltipDestroy(){this.disabled||(this.opened=!1)}handleKeyDown(t){t.code===s.Uz.Escape&&this.notifyTooltipDestroy()}handleSlotContentChange(t){const e=t.target;if(e){const t=e.assignedElements({flatten:!0});t.length&&(this.slotContent&&this.changeSlotContent(t),this.slotContent=t)}}updated(t){super.updated(t),t.has("opened")&&(this.opened?this.openTooltip():this.closeTooltip()),t.has("message")&&this.changeMessage(),t.has("disabled")&&this.opened&&(this.opened=!1)}handleSlotChanged(t){const e=t.target;if(this.slotToTooltip&&e){const t=e.assignedNodes({flatten:!0}).map(t=>t.textContent).join(" ").trim();this.message=t,this.disabled=this.reference&&!this.isContentTruncated(this.reference)}}isContentTruncated(t){return t.scrollWidth>t.clientWidth}get tooltipClassMap(){return{"md-tooltip--disabled":this.disabled}}render(){return d.html`
|
|
2356
2361
|
<div class="md-tooltip ${(0,h.classMap)(this.tooltipClassMap)}">
|
|
2357
2362
|
<div class="md-tooltip__popper" role="tooltip" part="tooltip-popper">
|
|
2358
2363
|
<div id="md-tooltip__content" class="md-tooltip__content" part="tooltip-content">
|
|
@@ -2390,7 +2395,7 @@
|
|
|
2390
2395
|
ariaLabel=${this.countryCodeAriaLabel}
|
|
2391
2396
|
codePlaceholder="${this.codePlaceholder}"
|
|
2392
2397
|
.countryCallingCode="${this.countryCallingCode}"
|
|
2393
|
-
@country-code-changed
|
|
2398
|
+
@country-code-changed=${t=>this.handleCountryChange(t)}
|
|
2394
2399
|
?newMomentum=${this.newMomentum}
|
|
2395
2400
|
?isDropdownArrow=${!0}
|
|
2396
2401
|
.clearAriaLabel="${this.clearCountryCodeAriaLabel}"
|
|
@@ -2402,9 +2407,9 @@
|
|
|
2402
2407
|
placeholder=${this.numberPlaceholder}
|
|
2403
2408
|
.ariaInvalid=${this.isValid?"false":"true"}
|
|
2404
2409
|
.ariaLabel=${`${this.dialNumberAriaLabel}`}
|
|
2405
|
-
@input-change
|
|
2406
|
-
@input-blur
|
|
2407
|
-
@input-keydown
|
|
2410
|
+
@input-change=${t=>this.handlePhoneChange(t)}
|
|
2411
|
+
@input-blur=${t=>this.handleBlur(t)}
|
|
2412
|
+
@input-keydown=${t=>this.handleKeydown(t)}
|
|
2408
2413
|
shape="${this.pill?"pill":"none"}"
|
|
2409
2414
|
.ariaControls=${this.id}
|
|
2410
2415
|
clear
|
|
@@ -2450,7 +2455,7 @@
|
|
|
2450
2455
|
</div>
|
|
2451
2456
|
</md-datepicker>
|
|
2452
2457
|
</div>
|
|
2453
|
-
`}};c([(0,a.property)({type:String})],e.prototype,"maxDate",void 0),c([(0,a.property)({type:String})],e.prototype,"minDate",void 0),c([(0,a.property)({type:String})],e.prototype,"weekStart",void 0),c([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),c([(0,a.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),c([(0,a.property)({type:Boolean,attribute:"should-close-on-select"})],e.prototype,"shouldCloseOnSelect",void 0),c([(0,a.property)({type:Boolean,attribute:"twenty-four-hour-format"})],e.prototype,"twentyFourHourFormat",void 0),c([(0,a.property)({type:String})],e.prototype,"timeSpecificity",void 0),c([(0,a.property)({type:String,attribute:"date-value"})],e.prototype,"dateValue",void 0),c([(0,a.property)({type:String,attribute:"time-value"})],e.prototype,"timeValue",void 0),c([(0,a.property)({type:String,reflect:!0})],e.prototype,"value",void 0),c([(0,a.property)({type:Boolean,attribute:"disable-date-validation"})],e.prototype,"disableDateValidation",void 0),c([(0,a.property)({type:String})],e.prototype,"locale",void 0),c([(0,a.property)({type:String,attribute:"placeholder"})],e.prototype,"placeholder",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"useISOFormat",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,a.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),c([(0,a.property)({type:Boolean,attribute:"show-default-now-date"})],e.prototype,"showDefaultNowDate",void 0),c([(0,a.property)({type:Boolean,attribute:"compact-input"})],e.prototype,"compactInput",void 0),c([(0,a.property)({type:Object,attribute:!1})],e.prototype,"controlButtons",void 0),c([(0,a.internalProperty)()],e.prototype,"fullDateTime",void 0),c([(0,a.internalProperty)()],e.prototype,"selectedTimeObject",void 0),c([(0,a.internalProperty)()],e.prototype,"selectedDateObject",void 0),c([(0,a.query)("md-datepicker")],e.prototype,"datePicker",void 0),c([(0,a.query)("md-timepicker")],e.prototype,"timePicker",void 0),e=c([(0,s.w)("md-date-time-picker")],e),t.ELEMENT=e}(o||(o={}))},86610:(t,e,i)=>{i.d(e,{TaskItem:()=>o}),i(38028),i(63704),i(61200);var o,s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(
|
|
2458
|
+
`}};c([(0,a.property)({type:String})],e.prototype,"maxDate",void 0),c([(0,a.property)({type:String})],e.prototype,"minDate",void 0),c([(0,a.property)({type:String})],e.prototype,"weekStart",void 0),c([(0,a.property)({type:String})],e.prototype,"ariaLabel",void 0),c([(0,a.property)({type:Boolean,attribute:"two-digit-auto-tab"})],e.prototype,"twoDigitAutoTab",void 0),c([(0,a.property)({type:Boolean,attribute:"should-close-on-select"})],e.prototype,"shouldCloseOnSelect",void 0),c([(0,a.property)({type:Boolean,attribute:"twenty-four-hour-format"})],e.prototype,"twentyFourHourFormat",void 0),c([(0,a.property)({type:String})],e.prototype,"timeSpecificity",void 0),c([(0,a.property)({type:String,attribute:"date-value"})],e.prototype,"dateValue",void 0),c([(0,a.property)({type:String,attribute:"time-value"})],e.prototype,"timeValue",void 0),c([(0,a.property)({type:String,reflect:!0})],e.prototype,"value",void 0),c([(0,a.property)({type:Boolean,attribute:"disable-date-validation"})],e.prototype,"disableDateValidation",void 0),c([(0,a.property)({type:String})],e.prototype,"locale",void 0),c([(0,a.property)({type:String,attribute:"placeholder"})],e.prototype,"placeholder",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"useISOFormat",void 0),c([(0,a.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,a.property)({type:String,attribute:"positioning-strategy"})],e.prototype,"positioningStrategy",void 0),c([(0,a.property)({type:Boolean,attribute:"show-default-now-date"})],e.prototype,"showDefaultNowDate",void 0),c([(0,a.property)({type:Boolean,attribute:"compact-input"})],e.prototype,"compactInput",void 0),c([(0,a.property)({type:Object,attribute:!1})],e.prototype,"controlButtons",void 0),c([(0,a.internalProperty)()],e.prototype,"fullDateTime",void 0),c([(0,a.internalProperty)()],e.prototype,"selectedTimeObject",void 0),c([(0,a.internalProperty)()],e.prototype,"selectedDateObject",void 0),c([(0,a.query)("md-datepicker")],e.prototype,"datePicker",void 0),c([(0,a.query)("md-timepicker")],e.prototype,"timePicker",void 0),e=c([(0,s.w)("md-date-time-picker")],e),t.ELEMENT=e}(o||(o={}))},86610:(t,e,i)=>{i.d(e,{TaskItem:()=>o}),i(38028),i(63704),i(61200);var o,s=i(31890),r=i(26272),n=i(41488),a=i(40333),l=i(23968),d=i(97822),h=i(31465),p=i(5657),c=i(50182),u=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.mediaType=h.r.TELEPHONY,this.status="",this.popovertitle="",this.queue="",this.queueTimeLabel="",this.accepted=!1,this.displayOnlyTitle=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.disabled=!1,this.customAriaLabel="",this.iconSrc="",this.tabIndexForContainer="0",this.isRestyle=!1,this.displayTitle="",this.titleValue="",this.itemTitleValue="",this.additionEmptyMargin=!1}get title(){return this.displayTitle}set title(t){this.titleValue=t,this.updateTitle()}get itemTitle(){return this.displayTitle}set itemTitle(t){this.itemTitleValue=t,this.updateTitle()}updateTitle(){this.itemTitleValue?this.displayTitle=this.itemTitleValue:this.displayTitle=this.titleValue}handleClick(t){this.dispatchEvent(new CustomEvent("taskitem-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})),this.blur()}handleKeyDown(t){this.dispatchEvent(new CustomEvent("taskitem-keydown",{detail:{key:t.code},bubbles:!0,composed:!0}))}getAriaLabel(){var t,e,i,o;if(this.customAriaLabel)return this.customAriaLabel;let s=this.queue;if(!s){const i=this.querySelector('[slot="queue"]');if(i){s=null!==(e=null===(t=i.textContent)||void 0===t?void 0:t.trim())&&void 0!==e?e:i.innerText.trim();const o=/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/.exec(s);if(o){const[,t=0,e,i]=o.map(Number);(new Date).setHours(t,e,i),s=s.replace(/(?:([01]?\d|2[0-3]):)?([0-5]?\d):([0-5]?\d)/,`${t?t+" hours ":""}${e} minutes ${i} seconds`)}}}const r=this.querySelector('[slot="queue-time"]');let n=this.queueTimeLabel;return r&&(n+=`${null!==(o=null===(i=r.textContent)||void 0===i?void 0:i.trim())&&void 0!==o?o:r.innerText.trim()}`),`${this.mediaType} ${this.status} ${this.popovertitle} ${this.itemTitle} ${s} ${n} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[r.A,c.A]}get sanitizedTabIndexForContainer(){var t;return null!==(t=parseInt(this.tabIndexForContainer))&&void 0!==t?t:0}handleAdditionSlotChange(){var t;const e=(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".md-taskitem__addition")).getBoundingClientRect();this.additionEmptyMargin=0===e.width&&0===e.height}render(){return n.html`
|
|
2454
2459
|
<div
|
|
2455
2460
|
part="task-item-container"
|
|
2456
2461
|
class="md-taskitem ${(0,l.classMap)({selected:this.selected})}"
|
|
@@ -2459,11 +2464,11 @@
|
|
|
2459
2464
|
@click=${t=>this.handleClick(t)}
|
|
2460
2465
|
@keydown=${t=>this.handleKeyDown(t)}
|
|
2461
2466
|
aria-label=${this.getAriaLabel()}
|
|
2462
|
-
aria-disabled=${(0,
|
|
2467
|
+
aria-disabled=${(0,d.ifDefined)(this.disabled||void 0)}
|
|
2463
2468
|
>
|
|
2464
2469
|
<div class="md-taskitem__mediatype">
|
|
2465
|
-
${(0,
|
|
2466
|
-
${this.status&&!this.isRestyle?n.html` <span class=${`md-taskitem__status ${this.status}`}> ${(0,
|
|
2470
|
+
${(0,p.i0)(this.isRestyle,this.mediaType,this.selected,this.status,this.iconSrc)}
|
|
2471
|
+
${this.status&&!this.isRestyle?n.html` <span class=${`md-taskitem__status ${this.status}`}> ${(0,p.LG)(this.status)} </span> `:a.nothing}
|
|
2467
2472
|
</div>
|
|
2468
2473
|
<div class="md-taskitem__content" part="task-item-content">
|
|
2469
2474
|
${this.popovertitle?n.html`
|
|
@@ -2476,7 +2481,9 @@
|
|
|
2476
2481
|
class="md-taskitem__content_title ${(0,l.classMap)({mainTitle:!this.popovertitle,"display-only-title":this.displayOnlyTitle})}"
|
|
2477
2482
|
><md-tooltip placement="bottom" slot-to-tooltip>${this.itemTitle}</md-tooltip></span
|
|
2478
2483
|
>
|
|
2479
|
-
`:n.html`
|
|
2484
|
+
`:n.html`
|
|
2485
|
+
<span class="md-taskitem__content_popover_title popover-item-title"><slot name="title"></slot></span>
|
|
2486
|
+
`}
|
|
2480
2487
|
<div class="md-taskitem__content_inner">
|
|
2481
2488
|
${this.displayOnlyTitle?a.nothing:n.html`
|
|
2482
2489
|
<span class="md-taskitem__content_queue">
|
|
@@ -2503,8 +2510,8 @@
|
|
|
2503
2510
|
${this.lastmessage?a.nothing:n.html` <slot name="lastmessage"></slot> `}
|
|
2504
2511
|
</div>
|
|
2505
2512
|
<div class="md-taskitem__addition ${(0,l.classMap)({empty_addition:this.additionEmptyMargin})}">
|
|
2506
|
-
<slot @slotchange
|
|
2507
|
-
${(0,
|
|
2513
|
+
<slot @slotchange=${this.handleAdditionSlotChange}></slot>
|
|
2514
|
+
${(0,p.Um)(this.quantity,this.isRestyle,this)}
|
|
2508
2515
|
</div>
|
|
2509
2516
|
</div>
|
|
2510
2517
|
`}};u([(0,n.property)({type:String})],e.prototype,"mediaType",void 0),u([(0,n.property)({type:String})],e.prototype,"status",void 0),u([(0,n.property)({type:String})],e.prototype,"popovertitle",void 0),u([(0,n.property)({type:String})],e.prototype,"queue",void 0),u([(0,n.property)({type:String,attribute:"queue-time-label"})],e.prototype,"queueTimeLabel",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"accepted",void 0),u([(0,n.property)({type:Boolean,attribute:"display-only-title"})],e.prototype,"displayOnlyTitle",void 0),u([(0,n.property)({type:Number})],e.prototype,"quantity",void 0),u([(0,n.property)({type:String})],e.prototype,"lastmessage",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"selected",void 0),u([(0,n.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,n.property)({type:String})],e.prototype,"customAriaLabel",void 0),u([(0,n.property)({type:String})],e.prototype,"iconSrc",void 0),u([(0,n.property)({type:String})],e.prototype,"tabIndexForContainer",void 0),u([(0,n.property)({type:Boolean,attribute:"is-restyle"})],e.prototype,"isRestyle",void 0),u([(0,n.property)({type:String,reflect:!0})],e.prototype,"title",null),u([(0,n.property)({type:String,reflect:!0,attribute:"item-title"})],e.prototype,"itemTitle",null),u([(0,n.internalProperty)()],e.prototype,"additionEmptyMargin",void 0),e=u([(0,s.w)("md-task-item")],e),t.ELEMENT=e}(o||(o={}))},86635:t=>{t.exports=l},90195:(t,e,i)=>{var o,s,r,n;i.d(e,{R5:()=>s,Uz:()=>o,iw:()=>n}),function(t){t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.ArrowUp="ArrowUp",t.Backspace="Backspace",t.Delete="Delete",t.End="End",t.Enter="Enter",t.Escape="Escape",t.Home="Home",t.Space="Space",t.Tab="Tab",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.NumpadEnter="NumpadEnter"}(o||(o={})),function(t){t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.AM_PM="am_pm"}(s||(s={})),function(t){t.GRAMMAR="grammar",t.FALSE="false",t.SPELLING="spelling",t.TRUE="true"}(r||(r={})),function(t){t.AriaActivedescendant="aria-activedescendant"}(n||(n={}))},90827:(t,e,i)=>{i.d(e,{CardV2:()=>u}),i(96798),i(61200),i(83192);var o=i(31890),s=i(26272),r=i(41488),n=i(40333),a=i(23968),l=i(65796),d=i(52759),h=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const p="hh:mm:ss";var c,u;!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(c||(c={})),function(t){let e=class extends r.LitElement{constructor(){super(...arguments),this.state=c.DEFAULT,this.identifier=void 0,this.header=void 0,this.info=void 0,this.data=void 0,this.createdTime=0,this.active=!1,this.expandable=!1,this.expandAriaLabel="Expand for more details",this.renderedData=""}connectedCallback(){super.connectedCallback(),this.checkForExtraInfoSlot()}disconnectedCallback(){super.disconnectedCallback(),this.clearInterval()}clearInterval(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}static get styles(){return[s.A,d.A]}get isCardActive(){return this.state===c.ACTIVE}update(t){super.update(t),(t.has("active")||t.has("data")||t.has("createdTime"))&&this.calculateRenderedData()}expandCardToggled(){var t;this.state=this.isCardActive?c.DEFAULT:c.ACTIVE,this.dispatchEvent(new CustomEvent("expand-card-toggled",{detail:{identifier:null!==(t=this.identifier)&&void 0!==t?t:"",active:this.isCardActive},bubbles:!0,composed:!0}))}checkForExtraInfoSlot(){var t;(null===(t=this.extraInfoSlot)||void 0===t?void 0:t.assignedNodes().length)>0?this.setAttribute("has-extra-info",""):this.removeAttribute("has-extra-info")}handleExtraInfoSlotChange(t){this.checkForExtraInfoSlot()}get cardClassMap(){return{"md-card-v2":!0,[`md-card--${this.state}`]:!0}}get contentClassMap(){return{"md-card-v2-content":!0,inactive:this.state===c.INACTIVE}}get footerExpandClassMap(){return{"md-card-v2-footer-expand":!0,hidden:!this.expandable}}get expandCardHandler(){return this.expandable?this.expandCardToggled:null}renderHeader(){return r.html`
|
|
@@ -2585,8 +2592,11 @@
|
|
|
2585
2592
|
<div class="md-chat-message_title">
|
|
2586
2593
|
<span>${this.isSelfType?this.computedYouLabel:this.title}</span>
|
|
2587
2594
|
</div>
|
|
2588
|
-
${this.clickableTimestamp?n.html`<md-link
|
|
2589
|
-
|
|
2595
|
+
${this.clickableTimestamp?n.html`<md-link
|
|
2596
|
+
class="md-chat-message_time"
|
|
2597
|
+
@click=${t=>{t.preventDefault(),this.timeStampClicked()}}
|
|
2598
|
+
>${this.time}</md-link
|
|
2599
|
+
>`:n.html`<div class="md-chat-message_time">${this.time}</div>`}
|
|
2590
2600
|
<div class="md-chat-message_status">${this.status}</div>
|
|
2591
2601
|
<div class="md-chat-message_custom_content">
|
|
2592
2602
|
<slot name="custom-content"></slot>
|
|
@@ -2707,7 +2717,7 @@
|
|
|
2707
2717
|
secondaryLabel
|
|
2708
2718
|
.htmlFor=${this.htmlId}
|
|
2709
2719
|
.label=${this.secondaryLabel}
|
|
2710
|
-
@label-click
|
|
2720
|
+
@label-click=${()=>this.handleLabelClick()}
|
|
2711
2721
|
></md-label>
|
|
2712
2722
|
`:d.nothing}helpTextTemplate(){return this.helpText?l.html`
|
|
2713
2723
|
<md-help-text
|
|
@@ -2731,7 +2741,7 @@
|
|
|
2731
2741
|
class="md-input__label ${(0,h.classMap)({disabled:this.disabled,newMomentum:this.newMomentum})}"
|
|
2732
2742
|
.htmlFor=${this.htmlId}
|
|
2733
2743
|
.label=${this.label}
|
|
2734
|
-
@label-click
|
|
2744
|
+
@label-click=${()=>this.handleLabelClick()}
|
|
2735
2745
|
></md-label>
|
|
2736
2746
|
`:d.nothing}static get styles(){return[a.A,m.A]}render(){return l.html`
|
|
2737
2747
|
<div class="md-input-container ${(0,h.classMap)(this.inputClassMap)}" part="md-input-container">
|
|
@@ -2741,14 +2751,14 @@
|
|
|
2741
2751
|
</div>
|
|
2742
2752
|
${this.messagesTemplate()} ${this.secondaryLabelTemplate()} ${this.helpTextTemplate()}
|
|
2743
2753
|
</div>
|
|
2744
|
-
`}};y([(0,l.property)({type:String})],i.prototype,"ariaDescribedBy",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"ariaInvalid",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaLabel",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,l.property)({type:String})],i.prototype,"auxiliaryContentPosition",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"clear",void 0),y([(0,l.property)({type:String})],i.prototype,"clearAriaLabel",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"compact",void 0),y([(0,l.property)({type:String})],i.prototype,"containerSize",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"disabled",void 0),y([(0,l.property)({type:String})],i.prototype,"id",void 0),y([(0,l.property)({type:String})],i.prototype,"inputSize",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"isFilled",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"isLoading",void 0),y([(0,l.property)({type:String})],i.prototype,"label",void 0),y([(0,l.property)({type:String})],i.prototype,"helpText",void 0),y([(0,l.property)({type:Boolean,attribute:"hide-message",reflect:!0})],i.prototype,"hideMessage",void 0),y([(0,l.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,l.property)({type:String})],i.prototype,"role",void 0),y([(0,l.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,l.property)({type:Number,reflect:!0})],i.prototype,"min",void 0),y([(0,l.property)({type:Number,reflect:!0})],i.prototype,"max",void 0),y([(0,l.property)({type:Number})],i.prototype,"maxLength",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"multi",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"multiline",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"name",void 0),y([(0,l.property)({type:Number})],i.prototype,"nestedLevel",void 0),y([(0,l.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"readOnly",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"required",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"searchable",void 0),y([(0,l.property)({type:String})],i.prototype,"secondaryLabel",void 0),y([(0,l.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),y([(0,l.property)({type:String})],i.prototype,"shape",void 0),y([(0,l.property)({type:String})],i.prototype,"type",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"value",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaControls",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaExpanded",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,l.property)({type:Object})],i.prototype,"control",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"disableUserTextInput",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"showDropdown",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"dropdownExpanded",void 0),y([(0,l.property)({type:String})],i.prototype,"dropdownAriaLabel",void 0),y([(0,l.query)(".md-input")],i.prototype,"input",void 0),y([(0,l.internalProperty)()],i.prototype,"isEditing",void 0),y([(0,l.query)('slot[name="input-section-right"]')],i.prototype,"inputSectionRightSlot",void 0),y([(0,l.internalProperty)()],i.prototype,"hasRightSlotContent",void 0),i=y([(0,r.w)("md-input")],i),t.ELEMENT=i}(o||(o={}))},96798:(t,e,i)=>{i.d(e,{Button:()=>o});var o,s=i(73940),r=(i(12176),i(31890)),n=i(26283),a=i(26272),l=i(41488),d=i(40333),h=i(23968),p=i(97822),c=i(11740),u=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this._active=!1,this._tabIndex=0,this.ariaLabel="",this.ariaLabelledBy="",this.ariaLive="",this.ariaExpanded="",this.ariaHaspopup="false",this.ariaPressed="",this.circle=!1,this.rounded=!1,this.color="",this.containerLarge=!1,this.disabled=!1,this.href="",this.id="",this.value="",this.keyboardKey="",this.label="",this.loading=!1,this.outline=!1,this.hasRemoveStyle=!1,this.size="32",this.tag="button",this.type="button",this.role="button",this.variant="secondary",this.width="",this.maxWidth="",this.activityType="",this.iconActive=!1,this.isActive=!1,this.renderWidth=()=>this.width?`width: ${this.width};`:d.nothing,this.renderMaxWidth=()=>this.maxWidth?`max-width: ${this.maxWidth};`:d.nothing,this.getStyles=()=>{if(this.width||this.maxWidth)return l.html`
|
|
2754
|
+
`}};y([(0,l.property)({type:String})],i.prototype,"ariaDescribedBy",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"ariaInvalid",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaLabel",void 0),y([(0,l.property)({type:Boolean,reflect:!0})],i.prototype,"autofocus",void 0),y([(0,l.property)({type:String})],i.prototype,"auxiliaryContentPosition",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"clear",void 0),y([(0,l.property)({type:String})],i.prototype,"clearAriaLabel",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"compact",void 0),y([(0,l.property)({type:String})],i.prototype,"containerSize",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"disabled",void 0),y([(0,l.property)({type:String})],i.prototype,"id",void 0),y([(0,l.property)({type:String})],i.prototype,"inputSize",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"isFilled",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"isLoading",void 0),y([(0,l.property)({type:String})],i.prototype,"label",void 0),y([(0,l.property)({type:String})],i.prototype,"helpText",void 0),y([(0,l.property)({type:Boolean,attribute:"hide-message",reflect:!0})],i.prototype,"hideMessage",void 0),y([(0,l.property)({type:String})],i.prototype,"htmlId",void 0),y([(0,l.property)({type:String})],i.prototype,"role",void 0),y([(0,l.property)({type:Array})],i.prototype,"messageArr",void 0),y([(0,l.property)({type:Number,reflect:!0})],i.prototype,"min",void 0),y([(0,l.property)({type:Number,reflect:!0})],i.prototype,"max",void 0),y([(0,l.property)({type:Number})],i.prototype,"maxLength",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"multi",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"multiline",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"name",void 0),y([(0,l.property)({type:Number})],i.prototype,"nestedLevel",void 0),y([(0,l.property)({type:String})],i.prototype,"placeholder",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"readOnly",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"required",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"searchable",void 0),y([(0,l.property)({type:String})],i.prototype,"secondaryLabel",void 0),y([(0,l.property)({type:Boolean,attribute:"select-when-in-focus"})],i.prototype,"selectWhenInFocus",void 0),y([(0,l.property)({type:String})],i.prototype,"shape",void 0),y([(0,l.property)({type:String})],i.prototype,"type",void 0),y([(0,l.property)({type:String,reflect:!0})],i.prototype,"value",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaControls",void 0),y([(0,l.property)({type:String})],i.prototype,"ariaExpanded",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"newMomentum",void 0),y([(0,l.property)({type:Object})],i.prototype,"control",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"disableUserTextInput",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"showDropdown",void 0),y([(0,l.property)({type:Boolean})],i.prototype,"dropdownExpanded",void 0),y([(0,l.property)({type:String})],i.prototype,"dropdownAriaLabel",void 0),y([(0,l.query)(".md-input")],i.prototype,"input",void 0),y([(0,l.internalProperty)()],i.prototype,"isEditing",void 0),y([(0,l.query)('slot[name="input-section-right"]')],i.prototype,"inputSectionRightSlot",void 0),y([(0,l.internalProperty)()],i.prototype,"hasRightSlotContent",void 0),i=y([(0,r.w)("md-input")],i),t.ELEMENT=i}(o||(o={}))},96798:(t,e,i)=>{i.d(e,{Button:()=>o});var o,s=i(73940),r=(i(12176),i(31890)),n=i(26283),a=i(26272),l=i(41488),d=i(40333),h=i(23968),p=i(97822),c=i(11740),u=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends l.LitElement{constructor(){super(...arguments),this._active=!1,this._tabIndex=0,this.ariaLabel="",this.ariaLabelledBy="",this.ariaLive="",this.ariaExpanded="",this.ariaHaspopup="false",this.ariaPressed="",this.circle=!1,this.rounded=!1,this.color="",this.containerLarge=!1,this.disabled=!1,this.href="",this.id="",this.value="",this.keyboardKey="",this.label="",this.loading=!1,this.outline=!1,this.hasRemoveStyle=!1,this.size="32",this.tag="button",this.type="button",this.role="button",this.variant="secondary",this.width="",this.maxWidth="",this.activityType="",this.iconActive=!1,this.isActive=!1,this.autofocus=!1,this.renderWidth=()=>this.width?`width: ${this.width};`:d.nothing,this.renderMaxWidth=()=>this.maxWidth?`max-width: ${this.maxWidth};`:d.nothing,this.getStyles=()=>{if(this.width||this.maxWidth)return l.html`
|
|
2745
2755
|
<style>
|
|
2746
2756
|
:host .md-button--${this.size} {
|
|
2747
2757
|
${this.renderWidth()};
|
|
2748
2758
|
${this.renderMaxWidth()};
|
|
2749
2759
|
}
|
|
2750
2760
|
</style>
|
|
2751
|
-
`},this.iconTemplate=()=>this.loading?l.html` <md-spinner size="16"></md-spinner> `:l.html` <slot name="icon"></slot> `,this.textTemplate=()=>this.circle&&this.hasIcon?d.nothing:l.html` <slot name="text"></slot> `}get active(){return this._active}set active(t){const e=this._active;this._active=t,this.requestUpdate("active",e)}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}handleKeyDown(t){if(this.disabled)return;const{code:e}=t;(0,n.o)(e)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleClick(t){var e;this.disabled||(null===(e=this.clickFunction)||void 0===e||e.call(this),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})))}static get styles(){return[a.A,c.A,s.A]}get buttonClassMap(){return{"md-button--circle":this.circle,"md-button--rounded":this.rounded,"md-button--none":this.hasRemoveStyle,"md-button--outline":this.outline,active:this.active&&!this.disabled,disabled:this.disabled&&!this.active,isActive:this.isActive,[`md-button--${this.size}`]:!this.hasRemoveStyle,[`md-button--${this.color}`]:!this.hasRemoveStyle&&!!this.color,[`md-activity__${this.activityType}`]:!!this.activityType,"md-activity":!!this.activityType,"md-button--icon":this.iconActive,"md-button--onlyicon":this.hasIcon&&!this.slottedText,"md-button--placeholder-text":!0===this.isPlaceholderText}}get slottedText(){var t;return null===(t=this.querySelector("[slot=text]"))||void 0===t?void 0:t.textContent}get hasIcon(){return null!==this.querySelector("[slot=icon]")||this.loading}childrenTemplate(){return l.html`
|
|
2761
|
+
`},this.iconTemplate=()=>this.loading?l.html` <md-spinner size="16"></md-spinner> `:l.html` <slot name="icon"></slot> `,this.textTemplate=()=>this.circle&&this.hasIcon?d.nothing:l.html` <slot name="text"></slot> `}get active(){return this._active}set active(t){const e=this._active;this._active=t,this.requestUpdate("active",e)}get tabIndex(){return this._tabIndex}set tabIndex(t){const e=this._tabIndex;this._tabIndex=t,this.requestUpdate("tabIndex",e)}firstUpdated(t){super.firstUpdated(t),this.autofocus&&requestAnimationFrame(()=>{this.manageAutoFocus()})}manageAutoFocus(t=this){t.focus()}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}blur(){var t;null===(t=this.button)||void 0===t||t.blur()}handleKeyDown(t){if(this.disabled)return;const{code:e}=t;(0,n.o)(e)&&this.dispatchEvent(new CustomEvent("button-keydown",{composed:!0,bubbles:!0,detail:{srcEvent:t}}))}handleClick(t){var e;this.disabled||(null===(e=this.clickFunction)||void 0===e||e.call(this),this.dispatchEvent(new CustomEvent("button-click",{composed:!0,bubbles:!0,detail:{srcEvent:t}})))}static get styles(){return[a.A,c.A,s.A]}get buttonClassMap(){return{"md-button--circle":this.circle,"md-button--rounded":this.rounded,"md-button--none":this.hasRemoveStyle,"md-button--outline":this.outline,active:this.active&&!this.disabled,disabled:this.disabled&&!this.active,isActive:this.isActive,[`md-button--${this.size}`]:!this.hasRemoveStyle,[`md-button--${this.color}`]:!this.hasRemoveStyle&&!!this.color,[`md-activity__${this.activityType}`]:!!this.activityType,"md-activity":!!this.activityType,"md-button--icon":this.iconActive,"md-button--onlyicon":this.hasIcon&&!this.slottedText,"md-button--placeholder-text":!0===this.isPlaceholderText}}get slottedText(){var t;return null===(t=this.querySelector("[slot=text]"))||void 0===t?void 0:t.textContent}get hasIcon(){return null!==this.querySelector("[slot=icon]")||this.loading}childrenTemplate(){return l.html`
|
|
2752
2762
|
<span part="button-children" class="md-button__children">
|
|
2753
2763
|
${this.iconTemplate()} ${this.textTemplate()}
|
|
2754
2764
|
<slot></slot>
|
|
@@ -2819,7 +2829,7 @@
|
|
|
2819
2829
|
<div part="button-label" class="md-button__label">${this.label}</div>
|
|
2820
2830
|
</div>
|
|
2821
2831
|
`:l.html` ${this.buttonTemplate(this.tag)} `}
|
|
2822
|
-
`}};u([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"active",null),u([(0,l.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),u([(0,l.property)({type:String})],e.prototype,"ariaLabel",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaLabelledBy",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaLive",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaExpanded",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaHaspopup",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaPressed",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"circle",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"rounded",void 0),u([(0,l.property)({type:String})],e.prototype,"color",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"containerLarge",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,l.property)({type:String})],e.prototype,"href",void 0),u([(0,l.property)({type:String})],e.prototype,"id",void 0),u([(0,l.property)({type:String})],e.prototype,"value",void 0),u([(0,l.property)({type:String})],e.prototype,"keyboardKey",void 0),u([(0,l.property)({type:String})],e.prototype,"label",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"loading",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"outline",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"hasRemoveStyle",void 0),u([(0,l.property)({type:String})],e.prototype,"size",void 0),u([(0,l.property)({type:String})],e.prototype,"tag",void 0),u([(0,l.property)({type:String})],e.prototype,"type",void 0),u([(0,l.property)({type:String})],e.prototype,"role",void 0),u([(0,l.property)({type:String})],e.prototype,"variant",void 0),u([(0,l.property)({type:String})],e.prototype,"width",void 0),u([(0,l.property)({type:String})],e.prototype,"maxWidth",void 0),u([(0,l.property)({type:String})],e.prototype,"activityType",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"iconActive",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"isActive",void 0),u([(0,l.property)({type:String,attribute:"aria-describedby"})],e.prototype,"ariaDescribedBy",void 0),u([(0,l.property)({attribute:!1})],e.prototype,"clickFunction",void 0),u([(0,l.property)({type:Boolean,attribute:"is-placeholder-text"})],e.prototype,"isPlaceholderText",void 0),u([(0,l.query)(".md-button")],e.prototype,"button",void 0),e=u([(0,r.w)("md-button")],e),t.ELEMENT=e}(o||(o={}))},97737:(t,e,i)=>{i.d(e,{TabPanel:()=>o});var o,s=i(3001),r=i(31890),n=i(26272),a=i(41488),l=i(30076),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,s.yC)(a.LitElement)){constructor(){super(...arguments),this.selected=!1,this.name="",this.focusablePanel="true"}static get styles(){return[n.A,l.A]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tabpanel")}firstUpdated(t){super.firstUpdated(t),"true"===this.focusablePanel&&this.setAttribute("tabindex","0")}render(){return a.html` <slot></slot> `}};d([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),d([(0,a.property)({type:String,attribute:"name"})],e.prototype,"name",void 0),d([(0,a.property)({type:String,attribute:"focusable-panel"})],e.prototype,"focusablePanel",void 0),e=d([(0,r.w)("md-tab-panel")],e),t.ELEMENT=e}(o||(o={}))},97822:t=>{t.exports=s},97866:(t,e,i)=>{i.d(e,{Form:()=>o});var o,s=i(3001),r=i(41488),n=i(97822),a=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((0,s.TS)(r.LitElement)){constructor(){super(...arguments),this.rel="",this.name="",this.action="",this.label="",this.method="get",this.target="_self",this.enctype="application/x-www-form-urlencoded",this.novalidate=!1,this.charset="UTF-8",this.isvalid=!1,this.token="on",this.allowRedirect=!1,this.autofillname="input-name",this.formElement=[],this.handleSubmit=t=>{t.preventDefault(),this.validated()&&this.submitForm()},this.handleFormSubmit=t=>{this.allowRedirect||t.preventDefault(),this.dispatchEvent(new CustomEvent("form-submitted",{composed:!0,bubbles:!0}))}}get formMethod(){return"GET"===this.method?"get":"POST"===this.method?"post":this.method}isSubmittable(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement}isDisabled(t){return t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")}findSubmittable(t,e){const i=Array.from(t.children);for(const t of i)if(!this.isDisabled(t))if(this.isSubmittable(t)&&e.add(t),t.shadowRoot)this.findSubmittable(t.shadowRoot,e);else if("SLOT"===t.tagName){const i=t.assignedElements();if(i.length){const{parentElement:t}=i[0];t&&this.findSubmittable(t,e)}}else this.findSubmittable(t,e);return[...e]}validated(){return!!this.novalidate||this.isvalid}submitForm(){const{form:t}=this;t.requestSubmit?t.requestSubmit():t.submit()}get submitButton(){return this.querySelector("button[type='submit']")||this.querySelector("input[type='submit']")||this.querySelector("md-button[type='submit']")}disconnectedCallback(){super.disconnectedCallback(),this.cleanupWrappedForms(),this.teardownEvents()}deleteWrappedForm(t){t.removeEventListener("submit",this.handleFormSubmit)}cleanupWrappedForms(){const{formElement:t}=this;if(t.length)for(const e of t)this.deleteWrappedForm(e);this.formElement=[]}createWrappedForm(t){const e=document.createElement("form");e.addEventListener("submit",this.handleFormSubmit);const{parentNode:i}=t;t.autocomplete=this.token,t.id||(t.id=this.autofillname),t.name||(t.name=this.autofillname),i&&(this.formElement.push(e),i.insertBefore(e,t),e.append(t))}teardownEvents(){this.submitButton&&this.submitButton.removeEventListener("click",this.handleSubmit)}setupEvents(){this.submitButton&&this.submitButton.addEventListener("click",this.handleSubmit)}setupSubmittable(){const t=this.findSubmittable(this.form,new Set);if(t.length)for(const e of t)this.createWrappedForm(e)}slottedChanged(){this.setupSubmittable(),this.setupEvents()}render(){return r.html`
|
|
2832
|
+
`}};u([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"active",null),u([(0,l.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),u([(0,l.property)({type:String})],e.prototype,"ariaLabel",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaLabelledBy",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaLive",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaExpanded",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaHaspopup",void 0),u([(0,l.property)({type:String})],e.prototype,"ariaPressed",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"circle",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"rounded",void 0),u([(0,l.property)({type:String})],e.prototype,"color",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"containerLarge",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),u([(0,l.property)({type:String})],e.prototype,"href",void 0),u([(0,l.property)({type:String})],e.prototype,"id",void 0),u([(0,l.property)({type:String})],e.prototype,"value",void 0),u([(0,l.property)({type:String})],e.prototype,"keyboardKey",void 0),u([(0,l.property)({type:String})],e.prototype,"label",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"loading",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"outline",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"hasRemoveStyle",void 0),u([(0,l.property)({type:String})],e.prototype,"size",void 0),u([(0,l.property)({type:String})],e.prototype,"tag",void 0),u([(0,l.property)({type:String})],e.prototype,"type",void 0),u([(0,l.property)({type:String})],e.prototype,"role",void 0),u([(0,l.property)({type:String})],e.prototype,"variant",void 0),u([(0,l.property)({type:String})],e.prototype,"width",void 0),u([(0,l.property)({type:String})],e.prototype,"maxWidth",void 0),u([(0,l.property)({type:String})],e.prototype,"activityType",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"iconActive",void 0),u([(0,l.property)({type:Boolean})],e.prototype,"isActive",void 0),u([(0,l.property)({type:String,attribute:"aria-describedby"})],e.prototype,"ariaDescribedBy",void 0),u([(0,l.property)({attribute:!1})],e.prototype,"clickFunction",void 0),u([(0,l.property)({type:Boolean,attribute:"is-placeholder-text"})],e.prototype,"isPlaceholderText",void 0),u([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),u([(0,l.query)(".md-button")],e.prototype,"button",void 0),e=u([(0,r.w)("md-button")],e),t.ELEMENT=e}(o||(o={}))},97737:(t,e,i)=>{i.d(e,{TabPanel:()=>o});var o,s=i(3001),r=i(31890),n=i(26272),a=i(41488),l=i(30076),d=function(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends((0,s.yC)(a.LitElement)){constructor(){super(...arguments),this.selected=!1,this.name="",this.focusablePanel="true"}static get styles(){return[n.A,l.A]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tabpanel")}firstUpdated(t){super.firstUpdated(t),"true"===this.focusablePanel&&this.setAttribute("tabindex","0")}render(){return a.html` <slot></slot> `}};d([(0,a.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),d([(0,a.property)({type:String,attribute:"name"})],e.prototype,"name",void 0),d([(0,a.property)({type:String,attribute:"focusable-panel"})],e.prototype,"focusablePanel",void 0),e=d([(0,r.w)("md-tab-panel")],e),t.ELEMENT=e}(o||(o={}))},97822:t=>{t.exports=s},97866:(t,e,i)=>{i.d(e,{Form:()=>o});var o,s=i(3001),r=i(41488),n=i(97822),a=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((0,s.TS)(r.LitElement)){constructor(){super(...arguments),this.rel="",this.name="",this.action="",this.label="",this.method="get",this.target="_self",this.enctype="application/x-www-form-urlencoded",this.novalidate=!1,this.charset="UTF-8",this.isvalid=!1,this.token="on",this.allowRedirect=!1,this.autofillname="input-name",this.formElement=[],this.handleSubmit=t=>{t.preventDefault(),this.validated()&&this.submitForm()},this.handleFormSubmit=t=>{this.allowRedirect||t.preventDefault(),this.dispatchEvent(new CustomEvent("form-submitted",{composed:!0,bubbles:!0}))}}get formMethod(){return"GET"===this.method?"get":"POST"===this.method?"post":this.method}isSubmittable(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement}isDisabled(t){return t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")}findSubmittable(t,e){const i=Array.from(t.children);for(const t of i)if(!this.isDisabled(t))if(this.isSubmittable(t)&&e.add(t),t.shadowRoot)this.findSubmittable(t.shadowRoot,e);else if("SLOT"===t.tagName){const i=t.assignedElements();if(i.length){const{parentElement:t}=i[0];t&&this.findSubmittable(t,e)}}else this.findSubmittable(t,e);return[...e]}validated(){return!!this.novalidate||this.isvalid}submitForm(){const{form:t}=this;t.requestSubmit?t.requestSubmit():t.submit()}get submitButton(){return this.querySelector("button[type='submit']")||this.querySelector("input[type='submit']")||this.querySelector("md-button[type='submit']")}disconnectedCallback(){super.disconnectedCallback(),this.cleanupWrappedForms(),this.teardownEvents()}deleteWrappedForm(t){t.removeEventListener("submit",this.handleFormSubmit)}cleanupWrappedForms(){const{formElement:t}=this;if(t.length)for(const e of t)this.deleteWrappedForm(e);this.formElement=[]}createWrappedForm(t){const e=document.createElement("form");e.addEventListener("submit",this.handleFormSubmit);const{parentNode:i}=t;t.autocomplete=this.token,t.id||(t.id=this.autofillname),t.name||(t.name=this.autofillname),i&&(this.formElement.push(e),i.insertBefore(e,t),e.append(t))}teardownEvents(){this.submitButton&&this.submitButton.removeEventListener("click",this.handleSubmit)}setupEvents(){this.submitButton&&this.submitButton.addEventListener("click",this.handleSubmit)}setupSubmittable(){const t=this.findSubmittable(this.form,new Set);if(t.length)for(const e of t)this.createWrappedForm(e)}slottedChanged(){this.setupSubmittable(),this.setupEvents()}render(){return r.html`
|
|
2823
2833
|
<form
|
|
2824
2834
|
class="md-form"
|
|
2825
2835
|
role="form"
|
|
@@ -2859,4 +2869,4 @@
|
|
|
2859
2869
|
size="16"
|
|
2860
2870
|
></md-icon>
|
|
2861
2871
|
</label>
|
|
2862
|
-
`}};c([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"checked",void 0),c([(0,l.property)({type:String})],e.prototype,"value",void 0),c([(0,l.property)({type:String})],e.prototype,"id",void 0),c([(0,l.property)({type:String})],e.prototype,"label",void 0),c([(0,l.internalProperty)()],e.prototype,"customId",void 0),e=c([(0,n.w)("md-favorite")],e),t.ELEMENT=e}(o||(o={}))}},j={};function U(t){var e=j[t];if(void 0!==e)return e.exports;var i=j[t]={exports:{}};return N[t].call(i.exports,i,i.exports,U),i.exports}U.m=N,_=[],U.O=(t,e,i,o)=>{if(!e){var s=1/0;for(l=0;l<_.length;l++){for(var[e,i,o]=_[l],r=!0,n=0;n<e.length;n++)(!1&o||s>=o)&&Object.keys(U.O).every(t=>U.O[t](e[n]))?e.splice(n--,1):(r=!1,o<s&&(s=o));if(r){_.splice(l--,1);var a=i();void 0!==a&&(t=a)}}return t}o=o||0;for(var l=_.length;l>0&&_[l-1][2]>o;l--)_[l]=_[l-1];_[l]=[e,i,o]},U.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return U.d(e,{a:e}),e},z=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,U.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);U.r(i);var o={};B=B||[null,z({}),z([]),z(z)];for(var s=2&e&&t;("object"==typeof s||"function"==typeof s)&&!~B.indexOf(s);s=z(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>t[e]);return o.default=()=>t,U.d(i,o),i},U.d=(t,e)=>{for(var i in e)U.o(e,i)&&!U.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},U.f={},U.e=t=>Promise.all(Object.keys(U.f).reduce((e,i)=>(U.f[i](t,e),e),[])),U.u=t=>"chunks/md-"+t+".js",U.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),U.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),F={},V="@momentum-ui/web-components:",U.l=(t,e,i,o)=>{if(F[t])F[t].push(e);else{var s,r;if(void 0!==i)for(var n=document.getElementsByTagName("script"),a=0;a<n.length;a++){var l=n[a];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==V+i){s=l;break}}s||(r=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,U.nc&&s.setAttribute("nonce",U.nc),s.setAttribute("data-webpack",V+i),s.src=t),F[t]=[e];var d=(e,i)=>{s.onerror=s.onload=null,clearTimeout(h);var o=F[t];if(delete F[t],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(t=>t(i)),e)return e(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),r&&document.head.appendChild(s)}},U.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},U.p="/",(()=>{var t={109:0,144:0,195:0,445:0,502:0,555:0,671:0,762:0,984:0,1037:0,1200:0,1266:0,1323:0,1439:0,1459:0,1462:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,2105:0,2139:0,2169:0,2176:0,2330:0,2434:0,2547:0,2555:0,2576:0,2779:0,2781:0,2909:0,3001:0,3079:0,3192:0,3413:0,3477:0,3539:0,3747:0,3820:0,3938:0,3943:0,4131:0,4139:0,4259:0,4545:0,4908:0,4928:0,4971:0,5156:0,5310:0,5369:0,5382:0,5427:0,5433:0,5517:0,6029:0,6060:0,6085:0,6132:0,6220:0,6396:0,6408:0,6433:0,6494:0,6587:0,6677:0,6724:0,6753:0,6754:0,6798:0,6834:0,6920:0,7119:0,7145:0,7219:0,7455:0,7684:0,7711:0,7719:0,7763:0,7814:0,7927:0,8028:0,8111:0,8115:0,8220:0,8334:0,8339:0,8442:0,8510:0,8654:0,8894:0,9058:0,9237:0};U.f.j=(e,i)=>{var o=U.o(t,e)?t[e]:void 0;if(0!==o)if(o)i.push(o[2]);else{var s=new Promise((i,s)=>o=t[e]=[i,s]);i.push(o[2]=s);var r=U.p+U.u(e),n=new Error;U.l(r,i=>{if(U.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var s=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;n.message="Loading chunk "+e+" failed.\n("+s+": "+r+")",n.name="ChunkLoadError",n.type=s,n.request=r,o[1](n)}},"chunk-"+e,e)}},U.O.j=e=>0===t[e];var e=(e,i)=>{var o,s,[r,n,a]=i,l=0;if(r.some(e=>0!==t[e])){for(o in n)U.o(n,o)&&(U.m[o]=n[o]);if(a)var d=a(U)}for(e&&e(i);l<r.length;l++)s=r[l],U.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return U.O(d)},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 q=U.O(void 0,[
|
|
2872
|
+
`}};c([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"checked",void 0),c([(0,l.property)({type:String})],e.prototype,"value",void 0),c([(0,l.property)({type:String})],e.prototype,"id",void 0),c([(0,l.property)({type:String})],e.prototype,"label",void 0),c([(0,l.internalProperty)()],e.prototype,"customId",void 0),e=c([(0,n.w)("md-favorite")],e),t.ELEMENT=e}(o||(o={}))}},j={};function U(t){var e=j[t];if(void 0!==e)return e.exports;var i=j[t]={exports:{}};return N[t].call(i.exports,i,i.exports,U),i.exports}U.m=N,_=[],U.O=(t,e,i,o)=>{if(!e){var s=1/0;for(l=0;l<_.length;l++){for(var[e,i,o]=_[l],r=!0,n=0;n<e.length;n++)(!1&o||s>=o)&&Object.keys(U.O).every(t=>U.O[t](e[n]))?e.splice(n--,1):(r=!1,o<s&&(s=o));if(r){_.splice(l--,1);var a=i();void 0!==a&&(t=a)}}return t}o=o||0;for(var l=_.length;l>0&&_[l-1][2]>o;l--)_[l]=_[l-1];_[l]=[e,i,o]},U.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return U.d(e,{a:e}),e},z=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,U.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);U.r(i);var o={};B=B||[null,z({}),z([]),z(z)];for(var s=2&e&&t;("object"==typeof s||"function"==typeof s)&&!~B.indexOf(s);s=z(s))Object.getOwnPropertyNames(s).forEach(e=>o[e]=()=>t[e]);return o.default=()=>t,U.d(i,o),i},U.d=(t,e)=>{for(var i in e)U.o(e,i)&&!U.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},U.f={},U.e=t=>Promise.all(Object.keys(U.f).reduce((e,i)=>(U.f[i](t,e),e),[])),U.u=t=>"chunks/md-"+t+".js",U.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),U.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),F={},V="@momentum-ui/web-components:",U.l=(t,e,i,o)=>{if(F[t])F[t].push(e);else{var s,r;if(void 0!==i)for(var n=document.getElementsByTagName("script"),a=0;a<n.length;a++){var l=n[a];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==V+i){s=l;break}}s||(r=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,U.nc&&s.setAttribute("nonce",U.nc),s.setAttribute("data-webpack",V+i),s.src=t),F[t]=[e];var d=(e,i)=>{s.onerror=s.onload=null,clearTimeout(h);var o=F[t];if(delete F[t],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(t=>t(i)),e)return e(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),r&&document.head.appendChild(s)}},U.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},U.p="/",(()=>{var t={109:0,144:0,195:0,445:0,502:0,555:0,671:0,762:0,984:0,1037:0,1200:0,1266:0,1323:0,1439:0,1459:0,1462:0,1521:0,1528:0,1682:0,1745:0,1788:0,1807:0,2105:0,2139:0,2169:0,2176:0,2330:0,2434:0,2547:0,2555:0,2576:0,2779:0,2781:0,2909:0,3001:0,3079:0,3192:0,3413:0,3477:0,3539:0,3747:0,3820:0,3938:0,3943:0,4131:0,4139:0,4259:0,4545:0,4908:0,4928:0,4971:0,5156:0,5310:0,5369:0,5382:0,5427:0,5433:0,5517:0,6029:0,6060:0,6085:0,6132:0,6220:0,6396:0,6408:0,6433:0,6494:0,6587:0,6677:0,6724:0,6753:0,6754:0,6798:0,6834:0,6920:0,7119:0,7145:0,7219:0,7455:0,7684:0,7711:0,7719:0,7763:0,7814:0,7927:0,8028:0,8111:0,8115:0,8220:0,8334:0,8339:0,8442:0,8510:0,8654:0,8894:0,9058:0,9237:0};U.f.j=(e,i)=>{var o=U.o(t,e)?t[e]:void 0;if(0!==o)if(o)i.push(o[2]);else{var s=new Promise((i,s)=>o=t[e]=[i,s]);i.push(o[2]=s);var r=U.p+U.u(e),n=new Error;U.l(r,i=>{if(U.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var s=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;n.message="Loading chunk "+e+" failed.\n("+s+": "+r+")",n.name="ChunkLoadError",n.type=s,n.request=r,o[1](n)}},"chunk-"+e,e)}},U.O.j=e=>0===t[e];var e=(e,i)=>{var o,s,[r,n,a]=i,l=0;if(r.some(e=>0!==t[e])){for(o in n)U.o(n,o)&&(U.m[o]=n[o]);if(a)var d=a(U)}for(e&&e(i);l<r.length;l++)s=r[l],U.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return U.O(d)},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 q=U.O(void 0,[2237,7103,1890,6272,6325,6283,9217,5830,8889,8210,4977,3135,1598,1572,6366,7251,4974,2243,7919,3553,6877,6700,8004,6795,8923,4548,76,1392,9164,2019,1625,6067,3625,8841,3112,3866,1107,6953,7330,7092,9719,6979,9130,6273,9618,8612,8521,4400,779,573,5801,2043,8171,2798,5467,2984,1869,2215,7997,4392,630,3604,8728,8227,1250,1705,7833,7875,6400,587,6441,6015,3663],()=>U(2864));return U.O(q)})());
|