aril 0.1.53 → 0.1.55
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/boot/config/apps/index.d.ts +1 -0
- package/boot/config/apps/src/reuse-strategy.d.ts +4 -0
- package/esm2022/boot/config/apps/index.mjs +2 -1
- package/esm2022/boot/config/apps/src/reuse-strategy.mjs +8 -0
- package/esm2022/boot/host/src/bootstrap.mjs +4 -3
- package/esm2022/boot/mfe/src/bootstrap.mjs +4 -2
- package/fesm2022/aril-boot-config-apps.mjs +9 -2
- package/fesm2022/aril-boot-config-apps.mjs.map +1 -1
- package/fesm2022/aril-boot-host.mjs +3 -2
- package/fesm2022/aril-boot-host.mjs.map +1 -1
- package/fesm2022/{aril-boot-mfe-app.component-LEOxZrWW.mjs → aril-boot-mfe-app.component-nKEqz5dg.mjs} +3 -3
- package/fesm2022/{aril-boot-mfe-app.component-LEOxZrWW.mjs.map → aril-boot-mfe-app.component-nKEqz5dg.mjs.map} +1 -1
- package/fesm2022/{aril-boot-mfe-aril-boot-mfe-WTaS-jzb.mjs → aril-boot-mfe-aril-boot-mfe-Cc6ruNdr.mjs} +5 -4
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-Cc6ruNdr.mjs.map +1 -0
- package/fesm2022/aril-boot-mfe.mjs +2 -2
- package/fesm2022/aril.mjs +4 -2
- package/fesm2022/aril.mjs.map +1 -1
- package/package.json +112 -112
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-WTaS-jzb.mjs.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export * from './src/apps.service';
|
|
2
2
|
export * from './src/interfaces';
|
|
3
|
-
|
|
3
|
+
export * from './src/reuse-strategy';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hcmlsL2Jvb3QvY29uZmlnL2FwcHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3NyYy9hcHBzLnNlcnZpY2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL3NyYy9pbnRlcmZhY2VzJztcclxuZXhwb3J0ICogZnJvbSAnLi9zcmMvcmV1c2Utc3RyYXRlZ3knO1xyXG4iXX0=
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseRouteReuseStrategy } from '@angular/router';
|
|
2
|
+
export class ArilReuseStrategy extends BaseRouteReuseStrategy {
|
|
3
|
+
shouldReuseRoute(future, curr) {
|
|
4
|
+
return (future.routeConfig === curr.routeConfig ||
|
|
5
|
+
(future.paramMap.has('id') && future.paramMap.has('id') === curr.paramMap.has('id')));
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV1c2Utc3RyYXRlZ3kuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hcmlsL2Jvb3QvY29uZmlnL2FwcHMvc3JjL3JldXNlLXN0cmF0ZWd5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBMEIsc0JBQXNCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUVqRixNQUFNLE9BQU8saUJBQWtCLFNBQVEsc0JBQXNCO0lBQ25ELGdCQUFnQixDQUFDLE1BQThCLEVBQUUsSUFBNEI7UUFDckYsT0FBTyxDQUNOLE1BQU0sQ0FBQyxXQUFXLEtBQUssSUFBSSxDQUFDLFdBQVc7WUFDdkMsQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsSUFBSSxNQUFNLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsS0FBSyxJQUFJLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUNwRixDQUFDO0lBQ0gsQ0FBQztDQUNEIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQWN0aXZhdGVkUm91dGVTbmFwc2hvdCwgQmFzZVJvdXRlUmV1c2VTdHJhdGVneSB9IGZyb20gJ0Bhbmd1bGFyL3JvdXRlcic7XHJcblxyXG5leHBvcnQgY2xhc3MgQXJpbFJldXNlU3RyYXRlZ3kgZXh0ZW5kcyBCYXNlUm91dGVSZXVzZVN0cmF0ZWd5IHtcclxuXHRvdmVycmlkZSBzaG91bGRSZXVzZVJvdXRlKGZ1dHVyZTogQWN0aXZhdGVkUm91dGVTbmFwc2hvdCwgY3VycjogQWN0aXZhdGVkUm91dGVTbmFwc2hvdCk6IGJvb2xlYW4ge1xyXG5cdFx0cmV0dXJuIChcclxuXHRcdFx0ZnV0dXJlLnJvdXRlQ29uZmlnID09PSBjdXJyLnJvdXRlQ29uZmlnIHx8XHJcblx0XHRcdChmdXR1cmUucGFyYW1NYXAuaGFzKCdpZCcpICYmIGZ1dHVyZS5wYXJhbU1hcC5oYXMoJ2lkJykgPT09IGN1cnIucGFyYW1NYXAuaGFzKCdpZCcpKVxyXG5cdFx0KTtcclxuXHR9XHJcbn1cclxuIl19
|
|
@@ -2,11 +2,11 @@ import { provideHttpClient, withInterceptors } from '@angular/common/http';
|
|
|
2
2
|
import { APP_INITIALIZER, importProvidersFrom } from '@angular/core';
|
|
3
3
|
import { bootstrapApplication } from '@angular/platform-browser';
|
|
4
4
|
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
5
|
-
import { provideRouter, withComponentInputBinding, withHashLocation, withViewTransitions } from '@angular/router';
|
|
5
|
+
import { RouteReuseStrategy, provideRouter, withComponentInputBinding, withHashLocation, withViewTransitions } from '@angular/router';
|
|
6
6
|
import { ConfirmationService, MessageService } from 'primeng/api';
|
|
7
7
|
import { KeycloakAngularModule } from 'keycloak-angular';
|
|
8
8
|
import { loadApiConfigs } from 'aril/boot/config/api';
|
|
9
|
-
import { MicroAppService } from 'aril/boot/config/apps';
|
|
9
|
+
import { ArilReuseStrategy, MicroAppService } from 'aril/boot/config/apps';
|
|
10
10
|
import { loadPlugins } from 'aril/boot/config/plugins';
|
|
11
11
|
import { HttpBackendService, stateMachineInterceptor } from 'aril/http';
|
|
12
12
|
import { i18nFolderName, i18nModule } from 'aril/i18n';
|
|
@@ -20,6 +20,7 @@ export const boot = (_appName, routes) => {
|
|
|
20
20
|
provideAnimations(),
|
|
21
21
|
provideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),
|
|
22
22
|
provideRouter(routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),
|
|
23
|
+
{ provide: RouteReuseStrategy, useClass: ArilReuseStrategy },
|
|
23
24
|
importProvidersFrom(i18nModule, KeycloakAngularModule),
|
|
24
25
|
MessageService,
|
|
25
26
|
ConfirmationService,
|
|
@@ -49,4 +50,4 @@ export const boot = (_appName, routes) => {
|
|
|
49
50
|
};
|
|
50
51
|
bootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err));
|
|
51
52
|
};
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vdHN0cmFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXJpbC9ib290L2hvc3Qvc3JjL2Jvb3RzdHJhcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsaUJBQWlCLEVB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0XHRwcm92aWRlOiBBUFBfSU5JVElBTElaRVIsXHJcblx0XHRcdFx0dXNlRmFjdG9yeTogbG9hZFBsdWdpbnMsXHJcblx0XHRcdFx0bXVsdGk6IHRydWUsXHJcblx0XHRcdFx0ZGVwczogW0h0dHBCYWNrZW5kU2VydmljZV1cclxuXHRcdFx0fSxcclxuXHRcdFx0e1xyXG5cdFx0XHRcdHByb3ZpZGU6IGkxOG5Gb2xkZXJOYW1lLFxyXG5cdFx0XHRcdHVzZVZhbHVlOiAnaG9zdCdcclxuXHRcdFx0fVxyXG5cdFx0XVxyXG5cdH07XHJcblxyXG5cdGJvb3RzdHJhcEFwcGxpY2F0aW9uKEFwcENvbXBvbmVudCwgYXBwQ29uZmlnKS5jYXRjaCgoZXJyKSA9PiBjb25zb2xlLmVycm9yKGVycikpO1xyXG59O1xyXG4iXX0=
|
|
@@ -3,10 +3,11 @@ import { APP_INITIALIZER, importProvidersFrom } from '@angular/core';
|
|
|
3
3
|
import { createCustomElement } from '@angular/elements';
|
|
4
4
|
import { createApplication } from '@angular/platform-browser';
|
|
5
5
|
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
6
|
-
import { provideRouter, withComponentInputBinding, withHashLocation, withViewTransitions } from '@angular/router';
|
|
6
|
+
import { RouteReuseStrategy, provideRouter, withComponentInputBinding, withHashLocation, withViewTransitions } from '@angular/router';
|
|
7
7
|
import { ConfirmationService, MessageService } from 'primeng/api';
|
|
8
8
|
import { KeycloakAngularModule } from 'keycloak-angular';
|
|
9
9
|
import { loadApiConfigs, setApiConfigOnMFEMode } from 'aril/boot/config/api';
|
|
10
|
+
import { ArilReuseStrategy } from 'aril/boot/config/apps';
|
|
10
11
|
import { getNgZone, loadPlugins } from 'aril/boot/config/plugins';
|
|
11
12
|
import { HttpBackendService, stateMachineInterceptor } from 'aril/http';
|
|
12
13
|
import { i18nFolderName, i18nModule } from 'aril/i18n';
|
|
@@ -26,6 +27,7 @@ export const boot = (_appName, _routes, _menuItems) => {
|
|
|
26
27
|
provideAnimations(),
|
|
27
28
|
provideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),
|
|
28
29
|
provideRouter(_routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),
|
|
30
|
+
{ provide: RouteReuseStrategy, useClass: ArilReuseStrategy },
|
|
29
31
|
importProvidersFrom(i18nModule, KeycloakAngularModule),
|
|
30
32
|
getNgZone(),
|
|
31
33
|
MessageService,
|
|
@@ -61,4 +63,4 @@ export const boot = (_appName, _routes, _menuItems) => {
|
|
|
61
63
|
});
|
|
62
64
|
});
|
|
63
65
|
};
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
66
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vdHN0cmFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXJpbC9ib290L21mZS9zcmMvYm9vdHN0cmFwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQzNFLE9BQU8sRUFBRSxlQUFlLEVBQXFCLG1CQUFtQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3hGLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ3hELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzlELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQ3pFLE9BQU8sRUFDTixrQkFBa0IsRUFFbEIsYUFBYSxFQUNiLHlCQUF5QixFQUN6QixnQkFBZ0IsRUFDaEIsbUJBQW1CLEVBQ25CLE1BQU0saUJBQWlCLENBQUM7QUFFekIsT0FBTyxFQUFFLG1CQUFtQ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nRoZW4oKEFwcENvbXBvbmVudCkgPT4ge1xyXG5cdFx0XHRjb25zdCBhcHAgPSBjcmVhdGVDdXN0b21FbGVtZW50KEFwcENvbXBvbmVudCwgeyBpbmplY3RvcjogYXBwUmVmLmluamVjdG9yIH0pO1xyXG5cdFx0XHRjdXN0b21FbGVtZW50cy5kZWZpbmUoYGFwcC0ke2FwcE5hbWV9YCwgYXBwKTtcclxuXHRcdH0pO1xyXG5cdH0pO1xyXG59O1xyXG4iXX0=
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { inject, Renderer2, ElementRef, Component, ViewEncapsulation, ViewChild, isDevMode, signal, Injectable } from '@angular/core';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
3
|
+
import { Router, BaseRouteReuseStrategy } from '@angular/router';
|
|
4
4
|
import { WebComponentWrapper, startsWith } from '@angular-architects/module-federation-tools';
|
|
5
5
|
import { tap, catchError, of } from 'rxjs';
|
|
6
6
|
import { NotFoundComponent } from 'aril/util/custom_pages';
|
|
@@ -104,9 +104,16 @@ var Apps;
|
|
|
104
104
|
Apps["MNG"] = "mng";
|
|
105
105
|
})(Apps || (Apps = {}));
|
|
106
106
|
|
|
107
|
+
class ArilReuseStrategy extends BaseRouteReuseStrategy {
|
|
108
|
+
shouldReuseRoute(future, curr) {
|
|
109
|
+
return (future.routeConfig === curr.routeConfig ||
|
|
110
|
+
(future.paramMap.has('id') && future.paramMap.has('id') === curr.paramMap.has('id')));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
107
114
|
/**
|
|
108
115
|
* Generated bundle index. Do not edit.
|
|
109
116
|
*/
|
|
110
117
|
|
|
111
|
-
export { Apps, MicroAppService };
|
|
118
|
+
export { Apps, ArilReuseStrategy, MicroAppService };
|
|
112
119
|
//# sourceMappingURL=aril-boot-config-apps.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-boot-config-apps.mjs","sources":["../../projects/aril/boot/config/apps/src/showdowDOMWrapper.ts","../../projects/aril/boot/config/apps/src/apps.service.ts","../../projects/aril/boot/config/apps/src/interfaces.ts","../../projects/aril/boot/config/apps/aril-boot-config-apps.ts"],"sourcesContent":["import { Component, ElementRef, OnInit, Renderer2, ViewChild, ViewEncapsulation, inject } from '@angular/core';\r\n\r\nimport { WebComponentWrapper } from '@angular-architects/module-federation-tools';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\ttemplate: '<div #vc></div>',\r\n\tencapsulation: ViewEncapsulation.ShadowDom\r\n})\r\nexport class ShadowDOMWrapperComponent extends WebComponentWrapper implements OnInit {\r\n\t@ViewChild('vc', { read: ElementRef, static: true }) override vc!: ElementRef;\r\n\r\n\tprivate renderer = inject(Renderer2);\r\n\r\n\tngOnInit(): void {\r\n\t\tconst shadowRoot = this.vc.nativeElement.parentNode;\r\n\t\tconst styleUrls = this['route'].snapshot.data.styleUrls || [];\r\n\r\n\t\t// Inject styles into the Shadow DOM\r\n\t\tstyleUrls.forEach((url: string) => {\r\n\t\t\tconst link = this.renderer.createElement('link');\r\n\t\t\tlink.setAttribute('rel', 'stylesheet');\r\n\t\t\tlink.setAttribute('type', 'text/css');\r\n\t\t\tlink.setAttribute('href', url);\r\n\t\t\tthis.renderer.appendChild(shadowRoot, link);\r\n\t\t});\r\n\t}\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable, inject, isDevMode, signal } from '@angular/core';\r\nimport { Router, Routes } from '@angular/router';\r\n\r\nimport { MenuItem } from 'primeng/api';\r\n\r\nimport {\r\n\tWebComponentWrapper,\r\n\tWebComponentWrapperOptions,\r\n\tstartsWith\r\n} from '@angular-architects/module-federation-tools';\r\nimport { Observable, catchError, of, tap } from 'rxjs';\r\n\r\nimport { NotFoundComponent } from 'aril/util/custom_pages';\r\n\r\nimport { MicroAppConfig } from './interfaces';\r\nimport { ShadowDOMWrapperComponent } from './showdowDOMWrapper';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MicroAppService {\r\n\tprivate router = inject(Router);\r\n\r\n\tinit(httpBackend: { httpClient: HttpClient }): () => Observable<MicroAppConfig[]> {\r\n\t\treturn () =>\r\n\t\t\thttpBackend.httpClient\r\n\t\t\t\t.get<MicroAppConfig[]>(isDevMode() ? './assets/local-configs/app.local.json' : './assets/app.json')\r\n\t\t\t\t.pipe(\r\n\t\t\t\t\ttap((apps: MicroAppConfig[]) => {\r\n\t\t\t\t\t\tconst routes = this.buildRoutes(apps);\r\n\r\n\t\t\t\t\t\tthis.router.resetConfig([...this.router.config, ...routes, { path: '**', component: NotFoundComponent }]);\r\n\t\t\t\t\t\tthis.setMenuItems(apps);\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tcatchError((err) => {\r\n\t\t\t\t\t\tconsole.log('Error Micro Apps Loading', err);\r\n\t\t\t\t\t\treturn of();\r\n\t\t\t\t\t})\r\n\t\t\t\t);\r\n\t}\r\n\r\n\tbuildRoutes(apps: MicroAppConfig[]): Routes {\r\n\t\tconst routes: Routes = apps.map((config) => ({\r\n\t\t\tmatcher: startsWith(config.remoteName),\r\n\t\t\tcomponent: config.shadowDomPassive ? WebComponentWrapper : ShadowDOMWrapperComponent,\r\n\t\t\tdata: config as WebComponentWrapperOptions\r\n\t\t}));\r\n\r\n\t\treturn routes;\r\n\t}\r\n\r\n\tsetMenuItems(apps: MicroAppConfig[]): void {\r\n\t\tconst menuItems: MenuItem[] = apps.map((config) => {\r\n\t\t\treturn {\r\n\t\t\t\tmfeApp: true,\r\n\t\t\t\tlabel: config.label,\r\n\t\t\t\ticon: config.icon,\r\n\t\t\t\tremoteName: config.remoteName,\r\n\t\t\t\titems: [],\r\n\t\t\t\tcommand: () => {\r\n\t\t\t\t\tif (!window.location.hash.startsWith(config.remoteName, 2)) {\r\n\t\t\t\t\t\tthis.router.navigateByUrl(config.remoteName);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t});\r\n\r\n\t\tmenuItems.unshift({ root: true, label: 'Anasayfa', icon: 'pi pi-fw pi-home', routerLink: '/' });\r\n\t\t(<any>globalThis).hostMenuItems = signal(menuItems);\r\n\t}\r\n}\r\n","import { RemoteConfig } from '@angular-architects/module-federation';\r\n\r\nexport enum Apps {\r\n\tTHOR = 'thor',\r\n\tCRM = 'crm',\r\n\tWDM = 'wdm',\r\n\tBILLING = 'billing',\r\n\tPAYMENT = 'payment',\r\n\tYEAP = 'yeap',\r\n\tMD = 'md',\r\n\tMW = 'mw',\r\n\tLENA = 'lena',\r\n\tHES = 'hes',\r\n\tCTS = 'cts',\r\n\tSIS = 'sis',\r\n\tMNG = 'mng'\r\n}\r\n\r\nexport type MicroAppConfig = RemoteConfig & {\r\n\tremoteName: string;\r\n\texposedModule: string;\r\n\telementName: string;\r\n\tshadowDomPassive?: boolean;\r\n\tstyleUrls?: string[];\r\n\tlabel: string;\r\n\ticon: string;\r\n\t// route: string;\r\n};\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AASM,MAAO,yBAA0B,SAAQ,mBAAmB,CAAA;AALlE,IAAA,WAAA,GAAA;;AAQS,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAerC,KAAA;IAbA,QAAQ,GAAA;QACP,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC;AACpD,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC;;AAG9D,QAAA,SAAS,CAAC,OAAO,CAAC,CAAC,GAAW,KAAI;YACjC,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AACjD,YAAA,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;AACvC,YAAA,IAAI,CAAC,YAAY,CAAC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AAA,SAAmB,CAAA;AACnB,IAAA,IAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,IAAA,CAAA,IAAA,CAAA,GAAA,IAAS,CAAA;AACT,IAAA,IAAA,CAAA,IAAA,CAAA,GAAA,IAAS,CAAA;AACT,IAAA,IAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,IAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,IAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,IAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,IAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACZ,CAAC,EAdW,IAAI,KAAJ,IAAI,GAcf,EAAA,CAAA,CAAA;;
|
|
1
|
+
{"version":3,"file":"aril-boot-config-apps.mjs","sources":["../../projects/aril/boot/config/apps/src/showdowDOMWrapper.ts","../../projects/aril/boot/config/apps/src/apps.service.ts","../../projects/aril/boot/config/apps/src/interfaces.ts","../../projects/aril/boot/config/apps/src/reuse-strategy.ts","../../projects/aril/boot/config/apps/aril-boot-config-apps.ts"],"sourcesContent":["import { Component, ElementRef, OnInit, Renderer2, ViewChild, ViewEncapsulation, inject } from '@angular/core';\r\n\r\nimport { WebComponentWrapper } from '@angular-architects/module-federation-tools';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\ttemplate: '<div #vc></div>',\r\n\tencapsulation: ViewEncapsulation.ShadowDom\r\n})\r\nexport class ShadowDOMWrapperComponent extends WebComponentWrapper implements OnInit {\r\n\t@ViewChild('vc', { read: ElementRef, static: true }) override vc!: ElementRef;\r\n\r\n\tprivate renderer = inject(Renderer2);\r\n\r\n\tngOnInit(): void {\r\n\t\tconst shadowRoot = this.vc.nativeElement.parentNode;\r\n\t\tconst styleUrls = this['route'].snapshot.data.styleUrls || [];\r\n\r\n\t\t// Inject styles into the Shadow DOM\r\n\t\tstyleUrls.forEach((url: string) => {\r\n\t\t\tconst link = this.renderer.createElement('link');\r\n\t\t\tlink.setAttribute('rel', 'stylesheet');\r\n\t\t\tlink.setAttribute('type', 'text/css');\r\n\t\t\tlink.setAttribute('href', url);\r\n\t\t\tthis.renderer.appendChild(shadowRoot, link);\r\n\t\t});\r\n\t}\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable, inject, isDevMode, signal } from '@angular/core';\r\nimport { Router, Routes } from '@angular/router';\r\n\r\nimport { MenuItem } from 'primeng/api';\r\n\r\nimport {\r\n\tWebComponentWrapper,\r\n\tWebComponentWrapperOptions,\r\n\tstartsWith\r\n} from '@angular-architects/module-federation-tools';\r\nimport { Observable, catchError, of, tap } from 'rxjs';\r\n\r\nimport { NotFoundComponent } from 'aril/util/custom_pages';\r\n\r\nimport { MicroAppConfig } from './interfaces';\r\nimport { ShadowDOMWrapperComponent } from './showdowDOMWrapper';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class MicroAppService {\r\n\tprivate router = inject(Router);\r\n\r\n\tinit(httpBackend: { httpClient: HttpClient }): () => Observable<MicroAppConfig[]> {\r\n\t\treturn () =>\r\n\t\t\thttpBackend.httpClient\r\n\t\t\t\t.get<MicroAppConfig[]>(isDevMode() ? './assets/local-configs/app.local.json' : './assets/app.json')\r\n\t\t\t\t.pipe(\r\n\t\t\t\t\ttap((apps: MicroAppConfig[]) => {\r\n\t\t\t\t\t\tconst routes = this.buildRoutes(apps);\r\n\r\n\t\t\t\t\t\tthis.router.resetConfig([...this.router.config, ...routes, { path: '**', component: NotFoundComponent }]);\r\n\t\t\t\t\t\tthis.setMenuItems(apps);\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tcatchError((err) => {\r\n\t\t\t\t\t\tconsole.log('Error Micro Apps Loading', err);\r\n\t\t\t\t\t\treturn of();\r\n\t\t\t\t\t})\r\n\t\t\t\t);\r\n\t}\r\n\r\n\tbuildRoutes(apps: MicroAppConfig[]): Routes {\r\n\t\tconst routes: Routes = apps.map((config) => ({\r\n\t\t\tmatcher: startsWith(config.remoteName),\r\n\t\t\tcomponent: config.shadowDomPassive ? WebComponentWrapper : ShadowDOMWrapperComponent,\r\n\t\t\tdata: config as WebComponentWrapperOptions\r\n\t\t}));\r\n\r\n\t\treturn routes;\r\n\t}\r\n\r\n\tsetMenuItems(apps: MicroAppConfig[]): void {\r\n\t\tconst menuItems: MenuItem[] = apps.map((config) => {\r\n\t\t\treturn {\r\n\t\t\t\tmfeApp: true,\r\n\t\t\t\tlabel: config.label,\r\n\t\t\t\ticon: config.icon,\r\n\t\t\t\tremoteName: config.remoteName,\r\n\t\t\t\titems: [],\r\n\t\t\t\tcommand: () => {\r\n\t\t\t\t\tif (!window.location.hash.startsWith(config.remoteName, 2)) {\r\n\t\t\t\t\t\tthis.router.navigateByUrl(config.remoteName);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t});\r\n\r\n\t\tmenuItems.unshift({ root: true, label: 'Anasayfa', icon: 'pi pi-fw pi-home', routerLink: '/' });\r\n\t\t(<any>globalThis).hostMenuItems = signal(menuItems);\r\n\t}\r\n}\r\n","import { RemoteConfig } from '@angular-architects/module-federation';\r\n\r\nexport enum Apps {\r\n\tTHOR = 'thor',\r\n\tCRM = 'crm',\r\n\tWDM = 'wdm',\r\n\tBILLING = 'billing',\r\n\tPAYMENT = 'payment',\r\n\tYEAP = 'yeap',\r\n\tMD = 'md',\r\n\tMW = 'mw',\r\n\tLENA = 'lena',\r\n\tHES = 'hes',\r\n\tCTS = 'cts',\r\n\tSIS = 'sis',\r\n\tMNG = 'mng'\r\n}\r\n\r\nexport type MicroAppConfig = RemoteConfig & {\r\n\tremoteName: string;\r\n\texposedModule: string;\r\n\telementName: string;\r\n\tshadowDomPassive?: boolean;\r\n\tstyleUrls?: string[];\r\n\tlabel: string;\r\n\ticon: string;\r\n\t// route: string;\r\n};\r\n","import { ActivatedRouteSnapshot, BaseRouteReuseStrategy } from '@angular/router';\r\n\r\nexport class ArilReuseStrategy extends BaseRouteReuseStrategy {\r\n\toverride shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean {\r\n\t\treturn (\r\n\t\t\tfuture.routeConfig === curr.routeConfig ||\r\n\t\t\t(future.paramMap.has('id') && future.paramMap.has('id') === curr.paramMap.has('id'))\r\n\t\t);\r\n\t}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AASM,MAAO,yBAA0B,SAAQ,mBAAmB,CAAA;AALlE,IAAA,WAAA,GAAA;;AAQS,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAerC,KAAA;IAbA,QAAQ,GAAA;QACP,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC;AACpD,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC;;AAG9D,QAAA,SAAS,CAAC,OAAO,CAAC,CAAC,GAAW,KAAI;YACjC,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AACjD,YAAA,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;AACvC,YAAA,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AACtC,YAAA,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAC/B,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AAC7C,SAAC,CAAC,CAAC;KACH;8GAjBW,yBAAyB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAzB,yBAAyB,EAAA,YAAA,EAAA,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AA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,IAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACZ,CAAC,EAdW,IAAI,KAAJ,IAAI,GAcf,EAAA,CAAA,CAAA;;ACdK,MAAO,iBAAkB,SAAQ,sBAAsB,CAAA;IACnD,gBAAgB,CAAC,MAA8B,EAAE,IAA4B,EAAA;AACrF,QAAA,QACC,MAAM,CAAC,WAAW,KAAK,IAAI,CAAC,WAAW;AACvC,aAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EACnF;KACF;AACD;;ACTD;;AAEG;;;;"}
|
|
@@ -4,11 +4,11 @@ import { inject, NgZone, Component, importProvidersFrom, APP_INITIALIZER } from
|
|
|
4
4
|
import { bootstrapApplication } from '@angular/platform-browser';
|
|
5
5
|
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
6
6
|
import * as i1 from '@angular/router';
|
|
7
|
-
import { RouterOutlet, provideRouter, withComponentInputBinding, withHashLocation, withViewTransitions } from '@angular/router';
|
|
7
|
+
import { RouterOutlet, provideRouter, withComponentInputBinding, withHashLocation, withViewTransitions, RouteReuseStrategy } from '@angular/router';
|
|
8
8
|
import { MessageService, ConfirmationService } from 'primeng/api';
|
|
9
9
|
import { KeycloakAngularModule } from 'keycloak-angular';
|
|
10
10
|
import { loadApiConfigs } from 'aril/boot/config/api';
|
|
11
|
-
import { MicroAppService } from 'aril/boot/config/apps';
|
|
11
|
+
import { ArilReuseStrategy, MicroAppService } from 'aril/boot/config/apps';
|
|
12
12
|
import { loadPlugins } from 'aril/boot/config/plugins';
|
|
13
13
|
import { stateMachineInterceptor, HttpBackendService } from 'aril/http';
|
|
14
14
|
import { i18nModule, i18nFolderName } from 'aril/i18n';
|
|
@@ -51,6 +51,7 @@ const boot = (_appName, routes) => {
|
|
|
51
51
|
provideAnimations(),
|
|
52
52
|
provideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),
|
|
53
53
|
provideRouter(routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),
|
|
54
|
+
{ provide: RouteReuseStrategy, useClass: ArilReuseStrategy },
|
|
54
55
|
importProvidersFrom(i18nModule, KeycloakAngularModule),
|
|
55
56
|
MessageService,
|
|
56
57
|
ConfirmationService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-boot-host.mjs","sources":["../../projects/aril/boot/host/src/app.component.ts","../../projects/aril/boot/host/src/bootstrap.ts","../../projects/aril/boot/host/aril-boot-host.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { Component, NgZone, inject } from '@angular/core';\r\nimport { Router, RouterOutlet } from '@angular/router';\r\n\r\nimport { AppLayoutComponent } from 'aril/theme/layout';\r\nimport { PubSubService } from 'aril/util/pub-sub';\r\nimport { appName } from './bootstrap';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-root',\r\n\ttemplate: ` <app-layout></app-layout> `,\r\n\timports: [RouterOutlet, AppLayoutComponent]\r\n})\r\nexport class AppComponent {\r\n\tconstructor(router: Router, pubSubService: PubSubService) {\r\n\t\t(<any>globalThis).activeHost = appName;\r\n\t\t(<any>globalThis).hostZone = inject(NgZone);\r\n\t\t(<any>globalThis).isHostMode = true;\r\n\r\n\t\tpubSubService.subscribe('navigateBetweenApps', (data: any) => {\r\n\t\t\trouter.navigateByUrl(data.path);\r\n\t\t\tpubSubService.publish({\r\n\t\t\t\tname: 'navigateInApps',\r\n\t\t\t\tdata: data\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n}\r\n","import { provideHttpClient, withInterceptors } from '@angular/common/http';\r\nimport { APP_INITIALIZER, ApplicationConfig, importProvidersFrom } from '@angular/core';\r\nimport { bootstrapApplication } from '@angular/platform-browser';\r\nimport { provideAnimations } from '@angular/platform-browser/animations';\r\nimport {\r\n\tRoutes,\r\n\tprovideRouter,\r\n\twithComponentInputBinding,\r\n\twithHashLocation,\r\n\twithViewTransitions\r\n} from '@angular/router';\r\n\r\nimport { ConfirmationService, MessageService } from 'primeng/api';\r\n\r\nimport { KeycloakAngularModule } from 'keycloak-angular';\r\n\r\nimport { loadApiConfigs } from 'aril/boot/config/api';\r\nimport { MicroAppService } from 'aril/boot/config/apps';\r\nimport { loadPlugins } from 'aril/boot/config/plugins';\r\nimport { HttpBackendService, stateMachineInterceptor } from 'aril/http';\r\nimport { i18nFolderName, i18nModule } from 'aril/i18n';\r\nimport { KeycloakManager, authInterceptor } from 'aril/keycloak';\r\n\r\nimport { AppComponent } from './app.component';\r\n\r\
|
|
1
|
+
{"version":3,"file":"aril-boot-host.mjs","sources":["../../projects/aril/boot/host/src/app.component.ts","../../projects/aril/boot/host/src/bootstrap.ts","../../projects/aril/boot/host/aril-boot-host.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { Component, NgZone, inject } from '@angular/core';\r\nimport { Router, RouterOutlet } from '@angular/router';\r\n\r\nimport { AppLayoutComponent } from 'aril/theme/layout';\r\nimport { PubSubService } from 'aril/util/pub-sub';\r\nimport { appName } from './bootstrap';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-root',\r\n\ttemplate: ` <app-layout></app-layout> `,\r\n\timports: [RouterOutlet, AppLayoutComponent]\r\n})\r\nexport class AppComponent {\r\n\tconstructor(router: Router, pubSubService: PubSubService) {\r\n\t\t(<any>globalThis).activeHost = appName;\r\n\t\t(<any>globalThis).hostZone = inject(NgZone);\r\n\t\t(<any>globalThis).isHostMode = true;\r\n\r\n\t\tpubSubService.subscribe('navigateBetweenApps', (data: any) => {\r\n\t\t\trouter.navigateByUrl(data.path);\r\n\t\t\tpubSubService.publish({\r\n\t\t\t\tname: 'navigateInApps',\r\n\t\t\t\tdata: data\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n}\r\n","import { provideHttpClient, withInterceptors } from '@angular/common/http';\r\nimport { APP_INITIALIZER, ApplicationConfig, importProvidersFrom } from '@angular/core';\r\nimport { bootstrapApplication } from '@angular/platform-browser';\r\nimport { provideAnimations } from '@angular/platform-browser/animations';\r\nimport {\r\n\tRouteReuseStrategy,\r\n\tRoutes,\r\n\tprovideRouter,\r\n\twithComponentInputBinding,\r\n\twithHashLocation,\r\n\twithViewTransitions\r\n} from '@angular/router';\r\n\r\nimport { ConfirmationService, MessageService } from 'primeng/api';\r\n\r\nimport { KeycloakAngularModule } from 'keycloak-angular';\r\n\r\nimport { loadApiConfigs } from 'aril/boot/config/api';\r\nimport { Apps, ArilReuseStrategy, MicroAppService } from 'aril/boot/config/apps';\r\nimport { loadPlugins } from 'aril/boot/config/plugins';\r\nimport { HttpBackendService, stateMachineInterceptor } from 'aril/http';\r\nimport { i18nFolderName, i18nModule } from 'aril/i18n';\r\nimport { KeycloakManager, authInterceptor } from 'aril/keycloak';\r\n\r\nimport { AppComponent } from './app.component';\r\n\r\nexport var appName: Apps;\r\n\r\nexport const boot = (_appName: Apps, routes: Routes) => {\r\n\tappName = _appName;\r\n\tconst appConfig: ApplicationConfig = {\r\n\t\tproviders: [\r\n\t\t\tprovideAnimations(),\r\n\t\t\tprovideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),\r\n\t\t\tprovideRouter(routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),\r\n\t\t\t{ provide: RouteReuseStrategy, useClass: ArilReuseStrategy },\r\n\t\t\timportProvidersFrom(i18nModule, KeycloakAngularModule),\r\n\t\t\tMessageService,\r\n\t\t\tConfirmationService,\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadApiConfigs,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService, KeycloakManager, i18nFolderName]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: (mAppService: MicroAppService, httpBackend: HttpBackendService) => mAppService.init(httpBackend),\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [MicroAppService, HttpBackendService]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadPlugins,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: i18nFolderName,\r\n\t\t\t\tuseValue: 'host'\r\n\t\t\t}\r\n\t\t]\r\n\t};\r\n\r\n\tbootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err));\r\n};\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;MAca,YAAY,CAAA;IACxB,WAAY,CAAA,MAAc,EAAE,aAA4B,EAAA;AACjD,QAAA,UAAW,CAAC,UAAU,GAAG,OAAO,CAAC;AACjC,QAAA,UAAW,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AACtC,QAAA,UAAW,CAAC,UAAU,GAAG,IAAI,CAAC;QAEpC,aAAa,CAAC,SAAS,CAAC,qBAAqB,EAAE,CAAC,IAAS,KAAI;AAC5D,YAAA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChC,aAAa,CAAC,OAAO,CAAC;AACrB,gBAAA,IAAI,EAAE,gBAAgB;AACtB,gBAAA,IAAI,EAAE,IAAI;AACV,aAAA,CAAC,CAAC;AACJ,SAAC,CAAC,CAAC;KACH;8GAbW,YAAY,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,aAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,E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,eAAe,EAAE,cAAc,CAAC;AAC3D,aAAA;AACD,YAAA;AACC,gBAAA,OAAO,EAAE,eAAe;AACxB,gBAAA,UAAU,EAAE,CAAC,WAA4B,EAAE,WAA+B,KAAK,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AAC5G,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,IAAI,EAAE,CAAC,eAAe,EAAE,kBAAkB,CAAC;AAC3C,aAAA;AACD,YAAA;AACC,gBAAA,OAAO,EAAE,eAAe;AACxB,gBAAA,UAAU,EAAE,WAAW;AACvB,gBAAA,KAAK,EAAE,IAAI;gBACX,IAAI,EAAE,CAAC,kBAAkB,CAAC;AAC1B,aAAA;AACD,YAAA;AACC,gBAAA,OAAO,EAAE,cAAc;AACvB,gBAAA,QAAQ,EAAE,MAAM;AAChB,aAAA;AACD,SAAA;KACD,CAAC;IAEF,oBAAoB,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AAClF;;ACjEA;;AAEG;;;;"}
|
|
@@ -5,7 +5,7 @@ import { RouterOutlet } from '@angular/router';
|
|
|
5
5
|
import { ModuleFederationToolsModule } from '@angular-architects/module-federation-tools';
|
|
6
6
|
import * as i3 from 'aril/theme/layout';
|
|
7
7
|
import { AppLayoutComponent, MFELayoutComponent } from 'aril/theme/layout';
|
|
8
|
-
import { a as appName, m as menuItems } from './aril-boot-mfe-aril-boot-mfe-
|
|
8
|
+
import { a as appName, m as menuItems } from './aril-boot-mfe-aril-boot-mfe-Cc6ruNdr.mjs';
|
|
9
9
|
import * as i2 from 'aril/util/pub-sub';
|
|
10
10
|
import '@angular/common/http';
|
|
11
11
|
import '@angular/elements';
|
|
@@ -14,12 +14,12 @@ import '@angular/platform-browser/animations';
|
|
|
14
14
|
import 'primeng/api';
|
|
15
15
|
import 'keycloak-angular';
|
|
16
16
|
import 'aril/boot/config/api';
|
|
17
|
+
import 'aril/boot/config/apps';
|
|
17
18
|
import 'aril/boot/config/plugins';
|
|
18
19
|
import 'aril/http';
|
|
19
20
|
import 'aril/i18n';
|
|
20
21
|
import 'aril/keycloak';
|
|
21
22
|
import 'aril/util/loaders';
|
|
22
|
-
import 'aril/boot/config/apps';
|
|
23
23
|
|
|
24
24
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
25
25
|
class AppComponent {
|
|
@@ -80,4 +80,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
80
80
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i2.PubSubService }, { type: i3.AppMenuService }] });
|
|
81
81
|
|
|
82
82
|
export { AppComponent };
|
|
83
|
-
//# sourceMappingURL=aril-boot-mfe-app.component-
|
|
83
|
+
//# sourceMappingURL=aril-boot-mfe-app.component-nKEqz5dg.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril-boot-mfe-app.component-
|
|
1
|
+
{"version":3,"file":"aril-boot-mfe-app.component-nKEqz5dg.mjs","sources":["../../projects/aril/boot/mfe/src/app.component.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { Component, NgZone, inject } from '@angular/core';\r\nimport { Router, RouterOutlet } from '@angular/router';\r\n\r\nimport { MenuItem } from 'primeng/api';\r\n\r\nimport { ModuleFederationToolsModule } from '@angular-architects/module-federation-tools';\r\n\r\nimport { AppLayoutComponent, AppMenuService, MFELayoutComponent } from 'aril/theme/layout';\r\nimport { PubSubService } from 'aril/util/pub-sub';\r\n\r\nimport { appName, menuItems } from './bootstrap';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\ttemplate: `\r\n\t\t@if (isHostMode) {\r\n\t\t\t<mfe-layout></mfe-layout>\r\n\t\t} @else {\r\n\t\t\t<app-layout></app-layout>\r\n\t\t}\r\n\t`,\r\n\timports: [RouterOutlet, ModuleFederationToolsModule, AppLayoutComponent, MFELayoutComponent]\r\n})\r\nexport class AppComponent {\r\n\tconstructor(\r\n\t\tprivate router: Router,\r\n\t\tpubSubService: PubSubService,\r\n\t\tappMenuService: AppMenuService\r\n\t) {\r\n\t\tif (!this.isHostMode && !(<any>globalThis).mfeZone) {\r\n\t\t\t(<any>globalThis).mfeZone = inject(NgZone);\r\n\t\t}\r\n\r\n\t\tthis.connectRouter();\r\n\r\n\t\t(<any>globalThis).activeMF = appName;\r\n\r\n\t\tpubSubService.subscribe('navigateInApps', (data: any) => {\r\n\t\t\tif (data.path.startsWith(appName, 1)) router.navigateByUrl(data.path);\r\n\t\t});\r\n\r\n\t\tif (this.isHostMode) {\r\n\t\t\tappMenuService.subMenuConfig.set({ items: structuredClone(menuItems), prefix: appName });\r\n\r\n\t\t\t(<any>globalThis).hostMenuItems.update((menu: MenuItem[]) => {\r\n\t\t\t\treturn menu.map((menuItem: MenuItem) => {\r\n\t\t\t\t\tif (menuItem['remoteName'] === appName) menuItem.items = appMenuService.subMenuItems();\r\n\t\t\t\t\treturn menuItem;\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tappMenuService.menuConfig.set({ items: structuredClone(menuItems), prefix: appName });\r\n\t\t}\r\n\t}\r\n\r\n\tisHostMode = (<any>globalThis).isHostMode;\r\n\r\n\tconnectRouter() {\r\n\t\tthis.router.initialNavigation();\r\n\r\n\t\twindow.addEventListener('popstate', () => {\r\n\t\t\tthis.router.initialNavigation();\r\n\t\t});\r\n\t}\r\n}\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;MAwBa,YAAY,CAAA;AACxB,IAAA,WAAA,CACS,MAAc,EACtB,aAA4B,EAC5B,cAA8B,EAAA;QAFtB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;AA8BvB,QAAA,IAAA,CAAA,UAAU,GAAS,UAAW,CAAC,UAAU,CAAC;QA1BzC,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,CAAO,UAAW,C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Element } from '@angular/elements';
|
|
4
4
|
import { createApplication } from '@angular/platform-browser';
|
|
5
5
|
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
6
|
-
import { provideRouter, withComponentInputBinding, withHashLocation, withViewTransitions } from '@angular/router';
|
|
6
|
+
import { provideRouter, withComponentInputBinding, withHashLocation, withViewTransitions, RouteReuseStrategy } from '@angular/router';
|
|
7
7
|
import { MessageService, ConfirmationService } from 'primeng/api';
|
|
8
8
|
import { KeycloakAngularModule } from 'keycloak-angular';
|
|
9
9
|
import { setApiConfigOnMFEMode, loadApiConfigs } from 'aril/boot/config/api';
|
|
10
|
+
import { Apps, ArilReuseStrategy } from 'aril/boot/config/apps';
|
|
10
11
|
import { getNgZone, loadPlugins } from 'aril/boot/config/plugins';
|
|
11
12
|
import { stateMachineInterceptor, HttpBackendService } from 'aril/http';
|
|
12
13
|
import { i18nModule, i18nFolderName } from 'aril/i18n';
|
|
13
14
|
import { authInterceptor, KeycloakManager } from 'aril/keycloak';
|
|
14
15
|
import { StyleLoaderService } from 'aril/util/loaders';
|
|
15
|
-
import { Apps } from 'aril/boot/config/apps';
|
|
16
16
|
|
|
17
17
|
const appComponentLoader = async () => {
|
|
18
|
-
const { AppComponent } = await import('./aril-boot-mfe-app.component-
|
|
18
|
+
const { AppComponent } = await import('./aril-boot-mfe-app.component-nKEqz5dg.mjs');
|
|
19
19
|
return AppComponent;
|
|
20
20
|
};
|
|
21
21
|
|
|
@@ -65,6 +65,7 @@ const boot = (_appName, _routes, _menuItems) => {
|
|
|
65
65
|
provideAnimations(),
|
|
66
66
|
provideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),
|
|
67
67
|
provideRouter(_routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),
|
|
68
|
+
{ provide: RouteReuseStrategy, useClass: ArilReuseStrategy },
|
|
68
69
|
importProvidersFrom(i18nModule, KeycloakAngularModule),
|
|
69
70
|
getNgZone(),
|
|
70
71
|
MessageService,
|
|
@@ -106,4 +107,4 @@ const boot = (_appName, _routes, _menuItems) => {
|
|
|
106
107
|
*/
|
|
107
108
|
|
|
108
109
|
export { appName as a, boot as b, menuItems as m };
|
|
109
|
-
//# sourceMappingURL=aril-boot-mfe-aril-boot-mfe-
|
|
110
|
+
//# sourceMappingURL=aril-boot-mfe-aril-boot-mfe-Cc6ruNdr.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aril-boot-mfe-aril-boot-mfe-Cc6ruNdr.mjs","sources":["../../projects/aril/boot/mfe/src/appComponentLoader.ts","../../projects/aril/boot/mfe/src/loadStyles.ts","../../projects/aril/boot/mfe/src/bootstrap.ts","../../projects/aril/boot/mfe/aril-boot-mfe.ts"],"sourcesContent":["export const appComponentLoader = async () => {\r\n\tconst { AppComponent } = await import('./app.component');\r\n\treturn AppComponent;\r\n};","import { Apps } from 'aril/boot/config/apps';\r\nimport { StyleLoaderService } from 'aril/util/loaders';\r\n\r\nexport function loadStyles(styleLoaderService: StyleLoaderService, appName: Apps): () => Promise<any> {\r\n\tconst styles = [\r\n\t\t'layout.css',\r\n\t\t'ui.common.css',\r\n\t\t'preloading.css',\r\n\t\t'primeng.min.css',\r\n\t\t'dx.fluent.saas.light.css',\r\n\t\t`assets/${appName}/styles/primeflex/primeflex.min.css`,\r\n\t\t`assets/${appName}/styles/primeicons/primeicons.css`\r\n\t];\r\n\r\n\tswitch (appName) {\r\n\t\tcase Apps.HES:\r\n\t\tcase Apps.CTS:\r\n\t\tcase Apps.SIS:\r\n\t\t\tstyles.push('theme.light.lena.css');\r\n\t\t\tbreak;\r\n\t\tcase Apps.CRM:\r\n\t\tcase Apps.BILLING:\r\n\t\tcase Apps.PAYMENT:\r\n\t\tcase Apps.WDM:\r\n\t\tcase Apps.MNG:\r\n\t\t\tstyles.push('theme.light.thor.css');\r\n\t\t\tbreak;\r\n\t\tcase Apps.MW:\r\n\t\t\tstyles.push('theme.light.yeap.css');\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tstyles.push('theme.light.indigo.css');\r\n\t}\r\n\r\n\tif ((<any>globalThis).isHostMode) return () => Promise.resolve();\r\n\r\n\treturn () => styleLoaderService.load(styles);\r\n}\r\n","import { provideHttpClient, withInterceptors } from '@angular/common/http';\r\nimport { APP_INITIALIZER, ApplicationConfig, importProvidersFrom } from '@angular/core';\r\nimport { createCustomElement } from '@angular/elements';\r\nimport { createApplication } from '@angular/platform-browser';\r\nimport { provideAnimations } from '@angular/platform-browser/animations';\r\nimport {\r\n\tRouteReuseStrategy,\r\n\tRoutes,\r\n\tprovideRouter,\r\n\twithComponentInputBinding,\r\n\twithHashLocation,\r\n\twithViewTransitions\r\n} from '@angular/router';\r\n\r\nimport { ConfirmationService, MenuItem, MessageService } from 'primeng/api';\r\n\r\nimport { KeycloakAngularModule } from 'keycloak-angular';\r\n\r\nimport { loadApiConfigs, setApiConfigOnMFEMode } from 'aril/boot/config/api';\r\nimport { Apps, ArilReuseStrategy } from 'aril/boot/config/apps';\r\nimport { getNgZone, loadPlugins } from 'aril/boot/config/plugins';\r\nimport { HttpBackendService, stateMachineInterceptor } from 'aril/http';\r\nimport { i18nFolderName, i18nModule } from 'aril/i18n';\r\nimport { KeycloakManager, authInterceptor } from 'aril/keycloak';\r\nimport { StyleLoaderService } from 'aril/util/loaders';\r\n\r\nimport { appComponentLoader } from './appComponentLoader';\r\nimport { loadStyles } from './loadStyles';\r\n\r\nexport var appName: Apps;\r\nexport var menuItems: MenuItem[] = [];\r\n\r\nexport const boot = (_appName: Apps, _routes: Routes, _menuItems: MenuItem[]) => {\r\n\tif (customElements.get(`app-${_appName}`)) return;\r\n\r\n\tappName = _appName;\r\n\tmenuItems = _menuItems;\r\n\r\n\tconst appBootConfig: ApplicationConfig = {\r\n\t\tproviders: [\r\n\t\t\tprovideAnimations(),\r\n\t\t\tprovideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),\r\n\t\t\tprovideRouter(_routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),\r\n\t\t\t{ provide: RouteReuseStrategy, useClass: ArilReuseStrategy },\r\n\t\t\timportProvidersFrom(i18nModule, KeycloakAngularModule),\r\n\t\t\tgetNgZone(),\r\n\t\t\tMessageService,\r\n\t\t\tConfirmationService,\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: (<any>globalThis).isHostMode ? setApiConfigOnMFEMode : loadApiConfigs,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService, KeycloakManager, i18nFolderName]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadPlugins,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadStyles,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [StyleLoaderService, i18nFolderName]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: i18nFolderName,\r\n\t\t\t\tuseValue: _appName\r\n\t\t\t}\r\n\t\t]\r\n\t};\r\n\r\n\tcreateApplication(appBootConfig).then((appRef) => {\r\n\t\tappComponentLoader().then((AppComponent) => {\r\n\t\t\tconst app = createCustomElement(AppComponent, { injector: appRef.injector });\r\n\t\t\tcustomElements.define(`app-${appName}`, app);\r\n\t\t});\r\n\t});\r\n};\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAO,MAAM,kBAAkB,GAAG,YAAW;IAC5C,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,4CAAiB,CAAC,CAAC;AACzD,IAAA,OAAO,YAAY,CAAC;AACrB,CAAC;;ACAe,SAAA,UAAU,CAAC,kBAAsC,EAAE,OAAa,EAAA;AAC/E,IAAA,MAAM,MAAM,GAAG;QACd,Y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AAC,YAAY,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC7E,cAAc,CAAC,MAAM,CAAC,CAAA,IAAA,EAAO,OAAO,CAAE,CAAA,EAAE,GAAG,CAAC,CAAC;AAC9C,SAAC,CAAC,CAAC;AACJ,KAAC,CAAC,CAAC;AACJ;;AC/EA;;AAEG;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as boot } from './aril-boot-mfe-aril-boot-mfe-
|
|
1
|
+
export { b as boot } from './aril-boot-mfe-aril-boot-mfe-Cc6ruNdr.mjs';
|
|
2
2
|
import '@angular/common/http';
|
|
3
3
|
import '@angular/core';
|
|
4
4
|
import '@angular/elements';
|
|
@@ -8,10 +8,10 @@ import '@angular/router';
|
|
|
8
8
|
import 'primeng/api';
|
|
9
9
|
import 'keycloak-angular';
|
|
10
10
|
import 'aril/boot/config/api';
|
|
11
|
+
import 'aril/boot/config/apps';
|
|
11
12
|
import 'aril/boot/config/plugins';
|
|
12
13
|
import 'aril/http';
|
|
13
14
|
import 'aril/i18n';
|
|
14
15
|
import 'aril/keycloak';
|
|
15
16
|
import 'aril/util/loaders';
|
|
16
|
-
import 'aril/boot/config/apps';
|
|
17
17
|
//# sourceMappingURL=aril-boot-mfe.mjs.map
|
package/fesm2022/aril.mjs
CHANGED
|
@@ -4,11 +4,11 @@ import { inject, NgZone, Component, importProvidersFrom, APP_INITIALIZER } from
|
|
|
4
4
|
import { bootstrapApplication, createApplication } from '@angular/platform-browser';
|
|
5
5
|
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
6
6
|
import * as i1 from '@angular/router';
|
|
7
|
-
import { RouterOutlet, provideRouter, withComponentInputBinding, withHashLocation, withViewTransitions } from '@angular/router';
|
|
7
|
+
import { RouterOutlet, provideRouter, withComponentInputBinding, withHashLocation, withViewTransitions, RouteReuseStrategy } from '@angular/router';
|
|
8
8
|
import { MessageService, ConfirmationService } from 'primeng/api';
|
|
9
9
|
import { KeycloakAngularModule } from 'keycloak-angular';
|
|
10
10
|
import { loadApiConfigs, setApiConfigOnMFEMode } from 'aril/boot/config/api';
|
|
11
|
-
import { MicroAppService, Apps } from 'aril/boot/config/apps';
|
|
11
|
+
import { ArilReuseStrategy, MicroAppService, Apps } from 'aril/boot/config/apps';
|
|
12
12
|
import { loadPlugins, getNgZone } from 'aril/boot/config/plugins';
|
|
13
13
|
import { stateMachineInterceptor, HttpBackendService } from 'aril/http';
|
|
14
14
|
import { i18nModule, i18nFolderName } from 'aril/i18n';
|
|
@@ -53,6 +53,7 @@ const boot$1 = (_appName, routes) => {
|
|
|
53
53
|
provideAnimations(),
|
|
54
54
|
provideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),
|
|
55
55
|
provideRouter(routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),
|
|
56
|
+
{ provide: RouteReuseStrategy, useClass: ArilReuseStrategy },
|
|
56
57
|
importProvidersFrom(i18nModule, KeycloakAngularModule),
|
|
57
58
|
MessageService,
|
|
58
59
|
ConfirmationService,
|
|
@@ -134,6 +135,7 @@ const boot = (_appName, _routes, _menuItems) => {
|
|
|
134
135
|
provideAnimations(),
|
|
135
136
|
provideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),
|
|
136
137
|
provideRouter(_routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),
|
|
138
|
+
{ provide: RouteReuseStrategy, useClass: ArilReuseStrategy },
|
|
137
139
|
importProvidersFrom(i18nModule, KeycloakAngularModule),
|
|
138
140
|
getNgZone(),
|
|
139
141
|
MessageService,
|
package/fesm2022/aril.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aril.mjs","sources":["../../projects/aril/boot/host/src/app.component.ts","../../projects/aril/boot/host/src/bootstrap.ts","../../projects/aril/boot/mfe/src/appComponentLoader.ts","../../projects/aril/boot/mfe/src/loadStyles.ts","../../projects/aril/boot/mfe/src/bootstrap.ts","../../projects/aril/aril.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { Component, NgZone, inject } from '@angular/core';\r\nimport { Router, RouterOutlet } from '@angular/router';\r\n\r\nimport { AppLayoutComponent } from 'aril/theme/layout';\r\nimport { PubSubService } from 'aril/util/pub-sub';\r\nimport { appName } from './bootstrap';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-root',\r\n\ttemplate: ` <app-layout></app-layout> `,\r\n\timports: [RouterOutlet, AppLayoutComponent]\r\n})\r\nexport class AppComponent {\r\n\tconstructor(router: Router, pubSubService: PubSubService) {\r\n\t\t(<any>globalThis).activeHost = appName;\r\n\t\t(<any>globalThis).hostZone = inject(NgZone);\r\n\t\t(<any>globalThis).isHostMode = true;\r\n\r\n\t\tpubSubService.subscribe('navigateBetweenApps', (data: any) => {\r\n\t\t\trouter.navigateByUrl(data.path);\r\n\t\t\tpubSubService.publish({\r\n\t\t\t\tname: 'navigateInApps',\r\n\t\t\t\tdata: data\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n}\r\n","import { provideHttpClient, withInterceptors } from '@angular/common/http';\r\nimport { APP_INITIALIZER, ApplicationConfig, importProvidersFrom } from '@angular/core';\r\nimport { bootstrapApplication } from '@angular/platform-browser';\r\nimport { provideAnimations } from '@angular/platform-browser/animations';\r\nimport {\r\n\tRoutes,\r\n\tprovideRouter,\r\n\twithComponentInputBinding,\r\n\twithHashLocation,\r\n\twithViewTransitions\r\n} from '@angular/router';\r\n\r\nimport { ConfirmationService, MessageService } from 'primeng/api';\r\n\r\nimport { KeycloakAngularModule } from 'keycloak-angular';\r\n\r\nimport { loadApiConfigs } from 'aril/boot/config/api';\r\nimport { MicroAppService } from 'aril/boot/config/apps';\r\nimport { loadPlugins } from 'aril/boot/config/plugins';\r\nimport { HttpBackendService, stateMachineInterceptor } from 'aril/http';\r\nimport { i18nFolderName, i18nModule } from 'aril/i18n';\r\nimport { KeycloakManager, authInterceptor } from 'aril/keycloak';\r\n\r\nimport { AppComponent } from './app.component';\r\n\r\nimport { Apps } from 'aril/boot/config/apps';\r\nexport var appName: Apps;\r\n\r\nexport const boot = ( _appName: Apps, routes: Routes) => {\r\n\tappName = _appName;\r\n\tconst appConfig: ApplicationConfig = {\r\n\t\tproviders: [\r\n\t\t\tprovideAnimations(),\r\n\t\t\tprovideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),\r\n\t\t\tprovideRouter(routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),\r\n\t\t\timportProvidersFrom(i18nModule, KeycloakAngularModule),\r\n\t\t\tMessageService,\r\n\t\t\tConfirmationService,\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadApiConfigs,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService, KeycloakManager, i18nFolderName]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: (mAppService: MicroAppService, httpBackend: HttpBackendService) => mAppService.init(httpBackend),\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [MicroAppService, HttpBackendService]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadPlugins,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: i18nFolderName,\r\n\t\t\t\tuseValue: 'host'\r\n\t\t\t}\r\n\t\t]\r\n\t};\r\n\r\n\tbootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err));\r\n};\r\n","export const appComponentLoader = async () => {\r\n\tconst { AppComponent } = await import('./app.component');\r\n\treturn AppComponent;\r\n};","import { Apps } from 'aril/boot/config/apps';\r\nimport { StyleLoaderService } from 'aril/util/loaders';\r\n\r\nexport function loadStyles(styleLoaderService: StyleLoaderService, appName: Apps): () => Promise<any> {\r\n\tconst styles = [\r\n\t\t'layout.css',\r\n\t\t'ui.common.css',\r\n\t\t'preloading.css',\r\n\t\t'primeng.min.css',\r\n\t\t'dx.fluent.saas.light.css',\r\n\t\t`assets/${appName}/styles/primeflex/primeflex.min.css`,\r\n\t\t`assets/${appName}/styles/primeicons/primeicons.css`\r\n\t];\r\n\r\n\tswitch (appName) {\r\n\t\tcase Apps.HES:\r\n\t\tcase Apps.CTS:\r\n\t\tcase Apps.SIS:\r\n\t\t\tstyles.push('theme.light.lena.css');\r\n\t\t\tbreak;\r\n\t\tcase Apps.CRM:\r\n\t\tcase Apps.BILLING:\r\n\t\tcase Apps.PAYMENT:\r\n\t\tcase Apps.WDM:\r\n\t\tcase Apps.MNG:\r\n\t\t\tstyles.push('theme.light.thor.css');\r\n\t\t\tbreak;\r\n\t\tcase Apps.MW:\r\n\t\t\tstyles.push('theme.light.yeap.css');\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tstyles.push('theme.light.indigo.css');\r\n\t}\r\n\r\n\tif ((<any>globalThis).isHostMode) return () => Promise.resolve();\r\n\r\n\treturn () => styleLoaderService.load(styles);\r\n}\r\n","import { provideHttpClient, withInterceptors } from '@angular/common/http';\r\nimport { APP_INITIALIZER, ApplicationConfig, importProvidersFrom } from '@angular/core';\r\nimport { createCustomElement } from '@angular/elements';\r\nimport { createApplication } from '@angular/platform-browser';\r\nimport { provideAnimations } from '@angular/platform-browser/animations';\r\nimport {\r\n\tRoutes,\r\n\tprovideRouter,\r\n\twithComponentInputBinding,\r\n\twithHashLocation,\r\n\twithViewTransitions\r\n} from '@angular/router';\r\n\r\nimport { ConfirmationService, MenuItem, MessageService } from 'primeng/api';\r\n\r\nimport { KeycloakAngularModule } from 'keycloak-angular';\r\n\r\nimport { loadApiConfigs, setApiConfigOnMFEMode } from 'aril/boot/config/api';\r\nimport { Apps } from 'aril/boot/config/apps';\r\nimport { getNgZone, loadPlugins } from 'aril/boot/config/plugins';\r\nimport { HttpBackendService, stateMachineInterceptor } from 'aril/http';\r\nimport { i18nFolderName, i18nModule } from 'aril/i18n';\r\nimport { KeycloakManager, authInterceptor } from 'aril/keycloak';\r\nimport { StyleLoaderService } from 'aril/util/loaders';\r\n\r\nimport { appComponentLoader } from './appComponentLoader';\r\nimport { loadStyles } from './loadStyles';\r\n\r\nexport var appName: Apps;\r\nexport var menuItems: MenuItem[] = [];\r\n\r\nexport const boot = (_appName: Apps, _routes: Routes, _menuItems: MenuItem[]) => {\r\n\tif (customElements.get(`app-${_appName}`)) return;\r\n\r\n\tappName = _appName;\r\n\tmenuItems = _menuItems;\r\n\r\n\tconst appBootConfig: ApplicationConfig = {\r\n\t\tproviders: [\r\n\t\t\tprovideAnimations(),\r\n\t\t\tprovideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),\r\n\t\t\tprovideRouter(_routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),\r\n\t\t\timportProvidersFrom(i18nModule, KeycloakAngularModule),\r\n\t\t\tgetNgZone(),\r\n\t\t\tMessageService,\r\n\t\t\tConfirmationService,\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: (<any>globalThis).isHostMode ? setApiConfigOnMFEMode : loadApiConfigs,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService, KeycloakManager, i18nFolderName]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadPlugins,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadStyles,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [StyleLoaderService, i18nFolderName]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: i18nFolderName,\r\n\t\t\t\tuseValue: _appName\r\n\t\t\t}\r\n\t\t]\r\n\t};\r\n\r\n\tcreateApplication(appBootConfig).then((appRef) => {\r\n\t\tappComponentLoader().then((AppComponent) => {\r\n\t\t\tconst app = createCustomElement(AppComponent, { injector: appRef.injector });\r\n\t\t\tcustomElements.define(`app-${appName}`, app);\r\n\t\t});\r\n\t});\r\n};\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["appName","boot"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;MAca,YAAY,CAAA;IACxB,WAAY,CAAA,MAAc,EAAE,aAA4B,EAAA;AACjD,QAAA,UAAW,CAAC,UAAU,GAAGA,SAAO,CAAC;AACjC,QAAA,UAAW,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AACtC,QAAA,UAAW,CAAC,UAAU,GAAG,IAAI,CAAC;QAEpC,aAAa,CAAC,SAAS,CAAC,qBAAqB,EAAE,CAAC,IAAS,KAAI;AAC5D,YAAA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChC,aAAa,CAAC,OAAO,CAAC;AACrB,gBAAA,IAAI,EAAE,gBAAgB;AACtB,gBAAA,IAAI,EAAE,IAAI;AACV,aAAA,CAAC,CAAC;AACJ,SAAC,CAAC,CAAC;KACH;8GAbW,YAAY,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,aAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAHd,CAA6B,2BAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACf,kBAAkB,EAAA,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BAAA,KAAK,EAAE,IAAI;gBACX,IAAI,EAAE,CAAC,kBAAkB,CAAC;AAC1B,aAAA;AACD,YAAA;AACC,gBAAA,OAAO,EAAE,eAAe;AACxB,gBAAA,UAAU,EAAE,UAAU;AACtB,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,IAAI,EAAE,CAAC,kBAAkB,EAAE,cAAc,CAAC;AAC1C,aAAA;AACD,YAAA;AACC,gBAAA,OAAO,EAAE,cAAc;AACvB,gBAAA,QAAQ,EAAE,QAAQ;AAClB,aAAA;AACD,SAAA;KACD,CAAC;IAEF,iBAAiB,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,KAAI;AAChD,QAAA,kBAAkB,EAAE,CAAC,IAAI,CAAC,CAAC,YAAY,KAAI;AAC1C,YAAA,MAAM,GAAG,GAAG,mBAAmB,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC7E,cAAc,CAAC,MAAM,CAAC,CAAA,IAAA,EAAO,OAAO,CAAE,CAAA,EAAE,GAAG,CAAC,CAAC;AAC9C,SAAC,CAAC,CAAC;AACJ,KAAC,CAAC,CAAC;AACJ,CAAC;;AC7ED;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"aril.mjs","sources":["../../projects/aril/boot/host/src/app.component.ts","../../projects/aril/boot/host/src/bootstrap.ts","../../projects/aril/boot/mfe/src/appComponentLoader.ts","../../projects/aril/boot/mfe/src/loadStyles.ts","../../projects/aril/boot/mfe/src/bootstrap.ts","../../projects/aril/aril.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport { Component, NgZone, inject } from '@angular/core';\r\nimport { Router, RouterOutlet } from '@angular/router';\r\n\r\nimport { AppLayoutComponent } from 'aril/theme/layout';\r\nimport { PubSubService } from 'aril/util/pub-sub';\r\nimport { appName } from './bootstrap';\r\n\r\n@Component({\r\n\tstandalone: true,\r\n\tselector: 'aril-root',\r\n\ttemplate: ` <app-layout></app-layout> `,\r\n\timports: [RouterOutlet, AppLayoutComponent]\r\n})\r\nexport class AppComponent {\r\n\tconstructor(router: Router, pubSubService: PubSubService) {\r\n\t\t(<any>globalThis).activeHost = appName;\r\n\t\t(<any>globalThis).hostZone = inject(NgZone);\r\n\t\t(<any>globalThis).isHostMode = true;\r\n\r\n\t\tpubSubService.subscribe('navigateBetweenApps', (data: any) => {\r\n\t\t\trouter.navigateByUrl(data.path);\r\n\t\t\tpubSubService.publish({\r\n\t\t\t\tname: 'navigateInApps',\r\n\t\t\t\tdata: data\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n}\r\n","import { provideHttpClient, withInterceptors } from '@angular/common/http';\r\nimport { APP_INITIALIZER, ApplicationConfig, importProvidersFrom } from '@angular/core';\r\nimport { bootstrapApplication } from '@angular/platform-browser';\r\nimport { provideAnimations } from '@angular/platform-browser/animations';\r\nimport {\r\n\tRouteReuseStrategy,\r\n\tRoutes,\r\n\tprovideRouter,\r\n\twithComponentInputBinding,\r\n\twithHashLocation,\r\n\twithViewTransitions\r\n} from '@angular/router';\r\n\r\nimport { ConfirmationService, MessageService } from 'primeng/api';\r\n\r\nimport { KeycloakAngularModule } from 'keycloak-angular';\r\n\r\nimport { loadApiConfigs } from 'aril/boot/config/api';\r\nimport { Apps, ArilReuseStrategy, MicroAppService } from 'aril/boot/config/apps';\r\nimport { loadPlugins } from 'aril/boot/config/plugins';\r\nimport { HttpBackendService, stateMachineInterceptor } from 'aril/http';\r\nimport { i18nFolderName, i18nModule } from 'aril/i18n';\r\nimport { KeycloakManager, authInterceptor } from 'aril/keycloak';\r\n\r\nimport { AppComponent } from './app.component';\r\n\r\nexport var appName: Apps;\r\n\r\nexport const boot = (_appName: Apps, routes: Routes) => {\r\n\tappName = _appName;\r\n\tconst appConfig: ApplicationConfig = {\r\n\t\tproviders: [\r\n\t\t\tprovideAnimations(),\r\n\t\t\tprovideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),\r\n\t\t\tprovideRouter(routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),\r\n\t\t\t{ provide: RouteReuseStrategy, useClass: ArilReuseStrategy },\r\n\t\t\timportProvidersFrom(i18nModule, KeycloakAngularModule),\r\n\t\t\tMessageService,\r\n\t\t\tConfirmationService,\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadApiConfigs,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService, KeycloakManager, i18nFolderName]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: (mAppService: MicroAppService, httpBackend: HttpBackendService) => mAppService.init(httpBackend),\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [MicroAppService, HttpBackendService]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadPlugins,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: i18nFolderName,\r\n\t\t\t\tuseValue: 'host'\r\n\t\t\t}\r\n\t\t]\r\n\t};\r\n\r\n\tbootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err));\r\n};\r\n","export const appComponentLoader = async () => {\r\n\tconst { AppComponent } = await import('./app.component');\r\n\treturn AppComponent;\r\n};","import { Apps } from 'aril/boot/config/apps';\r\nimport { StyleLoaderService } from 'aril/util/loaders';\r\n\r\nexport function loadStyles(styleLoaderService: StyleLoaderService, appName: Apps): () => Promise<any> {\r\n\tconst styles = [\r\n\t\t'layout.css',\r\n\t\t'ui.common.css',\r\n\t\t'preloading.css',\r\n\t\t'primeng.min.css',\r\n\t\t'dx.fluent.saas.light.css',\r\n\t\t`assets/${appName}/styles/primeflex/primeflex.min.css`,\r\n\t\t`assets/${appName}/styles/primeicons/primeicons.css`\r\n\t];\r\n\r\n\tswitch (appName) {\r\n\t\tcase Apps.HES:\r\n\t\tcase Apps.CTS:\r\n\t\tcase Apps.SIS:\r\n\t\t\tstyles.push('theme.light.lena.css');\r\n\t\t\tbreak;\r\n\t\tcase Apps.CRM:\r\n\t\tcase Apps.BILLING:\r\n\t\tcase Apps.PAYMENT:\r\n\t\tcase Apps.WDM:\r\n\t\tcase Apps.MNG:\r\n\t\t\tstyles.push('theme.light.thor.css');\r\n\t\t\tbreak;\r\n\t\tcase Apps.MW:\r\n\t\t\tstyles.push('theme.light.yeap.css');\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tstyles.push('theme.light.indigo.css');\r\n\t}\r\n\r\n\tif ((<any>globalThis).isHostMode) return () => Promise.resolve();\r\n\r\n\treturn () => styleLoaderService.load(styles);\r\n}\r\n","import { provideHttpClient, withInterceptors } from '@angular/common/http';\r\nimport { APP_INITIALIZER, ApplicationConfig, importProvidersFrom } from '@angular/core';\r\nimport { createCustomElement } from '@angular/elements';\r\nimport { createApplication } from '@angular/platform-browser';\r\nimport { provideAnimations } from '@angular/platform-browser/animations';\r\nimport {\r\n\tRouteReuseStrategy,\r\n\tRoutes,\r\n\tprovideRouter,\r\n\twithComponentInputBinding,\r\n\twithHashLocation,\r\n\twithViewTransitions\r\n} from '@angular/router';\r\n\r\nimport { ConfirmationService, MenuItem, MessageService } from 'primeng/api';\r\n\r\nimport { KeycloakAngularModule } from 'keycloak-angular';\r\n\r\nimport { loadApiConfigs, setApiConfigOnMFEMode } from 'aril/boot/config/api';\r\nimport { Apps, ArilReuseStrategy } from 'aril/boot/config/apps';\r\nimport { getNgZone, loadPlugins } from 'aril/boot/config/plugins';\r\nimport { HttpBackendService, stateMachineInterceptor } from 'aril/http';\r\nimport { i18nFolderName, i18nModule } from 'aril/i18n';\r\nimport { KeycloakManager, authInterceptor } from 'aril/keycloak';\r\nimport { StyleLoaderService } from 'aril/util/loaders';\r\n\r\nimport { appComponentLoader } from './appComponentLoader';\r\nimport { loadStyles } from './loadStyles';\r\n\r\nexport var appName: Apps;\r\nexport var menuItems: MenuItem[] = [];\r\n\r\nexport const boot = (_appName: Apps, _routes: Routes, _menuItems: MenuItem[]) => {\r\n\tif (customElements.get(`app-${_appName}`)) return;\r\n\r\n\tappName = _appName;\r\n\tmenuItems = _menuItems;\r\n\r\n\tconst appBootConfig: ApplicationConfig = {\r\n\t\tproviders: [\r\n\t\t\tprovideAnimations(),\r\n\t\t\tprovideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),\r\n\t\t\tprovideRouter(_routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),\r\n\t\t\t{ provide: RouteReuseStrategy, useClass: ArilReuseStrategy },\r\n\t\t\timportProvidersFrom(i18nModule, KeycloakAngularModule),\r\n\t\t\tgetNgZone(),\r\n\t\t\tMessageService,\r\n\t\t\tConfirmationService,\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: (<any>globalThis).isHostMode ? setApiConfigOnMFEMode : loadApiConfigs,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService, KeycloakManager, i18nFolderName]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadPlugins,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadStyles,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [StyleLoaderService, i18nFolderName]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: i18nFolderName,\r\n\t\t\t\tuseValue: _appName\r\n\t\t\t}\r\n\t\t]\r\n\t};\r\n\r\n\tcreateApplication(appBootConfig).then((appRef) => {\r\n\t\tappComponentLoader().then((AppComponent) => {\r\n\t\t\tconst app = createCustomElement(AppComponent, { injector: appRef.injector });\r\n\t\t\tcustomElements.define(`app-${appName}`, app);\r\n\t\t});\r\n\t});\r\n};\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["appName","boot"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;MAca,YAAY,CAAA;IACxB,WAAY,CAAA,MAAc,EAAE,aAA4B,EAAA;AACjD,QAAA,UAAW,CAAC,UAAU,GAAGA,SAAO,CAAC;AACjC,QAAA,UAAW,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AACtC,QAAA,UAAW,CAAC,UAAU,GAAG,IAAI,CAAC;QAEpC,aAAa,CAAC,SAAS,CAAC,qBAAqB,EAAE,CAAC,IAAS,KAAI;AAC5D,YAAA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChC,aAAa,CAAC,OAAO,CAAC;AACrB,gBAAA,IAAI,EAAE,gBAAgB;AACtB,gBAAA,IAAI,EAAE,IAAI;AACV,aAAA,CAAC,CAAC;AACJ,SAAC,CAAC,CAAC;KACH;8GAbW,YAAY,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,aAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAHd,CAA6B,2BAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACf,kBAAkB,EAAA,QAAA,EAAA,YAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAE9B,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,SAAS;AAAC,Y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,gBAAA,UAAU,EAAE,WAAW;AACvB,gBAAA,KAAK,EAAE,IAAI;gBACX,IAAI,EAAE,CAAC,kBAAkB,CAAC;AAC1B,aAAA;AACD,YAAA;AACC,gBAAA,OAAO,EAAE,eAAe;AACxB,gBAAA,UAAU,EAAE,UAAU;AACtB,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,IAAI,EAAE,CAAC,kBAAkB,EAAE,cAAc,CAAC;AAC1C,aAAA;AACD,YAAA;AACC,gBAAA,OAAO,EAAE,cAAc;AACvB,gBAAA,QAAQ,EAAE,QAAQ;AAClB,aAAA;AACD,SAAA;KACD,CAAC;IAEF,iBAAiB,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,KAAI;AAChD,QAAA,kBAAkB,EAAE,CAAC,IAAI,CAAC,CAAC,YAAY,KAAI;AAC1C,YAAA,MAAM,GAAG,GAAG,mBAAmB,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC7E,cAAc,CAAC,MAAM,CAAC,CAAA,IAAA,EAAO,OAAO,CAAE,CAAA,EAAE,GAAG,CAAC,CAAC;AAC9C,SAAC,CAAC,CAAC;AACJ,KAAC,CAAC,CAAC;AACJ,CAAC;;AC/ED;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aril",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.55",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "~17.1.0",
|
|
6
6
|
"@angular/common": "^17.1.0",
|
|
@@ -50,18 +50,18 @@
|
|
|
50
50
|
"esm": "./esm2022/http/aril-http.mjs",
|
|
51
51
|
"default": "./fesm2022/aril-http.mjs"
|
|
52
52
|
},
|
|
53
|
-
"./i18n": {
|
|
54
|
-
"types": "./i18n/index.d.ts",
|
|
55
|
-
"esm2022": "./esm2022/i18n/aril-i18n.mjs",
|
|
56
|
-
"esm": "./esm2022/i18n/aril-i18n.mjs",
|
|
57
|
-
"default": "./fesm2022/aril-i18n.mjs"
|
|
58
|
-
},
|
|
59
53
|
"./keycloak": {
|
|
60
54
|
"types": "./keycloak/index.d.ts",
|
|
61
55
|
"esm2022": "./esm2022/keycloak/aril-keycloak.mjs",
|
|
62
56
|
"esm": "./esm2022/keycloak/aril-keycloak.mjs",
|
|
63
57
|
"default": "./fesm2022/aril-keycloak.mjs"
|
|
64
58
|
},
|
|
59
|
+
"./i18n": {
|
|
60
|
+
"types": "./i18n/index.d.ts",
|
|
61
|
+
"esm2022": "./esm2022/i18n/aril-i18n.mjs",
|
|
62
|
+
"esm": "./esm2022/i18n/aril-i18n.mjs",
|
|
63
|
+
"default": "./fesm2022/aril-i18n.mjs"
|
|
64
|
+
},
|
|
65
65
|
"./theme": {
|
|
66
66
|
"types": "./theme/index.d.ts",
|
|
67
67
|
"esm2022": "./esm2022/theme/aril-theme.mjs",
|
|
@@ -74,18 +74,18 @@
|
|
|
74
74
|
"esm": "./esm2022/ui/aril-ui.mjs",
|
|
75
75
|
"default": "./fesm2022/aril-ui.mjs"
|
|
76
76
|
},
|
|
77
|
-
"./util": {
|
|
78
|
-
"types": "./util/index.d.ts",
|
|
79
|
-
"esm2022": "./esm2022/util/aril-util.mjs",
|
|
80
|
-
"esm": "./esm2022/util/aril-util.mjs",
|
|
81
|
-
"default": "./fesm2022/aril-util.mjs"
|
|
82
|
-
},
|
|
83
77
|
"./ui-business": {
|
|
84
78
|
"types": "./ui-business/index.d.ts",
|
|
85
79
|
"esm2022": "./esm2022/ui-business/aril-ui-business.mjs",
|
|
86
80
|
"esm": "./esm2022/ui-business/aril-ui-business.mjs",
|
|
87
81
|
"default": "./fesm2022/aril-ui-business.mjs"
|
|
88
82
|
},
|
|
83
|
+
"./util": {
|
|
84
|
+
"types": "./util/index.d.ts",
|
|
85
|
+
"esm2022": "./esm2022/util/aril-util.mjs",
|
|
86
|
+
"esm": "./esm2022/util/aril-util.mjs",
|
|
87
|
+
"default": "./fesm2022/aril-util.mjs"
|
|
88
|
+
},
|
|
89
89
|
"./boot/host": {
|
|
90
90
|
"types": "./boot/host/index.d.ts",
|
|
91
91
|
"esm2022": "./esm2022/boot/host/aril-boot-host.mjs",
|
|
@@ -158,6 +158,12 @@
|
|
|
158
158
|
"esm": "./esm2022/ui/dxEditor/aril-ui-dxEditor.mjs",
|
|
159
159
|
"default": "./fesm2022/aril-ui-dxEditor.mjs"
|
|
160
160
|
},
|
|
161
|
+
"./ui/fileUpload": {
|
|
162
|
+
"types": "./ui/fileUpload/index.d.ts",
|
|
163
|
+
"esm2022": "./esm2022/ui/fileUpload/aril-ui-fileUpload.mjs",
|
|
164
|
+
"esm": "./esm2022/ui/fileUpload/aril-ui-fileUpload.mjs",
|
|
165
|
+
"default": "./fesm2022/aril-ui-fileUpload.mjs"
|
|
166
|
+
},
|
|
161
167
|
"./ui/dxField": {
|
|
162
168
|
"types": "./ui/dxField/index.d.ts",
|
|
163
169
|
"esm2022": "./esm2022/ui/dxField/aril-ui-dxField.mjs",
|
|
@@ -170,12 +176,6 @@
|
|
|
170
176
|
"esm": "./esm2022/ui/field/aril-ui-field.mjs",
|
|
171
177
|
"default": "./fesm2022/aril-ui-field.mjs"
|
|
172
178
|
},
|
|
173
|
-
"./ui/fileUpload": {
|
|
174
|
-
"types": "./ui/fileUpload/index.d.ts",
|
|
175
|
-
"esm2022": "./esm2022/ui/fileUpload/aril-ui-fileUpload.mjs",
|
|
176
|
-
"esm": "./esm2022/ui/fileUpload/aril-ui-fileUpload.mjs",
|
|
177
|
-
"default": "./fesm2022/aril-ui-fileUpload.mjs"
|
|
178
|
-
},
|
|
179
179
|
"./ui/form": {
|
|
180
180
|
"types": "./ui/form/index.d.ts",
|
|
181
181
|
"esm2022": "./esm2022/ui/form/aril-ui-form.mjs",
|
|
@@ -188,18 +188,18 @@
|
|
|
188
188
|
"esm": "./esm2022/ui/img-viewer/aril-ui-img-viewer.mjs",
|
|
189
189
|
"default": "./fesm2022/aril-ui-img-viewer.mjs"
|
|
190
190
|
},
|
|
191
|
-
"./ui/loader": {
|
|
192
|
-
"types": "./ui/loader/index.d.ts",
|
|
193
|
-
"esm2022": "./esm2022/ui/loader/aril-ui-loader.mjs",
|
|
194
|
-
"esm": "./esm2022/ui/loader/aril-ui-loader.mjs",
|
|
195
|
-
"default": "./fesm2022/aril-ui-loader.mjs"
|
|
196
|
-
},
|
|
197
191
|
"./ui/lib": {
|
|
198
192
|
"types": "./ui/lib/index.d.ts",
|
|
199
193
|
"esm2022": "./esm2022/ui/lib/aril-ui-lib.mjs",
|
|
200
194
|
"esm": "./esm2022/ui/lib/aril-ui-lib.mjs",
|
|
201
195
|
"default": "./fesm2022/aril-ui-lib.mjs"
|
|
202
196
|
},
|
|
197
|
+
"./ui/loader": {
|
|
198
|
+
"types": "./ui/loader/index.d.ts",
|
|
199
|
+
"esm2022": "./esm2022/ui/loader/aril-ui-loader.mjs",
|
|
200
|
+
"esm": "./esm2022/ui/loader/aril-ui-loader.mjs",
|
|
201
|
+
"default": "./fesm2022/aril-ui-loader.mjs"
|
|
202
|
+
},
|
|
203
203
|
"./ui/mask": {
|
|
204
204
|
"types": "./ui/mask/index.d.ts",
|
|
205
205
|
"esm2022": "./esm2022/ui/mask/aril-ui-mask.mjs",
|
|
@@ -218,18 +218,18 @@
|
|
|
218
218
|
"esm": "./esm2022/ui/number/aril-ui-number.mjs",
|
|
219
219
|
"default": "./fesm2022/aril-ui-number.mjs"
|
|
220
220
|
},
|
|
221
|
-
"./ui/operation-types-dialog": {
|
|
222
|
-
"types": "./ui/operation-types-dialog/index.d.ts",
|
|
223
|
-
"esm2022": "./esm2022/ui/operation-types-dialog/aril-ui-operation-types-dialog.mjs",
|
|
224
|
-
"esm": "./esm2022/ui/operation-types-dialog/aril-ui-operation-types-dialog.mjs",
|
|
225
|
-
"default": "./fesm2022/aril-ui-operation-types-dialog.mjs"
|
|
226
|
-
},
|
|
227
221
|
"./ui/overlayPanel": {
|
|
228
222
|
"types": "./ui/overlayPanel/index.d.ts",
|
|
229
223
|
"esm2022": "./esm2022/ui/overlayPanel/aril-ui-overlayPanel.mjs",
|
|
230
224
|
"esm": "./esm2022/ui/overlayPanel/aril-ui-overlayPanel.mjs",
|
|
231
225
|
"default": "./fesm2022/aril-ui-overlayPanel.mjs"
|
|
232
226
|
},
|
|
227
|
+
"./ui/operation-types-dialog": {
|
|
228
|
+
"types": "./ui/operation-types-dialog/index.d.ts",
|
|
229
|
+
"esm2022": "./esm2022/ui/operation-types-dialog/aril-ui-operation-types-dialog.mjs",
|
|
230
|
+
"esm": "./esm2022/ui/operation-types-dialog/aril-ui-operation-types-dialog.mjs",
|
|
231
|
+
"default": "./fesm2022/aril-ui-operation-types-dialog.mjs"
|
|
232
|
+
},
|
|
233
233
|
"./ui/panel": {
|
|
234
234
|
"types": "./ui/panel/index.d.ts",
|
|
235
235
|
"esm2022": "./esm2022/ui/panel/aril-ui-panel.mjs",
|
|
@@ -242,18 +242,18 @@
|
|
|
242
242
|
"esm": "./esm2022/ui/password/aril-ui-password.mjs",
|
|
243
243
|
"default": "./fesm2022/aril-ui-password.mjs"
|
|
244
244
|
},
|
|
245
|
-
"./ui/progressbar": {
|
|
246
|
-
"types": "./ui/progressbar/index.d.ts",
|
|
247
|
-
"esm2022": "./esm2022/ui/progressbar/aril-ui-progressbar.mjs",
|
|
248
|
-
"esm": "./esm2022/ui/progressbar/aril-ui-progressbar.mjs",
|
|
249
|
-
"default": "./fesm2022/aril-ui-progressbar.mjs"
|
|
250
|
-
},
|
|
251
245
|
"./ui/pdf-viewer": {
|
|
252
246
|
"types": "./ui/pdf-viewer/index.d.ts",
|
|
253
247
|
"esm2022": "./esm2022/ui/pdf-viewer/aril-ui-pdf-viewer.mjs",
|
|
254
248
|
"esm": "./esm2022/ui/pdf-viewer/aril-ui-pdf-viewer.mjs",
|
|
255
249
|
"default": "./fesm2022/aril-ui-pdf-viewer.mjs"
|
|
256
250
|
},
|
|
251
|
+
"./ui/progressbar": {
|
|
252
|
+
"types": "./ui/progressbar/index.d.ts",
|
|
253
|
+
"esm2022": "./esm2022/ui/progressbar/aril-ui-progressbar.mjs",
|
|
254
|
+
"esm": "./esm2022/ui/progressbar/aril-ui-progressbar.mjs",
|
|
255
|
+
"default": "./fesm2022/aril-ui-progressbar.mjs"
|
|
256
|
+
},
|
|
257
257
|
"./ui/radioButton": {
|
|
258
258
|
"types": "./ui/radioButton/index.d.ts",
|
|
259
259
|
"esm2022": "./esm2022/ui/radioButton/aril-ui-radioButton.mjs",
|
|
@@ -308,12 +308,6 @@
|
|
|
308
308
|
"esm": "./esm2022/ui/textArea/aril-ui-textArea.mjs",
|
|
309
309
|
"default": "./fesm2022/aril-ui-textArea.mjs"
|
|
310
310
|
},
|
|
311
|
-
"./ui/tree": {
|
|
312
|
-
"types": "./ui/tree/index.d.ts",
|
|
313
|
-
"esm2022": "./esm2022/ui/tree/aril-ui-tree.mjs",
|
|
314
|
-
"esm": "./esm2022/ui/tree/aril-ui-tree.mjs",
|
|
315
|
-
"default": "./fesm2022/aril-ui-tree.mjs"
|
|
316
|
-
},
|
|
317
311
|
"./ui/toggle-button": {
|
|
318
312
|
"types": "./ui/toggle-button/index.d.ts",
|
|
319
313
|
"esm2022": "./esm2022/ui/toggle-button/aril-ui-toggle-button.mjs",
|
|
@@ -326,23 +320,77 @@
|
|
|
326
320
|
"esm": "./esm2022/ui/tooltip/aril-ui-tooltip.mjs",
|
|
327
321
|
"default": "./fesm2022/aril-ui-tooltip.mjs"
|
|
328
322
|
},
|
|
323
|
+
"./ui/tree": {
|
|
324
|
+
"types": "./ui/tree/index.d.ts",
|
|
325
|
+
"esm2022": "./esm2022/ui/tree/aril-ui-tree.mjs",
|
|
326
|
+
"esm": "./esm2022/ui/tree/aril-ui-tree.mjs",
|
|
327
|
+
"default": "./fesm2022/aril-ui-tree.mjs"
|
|
328
|
+
},
|
|
329
329
|
"./ui/treeTable": {
|
|
330
330
|
"types": "./ui/treeTable/index.d.ts",
|
|
331
331
|
"esm2022": "./esm2022/ui/treeTable/aril-ui-treeTable.mjs",
|
|
332
332
|
"esm": "./esm2022/ui/treeTable/aril-ui-treeTable.mjs",
|
|
333
333
|
"default": "./fesm2022/aril-ui-treeTable.mjs"
|
|
334
334
|
},
|
|
335
|
+
"./ui/value": {
|
|
336
|
+
"types": "./ui/value/index.d.ts",
|
|
337
|
+
"esm2022": "./esm2022/ui/value/aril-ui-value.mjs",
|
|
338
|
+
"esm": "./esm2022/ui/value/aril-ui-value.mjs",
|
|
339
|
+
"default": "./fesm2022/aril-ui-value.mjs"
|
|
340
|
+
},
|
|
341
|
+
"./ui-business/assetPicker": {
|
|
342
|
+
"types": "./ui-business/assetPicker/index.d.ts",
|
|
343
|
+
"esm2022": "./esm2022/ui-business/assetPicker/aril-ui-business-assetPicker.mjs",
|
|
344
|
+
"esm": "./esm2022/ui-business/assetPicker/aril-ui-business-assetPicker.mjs",
|
|
345
|
+
"default": "./fesm2022/aril-ui-business-assetPicker.mjs"
|
|
346
|
+
},
|
|
335
347
|
"./ui/treeSelect": {
|
|
336
348
|
"types": "./ui/treeSelect/index.d.ts",
|
|
337
349
|
"esm2022": "./esm2022/ui/treeSelect/aril-ui-treeSelect.mjs",
|
|
338
350
|
"esm": "./esm2022/ui/treeSelect/aril-ui-treeSelect.mjs",
|
|
339
351
|
"default": "./fesm2022/aril-ui-treeSelect.mjs"
|
|
340
352
|
},
|
|
341
|
-
"./ui/
|
|
342
|
-
"types": "./ui/
|
|
343
|
-
"esm2022": "./esm2022/ui/
|
|
344
|
-
"esm": "./esm2022/ui/
|
|
345
|
-
"default": "./fesm2022/aril-ui-
|
|
353
|
+
"./ui-business/detailed-overlay-panel": {
|
|
354
|
+
"types": "./ui-business/detailed-overlay-panel/index.d.ts",
|
|
355
|
+
"esm2022": "./esm2022/ui-business/detailed-overlay-panel/aril-ui-business-detailed-overlay-panel.mjs",
|
|
356
|
+
"esm": "./esm2022/ui-business/detailed-overlay-panel/aril-ui-business-detailed-overlay-panel.mjs",
|
|
357
|
+
"default": "./fesm2022/aril-ui-business-detailed-overlay-panel.mjs"
|
|
358
|
+
},
|
|
359
|
+
"./ui-business/enumPicker": {
|
|
360
|
+
"types": "./ui-business/enumPicker/index.d.ts",
|
|
361
|
+
"esm2022": "./esm2022/ui-business/enumPicker/aril-ui-business-enumPicker.mjs",
|
|
362
|
+
"esm": "./esm2022/ui-business/enumPicker/aril-ui-business-enumPicker.mjs",
|
|
363
|
+
"default": "./fesm2022/aril-ui-business-enumPicker.mjs"
|
|
364
|
+
},
|
|
365
|
+
"./ui-business/multiple-ref-value": {
|
|
366
|
+
"types": "./ui-business/multiple-ref-value/index.d.ts",
|
|
367
|
+
"esm2022": "./esm2022/ui-business/multiple-ref-value/aril-ui-business-multiple-ref-value.mjs",
|
|
368
|
+
"esm": "./esm2022/ui-business/multiple-ref-value/aril-ui-business-multiple-ref-value.mjs",
|
|
369
|
+
"default": "./fesm2022/aril-ui-business-multiple-ref-value.mjs"
|
|
370
|
+
},
|
|
371
|
+
"./ui-business/ref-value": {
|
|
372
|
+
"types": "./ui-business/ref-value/index.d.ts",
|
|
373
|
+
"esm2022": "./esm2022/ui-business/ref-value/aril-ui-business-ref-value.mjs",
|
|
374
|
+
"esm": "./esm2022/ui-business/ref-value/aril-ui-business-ref-value.mjs",
|
|
375
|
+
"default": "./fesm2022/aril-ui-business-ref-value.mjs"
|
|
376
|
+
},
|
|
377
|
+
"./ui-business/rolePicker": {
|
|
378
|
+
"types": "./ui-business/rolePicker/index.d.ts",
|
|
379
|
+
"esm2022": "./esm2022/ui-business/rolePicker/aril-ui-business-rolePicker.mjs",
|
|
380
|
+
"esm": "./esm2022/ui-business/rolePicker/aril-ui-business-rolePicker.mjs",
|
|
381
|
+
"default": "./fesm2022/aril-ui-business-rolePicker.mjs"
|
|
382
|
+
},
|
|
383
|
+
"./ui-business/operation-types-dialog": {
|
|
384
|
+
"types": "./ui-business/operation-types-dialog/index.d.ts",
|
|
385
|
+
"esm2022": "./esm2022/ui-business/operation-types-dialog/aril-ui-business-operation-types-dialog.mjs",
|
|
386
|
+
"esm": "./esm2022/ui-business/operation-types-dialog/aril-ui-business-operation-types-dialog.mjs",
|
|
387
|
+
"default": "./fesm2022/aril-ui-business-operation-types-dialog.mjs"
|
|
388
|
+
},
|
|
389
|
+
"./ui-business/userPicker": {
|
|
390
|
+
"types": "./ui-business/userPicker/index.d.ts",
|
|
391
|
+
"esm2022": "./esm2022/ui-business/userPicker/aril-ui-business-userPicker.mjs",
|
|
392
|
+
"esm": "./esm2022/ui-business/userPicker/aril-ui-business-userPicker.mjs",
|
|
393
|
+
"default": "./fesm2022/aril-ui-business-userPicker.mjs"
|
|
346
394
|
},
|
|
347
395
|
"./util/block": {
|
|
348
396
|
"types": "./util/block/index.d.ts",
|
|
@@ -374,77 +422,23 @@
|
|
|
374
422
|
"esm": "./esm2022/util/loaders/aril-util-loaders.mjs",
|
|
375
423
|
"default": "./fesm2022/aril-util-loaders.mjs"
|
|
376
424
|
},
|
|
377
|
-
"./util/unwrap": {
|
|
378
|
-
"types": "./util/unwrap/index.d.ts",
|
|
379
|
-
"esm2022": "./esm2022/util/unwrap/aril-util-unwrap.mjs",
|
|
380
|
-
"esm": "./esm2022/util/unwrap/aril-util-unwrap.mjs",
|
|
381
|
-
"default": "./fesm2022/aril-util-unwrap.mjs"
|
|
382
|
-
},
|
|
383
|
-
"./util/pub-sub": {
|
|
384
|
-
"types": "./util/pub-sub/index.d.ts",
|
|
385
|
-
"esm2022": "./esm2022/util/pub-sub/aril-util-pub-sub.mjs",
|
|
386
|
-
"esm": "./esm2022/util/pub-sub/aril-util-pub-sub.mjs",
|
|
387
|
-
"default": "./fesm2022/aril-util-pub-sub.mjs"
|
|
388
|
-
},
|
|
389
425
|
"./util/primitive-extensions": {
|
|
390
426
|
"types": "./util/primitive-extensions/index.d.ts",
|
|
391
427
|
"esm2022": "./esm2022/util/primitive-extensions/aril-util-primitive-extensions.mjs",
|
|
392
428
|
"esm": "./esm2022/util/primitive-extensions/aril-util-primitive-extensions.mjs",
|
|
393
429
|
"default": "./fesm2022/aril-util-primitive-extensions.mjs"
|
|
394
430
|
},
|
|
395
|
-
"./
|
|
396
|
-
"types": "./
|
|
397
|
-
"esm2022": "./esm2022/
|
|
398
|
-
"esm": "./esm2022/
|
|
399
|
-
"default": "./fesm2022/aril-
|
|
400
|
-
},
|
|
401
|
-
"./ui-business/detailed-overlay-panel": {
|
|
402
|
-
"types": "./ui-business/detailed-overlay-panel/index.d.ts",
|
|
403
|
-
"esm2022": "./esm2022/ui-business/detailed-overlay-panel/aril-ui-business-detailed-overlay-panel.mjs",
|
|
404
|
-
"esm": "./esm2022/ui-business/detailed-overlay-panel/aril-ui-business-detailed-overlay-panel.mjs",
|
|
405
|
-
"default": "./fesm2022/aril-ui-business-detailed-overlay-panel.mjs"
|
|
406
|
-
},
|
|
407
|
-
"./ui-business/multiple-ref-value": {
|
|
408
|
-
"types": "./ui-business/multiple-ref-value/index.d.ts",
|
|
409
|
-
"esm2022": "./esm2022/ui-business/multiple-ref-value/aril-ui-business-multiple-ref-value.mjs",
|
|
410
|
-
"esm": "./esm2022/ui-business/multiple-ref-value/aril-ui-business-multiple-ref-value.mjs",
|
|
411
|
-
"default": "./fesm2022/aril-ui-business-multiple-ref-value.mjs"
|
|
412
|
-
},
|
|
413
|
-
"./ui-business/enumPicker": {
|
|
414
|
-
"types": "./ui-business/enumPicker/index.d.ts",
|
|
415
|
-
"esm2022": "./esm2022/ui-business/enumPicker/aril-ui-business-enumPicker.mjs",
|
|
416
|
-
"esm": "./esm2022/ui-business/enumPicker/aril-ui-business-enumPicker.mjs",
|
|
417
|
-
"default": "./fesm2022/aril-ui-business-enumPicker.mjs"
|
|
418
|
-
},
|
|
419
|
-
"./ui-business/operation-types-dialog": {
|
|
420
|
-
"types": "./ui-business/operation-types-dialog/index.d.ts",
|
|
421
|
-
"esm2022": "./esm2022/ui-business/operation-types-dialog/aril-ui-business-operation-types-dialog.mjs",
|
|
422
|
-
"esm": "./esm2022/ui-business/operation-types-dialog/aril-ui-business-operation-types-dialog.mjs",
|
|
423
|
-
"default": "./fesm2022/aril-ui-business-operation-types-dialog.mjs"
|
|
424
|
-
},
|
|
425
|
-
"./ui-business/ref-value": {
|
|
426
|
-
"types": "./ui-business/ref-value/index.d.ts",
|
|
427
|
-
"esm2022": "./esm2022/ui-business/ref-value/aril-ui-business-ref-value.mjs",
|
|
428
|
-
"esm": "./esm2022/ui-business/ref-value/aril-ui-business-ref-value.mjs",
|
|
429
|
-
"default": "./fesm2022/aril-ui-business-ref-value.mjs"
|
|
430
|
-
},
|
|
431
|
-
"./ui-business/rolePicker": {
|
|
432
|
-
"types": "./ui-business/rolePicker/index.d.ts",
|
|
433
|
-
"esm2022": "./esm2022/ui-business/rolePicker/aril-ui-business-rolePicker.mjs",
|
|
434
|
-
"esm": "./esm2022/ui-business/rolePicker/aril-ui-business-rolePicker.mjs",
|
|
435
|
-
"default": "./fesm2022/aril-ui-business-rolePicker.mjs"
|
|
436
|
-
},
|
|
437
|
-
"./boot/config/plugins": {
|
|
438
|
-
"types": "./boot/config/plugins/index.d.ts",
|
|
439
|
-
"esm2022": "./esm2022/boot/config/plugins/aril-boot-config-plugins.mjs",
|
|
440
|
-
"esm": "./esm2022/boot/config/plugins/aril-boot-config-plugins.mjs",
|
|
441
|
-
"default": "./fesm2022/aril-boot-config-plugins.mjs"
|
|
431
|
+
"./util/pub-sub": {
|
|
432
|
+
"types": "./util/pub-sub/index.d.ts",
|
|
433
|
+
"esm2022": "./esm2022/util/pub-sub/aril-util-pub-sub.mjs",
|
|
434
|
+
"esm": "./esm2022/util/pub-sub/aril-util-pub-sub.mjs",
|
|
435
|
+
"default": "./fesm2022/aril-util-pub-sub.mjs"
|
|
442
436
|
},
|
|
443
|
-
"./
|
|
444
|
-
"types": "./
|
|
445
|
-
"esm2022": "./esm2022/
|
|
446
|
-
"esm": "./esm2022/
|
|
447
|
-
"default": "./fesm2022/aril-
|
|
437
|
+
"./util/unwrap": {
|
|
438
|
+
"types": "./util/unwrap/index.d.ts",
|
|
439
|
+
"esm2022": "./esm2022/util/unwrap/aril-util-unwrap.mjs",
|
|
440
|
+
"esm": "./esm2022/util/unwrap/aril-util-unwrap.mjs",
|
|
441
|
+
"default": "./fesm2022/aril-util-unwrap.mjs"
|
|
448
442
|
},
|
|
449
443
|
"./boot/config/api": {
|
|
450
444
|
"types": "./boot/config/api/index.d.ts",
|
|
@@ -458,6 +452,12 @@
|
|
|
458
452
|
"esm": "./esm2022/boot/config/apps/aril-boot-config-apps.mjs",
|
|
459
453
|
"default": "./fesm2022/aril-boot-config-apps.mjs"
|
|
460
454
|
},
|
|
455
|
+
"./boot/config/plugins": {
|
|
456
|
+
"types": "./boot/config/plugins/index.d.ts",
|
|
457
|
+
"esm2022": "./esm2022/boot/config/plugins/aril-boot-config-plugins.mjs",
|
|
458
|
+
"esm": "./esm2022/boot/config/plugins/aril-boot-config-plugins.mjs",
|
|
459
|
+
"default": "./fesm2022/aril-boot-config-plugins.mjs"
|
|
460
|
+
},
|
|
461
461
|
"./ui/business-components/assetPicker": {
|
|
462
462
|
"types": "./ui/business-components/assetPicker/index.d.ts",
|
|
463
463
|
"esm2022": "./esm2022/ui/business-components/assetPicker/aril-ui-business-components-assetPicker.mjs",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aril-boot-mfe-aril-boot-mfe-WTaS-jzb.mjs","sources":["../../projects/aril/boot/mfe/src/appComponentLoader.ts","../../projects/aril/boot/mfe/src/loadStyles.ts","../../projects/aril/boot/mfe/src/bootstrap.ts","../../projects/aril/boot/mfe/aril-boot-mfe.ts"],"sourcesContent":["export const appComponentLoader = async () => {\r\n\tconst { AppComponent } = await import('./app.component');\r\n\treturn AppComponent;\r\n};","import { Apps } from 'aril/boot/config/apps';\r\nimport { StyleLoaderService } from 'aril/util/loaders';\r\n\r\nexport function loadStyles(styleLoaderService: StyleLoaderService, appName: Apps): () => Promise<any> {\r\n\tconst styles = [\r\n\t\t'layout.css',\r\n\t\t'ui.common.css',\r\n\t\t'preloading.css',\r\n\t\t'primeng.min.css',\r\n\t\t'dx.fluent.saas.light.css',\r\n\t\t`assets/${appName}/styles/primeflex/primeflex.min.css`,\r\n\t\t`assets/${appName}/styles/primeicons/primeicons.css`\r\n\t];\r\n\r\n\tswitch (appName) {\r\n\t\tcase Apps.HES:\r\n\t\tcase Apps.CTS:\r\n\t\tcase Apps.SIS:\r\n\t\t\tstyles.push('theme.light.lena.css');\r\n\t\t\tbreak;\r\n\t\tcase Apps.CRM:\r\n\t\tcase Apps.BILLING:\r\n\t\tcase Apps.PAYMENT:\r\n\t\tcase Apps.WDM:\r\n\t\tcase Apps.MNG:\r\n\t\t\tstyles.push('theme.light.thor.css');\r\n\t\t\tbreak;\r\n\t\tcase Apps.MW:\r\n\t\t\tstyles.push('theme.light.yeap.css');\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tstyles.push('theme.light.indigo.css');\r\n\t}\r\n\r\n\tif ((<any>globalThis).isHostMode) return () => Promise.resolve();\r\n\r\n\treturn () => styleLoaderService.load(styles);\r\n}\r\n","import { provideHttpClient, withInterceptors } from '@angular/common/http';\r\nimport { APP_INITIALIZER, ApplicationConfig, importProvidersFrom } from '@angular/core';\r\nimport { createCustomElement } from '@angular/elements';\r\nimport { createApplication } from '@angular/platform-browser';\r\nimport { provideAnimations } from '@angular/platform-browser/animations';\r\nimport {\r\n\tRoutes,\r\n\tprovideRouter,\r\n\twithComponentInputBinding,\r\n\twithHashLocation,\r\n\twithViewTransitions\r\n} from '@angular/router';\r\n\r\nimport { ConfirmationService, MenuItem, MessageService } from 'primeng/api';\r\n\r\nimport { KeycloakAngularModule } from 'keycloak-angular';\r\n\r\nimport { loadApiConfigs, setApiConfigOnMFEMode } from 'aril/boot/config/api';\r\nimport { Apps } from 'aril/boot/config/apps';\r\nimport { getNgZone, loadPlugins } from 'aril/boot/config/plugins';\r\nimport { HttpBackendService, stateMachineInterceptor } from 'aril/http';\r\nimport { i18nFolderName, i18nModule } from 'aril/i18n';\r\nimport { KeycloakManager, authInterceptor } from 'aril/keycloak';\r\nimport { StyleLoaderService } from 'aril/util/loaders';\r\n\r\nimport { appComponentLoader } from './appComponentLoader';\r\nimport { loadStyles } from './loadStyles';\r\n\r\nexport var appName: Apps;\r\nexport var menuItems: MenuItem[] = [];\r\n\r\nexport const boot = (_appName: Apps, _routes: Routes, _menuItems: MenuItem[]) => {\r\n\tif (customElements.get(`app-${_appName}`)) return;\r\n\r\n\tappName = _appName;\r\n\tmenuItems = _menuItems;\r\n\r\n\tconst appBootConfig: ApplicationConfig = {\r\n\t\tproviders: [\r\n\t\t\tprovideAnimations(),\r\n\t\t\tprovideHttpClient(withInterceptors([authInterceptor, stateMachineInterceptor])),\r\n\t\t\tprovideRouter(_routes, withComponentInputBinding(), withHashLocation(), withViewTransitions()),\r\n\t\t\timportProvidersFrom(i18nModule, KeycloakAngularModule),\r\n\t\t\tgetNgZone(),\r\n\t\t\tMessageService,\r\n\t\t\tConfirmationService,\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: (<any>globalThis).isHostMode ? setApiConfigOnMFEMode : loadApiConfigs,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService, KeycloakManager, i18nFolderName]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadPlugins,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [HttpBackendService]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\t\tuseFactory: loadStyles,\r\n\t\t\t\tmulti: true,\r\n\t\t\t\tdeps: [StyleLoaderService, i18nFolderName]\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tprovide: i18nFolderName,\r\n\t\t\t\tuseValue: _appName\r\n\t\t\t}\r\n\t\t]\r\n\t};\r\n\r\n\tcreateApplication(appBootConfig).then((appRef) => {\r\n\t\tappComponentLoader().then((AppComponent) => {\r\n\t\t\tconst app = createCustomElement(AppComponent, { injector: appRef.injector });\r\n\t\t\tcustomElements.define(`app-${appName}`, app);\r\n\t\t});\r\n\t});\r\n};\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAO,MAAM,kBAAkB,GAAG,YAAW;IAC5C,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,OAAO,4CAAiB,CAAC,CAAC;AACzD,IAAA,OAAO,YAAY,CAAC;AACrB,CAAC;;ACAe,SAAA,UAAU,CAAC,kBAAsC,EAAE,OAAa,EAAA;AAC/E,IAAA,MAAM,MAAM,GAAG;QACd,YAAY;QACZ,eAAe;QACf,gBAAgB;QAChB,iBAAiB;QACjB,0BAA0B;AAC1B,QAAA,CAAA,OAAA,EAAU,OAAO,CAAqC,mCAAA,CAAA;AACtD,QAAA,CAAA,OAAA,EAAU,OAAO,CAAmC,iCAAA,CAAA;KACpD,CAAC;IAEF,QAAQ,OAAO;QACd,KAAK,IAAI,CAAC,GAAG,CAAC;QACd,KAAK,IAAI,CAAC,GAAG,CAAC;QACd,KAAK,IAAI,CAAC,GAAG;AACZ,YAAA,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;YACpC,MAAM;QACP,KAAK,IAAI,CAAC,GAAG,CAAC;QACd,KAAK,IAAI,CAAC,OAAO,CAAC;QAClB,KAAK,IAAI,CAAC,OAAO,CAAC;QAClB,KAAK,IAAI,CAAC,GAAG,CAAC;QACd,KAAK,IAAI,CAAC,GAAG;AACZ,YAAA,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;YACpC,MAAM;QACP,KAAK,IAAI,CAAC,EAAE;AACX,YAAA,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;YAC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