@yuneta/gobj-ui 7.27.15 → 7.27.17
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/dist/gobj-ui.cjs.js +11 -3
- package/dist/gobj-ui.es.js +11 -3
- package/package.json +1 -1
- package/src/c_g6_nodes_tree.js +3 -3
- package/src/lib_icons.js +8 -0
- package/src/yui_icons.css +7 -0
package/dist/gobj-ui.cjs.js
CHANGED
|
@@ -9306,6 +9306,14 @@ var ICONS = `<svg xmlns="http://www.w3.org/2000/svg">
|
|
|
9306
9306
|
<symbol id="g6-icon-plus" viewBox="0 0 512 512">
|
|
9307
9307
|
<path fill="currentColor" d="M316 32 L316 196 L480 196 L480 316 L316 316 L316 480 L196 480 L196 316 L32 316 L32 196 L196 196 L196 32 Z"/>
|
|
9308
9308
|
</symbol>
|
|
9309
|
+
<!-- chevron-down / chevron-up (expand / collapse ONE node): a chevron
|
|
9310
|
+
opens or closes one thing; the four corners are full screen. -->
|
|
9311
|
+
<symbol id="g6-icon-chevron-down" viewBox="0 0 512 512">
|
|
9312
|
+
<path fill="currentColor" d="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/>
|
|
9313
|
+
</symbol>
|
|
9314
|
+
<symbol id="g6-icon-chevron-up" viewBox="0 0 512 512">
|
|
9315
|
+
<path fill="currentColor" d="M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"/>
|
|
9316
|
+
</symbol>
|
|
9309
9317
|
<!-- ellipsis-vertical (unfold the floating toolbar).
|
|
9310
9318
|
The strip it stands for is a vertical stack, and a vertical
|
|
9311
9319
|
ellipsis is what "there is more of this here" is drawn as
|
|
@@ -70448,8 +70456,8 @@ function ctx_item(icon_id, label, value) {
|
|
|
70448
70456
|
function build_node_context_menu(gobj, node_id) {
|
|
70449
70457
|
let items = [];
|
|
70450
70458
|
inject_svg_icons();
|
|
70451
|
-
if (node_is_compact(gobj, node_id)) items.push(ctx_item("g6-icon-
|
|
70452
|
-
else items.push(ctx_item("g6-icon-
|
|
70459
|
+
if (node_is_compact(gobj, node_id)) items.push(ctx_item("g6-icon-chevron-down", (0, i18next.t)("expand node"), "toggle_node_mode"));
|
|
70460
|
+
else items.push(ctx_item("g6-icon-chevron-up", (0, i18next.t)("collapse node"), "toggle_node_mode"));
|
|
70453
70461
|
if (gobj.priv.edit_mode && !node_is_compact(gobj, node_id)) {
|
|
70454
70462
|
items.push(ctx_item("g6-icon-resize", (0, i18next.t)("resize all"), "resize_all_nodes"));
|
|
70455
70463
|
items.push(ctx_item("g6-icon-resize", (0, i18next.t)("resize topic nodes"), "resize_topic_nodes"));
|
|
@@ -70486,7 +70494,7 @@ function build_edge_context_menu(gobj) {
|
|
|
70486
70494
|
if (gobj.priv.edit_mode) {
|
|
70487
70495
|
inject_svg_icons();
|
|
70488
70496
|
items.push(ctx_item("g6-icon-edit", (0, i18next.t)("edge properties"), "edge_properties"));
|
|
70489
|
-
items.push(ctx_item("g6-icon-
|
|
70497
|
+
items.push(ctx_item("g6-icon-unlink", (0, i18next.t)("unlink"), "unlink_edge"));
|
|
70490
70498
|
items.push(ctx_item("g6-icon-undo", (0, i18next.t)("reset edge"), "reset_edge"));
|
|
70491
70499
|
items.push(ctx_item("g6-icon-undo", (0, i18next.t)("reset same type edges"), "reset_same_type_edges"));
|
|
70492
70500
|
items.push(ctx_item("g6-icon-undo", (0, i18next.t)("reset all edges"), "reset_all_edges"));
|
package/dist/gobj-ui.es.js
CHANGED
|
@@ -9301,6 +9301,14 @@ var ICONS = `<svg xmlns="http://www.w3.org/2000/svg">
|
|
|
9301
9301
|
<symbol id="g6-icon-plus" viewBox="0 0 512 512">
|
|
9302
9302
|
<path fill="currentColor" d="M316 32 L316 196 L480 196 L480 316 L316 316 L316 480 L196 480 L196 316 L32 316 L32 196 L196 196 L196 32 Z"/>
|
|
9303
9303
|
</symbol>
|
|
9304
|
+
<!-- chevron-down / chevron-up (expand / collapse ONE node): a chevron
|
|
9305
|
+
opens or closes one thing; the four corners are full screen. -->
|
|
9306
|
+
<symbol id="g6-icon-chevron-down" viewBox="0 0 512 512">
|
|
9307
|
+
<path fill="currentColor" d="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/>
|
|
9308
|
+
</symbol>
|
|
9309
|
+
<symbol id="g6-icon-chevron-up" viewBox="0 0 512 512">
|
|
9310
|
+
<path fill="currentColor" d="M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"/>
|
|
9311
|
+
</symbol>
|
|
9304
9312
|
<!-- ellipsis-vertical (unfold the floating toolbar).
|
|
9305
9313
|
The strip it stands for is a vertical stack, and a vertical
|
|
9306
9314
|
ellipsis is what "there is more of this here" is drawn as
|
|
@@ -70443,8 +70451,8 @@ function ctx_item(icon_id, label, value) {
|
|
|
70443
70451
|
function build_node_context_menu(gobj, node_id) {
|
|
70444
70452
|
let items = [];
|
|
70445
70453
|
inject_svg_icons();
|
|
70446
|
-
if (node_is_compact(gobj, node_id)) items.push(ctx_item("g6-icon-
|
|
70447
|
-
else items.push(ctx_item("g6-icon-
|
|
70454
|
+
if (node_is_compact(gobj, node_id)) items.push(ctx_item("g6-icon-chevron-down", t("expand node"), "toggle_node_mode"));
|
|
70455
|
+
else items.push(ctx_item("g6-icon-chevron-up", t("collapse node"), "toggle_node_mode"));
|
|
70448
70456
|
if (gobj.priv.edit_mode && !node_is_compact(gobj, node_id)) {
|
|
70449
70457
|
items.push(ctx_item("g6-icon-resize", t("resize all"), "resize_all_nodes"));
|
|
70450
70458
|
items.push(ctx_item("g6-icon-resize", t("resize topic nodes"), "resize_topic_nodes"));
|
|
@@ -70481,7 +70489,7 @@ function build_edge_context_menu(gobj) {
|
|
|
70481
70489
|
if (gobj.priv.edit_mode) {
|
|
70482
70490
|
inject_svg_icons();
|
|
70483
70491
|
items.push(ctx_item("g6-icon-edit", t("edge properties"), "edge_properties"));
|
|
70484
|
-
items.push(ctx_item("g6-icon-
|
|
70492
|
+
items.push(ctx_item("g6-icon-unlink", t("unlink"), "unlink_edge"));
|
|
70485
70493
|
items.push(ctx_item("g6-icon-undo", t("reset edge"), "reset_edge"));
|
|
70486
70494
|
items.push(ctx_item("g6-icon-undo", t("reset same type edges"), "reset_same_type_edges"));
|
|
70487
70495
|
items.push(ctx_item("g6-icon-undo", t("reset all edges"), "reset_all_edges"));
|
package/package.json
CHANGED
package/src/c_g6_nodes_tree.js
CHANGED
|
@@ -9528,9 +9528,9 @@ function build_node_context_menu(gobj, node_id)
|
|
|
9528
9528
|
/* Open or close THIS node against the mode: the door a finger
|
|
9529
9529
|
* has to it (a double click is the mouse's). */
|
|
9530
9530
|
if(node_is_compact(gobj, node_id)) {
|
|
9531
|
-
items.push(ctx_item('g6-icon-
|
|
9531
|
+
items.push(ctx_item('g6-icon-chevron-down', t('expand node'), 'toggle_node_mode'));
|
|
9532
9532
|
} else {
|
|
9533
|
-
items.push(ctx_item('g6-icon-
|
|
9533
|
+
items.push(ctx_item('g6-icon-chevron-up', t('collapse node'), 'toggle_node_mode'));
|
|
9534
9534
|
}
|
|
9535
9535
|
|
|
9536
9536
|
if(gobj.priv.edit_mode && !node_is_compact(gobj, node_id)) {
|
|
@@ -9584,7 +9584,7 @@ function build_edge_context_menu(gobj)
|
|
|
9584
9584
|
if(gobj.priv.edit_mode) {
|
|
9585
9585
|
inject_svg_icons();
|
|
9586
9586
|
items.push(ctx_item('g6-icon-edit', t('edge properties'), 'edge_properties'));
|
|
9587
|
-
items.push(ctx_item('g6-icon-
|
|
9587
|
+
items.push(ctx_item('g6-icon-unlink', t('unlink'), 'unlink_edge'));
|
|
9588
9588
|
items.push(ctx_item('g6-icon-undo', t('reset edge'), 'reset_edge'));
|
|
9589
9589
|
items.push(ctx_item('g6-icon-undo', t('reset same type edges'), 'reset_same_type_edges'));
|
|
9590
9590
|
items.push(ctx_item('g6-icon-undo', t('reset all edges'), 'reset_all_edges'));
|
package/src/lib_icons.js
CHANGED
|
@@ -123,6 +123,14 @@ const ICONS = `<svg xmlns="http://www.w3.org/2000/svg">
|
|
|
123
123
|
<symbol id="g6-icon-plus" viewBox="0 0 512 512">
|
|
124
124
|
<path fill="currentColor" d="M316 32 L316 196 L480 196 L480 316 L316 316 L316 480 L196 480 L196 316 L32 316 L32 196 L196 196 L196 32 Z"/>
|
|
125
125
|
</symbol>
|
|
126
|
+
<!-- chevron-down / chevron-up (expand / collapse ONE node): a chevron
|
|
127
|
+
opens or closes one thing; the four corners are full screen. -->
|
|
128
|
+
<symbol id="g6-icon-chevron-down" viewBox="0 0 512 512">
|
|
129
|
+
<path fill="currentColor" d="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/>
|
|
130
|
+
</symbol>
|
|
131
|
+
<symbol id="g6-icon-chevron-up" viewBox="0 0 512 512">
|
|
132
|
+
<path fill="currentColor" d="M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"/>
|
|
133
|
+
</symbol>
|
|
126
134
|
<!-- ellipsis-vertical (unfold the floating toolbar).
|
|
127
135
|
The strip it stands for is a vertical stack, and a vertical
|
|
128
136
|
ellipsis is what "there is more of this here" is drawn as
|
package/src/yui_icons.css
CHANGED
|
@@ -766,6 +766,13 @@
|
|
|
766
766
|
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z'/%3E%3C/svg%3E");
|
|
767
767
|
}
|
|
768
768
|
|
|
769
|
+
/* A message to the user: a dialog, the message box of every desktop
|
|
770
|
+
* (FontAwesome Free 7.3.1). */
|
|
771
|
+
.yi-message::before {
|
|
772
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M0 352L0 128C0 75 43 32 96 32l320 0c53 0 96 43 96 96l0 224c0 53-43 96-96 96l-120 0c-5.2 0-10.2 1.7-14.4 4.8L166.4 539.2c-4.2 3.1-9.2 4.8-14.4 4.8-13.3 0-24-10.7-24-24l0-72-32 0c-53 0-96-43-96-96z'/%3E%3C/svg%3E");
|
|
773
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M0 352L0 128C0 75 43 32 96 32l320 0c53 0 96 43 96 96l0 224c0 53-43 96-96 96l-120 0c-5.2 0-10.2 1.7-14.4 4.8L166.4 539.2c-4.2 3.1-9.2 4.8-14.4 4.8-13.3 0-24-10.7-24-24l0-72-32 0c-53 0-96-43-96-96z'/%3E%3C/svg%3E");
|
|
774
|
+
}
|
|
775
|
+
|
|
769
776
|
/*
|
|
770
777
|
* A user icon drawn straight from its svg, before (or without) being
|
|
771
778
|
* registered as a class -- the preview of the form, the cells of
|