@ni/nimble-components 21.3.2 → 21.3.3
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 +3 -16
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +3 -7
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/table/index.js +2 -15
- package/dist/esm/table/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -10749,14 +10749,10 @@ this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckb
|
|
|
10749
10749
|
let e=!1
|
|
10750
10750
|
const t=this.table.getRowModel().rows
|
|
10751
10751
|
this.tableData=t.map((t=>{const n=t.getIsGrouped(),i=!n&&t.getParentRow(),o=!n&&this.getRowCanExpand(t),r=!n&&!o&&!i&&t.depth>0&&!this.parentIdFieldName,s={record:t.original.clientRecord,id:t.id,selectionState:this.getRowSelectionState(t),isGroupRow:n,isExpanded:t.getIsExpanded(),groupRowValue:n?t.getValue(t.groupingColumnId):void 0,nestingLevel:r?t.depth-1:t.depth,isParentRow:o,immediateChildCount:t.subRows.length,groupColumn:this.getGroupRowColumn(t)}
|
|
10752
|
-
return e=e||o,s})),this.showCollapseAll=e||this.getColumnsParticipatingInGrouping().length>0,this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?KT:this.table.getIsSomeRowsSelected()?JT:GT}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?KT:GT}getGroupedRowSelectionState(e){const t=e.getLeafRows()??[]
|
|
10752
|
+
return e=e||o,s})),this.showCollapseAll=e||this.getColumnsParticipatingInGrouping().length>0,this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?KT:this.table.getIsSomeRowsSelected()?JT:GT}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?KT:GT}getGroupedRowSelectionState(e){const t=e.getLeafRows().filter((e=>!e.getIsGrouped()))??[]
|
|
10753
10753
|
let n=!1,i=!1
|
|
10754
|
-
for(const e of t)
|
|
10755
|
-
|
|
10756
|
-
case KT:n=!0
|
|
10757
|
-
break
|
|
10758
|
-
default:return JT}}else e.getIsSelected()?n=!0:i=!0
|
|
10759
|
-
if(n&&i)return JT}return n?KT:GT}getGroupRowColumn(e){const t=e.groupingColumnId
|
|
10754
|
+
for(const e of t)if(e.getIsSelected()?n=!0:i=!0,n&&i)return JT
|
|
10755
|
+
return n?KT:GT}getGroupRowColumn(e){const t=e.groupingColumnId
|
|
10760
10756
|
if(void 0!==t)return this.columns.find((e=>e.columnInternals.uniqueId===t))}updateTableOptions(e){if(this.options={...this.options,...e,state:{...this.options.state,...e.state}},this.table.setOptions(this.options),e.data&&this.tableValidator.areRecordIdsValid()){const e=this.table.getRowModel().flatRows
|
|
10761
10757
|
this.expansionManager.processDataUpdate(e)}this.refreshRows()}toggleRowExpanded(e){const t=this.table.getRowModel().rows[e]
|
|
10762
10758
|
this.expansionManager.toggleRowExpansion(t)}calculateTanStackSortState(){const e=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex))
|