@arsedizioni/ars-utils 22.0.6 → 22.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arsedizioni/ars-utils",
3
- "version": "22.0.6",
3
+ "version": "22.0.7",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -166,7 +166,7 @@ declare class ClipperDocumentManager {
166
166
  /**
167
167
  * Opens a dialog to manage the documents in the working bag (view, select, delete).
168
168
  */
169
- openBag(): void;
169
+ openBag(): Promise<void>;
170
170
  /**
171
171
  * Sends a print command to the Clipper document iframe.
172
172
  */
@@ -596,7 +596,7 @@ declare class ClipperBrowserComponent extends ClipperSearchResultManager {
596
596
  * Saves the current filter parameters as a named search.
597
597
  * @param newFilter - When true, always prompts for a new filter name; otherwise updates the existing one. Defaults to false.
598
598
  */
599
- saveFilter(newFilter?: boolean): void;
599
+ saveFilter(newFilter?: boolean): Promise<void>;
600
600
  /**
601
601
  * Prompts for confirmation and then deletes the currently active saved filter.
602
602
  */
@@ -1053,7 +1053,7 @@ declare class ClipperDocumentMenuComponent {
1053
1053
  /** Internal counter incremented on each external selection-model change to drive signal re-evaluation. */
1054
1054
  private readonly selectionChangeTick;
1055
1055
  readonly useSelections: _angular_core.InputSignal<boolean>;
1056
- readonly selectionSource: _angular_core.InputSignal<"selection" | "bag" | "none">;
1056
+ readonly selectionSource: _angular_core.InputSignal<"bag" | "selection" | "none">;
1057
1057
  /**
1058
1058
  * Computed signal that returns the current effective document selection.
1059
1059
  * Re-evaluates when any input signal or the underlying selection model changes.
@@ -775,7 +775,7 @@ declare class ApplicationDialogService extends DialogService {
775
775
  * @param width - Maximum dialog width in pixels.
776
776
  * @returns The opened dialog reference.
777
777
  */
778
- sendTo(title?: string, text?: string, subject?: string, canPopulate?: boolean, count?: number, options?: any, width?: number): MatDialogRef<SendToDialogComponent, any>;
778
+ sendTo(title?: string, text?: string, subject?: string, canPopulate?: boolean, count?: number, options?: any, width?: number): Promise<MatDialogRef<SendToDialogComponent, any> | null>;
779
779
  /**
780
780
  * Open a tree-node selection dialog.
781
781
  * @param nodes - The tree nodes to display.
@@ -787,7 +787,7 @@ declare class ApplicationDialogService extends DialogService {
787
787
  * @param canAppend - Whether the append-node action is available.
788
788
  * @returns The opened dialog reference.
789
789
  */
790
- selectTree(nodes: any, title?: string, description?: string, initialFilter?: string, width?: number, okCaption?: string, canAppend?: boolean): MatDialogRef<SelectTreeDialogComponent, any>;
790
+ selectTree(nodes: any, title?: string, description?: string, initialFilter?: string, width?: number, okCaption?: string, canAppend?: boolean): Promise<MatDialogRef<SelectTreeDialogComponent, any> | null>;
791
791
  /**
792
792
  * Open a picture-selection dialog.
793
793
  * @param title - Dialog title.
@@ -800,7 +800,7 @@ declare class ApplicationDialogService extends DialogService {
800
800
  * @param maxPictureHeight - Maximum accepted picture height in pixels.
801
801
  * @returns The opened dialog reference.
802
802
  */
803
- selectPicture(title?: string, description?: string, okCaption?: string, options?: any, width?: number, maxSize?: number, maxPictureWidth?: number, maxPictureHeight?: number): MatDialogRef<SelectPictureDialogComponent, any>;
803
+ selectPicture(title?: string, description?: string, okCaption?: string, options?: any, width?: number, maxSize?: number, maxPictureWidth?: number, maxPictureHeight?: number): Promise<MatDialogRef<SelectPictureDialogComponent, any> | null>;
804
804
  /**
805
805
  * Open a file-selection dialog.
806
806
  * @param title - Dialog title.
@@ -814,7 +814,7 @@ declare class ApplicationDialogService extends DialogService {
814
814
  * @param accept - Accepted file extensions (e.g. `.pdf,.docx`).
815
815
  * @returns The opened dialog reference.
816
816
  */
817
- selectFile(title?: string, description?: string, okCaption?: string, helpLink?: string, helpCaption?: string, options?: any, width?: number, maxSize?: number, accept?: string): MatDialogRef<SelectFileDialogComponent, any>;
817
+ selectFile(title?: string, description?: string, okCaption?: string, helpLink?: string, helpCaption?: string, options?: any, width?: number, maxSize?: number, accept?: string): Promise<MatDialogRef<SelectFileDialogComponent, any> | null>;
818
818
  /**
819
819
  * Open a multipurpose selection and CRUD dialog.
820
820
  * @param data - The dialog configuration model.
@@ -822,7 +822,7 @@ declare class ApplicationDialogService extends DialogService {
822
822
  * @param closeOnNavigation - Whether the dialog closes on route navigation.
823
823
  * @returns The opened dialog reference.
824
824
  */
825
- select(data: SelectDialogData, disableClose?: boolean, closeOnNavigation?: boolean): MatDialogRef<SelectDialogComponent, any>;
825
+ select(data: SelectDialogData, disableClose?: boolean, closeOnNavigation?: boolean): Promise<MatDialogRef<SelectDialogComponent, any> | null>;
826
826
  /**
827
827
  * Prompt the user to enter a value.
828
828
  * @param title - Dialog title.
@@ -836,7 +836,7 @@ declare class ApplicationDialogService extends DialogService {
836
836
  * @param required - Whether the input is required.
837
837
  * @returns The opened dialog reference.
838
838
  */
839
- prompt(title: string, type?: PromptDialogType, description?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): MatDialogRef<PromptDialogComponent>;
839
+ prompt(title: string, type?: PromptDialogType, description?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): Promise<MatDialogRef<PromptDialogComponent> | null>;
840
840
  /**
841
841
  * Prompt the user to enter a date or date interval.
842
842
  * @param title - Dialog title.
@@ -850,7 +850,7 @@ declare class ApplicationDialogService extends DialogService {
850
850
  * @param required - Whether the input is required.
851
851
  * @returns The opened dialog reference.
852
852
  */
853
- promptDate(title: string, type?: PromptDialogType.Date | PromptDialogType.DateInterval, description?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): MatDialogRef<PromptDateDialogComponent>;
853
+ promptDate(title: string, type?: PromptDialogType.Date | PromptDialogType.DateInterval, description?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): Promise<MatDialogRef<PromptDateDialogComponent> | null>;
854
854
  /**
855
855
  * Prompt the user to enter a time value.
856
856
  * @param title - Dialog title.
@@ -864,7 +864,7 @@ declare class ApplicationDialogService extends DialogService {
864
864
  * @param required - Whether the input is required.
865
865
  * @returns The opened dialog reference.
866
866
  */
867
- promptTime(title: string, description?: string, slots?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): MatDialogRef<PromptTimeDialogComponent>;
867
+ promptTime(title: string, description?: string, slots?: string, initialValue?: any, okCaption?: string, cancelCaption?: string, options?: any, width?: number, required?: boolean): Promise<MatDialogRef<PromptTimeDialogComponent> | null>;
868
868
  /**
869
869
  * Prompt the user to enter an OTP code.
870
870
  * @param title - Dialog title.
@@ -874,7 +874,7 @@ declare class ApplicationDialogService extends DialogService {
874
874
  * @param width - Maximum dialog width in pixels.
875
875
  * @returns The opened dialog reference.
876
876
  */
877
- promptOtp(title?: string, description?: string, okCaption?: string, cancelCaption?: string, width?: number): MatDialogRef<PromptOtpDialogComponent>;
877
+ promptOtp(title?: string, description?: string, okCaption?: string, cancelCaption?: string, width?: number): Promise<MatDialogRef<PromptOtpDialogComponent> | null>;
878
878
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ApplicationDialogService, never>;
879
879
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ApplicationDialogService>;
880
880
  }