@web-atoms/core 2.1.479 → 2.2.0
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/App.js +189 -242
- package/dist/App.js.map +1 -1
- package/dist/Atom.js +123 -138
- package/dist/Atom.js.map +1 -1
- package/dist/MockApp.js +32 -32
- package/dist/MockApp.js.map +1 -1
- package/dist/Pack.js +11 -17
- package/dist/Pack.js.map +1 -1
- package/dist/core/AtomBinder.js +187 -199
- package/dist/core/AtomBinder.js.map +1 -1
- package/dist/core/AtomBridge.js +251 -274
- package/dist/core/AtomBridge.js.map +1 -1
- package/dist/core/AtomComponent.js +509 -592
- package/dist/core/AtomComponent.js.map +1 -1
- package/dist/core/AtomDispatcher.js +50 -54
- package/dist/core/AtomDispatcher.js.map +1 -1
- package/dist/core/AtomDisposableList.js +31 -36
- package/dist/core/AtomDisposableList.js.map +1 -1
- package/dist/core/AtomEnumerator.js +19 -21
- package/dist/core/AtomEnumerator.js.map +1 -1
- package/dist/core/AtomList.js +168 -232
- package/dist/core/AtomList.js.map +1 -1
- package/dist/core/AtomLoader.js +274 -257
- package/dist/core/AtomLoader.js.map +1 -1
- package/dist/core/AtomMap.js +15 -20
- package/dist/core/AtomMap.js.map +1 -1
- package/dist/core/AtomOnce.js +31 -71
- package/dist/core/AtomOnce.js.map +1 -1
- package/dist/core/AtomSelectableList.js +210 -223
- package/dist/core/AtomSelectableList.js.map +1 -1
- package/dist/core/AtomUri.js +78 -85
- package/dist/core/AtomUri.js.map +1 -1
- package/dist/core/AtomWatcher.js +112 -186
- package/dist/core/AtomWatcher.js.map +1 -1
- package/dist/core/Bind.js +288 -380
- package/dist/core/Bind.js.map +1 -1
- package/dist/core/BindableProperty.js +40 -59
- package/dist/core/BindableProperty.js.map +1 -1
- package/dist/core/CancelTokenFactory.js +42 -49
- package/dist/core/CancelTokenFactory.js.map +1 -1
- package/dist/core/Color.js +9 -13
- package/dist/core/Color.js.map +1 -1
- package/dist/core/Colors.js +254 -254
- package/dist/core/Colors.js.map +1 -1
- package/dist/core/Defer.js +37 -47
- package/dist/core/Defer.js.map +1 -1
- package/dist/core/EventScope.js +52 -49
- package/dist/core/EventScope.js.map +1 -1
- package/dist/core/ExpressionParser.js +152 -216
- package/dist/core/ExpressionParser.js.map +1 -1
- package/dist/core/FormattedError.js +17 -19
- package/dist/core/FormattedError.js.map +1 -1
- package/dist/core/FormattedString.js +14 -16
- package/dist/core/FormattedString.js.map +1 -1
- package/dist/core/IFetchEvent.js +9 -13
- package/dist/core/IFetchEvent.js.map +1 -1
- package/dist/core/IScreen.js +9 -13
- package/dist/core/IScreen.js.map +1 -1
- package/dist/core/IValueConverter.js +9 -13
- package/dist/core/IValueConverter.js.map +1 -1
- package/dist/core/InheritedProperty.js +83 -99
- package/dist/core/InheritedProperty.js.map +1 -1
- package/dist/core/InjectProperty.js +22 -29
- package/dist/core/InjectProperty.js.map +1 -1
- package/dist/core/KeyValuePairs.js +9 -13
- package/dist/core/KeyValuePairs.js.map +1 -1
- package/dist/core/Markdown.js +22 -24
- package/dist/core/Markdown.js.map +1 -1
- package/dist/core/MarkdownError.js +20 -20
- package/dist/core/MarkdownError.js.map +1 -1
- package/dist/core/PropertyBinding.js +11 -16
- package/dist/core/PropertyBinding.js.map +1 -1
- package/dist/core/PropertyMap.js +37 -44
- package/dist/core/PropertyMap.js.map +1 -1
- package/dist/core/SingleInvoker.js +51 -54
- package/dist/core/SingleInvoker.js.map +1 -1
- package/dist/core/StringHelper.js +36 -39
- package/dist/core/StringHelper.js.map +1 -1
- package/dist/core/TransientDisposable.js +23 -26
- package/dist/core/TransientDisposable.js.map +1 -1
- package/dist/core/WatchProperty.js +34 -34
- package/dist/core/WatchProperty.js.map +1 -1
- package/dist/core/WebImage.js +15 -17
- package/dist/core/WebImage.js.map +1 -1
- package/dist/core/XNode.js +129 -157
- package/dist/core/XNode.js.map +1 -1
- package/dist/core/sleep.js +34 -40
- package/dist/core/sleep.js.map +1 -1
- package/dist/core/types.js +80 -88
- package/dist/core/types.js.map +1 -1
- package/dist/di/DISingleton.js +23 -21
- package/dist/di/DISingleton.js.map +1 -1
- package/dist/di/DITransient.js +23 -21
- package/dist/di/DITransient.js.map +1 -1
- package/dist/di/IMockOrInject.js +9 -13
- package/dist/di/IMockOrInject.js.map +1 -1
- package/dist/di/IServiceProvider.js +9 -13
- package/dist/di/IServiceProvider.js.map +1 -1
- package/dist/di/Inject.js +79 -88
- package/dist/di/Inject.js.map +1 -1
- package/dist/di/Register.js +49 -51
- package/dist/di/Register.js.map +1 -1
- package/dist/di/RegisterScoped.js +20 -20
- package/dist/di/RegisterScoped.js.map +1 -1
- package/dist/di/RegisterSingleton.js +20 -20
- package/dist/di/RegisterSingleton.js.map +1 -1
- package/dist/di/ServiceCollection.js +46 -45
- package/dist/di/ServiceCollection.js.map +1 -1
- package/dist/di/ServiceProvider.js +111 -109
- package/dist/di/ServiceProvider.js.map +1 -1
- package/dist/di/TypeKey.js +20 -43
- package/dist/di/TypeKey.js.map +1 -1
- package/dist/services/BusyIndicatorService.js +26 -32
- package/dist/services/BusyIndicatorService.js.map +1 -1
- package/dist/services/CacheService.js +112 -98
- package/dist/services/CacheService.js.map +1 -1
- package/dist/services/JsonService.js +131 -133
- package/dist/services/JsonService.js.map +1 -1
- package/dist/services/MockNavigationService.js +152 -221
- package/dist/services/MockNavigationService.js.map +1 -1
- package/dist/services/NavigationService.js +140 -154
- package/dist/services/NavigationService.js.map +1 -1
- package/dist/services/ReferenceService.js +47 -50
- package/dist/services/ReferenceService.js.map +1 -1
- package/dist/services/http/AjaxOptions.js +12 -16
- package/dist/services/http/AjaxOptions.js.map +1 -1
- package/dist/services/http/JsonError.js +17 -19
- package/dist/services/http/JsonError.js.map +1 -1
- package/dist/services/http/RestService.js +395 -583
- package/dist/services/http/RestService.js.map +1 -1
- package/dist/style/StyleRule.js +1830 -1844
- package/dist/style/StyleRule.js.map +1 -1
- package/dist/test.js +9 -66
- package/dist/test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/unit/AtomTest.js +54 -36
- package/dist/unit/AtomTest.js.map +1 -1
- package/dist/unit/AtomWebTest.js +64 -43
- package/dist/unit/AtomWebTest.js.map +1 -1
- package/dist/view-model/Action.js +152 -134
- package/dist/view-model/Action.js.map +1 -1
- package/dist/view-model/AtomViewModel.js +318 -416
- package/dist/view-model/AtomViewModel.js.map +1 -1
- package/dist/view-model/AtomWindowViewModel.js +55 -90
- package/dist/view-model/AtomWindowViewModel.js.map +1 -1
- package/dist/view-model/BindableUrlParameter.js +25 -25
- package/dist/view-model/BindableUrlParameter.js.map +1 -1
- package/dist/view-model/Delay.js +34 -46
- package/dist/view-model/Delay.js.map +1 -1
- package/dist/view-model/Disposable.js +31 -39
- package/dist/view-model/Disposable.js.map +1 -1
- package/dist/view-model/Load.js +119 -123
- package/dist/view-model/Load.js.map +1 -1
- package/dist/view-model/Once.js +48 -53
- package/dist/view-model/Once.js.map +1 -1
- package/dist/view-model/baseTypes.js +15 -20
- package/dist/view-model/baseTypes.js.map +1 -1
- package/dist/view-model/bindPromise.js +42 -48
- package/dist/view-model/bindPromise.js.map +1 -1
- package/dist/view-model/bindProperty.js +17 -27
- package/dist/view-model/bindProperty.js.map +1 -1
- package/dist/view-model/bindUrlParameter.js +55 -66
- package/dist/view-model/bindUrlParameter.js.map +1 -1
- package/dist/web/WebApp.js +136 -135
- package/dist/web/WebApp.js.map +1 -1
- package/dist/web/controls/AtomAlertWindow.js +61 -90
- package/dist/web/controls/AtomAlertWindow.js.map +1 -1
- package/dist/web/controls/AtomComboBox.js +82 -86
- package/dist/web/controls/AtomComboBox.js.map +1 -1
- package/dist/web/controls/AtomContentControl.js +52 -50
- package/dist/web/controls/AtomContentControl.js.map +1 -1
- package/dist/web/controls/AtomControl.js +435 -476
- package/dist/web/controls/AtomControl.js.map +1 -1
- package/dist/web/controls/AtomFrame.js +224 -226
- package/dist/web/controls/AtomFrame.js.map +1 -1
- package/dist/web/controls/AtomGridSplitter.js +67 -65
- package/dist/web/controls/AtomGridSplitter.js.map +1 -1
- package/dist/web/controls/AtomGridView.js +228 -254
- package/dist/web/controls/AtomGridView.js.map +1 -1
- package/dist/web/controls/AtomItemsControl.js +622 -761
- package/dist/web/controls/AtomItemsControl.js.map +1 -1
- package/dist/web/controls/AtomListBox.js +56 -64
- package/dist/web/controls/AtomListBox.js.map +1 -1
- package/dist/web/controls/AtomNotification.js +59 -54
- package/dist/web/controls/AtomNotification.js.map +1 -1
- package/dist/web/controls/AtomPage.js +18 -20
- package/dist/web/controls/AtomPage.js.map +1 -1
- package/dist/web/controls/AtomPageLink.js +131 -107
- package/dist/web/controls/AtomPageLink.js.map +1 -1
- package/dist/web/controls/AtomTabbedPage.js +269 -246
- package/dist/web/controls/AtomTabbedPage.js.map +1 -1
- package/dist/web/controls/AtomTemplate.js +14 -17
- package/dist/web/controls/AtomTemplate.js.map +1 -1
- package/dist/web/controls/AtomTemplateControl.js +38 -40
- package/dist/web/controls/AtomTemplateControl.js.map +1 -1
- package/dist/web/controls/AtomToggleButtonBar.js +37 -37
- package/dist/web/controls/AtomToggleButtonBar.js.map +1 -1
- package/dist/web/controls/AtomViewPager.js +87 -67
- package/dist/web/controls/AtomViewPager.js.map +1 -1
- package/dist/web/controls/AtomViewStack.js +30 -32
- package/dist/web/controls/AtomViewStack.js.map +1 -1
- package/dist/web/controls/AtomWindow.js +218 -233
- package/dist/web/controls/AtomWindow.js.map +1 -1
- package/dist/web/core/AtomUI.js +160 -172
- package/dist/web/core/AtomUI.js.map +1 -1
- package/dist/web/core/Encoder.js +152 -199
- package/dist/web/core/Encoder.js.map +1 -1
- package/dist/web/core/HtmlNode.js +165 -161
- package/dist/web/core/HtmlNode.js.map +1 -1
- package/dist/web/images/Busy.js +13 -14
- package/dist/web/images/Busy.js.map +1 -1
- package/dist/web/images/BusyDataUrl.js +14 -882
- package/dist/web/images/BusyDataUrl.js.map +1 -1
- package/dist/web/images/Button.js +13 -15
- package/dist/web/images/Button.js.map +1 -1
- package/dist/web/images/ButtonDataUrl.js +14 -43
- package/dist/web/images/ButtonDataUrl.js.map +1 -1
- package/dist/web/images/CloseButton.js +13 -14
- package/dist/web/images/CloseButton.js.map +1 -1
- package/dist/web/images/CloseButtonDataUrl.js +14 -43
- package/dist/web/images/CloseButtonDataUrl.js.map +1 -1
- package/dist/web/images/CloseButtonHover.js +13 -14
- package/dist/web/images/CloseButtonHover.js.map +1 -1
- package/dist/web/images/CloseButtonHoverDataUrl.js +14 -37
- package/dist/web/images/CloseButtonHoverDataUrl.js.map +1 -1
- package/dist/web/samples/MovieService.js +60 -49
- package/dist/web/samples/MovieService.js.map +1 -1
- package/dist/web/samples/demo/app.js +23 -23
- package/dist/web/samples/demo/app.js.map +1 -1
- package/dist/web/samples/demo/views/MovieList.js +64 -67
- package/dist/web/samples/demo/views/MovieList.js.map +1 -1
- package/dist/web/samples/demo/views/MovieListViewModel.js +102 -82
- package/dist/web/samples/demo/views/MovieListViewModel.js.map +1 -1
- package/dist/web/samples/tabs/app.js +57 -39
- package/dist/web/samples/tabs/app.js.map +1 -1
- package/dist/web/samples/tabs/views/List.js +13 -14
- package/dist/web/samples/tabs/views/List.js.map +1 -1
- package/dist/web/samples/tabs/views/ListDataUrl.js +14 -18
- package/dist/web/samples/tabs/views/ListDataUrl.js.map +1 -1
- package/dist/web/samples/tabs/views/Page1.js +94 -74
- package/dist/web/samples/tabs/views/Page1.js.map +1 -1
- package/dist/web/samples/tabs/views/TabHost.js +82 -63
- package/dist/web/samples/tabs/views/TabHost.js.map +1 -1
- package/dist/web/samples/window/WindowSample.js +27 -23
- package/dist/web/samples/window/WindowSample.js.map +1 -1
- package/dist/web/services/MarkdownService.js +35 -51
- package/dist/web/services/MarkdownService.js.map +1 -1
- package/dist/web/services/NotificationPopup.js +48 -44
- package/dist/web/services/NotificationPopup.js.map +1 -1
- package/dist/web/services/PopupService.js +770 -940
- package/dist/web/services/PopupService.js.map +1 -1
- package/dist/web/services/WebBusyIndicatorService.js +80 -86
- package/dist/web/services/WebBusyIndicatorService.js.map +1 -1
- package/dist/web/services/WindowService.js +332 -418
- package/dist/web/services/WindowService.js.map +1 -1
- package/dist/web/styles/AtomAlertWindowStyle.js +44 -34
- package/dist/web/styles/AtomAlertWindowStyle.js.map +1 -1
- package/dist/web/styles/AtomFrameStyle.js +27 -20
- package/dist/web/styles/AtomFrameStyle.js.map +1 -1
- package/dist/web/styles/AtomListBoxStyle.js +34 -32
- package/dist/web/styles/AtomListBoxStyle.js.map +1 -1
- package/dist/web/styles/AtomNotificationStyle.js +33 -33
- package/dist/web/styles/AtomNotificationStyle.js.map +1 -1
- package/dist/web/styles/AtomPageLinkStyle.js +21 -22
- package/dist/web/styles/AtomPageLinkStyle.js.map +1 -1
- package/dist/web/styles/AtomPopupStyle.js +21 -23
- package/dist/web/styles/AtomPopupStyle.js.map +1 -1
- package/dist/web/styles/AtomStyle.js +69 -73
- package/dist/web/styles/AtomStyle.js.map +1 -1
- package/dist/web/styles/AtomStyleSheet.js +54 -57
- package/dist/web/styles/AtomStyleSheet.js.map +1 -1
- package/dist/web/styles/AtomTabbedPageStyle.js +110 -105
- package/dist/web/styles/AtomTabbedPageStyle.js.map +1 -1
- package/dist/web/styles/AtomTheme.js +62 -65
- package/dist/web/styles/AtomTheme.js.map +1 -1
- package/dist/web/styles/AtomToggleButtonBarStyle.js +68 -49
- package/dist/web/styles/AtomToggleButtonBarStyle.js.map +1 -1
- package/dist/web/styles/AtomWindowStyle.js +108 -117
- package/dist/web/styles/AtomWindowStyle.js.map +1 -1
- package/dist/web/styles/CSS.js +71 -81
- package/dist/web/styles/CSS.js.map +1 -1
- package/dist/web/styles/CommonStyles.js +60 -66
- package/dist/web/styles/CommonStyles.js.map +1 -1
- package/dist/web/styles/IStyleDeclaration.js +9 -13
- package/dist/web/styles/IStyleDeclaration.js.map +1 -1
- package/dist/web/styles/StyleBuilder.js +74 -75
- package/dist/web/styles/StyleBuilder.js.map +1 -1
- package/dist/xf/XFApp.js +54 -50
- package/dist/xf/XFApp.js.map +1 -1
- package/dist/xf/controls/AtomXFControl.js +233 -229
- package/dist/xf/controls/AtomXFControl.js.map +1 -1
- package/dist/xf/services/XFBusyIndicatorService.js +34 -34
- package/dist/xf/services/XFBusyIndicatorService.js.map +1 -1
- package/dist/xf/services/XFNavigationService.js +150 -133
- package/dist/xf/services/XFNavigationService.js.map +1 -1
- package/package.json +2 -1
package/dist/di/Register.js
CHANGED
|
@@ -1,54 +1,52 @@
|
|
|
1
|
-
(function (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.Register = void 0;
|
|
13
|
-
const types_1 = require("../core/types");
|
|
14
|
-
const ServiceCollection_1 = require("./ServiceCollection");
|
|
15
|
-
const globalNS = (typeof global === "undefined") ? window : global;
|
|
16
|
-
function evalGlobal(path) {
|
|
17
|
-
if (typeof path === "string") {
|
|
18
|
-
let r = globalNS;
|
|
19
|
-
for (const iterator of path.split(".")) {
|
|
20
|
-
r = r[iterator];
|
|
21
|
-
if (r === undefined || r === null) {
|
|
22
|
-
return r;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return r;
|
|
1
|
+
System.register(["../core/types", "./ServiceCollection"], function (_export, _context) {
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var DI, Scope, ServiceCollection, globalNS;
|
|
5
|
+
function evalGlobal(path) {
|
|
6
|
+
if (typeof path === "string") {
|
|
7
|
+
let r = globalNS;
|
|
8
|
+
for (const iterator of path.split(".")) {
|
|
9
|
+
r = r[iterator];
|
|
10
|
+
if (r === undefined || r === null) {
|
|
11
|
+
return r;
|
|
26
12
|
}
|
|
27
|
-
|
|
13
|
+
}
|
|
14
|
+
return r;
|
|
28
15
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
16
|
+
return path;
|
|
17
|
+
}
|
|
18
|
+
function Register(id, scope) {
|
|
19
|
+
return target => {
|
|
20
|
+
if (typeof id === "object") {
|
|
21
|
+
if (scope) {
|
|
22
|
+
id.scope = scope;
|
|
23
|
+
}
|
|
24
|
+
ServiceCollection.instance.register(id.for || target, id.for ? sp => sp.create(target) : null, id.scope || Scope.Transient, id.id);
|
|
25
|
+
if (id.mockOrInject) {
|
|
26
|
+
if (id.mockOrInject.inject) {
|
|
27
|
+
DI.inject(target, id.mockOrInject.inject);
|
|
28
|
+
} else if (id.mockOrInject.mock) {
|
|
29
|
+
DI.mockType(target, id.mockOrInject.mock);
|
|
30
|
+
} else if (id.mockOrInject.globalVar) {
|
|
31
|
+
ServiceCollection.instance.register(id.for || target, sp => evalGlobal(id.mockOrInject.globalVar), id.scope || Scope.Global, id.id);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
ServiceCollection.instance.register(target, null, scope, id);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
_export("Register", Register);
|
|
40
|
+
return {
|
|
41
|
+
setters: [function (_coreTypes) {
|
|
42
|
+
DI = _coreTypes.DI;
|
|
43
|
+
}, function (_ServiceCollection) {
|
|
44
|
+
Scope = _ServiceCollection.Scope;
|
|
45
|
+
ServiceCollection = _ServiceCollection.ServiceCollection;
|
|
46
|
+
}],
|
|
47
|
+
execute: function () {
|
|
48
|
+
globalNS = typeof global === "undefined" ? window : global;
|
|
51
49
|
}
|
|
52
|
-
|
|
53
|
-
});
|
|
54
|
-
//# sourceMappingURL
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=/home/runner/work/core/core/dist/di/Register.js.map
|
package/dist/di/Register.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"mappings":";;;;EAgBA,SAASA,UAAU,CAACC,IAAkB;IAClC,IAAI,OAAOA,IAAI,KAAK,QAAQ,EAAE;MAC1B,IAAIC,CAAC,GAAGC,QAAQ;MAChB,KAAK,MAAMC,QAAQ,IAAIH,IAAI,CAACI,KAAK,CAAC,GAAG,CAAC,EAAE;QACpCH,CAAC,GAAGA,CAAC,CAACE,QAAQ,CAAC;QACf,IAAIF,CAAC,KAAKI,SAAS,IAAIJ,CAAC,KAAK,IAAI,EAAE;UAC/B,OAAOA,CAAC;;;MAGhB,OAAOA,CAAC;;IAEZ,OAAOD,IAAI;EACf;EAIM,SAAUM,QAAQ,CAACC,EAAwB,EAAEC,KAAa;IAC5D,OAAQC,MAAW,IAAI;MACnB,IAAI,OAAOF,EAAE,KAAK,QAAQ,EAAE;QACxB,IAAIC,KAAK,EAAE;UACPD,EAAE,CAACC,KAAK,GAAGA,KAAK;;QAEpBE,iBAAiB,CAACC,QAAQ,CAACC,QAAQ,CAACL,EAAE,CAACM,GAAG,IAAIJ,MAAM,EAAEF,EAAE,CAACM,GAAG,GAAIC,EAAE,IAAMA,EAAU,CAACC,MAAM,CAACN,MAAM,CAAC,GAAG,IAAI,EACpGF,EAAE,CAACC,KAAK,IAAIQ,KAAK,CAACC,SAAS,EAAEV,EAAE,CAACA,EAAE,CAAC;QAEvC,IAAIA,EAAE,CAACW,YAAY,EAAE;UACjB,IAAIX,EAAE,CAACW,YAAY,CAACC,MAAM,EAAE;YACxBC,EAAE,CAACD,MAAM,CAACV,MAAM,EAAEF,EAAE,CAACW,YAAY,CAACC,MAAM,CAAC;WAC5C,MAAM,IAAIZ,EAAE,CAACW,YAAY,CAACG,IAAI,EAAE;YAC7BD,EAAE,CAACE,QAAQ,CAACb,MAAM,EAAEF,EAAE,CAACW,YAAY,CAACG,IAAI,CAAC;WAC5C,MAAM,IAAId,EAAE,CAACW,YAAY,CAACK,SAAS,EAAE;YAClCb,iBAAiB,CAACC,QAAQ,CAACC,QAAQ,CAC/BL,EAAE,CAACM,GAAG,IAAIJ,MAAM,EAAGK,EAAE,IAAKf,UAAU,CAACQ,EAAE,CAACW,YAAY,CAACK,SAAS,CAAC,EAC/DhB,EAAE,CAACC,KAAK,IAAIQ,KAAK,CAACQ,MAAM,EAAEjB,EAAE,CAACA,EAAE,CAAC;;;QAI5C;;MAEJG,iBAAiB,CAACC,QAAQ,CAACC,QAAQ,CAACH,MAAM,EAAE,IAAI,EAAED,KAAK,EAAED,EAAE,CAAC;IAChE,CAAC;EACL;EAAC,oBAzBeD,QAAQ;EAAA;IAAA;MAhCfc,EAAE,cAAFA,EAAE;IAAA;MAEFJ,KAAK,sBAALA,KAAK;MAAEN,iBAAiB,sBAAjBA,iBAAiB;IAAA;IAAA;MAY3BR,QAAQ,GAAI,OAAOuB,MAAM,KAAK,WAAW,GAAIC,MAAM,GAAGD,MAAM;IAAA;EAAA;AAAA","names":["evalGlobal","path","r","globalNS","iterator","split","undefined","Register","id","scope","target","ServiceCollection","instance","register","for","sp","create","Scope","Transient","mockOrInject","inject","DI","mock","mockType","globalVar","Global","global","window"],"sourceRoot":"","sources":["../../src/di/Register.ts"],"sourcesContent":[null]}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
(function (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL
|
|
1
|
+
System.register(["./Register", "./ServiceCollection"], function (_export, _context) {
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var Register, Scope;
|
|
5
|
+
function RegisterScoped(id) {
|
|
6
|
+
Register({
|
|
7
|
+
scope: Scope.Scoped
|
|
8
|
+
})(id);
|
|
9
|
+
}
|
|
10
|
+
_export("RegisterScoped", RegisterScoped);
|
|
11
|
+
return {
|
|
12
|
+
setters: [function (_Register) {
|
|
13
|
+
Register = _Register.Register;
|
|
14
|
+
}, function (_ServiceCollection) {
|
|
15
|
+
Scope = _ServiceCollection.Scope;
|
|
16
|
+
}],
|
|
17
|
+
execute: function () {}
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=/home/runner/work/core/core/dist/di/RegisterScoped.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"mappings":";;;;EAIM,SAAUA,cAAc,CAACC,EAAO;IAClCC,QAAQ,CAAC;MAACC,KAAK,EAAEC,KAAK,CAACC;IAAM,CAAC,CAAC,CAACJ,EAAE,CAAC;EACvC;EAAC,0BAFeD,cAAc;EAAA;IAAA;MAHrBE,QAAQ,aAARA,QAAQ;IAAA;MACRE,KAAK,sBAALA,KAAK;IAAA;IAAA;EAAA;AAAA","names":["RegisterScoped","id","Register","scope","Scope","Scoped"],"sourceRoot":"","sources":["../../src/di/RegisterScoped.ts"],"sourcesContent":[null]}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
(function (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL
|
|
1
|
+
System.register(["./Register", "./ServiceCollection"], function (_export, _context) {
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var Register, Scope;
|
|
5
|
+
function RegisterSingleton(target) {
|
|
6
|
+
Register({
|
|
7
|
+
scope: Scope.Global
|
|
8
|
+
})(target);
|
|
9
|
+
}
|
|
10
|
+
_export("RegisterSingleton", RegisterSingleton);
|
|
11
|
+
return {
|
|
12
|
+
setters: [function (_Register) {
|
|
13
|
+
Register = _Register.Register;
|
|
14
|
+
}, function (_ServiceCollection) {
|
|
15
|
+
Scope = _ServiceCollection.Scope;
|
|
16
|
+
}],
|
|
17
|
+
execute: function () {}
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=/home/runner/work/core/core/dist/di/RegisterSingleton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"mappings":";;;;EAIM,SAAUA,iBAAiB,CAACC,MAAW;IACzCC,QAAQ,CAAC;MAACC,KAAK,EAAEC,KAAK,CAACC;IAAM,CAAC,CAAC,CAACJ,MAAM,CAAC;EAC3C;EAAC,6BAFeD,iBAAiB;EAAA;IAAA;MAHxBE,QAAQ,aAARA,QAAQ;IAAA;MACRE,KAAK,sBAALA,KAAK;IAAA;IAAA;EAAA;AAAA","names":["RegisterSingleton","target","Register","scope","Scope","Global"],"sourceRoot":"","sources":["../../src/di/RegisterSingleton.ts"],"sourcesContent":[null]}
|
|
@@ -1,61 +1,62 @@
|
|
|
1
|
-
(function (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
System.register(["../core/types", "./TypeKey"], function (_export, _context) {
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var ArrayHelper, TypeKey, ServiceDescription, ServiceCollection, Scope;
|
|
5
|
+
_export({
|
|
6
|
+
ServiceDescription: void 0,
|
|
7
|
+
ServiceCollection: void 0,
|
|
8
|
+
Scope: void 0
|
|
9
|
+
});
|
|
10
|
+
return {
|
|
11
|
+
setters: [function (_coreTypes) {
|
|
12
|
+
ArrayHelper = _coreTypes.ArrayHelper;
|
|
13
|
+
}, function (_TypeKey) {
|
|
14
|
+
TypeKey = _TypeKey.TypeKey;
|
|
15
|
+
}],
|
|
16
|
+
execute: function () {
|
|
17
|
+
(function (Scope) {
|
|
17
18
|
Scope[Scope["Global"] = 1] = "Global";
|
|
18
19
|
Scope[Scope["Scoped"] = 2] = "Scoped";
|
|
19
20
|
Scope[Scope["Transient"] = 3] = "Transient";
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
})(Scope || _export("Scope", Scope = {}));
|
|
22
|
+
_export("ServiceDescription", ServiceDescription = class ServiceDescription {
|
|
22
23
|
constructor(id, scope, type, factory) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
this.id = id;
|
|
25
|
+
this.scope = scope;
|
|
26
|
+
this.type = type;
|
|
27
|
+
this.factory = factory;
|
|
28
|
+
this.factory = this.factory || (sp => {
|
|
29
|
+
return sp.create(type);
|
|
30
|
+
});
|
|
30
31
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
class ServiceCollection {
|
|
32
|
+
});
|
|
33
|
+
_export("ServiceCollection", ServiceCollection = class ServiceCollection {
|
|
34
34
|
constructor() {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
this.registrations = [];
|
|
36
|
+
this.ids = 1;
|
|
37
37
|
}
|
|
38
38
|
register(type, factory, scope = Scope.Transient, id) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
ArrayHelper.remove(this.registrations, r => id ? r.id === id : r.type === type);
|
|
40
|
+
if (!id) {
|
|
41
|
+
id = TypeKey.get(type) + this.ids;
|
|
42
|
+
this.ids++;
|
|
43
|
+
}
|
|
44
|
+
const sd = new ServiceDescription(id, scope, type, factory);
|
|
45
|
+
this.registrations.push(sd);
|
|
46
|
+
return sd;
|
|
47
47
|
}
|
|
48
48
|
registerScoped(type, factory, id) {
|
|
49
|
-
|
|
49
|
+
return this.register(type, factory, Scope.Scoped, id);
|
|
50
50
|
}
|
|
51
51
|
registerSingleton(type, factory, id) {
|
|
52
|
-
|
|
52
|
+
return this.register(type, factory, Scope.Global, id);
|
|
53
53
|
}
|
|
54
54
|
get(type) {
|
|
55
|
-
|
|
55
|
+
return this.registrations.find(s => s.id === type || s.type === type);
|
|
56
56
|
}
|
|
57
|
+
});
|
|
58
|
+
ServiceCollection.instance = new ServiceCollection();
|
|
57
59
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
//# sourceMappingURL=ServiceCollection.js.map
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=/home/runner/work/core/core/dist/di/ServiceCollection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"mappings":";;;4BAYaA,kBAAkB,EAelBC,iBAAiB;EAAA;IAAA;IAAA;IAAA;EAAA;EAAA;IAAA;MA3BrBC,WAAW,cAAXA,WAAW;IAAA;MAEXC,OAAO,YAAPA,OAAO;IAAA;IAAA;MAIhB,WAAYC,KAAK;QACbA,qCAAU;QACVA,qCAAU;QACVA,2CAAa;MACjB,CAAC,EAJWA,KAAK,qBAALA,KAAK;MAIhB,8BAEYJ,kBAAkB,GAAzB,MAAOA,kBAAkB;QAE3BK,YACWC,EAAU,EACVC,KAAY,EACZC,IAAS,EACTC,OAAuB;UAHvB,OAAE,GAAFH,EAAE;UACF,UAAK,GAALC,KAAK;UACL,SAAI,GAAJC,IAAI;UACJ,YAAO,GAAPC,OAAO;UAEd,IAAI,CAACA,OAAO,GAAG,IAAI,CAACA,OAAO,KAAMC,EAAE,IAAI;YACnC,OAAQA,EAAU,CAACC,MAAM,CAACH,IAAI,CAAC;UACnC,CAAC,CAAC;QACN;OAEH;MAAA,6BAEYP,iBAAiB,GAAxB,MAAOA,iBAAiB;QAA9BI;UAIY,kBAAa,GAAyB,EAAE;UAExC,QAAG,GAAW,CAAC;QA4B3B;QA1BWO,QAAQ,CACXJ,IAAS,EACTC,OAAuB,EACvBF,QAAeH,KAAK,CAACS,SAAS,EAC9BP,EAAW;UACXJ,WAAW,CAACY,MAAM,CAAC,IAAI,CAACC,aAAa,EAAGC,CAAC,IAAKV,EAAE,GAAGU,CAAC,CAACV,EAAE,KAAKA,EAAE,GAAGU,CAAC,CAACR,IAAI,KAAKA,IAAI,CAAC;UACjF,IAAI,CAACF,EAAE,EAAE;YACLA,EAAE,GAAGH,OAAO,CAACc,GAAG,CAACT,IAAI,CAAC,GAAG,IAAI,CAACU,GAAG;YACjC,IAAI,CAACA,GAAG,EAAG;;UAEf,MAAMC,EAAE,GAAG,IAAInB,kBAAkB,CAACM,EAAE,EAAEC,KAAK,EAAEC,IAAI,EAAEC,OAAO,CAAC;UAC3D,IAAI,CAACM,aAAa,CAACK,IAAI,CAACD,EAAE,CAAC;UAC3B,OAAOA,EAAE;QACb;QAEOE,cAAc,CAACb,IAAS,EAAEC,OAAwB,EAAEH,EAAW;UAClE,OAAO,IAAI,CAACM,QAAQ,CAACJ,IAAI,EAAEC,OAAO,EAAEL,KAAK,CAACkB,MAAM,EAAEhB,EAAE,CAAC;QACzD;QAEOiB,iBAAiB,CAACf,IAAS,EAAEC,OAAwB,EAAEH,EAAW;UACrE,OAAO,IAAI,CAACM,QAAQ,CAACJ,IAAI,EAAEC,OAAO,EAAEL,KAAK,CAACoB,MAAM,EAAElB,EAAE,CAAC;QACzD;QAEOW,GAAG,CAACT,IAAS;UAChB,OAAO,IAAI,CAACO,aAAa,CAACU,IAAI,CAAGC,CAAC,IAAKA,CAAC,CAACpB,EAAE,KAAKE,IAAI,IAAIkB,CAAC,CAAClB,IAAI,KAAKA,IAAI,CAAC;QAC5E;;MA/BcP,0BAAQ,GAAsB,IAAIA,iBAAiB,EAAE;IAAC;EAAA;AAAA","names":["ServiceDescription","ServiceCollection","ArrayHelper","TypeKey","Scope","constructor","id","scope","type","factory","sp","create","register","Transient","remove","registrations","r","get","ids","sd","push","registerScoped","Scoped","registerSingleton","Global","find","s"],"sourceRoot":"","sources":["../../src/di/ServiceCollection.ts"],"sourcesContent":[null]}
|
|
@@ -1,135 +1,137 @@
|
|
|
1
|
-
(function (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
System.register(["../core/TransientDisposable", "../core/types", "./Inject", "./ServiceCollection", "./TypeKey"], function (_export, _context) {
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var TransientDisposable, DI, InjectedTypes, Scope, ServiceCollection, TypeKey, ServiceProvider;
|
|
5
|
+
_export("ServiceProvider", void 0);
|
|
6
|
+
return {
|
|
7
|
+
setters: [function (_coreTransientDisposable) {
|
|
8
|
+
TransientDisposable = _coreTransientDisposable.default;
|
|
9
|
+
}, function (_coreTypes) {
|
|
10
|
+
DI = _coreTypes.DI;
|
|
11
|
+
}, function (_Inject) {
|
|
12
|
+
InjectedTypes = _Inject.InjectedTypes;
|
|
13
|
+
}, function (_ServiceCollection) {
|
|
14
|
+
Scope = _ServiceCollection.Scope;
|
|
15
|
+
ServiceCollection = _ServiceCollection.ServiceCollection;
|
|
16
|
+
}, function (_TypeKey) {
|
|
17
|
+
TypeKey = _TypeKey.TypeKey;
|
|
18
|
+
}],
|
|
19
|
+
execute: function () {
|
|
20
|
+
_export("ServiceProvider", ServiceProvider = class ServiceProvider {
|
|
19
21
|
get global() {
|
|
20
|
-
|
|
22
|
+
return this.parent === null ? this : this.parent.global;
|
|
21
23
|
}
|
|
22
24
|
constructor(parent) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
this.parent = parent;
|
|
26
|
+
this.instances = new Map();
|
|
27
|
+
if (parent === null) {
|
|
28
|
+
ServiceCollection.instance.registerScoped(ServiceProvider);
|
|
29
|
+
}
|
|
30
|
+
const sd = ServiceCollection.instance.get(ServiceProvider);
|
|
31
|
+
this.instances.set(sd.id, this);
|
|
30
32
|
}
|
|
31
33
|
get(key) {
|
|
32
|
-
|
|
34
|
+
return this.resolve(key, true);
|
|
33
35
|
}
|
|
34
36
|
put(key, value) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
let sd = ServiceCollection.instance.get(key);
|
|
38
|
+
if (!sd) {
|
|
39
|
+
sd = ServiceCollection.instance.register(key, () => value, Scope.Global);
|
|
40
|
+
}
|
|
41
|
+
this.instances.set(sd.id, value);
|
|
40
42
|
}
|
|
41
43
|
resolve(key, create = false, defValue) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
return this.create(key);
|
|
51
|
-
}
|
|
52
|
-
if (sd.type === ServiceProvider) {
|
|
53
|
-
return this;
|
|
54
|
-
}
|
|
55
|
-
if (sd.scope === ServiceCollection_1.Scope.Global) {
|
|
56
|
-
return this.global.getValue(sd);
|
|
44
|
+
const sd = ServiceCollection.instance.get(key);
|
|
45
|
+
if (!sd) {
|
|
46
|
+
if (!create) {
|
|
47
|
+
if (defValue !== undefined) {
|
|
48
|
+
return defValue;
|
|
49
|
+
}
|
|
50
|
+
throw new Error(`No service registered for type ${key}`);
|
|
57
51
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
52
|
+
return this.create(key);
|
|
53
|
+
}
|
|
54
|
+
if (sd.type === ServiceProvider) {
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
if (sd.scope === Scope.Global) {
|
|
58
|
+
return this.global.getValue(sd);
|
|
59
|
+
}
|
|
60
|
+
if (sd.scope === Scope.Scoped) {
|
|
61
|
+
if (this.parent === null) {
|
|
62
|
+
throw new Error("Scoped dependency cannot be created on global");
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
+
}
|
|
65
|
+
return this.getValue(sd);
|
|
64
66
|
}
|
|
65
67
|
getValue(sd) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
if (sd.scope === Scope.Transient) {
|
|
69
|
+
return sd.factory(this);
|
|
70
|
+
}
|
|
71
|
+
let v = this.instances.get(sd.id);
|
|
72
|
+
if (v === void 0) {
|
|
73
|
+
v = sd.factory(this);
|
|
74
|
+
this.instances.set(sd.id, v);
|
|
75
|
+
}
|
|
76
|
+
return v;
|
|
75
77
|
}
|
|
76
78
|
newScope() {
|
|
77
|
-
|
|
79
|
+
return new ServiceProvider(this);
|
|
78
80
|
}
|
|
79
81
|
dispose() {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
(_a = element.dispose) === null || _a === void 0 ? void 0 : _a.call(element);
|
|
82
|
+
var _a;
|
|
83
|
+
for (const element of this.instances.values()) {
|
|
84
|
+
if (element === this) {
|
|
85
|
+
continue;
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
(_a = element.dispose) === null || _a === void 0 ? void 0 : _a.call(element);
|
|
88
|
+
}
|
|
89
|
+
this.instances.clear();
|
|
88
90
|
}
|
|
89
91
|
create(key) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
key = mappedType;
|
|
99
|
-
}
|
|
100
|
-
const typeKey1 = TypeKey_1.TypeKey.get(key);
|
|
101
|
-
const plist = Inject_1.InjectedTypes.getParamList(key, typeKey1);
|
|
102
|
-
let value = null;
|
|
103
|
-
if (plist) {
|
|
104
|
-
const pv = plist.map((x) => x ? this.resolve(x) : (void 0));
|
|
105
|
-
pv.unshift(null);
|
|
106
|
-
value = new (key.bind.apply(key, pv))();
|
|
107
|
-
for (const iterator of pv) {
|
|
108
|
-
if (iterator && iterator instanceof TransientDisposable_1.default) {
|
|
109
|
-
iterator.registerIn(value);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
92
|
+
const originalKey = key;
|
|
93
|
+
const originalTypeKey = TypeKey.get(originalKey);
|
|
94
|
+
if (DI.resolveType) {
|
|
95
|
+
let mappedType = ServiceProvider.mappedTypes.get(originalTypeKey);
|
|
96
|
+
if (mappedType === void 0) {
|
|
97
|
+
mappedType = DI.resolveType(originalKey);
|
|
98
|
+
ServiceProvider.mappedTypes.set(originalKey, mappedType);
|
|
112
99
|
}
|
|
113
|
-
|
|
114
|
-
|
|
100
|
+
key = mappedType;
|
|
101
|
+
}
|
|
102
|
+
const typeKey1 = TypeKey.get(key);
|
|
103
|
+
const plist = InjectedTypes.getParamList(key, typeKey1);
|
|
104
|
+
let value = null;
|
|
105
|
+
if (plist) {
|
|
106
|
+
const pv = plist.map(x => x ? this.resolve(x) : void 0);
|
|
107
|
+
pv.unshift(null);
|
|
108
|
+
value = new (key.bind.apply(key, pv))();
|
|
109
|
+
for (const iterator of pv) {
|
|
110
|
+
if (iterator && iterator instanceof TransientDisposable) {
|
|
111
|
+
iterator.registerIn(value);
|
|
112
|
+
}
|
|
115
113
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
114
|
+
} else {
|
|
115
|
+
value = new key();
|
|
116
|
+
}
|
|
117
|
+
const propList = InjectedTypes.getPropertyList(key, typeKey1);
|
|
118
|
+
if (propList) {
|
|
119
|
+
for (const key1 in propList) {
|
|
120
|
+
if (propList.hasOwnProperty(key1)) {
|
|
121
|
+
const element = propList[key1];
|
|
122
|
+
const d = this.resolve(element);
|
|
123
|
+
value[key1] = d;
|
|
124
|
+
if (d && d instanceof TransientDisposable) {
|
|
125
|
+
d.registerIn(value);
|
|
127
126
|
}
|
|
127
|
+
}
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
}
|
|
130
|
+
return value;
|
|
130
131
|
}
|
|
132
|
+
});
|
|
133
|
+
ServiceProvider.mappedTypes = new Map();
|
|
131
134
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
//# sourceMappingURL=ServiceProvider.js.map
|
|
135
|
+
};
|
|
136
|
+
});
|
|
137
|
+
//# sourceMappingURL=/home/runner/work/core/core/dist/di/ServiceProvider.js.map
|