@ni/ok-components 0.2.17 → 0.2.19
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.
|
@@ -14768,6 +14768,7 @@
|
|
|
14768
14768
|
actionRgbPartialColor: 'action-rgb-partial-color',
|
|
14769
14769
|
applicationBackgroundColor: 'application-background-color',
|
|
14770
14770
|
dividerBackgroundColor: 'divider-background-color',
|
|
14771
|
+
dividerBackgroundDynamicColor: 'divider-background-dynamic-color',
|
|
14771
14772
|
headerBackgroundColor: 'header-background-color',
|
|
14772
14773
|
sectionBackgroundColor: 'section-background-color',
|
|
14773
14774
|
sectionBackgroundImage: 'section-background-image',
|
|
@@ -16162,7 +16163,9 @@
|
|
|
16162
16163
|
const BannerFail100DarkUi = "#d63434";
|
|
16163
16164
|
const Warning100LightUi = "#ff4b00";
|
|
16164
16165
|
const Black91V10 = "#e8e8e8";
|
|
16166
|
+
const Black30 = "#d3d5d6";
|
|
16165
16167
|
const Black82V100 = "#6e6f70";
|
|
16168
|
+
const Black77V100 = "#6f7073";
|
|
16166
16169
|
const DigitalGreenDark = "#008557";
|
|
16167
16170
|
const DigitalGreenDark105 = "#00734b";
|
|
16168
16171
|
const DigitalGreenDark110 = "#00613f";
|
|
@@ -16305,6 +16308,7 @@
|
|
|
16305
16308
|
sectionBackgroundColor: createThemeColor(Black15, Black80, ForestGreen),
|
|
16306
16309
|
sectionBackgroundImage: createThemeColor(`linear-gradient(${Black15}, ${hexToRgbaCssColor(Black15, 0)})`, `linear-gradient(${Black82}, ${hexToRgbaCssColor(Black82, 0)})`, `linear-gradient(${ForestGreen}, ${hexToRgbaCssColor(ForestGreen, 0)})`),
|
|
16307
16310
|
dividerBackgroundColor: createThemeColor(Black15, Black80, ForestGreen),
|
|
16311
|
+
dividerBackgroundDynamicColor: createThemeColor(Black30, Black77V100, ForestGreen),
|
|
16308
16312
|
fillSelectedColor: hexToRgbaCssThemeColor(alias.fillSelectedColor, 0.2, 0.2, 0.2),
|
|
16309
16313
|
fillSelectedRgbPartialColor: hexToRgbPartialThemeColor(alias.fillSelectedColor),
|
|
16310
16314
|
fillHoverSelectedColor: hexToRgbaCssThemeColor(alias.fillSelectedColor, 0.15, 0.15, 0.15),
|
|
@@ -16477,6 +16481,7 @@
|
|
|
16477
16481
|
createThemeColorToken(tokenNames.sectionBackgroundColor, tokenValues.sectionBackgroundColor);
|
|
16478
16482
|
const sectionBackgroundImage = createThemeColorToken(tokenNames.sectionBackgroundImage, tokenValues.sectionBackgroundImage);
|
|
16479
16483
|
createThemeColorToken(tokenNames.dividerBackgroundColor, tokenValues.dividerBackgroundColor);
|
|
16484
|
+
createThemeColorToken(tokenNames.dividerBackgroundDynamicColor, tokenValues.dividerBackgroundDynamicColor);
|
|
16480
16485
|
const fillSelectedColor = createThemeColorToken(tokenNames.fillSelectedColor, tokenValues.fillSelectedColor);
|
|
16481
16486
|
const fillSelectedRgbPartialColor = createThemeColorToken(tokenNames.fillSelectedRgbPartialColor, tokenValues.fillSelectedRgbPartialColor);
|
|
16482
16487
|
const fillHoverSelectedColor = createThemeColorToken(tokenNames.fillHoverSelectedColor, tokenValues.fillHoverSelectedColor);
|
|
@@ -97956,7 +97961,7 @@ focus outline in that case.
|
|
|
97956
97961
|
class="action-button"
|
|
97957
97962
|
appearance="block"
|
|
97958
97963
|
appearance-variant="${x => (x.processing ? 'primary' : 'accent')}"
|
|
97959
|
-
?disabled=${x => (x.processing ? false : x.
|
|
97964
|
+
?disabled=${x => (x.processing ? false : (x.sendDisabled || x.isInputEmpty))}
|
|
97960
97965
|
@click=${x => (x.processing ? x.stopButtonClickHandler() : x.sendButtonClickHandler())}
|
|
97961
97966
|
tabindex="${x => x.tabIndex}"
|
|
97962
97967
|
title=${x => (x.processing ? x.stopButtonLabel : x.sendButtonLabel)}
|
|
@@ -97982,10 +97987,12 @@ focus outline in that case.
|
|
|
97982
97987
|
this.value = '';
|
|
97983
97988
|
this.maxLength = -1;
|
|
97984
97989
|
this.processing = false;
|
|
97990
|
+
this.sendDisabled = false;
|
|
97985
97991
|
/**
|
|
97992
|
+
* Tracks whether the send button should be disabled based on input value
|
|
97986
97993
|
* @internal
|
|
97987
97994
|
*/
|
|
97988
|
-
this.
|
|
97995
|
+
this.isInputEmpty = true;
|
|
97989
97996
|
/**
|
|
97990
97997
|
* The width of the vertical scrollbar, if displayed.
|
|
97991
97998
|
* @internal
|
|
@@ -98011,7 +98018,7 @@ focus outline in that case.
|
|
|
98011
98018
|
*/
|
|
98012
98019
|
textAreaInputHandler() {
|
|
98013
98020
|
this.value = this.textArea.value;
|
|
98014
|
-
this.
|
|
98021
|
+
this.isInputEmpty = this.shouldDisableSendButton();
|
|
98015
98022
|
this.queueUpdateScrollbarWidth();
|
|
98016
98023
|
}
|
|
98017
98024
|
// If a property can affect whether a scrollbar is visible, we need to
|
|
@@ -98032,7 +98039,7 @@ focus outline in that case.
|
|
|
98032
98039
|
valueChanged() {
|
|
98033
98040
|
if (this.textArea) {
|
|
98034
98041
|
this.textArea.value = this.value;
|
|
98035
|
-
this.
|
|
98042
|
+
this.isInputEmpty = this.shouldDisableSendButton();
|
|
98036
98043
|
this.queueUpdateScrollbarWidth();
|
|
98037
98044
|
}
|
|
98038
98045
|
}
|
|
@@ -98042,7 +98049,7 @@ focus outline in that case.
|
|
|
98042
98049
|
connectedCallback() {
|
|
98043
98050
|
super.connectedCallback();
|
|
98044
98051
|
this.textArea.value = this.value;
|
|
98045
|
-
this.
|
|
98052
|
+
this.isInputEmpty = this.shouldDisableSendButton();
|
|
98046
98053
|
this.resizeObserver = new ResizeObserver(() => this.onResize());
|
|
98047
98054
|
this.resizeObserver.observe(this);
|
|
98048
98055
|
}
|
|
@@ -98081,7 +98088,7 @@ focus outline in that case.
|
|
|
98081
98088
|
}
|
|
98082
98089
|
resetInput() {
|
|
98083
98090
|
this.value = '';
|
|
98084
|
-
this.
|
|
98091
|
+
this.isInputEmpty = true;
|
|
98085
98092
|
if (this.textArea) {
|
|
98086
98093
|
this.textArea.value = '';
|
|
98087
98094
|
this.textArea.focus();
|
|
@@ -98125,12 +98132,15 @@ focus outline in that case.
|
|
|
98125
98132
|
__decorate([
|
|
98126
98133
|
attr({ attribute: 'processing', mode: 'boolean' })
|
|
98127
98134
|
], ChatInput.prototype, "processing", void 0);
|
|
98135
|
+
__decorate([
|
|
98136
|
+
attr({ attribute: 'send-disabled', mode: 'boolean' })
|
|
98137
|
+
], ChatInput.prototype, "sendDisabled", void 0);
|
|
98128
98138
|
__decorate([
|
|
98129
98139
|
observable
|
|
98130
98140
|
], ChatInput.prototype, "textArea", void 0);
|
|
98131
98141
|
__decorate([
|
|
98132
98142
|
observable
|
|
98133
|
-
], ChatInput.prototype, "
|
|
98143
|
+
], ChatInput.prototype, "isInputEmpty", void 0);
|
|
98134
98144
|
__decorate([
|
|
98135
98145
|
observable
|
|
98136
98146
|
], ChatInput.prototype, "scrollbarWidth", void 0);
|