vsn 0.1.49 → 0.1.50
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 -5
- package/demo/markup.html +1 -1
- package/demo/vsn.js +1 -1
- package/dist/AST/ElementQueryNode.d.ts +4 -2
- package/dist/AST/ElementQueryNode.js +8 -2
- package/dist/AST/ElementQueryNode.js.map +1 -1
- package/dist/AST.d.ts +2 -0
- package/dist/AST.js +5 -4
- package/dist/AST.js.map +1 -1
- package/package.json +1 -1
- package/src/AST/ElementQueryNode.ts +9 -3
- package/src/AST.ts +8 -5
package/demo/demo.html
CHANGED
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
|
|
82
82
|
<template vsn-template id="query-operator-example-item">
|
|
83
83
|
<li vsn-list-item>
|
|
84
|
-
<span vsn-if="'active' in
|
|
85
|
-
<span vsn-if:not="'active' not in
|
|
86
|
-
<button vsn-on:click="
|
|
87
|
-
<button vsn-on:click="
|
|
88
|
-
<button vsn-on:click="
|
|
84
|
+
<span vsn-if="'active' in ?>(:parent).@class">active</span>
|
|
85
|
+
<span vsn-if:not="'active' not in ?>(:parent).@class">inactive</span>
|
|
86
|
+
<button vsn-on:click="?>(:parent).@class += 'active'">+</button>
|
|
87
|
+
<button vsn-on:click="?>(:parent).@class -= 'active'">-</button>
|
|
88
|
+
<button vsn-on:click="?>(:parent).@class ~ 'active'">~</button>
|
|
89
89
|
</li>
|
|
90
90
|
</template>
|
|
91
91
|
|
package/demo/markup.html
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
<h1>Markup Test</h1>
|
|
2
|
-
<p vsn-on:click="@text = 'This
|
|
2
|
+
<p vsn-on:click="@text = 'This is a clicked paragraph.'">This is a paragraph.</p>
|