@sumaris-net/ngx-components 18.27.13 → 18.27.14
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/doc/changelog.md +3 -0
- package/esm2022/src/app/core/table/async-table.class.mjs +28 -6
- package/fesm2022/sumaris-net.ngx-components.mjs +27 -5
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/table/async-table.class.d.ts +12 -0
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -271,9 +271,21 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
|
|
|
271
271
|
focusColumn?: string;
|
|
272
272
|
editing?: boolean;
|
|
273
273
|
}): Promise<boolean>;
|
|
274
|
+
/**
|
|
275
|
+
* Save the table
|
|
276
|
+
*
|
|
277
|
+
* @param opts.keepEditing if true, the edited row will be kept after save (defaulting to this.keepEditedRowOnSave)
|
|
278
|
+
* @param opts.keepSelection if true, the selected row will be kept after save (no effect if opts.keepEditing is true)
|
|
279
|
+
* @param opts.confirmRow if true or not provided, the edited row will be confirmed before save
|
|
280
|
+
* @param opts.throwIfNotConfirmed if true or not provided, an error will be thrown if the edited row is not confirmed
|
|
281
|
+
*/
|
|
274
282
|
save(opts?: {
|
|
275
283
|
keepEditing?: boolean;
|
|
284
|
+
keepSelection?: boolean;
|
|
285
|
+
confirmRow?: boolean;
|
|
286
|
+
throwIfNotConfirmed?: boolean;
|
|
276
287
|
}): Promise<boolean>;
|
|
288
|
+
protected selectRowsByIds(rowIds: number[]): Promise<void>;
|
|
277
289
|
cancel(event?: Event, opts?: {
|
|
278
290
|
interactive?: boolean;
|
|
279
291
|
}): Promise<void>;
|
|
@@ -18,7 +18,7 @@ export interface InputElement extends FocusableElement {
|
|
|
18
18
|
}
|
|
19
19
|
export declare function isInputElement(object: any): object is InputElement;
|
|
20
20
|
export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
|
|
21
|
-
export declare function tabindexComparator(a: InputElement, b: InputElement):
|
|
21
|
+
export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
|
|
22
22
|
export interface CanGainFocusOptions {
|
|
23
23
|
minTabindex?: number;
|
|
24
24
|
maxTabindex?: number;
|
package/src/assets/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "ngx-sumaris-components",
|
|
3
3
|
"short_name": "ngx-sumaris-components",
|
|
4
4
|
"manifest_version": 1,
|
|
5
|
-
"version": "18.27.
|
|
5
|
+
"version": "18.27.14",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|