@dsivd/prestations-ng 19.2.0-beta.23 → 19.2.0-beta.24
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
CHANGED
|
@@ -236,6 +236,10 @@ Please check the [UPGRADING_V19.md](UPGRADING_V19.md) guide for more information
|
|
|
236
236
|
[UPGRADING_V19.md](UPGRADING_V19.md#your-components-write-a-new-model). A component modifying its model in place
|
|
237
237
|
and giving it back no longer notifies its page. The list of vehicles of [GOOD_PRACTICES.md](GOOD_PRACTICES.md) now
|
|
238
238
|
shows a complete item, its fields in linked signals, and a list which reads its `model()` and writes a new array.
|
|
239
|
+
- `FoehnInputComponent.updateNgModel()` is typed `T | null | undefined`, as the `modelChange` of a `foehn-*`
|
|
240
|
+
component: a component wrapping a single `foehn-*` component binds it with `(modelChange)="updateNgModel($event)"`,
|
|
241
|
+
which `strictTemplates` rejected (TS2345) when the wrapped component is typed. Nothing changes at runtime:
|
|
242
|
+
`undefined` is written as is.
|
|
239
243
|
- 🚨 The `onModelChange()` methods which were not the hook of `FoehnInputComponent` are removed or renamed (they are
|
|
240
244
|
not called by the model anymore):
|
|
241
245
|
- `foehn-date-picker-button`: `model_`, `onModelChange()` and `updateNgModel()` are removed, they had no effect
|
|
@@ -959,6 +959,10 @@ class FoehnInputComponent {
|
|
|
959
959
|
* emitted, and the page would never get the change. Also makes the model known (`model_`), and leaves the model
|
|
960
960
|
* of a disabled component alone, unless `updateModelWhenDisabled`.
|
|
961
961
|
*
|
|
962
|
+
* Accepts the `modelChange` of a wrapped `foehn-*` component as is (`T | null | undefined`):
|
|
963
|
+
* `(modelChange)="updateNgModel($event)"`. `undefined` is written as is, not as `null`: a model still unknown
|
|
964
|
+
* (`undefined`) must not become `null` without an input of the user.
|
|
965
|
+
*
|
|
962
966
|
* @param value the new model
|
|
963
967
|
*/
|
|
964
968
|
updateNgModel(value) {
|