mol_view_tree2_lib 1.0.18 → 1.0.20

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/node.test.js CHANGED
@@ -5916,6 +5916,9 @@ var $;
5916
5916
  sort() {
5917
5917
  return $mol_fail(new TypeError(`Mutable sort is forbidden. Use toSorted instead.`));
5918
5918
  }
5919
+ indexOf(needle) {
5920
+ return this.findIndex(item => item === needle);
5921
+ }
5919
5922
  [Symbol.toPrimitive]() {
5920
5923
  return $mol_guid();
5921
5924
  }
@@ -10892,20 +10895,11 @@ var $;
10892
10895
 
10893
10896
  ;
10894
10897
  ($.$mol_speck) = class $mol_speck extends ($.$mol_view) {
10895
- theme(){
10896
- return "$mol_theme_accent";
10897
- }
10898
10898
  value(){
10899
10899
  return null;
10900
10900
  }
10901
- minimal_width(){
10902
- return 12;
10903
- }
10904
- attr(){
10905
- return {...(super.attr()), "mol_theme": (this.theme())};
10906
- }
10907
- style(){
10908
- return {...(super.style()), "minHeight": "1em"};
10901
+ theme(){
10902
+ return "$mol_theme_accent";
10909
10903
  }
10910
10904
  sub(){
10911
10905
  return [(this.value())];
@@ -10917,7 +10911,7 @@ var $;
10917
10911
  "use strict";
10918
10912
  var $;
10919
10913
  (function ($) {
10920
- $mol_style_attach("mol/speck/speck.view.css", "[mol_speck] {\n\tfont-size: .75rem;\n\tborder-radius: 1rem;\n\tmargin: -0.5rem -0.2rem;\n\talign-self: flex-start;\n\tmin-height: 1em;\n\tvertical-align: sub;\n\tpadding: 0 .2rem;\n\tposition: absolute;\n\tz-index: var(--mol_layer_speck);\n\ttext-align: center;\n\tline-height: .9;\n\tdisplay: inline-block;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n\tuser-select: none;\n\tbox-shadow: 0 0 3px rgba(0,0,0,.5);\n}\n");
10914
+ $mol_style_attach("mol/speck/speck.view.css", "[mol_speck] {\n\tfont-size: .75rem;\n\tborder-radius: 1rem;\n\tmargin: -0.5rem -0.2rem;\n\talign-self: flex-start;\n\tmin-height: 1em;\n\tmin-width: .75rem;\n\tvertical-align: sub;\n\tpadding: 0 .2rem;\n\tposition: absolute;\n\tz-index: var(--mol_layer_speck);\n\ttext-align: center;\n\tline-height: .9;\n\tdisplay: inline-block;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n\tuser-select: none;\n\tbox-shadow: 0 0 3px rgba(0,0,0,.5);\n}\n");
10921
10915
  })($ || ($ = {}));
10922
10916
 
10923
10917
  ;
@@ -12459,6 +12453,7 @@ var $;
12459
12453
  },
12460
12454
  Body_content: {
12461
12455
  padding: $mol_gap.block,
12456
+ minHeight: 0,
12462
12457
  flex: {
12463
12458
  direction: 'column',
12464
12459
  shrink: 1,