nntc-ui 0.0.93 → 0.0.94

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.
Files changed (3) hide show
  1. package/index.d.ts +2 -1
  2. package/index.js +8 -4
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -381,7 +381,8 @@ interface Props$8 {
381
381
  globalSorts?: SortBy[];
382
382
  onFiltersChange?: (filters: FilterBy[]) => void;
383
383
  onSortsChange?: (sorts: SortBy[]) => void;
384
- additionalHeaderContent?: (headerName: string) => ReactNode;
384
+ leftAdditionalHeaderContent?: (headerName: string) => ReactNode;
385
+ rightAdditionalHeaderContent?: (headerName: string) => ReactNode;
385
386
  showRowsNumbers?: boolean;
386
387
  }
387
388
  declare const VirtualTable: React.ForwardRefExoticComponent<Props$8 & {
package/index.js CHANGED
@@ -3720,7 +3720,8 @@ function HeaderDropdown(props) {
3720
3720
  headerName,
3721
3721
  containerRef,
3722
3722
  showUniqueValuesCount,
3723
- additionalContent,
3723
+ leftAdditionalContent,
3724
+ rightAdditionalContent,
3724
3725
  children: children2,
3725
3726
  rows
3726
3727
  } = props;
@@ -3849,8 +3850,9 @@ function HeaderDropdown(props) {
3849
3850
  const sortDown = sortBy.some((sb) => sb.columnName === headerResultName && sb.direction === "asc");
3850
3851
  const { t } = useTranslation();
3851
3852
  return /* @__PURE__ */ jsxs20("div", { className: classnames22(root19), children: [
3852
- additionalContent?.(headerResultName),
3853
+ leftAdditionalContent?.(headerResultName),
3853
3854
  children2?.(showUniqueValuesCount && /* @__PURE__ */ jsx35("div", { children: `(${uniqueRows.length})` })),
3855
+ rightAdditionalContent?.(headerResultName),
3854
3856
  (sortable || filtrationByValue || filtrationByDate || filtrationByNumber) && /* @__PURE__ */ jsx35(
3855
3857
  Popover,
3856
3858
  {
@@ -4040,7 +4042,8 @@ var VirtualTable = forwardRef10((props, ref) => {
4040
4042
  globalSorts,
4041
4043
  onFiltersChange,
4042
4044
  onSortsChange,
4043
- additionalHeaderContent,
4045
+ leftAdditionalHeaderContent,
4046
+ rightAdditionalHeaderContent,
4044
4047
  showRowsNumbers
4045
4048
  } = props;
4046
4049
  const fixedWithNumbersCount = fixedColumnsCount + (showRowsNumbers ? 1 : 0);
@@ -4345,7 +4348,8 @@ var VirtualTable = forwardRef10((props, ref) => {
4345
4348
  headerName: header2.column.columnDef.id ?? header2.id,
4346
4349
  containerRef: useTableContainerAsRootForPopup ? tableContainerRef : void 0,
4347
4350
  showUniqueValuesCount,
4348
- additionalContent: additionalHeaderContent,
4351
+ leftAdditionalContent: leftAdditionalHeaderContent,
4352
+ rightAdditionalContent: rightAdditionalHeaderContent,
4349
4353
  children: (afterNode) => /* @__PURE__ */ jsxs21(
4350
4354
  "div",
4351
4355
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nntc-ui",
3
- "version": "0.0.93",
3
+ "version": "0.0.94",
4
4
  "author": "NNTC",
5
5
  "description": "React UI-kit for NNTC",
6
6
  "type": "module",