@yuneta/gobj-ui 7.29.0 → 7.29.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.
@@ -70163,7 +70163,7 @@ var BTN_STYLE_CANCEL = "flex:1;padding:6px;background:var(--bulma-scheme-main-bi
70163
70163
  /************************************************************
70164
70164
  * The buttons of a popover: each one SENDS an input event of
70165
70165
  * this gclass to `gobj`, and the action does the work, where
70166
- * the `machine` trace sees it (V20.5 #4). A button is
70166
+ * the `machine` trace sees it. A button is
70167
70167
  * {i18n, style, event, kw, form}
70168
70168
  * `kw` is the plain identity of what the popover is about
70169
70169
  * (copied per click); `form` names the controls whose `value`
@@ -70158,7 +70158,7 @@ var BTN_STYLE_CANCEL = "flex:1;padding:6px;background:var(--bulma-scheme-main-bi
70158
70158
  /************************************************************
70159
70159
  * The buttons of a popover: each one SENDS an input event of
70160
70160
  * this gclass to `gobj`, and the action does the work, where
70161
- * the `machine` trace sees it (V20.5 #4). A button is
70161
+ * the `machine` trace sees it. A button is
70162
70162
  * {i18n, style, event, kw, form}
70163
70163
  * `kw` is the plain identity of what the popover is about
70164
70164
  * (copied per click); `form` names the controls whose `value`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.29.0",
3
+ "version": "7.29.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/gobj-ui.cjs.js",
@@ -5383,7 +5383,7 @@ const BTN_STYLE_CANCEL =
5383
5383
  /************************************************************
5384
5384
  * The buttons of a popover: each one SENDS an input event of
5385
5385
  * this gclass to `gobj`, and the action does the work, where
5386
- * the `machine` trace sees it (V20.5 #4). A button is
5386
+ * the `machine` trace sees it. A button is
5387
5387
  * {i18n, style, event, kw, form}
5388
5388
  * `kw` is the plain identity of what the popover is about
5389
5389
  * (copied per click); `form` names the controls whose `value`
@@ -74,13 +74,13 @@ function expect_text($el, text)
74
74
  }
75
75
 
76
76
  describe("data is text, not markup", () => {
77
- test("V3.1 #1: an icon cell with a name that fails the check", async () => {
77
+ test("an icon cell with a name that fails the check", async () => {
78
78
  const {icon_formatter} = await import("./c_yui_treedb_topic_with_form.js");
79
79
  const $cell = icon_formatter({getValue: () => EVIL});
80
80
  expect_text($cell, EVIL);
81
81
  });
82
82
 
83
- test("V3.1 #2: the schema editor's select options and textarea value", async () => {
83
+ test("the schema editor's select options and textarea value", async () => {
84
84
  const {select_input, textarea_input} = await import("./c_yui_schema_editor.js");
85
85
  const $select = createElement2(select_input("topic", "x", [EVIL, "ok"]));
86
86
  expect_text($select, EVIL);
@@ -89,7 +89,7 @@ describe("data is text, not markup", () => {
89
89
  expect_text($area, EVIL);
90
90
  });
91
91
 
92
- test("V3.1 #4: the error of a subtree the JSON viewer could not load", async () => {
92
+ test("the error of a subtree the JSON viewer could not load", async () => {
93
93
  const {register_c_yui_json} = await import("./c_yui_json.js");
94
94
  register_c_yui_json();
95
95
  const host = gobj_create("json_text_host", "C_TEST_TEXT_JSON_HOST", {}, yuno);
@@ -105,7 +105,7 @@ describe("data is text, not markup", () => {
105
105
  expect_text($err, EVIL);
106
106
  });
107
107
 
108
- test("V3.1 #5: the shell's toolbar label and dropdown label", async () => {
108
+ test("the shell's toolbar label and dropdown label", async () => {
109
109
  const {register_c_yui_shell} = await import("./c_yui_shell.js");
110
110
  register_c_yui_shell();
111
111
  const config = {
@@ -146,7 +146,7 @@ describe("data is text, not markup", () => {
146
146
  expect_text($sub, EVIL);
147
147
  });
148
148
 
149
- test("V4.2: a topic name in the treedb graph legend", async () => {
149
+ test("a topic name in the treedb graph legend", async () => {
150
150
  const {legend_name_item} = await import("./c_yui_treedb_graph.js");
151
151
  for(const [is_main, hidden] of [[false, false], [true, false], [false, true]]) {
152
152
  const $name = createElement2(legend_name_item(EVIL, is_main, hidden));
@@ -155,7 +155,7 @@ describe("data is text, not markup", () => {
155
155
  }
156
156
  });
157
157
 
158
- test("V4.2: the G6 toolbar escapes what it puts in its markup", async () => {
158
+ test("the G6 toolbar escapes what it puts in its markup", async () => {
159
159
  const {toolbar_item_html} = await import("./c_g6_nodes_tree.js");
160
160
  const items = [
161
161
  {readout: true, text: EVIL, title: EVIL, className: EVIL},
@@ -13,16 +13,16 @@
13
13
  * Enter and Space must do exactly what the click does: they CLICK
14
14
  * the element, and the key stops there, because the graph's
15
15
  * container forwards every keydown to G6. And the click does one
16
- * thing (V20.5 #7): it SENDS an input event of the gclass, with
16
+ * thing: it SENDS an input event of the gclass, with
17
17
  * the plain identity of what the button belongs to; the action
18
18
  * does the work, where the `machine` trace sees it.
19
19
  *
20
20
  * A POINTER press does not take the focus (preventDefault on
21
21
  * pointerdown): a button that took it and was then removed left
22
- * the focus on <body> in Firefox, and the graph deaf (V20.5 #1).
22
+ * the focus on <body> in Firefox, and the graph deaf.
23
23
  *
24
24
  * A DISABLED item says so to the keyboard and to a reader too
25
- * (V20.5 #5, third pass): `aria-disabled` and out of the Tab
25
+ * (third pass): `aria-disabled` and out of the Tab
26
26
  * order, from its first render and through every
27
27
  * disableElements / enableElements; a TOGGLE says its state in
28
28
  * `aria-pressed`; and a rebuild gives the focus back to the same
@@ -26,7 +26,7 @@
26
26
  * - **The detail popover's ✕ is the named, keyed button** of
27
27
  * create_detail_close, and "no fields" carries its key.
28
28
  *
29
- * And from the third pass (V20.5 #4 and #5):
29
+ * And from the third pass:
30
30
  *
31
31
  * - **Every other button of the view is an event too**: the
32
32
  * edit toolbar's create, the cancel / apply / confirm rows of
@@ -847,7 +847,7 @@ describe("the popover button rows are EVENTS (third pass)", () => {
847
847
  * popover open, and is the identity in the kw the selection? A row
848
848
  * only checked through its own buttons never asks either -- the
849
849
  * button exists only while its popover does -- so each is asked here
850
- * with the event sent by hand (V20, a fourth pass: dropping the check
850
+ * with the event sent by hand (a fourth pass: dropping the check
851
851
  * from the edge apply or the port cancel left every test green). */
852
852
  describe("a popover's apply and cancel act only on the popover open (fourth pass)", () => {
853
853
  /* The selection each popover belongs to, made with the popover
@@ -61,7 +61,7 @@ describe("C_YUI_GCLASS header", () => {
61
61
  expect($c.querySelector("img")).toBe(null);
62
62
  });
63
63
 
64
- test("the method chips are text (V3.1 #4)", () => {
64
+ test("the method chips are text", () => {
65
65
  const view = gobj_create("gclass_methods_text", "C_YUI_GCLASS", {
66
66
  description: {id: "C_X", gcflag: [], attrs: [], commands: [],
67
67
  gclass_methods: [EVIL], internal_methods: [EVIL],
@@ -77,7 +77,7 @@ describe("C_YUI_GCLASS header", () => {
77
77
  expect($c.querySelector("img")).toBe(null);
78
78
  });
79
79
 
80
- test("the error of the raw dump is text (V3.1 #4)", () => {
80
+ test("the error of the raw dump is text", () => {
81
81
  const description = {
82
82
  id: "C_X", gcflag: [], attrs: [], commands: [],
83
83
  gclass_methods: [], internal_methods: [],
@@ -22,7 +22,7 @@
22
22
  * one nothing calls by name (an FSM action, a callback) marks what
23
23
  * it hands on. The search runs to a fixpoint, and fails naming the
24
24
  * entry to add;
25
- * - the table is CORRECT (V22): the same search started from no
25
+ * - the table is CORRECT: the same search started from no
26
26
  * table finds every entry, at every position, with the same
27
27
  * `exported` -- an entry nothing forwards to fails;
28
28
  * - a position the table declares the FALLBACK of others
@@ -33,8 +33,8 @@
33
33
  * (CODE_KEY_MODULES), and those are the modules that write one;
34
34
  * - the reader gives up on no value of the library (a chain too
35
35
  * deep, a const that leads back to itself, too many values);
36
- * - a parameter handed on through what no position can name (V22:
37
- * `k.toLowerCase()`, a concatenation, `Object.entries(opts)`, a
36
+ * - a parameter handed on through what no position can name
37
+ * (`k.toLowerCase()`, a concatenation, `Object.entries(opts)`, a
38
38
  * rest parameter walked, `arguments[i]`, an array pattern) fails,
39
39
  * unless it is marked where it is handed;
40
40
  * - THE RULE, per call, in every module: each value a key position
@@ -46,11 +46,11 @@
46
46
  * Anything else fails, naming the file and the line; so does a
47
47
  * translated text -- t("..."), tr(), an alias of t, a string built
48
48
  * from one (`t("k") + ":"`) -- marked or not. A translator handed
49
- * as a callback (V23.5: `keys.map(t)`, `promise.then(t)`) is held
49
+ * as a callback (`keys.map(t)`, `promise.then(t)`) is held
50
50
  * the same way, each element it walks a key position;
51
51
  * - no module hands a TRANSLATED text to any other place a key is
52
52
  * read -- t(), an i18n / code / data-i18n* value, a data-i18n*
53
- * attribute --, marked or not (V24.5.2: up to 7.26.41 only a
53
+ * attribute --, marked or not (up to 7.26.41 only a
54
54
  * marked one failed);
55
55
  * - every marker is one and stands where a key is read; the lists
56
56
  * it names are published by its module or one it imports; the
@@ -58,8 +58,8 @@
58
58
  * included (or a member or an element read from one), whose
59
59
  * every literal is read, and which fails when it holds nothing
60
60
  * but literals (a const not written as one); a `data` marker on
61
- * what the reader follows to keys fails (V21.4.2), and so does
62
- * one that would hide a key (V22: a call mixing keys and data, an
61
+ * what the reader follows to keys fails, and so does
62
+ * one that would hide a key (a call mixing keys and data, an
63
63
  * array of string literals);
64
64
  * - every published list is readable (an `export const` array of
65
65
  * literals), never mutated, lower-case ASCII, has no duplicate
@@ -653,7 +653,7 @@ function with_key_dropped(lists, name, key)
653
653
  * - What a gobj keeps in its `priv` is its own state: a caller hands
654
654
  * the gobj, never what its priv holds. A path through the priv of
655
655
  * a parameter is no position of the function.
656
- * - A parameter handed on through what NO position can name (V22) --
656
+ * - A parameter handed on through what NO position can name --
657
657
  * a key transformed (`k.toLowerCase()`, a concatenation, a template),
658
658
  * an iteration of `Object.entries(opts)`, a rest parameter walked or
659
659
  * read by a computed index, `arguments` --, unmarked, is OPAQUE: the
@@ -1800,13 +1800,13 @@ describe("the published *_I18N_KEYS lists", () => {
1800
1800
  /* ...and with it, the review's repro -- a key dropped from its
1801
1801
  * list -- fails the coverage of that list */
1802
1802
  /* "app" (the route map's root when the app names no brand) is pinned
1803
- * twice since V21.4.1: the marker moved to the call of render_node()
1803
+ * twice since 7.26.29: the marker moved to the call of render_node()
1804
1804
  * follows the `let root` it marks, and the list must hold its label */
1805
1805
  expect(reported("SHELL_ROUTE_MAP_I18N_KEYS", "app")).toBe(false);
1806
1806
  let route_map_refs = scan_of("shell_route_map.js").marker_refs
1807
1807
  .filter((ref) => ref.lists.includes("SHELL_ROUTE_MAP_I18N_KEYS"));
1808
1808
  expect(route_map_refs.flatMap((ref) => ref.keys)).toContain("app");
1809
- /* ...and "this field is required" since V22: field_validation_key()
1809
+ /* ...and "this field is required" since 7.26.32: field_validation_key()
1810
1810
  * returns it OR the json field's own error, and the list marker on
1811
1811
  * the `let key` that holds the call holds that key to its lists */
1812
1812
  expect(reported("C_YUI_FORM_I18N_KEYS", "this field is required")).toBe(false);
@@ -2082,7 +2082,7 @@ describe("what the search for forwarders sees, and what fails it", () => {
2082
2082
  "shell_modals.js yui_shell_show_warning: `exported: false`, and the module exports it",
2083
2083
  expect.stringMatching(/^c_yui_nav\.js no_such_forwarder \[0\]: no hand-off the search finds/)
2084
2084
  ]));
2085
- /* ...as the real table was, before V22: an action label that went
2085
+ /* ...as the real table was, before 7.26.32: an action label that went
2086
2086
  * through a DOM property, a flag that hid an export */
2087
2087
  expect(table_errors(found)).toEqual([]);
2088
2088
  }, SLOW_SCAN_MS);
@@ -515,7 +515,7 @@ describe("an overlay registered while a back() of ours is in flight", () => {
515
515
  });
516
516
  });
517
517
 
518
- describe("a routed shell, a realistic history (V5)", () => {
518
+ describe("a routed shell, a realistic history", () => {
519
519
  test("Back closes a keep_on_navigate panel after a replace navigation", async () => {
520
520
  const app = gobj_create("vapp1", "C_TEST_MARKER_APP", {}, yuno);
521
521
  gobj_start(app);
@@ -659,9 +659,6 @@ describe("a routed shell, a realistic history (V5)", () => {
659
659
  });
660
660
  });
661
661
 
662
- /*
663
- * Sixth check of the review (V6).
664
- */
665
662
  /* The test app declares no route event: what the shell says is what
666
663
  * these tests read. */
667
664
  function shell_warnings()
@@ -669,7 +666,7 @@ function shell_warnings()
669
666
  return errors().filter((m) => m.includes("C_YUI_SHELL"));
670
667
  }
671
668
 
672
- describe("a link is not a Back (V6.1)", () => {
669
+ describe("a link is not a Back", () => {
673
670
  test("a link back to the hash a kept panel was opened on keeps it open", async () => {
674
671
  const app = gobj_create("v6app1", "C_TEST_MARKER_APP", {}, yuno);
675
672
  gobj_start(app);
@@ -748,7 +745,7 @@ describe("a link is not a Back (V6.1)", () => {
748
745
  });
749
746
  });
750
747
 
751
- describe("a route waiting for a back() of ours (V6.2)", () => {
748
+ describe("a route waiting for a back() of ours", () => {
752
749
  test("a newer route replaces the waiting one, and says so", async () => {
753
750
  const app = gobj_create("v6app4", "C_TEST_MARKER_APP", {}, yuno);
754
751
  gobj_start(app);
@@ -848,10 +845,7 @@ describe("a route waiting for a back() of ours (V6.2)", () => {
848
845
  });
849
846
  });
850
847
 
851
- /*
852
- * Seventh check of the review (V7).
853
- */
854
- describe("only the entry stamped for the top overlay is its floor (V7.1, V7.3)", () => {
848
+ describe("only the entry stamped for the top overlay is its floor", () => {
855
849
  test("Forward onto an entry stamped for another overlay does not close the panel", async () => {
856
850
  const app = gobj_create("v7app1", "C_TEST_MARKER_APP", {}, yuno);
857
851
  gobj_start(app);
@@ -935,7 +929,7 @@ describe("only the entry stamped for the top overlay is its floor (V7.1, V7.3)",
935
929
  });
936
930
  });
937
931
 
938
- describe("a back() given up on that lands after all (V7.2)", () => {
932
+ describe("a back() given up on that lands after all", () => {
939
933
  test("its late landing is said out loud", async () => {
940
934
  const app = gobj_create("v7app4", "C_TEST_MARKER_APP", {}, yuno);
941
935
  gobj_start(app);
@@ -964,7 +958,7 @@ describe("a back() given up on that lands after all (V7.2)", () => {
964
958
  });
965
959
  });
966
960
 
967
- describe("V8: the edges of the stamp and of the late landing", () => {
961
+ describe("the edges of the stamp and of the late landing", () => {
968
962
  test("a late back() lands on the marker of an overlay opened during the wait: said too", async () => {
969
963
  const app = gobj_create("v8app1", "C_TEST_MARKER_APP", {}, yuno);
970
964
  gobj_start(app);
@@ -1006,13 +1000,13 @@ describe("V8: the edges of the stamp and of the late landing", () => {
1006
1000
  const entry = yui_shell_register_overlay(shell, () => {});
1007
1001
  expect(session.entries[0].state).toBe(app_state);
1008
1002
  expect(shell_warnings().filter(m => m.includes("not a plain object")).length).toBe(1);
1009
- /* V9.3: no marker, so no Back of the reader's is spent on it. */
1003
+ /* No marker, so no Back of the reader's is spent on it. */
1010
1004
  expect(entry.no_marker).toBe(true);
1011
1005
  expect(session.entries.length).toBe(1);
1012
1006
  });
1013
1007
  });
1014
1008
 
1015
- describe("V9: the warning of a late back() has a window", () => {
1009
+ describe("the warning of a late back() has a window", () => {
1016
1010
  test("a landing on the dead marker long after giving up is the reader's Back: no warning", async () => {
1017
1011
  const app = gobj_create("v9app1", "C_TEST_MARKER_APP", {}, yuno);
1018
1012
  gobj_start(app);