@ni/nimble-components 32.2.4 → 32.2.5
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 +5 -0
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +3 -2
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/table/components/row/index.d.ts +1 -0
- package/dist/esm/table/components/row/index.js +4 -0
- package/dist/esm/table/components/row/index.js.map +1 -1
- package/dist/esm/table/models/keyboard-navigation-manager.js +1 -0
- package/dist/esm/table/models/keyboard-navigation-manager.js.map +1 -1
- package/package.json +1 -1
|
@@ -10966,7 +10966,7 @@ const xF="nimble-table-cell",CF=Q`
|
|
|
10966
10966
|
</span>
|
|
10967
10967
|
</template>
|
|
10968
10968
|
`
|
|
10969
|
-
class kF 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.allowHover=!1,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
|
|
10969
|
+
class kF 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.allowHover=!1,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}disconnectedCallback(){super.disconnectedCallback(),this.removeColumnObservers()}onSelectionCheckboxChange(t){if(this.ignoreSelectionChangeEvents)return
|
|
10970
10970
|
const e=t.target.checked
|
|
10971
10971
|
this.onSelectionChange(!e,e)}onSelectionChange(t,e){this.selected=e
|
|
10972
10972
|
const n={oldState:t,newState:e}
|
|
@@ -11527,7 +11527,8 @@ t&&this.isInTable(t)&&this.setDefaultFocus()}get hasActiveRowOrCellFocus(){retur
|
|
|
11527
11527
|
if(t===this.virtualizer&&"visibleItems"===e)n=!0
|
|
11528
11528
|
else if(t===this.table&&"rowElements"===e){for(const t of this.visibleRowNotifiers)t.unsubscribe(this)
|
|
11529
11529
|
this.visibleRowNotifiers=[]
|
|
11530
|
-
for(const t of this.table.rowElements){x.getNotifier(t)
|
|
11530
|
+
for(const t of this.table.rowElements){const e=x.getNotifier(t)
|
|
11531
|
+
e.subscribe(this,"resolvedRowIndex"),this.visibleRowNotifiers.push(e),t.resolvedRowIndex===this.rowIndex&&(n=!0)}}else"resolvedRowIndex"===e&&this.isResolvedRowType(t)&&t.resolvedRowIndex===this.rowIndex&&(n=!0)
|
|
11531
11532
|
if(n&&(this.focusType!==GR&&this.focusType!==ZR||this.setCellFocusState(this.columnIndex,this.rowIndex,!1),this.inNavigationMode&&this.hasRowOrCellFocusType())){if(this.rowIndex>this.table.tableData.length-1){if(!(this.table.tableData.length>0))return void(this.focusWithinTable?this.setDefaultFocus():this.focusType=VR)
|
|
11532
11533
|
this.rowIndex=0}this.focusWithinTable&&this.focusCurrentRow(!1)}}onRowFocusIn(t){if(this.isCurrentlyFocusingElement)return
|
|
11533
11534
|
const e=t.target
|