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.
@@ -12401,26 +12401,25 @@ function Loading(_ref) {
12401
12401
  const {
12402
12402
  Paragraph
12403
12403
  } = antd.Typography;
12404
- const useHeader = _ref => {
12405
- let {
12406
- title = '',
12407
- tooltip = '',
12408
- supportText = '',
12409
- tags = [],
12410
- actionButtons: _actionButtons = [],
12411
- titleTooltip,
12412
- className,
12413
- addedHeader = null,
12414
- addedHeaderFirst,
12415
- extraButtons: _extraButtons = [],
12416
- onDownload,
12417
- downloadDisabled,
12418
- goBackTo,
12419
- loading,
12420
- renderExtraComponents,
12421
- app = '',
12422
- isViewMode = false
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 = !!(supportText !== null && supportText !== void 0 && supportText.length);
12450
- const hasTags = !!(tags !== null && tags !== void 0 && tags.length);
12451
- const hasButtons = !!(actionButtons !== null && actionButtons !== void 0 && actionButtons.length || extraButtons !== null && extraButtons !== void 0 && extraButtons.length);
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: () => setIsHovering(false),
17242
+ onMouseLeave: () => {
17243
+ setTimeout(() => {
17244
+ setIsHovering(false);
17245
+ }, 100);
17246
+ },
17244
17247
  selectedMarkersId: selectedMarkersId
17245
17248
  })]
17246
17249
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.142",
3
+ "version": "0.6.143",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -237,7 +237,11 @@ export default function LocationIcon({
237
237
  }}
238
238
  zoom={zoom}
239
239
  onMouseEnter={() => setIsHovering(true)}
240
- onMouseLeave={() => setIsHovering(false)}
240
+ onMouseLeave={() => {
241
+ setTimeout(() => {
242
+ setIsHovering(false);
243
+ }, 100);
244
+ }}
241
245
  selectedMarkersId={selectedMarkersId}
242
246
  />
243
247
  </div>