@telicent-oss/ds 0.18.5 → 0.19.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/dist/ds.js +95 -12
- package/dist/ds.umd.cjs +95 -12
- package/dist/src/components/{AppSwitch/AppSwitch.d.ts → TeliAppSwitch/TeliAppSwitch.d.ts} +2 -2
- package/dist/src/components/TeliHeader/TeliStandardLayoutHeader.d.ts +1 -1
- package/dist/src/components/index.d.ts +2 -2
- package/dist/src/v1/components/data-display/AppSwitch/AppSwitch.stories.d.ts +7 -0
- package/dist/src/v1/components/data-display/index.d.ts +1 -0
- package/dist/src/v1/components/inputs/SearchBox/MiniSearchAutocomplete.test.d.ts +1 -0
- package/dist/src/v1/components/surfaces/AppBar/AppBar.d.ts +1 -0
- package/dist/src/v1/theme/style-overrides/components.d.ts +7 -12
- package/package.json +1 -1
- /package/dist/src/components/{AppSwitch/AppSwitch.test.d.ts → TeliAppSwitch/TeliAppSwitch.test.d.ts} +0 -0
- /package/dist/src/components/{AppSwitch → TeliAppSwitch}/appsArray.d.ts +0 -0
- /package/dist/src/components/{AppSwitch → TeliAppSwitch}/styleLookup.d.ts +0 -0
package/dist/ds.js
CHANGED
|
@@ -38828,7 +38828,7 @@ const TeliMenuItem = ({
|
|
|
38828
38828
|
children: children2,
|
|
38829
38829
|
...props
|
|
38830
38830
|
}) => /* @__PURE__ */ jsx$1(MenuItem, { ...props, children: children2 });
|
|
38831
|
-
const
|
|
38831
|
+
const TeliAppSwitch = ({
|
|
38832
38832
|
apps,
|
|
38833
38833
|
isLeftAligned,
|
|
38834
38834
|
...otherProps
|
|
@@ -38903,10 +38903,10 @@ const TeliStandardLayoutHeader = ({
|
|
|
38903
38903
|
beta,
|
|
38904
38904
|
userProfile = null
|
|
38905
38905
|
}) => /* @__PURE__ */ jsxs(TeliHeader, { className: "teli-standard-layout-header", children: [
|
|
38906
|
-
/* @__PURE__ */ jsx$1("div", { className: "start-adornments", children: userProfile && /* @__PURE__ */ jsx$1(
|
|
38906
|
+
/* @__PURE__ */ jsx$1("div", { className: "start-adornments", children: userProfile && /* @__PURE__ */ jsx$1(TeliAppSwitch, { apps, isLeftAligned: true }) }),
|
|
38907
38907
|
/* @__PURE__ */ jsx$1(TeliBrand, { appName, beta }),
|
|
38908
38908
|
/* @__PURE__ */ jsxs("div", { className: "end-adornments", children: [
|
|
38909
|
-
!userProfile && /* @__PURE__ */ jsx$1(
|
|
38909
|
+
!userProfile && /* @__PURE__ */ jsx$1(TeliAppSwitch, { apps }),
|
|
38910
38910
|
userProfile
|
|
38911
38911
|
] })
|
|
38912
38912
|
] });
|
|
@@ -54986,13 +54986,14 @@ const AppBar2 = ({
|
|
|
54986
54986
|
startChild,
|
|
54987
54987
|
endChild,
|
|
54988
54988
|
version,
|
|
54989
|
-
onClick
|
|
54989
|
+
onClick,
|
|
54990
|
+
isElevated
|
|
54990
54991
|
}) => {
|
|
54991
54992
|
const theme = useExtendedTheme();
|
|
54992
|
-
return /* @__PURE__ */ jsxs(AppBar$1, { color: "inherit", position: position2,
|
|
54993
|
+
return /* @__PURE__ */ jsxs(AppBar$1, { color: "inherit", position: position2, sx: {
|
|
54993
54994
|
borderRadius: 0,
|
|
54994
54995
|
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : "#ffffff"
|
|
54995
|
-
}, elevation: 0, children: [
|
|
54996
|
+
}, elevation: isElevated ? 4 : 0, children: [
|
|
54996
54997
|
startChild && /* @__PURE__ */ jsx$1(Box, { id: "app-switch-container", sx: {
|
|
54997
54998
|
position: "absolute",
|
|
54998
54999
|
top: "50%",
|
|
@@ -55171,14 +55172,78 @@ const ListItemButton2 = (listItemButtonProps) => /* @__PURE__ */ jsx$1(ListItemB
|
|
|
55171
55172
|
const ListItemIcon2 = (listItemIconProps) => /* @__PURE__ */ jsx$1(ListItemIcon$1, { ...listItemIconProps });
|
|
55172
55173
|
const ListItemText2 = (props) => /* @__PURE__ */ jsx$1(ListItemText$1, { ...props });
|
|
55173
55174
|
const IconButton2 = forwardRef((props, ref) => /* @__PURE__ */ jsx$1(IconButton$1, { ref, ...props }));
|
|
55175
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$1() {
|
|
55176
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
55177
|
+
}
|
|
55174
55178
|
const AppSwitchLibrarySchema = z.object({
|
|
55175
55179
|
id: z.string(),
|
|
55176
55180
|
name: z.string(),
|
|
55177
55181
|
url: z.string(),
|
|
55178
55182
|
icon: z.string()
|
|
55179
55183
|
});
|
|
55180
|
-
process.env.NODE_ENV === "production" ? {
|
|
55181
|
-
|
|
55184
|
+
var _ref$1 = process.env.NODE_ENV === "production" ? {
|
|
55185
|
+
name: "1k1rh22",
|
|
55186
|
+
styles: "width:25px;height:25px"
|
|
55187
|
+
} : {
|
|
55188
|
+
name: "9qz4wy-AppSwitch",
|
|
55189
|
+
styles: "width:25px;height:25px;label:AppSwitch;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9BcHBTd2l0Y2gvQXBwU3dpdGNoLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnRzZEIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9BcHBTd2l0Y2gvQXBwU3dpdGNoLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCB6b2QgZnJvbSBcInpvZFwiO1xuaW1wb3J0IE1VSU1lbnUgZnJvbSBcIkBtd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O1xuICAgICAgICAgIH1cblxuICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICA8TVVJTWVudUl0ZW1cbiAgICAgICAgICAgICAga2V5PXthcHAuaWR9XG4gICAgICAgICAgICAgIG9uQ2xpY2s9eygpID0+IHtcbiAgICAgICAgICAgICAgICB3aW5kb3cub3BlbihhcHAudXJsLCBcIl9ibGFua1wiKTtcbiAgICAgICAgICAgICAgICBoYW5kbGVDbG9zZSgpO1xuICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICBjb2xvcj1cImluaGVyaXRcIlxuICAgICAgICAgICAgICBzeD17e1xuICAgICAgICAgICAgICAgIG1hcmdpbkxlZnQ6IDEsXG4gICAgICAgICAgICAgICAgbWFyZ2luUmlnaHQ6IDEsXG4gICAgICAgICAgICAgICAgYm9yZGVyUmFkaXVzOiBcIjRweFwiLFxuICAgICAgICAgICAgICAgIGJvcmRlcjogXCIxcHggc29saWQgcmdiYSgwLCAwLCAwLCAwKVwiLFxuICAgICAgICAgICAgICAgIFwiJjpob3ZlclwiOiB7XG4gICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kQ29sb3I6XG4gICAgICAgICAgICAgICAgICAgIHRoZW1lLnBhbGV0dGUubW9kZSA9PT0gXCJkYXJrXCIgPyB0aGVtZS5wYWxldHRlLmJhY2tncm91bmQuZGVmYXVsdCA6IFwicmdiYSgwLCAwLCAwLCAwLjA0KVwiLFxuICAgICAgICAgICAgICAgICAgYm9yZGVyOiBgMXB4IHNvbGlkICR7dGhlbWUucGFsZXR0ZS5wcmltYXJ5Lm1haW59YCxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICA8TVVJTGlzdEl0ZW1JY29uPlxuICAgICAgICAgICAgICAgIDxpbWcgc3JjPXthcHAuaWNvbn0gYWx0PXtgJHthcHAubmFtZX0gaWNvbmB9IGNzcz17eyB3aWR0aDogMjUsIGhlaWdodDogMjUgfX0gLz5cbiAgICAgICAgICAgICAgPC9NVUlMaXN0SXRlbUljb24+XG4gICAgICAgICAgICAgIDxNVUlMaXN0SXRlbVRleHQ+XG4gICAgICAgICAgICAgICAgPE1VSVR5cG9ncmFwaHlcbiAgICAgICAgICAgICAgICAgIHZhcmlhbnQ9XCJoMVwiXG4gICAgICAgICAgICAgICAgICBzeD17eyBmb250RmFtaWx5OiBcIkZpZ3RyZWVcIiwgZm9udFNpemU6IDE2LCBmb250V2VpZ2h0OiA0MDAsIGNvbG9yOiBcInByaW1hcnlcIiB9fVxuICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgIHthcHAubmFtZS50b1VwcGVyQ2FzZSgpfVxuICAgICAgICAgICAgICAgIDwvTVVJVHlwb2dyYXBoeT5cbiAgICAgICAgICAgICAgPC9NVUlMaXN0SXRlbVRleHQ+XG4gICAgICAgICAgICA8L01VSU1lbnVJdGVtPlxuICAgICAgICAgICk7XG4gICAgICAgIH0pfVxuICAgICAgPC9NVUlNZW51PlxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgQXBwU3dpdGNoO1xuIl19 */",
|
|
55190
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
|
|
55191
|
+
};
|
|
55192
|
+
const AppSwitch = ({
|
|
55193
|
+
apps
|
|
55194
|
+
}) => {
|
|
55195
|
+
const [anchorEl, setAnchorEl] = React__default.useState(null);
|
|
55196
|
+
const theme = useExtendedTheme();
|
|
55197
|
+
const open = Boolean(anchorEl);
|
|
55198
|
+
const handleClick = (event) => {
|
|
55199
|
+
setAnchorEl(event.currentTarget);
|
|
55200
|
+
};
|
|
55201
|
+
const handleClose = () => {
|
|
55202
|
+
setAnchorEl(null);
|
|
55203
|
+
};
|
|
55204
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
55205
|
+
/* @__PURE__ */ jsx$1(IconButton2, { "aria-label": "app-switch", "aria-controls": open ? "app-switch-menu" : void 0, "aria-haspopup": "true", "aria-expanded": open ? "true" : void 0, onClick: handleClick, color: "primary", children: /* @__PURE__ */ jsx$1(GridIcon, {}) }),
|
|
55206
|
+
/* @__PURE__ */ jsx$1(Menu, { id: "app-switch-menu", anchorEl, open, onClose: handleClose, MenuListProps: {
|
|
55207
|
+
"aria-labelledby": "app-switch-button"
|
|
55208
|
+
}, children: apps.map((app, index) => {
|
|
55209
|
+
const validateAppsSchema = AppSwitchLibrarySchema.safeParse(app);
|
|
55210
|
+
if (!validateAppsSchema.success) {
|
|
55211
|
+
const formattedErrors = validateAppsSchema.error.issues.map((issue) => {
|
|
55212
|
+
return `${issue.path.toString().replace(",", " > ")}: ${issue.message}`;
|
|
55213
|
+
});
|
|
55214
|
+
const errorMsg = formattedErrors.join("\n");
|
|
55215
|
+
return /* @__PURE__ */ jsxs(FlexBox, { role: "menuitem", children: [
|
|
55216
|
+
/* @__PURE__ */ jsxs(Text, { children: [
|
|
55217
|
+
"Misconfiguration error: App Switch library ",
|
|
55218
|
+
(app == null ? void 0 : app.id) ? `for id ${app.id}` : `at index ${index}`
|
|
55219
|
+
] }),
|
|
55220
|
+
/* @__PURE__ */ jsx$1(Text, { children: errorMsg })
|
|
55221
|
+
] }, errorMsg);
|
|
55222
|
+
}
|
|
55223
|
+
return /* @__PURE__ */ jsxs(MenuItem, { onClick: () => {
|
|
55224
|
+
window.open(app.url, "_blank");
|
|
55225
|
+
handleClose();
|
|
55226
|
+
}, color: "inherit", sx: {
|
|
55227
|
+
marginLeft: 1,
|
|
55228
|
+
marginRight: 1,
|
|
55229
|
+
borderRadius: "4px",
|
|
55230
|
+
border: "1px solid rgba(0, 0, 0, 0)",
|
|
55231
|
+
"&:hover": {
|
|
55232
|
+
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : "rgba(0, 0, 0, 0.04)",
|
|
55233
|
+
border: `1px solid ${theme.palette.primary.main}`
|
|
55234
|
+
}
|
|
55235
|
+
}, children: [
|
|
55236
|
+
/* @__PURE__ */ jsx$1(ListItemIcon$1, { children: /* @__PURE__ */ jsx$1("img", { src: app.icon, alt: `${app.name} icon`, css: _ref$1 }) }),
|
|
55237
|
+
/* @__PURE__ */ jsx$1(ListItemText$1, { children: /* @__PURE__ */ jsx$1(Typography, { variant: "h1", sx: {
|
|
55238
|
+
fontFamily: "Figtree",
|
|
55239
|
+
fontSize: 16,
|
|
55240
|
+
fontWeight: 400,
|
|
55241
|
+
color: "primary"
|
|
55242
|
+
}, children: app.name.toUpperCase() }) })
|
|
55243
|
+
] }, app.id);
|
|
55244
|
+
}) })
|
|
55245
|
+
] });
|
|
55246
|
+
};
|
|
55182
55247
|
const Chip2 = ({
|
|
55183
55248
|
variant = "filled",
|
|
55184
55249
|
...chipProps
|
|
@@ -57752,7 +57817,7 @@ const MiniSearchAutocomplete = forwardRef(function Autocomplete3(props, ref) {
|
|
|
57752
57817
|
}, inputProps: getInputProps(), size: "small", type: "search", sx: {
|
|
57753
57818
|
width: 360
|
|
57754
57819
|
}, id: id2, name, error, endAdornment: /* @__PURE__ */ jsx$1(Fragment, { children: /* @__PURE__ */ jsxs(FlexBox, { direction: "row", spacing: 0.5, children: [
|
|
57755
|
-
loading ? /* @__PURE__ */ jsx$1(CircularProgress, { size: "20px", ...progressProps }) : /* @__PURE__ */ jsx$1(IconButton2, { size: "small", onClick: onSearch, "aria-label": "search", children: /* @__PURE__ */ jsx$1(SearchIcon, { fontSize: "inherit" }) }),
|
|
57820
|
+
loading ? /* @__PURE__ */ jsx$1(CircularProgress, { id: "loading", size: "20px", ...progressProps }) : /* @__PURE__ */ jsx$1(IconButton2, { size: "small", onClick: onSearch, "aria-label": "search", children: /* @__PURE__ */ jsx$1(SearchIcon, { fontSize: "inherit" }) }),
|
|
57756
57821
|
endIcon
|
|
57757
57822
|
] }) }), placeholder: placeholder || "Search" }),
|
|
57758
57823
|
anchorEl && /* @__PURE__ */ jsx$1(Popper2, { open: popupOpen, anchorEl, slots: {
|
|
@@ -57778,7 +57843,11 @@ const MiniSearchAutocomplete = forwardRef(function Autocomplete3(props, ref) {
|
|
|
57778
57843
|
key,
|
|
57779
57844
|
...props2
|
|
57780
57845
|
} = optionProps;
|
|
57781
|
-
return /* @__PURE__ */ jsx$1(ListItem$1, { disablePadding: true, ...props2, children: /* @__PURE__ */ jsx$1(ListItemButton$1, {
|
|
57846
|
+
return /* @__PURE__ */ jsx$1(ListItem$1, { disablePadding: true, ...props2, children: /* @__PURE__ */ jsx$1(ListItemButton$1, { onClick: (event) => {
|
|
57847
|
+
if (onSearch) {
|
|
57848
|
+
onSearch(event);
|
|
57849
|
+
}
|
|
57850
|
+
}, children: /* @__PURE__ */ jsxs(FlexBox, { direction: "row", columnGap: 1, alignItems: "center", children: [
|
|
57782
57851
|
option.isRecentSearch ? /* @__PURE__ */ jsx$1(FontAwesomeIcon, { icon: faClockRotateLeft }) : null,
|
|
57783
57852
|
/* @__PURE__ */ jsx$1(ListItemText$1, { primary: option.label })
|
|
57784
57853
|
] }) }) }, `${key}-${index}`);
|
|
@@ -60887,6 +60956,13 @@ const generateComponentOverrides = (uiTheme) => ({
|
|
|
60887
60956
|
...AVATAR_OVERRIDES,
|
|
60888
60957
|
...generateButtonOverrides(uiTheme),
|
|
60889
60958
|
...generateCardOverrides(uiTheme),
|
|
60959
|
+
MuiPaper: {
|
|
60960
|
+
styleOverrides: {
|
|
60961
|
+
root: {
|
|
60962
|
+
backgroundImage: "none"
|
|
60963
|
+
}
|
|
60964
|
+
}
|
|
60965
|
+
},
|
|
60890
60966
|
MuiAppBar: {
|
|
60891
60967
|
styleOverrides: {
|
|
60892
60968
|
root: {
|
|
@@ -79524,7 +79600,7 @@ const FeatureMap = ({
|
|
|
79524
79600
|
const resetCursor = () => {
|
|
79525
79601
|
setCursor("auto");
|
|
79526
79602
|
};
|
|
79527
|
-
|
|
79603
|
+
const fitMarkerAndPolygonBounds = () => {
|
|
79528
79604
|
if (!mapContainerRef.current || geoPolygons.features.length < 1 && markers.length < 1) return;
|
|
79529
79605
|
const map = mapContainerRef.current;
|
|
79530
79606
|
let bounds;
|
|
@@ -79553,9 +79629,15 @@ const FeatureMap = ({
|
|
|
79553
79629
|
maxZoom: 8,
|
|
79554
79630
|
duration: 500
|
|
79555
79631
|
});
|
|
79632
|
+
};
|
|
79633
|
+
useEffect(() => {
|
|
79634
|
+
fitMarkerAndPolygonBounds();
|
|
79556
79635
|
}, [geoPolygons, markers, selected]);
|
|
79636
|
+
const onLoad = () => {
|
|
79637
|
+
fitMarkerAndPolygonBounds();
|
|
79638
|
+
};
|
|
79557
79639
|
return /* @__PURE__ */ jsx$1(UIThemeProvider, { dark: true, theme, children: /* @__PURE__ */ jsx$1(ErrorBoundary, { fallback: /* @__PURE__ */ jsx$1("p", { children: "Something went wrong: Failed to load map component" }), children: /* @__PURE__ */ jsx$1("div", { className: "contents", children: /* @__PURE__ */ jsxs(FlexGrid, { m: 0, direction: "column", style: W_H_100, children: [
|
|
79558
|
-
/* @__PURE__ */ jsx$1(FlexGridItem, { flexGrow: 1, children: /* @__PURE__ */ jsx$1(MapProvider, { children: /* @__PURE__ */ jsxs(Map$1, { ref: mapContainerRef, initialViewState, cursor: cursor2, id: "TelicentMap", interactiveLayerIds: ["document-locations-layer"], scrollZoom: true, mapStyle: defaultStyle, attributionControl, onDragStart: () => setCursor("move"), onDragEnd: resetCursor, onMouseEnter: () => setCursor("pointer"), onMouseLeave: resetCursor, children: [
|
|
79640
|
+
/* @__PURE__ */ jsx$1(FlexGridItem, { flexGrow: 1, children: /* @__PURE__ */ jsx$1(MapProvider, { children: /* @__PURE__ */ jsxs(Map$1, { ref: mapContainerRef, onLoad, initialViewState, cursor: cursor2, id: "TelicentMap", interactiveLayerIds: ["document-locations-layer"], scrollZoom: true, mapStyle: defaultStyle, attributionControl, onDragStart: () => setCursor("move"), onDragEnd: resetCursor, onMouseEnter: () => setCursor("pointer"), onMouseLeave: resetCursor, children: [
|
|
79559
79641
|
styleSelector.mapConfig.tileSets.map((el) => {
|
|
79560
79642
|
var _a2;
|
|
79561
79643
|
return /* @__PURE__ */ jsx$1(Source$1, { id: `arcgis-raster-${el.label}`, type: "raster", tiles: [el.uri], tileSize: 256, children: /* @__PURE__ */ jsx$1(Layer$1, { id: `arcgis-raster-layer-${el.label}`, type: "raster", layout: {
|
|
@@ -79633,6 +79715,7 @@ export {
|
|
|
79633
79715
|
SearchResults,
|
|
79634
79716
|
Skeleton2 as Skeleton,
|
|
79635
79717
|
TeliAddIcon,
|
|
79718
|
+
TeliAppSwitch,
|
|
79636
79719
|
TeliAutocomplete,
|
|
79637
79720
|
TeliBasicLayout,
|
|
79638
79721
|
TeliBasicMenu,
|
package/dist/ds.umd.cjs
CHANGED
|
@@ -38846,7 +38846,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
38846
38846
|
children: children2,
|
|
38847
38847
|
...props
|
|
38848
38848
|
}) => /* @__PURE__ */ jsx$1(MenuItem, { ...props, children: children2 });
|
|
38849
|
-
const
|
|
38849
|
+
const TeliAppSwitch = ({
|
|
38850
38850
|
apps,
|
|
38851
38851
|
isLeftAligned,
|
|
38852
38852
|
...otherProps
|
|
@@ -38921,10 +38921,10 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
38921
38921
|
beta,
|
|
38922
38922
|
userProfile = null
|
|
38923
38923
|
}) => /* @__PURE__ */ jsxs(TeliHeader, { className: "teli-standard-layout-header", children: [
|
|
38924
|
-
/* @__PURE__ */ jsx$1("div", { className: "start-adornments", children: userProfile && /* @__PURE__ */ jsx$1(
|
|
38924
|
+
/* @__PURE__ */ jsx$1("div", { className: "start-adornments", children: userProfile && /* @__PURE__ */ jsx$1(TeliAppSwitch, { apps, isLeftAligned: true }) }),
|
|
38925
38925
|
/* @__PURE__ */ jsx$1(TeliBrand, { appName, beta }),
|
|
38926
38926
|
/* @__PURE__ */ jsxs("div", { className: "end-adornments", children: [
|
|
38927
|
-
!userProfile && /* @__PURE__ */ jsx$1(
|
|
38927
|
+
!userProfile && /* @__PURE__ */ jsx$1(TeliAppSwitch, { apps }),
|
|
38928
38928
|
userProfile
|
|
38929
38929
|
] })
|
|
38930
38930
|
] });
|
|
@@ -55004,13 +55004,14 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
55004
55004
|
startChild,
|
|
55005
55005
|
endChild,
|
|
55006
55006
|
version,
|
|
55007
|
-
onClick
|
|
55007
|
+
onClick,
|
|
55008
|
+
isElevated
|
|
55008
55009
|
}) => {
|
|
55009
55010
|
const theme = useExtendedTheme();
|
|
55010
|
-
return /* @__PURE__ */ jsxs(AppBar$1, { color: "inherit", position: position2,
|
|
55011
|
+
return /* @__PURE__ */ jsxs(AppBar$1, { color: "inherit", position: position2, sx: {
|
|
55011
55012
|
borderRadius: 0,
|
|
55012
55013
|
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : "#ffffff"
|
|
55013
|
-
}, elevation: 0, children: [
|
|
55014
|
+
}, elevation: isElevated ? 4 : 0, children: [
|
|
55014
55015
|
startChild && /* @__PURE__ */ jsx$1(Box, { id: "app-switch-container", sx: {
|
|
55015
55016
|
position: "absolute",
|
|
55016
55017
|
top: "50%",
|
|
@@ -55189,14 +55190,78 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
55189
55190
|
const ListItemIcon = (listItemIconProps) => /* @__PURE__ */ jsx$1(ListItemIcon$1, { ...listItemIconProps });
|
|
55190
55191
|
const ListItemText = (props) => /* @__PURE__ */ jsx$1(ListItemText$1, { ...props });
|
|
55191
55192
|
const IconButton = React$2.forwardRef((props, ref) => /* @__PURE__ */ jsx$1(IconButton$1, { ref, ...props }));
|
|
55193
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$1() {
|
|
55194
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
55195
|
+
}
|
|
55192
55196
|
const AppSwitchLibrarySchema = z.object({
|
|
55193
55197
|
id: z.string(),
|
|
55194
55198
|
name: z.string(),
|
|
55195
55199
|
url: z.string(),
|
|
55196
55200
|
icon: z.string()
|
|
55197
55201
|
});
|
|
55198
|
-
process.env.NODE_ENV === "production" ? {
|
|
55199
|
-
|
|
55202
|
+
var _ref$1 = process.env.NODE_ENV === "production" ? {
|
|
55203
|
+
name: "1k1rh22",
|
|
55204
|
+
styles: "width:25px;height:25px"
|
|
55205
|
+
} : {
|
|
55206
|
+
name: "9qz4wy-AppSwitch",
|
|
55207
|
+
styles: "width:25px;height:25px;label:AppSwitch;/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9BcHBTd2l0Y2gvQXBwU3dpdGNoLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnRzZEIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3RlbGljZW50LWRzL3RlbGljZW50LWRzL3NyYy92MS9jb21wb25lbnRzL2RhdGEtZGlzcGxheS9BcHBTd2l0Y2gvQXBwU3dpdGNoLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCB6b2QgZnJvbSBcInpvZFwiO1xuaW1wb3J0IE1VSU1lbnUgZnJvbSBcIkBtdWkvbWF0ZXJpYWwvTWVudVwiO1xuaW1wb3J0IE1VSU1lbnVJdGVtIGZyb20gXCJAbXVpL21hdGVyaWFsL01lbnVJdGVtXCI7XG5cbmltcG9ydCB7IFRleHQgfSBmcm9tIFwiLi4vVGV4dC9UZXh0XCI7XG5pbXBvcnQgSWNvbkJ1dHRvbiBmcm9tIFwiLi4vLi4vaW5wdXRzL0J1dHRvbi9JY29uQnV0dG9uXCI7XG5pbXBvcnQgR3JpZEljb24gZnJvbSBcIi4uL0ljb25zL0dyaWRJY29uX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oIXZhbGlkYXRlQXBwc1NjaGVtYS5zdWNjZXNzKSB7XG4gICAgICAgICAgICBjb25zdCBmb3JtYXR0ZWRFcnJvcnMgPSB2YWxpZGF0ZUFwcHNTY2hlbWEuZXJyb3IuaXNzdWVzLm1hcCgoaXNzdWUpID0+IHtcbiAgICAgICAgICAgICAgcmV0dXJuIGAke2lzc3VlLnBhdGgudG9TdHJpbmcoKS5yZXBsYWNlKFwiLFwiLCBcIiA+IFwiKX06ICR7aXNzdWUubWVzc2FnZX1gO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBjb25zdCBlcnJvck1zZyA9IGZvcm1hdHRlZEVycm9ycy5qb2luKFwiXFxuXCIpO1xuICAgICAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgICAgPEZsZXhCb3gga2V5PXtlcnJvck1zZ30gcm9sZT1cIm1lbnVpdGVtXCI+XG4gICAgICAgICAgICAgICAgPFRleHQ+XG4gICAgICAgICAgICAgICAgICBNaXNjb25maWd1cmF0aW9uIGVycm9yOiBBcHAgU3dpdGNoIGxpYnJhcnkge2FwcD8uaWQgPyBgZm9yIGlkICR7YXBwLmlkfWAgOiBgYXQgaW5kZXggJHtpbmRleH1gfVxuICAgICAgICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgICAgICAgICA8VGV4dD57ZXJyb3JNc2d9PC9UZXh0PlxuICAgICAgICAgICAgICA8L0ZsZXhCb3g+XG4gICAgICAgICAgICApO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICA8TVVJTWVudUl0ZW1cbiAgICAgICAgICAgICAga2V5PXthcHAuaWR9XG4gICAgICAgICAgICAgIG9uQ2xpY2s9eygpID0+IHtcbiAgICAgICAgICAgICAgICB3aW5kb3cub3BlbihhcHAudXJsLCBcIl9ibGFua1wiKTtcbiAgICAgICAgICAgICAgICBoYW5kbGVDbG9zZSgpO1xuICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICBjb2xvcj1cImluaGVyaXRcIlxuICAgICAgICAgICAgICBzeD17e1xuICAgICAgICAgICAgICAgIG1hcmdpbkxlZnQ6IDEsXG4gICAgICAgICAgICAgICAgbWFyZ2luUmlnaHQ6IDEsXG4gICAgICAgICAgICAgICAgYm9yZGVyUmFkaXVzOiBcIjRweFwiLFxuICAgICAgICAgICAgICAgIGJvcmRlcjogXCIxcHggc29saWQgcmdiYSgwLCAwLCAwLCAwKVwiLFxuICAgICAgICAgICAgICAgIFwiJjpob3ZlclwiOiB7XG4gICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kQ29sb3I6XG4gICAgICAgICAgICAgICAgICAgIHRoZW1lLnBhbGV0dGUubW9kZSA9PT0gXCJkYXJrXCIgPyB0aGVtZS5wYWxldHRlLmJhY2tncm91bmQuZGVmYXVsdCA6IFwicmdiYSgwLCAwLCAwLCAwLjA0KVwiLFxuICAgICAgICAgICAgICAgICAgYm9yZGVyOiBgMXB4IHNvbGlkICR7dGhlbWUucGFsZXR0ZS5wcmltYXJ5Lm1haW59YCxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICA8TVVJTGlzdEl0ZW1JY29uPlxuICAgICAgICAgICAgICAgIDxpbWcgc3JjPXthcHAuaWNvbn0gYWx0PXtgJHthcHAubmFtZX0gaWNvbmB9IGNzcz17eyB3aWR0aDogMjUsIGhlaWdodDogMjUgfX0gLz5cbiAgICAgICAgICAgICAgPC9NVUlMaXN0SXRlbUljb24+XG4gICAgICAgICAgICAgIDxNVUlMaXN0SXRlbVRleHQ+XG4gICAgICAgICAgICAgICAgPE1VSVR5cG9ncmFwaHlcbiAgICAgICAgICAgICAgICAgIHZhcmlhbnQ9XCJoMVwiXG4gICAgICAgICAgICAgICAgICBzeD17eyBmb250RmFtaWx5OiBcIkZpZ3RyZWVcIiwgZm9udFNpemU6IDE2LCBmb250V2VpZ2h0OiA0MDAsIGNvbG9yOiBcInByaW1hcnlcIiB9fVxuICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgIHthcHAubmFtZS50b1VwcGVyQ2FzZSgpfVxuICAgICAgICAgICAgICAgIDwvTVVJVHlwb2dyYXBoeT5cbiAgICAgICAgICAgICAgPC9NVUlMaXN0SXRlbVRleHQ+XG4gICAgICAgICAgICA8L01VSU1lbnVJdGVtPlxuICAgICAgICAgICk7XG4gICAgICAgIH0pfVxuICAgICAgPC9NVUlNZW51PlxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgQXBwU3dpdGNoO1xuIl19 */",
|
|
55208
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
|
|
55209
|
+
};
|
|
55210
|
+
const AppSwitch = ({
|
|
55211
|
+
apps
|
|
55212
|
+
}) => {
|
|
55213
|
+
const [anchorEl, setAnchorEl] = React$2.useState(null);
|
|
55214
|
+
const theme = useExtendedTheme();
|
|
55215
|
+
const open = Boolean(anchorEl);
|
|
55216
|
+
const handleClick = (event) => {
|
|
55217
|
+
setAnchorEl(event.currentTarget);
|
|
55218
|
+
};
|
|
55219
|
+
const handleClose = () => {
|
|
55220
|
+
setAnchorEl(null);
|
|
55221
|
+
};
|
|
55222
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
55223
|
+
/* @__PURE__ */ jsx$1(IconButton, { "aria-label": "app-switch", "aria-controls": open ? "app-switch-menu" : void 0, "aria-haspopup": "true", "aria-expanded": open ? "true" : void 0, onClick: handleClick, color: "primary", children: /* @__PURE__ */ jsx$1(GridIcon, {}) }),
|
|
55224
|
+
/* @__PURE__ */ jsx$1(Menu, { id: "app-switch-menu", anchorEl, open, onClose: handleClose, MenuListProps: {
|
|
55225
|
+
"aria-labelledby": "app-switch-button"
|
|
55226
|
+
}, children: apps.map((app, index) => {
|
|
55227
|
+
const validateAppsSchema = AppSwitchLibrarySchema.safeParse(app);
|
|
55228
|
+
if (!validateAppsSchema.success) {
|
|
55229
|
+
const formattedErrors = validateAppsSchema.error.issues.map((issue) => {
|
|
55230
|
+
return `${issue.path.toString().replace(",", " > ")}: ${issue.message}`;
|
|
55231
|
+
});
|
|
55232
|
+
const errorMsg = formattedErrors.join("\n");
|
|
55233
|
+
return /* @__PURE__ */ jsxs(FlexBox, { role: "menuitem", children: [
|
|
55234
|
+
/* @__PURE__ */ jsxs(Text, { children: [
|
|
55235
|
+
"Misconfiguration error: App Switch library ",
|
|
55236
|
+
(app == null ? void 0 : app.id) ? `for id ${app.id}` : `at index ${index}`
|
|
55237
|
+
] }),
|
|
55238
|
+
/* @__PURE__ */ jsx$1(Text, { children: errorMsg })
|
|
55239
|
+
] }, errorMsg);
|
|
55240
|
+
}
|
|
55241
|
+
return /* @__PURE__ */ jsxs(MenuItem, { onClick: () => {
|
|
55242
|
+
window.open(app.url, "_blank");
|
|
55243
|
+
handleClose();
|
|
55244
|
+
}, color: "inherit", sx: {
|
|
55245
|
+
marginLeft: 1,
|
|
55246
|
+
marginRight: 1,
|
|
55247
|
+
borderRadius: "4px",
|
|
55248
|
+
border: "1px solid rgba(0, 0, 0, 0)",
|
|
55249
|
+
"&:hover": {
|
|
55250
|
+
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : "rgba(0, 0, 0, 0.04)",
|
|
55251
|
+
border: `1px solid ${theme.palette.primary.main}`
|
|
55252
|
+
}
|
|
55253
|
+
}, children: [
|
|
55254
|
+
/* @__PURE__ */ jsx$1(ListItemIcon$1, { children: /* @__PURE__ */ jsx$1("img", { src: app.icon, alt: `${app.name} icon`, css: _ref$1 }) }),
|
|
55255
|
+
/* @__PURE__ */ jsx$1(ListItemText$1, { children: /* @__PURE__ */ jsx$1(Typography, { variant: "h1", sx: {
|
|
55256
|
+
fontFamily: "Figtree",
|
|
55257
|
+
fontSize: 16,
|
|
55258
|
+
fontWeight: 400,
|
|
55259
|
+
color: "primary"
|
|
55260
|
+
}, children: app.name.toUpperCase() }) })
|
|
55261
|
+
] }, app.id);
|
|
55262
|
+
}) })
|
|
55263
|
+
] });
|
|
55264
|
+
};
|
|
55200
55265
|
const Chip = ({
|
|
55201
55266
|
variant = "filled",
|
|
55202
55267
|
...chipProps
|
|
@@ -57770,7 +57835,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
57770
57835
|
}, inputProps: getInputProps(), size: "small", type: "search", sx: {
|
|
57771
57836
|
width: 360
|
|
57772
57837
|
}, id: id2, name, error, endAdornment: /* @__PURE__ */ jsx$1(Fragment, { children: /* @__PURE__ */ jsxs(FlexBox, { direction: "row", spacing: 0.5, children: [
|
|
57773
|
-
loading ? /* @__PURE__ */ jsx$1(CircularProgress, { size: "20px", ...progressProps }) : /* @__PURE__ */ jsx$1(IconButton, { size: "small", onClick: onSearch, "aria-label": "search", children: /* @__PURE__ */ jsx$1(SearchIcon, { fontSize: "inherit" }) }),
|
|
57838
|
+
loading ? /* @__PURE__ */ jsx$1(CircularProgress, { id: "loading", size: "20px", ...progressProps }) : /* @__PURE__ */ jsx$1(IconButton, { size: "small", onClick: onSearch, "aria-label": "search", children: /* @__PURE__ */ jsx$1(SearchIcon, { fontSize: "inherit" }) }),
|
|
57774
57839
|
endIcon
|
|
57775
57840
|
] }) }), placeholder: placeholder || "Search" }),
|
|
57776
57841
|
anchorEl && /* @__PURE__ */ jsx$1(Popper, { open: popupOpen, anchorEl, slots: {
|
|
@@ -57796,7 +57861,11 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
57796
57861
|
key,
|
|
57797
57862
|
...props2
|
|
57798
57863
|
} = optionProps;
|
|
57799
|
-
return /* @__PURE__ */ jsx$1(ListItem$1, { disablePadding: true, ...props2, children: /* @__PURE__ */ jsx$1(ListItemButton$1, {
|
|
57864
|
+
return /* @__PURE__ */ jsx$1(ListItem$1, { disablePadding: true, ...props2, children: /* @__PURE__ */ jsx$1(ListItemButton$1, { onClick: (event) => {
|
|
57865
|
+
if (onSearch) {
|
|
57866
|
+
onSearch(event);
|
|
57867
|
+
}
|
|
57868
|
+
}, children: /* @__PURE__ */ jsxs(FlexBox, { direction: "row", columnGap: 1, alignItems: "center", children: [
|
|
57800
57869
|
option.isRecentSearch ? /* @__PURE__ */ jsx$1(FontAwesomeIcon, { icon: faClockRotateLeft }) : null,
|
|
57801
57870
|
/* @__PURE__ */ jsx$1(ListItemText$1, { primary: option.label })
|
|
57802
57871
|
] }) }) }, `${key}-${index}`);
|
|
@@ -60905,6 +60974,13 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
60905
60974
|
...AVATAR_OVERRIDES,
|
|
60906
60975
|
...generateButtonOverrides(uiTheme),
|
|
60907
60976
|
...generateCardOverrides(uiTheme),
|
|
60977
|
+
MuiPaper: {
|
|
60978
|
+
styleOverrides: {
|
|
60979
|
+
root: {
|
|
60980
|
+
backgroundImage: "none"
|
|
60981
|
+
}
|
|
60982
|
+
}
|
|
60983
|
+
},
|
|
60908
60984
|
MuiAppBar: {
|
|
60909
60985
|
styleOverrides: {
|
|
60910
60986
|
root: {
|
|
@@ -79542,7 +79618,7 @@ uniform ${i3} ${s4} u_${a3};
|
|
|
79542
79618
|
const resetCursor = () => {
|
|
79543
79619
|
setCursor("auto");
|
|
79544
79620
|
};
|
|
79545
|
-
|
|
79621
|
+
const fitMarkerAndPolygonBounds = () => {
|
|
79546
79622
|
if (!mapContainerRef.current || geoPolygons.features.length < 1 && markers.length < 1) return;
|
|
79547
79623
|
const map = mapContainerRef.current;
|
|
79548
79624
|
let bounds;
|
|
@@ -79571,9 +79647,15 @@ uniform ${i3} ${s4} u_${a3};
|
|
|
79571
79647
|
maxZoom: 8,
|
|
79572
79648
|
duration: 500
|
|
79573
79649
|
});
|
|
79650
|
+
};
|
|
79651
|
+
React$2.useEffect(() => {
|
|
79652
|
+
fitMarkerAndPolygonBounds();
|
|
79574
79653
|
}, [geoPolygons, markers, selected]);
|
|
79654
|
+
const onLoad = () => {
|
|
79655
|
+
fitMarkerAndPolygonBounds();
|
|
79656
|
+
};
|
|
79575
79657
|
return /* @__PURE__ */ jsx$1(UIThemeProvider, { dark: true, theme, children: /* @__PURE__ */ jsx$1(ErrorBoundary, { fallback: /* @__PURE__ */ jsx$1("p", { children: "Something went wrong: Failed to load map component" }), children: /* @__PURE__ */ jsx$1("div", { className: "contents", children: /* @__PURE__ */ jsxs(FlexGrid, { m: 0, direction: "column", style: W_H_100, children: [
|
|
79576
|
-
/* @__PURE__ */ jsx$1(FlexGridItem, { flexGrow: 1, children: /* @__PURE__ */ jsx$1(MapProvider, { children: /* @__PURE__ */ jsxs(Map$1, { ref: mapContainerRef, initialViewState, cursor: cursor2, id: "TelicentMap", interactiveLayerIds: ["document-locations-layer"], scrollZoom: true, mapStyle: defaultStyle, attributionControl, onDragStart: () => setCursor("move"), onDragEnd: resetCursor, onMouseEnter: () => setCursor("pointer"), onMouseLeave: resetCursor, children: [
|
|
79658
|
+
/* @__PURE__ */ jsx$1(FlexGridItem, { flexGrow: 1, children: /* @__PURE__ */ jsx$1(MapProvider, { children: /* @__PURE__ */ jsxs(Map$1, { ref: mapContainerRef, onLoad, initialViewState, cursor: cursor2, id: "TelicentMap", interactiveLayerIds: ["document-locations-layer"], scrollZoom: true, mapStyle: defaultStyle, attributionControl, onDragStart: () => setCursor("move"), onDragEnd: resetCursor, onMouseEnter: () => setCursor("pointer"), onMouseLeave: resetCursor, children: [
|
|
79577
79659
|
styleSelector.mapConfig.tileSets.map((el) => {
|
|
79578
79660
|
var _a2;
|
|
79579
79661
|
return /* @__PURE__ */ jsx$1(Source$1, { id: `arcgis-raster-${el.label}`, type: "raster", tiles: [el.uri], tileSize: 256, children: /* @__PURE__ */ jsx$1(Layer$1, { id: `arcgis-raster-layer-${el.label}`, type: "raster", layout: {
|
|
@@ -79655,6 +79737,7 @@ uniform ${i3} ${s4} u_${a3};
|
|
|
79655
79737
|
exports2.SearchResults = SearchResults;
|
|
79656
79738
|
exports2.Skeleton = Skeleton;
|
|
79657
79739
|
exports2.TeliAddIcon = TeliAddIcon;
|
|
79740
|
+
exports2.TeliAppSwitch = TeliAppSwitch;
|
|
79658
79741
|
exports2.TeliAutocomplete = TeliAutocomplete;
|
|
79659
79742
|
exports2.TeliBasicLayout = TeliBasicLayout;
|
|
79660
79743
|
exports2.TeliBasicMenu = TeliBasicMenu;
|
|
@@ -13,5 +13,5 @@ export interface AppSwitchProps extends React.HTMLAttributes<HTMLButtonElement>
|
|
|
13
13
|
isLeftAligned?: boolean;
|
|
14
14
|
className?: string;
|
|
15
15
|
}
|
|
16
|
-
declare const
|
|
17
|
-
export default
|
|
16
|
+
declare const TeliAppSwitch: FC<AppSwitchProps>;
|
|
17
|
+
export default TeliAppSwitch;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TeliBrandProps } from '../TeliBrand/TeliBrand';
|
|
3
|
-
import { AppSwitchProps } from '../
|
|
3
|
+
import { AppSwitchProps } from '../TeliAppSwitch/TeliAppSwitch';
|
|
4
4
|
|
|
5
5
|
export interface TeliStandardLayoutHeaderProps {
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as
|
|
1
|
+
export { default as TeliAppSwitch } from './TeliAppSwitch/TeliAppSwitch';
|
|
2
2
|
export { default as DependenciesTable } from './DependenciesTable/DependenciesTable';
|
|
3
3
|
export { default as TeliAutocomplete } from './TeliAutocomplete/TeliAutocomplete';
|
|
4
4
|
export { default as License } from './License/License';
|
|
@@ -15,7 +15,7 @@ export { default as TeliSwitch } from './TeliSwitch/TeliSwitch';
|
|
|
15
15
|
export { default as TeliTextField } from './TeliTextField/TeliTextField';
|
|
16
16
|
export { default as TeliInput } from './TeliTextField/TeliInput';
|
|
17
17
|
export { default as TeliToolbar } from './TeliToolbar/TeliToolbar';
|
|
18
|
-
export { default as TeliTypeIcon, type TeliTypeIconProps
|
|
18
|
+
export { default as TeliTypeIcon, type TeliTypeIconProps } from './TeliTypeIcon/TeliTypeIcon';
|
|
19
19
|
export { default as TeliTypeahead } from './TeliTypeahead/TeliTypeahead';
|
|
20
20
|
export { default as TeliUserProfile } from './TeliUserProfile/TeliUserProfile';
|
|
21
21
|
export { default as OntologyHierarchy } from './OntologyHierarchy/OntologyHierarchy';
|
|
@@ -3,6 +3,7 @@ export * from './FontAwesomeIcons';
|
|
|
3
3
|
export * from './Text/Text';
|
|
4
4
|
export * from './List/List';
|
|
5
5
|
export { AppSwitchLibrarySchema } from './AppSwitch/AppSwitch';
|
|
6
|
+
export { default as AppSwitch } from './AppSwitch/AppSwitch';
|
|
6
7
|
export type { AppSwitchLibraryType } from './AppSwitch/AppSwitch';
|
|
7
8
|
export { default as Chip } from './Chip/Chip';
|
|
8
9
|
export type { ChipProps } from './Chip/Chip';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { UITheme } from '../colors/theme-colors';
|
|
2
2
|
|
|
3
3
|
declare const generateComponentOverrides: (uiTheme: UITheme) => {
|
|
4
|
+
MuiPaper: {
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
root: {
|
|
7
|
+
backgroundImage: "none";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
MuiAppBar: {
|
|
5
12
|
styleOverrides: {
|
|
6
13
|
root: {
|
|
@@ -946,18 +953,6 @@ declare const generateComponentOverrides: (uiTheme: UITheme) => {
|
|
|
946
953
|
}>;
|
|
947
954
|
}[] | undefined;
|
|
948
955
|
} | undefined;
|
|
949
|
-
MuiPaper?: {
|
|
950
|
-
defaultProps?: import('@mui/material').ComponentsProps["MuiPaper"];
|
|
951
|
-
styleOverrides?: Partial<import('@mui/material/styles/overrides').OverridesStyleRules<keyof import('@mui/material').PaperClasses, "MuiPaper", Omit<import('@mui/material').Theme, "components">>> | undefined;
|
|
952
|
-
variants?: {
|
|
953
|
-
props: Partial<import('@mui/material').PaperProps> | ((props: Partial<import('@mui/material').PaperProps> & {
|
|
954
|
-
ownerState: Partial<import('@mui/material').PaperProps>;
|
|
955
|
-
}) => boolean);
|
|
956
|
-
style: import('@mui/styled-engine').Interpolation<{
|
|
957
|
-
theme: Omit<import('@mui/material').Theme, "components">;
|
|
958
|
-
}>;
|
|
959
|
-
}[] | undefined;
|
|
960
|
-
} | undefined;
|
|
961
956
|
MuiPopper?: {
|
|
962
957
|
defaultProps?: import('@mui/material').ComponentsProps["MuiPopper"];
|
|
963
958
|
styleOverrides?: Partial<import('@mui/material/styles/overrides').OverridesStyleRules<"root", "MuiPopper", Omit<import('@mui/material').Theme, "components">>> | undefined;
|
package/package.json
CHANGED
/package/dist/src/components/{AppSwitch/AppSwitch.test.d.ts → TeliAppSwitch/TeliAppSwitch.test.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|