mol_view_tree2_lib 1.0.10 → 1.0.12
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 +1 -0
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +30 -11
- package/node.js.map +1 -1
- package/node.mjs +30 -11
- package/node.test.js +61 -11
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +1 -0
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +30 -11
- package/web.js.map +1 -1
- package/web.mjs +30 -11
- package/web.test.js +31 -0
- package/web.test.js.map +1 -1
package/node.mjs
CHANGED
|
@@ -2676,7 +2676,7 @@ var $;
|
|
|
2676
2676
|
this.data.length = this.sub_from;
|
|
2677
2677
|
this.cursor = this.pub_from;
|
|
2678
2678
|
this.track_cut();
|
|
2679
|
-
this.cursor = $mol_wire_cursor.
|
|
2679
|
+
this.cursor = $mol_wire_cursor.stale;
|
|
2680
2680
|
}
|
|
2681
2681
|
track_cut() {
|
|
2682
2682
|
if (this.cursor < this.pub_from) {
|
|
@@ -3414,6 +3414,10 @@ var $;
|
|
|
3414
3414
|
this.emit();
|
|
3415
3415
|
return next;
|
|
3416
3416
|
}
|
|
3417
|
+
destructor() {
|
|
3418
|
+
super.destructor();
|
|
3419
|
+
this.cursor = $mol_wire_cursor.final;
|
|
3420
|
+
}
|
|
3417
3421
|
}
|
|
3418
3422
|
$.$mol_wire_task = $mol_wire_task;
|
|
3419
3423
|
})($ || ($ = {}));
|
|
@@ -5130,15 +5134,30 @@ var $;
|
|
|
5130
5134
|
'<=': bind => [call_of.call(this, bind, false)],
|
|
5131
5135
|
'<=>': bind => [call_of.call(this, bind, true)],
|
|
5132
5136
|
'=>': bind => [],
|
|
5133
|
-
'^': (ref) => [
|
|
5137
|
+
'^': (ref, belt, context) => [
|
|
5134
5138
|
ref.struct('...', [
|
|
5135
|
-
ref.
|
|
5136
|
-
ref.struct(
|
|
5137
|
-
|
|
5138
|
-
ref.
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5139
|
+
ref.kids[0]?.type
|
|
5140
|
+
? ref.struct('()', [
|
|
5141
|
+
ref.struct('this'),
|
|
5142
|
+
ref.struct('[]', [ref.data(name_of.call(this, ref.kids[0]))]),
|
|
5143
|
+
args_of.call(this, ref.kids[0])
|
|
5144
|
+
])
|
|
5145
|
+
: context.chain
|
|
5146
|
+
? ref.struct('()', [
|
|
5147
|
+
ref.struct('this'),
|
|
5148
|
+
ref.struct('[]', [ref.data('$')]),
|
|
5149
|
+
ref.struct('[]', [ref.data(op.type)]),
|
|
5150
|
+
ref.struct('[]', [ref.data('prototype')]),
|
|
5151
|
+
ref.struct('[]', [ref.data(context.chain[0])]),
|
|
5152
|
+
ref.struct('[]', [ref.data('call')]),
|
|
5153
|
+
ref.struct('(,)', [ref.struct('obj')]),
|
|
5154
|
+
...context.chain.slice(1).map(field => ref.struct('[]', [ref.data(field)]))
|
|
5155
|
+
])
|
|
5156
|
+
: ref.struct('()', [
|
|
5157
|
+
ref.struct('super'),
|
|
5158
|
+
ref.struct('[]', [ref.data(name)]),
|
|
5159
|
+
ref.struct('(,)')
|
|
5160
|
+
]),
|
|
5142
5161
|
]),
|
|
5143
5162
|
],
|
|
5144
5163
|
'=': bind => [bind.struct('()', [
|
|
@@ -5154,7 +5173,7 @@ var $;
|
|
|
5154
5173
|
return [
|
|
5155
5174
|
input.struct('{,}', input.kids.map(field => {
|
|
5156
5175
|
if (field.type === '^')
|
|
5157
|
-
return field.list([field]).hack(belt)[0];
|
|
5176
|
+
return field.list([field]).hack(belt, context)[0];
|
|
5158
5177
|
const field_name = (field.type || field.value).replace(/\?\w*$/, '');
|
|
5159
5178
|
return field.struct(':', [
|
|
5160
5179
|
field.data(field_name),
|
|
@@ -5170,7 +5189,7 @@ var $;
|
|
|
5170
5189
|
}
|
|
5171
5190
|
if (input.type[0] === '/')
|
|
5172
5191
|
return [
|
|
5173
|
-
input.struct('[,]', input.hack(belt)),
|
|
5192
|
+
input.struct('[,]', input.hack(belt, context)),
|
|
5174
5193
|
];
|
|
5175
5194
|
if (input.type && $mol_tree2_js_is_number(input.type))
|
|
5176
5195
|
return [
|
package/node.test.js
CHANGED
|
@@ -2667,7 +2667,7 @@ var $;
|
|
|
2667
2667
|
this.data.length = this.sub_from;
|
|
2668
2668
|
this.cursor = this.pub_from;
|
|
2669
2669
|
this.track_cut();
|
|
2670
|
-
this.cursor = $mol_wire_cursor.
|
|
2670
|
+
this.cursor = $mol_wire_cursor.stale;
|
|
2671
2671
|
}
|
|
2672
2672
|
track_cut() {
|
|
2673
2673
|
if (this.cursor < this.pub_from) {
|
|
@@ -3405,6 +3405,10 @@ var $;
|
|
|
3405
3405
|
this.emit();
|
|
3406
3406
|
return next;
|
|
3407
3407
|
}
|
|
3408
|
+
destructor() {
|
|
3409
|
+
super.destructor();
|
|
3410
|
+
this.cursor = $mol_wire_cursor.final;
|
|
3411
|
+
}
|
|
3408
3412
|
}
|
|
3409
3413
|
$.$mol_wire_task = $mol_wire_task;
|
|
3410
3414
|
})($ || ($ = {}));
|
|
@@ -5121,15 +5125,30 @@ var $;
|
|
|
5121
5125
|
'<=': bind => [call_of.call(this, bind, false)],
|
|
5122
5126
|
'<=>': bind => [call_of.call(this, bind, true)],
|
|
5123
5127
|
'=>': bind => [],
|
|
5124
|
-
'^': (ref) => [
|
|
5128
|
+
'^': (ref, belt, context) => [
|
|
5125
5129
|
ref.struct('...', [
|
|
5126
|
-
ref.
|
|
5127
|
-
ref.struct(
|
|
5128
|
-
|
|
5129
|
-
ref.
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5130
|
+
ref.kids[0]?.type
|
|
5131
|
+
? ref.struct('()', [
|
|
5132
|
+
ref.struct('this'),
|
|
5133
|
+
ref.struct('[]', [ref.data(name_of.call(this, ref.kids[0]))]),
|
|
5134
|
+
args_of.call(this, ref.kids[0])
|
|
5135
|
+
])
|
|
5136
|
+
: context.chain
|
|
5137
|
+
? ref.struct('()', [
|
|
5138
|
+
ref.struct('this'),
|
|
5139
|
+
ref.struct('[]', [ref.data('$')]),
|
|
5140
|
+
ref.struct('[]', [ref.data(op.type)]),
|
|
5141
|
+
ref.struct('[]', [ref.data('prototype')]),
|
|
5142
|
+
ref.struct('[]', [ref.data(context.chain[0])]),
|
|
5143
|
+
ref.struct('[]', [ref.data('call')]),
|
|
5144
|
+
ref.struct('(,)', [ref.struct('obj')]),
|
|
5145
|
+
...context.chain.slice(1).map(field => ref.struct('[]', [ref.data(field)]))
|
|
5146
|
+
])
|
|
5147
|
+
: ref.struct('()', [
|
|
5148
|
+
ref.struct('super'),
|
|
5149
|
+
ref.struct('[]', [ref.data(name)]),
|
|
5150
|
+
ref.struct('(,)')
|
|
5151
|
+
]),
|
|
5133
5152
|
]),
|
|
5134
5153
|
],
|
|
5135
5154
|
'=': bind => [bind.struct('()', [
|
|
@@ -5145,7 +5164,7 @@ var $;
|
|
|
5145
5164
|
return [
|
|
5146
5165
|
input.struct('{,}', input.kids.map(field => {
|
|
5147
5166
|
if (field.type === '^')
|
|
5148
|
-
return field.list([field]).hack(belt)[0];
|
|
5167
|
+
return field.list([field]).hack(belt, context)[0];
|
|
5149
5168
|
const field_name = (field.type || field.value).replace(/\?\w*$/, '');
|
|
5150
5169
|
return field.struct(':', [
|
|
5151
5170
|
field.data(field_name),
|
|
@@ -5161,7 +5180,7 @@ var $;
|
|
|
5161
5180
|
}
|
|
5162
5181
|
if (input.type[0] === '/')
|
|
5163
5182
|
return [
|
|
5164
|
-
input.struct('[,]', input.hack(belt)),
|
|
5183
|
+
input.struct('[,]', input.hack(belt, context)),
|
|
5165
5184
|
];
|
|
5166
5185
|
if (input.type && $mol_tree2_js_is_number(input.type))
|
|
5167
5186
|
return [
|
|
@@ -12745,6 +12764,29 @@ var $;
|
|
|
12745
12764
|
};
|
|
12746
12765
|
|
|
12747
12766
|
|
|
12767
|
+
;
|
|
12768
|
+
($.$mol_view_tree2_to_js_test_ex_simple_factory_inheritance_bar) = class $mol_view_tree2_to_js_test_ex_simple_factory_inheritance_bar extends ($.$mol_object) {
|
|
12769
|
+
config(){
|
|
12770
|
+
return {"ips": ["127.0.0.1"]};
|
|
12771
|
+
}
|
|
12772
|
+
};
|
|
12773
|
+
($.$mol_view_tree2_to_js_test_ex_simple_factory_inheritance_foo) = class $mol_view_tree2_to_js_test_ex_simple_factory_inheritance_foo extends ($.$mol_object) {
|
|
12774
|
+
addon(){
|
|
12775
|
+
return ["1.1.1.1"];
|
|
12776
|
+
}
|
|
12777
|
+
Having(){
|
|
12778
|
+
const obj = new this.$.$mol_view_tree2_to_js_test_ex_simple_factory_inheritance_bar();
|
|
12779
|
+
(obj.config) = () => ({"ips": [
|
|
12780
|
+
...(this.$.$mol_view_tree2_to_js_test_ex_simple_factory_inheritance_bar.prototype.config.call(obj).ips),
|
|
12781
|
+
"0.0.0.0",
|
|
12782
|
+
...(this.addon())
|
|
12783
|
+
]});
|
|
12784
|
+
return obj;
|
|
12785
|
+
}
|
|
12786
|
+
};
|
|
12787
|
+
($mol_mem(($.$mol_view_tree2_to_js_test_ex_simple_factory_inheritance_foo.prototype), "Having"));
|
|
12788
|
+
|
|
12789
|
+
|
|
12748
12790
|
;
|
|
12749
12791
|
($.$mol_view_tree2_to_js_test_ex_structural_with_inheritance_foo) = class $mol_view_tree2_to_js_test_ex_structural_with_inheritance_foo extends ($.$mol_object) {
|
|
12750
12792
|
field(){
|
|
@@ -13027,6 +13069,9 @@ var $;
|
|
|
13027
13069
|
;
|
|
13028
13070
|
"use strict";
|
|
13029
13071
|
|
|
13072
|
+
;
|
|
13073
|
+
"use strict";
|
|
13074
|
+
|
|
13030
13075
|
;
|
|
13031
13076
|
"use strict";
|
|
13032
13077
|
var $;
|
|
@@ -13378,6 +13423,11 @@ sub
|
|
|
13378
13423
|
$mol_assert_equal(foo.button().deep().loc, `$mol_view_tree2_to_js_test_ex_simple_factory_props_foo_button_deep_loc`);
|
|
13379
13424
|
$mol_assert_equal(foo.button().sub()[0], 1);
|
|
13380
13425
|
},
|
|
13426
|
+
'simple factory inheritance'($) {
|
|
13427
|
+
const _foo = $mol_view_tree2_to_js_test_ex_simple_factory_inheritance_foo;
|
|
13428
|
+
const foo = _foo.make({ $ });
|
|
13429
|
+
$mol_assert_equal(foo.Having().config(), { ips: ['127.0.0.1', '0.0.0.0', '1.1.1.1'] });
|
|
13430
|
+
},
|
|
13381
13431
|
'simple nan'($) {
|
|
13382
13432
|
const _foo = $mol_view_tree2_to_js_test_ex_simple_nan_foo;
|
|
13383
13433
|
const foo = _foo.make({ $ });
|