@ni/nimble-components 19.7.0 → 19.8.1

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.
@@ -1719,7 +1719,7 @@ const Qc=fe`
1719
1719
  }
1720
1720
 
1721
1721
  slot[name='start']::slotted(*) {
1722
- fill: currentcolor;
1722
+ ${oa.cssCustomProperty}: currentcolor;
1723
1723
  width: ${da};
1724
1724
  height: ${da};
1725
1725
  }
@@ -4132,7 +4132,7 @@ const db=ai.tagFor(lb),hb=fe`
4132
4132
  display: contents;
4133
4133
  }
4134
4134
  slot[name='start']::slotted(*) {
4135
- fill: currentcolor;
4135
+ ${oa.cssCustomProperty}: currentcolor;
4136
4136
  width: ${da};
4137
4137
  height: ${da};
4138
4138
  }
@@ -5544,14 +5544,15 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof jw))throw new Error(
5544
5544
  </${e}>
5545
5545
  `)
5546
5546
  class Gw extends Rt{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const e of this.delegatedEvents)this.removeEventListener(e,this.delegatedEventHandler)
5547
- if(this.delegatedEvents=[],this.delegatedEventHandler=()=>{},this.column){this.delegatedEvents=this.column.columnInternals.delegatedEvents,this.delegatedEventHandler=e=>{this.column?.dispatchEvent(new CustomEvent("delegated-event",{detail:{originalEvent:e}}))}
5548
- for(const e of this.delegatedEvents)this.addEventListener(e,this.delegatedEventHandler)}}}e([m],Gw.prototype,"cellRecord",void 0),e([m],Gw.prototype,"columnConfig",void 0),e([m],Gw.prototype,"column",void 0)
5547
+ if(this.delegatedEvents=[],this.delegatedEventHandler=()=>{},this.column){this.delegatedEvents=this.column.columnInternals.delegatedEvents,this.delegatedEventHandler=e=>{this.recordId&&this.column?.dispatchEvent(new CustomEvent("delegated-event",{detail:{originalEvent:e,recordId:this.recordId}}))}
5548
+ for(const e of this.delegatedEvents)this.addEventListener(e,this.delegatedEventHandler)}}}e([m],Gw.prototype,"cellRecord",void 0),e([m],Gw.prototype,"columnConfig",void 0),e([m],Gw.prototype,"column",void 0),e([m],Gw.prototype,"recordId",void 0)
5549
5549
  const Ww=e=>((e=>{let t
5550
5550
  try{t=document.createElement(e)}catch(e){}if(!(t instanceof Gw))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),G`
5551
5551
  <${e}
5552
5552
  :cellRecord="${e=>e.cellState?.cellRecord}"
5553
5553
  :columnConfig="${e=>e.cellState?.columnConfig}"
5554
5554
  :column="${e=>e.column}"
5555
+ :recordId="${e=>e.recordId}"
5555
5556
  class="cell-view"
5556
5557
  >
5557
5558
  </${e}>
@@ -5853,7 +5854,7 @@ const ix=ai.tagFor(tx),nx=fe`
5853
5854
  `)}
5854
5855
  </template>
5855
5856
  `
5856
- class ax extends Rt{constructor(){super(...arguments),this.hasActionMenu=!1,this.menuOpen=!1,this.nestingLevel=0}onActionMenuBeforeToggle(e){this.$emit("cell-action-menu-beforetoggle",e.detail)}onActionMenuToggle(e){this.menuOpen=e.detail.newState,this.$emit("cell-action-menu-toggle",e.detail)}}e([m],ax.prototype,"cellState",void 0),e([m],ax.prototype,"column",void 0),e([ne({attribute:"has-action-menu",mode:"boolean"})],ax.prototype,"hasActionMenu",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],ax.prototype,"menuOpen",void 0),e([ne({attribute:"action-menu-label"})],ax.prototype,"actionMenuLabel",void 0),e([m],ax.prototype,"cellViewTemplate",void 0),e([m],ax.prototype,"nestingLevel",void 0)
5857
+ class ax extends Rt{constructor(){super(...arguments),this.hasActionMenu=!1,this.menuOpen=!1,this.nestingLevel=0}onActionMenuBeforeToggle(e){this.$emit("cell-action-menu-beforetoggle",e.detail)}onActionMenuToggle(e){this.menuOpen=e.detail.newState,this.$emit("cell-action-menu-toggle",e.detail)}}e([m],ax.prototype,"cellState",void 0),e([m],ax.prototype,"column",void 0),e([m],ax.prototype,"recordId",void 0),e([ne({attribute:"has-action-menu",mode:"boolean"})],ax.prototype,"hasActionMenu",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],ax.prototype,"menuOpen",void 0),e([ne({attribute:"action-menu-label"})],ax.prototype,"actionMenuLabel",void 0),e([m],ax.prototype,"cellViewTemplate",void 0),e([m],ax.prototype,"nestingLevel",void 0)
5857
5858
  const lx=ax.compose({baseName:"table-cell",template:rx,styles:sx})
5858
5859
  ai.getOrCreate().withPrefix("nimble").register(lx())
5859
5860
  const cx=ai.tagFor(ax),dx=G`
@@ -5880,6 +5881,7 @@ const cx=ai.tagFor(ax),dx=G`
5880
5881
  :cellState="${e=>e.cellState}"
5881
5882
  :cellViewTemplate="${e=>e.column.columnInternals.cellViewTemplate}"
5882
5883
  :column="${e=>e.column}"
5884
+ :recordId="${(e,t)=>t.parent.recordId}"
5883
5885
  ?has-action-menu="${e=>!!e.column.actionMenuSlot}"
5884
5886
  action-menu-label="${e=>e.column.actionMenuLabel}"
5885
5887
  @cell-action-menu-beforetoggle="${(e,t)=>t.parent.onCellActionMenuBeforeToggle(t.event,e.column)}"
@@ -6901,6 +6903,7 @@ const Vy="underline",Hy="outline",Py="block",Ty="frameless",Dy=fe`
6901
6903
 
6902
6904
  slot[name='start']::slotted(*) {
6903
6905
  flex: none;
6906
+ ${oa.cssCustomProperty}: currentcolor;
6904
6907
  }
6905
6908
 
6906
6909
  .control {