mol_view_tree2_lib 1.0.114 → 1.0.116

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.mjs CHANGED
@@ -4129,6 +4129,30 @@ var $;
4129
4129
  $.$mol_mem_cached = $mol_wire_probe;
4130
4130
  })($ || ($ = {}));
4131
4131
 
4132
+ ;
4133
+ "use strict";
4134
+ var $;
4135
+ (function ($) {
4136
+ $.$mol_dom = $mol_dom_context;
4137
+ })($ || ($ = {}));
4138
+
4139
+ ;
4140
+ "use strict";
4141
+ var $;
4142
+ (function ($) {
4143
+ function $mol_wait_user_async() {
4144
+ return new Promise(done => $mol_dom.addEventListener('click', function onclick() {
4145
+ $mol_dom.removeEventListener('click', onclick);
4146
+ done(null);
4147
+ }));
4148
+ }
4149
+ $.$mol_wait_user_async = $mol_wait_user_async;
4150
+ function $mol_wait_user() {
4151
+ return this.$mol_wire_sync(this).$mol_wait_user_async();
4152
+ }
4153
+ $.$mol_wait_user = $mol_wait_user;
4154
+ })($ || ($ = {}));
4155
+
4132
4156
  ;
4133
4157
  "use strict";
4134
4158
  var $;
@@ -4148,7 +4172,9 @@ var $;
4148
4172
  return Boolean(next);
4149
4173
  const native = this.native();
4150
4174
  if (next && !$mol_mem_cached(() => this.persisted())) {
4151
- native.persist().then(actual => {
4175
+ this.$.$mol_wait_user_async()
4176
+ .then(() => native.persist())
4177
+ .then(actual => {
4152
4178
  setTimeout(() => this.persisted(actual, 'cache'), 5000);
4153
4179
  if (actual)
4154
4180
  this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` });
@@ -5045,13 +5071,6 @@ var $;
5045
5071
  $.$mol_file = $mol_file_node;
5046
5072
  })($ || ($ = {}));
5047
5073
 
5048
- ;
5049
- "use strict";
5050
- var $;
5051
- (function ($) {
5052
- $.$mol_dom = $mol_dom_context;
5053
- })($ || ($ = {}));
5054
-
5055
5074
  ;
5056
5075
  "use strict";
5057
5076
  var $;
package/node.test.js CHANGED
@@ -4120,6 +4120,30 @@ var $;
4120
4120
  $.$mol_mem_cached = $mol_wire_probe;
4121
4121
  })($ || ($ = {}));
4122
4122
 
4123
+ ;
4124
+ "use strict";
4125
+ var $;
4126
+ (function ($) {
4127
+ $.$mol_dom = $mol_dom_context;
4128
+ })($ || ($ = {}));
4129
+
4130
+ ;
4131
+ "use strict";
4132
+ var $;
4133
+ (function ($) {
4134
+ function $mol_wait_user_async() {
4135
+ return new Promise(done => $mol_dom.addEventListener('click', function onclick() {
4136
+ $mol_dom.removeEventListener('click', onclick);
4137
+ done(null);
4138
+ }));
4139
+ }
4140
+ $.$mol_wait_user_async = $mol_wait_user_async;
4141
+ function $mol_wait_user() {
4142
+ return this.$mol_wire_sync(this).$mol_wait_user_async();
4143
+ }
4144
+ $.$mol_wait_user = $mol_wait_user;
4145
+ })($ || ($ = {}));
4146
+
4123
4147
  ;
4124
4148
  "use strict";
4125
4149
  var $;
@@ -4139,7 +4163,9 @@ var $;
4139
4163
  return Boolean(next);
4140
4164
  const native = this.native();
4141
4165
  if (next && !$mol_mem_cached(() => this.persisted())) {
4142
- native.persist().then(actual => {
4166
+ this.$.$mol_wait_user_async()
4167
+ .then(() => native.persist())
4168
+ .then(actual => {
4143
4169
  setTimeout(() => this.persisted(actual, 'cache'), 5000);
4144
4170
  if (actual)
4145
4171
  this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` });
@@ -5036,13 +5062,6 @@ var $;
5036
5062
  $.$mol_file = $mol_file_node;
5037
5063
  })($ || ($ = {}));
5038
5064
 
5039
- ;
5040
- "use strict";
5041
- var $;
5042
- (function ($) {
5043
- $.$mol_dom = $mol_dom_context;
5044
- })($ || ($ = {}));
5045
-
5046
5065
  ;
5047
5066
  "use strict";
5048
5067
  var $;
@@ -11295,7 +11314,7 @@ var $;
11295
11314
  "use strict";
11296
11315
  var $;
11297
11316
  (function ($) {
11298
- $mol_style_attach("mol/button/minor/minor.view.css", "[mol_button_minor] {\n\tcolor: var(--mol_theme_control);\n}\n\n[mol_button_minor][disabled] {\n\tcolor: var(--mol_theme_shade);\n}\n");
11317
+ $mol_style_attach("mol/button/minor/minor.view.css", "[mol_button_minor]:not([disabled]) {\n\tcolor: var(--mol_theme_control);\n}\n");
11299
11318
  })($ || ($ = {}));
11300
11319
 
11301
11320
  ;