@ni/spright-components 5.5.5 → 6.0.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.
@@ -16122,6 +16122,7 @@
16122
16122
  calendarEventBackgroundHoverTransientColor: 'calendar-event-background-hover-transient-color',
16123
16123
  calendarEventOuterBorderHighlightedColor: 'calendar-event-outer-border-highlighted-color',
16124
16124
  calendarRowBackgroundSelectedColor: 'calendar-row-background-selected-color',
16125
+ calendarRowBackgroundConflictColor: 'calendar-row-background-conflict-color',
16125
16126
  calendarEventFillBlockedColor: 'calendar-event-fill-blocked-color',
16126
16127
  calendarGrabHandleBackgroundColor: 'calendar-grab-handle-background-color',
16127
16128
  calendarGridBorderColor: 'calendar-grid-border-color',
@@ -16327,6 +16328,7 @@
16327
16328
  DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventBackgroundHoverTransientColor)).withDefault((element) => getColorForTheme(element, DigitalGreenDark110, DigitalGreenDark105, DigitalGreenDark105));
16328
16329
  DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventOuterBorderHighlightedColor)).withDefault((element) => getColorForTheme(element, Black88, hexToRgbaCssColor(White, 0.85), hexToRgbaCssColor(White, 0.85)));
16329
16330
  DesignToken.create(styleNameFromTokenName(tokenNames.calendarRowBackgroundSelectedColor)).withDefault((element) => getColorForTheme(element, hexToRgbaCssColor(DigitalGreenLight, 0.2), hexToRgbaCssColor(PowerGreen, 0.2), hexToRgbaCssColor(PowerGreen, 0.2)));
16331
+ DesignToken.create(styleNameFromTokenName(tokenNames.calendarRowBackgroundConflictColor)).withDefault((element) => getColorForTheme(element, hexToRgbaCssColor(Fail100LightUi, 0.2), hexToRgbaCssColor(Fail100DarkUi, 0.2), hexToRgbaCssColor(Fail100DarkUi, 0.2)));
16330
16332
  DesignToken.create(styleNameFromTokenName(tokenNames.calendarEventFillBlockedColor)).withDefault((element) => getColorForTheme(element, hexToRgbaCssColor(Black91, 0.07), Black82, Black82));
16331
16333
  DesignToken.create(styleNameFromTokenName(tokenNames.calendarGrabHandleBackgroundColor)).withDefault((element) => getColorForTheme(element, DigitalGreenLight, PowerGreen, PowerGreen));
16332
16334
  DesignToken.create(styleNameFromTokenName(tokenNames.calendarGridBorderColor)).withDefault((element) => getColorForTheme(element, Black22, Black80, Black80));
@@ -93812,17 +93814,6 @@ focus outline in that case.
93812
93814
  */
93813
93815
  this.disableSendButton = true;
93814
93816
  }
93815
- /**
93816
- * Clears the text input and gives it focus.
93817
- */
93818
- resetInput() {
93819
- this.value = '';
93820
- this.disableSendButton = true;
93821
- if (this.textArea) {
93822
- this.textArea.value = '';
93823
- this.textArea.focus();
93824
- }
93825
- }
93826
93817
  /**
93827
93818
  * @internal
93828
93819
  */
@@ -93867,11 +93858,20 @@ focus outline in that case.
93867
93858
  const eventDetail = {
93868
93859
  text: this.textArea.value
93869
93860
  };
93861
+ this.resetInput();
93870
93862
  this.$emit('send', eventDetail);
93871
93863
  }
93872
93864
  shouldDisableSendButton() {
93873
93865
  return this.textArea.value.length === 0;
93874
93866
  }
93867
+ resetInput() {
93868
+ this.value = '';
93869
+ this.disableSendButton = true;
93870
+ if (this.textArea) {
93871
+ this.textArea.value = '';
93872
+ this.textArea.focus();
93873
+ }
93874
+ }
93875
93875
  }
93876
93876
  __decorate([
93877
93877
  attr