@ni/spright-components 3.0.9 → 4.0.0
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.
|
@@ -16216,6 +16216,7 @@
|
|
|
16216
16216
|
spinnerSmallHeight: 'spinner-small-height',
|
|
16217
16217
|
spinnerMediumHeight: 'spinner-medium-height',
|
|
16218
16218
|
spinnerLargeHeight: 'spinner-large-height',
|
|
16219
|
+
tableFitRowsHeight: 'table-fit-rows-height',
|
|
16219
16220
|
smallDelay: 'small-delay',
|
|
16220
16221
|
mediumDelay: 'medium-delay',
|
|
16221
16222
|
largeDelay: 'large-delay',
|
|
@@ -16708,6 +16709,9 @@
|
|
|
16708
16709
|
const spinnerSmallHeight = DesignToken.create(styleNameFromTokenName(tokenNames.spinnerSmallHeight)).withDefault('16px');
|
|
16709
16710
|
DesignToken.create(styleNameFromTokenName(tokenNames.spinnerMediumHeight)).withDefault('32px');
|
|
16710
16711
|
DesignToken.create(styleNameFromTokenName(tokenNames.spinnerLargeHeight)).withDefault('64px');
|
|
16712
|
+
// The token gets a default value of the table's default height (480px)
|
|
16713
|
+
// but is given a calculated value in the table styles.
|
|
16714
|
+
const tableFitRowsHeight = DesignToken.create(styleNameFromTokenName(tokenNames.tableFitRowsHeight)).withDefault('480px');
|
|
16711
16715
|
// Drop Shadow Tokens
|
|
16712
16716
|
DesignToken.create(styleNameFromTokenName(tokenNames.elevation1BoxShadow)).withDefault((element) => `0px 1px 4px ${hexToRgbaCssColor(getColorForTheme(element, Black, Black, Black), 0.16)}`);
|
|
16713
16717
|
const elevation2BoxShadow = DesignToken.create(styleNameFromTokenName(tokenNames.elevation2BoxShadow)).withDefault((element) => `0px 2px 4px ${hexToRgbaCssColor(getColorForTheme(element, Black, Black, Black), 0.16)}`);
|
|
@@ -65615,6 +65619,15 @@ img.ProseMirror-separator {
|
|
|
65615
65619
|
|
|
65616
65620
|
:host {
|
|
65617
65621
|
height: 480px;
|
|
65622
|
+
${tableFitRowsHeight.cssCustomProperty}: calc(var(--ni-private-table-scroll-height) + ${controlHeight});
|
|
65623
|
+
${
|
|
65624
|
+
/**
|
|
65625
|
+
* Set a default maximum height for the table of 40.5 rows plus the header row so
|
|
65626
|
+
* that clients don't accidentally create a table that tries to render too many rows at once.
|
|
65627
|
+
* If needed, the max-height can be overridden by the client, but setting a default ensures
|
|
65628
|
+
* that the max-height is considered if a larger one is needed rather than being overlooked.
|
|
65629
|
+
*/ ''}
|
|
65630
|
+
max-height: calc(${controlHeight} + (40.5 * (2 * ${borderWidth} + ${controlHeight})));
|
|
65618
65631
|
--ni-private-column-divider-width: 2px;
|
|
65619
65632
|
--ni-private-column-divider-padding: 3px;
|
|
65620
65633
|
}
|
|
@@ -66941,11 +66954,11 @@ focus outline in that case.
|
|
|
66941
66954
|
aria-multiselectable="${x => x.ariaMultiSelectable}"
|
|
66942
66955
|
${children$1({ property: 'childItems', filter: elements() })}
|
|
66943
66956
|
>
|
|
66957
|
+
<style>:host{ --ni-private-table-scroll-height: ${x => x.virtualizer.scrollHeight}px; }</style>
|
|
66944
66958
|
<div class="table-container ${x => (x.windowShiftKeyDown ? 'disable-select' : '')}"
|
|
66945
66959
|
style="
|
|
66946
66960
|
--ni-private-table-scroll-x: -${x => x.scrollX}px;
|
|
66947
66961
|
--ni-private-table-header-container-margin-right: ${x => x.virtualizer.headerContainerMarginRight}px;
|
|
66948
|
-
--ni-private-table-scroll-height: ${x => x.virtualizer.scrollHeight}px;
|
|
66949
66962
|
--ni-private-table-row-container-top: ${x => x.virtualizer.rowContainerYOffset}px;
|
|
66950
66963
|
--ni-private-table-row-grid-columns: ${x => (x.rowGridColumns ? x.rowGridColumns : '')};
|
|
66951
66964
|
--ni-private-table-cursor-override: ${x => (x.layoutManager.isColumnBeingSized ? 'col-resize' : 'default')};
|