@ni/spright-components 6.8.0 → 6.9.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.
- package/dist/all-components-bundle.js +111 -10
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +6198 -6197
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/chat/input/index.d.ts +6 -0
- package/dist/esm/chat/input/index.js +20 -0
- package/dist/esm/chat/input/index.js.map +1 -1
- package/dist/esm/chat/input/styles.js +1 -1
- package/dist/esm/chat/input/styles.js.map +1 -1
- package/dist/esm/chat/input/template.js +10 -9
- package/dist/esm/chat/input/template.js.map +1 -1
- package/dist/esm/chat/input/testing/chat-input.pageobject.d.ts +9 -5
- package/dist/esm/chat/input/testing/chat-input.pageobject.js +30 -12
- package/dist/esm/chat/input/testing/chat-input.pageobject.js.map +1 -1
- package/package.json +2 -2
|
@@ -14876,7 +14876,25 @@
|
|
|
14876
14876
|
calendarEventFillBlockedColor: 'calendar-event-fill-blocked-color',
|
|
14877
14877
|
calendarGrabHandleBackgroundColor: 'calendar-grab-handle-background-color',
|
|
14878
14878
|
calendarGridBorderColor: 'calendar-grid-border-color',
|
|
14879
|
-
calendarGroupHeaderBackgroundColor: 'calendar-group-header-background-color'
|
|
14879
|
+
calendarGroupHeaderBackgroundColor: 'calendar-group-header-background-color',
|
|
14880
|
+
calendarEventBackgroundJobColor: 'calendar-event-background-job-color',
|
|
14881
|
+
calendarEventBackgroundHoverJobColor: 'calendar-event-background-hover-job-color',
|
|
14882
|
+
calendarEventBorderJobColor: 'calendar-event-border-job-color',
|
|
14883
|
+
calendarEventJobFontColor: 'calendar-event-job-font-color',
|
|
14884
|
+
calendarEventBackgroundMaintenanceColor: 'calendar-event-background-maintenance-color',
|
|
14885
|
+
calendarEventBackgroundHoverMaintenanceColor: 'calendar-event-background-hover-maintenance-color',
|
|
14886
|
+
calendarEventBorderMaintenanceColor: 'calendar-event-border-maintenance-color',
|
|
14887
|
+
calendarEventBackgroundCalibrationColor: 'calendar-event-background-calibration-color',
|
|
14888
|
+
calendarEventBackgroundHoverCalibrationColor: 'calendar-event-background-hover-calibration-color',
|
|
14889
|
+
calendarEventBorderCalibrationColor: 'calendar-event-border-calibration-color',
|
|
14890
|
+
calendarEventBackgroundReservationColor: 'calendar-event-background-reservation-color',
|
|
14891
|
+
calendarEventBackgroundHoverReservationColor: 'calendar-event-background-hover-reservation-color',
|
|
14892
|
+
calendarEventBorderReservationColor: 'calendar-event-border-reservation-color',
|
|
14893
|
+
calendarEventBackgroundTransportOrderColor: 'calendar-event-background-transport-order-color',
|
|
14894
|
+
calendarEventBackgroundHoverTransportOrderColor: 'calendar-event-background-hover-transport-order-color',
|
|
14895
|
+
calendarEventBorderTransportOrderColor: 'calendar-event-border-transport-order-color',
|
|
14896
|
+
calendarEventBackgroundAggregateAvailabilityColor: 'calendar-event-background-aggregate-availability-color',
|
|
14897
|
+
calendarEventBorderAggregateAvailabilityColor: 'calendar-event-border-aggregate-availability-color'
|
|
14880
14898
|
};
|
|
14881
14899
|
const prefix = 'ni-nimble';
|
|
14882
14900
|
const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
|
|
@@ -16111,7 +16129,16 @@
|
|
|
16111
16129
|
|
|
16112
16130
|
const Information100DarkUi = "#a46eff";
|
|
16113
16131
|
const Information100LightUi = "#804ad9";
|
|
16132
|
+
const InformationLight10 = "#f3edfc";
|
|
16133
|
+
const InformationDark10 = "#413d4c";
|
|
16134
|
+
const InformationLight30 = "#d9c9f4";
|
|
16135
|
+
const InformationDark30 = "#574873";
|
|
16136
|
+
const InformationDarkTypography = "#c9abff";
|
|
16114
16137
|
const Warning100DarkUi = "#ff8126";
|
|
16138
|
+
const WarningLight10 = "#ffede6";
|
|
16139
|
+
const WarningDark10 = "#4a3e36";
|
|
16140
|
+
const WarningLight20 = "#ffdbcc";
|
|
16141
|
+
const WarningDark20 = "#5e4635";
|
|
16115
16142
|
const Pass100LightUi = "#009921";
|
|
16116
16143
|
const Pass100DarkUi = "#00c12b";
|
|
16117
16144
|
const Fail100LightUi = "#c4000c";
|
|
@@ -16132,6 +16159,8 @@
|
|
|
16132
16159
|
const NiSky = "#3cb4e7";
|
|
16133
16160
|
const BannerFail100DarkUi = "#d63434";
|
|
16134
16161
|
const Warning100LightUi = "#ff4b00";
|
|
16162
|
+
const Black91V10 = "#e8e8e8";
|
|
16163
|
+
const Black82V100 = "#6e6f70";
|
|
16135
16164
|
const DigitalGreenDark = "#008557";
|
|
16136
16165
|
const DigitalGreenDark105 = "#00734b";
|
|
16137
16166
|
const DigitalGreenDark110 = "#00613f";
|
|
@@ -16150,10 +16179,25 @@
|
|
|
16150
16179
|
const NiSea = "#00aba5";
|
|
16151
16180
|
const NiSeaLight = "#a5d8c8";
|
|
16152
16181
|
const NiTulip = "#e54c8a";
|
|
16182
|
+
const NiTulip10 = "#fdeef4";
|
|
16183
|
+
const NiTulipDark10 = "#483a41";
|
|
16184
|
+
const NiTulip20 = "#fadbe8";
|
|
16185
|
+
const NiTulipDark20 = "#593b49";
|
|
16153
16186
|
const NiIndigo = "#8e78b7";
|
|
16154
16187
|
const NiPlumDark1 = "#8c459a";
|
|
16155
16188
|
const NiIndigoDark2 = "#312e7f";
|
|
16156
16189
|
const NiSeaDark2 = "#00685f";
|
|
16190
|
+
const NiSpec10 = "#e6f6fb";
|
|
16191
|
+
const NiSpecDark10 = "#304147";
|
|
16192
|
+
const NiSpec20 = "#ccecf6";
|
|
16193
|
+
const NiSpecDark20 = "#2b4c57";
|
|
16194
|
+
const NiSpec = "#00a1d4";
|
|
16195
|
+
const BrownLight10 = "#f1eeeb";
|
|
16196
|
+
const BrownDark10 = "#403e3d";
|
|
16197
|
+
const BrownLight20 = "#e2dcd7";
|
|
16198
|
+
const BrownDark20 = "#4a4440";
|
|
16199
|
+
const BrownLight = "#6f4e37";
|
|
16200
|
+
const BrownDark = "#9b7a60";
|
|
16157
16201
|
const Title2Family = "Source Sans Pro";
|
|
16158
16202
|
const Title2Weight = "400";
|
|
16159
16203
|
const ControlLabel1Family = "Source Sans Pro";
|
|
@@ -16312,6 +16356,24 @@
|
|
|
16312
16356
|
calendarGrabHandleBackgroundColor: createThemeColor(DigitalGreenLight, PowerGreen, PowerGreen),
|
|
16313
16357
|
calendarGridBorderColor: createThemeColor(Black22, Black80, Black80),
|
|
16314
16358
|
calendarGroupHeaderBackgroundColor: createThemeColor(Black7, hexToRgbaCssColor(Black91, 0.1), hexToRgbaCssColor(Black91, 0.1)),
|
|
16359
|
+
calendarEventBackgroundJobColor: createThemeColor(InformationLight10, InformationDark10, InformationDark10),
|
|
16360
|
+
calendarEventBackgroundHoverJobColor: createThemeColor(InformationLight30, InformationDark30, InformationDark30),
|
|
16361
|
+
calendarEventBorderJobColor: createThemeColor(Information100LightUi, Information100DarkUi, Information100DarkUi),
|
|
16362
|
+
calendarEventJobFontColor: createThemeColor(Information100LightUi, InformationDarkTypography, InformationDarkTypography),
|
|
16363
|
+
calendarEventBackgroundMaintenanceColor: createThemeColor(WarningLight10, WarningDark10, WarningDark10),
|
|
16364
|
+
calendarEventBackgroundHoverMaintenanceColor: createThemeColor(WarningLight20, WarningDark20, WarningDark20),
|
|
16365
|
+
calendarEventBorderMaintenanceColor: createThemeColor(Warning100LightUi, Warning100DarkUi, Warning100DarkUi),
|
|
16366
|
+
calendarEventBackgroundCalibrationColor: createThemeColor(NiTulip10, NiTulipDark10, NiTulipDark10),
|
|
16367
|
+
calendarEventBackgroundHoverCalibrationColor: createThemeColor(NiTulip20, NiTulipDark20, NiTulipDark20),
|
|
16368
|
+
calendarEventBorderCalibrationColor: createThemeColor(NiTulip, NiTulip, NiTulip),
|
|
16369
|
+
calendarEventBackgroundReservationColor: createThemeColor(NiSpec10, NiSpecDark10, NiSpecDark10),
|
|
16370
|
+
calendarEventBackgroundHoverReservationColor: createThemeColor(NiSpec20, NiSpecDark20, NiSpecDark20),
|
|
16371
|
+
calendarEventBorderReservationColor: createThemeColor(NiSpec, NiSpec, NiSpec),
|
|
16372
|
+
calendarEventBackgroundTransportOrderColor: createThemeColor(BrownLight10, BrownDark10, BrownDark10),
|
|
16373
|
+
calendarEventBackgroundHoverTransportOrderColor: createThemeColor(BrownLight20, BrownDark20, BrownDark20),
|
|
16374
|
+
calendarEventBorderTransportOrderColor: createThemeColor(BrownLight, BrownDark, BrownDark),
|
|
16375
|
+
calendarEventBackgroundAggregateAvailabilityColor: createThemeColor(Black91V10, Black82, Black82),
|
|
16376
|
+
calendarEventBorderAggregateAvailabilityColor: hexToRgbaCssThemeColor(createThemeColor(Black91, Black82V100, Black82V100), 0.5, 1, 1),
|
|
16315
16377
|
controlHeight: '32px',
|
|
16316
16378
|
controlSlimHeight: '24px',
|
|
16317
16379
|
smallPadding: '4px',
|
|
@@ -16467,6 +16529,24 @@
|
|
|
16467
16529
|
createThemeColorToken(tokenNames.calendarGrabHandleBackgroundColor, tokenValues.calendarGrabHandleBackgroundColor);
|
|
16468
16530
|
createThemeColorToken(tokenNames.calendarGridBorderColor, tokenValues.calendarGridBorderColor);
|
|
16469
16531
|
createThemeColorToken(tokenNames.calendarGroupHeaderBackgroundColor, tokenValues.calendarGroupHeaderBackgroundColor);
|
|
16532
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundJobColor, tokenValues.calendarEventBackgroundJobColor);
|
|
16533
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundHoverJobColor, tokenValues.calendarEventBackgroundHoverJobColor);
|
|
16534
|
+
createThemeColorToken(tokenNames.calendarEventBorderJobColor, tokenValues.calendarEventBorderJobColor);
|
|
16535
|
+
createThemeColorToken(tokenNames.calendarEventJobFontColor, tokenValues.calendarEventJobFontColor);
|
|
16536
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundMaintenanceColor, tokenValues.calendarEventBackgroundMaintenanceColor);
|
|
16537
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundHoverMaintenanceColor, tokenValues.calendarEventBackgroundHoverMaintenanceColor);
|
|
16538
|
+
createThemeColorToken(tokenNames.calendarEventBorderMaintenanceColor, tokenValues.calendarEventBorderMaintenanceColor);
|
|
16539
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundCalibrationColor, tokenValues.calendarEventBackgroundCalibrationColor);
|
|
16540
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundHoverCalibrationColor, tokenValues.calendarEventBackgroundHoverCalibrationColor);
|
|
16541
|
+
createThemeColorToken(tokenNames.calendarEventBorderCalibrationColor, tokenValues.calendarEventBorderCalibrationColor);
|
|
16542
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundReservationColor, tokenValues.calendarEventBackgroundReservationColor);
|
|
16543
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundHoverReservationColor, tokenValues.calendarEventBackgroundHoverReservationColor);
|
|
16544
|
+
createThemeColorToken(tokenNames.calendarEventBorderReservationColor, tokenValues.calendarEventBorderReservationColor);
|
|
16545
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundTransportOrderColor, tokenValues.calendarEventBackgroundTransportOrderColor);
|
|
16546
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundHoverTransportOrderColor, tokenValues.calendarEventBackgroundHoverTransportOrderColor);
|
|
16547
|
+
createThemeColorToken(tokenNames.calendarEventBorderTransportOrderColor, tokenValues.calendarEventBorderTransportOrderColor);
|
|
16548
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundAggregateAvailabilityColor, tokenValues.calendarEventBackgroundAggregateAvailabilityColor);
|
|
16549
|
+
createThemeColorToken(tokenNames.calendarEventBorderAggregateAvailabilityColor, tokenValues.calendarEventBorderAggregateAvailabilityColor);
|
|
16470
16550
|
// #endregion
|
|
16471
16551
|
// #region size tokens
|
|
16472
16552
|
const controlHeight = createStringToken(tokenNames.controlHeight, tokenValues.controlHeight);
|
|
@@ -24932,6 +25012,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
24932
25012
|
}
|
|
24933
25013
|
}
|
|
24934
25014
|
registerIconSvg('icon-stop-square', IconStopSquare);
|
|
25015
|
+
const iconStopSquareTag = 'nimble-icon-stop-square';
|
|
24935
25016
|
|
|
24936
25017
|
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
24937
25018
|
// See generation source in nimble-components/build/generate-icons
|
|
@@ -96961,7 +97042,7 @@ focus outline in that case.
|
|
|
96961
97042
|
color: ${controlLabelFontColor};
|
|
96962
97043
|
}
|
|
96963
97044
|
|
|
96964
|
-
.
|
|
97045
|
+
.action-button {
|
|
96965
97046
|
align-self: flex-end;
|
|
96966
97047
|
width: 80px;
|
|
96967
97048
|
margin: ${mediumPadding};
|
|
@@ -96980,18 +97061,18 @@ focus outline in that case.
|
|
|
96980
97061
|
@input="${x => x.textAreaInputHandler()}"
|
|
96981
97062
|
></textarea>
|
|
96982
97063
|
<${buttonTag}
|
|
96983
|
-
class="
|
|
97064
|
+
class="action-button"
|
|
96984
97065
|
appearance="block"
|
|
96985
|
-
appearance-variant="accent"
|
|
96986
|
-
?disabled=${x => x.disableSendButton}
|
|
96987
|
-
@click=${x => x.sendButtonClickHandler()}
|
|
97066
|
+
appearance-variant="${x => (x.processing ? 'primary' : 'accent')}"
|
|
97067
|
+
?disabled=${x => (x.processing ? false : x.disableSendButton)}
|
|
97068
|
+
@click=${x => (x.processing ? x.stopButtonClickHandler() : x.sendButtonClickHandler())}
|
|
96988
97069
|
tabindex="${x => x.tabIndex}"
|
|
96989
|
-
title=${x => x.sendButtonLabel}
|
|
97070
|
+
title=${x => (x.processing ? x.stopButtonLabel : x.sendButtonLabel)}
|
|
96990
97071
|
content-hidden
|
|
96991
97072
|
>
|
|
96992
|
-
${x => x.sendButtonLabel}
|
|
96993
|
-
|
|
96994
|
-
</${buttonTag}>
|
|
97073
|
+
${x => (x.processing ? x.stopButtonLabel : x.sendButtonLabel)}
|
|
97074
|
+
${when(x => x.processing, html `<${iconStopSquareTag} slot="start"></${iconStopSquareTag}>`, html `<${iconPaperPlaneTag} slot="start"></${iconPaperPlaneTag}>`)}
|
|
97075
|
+
</${buttonTag}>
|
|
96995
97076
|
</div>`;
|
|
96996
97077
|
|
|
96997
97078
|
/**
|
|
@@ -97002,6 +97083,7 @@ focus outline in that case.
|
|
|
97002
97083
|
super(...arguments);
|
|
97003
97084
|
this.value = '';
|
|
97004
97085
|
this.maxLength = -1;
|
|
97086
|
+
this.processing = false;
|
|
97005
97087
|
/**
|
|
97006
97088
|
* @internal
|
|
97007
97089
|
*/
|
|
@@ -97012,6 +97094,9 @@ focus outline in that case.
|
|
|
97012
97094
|
*/
|
|
97013
97095
|
textAreaKeydownHandler(e) {
|
|
97014
97096
|
if (e.key === keyEnter && !e.shiftKey) {
|
|
97097
|
+
if (this.processing) {
|
|
97098
|
+
return false;
|
|
97099
|
+
}
|
|
97015
97100
|
this.sendButtonClickHandler();
|
|
97016
97101
|
return false;
|
|
97017
97102
|
}
|
|
@@ -97054,6 +97139,16 @@ focus outline in that case.
|
|
|
97054
97139
|
this.resetInput();
|
|
97055
97140
|
this.$emit('send', eventDetail);
|
|
97056
97141
|
}
|
|
97142
|
+
/**
|
|
97143
|
+
* @internal
|
|
97144
|
+
*/
|
|
97145
|
+
stopButtonClickHandler() {
|
|
97146
|
+
if (!this.processing) {
|
|
97147
|
+
return;
|
|
97148
|
+
}
|
|
97149
|
+
this.$emit('stop');
|
|
97150
|
+
this.textArea?.blur();
|
|
97151
|
+
}
|
|
97057
97152
|
shouldDisableSendButton() {
|
|
97058
97153
|
return this.textArea.value.length === 0;
|
|
97059
97154
|
}
|
|
@@ -97072,6 +97167,9 @@ focus outline in that case.
|
|
|
97072
97167
|
__decorate([
|
|
97073
97168
|
attr({ attribute: 'send-button-label' })
|
|
97074
97169
|
], ChatInput.prototype, "sendButtonLabel", void 0);
|
|
97170
|
+
__decorate([
|
|
97171
|
+
attr({ attribute: 'stop-button-label' })
|
|
97172
|
+
], ChatInput.prototype, "stopButtonLabel", void 0);
|
|
97075
97173
|
__decorate([
|
|
97076
97174
|
attr
|
|
97077
97175
|
], ChatInput.prototype, "value", void 0);
|
|
@@ -97081,6 +97179,9 @@ focus outline in that case.
|
|
|
97081
97179
|
__decorate([
|
|
97082
97180
|
attr({ attribute: 'maxlength', converter: nullableNumberConverter })
|
|
97083
97181
|
], ChatInput.prototype, "maxLength", void 0);
|
|
97182
|
+
__decorate([
|
|
97183
|
+
attr({ attribute: 'processing', mode: 'boolean' })
|
|
97184
|
+
], ChatInput.prototype, "processing", void 0);
|
|
97084
97185
|
__decorate([
|
|
97085
97186
|
observable
|
|
97086
97187
|
], ChatInput.prototype, "textArea", void 0);
|