@enigmatry/entry-components 1.14.9 → 1.14.11

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/dialog/README.md CHANGED
@@ -2,7 +2,13 @@
2
2
 
3
3
  Enables working with built-in (alert and confirm) and custom dialogs. Supports dialog configuration on application level.
4
4
 
5
- ## Imports
5
+ ## Integration
6
+
7
+ ```npm
8
+ npm i @enigmatry/entry-components
9
+ ```
10
+
11
+ Import component package:
6
12
 
7
13
  ```ts
8
14
  import { EntryDialogModule } from '@enigmatry/entry-components/dialog';
package/header/README.md CHANGED
@@ -2,7 +2,13 @@
2
2
 
3
3
  Simple way of providing header layout and styling for the page or section header.
4
4
 
5
- ## Imports
5
+ ## Integration
6
+
7
+ ```npm
8
+ npm i @enigmatry/entry-components
9
+ ```
10
+
11
+ Import component package:
6
12
 
7
13
  ```ts
8
14
  import { EntryHeaderModule } from '@enigmatry/entry-components/entry-header';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enigmatry/entry-components",
3
- "version": "1.14.9",
3
+ "version": "1.14.11",
4
4
  "author": "Enigmatry",
5
5
  "description": "Enigmatry entry angular material components",
6
6
  "homepage": "https://github.com/enigmatry/entry-angular-building-blocks/tree/master/libs/entry-components#readme",
@@ -5,7 +5,13 @@ Entry component for providing standard filtering capabilities that can be consum
5
5
  * Text filter
6
6
  * Select filter (supports fixed and dynamic (Observable) options)
7
7
 
8
- ## Imports
8
+ ## Integration
9
+
10
+ ```npm
11
+ npm i @enigmatry/entry-components
12
+ ```
13
+
14
+ Import component package:
9
15
 
10
16
  ```ts
11
17
  import { EntrySearchFilterModule } from '@enigmatry/entry-components/search-filter';
package/toolbar/README.md CHANGED
@@ -2,7 +2,13 @@
2
2
 
3
3
  Toolbar component (`<entry-toolbar>`) is used as a header section in the applications. It offers built-in support for title or logo on the left side, while other elements, like menu items, must be provided via content projection. The component is responsive in a way that on smaller screens (mobile/tablet) switches to _the compact view_ containing menu icon button used to toggle content visibility.
4
4
 
5
- ## Imports
5
+ ## Integration
6
+
7
+ ```npm
8
+ npm i @enigmatry/entry-components
9
+ ```
10
+
11
+ Import component package:
6
12
 
7
13
  ```ts
8
14
  import { EntryDialogModule } from '@enigmatry/entry-components/toolbar';
@@ -1,16 +1,22 @@
1
1
  # Entry Validation
2
2
 
3
- Enables configuring forms (Reactive or [Formly](https://formly.dev/) forms) so that server or client side validation errors are displayed correctly. To accomplish this, it offers the following features:
3
+ Enables configuring forms (Reactive or [Formly](https://formly.dev/)) so that server or client side validation errors are displayed correctly. To accomplish this, it offers the following features:
4
4
 
5
5
  * `setServerSideValidationErrors(error, form)` - a method that maps received server side validation errors to the form and its fields.
6
6
  * `entryDisplayControlValidation` - a directive that displays field level validation errors.
7
7
  * `<entry-form-errors>` - a component that displays form level validation errors.
8
8
  * `ENTRY_VALIDATION_CONFIG` - configuration provider used to configure default client side validation messages on module level.
9
9
 
10
- ## Imports
10
+ ## Integration
11
+
12
+ ```npm
13
+ npm i @enigmatry/entry-components
14
+ ```
15
+
16
+ Import component package:
11
17
 
12
18
  ```ts
13
- import { EntryDialogModule } from '@enigmatry/entry-components/validation';
19
+ import { EntryValidationModule } from '@enigmatry/entry-components/validation';
14
20
  ```
15
21
 
16
22
  Styles import:
@@ -25,7 +31,7 @@ Where `APP_THEME` represents application theming configuration, while `APP_TYPOG
25
31
 
26
32
  ## Basic usage
27
33
 
28
- Reactive form example with configured validation components (`entryDisplayControlValidation` & `<entry-form-errors>`):
34
+ Add `entryDisplayControlValidation` & `<entry-form-errors>` elements to the form to support validation error messages:
29
35
 
30
36
  ```html
31
37
  <form [formGroup]="form" (ngSubmit)="submitForm()">
@@ -41,7 +47,7 @@ Reactive form example with configured validation components (`entryDisplayContro
41
47
  </form>
42
48
  ```
43
49
 
44
- On submit, in case of _BadRequest (400)_ errors, response must be handled using `setServerSideValidationErrors(error, form)` method:
50
+ On submit handle _BadRequest (400)_ response using `setServerSideValidationErrors(error, form)` method:
45
51
 
46
52
  ```ts
47
53
  import { IValidationProblemDetails, setServerSideValidationErrors } from '@enigmatry/entry-components/validation';
@@ -57,7 +63,7 @@ submitForm() {
57
63
 
58
64
  ## Configuration
59
65
 
60
- Optionally, when using Reactive form we can configure validation messages on module level for form validators in use:
66
+ Optionally, when using Reactive form, client side validation messages can be configured on module level:
61
67
 
62
68
  ```ts
63
69
  // ...
@@ -86,7 +92,7 @@ export class AppModule { }
86
92
 
87
93
  ## Microsoft WEB.API & NSwag configuration
88
94
 
89
- To configure your REST API (_Microsoft WEB.API_) so it returns _Bad Request_ response in uniform format we should decorate all end-points that trigger validation with `ProducesResponseType` attribute that maps [ValidationProblemDetails](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.validationproblemdetails?view=aspnetcore-7.0) to _Bad Request_ responses:
95
+ To configure REST API (_Microsoft WEB.API_) to return _Bad Request_ responses in uniform format, decorate all end-points that trigger validation with `ProducesResponseType` attribute that maps [ValidationProblemDetails](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.validationproblemdetails?view=aspnetcore-7.0) to _Bad Request_ responses:
90
96
 
91
97
  ```csharp
92
98
  using Microsoft.AspNetCore.Mvc;
@@ -100,6 +106,6 @@ public async Task<ActionResult<Response>> Post([FromBody] Command command)
100
106
  }
101
107
  ```
102
108
 
103
- When set like this, we can generate, using [NSwag](https://github.com/RicoSuter/NSwag), client side models for _Bad Request_ responses, that can be then used with `setServerSideValidationErrors(error, form)` method as input parameter.
109
+ When set like this, generated ([NSwag](https://github.com/RicoSuter/NSwag)) client side models for _Bad Request_ responses can be used as input parameter of `setServerSideValidationErrors(error, form)` method.
104
110
 
105
- This is because we based our `IValidationProblemDetails` interface on [ValidationProblemDetails](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.validationproblemdetails?view=aspnetcore-7.0) class.
111
+ This is because `IValidationProblemDetails` interface is based on [ValidationProblemDetails](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.validationproblemdetails?view=aspnetcore-7.0) class.