iris-gantt 1.6.1 → 1.6.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.
@@ -26,6 +26,10 @@ These tokens can be used in your format strings:
26
26
  | `HH` | Padded Hour (24h) | 09, 13... |
27
27
  | `mm` | Padded Minutes | 05, 30... |
28
28
 
29
+ ### Literal text
30
+
31
+ Wrap fixed text in square brackets `[...]` so letters are not parsed as tokens. For example, `[Month]-MM` prints the word **Month** plus the padded month number (`Month-04`). Writing `Month-MM` without brackets treats the leading `M` as the month token and produces corrupted output (`4onth-04`).
32
+
29
33
  ---
30
34
 
31
35
  ## Implementation Examples
package/README.md CHANGED
@@ -1,16 +1,17 @@
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`, ...
3
+ ## Version 1.6.2 (Latest)
6
4
 
7
5
  ### 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.
6
+ - **Day view month header** The grouped month row in Day timeline view respects each scale’s `format` in `timelineViewScales` (for example `MMM YYYY`, `[Month]-MM`). Labels are no longer overridden with fixed `Month-0` / `Month-1`-style text.
7
+ - **Literal text in format strings** Plain words that contain token letters (such as `M`) can be wrapped in square brackets so they are not parsed as date tokens. Example: `[Month]-MM` `Month-04` for April; `Month-MM` without brackets incorrectly becomes `4onth-04` because the first `M` is treated as month number. Bracket literals work anywhere `formatDate` is used (including scale `format` fields). See also [Date Formatting Guide](./DATE_FORMATTING_GUIDE.md).
11
8
 
12
9
  A comprehensive, production-ready Gantt chart component built with React and TypeScript. Easy to install, simple to use, fully customizable, and responsive.
13
10
 
11
+ ## Version 1.6.1
12
+
13
+ - Prior release. Use **1.6.2** for the timeline header formatting and bracket-literal behavior described above.
14
+
14
15
  ## 🔖 Version 1.6.0
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tils.d.ts","sourceRoot":"","sources":["../../../src/components/Gantt/utils/dateUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,eAAO,MAAM,SAAS,GAAI,MAAM,IAAI,EAAE,OAAO,MAAM,EAAE,MAAM,KAAK,CAAC,MAAM,CAAC,KAAG,IAyB1E,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,IAAI,EAAE,KAAK,IAAI,KAAG,MAGvD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,IAAI,EAAE,KAAK,IAAI,KAAG,MAGxD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,EAAE,QAAQ,MAAM,KAAG,MAsBvD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,MAAM,IAAI,KAAG,OAGtC,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,MAAM,IAAI,EAAE,UAAU,IAAI,EAAE,KAAG,OAMxD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,MAAM,IAAI,KAAG,IAI1C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,MAAM,IAAI,KAAG,IAIxC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,OAAO,IAAI,EAAE,KAAK,IAAI,EAAE,OAAM,KAAK,CAAC,MAAM,CAAS,KAAG,MAavF,CAAC"}
1
+ {"version":3,"file":"dateUtils.d.ts","sourceRoot":"","sources":["../../../src/components/Gantt/utils/dateUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,eAAO,MAAM,SAAS,GAAI,MAAM,IAAI,EAAE,OAAO,MAAM,EAAE,MAAM,KAAK,CAAC,MAAM,CAAC,KAAG,IAyB1E,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,IAAI,EAAE,KAAK,IAAI,KAAG,MAGvD,CAAC;AAEF,eAAO,MAAM,eAA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