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