@ni/spright-components 2.0.2 → 2.0.4
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.
|
@@ -10346,12 +10346,21 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(t
|
|
|
10346
10346
|
grid-template-columns: var(--ni-private-table-row-grid-columns) auto;
|
|
10347
10347
|
}
|
|
10348
10348
|
|
|
10349
|
+
.collapse-all-button-container {
|
|
10350
|
+
display: flex;
|
|
10351
|
+
min-width: ${_l};
|
|
10352
|
+
}
|
|
10353
|
+
|
|
10349
10354
|
.collapse-all-button {
|
|
10350
10355
|
height: ${kl};
|
|
10351
10356
|
margin-left: ${_l};
|
|
10352
10357
|
visibility: hidden;
|
|
10353
10358
|
}
|
|
10354
10359
|
|
|
10360
|
+
.collapse-all-button.hidden-size-reduced {
|
|
10361
|
+
display: none;
|
|
10362
|
+
}
|
|
10363
|
+
|
|
10355
10364
|
.collapse-all-button.visible {
|
|
10356
10365
|
visibility: visible;
|
|
10357
10366
|
}
|
|
@@ -10654,7 +10663,7 @@ const zR="nimble-table-header",VR=Mt`
|
|
|
10654
10663
|
flex: 0 0 auto;
|
|
10655
10664
|
}
|
|
10656
10665
|
|
|
10657
|
-
.row-front-spacer.
|
|
10666
|
+
.row-front-spacer.reduced-size-spacer {
|
|
10658
10667
|
width: ${_l};
|
|
10659
10668
|
}
|
|
10660
10669
|
|
|
@@ -10828,7 +10837,7 @@ const GR="nimble-table-cell",ZR=Q`
|
|
|
10828
10837
|
`)}
|
|
10829
10838
|
</span>
|
|
10830
10839
|
`)}
|
|
10831
|
-
<span class="row-front-spacer ${t=>t.isTopLevelParentRow?"
|
|
10840
|
+
<span class="row-front-spacer ${t=>t.isTopLevelParentRow||!t.reserveCollapseSpace?"reduced-size-spacer":""}"></span>
|
|
10832
10841
|
${Gt((t=>t.isParentRow),Q`
|
|
10833
10842
|
${Gt((t=>t.loading),Q`
|
|
10834
10843
|
<span class="spinner-container">
|
|
@@ -10894,7 +10903,7 @@ const GR="nimble-table-cell",ZR=Q`
|
|
|
10894
10903
|
</span>
|
|
10895
10904
|
</template>
|
|
10896
10905
|
`
|
|
10897
|
-
class KR extends We{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.expanded=!1,this.columnNotifiers=[],this.columns=[],this.nestingLevel=0,this.isParentRow=!1,this.menuOpen=!1,this.rowOperationGridCellHidden=!1,this.loading=!1,this.cellIndentLevels=[],this.cellStates=[],this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon?.removeEventListener("transitionend",this.removeAnimatingClass)}}get isTopLevelParentRow(){return this.isParentRow&&0===this.nestingLevel}get isNestedParent(){return this.isParentRow&&this.nestingLevel>0}get showSelectionCheckbox(){return this.selectable&&!this.hideSelection}get ariaSelected(){return this.selectable?this.selected?"true":"false":null}onSelectionCheckboxChange(t){if(this.ignoreSelectionChangeEvents)return
|
|
10906
|
+
class KR extends We{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.expanded=!1,this.reserveCollapseSpace=!1,this.columnNotifiers=[],this.columns=[],this.nestingLevel=0,this.isParentRow=!1,this.menuOpen=!1,this.rowOperationGridCellHidden=!1,this.loading=!1,this.cellIndentLevels=[],this.cellStates=[],this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon?.removeEventListener("transitionend",this.removeAnimatingClass)}}get isTopLevelParentRow(){return this.isParentRow&&0===this.nestingLevel}get isNestedParent(){return this.isParentRow&&this.nestingLevel>0}get showSelectionCheckbox(){return this.selectable&&!this.hideSelection}get ariaSelected(){return this.selectable?this.selected?"true":"false":null}onSelectionCheckboxChange(t){if(this.ignoreSelectionChangeEvents)return
|
|
10898
10907
|
const e=t.target.checked
|
|
10899
10908
|
this.onSelectionChange(!e,e)}onSelectionChange(t,e){this.selected=e
|
|
10900
10909
|
const n={oldState:t,newState:e}
|
|
@@ -10906,7 +10915,7 @@ this.$emit(t,i)}columnsChanged(){this.updateCellIndentLevels(),this.updateCellSt
|
|
|
10906
10915
|
return e.subscribe(this),e}))}updateCellStates(){this.cellStates=this.columns.map((t=>{const e=t.columnInternals.dataRecordFieldNames
|
|
10907
10916
|
let n
|
|
10908
10917
|
if(this.hasValidFieldNames(e)&&this.dataRecord){const i=e.map((t=>this.dataRecord[t]))
|
|
10909
|
-
n={cellRecord:Object.fromEntries(t.columnInternals.cellRecordFieldNames.map(((t,e)=>[t,i[e]]))),columnConfig:t.columnInternals.columnConfig}}return n}))}hasValidFieldNames(t){return t.every((t=>void 0!==t))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}t([ft({attribute:"record-id"})],KR.prototype,"recordId",void 0),t([ft({mode:"boolean"})],KR.prototype,"selectable",void 0),t([ft({mode:"boolean"})],KR.prototype,"selected",void 0),t([ft({attribute:"hide-selection",mode:"boolean"})],KR.prototype,"hideSelection",void 0),t([ft({mode:"boolean"})],KR.prototype,"expanded",void 0),t([C],KR.prototype,"dataRecord",void 0),t([C],KR.prototype,"columns",void 0),t([C],KR.prototype,"currentActionMenuColumn",void 0),t([C],KR.prototype,"nestingLevel",void 0),t([C],KR.prototype,"resolvedRowIndex",void 0),t([ft({attribute:"is-parent-row",mode:"boolean"})],KR.prototype,"isParentRow",void 0),t([ft({attribute:"menu-open",mode:"boolean"})],KR.prototype,"menuOpen",void 0),t([ft({attribute:"row-operation-grid-cell-hidden",mode:"boolean"})],KR.prototype,"rowOperationGridCellHidden",void 0),t([ft({mode:"boolean"})],KR.prototype,"loading",void 0),t([C],KR.prototype,"cellIndentLevels",void 0),t([C],KR.prototype,"cellStates",void 0),t([C],KR.prototype,"selectionCheckbox",void 0),t([C],KR.prototype,"animationClass",void 0),t([k],KR.prototype,"isTopLevelParentRow",null),t([k],KR.prototype,"isNestedParent",null),t([k],KR.prototype,"showSelectionCheckbox",null),t([k],KR.prototype,"ariaSelected",null)
|
|
10918
|
+
n={cellRecord:Object.fromEntries(t.columnInternals.cellRecordFieldNames.map(((t,e)=>[t,i[e]]))),columnConfig:t.columnInternals.columnConfig}}return n}))}hasValidFieldNames(t){return t.every((t=>void 0!==t))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}t([ft({attribute:"record-id"})],KR.prototype,"recordId",void 0),t([ft({mode:"boolean"})],KR.prototype,"selectable",void 0),t([ft({mode:"boolean"})],KR.prototype,"selected",void 0),t([ft({attribute:"hide-selection",mode:"boolean"})],KR.prototype,"hideSelection",void 0),t([ft({mode:"boolean"})],KR.prototype,"expanded",void 0),t([ft({attribute:"reserve-collapse-space",mode:"boolean"})],KR.prototype,"reserveCollapseSpace",void 0),t([C],KR.prototype,"dataRecord",void 0),t([C],KR.prototype,"columns",void 0),t([C],KR.prototype,"currentActionMenuColumn",void 0),t([C],KR.prototype,"nestingLevel",void 0),t([C],KR.prototype,"resolvedRowIndex",void 0),t([ft({attribute:"is-parent-row",mode:"boolean"})],KR.prototype,"isParentRow",void 0),t([ft({attribute:"menu-open",mode:"boolean"})],KR.prototype,"menuOpen",void 0),t([ft({attribute:"row-operation-grid-cell-hidden",mode:"boolean"})],KR.prototype,"rowOperationGridCellHidden",void 0),t([ft({mode:"boolean"})],KR.prototype,"loading",void 0),t([C],KR.prototype,"cellIndentLevels",void 0),t([C],KR.prototype,"cellStates",void 0),t([C],KR.prototype,"selectionCheckbox",void 0),t([C],KR.prototype,"animationClass",void 0),t([k],KR.prototype,"isTopLevelParentRow",null),t([k],KR.prototype,"isNestedParent",null),t([k],KR.prototype,"showSelectionCheckbox",null),t([k],KR.prototype,"ariaSelected",null)
|
|
10910
10919
|
const YR=KR.compose({baseName:"table-row",template:ZR,styles:HR})
|
|
10911
10920
|
_i.getOrCreate().withPrefix("nimble").register(YR())
|
|
10912
10921
|
const XR="nimble-table-row",JR=Mt`
|
|
@@ -11078,7 +11087,7 @@ const nF="nimble-table-group-row",iF=Q`
|
|
|
11078
11087
|
${Ut("selectionCheckbox")}
|
|
11079
11088
|
${""}
|
|
11080
11089
|
tabindex="-1"
|
|
11081
|
-
class="
|
|
11090
|
+
class="selection-checkbox"
|
|
11082
11091
|
@change="${(t,e)=>t.onAllRowsSelectionChange(e.event)}"
|
|
11083
11092
|
title="${t=>Fv.getValueFor(t)}"
|
|
11084
11093
|
aria-label="${t=>Fv.getValueFor(t)}"
|
|
@@ -11086,19 +11095,21 @@ const nF="nimble-table-group-row",iF=Q`
|
|
|
11086
11095
|
</${mg}>
|
|
11087
11096
|
</span>
|
|
11088
11097
|
`)}
|
|
11089
|
-
|
|
11090
|
-
|
|
11091
|
-
|
|
11092
|
-
|
|
11093
|
-
|
|
11094
|
-
|
|
11095
|
-
|
|
11096
|
-
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11098
|
+
<span class="collapse-all-button-container">
|
|
11099
|
+
<${Vh}
|
|
11100
|
+
${Ut("collapseAllButton")}
|
|
11101
|
+
${""}
|
|
11102
|
+
tabindex="-1"
|
|
11103
|
+
class="collapse-all-button ${t=>t.collapseButtonVisibility}"
|
|
11104
|
+
content-hidden
|
|
11105
|
+
appearance="${oh}"
|
|
11106
|
+
title="${t=>Dv.getValueFor(t)}"
|
|
11107
|
+
@click="${t=>t.handleCollapseAllRows()}"
|
|
11108
|
+
>
|
|
11109
|
+
<${iv} slot="start"></${iv}>
|
|
11110
|
+
${t=>Dv.getValueFor(t)}
|
|
11111
|
+
</${Vh}>
|
|
11112
|
+
</span>
|
|
11102
11113
|
</span>
|
|
11103
11114
|
<span class="column-headers-container" ${Ut("columnHeadersContainer")}>
|
|
11104
11115
|
${Qt((t=>t.visibleColumns),Q`
|
|
@@ -11182,6 +11193,7 @@ const nF="nimble-table-group-row",iF=Q`
|
|
|
11182
11193
|
?selected="${(t,e)=>e.parent.tableData[t.index]?.selectionState===cR}"
|
|
11183
11194
|
?expanded="${(t,e)=>e.parent.tableData[t.index]?.isExpanded}"
|
|
11184
11195
|
?hide-selection="${(t,e)=>e.parent.selectionMode!==aR.multiple}"
|
|
11196
|
+
?reserve-collapse-space="${(t,e)=>e.parent.canHaveCollapsibleRows}"
|
|
11185
11197
|
:dataRecord="${(t,e)=>e.parent.tableData[t.index]?.record}"
|
|
11186
11198
|
:columns="${(t,e)=>e.parent.columns}"
|
|
11187
11199
|
:isParentRow="${(t,e)=>e.parent.tableData[t.index]?.isParentRow}"
|
|
@@ -11374,11 +11386,13 @@ this.tanStackTable.setRowSelection(i)}getAllLeafRowIds(t){const e=this.tanStackT
|
|
|
11374
11386
|
return e?.getIsGrouped()?e.getLeafRows().filter((t=>!t.getIsGrouped())).map((t=>t.id)):[]}getAllOrderedRows(){const t=this.tanStackTable.getPreExpandedRowModel().rows
|
|
11375
11387
|
return this.getOrderedRows(t)}getOrderedRows(t){const e=[]
|
|
11376
11388
|
for(const n of t)e.push(n),n.subRows?.length&&e.push(...this.getOrderedRows(n.subRows))
|
|
11377
|
-
return e}}class _F extends SF{handleRowSelectionToggle(t,e,n){return!1}handleRowClick(t,e,n){return!1}handleActionMenuOpening(t){return!1}}class IF extends SF{handleRowSelectionToggle(t,e,n){return n&&this.tryUpdateRangeSelection(t.id)||(this.shiftSelectStartRowId=t.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(t,e)),!0}handleRowClick(t,e,n){
|
|
11378
|
-
|
|
11379
|
-
if(
|
|
11380
|
-
const i=this.
|
|
11381
|
-
|
|
11389
|
+
return e}}class _F extends SF{handleRowSelectionToggle(t,e,n){return!1}handleRowClick(t,e,n){return!1}handleActionMenuOpening(t){return!1}}class IF extends SF{handleRowSelectionToggle(t,e,n){return n&&this.tryUpdateRangeSelection(t.id,!0)||(this.shiftSelectStartRowId=e?t.id:void 0,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(t,e)),!0}handleRowClick(t,e,n){if(e){const e=n
|
|
11390
|
+
if(this.tryUpdateRangeSelection(t.id,e))return!0}if(n){const e=t.selectionState!==cR
|
|
11391
|
+
return this.shiftSelectStartRowId=e?t.id:void 0,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(t),!0}return this.shiftSelectStartRowId=t.id,this.previousShiftSelectRowEndId=void 0,this.selectSingleRow(t)}handleActionMenuOpening(t){return t.selectionState!==cR&&this.selectSingleRow(t)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(t,e){if(void 0===this.shiftSelectStartRowId)return!1
|
|
11392
|
+
const n=this.getAllOrderedRows(),i=this.getRowIndexForId(this.shiftSelectStartRowId,n)
|
|
11393
|
+
if(-1===i)return!1
|
|
11394
|
+
let s={}
|
|
11395
|
+
return e&&(s=this.tanStackTable.getState().rowSelection,this.removePreviousRangeSelection(s,i,n)),this.addNewRangeSelection(s,t,i,n),this.previousShiftSelectRowEndId=t,this.tanStackTable.setRowSelection(s),!0}removePreviousRangeSelection(t,e,n){const i=this.getRowIndexForId(this.previousShiftSelectRowEndId,n)
|
|
11382
11396
|
this.updateSelectionStateForRange(t,e,i,n,!1)}addNewRangeSelection(t,e,n,i){const s=this.getRowIndexForId(e,i)
|
|
11383
11397
|
this.updateSelectionStateForRange(t,n,s,i,!0)}updateSelectionStateForRange(t,e,n,i,s){if(-1===e||-1===n)return
|
|
11384
11398
|
const o=Math.min(e,n),r=Math.max(e,n)
|
|
@@ -11545,7 +11559,7 @@ const i=e??this.columnIndex,s=n??this.rowIndex
|
|
|
11545
11559
|
return i>=0&&i<t.cells.length&&(this.focusType=bR,this.setRowCellFocusState(i,s,!0),!0)}trySetCellContentFocus(t,e,n,i){if(!t)return!1
|
|
11546
11560
|
const s=n??this.columnIndex,o=i??this.rowIndex
|
|
11547
11561
|
return s>=0&&s<t.cells.length&&e>=0&&e<t.cells[s].cell.cellView.tabbableChildren.length&&(this.setCellContentFocusState(e,o,s,!0),!0)}trySetCellActionMenuFocus(t,e,n){const i=e??this.columnIndex,s=n??this.rowIndex
|
|
11548
|
-
return!!(i>=0&&i<t.cells.length&&t.cells[i].actionMenuButton)&&(this.setCellActionMenuFocusState(s,i,!0),!0)}setCellActionMenuFocusState(t,e,n){this.focusType=yR,this.setRowCellFocusState(e,t,n)}setCellContentFocusState(t,e,n,i){this.focusType=wR,this.cellContentIndex=t,this.setRowCellFocusState(n,e,i)}setRowFocusState(t){this.focusType=gR,void 0!==t&&(this.rowIndex=t)}setCellFocusState(t,e,n){this.focusType=bR,this.setRowCellFocusState(t,e,n)}setRowCellFocusState(t,e,n){this.rowIndex=e,this.columnIndex=t,n&&this.focusCurrentRow(!0)}isResolvedRowType(t){return t instanceof KR||t instanceof tF}}let NF=class extends We{get validity(){return this.tableValidator.getValidity()}get showRowOperationColumn(){return this.selectionMode===aR.multiple||this.showCollapseAll}constructor(){super(),this.selectionMode=aR.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=lR,this.showCollapseAll=!1,this.visibleColumns=[],this.tableScrollableMinWidth=0,this.windowShiftKeyDown=!1,this.tableValidator=new RR,this.tableUpdateTracker=new kF(this),this.columnNotifiers=[],this.isInitialized=!1,this.ignoreSelectionChangeEvents=!1,this.requestedSlots=new Map,this.actionMenuSlots=[],this.onViewPortScroll=t=>{this.scrollX=t.target.scrollLeft},this.onKeyDown=t=>{this.windowShiftKeyDown=t.shiftKey},this.onKeyUp=t=>{this.windowShiftKeyDown=t.shiftKey},this.onBlur=()=>{this.windowShiftKeyDown=!1},this.getRowCanExpand=t=>this.expansionManager.isRowExpandable(t),this.getIsRowExpanded=t=>this.expansionManager.isRowExpanded(t),this.handleRowSelectionChange=t=>{const e=t instanceof Function?t(this.table.getState().rowSelection):t
|
|
11562
|
+
return!!(i>=0&&i<t.cells.length&&t.cells[i].actionMenuButton)&&(this.setCellActionMenuFocusState(s,i,!0),!0)}setCellActionMenuFocusState(t,e,n){this.focusType=yR,this.setRowCellFocusState(e,t,n)}setCellContentFocusState(t,e,n,i){this.focusType=wR,this.cellContentIndex=t,this.setRowCellFocusState(n,e,i)}setRowFocusState(t){this.focusType=gR,void 0!==t&&(this.rowIndex=t)}setCellFocusState(t,e,n){this.focusType=bR,this.setRowCellFocusState(t,e,n)}setRowCellFocusState(t,e,n){this.rowIndex=e,this.columnIndex=t,n&&this.focusCurrentRow(!0)}isResolvedRowType(t){return t instanceof KR||t instanceof tF}}let NF=class extends We{get validity(){return this.tableValidator.getValidity()}get showRowOperationColumn(){return this.selectionMode===aR.multiple||this.showCollapseAll}get collapseButtonVisibility(){return this.canHaveCollapsibleRows?this.showCollapseAll?"visible":"":"hidden-size-reduced"}constructor(){super(),this.selectionMode=aR.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=lR,this.showCollapseAll=!1,this.canHaveCollapsibleRows=!1,this.visibleColumns=[],this.tableScrollableMinWidth=0,this.windowShiftKeyDown=!1,this.tableValidator=new RR,this.tableUpdateTracker=new kF(this),this.columnNotifiers=[],this.isInitialized=!1,this.ignoreSelectionChangeEvents=!1,this.requestedSlots=new Map,this.actionMenuSlots=[],this.onViewPortScroll=t=>{this.scrollX=t.target.scrollLeft},this.onKeyDown=t=>{this.windowShiftKeyDown=t.shiftKey},this.onKeyUp=t=>{this.windowShiftKeyDown=t.shiftKey},this.onBlur=()=>{this.windowShiftKeyDown=!1},this.getRowCanExpand=t=>this.expansionManager.isRowExpandable(t),this.getIsRowExpanded=t=>this.expansionManager.isRowExpanded(t),this.handleRowSelectionChange=t=>{const e=t instanceof Function?t(this.table.getState().rowSelection):t
|
|
11549
11563
|
this.updateTableOptions({state:{rowSelection:e}})},this.handleExpandedChange=t=>{const e=t instanceof Function?t(this.table.getState().expanded):t
|
|
11550
11564
|
this.updateTableOptions({state:{expanded:e}})},this.options={data:[],onStateChange:t=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:t=>aO((()=>[t.options.data]),(e=>{const n={rows:[],flatRows:[],rowsById:{}},i=function(e,s,o){void 0===s&&(s=0)
|
|
11551
11565
|
const r=[]
|
|
@@ -11581,7 +11595,8 @@ let r=rR.ascending
|
|
|
11581
11595
|
s?o===rR.descending?(n.splice(i,1),r=rR.none,t.columnInternals.currentSortIndex=void 0):r=rR.descending:n.push(t),t.columnInternals.currentSortDirection=r
|
|
11582
11596
|
for(let i=0;i<n.length;i++){const s=n[i]
|
|
11583
11597
|
e?n[i].columnInternals.currentSortIndex=i:s===t?s.columnInternals.currentSortIndex=0:(s.columnInternals.currentSortIndex=void 0,s.columnInternals.currentSortDirection=rR.none)}this.emitColumnConfigurationChangeEvent()}onHeaderKeyDown(t,e){const n=e.shiftKey
|
|
11584
|
-
return e.key===Ta&&this.toggleColumnSort(t,n),!0}update(){this.validate(),this.tableUpdateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.tableUpdateTracker.
|
|
11598
|
+
return e.key===Ta&&this.toggleColumnSort(t,n),!0}update(){if(this.validate(),this.tableUpdateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.tableUpdateTracker.updateRowParentIds||this.tableUpdateTracker.updateGroupRows){const t=this.isHierarchyEnabled(),e=this.columns.some((t=>!t.columnInternals.groupingDisabled))
|
|
11599
|
+
this.canHaveCollapsibleRows=t||e}this.tableUpdateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.tableUpdateTracker.updateColumnWidths&&(this.rowGridColumns=this.layoutManager.getGridTemplateColumns(),this.visibleColumns=this.columns.filter((t=>!t.columnHidden))),this.tableUpdateTracker.requiresKeyboardFocusReset&&this.keyboardNavigationManager.resetFocusState()}get ariaMultiSelectable(){switch(this.selectionMode){case aR.multiple:return"true"
|
|
11585
11600
|
case aR.single:return"false"
|
|
11586
11601
|
default:return null}}getHeaderContainerElements(){return this.columnHeadersContainer.querySelectorAll(".header-container")}calculateTanStackData(t){this.dataHierarchyManager=new AF(t,this.idFieldName,this.parentIdFieldName)
|
|
11587
11602
|
const e=this.dataHierarchyManager.hierarchicalData
|
|
@@ -11626,7 +11641,7 @@ if("string"==typeof n)return e.clientRecord[n]},sortingFn:vF(t.columnInternals.s
|
|
|
11626
11641
|
const e={},n=this.tableValidator.getPresentRecordIds(t)
|
|
11627
11642
|
for(const t of n)if(e[t]=!0,this.selectionMode===aR.single)break
|
|
11628
11643
|
return e}}
|
|
11629
|
-
t([ft({attribute:"id-field-name"})],NF.prototype,"idFieldName",void 0),t([ft({attribute:"parent-id-field-name"})],NF.prototype,"parentIdFieldName",void 0),t([ft({attribute:"selection-mode"})],NF.prototype,"selectionMode",void 0),t([C],NF.prototype,"tableData",void 0),t([C],NF.prototype,"columns",void 0),t([C],NF.prototype,"childItems",void 0),t([C],NF.prototype,"rowElements",void 0),t([C],NF.prototype,"openActionMenuRecordId",void 0),t([C],NF.prototype,"canRenderRows",void 0),t([C],NF.prototype,"scrollX",void 0),t([C],NF.prototype,"rowGridColumns",void 0),t([C],NF.prototype,"selectionState",void 0),t([C],NF.prototype,"selectionCheckbox",void 0),t([C],NF.prototype,"collapseAllButton",void 0),t([C],NF.prototype,"showCollapseAll",void 0),t([C],NF.prototype,"firstSortedColumn",void 0),t([C],NF.prototype,"visibleColumns",void 0),t([C],NF.prototype,"tableScrollableMinWidth",void 0),t([C],NF.prototype,"windowShiftKeyDown",void 0)
|
|
11644
|
+
t([ft({attribute:"id-field-name"})],NF.prototype,"idFieldName",void 0),t([ft({attribute:"parent-id-field-name"})],NF.prototype,"parentIdFieldName",void 0),t([ft({attribute:"selection-mode"})],NF.prototype,"selectionMode",void 0),t([C],NF.prototype,"tableData",void 0),t([C],NF.prototype,"columns",void 0),t([C],NF.prototype,"childItems",void 0),t([C],NF.prototype,"rowElements",void 0),t([C],NF.prototype,"openActionMenuRecordId",void 0),t([C],NF.prototype,"canRenderRows",void 0),t([C],NF.prototype,"scrollX",void 0),t([C],NF.prototype,"rowGridColumns",void 0),t([C],NF.prototype,"selectionState",void 0),t([C],NF.prototype,"selectionCheckbox",void 0),t([C],NF.prototype,"collapseAllButton",void 0),t([C],NF.prototype,"showCollapseAll",void 0),t([C],NF.prototype,"canHaveCollapsibleRows",void 0),t([k],NF.prototype,"collapseButtonVisibility",null),t([C],NF.prototype,"firstSortedColumn",void 0),t([C],NF.prototype,"visibleColumns",void 0),t([C],NF.prototype,"tableScrollableMinWidth",void 0),t([C],NF.prototype,"windowShiftKeyDown",void 0)
|
|
11630
11645
|
const LF=NF.compose({baseName:"table",template:iF,styles:FR})
|
|
11631
11646
|
_i.getOrCreate().withPrefix("nimble").register(LF())
|
|
11632
11647
|
const BF=Mt`
|