@rs-x/state-manager 0.4.21 → 1.0.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/dist/index.d.ts +69 -65
- package/dist/index.js +331 -174
- package/package.json +5 -4
- package/readme.md +26 -12
package/dist/index.js
CHANGED
|
@@ -61,8 +61,8 @@ var AbstractObserver = class {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
// lib/grouped-change-subscriptions-for-context-manager.ts
|
|
64
|
-
import {
|
|
65
|
-
var GroupedChangeSubscriptionsForContextManager = class extends
|
|
64
|
+
import { GuidKeyedInstanceFactory } from "@rs-x/core";
|
|
65
|
+
var GroupedChangeSubscriptionsForContextManager = class extends GuidKeyedInstanceFactory {
|
|
66
66
|
static {
|
|
67
67
|
__name(this, "GroupedChangeSubscriptionsForContextManager");
|
|
68
68
|
}
|
|
@@ -317,7 +317,6 @@ var RsXStateManagerInjectionTokens = {
|
|
|
317
317
|
IMapProxyFactory: Symbol("IMapProxyFactory"),
|
|
318
318
|
ISetProxyFactory: Symbol("ISetProxyFactory"),
|
|
319
319
|
IDateProxyFactory: Symbol("IDateProxyFactory"),
|
|
320
|
-
IProxyRegistry: Symbol("IProxyRegistry"),
|
|
321
320
|
IPromiseProxyFactory: Symbol("IPromiseProxyFactory"),
|
|
322
321
|
IObservableProxyFactory: Symbol("IObservableProxyFactory"),
|
|
323
322
|
IObjectPropertyObserverProxyPairManager: Symbol("IObjectPropertyObserverProxyPairManager"),
|
|
@@ -747,7 +746,7 @@ ObjectObserverProxyPairFactoryProvider = _ts_decorate8([
|
|
|
747
746
|
], ObjectObserverProxyPairFactoryProvider);
|
|
748
747
|
|
|
749
748
|
// lib/object-observer/object-observer-proxy-pair-manager.ts
|
|
750
|
-
import { Inject as Inject8, Injectable as Injectable9, InvalidOperationException, RsXCoreInjectionTokens as RsXCoreInjectionTokens5,
|
|
749
|
+
import { GuidKeyedInstanceFactory as GuidKeyedInstanceFactory2, Inject as Inject8, Injectable as Injectable9, InvalidOperationException, RsXCoreInjectionTokens as RsXCoreInjectionTokens5, Type as Type4 } from "@rs-x/core";
|
|
751
750
|
function _ts_decorate9(decorators, target, key, desc) {
|
|
752
751
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
753
752
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -765,7 +764,7 @@ function _ts_param9(paramIndex, decorator) {
|
|
|
765
764
|
};
|
|
766
765
|
}
|
|
767
766
|
__name(_ts_param9, "_ts_param");
|
|
768
|
-
var ObjectObserverProxyPairManager = class extends
|
|
767
|
+
var ObjectObserverProxyPairManager = class extends GuidKeyedInstanceFactory2 {
|
|
769
768
|
static {
|
|
770
769
|
__name(this, "ObjectObserverProxyPairManager");
|
|
771
770
|
}
|
|
@@ -800,7 +799,7 @@ var ObjectObserverProxyPairManager = class extends SingletonFactoryWithGuid2 {
|
|
|
800
799
|
ObjectObserverProxyPairManager = _ts_decorate9([
|
|
801
800
|
Injectable9(),
|
|
802
801
|
_ts_param9(0, Inject8(RsXStateManagerInjectionTokens.IObjectObserverProxyPairFactoryProviderFactory)),
|
|
803
|
-
_ts_param9(1, Inject8(
|
|
802
|
+
_ts_param9(1, Inject8(RsXCoreInjectionTokens5.IProxyRegistry)),
|
|
804
803
|
_ts_param9(2, Inject8(RsXCoreInjectionTokens5.IGuidFactory)),
|
|
805
804
|
_ts_metadata9("design:type", Function),
|
|
806
805
|
_ts_metadata9("design:paramtypes", [
|
|
@@ -811,7 +810,7 @@ ObjectObserverProxyPairManager = _ts_decorate9([
|
|
|
811
810
|
], ObjectObserverProxyPairManager);
|
|
812
811
|
|
|
813
812
|
// lib/object-property-observer-proxy-pair-manager.ts
|
|
814
|
-
import { Inject as Inject9, Injectable as Injectable10, MultiInject as MultiInject2, RsXCoreInjectionTokens as RsXCoreInjectionTokens6,
|
|
813
|
+
import { GuidKeyedInstanceFactory as GuidKeyedInstanceFactory3, Inject as Inject9, Injectable as Injectable10, KeyedInstanceFactory, MultiInject as MultiInject2, RsXCoreInjectionTokens as RsXCoreInjectionTokens6, Type as Type5, UnsupportedException } from "@rs-x/core";
|
|
815
814
|
function _ts_decorate10(decorators, target, key, desc) {
|
|
816
815
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
817
816
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -829,7 +828,7 @@ function _ts_param10(paramIndex, decorator) {
|
|
|
829
828
|
};
|
|
830
829
|
}
|
|
831
830
|
__name(_ts_param10, "_ts_param");
|
|
832
|
-
var PropertyObserverProxyPairManager = class PropertyObserverProxyPairManager2 extends
|
|
831
|
+
var PropertyObserverProxyPairManager = class PropertyObserverProxyPairManager2 extends GuidKeyedInstanceFactory3 {
|
|
833
832
|
static {
|
|
834
833
|
__name(this, "PropertyObserverProxyPairManager");
|
|
835
834
|
}
|
|
@@ -868,7 +867,7 @@ var PropertyObserverProxyPairManager = class PropertyObserverProxyPairManager2 e
|
|
|
868
867
|
return observerFactory;
|
|
869
868
|
}
|
|
870
869
|
};
|
|
871
|
-
var ObjectPropertyObserverProxyPairManager = class extends
|
|
870
|
+
var ObjectPropertyObserverProxyPairManager = class extends KeyedInstanceFactory {
|
|
872
871
|
static {
|
|
873
872
|
__name(this, "ObjectPropertyObserverProxyPairManager");
|
|
874
873
|
}
|
|
@@ -899,7 +898,7 @@ ObjectPropertyObserverProxyPairManager = _ts_decorate10([
|
|
|
899
898
|
], ObjectPropertyObserverProxyPairManager);
|
|
900
899
|
|
|
901
900
|
// lib/property-observer/factories/collection-item/collection-item-observer-manager.ts
|
|
902
|
-
import { Inject as Inject10, Injectable as Injectable11,
|
|
901
|
+
import { Inject as Inject10, Injectable as Injectable11, KeyedInstanceFactory as KeyedInstanceFactory2, RsXCoreInjectionTokens as RsXCoreInjectionTokens7 } from "@rs-x/core";
|
|
903
902
|
function _ts_decorate11(decorators, target, key, desc) {
|
|
904
903
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
905
904
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -961,7 +960,7 @@ var CollectionIndexObserver = class CollectionIndexObserver2 extends AbstractObs
|
|
|
961
960
|
}
|
|
962
961
|
}, "onChanged");
|
|
963
962
|
};
|
|
964
|
-
var CollectionIndexObserverManager = class CollectionIndexObserverManager2 extends
|
|
963
|
+
var CollectionIndexObserverManager = class CollectionIndexObserverManager2 extends KeyedInstanceFactory2 {
|
|
965
964
|
static {
|
|
966
965
|
__name(this, "CollectionIndexObserverManager");
|
|
967
966
|
}
|
|
@@ -993,7 +992,7 @@ var CollectionIndexObserverManager = class CollectionIndexObserverManager2 exten
|
|
|
993
992
|
this.releaseObject();
|
|
994
993
|
}
|
|
995
994
|
};
|
|
996
|
-
var CollectionItemObserverManager = class extends
|
|
995
|
+
var CollectionItemObserverManager = class extends KeyedInstanceFactory2 {
|
|
997
996
|
static {
|
|
998
997
|
__name(this, "CollectionItemObserverManager");
|
|
999
998
|
}
|
|
@@ -1039,7 +1038,7 @@ import { Inject as Inject11, Injectable as Injectable12, RsXCoreInjectionTokens
|
|
|
1039
1038
|
import { Type as Type6, UnexpectedException } from "@rs-x/core";
|
|
1040
1039
|
|
|
1041
1040
|
// lib/property-observer/factories/indexed-value-observer-proxy-pair/index-change-subscription-manager.ts
|
|
1042
|
-
import {
|
|
1041
|
+
import { KeyedInstanceFactory as KeyedInstanceFactory3 } from "@rs-x/core";
|
|
1043
1042
|
var IndexChangeSubscriptionsForContextManager = class IndexChangeSubscriptionsForContextManager2 extends GroupedChangeSubscriptionsForContextManager {
|
|
1044
1043
|
static {
|
|
1045
1044
|
__name(this, "IndexChangeSubscriptionsForContextManager");
|
|
@@ -1081,7 +1080,7 @@ var IndexChangeSubscriptionsForContextManager = class IndexChangeSubscriptionsFo
|
|
|
1081
1080
|
return observer;
|
|
1082
1081
|
}
|
|
1083
1082
|
};
|
|
1084
|
-
var IndexChangeSubscriptionManager = class extends
|
|
1083
|
+
var IndexChangeSubscriptionManager = class extends KeyedInstanceFactory3 {
|
|
1085
1084
|
static {
|
|
1086
1085
|
__name(this, "IndexChangeSubscriptionManager");
|
|
1087
1086
|
}
|
|
@@ -1240,7 +1239,7 @@ CollectionItemObserverProxyPairFactory = _ts_decorate12([
|
|
|
1240
1239
|
_ts_param12(2, Inject11(RsXCoreInjectionTokens8.IErrorLog)),
|
|
1241
1240
|
_ts_param12(3, Inject11(RsXCoreInjectionTokens8.IGuidFactory)),
|
|
1242
1241
|
_ts_param12(4, Inject11(RsXCoreInjectionTokens8.IIndexValueAccessor)),
|
|
1243
|
-
_ts_param12(5, Inject11(
|
|
1242
|
+
_ts_param12(5, Inject11(RsXCoreInjectionTokens8.IProxyRegistry)),
|
|
1244
1243
|
_ts_param12(6, Inject11(RsXCoreInjectionTokens8.IValueMetadata)),
|
|
1245
1244
|
_ts_metadata12("design:type", Function),
|
|
1246
1245
|
_ts_metadata12("design:paramtypes", [
|
|
@@ -1255,7 +1254,7 @@ CollectionItemObserverProxyPairFactory = _ts_decorate12([
|
|
|
1255
1254
|
], CollectionItemObserverProxyPairFactory);
|
|
1256
1255
|
|
|
1257
1256
|
// lib/property-observer/factories/date-property/data-property-observer-manager.ts
|
|
1258
|
-
import { Inject as Inject12, Injectable as Injectable13,
|
|
1257
|
+
import { Inject as Inject12, Injectable as Injectable13, KeyedInstanceFactory as KeyedInstanceFactory4, RsXCoreInjectionTokens as RsXCoreInjectionTokens9 } from "@rs-x/core";
|
|
1259
1258
|
function _ts_decorate13(decorators, target, key, desc) {
|
|
1260
1259
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1261
1260
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1306,7 +1305,7 @@ var DatePropertyObserver = class DatePropertyObserver2 extends AbstractObserver
|
|
|
1306
1305
|
this._oldValue = change.newValue;
|
|
1307
1306
|
}, "onDateChanged");
|
|
1308
1307
|
};
|
|
1309
|
-
var ProperForDataObserverManager = class ProperForDataObserverManager2 extends
|
|
1308
|
+
var ProperForDataObserverManager = class ProperForDataObserverManager2 extends KeyedInstanceFactory4 {
|
|
1310
1309
|
static {
|
|
1311
1310
|
__name(this, "ProperForDataObserverManager");
|
|
1312
1311
|
}
|
|
@@ -1343,7 +1342,7 @@ var ProperForDataObserverManager = class ProperForDataObserverManager2 extends S
|
|
|
1343
1342
|
this.releaseObject();
|
|
1344
1343
|
}
|
|
1345
1344
|
};
|
|
1346
|
-
var DatePropertyObserverManager = class extends
|
|
1345
|
+
var DatePropertyObserverManager = class extends KeyedInstanceFactory4 {
|
|
1347
1346
|
static {
|
|
1348
1347
|
__name(this, "DatePropertyObserverManager");
|
|
1349
1348
|
}
|
|
@@ -1416,7 +1415,7 @@ DatePropertyObserverProxyPairFactory = _ts_decorate14([
|
|
|
1416
1415
|
_ts_param14(2, Inject13(RsXCoreInjectionTokens10.IErrorLog)),
|
|
1417
1416
|
_ts_param14(3, Inject13(RsXCoreInjectionTokens10.IGuidFactory)),
|
|
1418
1417
|
_ts_param14(4, Inject13(RsXCoreInjectionTokens10.IIndexValueAccessor)),
|
|
1419
|
-
_ts_param14(5, Inject13(
|
|
1418
|
+
_ts_param14(5, Inject13(RsXCoreInjectionTokens10.IProxyRegistry)),
|
|
1420
1419
|
_ts_param14(6, Inject13(RsXCoreInjectionTokens10.IValueMetadata)),
|
|
1421
1420
|
_ts_metadata14("design:type", Function),
|
|
1422
1421
|
_ts_metadata14("design:paramtypes", [
|
|
@@ -1470,7 +1469,7 @@ NonIterableObjectPropertyObserverProxyPairFactory = _ts_decorate15([
|
|
|
1470
1469
|
_ts_param15(2, Inject14(RsXCoreInjectionTokens11.IErrorLog)),
|
|
1471
1470
|
_ts_param15(3, Inject14(RsXCoreInjectionTokens11.IGuidFactory)),
|
|
1472
1471
|
_ts_param15(4, Inject14(RsXCoreInjectionTokens11.IIndexValueAccessor)),
|
|
1473
|
-
_ts_param15(5, Inject14(
|
|
1472
|
+
_ts_param15(5, Inject14(RsXCoreInjectionTokens11.IProxyRegistry)),
|
|
1474
1473
|
_ts_param15(6, Inject14(RsXCoreInjectionTokens11.IValueMetadata)),
|
|
1475
1474
|
_ts_metadata15("design:type", Function),
|
|
1476
1475
|
_ts_metadata15("design:paramtypes", [
|
|
@@ -1486,7 +1485,7 @@ NonIterableObjectPropertyObserverProxyPairFactory = _ts_decorate15([
|
|
|
1486
1485
|
|
|
1487
1486
|
// lib/property-observer/factories/non-iterable-object-property/object-property-observer-manager.ts
|
|
1488
1487
|
import { Subject as Subject2 } from "rxjs";
|
|
1489
|
-
import { Inject as Inject15, Injectable as Injectable16, InvalidOperationException as InvalidOperationException2, PropertyDescriptorType,
|
|
1488
|
+
import { Inject as Inject15, Injectable as Injectable16, InvalidOperationException as InvalidOperationException2, KeyedInstanceFactory as KeyedInstanceFactory5, PropertyDescriptorType, RsXCoreInjectionTokens as RsXCoreInjectionTokens12, Type as Type8 } from "@rs-x/core";
|
|
1490
1489
|
function _ts_decorate16(decorators, target, key, desc) {
|
|
1491
1490
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1492
1491
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1618,7 +1617,7 @@ var PropertObserver = class PropertObserver2 extends AbstractObserver {
|
|
|
1618
1617
|
return newDescriptor;
|
|
1619
1618
|
}
|
|
1620
1619
|
};
|
|
1621
|
-
var PropertyObserverManager = class PropertyObserverManager2 extends
|
|
1620
|
+
var PropertyObserverManager = class PropertyObserverManager2 extends KeyedInstanceFactory5 {
|
|
1622
1621
|
static {
|
|
1623
1622
|
__name(this, "PropertyObserverManager");
|
|
1624
1623
|
}
|
|
@@ -1647,7 +1646,7 @@ var PropertyObserverManager = class PropertyObserverManager2 extends SingletonFa
|
|
|
1647
1646
|
observer.dispose();
|
|
1648
1647
|
}
|
|
1649
1648
|
};
|
|
1650
|
-
var ObjectPropertyObserverManager = class extends
|
|
1649
|
+
var ObjectPropertyObserverManager = class extends KeyedInstanceFactory5 {
|
|
1651
1650
|
static {
|
|
1652
1651
|
__name(this, "ObjectPropertyObserverManager");
|
|
1653
1652
|
}
|
|
@@ -1670,7 +1669,7 @@ var ObjectPropertyObserverManager = class extends SingletonFactory5 {
|
|
|
1670
1669
|
};
|
|
1671
1670
|
ObjectPropertyObserverManager = _ts_decorate16([
|
|
1672
1671
|
Injectable16(),
|
|
1673
|
-
_ts_param16(0, Inject15(
|
|
1672
|
+
_ts_param16(0, Inject15(RsXCoreInjectionTokens12.IProxyRegistry)),
|
|
1674
1673
|
_ts_metadata16("design:type", Function),
|
|
1675
1674
|
_ts_metadata16("design:paramtypes", [
|
|
1676
1675
|
typeof IProxyRegistry === "undefined" ? Object : IProxyRegistry
|
|
@@ -1679,7 +1678,7 @@ ObjectPropertyObserverManager = _ts_decorate16([
|
|
|
1679
1678
|
|
|
1680
1679
|
// lib/proxies/array-proxy/array-proxy.factory.ts
|
|
1681
1680
|
import { Subject as Subject3 } from "rxjs";
|
|
1682
|
-
import { Inject as Inject16, Injectable as Injectable17,
|
|
1681
|
+
import { Inject as Inject16, Injectable as Injectable17, KeyedInstanceFactory as KeyedInstanceFactory6, RsXCoreInjectionTokens as RsXCoreInjectionTokens13, Type as Type9 } from "@rs-x/core";
|
|
1683
1682
|
function _ts_decorate17(decorators, target, key, desc) {
|
|
1684
1683
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1685
1684
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1834,7 +1833,7 @@ var ArrayProxy = class ArrayProxy2 extends AbstractObserver {
|
|
|
1834
1833
|
}
|
|
1835
1834
|
}
|
|
1836
1835
|
};
|
|
1837
|
-
var ArrayProxyFactory = class extends
|
|
1836
|
+
var ArrayProxyFactory = class extends KeyedInstanceFactory6 {
|
|
1838
1837
|
static {
|
|
1839
1838
|
__name(this, "ArrayProxyFactory");
|
|
1840
1839
|
}
|
|
@@ -1869,7 +1868,7 @@ var ArrayProxyFactory = class extends SingletonFactory6 {
|
|
|
1869
1868
|
};
|
|
1870
1869
|
ArrayProxyFactory = _ts_decorate17([
|
|
1871
1870
|
Injectable17(),
|
|
1872
|
-
_ts_param17(0, Inject16(
|
|
1871
|
+
_ts_param17(0, Inject16(RsXCoreInjectionTokens13.IProxyRegistry)),
|
|
1873
1872
|
_ts_metadata17("design:type", Function),
|
|
1874
1873
|
_ts_metadata17("design:paramtypes", [
|
|
1875
1874
|
typeof IProxyRegistry === "undefined" ? Object : IProxyRegistry
|
|
@@ -1878,7 +1877,7 @@ ArrayProxyFactory = _ts_decorate17([
|
|
|
1878
1877
|
|
|
1879
1878
|
// lib/proxies/date-proxy/date-proxy.factory.ts
|
|
1880
1879
|
import { Subject as Subject4 } from "rxjs";
|
|
1881
|
-
import { Inject as Inject17, Injectable as Injectable18, RsXCoreInjectionTokens as
|
|
1880
|
+
import { GuidKeyedInstanceFactory as GuidKeyedInstanceFactory4, Inject as Inject17, Injectable as Injectable18, RsXCoreInjectionTokens as RsXCoreInjectionTokens14, Type as Type10 } from "@rs-x/core";
|
|
1882
1881
|
function _ts_decorate18(decorators, target, key, desc) {
|
|
1883
1882
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1884
1883
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2113,7 +2112,7 @@ var DateProxy = class DateProxy2 extends AbstractObserver {
|
|
|
2113
2112
|
this.target = Type10.cast(void 0);
|
|
2114
2113
|
}
|
|
2115
2114
|
};
|
|
2116
|
-
var DateProxyFactory = class extends
|
|
2115
|
+
var DateProxyFactory = class extends GuidKeyedInstanceFactory4 {
|
|
2117
2116
|
static {
|
|
2118
2117
|
__name(this, "DateProxyFactory");
|
|
2119
2118
|
}
|
|
@@ -2144,8 +2143,8 @@ var DateProxyFactory = class extends SingletonFactoryWithGuid4 {
|
|
|
2144
2143
|
};
|
|
2145
2144
|
DateProxyFactory = _ts_decorate18([
|
|
2146
2145
|
Injectable18(),
|
|
2147
|
-
_ts_param18(0, Inject17(
|
|
2148
|
-
_ts_param18(1, Inject17(
|
|
2146
|
+
_ts_param18(0, Inject17(RsXCoreInjectionTokens14.IGuidFactory)),
|
|
2147
|
+
_ts_param18(1, Inject17(RsXCoreInjectionTokens14.IProxyRegistry)),
|
|
2149
2148
|
_ts_metadata18("design:type", Function),
|
|
2150
2149
|
_ts_metadata18("design:paramtypes", [
|
|
2151
2150
|
typeof IGuidFactory === "undefined" ? Object : IGuidFactory,
|
|
@@ -2154,7 +2153,7 @@ DateProxyFactory = _ts_decorate18([
|
|
|
2154
2153
|
], DateProxyFactory);
|
|
2155
2154
|
|
|
2156
2155
|
// lib/proxies/map-proxy/map-proxy.factory.ts
|
|
2157
|
-
import { Inject as Inject18, Injectable as Injectable19,
|
|
2156
|
+
import { Inject as Inject18, Injectable as Injectable19, KeyedInstanceFactory as KeyedInstanceFactory7, RsXCoreInjectionTokens as RsXCoreInjectionTokens15, Type as Type11 } from "@rs-x/core";
|
|
2158
2157
|
function _ts_decorate19(decorators, target, key, desc) {
|
|
2159
2158
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2160
2159
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2245,7 +2244,7 @@ var MapProxy = class extends AbstractObserver {
|
|
|
2245
2244
|
});
|
|
2246
2245
|
}
|
|
2247
2246
|
};
|
|
2248
|
-
var MapProxyFactory = class extends
|
|
2247
|
+
var MapProxyFactory = class extends KeyedInstanceFactory7 {
|
|
2249
2248
|
static {
|
|
2250
2249
|
__name(this, "MapProxyFactory");
|
|
2251
2250
|
}
|
|
@@ -2279,7 +2278,7 @@ var MapProxyFactory = class extends SingletonFactory7 {
|
|
|
2279
2278
|
};
|
|
2280
2279
|
MapProxyFactory = _ts_decorate19([
|
|
2281
2280
|
Injectable19(),
|
|
2282
|
-
_ts_param19(0, Inject18(
|
|
2281
|
+
_ts_param19(0, Inject18(RsXCoreInjectionTokens15.IProxyRegistry)),
|
|
2283
2282
|
_ts_metadata19("design:type", Function),
|
|
2284
2283
|
_ts_metadata19("design:paramtypes", [
|
|
2285
2284
|
typeof IProxyRegistry === "undefined" ? Object : IProxyRegistry
|
|
@@ -2288,7 +2287,7 @@ MapProxyFactory = _ts_decorate19([
|
|
|
2288
2287
|
|
|
2289
2288
|
// lib/proxies/observable-proxy/observable-proxy.factory.ts
|
|
2290
2289
|
import { ReplaySubject as ReplaySubject2 } from "rxjs";
|
|
2291
|
-
import { Inject as Inject19, Injectable as Injectable20,
|
|
2290
|
+
import { Inject as Inject19, Injectable as Injectable20, KeyedInstanceFactory as KeyedInstanceFactory8, RsXCoreInjectionTokens as RsXCoreInjectionTokens16 } from "@rs-x/core";
|
|
2292
2291
|
function _ts_decorate20(decorators, target, key, desc) {
|
|
2293
2292
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2294
2293
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2343,7 +2342,7 @@ var ObservableProxy = class ObservableProxy2 extends AbstractObserver {
|
|
|
2343
2342
|
});
|
|
2344
2343
|
}, "emitObservableChange");
|
|
2345
2344
|
};
|
|
2346
|
-
var ObservableProxyFactory = class extends
|
|
2345
|
+
var ObservableProxyFactory = class extends KeyedInstanceFactory8 {
|
|
2347
2346
|
static {
|
|
2348
2347
|
__name(this, "ObservableProxyFactory");
|
|
2349
2348
|
}
|
|
@@ -2377,7 +2376,7 @@ var ObservableProxyFactory = class extends SingletonFactory8 {
|
|
|
2377
2376
|
};
|
|
2378
2377
|
ObservableProxyFactory = _ts_decorate20([
|
|
2379
2378
|
Injectable20(),
|
|
2380
|
-
_ts_param20(0, Inject19(
|
|
2379
|
+
_ts_param20(0, Inject19(RsXCoreInjectionTokens16.IObservableAccessor)),
|
|
2381
2380
|
_ts_metadata20("design:type", Function),
|
|
2382
2381
|
_ts_metadata20("design:paramtypes", [
|
|
2383
2382
|
typeof IObservableAccessor === "undefined" ? Object : IObservableAccessor
|
|
@@ -2386,7 +2385,7 @@ ObservableProxyFactory = _ts_decorate20([
|
|
|
2386
2385
|
|
|
2387
2386
|
// lib/proxies/promise-proxy/promise-proxy.factory.ts
|
|
2388
2387
|
import { ReplaySubject as ReplaySubject3 } from "rxjs";
|
|
2389
|
-
import { Inject as Inject20, Injectable as Injectable21,
|
|
2388
|
+
import { Inject as Inject20, Injectable as Injectable21, KeyedInstanceFactory as KeyedInstanceFactory9, RsXCoreInjectionTokens as RsXCoreInjectionTokens17 } from "@rs-x/core";
|
|
2390
2389
|
function _ts_decorate21(decorators, target, key, desc) {
|
|
2391
2390
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2392
2391
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2429,7 +2428,7 @@ var PromiseObserver = class PromiseObserver2 extends AbstractObserver {
|
|
|
2429
2428
|
});
|
|
2430
2429
|
}, "onValueResolved");
|
|
2431
2430
|
};
|
|
2432
|
-
var PromiseProxyFactory = class extends
|
|
2431
|
+
var PromiseProxyFactory = class extends KeyedInstanceFactory9 {
|
|
2433
2432
|
static {
|
|
2434
2433
|
__name(this, "PromiseProxyFactory");
|
|
2435
2434
|
}
|
|
@@ -2463,15 +2462,15 @@ var PromiseProxyFactory = class extends SingletonFactory9 {
|
|
|
2463
2462
|
};
|
|
2464
2463
|
PromiseProxyFactory = _ts_decorate21([
|
|
2465
2464
|
Injectable21(),
|
|
2466
|
-
_ts_param21(0, Inject20(
|
|
2465
|
+
_ts_param21(0, Inject20(RsXCoreInjectionTokens17.IPromiseAccessor)),
|
|
2467
2466
|
_ts_metadata21("design:type", Function),
|
|
2468
2467
|
_ts_metadata21("design:paramtypes", [
|
|
2469
2468
|
typeof IPromiseAccessor === "undefined" ? Object : IPromiseAccessor
|
|
2470
2469
|
])
|
|
2471
2470
|
], PromiseProxyFactory);
|
|
2472
2471
|
|
|
2473
|
-
// lib/proxies/proxy-
|
|
2474
|
-
import { Injectable as Injectable22 } from "@rs-x/core";
|
|
2472
|
+
// lib/proxies/set-proxy/set-proxy.factory.ts
|
|
2473
|
+
import { Inject as Inject21, Injectable as Injectable22, KeyedInstanceFactory as KeyedInstanceFactory10, RsXCoreInjectionTokens as RsXCoreInjectionTokens18, Type as Type12 } from "@rs-x/core";
|
|
2475
2474
|
function _ts_decorate22(decorators, target, key, desc) {
|
|
2476
2475
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2477
2476
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2479,40 +2478,6 @@ function _ts_decorate22(decorators, target, key, desc) {
|
|
|
2479
2478
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2480
2479
|
}
|
|
2481
2480
|
__name(_ts_decorate22, "_ts_decorate");
|
|
2482
|
-
var ProxyRegistry = class {
|
|
2483
|
-
static {
|
|
2484
|
-
__name(this, "ProxyRegistry");
|
|
2485
|
-
}
|
|
2486
|
-
_proxies = /* @__PURE__ */ new Map();
|
|
2487
|
-
getProxyTarget(proxyToFind) {
|
|
2488
|
-
return Array.from(this._proxies.entries()).find(([_, proxy]) => proxy === proxyToFind)?.[0];
|
|
2489
|
-
}
|
|
2490
|
-
getProxy(proxyTarget) {
|
|
2491
|
-
return this._proxies.get(proxyTarget);
|
|
2492
|
-
}
|
|
2493
|
-
register(proxyTarget, proxy) {
|
|
2494
|
-
this._proxies.set(proxyTarget, proxy);
|
|
2495
|
-
}
|
|
2496
|
-
unregister(proxyTarget) {
|
|
2497
|
-
this._proxies.delete(proxyTarget);
|
|
2498
|
-
}
|
|
2499
|
-
isProxy(object) {
|
|
2500
|
-
return !!this.getProxyTarget(object);
|
|
2501
|
-
}
|
|
2502
|
-
};
|
|
2503
|
-
ProxyRegistry = _ts_decorate22([
|
|
2504
|
-
Injectable22()
|
|
2505
|
-
], ProxyRegistry);
|
|
2506
|
-
|
|
2507
|
-
// lib/proxies/set-proxy/set-proxy.factory.ts
|
|
2508
|
-
import { Inject as Inject21, Injectable as Injectable23, SingletonFactory as SingletonFactory10, Type as Type12 } from "@rs-x/core";
|
|
2509
|
-
function _ts_decorate23(decorators, target, key, desc) {
|
|
2510
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2511
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2512
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2513
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2514
|
-
}
|
|
2515
|
-
__name(_ts_decorate23, "_ts_decorate");
|
|
2516
2481
|
function _ts_metadata22(k, v) {
|
|
2517
2482
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2518
2483
|
}
|
|
@@ -2584,7 +2549,7 @@ var SetProxy = class extends AbstractObserver {
|
|
|
2584
2549
|
});
|
|
2585
2550
|
}
|
|
2586
2551
|
};
|
|
2587
|
-
var SetProxyFactory = class extends
|
|
2552
|
+
var SetProxyFactory = class extends KeyedInstanceFactory10 {
|
|
2588
2553
|
static {
|
|
2589
2554
|
__name(this, "SetProxyFactory");
|
|
2590
2555
|
}
|
|
@@ -2616,9 +2581,9 @@ var SetProxyFactory = class extends SingletonFactory10 {
|
|
|
2616
2581
|
setObserverWithProxy.observer.dispose();
|
|
2617
2582
|
}
|
|
2618
2583
|
};
|
|
2619
|
-
SetProxyFactory =
|
|
2620
|
-
|
|
2621
|
-
_ts_param22(0, Inject21(
|
|
2584
|
+
SetProxyFactory = _ts_decorate22([
|
|
2585
|
+
Injectable22(),
|
|
2586
|
+
_ts_param22(0, Inject21(RsXCoreInjectionTokens18.IProxyRegistry)),
|
|
2622
2587
|
_ts_metadata22("design:type", Function),
|
|
2623
2588
|
_ts_metadata22("design:paramtypes", [
|
|
2624
2589
|
typeof IProxyRegistry === "undefined" ? Object : IProxyRegistry
|
|
@@ -2629,14 +2594,14 @@ SetProxyFactory = _ts_decorate23([
|
|
|
2629
2594
|
import { ContainerModule, InjectionContainer, registerMultiInjectServices, RsXCoreModule } from "@rs-x/core";
|
|
2630
2595
|
|
|
2631
2596
|
// lib/state-manager/object-state-manager.ts
|
|
2632
|
-
import { Inject as Inject22, Injectable as
|
|
2633
|
-
function
|
|
2597
|
+
import { Inject as Inject22, Injectable as Injectable23, KeyedInstanceFactory as KeyedInstanceFactory11, RsXCoreInjectionTokens as RsXCoreInjectionTokens19, UnsupportedException as UnsupportedException2 } from "@rs-x/core";
|
|
2598
|
+
function _ts_decorate23(decorators, target, key, desc) {
|
|
2634
2599
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2635
2600
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2636
2601
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2637
2602
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2638
2603
|
}
|
|
2639
|
-
__name(
|
|
2604
|
+
__name(_ts_decorate23, "_ts_decorate");
|
|
2640
2605
|
function _ts_metadata23(k, v) {
|
|
2641
2606
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2642
2607
|
}
|
|
@@ -2647,7 +2612,7 @@ function _ts_param23(paramIndex, decorator) {
|
|
|
2647
2612
|
};
|
|
2648
2613
|
}
|
|
2649
2614
|
__name(_ts_param23, "_ts_param");
|
|
2650
|
-
var StateForObjectManager = class extends
|
|
2615
|
+
var StateForObjectManager = class extends KeyedInstanceFactory11 {
|
|
2651
2616
|
static {
|
|
2652
2617
|
__name(this, "StateForObjectManager");
|
|
2653
2618
|
}
|
|
@@ -2659,16 +2624,19 @@ var StateForObjectManager = class extends SingletonFactory11 {
|
|
|
2659
2624
|
getId(data) {
|
|
2660
2625
|
return data.key;
|
|
2661
2626
|
}
|
|
2662
|
-
set(key, value, watched) {
|
|
2627
|
+
set(key, value, watched, ownerId) {
|
|
2663
2628
|
const state = this.getFromId(key);
|
|
2664
2629
|
if (state) {
|
|
2665
2630
|
state.valueCopy = this.deepClone(key, value);
|
|
2666
2631
|
state.value = value;
|
|
2632
|
+
state.watched = watched;
|
|
2633
|
+
state.ownerId = ownerId;
|
|
2667
2634
|
} else {
|
|
2668
2635
|
this.create({
|
|
2669
2636
|
key,
|
|
2670
2637
|
value,
|
|
2671
|
-
watched
|
|
2638
|
+
watched,
|
|
2639
|
+
ownerId
|
|
2672
2640
|
});
|
|
2673
2641
|
}
|
|
2674
2642
|
}
|
|
@@ -2676,6 +2644,9 @@ var StateForObjectManager = class extends SingletonFactory11 {
|
|
|
2676
2644
|
return data.key;
|
|
2677
2645
|
}
|
|
2678
2646
|
deepClone(key, data) {
|
|
2647
|
+
if (data === null || typeof data !== "object" && typeof data !== "function") {
|
|
2648
|
+
return data;
|
|
2649
|
+
}
|
|
2679
2650
|
try {
|
|
2680
2651
|
return this._deepClone.clone(data);
|
|
2681
2652
|
} catch (e) {
|
|
@@ -2686,14 +2657,15 @@ var StateForObjectManager = class extends SingletonFactory11 {
|
|
|
2686
2657
|
return {
|
|
2687
2658
|
value: data.value,
|
|
2688
2659
|
valueCopy: this.deepClone(data.key, data.value),
|
|
2689
|
-
watched: data.watched
|
|
2660
|
+
watched: data.watched,
|
|
2661
|
+
ownerId: data.ownerId
|
|
2690
2662
|
};
|
|
2691
2663
|
}
|
|
2692
2664
|
onReleased() {
|
|
2693
2665
|
this.releaseContext();
|
|
2694
2666
|
}
|
|
2695
2667
|
};
|
|
2696
|
-
var ObjectStateManager = class extends
|
|
2668
|
+
var ObjectStateManager = class extends KeyedInstanceFactory11 {
|
|
2697
2669
|
static {
|
|
2698
2670
|
__name(this, "ObjectStateManager");
|
|
2699
2671
|
}
|
|
@@ -2707,7 +2679,7 @@ var ObjectStateManager = class extends SingletonFactory11 {
|
|
|
2707
2679
|
isRegistered(context, key) {
|
|
2708
2680
|
return !!this.getFromId(context)?.has(key);
|
|
2709
2681
|
}
|
|
2710
|
-
replaceState(key, newContext, newValue, oldContext, watched) {
|
|
2682
|
+
replaceState(key, newContext, newValue, oldContext, watched, ownerId) {
|
|
2711
2683
|
let stateForObjectManagerForNewContext;
|
|
2712
2684
|
const stateForObjectManagerForOldContext = this.getFromId(oldContext);
|
|
2713
2685
|
if (newValue === void 0) {
|
|
@@ -2721,12 +2693,13 @@ var ObjectStateManager = class extends SingletonFactory11 {
|
|
|
2721
2693
|
stateForObjectManagerForNewContext = stateForObjectManagerForOldContext;
|
|
2722
2694
|
}
|
|
2723
2695
|
if (stateForObjectManagerForNewContext) {
|
|
2724
|
-
stateForObjectManagerForNewContext.set(key, newValue, watched);
|
|
2696
|
+
stateForObjectManagerForNewContext.set(key, newValue, watched, ownerId);
|
|
2725
2697
|
} else if (newValue !== void 0) {
|
|
2726
2698
|
this.create(newContext).instance.create({
|
|
2727
2699
|
key,
|
|
2728
2700
|
value: newValue,
|
|
2729
|
-
watched
|
|
2701
|
+
watched,
|
|
2702
|
+
ownerId
|
|
2730
2703
|
});
|
|
2731
2704
|
}
|
|
2732
2705
|
}
|
|
@@ -2737,9 +2710,9 @@ var ObjectStateManager = class extends SingletonFactory11 {
|
|
|
2737
2710
|
return new StateForObjectManager(this._deepClone, () => this.release(context));
|
|
2738
2711
|
}
|
|
2739
2712
|
};
|
|
2740
|
-
ObjectStateManager =
|
|
2741
|
-
|
|
2742
|
-
_ts_param23(0, Inject22(
|
|
2713
|
+
ObjectStateManager = _ts_decorate23([
|
|
2714
|
+
Injectable23(),
|
|
2715
|
+
_ts_param23(0, Inject22(RsXCoreInjectionTokens19.IDeepClone)),
|
|
2743
2716
|
_ts_metadata23("design:type", Function),
|
|
2744
2717
|
_ts_metadata23("design:paramtypes", [
|
|
2745
2718
|
typeof IDeepClone === "undefined" ? Object : IDeepClone
|
|
@@ -2748,10 +2721,10 @@ ObjectStateManager = _ts_decorate24([
|
|
|
2748
2721
|
|
|
2749
2722
|
// lib/state-manager/state-manager.ts
|
|
2750
2723
|
import { Subject as Subject5 } from "rxjs";
|
|
2751
|
-
import { Assertion, Inject as Inject23, Injectable as
|
|
2724
|
+
import { Assertion, Inject as Inject23, Injectable as Injectable24, PENDING, RsXCoreInjectionTokens as RsXCoreInjectionTokens20, truePredicate as truePredicate6 } from "@rs-x/core";
|
|
2752
2725
|
|
|
2753
2726
|
// lib/state-manager/state-change-subscription-manager/state-change-subsription-manager.ts
|
|
2754
|
-
import {
|
|
2727
|
+
import { KeyedInstanceFactory as KeyedInstanceFactory12 } from "@rs-x/core";
|
|
2755
2728
|
var StateChangeSubscriptionsForContextManager = class StateChangeSubscriptionsForContextManager2 extends GroupedChangeSubscriptionsForContextManager {
|
|
2756
2729
|
static {
|
|
2757
2730
|
__name(this, "StateChangeSubscriptionsForContextManager");
|
|
@@ -2782,7 +2755,7 @@ var StateChangeSubscriptionsForContextManager = class StateChangeSubscriptionsFo
|
|
|
2782
2755
|
};
|
|
2783
2756
|
}
|
|
2784
2757
|
};
|
|
2785
|
-
var StateChangeSubscriptionManager = class extends
|
|
2758
|
+
var StateChangeSubscriptionManager = class extends KeyedInstanceFactory12 {
|
|
2786
2759
|
static {
|
|
2787
2760
|
__name(this, "StateChangeSubscriptionManager");
|
|
2788
2761
|
}
|
|
@@ -2818,13 +2791,13 @@ var StateChangeSubscriptionManager = class extends SingletonFactory12 {
|
|
|
2818
2791
|
};
|
|
2819
2792
|
|
|
2820
2793
|
// lib/state-manager/state-manager.ts
|
|
2821
|
-
function
|
|
2794
|
+
function _ts_decorate24(decorators, target, key, desc) {
|
|
2822
2795
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2823
2796
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2824
2797
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2825
2798
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2826
2799
|
}
|
|
2827
|
-
__name(
|
|
2800
|
+
__name(_ts_decorate24, "_ts_decorate");
|
|
2828
2801
|
function _ts_metadata24(k, v) {
|
|
2829
2802
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2830
2803
|
}
|
|
@@ -2848,6 +2821,8 @@ var StateManager = class {
|
|
|
2848
2821
|
_endChangeCycle = new Subject5();
|
|
2849
2822
|
_stateChangeSubscriptionManager;
|
|
2850
2823
|
_pending = /* @__PURE__ */ new Map();
|
|
2824
|
+
_stateEventSubscriptionsByContext = /* @__PURE__ */ new Map();
|
|
2825
|
+
_stateEventSubscriptionPool = [];
|
|
2851
2826
|
constructor(objectObserverManager, _objectStateManager, errorLog, guidFactory, _indexValueAccessor, _equalityService) {
|
|
2852
2827
|
this._objectStateManager = _objectStateManager;
|
|
2853
2828
|
this._indexValueAccessor = _indexValueAccessor;
|
|
@@ -2883,15 +2858,22 @@ var StateManager = class {
|
|
|
2883
2858
|
});
|
|
2884
2859
|
return id ? stateChangeSubscriptionsForContextManager.has(id) : false;
|
|
2885
2860
|
}
|
|
2886
|
-
watchState(context, index,
|
|
2887
|
-
if (!this.isWatched(context, index, indexWatchRule)) {
|
|
2861
|
+
watchState(context, index, options) {
|
|
2862
|
+
if (!this.isWatched(context, index, options?.indexWatchRule)) {
|
|
2888
2863
|
const value = this.getState(context, index);
|
|
2889
|
-
this.tryToSubscribeToChange(context, index, indexWatchRule);
|
|
2864
|
+
this.tryToSubscribeToChange(context, index, options?.ownerId, options?.indexWatchRule);
|
|
2890
2865
|
return value;
|
|
2891
2866
|
} else {
|
|
2892
|
-
return this.increaseStateReferenceCount(context, index, true);
|
|
2867
|
+
return this.increaseStateReferenceCount(context, index, true, options?.ownerId);
|
|
2893
2868
|
}
|
|
2894
2869
|
}
|
|
2870
|
+
subscribeStateEvents(context, index, listener) {
|
|
2871
|
+
const subscription = this.acquireStateEventSubscription(context, index, listener);
|
|
2872
|
+
this.addStateEventSubscription(context, index, subscription);
|
|
2873
|
+
return () => {
|
|
2874
|
+
this.removeStateEventSubscription(subscription.context, subscription.index, subscription);
|
|
2875
|
+
};
|
|
2876
|
+
}
|
|
2895
2877
|
releaseState(context, index, indexWatchRule) {
|
|
2896
2878
|
if (!this._objectStateManager.getFromId(context)?.has(index)) {
|
|
2897
2879
|
return;
|
|
@@ -2901,20 +2883,32 @@ var StateManager = class {
|
|
|
2901
2883
|
clear() {
|
|
2902
2884
|
this._stateChangeSubscriptionManager.dispose();
|
|
2903
2885
|
this._objectStateManager.dispose();
|
|
2886
|
+
this._stateEventSubscriptionsByContext.clear();
|
|
2887
|
+
this._stateEventSubscriptionPool.length = 0;
|
|
2904
2888
|
}
|
|
2905
2889
|
getState(context, index) {
|
|
2906
2890
|
return this._objectStateManager.getFromId(context)?.getFromId(index)?.value;
|
|
2907
2891
|
}
|
|
2908
|
-
setState(context, index, value) {
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2892
|
+
setState(context, index, value, ownerId) {
|
|
2893
|
+
const isExternalSetState = ownerId === void 0;
|
|
2894
|
+
if (isExternalSetState) {
|
|
2895
|
+
this._startChangeCycle.next();
|
|
2896
|
+
}
|
|
2897
|
+
try {
|
|
2898
|
+
this.internalSetState(context, index, value, {
|
|
2899
|
+
context,
|
|
2900
|
+
value: this.getState(context, index),
|
|
2901
|
+
shouldEmitChange: truePredicate6
|
|
2902
|
+
}, ownerId);
|
|
2903
|
+
} finally {
|
|
2904
|
+
if (isExternalSetState) {
|
|
2905
|
+
this._endChangeCycle.next();
|
|
2906
|
+
}
|
|
2907
|
+
}
|
|
2914
2908
|
}
|
|
2915
|
-
internalSetState(context, index, value, transferValue) {
|
|
2916
|
-
this.tryRebindingNestedState(value, transferValue.value);
|
|
2917
|
-
this._objectStateManager.replaceState(index, context, value, transferValue.context, false);
|
|
2909
|
+
internalSetState(context, index, value, transferValue, ownerId) {
|
|
2910
|
+
this.tryRebindingNestedState(value, transferValue.value, ownerId);
|
|
2911
|
+
this._objectStateManager.replaceState(index, context, value, transferValue.context, false, ownerId);
|
|
2918
2912
|
if (!transferValue?.shouldEmitChange || transferValue.shouldEmitChange(context, index)) {
|
|
2919
2913
|
this.emitChange(context, index, value, transferValue.value, transferValue.context);
|
|
2920
2914
|
}
|
|
@@ -2939,40 +2933,50 @@ var StateManager = class {
|
|
|
2939
2933
|
}
|
|
2940
2934
|
}
|
|
2941
2935
|
emitChange(context, index, newValue, oldValue, oldContext) {
|
|
2942
|
-
if (
|
|
2936
|
+
if (newValue === oldValue || newValue !== newValue && oldValue !== oldValue) {
|
|
2943
2937
|
return;
|
|
2944
2938
|
}
|
|
2945
|
-
|
|
2939
|
+
const newValueIsObjectLike = newValue !== null && (typeof newValue === "object" || typeof newValue === "function");
|
|
2940
|
+
const oldValueIsObjectLike = oldValue !== null && (typeof oldValue === "object" || typeof oldValue === "function");
|
|
2941
|
+
if ((newValueIsObjectLike || oldValueIsObjectLike) && this._equalityService.isEqual(newValue, oldValue)) {
|
|
2942
|
+
return;
|
|
2943
|
+
}
|
|
2944
|
+
const stateChange = {
|
|
2946
2945
|
oldContext: oldContext ?? context,
|
|
2947
2946
|
context,
|
|
2948
2947
|
index,
|
|
2949
2948
|
oldValue,
|
|
2950
2949
|
newValue
|
|
2951
|
-
}
|
|
2950
|
+
};
|
|
2951
|
+
this.emitStateChangeEvents(stateChange);
|
|
2952
|
+
if (this.shouldPublish(this._changed)) {
|
|
2953
|
+
this._changed.next(stateChange);
|
|
2954
|
+
}
|
|
2952
2955
|
}
|
|
2953
|
-
updateState(newContext, oldContext, index, newValue, watched) {
|
|
2954
|
-
this._objectStateManager.replaceState(index, newContext, newValue, oldContext, watched);
|
|
2956
|
+
updateState(newContext, oldContext, index, newValue, watched, ownerId) {
|
|
2957
|
+
this._objectStateManager.replaceState(index, newContext, newValue, oldContext, watched, ownerId);
|
|
2955
2958
|
}
|
|
2956
2959
|
canReleaseState(context, key) {
|
|
2957
2960
|
return this._objectStateManager.getFromId(context)?.release(key).referenceCount === 0;
|
|
2958
2961
|
}
|
|
2959
|
-
increaseStateReferenceCount(context, index, watched) {
|
|
2962
|
+
increaseStateReferenceCount(context, index, watched, ownerId) {
|
|
2960
2963
|
const state = this.getState(context, index);
|
|
2961
2964
|
this._objectStateManager.create(context).instance.create({
|
|
2962
2965
|
value: state,
|
|
2963
2966
|
key: index,
|
|
2964
|
-
watched
|
|
2967
|
+
watched,
|
|
2968
|
+
ownerId
|
|
2965
2969
|
});
|
|
2966
2970
|
return state;
|
|
2967
2971
|
}
|
|
2968
|
-
tryToSubscribeToChange(context, index, indexWatchRule, transferedValue) {
|
|
2972
|
+
tryToSubscribeToChange(context, index, ownerId, indexWatchRule, transferedValue) {
|
|
2969
2973
|
this._stateChangeSubscriptionManager.create(context).instance.create({
|
|
2970
2974
|
index,
|
|
2971
2975
|
indexWatchRule,
|
|
2972
|
-
onChanged: /* @__PURE__ */ __name((change) => this.onChange(change, true), "onChanged"),
|
|
2976
|
+
onChanged: /* @__PURE__ */ __name((change) => this.onChange(change, true, ownerId), "onChanged"),
|
|
2973
2977
|
init: /* @__PURE__ */ __name((observer) => {
|
|
2974
2978
|
if (observer.value !== void 0) {
|
|
2975
|
-
this.setInitialValue(context, index, observer.value, transferedValue, true);
|
|
2979
|
+
this.setInitialValue(context, index, observer.value, transferedValue, true, ownerId);
|
|
2976
2980
|
}
|
|
2977
2981
|
observer.init();
|
|
2978
2982
|
}, "init")
|
|
@@ -2985,65 +2989,91 @@ var StateManager = class {
|
|
|
2985
2989
|
return this.getState(context, key);
|
|
2986
2990
|
}
|
|
2987
2991
|
}
|
|
2988
|
-
getStateChanges(oldContext, newContext) {
|
|
2992
|
+
getStateChanges(oldContext, newContext, parentOwnerId) {
|
|
2989
2993
|
const oldState = this._objectStateManager.getFromId(oldContext);
|
|
2990
2994
|
if (!oldState) {
|
|
2991
2995
|
return [];
|
|
2992
2996
|
}
|
|
2993
|
-
|
|
2994
|
-
|
|
2997
|
+
const stateChanges = [];
|
|
2998
|
+
this.collectStateChanges(oldContext, newContext, parentOwnerId, oldState, stateChanges);
|
|
2999
|
+
return stateChanges;
|
|
3000
|
+
}
|
|
3001
|
+
collectStateChanges(oldContext, newContext, parentOwnerId, oldState, changes) {
|
|
3002
|
+
if (!oldState) {
|
|
3003
|
+
return;
|
|
3004
|
+
}
|
|
3005
|
+
for (const index of oldState.ids()) {
|
|
3006
|
+
const state = oldState.getFromId(index);
|
|
3007
|
+
if (!state) {
|
|
3008
|
+
continue;
|
|
3009
|
+
}
|
|
3010
|
+
const { value: oldValue, watched, ownerId } = state;
|
|
3011
|
+
if (ownerId !== parentOwnerId) {
|
|
3012
|
+
continue;
|
|
3013
|
+
}
|
|
2995
3014
|
const newValue = this.getValue(newContext, index);
|
|
2996
|
-
if (oldContext === newContext
|
|
2997
|
-
|
|
3015
|
+
if (oldContext === newContext) {
|
|
3016
|
+
if (oldValue === newValue || oldValue !== oldValue && newValue !== newValue) {
|
|
3017
|
+
continue;
|
|
3018
|
+
}
|
|
3019
|
+
const newValueIsObjectLike = newValue !== null && (typeof newValue === "object" || typeof newValue === "function");
|
|
3020
|
+
const oldValueIsObjectLike = oldValue !== null && (typeof oldValue === "object" || typeof oldValue === "function");
|
|
3021
|
+
if ((newValueIsObjectLike || oldValueIsObjectLike) && this._equalityService.isEqual(oldValue, newValue)) {
|
|
3022
|
+
continue;
|
|
3023
|
+
}
|
|
2998
3024
|
}
|
|
2999
3025
|
if (newValue === PENDING) {
|
|
3000
3026
|
this._pending.set(newContext, oldValue);
|
|
3001
3027
|
}
|
|
3002
|
-
|
|
3028
|
+
changes.push({
|
|
3003
3029
|
oldContext,
|
|
3004
3030
|
context: newContext,
|
|
3005
3031
|
index,
|
|
3006
3032
|
oldValue,
|
|
3007
3033
|
newValue,
|
|
3008
3034
|
watched
|
|
3009
|
-
};
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
tryRebindingNestedState(newValue, oldValue) {
|
|
3019
|
-
const stateChanges = this.getStateChanges(oldValue, newValue);
|
|
3035
|
+
});
|
|
3036
|
+
if (newValue === PENDING) {
|
|
3037
|
+
continue;
|
|
3038
|
+
}
|
|
3039
|
+
this.collectStateChanges(oldValue, newValue, ownerId, this._objectStateManager.getFromId(oldValue), changes);
|
|
3040
|
+
}
|
|
3041
|
+
}
|
|
3042
|
+
tryRebindingNestedState(newValue, oldValue, ownerId) {
|
|
3043
|
+
const stateChanges = this.getStateChanges(oldValue, newValue, ownerId);
|
|
3020
3044
|
if (stateChanges.length === 0) {
|
|
3021
3045
|
return;
|
|
3022
3046
|
}
|
|
3023
|
-
const
|
|
3047
|
+
const emittedByContext = /* @__PURE__ */ new Map();
|
|
3024
3048
|
const shouldEmitChange = /* @__PURE__ */ __name((context, index) => {
|
|
3025
|
-
|
|
3049
|
+
let emittedIndexes = emittedByContext.get(context);
|
|
3050
|
+
if (!emittedIndexes) {
|
|
3051
|
+
emittedIndexes = /* @__PURE__ */ new Set();
|
|
3052
|
+
emittedByContext.set(context, emittedIndexes);
|
|
3053
|
+
}
|
|
3054
|
+
if (emittedIndexes.has(index)) {
|
|
3026
3055
|
return false;
|
|
3027
3056
|
}
|
|
3028
|
-
|
|
3029
|
-
context,
|
|
3030
|
-
index
|
|
3031
|
-
]);
|
|
3057
|
+
emittedIndexes.add(index);
|
|
3032
3058
|
return true;
|
|
3033
3059
|
}, "shouldEmitChange");
|
|
3034
3060
|
for (const stateChange of stateChanges) {
|
|
3035
3061
|
Assertion.assert(() => stateChange.context !== stateChange.oldContext, "Expected old and new context not to be equal");
|
|
3036
|
-
|
|
3062
|
+
const contextChange = {
|
|
3037
3063
|
context: stateChange.context,
|
|
3038
3064
|
oldContext: stateChange.oldContext,
|
|
3039
3065
|
index: stateChange.index
|
|
3040
|
-
}
|
|
3066
|
+
};
|
|
3067
|
+
this.emitContextChangedEvents(contextChange);
|
|
3068
|
+
if (this.shouldPublish(this._contextChanged)) {
|
|
3069
|
+
this._contextChanged.next(contextChange);
|
|
3070
|
+
}
|
|
3041
3071
|
if (!stateChange.watched) {
|
|
3042
3072
|
this.internalUnregister(stateChange.oldContext, stateChange.index, void 0);
|
|
3043
3073
|
this.internalSetState(stateChange.context, stateChange.index, stateChange.newValue, {
|
|
3044
3074
|
context: stateChange.oldContext,
|
|
3045
3075
|
value: stateChange.oldValue
|
|
3046
|
-
});
|
|
3076
|
+
}, ownerId);
|
|
3047
3077
|
continue;
|
|
3048
3078
|
}
|
|
3049
3079
|
const instanceGroupInfos = this._stateChangeSubscriptionManager.instanceGroupInfoEntriesForContext(stateChange.oldContext);
|
|
@@ -3058,36 +3088,159 @@ var StateManager = class {
|
|
|
3058
3088
|
if (indexWatchRule) {
|
|
3059
3089
|
indexWatchRule.context = stateChange.context;
|
|
3060
3090
|
}
|
|
3061
|
-
this.tryToSubscribeToChange(stateChange.context, stateChange.index, indexWatchRule, rebindingOptions);
|
|
3091
|
+
this.tryToSubscribeToChange(stateChange.context, stateChange.index, ownerId, indexWatchRule, rebindingOptions);
|
|
3062
3092
|
}
|
|
3063
3093
|
}
|
|
3064
3094
|
}
|
|
3065
|
-
|
|
3066
|
-
this.
|
|
3095
|
+
addStateEventSubscription(context, index, subscription) {
|
|
3096
|
+
let subscriptionsByIndex = this._stateEventSubscriptionsByContext.get(context);
|
|
3097
|
+
if (!subscriptionsByIndex) {
|
|
3098
|
+
subscriptionsByIndex = /* @__PURE__ */ new Map();
|
|
3099
|
+
this._stateEventSubscriptionsByContext.set(context, subscriptionsByIndex);
|
|
3100
|
+
}
|
|
3101
|
+
let subscriptions = subscriptionsByIndex.get(index);
|
|
3102
|
+
if (!subscriptions) {
|
|
3103
|
+
subscriptions = /* @__PURE__ */ new Set();
|
|
3104
|
+
subscriptionsByIndex.set(index, subscriptions);
|
|
3105
|
+
}
|
|
3106
|
+
subscriptions.add(subscription);
|
|
3107
|
+
}
|
|
3108
|
+
removeStateEventSubscription(context, index, subscription, releaseToPool = true) {
|
|
3109
|
+
if (!subscription.active) {
|
|
3110
|
+
return;
|
|
3111
|
+
}
|
|
3112
|
+
const subscriptionsByIndex = this._stateEventSubscriptionsByContext.get(context);
|
|
3113
|
+
if (!subscriptionsByIndex) {
|
|
3114
|
+
if (releaseToPool) {
|
|
3115
|
+
this.releaseStateEventSubscription(subscription);
|
|
3116
|
+
}
|
|
3117
|
+
return;
|
|
3118
|
+
}
|
|
3119
|
+
const subscriptions = subscriptionsByIndex.get(index);
|
|
3120
|
+
if (!subscriptions) {
|
|
3121
|
+
if (releaseToPool) {
|
|
3122
|
+
this.releaseStateEventSubscription(subscription);
|
|
3123
|
+
}
|
|
3124
|
+
return;
|
|
3125
|
+
}
|
|
3126
|
+
subscriptions.delete(subscription);
|
|
3127
|
+
if (subscriptions.size === 0) {
|
|
3128
|
+
subscriptionsByIndex.delete(index);
|
|
3129
|
+
}
|
|
3130
|
+
if (subscriptionsByIndex.size === 0) {
|
|
3131
|
+
this._stateEventSubscriptionsByContext.delete(context);
|
|
3132
|
+
}
|
|
3133
|
+
if (releaseToPool) {
|
|
3134
|
+
this.releaseStateEventSubscription(subscription);
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
emitStateChangeEvents(change) {
|
|
3138
|
+
const subscriptions = this._stateEventSubscriptionsByContext.get(change.context)?.get(change.index);
|
|
3139
|
+
if (!subscriptions || subscriptions.size === 0) {
|
|
3140
|
+
return;
|
|
3141
|
+
}
|
|
3142
|
+
for (const subscription of subscriptions) {
|
|
3143
|
+
subscription.listener.onStateChange(change);
|
|
3144
|
+
}
|
|
3145
|
+
}
|
|
3146
|
+
emitContextChangedEvents(change) {
|
|
3147
|
+
const subscriptions = this._stateEventSubscriptionsByContext.get(change.oldContext)?.get(change.index);
|
|
3148
|
+
if (!subscriptions || subscriptions.size === 0) {
|
|
3149
|
+
return;
|
|
3150
|
+
}
|
|
3151
|
+
while (subscriptions.size > 0) {
|
|
3152
|
+
const subscriptionIterator = subscriptions.values().next();
|
|
3153
|
+
if (subscriptionIterator.done) {
|
|
3154
|
+
break;
|
|
3155
|
+
}
|
|
3156
|
+
const subscription = subscriptionIterator.value;
|
|
3157
|
+
this.removeStateEventSubscription(subscription.context, subscription.index, subscription, false);
|
|
3158
|
+
subscription.context = change.context;
|
|
3159
|
+
this.addStateEventSubscription(subscription.context, subscription.index, subscription);
|
|
3160
|
+
subscription.listener.onContextChanged(change);
|
|
3161
|
+
}
|
|
3162
|
+
}
|
|
3163
|
+
shouldPublish(subject) {
|
|
3164
|
+
return subject.observed === void 0 || subject.observed;
|
|
3165
|
+
}
|
|
3166
|
+
acquireStateEventSubscription(context, index, listener) {
|
|
3167
|
+
const subscription = this._stateEventSubscriptionPool.pop() ?? {
|
|
3168
|
+
active: true,
|
|
3169
|
+
context,
|
|
3170
|
+
index,
|
|
3171
|
+
listener
|
|
3172
|
+
};
|
|
3173
|
+
subscription.active = true;
|
|
3174
|
+
subscription.context = context;
|
|
3175
|
+
subscription.index = index;
|
|
3176
|
+
subscription.listener = listener;
|
|
3177
|
+
return subscription;
|
|
3178
|
+
}
|
|
3179
|
+
releaseStateEventSubscription(subscription) {
|
|
3180
|
+
if (!subscription.active) {
|
|
3181
|
+
return;
|
|
3182
|
+
}
|
|
3183
|
+
subscription.active = false;
|
|
3184
|
+
this._stateEventSubscriptionPool.push(subscription);
|
|
3185
|
+
}
|
|
3186
|
+
setInitialValue(context, index, initialValue, transferedValue, watched, ownerId) {
|
|
3187
|
+
this.updateState(context, transferedValue?.context ?? context, index, initialValue, watched, ownerId);
|
|
3067
3188
|
if (!transferedValue?.shouldEmitChange || transferedValue.shouldEmitChange(context, index)) {
|
|
3068
3189
|
this.emitChange(context, index, initialValue, transferedValue?.value, transferedValue?.context);
|
|
3069
3190
|
}
|
|
3070
3191
|
}
|
|
3071
3192
|
getChainChanges(chain) {
|
|
3072
|
-
if (!chain) {
|
|
3193
|
+
if (!chain || chain.length === 0) {
|
|
3073
3194
|
return [];
|
|
3074
3195
|
}
|
|
3075
|
-
const
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3196
|
+
const chainChanges = [];
|
|
3197
|
+
for (let i = 0; i < chain.length; i++) {
|
|
3198
|
+
const chainPart = chain[i];
|
|
3199
|
+
const { context, index } = chainPart;
|
|
3200
|
+
if (!this._stateChangeSubscriptionManager.isRegistered(context, index)) {
|
|
3201
|
+
continue;
|
|
3202
|
+
}
|
|
3203
|
+
chainChanges.push({
|
|
3204
|
+
context,
|
|
3205
|
+
index,
|
|
3206
|
+
oldValue: this.getOldValue(context, index),
|
|
3207
|
+
value: this.getValue(context, index)
|
|
3208
|
+
});
|
|
3209
|
+
}
|
|
3210
|
+
return chainChanges;
|
|
3081
3211
|
}
|
|
3082
|
-
getCurrentValue(context,
|
|
3083
|
-
|
|
3084
|
-
|
|
3212
|
+
getCurrentValue(context, index) {
|
|
3213
|
+
if (this._pending.has(context)) {
|
|
3214
|
+
const value = this._pending.get(context);
|
|
3085
3215
|
this._pending.delete(context);
|
|
3086
3216
|
return value;
|
|
3087
3217
|
}
|
|
3088
|
-
return this.getState(context,
|
|
3218
|
+
return this.getState(context, index);
|
|
3089
3219
|
}
|
|
3090
|
-
onChange(change, watched = false) {
|
|
3220
|
+
onChange(change, watched = false, ownerId) {
|
|
3221
|
+
const chain = change.chain;
|
|
3222
|
+
if (!chain || chain.length === 0) {
|
|
3223
|
+
return;
|
|
3224
|
+
}
|
|
3225
|
+
if (chain.length === 1) {
|
|
3226
|
+
const chainPart = chain[0];
|
|
3227
|
+
const { context, index } = chainPart;
|
|
3228
|
+
if (!this._stateChangeSubscriptionManager.isRegistered(context, index)) {
|
|
3229
|
+
return;
|
|
3230
|
+
}
|
|
3231
|
+
const value = this.getValue(context, index);
|
|
3232
|
+
const oldValue = this.getOldValue(context, index);
|
|
3233
|
+
this._startChangeCycle.next();
|
|
3234
|
+
try {
|
|
3235
|
+
const currentValue = this.getCurrentValue(context, index);
|
|
3236
|
+
this.tryRebindingNestedState(change.newValue, currentValue, ownerId);
|
|
3237
|
+
this.updateState(context, context, index, value, watched, ownerId);
|
|
3238
|
+
this.emitChange(context, index, value, oldValue);
|
|
3239
|
+
} finally {
|
|
3240
|
+
this._endChangeCycle.next();
|
|
3241
|
+
}
|
|
3242
|
+
return;
|
|
3243
|
+
}
|
|
3091
3244
|
const chainChanges = this.getChainChanges(change.chain);
|
|
3092
3245
|
if (chainChanges.length === 0) {
|
|
3093
3246
|
return;
|
|
@@ -3096,22 +3249,28 @@ var StateManager = class {
|
|
|
3096
3249
|
try {
|
|
3097
3250
|
const chainLeaf = chainChanges[chainChanges.length - 1];
|
|
3098
3251
|
const currentValue = this.getCurrentValue(chainLeaf.context, chainLeaf.index);
|
|
3099
|
-
this.tryRebindingNestedState(change.newValue, currentValue);
|
|
3100
|
-
|
|
3101
|
-
|
|
3252
|
+
this.tryRebindingNestedState(change.newValue, currentValue, ownerId);
|
|
3253
|
+
for (let i = 0; i < chainChanges.length; i++) {
|
|
3254
|
+
const chainChange = chainChanges[i];
|
|
3255
|
+
this.updateState(chainChange.context, chainChange.context, chainChange.index, chainChange.value, watched, ownerId);
|
|
3256
|
+
}
|
|
3257
|
+
for (let i = 0; i < chainChanges.length; i++) {
|
|
3258
|
+
const chainChange = chainChanges[i];
|
|
3259
|
+
this.emitChange(chainChange.context, chainChange.index, chainChange.value, chainChange.oldValue);
|
|
3260
|
+
}
|
|
3102
3261
|
} finally {
|
|
3103
3262
|
this._endChangeCycle.next();
|
|
3104
3263
|
}
|
|
3105
3264
|
}
|
|
3106
3265
|
};
|
|
3107
|
-
StateManager =
|
|
3108
|
-
|
|
3266
|
+
StateManager = _ts_decorate24([
|
|
3267
|
+
Injectable24(),
|
|
3109
3268
|
_ts_param24(0, Inject23(RsXStateManagerInjectionTokens.IObjectPropertyObserverProxyPairManager)),
|
|
3110
3269
|
_ts_param24(1, Inject23(RsXStateManagerInjectionTokens.IObjectStateManager)),
|
|
3111
|
-
_ts_param24(2, Inject23(
|
|
3112
|
-
_ts_param24(3, Inject23(
|
|
3113
|
-
_ts_param24(4, Inject23(
|
|
3114
|
-
_ts_param24(5, Inject23(
|
|
3270
|
+
_ts_param24(2, Inject23(RsXCoreInjectionTokens20.IErrorLog)),
|
|
3271
|
+
_ts_param24(3, Inject23(RsXCoreInjectionTokens20.IGuidFactory)),
|
|
3272
|
+
_ts_param24(4, Inject23(RsXCoreInjectionTokens20.IIndexValueAccessor)),
|
|
3273
|
+
_ts_param24(5, Inject23(RsXCoreInjectionTokens20.IEqualityService)),
|
|
3115
3274
|
_ts_metadata24("design:type", Function),
|
|
3116
3275
|
_ts_metadata24("design:paramtypes", [
|
|
3117
3276
|
typeof IObjectPropertyObserverProxyPairManager === "undefined" ? Object : IObjectPropertyObserverProxyPairManager,
|
|
@@ -3176,7 +3335,6 @@ var RsXStateManagerModule = new ContainerModule((options) => {
|
|
|
3176
3335
|
options.bind(RsXStateManagerInjectionTokens.IDateProxyFactory).to(DateProxyFactory).inSingletonScope();
|
|
3177
3336
|
options.bind(RsXStateManagerInjectionTokens.IPromiseProxyFactory).to(PromiseProxyFactory).inSingletonScope();
|
|
3178
3337
|
options.bind(RsXStateManagerInjectionTokens.IObservableProxyFactory).to(ObservableProxyFactory).inSingletonScope();
|
|
3179
|
-
options.bind(RsXStateManagerInjectionTokens.IProxyRegistry).to(ProxyRegistry).inSingletonScope();
|
|
3180
3338
|
options.bind(RsXStateManagerInjectionTokens.IObjectPropertyObserverProxyPairManager).to(ObjectPropertyObserverProxyPairManager).inSingletonScope();
|
|
3181
3339
|
registerMultiInjectServices(options, RsXStateManagerInjectionTokens.IObjectObserverProxyPairFactoryList, defaultObjectObserverProxyPairFactoryList);
|
|
3182
3340
|
registerMultiInjectServices(options, RsXStateManagerInjectionTokens.IPropertyObserverProxyPairFactoryList, defaultPropertyObserverProxyPairFactoryList);
|
|
@@ -3226,7 +3384,6 @@ export {
|
|
|
3226
3384
|
PlainObjectObserverProxyPairFactory,
|
|
3227
3385
|
PromiseObserverProxyPairFactory,
|
|
3228
3386
|
PromiseProxyFactory,
|
|
3229
|
-
ProxyRegistry,
|
|
3230
3387
|
RsXStateManagerInjectionTokens,
|
|
3231
3388
|
RsXStateManagerModule,
|
|
3232
3389
|
SetObserverProxyPairFactory,
|