@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.
@@ -919,6 +919,7 @@ var PRIVATE_DATA$22 = {
919
919
  overlay_stack: [],
920
920
  overlay_seq: 0,
921
921
  expected_pops: 0,
922
+ pending_markers: [],
922
923
  popstate_handler: null,
923
924
  avatar_provider: null,
924
925
  avatar_nodes: [],
@@ -976,6 +977,7 @@ function mt_start$20(gobj) {
976
977
  if (!p) return;
977
978
  if (p.expected_pops > 0) {
978
979
  p.expected_pops--;
980
+ if (p.expected_pops === 0) push_pending_markers(gobj);
979
981
  return;
980
982
  }
981
983
  if (p.overlay_stack.length === 0) return;
@@ -2421,14 +2423,35 @@ function push_overlay_history(gobj, close, opts) {
2421
2423
  keep_on_navigate: !!(opts && opts.keep_on_navigate)
2422
2424
  };
2423
2425
  priv.overlay_stack.push(entry);
2426
+ if (priv.expected_pops > 0) {
2427
+ entry.marker_pending = true;
2428
+ priv.pending_markers.push(entry);
2429
+ return entry;
2430
+ }
2431
+ if (!push_overlay_marker(gobj, entry)) return null;
2432
+ return entry;
2433
+ }
2434
+ function push_overlay_marker(gobj, entry) {
2435
+ let priv = gobj.priv;
2424
2436
  try {
2425
2437
  window.history.pushState({ __yui_overlay__: entry.id }, "");
2426
2438
  } catch (e) {
2427
- priv.overlay_stack.pop();
2439
+ let idx = priv.overlay_stack.indexOf(entry);
2440
+ if (idx >= 0) priv.overlay_stack.splice(idx, 1);
2428
2441
  (0, _yuneta_gobj_js.log_warning)(`C_YUI_SHELL: overlay pushState failed: ${e}`);
2429
- return null;
2442
+ return false;
2443
+ }
2444
+ return true;
2445
+ }
2446
+ function push_pending_markers(gobj) {
2447
+ let priv = gobj.priv;
2448
+ let pending = priv.pending_markers.splice(0);
2449
+ for (let entry of pending) {
2450
+ entry.marker_pending = false;
2451
+ if (entry.dismissed || priv.overlay_stack.indexOf(entry) < 0) continue;
2452
+ entry.hash = window.location.hash;
2453
+ push_overlay_marker(gobj, entry);
2430
2454
  }
2431
- return entry;
2432
2455
  }
2433
2456
  function overlay_dismissed(gobj, entry) {
2434
2457
  let priv = gobj.priv;
@@ -2437,6 +2460,7 @@ function overlay_dismissed(gobj, entry) {
2437
2460
  let idx = priv.overlay_stack.indexOf(entry);
2438
2461
  if (idx < 0) return;
2439
2462
  priv.overlay_stack.splice(idx, 1);
2463
+ if (entry.marker_pending) return;
2440
2464
  let st = window.history.state;
2441
2465
  if (st && st.__yui_overlay__ === entry.id) {
2442
2466
  priv.expected_pops++;
@@ -3060,6 +3084,16 @@ function text_node(value) {
3060
3084
  if (value === null || value === void 0) return document.createTextNode("");
3061
3085
  return document.createTextNode(String(value).trim());
3062
3086
  }
3087
+ /************************************************************
3088
+ * A Tabulator `titleFormatter` that shows the column title as text.
3089
+ *
3090
+ * Tabulator puts a STRING title in with innerHTML, so a title taken
3091
+ * from a schema (`header`, which the schema editor writes) is markup
3092
+ * unless the column carries a formatter that returns a Node.
3093
+ ************************************************************/
3094
+ function text_title_formatter(cell) {
3095
+ return text_node(cell.getValue());
3096
+ }
3063
3097
  //#endregion
3064
3098
  //#region src/shell_modals.js
3065
3099
  /***********************************************************************
@@ -3282,7 +3316,7 @@ function yui_shell_show_modal(shell, content, opts) {
3282
3316
  class: "MODAL_TITLE_KIND",
3283
3317
  i18n: title
3284
3318
  },
3285
- title
3319
+ text_node(title)
3286
3320
  ]] : [])
3287
3321
  ],
3288
3322
  [
@@ -3471,7 +3505,7 @@ function build_dialog(shell, message, buttons, opts) {
3471
3505
  class: "CONFIRM_TITLE yui-confirm-title has-text-centered",
3472
3506
  i18n: title
3473
3507
  },
3474
- title
3508
+ text_node(title)
3475
3509
  ]);
3476
3510
  $card_children.push(["button", {
3477
3511
  class: "CONFIRM_CLOSE delete yui-confirm-x",
@@ -3845,7 +3879,7 @@ function build_default_header(gobj) {
3845
3879
  class: "WINDOW_TITLE_KIND has-text-weight-semibold",
3846
3880
  i18n: title
3847
3881
  },
3848
- title
3882
+ text_node(title)
3849
3883
  ]);
3850
3884
  return (0, _yuneta_gobj_js.createElement2)([
3851
3885
  "span",
@@ -6609,12 +6643,12 @@ function yui_asset_element(answer, opts = {}) {
6609
6643
  const children = [[
6610
6644
  "span",
6611
6645
  { class: "ASSET_OTHER_TYPE" },
6612
- String(answer.content_type || "?")
6646
+ text_node(answer.content_type || "?")
6613
6647
  ]];
6614
6648
  if (opts.detail) children.push([
6615
6649
  "span",
6616
6650
  { class: "ASSET_OTHER_DETAIL" },
6617
- String(opts.detail)
6651
+ text_node(opts.detail)
6618
6652
  ]);
6619
6653
  const $card = (0, _yuneta_gobj_js.createElement2)([
6620
6654
  "div",
@@ -8607,6 +8641,7 @@ function destroy_ui$10(gobj) {
8607
8641
  let $container = (0, _yuneta_gobj_js.gobj_read_attr)(gobj, "$container");
8608
8642
  if ($container) {
8609
8643
  destroy_widgets(gobj, $container);
8644
+ if (gobj.priv && gobj.priv.tables) gobj.priv.tables.clear();
8610
8645
  if ($container.parentNode) $container.parentNode.removeChild($container);
8611
8646
  (0, _yuneta_gobj_js.gobj_write_attr)(gobj, "$container", null);
8612
8647
  }
@@ -8645,6 +8680,7 @@ function cell_icon(icon_class, key) {
8645
8680
  function table_identity(gobj, $table) {
8646
8681
  if (!$table.yui_table_id) {
8647
8682
  let priv = gobj.priv;
8683
+ for (let [id, ref] of priv.tables) if (!ref.deref()) priv.tables.delete(id);
8648
8684
  priv.table_seq += 1;
8649
8685
  $table.yui_table_id = `t${priv.table_seq}`;
8650
8686
  priv.tables.set($table.yui_table_id, new WeakRef($table));
@@ -8683,11 +8719,15 @@ function destroy_widgets(gobj, $container) {
8683
8719
  (0, _yuneta_gobj_js.log_warning)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: cannot destroy ${what}: ${e}`);
8684
8720
  }
8685
8721
  };
8722
+ let forget = ($el) => {
8723
+ if ($el.yui_table_id && gobj.priv && gobj.priv.tables) gobj.priv.tables.delete($el.yui_table_id);
8724
+ };
8686
8725
  $container.querySelectorAll(".yui-tabulator-table-nested").forEach(($el) => {
8687
8726
  if ($el.tabulator) {
8688
8727
  destroy("nested table", $el.tabulator);
8689
8728
  $el.tabulator = null;
8690
8729
  }
8730
+ forget($el);
8691
8731
  });
8692
8732
  $container.querySelectorAll(".yui-form-data-input").forEach(($el) => {
8693
8733
  if ($el.tom_select) {
@@ -8702,6 +8742,7 @@ function destroy_widgets(gobj, $container) {
8702
8742
  destroy("table", $el.tabulator);
8703
8743
  $el.tabulator = null;
8704
8744
  }
8745
+ forget($el);
8705
8746
  });
8706
8747
  }
8707
8748
  /******************************************************************
@@ -8740,6 +8781,16 @@ function name_form_control($field, conf) {
8740
8781
  if ($clear) {
8741
8782
  const CLEAR_KEY = "remove all selected options";
8742
8783
  $clear.setAttribute("role", "button");
8784
+ $clear.setAttribute("tabindex", "0");
8785
+ if (!$clear.yui_keys_wired) {
8786
+ $clear.yui_keys_wired = true;
8787
+ $clear.addEventListener("keydown", function(evt) {
8788
+ if (evt.key === "Enter" || evt.key === " ") {
8789
+ evt.preventDefault();
8790
+ $clear.click();
8791
+ }
8792
+ });
8793
+ }
8743
8794
  $clear.setAttribute("title", (0, i18next.t)(CLEAR_KEY));
8744
8795
  $clear.setAttribute("data-i18n-title", CLEAR_KEY);
8745
8796
  $clear.setAttribute("aria-label", (0, i18next.t)(CLEAR_KEY));
@@ -9924,6 +9975,7 @@ function template2columns(gobj, columns, template, sub_elements) {
9924
9975
  let column = {
9925
9976
  field: field_desc.name,
9926
9977
  title: (0, i18next.t)(field_desc.header || field_desc.name),
9978
+ titleFormatter: text_title_formatter,
9927
9979
  editable: get_editable_state,
9928
9980
  editor: false,
9929
9981
  headerWordWrap: true,
@@ -10765,8 +10817,8 @@ function ac_add_table_row(gobj, event, kw, src) {
10765
10817
  });
10766
10818
  setTimeout(function() {
10767
10819
  if ((0, _yuneta_gobj_js.gobj_is_destroying)(gobj)) return;
10768
- let $outer = $table.closest(".yui-tabulator-table");
10769
- if ($outer && $outer.tabulator) $outer.tabulator.redraw();
10820
+ let $target = loading ? $table : $table.closest(".yui-tabulator-table");
10821
+ if ($target && $target.tabulator) $target.tabulator.redraw();
10770
10822
  }, 30);
10771
10823
  return 0;
10772
10824
  }
@@ -19655,7 +19707,7 @@ function event_flag_chips(flags) {
19655
19707
  return [
19656
19708
  "span",
19657
19709
  { class: cls },
19658
- flag.replace("EVF_", "")
19710
+ text_node(flag.replace("EVF_", ""))
19659
19711
  ];
19660
19712
  });
19661
19713
  }
@@ -21827,14 +21879,18 @@ function restore_view_anchored(gobj, anchor) {
21827
21879
  if (!new_node_id) return;
21828
21880
  if (typeof anchor.zoom === "number" && anchor.zoom > 0) try {
21829
21881
  graph.zoomTo(anchor.zoom);
21830
- } catch (e) {}
21882
+ } catch (e) {
21883
+ (0, _yuneta_gobj_js.log_warning)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: zoom not restored: ${e}`);
21884
+ }
21831
21885
  try {
21832
21886
  let canvas_pos = graph.getElementPosition(new_node_id);
21833
21887
  let vp = graph.getViewportByCanvas([canvas_pos[0], canvas_pos[1]]);
21834
21888
  let dx = anchor.viewport_x - vp[0];
21835
21889
  let dy = anchor.viewport_y - vp[1];
21836
21890
  graph.translateBy([dx, dy]);
21837
- } catch (e) {}
21891
+ } catch (e) {
21892
+ (0, _yuneta_gobj_js.log_warning)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: anchor node not put back at its screen spot: ${e}`);
21893
+ }
21838
21894
  }
21839
21895
  /************************************************************
21840
21896
  * Capture the current screen position + zoom of a node,
@@ -23579,7 +23635,7 @@ function render_submenu(gobj, items) {
23579
23635
  class: "menu-label",
23580
23636
  i18n: nav_label
23581
23637
  } : { class: "menu-label" },
23582
- nav_label || "—"
23638
+ text_node(nav_label || "—")
23583
23639
  ], [
23584
23640
  "ul",
23585
23641
  { class: "menu-list" },
@@ -23616,7 +23672,7 @@ function render_accordion(gobj, items) {
23616
23672
  let $hdr = (0, _yuneta_gobj_js.createElement2)([
23617
23673
  "button",
23618
23674
  head_attrs,
23619
- head_text
23675
+ text_node(head_text)
23620
23676
  ]);
23621
23677
  $container.appendChild($hdr);
23622
23678
  let $ul = (0, _yuneta_gobj_js.createElement2)(["ul", {
@@ -25438,7 +25494,7 @@ function topic_card_meta(desc) {
25438
25494
  title: (0, i18next.t)("version"),
25439
25495
  "data-i18n-title": "version"
25440
25496
  },
25441
- `v${desc.topic_version}`
25497
+ text_node(`v${desc.topic_version}`)
25442
25498
  ]);
25443
25499
  head.push([
25444
25500
  "span",
@@ -25446,7 +25502,7 @@ function topic_card_meta(desc) {
25446
25502
  [[
25447
25503
  "span",
25448
25504
  {},
25449
- `${n_cols}`
25505
+ text_node(n_cols)
25450
25506
  ], [
25451
25507
  "span",
25452
25508
  { i18n: "columns" },
@@ -25477,7 +25533,7 @@ function topic_card_meta(desc) {
25477
25533
  ], [
25478
25534
  "span",
25479
25535
  { class: "TREEDB_TOPIC_CARD_REL_LIST" },
25480
- list
25536
+ text_node(list)
25481
25537
  ]]
25482
25538
  ]);
25483
25539
  }
@@ -25509,7 +25565,7 @@ function topic_card_meta(desc) {
25509
25565
  [
25510
25566
  "span",
25511
25567
  { class: "TREEDB_TOPIC_CARD_REL_LIST" },
25512
- list
25568
+ text_node(list)
25513
25569
  ]
25514
25570
  ]
25515
25571
  ];
@@ -25787,7 +25843,7 @@ function build_topic_info_panel(gobj, $info, topic, desc) {
25787
25843
  if (desc.topic_version !== void 0 && desc.topic_version !== null && desc.topic_version !== "") push_meta("version", [
25788
25844
  "span",
25789
25845
  { class: "tag is-info" },
25790
- `${desc.topic_version}`
25846
+ text_node(desc.topic_version)
25791
25847
  ]);
25792
25848
  let sf_names = system_flag_names(desc.system_flag);
25793
25849
  if (sf_names.length > 0) push_meta("system", [
@@ -25842,18 +25898,18 @@ function build_topic_info_panel(gobj, $info, topic, desc) {
25842
25898
  [[
25843
25899
  "code",
25844
25900
  is_key ? { class: "has-text-weight-bold" } : {},
25845
- `${col.id}`
25901
+ text_node(col.id)
25846
25902
  ]]
25847
25903
  ],
25848
25904
  [
25849
25905
  "td",
25850
25906
  {},
25851
- `${type}`
25907
+ text_node(type)
25852
25908
  ],
25853
25909
  [
25854
25910
  "td",
25855
25911
  is_key ? { class: "has-text-weight-semibold" } : {},
25856
- `${rel}`
25912
+ text_node(rel)
25857
25913
  ]
25858
25914
  ]
25859
25915
  ]);
@@ -25875,7 +25931,7 @@ function build_topic_info_panel(gobj, $info, topic, desc) {
25875
25931
  ], [
25876
25932
  "span",
25877
25933
  { i18n: `${topic}` },
25878
- `${topic}`
25934
+ text_node(topic)
25879
25935
  ]]
25880
25936
  ]]
25881
25937
  ],
@@ -29035,7 +29091,7 @@ function col_title_formatter(gobj, col) {
29035
29091
  return (0, _yuneta_gobj_js.createElement2)([
29036
29092
  "span",
29037
29093
  attrs,
29038
- text
29094
+ text_node(text)
29039
29095
  ]);
29040
29096
  };
29041
29097
  }
@@ -29534,7 +29590,7 @@ function file_cell_formatter(cell, formatterParams, onRendered) {
29534
29590
  const children = [["span", { class: "FILE_CELL_ICON icon yi-eye" }], [
29535
29591
  "span",
29536
29592
  { class: "FILE_CELL_ID" },
29537
- yui_file_id_label(ids[0])
29593
+ text_node(yui_file_id_label(ids[0]))
29538
29594
  ]];
29539
29595
  if (ids.length > 1) children.push([
29540
29596
  "span",
@@ -31468,7 +31524,7 @@ function build_delete_question(gobj, records) {
31468
31524
  ], [
31469
31525
  "strong",
31470
31526
  {},
31471
- String(one[pkey])
31527
+ text_node(one[pkey])
31472
31528
  ]]
31473
31529
  ]);
31474
31530
  else lines.push([
@@ -31713,7 +31769,7 @@ function ac_open_columns(gobj, event, kw, src) {
31713
31769
  [$cb, [
31714
31770
  "span",
31715
31771
  { class: "ml-2" },
31716
- column.getDefinition().title || field
31772
+ text_node(column.getDefinition().title || field)
31717
31773
  ]]
31718
31774
  ]));
31719
31775
  }
@@ -60404,6 +60460,34 @@ function ensure_brush_select_owned() {
60404
60460
  __brush_select_registered__ = true;
60405
60461
  }
60406
60462
  //#endregion
60463
+ //#region src/yui_data_color.js
60464
+ /***********************************************************************
60465
+ * yui_data_color.js
60466
+ *
60467
+ * A colour read from DATA, checked before it goes into markup.
60468
+ *
60469
+ * A card of the treedb graph is html, and the colour a user gave it
60470
+ * (a `__graphs__` record) is written into its `style="..."`. A value
60471
+ * like `red" onmouseover="...` would leave the attribute and run.
60472
+ * Only the plain colour syntaxes pass -- hex, the rgb()/hsl()
60473
+ * functions, a name -- and the browser, where it can, also checks
60474
+ * that it is a colour.
60475
+ *
60476
+ * Copyright (c) 2026, ArtGins.
60477
+ * All Rights Reserved.
60478
+ ***********************************************************************/
60479
+ var DATA_COLOR_RE = /^(#[0-9a-f]{3,8}|(rgb|rgba|hsl|hsla)\([0-9.,%\s/+-]+\)|[a-z]+)$/i;
60480
+ /************************************************************
60481
+ * `value` when it is a css colour, else null.
60482
+ ************************************************************/
60483
+ function css_color_or_null(value) {
60484
+ if (typeof value !== "string" || !DATA_COLOR_RE.test(value)) return null;
60485
+ if (typeof CSS !== "undefined" && CSS && typeof CSS.supports === "function") {
60486
+ if (!CSS.supports("color", value)) return null;
60487
+ }
60488
+ return value;
60489
+ }
60490
+ //#endregion
60407
60491
  //#region src/c_g6_nodes_tree.js
60408
60492
  /***********************************************************************
60409
60493
  * c_g6_nodes_tree.js
@@ -61699,6 +61783,17 @@ function topic_defaults_of(gobj, topic_name) {
61699
61783
  return (0, _yuneta_gobj_js.is_object)(topic_props) && (0, _yuneta_gobj_js.is_object)(topic_props.defaults) ? topic_props.defaults : null;
61700
61784
  }
61701
61785
  /************************************************************
61786
+ * A colour read from DATA (a `__graphs__` record), or null.
61787
+ * It is written into a card's html (see yui_data_color.js): a
61788
+ * refused value logs, and the node wears the topic's colour.
61789
+ ************************************************************/
61790
+ function data_color(gobj, value) {
61791
+ if (value === void 0 || value === null || value === "") return null;
61792
+ let color = css_color_or_null(value);
61793
+ if (!color) (0, _yuneta_gobj_js.log_warning)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: colour refused, not a css colour: ${JSON.stringify(value)}`);
61794
+ return color;
61795
+ }
61796
+ /************************************************************
61702
61797
  * What a node is PAINTED with: its own colours, then the
61703
61798
  * topic's default, then the topic's colour.
61704
61799
  *
@@ -61714,10 +61809,10 @@ function topic_defaults_of(gobj, topic_name) {
61714
61809
  function node_paint_of(gobj, desc, geometry) {
61715
61810
  let defaults = topic_defaults_of(gobj, desc.topic_name);
61716
61811
  let g = (0, _yuneta_gobj_js.is_object)(geometry) ? geometry : {};
61717
- let fill = g.fill || defaults && defaults.fill || desc.color;
61812
+ let fill = data_color(gobj, g.fill) || data_color(gobj, defaults && defaults.fill) || desc.color;
61718
61813
  return {
61719
61814
  fill,
61720
- stroke: g.stroke || defaults && defaults.stroke || getStrokeColor(fill),
61815
+ stroke: data_color(gobj, g.stroke) || data_color(gobj, defaults && defaults.stroke) || getStrokeColor(fill),
61721
61816
  lineWidth: g.lineWidth || defaults && defaults.lineWidth || 1
61722
61817
  };
61723
61818
  }
@@ -63676,7 +63771,9 @@ function select_node(gobj, node_id) {
63676
63771
  history_pause(gobj);
63677
63772
  try {
63678
63773
  graph.setElementState(node_id, ["selected"]);
63679
- } catch (e) {}
63774
+ } catch (e) {
63775
+ (0, _yuneta_gobj_js.log_warning)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: node state not set: ${e}`);
63776
+ }
63680
63777
  priv._selected_node_id = node_id;
63681
63778
  paint_selection(gobj, [node_id]);
63682
63779
  show_resize_handles(gobj);
@@ -63702,7 +63799,9 @@ function deselect_node(gobj) {
63702
63799
  let states = {};
63703
63800
  for (let id of clearing) states[id] = [];
63704
63801
  graph.setElementState(states);
63705
- } catch (e) {}
63802
+ } catch (e) {
63803
+ (0, _yuneta_gobj_js.log_warning)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: node states not cleared: ${e}`);
63804
+ }
63706
63805
  priv._selected_node_id = null;
63707
63806
  paint_selection(gobj, []);
63708
63807
  graph_draw(gobj).then(() => {
@@ -64775,7 +64874,9 @@ function select_edge(gobj, edge_id) {
64775
64874
  history_pause(gobj);
64776
64875
  try {
64777
64876
  graph.setElementState(edge_id, ["selected"]);
64778
- } catch (e) {}
64877
+ } catch (e) {
64878
+ (0, _yuneta_gobj_js.log_warning)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: edge state not set: ${e}`);
64879
+ }
64779
64880
  show_edge_icon(gobj);
64780
64881
  graph_draw(gobj).then(() => {
64781
64882
  history_resume(gobj);
@@ -64791,7 +64892,9 @@ function deselect_edge(gobj) {
64791
64892
  history_pause(gobj);
64792
64893
  try {
64793
64894
  graph.setElementState(priv._selected_edge_id, []);
64794
- } catch (e) {}
64895
+ } catch (e) {
64896
+ (0, _yuneta_gobj_js.log_warning)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: edge state not cleared: ${e}`);
64897
+ }
64795
64898
  priv._selected_edge_id = null;
64796
64899
  graph_draw(gobj).then(() => {
64797
64900
  history_resume(gobj);
@@ -64881,7 +64984,9 @@ function show_edge_popover(gobj) {
64881
64984
  history_pause(gobj);
64882
64985
  try {
64883
64986
  graph.setElementState(edge_id, []);
64884
- } catch (e) {}
64987
+ } catch (e) {
64988
+ (0, _yuneta_gobj_js.log_warning)(`${(0, _yuneta_gobj_js.gobj_short_name)(gobj)}: edge state not cleared for the style preview: ${e}`);
64989
+ }
64885
64990
  graph_draw(gobj).then(() => {
64886
64991
  history_resume(gobj);
64887
64992
  });
@@ -74538,7 +74643,7 @@ function show_notice(gobj, key, detail, detail_is_key) {
74538
74643
  $notice.appendChild((0, _yuneta_gobj_js.createElement2)([
74539
74644
  "span",
74540
74645
  attrs,
74541
- detail_is_key ? (0, i18next.t)(`${detail}`) : `${detail}`
74646
+ text_node(detail_is_key ? (0, i18next.t)(`${detail}`) : `${detail}`)
74542
74647
  ]));
74543
74648
  }
74544
74649
  }
@@ -74773,7 +74878,7 @@ function open_card(gobj, logical, title, icon, tags, event, kw) {
74773
74878
  ], [
74774
74879
  "span",
74775
74880
  { class: "ml-1" },
74776
- `${tag.text}`
74881
+ text_node(tag.text)
74777
74882
  ]] : `${tag.text}`
74778
74883
  ];
74779
74884
  });
@@ -74800,7 +74905,7 @@ function open_card(gobj, logical, title, icon, tags, event, kw) {
74800
74905
  ], [
74801
74906
  "span",
74802
74907
  { class: `${logical}_NAME has-text-weight-semibold` },
74803
- `${title}`
74908
+ text_node(title)
74804
74909
  ]]
74805
74910
  ], [
74806
74911
  "div",
@@ -74907,7 +75012,7 @@ function render_topics(gobj, $body) {
74907
75012
  [
74908
75013
  "span",
74909
75014
  { class: "has-text-weight-semibold" },
74910
- `${topic.name}`
75015
+ text_node(topic.name)
74911
75016
  ],
74912
75017
  topic.system_topic ? [
74913
75018
  "span",
@@ -74941,7 +75046,7 @@ function render_topics(gobj, $body) {
74941
75046
  [[
74942
75047
  "code",
74943
75048
  {},
74944
- `${topic.id}`
75049
+ text_node(topic.id)
74945
75050
  ]]
74946
75051
  ] : [
74947
75052
  "span",
@@ -74956,13 +75061,13 @@ function render_topics(gobj, $body) {
74956
75061
  [[
74957
75062
  "code",
74958
75063
  {},
74959
- `${topic.pkey || "id"}`
75064
+ text_node(topic.pkey || "id")
74960
75065
  ]]
74961
75066
  ],
74962
75067
  [
74963
75068
  "td",
74964
75069
  { class: "SCHEMA_TOPIC_COLS has-text-right" },
74965
- `${topic.cols.length}`
75070
+ text_node(topic.cols.length)
74966
75071
  ],
74967
75072
  [
74968
75073
  "td",
@@ -74970,7 +75075,7 @@ function render_topics(gobj, $body) {
74970
75075
  [[
74971
75076
  "span",
74972
75077
  { class: `tag ${pending ? "is-warning" : "is-info"} is-light` },
74973
- `${topic.topic_version === void 0 ? "?" : topic.topic_version}`
75078
+ text_node(topic.topic_version === void 0 ? "?" : topic.topic_version)
74974
75079
  ]]
74975
75080
  ],
74976
75081
  [
@@ -75246,7 +75351,7 @@ function column_row(gobj, topic, col, index, readonly, twice) {
75246
75351
  return [
75247
75352
  "span",
75248
75353
  { class: `SCHEMA_COL_FLAG tag ${yui_tint(flag_style(flag))}`.trimEnd() },
75249
- `${flag}`
75354
+ text_node(flag)
75250
75355
  ];
75251
75356
  });
75252
75357
  let link = "";
@@ -75282,7 +75387,7 @@ function column_row(gobj, topic, col, index, readonly, twice) {
75282
75387
  [
75283
75388
  "code",
75284
75389
  {},
75285
- `${col.name}`
75390
+ text_node(col.name)
75286
75391
  ],
75287
75392
  ambiguous ? [
75288
75393
  "span",
@@ -75290,7 +75395,7 @@ function column_row(gobj, topic, col, index, readonly, twice) {
75290
75395
  [[
75291
75396
  "code",
75292
75397
  {},
75293
- `${col.id}`
75398
+ text_node(col.id)
75294
75399
  ]]
75295
75400
  ] : [
75296
75401
  "span",
@@ -75314,7 +75419,7 @@ function column_row(gobj, topic, col, index, readonly, twice) {
75314
75419
  [
75315
75420
  "td",
75316
75421
  { class: "SCHEMA_COL_HEADER" },
75317
- `${record.header || ""}`
75422
+ text_node(record.header || "")
75318
75423
  ],
75319
75424
  [
75320
75425
  "td",
@@ -75322,7 +75427,7 @@ function column_row(gobj, topic, col, index, readonly, twice) {
75322
75427
  [[
75323
75428
  "code",
75324
75429
  {},
75325
- `${record.type || ""}`
75430
+ text_node(record.type || "")
75326
75431
  ]]
75327
75432
  ],
75328
75433
  [
@@ -75340,7 +75445,7 @@ function column_row(gobj, topic, col, index, readonly, twice) {
75340
75445
  [
75341
75446
  "td",
75342
75447
  { class: "SCHEMA_COL_LINK" },
75343
- `${link}`
75448
+ text_node(link)
75344
75449
  ],
75345
75450
  [
75346
75451
  "td",
@@ -75751,7 +75856,7 @@ function flags_field(gobj, type, current) {
75751
75856
  })], [
75752
75857
  "span",
75753
75858
  { class: "SCHEMA_FLAG_NAME ml-1" },
75754
- `${flag.name}`
75859
+ text_node(flag.name)
75755
75860
  ]]
75756
75861
  ];
75757
75862
  });
@@ -76088,12 +76193,12 @@ function open_report(gobj, findings, treedb_id) {
76088
76193
  [
76089
76194
  "td",
76090
76195
  { class: "SCHEMA_REPORT_TOPIC" },
76091
- `${finding.topic || ""}`
76196
+ text_node(finding.topic || "")
76092
76197
  ],
76093
76198
  [
76094
76199
  "td",
76095
76200
  { class: "SCHEMA_REPORT_COL" },
76096
- `${finding.col || ""}`
76201
+ text_node(finding.col || "")
76097
76202
  ],
76098
76203
  [
76099
76204
  "td",
@@ -76101,7 +76206,7 @@ function open_report(gobj, findings, treedb_id) {
76101
76206
  [[
76102
76207
  "code",
76103
76208
  {},
76104
- `${finding.detail || ""}`
76209
+ text_node(finding.detail || "")
76105
76210
  ]]
76106
76211
  ]
76107
76212
  ]
@@ -76537,7 +76642,7 @@ function render_import_plan(gobj, plan) {
76537
76642
  ], [
76538
76643
  "code",
76539
76644
  { class: "ml-2" },
76540
- `${what}`
76645
+ text_node(what)
76541
76646
  ]]
76542
76647
  ];
76543
76648
  });
@@ -76556,7 +76661,7 @@ function render_import_plan(gobj, plan) {
76556
76661
  [
76557
76662
  "span",
76558
76663
  { class: "ml-1" },
76559
- `${plan.writes.length}`
76664
+ text_node(plan.writes.length)
76560
76665
  ],
76561
76666
  [
76562
76667
  "span",
@@ -76569,7 +76674,7 @@ function render_import_plan(gobj, plan) {
76569
76674
  [
76570
76675
  "span",
76571
76676
  { class: "ml-1 has-text-weight-bold" },
76572
- `${deletes.length}`
76677
+ text_node(deletes.length)
76573
76678
  ]
76574
76679
  ]
76575
76680
  ], [
@@ -76611,7 +76716,7 @@ function open_orphans(gobj) {
76611
76716
  [[
76612
76717
  "code",
76613
76718
  {},
76614
- `${entry.id}`
76719
+ text_node(entry.id)
76615
76720
  ]]
76616
76721
  ],
76617
76722
  [
@@ -80512,7 +80617,7 @@ function traffic_scalar_row(key, value) {
80512
80617
  [
80513
80618
  "span",
80514
80619
  { class: "TRAFFIC_KEY" },
80515
- key + ":"
80620
+ text_node(key + ":")
80516
80621
  ],
80517
80622
  [
80518
80623
  "span",
@@ -80607,7 +80712,7 @@ function traffic_value_node(key, value) {
80607
80712
  [
80608
80713
  "span",
80609
80714
  { class: "TRAFFIC_KEY" },
80610
- key + ":"
80715
+ text_node(key + ":")
80611
80716
  ],
80612
80717
  [
80613
80718
  "span",