@ni/nimble-components 30.1.0 → 30.1.2
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 +16 -11
- 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/select/styles.js +2 -1
- package/dist/esm/select/styles.js.map +1 -1
- package/dist/esm/table/index.js +5 -8
- package/dist/esm/table/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -16333,7 +16333,7 @@
|
|
|
16333
16333
|
|
|
16334
16334
|
/**
|
|
16335
16335
|
* Do not edit directly
|
|
16336
|
-
* Generated on
|
|
16336
|
+
* Generated on Wed, 24 Jul 2024 15:55:56 GMT
|
|
16337
16337
|
*/
|
|
16338
16338
|
|
|
16339
16339
|
const Information100DarkUi = "#a46eff";
|
|
@@ -59909,7 +59909,8 @@ img.ProseMirror-separator {
|
|
|
59909
59909
|
}
|
|
59910
59910
|
|
|
59911
59911
|
.filter-icon {
|
|
59912
|
-
|
|
59912
|
+
flex-shrink: 0;
|
|
59913
|
+
margin-left: ${smallPadding};
|
|
59913
59914
|
${iconColor.cssCustomProperty}: ${placeholderFontColor};
|
|
59914
59915
|
}
|
|
59915
59916
|
|
|
@@ -64690,6 +64691,10 @@ img.ProseMirror-separator {
|
|
|
64690
64691
|
function getGroupedRowModel() {
|
|
64691
64692
|
return table => memo$1(() => [table.getState().grouping, table.getPreGroupedRowModel()], (grouping, rowModel) => {
|
|
64692
64693
|
if (!rowModel.rows.length || !grouping.length) {
|
|
64694
|
+
rowModel.rows.forEach(row => {
|
|
64695
|
+
row.depth = 0;
|
|
64696
|
+
row.parentId = undefined;
|
|
64697
|
+
});
|
|
64693
64698
|
return rowModel;
|
|
64694
64699
|
}
|
|
64695
64700
|
|
|
@@ -64725,7 +64730,7 @@ img.ProseMirror-separator {
|
|
|
64725
64730
|
// Group the rows together for this level
|
|
64726
64731
|
const rowGroupsMap = groupBy(rows, columnId);
|
|
64727
64732
|
|
|
64728
|
-
//
|
|
64733
|
+
// Perform aggregations for each group
|
|
64729
64734
|
const aggregatedGroupedRows = Array.from(rowGroupsMap.entries()).map((_ref, index) => {
|
|
64730
64735
|
let [groupingValue, groupedRows] = _ref;
|
|
64731
64736
|
let id = `${columnId}:${groupingValue}`;
|
|
@@ -64733,6 +64738,9 @@ img.ProseMirror-separator {
|
|
|
64733
64738
|
|
|
64734
64739
|
// First, Recurse to group sub rows before aggregation
|
|
64735
64740
|
const subRows = groupUpRecursively(groupedRows, depth + 1, id);
|
|
64741
|
+
subRows.forEach(subRow => {
|
|
64742
|
+
subRow.parentId = id;
|
|
64743
|
+
});
|
|
64736
64744
|
|
|
64737
64745
|
// Flatten the leaf rows of the rows in this group
|
|
64738
64746
|
const leafRows = depth ? flattenBy(groupedRows, row => row.subRows) : groupedRows;
|
|
@@ -70427,7 +70435,7 @@ focus outline in that case.
|
|
|
70427
70435
|
}
|
|
70428
70436
|
if (this.dataHierarchyManager
|
|
70429
70437
|
&& this.tableUpdateTracker.requiresTanStackDataReset) {
|
|
70430
|
-
if (!this.
|
|
70438
|
+
if (!this.isHierarchyEnabled()
|
|
70431
70439
|
&& !this.tableUpdateTracker.updateRowParentIds) {
|
|
70432
70440
|
// Perform a shallow copy of the data to trigger tanstack to regenerate the row models and columns.
|
|
70433
70441
|
updatedOptions.data = [...this.table.options.data];
|
|
@@ -70532,13 +70540,10 @@ focus outline in that case.
|
|
|
70532
70540
|
const slotsByRecordId = this.getRequestedSlotsByRecordId();
|
|
70533
70541
|
this.tableData = rows.map(row => {
|
|
70534
70542
|
const isGroupRow = row.getIsGrouped();
|
|
70535
|
-
const hasParentRow = isGroupRow ? false : row.getParentRow();
|
|
70536
70543
|
const isParent = !isGroupRow && this.getRowCanExpand(row);
|
|
70537
|
-
const
|
|
70538
|
-
&& !
|
|
70539
|
-
&&
|
|
70540
|
-
&& row.depth > 0
|
|
70541
|
-
&& !this.parentIdFieldName;
|
|
70544
|
+
const isDataChildOfGroupRowWithNoHierarchy = !isGroupRow // is a data row (not a group row)
|
|
70545
|
+
&& !this.isHierarchyEnabled() // table does not have hierarchy enabled
|
|
70546
|
+
&& row.getParentRow()?.getIsGrouped(); // row has a parent that is a group row
|
|
70542
70547
|
const rowState = {
|
|
70543
70548
|
record: row.original.clientRecord,
|
|
70544
70549
|
id: row.id,
|
|
@@ -70548,7 +70553,7 @@ focus outline in that case.
|
|
|
70548
70553
|
groupRowValue: isGroupRow
|
|
70549
70554
|
? row.getValue(row.groupingColumnId)
|
|
70550
70555
|
: undefined,
|
|
70551
|
-
nestingLevel:
|
|
70556
|
+
nestingLevel: isDataChildOfGroupRowWithNoHierarchy
|
|
70552
70557
|
? row.depth - 1
|
|
70553
70558
|
: row.depth,
|
|
70554
70559
|
isParentRow: isParent,
|