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

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
@@ -153,6 +153,13 @@ Run your application with this dependency :
153
153
 
154
154
  Look for logs that indicate property you should migrate (watch for WARN logs of class PropertiesMigrationListener), update them and remove the dependency
155
155
 
156
+ ### BO using jpa repositories
157
+
158
+ As we also have jdbc in the classpath, to avoid having dozens of log like "Spring Data JDBC - Could not safely
159
+ identify store assignment for repository candidate interface", add the property in your application.properties :
160
+
161
+ spring.data.jdbc.repositories.enabled=false
162
+
156
163
  ### Debugging tips
157
164
 
158
165
  Spring boot 4 doesn't support calling a controller with a trailing slash, fix the url called (/api/ping != /api/ping**/**)
@@ -330,7 +337,7 @@ ng update ngx-matomo-client@9
330
337
 
331
338
  ### Quick fix
332
339
 
333
- In all custom components extending `FoehnInputComponent`, in `providers` providing `FoehnInputComponent` remove `multi: true,`
340
+ - In all custom components extending `FoehnInputComponent`, in `providers` providing `FoehnInputComponent` remove `multi: true,`.
334
341
 
335
342
  ```diff
336
343
  {
@@ -340,9 +347,11 @@ In all custom components extending `FoehnInputComponent`, in `providers` providi
340
347
  }
341
348
  ```
342
349
 
343
- In your `.eslintrc.json`, remove `"/src/main.ts",` from `ignorePatterns`
350
+ - In your `.eslintrc.json`, remove `"/src/main.ts",` from `ignorePatterns`.
344
351
 
345
- In `main.ts`, replace `platformBrowserDynamic` by `platformBrowser`
352
+ - In `main.ts`, replace `platformBrowserDynamic` by `platformBrowser`.
353
+
354
+ - When using `<foehn-list-summary` component, replace `list` by `model`.
346
355
 
347
356
  ### Now fix your project before continuing
348
357
 
@@ -426,6 +435,8 @@ ng generate @angular/core:self-closing-tag
426
435
 
427
436
  **WARNING: The following command will work only when your application compiles without errors. If you have errors, fix them before continuing.**
428
437
 
438
+ **TIP: Check [Migrating from NgModules](COMPONENTS.md#migrating_from_ngmodules) for more information before running following commands.**
439
+
429
440
  ```bash
430
441
  npm run build
431
442
  ```