@ni/nimble-components 21.5.3 → 21.5.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.
- package/dist/all-components-bundle.js +8 -2
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +3 -3
- 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 +6 -0
- package/dist/esm/table/components/row/index.js.map +1 -1
- package/dist/esm/table/components/row/template.js +1 -1
- package/dist/esm/table/components/row/template.js.map +1 -1
- package/package.json +1 -1
|
@@ -10399,7 +10399,7 @@ const qR="nimble-table-cell",jR=Z`
|
|
|
10399
10399
|
`)}
|
|
10400
10400
|
|
|
10401
10401
|
<span ${Ne("cellContainer")}
|
|
10402
|
-
class="cell-container ${e=>e.
|
|
10402
|
+
class="cell-container ${e=>e.isNestedParent?"nested-parent":""}"
|
|
10403
10403
|
>
|
|
10404
10404
|
${Ue((e=>e.columns),Z`
|
|
10405
10405
|
${Fe((e=>!e.columnHidden),Z`
|
|
@@ -10429,7 +10429,7 @@ const qR="nimble-table-cell",jR=Z`
|
|
|
10429
10429
|
</span>
|
|
10430
10430
|
</template>
|
|
10431
10431
|
`
|
|
10432
|
-
class UR extends zt{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 ariaSelected(){return this.selectable?this.selected?"true":"false":null}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
|
|
10432
|
+
class UR extends zt{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 ariaSelected(){return this.selectable?this.selected?"true":"false":null}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
|
|
10433
10433
|
const t=e.target.checked
|
|
10434
10434
|
this.selected=t
|
|
10435
10435
|
const n={oldState:!t,newState:t}
|
|
@@ -10440,7 +10440,7 @@ this.$emit(e,i)}columnsChanged(){this.updateCellIndentLevels(),this.updateCellSt
|
|
|
10440
10440
|
return t.subscribe(this),t}))}updateCellStates(){this.cellStates=this.columns.map((e=>{const t=e.columnInternals.dataRecordFieldNames
|
|
10441
10441
|
let n
|
|
10442
10442
|
if(this.hasValidFieldNames(t)&&this.dataRecord){const i=t.map((e=>this.dataRecord[e]))
|
|
10443
|
-
n={cellRecord:Object.fromEntries(e.columnInternals.cellRecordFieldNames.map(((e,t)=>[e,i[t]]))),columnConfig:e.columnInternals.columnConfig}}return n}))}hasValidFieldNames(e){return e.every((e=>void 0!==e))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}e([se({attribute:"record-id"})],UR.prototype,"recordId",void 0),e([se({mode:"boolean"})],UR.prototype,"selectable",void 0),e([se({mode:"boolean"})],UR.prototype,"selected",void 0),e([se({attribute:"hide-selection",mode:"boolean"})],UR.prototype,"hideSelection",void 0),e([se({mode:"boolean"})],UR.prototype,"expanded",void 0),e([g],UR.prototype,"dataRecord",void 0),e([g],UR.prototype,"columns",void 0),e([g],UR.prototype,"currentActionMenuColumn",void 0),e([g],UR.prototype,"nestingLevel",void 0),e([se({attribute:"is-parent-row",mode:"boolean"})],UR.prototype,"isParentRow",void 0),e([se({attribute:"menu-open",mode:"boolean"})],UR.prototype,"menuOpen",void 0),e([se({attribute:"row-operation-grid-cell-hidden",mode:"boolean"})],UR.prototype,"rowOperationGridCellHidden",void 0),e([se({mode:"boolean"})],UR.prototype,"loading",void 0),e([g],UR.prototype,"cellIndentLevels",void 0),e([g],UR.prototype,"cellStates",void 0),e([g],UR.prototype,"selectionCheckbox",void 0),e([g],UR.prototype,"animationClass",void 0),e([v],UR.prototype,"isTopLevelParentRow",null),e([v],UR.prototype,"ariaSelected",null)
|
|
10443
|
+
n={cellRecord:Object.fromEntries(e.columnInternals.cellRecordFieldNames.map(((e,t)=>[e,i[t]]))),columnConfig:e.columnInternals.columnConfig}}return n}))}hasValidFieldNames(e){return e.every((e=>void 0!==e))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}e([se({attribute:"record-id"})],UR.prototype,"recordId",void 0),e([se({mode:"boolean"})],UR.prototype,"selectable",void 0),e([se({mode:"boolean"})],UR.prototype,"selected",void 0),e([se({attribute:"hide-selection",mode:"boolean"})],UR.prototype,"hideSelection",void 0),e([se({mode:"boolean"})],UR.prototype,"expanded",void 0),e([g],UR.prototype,"dataRecord",void 0),e([g],UR.prototype,"columns",void 0),e([g],UR.prototype,"currentActionMenuColumn",void 0),e([g],UR.prototype,"nestingLevel",void 0),e([se({attribute:"is-parent-row",mode:"boolean"})],UR.prototype,"isParentRow",void 0),e([se({attribute:"menu-open",mode:"boolean"})],UR.prototype,"menuOpen",void 0),e([se({attribute:"row-operation-grid-cell-hidden",mode:"boolean"})],UR.prototype,"rowOperationGridCellHidden",void 0),e([se({mode:"boolean"})],UR.prototype,"loading",void 0),e([g],UR.prototype,"cellIndentLevels",void 0),e([g],UR.prototype,"cellStates",void 0),e([g],UR.prototype,"selectionCheckbox",void 0),e([g],UR.prototype,"animationClass",void 0),e([v],UR.prototype,"isTopLevelParentRow",null),e([v],UR.prototype,"isNestedParent",null),e([v],UR.prototype,"ariaSelected",null)
|
|
10444
10444
|
const WR=UR.compose({baseName:"table-row",template:jR,styles:zR})
|
|
10445
10445
|
bi.getOrCreate().withPrefix("nimble").register(WR())
|
|
10446
10446
|
const ZR="nimble-table-row",GR=we`
|