@cahyo-dimas/freeday 3.24.0 → 3.25.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
@@ -9,6 +9,46 @@ benar. Perubahan seperti itu ditulis di bawah `### Changed: BREAKING (types)`
9
9
  lama → tipe baru, dan cara menyempitkannya — bukan di bawah `### Added`, betapapun aditifnya dari
10
10
  sisi kit.
11
11
 
12
+ ## [3.25.0] - 2026-11-27
13
+
14
+ **Nilai dari host sampai ke layar, di setiap wrapper Blazor** (`#123`, sisa audit 3.24.0). Wrapper
15
+ yang menyerahkan DOM-nya ke enhancer me-render seed-nya sekali. Selama ini hanya state
16
+ (`Disabled`, `Readonly`, `Invalid`, `Required`) yang didorong sesudahnya, jadi `Value` yang diubah
17
+ host, misalnya tombol "bulan ini" atau formulir yang dimuat ulang, tidak pernah tampil. `FdyCombo`
18
+ satu-satunya yang benar. Diukur sebagai kelas, bukan tiga komponen yang dilaporkan: enam wrapper.
19
+
20
+ ### Added
21
+ - **`setValue(root, value)`** di `FreedayDatepicker`, `FreedayTimepicker`, `FreedayCascade` dan
22
+ `FreedayAutocomplete`, **`FreedayDatepicker.setRange(root, from, to)`** untuk rentang dua picker,
23
+ dan **`FreedayAutocomplete.setOptions(root, labels)`**. Semuanya senyap: tidak ada event
24
+ perubahan, jadi binding yang menyetel nilai tidak mendengarnya kembali sebagai pilihan. Datepicker
25
+ menerima `YYYY-MM-DD`, `YYYY-MM` di mode bulan, dan `"awal/akhir"` di rentang satu kolom.
26
+ `setRange` menautkan ulang batas akhir seperti sesudah memilih. String kosong mengosongkan.
27
+
28
+ ### Fixed
29
+ - **`FdyDatepicker`, `FdyMonthpicker`, `FdyTimepicker`, `FdyCascade`, `FdyAutocomplete` dan
30
+ `FdyDateRange` Blazor mendorong `Value` / `From` / `To` yang berubah sesudah render pertama.**
31
+ Nilai yang dipilih pengguna tidak didorong balik.
32
+ - **`FdyAutocomplete` Blazor mendorong `Options` yang berubah**, dibandingkan menurut isi, jadi host
33
+ yang membuat list baru dengan isi yang sama di setiap render tidak memicu apa pun.
34
+ - **`FdyAutocomplete` Blazor melaporkan teks bebas saat diketik**, sama seperti Vue dan React.
35
+ Sebelumnya hanya pilihan yang sampai ke `ValueChanged`, jadi teks yang tidak cocok dengan saran
36
+ tampil di isian sementara `Value` memegang nilai lama.
37
+ - **Autocomplete jalur mentah membaca opsinya dari daftar setiap kali dipakai.** Opsi yang
38
+ di-render app sesudah init tidak pernah terlihat, dan flag ready menolak init ulang.
39
+
40
+ ### Catatan
41
+ - **`Nodes` `FdyCascade` Blazor belum didorong.** Enhancer cascade menelan `<ul>` seed-nya dan tidak
42
+ punya API untuk mengganti pohonnya; dicatat di `NEXT-UP.md` §1.
43
+ - Diuji: 9 bUnit (`FdyValuePushTests`) dan 3 uji peramban (`browser/set-value.mjs`), semuanya merah
44
+ pada kode lama.
45
+ - **Harness peramban: halaman diserahkan ke uji sesudah fixture-nya termuat** (`browser/harness.mjs`).
46
+ Chrome dibuka dengan fixture sebagai halaman awal, dan soket CDP bisa tersambung saat tab masih
47
+ `about:blank`, yang `readyState`-nya sudah `complete`. `palette-os-dark` gagal begitu di jalanan
48
+ rilis ini: `document.documentElement` terbaca `null` saat dokumen fixture menggantikannya. Tujuh
49
+ spesifikasi menunggu dengan cara yang sama. Balapannya bergantung waktu, jadi tidak bisa dibuktikan
50
+ merah secara deterministik; yang diukur adalah ketujuhnya hijau dan suite penuh hijau sesudahnya.
51
+
12
52
  ## [3.24.0] - 2026-11-27
13
53
 
14
54
  **Satu keadaan, satu pintu.** Audit state machine implisit di kit (dan di app ronda yang memakainya)
package/COMPONENTS.md CHANGED
@@ -140,6 +140,18 @@ the states, `data-fdy-no-icon` drops the trailing icon, and a `<template data-fd
140
140
  replaces it. `readonly` is **not** `disabled`: full contrast, still focusable and copyable, opening
141
141
  is a no-op.
142
142
 
143
+ **A host that renders its markup once sets the value through the enhancer**, silently: no change
144
+ event, so the binding that set it does not hear it back as a pick. `FreedayCombo.setValue(root, v)`,
145
+ `FreedayDatepicker.setValue(root, v)` (`YYYY-MM-DD`, `YYYY-MM` in month mode, `"start/end"` on a
146
+ single-field range), `FreedayDatepicker.setRange(root, from, to)` on a two-picker
147
+ `data-fdy-daterange` root (it relinks the end's minimum as a pick would), `FreedayTimepicker.setValue`,
148
+ `FreedayCascade.setValue`, and `FreedayAutocomplete.setValue(root, text)` with
149
+ `FreedayAutocomplete.setOptions(root, labels)`. An empty string clears. The Blazor wrappers call these
150
+ when a bound `Value`, `From`, `To` or `Options` changes after the first render; before 3.25.0 only
151
+ `FdyCombo` did, and the others kept showing their first value. The autocomplete also reads its
152
+ options from the list each time it uses them, so options an app renders later are filtered like the
153
+ rest.
154
+
143
155
  **State classes** the enhancers set (read them, don't hand-author them): `is-active`,
144
156
  `is-complete`, `is-open`, `is-selected`, `is-highlighted`, `is-filled`, `is-today`, `is-dragover`,
145
157
  `is-leaving`, `is-error`, `is-disabled`, `is-hidden`, `is-visible`, `is-outside`.
package/README.id.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > **Lebih banyak _free day_ buat dev. UI kit-nya sudah siap pakai.**
6
6
 
7
7
  [![Live docs](https://img.shields.io/badge/docs-live-2050d8?style=flat-square)](https://cahyo-dimas.github.io/freeday-ui-kit/)
8
- [![Release](https://img.shields.io/badge/release-v3.24.0-0078d4?style=flat-square)](https://github.com/cahyo-dimas/freeday-ui-kit/tree/v3.24.0)
8
+ [![Release](https://img.shields.io/badge/release-v3.25.0-0078d4?style=flat-square)](https://github.com/cahyo-dimas/freeday-ui-kit/tree/v3.25.0)
9
9
 
10
10
  UI KIT yang token-driven & framework-agnostic. Satu sumber kebenaran untuk warna, tipografi,
11
11
  spasi, dan komponen. Blueprint: `docs/superpowers/specs/2026-07-21-freeday-ui-kit-design.md`.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > **More free days for devs. The UI kit is ready to use.**
6
6
 
7
7
  [![Live docs](https://img.shields.io/badge/docs-live-2050d8?style=flat-square)](https://cahyo-dimas.github.io/freeday-ui-kit/)
8
- [![Release](https://img.shields.io/badge/release-v3.24.0-0078d4?style=flat-square)](https://github.com/cahyo-dimas/freeday-ui-kit/tree/v3.24.0)
8
+ [![Release](https://img.shields.io/badge/release-v3.25.0-0078d4?style=flat-square)](https://github.com/cahyo-dimas/freeday-ui-kit/tree/v3.25.0)
9
9
 
10
10
  A token-driven, framework-agnostic UI kit. One source of truth for color, typography,
11
11
  spacing, and components. Blueprint: `docs/superpowers/specs/2026-07-21-freeday-ui-kit-design.md`.
@@ -7,7 +7,7 @@
7
7
  hydration (ShouldRender => false); the initial value seeds the input. *@
8
8
  <div @ref="Root" data-fdy-autocomplete class="@RootClass" style="@RootStyle">
9
9
  <input @attributes="InputAttributes" class="fdy-input" role="combobox" aria-expanded="false" aria-autocomplete="list"
10
- aria-controls="@_listId" autocomplete="off" value="@Value"
10
+ aria-controls="@_listId" autocomplete="off" value="@Value" @oninput="OnInputAsync"
11
11
  placeholder="@Placeholder" aria-label="@AriaLabel"
12
12
  id="@Id" aria-labelledby="@AriaLabelledby" aria-describedby="@Describedby"
13
13
  disabled="@Disabled" readonly="@Readonly" required="@Required"
@@ -66,9 +66,30 @@ public partial class FdyAutocomplete
66
66
 
67
67
  protected override bool ShouldRender() => !Hydrated;
68
68
 
69
+ /* What the seed shows until hydration, then what was last pushed, typed or picked. The seed is
70
+ rendered once, so Value and Options the host changed afterwards reached nothing (#123). */
71
+ private string? _shownValue;
72
+ private IReadOnlyList<string> _shownOptions = Array.Empty<string>();
73
+
69
74
  protected override async Task OnParametersSetAsync()
70
75
  {
71
- if (!Hydrated) return;
76
+ if (!Hydrated)
77
+ {
78
+ _shownValue = Value;
79
+ _shownOptions = Options;
80
+ return;
81
+ }
82
+ /* Compared by content: a host that rebuilds the same list on every render is not a change. */
83
+ if (!_shownOptions.SequenceEqual(Options))
84
+ {
85
+ _shownOptions = Options;
86
+ await JS.InvokeVoidAsync("FreedayAutocomplete.setOptions", Root, Options);
87
+ }
88
+ if (Value != _shownValue)
89
+ {
90
+ _shownValue = Value;
91
+ await JS.InvokeVoidAsync("FreedayAutocomplete.setValue", Root, Value ?? string.Empty);
92
+ }
72
93
  await JS.InvokeVoidAsync("FreedayAutocomplete.setState", Root,
73
94
  new { disabled = Disabled, @readonly = Readonly, invalid = Invalid, required = Required });
74
95
  }
@@ -78,9 +99,21 @@ public partial class FdyAutocomplete
78
99
  public async Task OnSelect(SelectDetail detail)
79
100
  {
80
101
  Value = detail.Value;
102
+ _shownValue = detail.Value;
81
103
  await ValueChanged.InvokeAsync(detail.Value);
82
104
  }
83
105
 
106
+ /// <summary>Free text, reported as it is typed, the same as the Vue and React components. Only a
107
+ /// pick used to reach <c>ValueChanged</c>, so a typed value that matched no suggestion showed in
108
+ /// the field while <c>Value</c> kept the old one.</summary>
109
+ private async Task OnInputAsync(ChangeEventArgs e)
110
+ {
111
+ string? text = e.Value?.ToString();
112
+ Value = text;
113
+ _shownValue = text;
114
+ await ValueChanged.InvokeAsync(text);
115
+ }
116
+
84
117
  /// <summary>The (DOM-safe) detail of the enhancer's <c>fdy-autocomplete-select</c> event.</summary>
85
118
  public sealed record SelectDetail(string? Value);
86
119
  }
@@ -55,11 +55,24 @@ public partial class FdyCascade
55
55
 
56
56
  protected override bool ShouldRender() => !Hydrated;
57
57
 
58
+ private string? _shownValue;
59
+
58
60
  /* Pushed, not re-rendered: the seed's <ul> is consumed and removed by the enhancer, so this
59
61
  component can never render again. */
60
62
  protected override async Task OnParametersSetAsync()
61
63
  {
62
- if (!Hydrated) return;
64
+ /* What the seed shows until hydration, then what was last pushed or picked. The seed is
65
+ rendered once, so a Value the host changes afterwards reached nothing (#123). */
66
+ if (!Hydrated)
67
+ {
68
+ _shownValue = Value;
69
+ return;
70
+ }
71
+ if (Value != _shownValue)
72
+ {
73
+ _shownValue = Value;
74
+ await JS.InvokeVoidAsync("FreedayCascade.setValue", Root, Value ?? string.Empty);
75
+ }
63
76
  await JS.InvokeVoidAsync("FreedayCascade.setState", Root,
64
77
  new { disabled = Disabled, @readonly = Readonly, invalid = Invalid, required = Required });
65
78
  }
@@ -69,6 +82,7 @@ public partial class FdyCascade
69
82
  public async Task OnChange(ChangeDetail detail)
70
83
  {
71
84
  Value = detail.Value;
85
+ _shownValue = detail.Value;
72
86
  await ValueChanged.InvokeAsync(detail.Value);
73
87
  }
74
88
 
@@ -27,7 +27,7 @@
27
27
  }
28
28
  else
29
29
  {
30
- <div data-fdy-daterange role="group" aria-label="@AriaLabel">
30
+ <div @ref="_splitEl" data-fdy-daterange role="group" aria-label="@AriaLabel">
31
31
  <div @ref="_fromEl" data-fdy-datepicker data-role="from" data-fdy-required="@(Required ? "" : null)"
32
32
  data-value="@From" data-placeholder="@FromPlaceholder" data-min="@Min" data-max="@Max"
33
33
  data-fdy-text-prev-month="@PrevMonthLabel"
@@ -68,6 +68,12 @@ public partial class FdyDateRange
68
68
  private ElementReference _fromEl;
69
69
  private ElementReference _toEl;
70
70
  private ElementReference _singleEl;
71
+ private ElementReference _splitEl;
72
+
73
+ /* What the seed shows until hydration, then what was last pushed or picked. The seed is
74
+ rendered once, so From and To the host changed afterwards reached nothing (#123). */
75
+ private string? _shownFrom;
76
+ private string? _shownTo;
71
77
 
72
78
  /// <summary>"from/to" (ISO 8601 interval), the one <c>data-value</c> the single field reads,
73
79
  /// or null while either end is missing: the field never shows half a range.</summary>
@@ -90,7 +96,21 @@ public partial class FdyDateRange
90
96
 
91
97
  protected override async Task OnParametersSetAsync()
92
98
  {
93
- if (!Hydrated) return;
99
+ if (!Hydrated)
100
+ {
101
+ _shownFrom = From;
102
+ _shownTo = To;
103
+ return;
104
+ }
105
+ if (From != _shownFrom || To != _shownTo)
106
+ {
107
+ _shownFrom = From;
108
+ _shownTo = To;
109
+ if (Layout == FdyDateRangeLayout.Single)
110
+ await JS.InvokeVoidAsync("FreedayDatepicker.setValue", _singleEl, SeedInterval ?? string.Empty);
111
+ else
112
+ await JS.InvokeVoidAsync("FreedayDatepicker.setRange", _splitEl, From ?? string.Empty, To ?? string.Empty);
113
+ }
94
114
  if (Layout == FdyDateRangeLayout.Single)
95
115
  {
96
116
  await JS.InvokeVoidAsync("FreedayDatepicker.setState", _singleEl, new { required = Required });
@@ -107,11 +127,13 @@ public partial class FdyDateRange
107
127
  if (detail.Role == "from")
108
128
  {
109
129
  From = detail.Value;
130
+ _shownFrom = detail.Value;
110
131
  await FromChanged.InvokeAsync(detail.Value);
111
132
  }
112
133
  else if (detail.Role == "to")
113
134
  {
114
135
  To = detail.Value;
136
+ _shownTo = detail.Value;
115
137
  await ToChanged.InvokeAsync(detail.Value);
116
138
  }
117
139
  if (string.IsNullOrEmpty(From) == string.IsNullOrEmpty(To))
@@ -127,6 +149,8 @@ public partial class FdyDateRange
127
149
  {
128
150
  From = detail.From;
129
151
  To = detail.To;
152
+ _shownFrom = detail.From;
153
+ _shownTo = detail.To;
130
154
  await FromChanged.InvokeAsync(detail.From);
131
155
  await ToChanged.InvokeAsync(detail.To);
132
156
  await Settled.InvokeAsync(new SettledRange(From, To));
@@ -89,12 +89,25 @@ public partial class FdyDatepicker
89
89
  // The enhancer owns the built trigger + calendar; never let Blazor re-render the seed.
90
90
  protected override bool ShouldRender() => !Hydrated;
91
91
 
92
+ private string? _shownValue;
93
+
92
94
  /* Which is exactly why the three states are pushed rather than re-rendered: the seed above is
93
95
  written once, so a page that disables this field later would otherwise be ignored in
94
96
  silence. */
95
97
  protected override async Task OnParametersSetAsync()
96
98
  {
97
- if (!Hydrated) return;
99
+ /* What the seed shows until hydration, then what was last pushed or picked. The seed is
100
+ rendered once, so a Value the host changes afterwards reached nothing (#123). */
101
+ if (!Hydrated)
102
+ {
103
+ _shownValue = Value;
104
+ return;
105
+ }
106
+ if (Value != _shownValue)
107
+ {
108
+ _shownValue = Value;
109
+ await JS.InvokeVoidAsync("FreedayDatepicker.setValue", Root, Value ?? string.Empty);
110
+ }
98
111
  await JS.InvokeVoidAsync("FreedayDatepicker.setState", Root,
99
112
  new { disabled = Disabled, @readonly = Readonly, invalid = Invalid, required = Required });
100
113
  }
@@ -104,6 +117,7 @@ public partial class FdyDatepicker
104
117
  public async Task OnChange(ChangeDetail detail)
105
118
  {
106
119
  Value = detail.Value;
120
+ _shownValue = detail.Value;
107
121
  await ValueChanged.InvokeAsync(detail.Value);
108
122
  }
109
123
 
@@ -87,11 +87,24 @@ public partial class FdyMonthpicker
87
87
  // The enhancer owns the built trigger + calendar; never let Blazor re-render the seed.
88
88
  protected override bool ShouldRender() => !Hydrated;
89
89
 
90
+ private string? _shownValue;
91
+
90
92
  /* Which is why the three states are pushed rather than re-rendered: the seed is written once,
91
93
  so a page that disables this field later would otherwise be ignored in silence. */
92
94
  protected override async Task OnParametersSetAsync()
93
95
  {
94
- if (!Hydrated) return;
96
+ /* What the seed shows until hydration, then what was last pushed or picked. The seed is
97
+ rendered once, so a Value the host changes afterwards reached nothing (#123). */
98
+ if (!Hydrated)
99
+ {
100
+ _shownValue = Value;
101
+ return;
102
+ }
103
+ if (Value != _shownValue)
104
+ {
105
+ _shownValue = Value;
106
+ await JS.InvokeVoidAsync("FreedayDatepicker.setValue", Root, Value ?? string.Empty);
107
+ }
95
108
  await JS.InvokeVoidAsync("FreedayDatepicker.setState", Root,
96
109
  new { disabled = Disabled, @readonly = Readonly, invalid = Invalid, required = Required });
97
110
  }
@@ -101,6 +114,7 @@ public partial class FdyMonthpicker
101
114
  public async Task OnChange(ChangeDetail detail)
102
115
  {
103
116
  Value = detail.Value;
117
+ _shownValue = detail.Value;
104
118
  await ValueChanged.InvokeAsync(detail.Value);
105
119
  }
106
120
 
@@ -64,11 +64,24 @@ public partial class FdyTimepicker
64
64
  // The enhancer owns the built trigger + listbox; never let Blazor re-render the seed.
65
65
  protected override bool ShouldRender() => !Hydrated;
66
66
 
67
+ private string? _shownValue;
68
+
67
69
  /* Which is exactly why the three states are pushed rather than re-rendered: the seed above is
68
70
  written once, so a page that disables this field later would otherwise be ignored. */
69
71
  protected override async Task OnParametersSetAsync()
70
72
  {
71
- if (!Hydrated) return;
73
+ /* What the seed shows until hydration, then what was last pushed or picked. The seed is
74
+ rendered once, so a Value the host changes afterwards reached nothing (#123). */
75
+ if (!Hydrated)
76
+ {
77
+ _shownValue = Value;
78
+ return;
79
+ }
80
+ if (Value != _shownValue)
81
+ {
82
+ _shownValue = Value;
83
+ await JS.InvokeVoidAsync("FreedayTimepicker.setValue", Root, Value ?? string.Empty);
84
+ }
72
85
  await JS.InvokeVoidAsync("FreedayTimepicker.setState", Root,
73
86
  new { disabled = Disabled, @readonly = Readonly, invalid = Invalid, required = Required });
74
87
  }
@@ -78,6 +91,7 @@ public partial class FdyTimepicker
78
91
  public async Task OnSelect(SelectDetail detail)
79
92
  {
80
93
  Value = detail.Value;
94
+ _shownValue = detail.Value;
81
95
  await ValueChanged.InvokeAsync(detail.Value);
82
96
  }
83
97
 
@@ -1,7 +1,9 @@
1
1
  /* Freeday, autocomplete enhancer (optional, zero-dependency).
2
2
  * Editable combobox (WAI-ARIA APG): a text input filters a role="listbox" of role="option"
3
3
  * items as you type; select fills the input. Auto-inits [data-fdy-autocomplete]. Options are
4
- * static markup filtered client-side, in an app, fetch/filter server-side and re-render options.
4
+ * markup filtered client-side and read from the list each time they are used, so an app that
5
+ * re-renders them (after a server-side search) is heard without re-initialising. A host that
6
+ * renders once uses FreedayAutocomplete.setOptions(root, labels).
5
7
  *
6
8
  * Markup: <div data-fdy-autocomplete class="fdy-autocomplete">
7
9
  * <input class="fdy-input" role="combobox" aria-expanded="false" aria-autocomplete="list"
@@ -25,19 +27,24 @@
25
27
  root._fdyInvalid = !!input && input.getAttribute('aria-invalid') === 'true';
26
28
  var listbox = root.querySelector('[role="listbox"]');
27
29
  if (!input || !listbox) return;
28
- var options = Array.prototype.slice.call(listbox.querySelectorAll('[role="option"]'));
29
30
  var emptyEl = listbox.querySelector('.fdy-autocomplete__empty');
30
31
  var active = -1;
31
32
 
32
- options.forEach(function (o) {
33
- if (!o.id) { seq += 1; o.id = 'fdy-ac-opt-' + seq; }
34
- o.dataset.label = o.textContent.trim();
35
- });
33
+ /* Read from the list every time, not captured once at init: options rendered later were never
34
+ seen, and the ready flag refused the re-init that would have found them (#123). */
35
+ function allOptions() {
36
+ return Array.prototype.slice.call(listbox.querySelectorAll('[role="option"]')).map(function (o) {
37
+ if (!o.id) { seq += 1; o.id = 'fdy-ac-opt-' + seq; }
38
+ o.dataset.label = o.textContent.trim();
39
+ return o;
40
+ });
41
+ }
42
+ allOptions();
36
43
  listbox.hidden = true;
37
44
  input.setAttribute('aria-expanded', 'false');
38
45
 
39
- function visible() { return options.filter(function (o) { return !o.hidden; }); }
40
- function clearHighlight() { options.forEach(function (o) { o.classList.remove('is-highlighted'); }); }
46
+ function visible() { return allOptions().filter(function (o) { return !o.hidden; }); }
47
+ function clearHighlight() { allOptions().forEach(function (o) { o.classList.remove('is-highlighted'); }); }
41
48
 
42
49
  var _pop = null;
43
50
  function popCtl() { if (_pop === null && window.FreedayPopover) _pop = window.FreedayPopover.attach(listbox, input); return _pop; }
@@ -76,6 +83,7 @@
76
83
  a saved record) is not a query, and filtering by it opened a one-item list that looked broken
77
84
  (#115). Reset on close, so the arrow keys reopen it whole as well. */
78
85
  function showAll() {
86
+ var options = allOptions();
79
87
  options.forEach(function (o) { o.hidden = false; });
80
88
  if (emptyEl) emptyEl.hidden = options.length !== 0;
81
89
  }
@@ -83,7 +91,7 @@
83
91
  function applyFilter() {
84
92
  var q = input.value.trim().toLowerCase();
85
93
  var shown = 0;
86
- options.forEach(function (o) {
94
+ allOptions().forEach(function (o) {
87
95
  var match = !q || o.dataset.label.toLowerCase().indexOf(q) !== -1;
88
96
  o.hidden = !match;
89
97
  if (match) shown++;
@@ -97,7 +105,7 @@
97
105
 
98
106
  function choose(opt) {
99
107
  input.value = opt.dataset.label;
100
- options.forEach(function (o) { o.setAttribute('aria-selected', o === opt ? 'true' : 'false'); });
108
+ allOptions().forEach(function (o) { o.setAttribute('aria-selected', o === opt ? 'true' : 'false'); });
101
109
  close();
102
110
  root.dispatchEvent(new CustomEvent('fdy-autocomplete-select', { bubbles: true, detail: { value: opt.dataset.label, option: opt } }));
103
111
  }
@@ -137,6 +145,27 @@
137
145
  var opt = e.target.closest('[role="option"]');
138
146
  if (opt && !opt.hidden) choose(opt);
139
147
  });
148
+
149
+ /* For a host that renders its markup once (Blazor): the list and the text are pushed in, silently.
150
+ New options are filtered by what is typed if the list is open, and shown whole otherwise. */
151
+ root._fdyAc = {
152
+ setOptions: function (labels) {
153
+ allOptions().forEach(function (o) { o.remove(); });
154
+ (labels || []).forEach(function (label) {
155
+ var li = document.createElement('li');
156
+ li.className = 'fdy-autocomplete__option';
157
+ li.setAttribute('role', 'option');
158
+ li.textContent = label;
159
+ listbox.insertBefore(li, emptyEl);
160
+ });
161
+ allOptions();
162
+ if (listbox.hidden) showAll(); else applyFilter();
163
+ },
164
+ setValue: function (text) {
165
+ input.value = text || '';
166
+ allOptions().forEach(function (o) { o.setAttribute('aria-selected', o.dataset.label === input.value ? 'true' : 'false'); });
167
+ }
168
+ };
140
169
  }
141
170
 
142
171
  function initAll(context) {
@@ -169,5 +198,8 @@
169
198
  if (state.required != null) input.required = !!state.required;
170
199
  }
171
200
 
172
- window.FreedayAutocomplete = { init: initAutocomplete, initAll: initAll, setState: setState };
201
+ function setValue(root, text) { if (root && root._fdyAc) root._fdyAc.setValue(text); }
202
+ function setOptions(root, labels) { if (root && root._fdyAc) root._fdyAc.setOptions(labels); }
203
+
204
+ window.FreedayAutocomplete = { init: initAutocomplete, initAll: initAll, setState: setState, setValue: setValue, setOptions: setOptions };
173
205
  })();
@@ -306,14 +306,18 @@
306
306
  if (li) activate(opts.indexOf(li));
307
307
  });
308
308
 
309
- // Initial display: pre-selected leaf shows its full path, else placeholder.
310
- var initTrail = selectedValue ? pathTo(root, selectedValue, []) : null;
311
- if (initTrail) {
312
- valueSpan.textContent = initTrail.map(function (n) { return n.label; }).join(sep);
313
- } else {
314
- valueSpan.textContent = placeholder;
315
- valueSpan.classList.add('fdy-cascade__value--placeholder');
309
+ // The selected leaf shows its full path, else the placeholder. At init and on setValue alike.
310
+ function showValue() {
311
+ var trail = selectedValue ? pathTo(root, selectedValue, []) : null;
312
+ if (trail) {
313
+ valueSpan.textContent = trail.map(function (n) { return n.label; }).join(sep);
314
+ valueSpan.classList.remove('fdy-cascade__value--placeholder');
315
+ } else {
316
+ valueSpan.textContent = placeholder;
317
+ valueSpan.classList.add('fdy-cascade__value--placeholder');
318
+ }
316
319
  }
320
+ showValue();
317
321
 
318
322
  applyState();
319
323
  applyInvalid();
@@ -322,7 +326,15 @@
322
326
  wrap: wrap,
323
327
  setState: setState,
324
328
  getValue: function () { return selectedValue; },
325
- clear: function () { selectedValue = ''; valueSpan.textContent = placeholder; valueSpan.classList.add('fdy-cascade__value--placeholder'); }
329
+ clear: function () { selectedValue = ''; valueSpan.textContent = placeholder; valueSpan.classList.add('fdy-cascade__value--placeholder'); },
330
+ /* The host's own value, pushed in silently: no fdy-cascade-change, so a binding that set it
331
+ does not hear it back. A render-once host (Blazor) has no other way to change it. */
332
+ setValue: function (next) {
333
+ selectedValue = next || '';
334
+ wrap.setAttribute('data-value', selectedValue);
335
+ showValue();
336
+ if (!panel.hidden) render();
337
+ }
326
338
  };
327
339
  wrap._fdyCascade = api;
328
340
  return api;
@@ -348,6 +360,10 @@
348
360
  setState: function (root, state) {
349
361
  var api = root && root._fdyCascade ? root._fdyCascade : null;
350
362
  if (api && api.setState) api.setState(state);
363
+ },
364
+ setValue: function (root, value) {
365
+ var api = root && root._fdyCascade ? root._fdyCascade : null;
366
+ if (api) api.setValue(value);
351
367
  }
352
368
  };
353
369
  })();
@@ -809,6 +809,22 @@
809
809
  return selected ? (monthOnly ? toISOMonth(selected) : toISO(selected)) : '';
810
810
  },
811
811
  clear: function () { selected = null; selectedEnd = null; updateDisplay(); if (!panel.hidden) render(); },
812
+ /* The host's own value, pushed in silently: no change event, so a binding that set it does
813
+ not hear it back. A render-once host (Blazor) has no other way to change the shown date.
814
+ The single-field range takes "start/end", the form its data-value already has. */
815
+ setValue: function (next) {
816
+ if (rangeMode) {
817
+ var iv = parseInterval(next);
818
+ selected = iv.start;
819
+ selectedEnd = iv.end;
820
+ } else {
821
+ selected = parseVal(next);
822
+ }
823
+ anchor = null;
824
+ preview = null;
825
+ updateDisplay();
826
+ if (!panel.hidden) render();
827
+ },
812
828
  setMin: function (iso) { minDate = parseVal(iso); if (!panel.hidden) render(); },
813
829
  setMax: function (iso) { maxDate = parseVal(iso); if (!panel.hidden) render(); },
814
830
  setRange: function (fromIso, toIso) {
@@ -855,6 +871,15 @@
855
871
  if ((f === '') !== (t === '')) return;
856
872
  root.dispatchEvent(new CustomEvent('fdy-daterange-settled', { bubbles: true, detail: { from: f, to: t } }));
857
873
  }
874
+ /* Both ends from the host at once, then the same linking a pick gets: the end's minimum and the
875
+ band shading. Silent, like each picker's own setValue. */
876
+ root._fdyDr = {
877
+ setRange: function (f, t) {
878
+ fromApi.setValue(f || '');
879
+ toApi.setValue(t || '');
880
+ sync();
881
+ }
882
+ };
858
883
  fromEl.addEventListener('fdy-datepicker-change', function () {
859
884
  var f = fromApi.getValue(), t = toApi.getValue();
860
885
  if (f && t && t < f) clearEnd(toEl, toApi);
@@ -893,6 +918,17 @@
893
918
  setState: function (root, state) {
894
919
  var api = root && root._fdyDp ? root._fdyDp : null;
895
920
  if (api && api.setState) api.setState(state);
921
+ },
922
+ /* A picker's value from the host, silently: `YYYY-MM-DD`, `YYYY-MM` in month mode, or
923
+ "start/end" on a single-field range. */
924
+ setValue: function (root, value) {
925
+ var api = root && root._fdyDp ? root._fdyDp : null;
926
+ if (api) api.setValue(value);
927
+ },
928
+ /* Both ends of a two-picker range (the `data-fdy-daterange` root), relinked as after a pick. */
929
+ setRange: function (root, from, to) {
930
+ var dr = root && root._fdyDr ? root._fdyDr : null;
931
+ if (dr) dr.setRange(from, to);
896
932
  }
897
933
  };
898
934
  })();
@@ -230,7 +230,14 @@
230
230
  wrap: wrap,
231
231
  getValue: function () { return value; },
232
232
  setState: setState,
233
- clear: function () { value = ''; for (var i = 0; i < opts.length; i++) opts[i].setAttribute('aria-selected', 'false'); updateDisplay(); }
233
+ clear: function () { value = ''; for (var i = 0; i < opts.length; i++) opts[i].setAttribute('aria-selected', 'false'); updateDisplay(); },
234
+ /* The host's own value, pushed in silently: no fdy-time-select, so a binding that set it does
235
+ not hear it back. A render-once host (Blazor) has no other way to change the shown time. */
236
+ setValue: function (next) {
237
+ value = norm(next);
238
+ for (var i = 0; i < opts.length; i++) opts[i].setAttribute('aria-selected', opts[i].getAttribute('data-value') === value ? 'true' : 'false');
239
+ updateDisplay();
240
+ }
234
241
  };
235
242
  wrap._fdyTp = api;
236
243
  return api;
@@ -256,6 +263,10 @@
256
263
  setState: function (root, state) {
257
264
  var api = root && root._fdyTp ? root._fdyTp : null;
258
265
  if (api && api.setState) api.setState(state);
266
+ },
267
+ setValue: function (root, value) {
268
+ var api = root && root._fdyTp ? root._fdyTp : null;
269
+ if (api) api.setValue(value);
259
270
  }
260
271
  };
261
272
  })();
package/dist/freeday.js CHANGED
@@ -230,7 +230,9 @@
230
230
  /* Freeday, autocomplete enhancer (optional, zero-dependency).
231
231
  * Editable combobox (WAI-ARIA APG): a text input filters a role="listbox" of role="option"
232
232
  * items as you type; select fills the input. Auto-inits [data-fdy-autocomplete]. Options are
233
- * static markup filtered client-side, in an app, fetch/filter server-side and re-render options.
233
+ * markup filtered client-side and read from the list each time they are used, so an app that
234
+ * re-renders them (after a server-side search) is heard without re-initialising. A host that
235
+ * renders once uses FreedayAutocomplete.setOptions(root, labels).
234
236
  *
235
237
  * Markup: <div data-fdy-autocomplete class="fdy-autocomplete">
236
238
  * <input class="fdy-input" role="combobox" aria-expanded="false" aria-autocomplete="list"
@@ -254,19 +256,24 @@
254
256
  root._fdyInvalid = !!input && input.getAttribute('aria-invalid') === 'true';
255
257
  var listbox = root.querySelector('[role="listbox"]');
256
258
  if (!input || !listbox) return;
257
- var options = Array.prototype.slice.call(listbox.querySelectorAll('[role="option"]'));
258
259
  var emptyEl = listbox.querySelector('.fdy-autocomplete__empty');
259
260
  var active = -1;
260
261
 
261
- options.forEach(function (o) {
262
- if (!o.id) { seq += 1; o.id = 'fdy-ac-opt-' + seq; }
263
- o.dataset.label = o.textContent.trim();
264
- });
262
+ /* Read from the list every time, not captured once at init: options rendered later were never
263
+ seen, and the ready flag refused the re-init that would have found them (#123). */
264
+ function allOptions() {
265
+ return Array.prototype.slice.call(listbox.querySelectorAll('[role="option"]')).map(function (o) {
266
+ if (!o.id) { seq += 1; o.id = 'fdy-ac-opt-' + seq; }
267
+ o.dataset.label = o.textContent.trim();
268
+ return o;
269
+ });
270
+ }
271
+ allOptions();
265
272
  listbox.hidden = true;
266
273
  input.setAttribute('aria-expanded', 'false');
267
274
 
268
- function visible() { return options.filter(function (o) { return !o.hidden; }); }
269
- function clearHighlight() { options.forEach(function (o) { o.classList.remove('is-highlighted'); }); }
275
+ function visible() { return allOptions().filter(function (o) { return !o.hidden; }); }
276
+ function clearHighlight() { allOptions().forEach(function (o) { o.classList.remove('is-highlighted'); }); }
270
277
 
271
278
  var _pop = null;
272
279
  function popCtl() { if (_pop === null && window.FreedayPopover) _pop = window.FreedayPopover.attach(listbox, input); return _pop; }
@@ -305,6 +312,7 @@
305
312
  a saved record) is not a query, and filtering by it opened a one-item list that looked broken
306
313
  (#115). Reset on close, so the arrow keys reopen it whole as well. */
307
314
  function showAll() {
315
+ var options = allOptions();
308
316
  options.forEach(function (o) { o.hidden = false; });
309
317
  if (emptyEl) emptyEl.hidden = options.length !== 0;
310
318
  }
@@ -312,7 +320,7 @@
312
320
  function applyFilter() {
313
321
  var q = input.value.trim().toLowerCase();
314
322
  var shown = 0;
315
- options.forEach(function (o) {
323
+ allOptions().forEach(function (o) {
316
324
  var match = !q || o.dataset.label.toLowerCase().indexOf(q) !== -1;
317
325
  o.hidden = !match;
318
326
  if (match) shown++;
@@ -326,7 +334,7 @@
326
334
 
327
335
  function choose(opt) {
328
336
  input.value = opt.dataset.label;
329
- options.forEach(function (o) { o.setAttribute('aria-selected', o === opt ? 'true' : 'false'); });
337
+ allOptions().forEach(function (o) { o.setAttribute('aria-selected', o === opt ? 'true' : 'false'); });
330
338
  close();
331
339
  root.dispatchEvent(new CustomEvent('fdy-autocomplete-select', { bubbles: true, detail: { value: opt.dataset.label, option: opt } }));
332
340
  }
@@ -366,6 +374,27 @@
366
374
  var opt = e.target.closest('[role="option"]');
367
375
  if (opt && !opt.hidden) choose(opt);
368
376
  });
377
+
378
+ /* For a host that renders its markup once (Blazor): the list and the text are pushed in, silently.
379
+ New options are filtered by what is typed if the list is open, and shown whole otherwise. */
380
+ root._fdyAc = {
381
+ setOptions: function (labels) {
382
+ allOptions().forEach(function (o) { o.remove(); });
383
+ (labels || []).forEach(function (label) {
384
+ var li = document.createElement('li');
385
+ li.className = 'fdy-autocomplete__option';
386
+ li.setAttribute('role', 'option');
387
+ li.textContent = label;
388
+ listbox.insertBefore(li, emptyEl);
389
+ });
390
+ allOptions();
391
+ if (listbox.hidden) showAll(); else applyFilter();
392
+ },
393
+ setValue: function (text) {
394
+ input.value = text || '';
395
+ allOptions().forEach(function (o) { o.setAttribute('aria-selected', o.dataset.label === input.value ? 'true' : 'false'); });
396
+ }
397
+ };
369
398
  }
370
399
 
371
400
  function initAll(context) {
@@ -398,7 +427,10 @@
398
427
  if (state.required != null) input.required = !!state.required;
399
428
  }
400
429
 
401
- window.FreedayAutocomplete = { init: initAutocomplete, initAll: initAll, setState: setState };
430
+ function setValue(root, text) { if (root && root._fdyAc) root._fdyAc.setValue(text); }
431
+ function setOptions(root, labels) { if (root && root._fdyAc) root._fdyAc.setOptions(labels); }
432
+
433
+ window.FreedayAutocomplete = { init: initAutocomplete, initAll: initAll, setState: setState, setValue: setValue, setOptions: setOptions };
402
434
  })();
403
435
 
404
436
  /* Freeday, breakpoint provider (optional, zero-dependency).
@@ -1083,14 +1115,18 @@
1083
1115
  if (li) activate(opts.indexOf(li));
1084
1116
  });
1085
1117
 
1086
- // Initial display: pre-selected leaf shows its full path, else placeholder.
1087
- var initTrail = selectedValue ? pathTo(root, selectedValue, []) : null;
1088
- if (initTrail) {
1089
- valueSpan.textContent = initTrail.map(function (n) { return n.label; }).join(sep);
1090
- } else {
1091
- valueSpan.textContent = placeholder;
1092
- valueSpan.classList.add('fdy-cascade__value--placeholder');
1118
+ // The selected leaf shows its full path, else the placeholder. At init and on setValue alike.
1119
+ function showValue() {
1120
+ var trail = selectedValue ? pathTo(root, selectedValue, []) : null;
1121
+ if (trail) {
1122
+ valueSpan.textContent = trail.map(function (n) { return n.label; }).join(sep);
1123
+ valueSpan.classList.remove('fdy-cascade__value--placeholder');
1124
+ } else {
1125
+ valueSpan.textContent = placeholder;
1126
+ valueSpan.classList.add('fdy-cascade__value--placeholder');
1127
+ }
1093
1128
  }
1129
+ showValue();
1094
1130
 
1095
1131
  applyState();
1096
1132
  applyInvalid();
@@ -1099,7 +1135,15 @@
1099
1135
  wrap: wrap,
1100
1136
  setState: setState,
1101
1137
  getValue: function () { return selectedValue; },
1102
- clear: function () { selectedValue = ''; valueSpan.textContent = placeholder; valueSpan.classList.add('fdy-cascade__value--placeholder'); }
1138
+ clear: function () { selectedValue = ''; valueSpan.textContent = placeholder; valueSpan.classList.add('fdy-cascade__value--placeholder'); },
1139
+ /* The host's own value, pushed in silently: no fdy-cascade-change, so a binding that set it
1140
+ does not hear it back. A render-once host (Blazor) has no other way to change it. */
1141
+ setValue: function (next) {
1142
+ selectedValue = next || '';
1143
+ wrap.setAttribute('data-value', selectedValue);
1144
+ showValue();
1145
+ if (!panel.hidden) render();
1146
+ }
1103
1147
  };
1104
1148
  wrap._fdyCascade = api;
1105
1149
  return api;
@@ -1125,6 +1169,10 @@
1125
1169
  setState: function (root, state) {
1126
1170
  var api = root && root._fdyCascade ? root._fdyCascade : null;
1127
1171
  if (api && api.setState) api.setState(state);
1172
+ },
1173
+ setValue: function (root, value) {
1174
+ var api = root && root._fdyCascade ? root._fdyCascade : null;
1175
+ if (api) api.setValue(value);
1128
1176
  }
1129
1177
  };
1130
1178
  })();
@@ -2968,6 +3016,22 @@
2968
3016
  return selected ? (monthOnly ? toISOMonth(selected) : toISO(selected)) : '';
2969
3017
  },
2970
3018
  clear: function () { selected = null; selectedEnd = null; updateDisplay(); if (!panel.hidden) render(); },
3019
+ /* The host's own value, pushed in silently: no change event, so a binding that set it does
3020
+ not hear it back. A render-once host (Blazor) has no other way to change the shown date.
3021
+ The single-field range takes "start/end", the form its data-value already has. */
3022
+ setValue: function (next) {
3023
+ if (rangeMode) {
3024
+ var iv = parseInterval(next);
3025
+ selected = iv.start;
3026
+ selectedEnd = iv.end;
3027
+ } else {
3028
+ selected = parseVal(next);
3029
+ }
3030
+ anchor = null;
3031
+ preview = null;
3032
+ updateDisplay();
3033
+ if (!panel.hidden) render();
3034
+ },
2971
3035
  setMin: function (iso) { minDate = parseVal(iso); if (!panel.hidden) render(); },
2972
3036
  setMax: function (iso) { maxDate = parseVal(iso); if (!panel.hidden) render(); },
2973
3037
  setRange: function (fromIso, toIso) {
@@ -3014,6 +3078,15 @@
3014
3078
  if ((f === '') !== (t === '')) return;
3015
3079
  root.dispatchEvent(new CustomEvent('fdy-daterange-settled', { bubbles: true, detail: { from: f, to: t } }));
3016
3080
  }
3081
+ /* Both ends from the host at once, then the same linking a pick gets: the end's minimum and the
3082
+ band shading. Silent, like each picker's own setValue. */
3083
+ root._fdyDr = {
3084
+ setRange: function (f, t) {
3085
+ fromApi.setValue(f || '');
3086
+ toApi.setValue(t || '');
3087
+ sync();
3088
+ }
3089
+ };
3017
3090
  fromEl.addEventListener('fdy-datepicker-change', function () {
3018
3091
  var f = fromApi.getValue(), t = toApi.getValue();
3019
3092
  if (f && t && t < f) clearEnd(toEl, toApi);
@@ -3052,6 +3125,17 @@
3052
3125
  setState: function (root, state) {
3053
3126
  var api = root && root._fdyDp ? root._fdyDp : null;
3054
3127
  if (api && api.setState) api.setState(state);
3128
+ },
3129
+ /* A picker's value from the host, silently: `YYYY-MM-DD`, `YYYY-MM` in month mode, or
3130
+ "start/end" on a single-field range. */
3131
+ setValue: function (root, value) {
3132
+ var api = root && root._fdyDp ? root._fdyDp : null;
3133
+ if (api) api.setValue(value);
3134
+ },
3135
+ /* Both ends of a two-picker range (the `data-fdy-daterange` root), relinked as after a pick. */
3136
+ setRange: function (root, from, to) {
3137
+ var dr = root && root._fdyDr ? root._fdyDr : null;
3138
+ if (dr) dr.setRange(from, to);
3055
3139
  }
3056
3140
  };
3057
3141
  })();
@@ -5902,7 +5986,14 @@
5902
5986
  wrap: wrap,
5903
5987
  getValue: function () { return value; },
5904
5988
  setState: setState,
5905
- clear: function () { value = ''; for (var i = 0; i < opts.length; i++) opts[i].setAttribute('aria-selected', 'false'); updateDisplay(); }
5989
+ clear: function () { value = ''; for (var i = 0; i < opts.length; i++) opts[i].setAttribute('aria-selected', 'false'); updateDisplay(); },
5990
+ /* The host's own value, pushed in silently: no fdy-time-select, so a binding that set it does
5991
+ not hear it back. A render-once host (Blazor) has no other way to change the shown time. */
5992
+ setValue: function (next) {
5993
+ value = norm(next);
5994
+ for (var i = 0; i < opts.length; i++) opts[i].setAttribute('aria-selected', opts[i].getAttribute('data-value') === value ? 'true' : 'false');
5995
+ updateDisplay();
5996
+ }
5906
5997
  };
5907
5998
  wrap._fdyTp = api;
5908
5999
  return api;
@@ -5928,6 +6019,10 @@
5928
6019
  setState: function (root, state) {
5929
6020
  var api = root && root._fdyTp ? root._fdyTp : null;
5930
6021
  if (api && api.setState) api.setState(state);
6022
+ },
6023
+ setValue: function (root, value) {
6024
+ var api = root && root._fdyTp ? root._fdyTp : null;
6025
+ if (api) api.setValue(value);
5931
6026
  }
5932
6027
  };
5933
6028
  })();
@@ -198,7 +198,7 @@ live docs also have a copy button per component.
198
198
  ```bash
199
199
  npm i @cahyo-dimas/freeday
200
200
  ```
201
- Lands in `package.json` as `"@cahyo-dimas/freeday": "^3.24.0"` (public npm package). `dist/` is
201
+ Lands in `package.json` as `"@cahyo-dimas/freeday": "^3.25.0"` (public npm package). `dist/` is
202
202
  committed and published → no build step; `npm ci` runs without auth.
203
203
 
204
204
  ### 2. Import the CSS + enhancers **once** in your entry (`src/main.ts`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cahyo-dimas/freeday",
3
- "version": "3.24.0",
3
+ "version": "3.25.0",
4
4
  "description": "Freeday: token-driven, framework-agnostic UI KIT (design source-of-truth).",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -97,7 +97,7 @@
97
97
  "scripts": {
98
98
  "build": "node tokens/build.mjs",
99
99
  "test": "node --test",
100
- "test:browser": "node --test --test-concurrency=3 browser/color-mix.mjs browser/vanilla.mjs browser/adapter.mjs browser/layout.mjs browser/theme.mjs browser/axis-nesting.mjs browser/palette-os-dark.mjs browser/primary-fill.mjs browser/state.mjs browser/root-init.mjs browser/upload-states.mjs browser/number.mjs browser/card-stretch.mjs browser/stretch-warn.mjs browser/hidden-attr.mjs browser/form-grid-rows.mjs browser/theme-pref.mjs browser/text-override.mjs browser/control-heights.mjs browser/field-width.mjs browser/cfl-multi.mjs browser/cfl-dialog-only.mjs browser/crowding.mjs browser/over-dialog.mjs browser/chart-scale.mjs browser/overlay-stack.mjs browser/chart-a11y.mjs browser/app-shell.mjs browser/bottom-nav.mjs browser/actionbar.mjs browser/picker-states.mjs browser/tabs-strip.mjs browser/tabs-vertical.mjs browser/menu-align.mjs browser/cfl-narrow.mjs browser/form-reveal.mjs browser/confirm-search-copy.mjs browser/daterange-settled.mjs browser/daterange-single.mjs browser/child-hydration.mjs browser/tabs-picker.mjs browser/cfl-async.mjs browser/table-process.mjs browser/modal-locked.mjs browser/datepicker-escape.mjs browser/raw-escape-reset.mjs browser/use-load.mjs browser/upload-leftovers.mjs browser/stepper-pending.mjs browser/display-parts.mjs browser/table-empty.mjs browser/table-footer-text.mjs browser/month-mode.mjs browser/monthpicker.mjs browser/page-columns.mjs browser/table-hover.mjs browser/typed-popover.mjs browser/filter-parity.mjs browser/filter-wrap.mjs browser/filter-stack.mjs browser/timepicker.mjs browser/form-kit-required.mjs browser/form-required-rest.mjs browser/autocomplete-open.mjs browser/picker-in-modal.mjs browser/harness-contract.mjs browser/app-owned.mjs browser/sortable.mjs browser/modal-phone.mjs browser/empty-ref.mjs browser/stack-standalone.mjs",
100
+ "test:browser": "node --test --test-concurrency=3 browser/color-mix.mjs browser/vanilla.mjs browser/adapter.mjs browser/layout.mjs browser/theme.mjs browser/axis-nesting.mjs browser/palette-os-dark.mjs browser/primary-fill.mjs browser/state.mjs browser/root-init.mjs browser/upload-states.mjs browser/number.mjs browser/card-stretch.mjs browser/stretch-warn.mjs browser/hidden-attr.mjs browser/form-grid-rows.mjs browser/theme-pref.mjs browser/text-override.mjs browser/control-heights.mjs browser/field-width.mjs browser/cfl-multi.mjs browser/cfl-dialog-only.mjs browser/crowding.mjs browser/over-dialog.mjs browser/chart-scale.mjs browser/overlay-stack.mjs browser/chart-a11y.mjs browser/app-shell.mjs browser/bottom-nav.mjs browser/actionbar.mjs browser/picker-states.mjs browser/tabs-strip.mjs browser/tabs-vertical.mjs browser/menu-align.mjs browser/cfl-narrow.mjs browser/form-reveal.mjs browser/confirm-search-copy.mjs browser/daterange-settled.mjs browser/daterange-single.mjs browser/child-hydration.mjs browser/tabs-picker.mjs browser/cfl-async.mjs browser/table-process.mjs browser/modal-locked.mjs browser/datepicker-escape.mjs browser/raw-escape-reset.mjs browser/use-load.mjs browser/upload-leftovers.mjs browser/stepper-pending.mjs browser/set-value.mjs browser/display-parts.mjs browser/table-empty.mjs browser/table-footer-text.mjs browser/month-mode.mjs browser/monthpicker.mjs browser/page-columns.mjs browser/table-hover.mjs browser/typed-popover.mjs browser/filter-parity.mjs browser/filter-wrap.mjs browser/filter-stack.mjs browser/timepicker.mjs browser/form-kit-required.mjs browser/form-required-rest.mjs browser/autocomplete-open.mjs browser/picker-in-modal.mjs browser/harness-contract.mjs browser/app-owned.mjs browser/sortable.mjs browser/modal-phone.mjs browser/empty-ref.mjs browser/stack-standalone.mjs",
101
101
  "prepack": "node tokens/build.mjs",
102
102
  "version": "node tokens/build.mjs && git add dist",
103
103
  "typecheck:react": "tsc -p adapters/react/tsconfig.json --noEmit",