@ni/nimble-components 30.1.5 → 30.1.7
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 +13 -7
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +9 -6
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/table/components/row/styles.js +6 -2
- package/dist/esm/table/components/row/styles.js.map +1 -1
- package/dist/esm/table/index.js +4 -1
- package/dist/esm/table/index.js.map +1 -1
- package/dist/esm/table/models/data-hierarchy-manager.js +2 -2
- package/dist/esm/table/models/data-hierarchy-manager.js.map +1 -1
- package/dist/esm/table-column/menu-button/cell-view/styles.js +0 -2
- package/dist/esm/table-column/menu-button/cell-view/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -16032,7 +16032,7 @@
|
|
|
16032
16032
|
|
|
16033
16033
|
/**
|
|
16034
16034
|
* Do not edit directly
|
|
16035
|
-
* Generated on
|
|
16035
|
+
* Generated on Wed, 31 Jul 2024 19:28:45 GMT
|
|
16036
16036
|
*/
|
|
16037
16037
|
|
|
16038
16038
|
const Information100DarkUi = "#a46eff";
|
|
@@ -65914,8 +65914,12 @@ focus outline in that case.
|
|
|
65914
65914
|
}
|
|
65915
65915
|
|
|
65916
65916
|
:host(${focusVisible}) {
|
|
65917
|
-
outline:
|
|
65918
|
-
|
|
65917
|
+
outline: none;
|
|
65918
|
+
box-shadow:
|
|
65919
|
+
inset calc(2 * ${borderWidth}) calc(2 * ${borderWidth})
|
|
65920
|
+
${borderHoverColor},
|
|
65921
|
+
inset calc(-2 * ${borderWidth}) calc(-2 * ${borderWidth})
|
|
65922
|
+
${borderHoverColor};
|
|
65919
65923
|
}
|
|
65920
65924
|
|
|
65921
65925
|
.expand-collapse-button {
|
|
@@ -68713,7 +68717,7 @@ focus outline in that case.
|
|
|
68713
68717
|
catch {
|
|
68714
68718
|
this.isDataFlat = true;
|
|
68715
68719
|
this._hierarchicalData = records.map((record, index) => ({
|
|
68716
|
-
clientRecord:
|
|
68720
|
+
clientRecord: record,
|
|
68717
68721
|
originalIndex: index
|
|
68718
68722
|
}));
|
|
68719
68723
|
this._parentIdConfigurationValid = false;
|
|
@@ -68722,7 +68726,7 @@ focus outline in that case.
|
|
|
68722
68726
|
else {
|
|
68723
68727
|
this.isDataFlat = true;
|
|
68724
68728
|
this._hierarchicalData = records.map((record, index) => ({
|
|
68725
|
-
clientRecord:
|
|
68729
|
+
clientRecord: record,
|
|
68726
68730
|
originalIndex: index
|
|
68727
68731
|
}));
|
|
68728
68732
|
this._parentIdConfigurationValid = true;
|
|
@@ -70079,7 +70083,10 @@ focus outline in that case.
|
|
|
70079
70083
|
}
|
|
70080
70084
|
async setData(newData) {
|
|
70081
70085
|
await this.processPendingUpdates();
|
|
70082
|
-
|
|
70086
|
+
// Make a shallow clone of the record to avoid holding a reference to the client's data object.
|
|
70087
|
+
// This also ensures that a data update will always result in a row's record being a new object.
|
|
70088
|
+
const clonedData = newData.map(record => ({ ...record }));
|
|
70089
|
+
const tanstackUpdates = this.calculateTanStackData(clonedData);
|
|
70083
70090
|
this.updateTableOptions(tanstackUpdates);
|
|
70084
70091
|
}
|
|
70085
70092
|
async getSelectedRecordIds() {
|
|
@@ -72654,7 +72661,6 @@ focus outline in that case.
|
|
|
72654
72661
|
}
|
|
72655
72662
|
|
|
72656
72663
|
nimble-menu-button {
|
|
72657
|
-
height: ${controlSlimHeight};
|
|
72658
72664
|
width: 100%;
|
|
72659
72665
|
}
|
|
72660
72666
|
|