datastake-daf 0.6.182 → 0.6.183
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/components/index.js
CHANGED
|
@@ -18679,25 +18679,6 @@ const Style$A = dt.div`
|
|
|
18679
18679
|
position: relative;
|
|
18680
18680
|
width: 100%;
|
|
18681
18681
|
height: 472px;
|
|
18682
|
-
min-height: 300px;
|
|
18683
|
-
flex: 1;
|
|
18684
|
-
|
|
18685
|
-
@media (max-width: 768px) {
|
|
18686
|
-
height: 350px;
|
|
18687
|
-
min-height: 250px;
|
|
18688
|
-
}
|
|
18689
|
-
|
|
18690
|
-
@media (max-width: 480px) {
|
|
18691
|
-
height: 300px;
|
|
18692
|
-
min-height: 200px;
|
|
18693
|
-
}
|
|
18694
|
-
|
|
18695
|
-
/* Responsive height adjustments for sidebar state changes */
|
|
18696
|
-
@media (min-width: 769px) {
|
|
18697
|
-
height: calc(100vh - 200px);
|
|
18698
|
-
min-height: 400px;
|
|
18699
|
-
max-height: 600px;
|
|
18700
|
-
}
|
|
18701
18682
|
|
|
18702
18683
|
.filter-cont {
|
|
18703
18684
|
position: absolute;
|
|
@@ -18788,9 +18769,6 @@ const Style$A = dt.div`
|
|
|
18788
18769
|
flex: 1;
|
|
18789
18770
|
background: rgb(0, 0, 0);
|
|
18790
18771
|
z-index: 1;
|
|
18791
|
-
width: 100%;
|
|
18792
|
-
height: 100%;
|
|
18793
|
-
min-height: inherit;
|
|
18794
18772
|
|
|
18795
18773
|
/* Mapbox GL JS specific styles */
|
|
18796
18774
|
.mapboxgl-ctrl-top-right {
|
|
@@ -19060,23 +19038,6 @@ const Style$A = dt.div`
|
|
|
19060
19038
|
right: 300px;
|
|
19061
19039
|
}
|
|
19062
19040
|
}
|
|
19063
|
-
|
|
19064
|
-
/* Responsive adjustments for different sidebar states */
|
|
19065
|
-
&.sidebar-collapsed {
|
|
19066
|
-
height: calc(100vh - 180px);
|
|
19067
|
-
|
|
19068
|
-
@media (min-width: 769px) {
|
|
19069
|
-
height: calc(100vh - 180px);
|
|
19070
|
-
}
|
|
19071
|
-
}
|
|
19072
|
-
|
|
19073
|
-
&.sidebar-expanded {
|
|
19074
|
-
height: calc(100vh - 200px);
|
|
19075
|
-
|
|
19076
|
-
@media (min-width: 769px) {
|
|
19077
|
-
height: calc(100vh - 200px);
|
|
19078
|
-
}
|
|
19079
|
-
}
|
|
19080
19041
|
|
|
19081
19042
|
.sider {
|
|
19082
19043
|
display: flex;
|
|
@@ -20005,22 +19966,6 @@ const useGlobe = ({
|
|
|
20005
19966
|
};
|
|
20006
19967
|
};
|
|
20007
19968
|
|
|
20008
|
-
typeof localStorage.getItem('is_collapsed') === 'string' ? localStorage.getItem('is_collapsed') === 'true' ? true : false : true;
|
|
20009
|
-
typeof localStorage.getItem('is_nested_sidebar_collapsed') === 'string' ? localStorage.getItem('is_nested_sidebar_collapsed') === 'true' : true;
|
|
20010
|
-
const ResizeContext = /*#__PURE__*/React.createContext({
|
|
20011
|
-
resizeLoading: false,
|
|
20012
|
-
windowWidth: 0,
|
|
20013
|
-
resizeDif: 0,
|
|
20014
|
-
isCollapsed: false,
|
|
20015
|
-
setIsCollapsed: () => {},
|
|
20016
|
-
isNestedSidebarCollapsed: false,
|
|
20017
|
-
setIsNestedSidebarCollapsed: () => {}
|
|
20018
|
-
});
|
|
20019
|
-
const useResizeContext = () => {
|
|
20020
|
-
const values = React.useContext(ResizeContext);
|
|
20021
|
-
return values;
|
|
20022
|
-
};
|
|
20023
|
-
|
|
20024
19969
|
function Globe(_ref) {
|
|
20025
19970
|
var _activeMarker$data, _activeMarker$data2;
|
|
20026
19971
|
let {
|
|
@@ -20061,11 +20006,6 @@ function Globe(_ref) {
|
|
|
20061
20006
|
});
|
|
20062
20007
|
}), [data]);
|
|
20063
20008
|
|
|
20064
|
-
// Get resize context for sidebar state
|
|
20065
|
-
const {
|
|
20066
|
-
isCollapsed
|
|
20067
|
-
} = useResizeContext();
|
|
20068
|
-
|
|
20069
20009
|
// Use custom hook to configure globe functionality
|
|
20070
20010
|
const {
|
|
20071
20011
|
container,
|
|
@@ -20109,20 +20049,9 @@ function Globe(_ref) {
|
|
|
20109
20049
|
return () => clearTimeout(timer);
|
|
20110
20050
|
}
|
|
20111
20051
|
}, [forceResize]);
|
|
20112
|
-
|
|
20113
|
-
// Force resize when sidebar state changes
|
|
20114
|
-
React.useEffect(() => {
|
|
20115
|
-
if (forceResize) {
|
|
20116
|
-
// Trigger resize when sidebar collapses/expands
|
|
20117
|
-
const timer = setTimeout(() => {
|
|
20118
|
-
forceResize();
|
|
20119
|
-
}, 100);
|
|
20120
|
-
return () => clearTimeout(timer);
|
|
20121
|
-
}
|
|
20122
|
-
}, [isCollapsed, forceResize]);
|
|
20123
20052
|
return /*#__PURE__*/jsxRuntime.jsx(ComponentWithFocus, {
|
|
20124
20053
|
children: /*#__PURE__*/jsxRuntime.jsxs(Style$A, {
|
|
20125
|
-
className: formatClassname([showSider && activeMarker && "with-sider"
|
|
20054
|
+
className: formatClassname([showSider && activeMarker && "with-sider"]),
|
|
20126
20055
|
children: [filtersConfig ? /*#__PURE__*/jsxRuntime.jsx(Filters, {
|
|
20127
20056
|
t: t,
|
|
20128
20057
|
filtersConfig: filtersConfig,
|
|
@@ -51518,6 +51447,22 @@ function useConfig(data) {
|
|
|
51518
51447
|
return config;
|
|
51519
51448
|
}
|
|
51520
51449
|
|
|
51450
|
+
typeof localStorage.getItem('is_collapsed') === 'string' ? localStorage.getItem('is_collapsed') === 'true' ? true : false : true;
|
|
51451
|
+
typeof localStorage.getItem('is_nested_sidebar_collapsed') === 'string' ? localStorage.getItem('is_nested_sidebar_collapsed') === 'true' : true;
|
|
51452
|
+
const ResizeContext = /*#__PURE__*/React.createContext({
|
|
51453
|
+
resizeLoading: false,
|
|
51454
|
+
windowWidth: 0,
|
|
51455
|
+
resizeDif: 0,
|
|
51456
|
+
isCollapsed: false,
|
|
51457
|
+
setIsCollapsed: () => {},
|
|
51458
|
+
isNestedSidebarCollapsed: false,
|
|
51459
|
+
setIsNestedSidebarCollapsed: () => {}
|
|
51460
|
+
});
|
|
51461
|
+
const useResizeContext = () => {
|
|
51462
|
+
const values = React.useContext(ResizeContext);
|
|
51463
|
+
return values;
|
|
51464
|
+
};
|
|
51465
|
+
|
|
51521
51466
|
const DAYS = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"];
|
|
51522
51467
|
function UserActivity({
|
|
51523
51468
|
loading,
|
package/package.json
CHANGED
|
@@ -8,7 +8,6 @@ import CustomIcon from "../../Icon/CustomIcon.jsx";
|
|
|
8
8
|
import ComponentWithFocus from "../ComponentWithFocus/index.jsx";
|
|
9
9
|
import { formatClassname } from "../../../../../helpers/ClassesHelper";
|
|
10
10
|
import Filters from "../../Filters/FloatingFilters/index.js";
|
|
11
|
-
import { useResizeContext } from "../../../context/Resize/index.js";
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
13
|
* Globe Component
|
|
@@ -130,9 +129,6 @@ function Globe({
|
|
|
130
129
|
[data],
|
|
131
130
|
);
|
|
132
131
|
|
|
133
|
-
// Get resize context for sidebar state
|
|
134
|
-
const { isCollapsed } = useResizeContext();
|
|
135
|
-
|
|
136
132
|
// Use custom hook to configure globe functionality
|
|
137
133
|
const { container, activeMarker, mapOptionsButtonsConfig, forceResize } = useGlobe({
|
|
138
134
|
data: mappedData,
|
|
@@ -175,24 +171,9 @@ function Globe({
|
|
|
175
171
|
}
|
|
176
172
|
}, [forceResize]);
|
|
177
173
|
|
|
178
|
-
// Force resize when sidebar state changes
|
|
179
|
-
useEffect(() => {
|
|
180
|
-
if (forceResize) {
|
|
181
|
-
// Trigger resize when sidebar collapses/expands
|
|
182
|
-
const timer = setTimeout(() => {
|
|
183
|
-
forceResize();
|
|
184
|
-
}, 100);
|
|
185
|
-
|
|
186
|
-
return () => clearTimeout(timer);
|
|
187
|
-
}
|
|
188
|
-
}, [isCollapsed, forceResize]);
|
|
189
|
-
|
|
190
174
|
return (
|
|
191
175
|
<ComponentWithFocus>
|
|
192
|
-
<Style className={formatClassname([
|
|
193
|
-
showSider && activeMarker && "with-sider",
|
|
194
|
-
isCollapsed ? "sidebar-collapsed" : "sidebar-expanded"
|
|
195
|
-
])}>
|
|
176
|
+
<Style className={formatClassname([showSider && activeMarker && "with-sider"])}>
|
|
196
177
|
{filtersConfig ? (
|
|
197
178
|
<Filters t={t} filtersConfig={filtersConfig} onFilterChange={onFilterChange} />
|
|
198
179
|
) : null}
|
|
@@ -6,25 +6,6 @@ const Style = styled.div`
|
|
|
6
6
|
position: relative;
|
|
7
7
|
width: 100%;
|
|
8
8
|
height: 472px;
|
|
9
|
-
min-height: 300px;
|
|
10
|
-
flex: 1;
|
|
11
|
-
|
|
12
|
-
@media (max-width: 768px) {
|
|
13
|
-
height: 350px;
|
|
14
|
-
min-height: 250px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@media (max-width: 480px) {
|
|
18
|
-
height: 300px;
|
|
19
|
-
min-height: 200px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* Responsive height adjustments for sidebar state changes */
|
|
23
|
-
@media (min-width: 769px) {
|
|
24
|
-
height: calc(100vh - 200px);
|
|
25
|
-
min-height: 400px;
|
|
26
|
-
max-height: 600px;
|
|
27
|
-
}
|
|
28
9
|
|
|
29
10
|
.filter-cont {
|
|
30
11
|
position: absolute;
|
|
@@ -115,9 +96,6 @@ const Style = styled.div`
|
|
|
115
96
|
flex: 1;
|
|
116
97
|
background: rgb(0, 0, 0);
|
|
117
98
|
z-index: 1;
|
|
118
|
-
width: 100%;
|
|
119
|
-
height: 100%;
|
|
120
|
-
min-height: inherit;
|
|
121
99
|
|
|
122
100
|
/* Mapbox GL JS specific styles */
|
|
123
101
|
.mapboxgl-ctrl-top-right {
|
|
@@ -387,23 +365,6 @@ const Style = styled.div`
|
|
|
387
365
|
right: 300px;
|
|
388
366
|
}
|
|
389
367
|
}
|
|
390
|
-
|
|
391
|
-
/* Responsive adjustments for different sidebar states */
|
|
392
|
-
&.sidebar-collapsed {
|
|
393
|
-
height: calc(100vh - 180px);
|
|
394
|
-
|
|
395
|
-
@media (min-width: 769px) {
|
|
396
|
-
height: calc(100vh - 180px);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
&.sidebar-expanded {
|
|
401
|
-
height: calc(100vh - 200px);
|
|
402
|
-
|
|
403
|
-
@media (min-width: 769px) {
|
|
404
|
-
height: calc(100vh - 200px);
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
368
|
|
|
408
369
|
.sider {
|
|
409
370
|
display: flex;
|