datastake-daf 0.6.142 → 0.6.143
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
|
@@ -12401,26 +12401,25 @@ function Loading(_ref) {
|
|
|
12401
12401
|
const {
|
|
12402
12402
|
Paragraph
|
|
12403
12403
|
} = antd.Typography;
|
|
12404
|
-
const useHeader =
|
|
12405
|
-
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
|
|
12409
|
-
|
|
12410
|
-
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
|
|
12421
|
-
|
|
12422
|
-
|
|
12423
|
-
} = _ref;
|
|
12404
|
+
const useHeader = ({
|
|
12405
|
+
title = '',
|
|
12406
|
+
tooltip = '',
|
|
12407
|
+
supportText = '',
|
|
12408
|
+
tags = [],
|
|
12409
|
+
actionButtons: _actionButtons = [],
|
|
12410
|
+
titleTooltip,
|
|
12411
|
+
className,
|
|
12412
|
+
addedHeader = null,
|
|
12413
|
+
addedHeaderFirst,
|
|
12414
|
+
extraButtons: _extraButtons = [],
|
|
12415
|
+
onDownload,
|
|
12416
|
+
downloadDisabled,
|
|
12417
|
+
goBackTo,
|
|
12418
|
+
loading,
|
|
12419
|
+
renderExtraComponents,
|
|
12420
|
+
app = '',
|
|
12421
|
+
isViewMode = false
|
|
12422
|
+
}) => {
|
|
12424
12423
|
const downloadButtonAction = app && app === 'sbg' && isViewMode ? null : {
|
|
12425
12424
|
onClick: onDownload,
|
|
12426
12425
|
disabled: downloadDisabled,
|
|
@@ -12446,9 +12445,9 @@ const useHeader = _ref => {
|
|
|
12446
12445
|
const buttonCont = React.useRef();
|
|
12447
12446
|
const [mainContWidth, setMainContWidth] = React.useState(600);
|
|
12448
12447
|
const [buttonContWidth, setButtonContWidth] = React.useState(0);
|
|
12449
|
-
const hasSupportText = !!
|
|
12450
|
-
const hasTags = !!
|
|
12451
|
-
const hasButtons = !!(actionButtons
|
|
12448
|
+
const hasSupportText = !!supportText?.length;
|
|
12449
|
+
const hasTags = !!tags?.length;
|
|
12450
|
+
const hasButtons = !!(actionButtons?.length || extraButtons?.length);
|
|
12452
12451
|
React.useEffect(() => {
|
|
12453
12452
|
const mainContObserver = new ResizeObserver(entries => {
|
|
12454
12453
|
const _mainEntry = entries[0];
|
|
@@ -17240,7 +17239,11 @@ function LocationIcon({
|
|
|
17240
17239
|
},
|
|
17241
17240
|
zoom: zoom,
|
|
17242
17241
|
onMouseEnter: () => setIsHovering(true),
|
|
17243
|
-
onMouseLeave: () =>
|
|
17242
|
+
onMouseLeave: () => {
|
|
17243
|
+
setTimeout(() => {
|
|
17244
|
+
setIsHovering(false);
|
|
17245
|
+
}, 100);
|
|
17246
|
+
},
|
|
17244
17247
|
selectedMarkersId: selectedMarkersId
|
|
17245
17248
|
})]
|
|
17246
17249
|
})
|
package/package.json
CHANGED
|
@@ -237,7 +237,11 @@ export default function LocationIcon({
|
|
|
237
237
|
}}
|
|
238
238
|
zoom={zoom}
|
|
239
239
|
onMouseEnter={() => setIsHovering(true)}
|
|
240
|
-
onMouseLeave={() =>
|
|
240
|
+
onMouseLeave={() => {
|
|
241
|
+
setTimeout(() => {
|
|
242
|
+
setIsHovering(false);
|
|
243
|
+
}, 100);
|
|
244
|
+
}}
|
|
241
245
|
selectedMarkersId={selectedMarkersId}
|
|
242
246
|
/>
|
|
243
247
|
</div>
|