@yuneta/gobj-ui 7.28.3 → 7.29.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/README.md +18 -18
- package/dist/gobj-ui.cjs.js +5 -5
- package/dist/gobj-ui.es.js +5 -5
- package/package.json +2 -2
- package/scripts/validate-locales.mjs +3 -3
- package/src/c_g6_nodes_tree.js +2 -2
- package/src/c_yui_gobj_tree_js.js +1 -1
- package/src/c_yui_shell.js +2 -2
- package/src/c_yui_treedb_graph.js +1 -1
- package/src/c_yui_treedb_schema.js +1 -1
- package/src/c_yui_treedb_topics.js +1 -1
- package/src/data_as_text.wiring.test.js +1 -2
- package/src/form_close_asks_for_edits.wiring.test.js +2 -2
- package/src/form_json_editor_names.js +1 -1
- package/src/form_json_editor_names.wiring.test.js +1 -1
- package/src/form_table_edits_ask.wiring.test.js +1 -1
- package/src/form_table_validator.wiring.test.js +2 -2
- package/src/form_template_field.wiring.test.js +2 -2
- package/src/g6_canvas_tab_order.wiring.test.js +4 -4
- package/src/g6_long_press_clock.test.js +2 -2
- package/src/g6_nodes_tree_controls.test.js +1 -1
- package/src/g6_nodes_tree_focus.wiring.test.js +1 -1
- package/src/g6_nodes_tree_i18n_keys.test.js +2 -2
- package/src/g6_patches_first_graph.wiring.test.js +1 -1
- package/src/gclass_head_text.wiring.test.js +1 -1
- package/src/gobj_tree_remote.wiring.test.js +2 -2
- package/src/i18n_key_functions.js +3 -3
- package/src/i18n_key_functions.test.js +18 -18
- package/src/lib_graph.css +1 -1
- package/src/lib_maplibre_relocalize.test.js +1 -1
- package/src/modal_guard_back.wiring.test.js +2 -2
- package/src/named_controls.wiring.test.js +8 -8
- package/src/nav_item_badge.wiring.test.js +2 -2
- package/src/route_map_model.test.js +2 -2
- package/src/route_resolver.test.js +9 -9
- package/src/schema_editor_openers.wiring.test.js +1 -2
- package/src/schema_editor_reload.wiring.test.js +4 -4
- package/src/schema_import.js +1 -1
- package/src/schema_import.test.js +3 -3
- package/src/schema_validate.test.js +1 -1
- package/src/selector_from_data.wiring.test.js +1 -1
- package/src/shell_toolbar_helpers.test.js +1 -1
- package/src/table_editor_name.wiring.test.js +2 -2
- package/src/tabulator.css +1 -1
- package/src/tabulator_css.test.js +1 -1
- package/src/treedb_json_drill.wiring.test.js +2 -2
- package/src/treedb_topics_transport.wiring.test.js +1 -1
- package/src/uplot_ink.test.js +1 -1
- package/src/window_layer.wiring.test.js +6 -6
- package/src/yui_asset.test.js +1 -1
- package/src/yui_badge.test.js +1 -1
- package/src/yui_dev.js +2 -2
- package/src/yui_dev_controls.test.js +2 -2
- package/src/yui_dev_copy.test.js +2 -2
- package/src/yui_row_search.test.js +6 -6
- package/src/yui_selector.js +1 -1
- package/src/yui_tab_routes.test.js +5 -5
- package/src/yui_tabulator_i18n.test.js +1 -1
- package/vite-plugin-yuneta-html.js +1 -1
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
* of its key positions, or an exported `<NAME>_I18N_KEYS` list of the
|
|
10
10
|
* module. Anything else -- a key in a `let`, a table, a computed name
|
|
11
11
|
* -- renders raw and never changes language, with the build green.
|
|
12
|
-
* That shipped (
|
|
12
|
+
* That shipped ("expand loaded", "click to load",
|
|
13
13
|
* "please select some row", ...).
|
|
14
14
|
*
|
|
15
15
|
* So, read as syntax trees with the validator's own reader:
|
|
16
16
|
*
|
|
17
17
|
* - the table names functions that exist where it says, with
|
|
18
18
|
* positions it can follow;
|
|
19
|
-
* - the table is COMPLETE
|
|
19
|
+
* - the table is COMPLETE: every function that
|
|
20
20
|
* hands one of its parameters -- or what it reads from one -- to a
|
|
21
21
|
* place a key is read is in it, when something calls it by name;
|
|
22
22
|
* one nothing calls by name (an FSM action, a callback) marks what
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
* marker: no list is an orphan;
|
|
74
74
|
* - every key of every list is PINNED: dropping it from the list
|
|
75
75
|
* fails COVERAGE or the marker check, or the module reads it
|
|
76
|
-
* anyway (
|
|
76
|
+
* anyway (17 keys were pinned by nothing).
|
|
77
77
|
*
|
|
78
78
|
* Copyright (c) 2026, ArtGins.
|
|
79
79
|
* All Rights Reserved.
|
|
@@ -642,7 +642,7 @@ function with_key_dropped(lists, name, key)
|
|
|
642
642
|
* callers give there is a key the validator reads ONLY when the
|
|
643
643
|
* function is in I18N_KEY_FUNCTIONS: up to 7.26.28 39 were not (the
|
|
644
644
|
* review named 17 of them), 6 entries lacked positions, and a literal
|
|
645
|
-
* handed to one would have gone unasked
|
|
645
|
+
* handed to one would have gone unasked.
|
|
646
646
|
*
|
|
647
647
|
* - A forwarder called by NAME -- in its module, or exported -- goes
|
|
648
648
|
* in the table, with that position.
|
|
@@ -1123,12 +1123,12 @@ describe("I18N_KEY_FUNCTIONS: the table", () => {
|
|
|
1123
1123
|
});
|
|
1124
1124
|
});
|
|
1125
1125
|
|
|
1126
|
-
describe("
|
|
1126
|
+
describe("every forwarder is in the table", () => {
|
|
1127
1127
|
test("every function that hands a parameter to a place a key is read, in every module", () => {
|
|
1128
1128
|
expect(forwarders_report(find_forwarders())).toEqual([]);
|
|
1129
1129
|
}, SLOW_SCAN_MS);
|
|
1130
1130
|
|
|
1131
|
-
test("
|
|
1131
|
+
test("the table is CORRECT -- every entry is a hand-off the library shows", () => {
|
|
1132
1132
|
expect(table_errors(find_forwarders(MODULES, ast_of, []).found)).toEqual([]);
|
|
1133
1133
|
}, SLOW_SCAN_MS);
|
|
1134
1134
|
|
|
@@ -1436,7 +1436,7 @@ describe("the reader the rule and the validator share", () => {
|
|
|
1436
1436
|
expect(r.keys.has("a parameter of another function")).toBe(false);
|
|
1437
1437
|
});
|
|
1438
1438
|
|
|
1439
|
-
test("
|
|
1439
|
+
test("a marker on a member or an element of a let follows the let", () => {
|
|
1440
1440
|
let scan = (lines) => scan_ast(parse_source([`export const X_I18N_KEYS = ["in it"];`, ...lines].join("\n")),
|
|
1441
1441
|
{lib_module: "x.js"});
|
|
1442
1442
|
let whys = (r) => r.marker_errors.map((e) => `${e.line}: ${e.why}`);
|
|
@@ -1523,7 +1523,7 @@ describe("the reader the rule and the validator share", () => {
|
|
|
1523
1523
|
});
|
|
1524
1524
|
});
|
|
1525
1525
|
|
|
1526
|
-
describe("
|
|
1526
|
+
describe("the data marker is a claim; DOM is no key; a translated text is no key", () => {
|
|
1527
1527
|
let module = "x.js";
|
|
1528
1528
|
let head = [
|
|
1529
1529
|
`import {yui_shell_show_info, yui_shell_show_modal} from "./shell_modals.js";`,
|
|
@@ -1587,7 +1587,7 @@ describe("REV-CLOUD V21.4.2-3: the data marker is a claim; DOM is no key; a tran
|
|
|
1587
1587
|
});
|
|
1588
1588
|
});
|
|
1589
1589
|
|
|
1590
|
-
describe("
|
|
1590
|
+
describe("a review's repro, on the real module", () => {
|
|
1591
1591
|
let original = readFileSync(join(SRC, "c_yui_treedb_topics.js"), "utf8");
|
|
1592
1592
|
let call = `actions.push(card_action_anchor(\n "TREEDB_CARD_TABLE", "yi-table", "table", fill(routes.table)));`;
|
|
1593
1593
|
|
|
@@ -1623,7 +1623,7 @@ describe("REV-CLOUD V20.5 repro, on the real module", () => {
|
|
|
1623
1623
|
});
|
|
1624
1624
|
});
|
|
1625
1625
|
|
|
1626
|
-
describe("
|
|
1626
|
+
describe("a marker on a let does not let it pass unread", () => {
|
|
1627
1627
|
let original = readFileSync(join(SRC, "c_yui_treedb_topic_with_form.js"), "utf8");
|
|
1628
1628
|
let decl = ` const title = (mode === "create")? "new" : ((mode === "view")? "view" : "edit");`;
|
|
1629
1629
|
let use = ` title: title,`;
|
|
@@ -1776,7 +1776,7 @@ describe("the published *_I18N_KEYS lists", () => {
|
|
|
1776
1776
|
expect(unpinned_keys(all_lists(), COVERAGE)).toEqual([]);
|
|
1777
1777
|
});
|
|
1778
1778
|
|
|
1779
|
-
test("the pin check fails when it should
|
|
1779
|
+
test("the pin check fails when it should", () => {
|
|
1780
1780
|
let lists = all_lists();
|
|
1781
1781
|
|
|
1782
1782
|
/* Without the coverage this round added, the keys the review found
|
|
@@ -1866,7 +1866,7 @@ describe("the published *_I18N_KEYS lists", () => {
|
|
|
1866
1866
|
});
|
|
1867
1867
|
});
|
|
1868
1868
|
|
|
1869
|
-
describe("
|
|
1869
|
+
describe("a COVERAGE source is read the way the validator reads", () => {
|
|
1870
1870
|
let lists = all_lists();
|
|
1871
1871
|
let form = COVERAGE.find((e) => e.list === "C_YUI_FORM_I18N_KEYS");
|
|
1872
1872
|
let route_map = COVERAGE.find((e) => e.list === "SHELL_ROUTE_MAP_I18N_KEYS");
|
|
@@ -1940,7 +1940,7 @@ describe("REV-CLOUD V20 (js3_v lists #2): a COVERAGE source is read the way the
|
|
|
1940
1940
|
});
|
|
1941
1941
|
});
|
|
1942
1942
|
|
|
1943
|
-
describe("
|
|
1943
|
+
describe("a recursive helper is read once, and never hangs the reader", () => {
|
|
1944
1944
|
let module = "x.js";
|
|
1945
1945
|
let head = [`import {yui_shell_show_info} from "./shell_modals.js";`];
|
|
1946
1946
|
let rule = (lines) => rule_report(parse_as([...head, ...lines].join("\n"), module), module);
|
|
@@ -2002,7 +2002,7 @@ describe("REV-CLOUD V22.1: a recursive helper is read once, and never hangs the
|
|
|
2002
2002
|
});
|
|
2003
2003
|
});
|
|
2004
2004
|
|
|
2005
|
-
describe("
|
|
2005
|
+
describe("what the search for forwarders sees, and what fails it", () => {
|
|
2006
2006
|
let module = "x.js";
|
|
2007
2007
|
let found_in = (lines) => {
|
|
2008
2008
|
let ast = parse_as(lines.join("\n"), module);
|
|
@@ -2088,7 +2088,7 @@ describe("REV-CLOUD V22.2: what the search for forwarders sees, and what fails i
|
|
|
2088
2088
|
}, SLOW_SCAN_MS);
|
|
2089
2089
|
});
|
|
2090
2090
|
|
|
2091
|
-
describe("
|
|
2091
|
+
describe("the data marker hides no key; one notion of a translator", () => {
|
|
2092
2092
|
let module = "x.js";
|
|
2093
2093
|
let head = [`import {yui_shell_show_info} from "./shell_modals.js";`,
|
|
2094
2094
|
`import {t as tt} from "i18next";`];
|
|
@@ -2166,7 +2166,7 @@ describe("REV-CLOUD V22.3-4: the data marker hides no key; one notion of a trans
|
|
|
2166
2166
|
.toEqual([`${module}:5 yui_shell_show_info() [1]: k`]);
|
|
2167
2167
|
});
|
|
2168
2168
|
|
|
2169
|
-
test("
|
|
2169
|
+
test("no published list of the library is a let, and none is mutated", () => {
|
|
2170
2170
|
let wrong = [];
|
|
2171
2171
|
for(let module of MODULES) {
|
|
2172
2172
|
let ast = ast_of(module);
|
|
@@ -2183,7 +2183,7 @@ describe("REV-CLOUD V22.3-4: the data marker hides no key; one notion of a trans
|
|
|
2183
2183
|
});
|
|
2184
2184
|
});
|
|
2185
2185
|
|
|
2186
|
-
describe("
|
|
2186
|
+
describe("a translator as a callback, by destructuring; setAttributeNS; t() compositions; aliases", () => {
|
|
2187
2187
|
let module = "x.js";
|
|
2188
2188
|
let head = [`import {yui_shell_show_info} from "./shell_modals.js";`,
|
|
2189
2189
|
`import i18next from "i18next";`];
|
|
@@ -2304,7 +2304,7 @@ describe("REV-CLOUD V23.5: a translator as a callback, by destructuring; setAttr
|
|
|
2304
2304
|
});
|
|
2305
2305
|
});
|
|
2306
2306
|
|
|
2307
|
-
describe("
|
|
2307
|
+
describe("every write counts; a translated text fails unmarked too; the callbacks, exactly; .bind()", () => {
|
|
2308
2308
|
let module = "x.js";
|
|
2309
2309
|
let head = [`import {yui_shell_show_info} from "./shell_modals.js";`,
|
|
2310
2310
|
`import i18next from "i18next";`];
|
package/src/lib_graph.css
CHANGED
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
/* The DOM toolbar's `pressed_state` lives in `yui_toolbar.css` now, and
|
|
475
475
|
* not here: a pressed toggle is a TOOLBAR thing, and while the rule sat
|
|
476
476
|
* in this file it reached an app only if the app mounted a graph -- the
|
|
477
|
-
* stylesheet rides the JS import.
|
|
477
|
+
* stylesheet rides the JS import. One app copied the rule into its
|
|
478
478
|
* own `app.css` under a third name for exactly that reason. The G6
|
|
479
479
|
* plugin toolbar's own item keeps its rule above, where the plugin is. */
|
|
480
480
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* (`Map.Title`, a region a keyboard focuses) and of a default
|
|
8
8
|
* marker (`Marker.Title`). Up to 7.26.34 they stayed in the
|
|
9
9
|
* language the map was built in -- "Mapa" in an English app after
|
|
10
|
-
* a switch
|
|
10
|
+
* a switch. A name an app gave a marker is its
|
|
11
11
|
* own, and is left alone.
|
|
12
12
|
*
|
|
13
13
|
* Copyright (c) 2026, ArtGins.
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* promise, and the modal takes its entry back once the question
|
|
12
12
|
* is over.
|
|
13
13
|
*
|
|
14
|
-
* And what the promise SETTLES with is the answer
|
|
15
|
-
*
|
|
14
|
+
* And what the promise SETTLES with is the answer:
|
|
15
|
+
* `true` closes the modal; anything else -- what a question
|
|
16
16
|
* that closed the modal itself on "yes" settles with, `false`, a
|
|
17
17
|
* rejection -- is the veto it was. Up to 7.26.41 any promise was a
|
|
18
18
|
* veto, so an `async () => true` left a modal nobody could close.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* named_controls.wiring.test.js
|
|
3
3
|
*
|
|
4
|
-
* Controls the library drew without a name
|
|
4
|
+
* Controls the library drew without a name:
|
|
5
5
|
* each carries a `title` AND an `aria-label` now, through t() and
|
|
6
6
|
* with its key where the key is the library's, as every control.
|
|
7
7
|
*
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
* - the ✕ of an option of a Tom Select ("Remove", in English,
|
|
21
21
|
* title only, out of the keyboard's reach);
|
|
22
22
|
* - an item of C_YUI_NAV without a `name`, in every layout: its
|
|
23
|
-
* raw id was its aria-label, with no key and no title
|
|
24
|
-
*
|
|
23
|
+
* raw id was its aria-label, with no key and no title.
|
|
24
|
+
* Its id is its KEY now, or its
|
|
25
25
|
* `aria_label` when it declares one.
|
|
26
26
|
*
|
|
27
27
|
* The real gclasses on a document double; G6 and Tom Select as
|
|
@@ -350,7 +350,7 @@ describe("a link of the site map", () => {
|
|
|
350
350
|
expect($link.getAttribute("aria-current")).toBe(null);
|
|
351
351
|
});
|
|
352
352
|
|
|
353
|
-
/* One rule names an item everywhere
|
|
353
|
+
/* One rule names an item everywhere: up to
|
|
354
354
|
* 7.26.41 a row was labelled `name || wordmark || id || route`, so an
|
|
355
355
|
* entry that declares only an `aria_label` read its id in the map, the
|
|
356
356
|
* language button "ES/EN", a menu's id and a route were asked of the
|
|
@@ -439,13 +439,13 @@ describe("the links of a nav", () => {
|
|
|
439
439
|
{id: "i", icon: "yi-eye", route: "/i"}
|
|
440
440
|
]);
|
|
441
441
|
expect_named($c.querySelector('a[data-item-id="b"]'), "devices");
|
|
442
|
-
/* Its id, AS A KEY
|
|
442
|
+
/* Its id, AS A KEY: up to 7.26.41 the raw
|
|
443
443
|
* id was its aria-label, with no key and no title. */
|
|
444
444
|
expect_named($c.querySelector('a[data-item-id="i"]'), "i");
|
|
445
445
|
});
|
|
446
446
|
|
|
447
|
-
/* The same in every layout that draws an item
|
|
448
|
-
* c_yui_nav.js item_li, item_iconbar, the tabs, and the cards of
|
|
447
|
+
/* The same in every layout that draws an item
|
|
448
|
+
* (c_yui_nav.js item_li, item_iconbar, the tabs, and the cards of
|
|
449
449
|
* nav_cards_helpers.js). */
|
|
450
450
|
for(const layout of ["vertical", "icon-bar", "tabs", "cards", "breadcrumb"]) {
|
|
451
451
|
test(`an item without a \`name\` (${layout}): named by its id as a key, or by its \`aria_label\``, () => {
|
|
@@ -531,7 +531,7 @@ describe("the links of a nav", () => {
|
|
|
531
531
|
});
|
|
532
532
|
});
|
|
533
533
|
|
|
534
|
-
describe("the items of the toolbar: what the nav got
|
|
534
|
+
describe("the items of the toolbar: what the nav got", () => {
|
|
535
535
|
/* A shell whose toolbar is `items`, on the page. */
|
|
536
536
|
function toolbar_shell(items)
|
|
537
537
|
{
|
|
@@ -626,7 +626,7 @@ describe("the toolbar badge takes a tone too", () => {
|
|
|
626
626
|
});
|
|
627
627
|
|
|
628
628
|
/*
|
|
629
|
-
*
|
|
629
|
+
* What a READER gets. Up to 7.26.34 the badge was its
|
|
630
630
|
* own live region: the count was never part of the item's name, the
|
|
631
631
|
* region said a bare number, it was hidden while empty (so 0 -> 1 was
|
|
632
632
|
* most likely never said), and inside a <button> (the toolbar, an
|
|
@@ -769,7 +769,7 @@ describe("a reader gets the count with the name of what it counts", () => {
|
|
|
769
769
|
});
|
|
770
770
|
});
|
|
771
771
|
|
|
772
|
-
describe("
|
|
772
|
+
describe("every change is said, as it reads", () => {
|
|
773
773
|
async function english(extra)
|
|
774
774
|
{
|
|
775
775
|
const i18next = (await import("i18next")).default;
|
|
@@ -11,7 +11,7 @@ import { build_nav_map } from "./route_map_model.js";
|
|
|
11
11
|
|
|
12
12
|
const view = (gclass) => ({ stage: "main", gclass: gclass });
|
|
13
13
|
|
|
14
|
-
/* A config + index shaped like a small
|
|
14
|
+
/* A config + index shaped like a small application:
|
|
15
15
|
* toolbar (brand + account dropdown), a primary menu with a submenu,
|
|
16
16
|
* a second menu, and a route table with URL-only routes. */
|
|
17
17
|
function make_input(extra)
|
|
@@ -280,7 +280,7 @@ test("'you are here' lands on the owner, never on a reference", () => {
|
|
|
280
280
|
|
|
281
281
|
|
|
282
282
|
/***************************************************************
|
|
283
|
-
* one rule names an item everywhere
|
|
283
|
+
* one rule names an item everywhere
|
|
284
284
|
*
|
|
285
285
|
* A row of the map is labelled as its CONTROL is named: a menu
|
|
286
286
|
* entry as the nav names it (c_yui_nav.js: `name`, else
|
|
@@ -13,11 +13,11 @@ import { resolve_route, normalize_route } from "./route_resolver.js";
|
|
|
13
13
|
function make_index() {
|
|
14
14
|
const view = (gclass) => ({ stage: "main", gclass: gclass });
|
|
15
15
|
return {
|
|
16
|
-
"/": { item: null, target: view("
|
|
17
|
-
"/monitoring/realtime": { item: null, target: view("
|
|
16
|
+
"/": { item: null, target: view("C_APP_VIEW") },
|
|
17
|
+
"/monitoring/realtime": { item: null, target: view("C_APP_MONITORING") },
|
|
18
18
|
"/system": { item: { submenu: { items: [] } }, target: null },
|
|
19
|
-
"/system/db/
|
|
20
|
-
"/user/preference": { item: null, target: view("
|
|
19
|
+
"/system/db/myapp": { item: null, target: view("C_APP_TREEDB") },
|
|
20
|
+
"/user/preference": { item: null, target: view("C_APP_PREFERENCES") },
|
|
21
21
|
"/user/logout": { item: null, target: { kind: "action", event: "EV_LOGOUT" } },
|
|
22
22
|
};
|
|
23
23
|
}
|
|
@@ -29,26 +29,26 @@ describe("resolve_route", () => {
|
|
|
29
29
|
const r = resolve_route(idx, "/monitoring/realtime");
|
|
30
30
|
expect(r.matched_route).toBe("/monitoring/realtime");
|
|
31
31
|
expect(r.subpath).toBe("");
|
|
32
|
-
expect(r.entry.target.gclass).toBe("
|
|
32
|
+
expect(r.entry.target.gclass).toBe("C_APP_MONITORING");
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
test("exact root '/' matches exactly (not via walk)", () => {
|
|
36
36
|
const r = resolve_route(idx, "/");
|
|
37
37
|
expect(r.matched_route).toBe("/");
|
|
38
38
|
expect(r.subpath).toBe("");
|
|
39
|
-
expect(r.entry.target.gclass).toBe("
|
|
39
|
+
expect(r.entry.target.gclass).toBe("C_APP_VIEW");
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
test("3rd level → nearest declared ancestor + subpath", () => {
|
|
43
43
|
const r = resolve_route(idx, "/user/preference/language");
|
|
44
44
|
expect(r.matched_route).toBe("/user/preference");
|
|
45
45
|
expect(r.subpath).toBe("language");
|
|
46
|
-
expect(r.entry.target.gclass).toBe("
|
|
46
|
+
expect(r.entry.target.gclass).toBe("C_APP_PREFERENCES");
|
|
47
47
|
});
|
|
48
48
|
|
|
49
49
|
test("deeper dynamic tail is preserved whole", () => {
|
|
50
|
-
const r = resolve_route(idx, "/system/db/
|
|
51
|
-
expect(r.matched_route).toBe("/system/db/
|
|
50
|
+
const r = resolve_route(idx, "/system/db/myapp/topic/42");
|
|
51
|
+
expect(r.matched_route).toBe("/system/db/myapp");
|
|
52
52
|
expect(r.subpath).toBe("topic/42");
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
2
|
* schema_editor_openers.wiring.test.js
|
|
3
3
|
*
|
|
4
|
-
* What opens something in C_YUI_SCHEMA_EDITOR is a NAMED control
|
|
5
|
-
* (REV-CLOUD V24.5.4):
|
|
4
|
+
* What opens something in C_YUI_SCHEMA_EDITOR is a NAMED control:
|
|
6
5
|
*
|
|
7
6
|
* - a card of the treedbs screen (a treedb, the leftovers of a
|
|
8
7
|
* deletion) is a role=button with a title and an aria-label,
|
|
@@ -1056,7 +1056,7 @@ describe("the import plan", () => {
|
|
|
1056
1056
|
});
|
|
1057
1057
|
});
|
|
1058
1058
|
|
|
1059
|
-
describe("the import panel says what each conflict is about
|
|
1059
|
+
describe("the import panel says what each conflict is about", () => {
|
|
1060
1060
|
|
|
1061
1061
|
test("the bad name of a hook map is printed, and the hook column it is written in", () => {
|
|
1062
1062
|
const {editor, host} = build("i3", "db");
|
|
@@ -1752,7 +1752,7 @@ describe("the reason a load failed", () => {
|
|
|
1752
1752
|
|
|
1753
1753
|
|
|
1754
1754
|
/*
|
|
1755
|
-
* The two name rules
|
|
1755
|
+
* The two name rules: a name the treedb refuses is
|
|
1756
1756
|
* said at once, with its key, and nothing is written; a '/' in a column
|
|
1757
1757
|
* is not refused (a column is a key, not a directory).
|
|
1758
1758
|
*/
|
|
@@ -1784,8 +1784,8 @@ describe("names the treedb refuses", () => {
|
|
|
1784
1784
|
|
|
1785
1785
|
|
|
1786
1786
|
/*
|
|
1787
|
-
* The name field says whether the LAST save refused its name
|
|
1788
|
-
*
|
|
1787
|
+
* The name field says whether the LAST save refused its name:
|
|
1788
|
+
* set by every refusal of the name, cleared by a save that gets
|
|
1789
1789
|
* past them. It was set by the rule only, and never cleared.
|
|
1790
1790
|
*/
|
|
1791
1791
|
describe("aria-invalid of the name field", () => {
|
package/src/schema_import.js
CHANGED
|
@@ -254,7 +254,7 @@ function plan_import(treedb, incoming, options)
|
|
|
254
254
|
if(hook && typeof hook === "object" && !Array.isArray(hook)) {
|
|
255
255
|
/* The parent's hook column the bad name comes from: a
|
|
256
256
|
* conflict that said only `child.fkey` did not say where
|
|
257
|
-
* to fix it
|
|
257
|
+
* to fix it. */
|
|
258
258
|
let from_hook = `${name || ""}.${in_col.name}`;
|
|
259
259
|
for(let [child_topic, fkey_col] of Object.entries(hook)) {
|
|
260
260
|
/* The conflict names the BAD name (the child topic, its
|
|
@@ -255,7 +255,7 @@ describe("the empty collections the store answers with", () => {
|
|
|
255
255
|
});
|
|
256
256
|
|
|
257
257
|
|
|
258
|
-
describe("names the treedb refuses stop the plan before any write
|
|
258
|
+
describe("names the treedb refuses stop the plan before any write", () => {
|
|
259
259
|
test("a topic a/b, a topic .., a column x`y: conflicts, no writes", () => {
|
|
260
260
|
let plan = plan_import(null, {
|
|
261
261
|
id: "db", schema_version: "1",
|
|
@@ -284,7 +284,7 @@ describe("names the treedb refuses stop the plan before any write (REV-CLOUD V14
|
|
|
284
284
|
});
|
|
285
285
|
|
|
286
286
|
|
|
287
|
-
describe("the import reads the hook map and the treedb id
|
|
287
|
+
describe("the import reads the hook map and the treedb id", () => {
|
|
288
288
|
test("a hook to an fkey x`y or to a topic a/b that no column declares: conflicts", () => {
|
|
289
289
|
let plan = plan_import(null, {
|
|
290
290
|
id: "db", schema_version: "1",
|
|
@@ -312,7 +312,7 @@ describe("the import reads the hook map and the treedb id (REV-CLOUD V15.4)", ()
|
|
|
312
312
|
});
|
|
313
313
|
|
|
314
314
|
|
|
315
|
-
describe("a conflict names the bad name
|
|
315
|
+
describe("a conflict names the bad name", () => {
|
|
316
316
|
test("the child topic and the fkey of a hook map, and a dict column's inner id", () => {
|
|
317
317
|
let plan = plan_import(null, {
|
|
318
318
|
id: "db", schema_version: "1",
|
|
@@ -289,7 +289,7 @@ describe("only one hook may name a fkey column", () => {
|
|
|
289
289
|
});
|
|
290
290
|
|
|
291
291
|
|
|
292
|
-
describe("the two name rules
|
|
292
|
+
describe("the two name rules", () => {
|
|
293
293
|
test("a column with the delimiter is an error; a '/' in a column is fine", () => {
|
|
294
294
|
let bad = validate_schema(schema({extra_col:
|
|
295
295
|
{id: "db.users.x`y", value: "x`y", order: 3, type: "string",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/***********************************************************************
|
|
3
3
|
* selector_from_data.wiring.test.js
|
|
4
4
|
*
|
|
5
|
-
* A NAME IS DATA, NOT A SELECTOR
|
|
5
|
+
* A NAME IS DATA, NOT A SELECTOR.
|
|
6
6
|
*
|
|
7
7
|
* The G6 views gave their canvas mount the id
|
|
8
8
|
* `<prefix><gobj name>` and found it again with
|
|
@@ -59,7 +59,7 @@ test("classify: null/undefined are 'action'", () => {
|
|
|
59
59
|
test("validate brand: ok with logo + wordmark", () => {
|
|
60
60
|
let r = validate_toolbar_item({
|
|
61
61
|
id: "brand", type: "brand",
|
|
62
|
-
logo: "/wm.svg", wordmark: "
|
|
62
|
+
logo: "/wm.svg", wordmark: "MyApp",
|
|
63
63
|
action: { type: "navigate", route: "/welcome" }
|
|
64
64
|
});
|
|
65
65
|
expect(r.ok).toBe(true);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* table_editor_name.wiring.test.js
|
|
3
3
|
*
|
|
4
4
|
* The box Tabulator draws in a cell while it is edited had no
|
|
5
|
-
* name: no label, no aria-label, no title (
|
|
6
|
-
* in the alarms of
|
|
5
|
+
* name: no label, no aria-label, no title (seen
|
|
6
|
+
* in the alarms of a consumer app's device). Both tables of the
|
|
7
7
|
* library that edit in place -- a table field of C_YUI_FORM and
|
|
8
8
|
* the inline editing of C_YUI_TREEDB_TOPIC_WITH_FORM -- now name
|
|
9
9
|
* it after its column, asked at the moment of editing: Tabulator
|
package/src/tabulator.css
CHANGED
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
*
|
|
190
190
|
* A box to type in, never a box to TICK: a checkbox or a radio given the
|
|
191
191
|
* whole cell is drawn as a square the size of the cell -- the tickCross
|
|
192
|
-
* editor of a boolean (
|
|
192
|
+
* editor of a boolean (an app's "validated") opened as a huge empty
|
|
193
193
|
* box on a phone, which read as broken. Those keep their own size.
|
|
194
194
|
* ==================================================================== */
|
|
195
195
|
.tabulator-row .tabulator-cell.tabulator-editing input:not([type=checkbox]):not([type=radio]),
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The stylesheet of the tables: an editor fills its cell only when
|
|
5
5
|
* it is a box to TYPE in. A checkbox or a radio given width and
|
|
6
6
|
* height 100% is drawn as a square the size of the cell (the
|
|
7
|
-
* tickCross editor of
|
|
7
|
+
* tickCross editor of an app's "validated" opened as a huge
|
|
8
8
|
* empty box on a phone, gobj-ui 7.26.36).
|
|
9
9
|
*
|
|
10
10
|
* Read as text, as the window layer's invariants are: jsdom applies
|
|
@@ -317,7 +317,7 @@ for(const gclass of ["C_YUI_TREEDB_TOPICS", "C_YUI_TREEDB_GRAPH"]) {
|
|
|
317
317
|
test("a failure with no word from the backend draws the fallback KEY, translated", async () => {
|
|
318
318
|
/* "print-tranger failed" travelled as `error`, which the
|
|
319
319
|
* viewer draws as it came: the raw key, in English, in every
|
|
320
|
-
* language
|
|
320
|
+
* language. As `i18n` it is drawn with
|
|
321
321
|
* t() and carries data-i18n, so it changes language too. */
|
|
322
322
|
const i18next = (await import("i18next")).default;
|
|
323
323
|
i18next.addResourceBundle("en", "translation",
|
|
@@ -370,7 +370,7 @@ for(const gclass of ["C_YUI_TREEDB_TOPICS", "C_YUI_TREEDB_GRAPH"]) {
|
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
/*
|
|
373
|
-
*
|
|
373
|
+
* Two consumer apps hear the edge from the SHELL
|
|
374
374
|
* (EV_CONNECTION_STATE), not from a host that forwards the transport.
|
|
375
375
|
*/
|
|
376
376
|
describe("C_YUI_TREEDB_TOPICS: the shell's 'down' answers a drill in flight", () => {
|
|
@@ -137,7 +137,7 @@ beforeAll(() => {
|
|
|
137
137
|
{}, 0, [SDATA_END()], {}, 0, 0, 0, 0
|
|
138
138
|
);
|
|
139
139
|
/* An app that subscribes to EVERY event of its shell and declares
|
|
140
|
-
* none of the new ones:
|
|
140
|
+
* none of the new ones: the shape of two consumer apps. */
|
|
141
141
|
gclass_create("C_TEST_APP", [], [["ST_IDLE", []]], {}, 0, [SDATA_END()], {}, 0, 0, 0, 0);
|
|
142
142
|
/* An app that DOES declare it: it must still be told. */
|
|
143
143
|
gclass_create(
|
package/src/uplot_ink.test.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* C_YUI_UPLOT inked only the axes it was handed: by default one,
|
|
8
8
|
* the X. In the dark scheme the values of every Y axis of the
|
|
9
9
|
* library were black on near-black (a user's report, the cards of
|
|
10
|
-
*
|
|
10
|
+
* a consumer app).
|
|
11
11
|
*
|
|
12
12
|
* Copyright (c) 2026, ArtGins.
|
|
13
13
|
* All Rights Reserved.
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
* shell (a stacking context of its own) and the dialog of its own
|
|
9
9
|
* close opened under it.
|
|
10
10
|
*
|
|
11
|
-
* And that the place FOLLOWS the shell
|
|
11
|
+
* And that the place FOLLOWS the shell: a window
|
|
12
12
|
* parented to the app outlives a logout that destroys the shell.
|
|
13
13
|
* From 7.26.31 to 7.26.34 it stayed in the destroyed shell's layer,
|
|
14
14
|
* alive and detached, and the next shell never placed it again: the
|
|
15
|
-
* developer window of gui_agent, gui_treedb and
|
|
15
|
+
* developer window of gui_agent, gui_treedb and an app vanished
|
|
16
16
|
* after a logout and a login. The dock, the same.
|
|
17
17
|
*
|
|
18
|
-
* The gclass viewer opened from such a window follows it
|
|
19
|
-
*
|
|
18
|
+
* The gclass viewer opened from such a window follows it:
|
|
19
|
+
* up to 7.26.41 it was told the element its
|
|
20
20
|
* opener hung from as its `$parent` -- the body, between a logout and
|
|
21
21
|
* the next login -- and stayed there after the login, above the new
|
|
22
22
|
* shell's dialogs. And with two shells alive, destroying the last one
|
|
@@ -390,7 +390,7 @@ describe("the stacking of the windows", () => {
|
|
|
390
390
|
});
|
|
391
391
|
});
|
|
392
392
|
|
|
393
|
-
describe("the title of a dock chip changes language
|
|
393
|
+
describe("the title of a dock chip changes language", () => {
|
|
394
394
|
/* A window with a DATA half (a device id) and a KIND half (a key):
|
|
395
395
|
* the toggle's title and aria-label are COMPOSED, so no key carries
|
|
396
396
|
* them. Up to 7.26.35 they stayed in the language the window was
|
|
@@ -430,7 +430,7 @@ describe("the title of a dock chip changes language (REV-CLOUD V23, QA of estado
|
|
|
430
430
|
});
|
|
431
431
|
});
|
|
432
432
|
|
|
433
|
-
describe("
|
|
433
|
+
describe("a gclass viewer opened from a window goes where its opener goes", () => {
|
|
434
434
|
/* A view inside a window parented to the app: the frontend view in
|
|
435
435
|
* the developer window, whose `gclass` button opens the viewer. */
|
|
436
436
|
function window_with_a_view(name, kw)
|
package/src/yui_asset.test.js
CHANGED
|
@@ -46,7 +46,7 @@ test("reads every id out of an array fkey, in order", () => {
|
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
/*
|
|
49
|
-
* `fkey_only_id` is a normal way to read a node --
|
|
49
|
+
* `fkey_only_id` is a normal way to read a node -- one app reads every
|
|
50
50
|
* device that way -- and it collapses a link to the bare id. Reading only
|
|
51
51
|
* the `topic^id^hook` form made every such link look like no link at all.
|
|
52
52
|
*/
|
package/src/yui_badge.test.js
CHANGED
|
@@ -86,7 +86,7 @@ describe("badge_node", () => {
|
|
|
86
86
|
test("the host's classes, its tone and its text as text; no live region of its own", () => {
|
|
87
87
|
/* It said "3" with no context, missed the first count while
|
|
88
88
|
* hidden, and was not in the tree inside a <button>: the shell
|
|
89
|
-
* says the change now
|
|
89
|
+
* says the change now. */
|
|
90
90
|
let $b = createElement2(badge_node(3, "warning", "X_BADGE yui-badge", "who"));
|
|
91
91
|
expect($b.tagName).toBe("SPAN");
|
|
92
92
|
expect($b.getAttribute("role")).toBe(null);
|
package/src/yui_dev.js
CHANGED
|
@@ -77,8 +77,8 @@ const TRAFFIC_TS_FIELDS = {
|
|
|
77
77
|
* them. They are published HERE, as data: a consumer's `validate-locales`
|
|
78
78
|
* (gobj-ui 7.26.27+) reads an exported `*_I18N_KEYS` array of every module
|
|
79
79
|
* the app mounts and asks the locales for each key -- it used to be a
|
|
80
|
-
* comment each consumer copied by hand, and
|
|
81
|
-
*
|
|
80
|
+
* comment each consumer copied by hand, and one app lacked 35 of them.
|
|
81
|
+
* A key added to the window goes in this list. */
|
|
82
82
|
export const YUI_DEV_I18N_KEYS = [
|
|
83
83
|
"automata", "both", "browser console only", "clear",
|
|
84
84
|
"clear captured traffic", "collapsed", "console", "copied", "copy",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* yui_dev_controls.test.js
|
|
3
3
|
*
|
|
4
4
|
* Every control of the Developer window is NAMED, and every
|
|
5
|
-
* name changes language (
|
|
5
|
+
* name changes language (nine buttons had a
|
|
6
6
|
* `title` and no `aria-label` -- simple mach, the three of
|
|
7
7
|
* Output, the three of Expand, copy and clear).
|
|
8
8
|
*
|
|
@@ -105,7 +105,7 @@ describe("the Developer window's controls", () => {
|
|
|
105
105
|
expect(wrong).toEqual([]);
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
-
it("names the nine buttons
|
|
108
|
+
it("names the nine buttons a review found without one", () => {
|
|
109
109
|
const sel = [
|
|
110
110
|
'[data-toggle="automata-simple"]',
|
|
111
111
|
'[data-output="window"]', '[data-output="console"]', '[data-output="both"]',
|
package/src/yui_dev_copy.test.js
CHANGED
|
@@ -38,12 +38,12 @@ describe("entry_shown_lines", () => {
|
|
|
38
38
|
it("copies a closed branch as its one-line summary", () => {
|
|
39
39
|
const $e = painted({
|
|
40
40
|
result: 0,
|
|
41
|
-
comment: "
|
|
41
|
+
comment: "db_history^1620: 524 nodos",
|
|
42
42
|
data: {places: [1, 2, 3], families: [4], devices: [5, 6]},
|
|
43
43
|
});
|
|
44
44
|
expect(entry_shown_lines($e)).toEqual([
|
|
45
45
|
" • result: 0",
|
|
46
|
-
" • comment:
|
|
46
|
+
" • comment: db_history^1620: 524 nodos",
|
|
47
47
|
" ▸ data {places:[…],families:[…],devices:[…]}",
|
|
48
48
|
]);
|
|
49
49
|
});
|