@ni/spright-components 4.3.8 → 4.3.10

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.
@@ -66333,7 +66333,7 @@ img.ProseMirror-separator {
66333
66333
 
66334
66334
  :host {
66335
66335
  height: 480px;
66336
- ${tableFitRowsHeight.cssCustomProperty}: calc(var(--ni-private-table-scroll-height) + ${controlHeight});
66336
+ ${tableFitRowsHeight.cssCustomProperty}: calc(var(--ni-private-table-scroll-height) + var(--ni-private-table-horizontal-scrollbar-height) + ${controlHeight});
66337
66337
  ${
66338
66338
  /**
66339
66339
  * Set a default maximum height for the table of 40.5 rows plus the header row so
@@ -67686,7 +67686,7 @@ focus outline in that case.
67686
67686
  aria-multiselectable="${x => x.ariaMultiSelectable}"
67687
67687
  ${children$1({ property: 'childItems', filter: elements() })}
67688
67688
  >
67689
- <style>:host{ --ni-private-table-scroll-height: ${x => x.virtualizer.scrollHeight}px; }</style>
67689
+ <style>:host{ --ni-private-table-scroll-height: ${x => x.virtualizer.scrollHeight}px; --ni-private-table-horizontal-scrollbar-height: ${x => x.virtualizer.horizontalScrollbarHeight}px; }</style>
67690
67690
  <div class="table-container ${x => (x.windowShiftKeyDown ? 'disable-select' : '')}"
67691
67691
  style="
67692
67692
  --ni-private-table-scroll-x: -${x => x.scrollX}px;
@@ -68597,6 +68597,7 @@ focus outline in that case.
68597
68597
  constructor(table, tanStackTable) {
68598
68598
  this.visibleItems = [];
68599
68599
  this.scrollHeight = 0;
68600
+ this.horizontalScrollbarHeight = 0;
68600
68601
  this.isScrolling = false;
68601
68602
  this.headerContainerMarginRight = 0;
68602
68603
  this.rowContainerYOffset = 0;
@@ -68612,6 +68613,7 @@ focus outline in that case.
68612
68613
  // by the same margin so the column headers align with the corresponding rendered cells
68613
68614
  const viewportBoundingWidth = borderBoxSize.inlineSize;
68614
68615
  this.headerContainerMarginRight = viewportBoundingWidth - this.table.viewport.clientWidth;
68616
+ this.horizontalScrollbarHeight = borderBoxSize.blockSize - this.table.viewport.clientHeight;
68615
68617
  }
68616
68618
  });
68617
68619
  }
@@ -68704,6 +68706,9 @@ focus outline in that case.
68704
68706
  __decorate$1([
68705
68707
  observable
68706
68708
  ], Virtualizer.prototype, "scrollHeight", undefined);
68709
+ __decorate$1([
68710
+ observable
68711
+ ], Virtualizer.prototype, "horizontalScrollbarHeight", undefined);
68707
68712
  __decorate$1([
68708
68713
  observable
68709
68714
  ], Virtualizer.prototype, "isScrolling", undefined);