@sumaris-net/ngx-components 18.22.9 → 18.22.11
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 +6 -0
- package/esm2022/src/app/core/table/async-table.class.mjs +14 -7
- package/esm2022/src/app/core/table/table.class.mjs +41 -20
- package/esm2022/src/app/shared/forms.mjs +9 -6
- package/fesm2022/sumaris-net.ngx-components.mjs +59 -29
- 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 +4 -2
- package/src/app/core/table/table.class.d.ts +3 -1
- package/src/app/shared/forms.d.ts +2 -1
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -214,11 +214,13 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
|
|
|
214
214
|
emitEvent?: boolean;
|
|
215
215
|
permanentSelectionChangedPrevented?: boolean;
|
|
216
216
|
}): Promise<void>;
|
|
217
|
-
confirmAndAdd(event?: Event, row?: AsyncTableElement<T
|
|
217
|
+
confirmAndAdd(event?: Event, row?: AsyncTableElement<T>, opts?: {
|
|
218
|
+
focusColumn?: string;
|
|
219
|
+
}): Promise<boolean>;
|
|
218
220
|
confirmAndBackward(event?: Event, row?: AsyncTableElement<T>, opts?: {
|
|
219
221
|
focusColumn?: string;
|
|
220
222
|
}): Promise<boolean>;
|
|
221
|
-
confirmAndForward(event
|
|
223
|
+
confirmAndForward(event: Event | undefined, row?: AsyncTableElement<T>, opts?: {
|
|
222
224
|
focusColumn?: string;
|
|
223
225
|
}): Promise<boolean>;
|
|
224
226
|
/**
|
|
@@ -219,7 +219,9 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
219
219
|
emitEvent?: boolean;
|
|
220
220
|
permanentSelectionChangedPrevented?: boolean;
|
|
221
221
|
}): void;
|
|
222
|
-
confirmAndAdd(event?: Event, row?: TableElement<T
|
|
222
|
+
confirmAndAdd(event?: Event, row?: TableElement<T>, opts?: {
|
|
223
|
+
focusColumn?: string;
|
|
224
|
+
}): Promise<boolean>;
|
|
223
225
|
confirmAndBackward(event: Event | undefined, row?: TableElement<T>, opts?: {
|
|
224
226
|
focusColumn?: string;
|
|
225
227
|
}): boolean | Promise<boolean>;
|
|
@@ -48,10 +48,11 @@ export declare function getFormErrors(control: AbstractControl, opts?: {
|
|
|
48
48
|
* @param {AbstractControl} form - The root form group, form array, or control to start searching from.
|
|
49
49
|
* @param {string} path - The dot-separated path specifying the control. For example, 'groupName.controlName' or 'arrayName.0.controlName'.
|
|
50
50
|
* @param {boolean} [strict=true] - If true, throws an error if the full path cannot be resolved; if false, returns the last valid control encountered.
|
|
51
|
+
* @param failIfMissing - If true, throw an error if the control not exists.
|
|
51
52
|
* @return {AbstractControl} - The control at the specified path or the closest valid control if strict mode is disabled.
|
|
52
53
|
* @throws {Error} - Throws an error if the path cannot be resolved and strict mode is enabled.
|
|
53
54
|
*/
|
|
54
|
-
export declare function getControlFromPath(form: AbstractControl, path: string, strict?: boolean): AbstractControl;
|
|
55
|
+
export declare function getControlFromPath(form: AbstractControl, path: string, strict?: boolean, failIfMissing?: boolean): AbstractControl;
|
|
55
56
|
export declare function disableControls(form: UntypedFormGroup, paths: string[], opts?: {
|
|
56
57
|
onlySelf?: boolean;
|
|
57
58
|
emitEvent?: boolean;
|
|
@@ -17,7 +17,7 @@ export interface InputElement extends FocusableElement {
|
|
|
17
17
|
}
|
|
18
18
|
export declare function isInputElement(object: any): object is InputElement;
|
|
19
19
|
export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
|
|
20
|
-
export declare function tabindexComparator(a: InputElement, b: InputElement):
|
|
20
|
+
export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
|
|
21
21
|
export interface CanGainFocusOptions {
|
|
22
22
|
minTabindex?: number;
|
|
23
23
|
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.22.
|
|
5
|
+
"version": "18.22.11",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|