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.
@@ -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,15 +10654,14 @@
10654
10654
  );
10655
10655
  };
10656
10656
  const TaskListTable = React.memo(TaskListTableDefaultInner);
10657
- const taskListRoot = "_taskListRoot_yadug_1";
10658
- const taskListHorizontalScroll = "_taskListHorizontalScroll_yadug_19";
10659
- const taskListResizer = "_taskListResizer_yadug_81";
10660
- const horizontalContainer$1 = "_horizontalContainer_yadug_145";
10661
- const tableWrapper = "_tableWrapper_yadug_159";
10662
- const scrollToTop = "_scrollToTop_yadug_173";
10663
- const scrollToBottom = "_scrollToBottom_yadug_189";
10664
- const hidden = "_hidden_yadug_205";
10665
- const disabled$1 = "_disabled_yadug_213";
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";
10666
10665
  const styles$d = {
10667
10666
  taskListRoot,
10668
10667
  taskListHorizontalScroll,
@@ -10671,8 +10670,7 @@
10671
10670
  tableWrapper,
10672
10671
  scrollToTop,
10673
10672
  scrollToBottom,
10674
- hidden,
10675
- disabled: disabled$1
10673
+ hidden
10676
10674
  };
10677
10675
  const checkHasChildren = (task, childTasksMap) => {
10678
10676
  const { id, comparisonLevel = 1 } = task;
@@ -10721,8 +10719,7 @@
10721
10719
  tasks,
10722
10720
  onResizeColumn,
10723
10721
  canReorderTasks,
10724
- tableBottom,
10725
- isLoading = false
10722
+ tableBottom
10726
10723
  }) => {
10727
10724
  const [
10728
10725
  columns,
@@ -10824,89 +10821,83 @@
10824
10821
  canResizeColumns
10825
10822
  }
10826
10823
  ),
10827
- /* @__PURE__ */ jsxRuntime.jsxs(
10828
- "div",
10829
- {
10830
- className: `${styles$d.tableWrapper} ${isLoading ? styles$d.disabled : ""}`,
10831
- children: [
10832
- /* @__PURE__ */ jsxRuntime.jsx(
10824
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$d.tableWrapper, children: [
10825
+ /* @__PURE__ */ jsxRuntime.jsx(
10826
+ "div",
10827
+ {
10828
+ ref: taskListContainerRef,
10829
+ className: styles$d.horizontalContainer,
10830
+ style: {
10831
+ height: Math.max(
10832
+ ganttHeight - ((tableBottom == null ? void 0 : tableBottom.height) || 0),
10833
+ distances.minimumRowDisplayed * distances.rowHeight
10834
+ ),
10835
+ width: taskListWidth
10836
+ },
10837
+ children: /* @__PURE__ */ jsxRuntime.jsx(
10833
10838
  "div",
10834
10839
  {
10835
- ref: taskListContainerRef,
10836
- className: styles$d.horizontalContainer,
10837
10840
  style: {
10838
10841
  height: Math.max(
10839
- ganttHeight - ((tableBottom == null ? void 0 : tableBottom.height) || 0),
10842
+ ganttFullHeight,
10840
10843
  distances.minimumRowDisplayed * distances.rowHeight
10841
10844
  ),
10842
- width: taskListWidth
10845
+ backgroundSize: `100% ${fullRowHeight * 2}px`,
10846
+ backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)`
10843
10847
  },
10844
10848
  children: /* @__PURE__ */ jsxRuntime.jsx(
10845
- "div",
10849
+ RenderTaskListTable,
10846
10850
  {
10847
- style: {
10848
- height: Math.max(
10849
- ganttFullHeight,
10850
- distances.minimumRowDisplayed * distances.rowHeight
10851
- ),
10852
- backgroundSize: `100% ${fullRowHeight * 2}px`,
10853
- backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)`
10854
- },
10855
- children: /* @__PURE__ */ jsxRuntime.jsx(
10856
- RenderTaskListTable,
10857
- {
10858
- ganttRef,
10859
- getTableRowProps,
10860
- canMoveTasks: canReorderTasks,
10861
- allowMoveTask: allowReorderTask,
10862
- childTasksMap,
10863
- columns,
10864
- cutIdsMirror,
10865
- dateSetup,
10866
- dependencyMap,
10867
- distances,
10868
- fullRowHeight,
10869
- ganttFullHeight,
10870
- getTaskCurrentState,
10871
- handleAddTask,
10872
- handleDeleteTasks,
10873
- handleEditTask,
10874
- handleMoveTaskBefore,
10875
- handleMoveTaskAfter,
10876
- handleMoveTasksInside,
10877
- handleOpenContextMenu,
10878
- icons,
10879
- isShowTaskNumbers,
10880
- mapTaskToNestedIndex,
10881
- onClick,
10882
- onExpanderClick,
10883
- renderedIndexes,
10884
- scrollToTask,
10885
- selectTaskOnMouseDown,
10886
- selectedIdsMirror,
10887
- taskListWidth,
10888
- tasks
10889
- }
10890
- )
10851
+ ganttRef,
10852
+ getTableRowProps,
10853
+ canMoveTasks: canReorderTasks,
10854
+ allowMoveTask: allowReorderTask,
10855
+ childTasksMap,
10856
+ columns,
10857
+ cutIdsMirror,
10858
+ dateSetup,
10859
+ dependencyMap,
10860
+ distances,
10861
+ fullRowHeight,
10862
+ ganttFullHeight,
10863
+ getTaskCurrentState,
10864
+ handleAddTask,
10865
+ handleDeleteTasks,
10866
+ handleEditTask,
10867
+ handleMoveTaskBefore,
10868
+ handleMoveTaskAfter,
10869
+ handleMoveTasksInside,
10870
+ handleOpenContextMenu,
10871
+ icons,
10872
+ isShowTaskNumbers,
10873
+ mapTaskToNestedIndex,
10874
+ onClick,
10875
+ onExpanderClick,
10876
+ renderedIndexes,
10877
+ scrollToTask,
10878
+ selectTaskOnMouseDown,
10879
+ selectedIdsMirror,
10880
+ taskListWidth,
10881
+ tasks
10891
10882
  }
10892
10883
  )
10893
10884
  }
10894
- ),
10895
- /* @__PURE__ */ jsxRuntime.jsx(
10896
- "div",
10897
- {
10898
- className: `${styles$d.scrollToTop} ${!renderedIndexes || renderedIndexes[2] ? styles$d.hidden : ""}`
10899
- }
10900
- ),
10901
- /* @__PURE__ */ jsxRuntime.jsx(
10902
- "div",
10903
- {
10904
- className: `${styles$d.scrollToBottom} ${!renderedIndexes || renderedIndexes[3] ? styles$d.hidden : ""}`
10905
- }
10906
10885
  )
10907
- ]
10908
- }
10909
- ),
10886
+ }
10887
+ ),
10888
+ /* @__PURE__ */ jsxRuntime.jsx(
10889
+ "div",
10890
+ {
10891
+ className: `${styles$d.scrollToTop} ${!renderedIndexes || renderedIndexes[2] ? styles$d.hidden : ""}`
10892
+ }
10893
+ ),
10894
+ /* @__PURE__ */ jsxRuntime.jsx(
10895
+ "div",
10896
+ {
10897
+ className: `${styles$d.scrollToBottom} ${!renderedIndexes || renderedIndexes[3] ? styles$d.hidden : ""}`
10898
+ }
10899
+ )
10900
+ ] }),
10910
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() })
10911
10902
  ]
10912
10903
  }
@@ -13389,17 +13380,15 @@
13389
13380
  ] });
13390
13381
  };
13391
13382
  const TaskGanttContent = React.memo(TaskGanttContentInner);
13392
- const ganttVerticalContainer = "_ganttVerticalContainer_1czjq_1";
13393
- const horizontalContainer = "_horizontalContainer_1czjq_73";
13394
- const wrapper = "_wrapper_1czjq_85";
13395
- const calendarDragging = "_calendarDragging_1czjq_109";
13396
- const disabled = "_disabled_1czjq_117";
13383
+ const ganttVerticalContainer = "_ganttVerticalContainer_1wr55_1";
13384
+ const horizontalContainer = "_horizontalContainer_1wr55_73";
13385
+ const wrapper = "_wrapper_1wr55_85";
13386
+ const calendarDragging = "_calendarDragging_1wr55_109";
13397
13387
  const styles$2 = {
13398
13388
  ganttVerticalContainer,
13399
13389
  horizontalContainer,
13400
13390
  wrapper,
13401
- calendarDragging,
13402
- disabled
13391
+ calendarDragging
13403
13392
  };
13404
13393
  const TaskGanttInner = (props) => {
13405
13394
  const {
@@ -13419,8 +13408,7 @@
13419
13408
  onVerticalScrollbarScrollX,
13420
13409
  verticalGanttContainerRef,
13421
13410
  verticalScrollbarRef,
13422
- onOpenGanttContextMenu,
13423
- isLoading = false
13411
+ onOpenGanttContextMenu
13424
13412
  } = props;
13425
13413
  const contentRef = React.useRef(null);
13426
13414
  const moveStateVertRef = React.useRef(null);
@@ -13548,7 +13536,7 @@
13548
13536
  "div",
13549
13537
  {
13550
13538
  ref: horizontalContainerRef,
13551
- className: `${styles$2.horizontalContainer} ${isLoading ? styles$2.disabled : ""}`,
13539
+ className: styles$2.horizontalContainer,
13552
13540
  style: containerStyle,
13553
13541
  children: /* @__PURE__ */ jsxRuntime.jsx("div", { style: gridStyle, children: /* @__PURE__ */ jsxRuntime.jsxs(
13554
13542
  "svg",
@@ -18048,7 +18036,7 @@
18048
18036
  },
18049
18037
  handleAction,
18050
18038
  option,
18051
- option: { icon: icon2, label: label2, disabled: disabled2, children }
18039
+ option: { icon: icon2, label: label2, disabled, children }
18052
18040
  } = props;
18053
18041
  const [hovered, setHovered] = React.useState(false);
18054
18042
  const [coords, setCoords] = React.useState(null);
@@ -18058,7 +18046,7 @@
18058
18046
  const onClick = React.useCallback(
18059
18047
  (e) => {
18060
18048
  e.preventDefault();
18061
- if (disabled2) {
18049
+ if (disabled) {
18062
18050
  return;
18063
18051
  }
18064
18052
  if (children && children.length > 0) {
@@ -18068,7 +18056,7 @@
18068
18056
  handleAction(option);
18069
18057
  onClose == null ? void 0 : onClose();
18070
18058
  },
18071
- [onClose, handleAction, option, disabled2, children]
18059
+ [onClose, handleAction, option, disabled, children]
18072
18060
  );
18073
18061
  React.useEffect(() => {
18074
18062
  if (!hovered || !nestedRef.current)
@@ -18128,8 +18116,8 @@
18128
18116
  "button",
18129
18117
  {
18130
18118
  className: styles$1.menuOption,
18131
- "aria-disabled": disabled2,
18132
- disabled: disabled2,
18119
+ "aria-disabled": disabled,
18120
+ disabled,
18133
18121
  style: {
18134
18122
  height: contextMenuOptionHeight,
18135
18123
  paddingLeft: contextMenuSidePadding,
@@ -18146,7 +18134,7 @@
18146
18134
  style: {
18147
18135
  width: contextMenuIconWidth,
18148
18136
  color: "var(--gantt-context-menu-text-color)",
18149
- opacity: disabled2 ? 0.3 : 0.5
18137
+ opacity: disabled ? 0.3 : 0.5
18150
18138
  },
18151
18139
  children: icon2
18152
18140
  }
@@ -19013,8 +19001,7 @@
19013
19001
  todayLabel = "Today",
19014
19002
  dataDateLabel = "Data Date",
19015
19003
  showProgress = true,
19016
- progressColor,
19017
- isLoading = false
19004
+ progressColor
19018
19005
  } = props;
19019
19006
  const ganttSVGRef = React.useRef(null);
19020
19007
  const wrapperRef = React.useRef(null);
@@ -20377,8 +20364,7 @@
20377
20364
  taskListContainerRef,
20378
20365
  taskListRef,
20379
20366
  tasks: visibleTasks,
20380
- ganttRef: wrapperRef,
20381
- isLoading
20367
+ ganttRef: wrapperRef
20382
20368
  }),
20383
20369
  [
20384
20370
  childTasksMap,
@@ -20407,8 +20393,7 @@
20407
20393
  selectedIdsMirror,
20408
20394
  taskList,
20409
20395
  taskListContainerRef,
20410
- visibleTasks,
20411
- isLoading
20396
+ visibleTasks
20412
20397
  ]
20413
20398
  );
20414
20399
  return /* @__PURE__ */ jsxRuntime.jsx(GanttThemeProvider, { theme, children: (cssVars) => /* @__PURE__ */ jsxRuntime.jsx(GanttLocaleProvider, { locale, children: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -20446,8 +20431,7 @@
20446
20431
  verticalGanttContainerRef,
20447
20432
  onOpenGanttContextMenu: (clientX, clientY) => {
20448
20433
  handleOpenGanttContextMenu(null, clientX, clientY);
20449
- },
20450
- isLoading
20434
+ }
20451
20435
  }
20452
20436
  ),
20453
20437
  tooltipTaskFromMap && /* @__PURE__ */ jsxRuntime.jsx(