@telicent-oss/ds 0.18.5 → 0.18.6
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
CHANGED
|
@@ -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%",
|
|
@@ -60887,6 +60888,13 @@ const generateComponentOverrides = (uiTheme) => ({
|
|
|
60887
60888
|
...AVATAR_OVERRIDES,
|
|
60888
60889
|
...generateButtonOverrides(uiTheme),
|
|
60889
60890
|
...generateCardOverrides(uiTheme),
|
|
60891
|
+
MuiPaper: {
|
|
60892
|
+
styleOverrides: {
|
|
60893
|
+
root: {
|
|
60894
|
+
backgroundImage: "none"
|
|
60895
|
+
}
|
|
60896
|
+
}
|
|
60897
|
+
},
|
|
60890
60898
|
MuiAppBar: {
|
|
60891
60899
|
styleOverrides: {
|
|
60892
60900
|
root: {
|
|
@@ -79524,7 +79532,7 @@ const FeatureMap = ({
|
|
|
79524
79532
|
const resetCursor = () => {
|
|
79525
79533
|
setCursor("auto");
|
|
79526
79534
|
};
|
|
79527
|
-
|
|
79535
|
+
const fitMarkerAndPolygonBounds = () => {
|
|
79528
79536
|
if (!mapContainerRef.current || geoPolygons.features.length < 1 && markers.length < 1) return;
|
|
79529
79537
|
const map = mapContainerRef.current;
|
|
79530
79538
|
let bounds;
|
|
@@ -79553,9 +79561,15 @@ const FeatureMap = ({
|
|
|
79553
79561
|
maxZoom: 8,
|
|
79554
79562
|
duration: 500
|
|
79555
79563
|
});
|
|
79564
|
+
};
|
|
79565
|
+
useEffect(() => {
|
|
79566
|
+
fitMarkerAndPolygonBounds();
|
|
79556
79567
|
}, [geoPolygons, markers, selected]);
|
|
79568
|
+
const onLoad = () => {
|
|
79569
|
+
fitMarkerAndPolygonBounds();
|
|
79570
|
+
};
|
|
79557
79571
|
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: [
|
|
79572
|
+
/* @__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
79573
|
styleSelector.mapConfig.tileSets.map((el) => {
|
|
79560
79574
|
var _a2;
|
|
79561
79575
|
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: {
|
package/dist/ds.umd.cjs
CHANGED
|
@@ -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%",
|
|
@@ -60905,6 +60906,13 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
60905
60906
|
...AVATAR_OVERRIDES,
|
|
60906
60907
|
...generateButtonOverrides(uiTheme),
|
|
60907
60908
|
...generateCardOverrides(uiTheme),
|
|
60909
|
+
MuiPaper: {
|
|
60910
|
+
styleOverrides: {
|
|
60911
|
+
root: {
|
|
60912
|
+
backgroundImage: "none"
|
|
60913
|
+
}
|
|
60914
|
+
}
|
|
60915
|
+
},
|
|
60908
60916
|
MuiAppBar: {
|
|
60909
60917
|
styleOverrides: {
|
|
60910
60918
|
root: {
|
|
@@ -79542,7 +79550,7 @@ uniform ${i3} ${s4} u_${a3};
|
|
|
79542
79550
|
const resetCursor = () => {
|
|
79543
79551
|
setCursor("auto");
|
|
79544
79552
|
};
|
|
79545
|
-
|
|
79553
|
+
const fitMarkerAndPolygonBounds = () => {
|
|
79546
79554
|
if (!mapContainerRef.current || geoPolygons.features.length < 1 && markers.length < 1) return;
|
|
79547
79555
|
const map = mapContainerRef.current;
|
|
79548
79556
|
let bounds;
|
|
@@ -79571,9 +79579,15 @@ uniform ${i3} ${s4} u_${a3};
|
|
|
79571
79579
|
maxZoom: 8,
|
|
79572
79580
|
duration: 500
|
|
79573
79581
|
});
|
|
79582
|
+
};
|
|
79583
|
+
React$2.useEffect(() => {
|
|
79584
|
+
fitMarkerAndPolygonBounds();
|
|
79574
79585
|
}, [geoPolygons, markers, selected]);
|
|
79586
|
+
const onLoad = () => {
|
|
79587
|
+
fitMarkerAndPolygonBounds();
|
|
79588
|
+
};
|
|
79575
79589
|
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: [
|
|
79590
|
+
/* @__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
79591
|
styleSelector.mapConfig.tileSets.map((el) => {
|
|
79578
79592
|
var _a2;
|
|
79579
79593
|
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: {
|
|
@@ -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;
|