@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.
- package/.version.properties +1 -1
- package/CHANGELOG.md +18 -0
- package/package.json +1 -1
- package/scripts/csdr/init/resources/17.x/yarn.lock +18166 -0
- package/scripts/csdr/init/resources/18.x/resolutions.json +2 -1
- package/scripts/csdr/init/resources/18.x/{yarn.lock.old → yarn.lock} +5086 -4702
- package/scripts/csdr/init/resources/19.x/yarn.lock +15686 -0
- package/scripts/csdr/install/common.js +1 -1
- package/scripts/csdr/init/remotes/10.x/base/angular.json +0 -89
- package/scripts/csdr/init/remotes/10.x/base/browserslist +0 -6
- package/scripts/csdr/init/remotes/10.x/base/package.json_TO_REPLACE +0 -14
- package/scripts/csdr/init/remotes/10.x/base/tsconfig.app.json +0 -20
- package/scripts/csdr/init/remotes/10.x/full/common/app/eui-components.ts +0 -11
- package/scripts/csdr/init/remotes/10.x/full/common/app/fallback.component.ts +0 -11
- package/scripts/csdr/init/remotes/10.x/full/common/app/module.component.ts +0 -98
- package/scripts/csdr/init/remotes/10.x/full/common/app/module.ts +0 -97
- package/scripts/csdr/init/remotes/10.x/full/common/app/reducers/custom-route-serializer.ts +0 -28
- package/scripts/csdr/init/remotes/10.x/full/common/app/reducers/index.ts +0 -51
- package/scripts/csdr/init/remotes/10.x/full/common/app/routing.module.ts +0 -34
- package/scripts/csdr/init/remotes/10.x/full/common/assets/.gitkeep +0 -0
- package/scripts/csdr/init/remotes/10.x/full/common/config/global.ts +0 -115
- package/scripts/csdr/init/remotes/10.x/full/common/config/index.ts +0 -10
- package/scripts/csdr/init/remotes/10.x/full/common/config/modules.ts +0 -3
- package/scripts/csdr/init/remotes/10.x/full/common/environments/environment.prod.ts +0 -3
- package/scripts/csdr/init/remotes/10.x/full/common/environments/environment.ts +0 -3
- package/scripts/csdr/init/remotes/10.x/full/common/favicon.ico +0 -0
- package/scripts/csdr/init/remotes/10.x/full/common/index.html +0 -10
- package/scripts/csdr/init/remotes/10.x/full/common/main.ts +0 -11
- package/scripts/csdr/init/remotes/10.x/full/common/polyfills.ts +0 -87
- package/scripts/csdr/init/remotes/10.x/full/common/test.ts +0 -20
- package/scripts/csdr/init/remotes/10.x/full/options/all-locales/config/global.ts +0 -119
- package/scripts/csdr/init/remotes/10.x/full/options/definitions/dynatrace.json +0 -4
- package/scripts/csdr/init/remotes/10.x/full/options/definitions/participant.json +0 -3
- package/scripts/csdr/init/remotes/10.x/full/options/definitions/user-reducers.json +0 -3
- package/scripts/csdr/init/remotes/10.x/full/options/definitions/zipkin.json +0 -5
- package/scripts/csdr/init/remotes/10.x/full/options/participant/app/module.component.ts +0 -101
- package/scripts/csdr/init/remotes/10.x/full/options/participant/app/routing.module.ts +0 -26
- package/scripts/csdr/init/remotes/10.x/full/options/participant/config/index.ts +0 -10
- package/scripts/csdr/init/remotes/10.x/full/options/user-reducers/app/reducers/index.ts +0 -75
- package/scripts/csdr/init/remotes/15.x/base/angular.json +0 -87
- package/scripts/csdr/init/remotes/15.x/base/browserslist +0 -6
- package/scripts/csdr/init/remotes/15.x/base/package.json_TO_REPLACE +0 -10
- package/scripts/csdr/init/remotes/15.x/base/tsconfig.app.json +0 -24
- package/scripts/csdr/init/remotes/15.x/base/yarn.lock.old +0 -14091
- package/scripts/csdr/init/remotes/15.x/full/common/app/eui-components.ts +0 -9
- package/scripts/csdr/init/remotes/15.x/full/common/app/fallback.component.ts +0 -11
- package/scripts/csdr/init/remotes/15.x/full/common/app/module.component.ts +0 -98
- package/scripts/csdr/init/remotes/15.x/full/common/app/module.ts +0 -100
- package/scripts/csdr/init/remotes/15.x/full/common/app/reducers/custom-route-serializer.ts +0 -28
- package/scripts/csdr/init/remotes/15.x/full/common/app/reducers/index.ts +0 -51
- package/scripts/csdr/init/remotes/15.x/full/common/app/routing.module.ts +0 -34
- package/scripts/csdr/init/remotes/15.x/full/common/assets/.gitkeep +0 -0
- package/scripts/csdr/init/remotes/15.x/full/common/config/global.ts +0 -118
- package/scripts/csdr/init/remotes/15.x/full/common/config/index.ts +0 -10
- package/scripts/csdr/init/remotes/15.x/full/common/config/modules.ts +0 -3
- package/scripts/csdr/init/remotes/15.x/full/common/environments/environment.prod.ts +0 -3
- package/scripts/csdr/init/remotes/15.x/full/common/environments/environment.ts +0 -3
- package/scripts/csdr/init/remotes/15.x/full/common/favicon.ico +0 -0
- package/scripts/csdr/init/remotes/15.x/full/common/index.html +0 -10
- package/scripts/csdr/init/remotes/15.x/full/common/main.ts +0 -11
- package/scripts/csdr/init/remotes/15.x/full/common/polyfills.ts +0 -88
- package/scripts/csdr/init/remotes/15.x/full/common/test.ts +0 -20
- package/scripts/csdr/init/remotes/15.x/full/options/ag-grid/main.ts +0 -17
- package/scripts/csdr/init/remotes/15.x/full/options/all-locales/config/global.ts +0 -122
- package/scripts/csdr/init/remotes/15.x/full/options/definitions/dynamic-forms.json +0 -4
- package/scripts/csdr/init/remotes/15.x/full/options/definitions/dynatrace.json +0 -4
- package/scripts/csdr/init/remotes/15.x/full/options/definitions/participant.json +0 -3
- package/scripts/csdr/init/remotes/15.x/full/options/definitions/user-reducers.json +0 -3
- package/scripts/csdr/init/remotes/15.x/full/options/definitions/zipkin.json +0 -5
- package/scripts/csdr/init/remotes/15.x/full/options/participant/app/module.component.ts +0 -101
- package/scripts/csdr/init/remotes/15.x/full/options/participant/app/routing.module.ts +0 -26
- package/scripts/csdr/init/remotes/15.x/full/options/participant/config/index.ts +0 -10
- package/scripts/csdr/init/remotes/15.x/full/options/user-reducers/app/reducers/index.ts +0 -75
- package/scripts/csdr/init/resources/15.x/browserslistrc +0 -6
- package/scripts/csdr/init/resources/15.x/resolutions.json +0 -11
- package/scripts/csdr/init/resources/15.x/yarn.lock.old +0 -14091
- package/scripts/csdr/init/resources/17.x/yarn.lock.old +0 -13395
- package/scripts/csdr/init/resources/nodejs-10.x/resolutions.json +0 -17
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { EuiBlockContentModule } from '@eui/components/eui-block-content';
|
|
2
|
-
import { EuiButtonModule } from '@eui/components/eui-button';
|
|
3
|
-
import { EuiLabelModule } from '@eui/components/eui-label';
|
|
4
|
-
|
|
5
|
-
export const EUI_COMPONENTS_MODULES = [
|
|
6
|
-
EuiBlockContentModule,
|
|
7
|
-
EuiButtonModule,
|
|
8
|
-
EuiLabelModule,
|
|
9
|
-
];
|
|
@@ -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,100 +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 {
|
|
37
|
-
CONTAINER_MAPPED_PROVIDERS,
|
|
38
|
-
} from '@csdr/integration/participant';
|
|
39
|
-
import { RoutingModule } from './routing.module';
|
|
40
|
-
|
|
41
|
-
import { FallbackComponent } from './fallback.component';
|
|
42
|
-
import { ModuleComponent } from './module.component';
|
|
43
|
-
|
|
44
|
-
// IMPORTS
|
|
45
|
-
|
|
46
|
-
// DECLARATIONS
|
|
47
|
-
|
|
48
|
-
@NgModule({
|
|
49
|
-
imports: [
|
|
50
|
-
BrowserModule,
|
|
51
|
-
BrowserAnimationsModule,
|
|
52
|
-
HttpClientModule,
|
|
53
|
-
StoreRouterConnectingModule.forRoot({ stateKey: 'router', serializer: CustomSerializer }),
|
|
54
|
-
EffectsModule.forRoot([]),
|
|
55
|
-
StoreDevtoolsModule.instrument({ name: appConfig.global.storeName, maxAge: 150, logOnly: environment.production }),
|
|
56
|
-
TranslateModule.forRoot(translateConfig),
|
|
57
|
-
|
|
58
|
-
CoreModule.forRoot(),
|
|
59
|
-
CsdrCoreModule.forRoot(),
|
|
60
|
-
RootCommonModule,
|
|
61
|
-
RoutingModule,
|
|
62
|
-
...EUI_COMPONENTS_MODULES,
|
|
63
|
-
|
|
64
|
-
// DEFINITIONS
|
|
65
|
-
],
|
|
66
|
-
declarations: [
|
|
67
|
-
FallbackComponent,
|
|
68
|
-
ModuleComponent,
|
|
69
|
-
],
|
|
70
|
-
entryComponents: [
|
|
71
|
-
FallbackComponent,
|
|
72
|
-
ModuleComponent,
|
|
73
|
-
],
|
|
74
|
-
providers: [
|
|
75
|
-
reducerProvider,
|
|
76
|
-
{
|
|
77
|
-
provide: EUI_CONFIG_TOKEN,
|
|
78
|
-
useValue: { appConfig: { ...appConfig, ...environment }, environment },
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
...DEFAULT_MAPPED_PROVIDERS,
|
|
82
|
-
|
|
83
|
-
// PROVIDERS
|
|
84
|
-
],
|
|
85
|
-
})
|
|
86
|
-
export class AppModule implements DoBootstrap {
|
|
87
|
-
|
|
88
|
-
constructor(private injector: Injector, private http: HttpClient) {
|
|
89
|
-
// CONSTRUCTOR DECLARATIONS
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
ngDoBootstrap(appRef: ApplicationRef): void {
|
|
93
|
-
const elementSampleEui = createCustomElement(ModuleComponent, { injector: this.injector });
|
|
94
|
-
try {
|
|
95
|
-
customElements.define(appConfig.global.elementName, elementSampleEui);
|
|
96
|
-
} catch (e) {
|
|
97
|
-
console.log(e);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
@@ -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}@sub.route.url@`,
|
|
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
|
-
}
|
|
File without changes
|
|
@@ -1,118 +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
|
-
eui: {
|
|
116
|
-
assetsBaseUrl: 'assets/elements/@remote.name@/bundles/assets',
|
|
117
|
-
},
|
|
118
|
-
};
|
|
@@ -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
|
-
});
|
|
Binary file
|
|
@@ -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));
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/**
|
|
3
|
-
* This file includes polyfills needed by Angular and is loaded before the app.
|
|
4
|
-
* You can add your own extra polyfills to this file.
|
|
5
|
-
*
|
|
6
|
-
* This file is divided into 2 sections:
|
|
7
|
-
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
|
8
|
-
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
|
9
|
-
* file.
|
|
10
|
-
*
|
|
11
|
-
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
|
12
|
-
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
|
13
|
-
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
|
14
|
-
*
|
|
15
|
-
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
/***************************************************************************************************
|
|
19
|
-
* BROWSER POLYFILLS
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
|
|
23
|
-
// import 'core-js/es6/symbol';
|
|
24
|
-
// import 'core-js/es6/object';
|
|
25
|
-
// import 'core-js/es6/function';
|
|
26
|
-
// import 'core-js/es6/parse-int';
|
|
27
|
-
// import 'core-js/es6/parse-float';
|
|
28
|
-
// import 'core-js/es6/number';
|
|
29
|
-
// import 'core-js/es6/math';
|
|
30
|
-
// import 'core-js/es6/string';
|
|
31
|
-
// import 'core-js/es6/date';
|
|
32
|
-
// import 'core-js/es6/array';
|
|
33
|
-
// import 'core-js/es6/regexp';
|
|
34
|
-
// import 'core-js/es6/map';
|
|
35
|
-
// import 'core-js/es6/weak-map';
|
|
36
|
-
// import 'core-js/es6/set';
|
|
37
|
-
|
|
38
|
-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
|
39
|
-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
|
40
|
-
|
|
41
|
-
/** IE10 and IE11 requires the following for the Reflect API. */
|
|
42
|
-
// import 'core-js/es6/reflect';
|
|
43
|
-
|
|
44
|
-
/** Evergreen browsers require these. **/
|
|
45
|
-
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
|
|
46
|
-
// import 'core-js/es7/reflect';
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Web Animations `@angular/platform-browser/animations`
|
|
50
|
-
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
|
|
51
|
-
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
|
|
52
|
-
**/
|
|
53
|
-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* By default, zone.js will patch all possible macroTask and DomEvents
|
|
57
|
-
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
|
-
// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
|
61
|
-
// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
|
62
|
-
// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
|
63
|
-
|
|
64
|
-
/*
|
|
65
|
-
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
|
66
|
-
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
|
67
|
-
*/
|
|
68
|
-
// (window as any).__Zone_enable_cross_context_check = true;
|
|
69
|
-
|
|
70
|
-
/***************************************************************************************************
|
|
71
|
-
* Zone JS is required by default for Angular itself.
|
|
72
|
-
*/
|
|
73
|
-
import 'zone.js/dist/zone'; // Included with Angular CLI.
|
|
74
|
-
|
|
75
|
-
/***************************************************************************************************
|
|
76
|
-
* APPLICATION IMPORTS
|
|
77
|
-
*/
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Date, currency, decimal and percent pipes.
|
|
81
|
-
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
|
|
82
|
-
*/
|
|
83
|
-
// import 'intl'; // Run `npm install --save intl`.
|
|
84
|
-
/**
|
|
85
|
-
* Need to import at least one locale-data with intl.
|
|
86
|
-
*/
|
|
87
|
-
// import 'intl/locale-data/jsonp/en';
|
|
88
|
-
(window as any).global = window;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|
2
|
-
|
|
3
|
-
import 'zone.js/dist/zone-testing';
|
|
4
|
-
import { getTestBed } from '@angular/core/testing';
|
|
5
|
-
import {
|
|
6
|
-
BrowserDynamicTestingModule,
|
|
7
|
-
platformBrowserDynamicTesting,
|
|
8
|
-
} from '@angular/platform-browser-dynamic/testing';
|
|
9
|
-
|
|
10
|
-
declare const require: any;
|
|
11
|
-
|
|
12
|
-
// First, initialize the Angular testing environment.
|
|
13
|
-
getTestBed().initTestEnvironment(
|
|
14
|
-
BrowserDynamicTestingModule,
|
|
15
|
-
platformBrowserDynamicTesting(),
|
|
16
|
-
);
|
|
17
|
-
// Then we find all the tests.
|
|
18
|
-
const context = require.context('./', true, /\.spec\.ts$/);
|
|
19
|
-
// And load the modules.
|
|
20
|
-
context.keys().map(context);
|
|
@@ -1,17 +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
|
-
const LICENSE_KEY = 'LICENSE_KEY_VALUE';
|
|
10
|
-
|
|
11
|
-
import { LicenseManager } from 'ag-grid-enterprise';
|
|
12
|
-
// tslint:disable-next-line
|
|
13
|
-
LicenseManager.setLicenseKey(LICENSE_KEY);
|
|
14
|
-
|
|
15
|
-
platformBrowserDynamic()
|
|
16
|
-
.bootstrapModule(AppModule)
|
|
17
|
-
.catch(err => console.log(err));
|