@worktile/planet 19.0.0 → 20.0.0-next.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/CHANGELOG.md +4 -0
- package/README.md +0 -5
- package/fesm2022/worktile-planet.mjs +310 -318
- package/fesm2022/worktile-planet.mjs.map +1 -1
- package/index.d.ts +467 -6
- package/index.d.ts.map +1 -0
- package/package.json +3 -3
- package/application/ng-planet-application-ref.d.ts +0 -46
- package/application/ng-planet-application-ref.d.ts.map +0 -1
- package/application/planet-application-loader.d.ts +0 -78
- package/application/planet-application-loader.d.ts.map +0 -1
- package/application/planet-application-ref.d.ts +0 -12
- package/application/planet-application-ref.d.ts.map +0 -1
- package/application/planet-application.service.d.ts +0 -22
- package/application/planet-application.service.d.ts.map +0 -1
- package/application/portal-application.d.ts +0 -20
- package/application/portal-application.d.ts.map +0 -1
- package/assets-loader.d.ts +0 -47
- package/assets-loader.d.ts.map +0 -1
- package/component/planet-component-loader.d.ts +0 -31
- package/component/planet-component-loader.d.ts.map +0 -1
- package/component/planet-component-outlet.d.ts +0 -26
- package/component/planet-component-outlet.d.ts.map +0 -1
- package/component/planet-component-types.d.ts +0 -11
- package/component/planet-component-types.d.ts.map +0 -1
- package/component/plant-component.config.d.ts +0 -22
- package/component/plant-component.config.d.ts.map +0 -1
- package/debug.d.ts +0 -22
- package/debug.d.ts.map +0 -1
- package/empty/empty.component.d.ts +0 -6
- package/empty/empty.component.d.ts.map +0 -1
- package/global-event-dispatcher.d.ts +0 -23
- package/global-event-dispatcher.d.ts.map +0 -1
- package/global-planet.d.ts +0 -25
- package/global-planet.d.ts.map +0 -1
- package/helpers.d.ts +0 -36
- package/helpers.d.ts.map +0 -1
- package/inner-types.d.ts +0 -15
- package/inner-types.d.ts.map +0 -1
- package/module.d.ts +0 -13
- package/module.d.ts.map +0 -1
- package/planet.class.d.ts +0 -118
- package/planet.class.d.ts.map +0 -1
- package/planet.d.ts +0 -32
- package/planet.d.ts.map +0 -1
- package/public-api.d.ts +0 -17
- package/public-api.d.ts.map +0 -1
- package/router/route-redirect.d.ts +0 -16
- package/router/route-redirect.d.ts.map +0 -1
- package/sandbox/constants.d.ts +0 -7
- package/sandbox/constants.d.ts.map +0 -1
- package/sandbox/exec.d.ts +0 -3
- package/sandbox/exec.d.ts.map +0 -1
- package/sandbox/index.d.ts +0 -7
- package/sandbox/index.d.ts.map +0 -1
- package/sandbox/proxy/patches/document.d.ts +0 -3
- package/sandbox/proxy/patches/document.d.ts.map +0 -1
- package/sandbox/proxy/patches/eventListener.d.ts +0 -3
- package/sandbox/proxy/patches/eventListener.d.ts.map +0 -1
- package/sandbox/proxy/patches/index.d.ts +0 -3
- package/sandbox/proxy/patches/index.d.ts.map +0 -1
- package/sandbox/proxy/patches/storage.d.ts +0 -15
- package/sandbox/proxy/patches/storage.d.ts.map +0 -1
- package/sandbox/proxy/patches/timer.d.ts +0 -3
- package/sandbox/proxy/patches/timer.d.ts.map +0 -1
- package/sandbox/proxy/proxies/common.d.ts +0 -13
- package/sandbox/proxy/proxies/common.d.ts.map +0 -1
- package/sandbox/proxy/proxies/document.d.ts +0 -14
- package/sandbox/proxy/proxies/document.d.ts.map +0 -1
- package/sandbox/proxy/proxies/window.d.ts +0 -13
- package/sandbox/proxy/proxies/window.d.ts.map +0 -1
- package/sandbox/proxy/proxy-sandbox.d.ts +0 -16
- package/sandbox/proxy/proxy-sandbox.d.ts.map +0 -1
- package/sandbox/proxy/types.d.ts +0 -14
- package/sandbox/proxy/types.d.ts.map +0 -1
- package/sandbox/sandbox.d.ts +0 -12
- package/sandbox/sandbox.d.ts.map +0 -1
- package/sandbox/snapshot/snapshot-sandbox.d.ts +0 -9
- package/sandbox/snapshot/snapshot-sandbox.d.ts.map +0 -1
- package/sandbox/types.d.ts +0 -2
- package/sandbox/types.d.ts.map +0 -1
- package/worktile-planet.d.ts.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,6 +1,467 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, ElementRef, TemplateRef, ComponentRef, ApplicationRef, Injector, NgZone, OnChanges, OnDestroy, AfterViewInit, EventEmitter, SimpleChanges, ModuleWithProviders, NgModuleRef, Type } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { Router, UrlTree, NavigationExtras, ActivatedRoute, Route } from '@angular/router';
|
|
5
|
+
|
|
6
|
+
interface Debugger {
|
|
7
|
+
(formatter: any, ...args: any[]): void;
|
|
8
|
+
}
|
|
9
|
+
interface Formatters {
|
|
10
|
+
[formatter: string]: (v: any) => string;
|
|
11
|
+
}
|
|
12
|
+
interface Debug {
|
|
13
|
+
(namespace: string): Debugger;
|
|
14
|
+
coerce: (val: any) => any;
|
|
15
|
+
disable: () => string;
|
|
16
|
+
enable: (namespaces: string) => void;
|
|
17
|
+
enabled: (namespaces: string) => boolean;
|
|
18
|
+
log: (...args: any[]) => any;
|
|
19
|
+
names: RegExp[];
|
|
20
|
+
skips: RegExp[];
|
|
21
|
+
formatters: Formatters;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface PlanetOptions {
|
|
25
|
+
switchMode?: SwitchModes;
|
|
26
|
+
errorHandler: (error: Error) => void;
|
|
27
|
+
debugFactory?: Debug;
|
|
28
|
+
}
|
|
29
|
+
interface PlanetApplicationEntry {
|
|
30
|
+
basePath?: string;
|
|
31
|
+
scripts?: string[];
|
|
32
|
+
styles?: string[];
|
|
33
|
+
manifest?: string;
|
|
34
|
+
}
|
|
35
|
+
interface PlanetApplication<TExtra = any> {
|
|
36
|
+
/**
|
|
37
|
+
* Application name, e.g. "app1"
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Selector or Element which app host parent
|
|
42
|
+
* 应用加载的宿主元素或者选择器
|
|
43
|
+
*/
|
|
44
|
+
hostParent: string | HTMLElement;
|
|
45
|
+
/**
|
|
46
|
+
* Class name for host
|
|
47
|
+
*/
|
|
48
|
+
hostClass?: string | string[];
|
|
49
|
+
/**
|
|
50
|
+
* Selector for sub application
|
|
51
|
+
* 子应用的选择器
|
|
52
|
+
* @deprecated please use new defineApplication to set selector
|
|
53
|
+
*/
|
|
54
|
+
selector?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Path prefix for sub application, e.g. '/app1'
|
|
57
|
+
* 子应用路由前缀路径
|
|
58
|
+
*/
|
|
59
|
+
routerPathPrefix: string | RegExp;
|
|
60
|
+
/**
|
|
61
|
+
* Preload enabled, default false, if enabled,the application will be loaded when idle in the background
|
|
62
|
+
* 是否开启预加载,开启后会在后台提前加载此应用
|
|
63
|
+
*/
|
|
64
|
+
preload?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Sandbox enabled
|
|
67
|
+
* 是否开启沙箱模式
|
|
68
|
+
*/
|
|
69
|
+
sandbox?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Switch application mode
|
|
72
|
+
* default: will be destroyed when switch to other app
|
|
73
|
+
* coexist: only hide app when switch to other app
|
|
74
|
+
* 切换应用的模式
|
|
75
|
+
*/
|
|
76
|
+
switchMode?: SwitchModes;
|
|
77
|
+
/**
|
|
78
|
+
* Style prefix, e.g. 'app1'
|
|
79
|
+
* 样式前缀
|
|
80
|
+
*/
|
|
81
|
+
stylePrefix?: string;
|
|
82
|
+
/**
|
|
83
|
+
* The entry of the micro application, e.g. '/static/app1/index.html'
|
|
84
|
+
* If configured as string, it represents the entry html address of the micro application. e.g. '/static/app1/index.html'
|
|
85
|
+
* If configured as object, the value of manifest is the html address of the micro application
|
|
86
|
+
* entry.basePath: the base path of the entry, e.g. '/static/app1/'
|
|
87
|
+
* entry.manifest: the manifest of the entry, e.g. 'index.html' or 'assets-manifest.json'
|
|
88
|
+
* entry.scripts: the scripts of the entry, will get final scripts address by manifest and basePath
|
|
89
|
+
* entry.styles: the styles of the entry, will get final styles address by manifest and basePath
|
|
90
|
+
*/
|
|
91
|
+
entry?: string | PlanetApplicationEntry;
|
|
92
|
+
/**
|
|
93
|
+
* Manifest json file path, e.g. /static/app1/assets-manifest.json
|
|
94
|
+
* 应用程序打包后的脚本和样式文件替换
|
|
95
|
+
* @deprecated Please use entry.manifest instead
|
|
96
|
+
*/
|
|
97
|
+
manifest?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Path prefix of scripts and styles, e.g. 'static/app1/'
|
|
100
|
+
* 资源文件路径的前缀
|
|
101
|
+
* @deprecated Please use entry.basePath instead
|
|
102
|
+
*/
|
|
103
|
+
resourcePathPrefix?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Style static resource paths
|
|
106
|
+
* 样式资源文件
|
|
107
|
+
* @deprecated Please use entry.styles instead
|
|
108
|
+
*/
|
|
109
|
+
styles?: string[];
|
|
110
|
+
/**
|
|
111
|
+
* Scripts static resource paths
|
|
112
|
+
* 脚本资源文件
|
|
113
|
+
* @deprecated Please use entry.scripts instead
|
|
114
|
+
*/
|
|
115
|
+
scripts?: string[];
|
|
116
|
+
/**
|
|
117
|
+
* Serial load scripts, default is parallel, only enable when the script has sequentially loaded dependency
|
|
118
|
+
* 串行加载,默认并行加载脚本资源,仅当脚本资源有依赖关系时开启
|
|
119
|
+
*/
|
|
120
|
+
loadSerial?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* 皮肤样式的路径
|
|
123
|
+
*/
|
|
124
|
+
/**
|
|
125
|
+
* Extra data for application
|
|
126
|
+
* 附加数据,主要应用于业务,比如图标,子应用的颜色,显示名等个性化配置
|
|
127
|
+
*/
|
|
128
|
+
extra?: TExtra;
|
|
129
|
+
}
|
|
130
|
+
declare enum SwitchModes {
|
|
131
|
+
default = "default",
|
|
132
|
+
coexist = "coexist"
|
|
133
|
+
}
|
|
134
|
+
interface PlanetRouterEvent {
|
|
135
|
+
url: string;
|
|
136
|
+
}
|
|
137
|
+
declare const PLANET_APPLICATIONS: InjectionToken<PlanetApplication<any>>;
|
|
138
|
+
|
|
139
|
+
type PlantComponentProjectableNode = Node[] | TemplateRef<any>;
|
|
140
|
+
declare class PlantComponentConfig<TData = any> {
|
|
141
|
+
/** Load target container */
|
|
142
|
+
container: HTMLElement | ElementRef<HTMLElement | any> | Comment;
|
|
143
|
+
/**
|
|
144
|
+
* Wrapper class of plant component
|
|
145
|
+
* @deprecated please use hostClass
|
|
146
|
+
*/
|
|
147
|
+
wrapperClass?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Host class of plant component
|
|
150
|
+
*/
|
|
151
|
+
hostClass?: string;
|
|
152
|
+
/** Data being injected into the child component. */
|
|
153
|
+
initialState?: TData | null;
|
|
154
|
+
/**
|
|
155
|
+
* Projectable nodes
|
|
156
|
+
*/
|
|
157
|
+
projectableNodes?: PlantComponentProjectableNode[];
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
declare class PlanetComponentRef<TComp = any> {
|
|
161
|
+
wrapperElement: HTMLElement;
|
|
162
|
+
hostElement: HTMLElement;
|
|
163
|
+
componentInstance: TComp;
|
|
164
|
+
componentRef: ComponentRef<TComp>;
|
|
165
|
+
dispose: () => void;
|
|
166
|
+
}
|
|
167
|
+
type PlantComponentFactory = <TData, TComp>(componentName: string, config: PlantComponentConfig<TData>) => PlanetComponentRef<TComp>;
|
|
168
|
+
|
|
169
|
+
interface GlobalDispatcherEvent {
|
|
170
|
+
name: string;
|
|
171
|
+
payload: any;
|
|
172
|
+
}
|
|
173
|
+
declare class GlobalEventDispatcher {
|
|
174
|
+
private ngZone;
|
|
175
|
+
private subject$;
|
|
176
|
+
private hasAddGlobalEventListener;
|
|
177
|
+
private subscriptionCount;
|
|
178
|
+
private globalEventListener;
|
|
179
|
+
private addGlobalEventListener;
|
|
180
|
+
private removeGlobalEventListener;
|
|
181
|
+
constructor();
|
|
182
|
+
dispatch<TPayload>(name: string, payload?: TPayload): void;
|
|
183
|
+
register<T>(eventName: string): Observable<T>;
|
|
184
|
+
getSubscriptionCount(): number;
|
|
185
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalEventDispatcher, never>;
|
|
186
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalEventDispatcher>;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
declare class PlanetPortalApplication<TData = any> {
|
|
190
|
+
applicationRef?: ApplicationRef;
|
|
191
|
+
injector?: Injector;
|
|
192
|
+
router?: Router;
|
|
193
|
+
ngZone?: NgZone;
|
|
194
|
+
globalEventDispatcher?: GlobalEventDispatcher;
|
|
195
|
+
data?: TData;
|
|
196
|
+
name?: string;
|
|
197
|
+
private componentFactory?;
|
|
198
|
+
navigateByUrl(url: string | UrlTree, extras?: NavigationExtras): Promise<boolean>;
|
|
199
|
+
run<T>(fn: (...args: any[]) => T): T;
|
|
200
|
+
tick(): void;
|
|
201
|
+
getComponentFactory(): PlantComponentFactory;
|
|
202
|
+
registerComponentFactory(componentFactory: PlantComponentFactory): void;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
interface PlanetApplicationRef {
|
|
206
|
+
template?: string;
|
|
207
|
+
get bootstrapped(): boolean;
|
|
208
|
+
get selector(): string;
|
|
209
|
+
bootstrap(app: PlanetPortalApplication): Observable<this>;
|
|
210
|
+
navigateByUrl(url: string): void;
|
|
211
|
+
getCurrentRouterStateUrl(): string;
|
|
212
|
+
destroy(): void;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
declare enum ApplicationStatus {
|
|
216
|
+
assetsLoading = 1,
|
|
217
|
+
assetsLoaded = 2,
|
|
218
|
+
bootstrapping = 3,
|
|
219
|
+
bootstrapped = 4,
|
|
220
|
+
active = 5,
|
|
221
|
+
loadError = 10
|
|
222
|
+
}
|
|
223
|
+
interface AppsLoadingStartEvent {
|
|
224
|
+
shouldLoadApps: PlanetApplication[];
|
|
225
|
+
shouldUnloadApps: PlanetApplication[];
|
|
226
|
+
}
|
|
227
|
+
interface AppStatusChangeEvent {
|
|
228
|
+
app: PlanetApplication;
|
|
229
|
+
status: ApplicationStatus;
|
|
230
|
+
}
|
|
231
|
+
declare class PlanetApplicationLoader {
|
|
232
|
+
private assetsLoader;
|
|
233
|
+
private planetApplicationService;
|
|
234
|
+
private ngZone;
|
|
235
|
+
private firstLoad;
|
|
236
|
+
private startRouteChangeEvent;
|
|
237
|
+
private options;
|
|
238
|
+
private inProgressAppAssetsLoads;
|
|
239
|
+
private appsStatus;
|
|
240
|
+
private portalApp;
|
|
241
|
+
private routeChange$;
|
|
242
|
+
private appStatusChange$;
|
|
243
|
+
private appsLoadingStart$;
|
|
244
|
+
private innerLoading;
|
|
245
|
+
get appStatusChange(): Observable<AppStatusChangeEvent>;
|
|
246
|
+
get appsLoadingStart(): Observable<AppsLoadingStartEvent>;
|
|
247
|
+
/**
|
|
248
|
+
* @deprecated please use loading signal
|
|
249
|
+
*/
|
|
250
|
+
loadingDone: boolean;
|
|
251
|
+
loading: i0.Signal<boolean>;
|
|
252
|
+
constructor();
|
|
253
|
+
private setAppStatus;
|
|
254
|
+
private getAppStatusChange$;
|
|
255
|
+
private switchModeIsCoexist;
|
|
256
|
+
private errorHandler;
|
|
257
|
+
private setLoadingDone;
|
|
258
|
+
private getAppNames;
|
|
259
|
+
private setupRouteChange;
|
|
260
|
+
private startLoadAppAssets;
|
|
261
|
+
private hideApp;
|
|
262
|
+
private showApp;
|
|
263
|
+
private destroyApp;
|
|
264
|
+
private bootstrapApp;
|
|
265
|
+
private getUnloadApps;
|
|
266
|
+
private unloadApps;
|
|
267
|
+
private preloadApps;
|
|
268
|
+
private ensurePreloadApps;
|
|
269
|
+
setOptions(options: Partial<PlanetOptions>): void;
|
|
270
|
+
/**
|
|
271
|
+
* reset route by current router
|
|
272
|
+
*/
|
|
273
|
+
reroute(event: PlanetRouterEvent): void;
|
|
274
|
+
private preloadInternal;
|
|
275
|
+
/**
|
|
276
|
+
* Preload planet application
|
|
277
|
+
* @param app app
|
|
278
|
+
* @param immediate bootstrap on stable by default, setting immediate is true, it will bootstrap immediate
|
|
279
|
+
*/
|
|
280
|
+
preload(app: PlanetApplication, immediate?: boolean): Observable<PlanetApplicationRef>;
|
|
281
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlanetApplicationLoader, never>;
|
|
282
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PlanetApplicationLoader>;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
declare class Planet {
|
|
286
|
+
private injector;
|
|
287
|
+
private router;
|
|
288
|
+
private get planetApplicationLoader();
|
|
289
|
+
private get planetApplicationService();
|
|
290
|
+
/**
|
|
291
|
+
* @deprecated please use loading signal
|
|
292
|
+
*/
|
|
293
|
+
get loadingDone(): boolean;
|
|
294
|
+
get loading(): i0.Signal<boolean>;
|
|
295
|
+
get appStatusChange(): Observable<AppStatusChangeEvent>;
|
|
296
|
+
get appsLoadingStart(): Observable<AppsLoadingStartEvent>;
|
|
297
|
+
private subscription?;
|
|
298
|
+
constructor();
|
|
299
|
+
setOptions(options: Partial<PlanetOptions>): void;
|
|
300
|
+
setPortalAppData<T>(data: T): void;
|
|
301
|
+
registerApp<TExtra>(app: PlanetApplication<TExtra>): void;
|
|
302
|
+
registerApps<TExtra>(apps: PlanetApplication<TExtra>[]): void;
|
|
303
|
+
unregisterApp(name: string): void;
|
|
304
|
+
getApps(): PlanetApplication<any>[];
|
|
305
|
+
start(): void;
|
|
306
|
+
stop(): void;
|
|
307
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Planet, never>;
|
|
308
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Planet>;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
declare class PlanetComponentOutlet implements OnChanges, OnDestroy, AfterViewInit {
|
|
312
|
+
private elementRef;
|
|
313
|
+
private planetComponentLoader;
|
|
314
|
+
private ngZone;
|
|
315
|
+
planetComponentOutlet: string;
|
|
316
|
+
planetComponentOutletApp: string;
|
|
317
|
+
planetComponentOutletProjectableNodes: PlantComponentProjectableNode[];
|
|
318
|
+
planetComponentOutletInitialState: any;
|
|
319
|
+
planetComponentLoaded: EventEmitter<PlanetComponentRef<any>>;
|
|
320
|
+
private componentRef;
|
|
321
|
+
private destroyed$;
|
|
322
|
+
constructor();
|
|
323
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
324
|
+
ngAfterViewInit(): void;
|
|
325
|
+
loadComponent(): void;
|
|
326
|
+
ngOnDestroy(): void;
|
|
327
|
+
clear(): void;
|
|
328
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlanetComponentOutlet, never>;
|
|
329
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PlanetComponentOutlet, "[planetComponentOutlet]", never, { "planetComponentOutlet": { "alias": "planetComponentOutlet"; "required": false; }; "planetComponentOutletApp": { "alias": "planetComponentOutletApp"; "required": false; }; "planetComponentOutletProjectableNodes": { "alias": "planetComponentOutletProjectableNodes"; "required": false; }; "planetComponentOutletInitialState": { "alias": "planetComponentOutletInitialState"; "required": false; }; }, { "planetComponentLoaded": "planetComponentLoaded"; }, never, never, true, never>;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
declare class EmptyComponent {
|
|
333
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyComponent, never>;
|
|
334
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmptyComponent, "empty-component", never, {}, {}, never, never, true, never>;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
declare class RouteRedirect {
|
|
338
|
+
activatedRoute: ActivatedRoute;
|
|
339
|
+
router: Router;
|
|
340
|
+
constructor(redirectTo: string);
|
|
341
|
+
}
|
|
342
|
+
declare function routeRedirect(redirectTo?: string): RouteRedirect;
|
|
343
|
+
declare class RedirectToRouteComponent {
|
|
344
|
+
routeRedirect: RouteRedirect;
|
|
345
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RedirectToRouteComponent, never>;
|
|
346
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RedirectToRouteComponent, "planet-redirect-to-route", never, {}, {}, never, never, true, never>;
|
|
347
|
+
}
|
|
348
|
+
declare function redirectToRoute(redirectTo: string): Route;
|
|
349
|
+
|
|
350
|
+
declare class NgxPlanetModule {
|
|
351
|
+
static forRoot(apps: PlanetApplication[]): ModuleWithProviders<NgxPlanetModule>;
|
|
352
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxPlanetModule, never>;
|
|
353
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxPlanetModule, never, [typeof PlanetComponentOutlet, typeof EmptyComponent, typeof RedirectToRouteComponent], [typeof EmptyComponent, typeof PlanetComponentOutlet]>;
|
|
354
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgxPlanetModule>;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
declare class PlanetApplicationService {
|
|
358
|
+
private http;
|
|
359
|
+
private apps;
|
|
360
|
+
private appsMap;
|
|
361
|
+
constructor();
|
|
362
|
+
register<TExtra>(appOrApps: PlanetApplication<TExtra> | PlanetApplication<TExtra>[]): void;
|
|
363
|
+
registerByUrl(url: string): Observable<void>;
|
|
364
|
+
unregister(name: string): void;
|
|
365
|
+
getAppsByMatchedUrl<TExtra = unknown>(url: string): PlanetApplication<TExtra>[];
|
|
366
|
+
getAppByName(name: string): PlanetApplication<any>;
|
|
367
|
+
getAppsToPreload(excludeAppNames?: string[]): PlanetApplication<any>[];
|
|
368
|
+
getApps(): PlanetApplication<any>[];
|
|
369
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlanetApplicationService, never>;
|
|
370
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PlanetApplicationService>;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
type NgBootstrapAppModule = (portalApp: PlanetPortalApplication) => Promise<NgModuleRef<any> | void | ApplicationRef | undefined | null>;
|
|
374
|
+
interface NgBootstrapOptions {
|
|
375
|
+
template: string;
|
|
376
|
+
bootstrap: NgBootstrapAppModule;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
declare function defineApplication<TOptions extends NgBootstrapAppModule | NgBootstrapOptions>(name: string, options: TOptions): void;
|
|
380
|
+
declare function getPlanetApplicationRef(appName: string): PlanetApplicationRef | null;
|
|
381
|
+
declare function getPortalApplicationData<TData>(): TData;
|
|
382
|
+
|
|
383
|
+
interface ScriptTagAttributes {
|
|
384
|
+
type?: 'module' | 'text/script' | undefined;
|
|
385
|
+
async?: string;
|
|
386
|
+
defer?: string;
|
|
387
|
+
}
|
|
388
|
+
interface LinkTagAttributes {
|
|
389
|
+
rel?: string;
|
|
390
|
+
}
|
|
391
|
+
type ScriptOrLinkTagAttributes = ScriptTagAttributes | LinkTagAttributes;
|
|
392
|
+
interface AssetsTagItem {
|
|
393
|
+
src: string;
|
|
394
|
+
tagName?: 'link' | 'script';
|
|
395
|
+
attributes?: ScriptOrLinkTagAttributes;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
interface AssetsLoadResult {
|
|
399
|
+
src: string;
|
|
400
|
+
hashCode: number;
|
|
401
|
+
loaded: boolean;
|
|
402
|
+
status: string;
|
|
403
|
+
}
|
|
404
|
+
declare class AssetsLoader {
|
|
405
|
+
private http;
|
|
406
|
+
private loadedSources;
|
|
407
|
+
constructor();
|
|
408
|
+
loadScript(scriptAsset: AssetsTagItem): Observable<{
|
|
409
|
+
src: string;
|
|
410
|
+
hashCode: number;
|
|
411
|
+
loaded: boolean;
|
|
412
|
+
status: string;
|
|
413
|
+
}>;
|
|
414
|
+
loadScriptWithSandbox(app: string, src: string): Observable<AssetsLoadResult>;
|
|
415
|
+
loadStyle(src: string): Observable<AssetsLoadResult>;
|
|
416
|
+
loadScripts(sources: AssetsTagItem[], options?: {
|
|
417
|
+
app?: string;
|
|
418
|
+
sandbox?: boolean;
|
|
419
|
+
serial?: boolean;
|
|
420
|
+
}): Observable<AssetsLoadResult[]>;
|
|
421
|
+
loadStyles(sources: AssetsTagItem[]): Observable<AssetsLoadResult[]>;
|
|
422
|
+
loadScriptsAndStyles(scripts?: AssetsTagItem[], styles?: AssetsTagItem[], options?: {
|
|
423
|
+
app?: string;
|
|
424
|
+
sandbox?: boolean;
|
|
425
|
+
serial?: boolean;
|
|
426
|
+
}): Observable<[AssetsLoadResult[], AssetsLoadResult[]]>;
|
|
427
|
+
/**
|
|
428
|
+
* <script type="module" src="http://127.0.0.1:3001/main.js" async defer></script>
|
|
429
|
+
* => [`type="module"`, "async ", "defer>"] as attributeStrMatchArr
|
|
430
|
+
* => { type: "module", async: "async", defer: "defer" } as attributes
|
|
431
|
+
*/
|
|
432
|
+
parseTagAttributes(tag: string): Record<string, string>;
|
|
433
|
+
parseManifestFromHTML(html: string): Record<string, AssetsTagItem[]>;
|
|
434
|
+
loadAppAssets(app: PlanetApplication): Observable<[AssetsLoadResult[], AssetsLoadResult[]]>;
|
|
435
|
+
loadManifest(url: string, responseType?: 'text' | 'json'): Observable<Record<string, AssetsTagItem[]>>;
|
|
436
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AssetsLoader, never>;
|
|
437
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AssetsLoader>;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
type PlanetComponent<T = unknown> = {
|
|
441
|
+
name: string;
|
|
442
|
+
component: Type<T>;
|
|
443
|
+
} | Type<T>;
|
|
444
|
+
declare class PlanetComponentLoader {
|
|
445
|
+
private applicationRef;
|
|
446
|
+
private ngModuleRef;
|
|
447
|
+
private ngZone;
|
|
448
|
+
private get applicationLoader();
|
|
449
|
+
private get applicationService();
|
|
450
|
+
constructor();
|
|
451
|
+
private getPlantAppRef;
|
|
452
|
+
private createInjector;
|
|
453
|
+
private getContainerElement;
|
|
454
|
+
private insertComponentRootNodeToContainer;
|
|
455
|
+
private attachComponent;
|
|
456
|
+
/** Gets the root HTMLElement for an instantiated component. */
|
|
457
|
+
private getComponentRootNode;
|
|
458
|
+
private registerComponentFactory;
|
|
459
|
+
register(components: PlanetComponent | PlanetComponent[], immediate?: boolean): void;
|
|
460
|
+
load<TComp = unknown, TData = unknown>(app: string, componentName: string, config: PlantComponentConfig<TData>): Observable<PlanetComponentRef<TComp>>;
|
|
461
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlanetComponentLoader, never>;
|
|
462
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PlanetComponentLoader>;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export { ApplicationStatus, AssetsLoader, EmptyComponent, GlobalEventDispatcher, NgxPlanetModule, PLANET_APPLICATIONS, Planet, PlanetApplicationLoader, PlanetApplicationService, PlanetComponentLoader, PlanetComponentOutlet, PlanetComponentRef, PlanetPortalApplication, PlantComponentConfig, RedirectToRouteComponent, SwitchModes, defineApplication, getPlanetApplicationRef, getPortalApplicationData, redirectToRoute, routeRedirect };
|
|
466
|
+
export type { AppStatusChangeEvent, AppsLoadingStartEvent, AssetsLoadResult, GlobalDispatcherEvent, PlanetApplication, PlanetApplicationEntry, PlanetApplicationRef, PlanetComponent, PlanetOptions, PlanetRouterEvent };
|
|
467
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../packages/planet/src/debug.ts","../../packages/planet/src/planet.class.ts","../../packages/planet/src/component/plant-component.config.ts","../../packages/planet/src/component/planet-component-types.ts","../../packages/planet/src/global-event-dispatcher.ts","../../packages/planet/src/application/portal-application.ts","../../packages/planet/src/application/planet-application-ref.ts","../../packages/planet/src/application/planet-application-loader.ts","../../packages/planet/src/planet.ts","../../packages/planet/src/component/planet-component-outlet.ts","../../packages/planet/src/empty/empty.component.ts","../../packages/planet/src/router/route-redirect.ts","../../packages/planet/src/module.ts","../../packages/planet/src/application/planet-application.service.ts","../../packages/planet/src/application/ng-planet-application-ref.ts","../../packages/planet/src/global-planet.ts","../../packages/planet/src/inner-types.ts","../../packages/planet/src/assets-loader.ts","../../packages/planet/src/component/planet-component-loader.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;AAWC;;;AAIA;;AAGG;AACA;;AAEA;AACA;;;;;AAOH;;;;ACxBG;;AAEH;;;AAIG;AACA;;AAEH;AAEK;AACF;;AAEG;;AAEH;;;AAGG;AACH;AACA;;AAEG;AACH;AACA;;;;AAIG;;AAEH;;;AAGG;AACH;AACA;;;AAGG;;AAEH;;;AAGG;;AAEH;;;;;AAKG;;AAEH;;;AAGG;;AAEH;;;;;;;;AAQG;AACH;AACA;;;;AAIG;;AAEH;;;;AAIG;;AAEH;;;;AAIG;AACH;AACA;;;;AAIG;AACH;AACA;;;AAGG;;AAEH;;AAEG;AAEH;;;AAGG;;AAEN;AAED;AACI;AACA;AACH;;;AAIA;AAED;;ACxHM;AAEN;;;AAGI;;;AAGG;;AAEH;;AAEG;;;AAGH;AACA;;AAEG;AACH;AACH;;ACnBD;;;;AAII;;AAEH;AAEK;;;;;ACJL;AAID;;;;;;AAgBI;AAKA;;;;;;;AAmDH;;AC9ED;;;;;;;;;AAUI;AAMA;;;;AAiBH;;;;;;;AC9BG;;;AAGH;;ACID;AACI;AACA;AACA;AACA;AACA;AACA;AACH;;;;AAKA;;;;AAKA;AAED;;;;;;;;;;;;;;AA4BI;AAIA;AAIA;;AAEG;AACI;AAEA;;AA2BP;AAcA;AAWA;AAQA;AAMA;AAOA;AAQA;AA8IA;AAyBA;AAQA;AAQA;AAYA;AAiDA;AAUA;AAoCA;AAkBA;AASO;AAOP;;AAEG;;AAKH;AAwCA;;;;AAIG;AACI;;;AAGV;;ACvgBD;;;;;AAeI;;AAEG;AACH;AAIA;AAIA;AAIA;;;AAqBA;AAOA;;;;;;;;;AA0CH;;ACjGD;;;;;;;;AAkBc;;;;;AAcV;;AAyBA;;;;AASH;;ACnFD;;;AAO8B;;ACN9B;AACI;AACA;AAEY;AAgCf;AAED;AAIA;AAMI;;;AACH;AAED;;AC/CA;;;;;AAkBC;;ACjBD;;;;;AAgBI;;;AAmCA;;AAiBA;;;;AAaH;;AC/EK;;;;AAOL;;ACGD;AAcA;AAyBA;;;AC1DI;;;AAGH;;;AAIA;;;;AAMG;;AAEH;;;;;;;ACEA;AAED;;;;;;;;;;AA4FI;;AA+EA;;;;AASK;;AAqCL;;;;AAOK;AAKL;;;;AAIG;;;;;;;AAmHN;;;;ACvUS;AACH;AAGP;;;;;;;AAkBI;AAcA;AAYA;AAYA;AAkBA;;AAmCA;AAIA;;AA4CA;;;AAsDH;;;"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worktile/planet",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.0-next.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/common": "^
|
|
7
|
-
"@angular/core": "^
|
|
6
|
+
"@angular/common": "^20.0.0",
|
|
7
|
+
"@angular/core": "^20.0.0"
|
|
8
8
|
},
|
|
9
9
|
"module": "fesm2022/worktile-planet.mjs",
|
|
10
10
|
"typings": "index.d.ts",
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ApplicationRef, NgModuleRef, NgZone } from '@angular/core';
|
|
2
|
-
import { Router, NavigationBehaviorOptions } from '@angular/router';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { PlanetPortalApplication } from './portal-application';
|
|
5
|
-
import { PlantComponentFactory } from '../component/planet-component-types';
|
|
6
|
-
import { Sandbox } from '../sandbox/';
|
|
7
|
-
import { PlanetApplicationRef } from './planet-application-ref';
|
|
8
|
-
export type NgBootstrapAppModule = (portalApp: PlanetPortalApplication) => Promise<NgModuleRef<any> | void | ApplicationRef | undefined | null>;
|
|
9
|
-
export interface NgBootstrapOptions {
|
|
10
|
-
template: string;
|
|
11
|
-
bootstrap: NgBootstrapAppModule;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated please use NgBootstrapAppModule
|
|
15
|
-
*/
|
|
16
|
-
export type BootstrapAppModule = NgBootstrapAppModule;
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated please use NgBootstrapOptions
|
|
19
|
-
*/
|
|
20
|
-
export interface BootstrapOptions extends NgBootstrapOptions {
|
|
21
|
-
}
|
|
22
|
-
export declare class NgPlanetApplicationRef implements PlanetApplicationRef {
|
|
23
|
-
private injector?;
|
|
24
|
-
private appRef?;
|
|
25
|
-
appModuleRef?: NgModuleRef<any>;
|
|
26
|
-
template?: string;
|
|
27
|
-
private innerSelector?;
|
|
28
|
-
private name;
|
|
29
|
-
private portalApp;
|
|
30
|
-
private appModuleBootstrap?;
|
|
31
|
-
private componentFactory?;
|
|
32
|
-
get selector(): string;
|
|
33
|
-
get ngZone(): NgZone | undefined;
|
|
34
|
-
get sandbox(): Sandbox;
|
|
35
|
-
get bootstrapped(): boolean;
|
|
36
|
-
constructor(name: string, options?: BootstrapOptions);
|
|
37
|
-
private syncPortalRouteWhenNavigationEnd;
|
|
38
|
-
bootstrap(app: PlanetPortalApplication): Observable<this>;
|
|
39
|
-
getRouter(): Router;
|
|
40
|
-
getCurrentRouterStateUrl(): string;
|
|
41
|
-
navigateByUrl(url: string, extras?: NavigationBehaviorOptions): void;
|
|
42
|
-
getComponentFactory(): PlantComponentFactory;
|
|
43
|
-
registerComponentFactory(componentFactory: PlantComponentFactory): void;
|
|
44
|
-
destroy(): void;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=ng-planet-application-ref.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ng-planet-application-ref.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/application/ng-planet-application-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,EAAuB,MAAM,eAAe,CAAC;AACzF,OAAO,EAAE,MAAM,EAAkC,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAEpG,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAE5E,OAAO,EAAsB,OAAO,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG,CAC/B,SAAS,EAAE,uBAAuB,KACjC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,cAAc,GAAG,SAAS,GAAG,IAAI,CAAC,CAAC;AAE1E,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,oBAAoB,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;AACtD;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;CAAG;AAE/D,qBAAa,sBAAuB,YAAW,oBAAoB;IAC/D,OAAO,CAAC,QAAQ,CAAC,CAAsB;IACvC,OAAO,CAAC,MAAM,CAAC,CAAiB;IACzB,YAAY,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,SAAS,CAA2B;IAC5C,OAAO,CAAC,kBAAkB,CAAC,CAAuB;IAClD,OAAO,CAAC,gBAAgB,CAAC,CAAwB;IAEjD,IAAW,QAAQ,WAElB;IAED,IAAW,MAAM,IAAI,MAAM,GAAG,SAAS,CAEtC;IAED,IAAW,OAAO,IAAI,OAAO,CAE5B;IAED,IAAW,YAAY,IAAI,OAAO,CAEjC;gBAEW,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAgBpD,OAAO,CAAC,gCAAgC;IAyBxC,SAAS,CAAC,GAAG,EAAE,uBAAuB,GAAG,UAAU,CAAC,IAAI,CAAC;IAuBzD,SAAS;IAIT,wBAAwB;IAIxB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,yBAAyB,GAAG,IAAI;IAOpE,mBAAmB;IAInB,wBAAwB,CAAC,gBAAgB,EAAE,qBAAqB;IAIhE,OAAO,IAAI,IAAI;CAgBlB"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { NgZone, ApplicationRef, Injector } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { AssetsLoader } from '../assets-loader';
|
|
4
|
-
import { PlanetApplication, PlanetRouterEvent, PlanetOptions } from '../planet.class';
|
|
5
|
-
import { PlanetApplicationRef } from './planet-application-ref';
|
|
6
|
-
import { PlanetApplicationService } from './planet-application.service';
|
|
7
|
-
import { Router } from '@angular/router';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare enum ApplicationStatus {
|
|
10
|
-
assetsLoading = 1,
|
|
11
|
-
assetsLoaded = 2,
|
|
12
|
-
bootstrapping = 3,
|
|
13
|
-
bootstrapped = 4,
|
|
14
|
-
active = 5,
|
|
15
|
-
loadError = 10
|
|
16
|
-
}
|
|
17
|
-
export interface AppsLoadingStartEvent {
|
|
18
|
-
shouldLoadApps: PlanetApplication[];
|
|
19
|
-
shouldUnloadApps: PlanetApplication[];
|
|
20
|
-
}
|
|
21
|
-
export interface AppStatusChangeEvent {
|
|
22
|
-
app: PlanetApplication;
|
|
23
|
-
status: ApplicationStatus;
|
|
24
|
-
}
|
|
25
|
-
export declare class PlanetApplicationLoader {
|
|
26
|
-
private assetsLoader;
|
|
27
|
-
private planetApplicationService;
|
|
28
|
-
private ngZone;
|
|
29
|
-
private firstLoad;
|
|
30
|
-
private startRouteChangeEvent;
|
|
31
|
-
private options;
|
|
32
|
-
private inProgressAppAssetsLoads;
|
|
33
|
-
private appsStatus;
|
|
34
|
-
private portalApp;
|
|
35
|
-
private routeChange$;
|
|
36
|
-
private appStatusChange$;
|
|
37
|
-
private appsLoadingStart$;
|
|
38
|
-
private innerLoading;
|
|
39
|
-
get appStatusChange(): Observable<AppStatusChangeEvent>;
|
|
40
|
-
get appsLoadingStart(): Observable<AppsLoadingStartEvent>;
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated please use loading signal
|
|
43
|
-
*/
|
|
44
|
-
loadingDone: boolean;
|
|
45
|
-
loading: import("@angular/core").Signal<boolean>;
|
|
46
|
-
constructor(assetsLoader: AssetsLoader, planetApplicationService: PlanetApplicationService, ngZone: NgZone, router: Router, injector: Injector, applicationRef: ApplicationRef);
|
|
47
|
-
private setAppStatus;
|
|
48
|
-
private getAppStatusChange$;
|
|
49
|
-
private switchModeIsCoexist;
|
|
50
|
-
private errorHandler;
|
|
51
|
-
private setLoadingDone;
|
|
52
|
-
private getAppNames;
|
|
53
|
-
private setupRouteChange;
|
|
54
|
-
private startLoadAppAssets;
|
|
55
|
-
private hideApp;
|
|
56
|
-
private showApp;
|
|
57
|
-
private destroyApp;
|
|
58
|
-
private bootstrapApp;
|
|
59
|
-
private getUnloadApps;
|
|
60
|
-
private unloadApps;
|
|
61
|
-
private preloadApps;
|
|
62
|
-
private ensurePreloadApps;
|
|
63
|
-
setOptions(options: Partial<PlanetOptions>): void;
|
|
64
|
-
/**
|
|
65
|
-
* reset route by current router
|
|
66
|
-
*/
|
|
67
|
-
reroute(event: PlanetRouterEvent): void;
|
|
68
|
-
private preloadInternal;
|
|
69
|
-
/**
|
|
70
|
-
* Preload planet application
|
|
71
|
-
* @param app app
|
|
72
|
-
* @param immediate bootstrap on stable by default, setting immediate is true, it will bootstrap immediate
|
|
73
|
-
*/
|
|
74
|
-
preload(app: PlanetApplication, immediate?: boolean): Observable<PlanetApplicationRef>;
|
|
75
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PlanetApplicationLoader, never>;
|
|
76
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PlanetApplicationLoader>;
|
|
77
|
-
}
|
|
78
|
-
//# sourceMappingURL=planet-application-loader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"planet-application-loader.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/application/planet-application-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAoB,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAM,UAAU,EAAuC,MAAM,MAAM,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAe,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;;AAKzC,oBAAY,iBAAiB;IACzB,aAAa,IAAI;IACjB,YAAY,IAAI;IAChB,aAAa,IAAI;IACjB,YAAY,IAAI;IAChB,MAAM,IAAI;IACV,SAAS,KAAK;CACjB;AAED,MAAM,WAAW,qBAAqB;IAClC,cAAc,EAAE,iBAAiB,EAAE,CAAC;IACpC,gBAAgB,EAAE,iBAAiB,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,oBAAoB;IACjC,GAAG,EAAE,iBAAiB,CAAC;IACvB,MAAM,EAAE,iBAAiB,CAAC;CAC7B;AAED,qBAGa,uBAAuB;IAqC5B,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,wBAAwB;IAChC,OAAO,CAAC,MAAM;IAtClB,OAAO,CAAC,SAAS,CAAQ;IAEzB,OAAO,CAAC,qBAAqB,CAAqB;IAElD,OAAO,CAAC,OAAO,CAAgB;IAE/B,OAAO,CAAC,wBAAwB,CAAoD;IAEpF,OAAO,CAAC,UAAU,CAAmD;IAErE,OAAO,CAAC,SAAS,CAAiC;IAElD,OAAO,CAAC,YAAY,CAAoC;IAExD,OAAO,CAAC,gBAAgB,CAAuC;IAE/D,OAAO,CAAC,iBAAiB,CAAwC;IAEjE,OAAO,CAAC,YAAY,CAAiB;IAErC,IAAW,eAAe,IAAI,UAAU,CAAC,oBAAoB,CAAC,CAE7D;IAED,IAAW,gBAAgB,IAAI,UAAU,CAAC,qBAAqB,CAAC,CAE/D;IAED;;OAEG;IACI,WAAW,UAAS;IAEpB,OAAO,0CAAkC;gBAGpC,YAAY,EAAE,YAAY,EAC1B,wBAAwB,EAAE,wBAAwB,EAClD,MAAM,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAc;IAqBlC,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,gBAAgB;IA8IxB,OAAO,CAAC,kBAAkB;IAyB1B,OAAO,CAAC,OAAO;IAQf,OAAO,CAAC,OAAO;IAQf,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,YAAY;IAiDpB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,UAAU;IAoClB,OAAO,CAAC,WAAW;IAkBnB,OAAO,CAAC,iBAAiB;IASlB,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC;IAOjD;;OAEG;IACI,OAAO,CAAC,KAAK,EAAE,iBAAiB;IAIvC,OAAO,CAAC,eAAe;IAwCvB;;;;OAIG;IACI,OAAO,CAAC,GAAG,EAAE,iBAAiB,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,oBAAoB,CAAC;yCA7epF,uBAAuB;6CAAvB,uBAAuB;CAgfnC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { PlanetPortalApplication } from './portal-application';
|
|
3
|
-
export interface PlanetApplicationRef {
|
|
4
|
-
template?: string;
|
|
5
|
-
get bootstrapped(): boolean;
|
|
6
|
-
get selector(): string;
|
|
7
|
-
bootstrap(app: PlanetPortalApplication): Observable<this>;
|
|
8
|
-
navigateByUrl(url: string): void;
|
|
9
|
-
getCurrentRouterStateUrl(): string;
|
|
10
|
-
destroy(): void;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=planet-application-ref.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"planet-application-ref.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/application/planet-application-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,WAAW,oBAAoB;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,YAAY,IAAI,OAAO,CAAC;IAC5B,IAAI,QAAQ,IAAI,MAAM,CAAC;IACvB,SAAS,CAAC,GAAG,EAAE,uBAAuB,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAC1D,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,wBAAwB,IAAI,MAAM,CAAC;IACnC,OAAO,IAAI,IAAI,CAAC;CACnB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PlanetApplication } from '../planet.class';
|
|
2
|
-
import { HttpClient } from '@angular/common/http';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { AssetsLoader } from '../assets-loader';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class PlanetApplicationService {
|
|
7
|
-
private http;
|
|
8
|
-
private assetsLoader;
|
|
9
|
-
private apps;
|
|
10
|
-
private appsMap;
|
|
11
|
-
constructor(http: HttpClient, assetsLoader: AssetsLoader);
|
|
12
|
-
register<TExtra>(appOrApps: PlanetApplication<TExtra> | PlanetApplication<TExtra>[]): void;
|
|
13
|
-
registerByUrl(url: string): Observable<void>;
|
|
14
|
-
unregister(name: string): void;
|
|
15
|
-
getAppsByMatchedUrl<TExtra = unknown>(url: string): PlanetApplication<TExtra>[];
|
|
16
|
-
getAppByName(name: string): PlanetApplication<any>;
|
|
17
|
-
getAppsToPreload(excludeAppNames?: string[]): PlanetApplication<any>[];
|
|
18
|
-
getApps(): PlanetApplication<any>[];
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PlanetApplicationService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PlanetApplicationService>;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=planet-application.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"planet-application.service.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/application/planet-application.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGlD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;;AAGhD,qBAGa,wBAAwB;IAM7B,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,YAAY;IANxB,OAAO,CAAC,IAAI,CAA2B;IAEvC,OAAO,CAAC,OAAO,CAA4C;gBAG/C,IAAI,EAAE,UAAU,EAChB,YAAY,EAAE,YAAY;IAOtC,QAAQ,CAAC,MAAM,EAAE,SAAS,EAAE,iBAAiB,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,EAAE;IAWnF,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC;IAe5C,UAAU,CAAC,IAAI,EAAE,MAAM;IASvB,mBAAmB,CAAC,MAAM,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,EAAE;IAa/E,YAAY,CAAC,IAAI,EAAE,MAAM;IAIzB,gBAAgB,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE;IAU3C,OAAO;yCA5EE,wBAAwB;6CAAxB,wBAAwB;CA+EpC"}
|