@yuneta/gobj-ui 7.23.177 → 7.23.178

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.
@@ -76508,8 +76508,8 @@ details.TRAFFIC_NEST > summary::-webkit-details-marker { display: none; }
76508
76508
  ******************************/
76509
76509
  /************************************************************
76510
76510
  * One scalar field as a bullet row: `• key: value`.
76511
- * Type-coloured; long strings clipped (full text on hover);
76512
- * timestamp fields get an ISO annotation.
76511
+ * Type-coloured; long strings clipped (the whole value is in the Expanded
76512
+ * view); timestamp fields get an ISO annotation.
76513
76513
  ************************************************************/
76514
76514
  function traffic_scalar_row(key, value) {
76515
76515
  let cls;
@@ -76527,14 +76527,10 @@ function traffic_scalar_row(key, value) {
76527
76527
  cls = "t-str";
76528
76528
  text = String(value);
76529
76529
  }
76530
- let full = text;
76531
76530
  if (text.length > 200) text = text.slice(0, 200) + "…";
76532
76531
  let val_children = [[
76533
76532
  "span",
76534
- {
76535
- class: "TRAFFIC_VAL " + cls,
76536
- title: full
76537
- },
76533
+ { class: "TRAFFIC_VAL " + cls },
76538
76534
  text
76539
76535
  ]];
76540
76536
  if (key in TRAFFIC_TS_FIELDS && typeof value === "number") {
@@ -76640,10 +76636,7 @@ function traffic_value_node(key, value) {
76640
76636
  ],
76641
76637
  [
76642
76638
  "span",
76643
- {
76644
- class: "TRAFFIC_NEST_HINT",
76645
- title: `${count}`
76646
- },
76639
+ { class: "TRAFFIC_NEST_HINT" },
76647
76640
  hint
76648
76641
  ]
76649
76642
  ]
@@ -76708,10 +76701,7 @@ function render_detailed(e) {
76708
76701
  ]);
76709
76702
  return (0, _yuneta_gobj_js.createElement2)([
76710
76703
  "div",
76711
- {
76712
- class: "TRAFFIC_ENTRY " + dir_class(e.dir),
76713
- title: e.title
76714
- },
76704
+ { class: "TRAFFIC_ENTRY " + dir_class(e.dir) },
76715
76705
  children
76716
76706
  ]);
76717
76707
  }
@@ -76766,20 +76756,14 @@ function render_full(e) {
76766
76756
  ]];
76767
76757
  return (0, _yuneta_gobj_js.createElement2)([
76768
76758
  "div",
76769
- {
76770
- class: "TRAFFIC_ENTRY " + dir_class(e.dir),
76771
- title: e.title
76772
- },
76759
+ { class: "TRAFFIC_ENTRY " + dir_class(e.dir) },
76773
76760
  children
76774
76761
  ]);
76775
76762
  }
76776
76763
  function render_log(e) {
76777
76764
  let $row = (0, _yuneta_gobj_js.createElement2)([
76778
76765
  "div",
76779
- {
76780
- class: "YDEV_LOGROW YDEV_LOG_" + e.level,
76781
- title: e.level
76782
- },
76766
+ { class: "YDEV_LOGROW YDEV_LOG_" + e.level },
76783
76767
  [
76784
76768
  [
76785
76769
  "span",
@@ -76503,8 +76503,8 @@ details.TRAFFIC_NEST > summary::-webkit-details-marker { display: none; }
76503
76503
  ******************************/
76504
76504
  /************************************************************
76505
76505
  * One scalar field as a bullet row: `• key: value`.
76506
- * Type-coloured; long strings clipped (full text on hover);
76507
- * timestamp fields get an ISO annotation.
76506
+ * Type-coloured; long strings clipped (the whole value is in the Expanded
76507
+ * view); timestamp fields get an ISO annotation.
76508
76508
  ************************************************************/
76509
76509
  function traffic_scalar_row(key, value) {
76510
76510
  let cls;
@@ -76522,14 +76522,10 @@ function traffic_scalar_row(key, value) {
76522
76522
  cls = "t-str";
76523
76523
  text = String(value);
76524
76524
  }
76525
- let full = text;
76526
76525
  if (text.length > 200) text = text.slice(0, 200) + "…";
76527
76526
  let val_children = [[
76528
76527
  "span",
76529
- {
76530
- class: "TRAFFIC_VAL " + cls,
76531
- title: full
76532
- },
76528
+ { class: "TRAFFIC_VAL " + cls },
76533
76529
  text
76534
76530
  ]];
76535
76531
  if (key in TRAFFIC_TS_FIELDS && typeof value === "number") {
@@ -76635,10 +76631,7 @@ function traffic_value_node(key, value) {
76635
76631
  ],
76636
76632
  [
76637
76633
  "span",
76638
- {
76639
- class: "TRAFFIC_NEST_HINT",
76640
- title: `${count}`
76641
- },
76634
+ { class: "TRAFFIC_NEST_HINT" },
76642
76635
  hint
76643
76636
  ]
76644
76637
  ]
@@ -76703,10 +76696,7 @@ function render_detailed(e) {
76703
76696
  ]);
76704
76697
  return createElement2([
76705
76698
  "div",
76706
- {
76707
- class: "TRAFFIC_ENTRY " + dir_class(e.dir),
76708
- title: e.title
76709
- },
76699
+ { class: "TRAFFIC_ENTRY " + dir_class(e.dir) },
76710
76700
  children
76711
76701
  ]);
76712
76702
  }
@@ -76761,20 +76751,14 @@ function render_full(e) {
76761
76751
  ]];
76762
76752
  return createElement2([
76763
76753
  "div",
76764
- {
76765
- class: "TRAFFIC_ENTRY " + dir_class(e.dir),
76766
- title: e.title
76767
- },
76754
+ { class: "TRAFFIC_ENTRY " + dir_class(e.dir) },
76768
76755
  children
76769
76756
  ]);
76770
76757
  }
76771
76758
  function render_log(e) {
76772
76759
  let $row = createElement2([
76773
76760
  "div",
76774
- {
76775
- class: "YDEV_LOGROW YDEV_LOG_" + e.level,
76776
- title: e.level
76777
- },
76761
+ { class: "YDEV_LOGROW YDEV_LOG_" + e.level },
76778
76762
  [
76779
76763
  [
76780
76764
  "span",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.23.177",
3
+ "version": "7.23.178",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
package/src/yui_dev.js CHANGED
@@ -532,8 +532,8 @@ details.TRAFFIC_NEST > summary::-webkit-details-marker { display: none; }
532
532
 
533
533
  /************************************************************
534
534
  * One scalar field as a bullet row: `• key: value`.
535
- * Type-coloured; long strings clipped (full text on hover);
536
- * timestamp fields get an ISO annotation.
535
+ * Type-coloured; long strings clipped (the whole value is in the Expanded
536
+ * view); timestamp fields get an ISO annotation.
537
537
  ************************************************************/
538
538
  function traffic_scalar_row(key, value)
539
539
  {
@@ -553,13 +553,16 @@ function traffic_scalar_row(key, value)
553
553
  text = String(value);
554
554
  }
555
555
 
556
- let full = text;
557
556
  if(text.length > 200) {
558
557
  text = text.slice(0, 200) + "…";
559
558
  }
560
559
 
560
+ /* No `title` with the full text: a tooltip that pops over the log while
561
+ it is being read is what this window had too much of, and the whole
562
+ value is one click away in the Expanded view. On a value SHORTER than
563
+ the clip -- almost all of them -- it repeated the visible text anyway. */
561
564
  let val_children = [
562
- ['span', {class: 'TRAFFIC_VAL ' + cls, title: full}, text],
565
+ ['span', {class: 'TRAFFIC_VAL ' + cls}, text],
563
566
  ];
564
567
  if((key in TRAFFIC_TS_FIELDS) && typeof value === "number") {
565
568
  let iso = traffic_iso(value);
@@ -662,7 +665,7 @@ function traffic_value_node(key, value)
662
665
  ['summary', {}, [
663
666
  ['span', {class: 'TRAFFIC_BULLET'}, '▸'],
664
667
  ['span', {class: 'TRAFFIC_NEST_KEY'}, key],
665
- ['span', {class: 'TRAFFIC_NEST_HINT', title: `${count}`}, hint],
668
+ ['span', {class: 'TRAFFIC_NEST_HINT'}, hint],
666
669
  ]],
667
670
  ['div', {class: 'TRAFFIC_KW'}, traffic_bullets(value)],
668
671
  ]];
@@ -715,7 +718,7 @@ function render_detailed(e)
715
718
  } else if(!kw) {
716
719
  children.push(['div', {class: 'TRAFFIC_KW'}, traffic_bullets(e.jn)]);
717
720
  }
718
- return createElement2(['div', {class: 'TRAFFIC_ENTRY ' + dir_class(e.dir), title: e.title}, children]);
721
+ return createElement2(['div', {class: 'TRAFFIC_ENTRY ' + dir_class(e.dir)}, children]);
719
722
  }
720
723
 
721
724
  /* Whether an Expanded-view section is shown (persisted toggles). schema
@@ -775,14 +778,14 @@ function render_full(e)
775
778
  ['div', {class: 'TRAFFIC_HEADER'}, head],
776
779
  ['pre', {class: 'TRAFFIC_FULL'}, text],
777
780
  ];
778
- return createElement2(['div', {class: 'TRAFFIC_ENTRY ' + dir_class(e.dir), title: e.title}, children]);
781
+ return createElement2(['div', {class: 'TRAFFIC_ENTRY ' + dir_class(e.dir)}, children]);
779
782
  }
780
783
 
781
784
  /* A mirrored framework log line (error/warning/info/debug/msg). */
782
785
  function render_log(e)
783
786
  {
784
787
  let $row = createElement2(
785
- ['div', {class: 'YDEV_LOGROW YDEV_LOG_' + e.level, title: e.level}, [
788
+ ['div', {class: 'YDEV_LOGROW YDEV_LOG_' + e.level}, [
786
789
  ['span', {class: 'YDEV_LOG_LVL'}, e.level],
787
790
  ['span', {class: 'YDEV_LOG_TXT'}, ''],
788
791
  ['span', {class: 'TRAFFIC_META'}, e.ts],