@dsivd/prestations-ng 19.0.0-beta.1 → 19.0.0-beta.10

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.
@@ -771,13 +771,7 @@ const items = [...this.daysButtons()];
771
771
  const items = [...(this.daysButtons() ?? [])];
772
772
  ```
773
773
 
774
- ### 6. Expecting `[binding]` to work with `model()`
775
-
776
- `model()` only accepts `[(two-way)]` or the split form
777
- `[value]="x" (valueChange)="x = $event"`.
778
- A plain `[binding]` will produce a compiler error.
779
-
780
- ### 7. Over-tracking inside `effect()` — forgetting `untracked()`
774
+ ### 6. Over-tracking inside `effect()` forgetting `untracked()`
781
775
 
782
776
  An `effect()` tracks **every** signal it reads, not just the ones you
783
777
  intended as triggers. Reading a signal "just to get its current value"
@@ -805,7 +799,7 @@ effect(() => {
805
799
  });
806
800
  ```
807
801
 
808
- ### 8. Using `untracked()` instead of an equality check
802
+ ### 7. Using `untracked()` instead of an equality check
809
803
 
810
804
  `untracked()` controls what _triggers_ an effect — it does not make a write
811
805
  inside the effect "safe" by itself. If the effect's only tracked dependencies
@@ -834,7 +828,7 @@ effect(() => {
834
828
  });
835
829
  ```
836
830
 
837
- ### 9. Mutating a `model()`'s nested object instead of reassigning
831
+ ### 8. Mutating a `model()`'s nested object instead of reassigning
838
832
 
839
833
  This is the signals-era version of "mutating `@Input()` used to work."
840
834
  Pre-signals, Zone.js-driven change detection re-read template expressions
package/CHANGELOG.md CHANGED
@@ -6,6 +6,39 @@
6
6
 
7
7
  ---
8
8
 
9
+ ## [19.0.0] - should be aligned with prestations-be 19.0.x
10
+
11
+ ### Added
12
+
13
+ - [UPGRADING_V19](UPGRADING_V19.md)
14
+ - Added migration guide
15
+
16
+ - [string.helper.ts](projects/prestations-ng/src/helpers/string.helper.ts)
17
+ - Added a helper for string manipulation
18
+
19
+ - [dictionary-type.ts](projects/prestations-ng/src/sdk-dictionary/dictionary-type.ts)
20
+ - Added dictionary `PlaceholderType` type, `DictionaryType` type and `Language` interface
21
+
22
+ - [HasCustomErrors](projects/prestations-ng/src/has-custom-errors.ts)
23
+ - Added `HasCustomErrors` interface representing a component that has custom error messages
24
+
25
+ - [foehn-header.component.html](projects/prestations-ng/src/foehn-header/foehn-header.component.html)
26
+ - Added a few more ids
27
+
28
+ ### Updated
29
+
30
+ - [foehn-footer.component.ts](projects/prestations-ng/src/foehn-footer/foehn-footer.component.ts)
31
+ - Updated default guide link URL
32
+
33
+ - [foehn-input.component.ts](projects/prestations-ng/src/foehn-input/foehn-input.component.ts)
34
+ - `[name]` attribut is required
35
+ - `[model]` attribut is required
36
+
37
+ ### Deleted
38
+
39
+ - [foehn-list-summary.component.ts](projects/prestations-ng/src/foehn-menu-prestation/foehn-list-summary/foehn-list-summary.component.ts)
40
+ - `[list]` attribut has been removed. Use `[model]` instead.
41
+
9
42
  ## [18.3.12]
10
43
 
11
44
  ### Updated
package/CONTRIBUTING.md CHANGED
@@ -2,19 +2,10 @@
2
2
 
3
3
  ## Prerequisite
4
4
 
5
- - Node 20.11+
5
+ - Node 22.18+
6
6
  - npm 10.2+
7
7
  - Chrome or Chromium
8
8
  - G++
9
- - The variable `CHROMIUM_BIN` set in your environment
10
-
11
- If you're using bashrc.dev.pee, the variable `CHROMIUM_BIN` is already set to `~/slave-apps/chromium-headless-64/chrome`
12
-
13
- If not, you can set the variable in your `.bashrc` or `.zshrc`:
14
-
15
- ```bash
16
- export CHROMIUM_BIN=/usr/bin/google-chrome-stable
17
- ```
18
9
 
19
10
  ## Developing using the Dev Tool
20
11
 
@@ -34,7 +25,7 @@ result.
34
25
  ### In **prestations-ng**
35
26
 
36
27
  - if it is the first time, execute `npm install` then `npm run build:lib` (at root level)
37
- - `cd dist/prestations-ng && yarn link` (it's critical to link the content of `dist/prestations-ng`, not the root)
28
+ - `cd dist/prestations-ng && npm link` (it's critical to link the content of `dist/prestations-ng`, not the root)
38
29
  - `cd ../.. && npm run build:lib:dev` (at root level)
39
30
 
40
31
  `build:lib:dev` will use a feature of the Angular CLI: `--watch`. For more information on `--watch`, refer to the [official documentation](https://github.com/angular/angular-cli/blob/master/docs/documentation/stories/create-library.md#why-do-i-need-to-build-the-library-everytime-i-make-changes).
@@ -42,12 +33,12 @@ result.
42
33
  ### In the prestation
43
34
 
44
35
  - `cd front`
45
- - `yarn link @dsivd/prestations-ng`
36
+ - `npm link @dsivd/prestations-ng`
46
37
  - `npm start` (only when `npm run build:lib:dev` in `prestations-ng` has started)
47
38
 
48
39
  Now if you change something in `prestations-ng`, the CLI of the prestation will hot swap the missing pieces and reload the page.
49
40
 
50
- Finally, when you're done, run `yarn unlink @dsivd/prestations-ng` to unlink the local version. You will need to run `npm install --force` to re-install the package that was linked.
41
+ Finally, when you're done, run `npm install` to unlink the local version.
51
42
 
52
43
  **NB: When the project uses a version 12+ or 13+ of the library, you need to use `yarn start:symlink` and checkout the library tag matching v12+ or v13+. More information on [UPGRADING_V12](UPGRADING_V12.md)**
53
44
 
@@ -74,11 +65,11 @@ run `npm run test:schematics` (at root level).
74
65
  - **In prestations-ng**:
75
66
  - if it is the first time, execute `npm install` then `npm run build:lib` (at root level)
76
67
  - `cd dist/prestations-ng && npm link` (it's critical to link the content of `dist/prestations-ng`, not the root)
77
- - `npm run build:lib:dev` (at root level)
68
+ - `cd ../.. && npm run build:lib:dev` (at root level)
78
69
 
79
70
  - **In project**:
80
71
  - `cd front`
81
- - `npm link @dsivd/prestations-ng` (`npm unlink @dsivd/prestations-ng` to remove link)
72
+ - `npm link @dsivd/prestations-ng` (`npm install` to remove link)
82
73
  - `ng g @dsivd/prestations-ng:[YOUR_SCHEMATIC]` (i.e. `ng g @dsivd/prestations-ng:ng-add` or `ng g @dsivd/prestations-ng:update-karma-config` or `ng g @dsivd/prestations-ng:replace-browsers-list`)
83
74
 
84
75
  In your project, you can test any schematic added into [collection.json](projects/prestations-ng/schematics/collection.json).
package/README.md CHANGED
@@ -8,6 +8,7 @@ The generated documentation of our entire library is available online at [https:
8
8
 
9
9
  The documentation is available online at [https://dsi-vd.github.io/prestations-ng/](https://dsi-vd.github.io/prestations-ng/)
10
10
 
11
+ - If you're using **Angular 21**, use `@dsivd/prestations-ng` at version `^19`.
11
12
  - If you're using **Angular 19**, use `@dsivd/prestations-ng` at version `^18`.
12
13
  - If you're using **Angular 17**, use `@dsivd/prestations-ng` at version `^17`.
13
14
  - If you're using **Angular 15**, use `@dsivd/prestations-ng` at version `^16`.