@momentum-ui/web-components 3.2.12 → 3.2.14
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/2708.js +21 -0
- package/dist/7137.js +1 -0
- package/dist/861.js +9 -2
- package/dist/9558.js +1 -1
- package/dist/comp/md-card-alert-entry.js +144 -0
- package/dist/comp/md-card-alert.js +1 -0
- package/dist/comp/md-card-entry.js +1 -1
- package/dist/comp/md-card.js +1 -1
- package/dist/comp/md-chip-entry.js +9 -29
- package/dist/comp/md-chip.js +1 -1
- package/dist/comp/md-coachmark-entry.js +1 -1
- package/dist/comp/md-coachmark.js +1 -1
- package/dist/comp/md-floating-minimize-entry.js +3 -3
- package/dist/comp/md-floating-modal-entry.js +6 -6
- package/dist/comp/md-modal-entry.js +1 -1
- package/dist/comp/md-modal.js +1 -1
- package/dist/comp/md-progress-bar-entry.js +1 -1
- package/dist/comp/md-tabs-entry.js +1 -1
- package/dist/comp/md-tabs.js +1 -1
- package/dist/esm/1156.js +1 -0
- package/dist/esm/1280.js +1 -0
- package/dist/esm/1756.js +1 -0
- package/dist/esm/1821.js +1 -1
- package/dist/esm/1982.js +1 -0
- package/dist/esm/2451.js +1 -0
- package/dist/esm/2458.js +1 -0
- package/dist/esm/2577.js +1 -0
- package/dist/esm/2583.js +52 -0
- package/dist/esm/2599.js +1 -0
- package/dist/esm/2708.js +1 -1
- package/dist/esm/2927.js +1 -1
- package/dist/esm/3051.js +1 -1
- package/dist/esm/3155.js +1 -0
- package/dist/esm/327.js +21 -0
- package/dist/esm/3365.js +1 -0
- package/dist/esm/3517.js +1 -0
- package/dist/esm/3648.js +1 -0
- package/dist/esm/3876.js +1 -1
- package/dist/esm/4060.js +1 -0
- package/dist/esm/4137.js +1 -0
- package/dist/esm/4613.js +1 -0
- package/dist/esm/477.js +1 -0
- package/dist/esm/4955.js +1 -0
- package/dist/esm/4980.js +1 -0
- package/dist/esm/5308.js +1 -0
- package/dist/esm/5410.js +1 -1
- package/dist/esm/5432.js +1 -0
- package/dist/esm/546.js +1 -0
- package/dist/esm/5958.js +3 -3
- package/dist/esm/5983.js +1 -1
- package/dist/esm/6518.js +1 -0
- package/dist/esm/6525.js +1 -0
- package/dist/esm/6897.js +1 -0
- package/dist/esm/6933.js +1 -0
- package/dist/esm/6994.js +1 -0
- package/dist/esm/708.js +1 -1
- package/dist/esm/7119.js +1 -0
- package/dist/esm/7137.js +1 -0
- package/dist/esm/7638.js +1 -0
- package/dist/esm/7755.js +1 -0
- package/dist/esm/7838.js +1 -0
- package/dist/esm/8165.js +1 -0
- package/dist/esm/8235.js +1 -0
- package/dist/esm/8497.js +1 -1
- package/dist/esm/861.js +9 -2
- package/dist/esm/8663.js +1 -1
- package/dist/esm/878.js +1 -1
- package/dist/esm/8899.js +1 -0
- package/dist/esm/9375.js +1 -0
- package/dist/esm/9500.js +1 -0
- package/dist/esm/9558.js +1 -1
- package/dist/esm/9613.js +1 -1
- package/dist/esm/9642.js +1 -0
- package/dist/esm/comp/md-accordion-entry.js +2 -2
- package/dist/esm/comp/md-accordion-item-entry.js +2 -2
- package/dist/esm/comp/md-accordion-item.js +1 -1
- package/dist/esm/comp/md-accordion.js +1 -1
- package/dist/esm/comp/md-activity-button-entry.js +2 -2
- package/dist/esm/comp/md-activity-button.js +1 -1
- package/dist/esm/comp/md-advance-list-entry.js +2 -2
- package/dist/esm/comp/md-advance-list.js +1 -1
- package/dist/esm/comp/md-alert-banner-entry.js +10 -10
- package/dist/esm/comp/md-alert-banner.js +1 -1
- package/dist/esm/comp/md-alert-entry.js +9 -9
- package/dist/esm/comp/md-alert.js +1 -1
- package/dist/esm/comp/md-audio-player-entry.js +2 -2
- package/dist/esm/comp/md-audio-player.js +1 -1
- package/dist/esm/comp/md-avatar-entry.js +1 -1
- package/dist/esm/comp/md-avatar.js +1 -1
- package/dist/esm/comp/md-badge-entry.js +1 -1
- package/dist/esm/comp/md-badge.js +1 -1
- package/dist/esm/comp/md-breadcrumb-entry.js +5 -5
- package/dist/esm/comp/md-breadcrumb.js +1 -1
- package/dist/esm/comp/md-button-entry.js +2 -2
- package/dist/esm/comp/md-button-group-entry.js +2 -2
- package/dist/esm/comp/md-button-group.js +1 -1
- package/dist/esm/comp/md-button.js +1 -1
- package/dist/esm/comp/md-card-ai-entry.js +2 -2
- package/dist/esm/comp/md-card-ai.js +1 -1
- package/dist/esm/comp/md-card-alert-entry.js +144 -0
- package/dist/esm/comp/md-card-alert.js +1 -0
- package/dist/esm/comp/md-card-entry.js +6 -6
- package/dist/esm/comp/md-card-v2-entry.js +6 -6
- package/dist/esm/comp/md-card-v2.js +1 -1
- package/dist/esm/comp/md-card.js +1 -1
- package/dist/esm/comp/md-chat-message-entry.js +2 -2
- package/dist/esm/comp/md-chat-message.js +1 -1
- package/dist/esm/comp/md-checkbox-entry.js +2 -2
- package/dist/esm/comp/md-checkbox.js +1 -1
- package/dist/esm/comp/md-checkboxgroup-entry.js +2 -2
- package/dist/esm/comp/md-checkboxgroup.js +1 -1
- package/dist/esm/comp/md-chip-entry.js +1 -72
- package/dist/esm/comp/md-chip.js +1 -1
- package/dist/esm/comp/md-coachmark-entry.js +8 -8
- package/dist/esm/comp/md-coachmark-popover-entry.js +3 -3
- package/dist/esm/comp/md-coachmark-popover.js +1 -1
- package/dist/esm/comp/md-coachmark.js +1 -1
- package/dist/esm/comp/md-combobox-entry.js +1 -1
- package/dist/esm/comp/md-combobox.js +1 -1
- package/dist/esm/comp/md-composite-avatar-entry.js +3 -3
- package/dist/esm/comp/md-composite-avatar.js +1 -1
- package/dist/esm/comp/md-country-code-picker-entry.js +1 -1
- package/dist/esm/comp/md-country-code-picker.js +1 -1
- package/dist/esm/comp/md-date-range-picker-entry.js +1 -1
- package/dist/esm/comp/md-date-range-picker.js +1 -1
- package/dist/esm/comp/md-date-time-picker-entry.js +2 -2
- package/dist/esm/comp/md-date-time-picker.js +1 -1
- package/dist/esm/comp/md-datepicker-calendar-entry.js +1 -1
- package/dist/esm/comp/md-datepicker-calendar.js +1 -1
- package/dist/esm/comp/md-datepicker-day-entry.js +1 -1
- package/dist/esm/comp/md-datepicker-day.js +1 -1
- package/dist/esm/comp/md-datepicker-entry.js +11 -11
- package/dist/esm/comp/md-datepicker-month-entry.js +1 -1
- package/dist/esm/comp/md-datepicker-month.js +1 -1
- package/dist/esm/comp/md-datepicker-week-entry.js +1 -1
- package/dist/esm/comp/md-datepicker-week.js +1 -1
- package/dist/esm/comp/md-datepicker.js +1 -1
- package/dist/esm/comp/md-draggable-entry.js +2 -2
- package/dist/esm/comp/md-draggable-item-entry.js +5 -5
- package/dist/esm/comp/md-draggable-item.js +1 -1
- package/dist/esm/comp/md-draggable.js +1 -1
- package/dist/esm/comp/md-dropdown-entry.js +16 -16
- package/dist/esm/comp/md-dropdown.js +1 -1
- package/dist/esm/comp/md-editable-field-entry.js +2 -2
- package/dist/esm/comp/md-editable-field.js +1 -1
- package/dist/esm/comp/md-favorite-entry.js +1 -1
- package/dist/esm/comp/md-favorite.js +1 -1
- package/dist/esm/comp/md-floating-minimize-entry.js +1 -1
- package/dist/esm/comp/md-floating-minimize.js +1 -1
- package/dist/esm/comp/md-floating-modal-entry.js +11 -11
- package/dist/esm/comp/md-floating-modal.js +1 -1
- package/dist/esm/comp/md-form-entry.js +2 -2
- package/dist/esm/comp/md-form.js +1 -1
- package/dist/esm/comp/md-grabber-entry.js +5 -5
- package/dist/esm/comp/md-grabber.js +1 -1
- package/dist/esm/comp/md-help-text-entry.js +1 -1
- package/dist/esm/comp/md-help-text.js +1 -1
- package/dist/esm/comp/md-icon-entry.js +5 -5
- package/dist/esm/comp/md-icon.js +1 -1
- package/dist/esm/comp/md-inpu.js +1 -1
- package/dist/esm/comp/md-input-entry.js +2 -2
- package/dist/esm/comp/md-input-file.js +4 -4
- package/dist/esm/comp/md-input.js +1 -1
- package/dist/esm/comp/md-label-entry.js +1 -1
- package/dist/esm/comp/md-label.js +1 -1
- package/dist/esm/comp/md-link-entry.js +14 -14
- package/dist/esm/comp/md-link.js +1 -1
- package/dist/esm/comp/md-list-entry.js +1 -1
- package/dist/esm/comp/md-list-item-entry.js +1 -1
- package/dist/esm/comp/md-list-item.js +1 -1
- package/dist/esm/comp/md-list.js +1 -1
- package/dist/esm/comp/md-loading-entry.js +1 -1
- package/dist/esm/comp/md-loading.js +1 -1
- package/dist/esm/comp/md-meeting-alert-entry.js +2 -2
- package/dist/esm/comp/md-meeting-alert.js +1 -1
- package/dist/esm/comp/md-menu-entry.js +3 -3
- package/dist/esm/comp/md-menu-item-entry.js +3 -3
- package/dist/esm/comp/md-menu-item.js +1 -1
- package/dist/esm/comp/md-menu-overlay-entry.js +5 -5
- package/dist/esm/comp/md-menu-overlay.js +1 -1
- package/dist/esm/comp/md-menu.js +1 -1
- package/dist/esm/comp/md-modal-entry.js +13 -13
- package/dist/esm/comp/md-modal.js +1 -1
- package/dist/esm/comp/md-pagination-entry.js +2 -2
- package/dist/esm/comp/md-pagination.js +1 -1
- package/dist/esm/comp/md-phone-input-entry.js +11 -11
- package/dist/esm/comp/md-phone-input.js +1 -1
- package/dist/esm/comp/md-popover-entry.js +1 -1
- package/dist/esm/comp/md-popover.js +1 -1
- package/dist/esm/comp/md-presence-entry.js +1 -1
- package/dist/esm/comp/md-presence.js +1 -1
- package/dist/esm/comp/md-progress-bar-entry.js +1 -1
- package/dist/esm/comp/md-progress-bar.js +1 -1
- package/dist/esm/comp/md-radio-entry.js +2 -2
- package/dist/esm/comp/md-radio.js +1 -1
- package/dist/esm/comp/md-radiogroup-entry.js +2 -2
- package/dist/esm/comp/md-radiogroup.js +1 -1
- package/dist/esm/comp/md-slider-entry.js +2 -2
- package/dist/esm/comp/md-slider.js +1 -1
- package/dist/esm/comp/md-spinner-entry.js +1 -1
- package/dist/esm/comp/md-spinner.js +1 -1
- package/dist/esm/comp/md-tab-entry.js +3 -3
- package/dist/esm/comp/md-tab-panel-entry.js +1 -1
- package/dist/esm/comp/md-tab-panel.js +1 -1
- package/dist/esm/comp/md-tab.js +1 -1
- package/dist/esm/comp/md-table-advanced-entry.js +5 -5
- package/dist/esm/comp/md-table-advanced.js +1 -1
- package/dist/esm/comp/md-table-entry.js +2 -2
- package/dist/esm/comp/md-table.js +1 -1
- package/dist/esm/comp/md-tabs-entry.js +3 -3
- package/dist/esm/comp/md-tabs.js +1 -1
- package/dist/esm/comp/md-task-item-entry.js +7 -7
- package/dist/esm/comp/md-task-item.js +1 -1
- package/dist/esm/comp/md-theme-entry.js +3 -3
- package/dist/esm/comp/md-theme.js +1 -1
- package/dist/esm/comp/md-timepicker-entry.js +3 -3
- package/dist/esm/comp/md-timepicker.js +1 -1
- package/dist/esm/comp/md-toggle-switch-entry.js +2 -2
- package/dist/esm/comp/md-toggle-switch.js +1 -1
- package/dist/esm/comp/md-tooltip-entry.js +3 -3
- package/dist/esm/comp/md-tooltip.js +1 -1
- package/dist/esm/index-entry.js +377 -336
- package/dist/esm/index.js +1 -1
- package/dist/esm/managers/thememanager-entry.js +1 -1
- package/dist/esm/managers/thememanager.js +1 -1
- package/dist/index-entry.js +216 -124
- package/dist/index.js +1 -1
- package/dist/types/[sandbox]/examples/card-alert.d.ts +10 -0
- package/dist/types/[sandbox]/examples/index.d.ts +1 -0
- package/dist/types/components/card-alert/CardAlert.d.ts +67 -0
- package/dist/types/components/card-alert/CardAlert.stories.d.ts +15 -0
- package/dist/types/components/card-alert/CardAlert.test.d.ts +1 -0
- package/dist/types/components/combobox/ComboBox.d.ts +1 -1
- package/dist/types/components/taskitem/TaskItem.constants.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/esm/1618.js +0 -1
- package/dist/esm/2492.js +0 -1
- package/dist/esm/3013.js +0 -1
- package/dist/esm/3241.js +0 -1
- package/dist/esm/6429.js +0 -1
- package/dist/esm/6573.js +0 -1
- package/dist/esm/7262.js +0 -1
- package/dist/esm/8373.js +0 -1
- package/dist/esm/8881.js +0 -1
- package/dist/esm/9146.js +0 -1
- package/dist/esm/9488.js +0 -1
- package/dist/esm/9956.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var e,t,i={3764(e,t,i){i.d(t,{Y$:()=>c,c6:()=>m,ys:()=>u}),i(5983),i(1821),i(9613);var o=i(2900),s=i(9609),a=i(4084),l=i(2927),r=i(8899),n=i(4955),d=i(9404),p=function(e,t,i,o){var s,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(l=(a<3?s(l):a>3?s(t,i,l):s(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const u=[{value:.25,label:"0.25"},{value:.5,label:"0.50"},{value:.75,label:"0.75"},{value:1,label:"Normal"},{value:1.25,label:"1.25"},{value:1.5,label:"1.50"},{value:1.75,label:"1.75"},{value:2,label:"2"}],m={playBtn:{ariaLabel:"Play",tooltipText:"Play"},pauseBtn:{ariaLabel:"Pause",tooltipText:"Pause"},duration:{ariaLabel:"Duration:",tooltipText:"Duration"},timeline:{ariaLabel:"Audio Seekbar",tooltipText:"Audio Seekbar"},volumeBtn:{ariaLabel:"Mute / Unmute Audio",tooltipText:"Mute / Unmute"},volumeSlider:{ariaLabel:"Volume level",tooltipText:"Volume level"},playbackSpeedBtn:{ariaLabel:"Playback speed",tooltipText:"Playback speed"}};var c;!function(e){let t=class extends l.LitElement{constructor(){super(),this.src="",this.events=[],this.isPlaying=!1,this.isMuted=!1,this.duration=0,this.volume=100,this.currentTime=0,this.showSpeedPopup=!1,this.playbackSpeed=1,this.volumeExpanded=!1,this.bufferedRange=0,this.selectedPlaybackSpeed=this.playbackSpeed,this.currentlySelectingPlaybackSpeed=!1,this.onOutsideClick=e=>{let t=!1;const i=e.composedPath();i.length&&(t=!!i.find(e=>"speed-btn"===e.id),t||(this.showSpeedPopup=!1))},this.handleKeyDown=e=>{const{code:t}=e;switch(t){case o.Uz.ArrowLeft:this.volumeExpanded?this.setVolumeKeydown(this.volume-.01):this.setTimeKeydown(this.currentTime-1);break;case o.Uz.ArrowRight:this.volumeExpanded?this.setVolumeKeydown(this.volume+.01):this.setTimeKeydown(this.currentTime+1);break;case o.Uz.ArrowUp:if(this.showSpeedPopup){this.currentlySelectingPlaybackSpeed=!0;const t=u.findIndex(e=>e.value===this.selectedPlaybackSpeed),i=Math.max(0,t-1);this.selectedPlaybackSpeed=u[i].value,e.preventDefault(),this.currentlySelectingPlaybackSpeed=!1}break;case o.Uz.ArrowDown:if(this.showSpeedPopup){this.currentlySelectingPlaybackSpeed=!0;const t=u.findIndex(e=>e.value===this.selectedPlaybackSpeed),i=Math.min(u.length-1,t+1);this.selectedPlaybackSpeed=u[i].value,e.preventDefault(),this.currentlySelectingPlaybackSpeed=!1}break;case o.Uz.Enter:this.showSpeedPopup&&(this.setPlaybackSpeed(this.selectedPlaybackSpeed),e.preventDefault())}},this.audio=new Audio,this.setAudioEventListeners(),this.labelMap=m}firstUpdated(e){super.firstUpdated(e),e.has("src")&&(this.audio.src=this.src)}updated(e){super.updated(e),e.has("src")&&(this.audio.src=this.src)}connectedCallback(){super.connectedCallback(),this.requestUpdate("src"),document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.handleKeyDown),this.audio.pause(),this.isPlaying=!1}setAudioEventListeners(){this.audio.onloadeddata=()=>{this.duration=this.audio.duration,this.audio.volume=.75},this.audio.onerror=()=>{this.audio.src&&this.dispatchEvent(new CustomEvent("playback-error",{composed:!0,bubbles:!0}))},this.audio.onended=()=>{this.audio.currentTime=0,this.isPlaying=!1},this.audio.ontimeupdate=()=>{this.currentTime=this.audio.currentTime},this.audio.onvolumechange=()=>{this.volume=this.audio.volume},this.audio.onprogress=()=>{this.audio.buffered.length>0&&(this.bufferedRange=this.audio.buffered.end(this.audio.buffered.length-1))}}togglePlay(){this.isPlaying=!this.isPlaying,this.isPlaying?(this.audio.play(),this.dispatchEvent(new CustomEvent("play-clicked",{composed:!0,bubbles:!0}))):this.audio.pause()}toTimecode(e){const t=Math.floor(e);return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}setTime(e){const t=this.getBarPercentage(e,"timeline"),i=Math.floor(t*this.duration);this.audio.currentTime=i}setVolumeElement(e){this.volumeElement="volume"===e.target.className?e.target:e.target.parentElement}handleVolumeChange(e){let t=!1;this.setVolumeElement(e),this.setVolume(e);const i=e=>{t||(t=!0),this.volumeExpanded?this.setVolume(e):s()},o=()=>{s()},s=()=>{t=!1,window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",o)};window.addEventListener("mousemove",i),window.addEventListener("mouseup",o),e.preventDefault()}getVolumeFromSlider(e){if(null===this.volumeElement)return 0;const t=this.volumeElement.getBoundingClientRect(),i=e.clientX-t.x;return Math.max(0,Math.min(1,i/t.width))}setVolume(e){const t=this.getVolumeFromSlider(e);this.audio.volume=t}getBarPercentage(e,t){const i=(e.target.className===t?e.target:e.target.parentElement).getBoundingClientRect();return(e.clientX-i.x)/i.width}toggleSoundMute(){this.isMuted=!this.isMuted,this.audio.muted=this.isMuted}toggleSpeedPopup(){this.showSpeedPopup=!this.showSpeedPopup}setTimeKeydown(e){e>this.duration?(this.currentTime=this.duration,this.audio.currentTime=this.duration):e<0?(this.currentTime=0,this.audio.currentTime=0):(this.currentTime=e,this.audio.currentTime=e)}setVolumeKeydown(e){e>1?(this.volume=1,this.audio.volume=1):e<0?(this.isMuted||this.toggleSoundMute(),this.volume=0,this.audio.volume=0):(this.isMuted&&this.toggleSoundMute(),this.volume=e,this.audio.volume=e)}get popupClassMap(){return{"popup-open":this.showSpeedPopup}}setPlaybackSpeed(e){this.playbackSpeed=e,this.selectedPlaybackSpeed=e,this.audio.playbackRate=this.playbackSpeed,this.showSpeedPopup=!1}toggleVolumeExpand(e){this.volumeExpanded=e}static get styles(){return[a.A,d.A]}render(){return l.html`
|
|
2
2
|
<div class="md-audio-player">
|
|
3
3
|
<div class="inner-container">
|
|
4
4
|
<div class="play-container">
|
|
@@ -95,4 +95,4 @@ import*as e from"@momentum-ui/icons/data/momentumUiIconsNames.json";import*as t
|
|
|
95
95
|
</div>
|
|
96
96
|
</div>
|
|
97
97
|
</div>
|
|
98
|
-
`}};p([(0,r.property)({type:String})],t.prototype,"src",void 0),p([(0,r.property)({type:Object})],t.prototype,"labelMap",void 0),p([(0,r.state)()],t.prototype,"events",void 0),p([(0,r.state)()],t.prototype,"audio",void 0),p([(0,r.state)()],t.prototype,"volumeElement",void 0),p([(0,r.state)()],t.prototype,"isPlaying",void 0),p([(0,r.state)()],t.prototype,"isMuted",void 0),p([(0,r.state)()],t.prototype,"duration",void 0),p([(0,r.state)()],t.prototype,"volume",void 0),p([(0,r.state)()],t.prototype,"currentTime",void 0),p([(0,r.state)()],t.prototype,"showSpeedPopup",void 0),p([(0,r.state)()],t.prototype,"playbackSpeed",void 0),p([(0,r.state)()],t.prototype,"volumeExpanded",void 0),p([(0,r.state)()],t.prototype,"bufferedRange",void 0),p([(0,r.state)()],t.prototype,"selectedPlaybackSpeed",void 0),p([(0,r.state)()],t.prototype,"currentlySelectingPlaybackSpeed",void 0),t=p([(0,s.w)("md-audio-player")],t),e.ELEMENT=t}(c||(c={}))}
|
|
98
|
+
`}};p([(0,r.property)({type:String})],t.prototype,"src",void 0),p([(0,r.property)({type:Object})],t.prototype,"labelMap",void 0),p([(0,r.state)()],t.prototype,"events",void 0),p([(0,r.state)()],t.prototype,"audio",void 0),p([(0,r.state)()],t.prototype,"volumeElement",void 0),p([(0,r.state)()],t.prototype,"isPlaying",void 0),p([(0,r.state)()],t.prototype,"isMuted",void 0),p([(0,r.state)()],t.prototype,"duration",void 0),p([(0,r.state)()],t.prototype,"volume",void 0),p([(0,r.state)()],t.prototype,"currentTime",void 0),p([(0,r.state)()],t.prototype,"showSpeedPopup",void 0),p([(0,r.state)()],t.prototype,"playbackSpeed",void 0),p([(0,r.state)()],t.prototype,"volumeExpanded",void 0),p([(0,r.state)()],t.prototype,"bufferedRange",void 0),p([(0,r.state)()],t.prototype,"selectedPlaybackSpeed",void 0),p([(0,r.state)()],t.prototype,"currentlySelectingPlaybackSpeed",void 0),t=p([(0,s.w)("md-audio-player")],t),e.ELEMENT=t}(c||(c={}))}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var a=o[e]={exports:{}};return i[e](a,a.exports,s),a.exports}s.m=i,e=[],s.O=(t,i,o,a)=>{if(!i){var l=1/0;for(p=0;p<e.length;p++){for(var[i,o,a]=e[p],r=!0,n=0;n<i.length;n++)(!1&a||l>=a)&&Object.keys(s.O).every(e=>s.O[e](i[n]))?i.splice(n--,1):(r=!1,a<l&&(l=a));if(r){e.splice(p--,1);var d=o();void 0!==d&&(t=d)}}return t}a=a||0;for(var p=e.length;p>0&&e[p-1][2]>a;p--)e[p]=e[p-1];e[p]=[i,o,a]},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);export{s as __webpack_require__};t={8220:0},s.C=e=>{var i,o,{__webpack_esm_ids__:a,__webpack_esm_modules__:l,__webpack_esm_runtime__:r}=e,n=0;for(i in l)s.o(l,i)&&(s.m[i]=l[i]);for(r&&r(s);n<a.length;n++)o=a[n],s.o(t,o)&&t[o]&&t[o][0](),t[a[n]]=0;s.O()},s.O.j=e=>0===t[e];import*as a from"../9609.js";s.C(a);import*as l from"../4084.js";s.C(l);import*as r from"../4955.js";s.C(r);import*as n from"../3517.js";s.C(n);import*as d from"../1156.js";s.C(d);import*as p from"../3305.js";s.C(p);import*as u from"../4739.js";s.C(u);import*as m from"../7154.js";s.C(m);import*as c from"../9773.js";s.C(c);import*as h from"../5983.js";s.C(h);import*as v from"../7755.js";s.C(v);import*as b from"../1821.js";s.C(b);import*as y from"../2364.js";s.C(y);import*as g from"../4980.js";s.C(g);import*as f from"../5308.js";s.C(f);import*as S from"../9938.js";s.C(S);import*as k from"../9500.js";s.C(k);import*as P from"../4781.js";s.C(P);import*as w from"../5584.js";s.C(w);import*as M from"../8227.js";s.C(M);import*as C from"../2900.js";s.C(C);import*as T from"../2050.js";s.C(T);import*as $ from"../1280.js";s.C($);import*as x from"../6343.js";s.C(x);import*as j from"../7582.js";s.C(j);import*as E from"../9613.js";s.C(E);import*as L from"../5323.js";s.C(L);import*as O from"../9404.js";s.C(O);var _=s.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,5983,7755,1821,2364,4980,5308,9938,9500,4781,5584,8227,2900,2050,1280,6343,7582,9613,5323,9404],()=>s(3764));const D=(_=s.O(_)).Y$,V=_.c6,B=_.ys;export{D as AudioPlayer,V as defaultLabelMap,B as playbackSpeeds};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../4955.js";import"../3517.js";import"../1156.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../7755.js";import"../1821.js";import"../2364.js";import"../4980.js";import"../5308.js";import"../9938.js";import"../9500.js";import"../4781.js";import"../5584.js";import"../8227.js";import"../2900.js";import"../2050.js";import"../1280.js";import"../6343.js";import"../7582.js";import"../9613.js";import"../5323.js";import"../9404.js";export*from"../comp/md-audio-player-entry.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var r,o,s={},m={};function t(r){var o=m[r];if(void 0!==o)return o.exports;var a=m[r]={exports:{}};return s[r](a,a.exports,t),a.exports}t.m=s,r=[],t.O=(o,s,m,a)=>{if(!s){var e=1/0;for(j=0;j<r.length;j++){for(var[s,m,a]=r[j],p=!0,i=0;i<s.length;i++)(!1&a||e>=a)&&Object.keys(t.O).every(r=>t.O[r](s[i]))?s.splice(i--,1):(p=!1,a<e&&(e=a));if(p){r.splice(j--,1);var f=m();void 0!==f&&(o=f)}}return o}a=a||0;for(var j=r.length;j>0&&r[j-1][2]>a;j--)r[j]=r[j-1];r[j]=[s,m,a]},t.d=(r,o)=>{for(var s in o)t.o(o,s)&&!t.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:o[s]})},t.o=(r,o)=>Object.prototype.hasOwnProperty.call(r,o);export{t as __webpack_require__};o={8115:0},t.C=r=>{var s,m,{__webpack_esm_ids__:a,__webpack_esm_modules__:e,__webpack_esm_runtime__:p}=r,i=0;for(s in e)t.o(e,s)&&(t.m[s]=e[s]);for(p&&p(t);i<a.length;i++)m=a[i],t.o(o,m)&&o[m]&&o[m][0](),o[a[i]]=0;t.O()},t.O.j=r=>0===o[r];import*as a from"../9609.js";t.C(a);import*as e from"../4084.js";t.C(e);import*as p from"../4955.js";t.C(p);import*as i from"../3517.js";t.C(i);import*as f from"../1156.js";t.C(f);import*as j from"../3305.js";t.C(j);import*as C from"../4739.js";t.C(C);import*as _ from"../7154.js";t.C(_);import*as n from"../9773.js";t.C(n);import*as v from"../5983.js";t.C(v);import*as c from"../7755.js";t.C(c);import*as O from"../1821.js";t.C(O);import*as l from"../4980.js";t.C(l);import*as b from"../9500.js";t.C(b);import*as d from"../519.js";t.C(d);import*as u from"../4137.js";t.C(u);import*as x from"../8165.js";t.C(x);import*as g from"../6325.js";t.C(g);import*as h from"../4449.js";t.C(h);import*as y from"../1392.js";t.C(y);import*as k from"../3365.js";t.C(k);import*as w from"../378.js";t.C(w);import*as P from"../9244.js";t.C(P);import*as A from"../2245.js";t.C(A);var q=t.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,5983,7755,1821,4980,9500,519,4137,8165,6325,4449,1392,3365,378,9244,2245],()=>t(2245));const z=(q=t.O(q)).e;export{z as Avatar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../4955.js";import"../3517.js";import"../1156.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../7755.js";import"../1821.js";import"../4980.js";import"../9500.js";import"../519.js";import"../4137.js";import"../8165.js";import"../6325.js";import"../4449.js";import"../1392.js";import"../3365.js";import"../378.js";import"../9244.js";import"../2245.js";export*from"../comp/md-avatar-entry.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var r,o,e={},s={};function t(r){var o=s[r];if(void 0!==o)return o.exports;var a=s[r]={exports:{}};return e[r](a,a.exports,t),a.exports}t.m=e,r=[],t.O=(o,e,s,a)=>{if(!e){var m=1/0;for(_=0;_<r.length;_++){for(var[e,s,a]=r[_],p=!0,i=0;i<e.length;i++)(!1&a||m>=a)&&Object.keys(t.O).every(r=>t.O[r](e[i]))?e.splice(i--,1):(p=!1,a<m&&(m=a));if(p){r.splice(_--,1);var f=s();void 0!==f&&(o=f)}}return o}a=a||0;for(var _=r.length;_>0&&r[_-1][2]>a;_--)r[_]=r[_-1];r[_]=[e,s,a]},t.d=(r,o)=>{for(var e in o)t.o(o,e)&&!t.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:o[e]})},t.o=(r,o)=>Object.prototype.hasOwnProperty.call(r,o);export{t as __webpack_require__};o={8111:0},t.C=r=>{var e,s,{__webpack_esm_ids__:a,__webpack_esm_modules__:m,__webpack_esm_runtime__:p}=r,i=0;for(e in m)t.o(m,e)&&(t.m[e]=m[e]);for(p&&p(t);i<a.length;i++)s=a[i],t.o(o,s)&&o[s]&&o[s][0](),o[a[i]]=0;t.O()},t.O.j=r=>0===o[r];import*as a from"../9609.js";t.C(a);import*as m from"../4084.js";t.C(m);import*as p from"../4955.js";t.C(p);import*as i from"../3517.js";t.C(i);import*as f from"../8165.js";t.C(f);import*as _ from"../6518.js";t.C(_);import*as n from"../3543.js";t.C(n);import*as v from"../7901.js";t.C(v);import*as j from"../4958.js";t.C(j);var c=t.O(void 0,[9609,4084,4955,3517,8165,6518,3543,7901,4958],()=>t(7901));const O=(c=t.O(c)).E;export{O as Badge};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../3543.js";import"../7901.js";import"../4958.js";export*from"../comp/md-badge-entry.js";
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../4955.js";import"../3517.js";import"../8165.js";import"../6518.js";import"../3543.js";import"../7901.js";import"../4958.js";export*from"../comp/md-badge-entry.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as r from"lit/decorators.js";var e,t,a={3445(r,e,t){t.d(e,{Q:()=>a});var a,o=t(9609),s=t(4084),i=t(2927),n=t(8899),l=t(3517),p=t(2577),c=t(9485),u=function(r,e,t,a){var o,s=arguments.length,i=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,e,t,a);else for(var n=r.length-1;n>=0;n--)(o=r[n])&&(i=(s<3?o(i):s>3?o(e,t,i):o(e,t))||i);return s>3&&i&&Object.defineProperty(e,t,i),i};!function(r){let e=class extends i.LitElement{constructor(){super(...arguments),this.label="Breadcrumb",this.navCrumbs=[]}static get styles(){return[s.A,c.A]}setLastAnchorCurrent(){var r;(null===(r=this.anchors)||void 0===r?void 0:r.length)&&this.anchors[this.anchors.length-1].setAttribute("aria-current","page")}firstUpdated(r){super.firstUpdated(r),this.setLastAnchorCurrent()}update(r){super.update(r),r.has("navCrumbs")&&this.setLastAnchorCurrent()}handleClick(r){var e;const t=r.target;if(null===(e=this.anchors)||void 0===e?void 0:e.length){const r=Array.from(this.anchors).indexOf(t);-1!==r&&(this.navCrumbs=[...this.navCrumbs.splice(0,r+1)])}}render(){return i.html`
|
|
2
2
|
<nav aria-label="${(0,l.ifDefined)(this.label?this.label:void 0)}" class="md-breadcrumb">
|
|
3
|
-
<ul @click=${
|
|
4
|
-
${(0,p.repeat)(this.navCrumbs,
|
|
3
|
+
<ul @click=${r=>this.handleClick(r)}>
|
|
4
|
+
${(0,p.repeat)(this.navCrumbs,r=>r.link,r=>i.html`
|
|
5
5
|
<li>
|
|
6
|
-
<a href="${
|
|
6
|
+
<a href="${r.link}"> ${r.label} </a>
|
|
7
7
|
</li>
|
|
8
8
|
`)}
|
|
9
9
|
</ul>
|
|
10
10
|
</nav>
|
|
11
|
-
`}};
|
|
11
|
+
`}};u([(0,n.property)({type:String,attribute:"aria-label"})],e.prototype,"label",void 0),u([(0,n.property)({type:Array,attribute:"nav-crumbs",reflect:!0})],e.prototype,"navCrumbs",void 0),u([(0,n.queryAll)("a[href]")],e.prototype,"anchors",void 0),e=u([(0,o.w)("md-breadcrumb")],e),r.ELEMENT=e}(a||(a={}))},8899(e,t,a){var o,s;e.exports=(o={property:()=>r.property,queryAll:()=>r.queryAll},s={},a.d(s,o),s)}},o={};function s(r){var e=o[r];if(void 0!==e)return e.exports;var t=o[r]={exports:{}};return a[r](t,t.exports,s),t.exports}s.m=a,e=[],s.O=(r,t,a,o)=>{if(!t){var i=1/0;for(c=0;c<e.length;c++){for(var[t,a,o]=e[c],n=!0,l=0;l<t.length;l++)(!1&o||i>=o)&&Object.keys(s.O).every(r=>s.O[r](t[l]))?t.splice(l--,1):(n=!1,o<i&&(i=o));if(n){e.splice(c--,1);var p=a();void 0!==p&&(r=p)}}return r}o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[t,a,o]},s.d=(r,e)=>{for(var t in e)s.o(e,t)&&!s.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},s.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e);export{s as __webpack_require__};t={555:0,1280:0,1756:0,4137:0,4613:0,6518:0,6994:0,8899:0,9375:0},s.C=r=>{var e,a,{__webpack_esm_ids__:o,__webpack_esm_modules__:i,__webpack_esm_runtime__:n}=r,l=0;for(e in i)s.o(i,e)&&(s.m[e]=i[e]);for(n&&n(s);l<o.length;l++)a=o[l],s.o(t,a)&&t[a]&&t[a][0](),t[o[l]]=0;s.O()},s.O.j=r=>0===t[r];import*as i from"../9609.js";s.C(i);import*as n from"../4084.js";s.C(n);import*as l from"../3517.js";s.C(l);import*as p from"../2577.js";s.C(p);import*as c from"../546.js";s.C(c);import*as u from"../9485.js";s.C(u);var h=s.O(void 0,[9609,4084,3517,2577,546,9485],()=>s(3445));const d=(h=s.O(h)).Q;export{d as Breadcrumb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../9485.js";export*from"../comp/md-breadcrumb-entry.js";
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../3517.js";import"../2577.js";import"../546.js";import"../9485.js";export*from"../comp/md-breadcrumb-entry.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var t,e,i={5983(t,e,i){i.d(e,{$n:()=>$,El:()=>c,Fr:()=>u,Gh:()=>g,MS:()=>v,Sq:()=>f,r3:()=>b,uZ:()=>m});var o=i(6616),r=(i(9773),i(9609)),a=i(7154),s=i(4084),n=i(2927),p=i(8899),d=i(4955),l=i(3517),h=i(680),y=function(t,e,i,o){var r,a=arguments.length,s=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(s=(a<3?r(s):a>3?r(e,i,s):r(e,i))||s);return a>3&&s&&Object.defineProperty(e,i,s),s};const c=["20","24","28","32","36","40","44","52","56","72","68","84","size-none",20,24,28,32,36,40,44,52,56,68,72,68,84],u=["button","input","a"],b=["button","reset","submit"],v=["button","checkbox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","switch","tab"],m=["primary","secondary","red","green","ghost","ghostInheritTextColor","white","darkGrey","promotional","tab","available","unavailable","engaged","idle","inverted-primary","inverted-secondary","inverted-ghost","dropdown","secondary-negative","secondary-positive","secondary-accent"],f=["blue","red","green","orange","yellow","mint","purple","pink","cyan","white","dark-gray","duck-egg","violet","color-none",""],g=["","off","polite","assertive"];var $;!function(t){let e=class extends n.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};`:n.nothing,this.renderMaxWidth=()=>this.maxWidth?`max-width: ${this.maxWidth};`:n.nothing,this.getStyles=()=>{if(this.width||this.maxWidth)return n.html`
|
|
2
2
|
<style>
|
|
3
3
|
:host .md-button--${this.size} {
|
|
4
4
|
${this.renderWidth()};
|
|
@@ -76,4 +76,4 @@ import*as t from"lit";import*as e from"lit/decorators.js";import*as i from"lit/d
|
|
|
76
76
|
<div part="button-label" class="md-button__label">${this.label}</div>
|
|
77
77
|
</div>
|
|
78
78
|
`:n.html` ${this.buttonTemplate(this.tag)} `}
|
|
79
|
-
`}};y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"active",null),y([(0,p.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),y([(0,p.property)({type:String})],e.prototype,"ariaLabel",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaLabelledBy",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaLive",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaExpanded",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaHaspopup",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaPressed",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"circle",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"rounded",void 0),y([(0,p.property)({type:String})],e.prototype,"color",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"containerLarge",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"disabled",void 0),y([(0,p.property)({type:String})],e.prototype,"href",void 0),y([(0,p.property)({type:String})],e.prototype,"id",void 0),y([(0,p.property)({type:String})],e.prototype,"value",void 0),y([(0,p.property)({type:String})],e.prototype,"keyboardKey",void 0),y([(0,p.property)({type:String})],e.prototype,"label",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"loading",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"outline",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"hasRemoveStyle",void 0),y([(0,p.property)({type:String})],e.prototype,"size",void 0),y([(0,p.property)({type:String})],e.prototype,"tag",void 0),y([(0,p.property)({type:String})],e.prototype,"type",void 0),y([(0,p.property)({type:String})],e.prototype,"role",void 0),y([(0,p.property)({type:String})],e.prototype,"variant",void 0),y([(0,p.property)({type:String})],e.prototype,"width",void 0),y([(0,p.property)({type:String})],e.prototype,"maxWidth",void 0),y([(0,p.property)({type:String})],e.prototype,"activityType",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"iconActive",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"isActive",void 0),y([(0,p.property)({type:String,attribute:"aria-describedby"})],e.prototype,"ariaDescribedBy",void 0),y([(0,p.property)({attribute:!1})],e.prototype,"clickFunction",void 0),y([(0,p.property)({type:Boolean,attribute:"is-placeholder-text"})],e.prototype,"isPlaceholderText",void 0),y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),y([(0,p.query)(".md-button")],e.prototype,"button",void 0),e=y([(0,r.w)("md-button")],e),t.ELEMENT=e}($||($={}))},
|
|
79
|
+
`}};y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"active",null),y([(0,p.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),y([(0,p.property)({type:String})],e.prototype,"ariaLabel",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaLabelledBy",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaLive",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaExpanded",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaHaspopup",void 0),y([(0,p.property)({type:String})],e.prototype,"ariaPressed",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"circle",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"rounded",void 0),y([(0,p.property)({type:String})],e.prototype,"color",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"containerLarge",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"disabled",void 0),y([(0,p.property)({type:String})],e.prototype,"href",void 0),y([(0,p.property)({type:String})],e.prototype,"id",void 0),y([(0,p.property)({type:String})],e.prototype,"value",void 0),y([(0,p.property)({type:String})],e.prototype,"keyboardKey",void 0),y([(0,p.property)({type:String})],e.prototype,"label",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"loading",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"outline",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"hasRemoveStyle",void 0),y([(0,p.property)({type:String})],e.prototype,"size",void 0),y([(0,p.property)({type:String})],e.prototype,"tag",void 0),y([(0,p.property)({type:String})],e.prototype,"type",void 0),y([(0,p.property)({type:String})],e.prototype,"role",void 0),y([(0,p.property)({type:String})],e.prototype,"variant",void 0),y([(0,p.property)({type:String})],e.prototype,"width",void 0),y([(0,p.property)({type:String})],e.prototype,"maxWidth",void 0),y([(0,p.property)({type:String})],e.prototype,"activityType",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"iconActive",void 0),y([(0,p.property)({type:Boolean})],e.prototype,"isActive",void 0),y([(0,p.property)({type:String,attribute:"aria-describedby"})],e.prototype,"ariaDescribedBy",void 0),y([(0,p.property)({attribute:!1})],e.prototype,"clickFunction",void 0),y([(0,p.property)({type:Boolean,attribute:"is-placeholder-text"})],e.prototype,"isPlaceholderText",void 0),y([(0,p.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),y([(0,p.query)(".md-button")],e.prototype,"button",void 0),e=y([(0,r.w)("md-button")],e),t.ELEMENT=e}($||($={}))}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var a=o[t]={exports:{}};return i[t](a,a.exports,r),a.exports}r.m=i,t=[],r.O=(e,i,o,a)=>{if(!i){var s=1/0;for(l=0;l<t.length;l++){for(var[i,o,a]=t[l],n=!0,p=0;p<i.length;p++)(!1&a||s>=a)&&Object.keys(r.O).every(t=>r.O[t](i[p]))?i.splice(p--,1):(n=!1,a<s&&(s=a));if(n){t.splice(l--,1);var d=o();void 0!==d&&(e=d)}}return e}a=a||0;for(var l=t.length;l>0&&t[l-1][2]>a;l--)t[l]=t[l-1];t[l]=[i,o,a]},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{r as __webpack_require__};e={5156:0,5983:0},r.C=t=>{var i,o,{__webpack_esm_ids__:a,__webpack_esm_modules__:s,__webpack_esm_runtime__:n}=t,p=0;for(i in s)r.o(s,i)&&(r.m[i]=s[i]);for(n&&n(r);p<a.length;p++)o=a[p],r.o(e,o)&&e[o]&&e[o][0](),e[a[p]]=0;r.O()},r.O.j=t=>0===e[t];import*as a from"../9609.js";r.C(a);import*as s from"../4084.js";r.C(s);import*as n from"../4955.js";r.C(n);import*as p from"../3517.js";r.C(p);import*as d from"../1156.js";r.C(d);import*as l from"../3305.js";r.C(l);import*as h from"../4739.js";r.C(h);import*as y from"../7154.js";r.C(y);import*as c from"../9773.js";r.C(c);import*as u from"../519.js";r.C(u);import*as b from"../8165.js";r.C(b);import*as v from"../9375.js";r.C(v);var m=r.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,519,8165,9375],()=>r(5983));const f=(m=r.O(m)).$n,g=m.Gh,$=m.Sq,x=m.MS,_=m.El,S=m.Fr,C=m.r3,w=m.uZ;export{f as Button,g as buttonAriaLive,$ as buttonColor,x as buttonRoles,_ as buttonSize,S as buttonTag,C as buttonType,w as buttonVariant};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
var t,e,s={2890(t,e,s){s.d(e,{e:()=>i});var i,r=s(2900),o=s(7704),n=s(4084),d=s(2927),l=s(8899),a=s(2670),c=function(t,e,s,i){var r,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var d=t.length-1;d>=0;d--)(r=t[d])&&(n=(o<3?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n};!function(t){let e=class extends((0,o.TS)((0,o.yC)(d.LitElement))){constructor(){super(...arguments),this.active=0,this.tabIndex=0,this.newMomentum=!1,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-disabled",`${t}`),this.tabIndex=t?-1:0,this.requestUpdate("disabled",e)}get slotElement(){return this.buttonSlot}static get styles(){return[n.A,a.A]}firstUpdated(t){super.firstUpdated(t),this.setAttribute("role","group")}setButtonTabIndex(){this.slotted.forEach(t=>t.tabIndex=-1)}updated(t){super.updated(t),t.has("slotted")&&(this.setButtonTabIndex(),this.setFirstActive())}get selectedBtnValue(){return this.slotted[this.active].value}notifySelectedChange(){this.dispatchEvent(new CustomEvent("button-group-change",{detail:{selected:this.selectedBtnValue},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("focus-visible",{composed:!0,bubbles:!0}))}setSelected(t){var e,s;const i=this.findSelectedBtnIndex();-1!==i&&i!==t&&(null===(e=this.slotted[i])||void 0===e||e.toggleAttribute("selected",!1)),null===(s=this.slotted[t])||void 0===s||s.toggleAttribute("selected",!0)}setFirstActive(){-1===this.findSelectedBtnIndex()&&this.setSelected(this.active)}findBtnIndex(t){const e=t.composedPath();return this.slotted.findIndex(t=>e.includes(t))}findSelectedBtnIndex(){return this.slotted.findIndex(t=>t.hasAttribute("selected"))}isBtnDisabled(t){return this.slotted[t].disabled}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}switchBtnOnArrowPress(t,e=1){const s=this.getAvailableSelectedIndex(t,e);-1!==s&&(this.active=s,this.setSelected(s),this.notifySelectedChange())}getAvailableSelectedIndex(t,e=1){const s=this.slotted.length;for(let i=0,r=t;i<s;i+=1,r+=e){r<0?r=s-1:r>=s&&(r=0);const t=this.slotted[r];if(this.isFocusable(t))return r}return-1}isFocusable(t){return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")}handleClick(t){const e=this.findBtnIndex(t);-1!==e&&(this.isBtnDisabled(e)||(this.active=e,this.setSelected(e),this.notifySelectedChange()))}handleKeyDown(t){const{code:e}=t;switch(e){case r.Uz.Enter:case r.Uz.Space:this.isBtnDisabled(this.active)||(this.setSelected(this.active),this.notifySelectedChange());break;case r.Uz.ArrowLeft:0===this.active?this.switchBtnOnArrowPress(this.slotted.length-1,-1):this.switchBtnOnArrowPress(this.active-1,-1);break;case r.Uz.ArrowRight:this.active===this.slotted.length-1?this.switchBtnOnArrowPress(0):this.switchBtnOnArrowPress(this.active+1)}}render(){return d.html`
|
|
2
2
|
<div role="group" class="md-button-group" part="button-group">
|
|
3
3
|
<slot name="button"></slot>
|
|
4
4
|
</div>
|
|
5
|
-
`}};c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"active",void 0),c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"newMomentum",void 0),c([(0,l.query)("slot[name='button']")],e.prototype,"buttonSlot",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=c([(0,o.wW)("md-button-group")],e),t.ELEMENT=e}(i||(i={}))},7704(t,e,s){s.d(e,{TS:()=>r.T,wW:()=>o.w,yC:()=>i.y}),s(2364);var i=s(3203),r=(s(9938),s(5201),s(4781),s(608)),o=s(9609)}
|
|
5
|
+
`}};c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"active",void 0),c([(0,l.property)({type:Number,reflect:!0})],e.prototype,"tabIndex",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"newMomentum",void 0),c([(0,l.query)("slot[name='button']")],e.prototype,"buttonSlot",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"disabled",null),e=c([(0,o.wW)("md-button-group")],e),t.ELEMENT=e}(i||(i={}))},7704(t,e,s){s.d(e,{TS:()=>r.T,wW:()=>o.w,yC:()=>i.y}),s(2364);var i=s(3203),r=(s(9938),s(5201),s(4781),s(608)),o=s(9609)}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var o=i[t]={exports:{}};return s[t](o,o.exports,r),o.exports}r.m=s,t=[],r.O=(e,s,i,o)=>{if(!s){var n=1/0;for(c=0;c<t.length;c++){for(var[s,i,o]=t[c],d=!0,l=0;l<s.length;l++)(!1&o||n>=o)&&Object.keys(r.O).every(t=>r.O[t](s[l]))?s.splice(l--,1):(d=!1,o<n&&(n=o));if(d){t.splice(c--,1);var a=i();void 0!==a&&(e=a)}}return e}o=o||0;for(var c=t.length;c>0&&t[c-1][2]>o;c--)t[c]=t[c-1];t[c]=[s,i,o]},r.d=(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{r as __webpack_require__};e={561:0,2942:0,5310:0,5323:0,7704:0,8180:0},r.C=t=>{var s,i,{__webpack_esm_ids__:o,__webpack_esm_modules__:n,__webpack_esm_runtime__:d}=t,l=0;for(s in n)r.o(n,s)&&(r.m[s]=n[s]);for(d&&d(r);l<o.length;l++)i=o[l],r.o(e,i)&&e[i]&&e[i][0](),e[o[l]]=0;r.O()},r.O.j=t=>0===e[t];import*as o from"../9609.js";r.C(o);import*as n from"../4084.js";r.C(n);import*as d from"../2364.js";r.C(d);import*as l from"../9938.js";r.C(l);import*as a from"../4781.js";r.C(a);import*as c from"../5201.js";r.C(c);import*as h from"../5584.js";r.C(h);import*as p from"../2900.js";r.C(p);import*as u from"../2927.js";r.C(u);import*as b from"../608.js";r.C(b);import*as f from"../8899.js";r.C(f);import*as v from"../2670.js";r.C(v);var m=r.O(void 0,[9609,4084,2364,9938,4781,5201,5584,2900,2927,608,8899,2670],()=>r(2890));const y=(m=r.O(m)).e;export{y as ButtonGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../2364.js";import"../9938.js";import"../4781.js";import"../5201.js";import"../5584.js";import"../2900.js";import"../608.js";import"../2670.js";export*from"../comp/md-button-group-entry.js";
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../2364.js";import"../9938.js";import"../4781.js";import"../5201.js";import"../5584.js";import"../2900.js";import"../2927.js";import"../608.js";import"../8899.js";import"../2670.js";export*from"../comp/md-button-group-entry.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../519.js";export*from"../comp/md-button-entry.js";
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../4955.js";import"../3517.js";import"../1156.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../519.js";import"../8165.js";import"../9375.js";export*from"../comp/md-button-entry.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var t,e,s={7224(t,e,s){s.d(e,{a:()=>i,p:()=>r}),s(5983),s(1821);var i,r,o=s(9609),a=s(4084),d=s(2927),n=s(8899),m=s(4955),c=s(5308),h=function(t,e,s,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,i);else for(var d=t.length-1;d>=0;d--)(r=t[d])&&(a=(o<3?r(a):o>3?r(e,s,a):r(e,s))||a);return o>3&&a&&Object.defineProperty(e,s,a),a};!function(t){t.USER_QUERY="user_query",t.RESPONSE="response"}(i||(i={})),function(t){let e=class extends d.LitElement{constructor(){super(...arguments),this.id="",this.title="",this.cardText="",this.timestamp="",this.summariseMoreVisible=!1,this.variant=i.RESPONSE,this.copyChecked=!1,this.thumbsUpChecked=!1,this.thumbsDownChecked=!1}static get styles(){return[a.A,c.A]}thumbsUpToggled(){this.thumbsDownChecked=!1,this.thumbsUpChecked=!this.thumbsUpChecked,this.dispatchEvent(new CustomEvent("thumbs-up-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}thumbsDownToggled(){this.thumbsUpChecked=!1,this.thumbsDownChecked=!this.thumbsDownChecked,this.dispatchEvent(new CustomEvent("thumbs-down-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}summariseMoreToggled(){this.dispatchEvent(new CustomEvent("summarise-more-toggled",{detail:{id:this.id},bubbles:!0,composed:!0}))}copyToggled(){navigator.clipboard.writeText(this.cardText),this.copyChecked=!0,setTimeout(()=>{this.copyChecked=!1},2e3)}get bottomBorderRadiusClass(){return this.timestamp?"with-bottom-border-radius":"no-bottom-border-radius"}get cardTextClassMap(){return{"md-card-ai-card-body-user-query":this.variant===i.USER_QUERY,[`md-card-ai-card-body-response-${this.bottomBorderRadiusClass}`]:this.variant===i.RESPONSE}}renderHeader(){return this.variant===i.RESPONSE&&""!==this.title?d.html`
|
|
2
2
|
<div class="md-card-ai-header">
|
|
3
3
|
<slot name="card-header-aside">
|
|
4
4
|
<md-icon name="cisco-ai-assistant-color-gradient" iconSet="momentumBrandVisuals"></md-icon>
|
|
@@ -74,4 +74,4 @@ import*as t from"@momentum-ui/icons/data/momentumUiIconsNames.json";import*as e
|
|
|
74
74
|
${this.renderHeader()}
|
|
75
75
|
<div class="content-margin">${this.renderCardText()} ${this.renderFooter()}</div>
|
|
76
76
|
</div>
|
|
77
|
-
`}};
|
|
77
|
+
`}};h([(0,n.property)({type:String})],e.prototype,"id",void 0),h([(0,n.property)({type:String})],e.prototype,"title",void 0),h([(0,n.property)({type:String})],e.prototype,"cardText",void 0),h([(0,n.property)({type:String})],e.prototype,"timestamp",void 0),h([(0,n.property)({type:Boolean})],e.prototype,"summariseMoreVisible",void 0),h([(0,n.property)({type:String})],e.prototype,"variant",void 0),h([(0,n.state)()],e.prototype,"copyChecked",void 0),h([(0,n.state)()],e.prototype,"thumbsUpChecked",void 0),h([(0,n.state)()],e.prototype,"thumbsDownChecked",void 0),e=h([(0,o.w)("md-card-ai")],e),t.ELEMENT=e}(r||(r={}))}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var o=i[t]={exports:{}};return s[t](o,o.exports,r),o.exports}r.m=s,t=[],r.O=(e,s,i,o)=>{if(!s){var a=1/0;for(c=0;c<t.length;c++){for(var[s,i,o]=t[c],d=!0,n=0;n<s.length;n++)(!1&o||a>=o)&&Object.keys(r.O).every(t=>r.O[t](s[n]))?s.splice(n--,1):(d=!1,o<a&&(a=o));if(d){t.splice(c--,1);var m=i();void 0!==m&&(e=m)}}return e}o=o||0;for(var c=t.length;c>0&&t[c-1][2]>o;c--)t[c]=t[c-1];t[c]=[s,i,o]},r.d=(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{r as __webpack_require__};e={4971:0},r.C=t=>{var s,i,{__webpack_esm_ids__:o,__webpack_esm_modules__:a,__webpack_esm_runtime__:d}=t,n=0;for(s in a)r.o(a,s)&&(r.m[s]=a[s]);for(d&&d(r);n<o.length;n++)i=o[n],r.o(e,i)&&e[i]&&e[i][0](),e[o[n]]=0;r.O()},r.O.j=t=>0===e[t];import*as o from"../9609.js";r.C(o);import*as a from"../4084.js";r.C(a);import*as d from"../4955.js";r.C(d);import*as n from"../3517.js";r.C(n);import*as m from"../1156.js";r.C(m);import*as c from"../3305.js";r.C(c);import*as h from"../4739.js";r.C(h);import*as p from"../7154.js";r.C(p);import*as l from"../9773.js";r.C(l);import*as u from"../5983.js";r.C(u);import*as b from"../7755.js";r.C(b);import*as v from"../1821.js";r.C(v);import*as C from"../4980.js";r.C(C);import*as g from"../9500.js";r.C(g);import*as y from"../519.js";r.C(y);import*as f from"../4137.js";r.C(f);import*as k from"../8165.js";r.C(k);import*as T from"../2451.js";r.C(T);var E=r.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,5983,7755,1821,4980,9500,519,4137,8165,2451],()=>r(7224));const $=(E=r.O(E)).p,j=E.a;export{$ as CardAi,j as CardAiVariant};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../9609.js";import"../4084.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../4955.js";import"../3517.js";import"../1156.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../7755.js";import"../1821.js";import"../4980.js";import"../9500.js";import"../519.js";import"../4137.js";import"../8165.js";import"../2451.js";export*from"../comp/md-card-ai-entry.js";
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
var t,e,i={4882(t,e,i){i.d(e,{v:()=>c}),i(5983),i(2583),i(1821);var o=i(9609),r=i(4084),s=i(2927),a=i(8899),n=i(4955),l=i(7137),p=function(t,e,i,o){var r,s=arguments.length,a=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(s<3?r(a):s>3?r(e,i,a):r(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};const d={critical:{icon:"flag-filled",color:"negative"},warning:{icon:"warning-filled",color:"warning"}},h={live:"Live",dismiss:"Dismiss",justNow:"Just now",minutesAgo:t=>`${t} ${1===t?"min":"mins"} ago`,hoursAgo:t=>`${t} ${1===t?"hour":"hours"} ago`,daysAgo:t=>`${t} ${1===t?"day":"days"} ago`};var c;!function(t){let e=class extends s.LitElement{constructor(){super(...arguments),this.severity="",this.category="",this.timestamp="",this.live=!1,this.title="",this.queueName="",this.details=[],this.insight="",this.primaryActionLabel="Click",this.primaryActionDropdown=!1,this.detailsHeading="",this.showDismiss=!0,this.expanded=!1,this.relativeTime=""}static get styles(){return[r.A,l.A]}get severityIcon(){var t,e;return null!==(e=null===(t=d[this.severity.toLowerCase()])||void 0===t?void 0:t.icon)&&void 0!==e?e:"info-circle-filled"}get severityColor(){var t,e;return null!==(e=null===(t=d[this.severity.toLowerCase()])||void 0===t?void 0:t.color)&&void 0!==e?e:"neutral"}updateRelativeTime(){this.timestamp&&!this.live&&(this.relativeTime=this.formatRelativeTime(this.timestamp))}startTimer(){this.stopTimer(),this.timestamp&&!this.live&&(this.updateRelativeTime(),this.timerInterval=setInterval(()=>this.updateRelativeTime(),6e4))}stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=void 0)}willUpdate(t){(t.has("timestamp")||t.has("live"))&&this.startTimer()}disconnectedCallback(){super.disconnectedCallback(),this.stopTimer()}formatRelativeTime(t){const e=this.constructor.locale,i=Date.now(),o="number"==typeof t?t:new Date(t).getTime();if(isNaN(o))return"";const r=i-o;if(r<0)return e.justNow;const s=Math.floor(r/6e4);if(s<1)return e.justNow;if(s<60)return e.minutesAgo(s);const a=Math.floor(s/60);if(a<24)return e.hoursAgo(a);const n=Math.floor(a/24);return e.daysAgo(n)}handlePrimaryAction(){this.dispatchEvent(new CustomEvent("primary-action-clicked",{bubbles:!0,composed:!0}))}handleDismiss(){this.dispatchEvent(new CustomEvent("dismiss-clicked",{bubbles:!0,composed:!0}))}renderTimestamp(){const t=this.constructor.locale;return this.live?s.html`<span class="md-card-alert-live"
|
|
2
|
+
><md-icon
|
|
3
|
+
name="active-presence-small-filled"
|
|
4
|
+
size="10"
|
|
5
|
+
iconSet="momentumDesign"
|
|
6
|
+
class="md-card-alert-live-icon"
|
|
7
|
+
></md-icon
|
|
8
|
+
>${t.live}</span
|
|
9
|
+
>`:this.relativeTime?s.html`<span class="md-card-alert-timestamp">${this.relativeTime}</span>`:s.nothing}renderHeader(){return this.severity||this.category||this.timestamp||this.live?s.html`
|
|
10
|
+
<div class="md-card-alert-header">
|
|
11
|
+
<div class="md-card-alert-chips">
|
|
12
|
+
${this.severity?s.html`
|
|
13
|
+
<md-chip value=${this.severity} color=${this.severityColor} small>
|
|
14
|
+
<md-icon
|
|
15
|
+
name=${this.severityIcon}
|
|
16
|
+
size="14"
|
|
17
|
+
iconSet="momentumDesign"
|
|
18
|
+
slot="custom-left-content"
|
|
19
|
+
></md-icon>
|
|
20
|
+
</md-chip>
|
|
21
|
+
`:s.nothing}
|
|
22
|
+
${this.category?s.html`<md-chip value=${this.category} color="neutral" small></md-chip>`:s.nothing}
|
|
23
|
+
</div>
|
|
24
|
+
${this.renderTimestamp()}
|
|
25
|
+
</div>
|
|
26
|
+
`:s.nothing}renderTitleSection(){return this.title||this.queueName?s.html`
|
|
27
|
+
<div class="md-card-alert-title-section">
|
|
28
|
+
${this.title?s.html`<h3 class="md-card-alert-title">${this.title}</h3>`:s.nothing}
|
|
29
|
+
${this.queueName?s.html`
|
|
30
|
+
<p class="md-card-alert-subtitle">
|
|
31
|
+
<md-icon
|
|
32
|
+
name="queue-contact-bold"
|
|
33
|
+
size="16"
|
|
34
|
+
iconSet="momentumDesign"
|
|
35
|
+
class="md-card-alert-subtitle-icon"
|
|
36
|
+
></md-icon>
|
|
37
|
+
${this.queueName}
|
|
38
|
+
</p>
|
|
39
|
+
`:s.nothing}
|
|
40
|
+
</div>
|
|
41
|
+
`:s.nothing}renderDetails(){return this.details&&0!==this.details.length?s.html`
|
|
42
|
+
<div class="md-card-alert-details">
|
|
43
|
+
<span class="md-card-alert-details-heading">${this.detailsHeading}</span>
|
|
44
|
+
${this.details.map(t=>s.html`
|
|
45
|
+
<div class="md-card-alert-detail-row">
|
|
46
|
+
<span class="md-card-alert-detail-label">${t.label}</span>
|
|
47
|
+
<span
|
|
48
|
+
class=${(0,n.classMap)({"md-card-alert-detail-value":!0,"md-card-alert-detail-value--highlighted":!!t.highlighted})}
|
|
49
|
+
>${t.value}</span
|
|
50
|
+
>
|
|
51
|
+
</div>
|
|
52
|
+
`)}
|
|
53
|
+
</div>
|
|
54
|
+
`:s.nothing}renderInsight(){return this.insight?s.html`
|
|
55
|
+
<div class="md-card-alert-insight">
|
|
56
|
+
<md-icon name="sparkle-filled" iconSet="momentumDesign" class="md-card-alert-insight-icon"></md-icon>
|
|
57
|
+
<span class="md-card-alert-insight-text">${this.insight}</span>
|
|
58
|
+
</div>
|
|
59
|
+
`:s.nothing}renderActions(){return s.html`
|
|
60
|
+
<div class="md-card-alert-actions">
|
|
61
|
+
<md-button
|
|
62
|
+
size="32"
|
|
63
|
+
variant="primary"
|
|
64
|
+
class="md-card-alert-primary-action"
|
|
65
|
+
ariaLabel=${this.primaryActionLabel}
|
|
66
|
+
@click=${this.handlePrimaryAction}
|
|
67
|
+
>
|
|
68
|
+
<span slot="text">${this.primaryActionLabel}</span>
|
|
69
|
+
${this.primaryActionDropdown?s.html`<md-icon
|
|
70
|
+
name=${this.expanded?"arrow-up-bold":"arrow-down-bold"}
|
|
71
|
+
size="12"
|
|
72
|
+
iconSet="momentumDesign"
|
|
73
|
+
></md-icon>`:s.nothing}
|
|
74
|
+
</md-button>
|
|
75
|
+
${this.showDismiss?s.html`
|
|
76
|
+
<md-button
|
|
77
|
+
size="32"
|
|
78
|
+
variant="secondary"
|
|
79
|
+
outline
|
|
80
|
+
class="md-card-alert-dismiss"
|
|
81
|
+
ariaLabel=${this.constructor.locale.dismiss}
|
|
82
|
+
@click=${this.handleDismiss}
|
|
83
|
+
>
|
|
84
|
+
<span slot="text">${this.constructor.locale.dismiss}</span>
|
|
85
|
+
</md-button>
|
|
86
|
+
`:s.nothing}
|
|
87
|
+
</div>
|
|
88
|
+
`}render(){return s.html`
|
|
89
|
+
<div class="md-card-alert" part="card" tabindex="0">
|
|
90
|
+
${this.renderHeader()} ${this.renderTitleSection()} ${this.renderDetails()} ${this.renderInsight()}
|
|
91
|
+
${this.renderActions()}
|
|
92
|
+
</div>
|
|
93
|
+
`}};e.locale=Object.assign({},h),p([(0,a.property)({type:String})],e.prototype,"severity",void 0),p([(0,a.property)({type:String})],e.prototype,"category",void 0),p([(0,a.property)({type:String})],e.prototype,"timestamp",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"live",void 0),p([(0,a.property)({type:String})],e.prototype,"title",void 0),p([(0,a.property)({type:String})],e.prototype,"queueName",void 0),p([(0,a.property)({type:Array})],e.prototype,"details",void 0),p([(0,a.property)({type:String})],e.prototype,"insight",void 0),p([(0,a.property)({type:String})],e.prototype,"primaryActionLabel",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"primaryActionDropdown",void 0),p([(0,a.property)({type:String})],e.prototype,"detailsHeading",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"showDismiss",void 0),p([(0,a.property)({type:Boolean})],e.prototype,"expanded",void 0),p([(0,a.state)()],e.prototype,"relativeTime",void 0),e=p([(0,o.w)("md-card-alert")],e),t.ELEMENT=e}(c||(c={}))},2583(t,e,i){i(2708),i(9613);var o,r=i(2900),s=i(9609),a=i(4084),n=i(2927),l=i(8899),p=i(4955),d=i(3517),h=i(9558),c=function(t,e,i,o){var r,s=arguments.length,a=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(s<3?r(a):s>3?r(e,i,a):r(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.color="",this.bgColor="",this.textColor="",this.height="",this.icon="",this.iconColor="",this.iconSize="",this.role="group",this.id="",this.small=!1,this.readonly=!1,this.selected=!1,this.disabled=!1,this.determinateProgress=0,this.indeterminateProgress=!1,this.tooltipText="",this.tooltipPlacement="auto",this.iconSet="momentumUI",this.suppressDefaultMaxWidth=!1,this.decorative=!1,this.shouldTruncateValue=!0,this.value="",this.textOverflow=!1,this.renderedText="",this.MAXWIDTH=115,this.selectionChange=t=>{this.dispatchEvent(new CustomEvent("chip-selected",{composed:!0,bubbles:!0,detail:{selected:t}}))},this.handleClear=t=>{this.dispatchEvent(new CustomEvent("chip-deleted",{composed:!0,bubbles:!0,detail:{id:t}}))},this.handleSelect=()=>{this.disabled||(this.selected=!0,this.selectionChange(!0))},this.handleDeSelect=()=>{this.selected=!1,this.selectionChange(!1)},this.renderBgColor=()=>this.bgColor?`background-color: ${this.bgColor};`:n.nothing,this.renderTextColor=()=>this.textColor?`color: ${this.textColor};`:n.nothing,this.renderHeight=()=>this.height?`height: ${this.height};`:n.nothing,this.getStyles=()=>this.bgColor||this.textColor||this.height?n.html`
|
|
94
|
+
<style>
|
|
95
|
+
:host .md-chip {
|
|
96
|
+
${this.renderBgColor()};
|
|
97
|
+
${this.renderTextColor()};
|
|
98
|
+
${this.renderHeight()};
|
|
99
|
+
}
|
|
100
|
+
</style>
|
|
101
|
+
`:n.nothing}connectedCallback(){super.connectedCallback(),this.truncStringPortion(this.value),this.setAttribute("role",this.role)}willUpdate(t){super.willUpdate(t),(t.has("value")||t.has("shouldTruncateValue"))&&this.truncStringPortion(this.value)}getTextWidth(t,e){const i=null!=e?e:getComputedStyle(this).font,o=document.createElement("canvas").getContext("2d");return o?(o.font=i,o.measureText(t).width):0}truncStringPortion(t){const e=this.getTextWidth(t);if(!this.shouldTruncateValue||e<this.MAXWIDTH)return this.renderedText=t,void(this.textOverflow=!1);const i=Array.from(t);let o=Math.min(4,i.length),r=Math.min(5,Math.max(0,i.length-o-1)),s=i.slice(0,o).join(""),a=i.slice(-r).join(""),n=`${s}…${a}`;if(this.getTextWidth(n)>this.MAXWIDTH)return this.renderedText=n,void(this.textOverflow=!0);for(;o+r<i.length;){let t=!1;if(o+r<i.length){const e=s+i[o],r=`${e}…${a}`;this.getTextWidth(r)<=this.MAXWIDTH&&(s=e,o+=1,n=r,t=!0)}if(o+r<i.length){const e=i[i.length-r-1]+a,o=`${s}…${e}`;this.getTextWidth(o)<=this.MAXWIDTH&&(a=e,r+=1,n=o,t=!0)}if(!t)break}this.renderedText=n,this.textOverflow=!0}handleClick(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("md-tooltip");null==e||e.dispatchEvent(new CustomEvent("tooltip-destroy",{bubbles:!0,composed:!0,detail:{placement:null==e?void 0:e.placement,reference:null==e?void 0:e.reference,popper:null==e?void 0:e.popper}})),this.dispatchEvent(new CustomEvent("chip-interaction",{composed:!0,bubbles:!0,detail:{id:this.id}}))}handleKeydown(t){switch(t.code){case r.Uz.Space:case r.Uz.Enter:this.handleSelect(),this.handleClick()}}static get styles(){return[a.A,h.A]}loadingTemplate(){return this.determinateProgress||this.indeterminateProgress?this.determinateProgress?n.html`
|
|
102
|
+
<md-progress-bar
|
|
103
|
+
class="md-chip--loading"
|
|
104
|
+
type="determinate"
|
|
105
|
+
value="${this.determinateProgress}"
|
|
106
|
+
displayFormat="none"
|
|
107
|
+
>
|
|
108
|
+
</md-progress-bar>
|
|
109
|
+
`:n.html`
|
|
110
|
+
<md-progress-bar class="md-chip--loading" type="indeterminate" displayFormat="none"></md-progress-bar>
|
|
111
|
+
`:n.nothing}iconTemplate(){const t=this.disabled?"":this.iconColor;return this.icon?n.html`
|
|
112
|
+
<md-icon
|
|
113
|
+
class="md-chip--icon"
|
|
114
|
+
part="chip-icon"
|
|
115
|
+
name="${this.icon}"
|
|
116
|
+
color="${t}"
|
|
117
|
+
iconSet=${(0,d.ifDefined)(this.iconSet)}
|
|
118
|
+
size="${(0,d.ifDefined)(this.iconSize)}"
|
|
119
|
+
>
|
|
120
|
+
</md-icon>
|
|
121
|
+
`:n.nothing}getToolTipContent(){return this.tooltipText&&this.textOverflow?this.value===this.tooltipText?this.tooltipText:`${this.value}, ${this.tooltipText}`:this.tooltipText?this.tooltipText:this.value}get textContentClassMap(){return{"md-chip--textcontent":!0,"md-chip--suppress-default-max-width":this.suppressDefaultMaxWidth}}get textContentTemplate(){return n.html`<span part="text-content" class=${(0,p.classMap)(this.textContentClassMap)}> ${this.renderedText}</span>`}render(){const t={"md-chip--small":this.small,"md-chip--disabled":this.disabled,[`md-chip--${this.color}`]:this.color,"suppress-max-width":this.suppressDefaultMaxWidth,"md-chip--interactive":!this.decorative},e=this.decorative?void 0:this.selected?"true":"false";return n.html`
|
|
122
|
+
${this.getStyles()}
|
|
123
|
+
<md-tooltip
|
|
124
|
+
?disabled=${!this.tooltipText&&!this.textOverflow}
|
|
125
|
+
message="${this.getToolTipContent()}"
|
|
126
|
+
part="tooltip"
|
|
127
|
+
placement="${this.tooltipPlacement}"
|
|
128
|
+
>
|
|
129
|
+
<span
|
|
130
|
+
role=${(0,d.ifDefined)(this.decorative?void 0:"button")}
|
|
131
|
+
tabindex="0"
|
|
132
|
+
class="md-chip ${(0,p.classMap)(t)}"
|
|
133
|
+
part="chip"
|
|
134
|
+
aria-pressed=${(0,d.ifDefined)(e)}
|
|
135
|
+
@click=${this.decorative?void 0:()=>this.handleClick()}
|
|
136
|
+
@keydown=${this.decorative?void 0:t=>this.handleKeydown(t)}
|
|
137
|
+
>
|
|
138
|
+
${this.loadingTemplate()} ${this.iconTemplate()}
|
|
139
|
+
<slot name="custom-left-content" part="chip-left"> </slot>
|
|
140
|
+
${this.renderedText?this.textContentTemplate:n.nothing}
|
|
141
|
+
<slot name="custom-right-content" part="chip-right"> </slot>
|
|
142
|
+
</span>
|
|
143
|
+
</md-tooltip>
|
|
144
|
+
`}};c([(0,l.property)({type:String})],e.prototype,"color",void 0),c([(0,l.property)({type:String})],e.prototype,"bgColor",void 0),c([(0,l.property)({type:String})],e.prototype,"textColor",void 0),c([(0,l.property)({type:String})],e.prototype,"height",void 0),c([(0,l.property)({type:String})],e.prototype,"icon",void 0),c([(0,l.property)({type:String})],e.prototype,"iconColor",void 0),c([(0,l.property)({type:String})],e.prototype,"iconSize",void 0),c([(0,l.property)({type:String})],e.prototype,"role",void 0),c([(0,l.property)({type:String,reflect:!0})],e.prototype,"id",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"small",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"readonly",void 0),c([(0,l.property)({type:Boolean,reflect:!0})],e.prototype,"selected",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,l.property)({type:Number})],e.prototype,"determinateProgress",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"indeterminateProgress",void 0),c([(0,l.property)({type:String})],e.prototype,"tooltipText",void 0),c([(0,l.property)({type:String})],e.prototype,"tooltipPlacement",void 0),c([(0,l.property)({type:String})],e.prototype,"iconSet",void 0),c([(0,l.property)({type:Boolean,attribute:"suppress-default-max-width"})],e.prototype,"suppressDefaultMaxWidth",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"decorative",void 0),c([(0,l.property)({type:Boolean})],e.prototype,"shouldTruncateValue",void 0),c([(0,l.property)({type:String,hasChanged:(t,e)=>t!==e})],e.prototype,"value",void 0),c([(0,l.state)({hasChanged:(t,e)=>t!==e})],e.prototype,"textOverflow",void 0),c([(0,l.state)()],e.prototype,"renderedText",void 0),e=c([(0,s.w)("md-chip")],e),t.ELEMENT=e}(o||(o={}))}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var s=o[t]={exports:{}};return i[t](s,s.exports,r),s.exports}r.m=i,t=[],r.O=(e,i,o,s)=>{if(!i){var a=1/0;for(d=0;d<t.length;d++){for(var[i,o,s]=t[d],n=!0,l=0;l<i.length;l++)(!1&s||a>=s)&&Object.keys(r.O).every(t=>r.O[t](i[l]))?i.splice(l--,1):(n=!1,s<a&&(a=s));if(n){t.splice(d--,1);var p=o();void 0!==p&&(e=p)}}return e}s=s||0;for(var d=t.length;d>0&&t[d-1][2]>s;d--)t[d]=t[d-1];t[d]=[i,o,s]},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{r as __webpack_require__};e={2583:0,8619:0},r.C=t=>{var i,o,{__webpack_esm_ids__:s,__webpack_esm_modules__:a,__webpack_esm_runtime__:n}=t,l=0;for(i in a)r.o(a,i)&&(r.m[i]=a[i]);for(n&&n(r);l<s.length;l++)o=s[l],r.o(e,o)&&e[o]&&e[o][0](),e[s[l]]=0;r.O()},r.O.j=t=>0===e[t];import*as s from"../9609.js";r.C(s);import*as a from"../4084.js";r.C(a);import*as n from"../4955.js";r.C(n);import*as l from"../3517.js";r.C(l);import*as p from"../1156.js";r.C(p);import*as d from"../3305.js";r.C(d);import*as h from"../4739.js";r.C(h);import*as c from"../7154.js";r.C(c);import*as m from"../9773.js";r.C(m);import*as v from"../5983.js";r.C(v);import*as u from"../7755.js";r.C(u);import*as y from"../1821.js";r.C(y);import*as g from"../2364.js";r.C(g);import*as f from"../4980.js";r.C(f);import*as C from"../5308.js";r.C(C);import*as b from"../9938.js";r.C(b);import*as $ from"../9500.js";r.C($);import*as x from"../4781.js";r.C(x);import*as T from"../5584.js";r.C(T);import*as w from"../8227.js";r.C(w);import*as j from"../2900.js";r.C(j);import*as S from"../2050.js";r.C(S);import*as D from"../1280.js";r.C(D);import*as A from"../6343.js";r.C(A);import*as O from"../7582.js";r.C(O);import*as E from"../9613.js";r.C(E);import*as M from"../5323.js";r.C(M);import*as P from"../6631.js";r.C(P);import*as k from"../9558.js";r.C(k);import*as _ from"../2708.js";r.C(_);import*as I from"../7137.js";r.C(I);var B=r.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,5983,7755,1821,2364,4980,5308,9938,9500,4781,5584,8227,2900,2050,1280,6343,7582,9613,5323,6631,9558,2708,7137],()=>r(4882));const W=(B=r.O(B)).v;export{W as CardAlert};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../9609.js";import"../4084.js";import"../4955.js";import"../3517.js";import"../1156.js";import"../3305.js";import"../4739.js";import"../7154.js";import"../9773.js";import"../5983.js";import"../7755.js";import"../1821.js";import"../2364.js";import"../4980.js";import"../5308.js";import"../9938.js";import"../9500.js";import"../4781.js";import"../5584.js";import"../8227.js";import"../2900.js";import"../2050.js";import"../1280.js";import"../6343.js";import"../7582.js";import"../9613.js";import"../5323.js";import"../6631.js";import"../9558.js";import"../2708.js";import"../7137.js";export*from"../comp/md-card-alert-entry.js";
|