mol_view_tree2_lib 1.0.114 → 1.0.115

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.mjs CHANGED
@@ -3809,6 +3809,13 @@ var $;
3809
3809
  $.$mol_mem_cached = $mol_wire_probe;
3810
3810
  })($ || ($ = {}));
3811
3811
 
3812
+ ;
3813
+ "use strict";
3814
+ var $;
3815
+ (function ($) {
3816
+ $.$mol_dom = $mol_dom_context;
3817
+ })($ || ($ = {}));
3818
+
3812
3819
  ;
3813
3820
  "use strict";
3814
3821
  var $;
@@ -3871,6 +3878,23 @@ var $;
3871
3878
  $.$mol_wire_sync = $mol_wire_sync;
3872
3879
  })($ || ($ = {}));
3873
3880
 
3881
+ ;
3882
+ "use strict";
3883
+ var $;
3884
+ (function ($) {
3885
+ function $mol_wait_user_async() {
3886
+ return new Promise(done => $mol_dom.addEventListener('click', function onclick() {
3887
+ $mol_dom.removeEventListener('click', onclick);
3888
+ done(null);
3889
+ }));
3890
+ }
3891
+ $.$mol_wait_user_async = $mol_wait_user_async;
3892
+ function $mol_wait_user() {
3893
+ return this.$mol_wire_sync(this).$mol_wait_user_async();
3894
+ }
3895
+ $.$mol_wait_user = $mol_wait_user;
3896
+ })($ || ($ = {}));
3897
+
3874
3898
  ;
3875
3899
  "use strict";
3876
3900
  var $;
@@ -3890,7 +3914,9 @@ var $;
3890
3914
  return Boolean(next);
3891
3915
  const native = this.native();
3892
3916
  if (next && !$mol_mem_cached(() => this.persisted())) {
3893
- native.persist().then(actual => {
3917
+ this.$.$mol_wait_user_async()
3918
+ .then(() => native.persist())
3919
+ .then(actual => {
3894
3920
  setTimeout(() => this.persisted(actual, 'cache'), 5000);
3895
3921
  if (actual)
3896
3922
  this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` });
@@ -3976,13 +4002,6 @@ var $;
3976
4002
  $.$mol_state_local = $mol_state_local;
3977
4003
  })($ || ($ = {}));
3978
4004
 
3979
- ;
3980
- "use strict";
3981
- var $;
3982
- (function ($) {
3983
- $.$mol_dom = $mol_dom_context;
3984
- })($ || ($ = {}));
3985
-
3986
4005
  ;
3987
4006
  "use strict";
3988
4007
  var $;