gantt-task-react-v 1.2.2 → 1.2.3

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.
@@ -7473,11 +7473,11 @@
7473
7473
  function useScrollIntent(_ref2) {
7474
7474
  let {
7475
7475
  delta,
7476
- disabled: disabled2
7476
+ disabled
7477
7477
  } = _ref2;
7478
7478
  const previousDelta = usePrevious(delta);
7479
7479
  return useLazyMemo((previousIntent) => {
7480
- if (disabled2 || !previousDelta || !previousIntent) {
7480
+ if (disabled || !previousDelta || !previousIntent) {
7481
7481
  return defaultScrollIntent;
7482
7482
  }
7483
7483
  const direction = {
@@ -7494,7 +7494,7 @@
7494
7494
  [Direction.Forward]: previousIntent.y[Direction.Forward] || direction.y === 1
7495
7495
  }
7496
7496
  };
7497
- }, [disabled2, delta, previousDelta]);
7497
+ }, [disabled, delta, previousDelta]);
7498
7498
  }
7499
7499
  function useCachedNode(draggableNodes, id) {
7500
7500
  const draggableNode = id !== null ? draggableNodes.get(id) : void 0;
@@ -7543,8 +7543,8 @@
7543
7543
  strategy
7544
7544
  } = config;
7545
7545
  const containersRef = React.useRef(containers);
7546
- const disabled2 = isDisabled();
7547
- const disabledRef = useLatestValue(disabled2);
7546
+ const disabled = isDisabled();
7547
+ const disabledRef = useLatestValue(disabled);
7548
7548
  const measureDroppableContainers = React.useCallback(function(ids2) {
7549
7549
  if (ids2 === void 0) {
7550
7550
  ids2 = [];
@@ -7561,7 +7561,7 @@
7561
7561
  }, [disabledRef]);
7562
7562
  const timeoutId = React.useRef(null);
7563
7563
  const droppableRects = useLazyMemo((previousValue) => {
7564
- if (disabled2 && !dragging2) {
7564
+ if (disabled && !dragging2) {
7565
7565
  return defaultValue;
7566
7566
  }
7567
7567
  if (!previousValue || previousValue === defaultValue || containersRef.current !== containers || queue != null) {
@@ -7584,19 +7584,19 @@
7584
7584
  return map;
7585
7585
  }
7586
7586
  return previousValue;
7587
- }, [containers, queue, dragging2, disabled2, measure]);
7587
+ }, [containers, queue, dragging2, disabled, measure]);
7588
7588
  React.useEffect(() => {
7589
7589
  containersRef.current = containers;
7590
7590
  }, [containers]);
7591
7591
  React.useEffect(
7592
7592
  () => {
7593
- if (disabled2) {
7593
+ if (disabled) {
7594
7594
  return;
7595
7595
  }
7596
7596
  measureDroppableContainers();
7597
7597
  },
7598
7598
  // eslint-disable-next-line react-hooks/exhaustive-deps
7599
- [dragging2, disabled2]
7599
+ [dragging2, disabled]
7600
7600
  );
7601
7601
  React.useEffect(
7602
7602
  () => {
@@ -7609,7 +7609,7 @@
7609
7609
  );
7610
7610
  React.useEffect(
7611
7611
  () => {
7612
- if (disabled2 || typeof frequency !== "number" || timeoutId.current !== null) {
7612
+ if (disabled || typeof frequency !== "number" || timeoutId.current !== null) {
7613
7613
  return;
7614
7614
  }
7615
7615
  timeoutId.current = setTimeout(() => {
@@ -7618,7 +7618,7 @@
7618
7618
  }, frequency);
7619
7619
  },
7620
7620
  // eslint-disable-next-line react-hooks/exhaustive-deps
7621
- [frequency, disabled2, measureDroppableContainers, ...dependencies]
7621
+ [frequency, disabled, measureDroppableContainers, ...dependencies]
7622
7622
  );
7623
7623
  return {
7624
7624
  droppableRects,
@@ -7653,18 +7653,18 @@
7653
7653
  function useMutationObserver(_ref) {
7654
7654
  let {
7655
7655
  callback,
7656
- disabled: disabled2
7656
+ disabled
7657
7657
  } = _ref;
7658
7658
  const handleMutations = useEvent(callback);
7659
7659
  const mutationObserver = React.useMemo(() => {
7660
- if (disabled2 || typeof window === "undefined" || typeof window.MutationObserver === "undefined") {
7660
+ if (disabled || typeof window === "undefined" || typeof window.MutationObserver === "undefined") {
7661
7661
  return void 0;
7662
7662
  }
7663
7663
  const {
7664
7664
  MutationObserver
7665
7665
  } = window;
7666
7666
  return new MutationObserver(handleMutations);
7667
- }, [handleMutations, disabled2]);
7667
+ }, [handleMutations, disabled]);
7668
7668
  React.useEffect(() => {
7669
7669
  return () => mutationObserver == null ? void 0 : mutationObserver.disconnect();
7670
7670
  }, [mutationObserver]);
@@ -7673,12 +7673,12 @@
7673
7673
  function useResizeObserver(_ref) {
7674
7674
  let {
7675
7675
  callback,
7676
- disabled: disabled2
7676
+ disabled
7677
7677
  } = _ref;
7678
7678
  const handleResize = useEvent(callback);
7679
7679
  const resizeObserver = React.useMemo(
7680
7680
  () => {
7681
- if (disabled2 || typeof window === "undefined" || typeof window.ResizeObserver === "undefined") {
7681
+ if (disabled || typeof window === "undefined" || typeof window.ResizeObserver === "undefined") {
7682
7682
  return void 0;
7683
7683
  }
7684
7684
  const {
@@ -7687,7 +7687,7 @@
7687
7687
  return new ResizeObserver2(handleResize);
7688
7688
  },
7689
7689
  // eslint-disable-next-line react-hooks/exhaustive-deps
7690
- [disabled2]
7690
+ [disabled]
7691
7691
  );
7692
7692
  React.useEffect(() => {
7693
7693
  return () => resizeObserver == null ? void 0 : resizeObserver.disconnect();
@@ -8005,9 +8005,9 @@
8005
8005
  getEnabled() {
8006
8006
  return this.toArray().filter((_ref) => {
8007
8007
  let {
8008
- disabled: disabled2
8008
+ disabled
8009
8009
  } = _ref;
8010
- return !disabled2;
8010
+ return !disabled;
8011
8011
  });
8012
8012
  }
8013
8013
  getNodeFor(id) {
@@ -8137,7 +8137,7 @@
8137
8137
  const {
8138
8138
  id,
8139
8139
  key: key2,
8140
- disabled: disabled2
8140
+ disabled
8141
8141
  } = action;
8142
8142
  const element = state.droppable.containers.get(id);
8143
8143
  if (!element || key2 !== element.key) {
@@ -8146,7 +8146,7 @@
8146
8146
  const containers = new DroppableContainersMap(state.droppable.containers);
8147
8147
  containers.set(id, {
8148
8148
  ...element,
8149
- disabled: disabled2
8149
+ disabled
8150
8150
  });
8151
8151
  return {
8152
8152
  ...state,
@@ -8182,7 +8182,7 @@
8182
8182
  }
8183
8183
  function RestoreFocus(_ref) {
8184
8184
  let {
8185
- disabled: disabled2
8185
+ disabled
8186
8186
  } = _ref;
8187
8187
  const {
8188
8188
  active,
@@ -8192,7 +8192,7 @@
8192
8192
  const previousActivatorEvent = usePrevious(activatorEvent);
8193
8193
  const previousActiveId = usePrevious(active == null ? void 0 : active.id);
8194
8194
  React.useEffect(() => {
8195
- if (disabled2) {
8195
+ if (disabled) {
8196
8196
  return;
8197
8197
  }
8198
8198
  if (!activatorEvent && previousActivatorEvent && previousActiveId != null) {
@@ -8226,7 +8226,7 @@
8226
8226
  }
8227
8227
  });
8228
8228
  }
8229
- }, [activatorEvent, disabled2, draggableNodes, previousActiveId, previousActivatorEvent]);
8229
+ }, [activatorEvent, disabled, draggableNodes, previousActiveId, previousActivatorEvent]);
8230
8230
  return null;
8231
8231
  }
8232
8232
  function applyModifiers(modifiers, _ref) {
@@ -8277,8 +8277,8 @@
8277
8277
  y: config
8278
8278
  } : config;
8279
8279
  useIsomorphicLayoutEffect(() => {
8280
- const disabled2 = !x && !y;
8281
- if (disabled2 || !activeNode) {
8280
+ const disabled = !x && !y;
8281
+ if (disabled || !activeNode) {
8282
8282
  initialized.current = false;
8283
8283
  return;
8284
8284
  }
@@ -8785,7 +8785,7 @@
8785
8785
  let {
8786
8786
  id,
8787
8787
  data,
8788
- disabled: disabled2 = false,
8788
+ disabled = false,
8789
8789
  attributes
8790
8790
  } = _ref;
8791
8791
  const key2 = useUniqueId(ID_PREFIX$1);
@@ -8831,18 +8831,18 @@
8831
8831
  const memoizedAttributes = React.useMemo(() => ({
8832
8832
  role,
8833
8833
  tabIndex,
8834
- "aria-disabled": disabled2,
8834
+ "aria-disabled": disabled,
8835
8835
  "aria-pressed": isDragging && role === defaultRole ? true : void 0,
8836
8836
  "aria-roledescription": roleDescription,
8837
8837
  "aria-describedby": ariaDescribedById.draggable
8838
- }), [disabled2, role, tabIndex, isDragging, roleDescription, ariaDescribedById.draggable]);
8838
+ }), [disabled, role, tabIndex, isDragging, roleDescription, ariaDescribedById.draggable]);
8839
8839
  return {
8840
8840
  active,
8841
8841
  activatorEvent,
8842
8842
  activeNodeRect,
8843
8843
  attributes: memoizedAttributes,
8844
8844
  isDragging,
8845
- listeners: disabled2 ? void 0 : listeners,
8845
+ listeners: disabled ? void 0 : listeners,
8846
8846
  node,
8847
8847
  over,
8848
8848
  setNodeRef,
@@ -8860,7 +8860,7 @@
8860
8860
  function useDroppable(_ref) {
8861
8861
  let {
8862
8862
  data,
8863
- disabled: disabled2 = false,
8863
+ disabled = false,
8864
8864
  id,
8865
8865
  resizeObserverConfig
8866
8866
  } = _ref;
@@ -8872,7 +8872,7 @@
8872
8872
  measureDroppableContainers
8873
8873
  } = React.useContext(InternalContext);
8874
8874
  const previous = React.useRef({
8875
- disabled: disabled2
8875
+ disabled
8876
8876
  });
8877
8877
  const resizeObserverConnected = React.useRef(false);
8878
8878
  const rect = React.useRef(null);
@@ -8936,7 +8936,7 @@
8936
8936
  element: {
8937
8937
  id,
8938
8938
  key: key2,
8939
- disabled: disabled2,
8939
+ disabled,
8940
8940
  node: nodeRef,
8941
8941
  rect,
8942
8942
  data: dataRef
@@ -8952,16 +8952,16 @@
8952
8952
  [id]
8953
8953
  );
8954
8954
  React.useEffect(() => {
8955
- if (disabled2 !== previous.current.disabled) {
8955
+ if (disabled !== previous.current.disabled) {
8956
8956
  dispatch({
8957
8957
  type: Action.SetDroppableDisabled,
8958
8958
  id,
8959
8959
  key: key2,
8960
- disabled: disabled2
8960
+ disabled
8961
8961
  });
8962
- previous.current.disabled = disabled2;
8962
+ previous.current.disabled = disabled;
8963
8963
  }
8964
- }, [id, key2, disabled2, dispatch]);
8964
+ }, [id, key2, disabled, dispatch]);
8965
8965
  return {
8966
8966
  active,
8967
8967
  rect,
@@ -9352,14 +9352,14 @@
9352
9352
  }
9353
9353
  return true;
9354
9354
  }
9355
- function normalizeDisabled(disabled2) {
9356
- if (typeof disabled2 === "boolean") {
9355
+ function normalizeDisabled(disabled) {
9356
+ if (typeof disabled === "boolean") {
9357
9357
  return {
9358
- draggable: disabled2,
9359
- droppable: disabled2
9358
+ draggable: disabled,
9359
+ droppable: disabled
9360
9360
  };
9361
9361
  }
9362
- return disabled2;
9362
+ return disabled;
9363
9363
  }
9364
9364
  const rectSortingStrategy = (_ref) => {
9365
9365
  let {
@@ -9481,7 +9481,7 @@
9481
9481
  const previousItemsRef = React.useRef(items);
9482
9482
  const itemsHaveChanged = !itemsEqual(items, previousItemsRef.current);
9483
9483
  const disableTransforms = overIndex !== -1 && activeIndex === -1 || itemsHaveChanged;
9484
- const disabled2 = normalizeDisabled(disabledProp);
9484
+ const disabled = normalizeDisabled(disabledProp);
9485
9485
  useIsomorphicLayoutEffect(() => {
9486
9486
  if (itemsHaveChanged && isDragging) {
9487
9487
  measureDroppableContainers(items);
@@ -9494,7 +9494,7 @@
9494
9494
  () => ({
9495
9495
  activeIndex,
9496
9496
  containerId,
9497
- disabled: disabled2,
9497
+ disabled,
9498
9498
  disableTransforms,
9499
9499
  items,
9500
9500
  overIndex,
@@ -9503,7 +9503,7 @@
9503
9503
  strategy
9504
9504
  }),
9505
9505
  // eslint-disable-next-line react-hooks/exhaustive-deps
9506
- [activeIndex, containerId, disabled2.draggable, disabled2.droppable, disableTransforms, items, overIndex, droppableRects, useDragOverlay, strategy]
9506
+ [activeIndex, containerId, disabled.draggable, disabled.droppable, disableTransforms, items, overIndex, droppableRects, useDragOverlay, strategy]
9507
9507
  );
9508
9508
  return React.createElement(Context.Provider, {
9509
9509
  value: contextValue
@@ -9556,7 +9556,7 @@
9556
9556
  };
9557
9557
  function useDerivedTransform(_ref) {
9558
9558
  let {
9559
- disabled: disabled2,
9559
+ disabled,
9560
9560
  index: index2,
9561
9561
  node,
9562
9562
  rect
@@ -9564,7 +9564,7 @@
9564
9564
  const [derivedTransform, setDerivedtransform] = React.useState(null);
9565
9565
  const previousIndex = React.useRef(index2);
9566
9566
  useIsomorphicLayoutEffect(() => {
9567
- if (!disabled2 && index2 !== previousIndex.current && node.current) {
9567
+ if (!disabled && index2 !== previousIndex.current && node.current) {
9568
9568
  const initial = rect.current;
9569
9569
  if (initial) {
9570
9570
  const current = getClientRect(node.current, {
@@ -9584,7 +9584,7 @@
9584
9584
  if (index2 !== previousIndex.current) {
9585
9585
  previousIndex.current = index2;
9586
9586
  }
9587
- }, [disabled2, index2, node, rect]);
9587
+ }, [disabled, index2, node, rect]);
9588
9588
  React.useEffect(() => {
9589
9589
  if (derivedTransform) {
9590
9590
  setDerivedtransform(null);
@@ -9615,7 +9615,7 @@
9615
9615
  useDragOverlay,
9616
9616
  strategy: globalStrategy
9617
9617
  } = React.useContext(Context);
9618
- const disabled2 = normalizeLocalDisabled(localDisabled, globalDisabled);
9618
+ const disabled = normalizeLocalDisabled(localDisabled, globalDisabled);
9619
9619
  const index2 = items.indexOf(id);
9620
9620
  const data = React.useMemo(() => ({
9621
9621
  sortable: {
@@ -9634,7 +9634,7 @@
9634
9634
  } = useDroppable({
9635
9635
  id,
9636
9636
  data,
9637
- disabled: disabled2.droppable,
9637
+ disabled: disabled.droppable,
9638
9638
  resizeObserverConfig: {
9639
9639
  updateMeasurementsFor: itemsAfterCurrentSortable,
9640
9640
  ...resizeObserverConfig
@@ -9658,7 +9658,7 @@
9658
9658
  ...defaultAttributes,
9659
9659
  ...userDefinedAttributes
9660
9660
  },
9661
- disabled: disabled2.draggable
9661
+ disabled: disabled.draggable
9662
9662
  });
9663
9663
  const setNodeRef = useCombinedRefs(setDroppableNodeRef, setDraggableNodeRef);
9664
9664
  const isSorting = Boolean(active);
@@ -10654,16 +10654,14 @@
10654
10654
  );
10655
10655
  };
10656
10656
  const TaskListTable = React.memo(TaskListTableDefaultInner);
10657
- const taskListRoot = "_taskListRoot_cyzwo_1";
10658
- const taskListHorizontalScroll = "_taskListHorizontalScroll_cyzwo_19";
10659
- const taskListResizer = "_taskListResizer_cyzwo_81";
10660
- const horizontalContainer$1 = "_horizontalContainer_cyzwo_145";
10661
- const tableWrapper = "_tableWrapper_cyzwo_159";
10662
- const scrollToTop = "_scrollToTop_cyzwo_173";
10663
- const scrollToBottom = "_scrollToBottom_cyzwo_189";
10664
- const hidden = "_hidden_cyzwo_205";
10665
- const disabled$1 = "_disabled_cyzwo_213";
10666
- const disabledOverlay$1 = "_disabledOverlay_cyzwo_221";
10657
+ const taskListRoot = "_taskListRoot_yoz76_1";
10658
+ const taskListHorizontalScroll = "_taskListHorizontalScroll_yoz76_19";
10659
+ const taskListResizer = "_taskListResizer_yoz76_81";
10660
+ const horizontalContainer$1 = "_horizontalContainer_yoz76_145";
10661
+ const tableWrapper = "_tableWrapper_yoz76_159";
10662
+ const scrollToTop = "_scrollToTop_yoz76_173";
10663
+ const scrollToBottom = "_scrollToBottom_yoz76_189";
10664
+ const hidden = "_hidden_yoz76_205";
10667
10665
  const styles$d = {
10668
10666
  taskListRoot,
10669
10667
  taskListHorizontalScroll,
@@ -10672,9 +10670,7 @@
10672
10670
  tableWrapper,
10673
10671
  scrollToTop,
10674
10672
  scrollToBottom,
10675
- hidden,
10676
- disabled: disabled$1,
10677
- disabledOverlay: disabledOverlay$1
10673
+ hidden
10678
10674
  };
10679
10675
  const checkHasChildren = (task, childTasksMap) => {
10680
10676
  const { id, comparisonLevel = 1 } = task;
@@ -10723,8 +10719,7 @@
10723
10719
  tasks,
10724
10720
  onResizeColumn,
10725
10721
  canReorderTasks,
10726
- tableBottom,
10727
- isLoading = false
10722
+ tableBottom
10728
10723
  }) => {
10729
10724
  const [
10730
10725
  columns,
@@ -10901,8 +10896,7 @@
10901
10896
  {
10902
10897
  className: `${styles$d.scrollToBottom} ${!renderedIndexes || renderedIndexes[3] ? styles$d.hidden : ""}`
10903
10898
  }
10904
- ),
10905
- isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$d.disabledOverlay })
10899
+ )
10906
10900
  ] }),
10907
10901
  (tableBottom == null ? void 0 : tableBottom.renderContent) && (tableBottom == null ? void 0 : tableBottom.height) && /* @__PURE__ */ jsxRuntime.jsx("div", { style: { height: tableBottom.height, width: "100%" }, children: tableBottom.renderContent() })
10908
10902
  ]
@@ -13386,19 +13380,15 @@
13386
13380
  ] });
13387
13381
  };
13388
13382
  const TaskGanttContent = React.memo(TaskGanttContentInner);
13389
- const ganttVerticalContainer = "_ganttVerticalContainer_15ld3_1";
13390
- const horizontalContainer = "_horizontalContainer_15ld3_73";
13391
- const wrapper = "_wrapper_15ld3_85";
13392
- const calendarDragging = "_calendarDragging_15ld3_109";
13393
- const disabled = "_disabled_15ld3_117";
13394
- const disabledOverlay = "_disabledOverlay_15ld3_125";
13383
+ const ganttVerticalContainer = "_ganttVerticalContainer_1wr55_1";
13384
+ const horizontalContainer = "_horizontalContainer_1wr55_73";
13385
+ const wrapper = "_wrapper_1wr55_85";
13386
+ const calendarDragging = "_calendarDragging_1wr55_109";
13395
13387
  const styles$2 = {
13396
13388
  ganttVerticalContainer,
13397
13389
  horizontalContainer,
13398
13390
  wrapper,
13399
- calendarDragging,
13400
- disabled,
13401
- disabledOverlay
13391
+ calendarDragging
13402
13392
  };
13403
13393
  const TaskGanttInner = (props) => {
13404
13394
  const {
@@ -13418,8 +13408,7 @@
13418
13408
  onVerticalScrollbarScrollX,
13419
13409
  verticalGanttContainerRef,
13420
13410
  verticalScrollbarRef,
13421
- onOpenGanttContextMenu,
13422
- isLoading = false
13411
+ onOpenGanttContextMenu
13423
13412
  } = props;
13424
13413
  const contentRef = React.useRef(null);
13425
13414
  const moveStateVertRef = React.useRef(null);
@@ -13543,44 +13532,41 @@
13543
13532
  children: /* @__PURE__ */ jsxRuntime.jsx(Calendar, { scrollRef: verticalGanttContainerRef, ...calendarProps })
13544
13533
  }
13545
13534
  ),
13546
- /* @__PURE__ */ jsxRuntime.jsxs(
13535
+ /* @__PURE__ */ jsxRuntime.jsx(
13547
13536
  "div",
13548
13537
  {
13549
13538
  ref: horizontalContainerRef,
13550
13539
  className: styles$2.horizontalContainer,
13551
13540
  style: containerStyle,
13552
- children: [
13553
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: gridStyle, children: /* @__PURE__ */ jsxRuntime.jsxs(
13554
- "svg",
13555
- {
13556
- xmlns: "http://www.w3.org/2000/svg",
13557
- width: fullSvgWidth,
13558
- height: ganttFullHeight,
13559
- fontFamily: "var(--gantt-font-family)",
13560
- ref: ganttSVGRef,
13561
- onContextMenu: (event) => {
13562
- event.preventDefault();
13563
- if (onOpenGanttContextMenu) {
13564
- onOpenGanttContextMenu(event.clientX, event.clientY);
13541
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: gridStyle, children: /* @__PURE__ */ jsxRuntime.jsxs(
13542
+ "svg",
13543
+ {
13544
+ xmlns: "http://www.w3.org/2000/svg",
13545
+ width: fullSvgWidth,
13546
+ height: ganttFullHeight,
13547
+ fontFamily: "var(--gantt-font-family)",
13548
+ ref: ganttSVGRef,
13549
+ onContextMenu: (event) => {
13550
+ event.preventDefault();
13551
+ if (onOpenGanttContextMenu) {
13552
+ onOpenGanttContextMenu(event.clientX, event.clientY);
13553
+ }
13554
+ },
13555
+ children: [
13556
+ /* @__PURE__ */ jsxRuntime.jsx(GanttToday, { ...ganttTodayProps }),
13557
+ /* @__PURE__ */ jsxRuntime.jsx(
13558
+ "rect",
13559
+ {
13560
+ ref: contentRef,
13561
+ width: "100%",
13562
+ height: "100%",
13563
+ fill: "transparent"
13565
13564
  }
13566
- },
13567
- children: [
13568
- /* @__PURE__ */ jsxRuntime.jsx(GanttToday, { ...ganttTodayProps }),
13569
- /* @__PURE__ */ jsxRuntime.jsx(
13570
- "rect",
13571
- {
13572
- ref: contentRef,
13573
- width: "100%",
13574
- height: "100%",
13575
- fill: "transparent"
13576
- }
13577
- ),
13578
- /* @__PURE__ */ jsxRuntime.jsx(TaskGanttContent, { ...barProps })
13579
- ]
13580
- }
13581
- ) }),
13582
- isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$2.disabledOverlay })
13583
- ]
13565
+ ),
13566
+ /* @__PURE__ */ jsxRuntime.jsx(TaskGanttContent, { ...barProps })
13567
+ ]
13568
+ }
13569
+ ) })
13584
13570
  }
13585
13571
  )
13586
13572
  ]
@@ -18050,7 +18036,7 @@
18050
18036
  },
18051
18037
  handleAction,
18052
18038
  option,
18053
- option: { icon: icon2, label: label2, disabled: disabled2, children }
18039
+ option: { icon: icon2, label: label2, disabled, children }
18054
18040
  } = props;
18055
18041
  const [hovered, setHovered] = React.useState(false);
18056
18042
  const [coords, setCoords] = React.useState(null);
@@ -18060,7 +18046,7 @@
18060
18046
  const onClick = React.useCallback(
18061
18047
  (e) => {
18062
18048
  e.preventDefault();
18063
- if (disabled2) {
18049
+ if (disabled) {
18064
18050
  return;
18065
18051
  }
18066
18052
  if (children && children.length > 0) {
@@ -18070,7 +18056,7 @@
18070
18056
  handleAction(option);
18071
18057
  onClose == null ? void 0 : onClose();
18072
18058
  },
18073
- [onClose, handleAction, option, disabled2, children]
18059
+ [onClose, handleAction, option, disabled, children]
18074
18060
  );
18075
18061
  React.useEffect(() => {
18076
18062
  if (!hovered || !nestedRef.current)
@@ -18130,8 +18116,8 @@
18130
18116
  "button",
18131
18117
  {
18132
18118
  className: styles$1.menuOption,
18133
- "aria-disabled": disabled2,
18134
- disabled: disabled2,
18119
+ "aria-disabled": disabled,
18120
+ disabled,
18135
18121
  style: {
18136
18122
  height: contextMenuOptionHeight,
18137
18123
  paddingLeft: contextMenuSidePadding,
@@ -18148,7 +18134,7 @@
18148
18134
  style: {
18149
18135
  width: contextMenuIconWidth,
18150
18136
  color: "var(--gantt-context-menu-text-color)",
18151
- opacity: disabled2 ? 0.3 : 0.5
18137
+ opacity: disabled ? 0.3 : 0.5
18152
18138
  },
18153
18139
  children: icon2
18154
18140
  }
@@ -19015,8 +19001,7 @@
19015
19001
  todayLabel = "Today",
19016
19002
  dataDateLabel = "Data Date",
19017
19003
  showProgress = true,
19018
- progressColor,
19019
- isLoading = false
19004
+ progressColor
19020
19005
  } = props;
19021
19006
  const ganttSVGRef = React.useRef(null);
19022
19007
  const wrapperRef = React.useRef(null);
@@ -20379,8 +20364,7 @@
20379
20364
  taskListContainerRef,
20380
20365
  taskListRef,
20381
20366
  tasks: visibleTasks,
20382
- ganttRef: wrapperRef,
20383
- isLoading
20367
+ ganttRef: wrapperRef
20384
20368
  }),
20385
20369
  [
20386
20370
  childTasksMap,
@@ -20409,8 +20393,7 @@
20409
20393
  selectedIdsMirror,
20410
20394
  taskList,
20411
20395
  taskListContainerRef,
20412
- visibleTasks,
20413
- isLoading
20396
+ visibleTasks
20414
20397
  ]
20415
20398
  );
20416
20399
  return /* @__PURE__ */ jsxRuntime.jsx(GanttThemeProvider, { theme, children: (cssVars) => /* @__PURE__ */ jsxRuntime.jsx(GanttLocaleProvider, { locale, children: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -20448,8 +20431,7 @@
20448
20431
  verticalGanttContainerRef,
20449
20432
  onOpenGanttContextMenu: (clientX, clientY) => {
20450
20433
  handleOpenGanttContextMenu(null, clientX, clientY);
20451
- },
20452
- isLoading
20434
+ }
20453
20435
  }
20454
20436
  ),
20455
20437
  tooltipTaskFromMap && /* @__PURE__ */ jsxRuntime.jsx(