@joist/observable 2.0.0-alpha.1 → 2.0.0-alpha.13
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 +36 -8
- package/package.json +2 -2
- package/target/build/lib/attribute.d.ts +8 -0
- package/target/build/lib/attribute.js +47 -0
- package/target/build/lib/observable.d.ts +7 -4
- package/target/build/lib/observable.js +63 -21
- package/target/build/lib.d.ts +2 -1
- package/target/build/lib.js +1 -1
- package/target/build/lib/observable.js.map +0 -1
- package/target/build/lib.js.map +0 -1
package/README.md
CHANGED
|
@@ -6,16 +6,16 @@ Decorating a class with `@observable` means that instances of that class will BE
|
|
|
6
6
|
#### Installation:
|
|
7
7
|
|
|
8
8
|
```BASH
|
|
9
|
-
npm i @joist/observable@
|
|
9
|
+
npm i @joist/observable@canary
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
#### Example:
|
|
13
13
|
|
|
14
14
|
```TS
|
|
15
|
-
import { observable, observer,
|
|
15
|
+
import { observable, observer, OnPropertyChanged, Changes } from '@joist/observable';
|
|
16
16
|
|
|
17
17
|
@observable
|
|
18
|
-
class State implements
|
|
18
|
+
class State implements OnPropertyChanged {
|
|
19
19
|
// Changes to these will trigger callback
|
|
20
20
|
@observe todos: string[] = [];
|
|
21
21
|
@observe userName?: string;
|
|
@@ -23,7 +23,7 @@ class State implements OnChange {
|
|
|
23
23
|
// changes to this will not
|
|
24
24
|
someValue: boolean = false;
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
onPropertyChanged(changes: Changes) {
|
|
27
27
|
console.log(changes);
|
|
28
28
|
// { todos: { value: ['Build Shit'], previousValue: [] }, userName: { value: 'Danny Blue', previousValue: undefined } }
|
|
29
29
|
}
|
|
@@ -40,7 +40,7 @@ state.userName = 'Danny Blue'
|
|
|
40
40
|
If you want to externally monitor your class for changes you can extend event target and dispatch events. (available in both node and the browser)
|
|
41
41
|
|
|
42
42
|
```TS
|
|
43
|
-
import { observable, observer,
|
|
43
|
+
import { observable, observer, OnPropertyChanged, Changes } from '@joist/observable';
|
|
44
44
|
|
|
45
45
|
class StateChangeEvent extends Event {
|
|
46
46
|
consetructor(public changes: Changes) {
|
|
@@ -49,7 +49,7 @@ class StateChangeEvent extends Event {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
@observable
|
|
52
|
-
class State extends EventTarget implements
|
|
52
|
+
class State extends EventTarget implements OnPropertyChanged {
|
|
53
53
|
// Changes to these will trigger callback
|
|
54
54
|
@observe todos: string[] = [];
|
|
55
55
|
@observe userName?: string;
|
|
@@ -57,8 +57,8 @@ class State extends EventTarget implements OnChange {
|
|
|
57
57
|
// changes to this will not
|
|
58
58
|
someValue: boolean = false;
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
this.dispatchEvent(new StateChangeEvent());
|
|
60
|
+
onPropertyChanged(changes: Changes) {
|
|
61
|
+
this.dispatchEvent(new StateChangeEvent(changes));
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -71,3 +71,31 @@ state.addEventListener('statechange', (e) => {
|
|
|
71
71
|
state.todos = [...state.todos, 'Build Shit'];
|
|
72
72
|
state.userName = 'Danny Blue'
|
|
73
73
|
```
|
|
74
|
+
|
|
75
|
+
#### Attributes
|
|
76
|
+
|
|
77
|
+
If you are using @observable with custom elements it is very likely that you will want to read from and write to attributes.
|
|
78
|
+
Joist accounts for this by giving you an `@attr` decorator.
|
|
79
|
+
|
|
80
|
+
```TS
|
|
81
|
+
import { observable, observe, attr} from '@joist/observable';
|
|
82
|
+
|
|
83
|
+
@observable
|
|
84
|
+
class TestElement extends HTMLElement {
|
|
85
|
+
// reads as a string and writes directly to the name attribute
|
|
86
|
+
@observe @attr name = '';
|
|
87
|
+
|
|
88
|
+
// reads as a number and writes back a string
|
|
89
|
+
@observe
|
|
90
|
+
@attr({ read: Number })
|
|
91
|
+
count: number = 0;
|
|
92
|
+
|
|
93
|
+
// reads as a Date object and writes back a string
|
|
94
|
+
@observe
|
|
95
|
+
@attr({
|
|
96
|
+
read: (val: string) => new Date(val),
|
|
97
|
+
write: (val: Date) => val.toString()
|
|
98
|
+
})
|
|
99
|
+
count: number = 0;
|
|
100
|
+
}
|
|
101
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joist/observable",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.13",
|
|
4
4
|
"main": "./target/build/lib.js",
|
|
5
5
|
"module": "./target/build/lib.js",
|
|
6
6
|
"exports": {
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"test": "tsc -p tsconfig.test.json && wtr --config ../../wtr.config.mjs --port 8002",
|
|
35
35
|
"build": "tsc -p tsconfig.build.json"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "e9d8689c31099c04f23e0511270f45eca6ae4cea"
|
|
38
38
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function getObservableAttributes(c: typeof HTMLElement): Array<string>;
|
|
2
|
+
export declare function getAttributeParsers<T extends typeof HTMLElement>(c: T): Record<string, AttributeParser>;
|
|
3
|
+
export interface AttributeParser {
|
|
4
|
+
read(val: string): any;
|
|
5
|
+
write(val: unknown): string;
|
|
6
|
+
}
|
|
7
|
+
export declare function attr<T extends HTMLElement>(p: Partial<AttributeParser>): (t: T, key: string) => void;
|
|
8
|
+
export declare function attr<T extends HTMLElement>(t: T, key: string): void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export function getObservableAttributes(c) {
|
|
2
|
+
return Reflect.get(c, 'observedAttributes') || [];
|
|
3
|
+
}
|
|
4
|
+
function defaultRead(val) {
|
|
5
|
+
// if a boolean assume such
|
|
6
|
+
if (val === 'true' || val === 'false') {
|
|
7
|
+
return val === 'true';
|
|
8
|
+
}
|
|
9
|
+
return val;
|
|
10
|
+
}
|
|
11
|
+
export function getAttributeParsers(c) {
|
|
12
|
+
const parsers = Reflect.get(c, 'attributeParsers') || {};
|
|
13
|
+
return parsers;
|
|
14
|
+
}
|
|
15
|
+
export function attr(targetOrParser, key) {
|
|
16
|
+
if (targetOrParser instanceof HTMLElement) {
|
|
17
|
+
return defineAttribute(targetOrParser, key);
|
|
18
|
+
}
|
|
19
|
+
return (target, key) => {
|
|
20
|
+
const parser = targetOrParser;
|
|
21
|
+
defineAttribute(target, key);
|
|
22
|
+
const attributeParsers = Reflect.get(target.constructor, 'attributeParsers');
|
|
23
|
+
attributeParsers[key].read = parser.read || attributeParsers[key].read;
|
|
24
|
+
attributeParsers[key].write = parser.write || attributeParsers[key].write;
|
|
25
|
+
Reflect.set(target.constructor, 'attributeParsers', attributeParsers);
|
|
26
|
+
return void 0;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function defineAttribute(target, key) {
|
|
30
|
+
const observedAttributes = Reflect.get(target.constructor, 'observedAttributes');
|
|
31
|
+
if (observedAttributes) {
|
|
32
|
+
observedAttributes.push(key);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
Reflect.set(target.constructor, 'observedAttributes', [key]);
|
|
36
|
+
}
|
|
37
|
+
const attributeParsers = Reflect.get(target.constructor, 'attributeParsers');
|
|
38
|
+
if (attributeParsers) {
|
|
39
|
+
attributeParsers[key] = { read: defaultRead, write: String };
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
const attributeParsers = {};
|
|
43
|
+
attributeParsers[key] = { read: defaultRead, write: String };
|
|
44
|
+
Reflect.set(target.constructor, 'attributeParsers', attributeParsers);
|
|
45
|
+
}
|
|
46
|
+
return void 0;
|
|
47
|
+
}
|
|
@@ -5,16 +5,16 @@ export declare class Change<T = any> {
|
|
|
5
5
|
constructor(value: T, previousValue: T | undefined, firstChange: boolean);
|
|
6
6
|
}
|
|
7
7
|
export declare type Changes = Record<string | symbol, Change>;
|
|
8
|
-
export interface
|
|
9
|
-
|
|
8
|
+
export interface OnPropertyChanged {
|
|
9
|
+
onPropertyChanged(changes: Changes): void;
|
|
10
10
|
}
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function getObservableProperties(c: any): Array<string | symbol>;
|
|
12
12
|
export interface ObservableBase {
|
|
13
13
|
propChanges: Changes;
|
|
14
14
|
propChange: Promise<void> | null;
|
|
15
15
|
initializedChanges: Set<string | symbol>;
|
|
16
|
-
onChange?: (changes: Changes) => void;
|
|
17
16
|
definePropChange(key: string | symbol, propChange: Change): Promise<void>;
|
|
17
|
+
onPropertyChanged?(changes: Changes): void;
|
|
18
18
|
}
|
|
19
19
|
export declare function observe(target: any, key: string): void;
|
|
20
20
|
export declare function observable<T extends new (...args: any[]) => any>(Base: T): {
|
|
@@ -24,6 +24,9 @@ export declare function observable<T extends new (...args: any[]) => any>(Base:
|
|
|
24
24
|
propChange: Promise<void> | null;
|
|
25
25
|
initializedChanges: Set<string | symbol>;
|
|
26
26
|
definePropChange: typeof definePropChange;
|
|
27
|
+
connectedCallback(this: HTMLElement & any): void;
|
|
28
|
+
attributeChangedCallback(this: HTMLElement & any, name: string, oldVal: string, newVal: string): void;
|
|
29
|
+
onPropertyChanged(changes: Changes): void;
|
|
27
30
|
};
|
|
28
31
|
} & T;
|
|
29
32
|
declare function definePropChange(this: ObservableBase, key: string | symbol, propChange: Change): Promise<void>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getAttributeParsers, getObservableAttributes } from './attribute';
|
|
1
2
|
export class Change {
|
|
2
3
|
constructor(value, previousValue, firstChange) {
|
|
3
4
|
this.value = value;
|
|
@@ -5,17 +6,19 @@ export class Change {
|
|
|
5
6
|
this.firstChange = firstChange;
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
const PROPERTY_KEY = 'observedProperties';
|
|
10
|
+
export function getObservableProperties(c) {
|
|
11
|
+
return c[PROPERTY_KEY] || [];
|
|
10
12
|
}
|
|
11
|
-
const PROPERTY_KEY = 'properties';
|
|
12
13
|
export function observe(target, key) {
|
|
13
|
-
target[PROPERTY_KEY] = target[PROPERTY_KEY] ||
|
|
14
|
-
target[PROPERTY_KEY]
|
|
14
|
+
target.constructor[PROPERTY_KEY] = target.constructor[PROPERTY_KEY] || [];
|
|
15
|
+
target.constructor[PROPERTY_KEY].push(key);
|
|
15
16
|
}
|
|
16
17
|
export function observable(Base) {
|
|
17
|
-
const
|
|
18
|
-
const
|
|
18
|
+
const properties = getObservableProperties(Base);
|
|
19
|
+
const attributes = getObservableAttributes(Base);
|
|
20
|
+
const parsers = getAttributeParsers(Base);
|
|
21
|
+
const descriptors = createPropertyDescripors(properties);
|
|
19
22
|
return class Observable extends Base {
|
|
20
23
|
constructor(...args) {
|
|
21
24
|
super(...args);
|
|
@@ -23,25 +26,65 @@ export function observable(Base) {
|
|
|
23
26
|
this.propChange = null;
|
|
24
27
|
this.initializedChanges = new Set();
|
|
25
28
|
this.definePropChange = definePropChange;
|
|
26
|
-
for (let
|
|
27
|
-
Reflect.set(this, createPrivateKey(
|
|
29
|
+
for (let prop in descriptors) {
|
|
30
|
+
Reflect.set(this, createPrivateKey(prop), Reflect.get(this, prop));
|
|
31
|
+
}
|
|
32
|
+
Object.defineProperties(this, descriptors);
|
|
33
|
+
}
|
|
34
|
+
connectedCallback() {
|
|
35
|
+
attributes.forEach((key) => {
|
|
36
|
+
const { write } = parsers[key];
|
|
37
|
+
const val = this.getAttribute(key);
|
|
38
|
+
if (val === null) {
|
|
39
|
+
const propVal = Reflect.get(this, key);
|
|
40
|
+
const parsedVal = write(propVal);
|
|
41
|
+
if (propVal !== undefined && propVal !== null && propVal !== '' && val !== parsedVal) {
|
|
42
|
+
this.setAttribute(key, parsedVal);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
if (super.connectedCallback) {
|
|
47
|
+
super.connectedCallback();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
attributeChangedCallback(name, oldVal, newVal) {
|
|
51
|
+
const { read } = parsers[name];
|
|
52
|
+
Reflect.set(this, name, read(newVal));
|
|
53
|
+
if (super.attributeChangedCallback) {
|
|
54
|
+
super.attributeChangedCallback(name, oldVal, newVal);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
onPropertyChanged(changes) {
|
|
58
|
+
if (this instanceof HTMLElement) {
|
|
59
|
+
for (let change in changes) {
|
|
60
|
+
if (attributes.includes(change)) {
|
|
61
|
+
const { write } = parsers[change];
|
|
62
|
+
const value = write(changes[change].value);
|
|
63
|
+
if (value !== this.getAttribute(change)) {
|
|
64
|
+
this.setAttribute(change, write(changes[change].value));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (super.onPropertyChanged) {
|
|
70
|
+
super.onPropertyChanged(changes);
|
|
28
71
|
}
|
|
29
|
-
Object.defineProperties(this, props);
|
|
30
72
|
}
|
|
31
73
|
};
|
|
32
74
|
}
|
|
33
75
|
function createPrivateKey(key) {
|
|
34
|
-
return `__${key}`;
|
|
76
|
+
return `__${key.toString()}`;
|
|
35
77
|
}
|
|
36
|
-
function createPropertyDescripors(
|
|
37
|
-
const
|
|
38
|
-
for (let
|
|
39
|
-
const
|
|
40
|
-
|
|
78
|
+
function createPropertyDescripors(props) {
|
|
79
|
+
const descriptors = {};
|
|
80
|
+
for (let i = 0; i < props.length; i++) {
|
|
81
|
+
const prop = props[i];
|
|
82
|
+
const privateKey = createPrivateKey(prop);
|
|
83
|
+
descriptors[prop] = {
|
|
41
84
|
set(val) {
|
|
42
85
|
const prevVal = Reflect.get(this, privateKey);
|
|
43
86
|
if (prevVal !== val) {
|
|
44
|
-
this.definePropChange(
|
|
87
|
+
this.definePropChange(prop, new Change(val, prevVal, true));
|
|
45
88
|
}
|
|
46
89
|
return Reflect.set(this, privateKey, val);
|
|
47
90
|
},
|
|
@@ -50,7 +93,7 @@ function createPropertyDescripors(defs) {
|
|
|
50
93
|
},
|
|
51
94
|
};
|
|
52
95
|
}
|
|
53
|
-
return
|
|
96
|
+
return descriptors;
|
|
54
97
|
}
|
|
55
98
|
function definePropChange(key, propChange) {
|
|
56
99
|
if (!this.propChanges[key]) {
|
|
@@ -66,8 +109,8 @@ function definePropChange(key, propChange) {
|
|
|
66
109
|
this.propChanges[change].firstChange = !this.initializedChanges.has(change);
|
|
67
110
|
this.initializedChanges.add(change);
|
|
68
111
|
}
|
|
69
|
-
if (this.
|
|
70
|
-
this.
|
|
112
|
+
if (this.onPropertyChanged) {
|
|
113
|
+
this.onPropertyChanged(this.propChanges);
|
|
71
114
|
}
|
|
72
115
|
// reset for next time
|
|
73
116
|
this.propChanges = {};
|
|
@@ -76,4 +119,3 @@ function definePropChange(key, propChange) {
|
|
|
76
119
|
}
|
|
77
120
|
return this.propChange;
|
|
78
121
|
}
|
|
79
|
-
//# sourceMappingURL=observable.js.map
|
package/target/build/lib.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { observable, Change,
|
|
1
|
+
export { observable, Change, OnPropertyChanged, observe, Changes } from './lib/observable';
|
|
2
|
+
export { attr } from './lib/attribute';
|
package/target/build/lib.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { observable, Change, observe } from './lib/observable';
|
|
2
|
-
|
|
2
|
+
export { attr } from './lib/attribute';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"observable.js","sourceRoot":"","sources":["../../../lib/observable.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,MAAM;IACjB,YAAmB,KAAQ,EAAS,aAA4B,EAAS,WAAoB;QAA1E,UAAK,GAAL,KAAK,CAAG;QAAS,kBAAa,GAAb,aAAa,CAAe;QAAS,gBAAW,GAAX,WAAW,CAAS;IAAG,CAAC;CAClG;AAQD,MAAM,UAAU,gBAAgB,CAAC,CAAM;IACrC,OAAO,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,SAAS,CAAC,UAAU,IAAI,EAAE,CAAC;AACtD,CAAC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