mam 1.11.840 → 1.11.842

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
@@ -4115,6 +4115,30 @@ var $;
4115
4115
  $.$mol_mem_persist = $mol_wire_solid;
4116
4116
  })($ || ($ = {}));
4117
4117
 
4118
+ ;
4119
+ "use strict";
4120
+ var $;
4121
+ (function ($) {
4122
+ $.$mol_dom = $mol_dom_context;
4123
+ })($ || ($ = {}));
4124
+
4125
+ ;
4126
+ "use strict";
4127
+ var $;
4128
+ (function ($) {
4129
+ function $mol_wait_user_async() {
4130
+ return new Promise(done => $mol_dom.addEventListener('click', function onclick() {
4131
+ $mol_dom.removeEventListener('click', onclick);
4132
+ done(null);
4133
+ }));
4134
+ }
4135
+ $.$mol_wait_user_async = $mol_wait_user_async;
4136
+ function $mol_wait_user() {
4137
+ return this.$mol_wire_sync(this).$mol_wait_user_async();
4138
+ }
4139
+ $.$mol_wait_user = $mol_wait_user;
4140
+ })($ || ($ = {}));
4141
+
4118
4142
  ;
4119
4143
  "use strict";
4120
4144
  var $;
@@ -4134,7 +4158,9 @@ var $;
4134
4158
  return Boolean(next);
4135
4159
  const native = this.native();
4136
4160
  if (next && !$mol_mem_cached(() => this.persisted())) {
4137
- native.persist().then(actual => {
4161
+ this.$.$mol_wait_user_async()
4162
+ .then(() => native.persist())
4163
+ .then(actual => {
4138
4164
  setTimeout(() => this.persisted(actual, 'cache'), 5000);
4139
4165
  if (actual)
4140
4166
  this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` });
@@ -4220,13 +4246,6 @@ var $;
4220
4246
  $.$mol_state_local = $mol_state_local;
4221
4247
  })($ || ($ = {}));
4222
4248
 
4223
- ;
4224
- "use strict";
4225
- var $;
4226
- (function ($) {
4227
- $.$mol_dom = $mol_dom_context;
4228
- })($ || ($ = {}));
4229
-
4230
4249
  ;
4231
4250
  "use strict";
4232
4251
  var $;
package/node.test.js CHANGED
@@ -4106,6 +4106,30 @@ var $;
4106
4106
  $.$mol_mem_persist = $mol_wire_solid;
4107
4107
  })($ || ($ = {}));
4108
4108
 
4109
+ ;
4110
+ "use strict";
4111
+ var $;
4112
+ (function ($) {
4113
+ $.$mol_dom = $mol_dom_context;
4114
+ })($ || ($ = {}));
4115
+
4116
+ ;
4117
+ "use strict";
4118
+ var $;
4119
+ (function ($) {
4120
+ function $mol_wait_user_async() {
4121
+ return new Promise(done => $mol_dom.addEventListener('click', function onclick() {
4122
+ $mol_dom.removeEventListener('click', onclick);
4123
+ done(null);
4124
+ }));
4125
+ }
4126
+ $.$mol_wait_user_async = $mol_wait_user_async;
4127
+ function $mol_wait_user() {
4128
+ return this.$mol_wire_sync(this).$mol_wait_user_async();
4129
+ }
4130
+ $.$mol_wait_user = $mol_wait_user;
4131
+ })($ || ($ = {}));
4132
+
4109
4133
  ;
4110
4134
  "use strict";
4111
4135
  var $;
@@ -4125,7 +4149,9 @@ var $;
4125
4149
  return Boolean(next);
4126
4150
  const native = this.native();
4127
4151
  if (next && !$mol_mem_cached(() => this.persisted())) {
4128
- native.persist().then(actual => {
4152
+ this.$.$mol_wait_user_async()
4153
+ .then(() => native.persist())
4154
+ .then(actual => {
4129
4155
  setTimeout(() => this.persisted(actual, 'cache'), 5000);
4130
4156
  if (actual)
4131
4157
  this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` });
@@ -4211,13 +4237,6 @@ var $;
4211
4237
  $.$mol_state_local = $mol_state_local;
4212
4238
  })($ || ($ = {}));
4213
4239
 
4214
- ;
4215
- "use strict";
4216
- var $;
4217
- (function ($) {
4218
- $.$mol_dom = $mol_dom_context;
4219
- })($ || ($ = {}));
4220
-
4221
4240
  ;
4222
4241
  "use strict";
4223
4242
  var $;
@@ -13662,7 +13681,7 @@ var $;
13662
13681
  "use strict";
13663
13682
  var $;
13664
13683
  (function ($) {
13665
- $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");
13684
+ $mol_style_attach("mol/button/minor/minor.view.css", "[mol_button_minor]:not([disabled]) {\n\tcolor: var(--mol_theme_control);\n}\n");
13666
13685
  })($ || ($ = {}));
13667
13686
 
13668
13687
  ;