@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/bundles/sumaris-net.ngx-components.umd.js +38 -32
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/services/storage/entities-storage.service.js +12 -12
- package/esm2015/src/app/core/services/storage/entity-store.class.js +3 -4
- package/esm2015/src/app/shared/functions.js +2 -2
- package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +23 -19
- package/fesm2015/sumaris-net.ngx-components.js +36 -33
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/storage/entities-storage.service.d.ts +6 -2
- package/src/app/core/services/storage/entity-store.class.d.ts +2 -2
package/package.json
CHANGED
|
@@ -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(
|
|
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(
|
|
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.
|
|
81
|
+
* opts.skipIfPristine = false persist all entities, even if not dirty
|
|
82
82
|
*/
|
|
83
83
|
persist(opts?: {
|
|
84
|
-
skipIfPristine
|
|
84
|
+
skipIfPristine: boolean;
|
|
85
85
|
}): Promise<number>;
|
|
86
86
|
restore(opts?: {
|
|
87
87
|
emitEvent?: boolean;
|