@yuneta/gobj-ui 7.28.2 → 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_icons.css +6 -0
- 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
|
@@ -4,11 +4,11 @@ import {row_matches, is_fkey_ref, is_hook_size} from "./yui_row_search.js";
|
|
|
4
4
|
|
|
5
5
|
describe("row_matches", () => {
|
|
6
6
|
const row = {
|
|
7
|
-
id: "
|
|
7
|
+
id: "E00000042",
|
|
8
8
|
name: "",
|
|
9
9
|
place: [
|
|
10
10
|
{
|
|
11
|
-
id: "es.
|
|
11
|
+
id: "es.city.site-a.local-13-gate",
|
|
12
12
|
topic_name: "places",
|
|
13
13
|
hook_name: "devices"
|
|
14
14
|
}
|
|
@@ -20,7 +20,7 @@ describe("row_matches", () => {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
it("finds a plain field", () => {
|
|
23
|
-
expect(row_matches(row, "
|
|
23
|
+
expect(row_matches(row, "e00000042")).toBe(true);
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
it("finds a number", () => {
|
|
@@ -28,7 +28,7 @@ describe("row_matches", () => {
|
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
it("finds a value INSIDE an fkey, which is the whole point", () => {
|
|
31
|
-
expect(row_matches(row, "local-13-
|
|
31
|
+
expect(row_matches(row, "local-13-gate")).toBe(true);
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
it("does NOT match the structural halves of an fkey", () => {
|
|
@@ -80,10 +80,10 @@ describe("row_matches, on a table loaded with hook_size", () => {
|
|
|
80
80
|
const loaded = {
|
|
81
81
|
id: "places-madrid",
|
|
82
82
|
devices: [
|
|
83
|
-
{id: "
|
|
83
|
+
{id: "E00000042", topic_name: "devices", hook_name: "places"}
|
|
84
84
|
]
|
|
85
85
|
};
|
|
86
|
-
expect(row_matches(loaded, "
|
|
86
|
+
expect(row_matches(loaded, "e00000042")).toBe(true);
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
|
package/src/yui_selector.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* - `%` `^` `"` `\` and the rest make it INVALID: querySelector
|
|
15
15
|
* THROWS a SyntaxError, out of whatever action was running.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
17
|
+
* The gobj tree found its canvas with
|
|
18
18
|
* `querySelector("#" + id)`, and gui_agent named the window
|
|
19
19
|
* `node~key` -- every open logged "no canvas mount" and the
|
|
20
20
|
* canvas never resized; a `^` in the key (`%5E`) threw out of
|
|
@@ -25,19 +25,19 @@ const US = String.fromCharCode(31); /* the composite-id separator */
|
|
|
25
25
|
|
|
26
26
|
describe("yui_tab_split_subpath", () => {
|
|
27
27
|
test("a bare tab tail is all id", () => {
|
|
28
|
-
expect(yui_tab_split_subpath("
|
|
28
|
+
expect(yui_tab_split_subpath("node1")).toEqual({id: "node1", tail: ""});
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
test("a deep tail keeps the id and hands the rest back", () => {
|
|
32
|
-
expect(yui_tab_split_subpath("
|
|
33
|
-
.toEqual({id: "
|
|
32
|
+
expect(yui_tab_split_subpath("node1/treedb_authzs/__graphs__"))
|
|
33
|
+
.toEqual({id: "node1", tail: "treedb_authzs/__graphs__"});
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
test("a composite id survives the url it travelled in", () => {
|
|
37
37
|
/* 0x1F joins the two halves of these ids and reaches the url
|
|
38
38
|
* percent-encoded. */
|
|
39
|
-
expect(yui_tab_split_subpath("
|
|
40
|
-
.toEqual({id: "
|
|
39
|
+
expect(yui_tab_split_subpath("node-a%1F1630/treedb_authzs/__graphs__"))
|
|
40
|
+
.toEqual({id: "node-a" + US + "1630",
|
|
41
41
|
tail: "treedb_authzs/__graphs__"});
|
|
42
42
|
});
|
|
43
43
|
|
|
@@ -122,7 +122,7 @@ describe("yui_tabulator_name_row_selects", () => {
|
|
|
122
122
|
describe("yui_tabulator_name_editor", () => {
|
|
123
123
|
/* Tabulator calls a FUNCTION editorParams with the cell when it starts
|
|
124
124
|
* editing it, and every built-in editor writes the elementAttributes
|
|
125
|
-
* it answers onto the box it draws (
|
|
125
|
+
* it answers onto the box it draws (the editable
|
|
126
126
|
* cells had no name). */
|
|
127
127
|
it("names the editor after the column, asked at the moment of editing", () => {
|
|
128
128
|
let lang = "en";
|
|
@@ -101,7 +101,7 @@ export function yunetaHtmlPlugin(options = {}) {
|
|
|
101
101
|
* with `<script src="/<name>.js">`. Same-origin URL
|
|
102
102
|
* satisfies 'self'; an inline block does not.
|
|
103
103
|
*
|
|
104
|
-
* See `
|
|
104
|
+
* See an application's `gui/public/anti-fouc.js` for the
|
|
105
105
|
* canonical pre-paint pattern (theme bootstrap from
|
|
106
106
|
* localStorage + matchMedia fallback).
|
|
107
107
|
*
|