@telicent-oss/ds 4.4.2 → 5.0.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/dist/ds.cjs +463 -172
- package/dist/ds.cjs.map +1 -1
- package/dist/ds.d.ts +125 -72
- package/dist/ds.js +461 -171
- package/dist/ds.js.map +1 -1
- package/dist/llms.txt +70 -8
- package/package.json +1 -1
package/dist/ds.cjs
CHANGED
|
@@ -23,6 +23,7 @@ const MUIListItemText = require("@mui/material/ListItemText");
|
|
|
23
23
|
const MUIMenu = require("@mui/material/Menu");
|
|
24
24
|
const MUIMenuItem = require("@mui/material/MenuItem");
|
|
25
25
|
const MUIIconButton = require("@mui/material/IconButton");
|
|
26
|
+
const MuiBadge = require("@mui/material/Badge");
|
|
26
27
|
const MUIChip = require("@mui/material/Chip");
|
|
27
28
|
const MUIDivider = require("@mui/material/Divider");
|
|
28
29
|
const MUIAvatar = require("@mui/material/Avatar");
|
|
@@ -32,11 +33,11 @@ const TableBodyRaw = require("@mui/material/TableBody");
|
|
|
32
33
|
const TableCellRaw = require("@mui/material/TableCell");
|
|
33
34
|
const TableHeadRaw = require("@mui/material/TableHead");
|
|
34
35
|
const TableRowRaw = require("@mui/material/TableRow");
|
|
35
|
-
const LinearProgressRaw = require("@mui/material/LinearProgress");
|
|
36
36
|
const MUIButton = require("@mui/material/Button");
|
|
37
|
+
const SkeletonRaw = require("@mui/material/Skeleton");
|
|
38
|
+
const LinearProgressRaw = require("@mui/material/LinearProgress");
|
|
37
39
|
const Alert = require("@mui/material/Alert");
|
|
38
40
|
const AlertTitle = require("@mui/material/AlertTitle");
|
|
39
|
-
const SkeletonRaw = require("@mui/material/Skeleton");
|
|
40
41
|
const notistack = require("notistack");
|
|
41
42
|
const MUITooltip = require("@mui/material/Tooltip");
|
|
42
43
|
const MUIToggleButton = require("@mui/material/ToggleButton");
|
|
@@ -63,10 +64,10 @@ const MUICardHeader = require("@mui/material/CardHeader");
|
|
|
63
64
|
const MUICardContent = require("@mui/material/CardContent");
|
|
64
65
|
const MUICardAction = require("@mui/material/CardActions");
|
|
65
66
|
const ReactDOM = require("react-dom");
|
|
67
|
+
const MuiDrawer = require("@mui/material/Drawer");
|
|
66
68
|
const colors = require("@mui/material/colors");
|
|
67
69
|
const MUICssBaseline = require("@mui/material/CssBaseline");
|
|
68
70
|
const MUIModal = require("@mui/material/Modal");
|
|
69
|
-
const MuiDrawer = require("@mui/material/Drawer");
|
|
70
71
|
const Collapse = require("@mui/material/Collapse");
|
|
71
72
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
72
73
|
function _interopNamespace(e) {
|
|
@@ -102,6 +103,7 @@ const MUIListItemText__default = /* @__PURE__ */ _interopDefault(MUIListItemText
|
|
|
102
103
|
const MUIMenu__default = /* @__PURE__ */ _interopDefault(MUIMenu);
|
|
103
104
|
const MUIMenuItem__default = /* @__PURE__ */ _interopDefault(MUIMenuItem);
|
|
104
105
|
const MUIIconButton__default = /* @__PURE__ */ _interopDefault(MUIIconButton);
|
|
106
|
+
const MuiBadge__default = /* @__PURE__ */ _interopDefault(MuiBadge);
|
|
105
107
|
const MUIChip__default = /* @__PURE__ */ _interopDefault(MUIChip);
|
|
106
108
|
const MUIDivider__default = /* @__PURE__ */ _interopDefault(MUIDivider);
|
|
107
109
|
const MUIAvatar__default = /* @__PURE__ */ _interopDefault(MUIAvatar);
|
|
@@ -111,11 +113,11 @@ const TableBodyRaw__default = /* @__PURE__ */ _interopDefault(TableBodyRaw);
|
|
|
111
113
|
const TableCellRaw__default = /* @__PURE__ */ _interopDefault(TableCellRaw);
|
|
112
114
|
const TableHeadRaw__default = /* @__PURE__ */ _interopDefault(TableHeadRaw);
|
|
113
115
|
const TableRowRaw__default = /* @__PURE__ */ _interopDefault(TableRowRaw);
|
|
114
|
-
const LinearProgressRaw__default = /* @__PURE__ */ _interopDefault(LinearProgressRaw);
|
|
115
116
|
const MUIButton__default = /* @__PURE__ */ _interopDefault(MUIButton);
|
|
117
|
+
const SkeletonRaw__default = /* @__PURE__ */ _interopDefault(SkeletonRaw);
|
|
118
|
+
const LinearProgressRaw__default = /* @__PURE__ */ _interopDefault(LinearProgressRaw);
|
|
116
119
|
const Alert__default = /* @__PURE__ */ _interopDefault(Alert);
|
|
117
120
|
const AlertTitle__default = /* @__PURE__ */ _interopDefault(AlertTitle);
|
|
118
|
-
const SkeletonRaw__default = /* @__PURE__ */ _interopDefault(SkeletonRaw);
|
|
119
121
|
const MUITooltip__default = /* @__PURE__ */ _interopDefault(MUITooltip);
|
|
120
122
|
const MUIToggleButton__default = /* @__PURE__ */ _interopDefault(MUIToggleButton);
|
|
121
123
|
const MuiToggleButtonGroup__default = /* @__PURE__ */ _interopDefault(MuiToggleButtonGroup);
|
|
@@ -139,9 +141,9 @@ const MUICardHeader__default = /* @__PURE__ */ _interopDefault(MUICardHeader);
|
|
|
139
141
|
const MUICardContent__default = /* @__PURE__ */ _interopDefault(MUICardContent);
|
|
140
142
|
const MUICardAction__default = /* @__PURE__ */ _interopDefault(MUICardAction);
|
|
141
143
|
const ReactDOM__default = /* @__PURE__ */ _interopDefault(ReactDOM);
|
|
144
|
+
const MuiDrawer__default = /* @__PURE__ */ _interopDefault(MuiDrawer);
|
|
142
145
|
const MUICssBaseline__default = /* @__PURE__ */ _interopDefault(MUICssBaseline);
|
|
143
146
|
const MUIModal__default = /* @__PURE__ */ _interopDefault(MUIModal);
|
|
144
|
-
const MuiDrawer__default = /* @__PURE__ */ _interopDefault(MuiDrawer);
|
|
145
147
|
const Collapse__default = /* @__PURE__ */ _interopDefault(Collapse);
|
|
146
148
|
const useDebounce = (value, delay = 300) => {
|
|
147
149
|
const [debouncedValue, setDebouncedValue] = React$1.useState(value);
|
|
@@ -17581,7 +17583,7 @@ const H6 = ({
|
|
|
17581
17583
|
}) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(Typography__default.default, { component: "h6", variant, ...headingProps });
|
|
17582
17584
|
const List = (listProps) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MUIList__default.default, { ...listProps });
|
|
17583
17585
|
const ListItem = (listItemProps) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MUIListItem__default.default, { ...listItemProps });
|
|
17584
|
-
const ListItemButton =
|
|
17586
|
+
const ListItemButton = MUIListItemButton__default.default;
|
|
17585
17587
|
const ListItemIcon = (listItemIconProps) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MUIListItemIcon__default.default, { ...listItemIconProps });
|
|
17586
17588
|
const ListItemText = (props) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MUIListItemText__default.default, { ...props });
|
|
17587
17589
|
var util;
|
|
@@ -21742,8 +21744,6 @@ const AppSwitchLibrarySchema = z.object({
|
|
|
21742
21744
|
id: z.string(),
|
|
21743
21745
|
name: z.string(),
|
|
21744
21746
|
url: z.string(),
|
|
21745
|
-
/** @deprecated Use `iconDark` and `iconLight` for theme-aware icons. */
|
|
21746
|
-
icon: z.string().optional(),
|
|
21747
21747
|
iconDark: z.string().optional(),
|
|
21748
21748
|
iconLight: z.string().optional()
|
|
21749
21749
|
});
|
|
@@ -21752,7 +21752,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
21752
21752
|
styles: "width:25px;height:25px"
|
|
21753
21753
|
} : {
|
|
21754
21754
|
name: "9qz4wy-AppSwitch",
|
|
21755
|
-
styles: "width:25px;height:25px;label:AppSwitch;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
21755
|
+
styles: "width:25px;height:25px;label:AppSwitch;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9BcHBTd2l0Y2gvQXBwU3dpdGNoLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbm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ldHVybiBgJHtpc3N1ZS5wYXRoLnRvU3RyaW5nKCkucmVwbGFjZShcIixcIiwgXCIgPiBcIil9OiAke2lzc3VlLm1lc3NhZ2V9YDtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgY29uc3QgZXJyb3JNc2cgPSBmb3JtYXR0ZWRFcnJvcnMuam9pbihcIlxcblwiKTtcbiAgICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICAgIDxGbGV4Qm94IGtleT17ZXJyb3JNc2d9IHJvbGU9XCJtZW51aXRlbVwiPlxuICAgICAgICAgICAgICAgIDxUZXh0PlxuICAgICAgICAgICAgICAgICAgTWlzY29uZmlndXJhdGlvbiBlcnJvcjogQXBwIFN3aXRjaCBsaWJyYXJ5IHthcHA/LmlkID8gYGZvciBpZCAke2FwcC5pZH1gIDogYGF0IGluZGV4ICR7aW5kZXh9YH1cbiAgICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICAgICAgPFRleHQ+e2Vycm9yTXNnfTwvVGV4dD5cbiAgICAgICAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgICAgICAgKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBjb25zdCBpY29uU3JjID0gdGhlbWUucGFsZXR0ZS5tb2RlID09PSBcImRhcmtcIiA/IGFwcC5pY29uRGFyayA6IGFwcC5pY29uTGlnaHQ7XG5cbiAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgPE1VSU1lbnVJdGVtXG4gICAgICAgICAgICAgIGtleT17YXBwLmlkfVxuICAgICAgICAgICAgICBvbkNsaWNrPXsoKSA9PiB7XG4gICAgICAgICAgICAgICAgd2luZG93Lm9wZW4oYXBwLnVybCwgXCJfYmxhbmtcIik7XG4gICAgICAgICAgICAgICAgaGFuZGxlQ2xvc2UoKTtcbiAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgICAgc3g9e3tcbiAgICAgICAgICAgICAgICBkaXNwbGF5OiBcImZsZXhcIixcbiAgICAgICAgICAgICAgICBhbGlnbkl0ZW1zOiBcImNlbnRlclwiLFxuICAgICAgICAgICAgICAgIG1hcmdpblg6IDEsXG4gICAgICAgICAgICAgICAgYm9yZGVyUmFkaXVzOiBcIjRweFwiLFxuICAgICAgICAgICAgICAgIGJvcmRlcjogXCIxcHggc29saWQgcmdiYSgwLCAwLCAwLCAwKVwiLFxuICAgICAgICAgICAgICAgIFwiJjpob3ZlclwiOiB7XG4gICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kQ29sb3I6XG4gICAgICAgICAgICAgICAgICAgIHRoZW1lLnBhbGV0dGUubW9kZSA9PT0gXCJkYXJrXCIgPyB0aGVtZS5wYWxldHRlLmJhY2tncm91bmQuZGVmYXVsdCA6IFwicmdiYSgwLCAwLCAwLCAwLjA0KVwiLFxuICAgICAgICAgICAgICAgICAgYm9yZGVyOiBgMXB4IHNvbGlkICR7dGhlbWUucGFsZXR0ZS5wcmltYXJ5Lm1haW59YCxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICB7aWNvblNyYyAmJiAoXG4gICAgICAgICAgICAgICAgPE1VSUxpc3RJdGVtSWNvbj5cbiAgICAgICAgICAgICAgICAgIDxpbWcgc3JjPXtpY29uU3JjfSBhbHQ9e2Ake2FwcC5uYW1lfSBpY29uYH0gY3NzPXt7IHdpZHRoOiAyNSwgaGVpZ2h0OiAyNSB9fSAvPlxuICAgICAgICAgICAgICAgIDwvTVVJTGlzdEl0ZW1JY29uPlxuICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICA8TVVJTGlzdEl0ZW1UZXh0PlxuICAgICAgICAgICAgICAgIDxNVUlUeXBvZ3JhcGh5XG4gICAgICAgICAgICAgICAgICB2YXJpYW50PVwiaDFcIlxuICAgICAgICAgICAgICAgICAgc3g9e3tcbiAgICAgICAgICAgICAgICAgICAgbWFyZ2luVG9wOiAwLjUsXG4gICAgICAgICAgICAgICAgICAgIGZvbnRGYW1pbHk6IFwiRmlndHJlZVwiLFxuICAgICAgICAgICAgICAgICAgICBmb250U2l6ZTogMTYsXG4gICAgICAgICAgICAgICAgICAgIGZvbnRXZWlnaHQ6IDQwMCxcbiAgICAgICAgICAgICAgICAgICAgY29sb3I6IFwicHJpbWFyeVwiLFxuICAgICAgICAgICAgICAgICAgICBkaXNwbGF5OiBcImZsZXhcIixcbiAgICAgICAgICAgICAgICAgICAgYWxpZ25JdGVtczogXCJjZW50ZXJcIixcbiAgICAgICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAge2FwcC5uYW1lLnRvVXBwZXJDYXNlKCl9XG4gICAgICAgICAgICAgICAgPC9NVUlUeXBvZ3JhcGh5PlxuICAgICAgICAgICAgICA8L01VSUxpc3RJdGVtVGV4dD5cbiAgICAgICAgICAgIDwvTVVJTWVudUl0ZW0+XG4gICAgICAgICAgKTtcbiAgICAgICAgfSl9XG4gICAgICA8L01VSU1lbnU+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBBcHBTd2l0Y2g7XG4iXX0= */",
|
|
21756
21756
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
21757
21757
|
};
|
|
21758
21758
|
const AppSwitch = ({
|
|
@@ -21793,8 +21793,7 @@ const AppSwitch = ({
|
|
|
21793
21793
|
/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(Text$1, { children: errorMsg })
|
|
21794
21794
|
] }, errorMsg);
|
|
21795
21795
|
}
|
|
21796
|
-
const
|
|
21797
|
-
const iconSrc = themedIcon ?? app.icon;
|
|
21796
|
+
const iconSrc = theme.palette.mode === "dark" ? app.iconDark : app.iconLight;
|
|
21798
21797
|
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs(MUIMenuItem__default.default, { onClick: () => {
|
|
21799
21798
|
window.open(app.url, "_blank");
|
|
21800
21799
|
handleClose();
|
|
@@ -21823,6 +21822,20 @@ const AppSwitch = ({
|
|
|
21823
21822
|
}) })
|
|
21824
21823
|
] });
|
|
21825
21824
|
};
|
|
21825
|
+
const hideFromAssistiveTech = (badge) => typeof badge === "function" ? (ownerState) => ({
|
|
21826
|
+
"aria-hidden": true,
|
|
21827
|
+
...badge(ownerState)
|
|
21828
|
+
}) : {
|
|
21829
|
+
"aria-hidden": true,
|
|
21830
|
+
...badge
|
|
21831
|
+
};
|
|
21832
|
+
const Badge = ({
|
|
21833
|
+
slotProps,
|
|
21834
|
+
...props
|
|
21835
|
+
}) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MuiBadge__default.default, { color: "primary", ...props, slotProps: {
|
|
21836
|
+
...slotProps,
|
|
21837
|
+
badge: hideFromAssistiveTech(slotProps == null ? void 0 : slotProps.badge)
|
|
21838
|
+
} });
|
|
21826
21839
|
const Chip = ({
|
|
21827
21840
|
variant = "filled",
|
|
21828
21841
|
color = "primary",
|
|
@@ -24679,28 +24692,16 @@ const TableBody = (props) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.
|
|
|
24679
24692
|
const TableCell = (props) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(TableCellRaw__default.default, { ...props });
|
|
24680
24693
|
const TableHead = (props) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(TableHeadRaw__default.default, { ...props });
|
|
24681
24694
|
const TableRow = (props) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(TableRowRaw__default.default, { ...props });
|
|
24682
|
-
const
|
|
24683
|
-
|
|
24684
|
-
|
|
24685
|
-
|
|
24686
|
-
|
|
24687
|
-
|
|
24688
|
-
|
|
24689
|
-
|
|
24690
|
-
|
|
24691
|
-
|
|
24692
|
-
);
|
|
24693
|
-
};
|
|
24694
|
-
const Spinner = (props) => {
|
|
24695
|
-
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(material.CircularProgress, { "aria-label": "Loading", ...props });
|
|
24696
|
-
};
|
|
24697
|
-
const Dialog = ({
|
|
24698
|
-
open,
|
|
24699
|
-
onClose,
|
|
24700
|
-
children,
|
|
24701
|
-
...otherProps
|
|
24702
|
-
}) => {
|
|
24703
|
-
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(material.Dialog, { open, onClose, ...otherProps, children });
|
|
24695
|
+
const visuallyHidden = {
|
|
24696
|
+
border: 0,
|
|
24697
|
+
clip: "rect(0 0 0 0)",
|
|
24698
|
+
height: "1px",
|
|
24699
|
+
margin: "-1px",
|
|
24700
|
+
overflow: "hidden",
|
|
24701
|
+
padding: 0,
|
|
24702
|
+
position: "absolute",
|
|
24703
|
+
whiteSpace: "nowrap",
|
|
24704
|
+
width: "1px"
|
|
24704
24705
|
};
|
|
24705
24706
|
const PrimaryButton = React$1.forwardRef((buttonProps, ref) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(material.Button, { variant: "contained", ref, color: "primary", ...buttonProps, children: buttonProps.children }));
|
|
24706
24707
|
const SecondaryButton = React$1.forwardRef((buttonProps, ref) => {
|
|
@@ -24758,6 +24759,365 @@ const Button = React$1.forwardRef((props, ref) => {
|
|
|
24758
24759
|
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(PrimaryButton, { ...buttonProps, ref });
|
|
24759
24760
|
});
|
|
24760
24761
|
Button.displayName = "Button";
|
|
24762
|
+
const Select$1 = React__namespace.default.forwardRef(({
|
|
24763
|
+
label,
|
|
24764
|
+
value,
|
|
24765
|
+
id,
|
|
24766
|
+
options,
|
|
24767
|
+
width,
|
|
24768
|
+
onChange: onChange2,
|
|
24769
|
+
disabled: disabled2 = false,
|
|
24770
|
+
sx,
|
|
24771
|
+
helperText,
|
|
24772
|
+
error: error2 = false,
|
|
24773
|
+
required = false,
|
|
24774
|
+
fullWidth = false,
|
|
24775
|
+
footer,
|
|
24776
|
+
renderOption,
|
|
24777
|
+
...rest
|
|
24778
|
+
}, ref) => {
|
|
24779
|
+
const reactId = React$1.useId();
|
|
24780
|
+
const selectedId = id ?? `select-${reactId}`;
|
|
24781
|
+
const labelId = label ? `${selectedId}-label` : void 0;
|
|
24782
|
+
const helperTextId = helperText ? `${selectedId}-helper-text` : void 0;
|
|
24783
|
+
const [openInternal, setOpenInternal] = React__namespace.default.useState(false);
|
|
24784
|
+
const isOpenControlled = "open" in rest;
|
|
24785
|
+
const openProp = isOpenControlled ? rest.open : openInternal;
|
|
24786
|
+
const handleOpen = (event) => {
|
|
24787
|
+
var _a;
|
|
24788
|
+
setOpenInternal(true);
|
|
24789
|
+
(_a = rest.onOpen) == null ? void 0 : _a.call(rest, event);
|
|
24790
|
+
};
|
|
24791
|
+
const handleClose = (event) => {
|
|
24792
|
+
var _a;
|
|
24793
|
+
setOpenInternal(false);
|
|
24794
|
+
(_a = rest.onClose) == null ? void 0 : _a.call(rest, event);
|
|
24795
|
+
};
|
|
24796
|
+
const closeMenu = React__namespace.default.useCallback(() => setOpenInternal(false), []);
|
|
24797
|
+
const consumerSx = Array.isArray(sx) ? sx : sx ? [sx] : [];
|
|
24798
|
+
const composedSx = [{
|
|
24799
|
+
minWidth: 88,
|
|
24800
|
+
...width && {
|
|
24801
|
+
width
|
|
24802
|
+
},
|
|
24803
|
+
...fullWidth && {
|
|
24804
|
+
width: "100%"
|
|
24805
|
+
}
|
|
24806
|
+
}, ...consumerSx];
|
|
24807
|
+
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs(material.FormControl, { sx: composedSx, size: "small", error: error2, required, fullWidth, disabled: disabled2, children: [
|
|
24808
|
+
label && /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(material.InputLabel, { id: labelId, required, htmlFor: selectedId, children: label }),
|
|
24809
|
+
/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs(material.Select, { ...rest, open: openProp, onOpen: handleOpen, onClose: handleClose, color: "primary", variant: "outlined", labelId, label, id: selectedId, value, onChange: onChange2, inputRef: ref, "aria-describedby": helperText ? helperTextId : void 0, children: [
|
|
24810
|
+
options.map((option) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(material.MenuItem, { value: option.value, "aria-label": renderOption ? option.label : void 0, disableRipple: true, disabled: option.disabled, children: renderOption ? renderOption(option) : option.label }, option.value)),
|
|
24811
|
+
footer && options.length > 0 && /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(material.Divider, { component: "li", role: "separator", sx: {
|
|
24812
|
+
my: 0.5
|
|
24813
|
+
} }, "__ds-select-footer-divider"),
|
|
24814
|
+
footer && /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(
|
|
24815
|
+
material.Box,
|
|
24816
|
+
{
|
|
24817
|
+
component: "li",
|
|
24818
|
+
role: "presentation",
|
|
24819
|
+
sx: {
|
|
24820
|
+
px: 1.5,
|
|
24821
|
+
py: 0.5,
|
|
24822
|
+
listStyle: "none"
|
|
24823
|
+
},
|
|
24824
|
+
onClick: (e) => e.stopPropagation(),
|
|
24825
|
+
onKeyDown: (e) => {
|
|
24826
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
24827
|
+
e.stopPropagation();
|
|
24828
|
+
}
|
|
24829
|
+
},
|
|
24830
|
+
children: typeof footer === "function" ? footer({
|
|
24831
|
+
closeMenu
|
|
24832
|
+
}) : footer
|
|
24833
|
+
},
|
|
24834
|
+
"__ds-select-footer"
|
|
24835
|
+
)
|
|
24836
|
+
] }),
|
|
24837
|
+
helperText && /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(material.FormHelperText, { error: error2, id: helperTextId, children: helperText })
|
|
24838
|
+
] });
|
|
24839
|
+
});
|
|
24840
|
+
const Skeleton = SkeletonRaw__default.default;
|
|
24841
|
+
const DEFAULT_PAGE_SIZE = 10;
|
|
24842
|
+
const DEFAULT_PAGE_SIZE_OPTIONS = [10, 25, 50, 100];
|
|
24843
|
+
const compareValues = (a, b) => {
|
|
24844
|
+
if (a == null && b == null) return 0;
|
|
24845
|
+
if (a == null) return 1;
|
|
24846
|
+
if (b == null) return -1;
|
|
24847
|
+
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
24848
|
+
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
24849
|
+
return String(a).localeCompare(String(b));
|
|
24850
|
+
};
|
|
24851
|
+
const nextDirection = (current) => current === "asc" ? "desc" : "asc";
|
|
24852
|
+
const EntityList = ({
|
|
24853
|
+
items,
|
|
24854
|
+
columns,
|
|
24855
|
+
getItemKey,
|
|
24856
|
+
getItemHref,
|
|
24857
|
+
getItemLabel,
|
|
24858
|
+
onItemClick,
|
|
24859
|
+
ariaLabelledBy,
|
|
24860
|
+
ariaLabel,
|
|
24861
|
+
initialSort,
|
|
24862
|
+
isLoading,
|
|
24863
|
+
defaultPageSize = DEFAULT_PAGE_SIZE,
|
|
24864
|
+
pageSizeOptions = DEFAULT_PAGE_SIZE_OPTIONS,
|
|
24865
|
+
renderEmpty
|
|
24866
|
+
}) => {
|
|
24867
|
+
const pageSizeSelectId = React$1.useId();
|
|
24868
|
+
const pageSizeLabelId = React$1.useId();
|
|
24869
|
+
const {
|
|
24870
|
+
palette
|
|
24871
|
+
} = styles$3.useTheme();
|
|
24872
|
+
const borderColor = palette.divider;
|
|
24873
|
+
const [sort, setSort] = React$1.useState(initialSort ?? null);
|
|
24874
|
+
const [page, setPage] = React$1.useState(0);
|
|
24875
|
+
const [currentPageSize, setCurrentPageSize] = React$1.useState(defaultPageSize);
|
|
24876
|
+
const sortedItems = React$1.useMemo(() => {
|
|
24877
|
+
if (!sort) return items;
|
|
24878
|
+
const column = columns.find((c) => c.key === sort.key);
|
|
24879
|
+
if (!(column == null ? void 0 : column.getSortValue)) return items;
|
|
24880
|
+
const getSortValue = column.getSortValue;
|
|
24881
|
+
const copy = [...items];
|
|
24882
|
+
copy.sort((a, b) => {
|
|
24883
|
+
const result = compareValues(getSortValue(a), getSortValue(b));
|
|
24884
|
+
return sort.direction === "asc" ? result : -result;
|
|
24885
|
+
});
|
|
24886
|
+
return copy;
|
|
24887
|
+
}, [items, sort, columns]);
|
|
24888
|
+
const pageCount = Math.max(1, Math.ceil(sortedItems.length / currentPageSize));
|
|
24889
|
+
const safePage = Math.min(page, pageCount - 1);
|
|
24890
|
+
const pageStart = safePage * currentPageSize;
|
|
24891
|
+
const pageItems = sortedItems.slice(pageStart, pageStart + currentPageSize);
|
|
24892
|
+
const handleSort = (key) => {
|
|
24893
|
+
setSort((current) => {
|
|
24894
|
+
if ((current == null ? void 0 : current.key) === key) {
|
|
24895
|
+
return {
|
|
24896
|
+
key,
|
|
24897
|
+
direction: nextDirection(current.direction)
|
|
24898
|
+
};
|
|
24899
|
+
}
|
|
24900
|
+
return {
|
|
24901
|
+
key,
|
|
24902
|
+
direction: "asc"
|
|
24903
|
+
};
|
|
24904
|
+
});
|
|
24905
|
+
setPage(0);
|
|
24906
|
+
};
|
|
24907
|
+
const columnFlexBasis = (column) => {
|
|
24908
|
+
if (column.width != null) {
|
|
24909
|
+
return typeof column.width === "number" ? `${column.width}px` : column.width;
|
|
24910
|
+
}
|
|
24911
|
+
return "0";
|
|
24912
|
+
};
|
|
24913
|
+
const columnFlexGrow = (column) => {
|
|
24914
|
+
if (column.width != null) return 0;
|
|
24915
|
+
return column.flex ?? 1;
|
|
24916
|
+
};
|
|
24917
|
+
const sectionProps = ariaLabelledBy ? {
|
|
24918
|
+
"aria-labelledby": ariaLabelledBy
|
|
24919
|
+
} : {
|
|
24920
|
+
"aria-label": ariaLabel
|
|
24921
|
+
};
|
|
24922
|
+
const showEmpty = !isLoading && sortedItems.length === 0;
|
|
24923
|
+
const pageSizeOptionsForSelect = React$1.useMemo(() => pageSizeOptions.map((n) => ({
|
|
24924
|
+
value: n,
|
|
24925
|
+
label: String(n)
|
|
24926
|
+
})), [pageSizeOptions]);
|
|
24927
|
+
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs(MUIBox__default.default, { component: "section", ...sectionProps, sx: {
|
|
24928
|
+
width: "100%"
|
|
24929
|
+
}, children: [
|
|
24930
|
+
/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(FlexBox, { direction: "row", role: "presentation", sx: {
|
|
24931
|
+
px: 2,
|
|
24932
|
+
py: 1,
|
|
24933
|
+
borderBottom: `1px solid ${borderColor}`,
|
|
24934
|
+
gap: 2
|
|
24935
|
+
}, children: columns.map((column) => {
|
|
24936
|
+
const active = (sort == null ? void 0 : sort.key) === column.key;
|
|
24937
|
+
const direction = active ? sort.direction : "asc";
|
|
24938
|
+
const sortable = column.getSortValue != null;
|
|
24939
|
+
const alignStyle = column.align === "right" ? {
|
|
24940
|
+
justifyContent: "flex-end",
|
|
24941
|
+
textAlign: "right"
|
|
24942
|
+
} : void 0;
|
|
24943
|
+
const sharedStyle = {
|
|
24944
|
+
flexGrow: columnFlexGrow(column),
|
|
24945
|
+
flexShrink: 1,
|
|
24946
|
+
flexBasis: columnFlexBasis(column),
|
|
24947
|
+
minWidth: 0,
|
|
24948
|
+
fontWeight: 600,
|
|
24949
|
+
...alignStyle
|
|
24950
|
+
};
|
|
24951
|
+
if (!sortable) {
|
|
24952
|
+
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MUIBox__default.default, { sx: sharedStyle, children: column.header }, column.key);
|
|
24953
|
+
}
|
|
24954
|
+
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs(Button, { variant: "base", disableRipple: true, onClick: () => handleSort(column.key), sx: {
|
|
24955
|
+
...sharedStyle,
|
|
24956
|
+
justifyContent: column.align === "right" ? "flex-end" : "flex-start",
|
|
24957
|
+
gap: 0.5,
|
|
24958
|
+
padding: 0,
|
|
24959
|
+
color: "inherit",
|
|
24960
|
+
font: "inherit",
|
|
24961
|
+
// ButtonBase sets outline: 0 and relies on the theme to style
|
|
24962
|
+
// keyboard focus. Draw a primary-coloured ring on focus-visible
|
|
24963
|
+
// so Tab-through stays legible.
|
|
24964
|
+
"&:focus-visible": {
|
|
24965
|
+
outline: `2px solid ${palette.primary.main}`,
|
|
24966
|
+
outlineOffset: "2px"
|
|
24967
|
+
},
|
|
24968
|
+
// Hover-reveal matches MUI DataGrid: inactive header shows a
|
|
24969
|
+
// faint asc indicator on hover to telegraph what the click
|
|
24970
|
+
// will do. Default opacity lives in CSS (not inline style)
|
|
24971
|
+
// so the hover rule can actually win on specificity.
|
|
24972
|
+
"& .entity-list-sort-hint": {
|
|
24973
|
+
opacity: 0,
|
|
24974
|
+
transition: "opacity 120ms ease"
|
|
24975
|
+
},
|
|
24976
|
+
"&:hover .entity-list-sort-hint": {
|
|
24977
|
+
opacity: 0.5
|
|
24978
|
+
}
|
|
24979
|
+
}, children: [
|
|
24980
|
+
/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx("span", { children: column.header }),
|
|
24981
|
+
active && // Visually-hidden text puts the sort direction into the
|
|
24982
|
+
// button's accessible name, so screen readers announce
|
|
24983
|
+
// "Name, sorted ascending, button". ARIA 1.2 limits
|
|
24984
|
+
// aria-sort to columnheader/rowheader roles, and EntityList
|
|
24985
|
+
// is a list — not a grid — so we convey the state through
|
|
24986
|
+
// the name instead.
|
|
24987
|
+
/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs(MUIBox__default.default, { component: "span", sx: visuallyHidden, children: [
|
|
24988
|
+
", sorted ",
|
|
24989
|
+
direction === "asc" ? "ascending" : "descending"
|
|
24990
|
+
] }),
|
|
24991
|
+
active ? direction === "asc" ? /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(ExpandLessIcon, { "aria-hidden": "true", sx: {
|
|
24992
|
+
fontSize: "1em",
|
|
24993
|
+
color: palette.primary.main
|
|
24994
|
+
} }) : /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(ExpandMoreIcon, { "aria-hidden": "true", sx: {
|
|
24995
|
+
fontSize: "1em",
|
|
24996
|
+
color: palette.primary.main
|
|
24997
|
+
} }) : /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(ExpandLessIcon, { className: "entity-list-sort-hint", "aria-hidden": "true", sx: {
|
|
24998
|
+
fontSize: "1em"
|
|
24999
|
+
} })
|
|
25000
|
+
] }, column.key);
|
|
25001
|
+
}) }),
|
|
25002
|
+
isLoading && /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs(emotionReactJsxRuntime_browser_esm.Fragment, { children: [
|
|
25003
|
+
/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MUIBox__default.default, { role: "status", "aria-live": "polite", sx: visuallyHidden, children: "Loading" }),
|
|
25004
|
+
/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(List, { disablePadding: true, "aria-hidden": "true", children: Array.from({
|
|
25005
|
+
length: currentPageSize
|
|
25006
|
+
}).map((_, i) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(ListItem, { disablePadding: true, children: /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs(MUIBox__default.default, { sx: {
|
|
25007
|
+
display: "flex",
|
|
25008
|
+
alignItems: "center",
|
|
25009
|
+
gap: 2,
|
|
25010
|
+
px: 2,
|
|
25011
|
+
py: 1.5,
|
|
25012
|
+
borderBottom: `1px solid ${borderColor}`,
|
|
25013
|
+
width: "100%"
|
|
25014
|
+
}, children: [
|
|
25015
|
+
columns.map((column) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MUIBox__default.default, { sx: {
|
|
25016
|
+
flexGrow: columnFlexGrow(column),
|
|
25017
|
+
flexShrink: 1,
|
|
25018
|
+
flexBasis: columnFlexBasis(column),
|
|
25019
|
+
minWidth: 0
|
|
25020
|
+
}, children: /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(Skeleton, { variant: "text" }) }, column.key)),
|
|
25021
|
+
getItemHref && /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(Skeleton, { variant: "text", sx: {
|
|
25022
|
+
width: 16
|
|
25023
|
+
} })
|
|
25024
|
+
] }) }, i)) })
|
|
25025
|
+
] }),
|
|
25026
|
+
showEmpty && /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MUIBox__default.default, { sx: {
|
|
25027
|
+
px: 2,
|
|
25028
|
+
py: 4
|
|
25029
|
+
}, children: renderEmpty ? renderEmpty() : /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(Text$1, { children: "No items" }) }),
|
|
25030
|
+
!isLoading && !showEmpty && /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(List, { disablePadding: true, children: pageItems.map((item) => {
|
|
25031
|
+
const href = getItemHref == null ? void 0 : getItemHref(item);
|
|
25032
|
+
const label = getItemLabel == null ? void 0 : getItemLabel(item);
|
|
25033
|
+
const interactive = typeof href === "string";
|
|
25034
|
+
const rowContentStyle = {
|
|
25035
|
+
display: "flex",
|
|
25036
|
+
alignItems: "center",
|
|
25037
|
+
gap: 2,
|
|
25038
|
+
px: 2,
|
|
25039
|
+
py: 1.5,
|
|
25040
|
+
borderBottom: `1px solid ${borderColor}`
|
|
25041
|
+
};
|
|
25042
|
+
const cells = columns.map((column) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MUIBox__default.default, { sx: {
|
|
25043
|
+
flexGrow: columnFlexGrow(column),
|
|
25044
|
+
flexShrink: 1,
|
|
25045
|
+
flexBasis: columnFlexBasis(column),
|
|
25046
|
+
minWidth: 0,
|
|
25047
|
+
overflow: "hidden",
|
|
25048
|
+
textOverflow: "ellipsis",
|
|
25049
|
+
whiteSpace: "nowrap",
|
|
25050
|
+
textAlign: column.align === "right" ? "right" : "left"
|
|
25051
|
+
}, children: column.render(item) }, column.key));
|
|
25052
|
+
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(ListItem, { disablePadding: true, children: interactive ? /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs(ListItemButton, { component: "a", href, "aria-label": label, onClick: (e) => {
|
|
25053
|
+
if (!onItemClick) return;
|
|
25054
|
+
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
|
|
25055
|
+
if (e.button !== 0) return;
|
|
25056
|
+
e.preventDefault();
|
|
25057
|
+
onItemClick(item, href);
|
|
25058
|
+
}, disableRipple: true, sx: {
|
|
25059
|
+
...rowContentStyle,
|
|
25060
|
+
color: "inherit",
|
|
25061
|
+
textDecoration: "none"
|
|
25062
|
+
}, children: [
|
|
25063
|
+
cells,
|
|
25064
|
+
/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(ChevronRightIcon, { "aria-hidden": "true", sx: {
|
|
25065
|
+
fontSize: "1em"
|
|
25066
|
+
} })
|
|
25067
|
+
] }) : /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MUIBox__default.default, { sx: {
|
|
25068
|
+
...rowContentStyle,
|
|
25069
|
+
width: "100%"
|
|
25070
|
+
}, children: cells }) }, getItemKey(item));
|
|
25071
|
+
}) }),
|
|
25072
|
+
!isLoading && !showEmpty && /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs(FlexBox, { direction: "row", alignItems: "center", justifyContent: "flex-end", gap: 2, sx: {
|
|
25073
|
+
px: 2,
|
|
25074
|
+
py: 1
|
|
25075
|
+
}, children: [
|
|
25076
|
+
/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MUIBox__default.default, { component: "label", htmlFor: pageSizeSelectId, id: pageSizeLabelId, children: /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(Text$1, { component: "span", children: "Rows per page:" }) }),
|
|
25077
|
+
/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(
|
|
25078
|
+
Select$1,
|
|
25079
|
+
{
|
|
25080
|
+
id: pageSizeSelectId,
|
|
25081
|
+
value: currentPageSize,
|
|
25082
|
+
options: pageSizeOptionsForSelect,
|
|
25083
|
+
SelectDisplayProps: {
|
|
25084
|
+
"aria-labelledby": pageSizeLabelId
|
|
25085
|
+
},
|
|
25086
|
+
onChange: (e) => {
|
|
25087
|
+
setCurrentPageSize(Number(e.target.value));
|
|
25088
|
+
setPage(0);
|
|
25089
|
+
}
|
|
25090
|
+
}
|
|
25091
|
+
),
|
|
25092
|
+
/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(Text$1, { children: sortedItems.length === 0 ? "0 of 0" : `${pageStart + 1}–${Math.min(pageStart + currentPageSize, sortedItems.length)} of ${sortedItems.length}` }),
|
|
25093
|
+
/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(IconButton, { onClick: () => setPage((p5) => Math.max(0, p5 - 1)), disabled: safePage === 0, "aria-label": "Previous page", size: "small", children: /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(ChevronLeftIcon, {}) }),
|
|
25094
|
+
/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(IconButton, { onClick: () => setPage((p5) => Math.min(pageCount - 1, p5 + 1)), disabled: safePage >= pageCount - 1, "aria-label": "Next page", size: "small", children: /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(ChevronRightIcon, {}) })
|
|
25095
|
+
] })
|
|
25096
|
+
] });
|
|
25097
|
+
};
|
|
25098
|
+
const LinearProgress = ({
|
|
25099
|
+
// isActive,
|
|
25100
|
+
// transition = 500,
|
|
25101
|
+
...linearProgressProps
|
|
25102
|
+
}) => {
|
|
25103
|
+
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(
|
|
25104
|
+
LinearProgressRaw__default.default,
|
|
25105
|
+
{
|
|
25106
|
+
...linearProgressProps
|
|
25107
|
+
}
|
|
25108
|
+
);
|
|
25109
|
+
};
|
|
25110
|
+
const Spinner = (props) => {
|
|
25111
|
+
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(material.CircularProgress, { "aria-label": "Loading", ...props });
|
|
25112
|
+
};
|
|
25113
|
+
const Dialog = ({
|
|
25114
|
+
open,
|
|
25115
|
+
onClose,
|
|
25116
|
+
children,
|
|
25117
|
+
...otherProps
|
|
25118
|
+
}) => {
|
|
25119
|
+
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(material.Dialog, { open, onClose, ...otherProps, children });
|
|
25120
|
+
};
|
|
24761
25121
|
const noop$1 = () => {
|
|
24762
25122
|
};
|
|
24763
25123
|
const defaultIconFor = (variant) => {
|
|
@@ -24869,7 +25229,6 @@ const ConfirmDialog = ({
|
|
|
24869
25229
|
] })
|
|
24870
25230
|
] });
|
|
24871
25231
|
};
|
|
24872
|
-
const Skeleton = SkeletonRaw__default.default;
|
|
24873
25232
|
const snackbar = ({
|
|
24874
25233
|
type,
|
|
24875
25234
|
message,
|
|
@@ -25113,84 +25472,6 @@ const TextField = React__namespace.default.forwardRef(({
|
|
|
25113
25472
|
}, ref) => {
|
|
25114
25473
|
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(material.TextField, { ...rest, inputRef: ref, error: Boolean(error2 ?? errorText), helperText: error2 ? errorText ?? helperText : helperText });
|
|
25115
25474
|
});
|
|
25116
|
-
const Select$1 = React__namespace.default.forwardRef(({
|
|
25117
|
-
label,
|
|
25118
|
-
value,
|
|
25119
|
-
id,
|
|
25120
|
-
options,
|
|
25121
|
-
width,
|
|
25122
|
-
onChange: onChange2,
|
|
25123
|
-
disabled: disabled2 = false,
|
|
25124
|
-
sx,
|
|
25125
|
-
helperText,
|
|
25126
|
-
error: error2 = false,
|
|
25127
|
-
required = false,
|
|
25128
|
-
fullWidth = false,
|
|
25129
|
-
footer,
|
|
25130
|
-
renderOption,
|
|
25131
|
-
...rest
|
|
25132
|
-
}, ref) => {
|
|
25133
|
-
const reactId = React$1.useId();
|
|
25134
|
-
const selectedId = id ?? `select-${reactId}`;
|
|
25135
|
-
const labelId = label ? `${selectedId}-label` : void 0;
|
|
25136
|
-
const helperTextId = helperText ? `${selectedId}-helper-text` : void 0;
|
|
25137
|
-
const [openInternal, setOpenInternal] = React__namespace.default.useState(false);
|
|
25138
|
-
const isOpenControlled = "open" in rest;
|
|
25139
|
-
const openProp = isOpenControlled ? rest.open : openInternal;
|
|
25140
|
-
const handleOpen = (event) => {
|
|
25141
|
-
var _a;
|
|
25142
|
-
setOpenInternal(true);
|
|
25143
|
-
(_a = rest.onOpen) == null ? void 0 : _a.call(rest, event);
|
|
25144
|
-
};
|
|
25145
|
-
const handleClose = (event) => {
|
|
25146
|
-
var _a;
|
|
25147
|
-
setOpenInternal(false);
|
|
25148
|
-
(_a = rest.onClose) == null ? void 0 : _a.call(rest, event);
|
|
25149
|
-
};
|
|
25150
|
-
const closeMenu = React__namespace.default.useCallback(() => setOpenInternal(false), []);
|
|
25151
|
-
const consumerSx = Array.isArray(sx) ? sx : sx ? [sx] : [];
|
|
25152
|
-
const composedSx = [{
|
|
25153
|
-
minWidth: 88,
|
|
25154
|
-
...width && {
|
|
25155
|
-
width
|
|
25156
|
-
},
|
|
25157
|
-
...fullWidth && {
|
|
25158
|
-
width: "100%"
|
|
25159
|
-
}
|
|
25160
|
-
}, ...consumerSx];
|
|
25161
|
-
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs(material.FormControl, { sx: composedSx, size: "small", error: error2, required, fullWidth, disabled: disabled2, children: [
|
|
25162
|
-
label && /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(material.InputLabel, { id: labelId, required, htmlFor: selectedId, children: label }),
|
|
25163
|
-
/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs(material.Select, { ...rest, open: openProp, onOpen: handleOpen, onClose: handleClose, color: "primary", variant: "outlined", labelId, label, id: selectedId, value, onChange: onChange2, inputRef: ref, "aria-describedby": helperText ? helperTextId : void 0, children: [
|
|
25164
|
-
options.map((option) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(material.MenuItem, { value: option.value, "aria-label": renderOption ? option.label : void 0, disableRipple: true, disabled: option.disabled, children: renderOption ? renderOption(option) : option.label }, option.value)),
|
|
25165
|
-
footer && options.length > 0 && /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(material.Divider, { component: "li", role: "separator", sx: {
|
|
25166
|
-
my: 0.5
|
|
25167
|
-
} }, "__ds-select-footer-divider"),
|
|
25168
|
-
footer && /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(
|
|
25169
|
-
material.Box,
|
|
25170
|
-
{
|
|
25171
|
-
component: "li",
|
|
25172
|
-
role: "presentation",
|
|
25173
|
-
sx: {
|
|
25174
|
-
px: 1.5,
|
|
25175
|
-
py: 0.5,
|
|
25176
|
-
listStyle: "none"
|
|
25177
|
-
},
|
|
25178
|
-
onClick: (e) => e.stopPropagation(),
|
|
25179
|
-
onKeyDown: (e) => {
|
|
25180
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
25181
|
-
e.stopPropagation();
|
|
25182
|
-
}
|
|
25183
|
-
},
|
|
25184
|
-
children: typeof footer === "function" ? footer({
|
|
25185
|
-
closeMenu
|
|
25186
|
-
}) : footer
|
|
25187
|
-
},
|
|
25188
|
-
"__ds-select-footer"
|
|
25189
|
-
)
|
|
25190
|
-
] }),
|
|
25191
|
-
helperText && /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(material.FormHelperText, { error: error2, id: helperTextId, children: helperText })
|
|
25192
|
-
] });
|
|
25193
|
-
});
|
|
25194
25475
|
const SingleAutocomplete = React$1.forwardRef(({
|
|
25195
25476
|
label,
|
|
25196
25477
|
value,
|
|
@@ -28392,7 +28673,7 @@ const Panel$1 = ({
|
|
|
28392
28673
|
const theme = styles$3.useTheme();
|
|
28393
28674
|
const context = useFloatingPanelContext();
|
|
28394
28675
|
const visible = (_a = context.panels[targetId]) == null ? void 0 : _a.visible;
|
|
28395
|
-
const backgroundColor =
|
|
28676
|
+
const backgroundColor = theme.palette.background.paper;
|
|
28396
28677
|
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs(MUIBox__default.default, { sx: {
|
|
28397
28678
|
width: "100%",
|
|
28398
28679
|
height: "100%",
|
|
@@ -28423,7 +28704,7 @@ const Panel$1 = ({
|
|
|
28423
28704
|
count > 0 ? /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs("span", { css: /* @__PURE__ */ react.css({
|
|
28424
28705
|
marginLeft: 4,
|
|
28425
28706
|
color: theme.palette.primary.main
|
|
28426
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:Panel;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
28707
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Panel;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy9jb21wb25lbnRzL3N1cmZhY2VzL0Zsb2F0aW5nUGFuZWwvUGFuZWwudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtHK0IiLCJmaWxlIjoiL2hvbWUvcnVubmVyL3dvcmsvdGVsaWNlbnQtZHMvdGVsaWNlbnQtZHMvc3JjL2NvbXBvbmVudHMvc3VyZmFjZXMvRmxvYXRpbmdQYW5lbC9QYW5lbC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgSFRNTEF0dHJpYnV0ZXMgfSBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCBNVUlTdGFjayBmcm9tIFwiQG11aS9tYXRlcmlhbC9TdGFja1wiO1xuaW1wb3J0IE1VSUJveCBmcm9tIFwiQG11aS9tYXRlcmlhbC9Cb3hcIjtcbmltcG9ydCB7IHVzZVRoZW1lIH0gZnJvbSBcIkBtdWkvbWF0ZXJpYWwvc3R5bGVzXCI7XG5cbmltcG9ydCB7IFRleHQsIFhJY29uIH0gZnJvbSBcIi4uLy4uL2RhdGEtZGlzcGxheVwiO1xuaW1wb3J0IHsgSWNvbkJ1dHRvbiB9IGZyb20gXCIuLi8uLi9idXR0b25zXCI7XG5pbXBvcnQgeyB1c2VGbG9hdGluZ1BhbmVsQ29udGV4dCB9IGZyb20gXCIu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liaWxpdHkodGFyZ2V0SWQpfVxuICAgICAgICAgICAgY29sb3I9XCJwcmltYXJ5XCJcbiAgICAgICAgICAgIGFyaWEtbGFiZWw9XCJjbG9zZVwiXG4gICAgICAgICAgPlxuICAgICAgICAgICAgPFhJY29uIGZvbnRTaXplPVwic21hbGxcIiAvPlxuICAgICAgICAgIDwvSWNvbkJ1dHRvbj5cbiAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgPC9NVUlTdGFjaz5cbiAgICAgIDxNVUlCb3hcbiAgICAgICAgc3g9e3tcbiAgICAgICAgICBiYWNrZ3JvdW5kQ29sb3IsXG4gICAgICAgICAgd2lkdGg6IFwiMTAwJVwiLFxuICAgICAgICAgIGZsZXg6IDEsXG4gICAgICAgICAgbWluSGVpZ2h0OiAwLFxuICAgICAgICAgIGJvcmRlckJvdHRvbUxlZnRSYWRpdXM6IDQsXG4gICAgICAgICAgYm9yZGVyQm90dG9tUmlnaHRSYWRpdXM6IDQsXG4gICAgICAgICAgYm9yZGVyVG9wUmlnaHRSYWRpdXM6IDQsXG4gICAgICAgICAgcGw6IDEsXG4gICAgICAgICAgcHI6IDEsXG4gICAgICAgICAgcGI6IDEsXG4gICAgICAgIH19XG4gICAgICA+XG4gICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgPGRpdlxuICAgICAgICAgIHN0eWxlPXt7XG4gICAgICAgICAgICBwb3NpdGlvbjogXCJhYnNvbHV0ZVwiLFxuICAgICAgICAgICAgYm90dG9tOiAwLFxuICAgICAgICAgICAgcmlnaHQ6IDAsXG4gICAgICAgICAgICB3aWR0aDogXCIxcmVtXCIsIC8vIHctOFxuICAgICAgICAgICAgaGVpZ2h0OiBcIjFyZW1cIiwgLy8gaC04XG4gICAgICAgICAgICBib3JkZXJSaWdodDogYDJweCBzb2xpZCAke3RoZW1lLnBhbGV0dGUuZGl2aWRlcn1gLFxuICAgICAgICAgICAgYm9yZGVyQm90dG9tOiBgMnB4IHNvbGlkICR7dGhlbWUucGFsZXR0ZS5kaXZpZGVyfWAsXG4gICAgICAgICAgICB6SW5kZXg6IDEwMCxcbiAgICAgICAgICB9fVxuICAgICAgICAvPlxuICAgICAgPC9NVUlCb3g+XG4gICAgPC9NVUlCb3g+XG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBQYW5lbDtcbmV4cG9ydCB0eXBlIHsgUGFuZWxQcm9wcyB9O1xuIl19 */"), children: [
|
|
28427
28708
|
"(",
|
|
28428
28709
|
count,
|
|
28429
28710
|
")"
|
|
@@ -28456,8 +28737,8 @@ const Panel$1 = ({
|
|
|
28456
28737
|
// w-8
|
|
28457
28738
|
height: "1rem",
|
|
28458
28739
|
// h-8
|
|
28459
|
-
borderRight:
|
|
28460
|
-
borderBottom:
|
|
28740
|
+
borderRight: `2px solid ${theme.palette.divider}`,
|
|
28741
|
+
borderBottom: `2px solid ${theme.palette.divider}`,
|
|
28461
28742
|
zIndex: 100
|
|
28462
28743
|
} })
|
|
28463
28744
|
] })
|
|
@@ -28542,7 +28823,7 @@ const Panel = ({
|
|
|
28542
28823
|
const theme = styles$3.useTheme();
|
|
28543
28824
|
const context = useFloatingPanelContext();
|
|
28544
28825
|
const visible = !((_a = context.panels[targetId]) == null ? void 0 : _a.minimised) && ((_b = context.panels[targetId]) == null ? void 0 : _b.visible);
|
|
28545
|
-
const backgroundColor = theme.palette.mode === "dark" ? theme.palette.grey[900] : theme.palette.
|
|
28826
|
+
const backgroundColor = theme.palette.mode === "dark" ? theme.palette.grey[900] : theme.palette.background.paper;
|
|
28546
28827
|
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs(MUIBox__default.default, { sx: {
|
|
28547
28828
|
width: "fit-content",
|
|
28548
28829
|
height: "fit-content",
|
|
@@ -28563,7 +28844,7 @@ const Panel = ({
|
|
|
28563
28844
|
count > 0 ? /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsxs("span", { css: /* @__PURE__ */ react.css({
|
|
28564
28845
|
marginLeft: 4,
|
|
28565
28846
|
color: theme.palette.primary.main
|
|
28566
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:Panel;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy9jb21wb25lbnRzL3N1cmZhY2VzL0ZpeGVkUGFuZWwvRml4ZWRQYW5lbC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0Y2QiIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay90ZWxpY2VudC1kcy90ZWxpY2VudC1kcy9zcmMvY29tcG9uZW50cy9zdXJmYWNlcy9GaXhlZFBhbmVsL0ZpeGVkUGFuZWwudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IEhUTUxBdHRyaWJ1dGVzIH0gZnJvbSBcInJlYWN0XCI7XG5pbXBvcnQgTVVJU3RhY2sgZnJvbSBcIkBtdWkvbWF0ZXJpYWwvU3RhY2tcIjtcbmltcG9ydCBNVUlCb3ggZnJvbSBcIkBtdWkvbWF0ZXJpYWwvQm94XCI7XG5pbXBvcnQgeyB1c2VUaGVtZSB9IGZyb20gXCJAbXVpL21hdGVyaWFsL3N0eWxlc1wiO1xuXG5pbXBvcnQgeyBUZXh0LCBYSWNvbiB9IGZyb20gXCIuLi8uLi9kYXRhLWRpc3BsYXlcIjtcbmltcG9ydCB7IEljb25CdXR0b24gfSBmcm9tIFwiLi4vLi4vYnV0dG9uc1wiO1xuaW1wb3J0IHsgdXNlRmxvYXRpbmdQYW5lbENvbnRleHQgfSBmcm9tIFwiLi4vRmxvYXRpbmdQYW5lbC91c2VGbG9hdGluZ1BhbmVsQ29udGV4dFwiO1xuXG5pbnRlcmZhY2UgUGFuZWxQcm9wcyBleHRlbmRzIEhUTUxBdHRyaWJ1dGVzPEhUTUxEaXZFbGVtZW50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sXG4gIGNoaWxkcmVuLFxuICBkcmFnSGFuZGxlID0gbnVsbCxcbiAgLi4ucHJvcHNcbn0pID0+
|
|
28847
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:Panel;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy9jb21wb25lbnRzL3N1cmZhY2VzL0ZpeGVkUGFuZWwvRml4ZWRQYW5lbC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0Y2QiIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay90ZWxpY2VudC1kcy90ZWxpY2VudC1kcy9zcmMvY29tcG9uZW50cy9zdXJmYWNlcy9GaXhlZFBhbmVsL0ZpeGVkUGFuZWwudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IEhUTUxBdHRyaWJ1dGVzIH0gZnJvbSBcInJlYWN0XCI7XG5pbXBvcnQgTVVJU3RhY2sgZnJvbSBcIkBtdWkvbWF0ZXJpYWwvU3RhY2tcIjtcbmltcG9ydCBNVUlCb3ggZnJvbSBcIkBtdWkvbWF0ZXJpYWwvQm94XCI7XG5pbXBvcnQgeyB1c2VUaGVtZSB9IGZyb20gXCJAbXVpL21hdGVyaWFsL3N0eWxlc1wiO1xuXG5pbXBvcnQgeyBUZXh0LCBYSWNvbiB9IGZyb20gXCIuLi8uLi9kYXRhLWRpc3BsYXlcIjtcbmltcG9ydCB7IEljb25CdXR0b24gfSBmcm9tIFwiLi4vLi4vYnV0dG9uc1wiO1xuaW1wb3J0IHsgdXNlRmxvYXRpbmdQYW5lbENvbnRleHQgfSBmcm9tIFwiLi4vRmxvYXRpbmdQYW5lbC91c2VGbG9hdGluZ1BhbmVsQ29udGV4dFwiO1xuXG5pbnRlcmZhY2UgUGFuZWx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naHRSYWRpdXM6IDQsXG4gICAgICAgIH19XG4gICAgICA+XG4gICAgICAgIHtkcmFnSGFuZGxlfVxuICAgICAgICB7aWNvbkJlZm9yZVRpdGxlfVxuICAgICAgICA8VGV4dCBzeD17eyBwYWRkaW5nUmlnaHQ6IDQgfX0+XG4gICAgICAgICAge3RpdGxlfVxuICAgICAgICAgIHtjb3VudCA+IDAgPyA8c3BhbiBjc3M9e3sgbWFyZ2luTGVmdDogNCwgY29sb3I6IHRoZW1lLnBhbGV0dGUucHJpbWFyeS5tYWluIH19Pih7Y291bnR9KTwvc3Bhbj4gOiBudWxsfVxuICAgICAgICA8L1RleHQ+XG4gICAgICAgIDxJY29uQnV0dG9uXG4gICAgICAgICAgc2l6ZT1cInNtYWxsXCJcbiAgICAgICAgICBvbkNsaWNrPXsoKSA9PiBjb250ZXh0Py50b2dnbGVWaXNpYmlsaXR5KHRhcmdldElkKX1cbiAgICAgICAgICBjb2xvcj1cInByaW1hcnlcIlxuICAgICAgICAgIGFyaWEtbGFiZWw9XCJtaW5pbWlzZVwiXG4gICAgICAgID5cbiAgICAgICAgICA8WEljb24gZm9udFNpemU9XCJzbWFsbFwiIC8+XG4gICAgICAgIDwvSWNvbkJ1dHRvbj5cbiAgICAgIDwvTVVJU3RhY2s+XG4gICAgICA8TVVJQm94XG4gICAgICAgIHN4PXt7XG4gICAgICAgICAgYmFja2dyb3VuZENvbG9yLFxuICAgICAgICAgIHdpZHRoOiBcImZpdC1jb250ZW50XCIsXG4gICAgICAgICAgaGVpZ2h0OiBcImZpdC1jb250ZW50XCIsXG4gICAgICAgICAgYm9yZGVyQm90dG9tTGVmdFJhZGl1czogNCxcbiAgICAgICAgICBib3JkZXJCb3R0b21SaWdodFJhZGl1czogNCxcbiAgICAgICAgICBib3JkZXJUb3BSaWdodFJhZGl1czogNCxcbiAgICAgICAgICBwYWRkaW5nOiAwLjQsXG4gICAgICAgIH19XG4gICAgICA+XG4gICAgICAgIHshY29udGV4dD8uZ2V0KHRhcmdldElkLCBcIm1pbmltaXNlZFwiKSAmJiBjaGlsZHJlbn1cbiAgICAgIDwvTVVJQm94PlxuICAgIDwvTVVJQm94PlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgUGFuZWw7XG5leHBvcnQgdHlwZSB7IFBhbmVsUHJvcHMgfTtcbiJdfQ== */"), children: [
|
|
28567
28848
|
"(",
|
|
28568
28849
|
count,
|
|
28569
28850
|
")"
|
|
@@ -28582,6 +28863,20 @@ const Panel = ({
|
|
|
28582
28863
|
}, children: !(context == null ? void 0 : context.get(targetId, "minimised")) && children })
|
|
28583
28864
|
] });
|
|
28584
28865
|
};
|
|
28866
|
+
const Drawer = ({
|
|
28867
|
+
width,
|
|
28868
|
+
PaperProps,
|
|
28869
|
+
...props
|
|
28870
|
+
}) => {
|
|
28871
|
+
const paperSx = PaperProps == null ? void 0 : PaperProps.sx;
|
|
28872
|
+
const consumerSx = Array.isArray(paperSx) ? paperSx : paperSx ? [paperSx] : [];
|
|
28873
|
+
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MuiDrawer__default.default, { PaperProps: width === void 0 ? PaperProps : {
|
|
28874
|
+
...PaperProps,
|
|
28875
|
+
sx: [{
|
|
28876
|
+
width
|
|
28877
|
+
}, ...consumerSx]
|
|
28878
|
+
}, ...props });
|
|
28879
|
+
};
|
|
28585
28880
|
const Popper = (props) => /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MUIPopper__default.default, { ...props });
|
|
28586
28881
|
const Toolbar = ({
|
|
28587
28882
|
children,
|
|
@@ -28601,17 +28896,6 @@ const Toolbar = ({
|
|
|
28601
28896
|
const Paper = React$1.forwardRef(function Paper2(props, ref) {
|
|
28602
28897
|
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(MUIPaper__default.default, { ref, ...props });
|
|
28603
28898
|
});
|
|
28604
|
-
const main$4 = "#2F44CA";
|
|
28605
|
-
const DataNavy = {
|
|
28606
|
-
light: {
|
|
28607
|
-
primary: {
|
|
28608
|
-
main: main$4,
|
|
28609
|
-
dark: styles$3.alpha(main$4, 0.7),
|
|
28610
|
-
light: styles$3.alpha(main$4, 0.5),
|
|
28611
|
-
contrastText: "#FFFFFF"
|
|
28612
|
-
}
|
|
28613
|
-
}
|
|
28614
|
-
};
|
|
28615
28899
|
const main$3 = "#F56AAA";
|
|
28616
28900
|
const mainLight$1 = "#B70071";
|
|
28617
28901
|
const DocumentPink = {
|
|
@@ -28746,9 +29030,8 @@ const Blank = {
|
|
|
28746
29030
|
}
|
|
28747
29031
|
}
|
|
28748
29032
|
};
|
|
28749
|
-
const UIThemeSchema = z.enum(["
|
|
29033
|
+
const UIThemeSchema = z.enum(["DocumentPink", "GraphOrange", "AdminBlue", "GeoGreen", "Blank"]);
|
|
28750
29034
|
const THEME_COLORS = {
|
|
28751
|
-
DataNavy,
|
|
28752
29035
|
DocumentPink,
|
|
28753
29036
|
GraphOrange,
|
|
28754
29037
|
AdminBlue,
|
|
@@ -28790,6 +29073,27 @@ const generateAccordionOverrides = (_uiTheme) => ({
|
|
|
28790
29073
|
}
|
|
28791
29074
|
}
|
|
28792
29075
|
});
|
|
29076
|
+
const generateBadgeOverrides = (_uiTheme) => ({
|
|
29077
|
+
MuiBadge: {
|
|
29078
|
+
styleOverrides: {
|
|
29079
|
+
badge: ({
|
|
29080
|
+
theme
|
|
29081
|
+
}) => ({
|
|
29082
|
+
// Clicks go to what the badge sits on.
|
|
29083
|
+
pointerEvents: "none",
|
|
29084
|
+
"&.MuiBadge-standard": {
|
|
29085
|
+
minWidth: 20,
|
|
29086
|
+
height: 20,
|
|
29087
|
+
padding: "0 5px",
|
|
29088
|
+
borderRadius: 999,
|
|
29089
|
+
fontSize: 11,
|
|
29090
|
+
fontWeight: 700,
|
|
29091
|
+
border: `2px solid ${theme.palette.background.default}`
|
|
29092
|
+
}
|
|
29093
|
+
})
|
|
29094
|
+
}
|
|
29095
|
+
}
|
|
29096
|
+
});
|
|
28793
29097
|
const generateButtonOverrides = (_uiTheme) => ({
|
|
28794
29098
|
MuiButton: {
|
|
28795
29099
|
styleOverrides: {
|
|
@@ -28873,6 +29177,17 @@ const generateCardOverrides = (_uiTheme) => ({
|
|
|
28873
29177
|
}
|
|
28874
29178
|
}
|
|
28875
29179
|
});
|
|
29180
|
+
const generateDrawerOverrides = (_uiTheme) => ({
|
|
29181
|
+
MuiDrawer: {
|
|
29182
|
+
styleOverrides: {
|
|
29183
|
+
paper: ({
|
|
29184
|
+
ownerState
|
|
29185
|
+
}) => ownerState.variant === "temporary" ? {
|
|
29186
|
+
maxWidth: "100vw"
|
|
29187
|
+
} : {}
|
|
29188
|
+
}
|
|
29189
|
+
}
|
|
29190
|
+
});
|
|
28876
29191
|
const generateTabsOverrides = (_uiTheme) => ({
|
|
28877
29192
|
MuiTabs: {
|
|
28878
29193
|
styleOverrides: {
|
|
@@ -29051,8 +29366,10 @@ const FONT_FACES_CSS = `
|
|
|
29051
29366
|
const generateComponentOverrides = (uiTheme) => ({
|
|
29052
29367
|
...AVATAR_OVERRIDES,
|
|
29053
29368
|
...generateAccordionOverrides(),
|
|
29369
|
+
...generateBadgeOverrides(),
|
|
29054
29370
|
...generateButtonOverrides(),
|
|
29055
29371
|
...generateCardOverrides(),
|
|
29372
|
+
...generateDrawerOverrides(),
|
|
29056
29373
|
...generateTabsOverrides(),
|
|
29057
29374
|
...generateToggleButtonOverrides(),
|
|
29058
29375
|
MuiPaper: {
|
|
@@ -30421,7 +30738,7 @@ function useDrawer(args) {
|
|
|
30421
30738
|
}
|
|
30422
30739
|
};
|
|
30423
30740
|
}
|
|
30424
|
-
const
|
|
30741
|
+
const InsetDrawer = React$1.forwardRef(({
|
|
30425
30742
|
initialOpen = true,
|
|
30426
30743
|
onVisibilityChange,
|
|
30427
30744
|
children,
|
|
@@ -30436,7 +30753,7 @@ const Drawer = React$1.forwardRef(({
|
|
|
30436
30753
|
});
|
|
30437
30754
|
return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(DrawerPresentational, { ...drawerProps, ...rest, children });
|
|
30438
30755
|
});
|
|
30439
|
-
|
|
30756
|
+
InsetDrawer.displayName = "InsetDrawer";
|
|
30440
30757
|
const ControlArea$1 = ({
|
|
30441
30758
|
position,
|
|
30442
30759
|
children,
|
|
@@ -78054,7 +78371,10 @@ const LayerSelectorV2 = ({
|
|
|
78054
78371
|
var _a;
|
|
78055
78372
|
return (_a = l.get("kind")) == null ? void 0 : _a.startsWith("base");
|
|
78056
78373
|
}), [layers]);
|
|
78057
|
-
const selectedMeta = React$1.useMemo(() =>
|
|
78374
|
+
const selectedMeta = React$1.useMemo(() => {
|
|
78375
|
+
const layer2 = baseLayers[selectedIndex];
|
|
78376
|
+
return layer2 ? getMeta(layer2) : void 0;
|
|
78377
|
+
}, [baseLayers, selectedIndex]);
|
|
78058
78378
|
const handleSelect = (label) => {
|
|
78059
78379
|
localStorage.setItem("map.baselayer", label);
|
|
78060
78380
|
layers.forEach((layer2) => {
|
|
@@ -78108,11 +78428,11 @@ const LayerSelectorV2 = ({
|
|
|
78108
78428
|
display: "flex",
|
|
78109
78429
|
alignItems: "center",
|
|
78110
78430
|
gap: "6px",
|
|
78111
|
-
backgroundColor:
|
|
78112
|
-
color:
|
|
78431
|
+
backgroundColor: theme.palette.background.default,
|
|
78432
|
+
color: theme.palette.text.primary,
|
|
78113
78433
|
"&:hover": {
|
|
78114
78434
|
color: theme.palette.primary.main,
|
|
78115
|
-
backgroundColor:
|
|
78435
|
+
backgroundColor: theme.palette.background.default
|
|
78116
78436
|
}
|
|
78117
78437
|
}, children: [
|
|
78118
78438
|
(selectedMeta == null ? void 0 : selectedMeta.image) ? /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(Image$1, { src: selectedMeta.image, alt: selectedMeta.label, title: selectedMeta.label }) : null,
|
|
@@ -80300,39 +80620,6 @@ const polygonToOLFeature = (polygon) => {
|
|
|
80300
80620
|
if (id) feature.setId(id);
|
|
80301
80621
|
return feature;
|
|
80302
80622
|
};
|
|
80303
|
-
const mapLegacyConfigToLayers = (legacy) => {
|
|
80304
|
-
const layers = [];
|
|
80305
|
-
if (legacy.vectorStyles) {
|
|
80306
|
-
layers.push({
|
|
80307
|
-
id: legacy.vectorStyles.label,
|
|
80308
|
-
kind: "base-vector-tiles",
|
|
80309
|
-
provider: "custom",
|
|
80310
|
-
url: legacy.vectorStyles.uri,
|
|
80311
|
-
styleUrl: legacy.vectorStyles.uri,
|
|
80312
|
-
visible: false,
|
|
80313
|
-
previewImage: legacy.vectorStyles.image,
|
|
80314
|
-
label: legacy.vectorStyles.label
|
|
80315
|
-
});
|
|
80316
|
-
}
|
|
80317
|
-
if (legacy.tileSets && Array.isArray(legacy.tileSets)) {
|
|
80318
|
-
legacy.tileSets.forEach((tileset) => {
|
|
80319
|
-
layers.push({
|
|
80320
|
-
id: tileset.label,
|
|
80321
|
-
kind: "base-raster",
|
|
80322
|
-
url: tileset.uri,
|
|
80323
|
-
attribution: tileset.attribution,
|
|
80324
|
-
visible: false,
|
|
80325
|
-
previewImage: tileset.image,
|
|
80326
|
-
label: tileset.label
|
|
80327
|
-
});
|
|
80328
|
-
});
|
|
80329
|
-
}
|
|
80330
|
-
return layers.map((layer2, idx) => ({
|
|
80331
|
-
...layer2,
|
|
80332
|
-
visible: idx === 0
|
|
80333
|
-
// set the first layer to be visible
|
|
80334
|
-
}));
|
|
80335
|
-
};
|
|
80336
80623
|
const extractMarkerIcons = (markers) => {
|
|
80337
80624
|
var _a;
|
|
80338
80625
|
const icons2 = /* @__PURE__ */ new Set();
|
|
@@ -80355,7 +80642,7 @@ const BasicMapV2 = React__namespace.default.forwardRef((props, ref) => {
|
|
|
80355
80642
|
const mapInstance = React$1.useRef(null);
|
|
80356
80643
|
const showLayerSelector = ((_a = props.controls) == null ? void 0 : _a.showLayerSelector) ?? true;
|
|
80357
80644
|
const effectiveLayers = React$1.useMemo(() => {
|
|
80358
|
-
const baseLayers = Array.isArray(props.layers)
|
|
80645
|
+
const baseLayers = Array.isArray(props.layers) ? props.layers : [];
|
|
80359
80646
|
const overlayVectorLayers = [
|
|
80360
80647
|
// Marker layer
|
|
80361
80648
|
{
|
|
@@ -85774,6 +86061,7 @@ exports.AuthModal = AuthModal;
|
|
|
85774
86061
|
exports.AuthProvider = AuthProvider;
|
|
85775
86062
|
exports.AuthRedirectUri = AuthRedirectUri;
|
|
85776
86063
|
exports.Autocomplete = Autocomplete;
|
|
86064
|
+
exports.Badge = Badge;
|
|
85777
86065
|
exports.BasicMapV2 = BasicMapV2;
|
|
85778
86066
|
exports.BinIcon = BinIcon;
|
|
85779
86067
|
exports.Box = Box;
|
|
@@ -85787,6 +86075,7 @@ exports.CardActions = CardActions;
|
|
|
85787
86075
|
exports.CardContent = CardContent;
|
|
85788
86076
|
exports.CardHeader = CardHeader;
|
|
85789
86077
|
exports.Checkbox = Checkbox;
|
|
86078
|
+
exports.ChevronLeftIcon = ChevronLeftIcon;
|
|
85790
86079
|
exports.ChevronRightIcon = ChevronRightIcon;
|
|
85791
86080
|
exports.Chip = Chip;
|
|
85792
86081
|
exports.ClockIcon = ClockIcon;
|
|
@@ -85806,6 +86095,7 @@ exports.Drawer = Drawer;
|
|
|
85806
86095
|
exports.DropdownButton = DropdownButton;
|
|
85807
86096
|
exports.ENCODE_SEARCH_PARAMS_MODES_Schema = ENCODE_SEARCH_PARAMS_MODES_Schema;
|
|
85808
86097
|
exports.EditableTextField = EditableTextField;
|
|
86098
|
+
exports.EntityList = EntityList;
|
|
85809
86099
|
exports.ErrorFallback = ErrorFallback;
|
|
85810
86100
|
exports.ErrorFallbackText = ErrorFallbackText;
|
|
85811
86101
|
exports.ErrorFallbackWrapper = ErrorFallbackWrapper;
|
|
@@ -85833,6 +86123,7 @@ exports.H6 = H6;
|
|
|
85833
86123
|
exports.IESType = IESType;
|
|
85834
86124
|
exports.IconButton = IconButton;
|
|
85835
86125
|
exports.InfoIcon = InfoIcon;
|
|
86126
|
+
exports.InsetDrawer = InsetDrawer;
|
|
85836
86127
|
exports.InsetInMap = InsetInMap;
|
|
85837
86128
|
exports.LabeledSwitch = LabeledSwitch;
|
|
85838
86129
|
exports.LayerSelectorV2 = LayerSelectorV2;
|