@momentum-ui/web-components 2.7.27 → 2.7.28
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/chunks/md-80.js +13 -9
- package/package.json +1 -1
package/dist/chunks/md-80.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[80],{121:function(t,e,i){"use strict";i.r(e),i.d(e,"TaskItem",(function(){return a}));i(49),i(15);var a,o=i(5),s=i(4),n=i(0),
|
|
1
|
+
(window["momentum-web-components-[id]"]=window["momentum-web-components-[id]"]||[]).push([[80],{121:function(t,e,i){"use strict";i.r(e),i.d(e,"TaskItem",(function(){return a}));i(49),i(15);var a,o=i(5),s=i(4),n=i(0),m=i(2),r=i(3),c=n.css`:host{width:100%}.md-taskitem{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:stretch;border-radius:.5rem;color:var(--md-secondary-text-color);cursor:pointer;margin-bottom:4px;min-height:5rem;padding:.75rem;position:relative;width:auto;z-index:0}.md-taskitem.selected{background-color:var(--taskitem-pressed-bg-color,#fff);box-shadow:0 .125rem .25rem rgba(0,0,0,.16)}.md-taskitem.selected .md-taskitem__content_chat,.md-taskitem.selected .md-taskitem__content_popover_title,.md-taskitem.selected .md-taskitem__content_queue{color:var(--taskitem-selected-text-color,#121212)}.md-taskitem.selected .md-taskitem__content_title.mainTitle{color:var(--taskitem-selected-text-color,#121212)}.md-taskitem:hover{background-color:var(--taskitem-hover-bg-color,#fff)}.md-taskitem:hover .md-taskitem__content_chat,.md-taskitem:hover .md-taskitem__content_popover_title,.md-taskitem:hover .md-taskitem__content_queue{color:var(--taskitem-selected-text-color,#121212)}.md-taskitem:hover .md-taskitem__content_title.mainTitle{color:var(--taskitem-selected-text-color,#121212)}.md-taskitem:active{background-color:var(--taskitem-pressed-bg-color,#fff)}.md-taskitem:active .md-taskitem__content_chat,.md-taskitem:active .md-taskitem__content_popover_title,.md-taskitem:active .md-taskitem__content_queue{color:var(--taskitem-selected-text-color,#121212)}.md-taskitem:active .md-taskitem__content_title.mainTitle{color:var(--taskitem-selected-text-color,#121212)}.md-taskitem:focus{background:var(--taskitem-focus-bg-color,#fff);box-shadow:none;outline:0}.md-taskitem:focus::after{box-shadow:0 0 0 .125rem var(--taskitem-focus-border-color,#007aa3)}.md-taskitem::after{bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0;z-index:-1;border-radius:.5rem;margin:-.125rem}.md-taskitem__mediatype{margin-right:.5rem;position:relative;width:2.625rem}.md-taskitem__mediatype .md-taskitem__status{align-items:center;display:inline-flex;justify-content:space-around;position:absolute;background:var(--taskitem-status-bg-color,#dedede);border-radius:50%;bottom:-4px;color:var(--taskitem-status-text-color,#121212);height:1.25rem;right:-4px;width:1.25rem}.md-taskitem__mediatype .md-taskitem__status md-icon{height:.75rem}.md-taskitem__mediatype .md-taskitem__status md-icon::part(icon){line-height:.75rem;vertical-align:top}.md-taskitem__mediatype .md-taskitem__status.hold{background:var(--taskitem-status-pause-bg-color,#ffd98c)}.md-taskitem__content{align-content:stretch;align-items:flex-start;align-self:stretch;display:flex;flex:0 1 auto;flex-direction:column;justify-content:center;width:calc(100% - calc(2.625rem + 6.25rem))}.md-taskitem__content_popover_title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--taskitem-text-color,#545454);font-family:"CiscoSansTT Bold","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:.9375rem;margin-bottom:.5rem;width:calc(100%)}.md-taskitem__content_title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;line-height:1.1875rem;margin-bottom:.5rem;width:calc(100%)}.md-taskitem__content_title.mainTitle{color:var(--taskitem-text-color,#545454);font-family:"CiscoSansTT Bold","Helvetica Neue",Helvetica,Arial,sans-serif}.md-taskitem__content_inner{display:flex;flex:0 1 auto;width:100%}.md-taskitem__content_queue{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:.875rem;width:100%}.md-taskitem__content_chat{color:var(--taskitem-chat-text-color,#545454);display:flex;font-size:12px;line-height:.875rem;margin-top:.5rem;position:relative;width:100%}.md-taskitem__content_chat .new-chat_massages{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:2.5rem;width:calc(100% - $taskitem-main-margin)}.md-taskitem__addition{align-items:flex-end;display:flex;flex-direction:column;margin-left:.5rem;text-align:right;width:6.25rem}.md-taskitem__addition .new-chat-quantity{background:var(--taskitem-chat-quantity-bg-color,#9df);border-radius:9px;color:var(--taskitem-chat-quantity-text-color,#103c62);display:inline-block;font-size:10px;line-height:.875rem;min-width:18px;padding:.125rem .25rem;text-align:center}`,l=function(t,e,i,a){var o,s=arguments.length,n=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,a);else for(var m=t.length-1;m>=0;m--)(o=t[m])&&(n=(s<3?o(n):s>3?o(e,i,n):o(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};!function(t){let e=class extends n.LitElement{constructor(){super(...arguments),this.mediaType="call",this.status="",this.popovertitle="",this.title="",this.queue="",this.accepted=!1,this.quantity=0,this.lastmessage="",this.selected=!1,this.customAriaLabel="",this.iconSrc="",this.renderTaskType=()=>{switch(this.mediaType.toLowerCase()){case"telephony":return n.html`
|
|
2
2
|
<md-badge color="green" circle>
|
|
3
3
|
<md-icon name="handset-active_16"></md-icon>
|
|
4
4
|
</md-badge>
|
|
@@ -18,7 +18,11 @@
|
|
|
18
18
|
<md-badge color="lime" circle>
|
|
19
19
|
<md-icon name="icon-icon-callback_18"></md-icon>
|
|
20
20
|
</md-badge>
|
|
21
|
-
`;case"
|
|
21
|
+
`;case"progressive_campaign":return n.html`
|
|
22
|
+
<md-badge color="green" circle>
|
|
23
|
+
<md-icon name="icon-icon-campaign_18"></md-icon>
|
|
24
|
+
</md-badge>
|
|
25
|
+
`;case"chat":return n.html`
|
|
22
26
|
<md-badge color="blue" circle>
|
|
23
27
|
<md-icon name="chat-active_16"></md-icon>
|
|
24
28
|
</md-badge>
|
|
@@ -60,10 +64,10 @@
|
|
|
60
64
|
<span class="new-chat-quantity">99+</span>
|
|
61
65
|
`:n.html`
|
|
62
66
|
<span class="new-chat-quantity">${this.quantity}</span>
|
|
63
|
-
`:
|
|
67
|
+
`:m.nothing}getAriaLabel(){return this.customAriaLabel?this.customAriaLabel:`${this.mediaType} ${this.status} ${this.title} ${this.queue} ${this.quantity?this.quantity:""} ${this.lastmessage}`}static get styles(){return[s.a,c]}render(){return n.html`
|
|
64
68
|
<div
|
|
65
69
|
part="task-item-container"
|
|
66
|
-
class="md-taskitem ${Object(
|
|
70
|
+
class="md-taskitem ${Object(r.classMap)({selected:this.selected})}"
|
|
67
71
|
tabindex="0"
|
|
68
72
|
aria-selected="${this.selected}"
|
|
69
73
|
@click=${t=>this.handleClick(t)}
|
|
@@ -76,17 +80,17 @@
|
|
|
76
80
|
<span class=${"md-taskitem__status "+this.status}>
|
|
77
81
|
${this.renderStatus()}
|
|
78
82
|
</span>
|
|
79
|
-
`:
|
|
83
|
+
`:m.nothing}
|
|
80
84
|
</div>
|
|
81
85
|
<div class="md-taskitem__content" part="task-item-content">
|
|
82
86
|
${this.popovertitle?n.html`
|
|
83
87
|
<span class="md-taskitem__content_popover_title">${this.popovertitle}</span>
|
|
84
|
-
`:
|
|
88
|
+
`:m.nothing}
|
|
85
89
|
${this.title?n.html`
|
|
86
|
-
<span class="md-taskitem__content_title ${Object(
|
|
90
|
+
<span class="md-taskitem__content_title ${Object(r.classMap)({mainTitle:!this.popovertitle})}"
|
|
87
91
|
>${this.title}</span
|
|
88
92
|
>
|
|
89
|
-
`:
|
|
93
|
+
`:m.nothing}
|
|
90
94
|
<div class="md-taskitem__content_inner">
|
|
91
95
|
<span class="md-taskitem__content_queue">
|
|
92
96
|
${this.queue.length>0?this.queue:n.html`
|
|
@@ -98,7 +102,7 @@
|
|
|
98
102
|
<span class="md-taskitem__content_chat">
|
|
99
103
|
<span class="new-chat_massages">${this.lastmessage}</span>
|
|
100
104
|
</span>
|
|
101
|
-
`:
|
|
105
|
+
`:m.nothing}
|
|
102
106
|
</div>
|
|
103
107
|
<div class="md-taskitem__addition">
|
|
104
108
|
<slot></slot>
|