gantt-task-react-v 1.2.1 → 1.2.2

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.
@@ -10637,15 +10637,16 @@ 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_cyzwo_1";
10641
+ const taskListHorizontalScroll = "_taskListHorizontalScroll_cyzwo_19";
10642
+ const taskListResizer = "_taskListResizer_cyzwo_81";
10643
+ const horizontalContainer$1 = "_horizontalContainer_cyzwo_145";
10644
+ const tableWrapper = "_tableWrapper_cyzwo_159";
10645
+ const scrollToTop = "_scrollToTop_cyzwo_173";
10646
+ const scrollToBottom = "_scrollToBottom_cyzwo_189";
10647
+ const hidden = "_hidden_cyzwo_205";
10648
+ const disabled$1 = "_disabled_cyzwo_213";
10649
+ const disabledOverlay$1 = "_disabledOverlay_cyzwo_221";
10649
10650
  const styles$d = {
10650
10651
  taskListRoot,
10651
10652
  taskListHorizontalScroll,
@@ -10655,7 +10656,8 @@ const styles$d = {
10655
10656
  scrollToTop,
10656
10657
  scrollToBottom,
10657
10658
  hidden,
10658
- disabled: disabled$1
10659
+ disabled: disabled$1,
10660
+ disabledOverlay: disabledOverlay$1
10659
10661
  };
10660
10662
  const checkHasChildren = (task, childTasksMap) => {
10661
10663
  const { id, comparisonLevel = 1 } = task;
@@ -10807,89 +10809,84 @@ const TaskListInner = ({
10807
10809
  canResizeColumns
10808
10810
  }
10809
10811
  ),
10810
- /* @__PURE__ */ jsxs(
10811
- "div",
10812
- {
10813
- className: `${styles$d.tableWrapper} ${isLoading ? styles$d.disabled : ""}`,
10814
- children: [
10815
- /* @__PURE__ */ jsx(
10812
+ /* @__PURE__ */ jsxs("div", { className: styles$d.tableWrapper, children: [
10813
+ /* @__PURE__ */ jsx(
10814
+ "div",
10815
+ {
10816
+ ref: taskListContainerRef,
10817
+ className: styles$d.horizontalContainer,
10818
+ style: {
10819
+ height: Math.max(
10820
+ ganttHeight - ((tableBottom == null ? void 0 : tableBottom.height) || 0),
10821
+ distances.minimumRowDisplayed * distances.rowHeight
10822
+ ),
10823
+ width: taskListWidth
10824
+ },
10825
+ children: /* @__PURE__ */ jsx(
10816
10826
  "div",
10817
10827
  {
10818
- ref: taskListContainerRef,
10819
- className: styles$d.horizontalContainer,
10820
10828
  style: {
10821
10829
  height: Math.max(
10822
- ganttHeight - ((tableBottom == null ? void 0 : tableBottom.height) || 0),
10830
+ ganttFullHeight,
10823
10831
  distances.minimumRowDisplayed * distances.rowHeight
10824
10832
  ),
10825
- width: taskListWidth
10833
+ backgroundSize: `100% ${fullRowHeight * 2}px`,
10834
+ backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)`
10826
10835
  },
10827
10836
  children: /* @__PURE__ */ jsx(
10828
- "div",
10837
+ RenderTaskListTable,
10829
10838
  {
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
- )
10839
+ ganttRef,
10840
+ getTableRowProps,
10841
+ canMoveTasks: canReorderTasks,
10842
+ allowMoveTask: allowReorderTask,
10843
+ childTasksMap,
10844
+ columns,
10845
+ cutIdsMirror,
10846
+ dateSetup,
10847
+ dependencyMap,
10848
+ distances,
10849
+ fullRowHeight,
10850
+ ganttFullHeight,
10851
+ getTaskCurrentState,
10852
+ handleAddTask,
10853
+ handleDeleteTasks,
10854
+ handleEditTask,
10855
+ handleMoveTaskBefore,
10856
+ handleMoveTaskAfter,
10857
+ handleMoveTasksInside,
10858
+ handleOpenContextMenu,
10859
+ icons,
10860
+ isShowTaskNumbers,
10861
+ mapTaskToNestedIndex,
10862
+ onClick,
10863
+ onExpanderClick,
10864
+ renderedIndexes,
10865
+ scrollToTask,
10866
+ selectTaskOnMouseDown,
10867
+ selectedIdsMirror,
10868
+ taskListWidth,
10869
+ tasks
10874
10870
  }
10875
10871
  )
10876
10872
  }
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
10873
  )
10890
- ]
10891
- }
10892
- ),
10874
+ }
10875
+ ),
10876
+ /* @__PURE__ */ jsx(
10877
+ "div",
10878
+ {
10879
+ className: `${styles$d.scrollToTop} ${!renderedIndexes || renderedIndexes[2] ? styles$d.hidden : ""}`
10880
+ }
10881
+ ),
10882
+ /* @__PURE__ */ jsx(
10883
+ "div",
10884
+ {
10885
+ className: `${styles$d.scrollToBottom} ${!renderedIndexes || renderedIndexes[3] ? styles$d.hidden : ""}`
10886
+ }
10887
+ ),
10888
+ isLoading && /* @__PURE__ */ jsx("div", { className: styles$d.disabledOverlay })
10889
+ ] }),
10893
10890
  (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
10891
  ]
10895
10892
  }
@@ -13372,17 +13369,19 @@ const TaskGanttContentInner = (props) => {
13372
13369
  ] });
13373
13370
  };
13374
13371
  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";
13372
+ const ganttVerticalContainer = "_ganttVerticalContainer_15ld3_1";
13373
+ const horizontalContainer = "_horizontalContainer_15ld3_73";
13374
+ const wrapper = "_wrapper_15ld3_85";
13375
+ const calendarDragging = "_calendarDragging_15ld3_109";
13376
+ const disabled = "_disabled_15ld3_117";
13377
+ const disabledOverlay = "_disabledOverlay_15ld3_125";
13380
13378
  const styles$2 = {
13381
13379
  ganttVerticalContainer,
13382
13380
  horizontalContainer,
13383
13381
  wrapper,
13384
13382
  calendarDragging,
13385
- disabled
13383
+ disabled,
13384
+ disabledOverlay
13386
13385
  };
13387
13386
  const TaskGanttInner = (props) => {
13388
13387
  const {
@@ -13527,41 +13526,44 @@ const TaskGanttInner = (props) => {
13527
13526
  children: /* @__PURE__ */ jsx(Calendar, { scrollRef: verticalGanttContainerRef, ...calendarProps })
13528
13527
  }
13529
13528
  ),
13530
- /* @__PURE__ */ jsx(
13529
+ /* @__PURE__ */ jsxs(
13531
13530
  "div",
13532
13531
  {
13533
13532
  ref: horizontalContainerRef,
13534
- className: `${styles$2.horizontalContainer} ${isLoading ? styles$2.disabled : ""}`,
13533
+ className: styles$2.horizontalContainer,
13535
13534
  style: containerStyle,
13536
- children: /* @__PURE__ */ jsx("div", { style: gridStyle, children: /* @__PURE__ */ jsxs(
13537
- "svg",
13538
- {
13539
- xmlns: "http://www.w3.org/2000/svg",
13540
- width: fullSvgWidth,
13541
- height: ganttFullHeight,
13542
- fontFamily: "var(--gantt-font-family)",
13543
- ref: ganttSVGRef,
13544
- onContextMenu: (event) => {
13545
- event.preventDefault();
13546
- if (onOpenGanttContextMenu) {
13547
- onOpenGanttContextMenu(event.clientX, event.clientY);
13548
- }
13549
- },
13550
- children: [
13551
- /* @__PURE__ */ jsx(GanttToday, { ...ganttTodayProps }),
13552
- /* @__PURE__ */ jsx(
13553
- "rect",
13554
- {
13555
- ref: contentRef,
13556
- width: "100%",
13557
- height: "100%",
13558
- fill: "transparent"
13535
+ children: [
13536
+ /* @__PURE__ */ jsx("div", { style: gridStyle, children: /* @__PURE__ */ jsxs(
13537
+ "svg",
13538
+ {
13539
+ xmlns: "http://www.w3.org/2000/svg",
13540
+ width: fullSvgWidth,
13541
+ height: ganttFullHeight,
13542
+ fontFamily: "var(--gantt-font-family)",
13543
+ ref: ganttSVGRef,
13544
+ onContextMenu: (event) => {
13545
+ event.preventDefault();
13546
+ if (onOpenGanttContextMenu) {
13547
+ onOpenGanttContextMenu(event.clientX, event.clientY);
13559
13548
  }
13560
- ),
13561
- /* @__PURE__ */ jsx(TaskGanttContent, { ...barProps })
13562
- ]
13563
- }
13564
- ) })
13549
+ },
13550
+ children: [
13551
+ /* @__PURE__ */ jsx(GanttToday, { ...ganttTodayProps }),
13552
+ /* @__PURE__ */ jsx(
13553
+ "rect",
13554
+ {
13555
+ ref: contentRef,
13556
+ width: "100%",
13557
+ height: "100%",
13558
+ fill: "transparent"
13559
+ }
13560
+ ),
13561
+ /* @__PURE__ */ jsx(TaskGanttContent, { ...barProps })
13562
+ ]
13563
+ }
13564
+ ) }),
13565
+ isLoading && /* @__PURE__ */ jsx("div", { className: styles$2.disabledOverlay })
13566
+ ]
13565
13567
  }
13566
13568
  )
13567
13569
  ]
@@ -10654,15 +10654,16 @@
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_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";
10666
10667
  const styles$d = {
10667
10668
  taskListRoot,
10668
10669
  taskListHorizontalScroll,
@@ -10672,7 +10673,8 @@
10672
10673
  scrollToTop,
10673
10674
  scrollToBottom,
10674
10675
  hidden,
10675
- disabled: disabled$1
10676
+ disabled: disabled$1,
10677
+ disabledOverlay: disabledOverlay$1
10676
10678
  };
10677
10679
  const checkHasChildren = (task, childTasksMap) => {
10678
10680
  const { id, comparisonLevel = 1 } = task;
@@ -10824,89 +10826,84 @@
10824
10826
  canResizeColumns
10825
10827
  }
10826
10828
  ),
10827
- /* @__PURE__ */ jsxRuntime.jsxs(
10828
- "div",
10829
- {
10830
- className: `${styles$d.tableWrapper} ${isLoading ? styles$d.disabled : ""}`,
10831
- children: [
10832
- /* @__PURE__ */ jsxRuntime.jsx(
10829
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$d.tableWrapper, children: [
10830
+ /* @__PURE__ */ jsxRuntime.jsx(
10831
+ "div",
10832
+ {
10833
+ ref: taskListContainerRef,
10834
+ className: styles$d.horizontalContainer,
10835
+ style: {
10836
+ height: Math.max(
10837
+ ganttHeight - ((tableBottom == null ? void 0 : tableBottom.height) || 0),
10838
+ distances.minimumRowDisplayed * distances.rowHeight
10839
+ ),
10840
+ width: taskListWidth
10841
+ },
10842
+ children: /* @__PURE__ */ jsxRuntime.jsx(
10833
10843
  "div",
10834
10844
  {
10835
- ref: taskListContainerRef,
10836
- className: styles$d.horizontalContainer,
10837
10845
  style: {
10838
10846
  height: Math.max(
10839
- ganttHeight - ((tableBottom == null ? void 0 : tableBottom.height) || 0),
10847
+ ganttFullHeight,
10840
10848
  distances.minimumRowDisplayed * distances.rowHeight
10841
10849
  ),
10842
- width: taskListWidth
10850
+ backgroundSize: `100% ${fullRowHeight * 2}px`,
10851
+ backgroundImage: `linear-gradient(to bottom, transparent ${fullRowHeight}px, #f5f5f5 ${fullRowHeight}px)`
10843
10852
  },
10844
10853
  children: /* @__PURE__ */ jsxRuntime.jsx(
10845
- "div",
10854
+ RenderTaskListTable,
10846
10855
  {
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
- )
10856
+ ganttRef,
10857
+ getTableRowProps,
10858
+ canMoveTasks: canReorderTasks,
10859
+ allowMoveTask: allowReorderTask,
10860
+ childTasksMap,
10861
+ columns,
10862
+ cutIdsMirror,
10863
+ dateSetup,
10864
+ dependencyMap,
10865
+ distances,
10866
+ fullRowHeight,
10867
+ ganttFullHeight,
10868
+ getTaskCurrentState,
10869
+ handleAddTask,
10870
+ handleDeleteTasks,
10871
+ handleEditTask,
10872
+ handleMoveTaskBefore,
10873
+ handleMoveTaskAfter,
10874
+ handleMoveTasksInside,
10875
+ handleOpenContextMenu,
10876
+ icons,
10877
+ isShowTaskNumbers,
10878
+ mapTaskToNestedIndex,
10879
+ onClick,
10880
+ onExpanderClick,
10881
+ renderedIndexes,
10882
+ scrollToTask,
10883
+ selectTaskOnMouseDown,
10884
+ selectedIdsMirror,
10885
+ taskListWidth,
10886
+ tasks
10891
10887
  }
10892
10888
  )
10893
10889
  }
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
10890
  )
10907
- ]
10908
- }
10909
- ),
10891
+ }
10892
+ ),
10893
+ /* @__PURE__ */ jsxRuntime.jsx(
10894
+ "div",
10895
+ {
10896
+ className: `${styles$d.scrollToTop} ${!renderedIndexes || renderedIndexes[2] ? styles$d.hidden : ""}`
10897
+ }
10898
+ ),
10899
+ /* @__PURE__ */ jsxRuntime.jsx(
10900
+ "div",
10901
+ {
10902
+ className: `${styles$d.scrollToBottom} ${!renderedIndexes || renderedIndexes[3] ? styles$d.hidden : ""}`
10903
+ }
10904
+ ),
10905
+ isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$d.disabledOverlay })
10906
+ ] }),
10910
10907
  (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
10908
  ]
10912
10909
  }
@@ -13389,17 +13386,19 @@
13389
13386
  ] });
13390
13387
  };
13391
13388
  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";
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";
13397
13395
  const styles$2 = {
13398
13396
  ganttVerticalContainer,
13399
13397
  horizontalContainer,
13400
13398
  wrapper,
13401
13399
  calendarDragging,
13402
- disabled
13400
+ disabled,
13401
+ disabledOverlay
13403
13402
  };
13404
13403
  const TaskGanttInner = (props) => {
13405
13404
  const {
@@ -13544,41 +13543,44 @@
13544
13543
  children: /* @__PURE__ */ jsxRuntime.jsx(Calendar, { scrollRef: verticalGanttContainerRef, ...calendarProps })
13545
13544
  }
13546
13545
  ),
13547
- /* @__PURE__ */ jsxRuntime.jsx(
13546
+ /* @__PURE__ */ jsxRuntime.jsxs(
13548
13547
  "div",
13549
13548
  {
13550
13549
  ref: horizontalContainerRef,
13551
- className: `${styles$2.horizontalContainer} ${isLoading ? styles$2.disabled : ""}`,
13550
+ className: styles$2.horizontalContainer,
13552
13551
  style: containerStyle,
13553
- children: /* @__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);
13565
- }
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"
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);
13576
13565
  }
13577
- ),
13578
- /* @__PURE__ */ jsxRuntime.jsx(TaskGanttContent, { ...barProps })
13579
- ]
13580
- }
13581
- ) })
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
+ ]
13582
13584
  }
13583
13585
  )
13584
13586
  ]
package/dist/style.css CHANGED
@@ -282,7 +282,7 @@
282
282
  border-bottom: 1px solid var(--gantt-divider-color);
283
283
  table-layout: fixed;
284
284
  }
285
- ._taskListRoot_yadug_1 {
285
+ ._taskListRoot_cyzwo_1 {
286
286
  position: relative;
287
287
  height: 100%;
288
288
  display: flex;
@@ -291,23 +291,23 @@
291
291
  border-left: 1px solid var(--gantt-table-divider-color, var(--gantt-divider-color));
292
292
  }
293
293
 
294
- ._taskListHorizontalScroll_yadug_19 {
294
+ ._taskListHorizontalScroll_cyzwo_19 {
295
295
  overflow-x: scroll;
296
296
  height: 100%;
297
297
  display: flex;
298
298
  flex-direction: column;
299
299
  }
300
300
 
301
- ._taskListHorizontalScroll_yadug_19::-webkit-scrollbar {
301
+ ._taskListHorizontalScroll_cyzwo_19::-webkit-scrollbar {
302
302
  width: 1rem;
303
303
  height: 1rem;
304
304
  }
305
305
 
306
- ._taskListHorizontalScroll_yadug_19::-webkit-scrollbar-corner {
306
+ ._taskListHorizontalScroll_cyzwo_19::-webkit-scrollbar-corner {
307
307
  background: transparent;
308
308
  }
309
309
 
310
- ._taskListHorizontalScroll_yadug_19::-webkit-scrollbar-thumb {
310
+ ._taskListHorizontalScroll_cyzwo_19::-webkit-scrollbar-thumb {
311
311
  border: 4px solid transparent;
312
312
  /*noinspection CssUnresolvedCustomProperty*/
313
313
  background: var(--gantt-scrollbar-thumb-color);
@@ -315,14 +315,14 @@
315
315
  background-clip: padding-box;
316
316
  }
317
317
 
318
- ._taskListHorizontalScroll_yadug_19::-webkit-scrollbar-thumb:hover {
318
+ ._taskListHorizontalScroll_cyzwo_19::-webkit-scrollbar-thumb:hover {
319
319
  border: 2px solid transparent;
320
320
  /*noinspection CssUnresolvedCustomProperty*/
321
321
  background: var(--gantt-scrollbar-thumb-color);
322
322
  background-clip: padding-box;
323
323
  }
324
324
 
325
- ._taskListResizer_yadug_81 {
325
+ ._taskListResizer_cyzwo_81 {
326
326
  position: absolute;
327
327
  top: 0;
328
328
  right: -3px;
@@ -334,16 +334,16 @@
334
334
  }
335
335
 
336
336
  /*noinspection CssUnresolvedCustomProperty*/
337
- ._taskListResizer_yadug_81:hover {
337
+ ._taskListResizer_cyzwo_81:hover {
338
338
  background-color: var(--gantt-table-hover-action-color);
339
339
  filter: var(--gantt-hover-filter);
340
340
  }
341
341
 
342
- ._taskListResizer_yadug_81:hover::before {
342
+ ._taskListResizer_cyzwo_81:hover::before {
343
343
  display: none;
344
344
  }
345
345
 
346
- ._taskListResizer_yadug_81::before {
346
+ ._taskListResizer_cyzwo_81::before {
347
347
  content: "";
348
348
  position: absolute;
349
349
  top: 0;
@@ -354,21 +354,21 @@
354
354
  background-color: var(--gantt-table-resize-color, var(--gantt-divider-color));
355
355
  }
356
356
 
357
- ._horizontalContainer_yadug_145 {
357
+ ._horizontalContainer_cyzwo_145 {
358
358
  margin: 0;
359
359
  padding: 0;
360
360
  overflow: hidden;
361
361
  flex-grow: 1;
362
362
  }
363
363
 
364
- ._tableWrapper_yadug_159 {
364
+ ._tableWrapper_cyzwo_159 {
365
365
  position: relative;
366
366
  flex-grow: 1;
367
367
  display: flex;
368
368
  flex-direction: column;
369
369
  }
370
370
 
371
- ._scrollToTop_yadug_173 {
371
+ ._scrollToTop_cyzwo_173 {
372
372
  position: absolute;
373
373
  top: 0;
374
374
  left: 0;
@@ -376,7 +376,7 @@
376
376
  height: 20px;
377
377
  }
378
378
 
379
- ._scrollToBottom_yadug_189 {
379
+ ._scrollToBottom_cyzwo_189 {
380
380
  position: absolute;
381
381
  bottom: 0;
382
382
  left: 0;
@@ -384,13 +384,23 @@
384
384
  height: 20px;
385
385
  }
386
386
 
387
- ._hidden_yadug_205 {
387
+ ._hidden_cyzwo_205 {
388
388
  display: none;
389
389
  }
390
390
 
391
- ._disabled_yadug_213 {
392
- opacity: 0.6;
391
+ ._disabled_cyzwo_213 {
392
+ position: relative;
393
+ }
394
+
395
+ ._disabledOverlay_cyzwo_221 {
396
+ position: absolute;
397
+ top: 0;
398
+ left: 0;
399
+ right: 0;
400
+ bottom: 0;
401
+ background-color: rgba(255, 255, 255, 0.4);
393
402
  pointer-events: none;
403
+ z-index: 10;
394
404
  }
395
405
  ._ganttToday_1oyhk_1 {
396
406
  z-index: 1;
@@ -583,7 +593,7 @@
583
593
  user-select: none;
584
594
  stroke-width: 0;
585
595
  }
586
- ._ganttVerticalContainer_1czjq_1 {
596
+ ._ganttVerticalContainer_15ld3_1 {
587
597
  overflow-x: scroll;
588
598
  overflow-y: hidden;
589
599
  font-size: 0;
@@ -595,16 +605,16 @@
595
605
  height: 100%;
596
606
  }
597
607
 
598
- ._ganttVerticalContainer_1czjq_1::-webkit-scrollbar {
608
+ ._ganttVerticalContainer_15ld3_1::-webkit-scrollbar {
599
609
  width: 1rem;
600
610
  height: 1rem;
601
611
  }
602
612
 
603
- ._ganttVerticalContainer_1czjq_1::-webkit-scrollbar-corner {
613
+ ._ganttVerticalContainer_15ld3_1::-webkit-scrollbar-corner {
604
614
  background: transparent;
605
615
  }
606
616
 
607
- ._ganttVerticalContainer_1czjq_1::-webkit-scrollbar-thumb {
617
+ ._ganttVerticalContainer_15ld3_1::-webkit-scrollbar-thumb {
608
618
  border: 4px solid transparent;
609
619
  /*noinspection CssUnresolvedCustomProperty*/
610
620
  background: var(--gantt-scrollbar-thumb-color);
@@ -612,20 +622,20 @@
612
622
  background-clip: padding-box;
613
623
  }
614
624
 
615
- ._ganttVerticalContainer_1czjq_1::-webkit-scrollbar-thumb:hover {
625
+ ._ganttVerticalContainer_15ld3_1::-webkit-scrollbar-thumb:hover {
616
626
  border: 2px solid transparent;
617
627
  /*noinspection CssUnresolvedCustomProperty*/
618
628
  background: var(--gantt-scrollbar-thumb-color);
619
629
  background-clip: padding-box;
620
630
  }
621
631
 
622
- ._horizontalContainer_1czjq_73 {
632
+ ._horizontalContainer_15ld3_73 {
623
633
  margin: 0;
624
634
  padding: 0;
625
635
  overflow: hidden;
626
636
  }
627
637
 
628
- ._wrapper_1czjq_85 {
638
+ ._wrapper_15ld3_85 {
629
639
  display: flex;
630
640
  padding: 0;
631
641
  margin: 0;
@@ -637,13 +647,23 @@
637
647
  border-bottom: 1px solid var(--gantt-divider-color);
638
648
  }
639
649
 
640
- ._calendarDragging_1czjq_109 {
650
+ ._calendarDragging_15ld3_109 {
641
651
  cursor: grabbing;
642
652
  }
643
653
 
644
- ._disabled_1czjq_117 {
645
- opacity: 0.6;
654
+ ._disabled_15ld3_117 {
655
+ position: relative;
656
+ }
657
+
658
+ ._disabledOverlay_15ld3_125 {
659
+ position: absolute;
660
+ top: 0;
661
+ left: 0;
662
+ right: 0;
663
+ bottom: 0;
664
+ background-color: rgba(255, 255, 255, 0.4);
646
665
  pointer-events: none;
666
+ z-index: 10;
647
667
  }
648
668
  /*noinspection CssUnresolvedCustomProperty*/
649
669
  ._menuOption_1c3e3_3 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Interactive Gantt Chart for React with TypeScript.",
5
5
  "author": "aguilanbon",
6
6
  "homepage": "https://github.com/aguilanbon/gantt-task-react-v",