@dsivd/prestations-ng 19.0.0-beta.6 → 19.0.0-beta.7

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
@@ -22,6 +22,23 @@
22
22
  - [HasCustomErrors](projects/prestations-ng/src/has-custom-errors.ts)
23
23
  - Added `HasCustomErrors` interface representing a component that has custom error messages
24
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
+
25
42
  ## [18.3.12]
26
43
 
27
44
  ### Updated
package/CONTRIBUTING.md CHANGED
@@ -19,13 +19,13 @@ in both the Dev Tool and the library reload the page.
19
19
  ## Testing the library in integration
20
20
 
21
21
  Since version `8`, we can't use native symlink to integrate `prestations-ng` to
22
- a prestation such as Skeleton. We can however use `yarn link` to achieve the same
22
+ a prestation such as Skeleton. We can however use `npm link` to achieve the same
23
23
  result.
24
24
 
25
25
  ### In **prestations-ng**
26
26
 
27
27
  - if it is the first time, execute `npm install` then `npm run build:lib` (at root level)
28
- - `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)
29
29
  - `cd ../.. && npm run build:lib:dev` (at root level)
30
30
 
31
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).
@@ -33,12 +33,12 @@ result.
33
33
  ### In the prestation
34
34
 
35
35
  - `cd front`
36
- - `yarn link @dsivd/prestations-ng`
36
+ - `npm link @dsivd/prestations-ng`
37
37
  - `npm start` (only when `npm run build:lib:dev` in `prestations-ng` has started)
38
38
 
39
39
  Now if you change something in `prestations-ng`, the CLI of the prestation will hot swap the missing pieces and reload the page.
40
40
 
41
- 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.
42
42
 
43
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)**
44
44
 
@@ -64,12 +64,12 @@ run `npm run test:schematics` (at root level).
64
64
 
65
65
  - **In prestations-ng**:
66
66
  - if it is the first time, execute `npm install` then `npm run build:lib` (at root level)
67
- - `cd dist/prestations-ng && yarn link` (it's critical to link the content of `dist/prestations-ng`, not the root)
68
- - `npm run build:lib:dev` (at root level)
67
+ - `cd dist/prestations-ng && npm link` (it's critical to link the content of `dist/prestations-ng`, not the root)
68
+ - `cd ../.. && npm run build:lib:dev` (at root level)
69
69
 
70
70
  - **In project**:
71
71
  - `cd front`
72
- - `yarn link @dsivd/prestations-ng` (`yarn unlink @dsivd/prestations-ng` to remove link)
72
+ - `npm link @dsivd/prestations-ng` (`npm install` to remove link)
73
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`)
74
74
 
75
75
  In your project, you can test any schematic added into [collection.json](projects/prestations-ng/schematics/collection.json).
package/UPGRADING_V19.md CHANGED
@@ -330,7 +330,7 @@ ng update ngx-matomo-client@9
330
330
 
331
331
  ### Quick fix
332
332
 
333
- In all custom components extending `FoehnInputComponent`, in `providers` providing `FoehnInputComponent` remove `multi: true,`
333
+ - In all custom components extending `FoehnInputComponent`, in `providers` providing `FoehnInputComponent` remove `multi: true,`.
334
334
 
335
335
  ```diff
336
336
  {
@@ -340,9 +340,11 @@ In all custom components extending `FoehnInputComponent`, in `providers` providi
340
340
  }
341
341
  ```
342
342
 
343
- In your `.eslintrc.json`, remove `"/src/main.ts",` from `ignorePatterns`
343
+ - In your `.eslintrc.json`, remove `"/src/main.ts",` from `ignorePatterns`.
344
344
 
345
- In `main.ts`, replace `platformBrowserDynamic` by `platformBrowser`
345
+ - In `main.ts`, replace `platformBrowserDynamic` by `platformBrowser`.
346
+
347
+ - When using `<foehn-list-summary` component, replace `list` by `model`.
346
348
 
347
349
  ### Now fix your project before continuing
348
350
 
@@ -426,6 +428,8 @@ ng generate @angular/core:self-closing-tag
426
428
 
427
429
  **WARNING: The following command will work only when your application compiles without errors. If you have errors, fix them before continuing.**
428
430
 
431
+ **TIP: Check [Migrating from NgModules](COMPONENTS.md#migrating_from_ngmodules) for more information before running following commands.**
432
+
429
433
  ```bash
430
434
  npm run build
431
435
  ```