@arsedizioni/ars-utils 22.5.8 → 22.5.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/README.md +12 -5
- package/clipper.common/README.md +3 -6
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +20 -692
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +27 -774
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs +23 -5
- package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs +486 -119
- package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs.map +1 -1
- package/package.json +1 -5
- package/styles/ui.colors.scss +25 -23
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +21 -751
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +5 -193
- package/types/arsedizioni-ars-utils-ui.shell.d.ts +15 -1
- package/types/arsedizioni-ars-utils-ui.tinymce.d.ts +240 -28
- package/ui.tinymce/README.md +82 -12
package/README.md
CHANGED
|
@@ -45,12 +45,12 @@ di vita proprio vive nel suo entry point. Importare sempre dal path specifico.
|
|
|
45
45
|
| L0.5 | `evolution.common` | `EvolutionService`, account, compliance, login, interceptor auth | - |
|
|
46
46
|
| L2 | `ui.oauth` | `LoginOAuthComponent`, `LoginOAuthOkMSComponent` | `@azure/msal-angular`, `@azure/msal-browser` |
|
|
47
47
|
| L2 | `ui.help` | `HelpService`, `HelpViewerComponent`, modello dei capitoli | - |
|
|
48
|
-
| L2 | `ui.tinymce` | `TinymceUtils`, `
|
|
48
|
+
| L2 | `ui.tinymce` | `TinymceEditorDirective`, `TinymceLoaderService`, `TinymceUtils`, `TinyMceEditorComponent`, `langs/it.js` | `tinymce` (caricato a runtime) |
|
|
49
49
|
| L2 | `ui.notifications` | `NotificationsBrowserComponent` (ex `support.ui`) | - |
|
|
50
|
-
| L2 | `clipper.common` | `ClipperService`,
|
|
51
|
-
| L4 | `clipper.ui` | browser, document,
|
|
50
|
+
| L2 | `clipper.common` | `ClipperService`, documents, login, canali e contatori non letti, interceptor auth | solo il necessario a consultare i documenti |
|
|
51
|
+
| L4 | `clipper.ui` | browser, document, references, search-* e `ClipperDocumentsUtils` | `clipper.scss` |
|
|
52
52
|
|
|
53
|
-
I peer dependency opzionali (`@azure/msal-*`, `tinymce
|
|
53
|
+
I peer dependency opzionali (`@azure/msal-*`, `tinymce`) servono
|
|
54
54
|
solo a chi importa rispettivamente `ui.oauth` e `ui.tinymce`: sono dichiarati in
|
|
55
55
|
`peerDependenciesMeta.optional` proprio perche' nessun altro entry point li aggancia.
|
|
56
56
|
|
|
@@ -100,7 +100,7 @@ clipper.ui (+ clipper.common, ui.controls, ui.files, ui.dialogs.select)
|
|
|
100
100
|
Nel top layer l'ordine e' quello di promozione, l'ultimo promosso sta sopra. Da qui le tre
|
|
101
101
|
regole esplicite: `setBusy()` ripromuove il messaggio dopo aver alzato il busy,
|
|
102
102
|
`DialogService.open()` chiama `raiseMessage()` dopo aver aperto un dialog, e chiama
|
|
103
|
-
`clearBusy(true)` senza periodo di grazia. La coppia `--ars-shell-z-index`/`--ars-busy-z-index`
|
|
103
|
+
`clearBusy(true)` senza periodo di grazia. La coppia `--ars-shell-dialog-z-index`/`--ars-shell-busy-z-index`
|
|
104
104
|
(1100/1090) resta valida e serve ancora: e' quello che ordina gli overlay sui browser senza
|
|
105
105
|
Popover API, dove nemmeno il CDK la usa. Se un'applicazione avesse bisogno del vecchio
|
|
106
106
|
comportamento puo' spegnere la Popover API del CDK con
|
|
@@ -153,8 +153,15 @@ iniettato e nient'altro.
|
|
|
153
153
|
- `SelectableModel` espone `first` e `selectedAny` al posto di `selectedFirst` e `selectedAll`.
|
|
154
154
|
- `support.ui` si chiama `ui.notifications`, `help` si chiama `ui.help`, `tinymce` si chiama `ui.tinymce`.
|
|
155
155
|
- `PaginatorIntl` non sta piu' in `ui`: sta in `ui.paginator`.
|
|
156
|
+
- `ui.tinymce` non dipende piu' da `@tinymce/tinymce-angular`: l'editor e' la direttiva
|
|
157
|
+
`[tinymceEditor]` su una `<textarea>`, e TinyMCE viene caricato a runtime da
|
|
158
|
+
`TinymceLoaderService`. Il componente `<editor>` non esiste piu'.
|
|
156
159
|
- Le direttive validator non stanno piu' in `core`: stanno in `core.validators`, che e' l'unico
|
|
157
160
|
entry point del nucleo a dipendere da `@angular/forms`.
|
|
161
|
+
- I token CSS della shell stanno tutti sotto `--ars-shell-dialog-*` e `--ars-shell-busy-*`: prima
|
|
162
|
+
erano `--ars-dialog-*`, `--ars-scrim-color`, `--ars-busy-*` e `--ars-progress-track-color`, che si
|
|
163
|
+
confondevano con `--ars-dialog-item-*`, cioe' i dialog Material veri. Un'applicazione che ne
|
|
164
|
+
sovrascriveva qualcuno deve rinominarlo.
|
|
158
165
|
- La shell non deve piu' iniettare `DialogService` per mostrare un errore: c'e' `ShellService` in `ui.shell`.
|
|
159
166
|
- `info`, `error`, `busy`, `busySpinner`, `busyHourglass`, `wait`, `busyTimer` e `clearBusy` sono
|
|
160
167
|
passati a `ShellService`. `DialogService` li eredita, quindi nessuna chiamata cambia.
|
package/clipper.common/README.md
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
# Clipper common — Vitest test suite
|
|
2
2
|
|
|
3
|
-
Effective unit-test suite for the `clipper.common` library: the
|
|
3
|
+
Effective unit-test suite for the `clipper.common` library: the 3 feature services,
|
|
4
4
|
the shared `ClipperCoreService`, the `ClipperService` facade and `ClipperAuthInterceptor`.
|
|
5
5
|
|
|
6
6
|
## What is covered
|
|
7
7
|
|
|
8
8
|
| Spec | Focus |
|
|
9
9
|
| --- | --- |
|
|
10
|
-
| `core.service.spec.ts` | state mutators (`ensureLoginInfo`, `setLoggedIn`, `
|
|
10
|
+
| `core.service.spec.ts` | state mutators (`ensureLoginInfo`, `setLoggedIn`, `updateContext`, `initializeChannels`, `reset`, `clear`), lazy `loginInfo` load, `initialize` (serviceUri/appUri/flags, client-id / embedded, F5 branch), broadcast handlers (`LOGIN_CHANGED`, `LOGOUT` logged-in/out), `ping` |
|
|
11
11
|
| `login.service.spec.ts` | credential + OAuth login, MFA pending, failure, temporary context, `autoLogin`/`autoLogout`, `confirmIdentity`, `logout` (clears session on success **and** error), `newOTP` |
|
|
12
12
|
| `documents.service.spec.ts` | every endpoint, `references`/`referencesFacets` mode routing + `null`, default taxonomy body, dashboard counters, bag parsing (`loadBag`/`addToBag`/`removeFromBag`/`clearBag`) |
|
|
13
|
-
| `account.service.spec.ts` |
|
|
14
|
-
| `archive.service.spec.ts` | folders/files endpoints, `exportArchiveFolders` URL building, multipart `importArchiveFolders`/`saveArchiveFile` form data, blob download |
|
|
15
|
-
| `calendar.service.spec.ts` | all deadline endpoints + team storage + ICS export |
|
|
16
|
-
| `collaboration.service.spec.ts` | teams (incl. `adminsOnly` team-storage rule), contacts, notes |
|
|
13
|
+
| `account.service.spec.ts` | `updateChannels` (enabled channels only) and `updateUnreadItems` (increment + broadcast); the service touches no endpoint, and `http.verify()` keeps it that way |
|
|
17
14
|
| `clipper.service.spec.ts` | facade exposes/forwards feature services, re-exports core signals by identity, delegates `initialize`/`ping` |
|
|
18
15
|
| `auth.interceptor.spec.ts` | header decoration, passthrough of non-Clipper URLs, error mapping (0/403/405/410/5xx), `NotifySystemErrors` flag, 5s debounce |
|
|
19
16
|
|