@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.
- package/README.md +324 -6
- package/dist/gobj-ui.cjs.js +10891 -5006
- package/dist/gobj-ui.es.js +10915 -5064
- package/index.js +45 -1
- package/package.json +4 -4
- package/src/c_g6_nodes_tree.js +128 -40
- package/src/c_yui_form.js +112 -53
- package/src/c_yui_gobj_tree_js.js +58 -36
- package/src/c_yui_json.css +139 -0
- package/src/c_yui_json.js +928 -0
- package/src/c_yui_json_graph.js +110 -20
- package/src/c_yui_map.js +18 -36
- package/src/c_yui_nav.js +6 -9
- package/src/c_yui_period.css +184 -0
- package/src/c_yui_period.js +1441 -0
- package/src/c_yui_shell.css +33 -0
- package/src/c_yui_shell.js +672 -111
- package/src/c_yui_treedb_graph.js +639 -37
- package/src/c_yui_treedb_schema.js +478 -0
- package/src/c_yui_treedb_topic_with_form.css +7 -42
- package/src/c_yui_treedb_topic_with_form.js +152 -103
- package/src/c_yui_treedb_topics.css +73 -0
- package/src/c_yui_treedb_topics.js +1070 -29
- package/src/c_yui_window.js +180 -97
- package/src/c_yui_window_manager.js +38 -4
- package/src/json_view_helpers.js +214 -0
- package/src/json_view_helpers.test.js +135 -0
- package/src/route_map_model.js +317 -0
- package/src/route_map_model.test.js +209 -0
- package/src/route_resolver.js +24 -1
- package/src/route_resolver.test.js +40 -1
- package/src/shell_modals.js +117 -39
- package/src/shell_route_map.css +225 -0
- package/src/shell_route_map.js +363 -0
- package/src/tabulator.css +67 -0
- package/src/yui_dev.js +130 -8
- package/src/yui_frontend_view.js +106 -0
- package/src/yui_icons.css +62 -0
- package/src/yui_inputs.css +8 -3
- package/src/yui_inputs.js +51 -8
- package/src/yui_tabulator_i18n.js +128 -0
- package/src/yui_theme.js +147 -0
- package/src/yui_time.js +666 -0
- package/src/yui_time.test.js +330 -0
- package/src/yui_toolbar.js +86 -43
package/src/c_yui_shell.css
CHANGED
|
@@ -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;
|