mol_plot_all 1.2.1234 → 1.2.1235

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/web.js CHANGED
@@ -1918,6 +1918,27 @@ var $;
1918
1918
  $.$mol_wire_async = $mol_wire_async;
1919
1919
  })($ || ($ = {}));
1920
1920
 
1921
+ ;
1922
+ "use strict";
1923
+ var $;
1924
+ (function ($) {
1925
+ class $mol_after_timeout extends $mol_object2 {
1926
+ delay;
1927
+ task;
1928
+ id;
1929
+ constructor(delay, task) {
1930
+ super();
1931
+ this.delay = delay;
1932
+ this.task = task;
1933
+ this.id = setTimeout(task, delay);
1934
+ }
1935
+ destructor() {
1936
+ clearTimeout(this.id);
1937
+ }
1938
+ }
1939
+ $.$mol_after_timeout = $mol_after_timeout;
1940
+ })($ || ($ = {}));
1941
+
1921
1942
  ;
1922
1943
  "use strict";
1923
1944
 
@@ -2508,6 +2529,9 @@ var $;
2508
2529
  const win = this.$.$mol_dom_context;
2509
2530
  if (win.parent !== win.self && !win.document.hasFocus())
2510
2531
  return;
2532
+ new this.$.$mol_after_timeout(0, () => {
2533
+ this.focused(true);
2534
+ });
2511
2535
  }
2512
2536
  destructor() {
2513
2537
  const node = $mol_wire_probe(() => this.dom_node());
@@ -2633,27 +2657,6 @@ var $;
2633
2657
  };
2634
2658
 
2635
2659
 
2636
- ;
2637
- "use strict";
2638
- var $;
2639
- (function ($) {
2640
- class $mol_after_timeout extends $mol_object2 {
2641
- delay;
2642
- task;
2643
- id;
2644
- constructor(delay, task) {
2645
- super();
2646
- this.delay = delay;
2647
- this.task = task;
2648
- this.id = setTimeout(task, delay);
2649
- }
2650
- destructor() {
2651
- clearTimeout(this.id);
2652
- }
2653
- }
2654
- $.$mol_after_timeout = $mol_after_timeout;
2655
- })($ || ($ = {}));
2656
-
2657
2660
  ;
2658
2661
  "use strict";
2659
2662
  var $;