mol_dump_lib 0.0.944 → 0.0.946
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.d.ts +14 -0
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +53 -4
- package/node.js.map +1 -1
- package/node.mjs +53 -4
- package/node.test.js +53 -4
- package/node.test.js.map +1 -1
- package/package.json +4 -1
- package/web.d.ts +14 -0
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +51 -4
- package/web.js.map +1 -1
- package/web.mjs +51 -4
package/web.js
CHANGED
|
@@ -2220,6 +2220,23 @@ var $;
|
|
|
2220
2220
|
$.$mol_wire_sync = $mol_wire_sync;
|
|
2221
2221
|
})($ || ($ = {}));
|
|
2222
2222
|
|
|
2223
|
+
;
|
|
2224
|
+
"use strict";
|
|
2225
|
+
var $;
|
|
2226
|
+
(function ($) {
|
|
2227
|
+
function $mol_wait_user_async() {
|
|
2228
|
+
return new Promise(done => $mol_dom.addEventListener('click', function onclick() {
|
|
2229
|
+
$mol_dom.removeEventListener('click', onclick);
|
|
2230
|
+
done(null);
|
|
2231
|
+
}));
|
|
2232
|
+
}
|
|
2233
|
+
$.$mol_wait_user_async = $mol_wait_user_async;
|
|
2234
|
+
function $mol_wait_user() {
|
|
2235
|
+
return this.$mol_wire_sync(this).$mol_wait_user_async();
|
|
2236
|
+
}
|
|
2237
|
+
$.$mol_wait_user = $mol_wait_user;
|
|
2238
|
+
})($ || ($ = {}));
|
|
2239
|
+
|
|
2223
2240
|
;
|
|
2224
2241
|
"use strict";
|
|
2225
2242
|
var $;
|
|
@@ -2239,7 +2256,9 @@ var $;
|
|
|
2239
2256
|
return Boolean(next);
|
|
2240
2257
|
const native = this.native();
|
|
2241
2258
|
if (next && !$mol_mem_cached(() => this.persisted())) {
|
|
2242
|
-
|
|
2259
|
+
this.$.$mol_wait_user_async()
|
|
2260
|
+
.then(() => native.persist())
|
|
2261
|
+
.then(actual => {
|
|
2243
2262
|
setTimeout(() => this.persisted(actual, 'cache'), 5000);
|
|
2244
2263
|
if (actual)
|
|
2245
2264
|
this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` });
|
|
@@ -6700,6 +6719,34 @@ var $;
|
|
|
6700
6719
|
($mol_mem(($.$mol_check.prototype), "Title"));
|
|
6701
6720
|
|
|
6702
6721
|
|
|
6722
|
+
;
|
|
6723
|
+
"use strict";
|
|
6724
|
+
var $;
|
|
6725
|
+
(function ($) {
|
|
6726
|
+
class $mol_dom_event extends $mol_object {
|
|
6727
|
+
native;
|
|
6728
|
+
constructor(native) {
|
|
6729
|
+
super();
|
|
6730
|
+
this.native = native;
|
|
6731
|
+
}
|
|
6732
|
+
prevented(next) {
|
|
6733
|
+
if (next)
|
|
6734
|
+
this.native.preventDefault();
|
|
6735
|
+
return this.native.defaultPrevented;
|
|
6736
|
+
}
|
|
6737
|
+
static wrap(event) {
|
|
6738
|
+
return new this.$.$mol_dom_event(event);
|
|
6739
|
+
}
|
|
6740
|
+
}
|
|
6741
|
+
__decorate([
|
|
6742
|
+
$mol_action
|
|
6743
|
+
], $mol_dom_event.prototype, "prevented", null);
|
|
6744
|
+
__decorate([
|
|
6745
|
+
$mol_action
|
|
6746
|
+
], $mol_dom_event, "wrap", null);
|
|
6747
|
+
$.$mol_dom_event = $mol_dom_event;
|
|
6748
|
+
})($ || ($ = {}));
|
|
6749
|
+
|
|
6703
6750
|
;
|
|
6704
6751
|
"use strict";
|
|
6705
6752
|
var $;
|
|
@@ -6718,11 +6765,11 @@ var $;
|
|
|
6718
6765
|
(function ($$) {
|
|
6719
6766
|
class $mol_check extends $.$mol_check {
|
|
6720
6767
|
click(next) {
|
|
6721
|
-
|
|
6768
|
+
const event = next ? $mol_dom_event.wrap(next) : null;
|
|
6769
|
+
if (event?.prevented())
|
|
6722
6770
|
return;
|
|
6771
|
+
event?.prevented(true);
|
|
6723
6772
|
this.checked(!this.checked());
|
|
6724
|
-
if (next)
|
|
6725
|
-
next.preventDefault();
|
|
6726
6773
|
}
|
|
6727
6774
|
sub() {
|
|
6728
6775
|
return [
|