@yuneta/gobj-ui 7.27.16 → 7.27.18

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.
@@ -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
@@ -32538,7 +32546,7 @@ function build_ui$5(gobj) {
32538
32546
  "aria-label": (0, i18next.t)("schema"),
32539
32547
  "data-i18n-aria-label": "schema"
32540
32548
  },
32541
- [yui_toolbar_icon("yi-hexagon-nodes"), [
32549
+ [yui_toolbar_icon("yi-compass-drafting"), [
32542
32550
  "span",
32543
32551
  {
32544
32552
  class: "is-hidden-mobile",
@@ -32590,7 +32598,7 @@ function build_ui$5(gobj) {
32590
32598
  "aria-label": (0, i18next.t)("columns"),
32591
32599
  "data-i18n-aria-label": "columns"
32592
32600
  },
32593
- [yui_toolbar_icon("yi-table"), [
32601
+ [yui_toolbar_icon("yi-columns"), [
32594
32602
  "span",
32595
32603
  {
32596
32604
  class: "is-hidden-mobile",
@@ -33760,7 +33768,7 @@ function open_schema_dialog(gobj) {
33760
33768
  logical_class: "TREEDB_SCHEMA",
33761
33769
  title_prefix: (0, _yuneta_gobj_js.gobj_read_str_attr)(gobj, "topic_name"),
33762
33770
  title: "schema",
33763
- icon: "yi-table",
33771
+ icon: "yi-compass-drafting",
33764
33772
  forget_window: function() {
33765
33773
  priv.schema_win = null;
33766
33774
  },
@@ -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-fullscreen", (0, i18next.t)("expand node"), "toggle_node_mode"));
70452
- else items.push(ctx_item("g6-icon-fullscreen-exit", (0, i18next.t)("collapse node"), "toggle_node_mode"));
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-delete", (0, i18next.t)("unlink"), "unlink_edge"));
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"));
@@ -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
@@ -32533,7 +32541,7 @@ function build_ui$5(gobj) {
32533
32541
  "aria-label": t("schema"),
32534
32542
  "data-i18n-aria-label": "schema"
32535
32543
  },
32536
- [yui_toolbar_icon("yi-hexagon-nodes"), [
32544
+ [yui_toolbar_icon("yi-compass-drafting"), [
32537
32545
  "span",
32538
32546
  {
32539
32547
  class: "is-hidden-mobile",
@@ -32585,7 +32593,7 @@ function build_ui$5(gobj) {
32585
32593
  "aria-label": t("columns"),
32586
32594
  "data-i18n-aria-label": "columns"
32587
32595
  },
32588
- [yui_toolbar_icon("yi-table"), [
32596
+ [yui_toolbar_icon("yi-columns"), [
32589
32597
  "span",
32590
32598
  {
32591
32599
  class: "is-hidden-mobile",
@@ -33755,7 +33763,7 @@ function open_schema_dialog(gobj) {
33755
33763
  logical_class: "TREEDB_SCHEMA",
33756
33764
  title_prefix: gobj_read_str_attr(gobj, "topic_name"),
33757
33765
  title: "schema",
33758
- icon: "yi-table",
33766
+ icon: "yi-compass-drafting",
33759
33767
  forget_window: function() {
33760
33768
  priv.schema_win = null;
33761
33769
  },
@@ -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-fullscreen", t("expand node"), "toggle_node_mode"));
70447
- else items.push(ctx_item("g6-icon-fullscreen-exit", t("collapse node"), "toggle_node_mode"));
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-delete", t("unlink"), "unlink_edge"));
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.27.16",
3
+ "version": "7.27.18",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -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-fullscreen', t('expand node'), 'toggle_node_mode'));
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-fullscreen-exit', t('collapse node'), 'toggle_node_mode'));
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-delete', t('unlink'), 'unlink_edge'));
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'));
@@ -837,7 +837,7 @@ function build_ui(gobj)
837
837
  ['button', {class: 'TREEDB_TABLE_SCHEMA button mr-1',
838
838
  title: t('schema'), 'data-i18n-title': 'schema',
839
839
  'aria-label': t('schema'), 'data-i18n-aria-label': 'schema'}, [
840
- yui_toolbar_icon('yi-hexagon-nodes'),
840
+ yui_toolbar_icon('yi-compass-drafting'),
841
841
  ['span', {class: 'is-hidden-mobile', i18n: 'schema', style: 'padding-left:5px;'}, 'schema']
842
842
  ], {
843
843
  'click': (event) => {
@@ -880,7 +880,7 @@ function build_ui(gobj)
880
880
  title: t('choose the columns to show'),
881
881
  'data-i18n-title': 'choose the columns to show',
882
882
  'aria-label': t('columns'), 'data-i18n-aria-label': 'columns'}, [
883
- yui_toolbar_icon('yi-table'),
883
+ yui_toolbar_icon('yi-columns'),
884
884
  ['span', {class: 'is-hidden-mobile', i18n: 'columns', style: 'padding-left:5px;'}, 'columns']
885
885
  ], {
886
886
  'click': (event) => {
@@ -2704,7 +2704,7 @@ function open_schema_dialog(gobj)
2704
2704
  logical_class: "TREEDB_SCHEMA",
2705
2705
  title_prefix: gobj_read_str_attr(gobj, "topic_name"),
2706
2706
  title: "schema",
2707
- icon: "yi-table",
2707
+ icon: "yi-compass-drafting",
2708
2708
  forget_window: function() {
2709
2709
  priv.schema_win = null;
2710
2710
  },
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