vasille 2.0.1 → 2.0.5
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/README.md +42 -10
- package/cdn/es2015.js +3175 -0
- package/cdn/es5.js +3632 -0
- package/flow-typed/vasille.js +208 -205
- package/lib/binding/attribute.js +6 -12
- package/lib/binding/binding.js +9 -19
- package/lib/binding/class.js +34 -42
- package/lib/binding/style.js +5 -11
- package/lib/core/core.js +33 -29
- package/lib/core/destroyable.js +2 -2
- package/lib/core/ivalue.js +15 -13
- package/lib/node/app.js +6 -5
- package/lib/node/interceptor.js +3 -3
- package/lib/node/node.js +313 -305
- package/lib/node/watch.js +8 -8
- package/lib/value/expression.js +3 -3
- package/lib/value/mirror.js +6 -8
- package/lib/value/reference.js +3 -7
- package/lib/views/array-view.js +4 -6
- package/lib/views/base-view.js +6 -6
- package/lib/views/map-view.js +4 -5
- package/lib/views/object-view.js +4 -5
- package/lib/views/repeat-node.js +16 -44
- package/lib/views/repeater.js +7 -7
- package/lib/views/set-view.js +5 -6
- package/package.json +13 -7
- package/types/binding/attribute.d.ts +0 -6
- package/types/binding/binding.d.ts +4 -13
- package/types/binding/class.d.ts +7 -19
- package/types/binding/style.d.ts +0 -6
- package/types/core/core.d.ts +35 -31
- package/types/core/destroyable.d.ts +2 -2
- package/types/core/ivalue.d.ts +13 -11
- package/types/core/slot.d.ts +4 -4
- package/types/models/array-model.d.ts +2 -2
- package/types/models/map-model.d.ts +2 -2
- package/types/models/model.d.ts +3 -1
- package/types/models/object-model.d.ts +2 -2
- package/types/models/set-model.d.ts +2 -2
- package/types/node/app.d.ts +7 -2
- package/types/node/interceptor.d.ts +3 -3
- package/types/node/node.d.ts +137 -139
- package/types/node/watch.d.ts +3 -3
- package/types/value/expression.d.ts +1 -1
- package/types/value/mirror.d.ts +3 -3
- package/types/value/reference.d.ts +5 -5
- package/types/views/array-view.d.ts +2 -2
- package/types/views/base-view.d.ts +4 -4
- package/types/views/map-view.d.ts +2 -2
- package/types/views/object-view.d.ts +2 -2
- package/types/views/repeat-node.d.ts +2 -2
- package/types/views/repeater.d.ts +3 -3
- package/types/views/set-view.d.ts +2 -2
package/README.md
CHANGED
|
@@ -4,8 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
`Vasille` core library is frontend solution for `safe`, `fast` & `powerful` applications.
|
|
6
6
|
|
|
7
|
+
[](https://gitlab.com/vasille-js/vasille-js)
|
|
8
|
+
[](https://www.npmjs.com/package/vasille)
|
|
9
|
+
|
|
7
10
|
## Table of content
|
|
8
|
-
|
|
11
|
+
|
|
12
|
+
* [Installation](#installation)
|
|
13
|
+
* [How SAFE is Vasille](#how-safe-is-vasille)
|
|
14
|
+
* [How FAST is Vasille](#how-fast-is-vasille)
|
|
15
|
+
* [How POWERFUL is Vasille](#how-powerful-is-vasille)
|
|
16
|
+
* [How to use Vasille](#how-to-use-vasille)
|
|
17
|
+
* [Best Practices](#best-practices)
|
|
9
18
|
|
|
10
19
|
|
|
11
20
|
<hr>
|
|
@@ -16,10 +25,19 @@
|
|
|
16
25
|
npm install vasille --save
|
|
17
26
|
```
|
|
18
27
|
|
|
28
|
+
### CDN
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
ES2015 version
|
|
32
|
+
<script src="https://unpkg.com/vasille"></script>
|
|
33
|
+
ES5 Compatible version
|
|
34
|
+
<script src="https://unpkg.com/vasille/cdn/es5.js"></script>
|
|
35
|
+
```
|
|
36
|
+
|
|
19
37
|
### Getting ready be example
|
|
20
|
-
* JavaScript Example
|
|
21
|
-
* TypeScript Example
|
|
22
|
-
* Flow.js Example
|
|
38
|
+
* [JavaScript Example](https://gitlab.com/vasille-js/learning/vasille-js-example)
|
|
39
|
+
* [TypeScript Example](https://gitlab.com/vasille-js/learning/vasille-ts-example)
|
|
40
|
+
* [Flow.js Example](https://gitlab.com/vasille-js/learning/vasille-flow-js-example)
|
|
23
41
|
|
|
24
42
|
### Flow.js typedef
|
|
25
43
|
Add the next line to `[libs]` section in your `.flowconfig` file
|
|
@@ -155,12 +173,26 @@ which will be reflected into a browser DOM and keep up to date it.
|
|
|
155
173
|
* `InterceptorNode` is used to send an event/signal from one child to other
|
|
156
174
|
without manually creating of interceptors.
|
|
157
175
|
|
|
158
|
-
##
|
|
159
|
-
|
|
160
|
-
There are several
|
|
161
|
-
* [
|
|
162
|
-
* [Procedural
|
|
163
|
-
* [
|
|
176
|
+
## How to use Vasille
|
|
177
|
+
|
|
178
|
+
There are several modes, and most of it are WIP (Work In Progress):
|
|
179
|
+
* [Object-Oriented Programming - Ready](https://gitlab.com/vasille-js/vasille-js/-/blob/v2/pages/OOP-API.md)
|
|
180
|
+
* [Procedural Programming - WIP](https://gitlab.com/vasille-js/vasille-js/-/blob/v2/pages/Procedural-API.md)
|
|
181
|
+
* [Template Programming - WIP](https://gitlab.com/vasille-js/vasille-js/-/blob/v2/pages/API.md)
|
|
182
|
+
|
|
183
|
+
## Best Practices
|
|
184
|
+
|
|
185
|
+
* [Reactive Object Practice](https://gitlab.com/vasille-js/vasille-practices/-/blob/main/practices/reactive-object.ts)
|
|
186
|
+
* [Application](https://gitlab.com/vasille-js/vasille-practices/-/blob/main/practices/application.ts)
|
|
187
|
+
* [Application in Application](https://gitlab.com/vasille-js/vasille-practices/-/blob/main/practices/application-in-application.ts)
|
|
188
|
+
* [Signaling](https://gitlab.com/vasille-js/vasille-practices/-/blob/main/practices/signaling.ts)
|
|
189
|
+
* [Forward Only Data Exchange](https://gitlab.com/vasille-js/vasille-practices/-/blob/main/practices/forward-only.ts)
|
|
190
|
+
* [Absolute, Relative & Auto Values](https://gitlab.com/vasille-js/vasille-practices/-/blob/main/practices/auto-value.ts)
|
|
191
|
+
* [Signaling Intercepting](https://gitlab.com/vasille-js/vasille-practices/-/blob/main/practices/singaling-intercepting.ts)
|
|
192
|
+
* [Debugging](https://gitlab.com/vasille-js/vasille-practices/-/blob/main/practices/debugging.ts)
|
|
193
|
+
* [Fragment vs Component](https://gitlab.com/vasille-js/vasille-practices/-/blob/main/practices/fragment-component.ts)
|
|
194
|
+
* [Extensions](https://gitlab.com/vasille-js/vasille-practices/-/blob/main/practices/extension.ts)
|
|
195
|
+
* [Model-View-Controller](https://gitlab.com/vasille-js/vasille-practices/-/blob/main/practices/model-view-controller.ts)
|
|
164
196
|
|
|
165
197
|
## Questions
|
|
166
198
|
|