@arsedizioni/ars-utils 19.4.6 → 19.4.10

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 (79) hide show
  1. package/clipper.common/common/definitions.d.ts +6 -6
  2. package/clipper.common/common/services/clipper.service.d.ts +10 -10
  3. package/clipper.ui/documents.d.ts +1 -1
  4. package/clipper.ui/ui/browser/browser-dialog/browser-dialog.component.d.ts +6 -6
  5. package/clipper.ui/ui/browser/browser.component.d.ts +5 -5
  6. package/clipper.ui/ui/document/document.component.d.ts +9 -9
  7. package/clipper.ui/ui/document-index/document-index.component.d.ts +3 -3
  8. package/clipper.ui/ui/document-manager/document-manager.d.ts +10 -10
  9. package/clipper.ui/ui/document-menu/document-menu.component.d.ts +2 -2
  10. package/clipper.ui/ui/references/references.component.d.ts +7 -7
  11. package/clipper.ui/ui/search-calendar/search-calendar.component.d.ts +3 -3
  12. package/clipper.ui/ui/search-facets/search-facets.component.d.ts +1 -1
  13. package/clipper.ui/ui/search-result-manager/search-result-manager.d.ts +17 -15
  14. package/core/dateFnsAdapter.module.d.ts +4 -4
  15. package/core/definitions.d.ts +2 -2
  16. package/core/directives/validators.d.ts +14 -14
  17. package/core/pipes/format.pipe.d.ts +1 -1
  18. package/core/pipes/replace.pipe.d.ts +1 -1
  19. package/core/pipes/safe-html.pipe.d.ts +1 -1
  20. package/core/pipes/safe-url.pipe.d.ts +1 -1
  21. package/core/pipes/search-callback.pipe.d.ts +1 -1
  22. package/core/pipes/search-filter.pipe.d.ts +1 -1
  23. package/core/selectable.d.ts +4 -4
  24. package/core/services/broadcast.service.d.ts +1 -1
  25. package/core/services/broadcastChannelManager.d.ts +8 -8
  26. package/core/system.d.ts +17 -17
  27. package/evolution.common/common/definitions.d.ts +218 -218
  28. package/evolution.common/common/services/evolution.service.d.ts +3 -3
  29. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +58 -173
  30. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  31. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +103 -109
  32. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  33. package/fesm2022/arsedizioni-ars-utils-core.mjs +61 -62
  34. package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
  35. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +4 -6
  36. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
  37. package/fesm2022/arsedizioni-ars-utils-help.mjs +5 -6
  38. package/fesm2022/arsedizioni-ars-utils-help.mjs.map +1 -1
  39. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +4 -6
  40. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  41. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs +0 -1
  42. package/fesm2022/arsedizioni-ars-utils-support.ui.mjs.map +1 -1
  43. package/fesm2022/arsedizioni-ars-utils-tinymce.mjs +0 -1
  44. package/fesm2022/arsedizioni-ars-utils-tinymce.mjs.map +1 -1
  45. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +81 -91
  46. package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
  47. package/fesm2022/arsedizioni-ars-utils-ui.mjs +15 -15
  48. package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
  49. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +1 -1
  50. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
  51. package/help/components/help-viewer/help-viewer.component.d.ts +5 -5
  52. package/help/definitions.d.ts +1 -1
  53. package/package.json +8 -8
  54. package/support.common/common/definitions.d.ts +23 -23
  55. package/support.common/common/services/support.service.d.ts +3 -3
  56. package/support.ui/ui/notifications-browser/notification/notification.component.d.ts +2 -2
  57. package/tinymce/full-screen-editor/full-screen-editor.component.d.ts +2 -2
  58. package/ui/ui/dialogs/confirm/confirm-dialog.component.d.ts +7 -7
  59. package/ui/ui/dialogs/credentials/credentials-dialog.component.d.ts +9 -9
  60. package/ui/ui/dialogs/info/info-dialog.component.d.ts +5 -5
  61. package/ui/ui/dialogs/recover-password/recover-password-dialog.component.d.ts +1 -1
  62. package/ui/ui/dialogs/reset-password/reset-password-dialog.component.d.ts +3 -3
  63. package/ui/ui/dialogs/toast/toast.component.d.ts +2 -2
  64. package/ui/ui/services/dialog.service.d.ts +14 -14
  65. package/ui/ui/services/ui.service.d.ts +2 -2
  66. package/ui.application/ui/components/button-selector/button-selector.component.d.ts +2 -2
  67. package/ui.application/ui/components/chips-selector/chips-selector.component.d.ts +5 -5
  68. package/ui.application/ui/components/file-input/file-input.component.d.ts +1 -1
  69. package/ui.application/ui/components/file-preview/file-preview.component.d.ts +3 -3
  70. package/ui.application/ui/components/filter-bar/filter-bar.component.d.ts +3 -3
  71. package/ui.application/ui/definitions.d.ts +13 -13
  72. package/ui.application/ui/dialogs/prompt/prompt-dialog.component.d.ts +1 -1
  73. package/ui.application/ui/dialogs/prompt-date/prompt-date-dialog.component.d.ts +1 -1
  74. package/ui.application/ui/dialogs/prompt-time/prompt-time-dialog.component.d.ts +1 -1
  75. package/ui.application/ui/dialogs/select/select-dialog.component.d.ts +2 -2
  76. package/ui.application/ui/dialogs/select-picture/select-picture-dialog.component.d.ts +1 -1
  77. package/ui.application/ui/dialogs/send-to/send-to-dialog.component.d.ts +5 -5
  78. package/ui.application/ui/filters.d.ts +28 -28
  79. package/ui.application/ui/services/applicationDialog.service.d.ts +14 -14
@@ -553,7 +553,7 @@ export declare class ClipperDashboard {
553
553
  * @param model : the optional model
554
554
  * @param increment : the increment (can be negative)
555
555
  */
556
- updateUnreadItems(module: ClipperModule, model: ClipperModel, increment: number): void;
556
+ updateUnreadItems(module: ClipperModule, model: ClipperModel | undefined, increment: number): void;
557
557
  /***
558
558
  * Get the module unread items
559
559
  * @param module: the module
@@ -860,7 +860,7 @@ export declare class ClipperUtils {
860
860
  * @param item: the documenti item
861
861
  * @returns the module id
862
862
  */
863
- static getClipperModuleFromModel(item: ClipperDocumentInfo): ClipperModule;
863
+ static getClipperModuleFromModel(item: ClipperDocumentInfo): ClipperModule | undefined;
864
864
  /**
865
865
  * Return the Clipper group name
866
866
  * @param value: the group value
@@ -885,7 +885,7 @@ export declare class ClipperUtils {
885
885
  * @param modules : the modules list
886
886
  * @returns the list of availbale sort options
887
887
  */
888
- static getClipperAvailableSortOptions(modules?: NameValueItem<ClipperModule>[] | undefined, params?: ClipperSearchParams | undefined): NameValueItem<ClipperSort>[];
888
+ static getClipperAvailableSortOptions(modules?: NameValueItem<ClipperModule>[], params?: ClipperSearchParams): NameValueItem<ClipperSort>[];
889
889
  }
890
890
  export declare class ClipperSearchUtils {
891
891
  /**
@@ -898,7 +898,7 @@ export declare class ClipperSearchUtils {
898
898
  * @param modules: the modules to check
899
899
  * @returns the list fo models
900
900
  */
901
- static getModulesModels(modules: NameValueItem<ClipperModule>[] | undefined): ClipperModel[];
901
+ static getModulesModels(modules?: NameValueItem<ClipperModule>[]): ClipperModel[];
902
902
  /**
903
903
  * Check if current filter is a text based search
904
904
  * @param params : the search params to check
@@ -914,7 +914,7 @@ export declare class ClipperSearchUtils {
914
914
  /**
915
915
  * Normalize text query
916
916
  * @param text : the text query to normalize
917
- * @returns : the text normalized or null
917
+ * @returns : the text normalized or undefined
918
918
  */
919
- static normalizeTextQuery(text: string): string;
919
+ static normalizeTextQuery(text: string): string | undefined;
920
920
  }
@@ -15,8 +15,8 @@ export declare class ClipperService implements OnDestroy {
15
15
  get serviceUri(): string;
16
16
  private _flags;
17
17
  get flags(): ClipperServiceFlags;
18
- private _loginInfo;
19
- get loginInfo(): ClipperLoginInfo | null;
18
+ private _loginInfo?;
19
+ get loginInfo(): ClipperLoginInfo | undefined;
20
20
  readonly loggedIn: import("@angular/core").WritableSignal<boolean>;
21
21
  readonly loggingIn: import("@angular/core").WritableSignal<boolean>;
22
22
  readonly snapshot: import("@angular/core").WritableSignal<ClipperSearchResult>;
@@ -86,9 +86,9 @@ export declare class ClipperService implements OnDestroy {
86
86
  autoLogin(email?: string, password?: string, remember?: boolean, oauth?: LoginOAuthType, oauthAccessToken?: string | undefined, onSucces?: Function): boolean;
87
87
  /**
88
88
  * Perform auto logout
89
- * @param onSucces: function to execute on seccess
89
+ * @param onSuccess: function to execute on success
90
90
  */
91
- autoLogout(onSucces?: Function | null | undefined): void;
91
+ autoLogout(onSuccess?: Function): void;
92
92
  /**
93
93
  * Perform login
94
94
  * @param email: the optioanl email if using OAuth2
@@ -201,7 +201,7 @@ export declare class ClipperService implements OnDestroy {
201
201
  /**
202
202
  * Retrieve the taxonomy
203
203
  */
204
- getTaxonomy(params?: ClipperTaxonomyParams | null): import("rxjs").Observable<ApiResult<FolderTree>>;
204
+ getTaxonomy(params?: ClipperTaxonomyParams): import("rxjs").Observable<ApiResult<FolderTree>>;
205
205
  /**
206
206
  * Retrieve topics
207
207
  */
@@ -229,7 +229,7 @@ export declare class ClipperService implements OnDestroy {
229
229
  * @param model : the optional model
230
230
  * @param increment : the increment (can be negative)
231
231
  */
232
- updateUnreadItems(module: ClipperModule, model: ClipperModel | null, increment: number): void;
232
+ updateUnreadItems(module: ClipperModule, model?: ClipperModel, increment?: number): void;
233
233
  /**
234
234
  * Save a user link
235
235
  * @param item: the user link
@@ -374,10 +374,10 @@ export declare class ClipperService implements OnDestroy {
374
374
  saveArchiveFolder(params: Folder): import("rxjs").Observable<ApiResult<Folder>>;
375
375
  /**
376
376
  * Export folders
377
- * @param id: the folder id or null to export all folders
378
- * @param teamId: the optional team id. Default null (personal)
377
+ * @param id: the folder id or undefined to export all folders
378
+ * @param teamId: the optional team id. Default undefined (personal)
379
379
  */
380
- exportArchiveFolders(id?: string | null, teamId?: string | null): import("rxjs").Observable<Blob>;
380
+ exportArchiveFolders(id?: string, teamId?: string): import("rxjs").Observable<Blob>;
381
381
  /**
382
382
  * Import folders
383
383
  * @param params : parameters
@@ -413,7 +413,7 @@ export declare class ClipperService implements OnDestroy {
413
413
  * @param id : the binary id to download
414
414
  * @param otp : the optional one time password
415
415
  */
416
- downloadArchiveFile(id: number, otp?: string | null): import("rxjs").Observable<Blob>;
416
+ downloadArchiveFile(id: number, otp?: string): import("rxjs").Observable<Blob>;
417
417
  static ɵfac: i0.ɵɵFactoryDeclaration<ClipperService, never>;
418
418
  static ɵprov: i0.ɵɵInjectableDeclaration<ClipperService>;
419
419
  }
@@ -14,7 +14,7 @@ export declare class ClipperDocumentsUtils {
14
14
  * @param selectableModules : the clipper selectable modules
15
15
  * @param theme: the theme to use. Default is system
16
16
  */
17
- static openDocument(dialogService: DialogService, clipperService: ClipperService, documentId: string, query?: string | null | undefined, selectionMode?: ClipperSelectionMode | null, selectableModules?: ClipperModule[] | null, theme?: ThemeType | null): MatDialogRef<ClipperDocumentComponent> | null;
17
+ static openDocument(dialogService: DialogService, clipperService: ClipperService, documentId: string, query?: string, selectionMode?: ClipperSelectionMode, selectableModules?: ClipperModule[], theme?: ThemeType): MatDialogRef<ClipperDocumentComponent> | undefined;
18
18
  /**
19
19
  * Extract document title
20
20
  * @param title : the full document title
@@ -4,12 +4,12 @@ import { ThemeType } from '@arsedizioni/ars-utils/core';
4
4
  import { ClipperBrowserComponent } from '../browser.component';
5
5
  import * as i0 from "@angular/core";
6
6
  export interface ClipperBrowserDialogData {
7
- showChannels?: boolean | null;
8
- selectionMode?: ClipperSelectionMode | null;
9
- selectableModules?: ClipperModule[] | null;
10
- selectionMessage?: string | null;
11
- initialModule?: number | null;
12
- theme?: ThemeType | null;
7
+ showChannels?: boolean;
8
+ selectionMode?: ClipperSelectionMode;
9
+ selectableModules?: ClipperModule[];
10
+ selectionMessage?: string;
11
+ initialModule?: number;
12
+ theme?: ThemeType;
13
13
  }
14
14
  export declare class ClipperBrowserDialogComponent implements OnInit, AfterViewInit {
15
15
  private unsubscribe;
@@ -28,7 +28,7 @@ export declare class ClipperBrowserComponent extends ClipperSearchResultManager
28
28
  protected scrollDispatcher: ScrollDispatcher;
29
29
  protected filterDescription: import("@angular/core").WritableSignal<string>;
30
30
  protected filters: import("@angular/core").WritableSignal<NameValueItem<ClipperUserSearch>[]>;
31
- protected filter: Signal<NameValueItem<ClipperUserSearch> | null | undefined>;
31
+ protected filter: Signal<NameValueItem<ClipperUserSearch> | undefined>;
32
32
  protected hasAIAssistant: boolean;
33
33
  protected hasFilters: Signal<boolean>;
34
34
  protected isLaws: (allowEmpty?: boolean) => boolean;
@@ -52,7 +52,7 @@ export declare class ClipperBrowserComponent extends ClipperSearchResultManager
52
52
  protected modules: import("@angular/core").WritableSignal<NameValueItem<ClipperModule>[]>;
53
53
  protected interval: DateInterval;
54
54
  protected sourceInterval: DateInterval;
55
- protected user: ClipperUserInfo | null;
55
+ protected user: ClipperUserInfo | undefined;
56
56
  ngOnInit(): void;
57
57
  ngAfterViewInit(): void;
58
58
  ngOnDestroy(): void;
@@ -65,7 +65,7 @@ export declare class ClipperBrowserComponent extends ClipperSearchResultManager
65
65
  * @param id : the document id
66
66
  * @returns the document or null
67
67
  */
68
- getSnapshotDocument(id: string): ClipperDocumentInfo | null;
68
+ getSnapshotDocument(id: string): ClipperDocumentInfo | undefined;
69
69
  /**
70
70
  * Load tags
71
71
  */
@@ -115,7 +115,7 @@ export declare class ClipperBrowserComponent extends ClipperSearchResultManager
115
115
  /**
116
116
  * Select a filter
117
117
  */
118
- selectFilter(item: NameValueItem<ClipperUserSearch> | null): void;
118
+ selectFilter(item: NameValueItem<ClipperUserSearch> | undefined): void;
119
119
  /**
120
120
  * Clear current filter params
121
121
  */
@@ -198,7 +198,7 @@ export declare class ClipperBrowserComponent extends ClipperSearchResultManager
198
198
  * Change sort
199
199
  * @param new sort: the new sort value
200
200
  */
201
- protected sort(newSort: NameValueItem<any> | null): void;
201
+ protected sort(newSort?: NameValueItem<any>): void;
202
202
  /**
203
203
  * Add a topic
204
204
  */
@@ -5,11 +5,11 @@ import { ThemeType } from '@arsedizioni/ars-utils/core';
5
5
  import { ClipperDocumentManager } from '../document-manager/document-manager';
6
6
  import * as i0 from "@angular/core";
7
7
  export interface ClipperDocumentDialogData {
8
- selectionMode?: ClipperSelectionMode | null;
9
- selectableModules?: ClipperModule[] | null;
8
+ selectionMode?: ClipperSelectionMode;
9
+ selectableModules?: ClipperModule[];
10
10
  id: string;
11
- query?: string | null;
12
- theme?: ThemeType | null;
11
+ query?: string;
12
+ theme?: ThemeType;
13
13
  }
14
14
  export declare class ClipperDocumentComponent extends ClipperDocumentManager implements OnInit, OnDestroy {
15
15
  readonly relevantsPane: import("@angular/core").Signal<MatDrawer>;
@@ -26,15 +26,15 @@ export declare class ClipperDocumentComponent extends ClipperDocumentManager imp
26
26
  protected url: import("@angular/core").WritableSignal<string>;
27
27
  protected title: import("@angular/core").WritableSignal<string>;
28
28
  protected busy: import("@angular/core").WritableSignal<boolean>;
29
- protected lastQuery?: string | null;
30
- protected lastAugmentedQuery?: string[] | null;
31
- protected lastDocument?: ClipperDocumentInfo | null;
29
+ protected lastQuery?: string;
30
+ protected lastAugmentedQuery?: string[];
31
+ protected lastDocument?: ClipperDocumentInfo;
32
32
  protected relevants: ClipperDocumentRelevants;
33
33
  protected relevantsPaneHasBackdrop: boolean;
34
34
  protected relevantsPaneClosed: boolean;
35
35
  protected relevantsBusy: import("@angular/core").WritableSignal<boolean>;
36
36
  protected hasRelevants: import("@angular/core").WritableSignal<boolean>;
37
- protected user: ClipperUserInfo | null;
37
+ protected user: ClipperUserInfo | undefined;
38
38
  ngOnInit(): void;
39
39
  ngOnDestroy(): void;
40
40
  /**
@@ -131,7 +131,7 @@ export declare class ClipperDocumentComponent extends ClipperDocumentManager imp
131
131
  * @param query: the current query or null
132
132
  * @param newWindow: true if the document must be open into a new window
133
133
  */
134
- open(documentId: string, query?: string | null | undefined, newWindow?: boolean): void;
134
+ open(documentId: string, query?: string, newWindow?: boolean): void;
135
135
  /**
136
136
  * Open a document
137
137
  * @param documentId : the document id
@@ -4,8 +4,8 @@ import { ClipperDocumentAnchorInfo } from '@arsedizioni/ars-utils/clipper.common
4
4
  import * as i0 from "@angular/core";
5
5
  export interface ClipperDocumentIndexDialogData {
6
6
  documentId: string;
7
- excludedTypes?: number[] | null;
8
- multiple?: boolean | null;
7
+ excludedTypes?: number[];
8
+ multiple?: boolean;
9
9
  }
10
10
  export interface ClipperDocumentIndexDialogResult {
11
11
  data: ClipperDocumentAnchorInfo[];
@@ -17,7 +17,7 @@ export declare class ClipperDocumentIndexComponent implements OnInit {
17
17
  private clipperService;
18
18
  private dialogService;
19
19
  protected dialogData: ClipperDocumentIndexDialogData;
20
- protected items: ClipperDocumentAnchorInfo[] | null;
20
+ protected items?: ClipperDocumentAnchorInfo[];
21
21
  protected okDisabled: import("@angular/core").WritableSignal<boolean>;
22
22
  ngOnInit(): void;
23
23
  /**
@@ -19,7 +19,7 @@ export declare class ClipperDocumentManager {
19
19
  * @param searchParams: the search params
20
20
  * @param format: the export format: 1) list 2) deadlines
21
21
  */
22
- exportItems(documentIds: string[] | null | undefined, searchParams?: ClipperSearchParams | null | undefined, format?: number): void;
22
+ exportItems(documentIds: string[] | undefined, searchParams?: ClipperSearchParams | undefined, format?: number): void;
23
23
  /**
24
24
  * Export a single deadline
25
25
  * @param item : the document to export
@@ -65,7 +65,7 @@ export declare class ClipperDocumentManager {
65
65
  * @param documentId : the document id
66
66
  * @param title: the document short title
67
67
  */
68
- openReport(documentId: string, title?: string | null): void;
68
+ openReport(documentId: string, title?: string): void;
69
69
  /**
70
70
  * Open an item
71
71
  * This should be always overridden
@@ -73,7 +73,7 @@ export declare class ClipperDocumentManager {
73
73
  * @param query : the query document
74
74
  * @param newWindow: true if the document must be open into a new window
75
75
  */
76
- open(_documentId: string | null | undefined, _query?: string | null | undefined, _newWindow?: boolean): void;
76
+ open(_documentId: string | undefined, _query?: string | undefined, _newWindow?: boolean): void;
77
77
  /**
78
78
  * Display a document report
79
79
  * @param item : the document
@@ -101,22 +101,22 @@ export declare class ClipperDocumentManager {
101
101
  * AI: concern me service
102
102
  * @param document: the document
103
103
  */
104
- AI_concernMe(document: ClipperDocumentInfo | null): void;
104
+ AI_concernMe(document?: ClipperDocumentInfo): void;
105
105
  /**
106
106
  * AI: explain service
107
107
  * @param document: the document
108
108
  */
109
- AI_explain(document: ClipperDocumentInfo | null): void;
109
+ AI_explain(document?: ClipperDocumentInfo): void;
110
110
  /**
111
111
  * AI: comment service
112
112
  * @param document: the document
113
113
  */
114
- AI_comment(document: ClipperDocumentInfo | null): void;
114
+ AI_comment(document?: ClipperDocumentInfo): void;
115
115
  /**
116
116
  * AI: news service
117
117
  * @param document: the document
118
118
  */
119
- AI_news(document: ClipperDocumentInfo | null): void;
119
+ AI_news(document?: ClipperDocumentInfo): void;
120
120
  /**
121
121
  * Checks if a module is supported by RS
122
122
  * @param module : the module to check
@@ -145,17 +145,17 @@ export declare class ClipperDocumentManager {
145
145
  * New law
146
146
  * @param documents: the array of documents to link to the law
147
147
  */
148
- RS_newLaw(documents: ClipperDocumentInfo[] | null): void;
148
+ RS_newLaw(documents?: ClipperDocumentInfo[]): void;
149
149
  /**
150
150
  * New activity
151
151
  * @param document: the document to link to the activity
152
152
  */
153
- RS_newActivity(document: ClipperDocumentInfo | null): void;
153
+ RS_newActivity(document?: ClipperDocumentInfo): void;
154
154
  /**
155
155
  * Document usage report
156
156
  * @param document: the law
157
157
  */
158
- RS_usageReport(document: ClipperDocumentInfo | null): void;
158
+ RS_usageReport(document?: ClipperDocumentInfo): void;
159
159
  static ɵfac: i0.ɵɵFactoryDeclaration<ClipperDocumentManager, never>;
160
160
  static ɵcmp: i0.ɵɵComponentDeclaration<ClipperDocumentManager, "ng-component", never, {}, {}, never, never, true, never>;
161
161
  }
@@ -46,7 +46,7 @@ export declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
46
46
  * Get a single selection
47
47
  * @returns the single selection or null
48
48
  */
49
- protected getSingleSelection(): ClipperDocumentInfo | null | undefined;
49
+ protected getSingleSelection(): ClipperDocumentInfo | undefined;
50
50
  /**
51
51
  * Get multiple selection
52
52
  * @returns : the multiple selection or array empty
@@ -61,7 +61,7 @@ export declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
61
61
  * Show and hide sub menus
62
62
  * @param trigger: the trigger to use or null to deselect
63
63
  */
64
- protected showSubMenu(trigger?: MatMenuTrigger | null): void;
64
+ protected showSubMenu(trigger?: MatMenuTrigger): void;
65
65
  /**
66
66
  * Reset sub menu
67
67
  * @param trigger: the trigger to use
@@ -5,9 +5,9 @@ import { ClipperDocumentInfo, ClipperQueryReferencesMode, ClipperSearchParams, C
5
5
  import { ClipperSearchResultManager } from '../search-result-manager/search-result-manager';
6
6
  import * as i0 from "@angular/core";
7
7
  export interface ClipperReferencesDialogData {
8
- mode?: ClipperQueryReferencesMode | null;
9
- anchor?: string | null;
10
- anchorTitle?: string | null;
8
+ mode?: ClipperQueryReferencesMode;
9
+ anchor?: string;
10
+ anchorTitle?: string;
11
11
  documentId: string;
12
12
  model: number;
13
13
  }
@@ -18,9 +18,9 @@ export declare class ClipperReferencesComponent extends ClipperSearchResultManag
18
18
  readonly filterPane: import("@angular/core").Signal<MatDrawer>;
19
19
  private dialogRef;
20
20
  protected dialogData: ClipperReferencesDialogData;
21
- protected title: string | null;
22
- protected item: ClipperDocumentInfo | null;
23
- protected user: ClipperUserInfo | null;
21
+ protected title?: string;
22
+ protected item?: ClipperDocumentInfo;
23
+ protected user: ClipperUserInfo | undefined;
24
24
  ngOnInit(): void;
25
25
  ngOnDestroy(): void;
26
26
  ngAfterViewInit(): void;
@@ -85,7 +85,7 @@ export declare class ClipperReferencesComponent extends ClipperSearchResultManag
85
85
  * Return item state css class
86
86
  * @param item : the item to evaluate
87
87
  */
88
- getItemStateCssClass(item: ClipperDocumentInfo): string | null;
88
+ getItemStateCssClass(item: ClipperDocumentInfo): string | undefined;
89
89
  /**
90
90
  * Return the item state tooltip text
91
91
  * @param item : the item to evaluate
@@ -9,7 +9,7 @@ export declare class ClipperSearchCalendarComponent {
9
9
  private changeDetector;
10
10
  protected busy: import("@angular/core").WritableSignal<boolean>;
11
11
  protected months: import("@angular/core").WritableSignal<ClipperSearchCalendarSnapshotMonth[]>;
12
- protected calendarSpecialDays?: number[] | null;
12
+ protected calendarSpecialDays?: number[];
13
13
  protected calendarEmptyHeader: typeof CalendarEmptyHeader;
14
14
  calendarDate: Date;
15
15
  protected calendarDateClass: MatCalendarCellClassFunction<Date>;
@@ -21,12 +21,12 @@ export declare class ClipperSearchCalendarComponent {
21
21
  * @param months : the months snapshot
22
22
  * @param date : the new current date
23
23
  */
24
- update(month: ClipperSearchCalendarSnapshotResult | null, months: ClipperSearchCalendarSnapshotResult | null, date: Date): void;
24
+ update(month?: ClipperSearchCalendarSnapshotResult, months?: ClipperSearchCalendarSnapshotResult, date?: Date): void;
25
25
  /**
26
26
  * Filter by date
27
27
  * @param date : the date to filter to or "month" to filter by the whole month.
28
28
  */
29
- protected filterByDate(date: Date | string | null): void;
29
+ protected filterByDate(date?: Date | string): void;
30
30
  /**
31
31
  * Filter by month
32
32
  * @param monthInfo: the month info
@@ -10,7 +10,7 @@ export declare class ClipperSearchFacetsComponent {
10
10
  * @param values : the facets values
11
11
  * @param interval : the date interval for YEAR facets
12
12
  */
13
- update(values?: ClipperSearchFacet[][] | null, interval?: string | null): void;
13
+ update(values?: ClipperSearchFacet[][], interval?: string): void;
14
14
  /**
15
15
  * Use a facet item as filter
16
16
  * @param group : the facet group
@@ -7,6 +7,7 @@ import { Subject } from 'rxjs';
7
7
  import { ClipperDocumentManager } from '../document-manager/document-manager';
8
8
  import { ClipperSearchCalendarComponent } from '../search-calendar/search-calendar.component';
9
9
  import { ClipperSearchFacetsComponent } from '../search-facets/search-facets.component';
10
+ import { ApplicationDialogService } from '@arsedizioni/ars-utils/ui.application';
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class ClipperSearchResultManager extends ClipperDocumentManager implements OnDestroy {
12
13
  readonly paginator: import("@angular/core").Signal<MatPaginator>;
@@ -17,9 +18,10 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
17
18
  protected breakpointObserver: BreakpointObserver;
18
19
  private themeService;
19
20
  screenService: ScreenService;
20
- selection: SelectableModel<ClipperDocumentInfo, string> | null;
21
+ dialogService: ApplicationDialogService;
22
+ selection: SelectableModel<ClipperDocumentInfo, string> | undefined;
21
23
  selectionMode: import("@angular/core").WritableSignal<ClipperSelectionMode>;
22
- protected snapshot: ClipperSearchResult | null;
24
+ protected snapshot: ClipperSearchResult | undefined;
23
25
  protected filterBusy: import("@angular/core").WritableSignal<boolean>;
24
26
  protected filterParams: ClipperSearchParams;
25
27
  protected filterPaneHasBackdrop: boolean;
@@ -27,10 +29,10 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
27
29
  protected filterPane2HasBackdrop: boolean;
28
30
  protected filterPane2Closed: boolean;
29
31
  protected sortOptions: NameValueItem<ClipperSort>[];
30
- protected sortMode: NameValueItem<ClipperSort> | null;
32
+ protected sortMode: NameValueItem<ClipperSort> | undefined;
31
33
  protected scrollPos: number;
32
34
  protected scrollerId: string;
33
- protected restorableId: string | null;
35
+ protected restorableId: string | undefined;
34
36
  protected hasFacets: import("@angular/core").WritableSignal<boolean>;
35
37
  protected hasRegions: () => boolean;
36
38
  ngOnDestroy(): void;
@@ -66,7 +68,7 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
66
68
  * Get the first selected item
67
69
  * @returns the selected item or null
68
70
  */
69
- getSingleSelection(): ClipperDocumentInfo | null;
71
+ getSingleSelection(): ClipperDocumentInfo | undefined;
70
72
  /**
71
73
  * Clear selection
72
74
  */
@@ -75,20 +77,20 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
75
77
  * Return the number of selected items or null
76
78
  * @returns Return the number of selected items
77
79
  */
78
- countSelections(): number | null;
80
+ countSelections(): number | undefined;
79
81
  /**
80
82
  * Get the selected id
81
83
  */
82
- getSeletectId(): string | null;
84
+ getSeletectId(): string | undefined;
83
85
  /**
84
86
  * Get all selected ids
85
87
  */
86
- getSeletectIds(): string[] | null;
88
+ getSeletectIds(): string[] | undefined;
87
89
  /**
88
90
  * Get all selected ids
89
91
  * @returns a tuple list with id and data
90
92
  */
91
- getSeletectIdsAndData(): [string, ClipperDocumentInfo][] | null;
93
+ getSeletectIdsAndData(): [string, ClipperDocumentInfo][] | undefined;
92
94
  /**
93
95
  * Prepare result items
94
96
  * @param items : the items to process
@@ -109,7 +111,7 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
109
111
  * Return item state css class
110
112
  * @param item : the item to evaluate
111
113
  */
112
- getItemStateCssClass(item: ClipperDocumentInfo): string | null;
114
+ getItemStateCssClass(item: ClipperDocumentInfo): string | undefined;
113
115
  /**
114
116
  * Return the item state tooltip text
115
117
  * @param item : the item to evaluate
@@ -125,32 +127,32 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
125
127
  * @param item : the item to update
126
128
  * @paran e: the optional click event
127
129
  */
128
- toggleRead(item: ClipperDocumentInfo, e?: Event | null): void;
130
+ toggleRead(item: ClipperDocumentInfo, e?: Event): void;
129
131
  /**
130
132
  * Toggle the selection flag
131
133
  * @param item : the item to update
132
134
  * @paran e: the optional click event
133
135
  */
134
- toggleSelection(item: ClipperDocumentInfo, e?: Event | null): void;
136
+ toggleSelection(item: ClipperDocumentInfo, e?: Event): void;
135
137
  /**
136
138
  * Set read flag
137
139
  * @param value: the flag value
138
140
  * @param item: the item to set or null to use current selection
139
141
  */
140
- setRead(value: boolean, item?: ClipperDocumentInfo | null): import("rxjs").Subscription;
142
+ setRead(value: boolean, item?: ClipperDocumentInfo): import("rxjs").Subscription;
141
143
  /**
142
144
  * Open an item
143
145
  * @param documentId : the document id
144
146
  * @param query: the current query or null
145
147
  * @param newWindow: true if the document must be open into a new window
146
148
  */
147
- open(documentId: string, query?: string | null | undefined, newWindow?: boolean): void;
149
+ open(documentId: string, query?: string, newWindow?: boolean): void;
148
150
  /**
149
151
  * Open a document
150
152
  * @param documentId : the document id
151
153
  * @param query: the current query or null
152
154
  */
153
- openDocument(documentId: string, query?: string | null | undefined): void;
155
+ openDocument(documentId: string, query?: string): void;
154
156
  /**
155
157
  * Save restorable data
156
158
  * @param id : the restorable id
@@ -18,18 +18,18 @@ export declare class DateFnsAdapter extends DateAdapter<Date, Locale> {
18
18
  clone(date: Date): Date;
19
19
  createDate(year: number, month: number, date: number): Date;
20
20
  today(): Date;
21
- parse(value: any, parseFormat: string | string[]): Date | null;
21
+ parse(value: any, parseFormat: string | string[]): Date | undefined;
22
22
  format(date: Date, displayFormat: string): string;
23
23
  addCalendarYears(date: Date, years: number): Date;
24
24
  addCalendarMonths(date: Date, months: number): Date;
25
25
  addCalendarDays(date: Date, days: number): Date;
26
26
  toIso8601(date: Date): string;
27
27
  /**
28
- * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings
29
- * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an
28
+ * Returns the given value if given a valid Date or undefined. Deserializes valid ISO 8601 strings
29
+ * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into undefined. Returns an
30
30
  * invalid date for all other values.
31
31
  */
32
- deserialize(value: any): Date | null;
32
+ deserialize(value: any): Date | undefined;
33
33
  isDateInstance(obj: any): boolean;
34
34
  isValid(date: Date): boolean;
35
35
  invalid(): Date;
@@ -141,8 +141,8 @@ export interface SearchFilterMetadata {
141
141
  count: number;
142
142
  }
143
143
  export declare class DateInterval {
144
- from: Date;
145
- to: Date;
144
+ from?: Date;
145
+ to?: Date;
146
146
  get fromAsDate(): Date;
147
147
  get toAsDate(): Date;
148
148
  constructor(from?: Date, to?: Date);