@dsivd/prestations-ng 14.5.15-beta1 → 14.5.17-beta1

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/CONTRIBUTING.md +31 -0
  3. package/UPGRADING_V12.md +0 -15
  4. package/UPGRADING_V13.md +0 -15
  5. package/UPGRADING_V14.md +0 -15
  6. package/bundles/dsivd-prestations-ng.umd.js +107 -61
  7. package/bundles/dsivd-prestations-ng.umd.js.map +1 -1
  8. package/dsivd-prestations-ng-v14.5.17-beta1.tgz +0 -0
  9. package/esm2015/abstract-page-component.js +6 -4
  10. package/esm2015/foehn-list/foehn-list.component.js +13 -12
  11. package/esm2015/foehn-page/foehn-page.component.js +2 -1
  12. package/esm2015/foehn-table/foehn-table.component.js +12 -7
  13. package/esm2015/foehn-table/tableSort.js +1 -1
  14. package/esm2015/foehn-upload/foehn-bo-multi-upload/bo-multi-upload.service.js +4 -3
  15. package/esm2015/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.js +6 -3
  16. package/esm2015/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.js +7 -4
  17. package/esm2015/foehn-upload/foehn-multi-upload/multi-upload.service.js +4 -3
  18. package/esm2015/foehn-upload/foehn-multi-upload/pending-upload.service.js +4 -3
  19. package/esm2015/foehn-upload/foehn-picture-upload/foehn-picture-upload.component.js +6 -3
  20. package/esm2015/foehn-upload/pending-upload.type.js +1 -1
  21. package/esm2015/gesdem-confirmation/gesdem-confirmation.component.js +2 -2
  22. package/esm2015/sdk-dictionary/default-dictionary.js +2 -1
  23. package/esm2015/sdk-session-info/session-info.service.js +52 -23
  24. package/esm2015/sdk-support-alert/support-alert.service.js +12 -11
  25. package/fesm2015/dsivd-prestations-ng.js +110 -64
  26. package/fesm2015/dsivd-prestations-ng.js.map +1 -1
  27. package/foehn-list/foehn-list.component.d.ts +0 -1
  28. package/foehn-table/tableSort.d.ts +1 -1
  29. package/foehn-upload/foehn-bo-multi-upload/bo-multi-upload.service.d.ts +1 -1
  30. package/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.d.ts +2 -1
  31. package/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.d.ts +2 -1
  32. package/foehn-upload/foehn-multi-upload/multi-upload.service.d.ts +1 -1
  33. package/foehn-upload/foehn-multi-upload/pending-upload.service.d.ts +1 -1
  34. package/foehn-upload/foehn-picture-upload/foehn-picture-upload.component.d.ts +2 -1
  35. package/foehn-upload/pending-upload.type.d.ts +1 -0
  36. package/package.json +1 -1
  37. package/sdk-session-info/session-info.service.d.ts +8 -1
  38. package/sdk-support-alert/support-alert.service.d.ts +3 -2
  39. package/dsivd-prestations-ng-v14.5.15-beta1.tgz +0 -0
package/CHANGELOG.md CHANGED
@@ -26,6 +26,51 @@ A change is considered **breaking** if you have to change your code or update yo
26
26
 
27
27
  ---
28
28
 
29
+ ## [14.5.17]
30
+
31
+ ### Updated
32
+
33
+ - [session-info.service.ts](projects/prestations-ng/src/sdk-session-info/session-info.service.ts)
34
+ - `SessionInfoData` data getter now depends on `neverConnected` attribute to avoid unnecessary calls to sessionInfo api (PRESTAKIT-364).
35
+ - To retrieve `SessionInfoData` data from api url, you need to explicitly set `neverConnected` attribute to `false`.
36
+
37
+ - [foehn-page.component.ts](projects/prestations-ng/src/foehn-page/foehn-page.component.ts)
38
+ - `@Input() neverConnected` is now set to `false` by default to retrieve `SessionInfoData` data for backwards compatibility purposes.
39
+
40
+ - [support-alert.service.ts](projects/prestations-ng/src/sdk-support-alert/support-alert.service.ts)
41
+ - removed `setRefreshIntervalInSeconds(refreshIntervalsInSeconds: number)`, support alerts are now refreshed on every NavigationStart event from the Angular Router, but at most every 3 minutes.
42
+ - [foehn-page.component.html](projects/prestations-ng/src/foehn-page/foehn-page.component.html)
43
+ - added `@Input() supportAlertRefreshIntervalsInSeconds: number`, support alerts are now refreshed on every NavigationStart event from the Angular Router, but at most every 3 minutes.
44
+
45
+ ## [14.5.16]
46
+
47
+ ### Updated
48
+
49
+ - [support-alert.service.ts](projects/prestations-ng/src/sdk-support-alert/support-alert.service.ts)
50
+ - added `setRefreshIntervalInSeconds(refreshIntervalsInSeconds: number)` allowing to override the default refresh interval for support-alerts (default = 5 * 1000)
51
+ - [foehn-page.component.html](projects/prestations-ng/src/foehn-page/foehn-page.component.html)
52
+ - added `@Input() supportAlertRefreshIntervalsInSeconds: number` allowing to call SupportAlertService.setRefreshIntervalInSeconds()
53
+
54
+ ## [14.5.15]
55
+
56
+ ### Added
57
+
58
+ - [Autogenerated documentation](https://dsi-vd.github.io/prestations-ng/generateddoc)
59
+ - prestations-ng documentation generated automatically by `compodoc`
60
+
61
+ - [foehn-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.ts)
62
+ - [foehn-bo-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.ts)
63
+ - Add possibility to hide confirmation message when a file is saved. Default is message is displayed. To change default value, add [shouldDisplayFileSavedConfirmation]="false" in your upload
64
+
65
+ - [gesdem-confirmation.component.html](projects/prestations-ng/src/gesdem-confirmation/gesdem-confirmation.component.html)
66
+ - `telechargerBtn` (Télécharger la demande (pdf)) is also shown to a connected user
67
+ - `logoutBtn` (Se déconnecter) is shown to a connected user instead of `terminerBtn` (Terminer)
68
+
69
+ ### Fixed
70
+
71
+ - [foehn-table.component.ts](projects/prestations-ng/src/foehn-table/foehn-table.component.ts)
72
+ - table content was not being refreshed when sorting column
73
+
29
74
  ## [14.5.14]
30
75
 
31
76
  ### Added
package/CONTRIBUTING.md CHANGED
@@ -188,3 +188,34 @@ export NODE_OPTIONS=--max_old_space_size=4096
188
188
  ```
189
189
 
190
190
  Use at your own risks.
191
+
192
+ ## E2E testing
193
+
194
+ `Protractor` is no longer included in new Angular projects as of Angular 12.
195
+ We have decided to remove it from `prestations-ng` and use instead `Cypress`.
196
+
197
+ For more informations, please visit :
198
+ https://github.com/angular/protractor/issues/5502
199
+ https://docs.cypress.io/guides/migrating-to-cypress/protractor#Introduction
200
+
201
+ **DO NOT FORGET TO BUILD THE LIBRARY BEFORE RUNNING E2E TESTS**
202
+
203
+ ### Running e2e in headless mode
204
+
205
+ When launching Cypress in headless mode, execute:
206
+ ```bash
207
+ yarn e2e
208
+ ```
209
+ When a test fails, a screenshot will be added in `e2e/cypress/screenshots` folder.
210
+
211
+ ### Running e2e using Cypress visual interface
212
+
213
+ When launching Cypress visual interface for running tests files individually in `watch` mode, execute:
214
+ ```bash
215
+ yarn e2e:open
216
+ ```
217
+ To execute a test, just click on your integration test file listed in the newly open window.
218
+ A new window will open showing your e2e test execution.
219
+ To show back your test list window, just click on `Tests` button in the top left corner.
220
+ Click the `Stop` button to close your e2e test execution window.
221
+ Then click on an other test in the list and so on...
package/UPGRADING_V12.md CHANGED
@@ -216,18 +216,3 @@ In your `package.json` located at the root of your application, add `start:symli
216
216
  }
217
217
  }
218
218
  ```
219
-
220
- ## e2e tip
221
-
222
- When `e2e` test are broken due to `puppeteer` not having the same version between browser and driver, you can temporarily modify your `package.json` with:
223
-
224
- ```json
225
- {
226
- "scripts": {
227
- "pree2e": "node_modules/protractor/bin/webdriver-manager update --versions.chrome=[VERSION_OF_CHROME_MATCHING_DRIVER] --gecko false --standalone false",
228
- "e2e": "ng e2e --webdriverUpdate=false"
229
- }
230
- }
231
- ```
232
-
233
- **Be sure to rollback when `puppeteer` is up-to-date**
package/UPGRADING_V13.md CHANGED
@@ -29,18 +29,3 @@ yarn upgrade
29
29
  ## Migrating to ESLint
30
30
 
31
31
  - Follow [our migration guide](ESLINT_MIGRATION_GUIDE.md) to migrate your project from TSLint to ESLint
32
-
33
- ## e2e tip
34
-
35
- When `e2e` test are broken due to `puppeteer` not having the same version between browser and driver, you can temporarily modify your `package.json` with:
36
-
37
- ```json
38
- {
39
- "scripts": {
40
- "pree2e": "node_modules/protractor/bin/webdriver-manager update --versions.chrome=[VERSION_OF_CHROME_MATCHING_DRIVER] --gecko false --standalone false",
41
- "e2e": "ng e2e --webdriverUpdate=false"
42
- }
43
- }
44
- ```
45
-
46
- **Be sure to rollback when `puppeteer` is up-to-date**
package/UPGRADING_V14.md CHANGED
@@ -50,18 +50,3 @@ yarn upgrade
50
50
  ## Migrating to ESLint
51
51
 
52
52
  - Follow [our migration guide](ESLINT_MIGRATION_GUIDE.md) to migrate your project from TSLint to ESLint
53
-
54
- ## e2e tip
55
-
56
- When `e2e` test are broken due to `puppeteer` not having the same version between browser and driver, you can temporarily modify your `package.json` with:
57
-
58
- ```json
59
- {
60
- "scripts": {
61
- "pree2e": "node_modules/protractor/bin/webdriver-manager update --versions.chrome=[VERSION_OF_CHROME_MATCHING_DRIVER] --gecko false --standalone false",
62
- "e2e": "ng e2e --webdriverUpdate=false"
63
- }
64
- }
65
- ```
66
-
67
- **Be sure to rollback when `puppeteer` is up-to-date**