@sumaris-net/ngx-components 1.12.3 → 1.12.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 +90 -33
- 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/doc/changelog.md +4 -0
- package/esm2015/src/app/core/table/table.class.js +84 -34
- package/fesm2015/sumaris-net.ngx-components.js +83 -33
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/table/table.class.d.ts +6 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -264,18 +264,22 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
264
264
|
* @param event
|
|
265
265
|
* @param row
|
|
266
266
|
* @param opts Use interactive=false to avoid user interaction (e.g. user confirmation)
|
|
267
|
+
* Use skipIfLoading=false to force deletion even if table is busy
|
|
267
268
|
*/
|
|
268
269
|
deleteRow(event: UIEvent | null, row: TableElement<T>, opts?: {
|
|
269
270
|
interactive?: boolean;
|
|
271
|
+
skipIfLoading?: boolean;
|
|
270
272
|
}): Promise<boolean>;
|
|
271
273
|
/**
|
|
272
274
|
*
|
|
273
275
|
* @param event
|
|
274
276
|
* @param rows
|
|
275
277
|
* @param opts Use interactive=false to avoid user interaction (e.g. user confirmation)
|
|
278
|
+
* Use skipIfLoading=false to force deletion even if table is busy
|
|
276
279
|
*/
|
|
277
280
|
deleteRows(event: UIEvent | null, rows: TableElement<T>[], opts?: {
|
|
278
281
|
interactive?: boolean;
|
|
282
|
+
skipIfLoading?: boolean;
|
|
279
283
|
}): Promise<number>;
|
|
280
284
|
selectRowById(id: number): Promise<boolean>;
|
|
281
285
|
/**
|
|
@@ -373,7 +377,9 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
373
377
|
}): void;
|
|
374
378
|
private setLoading;
|
|
375
379
|
private deleteNewRow;
|
|
380
|
+
private deleteExistingRow;
|
|
376
381
|
private cancelExistingRow;
|
|
382
|
+
private checkIfRowPristine;
|
|
377
383
|
private checkIfPristine;
|
|
378
384
|
private applyFilter;
|
|
379
385
|
private listenDatasourceLoading;
|