@ni/ok-components 1.12.0 → 1.12.1

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.
@@ -27017,7 +27017,7 @@ so this becomes the fallback color for the slot */ ''}
27017
27017
  ${display$2('none')}
27018
27018
  `;
27019
27019
 
27020
- const supportedLabels$1 = {
27020
+ const supportedLabels$2 = {
27021
27021
  popupDismiss: popupDismissLabel,
27022
27022
  numericDecrement: numericDecrementLabel,
27023
27023
  numericIncrement: numericIncrementLabel,
@@ -27039,7 +27039,7 @@ so this becomes the fallback color for the slot */ ''}
27039
27039
  class LabelProviderCore extends LabelProviderBase {
27040
27040
  constructor() {
27041
27041
  super(...arguments);
27042
- this.supportedLabels = supportedLabels$1;
27042
+ this.supportedLabels = supportedLabels$2;
27043
27043
  }
27044
27044
  }
27045
27045
  __decorate([
@@ -27176,7 +27176,7 @@ so this becomes the fallback color for the slot */ ''}
27176
27176
  cssCustomPropertyName: null
27177
27177
  }).withDefault(tableLabelDefaults.tableGroupRowPlaceholderEmptyLabel);
27178
27178
 
27179
- const supportedLabels = {
27179
+ const supportedLabels$1 = {
27180
27180
  groupCollapse: tableGroupCollapseLabel,
27181
27181
  groupExpand: tableGroupExpandLabel,
27182
27182
  rowCollapse: tableRowCollapseLabel,
@@ -27200,7 +27200,7 @@ so this becomes the fallback color for the slot */ ''}
27200
27200
  class LabelProviderTable extends LabelProviderBase {
27201
27201
  constructor() {
27202
27202
  super(...arguments);
27203
- this.supportedLabels = supportedLabels;
27203
+ this.supportedLabels = supportedLabels$1;
27204
27204
  }
27205
27205
  }
27206
27206
  __decorate([
@@ -104733,6 +104733,20 @@ focus outline in that case.
104733
104733
  }
104734
104734
  `;
104735
104735
 
104736
+ const chatLabelDefaults = {
104737
+ chatSendLabel: 'Send',
104738
+ chatStopLabel: 'Stop'
104739
+ };
104740
+
104741
+ const chatSendLabel = DesignToken.create({
104742
+ name: 'chat-send-label',
104743
+ cssCustomPropertyName: null
104744
+ }).withDefault(chatLabelDefaults.chatSendLabel);
104745
+ const chatStopLabel = DesignToken.create({
104746
+ name: 'chat-stop-label',
104747
+ cssCustomPropertyName: null
104748
+ }).withDefault(chatLabelDefaults.chatStopLabel);
104749
+
104736
104750
  const template$y = html `
104737
104751
  <div class="container">
104738
104752
  <section class="attachments ${x => (x.attachmentsIsEmpty ? '' : 'has-content')}">
@@ -104764,10 +104778,10 @@ focus outline in that case.
104764
104778
  ?disabled=${x => (x.processing ? false : (x.sendDisabled || x.isInputEmpty))}
104765
104779
  @click=${x => (x.processing ? x.stopButtonClickHandler() : x.sendButtonClickHandler())}
104766
104780
  tabindex="${x => x.tabIndex}"
104767
- title=${x => (x.processing ? x.stopButtonLabel : x.sendButtonLabel)}
104781
+ title=${x => (x.processing ? chatStopLabel.getValueFor(x) : chatSendLabel.getValueFor(x))}
104768
104782
  content-hidden
104769
104783
  >
104770
- ${x => (x.processing ? x.stopButtonLabel : x.sendButtonLabel)}
104784
+ ${x => (x.processing ? chatStopLabel.getValueFor(x) : chatSendLabel.getValueFor(x))}
104771
104785
  ${when(x => x.processing, html `<${iconStopSquareTag} slot="start"></${iconStopSquareTag}>`, html `<${iconPaperPlaneTag} slot="start"></${iconPaperPlaneTag}>`)}
104772
104786
  </${buttonTag}>
104773
104787
  </section>
@@ -104941,12 +104955,6 @@ focus outline in that case.
104941
104955
  __decorate([
104942
104956
  attr
104943
104957
  ], ChatInput.prototype, "placeholder", void 0);
104944
- __decorate([
104945
- attr({ attribute: 'send-button-label' })
104946
- ], ChatInput.prototype, "sendButtonLabel", void 0);
104947
- __decorate([
104948
- attr({ attribute: 'stop-button-label' })
104949
- ], ChatInput.prototype, "stopButtonLabel", void 0);
104950
104958
  __decorate([
104951
104959
  attr
104952
104960
  ], ChatInput.prototype, "value", void 0);
@@ -105933,6 +105941,33 @@ focus outline in that case.
105933
105941
  .withPrefix('spright')
105934
105942
  .register(sprightIconWorkItemWrenchHammer());
105935
105943
 
105944
+ const supportedLabels = {
105945
+ send: chatSendLabel,
105946
+ stop: chatStopLabel
105947
+ };
105948
+ /**
105949
+ * Label provider for Spright chat components
105950
+ */
105951
+ class LabelProviderChat extends LabelProviderBase {
105952
+ constructor() {
105953
+ super(...arguments);
105954
+ this.supportedLabels = supportedLabels;
105955
+ }
105956
+ }
105957
+ __decorate([
105958
+ attr
105959
+ ], LabelProviderChat.prototype, "send", void 0);
105960
+ __decorate([
105961
+ attr
105962
+ ], LabelProviderChat.prototype, "stop", void 0);
105963
+ const sprightLabelProviderChat = LabelProviderChat.compose({
105964
+ baseName: 'label-provider-chat',
105965
+ styles: styles$1e
105966
+ });
105967
+ DesignSystem.getOrCreate()
105968
+ .withPrefix('spright')
105969
+ .register(sprightLabelProviderChat());
105970
+
105936
105971
  const styles$j = css `
105937
105972
  ${display$1('inline-block')}
105938
105973