@cardenelabs/cdl 0.60.0 → 0.62.0

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/CHANGELOG.md CHANGED
@@ -5,6 +5,42 @@ CDL (Chainome Diagram Language) の主要変更履歴。
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.62.0] - 2026-09-13
9
+
10
+ ### Changed
11
+
12
+ - **稼働の時系列と在席の状態の字を、図の言語の辞書で描くようにした** (#857)
13
+
14
+ `status-timeline` と `user-presence` は、色を選ぶための状態の語 (`active` / `idle` / `error` と
15
+ `online` / `away` / `offline`) を字にもそのまま使っており、`lang: "ja"` の図でもこの字だけ英語で残っていた。
16
+ 6 つの語を辞書で引き、日本語の図は `稼働` / `待機` / `異常` と `オンライン` / `離席` / `オフライン` を描く。
17
+ 色は変わらず値の綴りで選び、描いた状態の値を `data-cdl-status` / `data-cdl-presence-status` の目印に出す。
18
+ 辞書に無い状態の値は、`status-timeline` は大文字で、`user-presence` はそのまま描く。
19
+
20
+ `status-timeline` の区間の字は、6 字以上を 4 字で切る形をやめ、区間の幅に収まるだけ描く (#851 と同じ理由)。
21
+ 収まらない時は `…` で省き、区間の見出し (`title`) に省く前の字を出す。 英語の図は `active` の区間を幅が
22
+ 足りれば `ACTIVE` と描く (変更前は `ACTI`)。
23
+
24
+ ## [0.61.0] - 2026-09-13
25
+
26
+ ### Added
27
+
28
+ - **選択肢と切り替えの値に見せる名前を書いて、操作部と箱の字をその名前で描けるようにした** (#855)
29
+
30
+ 選択肢を持つ入力欄 (`dropdown` / `radio` / `tabs` / `multi-select`) は選択肢を文字列で受け、1 つの文字列が
31
+ 値と見せる字を兼ねていた。 値を日本語にすると綴りで読む読み出し (信号の灯り等) が読めなくなるので、日本語の
32
+ 図でも選択肢と箱の差し込み (`状態: {status}`) に `red` のような英字が残っていた。
33
+
34
+ 選択肢を `{ value, label }` の組でも書けるようにした (文字列と混ぜて書ける。 型は `CdlInputOption`)。
35
+ 操作部の選択肢は名前を描き、`value` 属性・選んだ時に入る値・`data-cdl-multi-value` は綴りのまま。
36
+ 切り替えは `.input.toggle(id, { onLabel, offLabel })` で入と切の名前を書ける。
37
+
38
+ 箱の題・副題・見出し・値・行の差し込み (`{id}`) は、値が名前を持てば名前を差し込む。 `multi-select` は
39
+ 選んだ値ごとに名前へ置き換える。 状態の値そのものは綴りのまま残すので、表示の出し分け (`visibleIf`)・
40
+ 数の差し込み・読み出しは名前に影響されない。 組み立ての既定値の検査は値で比べ、名前を渡すと拒む。
41
+
42
+ 名前を書かない図は、操作部も箱も変更前と同じ markup を描く。
43
+
8
44
  ## [0.60.0] - 2026-09-13
9
45
 
10
46
  ### Added
@@ -2625,7 +2661,9 @@ Initial OSS release.
2625
2661
  使わない = annotated tag を push しても GitHub Release は作られず、 Release を作っていない版で
2626
2662
  行き止まりになる。
2627
2663
 
2628
- [Unreleased]: https://github.com/cardene777/cdl/compare/v0.60.0...HEAD
2664
+ [Unreleased]: https://github.com/cardene777/cdl/compare/v0.62.0...HEAD
2665
+ [0.62.0]: https://github.com/cardene777/cdl/compare/v0.61.0...v0.62.0
2666
+ [0.61.0]: https://github.com/cardene777/cdl/compare/v0.60.0...v0.61.0
2629
2667
  [0.60.0]: https://github.com/cardene777/cdl/compare/v0.59.1...v0.60.0
2630
2668
  [0.59.1]: https://github.com/cardene777/cdl/compare/v0.59.0...v0.59.1
2631
2669
  [0.59.0]: https://github.com/cardene777/cdl/compare/v0.58.0...v0.59.0