@yuneta/gobj-ui 7.26.8 → 7.26.9

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.
@@ -914,6 +914,7 @@ var PRIVATE_DATA$22 = {
914
914
  overlay_stack: [],
915
915
  overlay_seq: 0,
916
916
  expected_pops: 0,
917
+ pending_markers: [],
917
918
  popstate_handler: null,
918
919
  avatar_provider: null,
919
920
  avatar_nodes: [],
@@ -971,6 +972,7 @@ function mt_start$20(gobj) {
971
972
  if (!p) return;
972
973
  if (p.expected_pops > 0) {
973
974
  p.expected_pops--;
975
+ if (p.expected_pops === 0) push_pending_markers(gobj);
974
976
  return;
975
977
  }
976
978
  if (p.overlay_stack.length === 0) return;
@@ -2416,14 +2418,35 @@ function push_overlay_history(gobj, close, opts) {
2416
2418
  keep_on_navigate: !!(opts && opts.keep_on_navigate)
2417
2419
  };
2418
2420
  priv.overlay_stack.push(entry);
2421
+ if (priv.expected_pops > 0) {
2422
+ entry.marker_pending = true;
2423
+ priv.pending_markers.push(entry);
2424
+ return entry;
2425
+ }
2426
+ if (!push_overlay_marker(gobj, entry)) return null;
2427
+ return entry;
2428
+ }
2429
+ function push_overlay_marker(gobj, entry) {
2430
+ let priv = gobj.priv;
2419
2431
  try {
2420
2432
  window.history.pushState({ __yui_overlay__: entry.id }, "");
2421
2433
  } catch (e) {
2422
- priv.overlay_stack.pop();
2434
+ let idx = priv.overlay_stack.indexOf(entry);
2435
+ if (idx >= 0) priv.overlay_stack.splice(idx, 1);
2423
2436
  log_warning(`C_YUI_SHELL: overlay pushState failed: ${e}`);
2424
- return null;
2437
+ return false;
2438
+ }
2439
+ return true;
2440
+ }
2441
+ function push_pending_markers(gobj) {
2442
+ let priv = gobj.priv;
2443
+ let pending = priv.pending_markers.splice(0);
2444
+ for (let entry of pending) {
2445
+ entry.marker_pending = false;
2446
+ if (entry.dismissed || priv.overlay_stack.indexOf(entry) < 0) continue;
2447
+ entry.hash = window.location.hash;
2448
+ push_overlay_marker(gobj, entry);
2425
2449
  }
2426
- return entry;
2427
2450
  }
2428
2451
  function overlay_dismissed(gobj, entry) {
2429
2452
  let priv = gobj.priv;
@@ -2432,6 +2455,7 @@ function overlay_dismissed(gobj, entry) {
2432
2455
  let idx = priv.overlay_stack.indexOf(entry);
2433
2456
  if (idx < 0) return;
2434
2457
  priv.overlay_stack.splice(idx, 1);
2458
+ if (entry.marker_pending) return;
2435
2459
  let st = window.history.state;
2436
2460
  if (st && st.__yui_overlay__ === entry.id) {
2437
2461
  priv.expected_pops++;
@@ -3055,6 +3079,16 @@ function text_node(value) {
3055
3079
  if (value === null || value === void 0) return document.createTextNode("");
3056
3080
  return document.createTextNode(String(value).trim());
3057
3081
  }
3082
+ /************************************************************
3083
+ * A Tabulator `titleFormatter` that shows the column title as text.
3084
+ *
3085
+ * Tabulator puts a STRING title in with innerHTML, so a title taken
3086
+ * from a schema (`header`, which the schema editor writes) is markup
3087
+ * unless the column carries a formatter that returns a Node.
3088
+ ************************************************************/
3089
+ function text_title_formatter(cell) {
3090
+ return text_node(cell.getValue());
3091
+ }
3058
3092
  //#endregion
3059
3093
  //#region src/shell_modals.js
3060
3094
  /***********************************************************************
@@ -3277,7 +3311,7 @@ function yui_shell_show_modal(shell, content, opts) {
3277
3311
  class: "MODAL_TITLE_KIND",
3278
3312
  i18n: title
3279
3313
  },
3280
- title
3314
+ text_node(title)
3281
3315
  ]] : [])
3282
3316
  ],
3283
3317
  [
@@ -3466,7 +3500,7 @@ function build_dialog(shell, message, buttons, opts) {
3466
3500
  class: "CONFIRM_TITLE yui-confirm-title has-text-centered",
3467
3501
  i18n: title
3468
3502
  },
3469
- title
3503
+ text_node(title)
3470
3504
  ]);
3471
3505
  $card_children.push(["button", {
3472
3506
  class: "CONFIRM_CLOSE delete yui-confirm-x",
@@ -3840,7 +3874,7 @@ function build_default_header(gobj) {
3840
3874
  class: "WINDOW_TITLE_KIND has-text-weight-semibold",
3841
3875
  i18n: title
3842
3876
  },
3843
- title
3877
+ text_node(title)
3844
3878
  ]);
3845
3879
  return createElement2([
3846
3880
  "span",
@@ -6604,12 +6638,12 @@ function yui_asset_element(answer, opts = {}) {
6604
6638
  const children = [[
6605
6639
  "span",
6606
6640
  { class: "ASSET_OTHER_TYPE" },
6607
- String(answer.content_type || "?")
6641
+ text_node(answer.content_type || "?")
6608
6642
  ]];
6609
6643
  if (opts.detail) children.push([
6610
6644
  "span",
6611
6645
  { class: "ASSET_OTHER_DETAIL" },
6612
- String(opts.detail)
6646
+ text_node(opts.detail)
6613
6647
  ]);
6614
6648
  const $card = createElement2([
6615
6649
  "div",
@@ -8602,6 +8636,7 @@ function destroy_ui$10(gobj) {
8602
8636
  let $container = gobj_read_attr(gobj, "$container");
8603
8637
  if ($container) {
8604
8638
  destroy_widgets(gobj, $container);
8639
+ if (gobj.priv && gobj.priv.tables) gobj.priv.tables.clear();
8605
8640
  if ($container.parentNode) $container.parentNode.removeChild($container);
8606
8641
  gobj_write_attr(gobj, "$container", null);
8607
8642
  }
@@ -8640,6 +8675,7 @@ function cell_icon(icon_class, key) {
8640
8675
  function table_identity(gobj, $table) {
8641
8676
  if (!$table.yui_table_id) {
8642
8677
  let priv = gobj.priv;
8678
+ for (let [id, ref] of priv.tables) if (!ref.deref()) priv.tables.delete(id);
8643
8679
  priv.table_seq += 1;
8644
8680
  $table.yui_table_id = `t${priv.table_seq}`;
8645
8681
  priv.tables.set($table.yui_table_id, new WeakRef($table));
@@ -8678,11 +8714,15 @@ function destroy_widgets(gobj, $container) {
8678
8714
  log_warning(`${gobj_short_name(gobj)}: cannot destroy ${what}: ${e}`);
8679
8715
  }
8680
8716
  };
8717
+ let forget = ($el) => {
8718
+ if ($el.yui_table_id && gobj.priv && gobj.priv.tables) gobj.priv.tables.delete($el.yui_table_id);
8719
+ };
8681
8720
  $container.querySelectorAll(".yui-tabulator-table-nested").forEach(($el) => {
8682
8721
  if ($el.tabulator) {
8683
8722
  destroy("nested table", $el.tabulator);
8684
8723
  $el.tabulator = null;
8685
8724
  }
8725
+ forget($el);
8686
8726
  });
8687
8727
  $container.querySelectorAll(".yui-form-data-input").forEach(($el) => {
8688
8728
  if ($el.tom_select) {
@@ -8697,6 +8737,7 @@ function destroy_widgets(gobj, $container) {
8697
8737
  destroy("table", $el.tabulator);
8698
8738
  $el.tabulator = null;
8699
8739
  }
8740
+ forget($el);
8700
8741
  });
8701
8742
  }
8702
8743
  /******************************************************************
@@ -8735,6 +8776,16 @@ function name_form_control($field, conf) {
8735
8776
  if ($clear) {
8736
8777
  const CLEAR_KEY = "remove all selected options";
8737
8778
  $clear.setAttribute("role", "button");
8779
+ $clear.setAttribute("tabindex", "0");
8780
+ if (!$clear.yui_keys_wired) {
8781
+ $clear.yui_keys_wired = true;
8782
+ $clear.addEventListener("keydown", function(evt) {
8783
+ if (evt.key === "Enter" || evt.key === " ") {
8784
+ evt.preventDefault();
8785
+ $clear.click();
8786
+ }
8787
+ });
8788
+ }
8738
8789
  $clear.setAttribute("title", t(CLEAR_KEY));
8739
8790
  $clear.setAttribute("data-i18n-title", CLEAR_KEY);
8740
8791
  $clear.setAttribute("aria-label", t(CLEAR_KEY));
@@ -9919,6 +9970,7 @@ function template2columns(gobj, columns, template, sub_elements) {
9919
9970
  let column = {
9920
9971
  field: field_desc.name,
9921
9972
  title: t(field_desc.header || field_desc.name),
9973
+ titleFormatter: text_title_formatter,
9922
9974
  editable: get_editable_state,
9923
9975
  editor: false,
9924
9976
  headerWordWrap: true,
@@ -10760,8 +10812,8 @@ function ac_add_table_row(gobj, event, kw, src) {
10760
10812
  });
10761
10813
  setTimeout(function() {
10762
10814
  if (gobj_is_destroying(gobj)) return;
10763
- let $outer = $table.closest(".yui-tabulator-table");
10764
- if ($outer && $outer.tabulator) $outer.tabulator.redraw();
10815
+ let $target = loading ? $table : $table.closest(".yui-tabulator-table");
10816
+ if ($target && $target.tabulator) $target.tabulator.redraw();
10765
10817
  }, 30);
10766
10818
  return 0;
10767
10819
  }
@@ -19650,7 +19702,7 @@ function event_flag_chips(flags) {
19650
19702
  return [
19651
19703
  "span",
19652
19704
  { class: cls },
19653
- flag.replace("EVF_", "")
19705
+ text_node(flag.replace("EVF_", ""))
19654
19706
  ];
19655
19707
  });
19656
19708
  }
@@ -21822,14 +21874,18 @@ function restore_view_anchored(gobj, anchor) {
21822
21874
  if (!new_node_id) return;
21823
21875
  if (typeof anchor.zoom === "number" && anchor.zoom > 0) try {
21824
21876
  graph.zoomTo(anchor.zoom);
21825
- } catch (e) {}
21877
+ } catch (e) {
21878
+ log_warning(`${gobj_short_name(gobj)}: zoom not restored: ${e}`);
21879
+ }
21826
21880
  try {
21827
21881
  let canvas_pos = graph.getElementPosition(new_node_id);
21828
21882
  let vp = graph.getViewportByCanvas([canvas_pos[0], canvas_pos[1]]);
21829
21883
  let dx = anchor.viewport_x - vp[0];
21830
21884
  let dy = anchor.viewport_y - vp[1];
21831
21885
  graph.translateBy([dx, dy]);
21832
- } catch (e) {}
21886
+ } catch (e) {
21887
+ log_warning(`${gobj_short_name(gobj)}: anchor node not put back at its screen spot: ${e}`);
21888
+ }
21833
21889
  }
21834
21890
  /************************************************************
21835
21891
  * Capture the current screen position + zoom of a node,
@@ -23574,7 +23630,7 @@ function render_submenu(gobj, items) {
23574
23630
  class: "menu-label",
23575
23631
  i18n: nav_label
23576
23632
  } : { class: "menu-label" },
23577
- nav_label || "—"
23633
+ text_node(nav_label || "—")
23578
23634
  ], [
23579
23635
  "ul",
23580
23636
  { class: "menu-list" },
@@ -23611,7 +23667,7 @@ function render_accordion(gobj, items) {
23611
23667
  let $hdr = createElement2([
23612
23668
  "button",
23613
23669
  head_attrs,
23614
- head_text
23670
+ text_node(head_text)
23615
23671
  ]);
23616
23672
  $container.appendChild($hdr);
23617
23673
  let $ul = createElement2(["ul", {
@@ -25433,7 +25489,7 @@ function topic_card_meta(desc) {
25433
25489
  title: t("version"),
25434
25490
  "data-i18n-title": "version"
25435
25491
  },
25436
- `v${desc.topic_version}`
25492
+ text_node(`v${desc.topic_version}`)
25437
25493
  ]);
25438
25494
  head.push([
25439
25495
  "span",
@@ -25441,7 +25497,7 @@ function topic_card_meta(desc) {
25441
25497
  [[
25442
25498
  "span",
25443
25499
  {},
25444
- `${n_cols}`
25500
+ text_node(n_cols)
25445
25501
  ], [
25446
25502
  "span",
25447
25503
  { i18n: "columns" },
@@ -25472,7 +25528,7 @@ function topic_card_meta(desc) {
25472
25528
  ], [
25473
25529
  "span",
25474
25530
  { class: "TREEDB_TOPIC_CARD_REL_LIST" },
25475
- list
25531
+ text_node(list)
25476
25532
  ]]
25477
25533
  ]);
25478
25534
  }
@@ -25504,7 +25560,7 @@ function topic_card_meta(desc) {
25504
25560
  [
25505
25561
  "span",
25506
25562
  { class: "TREEDB_TOPIC_CARD_REL_LIST" },
25507
- list
25563
+ text_node(list)
25508
25564
  ]
25509
25565
  ]
25510
25566
  ];
@@ -25782,7 +25838,7 @@ function build_topic_info_panel(gobj, $info, topic, desc) {
25782
25838
  if (desc.topic_version !== void 0 && desc.topic_version !== null && desc.topic_version !== "") push_meta("version", [
25783
25839
  "span",
25784
25840
  { class: "tag is-info" },
25785
- `${desc.topic_version}`
25841
+ text_node(desc.topic_version)
25786
25842
  ]);
25787
25843
  let sf_names = system_flag_names(desc.system_flag);
25788
25844
  if (sf_names.length > 0) push_meta("system", [
@@ -25837,18 +25893,18 @@ function build_topic_info_panel(gobj, $info, topic, desc) {
25837
25893
  [[
25838
25894
  "code",
25839
25895
  is_key ? { class: "has-text-weight-bold" } : {},
25840
- `${col.id}`
25896
+ text_node(col.id)
25841
25897
  ]]
25842
25898
  ],
25843
25899
  [
25844
25900
  "td",
25845
25901
  {},
25846
- `${type}`
25902
+ text_node(type)
25847
25903
  ],
25848
25904
  [
25849
25905
  "td",
25850
25906
  is_key ? { class: "has-text-weight-semibold" } : {},
25851
- `${rel}`
25907
+ text_node(rel)
25852
25908
  ]
25853
25909
  ]
25854
25910
  ]);
@@ -25870,7 +25926,7 @@ function build_topic_info_panel(gobj, $info, topic, desc) {
25870
25926
  ], [
25871
25927
  "span",
25872
25928
  { i18n: `${topic}` },
25873
- `${topic}`
25929
+ text_node(topic)
25874
25930
  ]]
25875
25931
  ]]
25876
25932
  ],
@@ -29030,7 +29086,7 @@ function col_title_formatter(gobj, col) {
29030
29086
  return createElement2([
29031
29087
  "span",
29032
29088
  attrs,
29033
- text
29089
+ text_node(text)
29034
29090
  ]);
29035
29091
  };
29036
29092
  }
@@ -29529,7 +29585,7 @@ function file_cell_formatter(cell, formatterParams, onRendered) {
29529
29585
  const children = [["span", { class: "FILE_CELL_ICON icon yi-eye" }], [
29530
29586
  "span",
29531
29587
  { class: "FILE_CELL_ID" },
29532
- yui_file_id_label(ids[0])
29588
+ text_node(yui_file_id_label(ids[0]))
29533
29589
  ]];
29534
29590
  if (ids.length > 1) children.push([
29535
29591
  "span",
@@ -31463,7 +31519,7 @@ function build_delete_question(gobj, records) {
31463
31519
  ], [
31464
31520
  "strong",
31465
31521
  {},
31466
- String(one[pkey])
31522
+ text_node(one[pkey])
31467
31523
  ]]
31468
31524
  ]);
31469
31525
  else lines.push([
@@ -31708,7 +31764,7 @@ function ac_open_columns(gobj, event, kw, src) {
31708
31764
  [$cb, [
31709
31765
  "span",
31710
31766
  { class: "ml-2" },
31711
- column.getDefinition().title || field
31767
+ text_node(column.getDefinition().title || field)
31712
31768
  ]]
31713
31769
  ]));
31714
31770
  }
@@ -60399,6 +60455,34 @@ function ensure_brush_select_owned() {
60399
60455
  __brush_select_registered__ = true;
60400
60456
  }
60401
60457
  //#endregion
60458
+ //#region src/yui_data_color.js
60459
+ /***********************************************************************
60460
+ * yui_data_color.js
60461
+ *
60462
+ * A colour read from DATA, checked before it goes into markup.
60463
+ *
60464
+ * A card of the treedb graph is html, and the colour a user gave it
60465
+ * (a `__graphs__` record) is written into its `style="..."`. A value
60466
+ * like `red" onmouseover="...` would leave the attribute and run.
60467
+ * Only the plain colour syntaxes pass -- hex, the rgb()/hsl()
60468
+ * functions, a name -- and the browser, where it can, also checks
60469
+ * that it is a colour.
60470
+ *
60471
+ * Copyright (c) 2026, ArtGins.
60472
+ * All Rights Reserved.
60473
+ ***********************************************************************/
60474
+ var DATA_COLOR_RE = /^(#[0-9a-f]{3,8}|(rgb|rgba|hsl|hsla)\([0-9.,%\s/+-]+\)|[a-z]+)$/i;
60475
+ /************************************************************
60476
+ * `value` when it is a css colour, else null.
60477
+ ************************************************************/
60478
+ function css_color_or_null(value) {
60479
+ if (typeof value !== "string" || !DATA_COLOR_RE.test(value)) return null;
60480
+ if (typeof CSS !== "undefined" && CSS && typeof CSS.supports === "function") {
60481
+ if (!CSS.supports("color", value)) return null;
60482
+ }
60483
+ return value;
60484
+ }
60485
+ //#endregion
60402
60486
  //#region src/c_g6_nodes_tree.js
60403
60487
  /***********************************************************************
60404
60488
  * c_g6_nodes_tree.js
@@ -61694,6 +61778,17 @@ function topic_defaults_of(gobj, topic_name) {
61694
61778
  return is_object(topic_props) && is_object(topic_props.defaults) ? topic_props.defaults : null;
61695
61779
  }
61696
61780
  /************************************************************
61781
+ * A colour read from DATA (a `__graphs__` record), or null.
61782
+ * It is written into a card's html (see yui_data_color.js): a
61783
+ * refused value logs, and the node wears the topic's colour.
61784
+ ************************************************************/
61785
+ function data_color(gobj, value) {
61786
+ if (value === void 0 || value === null || value === "") return null;
61787
+ let color = css_color_or_null(value);
61788
+ if (!color) log_warning(`${gobj_short_name(gobj)}: colour refused, not a css colour: ${JSON.stringify(value)}`);
61789
+ return color;
61790
+ }
61791
+ /************************************************************
61697
61792
  * What a node is PAINTED with: its own colours, then the
61698
61793
  * topic's default, then the topic's colour.
61699
61794
  *
@@ -61709,10 +61804,10 @@ function topic_defaults_of(gobj, topic_name) {
61709
61804
  function node_paint_of(gobj, desc, geometry) {
61710
61805
  let defaults = topic_defaults_of(gobj, desc.topic_name);
61711
61806
  let g = is_object(geometry) ? geometry : {};
61712
- let fill = g.fill || defaults && defaults.fill || desc.color;
61807
+ let fill = data_color(gobj, g.fill) || data_color(gobj, defaults && defaults.fill) || desc.color;
61713
61808
  return {
61714
61809
  fill,
61715
- stroke: g.stroke || defaults && defaults.stroke || getStrokeColor(fill),
61810
+ stroke: data_color(gobj, g.stroke) || data_color(gobj, defaults && defaults.stroke) || getStrokeColor(fill),
61716
61811
  lineWidth: g.lineWidth || defaults && defaults.lineWidth || 1
61717
61812
  };
61718
61813
  }
@@ -63671,7 +63766,9 @@ function select_node(gobj, node_id) {
63671
63766
  history_pause(gobj);
63672
63767
  try {
63673
63768
  graph.setElementState(node_id, ["selected"]);
63674
- } catch (e) {}
63769
+ } catch (e) {
63770
+ log_warning(`${gobj_short_name(gobj)}: node state not set: ${e}`);
63771
+ }
63675
63772
  priv._selected_node_id = node_id;
63676
63773
  paint_selection(gobj, [node_id]);
63677
63774
  show_resize_handles(gobj);
@@ -63697,7 +63794,9 @@ function deselect_node(gobj) {
63697
63794
  let states = {};
63698
63795
  for (let id of clearing) states[id] = [];
63699
63796
  graph.setElementState(states);
63700
- } catch (e) {}
63797
+ } catch (e) {
63798
+ log_warning(`${gobj_short_name(gobj)}: node states not cleared: ${e}`);
63799
+ }
63701
63800
  priv._selected_node_id = null;
63702
63801
  paint_selection(gobj, []);
63703
63802
  graph_draw(gobj).then(() => {
@@ -64770,7 +64869,9 @@ function select_edge(gobj, edge_id) {
64770
64869
  history_pause(gobj);
64771
64870
  try {
64772
64871
  graph.setElementState(edge_id, ["selected"]);
64773
- } catch (e) {}
64872
+ } catch (e) {
64873
+ log_warning(`${gobj_short_name(gobj)}: edge state not set: ${e}`);
64874
+ }
64774
64875
  show_edge_icon(gobj);
64775
64876
  graph_draw(gobj).then(() => {
64776
64877
  history_resume(gobj);
@@ -64786,7 +64887,9 @@ function deselect_edge(gobj) {
64786
64887
  history_pause(gobj);
64787
64888
  try {
64788
64889
  graph.setElementState(priv._selected_edge_id, []);
64789
- } catch (e) {}
64890
+ } catch (e) {
64891
+ log_warning(`${gobj_short_name(gobj)}: edge state not cleared: ${e}`);
64892
+ }
64790
64893
  priv._selected_edge_id = null;
64791
64894
  graph_draw(gobj).then(() => {
64792
64895
  history_resume(gobj);
@@ -64876,7 +64979,9 @@ function show_edge_popover(gobj) {
64876
64979
  history_pause(gobj);
64877
64980
  try {
64878
64981
  graph.setElementState(edge_id, []);
64879
- } catch (e) {}
64982
+ } catch (e) {
64983
+ log_warning(`${gobj_short_name(gobj)}: edge state not cleared for the style preview: ${e}`);
64984
+ }
64880
64985
  graph_draw(gobj).then(() => {
64881
64986
  history_resume(gobj);
64882
64987
  });
@@ -74533,7 +74638,7 @@ function show_notice(gobj, key, detail, detail_is_key) {
74533
74638
  $notice.appendChild(createElement2([
74534
74639
  "span",
74535
74640
  attrs,
74536
- detail_is_key ? t(`${detail}`) : `${detail}`
74641
+ text_node(detail_is_key ? t(`${detail}`) : `${detail}`)
74537
74642
  ]));
74538
74643
  }
74539
74644
  }
@@ -74768,7 +74873,7 @@ function open_card(gobj, logical, title, icon, tags, event, kw) {
74768
74873
  ], [
74769
74874
  "span",
74770
74875
  { class: "ml-1" },
74771
- `${tag.text}`
74876
+ text_node(tag.text)
74772
74877
  ]] : `${tag.text}`
74773
74878
  ];
74774
74879
  });
@@ -74795,7 +74900,7 @@ function open_card(gobj, logical, title, icon, tags, event, kw) {
74795
74900
  ], [
74796
74901
  "span",
74797
74902
  { class: `${logical}_NAME has-text-weight-semibold` },
74798
- `${title}`
74903
+ text_node(title)
74799
74904
  ]]
74800
74905
  ], [
74801
74906
  "div",
@@ -74902,7 +75007,7 @@ function render_topics(gobj, $body) {
74902
75007
  [
74903
75008
  "span",
74904
75009
  { class: "has-text-weight-semibold" },
74905
- `${topic.name}`
75010
+ text_node(topic.name)
74906
75011
  ],
74907
75012
  topic.system_topic ? [
74908
75013
  "span",
@@ -74936,7 +75041,7 @@ function render_topics(gobj, $body) {
74936
75041
  [[
74937
75042
  "code",
74938
75043
  {},
74939
- `${topic.id}`
75044
+ text_node(topic.id)
74940
75045
  ]]
74941
75046
  ] : [
74942
75047
  "span",
@@ -74951,13 +75056,13 @@ function render_topics(gobj, $body) {
74951
75056
  [[
74952
75057
  "code",
74953
75058
  {},
74954
- `${topic.pkey || "id"}`
75059
+ text_node(topic.pkey || "id")
74955
75060
  ]]
74956
75061
  ],
74957
75062
  [
74958
75063
  "td",
74959
75064
  { class: "SCHEMA_TOPIC_COLS has-text-right" },
74960
- `${topic.cols.length}`
75065
+ text_node(topic.cols.length)
74961
75066
  ],
74962
75067
  [
74963
75068
  "td",
@@ -74965,7 +75070,7 @@ function render_topics(gobj, $body) {
74965
75070
  [[
74966
75071
  "span",
74967
75072
  { class: `tag ${pending ? "is-warning" : "is-info"} is-light` },
74968
- `${topic.topic_version === void 0 ? "?" : topic.topic_version}`
75073
+ text_node(topic.topic_version === void 0 ? "?" : topic.topic_version)
74969
75074
  ]]
74970
75075
  ],
74971
75076
  [
@@ -75241,7 +75346,7 @@ function column_row(gobj, topic, col, index, readonly, twice) {
75241
75346
  return [
75242
75347
  "span",
75243
75348
  { class: `SCHEMA_COL_FLAG tag ${yui_tint(flag_style(flag))}`.trimEnd() },
75244
- `${flag}`
75349
+ text_node(flag)
75245
75350
  ];
75246
75351
  });
75247
75352
  let link = "";
@@ -75277,7 +75382,7 @@ function column_row(gobj, topic, col, index, readonly, twice) {
75277
75382
  [
75278
75383
  "code",
75279
75384
  {},
75280
- `${col.name}`
75385
+ text_node(col.name)
75281
75386
  ],
75282
75387
  ambiguous ? [
75283
75388
  "span",
@@ -75285,7 +75390,7 @@ function column_row(gobj, topic, col, index, readonly, twice) {
75285
75390
  [[
75286
75391
  "code",
75287
75392
  {},
75288
- `${col.id}`
75393
+ text_node(col.id)
75289
75394
  ]]
75290
75395
  ] : [
75291
75396
  "span",
@@ -75309,7 +75414,7 @@ function column_row(gobj, topic, col, index, readonly, twice) {
75309
75414
  [
75310
75415
  "td",
75311
75416
  { class: "SCHEMA_COL_HEADER" },
75312
- `${record.header || ""}`
75417
+ text_node(record.header || "")
75313
75418
  ],
75314
75419
  [
75315
75420
  "td",
@@ -75317,7 +75422,7 @@ function column_row(gobj, topic, col, index, readonly, twice) {
75317
75422
  [[
75318
75423
  "code",
75319
75424
  {},
75320
- `${record.type || ""}`
75425
+ text_node(record.type || "")
75321
75426
  ]]
75322
75427
  ],
75323
75428
  [
@@ -75335,7 +75440,7 @@ function column_row(gobj, topic, col, index, readonly, twice) {
75335
75440
  [
75336
75441
  "td",
75337
75442
  { class: "SCHEMA_COL_LINK" },
75338
- `${link}`
75443
+ text_node(link)
75339
75444
  ],
75340
75445
  [
75341
75446
  "td",
@@ -75746,7 +75851,7 @@ function flags_field(gobj, type, current) {
75746
75851
  })], [
75747
75852
  "span",
75748
75853
  { class: "SCHEMA_FLAG_NAME ml-1" },
75749
- `${flag.name}`
75854
+ text_node(flag.name)
75750
75855
  ]]
75751
75856
  ];
75752
75857
  });
@@ -76083,12 +76188,12 @@ function open_report(gobj, findings, treedb_id) {
76083
76188
  [
76084
76189
  "td",
76085
76190
  { class: "SCHEMA_REPORT_TOPIC" },
76086
- `${finding.topic || ""}`
76191
+ text_node(finding.topic || "")
76087
76192
  ],
76088
76193
  [
76089
76194
  "td",
76090
76195
  { class: "SCHEMA_REPORT_COL" },
76091
- `${finding.col || ""}`
76196
+ text_node(finding.col || "")
76092
76197
  ],
76093
76198
  [
76094
76199
  "td",
@@ -76096,7 +76201,7 @@ function open_report(gobj, findings, treedb_id) {
76096
76201
  [[
76097
76202
  "code",
76098
76203
  {},
76099
- `${finding.detail || ""}`
76204
+ text_node(finding.detail || "")
76100
76205
  ]]
76101
76206
  ]
76102
76207
  ]
@@ -76532,7 +76637,7 @@ function render_import_plan(gobj, plan) {
76532
76637
  ], [
76533
76638
  "code",
76534
76639
  { class: "ml-2" },
76535
- `${what}`
76640
+ text_node(what)
76536
76641
  ]]
76537
76642
  ];
76538
76643
  });
@@ -76551,7 +76656,7 @@ function render_import_plan(gobj, plan) {
76551
76656
  [
76552
76657
  "span",
76553
76658
  { class: "ml-1" },
76554
- `${plan.writes.length}`
76659
+ text_node(plan.writes.length)
76555
76660
  ],
76556
76661
  [
76557
76662
  "span",
@@ -76564,7 +76669,7 @@ function render_import_plan(gobj, plan) {
76564
76669
  [
76565
76670
  "span",
76566
76671
  { class: "ml-1 has-text-weight-bold" },
76567
- `${deletes.length}`
76672
+ text_node(deletes.length)
76568
76673
  ]
76569
76674
  ]
76570
76675
  ], [
@@ -76606,7 +76711,7 @@ function open_orphans(gobj) {
76606
76711
  [[
76607
76712
  "code",
76608
76713
  {},
76609
- `${entry.id}`
76714
+ text_node(entry.id)
76610
76715
  ]]
76611
76716
  ],
76612
76717
  [
@@ -80507,7 +80612,7 @@ function traffic_scalar_row(key, value) {
80507
80612
  [
80508
80613
  "span",
80509
80614
  { class: "TRAFFIC_KEY" },
80510
- key + ":"
80615
+ text_node(key + ":")
80511
80616
  ],
80512
80617
  [
80513
80618
  "span",
@@ -80602,7 +80707,7 @@ function traffic_value_node(key, value) {
80602
80707
  [
80603
80708
  "span",
80604
80709
  { class: "TRAFFIC_KEY" },
80605
- key + ":"
80710
+ text_node(key + ":")
80606
80711
  ],
80607
80712
  [
80608
80713
  "span",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.26.8",
3
+ "version": "7.26.9",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -30,7 +30,7 @@
30
30
  "devDependencies": {
31
31
  "@rollup/plugin-terser": "^1.0.0",
32
32
  "@vitest/coverage-v8": "^4.1.10",
33
- "@yuneta/gobj-js": "^7.25.8",
33
+ "@yuneta/gobj-js": "^7.26.2",
34
34
  "vite": "^8.3.3",
35
35
  "vitest": "^4.1.10"
36
36
  },