@worktile/planet 12.1.2 → 13.0.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.
Files changed (77) hide show
  1. package/application/planet-application-loader.d.ts +3 -0
  2. package/application/planet-application-loader.d.ts.map +1 -1
  3. package/application/planet-application.service.d.ts +3 -0
  4. package/application/planet-application.service.d.ts.map +1 -1
  5. package/assets-loader.d.ts +3 -0
  6. package/assets-loader.d.ts.map +1 -1
  7. package/component/planet-component-loader.d.ts +3 -0
  8. package/component/planet-component-loader.d.ts.map +1 -1
  9. package/empty/empty.component.d.ts +3 -0
  10. package/empty/empty.component.d.ts.map +1 -1
  11. package/esm2020/application/planet-application-loader.mjs +454 -0
  12. package/esm2020/application/planet-application-ref.mjs +94 -0
  13. package/{esm2015/application/planet-application.service.js → esm2020/application/planet-application.service.mjs} +9 -11
  14. package/{esm2015/application/portal-application.js → esm2020/application/portal-application.mjs} +0 -0
  15. package/{esm2015/assets-loader.js → esm2020/assets-loader.mjs} +9 -10
  16. package/esm2020/component/planet-component-loader.mjs +153 -0
  17. package/{esm2015/component/planet-component-ref.js → esm2020/component/planet-component-ref.mjs} +0 -0
  18. package/{esm2015/component/plant-component.config.js → esm2020/component/plant-component.config.mjs} +0 -0
  19. package/{esm2015/debug.js → esm2020/debug.mjs} +0 -0
  20. package/esm2020/empty/empty.component.mjs +15 -0
  21. package/{esm2015/global-event-dispatcher.js → esm2020/global-event-dispatcher.mjs} +9 -10
  22. package/esm2020/global-planet.mjs +53 -0
  23. package/{esm2015/helpers.js → esm2020/helpers.mjs} +0 -0
  24. package/esm2020/module.mjs +31 -0
  25. package/{esm2015/planet.class.js → esm2020/planet.class.mjs} +0 -0
  26. package/esm2020/planet.mjs +91 -0
  27. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  28. package/{esm2015/sandbox/constants.js → esm2020/sandbox/constants.mjs} +0 -0
  29. package/{esm2015/sandbox/exec.js → esm2020/sandbox/exec.mjs} +0 -0
  30. package/{esm2015/sandbox/index.js → esm2020/sandbox/index.mjs} +0 -0
  31. package/{esm2015/sandbox/proxy/patches/document.js → esm2020/sandbox/proxy/patches/document.mjs} +0 -0
  32. package/{esm2015/sandbox/proxy/patches/eventListener.js → esm2020/sandbox/proxy/patches/eventListener.mjs} +0 -0
  33. package/{esm2015/sandbox/proxy/patches/index.js → esm2020/sandbox/proxy/patches/index.mjs} +0 -0
  34. package/{esm2015/sandbox/proxy/patches/storage.js → esm2020/sandbox/proxy/patches/storage.mjs} +0 -0
  35. package/{esm2015/sandbox/proxy/patches/timer.js → esm2020/sandbox/proxy/patches/timer.mjs} +0 -0
  36. package/{esm2015/sandbox/proxy/proxies/common.js → esm2020/sandbox/proxy/proxies/common.mjs} +2 -2
  37. package/{esm2015/sandbox/proxy/proxies/document.js → esm2020/sandbox/proxy/proxies/document.mjs} +0 -0
  38. package/{esm2015/sandbox/proxy/proxies/window.js → esm2020/sandbox/proxy/proxies/window.mjs} +5 -2
  39. package/{esm2015/sandbox/proxy/proxy-sandbox.js → esm2020/sandbox/proxy/proxy-sandbox.mjs} +2 -2
  40. package/{esm2015/sandbox/proxy/types.js → esm2020/sandbox/proxy/types.mjs} +0 -0
  41. package/{esm2015/sandbox/sandbox.js → esm2020/sandbox/sandbox.mjs} +0 -0
  42. package/{esm2015/sandbox/snapshot/snapshot-sandbox.js → esm2020/sandbox/snapshot/snapshot-sandbox.mjs} +0 -0
  43. package/{esm2015/sandbox/types.js → esm2020/sandbox/types.mjs} +0 -0
  44. package/esm2020/worktile-planet.mjs +5 -0
  45. package/fesm2015/{worktile-planet.js → worktile-planet.mjs} +231 -230
  46. package/fesm2015/worktile-planet.mjs.map +1 -0
  47. package/fesm2020/worktile-planet.mjs +2046 -0
  48. package/fesm2020/worktile-planet.mjs.map +1 -0
  49. package/global-event-dispatcher.d.ts +3 -0
  50. package/global-event-dispatcher.d.ts.map +1 -1
  51. package/module.d.ts +6 -0
  52. package/module.d.ts.map +1 -1
  53. package/package.json +28 -12
  54. package/planet.d.ts +3 -0
  55. package/planet.d.ts.map +1 -1
  56. package/worktile-planet.d.ts +1 -1
  57. package/worktile-planet.d.ts.map +1 -1
  58. package/application/planet-application-loader.ngfactory.d.ts.map +0 -1
  59. package/application/planet-application.service.ngfactory.d.ts.map +0 -1
  60. package/assets-loader.ngfactory.d.ts.map +0 -1
  61. package/bundles/worktile-planet.umd.js +0 -2564
  62. package/bundles/worktile-planet.umd.js.map +0 -1
  63. package/component/planet-component-loader.ngfactory.d.ts.map +0 -1
  64. package/empty/empty.component.ngfactory.d.ts.map +0 -1
  65. package/esm2015/application/planet-application-loader.js +0 -457
  66. package/esm2015/application/planet-application-ref.js +0 -97
  67. package/esm2015/component/planet-component-loader.js +0 -155
  68. package/esm2015/empty/empty.component.js +0 -10
  69. package/esm2015/global-planet.js +0 -54
  70. package/esm2015/module.js +0 -27
  71. package/esm2015/planet.js +0 -91
  72. package/esm2015/worktile-planet.js +0 -6
  73. package/fesm2015/worktile-planet.js.map +0 -1
  74. package/global-event-dispatcher.ngfactory.d.ts.map +0 -1
  75. package/module.ngfactory.d.ts.map +0 -1
  76. package/planet.ngfactory.d.ts.map +0 -1
  77. package/worktile-planet.metadata.json +0 -1
@@ -1,13 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Injectable, NgZone, Injector, ApplicationRef, Inject, Optional, Component, NgModule, NgModuleRef } from '@angular/core';
2
+ import { InjectionToken, NgZone, Injectable, Inject, Optional, Component, NgModule } from '@angular/core';
3
3
  import * as i3 from '@angular/router';
4
4
  import { Router, NavigationEnd } from '@angular/router';
5
+ import { take, map, concatAll, switchMap, shareReplay, filter, distinctUntilChanged, catchError, tap, share, startWith, delayWhen } from 'rxjs/operators';
6
+ import { Observable, from, of, concat, forkJoin, Subject, timer } from 'rxjs';
5
7
  import * as i1 from '@angular/common/http';
6
- import { HttpClient, HttpClientModule } from '@angular/common/http';
7
- import { map, concatAll, switchMap, take, shareReplay, filter, distinctUntilChanged, catchError, tap, share, startWith, delayWhen } from 'rxjs/operators';
8
- import { Observable, of, concat, forkJoin, from, Subject, timer } from 'rxjs';
8
+ import { HttpClientModule } from '@angular/common/http';
9
9
  import { PortalInjector, DomPortalOutlet, ComponentPortal } from '@angular/cdk/portal';
10
- import * as i1$1 from '@angular/common';
11
10
  import { DOCUMENT } from '@angular/common';
12
11
 
13
12
  var SwitchModes;
@@ -783,6 +782,149 @@ function getSandboxInstance() {
783
782
  return window[SANDBOX_INSTANCE];
784
783
  }
785
784
 
785
+ class PlanetApplicationRef {
786
+ constructor(name, options) {
787
+ this.name = name;
788
+ if (options) {
789
+ this.template = options.template;
790
+ this.innerSelector = this.template ? getTagNameByTemplate(this.template) : '';
791
+ this.appModuleBootstrap = options.bootstrap;
792
+ }
793
+ // This is a hack, since NgZone doesn't allow you to configure the property that identifies your zone.
794
+ // See https://github.com/PlaceMe-SAS/single-spa-angular-cli/issues/33,
795
+ NgZone.isInAngularZone = () => {
796
+ // @ts-ignore
797
+ return window.Zone.current._properties[`ngx-planet-${name}`] === true;
798
+ };
799
+ }
800
+ get selector() {
801
+ return this.innerSelector;
802
+ }
803
+ get bootstrapped() {
804
+ return !!this.appModuleRef;
805
+ }
806
+ get ngZone() {
807
+ var _a;
808
+ return (_a = this.appModuleRef) === null || _a === void 0 ? void 0 : _a.injector.get(NgZone);
809
+ }
810
+ get sandbox() {
811
+ return getSandboxInstance();
812
+ }
813
+ // 子应用路由变化后同步修改 portal 的 Route
814
+ syncPortalRouteWhenNavigationEnd() {
815
+ var _a;
816
+ const router = (_a = this.appModuleRef) === null || _a === void 0 ? void 0 : _a.injector.get(Router);
817
+ if (router) {
818
+ router.events.subscribe(event => {
819
+ var _a;
820
+ if (event instanceof NavigationEnd) {
821
+ (_a = this.ngZone) === null || _a === void 0 ? void 0 : _a.onStable.asObservable().pipe(take(1)).subscribe(() => {
822
+ this.portalApp.router.navigateByUrl(event.url);
823
+ });
824
+ }
825
+ });
826
+ }
827
+ }
828
+ bootstrap(app) {
829
+ if (!this.appModuleBootstrap) {
830
+ throw new Error(`app(${this.name}) is not defined`);
831
+ }
832
+ this.portalApp = app;
833
+ return from(this.appModuleBootstrap(app).then(appModuleRef => {
834
+ this.appModuleRef = appModuleRef;
835
+ this.appModuleRef.instance.appName = this.name;
836
+ this.syncPortalRouteWhenNavigationEnd();
837
+ return this;
838
+ }));
839
+ }
840
+ getRouter() {
841
+ var _a;
842
+ return (_a = this.appModuleRef) === null || _a === void 0 ? void 0 : _a.injector.get(Router);
843
+ }
844
+ getCurrentRouterStateUrl() {
845
+ var _a;
846
+ return (_a = this.getRouter()) === null || _a === void 0 ? void 0 : _a.routerState.snapshot.url;
847
+ }
848
+ navigateByUrl(url) {
849
+ var _a;
850
+ const router = this.getRouter();
851
+ (_a = this.ngZone) === null || _a === void 0 ? void 0 : _a.run(() => {
852
+ router === null || router === void 0 ? void 0 : router.navigateByUrl(url);
853
+ });
854
+ }
855
+ getComponentFactory() {
856
+ return this.componentFactory;
857
+ }
858
+ registerComponentFactory(componentFactory) {
859
+ this.componentFactory = componentFactory;
860
+ }
861
+ destroy() {
862
+ if (this.appModuleRef) {
863
+ const router = this.appModuleRef.injector.get(Router);
864
+ if (router) {
865
+ router.dispose();
866
+ }
867
+ if (this.sandbox) {
868
+ this.sandbox.destroy();
869
+ }
870
+ this.appModuleRef.destroy();
871
+ this.appModuleRef = undefined;
872
+ }
873
+ }
874
+ }
875
+
876
+ const globalPlanet = (window.planet = window.planet || {
877
+ apps: {}
878
+ });
879
+ function defineApplication(name, options) {
880
+ if (globalPlanet.apps[name]) {
881
+ throw new Error(`${name} application has exist.`);
882
+ }
883
+ if (isFunction(options)) {
884
+ options = {
885
+ template: '',
886
+ bootstrap: options
887
+ };
888
+ }
889
+ const appRef = new PlanetApplicationRef(name, options);
890
+ globalPlanet.apps[name] = appRef;
891
+ }
892
+ function getPlanetApplicationRef(appName) {
893
+ if (globalPlanet && globalPlanet.apps && globalPlanet.apps[appName]) {
894
+ return globalPlanet.apps[appName];
895
+ }
896
+ else {
897
+ return null;
898
+ }
899
+ }
900
+ function setPortalApplicationData(data) {
901
+ if (globalPlanet.portalApplication) {
902
+ globalPlanet.portalApplication.data = data;
903
+ }
904
+ }
905
+ function getPortalApplicationData() {
906
+ var _a;
907
+ return (_a = globalPlanet.portalApplication) === null || _a === void 0 ? void 0 : _a.data;
908
+ }
909
+ function setApplicationLoader(loader) {
910
+ globalPlanet.applicationLoader = loader;
911
+ }
912
+ function getApplicationLoader() {
913
+ return globalPlanet.applicationLoader;
914
+ }
915
+ function setApplicationService(service) {
916
+ globalPlanet.applicationService = service;
917
+ }
918
+ function getApplicationService() {
919
+ return globalPlanet.applicationService;
920
+ }
921
+ function clearGlobalPlanet() {
922
+ window.planet.apps = {};
923
+ window.planet.portalApplication = null;
924
+ window.planet.applicationLoader = null;
925
+ window.planet.applicationService = null;
926
+ }
927
+
786
928
  class AssetsLoader {
787
929
  constructor(http) {
788
930
  this.http = http;
@@ -982,158 +1124,14 @@ class AssetsLoader {
982
1124
  }));
983
1125
  }
984
1126
  }
985
- AssetsLoader.ɵprov = i0.ɵɵdefineInjectable({ factory: function AssetsLoader_Factory() { return new AssetsLoader(i0.ɵɵinject(i1.HttpClient)); }, token: AssetsLoader, providedIn: "root" });
986
- AssetsLoader.decorators = [
987
- { type: Injectable, args: [{
988
- providedIn: 'root'
989
- },] }
990
- ];
991
- AssetsLoader.ctorParameters = () => [
992
- { type: HttpClient }
993
- ];
994
-
995
- class PlanetApplicationRef {
996
- constructor(name, options) {
997
- this.name = name;
998
- if (options) {
999
- this.template = options.template;
1000
- this.innerSelector = this.template ? getTagNameByTemplate(this.template) : '';
1001
- this.appModuleBootstrap = options.bootstrap;
1002
- }
1003
- // This is a hack, since NgZone doesn't allow you to configure the property that identifies your zone.
1004
- // See https://github.com/PlaceMe-SAS/single-spa-angular-cli/issues/33,
1005
- NgZone.isInAngularZone = () => {
1006
- // @ts-ignore
1007
- return window.Zone.current._properties[`ngx-planet-${name}`] === true;
1008
- };
1009
- }
1010
- get selector() {
1011
- return this.innerSelector;
1012
- }
1013
- get bootstrapped() {
1014
- return !!this.appModuleRef;
1015
- }
1016
- get ngZone() {
1017
- var _a;
1018
- return (_a = this.appModuleRef) === null || _a === void 0 ? void 0 : _a.injector.get(NgZone);
1019
- }
1020
- get sandbox() {
1021
- return getSandboxInstance();
1022
- }
1023
- // 子应用路由变化后同步修改 portal 的 Route
1024
- syncPortalRouteWhenNavigationEnd() {
1025
- var _a;
1026
- const router = (_a = this.appModuleRef) === null || _a === void 0 ? void 0 : _a.injector.get(Router);
1027
- if (router) {
1028
- router.events.subscribe(event => {
1029
- var _a;
1030
- if (event instanceof NavigationEnd) {
1031
- (_a = this.ngZone) === null || _a === void 0 ? void 0 : _a.onStable.asObservable().pipe(take(1)).subscribe(() => {
1032
- this.portalApp.router.navigateByUrl(event.url);
1033
- });
1034
- }
1035
- });
1036
- }
1037
- }
1038
- bootstrap(app) {
1039
- if (!this.appModuleBootstrap) {
1040
- throw new Error(`app(${this.name}) is not defined`);
1041
- }
1042
- this.portalApp = app;
1043
- return from(this.appModuleBootstrap(app).then(appModuleRef => {
1044
- this.appModuleRef = appModuleRef;
1045
- this.appModuleRef.instance.appName = this.name;
1046
- this.syncPortalRouteWhenNavigationEnd();
1047
- return this;
1048
- }));
1049
- }
1050
- getRouter() {
1051
- var _a;
1052
- return (_a = this.appModuleRef) === null || _a === void 0 ? void 0 : _a.injector.get(Router);
1053
- }
1054
- getCurrentRouterStateUrl() {
1055
- var _a;
1056
- return (_a = this.getRouter()) === null || _a === void 0 ? void 0 : _a.routerState.snapshot.url;
1057
- }
1058
- navigateByUrl(url) {
1059
- var _a;
1060
- const router = this.getRouter();
1061
- (_a = this.ngZone) === null || _a === void 0 ? void 0 : _a.run(() => {
1062
- router === null || router === void 0 ? void 0 : router.navigateByUrl(url);
1063
- });
1064
- }
1065
- getComponentFactory() {
1066
- return this.componentFactory;
1067
- }
1068
- registerComponentFactory(componentFactory) {
1069
- this.componentFactory = componentFactory;
1070
- }
1071
- destroy() {
1072
- if (this.appModuleRef) {
1073
- const router = this.appModuleRef.injector.get(Router);
1074
- if (router) {
1075
- router.dispose();
1076
- }
1077
- if (this.sandbox) {
1078
- this.sandbox.destroy();
1079
- }
1080
- this.appModuleRef.destroy();
1081
- this.appModuleRef = undefined;
1082
- }
1083
- }
1084
- }
1085
-
1086
- const globalPlanet = (window.planet = window.planet || {
1087
- apps: {}
1088
- });
1089
- function defineApplication(name, options) {
1090
- if (globalPlanet.apps[name]) {
1091
- throw new Error(`${name} application has exist.`);
1092
- }
1093
- if (isFunction(options)) {
1094
- options = {
1095
- template: '',
1096
- bootstrap: options
1097
- };
1098
- }
1099
- const appRef = new PlanetApplicationRef(name, options);
1100
- globalPlanet.apps[name] = appRef;
1101
- }
1102
- function getPlanetApplicationRef(appName) {
1103
- if (globalPlanet && globalPlanet.apps && globalPlanet.apps[appName]) {
1104
- return globalPlanet.apps[appName];
1105
- }
1106
- else {
1107
- return null;
1108
- }
1109
- }
1110
- function setPortalApplicationData(data) {
1111
- if (globalPlanet.portalApplication) {
1112
- globalPlanet.portalApplication.data = data;
1113
- }
1114
- }
1115
- function getPortalApplicationData() {
1116
- var _a;
1117
- return (_a = globalPlanet.portalApplication) === null || _a === void 0 ? void 0 : _a.data;
1118
- }
1119
- function setApplicationLoader(loader) {
1120
- globalPlanet.applicationLoader = loader;
1121
- }
1122
- function getApplicationLoader() {
1123
- return globalPlanet.applicationLoader;
1124
- }
1125
- function setApplicationService(service) {
1126
- globalPlanet.applicationService = service;
1127
- }
1128
- function getApplicationService() {
1129
- return globalPlanet.applicationService;
1130
- }
1131
- function clearGlobalPlanet() {
1132
- window.planet.apps = {};
1133
- window.planet.portalApplication = null;
1134
- window.planet.applicationLoader = null;
1135
- window.planet.applicationService = null;
1136
- }
1127
+ AssetsLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AssetsLoader, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1128
+ AssetsLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AssetsLoader, providedIn: 'root' });
1129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AssetsLoader, decorators: [{
1130
+ type: Injectable,
1131
+ args: [{
1132
+ providedIn: 'root'
1133
+ }]
1134
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
1137
1135
 
1138
1136
  class PlanetApplicationService {
1139
1137
  constructor(http, assetsLoader) {
@@ -1202,16 +1200,14 @@ class PlanetApplicationService {
1202
1200
  return this.apps;
1203
1201
  }
1204
1202
  }
1205
- PlanetApplicationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlanetApplicationService_Factory() { return new PlanetApplicationService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(AssetsLoader)); }, token: PlanetApplicationService, providedIn: "root" });
1206
- PlanetApplicationService.decorators = [
1207
- { type: Injectable, args: [{
1208
- providedIn: 'root'
1209
- },] }
1210
- ];
1211
- PlanetApplicationService.ctorParameters = () => [
1212
- { type: HttpClient },
1213
- { type: AssetsLoader }
1214
- ];
1203
+ PlanetApplicationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PlanetApplicationService, deps: [{ token: i1.HttpClient }, { token: AssetsLoader }], target: i0.ɵɵFactoryTarget.Injectable });
1204
+ PlanetApplicationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PlanetApplicationService, providedIn: 'root' });
1205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PlanetApplicationService, decorators: [{
1206
+ type: Injectable,
1207
+ args: [{
1208
+ providedIn: 'root'
1209
+ }]
1210
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: AssetsLoader }]; } });
1215
1211
 
1216
1212
  class PlanetPortalApplication {
1217
1213
  navigateByUrl(url, extras) {
@@ -1286,15 +1282,14 @@ class GlobalEventDispatcher {
1286
1282
  return this.subscriptionCount;
1287
1283
  }
1288
1284
  }
1289
- GlobalEventDispatcher.ɵprov = i0.ɵɵdefineInjectable({ factory: function GlobalEventDispatcher_Factory() { return new GlobalEventDispatcher(i0.ɵɵinject(i0.NgZone)); }, token: GlobalEventDispatcher, providedIn: "root" });
1290
- GlobalEventDispatcher.decorators = [
1291
- { type: Injectable, args: [{
1292
- providedIn: 'root'
1293
- },] }
1294
- ];
1295
- GlobalEventDispatcher.ctorParameters = () => [
1296
- { type: NgZone }
1297
- ];
1285
+ GlobalEventDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: GlobalEventDispatcher, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
1286
+ GlobalEventDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: GlobalEventDispatcher, providedIn: 'root' });
1287
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: GlobalEventDispatcher, decorators: [{
1288
+ type: Injectable,
1289
+ args: [{
1290
+ providedIn: 'root'
1291
+ }]
1292
+ }], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
1298
1293
 
1299
1294
  /**
1300
1295
  * Debug factory for debug module
@@ -1754,20 +1749,14 @@ class PlanetApplicationLoader {
1754
1749
  return this.preloadInternal(app, immediate);
1755
1750
  }
1756
1751
  }
1757
- PlanetApplicationLoader.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlanetApplicationLoader_Factory() { return new PlanetApplicationLoader(i0.ɵɵinject(AssetsLoader), i0.ɵɵinject(PlanetApplicationService), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i3.Router), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i0.ApplicationRef)); }, token: PlanetApplicationLoader, providedIn: "root" });
1758
- PlanetApplicationLoader.decorators = [
1759
- { type: Injectable, args: [{
1760
- providedIn: 'root'
1761
- },] }
1762
- ];
1763
- PlanetApplicationLoader.ctorParameters = () => [
1764
- { type: AssetsLoader },
1765
- { type: PlanetApplicationService },
1766
- { type: NgZone },
1767
- { type: Router },
1768
- { type: Injector },
1769
- { type: ApplicationRef }
1770
- ];
1752
+ PlanetApplicationLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PlanetApplicationLoader, deps: [{ token: AssetsLoader }, { token: PlanetApplicationService }, { token: i0.NgZone }, { token: i3.Router }, { token: i0.Injector }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
1753
+ PlanetApplicationLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PlanetApplicationLoader, providedIn: 'root' });
1754
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PlanetApplicationLoader, decorators: [{
1755
+ type: Injectable,
1756
+ args: [{
1757
+ providedIn: 'root'
1758
+ }]
1759
+ }], ctorParameters: function () { return [{ type: AssetsLoader }, { type: PlanetApplicationService }, { type: i0.NgZone }, { type: i3.Router }, { type: i0.Injector }, { type: i0.ApplicationRef }]; } });
1771
1760
 
1772
1761
  class Planet {
1773
1762
  constructor(injector, router, planetApplications) {
@@ -1837,26 +1826,34 @@ class Planet {
1837
1826
  (_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
1838
1827
  }
1839
1828
  }
1840
- Planet.ɵprov = i0.ɵɵdefineInjectable({ factory: function Planet_Factory() { return new Planet(i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i3.Router), i0.ɵɵinject(PLANET_APPLICATIONS, 8)); }, token: Planet, providedIn: "root" });
1841
- Planet.decorators = [
1842
- { type: Injectable, args: [{
1843
- providedIn: 'root'
1844
- },] }
1845
- ];
1846
- Planet.ctorParameters = () => [
1847
- { type: Injector },
1848
- { type: Router },
1849
- { type: Array, decorators: [{ type: Inject, args: [PLANET_APPLICATIONS,] }, { type: Optional }] }
1850
- ];
1829
+ Planet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: Planet, deps: [{ token: i0.Injector }, { token: i3.Router }, { token: PLANET_APPLICATIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1830
+ Planet.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: Planet, providedIn: 'root' });
1831
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: Planet, decorators: [{
1832
+ type: Injectable,
1833
+ args: [{
1834
+ providedIn: 'root'
1835
+ }]
1836
+ }], ctorParameters: function () {
1837
+ return [{ type: i0.Injector }, { type: i3.Router }, { type: undefined, decorators: [{
1838
+ type: Inject,
1839
+ args: [PLANET_APPLICATIONS]
1840
+ }, {
1841
+ type: Optional
1842
+ }] }];
1843
+ } });
1851
1844
 
1852
1845
  class EmptyComponent {
1853
1846
  }
1854
- EmptyComponent.decorators = [
1855
- { type: Component, args: [{
1856
- selector: 'empty-component',
1857
- template: ``
1858
- },] }
1859
- ];
1847
+ EmptyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: EmptyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1848
+ EmptyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: EmptyComponent, selector: "empty-component", ngImport: i0, template: ``, isInline: true });
1849
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: EmptyComponent, decorators: [{
1850
+ type: Component,
1851
+ args: [{
1852
+ // eslint-disable-next-line @angular-eslint/component-selector
1853
+ selector: 'empty-component',
1854
+ template: ``
1855
+ }]
1856
+ }] });
1860
1857
 
1861
1858
  class NgxPlanetModule {
1862
1859
  static forRoot(apps) {
@@ -1871,15 +1868,18 @@ class NgxPlanetModule {
1871
1868
  };
1872
1869
  }
1873
1870
  }
1874
- NgxPlanetModule.decorators = [
1875
- { type: NgModule, args: [{
1876
- declarations: [EmptyComponent],
1877
- entryComponents: [EmptyComponent],
1878
- imports: [HttpClientModule],
1879
- providers: [],
1880
- exports: [HttpClientModule, EmptyComponent]
1881
- },] }
1882
- ];
1871
+ NgxPlanetModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: NgxPlanetModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1872
+ NgxPlanetModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: NgxPlanetModule, declarations: [EmptyComponent], imports: [HttpClientModule], exports: [HttpClientModule, EmptyComponent] });
1873
+ NgxPlanetModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: NgxPlanetModule, providers: [], imports: [[HttpClientModule], HttpClientModule] });
1874
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: NgxPlanetModule, decorators: [{
1875
+ type: NgModule,
1876
+ args: [{
1877
+ declarations: [EmptyComponent],
1878
+ imports: [HttpClientModule],
1879
+ providers: [],
1880
+ exports: [HttpClientModule, EmptyComponent]
1881
+ }]
1882
+ }] });
1883
1883
 
1884
1884
  class PlanetComponentRef {
1885
1885
  }
@@ -2016,18 +2016,19 @@ class PlanetComponentLoader {
2016
2016
  return result;
2017
2017
  }
2018
2018
  }
2019
- PlanetComponentLoader.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlanetComponentLoader_Factory() { return new PlanetComponentLoader(i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.NgModuleRef), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i1$1.DOCUMENT)); }, token: PlanetComponentLoader, providedIn: "root" });
2020
- PlanetComponentLoader.decorators = [
2021
- { type: Injectable, args: [{
2022
- providedIn: 'root'
2023
- },] }
2024
- ];
2025
- PlanetComponentLoader.ctorParameters = () => [
2026
- { type: ApplicationRef },
2027
- { type: NgModuleRef },
2028
- { type: NgZone },
2029
- { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
2030
- ];
2019
+ PlanetComponentLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PlanetComponentLoader, deps: [{ token: i0.ApplicationRef }, { token: i0.NgModuleRef }, { token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
2020
+ PlanetComponentLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PlanetComponentLoader, providedIn: 'root' });
2021
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PlanetComponentLoader, decorators: [{
2022
+ type: Injectable,
2023
+ args: [{
2024
+ providedIn: 'root'
2025
+ }]
2026
+ }], ctorParameters: function () {
2027
+ return [{ type: i0.ApplicationRef }, { type: i0.NgModuleRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
2028
+ type: Inject,
2029
+ args: [DOCUMENT]
2030
+ }] }];
2031
+ } });
2031
2032
 
2032
2033
  class PlantComponentConfig {
2033
2034
  constructor() {
@@ -2044,5 +2045,5 @@ class PlantComponentConfig {
2044
2045
  * Generated bundle index. Do not edit.
2045
2046
  */
2046
2047
 
2047
- export { ApplicationStatus, AssetsLoader, EmptyComponent, GlobalEventDispatcher, NgxPlanetModule, PLANET_APPLICATIONS, Planet, PlanetApplicationLoader, PlanetApplicationRef, PlanetApplicationService, PlanetComponentLoader, PlanetComponentRef, PlanetPortalApplication, PlantComponentConfig, SwitchModes, defineApplication, getPlanetApplicationRef, getPortalApplicationData, globalPlanet as ɵa };
2048
- //# sourceMappingURL=worktile-planet.js.map
2048
+ export { ApplicationStatus, AssetsLoader, EmptyComponent, GlobalEventDispatcher, NgxPlanetModule, PLANET_APPLICATIONS, Planet, PlanetApplicationLoader, PlanetApplicationRef, PlanetApplicationService, PlanetComponentLoader, PlanetComponentRef, PlanetPortalApplication, PlantComponentConfig, SwitchModes, defineApplication, getPlanetApplicationRef, getPortalApplicationData };
2049
+ //# sourceMappingURL=worktile-planet.mjs.map