vsn 0.1.57 → 0.1.60
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/demo/demo.html +5 -2
- package/demo/vsn.js +2 -2
- package/demo/xhr.html +17 -0
- package/dist/AST/ArithmeticAssignmentNode.d.ts +2 -1
- package/dist/AST/ArithmeticAssignmentNode.js +20 -18
- package/dist/AST/ArithmeticAssignmentNode.js.map +1 -1
- package/dist/AST/FunctionCallNode.js +13 -8
- package/dist/AST/FunctionCallNode.js.map +1 -1
- package/dist/AST/FunctionNode.d.ts +7 -8
- package/dist/AST/FunctionNode.js +53 -9
- package/dist/AST/FunctionNode.js.map +1 -1
- package/dist/AST.d.ts +47 -46
- package/dist/AST.js +57 -46
- package/dist/AST.js.map +1 -1
- package/dist/Scope.d.ts +1 -0
- package/dist/Scope.js +5 -0
- package/dist/Scope.js.map +1 -1
- package/dist/Tag.js +3 -4
- package/dist/Tag.js.map +1 -1
- package/dist/attributes/Exec.d.ts +1 -0
- package/dist/attributes/Exec.js +8 -1
- package/dist/attributes/Exec.js.map +1 -1
- package/dist/attributes/RootAttribute.js +3 -0
- package/dist/attributes/RootAttribute.js.map +1 -1
- package/dist/attributes/ScriptAttribute.d.ts +4 -0
- package/dist/attributes/ScriptAttribute.js +45 -0
- package/dist/attributes/ScriptAttribute.js.map +1 -0
- package/dist/attributes/_imports.d.ts +1 -0
- package/dist/attributes/_imports.js +3 -1
- package/dist/attributes/_imports.js.map +1 -1
- package/dist/vsn.js +1 -1
- package/dist/vsn.min.js +2 -2
- package/package.json +1 -1
- package/src/AST/ArithmeticAssignmentNode.ts +19 -17
- package/src/AST/FunctionCallNode.ts +7 -1
- package/src/AST/FunctionNode.ts +30 -10
- package/src/AST.ts +10 -0
- package/src/Scope.ts +6 -0
- package/src/Tag.ts +3 -5
- package/src/attributes/Exec.ts +5 -1
- package/src/attributes/RootAttribute.ts +3 -0
- package/src/attributes/ScriptAttribute.ts +9 -0
- package/src/attributes/_imports.ts +1 -0
- package/src/vsn.ts +1 -1
- package/test/AST/FunctionNode.spec.ts +14 -0
- package/demo/xhr.vsn +0 -4
package/demo/demo.html
CHANGED
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
|
|
77
77
|
<div>
|
|
78
78
|
<textarea id="example-code" rows="10" cols="50"></textarea>
|
|
79
|
-
<input type="text" id="example-input" value="hmm" />
|
|
80
79
|
<div id="example-output" vsn-bind:@html="#example-code.@value"></div>
|
|
81
80
|
</div>
|
|
82
81
|
|
|
@@ -98,7 +97,7 @@
|
|
|
98
97
|
<button vsn-on:click="show = !show" vsn-set:show="false|boolean">Toggle</button>
|
|
99
98
|
<span vsn-bind="show"></span>
|
|
100
99
|
|
|
101
|
-
<a vsn-on:click="if(@text != @clicktext){@text=@clicktext}else{@text='Click Me'}" clicktext="Clicked!">Click Me</a>
|
|
100
|
+
<a id="click-test" vsn-on:click="if(@text != @clicktext){@text=@clicktext}else{@text='Click Me'}" clicktext="Clicked!">Click Me</a>
|
|
102
101
|
|
|
103
102
|
<h2>? Operator</h2>
|
|
104
103
|
<p>Add/remove class to list of elements on click.</p>
|
|
@@ -188,6 +187,10 @@
|
|
|
188
187
|
</li>
|
|
189
188
|
</ul>
|
|
190
189
|
</div>
|
|
190
|
+
|
|
191
|
+
<h2>Lazy XHR Component</h2>
|
|
192
|
+
<div vsn-lazy="@html = << './xhr.html'"></div>
|
|
193
|
+
|
|
191
194
|
<script type="text/javascript">
|
|
192
195
|
window.addEventListener('vsn', function () {
|
|
193
196
|
vision.registry.classes.register('TestController', TestController);
|