@ni/spright-components 5.5.5 → 6.0.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.
@@ -15298,9 +15298,9 @@ const wJ=$t`
15298
15298
  <${Yv} slot="start"><${Yv}/>
15299
15299
  </${Lh}>
15300
15300
  </div>`
15301
- class CJ extends je{constructor(){super(...arguments),this.value="",this.disableSendButton=!0}resetInput(){this.value="",this.disableSendButton=!0,this.textArea&&(this.textArea.value="",this.textArea.focus())}textAreaKeydownHandler(t){return!(t.key===dn&&!t.shiftKey)||(this.sendButtonClickHandler(),!1)}textAreaInputHandler(){this.value=this.textArea.value,this.disableSendButton=this.shouldDisableSendButton()}valueChanged(){this.textArea&&(this.textArea.value=this.value,this.disableSendButton=this.shouldDisableSendButton())}connectedCallback(){super.connectedCallback(),this.textArea.value=this.value,this.disableSendButton=this.shouldDisableSendButton()}sendButtonClickHandler(){if(this.shouldDisableSendButton())return
15301
+ class CJ extends je{constructor(){super(...arguments),this.value="",this.disableSendButton=!0}textAreaKeydownHandler(t){return!(t.key===dn&&!t.shiftKey)||(this.sendButtonClickHandler(),!1)}textAreaInputHandler(){this.value=this.textArea.value,this.disableSendButton=this.shouldDisableSendButton()}valueChanged(){this.textArea&&(this.textArea.value=this.value,this.disableSendButton=this.shouldDisableSendButton())}connectedCallback(){super.connectedCallback(),this.textArea.value=this.value,this.disableSendButton=this.shouldDisableSendButton()}sendButtonClickHandler(){if(this.shouldDisableSendButton())return
15302
15302
  const t={text:this.textArea.value}
15303
- this.$emit("send",t)}shouldDisableSendButton(){return 0===this.textArea.value.length}}t([ft],CJ.prototype,"placeholder",void 0),t([ft({attribute:"send-button-label"})],CJ.prototype,"sendButtonLabel",void 0),t([ft],CJ.prototype,"value",void 0),t([ft({attribute:"tabindex",converter:ut})],CJ.prototype,"tabIndex",void 0),t([C],CJ.prototype,"textArea",void 0),t([C],CJ.prototype,"disableSendButton",void 0)
15303
+ this.resetInput(),this.$emit("send",t)}shouldDisableSendButton(){return 0===this.textArea.value.length}resetInput(){this.value="",this.disableSendButton=!0,this.textArea&&(this.textArea.value="",this.textArea.focus())}}t([ft],CJ.prototype,"placeholder",void 0),t([ft({attribute:"send-button-label"})],CJ.prototype,"sendButtonLabel",void 0),t([ft],CJ.prototype,"value",void 0),t([ft({attribute:"tabindex",converter:ut})],CJ.prototype,"tabIndex",void 0),t([C],CJ.prototype,"textArea",void 0),t([C],CJ.prototype,"disableSendButton",void 0)
15304
15304
  const kJ=CJ.compose({baseName:"chat-input",template:xJ,styles:wJ,shadowOptions:{delegatesFocus:!0}})
15305
15305
  Di.getOrCreate().withPrefix("spright").register(kJ())
15306
15306
  const SJ={system:void 0,outbound:"outbound",inbound:"inbound"},_J=$t`