nntc-ui 0.0.92 → 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.
- package/{chunk-OJNXOQUW.js → chunk-SQXO2GJK.js} +11 -1
- package/icons/index.d.ts +3 -1
- package/icons/index.js +3 -1
- package/index.d.ts +2 -1
- package/index.js +9 -5
- package/package.json +1 -1
|
@@ -255,6 +255,15 @@ var VisibilityIcon = (props) => /* @__PURE__ */ jsx41(Icon, { ...props, children
|
|
|
255
255
|
}
|
|
256
256
|
) });
|
|
257
257
|
|
|
258
|
+
// src/icons/PointIcon.tsx
|
|
259
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
260
|
+
var PointIcon = (props) => /* @__PURE__ */ jsx42(Icon, { ...props, children: /* @__PURE__ */ jsx42(
|
|
261
|
+
"path",
|
|
262
|
+
{
|
|
263
|
+
d: "M12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V8Z"
|
|
264
|
+
}
|
|
265
|
+
) });
|
|
266
|
+
|
|
258
267
|
export {
|
|
259
268
|
__export,
|
|
260
269
|
CheckboxDeselectedIcon,
|
|
@@ -296,5 +305,6 @@ export {
|
|
|
296
305
|
BookmarkAddIcon,
|
|
297
306
|
ExportTableIcon,
|
|
298
307
|
DownloadIcon,
|
|
299
|
-
VisibilityIcon
|
|
308
|
+
VisibilityIcon,
|
|
309
|
+
PointIcon
|
|
300
310
|
};
|
package/icons/index.d.ts
CHANGED
|
@@ -86,4 +86,6 @@ declare const DownloadIcon: React__default.FC<IconProps>;
|
|
|
86
86
|
|
|
87
87
|
declare const VisibilityIcon: React__default.FC<IconProps>;
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
declare const PointIcon: React__default.FC<IconProps>;
|
|
90
|
+
|
|
91
|
+
export { AddIcon, AlertIcon, ArrowDropDownIcon, ArrowDropUpIcon, AttachIcon, BarChartIcon, BookmarkAddIcon, BookmarkIcon, CheckboxDeselectedIcon, CheckboxIcon, CheckboxSeveralIcon, ChevronLeftIcon, ChevronRightIcon, CircleFilledIcon, CloseIcon, DateRangeIcon, DeleteIcon, DoneIcon, DownloadIcon, EditIcon, ExportTableIcon, FileUploadIcon, FilterClearIcon, FilterIcon, FullScreenOffIcon, FullScreenOnIcon, InfoIcon, KeyboardArrowDownIcon, ListIcon, MoreVerticalIcon, PointIcon, RadioDeselectedIcon, RadioSelectedIcon, SearchIcon, SettingsIcon, SortDownIcon, SortUpIcon, TableChartIcon, UploadIcon, VisibilityIcon, WellIcon };
|
package/icons/index.js
CHANGED
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
KeyboardArrowDownIcon,
|
|
30
30
|
ListIcon,
|
|
31
31
|
MoreVerticalIcon,
|
|
32
|
+
PointIcon,
|
|
32
33
|
RadioDeselectedIcon,
|
|
33
34
|
RadioSelectedIcon,
|
|
34
35
|
SearchIcon,
|
|
@@ -39,7 +40,7 @@ import {
|
|
|
39
40
|
UploadIcon,
|
|
40
41
|
VisibilityIcon,
|
|
41
42
|
WellIcon
|
|
42
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-SQXO2GJK.js";
|
|
43
44
|
export {
|
|
44
45
|
AddIcon,
|
|
45
46
|
AlertIcon,
|
|
@@ -71,6 +72,7 @@ export {
|
|
|
71
72
|
KeyboardArrowDownIcon,
|
|
72
73
|
ListIcon,
|
|
73
74
|
MoreVerticalIcon,
|
|
75
|
+
PointIcon,
|
|
74
76
|
RadioDeselectedIcon,
|
|
75
77
|
RadioSelectedIcon,
|
|
76
78
|
SearchIcon,
|
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
|
-
|
|
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
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
SortDownIcon,
|
|
20
20
|
SortUpIcon,
|
|
21
21
|
__export
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SQXO2GJK.js";
|
|
23
23
|
|
|
24
24
|
// src/components/common/Button/Button.tsx
|
|
25
25
|
import classnames from "classnames";
|
|
@@ -3720,7 +3720,8 @@ function HeaderDropdown(props) {
|
|
|
3720
3720
|
headerName,
|
|
3721
3721
|
containerRef,
|
|
3722
3722
|
showUniqueValuesCount,
|
|
3723
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
4351
|
+
leftAdditionalContent: leftAdditionalHeaderContent,
|
|
4352
|
+
rightAdditionalContent: rightAdditionalHeaderContent,
|
|
4349
4353
|
children: (afterNode) => /* @__PURE__ */ jsxs21(
|
|
4350
4354
|
"div",
|
|
4351
4355
|
{
|