@dsivd/prestations-ng 16.2.1-beta.2 → 16.2.1
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/CHANGELOG.md +3 -20
- package/UPGRADING_V16.md +55 -73
- package/dsivd-prestations-ng-v16.2.1.tgz +0 -0
- package/esm2020/foehn-address/foehn-input-address.component.mjs +26 -70
- package/esm2020/foehn-breadcrumb/breadcrumb-event.service.mjs +8 -3
- package/esm2020/foehn-input/foehn-input-number.component.mjs +3 -45
- package/esm2020/foehn-input/foehn-input-string.component.mjs +1 -3
- package/esm2020/foehn-input-date/foehn-input-date.component.mjs +1 -1
- package/esm2020/foehn-input-time/foehn-input-time.component.mjs +1 -1
- package/esm2020/foehn-nav13/foehn-input-nav13.component.mjs +3 -3
- package/esm2020/sdk-dictionary/default-dictionary.mjs +10 -1
- package/esm2020/sdk-epayment/sdk-epayment.component.mjs +22 -28
- package/esm2020/sdk-epayment/sdk-epayment.module.mjs +5 -4
- package/esm2020/supported-browser.mjs +2 -2
- package/fesm2015/dsivd-prestations-ng.mjs +70 -151
- package/fesm2015/dsivd-prestations-ng.mjs.map +1 -1
- package/fesm2020/dsivd-prestations-ng.mjs +70 -150
- package/fesm2020/dsivd-prestations-ng.mjs.map +1 -1
- package/foehn-address/foehn-input-address.component.d.ts +2 -8
- package/foehn-input/foehn-input-number.component.d.ts +1 -3
- package/foehn-input/foehn-input-string.component.d.ts +0 -1
- package/package.json +1 -1
- package/sdk-epayment/sdk-epayment.component.d.ts +4 -4
- package/sdk-epayment/sdk-epayment.module.d.ts +2 -1
- package/dsivd-prestations-ng-v16.2.1-beta.2.tgz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -31,28 +31,11 @@ A change is considered **breaking** if you have to change your code or update yo
|
|
|
31
31
|
|
|
32
32
|
## [16.2.1]
|
|
33
33
|
|
|
34
|
-
### Added
|
|
35
|
-
|
|
36
|
-
- [foehn-input-number](projects/prestations-ng/src/foehn-input/foehn-input-number.component.ts)
|
|
37
|
-
- add `@Input() allowLeadingZero = false` to specify if we allow leading `0` such as NAVS13 numbers
|
|
38
|
-
|
|
39
|
-
### Updated
|
|
40
|
-
|
|
41
|
-
- [breadcrumb-event.service.ts](projects/prestations-ng/src/foehn-breadcrumb/breadcrumb-event.service.ts)
|
|
42
|
-
- remove level "Accéder aux prestations" when user is connected
|
|
43
|
-
|
|
44
|
-
- [foehn-input-number](projects/prestations-ng/src/foehn-input/foehn-input-number.component.ts)
|
|
45
|
-
- removes leading `0` when `allowFreeInput` is set to `false` such as `01` or `-01`
|
|
46
|
-
|
|
47
34
|
### Fixed
|
|
48
35
|
|
|
49
|
-
- [
|
|
50
|
-
|
|
51
|
-
-
|
|
52
|
-
- all `foehn-input-*` components extending `foehn-input-string` component will be fixed (i.e. text, textarea, email, phone...)
|
|
53
|
-
|
|
54
|
-
- [foehn-input-address](projects/prestations-ng/src/foehn-address/foehn-input-address.component.ts)
|
|
55
|
-
- now listens to changes on `model` and `isOnlySwiss` to set default country to switzerland
|
|
36
|
+
- [sdk-epayment.component.html](projects/prestations-ng/src/sdk-epayment/sdk-epayment.component.html)
|
|
37
|
+
- [sdk-epayment.component.ts](projects/prestations-ng/src/sdk-epayment/sdk-epayment.component.ts)
|
|
38
|
+
- added a modal triggered before redirecting to postfinance to prevent users from creating multiple transactions
|
|
56
39
|
|
|
57
40
|
## [16.2.0] - must be aligned with prestations-be
|
|
58
41
|
|
package/UPGRADING_V16.md
CHANGED
|
@@ -15,15 +15,23 @@ Follow [our migration guide](ESLINT_MIGRATION_GUIDE.md) to migrate your project
|
|
|
15
15
|
|
|
16
16
|
##### If you are using our `slave-apps`
|
|
17
17
|
|
|
18
|
-
Be sure to update your `slave-apps` git repository and
|
|
18
|
+
Be sure to update your `slave-apps` git repository and then execute
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
|
|
21
|
+
node16
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
which should switch your node version to 16+
|
|
25
|
+
|
|
24
26
|
##### If you are NOT using our `slave-apps`
|
|
25
27
|
|
|
26
|
-
Be sure to use a node version 16
|
|
28
|
+
Be sure to use a node version 16+. To check your version, type the following command
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
node --version
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
which should print out a version 16+ otherwise, install a node 16+
|
|
27
35
|
|
|
28
36
|
#### In your project
|
|
29
37
|
|
|
@@ -37,6 +45,47 @@ Update your `package.json` to specify node engine
|
|
|
37
45
|
}
|
|
38
46
|
```
|
|
39
47
|
|
|
48
|
+
#### In your build
|
|
49
|
+
|
|
50
|
+
- Open your `jenkins` folder and update your jenkins files.
|
|
51
|
+
- Define a variable if it does not already exist and add `nodeVersion: 16` then pass it on to the build.
|
|
52
|
+
|
|
53
|
+
##### UT folder
|
|
54
|
+
|
|
55
|
+
```groovy
|
|
56
|
+
def args = [
|
|
57
|
+
nodeVersion: 16
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
stage('Build pipeline') {
|
|
61
|
+
buildPipeline(args)
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
##### devex > snap folder
|
|
66
|
+
|
|
67
|
+
```groovy
|
|
68
|
+
def buildArgs = [
|
|
69
|
+
nodeVersion : 16
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
stage('Snap2Devex Skeleton') {
|
|
73
|
+
snap2Devex(buildArgs)
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
##### devex > stable folder
|
|
78
|
+
|
|
79
|
+
```groovy
|
|
80
|
+
def args = [
|
|
81
|
+
nodeVersion : 16
|
|
82
|
+
]
|
|
83
|
+
|
|
84
|
+
stage('Stable2Devex') {
|
|
85
|
+
stable2Devex(args)
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
40
89
|
### Updating Angular
|
|
41
90
|
|
|
42
91
|
`prestations-ng` **v16+** now supports **Angular v15**. You can follow the Angular update guide
|
|
@@ -350,6 +399,7 @@ Remove `chromium-headless` label attribute on your args.
|
|
|
350
399
|
|
|
351
400
|
```diff
|
|
352
401
|
def args = [
|
|
402
|
+
nodeVersion: 16,
|
|
353
403
|
- label: 'chromium-headless'
|
|
354
404
|
]
|
|
355
405
|
```
|
|
@@ -358,6 +408,7 @@ def args = [
|
|
|
358
408
|
|
|
359
409
|
```diff
|
|
360
410
|
def buildArgs = [
|
|
411
|
+
nodeVersion : 16,
|
|
361
412
|
- label: 'chromium-headless'
|
|
362
413
|
]
|
|
363
414
|
```
|
|
@@ -366,6 +417,7 @@ def buildArgs = [
|
|
|
366
417
|
|
|
367
418
|
```diff
|
|
368
419
|
def args = [
|
|
420
|
+
nodeVersion : 16,
|
|
369
421
|
- label: 'chromium-headless'
|
|
370
422
|
]
|
|
371
423
|
```
|
|
@@ -507,8 +559,6 @@ Your are good to go if no errors are remaining!
|
|
|
507
559
|
|
|
508
560
|
see https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#upgrading-from-spring-boot-26
|
|
509
561
|
|
|
510
|
-
#### With spring boot starter parent
|
|
511
|
-
|
|
512
562
|
if you're using `org.springframework.boot.spring-boot-starter-parent` :
|
|
513
563
|
|
|
514
564
|
```diff
|
|
@@ -526,74 +576,6 @@ if you're using `org.springframework.boot.spring-boot-starter-parent` :
|
|
|
526
576
|
+ <prestations-be.version>16.x.x</prestations-be.version>
|
|
527
577
|
```
|
|
528
578
|
|
|
529
|
-
We now deploy artifacts to Nexus instead of xFile (will be disabled in end of 2023). This requires us to deploy
|
|
530
|
-
to the current repository in Nexus.
|
|
531
|
-
|
|
532
|
-
Add two distributionManagement (DM), one for applications and one for libraries. Applications DM will be enabled through a profile if the packaging of the project is war,
|
|
533
|
-
otherwise your project will use the default libraries DM. With this, we will send artifacts to appropriate repositories.
|
|
534
|
-
|
|
535
|
-
```xml
|
|
536
|
-
<yourPom>
|
|
537
|
-
<distributionManagement>
|
|
538
|
-
<repository>
|
|
539
|
-
<id>nexus.releases</id>
|
|
540
|
-
<name>Nexus releases</name>
|
|
541
|
-
<url>${nexus.url.releases}</url>
|
|
542
|
-
</repository>
|
|
543
|
-
<snapshotRepository>
|
|
544
|
-
<id>nexus.snapshots</id>
|
|
545
|
-
<name>Nexus snaphots</name>
|
|
546
|
-
<url>${nexus.url.snapshots}</url>
|
|
547
|
-
<uniqueVersion>false</uniqueVersion>
|
|
548
|
-
</snapshotRepository>
|
|
549
|
-
</distributionManagement>
|
|
550
|
-
<!-- ... -->
|
|
551
|
-
<profile>
|
|
552
|
-
<id>nexusApps</id>
|
|
553
|
-
<properties>
|
|
554
|
-
<release.goals>clean deploy</release.goals>
|
|
555
|
-
<devex-maven-plugin.phase>deploy</devex-maven-plugin.phase>
|
|
556
|
-
</properties>
|
|
557
|
-
<activation>
|
|
558
|
-
<property>
|
|
559
|
-
<name>packaging</name>
|
|
560
|
-
<value>war</value>
|
|
561
|
-
</property>
|
|
562
|
-
</activation>
|
|
563
|
-
<distributionManagement>
|
|
564
|
-
<repository>
|
|
565
|
-
<id>nexus-dgnsi-server</id>
|
|
566
|
-
<name>Nexus DGNSI</name>
|
|
567
|
-
<url>${nexus.url}/app-${application.repository}-stable</url>
|
|
568
|
-
</repository>
|
|
569
|
-
<snapshotRepository>
|
|
570
|
-
<id>nexus-dgnsi-server</id>
|
|
571
|
-
<name>Nexus DGNSI</name>
|
|
572
|
-
<url>${nexus.url}/app-${application.repository}-snapshots</url>
|
|
573
|
-
<uniqueVersion>false</uniqueVersion>
|
|
574
|
-
</snapshotRepository>
|
|
575
|
-
</distributionManagement>
|
|
576
|
-
</profile>
|
|
577
|
-
</yourPom>
|
|
578
|
-
```
|
|
579
|
-
|
|
580
|
-
> application.repository depends on the type of project (ask for migration wiki page to get it and also other URLs).
|
|
581
|
-
|
|
582
|
-
In Jenkinsfile (snap and stable only), use the 'withNexus' args to true so that you will use Nexus and not xFile anymore :
|
|
583
|
-
|
|
584
|
-
```groovy
|
|
585
|
-
def buildArgs = [
|
|
586
|
-
name : 'yourProject',
|
|
587
|
-
withNexus: true
|
|
588
|
-
]
|
|
589
|
-
|
|
590
|
-
stage('Snap2Devex yourProject') {
|
|
591
|
-
snap2Devex(buildArgs)
|
|
592
|
-
}
|
|
593
|
-
```
|
|
594
|
-
|
|
595
|
-
#### With application parent
|
|
596
|
-
|
|
597
579
|
if you're using `ch.vd.cyber.parent.application-parent
|
|
598
580
|
|
|
599
581
|
```diff
|
|
Binary file
|