@eui/tools 6.16.25 → 6.16.27
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/config/angular.js +9 -5
- package/scripts/csdr/install/common.js +2 -1
- package/scripts/utils/build/package/build-package-utils.js +2 -1
- package/scripts/utils/build/package/styles.js +5 -4
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton/src/_generated/environments/environment.prod.ts +6 -1
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton/src/_generated/environments/environment.ts +6 -1
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui18/src/_generated/environments/environment.prod.ts +6 -1
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui18/src/_generated/environments/environment.ts +6 -1
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/app/app.module.ts +51 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/app/core/reducers/index.ts +50 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/config/global.ts +4 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/config/index.ts +8 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/config/modules.ts +4 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/environments/environment.dev.ts +9 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/environments/environment.prod.ts +14 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/environments/environment.ts +26 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/favicon.ico +0 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/main.ts +21 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/polyfills.ts +86 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/tsconfig.app.json +28 -0
- package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/tsconfig.spec.json +9 -0
- package/scripts/utils/pre-build/injection/skeletons.js +3 -0
- package/scripts/utils/pre-build/projects.js +2 -0
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.16.
|
|
1
|
+
6.16.27
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## 6.16.27 (2024-06-12)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* added v19 config files and injection setup - EUI-9014 [EUI-9014](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9014) ([adfed3fe](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/adfed3fe5777c9f68f61b84da040de0ede2779f1))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
10
|
+
## 6.16.26 (2024-06-10)
|
|
11
|
+
|
|
12
|
+
##### Chores
|
|
13
|
+
|
|
14
|
+
* **other:**
|
|
15
|
+
* updates the Environment config - EUI-9203 [EUI-9203](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9203) ([af17a502](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/af17a5024119cabfb4582eee50da8cf5191291cb))
|
|
16
|
+
|
|
17
|
+
* * *
|
|
18
|
+
* * *
|
|
1
19
|
## 6.16.25 (2024-06-10)
|
|
2
20
|
|
|
3
21
|
##### Chores
|
package/package.json
CHANGED
|
@@ -85,6 +85,7 @@ module.exports.registerAngularPackage = (pkg, isReset) => {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
const packageEuiVersion = innerPackages.getPackageEuiVersion(pkg);
|
|
88
|
+
const packageEuiVersionNumber = parseInt(packageEuiVersion);
|
|
88
89
|
|
|
89
90
|
let projectDef = JSON.stringify(angularPackageDef);
|
|
90
91
|
|
|
@@ -94,7 +95,7 @@ module.exports.registerAngularPackage = (pkg, isReset) => {
|
|
|
94
95
|
if (packageEuiVersion === '14.x') {
|
|
95
96
|
projectDef = JSON.stringify(angularPackageDefV14);
|
|
96
97
|
}
|
|
97
|
-
if (
|
|
98
|
+
if (packageEuiVersionNumber >= 15) {
|
|
98
99
|
projectDef = JSON.stringify(angularPackageDefV15);
|
|
99
100
|
}
|
|
100
101
|
|
|
@@ -121,10 +122,11 @@ module.exports.registerAngularPackageSubEntry = (subEntryName, subEntryPath, pkg
|
|
|
121
122
|
const jsonFile = require(file);
|
|
122
123
|
|
|
123
124
|
const packageEuiVersion = innerPackages.getPackageEuiVersion(pkg);
|
|
125
|
+
const packageEuiVersionNumber = parseInt(packageEuiVersion);
|
|
124
126
|
|
|
125
127
|
let projectDef = JSON.stringify(angularPackageSubEntryDef);
|
|
126
128
|
|
|
127
|
-
if (
|
|
129
|
+
if (packageEuiVersionNumber >= 15) {
|
|
128
130
|
projectDef = JSON.stringify(angularPackageSubEntryDef15);
|
|
129
131
|
projectDef = projectDef.replace('"main":"packages/eui/packages/components/@subEntry.path@/test.ts",', '');
|
|
130
132
|
}
|
|
@@ -132,7 +134,7 @@ module.exports.registerAngularPackageSubEntry = (subEntryName, subEntryPath, pkg
|
|
|
132
134
|
projectDef = tools.replaceAll(projectDef, '@subEntry.package.name@', 'ng-package.json');
|
|
133
135
|
projectDef = tools.replaceAll(projectDef, '@tsconfig@', pkg.tsConfigFileName);
|
|
134
136
|
|
|
135
|
-
if (
|
|
137
|
+
if (packageEuiVersionNumber >= 15) {
|
|
136
138
|
// if tsconfig is missing add it
|
|
137
139
|
const tsConfigSpecPath = path.join(process.cwd(), JSON.parse(projectDef).architect.test.options.tsConfig);
|
|
138
140
|
// check if tsconfig exists otherwise created it
|
|
@@ -199,6 +201,8 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
|
|
|
199
201
|
|
|
200
202
|
tools.logInfo(`Registering angular project for eUI version : ${euiVersion}`);
|
|
201
203
|
|
|
204
|
+
const packageEuiVersionNumber = parseInt(euiVersion);
|
|
205
|
+
|
|
202
206
|
if (!tools.isFileExists(file)) {
|
|
203
207
|
tools.writeJsonFileSync(file, angularConfigDef);
|
|
204
208
|
}
|
|
@@ -232,7 +236,7 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
|
|
|
232
236
|
} else if (euiVersion === '14.x' || euiVersion === '15.x' || euiVersion === '16.x') {
|
|
233
237
|
projectDef = JSON.stringify(angularProjectDefFullSkeletonV14);
|
|
234
238
|
tools.logInfo(`----using angularProjectDefFullSkeletonV14`);
|
|
235
|
-
} else if (
|
|
239
|
+
} else if (packageEuiVersionNumber >= 17) {
|
|
236
240
|
if (project.build.esbuild) {
|
|
237
241
|
projectDef = JSON.stringify(angularProjectDefFullSkeletonV17esbuild);
|
|
238
242
|
tools.logInfo(`----using angularProjectDefFullSkeletonV17esbuild`);
|
|
@@ -255,7 +259,7 @@ module.exports.registerAngularProjectDef = (project, build = false, element = fa
|
|
|
255
259
|
} else if (euiVersion === '17.x') {
|
|
256
260
|
projectDef = JSON.stringify(angularProjectDefV17);
|
|
257
261
|
tools.logInfo(`----using angularProjectDefV17`);
|
|
258
|
-
} else if (
|
|
262
|
+
} else if (packageEuiVersionNumber >= 18) {
|
|
259
263
|
projectDef = JSON.stringify(angularProjectDefV17esbuild);
|
|
260
264
|
tools.logInfo(`----using angularProjectDefV17esbuild`);
|
|
261
265
|
} else {
|
|
@@ -33,8 +33,9 @@ module.exports.installDeps = (deps) => {
|
|
|
33
33
|
// parse eUI deps and explode the sub-packages (v17 issues)
|
|
34
34
|
.then(() => {
|
|
35
35
|
const euiVersion = configUtils.global.getLocalEuiVersion();
|
|
36
|
+
const euiVersionNumber = parseInt(euiVersion);
|
|
36
37
|
|
|
37
|
-
if (
|
|
38
|
+
if (euiVersionNumber >= 17) {
|
|
38
39
|
Object.keys(deps).forEach((dep) => {
|
|
39
40
|
if (dep === '@eui/deps-base') {
|
|
40
41
|
deps['@eui/components'] = deps[dep];
|
|
@@ -216,8 +216,9 @@ module.exports.buildSubEntry = (pkg, subEntry) => {
|
|
|
216
216
|
})
|
|
217
217
|
.then(() => {
|
|
218
218
|
let packageEuiVersion = configUtils.packages.getPackageEuiVersion(pkg);
|
|
219
|
+
const packageEuiVersionNumber = parseInt(packageEuiVersion);
|
|
219
220
|
|
|
220
|
-
if (
|
|
221
|
+
if (packageEuiVersionNumber >= 15) {
|
|
221
222
|
const { skipTest } = tools.getArgs();
|
|
222
223
|
|
|
223
224
|
if (!skipTest) {
|
|
@@ -182,7 +182,8 @@ const compileSassFile = (pkg, folder, filename, isNodeSassTildeImporterActive) =
|
|
|
182
182
|
pkg.build.euiVersion === '15.x' ||
|
|
183
183
|
pkg.build.euiVersion === '16.x' ||
|
|
184
184
|
pkg.build.euiVersion === '17.x' ||
|
|
185
|
-
pkg.build.euiVersion === '18.x'
|
|
185
|
+
pkg.build.euiVersion === '18.x' ||
|
|
186
|
+
pkg.build.euiVersion === '19.x'
|
|
186
187
|
)) {
|
|
187
188
|
return compileSassFileDartSass(folder, filename);
|
|
188
189
|
|
|
@@ -224,7 +225,7 @@ module.exports.build = (pkg) => {
|
|
|
224
225
|
console.log('Temp copy succeeded.');
|
|
225
226
|
})
|
|
226
227
|
.then(() => {
|
|
227
|
-
if (pkg.build.euiVersion !== '18.x') {
|
|
228
|
+
if (pkg.build.euiVersion !== '18.x' && pkg.build.euiVersion !== '19.x') {
|
|
228
229
|
return tools.copydir(srcFolder, srcOutFolder);
|
|
229
230
|
}
|
|
230
231
|
})
|
|
@@ -245,14 +246,14 @@ module.exports.build = (pkg) => {
|
|
|
245
246
|
}, Promise.resolve());
|
|
246
247
|
}))
|
|
247
248
|
.then(() => {
|
|
248
|
-
if (pkg.build.euiVersion !== '18.x') {
|
|
249
|
+
if (pkg.build.euiVersion !== '18.x' && pkg.build.euiVersion !== '19.x') {
|
|
249
250
|
return tools.copydir(tmpFolder, distFolder, true, `**/*.css`);
|
|
250
251
|
} else {
|
|
251
252
|
return tools.copydir(tmpFolderStyles, distFolder, true, `**/*.css`);
|
|
252
253
|
}
|
|
253
254
|
})
|
|
254
255
|
.then(() => {
|
|
255
|
-
if (pkg.build.euiVersion !== '18.x') {
|
|
256
|
+
if (pkg.build.euiVersion !== '18.x' && pkg.build.euiVersion !== '19.x') {
|
|
256
257
|
return tools.copydir(tmpFolder, distFolder, true, `**/*.map`);
|
|
257
258
|
} else {
|
|
258
259
|
return tools.copydir(tmpFolderStyles, distFolder, true, `**/*.map`);
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { EuiEnvConfig } from '@eui/core';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export interface EnvConfig extends EuiEnvConfig {
|
|
4
|
+
production?: boolean;
|
|
5
|
+
enableDevToolRedux?: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const environment: EnvConfig = {
|
|
4
9
|
production: true,
|
|
5
10
|
enableDevToolRedux: false,
|
|
6
11
|
envDynamicConfig: {
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
import { EuiEnvConfig } from '@eui/core';
|
|
5
5
|
|
|
6
|
-
export
|
|
6
|
+
export interface EnvConfig extends EuiEnvConfig {
|
|
7
|
+
production?: boolean;
|
|
8
|
+
enableDevToolRedux?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const environment: EnvConfig = {
|
|
7
12
|
production: false,
|
|
8
13
|
enableDevToolRedux: true,
|
|
9
14
|
envDynamicConfig: {
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { EuiEnvConfig } from '@eui/base';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export interface EnvConfig extends EuiEnvConfig {
|
|
4
|
+
production?: boolean;
|
|
5
|
+
enableDevToolRedux?: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const environment: EnvConfig = {
|
|
4
9
|
production: true,
|
|
5
10
|
enableDevToolRedux: false,
|
|
6
11
|
envDynamicConfig: {
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
import { EuiEnvConfig } from '@eui/base';
|
|
5
5
|
|
|
6
|
-
export
|
|
6
|
+
export interface EnvConfig extends EuiEnvConfig {
|
|
7
|
+
production?: boolean;
|
|
8
|
+
enableDevToolRedux?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const environment: EnvConfig = {
|
|
7
12
|
production: false,
|
|
8
13
|
enableDevToolRedux: true,
|
|
9
14
|
envDynamicConfig: {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// ANGULAR & 3rd PARTIES
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
4
|
+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
5
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
6
|
+
import { StoreModule } from '@ngrx/store';
|
|
7
|
+
import { EffectsModule } from '@ngrx/effects';
|
|
8
|
+
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
|
|
9
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
10
|
+
|
|
11
|
+
// eUI IMPORTS
|
|
12
|
+
import {
|
|
13
|
+
CoreModule, translateConfig, EUI_CONFIG_TOKEN,
|
|
14
|
+
} from '@eui/core';
|
|
15
|
+
import { EuiAllModule } from '@eui/components';
|
|
16
|
+
|
|
17
|
+
import { appConfig } from '../config/index';
|
|
18
|
+
import { environment } from '../environments/environment';
|
|
19
|
+
|
|
20
|
+
// APP ROUTES & ROOT COMPONENTS
|
|
21
|
+
import { AppRoutingModule } from '../../app/app-routing.module';
|
|
22
|
+
import { AppComponent } from '../../app/app.component';
|
|
23
|
+
|
|
24
|
+
import { TOKEN, reducerProvider, metaReducers, runtimeChecks } from './core/reducers/index';
|
|
25
|
+
|
|
26
|
+
// APP ROOT MODULE
|
|
27
|
+
@NgModule({
|
|
28
|
+
imports: [
|
|
29
|
+
BrowserModule,
|
|
30
|
+
BrowserAnimationsModule,
|
|
31
|
+
HttpClientModule,
|
|
32
|
+
StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks }),
|
|
33
|
+
// StoreModule.forRoot(),
|
|
34
|
+
TranslateModule.forRoot(translateConfig),
|
|
35
|
+
CoreModule.forRoot(),
|
|
36
|
+
AppRoutingModule,
|
|
37
|
+
EuiAllModule,
|
|
38
|
+
],
|
|
39
|
+
declarations: [
|
|
40
|
+
AppComponent,
|
|
41
|
+
],
|
|
42
|
+
providers: [
|
|
43
|
+
{ provide: EUI_CONFIG_TOKEN, useValue: { appConfig: appConfig, environment: environment } },
|
|
44
|
+
reducerProvider,
|
|
45
|
+
],
|
|
46
|
+
bootstrap: [
|
|
47
|
+
AppComponent,
|
|
48
|
+
],
|
|
49
|
+
})
|
|
50
|
+
export class AppModule {
|
|
51
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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, localStorageSync } from '@eui/core';
|
|
6
|
+
import { CoreState } from '@eui/base';
|
|
7
|
+
|
|
8
|
+
export interface AppState extends CoreState {
|
|
9
|
+
router: fromRouter.RouterReducerState<any>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// -----------------
|
|
13
|
+
// ------------ AOT
|
|
14
|
+
export const TOKEN = new InjectionToken<any>('AppReducers');
|
|
15
|
+
|
|
16
|
+
export function getReducers(): ActionReducerMap<AppState, any> {
|
|
17
|
+
return {
|
|
18
|
+
router: fromRouter.routerReducer,
|
|
19
|
+
...coreReducers,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const reducerProvider = [
|
|
24
|
+
{ provide: TOKEN, useFactory: getReducers },
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
// console.log all actions
|
|
28
|
+
export function logger(reducer: ActionReducer<AppState>): ActionReducer<AppState> {
|
|
29
|
+
return (state, action) => {
|
|
30
|
+
const result = reducer(state, action);
|
|
31
|
+
console.groupCollapsed(action.type);
|
|
32
|
+
console.log('prev state', state);
|
|
33
|
+
console.log('action', action);
|
|
34
|
+
console.log('next state', result);
|
|
35
|
+
console.groupEnd();
|
|
36
|
+
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export const metaReducers: MetaReducer<AppState>[] = [logger, localStorageSync, storeFreeze];
|
|
42
|
+
|
|
43
|
+
export const runtimeChecks: RuntimeChecks = {
|
|
44
|
+
strictStateSerializability: false,
|
|
45
|
+
strictActionSerializability: false,
|
|
46
|
+
strictStateImmutability: false,
|
|
47
|
+
strictActionImmutability: false,
|
|
48
|
+
strictActionWithinNgZone: false,
|
|
49
|
+
strictActionTypeUniqueness: false,
|
|
50
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EuiEnvConfig } from '@eui/base';
|
|
2
|
+
|
|
3
|
+
export interface EnvConfig extends EuiEnvConfig {
|
|
4
|
+
production?: boolean;
|
|
5
|
+
enableDevToolRedux?: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const environment: EnvConfig = {
|
|
9
|
+
production: true,
|
|
10
|
+
enableDevToolRedux: false,
|
|
11
|
+
envDynamicConfig: {
|
|
12
|
+
uri: 'assets/config/env-json-config.json',
|
|
13
|
+
},
|
|
14
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// used by serve / when no configuration is provided on the build script
|
|
2
|
+
// run npm run build
|
|
3
|
+
|
|
4
|
+
import { EuiEnvConfig } from '@eui/base';
|
|
5
|
+
|
|
6
|
+
export interface EnvConfig extends EuiEnvConfig {
|
|
7
|
+
production?: boolean;
|
|
8
|
+
enableDevToolRedux?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const environment: EnvConfig = {
|
|
12
|
+
production: false,
|
|
13
|
+
enableDevToolRedux: true,
|
|
14
|
+
envDynamicConfig: {
|
|
15
|
+
uri: 'assets/config/env-json-config.json',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
* For easier debugging in development mode, you can import the following file
|
|
21
|
+
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
|
|
22
|
+
*
|
|
23
|
+
* This import should be commented out in production mode because it will have a negative impact
|
|
24
|
+
* on performance if an error is thrown.
|
|
25
|
+
*/
|
|
26
|
+
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|
package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/favicon.ico
ADDED
|
Binary file
|
package/scripts/utils/pre-build/injection/app-sources-full-skeleton-eui19/src/_generated/main.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { enableProdMode } from '@angular/core';
|
|
2
|
+
import { preInitApp } from '@eui/core';
|
|
3
|
+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
4
|
+
|
|
5
|
+
import { AppModule } from './app/app.module';
|
|
6
|
+
import { environment } from './environments/environment';
|
|
7
|
+
import { ApplicationRef } from '@angular/core';
|
|
8
|
+
import { enableDebugTools } from '@angular/platform-browser';
|
|
9
|
+
|
|
10
|
+
if (environment.production) {
|
|
11
|
+
enableProdMode();
|
|
12
|
+
}
|
|
13
|
+
preInitApp(environment).then(() => {
|
|
14
|
+
platformBrowserDynamic().bootstrapModule(AppModule)
|
|
15
|
+
.then(moduleRef => {
|
|
16
|
+
const applicationRef = moduleRef.injector.get(ApplicationRef);
|
|
17
|
+
const componentRef = applicationRef.components[0];
|
|
18
|
+
enableDebugTools(componentRef);
|
|
19
|
+
})
|
|
20
|
+
.catch(err => console.log(err));
|
|
21
|
+
});
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file includes polyfills needed by Angular and is loaded before the app.
|
|
3
|
+
* You can add your own extra polyfills to this file.
|
|
4
|
+
*
|
|
5
|
+
* This file is divided into 2 sections:
|
|
6
|
+
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
|
7
|
+
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
|
8
|
+
* file.
|
|
9
|
+
*
|
|
10
|
+
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
|
11
|
+
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
|
|
12
|
+
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
|
|
13
|
+
*
|
|
14
|
+
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/***************************************************************************************************
|
|
18
|
+
* BROWSER POLYFILLS
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
|
|
22
|
+
// import 'core-js/es6/symbol';
|
|
23
|
+
// import 'core-js/es6/object';
|
|
24
|
+
// import 'core-js/es6/function';
|
|
25
|
+
// import 'core-js/es6/parse-int';
|
|
26
|
+
// import 'core-js/es6/parse-float';
|
|
27
|
+
// import 'core-js/es6/number';
|
|
28
|
+
// import 'core-js/es6/math';
|
|
29
|
+
// import 'core-js/es6/string';
|
|
30
|
+
// import 'core-js/es6/date';
|
|
31
|
+
// import 'core-js/es6/array';
|
|
32
|
+
// import 'core-js/es6/regexp';
|
|
33
|
+
// import 'core-js/es6/map';
|
|
34
|
+
// import 'core-js/es6/weak-map';
|
|
35
|
+
// import 'core-js/es6/set';
|
|
36
|
+
|
|
37
|
+
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
|
|
38
|
+
// import 'classlist.js'; // Run `npm install --save classlist.js`.
|
|
39
|
+
|
|
40
|
+
/** IE10 and IE11 requires the following for the Reflect API. */
|
|
41
|
+
// import 'core-js/es6/reflect';
|
|
42
|
+
|
|
43
|
+
/** Evergreen browsers require these. **/
|
|
44
|
+
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
|
|
45
|
+
// import 'core-js/es7/reflect';
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Web Animations `@angular/platform-browser/animations`
|
|
49
|
+
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
|
|
50
|
+
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
|
|
51
|
+
**/
|
|
52
|
+
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* By default, zone.js will patch all possible macroTask and DomEvents
|
|
56
|
+
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
|
60
|
+
// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
|
61
|
+
// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
|
62
|
+
|
|
63
|
+
/*
|
|
64
|
+
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
|
65
|
+
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
|
66
|
+
*/
|
|
67
|
+
// (window as any).__Zone_enable_cross_context_check = true;
|
|
68
|
+
|
|
69
|
+
/***************************************************************************************************
|
|
70
|
+
* Zone JS is required by default for Angular itself.
|
|
71
|
+
*/
|
|
72
|
+
import 'zone.js'; // Included with Angular CLI.
|
|
73
|
+
|
|
74
|
+
/***************************************************************************************************
|
|
75
|
+
* APPLICATION IMPORTS
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Date, currency, decimal and percent pipes.
|
|
80
|
+
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
|
|
81
|
+
*/
|
|
82
|
+
// import 'intl'; // Run `npm install --save intl`.
|
|
83
|
+
/**
|
|
84
|
+
* Need to import at least one locale-data with intl.
|
|
85
|
+
*/
|
|
86
|
+
// import 'intl/locale-data/jsonp/en';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./dist",
|
|
5
|
+
"types": [],
|
|
6
|
+
"target": "ES2022",
|
|
7
|
+
"module": "ES2022",
|
|
8
|
+
"lib": [
|
|
9
|
+
"ES2022",
|
|
10
|
+
"dom"
|
|
11
|
+
],
|
|
12
|
+
"useDefineForClassFields": false
|
|
13
|
+
},
|
|
14
|
+
"angularCompilerOptions": {
|
|
15
|
+
"annotateForClosureCompiler": true,
|
|
16
|
+
"strictTemplates": true,
|
|
17
|
+
"strictInjectionParameters": true,
|
|
18
|
+
},
|
|
19
|
+
"exclude": [
|
|
20
|
+
"test.ts",
|
|
21
|
+
"**/*.spec.ts",
|
|
22
|
+
"_todo/**/*.ts",
|
|
23
|
+
"**/_todo/**/*.ts",
|
|
24
|
+
"src/assets/samples/**/*.ts",
|
|
25
|
+
"dist/assets/samples/**/*.ts"
|
|
26
|
+
],
|
|
27
|
+
"include": ["**/*.ts"]
|
|
28
|
+
}
|
|
@@ -71,6 +71,9 @@ module.exports.injectCsdrFullSkeletonSources = (project, euiVersion) => {
|
|
|
71
71
|
} else if (euiVersion === '18.x') {
|
|
72
72
|
tools.copydir(path.join(__dirname, 'app-sources-full-skeleton-eui18'), project.folder, false);
|
|
73
73
|
|
|
74
|
+
} else if (euiVersion === '19.x') {
|
|
75
|
+
tools.copydir(path.join(__dirname, 'app-sources-full-skeleton-eui19'), project.folder, false);
|
|
76
|
+
|
|
74
77
|
} else {
|
|
75
78
|
tools.copydir(path.join(__dirname, 'app-sources-full-skeleton'), project.folder, false);
|
|
76
79
|
tools.move(path.join(project.folder, 'src', '_generated', 'tst.ts'), path.join(project.folder, 'src', '_generated', 'test.ts'));
|
|
@@ -80,6 +80,8 @@ module.exports.preBuild = (project, envTarget, build, configEnvTarget) => {
|
|
|
80
80
|
return injectionUtils.skeletons.injectCsdrFullSkeletonSources(project, '17.x');
|
|
81
81
|
} else if (project.build && project.build.euiVersion === '18.x') {
|
|
82
82
|
return injectionUtils.skeletons.injectCsdrFullSkeletonSources(project, '18.x');
|
|
83
|
+
} else if (project.build && project.build.euiVersion === '19.x') {
|
|
84
|
+
return injectionUtils.skeletons.injectCsdrFullSkeletonSources(project, '19.x');
|
|
83
85
|
} else {
|
|
84
86
|
return injectionUtils.skeletons.injectCsdrFullSkeletonSources(project);
|
|
85
87
|
}
|