mol_dump_lib 0.0.344 → 0.0.346
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 +74 -75
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +149 -156
- package/node.js.map +1 -1
- package/node.mjs +149 -156
- package/node.test.js +168 -175
- package/node.test.js.map +1 -1
- package/package.json +4 -4
- package/web.d.ts +67 -68
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +148 -155
- package/web.js.map +1 -1
- package/web.mjs +148 -155
- package/web.test.js +10 -10
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -601,35 +601,24 @@ var $;
|
|
|
601
601
|
"use strict";
|
|
602
602
|
var $;
|
|
603
603
|
(function ($) {
|
|
604
|
-
class $
|
|
605
|
-
delay;
|
|
604
|
+
class $mol_after_tick extends $mol_object2 {
|
|
606
605
|
task;
|
|
607
|
-
|
|
608
|
-
|
|
606
|
+
promise;
|
|
607
|
+
cancelled = false;
|
|
608
|
+
constructor(task) {
|
|
609
609
|
super();
|
|
610
|
-
this.delay = delay;
|
|
611
610
|
this.task = task;
|
|
612
|
-
this.
|
|
611
|
+
this.promise = Promise.resolve().then(() => {
|
|
612
|
+
if (this.cancelled)
|
|
613
|
+
return;
|
|
614
|
+
task();
|
|
615
|
+
});
|
|
613
616
|
}
|
|
614
617
|
destructor() {
|
|
615
|
-
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
$.$mol_after_timeout = $mol_after_timeout;
|
|
619
|
-
})($ || ($ = {}));
|
|
620
|
-
|
|
621
|
-
;
|
|
622
|
-
"use strict";
|
|
623
|
-
var $;
|
|
624
|
-
(function ($) {
|
|
625
|
-
class $mol_after_frame extends $mol_after_timeout {
|
|
626
|
-
task;
|
|
627
|
-
constructor(task) {
|
|
628
|
-
super(16, task);
|
|
629
|
-
this.task = task;
|
|
618
|
+
this.cancelled = true;
|
|
630
619
|
}
|
|
631
620
|
}
|
|
632
|
-
$.$
|
|
621
|
+
$.$mol_after_tick = $mol_after_tick;
|
|
633
622
|
})($ || ($ = {}));
|
|
634
623
|
|
|
635
624
|
;
|
|
@@ -657,7 +646,7 @@ var $;
|
|
|
657
646
|
static plan() {
|
|
658
647
|
if (this.plan_task)
|
|
659
648
|
return;
|
|
660
|
-
this.plan_task = new $
|
|
649
|
+
this.plan_task = new $mol_after_tick(() => {
|
|
661
650
|
try {
|
|
662
651
|
this.sync();
|
|
663
652
|
}
|
|
@@ -859,7 +848,7 @@ var $;
|
|
|
859
848
|
sub.track_off(prev);
|
|
860
849
|
sub.absorb = () => {
|
|
861
850
|
done(null);
|
|
862
|
-
sub.destructor();
|
|
851
|
+
setTimeout(() => sub.destructor());
|
|
863
852
|
};
|
|
864
853
|
});
|
|
865
854
|
}
|
|
@@ -929,6 +918,41 @@ var $;
|
|
|
929
918
|
$.$mol_key = $mol_key;
|
|
930
919
|
})($ || ($ = {}));
|
|
931
920
|
|
|
921
|
+
;
|
|
922
|
+
"use strict";
|
|
923
|
+
var $;
|
|
924
|
+
(function ($) {
|
|
925
|
+
class $mol_after_timeout extends $mol_object2 {
|
|
926
|
+
delay;
|
|
927
|
+
task;
|
|
928
|
+
id;
|
|
929
|
+
constructor(delay, task) {
|
|
930
|
+
super();
|
|
931
|
+
this.delay = delay;
|
|
932
|
+
this.task = task;
|
|
933
|
+
this.id = setTimeout(task, delay);
|
|
934
|
+
}
|
|
935
|
+
destructor() {
|
|
936
|
+
clearTimeout(this.id);
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
$.$mol_after_timeout = $mol_after_timeout;
|
|
940
|
+
})($ || ($ = {}));
|
|
941
|
+
|
|
942
|
+
;
|
|
943
|
+
"use strict";
|
|
944
|
+
var $;
|
|
945
|
+
(function ($) {
|
|
946
|
+
class $mol_after_frame extends $mol_after_timeout {
|
|
947
|
+
task;
|
|
948
|
+
constructor(task) {
|
|
949
|
+
super(16, task);
|
|
950
|
+
this.task = task;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
$.$mol_after_frame = $mol_after_frame;
|
|
954
|
+
})($ || ($ = {}));
|
|
955
|
+
|
|
932
956
|
;
|
|
933
957
|
"use strict";
|
|
934
958
|
var $;
|
|
@@ -2042,30 +2066,6 @@ var $;
|
|
|
2042
2066
|
$.$mol_dom_context = new $node.jsdom.JSDOM('', { url: 'https://localhost/' }).window;
|
|
2043
2067
|
})($ || ($ = {}));
|
|
2044
2068
|
|
|
2045
|
-
;
|
|
2046
|
-
"use strict";
|
|
2047
|
-
var $;
|
|
2048
|
-
(function ($) {
|
|
2049
|
-
class $mol_after_tick extends $mol_object2 {
|
|
2050
|
-
task;
|
|
2051
|
-
promise;
|
|
2052
|
-
cancelled = false;
|
|
2053
|
-
constructor(task) {
|
|
2054
|
-
super();
|
|
2055
|
-
this.task = task;
|
|
2056
|
-
this.promise = Promise.resolve().then(() => {
|
|
2057
|
-
if (this.cancelled)
|
|
2058
|
-
return;
|
|
2059
|
-
task();
|
|
2060
|
-
});
|
|
2061
|
-
}
|
|
2062
|
-
destructor() {
|
|
2063
|
-
this.cancelled = true;
|
|
2064
|
-
}
|
|
2065
|
-
}
|
|
2066
|
-
$.$mol_after_tick = $mol_after_tick;
|
|
2067
|
-
})($ || ($ = {}));
|
|
2068
|
-
|
|
2069
2069
|
;
|
|
2070
2070
|
"use strict";
|
|
2071
2071
|
var $;
|
|
@@ -2399,29 +2399,19 @@ var $;
|
|
|
2399
2399
|
"use strict";
|
|
2400
2400
|
var $;
|
|
2401
2401
|
(function ($) {
|
|
2402
|
-
let all = [];
|
|
2403
|
-
let el = null;
|
|
2404
|
-
let timer = null;
|
|
2405
|
-
function $mol_style_attach_force() {
|
|
2406
|
-
if (all.length) {
|
|
2407
|
-
el.innerHTML += '\n' + all.join('\n\n');
|
|
2408
|
-
all = [];
|
|
2409
|
-
}
|
|
2410
|
-
timer = null;
|
|
2411
|
-
return el;
|
|
2412
|
-
}
|
|
2413
|
-
$.$mol_style_attach_force = $mol_style_attach_force;
|
|
2414
2402
|
function $mol_style_attach(id, text) {
|
|
2415
|
-
all.push(`/* ${id} */\n\n${text}`);
|
|
2416
|
-
if (timer)
|
|
2417
|
-
return el;
|
|
2418
2403
|
const doc = $mol_dom_context.document;
|
|
2419
2404
|
if (!doc)
|
|
2420
2405
|
return null;
|
|
2421
|
-
|
|
2422
|
-
el
|
|
2423
|
-
|
|
2424
|
-
|
|
2406
|
+
const elid = `$mol_style_attach:${id}`;
|
|
2407
|
+
let el = doc.getElementById(elid);
|
|
2408
|
+
if (!el) {
|
|
2409
|
+
el = doc.createElement('style');
|
|
2410
|
+
el.id = elid;
|
|
2411
|
+
doc.head.appendChild(el);
|
|
2412
|
+
}
|
|
2413
|
+
if (el.innerHTML != text)
|
|
2414
|
+
el.innerHTML = text;
|
|
2425
2415
|
return el;
|
|
2426
2416
|
}
|
|
2427
2417
|
$.$mol_style_attach = $mol_style_attach;
|
|
@@ -3115,7 +3105,10 @@ var $;
|
|
|
3115
3105
|
this.attachShadow({ mode: 'open' });
|
|
3116
3106
|
const node = this.view.dom_node();
|
|
3117
3107
|
node.setAttribute('mol_view_root', '');
|
|
3118
|
-
|
|
3108
|
+
for (const style of $mol_dom_context.document.getElementsByTagName('style')) {
|
|
3109
|
+
this.shadowRoot.append(style.cloneNode(true));
|
|
3110
|
+
}
|
|
3111
|
+
this.shadowRoot.append(node);
|
|
3119
3112
|
}
|
|
3120
3113
|
this.root = $mol_wire_auto();
|
|
3121
3114
|
try {
|
|
@@ -3190,7 +3183,7 @@ var $;
|
|
|
3190
3183
|
return 0;
|
|
3191
3184
|
}
|
|
3192
3185
|
sub(){
|
|
3193
|
-
return [(this
|
|
3186
|
+
return [(this?.title())];
|
|
3194
3187
|
}
|
|
3195
3188
|
};
|
|
3196
3189
|
|
|
@@ -3268,16 +3261,16 @@ var $;
|
|
|
3268
3261
|
return "";
|
|
3269
3262
|
}
|
|
3270
3263
|
sub(){
|
|
3271
|
-
return (this
|
|
3264
|
+
return (this?.parts());
|
|
3272
3265
|
}
|
|
3273
3266
|
Low(id){
|
|
3274
3267
|
const obj = new this.$.$mol_paragraph();
|
|
3275
|
-
(obj.sub) = () => ([(this
|
|
3268
|
+
(obj.sub) = () => ([(this?.string(id))]);
|
|
3276
3269
|
return obj;
|
|
3277
3270
|
}
|
|
3278
3271
|
High(id){
|
|
3279
3272
|
const obj = new this.$.$mol_paragraph();
|
|
3280
|
-
(obj.sub) = () => ([(this
|
|
3273
|
+
(obj.sub) = () => ([(this?.string(id))]);
|
|
3281
3274
|
return obj;
|
|
3282
3275
|
}
|
|
3283
3276
|
};
|
|
@@ -3635,7 +3628,7 @@ var $;
|
|
|
3635
3628
|
return "";
|
|
3636
3629
|
}
|
|
3637
3630
|
attr(){
|
|
3638
|
-
return {...(super.attr()), "mol_text_code_token_type": (this
|
|
3631
|
+
return {...(super.attr()), "mol_text_code_token_type": (this?.type())};
|
|
3639
3632
|
}
|
|
3640
3633
|
};
|
|
3641
3634
|
($.$mol_text_code_token_link) = class $mol_text_code_token_link extends ($.$mol_text_code_token) {
|
|
@@ -3651,7 +3644,7 @@ var $;
|
|
|
3651
3644
|
attr(){
|
|
3652
3645
|
return {
|
|
3653
3646
|
...(super.attr()),
|
|
3654
|
-
"href": (this
|
|
3647
|
+
"href": (this?.uri()),
|
|
3655
3648
|
"target": "_blank"
|
|
3656
3649
|
};
|
|
3657
3650
|
}
|
|
@@ -3872,21 +3865,21 @@ var $;
|
|
|
3872
3865
|
}
|
|
3873
3866
|
Numb(){
|
|
3874
3867
|
const obj = new this.$.$mol_view();
|
|
3875
|
-
(obj.sub) = () => ([(this
|
|
3868
|
+
(obj.sub) = () => ([(this?.numb())]);
|
|
3876
3869
|
return obj;
|
|
3877
3870
|
}
|
|
3878
3871
|
Token(id){
|
|
3879
3872
|
const obj = new this.$.$mol_text_code_token();
|
|
3880
|
-
(obj.type) = () => ((this
|
|
3881
|
-
(obj.haystack) = () => ((this
|
|
3882
|
-
(obj.needle) = () => ((this
|
|
3873
|
+
(obj.type) = () => ((this?.token_type(id)));
|
|
3874
|
+
(obj.haystack) = () => ((this?.token_text(id)));
|
|
3875
|
+
(obj.needle) = () => ((this?.highlight()));
|
|
3883
3876
|
return obj;
|
|
3884
3877
|
}
|
|
3885
3878
|
Token_link(id){
|
|
3886
3879
|
const obj = new this.$.$mol_text_code_token_link();
|
|
3887
|
-
(obj.haystack) = () => ((this
|
|
3888
|
-
(obj.needle) = () => ((this
|
|
3889
|
-
(obj.uri) = () => ((this
|
|
3880
|
+
(obj.haystack) = () => ((this?.token_text(id)));
|
|
3881
|
+
(obj.needle) = () => ((this?.highlight()));
|
|
3882
|
+
(obj.uri) = () => ((this?.token_uri(id)));
|
|
3890
3883
|
return obj;
|
|
3891
3884
|
}
|
|
3892
3885
|
find_pos(id){
|
|
@@ -4162,7 +4155,7 @@ var $;
|
|
|
4162
4155
|
return 0;
|
|
4163
4156
|
}
|
|
4164
4157
|
sub(){
|
|
4165
|
-
return (this
|
|
4158
|
+
return (this?.rows());
|
|
4166
4159
|
}
|
|
4167
4160
|
Empty(){
|
|
4168
4161
|
const obj = new this.$.$mol_view();
|
|
@@ -4170,12 +4163,12 @@ var $;
|
|
|
4170
4163
|
}
|
|
4171
4164
|
Gap_before(){
|
|
4172
4165
|
const obj = new this.$.$mol_view();
|
|
4173
|
-
(obj.style) = () => ({"paddingTop": (this
|
|
4166
|
+
(obj.style) = () => ({"paddingTop": (this?.gap_before())});
|
|
4174
4167
|
return obj;
|
|
4175
4168
|
}
|
|
4176
4169
|
Gap_after(){
|
|
4177
4170
|
const obj = new this.$.$mol_view();
|
|
4178
|
-
(obj.style) = () => ({"paddingTop": (this
|
|
4171
|
+
(obj.style) = () => ({"paddingTop": (this?.gap_after())});
|
|
4179
4172
|
return obj;
|
|
4180
4173
|
}
|
|
4181
4174
|
view_window(){
|
|
@@ -4414,13 +4407,13 @@ var $;
|
|
|
4414
4407
|
return null;
|
|
4415
4408
|
}
|
|
4416
4409
|
attr(){
|
|
4417
|
-
return {...(super.attr()), "mol_theme": (this
|
|
4410
|
+
return {...(super.attr()), "mol_theme": (this?.theme())};
|
|
4418
4411
|
}
|
|
4419
4412
|
style(){
|
|
4420
4413
|
return {...(super.style()), "minHeight": "1em"};
|
|
4421
4414
|
}
|
|
4422
4415
|
sub(){
|
|
4423
|
-
return [(this
|
|
4416
|
+
return [(this?.value())];
|
|
4424
4417
|
}
|
|
4425
4418
|
};
|
|
4426
4419
|
|
|
@@ -4479,7 +4472,7 @@ var $;
|
|
|
4479
4472
|
return "";
|
|
4480
4473
|
}
|
|
4481
4474
|
hint_safe(){
|
|
4482
|
-
return (this
|
|
4475
|
+
return (this?.hint());
|
|
4483
4476
|
}
|
|
4484
4477
|
error(){
|
|
4485
4478
|
return "";
|
|
@@ -4498,26 +4491,26 @@ var $;
|
|
|
4498
4491
|
event(){
|
|
4499
4492
|
return {
|
|
4500
4493
|
...(super.event()),
|
|
4501
|
-
"click": (next) => (this
|
|
4502
|
-
"dblclick": (next) => (this
|
|
4503
|
-
"keydown": (next) => (this
|
|
4494
|
+
"click": (next) => (this?.event_activate(next)),
|
|
4495
|
+
"dblclick": (next) => (this?.clicks(next)),
|
|
4496
|
+
"keydown": (next) => (this?.event_key_press(next))
|
|
4504
4497
|
};
|
|
4505
4498
|
}
|
|
4506
4499
|
attr(){
|
|
4507
4500
|
return {
|
|
4508
4501
|
...(super.attr()),
|
|
4509
|
-
"disabled": (this
|
|
4502
|
+
"disabled": (this?.disabled()),
|
|
4510
4503
|
"role": "button",
|
|
4511
|
-
"tabindex": (this
|
|
4512
|
-
"title": (this
|
|
4504
|
+
"tabindex": (this?.tab_index()),
|
|
4505
|
+
"title": (this?.hint_safe())
|
|
4513
4506
|
};
|
|
4514
4507
|
}
|
|
4515
4508
|
sub(){
|
|
4516
|
-
return [(this
|
|
4509
|
+
return [(this?.title())];
|
|
4517
4510
|
}
|
|
4518
4511
|
Speck(){
|
|
4519
4512
|
const obj = new this.$.$mol_speck();
|
|
4520
|
-
(obj.value) = () => ((this
|
|
4513
|
+
(obj.value) = () => ((this?.error()));
|
|
4521
4514
|
return obj;
|
|
4522
4515
|
}
|
|
4523
4516
|
};
|
|
@@ -4854,8 +4847,8 @@ var $;
|
|
|
4854
4847
|
attr(){
|
|
4855
4848
|
return {
|
|
4856
4849
|
...(super.attr()),
|
|
4857
|
-
"viewBox": (this
|
|
4858
|
-
"preserveAspectRatio": (this
|
|
4850
|
+
"viewBox": (this?.view_box()),
|
|
4851
|
+
"preserveAspectRatio": (this?.aspect())
|
|
4859
4852
|
};
|
|
4860
4853
|
}
|
|
4861
4854
|
};
|
|
@@ -4880,7 +4873,7 @@ var $;
|
|
|
4880
4873
|
return "path";
|
|
4881
4874
|
}
|
|
4882
4875
|
attr(){
|
|
4883
|
-
return {...(super.attr()), "d": (this
|
|
4876
|
+
return {...(super.attr()), "d": (this?.geometry())};
|
|
4884
4877
|
}
|
|
4885
4878
|
};
|
|
4886
4879
|
|
|
@@ -4895,7 +4888,7 @@ var $;
|
|
|
4895
4888
|
}
|
|
4896
4889
|
Path(){
|
|
4897
4890
|
const obj = new this.$.$mol_svg_path();
|
|
4898
|
-
(obj.geometry) = () => ((this
|
|
4891
|
+
(obj.geometry) = () => ((this?.path()));
|
|
4899
4892
|
return obj;
|
|
4900
4893
|
}
|
|
4901
4894
|
view_box(){
|
|
@@ -4908,7 +4901,7 @@ var $;
|
|
|
4908
4901
|
return 16;
|
|
4909
4902
|
}
|
|
4910
4903
|
sub(){
|
|
4911
|
-
return [(this
|
|
4904
|
+
return [(this?.Path())];
|
|
4912
4905
|
}
|
|
4913
4906
|
};
|
|
4914
4907
|
($mol_mem(($.$mol_icon.prototype), "Path"));
|
|
@@ -4949,11 +4942,11 @@ var $;
|
|
|
4949
4942
|
;
|
|
4950
4943
|
($.$mol_button_copy) = class $mol_button_copy extends ($.$mol_button_minor) {
|
|
4951
4944
|
text(){
|
|
4952
|
-
return (this
|
|
4945
|
+
return (this?.title());
|
|
4953
4946
|
}
|
|
4954
4947
|
text_blob(next){
|
|
4955
4948
|
if(next !== undefined) return next;
|
|
4956
|
-
const obj = new this.$.$mol_blob([(this
|
|
4949
|
+
const obj = new this.$.$mol_blob([(this?.text())], {"type": "text/plain"});
|
|
4957
4950
|
return obj;
|
|
4958
4951
|
}
|
|
4959
4952
|
html(){
|
|
@@ -4961,7 +4954,7 @@ var $;
|
|
|
4961
4954
|
}
|
|
4962
4955
|
html_blob(next){
|
|
4963
4956
|
if(next !== undefined) return next;
|
|
4964
|
-
const obj = new this.$.$mol_blob([(this
|
|
4957
|
+
const obj = new this.$.$mol_blob([(this?.html())], {"type": "text/html"});
|
|
4965
4958
|
return obj;
|
|
4966
4959
|
}
|
|
4967
4960
|
Icon(){
|
|
@@ -4972,13 +4965,13 @@ var $;
|
|
|
4972
4965
|
return "";
|
|
4973
4966
|
}
|
|
4974
4967
|
blobs(){
|
|
4975
|
-
return [(this
|
|
4968
|
+
return [(this?.text_blob()), (this?.html_blob())];
|
|
4976
4969
|
}
|
|
4977
4970
|
data(){
|
|
4978
4971
|
return {};
|
|
4979
4972
|
}
|
|
4980
4973
|
sub(){
|
|
4981
|
-
return [(this
|
|
4974
|
+
return [(this?.Icon()), (this?.title())];
|
|
4982
4975
|
}
|
|
4983
4976
|
};
|
|
4984
4977
|
($mol_mem(($.$mol_button_copy.prototype), "text_blob"));
|
|
@@ -5688,21 +5681,21 @@ var $;
|
|
|
5688
5681
|
}
|
|
5689
5682
|
Row(id){
|
|
5690
5683
|
const obj = new this.$.$mol_text_code_row();
|
|
5691
|
-
(obj.numb_showed) = () => ((this
|
|
5692
|
-
(obj.numb) = () => ((this
|
|
5693
|
-
(obj.text) = () => ((this
|
|
5694
|
-
(obj.syntax) = () => ((this
|
|
5695
|
-
(obj.uri_resolve) = (id) => ((this
|
|
5696
|
-
(obj.highlight) = () => ((this
|
|
5684
|
+
(obj.numb_showed) = () => ((this?.sidebar_showed()));
|
|
5685
|
+
(obj.numb) = () => ((this?.row_numb(id)));
|
|
5686
|
+
(obj.text) = () => ((this?.row_text(id)));
|
|
5687
|
+
(obj.syntax) = () => ((this?.syntax()));
|
|
5688
|
+
(obj.uri_resolve) = (id) => ((this?.uri_resolve(id)));
|
|
5689
|
+
(obj.highlight) = () => ((this?.highlight()));
|
|
5697
5690
|
return obj;
|
|
5698
5691
|
}
|
|
5699
5692
|
rows(){
|
|
5700
|
-
return [(this
|
|
5693
|
+
return [(this?.Row("0"))];
|
|
5701
5694
|
}
|
|
5702
5695
|
Rows(){
|
|
5703
5696
|
const obj = new this.$.$mol_list();
|
|
5704
|
-
(obj.render_visible_only) = () => ((this
|
|
5705
|
-
(obj.rows) = () => ((this
|
|
5697
|
+
(obj.render_visible_only) = () => ((this?.render_visible_only()));
|
|
5698
|
+
(obj.rows) = () => ((this?.rows()));
|
|
5706
5699
|
return obj;
|
|
5707
5700
|
}
|
|
5708
5701
|
text_export(){
|
|
@@ -5711,11 +5704,11 @@ var $;
|
|
|
5711
5704
|
Copy(){
|
|
5712
5705
|
const obj = new this.$.$mol_button_copy();
|
|
5713
5706
|
(obj.hint) = () => ((this.$.$mol_locale.text("$mol_text_code_Copy_hint")));
|
|
5714
|
-
(obj.text) = () => ((this
|
|
5707
|
+
(obj.text) = () => ((this?.text_export()));
|
|
5715
5708
|
return obj;
|
|
5716
5709
|
}
|
|
5717
5710
|
attr(){
|
|
5718
|
-
return {...(super.attr()), "mol_text_code_sidebar_showed": (this
|
|
5711
|
+
return {...(super.attr()), "mol_text_code_sidebar_showed": (this?.sidebar_showed())};
|
|
5719
5712
|
}
|
|
5720
5713
|
text(){
|
|
5721
5714
|
return "";
|
|
@@ -5730,7 +5723,7 @@ var $;
|
|
|
5730
5723
|
return "";
|
|
5731
5724
|
}
|
|
5732
5725
|
sub(){
|
|
5733
|
-
return [(this
|
|
5726
|
+
return [(this?.Rows()), (this?.Copy())];
|
|
5734
5727
|
}
|
|
5735
5728
|
};
|
|
5736
5729
|
($mol_mem_key(($.$mol_text_code.prototype), "Row"));
|
|
@@ -5752,7 +5745,7 @@ var $;
|
|
|
5752
5745
|
return this.$.$mol_support_css_overflow_anchor();
|
|
5753
5746
|
}
|
|
5754
5747
|
text_lines() {
|
|
5755
|
-
return this.text().split('\n');
|
|
5748
|
+
return (this.text() ?? '').split('\n');
|
|
5756
5749
|
}
|
|
5757
5750
|
rows() {
|
|
5758
5751
|
return this.text_lines().map((_, index) => this.Row(index + 1));
|
|
@@ -5883,22 +5876,22 @@ var $;
|
|
|
5883
5876
|
}
|
|
5884
5877
|
Title(){
|
|
5885
5878
|
const obj = new this.$.$mol_view();
|
|
5886
|
-
(obj.sub) = () => ([(this
|
|
5879
|
+
(obj.sub) = () => ([(this?.title())]);
|
|
5887
5880
|
return obj;
|
|
5888
5881
|
}
|
|
5889
5882
|
label(){
|
|
5890
|
-
return [(this
|
|
5883
|
+
return [(this?.Title())];
|
|
5891
5884
|
}
|
|
5892
5885
|
attr(){
|
|
5893
5886
|
return {
|
|
5894
5887
|
...(super.attr()),
|
|
5895
|
-
"mol_check_checked": (this
|
|
5896
|
-
"aria-checked": (this
|
|
5897
|
-
"role": (this
|
|
5888
|
+
"mol_check_checked": (this?.checked()),
|
|
5889
|
+
"aria-checked": (this?.aria_checked()),
|
|
5890
|
+
"role": (this?.aria_role())
|
|
5898
5891
|
};
|
|
5899
5892
|
}
|
|
5900
5893
|
sub(){
|
|
5901
|
-
return [(this
|
|
5894
|
+
return [(this?.Icon()), (this?.label())];
|
|
5902
5895
|
}
|
|
5903
5896
|
};
|
|
5904
5897
|
($mol_mem(($.$mol_check.prototype), "checked"));
|
|
@@ -5987,13 +5980,13 @@ var $;
|
|
|
5987
5980
|
return 0;
|
|
5988
5981
|
}
|
|
5989
5982
|
style(){
|
|
5990
|
-
return {...(super.style()), "paddingLeft": (this
|
|
5983
|
+
return {...(super.style()), "paddingLeft": (this?.level_style())};
|
|
5991
5984
|
}
|
|
5992
5985
|
checked(next){
|
|
5993
|
-
return (this
|
|
5986
|
+
return (this?.expanded(next));
|
|
5994
5987
|
}
|
|
5995
5988
|
enabled(){
|
|
5996
|
-
return (this
|
|
5989
|
+
return (this?.expandable());
|
|
5997
5990
|
}
|
|
5998
5991
|
};
|
|
5999
5992
|
($mol_mem(($.$mol_check_expand.prototype), "expanded"));
|
|
@@ -6045,17 +6038,17 @@ var $;
|
|
|
6045
6038
|
}
|
|
6046
6039
|
Dump(id){
|
|
6047
6040
|
const obj = new this.$.$mol_dump_value();
|
|
6048
|
-
(obj.value) = () => ((this
|
|
6049
|
-
(obj.expanded) = (next) => ((this
|
|
6050
|
-
(obj.prototypes) = () => ((this
|
|
6051
|
-
(obj.preview_show) = () => ((this
|
|
6041
|
+
(obj.value) = () => ((this?.dump_value(id)));
|
|
6042
|
+
(obj.expanded) = (next) => ((this?.dump_expanded(id, next)));
|
|
6043
|
+
(obj.prototypes) = () => ((this?.prototypes()));
|
|
6044
|
+
(obj.preview_show) = () => ((this?.preview_show()));
|
|
6052
6045
|
return obj;
|
|
6053
6046
|
}
|
|
6054
6047
|
values(){
|
|
6055
6048
|
return [];
|
|
6056
6049
|
}
|
|
6057
6050
|
sub(){
|
|
6058
|
-
return [(this
|
|
6051
|
+
return [(this?.Dump("0"))];
|
|
6059
6052
|
}
|
|
6060
6053
|
};
|
|
6061
6054
|
($mol_mem_key(($.$mol_dump_list.prototype), "dump_expanded"));
|
|
@@ -6106,13 +6099,13 @@ var $;
|
|
|
6106
6099
|
return true;
|
|
6107
6100
|
}
|
|
6108
6101
|
label(){
|
|
6109
|
-
return [(this
|
|
6102
|
+
return [(this?.title())];
|
|
6110
6103
|
}
|
|
6111
6104
|
Trigger(){
|
|
6112
6105
|
const obj = new this.$.$mol_check_expand();
|
|
6113
|
-
(obj.checked) = (next) => ((this
|
|
6114
|
-
(obj.expandable) = () => ((this
|
|
6115
|
-
(obj.label) = () => ((this
|
|
6106
|
+
(obj.checked) = (next) => ((this?.expanded(next)));
|
|
6107
|
+
(obj.expandable) = () => ((this?.expandable()));
|
|
6108
|
+
(obj.label) = () => ((this?.label()));
|
|
6116
6109
|
return obj;
|
|
6117
6110
|
}
|
|
6118
6111
|
Tools(){
|
|
@@ -6120,7 +6113,7 @@ var $;
|
|
|
6120
6113
|
}
|
|
6121
6114
|
Label(){
|
|
6122
6115
|
const obj = new this.$.$mol_view();
|
|
6123
|
-
(obj.sub) = () => ([(this
|
|
6116
|
+
(obj.sub) = () => ([(this?.Trigger()), (this?.Tools())]);
|
|
6124
6117
|
return obj;
|
|
6125
6118
|
}
|
|
6126
6119
|
content(){
|
|
@@ -6128,11 +6121,11 @@ var $;
|
|
|
6128
6121
|
}
|
|
6129
6122
|
Content(){
|
|
6130
6123
|
const obj = new this.$.$mol_list();
|
|
6131
|
-
(obj.rows) = () => ((this
|
|
6124
|
+
(obj.rows) = () => ((this?.content()));
|
|
6132
6125
|
return obj;
|
|
6133
6126
|
}
|
|
6134
6127
|
rows(){
|
|
6135
|
-
return [(this
|
|
6128
|
+
return [(this?.Label()), (this?.Content())];
|
|
6136
6129
|
}
|
|
6137
6130
|
};
|
|
6138
6131
|
($mol_mem(($.$mol_expander.prototype), "expanded"));
|
|
@@ -6182,7 +6175,7 @@ var $;
|
|
|
6182
6175
|
}
|
|
6183
6176
|
Simple(){
|
|
6184
6177
|
const obj = new this.$.$mol_text_code();
|
|
6185
|
-
(obj.text) = () => ((this
|
|
6178
|
+
(obj.text) = () => ((this?.simple()));
|
|
6186
6179
|
return obj;
|
|
6187
6180
|
}
|
|
6188
6181
|
expanded(next){
|
|
@@ -6201,17 +6194,17 @@ var $;
|
|
|
6201
6194
|
}
|
|
6202
6195
|
Expand_title(){
|
|
6203
6196
|
const obj = new this.$.$mol_text_code();
|
|
6204
|
-
(obj.text) = () => ((this
|
|
6197
|
+
(obj.text) = () => ((this?.expand_title()));
|
|
6205
6198
|
return obj;
|
|
6206
6199
|
}
|
|
6207
6200
|
Expand_head(){
|
|
6208
6201
|
const obj = new this.$.$mol_check_expand();
|
|
6209
6202
|
(obj.minimal_height) = () => (24);
|
|
6210
6203
|
(obj.minimal_width) = () => (24);
|
|
6211
|
-
(obj.expanded) = (next) => ((this
|
|
6212
|
-
(obj.expandable) = () => ((this
|
|
6213
|
-
(obj.clicks) = (next) => ((this
|
|
6214
|
-
(obj.label) = () => ([(this
|
|
6204
|
+
(obj.expanded) = (next) => ((this?.expanded(next)));
|
|
6205
|
+
(obj.expandable) = () => ((this?.expandable()));
|
|
6206
|
+
(obj.clicks) = (next) => ((this?.expand_all(next)));
|
|
6207
|
+
(obj.label) = () => ([(this?.Expand_title())]);
|
|
6215
6208
|
return obj;
|
|
6216
6209
|
}
|
|
6217
6210
|
preview_dom(){
|
|
@@ -6222,13 +6215,13 @@ var $;
|
|
|
6222
6215
|
}
|
|
6223
6216
|
Preview_dom(){
|
|
6224
6217
|
const obj = new this.$.$mol_view();
|
|
6225
|
-
(obj.dom_node) = () => ((this
|
|
6226
|
-
(obj.render) = () => ((this
|
|
6218
|
+
(obj.dom_node) = () => ((this?.preview_dom()));
|
|
6219
|
+
(obj.render) = () => ((this?.preview()));
|
|
6227
6220
|
return obj;
|
|
6228
6221
|
}
|
|
6229
6222
|
Preview(){
|
|
6230
6223
|
const obj = new this.$.$mol_view();
|
|
6231
|
-
(obj.sub) = () => ([(this
|
|
6224
|
+
(obj.sub) = () => ([(this?.Preview_dom())]);
|
|
6232
6225
|
return obj;
|
|
6233
6226
|
}
|
|
6234
6227
|
row_values(id){
|
|
@@ -6239,19 +6232,19 @@ var $;
|
|
|
6239
6232
|
}
|
|
6240
6233
|
Row(id){
|
|
6241
6234
|
const obj = new this.$.$mol_dump_list();
|
|
6242
|
-
(obj.values) = () => ((this
|
|
6243
|
-
(obj.prototypes) = () => ((this
|
|
6244
|
-
(obj.preview_show) = () => ((this
|
|
6235
|
+
(obj.values) = () => ((this?.row_values(id)));
|
|
6236
|
+
(obj.prototypes) = () => ((this?.prototypes()));
|
|
6237
|
+
(obj.preview_show) = () => ((this?.preview_show()));
|
|
6245
6238
|
return obj;
|
|
6246
6239
|
}
|
|
6247
6240
|
expand_content(){
|
|
6248
|
-
return [(this
|
|
6241
|
+
return [(this?.Preview()), (this?.Row("0"))];
|
|
6249
6242
|
}
|
|
6250
6243
|
Expand(){
|
|
6251
6244
|
const obj = new this.$.$mol_expander();
|
|
6252
|
-
(obj.expanded) = (next) => ((this
|
|
6253
|
-
(obj.Trigger) = () => ((this
|
|
6254
|
-
(obj.content) = () => ((this
|
|
6245
|
+
(obj.expanded) = (next) => ((this?.expanded(next)));
|
|
6246
|
+
(obj.Trigger) = () => ((this?.Expand_head()));
|
|
6247
|
+
(obj.content) = () => ((this?.expand_content()));
|
|
6255
6248
|
return obj;
|
|
6256
6249
|
}
|
|
6257
6250
|
value(next){
|
|
@@ -6263,7 +6256,7 @@ var $;
|
|
|
6263
6256
|
return true;
|
|
6264
6257
|
}
|
|
6265
6258
|
sub(){
|
|
6266
|
-
return [(this
|
|
6259
|
+
return [(this?.Simple()), (this?.Expand())];
|
|
6267
6260
|
}
|
|
6268
6261
|
};
|
|
6269
6262
|
($mol_mem(($.$mol_dump_value.prototype), "Simple"));
|
|
@@ -7711,16 +7704,7 @@ var $;
|
|
|
7711
7704
|
var $;
|
|
7712
7705
|
(function ($_1) {
|
|
7713
7706
|
$mol_test_mocks.push($ => {
|
|
7714
|
-
$.$
|
|
7715
|
-
});
|
|
7716
|
-
})($ || ($ = {}));
|
|
7717
|
-
|
|
7718
|
-
;
|
|
7719
|
-
"use strict";
|
|
7720
|
-
var $;
|
|
7721
|
-
(function ($_1) {
|
|
7722
|
-
$mol_test_mocks.push($ => {
|
|
7723
|
-
$.$mol_after_frame = $mol_after_mock_commmon;
|
|
7707
|
+
$.$mol_after_tick = $mol_after_mock_commmon;
|
|
7724
7708
|
});
|
|
7725
7709
|
})($ || ($ = {}));
|
|
7726
7710
|
|
|
@@ -7828,6 +7812,15 @@ var $;
|
|
|
7828
7812
|
$.$mol_promise = $mol_promise;
|
|
7829
7813
|
})($ || ($ = {}));
|
|
7830
7814
|
|
|
7815
|
+
;
|
|
7816
|
+
"use strict";
|
|
7817
|
+
var $;
|
|
7818
|
+
(function ($_1) {
|
|
7819
|
+
$mol_test_mocks.push($ => {
|
|
7820
|
+
$.$mol_after_timeout = $mol_after_mock_timeout;
|
|
7821
|
+
});
|
|
7822
|
+
})($ || ($ = {}));
|
|
7823
|
+
|
|
7831
7824
|
;
|
|
7832
7825
|
"use strict";
|
|
7833
7826
|
var $;
|
|
@@ -8531,15 +8524,6 @@ var $;
|
|
|
8531
8524
|
});
|
|
8532
8525
|
})($ || ($ = {}));
|
|
8533
8526
|
|
|
8534
|
-
;
|
|
8535
|
-
"use strict";
|
|
8536
|
-
var $;
|
|
8537
|
-
(function ($_1) {
|
|
8538
|
-
$mol_test_mocks.push($ => {
|
|
8539
|
-
$.$mol_after_tick = $mol_after_mock_commmon;
|
|
8540
|
-
});
|
|
8541
|
-
})($ || ($ = {}));
|
|
8542
|
-
|
|
8543
8527
|
;
|
|
8544
8528
|
"use strict";
|
|
8545
8529
|
var $;
|
|
@@ -8744,6 +8728,15 @@ var $;
|
|
|
8744
8728
|
});
|
|
8745
8729
|
})($ || ($ = {}));
|
|
8746
8730
|
|
|
8731
|
+
;
|
|
8732
|
+
"use strict";
|
|
8733
|
+
var $;
|
|
8734
|
+
(function ($_1) {
|
|
8735
|
+
$mol_test_mocks.push($ => {
|
|
8736
|
+
$.$mol_after_frame = $mol_after_mock_commmon;
|
|
8737
|
+
});
|
|
8738
|
+
})($ || ($ = {}));
|
|
8739
|
+
|
|
8747
8740
|
;
|
|
8748
8741
|
"use strict";
|
|
8749
8742
|
|