@yuneta/gobj-ui 7.26.5 → 7.26.7
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 +141 -25
- package/dist/gobj-ui.cjs.js +1358 -429
- package/dist/gobj-ui.es.js +1349 -430
- package/index.js +18 -2
- package/package.json +2 -2
- package/src/c_g6_nodes_tree.js +41 -0
- package/src/c_yui_form.js +287 -91
- package/src/c_yui_gclass.js +6 -2
- package/src/c_yui_gobj_tree_js.js +15 -4
- package/src/c_yui_json_graph.js +40 -13
- package/src/c_yui_map.js +115 -75
- package/src/c_yui_nav.js +53 -14
- package/src/c_yui_pager.js +14 -9
- package/src/c_yui_period.js +16 -6
- package/src/c_yui_shell.js +116 -30
- package/src/c_yui_treedb_topic_with_form.js +111 -46
- package/src/c_yui_treedb_topics.js +77 -7
- package/src/c_yui_uplot.js +1 -1
- package/src/c_yui_window.js +70 -24
- package/src/c_yui_window_manager.js +7 -3
- package/src/c_yui_wizard.js +23 -8
- package/src/delete_impact.js +5 -3
- package/src/form_json_field.js +116 -0
- package/src/form_json_field.test.js +43 -0
- package/src/form_json_field.wiring.test.js +137 -0
- package/src/lib_icons.js +395 -0
- package/src/lib_icons.test.js +214 -0
- package/src/schema_to_c.js +17 -1
- package/src/schema_to_c.test.js +7 -0
- package/src/shell_route_map.js +6 -0
- package/src/treedb_topics_transport.wiring.test.js +9 -1
- package/src/window_veto_back.wiring.test.js +101 -0
- package/src/wizard_chrome.wiring.test.js +87 -0
- package/src/yui_dev.js +10 -3
- package/src/yui_icons.css +20 -0
- package/src/yui_table_filter_clear.js +44 -44
- package/vite-plugin-yuneta-html.js +28 -6
package/index.js
CHANGED
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Barrel re-exports for the v2 source, which lives in src/.
|
|
7
7
|
* This is the canonical line, embedded as the yunetas submodule
|
|
8
|
-
* kernel/js/gobj-ui and
|
|
8
|
+
* kernel/js/gobj-ui and published to npm; every app takes it
|
|
9
|
+
* from the registry. The barrel is a SUBSET: most apps import
|
|
10
|
+
* by specifier (`@yuneta/gobj-ui/src/<module>.js`), which is
|
|
11
|
+
* how C_YUI_NODE, yui_shell_of() and the rest of the deep
|
|
12
|
+
* surface are reached.
|
|
9
13
|
*
|
|
10
14
|
* Copyright (c) 2024-2026, ArtGins.
|
|
11
15
|
* All Rights Reserved.
|
|
@@ -118,7 +122,19 @@ export {
|
|
|
118
122
|
* Libraries and utilities
|
|
119
123
|
*/
|
|
120
124
|
export { addClasses, removeClasses, toggleClasses, removeChildElements, disableElements, enableElements, set_submit_state, set_cancel_state, set_active_state, set_pressed_state, getStrokeColor } from "./src/lib_graph.js";
|
|
121
|
-
export {
|
|
125
|
+
export {
|
|
126
|
+
inject_svg_icons,
|
|
127
|
+
yui_icon_is_defined,
|
|
128
|
+
ICONS_TOPIC,
|
|
129
|
+
USER_ICON_PREFIX,
|
|
130
|
+
yui_user_icon_class,
|
|
131
|
+
yui_svg_sanitize,
|
|
132
|
+
yui_svg_icon_element,
|
|
133
|
+
yui_icons_set_user,
|
|
134
|
+
yui_icons_put_user,
|
|
135
|
+
yui_icons_remove_user,
|
|
136
|
+
yui_icons_list,
|
|
137
|
+
} from "./src/lib_icons.js";
|
|
122
138
|
export { EditControl, MarkerControl } from "./src/lib_maplibre.js";
|
|
123
139
|
export { yui_asset_id, yui_asset_ids, yui_asset_src, yui_asset_element, yui_asset_missing } from "./src/yui_asset.js";
|
|
124
140
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuneta/gobj-ui",
|
|
3
|
-
"version": "7.26.
|
|
3
|
+
"version": "7.26.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/gobj-ui.cjs.js",
|
|
6
6
|
"module": "dist/gobj-ui.es.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"src/",
|
|
21
21
|
"vite-plugin-yuneta-html.js"
|
|
22
22
|
],
|
|
23
|
-
"description": "Yuneta UI Library — the active line: declarative shell (C_YUI_SHELL+NAV+PAGER+WIZARD) + windows, TreeDB views, forms, charts and maps. Consumed
|
|
23
|
+
"description": "Yuneta UI Library — the active line: declarative shell (C_YUI_SHELL+NAV+PAGER+WIZARD) + windows, TreeDB views, forms, charts and maps. Consumed from the npm registry by the Yuneta SPAs (gui_agent, gui_treedb, wattyzer, yunovatios). The frozen legacy GClass GUI stack (C_YUI_MAIN/TABS/ROUTING) lives on the v1 branch, npm dist-tag 'legacy' (consumed by estadodelaire and hidraulia).",
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "vite build",
|
|
26
26
|
"test": "vitest run",
|
package/src/c_g6_nodes_tree.js
CHANGED
|
@@ -5579,6 +5579,7 @@ function start_node_resize(gobj, e, mx, my)
|
|
|
5579
5579
|
function onPointerUp(ev) {
|
|
5580
5580
|
document.removeEventListener('pointermove', onPointerMove);
|
|
5581
5581
|
document.removeEventListener('pointerup', onPointerUp);
|
|
5582
|
+
document.removeEventListener('pointercancel', onPointerCancel);
|
|
5582
5583
|
|
|
5583
5584
|
// Calculate final size in world coordinates from the viewport rect deltas
|
|
5584
5585
|
const dLeft = (currentRect.left - origVpRect.left) / zoom;
|
|
@@ -5631,8 +5632,19 @@ function start_node_resize(gobj, e, mx, my)
|
|
|
5631
5632
|
});
|
|
5632
5633
|
}
|
|
5633
5634
|
|
|
5635
|
+
/* A cancelled pointer (the browser took the touch) is no drop: the
|
|
5636
|
+
* listeners go, and what was there stays. Without it they stayed
|
|
5637
|
+
* on `document` until some later pointerup, which then dropped. */
|
|
5638
|
+
function onPointerCancel(ev) {
|
|
5639
|
+
document.removeEventListener('pointermove', onPointerMove);
|
|
5640
|
+
document.removeEventListener('pointerup', onPointerUp);
|
|
5641
|
+
document.removeEventListener('pointercancel', onPointerCancel);
|
|
5642
|
+
update_resize_handles_position(gobj);
|
|
5643
|
+
}
|
|
5644
|
+
|
|
5634
5645
|
document.addEventListener('pointermove', onPointerMove);
|
|
5635
5646
|
document.addEventListener('pointerup', onPointerUp);
|
|
5647
|
+
document.addEventListener('pointercancel', onPointerCancel);
|
|
5636
5648
|
}
|
|
5637
5649
|
|
|
5638
5650
|
/************************************************************
|
|
@@ -6477,6 +6489,7 @@ function start_link_drag(gobj, e)
|
|
|
6477
6489
|
function onPointerUp(ev) {
|
|
6478
6490
|
document.removeEventListener('pointermove', onPointerMove);
|
|
6479
6491
|
document.removeEventListener('pointerup', onPointerUp);
|
|
6492
|
+
document.removeEventListener('pointercancel', onPointerCancel);
|
|
6480
6493
|
priv.$container.style.cursor = '';
|
|
6481
6494
|
|
|
6482
6495
|
// Remove drag line
|
|
@@ -6503,8 +6516,24 @@ function start_link_drag(gobj, e)
|
|
|
6503
6516
|
}
|
|
6504
6517
|
}
|
|
6505
6518
|
|
|
6519
|
+
/* A cancelled pointer (the browser took the touch) is no drop: the
|
|
6520
|
+
* listeners go, and what was there stays. Without it they stayed
|
|
6521
|
+
* on `document` until some later pointerup, which then dropped. */
|
|
6522
|
+
function onPointerCancel(ev) {
|
|
6523
|
+
document.removeEventListener('pointermove', onPointerMove);
|
|
6524
|
+
document.removeEventListener('pointerup', onPointerUp);
|
|
6525
|
+
document.removeEventListener('pointercancel', onPointerCancel);
|
|
6526
|
+
priv.$container.style.cursor = '';
|
|
6527
|
+
if(priv._link_drag_svg) {
|
|
6528
|
+
priv._link_drag_svg.remove();
|
|
6529
|
+
priv._link_drag_svg = null;
|
|
6530
|
+
}
|
|
6531
|
+
exit_linking_mode(gobj);
|
|
6532
|
+
}
|
|
6533
|
+
|
|
6506
6534
|
document.addEventListener('pointermove', onPointerMove);
|
|
6507
6535
|
document.addEventListener('pointerup', onPointerUp);
|
|
6536
|
+
document.addEventListener('pointercancel', onPointerCancel);
|
|
6508
6537
|
}
|
|
6509
6538
|
|
|
6510
6539
|
/************************************************************
|
|
@@ -6744,6 +6773,7 @@ function start_port_resize(gobj, e)
|
|
|
6744
6773
|
function onPointerUp(ev) {
|
|
6745
6774
|
document.removeEventListener('pointermove', onPointerMove);
|
|
6746
6775
|
document.removeEventListener('pointerup', onPointerUp);
|
|
6776
|
+
document.removeEventListener('pointercancel', onPointerCancel);
|
|
6747
6777
|
|
|
6748
6778
|
// Calculate new radius in world coordinates
|
|
6749
6779
|
const dx = ev.clientX - clientCx;
|
|
@@ -6769,8 +6799,19 @@ function start_port_resize(gobj, e)
|
|
|
6769
6799
|
});
|
|
6770
6800
|
}
|
|
6771
6801
|
|
|
6802
|
+
/* A cancelled pointer (the browser took the touch) is no drop: the
|
|
6803
|
+
* listeners go, and what was there stays. Without it they stayed
|
|
6804
|
+
* on `document` until some later pointerup, which then dropped. */
|
|
6805
|
+
function onPointerCancel(ev) {
|
|
6806
|
+
document.removeEventListener('pointermove', onPointerMove);
|
|
6807
|
+
document.removeEventListener('pointerup', onPointerUp);
|
|
6808
|
+
document.removeEventListener('pointercancel', onPointerCancel);
|
|
6809
|
+
update_port_resize_handles_position(gobj);
|
|
6810
|
+
}
|
|
6811
|
+
|
|
6772
6812
|
document.addEventListener('pointermove', onPointerMove);
|
|
6773
6813
|
document.addEventListener('pointerup', onPointerUp);
|
|
6814
|
+
document.addEventListener('pointercancel', onPointerCancel);
|
|
6774
6815
|
}
|
|
6775
6816
|
|
|
6776
6817
|
/************************************************************
|