spiderly 19.7.3 → 19.7.4

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.
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, EventEmitter, OnInit } from '@angular/core';
1
+ import { AfterViewInit, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ActivatedRoute, Router } from '@angular/router';
3
3
  import { TranslocoService } from '@jsverse/transloco';
4
4
  import { SelectItem } from 'primeng/api';
@@ -13,7 +13,7 @@ import { ConfigServiceBase } from '../../services/config.service.base';
13
13
  import { SpiderlyMessageService } from '../../services/spiderly-message.service';
14
14
  import { SpiderlyFormControl } from '../spiderly-form-control/spiderly-form-control';
15
15
  import * as i0 from "@angular/core";
16
- export declare class SpiderlyDataTableComponent implements OnInit, AfterViewInit {
16
+ export declare class SpiderlyDataTableComponent implements OnInit, AfterViewInit, OnDestroy {
17
17
  private router;
18
18
  private dialogService;
19
19
  private route;
@@ -21,6 +21,7 @@ export declare class SpiderlyDataTableComponent implements OnInit, AfterViewInit
21
21
  private translocoService;
22
22
  private configService;
23
23
  private locale;
24
+ private readonly destroy$;
24
25
  table: Table;
25
26
  tableTitle: string;
26
27
  tableIcon: string;
@@ -98,6 +99,7 @@ export declare class SpiderlyDataTableComponent implements OnInit, AfterViewInit
98
99
  deleteObject(rowId: number): void;
99
100
  deleteSelectedObjects(): void;
100
101
  private openDeleteConfirmation;
102
+ ngOnDestroy(): void;
101
103
  get showSelectAllCheckbox(): boolean;
102
104
  private resetSelection;
103
105
  reload(): void;
@@ -1,9 +1,19 @@
1
1
  import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
2
+ import { Observable } from 'rxjs';
2
3
  import * as i0 from "@angular/core";
4
+ export type DeleteConfirmationData = {
5
+ message: string;
6
+ deleteItemFromTableObservableMethod: (id: number) => Observable<any>;
7
+ id: number;
8
+ } | {
9
+ message: string;
10
+ deleteListFromTableObservableMethod: (ids: number[]) => Observable<any>;
11
+ ids: number[];
12
+ };
3
13
  export declare class SpiderlyDeleteConfirmationComponent {
4
14
  ref: DynamicDialogRef;
5
- config: DynamicDialogConfig;
6
- constructor(ref: DynamicDialogRef, config: DynamicDialogConfig);
15
+ config: DynamicDialogConfig<DeleteConfirmationData>;
16
+ constructor(ref: DynamicDialogRef, config: DynamicDialogConfig<DeleteConfirmationData>);
7
17
  accept(): void;
8
18
  reject(): void;
9
19
  static ɵfac: i0.ɵɵFactoryDeclaration<SpiderlyDeleteConfirmationComponent, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spiderly",
3
- "version": "19.7.3",
3
+ "version": "19.7.4",
4
4
  "author": "Filip Trivan",
5
5
  "license": "MIT",
6
6
  "description": "Spiderly Angular Library to use in combination with Spiderly.",