@yuneta/gobj-ui 7.23.52 → 7.23.54
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 +316 -167
- package/dist/gobj-ui.es.js +316 -167
- package/package.json +2 -2
- package/src/c_yui_form.js +9 -1
- package/src/c_yui_treedb_topic_with_form.css +10 -0
- package/src/c_yui_treedb_topic_with_form.js +203 -17
- package/src/lib_icons.js +51 -0
package/dist/gobj-ui.es.js
CHANGED
|
@@ -6351,6 +6351,7 @@ var attrs_table$16 = [
|
|
|
6351
6351
|
SDATA(data_type_t.DTP_STRING, "pkey", 0, "id", "Primary key field name, used by form_mode"),
|
|
6352
6352
|
SDATA(data_type_t.DTP_STRING, "topic_name", 0, "", "Treedb topic name: labels use the i18n cascade '<topic>.<col>' -> '<col>' -> header (like table headers)"),
|
|
6353
6353
|
SDATA(data_type_t.DTP_BOOLEAN, "editable", 0, false, "Default is editable, set false to readonly"),
|
|
6354
|
+
SDATA(data_type_t.DTP_BOOLEAN, "readonly", 0, false, "Show EVERY field read-only, whatever its schema says: a record being LOOKED at, not edited. Independent of `editable`, which drives the TABLE rendering; this one drives the FORM"),
|
|
6354
6355
|
SDATA(data_type_t.DTP_BOOLEAN, "selectable", 0, true, "Rows selectable with 'click' (BAD with editable=true)"),
|
|
6355
6356
|
SDATA(data_type_t.DTP_BOOLEAN, "with_checkbox", 0, false, "Show a first column with checkbox to select rows"),
|
|
6356
6357
|
SDATA(data_type_t.DTP_BOOLEAN, "with_rownum", 0, false, "Print first column with row number"),
|
|
@@ -6754,7 +6755,7 @@ function build_form_field_conf(gobj, field_desc) {
|
|
|
6754
6755
|
placeholder: "",
|
|
6755
6756
|
options: [],
|
|
6756
6757
|
extras: {},
|
|
6757
|
-
readonly: !field_desc.is_writable,
|
|
6758
|
+
readonly: gobj_read_bool_attr(gobj, "readonly") || !field_desc.is_writable,
|
|
6758
6759
|
required: field_desc.is_required,
|
|
6759
6760
|
hidden: field_desc.is_hidden,
|
|
6760
6761
|
default_value: field_desc.default_value
|
|
@@ -6806,6 +6807,7 @@ function build_form_field_conf(gobj, field_desc) {
|
|
|
6806
6807
|
field_conf.options = get_fkey_select_options(gobj, field_desc);
|
|
6807
6808
|
break;
|
|
6808
6809
|
case "image":
|
|
6810
|
+
case "icon":
|
|
6809
6811
|
case "string":
|
|
6810
6812
|
field_conf.tag = "input";
|
|
6811
6813
|
field_conf.inputType = "text";
|
|
@@ -7723,6 +7725,7 @@ function template2columns(gobj, columns, template, sub_elements) {
|
|
|
7723
7725
|
case "hook": break;
|
|
7724
7726
|
case "fkey": break;
|
|
7725
7727
|
case "image":
|
|
7728
|
+
case "icon":
|
|
7726
7729
|
case "string":
|
|
7727
7730
|
column.editor = "input";
|
|
7728
7731
|
column.editorParams = {
|
|
@@ -8161,6 +8164,7 @@ function treedb_value_2_form_value(gobj, field_desc, value) {
|
|
|
8161
8164
|
case "date":
|
|
8162
8165
|
case "color":
|
|
8163
8166
|
case "image":
|
|
8167
|
+
case "icon":
|
|
8164
8168
|
case "tel":
|
|
8165
8169
|
case "template":
|
|
8166
8170
|
case "table":
|
|
@@ -8253,6 +8257,7 @@ function form_value_2_treedb_value(gobj, field_desc, value) {
|
|
|
8253
8257
|
case "date":
|
|
8254
8258
|
case "color":
|
|
8255
8259
|
case "image":
|
|
8260
|
+
case "icon":
|
|
8256
8261
|
case "tel": break;
|
|
8257
8262
|
case "template":
|
|
8258
8263
|
if (is_string(value)) try {
|
|
@@ -22653,6 +22658,182 @@ function yui_table_filter_clear(table) {
|
|
|
22653
22658
|
});
|
|
22654
22659
|
}
|
|
22655
22660
|
//#endregion
|
|
22661
|
+
//#region src/lib_icons.js
|
|
22662
|
+
/*********************************************************
|
|
22663
|
+
* lib_icons.js
|
|
22664
|
+
*
|
|
22665
|
+
* Two icon systems are managed here:
|
|
22666
|
+
*
|
|
22667
|
+
* 1. FA-style CSS icons (yui_icons.css)
|
|
22668
|
+
* Usage: <i class="yi-save"></i>
|
|
22669
|
+
* Color: inherits currentColor from parent via CSS mask.
|
|
22670
|
+
*
|
|
22671
|
+
* 2. SVG symbol icons for G6 toolbar (and any other component
|
|
22672
|
+
* that uses <use xlink:href="#id">).
|
|
22673
|
+
* Symbols are injected once into the DOM.
|
|
22674
|
+
* All symbol ids are prefixed with "g6-icon-" to avoid
|
|
22675
|
+
* conflicts with other DOM elements.
|
|
22676
|
+
* Icon paths come from:
|
|
22677
|
+
* fontawesome-free-7.1.0-web/sprites/solid.svg
|
|
22678
|
+
*
|
|
22679
|
+
* G6 toolbar items are managed via CSS class names (className
|
|
22680
|
+
* field in getItems()) using YuiToolbar in c_g6_nodes_tree.js.
|
|
22681
|
+
* This lets lib_graph.js state functions (set_submit_state,
|
|
22682
|
+
* disableElements, …) work on toolbar icons exactly like on
|
|
22683
|
+
* regular Bulma/FA buttons — no icon-specific helpers needed.
|
|
22684
|
+
*
|
|
22685
|
+
* Copyright (c) 2025-2026, ArtGins.
|
|
22686
|
+
* All Rights Reserved.
|
|
22687
|
+
*********************************************************/
|
|
22688
|
+
var CUSTOM_SVG_ICONS_ID = "g6-custom-svgicons";
|
|
22689
|
+
var ICONS = `<svg xmlns="http://www.w3.org/2000/svg">
|
|
22690
|
+
<!-- magnifying-glass-plus -->
|
|
22691
|
+
<symbol id="g6-icon-zoom-in" viewBox="0 0 512 512">
|
|
22692
|
+
<path fill="currentColor" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 112c-13.3 0-24 10.7-24 24l0 48-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l48 0 0 48c0 13.3 10.7 24 24 24s24-10.7 24-24l0-48 48 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-48 0 0-48c0-13.3-10.7-24-24-24z"/>
|
|
22693
|
+
</symbol>
|
|
22694
|
+
<!-- magnifying-glass-minus -->
|
|
22695
|
+
<symbol id="g6-icon-zoom-out" viewBox="0 0 512 512">
|
|
22696
|
+
<path fill="currentColor" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM136 184c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z"/>
|
|
22697
|
+
</symbol>
|
|
22698
|
+
<!-- house (reset zoom: back to original 100% view) -->
|
|
22699
|
+
<symbol id="g6-icon-home" viewBox="0 0 512 512">
|
|
22700
|
+
<path fill="currentColor" d="M277.8 8.6c-12.3-11.4-31.3-11.4-43.5 0l-224 208c-9.6 9-12.8 22.9-8 35.1S18.8 272 32 272l16 0 0 176c0 35.3 28.7 64 64 64l288 0c35.3 0 64-28.7 64-64l0-176 16 0c13.2 0 25-8.1 29.8-20.3s1.6-26.2-8-35.1l-224-208zM240 320l32 0c26.5 0 48 21.5 48 48l0 96-128 0 0-96c0-26.5 21.5-48 48-48z"/>
|
|
22701
|
+
</symbol>
|
|
22702
|
+
<!-- expand (zoom to fit) -->
|
|
22703
|
+
<symbol id="g6-icon-fit" viewBox="0 0 448 512">
|
|
22704
|
+
<path fill="currentColor" d="M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"/>
|
|
22705
|
+
</symbol>
|
|
22706
|
+
<!-- fit to selection: the same corner brackets as the fit icon,
|
|
22707
|
+
around a marked object. The two sit side by side in the
|
|
22708
|
+
toolbar and have to read as a family, which a borrowed glyph
|
|
22709
|
+
would not. (No backticks in here: the sprite lives inside a
|
|
22710
|
+
template literal.) -->
|
|
22711
|
+
<symbol id="g6-icon-fit-selection" viewBox="0 0 448 512">
|
|
22712
|
+
<path fill="currentColor" d="M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"/>
|
|
22713
|
+
<rect fill="currentColor" x="144" y="176" width="160" height="160" rx="24"/>
|
|
22714
|
+
</symbol>
|
|
22715
|
+
<!-- crosshairs (center) -->
|
|
22716
|
+
<symbol id="g6-icon-center" viewBox="0 0 576 512">
|
|
22717
|
+
<path fill="currentColor" d="M288-16c17.7 0 32 14.3 32 32l0 18.3c98.1 14 175.7 91.6 189.7 189.7l18.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-18.3 0c-14 98.1-91.6 175.7-189.7 189.7l0 18.3c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-18.3C157.9 463.7 80.3 386.1 66.3 288L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l18.3 0C80.3 125.9 157.9 48.3 256 34.3L256 16c0-17.7 14.3-32 32-32zM131.2 288c12.7 62.7 62.1 112.1 124.8 124.8l0-12.8c0-17.7 14.3-32 32-32s32 14.3 32 32l0 12.8c62.7-12.7 112.1-62.1 124.8-124.8L432 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l12.8 0C432.1 161.3 382.7 111.9 320 99.2l0 12.8c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-12.8C193.3 111.9 143.9 161.3 131.2 224l12.8 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-12.8 0zM288 208a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"/>
|
|
22718
|
+
</symbol>
|
|
22719
|
+
<!-- up-right-and-down-left-from-center (enter fullscreen) -->
|
|
22720
|
+
<symbol id="g6-icon-fullscreen" viewBox="0 0 512 512">
|
|
22721
|
+
<path fill="currentColor" d="M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87-39-39c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2S34.1 320.2 41 327l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2S177.7 512 168 512z"/>
|
|
22722
|
+
</symbol>
|
|
22723
|
+
<!-- down-left-and-up-right-to-center (exit fullscreen) -->
|
|
22724
|
+
<symbol id="g6-icon-fullscreen-exit" viewBox="0 0 512 512">
|
|
22725
|
+
<path fill="currentColor" d="M439.5 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2S450.2 240 440.5 240l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87zM72.5 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87-39-39c-6.9-6.9-8.9-17.2-5.2-26.2S62.8 272 72.5 272z"/>
|
|
22726
|
+
</symbol>
|
|
22727
|
+
<!-- arrow-rotate-left (undo) -->
|
|
22728
|
+
<symbol id="g6-icon-undo" viewBox="0 0 512 512">
|
|
22729
|
+
<path fill="currentColor" d="M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z"/>
|
|
22730
|
+
</symbol>
|
|
22731
|
+
<!-- arrow-rotate-right (redo) -->
|
|
22732
|
+
<symbol id="g6-icon-redo" viewBox="0 0 512 512">
|
|
22733
|
+
<path fill="currentColor" d="M436.7 74.7L448 85.4 448 32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l47.9 0-7.6-7.2c-.2-.2-.4-.4-.6-.6-75-75-196.5-75-271.5 0s-75 196.5 0 271.5 196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c99.9-99.9 261.7-100 361.7-.3z"/>
|
|
22734
|
+
</symbol>
|
|
22735
|
+
<!-- pen (edit node) -->
|
|
22736
|
+
<symbol id="g6-icon-edit" viewBox="0 0 512 512">
|
|
22737
|
+
<path fill="currentColor" d="M352.9 21.2L308 66.1 445.9 204 490.8 159.1C504.4 145.6 512 127.2 512 108s-7.6-37.6-21.2-51.1L455.1 21.2C441.6 7.6 423.2 0 404 0s-37.6 7.6-51.1 21.2zM274.1 100L58.9 315.1c-10.7 10.7-18.5 24.1-22.6 38.7L.9 481.6c-2.3 8.3 0 17.3 6.2 23.4s15.1 8.5 23.4 6.2l127.8-35.5c14.6-4.1 27.9-11.8 38.7-22.6L412 237.9 274.1 100z"/>
|
|
22738
|
+
</symbol>
|
|
22739
|
+
<!-- trash-can (delete) -->
|
|
22740
|
+
<symbol id="g6-icon-delete" viewBox="0 0 448 512">
|
|
22741
|
+
<path fill="currentColor" d="M136.7 5.9C141.1-7.2 153.3-16 167.1-16l113.9 0c13.8 0 26 8.8 30.4 21.9L320 32 416 32c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 8.7-26.1zM32 144l384 0 0 304c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-304zm88 64c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24z"/>
|
|
22742
|
+
</symbol>
|
|
22743
|
+
<!-- link (link nodes) -->
|
|
22744
|
+
<symbol id="g6-icon-link" viewBox="0 0 576 512">
|
|
22745
|
+
<path fill="currentColor" d="M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"/>
|
|
22746
|
+
</symbol>
|
|
22747
|
+
<!-- link-slash (unlink) -->
|
|
22748
|
+
<symbol id="g6-icon-unlink" viewBox="0 0 576 512">
|
|
22749
|
+
<path fill="currentColor" d="M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-122-122c4.2-3.4 8.3-7.1 12.1-10.9l71.1-71.1c29.3-29.3 45.8-69.1 45.8-110.6 0-86.4-70-156.5-156.5-156.5-37.3 0-73.1 13.3-101.3 37.2 20.3 10.1 38.7 23.5 54.5 39.5 14.1-8.3 30.2-12.7 46.8-12.7 51.1 0 92.5 41.4 92.5 92.5 0 24.5-9.7 48-27.1 65.4l-71.1 71.1c-3.9 3.9-8.1 7.4-12.6 10.5l-47.5-47.5c16.5-.9 29.7-14.4 30.2-31.1 0-1.3 0-2.6 0-3.9 0-86.3-69.9-156.9-156.5-156.9-19.2 0-37.9 3.5-55.5 10.2L41-24.9zM225.9 160c.6 0 1.1 0 1.7 0 15.1 0 29.5 3.7 42.1 10.2 1.8 1.2 3.6 2.3 5.5 3.1 26.8 16.3 44.8 45.9 44.8 79.6 0 .4 0 .8 0 1.2L225.9 160zM346.2 416L192 261.8c1.2 84.6 69.6 152.9 154.1 154.1zM139.7 209.5l-45.3-45.3-48.6 48.6c-29.3 29.3-45.8 69.1-45.8 110.6 0 86.4 70 156.5 156.5 156.5 37.2 0 73.1-13.3 101.3-37.2-20.3-10.1-38.8-23.5-54.6-39.5-14 8.2-30.1 12.6-46.7 12.6-51.1 0-92.5-41.4-92.5-92.5 0-24.5 9.7-48 27.1-65.4l48.6-48.6z"/>
|
|
22750
|
+
</symbol>
|
|
22751
|
+
<!-- play (run node) -->
|
|
22752
|
+
<symbol id="g6-icon-run" viewBox="0 0 448 512">
|
|
22753
|
+
<path fill="currentColor" d="M91.2 36.9c-12.4-6.8-27.4-6.5-39.6 .7S32 57.9 32 72l0 368c0 14.1 7.5 27.2 19.6 34.4s27.2 7.5 39.6 .7l336-184c12.8-7 20.8-20.5 20.8-35.1s-8-28.1-20.8-35.1l-336-184z"/>
|
|
22754
|
+
</symbol>
|
|
22755
|
+
<!-- clone (copy size to other nodes/ports) -->
|
|
22756
|
+
<symbol id="g6-icon-resize" viewBox="0 0 512 512">
|
|
22757
|
+
<path fill="currentColor" d="M288 448l-224 0 0-224 48 0 0-64-48 0c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l224 0c35.3 0 64-28.7 64-64l0-48-64 0 0 48zm-64-96l224 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L224 0c-35.3 0-64 28.7-64 64l0 224c0 35.3 28.7 64 64 64z"/>
|
|
22758
|
+
</symbol>
|
|
22759
|
+
<!-- plus (create node). Deliberately NOT the FA7 solid plus:
|
|
22760
|
+
its arms are ~14% of the width and read thin next to the
|
|
22761
|
+
other solid glyphs. Bold geometric plus (~23% arm
|
|
22762
|
+
thickness) with long arms (32..480) so it reads as a "+",
|
|
22763
|
+
not a stubby Red-Cross square. -->
|
|
22764
|
+
<symbol id="g6-icon-plus" viewBox="0 0 512 512">
|
|
22765
|
+
<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"/>
|
|
22766
|
+
</symbol>
|
|
22767
|
+
<!-- ellipsis-vertical (unfold the floating toolbar).
|
|
22768
|
+
The strip it stands for is a vertical stack, and a vertical
|
|
22769
|
+
ellipsis is what "there is more of this here" is drawn as
|
|
22770
|
+
everywhere else. -->
|
|
22771
|
+
<symbol id="g6-icon-toolbar-show" viewBox="0 0 128 512">
|
|
22772
|
+
<path fill="currentColor" d="M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"/>
|
|
22773
|
+
</symbol>
|
|
22774
|
+
<!-- xmark (fold the floating toolbar away).
|
|
22775
|
+
Not a chevron: the two toolbars sit on OPPOSITE edges, so a
|
|
22776
|
+
direction would point the wrong way on one of them. What the
|
|
22777
|
+
button does is close an overlay, and that is an x. -->
|
|
22778
|
+
<symbol id="g6-icon-toolbar-hide" viewBox="0 0 384 512">
|
|
22779
|
+
<path fill="currentColor" d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/>
|
|
22780
|
+
</symbol>
|
|
22781
|
+
<!-- dashed marquee (selection mode).
|
|
22782
|
+
The band ITSELF, because that is what the button turns on: a
|
|
22783
|
+
drag on the canvas draws one and a tap picks a card. Not the
|
|
22784
|
+
fit-to-selection glyph next to it in the other toolbar -- that
|
|
22785
|
+
one is solid brackets around a solid object and means "put the
|
|
22786
|
+
camera on what is picked", which is the opposite end of the
|
|
22787
|
+
gesture. Dashes: 16 segments of 59 with gaps of 36 over a
|
|
22788
|
+
perimeter of 1520, so they land on the corners. -->
|
|
22789
|
+
<symbol id="g6-icon-select-mode" viewBox="0 0 512 512">
|
|
22790
|
+
<rect x="46" y="86" width="420" height="340" fill="none"
|
|
22791
|
+
stroke="currentColor" stroke-width="40"
|
|
22792
|
+
stroke-dasharray="59 36"/>
|
|
22793
|
+
</symbol>
|
|
22794
|
+
<!-- location-crosshairs (anchor the camera on one element).
|
|
22795
|
+
The SAME path as the DOM toolbars and their yi-location-crosshairs
|
|
22796
|
+
mask: the two toolbars sit in one console, and a control that
|
|
22797
|
+
does one thing has to be drawn one way. -->
|
|
22798
|
+
<symbol id="g6-icon-anchor" viewBox="0 0 576 512">
|
|
22799
|
+
<path fill="currentColor" d="M288-16c17.7 0 32 14.3 32 32l0 18.3c98.1 14 175.7 91.6 189.7 189.7l18.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-18.3 0c-14 98.1-91.6 175.7-189.7 189.7l0 18.3c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-18.3C157.9 463.7 80.3 386.1 66.3 288L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l18.3 0C80.3 125.9 157.9 48.3 256 34.3L256 16c0-17.7 14.3-32 32-32zM128 256a160 160 0 1 0 320 0 160 160 0 1 0 -320 0zm160-96a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"/>
|
|
22800
|
+
</symbol>
|
|
22801
|
+
<!-- floppy-disk (save) -->
|
|
22802
|
+
<symbol id="g6-icon-save" viewBox="0 0 448 512">
|
|
22803
|
+
<path fill="currentColor" d="M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-242.7c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32L64 32zm32 96c0-17.7 14.3-32 32-32l160 0c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32l-160 0c-17.7 0-32-14.3-32-32l0-64zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"/>
|
|
22804
|
+
</symbol>
|
|
22805
|
+
</svg>`;
|
|
22806
|
+
function inject_svg_icons() {
|
|
22807
|
+
if (document.getElementById(CUSTOM_SVG_ICONS_ID)) return;
|
|
22808
|
+
const div = document.createElement("div");
|
|
22809
|
+
div.id = CUSTOM_SVG_ICONS_ID;
|
|
22810
|
+
div.style.display = "none";
|
|
22811
|
+
div.innerHTML = ICONS;
|
|
22812
|
+
document.body.appendChild(div);
|
|
22813
|
+
}
|
|
22814
|
+
var __icon_defined__ = {};
|
|
22815
|
+
function yui_icon_is_defined(name) {
|
|
22816
|
+
if (!name || typeof name !== "string") return false;
|
|
22817
|
+
if (__icon_defined__[name] !== void 0) return __icon_defined__[name];
|
|
22818
|
+
let defined = false;
|
|
22819
|
+
try {
|
|
22820
|
+
const el = document.createElement("i");
|
|
22821
|
+
el.className = name;
|
|
22822
|
+
el.style.position = "absolute";
|
|
22823
|
+
el.style.visibility = "hidden";
|
|
22824
|
+
el.style.pointerEvents = "none";
|
|
22825
|
+
document.body.appendChild(el);
|
|
22826
|
+
const st = window.getComputedStyle(el, "::before");
|
|
22827
|
+
const mask = st.maskImage || st.webkitMaskImage || "";
|
|
22828
|
+
defined = !!mask && mask !== "none";
|
|
22829
|
+
document.body.removeChild(el);
|
|
22830
|
+
} catch (e) {
|
|
22831
|
+
defined = false;
|
|
22832
|
+
}
|
|
22833
|
+
__icon_defined__[name] = defined;
|
|
22834
|
+
return defined;
|
|
22835
|
+
}
|
|
22836
|
+
//#endregion
|
|
22656
22837
|
//#region src/yui_row_search.js
|
|
22657
22838
|
/***********************************************************************
|
|
22658
22839
|
* yui_row_search.js
|
|
@@ -23733,6 +23914,11 @@ function create_tabulator(gobj) {
|
|
|
23733
23914
|
hozAlign = "center";
|
|
23734
23915
|
colFormatter = "color";
|
|
23735
23916
|
break;
|
|
23917
|
+
case "icon":
|
|
23918
|
+
hozAlign = "center";
|
|
23919
|
+
vertAlign = "middle";
|
|
23920
|
+
colFormatter = icon_formatter;
|
|
23921
|
+
break;
|
|
23736
23922
|
case "object":
|
|
23737
23923
|
case "dict":
|
|
23738
23924
|
case "template":
|
|
@@ -23936,6 +24122,13 @@ function create_tabulator(gobj) {
|
|
|
23936
24122
|
tabulator.on("dataFiltered", function(filters, rows) {
|
|
23937
24123
|
update_rowcount(Array.isArray(rows) ? rows.length : void 0);
|
|
23938
24124
|
});
|
|
24125
|
+
tabulator.on("rowClick", function(e, row) {
|
|
24126
|
+
if (gobj_read_bool_attr(gobj, "editable")) return;
|
|
24127
|
+
let $cell = e.target ? e.target.closest(".tabulator-cell") : null;
|
|
24128
|
+
let field = $cell ? $cell.getAttribute("tabulator-field") : null;
|
|
24129
|
+
if (field && cell_has_its_own_action(gobj, field)) return;
|
|
24130
|
+
gobj_send_event(gobj, "EV_SHOW_RECORD", { index: row.getPosition() }, gobj);
|
|
24131
|
+
});
|
|
23939
24132
|
tabulator.on("rowSelected", function(row) {
|
|
23940
24133
|
gobj_send_event(gobj, "EV_SELECT_ROWS", { rows: [row.getData()] }, gobj);
|
|
23941
24134
|
});
|
|
@@ -23956,6 +24149,39 @@ function table__destroy(gobj) {
|
|
|
23956
24149
|
}
|
|
23957
24150
|
}
|
|
23958
24151
|
/************************************************************
|
|
24152
|
+
* Cell of a col flagged `icon`: the value is the NAME of an
|
|
24153
|
+
* icon of the app's set ("yi-bolt"), so it is DRAWN.
|
|
24154
|
+
*
|
|
24155
|
+
* Built as a DOM node and not as an HTML string: the value is
|
|
24156
|
+
* raw record data and must never be parsed as markup -- and
|
|
24157
|
+
* here it also becomes a CSS class, so it is filtered to the
|
|
24158
|
+
* shape of a class name before it gets near one.
|
|
24159
|
+
*
|
|
24160
|
+
* A name the set does not carry falls back to the TEXT of it.
|
|
24161
|
+
* The catch-all rule `[class^="yi-"]::before` paints a
|
|
24162
|
+
* currentColor box for any name, so drawing it anyway would
|
|
24163
|
+
* render a solid square -- a glyph nobody recognises rather
|
|
24164
|
+
* than a mistake somebody can fix.
|
|
24165
|
+
************************************************************/
|
|
24166
|
+
function icon_formatter(cell) {
|
|
24167
|
+
let name = cell.getValue();
|
|
24168
|
+
if (!is_string(name) || empty_string(name)) return "";
|
|
24169
|
+
name = name.trim();
|
|
24170
|
+
if (!/^[a-z0-9-]+$/.test(name) || !yui_icon_is_defined(name)) return createElement2([
|
|
24171
|
+
"span",
|
|
24172
|
+
{
|
|
24173
|
+
class: "ICON_CELL_UNKNOWN is-size-7 has-text-grey",
|
|
24174
|
+
title: name
|
|
24175
|
+
},
|
|
24176
|
+
name
|
|
24177
|
+
]);
|
|
24178
|
+
return createElement2(["span", {
|
|
24179
|
+
class: `ICON_CELL ${name}`,
|
|
24180
|
+
title: name,
|
|
24181
|
+
"aria-label": name
|
|
24182
|
+
}]);
|
|
24183
|
+
}
|
|
24184
|
+
/************************************************************
|
|
23959
24185
|
* Cell of a col holding a JSON document (dict/list/blob/
|
|
23960
24186
|
* template/coordinates/…): a one-line truncated preview,
|
|
23961
24187
|
* marked as a link because the click opens the whole value
|
|
@@ -24067,6 +24293,7 @@ function transform__treedb_value_2_table_value(gobj, col, value, row, field) {
|
|
|
24067
24293
|
}
|
|
24068
24294
|
break;
|
|
24069
24295
|
case "color": break;
|
|
24296
|
+
case "icon": break;
|
|
24070
24297
|
case "image": break;
|
|
24071
24298
|
default: log_error(`transform__treedb_value_2_table_value() unhandled type '${field_desc.type}' (real_type='${field_desc.real_type}') for field '${field}', topic ${priv.topic_name}`);
|
|
24072
24299
|
}
|
|
@@ -24077,10 +24304,25 @@ function transform__treedb_value_2_table_value(gobj, col, value, row, field) {
|
|
|
24077
24304
|
return value;
|
|
24078
24305
|
}
|
|
24079
24306
|
/************************************************************
|
|
24080
|
-
* Build the form template from desc.cols:
|
|
24081
|
-
*
|
|
24082
|
-
*
|
|
24083
|
-
*
|
|
24307
|
+
* Build the form template from desc.cols: EVERY field of the
|
|
24308
|
+
* record, the ones that cannot be written included.
|
|
24309
|
+
*
|
|
24310
|
+
* They used to be dropped, and a record was then shown as the
|
|
24311
|
+
* handful of its fields somebody may type: an asset opened as
|
|
24312
|
+
* its id alone, with its type, its size, its date and where it
|
|
24313
|
+
* came from -- everything a person opens an asset to read --
|
|
24314
|
+
* nowhere on screen. What a form is for is READING a record;
|
|
24315
|
+
* writing it is one of the two things you can do next.
|
|
24316
|
+
*
|
|
24317
|
+
* C_YUI_FORM renders a col that is not `writable` read-only on
|
|
24318
|
+
* its own (`build_form_field_conf`), so this is the whole of
|
|
24319
|
+
* it. What must NOT follow is sending them back:
|
|
24320
|
+
* `transform__form_record_2_treedb_record()` drops them, and
|
|
24321
|
+
* the reason is written there.
|
|
24322
|
+
*
|
|
24323
|
+
* Still out: hooks (a hook is not a field of the record, it is
|
|
24324
|
+
* the children hanging off it), hidden cols, and the `_`
|
|
24325
|
+
* scaffolding the table adds.
|
|
24084
24326
|
************************************************************/
|
|
24085
24327
|
function build_form_template(gobj) {
|
|
24086
24328
|
let desc = gobj_read_attr(gobj, "desc");
|
|
@@ -24090,7 +24332,6 @@ function build_form_template(gobj) {
|
|
|
24090
24332
|
const field_desc = treedb_get_field_desc(col);
|
|
24091
24333
|
if (field_desc.is_hidden) continue;
|
|
24092
24334
|
if (field_desc.type === "hook") continue;
|
|
24093
|
-
if (!field_desc.is_writable && field_desc.type !== "fkey" && col.id !== desc.pkey) continue;
|
|
24094
24335
|
template.push(col);
|
|
24095
24336
|
}
|
|
24096
24337
|
return template;
|
|
@@ -24138,6 +24379,8 @@ function open_form_dialog(gobj, mode, record) {
|
|
|
24138
24379
|
let rid = record ? String(record[pkey] ?? "") : "";
|
|
24139
24380
|
title = t(topic_name) + (empty_string(rid) ? "" : " — " + rid);
|
|
24140
24381
|
}
|
|
24382
|
+
let view_only = mode === "view";
|
|
24383
|
+
let form_mode = view_only ? "update" : mode;
|
|
24141
24384
|
let $body = createElement2([
|
|
24142
24385
|
"div",
|
|
24143
24386
|
{
|
|
@@ -24151,12 +24394,13 @@ function open_form_dialog(gobj, mode, record) {
|
|
|
24151
24394
|
template: build_form_template(gobj),
|
|
24152
24395
|
record,
|
|
24153
24396
|
fkey_options: build_fkey_options(gobj),
|
|
24154
|
-
form_mode
|
|
24155
|
-
|
|
24397
|
+
form_mode,
|
|
24398
|
+
readonly: view_only,
|
|
24399
|
+
...(view_only ? READONLY_FORM_TOOLBAR : form_plan.form_toolbar) ? { toolbar: view_only ? READONLY_FORM_TOOLBAR.slice() : form_plan.form_toolbar } : {},
|
|
24156
24400
|
render_mode: "edit",
|
|
24157
24401
|
pkey: desc.pkey || "id",
|
|
24158
24402
|
topic_name,
|
|
24159
|
-
editable: !form_plan.readonly,
|
|
24403
|
+
editable: !form_plan.readonly && !view_only,
|
|
24160
24404
|
$parent: $body
|
|
24161
24405
|
}, gobj);
|
|
24162
24406
|
priv.form = form;
|
|
@@ -24441,6 +24685,39 @@ function show_edit_form(gobj, row, index) {
|
|
|
24441
24685
|
open_form_dialog(gobj, pkey_is_rowid(gobj) ? "create" : "update", row);
|
|
24442
24686
|
}
|
|
24443
24687
|
/************************************************************
|
|
24688
|
+
* Does a click on this column already mean something else?
|
|
24689
|
+
*
|
|
24690
|
+
* The `_` columns are the table's own scaffolding (the selection
|
|
24691
|
+
* checkbox, the Op buttons); a hook opens its children and a col
|
|
24692
|
+
* holding a json document opens it in a viewer. Anything else is
|
|
24693
|
+
* plain data, and a click on it means "show me this record".
|
|
24694
|
+
************************************************************/
|
|
24695
|
+
var CELL_WITH_ACTION = [
|
|
24696
|
+
"hook",
|
|
24697
|
+
"object",
|
|
24698
|
+
"dict",
|
|
24699
|
+
"template",
|
|
24700
|
+
"array",
|
|
24701
|
+
"list",
|
|
24702
|
+
"coordinates",
|
|
24703
|
+
"blob",
|
|
24704
|
+
"gbuffer"
|
|
24705
|
+
];
|
|
24706
|
+
function cell_has_its_own_action(gobj, field) {
|
|
24707
|
+
if (!field || field.charAt(0) === "_") return true;
|
|
24708
|
+
let col = get_schema_col(gobj, field);
|
|
24709
|
+
if (!col) return false;
|
|
24710
|
+
const field_desc = treedb_get_field_desc(col);
|
|
24711
|
+
return CELL_WITH_ACTION.includes(field_desc.type) || CELL_WITH_ACTION.includes(field_desc.real_type);
|
|
24712
|
+
}
|
|
24713
|
+
/************************************************************
|
|
24714
|
+
* Show a record to be READ: every field, none of them editable.
|
|
24715
|
+
* What a row click opens while the table is not in edition mode.
|
|
24716
|
+
************************************************************/
|
|
24717
|
+
function show_view_form(gobj, row) {
|
|
24718
|
+
open_form_dialog(gobj, "view", row);
|
|
24719
|
+
}
|
|
24720
|
+
/************************************************************
|
|
24444
24721
|
* Show the edit "create" form to a new record
|
|
24445
24722
|
* internally called from the top toolbar +New button
|
|
24446
24723
|
************************************************************/
|
|
@@ -24463,14 +24740,16 @@ function get_schema_col(gobj, id) {
|
|
|
24463
24740
|
* operation: "create" "update"
|
|
24464
24741
|
************************************************************/
|
|
24465
24742
|
function transform__form_record_2_treedb_record(gobj, kw, operation) {
|
|
24743
|
+
let pkey = gobj_read_attr(gobj, "desc").pkey || "id";
|
|
24466
24744
|
let row = {};
|
|
24467
24745
|
for (let field_name of Object.keys(kw)) {
|
|
24468
24746
|
if (empty_string(field_name)) continue;
|
|
24469
24747
|
let col = get_schema_col(gobj, field_name);
|
|
24470
|
-
if (col)
|
|
24471
|
-
|
|
24472
|
-
|
|
24473
|
-
|
|
24748
|
+
if (!col) continue;
|
|
24749
|
+
const field_desc = treedb_get_field_desc(col);
|
|
24750
|
+
if (!field_desc.is_writable && field_desc.type !== "fkey" && col.id !== pkey) continue;
|
|
24751
|
+
let value = kw[field_name];
|
|
24752
|
+
row[field_name] = transform__form_value_2_treedb_value(gobj, col, value, operation);
|
|
24474
24753
|
}
|
|
24475
24754
|
return row;
|
|
24476
24755
|
}
|
|
@@ -25369,6 +25648,24 @@ function ac_open_columns(gobj, event, kw, src) {
|
|
|
25369
25648
|
return 0;
|
|
25370
25649
|
}
|
|
25371
25650
|
/************************************************************
|
|
25651
|
+
* A row was clicked outside edition mode: open the record to be read.
|
|
25652
|
+
************************************************************/
|
|
25653
|
+
function ac_show_record(gobj, event, kw, src) {
|
|
25654
|
+
let tabulator = gobj_read_attr(gobj, "tabulator");
|
|
25655
|
+
let index = kw ? kw.index : void 0;
|
|
25656
|
+
if (!tabulator || typeof index !== "number") {
|
|
25657
|
+
log_error(`${gobj_short_name(gobj)}: no row ${index} to show`);
|
|
25658
|
+
return -1;
|
|
25659
|
+
}
|
|
25660
|
+
let row = tabulator.getRowFromPosition(index);
|
|
25661
|
+
if (!row) {
|
|
25662
|
+
log_error(`${gobj_short_name(gobj)}: row ${index} is gone`);
|
|
25663
|
+
return -1;
|
|
25664
|
+
}
|
|
25665
|
+
show_view_form(gobj, row.getData());
|
|
25666
|
+
return 0;
|
|
25667
|
+
}
|
|
25668
|
+
/************************************************************
|
|
25372
25669
|
* The reader picked another page size: remember it, so coming back to
|
|
25373
25670
|
* this topic opens where they left it instead of at 200.
|
|
25374
25671
|
************************************************************/
|
|
@@ -25593,6 +25890,11 @@ function create_gclass$5(gclass_name) {
|
|
|
25593
25890
|
ac_page_size_changed,
|
|
25594
25891
|
null
|
|
25595
25892
|
],
|
|
25893
|
+
[
|
|
25894
|
+
"EV_SHOW_RECORD",
|
|
25895
|
+
ac_show_record,
|
|
25896
|
+
null
|
|
25897
|
+
],
|
|
25596
25898
|
[
|
|
25597
25899
|
"EV_TOGGLE_COLUMN",
|
|
25598
25900
|
ac_toggle_column,
|
|
@@ -25644,6 +25946,7 @@ function create_gclass$5(gclass_name) {
|
|
|
25644
25946
|
["EV_SEARCH", 0],
|
|
25645
25947
|
["EV_OPEN_COLUMNS", 0],
|
|
25646
25948
|
["EV_PAGE_SIZE_CHANGED", 0],
|
|
25949
|
+
["EV_SHOW_RECORD", 0],
|
|
25647
25950
|
["EV_TOGGLE_COLUMN", 0],
|
|
25648
25951
|
["EV_EXPORT_TABLE", 0],
|
|
25649
25952
|
["EV_CREATE_RECORD", event_flag_t.EVF_OUTPUT_EVENT],
|
|
@@ -52400,160 +52703,6 @@ Sector.PARSED_STYLE_LIST = new Set([].concat(_toConsumableArray(Path.PARSED_STYL
|
|
|
52400
52703
|
"endAngle"
|
|
52401
52704
|
]));
|
|
52402
52705
|
//#endregion
|
|
52403
|
-
//#region src/lib_icons.js
|
|
52404
|
-
/*********************************************************
|
|
52405
|
-
* lib_icons.js
|
|
52406
|
-
*
|
|
52407
|
-
* Two icon systems are managed here:
|
|
52408
|
-
*
|
|
52409
|
-
* 1. FA-style CSS icons (yui_icons.css)
|
|
52410
|
-
* Usage: <i class="yi-save"></i>
|
|
52411
|
-
* Color: inherits currentColor from parent via CSS mask.
|
|
52412
|
-
*
|
|
52413
|
-
* 2. SVG symbol icons for G6 toolbar (and any other component
|
|
52414
|
-
* that uses <use xlink:href="#id">).
|
|
52415
|
-
* Symbols are injected once into the DOM.
|
|
52416
|
-
* All symbol ids are prefixed with "g6-icon-" to avoid
|
|
52417
|
-
* conflicts with other DOM elements.
|
|
52418
|
-
* Icon paths come from:
|
|
52419
|
-
* fontawesome-free-7.1.0-web/sprites/solid.svg
|
|
52420
|
-
*
|
|
52421
|
-
* G6 toolbar items are managed via CSS class names (className
|
|
52422
|
-
* field in getItems()) using YuiToolbar in c_g6_nodes_tree.js.
|
|
52423
|
-
* This lets lib_graph.js state functions (set_submit_state,
|
|
52424
|
-
* disableElements, …) work on toolbar icons exactly like on
|
|
52425
|
-
* regular Bulma/FA buttons — no icon-specific helpers needed.
|
|
52426
|
-
*
|
|
52427
|
-
* Copyright (c) 2025-2026, ArtGins.
|
|
52428
|
-
* All Rights Reserved.
|
|
52429
|
-
*********************************************************/
|
|
52430
|
-
var CUSTOM_SVG_ICONS_ID = "g6-custom-svgicons";
|
|
52431
|
-
var ICONS = `<svg xmlns="http://www.w3.org/2000/svg">
|
|
52432
|
-
<!-- magnifying-glass-plus -->
|
|
52433
|
-
<symbol id="g6-icon-zoom-in" viewBox="0 0 512 512">
|
|
52434
|
-
<path fill="currentColor" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 112c-13.3 0-24 10.7-24 24l0 48-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l48 0 0 48c0 13.3 10.7 24 24 24s24-10.7 24-24l0-48 48 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-48 0 0-48c0-13.3-10.7-24-24-24z"/>
|
|
52435
|
-
</symbol>
|
|
52436
|
-
<!-- magnifying-glass-minus -->
|
|
52437
|
-
<symbol id="g6-icon-zoom-out" viewBox="0 0 512 512">
|
|
52438
|
-
<path fill="currentColor" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM136 184c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z"/>
|
|
52439
|
-
</symbol>
|
|
52440
|
-
<!-- house (reset zoom: back to original 100% view) -->
|
|
52441
|
-
<symbol id="g6-icon-home" viewBox="0 0 512 512">
|
|
52442
|
-
<path fill="currentColor" d="M277.8 8.6c-12.3-11.4-31.3-11.4-43.5 0l-224 208c-9.6 9-12.8 22.9-8 35.1S18.8 272 32 272l16 0 0 176c0 35.3 28.7 64 64 64l288 0c35.3 0 64-28.7 64-64l0-176 16 0c13.2 0 25-8.1 29.8-20.3s1.6-26.2-8-35.1l-224-208zM240 320l32 0c26.5 0 48 21.5 48 48l0 96-128 0 0-96c0-26.5 21.5-48 48-48z"/>
|
|
52443
|
-
</symbol>
|
|
52444
|
-
<!-- expand (zoom to fit) -->
|
|
52445
|
-
<symbol id="g6-icon-fit" viewBox="0 0 448 512">
|
|
52446
|
-
<path fill="currentColor" d="M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"/>
|
|
52447
|
-
</symbol>
|
|
52448
|
-
<!-- fit to selection: the same corner brackets as the fit icon,
|
|
52449
|
-
around a marked object. The two sit side by side in the
|
|
52450
|
-
toolbar and have to read as a family, which a borrowed glyph
|
|
52451
|
-
would not. (No backticks in here: the sprite lives inside a
|
|
52452
|
-
template literal.) -->
|
|
52453
|
-
<symbol id="g6-icon-fit-selection" viewBox="0 0 448 512">
|
|
52454
|
-
<path fill="currentColor" d="M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"/>
|
|
52455
|
-
<rect fill="currentColor" x="144" y="176" width="160" height="160" rx="24"/>
|
|
52456
|
-
</symbol>
|
|
52457
|
-
<!-- crosshairs (center) -->
|
|
52458
|
-
<symbol id="g6-icon-center" viewBox="0 0 576 512">
|
|
52459
|
-
<path fill="currentColor" d="M288-16c17.7 0 32 14.3 32 32l0 18.3c98.1 14 175.7 91.6 189.7 189.7l18.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-18.3 0c-14 98.1-91.6 175.7-189.7 189.7l0 18.3c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-18.3C157.9 463.7 80.3 386.1 66.3 288L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l18.3 0C80.3 125.9 157.9 48.3 256 34.3L256 16c0-17.7 14.3-32 32-32zM131.2 288c12.7 62.7 62.1 112.1 124.8 124.8l0-12.8c0-17.7 14.3-32 32-32s32 14.3 32 32l0 12.8c62.7-12.7 112.1-62.1 124.8-124.8L432 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l12.8 0C432.1 161.3 382.7 111.9 320 99.2l0 12.8c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-12.8C193.3 111.9 143.9 161.3 131.2 224l12.8 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-12.8 0zM288 208a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"/>
|
|
52460
|
-
</symbol>
|
|
52461
|
-
<!-- up-right-and-down-left-from-center (enter fullscreen) -->
|
|
52462
|
-
<symbol id="g6-icon-fullscreen" viewBox="0 0 512 512">
|
|
52463
|
-
<path fill="currentColor" d="M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87-39-39c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2S34.1 320.2 41 327l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2S177.7 512 168 512z"/>
|
|
52464
|
-
</symbol>
|
|
52465
|
-
<!-- down-left-and-up-right-to-center (exit fullscreen) -->
|
|
52466
|
-
<symbol id="g6-icon-fullscreen-exit" viewBox="0 0 512 512">
|
|
52467
|
-
<path fill="currentColor" d="M439.5 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2S450.2 240 440.5 240l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87zM72.5 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87-39-39c-6.9-6.9-8.9-17.2-5.2-26.2S62.8 272 72.5 272z"/>
|
|
52468
|
-
</symbol>
|
|
52469
|
-
<!-- arrow-rotate-left (undo) -->
|
|
52470
|
-
<symbol id="g6-icon-undo" viewBox="0 0 512 512">
|
|
52471
|
-
<path fill="currentColor" d="M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z"/>
|
|
52472
|
-
</symbol>
|
|
52473
|
-
<!-- arrow-rotate-right (redo) -->
|
|
52474
|
-
<symbol id="g6-icon-redo" viewBox="0 0 512 512">
|
|
52475
|
-
<path fill="currentColor" d="M436.7 74.7L448 85.4 448 32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l47.9 0-7.6-7.2c-.2-.2-.4-.4-.6-.6-75-75-196.5-75-271.5 0s-75 196.5 0 271.5 196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c99.9-99.9 261.7-100 361.7-.3z"/>
|
|
52476
|
-
</symbol>
|
|
52477
|
-
<!-- pen (edit node) -->
|
|
52478
|
-
<symbol id="g6-icon-edit" viewBox="0 0 512 512">
|
|
52479
|
-
<path fill="currentColor" d="M352.9 21.2L308 66.1 445.9 204 490.8 159.1C504.4 145.6 512 127.2 512 108s-7.6-37.6-21.2-51.1L455.1 21.2C441.6 7.6 423.2 0 404 0s-37.6 7.6-51.1 21.2zM274.1 100L58.9 315.1c-10.7 10.7-18.5 24.1-22.6 38.7L.9 481.6c-2.3 8.3 0 17.3 6.2 23.4s15.1 8.5 23.4 6.2l127.8-35.5c14.6-4.1 27.9-11.8 38.7-22.6L412 237.9 274.1 100z"/>
|
|
52480
|
-
</symbol>
|
|
52481
|
-
<!-- trash-can (delete) -->
|
|
52482
|
-
<symbol id="g6-icon-delete" viewBox="0 0 448 512">
|
|
52483
|
-
<path fill="currentColor" d="M136.7 5.9C141.1-7.2 153.3-16 167.1-16l113.9 0c13.8 0 26 8.8 30.4 21.9L320 32 416 32c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 8.7-26.1zM32 144l384 0 0 304c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-304zm88 64c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24z"/>
|
|
52484
|
-
</symbol>
|
|
52485
|
-
<!-- link (link nodes) -->
|
|
52486
|
-
<symbol id="g6-icon-link" viewBox="0 0 576 512">
|
|
52487
|
-
<path fill="currentColor" d="M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"/>
|
|
52488
|
-
</symbol>
|
|
52489
|
-
<!-- link-slash (unlink) -->
|
|
52490
|
-
<symbol id="g6-icon-unlink" viewBox="0 0 576 512">
|
|
52491
|
-
<path fill="currentColor" d="M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-122-122c4.2-3.4 8.3-7.1 12.1-10.9l71.1-71.1c29.3-29.3 45.8-69.1 45.8-110.6 0-86.4-70-156.5-156.5-156.5-37.3 0-73.1 13.3-101.3 37.2 20.3 10.1 38.7 23.5 54.5 39.5 14.1-8.3 30.2-12.7 46.8-12.7 51.1 0 92.5 41.4 92.5 92.5 0 24.5-9.7 48-27.1 65.4l-71.1 71.1c-3.9 3.9-8.1 7.4-12.6 10.5l-47.5-47.5c16.5-.9 29.7-14.4 30.2-31.1 0-1.3 0-2.6 0-3.9 0-86.3-69.9-156.9-156.5-156.9-19.2 0-37.9 3.5-55.5 10.2L41-24.9zM225.9 160c.6 0 1.1 0 1.7 0 15.1 0 29.5 3.7 42.1 10.2 1.8 1.2 3.6 2.3 5.5 3.1 26.8 16.3 44.8 45.9 44.8 79.6 0 .4 0 .8 0 1.2L225.9 160zM346.2 416L192 261.8c1.2 84.6 69.6 152.9 154.1 154.1zM139.7 209.5l-45.3-45.3-48.6 48.6c-29.3 29.3-45.8 69.1-45.8 110.6 0 86.4 70 156.5 156.5 156.5 37.2 0 73.1-13.3 101.3-37.2-20.3-10.1-38.8-23.5-54.6-39.5-14 8.2-30.1 12.6-46.7 12.6-51.1 0-92.5-41.4-92.5-92.5 0-24.5 9.7-48 27.1-65.4l48.6-48.6z"/>
|
|
52492
|
-
</symbol>
|
|
52493
|
-
<!-- play (run node) -->
|
|
52494
|
-
<symbol id="g6-icon-run" viewBox="0 0 448 512">
|
|
52495
|
-
<path fill="currentColor" d="M91.2 36.9c-12.4-6.8-27.4-6.5-39.6 .7S32 57.9 32 72l0 368c0 14.1 7.5 27.2 19.6 34.4s27.2 7.5 39.6 .7l336-184c12.8-7 20.8-20.5 20.8-35.1s-8-28.1-20.8-35.1l-336-184z"/>
|
|
52496
|
-
</symbol>
|
|
52497
|
-
<!-- clone (copy size to other nodes/ports) -->
|
|
52498
|
-
<symbol id="g6-icon-resize" viewBox="0 0 512 512">
|
|
52499
|
-
<path fill="currentColor" d="M288 448l-224 0 0-224 48 0 0-64-48 0c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l224 0c35.3 0 64-28.7 64-64l0-48-64 0 0 48zm-64-96l224 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L224 0c-35.3 0-64 28.7-64 64l0 224c0 35.3 28.7 64 64 64z"/>
|
|
52500
|
-
</symbol>
|
|
52501
|
-
<!-- plus (create node). Deliberately NOT the FA7 solid plus:
|
|
52502
|
-
its arms are ~14% of the width and read thin next to the
|
|
52503
|
-
other solid glyphs. Bold geometric plus (~23% arm
|
|
52504
|
-
thickness) with long arms (32..480) so it reads as a "+",
|
|
52505
|
-
not a stubby Red-Cross square. -->
|
|
52506
|
-
<symbol id="g6-icon-plus" viewBox="0 0 512 512">
|
|
52507
|
-
<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"/>
|
|
52508
|
-
</symbol>
|
|
52509
|
-
<!-- ellipsis-vertical (unfold the floating toolbar).
|
|
52510
|
-
The strip it stands for is a vertical stack, and a vertical
|
|
52511
|
-
ellipsis is what "there is more of this here" is drawn as
|
|
52512
|
-
everywhere else. -->
|
|
52513
|
-
<symbol id="g6-icon-toolbar-show" viewBox="0 0 128 512">
|
|
52514
|
-
<path fill="currentColor" d="M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"/>
|
|
52515
|
-
</symbol>
|
|
52516
|
-
<!-- xmark (fold the floating toolbar away).
|
|
52517
|
-
Not a chevron: the two toolbars sit on OPPOSITE edges, so a
|
|
52518
|
-
direction would point the wrong way on one of them. What the
|
|
52519
|
-
button does is close an overlay, and that is an x. -->
|
|
52520
|
-
<symbol id="g6-icon-toolbar-hide" viewBox="0 0 384 512">
|
|
52521
|
-
<path fill="currentColor" d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/>
|
|
52522
|
-
</symbol>
|
|
52523
|
-
<!-- dashed marquee (selection mode).
|
|
52524
|
-
The band ITSELF, because that is what the button turns on: a
|
|
52525
|
-
drag on the canvas draws one and a tap picks a card. Not the
|
|
52526
|
-
fit-to-selection glyph next to it in the other toolbar -- that
|
|
52527
|
-
one is solid brackets around a solid object and means "put the
|
|
52528
|
-
camera on what is picked", which is the opposite end of the
|
|
52529
|
-
gesture. Dashes: 16 segments of 59 with gaps of 36 over a
|
|
52530
|
-
perimeter of 1520, so they land on the corners. -->
|
|
52531
|
-
<symbol id="g6-icon-select-mode" viewBox="0 0 512 512">
|
|
52532
|
-
<rect x="46" y="86" width="420" height="340" fill="none"
|
|
52533
|
-
stroke="currentColor" stroke-width="40"
|
|
52534
|
-
stroke-dasharray="59 36"/>
|
|
52535
|
-
</symbol>
|
|
52536
|
-
<!-- location-crosshairs (anchor the camera on one element).
|
|
52537
|
-
The SAME path as the DOM toolbars and their yi-location-crosshairs
|
|
52538
|
-
mask: the two toolbars sit in one console, and a control that
|
|
52539
|
-
does one thing has to be drawn one way. -->
|
|
52540
|
-
<symbol id="g6-icon-anchor" viewBox="0 0 576 512">
|
|
52541
|
-
<path fill="currentColor" d="M288-16c17.7 0 32 14.3 32 32l0 18.3c98.1 14 175.7 91.6 189.7 189.7l18.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-18.3 0c-14 98.1-91.6 175.7-189.7 189.7l0 18.3c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-18.3C157.9 463.7 80.3 386.1 66.3 288L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l18.3 0C80.3 125.9 157.9 48.3 256 34.3L256 16c0-17.7 14.3-32 32-32zM128 256a160 160 0 1 0 320 0 160 160 0 1 0 -320 0zm160-96a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"/>
|
|
52542
|
-
</symbol>
|
|
52543
|
-
<!-- floppy-disk (save) -->
|
|
52544
|
-
<symbol id="g6-icon-save" viewBox="0 0 448 512">
|
|
52545
|
-
<path fill="currentColor" d="M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-242.7c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32L64 32zm32 96c0-17.7 14.3-32 32-32l160 0c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32l-160 0c-17.7 0-32-14.3-32-32l0-64zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"/>
|
|
52546
|
-
</symbol>
|
|
52547
|
-
</svg>`;
|
|
52548
|
-
function inject_svg_icons() {
|
|
52549
|
-
if (document.getElementById(CUSTOM_SVG_ICONS_ID)) return;
|
|
52550
|
-
const div = document.createElement("div");
|
|
52551
|
-
div.id = CUSTOM_SVG_ICONS_ID;
|
|
52552
|
-
div.style.display = "none";
|
|
52553
|
-
div.innerHTML = ICONS;
|
|
52554
|
-
document.body.appendChild(div);
|
|
52555
|
-
}
|
|
52556
|
-
//#endregion
|
|
52557
52706
|
//#region src/g6_brush_select_owned.js
|
|
52558
52707
|
/***********************************************************************
|
|
52559
52708
|
* g6_brush_select_owned.js
|