@fluffjs/fluff 0.1.18 → 0.2.1
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/decorators/InputProperty.d.ts +1 -0
- package/decorators/InputProperty.js +4 -0
- package/decorators/LinkedProperty.d.ts +1 -0
- package/decorators/LinkedProperty.js +4 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +1 -1
- package/utils/Property.d.ts +2 -0
- package/utils/Property.js +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function InputProperty(): PropertyDecorator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function LinkedProperty(_propertyName: string): MethodDecorator;
|
package/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export type { ComponentConfig, ComponentMetadata } from './decorators/Component.
|
|
|
3
3
|
export { HostBinding } from './decorators/HostBinding.js';
|
|
4
4
|
export { HostListener } from './decorators/HostListener.js';
|
|
5
5
|
export { Input } from './decorators/Input.js';
|
|
6
|
+
export { LinkedProperty } from './decorators/LinkedProperty.js';
|
|
6
7
|
export { Output } from './decorators/Output.js';
|
|
7
8
|
export { getPipeTransform, Pipe } from './decorators/Pipe.js';
|
|
8
9
|
export type { PipeTransform } from './decorators/Pipe.js';
|
package/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export { Component } from './decorators/Component.js';
|
|
|
2
2
|
export { HostBinding } from './decorators/HostBinding.js';
|
|
3
3
|
export { HostListener } from './decorators/HostListener.js';
|
|
4
4
|
export { Input } from './decorators/Input.js';
|
|
5
|
+
export { LinkedProperty } from './decorators/LinkedProperty.js';
|
|
5
6
|
export { Output } from './decorators/Output.js';
|
|
6
7
|
export { getPipeTransform, Pipe } from './decorators/Pipe.js';
|
|
7
8
|
export { Reactive } from './decorators/Reactive.js';
|
package/package.json
CHANGED
package/utils/Property.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare class Property<T> {
|
|
|
5
5
|
readonly onChange: Publisher<T>;
|
|
6
6
|
readonly onInboundChange: Publisher<T>;
|
|
7
7
|
readonly onOutboundChange: Publisher<T>;
|
|
8
|
+
readonly onMetadataChange: Publisher<T>;
|
|
8
9
|
private value?;
|
|
9
10
|
private committed;
|
|
10
11
|
private _isChanging;
|
|
@@ -15,6 +16,7 @@ export declare class Property<T> {
|
|
|
15
16
|
initialValue: T;
|
|
16
17
|
propertyName?: string;
|
|
17
18
|
} | T);
|
|
19
|
+
prop(): Property<T> | undefined;
|
|
18
20
|
setValue(val: T | Property<T>, inbound?: boolean, commit?: boolean): void;
|
|
19
21
|
private linkToParent;
|
|
20
22
|
private setValueInternal;
|
package/utils/Property.js
CHANGED
|
@@ -16,6 +16,7 @@ export class Property {
|
|
|
16
16
|
onChange = new Publisher();
|
|
17
17
|
onInboundChange = new Publisher();
|
|
18
18
|
onOutboundChange = new Publisher();
|
|
19
|
+
onMetadataChange = new Publisher();
|
|
19
20
|
value;
|
|
20
21
|
committed = true;
|
|
21
22
|
_isChanging = false;
|
|
@@ -35,6 +36,9 @@ export class Property {
|
|
|
35
36
|
this.value = options;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
39
|
+
prop() {
|
|
40
|
+
return this._parentProperty;
|
|
41
|
+
}
|
|
38
42
|
setValue(val, inbound = false, commit = true) {
|
|
39
43
|
if (val instanceof Property) {
|
|
40
44
|
this.linkToParent(val);
|