@dsivd/prestations-ng 16.0.4 → 16.0.5
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 +693 -577
- package/CONTRIBUTING.md +7 -2
- package/ESLINT_MIGRATION_GUIDE.md +338 -296
- package/UPGRADING_V14.md +2 -0
- package/UPGRADING_V15.md +19 -16
- package/UPGRADING_V16.md +115 -46
- package/dsivd-prestations-ng-v16.0.5.tgz +0 -0
- package/esm2020/foehn-header/foehn-header.component.mjs +8 -5
- package/esm2020/foehn-header/foehn-header.module.mjs +6 -3
- package/esm2020/foehn-page/foehn-page.component.mjs +5 -3
- package/esm2020/supported-browser.mjs +2 -2
- package/fesm2015/dsivd-prestations-ng.mjs +15 -7
- package/fesm2015/dsivd-prestations-ng.mjs.map +1 -1
- package/fesm2020/dsivd-prestations-ng.mjs +15 -7
- package/fesm2020/dsivd-prestations-ng.mjs.map +1 -1
- package/foehn-header/foehn-header.component.d.ts +2 -1
- package/foehn-header/foehn-header.module.d.ts +2 -1
- package/foehn-page/foehn-page.component.d.ts +2 -1
- package/package.json +1 -1
- package/dsivd-prestations-ng-v16.0.4.tgz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
- All notable changes to this project will be documented in this file.
|
|
4
|
-
- This changelog, as well as a demo of some of the components, can be consulted here : https://dsi-vd.github.io/prestations-ng/
|
|
4
|
+
- This changelog, as well as a demo of some of the components, can be consulted here : https://dsi-vd.github.io/prestations-ng/
|
|
5
5
|
- **You can follow how these changes are used in a real project. See: [Skeleton repo](https://portail.etat-de-vaud.ch/outils/git/projects/CYBSDK/repos/skeleton/browse)**
|
|
6
6
|
|
|
7
7
|
## Notes about versioning in Prestakit
|
|
@@ -10,180 +10,206 @@ This project does not follow the Semantic Versioning principles, since it is mad
|
|
|
10
10
|
|
|
11
11
|
The goal is to be able to quickly identify which combination of both library should be used together
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
- **Major version** : updated when a [breaking change](#breaking-change) is introduced in either library
|
|
14
|
+
- **Minor version** : updated when a change has an impact on both library
|
|
15
|
+
- **Patch version** : updated when a change has an impact on a specific library (can be more than an actual patch but shouldn't force you to change your code)
|
|
16
16
|
|
|
17
17
|
e.g.
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
18
|
+
|
|
19
|
+
- you **cannot** use prestations-be@**14**.0.2 and prestations-ng@**13**.0.0
|
|
20
|
+
- you **cannot** use prestations-be@14.**0**.0 and prestations-ng@14.**1**.0
|
|
21
|
+
- you **can** use prestations-be@**14.0**.2 and prestations-ng@**14.0**.17
|
|
21
22
|
|
|
22
23
|
### Breaking change
|
|
24
|
+
|
|
23
25
|
A change is considered **breaking** if you have to change your code or update your external dependencies (e.g. Spring Boot or Angular)
|
|
26
|
+
|
|
24
27
|
- In some specific case, we allow ourselves to not consider a change as breaking if the fix is "easy"
|
|
25
28
|
- adding a new constructor argument in one of our service is OK, if you just have to update your constructor's signature and your call to `super(...)`
|
|
26
29
|
|
|
27
30
|
---
|
|
28
31
|
|
|
32
|
+
## [16.0.5]
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- [foehn-page.component.html](projects/prestations-ng/src/foehn-page/foehn-page.component.html)
|
|
37
|
+
- [foehn-page.component.ts](projects/prestations-ng/src/foehn-page/foehn-page.component.ts)
|
|
38
|
+
|
|
39
|
+
- added `@Input() routerLinkAppTitle: string` to give to `foehn-header-component`.
|
|
40
|
+
|
|
41
|
+
- [foehn-header.component.html](projects/prestations-ng/src/foehn-header/foehn-header.component.html)
|
|
42
|
+
- [foehn-header.component.ts](projects/prestations-ng/src/foehn-header/foehn-header.component.ts)
|
|
43
|
+
- added `@Input() routerLinkAppTitle: string` to display a clickable `title` to redirect user to the
|
|
44
|
+
given `routerLink`. By default this is undefined and the title will be displayed as usual in a `span`
|
|
45
|
+
|
|
29
46
|
## [16.0.4]
|
|
30
47
|
|
|
31
48
|
### Added
|
|
32
49
|
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
50
|
+
- [foehn-page.component.html](projects/prestations-ng/src/foehn-page/foehn-page.component.html)
|
|
51
|
+
- [foehn-page.component.ts](projects/prestations-ng/src/foehn-page/foehn-page.component.ts)
|
|
52
|
+
|
|
53
|
+
- added `@Input() showSecuredAreaLoginButton = false;` to display secured area login button in header
|
|
54
|
+
|
|
55
|
+
- [foehn-header.component.html](projects/prestations-ng/src/foehn-header/foehn-header.component.html)
|
|
56
|
+
- [foehn-header.component.ts](projects/prestations-ng/src/foehn-header/foehn-header.component.ts)
|
|
57
|
+
- added `@Input() showSecuredAreaLoginButton = false;` to display secured area login button
|
|
58
|
+
|
|
59
|
+
### Fixed
|
|
60
|
+
|
|
61
|
+
- [default-dictionary.ts](projects/prestations-ng/src/sdk-dictionary/default-dictionary.ts)
|
|
62
|
+
- added missing keys:
|
|
63
|
+
- `foehn-page.browser-not-supported`
|
|
64
|
+
- `foehn-page.browser-download-invitation`
|
|
65
|
+
- `foehn-page.continue-with-same-browser`
|
|
66
|
+
- `foehn-page.browser-download-list.ou`
|
|
67
|
+
- `foehn-page.external-link.srOnly`,
|
|
68
|
+
- `foehn-header.logo.title`,
|
|
69
|
+
- `foehn-header.cyber-secured-area.identity.srOnly`,
|
|
70
|
+
- `foehn-header.cyber-secured-area.title`,
|
|
71
|
+
- `foehn-header.cyber-secured-area.connected-user`,
|
|
72
|
+
- `foehn-header.cyber-secured-area.connection.srOnly`,
|
|
73
|
+
- `foehn-header.cyber-secured-area.connection.button.title`,
|
|
74
|
+
- `foehn-header.iam-secured-area.identity.srOnly`,
|
|
75
|
+
- `foehn-header.iam-secured-area.connected-user`,
|
|
76
|
+
- `foehn-header.iam-secured-area.logout`,
|
|
77
|
+
- `foehn-skip-link.title`,
|
|
78
|
+
- `foehn-skip-link.content`
|
|
61
79
|
|
|
62
80
|
## [16.0.3]
|
|
63
81
|
|
|
64
82
|
### Fixed
|
|
65
83
|
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
84
|
+
- [foehn-input-address.components.ts](projects/prestations-ng/src/foehn-address/foehn-input-address.component.ts)
|
|
85
|
+
- clean fields that are not displayed when model is updated programmaticaly (i.e. by session info)
|
|
86
|
+
- addressLine1
|
|
87
|
+
- addressLine2
|
|
88
|
+
- postOfficeBoxText
|
|
89
|
+
- postOfficeBoxNumber
|
|
72
90
|
|
|
73
91
|
## [16.0.2]
|
|
74
92
|
|
|
75
93
|
### Fixed
|
|
76
94
|
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
95
|
+
- [foehn-list-summary.component.ts](projects/prestations-ng/src/foehn-menu-prestation/foehn-list-summary/foehn-list-summary.component.ts)
|
|
96
|
+
- fixed bug where `<foehn-table>` was not refreshed on item removal when `showAsTable = true`
|
|
80
97
|
|
|
81
98
|
## [16.0.1]
|
|
82
99
|
|
|
83
100
|
### Updated
|
|
84
|
-
|
|
85
|
-
-
|
|
86
|
-
|
|
101
|
+
|
|
102
|
+
- [foehn-list-summary.component.ts](projects/prestations-ng/src/foehn-menu-prestation/foehn-list-summary/foehn-list-summary.component.ts)
|
|
103
|
+
- added `@Input() showAsTable = false;` to display elements in a `<foehn-table>`
|
|
87
104
|
|
|
88
105
|
## [16.0.0]
|
|
89
106
|
|
|
90
107
|
### Added
|
|
91
108
|
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
109
|
+
- [UPGRADING_V16](UPGRADING_V16.md)
|
|
110
|
+
- Added migration guide
|
|
111
|
+
- [FoehnRecapSectionElement](projects/prestations-ng/src/foehn-recap-section/foehn-recap-section.component.ts)
|
|
112
|
+
|
|
113
|
+
- added field `isComment: boolean`, used to display comments without a label below the other elements of the section
|
|
114
|
+
|
|
115
|
+
- [foehn-simple-navigation.component.html](projects/prestations-ng/src/foehn-navigation/foehn-simple-navigation/foehn-simple-navigation.component.html)
|
|
116
|
+
|
|
117
|
+
- added simple navigation bar, used in list detail pages because the foehn-navigation does not properly fit in this type of pages
|
|
97
118
|
|
|
98
|
-
-
|
|
99
|
-
- added simple navigation bar, used in list detail pages because the foehn-navigation does not properly fit in this type of pages
|
|
119
|
+
- [foehn-form.component.html](projects/prestations-ng/src/foehn-form/foehn-form.component.html)
|
|
100
120
|
|
|
101
|
-
-
|
|
102
|
-
- added accessibility on form (`aria-live="polite"` and `aria-atomic="false"`)
|
|
121
|
+
- added accessibility on form (`aria-live="polite"` and `aria-atomic="false"`)
|
|
103
122
|
|
|
104
|
-
-
|
|
105
|
-
- added a dropdown menu or group menu component
|
|
123
|
+
- [foehn-dropdown-menu](projects/prestations-ng/src/foehn-dropdown-menu/foehn-dropdown-menu.component.ts)
|
|
106
124
|
|
|
107
|
-
-
|
|
125
|
+
- added a dropdown menu or group menu component
|
|
108
126
|
|
|
109
|
-
- [
|
|
110
|
-
- `@Input() id: string` used to identify dropdown-menu
|
|
111
|
-
- `@Input() model: DropdownMenuGroup[]` used to display dropdown-menu
|
|
112
|
-
- `@Input() btnCssClass = 'btn-secondary'` used to define the CSS class of the dropdown menu button, by default is a secondary button
|
|
127
|
+
- New [dropdown menu documentation](https://dsi-vd.github.io/prestations-ng/dropdown-menu) page
|
|
113
128
|
|
|
114
|
-
-
|
|
115
|
-
|
|
116
|
-
|
|
129
|
+
- [foehn-dropdown-menu](projects/prestations-ng/src/foehn-dropdown-menu/foehn-dropdown-menu.component.ts)
|
|
130
|
+
|
|
131
|
+
- `@Input() id: string` used to identify dropdown-menu
|
|
132
|
+
- `@Input() model: DropdownMenuGroup[]` used to display dropdown-menu
|
|
133
|
+
- `@Input() btnCssClass = 'btn-secondary'` used to define the CSS class of the dropdown menu button, by default is a secondary button
|
|
134
|
+
|
|
135
|
+
- [DropdownMenuGroup](projects/prestations-ng/src/foehn-dropdown-menu/dropdown-menu-group.type.ts)
|
|
136
|
+
- [DropdownMenuItem](projects/prestations-ng/src/foehn-dropdown-menu/dropdown-menu-item.type.ts)
|
|
137
|
+
- Classes used to define dropdown-menu model
|
|
117
138
|
|
|
118
139
|
### Updated
|
|
119
140
|
|
|
120
|
-
-
|
|
121
|
-
|
|
122
|
-
-
|
|
123
|
-
|
|
124
|
-
|
|
141
|
+
- [foehn-multiselect-autocomplete](projects/prestations-ng/src/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component.ts)
|
|
142
|
+
|
|
143
|
+
- added a `<legend>` to describe the selected items
|
|
144
|
+
- defaults to `foehn-multiselect-autocomplete.selected-items-list-legend` from `default-dictionary.ts`
|
|
145
|
+
- can be overriden on each component with `@Input() selectedItemsListLegend`
|
|
146
|
+
- selected pills now have the color `primary` instead of `danger`
|
|
147
|
+
|
|
148
|
+
- [gesdem-confirmation.component.ts](projects/prestations-ng/src/gesdem-confirmation/gesdem-confirmation.component.ts)
|
|
149
|
+
|
|
150
|
+
- allow to override button "Se déconnecter" (label + link) (when user is connected)
|
|
151
|
+
- via `@Input() closeButtonConnectedText` + `@Input() closeHrefConnected`
|
|
152
|
+
- via route data : `closeButtonConnectedText` + `closeHrefConnected`
|
|
153
|
+
- default value for label is `gesdem-confirmation.exit-button-connected` from dictionary
|
|
154
|
+
- default value for link is `/100018/logout`
|
|
125
155
|
|
|
126
|
-
-
|
|
127
|
-
- allow to override button "Se déconnecter" (label + link) (when user is connected)
|
|
128
|
-
- via `@Input() closeButtonConnectedText` + `@Input() closeHrefConnected`
|
|
129
|
-
- via route data : `closeButtonConnectedText` + `closeHrefConnected`
|
|
130
|
-
- default value for label is `gesdem-confirmation.exit-button-connected` from dictionary
|
|
131
|
-
- default value for link is `/100018/logout`
|
|
156
|
+
- [demo-accessibility-page.component.html](src/app/demo-accessibility-page/demo-accessibility-page.component.html)
|
|
132
157
|
|
|
133
|
-
-
|
|
134
|
-
|
|
158
|
+
- updated accessibility page to include dropdown menu
|
|
159
|
+
|
|
160
|
+
- [foehn-header.component.html](projects/prestations-ng/src/foehn-header/foehn-header.component.html)
|
|
161
|
+
- [foehn-header.component.ts](projects/prestations-ng/src/foehn-header/foehn-header.component.ts)
|
|
135
162
|
|
|
136
|
-
-
|
|
137
|
-
- [foehn-header.component.ts](projects/prestations-ng/src/foehn-header/foehn-header.component.ts)
|
|
138
|
-
- updated header to include new dropdown menu
|
|
163
|
+
- updated header to include new dropdown menu
|
|
139
164
|
|
|
140
|
-
-
|
|
141
|
-
|
|
165
|
+
- [gesdem-handler.service.ts](projects/prestations-ng/src/gesdem/gesdem-handler.service.ts)
|
|
166
|
+
- do not display a success message when downloading the PDF
|
|
142
167
|
|
|
143
168
|
### Removed
|
|
144
169
|
|
|
145
|
-
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
-
|
|
149
|
-
-
|
|
150
|
-
- [foehn-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.ts)
|
|
151
|
-
- removed `@Input() overrideMaxSizeInMo`. Now managed by the backend (see `DocumentProperties.fileMaxSizeByFormKey`)
|
|
170
|
+
- [foehn-checkable-group.component.ts](projects/prestations-ng/src/foehn-checkables/foehn-checkable-group.component.ts)
|
|
171
|
+
- removed `@Input() allElementDisabled = false`. Now managed by setting `@Input() disabled` to `true` on component.
|
|
172
|
+
- [abstract-foehn-uploader.component.ts](projects/prestations-ng/src/foehn-upload/abstract-foehn-uploader.component.ts)
|
|
173
|
+
- [foehn-bo-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.ts)
|
|
174
|
+
- [foehn-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.ts)
|
|
152
175
|
|
|
153
|
-
-
|
|
154
|
-
- removed `routerLinkGetter` attribute
|
|
176
|
+
- removed `@Input() overrideMaxSizeInMo`. Now managed by the backend (see `DocumentProperties.fileMaxSizeByFormKey`)
|
|
155
177
|
|
|
156
|
-
-
|
|
157
|
-
- removed `GesdemLoaderGuard` service extending `CanActivate` and replaced it by `CanActivateFn` function
|
|
178
|
+
- [foehn-table-column-configuration.ts](projects/prestations-ng/src/foehn-table/foehn-table-column-configuration.ts)
|
|
158
179
|
|
|
180
|
+
- removed `routerLinkGetter` attribute
|
|
181
|
+
|
|
182
|
+
- [gesdem-loader.guard](projects/prestations-ng/src/gesdem/gesdem-loader.guard.ts)
|
|
183
|
+
- removed `GesdemLoaderGuard` service extending `CanActivate` and replaced it by `CanActivateFn` function
|
|
159
184
|
|
|
160
185
|
## [15.5.15]
|
|
161
186
|
|
|
162
187
|
### Fixed
|
|
163
188
|
|
|
164
|
-
-
|
|
165
|
-
|
|
189
|
+
- [foehn-input-date-time.ts](projects/prestations-ng/src/foehn-input-date-time/foehn-input-date-time.component.ts)
|
|
190
|
+
- fixed time input (hours and seconds) not accepting 0 as number value
|
|
166
191
|
|
|
167
192
|
### Added
|
|
168
193
|
|
|
169
|
-
-
|
|
170
|
-
|
|
194
|
+
- [date-helper.ts](projects/prestations-ng/src/sdk-date/date.helper.ts)
|
|
195
|
+
- added `leftPad` function taken from `FoehnDateTimeComponent` and `FoehnTimeComponent` and fixed not adding 0 on empty string
|
|
171
196
|
|
|
172
197
|
### Updated
|
|
173
198
|
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
|
|
199
|
+
- [foehn-input-time.ts](projects/prestations-ng/src/foehn-input-time/foehn-input-time.component.ts)
|
|
200
|
+
- [foehn-input-date-time.ts](projects/prestations-ng/src/foehn-input-date-time/foehn-input-date-time.component.ts)
|
|
201
|
+
- now uses `leftPad` function from `DateHelper`
|
|
177
202
|
|
|
178
203
|
## [15.5.14]
|
|
179
204
|
|
|
180
205
|
### Fixed
|
|
181
206
|
|
|
182
|
-
-
|
|
183
|
-
|
|
207
|
+
- [foehn-input-time.ts](projects/prestations-ng/src/foehn-input-time/foehn-input-time.component.ts)
|
|
208
|
+
|
|
209
|
+
- fixed model not being updated properly
|
|
184
210
|
|
|
185
|
-
-
|
|
186
|
-
|
|
211
|
+
- [foehn-input-prefixed-text.ts](projects/prestations-ng/src/foehn-input/foehn-input-prefixed-text.component.ts)
|
|
212
|
+
- fixed model not being updated properly when prefix changes
|
|
187
213
|
|
|
188
214
|
## [15.5.13]
|
|
189
215
|
|
|
@@ -193,82 +219,84 @@ A change is considered **breaking** if you have to change your code or update yo
|
|
|
193
219
|
|
|
194
220
|
### Added
|
|
195
221
|
|
|
196
|
-
-
|
|
197
|
-
- new text input to request a text with a read-only prefix
|
|
198
|
-
- `@Input prefix: string` : the read-only prefix
|
|
199
|
-
- `@Input() prefixColClass = 'col-md-4'` : the class applied to the foehn-input-text of the prefix part
|
|
200
|
-
- `@Input() textColClass = 'col-md-8'` : the class applied to the foehn-input-text of the user text part
|
|
222
|
+
- [foehn-input-prefixed-text.ts](projects/prestations-ng/src/foehn-input/foehn-input-prefixed-text.component.ts)
|
|
201
223
|
|
|
202
|
-
-
|
|
203
|
-
-
|
|
224
|
+
- new text input to request a text with a read-only prefix
|
|
225
|
+
- `@Input prefix: string` : the read-only prefix
|
|
226
|
+
- `@Input() prefixColClass = 'col-md-4'` : the class applied to the foehn-input-text of the prefix part
|
|
227
|
+
- `@Input() textColClass = 'col-md-8'` : the class applied to the foehn-input-text of the user text part
|
|
228
|
+
|
|
229
|
+
- [gesdem-confirmation.component.ts](projects/prestations-ng/src/gesdem-confirmation/gesdem-confirmation.component.ts)
|
|
230
|
+
- go to top of the page when component initializes (same as [abstract-page-component.ts](projects/prestations-ng/src/abstract-page-component.ts)).
|
|
204
231
|
|
|
205
232
|
### Fixed
|
|
206
233
|
|
|
207
|
-
-
|
|
208
|
-
-
|
|
209
|
-
|
|
234
|
+
- [multi-upload.service.ts](projects/prestations-ng/src/foehn-upload/foehn-multi-upload/multi-upload.service.ts)
|
|
235
|
+
- [bo-multi-upload.service.ts](projects/prestations-ng/src/foehn-upload/foehn-bo-multi-upload/bo-multi-upload.service.ts)
|
|
236
|
+
- timestamp used in document `key` for multiple uploads is now generated when calling `mapToDocumentReference` (not when service is created).
|
|
210
237
|
|
|
211
238
|
## [15.5.10]
|
|
212
239
|
|
|
213
240
|
### Added
|
|
214
241
|
|
|
215
|
-
-
|
|
216
|
-
-
|
|
217
|
-
|
|
218
|
-
|
|
242
|
+
- [foehn-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.ts)
|
|
243
|
+
- [foehn-bo-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.ts)
|
|
244
|
+
- added `@Input() maxSimultaneousSelectedFiles = 50;`
|
|
245
|
+
- prevents the upload of more than `maxSimultaneousSelectedFiles` files at once and display an alert from default-dictionary.ts (`foehn-uploader.max-upload-selection-reached`)
|
|
219
246
|
|
|
220
247
|
## [15.5.9]
|
|
221
248
|
|
|
222
249
|
### Updated
|
|
223
250
|
|
|
224
|
-
-
|
|
225
|
-
-
|
|
251
|
+
- [foehn-recap-section.component.html](projects/prestations-ng/src/foehn-recap-section/foehn-recap-section.component.html)
|
|
252
|
+
- removed class `font-weight-light` for `dt` elements. By default, `dt` it is bold.
|
|
226
253
|
|
|
227
254
|
## [15.5.8]
|
|
228
255
|
|
|
229
256
|
### Fixed
|
|
230
257
|
|
|
231
|
-
-
|
|
232
|
-
|
|
258
|
+
- [recaptcha.service.ts](projects/prestations-ng/src/sdk-recaptcha/recaptcha.service.ts)
|
|
259
|
+
- when user was connected on page load and the back-end returns a captcha error => redirect to cyberlogin with return url to self
|
|
233
260
|
|
|
234
261
|
## [15.5.7]
|
|
235
262
|
|
|
236
263
|
### Fixed
|
|
237
264
|
|
|
238
|
-
-
|
|
239
|
-
|
|
265
|
+
- [recaptcha.service.ts](projects/prestations-ng/src/sdk-recaptcha/recaptcha.service.ts)
|
|
266
|
+
- Always display the captcha if it has an error (even if connected)
|
|
240
267
|
|
|
241
268
|
## [15.5.6]
|
|
242
269
|
|
|
243
270
|
### Fixed
|
|
244
271
|
|
|
245
|
-
-
|
|
246
|
-
|
|
272
|
+
- [multi-upload.service.ts](projects/prestations-ng/src/foehn-upload/foehn-multi-upload/multi-upload.service.ts)
|
|
273
|
+
- get reference from lastresponse when needed
|
|
247
274
|
|
|
248
275
|
## [15.5.5]
|
|
249
276
|
|
|
250
277
|
### Updated
|
|
251
278
|
|
|
252
|
-
-
|
|
253
|
-
|
|
254
|
-
|
|
279
|
+
- [foehn-select.component.ts](projects/prestations-ng/src/foehn-checkables/foehn-select.component.ts)
|
|
280
|
+
- an empty option is displayed if `[required]="true"` as long as no choice has been made
|
|
281
|
+
- fixes bug https://github.com/angular/angular/issues/14505
|
|
255
282
|
|
|
256
283
|
## [15.5.4]
|
|
257
284
|
|
|
258
285
|
### Updated
|
|
259
286
|
|
|
260
|
-
-
|
|
261
|
-
|
|
287
|
+
- [foehn-select.component.ts](projects/prestations-ng/src/foehn-checkables/foehn-select.component.ts)
|
|
288
|
+
- option `-` is displayed even if `[required]="true"` (but disabled in this case)
|
|
262
289
|
|
|
263
290
|
## [15.5.3]
|
|
264
291
|
|
|
265
292
|
### Added
|
|
266
293
|
|
|
267
|
-
-
|
|
268
|
-
|
|
294
|
+
- [foehn-bo-multi-upload.component.html](projects/prestations-ng/src/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.html)
|
|
295
|
+
|
|
296
|
+
- Added `<foehn-upload-progress-bar></foehn-upload-progress-bar>`
|
|
269
297
|
|
|
270
|
-
-
|
|
271
|
-
|
|
298
|
+
- [foehn-status-progress-bar.component.ts](projects/prestations-ng/src/foehn-status-progress-bar/foehn-status-progress-bar.component.ts)
|
|
299
|
+
- In your application routing module, you can force page to be in step 2 (Verification)
|
|
272
300
|
|
|
273
301
|
```diff
|
|
274
302
|
data: {
|
|
@@ -279,300 +307,324 @@ data: {
|
|
|
279
307
|
|
|
280
308
|
### Fixed
|
|
281
309
|
|
|
282
|
-
-
|
|
283
|
-
|
|
310
|
+
- [foehn-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.ts)
|
|
311
|
+
|
|
312
|
+
- Now provides `MultiUploadService` and `UploadProgressService` to avoid using a singleton
|
|
284
313
|
|
|
285
|
-
-
|
|
286
|
-
|
|
314
|
+
- [foehn-bo-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.ts)
|
|
315
|
+
|
|
316
|
+
- Now provides `BoMultiUploadService` and `UploadProgressService` to avoid using a singleton
|
|
287
317
|
|
|
288
|
-
-
|
|
289
|
-
-
|
|
290
|
-
|
|
318
|
+
- [foehn-input-date-time.component.ts](projects/prestations-ng/src/foehn-input-date-time/foehn-input-date-time.component.ts)
|
|
319
|
+
- [foehn-input-date-time.component.html](projects/prestations-ng/src/foehn-input-date-time/foehn-input-date-time.component.html)
|
|
320
|
+
- Fixed date picker not selecting nor updating model after first selection
|
|
291
321
|
|
|
292
322
|
## [15.5.2]
|
|
293
323
|
|
|
294
324
|
### Updated
|
|
295
325
|
|
|
296
|
-
-
|
|
297
|
-
-
|
|
326
|
+
- [foehn-page.component.html](projects/prestations-ng/src/foehn-page/foehn-page.component.html)
|
|
327
|
+
- update message on first page if user is not connected + reversal the buttons
|
|
298
328
|
|
|
299
329
|
## [15.5.1]
|
|
300
330
|
|
|
301
331
|
### Fixed
|
|
302
332
|
|
|
303
|
-
-
|
|
304
|
-
|
|
333
|
+
- [foehn-input-nav13.component.ts](projects/prestations-ng/src/foehn-nav13/foehn-input-nav13.component.ts)
|
|
334
|
+
- remove non numeric characters when pasting a complet avs number in the second field
|
|
305
335
|
|
|
306
336
|
## [15.5.0]
|
|
307
337
|
|
|
308
338
|
### Fixed
|
|
309
339
|
|
|
310
|
-
-
|
|
311
|
-
- Fixed errors not being displayed when switching countries (Suisse -> France)
|
|
340
|
+
- [foehn-input-address.components.ts](projects/prestations-ng/src/foehn-address/foehn-input-address.component.ts)
|
|
312
341
|
|
|
313
|
-
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
-
|
|
342
|
+
- Fixed errors not being displayed when switching countries (Suisse -> France)
|
|
343
|
+
|
|
344
|
+
- [foehn-form.components.ts](projects/prestations-ng/src/foehn-form/foehn-form.component.ts)
|
|
345
|
+
- [foehn-input.components.ts](projects/prestations-ng/src/foehn-input/foehn-input.component.ts)
|
|
346
|
+
- Fixed ngModel not being registered when deep nested FoehnInputComponent.
|
|
347
|
+
- `FoehnInputComponent` notifies `FoehnFormComponent` for its children changes using [register-ng-model.service.ts](projects/prestations-ng/src/foehn-form/register-ng-model.service.ts) service.
|
|
348
|
+
- **WARNING** `FoehnInputComponent` now implements `AfterViewInit` method so when extending, you will need to call `super.ngAfterViewInit()`
|
|
318
349
|
|
|
319
350
|
### Added
|
|
320
351
|
|
|
321
|
-
-
|
|
322
|
-
|
|
352
|
+
- [foehn-boolean-radio.component.ts](projects/prestations-ng/src/foehn-boolean/foehn-boolean-radio.component.ts)
|
|
353
|
+
|
|
354
|
+
- Added `@Input() verticalDisplay = false`
|
|
323
355
|
|
|
324
|
-
-
|
|
325
|
-
-
|
|
326
|
-
-
|
|
327
|
-
-
|
|
328
|
-
-
|
|
329
|
-
-
|
|
330
|
-
-
|
|
356
|
+
- [foehn-input-date-time.components.ts](projects/prestations-ng/src/foehn-input-date-time/foehn-input-date-time.component.ts)
|
|
357
|
+
- `@Input() disableDay = false` used to disable date input day
|
|
358
|
+
- `@Input() disableMonth = false` used to disable date input month
|
|
359
|
+
- `@Input() disableYear = false` used to disable date input year
|
|
360
|
+
- `@Input() minDate: number[]` used as minDate in datePicker
|
|
361
|
+
- `@Input() maxDate: number[]` used as maxDate in datePicker
|
|
362
|
+
- `@Output() hideDatePickerButton = false` used to hide date picker for date input
|
|
331
363
|
|
|
332
364
|
### Updated
|
|
333
365
|
|
|
334
|
-
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
366
|
+
- [foehn-input.component.ts](projects/prestations-ng/src/foehn-input/foehn-input.component.ts)
|
|
367
|
+
|
|
368
|
+
- No double-binding when component is disabled
|
|
369
|
+
- No userInput event dispatch when component is disabled
|
|
370
|
+
|
|
371
|
+
- [foehn-input-address.component.html](projects/prestations-ng/src/foehn-address/foehn-input-address.component.html)
|
|
372
|
+
- add custom error override for street auto-complete to handle error code `AtLeastOneNotNull`, see prestations-be
|
|
340
373
|
|
|
341
374
|
## [15.4.9]
|
|
342
375
|
|
|
343
376
|
### Fixed
|
|
344
377
|
|
|
345
|
-
-
|
|
346
|
-
-
|
|
347
|
-
|
|
378
|
+
- [foehn-input-number.component.ts](projects/prestations-ng/src/foehn-input/foehn-input-number.component.ts)
|
|
379
|
+
- [currency-formatter.directive.ts](projects/prestations-ng/src/directives/currency-formatter.directive.ts)
|
|
380
|
+
- fixed a bug where input was impossible after a blur event on input "-"
|
|
348
381
|
|
|
349
382
|
### Added
|
|
350
383
|
|
|
351
|
-
-
|
|
352
|
-
|
|
384
|
+
- [global.const.ts](projects/prestations-ng/src/global.const.ts)
|
|
385
|
+
|
|
386
|
+
- Added `HTTP_LOADER_FILTERED_URL: string[]` constant to be used with component `<ng-http-loader></ng-http-loader>` (input `filteredUrlPatterns`). Default value in array: `['api/support-alert', '(api\\/document(\\/([a-zA-Z0-9])+)*\\/upload)']`.
|
|
353
387
|
|
|
354
|
-
-
|
|
355
|
-
- See [documentation](upload#foehn_upload_progress_bar)
|
|
356
|
-
- Added a progress bar displaying upload progress and indeterminated document analysis
|
|
388
|
+
- [foehn-upload-progress-bar.component.ts](projects/prestations-ng/src/foehn-upload/foehn-upload-progress-bar/foehn-upload-progress-bar.component.ts)
|
|
357
389
|
|
|
358
|
-
- [
|
|
359
|
-
|
|
390
|
+
- See [documentation](upload#foehn_upload_progress_bar)
|
|
391
|
+
- Added a progress bar displaying upload progress and indeterminated document analysis
|
|
392
|
+
|
|
393
|
+
- [foehn-multi-upload.component.html](projects/prestations-ng/src/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.html)
|
|
394
|
+
- Added `<foehn-upload-progress-bar></foehn-upload-progress-bar>`
|
|
360
395
|
|
|
361
396
|
### Updated
|
|
362
397
|
|
|
363
|
-
-
|
|
364
|
-
-
|
|
365
|
-
-
|
|
398
|
+
- [gesdem-confirmation.component.html](projects/prestations-ng/src/gesdem-confirmation/gesdem-confirmation.component.html)
|
|
399
|
+
- Update link when user is connected: link redirects to demande page
|
|
400
|
+
- Move labels into default dictionary
|
|
366
401
|
|
|
367
402
|
## [15.4.8]
|
|
368
403
|
|
|
369
404
|
### Fixed
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
405
|
+
|
|
406
|
+
- [foehn-decision-electronique.component.ts](projects/prestations-ng/src/foehn-decision-electronique/foehn-decision-electronique.component.ts)
|
|
407
|
+
- use labels from `default-dictionary.ts`
|
|
408
|
+
- added an example here : https://dsi-vd.github.io/prestations-ng/espace-securise
|
|
373
409
|
|
|
374
410
|
## [15.4.7]
|
|
375
411
|
|
|
376
412
|
### Fixed
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
413
|
+
|
|
414
|
+
- [foehn-validation-alert-summary.component.ts](projects/prestations-ng/src/foehn-validation-alert-summary/foehn-validation-alert-summary.component.ts)
|
|
415
|
+
- set first letter of first word in error message to lowercase (respect words that are all upper case)
|
|
416
|
+
- "Votre prénom : Ce champ doit être rempli"
|
|
417
|
+
- is transformed to "Votre prénom : **c**e champ doit être rempli"
|
|
418
|
+
- "N° AVS : NAVS13 invalide"
|
|
419
|
+
- is not transformed
|
|
383
420
|
|
|
384
421
|
## [15.4.6]
|
|
385
422
|
|
|
386
423
|
### Fixed
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
-
|
|
424
|
+
|
|
425
|
+
- [date.helper.ts](projects/prestations-ng/src/sdk-date/date.helper.ts)
|
|
426
|
+
- fixed method `isValid(value: number[]): boolean` to avoid day shifting issues
|
|
427
|
+
- i.e. `31.02.2021` should not be transformed to `03.03.2021` and considered as valid
|
|
390
428
|
|
|
391
429
|
## [15.4.5]
|
|
392
430
|
|
|
393
431
|
### Added
|
|
394
|
-
|
|
395
|
-
|
|
432
|
+
|
|
433
|
+
- [foehn-multiselect-autocomplete](projects/prestations-ng/src/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component.ts)
|
|
434
|
+
- add `@Input() caseSensitiveSearch = false` to allow search without converting input to lowercase
|
|
396
435
|
|
|
397
436
|
## [15.4.4]
|
|
398
437
|
|
|
399
438
|
### Added
|
|
400
|
-
|
|
401
|
-
|
|
439
|
+
|
|
440
|
+
- [foehn-autocomplete.component.ts](projects/prestations-ng/src/foehn-autocomplete/foehn-autocomplete.component.ts)
|
|
441
|
+
- add `@Input() caseSensitiveSearch = false` to allow search without converting input to lowercase
|
|
402
442
|
|
|
403
443
|
## [15.4.3]
|
|
404
444
|
|
|
405
445
|
### Added
|
|
406
446
|
|
|
407
|
-
-
|
|
408
|
-
-
|
|
409
|
-
-
|
|
447
|
+
- [sdk-dictionary.service.ts](projects/prestations-ng/src/sdk-dictionary/sdk-dictionary.service.ts)
|
|
448
|
+
- added browser language detection. When browser language is not managed, default language is used.
|
|
449
|
+
- added `setDefaultLanguageCode(code: string): void` to change default language
|
|
410
450
|
|
|
411
451
|
### Fixed
|
|
412
452
|
|
|
413
|
-
-
|
|
414
|
-
-
|
|
453
|
+
- [foehn-input-email.component.ts](projects/prestations-ng/src/foehn-input/foehn-input-email.component.ts)
|
|
454
|
+
- hiding default help-modal is now possible by setting `helpModal` attribute to `null` such as `[helpModal]="null"`
|
|
415
455
|
|
|
416
456
|
### Updated
|
|
417
457
|
|
|
418
|
-
-
|
|
419
|
-
-
|
|
458
|
+
- [foehn-input-address.component.html](projects/prestations-ng/src/foehn-address/foehn-input-address.component.html)
|
|
459
|
+
- Swiss **locality** autocomplete component now allows **custom values** when **disabled**
|
|
420
460
|
|
|
421
461
|
## [15.4.2]
|
|
422
462
|
|
|
423
463
|
### Added
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
464
|
+
|
|
465
|
+
- [foehn-autocomplete.component.ts](projects/prestations-ng/src/foehn-autocomplete/foehn-autocomplete.component.ts)
|
|
466
|
+
- add `@Input() elementSuggestionLabel: any` (fallback: elementLabel) to customize suggestion list item with some HTML
|
|
467
|
+
|
|
427
468
|
### Fixed
|
|
428
|
-
|
|
429
|
-
|
|
469
|
+
|
|
470
|
+
- [default-dictionary.ts](projects/prestations-ng/src/sdk-dictionary/default-dictionary.ts)
|
|
471
|
+
- fixed label for `foehn-textarea.chars-remaining.zero` (missing plurals)
|
|
430
472
|
|
|
431
473
|
## [15.4.1]
|
|
432
474
|
|
|
433
475
|
### Fixed
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
-
|
|
438
|
-
|
|
476
|
+
|
|
477
|
+
- [support-alert.service.ts](projects/prestations-ng/src/sdk-support-alert/support-alert.service.ts)
|
|
478
|
+
- handle failure when calling support-alert api
|
|
479
|
+
- [gesdem-confirmation.component.ts](projects/prestations-ng/src/gesdem-confirmation/gesdem-confirmation.component.ts)
|
|
480
|
+
- fixed bug where `demandeIsClosedOnTransmit` was not read from route data.
|
|
439
481
|
|
|
440
482
|
## [15.4.0]
|
|
441
483
|
|
|
442
484
|
### Updated
|
|
443
|
-
- [upload.helper.ts](projects/prestations-ng/src/foehn-upload/uploader.helper.ts)
|
|
444
|
-
- manage new error code from prestations-be : `IMAGE_NOT_READABLE` (dico key : `errors.IMAGE_NOT_READABLE`)
|
|
445
485
|
|
|
446
|
-
-
|
|
447
|
-
|
|
486
|
+
- [upload.helper.ts](projects/prestations-ng/src/foehn-upload/uploader.helper.ts)
|
|
487
|
+
|
|
488
|
+
- manage new error code from prestations-be : `IMAGE_NOT_READABLE` (dico key : `errors.IMAGE_NOT_READABLE`)
|
|
489
|
+
|
|
490
|
+
- [default-dictionary.ts](projects/prestations-ng/src/sdk-dictionary/default-dictionary.ts)
|
|
491
|
+
- added dico value for key `errors.IMAGE_NOT_READABLE` (defaults to `Votre pièce jointe %1$s n'est pas une image valide`)
|
|
448
492
|
|
|
449
493
|
### Fixed
|
|
450
|
-
|
|
451
|
-
|
|
494
|
+
|
|
495
|
+
- [foehn-input-number.component.ts](projects/prestations-ng/src/foehn-input/foehn-input-number.component.ts)
|
|
496
|
+
- fixed bug where standard help text appears twice
|
|
452
497
|
|
|
453
498
|
## [15.3.1]
|
|
454
499
|
|
|
455
500
|
### Updated
|
|
456
501
|
|
|
457
|
-
-
|
|
458
|
-
|
|
459
|
-
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
-
|
|
469
|
-
|
|
470
|
-
|
|
502
|
+
- [foehn-input-number.component.ts](projects/prestations-ng/src/foehn-input/foehn-input-number.component.ts)
|
|
503
|
+
|
|
504
|
+
- As in the other components, we don't want to force the user input, when `[allowFreeInput]="false"` (which is the default) :
|
|
505
|
+
- It is still done for :
|
|
506
|
+
- `maxlength` (to avoid a number overflow in the backend)
|
|
507
|
+
- `allowDecimal` (to avoid a number conversion error in the backend)
|
|
508
|
+
- `allowNegative`
|
|
509
|
+
- `min` and `max` are not used to force the user input anymore
|
|
510
|
+
- `min` and `max` are only used to display a standard help text
|
|
511
|
+
- the standard help text is only displayed if `min` and `max` are set
|
|
512
|
+
- to better understand how to use the `foehn-input-number`, please check the explanations on https://dsi-vd.github.io/prestations-ng/input-number
|
|
513
|
+
- **apart from certain exceptions, foehn-input-number is to be used as such:**
|
|
514
|
+
- `min` and `max` to display help text
|
|
515
|
+
- `maxlength` depending on your backend
|
|
516
|
+
- `allowDecimal` and `allowNegative` when needed
|
|
471
517
|
|
|
472
|
-
-
|
|
473
|
-
|
|
474
|
-
-
|
|
475
|
-
-
|
|
476
|
-
-
|
|
518
|
+
- [foehn-input.component.ts](projects/prestations-ng/src/foehn-input/foehn-input.component.ts)
|
|
519
|
+
|
|
520
|
+
- removed `@Input() showHelpModal = false` show an help-modal related to an foehn-input
|
|
521
|
+
- removed `@Input() helpModalTitle: string` The title of the modal
|
|
522
|
+
- removed `@Input() helpModalContent: string` The content of the modal
|
|
523
|
+
- replaced by `@Input() helpModal: HelpModal`
|
|
477
524
|
|
|
478
|
-
-
|
|
479
|
-
- add value `modalSize?: string` to configure the size of the foehn-help-modal (defaults to `modal-lg`)
|
|
525
|
+
- [HelpModal](projects/prestations-ng/src/foehn-help-modal/foehn-help-modal.type.ts)
|
|
480
526
|
|
|
481
|
-
-
|
|
482
|
-
|
|
483
|
-
|
|
527
|
+
- add value `modalSize?: string` to configure the size of the foehn-help-modal (defaults to `modal-lg`)
|
|
528
|
+
|
|
529
|
+
- [Image](projects/prestations-ng/src/foehn-help-modal/foehn-help-modal.type.ts)
|
|
530
|
+
- add value `width?: string` to configure the size of the picture (defaults to `100%`)
|
|
531
|
+
- add value `height?: string` to configure the size of the picture (defaults to `auto`)
|
|
484
532
|
|
|
485
533
|
### Fixed
|
|
486
534
|
|
|
487
|
-
-
|
|
488
|
-
|
|
535
|
+
- [foehn-input-textarea.component.ts](projects/prestations-ng/src/foehn-input/foehn-input-textarea.component.ts)
|
|
536
|
+
|
|
537
|
+
- CSS color of remaining chars not being changed when input is reset
|
|
538
|
+
|
|
539
|
+
- [foehn-boolean-checkbox.component.html](projects/prestations-ng/src/foehn-boolean/foehn-boolean-checkbox.component.html)
|
|
489
540
|
|
|
490
|
-
-
|
|
491
|
-
- handle `isLabelSrOnly` input
|
|
541
|
+
- handle `isLabelSrOnly` input
|
|
492
542
|
|
|
493
|
-
-
|
|
494
|
-
|
|
495
|
-
|
|
543
|
+
- [foehn-picture-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-picture-upload/foehn-picture-upload.component.ts)
|
|
544
|
+
- check file format before trying to display the image for cropping
|
|
545
|
+
- when file has wrong extension, display error with key `foehn-picture-upload.invalid-file-type`
|
|
496
546
|
|
|
497
547
|
## [15.3.0]
|
|
498
548
|
|
|
499
549
|
### Added
|
|
500
550
|
|
|
501
|
-
-
|
|
502
|
-
-
|
|
503
|
-
-
|
|
504
|
-
|
|
505
|
-
-
|
|
506
|
-
-
|
|
507
|
-
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
- [foehn-input-email.component.ts](projects/prestations-ng/src/foehn-input/foehn-input-email.component.ts)
|
|
511
|
-
- add default help-modal in order to help user if email considered as not valid
|
|
551
|
+
- [foehn-multiselect-autocomplete.component.ts](projects/prestations-ng/src/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component.ts)
|
|
552
|
+
- add `@Input() itemHeightInSuggestionListInPx = 40` to customize height of each item in the suggestion list
|
|
553
|
+
- add `@Input() elementBadgeLabel: any = 'label'` to customize selected items labels
|
|
554
|
+
- [foehn-input.component.ts](projects/prestations-ng/src/foehn-input/foehn-input.component.ts)
|
|
555
|
+
- add `@Input() showHelpModal = false` show an help-modal related to an foehn-input
|
|
556
|
+
- add `@Input() helpModalTitle: string` The title of the modal
|
|
557
|
+
- add `@Input() helpModalContent: string` The content of the modal
|
|
558
|
+
- [foehn-input-email.component.ts](projects/prestations-ng/src/foehn-input/foehn-input-email.component.ts)
|
|
512
559
|
|
|
513
|
-
-
|
|
514
|
-
|
|
515
|
-
-
|
|
516
|
-
-
|
|
560
|
+
- add default help-modal in order to help user if email considered as not valid
|
|
561
|
+
|
|
562
|
+
- [foehn-checkable-group.component.ts](projects/prestations-ng/src/foehn-checkables/foehn-checkable-group.component.ts)
|
|
563
|
+
- add `@Input() helpModal: HelpModal`
|
|
564
|
+
- [foehn-help-modal.type.ts](projects/prestations-ng/src/foehn-help-modal/foehn-help-modal.type.ts)
|
|
565
|
+
- add buttonTitle in order to be able to specify the title of the info button
|
|
517
566
|
|
|
518
567
|
### Fixed
|
|
519
568
|
|
|
520
|
-
-
|
|
521
|
-
|
|
569
|
+
- [foehn-page.component.ts](projects/prestations-ng/src/foehn-page/foehn-page.component.ts)
|
|
570
|
+
- hide `foehn-status-progress-bar` if the prestation has a blocking alert
|
|
522
571
|
|
|
523
572
|
## [15.2.5]
|
|
524
573
|
|
|
525
574
|
### Added
|
|
526
575
|
|
|
527
|
-
-
|
|
528
|
-
-
|
|
529
|
-
|
|
576
|
+
- [foehn-autocomplete.component.ts](projects/prestations-ng/src/foehn-autocomplete/foehn-autocomplete.component.ts)
|
|
577
|
+
- add `@Input() itemHeightInSuggestionListInPx = 40` to customize height of each item in the suggestion list
|
|
578
|
+
|
|
530
579
|
### Fixed
|
|
531
580
|
|
|
532
|
-
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
581
|
+
- [foehn-input-textarea.component.ts](projects/prestations-ng/src/foehn-input/foehn-input-textarea.component.ts)
|
|
582
|
+
|
|
583
|
+
- add function `getCharCountLabel` that return the plural or singular form of the label accordingly (one dictionary key for plural and another one for singular)
|
|
584
|
+
- add default label for remaining characters in [default-dictionary.ts](projects/prestations-ng/src/sdk-dictionary/default-dictionary.ts)
|
|
585
|
+
- `'foehn-textarea.chars-remaining.plural': '{charCountLeft} caractères restants'`
|
|
586
|
+
- `'foehn-textarea.chars-remaining.singular': '{charCountLeft} caractère restant'`
|
|
587
|
+
- `'foehn-textarea.chars-remaining.zero': 'Vous avez atteint le nombre de caractère autorisé!'`
|
|
588
|
+
- `'foehn-textarea.chars-remaining.exceeded': 'Vous avez dépassé le nombre de caractères autorisés de {charCountLeft}'`
|
|
589
|
+
|
|
590
|
+
- [foehn-modal.component.html](projects/prestations-ng/src/foehn-modal/foehn-modal.component.html)
|
|
591
|
+
|
|
592
|
+
- close button label + aria-label can now be overriden in dictionary
|
|
593
|
+
- add default label for remaining characters in [default-dictionary.ts](projects/prestations-ng/src/sdk-dictionary/default-dictionary.ts)
|
|
594
|
+
- `'foehn-modal.btn-close.aria-label': 'Fermer la boite de dialogue'`
|
|
595
|
+
- `'foehn-modal.btn-close.title': 'Fermer'`
|
|
596
|
+
|
|
597
|
+
- [gesdem-confirmation.component.ts](projects/prestations-ng/src/gesdem-confirmation/gesdem-confirmation.component.ts)
|
|
539
598
|
|
|
540
|
-
-
|
|
541
|
-
- close button label + aria-label can now be overriden in dictionary
|
|
542
|
-
- add default label for remaining characters in [default-dictionary.ts](projects/prestations-ng/src/sdk-dictionary/default-dictionary.ts)
|
|
543
|
-
- `'foehn-modal.btn-close.aria-label': 'Fermer la boite de dialogue'`
|
|
544
|
-
- `'foehn-modal.btn-close.title': 'Fermer'`
|
|
599
|
+
- `@Input() hideReference = false` to choose if the confirmation message display the reference number
|
|
545
600
|
|
|
546
|
-
-
|
|
547
|
-
-
|
|
601
|
+
- [gesdem-confirmation.component.html](projects/prestations-ng/projects/prestations-ng/src/gesdem-confirmation/gesdem-confirmation.component.html)
|
|
602
|
+
- add condition `*ngIf="!hideReference"`
|
|
548
603
|
|
|
549
|
-
- [gesdem-confirmation.component.html](projects/prestations-ng/projects/prestations-ng/src/gesdem-confirmation/gesdem-confirmation.component.html)
|
|
550
|
-
- add condition `*ngIf="!hideReference"`
|
|
551
|
-
|
|
552
604
|
## [15.2.4]
|
|
553
605
|
|
|
554
606
|
### Added
|
|
555
607
|
|
|
556
|
-
-
|
|
557
|
-
-
|
|
608
|
+
- [foehn-select.component.ts](projects/prestations-ng/src/foehn-checkables/foehn-select.component.ts)
|
|
609
|
+
- add `@Input() noSelectionLabel = '-'` to customize the value displayed when the field is not required and nothing has been selected
|
|
558
610
|
|
|
559
611
|
## [15.2.3]
|
|
560
612
|
|
|
561
613
|
### Added
|
|
562
614
|
|
|
563
|
-
-
|
|
564
|
-
-
|
|
565
|
-
-
|
|
615
|
+
- [foehn-table-column-configuration.ts](projects/prestations-ng/src/foehn-table/foehn-table-column-configuration.ts)
|
|
616
|
+
- add optional field `template: TemplateRef<unknown>` to customize a cell
|
|
617
|
+
- field `valueGetter` becomes optional
|
|
566
618
|
|
|
567
619
|
### Fixed
|
|
568
620
|
|
|
569
|
-
-
|
|
570
|
-
-
|
|
621
|
+
- [redirect.component.ts](projects/prestations-ng/src/sdk-redirect/redirect.component.ts)
|
|
622
|
+
- reload page instead of redirecting to `/iam/accueil` when session has expired
|
|
571
623
|
|
|
572
624
|
### Removed
|
|
573
625
|
|
|
574
|
-
-
|
|
575
|
-
|
|
626
|
+
- [foehn-modal.component.ts](projects/prestations-ng/src/foehn-modal/foehn-modal.component.ts)
|
|
627
|
+
- removed `@Input() modalFooterText` (was not used in the template)
|
|
576
628
|
|
|
577
629
|
### Updated
|
|
578
630
|
|
|
@@ -581,441 +633,482 @@ data: {
|
|
|
581
633
|
|
|
582
634
|
### Updated
|
|
583
635
|
|
|
584
|
-
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
636
|
+
- [foehn-input-number.component.ts](projects/prestations-ng/src/foehn-input/foehn-input-number.component.ts)
|
|
637
|
+
|
|
638
|
+
- added a standard help-text that describes the expected input (i.e. "Saisir un nombre entre 0 et 999'999")
|
|
639
|
+
- label is configurable with the dictionary (`foehn-input-number.standard-help-text.label`, defaults to `Saisir un nombre entre {minValue} et {maxValue}`)
|
|
640
|
+
- is placed after the `[helpText]` if provided
|
|
641
|
+
- can be deactivated with the new `@Input() hideStandardHelpText` (defaults to `false`)
|
|
642
|
+
- added a new `@Input() allowFreeInput` (defaults to `false`)
|
|
643
|
+
- uses the component configuration to generate the standard help text, but allows the user to input anything in the field
|
|
644
|
+
- /!\ if you use this, make sure your backend can deserialize any number correctly
|
|
645
|
+
|
|
646
|
+
- [currency-formatter.directive.ts](projects/prestations-ng/src/directives/currency-formatter.directive.ts)
|
|
647
|
+
- do not format decimal part with thousands separator
|
|
648
|
+
|
|
596
649
|
## [15.2.2]
|
|
597
650
|
|
|
598
651
|
### Fixed
|
|
599
652
|
|
|
600
|
-
-
|
|
601
|
-
-
|
|
653
|
+
- [foehn-select.component.html](projects/prestations-ng/src/foehn-checkables/foehn-select.component.html)
|
|
654
|
+
- use `elementValueIdentity` function if provided
|
|
602
655
|
|
|
603
|
-
### Added
|
|
656
|
+
### Added
|
|
604
657
|
|
|
605
|
-
-
|
|
606
|
-
|
|
658
|
+
- [foehn-table-column-configuration.ts](projects/prestations-ng/src/foehn-table/foehn-table-column-configuration.ts)
|
|
659
|
+
- added optional field `iconGetter` to display an icon in a cell
|
|
607
660
|
|
|
608
661
|
## [15.2.1]
|
|
609
662
|
|
|
610
663
|
### Updated
|
|
611
664
|
|
|
612
|
-
-
|
|
613
|
-
|
|
665
|
+
- [foehn-page.component.ts](projects/prestations-ng/src/foehn-page/foehn-page.component.ts)
|
|
666
|
+
- update login message (can be discarded to continue without login)
|
|
614
667
|
|
|
615
668
|
## [15.2.0]
|
|
616
669
|
|
|
617
670
|
### Updated
|
|
618
671
|
|
|
619
|
-
-
|
|
620
|
-
- use new endpoint `/action-statut` from prestations-be to get the status without trigerring any validation
|
|
672
|
+
- [gesdem-error.component.html](projects/prestations-ng/src/gesdem-error/gesdem-error.component.html)
|
|
621
673
|
|
|
622
|
-
-
|
|
623
|
-
- added missing growl message on `createPendingPayment` failure
|
|
674
|
+
- use new endpoint `/action-statut` from prestations-be to get the status without trigerring any validation
|
|
624
675
|
|
|
676
|
+
- [sdk-epayment.service.ts](projects/prestations-ng/src/sdk-epayment/sdk-epayment.service.ts)
|
|
677
|
+
- added missing growl message on `createPendingPayment` failure
|
|
625
678
|
|
|
626
679
|
## [15.1.4]
|
|
627
680
|
|
|
628
681
|
### Updated
|
|
629
682
|
|
|
630
|
-
-
|
|
631
|
-
|
|
632
|
-
|
|
683
|
+
- [gesdem-error.component.html](projects/prestations-ng/src/gesdem-error/gesdem-error.component.html)
|
|
684
|
+
- display a custom message if the error page is displayed when the action status in `PENDING_PAYMENT`
|
|
685
|
+
- redirect to the last page if the error page is displayed when the action status is final (`TRANSFERRED`, `ABANDONED`)
|
|
633
686
|
|
|
634
687
|
## [15.1.3]
|
|
635
688
|
|
|
636
689
|
### Updated
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
-
|
|
641
|
-
|
|
690
|
+
|
|
691
|
+
- [foehn-input-nav13.component.ts](projects/prestations-ng/src/foehn-nav13/foehn-input-nav13.component.ts)
|
|
692
|
+
|
|
693
|
+
- pasting an AVS number (witouht the prefix `756`) in the first editable input will now expand it to the other inputs.
|
|
694
|
+
|
|
695
|
+
- [foehn-agenda-timeslot-panel.component.ts](projects/prestations-ng/src/foehn-agenda/foehn-agenda-timeslot-panel/foehn-agenda-timeslot-panel.component.ts)
|
|
696
|
+
- don't allow closing the panel if it would hide the selected slot
|
|
642
697
|
|
|
643
698
|
## [15.1.2]
|
|
644
699
|
|
|
645
700
|
### Removed
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
701
|
+
|
|
702
|
+
- [foehn-agenda.components.ts](projects/prestations-ng/src/foehn-agenda/foehn-agenda.component.ts)
|
|
703
|
+
- removed `@Input() minDate: number[]`, replaced by `Calendar.minAvailableDate`
|
|
704
|
+
- removed `@Input() maxDate: number[]`, replaced by `Calendar.maxAvailableDate`
|
|
649
705
|
|
|
650
706
|
### Fixed
|
|
651
|
-
|
|
652
|
-
|
|
707
|
+
|
|
708
|
+
- [foehn-date-picker.component.html](projects/prestations-ng/src/foehn-date-picker/foehn-date-picker.component.html)
|
|
709
|
+
- do not display (`hidden`) days that are not in the current month (to avoid confusion with actually disabled days)
|
|
653
710
|
|
|
654
711
|
## [15.1.1]
|
|
655
712
|
|
|
656
713
|
### Updated
|
|
657
714
|
|
|
658
|
-
-
|
|
659
|
-
- pasting an AVS number in the first editable input will now expand it to the other inputs.
|
|
715
|
+
- [foehn-input-nav13.component.ts](projects/prestations-ng/src/foehn-nav13/foehn-input-nav13.component.ts)
|
|
660
716
|
|
|
661
|
-
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
-
|
|
717
|
+
- pasting an AVS number in the first editable input will now expand it to the other inputs.
|
|
718
|
+
|
|
719
|
+
- [foehn-input-number.component.ts](projects/prestations-ng/src/foehn-input/foehn-input-number.component.ts)
|
|
720
|
+
- added a default value for `@Input() maxlength: number`, set to `9`
|
|
721
|
+
- this avoids having a value that exceeds Integer.MAX_INT which leads to a deserialization error in the backend
|
|
722
|
+
- if you expect a Long or a BigDecimal, you should override this value.
|
|
665
723
|
|
|
666
724
|
### Fixed
|
|
667
|
-
- [gesdem-confirmation.component.ts](projects/prestations-ng/src/gesdem-confirmation/gesdem-confirmation.component.ts)
|
|
668
|
-
- some boolean values were not overridable by route data :
|
|
669
|
-
- `showDownloadPdfRecapButton`
|
|
670
|
-
- `showLinkToMyDemandes`
|
|
671
|
-
- `demandeIsClosedOnTransmit`
|
|
672
725
|
|
|
673
|
-
|
|
726
|
+
- [gesdem-confirmation.component.ts](projects/prestations-ng/src/gesdem-confirmation/gesdem-confirmation.component.ts)
|
|
727
|
+
- some boolean values were not overridable by route data :
|
|
728
|
+
- `showDownloadPdfRecapButton`
|
|
729
|
+
- `showLinkToMyDemandes`
|
|
730
|
+
- `demandeIsClosedOnTransmit`
|
|
731
|
+
|
|
732
|
+
## [15.1.0]
|
|
674
733
|
|
|
675
734
|
### Added
|
|
676
735
|
|
|
677
736
|
- [ApplicationInfo](projects/prestations-ng/src/sdk-appinfo/application-info.ts)
|
|
678
|
-
- added one attribute to ApplicationInfo :
|
|
679
|
-
- `string[] mockedServices` : all properties name containing 'mock' having value != "false". Will be displayed in a warning banner at top of the page. Need prestations-ng >=15.1.0
|
|
680
737
|
|
|
681
|
-
-
|
|
682
|
-
|
|
738
|
+
- added one attribute to ApplicationInfo :
|
|
739
|
+
- `string[] mockedServices` : all properties name containing 'mock' having value != "false". Will be displayed in a warning banner at top of the page. Need prestations-ng >=15.1.0
|
|
740
|
+
|
|
741
|
+
- [foehn-input.component.ts](projects/prestations-ng/src/foehn-input/foehn-input.component.ts)
|
|
742
|
+
- `@Input() autocapitalize: string` Possible values: `off|on|words|characters`
|
|
683
743
|
|
|
684
744
|
### Fixed
|
|
685
745
|
|
|
686
|
-
-
|
|
687
|
-
|
|
746
|
+
- [foehn-input-address.component.ts](projects/prestations-ng/src/foehn-address/foehn-input-address.component.ts)
|
|
747
|
+
|
|
748
|
+
- fixed streets and houseNumbers suggestion list not being emptied when locality is cleared
|
|
749
|
+
|
|
750
|
+
- [foehn-input-date.component.ts](projects/prestations-ng/src/foehn-input-date/foehn-input-date.component.ts)
|
|
688
751
|
|
|
689
|
-
-
|
|
690
|
-
- fixed error not disappearing when selecting a date in date picker
|
|
752
|
+
- fixed error not disappearing when selecting a date in date picker
|
|
691
753
|
|
|
692
|
-
-
|
|
693
|
-
-
|
|
754
|
+
- [foehn-input.component.ts](projects/prestations-ng/src/foehn-input/foehn-input.component.ts)
|
|
755
|
+
- fixed `markAsDirty()` and `markAsPristine()` not handling `subComponents`
|
|
694
756
|
|
|
695
757
|
## [15.0.2]
|
|
696
758
|
|
|
697
759
|
### Added
|
|
698
|
-
|
|
699
|
-
|
|
760
|
+
|
|
761
|
+
- [sdk-statistics.service.ts](projects/prestations-ng/src/sdk-statistics/sdk-statistics.service.ts)
|
|
762
|
+
- New statistics tool. Set `application-info.properties.matomoUrl` & `application-info.properties.matomoSiteId` properties
|
|
700
763
|
|
|
701
764
|
### Updated
|
|
702
765
|
|
|
703
|
-
-
|
|
704
|
-
-
|
|
766
|
+
- [package.json](package.json)
|
|
767
|
+
- Updated `@dsivd/foehn` to 1.8.4. See [the changelog](https://github.com/DSI-VD/foehn/blob/master/CHANGELOG.md) for more information.
|
|
705
768
|
|
|
706
769
|
## [15.0.1]
|
|
707
770
|
|
|
708
771
|
### Fixed
|
|
709
772
|
|
|
710
|
-
-
|
|
711
|
-
|
|
712
|
-
|
|
773
|
+
- [Accessibility demo page](https://dsi-vd.github.io/prestations-ng/demo-accessibilite)
|
|
774
|
+
- fixed `foehn-input-date` migration
|
|
775
|
+
- added min/max date to `foehn-agenda`
|
|
713
776
|
|
|
714
777
|
## [15.0.0]
|
|
715
778
|
|
|
716
779
|
### Added
|
|
717
780
|
|
|
718
|
-
-
|
|
719
|
-
- Added migration guide
|
|
781
|
+
- [UPGRADING_V15](UPGRADING_V15.md)
|
|
720
782
|
|
|
721
|
-
-
|
|
783
|
+
- Added migration guide
|
|
722
784
|
|
|
723
|
-
- [
|
|
724
|
-
- Model `calendar.type.ts` ([Calendar](projects/prestations-ng/src/foehn-agenda/calendar.type.ts))
|
|
725
|
-
- Model `current-week.type.ts` ([CurrentWeek](projects/prestations-ng/src/foehn-agenda/current-week.type.ts))
|
|
726
|
-
- Model `day-slots.type.ts` ([DaySlots](projects/prestations-ng/src/foehn-agenda/day-slots.type.ts))
|
|
727
|
-
- Model `pagination-week.type.ts` ([PaginationWeek](projects/prestations-ng/src/foehn-agenda/pagination-week.type.ts))
|
|
728
|
-
- `@Input() calendar: Observable<Calendar>`
|
|
729
|
-
- `@Input() nbVisibleElements: number` default number of visible elements is 22
|
|
730
|
-
- `@Input() minDate: number[]` used as minDate in datePicker
|
|
731
|
-
- `@Input() maxDate: number[]` used as maxDate in datePicker
|
|
732
|
-
- `@Output() paginationChange: EventEmitter<PaginationWeek>()`
|
|
785
|
+
- New [agenda documentation](https://dsi-vd.github.io/prestations-ng/agenda) page
|
|
733
786
|
|
|
734
|
-
-
|
|
787
|
+
- [foehn-agenda.components.ts](projects/prestations-ng/src/foehn-agenda/foehn-agenda.component.ts)
|
|
735
788
|
|
|
736
|
-
-
|
|
737
|
-
|
|
789
|
+
- Model `calendar.type.ts` ([Calendar](projects/prestations-ng/src/foehn-agenda/calendar.type.ts))
|
|
790
|
+
- Model `current-week.type.ts` ([CurrentWeek](projects/prestations-ng/src/foehn-agenda/current-week.type.ts))
|
|
791
|
+
- Model `day-slots.type.ts` ([DaySlots](projects/prestations-ng/src/foehn-agenda/day-slots.type.ts))
|
|
792
|
+
- Model `pagination-week.type.ts` ([PaginationWeek](projects/prestations-ng/src/foehn-agenda/pagination-week.type.ts))
|
|
793
|
+
- `@Input() calendar: Observable<Calendar>`
|
|
794
|
+
- `@Input() nbVisibleElements: number` default number of visible elements is 22
|
|
795
|
+
- `@Input() minDate: number[]` used as minDate in datePicker
|
|
796
|
+
- `@Input() maxDate: number[]` used as maxDate in datePicker
|
|
797
|
+
- `@Output() paginationChange: EventEmitter<PaginationWeek>()`
|
|
798
|
+
|
|
799
|
+
- Add [foehn-status-progress-bar.component.spec.ts](projects/prestations-ng/src/foehn-status-progress-bar/foehn-status-progress-bar.component.spec.ts)
|
|
800
|
+
|
|
801
|
+
- [foehn-input-date.component.html](projects/prestations-ng/src/foehn-input-date/foehn-input-date.component.html)
|
|
802
|
+
- Added `<foehn-date-picker-button>` directly into template. Please refer to the [datepicker documentation](https://dsi-vd.github.io/prestations-ng/datepicker)
|
|
738
803
|
|
|
739
804
|
### Updated
|
|
740
805
|
|
|
741
|
-
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
-
|
|
756
|
-
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
-
|
|
762
|
-
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
-
|
|
767
|
-
-
|
|
768
|
-
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
-
|
|
785
|
-
|
|
786
|
-
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
-
|
|
790
|
-
|
|
806
|
+
- [foehn-status-progress-bar.component.ts](projects/prestations-ng/src/foehn-status-progress-bar/foehn-status-progress-bar.component.ts)
|
|
807
|
+
|
|
808
|
+
- Bugfix: no visual glitch on the first page (step 2 "Verification" was briefly displayed when starting)
|
|
809
|
+
|
|
810
|
+
- [foehn-confirm-modal.component.html](projects/prestations-ng/src/foehn-confirm-modal/foehn-confirm-modal.component.html)
|
|
811
|
+
|
|
812
|
+
- Add closeable on FoehnConfirmModalContent. Default value is true. If false, modal has to be closed by the yes and no buttons.
|
|
813
|
+
|
|
814
|
+
- Added RefInf DTOs matching to prestations-be
|
|
815
|
+
|
|
816
|
+
- [address-type-light.ts](projects/prestations-ng/src/refinf/model/address-type-light.ts)
|
|
817
|
+
- [canton.ts](projects/prestations-ng/src/refinf/model/canton.ts)
|
|
818
|
+
- [district.ts](projects/prestations-ng/src/refinf/model/district.ts)
|
|
819
|
+
- [municipality.ts](projects/prestations-ng/src/refinf/model/municipality.ts)
|
|
820
|
+
- [place-of-origin.ts](projects/prestations-ng/src/refinf/model/place-of-origin.ts)
|
|
821
|
+
- [postal-locality.ts](projects/prestations-ng/src/refinf/model/postal-locality.ts)
|
|
822
|
+
|
|
823
|
+
- [foehn-date-picker.component.ts](projects/prestations-ng/src/foehn-date-picker/foehn-date-picker.component.ts)
|
|
824
|
+
- [foehn-date-picker-button.component.ts](projects/prestations-ng/src/foehn-date-picker-button/foehn-date-picker-button.component.ts)
|
|
825
|
+
|
|
826
|
+
- added `@Input() minDate: number[]` - minDate's year will override minYear setting
|
|
827
|
+
- added `@Input() maxDate: number[]` - maxDate's year will override maxYear setting
|
|
828
|
+
|
|
829
|
+
- [package.json](package.json)
|
|
830
|
+
|
|
831
|
+
- Updated angular stack to ^13.1.0
|
|
832
|
+
- Updated @fortawesome/angular-fontawesome to ^0.10.0
|
|
833
|
+
- Updated rxjs to ~7.5.2
|
|
834
|
+
- Updated ngx-image-cropper to ~6.0.0
|
|
835
|
+
|
|
836
|
+
- [sdk-epayment.component.ts](projects/prestations-ng/src/sdk-epayment/sdk-epayment.component.ts)
|
|
837
|
+
- [sdk-epayment.component.html](projects/prestations-ng/src/sdk-epayment/sdk-epayment.component.html)
|
|
838
|
+
- [sdk-epayment.service.ts](projects/prestations-ng/src/sdk-epayment/sdk-epayment.service.ts)
|
|
839
|
+
|
|
840
|
+
- Adaptations to use new e-payment method "Postfinance Checkout"
|
|
841
|
+
|
|
842
|
+
- [backend-reponse.ts](projects/prestations-ng/src/backend-response.ts)
|
|
843
|
+
|
|
844
|
+
- renamed to `FormPostResponse` to match prestations-be
|
|
845
|
+
- renamed `GesdemMeta` to `FormMetadata` to match prestations-be
|
|
846
|
+
|
|
847
|
+
- [error-template.ts](projects/prestations-ng/src/error-template.ts)
|
|
848
|
+
|
|
849
|
+
- renamed to `FormError` to match prestations-be
|
|
850
|
+
|
|
851
|
+
- DTOs from Refinf : Long attributes are now serialized by the back-end as String since their value can be higher than javascript's MAX_SAFE_INTEGER :
|
|
852
|
+
|
|
853
|
+
- [address.type.ts](projects/prestations-ng/src/foehn-address/address.type.ts)
|
|
854
|
+
- Street : `estrid`
|
|
855
|
+
- Locality : `postalLocalityHistoryId`, `zipCodeId`
|
|
856
|
+
|
|
857
|
+
- [foehn-date-picker.component.html](projects/prestations-ng/src/foehn-date-picker/foehn-date-picker.component.html)
|
|
858
|
+
|
|
859
|
+
- added unique ids
|
|
860
|
+
|
|
861
|
+
- [foehn-checkable-group.component.ts](projects/prestations-ng/src/foehn-checkables/foehn-checkable-group.component.ts)
|
|
862
|
+
|
|
863
|
+
- set default value for `autocomplete` to `off`
|
|
864
|
+
|
|
865
|
+
- [foehn-input-date.component.ts](projects/prestations-ng/src/foehn-input-date/foehn-input-date.component.ts)
|
|
866
|
+
- Added `@Input() hideDatePickerButton: boolean` (default: false). Set to `true` to hide `foehn-date-picker-button`
|
|
791
867
|
|
|
792
868
|
### Removed
|
|
793
|
-
- [session-info-data.ts](projects/prestations-ng/src/sdk-session-info/session-info-data.ts)
|
|
794
|
-
- removed field `email` since this is the security e-mail that should not be used by prestations (`preferences.email` is the one that is allowed)]
|
|
795
869
|
|
|
796
|
-
|
|
797
|
-
|
|
870
|
+
- [session-info-data.ts](projects/prestations-ng/src/sdk-session-info/session-info-data.ts)
|
|
871
|
+
|
|
872
|
+
- removed field `email` since this is the security e-mail that should not be used by prestations (`preferences.email` is the one that is allowed)]
|
|
873
|
+
|
|
874
|
+
- [foehn-page.component.html](projects/prestations-ng/src/foehn-page/foehn-page.component.html)
|
|
875
|
+
- removed `@Input() neverConnected`, if you needed this feature, you have to inject the value as a provider :
|
|
798
876
|
```json
|
|
799
877
|
providers: [{ provide: 'neverConnected', useValue: true },]
|
|
800
878
|
```
|
|
801
879
|
|
|
802
|
-
-
|
|
803
|
-
|
|
880
|
+
- [foehn-input-date.component.html](projects/prestations-ng/src/foehn-input-date/foehn-input-date.component.html)
|
|
881
|
+
- Removed `<ng-content select="[date-picker-button]">` from template. Please refer to the [UPGRADING_V15](UPGRADING_V15.md)
|
|
804
882
|
|
|
805
883
|
## [14.5.25]
|
|
806
884
|
|
|
807
885
|
### Updated
|
|
808
886
|
|
|
809
|
-
-
|
|
810
|
-
-
|
|
887
|
+
- [foehn-debug-summary.component.ts](projects/prestations-ng/src/foehn-debug-summary/foehn-debug-summary.component.ts)
|
|
888
|
+
- Added `Référence de la demande` to debug summary
|
|
811
889
|
|
|
812
890
|
## [14.5.24]
|
|
813
891
|
|
|
814
892
|
### Added
|
|
815
893
|
|
|
816
|
-
-
|
|
894
|
+
- New [multiselect-autocomplete documentation](https://dsi-vd.github.io/prestations-ng/autocomplete#multiselect_autocomplete) page
|
|
895
|
+
|
|
896
|
+
- [foehn-multiselect-autocomplete.component.ts](projects/prestations-ng/src/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component.ts)
|
|
817
897
|
|
|
818
|
-
- [
|
|
819
|
-
- `@Input() defaultElementValues: unknown[]` To set default elements in list of selected
|
|
898
|
+
- `@Input() defaultElementValues: unknown[]` To set default elements in list of selected
|
|
820
899
|
|
|
821
|
-
-
|
|
822
|
-
-
|
|
900
|
+
- [foehn-checkable-group.component.ts](projects/prestations-ng/src/foehn-checkables/foehn-checkable-group.component.ts)
|
|
901
|
+
- added `@Output() elementsLoaded = new EventEmitter<any>()` fired when checkable's elements are loaded
|
|
823
902
|
|
|
824
903
|
## [14.5.23]
|
|
825
904
|
|
|
826
905
|
### Updated
|
|
827
906
|
|
|
828
|
-
-
|
|
829
|
-
-
|
|
907
|
+
- [default-dictionary.ts](projects/prestations-ng/src/sdk-dictionary/default-dictionary.ts)
|
|
908
|
+
- Rename last step in `foehn-status-progress-bar`
|
|
830
909
|
|
|
831
910
|
## [14.5.22]
|
|
832
911
|
|
|
833
912
|
### Updated
|
|
834
913
|
|
|
835
|
-
-
|
|
836
|
-
-
|
|
837
|
-
|
|
914
|
+
- [grecaptcha.component.ts](projects/prestations-ng/src/sdk-recaptcha/grecaptcha/grecaptcha.component.ts)
|
|
915
|
+
- updated url to call recaptcha.net instead of google.com
|
|
916
|
+
|
|
838
917
|
## [14.5.21]
|
|
839
918
|
|
|
840
919
|
### Updated
|
|
841
920
|
|
|
842
|
-
-
|
|
843
|
-
-
|
|
921
|
+
- [foehn-status-progress-bar.component.ts](projects/prestations-ng/src/foehn-status-progress-bar/foehn-status-progress-bar.component.ts)
|
|
922
|
+
- By default, `foehn-status-progress-bar` is visible
|
|
844
923
|
|
|
845
924
|
## [14.5.20]
|
|
846
925
|
|
|
847
926
|
### Added
|
|
848
927
|
|
|
849
|
-
-
|
|
850
|
-
|
|
928
|
+
- [foehn-status-progress-bar.component.ts](projects/prestations-ng/src/foehn-status-progress-bar/foehn-status-progress-bar.component.ts)
|
|
929
|
+
- Add foehn-status-progress-bar component. Component used in foehn-page and can be hidden with `statusProgressBarHidden` input
|
|
851
930
|
|
|
852
931
|
## [14.5.19]
|
|
853
932
|
|
|
854
933
|
### Added
|
|
855
934
|
|
|
856
|
-
-
|
|
857
|
-
|
|
935
|
+
- [foehn-confirm-modal.component.html](projects/prestations-ng/src/foehn-confirm-modal/foehn-confirm-modal.component.html)
|
|
936
|
+
- Add closeable on FoehnConfirmModalContent. Default value is true. If false, modal has to be closed by the yes and no buttons.
|
|
858
937
|
|
|
859
938
|
## [14.5.18]
|
|
860
939
|
|
|
861
940
|
### Fixed
|
|
862
941
|
|
|
863
|
-
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
942
|
+
- [object.helper.ts](projects/prestations-ng/src/helpers/object.helper.ts)
|
|
943
|
+
- Fix isEqual method for arrays. The issue was if first array has same objects but less items.
|
|
944
|
+
- This issue impacts foehn-select, foehn-list and foehn-table
|
|
867
945
|
|
|
868
946
|
## [14.5.17]
|
|
869
947
|
|
|
870
948
|
### Updated
|
|
871
949
|
|
|
872
|
-
-
|
|
873
|
-
-
|
|
874
|
-
-
|
|
875
|
-
-
|
|
950
|
+
- [support-alert.service.ts](projects/prestations-ng/src/sdk-support-alert/support-alert.service.ts)
|
|
951
|
+
- removed `setRefreshIntervalInSeconds(refreshIntervalsInSeconds: number)`, support alerts are now refreshed on every NavigationStart event from the Angular Router, but at most every 3 minutes.
|
|
952
|
+
- [foehn-page.component.html](projects/prestations-ng/src/foehn-page/foehn-page.component.html)
|
|
953
|
+
- added `@Input() supportAlertRefreshIntervalsInSeconds: number`, support alerts are now refreshed on every NavigationStart event from the Angular Router, but at most every 3 minutes.
|
|
876
954
|
|
|
877
955
|
## [14.5.16]
|
|
878
956
|
|
|
879
957
|
### Updated
|
|
880
958
|
|
|
881
|
-
-
|
|
882
|
-
-
|
|
883
|
-
-
|
|
884
|
-
|
|
959
|
+
- [support-alert.service.ts](projects/prestations-ng/src/sdk-support-alert/support-alert.service.ts)
|
|
960
|
+
- added `setRefreshIntervalInSeconds(refreshIntervalsInSeconds: number)` allowing to override the default refresh interval for support-alerts (default = 5 \* 1000)
|
|
961
|
+
- [foehn-page.component.html](projects/prestations-ng/src/foehn-page/foehn-page.component.html)
|
|
962
|
+
- added `@Input() supportAlertRefreshIntervalsInSeconds: number` allowing to call SupportAlertService.setRefreshIntervalInSeconds()
|
|
885
963
|
|
|
886
964
|
## [14.5.15]
|
|
887
965
|
|
|
888
966
|
### Added
|
|
889
967
|
|
|
890
|
-
-
|
|
891
|
-
|
|
968
|
+
- [Autogenerated documentation](https://dsi-vd.github.io/prestations-ng/generateddoc)
|
|
969
|
+
|
|
970
|
+
- prestations-ng documentation generated automatically by `compodoc`
|
|
971
|
+
|
|
972
|
+
- [foehn-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.ts)
|
|
973
|
+
- [foehn-bo-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.ts)
|
|
892
974
|
|
|
893
|
-
-
|
|
894
|
-
- [foehn-bo-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.ts)
|
|
895
|
-
- 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
|
|
975
|
+
- 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
|
|
896
976
|
|
|
897
|
-
-
|
|
898
|
-
-
|
|
899
|
-
-
|
|
977
|
+
- [gesdem-confirmation.component.html](projects/prestations-ng/src/gesdem-confirmation/gesdem-confirmation.component.html)
|
|
978
|
+
- `telechargerBtn` (Télécharger la demande (pdf)) is also shown to a connected user
|
|
979
|
+
- `logoutBtn` (Se déconnecter) is shown to a connected user instead of `terminerBtn` (Terminer)
|
|
900
980
|
|
|
901
981
|
### Fixed
|
|
902
982
|
|
|
903
|
-
-
|
|
904
|
-
|
|
983
|
+
- [foehn-table.component.ts](projects/prestations-ng/src/foehn-table/foehn-table.component.ts)
|
|
984
|
+
- table content was not being refreshed when sorting column
|
|
905
985
|
|
|
906
986
|
## [14.5.14]
|
|
907
987
|
|
|
908
988
|
### Added
|
|
909
989
|
|
|
910
|
-
-
|
|
911
|
-
-
|
|
912
|
-
-
|
|
913
|
-
-
|
|
914
|
-
-
|
|
990
|
+
- [foehn-table.module.ts](projects/prestations-ng/src/foehn-table/foehn-table.module.ts)
|
|
991
|
+
- [foehn-table.component.ts](projects/prestations-ng/src/foehn-table/foehn-table.component.ts)
|
|
992
|
+
- [foehn-table.component.html](projects/prestations-ng/src/foehn-table/foehn-table.component.html)
|
|
993
|
+
- added a paginated table
|
|
994
|
+
- for examples, see related page in the devtool (https://dsi-vd.github.io/prestations-ng/list#foehn_table)
|
|
915
995
|
|
|
916
996
|
## [14.5.13]
|
|
917
997
|
|
|
918
998
|
### Added
|
|
919
999
|
|
|
920
|
-
-
|
|
921
|
-
-
|
|
922
|
-
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
1000
|
+
- [foehn-picture-upload.module.ts](projects/prestations-ng/src/foehn-upload/foehn-picture-upload/foehn-picture-upload.module.ts)
|
|
1001
|
+
- [foehn-picture-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-picture-upload/foehn-picture-upload.component.ts)
|
|
1002
|
+
- [foehn-picture-upload.component.html](projects/prestations-ng/src/foehn-upload/foehn-picture-upload/foehn-picture-upload.component.html)
|
|
1003
|
+
- added a picture uploader that allows the user to crop the uploaded picture
|
|
1004
|
+
- requires `ngx-image-cropper@~5.0.0`
|
|
1005
|
+
- for examples, see related page in the devtool (https://dsi-vd.github.io/prestations-ng/upload#foehn_picture_upload)
|
|
926
1006
|
|
|
927
1007
|
## [14.5.12]
|
|
928
1008
|
|
|
929
1009
|
### Fixed
|
|
930
1010
|
|
|
931
1011
|
- [foehn-footer.component.ts](projects/prestations-ng/src/foehn-footer/foehn-footer.component.ts)
|
|
932
|
-
|
|
1012
|
+
- Fixed "SecurityBestPracticeLink" URL
|
|
933
1013
|
|
|
934
1014
|
## [14.5.11]
|
|
935
1015
|
|
|
936
1016
|
### Fixed
|
|
937
1017
|
|
|
938
1018
|
- [foehn-page.component.html](projects/prestations-ng/src/foehn-page/foehn-page.component.html)
|
|
939
|
-
- do not try to display login messages when `neverConnected` is `true`
|
|
1019
|
+
- do not try to display login messages when `neverConnected` is `true`
|
|
940
1020
|
|
|
941
1021
|
## [14.5.10]
|
|
942
1022
|
|
|
943
1023
|
### Removed
|
|
944
1024
|
|
|
945
|
-
-
|
|
946
|
-
|
|
1025
|
+
- [currency-formatter.directive.ts](projects/prestations-ng/src/directives/currency-formatter.directive.ts)
|
|
1026
|
+
- Removed `@Input() maxDecimalCount` and added to [foehn-input-number.component.ts](projects/prestations-ng/src/foehn-input/foehn-input-number.component.ts)
|
|
947
1027
|
|
|
948
1028
|
### Fixed
|
|
949
1029
|
|
|
950
|
-
-
|
|
951
|
-
- Fixed focus highlight not being foehn like
|
|
952
|
-
- `trueLabel` and `falseLabel` have been added the html property `innerHTML`
|
|
1030
|
+
- [foehn-boolean-radio.component.html](projects/prestations-ng/src/foehn-boolean/foehn-boolean-radio.component.html)
|
|
953
1031
|
|
|
954
|
-
-
|
|
955
|
-
|
|
1032
|
+
- Fixed focus highlight not being foehn like
|
|
1033
|
+
- `trueLabel` and `falseLabel` have been added the html property `innerHTML`
|
|
956
1034
|
|
|
957
|
-
-
|
|
958
|
-
- fixed bug when input is not formatted when programmatically changed
|
|
959
|
-
- takes into account the `maxlength` and `maxDecimalCount` of the directive's host when formatting for decimals
|
|
1035
|
+
- [foehn-boolean-checkbox.component.html](projects/prestations-ng/src/foehn-boolean/foehn-boolean-checkbox.component.html)
|
|
960
1036
|
|
|
961
|
-
-
|
|
962
|
-
- cannot exceed `maxDecimalCount` anymore when user inputs
|
|
1037
|
+
- Fixed focus highlight not being foehn like
|
|
963
1038
|
|
|
964
|
-
-
|
|
965
|
-
|
|
966
|
-
-
|
|
1039
|
+
- [currency-formatter.directive.ts](projects/prestations-ng/src/directives/currency-formatter.directive.ts)
|
|
1040
|
+
|
|
1041
|
+
- fixed bug when input is not formatted when programmatically changed
|
|
1042
|
+
- takes into account the `maxlength` and `maxDecimalCount` of the directive's host when formatting for decimals
|
|
967
1043
|
|
|
968
|
-
-
|
|
969
|
-
- A field should not have any error indicator when disabled
|
|
970
|
-
- added method `hasErrorsToDisplay()` that returns `true` if `hasErrors()` AND component is not disabled
|
|
971
|
-
- replaced every use of `hasErrors()` in templates by `hasErrorsToDisplay()`
|
|
972
|
-
- FoehnFormComponent still calls `hasErrors()` on each children in its `isValid()` method
|
|
1044
|
+
- [foehn-input-number.component.ts](projects/prestations-ng/src/foehn-input/foehn-input-number.component.ts)
|
|
973
1045
|
|
|
974
|
-
-
|
|
975
|
-
- fixed suggestion list not displaying when emptying model by using keyboard combinations (ie: Shift+Home+Delete)
|
|
1046
|
+
- cannot exceed `maxDecimalCount` anymore when user inputs
|
|
976
1047
|
|
|
977
|
-
-
|
|
978
|
-
|
|
979
|
-
|
|
1048
|
+
- [foehn-input-address.component.ts](projects/prestations-ng/src/foehn-address/foehn-input-address.component.ts)
|
|
1049
|
+
|
|
1050
|
+
- fix ids of address fields to link from foehn-validation-alert-summary
|
|
1051
|
+
- fix showing individual errors on zipCode and longName when locality is empty and country is not Switzerland
|
|
1052
|
+
|
|
1053
|
+
- [foehn-input.component.ts](projects/prestations-ng/src/foehn-input/foehn-input.component.ts)
|
|
1054
|
+
|
|
1055
|
+
- A field should not have any error indicator when disabled
|
|
1056
|
+
- added method `hasErrorsToDisplay()` that returns `true` if `hasErrors()` AND component is not disabled
|
|
1057
|
+
- replaced every use of `hasErrors()` in templates by `hasErrorsToDisplay()`
|
|
1058
|
+
- FoehnFormComponent still calls `hasErrors()` on each children in its `isValid()` method
|
|
1059
|
+
|
|
1060
|
+
- [foehn-autocomplete.component.ts](projects/prestations-ng/src/foehn-autocomplete/foehn-autocomplete.component.ts)
|
|
1061
|
+
|
|
1062
|
+
- fixed suggestion list not displaying when emptying model by using keyboard combinations (ie: Shift+Home+Delete)
|
|
1063
|
+
|
|
1064
|
+
- [foehn-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.ts)
|
|
1065
|
+
- [foehn-bo-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.ts)
|
|
1066
|
+
|
|
1067
|
+
- Fixed drop zone or upload button not showing anymore after dropping 1 file as pending file and multiple is set to true
|
|
980
1068
|
|
|
981
1069
|
- [foehn-footer.component.ts](projects/prestations-ng/src/foehn-footer/foehn-footer.component.ts)
|
|
982
|
-
|
|
1070
|
+
- Fixed "term of use" URL
|
|
983
1071
|
|
|
984
1072
|
### Added
|
|
985
1073
|
|
|
986
|
-
-
|
|
987
|
-
|
|
988
|
-
-
|
|
989
|
-
-
|
|
1074
|
+
- [date.helper.ts](projects/prestations-ng/src/sdk-date/date.helper.ts)
|
|
1075
|
+
|
|
1076
|
+
- added function `toDayjsFromNumberArray(value: number[]): dayjs.Dayjs`
|
|
1077
|
+
- added function `isValid(value: number[]): boolean`
|
|
1078
|
+
- added function `isToday(value: number[]): boolean`
|
|
1079
|
+
|
|
1080
|
+
- [foehn-input-number.component.ts](projects/prestations-ng/src/foehn-input/foehn-input-number.component.ts)
|
|
990
1081
|
|
|
991
|
-
- [
|
|
992
|
-
- added `@Input() maxDecimalCount` which was removed from [currency-formatter.directive.ts](projects/prestations-ng/src/directives/currency-formatter.directive.ts)
|
|
1082
|
+
- added `@Input() maxDecimalCount` which was removed from [currency-formatter.directive.ts](projects/prestations-ng/src/directives/currency-formatter.directive.ts)
|
|
993
1083
|
|
|
994
|
-
-
|
|
995
|
-
|
|
1084
|
+
- [foehn-input.component.ts](projects/prestations-ng/src/foehn-input/foehn-input.component.ts)
|
|
1085
|
+
- added `@Input() showErrorWhenDisabled` (default is `false`) giving the possibility to show an error on a disabled input
|
|
996
1086
|
|
|
997
1087
|
### Updated
|
|
998
1088
|
|
|
999
|
-
-
|
|
1000
|
-
|
|
1089
|
+
- [foehn-input-address.component.ts](projects/prestations-ng/src/foehn-address/foehn-input-address.component.ts)
|
|
1090
|
+
|
|
1091
|
+
- Removed `searchValueMinCharsCount` for country and npaLocality because virtual scrolling is used for displaying results in `foehn-autocomplete`
|
|
1092
|
+
|
|
1093
|
+
- [foehn-autocomplete.component.ts](projects/prestations-ng/src/foehn-autocomplete/foehn-autocomplete.component.ts)
|
|
1001
1094
|
|
|
1002
|
-
-
|
|
1003
|
-
|
|
1004
|
-
- Pressing `ArrowDown` key opens suggestion list when closed (if there are results to be shown)
|
|
1095
|
+
- Pressing `Escape` key closes suggestion list when opened
|
|
1096
|
+
- Pressing `ArrowDown` key opens suggestion list when closed (if there are results to be shown)
|
|
1005
1097
|
|
|
1006
|
-
-
|
|
1007
|
-
-
|
|
1008
|
-
- Drop zone is bigger and now highlighted when file enters navigator window. Dropping file outside drop zone is prevented to avoid navigator default action.
|
|
1098
|
+
- [foehn-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.ts)
|
|
1099
|
+
- [foehn-bo-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.ts)
|
|
1009
1100
|
|
|
1010
|
-
-
|
|
1011
|
-
|
|
1101
|
+
- Drop zone is bigger and now highlighted when file enters navigator window. Dropping file outside drop zone is prevented to avoid navigator default action.
|
|
1102
|
+
|
|
1103
|
+
- [package.json](package.json)
|
|
1104
|
+
- Updated `@dsivd/foehn` to 1.8.3. See [the changelog](https://github.com/DSI-VD/foehn/blob/master/CHANGELOG.md) for more information.
|
|
1012
1105
|
|
|
1013
1106
|
## [14.5.9]
|
|
1014
1107
|
|
|
1015
1108
|
### Fixed
|
|
1016
1109
|
|
|
1017
1110
|
- [foehn-checkable-group.component.ts](projects/prestations-ng/src/foehn-checkables/foehn-checkable-group.component.ts)
|
|
1018
|
-
|
|
1111
|
+
- fixed elements not displaying when used with a pipe async
|
|
1019
1112
|
|
|
1020
1113
|
## [14.5.8]
|
|
1021
1114
|
|
|
@@ -1027,8 +1120,10 @@ data: {
|
|
|
1027
1120
|
## [14.5.7]
|
|
1028
1121
|
|
|
1029
1122
|
### Fixed
|
|
1123
|
+
|
|
1030
1124
|
- [foehn-page-modal.component.ts](projects/prestations-ng/src/foehn-page/foehn-page-modal.component.ts)
|
|
1031
|
-
|
|
1125
|
+
|
|
1126
|
+
- do not display login messages when user is connected via IAM ACV (no context)
|
|
1032
1127
|
|
|
1033
1128
|
- [gesdem-action-recovery-registration.component.ts](projects/prestations-ng/src/gesdem-action-recovery/gesdem-action-recovery-registration/gesdem-action-recovery-registration.component.ts)
|
|
1034
1129
|
- do not show recovery link when user is connected via IAM ACV (no context)
|
|
@@ -1036,36 +1131,39 @@ data: {
|
|
|
1036
1131
|
## [14.5.6]
|
|
1037
1132
|
|
|
1038
1133
|
### Fixed
|
|
1039
|
-
|
|
1134
|
+
|
|
1135
|
+
- [foehn-select.component.html](projects/prestations-ng/src/foehn-checkables/foehn-select.component.html)
|
|
1040
1136
|
- attribute `disabled` was not used
|
|
1041
1137
|
|
|
1042
1138
|
### Added
|
|
1139
|
+
|
|
1043
1140
|
- [gesdem-confirmation.component.ts](projects/prestations-ng/src/gesdem-confirmation/gesdem-confirmation.component.ts)
|
|
1044
|
-
-
|
|
1141
|
+
- updated confirmation message to `gesdem-confirmation.next-step.success-label` (Réponse transmise) when the action that has been sent is not the first one
|
|
1045
1142
|
|
|
1046
1143
|
## [14.5.5]
|
|
1047
1144
|
|
|
1048
1145
|
### Added
|
|
1049
1146
|
|
|
1050
|
-
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1147
|
+
- [object-helper.ts](projects/prestations-ng/src/helpers/object.helper.ts)
|
|
1148
|
+
- added a helper for manipulating objects
|
|
1149
|
+
- `static isEqual(value1: unknown, value2: unknown): boolean`
|
|
1150
|
+
- `static hasAnyValue(value: any): boolean`
|
|
1151
|
+
- `static isEmpty(value: any): boolean`
|
|
1152
|
+
- `static deepCopy(obj: any): any`
|
|
1056
1153
|
|
|
1057
1154
|
### Fixed
|
|
1058
1155
|
|
|
1059
|
-
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1156
|
+
- Library is now compiled using `"compilationMode": "partial"` as it should have when upgrading it to Angular 12.
|
|
1157
|
+
|
|
1158
|
+
- No need to use `yarn start:symlink` anymore when linking library in project
|
|
1159
|
+
- Cleanup your project if needed :
|
|
1160
|
+
- in your `package.json` located at the root of your application, remove `start:symlink`
|
|
1161
|
+
- remove `projects->[YOUR_PROJECT_NAME]->architect->build->configurations->symlink` attribute
|
|
1162
|
+
- remove `projects->[YOUR_PROJECT_NAME]->architect->serve->configurations->symlink` attribute
|
|
1163
|
+
- delete `front/src/tsconfig.app.symlink.json`
|
|
1066
1164
|
|
|
1067
|
-
-
|
|
1068
|
-
|
|
1165
|
+
- [foehn-select.component.html](projects/prestations-ng/src/foehn-checkables/foehn-select.component.html)
|
|
1166
|
+
- fixed problem when model holds a complex object (object in an object in an...)
|
|
1069
1167
|
|
|
1070
1168
|
## [14.5.4]
|
|
1071
1169
|
|
|
@@ -1080,7 +1178,7 @@ data: {
|
|
|
1080
1178
|
|
|
1081
1179
|
- [foehn-page-modal.component.ts](projects/prestations-ng/src/foehn-page/foehn-page-modal.component.ts)
|
|
1082
1180
|
- manage connected user with multiple `SessionInfoData.categories`
|
|
1083
|
-
|
|
1181
|
+
|
|
1084
1182
|
## [14.5.2]
|
|
1085
1183
|
|
|
1086
1184
|
### Updated
|
|
@@ -1093,6 +1191,7 @@ data: {
|
|
|
1093
1191
|
### Updated
|
|
1094
1192
|
|
|
1095
1193
|
- [ESLINT_MIGRATION_GUIDE](ESLINT_MIGRATION_GUIDE.md)
|
|
1194
|
+
|
|
1096
1195
|
- Added missing plugins (`import`, `jsdoc`, `prefer-arrow` and `rxjs-angular`) when adding them with `yarn`
|
|
1097
1196
|
- Uncommented `rxjs-angular` plugin and `rxjs-angular/prefer-async-pipe` rule in `.eslintrc.json` example because we are now building with node >= 12.0.0
|
|
1098
1197
|
- Added more information on "Subtype vs Assignment"
|
|
@@ -1100,7 +1199,6 @@ data: {
|
|
|
1100
1199
|
|
|
1101
1200
|
- [foehn-recap-section.component.ts](projects/prestations-ng/src/foehn-recap-section/foehn-recap-section.component.ts)
|
|
1102
1201
|
- added class `text-break` to `dt` and `dd` elements
|
|
1103
|
-
|
|
1104
1202
|
- [foehn-bo-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.ts)
|
|
1105
1203
|
- added `@Output() documentDeleted` to get an event when a document has been deleted
|
|
1106
1204
|
|
|
@@ -1114,6 +1212,7 @@ data: {
|
|
|
1114
1212
|
### Added
|
|
1115
1213
|
|
|
1116
1214
|
- [UPGRADING_V14](UPGRADING_V14.md)
|
|
1215
|
+
|
|
1117
1216
|
- Added migration guide
|
|
1118
1217
|
|
|
1119
1218
|
- Schematic for setting `allowSyntheticDefaultImports` to `true` in `tsconfig.json` compiler options
|
|
@@ -1140,22 +1239,22 @@ data: {
|
|
|
1140
1239
|
### Added
|
|
1141
1240
|
|
|
1142
1241
|
- [ApplicationInfo](projects/prestations-ng/src/sdk-appinfo/application-info.ts)
|
|
1143
|
-
-
|
|
1144
|
-
-
|
|
1145
|
-
-
|
|
1146
|
-
|
|
1242
|
+
- added two attributes to ApplicationInfo.EtapeInfo :
|
|
1243
|
+
- `boolean decisionElectroniqueAvailable` true, when prestation can result in an official electronical decision
|
|
1244
|
+
- `boolean deployeeCyber` true, when prestation is displayed in the "Espace Securisé"
|
|
1147
1245
|
- [I18NForm](projects/prestations-ng/src/i18n-form.ts)
|
|
1148
|
-
|
|
1246
|
+
|
|
1247
|
+
- added field `acceptDecisionElectronique: boolean`, must be answered when `ApplicationInfo.EtapeInfo.decisionElectroniqueAvailable` is true
|
|
1149
1248
|
|
|
1150
1249
|
- [foehn-decision-electronique.component.ts](projects/prestations-ng/src/foehn-decision-electronique/foehn-decision-electronique.component.ts)
|
|
1151
1250
|
- [foehn-decision-electronique.module.ts](projects/prestations-ng/src/foehn-decision-electronique/foehn-decision-electronique.module.ts)
|
|
1251
|
+
|
|
1152
1252
|
- component to let the user choose `I18NForm.acceptDecisionElectronique` when `ApplicationInfo.EtapeInfo.decisionElectroniqueAvailable` is true
|
|
1153
1253
|
- should be added to the last page of the "prestation"
|
|
1154
1254
|
|
|
1155
1255
|
- [foehn-page.component.html](projects/prestations-ng/src/foehn-page/foehn-page.component.html)
|
|
1156
1256
|
- when relevant, a message is shown to the user, suggesting to login to fully use the Espace sécurisé's features
|
|
1157
1257
|
|
|
1158
|
-
|
|
1159
1258
|
### Fixed
|
|
1160
1259
|
|
|
1161
1260
|
- [foehn-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.ts)
|
|
@@ -1166,7 +1265,7 @@ data: {
|
|
|
1166
1265
|
### Added
|
|
1167
1266
|
|
|
1168
1267
|
- [foehn-bo-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.ts)
|
|
1169
|
-
-
|
|
1268
|
+
- See [documentation](upload#foehn_bo_multi_upload)
|
|
1170
1269
|
- Default setting:
|
|
1171
1270
|
- `@Input() multiple = true` (setting to false actes as a single file uploader)
|
|
1172
1271
|
- `@Input() dragAndDrop = true` (setting to false hiddes drop zone)
|
|
@@ -1181,28 +1280,31 @@ data: {
|
|
|
1181
1280
|
- file extension authorized `.pdf` (can be overridden by adding in back-end properties `document.file-extensions=[YOUR_EXTENSIONS_HERE]`)
|
|
1182
1281
|
- file max size is `1 Mo` (can be overridden by changing back-end property `spring.servlet.multipart.max-file-size`)
|
|
1183
1282
|
|
|
1184
|
-
|
|
1185
1283
|
## [14.3.1]
|
|
1186
1284
|
|
|
1187
1285
|
- [foehn-validation-alert-summary.component.ts](projects/prestations-ng/src/foehn-validation-alert-summary/foehn-validation-alert-summary.component.ts)
|
|
1188
|
-
|
|
1286
|
+
|
|
1287
|
+
- the message "il y a un problème" has been added to the [default dictionary](projects/prestations-ng/src/sdk-dictionary/default-dictionary.ts) and can be translated
|
|
1189
1288
|
|
|
1190
1289
|
- [foehn-navigation.component.html](projects/prestations-ng/src/foehn-navigation/foehn-navigation/foehn-navigation.component.html)
|
|
1191
|
-
-
|
|
1290
|
+
- the word "sur" in the middle of the pagination links has been added to the [default dictionary](projects/prestations-ng/src/sdk-dictionary/default-dictionary.ts) and can be translated
|
|
1192
1291
|
|
|
1193
1292
|
## [14.3.0] - Version aligned with prestations-be
|
|
1194
1293
|
|
|
1195
1294
|
### Added
|
|
1196
1295
|
|
|
1197
1296
|
- [gesdem-confirmation.component.ts](projects/prestations-ng/src/gesdem-confirmation/gesdem-confirmation.component.ts)
|
|
1297
|
+
|
|
1198
1298
|
- added `<ng-content></ng-content>` between green box and action buttons, see https://dsi-vd.github.io/prestations-ng/confirmation
|
|
1199
1299
|
|
|
1200
1300
|
- New [datepicker documentation](https://dsi-vd.github.io/prestations-ng/datepicker) page
|
|
1201
1301
|
|
|
1202
1302
|
- [foehn-input-date.component.html](projects/prestations-ng/src/foehn-input-date/foehn-input-date.component.html)
|
|
1303
|
+
|
|
1203
1304
|
- Added a `<ng-content select="[date-picker-button]">` to include `<foehn-date-picker-button>`. Please refer to the [datepicker documentation](https://dsi-vd.github.io/prestations-ng/datepicker)
|
|
1204
1305
|
|
|
1205
1306
|
- [foehn-date-picker-button.component.ts](projects/prestations-ng/src/foehn-date-picker-button/foehn-date-picker-button.component.ts)
|
|
1307
|
+
|
|
1206
1308
|
- `@Input() minYear: number` (default: today - 100) minimum year to be displayed
|
|
1207
1309
|
- `@Input() maxYear: number` (default: today + 10) maximum year to be displayed
|
|
1208
1310
|
- `@Input() displaySelectedDate = true` When set to false, hides the selected date displayed beside the button
|
|
@@ -1210,6 +1312,7 @@ data: {
|
|
|
1210
1312
|
- `@Output() userInput = new EventEmitter<number[]>();` Fired when user chooses a date
|
|
1211
1313
|
|
|
1212
1314
|
- [foehn-date-picker.component.ts](projects/prestations-ng/src/foehn-date-picker/foehn-date-picker.component.ts)
|
|
1315
|
+
|
|
1213
1316
|
- `@Input() minYear: number` (default: today - 100) minimum year to be displayed
|
|
1214
1317
|
- `@Input() maxYear: number` (default: today + 10) maximum year to be displayed
|
|
1215
1318
|
- `@Input() datepickerTriggerHtmlElement: HTMLElement` HTML element which opens the date picker
|
|
@@ -1224,6 +1327,7 @@ data: {
|
|
|
1224
1327
|
- added `@Input() hideGlobalInfos = false` to be able to hide the global infos in multiple mode
|
|
1225
1328
|
|
|
1226
1329
|
### Updated
|
|
1330
|
+
|
|
1227
1331
|
- [foehn-multi-upload.component.ts](projects/prestations-ng/src/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.ts)
|
|
1228
1332
|
- Default error messages have been moved to the default dictionary. They can be overridden and/or translated
|
|
1229
1333
|
|
|
@@ -1232,7 +1336,8 @@ data: {
|
|
|
1232
1336
|
### Added
|
|
1233
1337
|
|
|
1234
1338
|
- [foehn-input-address.component.ts](projects/prestations-ng/src/foehn-address/foehn-input-address.component.ts)
|
|
1235
|
-
|
|
1339
|
+
|
|
1340
|
+
- default value for postOfficeBoxText's help text ("Exemple : Case postale 122 ou CP122 ou CP 122"), can be overriden in dictionary with key `foehn-input-address.postOfficeBoxText.help-text`
|
|
1236
1341
|
|
|
1237
1342
|
- [foehn-input.component.ts](projects/prestations-ng/src/foehn-input/foehn-input.component.ts)
|
|
1238
1343
|
- Function `markAsDirty` to manually set component NgModel control to dirty
|
|
@@ -1244,17 +1349,21 @@ data: {
|
|
|
1244
1349
|
- Manage manually markAsDirty and markAsPrestine for validation purpose
|
|
1245
1350
|
|
|
1246
1351
|
### Updated
|
|
1247
|
-
|
|
1352
|
+
|
|
1353
|
+
- The base url sent as parameter to 'payNow' has been removed and has been replaced by an input that defaults to 'api/'. When the popup displaying an information message to the user explaining why the payment was cancelled in Postfinance, the request's status is set back to 'DRAFT'.
|
|
1248
1354
|
- [sdk-epayment.component.ts](projects/prestations-ng/src/sdk-epayment/sdk-epayment.component.ts)
|
|
1249
1355
|
|
|
1250
1356
|
## [14.0.0]
|
|
1251
1357
|
|
|
1252
1358
|
### Fixed
|
|
1359
|
+
|
|
1253
1360
|
- [grecaptcha.component.ts](projects/prestations-ng/src/sdk-recaptcha/grecaptcha/grecaptcha.component.ts)
|
|
1361
|
+
|
|
1254
1362
|
- reCaptcha language now depends on user language settings
|
|
1255
1363
|
|
|
1256
1364
|
- [foehn-input-time.component.html](projects/prestations-ng/src/foehn-input-time/foehn-input-time.component.html)
|
|
1257
1365
|
- [foehn-input-nav13.component.html](projects/prestations-ng/src/foehn-nav13/foehn-input-nav13.component.html)
|
|
1366
|
+
|
|
1258
1367
|
- Now disables all inputs when attribute `[disabled]` is set to `true`
|
|
1259
1368
|
|
|
1260
1369
|
- [foehn-boolean-radio.component.html](projects/prestations-ng/src/foehn-boolean/foehn-boolean-radio.component.html)
|
|
@@ -1265,30 +1374,35 @@ data: {
|
|
|
1265
1374
|
### Added
|
|
1266
1375
|
|
|
1267
1376
|
- [form-select-option.ts](projects/prestations-ng/src/foehn-checkables/form-select-option.ts)
|
|
1377
|
+
|
|
1268
1378
|
- Added `FormSelectOption` class to be used for foehn checkables components. Avoids re-creating it in every project. Gives the possibility to disable elements individually.
|
|
1269
1379
|
|
|
1270
1380
|
- [backend-reponse.ts](projects/prestations-ng/src/backend-response.ts)
|
|
1381
|
+
|
|
1271
1382
|
- Added `currentAction: number` to class GesdemMeta.
|
|
1272
1383
|
|
|
1273
1384
|
- [foehn-page.component.html](projects/prestations-ng/src/foehn-page/foehn-page.component.html)
|
|
1385
|
+
|
|
1274
1386
|
- page content is blocked when the browser is not supported but a button allows the user to continue anyway.
|
|
1275
1387
|
|
|
1276
1388
|
- [foehn-navigation.component.html](projects/prestations-ng/src/foehn-navigation/foehn-navigation/foehn-navigation.component.html)
|
|
1277
1389
|
- added `@Input() showContinueLaterButton = true` to be able to hide the "Continue Later" button on a specific page
|
|
1278
1390
|
|
|
1279
1391
|
### Removed
|
|
1392
|
+
|
|
1280
1393
|
- [gesdem-confirmation.component.ts](projects/prestations-ng/src/gesdem-confirmation/gesdem-confirmation.component.ts)
|
|
1281
|
-
- removed `@Input() currentEtape: number` and `ActivatedRoute.data.currentEtape`, `lastResponse.meta.currentAction` is now used to download the right pdf
|
|
1394
|
+
- removed `@Input() currentEtape: number` and `ActivatedRoute.data.currentEtape`, `lastResponse.meta.currentAction` is now used to download the right pdf
|
|
1282
1395
|
|
|
1283
1396
|
## [13.7.0]
|
|
1284
1397
|
|
|
1285
1398
|
### Fixed
|
|
1286
1399
|
|
|
1287
1400
|
- [date.pipe.ts](projects/prestations-ng/src/pipes/date.pipe.ts)
|
|
1401
|
+
|
|
1288
1402
|
- Rollback eslint fix and return `any` to avoid breaking apps
|
|
1289
1403
|
|
|
1290
1404
|
- [gesdem-action-recovery-registration.component.ts](projects/prestations-ng/src/gesdem-action-recovery/gesdem-action-recovery-registration/gesdem-action-recovery-registration.component.ts)
|
|
1291
|
-
-
|
|
1405
|
+
- recovery registration errors should not override form errors (both should be displayed)
|
|
1292
1406
|
|
|
1293
1407
|
## [13.6.0]
|
|
1294
1408
|
|
|
@@ -1296,7 +1410,7 @@ data: {
|
|
|
1296
1410
|
|
|
1297
1411
|
- [foehn-input.component.ts](projects/prestations-ng/src/foehn-input/foehn-input.component.ts)
|
|
1298
1412
|
- `GESDEM_MAX_DATA_LENGTH` is now 10'000
|
|
1299
|
-
|
|
1413
|
+
|
|
1300
1414
|
## [13.5.1]
|
|
1301
1415
|
|
|
1302
1416
|
### Added
|
|
@@ -1313,21 +1427,23 @@ data: {
|
|
|
1313
1427
|
|
|
1314
1428
|
- [ESLINT_MIGRATION_GUIDE](ESLINT_MIGRATION_GUIDE.md)
|
|
1315
1429
|
- Added guide for migrating projects from TSLint to ESLint
|
|
1316
|
-
|
|
1430
|
+
|
|
1317
1431
|
## [13.4.1]
|
|
1318
1432
|
|
|
1319
1433
|
### Added
|
|
1320
|
-
|
|
1434
|
+
|
|
1321
1435
|
- Migration from TSlint to ESlint: TSLint's support is deprecated in Angular CLI. To opt-in using the community driven ESLint builder, see: [migrating guide](https://github.com/angular-eslint/angular-eslint#migrating-from-codelyzer-and-tslint).
|
|
1322
1436
|
|
|
1323
1437
|
### Fixed
|
|
1438
|
+
|
|
1324
1439
|
- [abstract-list-item-detail-page.component.ts](projects/prestations-ng/src/foehn/foehn-menu-prestation/abstract-list-item-detail-page.component.ts)
|
|
1440
|
+
|
|
1325
1441
|
- reset breadcrumb on destroy
|
|
1326
|
-
-
|
|
1442
|
+
- `getListPagePath()` is now abstract since it should always be overriden (value was 'page-3' from skeleton's front-with-menu example)
|
|
1327
1443
|
|
|
1328
1444
|
- [abstract-page-from-menu.component.ts](projects/prestations-ng/src/foehn/foehn-menu-prestation/abstract-page-from-menu.component.ts)
|
|
1329
|
-
-
|
|
1330
|
-
-
|
|
1445
|
+
- `getMenuPath()` is now abstract since it should always be overriden (value was 'Menu' from skeleton's front-with-menu example)
|
|
1446
|
+
- `getMenuLabel()` is now abstract since it should always be overriden (value was '/menu' from skeleton's front-with-menu example)
|
|
1331
1447
|
|
|
1332
1448
|
## [13.4.0]
|
|
1333
1449
|
|
|
@@ -3848,7 +3964,7 @@ for the first time)
|
|
|
3848
3964
|
```javascript
|
|
3849
3965
|
// Typical usage
|
|
3850
3966
|
breadcrumbService.setConfiguration({
|
|
3851
|
-
prestationCode: '101016'
|
|
3967
|
+
prestationCode: '101016'
|
|
3852
3968
|
});
|
|
3853
3969
|
|
|
3854
3970
|
// All options
|
|
@@ -3857,7 +3973,7 @@ breadcrumbService.setConfiguration({
|
|
|
3857
3973
|
allPrestationsUrl: '/100002/prestations',
|
|
3858
3974
|
vdChUrl: 'https://www.vd.ch/',
|
|
3859
3975
|
descriptionPageBaseUrl: 'https://www.vd.ch/go.to?prestation=',
|
|
3860
|
-
prestationCode: '101016'
|
|
3976
|
+
prestationCode: '101016'
|
|
3861
3977
|
});
|
|
3862
3978
|
```
|
|
3863
3979
|
|
|
@@ -3874,7 +3990,7 @@ this.applicationInfoService.firstEtapeInfo.subscribe(etapeInfo => {
|
|
|
3874
3990
|
const { titreEtape, idMetierPrestation } = etapeInfo;
|
|
3875
3991
|
|
|
3876
3992
|
this.breadcrumbService.setConfiguration({
|
|
3877
|
-
prestationCode: idMetierPrestation
|
|
3993
|
+
prestationCode: idMetierPrestation
|
|
3878
3994
|
});
|
|
3879
3995
|
|
|
3880
3996
|
this.appTitle = titreEtape;
|