@sumaris-net/ngx-components 1.19.6-rc1 → 1.19.6

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": "1.19.6-rc1",
4
+ "version": "1.19.6",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -88,7 +88,9 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
88
88
  emitEvent?: boolean;
89
89
  }): Promise<T>;
90
90
  clearTrash(entityName: string): Promise<void>;
91
- persist(): Promise<void>;
91
+ persist(opts?: {
92
+ skipIfPristine: boolean;
93
+ }): Promise<void>;
92
94
  ngOnStart(): Promise<EntityStorageMap>;
93
95
  protected ngOnStop(): Promise<void>;
94
96
  protected getEntityStore<T extends IEntity<T, ID>, ID = number>(name: string, opts?: {
@@ -96,6 +98,8 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
96
98
  }): EntityStore<T, ID>;
97
99
  protected detectEntityName(entityOrName: string | Entity<any, any>): string;
98
100
  protected restoreLocally(): Promise<void>;
99
- protected storeLocally(): Promise<any>;
101
+ protected storeLocally(opts?: {
102
+ skipIfPristine: boolean;
103
+ }): Promise<any>;
100
104
  }
101
105
  export {};
@@ -78,10 +78,10 @@ export declare class EntityStore<T extends IEntity<T, ID>, ID = number, O extend
78
78
  /**
79
79
  *
80
80
  * @param opts
81
- * opts.force : force all entities to be persist, and not only if dirty
81
+ * opts.skipIfPristine = false persist all entities, even if not dirty
82
82
  */
83
83
  persist(opts?: {
84
- skipIfPristine?: boolean;
84
+ skipIfPristine: boolean;
85
85
  }): Promise<number>;
86
86
  restore(opts?: {
87
87
  emitEvent?: boolean;