@cima-foundation/schematics 0.4.12 → 0.4.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cima-foundation/schematics",
3
- "version": "0.4.12",
3
+ "version": "0.4.13",
4
4
  "description": "A blank schematics",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.json",
@@ -10,6 +10,6 @@ jobs:
10
10
  uses: CIMAFoundation/deployments-manager/.github/workflows/ngx-cima-release-app.yaml@main
11
11
  with:
12
12
  application-name: <%= dasherize(name) %>
13
- build-script: npm run build:prod
13
+ build-script: npm run build:prod <%= dasherize(name) %>-test-app
14
14
  npm-install-command: install
15
15
  secrets: inherit
@@ -120,10 +120,10 @@
120
120
  "builder": "@angular-devkit/build-angular:dev-server",
121
121
  "configurations": {
122
122
  "production": {
123
- "browserTarget": "<%= dasherize(name) %>-test-app:build:production"
123
+ "buildTarget": "<%= dasherize(name) %>-test-app:build:production"
124
124
  },
125
125
  "development": {
126
- "browserTarget": "<%= dasherize(name) %>-test-app:build:development"
126
+ "buildTarget": "<%= dasherize(name) %>-test-app:build:development"
127
127
  }
128
128
  },
129
129
  "defaultConfiguration": "development"
@@ -131,7 +131,7 @@
131
131
  "extract-i18n": {
132
132
  "builder": "@angular-devkit/build-angular:extract-i18n",
133
133
  "options": {
134
- "browserTarget": "<%= dasherize(name) %>-test-app:build"
134
+ "buildTarget": "<%= dasherize(name) %>-test-app:build"
135
135
  }
136
136
  },
137
137
  "test": {
@@ -232,6 +232,5 @@
232
232
  }
233
233
  }
234
234
  }
235
- },
236
- "defaultProject": "<%= dasherize(name) %>-test-app"
235
+ }
237
236
  }
@@ -0,0 +1,56 @@
1
+ #!/bin/bash
2
+
3
+ # Chiedi all'utente da quale versione di Angular vuole iniziare l'aggiornamento
4
+ echo "Quale versione di Angular è attualmente installata? (13 o 15)"
5
+ read -p "Inserisci il numero della versione: " versione
6
+
7
+ # Crea un nuovo branch
8
+ git checkout -b update_angular_17
9
+
10
+ git add .
11
+ git commit -m "commit before update"
12
+
13
+ # Inizia l'aggiornamento dalla versione selezionata
14
+ if [ $versione -eq 13 ]; then
15
+
16
+ # Aggiorna a Angular 14
17
+ ng update @angular/core@14 @angular/cli@14 @angular/material@14 --force
18
+ git add .
19
+ git commit -m "update ng14"
20
+
21
+ # Aggiorna a Angular 15
22
+ ng update @angular/core@15 @angular/cli@15 @angular/material@15 --force
23
+ git add .
24
+ git commit -m "update ng15"
25
+
26
+ # Imposta versione uguale a 15 per il prossimo blocco
27
+ versione=15
28
+ fi
29
+ if [ $versione -eq 15 ]; then
30
+
31
+ # Aggiorna a Angular 16
32
+ ng update @angular/core@16 @angular/cli@16 @angular/material@16 --force
33
+ git add .
34
+ git commit -m "update ng16"
35
+
36
+ # Aggiorna a Angular 17
37
+ ng update @angular/core@17 @angular/cli@17 --force
38
+ git add .
39
+ git commit -m "update ng17"
40
+
41
+
42
+ # Esegui la migrazione a Material Design Components
43
+ # ng generate @angular/material:mdc-migration
44
+ # ng update @angular/material@17 --force
45
+
46
+ # aggiorna package json
47
+ # edit title in environment.ts
48
+ # add pathmatch: full in routing module
49
+ # add XXXX-test-app in build-and-reelase-app.yml
50
+ # correct credits
51
+
52
+ else
53
+ echo "Versione non supportata. Si prega di selezionare 13 o 15."
54
+ exit 1
55
+
56
+ fi
@@ -20,71 +20,71 @@
20
20
  },
21
21
  "private": true,
22
22
  "dependencies": {
23
- "@angular/animations": "~13.3.0",
24
- "@angular/cdk": "^13.2.3",
25
- "@angular/common": "~13.3.0",
26
- "@angular/compiler": "~13.3.0",
27
- "@angular/core": "~13.3.0",
28
- "@angular/flex-layout": "^13.0.0-beta.36",
29
- "@angular/forms": "~13.3.0",
30
- "@angular/material": "^13.2.3",
31
- "@ngx-translate/core": "^14.0.0",
32
- "@angular/platform-browser": "~13.3.0",
33
- "@angular/platform-browser-dynamic": "~13.3.0",
34
- "@angular/router": "~13.3.0",
35
- "@angular/service-worker": "~13.3.0",
36
- "@cima/commons": "git+https://github.com/CIMAFoundation/ngx-cima-commons.git#v0.13.6",
23
+ "@angular/animations": "^17.2.3",
24
+ "@angular/cdk": "^17.2.1",
25
+ "@angular/common": "^17.2.3",
26
+ "@angular/compiler": "^17.2.3",
27
+ "@angular/core": "^17.2.3",
28
+ "@angular/forms": "^17.2.3",
29
+ "@angular/material": "^17.1.2",
30
+ "@angular/platform-browser": "^17.2.3",
31
+ "@angular/platform-browser-dynamic": "^17.2.3",
32
+ "@angular/router": "^17.2.3",
33
+ "@angular/service-worker": "^17.2.3",
34
+ "copyfiles": "^2.4.1",
35
+ "@cima/commons": "git+https://github.com/CIMAFoundation/ngx-cima-commons.git#v17.0.2",
36
+ "@angular/flex-layout": "^15.0.0-beta.42",
37
37
  "@fortawesome/fontawesome-free": "^6.3.0",
38
- "@kolkov/angular-editor": "2.0.0",
39
- "@ngneat/until-destroy": "^8.1.4",
38
+ "@kolkov/angular-editor": "3.0.0-beta.0",
39
+ "@ngneat/until-destroy": "^10.0.0",
40
+ "@ngx-translate/core": "^15.0.0",
41
+ "@svgdotjs/svg.js": "^3.1.2",
40
42
  "angular-animations": "^0.11.0",
41
- "angular-gridster2": "^13.0.0",
42
- "angular-oauth2-oidc": "^13.0.1",
43
+ "angular-gridster2": "^17.0.0",
44
+ "angular-oauth2-oidc": "^17.0.1",
43
45
  "bootstrap": "^5.1.3",
44
- "copyfiles": "^2.4.1",
45
- "flag-icons": "^6.2.0",
46
- "jwt-decode": "^3.1.2",
47
- "leaflet": "^1.8.0",
48
- "@svgdotjs/svg.js": "^3.2.0",
49
- "ngx-file-drop": "^13.0.0",
46
+ "flag-icons": "^7.1.0",
47
+ "jwt-decode": "^4.0.0",
48
+ "leaflet": "1.9.4",
50
49
  "masonry-layout": "^4.2.2",
51
50
  "moment": "^2.29.1",
52
- "ngx-color-picker": "^12.0.1",
53
- "ngx-masonry": "^13.0.0",
51
+ "ngx-color-picker": "^16.0.0",
52
+ "ngx-file-drop": "^16.0.0",
53
+ "ngx-masonry": "^14.0.1",
54
54
  "ngx-order-pipe": "^2.2.0",
55
- "rxjs": "~6.6.0",
55
+ "rxjs": "^7.4.0",
56
56
  "swiper": "^7.3.3",
57
57
  "tslib": "^2.3.0",
58
- "zone.js": "~0.11.4"
58
+ "zone.js": "~0.14.3"
59
59
  },
60
60
  "devDependencies": {
61
- "@angular-devkit/build-angular": "~13.3.0",
62
- "@angular-eslint/builder": "13.0.1",
63
- "@angular-eslint/eslint-plugin": "13.0.1",
64
- "@angular-eslint/eslint-plugin-template": "13.0.1",
65
- "@angular-eslint/schematics": "13.0.1",
66
- "@angular-eslint/template-parser": "13.0.1",
67
- "@angular/cli": "~13.3.0",
68
- "@angular/compiler-cli": "~13.3.0",
69
- "@angular/localize": "^13.2.2",
61
+ "@angular-eslint/eslint-plugin-template": "17.2.1",
62
+ "@angular-devkit/build-angular": "^17.1.2",
63
+ "@angular-eslint/builder": "17.2.1",
64
+ "@angular-eslint/eslint-plugin": "17.2.1",
65
+ "@angular-eslint/schematics": "17.2.1",
66
+ "@angular-eslint/template-parser": "17.2.1",
67
+ "@angular/cli": "^17.1.2",
68
+ "@angular/compiler-cli": "^17.1.2",
69
+ "@angular/localize": "^17.1.2",
70
70
  "@types/chance": "^1.1.3",
71
- "@types/jasmine": "~3.6.0",
72
- "@types/node": "^12.20.47",
73
- "@typescript-eslint/eslint-plugin": "5.3.0",
74
- "@typescript-eslint/parser": "5.3.0",
75
- "eslint": "^8.2.0",
71
+ "@types/jasmine": "~5.1.4",
72
+ "@types/leaflet": "^1.7.10",
73
+ "@types/node": "^20.11.16",
74
+ "@typescript-eslint/eslint-plugin": "6.21.0",
75
+ "@typescript-eslint/parser": "6.21.0",
76
+ "eslint": "8.56.0",
76
77
  "jasmine-core": "~3.8.0",
77
78
  "karma": "~6.3.0",
78
79
  "karma-chrome-launcher": "~3.1.0",
79
80
  "karma-coverage": "~2.0.3",
80
81
  "karma-jasmine": "~4.0.0",
81
82
  "karma-jasmine-html-reporter": "^1.5.0",
82
- "ng-packagr": "^13.0.3",
83
- "ngx-pwa-icons": "^0.1.2",
83
+ "ng-packagr": "^17.1.2",
84
84
  "npm-run-all": "^4.1.5",
85
- "rimraf": "^3.0.2",
86
- "typescript": "~4.4.4",
87
- "wait-on": "^6.0.0",
85
+ "rimraf": "^5.0.5",
86
+ "typescript": "~5.3.3",
87
+ "wait-on": "^7.2.0",
88
88
  "webpack-bundle-analyzer": "^4.5.0"
89
89
  }
90
90
  }
@@ -1,3 +1,3 @@
1
1
  <cima-page-container style="background-color:unset">
2
- <commons-credits [credits]="credits"></commons-credits>
2
+ <commons-credits></commons-credits>
3
3
  </cima-page-container>
@@ -17,8 +17,5 @@ export class CreditsPageComponent implements AfterViewInit {
17
17
  ngAfterViewInit(): void {
18
18
  this.portalService.setTitle(`Credits`);
19
19
  this.faviconService.setPortalFavicon();
20
- this.configService.getStaticCredits().subscribe((credits) => {
21
- this.credits = credits;
22
- } );
23
20
  }
24
21
  }
@@ -44,13 +44,13 @@
44
44
  </p>
45
45
  <p>
46
46
  - <strong><em>Propagator</em></strong
47
- >: servizio applicativo messo a disposizione di alcuni Utenti a supporto
47
+ >: servizio applicativo messo a disposizione di alcuni Utenti a supporto
48
48
  delle attivit&agrave; di lotta attiva agli incendi boschivi, customizzabile
49
49
  per ciascun Utente.
50
50
  </p>
51
51
  <p>
52
52
  - <strong><em>Bulletin</em></strong
53
- >: servizio applicativo messo a disposizione di alcuni Utenti a supporto
53
+ >: servizio applicativo messo a disposizione di alcuni Utenti a supporto
54
54
  delle attivit&agrave; di allertamento, customizzabile per ciascun Utente.
55
55
  </p>
56
56
  <h3><strong>Idoneit&agrave; ed accesso</strong></h3>
@@ -153,8 +153,8 @@
153
153
  "In caso di conflitto tra gli obblighi del licenziatario derivanti dalla
154
154
  licenza EUPL, e quelli derivanti dalle licenze delle componenti integrate,
155
155
  ai sensi della clausola di compatibilit&agrave; &ldquo;<em
156
- >prevalgono gli obblighi prescritti dalla licenza compatibile</em
157
- >".
156
+ >prevalgono gli obblighi prescritti dalla licenza compatibile</em
157
+ >".
158
158
  </p>
159
159
  <p>
160
160
  <strong><em>Utilizzo del portale da parte dell&rsquo;Utente</em></strong>
@@ -284,9 +284,9 @@
284
284
  <ul>
285
285
  <li>
286
286
  il soggetto richiedente deve darne preventiva comunicazione a DPC o a CIMA
287
- inviando una e-mail all&rsquo;indirizzo dewetra@protezionecivile.it<strong
288
- >,</strong
289
- >
287
+ inviando una e-mail all&rsquo;indirizzo dewetra&#64;protezionecivile.it<strong
288
+ >,</strong
289
+ >
290
290
  indicando i propri dati identificativi ed il motivo della richiesta;
291
291
  </li>
292
292
  <li>
@@ -374,7 +374,7 @@
374
374
  Per inviare qualunque tipo di comunicazione, reclamo, suggerimento relativo
375
375
  al Portale o ai presenti Termini e Condizioni, l&rsquo;Utente deve
376
376
  contattare direttamente DPC o CIMA al seguente indirizzo e-mail:
377
- mydewetra.world@cimafoundation.org.
377
+ mydewetra.world&#64;cimafoundation.org.
378
378
  </p>
379
379
  <h3><strong>Recesso</strong></h3>
380
380
  <p>
@@ -7,13 +7,6 @@ import {
7
7
  platformBrowserDynamicTesting
8
8
  } from '@angular/platform-browser-dynamic/testing';
9
9
 
10
- declare const require: {
11
- context(path: string, deep?: boolean, filter?: RegExp): {
12
- keys(): string[];
13
- <T>(id: string): T;
14
- };
15
- };
16
-
17
10
  // First, initialize the Angular testing environment.
18
11
  getTestBed().initTestEnvironment(
19
12
  BrowserDynamicTestingModule,
@@ -21,7 +14,3 @@ getTestBed().initTestEnvironment(
21
14
  { teardown: { destroyAfterEach: true }},
22
15
  );
23
16
 
24
- // Then we find all the tests.
25
- const context = require.context('./', true, /\.spec\.ts$/);
26
- // And load the modules.
27
- context.keys().map(context);
@@ -2,8 +2,8 @@
2
2
  "name": "@cima/<%= dasherize(name) %>",
3
3
  "version": "0.0.1",
4
4
  "peerDependencies": {
5
- "@angular/common": "^13.0.0",
6
- "@angular/core": "^13.0.0"
5
+ "@angular/common": "^17.0.0",
6
+ "@angular/core": "^17.0.0"
7
7
  },
8
8
  "dependencies": {
9
9
  "tslib": "^2.3.0"
@@ -15,14 +15,3 @@ declare const require: {
15
15
  };
16
16
  };
17
17
 
18
- // First, initialize the Angular testing environment.
19
- getTestBed().initTestEnvironment(
20
- BrowserDynamicTestingModule,
21
- platformBrowserDynamicTesting(),
22
- { teardown: { destroyAfterEach: true }},
23
- );
24
-
25
- // Then we find all the tests.
26
- const context = require.context('./', true, /\.spec\.ts$/);
27
- // And load the modules.
28
- context.keys().map(context);
@@ -3,7 +3,6 @@
3
3
  "extends": "../../../tsconfig.json",
4
4
  "compilerOptions": {
5
5
  "outDir": "../../../out-tsc/lib",
6
- "target": "es2015",
7
6
  "declaration": true,
8
7
  "declarationMap": true,
9
8
  "inlineSources": true,
@@ -20,9 +20,13 @@
20
20
  "experimentalDecorators": true,
21
21
  "moduleResolution": "node",
22
22
  "importHelpers": true,
23
- "target": "es2017",
23
+ "target": "ES2022",
24
24
  "module": "es2020",
25
- "lib": ["es2018", "dom"]
25
+ "lib": [
26
+ "es2018",
27
+ "dom"
28
+ ],
29
+ "useDefineForClassFields": false
26
30
  },
27
31
  "angularCompilerOptions": {
28
32
  "enableI18nLegacyMessageIdFormat": false,