@arsedizioni/ars-utils 19.0.73 → 19.0.74

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.
@@ -6,7 +6,6 @@ import * as i0 from "@angular/core";
6
6
  export declare class ClipperDocumentManager {
7
7
  protected clipboard: Clipboard;
8
8
  clipperService: ClipperService;
9
- private clipperReferencesService;
10
9
  protected broadcastService: BroadcastService;
11
10
  protected dialogService: ApplicationDialogService;
12
11
  /**
@@ -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<"bag" | "selection" | "none">;
16
+ readonly selectionSource: import("@angular/core").InputSignal<"none" | "bag" | "selection">;
17
17
  protected selection: () => ClipperDocumentInfo[];
18
18
  readonly parent: import("@angular/core").InputSignal<ClipperSearchResultManager>;
19
19
  readonly item: import("@angular/core").InputSignal<ClipperDocumentInfo>;
@@ -1532,44 +1532,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImpor
1532
1532
  ], template: "<h2 mat-dialog-title>Indice</h2>\r\n<mat-dialog-content>\r\n @if (!items || items.length === 0) {\r\n <div>\r\n <p class=\"message\"><i>Nessun elemento da visualizzare.</i></p>\r\n </div>\r\n } @else {\r\n <mat-selection-list dense #selection (selectionChange)=\"select();\" [multiple]=\"dialogData.multiple\"\r\n hideSingleSelectionIndicator=\"true\">\r\n @for (item of items; track item) {\r\n @if (item.type > 4) {\r\n <div class=\"small uppercase truncated accent\" style=\"display: flex; align-items: center; min-height: 36px;\">\r\n <div><b>{{item.description}}</b></div>\r\n </div>\r\n } @else {\r\n <mat-list-option [selected]=\"false\" [value]=\"item\" (click)=\"use(item)\">\r\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" fxFill>\r\n <div [fxFlex]=\"(10 * item.level) + 'px'\"></div>\r\n <div fxFlex=\"*\" class=\"truncated\">\r\n <div class=\"small\" [matTooltip]=\"item.description\">{{item.description}}</div>\r\n </div>\r\n </div>\r\n </mat-list-option>\r\n }\r\n }\r\n </mat-selection-list>\r\n }\r\n</mat-dialog-content>\r\n<mat-dialog-actions>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end\" fxFill>\r\n @if (dialogData.multiple) {\r\n <button mat-flat-button color=\"primary\" [disabled]=\"okDisabled()\" (click)=\"use()\">Usa</button>\r\n }\r\n <button mat-stroked-button [mat-dialog-close]=\"true\" color=\"primary\">Chiudi</button>\r\n </div>\r\n</mat-dialog-actions>" }]
1533
1533
  }] });
1534
1534
 
1535
- class ClipperReferencesService {
1536
- //private dialogService = inject(DialogService);
1537
- // private broacastService = inject(BroadcastService);
1538
- /**
1539
- * Browse document references
1540
- * @param document id : the document id
1541
- * @param mode : the reference mode
1542
- */
1543
- openReferences(documentId, mode = ClipperQueryReferencesMode.ReferencesIn) {
1544
- if (!documentId)
1545
- return;
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
- });*/
1565
- }
1566
- }
1567
-
1568
1535
  class ClipperDocumentManager {
1569
1536
  constructor() {
1570
1537
  this.clipboard = inject(Clipboard);
1571
1538
  this.clipperService = inject(ClipperService);
1572
- this.clipperReferencesService = inject(ClipperReferencesService);
1573
1539
  this.broadcastService = inject(BroadcastService);
1574
1540
  this.dialogService = inject(ApplicationDialogService);
1575
1541
  }
@@ -1817,7 +1783,23 @@ class ClipperDocumentManager {
1817
1783
  openReferences(documentId, mode = ClipperQueryReferencesMode.ReferencesIn) {
1818
1784
  if (!documentId)
1819
1785
  return;
1820
- this.clipperReferencesService.openReferences(documentId, mode);
1786
+ const d = this.dialogService.open(ClipperReferencesComponent, {
1787
+ ariaLabel: 'riferimenti legati al documento',
1788
+ autoFocus: false,
1789
+ restoreFocus: false,
1790
+ disableClose: false,
1791
+ closeOnNavigation: false,
1792
+ data: { documentId: documentId, mode: mode },
1793
+ minWidth: '375px',
1794
+ maxWidth: '1200px',
1795
+ width: '100%',
1796
+ height: '100%',
1797
+ });
1798
+ d.afterClosed()
1799
+ .subscribe((r) => {
1800
+ if (r && r.documentId)
1801
+ this.open(r.documentId);
1802
+ });
1821
1803
  }
1822
1804
  /**
1823
1805
  * Manage clipper bag
@@ -1980,14 +1962,13 @@ class ClipperDocumentManager {
1980
1962
  this.broadcastService.sendMessage(ClipperMessages.INTEROP_RS_USAGE_REPORT, document);
1981
1963
  }
1982
1964
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ClipperDocumentManager, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1983
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: ClipperDocumentManager, isStandalone: true, selector: "ng-component", providers: [ClipperReferencesService], ngImport: i0, template: '<div></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1965
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: ClipperDocumentManager, isStandalone: true, selector: "ng-component", ngImport: i0, template: '<div></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1984
1966
  }
1985
1967
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ClipperDocumentManager, decorators: [{
1986
1968
  type: Component,
1987
1969
  args: [{
1988
1970
  template: '<div></div>',
1989
1971
  standalone: true,
1990
- providers: [ClipperReferencesService],
1991
1972
  changeDetection: ChangeDetectionStrategy.OnPush
1992
1973
  }]
1993
1974
  }] });