@viewfly/core 1.1.9 → 1.1.10
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/bundles/index.esm.js +212 -27
- package/bundles/index.js +212 -27
- package/package.json +2 -2
package/bundles/index.esm.js
CHANGED
|
@@ -2,7 +2,12 @@ import 'reflect-metadata';
|
|
|
2
2
|
|
|
3
3
|
class ForwardRef {
|
|
4
4
|
constructor(forwardRefFn) {
|
|
5
|
-
this
|
|
5
|
+
Object.defineProperty(this, "forwardRefFn", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: forwardRefFn
|
|
10
|
+
});
|
|
6
11
|
}
|
|
7
12
|
getRef() {
|
|
8
13
|
return this.forwardRefFn();
|
|
@@ -21,9 +26,24 @@ function forwardRef(fn) {
|
|
|
21
26
|
*/
|
|
22
27
|
class Annotations {
|
|
23
28
|
constructor() {
|
|
24
|
-
this
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
Object.defineProperty(this, "classes", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true,
|
|
32
|
+
writable: true,
|
|
33
|
+
value: new Map()
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(this, "props", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
configurable: true,
|
|
38
|
+
writable: true,
|
|
39
|
+
value: new Map()
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(this, "params", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
configurable: true,
|
|
44
|
+
writable: true,
|
|
45
|
+
value: new Map()
|
|
46
|
+
});
|
|
27
47
|
}
|
|
28
48
|
setClassMetadata(token, params) {
|
|
29
49
|
this.classes.set(token, params);
|
|
@@ -110,7 +130,12 @@ function getAnnotations(target) {
|
|
|
110
130
|
|
|
111
131
|
class Scope {
|
|
112
132
|
constructor(name) {
|
|
113
|
-
this
|
|
133
|
+
Object.defineProperty(this, "name", {
|
|
134
|
+
enumerable: true,
|
|
135
|
+
configurable: true,
|
|
136
|
+
writable: true,
|
|
137
|
+
value: name
|
|
138
|
+
});
|
|
114
139
|
}
|
|
115
140
|
toString() {
|
|
116
141
|
return this.name || '[anonymous provide scope]';
|
|
@@ -134,7 +159,12 @@ const Injectable = function InjectableDecorator(options) {
|
|
|
134
159
|
/* eslint-disable-next-line */
|
|
135
160
|
class InjectionToken {
|
|
136
161
|
constructor(description) {
|
|
137
|
-
this
|
|
162
|
+
Object.defineProperty(this, "description", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
configurable: true,
|
|
165
|
+
writable: true,
|
|
166
|
+
value: description
|
|
167
|
+
});
|
|
138
168
|
}
|
|
139
169
|
toString() {
|
|
140
170
|
return this.description || '[anonymous injection token]';
|
|
@@ -236,7 +266,12 @@ const nullInjectorErrorFn = (token) => {
|
|
|
236
266
|
};
|
|
237
267
|
class NullInjector {
|
|
238
268
|
constructor() {
|
|
239
|
-
this
|
|
269
|
+
Object.defineProperty(this, "parentInjector", {
|
|
270
|
+
enumerable: true,
|
|
271
|
+
configurable: true,
|
|
272
|
+
writable: true,
|
|
273
|
+
value: null
|
|
274
|
+
});
|
|
240
275
|
}
|
|
241
276
|
/* eslint-disable-next-line */
|
|
242
277
|
get(token, notFoundValue = THROW_IF_NOT_FOUND, _) {
|
|
@@ -412,9 +447,30 @@ const provideScopeError = (token) => {
|
|
|
412
447
|
*/
|
|
413
448
|
class ReflectiveInjector {
|
|
414
449
|
constructor(parentInjector, staticProviders, scope) {
|
|
415
|
-
this
|
|
416
|
-
|
|
417
|
-
|
|
450
|
+
Object.defineProperty(this, "parentInjector", {
|
|
451
|
+
enumerable: true,
|
|
452
|
+
configurable: true,
|
|
453
|
+
writable: true,
|
|
454
|
+
value: parentInjector
|
|
455
|
+
});
|
|
456
|
+
Object.defineProperty(this, "scope", {
|
|
457
|
+
enumerable: true,
|
|
458
|
+
configurable: true,
|
|
459
|
+
writable: true,
|
|
460
|
+
value: scope
|
|
461
|
+
});
|
|
462
|
+
Object.defineProperty(this, "normalizedProviders", {
|
|
463
|
+
enumerable: true,
|
|
464
|
+
configurable: true,
|
|
465
|
+
writable: true,
|
|
466
|
+
value: void 0
|
|
467
|
+
});
|
|
468
|
+
Object.defineProperty(this, "recordValues", {
|
|
469
|
+
enumerable: true,
|
|
470
|
+
configurable: true,
|
|
471
|
+
writable: true,
|
|
472
|
+
value: new Map()
|
|
473
|
+
});
|
|
418
474
|
this.normalizedProviders = staticProviders.map(provide => {
|
|
419
475
|
return normalizeProvider(provide);
|
|
420
476
|
});
|
|
@@ -620,8 +676,18 @@ const ComponentAtomType = Symbol('Component');
|
|
|
620
676
|
|
|
621
677
|
class Listener {
|
|
622
678
|
constructor(effect) {
|
|
623
|
-
this
|
|
624
|
-
|
|
679
|
+
Object.defineProperty(this, "effect", {
|
|
680
|
+
enumerable: true,
|
|
681
|
+
configurable: true,
|
|
682
|
+
writable: true,
|
|
683
|
+
value: effect
|
|
684
|
+
});
|
|
685
|
+
Object.defineProperty(this, "destroyCallbacks", {
|
|
686
|
+
enumerable: true,
|
|
687
|
+
configurable: true,
|
|
688
|
+
writable: true,
|
|
689
|
+
value: []
|
|
690
|
+
});
|
|
625
691
|
}
|
|
626
692
|
destroy() {
|
|
627
693
|
this.destroyCallbacks.forEach(fn => fn());
|
|
@@ -732,9 +798,24 @@ function onUnmounted(callback) {
|
|
|
732
798
|
|
|
733
799
|
class DynamicRef {
|
|
734
800
|
constructor(callback) {
|
|
735
|
-
this
|
|
736
|
-
|
|
737
|
-
|
|
801
|
+
Object.defineProperty(this, "callback", {
|
|
802
|
+
enumerable: true,
|
|
803
|
+
configurable: true,
|
|
804
|
+
writable: true,
|
|
805
|
+
value: callback
|
|
806
|
+
});
|
|
807
|
+
Object.defineProperty(this, "unBindMap", {
|
|
808
|
+
enumerable: true,
|
|
809
|
+
configurable: true,
|
|
810
|
+
writable: true,
|
|
811
|
+
value: new Map()
|
|
812
|
+
});
|
|
813
|
+
Object.defineProperty(this, "targetCaches", {
|
|
814
|
+
enumerable: true,
|
|
815
|
+
configurable: true,
|
|
816
|
+
writable: true,
|
|
817
|
+
value: new Set()
|
|
818
|
+
});
|
|
738
819
|
}
|
|
739
820
|
bind(value) {
|
|
740
821
|
if (typeof value !== 'object' || value === null) {
|
|
@@ -793,6 +874,12 @@ class StaticRef extends DynamicRef {
|
|
|
793
874
|
isInit = true;
|
|
794
875
|
}
|
|
795
876
|
});
|
|
877
|
+
Object.defineProperty(this, "current", {
|
|
878
|
+
enumerable: true,
|
|
879
|
+
configurable: true,
|
|
880
|
+
writable: true,
|
|
881
|
+
value: void 0
|
|
882
|
+
});
|
|
796
883
|
Object.defineProperty(this, 'current', {
|
|
797
884
|
get() {
|
|
798
885
|
if (value === initValue) {
|
|
@@ -839,17 +926,110 @@ class Component extends ReflectiveInjector {
|
|
|
839
926
|
provide: Injector,
|
|
840
927
|
useFactory: () => this
|
|
841
928
|
}], annotation.scope);
|
|
842
|
-
this
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
this
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
929
|
+
Object.defineProperty(this, "parentComponent", {
|
|
930
|
+
enumerable: true,
|
|
931
|
+
configurable: true,
|
|
932
|
+
writable: true,
|
|
933
|
+
value: parentComponent
|
|
934
|
+
});
|
|
935
|
+
Object.defineProperty(this, "type", {
|
|
936
|
+
enumerable: true,
|
|
937
|
+
configurable: true,
|
|
938
|
+
writable: true,
|
|
939
|
+
value: type
|
|
940
|
+
});
|
|
941
|
+
Object.defineProperty(this, "props", {
|
|
942
|
+
enumerable: true,
|
|
943
|
+
configurable: true,
|
|
944
|
+
writable: true,
|
|
945
|
+
value: props
|
|
946
|
+
});
|
|
947
|
+
Object.defineProperty(this, "key", {
|
|
948
|
+
enumerable: true,
|
|
949
|
+
configurable: true,
|
|
950
|
+
writable: true,
|
|
951
|
+
value: key
|
|
952
|
+
});
|
|
953
|
+
Object.defineProperty(this, "instance", {
|
|
954
|
+
enumerable: true,
|
|
955
|
+
configurable: true,
|
|
956
|
+
writable: true,
|
|
957
|
+
value: void 0
|
|
958
|
+
});
|
|
959
|
+
Object.defineProperty(this, "changedSubComponents", {
|
|
960
|
+
enumerable: true,
|
|
961
|
+
configurable: true,
|
|
962
|
+
writable: true,
|
|
963
|
+
value: new Set()
|
|
964
|
+
});
|
|
965
|
+
// $$view!: ComponentView
|
|
966
|
+
Object.defineProperty(this, "unmountedCallbacks", {
|
|
967
|
+
enumerable: true,
|
|
968
|
+
configurable: true,
|
|
969
|
+
writable: true,
|
|
970
|
+
value: void 0
|
|
971
|
+
});
|
|
972
|
+
Object.defineProperty(this, "mountCallbacks", {
|
|
973
|
+
enumerable: true,
|
|
974
|
+
configurable: true,
|
|
975
|
+
writable: true,
|
|
976
|
+
value: void 0
|
|
977
|
+
});
|
|
978
|
+
Object.defineProperty(this, "propsChangedCallbacks", {
|
|
979
|
+
enumerable: true,
|
|
980
|
+
configurable: true,
|
|
981
|
+
writable: true,
|
|
982
|
+
value: void 0
|
|
983
|
+
});
|
|
984
|
+
Object.defineProperty(this, "updatedCallbacks", {
|
|
985
|
+
enumerable: true,
|
|
986
|
+
configurable: true,
|
|
987
|
+
writable: true,
|
|
988
|
+
value: void 0
|
|
989
|
+
});
|
|
990
|
+
Object.defineProperty(this, "updatedDestroyCallbacks", {
|
|
991
|
+
enumerable: true,
|
|
992
|
+
configurable: true,
|
|
993
|
+
writable: true,
|
|
994
|
+
value: void 0
|
|
995
|
+
});
|
|
996
|
+
Object.defineProperty(this, "propsChangedDestroyCallbacks", {
|
|
997
|
+
enumerable: true,
|
|
998
|
+
configurable: true,
|
|
999
|
+
writable: true,
|
|
1000
|
+
value: void 0
|
|
1001
|
+
});
|
|
1002
|
+
Object.defineProperty(this, "_dirty", {
|
|
1003
|
+
enumerable: true,
|
|
1004
|
+
configurable: true,
|
|
1005
|
+
writable: true,
|
|
1006
|
+
value: true
|
|
1007
|
+
});
|
|
1008
|
+
Object.defineProperty(this, "_changed", {
|
|
1009
|
+
enumerable: true,
|
|
1010
|
+
configurable: true,
|
|
1011
|
+
writable: true,
|
|
1012
|
+
value: true
|
|
1013
|
+
});
|
|
1014
|
+
Object.defineProperty(this, "isFirstRendering", {
|
|
1015
|
+
enumerable: true,
|
|
1016
|
+
configurable: true,
|
|
1017
|
+
writable: true,
|
|
1018
|
+
value: true
|
|
1019
|
+
});
|
|
1020
|
+
Object.defineProperty(this, "refs", {
|
|
1021
|
+
enumerable: true,
|
|
1022
|
+
configurable: true,
|
|
1023
|
+
writable: true,
|
|
1024
|
+
value: null
|
|
1025
|
+
});
|
|
1026
|
+
Object.defineProperty(this, "listener", {
|
|
1027
|
+
enumerable: true,
|
|
1028
|
+
configurable: true,
|
|
1029
|
+
writable: true,
|
|
1030
|
+
value: new Listener(() => {
|
|
1031
|
+
this.markAsDirtied();
|
|
1032
|
+
})
|
|
853
1033
|
});
|
|
854
1034
|
}
|
|
855
1035
|
markAsDirtied() {
|
|
@@ -1692,7 +1872,12 @@ function applyRefs(refs, nativeNode, binding) {
|
|
|
1692
1872
|
class RootComponent extends Component {
|
|
1693
1873
|
constructor(parentInjector, factory, refresh) {
|
|
1694
1874
|
super(parentInjector, factory, {});
|
|
1695
|
-
this
|
|
1875
|
+
Object.defineProperty(this, "refresh", {
|
|
1876
|
+
enumerable: true,
|
|
1877
|
+
configurable: true,
|
|
1878
|
+
writable: true,
|
|
1879
|
+
value: refresh
|
|
1880
|
+
});
|
|
1696
1881
|
}
|
|
1697
1882
|
markAsChanged(changedComponent) {
|
|
1698
1883
|
this._changed = true;
|
package/bundles/index.js
CHANGED
|
@@ -4,7 +4,12 @@ require('reflect-metadata');
|
|
|
4
4
|
|
|
5
5
|
class ForwardRef {
|
|
6
6
|
constructor(forwardRefFn) {
|
|
7
|
-
this
|
|
7
|
+
Object.defineProperty(this, "forwardRefFn", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
configurable: true,
|
|
10
|
+
writable: true,
|
|
11
|
+
value: forwardRefFn
|
|
12
|
+
});
|
|
8
13
|
}
|
|
9
14
|
getRef() {
|
|
10
15
|
return this.forwardRefFn();
|
|
@@ -23,9 +28,24 @@ function forwardRef(fn) {
|
|
|
23
28
|
*/
|
|
24
29
|
class Annotations {
|
|
25
30
|
constructor() {
|
|
26
|
-
this
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
Object.defineProperty(this, "classes", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
configurable: true,
|
|
34
|
+
writable: true,
|
|
35
|
+
value: new Map()
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(this, "props", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
configurable: true,
|
|
40
|
+
writable: true,
|
|
41
|
+
value: new Map()
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(this, "params", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
configurable: true,
|
|
46
|
+
writable: true,
|
|
47
|
+
value: new Map()
|
|
48
|
+
});
|
|
29
49
|
}
|
|
30
50
|
setClassMetadata(token, params) {
|
|
31
51
|
this.classes.set(token, params);
|
|
@@ -112,7 +132,12 @@ function getAnnotations(target) {
|
|
|
112
132
|
|
|
113
133
|
class Scope {
|
|
114
134
|
constructor(name) {
|
|
115
|
-
this
|
|
135
|
+
Object.defineProperty(this, "name", {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
configurable: true,
|
|
138
|
+
writable: true,
|
|
139
|
+
value: name
|
|
140
|
+
});
|
|
116
141
|
}
|
|
117
142
|
toString() {
|
|
118
143
|
return this.name || '[anonymous provide scope]';
|
|
@@ -136,7 +161,12 @@ const Injectable = function InjectableDecorator(options) {
|
|
|
136
161
|
/* eslint-disable-next-line */
|
|
137
162
|
class InjectionToken {
|
|
138
163
|
constructor(description) {
|
|
139
|
-
this
|
|
164
|
+
Object.defineProperty(this, "description", {
|
|
165
|
+
enumerable: true,
|
|
166
|
+
configurable: true,
|
|
167
|
+
writable: true,
|
|
168
|
+
value: description
|
|
169
|
+
});
|
|
140
170
|
}
|
|
141
171
|
toString() {
|
|
142
172
|
return this.description || '[anonymous injection token]';
|
|
@@ -238,7 +268,12 @@ const nullInjectorErrorFn = (token) => {
|
|
|
238
268
|
};
|
|
239
269
|
class NullInjector {
|
|
240
270
|
constructor() {
|
|
241
|
-
this
|
|
271
|
+
Object.defineProperty(this, "parentInjector", {
|
|
272
|
+
enumerable: true,
|
|
273
|
+
configurable: true,
|
|
274
|
+
writable: true,
|
|
275
|
+
value: null
|
|
276
|
+
});
|
|
242
277
|
}
|
|
243
278
|
/* eslint-disable-next-line */
|
|
244
279
|
get(token, notFoundValue = THROW_IF_NOT_FOUND, _) {
|
|
@@ -414,9 +449,30 @@ const provideScopeError = (token) => {
|
|
|
414
449
|
*/
|
|
415
450
|
class ReflectiveInjector {
|
|
416
451
|
constructor(parentInjector, staticProviders, scope) {
|
|
417
|
-
this
|
|
418
|
-
|
|
419
|
-
|
|
452
|
+
Object.defineProperty(this, "parentInjector", {
|
|
453
|
+
enumerable: true,
|
|
454
|
+
configurable: true,
|
|
455
|
+
writable: true,
|
|
456
|
+
value: parentInjector
|
|
457
|
+
});
|
|
458
|
+
Object.defineProperty(this, "scope", {
|
|
459
|
+
enumerable: true,
|
|
460
|
+
configurable: true,
|
|
461
|
+
writable: true,
|
|
462
|
+
value: scope
|
|
463
|
+
});
|
|
464
|
+
Object.defineProperty(this, "normalizedProviders", {
|
|
465
|
+
enumerable: true,
|
|
466
|
+
configurable: true,
|
|
467
|
+
writable: true,
|
|
468
|
+
value: void 0
|
|
469
|
+
});
|
|
470
|
+
Object.defineProperty(this, "recordValues", {
|
|
471
|
+
enumerable: true,
|
|
472
|
+
configurable: true,
|
|
473
|
+
writable: true,
|
|
474
|
+
value: new Map()
|
|
475
|
+
});
|
|
420
476
|
this.normalizedProviders = staticProviders.map(provide => {
|
|
421
477
|
return normalizeProvider(provide);
|
|
422
478
|
});
|
|
@@ -622,8 +678,18 @@ const ComponentAtomType = Symbol('Component');
|
|
|
622
678
|
|
|
623
679
|
class Listener {
|
|
624
680
|
constructor(effect) {
|
|
625
|
-
this
|
|
626
|
-
|
|
681
|
+
Object.defineProperty(this, "effect", {
|
|
682
|
+
enumerable: true,
|
|
683
|
+
configurable: true,
|
|
684
|
+
writable: true,
|
|
685
|
+
value: effect
|
|
686
|
+
});
|
|
687
|
+
Object.defineProperty(this, "destroyCallbacks", {
|
|
688
|
+
enumerable: true,
|
|
689
|
+
configurable: true,
|
|
690
|
+
writable: true,
|
|
691
|
+
value: []
|
|
692
|
+
});
|
|
627
693
|
}
|
|
628
694
|
destroy() {
|
|
629
695
|
this.destroyCallbacks.forEach(fn => fn());
|
|
@@ -734,9 +800,24 @@ function onUnmounted(callback) {
|
|
|
734
800
|
|
|
735
801
|
class DynamicRef {
|
|
736
802
|
constructor(callback) {
|
|
737
|
-
this
|
|
738
|
-
|
|
739
|
-
|
|
803
|
+
Object.defineProperty(this, "callback", {
|
|
804
|
+
enumerable: true,
|
|
805
|
+
configurable: true,
|
|
806
|
+
writable: true,
|
|
807
|
+
value: callback
|
|
808
|
+
});
|
|
809
|
+
Object.defineProperty(this, "unBindMap", {
|
|
810
|
+
enumerable: true,
|
|
811
|
+
configurable: true,
|
|
812
|
+
writable: true,
|
|
813
|
+
value: new Map()
|
|
814
|
+
});
|
|
815
|
+
Object.defineProperty(this, "targetCaches", {
|
|
816
|
+
enumerable: true,
|
|
817
|
+
configurable: true,
|
|
818
|
+
writable: true,
|
|
819
|
+
value: new Set()
|
|
820
|
+
});
|
|
740
821
|
}
|
|
741
822
|
bind(value) {
|
|
742
823
|
if (typeof value !== 'object' || value === null) {
|
|
@@ -795,6 +876,12 @@ class StaticRef extends DynamicRef {
|
|
|
795
876
|
isInit = true;
|
|
796
877
|
}
|
|
797
878
|
});
|
|
879
|
+
Object.defineProperty(this, "current", {
|
|
880
|
+
enumerable: true,
|
|
881
|
+
configurable: true,
|
|
882
|
+
writable: true,
|
|
883
|
+
value: void 0
|
|
884
|
+
});
|
|
798
885
|
Object.defineProperty(this, 'current', {
|
|
799
886
|
get() {
|
|
800
887
|
if (value === initValue) {
|
|
@@ -841,17 +928,110 @@ class Component extends ReflectiveInjector {
|
|
|
841
928
|
provide: Injector,
|
|
842
929
|
useFactory: () => this
|
|
843
930
|
}], annotation.scope);
|
|
844
|
-
this
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
this
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
931
|
+
Object.defineProperty(this, "parentComponent", {
|
|
932
|
+
enumerable: true,
|
|
933
|
+
configurable: true,
|
|
934
|
+
writable: true,
|
|
935
|
+
value: parentComponent
|
|
936
|
+
});
|
|
937
|
+
Object.defineProperty(this, "type", {
|
|
938
|
+
enumerable: true,
|
|
939
|
+
configurable: true,
|
|
940
|
+
writable: true,
|
|
941
|
+
value: type
|
|
942
|
+
});
|
|
943
|
+
Object.defineProperty(this, "props", {
|
|
944
|
+
enumerable: true,
|
|
945
|
+
configurable: true,
|
|
946
|
+
writable: true,
|
|
947
|
+
value: props
|
|
948
|
+
});
|
|
949
|
+
Object.defineProperty(this, "key", {
|
|
950
|
+
enumerable: true,
|
|
951
|
+
configurable: true,
|
|
952
|
+
writable: true,
|
|
953
|
+
value: key
|
|
954
|
+
});
|
|
955
|
+
Object.defineProperty(this, "instance", {
|
|
956
|
+
enumerable: true,
|
|
957
|
+
configurable: true,
|
|
958
|
+
writable: true,
|
|
959
|
+
value: void 0
|
|
960
|
+
});
|
|
961
|
+
Object.defineProperty(this, "changedSubComponents", {
|
|
962
|
+
enumerable: true,
|
|
963
|
+
configurable: true,
|
|
964
|
+
writable: true,
|
|
965
|
+
value: new Set()
|
|
966
|
+
});
|
|
967
|
+
// $$view!: ComponentView
|
|
968
|
+
Object.defineProperty(this, "unmountedCallbacks", {
|
|
969
|
+
enumerable: true,
|
|
970
|
+
configurable: true,
|
|
971
|
+
writable: true,
|
|
972
|
+
value: void 0
|
|
973
|
+
});
|
|
974
|
+
Object.defineProperty(this, "mountCallbacks", {
|
|
975
|
+
enumerable: true,
|
|
976
|
+
configurable: true,
|
|
977
|
+
writable: true,
|
|
978
|
+
value: void 0
|
|
979
|
+
});
|
|
980
|
+
Object.defineProperty(this, "propsChangedCallbacks", {
|
|
981
|
+
enumerable: true,
|
|
982
|
+
configurable: true,
|
|
983
|
+
writable: true,
|
|
984
|
+
value: void 0
|
|
985
|
+
});
|
|
986
|
+
Object.defineProperty(this, "updatedCallbacks", {
|
|
987
|
+
enumerable: true,
|
|
988
|
+
configurable: true,
|
|
989
|
+
writable: true,
|
|
990
|
+
value: void 0
|
|
991
|
+
});
|
|
992
|
+
Object.defineProperty(this, "updatedDestroyCallbacks", {
|
|
993
|
+
enumerable: true,
|
|
994
|
+
configurable: true,
|
|
995
|
+
writable: true,
|
|
996
|
+
value: void 0
|
|
997
|
+
});
|
|
998
|
+
Object.defineProperty(this, "propsChangedDestroyCallbacks", {
|
|
999
|
+
enumerable: true,
|
|
1000
|
+
configurable: true,
|
|
1001
|
+
writable: true,
|
|
1002
|
+
value: void 0
|
|
1003
|
+
});
|
|
1004
|
+
Object.defineProperty(this, "_dirty", {
|
|
1005
|
+
enumerable: true,
|
|
1006
|
+
configurable: true,
|
|
1007
|
+
writable: true,
|
|
1008
|
+
value: true
|
|
1009
|
+
});
|
|
1010
|
+
Object.defineProperty(this, "_changed", {
|
|
1011
|
+
enumerable: true,
|
|
1012
|
+
configurable: true,
|
|
1013
|
+
writable: true,
|
|
1014
|
+
value: true
|
|
1015
|
+
});
|
|
1016
|
+
Object.defineProperty(this, "isFirstRendering", {
|
|
1017
|
+
enumerable: true,
|
|
1018
|
+
configurable: true,
|
|
1019
|
+
writable: true,
|
|
1020
|
+
value: true
|
|
1021
|
+
});
|
|
1022
|
+
Object.defineProperty(this, "refs", {
|
|
1023
|
+
enumerable: true,
|
|
1024
|
+
configurable: true,
|
|
1025
|
+
writable: true,
|
|
1026
|
+
value: null
|
|
1027
|
+
});
|
|
1028
|
+
Object.defineProperty(this, "listener", {
|
|
1029
|
+
enumerable: true,
|
|
1030
|
+
configurable: true,
|
|
1031
|
+
writable: true,
|
|
1032
|
+
value: new Listener(() => {
|
|
1033
|
+
this.markAsDirtied();
|
|
1034
|
+
})
|
|
855
1035
|
});
|
|
856
1036
|
}
|
|
857
1037
|
markAsDirtied() {
|
|
@@ -1694,7 +1874,12 @@ function applyRefs(refs, nativeNode, binding) {
|
|
|
1694
1874
|
class RootComponent extends Component {
|
|
1695
1875
|
constructor(parentInjector, factory, refresh) {
|
|
1696
1876
|
super(parentInjector, factory, {});
|
|
1697
|
-
this
|
|
1877
|
+
Object.defineProperty(this, "refresh", {
|
|
1878
|
+
enumerable: true,
|
|
1879
|
+
configurable: true,
|
|
1880
|
+
writable: true,
|
|
1881
|
+
value: refresh
|
|
1882
|
+
});
|
|
1698
1883
|
}
|
|
1699
1884
|
markAsChanged(changedComponent) {
|
|
1700
1885
|
this._changed = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viewfly/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"description": "Viewfly is a simple and easy-to-use JavaScript framework with an intuitive development experience.",
|
|
5
5
|
"main": "./bundles/index.js",
|
|
6
6
|
"module": "./bundles/index.esm.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"bugs": {
|
|
51
51
|
"url": "https://github.com/viewfly/viewfly.git/issues"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "08cdabe11ffa8fb6c9c4bc53898881af2396f735",
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"reflect-metadata": "^0.2.2"
|
|
56
56
|
}
|