gantt-lib 0.80.0 → 0.80.1

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.
package/dist/index.mjs CHANGED
@@ -5428,19 +5428,6 @@ var TaskListRow = React9.memo(
5428
5428
  );
5429
5429
  const isSelectedPredecessor = selectedChip != null && selectedChip.predecessorId === task.id;
5430
5430
  const isSelectedDependencyOwner = selectedChip != null && selectedChip.successorId === task.id;
5431
- const handleDeleteSelected = useCallback4(
5432
- (e) => {
5433
- e.stopPropagation();
5434
- if (!selectedChip) return;
5435
- onRemoveDependency?.(
5436
- selectedChip.successorId,
5437
- selectedChip.predecessorId,
5438
- selectedChip.linkType
5439
- );
5440
- onChipSelect?.(null);
5441
- },
5442
- [selectedChip?.successorId, selectedChip?.predecessorId, selectedChip?.linkType, onRemoveDependency, onChipSelect]
5443
- );
5444
5431
  const startDateISO = toISODate2(normalizedTask.startDate);
5445
5432
  const endDateISO = editingDuration ? getEndDate(normalizedTask.startDate, durationValue) : toISODate2(normalizedTask.endDate);
5446
5433
  const numberCell = /* @__PURE__ */ jsxs9(
@@ -5652,7 +5639,7 @@ var TaskListRow = React9.memo(
5652
5639
  "aria-hidden": "true"
5653
5640
  }
5654
5641
  ),
5655
- !editingName && (onInsertAfter || onDelete || onPromoteTask || onDemoteTask || onUngroupTask || onDuplicateTask || onTasksChange || hasContextMenu) && /* @__PURE__ */ jsxs9("div", { className: "gantt-tl-name-actions", children: [
5642
+ !editingName && (onInsertAfter || onDelete || onPromoteTask || onDemoteTask || onUngroupTask || onDuplicateTask || onTasksChange || hasContextMenu) && /* @__PURE__ */ jsxs9("div", { className: `gantt-tl-name-actions${contextMenuOpen ? " gantt-tl-name-actions-open" : ""}`, children: [
5656
5643
  onInsertAfter && /* @__PURE__ */ jsx12(
5657
5644
  "button",
5658
5645
  {
@@ -6068,22 +6055,7 @@ var TaskListRow = React9.memo(
6068
6055
  }
6069
6056
  ),
6070
6057
  sourcePickerContent
6071
- ] }) : isSelectedPredecessor && !disableDependencyEditing ? (
6072
- /* Full-replacement: "Зависит от [name]" → hover → "Удалить" */
6073
- /* @__PURE__ */ jsxs9(
6074
- "button",
6075
- {
6076
- type: "button",
6077
- className: "gantt-tl-dep-delete-label",
6078
- onClick: handleDeleteSelected,
6079
- "aria-label": "\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0432\u044F\u0437\u044C",
6080
- children: [
6081
- /* @__PURE__ */ jsx12("span", { className: "gantt-tl-dep-delete-label-default", children: "\u0421\u0432\u044F\u0437\u0430\u043D\u043E \u0441" }),
6082
- /* @__PURE__ */ jsx12("span", { className: "gantt-tl-dep-delete-label-hover", children: "\xD7 \u0443\u0434\u0430\u043B\u0438\u0442\u044C" })
6083
- ]
6084
- }
6085
- )
6086
- ) : /* @__PURE__ */ jsxs9(Fragment2, { children: [
6058
+ ] }) : /* @__PURE__ */ jsxs9(Fragment2, { children: [
6087
6059
  chips.length >= 2 ? (
6088
6060
  /* 2+ deps — show only "N связей" summary chip that opens a popover */
6089
6061
  /* @__PURE__ */ jsxs9(Popover, { open: overflowOpen, onOpenChange: setOverflowOpen, children: [