@yuneta/gobj-ui 7.27.13 → 7.27.15

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.
@@ -4676,7 +4676,7 @@ function yui_shell_show_modal(shell, content, opts) {
4676
4676
  var CONFIRM_TYPE_ICONS = {
4677
4677
  "info": "yi-circle-info",
4678
4678
  "question": "yi-question",
4679
- "success": "yi-square-check",
4679
+ "success": "yi-circle-check",
4680
4680
  "warning": "yi-triangle-exclamation",
4681
4681
  "error": "yi-circle-exclamation"
4682
4682
  };
@@ -9199,7 +9199,7 @@ function yui_watch_theme(gobj, event = "EV_THEME") {
9199
9199
  * Two icon systems are managed here:
9200
9200
  *
9201
9201
  * 1. FA-style CSS icons (yui_icons.css)
9202
- * Usage: <i class="yi-save"></i>
9202
+ * Usage: <i class="yi-floppy-disk"></i>
9203
9203
  * Color: inherits currentColor from parent via CSS mask.
9204
9204
  *
9205
9205
  * 2. SVG symbol icons for G6 toolbar (and any other component
@@ -11143,7 +11143,7 @@ function toolbar_button$1(gobj, name) {
11143
11143
  [[
11144
11144
  "span",
11145
11145
  { class: "icon m-0" },
11146
- (0, _yuneta_gobj_js.html_markup)("<i class=\"yi-broom-wide\"></i>")
11146
+ (0, _yuneta_gobj_js.html_markup)("<i class=\"yi-broom\"></i>")
11147
11147
  ], [
11148
11148
  "span",
11149
11149
  {
@@ -18763,7 +18763,7 @@ var VIEWS$1 = [
18763
18763
  },
18764
18764
  {
18765
18765
  mode: "tree",
18766
- icon: "yi-sitemap",
18766
+ icon: "yi-folder-tree",
18767
18767
  key: "tree view"
18768
18768
  },
18769
18769
  {
@@ -28044,7 +28044,7 @@ function yui_shell_show_route_map(shell, opts) {
28044
28044
  height: 640,
28045
28045
  logical_class: "ROUTEMAP_WINDOW",
28046
28046
  title: "site map",
28047
- icon: "yi-bars",
28047
+ icon: "yi-sitemap",
28048
28048
  body: $body,
28049
28049
  manager: (0, _yuneta_gobj_js.gobj_find_service)("__window_manager__", false) || null,
28050
28050
  keep_on_navigate: true
@@ -32616,7 +32616,7 @@ function build_ui$5(gobj) {
32616
32616
  "aria-label": (0, i18next.t)("raw json"),
32617
32617
  "data-i18n-aria-label": "raw json"
32618
32618
  },
32619
- [yui_toolbar_icon("yi-eye"), [
32619
+ [yui_toolbar_icon("yi-code"), [
32620
32620
  "span",
32621
32621
  {
32622
32622
  class: "is-hidden-mobile",
@@ -32642,7 +32642,7 @@ function build_ui$5(gobj) {
32642
32642
  "aria-label": (0, i18next.t)("export"),
32643
32643
  "data-i18n-aria-label": "export"
32644
32644
  },
32645
- [yui_toolbar_icon("yi-download"), [
32645
+ [yui_toolbar_icon("yi-file-csv"), [
32646
32646
  "span",
32647
32647
  {
32648
32648
  class: "is-hidden-mobile",
@@ -33428,7 +33428,7 @@ function build_json_cell_preview(value) {
33428
33428
  "aria-label": (0, i18next.t)("show json"),
33429
33429
  "data-i18n-aria-label": "show json"
33430
33430
  },
33431
- [["span", { class: "JSON_CELL_ICON icon yi-eye" }], [
33431
+ [["span", { class: "JSON_CELL_ICON icon yi-code" }], [
33432
33432
  "span",
33433
33433
  { class: "JSON_CELL_PREVIEW" },
33434
33434
  text_node(text)
@@ -33859,7 +33859,7 @@ function open_cell_json_dialog(gobj, row_id, col_id) {
33859
33859
  logical_class: "TREEDB_CELL_JSON",
33860
33860
  title_prefix: String(row_id),
33861
33861
  title: col_id,
33862
- icon: "yi-js-square",
33862
+ icon: "yi-code",
33863
33863
  forget_window: function() {
33864
33864
  priv.cell_json_win = null;
33865
33865
  },
@@ -35688,7 +35688,7 @@ function open_table_json_dialog(gobj, records) {
35688
35688
  logical_class: "TREEDB_TABLE_JSON",
35689
35689
  title_prefix: (0, _yuneta_gobj_js.gobj_read_str_attr)(gobj, "topic_name"),
35690
35690
  title: "raw json",
35691
- icon: "yi-eye",
35691
+ icon: "yi-code",
35692
35692
  forget_window: function() {
35693
35693
  priv.table_json_win = null;
35694
35694
  },
@@ -74087,7 +74087,7 @@ function make_toolbar(gobj) {
74087
74087
  "data-i18n-title": "raw json",
74088
74088
  "data-i18n-aria-label": "raw json"
74089
74089
  },
74090
- [yui_toolbar_icon("yi-eye"), [
74090
+ [yui_toolbar_icon("yi-code"), [
74091
74091
  "span",
74092
74092
  {
74093
74093
  class: "is-hidden-mobile",
@@ -74305,7 +74305,7 @@ function open_json_viewer(gobj) {
74305
74305
  logical_class: "TREEDB_JSON_WINDOW",
74306
74306
  title_prefix: priv.treedb_name,
74307
74307
  title: "raw json",
74308
- icon: "yi-eye",
74308
+ icon: "yi-code",
74309
74309
  body: $box,
74310
74310
  manager: null,
74311
74311
  on_close: () => {
@@ -79426,8 +79426,8 @@ function render_toolbar(gobj) {
79426
79426
  let $right = [];
79427
79427
  if (priv.treedb_id && has_model && treedb_here) {
79428
79428
  $right.push(toolbar_button("SCHEMA_DIAGRAM_BTN", "yi-compass-drafting", priv.diagram ? "topics" : "diagram", "EV_TOGGLE_DIAGRAM", false));
79429
- $right.push(toolbar_button("SCHEMA_VALIDATE_BTN", "yi-square-check", "check", "EV_VALIDATE", false));
79430
- $right.push(toolbar_button("SCHEMA_EXPORT_BTN", "yi-download", "export", "EV_EXPORT", false));
79429
+ $right.push(toolbar_button("SCHEMA_VALIDATE_BTN", "yi-check", "check", "EV_VALIDATE", false));
79430
+ $right.push(toolbar_button("SCHEMA_EXPORT_BTN", "yi-file-code", "export", "EV_EXPORT", false));
79431
79431
  if (!readonly) $right.push(toolbar_button("SCHEMA_IMPORT_BTN", "yi-upload", "import", "EV_IMPORT", false));
79432
79432
  }
79433
79433
  if (priv.topic_name && !readonly && !priv.diagram && topic_here) {
@@ -4671,7 +4671,7 @@ function yui_shell_show_modal(shell, content, opts) {
4671
4671
  var CONFIRM_TYPE_ICONS = {
4672
4672
  "info": "yi-circle-info",
4673
4673
  "question": "yi-question",
4674
- "success": "yi-square-check",
4674
+ "success": "yi-circle-check",
4675
4675
  "warning": "yi-triangle-exclamation",
4676
4676
  "error": "yi-circle-exclamation"
4677
4677
  };
@@ -9194,7 +9194,7 @@ function yui_watch_theme(gobj, event = "EV_THEME") {
9194
9194
  * Two icon systems are managed here:
9195
9195
  *
9196
9196
  * 1. FA-style CSS icons (yui_icons.css)
9197
- * Usage: <i class="yi-save"></i>
9197
+ * Usage: <i class="yi-floppy-disk"></i>
9198
9198
  * Color: inherits currentColor from parent via CSS mask.
9199
9199
  *
9200
9200
  * 2. SVG symbol icons for G6 toolbar (and any other component
@@ -11138,7 +11138,7 @@ function toolbar_button$1(gobj, name) {
11138
11138
  [[
11139
11139
  "span",
11140
11140
  { class: "icon m-0" },
11141
- html_markup("<i class=\"yi-broom-wide\"></i>")
11141
+ html_markup("<i class=\"yi-broom\"></i>")
11142
11142
  ], [
11143
11143
  "span",
11144
11144
  {
@@ -18758,7 +18758,7 @@ var VIEWS$1 = [
18758
18758
  },
18759
18759
  {
18760
18760
  mode: "tree",
18761
- icon: "yi-sitemap",
18761
+ icon: "yi-folder-tree",
18762
18762
  key: "tree view"
18763
18763
  },
18764
18764
  {
@@ -28039,7 +28039,7 @@ function yui_shell_show_route_map(shell, opts) {
28039
28039
  height: 640,
28040
28040
  logical_class: "ROUTEMAP_WINDOW",
28041
28041
  title: "site map",
28042
- icon: "yi-bars",
28042
+ icon: "yi-sitemap",
28043
28043
  body: $body,
28044
28044
  manager: gobj_find_service("__window_manager__", false) || null,
28045
28045
  keep_on_navigate: true
@@ -32611,7 +32611,7 @@ function build_ui$5(gobj) {
32611
32611
  "aria-label": t("raw json"),
32612
32612
  "data-i18n-aria-label": "raw json"
32613
32613
  },
32614
- [yui_toolbar_icon("yi-eye"), [
32614
+ [yui_toolbar_icon("yi-code"), [
32615
32615
  "span",
32616
32616
  {
32617
32617
  class: "is-hidden-mobile",
@@ -32637,7 +32637,7 @@ function build_ui$5(gobj) {
32637
32637
  "aria-label": t("export"),
32638
32638
  "data-i18n-aria-label": "export"
32639
32639
  },
32640
- [yui_toolbar_icon("yi-download"), [
32640
+ [yui_toolbar_icon("yi-file-csv"), [
32641
32641
  "span",
32642
32642
  {
32643
32643
  class: "is-hidden-mobile",
@@ -33423,7 +33423,7 @@ function build_json_cell_preview(value) {
33423
33423
  "aria-label": t("show json"),
33424
33424
  "data-i18n-aria-label": "show json"
33425
33425
  },
33426
- [["span", { class: "JSON_CELL_ICON icon yi-eye" }], [
33426
+ [["span", { class: "JSON_CELL_ICON icon yi-code" }], [
33427
33427
  "span",
33428
33428
  { class: "JSON_CELL_PREVIEW" },
33429
33429
  text_node(text)
@@ -33854,7 +33854,7 @@ function open_cell_json_dialog(gobj, row_id, col_id) {
33854
33854
  logical_class: "TREEDB_CELL_JSON",
33855
33855
  title_prefix: String(row_id),
33856
33856
  title: col_id,
33857
- icon: "yi-js-square",
33857
+ icon: "yi-code",
33858
33858
  forget_window: function() {
33859
33859
  priv.cell_json_win = null;
33860
33860
  },
@@ -35683,7 +35683,7 @@ function open_table_json_dialog(gobj, records) {
35683
35683
  logical_class: "TREEDB_TABLE_JSON",
35684
35684
  title_prefix: gobj_read_str_attr(gobj, "topic_name"),
35685
35685
  title: "raw json",
35686
- icon: "yi-eye",
35686
+ icon: "yi-code",
35687
35687
  forget_window: function() {
35688
35688
  priv.table_json_win = null;
35689
35689
  },
@@ -74082,7 +74082,7 @@ function make_toolbar(gobj) {
74082
74082
  "data-i18n-title": "raw json",
74083
74083
  "data-i18n-aria-label": "raw json"
74084
74084
  },
74085
- [yui_toolbar_icon("yi-eye"), [
74085
+ [yui_toolbar_icon("yi-code"), [
74086
74086
  "span",
74087
74087
  {
74088
74088
  class: "is-hidden-mobile",
@@ -74300,7 +74300,7 @@ function open_json_viewer(gobj) {
74300
74300
  logical_class: "TREEDB_JSON_WINDOW",
74301
74301
  title_prefix: priv.treedb_name,
74302
74302
  title: "raw json",
74303
- icon: "yi-eye",
74303
+ icon: "yi-code",
74304
74304
  body: $box,
74305
74305
  manager: null,
74306
74306
  on_close: () => {
@@ -79421,8 +79421,8 @@ function render_toolbar(gobj) {
79421
79421
  let $right = [];
79422
79422
  if (priv.treedb_id && has_model && treedb_here) {
79423
79423
  $right.push(toolbar_button("SCHEMA_DIAGRAM_BTN", "yi-compass-drafting", priv.diagram ? "topics" : "diagram", "EV_TOGGLE_DIAGRAM", false));
79424
- $right.push(toolbar_button("SCHEMA_VALIDATE_BTN", "yi-square-check", "check", "EV_VALIDATE", false));
79425
- $right.push(toolbar_button("SCHEMA_EXPORT_BTN", "yi-download", "export", "EV_EXPORT", false));
79424
+ $right.push(toolbar_button("SCHEMA_VALIDATE_BTN", "yi-check", "check", "EV_VALIDATE", false));
79425
+ $right.push(toolbar_button("SCHEMA_EXPORT_BTN", "yi-file-code", "export", "EV_EXPORT", false));
79426
79426
  if (!readonly) $right.push(toolbar_button("SCHEMA_IMPORT_BTN", "yi-upload", "import", "EV_IMPORT", false));
79427
79427
  }
79428
79428
  if (priv.topic_name && !readonly && !priv.diagram && topic_here) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.27.13",
3
+ "version": "7.27.15",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
package/src/c_yui_form.js CHANGED
@@ -440,7 +440,7 @@ function toolbar_button(gobj, name)
440
440
  }];
441
441
  case "clear":
442
442
  return ['button', {class: 'button p-1 button-clear', title: t('clear'), 'data-i18n-title': 'clear', 'aria-label': t('clear'), 'data-i18n-aria-label': 'clear'}, [
443
- ['span', {class: 'icon m-0'}, html_markup('<i class="yi-broom-wide"></i>')],
443
+ ['span', {class: 'icon m-0'}, html_markup('<i class="yi-broom"></i>')],
444
444
  ['span', {class: 'is-hidden-mobile pl-1 pr-1', i18n: 'clear'}, 'clear']
445
445
  ], {
446
446
  click: function(evt) {
package/src/c_yui_json.js CHANGED
@@ -154,7 +154,7 @@ const MAX_LABEL_CHARS = 40;
154
154
  */
155
155
  const VIEWS = [
156
156
  {mode: "text", icon: "yi-code", key: "text view"},
157
- {mode: "tree", icon: "yi-sitemap", key: "tree view"},
157
+ {mode: "tree", icon: "yi-folder-tree", key: "tree view"},
158
158
  {mode: "graph", icon: "yi-hexagon-nodes", key: "graph view"},
159
159
  ];
160
160
 
@@ -1190,9 +1190,9 @@ function render_toolbar(gobj)
1190
1190
  * `hexagon-nodes` it wore is the graph of the DATA. */
1191
1191
  $right.push(toolbar_button("SCHEMA_DIAGRAM_BTN", "yi-compass-drafting",
1192
1192
  priv.diagram ? "topics" : "diagram", "EV_TOGGLE_DIAGRAM", false));
1193
- $right.push(toolbar_button("SCHEMA_VALIDATE_BTN", "yi-square-check",
1193
+ $right.push(toolbar_button("SCHEMA_VALIDATE_BTN", "yi-check",
1194
1194
  "check", "EV_VALIDATE", false));
1195
- $right.push(toolbar_button("SCHEMA_EXPORT_BTN", "yi-download",
1195
+ $right.push(toolbar_button("SCHEMA_EXPORT_BTN", "yi-file-code",
1196
1196
  "export", "EV_EXPORT", false));
1197
1197
  if(!readonly) {
1198
1198
  $right.push(toolbar_button("SCHEMA_IMPORT_BTN", "yi-upload",
@@ -990,7 +990,7 @@ function make_toolbar(gobj)
990
990
  ['button', {class: 'button ml-2 TREEDB_JSON_BTN',
991
991
  title: t('raw json'), 'aria-label': t('raw json'),
992
992
  'data-i18n-title': 'raw json', 'data-i18n-aria-label': 'raw json'}, [
993
- yui_toolbar_icon('yi-eye'),
993
+ yui_toolbar_icon('yi-code'),
994
994
  ['span', {class: 'is-hidden-mobile', style: 'padding-left:5px;', i18n: 'raw json'}, 'raw json']
995
995
  ], {
996
996
  click: (evt) => {
@@ -1268,7 +1268,7 @@ function open_json_viewer(gobj)
1268
1268
  logical_class: "TREEDB_JSON_WINDOW",
1269
1269
  title_prefix: priv.treedb_name,
1270
1270
  title: "raw json",
1271
- icon: "yi-eye",
1271
+ icon: "yi-code",
1272
1272
  body: $box,
1273
1273
  manager: null,
1274
1274
  on_close: () => {
@@ -901,7 +901,7 @@ function build_ui(gobj)
901
901
  ['button', {class: 'TREEDB_TABLE_JSON button mr-1',
902
902
  title: t('raw json'), 'data-i18n-title': 'raw json',
903
903
  'aria-label': t('raw json'), 'data-i18n-aria-label': 'raw json'}, [
904
- yui_toolbar_icon('yi-eye'),
904
+ yui_toolbar_icon('yi-code'),
905
905
  ['span', {class: 'is-hidden-mobile', i18n: 'raw json', style: 'padding-left:5px;'}, 'raw json']
906
906
  ], {
907
907
  'click': (event) => {
@@ -922,7 +922,7 @@ function build_ui(gobj)
922
922
  title: t('download the rows loaded in this table as csv'),
923
923
  'data-i18n-title': 'download the rows loaded in this table as csv',
924
924
  'aria-label': t('export'), 'data-i18n-aria-label': 'export'}, [
925
- yui_toolbar_icon('yi-download'),
925
+ yui_toolbar_icon('yi-file-csv'),
926
926
  ['span', {class: 'is-hidden-mobile', i18n: 'export', style: 'padding-left:5px;'}, 'export']
927
927
  ], {
928
928
  'click': (event) => {
@@ -2181,7 +2181,7 @@ function build_json_cell_preview(value)
2181
2181
  'aria-label': t('show json'),
2182
2182
  'data-i18n-aria-label': 'show json'
2183
2183
  }, [
2184
- ['span', {class: 'JSON_CELL_ICON icon yi-eye'}],
2184
+ ['span', {class: 'JSON_CELL_ICON icon yi-code'}],
2185
2185
  ['span', {class: 'JSON_CELL_PREVIEW'}, text_node(text)]
2186
2186
  ]]
2187
2187
  );
@@ -2831,7 +2831,7 @@ function open_cell_json_dialog(gobj, row_id, col_id)
2831
2831
  logical_class: "TREEDB_CELL_JSON",
2832
2832
  title_prefix: String(row_id),
2833
2833
  title: col_id,
2834
- icon: "yi-js-square",
2834
+ icon: "yi-code",
2835
2835
  forget_window: function() {
2836
2836
  priv.cell_json_win = null;
2837
2837
  },
@@ -5339,7 +5339,7 @@ function open_table_json_dialog(gobj, records)
5339
5339
  logical_class: "TREEDB_TABLE_JSON",
5340
5340
  title_prefix: gobj_read_str_attr(gobj, "topic_name"),
5341
5341
  title: "raw json",
5342
- icon: "yi-eye",
5342
+ icon: "yi-code",
5343
5343
  forget_window: function() {
5344
5344
  priv.table_json_win = null;
5345
5345
  },
package/src/lib_icons.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Two icon systems are managed here:
5
5
  *
6
6
  * 1. FA-style CSS icons (yui_icons.css)
7
- * Usage: <i class="yi-save"></i>
7
+ * Usage: <i class="yi-floppy-disk"></i>
8
8
  * Color: inherits currentColor from parent via CSS mask.
9
9
  *
10
10
  * 2. SVG symbol icons for G6 toolbar (and any other component
@@ -569,7 +569,7 @@ export function yui_shell_show_modal(shell, content, opts)
569
569
  const CONFIRM_TYPE_ICONS = {
570
570
  "info": "yi-circle-info",
571
571
  "question": "yi-question",
572
- "success": "yi-square-check",
572
+ "success": "yi-circle-check",
573
573
  "warning": "yi-triangle-exclamation",
574
574
  "error": "yi-circle-exclamation",
575
575
  };
@@ -542,7 +542,7 @@ export function yui_shell_show_route_map(shell, opts)
542
542
  height: 640,
543
543
  logical_class: "ROUTEMAP_WINDOW",
544
544
  title: "site map",
545
- icon: "yi-bars",
545
+ icon: "yi-sitemap",
546
546
  body: $body,
547
547
  /* Opt into the dock/taskbar if the app provides one: null = no
548
548
  * dock (gobj_find_service() answers null for an absent service
package/src/yui_icons.css CHANGED
@@ -757,6 +757,15 @@
757
757
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l251.5 0C261 469.4 240 414.5 240 356.4l0-31.1c0-7.3 1-14.5 2.9-21.3l-48.6 0zm251 184.5l-13.3 6.3 0-188.1 96 32 0 19.6c0 55.8-32.2 106.5-82.7 130.3zM421.9 259.5l-112 37.3c-13.1 4.4-21.9 16.6-21.9 30.4l0 31.1c0 74.4 43 142.1 110.2 173.7l18.5 8.7c4.8 2.2 10 3.4 15.2 3.4s10.5-1.2 15.2-3.4l18.5-8.7C533 500.3 576 432.6 576 358.2l0-31.1c0-13.8-8.8-26-21.9-30.4l-112-37.3c-6.6-2.2-13.7-2.2-20.2 0z'/%3E%3C/svg%3E");
758
758
  }
759
759
 
760
+ /* Success: the check in a circle of every success notice (Bulma,
761
+ * Bootstrap, Material's check_circle), the family of circle-info and
762
+ * circle-exclamation. The checked square says selected (FontAwesome Free
763
+ * 7.3.1). */
764
+ .yi-circle-check::before {
765
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z'/%3E%3C/svg%3E");
766
+ mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z'/%3E%3C/svg%3E");
767
+ }
768
+
760
769
  /*
761
770
  * A user icon drawn straight from its svg, before (or without) being
762
771
  * registered as a class -- the preview of the form, the cells of