@arsedizioni/ars-utils 21.2.208 → 21.2.220

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.
Files changed (34) hide show
  1. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +179 -159
  2. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  3. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +48 -48
  4. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  5. package/fesm2022/arsedizioni-ars-utils-core.mjs +104 -104
  6. package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
  7. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +280 -252
  8. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
  9. package/fesm2022/arsedizioni-ars-utils-help.mjs +115 -102
  10. package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
  11. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +43 -36
  12. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  13. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +68 -77
  14. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs.map +1 -1
  15. package/fesm2022/arsedizioni-ars-utils-tinymce.mjs +41 -26
  16. package/fesm2022/arsedizioni-ars-utils-tinymce.mjs.map +1 -1
  17. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +803 -732
  18. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
  19. package/fesm2022/arsedizioni-ars-utils-ui.mjs +475 -330
  20. package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
  21. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +29 -25
  22. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
  23. package/package.json +1 -1
  24. package/types/arsedizioni-ars-utils-clipper.common.d.ts +88 -62
  25. package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1 -1
  26. package/types/arsedizioni-ars-utils-core.d.ts +1 -1
  27. package/types/arsedizioni-ars-utils-evolution.common.d.ts +131 -70
  28. package/types/arsedizioni-ars-utils-help.d.ts +76 -66
  29. package/types/arsedizioni-ars-utils-support.common.d.ts +29 -19
  30. package/types/arsedizioni-ars-utils-support.ui.d.ts +29 -25
  31. package/types/arsedizioni-ars-utils-tinymce.d.ts +25 -10
  32. package/types/arsedizioni-ars-utils-ui.application.d.ts +458 -328
  33. package/types/arsedizioni-ars-utils-ui.d.ts +282 -145
  34. package/types/arsedizioni-ars-utils-ui.oauth.d.ts +25 -18
@@ -6,10 +6,10 @@ import { SupportNotificationInfo, SupportNotificationsSearchParams } from '@arse
6
6
 
7
7
  declare class SupportNotificationsBrowserComponent implements OnInit, AfterViewInit {
8
8
  readonly paginator: _angular_core.Signal<MatPaginator>;
9
- protected screenService: ScreenService;
10
- private supportService;
11
- private broadcastService;
12
- private dialogService;
9
+ protected readonly screenService: ScreenService;
10
+ private readonly supportService;
11
+ private readonly broadcastService;
12
+ private readonly dialogService;
13
13
  private readonly destroyRef;
14
14
  protected selection: SelectableModel<SupportNotificationInfo, number>;
15
15
  protected searchParams: SupportNotificationsSearchParams;
@@ -18,50 +18,54 @@ declare class SupportNotificationsBrowserComponent implements OnInit, AfterViewI
18
18
  ngOnInit(): void;
19
19
  ngAfterViewInit(): void;
20
20
  /**
21
- * Update scroll
21
+ * Scrolls the notifications list back to the top.
22
22
  */
23
23
  private updateScroll;
24
24
  /**
25
- * Update menu buttons visibility when the menu is closed
25
+ * Resets the `isMenuOpen` flag on all items after a context menu is closed.
26
26
  */
27
27
  protected updateMenuButtonsVisibility(): void;
28
28
  /**
29
- * Get all selected ids
30
- * @returns: the selected ids as an array
31
- */
32
- private getSeletectIds;
29
+ * Returns the ids of the currently selected items.
30
+ * Shows an error and returns `undefined` when the selection exceeds 50 items.
31
+ * @returns An array of selected notification ids, or `undefined` on validation failure.
32
+ */
33
+ private getSelectedIds;
33
34
  /**
34
- * Return item state css class
35
- * @param item : the item to evaluate
36
- */
37
- protected getItemStateCssClass(item: SupportNotificationInfo): string;
35
+ * Returns the CSS class to apply to the read-state indicator stripe.
36
+ * @param item - The notification to evaluate.
37
+ * @returns `'unread-bg'` when the notification has not been read, otherwise `undefined`.
38
+ */
39
+ protected getItemStateCssClass(item: SupportNotificationInfo): string | undefined;
38
40
  /**
39
- * Return the item state tooltip text
40
- * @param item : the item to evaluate
41
+ * Returns the tooltip text for the read-state indicator stripe.
42
+ * @param item - The notification to evaluate.
43
+ * @returns `'Non letto'` when unread, otherwise an empty string.
41
44
  */
42
45
  protected getItemStateTooltip(item: SupportNotificationInfo): string;
43
46
  /**
44
- * Perform a new search
47
+ * Resets pagination to page 0 and fetches a fresh result set.
45
48
  */
46
49
  protected find(): void;
47
50
  /**
48
- * Retrieve data
51
+ * Fetches the current page of notifications from the server.
49
52
  */
50
53
  private fetch;
51
54
  /**
52
- * Show a new page result
53
- * @param e : the MatPaginator PageEvent data
55
+ * Handles paginator page changes and loads the corresponding result page.
56
+ * @param e - The `PageEvent` emitted by `MatPaginator`.
54
57
  */
55
58
  protected fetchMore(e: PageEvent): void;
56
59
  /**
57
- * Mark a notification as read or unread
58
- * @param item : the item to set or null to use selection
59
- * @param unmark : true to set as unread or false to set as read
60
+ * Marks one or more notifications as read or unread.
61
+ * When no specific item is supplied, acts on the current selection.
62
+ * @param item - A single notification to mark, or `undefined` to use the selection.
63
+ * @param unmark - `true` to mark as unread; `false` (default) to mark as read.
60
64
  */
61
65
  protected mark(item?: SupportNotificationInfo, unmark?: boolean): void;
62
66
  /**
63
- * Display a notification
64
- * @param item : the item to display
67
+ * Opens the notification detail dialog for the given item.
68
+ * @param item - The notification to display.
65
69
  */
66
70
  protected show(item: SupportNotificationInfo): void;
67
71
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SupportNotificationsBrowserComponent, never>;
@@ -1,17 +1,27 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit } from '@angular/core';
3
2
 
4
3
  declare class TinymceUtils {
4
+ /** URL of the TinyMCE script hosted on the Tiny Cloud CDN. */
5
5
  static readonly CDN_URL = "https://cdn.tiny.cloud/1/5lnoc6ohmpjau6zyzgqyhyf52cueoennkcs8v1yfoak57ku9/tinymce/7/tinymce.min.js";
6
+ /** URL of the locally bundled TinyMCE script. */
6
7
  static readonly LOCAL_URL = "/assets/tinymce/tinymce.min.js";
7
8
  /**
8
- * Configurazione di base per TinyMCE editor
9
+ * Full-featured TinyMCE base configuration with all standard plugins and toolbar.
9
10
  */
10
11
  static TinymceConfig: Record<string, any>;
12
+ /**
13
+ * Compact TinyMCE configuration with autoresize, bottom toolbar, and grouped toolbar buttons.
14
+ * Extends `TinymceConfig` with reduced height and a simplified toolbar.
15
+ */
11
16
  static TinymceCompactConfig: Record<string, any>;
17
+ /**
18
+ * Extended compact TinyMCE configuration that adds fullscreen support and an insert group.
19
+ * Extends `TinymceCompactConfig`.
20
+ */
12
21
  static TinymceCompactExtendedConfig: Record<string, any>;
13
22
  /**
14
- * Load tiny MCE script
23
+ * Inject the TinyMCE script tag into the document head if it is not already present.
24
+ * @param useCDN - When `true`, loads from the Tiny Cloud CDN; otherwise uses the local asset.
15
25
  */
16
26
  static loadTinyMCEScript(useCDN?: boolean): void;
17
27
  }
@@ -30,16 +40,21 @@ interface FullScreenEditorDialogData {
30
40
  disabled?: boolean;
31
41
  useCDN?: boolean;
32
42
  }
33
- declare class FullScreenEditorComponent implements OnInit {
43
+ declare class FullScreenEditorComponent {
44
+ /** Emitted with the edited text when the user saves. */
34
45
  readonly saving: i0.OutputEmitterRef<string>;
35
- private dialogRef;
36
- protected dialogData: FullScreenEditorDialogData;
37
- protected disabled: i0.WritableSignal<boolean>;
38
- protected text?: string;
46
+ private readonly dialogRef;
47
+ /** Dialog configuration, injected and exposed as a signal. */
48
+ protected readonly dialogData: i0.WritableSignal<FullScreenEditorDialogData>;
49
+ /** Whether the editor is in read-only mode. */
50
+ protected readonly disabled: i0.WritableSignal<boolean>;
51
+ /** Current editor content, kept as a plain field for [(ngModel)] two-way binding. */
52
+ protected text: string;
53
+ /** TinyMCE editor configuration. */
39
54
  protected tinymceConfig: Record<string, any>;
40
- ngOnInit(): void;
55
+ constructor();
41
56
  /**
42
- * Save data
57
+ * Save the current editor content and close the dialog.
43
58
  */
44
59
  protected ok(): void;
45
60
  static ɵfac: i0.ɵɵFactoryDeclaration<FullScreenEditorComponent, never>;