@eui/tools 6.21.124 → 6.21.126

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 (78) hide show
  1. package/.version.properties +1 -1
  2. package/CHANGELOG.md +18 -0
  3. package/package.json +1 -1
  4. package/scripts/csdr/init/resources/17.x/yarn.lock +18166 -0
  5. package/scripts/csdr/init/resources/18.x/resolutions.json +2 -1
  6. package/scripts/csdr/init/resources/18.x/{yarn.lock.old → yarn.lock} +5086 -4702
  7. package/scripts/csdr/init/resources/19.x/yarn.lock +15686 -0
  8. package/scripts/csdr/install/common.js +1 -1
  9. package/scripts/csdr/init/remotes/10.x/base/angular.json +0 -89
  10. package/scripts/csdr/init/remotes/10.x/base/browserslist +0 -6
  11. package/scripts/csdr/init/remotes/10.x/base/package.json_TO_REPLACE +0 -14
  12. package/scripts/csdr/init/remotes/10.x/base/tsconfig.app.json +0 -20
  13. package/scripts/csdr/init/remotes/10.x/full/common/app/eui-components.ts +0 -11
  14. package/scripts/csdr/init/remotes/10.x/full/common/app/fallback.component.ts +0 -11
  15. package/scripts/csdr/init/remotes/10.x/full/common/app/module.component.ts +0 -98
  16. package/scripts/csdr/init/remotes/10.x/full/common/app/module.ts +0 -97
  17. package/scripts/csdr/init/remotes/10.x/full/common/app/reducers/custom-route-serializer.ts +0 -28
  18. package/scripts/csdr/init/remotes/10.x/full/common/app/reducers/index.ts +0 -51
  19. package/scripts/csdr/init/remotes/10.x/full/common/app/routing.module.ts +0 -34
  20. package/scripts/csdr/init/remotes/10.x/full/common/assets/.gitkeep +0 -0
  21. package/scripts/csdr/init/remotes/10.x/full/common/config/global.ts +0 -115
  22. package/scripts/csdr/init/remotes/10.x/full/common/config/index.ts +0 -10
  23. package/scripts/csdr/init/remotes/10.x/full/common/config/modules.ts +0 -3
  24. package/scripts/csdr/init/remotes/10.x/full/common/environments/environment.prod.ts +0 -3
  25. package/scripts/csdr/init/remotes/10.x/full/common/environments/environment.ts +0 -3
  26. package/scripts/csdr/init/remotes/10.x/full/common/favicon.ico +0 -0
  27. package/scripts/csdr/init/remotes/10.x/full/common/index.html +0 -10
  28. package/scripts/csdr/init/remotes/10.x/full/common/main.ts +0 -11
  29. package/scripts/csdr/init/remotes/10.x/full/common/polyfills.ts +0 -87
  30. package/scripts/csdr/init/remotes/10.x/full/common/test.ts +0 -20
  31. package/scripts/csdr/init/remotes/10.x/full/options/all-locales/config/global.ts +0 -119
  32. package/scripts/csdr/init/remotes/10.x/full/options/definitions/dynatrace.json +0 -4
  33. package/scripts/csdr/init/remotes/10.x/full/options/definitions/participant.json +0 -3
  34. package/scripts/csdr/init/remotes/10.x/full/options/definitions/user-reducers.json +0 -3
  35. package/scripts/csdr/init/remotes/10.x/full/options/definitions/zipkin.json +0 -5
  36. package/scripts/csdr/init/remotes/10.x/full/options/participant/app/module.component.ts +0 -101
  37. package/scripts/csdr/init/remotes/10.x/full/options/participant/app/routing.module.ts +0 -26
  38. package/scripts/csdr/init/remotes/10.x/full/options/participant/config/index.ts +0 -10
  39. package/scripts/csdr/init/remotes/10.x/full/options/user-reducers/app/reducers/index.ts +0 -75
  40. package/scripts/csdr/init/remotes/15.x/base/angular.json +0 -87
  41. package/scripts/csdr/init/remotes/15.x/base/browserslist +0 -6
  42. package/scripts/csdr/init/remotes/15.x/base/package.json_TO_REPLACE +0 -10
  43. package/scripts/csdr/init/remotes/15.x/base/tsconfig.app.json +0 -24
  44. package/scripts/csdr/init/remotes/15.x/base/yarn.lock.old +0 -14091
  45. package/scripts/csdr/init/remotes/15.x/full/common/app/eui-components.ts +0 -9
  46. package/scripts/csdr/init/remotes/15.x/full/common/app/fallback.component.ts +0 -11
  47. package/scripts/csdr/init/remotes/15.x/full/common/app/module.component.ts +0 -98
  48. package/scripts/csdr/init/remotes/15.x/full/common/app/module.ts +0 -100
  49. package/scripts/csdr/init/remotes/15.x/full/common/app/reducers/custom-route-serializer.ts +0 -28
  50. package/scripts/csdr/init/remotes/15.x/full/common/app/reducers/index.ts +0 -51
  51. package/scripts/csdr/init/remotes/15.x/full/common/app/routing.module.ts +0 -34
  52. package/scripts/csdr/init/remotes/15.x/full/common/assets/.gitkeep +0 -0
  53. package/scripts/csdr/init/remotes/15.x/full/common/config/global.ts +0 -118
  54. package/scripts/csdr/init/remotes/15.x/full/common/config/index.ts +0 -10
  55. package/scripts/csdr/init/remotes/15.x/full/common/config/modules.ts +0 -3
  56. package/scripts/csdr/init/remotes/15.x/full/common/environments/environment.prod.ts +0 -3
  57. package/scripts/csdr/init/remotes/15.x/full/common/environments/environment.ts +0 -3
  58. package/scripts/csdr/init/remotes/15.x/full/common/favicon.ico +0 -0
  59. package/scripts/csdr/init/remotes/15.x/full/common/index.html +0 -10
  60. package/scripts/csdr/init/remotes/15.x/full/common/main.ts +0 -11
  61. package/scripts/csdr/init/remotes/15.x/full/common/polyfills.ts +0 -88
  62. package/scripts/csdr/init/remotes/15.x/full/common/test.ts +0 -20
  63. package/scripts/csdr/init/remotes/15.x/full/options/ag-grid/main.ts +0 -17
  64. package/scripts/csdr/init/remotes/15.x/full/options/all-locales/config/global.ts +0 -122
  65. package/scripts/csdr/init/remotes/15.x/full/options/definitions/dynamic-forms.json +0 -4
  66. package/scripts/csdr/init/remotes/15.x/full/options/definitions/dynatrace.json +0 -4
  67. package/scripts/csdr/init/remotes/15.x/full/options/definitions/participant.json +0 -3
  68. package/scripts/csdr/init/remotes/15.x/full/options/definitions/user-reducers.json +0 -3
  69. package/scripts/csdr/init/remotes/15.x/full/options/definitions/zipkin.json +0 -5
  70. package/scripts/csdr/init/remotes/15.x/full/options/participant/app/module.component.ts +0 -101
  71. package/scripts/csdr/init/remotes/15.x/full/options/participant/app/routing.module.ts +0 -26
  72. package/scripts/csdr/init/remotes/15.x/full/options/participant/config/index.ts +0 -10
  73. package/scripts/csdr/init/remotes/15.x/full/options/user-reducers/app/reducers/index.ts +0 -75
  74. package/scripts/csdr/init/resources/15.x/browserslistrc +0 -6
  75. package/scripts/csdr/init/resources/15.x/resolutions.json +0 -11
  76. package/scripts/csdr/init/resources/15.x/yarn.lock.old +0 -14091
  77. package/scripts/csdr/init/resources/17.x/yarn.lock.old +0 -13395
  78. package/scripts/csdr/init/resources/nodejs-10.x/resolutions.json +0 -17
@@ -149,7 +149,7 @@ const executeInstall = (module.exports.executeInstall = (cwdPath, npmRegistry) =
149
149
  installRegistry = getInstallRegistry();
150
150
  }
151
151
 
152
- tools.logInfo(`Install from : ${installRegistry}`);
152
+ // tools.logInfo(`Install from : ${installRegistry}`);
153
153
  if (!dryRun && !skipInstall) {
154
154
  if (installRegistry) {
155
155
  return execa.shellSync(`yarn --registry ${installRegistry}`, { cwd: cwdPath, stdio: 'inherit' });
@@ -1,89 +0,0 @@
1
- {
2
- "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
- "version": 1,
4
- "newProjectRoot": "apps",
5
- "projects": {
6
- "@remote.name@": {
7
- "root": ".",
8
- "sourceRoot": "src",
9
- "projectType": "application",
10
- "prefix": "app",
11
- "schematics": {},
12
- "architect": {
13
- "build": {
14
- "builder": "ngx-build-plus:build",
15
- "options": {
16
- "deployUrl": "@remote.deploy.url.root@/assets/elements/@remote.name@/bundles/",
17
- "outputPath": "dist",
18
- "index": "src/index.html",
19
- "main": "src/main.ts",
20
- "polyfills": "src/polyfills.ts",
21
- "tsConfig": "tsconfig.app.json",
22
- "scripts": [
23
- "./node_modules/@webcomponents/custom-elements/src/native-shim.js"
24
- ],
25
- "assets": [
26
- "src/assets"
27
- ],
28
- "styles": [
29
- "./node_modules/@eui/styles/dist/styles/eui-primeng.css",
30
- "./node_modules/@eui/styles/dist/styles/eui.css",
31
- "./node_modules/@eui/styles/dist/styles/eui-next.css",
32
- "./node_modules/@eui/styles/dist/styles/eui-components.css",
33
- "./node_modules/@eui/styles/dist/assets/fonts/font-awesome/font-awesome.min.css",
34
- "./node_modules/@eui/styles/dist/assets/fonts/flag-icons/css/flag-icon.min.css"
35
- ]
36
- },
37
- "configurations": {
38
- "production": {
39
- "fileReplacements": [
40
- {
41
- "replace": "src/environments/environment.ts",
42
- "with": "src/environments/environment.prod.ts"
43
- }
44
- ],
45
- "optimization": true,
46
- "outputHashing": "all",
47
- "sourceMap": false,
48
- "extractCss": true,
49
- "namedChunks": false,
50
- "aot": true,
51
- "extractLicenses": true,
52
- "vendorChunk": false,
53
- "buildOptimizer": true
54
- },
55
- "serve-dist": {
56
- "outputPath": "serve-dist",
57
- "wath": true
58
- }
59
- }
60
- },
61
- "serve": {
62
- "builder": "./node_modules/@angular-devkit/build-angular:dev-server",
63
- "options": {
64
- "deployUrl": "/assets/elements/@remote.name@/bundles/",
65
- "browserTarget": "@remote.name@:build:serve-dist"
66
- },
67
- "configurations": {
68
- "production": {
69
- "browserTarget": "@remote.name@:build:production"
70
- }
71
- }
72
- },
73
- "test": {
74
- "builder": "./node_modules/@angular-devkit/build-angular:karma",
75
- "options": {
76
- "main": "src/test.ts",
77
- "polyfills": "src/polyfills.ts",
78
- "tsConfig": "tsconfig.spec.json",
79
- "karmaConfig": "karma.conf.js",
80
- "scripts": []
81
- }
82
- }
83
- }
84
- }
85
- },
86
- "cli": {
87
- "analytics": false
88
- }
89
- }
@@ -1,6 +0,0 @@
1
- last 1 Chrome version
2
- last 1 Firefox version
3
- last 2 Edge major versions
4
- last 2 Safari major versions
5
- last 2 iOS major versions
6
- Firefox ESR
@@ -1,14 +0,0 @@
1
- {
2
- "name": "generated",
3
- "version": "1.0.0-SNAPSHOT.0",
4
- "files": [
5
- "bundles"
6
- ],
7
- "dependencies": {},
8
- "resolutions": {
9
- "minimist": ">=1.2.6",
10
- "xmlhttprequest-ssl": ">=1.6.1",
11
- "@types/node": "14.14.10",
12
- "get-stream": "4.1.0"
13
- }
14
- }
@@ -1,20 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "./out-tsc/app",
5
- "module": "es2015",
6
- "target": "es2015",
7
- "types": [
8
- "node"
9
- ],
10
- "paths": {
11
- "os": ["./node_modules/empty-module/index.js"],
12
- "node-fetch": ["./node_modules/empty-module/index.js"],
13
- "zipkin": ["./node_modules/zipkin/dist/zipkin.js"]
14
- }
15
- },
16
- "exclude": [
17
- "src/test.ts",
18
- "**/*.spec.ts"
19
- ]
20
- }
@@ -1,11 +0,0 @@
1
- import {
2
- EuiBlockContentComponentModule,
3
- EuiButtonModule,
4
- EuiLabelModule,
5
- } from '@eui/components-next';
6
-
7
- export const EUI_COMPONENTS_MODULES = [
8
- EuiBlockContentComponentModule,
9
- EuiButtonModule,
10
- EuiLabelModule,
11
- ];
@@ -1,11 +0,0 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- template: `
5
- <eui-block-content [isBlocked]="true">
6
- <div style="height: 100%"></div>
7
- </eui-block-content>
8
- `,
9
- })
10
- export class FallbackComponent {
11
- }
@@ -1,98 +0,0 @@
1
- import { Component, OnInit, Inject, ElementRef, OnDestroy } from '@angular/core';
2
-
3
- import { Subscription } from 'rxjs';
4
- import { first } from 'rxjs/operators';
5
-
6
- import { CONFIG_TOKEN } from '@eui/core';
7
- import { ElementSetupService, ElementLifeCycleService } from '@csdr/integration/element';
8
-
9
- enum ElementStatus {
10
- Loading = 'loading',
11
- Loaded = 'loaded',
12
- Error = 'error',
13
- }
14
-
15
- @Component({
16
- template: `
17
- <eui-block-content *ngIf="moduleStatus === ElementStatus.Loading" [isBlocked]="true">
18
- <div style="height: 100%"></div>
19
- </eui-block-content>
20
- <ng-container *ngIf="moduleStatus === ElementStatus.Loaded">
21
- <router-outlet></router-outlet>
22
- </ng-container>
23
- <ng-container *ngIf="moduleStatus === ElementStatus.Error">
24
- <div class="error-container">
25
- <div>
26
- <h1>Translations or user data for this module failed to load.</h1>
27
- <p>Do you want to try again?</p>
28
- <button euiButton euiPrimary (click)="loadData()">
29
- <span euiLabel>{{ 'global.RELOAD' | translate }}</span>
30
- </button>
31
- </div>
32
- </div>
33
- </ng-container>
34
- `,
35
- styles: [`
36
- .error-container {
37
- width: 50vw;
38
- height: 50vh;
39
- position: absolute;
40
- top: 50%;
41
- left: 50%;
42
- transform: translate(-50%, -50%);
43
- }
44
-
45
- .error-container div {
46
- text-align: center
47
- }
48
- `],
49
- })
50
- export class ModuleComponent implements OnInit, OnDestroy {
51
- ElementStatus = ElementStatus;
52
- moduleStatus: ElementStatus;
53
-
54
- private initSubscription: Subscription;
55
-
56
- constructor(private elRef: ElementRef,
57
- @Inject(CONFIG_TOKEN) public config: any,
58
- private elementLifeCycleService: ElementLifeCycleService,
59
- private elementSetupService: ElementSetupService) {
60
- }
61
-
62
- ngOnInit() {
63
- const elementData = this.elementLifeCycleService.getElementData(this.elRef);
64
- this.elementLifeCycleService.setup(elementData);
65
- this.loadData();
66
- }
67
-
68
- ngOnDestroy(): void {
69
- this.initSubscription?.unsubscribe();
70
- this.elementLifeCycleService.cleanup();
71
- }
72
-
73
- private loadData() {
74
- this.setStatus(ElementStatus.Loading);
75
- try {
76
- this.initSubscription?.unsubscribe();
77
-
78
- this.initSubscription = this.elementSetupService
79
- .init()
80
- .pipe(first())
81
- .subscribe((loadStatus: { success: boolean; error?: string }) => {
82
- if (!loadStatus.success) {
83
- this.setStatus(ElementStatus.Error);
84
- console.error(`[ELEMENT: ${this.config.global.elementName}] `, loadStatus.error);
85
- } else {
86
- this.setStatus(ElementStatus.Loaded);
87
- }
88
- });
89
- } catch (e) {
90
- console.log(e);
91
- this.setStatus(ElementStatus.Error);
92
- }
93
- }
94
-
95
- private setStatus(status: ElementStatus) {
96
- this.moduleStatus = status;
97
- }
98
- }
@@ -1,97 +0,0 @@
1
- import { NgModule, Injector, DoBootstrap, ApplicationRef } from '@angular/core';
2
- import { BrowserModule } from '@angular/platform-browser';
3
- import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
4
- import { HttpClient, HttpClientModule, HttpHeaders } from '@angular/common/http';
5
- import { createCustomElement } from '@angular/elements';
6
-
7
- import { StoreModule, USER_PROVIDED_META_REDUCERS } from '@ngrx/store';
8
- import { EffectsModule } from '@ngrx/effects';
9
- import { StoreRouterConnectingModule } from '@ngrx/router-store';
10
- import { StoreDevtoolsModule } from '@ngrx/store-devtools';
11
-
12
- import { TranslateModule } from '@ngx-translate/core';
13
-
14
- import {
15
- CoreModule,
16
- CONFIG_TOKEN,
17
- EUI_CONFIG_TOKEN,
18
- translateConfig,
19
- } from '@eui/core';
20
- import { EUI_COMPONENTS_MODULES } from './eui-components';
21
- import {
22
- CsdrCoreModule,
23
- ElementStorageService,
24
- } from '@csdr/core';
25
-
26
- import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './reducers/index';
27
- import { CustomSerializer } from './reducers/custom-route-serializer';
28
-
29
- import { environment } from '../environments/environment';
30
- import { appConfig } from '../config';
31
-
32
- import { @root.common.module@ as RootCommonModule } from '@root.npm.pkg@';
33
- import {
34
- DEFAULT_MAPPED_PROVIDERS,
35
- } from '@csdr/integration/element';
36
- import { RoutingModule } from './routing.module';
37
-
38
- import { FallbackComponent } from './fallback.component';
39
- import { ModuleComponent } from './module.component';
40
-
41
- // IMPORTS
42
-
43
- // DECLARATIONS
44
-
45
- @NgModule({
46
- imports: [
47
- BrowserModule,
48
- BrowserAnimationsModule,
49
- HttpClientModule,
50
- StoreRouterConnectingModule.forRoot({ stateKey: 'router', serializer: CustomSerializer }),
51
- EffectsModule.forRoot([]),
52
- StoreDevtoolsModule.instrument({ name: appConfig.global.storeName, maxAge: 150, logOnly: environment.production }),
53
- TranslateModule.forRoot(translateConfig),
54
-
55
- CoreModule.forRoot(),
56
- CsdrCoreModule.forRoot(),
57
- RootCommonModule,
58
- RoutingModule,
59
- ...EUI_COMPONENTS_MODULES,
60
-
61
- // DEFINITIONS
62
- ],
63
- declarations: [
64
- FallbackComponent,
65
- ModuleComponent,
66
- ],
67
- entryComponents: [
68
- FallbackComponent,
69
- ModuleComponent,
70
- ],
71
- providers: [
72
- reducerProvider,
73
- {
74
- provide: EUI_CONFIG_TOKEN,
75
- useValue: { appConfig: { ...appConfig, ...environment }, environment },
76
- },
77
-
78
- ...DEFAULT_MAPPED_PROVIDERS,
79
-
80
- // PROVIDERS
81
- ],
82
- })
83
- export class AppModule implements DoBootstrap {
84
-
85
- constructor(private injector: Injector, private http: HttpClient) {
86
- // CONSTRUCTOR DECLARATIONS
87
- }
88
-
89
- ngDoBootstrap(appRef: ApplicationRef): void {
90
- const elementSampleEui = createCustomElement(ModuleComponent, { injector: this.injector });
91
- try {
92
- customElements.define(appConfig.global.elementName, elementSampleEui);
93
- } catch (e) {
94
- console.log(e);
95
- }
96
- }
97
- }
@@ -1,28 +0,0 @@
1
- import { Params, RouterStateSnapshot } from '@angular/router';
2
- import { RouterStateSerializer } from '@ngrx/router-store';
3
-
4
- export interface RouterStateUrl {
5
- url: string;
6
- params: Params;
7
- queryParams: Params;
8
- }
9
-
10
- export class CustomSerializer implements RouterStateSerializer<RouterStateUrl> {
11
- serialize(routerState: RouterStateSnapshot): RouterStateUrl {
12
- let route = routerState.root;
13
-
14
- while (route.firstChild) {
15
- route = route.firstChild;
16
- }
17
-
18
- const {
19
- url,
20
- root: { queryParams },
21
- } = routerState;
22
- const { params } = route;
23
-
24
- // Only return an object including the URL, params and query params
25
- // instead of the entire snapshot
26
- return { url, params, queryParams };
27
- }
28
- }
@@ -1,51 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { ActionReducer, ActionReducerMap, MetaReducer, RuntimeChecks } from '@ngrx/store';
3
- import * as fromRouter from '@ngrx/router-store';
4
- import { storeFreeze } from 'ngrx-store-freeze';
5
- import { reducers as coreReducers, CoreState, localStorageSync } from '@eui/core';
6
-
7
- import { environment } from '../../environments/environment';
8
-
9
- export interface AppState extends CoreState {
10
- router: fromRouter.RouterReducerState<any>;
11
- }
12
-
13
- // -----------------
14
- // ------------ AOT
15
- export const TOKEN = new InjectionToken<any>('AppReducers');
16
-
17
- export function getReducers(): ActionReducerMap<AppState, any> {
18
- return {
19
- router: fromRouter.routerReducer,
20
- ...coreReducers,
21
- };
22
- }
23
-
24
- export const reducerProvider = [
25
- { provide: TOKEN, useFactory: getReducers },
26
- ];
27
-
28
- // console.log all actions
29
- export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState> {
30
- return (state, action) => {
31
- const result = reducer(state, action);
32
- console.groupCollapsed(action.type);
33
- console.log('prev state', state);
34
- console.log('action', action);
35
- console.log('next state', result);
36
- console.groupEnd();
37
-
38
- return result;
39
- };
40
- }
41
-
42
- export const metaReducers: MetaReducer<AppState>[] = !environment.production ? [logger, localStorageSync, storeFreeze] : [localStorageSync];
43
-
44
- export const runtimeChecks: RuntimeChecks = {
45
- strictStateSerializability: false,
46
- strictActionSerializability: false,
47
- strictStateImmutability: false,
48
- strictActionImmutability: false,
49
- strictActionWithinNgZone: false,
50
- strictActionTypeUniqueness: false,
51
- };
@@ -1,34 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { RouterModule, Routes } from '@angular/router';
3
-
4
- import { ELEMENT_ROUTES_TOKEN } from '@csdr/integration/element';
5
-
6
- import { routes } from '@root.npm.pkg@';
7
- // DON'T PAY ATTENTION TO IMPORT ERRORS HERE, those files are injected at serve/build time
8
- import { appConfig } from '../config/index';
9
- import { FallbackComponent } from './fallback.component';
10
- import { ModuleComponent } from './module.component';
11
-
12
- const elementRoutes: Routes = [
13
- { path: '', component: ModuleComponent },
14
- {
15
- path: appConfig.global.baseUrl,
16
- children: routes,
17
- },
18
- { path: '**', component: FallbackComponent },
19
- ];
20
-
21
- // @dynamic
22
- @NgModule({
23
- imports: [
24
- RouterModule.forRoot(elementRoutes),
25
- ],
26
- providers: [
27
- { provide: ELEMENT_ROUTES_TOKEN, useValue: elementRoutes },
28
- ],
29
- exports: [
30
- RouterModule,
31
- ],
32
- })
33
- export class RoutingModule {
34
- }
@@ -1,115 +0,0 @@
1
- import { registerLocaleData } from '@angular/common';
2
-
3
- // import and register locale manually
4
- import localeEn from '@angular/common/locales/en';
5
- import localeEN_150 from '@angular/common/locales/en-150';
6
- import localeEN_AT from '@angular/common/locales/en-AT';
7
- import localeEN_BE from '@angular/common/locales/en-BE';
8
- import localeEN_CH from '@angular/common/locales/en-CH';
9
- import localeEN_CY from '@angular/common/locales/en-CY';
10
- import localeEN_DE from '@angular/common/locales/en-DE';
11
- import localeEN_DK from '@angular/common/locales/en-DK';
12
- import localeEN_FI from '@angular/common/locales/en-FI';
13
- import localeEN_GG from '@angular/common/locales/en-GG';
14
- import localeEN_GI from '@angular/common/locales/en-GI';
15
- import localeEN_IE from '@angular/common/locales/en-IE';
16
- import localeEN_IM from '@angular/common/locales/en-IM';
17
- import localeEN_JE from '@angular/common/locales/en-JE';
18
- import localeEN_MT from '@angular/common/locales/en-MT';
19
- import localeEN_NL from '@angular/common/locales/en-NL';
20
- import localeEN_SE from '@angular/common/locales/en-SE';
21
- import localeEN_SI from '@angular/common/locales/en-SI';
22
- import localeEnExtra from '@angular/common/locales/extra/en';
23
- import localeEnExtra_150 from '@angular/common/locales/extra/en-150';
24
- import localeEnExtra_AT from '@angular/common/locales/extra/en-AT';
25
- import localeEnExtra_BE from '@angular/common/locales/extra/en-BE';
26
- import localeEnExtra_CH from '@angular/common/locales/extra/en-CH';
27
- import localeEnExtra_CY from '@angular/common/locales/extra/en-CY';
28
- import localeEnExtra_DE from '@angular/common/locales/extra/en-DE';
29
- import localeEnExtra_DK from '@angular/common/locales/extra/en-DK';
30
- import localeEnExtra_FI from '@angular/common/locales/extra/en-FI';
31
- import localeEnExtra_GG from '@angular/common/locales/extra/en-GG';
32
- import localeEnExtra_GI from '@angular/common/locales/extra/en-GI';
33
- import localeEnExtra_IE from '@angular/common/locales/extra/en-IE';
34
- import localeEnExtra_IM from '@angular/common/locales/extra/en-IM';
35
- import localeEnExtra_JE from '@angular/common/locales/extra/en-JE';
36
- import localeEnExtra_MT from '@angular/common/locales/extra/en-MT';
37
- import localeEnExtra_NL from '@angular/common/locales/extra/en-NL';
38
- import localeEnExtra_SE from '@angular/common/locales/extra/en-SE';
39
- import localeEnExtra_SI from '@angular/common/locales/extra/en-SI';
40
- import localeFr from '@angular/common/locales/fr';
41
- import localeFR_MC from '@angular/common/locales/fr-MC';
42
- import localeFR_LU from '@angular/common/locales/fr-LU';
43
- import localeFR_CH from '@angular/common/locales/fr-CH';
44
- import localeFR_BE from '@angular/common/locales/fr-BE';
45
- import localeFRExtra_BE from '@angular/common/locales/extra/fr-BE';
46
- import localeFRExtra_CH from '@angular/common/locales/extra/fr-CH';
47
- import localeFRExtra_LU from '@angular/common/locales/extra/fr-LU';
48
- import localeFRExtra_MC from '@angular/common/locales/extra/fr-MC';
49
- import localeFrExtra from '@angular/common/locales/extra/fr';
50
-
51
- import { GlobalConfig, I18nConfig, LocaleServiceConfig } from '@eui/core';
52
-
53
- /**
54
- * import and register locales (currently MWP uses only French and English)
55
- */
56
- registerLocaleData(localeEn, localeEnExtra);
57
- registerLocaleData(localeFr, localeFrExtra);
58
- registerLocaleData(localeEN_150, localeEnExtra_150);
59
- registerLocaleData(localeEN_AT, localeEnExtra_AT);
60
- registerLocaleData(localeEN_BE, localeEnExtra_BE);
61
- registerLocaleData(localeEN_CH, localeEnExtra_CH);
62
- registerLocaleData(localeEN_CY, localeEnExtra_CY);
63
- registerLocaleData(localeEN_DE, localeEnExtra_DE);
64
- registerLocaleData(localeEN_DK, localeEnExtra_DK);
65
- registerLocaleData(localeEN_FI, localeEnExtra_FI);
66
- registerLocaleData(localeEN_GG, localeEnExtra_GG);
67
- registerLocaleData(localeEN_GI, localeEnExtra_GI);
68
- registerLocaleData(localeEN_IE, localeEnExtra_IE);
69
- registerLocaleData(localeEN_IM, localeEnExtra_IM);
70
- registerLocaleData(localeEN_JE, localeEnExtra_JE);
71
- registerLocaleData(localeEN_MT, localeEnExtra_MT);
72
- registerLocaleData(localeEN_NL, localeEnExtra_NL);
73
- registerLocaleData(localeEN_SE, localeEnExtra_SE);
74
- registerLocaleData(localeEN_SI, localeEnExtra_SI);
75
- registerLocaleData(localeFR_MC, localeFRExtra_MC);
76
- registerLocaleData(localeFR_LU, localeFRExtra_LU);
77
- registerLocaleData(localeFR_CH, localeFRExtra_CH);
78
- registerLocaleData(localeFR_BE, localeFRExtra_BE);
79
-
80
- /**
81
- * Internationalization Configuration
82
- */
83
- const i18nConfig: I18nConfig = {
84
- i18nLoader: {
85
- i18nFolders: ['elements/@remote.name@/bundles/assets/i18n-compiled'],
86
- },
87
- i18nService: {
88
- languages: ['en', 'fr'],
89
- defaultLanguage: 'en',
90
- },
91
- };
92
-
93
- /**
94
- * Locale Configuration
95
- */
96
- const localeConfig: LocaleServiceConfig = {
97
- id: 'en',
98
- available: ['en', 'fr'],
99
- bindWithTranslate: true,
100
- affectGlobalLocale: true,
101
- };
102
-
103
- /**
104
- * Global Configuration
105
- */
106
- export const GLOBAL: GlobalConfig = {
107
- /* URL that needs to be used in the appRouting of the MWP */
108
- baseUrl: '@base.url@',
109
- /* Element tag name that needs to be unique - make sure it doesn't collide with any other MWP element */
110
- elementName: '@element.name@',
111
- /* in case you are using NgRx give it a unique name (mostly for debugging) */
112
- storeName: '@store.name@',
113
- i18n: i18nConfig,
114
- locale: localeConfig,
115
- };
@@ -1,10 +0,0 @@
1
- import { GLOBAL } from './global';
2
- import { MODULES } from './modules';
3
-
4
- import { EuiAppConfig } from '@eui/core';
5
- import { configMapping } from '@csdr/integration/element';
6
-
7
- export const appConfig: EuiAppConfig = configMapping({
8
- global: GLOBAL,
9
- modules: MODULES,
10
- });
@@ -1,3 +0,0 @@
1
- import { ModulesConfig } from '@eui/core';
2
-
3
- export const MODULES: ModulesConfig = {};
@@ -1,3 +0,0 @@
1
- export const environment = {
2
- production: true,
3
- };
@@ -1,3 +0,0 @@
1
- export const environment = {
2
- production: false,
3
- };
@@ -1,10 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <base href="/">
6
- </head>
7
- <body>
8
- dummy index.html
9
- </body>
10
- </html>
@@ -1,11 +0,0 @@
1
- import { enableProdMode } from '@angular/core';
2
- import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3
- import { AppModule } from './app/module';
4
- import { environment } from './environments/environment';
5
- if (environment.production) {
6
- enableProdMode();
7
- }
8
-
9
- platformBrowserDynamic()
10
- .bootstrapModule(AppModule)
11
- .catch(err => console.log(err));