@ni/ok-components 0.2.9 → 0.2.10

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.
@@ -96797,6 +96797,14 @@ focus outline in that case.
96797
96797
  border-color: transparent;
96798
96798
  }
96799
96799
 
96800
+ .toolbar {
96801
+ display: block;
96802
+ }
96803
+
96804
+ .toolbar.toolbar-empty {
96805
+ display: none;
96806
+ }
96807
+
96800
96808
  .messages {
96801
96809
  flex: 1;
96802
96810
  display: flex;
@@ -96824,6 +96832,9 @@ focus outline in that case.
96824
96832
  `;
96825
96833
 
96826
96834
  const template$8 = html `
96835
+ <div class="toolbar ${x => (x.toolbarEmpty ? 'toolbar-empty' : '')}">
96836
+ <slot name="toolbar" ${slotted({ property: 'slottedToolbarElements' })}></slot>
96837
+ </div>
96827
96838
  <div class="messages"><slot></slot></div>
96828
96839
  <div class="input ${x => (x.inputEmpty ? 'input-empty' : '')}">
96829
96840
  <slot name="input" ${slotted({ property: 'slottedInputElements' })}>
@@ -96847,10 +96858,15 @@ focus outline in that case.
96847
96858
  this.appearance = ChatConversationAppearance.default;
96848
96859
  /** @internal */
96849
96860
  this.inputEmpty = true;
96861
+ /** @internal */
96862
+ this.toolbarEmpty = true;
96850
96863
  }
96851
96864
  slottedInputElementsChanged(_prev, next) {
96852
96865
  this.inputEmpty = next === undefined || next.length === 0;
96853
96866
  }
96867
+ slottedToolbarElementsChanged(_prev, next) {
96868
+ this.toolbarEmpty = next === undefined || next.length === 0;
96869
+ }
96854
96870
  }
96855
96871
  __decorate([
96856
96872
  attr
@@ -96861,6 +96877,12 @@ focus outline in that case.
96861
96877
  __decorate([
96862
96878
  observable
96863
96879
  ], ChatConversation.prototype, "slottedInputElements", void 0);
96880
+ __decorate([
96881
+ observable
96882
+ ], ChatConversation.prototype, "toolbarEmpty", void 0);
96883
+ __decorate([
96884
+ observable
96885
+ ], ChatConversation.prototype, "slottedToolbarElements", void 0);
96864
96886
  const sprightChatConversation = ChatConversation.compose({
96865
96887
  baseName: 'chat-conversation',
96866
96888
  template: template$8,