@ni/spright-components 6.24.0 → 7.1.0

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.
Files changed (34) hide show
  1. package/dist/all-components-bundle.js +69 -15
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +95 -86
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/custom-elements.json +165 -30
  6. package/dist/custom-elements.md +50 -20
  7. package/dist/esm/all-components.d.ts +1 -0
  8. package/dist/esm/all-components.js +1 -0
  9. package/dist/esm/all-components.js.map +1 -1
  10. package/dist/esm/chat/input/index.d.ts +0 -2
  11. package/dist/esm/chat/input/index.js +0 -6
  12. package/dist/esm/chat/input/index.js.map +1 -1
  13. package/dist/esm/chat/input/template.js +3 -2
  14. package/dist/esm/chat/input/template.js.map +1 -1
  15. package/dist/esm/chat/message/welcome/index.d.ts +5 -0
  16. package/dist/esm/chat/message/welcome/index.js +15 -1
  17. package/dist/esm/chat/message/welcome/index.js.map +1 -1
  18. package/dist/esm/chat/message/welcome/styles.js +6 -1
  19. package/dist/esm/chat/message/welcome/styles.js.map +1 -1
  20. package/dist/esm/chat/message/welcome/template.js +4 -4
  21. package/dist/esm/chat/message/welcome/template.js.map +1 -1
  22. package/dist/esm/chat/message/welcome/testing/chat-message-welcome.pageobject.d.ts +3 -0
  23. package/dist/esm/chat/message/welcome/testing/chat-message-welcome.pageobject.js +15 -1
  24. package/dist/esm/chat/message/welcome/testing/chat-message-welcome.pageobject.js.map +1 -1
  25. package/dist/esm/label-provider/chat/index.d.ts +23 -0
  26. package/dist/esm/label-provider/chat/index.js +34 -0
  27. package/dist/esm/label-provider/chat/index.js.map +1 -0
  28. package/dist/esm/label-provider/chat/label-token-defaults.d.ts +6 -0
  29. package/dist/esm/label-provider/chat/label-token-defaults.js +5 -0
  30. package/dist/esm/label-provider/chat/label-token-defaults.js.map +1 -0
  31. package/dist/esm/label-provider/chat/label-tokens.d.ts +3 -0
  32. package/dist/esm/label-provider/chat/label-tokens.js +11 -0
  33. package/dist/esm/label-provider/chat/label-tokens.js.map +1 -0
  34. package/package.json +1 -1
@@ -18101,7 +18101,7 @@ const Q6=Mt`
18101
18101
  .footer-actions ::slotted(*) {
18102
18102
  height: ${Dc};
18103
18103
  }
18104
- `,t5=Q`
18104
+ `,t5="Send",e5="Stop",n5=ki.create({name:"chat-send-label",cssCustomPropertyName:null}).withDefault(t5),i5=ki.create({name:"chat-stop-label",cssCustomPropertyName:null}).withDefault(e5),o5=Q`
18105
18105
  <div class="container">
18106
18106
  <section class="attachments ${t=>t.attachmentsIsEmpty?"":"has-content"}">
18107
18107
  <slot
@@ -18132,10 +18132,10 @@ const Q6=Mt`
18132
18132
  ?disabled=${t=>!t.processing&&(t.sendDisabled||t.isInputEmpty)}
18133
18133
  @click=${t=>t.processing?t.stopButtonClickHandler():t.sendButtonClickHandler()}
18134
18134
  tabindex="${t=>t.tabIndex}"
18135
- title=${t=>t.processing?t.stopButtonLabel:t.sendButtonLabel}
18135
+ title=${t=>t.processing?i5.getValueFor(t):n5.getValueFor(t)}
18136
18136
  content-hidden
18137
18137
  >
18138
- ${t=>t.processing?t.stopButtonLabel:t.sendButtonLabel}
18138
+ ${t=>t.processing?i5.getValueFor(t):n5.getValueFor(t)}
18139
18139
  ${qt(t=>t.processing,Q`<${zb} slot="start"></${zb}>`,Q`<${Nb} slot="start"></${Nb}>`)}
18140
18140
  </${rv}>
18141
18141
  </section>
@@ -18146,14 +18146,14 @@ const Q6=Mt`
18146
18146
  ></${gg}>
18147
18147
  ${zv}
18148
18148
  </div>`
18149
- class e5 extends(Pv(qe)){constructor(){super(...arguments),this.value="",this.maxLength=-1,this.processing=!1,this.sendDisabled=!1,this.isInputEmpty=!0,this.scrollbarWidth=-1,this.footerActionsIsEmpty=!0,this.attachmentsIsEmpty=!0,this.updateScrollbarWidthQueued=!1,this.fieldSizingSupported=CSS.supports("field-sizing","content")}slottedFooterActionsElementsChanged(t,e){this.footerActionsIsEmpty=void 0===e||0===e.length}slottedAttachmentsElementsChanged(t,e){this.attachmentsIsEmpty=void 0===e||0===e.length}textAreaKeydownHandler(t){return!(t.key===ln&&!t.shiftKey)||(this.processing||this.sendButtonClickHandler(),!1)}textAreaInputHandler(){this.value=this.textArea.value,this.isInputEmpty=0===this.textArea.value.length,this.adjustTextAreaHeight(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(){this.textArea&&(this.textArea.value=this.value,this.isInputEmpty=0===this.textArea.value.length,this.adjustTextAreaHeight(),this.queueUpdateScrollbarWidth())}connectedCallback(){super.connectedCallback(),this.textArea.value=this.value,this.isInputEmpty=0===this.textArea.value.length,this.adjustTextAreaHeight(),this.resizeObserver=new ResizeObserver(()=>this.onResize()),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}sendButtonClickHandler(){if(this.shouldDisableSendButton())return
18149
+ class r5 extends(Pv(qe)){constructor(){super(...arguments),this.value="",this.maxLength=-1,this.processing=!1,this.sendDisabled=!1,this.isInputEmpty=!0,this.scrollbarWidth=-1,this.footerActionsIsEmpty=!0,this.attachmentsIsEmpty=!0,this.updateScrollbarWidthQueued=!1,this.fieldSizingSupported=CSS.supports("field-sizing","content")}slottedFooterActionsElementsChanged(t,e){this.footerActionsIsEmpty=void 0===e||0===e.length}slottedAttachmentsElementsChanged(t,e){this.attachmentsIsEmpty=void 0===e||0===e.length}textAreaKeydownHandler(t){return!(t.key===ln&&!t.shiftKey)||(this.processing||this.sendButtonClickHandler(),!1)}textAreaInputHandler(){this.value=this.textArea.value,this.isInputEmpty=0===this.textArea.value.length,this.adjustTextAreaHeight(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(){this.textArea&&(this.textArea.value=this.value,this.isInputEmpty=0===this.textArea.value.length,this.adjustTextAreaHeight(),this.queueUpdateScrollbarWidth())}connectedCallback(){super.connectedCallback(),this.textArea.value=this.value,this.isInputEmpty=0===this.textArea.value.length,this.adjustTextAreaHeight(),this.resizeObserver=new ResizeObserver(()=>this.onResize()),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}sendButtonClickHandler(){if(this.shouldDisableSendButton())return
18150
18150
  const t={text:this.textArea.value}
18151
18151
  this.resetInput(),this.$emit("send",t)}stopButtonClickHandler(){this.processing&&(this.$emit("stop"),this.textArea?.blur())}shouldDisableSendButton(){return this.sendDisabled||0===this.textArea.value.length}resetInput(){this.value="",this.isInputEmpty=!0,this.textArea&&(this.textArea.value="",this.adjustTextAreaHeight(),this.textArea.focus())}onResize(){this.adjustTextAreaHeight(),this.scrollbarWidth=this.textArea.offsetWidth-this.textArea.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,y.queueUpdate(()=>this.updateScrollbarWidth())))}adjustTextAreaHeight(){if(this.fieldSizingSupported||!this.textArea)return
18152
18152
  const t=this.textArea
18153
- t.style.height="auto",t.style.height=`${t.scrollHeight}px`}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.textArea.offsetWidth-this.textArea.clientWidth}}t([ft],e5.prototype,"placeholder",void 0),t([ft({attribute:"send-button-label"})],e5.prototype,"sendButtonLabel",void 0),t([ft({attribute:"stop-button-label"})],e5.prototype,"stopButtonLabel",void 0),t([ft],e5.prototype,"value",void 0),t([ft({attribute:"tabindex",converter:ut})],e5.prototype,"tabIndex",void 0),t([ft({attribute:"maxlength",converter:ut})],e5.prototype,"maxLength",void 0),t([ft({attribute:"processing",mode:"boolean"})],e5.prototype,"processing",void 0),t([ft({attribute:"send-disabled",mode:"boolean"})],e5.prototype,"sendDisabled",void 0),t([k],e5.prototype,"textArea",void 0),t([k],e5.prototype,"isInputEmpty",void 0),t([k],e5.prototype,"scrollbarWidth",void 0),t([k],e5.prototype,"footerActionsIsEmpty",void 0),t([k],e5.prototype,"slottedFooterActionsElements",void 0),t([k],e5.prototype,"attachmentsIsEmpty",void 0),t([k],e5.prototype,"slottedAttachmentsElements",void 0)
18154
- const n5=e5.compose({baseName:"chat-input",template:t5,styles:Q6,shadowOptions:{delegatesFocus:!0}})
18155
- Ei.getOrCreate().withPrefix("spright").register(n5())
18156
- const i5={system:void 0,outbound:"outbound",inbound:"inbound"},o5=Mt`
18153
+ t.style.height="auto",t.style.height=`${t.scrollHeight}px`}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.textArea.offsetWidth-this.textArea.clientWidth}}t([ft],r5.prototype,"placeholder",void 0),t([ft],r5.prototype,"value",void 0),t([ft({attribute:"tabindex",converter:ut})],r5.prototype,"tabIndex",void 0),t([ft({attribute:"maxlength",converter:ut})],r5.prototype,"maxLength",void 0),t([ft({attribute:"processing",mode:"boolean"})],r5.prototype,"processing",void 0),t([ft({attribute:"send-disabled",mode:"boolean"})],r5.prototype,"sendDisabled",void 0),t([k],r5.prototype,"textArea",void 0),t([k],r5.prototype,"isInputEmpty",void 0),t([k],r5.prototype,"scrollbarWidth",void 0),t([k],r5.prototype,"footerActionsIsEmpty",void 0),t([k],r5.prototype,"slottedFooterActionsElements",void 0),t([k],r5.prototype,"attachmentsIsEmpty",void 0),t([k],r5.prototype,"slottedAttachmentsElements",void 0)
18154
+ const s5=r5.compose({baseName:"chat-input",template:o5,styles:Q6,shadowOptions:{delegatesFocus:!0}})
18155
+ Ei.getOrCreate().withPrefix("spright").register(s5())
18156
+ const a5={system:void 0,outbound:"outbound",inbound:"inbound"},l5=Mt`
18157
18157
  ${j6("flex")}
18158
18158
 
18159
18159
  :host {
@@ -18167,11 +18167,11 @@ const i5={system:void 0,outbound:"outbound",inbound:"inbound"},o5=Mt`
18167
18167
  color: ${ud};
18168
18168
  }
18169
18169
 
18170
- :host([message-type='${i5.outbound}']) {
18170
+ :host([message-type='${a5.outbound}']) {
18171
18171
  justify-content: flex-end;
18172
18172
  }
18173
18173
 
18174
- :host([message-type='${i5.inbound}']) {
18174
+ :host([message-type='${a5.inbound}']) {
18175
18175
  justify-content: flex-start;
18176
18176
  }
18177
18177
 
@@ -18191,7 +18191,7 @@ const i5={system:void 0,outbound:"outbound",inbound:"inbound"},o5=Mt`
18191
18191
  overflow-x: auto;
18192
18192
  }
18193
18193
 
18194
- :host([message-type='${i5.outbound}']) .message-content {
18194
+ :host([message-type='${a5.outbound}']) .message-content {
18195
18195
  background: ${nc};
18196
18196
  border: ${Nc} solid ${pc};
18197
18197
  border-radius: ${Fc} ${Fc} 0px ${Fc};
@@ -18202,7 +18202,7 @@ const i5={system:void 0,outbound:"outbound",inbound:"inbound"},o5=Mt`
18202
18202
  display: none;
18203
18203
  }
18204
18204
 
18205
- :host([message-type='${i5.inbound}'])
18205
+ :host([message-type='${a5.inbound}'])
18206
18206
  .footer-actions.has-content {
18207
18207
  display: flex;
18208
18208
  column-gap: ${Lc};
@@ -18220,14 +18220,14 @@ const i5={system:void 0,outbound:"outbound",inbound:"inbound"},o5=Mt`
18220
18220
  display: none;
18221
18221
  }
18222
18222
 
18223
- :host([message-type='${i5.inbound}']) .end {
18223
+ :host([message-type='${a5.inbound}']) .end {
18224
18224
  display: flex;
18225
18225
  column-gap: ${Lc};
18226
18226
  margin-top: ${Bc};
18227
18227
  }
18228
18228
  `
18229
- class r5 extends qe{constructor(){super(...arguments),this.messageType=i5.system,this.footerActionsIsEmpty=!0}slottedFooterActionsElementsChanged(t,e){this.footerActionsIsEmpty=void 0===e||0===e.length}}t([ft({attribute:"message-type"})],r5.prototype,"messageType",void 0),t([k],r5.prototype,"footerActionsIsEmpty",void 0),t([k],r5.prototype,"slottedFooterActionsElements",void 0),Ze(r5,ie)
18230
- const s5=r5.compose({baseName:"chat-message",template:(t,e)=>Q`
18229
+ class c5 extends qe{constructor(){super(...arguments),this.messageType=a5.system,this.footerActionsIsEmpty=!0}slottedFooterActionsElementsChanged(t,e){this.footerActionsIsEmpty=void 0===e||0===e.length}}t([ft({attribute:"message-type"})],c5.prototype,"messageType",void 0),t([k],c5.prototype,"footerActionsIsEmpty",void 0),t([k],c5.prototype,"slottedFooterActionsElements",void 0),Ze(c5,ie)
18230
+ const d5=c5.compose({baseName:"chat-message",template:(t,e)=>Q`
18231
18231
  <div class="container">
18232
18232
  ${re(0,e)}
18233
18233
  <section class="message-content">
@@ -18241,9 +18241,9 @@ const s5=r5.compose({baseName:"chat-message",template:(t,e)=>Q`
18241
18241
  </section>
18242
18242
  ${oe(0,e)}
18243
18243
  </div>
18244
- `,styles:o5})
18245
- Ei.getOrCreate().withPrefix("spright").register(s5())
18246
- const a5=Mt`
18244
+ `,styles:l5})
18245
+ Ei.getOrCreate().withPrefix("spright").register(d5())
18246
+ const h5=Mt`
18247
18247
  ${j6("flex")}
18248
18248
 
18249
18249
  :host {
@@ -18304,8 +18304,8 @@ const a5=Mt`
18304
18304
  margin-top: ${Bc};
18305
18305
  }
18306
18306
  `
18307
- class l5 extends qe{constructor(){super(...arguments),this.messageInternals=new K6(this),this.footerActionsIsEmpty=!0}slottedFooterActionsElementsChanged(t,e){this.footerActionsIsEmpty=void 0===e||0===e.length}}t([k],l5.prototype,"footerActionsIsEmpty",void 0),t([k],l5.prototype,"slottedFooterActionsElements",void 0),Ze(l5,ie)
18308
- const c5=l5.compose({baseName:"chat-message-inbound",template:(t,e)=>Q`
18307
+ class u5 extends qe{constructor(){super(...arguments),this.messageInternals=new K6(this),this.footerActionsIsEmpty=!0}slottedFooterActionsElementsChanged(t,e){this.footerActionsIsEmpty=void 0===e||0===e.length}}t([k],u5.prototype,"footerActionsIsEmpty",void 0),t([k],u5.prototype,"slottedFooterActionsElements",void 0),Ze(u5,ie)
18308
+ const p5=u5.compose({baseName:"chat-message-inbound",template:(t,e)=>Q`
18309
18309
  <div class="container">
18310
18310
  ${re(0,e)}
18311
18311
  <section class="message-content">
@@ -18319,9 +18319,9 @@ const c5=l5.compose({baseName:"chat-message-inbound",template:(t,e)=>Q`
18319
18319
  </section>
18320
18320
  ${oe(0,e)}
18321
18321
  </div>
18322
- `,styles:a5})
18323
- Ei.getOrCreate().withPrefix("spright").register(c5())
18324
- const d5=Mt`
18322
+ `,styles:h5})
18323
+ Ei.getOrCreate().withPrefix("spright").register(p5())
18324
+ const f5=Mt`
18325
18325
  ${j6("flex")}
18326
18326
 
18327
18327
  :host {
@@ -18355,15 +18355,15 @@ const d5=Mt`
18355
18355
  overflow-x: auto;
18356
18356
  }
18357
18357
  `
18358
- const h5=class extends qe{constructor(){super(...arguments),this.messageInternals=new K6(this,{anchorOnInsert:!0})}}.compose({baseName:"chat-message-outbound",template:()=>Q`
18358
+ const m5=class extends qe{constructor(){super(...arguments),this.messageInternals=new K6(this,{anchorOnInsert:!0})}}.compose({baseName:"chat-message-outbound",template:()=>Q`
18359
18359
  <div class="container">
18360
18360
  <section class="message-content">
18361
18361
  <slot></slot>
18362
18362
  </section>
18363
18363
  </div>
18364
- `,styles:d5})
18365
- Ei.getOrCreate().withPrefix("spright").register(h5())
18366
- const u5=Mt`
18364
+ `,styles:f5})
18365
+ Ei.getOrCreate().withPrefix("spright").register(m5())
18366
+ const g5=Mt`
18367
18367
  ${j6("flex")}
18368
18368
 
18369
18369
  :host {
@@ -18393,15 +18393,15 @@ const u5=Mt`
18393
18393
  overflow-x: auto;
18394
18394
  }
18395
18395
  `
18396
- const p5=class extends qe{constructor(){super(...arguments),this.messageInternals=new K6(this)}}.compose({baseName:"chat-message-system",template:()=>Q`
18396
+ const v5=class extends qe{constructor(){super(...arguments),this.messageInternals=new K6(this)}}.compose({baseName:"chat-message-system",template:()=>Q`
18397
18397
  <div class="container">
18398
18398
  <section class="message-content">
18399
18399
  <slot></slot>
18400
18400
  </section>
18401
18401
  </div>
18402
- `,styles:u5})
18403
- Ei.getOrCreate().withPrefix("spright").register(p5())
18404
- const f5=Mt`
18402
+ `,styles:g5})
18403
+ Ei.getOrCreate().withPrefix("spright").register(v5())
18404
+ const b5=Mt`
18405
18405
  ${j6("flex")}
18406
18406
 
18407
18407
  :host {
@@ -18447,6 +18447,11 @@ const f5=Mt`
18447
18447
  font: ${Jc};
18448
18448
  color: ${Qc};
18449
18449
  text-align: center;
18450
+ ${td.cssCustomProperty}: ${Jc};
18451
+ }
18452
+
18453
+ .subtitle.subtitle-empty {
18454
+ display: none;
18450
18455
  }
18451
18456
 
18452
18457
  .message-content {
@@ -18459,10 +18464,10 @@ const f5=Mt`
18459
18464
  overflow-x: auto;
18460
18465
  gap: ${Fc};
18461
18466
  }
18462
- `,m5=Q`
18467
+ `,y5=Q`
18463
18468
  <div class="icon light-icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 16 16">\n <defs>\n <style>\n .nigel-chat-light-0 {\n fill: url(#nigel-chat-gradient-light-0);\n }\n\n .nigel-chat-light-1 {\n fill: url(#nigel-chat-gradient-light-1);\n }\n </style>\n <linearGradient id="nigel-chat-gradient-light-1" x1="11.84" y1="6.19" x2="4.84" y2="13.18" gradientTransform="translate(0 18) scale(1 -1)" gradientUnits="userSpaceOnUse">\n <stop offset="0" stop-color="#00ad7c"/>\n <stop offset="1" stop-color="#32eb96"/>\n </linearGradient>\n <linearGradient id="nigel-chat-gradient-light-0" x1="10.25" y1="-658.82" x2="6.95" y2="-662.11" gradientTransform="translate(0 668)" xlink:href="#nigel-chat-gradient-light-1"/>\n </defs>\n <path class="nigel-chat-light-1" d="M14.21,7.52l-.11-.06c-2.36-1.29-4.3-3.23-5.59-5.59l-.06-.11c-.19-.36-.7-.36-.9,0l-.06.11c-1.29,2.36-3.23,4.3-5.59,5.59l-.11.06c-.36.19-.36.7,0,.9l.11.06c2.36,1.29,4.3,3.23,5.59,5.59l.06.11c.19.36.7.36.9,0l.06-.11c1.29-2.36,3.23-4.3,5.59-5.59l.11-.06c.36-.19.36-.7,0-.9ZM12.5,7.88l-.08.04c-1.58.87-2.89,2.17-3.75,3.75l-.04.08c-.13.24-.47.24-.6,0l-.04-.08c-.87-1.58-2.17-2.89-3.75-3.75l-.08-.04c-.24-.13-.24-.47,0-.6l.08-.04c1.58-.87,2.89-2.17,3.75-3.75l.04-.08c.13-.24.47-.24.6,0l.04.08c.87,1.58,2.17,2.89,3.75,3.75l.08.04c.24.13.24.47,0,.6Z"/>\n <path class="nigel-chat-light-0" d="M11.36,7.6l-.03.02c-1.12.61-2.04,1.53-2.65,2.65l-.02.03c-.1.18-.35.18-.45,0l-.02-.03c-.61-1.12-1.53-2.04-2.65-2.65l-.03-.02c-.18-.1-.18-.35,0-.45l.03-.02c1.12-.61,2.04-1.53,2.65-2.65l.02-.03c.1-.18.35-.18.45,0l.02.03c.61,1.12,1.53,2.04,2.65,2.65l.03.02c.18.1.18.35,0,.45Z"/>\n</svg>'}"></div>
18464
18469
  <div class="icon dark-icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 16 16">\n <defs>\n <style>\n .nigel-chat-dark-0 {\n fill: url(#nigel-chat-gradient-dark-0);\n }\n\n .nigel-chat-dark-1 {\n fill: url(#nigel-chat-gradient-dark-1);\n }\n </style>\n <linearGradient id="nigel-chat-gradient-dark-1" x1="11.84" y1="6.19" x2="4.84" y2="13.18" gradientTransform="translate(0 18) scale(1 -1)" gradientUnits="userSpaceOnUse">\n <stop offset="0" stop-color="#00ad7c"/>\n <stop offset="1" stop-color="#32eb96"/>\n </linearGradient>\n <linearGradient id="nigel-chat-gradient-dark-0" x1="10.25" y1="-658.82" x2="6.95" y2="-662.11" gradientTransform="translate(0 668)" xlink:href="#nigel-chat-gradient-dark-1"/>\n </defs>\n <path class="nigel-chat-dark-1" d="M14.21,7.52l-.11-.06c-2.36-1.29-4.3-3.23-5.59-5.59l-.06-.11c-.19-.36-.7-.36-.9,0l-.06.11c-1.29,2.36-3.23,4.3-5.59,5.59l-.11.06c-.36.19-.36.7,0,.9l.11.06c2.36,1.29,4.3,3.23,5.59,5.59l.06.11c.19.36.7.36.9,0l.06-.11c1.29-2.36,3.23-4.3,5.59-5.59l.11-.06c.36-.19.36-.7,0-.9ZM12.5,7.88l-.08.04c-1.58.87-2.89,2.17-3.75,3.75l-.04.08c-.13.24-.47.24-.6,0l-.04-.08c-.87-1.58-2.17-2.89-3.75-3.75l-.08-.04c-.24-.13-.24-.47,0-.6l.08-.04c1.58-.87,2.89-2.17,3.75-3.75l.04-.08c.13-.24.47-.24.6,0l.04.08c.87,1.58,2.17,2.89,3.75,3.75l.08.04c.24.13.24.47,0,.6Z"/>\n <path class="nigel-chat-dark-0" d="M11.36,7.6l-.03.02c-1.12.61-2.04,1.53-2.65,2.65l-.02.03c-.1.18-.35.18-.45,0l-.02-.03c-.61-1.12-1.53-2.04-2.65-2.65l-.03-.02c-.18-.1-.18-.35,0-.45l.03-.02c1.12-.61,2.04-1.53,2.65-2.65l.02-.03c.1-.18.35-.18.45,0l.02.03c.61,1.12,1.53,2.04,2.65,2.65l.03.02c.18.1.18.35,0,.45Z"/>\n</svg>'}"></div>
18465
- `,g5=Mt`
18470
+ `,w5=Mt`
18466
18471
  ${ug}
18467
18472
 
18468
18473
  .dark-icon {
@@ -18477,121 +18482,125 @@ const f5=Mt`
18477
18482
  display: contents;
18478
18483
  }
18479
18484
  `))
18480
- const v5=class extends pg{}.compose({baseName:"icon-nigel-chat",template:m5,styles:g5})
18481
- Ei.getOrCreate().withPrefix("spright").register(v5())
18482
- const b5="spright-icon-nigel-chat"
18483
- class y5 extends qe{}t([ft({attribute:"welcome-title"})],y5.prototype,"welcomeTitle",void 0),t([ft],y5.prototype,"subtitle",void 0)
18484
- const w5=y5.compose({baseName:"chat-message-welcome",template:()=>Q`
18485
+ const x5=class extends pg{}.compose({baseName:"icon-nigel-chat",template:y5,styles:w5})
18486
+ Ei.getOrCreate().withPrefix("spright").register(x5())
18487
+ const C5="spright-icon-nigel-chat"
18488
+ class k5 extends qe{constructor(){super(...arguments),this.subtitleIsEmpty=!0}slottedSubtitleElementsChanged(t,e){this.subtitleIsEmpty=void 0===e||0===e.length}}t([ft({attribute:"welcome-title"})],k5.prototype,"welcomeTitle",void 0),t([ft],k5.prototype,"subtitle",void 0),t([k],k5.prototype,"slottedSubtitleElements",void 0),t([k],k5.prototype,"subtitleIsEmpty",void 0)
18489
+ const S5=k5.compose({baseName:"chat-message-welcome",template:()=>Q`
18485
18490
  <div class="container">
18486
18491
  <div class="brand-icon">
18487
18492
  <slot name="brand-icon">
18488
- <${b5}></${b5}>
18493
+ <${C5}></${C5}>
18489
18494
  </slot>
18490
18495
  </div>
18491
18496
  ${qt(t=>t.welcomeTitle,Q`
18492
18497
  <div class="title">${t=>t.welcomeTitle}</div>
18493
18498
  `)}
18494
- ${qt(t=>t.subtitle,Q`
18495
- <div class="subtitle">${t=>t.subtitle}</div>
18496
- `)}
18499
+ <div class="subtitle ${t=>!t.subtitle&&t.subtitleIsEmpty?"subtitle-empty":""}">
18500
+ <slot name="subtitle" ${te({property:"slottedSubtitleElements"})}>${t=>t.subtitle}</slot>
18501
+ </div>
18497
18502
  <section class="message-content">
18498
18503
  <slot></slot>
18499
18504
  </section>
18500
18505
  </div>
18501
- `,styles:f5})
18502
- Ei.getOrCreate().withPrefix("spright").register(w5())
18503
- const x5=Q`
18504
- <div class="icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\n <defs>\n <style>\n .breakpoint-conditional-0 {\n fill: #c42126;\n }\n </style>\n </defs>\n <path class="breakpoint-conditional-0" d="M8,3c-2.76,0-5,2.24-5,5s2.24,5,5,5,5-2.24,5-5-2.24-5-5-5ZM11,9h-2v2h-2v-2h-2v-2h2v-2h2v2h2v2Z"/>\n</svg>'}"></div>
18505
- `,C5=class extends pg{}.compose({baseName:"icon-breakpoint-conditional",template:x5,styles:ug})
18506
- Ei.getOrCreate().withPrefix("spright").register(C5())
18507
- const k5=Q`
18508
- <div class="icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\n <defs>\n <style>\n .breakpoint-disabled-0 {\n fill: #161617;\n opacity: .3;\n }\n </style>\n </defs>\n <circle class="breakpoint-disabled-0" cx="8" cy="8" r="5"/>\n</svg>'}"></div>
18509
- `,S5=class extends pg{}.compose({baseName:"icon-breakpoint-disabled",template:k5,styles:ug})
18506
+ `,styles:b5})
18510
18507
  Ei.getOrCreate().withPrefix("spright").register(S5())
18511
18508
  const $5=Q`
18512
- <div class="icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\n <defs>\n <style>\n .breakpoint-enabled-0 {\n fill: #c42126;\n }\n </style>\n </defs>\n <circle class="breakpoint-enabled-0" cx="8" cy="8" r="5"/>\n</svg>'}"></div>
18513
- `,_5=class extends pg{}.compose({baseName:"icon-breakpoint-enabled",template:$5,styles:ug})
18509
+ <div class="icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\n <defs>\n <style>\n .breakpoint-conditional-0 {\n fill: #c42126;\n }\n </style>\n </defs>\n <path class="breakpoint-conditional-0" d="M8,3c-2.76,0-5,2.24-5,5s2.24,5,5,5,5-2.24,5-5-2.24-5-5-5ZM11,9h-2v2h-2v-2h-2v-2h2v-2h2v2h2v2Z"/>\n</svg>'}"></div>
18510
+ `,_5=class extends pg{}.compose({baseName:"icon-breakpoint-conditional",template:$5,styles:ug})
18514
18511
  Ei.getOrCreate().withPrefix("spright").register(_5())
18515
18512
  const M5=Q`
18516
- <div class="icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\n <defs>\n <style>\n .breakpoint-execution-pointer-0 {\n fill: #161617;\n }\n </style>\n </defs>\n <polygon class="breakpoint-execution-pointer-0" points="7.97 4.37 7.29 5.49 9.8 7 2 7 2 9 9.8 9 7.29 10.51 7.97 11.63 14 8 7.97 4.37"/>\n</svg>'}"></div>
18517
- `,I5=class extends pg{}.compose({baseName:"icon-breakpoint-execution-pointer",template:M5,styles:ug})
18513
+ <div class="icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\n <defs>\n <style>\n .breakpoint-disabled-0 {\n fill: #161617;\n opacity: .3;\n }\n </style>\n </defs>\n <circle class="breakpoint-disabled-0" cx="8" cy="8" r="5"/>\n</svg>'}"></div>
18514
+ `,I5=class extends pg{}.compose({baseName:"icon-breakpoint-disabled",template:M5,styles:ug})
18518
18515
  Ei.getOrCreate().withPrefix("spright").register(I5())
18519
18516
  const E5=Q`
18520
- <div class="icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\n <defs>\n <style>\n .breakpoint-hit-disabled-0 {\n opacity: .3;\n }\n\n .breakpoint-hit-disabled-0, .breakpoint-hit-disabled-1 {\n fill: #161617;\n }\n </style>\n </defs>\n <path class="breakpoint-hit-disabled-0" d="M3.36,6.25c.71-1.89,2.5-3.25,4.64-3.25s3.98,1.4,4.67,3.33l-4.96-2.99-1.45,2.4.84.51h-3.75ZM7.71,12.66l-1.45-2.4.84-.51h-3.75c.71,1.89,2.5,3.25,4.64,3.25s3.98-1.4,4.67-3.33l-4.96,2.99Z"/>\n <polygon class="breakpoint-hit-disabled-1" points="7.97 4.37 7.29 5.49 9.8 7 2 7 2 9 9.8 9 7.29 10.51 7.97 11.63 14 8 7.97 4.37"/>\n</svg>'}"></div>
18521
- `,A5=class extends pg{}.compose({baseName:"icon-breakpoint-hit-disabled",template:E5,styles:ug})
18517
+ <div class="icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\n <defs>\n <style>\n .breakpoint-enabled-0 {\n fill: #c42126;\n }\n </style>\n </defs>\n <circle class="breakpoint-enabled-0" cx="8" cy="8" r="5"/>\n</svg>'}"></div>
18518
+ `,A5=class extends pg{}.compose({baseName:"icon-breakpoint-enabled",template:E5,styles:ug})
18522
18519
  Ei.getOrCreate().withPrefix("spright").register(A5())
18523
18520
  const T5=Q`
18524
- <div class="icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\n <defs>\n <style>\n .breakpoint-hit-0 {\n fill: #c42126;\n }\n\n .breakpoint-hit-1 {\n fill: #161617;\n }\n </style>\n </defs>\n <path class="breakpoint-hit-0" d="M3.36,6.25c.71-1.89,2.5-3.25,4.64-3.25s3.98,1.4,4.67,3.33l-4.96-2.99-1.45,2.4.84.51h-3.75ZM7.71,12.66l-1.45-2.4.84-.51h-3.75c.71,1.89,2.5,3.25,4.64,3.25s3.98-1.4,4.67-3.33l-4.96,2.99Z"/>\n <polygon class="breakpoint-hit-1" points="7.97 4.37 7.29 5.49 9.8 7 2 7 2 9 9.8 9 7.29 10.51 7.97 11.63 14 8 7.97 4.37"/>\n</svg>'}"></div>
18525
- `,O5=class extends pg{}.compose({baseName:"icon-breakpoint-hit",template:T5,styles:ug})
18521
+ <div class="icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\n <defs>\n <style>\n .breakpoint-execution-pointer-0 {\n fill: #161617;\n }\n </style>\n </defs>\n <polygon class="breakpoint-execution-pointer-0" points="7.97 4.37 7.29 5.49 9.8 7 2 7 2 9 9.8 9 7.29 10.51 7.97 11.63 14 8 7.97 4.37"/>\n</svg>'}"></div>
18522
+ `,O5=class extends pg{}.compose({baseName:"icon-breakpoint-execution-pointer",template:T5,styles:ug})
18526
18523
  Ei.getOrCreate().withPrefix("spright").register(O5())
18527
18524
  const D5=Q`
18528
- <div class="icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\n <defs>\n <style>\n .breakpoint-hover-0 {\n fill: #c42126;\n opacity: .3;\n }\n </style>\n </defs>\n <circle class="breakpoint-hover-0" cx="8" cy="8" r="5"/>\n</svg>'}"></div>
18529
- `,R5=class extends pg{}.compose({baseName:"icon-breakpoint-hover",template:D5,styles:ug})
18525
+ <div class="icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\n <defs>\n <style>\n .breakpoint-hit-disabled-0 {\n opacity: .3;\n }\n\n .breakpoint-hit-disabled-0, .breakpoint-hit-disabled-1 {\n fill: #161617;\n }\n </style>\n </defs>\n <path class="breakpoint-hit-disabled-0" d="M3.36,6.25c.71-1.89,2.5-3.25,4.64-3.25s3.98,1.4,4.67,3.33l-4.96-2.99-1.45,2.4.84.51h-3.75ZM7.71,12.66l-1.45-2.4.84-.51h-3.75c.71,1.89,2.5,3.25,4.64,3.25s3.98-1.4,4.67-3.33l-4.96,2.99Z"/>\n <polygon class="breakpoint-hit-disabled-1" points="7.97 4.37 7.29 5.49 9.8 7 2 7 2 9 9.8 9 7.29 10.51 7.97 11.63 14 8 7.97 4.37"/>\n</svg>'}"></div>
18526
+ `,R5=class extends pg{}.compose({baseName:"icon-breakpoint-hit-disabled",template:D5,styles:ug})
18530
18527
  Ei.getOrCreate().withPrefix("spright").register(R5())
18531
- const F5=Mt`
18528
+ const F5=Q`
18529
+ <div class="icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\n <defs>\n <style>\n .breakpoint-hit-0 {\n fill: #c42126;\n }\n\n .breakpoint-hit-1 {\n fill: #161617;\n }\n </style>\n </defs>\n <path class="breakpoint-hit-0" d="M3.36,6.25c.71-1.89,2.5-3.25,4.64-3.25s3.98,1.4,4.67,3.33l-4.96-2.99-1.45,2.4.84.51h-3.75ZM7.71,12.66l-1.45-2.4.84-.51h-3.75c.71,1.89,2.5,3.25,4.64,3.25s3.98-1.4,4.67-3.33l-4.96,2.99Z"/>\n <polygon class="breakpoint-hit-1" points="7.97 4.37 7.29 5.49 9.8 7 2 7 2 9 9.8 9 7.29 10.51 7.97 11.63 14 8 7.97 4.37"/>\n</svg>'}"></div>
18530
+ `,L5=class extends pg{}.compose({baseName:"icon-breakpoint-hit",template:F5,styles:ug})
18531
+ Ei.getOrCreate().withPrefix("spright").register(L5())
18532
+ const B5=Q`
18533
+ <div class="icon" aria-hidden="true" :innerHTML="${()=>'<?xml version="1.0" encoding="UTF-8"?>\n<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">\n <defs>\n <style>\n .breakpoint-hover-0 {\n fill: #c42126;\n opacity: .3;\n }\n </style>\n </defs>\n <circle class="breakpoint-hover-0" cx="8" cy="8" r="5"/>\n</svg>'}"></div>
18534
+ `,N5=class extends pg{}.compose({baseName:"icon-breakpoint-hover",template:B5,styles:ug})
18535
+ Ei.getOrCreate().withPrefix("spright").register(N5())
18536
+ const z5=Mt`
18532
18537
  ${ug}
18533
18538
 
18534
18539
  .icon svg {
18535
18540
  fill: ${Ec};
18536
18541
  }
18537
18542
  `
18538
- const L5=class extends fg{constructor(){super(Au)}}.compose({baseName:"icon-work-item-calendar-week",template:hg,styles:F5})
18539
- Ei.getOrCreate().withPrefix("spright").register(L5())
18540
- const B5=Mt`
18543
+ const P5=class extends fg{constructor(){super(Au)}}.compose({baseName:"icon-work-item-calendar-week",template:hg,styles:z5})
18544
+ Ei.getOrCreate().withPrefix("spright").register(P5())
18545
+ const V5=Mt`
18541
18546
  ${ug}
18542
18547
 
18543
18548
  .icon svg {
18544
18549
  fill: ${Ic};
18545
18550
  }
18546
18551
  `
18547
- const N5=class extends fg{constructor(){super(Tu)}}.compose({baseName:"icon-work-item-calipers",template:hg,styles:B5})
18548
- Ei.getOrCreate().withPrefix("spright").register(N5())
18549
- const z5=Mt`
18552
+ const H5=class extends fg{constructor(){super(Tu)}}.compose({baseName:"icon-work-item-calipers",template:hg,styles:V5})
18553
+ Ei.getOrCreate().withPrefix("spright").register(H5())
18554
+ const U5=Mt`
18550
18555
  ${ug}
18551
18556
 
18552
18557
  .icon svg {
18553
18558
  fill: ${Ac};
18554
18559
  }
18555
18560
  `
18556
- const P5=class extends fg{constructor(){super(Xp)}}.compose({baseName:"icon-work-item-forklift",template:hg,styles:z5})
18557
- Ei.getOrCreate().withPrefix("spright").register(P5())
18558
- const V5=Mt`
18561
+ const q5=class extends fg{constructor(){super(Xp)}}.compose({baseName:"icon-work-item-forklift",template:hg,styles:U5})
18562
+ Ei.getOrCreate().withPrefix("spright").register(q5())
18563
+ const j5=Mt`
18559
18564
  ${ug}
18560
18565
 
18561
18566
  .icon svg {
18562
18567
  fill: ${$c};
18563
18568
  }
18564
18569
  `
18565
- const H5=class extends fg{constructor(){super(em)}}.compose({baseName:"icon-work-item-rectangle-check-lines",template:hg,styles:V5})
18566
- Ei.getOrCreate().withPrefix("spright").register(H5())
18567
- const U5=Mt`
18570
+ const W5=class extends fg{constructor(){super(em)}}.compose({baseName:"icon-work-item-rectangle-check-lines",template:hg,styles:j5})
18571
+ Ei.getOrCreate().withPrefix("spright").register(W5())
18572
+ const Z5=Mt`
18568
18573
  ${ug}
18569
18574
 
18570
18575
  .icon svg {
18571
18576
  fill: ${Tc};
18572
18577
  }
18573
18578
  `
18574
- const q5=class extends fg{constructor(){super(wm)}}.compose({baseName:"icon-work-item-square-list-cog",template:hg,styles:U5})
18575
- Ei.getOrCreate().withPrefix("spright").register(q5())
18576
- const j5=Mt`
18579
+ const G5=class extends fg{constructor(){super(wm)}}.compose({baseName:"icon-work-item-square-list-cog",template:hg,styles:Z5})
18580
+ Ei.getOrCreate().withPrefix("spright").register(G5())
18581
+ const K5=Mt`
18577
18582
  ${ug}
18578
18583
 
18579
18584
  .icon svg {
18580
18585
  fill: ${_c};
18581
18586
  }
18582
18587
  `
18583
- const W5=class extends fg{constructor(){super(Qm)}}.compose({baseName:"icon-work-item-user-helmet-safety",template:hg,styles:j5})
18584
- Ei.getOrCreate().withPrefix("spright").register(W5())
18585
- const Z5=Mt`
18588
+ const Y5=class extends fg{constructor(){super(Qm)}}.compose({baseName:"icon-work-item-user-helmet-safety",template:hg,styles:K5})
18589
+ Ei.getOrCreate().withPrefix("spright").register(Y5())
18590
+ const X5=Mt`
18586
18591
  ${ug}
18587
18592
 
18588
18593
  .icon svg {
18589
18594
  fill: ${Mc};
18590
18595
  }
18591
18596
  `
18592
- const G5=class extends fg{constructor(){super(lg)}}.compose({baseName:"icon-work-item-wrench-hammer",template:hg,styles:Z5})
18593
- Ei.getOrCreate().withPrefix("spright").register(G5())
18594
- const K5=Mt`
18597
+ const J5=class extends fg{constructor(){super(lg)}}.compose({baseName:"icon-work-item-wrench-hammer",template:hg,styles:X5})
18598
+ Ei.getOrCreate().withPrefix("spright").register(J5())
18599
+ const Q5={send:n5,stop:i5}
18600
+ class t4 extends Ub{constructor(){super(...arguments),this.supportedLabels=Q5}}t([ft],t4.prototype,"send",void 0),t([ft],t4.prototype,"stop",void 0)
18601
+ const e4=t4.compose({baseName:"label-provider-chat",styles:qb})
18602
+ Ei.getOrCreate().withPrefix("spright").register(e4())
18603
+ const n4=Mt`
18595
18604
  ${j6("inline-block")}
18596
18605
 
18597
18606
  :host {
@@ -18614,7 +18623,7 @@ const K5=Mt`
18614
18623
  :host([disabled]) slot {
18615
18624
  color: ${pd};
18616
18625
  }
18617
- `,Y5=Q`<slot></slot>`
18618
- const X5=class extends qe{}.compose({baseName:"rectangle",template:Y5,styles:K5})
18619
- Ei.getOrCreate().withPrefix("spright").register(X5())}()
18626
+ `,i4=Q`<slot></slot>`
18627
+ const o4=class extends qe{}.compose({baseName:"rectangle",template:i4,styles:n4})
18628
+ Ei.getOrCreate().withPrefix("spright").register(o4())}()
18620
18629
  //# sourceMappingURL=all-components-bundle.min.js.map