@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.
Files changed (82) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +0 -5
  3. package/fesm2022/worktile-planet.mjs +310 -318
  4. package/fesm2022/worktile-planet.mjs.map +1 -1
  5. package/index.d.ts +467 -6
  6. package/index.d.ts.map +1 -0
  7. package/package.json +3 -3
  8. package/application/ng-planet-application-ref.d.ts +0 -46
  9. package/application/ng-planet-application-ref.d.ts.map +0 -1
  10. package/application/planet-application-loader.d.ts +0 -78
  11. package/application/planet-application-loader.d.ts.map +0 -1
  12. package/application/planet-application-ref.d.ts +0 -12
  13. package/application/planet-application-ref.d.ts.map +0 -1
  14. package/application/planet-application.service.d.ts +0 -22
  15. package/application/planet-application.service.d.ts.map +0 -1
  16. package/application/portal-application.d.ts +0 -20
  17. package/application/portal-application.d.ts.map +0 -1
  18. package/assets-loader.d.ts +0 -47
  19. package/assets-loader.d.ts.map +0 -1
  20. package/component/planet-component-loader.d.ts +0 -31
  21. package/component/planet-component-loader.d.ts.map +0 -1
  22. package/component/planet-component-outlet.d.ts +0 -26
  23. package/component/planet-component-outlet.d.ts.map +0 -1
  24. package/component/planet-component-types.d.ts +0 -11
  25. package/component/planet-component-types.d.ts.map +0 -1
  26. package/component/plant-component.config.d.ts +0 -22
  27. package/component/plant-component.config.d.ts.map +0 -1
  28. package/debug.d.ts +0 -22
  29. package/debug.d.ts.map +0 -1
  30. package/empty/empty.component.d.ts +0 -6
  31. package/empty/empty.component.d.ts.map +0 -1
  32. package/global-event-dispatcher.d.ts +0 -23
  33. package/global-event-dispatcher.d.ts.map +0 -1
  34. package/global-planet.d.ts +0 -25
  35. package/global-planet.d.ts.map +0 -1
  36. package/helpers.d.ts +0 -36
  37. package/helpers.d.ts.map +0 -1
  38. package/inner-types.d.ts +0 -15
  39. package/inner-types.d.ts.map +0 -1
  40. package/module.d.ts +0 -13
  41. package/module.d.ts.map +0 -1
  42. package/planet.class.d.ts +0 -118
  43. package/planet.class.d.ts.map +0 -1
  44. package/planet.d.ts +0 -32
  45. package/planet.d.ts.map +0 -1
  46. package/public-api.d.ts +0 -17
  47. package/public-api.d.ts.map +0 -1
  48. package/router/route-redirect.d.ts +0 -16
  49. package/router/route-redirect.d.ts.map +0 -1
  50. package/sandbox/constants.d.ts +0 -7
  51. package/sandbox/constants.d.ts.map +0 -1
  52. package/sandbox/exec.d.ts +0 -3
  53. package/sandbox/exec.d.ts.map +0 -1
  54. package/sandbox/index.d.ts +0 -7
  55. package/sandbox/index.d.ts.map +0 -1
  56. package/sandbox/proxy/patches/document.d.ts +0 -3
  57. package/sandbox/proxy/patches/document.d.ts.map +0 -1
  58. package/sandbox/proxy/patches/eventListener.d.ts +0 -3
  59. package/sandbox/proxy/patches/eventListener.d.ts.map +0 -1
  60. package/sandbox/proxy/patches/index.d.ts +0 -3
  61. package/sandbox/proxy/patches/index.d.ts.map +0 -1
  62. package/sandbox/proxy/patches/storage.d.ts +0 -15
  63. package/sandbox/proxy/patches/storage.d.ts.map +0 -1
  64. package/sandbox/proxy/patches/timer.d.ts +0 -3
  65. package/sandbox/proxy/patches/timer.d.ts.map +0 -1
  66. package/sandbox/proxy/proxies/common.d.ts +0 -13
  67. package/sandbox/proxy/proxies/common.d.ts.map +0 -1
  68. package/sandbox/proxy/proxies/document.d.ts +0 -14
  69. package/sandbox/proxy/proxies/document.d.ts.map +0 -1
  70. package/sandbox/proxy/proxies/window.d.ts +0 -13
  71. package/sandbox/proxy/proxies/window.d.ts.map +0 -1
  72. package/sandbox/proxy/proxy-sandbox.d.ts +0 -16
  73. package/sandbox/proxy/proxy-sandbox.d.ts.map +0 -1
  74. package/sandbox/proxy/types.d.ts +0 -14
  75. package/sandbox/proxy/types.d.ts.map +0 -1
  76. package/sandbox/sandbox.d.ts +0 -12
  77. package/sandbox/sandbox.d.ts.map +0 -1
  78. package/sandbox/snapshot/snapshot-sandbox.d.ts +0 -9
  79. package/sandbox/snapshot/snapshot-sandbox.d.ts.map +0 -1
  80. package/sandbox/types.d.ts +0 -2
  81. package/sandbox/types.d.ts.map +0 -1
  82. package/worktile-planet.d.ts.map +0 -1
@@ -1,20 +0,0 @@
1
- import { Router, UrlTree, NavigationExtras } from '@angular/router';
2
- import { NgZone, Injector, ApplicationRef } from '@angular/core';
3
- import { PlantComponentFactory } from '../component/planet-component-types';
4
- import { GlobalEventDispatcher } from '../global-event-dispatcher';
5
- export declare class PlanetPortalApplication<TData = any> {
6
- applicationRef?: ApplicationRef;
7
- injector?: Injector;
8
- router?: Router;
9
- ngZone?: NgZone;
10
- globalEventDispatcher?: GlobalEventDispatcher;
11
- data?: TData;
12
- name?: string;
13
- private componentFactory?;
14
- navigateByUrl(url: string | UrlTree, extras?: NavigationExtras): Promise<boolean>;
15
- run<T>(fn: (...args: any[]) => T): T;
16
- tick(): void;
17
- getComponentFactory(): PlantComponentFactory;
18
- registerComponentFactory(componentFactory: PlantComponentFactory): void;
19
- }
20
- //# sourceMappingURL=portal-application.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"portal-application.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/application/portal-application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,qBAAa,uBAAuB,CAAC,KAAK,GAAG,GAAG;IAC5C,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAY;IACzB,OAAO,CAAC,gBAAgB,CAAC,CAAwB;IAEjD,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAMjF,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC;IAMpC,IAAI;IAIJ,mBAAmB;IAInB,wBAAwB,CAAC,gBAAgB,EAAE,qBAAqB;CAGnE"}
@@ -1,47 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { HttpClient } from '@angular/common/http';
3
- import { PlanetApplication } from './planet.class';
4
- import { AssetsTagItem } from './inner-types';
5
- import * as i0 from "@angular/core";
6
- export interface AssetsLoadResult {
7
- src: string;
8
- hashCode: number;
9
- loaded: boolean;
10
- status: string;
11
- }
12
- export declare class AssetsLoader {
13
- private http;
14
- private loadedSources;
15
- constructor(http: HttpClient);
16
- loadScript(scriptAsset: AssetsTagItem): Observable<{
17
- src: string;
18
- hashCode: number;
19
- loaded: boolean;
20
- status: string;
21
- }>;
22
- loadScriptWithSandbox(app: string, src: string): Observable<AssetsLoadResult>;
23
- loadStyle(src: string): Observable<AssetsLoadResult>;
24
- loadScripts(sources: AssetsTagItem[], options?: {
25
- app?: string;
26
- sandbox?: boolean;
27
- serial?: boolean;
28
- }): Observable<AssetsLoadResult[]>;
29
- loadStyles(sources: AssetsTagItem[]): Observable<AssetsLoadResult[]>;
30
- loadScriptsAndStyles(scripts?: AssetsTagItem[], styles?: AssetsTagItem[], options?: {
31
- app?: string;
32
- sandbox?: boolean;
33
- serial?: boolean;
34
- }): Observable<[AssetsLoadResult[], AssetsLoadResult[]]>;
35
- /**
36
- * <script type="module" src="http://127.0.0.1:3001/main.js" async defer></script>
37
- * => [`type="module"`, "async ", "defer>"] as attributeStrMatchArr
38
- * => { type: "module", async: "async", defer: "defer" } as attributes
39
- */
40
- parseTagAttributes(tag: string): Record<string, string>;
41
- parseManifestFromHTML(html: string): Record<string, AssetsTagItem[]>;
42
- loadAppAssets(app: PlanetApplication): Observable<[AssetsLoadResult[], AssetsLoadResult[]]>;
43
- loadManifest(url: string, responseType?: 'text' | 'json'): Observable<Record<string, AssetsTagItem[]>>;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<AssetsLoader, never>;
45
- static ɵprov: i0.ɵɵInjectableDeclaration<AssetsLoader>;
46
- }
47
- //# sourceMappingURL=assets-loader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assets-loader.d.ts","sourceRoot":"","sources":["../../packages/planet/src/assets-loader.ts"],"names":[],"mappings":"AAEA,OAAO,EAAM,UAAU,EAA8B,MAAM,MAAM,CAAC;AAElE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAA0B,MAAM,gBAAgB,CAAC;AAE3E,OAAO,EAAE,aAAa,EAA0C,MAAM,eAAe,CAAC;;AAMtF,MAAM,WAAW,gBAAgB;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,qBAGa,YAAY;IAGT,OAAO,CAAC,IAAI;IAFxB,OAAO,CAAC,aAAa,CAAgB;gBAEjB,IAAI,EAAE,UAAU;IAEpC,UAAU,CAAC,WAAW,EAAE,aAAa;;;;;;IAkFrC,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAsC7E,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAyCpD,WAAW,CACP,OAAO,EAAE,aAAa,EAAE,EACxB,OAAO,GAAE;QACL,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,MAAM,CAAC,EAAE,OAAO,CAAC;KAIpB,GACF,UAAU,CAAC,gBAAgB,EAAE,CAAC;IAyBjC,UAAU,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAC;IAWpE,oBAAoB,CAChB,OAAO,GAAE,aAAa,EAAO,EAC7B,MAAM,GAAE,aAAa,EAAO,EAC5B,OAAO,CAAC,EAAE;QACN,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,MAAM,CAAC,EAAE,OAAO,CAAC;KACpB;IAKL;;;;OAIG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAsBvD,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC;IA0CpE,aAAa,CAAC,GAAG,EAAE,iBAAiB;IA2BpC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,GAAE,MAAM,GAAG,MAAe,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;yCAhUrG,YAAY;6CAAZ,YAAY;CAuVxB"}
@@ -1,31 +0,0 @@
1
- import { ApplicationRef, NgModuleRef, NgZone, Type } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { PlanetComponentRef } from './planet-component-types';
4
- import { PlantComponentConfig } from './plant-component.config';
5
- import * as i0 from "@angular/core";
6
- export type PlanetComponent<T = unknown> = {
7
- name: string;
8
- component: Type<T>;
9
- } | Type<T>;
10
- export declare class PlanetComponentLoader {
11
- private applicationRef;
12
- private ngModuleRef;
13
- private ngZone;
14
- private document;
15
- private get applicationLoader();
16
- private get applicationService();
17
- constructor(applicationRef: ApplicationRef, ngModuleRef: NgModuleRef<any>, ngZone: NgZone, document: any);
18
- private getPlantAppRef;
19
- private createInjector;
20
- private getContainerElement;
21
- private insertComponentRootNodeToContainer;
22
- private attachComponent;
23
- /** Gets the root HTMLElement for an instantiated component. */
24
- private getComponentRootNode;
25
- private registerComponentFactory;
26
- register(components: PlanetComponent | PlanetComponent[], immediate?: boolean): void;
27
- load<TComp = unknown, TData = unknown>(app: string, componentName: string, config: PlantComponentConfig<TData>): Observable<PlanetComponentRef<TComp>>;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<PlanetComponentLoader, never>;
29
- static ɵprov: i0.ɵɵInjectableDeclaration<PlanetComponentLoader>;
30
- }
31
- //# sourceMappingURL=planet-component-loader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"planet-component-loader.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/component/planet-component-loader.ts"],"names":[],"mappings":"AACA,OAAO,EACH,cAAc,EAQd,WAAW,EACX,MAAM,EAEN,IAAI,EAGP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,UAAU,EAAa,MAAM,MAAM,CAAC;AAY7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;;AAQhE,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,OAAO,IACjC;IACI,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;CACtB,GACD,IAAI,CAAC,CAAC,CAAC,CAAC;AAEd,qBAGa,qBAAqB;IAU1B,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,MAAM;IACI,OAAO,CAAC,QAAQ;IAZtC,OAAO,KAAK,iBAAiB,GAE5B;IAED,OAAO,KAAK,kBAAkB,GAE7B;gBAGW,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,CAAC,GAAG,CAAC,EAC7B,MAAM,EAAE,MAAM,EACI,QAAQ,EAAE,GAAG;IAG3C,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,kCAAkC;IAkB1C,OAAO,CAAC,eAAe;IAkCvB,+DAA+D;IAC/D,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,wBAAwB;IAkChC,QAAQ,CAAC,UAAU,EAAE,eAAe,GAAG,eAAe,EAAE,EAAE,SAAS,CAAC,EAAE,OAAO;IAU7E,IAAI,CAAC,KAAK,GAAG,OAAO,EAAE,KAAK,GAAG,OAAO,EACjC,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,GACpC,UAAU,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;yCA/J/B,qBAAqB;6CAArB,qBAAqB;CAiNjC"}
@@ -1,26 +0,0 @@
1
- import { OnDestroy, OnChanges, SimpleChanges, AfterViewInit, ElementRef, NgZone, EventEmitter } from '@angular/core';
2
- import { PlanetComponentLoader } from './planet-component-loader';
3
- import { PlanetComponentRef } from './planet-component-types';
4
- import { PlantComponentProjectableNode } from './plant-component.config';
5
- import * as i0 from "@angular/core";
6
- export declare class PlanetComponentOutlet implements OnChanges, OnDestroy, AfterViewInit {
7
- private elementRef;
8
- private planetComponentLoader;
9
- private ngZone;
10
- planetComponentOutlet: string;
11
- planetComponentOutletApp: string;
12
- planetComponentOutletProjectableNodes: PlantComponentProjectableNode[];
13
- planetComponentOutletInitialState: any;
14
- planetComponentLoaded: EventEmitter<PlanetComponentRef<any>>;
15
- private componentRef;
16
- private destroyed$;
17
- constructor(elementRef: ElementRef, planetComponentLoader: PlanetComponentLoader, ngZone: NgZone);
18
- ngOnChanges(changes: SimpleChanges): void;
19
- ngAfterViewInit(): void;
20
- loadComponent(): void;
21
- ngOnDestroy(): void;
22
- clear(): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<PlanetComponentOutlet, never>;
24
- 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>;
25
- }
26
- //# sourceMappingURL=planet-component-outlet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"planet-component-outlet.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/component/planet-component-outlet.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,SAAS,EACT,SAAS,EACT,aAAa,EAEb,aAAa,EACb,UAAU,EACV,MAAM,EAEN,YAAY,EACf,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;;AAEzE,qBAKa,qBAAsB,YAAW,SAAS,EAAE,SAAS,EAAE,aAAa;IAgBzE,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,qBAAqB;IAC7B,OAAO,CAAC,MAAM;IAjBT,qBAAqB,EAAE,MAAM,CAAC;IAE9B,wBAAwB,EAAE,MAAM,CAAC;IAEjC,qCAAqC,EAAE,6BAA6B,EAAE,CAAC;IAEvE,iCAAiC,EAAE,GAAG,CAAC;IAEtC,qBAAqB,wCAA0C;IAEzE,OAAO,CAAC,YAAY,CAAqB;IAEzC,OAAO,CAAC,UAAU,CAAuB;gBAG7B,UAAU,EAAE,UAAU,EACtB,qBAAqB,EAAE,qBAAqB,EAC5C,MAAM,EAAE,MAAM;IAG1B,WAAW,CAAC,OAAO,EAAE,aAAa;IAMlC,eAAe,IAAI,IAAI;IAIvB,aAAa;IAqBb,WAAW,IAAI,IAAI;IAKnB,KAAK;yCAzDI,qBAAqB;2CAArB,qBAAqB;CA6DjC"}
@@ -1,11 +0,0 @@
1
- import { ComponentRef } from '@angular/core';
2
- import { PlantComponentConfig } from './plant-component.config';
3
- export declare class PlanetComponentRef<TComp = any> {
4
- wrapperElement: HTMLElement;
5
- hostElement: HTMLElement;
6
- componentInstance: TComp;
7
- componentRef: ComponentRef<TComp>;
8
- dispose: () => void;
9
- }
10
- export type PlantComponentFactory = <TData, TComp>(componentName: string, config: PlantComponentConfig<TData>) => PlanetComponentRef<TComp>;
11
- //# sourceMappingURL=planet-component-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"planet-component-types.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/component/planet-component-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,qBAAa,kBAAkB,CAAC,KAAK,GAAG,GAAG;IACvC,cAAc,EAAE,WAAW,CAAC;IAC5B,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,EAAE,KAAK,CAAC;IACzB,YAAY,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC;IAClC,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,MAAM,qBAAqB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,KAAK,kBAAkB,CAAC,KAAK,CAAC,CAAC"}
@@ -1,22 +0,0 @@
1
- import { TemplateRef, ElementRef } from '@angular/core';
2
- export type PlantComponentProjectableNode = Node[] | TemplateRef<any>;
3
- export declare class PlantComponentConfig<TData = any> {
4
- /** Load target container */
5
- container: HTMLElement | ElementRef<HTMLElement | any> | Comment;
6
- /**
7
- * Wrapper class of plant component
8
- * @deprecated please use hostClass
9
- */
10
- wrapperClass?: string;
11
- /**
12
- * Host class of plant component
13
- */
14
- hostClass?: string;
15
- /** Data being injected into the child component. */
16
- initialState?: TData | null;
17
- /**
18
- * Projectable nodes
19
- */
20
- projectableNodes?: PlantComponentProjectableNode[];
21
- }
22
- //# sourceMappingURL=plant-component.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plant-component.config.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/component/plant-component.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,MAAM,6BAA6B,GAAG,IAAI,EAAE,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;AAEtE,qBAAa,oBAAoB,CAAC,KAAK,GAAG,GAAG;IACzC,4BAA4B;IAC5B,SAAS,EAAE,WAAW,GAAG,UAAU,CAAC,WAAW,GAAG,GAAG,CAAC,GAAG,OAAO,CAAC;IACjE;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,YAAY,CAAC,EAAE,KAAK,GAAG,IAAI,CAAQ;IACnC;;OAEG;IACH,gBAAgB,CAAC,EAAE,6BAA6B,EAAE,CAAC;CACtD"}
package/debug.d.ts DELETED
@@ -1,22 +0,0 @@
1
- export interface Debugger {
2
- (formatter: any, ...args: any[]): void;
3
- }
4
- export interface Formatters {
5
- [formatter: string]: (v: any) => string;
6
- }
7
- export interface Debug {
8
- (namespace: string): Debugger;
9
- coerce: (val: any) => any;
10
- disable: () => string;
11
- enable: (namespaces: string) => void;
12
- enabled: (namespaces: string) => boolean;
13
- log: (...args: any[]) => any;
14
- names: RegExp[];
15
- skips: RegExp[];
16
- formatters: Formatters;
17
- }
18
- export declare function createDebug(namespace: string): Debugger;
19
- export declare function setDebugFactory(debug: Debug): void;
20
- export declare function clearDebugFactory(): void;
21
- export declare function getDebugFactory(): Debug;
22
- //# sourceMappingURL=debug.d.ts.map
package/debug.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../packages/planet/src/debug.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,QAAQ;IACrB,CAAC,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;CAQ1C;AAED,MAAM,WAAW,UAAU;IACvB,CAAC,SAAS,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC;CAC3C;AAED,MAAM,WAAW,KAAK;IAClB,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC9B,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC;IAC1B,OAAO,EAAE,MAAM,MAAM,CAAC;IACtB,MAAM,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,OAAO,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;IACzC,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;IAE7B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;IAEhB,UAAU,EAAE,UAAU,CAAC;CAC1B;AAQD,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAYvD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,QAK3C;AAED,wBAAgB,iBAAiB,SAGhC;AAED,wBAAgB,eAAe,UAE9B"}
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class EmptyComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<EmptyComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<EmptyComponent, "empty-component", never, {}, {}, never, never, true, never>;
5
- }
6
- //# sourceMappingURL=empty.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"empty.component.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/empty/empty.component.ts"],"names":[],"mappings":";AAEA,qBAOa,cAAc;yCAAd,cAAc;2CAAd,cAAc;CAAG"}
@@ -1,23 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { NgZone } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- export interface GlobalDispatcherEvent {
5
- name: string;
6
- payload: any;
7
- }
8
- export declare class GlobalEventDispatcher {
9
- private ngZone;
10
- private subject$;
11
- private hasAddGlobalEventListener;
12
- private subscriptionCount;
13
- private globalEventListener;
14
- private addGlobalEventListener;
15
- private removeGlobalEventListener;
16
- constructor(ngZone: NgZone);
17
- dispatch<TPayload>(name: string, payload?: TPayload): void;
18
- register<T>(eventName: string): Observable<T>;
19
- getSubscriptionCount(): number;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<GlobalEventDispatcher, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<GlobalEventDispatcher>;
22
- }
23
- //# sourceMappingURL=global-event-dispatcher.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global-event-dispatcher.d.ts","sourceRoot":"","sources":["../../packages/planet/src/global-event-dispatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,UAAU,EAAE,MAAM,MAAM,CAAC;AAE3C,OAAO,EAAc,MAAM,EAAE,MAAM,eAAe,CAAC;;AAEnD,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,GAAG,CAAC;CAChB;AAID,qBAGa,qBAAqB;IAqBlB,OAAO,CAAC,MAAM;IApB1B,OAAO,CAAC,QAAQ,CAAiD;IAEjE,OAAO,CAAC,yBAAyB,CAAS;IAE1C,OAAO,CAAC,iBAAiB,CAAK;IAE9B,OAAO,CAAC,mBAAmB,CAEzB;IAEF,OAAO,CAAC,sBAAsB;IAK9B,OAAO,CAAC,yBAAyB;gBAKb,MAAM,EAAE,MAAM;IAElC,QAAQ,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ;IAWnD,QAAQ,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC;IA8B7C,oBAAoB;yCAhEX,qBAAqB;6CAArB,qBAAqB;CAmEjC"}
@@ -1,25 +0,0 @@
1
- import { PlanetApplicationRef } from './application/planet-application-ref';
2
- import { PlanetPortalApplication } from './application/portal-application';
3
- import { PlanetApplicationLoader } from './application/planet-application-loader';
4
- import { PlanetApplicationService } from './application/planet-application.service';
5
- import { NgBootstrapAppModule, NgBootstrapOptions } from './application/ng-planet-application-ref';
6
- export interface GlobalPlanet {
7
- apps: {
8
- [key: string]: PlanetApplicationRef;
9
- };
10
- portalApplication?: PlanetPortalApplication;
11
- applicationLoader: PlanetApplicationLoader;
12
- applicationService: PlanetApplicationService;
13
- }
14
- export declare const globalPlanet: GlobalPlanet;
15
- export declare function defineApplication<TOptions extends NgBootstrapAppModule | NgBootstrapOptions>(name: string, options: TOptions): void;
16
- export declare function getPlanetApplicationRef(appName: string): PlanetApplicationRef | null;
17
- export declare function getBootstrappedPlanetApplicationRef(appName: string): PlanetApplicationRef | null;
18
- export declare function setPortalApplicationData<T>(data: T): void;
19
- export declare function getPortalApplicationData<TData>(): TData;
20
- export declare function setApplicationLoader(loader: PlanetApplicationLoader): void;
21
- export declare function getApplicationLoader(): PlanetApplicationLoader;
22
- export declare function setApplicationService(service: PlanetApplicationService): void;
23
- export declare function getApplicationService(): PlanetApplicationService;
24
- export declare function clearGlobalPlanet(): void;
25
- //# sourceMappingURL=global-planet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global-planet.d.ts","sourceRoot":"","sources":["../../packages/planet/src/global-planet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAEpF,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAA0B,MAAM,yCAAyC,CAAC;AAI3H,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAC;IAC9C,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;IAC5C,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,kBAAkB,EAAE,wBAAwB,CAAC;CAChD;AAED,eAAO,MAAM,YAAY,EAAE,YAEzB,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,QAAQ,SAAS,oBAAoB,GAAG,kBAAkB,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,QAY5H;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,oBAAoB,GAAG,IAAI,CAMpF;AAED,wBAAgB,mCAAmC,CAAC,OAAO,EAAE,MAAM,GAAG,oBAAoB,GAAG,IAAI,CAShG;AAED,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,QAIlD;AAED,wBAAgB,wBAAwB,CAAC,KAAK,KAAK,KAAK,CAEvD;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,uBAAuB,QAEnE;AAED,wBAAgB,oBAAoB,4BAEnC;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,wBAAwB,QAEtE;AAED,wBAAgB,qBAAqB,6BAEpC;AAED,wBAAgB,iBAAiB,SAKhC"}
package/helpers.d.ts DELETED
@@ -1,36 +0,0 @@
1
- import { AssetsTagItem } from './inner-types';
2
- import { PlanetApplication } from './planet.class';
3
- export declare function hashCode(str: string): number;
4
- export declare function getHTMLElement(selector: string | HTMLElement): HTMLElement | null;
5
- export declare function getTagNameByTemplate(template: string): string;
6
- export declare function createElementByTemplate(template: string): HTMLElement;
7
- export declare function coerceArray<T>(value: T | T[]): T[];
8
- export declare function isEmpty(value: any): boolean;
9
- export declare function isFunction(value: any): value is Function;
10
- export declare function isObject<T extends object>(value: any): value is T;
11
- /**
12
- * Get file name from path
13
- * 1. "main.js" => "main.js"
14
- * 2. "assets/scripts/main.js" => "main.js"
15
- * @param path path
16
- */
17
- export declare function getResourceFileName(path: string): string;
18
- export declare function getExtName(name: string): string;
19
- /**
20
- * Build resource path by manifest
21
- * if manifest is { "main.js": "main.h2sh23abee.js"}
22
- * 1. "main.js" => "main.h2sh23abee.js"
23
- * 2. "assets/scripts/main.js" =>"assets/scripts/main.h2sh23abee.js"
24
- * @param resourceFilePath Resource File Path
25
- * @param manifestResult manifest
26
- */
27
- export declare function buildResourceFilePath(resourceFilePath: string, manifestResult: Record<string, AssetsTagItem>): string;
28
- export declare function buildFullPath(path: string, basePath?: string): string;
29
- export declare function getAssetsBasePath(app: PlanetApplication): string;
30
- export declare function toAssetsTagItem(src: string): AssetsTagItem;
31
- export declare function toAssetsTagItems(src: string[]): AssetsTagItem[];
32
- export declare function getScriptsAndStylesAssets(app: PlanetApplication, basePath: string, manifestResult?: Record<string, AssetsTagItem[]>): {
33
- scripts: AssetsTagItem[];
34
- styles: AssetsTagItem[];
35
- };
36
- //# sourceMappingURL=helpers.d.ts.map
package/helpers.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../packages/planet/src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAA0B,MAAM,gBAAgB,CAAC;AAI3E,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAY5C;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,IAAI,CAMjF;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,eAUvD;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,CAElD;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAM3C;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,QAAQ,CAGxD;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,CAAC,CAEjE;AACD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOxD;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,UAOtC;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,gBAAgB,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,UAO5G;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,UAS5D;AAeD,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,CAWhE;AA2BD,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAI1D;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAE/D;AAED,wBAAgB,yBAAyB,CACrC,GAAG,EAAE,iBAAiB,EACtB,QAAQ,EAAE,MAAM,EAChB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,GACjD;IAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IAAC,MAAM,EAAE,aAAa,EAAE,CAAA;CAAE,CAoBvD"}
package/inner-types.d.ts DELETED
@@ -1,15 +0,0 @@
1
- export interface ScriptTagAttributes {
2
- type?: 'module' | 'text/script' | undefined;
3
- async?: string;
4
- defer?: string;
5
- }
6
- export interface LinkTagAttributes {
7
- rel?: string;
8
- }
9
- export type ScriptOrLinkTagAttributes = ScriptTagAttributes | LinkTagAttributes;
10
- export interface AssetsTagItem {
11
- src: string;
12
- tagName?: 'link' | 'script';
13
- attributes?: ScriptOrLinkTagAttributes;
14
- }
15
- //# sourceMappingURL=inner-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inner-types.d.ts","sourceRoot":"","sources":["../../packages/planet/src/inner-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAChC,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,GAAG,SAAS,CAAC;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,yBAAyB,GAAG,mBAAmB,GAAG,iBAAiB,CAAC;AAEhF,MAAM,WAAW,aAAa;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B,UAAU,CAAC,EAAE,yBAAyB,CAAC;CAC1C"}
package/module.d.ts DELETED
@@ -1,13 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { PlanetApplication } from './planet.class';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./component/planet-component-outlet";
5
- import * as i2 from "./empty/empty.component";
6
- import * as i3 from "./router/route-redirect";
7
- export declare class NgxPlanetModule {
8
- static forRoot(apps: PlanetApplication[]): ModuleWithProviders<NgxPlanetModule>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxPlanetModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<NgxPlanetModule, never, [typeof i1.PlanetComponentOutlet, typeof i2.EmptyComponent, typeof i3.RedirectToRouteComponent], [typeof i2.EmptyComponent, typeof i1.PlanetComponentOutlet]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<NgxPlanetModule>;
12
- }
13
- //# sourceMappingURL=module.d.ts.map
package/module.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../packages/planet/src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAuB,MAAM,gBAAgB,CAAC;;;;;AAMxE,qBAMa,eAAe;IACxB,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,iBAAiB,EAAE,GAAG,mBAAmB,CAAC,eAAe,CAAC;yCADtE,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAY3B"}
package/planet.class.d.ts DELETED
@@ -1,118 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { Debug } from './debug';
3
- export interface PlanetOptions {
4
- switchMode?: SwitchModes;
5
- errorHandler: (error: Error) => void;
6
- debugFactory?: Debug;
7
- }
8
- export interface PlanetApplicationEntry {
9
- basePath?: string;
10
- scripts?: string[];
11
- styles?: string[];
12
- manifest?: string;
13
- }
14
- export interface PlanetApplication<TExtra = any> {
15
- /**
16
- * Application name, e.g. "app1"
17
- */
18
- name: string;
19
- /**
20
- * Selector or Element which app host parent
21
- * 应用加载的宿主元素或者选择器
22
- */
23
- hostParent: string | HTMLElement;
24
- /**
25
- * Class name for host
26
- */
27
- hostClass?: string | string[];
28
- /**
29
- * Selector for sub application
30
- * 子应用的选择器
31
- * @deprecated please use new defineApplication to set selector
32
- */
33
- selector?: string;
34
- /**
35
- * Path prefix for sub application, e.g. '/app1'
36
- * 子应用路由前缀路径
37
- */
38
- routerPathPrefix: string | RegExp;
39
- /**
40
- * Preload enabled, default false, if enabled,the application will be loaded when idle in the background
41
- * 是否开启预加载,开启后会在后台提前加载此应用
42
- */
43
- preload?: boolean;
44
- /**
45
- * Sandbox enabled
46
- * 是否开启沙箱模式
47
- */
48
- sandbox?: boolean;
49
- /**
50
- * Switch application mode
51
- * default: will be destroyed when switch to other app
52
- * coexist: only hide app when switch to other app
53
- * 切换应用的模式
54
- */
55
- switchMode?: SwitchModes;
56
- /**
57
- * Style prefix, e.g. 'app1'
58
- * 样式前缀
59
- */
60
- stylePrefix?: string;
61
- /**
62
- * The entry of the micro application, e.g. '/static/app1/index.html'
63
- * If configured as string, it represents the entry html address of the micro application. e.g. '/static/app1/index.html'
64
- * If configured as object, the value of manifest is the html address of the micro application
65
- * entry.basePath: the base path of the entry, e.g. '/static/app1/'
66
- * entry.manifest: the manifest of the entry, e.g. 'index.html' or 'assets-manifest.json'
67
- * entry.scripts: the scripts of the entry, will get final scripts address by manifest and basePath
68
- * entry.styles: the styles of the entry, will get final styles address by manifest and basePath
69
- */
70
- entry?: string | PlanetApplicationEntry;
71
- /**
72
- * Manifest json file path, e.g. /static/app1/assets-manifest.json
73
- * 应用程序打包后的脚本和样式文件替换
74
- * @deprecated Please use entry.manifest instead
75
- */
76
- manifest?: string;
77
- /**
78
- * Path prefix of scripts and styles, e.g. 'static/app1/'
79
- * 资源文件路径的前缀
80
- * @deprecated Please use entry.basePath instead
81
- */
82
- resourcePathPrefix?: string;
83
- /**
84
- * Style static resource paths
85
- * 样式资源文件
86
- * @deprecated Please use entry.styles instead
87
- */
88
- styles?: string[];
89
- /**
90
- * Scripts static resource paths
91
- * 脚本资源文件
92
- * @deprecated Please use entry.scripts instead
93
- */
94
- scripts?: string[];
95
- /**
96
- * Serial load scripts, default is parallel, only enable when the script has sequentially loaded dependency
97
- * 串行加载,默认并行加载脚本资源,仅当脚本资源有依赖关系时开启
98
- */
99
- loadSerial?: boolean;
100
- /**
101
- * 皮肤样式的路径
102
- */
103
- /**
104
- * Extra data for application
105
- * 附加数据,主要应用于业务,比如图标,子应用的颜色,显示名等个性化配置
106
- */
107
- extra?: TExtra;
108
- }
109
- export declare enum SwitchModes {
110
- default = "default",
111
- coexist = "coexist"
112
- }
113
- export interface PlanetRouterEvent {
114
- url: string;
115
- }
116
- declare const PLANET_APPLICATIONS: InjectionToken<PlanetApplication<any>>;
117
- export { PLANET_APPLICATIONS };
118
- //# sourceMappingURL=planet.class.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"planet.class.d.ts","sourceRoot":"","sources":["../../packages/planet/src/planet.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,aAAa;IAC1B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,KAAK,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB,CAAC,MAAM,GAAG,GAAG;IAC3C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAAC;IAClC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAAC;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IAEH;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,oBAAY,WAAW;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB;AAED,MAAM,WAAW,iBAAiB;IAC9B,GAAG,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,mBAAmB,wCAA+D,CAAC;AAEzF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
package/planet.d.ts DELETED
@@ -1,32 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { Router } from '@angular/router';
3
- import { PlanetOptions, PlanetApplication } from './planet.class';
4
- import { AppsLoadingStartEvent, AppStatusChangeEvent } from './application/planet-application-loader';
5
- import { Observable } from 'rxjs';
6
- import * as i0 from "@angular/core";
7
- export declare class Planet {
8
- private injector;
9
- private router;
10
- private get planetApplicationLoader();
11
- private get planetApplicationService();
12
- /**
13
- * @deprecated please use loading signal
14
- */
15
- get loadingDone(): boolean;
16
- get loading(): import("@angular/core").Signal<boolean>;
17
- get appStatusChange(): Observable<AppStatusChangeEvent>;
18
- get appsLoadingStart(): Observable<AppsLoadingStartEvent>;
19
- private subscription?;
20
- constructor(injector: Injector, router: Router, planetApplications: PlanetApplication[]);
21
- setOptions(options: Partial<PlanetOptions>): void;
22
- setPortalAppData<T>(data: T): void;
23
- registerApp<TExtra>(app: PlanetApplication<TExtra>): void;
24
- registerApps<TExtra>(apps: PlanetApplication<TExtra>[]): void;
25
- unregisterApp(name: string): void;
26
- getApps(): PlanetApplication<any>[];
27
- start(): void;
28
- stop(): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<Planet, [null, null, { optional: true; }]>;
30
- static ɵprov: i0.ɵɵInjectableDeclaration<Planet>;
31
- }
32
- //# sourceMappingURL=planet.d.ts.map
package/planet.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"planet.d.ts","sourceRoot":"","sources":["../../packages/planet/src/planet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,QAAQ,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAA8B,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAuB,MAAM,gBAAgB,CAAC;AAEvF,OAAO,EAA2B,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/H,OAAO,EAAE,UAAU,EAAgB,MAAM,MAAM,CAAC;;AAWhD,qBAGa,MAAM;IA+BX,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,MAAM;IA/BlB,OAAO,KAAK,uBAAuB,GAElC;IAED,OAAO,KAAK,wBAAwB,GAEnC;IAED;;OAEG;IACH,IAAW,WAAW,YAErB;IAED,IAAW,OAAO,4CAEjB;IAED,IAAW,eAAe,IAAI,UAAU,CAAC,oBAAoB,CAAC,CAE7D;IAED,IAAW,gBAAgB,IAAI,UAAU,CAAC,qBAAqB,CAAC,CAE/D;IAED,OAAO,CAAC,YAAY,CAAC,CAAe;gBAGxB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACmB,kBAAkB,EAAE,iBAAiB,EAAE;IAcpF,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC;IAO1C,gBAAgB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IAI3B,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,iBAAiB,CAAC,MAAM,CAAC;IAIlD,YAAY,CAAC,MAAM,EAAE,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAAE;IAItD,aAAa,CAAC,IAAI,EAAE,MAAM;IAI1B,OAAO;IAIP,KAAK;IAmBL,IAAI;yCA7FK,MAAM;6CAAN,MAAM;CAgGlB"}
package/public-api.d.ts DELETED
@@ -1,17 +0,0 @@
1
- export * from './planet';
2
- export * from './global-event-dispatcher';
3
- export * from './application/portal-application';
4
- export * from './planet.class';
5
- export * from './module';
6
- export { PlanetApplicationRef } from './application/planet-application-ref';
7
- export { defineApplication, getPortalApplicationData, getPlanetApplicationRef } from './global-planet';
8
- export { PlanetApplicationService } from './application/planet-application.service';
9
- export * from './application/planet-application-loader';
10
- export * from './assets-loader';
11
- export { PlanetComponent, PlanetComponentLoader } from './component/planet-component-loader';
12
- export { PlanetComponentRef } from './component/planet-component-types';
13
- export { PlanetComponentOutlet } from './component/planet-component-outlet';
14
- export { PlantComponentConfig } from './component/plant-component.config';
15
- export * from './empty/empty.component';
16
- export * from './router/route-redirect';
17
- //# sourceMappingURL=public-api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../packages/planet/src/public-api.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,cAAc,yCAAyC,CAAC;AACxD,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
@@ -1,16 +0,0 @@
1
- import { ActivatedRoute, Route, Router } from '@angular/router';
2
- import * as i0 from "@angular/core";
3
- declare class RouteRedirect {
4
- activatedRoute: ActivatedRoute;
5
- router: Router;
6
- constructor(redirectTo: string);
7
- }
8
- export declare function routeRedirect(redirectTo?: string): RouteRedirect;
9
- export declare class RedirectToRouteComponent {
10
- routeRedirect: RouteRedirect;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<RedirectToRouteComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<RedirectToRouteComponent, "planet-redirect-to-route", never, {}, {}, never, never, true, never>;
13
- }
14
- export declare function redirectToRoute(redirectTo: string): Route;
15
- export {};
16
- //# sourceMappingURL=route-redirect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"route-redirect.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/router/route-redirect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAW,MAAM,iBAAiB,CAAC;;AAEzE,cAAM,aAAa;IACf,cAAc,iBAA0B;IACxC,MAAM,SAAkB;gBAEZ,UAAU,EAAE,MAAM;CAgCjC;AAED,wBAAgB,aAAa,CAAC,UAAU,CAAC,EAAE,MAAM,iBAEhD;AAED,qBAKa,wBAAwB;IACjC,aAAa,gBAAmB;yCADvB,wBAAwB;2CAAxB,wBAAwB;CAEpC;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,KAAK,CAQzD"}
@@ -1,7 +0,0 @@
1
- export declare const PLANET_SANDBOX_WINDOW_WHITELIST: any;
2
- export declare const PLANET_SANDBOX_DOCUMENT_WHITELIST: any;
3
- export declare const SANDBOX_INSTANCE: unique symbol;
4
- export declare const RAW_NODE: unique symbol;
5
- export declare const WINDOW_BIND_FN: unique symbol;
6
- export declare const DOCUMENT_BIND_FN: unique symbol;
7
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/sandbox/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,KAAkD,CAAC;AAC/F,eAAO,MAAM,iCAAiC,KAAoD,CAAC;AACnG,eAAO,MAAM,gBAAgB,eAAwC,CAAC;AACtE,eAAO,MAAM,QAAQ,eAAgC,CAAC;AACtD,eAAO,MAAM,cAAc,eAAsC,CAAC;AAClE,eAAO,MAAM,gBAAgB,eAAwC,CAAC"}
package/sandbox/exec.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { Global } from './types';
2
- export declare function execScript(code: string, url: string, global: Global, strictGlobal: boolean): void;
3
- //# sourceMappingURL=exec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/sandbox/exec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,QAmB1F"}
@@ -1,7 +0,0 @@
1
- import { SandboxOptions } from './sandbox';
2
- import { ProxySandbox } from './proxy/proxy-sandbox';
3
- import { SnapshotSandbox } from './snapshot/snapshot-sandbox';
4
- export { Sandbox } from './sandbox';
5
- export declare function createSandbox(app: string, options?: SandboxOptions): ProxySandbox | SnapshotSandbox;
6
- export declare function getSandboxInstance(): any;
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/planet/src/sandbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,kCAQlE;AAED,wBAAgB,kBAAkB,QAEjC"}
@@ -1,3 +0,0 @@
1
- import { SandboxPatchHandler } from '../types';
2
- export declare function documentPatch(): SandboxPatchHandler;
3
- //# sourceMappingURL=document.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../../../packages/planet/src/sandbox/proxy/patches/document.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,wBAAgB,aAAa,IAAI,mBAAmB,CASnD"}