gantt-task-react-v 1.2.1 → 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.
@@ -7456,11 +7456,11 @@ const defaultScrollIntent = {
7456
7456
  function useScrollIntent(_ref2) {
7457
7457
  let {
7458
7458
  delta,
7459
- disabled: disabled2
7459
+ disabled
7460
7460
  } = _ref2;
7461
7461
  const previousDelta = usePrevious(delta);
7462
7462
  return useLazyMemo((previousIntent) => {
7463
- if (disabled2 || !previousDelta || !previousIntent) {
7463
+ if (disabled || !previousDelta || !previousIntent) {
7464
7464
  return defaultScrollIntent;
7465
7465
  }
7466
7466
  const direction = {
@@ -7477,7 +7477,7 @@ function useScrollIntent(_ref2) {
7477
7477
  [Direction.Forward]: previousIntent.y[Direction.Forward] || direction.y === 1
7478
7478
  }
7479
7479
  };
7480
- }, [disabled2, delta, previousDelta]);
7480
+ }, [disabled, delta, previousDelta]);
7481
7481
  }
7482
7482
  function useCachedNode(draggableNodes, id) {
7483
7483
  const draggableNode = id !== null ? draggableNodes.get(id) : void 0;
@@ -7526,8 +7526,8 @@ function useDroppableMeasuring(containers, _ref) {
7526
7526
  strategy
7527
7527
  } = config;
7528
7528
  const containersRef = useRef(containers);
7529
- const disabled2 = isDisabled();
7530
- const disabledRef = useLatestValue(disabled2);
7529
+ const disabled = isDisabled();
7530
+ const disabledRef = useLatestValue(disabled);
7531
7531
  const measureDroppableContainers = useCallback(function(ids2) {
7532
7532
  if (ids2 === void 0) {
7533
7533
  ids2 = [];
@@ -7544,7 +7544,7 @@ function useDroppableMeasuring(containers, _ref) {
7544
7544
  }, [disabledRef]);
7545
7545
  const timeoutId = useRef(null);
7546
7546
  const droppableRects = useLazyMemo((previousValue) => {
7547
- if (disabled2 && !dragging2) {
7547
+ if (disabled && !dragging2) {
7548
7548
  return defaultValue;
7549
7549
  }
7550
7550
  if (!previousValue || previousValue === defaultValue || containersRef.current !== containers || queue != null) {
@@ -7567,19 +7567,19 @@ function useDroppableMeasuring(containers, _ref) {
7567
7567
  return map;
7568
7568
  }
7569
7569
  return previousValue;
7570
- }, [containers, queue, dragging2, disabled2, measure]);
7570
+ }, [containers, queue, dragging2, disabled, measure]);
7571
7571
  useEffect(() => {
7572
7572
  containersRef.current = containers;
7573
7573
  }, [containers]);
7574
7574
  useEffect(
7575
7575
  () => {
7576
- if (disabled2) {
7576
+ if (disabled) {
7577
7577
  return;
7578
7578
  }
7579
7579
  measureDroppableContainers();
7580
7580
  },
7581
7581
  // eslint-disable-next-line react-hooks/exhaustive-deps
7582
- [dragging2, disabled2]
7582
+ [dragging2, disabled]
7583
7583
  );
7584
7584
  useEffect(
7585
7585
  () => {
@@ -7592,7 +7592,7 @@ function useDroppableMeasuring(containers, _ref) {
7592
7592
  );
7593
7593
  useEffect(
7594
7594
  () => {
7595
- if (disabled2 || typeof frequency !== "number" || timeoutId.current !== null) {
7595
+ if (disabled || typeof frequency !== "number" || timeoutId.current !== null) {
7596
7596
  return;
7597
7597
  }
7598
7598
  timeoutId.current = setTimeout(() => {
@@ -7601,7 +7601,7 @@ function useDroppableMeasuring(containers, _ref) {
7601
7601
  }, frequency);
7602
7602
  },
7603
7603
  // eslint-disable-next-line react-hooks/exhaustive-deps
7604
- [frequency, disabled2, measureDroppableContainers, ...dependencies]
7604
+ [frequency, disabled, measureDroppableContainers, ...dependencies]
7605
7605
  );
7606
7606
  return {
7607
7607
  droppableRects,
@@ -7636,18 +7636,18 @@ function useInitialRect(node, measure) {
7636
7636
  function useMutationObserver(_ref) {
7637
7637
  let {
7638
7638
  callback,
7639
- disabled: disabled2
7639
+ disabled
7640
7640
  } = _ref;
7641
7641
  const handleMutations = useEvent(callback);
7642
7642
  const mutationObserver = useMemo(() => {
7643
- if (disabled2 || typeof window === "undefined" || typeof window.MutationObserver === "undefined") {
7643
+ if (disabled || typeof window === "undefined" || typeof window.MutationObserver === "undefined") {
7644
7644
  return void 0;
7645
7645
  }
7646
7646
  const {
7647
7647
  MutationObserver
7648
7648
  } = window;
7649
7649
  return new MutationObserver(handleMutations);
7650
- }, [handleMutations, disabled2]);
7650
+ }, [handleMutations, disabled]);
7651
7651
  useEffect(() => {
7652
7652
  return () => mutationObserver == null ? void 0 : mutationObserver.disconnect();
7653
7653
  }, [mutationObserver]);
@@ -7656,12 +7656,12 @@ function useMutationObserver(_ref) {
7656
7656
  function useResizeObserver(_ref) {
7657
7657
  let {
7658
7658
  callback,
7659
- disabled: disabled2
7659
+ disabled
7660
7660
  } = _ref;
7661
7661
  const handleResize = useEvent(callback);
7662
7662
  const resizeObserver = useMemo(
7663
7663
  () => {
7664
- if (disabled2 || typeof window === "undefined" || typeof window.ResizeObserver === "undefined") {
7664
+ if (disabled || typeof window === "undefined" || typeof window.ResizeObserver === "undefined") {
7665
7665
  return void 0;
7666
7666
  }
7667
7667
  const {
@@ -7670,7 +7670,7 @@ function useResizeObserver(_ref) {
7670
7670
  return new ResizeObserver2(handleResize);
7671
7671
  },
7672
7672
  // eslint-disable-next-line react-hooks/exhaustive-deps
7673
- [disabled2]
7673
+ [disabled]
7674
7674
  );
7675
7675
  useEffect(() => {
7676
7676
  return () => resizeObserver == null ? void 0 : resizeObserver.disconnect();
@@ -7988,9 +7988,9 @@ class DroppableContainersMap extends Map {
7988
7988
  getEnabled() {
7989
7989
  return this.toArray().filter((_ref) => {
7990
7990
  let {
7991
- disabled: disabled2
7991
+ disabled
7992
7992
  } = _ref;
7993
- return !disabled2;
7993
+ return !disabled;
7994
7994
  });
7995
7995
  }
7996
7996
  getNodeFor(id) {
@@ -8120,7 +8120,7 @@ function reducer(state, action) {
8120
8120
  const {
8121
8121
  id,
8122
8122
  key: key2,
8123
- disabled: disabled2
8123
+ disabled
8124
8124
  } = action;
8125
8125
  const element = state.droppable.containers.get(id);
8126
8126
  if (!element || key2 !== element.key) {
@@ -8129,7 +8129,7 @@ function reducer(state, action) {
8129
8129
  const containers = new DroppableContainersMap(state.droppable.containers);
8130
8130
  containers.set(id, {
8131
8131
  ...element,
8132
- disabled: disabled2
8132
+ disabled
8133
8133
  });
8134
8134
  return {
8135
8135
  ...state,
@@ -8165,7 +8165,7 @@ function reducer(state, action) {
8165
8165
  }
8166
8166
  function RestoreFocus(_ref) {
8167
8167
  let {
8168
- disabled: disabled2
8168
+ disabled
8169
8169
  } = _ref;
8170
8170
  const {
8171
8171
  active,
@@ -8175,7 +8175,7 @@ function RestoreFocus(_ref) {
8175
8175
  const previousActivatorEvent = usePrevious(activatorEvent);
8176
8176
  const previousActiveId = usePrevious(active == null ? void 0 : active.id);
8177
8177
  useEffect(() => {
8178
- if (disabled2) {
8178
+ if (disabled) {
8179
8179
  return;
8180
8180
  }
8181
8181
  if (!activatorEvent && previousActivatorEvent && previousActiveId != null) {
@@ -8209,7 +8209,7 @@ function RestoreFocus(_ref) {
8209
8209
  }
8210
8210
  });
8211
8211
  }
8212
- }, [activatorEvent, disabled2, draggableNodes, previousActiveId, previousActivatorEvent]);
8212
+ }, [activatorEvent, disabled, draggableNodes, previousActiveId, previousActivatorEvent]);
8213
8213
  return null;
8214
8214
  }
8215
8215
  function applyModifiers(modifiers, _ref) {
@@ -8260,8 +8260,8 @@ function useLayoutShiftScrollCompensation(_ref) {
8260
8260
  y: config
8261
8261
  } : config;
8262
8262
  useIsomorphicLayoutEffect(() => {
8263
- const disabled2 = !x && !y;
8264
- if (disabled2 || !activeNode) {
8263
+ const disabled = !x && !y;
8264
+ if (disabled || !activeNode) {
8265
8265
  initialized.current = false;
8266
8266
  return;
8267
8267
  }
@@ -8768,7 +8768,7 @@ function useDraggable(_ref) {
8768
8768
  let {
8769
8769
  id,
8770
8770
  data,
8771
- disabled: disabled2 = false,
8771
+ disabled = false,
8772
8772
  attributes
8773
8773
  } = _ref;
8774
8774
  const key2 = useUniqueId(ID_PREFIX$1);
@@ -8814,18 +8814,18 @@ function useDraggable(_ref) {
8814
8814
  const memoizedAttributes = useMemo(() => ({
8815
8815
  role,
8816
8816
  tabIndex,
8817
- "aria-disabled": disabled2,
8817
+ "aria-disabled": disabled,
8818
8818
  "aria-pressed": isDragging && role === defaultRole ? true : void 0,
8819
8819
  "aria-roledescription": roleDescription,
8820
8820
  "aria-describedby": ariaDescribedById.draggable
8821
- }), [disabled2, role, tabIndex, isDragging, roleDescription, ariaDescribedById.draggable]);
8821
+ }), [disabled, role, tabIndex, isDragging, roleDescription, ariaDescribedById.draggable]);
8822
8822
  return {
8823
8823
  active,
8824
8824
  activatorEvent,
8825
8825
  activeNodeRect,
8826
8826
  attributes: memoizedAttributes,
8827
8827
  isDragging,
8828
- listeners: disabled2 ? void 0 : listeners,
8828
+ listeners: disabled ? void 0 : listeners,
8829
8829
  node,
8830
8830
  over,
8831
8831
  setNodeRef,
@@ -8843,7 +8843,7 @@ const defaultResizeObserverConfig = {
8843
8843
  function useDroppable(_ref) {
8844
8844
  let {
8845
8845
  data,
8846
- disabled: disabled2 = false,
8846
+ disabled = false,
8847
8847
  id,
8848
8848
  resizeObserverConfig
8849
8849
  } = _ref;
@@ -8855,7 +8855,7 @@ function useDroppable(_ref) {
8855
8855
  measureDroppableContainers
8856
8856
  } = useContext(InternalContext);
8857
8857
  const previous = useRef({
8858
- disabled: disabled2
8858
+ disabled
8859
8859
  });
8860
8860
  const resizeObserverConnected = useRef(false);
8861
8861
  const rect = useRef(null);
@@ -8919,7 +8919,7 @@ function useDroppable(_ref) {
8919
8919
  element: {
8920
8920
  id,
8921
8921
  key: key2,
8922
- disabled: disabled2,
8922
+ disabled,
8923
8923
  node: nodeRef,
8924
8924
  rect,
8925
8925
  data: dataRef
@@ -8935,16 +8935,16 @@ function useDroppable(_ref) {
8935
8935
  [id]
8936
8936
  );
8937
8937
  useEffect(() => {
8938
- if (disabled2 !== previous.current.disabled) {
8938
+ if (disabled !== previous.current.disabled) {
8939
8939
  dispatch({
8940
8940
  type: Action.SetDroppableDisabled,
8941
8941
  id,
8942
8942
  key: key2,
8943
- disabled: disabled2
8943
+ disabled
8944
8944
  });
8945
- previous.current.disabled = disabled2;
8945
+ previous.current.disabled = disabled;
8946
8946
  }
8947
- }, [id, key2, disabled2, dispatch]);
8947
+ }, [id, key2, disabled, dispatch]);
8948
8948
  return {
8949
8949
  active,
8950
8950
  rect,
@@ -9335,14 +9335,14 @@ function itemsEqual(a, b) {
9335
9335
  }
9336
9336
  return true;
9337
9337
  }
9338
- function normalizeDisabled(disabled2) {
9339
- if (typeof disabled2 === "boolean") {
9338
+ function normalizeDisabled(disabled) {
9339
+ if (typeof disabled === "boolean") {
9340
9340
  return {
9341
- draggable: disabled2,
9342
- droppable: disabled2
9341
+ draggable: disabled,
9342
+ droppable: disabled
9343
9343
  };
9344
9344
  }
9345
- return disabled2;
9345
+ return disabled;
9346
9346
  }
9347
9347
  const rectSortingStrategy = (_ref) => {
9348
9348
  let {
@@ -9464,7 +9464,7 @@ function SortableContext(_ref) {
9464
9464
  const previousItemsRef = useRef(items);
9465
9465
  const itemsHaveChanged = !itemsEqual(items, previousItemsRef.current);
9466
9466
  const disableTransforms = overIndex !== -1 && activeIndex === -1 || itemsHaveChanged;
9467
- const disabled2 = normalizeDisabled(disabledProp);
9467
+ const disabled = normalizeDisabled(disabledProp);
9468
9468
  useIsomorphicLayoutEffect(() => {
9469
9469
  if (itemsHaveChanged && isDragging) {
9470
9470
  measureDroppableContainers(items);
@@ -9477,7 +9477,7 @@ function SortableContext(_ref) {
9477
9477
  () => ({
9478
9478
  activeIndex,
9479
9479
  containerId,
9480
- disabled: disabled2,
9480
+ disabled,
9481
9481
  disableTransforms,
9482
9482
  items,
9483
9483
  overIndex,
@@ -9486,7 +9486,7 @@ function SortableContext(_ref) {
9486
9486
  strategy
9487
9487
  }),
9488
9488
  // eslint-disable-next-line react-hooks/exhaustive-deps
9489
- [activeIndex, containerId, disabled2.draggable, disabled2.droppable, disableTransforms, items, overIndex, droppableRects, useDragOverlay, strategy]
9489
+ [activeIndex, containerId, disabled.draggable, disabled.droppable, disableTransforms, items, overIndex, droppableRects, useDragOverlay, strategy]
9490
9490
  );
9491
9491
  return React__default.createElement(Context.Provider, {
9492
9492
  value: contextValue
@@ -9539,7 +9539,7 @@ const defaultAttributes = {
9539
9539
  };
9540
9540
  function useDerivedTransform(_ref) {
9541
9541
  let {
9542
- disabled: disabled2,
9542
+ disabled,
9543
9543
  index: index2,
9544
9544
  node,
9545
9545
  rect
@@ -9547,7 +9547,7 @@ function useDerivedTransform(_ref) {
9547
9547
  const [derivedTransform, setDerivedtransform] = useState(null);
9548
9548
  const previousIndex = useRef(index2);
9549
9549
  useIsomorphicLayoutEffect(() => {
9550
- if (!disabled2 && index2 !== previousIndex.current && node.current) {
9550
+ if (!disabled && index2 !== previousIndex.current && node.current) {
9551
9551
  const initial = rect.current;
9552
9552
  if (initial) {
9553
9553
  const current = getClientRect(node.current, {
@@ -9567,7 +9567,7 @@ function useDerivedTransform(_ref) {
9567
9567
  if (index2 !== previousIndex.current) {
9568
9568
  previousIndex.current = index2;
9569
9569
  }
9570
- }, [disabled2, index2, node, rect]);
9570
+ }, [disabled, index2, node, rect]);
9571
9571
  useEffect(() => {
9572
9572
  if (derivedTransform) {
9573
9573
  setDerivedtransform(null);
@@ -9598,7 +9598,7 @@ function useSortable(_ref) {
9598
9598
  useDragOverlay,
9599
9599
  strategy: globalStrategy
9600
9600
  } = useContext(Context);
9601
- const disabled2 = normalizeLocalDisabled(localDisabled, globalDisabled);
9601
+ const disabled = normalizeLocalDisabled(localDisabled, globalDisabled);
9602
9602
  const index2 = items.indexOf(id);
9603
9603
  const data = useMemo(() => ({
9604
9604
  sortable: {
@@ -9617,7 +9617,7 @@ function useSortable(_ref) {
9617
9617
  } = useDroppable({
9618
9618
  id,
9619
9619
  data,
9620
- disabled: disabled2.droppable,
9620
+ disabled: disabled.droppable,
9621
9621
  resizeObserverConfig: {
9622
9622
  updateMeasurementsFor: itemsAfterCurrentSortable,
9623
9623
  ...resizeObserverConfig
@@ -9641,7 +9641,7 @@ function useSortable(_ref) {
9641
9641
  ...defaultAttributes,
9642
9642
  ...userDefinedAttributes
9643
9643
  },
9644
- disabled: disabled2.draggable
9644
+ disabled: disabled.draggable
9645
9645
  });
9646
9646
  const setNodeRef = useCombinedRefs(setDroppableNodeRef, setDraggableNodeRef);
9647
9647
  const isSorting = Boolean(active);
@@ -10637,15 +10637,14 @@ const TaskListTableDefaultInner = ({
10637
10637
  );
10638
10638
  };
10639
10639
  const TaskListTable = memo(TaskListTableDefaultInner);
10640
- const taskListRoot = "_taskListRoot_yadug_1";
10641
- const taskListHorizontalScroll = "_taskListHorizontalScroll_yadug_19";
10642
- const taskListResizer = "_taskListResizer_yadug_81";
10643
- const horizontalContainer$1 = "_horizontalContainer_yadug_145";
10644
- const tableWrapper = "_tableWrapper_yadug_159";
10645
- const scrollToTop = "_scrollToTop_yadug_173";
10646
- const scrollToBottom = "_scrollToBottom_yadug_189";
10647
- const hidden = "_hidden_yadug_205";
10648
- const disabled$1 = "_disabled_yadug_213";
10640
+ const taskListRoot = "_taskListRoot_yoz76_1";
10641
+ const taskListHorizontalScroll = "_taskListHorizontalScroll_yoz76_19";
10642
+ const taskListResizer = "_taskListResizer_yoz76_81";
10643
+ const horizontalContainer$1 = "_horizontalContainer_yoz76_145";
10644
+ const tableWrapper = "_tableWrapper_yoz76_159";
10645
+ const scrollToTop = "_scrollToTop_yoz76_173";
10646
+ const scrollToBottom = "_scrollToBottom_yoz76_189";
10647
+ const hidden = "_hidden_yoz76_205";
10649
10648
  const styles$d = {
10650
10649
  taskListRoot,
10651
10650
  taskListHorizontalScroll,
@@ -10654,8 +10653,7 @@ const styles$d = {
10654
10653
  tableWrapper,
10655
10654
  scrollToTop,
10656
10655
  scrollToBottom,
10657
- hidden,
10658
- disabled: disabled$1
10656
+ hidden
10659
10657
  };
10660
10658
  const checkHasChildren = (task, childTasksMap) => {
10661
10659
  const { id, comparisonLevel = 1 } = task;
@@ -10704,8 +10702,7 @@ const TaskListInner = ({
10704
10702
  tasks,
10705
10703
  onResizeColumn,
10706
10704
  canReorderTasks,
10707
- tableBottom,
10708
- isLoading = false
10705
+ tableBottom
10709
10706
  }) => {
10710
10707
  const [
10711
10708
  columns,
@@ -10807,89 +10804,83 @@ const TaskListInner = ({
10807
10804
  canResizeColumns
10808
10805
  }
10809
10806
  ),
10810
- /* @__PURE__ */ jsxs(
10811
- "div",
10812
- {
10813
- className: `${styles$d.tableWrapper} ${isLoading ? styles$d.disabled : ""}`,
10814
- children: [
10815
- /* @__PURE__ */ jsx(
10807
+ /* @__PURE__ */ jsxs("div", { className: styles$d.tableWrapper, children: [
10808
+ /* @__PURE__ */ jsx(
10809
+ "div",
10810
+ {
10811
+ ref: taskListContainerRef,
10812
+ className: styles$d.horizontalContainer,
10813
+ style: {
10814
+ height: Math.max(
10815
+ ganttHeight - ((tableBottom == null ? void 0 : tableBottom.height) || 0),
10816
+ distances.minimumRowDisplayed * distances.rowHeight
10817
+ ),
10818
+ width: taskListWidth
10819
+ },
10820
+ children: /* @__PURE__ */ jsx(
10816
10821
  "div",
10817
10822
  {
10818
- ref: taskListContainerRef,
10819
- className: styles$d.horizontalContainer,
10820
10823
  style: {
10821
10824
  height: Math.max(
10822
- ganttHeight - ((tableBottom == null ? void 0 : tableBottom.height) || 0),
10825
+ ganttFullHeight,
10823
10826
  distances.minimumRowDisplayed * distances.rowHeight
10824
10827
  ),
10825
- width: taskListWidth
10828
+ backgroundSize: `100% ${fullRowHeight * 2}px`,
10829
+ backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)`
10826
10830
  },
10827
10831
  children: /* @__PURE__ */ jsx(
10828
- "div",
10832
+ RenderTaskListTable,
10829
10833
  {
10830
- style: {
10831
- height: Math.max(
10832
- ganttFullHeight,
10833
- distances.minimumRowDisplayed * distances.rowHeight
10834
- ),
10835
- backgroundSize: `100% ${fullRowHeight * 2}px`,
10836
- backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)`
10837
- },
10838
- children: /* @__PURE__ */ jsx(
10839
- RenderTaskListTable,
10840
- {
10841
- ganttRef,
10842
- getTableRowProps,
10843
- canMoveTasks: canReorderTasks,
10844
- allowMoveTask: allowReorderTask,
10845
- childTasksMap,
10846
- columns,
10847
- cutIdsMirror,
10848
- dateSetup,
10849
- dependencyMap,
10850
- distances,
10851
- fullRowHeight,
10852
- ganttFullHeight,
10853
- getTaskCurrentState,
10854
- handleAddTask,
10855
- handleDeleteTasks,
10856
- handleEditTask,
10857
- handleMoveTaskBefore,
10858
- handleMoveTaskAfter,
10859
- handleMoveTasksInside,
10860
- handleOpenContextMenu,
10861
- icons,
10862
- isShowTaskNumbers,
10863
- mapTaskToNestedIndex,
10864
- onClick,
10865
- onExpanderClick,
10866
- renderedIndexes,
10867
- scrollToTask,
10868
- selectTaskOnMouseDown,
10869
- selectedIdsMirror,
10870
- taskListWidth,
10871
- tasks
10872
- }
10873
- )
10834
+ ganttRef,
10835
+ getTableRowProps,
10836
+ canMoveTasks: canReorderTasks,
10837
+ allowMoveTask: allowReorderTask,
10838
+ childTasksMap,
10839
+ columns,
10840
+ cutIdsMirror,
10841
+ dateSetup,
10842
+ dependencyMap,
10843
+ distances,
10844
+ fullRowHeight,
10845
+ ganttFullHeight,
10846
+ getTaskCurrentState,
10847
+ handleAddTask,
10848
+ handleDeleteTasks,
10849
+ handleEditTask,
10850
+ handleMoveTaskBefore,
10851
+ handleMoveTaskAfter,
10852
+ handleMoveTasksInside,
10853
+ handleOpenContextMenu,
10854
+ icons,
10855
+ isShowTaskNumbers,
10856
+ mapTaskToNestedIndex,
10857
+ onClick,
10858
+ onExpanderClick,
10859
+ renderedIndexes,
10860
+ scrollToTask,
10861
+ selectTaskOnMouseDown,
10862
+ selectedIdsMirror,
10863
+ taskListWidth,
10864
+ tasks
10874
10865
  }
10875
10866
  )
10876
10867
  }
10877
- ),
10878
- /* @__PURE__ */ jsx(
10879
- "div",
10880
- {
10881
- className: `${styles$d.scrollToTop} ${!renderedIndexes || renderedIndexes[2] ? styles$d.hidden : ""}`
10882
- }
10883
- ),
10884
- /* @__PURE__ */ jsx(
10885
- "div",
10886
- {
10887
- className: `${styles$d.scrollToBottom} ${!renderedIndexes || renderedIndexes[3] ? styles$d.hidden : ""}`
10888
- }
10889
10868
  )
10890
- ]
10891
- }
10892
- ),
10869
+ }
10870
+ ),
10871
+ /* @__PURE__ */ jsx(
10872
+ "div",
10873
+ {
10874
+ className: `${styles$d.scrollToTop} ${!renderedIndexes || renderedIndexes[2] ? styles$d.hidden : ""}`
10875
+ }
10876
+ ),
10877
+ /* @__PURE__ */ jsx(
10878
+ "div",
10879
+ {
10880
+ className: `${styles$d.scrollToBottom} ${!renderedIndexes || renderedIndexes[3] ? styles$d.hidden : ""}`
10881
+ }
10882
+ )
10883
+ ] }),
10893
10884
  (tableBottom == null ? void 0 : tableBottom.renderContent) && (tableBottom == null ? void 0 : tableBottom.height) && /* @__PURE__ */ jsx("div", { style: { height: tableBottom.height, width: "100%" }, children: tableBottom.renderContent() })
10894
10885
  ]
10895
10886
  }
@@ -13372,17 +13363,15 @@ const TaskGanttContentInner = (props) => {
13372
13363
  ] });
13373
13364
  };
13374
13365
  const TaskGanttContent = memo(TaskGanttContentInner);
13375
- const ganttVerticalContainer = "_ganttVerticalContainer_1czjq_1";
13376
- const horizontalContainer = "_horizontalContainer_1czjq_73";
13377
- const wrapper = "_wrapper_1czjq_85";
13378
- const calendarDragging = "_calendarDragging_1czjq_109";
13379
- const disabled = "_disabled_1czjq_117";
13366
+ const ganttVerticalContainer = "_ganttVerticalContainer_1wr55_1";
13367
+ const horizontalContainer = "_horizontalContainer_1wr55_73";
13368
+ const wrapper = "_wrapper_1wr55_85";
13369
+ const calendarDragging = "_calendarDragging_1wr55_109";
13380
13370
  const styles$2 = {
13381
13371
  ganttVerticalContainer,
13382
13372
  horizontalContainer,
13383
13373
  wrapper,
13384
- calendarDragging,
13385
- disabled
13374
+ calendarDragging
13386
13375
  };
13387
13376
  const TaskGanttInner = (props) => {
13388
13377
  const {
@@ -13402,8 +13391,7 @@ const TaskGanttInner = (props) => {
13402
13391
  onVerticalScrollbarScrollX,
13403
13392
  verticalGanttContainerRef,
13404
13393
  verticalScrollbarRef,
13405
- onOpenGanttContextMenu,
13406
- isLoading = false
13394
+ onOpenGanttContextMenu
13407
13395
  } = props;
13408
13396
  const contentRef = React__default.useRef(null);
13409
13397
  const moveStateVertRef = useRef(null);
@@ -13531,7 +13519,7 @@ const TaskGanttInner = (props) => {
13531
13519
  "div",
13532
13520
  {
13533
13521
  ref: horizontalContainerRef,
13534
- className: `${styles$2.horizontalContainer} ${isLoading ? styles$2.disabled : ""}`,
13522
+ className: styles$2.horizontalContainer,
13535
13523
  style: containerStyle,
13536
13524
  children: /* @__PURE__ */ jsx("div", { style: gridStyle, children: /* @__PURE__ */ jsxs(
13537
13525
  "svg",
@@ -18031,7 +18019,7 @@ function MenuOption(props) {
18031
18019
  },
18032
18020
  handleAction,
18033
18021
  option,
18034
- option: { icon: icon2, label: label2, disabled: disabled2, children }
18022
+ option: { icon: icon2, label: label2, disabled, children }
18035
18023
  } = props;
18036
18024
  const [hovered, setHovered] = useState(false);
18037
18025
  const [coords, setCoords] = useState(null);
@@ -18041,7 +18029,7 @@ function MenuOption(props) {
18041
18029
  const onClick = useCallback(
18042
18030
  (e) => {
18043
18031
  e.preventDefault();
18044
- if (disabled2) {
18032
+ if (disabled) {
18045
18033
  return;
18046
18034
  }
18047
18035
  if (children && children.length > 0) {
@@ -18051,7 +18039,7 @@ function MenuOption(props) {
18051
18039
  handleAction(option);
18052
18040
  onClose == null ? void 0 : onClose();
18053
18041
  },
18054
- [onClose, handleAction, option, disabled2, children]
18042
+ [onClose, handleAction, option, disabled, children]
18055
18043
  );
18056
18044
  useEffect(() => {
18057
18045
  if (!hovered || !nestedRef.current)
@@ -18111,8 +18099,8 @@ function MenuOption(props) {
18111
18099
  "button",
18112
18100
  {
18113
18101
  className: styles$1.menuOption,
18114
- "aria-disabled": disabled2,
18115
- disabled: disabled2,
18102
+ "aria-disabled": disabled,
18103
+ disabled,
18116
18104
  style: {
18117
18105
  height: contextMenuOptionHeight,
18118
18106
  paddingLeft: contextMenuSidePadding,
@@ -18129,7 +18117,7 @@ function MenuOption(props) {
18129
18117
  style: {
18130
18118
  width: contextMenuIconWidth,
18131
18119
  color: "var(--gantt-context-menu-text-color)",
18132
- opacity: disabled2 ? 0.3 : 0.5
18120
+ opacity: disabled ? 0.3 : 0.5
18133
18121
  },
18134
18122
  children: icon2
18135
18123
  }
@@ -18996,8 +18984,7 @@ const Gantt = (props) => {
18996
18984
  todayLabel = "Today",
18997
18985
  dataDateLabel = "Data Date",
18998
18986
  showProgress = true,
18999
- progressColor,
19000
- isLoading = false
18987
+ progressColor
19001
18988
  } = props;
19002
18989
  const ganttSVGRef = useRef(null);
19003
18990
  const wrapperRef = useRef(null);
@@ -20360,8 +20347,7 @@ const Gantt = (props) => {
20360
20347
  taskListContainerRef,
20361
20348
  taskListRef,
20362
20349
  tasks: visibleTasks,
20363
- ganttRef: wrapperRef,
20364
- isLoading
20350
+ ganttRef: wrapperRef
20365
20351
  }),
20366
20352
  [
20367
20353
  childTasksMap,
@@ -20390,8 +20376,7 @@ const Gantt = (props) => {
20390
20376
  selectedIdsMirror,
20391
20377
  taskList,
20392
20378
  taskListContainerRef,
20393
- visibleTasks,
20394
- isLoading
20379
+ visibleTasks
20395
20380
  ]
20396
20381
  );
20397
20382
  return /* @__PURE__ */ jsx(GanttThemeProvider, { theme, children: (cssVars) => /* @__PURE__ */ jsx(GanttLocaleProvider, { locale, children: /* @__PURE__ */ jsxs(
@@ -20429,8 +20414,7 @@ const Gantt = (props) => {
20429
20414
  verticalGanttContainerRef,
20430
20415
  onOpenGanttContextMenu: (clientX, clientY) => {
20431
20416
  handleOpenGanttContextMenu(null, clientX, clientY);
20432
- },
20433
- isLoading
20417
+ }
20434
20418
  }
20435
20419
  ),
20436
20420
  tooltipTaskFromMap && /* @__PURE__ */ jsx(