@yuneta/gobj-ui 7.31.4 → 7.31.6
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 +25 -0
- package/dist/gobj-ui.cjs.js +25141 -24990
- package/dist/gobj-ui.es.js +25140 -24989
- package/package.json +1 -1
- package/src/c_yui_json_graph.js +236 -9
- package/src/c_yui_treedb_topic_with_form.js +7 -9
- package/src/c_yui_treedb_topics.js +13 -26
- package/src/i18n_key_functions.js +0 -6
- package/src/i18n_key_functions.test.js +4 -2
- package/src/json_graph_lit_edge.wiring.test.js +260 -0
- package/src/named_controls.wiring.test.js +8 -2
package/README.md
CHANGED
|
@@ -758,6 +758,18 @@ centred above the target card's title. Ports on an html node need care: the
|
|
|
758
758
|
HTML is a DOM layer over the canvas, so a port fully inside the box is painted
|
|
759
759
|
under the card — they sit ON the border.
|
|
760
760
|
|
|
761
|
+
**A click on an edge lights it** (`7.31.5`), as in the schema and treedb
|
|
762
|
+
graphs: the line in amber, its two cards ringed with it, and the row of the
|
|
763
|
+
parent's key the line leaves from washed. A second click on it, or a click on
|
|
764
|
+
the canvas, puts it out; so does a fold that takes its child card away, and a
|
|
765
|
+
new document. The cards are html, where G6 paints no state, so the lit edge is
|
|
766
|
+
BAKED into the drawing like a find match (a rebuild that keeps the camera), and
|
|
767
|
+
it is kept by the path of its child card, which survives a rebuild where the
|
|
768
|
+
ids do not. An edge takes a click 7px either side of its line. The zoom goes
|
|
769
|
+
down to 2% (`10%` before, where a document of a few hundred cards did not fit),
|
|
770
|
+
and a **minimap** (bottom left, the library's `yui_graph_minimap.js`) appears
|
|
771
|
+
from `minimap_min_nodes` cards on (default `10`).
|
|
772
|
+
|
|
761
773
|
Cards are `JSON_CARD` and carry `data-json-path` (`GOBJ_CARD` /
|
|
762
774
|
`data-gobj-name` in the gobj tree, `TREEDB_CARD` in the treedb graph): a gclass
|
|
763
775
|
that builds DOM owes the Inspector a readable tree, and the anchor's mark needs
|
|
@@ -961,6 +973,19 @@ It needs the descriptor to carry `pkey2s`, which `tranger2_topic_desc()` only
|
|
|
961
973
|
clones from **SDK > 7.13.0**. Against an older node the desc has no `pkey2s`, the
|
|
962
974
|
label falls back to the id, and nothing else changes.
|
|
963
975
|
|
|
976
|
+
### A topic is shown by its own name, never translated
|
|
977
|
+
|
|
978
|
+
The treedb views name each topic as the schema has it: its tab, its card, the
|
|
979
|
+
title of its info panel, the buttons of the dialog that asks which linked
|
|
980
|
+
topic to open, and the parent-filter chip. The name is an identifier, the one
|
|
981
|
+
the relations of a card (`↑ parents places`), the graph, the commands and the
|
|
982
|
+
backend use, so a translation of it in one place and the raw name in the next
|
|
983
|
+
reads as two different topics. Up to 7.31.5 those five places passed the name
|
|
984
|
+
through `t()`, and an app whose locale had a key `places: "sitios"` showed a
|
|
985
|
+
tab `sitios` beside a topic actually called `sites`. A locale key that matches
|
|
986
|
+
a topic name is now unused by the library (the validator does not complain
|
|
987
|
+
about it); the app may keep it for its own screens.
|
|
988
|
+
|
|
964
989
|
### Which backend a view browses: `source_url`
|
|
965
990
|
|
|
966
991
|
`C_YUI_TREEDB_TOPICS` takes an optional **`source_url`** string and prints it in
|