@yuneta/gobj-ui 7.26.50 → 7.26.52

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
@@ -242,11 +242,36 @@ Published as `@yuneta/gobj-ui`. Built on top of [`@yuneta/gobj-js`](https://gith
242
242
  > pushes runs after it, and the position the URL holds is put back where it
243
243
  > lands. In 7.26.47 and 7.26.48 they stayed, and every logout with an overlay
244
244
  > up left more dead Backs (two per cycle with a question over a panel). The
245
- > entries are known by their Navigation API key (Chromium, Firefox and Safari
246
- > 26.2+); without the API they stay, as in 7.26.48. A page with no next shell
247
- > keeps them until one starts -- with no router on the page a Back over them
248
- > changes nothing on screen anyway --, and a reload keeps them in the tab's
249
- > `sessionStorage` for the first shell of the new load. A `history.back()` of
245
+ > walk stops at the first entry of the reader's, and at the first entry of the
246
+ > current DOCUMENT (7.26.51): a `location.replace()` to another page keeps the
247
+ > key of the entry it replaces, so a later load of the app can sit on the key
248
+ > of a dead marker, over the entries of the load before it, and 7.26.49 went
249
+ > back into them -- that load was loaded again. After a reload every entry is
250
+ > the new load's (`sameDocument`, Chromium and Firefox), and its dead entries
251
+ > go. Dead entries UNDER an entry of the reader's (the reader moved while the
252
+ > login page was up) are taken off when a Back of the reader's lands on them:
253
+ > the shell goes on over them, down to the first live entry, with one
254
+ > `history.go(-n)`; a Forward onto them goes on up to the first live entry
255
+ > over them, or stays where it is when there is none (7.26.51; in 7.26.49 and
256
+ > 7.26.50 they were never taken off: two dead Backs with a question over a
257
+ > panel). The direction comes from the Navigation API's `currententrychange`.
258
+ > **So a shell may move the history by itself, at its start and after a Back
259
+ > or Forward of the reader's** (7.26.49 and 7.26.51): an app with its own
260
+ > `popstate` / `hashchange` listener hears that traversal.
261
+ > The entries are known by their Navigation API key (Chromium, Firefox and
262
+ > Safari 26.2+). **Without the API they stay, as in 7.26.48**: each logout with
263
+ > a question over a panel adds two entries and two dead Backs, and each logout
264
+ > with the preferences up on their action route (`/prefs`, `stay`) leaves the
265
+ > action entry under their marker -- `yui_shell_unpark_route()` rewrites only
266
+ > the entry the URL is on --, so a Back over it opens the preferences again,
267
+ > once per such logout (three logouts: three times; measured in Chromium and
268
+ > Firefox with the API taken away). **A page with no next shell keeps them**
269
+ > -- a login page that stays while the reader presses Back: two dead Backs
270
+ > with a question over a panel, which change nothing on screen since no router
271
+ > is on the page --, and the next shell takes them off. A reload keeps them in
272
+ > the tab's `sessionStorage` for the first shell of the new load (a tab
273
+ > opened from this one starts with a copy, and a key that names none of its
274
+ > entries is dropped). A `history.back()` of
250
275
  > the stopped shell still in flight (an overlay closed by its own control in
251
276
  > the same turn as the stop) is adopted by a shell started before it lands. An
252
277
  > overlay parked on an action route (`redirect: "stay"`) whose `on_close` calls
@@ -873,6 +898,23 @@ with both dict- and array-drill (via `kw_collapse()`): `c_tranger.c` for a
873
898
  A document that arrives with no `__collapsed__` sentinels is simply rendered
874
899
  client-side (no lazy drill).
875
900
 
901
+ **The reading of a time field.** Beside a number under a time key (`t`, `tm`,
902
+ `__t__`, `from_t`, `fr_t`, … — `TIME_FIELDS` in `json_view_helpers.js`, seconds
903
+ or milliseconds) the tree writes the moment in the app's language with a clock
904
+ of 24 hours (`JSON_TIME`):
905
+
906
+ ```text
907
+ "t": 1785312000 29 jul 2026, 10:00:00 (es, Europe/Madrid)
908
+ "t": 1785312000 Jul 29, 2026, 10:00:00 (en)
909
+ ```
910
+
911
+ The viewer subscribes ITSELF to the shell's `EV_LANGUAGE_CHANGED` and draws the
912
+ tree again (7.26.52). Up to 7.26.51 the reading was `toLocaleString()` -- the
913
+ browser's language, and 12 hours in English -- and the language action never
914
+ ran: no host forwarded the event. A language change draws only the tree: the
915
+ text view carries its keys, and the graph is not loaded again (it would lose the
916
+ reader's camera).
917
+
876
918
  Logical DOM classes: `JSON_VIEWER`, `JSON_TOOLBAR`, `JSON_SEARCH`, `JSON_TREE`,
877
919
  `JSON_ROW`, `JSON_KEY`, `JSON_VALUE`, `JSON_SUMMARY`, `JSON_COLLAPSED`,
878
920
  `JSON_TIME`. The gclass imports its own `c_yui_json.css`.
@@ -1123,11 +1165,23 @@ form was opened on.
1123
1165
  **Known limit — the change of hour** (`form_time_value.js`). A
1124
1166
  `datetime-local` holds a local wall time and no offset. The night the clocks
1125
1167
  go back, one hour happens twice: an epoch in its second pass is shown with the
1126
- wall time of the first and read back one hour earlier, so saving that record —
1127
- any field of it — moves a WRITABLE time column holding it by -3600 s. The
1168
+ wall time of the first, and a wall time is read back as the FIRST pass. A time
1169
+ field or cell that still shows what it was filled with gives back the value it
1170
+ was filled from, so saving the record does not move it (7.26.51 for the field,
1171
+ 7.26.49 for the cell; before, a save of any field of the record moved a
1172
+ WRITABLE time column in the second pass by -3600 s). What stays exposed is a
1173
+ wall time TYPED inside the repeated hour: it is taken as the first pass. The
1128
1174
  hour skipped in spring holds no epoch, so nothing read there comes back wrong.
1129
1175
  Read-only time columns never go back, and a time pkey2 goes back as it was.
1130
1176
 
1177
+ ```js
1178
+ // Europe/Madrid. 01:30Z on 2026-10-25 is 02:30 of the SECOND pass.
1179
+ form record: {when: 1792891800, when_s: "2026-10-25T01:30:00.000Z"}
1180
+ box shows: 2026-10-25T02:30 (the browser drops :00 seconds)
1181
+ Save, untouched: {when: 1792891800, when_s: "2026-10-25T01:30:00.000Z"}
1182
+ // up to 7.26.50: {when: 1792888200, when_s: "2026-10-25T00:30:00.000Z"}
1183
+ ```
1184
+
1131
1185
  ```js
1132
1186
  // A host of C_YUI_TREEDB_TOPIC_WITH_FORM that answers the form's writes
1133
1187
  gobj_create_pure_child(name, "C_YUI_TREEDB_TOPIC_WITH_FORM",
@@ -3656,6 +3710,25 @@ new uPlot({width: 600, height: 300, series: [{}, {label: "temperature"}],
3656
3710
  axes: yui_uplot_axes([{}])}, data, $el);
3657
3711
  ```
3658
3712
 
3713
+ **The moments of a time axis are the app's language, 24 hours** (7.26.52).
3714
+ uPlot writes them from templates of its own, in English and 12 hours: `3pm`,
3715
+ `3:05pm`, `10/14` (month first) on the ticks, `2026-10-14 3:05pm` in the
3716
+ legend. `C_YUI_UPLOT` gives it `fmtDate: yui_uplot_fmt_date(() =>
3717
+ i18next.language)` (`yui_uplot_time.js`): the ticks read `15:00`, `15:05`, es
3718
+ `14/10` / en `10/14`, and the legend reads as every other time a view shows
3719
+ (`14 oct 2026, 15:05:09`). It subscribes to the shell's `EV_LANGUAGE_CHANGED`
3720
+ and redraws the axes and the legend. A uPlot built by the app takes the same
3721
+ option:
3722
+
3723
+ ```js
3724
+ import {yui_uplot_fmt_date} from "@yuneta/gobj-ui/src/yui_uplot_time.js";
3725
+
3726
+ new uPlot({..., fmtDate: yui_uplot_fmt_date(() => i18next.language)}, data, $el);
3727
+ // on EV_LANGUAGE_CHANGED: chart.redraw(true, true); chart.setLegend(null, false);
3728
+ ```
3729
+
3730
+ An axis whose host gives its own `values` writes them as the host says.
3731
+
3659
3732
  ### `C_YUI_FORM` — what closing it asks about
3660
3733
 
3661
3734
  `changes` says the form is not what is stored: the reader changed it, or the
@@ -3710,8 +3783,12 @@ second, read and written as the form's own time field is (`form_time_value.js`:
3710
3783
  an epoch in seconds, or an ISO text for a string column). Up to 7.26.45 it was
3711
3784
  Tabulator's `datetime` editor with a luxon `format`, and nothing gives gobj-ui
3712
3785
  luxon: it opened empty and threw when committed. Luxon is not taken in for one
3713
- editor. The cell shows the same local clock, `2026-03-14 09:26:53` (7.26.47+; it
3714
- showed the raw epoch).
3786
+ editor. The cell shows the local clock as text, in the app's language and 24
3787
+ hours -- es `14 mar 2026, 09:26:53`, en `Mar 14, 2026, 09:26:53`, the same
3788
+ text as the time cells of `C_YUI_TREEDB_TOPIC_WITH_FORM` -- and writes it again
3789
+ when the language changes (7.26.52; 7.26.47 to 7.26.51 showed
3790
+ `2026-03-14 09:26:53`, and up to 7.26.46 the raw epoch). See *Dates → A time
3791
+ shown as text*.
3715
3792
 
3716
3793
  A date with a part cleared is not a value. The box answers `""` for it, as for an
3717
3794
  empty box, and only `validity.badInput` tells them apart: Enter leaves the editor
@@ -3735,7 +3812,13 @@ the epoch into a `string` column, and showed no time as January 1970, which a
3735
3812
  save wrote back as `0`. A template field written `"time.writable"` (no real
3736
3813
  type) is an epoch (7.26.49): the template grammar gives such a spec `string`,
3737
3814
  and 7.26.47 read it as an ISO text -- the field showed no time and a save wrote
3738
- `null` over it. Write `"string.time.writable"` for an ISO text.
3815
+ `null` over it. Write `"string.time.writable"` for an ISO text. Like the cell,
3816
+ a field the reader did not change is saved as the record had it (7.26.51): the
3817
+ form keeps the value it filled the box from and the text the box reads back,
3818
+ and a box that still shows that text gives back that value. Up to 7.26.50 a
3819
+ save converted the box again, and a time in the second pass of the hour that
3820
+ repeats in autumn went back -3600 s; a template field too. A load, an undo
3821
+ or a paste fills the box again and keeps the new value; a clear drops it.
3739
3822
 
3740
3823
  A field Save refuses (a required box left empty, a date with a part cleared)
3741
3824
  is outlined AND carries `aria-invalid`, and the line under it is its
@@ -4166,7 +4249,15 @@ run; a shallow clone is not kept, and a file that cannot be read is said and
4166
4249
  read again from git). Up to `7.26.48` that search read every package.json of
4167
4250
  the history again on every round while the range was the current one: on a
4168
4251
  history of 30 000 commits, 1.2 s per round against 0.25 s without it; now the
4169
- first round pays it once. A package.json born with the range in the ROOT of a
4252
+ first round pays it once. They are kept PER PACKAGE (since `7.26.51`): a
4253
+ state is what a package.json says of the package of the round, and up to
4254
+ `7.26.50` the key was the commits alone, so a round of `@yuneta/gobj-js` after
4255
+ one of `@yuneta/gobj-ui` on the same HEAD read the library's states -- and
4256
+ said "already" for an app born with both new ranges whose number had gone out
4257
+ with the runtime's old range (deploying a new bundle under that number), or
4258
+ raised a version for nothing. A file of another format (one of those rounds)
4259
+ is not read, and is written again; the 64 entries used last are kept. A
4260
+ package.json born with the range in the ROOT of a
4170
4261
  history joined to another one (`--allow-unrelated-histories`) is asked of the
4171
4262
  other history, by version, as one born in a commit with parents is. The
4172
4263
  version raised is the package's own, the `"version"` of the top object: up to
@@ -4514,7 +4605,8 @@ This tree asks for "admin" (a root with children and no `label`), for
4514
4605
  **The source is PARSED, never run** (since `7.26.28`, with `acorn`, a
4515
4606
  dependency of this package since `7.26.29`: an app need not declare it). A
4516
4607
  LOCALE is not a source: it is parsed, and then imported, so its top-level code
4517
- runs -- the app's own code, but code. Comments are not code. A key is read
4608
+ runs -- the app's own code, but code, and in a process of its own (since
4609
+ `7.26.51`), so nothing it does reaches the verdict. Comments are not code. A key is read
4518
4610
  where it is WRITTEN -- given to a translator, as an `i18n` or `data-i18n*`
4519
4611
  value of an object literal, by `setAttribute()`, or (since `7.26.29`) written
4520
4612
  as a member, `attrs.i18n = "save"`, `attrs["data-i18n-title"] = "save"` -- and
@@ -4599,7 +4691,11 @@ options). What is followed:
4599
4691
  `comment || "print-tranger failed"` for its fallback;
4600
4692
  - a `const`, to its value, in the scope that declares it (a parameter or a
4601
4693
  `let` of the same name hides it), and what a destructuring reads from it
4602
- (since `7.26.32`: `const {title = "untitled"} = LABELS`);
4694
+ (since `7.26.32`: `const {title = "untitled"} = LABELS`). A default there
4695
+ is asked for only where what it reads can be undefined -- past the end, a
4696
+ hole, a property not written, `undefined`, or a value the reader cannot
4697
+ know (a parameter, a call) -- since `7.26.51`: `const [a = "d0", b = "d1"]
4698
+ = ["x0", "x1"]` asked for "d0" and "d1", which no run of the code reaches;
4603
4699
  - an IMPORT of a const or of a function, into the module it names, when the
4604
4700
  reader reads that module -- a file of the app, a module of this library;
4605
4701
  re-exports are followed (since `7.26.32`). A package (gobj-js, i18next) is
@@ -4632,17 +4728,37 @@ options). What is followed:
4632
4728
  and so do an index past a spread and a computed one (since `7.26.49`; up to
4633
4729
  `7.26.48` only the writes the reader knew -- `X[0] = k`, `.push()`,
4634
4730
  `.reverse()`, `delete`, ... in the array's own scope -- did, and the shapes
4635
- above read the element the source wrote there, not the one the array held);
4731
+ above read the element the source wrote there, not the one the array held).
4732
+ Since `7.26.51` also: `.at()` with no index (element 0) or with more than
4733
+ one argument (the first), an `.at()` of whatever holds an array literal
4734
+ (`ROWS[0].at(1)`, `ROWS.at(0).at(1)`), a `.slice()` read by its index or
4735
+ walked (`const [b] = LABELS.slice(1)`, `LABELS.slice(1)[0]`,
4736
+ `for(const k of LABELS.slice(1))`), and a rest (`const [a, ...others] =
4737
+ LABELS; t(others[0])`) -- up to `7.26.50` all of them read nothing. An array
4738
+ literal written INSIDE another one, or as the value of a property
4739
+ (`[["foto", "CLS", "photo"]]`, `{cols: ["a", "b"]}`), is read by its index
4740
+ as a property of an object is (up to `7.26.50` by every element): no name
4741
+ holds it, and what is written into it after its declaration is not seen
4742
+ (below);
4636
4743
  - an element of a `let` (or `var`) that is only ever given array literals of
4637
4744
  literals and elements that are literals (`L[0] = "k"`, `L.push("k")`):
4638
4745
  every one of them, at any index (`L[1]`, `L.at(1)`, `t(...L)`, a `for...of`,
4639
4746
  `const [a, b] = L`), since `7.26.49`; up to `7.26.48` it was read as nothing.
4640
- A let given anything else is not followed (below);
4747
+ Since `7.26.51` the array literals may also come as the branches of `?:`,
4748
+ `||` and `??`, as `null` / `undefined`, or as a const of one (`let L = c()?
4749
+ ["a"] : ["b"]`, `L = c()? A : null`), and `Object.assign(L, {1: "k"})` gives
4750
+ it its literals; `L.length = n` gives it no element. An element of an
4751
+ element, a part (`L.slice(1)[0]`) and an `.at()` with any index read every
4752
+ one of them too. Up to `7.26.50` each of these read nothing. A let given
4753
+ anything else is not followed (below);
4641
4754
  - the element of a const array literal that a `for...of` walks, or that the
4642
4755
  first parameter of a callback of one of the methods above receives (in the
4643
4756
  same forms, and since `7.26.42` also the callback of `Array.from(ROWS, cb)`,
4644
4757
  of `.findIndex()` and of `Array.prototype.forEach.call(ROWS, cb)`), and what a
4645
- destructuring reads from it (`for(const {key} of ROWS)`);
4758
+ destructuring reads from it (`for(const {key} of ROWS)`; an array
4759
+ destructured, `for(const [id, key] of ROWS)`, `ROWS.map(([id, key]) =>
4760
+ ...)`, since `7.26.51` -- up to `7.26.50` it read nothing) with its default
4761
+ where that can be undefined;
4646
4762
  - `String(x)`, and a template that is only `${x}`, as `x` (since `7.26.29`);
4647
4763
  - a parameter, however it is read (since `7.26.32`): `opts.title`,
4648
4764
  `opts?.title`, `arguments[1]`, `rest[0]` of a rest parameter, a destructuring
@@ -5299,8 +5415,6 @@ reading the page in another language:
5299
5415
  since `7.26.49`), and a spread of a `.slice()` whose bounds are not integers
5300
5416
  written out (`t(...KEYS.slice(i))`): from the spread on, no position is
5301
5417
  known;
5302
- - an element a REST takes from an array (`const [first, ...others] = KEYS;
5303
- t(others[0])`): the reader does not count positions through a rest;
5304
5418
  - a translator handed to a FUNCTION (`{t: t}`, `yui_tabulator_lang(t)`,
5305
5419
  `run(t)`) or to any method but those listed above (`keys.reduce(t)`,
5306
5420
  `keys.sort(t)`, an alias of a method, `Reflect.apply()`): only those
@@ -5330,7 +5444,8 @@ reading the page in another language:
5330
5444
  use (`LIST.push("k")`, `Reflect.set(LIST, 0, "k")`, `fill(LIST)`). The same
5331
5445
  for a `let` of literal arrays, for what is written into it in a way the
5332
5446
  reader does not read (`Reflect.set(L, 0, "k")`, a function it is handed
5333
- to);
5447
+ to), and for an array literal written inside another one, which is read by
5448
+ its index (`ROWS[0][1] = "k"`, `ROWS.forEach((row) => row.push("k"))`);
5334
5449
  - what a module of a package exports (gobj-js, i18next), and an exported
5335
5450
  `let`;
5336
5451
  - in the library's forwarder search, a key stored in a heap object or a DOM
@@ -5411,21 +5526,25 @@ name that does not look like one (`app.js`, a helper that needs a browser to
5411
5526
  load) is said and skipped, as before. The script runs the same when it is
5412
5527
  reached through a symlinked package with `--preserve-symlinks-main` (also from
5413
5528
  `NODE_OPTIONS`): both sides of its "am I the script?" test are resolved. A
5414
- locale is IMPORTED, so its code runs: the script ends itself once what it wrote
5415
- has left, and a timer a locale leaves running does not hold the build (since
5416
- `7.26.46`; up to `7.26.45` it held it for ever, a failing run included). The
5417
- run ends with the code of its own verdict: what a locale writes into
5418
- `process.exitCode` changes nothing, and a `process.exit()` the script did not
5419
- call fails the run, saying so (since `7.26.49`; a locale's
5420
- `setTimeout(() => process.exit(0), 0)` or `process.exitCode = 0` in a timer
5421
- turned a failing run into exit code 0 up to `7.26.45`, and again in `7.26.47`
5422
- and `7.26.48`; a `process.exit(0)` at the top of a locale ended the run with 0
5423
- before anything was checked, in every version). In a browser `process` does not exist, so such a locale is broken in
5424
- the app too. The run waits for a timer of 0 before it ends, so a promise a
5425
- locale rejects at its top or in such a timer, with nothing to handle it, fails
5426
- the run with its stack (since `7.26.47`). A timer of more than 0 ms is not
5427
- waited for -- a `setInterval` would hold the build for ever --, and what it
5428
- does after the verdict, a rejection included, is not seen.
5529
+ locale is IMPORTED, so its code runs -- and since `7.26.51` it runs in a
5530
+ PROCESS OF ITS OWN, which reports what each locale exports (its keys and its
5531
+ endonym, as JSON) and ends with `process.reallyExit(0)` before any timer of a
5532
+ locale is due after the report and before any exit handler of one runs. The
5533
+ run itself executes no code of the app, so it ends with the code of its own
5534
+ verdict, whatever a locale does, and what it writes reaches a pipe whole. Up
5535
+ to `7.26.50` the locales were imported into the run, and a locale could still
5536
+ turn a failing run into exit code 0 -- `process.on("exit", () => {
5537
+ process.exitCode = 0 })`, a `process.reallyExit(0)` at its top or in an exit
5538
+ handler, `process.removeAllListeners("exit")` before a `process.exit(0)` --,
5539
+ or end it with most of a long list still on its way to a pipe; `7.26.49` had
5540
+ closed only the `process.exitCode` and `process.exit()` of a timer. A locale
5541
+ that ends its process before the report -- `process.exit()` or
5542
+ `process.reallyExit()` at its top or in a timer of 0, a signal -- fails the run,
5543
+ saying so; so does one that holds it past 60 s (a loop). A promise a locale
5544
+ rejects, or an exception it throws, with nothing to catch it, at its top or in
5545
+ a timer of 0, fails the run with its stack (since `7.26.47` for a rejection).
5546
+ What a timer of a locale due later, or an exit handler of one, would do is
5547
+ never run: in a browser `process` does not even exist.
5429
5548
 
5430
5549
  Up to `7.26.24` each app carried its own copy, and the copies had drifted into
5431
5550
  three families: only one read the codes of the schema editor, only the other
@@ -5455,6 +5574,8 @@ nothing else should.
5455
5574
  - `epoch_to_local_input` / `local_input_to_epoch` / `fmt_epoch` / `epoch_to_ms`
5456
5575
  / `ms_to_epoch` — every conversion crosses the producer's unit flag
5457
5576
  (`ms`: seconds unless a topic's `system_flag` says milliseconds).
5577
+ - `fmt_date_time(date, locale)` — a moment as a view shows it as text, in the
5578
+ app's language, 24 hours (see *Dates: a time shown as text*).
5458
5579
  - `period_bounds` / `period_shift` / `period_start` / `period_label` /
5459
5580
  `infer_period` / `is_current_period` — the algebra of **periods**.
5460
5581
 
@@ -5508,6 +5629,50 @@ formatting (month names, weekday initials, the parked-bucket label) follows
5508
5629
  i18next's ACTIVE language, not `navigator.language` — the calendar never mixes
5509
5630
  scripts with the UI around it.
5510
5631
 
5632
+ ### Dates: a time shown as text
5633
+
5634
+ **Every time a view shows as text is in the APP's language, with a clock of 24
5635
+ hours** (7.26.52). One function writes it, `fmt_date_time(date, locale)` in
5636
+ `yui_time.js` -- day, short month, year, then hours, minutes and seconds --,
5637
+ and the views pass it `i18next.language`, never `navigator.language`:
5638
+
5639
+ ```js
5640
+ import {fmt_date_time, safe_locale} from "@yuneta/gobj-ui/src/yui_time.js";
5641
+ import i18next from "i18next";
5642
+
5643
+ fmt_date_time(new Date(2026, 9, 14, 15, 5, 9), safe_locale(i18next.language));
5644
+ // es "14 oct 2026, 15:05:09"
5645
+ // en "Oct 14, 2026, 15:05:09" (en-US too: 24 hours, no AM/PM)
5646
+ // midnight "00:00:00", never "24:00:00" (hourCycle "h23", not hour12: false)
5647
+ // not a valid Date -> ""; a locale Intl refuses -> "2026-10-14 15:05:09"
5648
+ ```
5649
+
5650
+ What writes it, and follows the language button (`EV_LANGUAGE_CHANGED`):
5651
+
5652
+ | View | Where | Up to 7.26.51 |
5653
+ |---|---|---|
5654
+ | `C_YUI_TREEDB_TOPIC_WITH_FORM` | the cells of a `time` / `now` column | browser's language, 12 h: `14 oct 2026, 03:05:09 p. m.`; did not change with the app |
5655
+ | `C_YUI_FORM` | the cells of a `time` / `now` column of a table | `2026-10-14 15:05:09` |
5656
+ | `C_YUI_JSON` | the reading beside a time field (`JSON_TIME`) | `toLocaleString()`; never changed |
5657
+ | `C_YUI_UPLOT` | the ticks of a time axis and the legend | uPlot's English, 12 h |
5658
+
5659
+ `time_value_to_text(value, real_type, locale)` (`form_time_value.js`) is the
5660
+ reader of a time COLUMN on top of it (an epoch in seconds, or an ISO text for a
5661
+ `string` column; `""` for no time, a value that is not a time shown as it is),
5662
+ and `format_epoch(value, locale)` (`json_view_helpers.js`) the reader of a
5663
+ number that may be seconds or milliseconds.
5664
+
5665
+ The EDITORS are not text: the form's time field and the cell editor are
5666
+ `datetime-local` boxes, drawn by the browser in the browser's language. In the
5667
+ form, a cell whose editor is open when the language changes is left to it, and
5668
+ written in the new language when it closes. Other times that are deliberately
5669
+ not written this way: the bounds `C_YUI_PERIOD` resolves
5670
+ (`2026-10-14 00:00:00 → 2026-10-14 23:59:59.999`, `fmt_epoch`: the exact range
5671
+ a query will carry, with its milliseconds, under a label that is already in the
5672
+ app's language), and the developer window's traffic (`hh:mm:ss.SSS` of arrival
5673
+ and an ISO `Z` beside a timestamp field, to be matched against the backend's
5674
+ logs).
5675
+
5511
5676
  ### Inputs: a clear (✕) is the norm on free-text fields
5512
5677
 
5513
5678
  Every editable free-text field carries a clear button — a big help on mobile,