@eui/tools 6.15.5 → 6.15.7

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.
@@ -1 +1 @@
1
- 6.15.5
1
+ 6.15.7
package/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 6.15.7 (2024-01-11)
2
+
3
+ ##### Chores
4
+
5
+ * **other:**
6
+ * improve change-detection by coaliscing events and the usage of zone.run (mapping level) MWP-10441 [MWP-10441](https://webgate.ec.europa.eu/CITnet/jira/browse/MWP-10441) ([2e921d1e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/2e921d1e66a222ad7c60692c3ac18d2ad1458f6f))
7
+
8
+ * * *
9
+ * * *
10
+ ## 6.15.6 (2024-01-11)
11
+
12
+ ##### Chores
13
+
14
+ * **other:**
15
+ * adjusted aggrid license injection for virtual remotes - EUI-71212 [EUI-71212](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-71212) ([0b47c90c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0b47c90c0338fb5f530fcee2723f56b8c3f89ba5))
16
+
17
+ * * *
18
+ * * *
1
19
  ## 6.15.5 (2023-12-18)
2
20
 
3
21
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/tools",
3
- "version": "6.15.5",
3
+ "version": "6.15.7",
4
4
  "tag": "latest",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI common tools and scripts",
@@ -2,10 +2,11 @@ import { enableProdMode } from '@angular/core';
2
2
  import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3
3
  import { AppModule } from './app/module';
4
4
  import { environment } from './environments/environment';
5
+
5
6
  if (environment.production) {
6
7
  enableProdMode();
7
8
  }
8
9
 
9
10
  platformBrowserDynamic()
10
- .bootstrapModule(AppModule)
11
+ .bootstrapModule(AppModule, { ngZoneEventCoalescing: true, ngZoneRunCoalescing: true })
11
12
  .catch(err => console.log(err));
@@ -187,40 +187,40 @@ module.exports.generateVirtualRemote = (remoteName, cloneRemote = true) => {
187
187
  let providersContent = [];
188
188
  let constructorDeclarationsContent = [];
189
189
 
190
+ // ag-grid license specific main.ts
191
+ // license token is replaced at post-install, we get it from the remote root UI pkg assets at specific location
192
+ if (remote.skeletonConfig.aggridLicenseInjection) {
193
+ tools.copy(optionAgGridPath, remoteSrcPath);
194
+
195
+ const rootPkgLicensePath = path.join(
196
+ remote.paths.repoNodeModules,
197
+ remote.skeletonConfig.rootNpmPkg,
198
+ 'assets', 'ag-grid-license', 'license.json'
199
+ );
200
+
201
+ if (tools.isFileExists(rootPkgLicensePath)) {
202
+ const licenseJSON = tools.getJsonFileContent(rootPkgLicensePath);
203
+ const license = licenseJSON.license;
204
+ tools.logInfo(`license key found : ${license}`);
205
+
206
+ const mainTsPath = path.join(remote.paths.src, 'main.ts');
207
+ console.log(`replacing in ${mainTsPath}`);
208
+ tools.replaceInFileSync(mainTsPath, 'LICENSE_KEY_VALUE', license);
209
+
210
+ tools.logInfo('main.ts content after replacement : ');
211
+ const mainTsContent = tools.getFileContent(mainTsPath);
212
+ console.log(mainTsContent);
213
+
214
+ tools.logSuccess('OK => main.ts replaced');
215
+ }
216
+ }
217
+
190
218
  // checking options
191
219
 
192
220
  // if no options found, we inject default modules defs
193
221
  if (!remote.skeletonConfig.options) {
194
222
  definitionsContent.push('StoreModule.forRoot(TOKEN, { metaReducers, runtimeChecks })');
195
223
 
196
- // ag-grid license specific main.ts
197
- // license token is replaced at post-install, we get it from the remote root UI pkg assets at specific location
198
- if (remote.skeletonConfig.aggridLicenseInjection) {
199
- tools.copy(optionAgGridPath, remoteSrcPath);
200
-
201
- const rootPkgLicensePath = path.join(
202
- remote.paths.repoNodeModules,
203
- remote.skeletonConfig.rootNpmPkg,
204
- 'assets', 'ag-grid-license', 'license.json'
205
- );
206
-
207
- if (tools.isFileExists(rootPkgLicensePath)) {
208
- const licenseJSON = tools.getJsonFileContent(rootPkgLicensePath);
209
- const license = licenseJSON.license;
210
- tools.logInfo(`license key found : ${license}`);
211
-
212
- const mainTsPath = path.join(remote.paths.src, 'main.ts');
213
- console.log(`replacing in ${mainTsPath}`);
214
- tools.replaceInFileSync(mainTsPath, 'LICENSE_KEY_VALUE', license);
215
-
216
- tools.logInfo('main.ts content after replacement : ');
217
- const mainTsContent = tools.getFileContent(mainTsPath);
218
- console.log(mainTsContent);
219
-
220
- tools.logSuccess('OK => main.ts replaced');
221
- }
222
- }
223
-
224
224
  // if options, all options are checked and default modules defs are injected following certain conditions
225
225
  } else {
226
226
  const pushContent = (obj) => {