@dsivd/prestations-ng 16.0.0-beta2 → 16.0.0-beta4

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 (196) hide show
  1. package/ESLINT_MIGRATION_GUIDE.md +5 -7
  2. package/UPGRADING_V16.md +252 -10
  3. package/dsivd-prestations-ng-v16.0.0-beta4.tgz +0 -0
  4. package/esm2020/abstract-page-component.mjs +3 -3
  5. package/esm2020/directives/currency-formatter.directive.mjs +3 -3
  6. package/esm2020/directives/formatter.module.mjs +4 -4
  7. package/esm2020/directives/iban-formatter.directive.mjs +3 -3
  8. package/esm2020/directives/ide-formatter.directive.mjs +3 -3
  9. package/esm2020/directives/ndc-formatter.directive.mjs +3 -3
  10. package/esm2020/foehn-address/foehn-address.module.mjs +4 -4
  11. package/esm2020/foehn-address/foehn-display-address.component.mjs +3 -3
  12. package/esm2020/foehn-address/foehn-input-address.component.mjs +3 -3
  13. package/esm2020/foehn-address/foehn-input-foreign-locality.component.mjs +3 -3
  14. package/esm2020/foehn-address/foehn-input-foreign-street.component.mjs +3 -3
  15. package/esm2020/foehn-agenda/foehn-agenda-navigation/foehn-agenda-navigation.component.mjs +3 -3
  16. package/esm2020/foehn-agenda/foehn-agenda-timeslot-panel/foehn-agenda-timeslot-panel.component.mjs +3 -3
  17. package/esm2020/foehn-agenda/foehn-agenda.component.mjs +3 -3
  18. package/esm2020/foehn-agenda/foehn-agenda.module.mjs +4 -4
  19. package/esm2020/foehn-autocomplete/foehn-autocomplete.component.mjs +3 -3
  20. package/esm2020/foehn-autocomplete/foehn-autocomplete.module.mjs +4 -4
  21. package/esm2020/foehn-boolean/foehn-boolean-checkbox.component.mjs +3 -3
  22. package/esm2020/foehn-boolean/foehn-boolean-radio.component.mjs +3 -3
  23. package/esm2020/foehn-boolean/foehn-boolean.module.mjs +4 -4
  24. package/esm2020/foehn-breadcrumb/breadcrumb-event.service.mjs +3 -3
  25. package/esm2020/foehn-breadcrumb/foehn-breadcrumb.component.mjs +3 -3
  26. package/esm2020/foehn-breadcrumb/foehn-breadcrumb.module.mjs +4 -4
  27. package/esm2020/foehn-checkables/foehn-checkable-group.component.mjs +3 -3
  28. package/esm2020/foehn-checkables/foehn-checkables.module.mjs +4 -4
  29. package/esm2020/foehn-checkables/foehn-checkbox.component.mjs +3 -3
  30. package/esm2020/foehn-checkables/foehn-radio.component.mjs +3 -3
  31. package/esm2020/foehn-checkables/foehn-select.component.mjs +3 -3
  32. package/esm2020/foehn-confirm-modal/foehn-confirm-modal.component.mjs +3 -3
  33. package/esm2020/foehn-confirm-modal/foehn-confirm-modal.module.mjs +4 -4
  34. package/esm2020/foehn-confirm-modal/foehn-confirm-modal.service.mjs +3 -3
  35. package/esm2020/foehn-date-picker/foehn-date-picker.component.mjs +3 -3
  36. package/esm2020/foehn-date-picker/foehn-date-picker.module.mjs +4 -4
  37. package/esm2020/foehn-date-picker-button/foehn-date-picker-button.component.mjs +3 -3
  38. package/esm2020/foehn-date-picker-button/foehn-date-picker-button.module.mjs +4 -4
  39. package/esm2020/foehn-debug-summary/foehn-debug-summary.component.mjs +3 -3
  40. package/esm2020/foehn-debug-summary/foehn-debug-summary.component.module.mjs +4 -4
  41. package/esm2020/foehn-decision-electronique/foehn-decision-electronique.component.mjs +3 -3
  42. package/esm2020/foehn-decision-electronique/foehn-decision-electronique.module.mjs +4 -4
  43. package/esm2020/foehn-footer/foehn-footer.component.mjs +3 -3
  44. package/esm2020/foehn-footer/foehn-footer.module.mjs +4 -4
  45. package/esm2020/foehn-form/foehn-form.component.mjs +3 -3
  46. package/esm2020/foehn-form/foehn-form.module.mjs +4 -4
  47. package/esm2020/foehn-form/register-ng-model.service.mjs +3 -3
  48. package/esm2020/foehn-growl/foehn-growl.component.mjs +3 -3
  49. package/esm2020/foehn-growl/foehn-growl.module.mjs +4 -4
  50. package/esm2020/foehn-growl/growl-broker.service.mjs +3 -3
  51. package/esm2020/foehn-header/foehn-header.component.mjs +3 -3
  52. package/esm2020/foehn-header/foehn-header.module.mjs +4 -4
  53. package/esm2020/foehn-header/foehn-skip-link.component.mjs +3 -3
  54. package/esm2020/foehn-help-modal/foehn-help-modal.component.mjs +3 -3
  55. package/esm2020/foehn-help-modal/foehn-help-modal.module.mjs +4 -4
  56. package/esm2020/foehn-icons/abstract-icon-component.mjs +3 -3
  57. package/esm2020/foehn-icons/foehn-icon-calendar.component.mjs +3 -3
  58. package/esm2020/foehn-icons/foehn-icon-check-square-o.component.mjs +3 -3
  59. package/esm2020/foehn-icons/foehn-icon-check.component.mjs +3 -3
  60. package/esm2020/foehn-icons/foehn-icon-chevron-down.component.mjs +3 -3
  61. package/esm2020/foehn-icons/foehn-icon-chevron-left.component.mjs +3 -3
  62. package/esm2020/foehn-icons/foehn-icon-chevron-right.component.mjs +3 -3
  63. package/esm2020/foehn-icons/foehn-icon-chevron-up.component.mjs +3 -3
  64. package/esm2020/foehn-icons/foehn-icon-clock.component.mjs +3 -3
  65. package/esm2020/foehn-icons/foehn-icon-comment-dots.component.mjs +3 -3
  66. package/esm2020/foehn-icons/foehn-icon-edit.component.mjs +3 -3
  67. package/esm2020/foehn-icons/foehn-icon-external-link-alt.component.mjs +3 -3
  68. package/esm2020/foehn-icons/foehn-icon-file-pdf.component.mjs +3 -3
  69. package/esm2020/foehn-icons/foehn-icon-info-circle.component.mjs +3 -3
  70. package/esm2020/foehn-icons/foehn-icon-lock.component.mjs +3 -3
  71. package/esm2020/foehn-icons/foehn-icon-map-marker.component.mjs +3 -3
  72. package/esm2020/foehn-icons/foehn-icon-minus-circle.component.mjs +3 -3
  73. package/esm2020/foehn-icons/foehn-icon-plus-circle.component.mjs +3 -3
  74. package/esm2020/foehn-icons/foehn-icon-plus-square.component.mjs +3 -3
  75. package/esm2020/foehn-icons/foehn-icon-search.component.mjs +3 -3
  76. package/esm2020/foehn-icons/foehn-icon-times.component.mjs +3 -3
  77. package/esm2020/foehn-icons/foehn-icon-trash-alt.component.mjs +3 -3
  78. package/esm2020/foehn-icons/foehn-icon-unlock-alt.component.mjs +3 -3
  79. package/esm2020/foehn-icons/foehn-icons.module.mjs +4 -4
  80. package/esm2020/foehn-input/foehn-input-email.component.mjs +3 -3
  81. package/esm2020/foehn-input/foehn-input-hidden.component.mjs +3 -3
  82. package/esm2020/foehn-input/foehn-input-number.component.mjs +3 -3
  83. package/esm2020/foehn-input/foehn-input-password.component.mjs +3 -3
  84. package/esm2020/foehn-input/foehn-input-phone.component.mjs +3 -3
  85. package/esm2020/foehn-input/foehn-input-string.component.mjs +3 -3
  86. package/esm2020/foehn-input/foehn-input-text.component.mjs +3 -3
  87. package/esm2020/foehn-input/foehn-input-textarea.component.mjs +3 -3
  88. package/esm2020/foehn-input/foehn-input.component.mjs +3 -3
  89. package/esm2020/foehn-input/foehn-input.module.mjs +4 -4
  90. package/esm2020/foehn-input-date/foehn-input-date.component.mjs +3 -3
  91. package/esm2020/foehn-input-date-time/foehn-input-date-time.component.mjs +3 -3
  92. package/esm2020/foehn-input-time/foehn-input-time.component.mjs +3 -3
  93. package/esm2020/foehn-list/foehn-list.component.mjs +3 -3
  94. package/esm2020/foehn-list/foehn-list.module.mjs +4 -4
  95. package/esm2020/foehn-menu-prestation/abstract-list-item-detail-page.component.mjs +3 -3
  96. package/esm2020/foehn-menu-prestation/abstract-menu-page.component.mjs +3 -3
  97. package/esm2020/foehn-menu-prestation/abstract-page-from-menu.component.mjs +3 -3
  98. package/esm2020/foehn-menu-prestation/foehn-error-pill/foehn-error-pill.component.mjs +3 -3
  99. package/esm2020/foehn-menu-prestation/foehn-list-summary/foehn-list-summary.component.mjs +3 -3
  100. package/esm2020/foehn-menu-prestation/foehn-menu-items/foehn-menu-item/foehn-menu-item.component.mjs +3 -3
  101. package/esm2020/foehn-menu-prestation/foehn-menu-items/foehn-menu-item-transmit/foehn-menu-item-transmit.component.mjs +3 -3
  102. package/esm2020/foehn-menu-prestation/foehn-menu-prestation.module.mjs +4 -4
  103. package/esm2020/foehn-misc/foehn-abbr.component.mjs +3 -3
  104. package/esm2020/foehn-misc/foehn-misc.module.mjs +4 -4
  105. package/esm2020/foehn-modal/foehn-modal.component.mjs +3 -3
  106. package/esm2020/foehn-modal/foehn-modal.module.mjs +4 -4
  107. package/esm2020/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component.mjs +3 -3
  108. package/esm2020/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.module.mjs +4 -4
  109. package/esm2020/foehn-nav13/foehn-input-nav13.component.mjs +3 -3
  110. package/esm2020/foehn-nav13/foehn-input-nav13.module.mjs +4 -4
  111. package/esm2020/foehn-navigation/foehn-navigation.component.mjs +3 -3
  112. package/esm2020/foehn-navigation/foehn-navigation.module.mjs +4 -4
  113. package/esm2020/foehn-navigation/foehn-navigation.service.mjs +3 -3
  114. package/esm2020/foehn-notfound/foehn-notfound.component.mjs +3 -3
  115. package/esm2020/foehn-notfound/foehn-notfound.module.mjs +4 -4
  116. package/esm2020/foehn-page/foehn-page-counter.component.mjs +3 -3
  117. package/esm2020/foehn-page/foehn-page-modal.component.mjs +3 -3
  118. package/esm2020/foehn-page/foehn-page-modal.service.mjs +3 -3
  119. package/esm2020/foehn-page/foehn-page.component.mjs +3 -3
  120. package/esm2020/foehn-page/foehn-page.module.mjs +4 -4
  121. package/esm2020/foehn-page/foehn-page.service.mjs +3 -3
  122. package/esm2020/foehn-recap-section/foehn-recap-section.component.mjs +3 -3
  123. package/esm2020/foehn-recap-section/foehn-recap-section.module.mjs +4 -4
  124. package/esm2020/foehn-remaining-alerts-summary/foehn-remaining-alerts-summary.component.mjs +3 -3
  125. package/esm2020/foehn-remaining-alerts-summary/foehn-remaining-alerts-summary.module.mjs +4 -4
  126. package/esm2020/foehn-status-progress-bar/foehn-status-progress-bar.component.mjs +3 -3
  127. package/esm2020/foehn-status-progress-bar/foehn-status-progress-bar.module.mjs +4 -4
  128. package/esm2020/foehn-table/foehn-table.component.mjs +3 -3
  129. package/esm2020/foehn-table/foehn-table.module.mjs +4 -4
  130. package/esm2020/foehn-upload/abstract-foehn-uploader.component.mjs +3 -3
  131. package/esm2020/foehn-upload/foehn-bo-multi-upload/bo-multi-upload.service.mjs +3 -3
  132. package/esm2020/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.mjs +3 -3
  133. package/esm2020/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.module.mjs +4 -4
  134. package/esm2020/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.mjs +3 -3
  135. package/esm2020/foehn-upload/foehn-multi-upload/foehn-multi-upload.module.mjs +4 -4
  136. package/esm2020/foehn-upload/foehn-multi-upload/multi-upload.service.mjs +3 -3
  137. package/esm2020/foehn-upload/foehn-multi-upload/pending-upload.service.mjs +3 -3
  138. package/esm2020/foehn-upload/foehn-picture-upload/foehn-picture-upload.component.mjs +3 -3
  139. package/esm2020/foehn-upload/foehn-picture-upload/foehn-picture-upload.module.mjs +4 -4
  140. package/esm2020/foehn-upload/foehn-upload-progress-bar/foehn-upload-progress-bar.component.mjs +3 -3
  141. package/esm2020/foehn-upload/foehn-upload-progress-bar/foehn-upload-progress-bar.module.mjs +4 -4
  142. package/esm2020/foehn-upload/foehn-upload-progress-bar/upload-progress.service.mjs +3 -3
  143. package/esm2020/foehn-user-connected-as/foehn-user-connected-as.component.mjs +3 -3
  144. package/esm2020/foehn-user-connected-as/foehn-user-connected-as.module.mjs +4 -4
  145. package/esm2020/foehn-validation-alert-summary/foehn-validation-alert-summary.component.mjs +3 -3
  146. package/esm2020/foehn-validation-alert-summary/foehn-validation-alert-summary.module.mjs +4 -4
  147. package/esm2020/foehn-validation-alerts/foehn-validation-alerts.component.mjs +3 -3
  148. package/esm2020/foehn-validation-alerts/foehn-validation-alerts.module.mjs +4 -4
  149. package/esm2020/gesdem/gesdem-error-handler.service.mjs +3 -3
  150. package/esm2020/gesdem/gesdem-event.service.mjs +3 -3
  151. package/esm2020/gesdem/gesdem-handler.service.mjs +3 -3
  152. package/esm2020/gesdem/gesdem-loader.guard.mjs +3 -3
  153. package/esm2020/gesdem-action-recovery/gesdem-action-recovery-login/gesdem-action-recovery-login.component.mjs +3 -3
  154. package/esm2020/gesdem-action-recovery/gesdem-action-recovery-registration/gesdem-action-recovery-registration.component.mjs +3 -3
  155. package/esm2020/gesdem-action-recovery/gesdem-action-recovery.module.mjs +4 -4
  156. package/esm2020/gesdem-action-recovery/gesdem-action-recovery.service.mjs +3 -3
  157. package/esm2020/gesdem-confirmation/gesdem-confirmation.component.mjs +3 -3
  158. package/esm2020/gesdem-confirmation/gesdem-confirmation.module.mjs +4 -4
  159. package/esm2020/gesdem-error/gesdem-error.component.mjs +3 -3
  160. package/esm2020/gesdem-error/gesdem-error.module.mjs +4 -4
  161. package/esm2020/pipes/currency.pipe.mjs +3 -3
  162. package/esm2020/pipes/date.pipe.mjs +3 -3
  163. package/esm2020/pipes/formatIde.pipe.mjs +3 -3
  164. package/esm2020/pipes/pipes.module.mjs +4 -4
  165. package/esm2020/prestations-ng-core.module.mjs +4 -4
  166. package/esm2020/sdk-appinfo/application-info.service.mjs +3 -3
  167. package/esm2020/sdk-currency/currency.helper.mjs +3 -3
  168. package/esm2020/sdk-date/date.helper.mjs +3 -3
  169. package/esm2020/sdk-dictionary/sdk-dictionary.module.mjs +4 -4
  170. package/esm2020/sdk-dictionary/sdk-dictionary.pipe.mjs +3 -3
  171. package/esm2020/sdk-dictionary/sdk-dictionary.service.mjs +3 -3
  172. package/esm2020/sdk-epayment/sdk-epayment.component.mjs +3 -3
  173. package/esm2020/sdk-epayment/sdk-epayment.module.mjs +4 -4
  174. package/esm2020/sdk-epayment/sdk-epayment.service.mjs +3 -3
  175. package/esm2020/sdk-recaptcha/grecaptcha/grecaptcha.component.mjs +3 -3
  176. package/esm2020/sdk-recaptcha/recaptcha.service.mjs +3 -3
  177. package/esm2020/sdk-recaptcha/sdk-recaptcha.component.mjs +3 -3
  178. package/esm2020/sdk-recaptcha/sdk-recaptcha.module.mjs +4 -4
  179. package/esm2020/sdk-redirect/iam-expired-interceptor.service.mjs +3 -3
  180. package/esm2020/sdk-redirect/redirect.component.mjs +3 -3
  181. package/esm2020/sdk-redirect/sdk-redirect.module.mjs +4 -4
  182. package/esm2020/sdk-session-info/session-info-with-application.service.mjs +3 -3
  183. package/esm2020/sdk-session-info/session-info.service.mjs +3 -3
  184. package/esm2020/sdk-statistics/sdk-statistics.service.mjs +3 -3
  185. package/esm2020/sdk-support-alert/support-alert-container.component.mjs +3 -3
  186. package/esm2020/sdk-support-alert/support-alert.component.mjs +3 -3
  187. package/esm2020/sdk-support-alert/support-alert.module.mjs +4 -4
  188. package/esm2020/sdk-support-alert/support-alert.service.mjs +3 -3
  189. package/esm2020/supported-browser.mjs +2 -2
  190. package/esm2020/validation/validation-handler.service.mjs +3 -3
  191. package/fesm2015/dsivd-prestations-ng.mjs +608 -608
  192. package/fesm2015/dsivd-prestations-ng.mjs.map +1 -1
  193. package/fesm2020/dsivd-prestations-ng.mjs +608 -608
  194. package/fesm2020/dsivd-prestations-ng.mjs.map +1 -1
  195. package/package.json +4 -1
  196. package/dsivd-prestations-ng-v16.0.0-beta2.tgz +0 -0
@@ -71,10 +71,10 @@ After:
71
71
  }
72
72
  ```
73
73
 
74
- ## Adding `import` ,`jasmine` ,`jsdoc` ,`prefer-arrow` ,`rxjs` and `rxjs-angular` as plugins
74
+ ## Adding `import` ,`jasmine` ,`jsdoc` ,`simple-import-sort` ,`rxjs` and `rxjs-angular` as plugins
75
75
 
76
76
  ```bash
77
- yarn add eslint-plugin-import eslint-plugin-jasmine eslint-plugin-jsdoc eslint-plugin-prefer-arrow eslint-plugin-rxjs eslint-plugin-rxjs-angular --dev
77
+ yarn add eslint-plugin-import eslint-plugin-jasmine eslint-plugin-jsdoc eslint-plugin-simple-import-sort eslint-plugin-rxjs eslint-plugin-rxjs-angular --dev
78
78
  ```
79
79
 
80
80
  ## Customizing ESLint (inspired from OTIA and prestations-ng's files for rules)
@@ -97,11 +97,10 @@ You can replace the content of your `.eslintrc.json` with the following `json`.
97
97
  "/package.json",
98
98
  "/angular.json",
99
99
  "/karma.conf.js",
100
+ "/.eslintrc.json",
100
101
  "/tsconfig*.json",
101
- "/src/test.ts",
102
+ "/src/tsconfig*.json",
102
103
  "/src/main.ts",
103
- "/src/polyfills.ts",
104
- "/src/environments/*.ts",
105
104
  "/src/typings.d.ts"
106
105
  ],
107
106
  "reportUnusedDisableDirectives": true,
@@ -133,7 +132,6 @@ You can replace the content of your `.eslintrc.json` with the following `json`.
133
132
  "plugins": [
134
133
  "import",
135
134
  "jsdoc",
136
- "prefer-arrow",
137
135
  "rxjs",
138
136
  "rxjs-angular",
139
137
  "simple-import-sort"
@@ -334,7 +332,7 @@ You can replace the content of your `.eslintrc.json` with the following `json`.
334
332
  "jsdoc/newline-after-description": "error",
335
333
  "jsdoc/no-types": "error",
336
334
  "jsdoc/require-param-type": "off",
337
- "jsdoc/require-returns-type": "off",
335
+ "jsdoc/require-returns-type": "off"
338
336
  }
339
337
  },
340
338
  // HTML
package/UPGRADING_V16.md CHANGED
@@ -1,13 +1,82 @@
1
- # Upgrading from v15 to v16
1
+ # PRESTAKIT : Upgrading from v15 to v16
2
2
 
3
- The main feature in `prestations-ng` v15 is the update of the `@angular/*` peer dependencies
4
- to `^15.1.1`.
3
+ ## PRESTATIONS-NG
5
4
 
6
- ## Migrating to ESLint
5
+ The main feature in `prestations-ng` v16 is the update of the `@angular/*` peer dependencies
6
+ to `^15.1.1` and using `node 16+` to build.
7
7
 
8
- - Follow [our migration guide](ESLINT_MIGRATION_GUIDE.md) to migrate your project from TSLint to ESLint
8
+ ### Migrating to ESLint
9
9
 
10
- ## Updating Angular
10
+ Follow [our migration guide](ESLINT_MIGRATION_GUIDE.md) to migrate your project from TSLint to ESLint
11
+
12
+ ### Running with node 16+
13
+ #### Switch to node 16+
14
+ ##### If you are using our `slave-apps`
15
+
16
+ Be sure to update your `slave-apps` git repository and then execute
17
+ ```bash
18
+ node16
19
+ ```
20
+ which should switch your node version to 16+
21
+
22
+ ##### If you are NOT using our `slave-apps`
23
+
24
+ Be sure to use a node version 16+. To check your version, type the following command
25
+ ```bash
26
+ node --version
27
+ ```
28
+ which should print out a version 16+ otherwise, install a node 16+
29
+
30
+ #### In your project
31
+
32
+ Update your `package.json` to specify node engine
33
+ ```json
34
+ {
35
+ "engines": {
36
+ "node": ">=16.15.0"
37
+ }
38
+ }
39
+ ```
40
+
41
+ #### In your build
42
+
43
+ Open your `jenkins` folder and update your jenkins files
44
+ Define a variable if it does not already exist and add `nodeVersion: 16` then pass it on to the build
45
+
46
+ ##### UT folder
47
+ ```groovy
48
+ def args = [
49
+ nodeVersion: 16
50
+ ]
51
+
52
+ stage('Build pipeline') {
53
+ buildPipeline(args)
54
+ }
55
+ ```
56
+
57
+ ##### devex > snap folder
58
+ ```groovy
59
+ def buildArgs = [
60
+ nodeVersion : 16
61
+ ]
62
+
63
+ stage('Snap2Devex Skeleton') {
64
+ snap2Devex(buildArgs)
65
+ }
66
+ ```
67
+
68
+ ##### devex > stable folder
69
+ ```groovy
70
+ def args = [
71
+ nodeVersion : 16
72
+ ]
73
+
74
+ stage('Stable2Devex') {
75
+ stable2Devex(args)
76
+ }
77
+ ```
78
+
79
+ ### Updating Angular
11
80
 
12
81
  `prestations-ng` v16+ now supports Angular 15. You can follow the Angular update guide
13
82
  at this address:
@@ -15,7 +84,7 @@ at this address:
15
84
  - [https://update.angular.io/?l=3&v=13.0-14.0](https://update.angular.io/?l=3&v=13.0-14.0)
16
85
  - [https://update.angular.io/?l=3&v=14.0-15.0](https://update.angular.io/?l=3&v=14.0-15.0)
17
86
 
18
- ### When having migrated to ESLint
87
+ #### When having migrated to ESLint
19
88
  ```bash
20
89
  yarn global add @angular/cli@14
21
90
  ng update @angular/core@14 @angular/cli@14
@@ -34,15 +103,127 @@ ng update \
34
103
  ts-node@10
35
104
  ng update @dsivd/prestations-ng@latest
36
105
 
37
- yarn add eslint-import-resolver-typescript --dev
38
106
  yarn remove eslint-plugin-prefer-arrow
107
+ yarn add eslint-plugin-simple-import-sort --dev
108
+ yarn add eslint-import-resolver-typescript --dev
39
109
  # Remove your resolutions in package.json before executing 'yarn upgrade'
40
110
  yarn upgrade
41
111
  ```
42
112
 
43
- ## Deprecated features
113
+ ### Update "package.json" file to replace tilde(~) by caret(^) on following dependencies to be aligned with prestations-ng library
114
+
115
+ - core-js
116
+ - dayjs
117
+ - ng-http-loader
118
+ - ngx-image-cropper
119
+ - rxjs
120
+ - zone.js
121
+
122
+ Then run
123
+ ```bash
124
+ yarn install
125
+ ```
126
+
127
+ ### Update ".eslintrc.json" file if your project was already migrated to ESLint
128
+
129
+ Replace your current `.eslintrc.json` file by the one found in [ESLINT_MIGRATION.GUIDE](ESLINT_MIGRATION_GUIDE.md#customizing_eslint__inspired_from_otia_and_prestations-ng_s_files_for_rules_)
130
+
131
+ ### Cleanup your project due to CLI improvements
44
132
 
45
- ### All components extending FoehnCheckableGroupComponent such as foehn-autocomplete, foehn-checkbox, foehn-radio, foehn-select or your custom components
133
+ See section "CLI improvements" in angular's blog (https://blog.angular.io/angular-v15-is-now-available-df7be7f2f4c8)
134
+
135
+ #### Remove files/folder from your project
136
+
137
+ - delete `polyfills.ts` file
138
+ - delete `test.ts` file
139
+ - delete `environments` folder
140
+
141
+ #### Update your `angular.json` file
142
+ ```diff
143
+ {
144
+ "projects": {
145
+ "[YOUR_PROJECT_NAME]": {
146
+ "architect": {
147
+ "build": {
148
+ "options": {
149
+ - "polyfills": "src/polyfills.ts",
150
+ + "polyfills": [
151
+ + "zone.js"
152
+ + ],
153
+ },
154
+ "configurations": {
155
+ "production": {
156
+ - "fileReplacements": [
157
+ - {
158
+ - "replace": "src/environments/environment.ts",
159
+ - "with": "src/environments/environment.prod.ts"
160
+ - }
161
+ - ]
162
+ }
163
+ }
164
+ },
165
+ "test": {
166
+ "options": {
167
+ - "main": "src/test.ts",
168
+ - "polyfills": "src/polyfills.ts",
169
+ + "polyfills": [
170
+ + "zone.js",
171
+ + "zone.js/testing"
172
+ + ],
173
+ }
174
+ }
175
+ }
176
+ }
177
+ }
178
+ }
179
+ ```
180
+ #### Update your `tsconfig.app.json` file
181
+ ```diff
182
+ {
183
+ "files": [
184
+ "main.ts",
185
+ - "polyfills.ts"
186
+ ],
187
+ }
188
+ ```
189
+
190
+ #### Update your `tsconfig.spec.json` file
191
+ ```diff
192
+ {
193
+ - "files": [
194
+ - "test.ts",
195
+ - "polyfills.ts"
196
+ - ],
197
+ }
198
+ ```
199
+
200
+ ### Update `allowedCommonJsDependencies` in your `angular.json` file to add `dayjs`
201
+
202
+ ```diff
203
+ {
204
+ "projects": {
205
+ "[YOUR_PROJECT_NAME]": {
206
+ "architect": {
207
+ "build": {
208
+ "options": {
209
+ "allowedCommonJsDependencies": [
210
+ "core-js/modules/es.array.includes",
211
+ "iban",
212
+ - "zone.js/dist/zone-error"
213
+ + "zone.js/dist/zone-error",
214
+ + "dayjs"
215
+ ],
216
+ },
217
+ }
218
+ }
219
+ }
220
+ }
221
+ }
222
+ ```
223
+
224
+ ### Deprecated features
225
+
226
+ #### All components extending FoehnCheckableGroupComponent such as foehn-autocomplete, foehn-checkbox, foehn-radio, foehn-select or your custom components
46
227
 
47
228
  Removed `@Input() allElementDisabled`. Now managed by setting `@Input() disabled`.
48
229
 
@@ -54,3 +235,64 @@ Removed `@Input() allElementDisabled`. Now managed by setting `@Input() disabled
54
235
  ```html
55
236
  <foehn-radio [disabled]="true"></foehn-radio>
56
237
  ```
238
+
239
+
240
+ ## PRESTATIONS-BE
241
+
242
+ ### Library upgrade
243
+
244
+ see https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#upgrading-from-spring-boot-26
245
+
246
+ if you're using `org.springframework.boot.spring-boot-starter-parent` :
247
+ ```diff
248
+ <parent>
249
+ <groupId>org.springframework.boot</groupId>
250
+ <artifactId>spring-boot-starter-parent</artifactId>
251
+ - <version>2.6.x</version>
252
+ + <version>2.7.x</version>
253
+ <relativePath />
254
+ </parent>
255
+ ```
256
+
257
+ ```diff
258
+ - <prestations-be.version>15.x.x</prestations-be.version>
259
+ + <prestations-be.version>16.x.x</prestations-be.version>
260
+ ```
261
+
262
+
263
+ if you're using `ch.vd.cyber.parent.application-parent
264
+ ```diff
265
+ <parent>
266
+ <groupId>ch.vd.cyber.parent</groupId>
267
+ <artifactId>application-parent</artifactId>
268
+ - <version>11.x.x</version>
269
+ + <version>12.x.x</version>
270
+ <relativePath/>
271
+ </parent>
272
+ ```
273
+
274
+ ### WebServiceProperties
275
+ You should migrate your technical user (`webservice.username`) to a MiZo generated user.
276
+ Ask your **Intégrateur référent** if you're not sure.
277
+
278
+ ### Ref-inf
279
+
280
+ When using refinf :
281
+ ```diff
282
+ - refinf.baseUrl=https://int-esgate.vd.ch/refinf-rf/v5
283
+ + cyber-cache.base-url=https://int-esgate.vd.ch/cybercache-in
284
+ ```
285
+
286
+ When not using refinf (and SdkConfig.class is imported)
287
+ ```diff
288
+ - refinf.configuration.enabled=false
289
+ + cyber-cache.configuration.enabled=false
290
+ ```
291
+
292
+ ### DocumentProperties
293
+ if you're having one or more uploader, you have to define the max size for a file on each uploader in your `application.properties` :
294
+ i.e. `document.file-max-size-by-form-key.identityCard=5MB`
295
+
296
+ ### Verification page
297
+ When possible, the verification page should use the same data as the confirmation PDF
298
+ see example in skeleton : https://dsigit.etat-de-vaud.ch/outils/git/projects/CYBSDK/repos/skeleton/browse/front/src/app/verification-page
@@ -212,9 +212,9 @@ export class AbstractPageComponent {
212
212
  window.scrollTo(0, 0);
213
213
  }
214
214
  }
215
- AbstractPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: AbstractPageComponent, deps: [{ token: i1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Directive });
216
- AbstractPageComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.2", type: AbstractPageComponent, viewQueries: [{ propertyName: "foehnFormComponent", first: true, predicate: FoehnFormComponent, descendants: true, static: true }], ngImport: i0 });
217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: AbstractPageComponent, decorators: [{
215
+ AbstractPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AbstractPageComponent, deps: [{ token: i1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Directive });
216
+ AbstractPageComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: AbstractPageComponent, viewQueries: [{ propertyName: "foehnFormComponent", first: true, predicate: FoehnFormComponent, descendants: true, static: true }], ngImport: i0 });
217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AbstractPageComponent, decorators: [{
218
218
  type: Directive
219
219
  }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }]; }, propDecorators: { foehnFormComponent: [{
220
220
  type: ViewChild,
@@ -125,9 +125,9 @@ export class NumberCurrencyFormatterDirective {
125
125
  this.host.model.toString() !== newValueWithoutFormatting);
126
126
  }
127
127
  }
128
- NumberCurrencyFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: NumberCurrencyFormatterDirective, deps: [{ token: i1.FoehnInputNumberComponent }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
129
- NumberCurrencyFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.2", type: NumberCurrencyFormatterDirective, selector: "[numberCurrencyFormatter]", host: { listeners: { "blur": "onBlur($event.target.value)", "focus": "onFocus($event.target.value)", "modelChange": "onModelChange($event)" } }, ngImport: i0 });
130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: NumberCurrencyFormatterDirective, decorators: [{
128
+ NumberCurrencyFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NumberCurrencyFormatterDirective, deps: [{ token: i1.FoehnInputNumberComponent }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
129
+ NumberCurrencyFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: NumberCurrencyFormatterDirective, selector: "[numberCurrencyFormatter]", host: { listeners: { "blur": "onBlur($event.target.value)", "focus": "onFocus($event.target.value)", "modelChange": "onModelChange($event)" } }, ngImport: i0 });
130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NumberCurrencyFormatterDirective, decorators: [{
131
131
  type: Directive,
132
132
  args: [{ selector: '[numberCurrencyFormatter]' }]
133
133
  }], ctorParameters: function () { return [{ type: i1.FoehnInputNumberComponent }, { type: i0.NgZone }]; }, propDecorators: { onBlur: [{
@@ -7,16 +7,16 @@ import { NDCFormatterDirective } from './ndc-formatter.directive';
7
7
  import * as i0 from "@angular/core";
8
8
  export class FormatterModule {
9
9
  }
10
- FormatterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FormatterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
- FormatterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.2", ngImport: i0, type: FormatterModule, declarations: [NDCFormatterDirective,
10
+ FormatterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FormatterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
+ FormatterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: FormatterModule, declarations: [NDCFormatterDirective,
12
12
  NumberCurrencyFormatterDirective,
13
13
  IdeFormatterDirective,
14
14
  IbanFormatterDirective], imports: [FoehnInputModule], exports: [NDCFormatterDirective,
15
15
  NumberCurrencyFormatterDirective,
16
16
  IdeFormatterDirective,
17
17
  IbanFormatterDirective] });
18
- FormatterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FormatterModule, imports: [FoehnInputModule] });
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FormatterModule, decorators: [{
18
+ FormatterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FormatterModule, imports: [FoehnInputModule] });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FormatterModule, decorators: [{
20
20
  type: NgModule,
21
21
  args: [{
22
22
  imports: [FoehnInputModule],
@@ -17,9 +17,9 @@ export class IbanFormatterDirective {
17
17
  return iban.printFormat(value, ' ');
18
18
  }
19
19
  }
20
- IbanFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: IbanFormatterDirective, deps: [{ token: i1.FoehnInputTextComponent }], target: i0.ɵɵFactoryTarget.Directive });
21
- IbanFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.2", type: IbanFormatterDirective, selector: "[ibanFormatter]", host: { listeners: { "blur": "onBlur($event.target.value)" } }, ngImport: i0 });
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: IbanFormatterDirective, decorators: [{
20
+ IbanFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: IbanFormatterDirective, deps: [{ token: i1.FoehnInputTextComponent }], target: i0.ɵɵFactoryTarget.Directive });
21
+ IbanFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: IbanFormatterDirective, selector: "[ibanFormatter]", host: { listeners: { "blur": "onBlur($event.target.value)" } }, ngImport: i0 });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: IbanFormatterDirective, decorators: [{
23
23
  type: Directive,
24
24
  args: [{ selector: '[ibanFormatter]' }]
25
25
  }], ctorParameters: function () { return [{ type: i1.FoehnInputTextComponent }]; }, propDecorators: { onBlur: [{
@@ -26,9 +26,9 @@ export class IdeFormatterDirective {
26
26
  return trimmedValue.replace(new RegExp(IDE_PATTERN, 'g'), 'CHE-$1.$2.$3');
27
27
  }
28
28
  }
29
- IdeFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: IdeFormatterDirective, deps: [{ token: i1.FoehnInputTextComponent }], target: i0.ɵɵFactoryTarget.Directive });
30
- IdeFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.2", type: IdeFormatterDirective, selector: "[ideFormatter]", host: { listeners: { "blur": "onBlur($event.target.value)" } }, ngImport: i0 });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: IdeFormatterDirective, decorators: [{
29
+ IdeFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: IdeFormatterDirective, deps: [{ token: i1.FoehnInputTextComponent }], target: i0.ɵɵFactoryTarget.Directive });
30
+ IdeFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: IdeFormatterDirective, selector: "[ideFormatter]", host: { listeners: { "blur": "onBlur($event.target.value)" } }, ngImport: i0 });
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: IdeFormatterDirective, decorators: [{
32
32
  type: Directive,
33
33
  args: [{ selector: '[ideFormatter]' }]
34
34
  }], ctorParameters: function () { return [{ type: i1.FoehnInputTextComponent }]; }, propDecorators: { onBlur: [{
@@ -64,9 +64,9 @@ export class NDCFormatterDirective {
64
64
  return digits.replace(new RegExp(NO_CONTRIB_PATTERN_WITH_TWO_DOTS, 'g'), '$1.$2.$3');
65
65
  }
66
66
  }
67
- NDCFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: NDCFormatterDirective, deps: [{ token: i1.FoehnInputTextComponent }], target: i0.ɵɵFactoryTarget.Directive });
68
- NDCFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.2", type: NDCFormatterDirective, selector: "[ndcFormatter]", host: { listeners: { "blur": "onBlur($event.target.value)" } }, ngImport: i0 });
69
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: NDCFormatterDirective, decorators: [{
67
+ NDCFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NDCFormatterDirective, deps: [{ token: i1.FoehnInputTextComponent }], target: i0.ɵɵFactoryTarget.Directive });
68
+ NDCFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: NDCFormatterDirective, selector: "[ndcFormatter]", host: { listeners: { "blur": "onBlur($event.target.value)" } }, ngImport: i0 });
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NDCFormatterDirective, decorators: [{
70
70
  type: Directive,
71
71
  args: [{ selector: '[ndcFormatter]' }]
72
72
  }], ctorParameters: function () { return [{ type: i1.FoehnInputTextComponent }]; }, propDecorators: { onBlur: [{
@@ -11,8 +11,8 @@ import { FoehnInputForeignStreetComponent } from './foehn-input-foreign-street.c
11
11
  import * as i0 from "@angular/core";
12
12
  export class FoehnAddressModule {
13
13
  }
14
- FoehnAddressModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FoehnAddressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
15
- FoehnAddressModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.2", ngImport: i0, type: FoehnAddressModule, declarations: [FoehnInputAddressComponent,
14
+ FoehnAddressModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnAddressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
15
+ FoehnAddressModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: FoehnAddressModule, declarations: [FoehnInputAddressComponent,
16
16
  FoehnDisplayAddressComponent,
17
17
  FoehnInputForeignLocalityComponent,
18
18
  FoehnInputForeignStreetComponent], imports: [CommonModule,
@@ -23,12 +23,12 @@ FoehnAddressModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", vers
23
23
  FoehnDisplayAddressComponent,
24
24
  FoehnInputForeignLocalityComponent,
25
25
  FoehnInputForeignStreetComponent] });
26
- FoehnAddressModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FoehnAddressModule, imports: [CommonModule,
26
+ FoehnAddressModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnAddressModule, imports: [CommonModule,
27
27
  SdkDictionaryModule,
28
28
  FoehnAutocompleteModule,
29
29
  FoehnInputModule,
30
30
  FoehnValidationAlertsModule] });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FoehnAddressModule, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnAddressModule, decorators: [{
32
32
  type: NgModule,
33
33
  args: [{
34
34
  imports: [
@@ -59,9 +59,9 @@ export class FoehnDisplayAddressComponent {
59
59
  return lines;
60
60
  }
61
61
  }
62
- FoehnDisplayAddressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FoehnDisplayAddressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
63
- FoehnDisplayAddressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: FoehnDisplayAddressComponent, selector: "foehn-display-address", inputs: { address: "address" }, ngImport: i0, template: "<address class=\"foehn-address\" *ngIf=\"address\">\n <div *ngFor=\"let addressLine of getLines(address)\">{{ addressLine }}</div>\n</address>\n", styles: [".foehn-address{margin:0;padding:0}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FoehnDisplayAddressComponent, decorators: [{
62
+ FoehnDisplayAddressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnDisplayAddressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
63
+ FoehnDisplayAddressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: FoehnDisplayAddressComponent, selector: "foehn-display-address", inputs: { address: "address" }, ngImport: i0, template: "<address class=\"foehn-address\" *ngIf=\"address\">\n <div *ngFor=\"let addressLine of getLines(address)\">{{ addressLine }}</div>\n</address>\n", styles: [".foehn-address{margin:0;padding:0}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnDisplayAddressComponent, decorators: [{
65
65
  type: Component,
66
66
  args: [{ selector: 'foehn-display-address', template: "<address class=\"foehn-address\" *ngIf=\"address\">\n <div *ngFor=\"let addressLine of getLines(address)\">{{ addressLine }}</div>\n</address>\n", styles: [".foehn-address{margin:0;padding:0}\n"] }]
67
67
  }], propDecorators: { address: [{
@@ -338,15 +338,15 @@ export class FoehnInputAddressComponent extends FoehnInputComponent {
338
338
  this.isEmpty(this.addressLine2));
339
339
  }
340
340
  }
341
- FoehnInputAddressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FoehnInputAddressComponent, deps: [{ token: i1.HttpClient }, { token: i0.NgZone }, { token: i2.SdkDictionaryService }], target: i0.ɵɵFactoryTarget.Component });
342
- FoehnInputAddressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: FoehnInputAddressComponent, selector: "foehn-input-address", inputs: { countriesUrl: "countriesUrl", isOnlySwiss: "isOnlySwiss", showPostOfficeBoxText: "showPostOfficeBoxText", showAdressLines: "showAdressLines", showAdressLine1: "showAdressLine1", showAdressLine2: "showAdressLine2", specifiedCanton: "specifiedCanton", countryRequired: "countryRequired", swissNpaLocalityRequired: "swissNpaLocalityRequired", streetRequired: "streetRequired", streetNumberRequired: "streetNumberRequired", foreignZipCodeRequired: "foreignZipCodeRequired", foreignLocalityRequired: "foreignLocalityRequired", foreignStreetRequired: "foreignStreetRequired", foreignStreetNumberRequired: "foreignStreetNumberRequired", postOfficeBoxTextRequired: "postOfficeBoxTextRequired", addressLine1Required: "addressLine1Required", addressLine2Required: "addressLine2Required", withCompanyLocalities: "withCompanyLocalities" }, providers: [
341
+ FoehnInputAddressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnInputAddressComponent, deps: [{ token: i1.HttpClient }, { token: i0.NgZone }, { token: i2.SdkDictionaryService }], target: i0.ɵɵFactoryTarget.Component });
342
+ FoehnInputAddressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: FoehnInputAddressComponent, selector: "foehn-input-address", inputs: { countriesUrl: "countriesUrl", isOnlySwiss: "isOnlySwiss", showPostOfficeBoxText: "showPostOfficeBoxText", showAdressLines: "showAdressLines", showAdressLine1: "showAdressLine1", showAdressLine2: "showAdressLine2", specifiedCanton: "specifiedCanton", countryRequired: "countryRequired", swissNpaLocalityRequired: "swissNpaLocalityRequired", streetRequired: "streetRequired", streetNumberRequired: "streetNumberRequired", foreignZipCodeRequired: "foreignZipCodeRequired", foreignLocalityRequired: "foreignLocalityRequired", foreignStreetRequired: "foreignStreetRequired", foreignStreetNumberRequired: "foreignStreetNumberRequired", postOfficeBoxTextRequired: "postOfficeBoxTextRequired", addressLine1Required: "addressLine1Required", addressLine2Required: "addressLine2Required", withCompanyLocalities: "withCompanyLocalities" }, providers: [
343
343
  {
344
344
  provide: FoehnInputComponent,
345
345
  useExisting: forwardRef(() => FoehnInputAddressComponent),
346
346
  multi: true
347
347
  }
348
348
  ], viewQueries: [{ propertyName: "foreignLocalityComponent", first: true, predicate: FoehnInputForeignLocalityComponent, descendants: true }, { propertyName: "foreignStreetComponent", first: true, predicate: FoehnInputForeignStreetComponent, descendants: true }, { propertyName: "foreignHouseNumber", first: true, predicate: ["foreignHouseNumber"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div\n [attr.id]=\"buildId() + 'Container'\"\n class=\"form-group\"\n [class.has-danger]=\"hasErrorsToDisplay()\"\n [class.vd-form-group-danger]=\"hasErrorsToDisplay()\"\n [tabIndex]=\"-1\"\n>\n <fieldset\n class=\"mb-3\"\n [attr.aria-describedby]=\"getDescribedBy()\"\n [attr.aria-invalid]=\"hasErrorsToDisplay() || null\"\n >\n <legend *ngIf=\"!!label\" [ngClass]=\"isLabelSrOnly ? 'sr-only' : 'vd-p'\">\n <span [innerHTML]=\"label\"></span>\n <span\n *ngIf=\"!required && !hideNotRequiredExtraLabel\"\n aria-hidden=\"true\"\n >\n {{ 'foehn-input.optional' | fromDictionary }}\n </span>\n </legend>\n\n <foehn-validation-alerts [component]=\"this\"></foehn-validation-alerts>\n\n <small\n *ngIf=\"helpText\"\n [attr.id]=\"buildId() + 'Help'\"\n class=\"text-secondary\"\n [innerHTML]=\"helpText\"\n ></small>\n\n <ng-content></ng-content>\n\n <foehn-autocomplete\n *ngIf=\"!isOnlySwiss\"\n [label]=\"'foehn-input-address.country.label' | fromDictionary\"\n [elements]=\"countries | async\"\n elementLabel=\"shortNameFr\"\n [elementValue]=\"identity\"\n [elementValueIdentity]=\"countryIdentity\"\n (modelChange)=\"countryUpdated($event)\"\n (userInput)=\"userInputCountry()\"\n [model]=\"country\"\n [name]=\"name + '.country'\"\n [required]=\"countryRequired\"\n [disabled]=\"disabled\"\n ></foehn-autocomplete>\n\n <ng-container *ngIf=\"isSwiss()\">\n <foehn-autocomplete\n [label]=\"'foehn-input-address.locality.label' | fromDictionary\"\n [elements]=\"localities | async\"\n [elementLabel]=\"getLocalityDisplayedName\"\n [elementValue]=\"identity\"\n [elementValueIdentity]=\"localityIdentity\"\n (modelChange)=\"localityUpdated($event)\"\n (userInput)=\"userInputLocality($event)\"\n [model]=\"locality\"\n [name]=\"name + '.locality'\"\n [allowCustomValue]=\"disabled\"\n [required]=\"swissNpaLocalityRequired\"\n [disabled]=\"!country || disabled\"\n ></foehn-autocomplete>\n\n <foehn-autocomplete\n [label]=\"'foehn-input-address.street.label' | fromDictionary\"\n [elements]=\"streets | async\"\n elementLabel=\"longName\"\n [elementValue]=\"identity\"\n [elementValueIdentity]=\"streetIdentity\"\n (modelChange)=\"streetUpdated($event)\"\n [model]=\"street\"\n [name]=\"name + '.street'\"\n [allowCustomValue]=\"true\"\n [customValueModelGenerator]=\"streetGenerator\"\n [required]=\"isStreetRequired()\"\n [helpText]=\"\n 'foehn-input-address.street.help-text' | fromDictionary\n \"\n [customErrors]=\"streetCustomErrors\"\n (userInput)=\"userInputStreet($event)\"\n [disabled]=\"!country || disabled\"\n ></foehn-autocomplete>\n\n <foehn-autocomplete\n [label]=\"\n 'foehn-input-address.houseNumber.label' | fromDictionary\n \"\n [elements]=\"streetNumbers | async\"\n elementLabel=\"name\"\n elementValue=\"name\"\n [(model)]=\"houseNumber\"\n [name]=\"name + '.houseNumber'\"\n [allowCustomValue]=\"true\"\n [helpText]=\"\n 'foehn-input-address.houseNumber.help-text' | fromDictionary\n \"\n (modelChange)=\"updateAddress()\"\n (userInput)=\"handleUserInput()\"\n [required]=\"streetNumberRequired\"\n [disabled]=\"!country || disabled\"\n ></foehn-autocomplete>\n </ng-container>\n\n <ng-container *ngIf=\"!isSwiss()\">\n <!--\n Component <foehn-input-foreign-locality> is special because we use the same model when swiss or foreigner.\n To do so, we need:\n - Errors will be bind on 'locality' when NULL or on 'zipCode' and 'longName' model inside component when EMPTY\n - Hide label from component because we need label from children to be displayed (isLabelSrOnly: true)\n - required and disabled params are transmitted to children\n -->\n <foehn-input-foreign-locality\n [label]=\"'foehn-input-address.locality.label' | fromDictionary\"\n [name]=\"name + '.locality'\"\n [(model)]=\"locality\"\n [zipCodeRequired]=\"foreignZipCodeRequired\"\n [localityRequired]=\"foreignLocalityRequired\"\n [isLabelSrOnly]=\"true\"\n [disabled]=\"!country || disabled\"\n (modelChange)=\"updateAddress()\"\n (userInput)=\"handleUserInput()\"\n ></foehn-input-foreign-locality>\n <!--\n Component <foehn-input-foreign-street> is special because we use the same model when swiss or foreigner.\n To do so, we need:\n - Errors will be bind on 'street' when NULL or on 'longName' model inside component when EMPTY\n - required, helpText, isLabelSrOnly and disabled params are transmitted to children\n -->\n <foehn-input-foreign-street\n [label]=\"'foehn-input-address.street.label' | fromDictionary\"\n [name]=\"name + '.street'\"\n [(model)]=\"street\"\n [required]=\"isForeignStreetRequired()\"\n [helpText]=\"\n 'foehn-input-address.street.help-text' | fromDictionary\n \"\n [customErrors]=\"streetCustomErrors\"\n [disabled]=\"!country || disabled\"\n (modelChange)=\"updateAddress()\"\n (userInput)=\"handleUserInput()\"\n ></foehn-input-foreign-street>\n\n <foehn-input-text\n #foreignHouseNumber\n [label]=\"\n 'foehn-input-address.houseNumber.label' | fromDictionary\n \"\n [name]=\"name + '.houseNumber'\"\n [(model)]=\"houseNumber\"\n [helpText]=\"\n 'foehn-input-address.houseNumber.help-text' | fromDictionary\n \"\n [disabled]=\"!country || disabled\"\n (modelChange)=\"updateAddress()\"\n (userInput)=\"handleUserInput()\"\n [required]=\"foreignStreetNumberRequired\"\n ></foehn-input-text>\n </ng-container>\n\n <foehn-input-text\n *ngIf=\"showPostOfficeBoxText\"\n [(model)]=\"postOfficeBoxText\"\n [helpText]=\"\n 'foehn-input-address.postOfficeBoxText.help-text'\n | fromDictionary\n \"\n [label]=\"\n 'foehn-input-address.postOfficeBoxText.label' | fromDictionary\n \"\n [name]=\"name + '.postOfficeBoxText'\"\n (modelChange)=\"updateAddress()\"\n (userInput)=\"handleUserInput()\"\n [required]=\"isPostOfficeBoxTextRequired()\"\n [disabled]=\"disabled\"\n ></foehn-input-text>\n\n <foehn-input-text\n *ngIf=\"showAdressLines && showAdressLine1\"\n [(model)]=\"addressLine1\"\n [label]=\"'foehn-input-address.addressLine1.label' | fromDictionary\"\n [name]=\"name + '.addressLine1'\"\n (modelChange)=\"updateAddress()\"\n (userInput)=\"handleUserInput()\"\n [required]=\"addressLine1Required\"\n [autocomplete]=\"'address-line2'\"\n [disabled]=\"disabled\"\n ></foehn-input-text>\n\n <foehn-input-text\n *ngIf=\"showAdressLines && showAdressLine2\"\n [(model)]=\"addressLine2\"\n [label]=\"'foehn-input-address.addressLine2.label' | fromDictionary\"\n [name]=\"name + '.addressLine2'\"\n (modelChange)=\"updateAddress()\"\n (userInput)=\"handleUserInput()\"\n [required]=\"addressLine2Required\"\n [autocomplete]=\"'address-line3'\"\n [disabled]=\"disabled\"\n ></foehn-input-text>\n </fieldset>\n</div>\n", dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.FoehnAutocompleteComponent, selector: "foehn-autocomplete", inputs: ["searchValueMinCharsCount", "allowCustomValue", "customValueModelGenerator", "itemHeightInSuggestionListInPx", "elementSuggestionLabel", "caseSensitiveSearch", "disabled"] }, { kind: "component", type: i5.FoehnInputTextComponent, selector: "foehn-input-text", inputs: ["numberOnly"] }, { kind: "component", type: i6.FoehnValidationAlertsComponent, selector: "foehn-validation-alerts", inputs: ["component", "shouldErrorsBeLive"] }, { kind: "component", type: i7.FoehnInputForeignLocalityComponent, selector: "foehn-input-foreign-locality", inputs: ["localityRequired", "zipCodeRequired"] }, { kind: "component", type: i8.FoehnInputForeignStreetComponent, selector: "foehn-input-foreign-street" }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i9.SdkDictionaryPipe, name: "fromDictionary" }] });
349
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FoehnInputAddressComponent, decorators: [{
349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnInputAddressComponent, decorators: [{
350
350
  type: Component,
351
351
  args: [{ selector: 'foehn-input-address', providers: [
352
352
  {
@@ -41,15 +41,15 @@ export class FoehnInputForeignLocalityComponent extends FoehnInputComponent {
41
41
  return { zipCode: this.zipCode, longName: this.longName };
42
42
  }
43
43
  }
44
- FoehnInputForeignLocalityComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FoehnInputForeignLocalityComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
45
- FoehnInputForeignLocalityComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: FoehnInputForeignLocalityComponent, selector: "foehn-input-foreign-locality", inputs: { localityRequired: "localityRequired", zipCodeRequired: "zipCodeRequired" }, providers: [
44
+ FoehnInputForeignLocalityComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnInputForeignLocalityComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
45
+ FoehnInputForeignLocalityComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: FoehnInputForeignLocalityComponent, selector: "foehn-input-foreign-locality", inputs: { localityRequired: "localityRequired", zipCodeRequired: "zipCodeRequired" }, providers: [
46
46
  {
47
47
  provide: FoehnInputComponent,
48
48
  useExisting: forwardRef(() => FoehnInputForeignLocalityComponent),
49
49
  multi: true
50
50
  }
51
51
  ], usesInheritance: true, ngImport: i0, template: "<div\n class=\"form-group\"\n [class.has-danger]=\"hasErrorsToDisplay()\"\n [class.vd-form-group-danger]=\"hasErrorsToDisplay()\"\n [attr.id]=\"buildId('Container')\"\n tabindex=\"-1\"\n>\n <fieldset\n [attr.aria-describedby]=\"getDescribedBy()\"\n [attr.aria-invalid]=\"hasErrorsToDisplay() || null\"\n >\n <legend *ngIf=\"!!label\" [ngClass]=\"isLabelSrOnly ? 'sr-only' : 'vd-p'\">\n <span [innerHTML]=\"label\"></span>\n <span\n *ngIf=\"!isRequired() && !hideNotRequiredExtraLabel\"\n aria-hidden=\"true\"\n >\n {{ 'foehn-input.optional' | fromDictionary }}\n </span>\n </legend>\n\n <foehn-validation-alerts [component]=\"this\"></foehn-validation-alerts>\n\n <small\n *ngIf=\"helpText\"\n [attr.id]=\"buildId() + 'Help'\"\n class=\"text-secondary\"\n [innerHTML]=\"helpText\"\n ></small>\n\n <ng-content></ng-content>\n\n <foehn-input-text\n [name]=\"name + '.zipCode'\"\n [label]=\"\n 'foehn-input-foreign-locality.zipCode.label' | fromDictionary\n \"\n [(model)]=\"zipCode\"\n (modelChange)=\"updateLocality()\"\n [required]=\"zipCodeRequired\"\n (userInput)=\"handleUserInput()\"\n [disabled]=\"disabled\"\n [autocomplete]=\"'postal-code'\"\n [isErrorInherited]=\"hasErrorsToDisplay()\"\n ></foehn-input-text>\n\n <foehn-input-text\n [name]=\"name + '.longName'\"\n [label]=\"\n 'foehn-input-foreign-locality.locality.label' | fromDictionary\n \"\n [(model)]=\"longName\"\n (modelChange)=\"updateLocality()\"\n [required]=\"localityRequired\"\n (userInput)=\"handleUserInput()\"\n [disabled]=\"disabled\"\n [isErrorInherited]=\"hasErrorsToDisplay()\"\n ></foehn-input-text>\n </fieldset>\n</div>\n", styles: [":host ::ng-deep foehn-input-text:last-child .form-group{margin-bottom:0}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.FoehnInputTextComponent, selector: "foehn-input-text", inputs: ["numberOnly"] }, { kind: "component", type: i3.FoehnValidationAlertsComponent, selector: "foehn-validation-alerts", inputs: ["component", "shouldErrorsBeLive"] }, { kind: "pipe", type: i4.SdkDictionaryPipe, name: "fromDictionary" }] });
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FoehnInputForeignLocalityComponent, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnInputForeignLocalityComponent, decorators: [{
53
53
  type: Component,
54
54
  args: [{ selector: 'foehn-input-foreign-locality', providers: [
55
55
  {
@@ -34,15 +34,15 @@ export class FoehnInputForeignStreetComponent extends FoehnInputComponent {
34
34
  return { estrid: null, longName: this.longName };
35
35
  }
36
36
  }
37
- FoehnInputForeignStreetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FoehnInputForeignStreetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
38
- FoehnInputForeignStreetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: FoehnInputForeignStreetComponent, selector: "foehn-input-foreign-street", providers: [
37
+ FoehnInputForeignStreetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnInputForeignStreetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
38
+ FoehnInputForeignStreetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: FoehnInputForeignStreetComponent, selector: "foehn-input-foreign-street", providers: [
39
39
  {
40
40
  provide: FoehnInputComponent,
41
41
  useExisting: forwardRef(() => FoehnInputForeignStreetComponent),
42
42
  multi: true
43
43
  }
44
44
  ], usesInheritance: true, ngImport: i0, template: "<div\n class=\"form-group\"\n [class.has-danger]=\"hasErrorsToDisplay()\"\n [class.vd-form-group-danger]=\"hasErrorsToDisplay()\"\n [attr.id]=\"buildId('Container')\"\n tabindex=\"-1\"\n>\n <fieldset\n [attr.aria-describedby]=\"getDescribedBy()\"\n [attr.aria-invalid]=\"hasErrorsToDisplay() || null\"\n >\n <foehn-validation-alerts [component]=\"this\"></foehn-validation-alerts>\n\n <foehn-input-text\n [label]=\"label\"\n [name]=\"name + '.longName'\"\n [(model)]=\"longName\"\n (modelChange)=\"updateStreet()\"\n [required]=\"required\"\n [helpText]=\"helpText\"\n (userInput)=\"handleUserInput()\"\n [disabled]=\"disabled\"\n [isLabelSrOnly]=\"isLabelSrOnly\"\n [autocomplete]=\"'address-line1'\"\n [isErrorInherited]=\"hasErrorsToDisplay()\"\n >\n <ng-content></ng-content>\n </foehn-input-text>\n </fieldset>\n</div>\n", styles: [":host ::ng-deep foehn-input-text:last-child .form-group{margin-bottom:0}\n"], dependencies: [{ kind: "component", type: i1.FoehnInputTextComponent, selector: "foehn-input-text", inputs: ["numberOnly"] }, { kind: "component", type: i2.FoehnValidationAlertsComponent, selector: "foehn-validation-alerts", inputs: ["component", "shouldErrorsBeLive"] }] });
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: FoehnInputForeignStreetComponent, decorators: [{
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnInputForeignStreetComponent, decorators: [{
46
46
  type: Component,
47
47
  args: [{ selector: 'foehn-input-foreign-street', providers: [
48
48
  {