@bwp-web/components 1.9.7 → 1.10.1
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 +157 -40
- 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/OrganizationSelector/OrganizationSelector.d.ts +1 -1
- package/dist/OrganizationSelector/OrganizationSelector.d.ts.map +1 -1
- package/dist/index.cjs +477 -310
- 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 +439 -277
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -160,8 +160,8 @@ var require_randomColor = __commonJS({
|
|
|
160
160
|
return "hsl(" + hsl[0] + ", " + hsl[1] + "%, " + hsl[2] + "%)";
|
|
161
161
|
case "hsla":
|
|
162
162
|
var hslColor = HSVtoHSL(hsv);
|
|
163
|
-
var
|
|
164
|
-
return "hsla(" + hslColor[0] + ", " + hslColor[1] + "%, " + hslColor[2] + "%, " +
|
|
163
|
+
var alpha6 = options.alpha || Math.random();
|
|
164
|
+
return "hsla(" + hslColor[0] + ", " + hslColor[1] + "%, " + hslColor[2] + "%, " + alpha6 + ")";
|
|
165
165
|
case "rgbArray":
|
|
166
166
|
return HSVtoRGB(hsv);
|
|
167
167
|
case "rgb":
|
|
@@ -169,8 +169,8 @@ var require_randomColor = __commonJS({
|
|
|
169
169
|
return "rgb(" + rgb.join(", ") + ")";
|
|
170
170
|
case "rgba":
|
|
171
171
|
var rgbColor = HSVtoRGB(hsv);
|
|
172
|
-
var
|
|
173
|
-
return "rgba(" + rgbColor.join(", ") + ", " +
|
|
172
|
+
var alpha6 = options.alpha || Math.random();
|
|
173
|
+
return "rgba(" + rgbColor.join(", ") + ", " + alpha6 + ")";
|
|
174
174
|
default:
|
|
175
175
|
return HSVtoHex(hsv);
|
|
176
176
|
}
|
|
@@ -410,6 +410,7 @@ __export(index_exports, {
|
|
|
410
410
|
BiampBannerIcon: () => BiampBannerIcon,
|
|
411
411
|
BiampBuildAppContent: () => BiampBuildAppContent,
|
|
412
412
|
BiampBuildAppContentItem: () => BiampBuildAppContentItem,
|
|
413
|
+
BiampCheckboxListPopover: () => BiampCheckboxListPopover,
|
|
413
414
|
BiampEndUserAppContent: () => BiampEndUserAppContent,
|
|
414
415
|
BiampEndUserAppContentItem: () => BiampEndUserAppContentItem,
|
|
415
416
|
BiampGlobalSearch: () => BiampGlobalSearch,
|
|
@@ -422,6 +423,12 @@ __export(index_exports, {
|
|
|
422
423
|
BiampHeaderSearch: () => BiampHeaderSearch,
|
|
423
424
|
BiampHeaderTitle: () => BiampHeaderTitle,
|
|
424
425
|
BiampLayout: () => BiampLayout,
|
|
426
|
+
BiampListPopover: () => BiampListPopover,
|
|
427
|
+
BiampListPopoverItem: () => BiampListPopoverItem,
|
|
428
|
+
BiampListPopoverScrollArea: () => BiampListPopoverScrollArea,
|
|
429
|
+
BiampNotificationPopover: () => BiampNotificationPopover,
|
|
430
|
+
BiampNotificationPopoverBody: () => BiampNotificationPopoverBody,
|
|
431
|
+
BiampNotificationPopoverHeader: () => BiampNotificationPopoverHeader,
|
|
425
432
|
BiampSidebar: () => BiampSidebar,
|
|
426
433
|
BiampSidebarComponent: () => BiampSidebarComponent,
|
|
427
434
|
BiampSidebarIcon: () => BiampSidebarIcon,
|
|
@@ -1475,7 +1482,7 @@ function BiampHeaderButton({
|
|
|
1475
1482
|
}
|
|
1476
1483
|
);
|
|
1477
1484
|
}
|
|
1478
|
-
var
|
|
1485
|
+
var APP_POPOVER_MAX_WIDTH = 350;
|
|
1479
1486
|
function BiampAppPopover({
|
|
1480
1487
|
children,
|
|
1481
1488
|
open,
|
|
@@ -1487,7 +1494,7 @@ function BiampAppPopover({
|
|
|
1487
1494
|
{
|
|
1488
1495
|
open,
|
|
1489
1496
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
1490
|
-
transformOrigin: { vertical: -
|
|
1497
|
+
transformOrigin: { vertical: -4, horizontal: APP_POPOVER_MAX_WIDTH },
|
|
1491
1498
|
sx: { ...sx },
|
|
1492
1499
|
slotProps: {
|
|
1493
1500
|
paper: {
|
|
@@ -1498,7 +1505,7 @@ function BiampAppPopover({
|
|
|
1498
1505
|
outlineStyle: "solid",
|
|
1499
1506
|
outlineColor: ({ palette }) => palette.divider,
|
|
1500
1507
|
boxShadow: ({ palette }) => `0px 4px 50px 0px ${(0, import_material5.alpha)(palette.grey[900], 0.1)}`,
|
|
1501
|
-
maxWidth:
|
|
1508
|
+
maxWidth: APP_POPOVER_MAX_WIDTH,
|
|
1502
1509
|
width: "100%",
|
|
1503
1510
|
p: 2,
|
|
1504
1511
|
display: "flex",
|
|
@@ -1779,8 +1786,215 @@ function BiampHeaderProfile({
|
|
|
1779
1786
|
);
|
|
1780
1787
|
}
|
|
1781
1788
|
|
|
1789
|
+
// src/BiampNotificationPopover/BiampNotificationPopover.tsx
|
|
1790
|
+
var import_material6 = require("@mui/material");
|
|
1791
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
1792
|
+
var NOTIFICATION_POPOVER_MAX_WIDTH = 420;
|
|
1793
|
+
function BiampNotificationPopover({
|
|
1794
|
+
children,
|
|
1795
|
+
open,
|
|
1796
|
+
sx,
|
|
1797
|
+
...props
|
|
1798
|
+
}) {
|
|
1799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1800
|
+
import_material6.Popover,
|
|
1801
|
+
{
|
|
1802
|
+
open,
|
|
1803
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
1804
|
+
transformOrigin: {
|
|
1805
|
+
vertical: -4,
|
|
1806
|
+
horizontal: NOTIFICATION_POPOVER_MAX_WIDTH
|
|
1807
|
+
},
|
|
1808
|
+
sx: { ...sx },
|
|
1809
|
+
slotProps: {
|
|
1810
|
+
paper: {
|
|
1811
|
+
sx: {
|
|
1812
|
+
borderRadius: "12px",
|
|
1813
|
+
backgroundImage: "none",
|
|
1814
|
+
outlineWidth: "0.6px",
|
|
1815
|
+
outlineStyle: "solid",
|
|
1816
|
+
outlineColor: ({ palette }) => palette.divider,
|
|
1817
|
+
boxShadow: ({ palette }) => `0px 4px 50px 0px ${(0, import_material6.alpha)(palette.grey[900], 0.1)}`,
|
|
1818
|
+
maxWidth: NOTIFICATION_POPOVER_MAX_WIDTH,
|
|
1819
|
+
maxHeight: "650px",
|
|
1820
|
+
width: "100%",
|
|
1821
|
+
display: "flex",
|
|
1822
|
+
flexDirection: "column",
|
|
1823
|
+
overflow: "hidden"
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
},
|
|
1827
|
+
...props,
|
|
1828
|
+
children
|
|
1829
|
+
}
|
|
1830
|
+
);
|
|
1831
|
+
}
|
|
1832
|
+
function BiampNotificationPopoverHeader({
|
|
1833
|
+
sx,
|
|
1834
|
+
...props
|
|
1835
|
+
}) {
|
|
1836
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1837
|
+
import_material6.Stack,
|
|
1838
|
+
{
|
|
1839
|
+
direction: "row",
|
|
1840
|
+
alignItems: "center",
|
|
1841
|
+
justifyContent: "space-between",
|
|
1842
|
+
sx: {
|
|
1843
|
+
flexShrink: 0,
|
|
1844
|
+
gap: 2,
|
|
1845
|
+
px: 2,
|
|
1846
|
+
pt: 2,
|
|
1847
|
+
...sx
|
|
1848
|
+
},
|
|
1849
|
+
...props
|
|
1850
|
+
}
|
|
1851
|
+
);
|
|
1852
|
+
}
|
|
1853
|
+
function BiampNotificationPopoverBody({
|
|
1854
|
+
sx,
|
|
1855
|
+
...props
|
|
1856
|
+
}) {
|
|
1857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1858
|
+
import_material6.Box,
|
|
1859
|
+
{
|
|
1860
|
+
sx: {
|
|
1861
|
+
flex: 1,
|
|
1862
|
+
minHeight: 0,
|
|
1863
|
+
overflowY: "auto",
|
|
1864
|
+
overscrollBehavior: "none",
|
|
1865
|
+
px: 2,
|
|
1866
|
+
pb: 2,
|
|
1867
|
+
...sx
|
|
1868
|
+
},
|
|
1869
|
+
...props
|
|
1870
|
+
}
|
|
1871
|
+
);
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
// src/BiampListPopover/BiampListPopover.tsx
|
|
1875
|
+
var import_material7 = require("@mui/material");
|
|
1876
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
1877
|
+
function BiampListPopover({
|
|
1878
|
+
children,
|
|
1879
|
+
slotProps,
|
|
1880
|
+
...props
|
|
1881
|
+
}) {
|
|
1882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1883
|
+
import_material7.Popover,
|
|
1884
|
+
{
|
|
1885
|
+
slotProps: {
|
|
1886
|
+
...slotProps,
|
|
1887
|
+
paper: {
|
|
1888
|
+
sx: ({ palette }) => ({
|
|
1889
|
+
borderRadius: "6px",
|
|
1890
|
+
backgroundImage: "none",
|
|
1891
|
+
border: `0.6px solid ${palette.dividers.secondary}`,
|
|
1892
|
+
boxShadow: `0px 1px 1px 0px ${(0, import_material7.alpha)(palette.common.black, 0.05)}`,
|
|
1893
|
+
minWidth: "150px"
|
|
1894
|
+
}),
|
|
1895
|
+
...slotProps?.paper ?? {}
|
|
1896
|
+
}
|
|
1897
|
+
},
|
|
1898
|
+
...props,
|
|
1899
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.List, { dense: true, disablePadding: true, children })
|
|
1900
|
+
}
|
|
1901
|
+
);
|
|
1902
|
+
}
|
|
1903
|
+
var listItemSx = {
|
|
1904
|
+
py: 0,
|
|
1905
|
+
pr: 1.5,
|
|
1906
|
+
pl: 0,
|
|
1907
|
+
alignItems: "center",
|
|
1908
|
+
cursor: "pointer",
|
|
1909
|
+
"&:hover": {
|
|
1910
|
+
backgroundColor: ({ palette }) => palette.mode === "dark" ? palette.grey[800] : palette.grey[100]
|
|
1911
|
+
}
|
|
1912
|
+
};
|
|
1913
|
+
function BiampListPopoverItem({
|
|
1914
|
+
sx,
|
|
1915
|
+
...props
|
|
1916
|
+
}) {
|
|
1917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1918
|
+
import_material7.ListItem,
|
|
1919
|
+
{
|
|
1920
|
+
dense: true,
|
|
1921
|
+
sx: [listItemSx, ...Array.isArray(sx) ? sx : [sx]],
|
|
1922
|
+
...props
|
|
1923
|
+
}
|
|
1924
|
+
);
|
|
1925
|
+
}
|
|
1926
|
+
function BiampListPopoverScrollArea({
|
|
1927
|
+
maxHeight = 340,
|
|
1928
|
+
sx,
|
|
1929
|
+
...props
|
|
1930
|
+
}) {
|
|
1931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1932
|
+
import_material7.Box,
|
|
1933
|
+
{
|
|
1934
|
+
sx: { maxHeight, overflow: "auto", overscrollBehavior: "none", ...sx },
|
|
1935
|
+
...props
|
|
1936
|
+
}
|
|
1937
|
+
);
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
// src/BiampCheckboxListPopover/BiampCheckboxListPopover.tsx
|
|
1941
|
+
var import_material8 = require("@mui/material");
|
|
1942
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
1943
|
+
function resolveAria(label, ariaLabel) {
|
|
1944
|
+
if (ariaLabel) return ariaLabel;
|
|
1945
|
+
return typeof label === "string" ? label : void 0;
|
|
1946
|
+
}
|
|
1947
|
+
function BiampCheckboxListPopover({
|
|
1948
|
+
items,
|
|
1949
|
+
onToggleItem,
|
|
1950
|
+
showSelectAll = true,
|
|
1951
|
+
selectAllLabel = "Show all",
|
|
1952
|
+
onToggleAll,
|
|
1953
|
+
maxHeight,
|
|
1954
|
+
...popoverProps
|
|
1955
|
+
}) {
|
|
1956
|
+
const allChecked = items.length > 0 && items.every((item) => item.checked);
|
|
1957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(BiampListPopover, { ...popoverProps, children: [
|
|
1958
|
+
showSelectAll && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
1959
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(BiampListPopoverItem, { onClick: () => onToggleAll?.(!allChecked), children: [
|
|
1960
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1961
|
+
import_material8.Checkbox,
|
|
1962
|
+
{
|
|
1963
|
+
checked: allChecked,
|
|
1964
|
+
slotProps: { input: { "aria-label": selectAllLabel } }
|
|
1965
|
+
}
|
|
1966
|
+
),
|
|
1967
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.Typography, { variant: "caption", fontWeight: 600, children: selectAllLabel })
|
|
1968
|
+
] }),
|
|
1969
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.Divider, {})
|
|
1970
|
+
] }),
|
|
1971
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BiampListPopoverScrollArea, { maxHeight, children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
1972
|
+
BiampListPopoverItem,
|
|
1973
|
+
{
|
|
1974
|
+
onClick: () => onToggleItem(item.id),
|
|
1975
|
+
children: [
|
|
1976
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1977
|
+
import_material8.Checkbox,
|
|
1978
|
+
{
|
|
1979
|
+
checked: item.checked,
|
|
1980
|
+
sx: { py: 1 },
|
|
1981
|
+
slotProps: {
|
|
1982
|
+
input: {
|
|
1983
|
+
"aria-label": resolveAria(item.label, item.ariaLabel)
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
),
|
|
1988
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.Typography, { variant: "caption", children: item.label })
|
|
1989
|
+
]
|
|
1990
|
+
},
|
|
1991
|
+
item.id
|
|
1992
|
+
)) })
|
|
1993
|
+
] });
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1782
1996
|
// src/BiampTable/BiampTable.tsx
|
|
1783
|
-
var
|
|
1997
|
+
var import_material13 = require("@mui/material");
|
|
1784
1998
|
var import_assets8 = require("@bwp-web/assets");
|
|
1785
1999
|
var import_react_table2 = require("@tanstack/react-table");
|
|
1786
2000
|
var import_react9 = require("react");
|
|
@@ -1789,9 +2003,9 @@ var import_react9 = require("react");
|
|
|
1789
2003
|
var import_assets5 = require("@bwp-web/assets");
|
|
1790
2004
|
|
|
1791
2005
|
// src/BiampTable/BiampTableStatusMessage.tsx
|
|
1792
|
-
var
|
|
2006
|
+
var import_material9 = require("@mui/material");
|
|
1793
2007
|
var import_react6 = require("react");
|
|
1794
|
-
var
|
|
2008
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1795
2009
|
function BiampTableStatusMessage({
|
|
1796
2010
|
icon,
|
|
1797
2011
|
title,
|
|
@@ -1799,25 +2013,25 @@ function BiampTableStatusMessage({
|
|
|
1799
2013
|
children,
|
|
1800
2014
|
...stackProps
|
|
1801
2015
|
}) {
|
|
1802
|
-
return /* @__PURE__ */ (0,
|
|
2016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_material9.Stack, { alignItems: "center", gap: 1.5, ...stackProps, children: [
|
|
1803
2017
|
(0, import_react6.cloneElement)(icon, {
|
|
1804
2018
|
"aria-hidden": true,
|
|
1805
2019
|
sx: { width: 56, height: 56, ...icon.props.sx }
|
|
1806
2020
|
}),
|
|
1807
|
-
/* @__PURE__ */ (0,
|
|
1808
|
-
description && /* @__PURE__ */ (0,
|
|
2021
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material9.Typography, { variant: "h2", children: title }),
|
|
2022
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material9.Typography, { variant: "body1", children: description }),
|
|
1809
2023
|
children
|
|
1810
2024
|
] });
|
|
1811
2025
|
}
|
|
1812
2026
|
|
|
1813
2027
|
// src/BiampTable/BiampTableEmptyState.tsx
|
|
1814
|
-
var
|
|
2028
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1815
2029
|
function BiampTableEmptyState({
|
|
1816
|
-
icon = /* @__PURE__ */ (0,
|
|
2030
|
+
icon = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_assets5.NoResultsIcon, {}),
|
|
1817
2031
|
title = "Nothing to show",
|
|
1818
2032
|
...rest
|
|
1819
2033
|
}) {
|
|
1820
|
-
return /* @__PURE__ */ (0,
|
|
2034
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1821
2035
|
BiampTableStatusMessage,
|
|
1822
2036
|
{
|
|
1823
2037
|
role: "status",
|
|
@@ -1830,25 +2044,25 @@ function BiampTableEmptyState({
|
|
|
1830
2044
|
|
|
1831
2045
|
// src/BiampTable/BiampTableErrorState.tsx
|
|
1832
2046
|
var import_assets6 = require("@bwp-web/assets");
|
|
1833
|
-
var
|
|
2047
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1834
2048
|
function BiampTableErrorState({
|
|
1835
|
-
icon = /* @__PURE__ */ (0,
|
|
2049
|
+
icon = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_assets6.ServiceNotReachableIcon, {}),
|
|
1836
2050
|
title = "Failed to load",
|
|
1837
2051
|
...rest
|
|
1838
2052
|
}) {
|
|
1839
|
-
return /* @__PURE__ */ (0,
|
|
2053
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(BiampTableStatusMessage, { role: "alert", icon, title, ...rest });
|
|
1840
2054
|
}
|
|
1841
2055
|
|
|
1842
2056
|
// src/BiampTable/BiampTableRow.tsx
|
|
1843
|
-
var
|
|
2057
|
+
var import_material12 = require("@mui/material");
|
|
1844
2058
|
var import_assets7 = require("@bwp-web/assets");
|
|
1845
2059
|
var import_react_table = require("@tanstack/react-table");
|
|
1846
2060
|
var import_react8 = __toESM(require("react"), 1);
|
|
1847
2061
|
|
|
1848
2062
|
// src/BiampTable/BiampTableTruncatedCell.tsx
|
|
1849
|
-
var
|
|
2063
|
+
var import_material10 = require("@mui/material");
|
|
1850
2064
|
var import_react7 = require("react");
|
|
1851
|
-
var
|
|
2065
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1852
2066
|
function BiampTableTruncatedCell({
|
|
1853
2067
|
children
|
|
1854
2068
|
}) {
|
|
@@ -1863,16 +2077,16 @@ function BiampTableTruncatedCell({
|
|
|
1863
2077
|
const handleMouseLeave = (0, import_react7.useCallback)(() => {
|
|
1864
2078
|
setOpen(false);
|
|
1865
2079
|
}, []);
|
|
1866
|
-
return /* @__PURE__ */ (0,
|
|
1867
|
-
|
|
2080
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2081
|
+
import_material10.Tooltip,
|
|
1868
2082
|
{
|
|
1869
2083
|
title: children,
|
|
1870
2084
|
open,
|
|
1871
2085
|
arrow: true,
|
|
1872
2086
|
placement: "top",
|
|
1873
2087
|
disableInteractive: true,
|
|
1874
|
-
children: /* @__PURE__ */ (0,
|
|
1875
|
-
|
|
2088
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2089
|
+
import_material10.Box,
|
|
1876
2090
|
{
|
|
1877
2091
|
"data-truncate": true,
|
|
1878
2092
|
ref: textRef,
|
|
@@ -1929,8 +2143,8 @@ function cellSx(sticky, minWidth, zIndex) {
|
|
|
1929
2143
|
}
|
|
1930
2144
|
|
|
1931
2145
|
// src/BiampTable/BiampTableExpandGuidelines.tsx
|
|
1932
|
-
var
|
|
1933
|
-
var
|
|
2146
|
+
var import_material11 = require("@mui/material");
|
|
2147
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1934
2148
|
var guidelineIndent = 28;
|
|
1935
2149
|
var guidelineCellPaddingLeft = 12;
|
|
1936
2150
|
var guidelineLineOffsetFromParentText = 4;
|
|
@@ -1964,8 +2178,8 @@ function ExpandGuidelines({ row }) {
|
|
|
1964
2178
|
const ancestor = getAncestorAtDepth(row, k);
|
|
1965
2179
|
if (!ancestor || isLastChildOfParent(ancestor)) continue;
|
|
1966
2180
|
lines.push(
|
|
1967
|
-
/* @__PURE__ */ (0,
|
|
1968
|
-
|
|
2181
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2182
|
+
import_material11.Box,
|
|
1969
2183
|
{
|
|
1970
2184
|
"aria-hidden": true,
|
|
1971
2185
|
sx: {
|
|
@@ -1987,8 +2201,8 @@ function ExpandGuidelines({ row }) {
|
|
|
1987
2201
|
const rowIsFirst = isFirstChildOfParent(row);
|
|
1988
2202
|
const elbowTopOffset = rowIsFirst ? -guidelineFirstChildTopExtension : 0;
|
|
1989
2203
|
lines.push(
|
|
1990
|
-
/* @__PURE__ */ (0,
|
|
1991
|
-
|
|
2204
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2205
|
+
import_material11.Box,
|
|
1992
2206
|
{
|
|
1993
2207
|
"aria-hidden": true,
|
|
1994
2208
|
sx: {
|
|
@@ -2006,8 +2220,8 @@ function ExpandGuidelines({ row }) {
|
|
|
2006
2220
|
);
|
|
2007
2221
|
if (!rowIsLast) {
|
|
2008
2222
|
lines.push(
|
|
2009
|
-
/* @__PURE__ */ (0,
|
|
2010
|
-
|
|
2223
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2224
|
+
import_material11.Box,
|
|
2011
2225
|
{
|
|
2012
2226
|
"aria-hidden": true,
|
|
2013
2227
|
sx: {
|
|
@@ -2025,8 +2239,8 @@ function ExpandGuidelines({ row }) {
|
|
|
2025
2239
|
);
|
|
2026
2240
|
}
|
|
2027
2241
|
lines.push(
|
|
2028
|
-
/* @__PURE__ */ (0,
|
|
2029
|
-
|
|
2242
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2243
|
+
import_material11.Box,
|
|
2030
2244
|
{
|
|
2031
2245
|
"aria-hidden": true,
|
|
2032
2246
|
sx: {
|
|
@@ -2042,11 +2256,11 @@ function ExpandGuidelines({ row }) {
|
|
|
2042
2256
|
"h-elbow"
|
|
2043
2257
|
)
|
|
2044
2258
|
);
|
|
2045
|
-
return /* @__PURE__ */ (0,
|
|
2259
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, { children: lines });
|
|
2046
2260
|
}
|
|
2047
2261
|
|
|
2048
2262
|
// src/BiampTable/BiampTableRow.tsx
|
|
2049
|
-
var
|
|
2263
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
2050
2264
|
var rowCursorPointerSx = { cursor: "pointer" };
|
|
2051
2265
|
var selectionCellSx = {
|
|
2052
2266
|
position: "sticky",
|
|
@@ -2069,8 +2283,8 @@ function ExpandToggle({
|
|
|
2069
2283
|
rowLabel
|
|
2070
2284
|
}) {
|
|
2071
2285
|
if (row.getCanExpand()) {
|
|
2072
|
-
return /* @__PURE__ */ (0,
|
|
2073
|
-
|
|
2286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
2287
|
+
import_material12.IconButton,
|
|
2074
2288
|
{
|
|
2075
2289
|
variant: "none",
|
|
2076
2290
|
onClick: (e) => {
|
|
@@ -2079,13 +2293,13 @@ function ExpandToggle({
|
|
|
2079
2293
|
},
|
|
2080
2294
|
"aria-label": isExpanded ? `Collapse ${rowLabel}` : `Expand ${rowLabel}`,
|
|
2081
2295
|
"aria-expanded": isExpanded,
|
|
2082
|
-
children: isExpanded ? /* @__PURE__ */ (0,
|
|
2296
|
+
children: isExpanded ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
2083
2297
|
import_assets7.ChevronDownIcon,
|
|
2084
2298
|
{
|
|
2085
2299
|
variant: "xs",
|
|
2086
2300
|
sx: { color: ({ palette }) => palette.text.secondary }
|
|
2087
2301
|
}
|
|
2088
|
-
) : /* @__PURE__ */ (0,
|
|
2302
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
2089
2303
|
import_assets7.ChevronRightIcon,
|
|
2090
2304
|
{
|
|
2091
2305
|
variant: "xs",
|
|
@@ -2095,7 +2309,7 @@ function ExpandToggle({
|
|
|
2095
2309
|
}
|
|
2096
2310
|
);
|
|
2097
2311
|
}
|
|
2098
|
-
if (hasExpandableRows) return /* @__PURE__ */ (0,
|
|
2312
|
+
if (hasExpandableRows) return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Box, { sx: expandPlaceholderSx });
|
|
2099
2313
|
return null;
|
|
2100
2314
|
}
|
|
2101
2315
|
function renderCellContent({
|
|
@@ -2111,18 +2325,18 @@ function renderCellContent({
|
|
|
2111
2325
|
const content = (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext());
|
|
2112
2326
|
if (sticky) return content;
|
|
2113
2327
|
const truncate = cell.column.columnDef.meta?.truncate ?? true;
|
|
2114
|
-
const truncated = truncate ? /* @__PURE__ */ (0,
|
|
2328
|
+
const truncated = truncate ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(BiampTableTruncatedCell, { children: content }) : content;
|
|
2115
2329
|
if (!isExpandCell) return truncated;
|
|
2116
2330
|
if (alwaysExpanded) {
|
|
2117
|
-
return row.depth > 0 ? /* @__PURE__ */ (0,
|
|
2331
|
+
return row.depth > 0 ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Box, { sx: { pl: `${row.depth * 28}px` }, children: truncated }) : truncated;
|
|
2118
2332
|
}
|
|
2119
2333
|
const rowLabel = getRowLabel ? getRowLabel(row.original) : `row ${row.index + 1}`;
|
|
2120
|
-
return /* @__PURE__ */ (0,
|
|
2121
|
-
|
|
2334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
2335
|
+
import_material12.Box,
|
|
2122
2336
|
{
|
|
2123
2337
|
sx: row.depth > 0 ? { ...expandCellBaseSx, pl: `${row.depth * 12}px` } : expandCellBaseSx,
|
|
2124
2338
|
children: [
|
|
2125
|
-
/* @__PURE__ */ (0,
|
|
2339
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
2126
2340
|
ExpandToggle,
|
|
2127
2341
|
{
|
|
2128
2342
|
row,
|
|
@@ -2161,8 +2375,8 @@ function BiampTableRowInner({
|
|
|
2161
2375
|
onKeyDown: userRowOnKeyDown,
|
|
2162
2376
|
...restRowProps
|
|
2163
2377
|
} = resolvedRow ?? {};
|
|
2164
|
-
return /* @__PURE__ */ (0,
|
|
2165
|
-
|
|
2378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
2379
|
+
import_material12.TableRow,
|
|
2166
2380
|
{
|
|
2167
2381
|
...restRowProps,
|
|
2168
2382
|
hover: clickable,
|
|
@@ -2186,16 +2400,16 @@ function BiampTableRowInner({
|
|
|
2186
2400
|
userRowOnKeyDown?.(e);
|
|
2187
2401
|
} : userRowOnKeyDown,
|
|
2188
2402
|
children: [
|
|
2189
|
-
enableRowSelection && /* @__PURE__ */ (0,
|
|
2190
|
-
|
|
2403
|
+
enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
2404
|
+
import_material12.TableCell,
|
|
2191
2405
|
{
|
|
2192
2406
|
padding: "checkbox",
|
|
2193
2407
|
sx: mergeSx(
|
|
2194
2408
|
selectionCellSx,
|
|
2195
2409
|
customColor ? { backgroundColor: customColor } : void 0
|
|
2196
2410
|
),
|
|
2197
|
-
children: /* @__PURE__ */ (0,
|
|
2198
|
-
|
|
2411
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
2412
|
+
import_material12.Checkbox,
|
|
2199
2413
|
{
|
|
2200
2414
|
checked: isSelected,
|
|
2201
2415
|
disabled: !row.getCanSelect(),
|
|
@@ -2219,8 +2433,8 @@ function BiampTableRowInner({
|
|
|
2219
2433
|
const showGuidelinesOnCell = isExpandCell && showExpandGuidelines && alwaysExpanded && row.depth > 0;
|
|
2220
2434
|
const resolvedCell = resolveSlot(cellSlotProps, { cell });
|
|
2221
2435
|
const { sx: userCellSx, ...restCellProps } = resolvedCell ?? {};
|
|
2222
|
-
return /* @__PURE__ */ (0,
|
|
2223
|
-
|
|
2436
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
2437
|
+
import_material12.TableCell,
|
|
2224
2438
|
{
|
|
2225
2439
|
...restCellProps,
|
|
2226
2440
|
"data-sticky": sticky || void 0,
|
|
@@ -2232,7 +2446,7 @@ function BiampTableRowInner({
|
|
|
2232
2446
|
userCellSx
|
|
2233
2447
|
),
|
|
2234
2448
|
children: [
|
|
2235
|
-
showGuidelinesOnCell && /* @__PURE__ */ (0,
|
|
2449
|
+
showGuidelinesOnCell && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ExpandGuidelines, { row }),
|
|
2236
2450
|
renderCellContent({
|
|
2237
2451
|
cell,
|
|
2238
2452
|
row,
|
|
@@ -2261,7 +2475,7 @@ var BiampTableRow = import_react8.default.memo(
|
|
|
2261
2475
|
);
|
|
2262
2476
|
|
|
2263
2477
|
// src/BiampTable/BiampTable.tsx
|
|
2264
|
-
var
|
|
2478
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
2265
2479
|
var overlaySx = {
|
|
2266
2480
|
position: "absolute",
|
|
2267
2481
|
top: 0,
|
|
@@ -2322,10 +2536,10 @@ function BiampTable({
|
|
|
2322
2536
|
const hasExpandableRows = enableExpanding && rows.some((r) => r.getCanExpand());
|
|
2323
2537
|
const showError = !!error && !loading;
|
|
2324
2538
|
const showEmpty = !showError && !loading && rows.length === 0;
|
|
2325
|
-
return /* @__PURE__ */ (0,
|
|
2326
|
-
|
|
2539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
2540
|
+
import_material13.TableContainer,
|
|
2327
2541
|
{
|
|
2328
|
-
component:
|
|
2542
|
+
component: import_material13.Box,
|
|
2329
2543
|
...boxProps,
|
|
2330
2544
|
ref: containerRef,
|
|
2331
2545
|
sx: {
|
|
@@ -2336,8 +2550,8 @@ function BiampTable({
|
|
|
2336
2550
|
...sx
|
|
2337
2551
|
},
|
|
2338
2552
|
children: [
|
|
2339
|
-
/* @__PURE__ */ (0,
|
|
2340
|
-
|
|
2553
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
2554
|
+
import_material13.Table,
|
|
2341
2555
|
{
|
|
2342
2556
|
"aria-busy": showLoading || void 0,
|
|
2343
2557
|
...restTableSlotProps,
|
|
@@ -2346,14 +2560,14 @@ function BiampTable({
|
|
|
2346
2560
|
userTableSx
|
|
2347
2561
|
),
|
|
2348
2562
|
children: [
|
|
2349
|
-
/* @__PURE__ */ (0,
|
|
2350
|
-
|
|
2563
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material13.TableHead, { ...restHeadSlotProps, sx: mergeSx(userHeadSx), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
2564
|
+
import_material13.TableRow,
|
|
2351
2565
|
{
|
|
2352
2566
|
...restHeaderRowSlotProps,
|
|
2353
2567
|
sx: mergeSx(userHeaderRowSx),
|
|
2354
2568
|
children: [
|
|
2355
|
-
enableRowSelection && /* @__PURE__ */ (0,
|
|
2356
|
-
|
|
2569
|
+
enableRowSelection && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material13.TableCell, { padding: "checkbox", sx: headerSelectionCellSx, children: !hideSelectAll && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2570
|
+
import_material13.Checkbox,
|
|
2357
2571
|
{
|
|
2358
2572
|
checked: table.getIsAllPageRowsSelected(),
|
|
2359
2573
|
indeterminate: table.getIsSomePageRowsSelected(),
|
|
@@ -2368,8 +2582,8 @@ function BiampTable({
|
|
|
2368
2582
|
header
|
|
2369
2583
|
});
|
|
2370
2584
|
const { sx: userHeaderCellSx, ...restHeaderCellProps } = resolvedHeaderCell ?? {};
|
|
2371
|
-
return /* @__PURE__ */ (0,
|
|
2372
|
-
|
|
2585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2586
|
+
import_material13.TableCell,
|
|
2373
2587
|
{
|
|
2374
2588
|
...restHeaderCellProps,
|
|
2375
2589
|
"data-sticky": sticky || void 0,
|
|
@@ -2381,8 +2595,8 @@ function BiampTable({
|
|
|
2381
2595
|
cellSx(sticky, header.column.columnDef.meta?.minWidth, 3),
|
|
2382
2596
|
userHeaderCellSx
|
|
2383
2597
|
),
|
|
2384
|
-
children: header.isPlaceholder ? null : header.column.getCanSort() ? /* @__PURE__ */ (0,
|
|
2385
|
-
|
|
2598
|
+
children: header.isPlaceholder ? null : header.column.getCanSort() ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2599
|
+
import_material13.TableSortLabel,
|
|
2386
2600
|
{
|
|
2387
2601
|
active: !!header.column.getIsSorted(),
|
|
2388
2602
|
direction: header.column.getIsSorted() || "asc",
|
|
@@ -2407,12 +2621,12 @@ function BiampTable({
|
|
|
2407
2621
|
},
|
|
2408
2622
|
headerGroup.id
|
|
2409
2623
|
)) }),
|
|
2410
|
-
/* @__PURE__ */ (0,
|
|
2411
|
-
|
|
2624
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2625
|
+
import_material13.TableBody,
|
|
2412
2626
|
{
|
|
2413
2627
|
...restBodySlotProps,
|
|
2414
2628
|
sx: mergeSx({ opacity: showLoading ? 0.3 : 1 }, userBodySx),
|
|
2415
|
-
children: !showError && rows.map((row) => /* @__PURE__ */ (0,
|
|
2629
|
+
children: !showError && rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2416
2630
|
BiampTableRow,
|
|
2417
2631
|
{
|
|
2418
2632
|
row,
|
|
@@ -2439,22 +2653,22 @@ function BiampTable({
|
|
|
2439
2653
|
]
|
|
2440
2654
|
}
|
|
2441
2655
|
),
|
|
2442
|
-
showError && /* @__PURE__ */ (0,
|
|
2656
|
+
showError && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material13.Box, { sx: overlaySx, children: error === true ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(BiampTableErrorState, { sx: { pointerEvents: "auto" } }) : error instanceof Error ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2443
2657
|
BiampTableErrorState,
|
|
2444
2658
|
{
|
|
2445
2659
|
description: error.message,
|
|
2446
2660
|
sx: { pointerEvents: "auto" }
|
|
2447
2661
|
}
|
|
2448
2662
|
) : error }),
|
|
2449
|
-
showEmpty && /* @__PURE__ */ (0,
|
|
2663
|
+
showEmpty && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material13.Box, { sx: overlaySx, children: empty && empty !== true ? empty : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(BiampTableEmptyState, { sx: { pointerEvents: "auto" } }) })
|
|
2450
2664
|
]
|
|
2451
2665
|
}
|
|
2452
2666
|
);
|
|
2453
2667
|
}
|
|
2454
2668
|
|
|
2455
2669
|
// src/BiampTable/BiampTableContainer.tsx
|
|
2456
|
-
var
|
|
2457
|
-
var
|
|
2670
|
+
var import_material14 = require("@mui/material");
|
|
2671
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
2458
2672
|
function BiampTableContainer({
|
|
2459
2673
|
withBorderTop = true,
|
|
2460
2674
|
withBorderBottom = false,
|
|
@@ -2462,8 +2676,8 @@ function BiampTableContainer({
|
|
|
2462
2676
|
sx,
|
|
2463
2677
|
...props
|
|
2464
2678
|
}) {
|
|
2465
|
-
return /* @__PURE__ */ (0,
|
|
2466
|
-
|
|
2679
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2680
|
+
import_material14.Stack,
|
|
2467
2681
|
{
|
|
2468
2682
|
direction: "column",
|
|
2469
2683
|
width: "100%",
|
|
@@ -2480,25 +2694,24 @@ function BiampTableContainer({
|
|
|
2480
2694
|
}
|
|
2481
2695
|
|
|
2482
2696
|
// src/BiampTable/BiampTableCellActionButton.tsx
|
|
2483
|
-
var
|
|
2484
|
-
var
|
|
2697
|
+
var import_material15 = require("@mui/material");
|
|
2698
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2485
2699
|
function BiampTableCellActionButton({ label, icon, ...props }) {
|
|
2486
|
-
return /* @__PURE__ */ (0,
|
|
2487
|
-
|
|
2700
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2701
|
+
import_material15.Tooltip,
|
|
2488
2702
|
{
|
|
2489
2703
|
title: label,
|
|
2490
2704
|
placement: "top",
|
|
2491
2705
|
enterDelay: 500,
|
|
2492
2706
|
enterNextDelay: 500,
|
|
2493
2707
|
disableInteractive: true,
|
|
2494
|
-
children: /* @__PURE__ */ (0,
|
|
2708
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_material15.IconButton, { "aria-label": label, ...props, children: icon }) })
|
|
2495
2709
|
}
|
|
2496
2710
|
);
|
|
2497
2711
|
}
|
|
2498
2712
|
|
|
2499
2713
|
// src/BiampTable/BiampTableColumnVisibility.tsx
|
|
2500
|
-
var
|
|
2501
|
-
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
2714
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
2502
2715
|
function toVisibilityState(visibility) {
|
|
2503
2716
|
return visibility;
|
|
2504
2717
|
}
|
|
@@ -2521,16 +2734,6 @@ function getColumnVisibilityDirtyCount(table, defaultVisibility) {
|
|
|
2521
2734
|
}
|
|
2522
2735
|
return count;
|
|
2523
2736
|
}
|
|
2524
|
-
var columnListItemSx = {
|
|
2525
|
-
py: 0,
|
|
2526
|
-
pr: 1.5,
|
|
2527
|
-
pl: 0,
|
|
2528
|
-
alignItems: "center",
|
|
2529
|
-
cursor: "pointer",
|
|
2530
|
-
"&:hover": {
|
|
2531
|
-
backgroundColor: ({ palette }) => palette.mode === "dark" ? palette.grey[800] : palette.grey[100]
|
|
2532
|
-
}
|
|
2533
|
-
};
|
|
2534
2737
|
function BiampTableColumnVisibility({
|
|
2535
2738
|
table,
|
|
2536
2739
|
showAllLabel = "Show all",
|
|
@@ -2541,9 +2744,16 @@ function BiampTableColumnVisibility({
|
|
|
2541
2744
|
...popoverProps
|
|
2542
2745
|
}) {
|
|
2543
2746
|
const hideableColumns = table.getAllLeafColumns().filter((col) => col.getCanHide());
|
|
2544
|
-
const
|
|
2545
|
-
|
|
2546
|
-
|
|
2747
|
+
const items = hideableColumns.map((column) => {
|
|
2748
|
+
const columnName = column.columnDef.meta?.columnLabel ?? (typeof column.columnDef.header === "string" ? column.columnDef.header : column.id);
|
|
2749
|
+
return {
|
|
2750
|
+
id: column.id,
|
|
2751
|
+
label: columnName,
|
|
2752
|
+
checked: column.getIsVisible(),
|
|
2753
|
+
ariaLabel: `Show ${columnName}`
|
|
2754
|
+
};
|
|
2755
|
+
});
|
|
2756
|
+
const setAllHideable = (next) => {
|
|
2547
2757
|
table.setColumnVisibility((prev) => {
|
|
2548
2758
|
const updated = { ...prev };
|
|
2549
2759
|
for (const col of hideableColumns) {
|
|
@@ -2552,71 +2762,19 @@ function BiampTableColumnVisibility({
|
|
|
2552
2762
|
return updated;
|
|
2553
2763
|
});
|
|
2554
2764
|
};
|
|
2555
|
-
return /* @__PURE__ */ (0,
|
|
2556
|
-
|
|
2765
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2766
|
+
BiampCheckboxListPopover,
|
|
2557
2767
|
{
|
|
2558
2768
|
anchorEl,
|
|
2559
2769
|
open: Boolean(anchorEl),
|
|
2560
2770
|
anchorOrigin,
|
|
2561
2771
|
transformOrigin,
|
|
2562
|
-
slotProps
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
border: `0.6px solid ${palette.dividers.secondary}`,
|
|
2569
|
-
boxShadow: `0px 1px 1px 0px ${(0, import_material13.alpha)(palette.common.black, 0.05)}`,
|
|
2570
|
-
minWidth: "150px"
|
|
2571
|
-
}),
|
|
2572
|
-
...slotProps?.paper ?? {}
|
|
2573
|
-
}
|
|
2574
|
-
},
|
|
2575
|
-
...popoverProps,
|
|
2576
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_material13.List, { dense: true, disablePadding: true, children: [
|
|
2577
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_material13.ListItem, { dense: true, sx: columnListItemSx, onClick: toggleAllHideable, children: [
|
|
2578
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2579
|
-
import_material13.Checkbox,
|
|
2580
|
-
{
|
|
2581
|
-
checked: allVisible,
|
|
2582
|
-
slotProps: { input: { "aria-label": `${showAllLabel} columns` } }
|
|
2583
|
-
}
|
|
2584
|
-
),
|
|
2585
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material13.Typography, { variant: "caption", fontWeight: 600, children: showAllLabel })
|
|
2586
|
-
] }),
|
|
2587
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material13.Divider, {}),
|
|
2588
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2589
|
-
import_material13.Box,
|
|
2590
|
-
{
|
|
2591
|
-
sx: { maxHeight: 340, overflow: "auto", overscrollBehavior: "none" },
|
|
2592
|
-
children: hideableColumns.map((column) => {
|
|
2593
|
-
const columnName = column.columnDef.meta?.columnLabel ?? (typeof column.columnDef.header === "string" ? column.columnDef.header : column.id);
|
|
2594
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
2595
|
-
import_material13.ListItem,
|
|
2596
|
-
{
|
|
2597
|
-
dense: true,
|
|
2598
|
-
sx: columnListItemSx,
|
|
2599
|
-
onClick: column.getToggleVisibilityHandler(),
|
|
2600
|
-
children: [
|
|
2601
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2602
|
-
import_material13.Checkbox,
|
|
2603
|
-
{
|
|
2604
|
-
checked: column.getIsVisible(),
|
|
2605
|
-
sx: { py: 1 },
|
|
2606
|
-
slotProps: {
|
|
2607
|
-
input: { "aria-label": `Show ${columnName}` }
|
|
2608
|
-
}
|
|
2609
|
-
}
|
|
2610
|
-
),
|
|
2611
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material13.Typography, { variant: "caption", children: columnName })
|
|
2612
|
-
]
|
|
2613
|
-
},
|
|
2614
|
-
column.id
|
|
2615
|
-
);
|
|
2616
|
-
})
|
|
2617
|
-
}
|
|
2618
|
-
)
|
|
2619
|
-
] })
|
|
2772
|
+
slotProps,
|
|
2773
|
+
items,
|
|
2774
|
+
onToggleItem: (id) => table.getColumn(id)?.toggleVisibility(),
|
|
2775
|
+
selectAllLabel: showAllLabel,
|
|
2776
|
+
onToggleAll: setAllHideable,
|
|
2777
|
+
...popoverProps
|
|
2620
2778
|
}
|
|
2621
2779
|
);
|
|
2622
2780
|
}
|
|
@@ -2626,8 +2784,8 @@ var import_assets9 = require("@bwp-web/assets");
|
|
|
2626
2784
|
var import_react10 = require("react");
|
|
2627
2785
|
|
|
2628
2786
|
// src/BiampTable/BiampTableToolbarActionButton.tsx
|
|
2629
|
-
var
|
|
2630
|
-
var
|
|
2787
|
+
var import_material16 = require("@mui/material");
|
|
2788
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2631
2789
|
function BiampTableToolbarActionButton({
|
|
2632
2790
|
label,
|
|
2633
2791
|
icon,
|
|
@@ -2635,13 +2793,13 @@ function BiampTableToolbarActionButton({
|
|
|
2635
2793
|
...props
|
|
2636
2794
|
}) {
|
|
2637
2795
|
const showBadge = badgeContent != null && badgeContent !== 0;
|
|
2638
|
-
return /* @__PURE__ */ (0,
|
|
2639
|
-
|
|
2796
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2797
|
+
import_material16.IconButton,
|
|
2640
2798
|
{
|
|
2641
2799
|
"aria-label": showBadge ? `${label} (${badgeContent})` : label,
|
|
2642
2800
|
...props,
|
|
2643
|
-
children: showBadge ? /* @__PURE__ */ (0,
|
|
2644
|
-
|
|
2801
|
+
children: showBadge ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2802
|
+
import_material16.Badge,
|
|
2645
2803
|
{
|
|
2646
2804
|
badgeContent,
|
|
2647
2805
|
color: "info",
|
|
@@ -2664,10 +2822,10 @@ function BiampTableToolbarActionButton({
|
|
|
2664
2822
|
}
|
|
2665
2823
|
|
|
2666
2824
|
// src/BiampTable/BiampTableToolbarColumnVisibility.tsx
|
|
2667
|
-
var
|
|
2825
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
2668
2826
|
function BiampTableToolbarColumnVisibility({
|
|
2669
2827
|
table,
|
|
2670
|
-
icon = /* @__PURE__ */ (0,
|
|
2828
|
+
icon = /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_assets9.ColumnsIcon, { variant: "xs" }),
|
|
2671
2829
|
label = "Columns",
|
|
2672
2830
|
defaultColumnVisibility,
|
|
2673
2831
|
showAllLabel,
|
|
@@ -2676,8 +2834,8 @@ function BiampTableToolbarColumnVisibility({
|
|
|
2676
2834
|
const [anchorEl, setAnchorEl] = (0, import_react10.useState)(null);
|
|
2677
2835
|
const defaults = defaultColumnVisibility ?? getDefaultColumnVisibility(table);
|
|
2678
2836
|
const dirtyCount = getColumnVisibilityDirtyCount(table, defaults);
|
|
2679
|
-
return /* @__PURE__ */ (0,
|
|
2680
|
-
/* @__PURE__ */ (0,
|
|
2837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
|
|
2838
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2681
2839
|
BiampTableToolbarActionButton,
|
|
2682
2840
|
{
|
|
2683
2841
|
label,
|
|
@@ -2687,7 +2845,7 @@ function BiampTableToolbarColumnVisibility({
|
|
|
2687
2845
|
...actionButtonProps
|
|
2688
2846
|
}
|
|
2689
2847
|
),
|
|
2690
|
-
/* @__PURE__ */ (0,
|
|
2848
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2691
2849
|
BiampTableColumnVisibility,
|
|
2692
2850
|
{
|
|
2693
2851
|
table,
|
|
@@ -2701,8 +2859,8 @@ function BiampTableToolbarColumnVisibility({
|
|
|
2701
2859
|
|
|
2702
2860
|
// src/BiampTable/BiampTablePagination.tsx
|
|
2703
2861
|
var import_react11 = require("react");
|
|
2704
|
-
var
|
|
2705
|
-
var
|
|
2862
|
+
var import_material17 = require("@mui/material");
|
|
2863
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2706
2864
|
var positionMap = {
|
|
2707
2865
|
left: "flex-start",
|
|
2708
2866
|
center: "center",
|
|
@@ -2731,8 +2889,8 @@ function BiampTablePagination({
|
|
|
2731
2889
|
}
|
|
2732
2890
|
}, [loading, pageIndex, maxPage, table]);
|
|
2733
2891
|
if (autoHide && (!stableCount || stableCount <= pageSize)) return null;
|
|
2734
|
-
return /* @__PURE__ */ (0,
|
|
2735
|
-
|
|
2892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2893
|
+
import_material17.TablePagination,
|
|
2736
2894
|
{
|
|
2737
2895
|
component: "div",
|
|
2738
2896
|
count: stableCount,
|
|
@@ -2763,15 +2921,15 @@ function BiampTablePagination({
|
|
|
2763
2921
|
}
|
|
2764
2922
|
|
|
2765
2923
|
// src/BiampTable/BiampTableToolbar.tsx
|
|
2766
|
-
var
|
|
2767
|
-
var
|
|
2924
|
+
var import_material18 = require("@mui/material");
|
|
2925
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2768
2926
|
function BiampTableToolbar({
|
|
2769
2927
|
children,
|
|
2770
2928
|
sx,
|
|
2771
2929
|
...props
|
|
2772
2930
|
}) {
|
|
2773
|
-
return /* @__PURE__ */ (0,
|
|
2774
|
-
|
|
2931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2932
|
+
import_material18.Box,
|
|
2775
2933
|
{
|
|
2776
2934
|
role: "toolbar",
|
|
2777
2935
|
display: "flex",
|
|
@@ -2788,14 +2946,14 @@ function BiampTableToolbar({
|
|
|
2788
2946
|
}
|
|
2789
2947
|
|
|
2790
2948
|
// src/BiampTable/BiampTableToolbarActions.tsx
|
|
2791
|
-
var
|
|
2792
|
-
var
|
|
2949
|
+
var import_material19 = require("@mui/material");
|
|
2950
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2793
2951
|
function BiampTableToolbarActions({
|
|
2794
2952
|
children,
|
|
2795
2953
|
...props
|
|
2796
2954
|
}) {
|
|
2797
|
-
return /* @__PURE__ */ (0,
|
|
2798
|
-
|
|
2955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2956
|
+
import_material19.Box,
|
|
2799
2957
|
{
|
|
2800
2958
|
display: "flex",
|
|
2801
2959
|
alignItems: "center",
|
|
@@ -2809,17 +2967,17 @@ function BiampTableToolbarActions({
|
|
|
2809
2967
|
}
|
|
2810
2968
|
|
|
2811
2969
|
// src/BiampTable/BiampTableToolbarExport.tsx
|
|
2812
|
-
var
|
|
2970
|
+
var import_material20 = require("@mui/material");
|
|
2813
2971
|
var import_assets10 = require("@bwp-web/assets");
|
|
2814
|
-
var
|
|
2972
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
2815
2973
|
function BiampTableToolbarExport({
|
|
2816
2974
|
onExport,
|
|
2817
2975
|
loading,
|
|
2818
|
-
icon = /* @__PURE__ */ (0,
|
|
2976
|
+
icon = /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_assets10.DownloadIcon, { variant: "xs" }),
|
|
2819
2977
|
label = "Export",
|
|
2820
2978
|
...props
|
|
2821
2979
|
}) {
|
|
2822
|
-
return /* @__PURE__ */ (0,
|
|
2980
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2823
2981
|
BiampTableToolbarActionButton,
|
|
2824
2982
|
{
|
|
2825
2983
|
label,
|
|
@@ -2837,8 +2995,8 @@ function BiampTableToolbarExportTextButton({
|
|
|
2837
2995
|
label = "Export",
|
|
2838
2996
|
...props
|
|
2839
2997
|
}) {
|
|
2840
|
-
return /* @__PURE__ */ (0,
|
|
2841
|
-
|
|
2998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2999
|
+
import_material20.Button,
|
|
2842
3000
|
{
|
|
2843
3001
|
variant: "outlined",
|
|
2844
3002
|
size: "small",
|
|
@@ -2852,16 +3010,16 @@ function BiampTableToolbarExportTextButton({
|
|
|
2852
3010
|
}
|
|
2853
3011
|
|
|
2854
3012
|
// src/BiampTable/BiampTableToolbarFilters.tsx
|
|
2855
|
-
var
|
|
3013
|
+
var import_material21 = require("@mui/material");
|
|
2856
3014
|
var import_assets11 = require("@bwp-web/assets");
|
|
2857
3015
|
var import_react12 = require("react");
|
|
2858
|
-
var
|
|
3016
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2859
3017
|
function BiampTableToolbarFilters({
|
|
2860
3018
|
activeFilterCount,
|
|
2861
3019
|
children,
|
|
2862
3020
|
onReset,
|
|
2863
3021
|
onApply,
|
|
2864
|
-
icon = /* @__PURE__ */ (0,
|
|
3022
|
+
icon = /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_assets11.FilterIcon, { variant: "xs" }),
|
|
2865
3023
|
title = "Filters",
|
|
2866
3024
|
resetLabel = "Clear filters",
|
|
2867
3025
|
applyLabel = "Apply",
|
|
@@ -2871,13 +3029,13 @@ function BiampTableToolbarFilters({
|
|
|
2871
3029
|
}) {
|
|
2872
3030
|
const [open, setOpen] = (0, import_react12.useState)(false);
|
|
2873
3031
|
const titleId = (0, import_react12.useId)();
|
|
2874
|
-
const theme = (0,
|
|
3032
|
+
const theme = (0, import_material21.useTheme)();
|
|
2875
3033
|
function handleClose() {
|
|
2876
3034
|
onApply?.();
|
|
2877
3035
|
setOpen(false);
|
|
2878
3036
|
}
|
|
2879
|
-
return /* @__PURE__ */ (0,
|
|
2880
|
-
/* @__PURE__ */ (0,
|
|
3037
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
|
|
3038
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
2881
3039
|
BiampTableToolbarActionButton,
|
|
2882
3040
|
{
|
|
2883
3041
|
label: buttonLabel,
|
|
@@ -2886,8 +3044,8 @@ function BiampTableToolbarFilters({
|
|
|
2886
3044
|
onClick: () => setOpen(true)
|
|
2887
3045
|
}
|
|
2888
3046
|
),
|
|
2889
|
-
/* @__PURE__ */ (0,
|
|
2890
|
-
|
|
3047
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3048
|
+
import_material21.Drawer,
|
|
2891
3049
|
{
|
|
2892
3050
|
anchor: "right",
|
|
2893
3051
|
open,
|
|
@@ -2898,17 +3056,17 @@ function BiampTableToolbarFilters({
|
|
|
2898
3056
|
sx: { width: { xs: "100%", sm: 480 } },
|
|
2899
3057
|
...drawerProps?.PaperProps
|
|
2900
3058
|
},
|
|
2901
|
-
children: /* @__PURE__ */ (0,
|
|
2902
|
-
|
|
3059
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
3060
|
+
import_material21.Box,
|
|
2903
3061
|
{
|
|
2904
3062
|
height: "100%",
|
|
2905
3063
|
display: "flex",
|
|
2906
3064
|
flexDirection: "column",
|
|
2907
3065
|
justifyContent: "space-between",
|
|
2908
3066
|
children: [
|
|
2909
|
-
/* @__PURE__ */ (0,
|
|
2910
|
-
/* @__PURE__ */ (0,
|
|
2911
|
-
|
|
3067
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_material21.Box, { children: [
|
|
3068
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
3069
|
+
import_material21.Box,
|
|
2912
3070
|
{
|
|
2913
3071
|
display: "flex",
|
|
2914
3072
|
justifyContent: "space-between",
|
|
@@ -2916,10 +3074,10 @@ function BiampTableToolbarFilters({
|
|
|
2916
3074
|
px: 3.5,
|
|
2917
3075
|
py: 2.5,
|
|
2918
3076
|
children: [
|
|
2919
|
-
/* @__PURE__ */ (0,
|
|
3077
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_material21.Typography, { id: titleId, variant: "h2", children: [
|
|
2920
3078
|
title,
|
|
2921
|
-
/* @__PURE__ */ (0,
|
|
2922
|
-
|
|
3079
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3080
|
+
import_material21.Badge,
|
|
2923
3081
|
{
|
|
2924
3082
|
badgeContent: activeFilterCount,
|
|
2925
3083
|
color: "secondary",
|
|
@@ -2934,21 +3092,21 @@ function BiampTableToolbarFilters({
|
|
|
2934
3092
|
}
|
|
2935
3093
|
)
|
|
2936
3094
|
] }),
|
|
2937
|
-
/* @__PURE__ */ (0,
|
|
2938
|
-
|
|
3095
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3096
|
+
import_material21.IconButton,
|
|
2939
3097
|
{
|
|
2940
3098
|
size: "medium",
|
|
2941
3099
|
onClick: handleClose,
|
|
2942
3100
|
"aria-label": closeLabel,
|
|
2943
|
-
children: /* @__PURE__ */ (0,
|
|
3101
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_assets11.CloseIcon, {})
|
|
2944
3102
|
}
|
|
2945
3103
|
)
|
|
2946
3104
|
]
|
|
2947
3105
|
}
|
|
2948
3106
|
),
|
|
2949
|
-
/* @__PURE__ */ (0,
|
|
2950
|
-
/* @__PURE__ */ (0,
|
|
2951
|
-
|
|
3107
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_material21.Divider, {}),
|
|
3108
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3109
|
+
import_material21.Box,
|
|
2952
3110
|
{
|
|
2953
3111
|
role: "group",
|
|
2954
3112
|
"aria-label": "Filter options",
|
|
@@ -2961,9 +3119,9 @@ function BiampTableToolbarFilters({
|
|
|
2961
3119
|
}
|
|
2962
3120
|
)
|
|
2963
3121
|
] }),
|
|
2964
|
-
/* @__PURE__ */ (0,
|
|
2965
|
-
/* @__PURE__ */ (0,
|
|
2966
|
-
|
|
3122
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_material21.Box, { display: "flex", children: [
|
|
3123
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3124
|
+
import_material21.Button,
|
|
2967
3125
|
{
|
|
2968
3126
|
variant: "overlay",
|
|
2969
3127
|
color: "secondary",
|
|
@@ -2973,8 +3131,8 @@ function BiampTableToolbarFilters({
|
|
|
2973
3131
|
children: resetLabel
|
|
2974
3132
|
}
|
|
2975
3133
|
),
|
|
2976
|
-
/* @__PURE__ */ (0,
|
|
2977
|
-
|
|
3134
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3135
|
+
import_material21.Button,
|
|
2978
3136
|
{
|
|
2979
3137
|
variant: "overlay",
|
|
2980
3138
|
color: "primary",
|
|
@@ -2993,7 +3151,7 @@ function BiampTableToolbarFilters({
|
|
|
2993
3151
|
}
|
|
2994
3152
|
|
|
2995
3153
|
// src/BiampTable/BiampTableToolbarSearch.tsx
|
|
2996
|
-
var
|
|
3154
|
+
var import_material22 = require("@mui/material");
|
|
2997
3155
|
var import_assets12 = require("@bwp-web/assets");
|
|
2998
3156
|
var import_react14 = require("react");
|
|
2999
3157
|
|
|
@@ -3022,7 +3180,7 @@ function useDebouncedCallback(callback, delay = BIAMP_TABLE_DEBOUNCE_DELAY) {
|
|
|
3022
3180
|
}
|
|
3023
3181
|
|
|
3024
3182
|
// src/BiampTable/BiampTableToolbarSearch.tsx
|
|
3025
|
-
var
|
|
3183
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3026
3184
|
var searchFieldSx = {
|
|
3027
3185
|
"& .MuiInputBase-root": {
|
|
3028
3186
|
height: "36px !important",
|
|
@@ -3046,7 +3204,7 @@ function BiampTableToolbarSearch({
|
|
|
3046
3204
|
sx,
|
|
3047
3205
|
...textFieldProps
|
|
3048
3206
|
}) {
|
|
3049
|
-
const isMobile = (0,
|
|
3207
|
+
const isMobile = (0, import_material22.useMediaQuery)((t) => t.breakpoints.down("md"));
|
|
3050
3208
|
const [inputValue, setInputValue] = (0, import_react14.useState)(defaultValue);
|
|
3051
3209
|
const [isExpanded, setIsExpanded] = (0, import_react14.useState)(false);
|
|
3052
3210
|
const debouncedOnChange = useDebouncedCallback(onChange, debounceDelay);
|
|
@@ -3066,8 +3224,8 @@ function BiampTableToolbarSearch({
|
|
|
3066
3224
|
setIsExpanded(false);
|
|
3067
3225
|
}
|
|
3068
3226
|
};
|
|
3069
|
-
const clearButton = inputValue ? /* @__PURE__ */ (0,
|
|
3070
|
-
|
|
3227
|
+
const clearButton = inputValue ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3228
|
+
import_material22.InputAdornment,
|
|
3071
3229
|
{
|
|
3072
3230
|
position: "end",
|
|
3073
3231
|
sx: {
|
|
@@ -3079,20 +3237,20 @@ function BiampTableToolbarSearch({
|
|
|
3079
3237
|
height: 16
|
|
3080
3238
|
}
|
|
3081
3239
|
},
|
|
3082
|
-
children: /* @__PURE__ */ (0,
|
|
3083
|
-
|
|
3240
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3241
|
+
import_material22.IconButton,
|
|
3084
3242
|
{
|
|
3085
3243
|
size: "small",
|
|
3086
3244
|
onClick: handleClear,
|
|
3087
3245
|
"aria-label": clearLabel,
|
|
3088
3246
|
sx: { mr: 0.5 },
|
|
3089
|
-
children: /* @__PURE__ */ (0,
|
|
3247
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_assets12.CloseIcon, { variant: "xs" })
|
|
3090
3248
|
}
|
|
3091
3249
|
)
|
|
3092
3250
|
}
|
|
3093
3251
|
) : null;
|
|
3094
|
-
const textField = /* @__PURE__ */ (0,
|
|
3095
|
-
|
|
3252
|
+
const textField = /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3253
|
+
import_material22.TextField,
|
|
3096
3254
|
{
|
|
3097
3255
|
name: "search",
|
|
3098
3256
|
type: "text",
|
|
@@ -3100,8 +3258,8 @@ function BiampTableToolbarSearch({
|
|
|
3100
3258
|
slotProps: {
|
|
3101
3259
|
htmlInput: { maxLength, "aria-label": placeholder },
|
|
3102
3260
|
input: {
|
|
3103
|
-
startAdornment: /* @__PURE__ */ (0,
|
|
3104
|
-
|
|
3261
|
+
startAdornment: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3262
|
+
import_material22.InputAdornment,
|
|
3105
3263
|
{
|
|
3106
3264
|
position: "start",
|
|
3107
3265
|
sx: {
|
|
@@ -3111,7 +3269,7 @@ function BiampTableToolbarSearch({
|
|
|
3111
3269
|
height: 16
|
|
3112
3270
|
}
|
|
3113
3271
|
},
|
|
3114
|
-
children: /* @__PURE__ */ (0,
|
|
3272
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_assets12.SearchIcon, { variant: "xs", color: "inherit" })
|
|
3115
3273
|
}
|
|
3116
3274
|
),
|
|
3117
3275
|
endAdornment: clearButton
|
|
@@ -3132,10 +3290,10 @@ function BiampTableToolbarSearch({
|
|
|
3132
3290
|
}
|
|
3133
3291
|
);
|
|
3134
3292
|
if (isMobile && enableMobileView) {
|
|
3135
|
-
return /* @__PURE__ */ (0,
|
|
3136
|
-
/* @__PURE__ */ (0,
|
|
3137
|
-
/* @__PURE__ */ (0,
|
|
3138
|
-
|
|
3293
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_material22.Box, { display: "flex", alignItems: "center", width: "100%", pr: 1, gap: 1, children: [
|
|
3294
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_assets12.SearchIcon, { sx: { width: 16, height: 16 } }),
|
|
3295
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3296
|
+
import_material22.InputBase,
|
|
3139
3297
|
{
|
|
3140
3298
|
name: "search",
|
|
3141
3299
|
type: "text",
|
|
@@ -3156,14 +3314,14 @@ function BiampTableToolbarSearch({
|
|
|
3156
3314
|
] });
|
|
3157
3315
|
}
|
|
3158
3316
|
if (expandable) {
|
|
3159
|
-
return /* @__PURE__ */ (0,
|
|
3160
|
-
/* @__PURE__ */ (0,
|
|
3161
|
-
|
|
3317
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_material22.Box, { display: "flex", alignItems: "center", minWidth: 28, children: [
|
|
3318
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3319
|
+
import_material22.IconButton,
|
|
3162
3320
|
{
|
|
3163
3321
|
"aria-label": expandLabel ?? placeholder,
|
|
3164
3322
|
onClick: () => setIsExpanded(true),
|
|
3165
3323
|
sx: { display: isExpanded || inputValue ? "none" : "flex" },
|
|
3166
|
-
children: /* @__PURE__ */ (0,
|
|
3324
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3167
3325
|
import_assets12.SearchIcon,
|
|
3168
3326
|
{
|
|
3169
3327
|
variant: "xs",
|
|
@@ -3173,8 +3331,8 @@ function BiampTableToolbarSearch({
|
|
|
3173
3331
|
)
|
|
3174
3332
|
}
|
|
3175
3333
|
),
|
|
3176
|
-
/* @__PURE__ */ (0,
|
|
3177
|
-
|
|
3334
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3335
|
+
import_material22.Collapse,
|
|
3178
3336
|
{
|
|
3179
3337
|
in: isExpanded || !!inputValue,
|
|
3180
3338
|
orientation: "horizontal",
|
|
@@ -3414,12 +3572,12 @@ function downloadCsv(csvContent, filename) {
|
|
|
3414
3572
|
}
|
|
3415
3573
|
|
|
3416
3574
|
// src/BiampBanner/BiampBanner.tsx
|
|
3417
|
-
var
|
|
3575
|
+
var import_material23 = require("@mui/material");
|
|
3418
3576
|
var import_assets13 = require("@bwp-web/assets");
|
|
3419
|
-
var
|
|
3577
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3420
3578
|
function BiampBanner({ show, children, severity }) {
|
|
3421
|
-
return /* @__PURE__ */ (0,
|
|
3422
|
-
|
|
3579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material23.Collapse, { in: show, unmountOnExit: true, component: "aside", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3580
|
+
import_material23.Box,
|
|
3423
3581
|
{
|
|
3424
3582
|
bgcolor: ({ palette }) => palette.background[severity],
|
|
3425
3583
|
display: "flex",
|
|
@@ -3437,25 +3595,25 @@ function BiampBanner({ show, children, severity }) {
|
|
|
3437
3595
|
) });
|
|
3438
3596
|
}
|
|
3439
3597
|
var iconMapping = {
|
|
3440
|
-
error: /* @__PURE__ */ (0,
|
|
3441
|
-
warning: /* @__PURE__ */ (0,
|
|
3442
|
-
success: /* @__PURE__ */ (0,
|
|
3443
|
-
info: /* @__PURE__ */ (0,
|
|
3598
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_assets13.ErrorStatusIcon, { color: "error", sx: { width: 14, height: 14 } }),
|
|
3599
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_assets13.WarningStatusIcon, { color: "warning", sx: { width: 16, height: 14 } }),
|
|
3600
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_assets13.SuccessStatusIcon, { color: "success", sx: { width: 14, height: 14 } }),
|
|
3601
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_assets13.InfoStatusIcon, { color: "info", sx: { width: 14, height: 14 } })
|
|
3444
3602
|
};
|
|
3445
3603
|
function BiampBannerIcon({ severity, children }) {
|
|
3446
|
-
return /* @__PURE__ */ (0,
|
|
3604
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_jsx_runtime27.Fragment, { children: severity ? iconMapping[severity] : children });
|
|
3447
3605
|
}
|
|
3448
3606
|
function BiampBannerContent({ children, ...props }) {
|
|
3449
|
-
return /* @__PURE__ */ (0,
|
|
3607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material23.Typography, { textAlign: "center", variant: "h3", ...props, children });
|
|
3450
3608
|
}
|
|
3451
3609
|
function BiampBannerActions({ children, ...props }) {
|
|
3452
|
-
return /* @__PURE__ */ (0,
|
|
3610
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material23.Box, { display: "flex", gap: 1, alignItems: "center", ...props, children });
|
|
3453
3611
|
}
|
|
3454
3612
|
|
|
3455
3613
|
// src/BiampSegmentedButton/SegmentedButton.tsx
|
|
3456
|
-
var
|
|
3614
|
+
var import_material24 = require("@mui/material");
|
|
3457
3615
|
var import_styles = require("@mui/material/styles");
|
|
3458
|
-
var
|
|
3616
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3459
3617
|
function SegmentedButton({
|
|
3460
3618
|
children,
|
|
3461
3619
|
active,
|
|
@@ -3463,13 +3621,13 @@ function SegmentedButton({
|
|
|
3463
3621
|
sx,
|
|
3464
3622
|
...props
|
|
3465
3623
|
}) {
|
|
3466
|
-
const theme = (0,
|
|
3624
|
+
const theme = (0, import_material24.useTheme)();
|
|
3467
3625
|
const isDarkMode = theme.palette.mode === "dark";
|
|
3468
3626
|
const backgroundColor = active ? isDarkMode ? theme.palette.grey[800] : theme.palette.common.white : "transparent";
|
|
3469
3627
|
const textColor = active ? theme.palette.text.primary : theme.palette.text.secondary;
|
|
3470
3628
|
const border = active ? "solid" : void 0;
|
|
3471
|
-
return /* @__PURE__ */ (0,
|
|
3472
|
-
|
|
3629
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3630
|
+
import_material24.Button,
|
|
3473
3631
|
{
|
|
3474
3632
|
sx: {
|
|
3475
3633
|
backgroundColor,
|
|
@@ -3492,13 +3650,13 @@ function SegmentedButton({
|
|
|
3492
3650
|
}
|
|
3493
3651
|
|
|
3494
3652
|
// src/BiampSegmentedButton/SegmentedButtonGroup.tsx
|
|
3495
|
-
var
|
|
3496
|
-
var
|
|
3653
|
+
var import_material25 = require("@mui/material");
|
|
3654
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3497
3655
|
function SegmentedButtonGroup({ children, sx, ...props }) {
|
|
3498
|
-
const theme = (0,
|
|
3656
|
+
const theme = (0, import_material25.useTheme)();
|
|
3499
3657
|
const isDarkMode = theme.palette.mode === "dark";
|
|
3500
|
-
return /* @__PURE__ */ (0,
|
|
3501
|
-
|
|
3658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3659
|
+
import_material25.Stack,
|
|
3502
3660
|
{
|
|
3503
3661
|
direction: "row",
|
|
3504
3662
|
p: 0.5,
|
|
@@ -3515,18 +3673,18 @@ function SegmentedButtonGroup({ children, sx, ...props }) {
|
|
|
3515
3673
|
}
|
|
3516
3674
|
|
|
3517
3675
|
// src/OrganizationSelector/OrganizationSelector.tsx
|
|
3518
|
-
var
|
|
3676
|
+
var import_material26 = require("@mui/material");
|
|
3519
3677
|
var import_react16 = require("react");
|
|
3520
3678
|
var import_assets14 = require("@bwp-web/assets");
|
|
3521
|
-
var
|
|
3679
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3522
3680
|
function OrganizationSelector({
|
|
3523
3681
|
loading,
|
|
3524
3682
|
children,
|
|
3525
3683
|
sx,
|
|
3526
3684
|
...props
|
|
3527
3685
|
}) {
|
|
3528
|
-
return /* @__PURE__ */ (0,
|
|
3529
|
-
|
|
3686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3687
|
+
import_material26.Stack,
|
|
3530
3688
|
{
|
|
3531
3689
|
sx: {
|
|
3532
3690
|
width: "min(370px, calc(100vw - 24px))",
|
|
@@ -3535,12 +3693,12 @@ function OrganizationSelector({
|
|
|
3535
3693
|
backgroundColor: ({ palette }) => palette.mode === "dark" ? palette.grey[700] : palette.grey[100],
|
|
3536
3694
|
borderRadius: 3,
|
|
3537
3695
|
p: 1.5,
|
|
3538
|
-
boxShadow: ({ palette }) => `0 4px 24px 0 ${(0,
|
|
3696
|
+
boxShadow: ({ palette }) => `0 4px 24px 0 ${(0, import_material26.alpha)(palette.common.black, 0.15)}`,
|
|
3539
3697
|
overflow: "auto",
|
|
3540
3698
|
...sx
|
|
3541
3699
|
},
|
|
3542
3700
|
...props,
|
|
3543
|
-
children: loading ? /* @__PURE__ */ (0,
|
|
3701
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material26.CircularProgress, { size: 40, sx: { mx: "auto", my: "auto" } }) : children
|
|
3544
3702
|
}
|
|
3545
3703
|
);
|
|
3546
3704
|
}
|
|
@@ -3551,14 +3709,14 @@ function OrganizationItemList({
|
|
|
3551
3709
|
sx
|
|
3552
3710
|
}) {
|
|
3553
3711
|
const items = import_react16.Children.toArray(children).filter(import_react16.isValidElement);
|
|
3554
|
-
return /* @__PURE__ */ (0,
|
|
3555
|
-
/* @__PURE__ */ (0,
|
|
3556
|
-
|
|
3712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
|
|
3713
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3714
|
+
import_material26.List,
|
|
3557
3715
|
{
|
|
3558
3716
|
disablePadding: true,
|
|
3559
3717
|
sx: {
|
|
3560
3718
|
border: 0.6,
|
|
3561
|
-
borderColor: ({ palette }) => palette.mode === "dark" ? (0,
|
|
3719
|
+
borderColor: ({ palette }) => palette.mode === "dark" ? (0, import_material26.alpha)(palette.common.white, 0.12) : (0, import_material26.alpha)(palette.grey[900], 0.15),
|
|
3562
3720
|
borderRadius: 2,
|
|
3563
3721
|
...maxHeight !== void 0 && {
|
|
3564
3722
|
overflow: "auto",
|
|
@@ -3566,19 +3724,19 @@ function OrganizationItemList({
|
|
|
3566
3724
|
},
|
|
3567
3725
|
...sx
|
|
3568
3726
|
},
|
|
3569
|
-
children: items.map((item, i) => /* @__PURE__ */ (0,
|
|
3727
|
+
children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react16.Fragment, { children: [
|
|
3570
3728
|
item,
|
|
3571
|
-
i !== items.length - 1 && /* @__PURE__ */ (0,
|
|
3729
|
+
i !== items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material26.Divider, {})
|
|
3572
3730
|
] }, item.key ?? i))
|
|
3573
3731
|
}
|
|
3574
3732
|
),
|
|
3575
|
-
label && /* @__PURE__ */ (0,
|
|
3733
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material26.Divider, { sx: { py: 1, userSelect: "none" }, children: label })
|
|
3576
3734
|
] });
|
|
3577
3735
|
}
|
|
3578
3736
|
function renderText(value, defaults) {
|
|
3579
3737
|
if (typeof value === "string" || typeof value === "number") {
|
|
3580
|
-
return /* @__PURE__ */ (0,
|
|
3581
|
-
|
|
3738
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3739
|
+
import_material26.Typography,
|
|
3582
3740
|
{
|
|
3583
3741
|
variant: defaults.variant,
|
|
3584
3742
|
fontWeight: defaults.fontWeight,
|
|
@@ -3596,13 +3754,15 @@ function OrganizationItem({
|
|
|
3596
3754
|
meta,
|
|
3597
3755
|
logo,
|
|
3598
3756
|
isCurrent = false,
|
|
3757
|
+
disabled,
|
|
3599
3758
|
sx,
|
|
3600
3759
|
...props
|
|
3601
3760
|
}) {
|
|
3602
|
-
|
|
3603
|
-
|
|
3761
|
+
const hideChevron = isCurrent || Boolean(disabled);
|
|
3762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material26.ListItem, { disablePadding: true, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
3763
|
+
import_material26.ListItemButton,
|
|
3604
3764
|
{
|
|
3605
|
-
disabled: isCurrent,
|
|
3765
|
+
disabled: disabled ?? isCurrent,
|
|
3606
3766
|
disableRipple: true,
|
|
3607
3767
|
sx: {
|
|
3608
3768
|
p: 1,
|
|
@@ -3613,8 +3773,8 @@ function OrganizationItem({
|
|
|
3613
3773
|
},
|
|
3614
3774
|
...props,
|
|
3615
3775
|
children: [
|
|
3616
|
-
/* @__PURE__ */ (0,
|
|
3617
|
-
|
|
3776
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3777
|
+
import_material26.Box,
|
|
3618
3778
|
{
|
|
3619
3779
|
sx: {
|
|
3620
3780
|
width: 40,
|
|
@@ -3630,8 +3790,8 @@ function OrganizationItem({
|
|
|
3630
3790
|
boxShadow: ({ palette }) => `0 0 0 2px ${palette.info.main}`
|
|
3631
3791
|
}
|
|
3632
3792
|
},
|
|
3633
|
-
children: typeof logo === "string" ? /* @__PURE__ */ (0,
|
|
3634
|
-
|
|
3793
|
+
children: typeof logo === "string" ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3794
|
+
import_material26.Box,
|
|
3635
3795
|
{
|
|
3636
3796
|
component: "img",
|
|
3637
3797
|
src: logo,
|
|
@@ -3640,8 +3800,8 @@ function OrganizationItem({
|
|
|
3640
3800
|
) : logo
|
|
3641
3801
|
}
|
|
3642
3802
|
),
|
|
3643
|
-
/* @__PURE__ */ (0,
|
|
3644
|
-
/* @__PURE__ */ (0,
|
|
3803
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_material26.Stack, { gap: 0.25, sx: { width: "100%", minWidth: 0 }, children: [
|
|
3804
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_material26.Stack, { direction: "row", justifyContent: "space-between", gap: 1, children: [
|
|
3645
3805
|
renderText(primaryText, {
|
|
3646
3806
|
variant: "body2",
|
|
3647
3807
|
fontWeight: 600,
|
|
@@ -3654,7 +3814,7 @@ function OrganizationItem({
|
|
|
3654
3814
|
color: "text.secondary"
|
|
3655
3815
|
})
|
|
3656
3816
|
] }),
|
|
3657
|
-
/* @__PURE__ */ (0,
|
|
3817
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3658
3818
|
import_assets14.ChevronRightIcon,
|
|
3659
3819
|
{
|
|
3660
3820
|
variant: "xs",
|
|
@@ -3663,7 +3823,7 @@ function OrganizationItem({
|
|
|
3663
3823
|
width: 16,
|
|
3664
3824
|
height: 16,
|
|
3665
3825
|
ml: "auto",
|
|
3666
|
-
visibility:
|
|
3826
|
+
visibility: hideChevron ? "hidden" : "visible"
|
|
3667
3827
|
}
|
|
3668
3828
|
}
|
|
3669
3829
|
)
|
|
@@ -3678,8 +3838,8 @@ function OrganizationSelectorButton({
|
|
|
3678
3838
|
sx,
|
|
3679
3839
|
...props
|
|
3680
3840
|
}) {
|
|
3681
|
-
return /* @__PURE__ */ (0,
|
|
3682
|
-
|
|
3841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
3842
|
+
import_material26.ButtonBase,
|
|
3683
3843
|
{
|
|
3684
3844
|
disableRipple: true,
|
|
3685
3845
|
sx: {
|
|
@@ -3694,8 +3854,8 @@ function OrganizationSelectorButton({
|
|
|
3694
3854
|
...props,
|
|
3695
3855
|
children: [
|
|
3696
3856
|
icon,
|
|
3697
|
-
/* @__PURE__ */ (0,
|
|
3698
|
-
|
|
3857
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3858
|
+
import_material26.Typography,
|
|
3699
3859
|
{
|
|
3700
3860
|
variant: "caption",
|
|
3701
3861
|
fontWeight: 600,
|
|
@@ -3704,13 +3864,13 @@ function OrganizationSelectorButton({
|
|
|
3704
3864
|
children: name
|
|
3705
3865
|
}
|
|
3706
3866
|
),
|
|
3707
|
-
open ? /* @__PURE__ */ (0,
|
|
3867
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3708
3868
|
import_assets14.ChevronUpIcon,
|
|
3709
3869
|
{
|
|
3710
3870
|
variant: "xs",
|
|
3711
3871
|
sx: { width: 16, height: 16, flexShrink: 0, color: "text.secondary" }
|
|
3712
3872
|
}
|
|
3713
|
-
) : /* @__PURE__ */ (0,
|
|
3873
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3714
3874
|
import_assets14.ChevronDownIcon,
|
|
3715
3875
|
{
|
|
3716
3876
|
variant: "xs",
|
|
@@ -3728,8 +3888,8 @@ function OrganizationSelectorPopover({
|
|
|
3728
3888
|
transformOrigin,
|
|
3729
3889
|
...props
|
|
3730
3890
|
}) {
|
|
3731
|
-
return /* @__PURE__ */ (0,
|
|
3732
|
-
|
|
3891
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3892
|
+
import_material26.Popover,
|
|
3733
3893
|
{
|
|
3734
3894
|
anchorOrigin: anchorOrigin ?? { vertical: "bottom", horizontal: "right" },
|
|
3735
3895
|
transformOrigin: transformOrigin ?? { vertical: -8, horizontal: "right" },
|
|
@@ -3744,16 +3904,16 @@ function OrganizationSelectorPopover({
|
|
|
3744
3904
|
}
|
|
3745
3905
|
},
|
|
3746
3906
|
...props,
|
|
3747
|
-
children: /* @__PURE__ */ (0,
|
|
3907
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(OrganizationSelector, { loading, children })
|
|
3748
3908
|
}
|
|
3749
3909
|
);
|
|
3750
3910
|
}
|
|
3751
3911
|
|
|
3752
3912
|
// src/UserInitialsIcon/UserInitialsIcon.tsx
|
|
3753
|
-
var
|
|
3913
|
+
var import_material27 = require("@mui/material");
|
|
3754
3914
|
var import_styles2 = require("@mui/material/styles");
|
|
3755
3915
|
var import_randomcolor = __toESM(require_randomColor(), 1);
|
|
3756
|
-
var
|
|
3916
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3757
3917
|
var DEFAULT_SIZE = 40;
|
|
3758
3918
|
var DEFAULT_BORDER_RADIUS = 1.5;
|
|
3759
3919
|
var TEXT_RATIO = 0.4;
|
|
@@ -3771,8 +3931,8 @@ function UserInitialsIcon({
|
|
|
3771
3931
|
const textColor = (0, import_styles2.darken)((0, import_randomcolor.default)({ luminosity: "dark", seed: id }), 0.3);
|
|
3772
3932
|
const size = typeof width === "number" ? width : DEFAULT_SIZE;
|
|
3773
3933
|
const fontSize = size * TEXT_RATIO;
|
|
3774
|
-
return /* @__PURE__ */ (0,
|
|
3775
|
-
|
|
3934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3935
|
+
import_material27.Box,
|
|
3776
3936
|
{
|
|
3777
3937
|
minWidth: width,
|
|
3778
3938
|
width,
|
|
@@ -3785,8 +3945,8 @@ function UserInitialsIcon({
|
|
|
3785
3945
|
justifyContent: "center",
|
|
3786
3946
|
sx: { ...sx },
|
|
3787
3947
|
...props,
|
|
3788
|
-
children: /* @__PURE__ */ (0,
|
|
3789
|
-
|
|
3948
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3949
|
+
import_material27.Typography,
|
|
3790
3950
|
{
|
|
3791
3951
|
variant: "h3",
|
|
3792
3952
|
color: textColor,
|
|
@@ -3808,9 +3968,9 @@ var getInitials = (name) => {
|
|
|
3808
3968
|
};
|
|
3809
3969
|
|
|
3810
3970
|
// src/DynamicSvgIcon/DynamicSvgIcon.tsx
|
|
3811
|
-
var
|
|
3971
|
+
var import_material28 = require("@mui/material");
|
|
3812
3972
|
var import_react17 = require("react");
|
|
3813
|
-
var
|
|
3973
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3814
3974
|
var svgCache = /* @__PURE__ */ new Map();
|
|
3815
3975
|
function clearDynamicSvgIconCache() {
|
|
3816
3976
|
svgCache.clear();
|
|
@@ -3912,8 +4072,8 @@ function DynamicSvgIcon({
|
|
|
3912
4072
|
onError
|
|
3913
4073
|
});
|
|
3914
4074
|
if (loading) {
|
|
3915
|
-
return /* @__PURE__ */ (0,
|
|
3916
|
-
|
|
4075
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4076
|
+
import_material28.Skeleton,
|
|
3917
4077
|
{
|
|
3918
4078
|
variant: skeletonVariant,
|
|
3919
4079
|
animation: skeletonAnimation,
|
|
@@ -3922,8 +4082,8 @@ function DynamicSvgIcon({
|
|
|
3922
4082
|
);
|
|
3923
4083
|
}
|
|
3924
4084
|
if (error || !svgContent) {
|
|
3925
|
-
return /* @__PURE__ */ (0,
|
|
3926
|
-
|
|
4085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4086
|
+
import_material28.Box,
|
|
3927
4087
|
{
|
|
3928
4088
|
sx: {
|
|
3929
4089
|
width,
|
|
@@ -3942,8 +4102,8 @@ function DynamicSvgIcon({
|
|
|
3942
4102
|
}
|
|
3943
4103
|
);
|
|
3944
4104
|
}
|
|
3945
|
-
return /* @__PURE__ */ (0,
|
|
3946
|
-
|
|
4105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4106
|
+
import_material28.SvgIcon,
|
|
3947
4107
|
{
|
|
3948
4108
|
...svgIconProps,
|
|
3949
4109
|
...svgViewBox && { viewBox: svgViewBox },
|
|
@@ -3952,7 +4112,7 @@ function DynamicSvgIcon({
|
|
|
3952
4112
|
width,
|
|
3953
4113
|
height
|
|
3954
4114
|
},
|
|
3955
|
-
children: /* @__PURE__ */ (0,
|
|
4115
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("g", { dangerouslySetInnerHTML: { __html: svgContent } })
|
|
3956
4116
|
}
|
|
3957
4117
|
);
|
|
3958
4118
|
}
|
|
@@ -3968,6 +4128,7 @@ function DynamicSvgIcon({
|
|
|
3968
4128
|
BiampBannerIcon,
|
|
3969
4129
|
BiampBuildAppContent,
|
|
3970
4130
|
BiampBuildAppContentItem,
|
|
4131
|
+
BiampCheckboxListPopover,
|
|
3971
4132
|
BiampEndUserAppContent,
|
|
3972
4133
|
BiampEndUserAppContentItem,
|
|
3973
4134
|
BiampGlobalSearch,
|
|
@@ -3980,6 +4141,12 @@ function DynamicSvgIcon({
|
|
|
3980
4141
|
BiampHeaderSearch,
|
|
3981
4142
|
BiampHeaderTitle,
|
|
3982
4143
|
BiampLayout,
|
|
4144
|
+
BiampListPopover,
|
|
4145
|
+
BiampListPopoverItem,
|
|
4146
|
+
BiampListPopoverScrollArea,
|
|
4147
|
+
BiampNotificationPopover,
|
|
4148
|
+
BiampNotificationPopoverBody,
|
|
4149
|
+
BiampNotificationPopoverHeader,
|
|
3983
4150
|
BiampSidebar,
|
|
3984
4151
|
BiampSidebarComponent,
|
|
3985
4152
|
BiampSidebarIcon,
|