@ni/nimble-components 19.1.2 → 19.2.0
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 +24 -3
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +1608 -1608
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/combobox/index.d.ts +2 -0
- package/dist/esm/combobox/index.js +20 -1
- package/dist/esm/combobox/index.js.map +1 -1
- package/dist/esm/theme-provider/design-token-comments.js +2 -1
- package/dist/esm/theme-provider/design-token-comments.js.map +1 -1
- package/dist/esm/theme-provider/design-token-names.js +2 -1
- package/dist/esm/theme-provider/design-token-names.js.map +1 -1
- package/dist/esm/theme-provider/design-tokens.d.ts +1 -0
- package/dist/esm/theme-provider/design-tokens.js +1 -0
- package/dist/esm/theme-provider/design-tokens.js.map +1 -1
- package/dist/tokens-internal.scss +6 -0
- package/dist/tokens.scss +3 -0
- package/package.json +1 -1
|
@@ -16232,7 +16232,7 @@
|
|
|
16232
16232
|
|
|
16233
16233
|
/**
|
|
16234
16234
|
* Do not edit directly
|
|
16235
|
-
* Generated on
|
|
16235
|
+
* Generated on Fri, 02 Jun 2023 07:34:22 GMT
|
|
16236
16236
|
*/
|
|
16237
16237
|
const Information100DarkUi = "#a46eff";
|
|
16238
16238
|
const Information100LightUi = "#804ad9";
|
|
@@ -16560,7 +16560,8 @@
|
|
|
16560
16560
|
tableRowBorderColor: 'table-row-border-color',
|
|
16561
16561
|
elevation1BoxShadow: 'elevation-1-box-shadow',
|
|
16562
16562
|
elevation2BoxShadow: 'elevation-2-box-shadow',
|
|
16563
|
-
elevation3BoxShadow: 'elevation-3-box-shadow'
|
|
16563
|
+
elevation3BoxShadow: 'elevation-3-box-shadow',
|
|
16564
|
+
graphGridlineColor: 'graph-gridline-color'
|
|
16564
16565
|
};
|
|
16565
16566
|
const prefix = 'ni-nimble';
|
|
16566
16567
|
const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
|
|
@@ -16710,6 +16711,7 @@
|
|
|
16710
16711
|
const iconColor = DesignToken.create(styleNameFromTokenName(tokenNames.iconColor)).withDefault((element) => getColorForTheme(element, Black91, Black15, White));
|
|
16711
16712
|
DesignToken.create(styleNameFromTokenName(tokenNames.modalBackdropColor)).withDefault((element) => getModalBackdropForTheme(element));
|
|
16712
16713
|
const popupBorderColor = DesignToken.create(styleNameFromTokenName(tokenNames.popupBorderColor)).withDefault((element) => hexToRgbaCssColor(getColorForTheme(element, Black91, Black15, White), 0.3));
|
|
16714
|
+
DesignToken.create(styleNameFromTokenName(tokenNames.graphGridlineColor)).withDefault((element) => hexToRgbaCssColor(getColorForTheme(element, Black91, Black15, White), 0.2));
|
|
16713
16715
|
DesignToken.create(styleNameFromTokenName(tokenNames.tooltipBackgroundColor)).withDefault((element) => getColorForTheme(element, Black15, Black85, ForestGreen));
|
|
16714
16716
|
const tableRowBorderColor = DesignToken.create(styleNameFromTokenName(tokenNames.tableRowBorderColor)).withDefault((element) => getColorForTheme(element, Black15, Black80, ForestGreen));
|
|
16715
16717
|
// Component Sizing Tokens
|
|
@@ -20531,6 +20533,25 @@
|
|
|
20531
20533
|
this.errorVisible = false;
|
|
20532
20534
|
this.valueUpdatedByInput = false;
|
|
20533
20535
|
}
|
|
20536
|
+
get value() {
|
|
20537
|
+
return super.value;
|
|
20538
|
+
}
|
|
20539
|
+
// This override is to work around an issue in FAST where an old filter value
|
|
20540
|
+
// is used after programmatically setting the value property.
|
|
20541
|
+
// See: https://github.com/microsoft/fast/issues/6749
|
|
20542
|
+
set value(next) {
|
|
20543
|
+
super.value = next;
|
|
20544
|
+
if (!this.valueUpdatedByInput) {
|
|
20545
|
+
// Workaround using index notation to manipulate private member
|
|
20546
|
+
// Can remove when following resolved: https://github.com/microsoft/fast/issues/6749
|
|
20547
|
+
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
20548
|
+
this['filter'] = '';
|
|
20549
|
+
this.filterOptions();
|
|
20550
|
+
this.selectedIndex = this.options
|
|
20551
|
+
.map(option => option.text)
|
|
20552
|
+
.indexOf(this.value);
|
|
20553
|
+
}
|
|
20554
|
+
}
|
|
20534
20555
|
// Workaround for https://github.com/microsoft/fast/issues/5123
|
|
20535
20556
|
setPositioning() {
|
|
20536
20557
|
if (!this.$fastController.isConnected) {
|
|
@@ -20591,8 +20612,8 @@
|
|
|
20591
20612
|
if (!this.valueUpdatedByInput) {
|
|
20592
20613
|
this.valueBeforeTextUpdate = this.value;
|
|
20593
20614
|
}
|
|
20594
|
-
this.value = this.control.value;
|
|
20595
20615
|
this.valueUpdatedByInput = true;
|
|
20616
|
+
this.value = this.control.value;
|
|
20596
20617
|
return returnValue;
|
|
20597
20618
|
}
|
|
20598
20619
|
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|