@momentum-ui/web-components 3.2.21 → 3.2.22
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/1392.js +1 -1
- package/dist/1618.js +1 -1
- package/dist/1816.js +2 -2
- package/dist/1928.js +1 -1
- package/dist/226.js +1 -1
- package/dist/2297.js +1 -1
- package/dist/2364.js +1 -1
- package/dist/2492.js +1 -1
- package/dist/2670.js +1 -1
- package/dist/2797.js +1 -1
- package/dist/2927.js +1 -1
- package/dist/2991.js +1 -1
- package/dist/3013.js +1 -1
- package/dist/3051.js +1 -1
- package/dist/3241.js +1 -1
- package/dist/3272.js +1 -1
- package/dist/3305.js +1 -1
- package/dist/3331.js +1 -1
- package/dist/3543.js +1 -1
- package/dist/378.js +1 -1
- package/dist/3842.js +1 -1
- package/dist/3876.js +1 -1
- package/dist/3970.js +1 -1
- package/dist/4047.js +1 -1
- package/dist/4084.js +1 -1
- package/dist/4242.js +1 -1
- package/dist/4431.js +1 -1
- package/dist/4449.js +1 -1
- package/dist/4700.js +1 -1
- package/dist/4739.js +1 -1
- package/dist/476.js +1 -1
- package/dist/4839.js +1 -1
- package/dist/4958.js +1 -1
- package/dist/4973.js +1 -1
- package/dist/5057.js +1 -1
- package/dist/513.js +1 -1
- package/dist/5584.js +1 -1
- package/dist/5846.js +1 -1
- package/dist/6005.js +1 -1
- package/dist/608.js +1 -1
- package/dist/6142.js +1 -1
- package/dist/6325.js +1 -1
- package/dist/6343.js +1 -1
- package/dist/6429.js +1 -1
- package/dist/6631.js +1 -1
- package/dist/6816.js +1 -1
- package/dist/6843.js +1 -1
- package/dist/7137.js +1 -1
- package/dist/7155.js +1 -1
- package/dist/7162.js +1 -1
- package/dist/7231.js +1 -1
- package/dist/7262.js +1 -1
- package/dist/740.js +1 -1
- package/dist/742.js +1 -1
- package/dist/7557.js +1 -1
- package/dist/7582.js +1 -1
- package/dist/7906.js +8 -3
- package/dist/7911.js +1 -1
- package/dist/8373.js +1 -1
- package/dist/8441.js +1 -1
- package/dist/861.js +3 -3
- package/dist/8687.js +1 -1
- package/dist/887.js +1 -1
- package/dist/8881.js +1 -1
- package/dist/9146.js +1 -1
- package/dist/9244.js +1 -1
- package/dist/9316.js +1 -1
- package/dist/9336.js +1 -1
- package/dist/9404.js +1 -1
- package/dist/9431.js +1 -1
- package/dist/9485.js +1 -1
- package/dist/9488.js +1 -1
- package/dist/9558.js +1 -1
- package/dist/9609.js +1 -1
- package/dist/9940.js +1 -1
- package/dist/9956.js +1 -1
- package/dist/9983.js +1 -1
- package/dist/comp/md-accordion-entry.js +2 -2
- package/dist/comp/md-accordion-item-entry.js +2 -2
- package/dist/comp/md-activity-button-entry.js +2 -2
- package/dist/comp/md-advance-list-entry.js +5 -5
- package/dist/comp/md-alert-banner-entry.js +17 -17
- package/dist/comp/md-alert-entry.js +2 -2
- package/dist/comp/md-audio-player-entry.js +3 -3
- package/dist/comp/md-avatar-entry.js +3 -3
- package/dist/comp/md-badge-entry.js +6 -6
- package/dist/comp/md-breadcrumb-entry.js +4 -4
- package/dist/comp/md-button-entry.js +33 -33
- package/dist/comp/md-button-group-entry.js +2 -2
- package/dist/comp/md-card-ai-entry.js +9 -9
- package/dist/comp/md-card-alert-entry.js +4 -4
- package/dist/comp/md-card-entry.js +2 -2
- package/dist/comp/md-card-v2-entry.js +2 -2
- package/dist/comp/md-chat-message-entry.js +8 -6
- package/dist/comp/md-checkbox-entry.js +2 -2
- package/dist/comp/md-checkboxgroup-entry.js +2 -2
- package/dist/comp/md-chip-entry.js +3 -3
- package/dist/comp/md-coachmark-entry.js +8 -8
- package/dist/comp/md-coachmark-popover-entry.js +2 -2
- package/dist/comp/md-combobox-entry.js +2 -2
- package/dist/comp/md-composite-avatar-entry.js +3 -3
- package/dist/comp/md-country-code-picker-entry.js +4 -4
- package/dist/comp/md-date-range-picker-entry.js +1 -1
- package/dist/comp/md-date-time-picker-entry.js +2 -2
- package/dist/comp/md-datepicker-calendar-entry.js +2 -2
- package/dist/comp/md-datepicker-day-entry.js +3 -3
- package/dist/comp/md-datepicker-entry.js +3 -3
- package/dist/comp/md-datepicker-month-entry.js +2 -2
- package/dist/comp/md-datepicker-week-entry.js +2 -2
- package/dist/comp/md-draggable-entry.js +2 -2
- package/dist/comp/md-draggable-item-entry.js +5 -5
- package/dist/comp/md-dropdown-entry.js +2 -2
- package/dist/comp/md-editable-field-entry.js +9 -9
- package/dist/comp/md-favorite-entry.js +3 -3
- package/dist/comp/md-floating-minimize-entry.js +2 -2
- package/dist/comp/md-floating-modal-entry.js +2 -2
- package/dist/comp/md-form-entry.js +2 -2
- package/dist/comp/md-grabber-entry.js +5 -5
- package/dist/comp/md-help-text-entry.js +8 -3
- package/dist/comp/md-icon-entry.js +8 -8
- package/dist/comp/md-input-entry.js +2 -2
- package/dist/comp/md-input-file.js +3 -3
- package/dist/comp/md-label-entry.js +3 -3
- package/dist/comp/md-link-entry.js +14 -14
- package/dist/comp/md-list-entry.js +3 -3
- package/dist/comp/md-list-item-entry.js +2 -2
- package/dist/comp/md-loading-entry.js +2 -2
- package/dist/comp/md-meeting-alert-entry.js +10 -10
- package/dist/comp/md-menu-entry.js +2 -2
- package/dist/comp/md-menu-item-entry.js +2 -2
- package/dist/comp/md-menu-overlay-entry.js +3 -3
- package/dist/comp/md-modal-entry.js +17 -17
- package/dist/comp/md-pagination-entry.js +2 -2
- package/dist/comp/md-phone-input-entry.js +9 -9
- package/dist/comp/md-popover-entry.js +2 -2
- package/dist/comp/md-presence-entry.js +2 -2
- package/dist/comp/md-progress-bar-entry.js +3 -3
- package/dist/comp/md-radio-entry.js +2 -2
- package/dist/comp/md-radiogroup-entry.js +2 -2
- package/dist/comp/md-slider-entry.js +5 -5
- package/dist/comp/md-spinner-entry.js +3 -3
- package/dist/comp/md-tab-entry.js +4 -4
- package/dist/comp/md-tab-panel-entry.js +1 -1
- package/dist/comp/md-table-advanced-entry.js +10 -10
- package/dist/comp/md-table-entry.js +11 -11
- package/dist/comp/md-tabs-entry.js +5 -5
- package/dist/comp/md-task-item-entry.js +7 -7
- package/dist/comp/md-theme-entry.js +3 -3
- package/dist/comp/md-timepicker-entry.js +6 -6
- package/dist/comp/md-toggle-switch-entry.js +8 -8
- package/dist/comp/md-tooltip-entry.js +2 -2
- package/dist/esm/1156.js +1 -1
- package/dist/esm/1280.js +1 -1
- package/dist/esm/1392.js +1 -1
- package/dist/esm/1756.js +1 -1
- package/dist/esm/1816.js +2 -2
- package/dist/esm/1928.js +1 -1
- package/dist/esm/1982.js +1 -1
- package/dist/esm/226.js +1 -1
- package/dist/esm/2297.js +1 -1
- package/dist/esm/2364.js +1 -1
- package/dist/esm/2451.js +1 -1
- package/dist/esm/2458.js +1 -1
- package/dist/esm/2577.js +1 -1
- package/dist/esm/2599.js +1 -1
- package/dist/esm/2670.js +1 -1
- package/dist/esm/2797.js +1 -1
- package/dist/esm/2927.js +1 -1
- package/dist/esm/2991.js +1 -1
- package/dist/esm/3051.js +1 -1
- package/dist/esm/3155.js +1 -1
- package/dist/esm/3272.js +1 -1
- package/dist/esm/3305.js +1 -1
- package/dist/esm/3331.js +1 -1
- package/dist/esm/3365.js +1 -1
- package/dist/esm/3517.js +1 -1
- package/dist/esm/3543.js +1 -1
- package/dist/esm/3648.js +1 -1
- package/dist/esm/378.js +2 -2
- package/dist/esm/3842.js +1 -1
- package/dist/esm/3876.js +1 -1
- package/dist/esm/3970.js +1 -1
- package/dist/esm/4047.js +1 -1
- package/dist/esm/4060.js +1 -1
- package/dist/esm/4084.js +1 -1
- package/dist/esm/4137.js +1 -1
- package/dist/esm/4242.js +1 -1
- package/dist/esm/4431.js +1 -1
- package/dist/esm/4449.js +1 -1
- package/dist/esm/4613.js +1 -1
- package/dist/esm/4700.js +1 -1
- package/dist/esm/4739.js +1 -1
- package/dist/esm/476.js +1 -1
- package/dist/esm/477.js +1 -1
- package/dist/esm/4839.js +1 -1
- package/dist/esm/4955.js +1 -1
- package/dist/esm/4958.js +1 -1
- package/dist/esm/4973.js +1 -1
- package/dist/esm/4980.js +1 -1
- package/dist/esm/5057.js +1 -1
- package/dist/esm/513.js +1 -1
- package/dist/esm/5308.js +1 -1
- package/dist/esm/5432.js +1 -1
- package/dist/esm/546.js +1 -1
- package/dist/esm/5525.js +8 -3
- package/dist/esm/5584.js +1 -1
- package/dist/esm/5846.js +1 -1
- package/dist/esm/6005.js +1 -1
- package/dist/esm/608.js +1 -1
- package/dist/esm/6142.js +1 -1
- package/dist/esm/6325.js +1 -1
- package/dist/esm/6343.js +1 -1
- package/dist/esm/6518.js +1 -1
- package/dist/esm/6525.js +1 -1
- package/dist/esm/6631.js +1 -1
- package/dist/esm/6816.js +1 -1
- package/dist/esm/6843.js +1 -1
- package/dist/esm/6897.js +1 -1
- package/dist/esm/6933.js +1 -1
- package/dist/esm/6994.js +1 -1
- package/dist/esm/7119.js +1 -1
- package/dist/esm/7137.js +1 -1
- package/dist/esm/7155.js +1 -1
- package/dist/esm/7162.js +1 -1
- package/dist/esm/7231.js +1 -1
- package/dist/esm/740.js +1 -1
- package/dist/esm/742.js +1 -1
- package/dist/esm/7557.js +1 -1
- package/dist/esm/7582.js +1 -1
- package/dist/esm/7638.js +1 -1
- package/dist/esm/7755.js +1 -1
- package/dist/esm/7838.js +1 -1
- package/dist/esm/7906.js +6 -1
- package/dist/esm/7911.js +1 -1
- package/dist/esm/8165.js +1 -1
- package/dist/esm/8235.js +1 -1
- package/dist/esm/8441.js +1 -1
- package/dist/esm/861.js +3 -3
- package/dist/esm/8687.js +1 -1
- package/dist/esm/887.js +1 -1
- package/dist/esm/8899.js +1 -1
- package/dist/esm/9244.js +1 -1
- package/dist/esm/9316.js +1 -1
- package/dist/esm/9336.js +1 -1
- package/dist/esm/9375.js +1 -1
- package/dist/esm/9404.js +1 -1
- package/dist/esm/9431.js +1 -1
- package/dist/esm/9485.js +1 -1
- package/dist/esm/9500.js +1 -1
- package/dist/esm/9558.js +1 -1
- package/dist/esm/9609.js +1 -1
- package/dist/esm/9642.js +1 -1
- package/dist/esm/9940.js +1 -1
- package/dist/esm/9983.js +1 -1
- package/dist/esm/comp/md-accordion-entry.js +2 -2
- package/dist/esm/comp/md-accordion-item-entry.js +4 -4
- package/dist/esm/comp/md-activity-button-entry.js +2 -2
- package/dist/esm/comp/md-advance-list-entry.js +3 -3
- package/dist/esm/comp/md-alert-banner-entry.js +19 -19
- package/dist/esm/comp/md-alert-entry.js +2 -2
- package/dist/esm/comp/md-audio-player-entry.js +3 -3
- package/dist/esm/comp/md-avatar-entry.js +1 -1
- package/dist/esm/comp/md-badge-entry.js +1 -1
- package/dist/esm/comp/md-breadcrumb-entry.js +5 -5
- package/dist/esm/comp/md-button-entry.js +33 -33
- package/dist/esm/comp/md-button-group-entry.js +2 -2
- package/dist/esm/comp/md-card-ai-entry.js +4 -4
- package/dist/esm/comp/md-card-alert-entry.js +2 -2
- package/dist/esm/comp/md-card-entry.js +7 -7
- package/dist/esm/comp/md-card-v2-entry.js +2 -2
- package/dist/esm/comp/md-chat-message-entry.js +4 -2
- package/dist/esm/comp/md-checkbox-entry.js +2 -2
- package/dist/esm/comp/md-checkboxgroup-entry.js +2 -2
- package/dist/esm/comp/md-chip-entry.js +1 -1
- package/dist/esm/comp/md-coachmark-entry.js +8 -8
- package/dist/esm/comp/md-coachmark-popover-entry.js +2 -2
- package/dist/esm/comp/md-combobox-entry.js +1 -1
- package/dist/esm/comp/md-composite-avatar-entry.js +3 -3
- package/dist/esm/comp/md-country-code-picker-entry.js +1 -1
- package/dist/esm/comp/md-date-range-picker-entry.js +1 -1
- package/dist/esm/comp/md-date-time-picker-entry.js +2 -2
- package/dist/esm/comp/md-datepicker-calendar-entry.js +1 -1
- package/dist/esm/comp/md-datepicker-day-entry.js +1 -1
- package/dist/esm/comp/md-datepicker-entry.js +3 -3
- package/dist/esm/comp/md-datepicker-month-entry.js +1 -1
- package/dist/esm/comp/md-datepicker-week-entry.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-dropdown-entry.js +2 -2
- package/dist/esm/comp/md-editable-field-entry.js +9 -9
- package/dist/esm/comp/md-favorite-entry.js +1 -1
- package/dist/esm/comp/md-floating-minimize-entry.js +1 -1
- package/dist/esm/comp/md-floating-modal-entry.js +3 -3
- package/dist/esm/comp/md-form-entry.js +2 -2
- package/dist/esm/comp/md-grabber-entry.js +5 -5
- package/dist/esm/comp/md-help-text-entry.js +1 -1
- package/dist/esm/comp/md-icon-entry.js +8 -8
- package/dist/esm/comp/md-input-entry.js +2 -2
- package/dist/esm/comp/md-input-file.js +2 -2
- package/dist/esm/comp/md-label-entry.js +1 -1
- package/dist/esm/comp/md-link-entry.js +12 -12
- 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-loading-entry.js +1 -1
- package/dist/esm/comp/md-meeting-alert-entry.js +10 -10
- 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-overlay-entry.js +2 -2
- package/dist/esm/comp/md-modal-entry.js +6 -6
- package/dist/esm/comp/md-pagination-entry.js +2 -2
- package/dist/esm/comp/md-phone-input-entry.js +2 -2
- package/dist/esm/comp/md-popover-entry.js +1 -1
- package/dist/esm/comp/md-presence-entry.js +1 -1
- package/dist/esm/comp/md-progress-bar-entry.js +1 -1
- package/dist/esm/comp/md-radio-entry.js +2 -2
- package/dist/esm/comp/md-radiogroup-entry.js +2 -2
- package/dist/esm/comp/md-slider-entry.js +2 -2
- package/dist/esm/comp/md-spinner-entry.js +1 -1
- package/dist/esm/comp/md-tab-entry.js +4 -4
- package/dist/esm/comp/md-tab-panel-entry.js +1 -1
- package/dist/esm/comp/md-table-advanced-entry.js +5 -5
- package/dist/esm/comp/md-table-entry.js +11 -11
- package/dist/esm/comp/md-tabs-entry.js +5 -5
- package/dist/esm/comp/md-task-item-entry.js +18 -18
- package/dist/esm/comp/md-theme-entry.js +3 -3
- package/dist/esm/comp/md-timepicker-entry.js +2 -2
- package/dist/esm/comp/md-toggle-switch-entry.js +4 -4
- package/dist/esm/comp/md-tooltip-entry.js +3 -3
- package/dist/esm/index-entry.js +12 -10
- package/dist/esm/index.js +1 -1
- package/dist/esm/managers/thememanager-entry.js +1 -1
- package/dist/index-entry.js +18 -11
- package/dist/managers/thememanager-entry.js +1 -1
- package/dist/types/components/chat-message/ChatMessage.d.ts +2 -0
- package/dist/types/components/chat-message/ChatMessage.stories.d.ts +10 -0
- package/dist/types/components/help-text/HelpText.test.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
var t
|
|
1
|
+
var t={5983(t,e,i){i.d(e,{$n:()=>o});var o,r=i(6616),a=(i(9773),i(9609)),s=i(7154),n=i(4084),p=i(2927),d=i(8899),l=i(4955),h=i(3517),y=i(680),c=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};!function(t){let e=class extends p.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};`:p.nothing,this.renderMaxWidth=()=>this.maxWidth?`max-width: ${this.maxWidth};`:p.nothing,this.getStyles=()=>{if(this.width||this.maxWidth)return p.html`
|
|
2
2
|
<style>
|
|
3
3
|
:host .md-button--${this.size} {
|
|
4
4
|
${this.renderWidth()};
|
|
5
5
|
${this.renderMaxWidth()};
|
|
6
6
|
}
|
|
7
7
|
</style>
|
|
8
|
-
`},this.iconTemplate=()=>this.loading?
|
|
8
|
+
`},this.iconTemplate=()=>this.loading?p.html` <md-spinner size="16"></md-spinner> `:p.html` <slot name="icon"></slot> `,this.textTemplate=()=>this.circle&&this.hasIcon?p.nothing:p.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){(null!=t?t:this).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,s.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[n.A,y.A,r.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 p.html`
|
|
9
9
|
<span part="button-children" class="md-button__children">
|
|
10
10
|
${this.iconTemplate()} ${this.textTemplate()}
|
|
11
11
|
<slot></slot>
|
|
12
12
|
</span>
|
|
13
13
|
<slot name="notification"></slot>
|
|
14
|
-
`}get computedAriaExpand(){return"true"===this.ariaExpanded?"true":"false"===this.ariaExpanded?"false":void 0}buttonTemplate(t){return"button"===t?
|
|
14
|
+
`}get computedAriaExpand(){return"true"===this.ariaExpanded?"true":"false"===this.ariaExpanded?"false":void 0}buttonTemplate(t){return"button"===t?p.html`
|
|
15
15
|
<button
|
|
16
16
|
part="button"
|
|
17
17
|
id=${this.id}
|
|
18
|
-
class="md-button ${(0,
|
|
18
|
+
class="md-button ${(0,l.classMap)(this.buttonClassMap)}"
|
|
19
19
|
@click=${t=>this.handleClick(t)}
|
|
20
20
|
@keydown=${t=>this.handleKeyDown(t)}
|
|
21
|
-
tabindex=${(0,
|
|
22
|
-
aria-label=${(0,
|
|
23
|
-
aria-labelledby=${(0,
|
|
24
|
-
aria-live=${(0,
|
|
25
|
-
aria-expanded=${(0,
|
|
26
|
-
aria-haspopup=${(0,
|
|
27
|
-
aria-pressed=${(0,
|
|
28
|
-
aria-disabled=${(0,
|
|
29
|
-
aria-describedby=${(0,
|
|
21
|
+
tabindex=${(0,h.ifDefined)(this.tabIndex||void 0)}
|
|
22
|
+
aria-label=${(0,h.ifDefined)(this.ariaLabel||void 0)}
|
|
23
|
+
aria-labelledby=${(0,h.ifDefined)(this.ariaLabelledBy||void 0)}
|
|
24
|
+
aria-live=${(0,h.ifDefined)(this.ariaLive||void 0)}
|
|
25
|
+
aria-expanded=${(0,h.ifDefined)(this.computedAriaExpand)}
|
|
26
|
+
aria-haspopup=${(0,h.ifDefined)("false"===this.ariaHaspopup?void 0:this.ariaHaspopup)}
|
|
27
|
+
aria-pressed=${(0,h.ifDefined)(this.ariaPressed||void 0)}
|
|
28
|
+
aria-disabled=${(0,h.ifDefined)(this.disabled||this.loading||void 0)}
|
|
29
|
+
aria-describedby=${(0,h.ifDefined)(this.ariaDescribedBy||void 0)}
|
|
30
30
|
type=${this.type}
|
|
31
|
-
role=${(0,
|
|
31
|
+
role=${(0,h.ifDefined)("button"===this.role?void 0:this.role)}
|
|
32
32
|
>
|
|
33
33
|
${this.childrenTemplate()}
|
|
34
34
|
</button>
|
|
35
|
-
`:"input"===t?
|
|
35
|
+
`:"input"===t?p.html`
|
|
36
36
|
<input
|
|
37
37
|
part="button"
|
|
38
38
|
id=${this.id}
|
|
39
|
-
class="md-button ${(0,
|
|
39
|
+
class="md-button ${(0,l.classMap)(this.buttonClassMap)}"
|
|
40
40
|
@click=${t=>this.handleClick(t)}
|
|
41
41
|
@keydown=${t=>this.handleKeyDown(t)}
|
|
42
42
|
role=${this.role}
|
|
43
|
-
tabindex=${(0,
|
|
43
|
+
tabindex=${(0,h.ifDefined)(this.tabIndex||void 0)}
|
|
44
44
|
aria-pressed=${"true"===this.ariaPressed}
|
|
45
|
-
aria-label=${(0,
|
|
46
|
-
aria-labelledby=${(0,
|
|
47
|
-
aria-live=${(0,
|
|
45
|
+
aria-label=${(0,h.ifDefined)(this.ariaLabel||void 0)}
|
|
46
|
+
aria-labelledby=${(0,h.ifDefined)(this.ariaLabelledBy||void 0)}
|
|
47
|
+
aria-live=${(0,h.ifDefined)(this.ariaLive||void 0)}
|
|
48
48
|
type=${this.type}
|
|
49
49
|
alt=${this.label}
|
|
50
50
|
value=${this.value}
|
|
51
|
-
aria-disabled=${(0,
|
|
51
|
+
aria-disabled=${(0,h.ifDefined)(this.disabled||this.loading||void 0)}
|
|
52
52
|
/>
|
|
53
|
-
`:"a"===t?
|
|
53
|
+
`:"a"===t?p.html`
|
|
54
54
|
<a
|
|
55
55
|
part="button"
|
|
56
56
|
id=${this.id}
|
|
57
|
-
class="md-button ${(0,
|
|
57
|
+
class="md-button ${(0,l.classMap)(this.buttonClassMap)}"
|
|
58
58
|
@click=${t=>this.handleClick(t)}
|
|
59
59
|
@keydown=${t=>this.handleKeyDown(t)}
|
|
60
60
|
role=${this.role}
|
|
61
|
-
tabindex=${(0,
|
|
61
|
+
tabindex=${(0,h.ifDefined)(this.tabIndex||void 0)}
|
|
62
62
|
aria-pressed=${"true"===this.ariaPressed?"true":"false"}
|
|
63
|
-
aria-label=${(0,
|
|
64
|
-
aria-labelledby=${(0,
|
|
65
|
-
aria-live=${(0,
|
|
66
|
-
aria-disabled=${(0,
|
|
63
|
+
aria-label=${(0,h.ifDefined)(this.ariaLabel||void 0)}
|
|
64
|
+
aria-labelledby=${(0,h.ifDefined)(this.ariaLabelledBy||void 0)}
|
|
65
|
+
aria-live=${(0,h.ifDefined)(this.ariaLive||void 0)}
|
|
66
|
+
aria-disabled=${(0,h.ifDefined)(this.disabled||this.loading||void 0)}
|
|
67
67
|
href=${this.href}
|
|
68
68
|
>
|
|
69
69
|
${this.childrenTemplate()}
|
|
70
70
|
</a>
|
|
71
|
-
`:
|
|
71
|
+
`:p.nothing}get buttonContainerClassMap(){return{"md-button__container":this.containerLarge,"md-button__container--small":!this.containerLarge}}render(){return p.html`
|
|
72
72
|
${this.getStyles()}
|
|
73
|
-
${this.label?
|
|
74
|
-
<div part="button-container" class=${(0,
|
|
73
|
+
${this.label?p.html`
|
|
74
|
+
<div part="button-container" class=${(0,l.classMap)(this.buttonContainerClassMap)}>
|
|
75
75
|
${this.buttonTemplate(this.tag)}
|
|
76
76
|
<div part="button-label" class="md-button__label">${this.label}</div>
|
|
77
77
|
</div>
|
|
78
|
-
`:
|
|
79
|
-
`}};
|
|
78
|
+
`:p.html` ${this.buttonTemplate(this.tag)} `}
|
|
79
|
+
`}};c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"active",null),c([(0,d.property)({type:Number,attribute:"tab-index",reflect:!0})],e.prototype,"tabIndex",null),c([(0,d.property)({type:String})],e.prototype,"ariaLabel",void 0),c([(0,d.property)({type:String})],e.prototype,"ariaLabelledBy",void 0),c([(0,d.property)({type:String})],e.prototype,"ariaLive",void 0),c([(0,d.property)({type:String})],e.prototype,"ariaExpanded",void 0),c([(0,d.property)({type:String})],e.prototype,"ariaHaspopup",void 0),c([(0,d.property)({type:String})],e.prototype,"ariaPressed",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"circle",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"rounded",void 0),c([(0,d.property)({type:String})],e.prototype,"color",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"containerLarge",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"disabled",void 0),c([(0,d.property)({type:String})],e.prototype,"href",void 0),c([(0,d.property)({type:String})],e.prototype,"id",void 0),c([(0,d.property)({type:String})],e.prototype,"value",void 0),c([(0,d.property)({type:String})],e.prototype,"keyboardKey",void 0),c([(0,d.property)({type:String})],e.prototype,"label",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"loading",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"outline",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"hasRemoveStyle",void 0),c([(0,d.property)({type:String})],e.prototype,"size",void 0),c([(0,d.property)({type:String})],e.prototype,"tag",void 0),c([(0,d.property)({type:String})],e.prototype,"type",void 0),c([(0,d.property)({type:String})],e.prototype,"role",void 0),c([(0,d.property)({type:String})],e.prototype,"variant",void 0),c([(0,d.property)({type:String})],e.prototype,"width",void 0),c([(0,d.property)({type:String})],e.prototype,"maxWidth",void 0),c([(0,d.property)({type:String})],e.prototype,"activityType",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"iconActive",void 0),c([(0,d.property)({type:Boolean})],e.prototype,"isActive",void 0),c([(0,d.property)({type:String,attribute:"aria-describedby"})],e.prototype,"ariaDescribedBy",void 0),c([(0,d.property)({attribute:!1})],e.prototype,"clickFunction",void 0),c([(0,d.property)({type:Boolean,attribute:"is-placeholder-text"})],e.prototype,"isPlaceholderText",void 0),c([(0,d.property)({type:Boolean,reflect:!0})],e.prototype,"autofocus",void 0),c([(0,d.query)(".md-button")],e.prototype,"button",void 0),e=c([(0,a.w)("md-button")],e),t.ELEMENT=e}(o||(o={})),i.d(e,["El",0,["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],"Fr",0,["button","input","a"],"Gh",0,["","off","polite","assertive"],"MS",0,["button","checkbox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","switch","tab"],"Sq",0,["blue","red","green","orange","yellow","mint","purple","pink","cyan","white","dark-gray","duck-egg","violet","color-none",""],"r3",0,["button","reset","submit"],"uZ",0,["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"]])}};const e={};function i(o){const r=e[o];if(void 0!==r)return r.exports;const a=e[o]={exports:{}};return t[o](a,a.exports,i),a.exports}i.m=t,(()=>{const t=[];i.O=(e,o,r,a)=>{if(o){a=a||0;for(var s=t.length;s>0&&t[s-1][2]>a;s--)t[s]=t[s-1];return void(t[s]=[o,r,a])}let n=1/0;for(s=0;s<t.length;s++){let[o,r,a]=t[s],d=!0;for(var p=0;p<o.length;p++)(!1&a||n>=a)&&Object.keys(i.O).every(t=>i.O[t](o[p]))?o.splice(p--,1):(d=!1,a<n&&(n=a));if(d){t.splice(s--,1);const i=r();void 0!==i&&(e=i)}}return e}})(),i.d=(t,e)=>{if(Array.isArray(e))for(var o=0;o<e.length;){var r=e[o++],a=e[o++];i.o(t,r)?0===a&&o++:0===a?Object.defineProperty(t,r,{enumerable:!0,value:e[o++]}):Object.defineProperty(t,r,{enumerable:!0,get:a})}else for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{i as __webpack_require__};(()=>{const t={5156:0,5983:0};i.C=e=>{let{__webpack_esm_ids__:o,__webpack_esm_modules__:r,__webpack_esm_runtime__:a}=e;var s,n,p=0;for(s in r)i.o(r,s)&&(i.m[s]=r[s]);for(a&&a(i);p<o.length;p++)n=o[p],i.o(t,n)&&t[n]&&t[n][0](),t[o[p]]=0;i.O()},i.O.j=e=>0===t[e]})();import*as o from"../9609.js";i.C(o);import*as r from"../4084.js";i.C(r);import*as a from"../4955.js";i.C(a);import*as s from"../3517.js";i.C(s);import*as n from"../1156.js";i.C(n);import*as p from"../3305.js";i.C(p);import*as d from"../4739.js";i.C(d);import*as l from"../7154.js";i.C(l);import*as h from"../9773.js";i.C(h);import*as y from"../519.js";i.C(y);import*as c from"../8165.js";i.C(c);import*as u from"../9375.js";i.C(u);let b=i.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,519,8165,9375],()=>i(5983));b=i.O(b);const v=b.$n,m=b.Gh,f=b.Sq,g=b.MS,$=b.El,x=b.Fr,_=b.r3,S=b.uZ;export{v as Button,m as buttonAriaLive,f as buttonColor,g as buttonRoles,$ as buttonSize,x as buttonTag,_ as buttonType,S as buttonVariant};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var t
|
|
1
|
+
var t={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)}};const e={};function s(i){const r=e[i];if(void 0!==r)return r.exports;const o=e[i]={exports:{}};return t[i](o,o.exports,s),o.exports}s.m=t,(()=>{const t=[];s.O=(e,i,r,o)=>{if(i){o=o||0;for(var n=t.length;n>0&&t[n-1][2]>o;n--)t[n]=t[n-1];return void(t[n]=[i,r,o])}let d=1/0;for(n=0;n<t.length;n++){let[i,r,o]=t[n],a=!0;for(var l=0;l<i.length;l++)(!1&o||d>=o)&&Object.keys(s.O).every(t=>s.O[t](i[l]))?i.splice(l--,1):(a=!1,o<d&&(d=o));if(a){t.splice(n--,1);const s=r();void 0!==s&&(e=s)}}return e}})(),s.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var r=e[i++],o=e[i++];s.o(t,r)?0===o&&i++:0===o?Object.defineProperty(t,r,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,r,{enumerable:!0,get:o})}else for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{s as __webpack_require__};(()=>{const t={561:0,2942:0,5310:0,5323:0,7704:0,8180:0};s.C=e=>{let{__webpack_esm_ids__:i,__webpack_esm_modules__:r,__webpack_esm_runtime__:o}=e;var n,d,l=0;for(n in r)s.o(r,n)&&(s.m[n]=r[n]);for(o&&o(s);l<i.length;l++)d=i[l],s.o(t,d)&&t[d]&&t[d][0](),t[i[l]]=0;s.O()},s.O.j=e=>0===t[e]})();import*as i from"../9609.js";s.C(i);import*as r from"../4084.js";s.C(r);import*as o from"../2364.js";s.C(o);import*as n from"../9938.js";s.C(n);import*as d from"../4781.js";s.C(d);import*as l from"../5584.js";s.C(l);import*as a from"../5201.js";s.C(a);import*as c from"../2900.js";s.C(c);import*as h from"../2927.js";s.C(h);import*as p from"../608.js";s.C(p);import*as u from"../8899.js";s.C(u);import*as b from"../2670.js";s.C(b);let f=s.O(void 0,[9609,4084,2364,9938,4781,5584,5201,2900,2927,608,8899,2670],()=>s(2890));f=s.O(f);const m=f.e;export{m as ButtonGroup};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var t
|
|
1
|
+
var t={7224(t,e,s){s.d(e,{a:()=>r,p:()=>i}),s(5983),s(1821);var r,i,o=s(9609),a=s(4084),d=s(2927),n=s(8899),m=s(4955),c=s(5308),h=function(t,e,s,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,r);else for(var d=t.length-1;d>=0;d--)(i=t[d])&&(a=(o<3?i(a):o>3?i(e,s,a):i(e,s))||a);return o>3&&a&&Object.defineProperty(e,s,a),a};!function(t){t.USER_QUERY="user_query",t.RESPONSE="response"}(r||(r={})),function(t){let e=class extends d.LitElement{constructor(){super(...arguments),this.id="",this.title="",this.cardText="",this.timestamp="",this.summariseMoreVisible=!1,this.variant=r.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===r.USER_QUERY,[`md-card-ai-card-body-response-${this.bottomBorderRadiusClass}`]:this.variant===r.RESPONSE}}renderHeader(){return this.variant===r.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>
|
|
@@ -55,7 +55,7 @@ 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
|
|
|
55
55
|
<span slot="text">${this.copyChecked?"Copied":"Copy"}</span>
|
|
56
56
|
</md-button>
|
|
57
57
|
</div>
|
|
58
|
-
`}renderResponseCard(){return this.variant===
|
|
58
|
+
`}renderResponseCard(){return this.variant===r.RESPONSE&&""!==this.timestamp?d.html`
|
|
59
59
|
<div class="md-card-ai-divider"></div>
|
|
60
60
|
<div class="md-card-ai-time-wrapper">
|
|
61
61
|
<time class="md-card-ai-time" aria-hidden="true" datetime=${this.timestamp}> ${this.timestamp} </time>
|
|
@@ -63,7 +63,7 @@ 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
|
|
|
63
63
|
<div class="md-card-ai-feedback">${this.renderThumbsUpButton()} ${this.renderThumbsDownButton()}</div>
|
|
64
64
|
${this.renderCopyButton()}
|
|
65
65
|
</div>
|
|
66
|
-
`:d.nothing}renderFooter(){return this.variant===
|
|
66
|
+
`:d.nothing}renderFooter(){return this.variant===r.RESPONSE&&this.summariseMoreVisible?d.html`
|
|
67
67
|
<div class="md-card-ai-footer">
|
|
68
68
|
<md-button size="32" variant="ghost" outline @click=${this.summariseMoreToggled}>
|
|
69
69
|
<span slot="text">Summarise more</span>
|
|
@@ -74,4 +74,4 @@ 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
|
|
|
74
74
|
${this.renderHeader()}
|
|
75
75
|
<div class="content-margin">${this.renderCardText()} ${this.renderFooter()}</div>
|
|
76
76
|
</div>
|
|
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}(
|
|
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}(i||(i={}))}};const e={};function s(r){const i=e[r];if(void 0!==i)return i.exports;const o=e[r]={exports:{}};return t[r](o,o.exports,s),o.exports}s.m=t,(()=>{const t=[];s.O=(e,r,i,o)=>{if(r){o=o||0;for(var a=t.length;a>0&&t[a-1][2]>o;a--)t[a]=t[a-1];return void(t[a]=[r,i,o])}let d=1/0;for(a=0;a<t.length;a++){let[r,i,o]=t[a],m=!0;for(var n=0;n<r.length;n++)(!1&o||d>=o)&&Object.keys(s.O).every(t=>s.O[t](r[n]))?r.splice(n--,1):(m=!1,o<d&&(d=o));if(m){t.splice(a--,1);const s=i();void 0!==s&&(e=s)}}return e}})(),s.d=(t,e)=>{if(Array.isArray(e))for(var r=0;r<e.length;){var i=e[r++],o=e[r++];s.o(t,i)?0===o&&r++:0===o?Object.defineProperty(t,i,{enumerable:!0,value:e[r++]}):Object.defineProperty(t,i,{enumerable:!0,get:o})}else for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{s as __webpack_require__};(()=>{const t={4971:0};s.C=e=>{let{__webpack_esm_ids__:r,__webpack_esm_modules__:i,__webpack_esm_runtime__:o}=e;var a,d,n=0;for(a in i)s.o(i,a)&&(s.m[a]=i[a]);for(o&&o(s);n<r.length;n++)d=r[n],s.o(t,d)&&t[d]&&t[d][0](),t[r[n]]=0;s.O()},s.O.j=e=>0===t[e]})();import*as r from"../9609.js";s.C(r);import*as i from"../4084.js";s.C(i);import*as o from"../4955.js";s.C(o);import*as a from"../3517.js";s.C(a);import*as d from"../1156.js";s.C(d);import*as n from"../3305.js";s.C(n);import*as m from"../4739.js";s.C(m);import*as c from"../7154.js";s.C(c);import*as h from"../9773.js";s.C(h);import*as p from"../5983.js";s.C(p);import*as l from"../7755.js";s.C(l);import*as u from"../1821.js";s.C(u);import*as b from"../4980.js";s.C(b);import*as v from"../9500.js";s.C(v);import*as C from"../519.js";s.C(C);import*as y from"../4137.js";s.C(y);import*as g from"../8165.js";s.C(g);import*as f from"../2451.js";s.C(f);let k=s.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,5983,7755,1821,4980,9500,519,4137,8165,2451],()=>s(7224));k=s.O(k);const T=k.p,j=k.a;export{T as CardAi,j as CardAiVariant};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var t
|
|
1
|
+
var t={4882(t,e,i){i.d(e,{IF:()=>o,eE:()=>m,vg:()=>y}),i(5983),i(2583),i(1821);var o,r=i(9609),s=i(4084),a=i(2927),n=i(8899),l=i(4955),p=i(7137),d=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){t.CRITICAL="critical",t.MEDIUM="medium"}(o||(o={}));const h={[o.CRITICAL]:{icon:"flag-filled",color:"negative"},[o.MEDIUM]:{icon:"warning-filled",color:"warning"}},c={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 m,y;!function(t){t.POSITIVE="positive",t.NEGATIVE="negative",t.NEUTRAL="neutral"}(m||(m={})),function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.severity="",this.category="",this.secondaryChip="",this.timestamp="",this.title="",this.queueName="",this.details=[],this.insight="",this.primaryActionLabel="",this.primaryActionDropdown=!1,this.detailsHeading="",this.showDismiss=!1,this.expanded=!1,this.relativeTime=""}static get styles(){return[s.A,p.A]}get normalizedSeverity(){var t;const e=(null!==(t=this.severity)&&void 0!==t?t:"").toLowerCase();return Object.values(o).includes(e)?e:void 0}get severityIcon(){return this.normalizedSeverity?h[this.normalizedSeverity].icon:"plus-circle-filled"}get severityColor(){return this.normalizedSeverity?h[this.normalizedSeverity].color:"neutral"}get hasInsight(){var t;return(null!==(t=this.insight)&&void 0!==t?t:"").trim().length>0}get detailRows(){return Array.isArray(this.details)?this.details:[]}get resolvedLocale(){return t=this.constructor.locale,Object.assign(Object.assign(Object.assign({},c),t),{dismiss:null!==(e=null==t?void 0:t.dismiss)&&void 0!==e?e:c.dismiss});var t,e}updateRelativeTime(){this.timestamp&&(this.relativeTime=this.formatRelativeTime(this.timestamp))}startTimer(){this.stopTimer(),this.timestamp&&(this.updateRelativeTime(),this.timerInterval=setInterval(()=>this.updateRelativeTime(),6e4))}stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=void 0)}willUpdate(t){t.has("timestamp")&&this.startTimer()}disconnectedCallback(){super.disconnectedCallback(),this.stopTimer()}formatRelativeTime(t){const e=this.resolvedLocale,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(){return this.relativeTime?a.html`<span class="md-card-alert-timestamp">${this.relativeTime}</span>`:a.nothing}renderHeader(){return this.severity||this.category||this.timestamp?a.html`
|
|
2
2
|
<div class="md-card-alert-header">
|
|
3
3
|
<div class="md-card-alert-chips">
|
|
4
4
|
<md-chip color=${this.severityColor} value=${this.category} small>
|
|
@@ -136,4 +136,4 @@ var t,e,i={4882(t,e,i){i.d(e,{IF:()=>o,eE:()=>m,vg:()=>y}),i(5983),i(2583),i(182
|
|
|
136
136
|
<slot name="custom-right-content" part="chip-right"> </slot>
|
|
137
137
|
</span>
|
|
138
138
|
</md-tooltip>
|
|
139
|
-
`}};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:Boolean})],e.prototype,"focusable",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={}))}}
|
|
139
|
+
`}};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:Boolean})],e.prototype,"focusable",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={}))}};const e={};function i(o){const r=e[o];if(void 0!==r)return r.exports;const s=e[o]={exports:{}};return t[o](s,s.exports,i),s.exports}i.m=t,(()=>{const t=[];i.O=(e,o,r,s)=>{if(o){s=s||0;for(var a=t.length;a>0&&t[a-1][2]>s;a--)t[a]=t[a-1];return void(t[a]=[o,r,s])}let n=1/0;for(a=0;a<t.length;a++){let[o,r,s]=t[a],p=!0;for(var l=0;l<o.length;l++)(!1&s||n>=s)&&Object.keys(i.O).every(t=>i.O[t](o[l]))?o.splice(l--,1):(p=!1,s<n&&(n=s));if(p){t.splice(a--,1);const i=r();void 0!==i&&(e=i)}}return e}})(),i.d=(t,e)=>{if(Array.isArray(e))for(var o=0;o<e.length;){var r=e[o++],s=e[o++];i.o(t,r)?0===s&&o++:0===s?Object.defineProperty(t,r,{enumerable:!0,value:e[o++]}):Object.defineProperty(t,r,{enumerable:!0,get:s})}else for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{i as __webpack_require__};(()=>{const t={2583:0,8619:0};i.C=e=>{let{__webpack_esm_ids__:o,__webpack_esm_modules__:r,__webpack_esm_runtime__:s}=e;var a,n,l=0;for(a in r)i.o(r,a)&&(i.m[a]=r[a]);for(s&&s(i);l<o.length;l++)n=o[l],i.o(t,n)&&t[n]&&t[n][0](),t[o[l]]=0;i.O()},i.O.j=e=>0===t[e]})();import*as o from"../9609.js";i.C(o);import*as r from"../4084.js";i.C(r);import*as s from"../4955.js";i.C(s);import*as a from"../3517.js";i.C(a);import*as n from"../1156.js";i.C(n);import*as l from"../3305.js";i.C(l);import*as p from"../4739.js";i.C(p);import*as d from"../7154.js";i.C(d);import*as h from"../9773.js";i.C(h);import*as c from"../5983.js";i.C(c);import*as m from"../7755.js";i.C(m);import*as y from"../1821.js";i.C(y);import*as u from"../2364.js";i.C(u);import*as v from"../4980.js";i.C(v);import*as g from"../5308.js";i.C(g);import*as f from"../9938.js";i.C(f);import*as C from"../9500.js";i.C(C);import*as b from"../4781.js";i.C(b);import*as $ from"../5584.js";i.C($);import*as T from"../8227.js";i.C(T);import*as x from"../2900.js";i.C(x);import*as w from"../2050.js";i.C(w);import*as S from"../1280.js";i.C(S);import*as j from"../6343.js";i.C(j);import*as A from"../7582.js";i.C(A);import*as D from"../9613.js";i.C(D);import*as I from"../5323.js";i.C(I);import*as E from"../6631.js";i.C(E);import*as O from"../9558.js";i.C(O);import*as M from"../2708.js";i.C(M);import*as P from"../7137.js";i.C(P);let k=i.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],()=>i(4882));k=i.O(k);const L=k.vg,R=k.eE,_=k.IF;export{L as CardAlert,R as CardAlertDetailImpact,_ as CardAlertSeverity};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e
|
|
1
|
+
var e={1499(e,t,s){s.d(t,{Z:()=>i}),s(5983),s(23),s(1821),s(6131),s(8552),s(708),s(9613);var i,o=s(9609),r=s(4084),a=s(2927),n=s(2577),l=s(2900),d=s(4242),c=s(8899),h=function(e,t,s,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,s,a):o(t,s))||a);return r>3&&a&&Object.defineProperty(t,s,a),a};!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.title="title",this.subtitle="",this.id="",this.info="",this.infoAriaLabel="Card Info",this.menuAriaLabel="Card Menu",this.menuOptions=[]}static get styles(){return[r.A,d.A]}handleCardClick(){this.dispatchEvent(new CustomEvent("card-click",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardKeyDown(e){e.code!==l.Uz.Enter&&e.code!==l.Uz.Space||this.dispatchEvent(new CustomEvent("card-keydown",{detail:{id:this.id},bubbles:!0,composed:!0}))}handleCardMenuEvent(e,t){e.stopPropagation();const s=t.toLowerCase();this.dispatchEvent(new CustomEvent("card-menu-click",{detail:{id:this.id,type:s},bubbles:!0,composed:!0}))}handleCardMenuKeyDown(e,t){e.preventDefault(),this.dispatchEvent(new CustomEvent("card-menu-keydown",{detail:{id:this.id,type:t.toLowerCase(),keyCode:e.code},bubbles:!0,composed:!0}))}render(){return a.html`
|
|
2
2
|
<div
|
|
3
3
|
class="md-card"
|
|
4
4
|
id="${this.id}"
|
|
@@ -43,7 +43,7 @@ var e,t,s={1499(e,t,s){s.d(t,{Z:()=>i}),s(5983),s(23),s(1821),s(6131),s(8552),s(
|
|
|
43
43
|
</md-button>
|
|
44
44
|
<div class="md-card-menu-list-items" style="width: 100%;">
|
|
45
45
|
<md-list>
|
|
46
|
-
${(0,
|
|
46
|
+
${(0,n.repeat)(this.menuOptions,(e,t)=>a.html`
|
|
47
47
|
<md-list-item
|
|
48
48
|
class="${"menu-item-"+t}"
|
|
49
49
|
slot="list-item"
|
|
@@ -65,7 +65,7 @@ var e,t,s={1499(e,t,s){s.d(t,{Z:()=>i}),s(5983),s(23),s(1821),s(6131),s(8552),s(
|
|
|
65
65
|
<slot name="footer"> </slot>
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
68
|
-
`}};h([(0,c.property)({type:String})],t.prototype,"title",void 0),h([(0,c.property)({type:String})],t.prototype,"subtitle",void 0),h([(0,c.property)({type:String})],t.prototype,"id",void 0),h([(0,c.property)({type:String})],t.prototype,"info",void 0),h([(0,c.property)({type:String,attribute:"info-aria-label"})],t.prototype,"infoAriaLabel",void 0),h([(0,c.property)({type:String,attribute:"menu-aria-label"})],t.prototype,"menuAriaLabel",void 0),h([(0,c.property)({type:Array})],t.prototype,"menuOptions",void 0),t=h([(0,o.w)("md-card")],t),e.ELEMENT=t}(i||(i={}))},23(e,t,s){s(1821);var i,o=s(2900),r=s(7704),a=s(9609),
|
|
68
|
+
`}};h([(0,c.property)({type:String})],t.prototype,"title",void 0),h([(0,c.property)({type:String})],t.prototype,"subtitle",void 0),h([(0,c.property)({type:String})],t.prototype,"id",void 0),h([(0,c.property)({type:String})],t.prototype,"info",void 0),h([(0,c.property)({type:String,attribute:"info-aria-label"})],t.prototype,"infoAriaLabel",void 0),h([(0,c.property)({type:String,attribute:"menu-aria-label"})],t.prototype,"menuAriaLabel",void 0),h([(0,c.property)({type:Array})],t.prototype,"menuOptions",void 0),t=h([(0,o.w)("md-card")],t),e.ELEMENT=t}(i||(i={}))},23(e,t,s){s(1821);var i,o=s(2900),r=s(7704),a=s(9609),n=s(4084),l=s(2927),d=s(8899),c=s(4955),h=s(3517),p=s(6816),m=function(e,t,s,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,s,a):o(t,s))||a);return r>3&&a&&Object.defineProperty(t,s,a),a};!function(e){let t=class extends((0,r.yC)(l.LitElement)){constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.value="Select favorite",this.id="",this.label="Favorite"}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.handleElectKeyDown),this.addEventListener("click",this.handleFavorite)}static get styles(){return[n.A,p.A]}handleFavorite(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-toggle",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}handleElectKeyDown(e){e.code!==o.Uz.Enter&&e.code!==o.Uz.Space||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("favorite-keydown",{detail:{active:this.checked,value:this.value},bubbles:!0,composed:!0})))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleElectKeyDown),this.removeEventListener("click",this.handleFavorite)}get favoriteClassMap(){return{"md-favorite--active":this.checked,"md-favorite--disabled":this.disabled}}render(){return l.html`
|
|
69
69
|
<label
|
|
70
70
|
for="favorite-checkbox"
|
|
71
71
|
id="${this.id}"
|
|
@@ -87,12 +87,12 @@ var e,t,s={1499(e,t,s){s.d(t,{Z:()=>i}),s(5983),s(23),s(1821),s(6131),s(8552),s(
|
|
|
87
87
|
size="16"
|
|
88
88
|
></md-icon>
|
|
89
89
|
</label>
|
|
90
|
-
`}};m([(0,
|
|
90
|
+
`}};m([(0,d.property)({type:Boolean})],t.prototype,"disabled",void 0),m([(0,d.property)({type:Boolean})],t.prototype,"checked",void 0),m([(0,d.property)({type:String})],t.prototype,"value",void 0),m([(0,d.property)({type:String})],t.prototype,"id",void 0),m([(0,d.property)({type:String})],t.prototype,"label",void 0),t=m([(0,a.w)("md-favorite")],t),e.ELEMENT=t}(i||(i={}))},6131(e,t,s){var i,o=s(2900),r=s(7704),a=s(9609),n=s(4084),l=s(2927),d=s(8899),c=s(3517),h=s(740),p=function(e,t,s,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,s,a):o(t,s))||a);return r>3&&a&&Object.defineProperty(t,s,a),a};!function(e){let t=class extends((0,r.Io)(l.LitElement)){constructor(){super(...arguments),this.alignment="vertical",this.label="option",this.activated=-1,this._role="listbox"}firstUpdated(e){super.firstUpdated(e),"none"!==this._role&&this.setAttribute("aria-label",this.label)}notifySelectedChange(){this.dispatchEvent(new CustomEvent("list-item-change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))}isFocusable(e){return!e.hasAttribute("hidden")}connectedCallback(){super.connectedCallback();const e=this.getAttribute("role");this._role=e||"listbox",this.removeAttribute("role"),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("click",this.handleClick)}findListItemIndex(e){const t=e.composedPath();return this.slotted.findIndex(e=>t.includes(e))}switchListItemOnArrowPress(e,t=1){const s=super.getAvailableSelectedIndex(e,t);-1!==s&&(this.selected=s)}setActivated(e){-1!==e&&(this.activated=e,this.selected=e,this.setSelected(e))}findSelectedListItemIndex(){return this.slotted.findIndex(e=>e.selected)}setSelected(e){const t=this.findSelectedListItemIndex();-1!==t&&t!==e&&(this.slotted[t].selected=!1),this.slotted[e]&&(this.slotted[e].selected=!0)}updated(e){super.updated(e),e.has("slotted")&&this.setActivated(this.activated),e.has("activated")&&this.setActivated(this.activated),e.has("label")&&"none"!==this._role&&this.setAttribute("aria-label",this.label)}isListItemDisabled(e){var t;const s=this.slotted[e];return null===(t=null==s?void 0:s.disabled)||void 0===t||t}handleClick(e){const t=this.findListItemIndex(e);-1!==t&&(this.isListItemDisabled(t)||(this.setActivated(t),this.notifySelectedChange()))}shouldElementHandleKey(e,t){if(e.hasAttribute("data-handles-keys")||e.closest("[data-handles-keys]"))return!0;const s=e.tagName.toLowerCase(),i=e.nodeName.toLowerCase(),r="input"===i||"textarea"===i||"select"===i,a=e.getAttribute("role"),n=e.hasAttribute("contenteditable")||"false"===e.getAttribute("aria-readonly"),l=[o.Uz.ArrowUp,o.Uz.ArrowDown,o.Uz.ArrowLeft,o.Uz.ArrowRight],d=[o.Uz.Enter,o.Uz.Space];return l.includes(t)?r||n||"textbox"===a||"combobox"===a||"listbox"===a||"menu"===a||"slider"===a||"scrollbar"===a||"tablist"===a||s.startsWith("md-")&&("md-input"===s||"md-select"===s||"md-combobox"===s):d.includes(t)?"button"===a||"link"===a||"checkbox"===a||"radio"===a||"button"===s||"a"===s||"md-button"===s||"md-checkbox"===s||"md-radio"===s||r:(t===o.Uz.Home||t===o.Uz.End)&&(r||n||"textbox"===a||"md-input"===s)}handleKeyDown(e){const t=e.composedPath()[0];if(this.shouldElementHandleKey(t,e.code))return;const{code:s}=e;switch(s){case o.Uz.End:this.switchListItemOnArrowPress(this.slotted.length-1);break;case o.Uz.Home:this.switchListItemOnArrowPress(0);break;case o.Uz.ArrowUp:case o.Uz.ArrowLeft:e.preventDefault(),0===this.selected?this.switchListItemOnArrowPress(this.slotted.length-1,-1):this.switchListItemOnArrowPress(this.selected-1,-1);break;case o.Uz.ArrowDown:case o.Uz.ArrowRight:e.preventDefault(),this.selected===this.slotted.length-1?this.switchListItemOnArrowPress(0):this.switchListItemOnArrowPress(this.selected+1);break;case o.Uz.Enter:case o.Uz.Space:this.isListItemDisabled(this.selected)||(this.setActivated(this.selected),this.notifySelectedChange())}}get slotElement(){return this.listItemSlot}static get styles(){return[n.A,h.A]}render(){return l.html`
|
|
91
91
|
<ul role=${(0,c.ifDefined)("list"!==this._role?this._role:void 0)} class="md-list" part="list">
|
|
92
92
|
<slot name="list-item"></slot>
|
|
93
93
|
</ul>
|
|
94
|
-
`}};p([(0,
|
|
95
|
-
<div class="md-list-item ${(0,
|
|
94
|
+
`}};p([(0,d.property)({type:String,reflect:!0})],t.prototype,"alignment",void 0),p([(0,d.property)({type:String})],t.prototype,"label",void 0),p([(0,d.property)({type:Number,reflect:!0})],t.prototype,"activated",void 0),p([(0,d.query)("slot[name='list-item']")],t.prototype,"listItemSlot",void 0),t=p([(0,a.w)("md-list")],t),e.ELEMENT=t}(i||(i={}))},8552(e,t,s){var i,o=s(7704),r=s(9609),a=s(4084),n=s(2927),l=s(8899),d=s(4955),c=s(740),h=function(e,t,s,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,s,a):o(t,s))||a);return r>3&&a&&Object.defineProperty(t,s,a),a};!function(e){let t=class extends((0,o.yC)(n.LitElement)){constructor(){super(...arguments),this.role="option",this.tabIndex=-1,this.shape="rounded",this._disabled=!1,this._selected=!1}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-disabled",`${e}`),this.requestUpdate("disabled",t)}get selected(){return this._selected}set selected(e){const t=this._selected;this._selected=e,"option"===this.role&&this.setAttribute("aria-selected",`${e}`),this.requestUpdate("selected",t)}get listItemTemplateClassMap(){return{[`md-list-item--${this.shape}`]:!!this.shape}}static get styles(){return[a.A,c.A]}render(){return n.html`
|
|
95
|
+
<div class="md-list-item ${(0,d.classMap)(this.listItemTemplateClassMap)}" part="list-item">
|
|
96
96
|
<slot></slot>
|
|
97
97
|
</div>
|
|
98
|
-
`}};h([(0,l.property)({type:String,reflect:!0})],t.prototype,"role",void 0),h([(0,l.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),h([(0,l.property)({type:String,reflect:!0})],t.prototype,"shape",void 0),h([(0,l.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),h([(0,l.property)({type:Boolean,reflect:!0})],t.prototype,"selected",null),t=h([(0,r.w)("md-list-item")],t),e.ELEMENT=t}(i||(i={}))},7704(e,t,s){s.d(t,{Io:()=>r.I,UM:()=>o.U,yC:()=>i.y}),s(2364);var i=s(3203),o=(s(9938),s(5201)),r=s(4781);s(608)}}
|
|
98
|
+
`}};h([(0,l.property)({type:String,reflect:!0})],t.prototype,"role",void 0),h([(0,l.property)({type:Number,reflect:!0})],t.prototype,"tabIndex",void 0),h([(0,l.property)({type:String,reflect:!0})],t.prototype,"shape",void 0),h([(0,l.property)({type:Boolean,reflect:!0})],t.prototype,"disabled",null),h([(0,l.property)({type:Boolean,reflect:!0})],t.prototype,"selected",null),t=h([(0,r.w)("md-list-item")],t),e.ELEMENT=t}(i||(i={}))},7704(e,t,s){s.d(t,{Io:()=>r.I,UM:()=>o.U,yC:()=>i.y}),s(2364);var i=s(3203),o=(s(9938),s(5201)),r=s(4781);s(608)}};const t={};function s(i){const o=t[i];if(void 0!==o)return o.exports;const r=t[i]={exports:{}};return e[i](r,r.exports,s),r.exports}s.m=e,(()=>{const e=[];s.O=(t,i,o,r)=>{if(i){r=r||0;for(var a=e.length;a>0&&e[a-1][2]>r;a--)e[a]=e[a-1];return void(e[a]=[i,o,r])}let n=1/0;for(a=0;a<e.length;a++){let[i,o,r]=e[a],d=!0;for(var l=0;l<i.length;l++)(!1&r||n>=r)&&Object.keys(s.O).every(e=>s.O[e](i[l]))?i.splice(l--,1):(d=!1,r<n&&(n=r));if(d){e.splice(a--,1);const s=o();void 0!==s&&(t=s)}}return t}})(),s.d=(e,t)=>{if(Array.isArray(t))for(var i=0;i<t.length;){var o=t[i++],r=t[i++];s.o(e,o)?0===r&&i++:0===r?Object.defineProperty(e,o,{enumerable:!0,value:t[i++]}):Object.defineProperty(e,o,{enumerable:!0,get:r})}else for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);export{s as __webpack_require__};(()=>{const e={23:0,561:0,1462:0,2942:0,5323:0,6131:0,7704:0,8180:0,8552:0};s.C=t=>{let{__webpack_esm_ids__:i,__webpack_esm_modules__:o,__webpack_esm_runtime__:r}=t;var a,n,l=0;for(a in o)s.o(o,a)&&(s.m[a]=o[a]);for(r&&r(s);l<i.length;l++)n=i[l],s.o(e,n)&&e[n]&&e[n][0](),e[i[l]]=0;s.O()},s.O.j=t=>0===e[t]})();import*as i from"../9609.js";s.C(i);import*as o from"../4084.js";s.C(o);import*as r from"../4955.js";s.C(r);import*as a from"../3517.js";s.C(a);import*as n from"../1156.js";s.C(n);import*as l from"../3305.js";s.C(l);import*as d from"../4739.js";s.C(d);import*as c from"../7154.js";s.C(c);import*as h from"../9773.js";s.C(h);import*as p from"../5983.js";s.C(p);import*as m from"../7755.js";s.C(m);import*as u from"../1821.js";s.C(u);import*as b from"../2364.js";s.C(b);import*as f from"../4980.js";s.C(f);import*as v from"../5308.js";s.C(v);import*as y from"../9500.js";s.C(y);import*as C from"../519.js";s.C(C);import*as g from"../2577.js";s.C(g);import*as w from"../2050.js";s.C(w);import*as k from"../8441.js";s.C(k);import*as E from"../6343.js";s.C(E);import*as j from"../7582.js";s.C(j);import*as A from"../608.js";s.C(A);import*as L from"../6525.js";s.C(L);import*as x from"../9613.js";s.C(x);import*as O from"../7162.js";s.C(O);import*as _ from"../708.js";s.C(_);import*as I from"../1756.js";s.C(I);import*as S from"../740.js";s.C(S);import*as U from"../6816.js";s.C(U);import*as $ from"../7557.js";s.C($);import*as z from"../4242.js";s.C(z);let D=s.O(void 0,[9609,4084,4955,3517,1156,3305,4739,7154,9773,5983,7755,1821,2364,4980,5308,9500,519,2577,2050,8441,6343,7582,608,6525,9613,7162,708,1756,740,6816,7557,4242],()=>s(1499));D=s.O(D);const P=D.Z;export{P as Card};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as t from"luxon";var e
|
|
1
|
+
import*as t from"luxon";var e={7540(t,e,r){r.d(e,{h:()=>h,o:()=>m}),r(5983),r(1821),r(9613);var a=r(9609),o=r(4084),i=r(2927),s=r(8899),n=r(4955),d=r(9642),l=r(513),p=function(t,e,r,a){var o,i=arguments.length,s=i<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,a);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};const c="hh:mm:ss";var m,h;!function(t){t.DEFAULT="default",t.ACTIVE="active",t.INACTIVE="inactive"}(m||(m={})),function(t){let e=class extends i.LitElement{constructor(){super(...arguments),this.state=m.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[o.A,l.A]}get isCardActive(){return this.state===m.ACTIVE}willUpdate(t){super.willUpdate(t),(t.has("active")||t.has("data")||t.has("createdTime"))&&this.calculateRenderedData()}expandCardToggled(){var t;this.state=this.isCardActive?m.DEFAULT:m.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===m.INACTIVE}}get footerExpandClassMap(){return{"md-card-v2-footer-expand":!0,hidden:!this.expandable}}get expandCardHandler(){return this.expandable?this.expandCardToggled:null}renderHeader(){return i.html`
|
|
2
2
|
<div class="md-card-v2-header-title">
|
|
3
3
|
<h3>${this.header}</h3>
|
|
4
4
|
${this.info?i.html`
|
|
@@ -38,4 +38,4 @@ import*as t from"luxon";var e,r,a={7540(t,e,r){r.d(e,{h:()=>h,o:()=>m}),r(5983),
|
|
|
38
38
|
</div>
|
|
39
39
|
${this.renderFooter()}
|
|
40
40
|
</div>
|
|
41
|
-
`}};
|
|
41
|
+
`}};p([(0,s.property)({type:String})],e.prototype,"state",void 0),p([(0,s.property)({type:String})],e.prototype,"identifier",void 0),p([(0,s.property)({type:String})],e.prototype,"header",void 0),p([(0,s.property)({type:String})],e.prototype,"info",void 0),p([(0,s.property)({type:String})],e.prototype,"data",void 0),p([(0,s.property)({type:Number})],e.prototype,"createdTime",void 0),p([(0,s.property)({type:Boolean})],e.prototype,"active",void 0),p([(0,s.property)({type:Boolean,reflect:!0})],e.prototype,"expandable",void 0),p([(0,s.property)({type:String,attribute:"expand-aria-label"})],e.prototype,"expandAriaLabel",void 0),p([(0,s.query)('slot[name="card-extra-info"]')],e.prototype,"extraInfoSlot",void 0),p([(0,s.state)()],e.prototype,"interval",void 0),p([(0,s.state)()],e.prototype,"renderedData",void 0),e=p([(0,a.w)("md-card-v2")],e),t.ELEMENT=e}(h||(h={}))},9642(e,r,a){e.exports=(t=>{const e={};return a.d(e,t),e})({Duration:()=>t.Duration})}};const r={};function a(t){const o=r[t];if(void 0!==o)return o.exports;const i=r[t]={exports:{}};return e[t](i,i.exports,a),i.exports}a.m=e,(()=>{const t=[];a.O=(e,r,o,i)=>{if(r){i=i||0;for(var s=t.length;s>0&&t[s-1][2]>i;s--)t[s]=t[s-1];return void(t[s]=[r,o,i])}let n=1/0;for(s=0;s<t.length;s++){let[r,o,i]=t[s],l=!0;for(var d=0;d<r.length;d++)(!1&i||n>=i)&&Object.keys(a.O).every(t=>a.O[t](r[d]))?r.splice(d--,1):(l=!1,i<n&&(n=i));if(l){t.splice(s--,1);const r=o();void 0!==r&&(e=r)}}return e}})(),a.d=(t,e)=>{if(Array.isArray(e))for(var r=0;r<e.length;){var o=e[r++],i=e[r++];a.o(t,o)?0===i&&r++:0===i?Object.defineProperty(t,o,{enumerable:!0,value:e[r++]}):Object.defineProperty(t,o,{enumerable:!0,get:i})}else for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{a as __webpack_require__};(()=>{const t={1521:0,9642:0};a.C=e=>{let{__webpack_esm_ids__:r,__webpack_esm_modules__:o,__webpack_esm_runtime__:i}=e;var s,n,d=0;for(s in o)a.o(o,s)&&(a.m[s]=o[s]);for(i&&i(a);d<r.length;d++)n=r[d],a.o(t,n)&&t[n]&&t[n][0](),t[r[d]]=0;a.O()},a.O.j=e=>0===t[e]})();import*as o from"../9609.js";a.C(o);import*as i from"../4084.js";a.C(i);import*as s from"../4955.js";a.C(s);import*as n from"../3517.js";a.C(n);import*as d from"../1156.js";a.C(d);import*as l from"../3305.js";a.C(l);import*as p from"../4739.js";a.C(p);import*as c from"../7154.js";a.C(c);import*as m from"../9773.js";a.C(m);import*as h from"../5983.js";a.C(h);import*as v from"../7755.js";a.C(v);import*as f from"../1821.js";a.C(f);import*as u from"../2364.js";a.C(u);import*as C from"../4980.js";a.C(C);import*as y from"../5308.js";a.C(y);import*as b from"../9938.js";a.C(b);import*as x from"../9500.js";a.C(x);import*as g from"../4781.js";a.C(g);import*as j from"../5584.js";a.C(j);import*as E from"../8227.js";a.C(E);import*as A from"../2900.js";a.C(A);import*as D from"../2050.js";a.C(D);import*as I from"../1280.js";a.C(I);import*as $ from"../6343.js";a.C($);import*as _ from"../7582.js";a.C(_);import*as T from"../9613.js";a.C(T);import*as w from"../5323.js";a.C(w);import*as O from"../513.js";a.C(O);let S=a.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,513],()=>a(7540));S=a.O(S);const k=S.o,M=S.h;export{k as CardState,M as CardV2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var t
|
|
1
|
+
var t={5558(t,e,s){s.d(e,{c:()=>r}),s(2245);var r,o=s(9609),i=s(4084),a=s(2927),p=s(8899),m=s(3517),l=s(9316),c=function(t,e,s,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,r);else for(var p=t.length-1;p>=0;p--)(o=t[p])&&(a=(i<3?o(a):i>3?o(e,s,a):o(e,s))||a);return i>3&&a&&Object.defineProperty(e,s,a),a};!function(t){let e=class extends a.LitElement{constructor(){super(...arguments),this.title="",this.src="",this.time="",this.label="Avatar",this.status="",this.clickableTimestamp=!1,this.isSelected=!1,this.self=!1,this.iconName="",this.newMomentum=!1}get computedAvatarType(){return void 0!==this.avatarType?this.avatarType:this.self?"self":void 0}get computedYouLabel(){return this.selfLabel||"You"}get isSelfType(){return void 0===this.avatarType?this.self:"self"===this.avatarType}timeStampClicked(){this.dispatchEvent(new CustomEvent("timestamp-clicked",{bubbles:!0,composed:!0}))}static get styles(){return[i.A,l.A]}render(){return a.html`
|
|
2
2
|
<div class="md-chat-message">
|
|
3
3
|
<div class="md-chat-message_avatar">
|
|
4
4
|
<md-avatar
|
|
@@ -6,6 +6,8 @@ var t,e,s={5558(t,e,s){s.d(e,{c:()=>r}),s(2245);var r,i=s(9609),o=s(4084),a=s(29
|
|
|
6
6
|
title=${this.self?"self":this.title}
|
|
7
7
|
label="${this.label}"
|
|
8
8
|
src=${(0,m.ifDefined)(this.self?void 0:this.src)}
|
|
9
|
+
icon-name=${(0,m.ifDefined)(this.self?void 0:this.iconName)}
|
|
10
|
+
?newMomentum=${this.newMomentum}
|
|
9
11
|
color=${(0,m.ifDefined)(this.avatarColor)}
|
|
10
12
|
size=${(0,m.ifDefined)(this.avatarSize)}
|
|
11
13
|
></md-avatar>
|
|
@@ -31,4 +33,4 @@ var t,e,s={5558(t,e,s){s.d(e,{c:()=>r}),s(2245);var r,i=s(9609),o=s(4084),a=s(29
|
|
|
31
33
|
</div>
|
|
32
34
|
</div>
|
|
33
35
|
</div>
|
|
34
|
-
`}};c([(0,p.property)({type:String})],e.prototype,"title",void 0),c([(0,p.property)({type:String})],e.prototype,"src",void 0),c([(0,p.property)({type:String})],e.prototype,"time",void 0),c([(0,p.property)({type:String})],e.prototype,"label",void 0),c([(0,p.property)({type:String})],e.prototype,"status",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"clickableTimestamp",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"isSelected",void 0),c([(0,p.property)({type:String,reflect:!0,attribute:"self-label"})],e.prototype,"selfLabel",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"self",void 0),c([(0,p.property)({type:String,reflect:!0,attribute:"avatar-color"})],e.prototype,"avatarColor",void 0),c([(0,p.property)({type:String,reflect:!0,attribute:"avatar-type"})],e.prototype,"avatarType",void 0),c([(0,p.property)({type:Number,reflect:!0,attribute:"avatar-size"})],e.prototype,"avatarSize",void 0),e=c([(0,
|
|
36
|
+
`}};c([(0,p.property)({type:String})],e.prototype,"title",void 0),c([(0,p.property)({type:String})],e.prototype,"src",void 0),c([(0,p.property)({type:String})],e.prototype,"time",void 0),c([(0,p.property)({type:String})],e.prototype,"label",void 0),c([(0,p.property)({type:String})],e.prototype,"status",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"clickableTimestamp",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"isSelected",void 0),c([(0,p.property)({type:String,reflect:!0,attribute:"self-label"})],e.prototype,"selfLabel",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"self",void 0),c([(0,p.property)({type:String,reflect:!0,attribute:"avatar-color"})],e.prototype,"avatarColor",void 0),c([(0,p.property)({type:String,reflect:!0,attribute:"avatar-type"})],e.prototype,"avatarType",void 0),c([(0,p.property)({type:Number,reflect:!0,attribute:"avatar-size"})],e.prototype,"avatarSize",void 0),c([(0,p.property)({type:String,attribute:"icon-name"})],e.prototype,"iconName",void 0),c([(0,p.property)({type:Boolean})],e.prototype,"newMomentum",void 0),e=c([(0,o.w)("md-chat-message")],e),t.ELEMENT=e}(r||(r={}))}};const e={};function s(r){const o=e[r];if(void 0!==o)return o.exports;const i=e[r]={exports:{}};return t[r](i,i.exports,s),i.exports}s.m=t,(()=>{const t=[];s.O=(e,r,o,i)=>{if(r){i=i||0;for(var a=t.length;a>0&&t[a-1][2]>i;a--)t[a]=t[a-1];return void(t[a]=[r,o,i])}let p=1/0;for(a=0;a<t.length;a++){let[r,o,i]=t[a],l=!0;for(var m=0;m<r.length;m++)(!1&i||p>=i)&&Object.keys(s.O).every(t=>s.O[t](r[m]))?r.splice(m--,1):(l=!1,i<p&&(p=i));if(l){t.splice(a--,1);const s=o();void 0!==s&&(e=s)}}return e}})(),s.d=(t,e)=>{if(Array.isArray(e))for(var r=0;r<e.length;){var o=e[r++],i=e[r++];s.o(t,o)?0===i&&r++:0===i?Object.defineProperty(t,o,{enumerable:!0,value:e[r++]}):Object.defineProperty(t,o,{enumerable:!0,get:i})}else for(var o in e)s.o(e,o)&&!s.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);export{s as __webpack_require__};(()=>{const t={7684:0};s.C=e=>{let{__webpack_esm_ids__:r,__webpack_esm_modules__:o,__webpack_esm_runtime__:i}=e;var a,p,m=0;for(a in o)s.o(o,a)&&(s.m[a]=o[a]);for(i&&i(s);m<r.length;m++)p=r[m],s.o(t,p)&&t[p]&&t[p][0](),t[r[m]]=0;s.O()},s.O.j=e=>0===t[e]})();import*as r from"../9609.js";s.C(r);import*as o from"../4084.js";s.C(o);import*as i from"../4955.js";s.C(i);import*as a from"../3517.js";s.C(a);import*as p from"../1156.js";s.C(p);import*as m from"../3305.js";s.C(m);import*as l from"../4739.js";s.C(l);import*as c from"../7154.js";s.C(c);import*as n from"../9773.js";s.C(n);import*as d from"../5983.js";s.C(d);import*as f from"../7755.js";s.C(f);import*as v from"../1821.js";s.C(v);import*as y from"../4980.js";s.C(y);import*as h from"../9500.js";s.C(h);import*as u from"../519.js";s.C(u);import*as g from"../4137.js";s.C(g);import*as b from"../8165.js";s.C(b);import*as j from"../6325.js";s.C(j);import*as C from"../4449.js";s.C(C);import*as _ from"../1392.js";s.C(_);import*as S from"../3365.js";s.C(S);import*as O from"../378.js";s.C(O);import*as $ from"../9244.js";s.C($);import*as k from"../4626.js";s.C(k);import*as T from"../9316.js";s.C(T);let w=s.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,4626,9316],()=>s(5558));w=s.O(w);const x=w.c;export{x as ChatMessage};
|