vasille 2.2.1 → 2.2.2
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/cdn/es2015.js +516 -516
- package/cdn/es5.js +583 -579
- package/flow-typed/vasille.js +40 -40
- package/lib/binding/attribute.js +1 -1
- package/lib/binding/binding.js +5 -5
- package/lib/binding/class.js +2 -2
- package/lib/binding/style.js +1 -1
- package/lib/core/core.js +12 -12
- package/lib/core/destroyable.js +2 -2
- package/lib/core/ivalue.js +4 -4
- package/lib/functional/reactivity.js +1 -1
- package/lib/node/app.js +3 -3
- package/lib/node/node.js +39 -39
- package/lib/node/watch.js +1 -1
- package/lib/v/index.js +1 -1
- package/lib/value/expression.js +13 -13
- package/lib/value/mirror.js +15 -15
- package/lib/value/pointer.js +5 -5
- package/lib/value/reference.js +18 -18
- package/lib/views/base-view.js +1 -1
- package/lib/views/repeat-node.js +4 -4
- package/package.json +1 -1
- package/types/binding/binding.d.ts +1 -1
- package/types/core/core.d.ts +2 -2
- package/types/core/destroyable.d.ts +2 -2
- package/types/core/ivalue.d.ts +4 -4
- package/types/node/node.d.ts +11 -11
- package/types/v/index.d.ts +4 -0
- package/types/value/expression.d.ts +5 -5
- package/types/value/mirror.d.ts +6 -6
- package/types/value/pointer.d.ts +1 -1
- package/types/value/reference.d.ts +7 -7
- package/types/views/repeat-node.d.ts +1 -1
|
@@ -39,9 +39,9 @@ export declare class Expression<T, Args extends unknown[]> extends IValue<T> {
|
|
|
39
39
|
constructor(func: (...args: Args) => T, link: boolean, ...values: KindOfIValue<Args>);
|
|
40
40
|
get $(): T;
|
|
41
41
|
set $(value: T);
|
|
42
|
-
on(handler: (value: T) => void): this;
|
|
43
|
-
off(handler: (value: T) => void): this;
|
|
44
|
-
enable(): this;
|
|
45
|
-
disable(): this;
|
|
46
|
-
destroy(): void;
|
|
42
|
+
$on(handler: (value: T) => void): this;
|
|
43
|
+
$off(handler: (value: T) => void): this;
|
|
44
|
+
$enable(): this;
|
|
45
|
+
$disable(): this;
|
|
46
|
+
$destroy(): void;
|
|
47
47
|
}
|
package/types/value/mirror.d.ts
CHANGED
|
@@ -11,16 +11,16 @@ export declare class Mirror<T> extends Reference<T> {
|
|
|
11
11
|
* pointed value
|
|
12
12
|
* @type IValue
|
|
13
13
|
*/
|
|
14
|
-
protected pointedValue: IValue<T>;
|
|
14
|
+
protected $pointedValue: IValue<T>;
|
|
15
15
|
/**
|
|
16
16
|
* Collection of handlers
|
|
17
17
|
* @type Set
|
|
18
18
|
*/
|
|
19
|
-
private readonly handler;
|
|
19
|
+
private readonly $handler;
|
|
20
20
|
/**
|
|
21
21
|
* Ensure forward only synchronization
|
|
22
22
|
*/
|
|
23
|
-
forwardOnly: boolean;
|
|
23
|
+
$forwardOnly: boolean;
|
|
24
24
|
/**
|
|
25
25
|
* Constructs a notifiable bind to a value
|
|
26
26
|
* @param value {IValue} is initial value
|
|
@@ -29,7 +29,7 @@ export declare class Mirror<T> extends Reference<T> {
|
|
|
29
29
|
constructor(value: IValue<T>, forwardOnly?: boolean);
|
|
30
30
|
get $(): T;
|
|
31
31
|
set $(v: T);
|
|
32
|
-
enable(): void;
|
|
33
|
-
disable(): void;
|
|
34
|
-
destroy(): void;
|
|
32
|
+
$enable(): void;
|
|
33
|
+
$disable(): void;
|
|
34
|
+
$destroy(): void;
|
|
35
35
|
}
|
package/types/value/pointer.d.ts
CHANGED
|
@@ -9,22 +9,22 @@ export declare class Reference<T> extends IValue<T> {
|
|
|
9
9
|
* The encapsulated value
|
|
10
10
|
* @type {*}
|
|
11
11
|
*/
|
|
12
|
-
private value;
|
|
12
|
+
private $value;
|
|
13
13
|
/**
|
|
14
14
|
* Array of handlers
|
|
15
15
|
* @type {Set}
|
|
16
16
|
* @readonly
|
|
17
17
|
*/
|
|
18
|
-
private readonly onchange;
|
|
18
|
+
private readonly $onchange;
|
|
19
19
|
/**
|
|
20
20
|
* @param value {any} the initial value
|
|
21
21
|
*/
|
|
22
22
|
constructor(value: T);
|
|
23
23
|
get $(): T;
|
|
24
24
|
set $(value: T);
|
|
25
|
-
enable(): void;
|
|
26
|
-
disable(): void;
|
|
27
|
-
on(handler: (value: T) => void): void;
|
|
28
|
-
off(handler: (value: T) => void): void;
|
|
29
|
-
destroy(): void;
|
|
25
|
+
$enable(): void;
|
|
26
|
+
$disable(): void;
|
|
27
|
+
$on(handler: (value: T) => void): void;
|
|
28
|
+
$off(handler: (value: T) => void): void;
|
|
29
|
+
$destroy(): void;
|
|
30
30
|
}
|
|
@@ -12,7 +12,7 @@ export declare class RepeatNodePrivate<IdT> extends INodePrivate {
|
|
|
12
12
|
*/
|
|
13
13
|
nodes: Map<IdT, Fragment>;
|
|
14
14
|
constructor();
|
|
15
|
-
destroy(): void;
|
|
15
|
+
$destroy(): void;
|
|
16
16
|
}
|
|
17
17
|
export interface RNO<T, IdT> extends Options {
|
|
18
18
|
slot?: (node: Fragment, value: T, index: IdT) => void;
|