@bwp-web/components 1.9.7 → 1.10.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.
- package/README.md +155 -38
- package/dist/BiampCheckboxListPopover/BiampCheckboxListPopover.d.ts +33 -0
- package/dist/BiampCheckboxListPopover/BiampCheckboxListPopover.d.ts.map +1 -0
- package/dist/BiampCheckboxListPopover/index.d.ts +2 -0
- package/dist/BiampCheckboxListPopover/index.d.ts.map +1 -0
- package/dist/BiampListPopover/BiampListPopover.d.ts +20 -0
- package/dist/BiampListPopover/BiampListPopover.d.ts.map +1 -0
- package/dist/BiampListPopover/index.d.ts +2 -0
- package/dist/BiampListPopover/index.d.ts.map +1 -0
- package/dist/BiampNotificationPopover/BiampNotificationPopover.d.ts +20 -0
- package/dist/BiampNotificationPopover/BiampNotificationPopover.d.ts.map +1 -0
- package/dist/BiampNotificationPopover/index.d.ts +2 -0
- package/dist/BiampNotificationPopover/index.d.ts.map +1 -0
- package/dist/BiampTable/BiampTableColumnVisibility.d.ts.map +1 -1
- package/dist/index.cjs +473 -308
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +435 -275
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -154,8 +154,8 @@ var require_randomColor = __commonJS({
|
|
|
154
154
|
return "hsl(" + hsl[0] + ", " + hsl[1] + "%, " + hsl[2] + "%)";
|
|
155
155
|
case "hsla":
|
|
156
156
|
var hslColor = HSVtoHSL(hsv);
|
|
157
|
-
var
|
|
158
|
-
return "hsla(" + hslColor[0] + ", " + hslColor[1] + "%, " + hslColor[2] + "%, " +
|
|
157
|
+
var alpha6 = options.alpha || Math.random();
|
|
158
|
+
return "hsla(" + hslColor[0] + ", " + hslColor[1] + "%, " + hslColor[2] + "%, " + alpha6 + ")";
|
|
159
159
|
case "rgbArray":
|
|
160
160
|
return HSVtoRGB(hsv);
|
|
161
161
|
case "rgb":
|
|
@@ -163,8 +163,8 @@ var require_randomColor = __commonJS({
|
|
|
163
163
|
return "rgb(" + rgb.join(", ") + ")";
|
|
164
164
|
case "rgba":
|
|
165
165
|
var rgbColor = HSVtoRGB(hsv);
|
|
166
|
-
var
|
|
167
|
-
return "rgba(" + rgbColor.join(", ") + ", " +
|
|
166
|
+
var alpha6 = options.alpha || Math.random();
|
|
167
|
+
return "rgba(" + rgbColor.join(", ") + ", " + alpha6 + ")";
|
|
168
168
|
default:
|
|
169
169
|
return HSVtoHex(hsv);
|
|
170
170
|
}
|
|
@@ -1422,7 +1422,7 @@ function BiampHeaderButton({
|
|
|
1422
1422
|
}
|
|
1423
1423
|
);
|
|
1424
1424
|
}
|
|
1425
|
-
var
|
|
1425
|
+
var APP_POPOVER_MAX_WIDTH = 350;
|
|
1426
1426
|
function BiampAppPopover({
|
|
1427
1427
|
children,
|
|
1428
1428
|
open,
|
|
@@ -1434,7 +1434,7 @@ function BiampAppPopover({
|
|
|
1434
1434
|
{
|
|
1435
1435
|
open,
|
|
1436
1436
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
1437
|
-
transformOrigin: { vertical: -
|
|
1437
|
+
transformOrigin: { vertical: -4, horizontal: APP_POPOVER_MAX_WIDTH },
|
|
1438
1438
|
sx: { ...sx },
|
|
1439
1439
|
slotProps: {
|
|
1440
1440
|
paper: {
|
|
@@ -1445,7 +1445,7 @@ function BiampAppPopover({
|
|
|
1445
1445
|
outlineStyle: "solid",
|
|
1446
1446
|
outlineColor: ({ palette }) => palette.divider,
|
|
1447
1447
|
boxShadow: ({ palette }) => `0px 4px 50px 0px ${alpha(palette.grey[900], 0.1)}`,
|
|
1448
|
-
maxWidth:
|
|
1448
|
+
maxWidth: APP_POPOVER_MAX_WIDTH,
|
|
1449
1449
|
width: "100%",
|
|
1450
1450
|
p: 2,
|
|
1451
1451
|
display: "flex",
|
|
@@ -1726,10 +1726,228 @@ function BiampHeaderProfile({
|
|
|
1726
1726
|
);
|
|
1727
1727
|
}
|
|
1728
1728
|
|
|
1729
|
+
// src/BiampNotificationPopover/BiampNotificationPopover.tsx
|
|
1730
|
+
import {
|
|
1731
|
+
alpha as alpha2,
|
|
1732
|
+
Box as Box5,
|
|
1733
|
+
Popover as Popover2,
|
|
1734
|
+
Stack as Stack5
|
|
1735
|
+
} from "@mui/material";
|
|
1736
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
1737
|
+
var NOTIFICATION_POPOVER_MAX_WIDTH = 420;
|
|
1738
|
+
function BiampNotificationPopover({
|
|
1739
|
+
children,
|
|
1740
|
+
open,
|
|
1741
|
+
sx,
|
|
1742
|
+
...props
|
|
1743
|
+
}) {
|
|
1744
|
+
return /* @__PURE__ */ jsx6(
|
|
1745
|
+
Popover2,
|
|
1746
|
+
{
|
|
1747
|
+
open,
|
|
1748
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
1749
|
+
transformOrigin: {
|
|
1750
|
+
vertical: -4,
|
|
1751
|
+
horizontal: NOTIFICATION_POPOVER_MAX_WIDTH
|
|
1752
|
+
},
|
|
1753
|
+
sx: { ...sx },
|
|
1754
|
+
slotProps: {
|
|
1755
|
+
paper: {
|
|
1756
|
+
sx: {
|
|
1757
|
+
borderRadius: "12px",
|
|
1758
|
+
backgroundImage: "none",
|
|
1759
|
+
outlineWidth: "0.6px",
|
|
1760
|
+
outlineStyle: "solid",
|
|
1761
|
+
outlineColor: ({ palette }) => palette.divider,
|
|
1762
|
+
boxShadow: ({ palette }) => `0px 4px 50px 0px ${alpha2(palette.grey[900], 0.1)}`,
|
|
1763
|
+
maxWidth: NOTIFICATION_POPOVER_MAX_WIDTH,
|
|
1764
|
+
maxHeight: "650px",
|
|
1765
|
+
width: "100%",
|
|
1766
|
+
display: "flex",
|
|
1767
|
+
flexDirection: "column",
|
|
1768
|
+
overflow: "hidden"
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
},
|
|
1772
|
+
...props,
|
|
1773
|
+
children
|
|
1774
|
+
}
|
|
1775
|
+
);
|
|
1776
|
+
}
|
|
1777
|
+
function BiampNotificationPopoverHeader({
|
|
1778
|
+
sx,
|
|
1779
|
+
...props
|
|
1780
|
+
}) {
|
|
1781
|
+
return /* @__PURE__ */ jsx6(
|
|
1782
|
+
Stack5,
|
|
1783
|
+
{
|
|
1784
|
+
direction: "row",
|
|
1785
|
+
alignItems: "center",
|
|
1786
|
+
justifyContent: "space-between",
|
|
1787
|
+
sx: {
|
|
1788
|
+
flexShrink: 0,
|
|
1789
|
+
gap: 2,
|
|
1790
|
+
px: 2,
|
|
1791
|
+
pt: 2,
|
|
1792
|
+
...sx
|
|
1793
|
+
},
|
|
1794
|
+
...props
|
|
1795
|
+
}
|
|
1796
|
+
);
|
|
1797
|
+
}
|
|
1798
|
+
function BiampNotificationPopoverBody({
|
|
1799
|
+
sx,
|
|
1800
|
+
...props
|
|
1801
|
+
}) {
|
|
1802
|
+
return /* @__PURE__ */ jsx6(
|
|
1803
|
+
Box5,
|
|
1804
|
+
{
|
|
1805
|
+
sx: {
|
|
1806
|
+
flex: 1,
|
|
1807
|
+
minHeight: 0,
|
|
1808
|
+
overflowY: "auto",
|
|
1809
|
+
overscrollBehavior: "none",
|
|
1810
|
+
px: 2,
|
|
1811
|
+
pb: 2,
|
|
1812
|
+
...sx
|
|
1813
|
+
},
|
|
1814
|
+
...props
|
|
1815
|
+
}
|
|
1816
|
+
);
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
// src/BiampListPopover/BiampListPopover.tsx
|
|
1820
|
+
import {
|
|
1821
|
+
alpha as alpha3,
|
|
1822
|
+
Box as Box6,
|
|
1823
|
+
List,
|
|
1824
|
+
ListItem,
|
|
1825
|
+
Popover as Popover3
|
|
1826
|
+
} from "@mui/material";
|
|
1827
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
1828
|
+
function BiampListPopover({
|
|
1829
|
+
children,
|
|
1830
|
+
slotProps,
|
|
1831
|
+
...props
|
|
1832
|
+
}) {
|
|
1833
|
+
return /* @__PURE__ */ jsx7(
|
|
1834
|
+
Popover3,
|
|
1835
|
+
{
|
|
1836
|
+
slotProps: {
|
|
1837
|
+
...slotProps,
|
|
1838
|
+
paper: {
|
|
1839
|
+
sx: ({ palette }) => ({
|
|
1840
|
+
borderRadius: "6px",
|
|
1841
|
+
backgroundImage: "none",
|
|
1842
|
+
border: `0.6px solid ${palette.dividers.secondary}`,
|
|
1843
|
+
boxShadow: `0px 1px 1px 0px ${alpha3(palette.common.black, 0.05)}`,
|
|
1844
|
+
minWidth: "150px"
|
|
1845
|
+
}),
|
|
1846
|
+
...slotProps?.paper ?? {}
|
|
1847
|
+
}
|
|
1848
|
+
},
|
|
1849
|
+
...props,
|
|
1850
|
+
children: /* @__PURE__ */ jsx7(List, { dense: true, disablePadding: true, children })
|
|
1851
|
+
}
|
|
1852
|
+
);
|
|
1853
|
+
}
|
|
1854
|
+
var listItemSx = {
|
|
1855
|
+
py: 0,
|
|
1856
|
+
pr: 1.5,
|
|
1857
|
+
pl: 0,
|
|
1858
|
+
alignItems: "center",
|
|
1859
|
+
cursor: "pointer",
|
|
1860
|
+
"&:hover": {
|
|
1861
|
+
backgroundColor: ({ palette }) => palette.mode === "dark" ? palette.grey[800] : palette.grey[100]
|
|
1862
|
+
}
|
|
1863
|
+
};
|
|
1864
|
+
function BiampListPopoverItem({
|
|
1865
|
+
sx,
|
|
1866
|
+
...props
|
|
1867
|
+
}) {
|
|
1868
|
+
return /* @__PURE__ */ jsx7(
|
|
1869
|
+
ListItem,
|
|
1870
|
+
{
|
|
1871
|
+
dense: true,
|
|
1872
|
+
sx: [listItemSx, ...Array.isArray(sx) ? sx : [sx]],
|
|
1873
|
+
...props
|
|
1874
|
+
}
|
|
1875
|
+
);
|
|
1876
|
+
}
|
|
1877
|
+
function BiampListPopoverScrollArea({
|
|
1878
|
+
maxHeight = 340,
|
|
1879
|
+
sx,
|
|
1880
|
+
...props
|
|
1881
|
+
}) {
|
|
1882
|
+
return /* @__PURE__ */ jsx7(
|
|
1883
|
+
Box6,
|
|
1884
|
+
{
|
|
1885
|
+
sx: { maxHeight, overflow: "auto", overscrollBehavior: "none", ...sx },
|
|
1886
|
+
...props
|
|
1887
|
+
}
|
|
1888
|
+
);
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
// src/BiampCheckboxListPopover/BiampCheckboxListPopover.tsx
|
|
1892
|
+
import { Checkbox, Divider as Divider2, Typography as Typography4 } from "@mui/material";
|
|
1893
|
+
import { Fragment as Fragment2, jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1894
|
+
function resolveAria(label, ariaLabel) {
|
|
1895
|
+
if (ariaLabel) return ariaLabel;
|
|
1896
|
+
return typeof label === "string" ? label : void 0;
|
|
1897
|
+
}
|
|
1898
|
+
function BiampCheckboxListPopover({
|
|
1899
|
+
items,
|
|
1900
|
+
onToggleItem,
|
|
1901
|
+
showSelectAll = true,
|
|
1902
|
+
selectAllLabel = "Show all",
|
|
1903
|
+
onToggleAll,
|
|
1904
|
+
maxHeight,
|
|
1905
|
+
...popoverProps
|
|
1906
|
+
}) {
|
|
1907
|
+
const allChecked = items.length > 0 && items.every((item) => item.checked);
|
|
1908
|
+
return /* @__PURE__ */ jsxs6(BiampListPopover, { ...popoverProps, children: [
|
|
1909
|
+
showSelectAll && /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
1910
|
+
/* @__PURE__ */ jsxs6(BiampListPopoverItem, { onClick: () => onToggleAll?.(!allChecked), children: [
|
|
1911
|
+
/* @__PURE__ */ jsx8(
|
|
1912
|
+
Checkbox,
|
|
1913
|
+
{
|
|
1914
|
+
checked: allChecked,
|
|
1915
|
+
slotProps: { input: { "aria-label": selectAllLabel } }
|
|
1916
|
+
}
|
|
1917
|
+
),
|
|
1918
|
+
/* @__PURE__ */ jsx8(Typography4, { variant: "caption", fontWeight: 600, children: selectAllLabel })
|
|
1919
|
+
] }),
|
|
1920
|
+
/* @__PURE__ */ jsx8(Divider2, {})
|
|
1921
|
+
] }),
|
|
1922
|
+
/* @__PURE__ */ jsx8(BiampListPopoverScrollArea, { maxHeight, children: items.map((item) => /* @__PURE__ */ jsxs6(
|
|
1923
|
+
BiampListPopoverItem,
|
|
1924
|
+
{
|
|
1925
|
+
onClick: () => onToggleItem(item.id),
|
|
1926
|
+
children: [
|
|
1927
|
+
/* @__PURE__ */ jsx8(
|
|
1928
|
+
Checkbox,
|
|
1929
|
+
{
|
|
1930
|
+
checked: item.checked,
|
|
1931
|
+
sx: { py: 1 },
|
|
1932
|
+
slotProps: {
|
|
1933
|
+
input: {
|
|
1934
|
+
"aria-label": resolveAria(item.label, item.ariaLabel)
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
),
|
|
1939
|
+
/* @__PURE__ */ jsx8(Typography4, { variant: "caption", children: item.label })
|
|
1940
|
+
]
|
|
1941
|
+
},
|
|
1942
|
+
item.id
|
|
1943
|
+
)) })
|
|
1944
|
+
] });
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1729
1947
|
// src/BiampTable/BiampTable.tsx
|
|
1730
1948
|
import {
|
|
1731
|
-
Box as
|
|
1732
|
-
Checkbox as
|
|
1949
|
+
Box as Box10,
|
|
1950
|
+
Checkbox as Checkbox3,
|
|
1733
1951
|
Table as MuiTable,
|
|
1734
1952
|
TableBody,
|
|
1735
1953
|
TableCell as TableCell2,
|
|
@@ -1751,9 +1969,9 @@ import { useEffect as useEffect2, useRef as useRef3 } from "react";
|
|
|
1751
1969
|
import { NoResultsIcon } from "@bwp-web/assets";
|
|
1752
1970
|
|
|
1753
1971
|
// src/BiampTable/BiampTableStatusMessage.tsx
|
|
1754
|
-
import { Stack as
|
|
1972
|
+
import { Stack as Stack6, Typography as Typography5 } from "@mui/material";
|
|
1755
1973
|
import { cloneElement } from "react";
|
|
1756
|
-
import { jsx as
|
|
1974
|
+
import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1757
1975
|
function BiampTableStatusMessage({
|
|
1758
1976
|
icon,
|
|
1759
1977
|
title,
|
|
@@ -1761,25 +1979,25 @@ function BiampTableStatusMessage({
|
|
|
1761
1979
|
children,
|
|
1762
1980
|
...stackProps
|
|
1763
1981
|
}) {
|
|
1764
|
-
return /* @__PURE__ */
|
|
1982
|
+
return /* @__PURE__ */ jsxs7(Stack6, { alignItems: "center", gap: 1.5, ...stackProps, children: [
|
|
1765
1983
|
cloneElement(icon, {
|
|
1766
1984
|
"aria-hidden": true,
|
|
1767
1985
|
sx: { width: 56, height: 56, ...icon.props.sx }
|
|
1768
1986
|
}),
|
|
1769
|
-
/* @__PURE__ */
|
|
1770
|
-
description && /* @__PURE__ */
|
|
1987
|
+
/* @__PURE__ */ jsx9(Typography5, { variant: "h2", children: title }),
|
|
1988
|
+
description && /* @__PURE__ */ jsx9(Typography5, { variant: "body1", children: description }),
|
|
1771
1989
|
children
|
|
1772
1990
|
] });
|
|
1773
1991
|
}
|
|
1774
1992
|
|
|
1775
1993
|
// src/BiampTable/BiampTableEmptyState.tsx
|
|
1776
|
-
import { jsx as
|
|
1994
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
1777
1995
|
function BiampTableEmptyState({
|
|
1778
|
-
icon = /* @__PURE__ */
|
|
1996
|
+
icon = /* @__PURE__ */ jsx10(NoResultsIcon, {}),
|
|
1779
1997
|
title = "Nothing to show",
|
|
1780
1998
|
...rest
|
|
1781
1999
|
}) {
|
|
1782
|
-
return /* @__PURE__ */
|
|
2000
|
+
return /* @__PURE__ */ jsx10(
|
|
1783
2001
|
BiampTableStatusMessage,
|
|
1784
2002
|
{
|
|
1785
2003
|
role: "status",
|
|
@@ -1792,19 +2010,19 @@ function BiampTableEmptyState({
|
|
|
1792
2010
|
|
|
1793
2011
|
// src/BiampTable/BiampTableErrorState.tsx
|
|
1794
2012
|
import { ServiceNotReachableIcon } from "@bwp-web/assets";
|
|
1795
|
-
import { jsx as
|
|
2013
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
1796
2014
|
function BiampTableErrorState({
|
|
1797
|
-
icon = /* @__PURE__ */
|
|
2015
|
+
icon = /* @__PURE__ */ jsx11(ServiceNotReachableIcon, {}),
|
|
1798
2016
|
title = "Failed to load",
|
|
1799
2017
|
...rest
|
|
1800
2018
|
}) {
|
|
1801
|
-
return /* @__PURE__ */
|
|
2019
|
+
return /* @__PURE__ */ jsx11(BiampTableStatusMessage, { role: "alert", icon, title, ...rest });
|
|
1802
2020
|
}
|
|
1803
2021
|
|
|
1804
2022
|
// src/BiampTable/BiampTableRow.tsx
|
|
1805
2023
|
import {
|
|
1806
|
-
Box as
|
|
1807
|
-
Checkbox,
|
|
2024
|
+
Box as Box9,
|
|
2025
|
+
Checkbox as Checkbox2,
|
|
1808
2026
|
IconButton as IconButton2,
|
|
1809
2027
|
TableCell,
|
|
1810
2028
|
TableRow
|
|
@@ -1814,9 +2032,9 @@ import { flexRender } from "@tanstack/react-table";
|
|
|
1814
2032
|
import React4 from "react";
|
|
1815
2033
|
|
|
1816
2034
|
// src/BiampTable/BiampTableTruncatedCell.tsx
|
|
1817
|
-
import { Box as
|
|
2035
|
+
import { Box as Box7, Tooltip as Tooltip2 } from "@mui/material";
|
|
1818
2036
|
import { useCallback, useRef as useRef2, useState as useState5 } from "react";
|
|
1819
|
-
import { jsx as
|
|
2037
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1820
2038
|
function BiampTableTruncatedCell({
|
|
1821
2039
|
children
|
|
1822
2040
|
}) {
|
|
@@ -1831,7 +2049,7 @@ function BiampTableTruncatedCell({
|
|
|
1831
2049
|
const handleMouseLeave = useCallback(() => {
|
|
1832
2050
|
setOpen(false);
|
|
1833
2051
|
}, []);
|
|
1834
|
-
return /* @__PURE__ */
|
|
2052
|
+
return /* @__PURE__ */ jsx12(
|
|
1835
2053
|
Tooltip2,
|
|
1836
2054
|
{
|
|
1837
2055
|
title: children,
|
|
@@ -1839,8 +2057,8 @@ function BiampTableTruncatedCell({
|
|
|
1839
2057
|
arrow: true,
|
|
1840
2058
|
placement: "top",
|
|
1841
2059
|
disableInteractive: true,
|
|
1842
|
-
children: /* @__PURE__ */
|
|
1843
|
-
|
|
2060
|
+
children: /* @__PURE__ */ jsx12(
|
|
2061
|
+
Box7,
|
|
1844
2062
|
{
|
|
1845
2063
|
"data-truncate": true,
|
|
1846
2064
|
ref: textRef,
|
|
@@ -1897,8 +2115,8 @@ function cellSx(sticky, minWidth, zIndex) {
|
|
|
1897
2115
|
}
|
|
1898
2116
|
|
|
1899
2117
|
// src/BiampTable/BiampTableExpandGuidelines.tsx
|
|
1900
|
-
import { Box as
|
|
1901
|
-
import { Fragment as
|
|
2118
|
+
import { Box as Box8 } from "@mui/material";
|
|
2119
|
+
import { Fragment as Fragment3, jsx as jsx13 } from "react/jsx-runtime";
|
|
1902
2120
|
var guidelineIndent = 28;
|
|
1903
2121
|
var guidelineCellPaddingLeft = 12;
|
|
1904
2122
|
var guidelineLineOffsetFromParentText = 4;
|
|
@@ -1932,8 +2150,8 @@ function ExpandGuidelines({ row }) {
|
|
|
1932
2150
|
const ancestor = getAncestorAtDepth(row, k);
|
|
1933
2151
|
if (!ancestor || isLastChildOfParent(ancestor)) continue;
|
|
1934
2152
|
lines.push(
|
|
1935
|
-
/* @__PURE__ */
|
|
1936
|
-
|
|
2153
|
+
/* @__PURE__ */ jsx13(
|
|
2154
|
+
Box8,
|
|
1937
2155
|
{
|
|
1938
2156
|
"aria-hidden": true,
|
|
1939
2157
|
sx: {
|
|
@@ -1955,8 +2173,8 @@ function ExpandGuidelines({ row }) {
|
|
|
1955
2173
|
const rowIsFirst = isFirstChildOfParent(row);
|
|
1956
2174
|
const elbowTopOffset = rowIsFirst ? -guidelineFirstChildTopExtension : 0;
|
|
1957
2175
|
lines.push(
|
|
1958
|
-
/* @__PURE__ */
|
|
1959
|
-
|
|
2176
|
+
/* @__PURE__ */ jsx13(
|
|
2177
|
+
Box8,
|
|
1960
2178
|
{
|
|
1961
2179
|
"aria-hidden": true,
|
|
1962
2180
|
sx: {
|
|
@@ -1974,8 +2192,8 @@ function ExpandGuidelines({ row }) {
|
|
|
1974
2192
|
);
|
|
1975
2193
|
if (!rowIsLast) {
|
|
1976
2194
|
lines.push(
|
|
1977
|
-
/* @__PURE__ */
|
|
1978
|
-
|
|
2195
|
+
/* @__PURE__ */ jsx13(
|
|
2196
|
+
Box8,
|
|
1979
2197
|
{
|
|
1980
2198
|
"aria-hidden": true,
|
|
1981
2199
|
sx: {
|
|
@@ -1993,8 +2211,8 @@ function ExpandGuidelines({ row }) {
|
|
|
1993
2211
|
);
|
|
1994
2212
|
}
|
|
1995
2213
|
lines.push(
|
|
1996
|
-
/* @__PURE__ */
|
|
1997
|
-
|
|
2214
|
+
/* @__PURE__ */ jsx13(
|
|
2215
|
+
Box8,
|
|
1998
2216
|
{
|
|
1999
2217
|
"aria-hidden": true,
|
|
2000
2218
|
sx: {
|
|
@@ -2010,11 +2228,11 @@ function ExpandGuidelines({ row }) {
|
|
|
2010
2228
|
"h-elbow"
|
|
2011
2229
|
)
|
|
2012
2230
|
);
|
|
2013
|
-
return /* @__PURE__ */
|
|
2231
|
+
return /* @__PURE__ */ jsx13(Fragment3, { children: lines });
|
|
2014
2232
|
}
|
|
2015
2233
|
|
|
2016
2234
|
// src/BiampTable/BiampTableRow.tsx
|
|
2017
|
-
import { jsx as
|
|
2235
|
+
import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2018
2236
|
var rowCursorPointerSx = { cursor: "pointer" };
|
|
2019
2237
|
var selectionCellSx = {
|
|
2020
2238
|
position: "sticky",
|
|
@@ -2037,7 +2255,7 @@ function ExpandToggle({
|
|
|
2037
2255
|
rowLabel
|
|
2038
2256
|
}) {
|
|
2039
2257
|
if (row.getCanExpand()) {
|
|
2040
|
-
return /* @__PURE__ */
|
|
2258
|
+
return /* @__PURE__ */ jsx14(
|
|
2041
2259
|
IconButton2,
|
|
2042
2260
|
{
|
|
2043
2261
|
variant: "none",
|
|
@@ -2047,13 +2265,13 @@ function ExpandToggle({
|
|
|
2047
2265
|
},
|
|
2048
2266
|
"aria-label": isExpanded ? `Collapse ${rowLabel}` : `Expand ${rowLabel}`,
|
|
2049
2267
|
"aria-expanded": isExpanded,
|
|
2050
|
-
children: isExpanded ? /* @__PURE__ */
|
|
2268
|
+
children: isExpanded ? /* @__PURE__ */ jsx14(
|
|
2051
2269
|
ChevronDownIcon,
|
|
2052
2270
|
{
|
|
2053
2271
|
variant: "xs",
|
|
2054
2272
|
sx: { color: ({ palette }) => palette.text.secondary }
|
|
2055
2273
|
}
|
|
2056
|
-
) : /* @__PURE__ */
|
|
2274
|
+
) : /* @__PURE__ */ jsx14(
|
|
2057
2275
|
ChevronRightIcon,
|
|
2058
2276
|
{
|
|
2059
2277
|
variant: "xs",
|
|
@@ -2063,7 +2281,7 @@ function ExpandToggle({
|
|
|
2063
2281
|
}
|
|
2064
2282
|
);
|
|
2065
2283
|
}
|
|
2066
|
-
if (hasExpandableRows) return /* @__PURE__ */
|
|
2284
|
+
if (hasExpandableRows) return /* @__PURE__ */ jsx14(Box9, { sx: expandPlaceholderSx });
|
|
2067
2285
|
return null;
|
|
2068
2286
|
}
|
|
2069
2287
|
function renderCellContent({
|
|
@@ -2079,18 +2297,18 @@ function renderCellContent({
|
|
|
2079
2297
|
const content = flexRender(cell.column.columnDef.cell, cell.getContext());
|
|
2080
2298
|
if (sticky) return content;
|
|
2081
2299
|
const truncate = cell.column.columnDef.meta?.truncate ?? true;
|
|
2082
|
-
const truncated = truncate ? /* @__PURE__ */
|
|
2300
|
+
const truncated = truncate ? /* @__PURE__ */ jsx14(BiampTableTruncatedCell, { children: content }) : content;
|
|
2083
2301
|
if (!isExpandCell) return truncated;
|
|
2084
2302
|
if (alwaysExpanded) {
|
|
2085
|
-
return row.depth > 0 ? /* @__PURE__ */
|
|
2303
|
+
return row.depth > 0 ? /* @__PURE__ */ jsx14(Box9, { sx: { pl: `${row.depth * 28}px` }, children: truncated }) : truncated;
|
|
2086
2304
|
}
|
|
2087
2305
|
const rowLabel = getRowLabel ? getRowLabel(row.original) : `row ${row.index + 1}`;
|
|
2088
|
-
return /* @__PURE__ */
|
|
2089
|
-
|
|
2306
|
+
return /* @__PURE__ */ jsxs8(
|
|
2307
|
+
Box9,
|
|
2090
2308
|
{
|
|
2091
2309
|
sx: row.depth > 0 ? { ...expandCellBaseSx, pl: `${row.depth * 12}px` } : expandCellBaseSx,
|
|
2092
2310
|
children: [
|
|
2093
|
-
/* @__PURE__ */
|
|
2311
|
+
/* @__PURE__ */ jsx14(
|
|
2094
2312
|
ExpandToggle,
|
|
2095
2313
|
{
|
|
2096
2314
|
row,
|
|
@@ -2129,7 +2347,7 @@ function BiampTableRowInner({
|
|
|
2129
2347
|
onKeyDown: userRowOnKeyDown,
|
|
2130
2348
|
...restRowProps
|
|
2131
2349
|
} = resolvedRow ?? {};
|
|
2132
|
-
return /* @__PURE__ */
|
|
2350
|
+
return /* @__PURE__ */ jsxs8(
|
|
2133
2351
|
TableRow,
|
|
2134
2352
|
{
|
|
2135
2353
|
...restRowProps,
|
|
@@ -2154,7 +2372,7 @@ function BiampTableRowInner({
|
|
|
2154
2372
|
userRowOnKeyDown?.(e);
|
|
2155
2373
|
} : userRowOnKeyDown,
|
|
2156
2374
|
children: [
|
|
2157
|
-
enableRowSelection && /* @__PURE__ */
|
|
2375
|
+
enableRowSelection && /* @__PURE__ */ jsx14(
|
|
2158
2376
|
TableCell,
|
|
2159
2377
|
{
|
|
2160
2378
|
padding: "checkbox",
|
|
@@ -2162,8 +2380,8 @@ function BiampTableRowInner({
|
|
|
2162
2380
|
selectionCellSx,
|
|
2163
2381
|
customColor ? { backgroundColor: customColor } : void 0
|
|
2164
2382
|
),
|
|
2165
|
-
children: /* @__PURE__ */
|
|
2166
|
-
|
|
2383
|
+
children: /* @__PURE__ */ jsx14(
|
|
2384
|
+
Checkbox2,
|
|
2167
2385
|
{
|
|
2168
2386
|
checked: isSelected,
|
|
2169
2387
|
disabled: !row.getCanSelect(),
|
|
@@ -2187,7 +2405,7 @@ function BiampTableRowInner({
|
|
|
2187
2405
|
const showGuidelinesOnCell = isExpandCell && showExpandGuidelines && alwaysExpanded && row.depth > 0;
|
|
2188
2406
|
const resolvedCell = resolveSlot(cellSlotProps, { cell });
|
|
2189
2407
|
const { sx: userCellSx, ...restCellProps } = resolvedCell ?? {};
|
|
2190
|
-
return /* @__PURE__ */
|
|
2408
|
+
return /* @__PURE__ */ jsxs8(
|
|
2191
2409
|
TableCell,
|
|
2192
2410
|
{
|
|
2193
2411
|
...restCellProps,
|
|
@@ -2200,7 +2418,7 @@ function BiampTableRowInner({
|
|
|
2200
2418
|
userCellSx
|
|
2201
2419
|
),
|
|
2202
2420
|
children: [
|
|
2203
|
-
showGuidelinesOnCell && /* @__PURE__ */
|
|
2421
|
+
showGuidelinesOnCell && /* @__PURE__ */ jsx14(ExpandGuidelines, { row }),
|
|
2204
2422
|
renderCellContent({
|
|
2205
2423
|
cell,
|
|
2206
2424
|
row,
|
|
@@ -2229,7 +2447,7 @@ var BiampTableRow = React4.memo(
|
|
|
2229
2447
|
);
|
|
2230
2448
|
|
|
2231
2449
|
// src/BiampTable/BiampTable.tsx
|
|
2232
|
-
import { jsx as
|
|
2450
|
+
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2233
2451
|
var overlaySx = {
|
|
2234
2452
|
position: "absolute",
|
|
2235
2453
|
top: 0,
|
|
@@ -2290,10 +2508,10 @@ function BiampTable({
|
|
|
2290
2508
|
const hasExpandableRows = enableExpanding && rows.some((r) => r.getCanExpand());
|
|
2291
2509
|
const showError = !!error && !loading;
|
|
2292
2510
|
const showEmpty = !showError && !loading && rows.length === 0;
|
|
2293
|
-
return /* @__PURE__ */
|
|
2511
|
+
return /* @__PURE__ */ jsxs9(
|
|
2294
2512
|
TableContainer,
|
|
2295
2513
|
{
|
|
2296
|
-
component:
|
|
2514
|
+
component: Box10,
|
|
2297
2515
|
...boxProps,
|
|
2298
2516
|
ref: containerRef,
|
|
2299
2517
|
sx: {
|
|
@@ -2304,7 +2522,7 @@ function BiampTable({
|
|
|
2304
2522
|
...sx
|
|
2305
2523
|
},
|
|
2306
2524
|
children: [
|
|
2307
|
-
/* @__PURE__ */
|
|
2525
|
+
/* @__PURE__ */ jsxs9(
|
|
2308
2526
|
MuiTable,
|
|
2309
2527
|
{
|
|
2310
2528
|
"aria-busy": showLoading || void 0,
|
|
@@ -2314,14 +2532,14 @@ function BiampTable({
|
|
|
2314
2532
|
userTableSx
|
|
2315
2533
|
),
|
|
2316
2534
|
children: [
|
|
2317
|
-
/* @__PURE__ */
|
|
2535
|
+
/* @__PURE__ */ jsx15(TableHead, { ...restHeadSlotProps, sx: mergeSx(userHeadSx), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsxs9(
|
|
2318
2536
|
TableRow2,
|
|
2319
2537
|
{
|
|
2320
2538
|
...restHeaderRowSlotProps,
|
|
2321
2539
|
sx: mergeSx(userHeaderRowSx),
|
|
2322
2540
|
children: [
|
|
2323
|
-
enableRowSelection && /* @__PURE__ */
|
|
2324
|
-
|
|
2541
|
+
enableRowSelection && /* @__PURE__ */ jsx15(TableCell2, { padding: "checkbox", sx: headerSelectionCellSx, children: !hideSelectAll && /* @__PURE__ */ jsx15(
|
|
2542
|
+
Checkbox3,
|
|
2325
2543
|
{
|
|
2326
2544
|
checked: table.getIsAllPageRowsSelected(),
|
|
2327
2545
|
indeterminate: table.getIsSomePageRowsSelected(),
|
|
@@ -2336,7 +2554,7 @@ function BiampTable({
|
|
|
2336
2554
|
header
|
|
2337
2555
|
});
|
|
2338
2556
|
const { sx: userHeaderCellSx, ...restHeaderCellProps } = resolvedHeaderCell ?? {};
|
|
2339
|
-
return /* @__PURE__ */
|
|
2557
|
+
return /* @__PURE__ */ jsx15(
|
|
2340
2558
|
TableCell2,
|
|
2341
2559
|
{
|
|
2342
2560
|
...restHeaderCellProps,
|
|
@@ -2349,7 +2567,7 @@ function BiampTable({
|
|
|
2349
2567
|
cellSx(sticky, header.column.columnDef.meta?.minWidth, 3),
|
|
2350
2568
|
userHeaderCellSx
|
|
2351
2569
|
),
|
|
2352
|
-
children: header.isPlaceholder ? null : header.column.getCanSort() ? /* @__PURE__ */
|
|
2570
|
+
children: header.isPlaceholder ? null : header.column.getCanSort() ? /* @__PURE__ */ jsx15(
|
|
2353
2571
|
TableSortLabel,
|
|
2354
2572
|
{
|
|
2355
2573
|
active: !!header.column.getIsSorted(),
|
|
@@ -2375,12 +2593,12 @@ function BiampTable({
|
|
|
2375
2593
|
},
|
|
2376
2594
|
headerGroup.id
|
|
2377
2595
|
)) }),
|
|
2378
|
-
/* @__PURE__ */
|
|
2596
|
+
/* @__PURE__ */ jsx15(
|
|
2379
2597
|
TableBody,
|
|
2380
2598
|
{
|
|
2381
2599
|
...restBodySlotProps,
|
|
2382
2600
|
sx: mergeSx({ opacity: showLoading ? 0.3 : 1 }, userBodySx),
|
|
2383
|
-
children: !showError && rows.map((row) => /* @__PURE__ */
|
|
2601
|
+
children: !showError && rows.map((row) => /* @__PURE__ */ jsx15(
|
|
2384
2602
|
BiampTableRow,
|
|
2385
2603
|
{
|
|
2386
2604
|
row,
|
|
@@ -2407,22 +2625,22 @@ function BiampTable({
|
|
|
2407
2625
|
]
|
|
2408
2626
|
}
|
|
2409
2627
|
),
|
|
2410
|
-
showError && /* @__PURE__ */
|
|
2628
|
+
showError && /* @__PURE__ */ jsx15(Box10, { sx: overlaySx, children: error === true ? /* @__PURE__ */ jsx15(BiampTableErrorState, { sx: { pointerEvents: "auto" } }) : error instanceof Error ? /* @__PURE__ */ jsx15(
|
|
2411
2629
|
BiampTableErrorState,
|
|
2412
2630
|
{
|
|
2413
2631
|
description: error.message,
|
|
2414
2632
|
sx: { pointerEvents: "auto" }
|
|
2415
2633
|
}
|
|
2416
2634
|
) : error }),
|
|
2417
|
-
showEmpty && /* @__PURE__ */
|
|
2635
|
+
showEmpty && /* @__PURE__ */ jsx15(Box10, { sx: overlaySx, children: empty && empty !== true ? empty : /* @__PURE__ */ jsx15(BiampTableEmptyState, { sx: { pointerEvents: "auto" } }) })
|
|
2418
2636
|
]
|
|
2419
2637
|
}
|
|
2420
2638
|
);
|
|
2421
2639
|
}
|
|
2422
2640
|
|
|
2423
2641
|
// src/BiampTable/BiampTableContainer.tsx
|
|
2424
|
-
import { Stack as
|
|
2425
|
-
import { jsx as
|
|
2642
|
+
import { Stack as Stack7 } from "@mui/material";
|
|
2643
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
2426
2644
|
function BiampTableContainer({
|
|
2427
2645
|
withBorderTop = true,
|
|
2428
2646
|
withBorderBottom = false,
|
|
@@ -2430,8 +2648,8 @@ function BiampTableContainer({
|
|
|
2430
2648
|
sx,
|
|
2431
2649
|
...props
|
|
2432
2650
|
}) {
|
|
2433
|
-
return /* @__PURE__ */
|
|
2434
|
-
|
|
2651
|
+
return /* @__PURE__ */ jsx16(
|
|
2652
|
+
Stack7,
|
|
2435
2653
|
{
|
|
2436
2654
|
direction: "column",
|
|
2437
2655
|
width: "100%",
|
|
@@ -2449,9 +2667,9 @@ function BiampTableContainer({
|
|
|
2449
2667
|
|
|
2450
2668
|
// src/BiampTable/BiampTableCellActionButton.tsx
|
|
2451
2669
|
import { IconButton as IconButton3, Tooltip as Tooltip3 } from "@mui/material";
|
|
2452
|
-
import { jsx as
|
|
2670
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
2453
2671
|
function BiampTableCellActionButton({ label, icon, ...props }) {
|
|
2454
|
-
return /* @__PURE__ */
|
|
2672
|
+
return /* @__PURE__ */ jsx17(
|
|
2455
2673
|
Tooltip3,
|
|
2456
2674
|
{
|
|
2457
2675
|
title: label,
|
|
@@ -2459,23 +2677,13 @@ function BiampTableCellActionButton({ label, icon, ...props }) {
|
|
|
2459
2677
|
enterDelay: 500,
|
|
2460
2678
|
enterNextDelay: 500,
|
|
2461
2679
|
disableInteractive: true,
|
|
2462
|
-
children: /* @__PURE__ */
|
|
2680
|
+
children: /* @__PURE__ */ jsx17("span", { children: /* @__PURE__ */ jsx17(IconButton3, { "aria-label": label, ...props, children: icon }) })
|
|
2463
2681
|
}
|
|
2464
2682
|
);
|
|
2465
2683
|
}
|
|
2466
2684
|
|
|
2467
2685
|
// src/BiampTable/BiampTableColumnVisibility.tsx
|
|
2468
|
-
import {
|
|
2469
|
-
alpha as alpha2,
|
|
2470
|
-
Box as Box9,
|
|
2471
|
-
Checkbox as Checkbox3,
|
|
2472
|
-
Divider as Divider2,
|
|
2473
|
-
List,
|
|
2474
|
-
ListItem,
|
|
2475
|
-
Popover as Popover2,
|
|
2476
|
-
Typography as Typography5
|
|
2477
|
-
} from "@mui/material";
|
|
2478
|
-
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2686
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
2479
2687
|
function toVisibilityState(visibility) {
|
|
2480
2688
|
return visibility;
|
|
2481
2689
|
}
|
|
@@ -2498,16 +2706,6 @@ function getColumnVisibilityDirtyCount(table, defaultVisibility) {
|
|
|
2498
2706
|
}
|
|
2499
2707
|
return count;
|
|
2500
2708
|
}
|
|
2501
|
-
var columnListItemSx = {
|
|
2502
|
-
py: 0,
|
|
2503
|
-
pr: 1.5,
|
|
2504
|
-
pl: 0,
|
|
2505
|
-
alignItems: "center",
|
|
2506
|
-
cursor: "pointer",
|
|
2507
|
-
"&:hover": {
|
|
2508
|
-
backgroundColor: ({ palette }) => palette.mode === "dark" ? palette.grey[800] : palette.grey[100]
|
|
2509
|
-
}
|
|
2510
|
-
};
|
|
2511
2709
|
function BiampTableColumnVisibility({
|
|
2512
2710
|
table,
|
|
2513
2711
|
showAllLabel = "Show all",
|
|
@@ -2518,9 +2716,16 @@ function BiampTableColumnVisibility({
|
|
|
2518
2716
|
...popoverProps
|
|
2519
2717
|
}) {
|
|
2520
2718
|
const hideableColumns = table.getAllLeafColumns().filter((col) => col.getCanHide());
|
|
2521
|
-
const
|
|
2522
|
-
|
|
2523
|
-
|
|
2719
|
+
const items = hideableColumns.map((column) => {
|
|
2720
|
+
const columnName = column.columnDef.meta?.columnLabel ?? (typeof column.columnDef.header === "string" ? column.columnDef.header : column.id);
|
|
2721
|
+
return {
|
|
2722
|
+
id: column.id,
|
|
2723
|
+
label: columnName,
|
|
2724
|
+
checked: column.getIsVisible(),
|
|
2725
|
+
ariaLabel: `Show ${columnName}`
|
|
2726
|
+
};
|
|
2727
|
+
});
|
|
2728
|
+
const setAllHideable = (next) => {
|
|
2524
2729
|
table.setColumnVisibility((prev) => {
|
|
2525
2730
|
const updated = { ...prev };
|
|
2526
2731
|
for (const col of hideableColumns) {
|
|
@@ -2529,71 +2734,19 @@ function BiampTableColumnVisibility({
|
|
|
2529
2734
|
return updated;
|
|
2530
2735
|
});
|
|
2531
2736
|
};
|
|
2532
|
-
return /* @__PURE__ */
|
|
2533
|
-
|
|
2737
|
+
return /* @__PURE__ */ jsx18(
|
|
2738
|
+
BiampCheckboxListPopover,
|
|
2534
2739
|
{
|
|
2535
2740
|
anchorEl,
|
|
2536
2741
|
open: Boolean(anchorEl),
|
|
2537
2742
|
anchorOrigin,
|
|
2538
2743
|
transformOrigin,
|
|
2539
|
-
slotProps
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
border: `0.6px solid ${palette.dividers.secondary}`,
|
|
2546
|
-
boxShadow: `0px 1px 1px 0px ${alpha2(palette.common.black, 0.05)}`,
|
|
2547
|
-
minWidth: "150px"
|
|
2548
|
-
}),
|
|
2549
|
-
...slotProps?.paper ?? {}
|
|
2550
|
-
}
|
|
2551
|
-
},
|
|
2552
|
-
...popoverProps,
|
|
2553
|
-
children: /* @__PURE__ */ jsxs9(List, { dense: true, disablePadding: true, children: [
|
|
2554
|
-
/* @__PURE__ */ jsxs9(ListItem, { dense: true, sx: columnListItemSx, onClick: toggleAllHideable, children: [
|
|
2555
|
-
/* @__PURE__ */ jsx15(
|
|
2556
|
-
Checkbox3,
|
|
2557
|
-
{
|
|
2558
|
-
checked: allVisible,
|
|
2559
|
-
slotProps: { input: { "aria-label": `${showAllLabel} columns` } }
|
|
2560
|
-
}
|
|
2561
|
-
),
|
|
2562
|
-
/* @__PURE__ */ jsx15(Typography5, { variant: "caption", fontWeight: 600, children: showAllLabel })
|
|
2563
|
-
] }),
|
|
2564
|
-
/* @__PURE__ */ jsx15(Divider2, {}),
|
|
2565
|
-
/* @__PURE__ */ jsx15(
|
|
2566
|
-
Box9,
|
|
2567
|
-
{
|
|
2568
|
-
sx: { maxHeight: 340, overflow: "auto", overscrollBehavior: "none" },
|
|
2569
|
-
children: hideableColumns.map((column) => {
|
|
2570
|
-
const columnName = column.columnDef.meta?.columnLabel ?? (typeof column.columnDef.header === "string" ? column.columnDef.header : column.id);
|
|
2571
|
-
return /* @__PURE__ */ jsxs9(
|
|
2572
|
-
ListItem,
|
|
2573
|
-
{
|
|
2574
|
-
dense: true,
|
|
2575
|
-
sx: columnListItemSx,
|
|
2576
|
-
onClick: column.getToggleVisibilityHandler(),
|
|
2577
|
-
children: [
|
|
2578
|
-
/* @__PURE__ */ jsx15(
|
|
2579
|
-
Checkbox3,
|
|
2580
|
-
{
|
|
2581
|
-
checked: column.getIsVisible(),
|
|
2582
|
-
sx: { py: 1 },
|
|
2583
|
-
slotProps: {
|
|
2584
|
-
input: { "aria-label": `Show ${columnName}` }
|
|
2585
|
-
}
|
|
2586
|
-
}
|
|
2587
|
-
),
|
|
2588
|
-
/* @__PURE__ */ jsx15(Typography5, { variant: "caption", children: columnName })
|
|
2589
|
-
]
|
|
2590
|
-
},
|
|
2591
|
-
column.id
|
|
2592
|
-
);
|
|
2593
|
-
})
|
|
2594
|
-
}
|
|
2595
|
-
)
|
|
2596
|
-
] })
|
|
2744
|
+
slotProps,
|
|
2745
|
+
items,
|
|
2746
|
+
onToggleItem: (id) => table.getColumn(id)?.toggleVisibility(),
|
|
2747
|
+
selectAllLabel: showAllLabel,
|
|
2748
|
+
onToggleAll: setAllHideable,
|
|
2749
|
+
...popoverProps
|
|
2597
2750
|
}
|
|
2598
2751
|
);
|
|
2599
2752
|
}
|
|
@@ -2607,7 +2760,7 @@ import {
|
|
|
2607
2760
|
Badge,
|
|
2608
2761
|
IconButton as IconButton4
|
|
2609
2762
|
} from "@mui/material";
|
|
2610
|
-
import { jsx as
|
|
2763
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
2611
2764
|
function BiampTableToolbarActionButton({
|
|
2612
2765
|
label,
|
|
2613
2766
|
icon,
|
|
@@ -2615,12 +2768,12 @@ function BiampTableToolbarActionButton({
|
|
|
2615
2768
|
...props
|
|
2616
2769
|
}) {
|
|
2617
2770
|
const showBadge = badgeContent != null && badgeContent !== 0;
|
|
2618
|
-
return /* @__PURE__ */
|
|
2771
|
+
return /* @__PURE__ */ jsx19(
|
|
2619
2772
|
IconButton4,
|
|
2620
2773
|
{
|
|
2621
2774
|
"aria-label": showBadge ? `${label} (${badgeContent})` : label,
|
|
2622
2775
|
...props,
|
|
2623
|
-
children: showBadge ? /* @__PURE__ */
|
|
2776
|
+
children: showBadge ? /* @__PURE__ */ jsx19(
|
|
2624
2777
|
Badge,
|
|
2625
2778
|
{
|
|
2626
2779
|
badgeContent,
|
|
@@ -2644,10 +2797,10 @@ function BiampTableToolbarActionButton({
|
|
|
2644
2797
|
}
|
|
2645
2798
|
|
|
2646
2799
|
// src/BiampTable/BiampTableToolbarColumnVisibility.tsx
|
|
2647
|
-
import { Fragment as
|
|
2800
|
+
import { Fragment as Fragment4, jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2648
2801
|
function BiampTableToolbarColumnVisibility({
|
|
2649
2802
|
table,
|
|
2650
|
-
icon = /* @__PURE__ */
|
|
2803
|
+
icon = /* @__PURE__ */ jsx20(ColumnsIcon2, { variant: "xs" }),
|
|
2651
2804
|
label = "Columns",
|
|
2652
2805
|
defaultColumnVisibility,
|
|
2653
2806
|
showAllLabel,
|
|
@@ -2656,8 +2809,8 @@ function BiampTableToolbarColumnVisibility({
|
|
|
2656
2809
|
const [anchorEl, setAnchorEl] = useState6(null);
|
|
2657
2810
|
const defaults = defaultColumnVisibility ?? getDefaultColumnVisibility(table);
|
|
2658
2811
|
const dirtyCount = getColumnVisibilityDirtyCount(table, defaults);
|
|
2659
|
-
return /* @__PURE__ */ jsxs10(
|
|
2660
|
-
/* @__PURE__ */
|
|
2812
|
+
return /* @__PURE__ */ jsxs10(Fragment4, { children: [
|
|
2813
|
+
/* @__PURE__ */ jsx20(
|
|
2661
2814
|
BiampTableToolbarActionButton,
|
|
2662
2815
|
{
|
|
2663
2816
|
label,
|
|
@@ -2667,7 +2820,7 @@ function BiampTableToolbarColumnVisibility({
|
|
|
2667
2820
|
...actionButtonProps
|
|
2668
2821
|
}
|
|
2669
2822
|
),
|
|
2670
|
-
/* @__PURE__ */
|
|
2823
|
+
/* @__PURE__ */ jsx20(
|
|
2671
2824
|
BiampTableColumnVisibility,
|
|
2672
2825
|
{
|
|
2673
2826
|
table,
|
|
@@ -2682,7 +2835,7 @@ function BiampTableToolbarColumnVisibility({
|
|
|
2682
2835
|
// src/BiampTable/BiampTablePagination.tsx
|
|
2683
2836
|
import { useEffect as useEffect3, useRef as useRef4 } from "react";
|
|
2684
2837
|
import { TablePagination } from "@mui/material";
|
|
2685
|
-
import { jsx as
|
|
2838
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
2686
2839
|
var positionMap = {
|
|
2687
2840
|
left: "flex-start",
|
|
2688
2841
|
center: "center",
|
|
@@ -2711,7 +2864,7 @@ function BiampTablePagination({
|
|
|
2711
2864
|
}
|
|
2712
2865
|
}, [loading, pageIndex, maxPage, table]);
|
|
2713
2866
|
if (autoHide && (!stableCount || stableCount <= pageSize)) return null;
|
|
2714
|
-
return /* @__PURE__ */
|
|
2867
|
+
return /* @__PURE__ */ jsx21(
|
|
2715
2868
|
TablePagination,
|
|
2716
2869
|
{
|
|
2717
2870
|
component: "div",
|
|
@@ -2743,15 +2896,15 @@ function BiampTablePagination({
|
|
|
2743
2896
|
}
|
|
2744
2897
|
|
|
2745
2898
|
// src/BiampTable/BiampTableToolbar.tsx
|
|
2746
|
-
import { Box as
|
|
2747
|
-
import { jsx as
|
|
2899
|
+
import { Box as Box11 } from "@mui/material";
|
|
2900
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
2748
2901
|
function BiampTableToolbar({
|
|
2749
2902
|
children,
|
|
2750
2903
|
sx,
|
|
2751
2904
|
...props
|
|
2752
2905
|
}) {
|
|
2753
|
-
return /* @__PURE__ */
|
|
2754
|
-
|
|
2906
|
+
return /* @__PURE__ */ jsx22(
|
|
2907
|
+
Box11,
|
|
2755
2908
|
{
|
|
2756
2909
|
role: "toolbar",
|
|
2757
2910
|
display: "flex",
|
|
@@ -2768,14 +2921,14 @@ function BiampTableToolbar({
|
|
|
2768
2921
|
}
|
|
2769
2922
|
|
|
2770
2923
|
// src/BiampTable/BiampTableToolbarActions.tsx
|
|
2771
|
-
import { Box as
|
|
2772
|
-
import { jsx as
|
|
2924
|
+
import { Box as Box12 } from "@mui/material";
|
|
2925
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2773
2926
|
function BiampTableToolbarActions({
|
|
2774
2927
|
children,
|
|
2775
2928
|
...props
|
|
2776
2929
|
}) {
|
|
2777
|
-
return /* @__PURE__ */
|
|
2778
|
-
|
|
2930
|
+
return /* @__PURE__ */ jsx23(
|
|
2931
|
+
Box12,
|
|
2779
2932
|
{
|
|
2780
2933
|
display: "flex",
|
|
2781
2934
|
alignItems: "center",
|
|
@@ -2791,15 +2944,15 @@ function BiampTableToolbarActions({
|
|
|
2791
2944
|
// src/BiampTable/BiampTableToolbarExport.tsx
|
|
2792
2945
|
import { Button as Button2 } from "@mui/material";
|
|
2793
2946
|
import { DownloadIcon } from "@bwp-web/assets";
|
|
2794
|
-
import { jsx as
|
|
2947
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2795
2948
|
function BiampTableToolbarExport({
|
|
2796
2949
|
onExport,
|
|
2797
2950
|
loading,
|
|
2798
|
-
icon = /* @__PURE__ */
|
|
2951
|
+
icon = /* @__PURE__ */ jsx24(DownloadIcon, { variant: "xs" }),
|
|
2799
2952
|
label = "Export",
|
|
2800
2953
|
...props
|
|
2801
2954
|
}) {
|
|
2802
|
-
return /* @__PURE__ */
|
|
2955
|
+
return /* @__PURE__ */ jsx24(
|
|
2803
2956
|
BiampTableToolbarActionButton,
|
|
2804
2957
|
{
|
|
2805
2958
|
label,
|
|
@@ -2817,7 +2970,7 @@ function BiampTableToolbarExportTextButton({
|
|
|
2817
2970
|
label = "Export",
|
|
2818
2971
|
...props
|
|
2819
2972
|
}) {
|
|
2820
|
-
return /* @__PURE__ */
|
|
2973
|
+
return /* @__PURE__ */ jsx24(
|
|
2821
2974
|
Button2,
|
|
2822
2975
|
{
|
|
2823
2976
|
variant: "outlined",
|
|
@@ -2834,7 +2987,7 @@ function BiampTableToolbarExportTextButton({
|
|
|
2834
2987
|
// src/BiampTable/BiampTableToolbarFilters.tsx
|
|
2835
2988
|
import {
|
|
2836
2989
|
Badge as Badge2,
|
|
2837
|
-
Box as
|
|
2990
|
+
Box as Box13,
|
|
2838
2991
|
Button as Button3,
|
|
2839
2992
|
Divider as Divider3,
|
|
2840
2993
|
Drawer as Drawer2,
|
|
@@ -2844,13 +2997,13 @@ import {
|
|
|
2844
2997
|
} from "@mui/material";
|
|
2845
2998
|
import { CloseIcon as CloseIcon2, FilterIcon } from "@bwp-web/assets";
|
|
2846
2999
|
import { useId, useState as useState7 } from "react";
|
|
2847
|
-
import { Fragment as
|
|
3000
|
+
import { Fragment as Fragment5, jsx as jsx25, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2848
3001
|
function BiampTableToolbarFilters({
|
|
2849
3002
|
activeFilterCount,
|
|
2850
3003
|
children,
|
|
2851
3004
|
onReset,
|
|
2852
3005
|
onApply,
|
|
2853
|
-
icon = /* @__PURE__ */
|
|
3006
|
+
icon = /* @__PURE__ */ jsx25(FilterIcon, { variant: "xs" }),
|
|
2854
3007
|
title = "Filters",
|
|
2855
3008
|
resetLabel = "Clear filters",
|
|
2856
3009
|
applyLabel = "Apply",
|
|
@@ -2865,8 +3018,8 @@ function BiampTableToolbarFilters({
|
|
|
2865
3018
|
onApply?.();
|
|
2866
3019
|
setOpen(false);
|
|
2867
3020
|
}
|
|
2868
|
-
return /* @__PURE__ */ jsxs11(
|
|
2869
|
-
/* @__PURE__ */
|
|
3021
|
+
return /* @__PURE__ */ jsxs11(Fragment5, { children: [
|
|
3022
|
+
/* @__PURE__ */ jsx25(
|
|
2870
3023
|
BiampTableToolbarActionButton,
|
|
2871
3024
|
{
|
|
2872
3025
|
label: buttonLabel,
|
|
@@ -2875,7 +3028,7 @@ function BiampTableToolbarFilters({
|
|
|
2875
3028
|
onClick: () => setOpen(true)
|
|
2876
3029
|
}
|
|
2877
3030
|
),
|
|
2878
|
-
/* @__PURE__ */
|
|
3031
|
+
/* @__PURE__ */ jsx25(
|
|
2879
3032
|
Drawer2,
|
|
2880
3033
|
{
|
|
2881
3034
|
anchor: "right",
|
|
@@ -2888,16 +3041,16 @@ function BiampTableToolbarFilters({
|
|
|
2888
3041
|
...drawerProps?.PaperProps
|
|
2889
3042
|
},
|
|
2890
3043
|
children: /* @__PURE__ */ jsxs11(
|
|
2891
|
-
|
|
3044
|
+
Box13,
|
|
2892
3045
|
{
|
|
2893
3046
|
height: "100%",
|
|
2894
3047
|
display: "flex",
|
|
2895
3048
|
flexDirection: "column",
|
|
2896
3049
|
justifyContent: "space-between",
|
|
2897
3050
|
children: [
|
|
2898
|
-
/* @__PURE__ */ jsxs11(
|
|
3051
|
+
/* @__PURE__ */ jsxs11(Box13, { children: [
|
|
2899
3052
|
/* @__PURE__ */ jsxs11(
|
|
2900
|
-
|
|
3053
|
+
Box13,
|
|
2901
3054
|
{
|
|
2902
3055
|
display: "flex",
|
|
2903
3056
|
justifyContent: "space-between",
|
|
@@ -2907,7 +3060,7 @@ function BiampTableToolbarFilters({
|
|
|
2907
3060
|
children: [
|
|
2908
3061
|
/* @__PURE__ */ jsxs11(Typography6, { id: titleId, variant: "h2", children: [
|
|
2909
3062
|
title,
|
|
2910
|
-
/* @__PURE__ */
|
|
3063
|
+
/* @__PURE__ */ jsx25(
|
|
2911
3064
|
Badge2,
|
|
2912
3065
|
{
|
|
2913
3066
|
badgeContent: activeFilterCount,
|
|
@@ -2923,21 +3076,21 @@ function BiampTableToolbarFilters({
|
|
|
2923
3076
|
}
|
|
2924
3077
|
)
|
|
2925
3078
|
] }),
|
|
2926
|
-
/* @__PURE__ */
|
|
3079
|
+
/* @__PURE__ */ jsx25(
|
|
2927
3080
|
IconButton5,
|
|
2928
3081
|
{
|
|
2929
3082
|
size: "medium",
|
|
2930
3083
|
onClick: handleClose,
|
|
2931
3084
|
"aria-label": closeLabel,
|
|
2932
|
-
children: /* @__PURE__ */
|
|
3085
|
+
children: /* @__PURE__ */ jsx25(CloseIcon2, {})
|
|
2933
3086
|
}
|
|
2934
3087
|
)
|
|
2935
3088
|
]
|
|
2936
3089
|
}
|
|
2937
3090
|
),
|
|
2938
|
-
/* @__PURE__ */
|
|
2939
|
-
/* @__PURE__ */
|
|
2940
|
-
|
|
3091
|
+
/* @__PURE__ */ jsx25(Divider3, {}),
|
|
3092
|
+
/* @__PURE__ */ jsx25(
|
|
3093
|
+
Box13,
|
|
2941
3094
|
{
|
|
2942
3095
|
role: "group",
|
|
2943
3096
|
"aria-label": "Filter options",
|
|
@@ -2950,8 +3103,8 @@ function BiampTableToolbarFilters({
|
|
|
2950
3103
|
}
|
|
2951
3104
|
)
|
|
2952
3105
|
] }),
|
|
2953
|
-
/* @__PURE__ */ jsxs11(
|
|
2954
|
-
/* @__PURE__ */
|
|
3106
|
+
/* @__PURE__ */ jsxs11(Box13, { display: "flex", children: [
|
|
3107
|
+
/* @__PURE__ */ jsx25(
|
|
2955
3108
|
Button3,
|
|
2956
3109
|
{
|
|
2957
3110
|
variant: "overlay",
|
|
@@ -2962,7 +3115,7 @@ function BiampTableToolbarFilters({
|
|
|
2962
3115
|
children: resetLabel
|
|
2963
3116
|
}
|
|
2964
3117
|
),
|
|
2965
|
-
/* @__PURE__ */
|
|
3118
|
+
/* @__PURE__ */ jsx25(
|
|
2966
3119
|
Button3,
|
|
2967
3120
|
{
|
|
2968
3121
|
variant: "overlay",
|
|
@@ -2983,7 +3136,7 @@ function BiampTableToolbarFilters({
|
|
|
2983
3136
|
|
|
2984
3137
|
// src/BiampTable/BiampTableToolbarSearch.tsx
|
|
2985
3138
|
import {
|
|
2986
|
-
Box as
|
|
3139
|
+
Box as Box14,
|
|
2987
3140
|
Collapse,
|
|
2988
3141
|
IconButton as IconButton6,
|
|
2989
3142
|
InputAdornment as InputAdornment2,
|
|
@@ -3019,7 +3172,7 @@ function useDebouncedCallback(callback, delay = BIAMP_TABLE_DEBOUNCE_DELAY) {
|
|
|
3019
3172
|
}
|
|
3020
3173
|
|
|
3021
3174
|
// src/BiampTable/BiampTableToolbarSearch.tsx
|
|
3022
|
-
import { jsx as
|
|
3175
|
+
import { jsx as jsx26, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3023
3176
|
var searchFieldSx = {
|
|
3024
3177
|
"& .MuiInputBase-root": {
|
|
3025
3178
|
height: "36px !important",
|
|
@@ -3063,7 +3216,7 @@ function BiampTableToolbarSearch({
|
|
|
3063
3216
|
setIsExpanded(false);
|
|
3064
3217
|
}
|
|
3065
3218
|
};
|
|
3066
|
-
const clearButton = inputValue ? /* @__PURE__ */
|
|
3219
|
+
const clearButton = inputValue ? /* @__PURE__ */ jsx26(
|
|
3067
3220
|
InputAdornment2,
|
|
3068
3221
|
{
|
|
3069
3222
|
position: "end",
|
|
@@ -3076,19 +3229,19 @@ function BiampTableToolbarSearch({
|
|
|
3076
3229
|
height: 16
|
|
3077
3230
|
}
|
|
3078
3231
|
},
|
|
3079
|
-
children: /* @__PURE__ */
|
|
3232
|
+
children: /* @__PURE__ */ jsx26(
|
|
3080
3233
|
IconButton6,
|
|
3081
3234
|
{
|
|
3082
3235
|
size: "small",
|
|
3083
3236
|
onClick: handleClear,
|
|
3084
3237
|
"aria-label": clearLabel,
|
|
3085
3238
|
sx: { mr: 0.5 },
|
|
3086
|
-
children: /* @__PURE__ */
|
|
3239
|
+
children: /* @__PURE__ */ jsx26(CloseIcon3, { variant: "xs" })
|
|
3087
3240
|
}
|
|
3088
3241
|
)
|
|
3089
3242
|
}
|
|
3090
3243
|
) : null;
|
|
3091
|
-
const textField = /* @__PURE__ */
|
|
3244
|
+
const textField = /* @__PURE__ */ jsx26(
|
|
3092
3245
|
TextField2,
|
|
3093
3246
|
{
|
|
3094
3247
|
name: "search",
|
|
@@ -3097,7 +3250,7 @@ function BiampTableToolbarSearch({
|
|
|
3097
3250
|
slotProps: {
|
|
3098
3251
|
htmlInput: { maxLength, "aria-label": placeholder },
|
|
3099
3252
|
input: {
|
|
3100
|
-
startAdornment: /* @__PURE__ */
|
|
3253
|
+
startAdornment: /* @__PURE__ */ jsx26(
|
|
3101
3254
|
InputAdornment2,
|
|
3102
3255
|
{
|
|
3103
3256
|
position: "start",
|
|
@@ -3108,7 +3261,7 @@ function BiampTableToolbarSearch({
|
|
|
3108
3261
|
height: 16
|
|
3109
3262
|
}
|
|
3110
3263
|
},
|
|
3111
|
-
children: /* @__PURE__ */
|
|
3264
|
+
children: /* @__PURE__ */ jsx26(SearchIcon2, { variant: "xs", color: "inherit" })
|
|
3112
3265
|
}
|
|
3113
3266
|
),
|
|
3114
3267
|
endAdornment: clearButton
|
|
@@ -3129,9 +3282,9 @@ function BiampTableToolbarSearch({
|
|
|
3129
3282
|
}
|
|
3130
3283
|
);
|
|
3131
3284
|
if (isMobile && enableMobileView) {
|
|
3132
|
-
return /* @__PURE__ */ jsxs12(
|
|
3133
|
-
/* @__PURE__ */
|
|
3134
|
-
/* @__PURE__ */
|
|
3285
|
+
return /* @__PURE__ */ jsxs12(Box14, { display: "flex", alignItems: "center", width: "100%", pr: 1, gap: 1, children: [
|
|
3286
|
+
/* @__PURE__ */ jsx26(SearchIcon2, { sx: { width: 16, height: 16 } }),
|
|
3287
|
+
/* @__PURE__ */ jsx26(
|
|
3135
3288
|
InputBase,
|
|
3136
3289
|
{
|
|
3137
3290
|
name: "search",
|
|
@@ -3153,14 +3306,14 @@ function BiampTableToolbarSearch({
|
|
|
3153
3306
|
] });
|
|
3154
3307
|
}
|
|
3155
3308
|
if (expandable) {
|
|
3156
|
-
return /* @__PURE__ */ jsxs12(
|
|
3157
|
-
/* @__PURE__ */
|
|
3309
|
+
return /* @__PURE__ */ jsxs12(Box14, { display: "flex", alignItems: "center", minWidth: 28, children: [
|
|
3310
|
+
/* @__PURE__ */ jsx26(
|
|
3158
3311
|
IconButton6,
|
|
3159
3312
|
{
|
|
3160
3313
|
"aria-label": expandLabel ?? placeholder,
|
|
3161
3314
|
onClick: () => setIsExpanded(true),
|
|
3162
3315
|
sx: { display: isExpanded || inputValue ? "none" : "flex" },
|
|
3163
|
-
children: /* @__PURE__ */
|
|
3316
|
+
children: /* @__PURE__ */ jsx26(
|
|
3164
3317
|
SearchIcon2,
|
|
3165
3318
|
{
|
|
3166
3319
|
variant: "xs",
|
|
@@ -3170,7 +3323,7 @@ function BiampTableToolbarSearch({
|
|
|
3170
3323
|
)
|
|
3171
3324
|
}
|
|
3172
3325
|
),
|
|
3173
|
-
/* @__PURE__ */
|
|
3326
|
+
/* @__PURE__ */ jsx26(
|
|
3174
3327
|
Collapse,
|
|
3175
3328
|
{
|
|
3176
3329
|
in: isExpanded || !!inputValue,
|
|
@@ -3416,7 +3569,7 @@ function downloadCsv(csvContent, filename) {
|
|
|
3416
3569
|
|
|
3417
3570
|
// src/BiampBanner/BiampBanner.tsx
|
|
3418
3571
|
import {
|
|
3419
|
-
Box as
|
|
3572
|
+
Box as Box15,
|
|
3420
3573
|
Collapse as Collapse2,
|
|
3421
3574
|
Typography as Typography7
|
|
3422
3575
|
} from "@mui/material";
|
|
@@ -3426,10 +3579,10 @@ import {
|
|
|
3426
3579
|
SuccessStatusIcon,
|
|
3427
3580
|
WarningStatusIcon
|
|
3428
3581
|
} from "@bwp-web/assets";
|
|
3429
|
-
import { Fragment as
|
|
3582
|
+
import { Fragment as Fragment6, jsx as jsx27 } from "react/jsx-runtime";
|
|
3430
3583
|
function BiampBanner({ show, children, severity }) {
|
|
3431
|
-
return /* @__PURE__ */
|
|
3432
|
-
|
|
3584
|
+
return /* @__PURE__ */ jsx27(Collapse2, { in: show, unmountOnExit: true, component: "aside", children: /* @__PURE__ */ jsx27(
|
|
3585
|
+
Box15,
|
|
3433
3586
|
{
|
|
3434
3587
|
bgcolor: ({ palette }) => palette.background[severity],
|
|
3435
3588
|
display: "flex",
|
|
@@ -3447,25 +3600,25 @@ function BiampBanner({ show, children, severity }) {
|
|
|
3447
3600
|
) });
|
|
3448
3601
|
}
|
|
3449
3602
|
var iconMapping = {
|
|
3450
|
-
error: /* @__PURE__ */
|
|
3451
|
-
warning: /* @__PURE__ */
|
|
3452
|
-
success: /* @__PURE__ */
|
|
3453
|
-
info: /* @__PURE__ */
|
|
3603
|
+
error: /* @__PURE__ */ jsx27(ErrorStatusIcon, { color: "error", sx: { width: 14, height: 14 } }),
|
|
3604
|
+
warning: /* @__PURE__ */ jsx27(WarningStatusIcon, { color: "warning", sx: { width: 16, height: 14 } }),
|
|
3605
|
+
success: /* @__PURE__ */ jsx27(SuccessStatusIcon, { color: "success", sx: { width: 14, height: 14 } }),
|
|
3606
|
+
info: /* @__PURE__ */ jsx27(InfoStatusIcon, { color: "info", sx: { width: 14, height: 14 } })
|
|
3454
3607
|
};
|
|
3455
3608
|
function BiampBannerIcon({ severity, children }) {
|
|
3456
|
-
return /* @__PURE__ */
|
|
3609
|
+
return /* @__PURE__ */ jsx27(Fragment6, { children: severity ? iconMapping[severity] : children });
|
|
3457
3610
|
}
|
|
3458
3611
|
function BiampBannerContent({ children, ...props }) {
|
|
3459
|
-
return /* @__PURE__ */
|
|
3612
|
+
return /* @__PURE__ */ jsx27(Typography7, { textAlign: "center", variant: "h3", ...props, children });
|
|
3460
3613
|
}
|
|
3461
3614
|
function BiampBannerActions({ children, ...props }) {
|
|
3462
|
-
return /* @__PURE__ */
|
|
3615
|
+
return /* @__PURE__ */ jsx27(Box15, { display: "flex", gap: 1, alignItems: "center", ...props, children });
|
|
3463
3616
|
}
|
|
3464
3617
|
|
|
3465
3618
|
// src/BiampSegmentedButton/SegmentedButton.tsx
|
|
3466
3619
|
import { Button as Button4, useTheme as useTheme3 } from "@mui/material";
|
|
3467
|
-
import { alpha as
|
|
3468
|
-
import { jsx as
|
|
3620
|
+
import { alpha as alpha4 } from "@mui/material/styles";
|
|
3621
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3469
3622
|
function SegmentedButton({
|
|
3470
3623
|
children,
|
|
3471
3624
|
active,
|
|
@@ -3478,7 +3631,7 @@ function SegmentedButton({
|
|
|
3478
3631
|
const backgroundColor = active ? isDarkMode ? theme.palette.grey[800] : theme.palette.common.white : "transparent";
|
|
3479
3632
|
const textColor = active ? theme.palette.text.primary : theme.palette.text.secondary;
|
|
3480
3633
|
const border = active ? "solid" : void 0;
|
|
3481
|
-
return /* @__PURE__ */
|
|
3634
|
+
return /* @__PURE__ */ jsx28(
|
|
3482
3635
|
Button4,
|
|
3483
3636
|
{
|
|
3484
3637
|
sx: {
|
|
@@ -3492,7 +3645,7 @@ function SegmentedButton({
|
|
|
3492
3645
|
py: 0,
|
|
3493
3646
|
height: small ? "22px" : "26px",
|
|
3494
3647
|
...small && { fontSize: "12px", letterSpacing: "-0.24px" },
|
|
3495
|
-
boxShadow: active ? `0 1px 2px 0 ${
|
|
3648
|
+
boxShadow: active ? `0 1px 2px 0 ${alpha4(theme.palette.common.black, 0.05)} !important` : "none !important",
|
|
3496
3649
|
...sx
|
|
3497
3650
|
},
|
|
3498
3651
|
...props,
|
|
@@ -3502,13 +3655,13 @@ function SegmentedButton({
|
|
|
3502
3655
|
}
|
|
3503
3656
|
|
|
3504
3657
|
// src/BiampSegmentedButton/SegmentedButtonGroup.tsx
|
|
3505
|
-
import { Stack as
|
|
3506
|
-
import { jsx as
|
|
3658
|
+
import { Stack as Stack8, useTheme as useTheme4 } from "@mui/material";
|
|
3659
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3507
3660
|
function SegmentedButtonGroup({ children, sx, ...props }) {
|
|
3508
3661
|
const theme = useTheme4();
|
|
3509
3662
|
const isDarkMode = theme.palette.mode === "dark";
|
|
3510
|
-
return /* @__PURE__ */
|
|
3511
|
-
|
|
3663
|
+
return /* @__PURE__ */ jsx29(
|
|
3664
|
+
Stack8,
|
|
3512
3665
|
{
|
|
3513
3666
|
direction: "row",
|
|
3514
3667
|
p: 0.5,
|
|
@@ -3526,33 +3679,33 @@ function SegmentedButtonGroup({ children, sx, ...props }) {
|
|
|
3526
3679
|
|
|
3527
3680
|
// src/OrganizationSelector/OrganizationSelector.tsx
|
|
3528
3681
|
import {
|
|
3529
|
-
alpha as
|
|
3530
|
-
Box as
|
|
3682
|
+
alpha as alpha5,
|
|
3683
|
+
Box as Box16,
|
|
3531
3684
|
ButtonBase,
|
|
3532
3685
|
CircularProgress,
|
|
3533
3686
|
Divider as Divider4,
|
|
3534
3687
|
List as List2,
|
|
3535
3688
|
ListItem as ListItem2,
|
|
3536
3689
|
ListItemButton as ListItemButton3,
|
|
3537
|
-
Popover as
|
|
3538
|
-
Stack as
|
|
3690
|
+
Popover as Popover4,
|
|
3691
|
+
Stack as Stack9,
|
|
3539
3692
|
Typography as Typography8
|
|
3540
3693
|
} from "@mui/material";
|
|
3541
|
-
import { Children as Children2, Fragment as
|
|
3694
|
+
import { Children as Children2, Fragment as Fragment7, isValidElement } from "react";
|
|
3542
3695
|
import {
|
|
3543
3696
|
ChevronDownIcon as ChevronDownIcon2,
|
|
3544
3697
|
ChevronRightIcon as ChevronRightIcon2,
|
|
3545
3698
|
ChevronUpIcon
|
|
3546
3699
|
} from "@bwp-web/assets";
|
|
3547
|
-
import { Fragment as
|
|
3700
|
+
import { Fragment as Fragment8, jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3548
3701
|
function OrganizationSelector({
|
|
3549
3702
|
loading,
|
|
3550
3703
|
children,
|
|
3551
3704
|
sx,
|
|
3552
3705
|
...props
|
|
3553
3706
|
}) {
|
|
3554
|
-
return /* @__PURE__ */
|
|
3555
|
-
|
|
3707
|
+
return /* @__PURE__ */ jsx30(
|
|
3708
|
+
Stack9,
|
|
3556
3709
|
{
|
|
3557
3710
|
sx: {
|
|
3558
3711
|
width: "min(370px, calc(100vw - 24px))",
|
|
@@ -3561,12 +3714,12 @@ function OrganizationSelector({
|
|
|
3561
3714
|
backgroundColor: ({ palette }) => palette.mode === "dark" ? palette.grey[700] : palette.grey[100],
|
|
3562
3715
|
borderRadius: 3,
|
|
3563
3716
|
p: 1.5,
|
|
3564
|
-
boxShadow: ({ palette }) => `0 4px 24px 0 ${
|
|
3717
|
+
boxShadow: ({ palette }) => `0 4px 24px 0 ${alpha5(palette.common.black, 0.15)}`,
|
|
3565
3718
|
overflow: "auto",
|
|
3566
3719
|
...sx
|
|
3567
3720
|
},
|
|
3568
3721
|
...props,
|
|
3569
|
-
children: loading ? /* @__PURE__ */
|
|
3722
|
+
children: loading ? /* @__PURE__ */ jsx30(CircularProgress, { size: 40, sx: { mx: "auto", my: "auto" } }) : children
|
|
3570
3723
|
}
|
|
3571
3724
|
);
|
|
3572
3725
|
}
|
|
@@ -3577,14 +3730,14 @@ function OrganizationItemList({
|
|
|
3577
3730
|
sx
|
|
3578
3731
|
}) {
|
|
3579
3732
|
const items = Children2.toArray(children).filter(isValidElement);
|
|
3580
|
-
return /* @__PURE__ */ jsxs13(
|
|
3581
|
-
/* @__PURE__ */
|
|
3733
|
+
return /* @__PURE__ */ jsxs13(Fragment8, { children: [
|
|
3734
|
+
/* @__PURE__ */ jsx30(
|
|
3582
3735
|
List2,
|
|
3583
3736
|
{
|
|
3584
3737
|
disablePadding: true,
|
|
3585
3738
|
sx: {
|
|
3586
3739
|
border: 0.6,
|
|
3587
|
-
borderColor: ({ palette }) => palette.mode === "dark" ?
|
|
3740
|
+
borderColor: ({ palette }) => palette.mode === "dark" ? alpha5(palette.common.white, 0.12) : alpha5(palette.grey[900], 0.15),
|
|
3588
3741
|
borderRadius: 2,
|
|
3589
3742
|
...maxHeight !== void 0 && {
|
|
3590
3743
|
overflow: "auto",
|
|
@@ -3592,18 +3745,18 @@ function OrganizationItemList({
|
|
|
3592
3745
|
},
|
|
3593
3746
|
...sx
|
|
3594
3747
|
},
|
|
3595
|
-
children: items.map((item, i) => /* @__PURE__ */ jsxs13(
|
|
3748
|
+
children: items.map((item, i) => /* @__PURE__ */ jsxs13(Fragment7, { children: [
|
|
3596
3749
|
item,
|
|
3597
|
-
i !== items.length - 1 && /* @__PURE__ */
|
|
3750
|
+
i !== items.length - 1 && /* @__PURE__ */ jsx30(Divider4, {})
|
|
3598
3751
|
] }, item.key ?? i))
|
|
3599
3752
|
}
|
|
3600
3753
|
),
|
|
3601
|
-
label && /* @__PURE__ */
|
|
3754
|
+
label && /* @__PURE__ */ jsx30(Divider4, { sx: { py: 1, userSelect: "none" }, children: label })
|
|
3602
3755
|
] });
|
|
3603
3756
|
}
|
|
3604
3757
|
function renderText(value, defaults) {
|
|
3605
3758
|
if (typeof value === "string" || typeof value === "number") {
|
|
3606
|
-
return /* @__PURE__ */
|
|
3759
|
+
return /* @__PURE__ */ jsx30(
|
|
3607
3760
|
Typography8,
|
|
3608
3761
|
{
|
|
3609
3762
|
variant: defaults.variant,
|
|
@@ -3625,7 +3778,7 @@ function OrganizationItem({
|
|
|
3625
3778
|
sx,
|
|
3626
3779
|
...props
|
|
3627
3780
|
}) {
|
|
3628
|
-
return /* @__PURE__ */
|
|
3781
|
+
return /* @__PURE__ */ jsx30(ListItem2, { disablePadding: true, children: /* @__PURE__ */ jsxs13(
|
|
3629
3782
|
ListItemButton3,
|
|
3630
3783
|
{
|
|
3631
3784
|
disabled: isCurrent,
|
|
@@ -3639,8 +3792,8 @@ function OrganizationItem({
|
|
|
3639
3792
|
},
|
|
3640
3793
|
...props,
|
|
3641
3794
|
children: [
|
|
3642
|
-
/* @__PURE__ */
|
|
3643
|
-
|
|
3795
|
+
/* @__PURE__ */ jsx30(
|
|
3796
|
+
Box16,
|
|
3644
3797
|
{
|
|
3645
3798
|
sx: {
|
|
3646
3799
|
width: 40,
|
|
@@ -3656,8 +3809,8 @@ function OrganizationItem({
|
|
|
3656
3809
|
boxShadow: ({ palette }) => `0 0 0 2px ${palette.info.main}`
|
|
3657
3810
|
}
|
|
3658
3811
|
},
|
|
3659
|
-
children: typeof logo === "string" ? /* @__PURE__ */
|
|
3660
|
-
|
|
3812
|
+
children: typeof logo === "string" ? /* @__PURE__ */ jsx30(
|
|
3813
|
+
Box16,
|
|
3661
3814
|
{
|
|
3662
3815
|
component: "img",
|
|
3663
3816
|
src: logo,
|
|
@@ -3666,8 +3819,8 @@ function OrganizationItem({
|
|
|
3666
3819
|
) : logo
|
|
3667
3820
|
}
|
|
3668
3821
|
),
|
|
3669
|
-
/* @__PURE__ */ jsxs13(
|
|
3670
|
-
/* @__PURE__ */ jsxs13(
|
|
3822
|
+
/* @__PURE__ */ jsxs13(Stack9, { gap: 0.25, sx: { width: "100%", minWidth: 0 }, children: [
|
|
3823
|
+
/* @__PURE__ */ jsxs13(Stack9, { direction: "row", justifyContent: "space-between", gap: 1, children: [
|
|
3671
3824
|
renderText(primaryText, {
|
|
3672
3825
|
variant: "body2",
|
|
3673
3826
|
fontWeight: 600,
|
|
@@ -3680,7 +3833,7 @@ function OrganizationItem({
|
|
|
3680
3833
|
color: "text.secondary"
|
|
3681
3834
|
})
|
|
3682
3835
|
] }),
|
|
3683
|
-
/* @__PURE__ */
|
|
3836
|
+
/* @__PURE__ */ jsx30(
|
|
3684
3837
|
ChevronRightIcon2,
|
|
3685
3838
|
{
|
|
3686
3839
|
variant: "xs",
|
|
@@ -3720,7 +3873,7 @@ function OrganizationSelectorButton({
|
|
|
3720
3873
|
...props,
|
|
3721
3874
|
children: [
|
|
3722
3875
|
icon,
|
|
3723
|
-
/* @__PURE__ */
|
|
3876
|
+
/* @__PURE__ */ jsx30(
|
|
3724
3877
|
Typography8,
|
|
3725
3878
|
{
|
|
3726
3879
|
variant: "caption",
|
|
@@ -3730,13 +3883,13 @@ function OrganizationSelectorButton({
|
|
|
3730
3883
|
children: name
|
|
3731
3884
|
}
|
|
3732
3885
|
),
|
|
3733
|
-
open ? /* @__PURE__ */
|
|
3886
|
+
open ? /* @__PURE__ */ jsx30(
|
|
3734
3887
|
ChevronUpIcon,
|
|
3735
3888
|
{
|
|
3736
3889
|
variant: "xs",
|
|
3737
3890
|
sx: { width: 16, height: 16, flexShrink: 0, color: "text.secondary" }
|
|
3738
3891
|
}
|
|
3739
|
-
) : /* @__PURE__ */
|
|
3892
|
+
) : /* @__PURE__ */ jsx30(
|
|
3740
3893
|
ChevronDownIcon2,
|
|
3741
3894
|
{
|
|
3742
3895
|
variant: "xs",
|
|
@@ -3754,8 +3907,8 @@ function OrganizationSelectorPopover({
|
|
|
3754
3907
|
transformOrigin,
|
|
3755
3908
|
...props
|
|
3756
3909
|
}) {
|
|
3757
|
-
return /* @__PURE__ */
|
|
3758
|
-
|
|
3910
|
+
return /* @__PURE__ */ jsx30(
|
|
3911
|
+
Popover4,
|
|
3759
3912
|
{
|
|
3760
3913
|
anchorOrigin: anchorOrigin ?? { vertical: "bottom", horizontal: "right" },
|
|
3761
3914
|
transformOrigin: transformOrigin ?? { vertical: -8, horizontal: "right" },
|
|
@@ -3770,16 +3923,16 @@ function OrganizationSelectorPopover({
|
|
|
3770
3923
|
}
|
|
3771
3924
|
},
|
|
3772
3925
|
...props,
|
|
3773
|
-
children: /* @__PURE__ */
|
|
3926
|
+
children: /* @__PURE__ */ jsx30(OrganizationSelector, { loading, children })
|
|
3774
3927
|
}
|
|
3775
3928
|
);
|
|
3776
3929
|
}
|
|
3777
3930
|
|
|
3778
3931
|
// src/UserInitialsIcon/UserInitialsIcon.tsx
|
|
3779
3932
|
var import_randomcolor = __toESM(require_randomColor(), 1);
|
|
3780
|
-
import { Box as
|
|
3933
|
+
import { Box as Box17, Typography as Typography9 } from "@mui/material";
|
|
3781
3934
|
import { darken } from "@mui/material/styles";
|
|
3782
|
-
import { jsx as
|
|
3935
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
3783
3936
|
var DEFAULT_SIZE = 40;
|
|
3784
3937
|
var DEFAULT_BORDER_RADIUS = 1.5;
|
|
3785
3938
|
var TEXT_RATIO = 0.4;
|
|
@@ -3797,8 +3950,8 @@ function UserInitialsIcon({
|
|
|
3797
3950
|
const textColor = darken((0, import_randomcolor.default)({ luminosity: "dark", seed: id }), 0.3);
|
|
3798
3951
|
const size = typeof width === "number" ? width : DEFAULT_SIZE;
|
|
3799
3952
|
const fontSize = size * TEXT_RATIO;
|
|
3800
|
-
return /* @__PURE__ */
|
|
3801
|
-
|
|
3953
|
+
return /* @__PURE__ */ jsx31(
|
|
3954
|
+
Box17,
|
|
3802
3955
|
{
|
|
3803
3956
|
minWidth: width,
|
|
3804
3957
|
width,
|
|
@@ -3811,7 +3964,7 @@ function UserInitialsIcon({
|
|
|
3811
3964
|
justifyContent: "center",
|
|
3812
3965
|
sx: { ...sx },
|
|
3813
3966
|
...props,
|
|
3814
|
-
children: /* @__PURE__ */
|
|
3967
|
+
children: /* @__PURE__ */ jsx31(
|
|
3815
3968
|
Typography9,
|
|
3816
3969
|
{
|
|
3817
3970
|
variant: "h3",
|
|
@@ -3834,9 +3987,9 @@ var getInitials = (name) => {
|
|
|
3834
3987
|
};
|
|
3835
3988
|
|
|
3836
3989
|
// src/DynamicSvgIcon/DynamicSvgIcon.tsx
|
|
3837
|
-
import { SvgIcon, Skeleton, Box as
|
|
3990
|
+
import { SvgIcon, Skeleton, Box as Box18 } from "@mui/material";
|
|
3838
3991
|
import { useEffect as useEffect6, useState as useState9 } from "react";
|
|
3839
|
-
import { jsx as
|
|
3992
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3840
3993
|
var svgCache = /* @__PURE__ */ new Map();
|
|
3841
3994
|
function clearDynamicSvgIconCache() {
|
|
3842
3995
|
svgCache.clear();
|
|
@@ -3938,7 +4091,7 @@ function DynamicSvgIcon({
|
|
|
3938
4091
|
onError
|
|
3939
4092
|
});
|
|
3940
4093
|
if (loading) {
|
|
3941
|
-
return /* @__PURE__ */
|
|
4094
|
+
return /* @__PURE__ */ jsx32(
|
|
3942
4095
|
Skeleton,
|
|
3943
4096
|
{
|
|
3944
4097
|
variant: skeletonVariant,
|
|
@@ -3948,8 +4101,8 @@ function DynamicSvgIcon({
|
|
|
3948
4101
|
);
|
|
3949
4102
|
}
|
|
3950
4103
|
if (error || !svgContent) {
|
|
3951
|
-
return /* @__PURE__ */
|
|
3952
|
-
|
|
4104
|
+
return /* @__PURE__ */ jsx32(
|
|
4105
|
+
Box18,
|
|
3953
4106
|
{
|
|
3954
4107
|
sx: {
|
|
3955
4108
|
width,
|
|
@@ -3968,7 +4121,7 @@ function DynamicSvgIcon({
|
|
|
3968
4121
|
}
|
|
3969
4122
|
);
|
|
3970
4123
|
}
|
|
3971
|
-
return /* @__PURE__ */
|
|
4124
|
+
return /* @__PURE__ */ jsx32(
|
|
3972
4125
|
SvgIcon,
|
|
3973
4126
|
{
|
|
3974
4127
|
...svgIconProps,
|
|
@@ -3978,7 +4131,7 @@ function DynamicSvgIcon({
|
|
|
3978
4131
|
width,
|
|
3979
4132
|
height
|
|
3980
4133
|
},
|
|
3981
|
-
children: /* @__PURE__ */
|
|
4134
|
+
children: /* @__PURE__ */ jsx32("g", { dangerouslySetInnerHTML: { __html: svgContent } })
|
|
3982
4135
|
}
|
|
3983
4136
|
);
|
|
3984
4137
|
}
|
|
@@ -3993,6 +4146,7 @@ export {
|
|
|
3993
4146
|
BiampBannerIcon,
|
|
3994
4147
|
BiampBuildAppContent,
|
|
3995
4148
|
BiampBuildAppContentItem,
|
|
4149
|
+
BiampCheckboxListPopover,
|
|
3996
4150
|
BiampEndUserAppContent,
|
|
3997
4151
|
BiampEndUserAppContentItem,
|
|
3998
4152
|
BiampGlobalSearch,
|
|
@@ -4005,6 +4159,12 @@ export {
|
|
|
4005
4159
|
BiampHeaderSearch,
|
|
4006
4160
|
BiampHeaderTitle,
|
|
4007
4161
|
BiampLayout,
|
|
4162
|
+
BiampListPopover,
|
|
4163
|
+
BiampListPopoverItem,
|
|
4164
|
+
BiampListPopoverScrollArea,
|
|
4165
|
+
BiampNotificationPopover,
|
|
4166
|
+
BiampNotificationPopoverBody,
|
|
4167
|
+
BiampNotificationPopoverHeader,
|
|
4008
4168
|
BiampSidebar,
|
|
4009
4169
|
BiampSidebarComponent,
|
|
4010
4170
|
BiampSidebarIcon,
|