@sumaris-net/ngx-components 2.0.0-rc4 → 2.0.0-rc5

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "2.0.0-rc4",
4
+ "version": "2.0.0-rc5",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "clone": "~2.1.2",
13
- "tslib": "~2.3.0"
13
+ "tslib": "~2.3.1"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "@angular-devkit/build-angular": "~14.2.5",
@@ -17,7 +17,7 @@ export interface IEntityEditorModalOptions<T extends Entity<T, ID> = Entity<any,
17
17
  data: T;
18
18
  disabled: boolean;
19
19
  onAfterModalInit?: <M extends AppEntityEditorModal<T, ID>>(modal: M) => void | Promise<void>;
20
- onDelete?: (event: Event, data: T) => Promise<boolean>;
20
+ onDelete?: (event: Event | UIEvent, data: T) => Promise<boolean>;
21
21
  usageMode: UsageMode;
22
22
  mobile: boolean;
23
23
  i18nSuffix?: string;
@@ -85,20 +85,20 @@ export declare abstract class AppEntityEditorModal<T extends Entity<T, ID>, ID =
85
85
  onlySelf?: boolean;
86
86
  emitEvent?: boolean;
87
87
  }): void;
88
- saveAndClose(event?: Event): Promise<boolean>;
89
- close(event: Event): Promise<void>;
88
+ saveAndClose(event?: Event | UIEvent): Promise<boolean>;
89
+ close(event: Event | UIEvent): Promise<void>;
90
90
  /**
91
91
  * Save the editor, by calling the dataService.save().
92
92
  * Ensure that editor if valid. If not, display an error
93
93
  * @param event
94
94
  * @param opts
95
95
  */
96
- save(event?: Event, opts?: any): Promise<boolean>;
96
+ save(event?: Event | UIEvent, opts?: any): Promise<boolean>;
97
97
  /**
98
98
  * Save data (if dirty and valid), and return it. Otherwise, return nil value.
99
99
  */
100
100
  saveAndGetDataIfValid(): Promise<T | undefined>;
101
- delete(event?: Event): Promise<boolean>;
101
+ delete(event?: Event | UIEvent): Promise<boolean>;
102
102
  resetError(opts?: {
103
103
  emitEvent?: boolean;
104
104
  }): void;