@yuneta/gobj-ui 2.0.0 → 2.2.3

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 (58) hide show
  1. package/README.md +25 -20
  2. package/dist/gobj-ui.cjs.js +2340 -528
  3. package/dist/gobj-ui.es.js +2340 -530
  4. package/index.js +32 -31
  5. package/package.json +6 -7
  6. package/{c_g6_nodes_tree.js → src/c_g6_nodes_tree.js} +6 -1
  7. package/{c_yui_form.js → src/c_yui_form.js} +1 -1
  8. package/{c_yui_gobj_tree_js.js → src/c_yui_gobj_tree_js.js} +1 -1
  9. package/{c_yui_json_graph.js → src/c_yui_json_graph.js} +1 -1
  10. package/{c_yui_main.js → src/c_yui_main.js} +3 -3
  11. package/{c_yui_map.js → src/c_yui_map.js} +6 -1
  12. package/{c_yui_nav.js → src/c_yui_nav.js} +134 -26
  13. package/{c_yui_pager.js → src/c_yui_pager.js} +1 -1
  14. package/{c_yui_routing.css → src/c_yui_routing.css} +1 -1
  15. package/{c_yui_routing.js → src/c_yui_routing.js} +1 -1
  16. package/{c_yui_shell.css → src/c_yui_shell.css} +110 -0
  17. package/{c_yui_shell.js → src/c_yui_shell.js} +175 -13
  18. package/{c_yui_tabs.js → src/c_yui_tabs.js} +1 -1
  19. package/{c_yui_treedb_graph.js → src/c_yui_treedb_graph.js} +35 -9
  20. package/{c_yui_treedb_topic_with_form.js → src/c_yui_treedb_topic_with_form.js} +1 -1
  21. package/{c_yui_treedb_topics.js → src/c_yui_treedb_topics.js} +36 -8
  22. package/{c_yui_uplot.js → src/c_yui_uplot.js} +1 -1
  23. package/{c_yui_window.js → src/c_yui_window.js} +242 -21
  24. package/src/c_yui_window_manager.js +602 -0
  25. package/{c_yui_wizard.js → src/c_yui_wizard.js} +1 -1
  26. package/{shell_modals.js → src/shell_modals.js} +53 -13
  27. package/src/tabulator.css +53 -0
  28. package/src/yui_dev.js +1484 -0
  29. package/{yui_icons.css → src/yui_icons.css} +5 -0
  30. package/src/yui_inputs.css +32 -0
  31. package/src/yui_inputs.js +71 -0
  32. package/vite.config.js +0 -131
  33. package/yui_dev.js +0 -583
  34. /package/{c_yui_main.css → src/c_yui_main.css} +0 -0
  35. /package/{c_yui_map.css → src/c_yui_map.css} +0 -0
  36. /package/{c_yui_treedb_topic_with_form.css → src/c_yui_treedb_topic_with_form.css} +0 -0
  37. /package/{g6_drag_canvas_touch.js → src/g6_drag_canvas_touch.js} +0 -0
  38. /package/{lib_graph.css → src/lib_graph.css} +0 -0
  39. /package/{lib_graph.js → src/lib_graph.js} +0 -0
  40. /package/{lib_icons.js → src/lib_icons.js} +0 -0
  41. /package/{lib_maplibre.js → src/lib_maplibre.js} +0 -0
  42. /package/{pager_helpers.js → src/pager_helpers.js} +0 -0
  43. /package/{pager_helpers.test.js → src/pager_helpers.test.js} +0 -0
  44. /package/{route_resolver.js → src/route_resolver.js} +0 -0
  45. /package/{route_resolver.test.js → src/route_resolver.test.js} +0 -0
  46. /package/{shell_focus_trap.js → src/shell_focus_trap.js} +0 -0
  47. /package/{shell_focus_trap.test.js → src/shell_focus_trap.test.js} +0 -0
  48. /package/{shell_show_on.js → src/shell_show_on.js} +0 -0
  49. /package/{shell_show_on.test.js → src/shell_show_on.test.js} +0 -0
  50. /package/{shell_toolbar_helpers.js → src/shell_toolbar_helpers.js} +0 -0
  51. /package/{shell_toolbar_helpers.test.js → src/shell_toolbar_helpers.test.js} +0 -0
  52. /package/{themes.js → src/themes.js} +0 -0
  53. /package/{wizard_helpers.js → src/wizard_helpers.js} +0 -0
  54. /package/{wizard_helpers.test.js → src/wizard_helpers.test.js} +0 -0
  55. /package/{ytable.css → src/ytable.css} +0 -0
  56. /package/{ytable.js → src/ytable.js} +0 -0
  57. /package/{yui_toolbar.css → src/yui_toolbar.css} +0 -0
  58. /package/{yui_toolbar.js → src/yui_toolbar.js} +0 -0
package/README.md CHANGED
@@ -11,33 +11,38 @@ Published as `@yuneta/gobj-ui`. Built on top of [`@yuneta/gobj-js`](https://gith
11
11
  This repository carries **two parallel lines** with different layouts and
12
12
  consumers. They are independent snapshots (no shared git ancestry):
13
13
 
14
- | Line | Branch | Tag | Layout | Consumers | Status |
15
- |------|--------|-----|--------|-----------|--------|
16
- | **v2** | `main` | `2.0.0` | flat (`*.js` at root) | **wattyzer** | active development |
17
- | **v1** | `v1` | `1.0.0` | `src/` subdir | **estadodelaire**, **hidraulia** | frozen, maintenance-only |
14
+ | Line | Branch | Tag | Layout | Consumed by | How | Status |
15
+ |------|--------|-----|--------|-------------|-----|--------|
16
+ | **v2** | `main` | `2.0.0`+ | `src/` subdir | **wattyzer** | local `file:` dep on the yunetas submodule | active development |
17
+ | **v1** | `v1` | `1.0.0` | `src/` subdir | **estadodelaire**, **hidraulia** | published npm `@yuneta/gobj-ui@^1.0.0` | frozen, maintenance-only |
18
18
 
19
19
  - **v2 / `main`** is the active development line: the declarative shell on top
20
- of the legacy stack. It is embedded as a git submodule in **wattyzer** at
21
- `gui/src/gobj-ui` and consumed as plain source via relative imports.
20
+ of the legacy stack. It is embedded as a git submodule in **yunetas** at
21
+ `kernel/js/gobj-ui`, and **wattyzer** consumes that checkout as a `file:`
22
+ dependency (`@yuneta/gobj-ui` → `../../../yunetas/kernel/js/gobj-ui`),
23
+ importing by package specifier (`@yuneta/gobj-ui/src/*.js`, exports map
24
+ `"./src/*"`; the `index.js` barrel and the vite plugin stay at the package root).
22
25
  - **v1 / `v1`** is the frozen legacy-only stack (the declarative shell is not on
23
- this line). It is embedded as a git submodule in **yunetas** at
24
- `kernel/js/gobj-ui`; estadodelaire and hidraulia resolve `@yuneta/gobj-ui`
25
- there through an npm `file:` dependency. Land only maintenance fixes here.
26
+ this line). It is **published to npm**; estadodelaire and hidraulia depend on
27
+ `@yuneta/gobj-ui@^1.0.0` from the registry. Land only maintenance fixes here,
28
+ then `npm publish` a new `1.x`.
26
29
 
27
30
  All new feature work lands on `main`/v2.
28
31
 
29
- ## Usage as a submodule
32
+ ## Usage
30
33
 
31
34
  ```bash
32
- # clone a superproject with its submodules
33
- git clone --recurse-submodules <superproject>
34
- # or, after a plain clone:
35
- git submodule update --init kernel/js/gobj-ui # yunetas (v1)
36
- git submodule update --init gui/src/gobj-ui # wattyzer (main/v2)
35
+ # v2 (active): clone yunetas with submodules; wattyzer picks it up via file:
36
+ git clone --recurse-submodules <yunetas>
37
+ git submodule update --init kernel/js/gobj-ui # yunetas tracks main/v2
38
+
39
+ # v1 (frozen): consumers just install the published package
40
+ npm install @yuneta/gobj-ui@^1.0.0
37
41
  ```
38
42
 
39
- Edit gobj-ui from the superproject checkout, commit on the appropriate line in
40
- this repo, then bump the submodule pointer in the superproject.
43
+ Edit v2 from the yunetas `kernel/js/gobj-ui` checkout, commit on `main` in this
44
+ repo, then bump that submodule pointer in yunetas. For v1, work from a `v1`
45
+ checkout and publish.
41
46
 
42
47
  ## Build & test
43
48
 
@@ -47,8 +52,8 @@ npm run build # vite -> dist/ (ES/CJS/UMD/IIFE, min + non-min)
47
52
  npm test # vitest (v2/main only; v1 has no test target)
48
53
  ```
49
54
 
50
- `dist/` is gitignored. Consumers that import the package root (`@yuneta/gobj-ui`)
51
- resolve to `dist/gobj-ui.es.js` via the exports map, so rebuild `dist/` after
52
- updating the v1 submodule.
55
+ `dist/` is gitignored. v1 consumers get `dist/` from the **published** npm
56
+ tarball; v2 (wattyzer) imports source files by specifier. Rebuild `dist/` to
57
+ validate and before publishing a v1 release.
53
58
 
54
59
  Copyright (c) 2024-2026, ArtGins. All Rights Reserved.