iris-gantt 1.5.9 → 1.6.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/README.md CHANGED
@@ -1,8 +1,27 @@
1
1
  # Iris Gantt
2
2
 
3
+ ## Version 1.6.1 (Latest)
4
+
5
+ In Day view, the top month header is shown with relative labels like `Month 0`, `Month 1`, `Month 2`, ...
6
+
7
+ ### Updated / Changed
8
+ - Day filter now shows a grouped header row above day cells.
9
+ - Month labels in Day view are now relative (`Month 0`, `Month 1`, ...).
10
+ - Timeline examples/docs were updated to reflect this header labeling behavior.
11
+
3
12
  A comprehensive, production-ready Gantt chart component built with React and TypeScript. Easy to install, simple to use, fully customizable, and responsive.
4
13
 
5
- ## 🆕 Version 1.5.9 (Latest)
14
+ ## 🔖 Version 1.6.0
15
+
16
+ ### Bug Fixes
17
+ - **Daily precision for drag/resize in Week and Month views** — Previously, resizing or moving a task bar by fewer than half a unit (e.g., 2 days in Week view) was silently ignored because snapping was tied to the full column unit. Drag operations now calculate movement in **days** regardless of the active view, so even a 1-day resize in Month view is captured and reflected.
18
+ - **Responsive milestone bar width** — Milestone bars no longer use a fixed `80px` min-width that looked oversized with minimal data. They now use a compact `20px` minimum and are **centered on their date point** for zero-duration milestones. Milestones that span a real date range render at their actual computed width.
19
+
20
+ ### Improvements
21
+ - **Milestone centering logic** — Zero-duration milestones (start == end) are now visually centered on their date position in the timeline, instead of extending 80px to the right of their start date.
22
+ - **Smoother drag UX in broader views** — Moving or resizing tasks in Week view snaps to the nearest day (1/7th of cell width) and in Month view to the nearest day (1/30th of cell width), giving users fine-grained control without switching to Day view.
23
+
24
+ ## 🔖 Version 1.5.9
6
25
 
7
26
  ### Bug Fixes
8
27
  - **Accurate task-bar sizing across calendar views** — Task bars now keep the correct real duration when switching between `day`, `week`, and `month` views. A 2-day task will stay visually proportional instead of appearing stretched in broader views.
@@ -1 +1 @@
1
- {"version":3,"file":"DragDrop.d.ts","sourceRoot":"","sources":["../../src/components/Gantt/DragDrop.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGxD,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,IAAI,CAAC;IACnB,UAAU,EAAE,IAAI,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,cAAc,GAAG,SAAS,GAAG,IAAI,CAAC;IACjE,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,SAAS,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAExE,eAAO,MAAM,WAAW,GACtB,OAAO,IAAI,EAAE,EACb,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,EAAE,kBAAkB,KAAK,IAAI,EACtF,cAAa,MAAW,EACxB,OAAM,SAAiB,EACvB,OAAM,MAAU;;8BAcN,MAAM,WACL,MAAM,WACN,MAAM,QACT,MAAM,GAAG,aAAa,GAAG,cAAc,GAAG,SAAS;0BAiBlB,MAAM,WAAW,MAAM,KAAG,IAAI,GAAG,IAAI;iCAyD9B,IAAI,GAAG,IAAI;CAmC5D,CAAC"}
1
+ {"version":3,"file":"DragDrop.d.ts","sourceRoot":"","sources":["../../src/components/Gantt/DragDrop.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGxD,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB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