@dsivd/prestations-ng 19.2.0-beta.22 → 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
|
package/CONTRIBUTING.md
CHANGED
|
@@ -18,6 +18,14 @@ in an actual prestation: the Dev Tool.
|
|
|
18
18
|
To start the Dev Tool, run `npm start`. This will ensure that modifications
|
|
19
19
|
in both the Dev Tool and the library reload the page.
|
|
20
20
|
|
|
21
|
+
### GitHub Pages documentation
|
|
22
|
+
|
|
23
|
+
Official and beta documentation share the root `404.html` on GitHub Pages.
|
|
24
|
+
Each documentation publication updates that fallback and adds URL restoration
|
|
25
|
+
to both available app indexes, so deep links return to the correct app. Keep
|
|
26
|
+
the fallback and restoration script in sync when changing the publishing flow.
|
|
27
|
+
GitHub Pages still returns HTTP 404 for the initial deep-link request.
|
|
28
|
+
|
|
21
29
|
## Testing the library in integration
|
|
22
30
|
|
|
23
31
|
Since version `8`, we can't use native symlink to integrate `prestations-ng` to
|
|
@@ -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) {
|