@yuneta/gobj-ui 3.0.0 → 4.0.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.
Files changed (45) hide show
  1. package/README.md +324 -6
  2. package/dist/gobj-ui.cjs.js +10891 -5006
  3. package/dist/gobj-ui.es.js +10915 -5064
  4. package/index.js +45 -1
  5. package/package.json +4 -4
  6. package/src/c_g6_nodes_tree.js +128 -40
  7. package/src/c_yui_form.js +112 -53
  8. package/src/c_yui_gobj_tree_js.js +58 -36
  9. package/src/c_yui_json.css +139 -0
  10. package/src/c_yui_json.js +928 -0
  11. package/src/c_yui_json_graph.js +110 -20
  12. package/src/c_yui_map.js +18 -36
  13. package/src/c_yui_nav.js +6 -9
  14. package/src/c_yui_period.css +184 -0
  15. package/src/c_yui_period.js +1441 -0
  16. package/src/c_yui_shell.css +33 -0
  17. package/src/c_yui_shell.js +672 -111
  18. package/src/c_yui_treedb_graph.js +639 -37
  19. package/src/c_yui_treedb_schema.js +478 -0
  20. package/src/c_yui_treedb_topic_with_form.css +7 -42
  21. package/src/c_yui_treedb_topic_with_form.js +152 -103
  22. package/src/c_yui_treedb_topics.css +73 -0
  23. package/src/c_yui_treedb_topics.js +1070 -29
  24. package/src/c_yui_window.js +180 -97
  25. package/src/c_yui_window_manager.js +38 -4
  26. package/src/json_view_helpers.js +214 -0
  27. package/src/json_view_helpers.test.js +135 -0
  28. package/src/route_map_model.js +317 -0
  29. package/src/route_map_model.test.js +209 -0
  30. package/src/route_resolver.js +24 -1
  31. package/src/route_resolver.test.js +40 -1
  32. package/src/shell_modals.js +117 -39
  33. package/src/shell_route_map.css +225 -0
  34. package/src/shell_route_map.js +363 -0
  35. package/src/tabulator.css +67 -0
  36. package/src/yui_dev.js +130 -8
  37. package/src/yui_frontend_view.js +106 -0
  38. package/src/yui_icons.css +62 -0
  39. package/src/yui_inputs.css +8 -3
  40. package/src/yui_inputs.js +51 -8
  41. package/src/yui_tabulator_i18n.js +128 -0
  42. package/src/yui_theme.js +147 -0
  43. package/src/yui_time.js +666 -0
  44. package/src/yui_time.test.js +330 -0
  45. package/src/yui_toolbar.js +86 -43
@@ -4,6 +4,31 @@
4
4
  * Depends on Bulma being loaded (uses .tabs, .menu, .level, is-*, etc.)
5
5
  ***********************************************************************/
6
6
 
7
+ /*============================================================
8
+ * Native control scheme
9
+ *
10
+ * The browser draws the ornaments of native controls itself —
11
+ * number-input spinners, the select chevron, scrollbars, the
12
+ * date picker — and picks their colours from `color-scheme`,
13
+ * NOT from the background/color we set. Nobody declared it, so
14
+ * they rendered light in a dark app whatever the CSS said.
15
+ * Bulma flips its palette on [data-theme]; this makes the
16
+ * browser's own chrome follow the same switch.
17
+ *============================================================*/
18
+ /* No [data-theme] is the "system" theme: Bulma renders per
19
+ * prefers-color-scheme, so `light dark` — "supports both, follow the
20
+ * OS" — is what tracks it. Pinning `light` here would force light
21
+ * controls inside a system-dark app: the very bug this fixes. */
22
+ :root {
23
+ color-scheme: light dark;
24
+ }
25
+ :root[data-theme="light"] {
26
+ color-scheme: light;
27
+ }
28
+ :root[data-theme="dark"] {
29
+ color-scheme: dark;
30
+ }
31
+
7
32
  /*============================================================
8
33
  * Root + layers
9
34
  *============================================================*/
@@ -590,6 +615,14 @@
590
615
  white-space: nowrap;
591
616
  font-weight: 600;
592
617
  }
618
+ /* Separator between the data half and the translated kind half. CSS,
619
+ * not a text node: createElement2 trims text nodes and eats the spaces. */
620
+ .MODAL_TITLE_PREFIX + .MODAL_TITLE_KIND::before {
621
+ content: "·";
622
+ padding: 0 0.4em;
623
+ color: var(--bulma-text-weak);
624
+ font-weight: 400;
625
+ }
593
626
  .yui-dialog-back,
594
627
  .yui-dialog-x {
595
628
  flex: 0 0 auto;