@arsedizioni/ars-utils 22.5.6 → 22.5.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/README.md +4 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +3 -700
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.validators.mjs +717 -0
- package/fesm2022/arsedizioni-ars-utils-core.validators.mjs.map +1 -0
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +2 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +2 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +2 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +2 -1
- package/fesm2022/arsedizioni-ars-utils-ui.files.mjs.map +1 -1
- package/package.json +5 -1
- package/types/arsedizioni-ars-utils-core.d.ts +1 -266
- package/types/arsedizioni-ars-utils-core.validators.d.ts +268 -0
package/README.md
CHANGED
|
@@ -23,6 +23,7 @@ di vita proprio vive nel suo entry point. Importare sempre dal path specifico.
|
|
|
23
23
|
| L0 | `core` | `SystemUtils`, models, definitions, pipe, direttive validator, servizi (broadcast, screen, theme, splash, environment), `LoginOAuthType` | nessuna dipendenza da Angular Material |
|
|
24
24
|
| L0 | `core.date` | `provideArsDateFns`, `provideArsLocalDates`, `MAT_DATE_FNS_FORMATS`, `arsLocalDateInterceptor`, `ARS_TIME_ZONE` | isola `@angular/material/core` + `datepicker` |
|
|
25
25
|
| L0 | `core.markdown` | `MarkdownUtils`, `FormatMarkdownPipe` | parser markdown, fuori dal percorso comune |
|
|
26
|
+
| L0 | `core.validators` | direttive validator per i form template-driven (`ValidatorDirective`, `ValidIfDirective`, `EqualsValidatorDirective`, `PasswordValidatorDirective`, `EmailsValidatorDirective`, ...) | isola `@angular/forms` (53 KB): `core` sta sul percorso di boot e non deve trascinarselo |
|
|
26
27
|
| L0.5 | `ui.shell` | `ShellService` (`info`, `error`, `busy*`, `wait`, `BusyTimer`), `ShellMessageComponent`, `ShellBusyComponent` | zero Material e zero CDK: e' quello che shell, interceptor, guard e app initializer possono permettersi sul percorso di boot |
|
|
27
28
|
| L1 | `ui` | `FlexLayoutModule`, `MediaObserver`, `UIService`, tipi dei dialog | kernel: deve restare magro, e non importa nulla da Material |
|
|
28
29
|
| L1 | `ui.paginator` | `PaginatorIntl` | isola `@angular/material/paginator`, che si porta dietro `mat-select` e `mat-option` |
|
|
@@ -56,7 +57,7 @@ solo a chi importa rispettivamente `ui.oauth` e `ui.tinymce`: sono dichiarati in
|
|
|
56
57
|
### Grafo delle dipendenze statiche
|
|
57
58
|
|
|
58
59
|
```
|
|
59
|
-
core core.date core.markdown ui.paginator
|
|
60
|
+
core core.date core.markdown core.validators ui.paginator
|
|
60
61
|
| \
|
|
61
62
|
| ui.shell
|
|
62
63
|
| |
|
|
@@ -152,6 +153,8 @@ iniettato e nient'altro.
|
|
|
152
153
|
- `SelectableModel` espone `first` e `selectedAny` al posto di `selectedFirst` e `selectedAll`.
|
|
153
154
|
- `support.ui` si chiama `ui.notifications`, `help` si chiama `ui.help`, `tinymce` si chiama `ui.tinymce`.
|
|
154
155
|
- `PaginatorIntl` non sta piu' in `ui`: sta in `ui.paginator`.
|
|
156
|
+
- Le direttive validator non stanno piu' in `core`: stanno in `core.validators`, che e' l'unico
|
|
157
|
+
entry point del nucleo a dipendere da `@angular/forms`.
|
|
155
158
|
- La shell non deve piu' iniettare `DialogService` per mostrare un errore: c'e' `ShellService` in `ui.shell`.
|
|
156
159
|
- `info`, `error`, `busy`, `busySpinner`, `busyHourglass`, `wait`, `busyTimer` e `clearBusy` sono
|
|
157
160
|
passati a `ShellService`. `DialogService` li eredita, quindi nessuna chiamata cambia.
|