mol_view_tree2_lib 1.0.11 → 1.0.13
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/web.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) {
|
|
@@ -3381,6 +3381,10 @@ var $;
|
|
|
3381
3381
|
this.emit();
|
|
3382
3382
|
return next;
|
|
3383
3383
|
}
|
|
3384
|
+
destructor() {
|
|
3385
|
+
super.destructor();
|
|
3386
|
+
this.cursor = $mol_wire_cursor.final;
|
|
3387
|
+
}
|
|
3384
3388
|
}
|
|
3385
3389
|
$.$mol_wire_task = $mol_wire_task;
|
|
3386
3390
|
})($ || ($ = {}));
|
|
@@ -4965,15 +4969,30 @@ var $;
|
|
|
4965
4969
|
'<=': bind => [call_of.call(this, bind, false)],
|
|
4966
4970
|
'<=>': bind => [call_of.call(this, bind, true)],
|
|
4967
4971
|
'=>': bind => [],
|
|
4968
|
-
'^': (ref) => [
|
|
4972
|
+
'^': (ref, belt, context) => [
|
|
4969
4973
|
ref.struct('...', [
|
|
4970
|
-
ref.
|
|
4971
|
-
ref.struct(
|
|
4972
|
-
|
|
4973
|
-
ref.
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4974
|
+
ref.kids[0]?.type
|
|
4975
|
+
? ref.struct('()', [
|
|
4976
|
+
ref.struct('this'),
|
|
4977
|
+
ref.struct('[]', [ref.data(name_of.call(this, ref.kids[0]))]),
|
|
4978
|
+
args_of.call(this, ref.kids[0])
|
|
4979
|
+
])
|
|
4980
|
+
: context.chain
|
|
4981
|
+
? ref.struct('()', [
|
|
4982
|
+
ref.struct('this'),
|
|
4983
|
+
ref.struct('[]', [ref.data('$')]),
|
|
4984
|
+
ref.struct('[]', [ref.data(op.type)]),
|
|
4985
|
+
ref.struct('[]', [ref.data('prototype')]),
|
|
4986
|
+
ref.struct('[]', [ref.data(context.chain[0])]),
|
|
4987
|
+
ref.struct('[]', [ref.data('call')]),
|
|
4988
|
+
ref.struct('(,)', [ref.struct('obj')]),
|
|
4989
|
+
...context.chain.slice(1).map(field => ref.struct('[]', [ref.data(field)]))
|
|
4990
|
+
])
|
|
4991
|
+
: ref.struct('()', [
|
|
4992
|
+
ref.struct('super'),
|
|
4993
|
+
ref.struct('[]', [ref.data(name)]),
|
|
4994
|
+
ref.struct('(,)')
|
|
4995
|
+
]),
|
|
4977
4996
|
]),
|
|
4978
4997
|
],
|
|
4979
4998
|
'=': bind => [bind.struct('()', [
|
|
@@ -4989,7 +5008,7 @@ var $;
|
|
|
4989
5008
|
return [
|
|
4990
5009
|
input.struct('{,}', input.kids.map(field => {
|
|
4991
5010
|
if (field.type === '^')
|
|
4992
|
-
return field.list([field]).hack(belt)[0];
|
|
5011
|
+
return field.list([field]).hack(belt, context)[0];
|
|
4993
5012
|
const field_name = (field.type || field.value).replace(/\?\w*$/, '');
|
|
4994
5013
|
return field.struct(':', [
|
|
4995
5014
|
field.data(field_name),
|
|
@@ -5005,7 +5024,7 @@ var $;
|
|
|
5005
5024
|
}
|
|
5006
5025
|
if (input.type[0] === '/')
|
|
5007
5026
|
return [
|
|
5008
|
-
input.struct('[,]', input.hack(belt)),
|
|
5027
|
+
input.struct('[,]', input.hack(belt, context)),
|
|
5009
5028
|
];
|
|
5010
5029
|
if (input.type && $mol_tree2_js_is_number(input.type))
|
|
5011
5030
|
return [
|
package/web.test.js
CHANGED
|
@@ -7474,6 +7474,29 @@ var $;
|
|
|
7474
7474
|
};
|
|
7475
7475
|
|
|
7476
7476
|
|
|
7477
|
+
;
|
|
7478
|
+
($.$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) {
|
|
7479
|
+
config(){
|
|
7480
|
+
return {"ips": ["127.0.0.1"]};
|
|
7481
|
+
}
|
|
7482
|
+
};
|
|
7483
|
+
($.$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) {
|
|
7484
|
+
addon(){
|
|
7485
|
+
return ["1.1.1.1"];
|
|
7486
|
+
}
|
|
7487
|
+
Having(){
|
|
7488
|
+
const obj = new this.$.$mol_view_tree2_to_js_test_ex_simple_factory_inheritance_bar();
|
|
7489
|
+
(obj.config) = () => ({"ips": [
|
|
7490
|
+
...(this.$.$mol_view_tree2_to_js_test_ex_simple_factory_inheritance_bar.prototype.config.call(obj).ips),
|
|
7491
|
+
"0.0.0.0",
|
|
7492
|
+
...(this.addon())
|
|
7493
|
+
]});
|
|
7494
|
+
return obj;
|
|
7495
|
+
}
|
|
7496
|
+
};
|
|
7497
|
+
($mol_mem(($.$mol_view_tree2_to_js_test_ex_simple_factory_inheritance_foo.prototype), "Having"));
|
|
7498
|
+
|
|
7499
|
+
|
|
7477
7500
|
;
|
|
7478
7501
|
($.$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) {
|
|
7479
7502
|
field(){
|
|
@@ -7756,6 +7779,9 @@ var $;
|
|
|
7756
7779
|
;
|
|
7757
7780
|
"use strict";
|
|
7758
7781
|
|
|
7782
|
+
;
|
|
7783
|
+
"use strict";
|
|
7784
|
+
|
|
7759
7785
|
;
|
|
7760
7786
|
"use strict";
|
|
7761
7787
|
var $;
|
|
@@ -8107,6 +8133,11 @@ sub
|
|
|
8107
8133
|
$mol_assert_equal(foo.button().deep().loc, `$mol_view_tree2_to_js_test_ex_simple_factory_props_foo_button_deep_loc`);
|
|
8108
8134
|
$mol_assert_equal(foo.button().sub()[0], 1);
|
|
8109
8135
|
},
|
|
8136
|
+
'simple factory inheritance'($) {
|
|
8137
|
+
const _foo = $mol_view_tree2_to_js_test_ex_simple_factory_inheritance_foo;
|
|
8138
|
+
const foo = _foo.make({ $ });
|
|
8139
|
+
$mol_assert_equal(foo.Having().config(), { ips: ['127.0.0.1', '0.0.0.0', '1.1.1.1'] });
|
|
8140
|
+
},
|
|
8110
8141
|
'simple nan'($) {
|
|
8111
8142
|
const _foo = $mol_view_tree2_to_js_test_ex_simple_nan_foo;
|
|
8112
8143
|
const foo = _foo.make({ $ });
|