mol_dump_lib 0.0.3 → 0.0.5
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 +3 -2
- package/node.deps.json +1 -1
- package/node.js +23 -9
- package/node.js.map +1 -1
- package/node.mjs +23 -9
- package/node.test.js +23 -9
- package/node.test.js.map +1 -1
- package/node.view.tree +2 -2
- package/package.json +1 -1
- package/web.d.ts +3 -2
- package/web.deps.json +1 -1
- package/web.js +23 -9
- package/web.js.map +1 -1
- package/web.mjs +23 -9
- package/web.view.tree +2 -2
package/node.js
CHANGED
|
@@ -2339,6 +2339,15 @@ var $;
|
|
|
2339
2339
|
let all = [];
|
|
2340
2340
|
let el = null;
|
|
2341
2341
|
let timer = null;
|
|
2342
|
+
function $mol_style_attach_force() {
|
|
2343
|
+
if (all.length) {
|
|
2344
|
+
el.innerHTML += '\n' + all.join('\n\n');
|
|
2345
|
+
all = [];
|
|
2346
|
+
}
|
|
2347
|
+
timer = null;
|
|
2348
|
+
return el;
|
|
2349
|
+
}
|
|
2350
|
+
$.$mol_style_attach_force = $mol_style_attach_force;
|
|
2342
2351
|
function $mol_style_attach(id, text) {
|
|
2343
2352
|
all.push(`/* ${id} */\n\n${text}`);
|
|
2344
2353
|
if (timer)
|
|
@@ -2349,12 +2358,7 @@ var $;
|
|
|
2349
2358
|
el = doc.createElement('style');
|
|
2350
2359
|
el.id = `$mol_style_attach`;
|
|
2351
2360
|
doc.head.appendChild(el);
|
|
2352
|
-
timer = new $mol_after_tick(
|
|
2353
|
-
el.innerHTML = '\n' + all.join('\n\n');
|
|
2354
|
-
all = [];
|
|
2355
|
-
el = null;
|
|
2356
|
-
timer = null;
|
|
2357
|
-
});
|
|
2361
|
+
timer = new $mol_after_tick($mol_style_attach_force);
|
|
2358
2362
|
return el;
|
|
2359
2363
|
}
|
|
2360
2364
|
$.$mol_style_attach = $mol_style_attach;
|
|
@@ -3016,7 +3020,7 @@ var $;
|
|
|
3016
3020
|
this.attachShadow({ mode: 'open' });
|
|
3017
3021
|
const node = this.view.dom_node();
|
|
3018
3022
|
node.setAttribute('mol_view_root', '');
|
|
3019
|
-
this.shadowRoot.append(
|
|
3023
|
+
this.shadowRoot.append($mol_style_attach_force().cloneNode(true), node);
|
|
3020
3024
|
}
|
|
3021
3025
|
this.root = $mol_wire_auto();
|
|
3022
3026
|
try {
|
|
@@ -6395,10 +6399,14 @@ var $;
|
|
|
6395
6399
|
var $;
|
|
6396
6400
|
(function ($) {
|
|
6397
6401
|
class $mol_dump_value extends $mol_view {
|
|
6398
|
-
value() {
|
|
6402
|
+
value(next) {
|
|
6403
|
+
if (next !== undefined)
|
|
6404
|
+
return next;
|
|
6399
6405
|
return null;
|
|
6400
6406
|
}
|
|
6401
|
-
preview_show() {
|
|
6407
|
+
preview_show(next) {
|
|
6408
|
+
if (next !== undefined)
|
|
6409
|
+
return next;
|
|
6402
6410
|
return true;
|
|
6403
6411
|
}
|
|
6404
6412
|
sub() {
|
|
@@ -6494,6 +6502,12 @@ var $;
|
|
|
6494
6502
|
return obj;
|
|
6495
6503
|
}
|
|
6496
6504
|
}
|
|
6505
|
+
__decorate([
|
|
6506
|
+
$mol_mem
|
|
6507
|
+
], $mol_dump_value.prototype, "value", null);
|
|
6508
|
+
__decorate([
|
|
6509
|
+
$mol_mem
|
|
6510
|
+
], $mol_dump_value.prototype, "preview_show", null);
|
|
6497
6511
|
__decorate([
|
|
6498
6512
|
$mol_mem
|
|
6499
6513
|
], $mol_dump_value.prototype, "Simple", null);
|