schedulant 2.0.4 → 2.0.5

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.
@@ -3,5 +3,5 @@ export type { SchedulantProps, SchedulantMountArg, PublicSchedulantApi } from '.
3
3
  export type { Event, EventArg, EventMountArg, PublicEventApi, EventMoveMountArg, EventContextMenuArg, EventResizeMountArg, EventContextMenuItems } from './types';
4
4
  export type { Milestone, MilestoneArg, MilestoneStatus, MilestoneMountArg, PublicMilestoneApi, MilestoneMoveMountArg, MilestoneContextMenuArg, MilestoneContextMenuItems } from './types';
5
5
  export type { Checkpoint, CheckpointArg, CheckpointMountArg, PublicCheckpointApi, CheckpointMoveMountArg, CheckpointContextMenuArg, CheckpointContextMenuItems } from './types';
6
- export type { Resource, ResourceLaneArg, ResourceLabelArg, PublicResourceApi, ResourceAreaColumn, ResourceLaneMountArg, ResourceLabelMountArg, ResourceContextMenuItems, ResourceLaneContextMenuArg, ResourceLabelContextMenuArg } from './types';
6
+ export type { Resource, ResourceLaneArg, ResourceLabelArg, PublicResourceApi, ResourceAreaColumn, ResourceLaneMountArg, ResourceLabelMountArg, ResourceLaneMoveMountArg, ResourceContextMenuItems, ResourceLaneContextMenuArg, ResourceLabelContextMenuArg } from './types';
7
7
  export type { TimelineSlotArg, TimelineSlotLaneMountArg, TimelineSlotLabelMountArg } from './types';
@@ -47078,10 +47078,10 @@ class Yj {
47078
47078
  }
47079
47079
  renderTimelineDrawingBoardTable(i, r) {
47080
47080
  const s = (p) => {
47081
- const v = p.getMilestoneApis().length > 0 ? this.schedulantApi.getLineHeight() * 1.5 : this.schedulantApi.getLineHeight(), x = () => {
47081
+ const g = this.schedulantApi.getTimelineApi().getStart(), v = this.schedulantApi.getTimelineApi().getEnd(), C = p.getMilestoneApis().filter((A) => !A.getTime().isBefore(g) && !A.getTime().isAfter(v)).length > 0 ? this.schedulantApi.getLineHeight() * 1.5 : this.schedulantApi.getLineHeight(), T = () => {
47082
47082
  if (this.schedulantApi.isSelectable()) {
47083
- const C = p.getId();
47084
- document.querySelectorAll(".schedulant-resource-selected").forEach((R) => R.classList.remove("schedulant-resource-selected")), document.querySelectorAll(`[data-resource-id="${C}"].schedulant-resource`).forEach((R) => R.classList.add("schedulant-resource-selected"));
47083
+ const A = p.getId();
47084
+ document.querySelectorAll(".schedulant-resource-selected").forEach((N) => N.classList.remove("schedulant-resource-selected")), document.querySelectorAll(`[data-resource-id="${A}"].schedulant-resource`).forEach((N) => N.classList.add("schedulant-resource-selected"));
47085
47085
  }
47086
47086
  };
47087
47087
  return /* @__PURE__ */ oe.jsx("tr", { children: /* @__PURE__ */ oe.jsx(
@@ -47089,8 +47089,8 @@ class Yj {
47089
47089
  {
47090
47090
  "data-resource-id": p.getId(),
47091
47091
  className: "schedulant-timeline-lane schedulant-resource",
47092
- onClick: x,
47093
- children: /* @__PURE__ */ oe.jsxs("div", { className: "schedulant-timeline-lane-frame", style: { height: v }, children: [
47092
+ onClick: T,
47093
+ children: /* @__PURE__ */ oe.jsxs("div", { className: "schedulant-timeline-lane-frame", style: { height: C }, children: [
47094
47094
  this.timelineView.renderLane(),
47095
47095
  /* @__PURE__ */ oe.jsx("div", { className: "schedulant-timeline-lane-bg" }),
47096
47096
  this.timelineView.renderEvents(p, r),
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "license": "MIT",
9
9
  "author": "mengen.dai@outlook.com",
10
- "version": "2.0.4",
10
+ "version": "2.0.5",
11
11
  "main": "dist/schedulant.js",
12
12
  "typings": "dist/schedulant.d.ts",
13
13
  "keywords": [