@ni/nimble-components 18.5.1 → 18.5.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 +28 -20
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +25 -21
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/table/components/row/template.js +19 -17
- package/dist/esm/table/components/row/template.js.map +1 -1
- package/dist/esm/table/template.js +5 -3
- package/dist/esm/table/template.js.map +1 -1
- package/dist/esm/table-column/base/index.d.ts +1 -0
- package/dist/esm/table-column/base/index.js +4 -0
- package/dist/esm/table-column/base/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -5091,7 +5091,7 @@ return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColum
|
|
|
5091
5091
|
return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}
|
|
5092
5092
|
for(let t=0;t<e._features.length;t++){const i=e._features[t]
|
|
5093
5093
|
Object.assign(r,null==i||null==i.createRow?void 0:i.createRow(r,e))}return r}
|
|
5094
|
-
class dv extends St{constructor(){super(...arguments),this.dataRecordFieldNames=[]}connectedCallback(){super.connectedCallback(),this.setAttribute("slot",Or("table-column-slot"))}}e([oe({attribute:"column-id"})],dv.prototype,"columnId",void 0),e([oe({attribute:"action-menu-slot"})],dv.prototype,"actionMenuSlot",void 0),e([oe({attribute:"action-menu-label"})],dv.prototype,"actionMenuLabel",void 0),e([f],dv.prototype,"dataRecordFieldNames",void 0),e([f],dv.prototype,"columnConfig",void 0)
|
|
5094
|
+
class dv extends St{constructor(){super(...arguments),this.columnHidden=!1,this.dataRecordFieldNames=[]}connectedCallback(){super.connectedCallback(),this.setAttribute("slot",Or("table-column-slot"))}}e([oe({attribute:"column-id"})],dv.prototype,"columnId",void 0),e([oe({attribute:"action-menu-slot"})],dv.prototype,"actionMenuSlot",void 0),e([oe({attribute:"action-menu-label"})],dv.prototype,"actionMenuLabel",void 0),e([oe({attribute:"column-hidden",mode:"boolean"})],dv.prototype,"columnHidden",void 0),e([f],dv.prototype,"dataRecordFieldNames",void 0),e([f],dv.prototype,"columnConfig",void 0)
|
|
5095
5095
|
class hv{constructor(){this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.duplicateColumnId=!1,this.missingColumnId=!1}getValidity(){return{duplicateRecordId:this.duplicateRecordId,missingRecordId:this.missingRecordId,invalidRecordId:this.invalidRecordId,duplicateColumnId:this.duplicateColumnId,missingColumnId:this.missingColumnId}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}validateRecordIds(e,t){if(this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,"string"!=typeof t)return!0
|
|
5096
5096
|
const i=new Set
|
|
5097
5097
|
for(const n of e){if(!Object.prototype.hasOwnProperty.call(n,t)){this.missingRecordId=!0
|
|
@@ -5272,24 +5272,26 @@ sn.getOrCreate().withPrefix("nimble").register(xv())
|
|
|
5272
5272
|
const $v=U`
|
|
5273
5273
|
<template role="row">
|
|
5274
5274
|
${Ve((e=>e.columnStates),U`
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5275
|
+
${Me((e=>!e.column.columnHidden),U`
|
|
5276
|
+
<${sn.tagFor(yv)}
|
|
5277
|
+
class="cell"
|
|
5278
|
+
:cellTemplate="${e=>e.column.cellTemplate}"
|
|
5279
|
+
:cellStyles="${e=>e.column.cellStyles}"
|
|
5280
|
+
:cellState="${e=>e.cellState}"
|
|
5281
|
+
?has-action-menu="${e=>!!e.column.actionMenuSlot}"
|
|
5282
|
+
action-menu-label="${e=>e.column.actionMenuLabel}"
|
|
5283
|
+
@cell-action-menu-beforetoggle="${(e,t)=>t.parent.onCellActionMenuBeforeToggle(t.event,e.column)}"
|
|
5284
|
+
@cell-action-menu-toggle="${(e,t)=>t.parent.onCellActionMenuToggle(t.event,e.column)}"
|
|
5285
|
+
>
|
|
5285
5286
|
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5287
|
+
${Me(((e,t)=>t.parent.currentActionMenuColumn===e.column&&e.column.actionMenuSlot),U`
|
|
5288
|
+
<slot
|
|
5289
|
+
name="${e=>`row-action-menu-${e.column.actionMenuSlot}`}"
|
|
5290
|
+
slot="cellActionMenu"
|
|
5291
|
+
></slot>
|
|
5292
|
+
`)}
|
|
5293
|
+
</${sn.tagFor(yv)}>
|
|
5294
|
+
`)}
|
|
5293
5295
|
`)}
|
|
5294
5296
|
</template>
|
|
5295
5297
|
`
|
|
@@ -5307,9 +5309,11 @@ const _v=U`
|
|
|
5307
5309
|
<div role="rowgroup" class="header-container">
|
|
5308
5310
|
<div class="header-row" role="row">
|
|
5309
5311
|
${Ve((e=>e.columns),U`
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5312
|
+
${Me((e=>!e.columnHidden),U`
|
|
5313
|
+
<${sn.tagFor(vv)} class="header">
|
|
5314
|
+
<slot name="${e=>e.slot}"></slot>
|
|
5315
|
+
</${sn.tagFor(vv)}>
|
|
5316
|
+
`)}
|
|
5313
5317
|
`)}
|
|
5314
5318
|
<div class="header-scrollbar-spacer" style="width: ${e=>e.virtualizer.headerContainerMarginRight}px;"></div>
|
|
5315
5319
|
</div>
|