@arsedizioni/ars-utils 19.0.72 → 19.0.73

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.
@@ -13,7 +13,7 @@ export declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
13
13
  private changeDetector;
14
14
  private clipperService;
15
15
  readonly useSelections: import("@angular/core").InputSignal<boolean>;
16
- readonly selectionSource: import("@angular/core").InputSignal<"none" | "bag" | "selection">;
16
+ readonly selectionSource: import("@angular/core").InputSignal<"bag" | "selection" | "none">;
17
17
  protected selection: () => ClipperDocumentInfo[];
18
18
  readonly parent: import("@angular/core").InputSignal<ClipperSearchResultManager>;
19
19
  readonly item: import("@angular/core").InputSignal<ClipperDocumentInfo>;
@@ -1,7 +1,5 @@
1
1
  import { ClipperQueryReferencesMode } from '@arsedizioni/ars-utils/clipper.common';
2
2
  export declare class ClipperReferencesService {
3
- private dialogService;
4
- private broacastService;
5
3
  /**
6
4
  * Browse document references
7
5
  * @param document id : the document id
@@ -1533,10 +1533,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
1533
1533
  }] });
1534
1534
 
1535
1535
  class ClipperReferencesService {
1536
- constructor() {
1537
- this.dialogService = inject(DialogService);
1538
- this.broacastService = inject(BroadcastService);
1539
- }
1536
+ //private dialogService = inject(DialogService);
1537
+ // private broacastService = inject(BroadcastService);
1540
1538
  /**
1541
1539
  * Browse document references
1542
1540
  * @param document id : the document id
@@ -1545,24 +1543,25 @@ class ClipperReferencesService {
1545
1543
  openReferences(documentId, mode = ClipperQueryReferencesMode.ReferencesIn) {
1546
1544
  if (!documentId)
1547
1545
  return;
1548
- const d = this.dialogService.open(ClipperReferencesComponent, {
1549
- ariaLabel: 'riferimenti legati al documento',
1550
- autoFocus: false,
1551
- restoreFocus: false,
1552
- disableClose: false,
1553
- closeOnNavigation: false,
1554
- data: { documentId: documentId, mode: mode },
1555
- minWidth: '375px',
1556
- maxWidth: '1200px',
1557
- width: '100%',
1558
- height: '100%',
1559
- });
1560
- d.afterClosed()
1561
- .subscribe((r) => {
1562
- if (r && r.documentId) {
1563
- this.broacastService.sendMessage(ClipperMessages.DOCUMENT_NAVIGATE, { data: r.documentId });
1564
- }
1565
- });
1546
+ console.log(mode);
1547
+ /* const d = this.dialogService.open(ClipperReferencesComponent, {
1548
+ ariaLabel: 'riferimenti legati al documento',
1549
+ autoFocus: false,
1550
+ restoreFocus: false,
1551
+ disableClose: false,
1552
+ closeOnNavigation: false,
1553
+ data: { documentId: documentId, mode: mode },
1554
+ minWidth: '375px',
1555
+ maxWidth: '1200px',
1556
+ width: '100%',
1557
+ height: '100%',
1558
+ });
1559
+ d.afterClosed()
1560
+ .subscribe((r: ClipperReferenceDialogResult) => {
1561
+ if (r && r.documentId) {
1562
+ this.broacastService.sendMessage(ClipperMessages.DOCUMENT_NAVIGATE, {data: r.documentId}) ;
1563
+ }
1564
+ });*/
1566
1565
  }
1567
1566
  }
1568
1567