@nettyapps/ntybase 21.1.29 → 21.1.30
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
|
@@ -36,7 +36,16 @@ declare class AlertService {
|
|
|
36
36
|
showWarning(message: string, action?: string, duration?: number): void;
|
|
37
37
|
showConfirm(message: string): Promise<boolean>;
|
|
38
38
|
showSuccess(message: string, duration?: number): void;
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Flexible Error Display
|
|
41
|
+
* @param error - Error object from API or string
|
|
42
|
+
* @param fallbackOrComponent - Optional: Fallback message key (@...) OR Custom Component
|
|
43
|
+
* @param customComponent - Optional: Custom component to use if the 2nd parameter is a message
|
|
44
|
+
*/
|
|
45
|
+
showError(error: any, fallbackOrComponent?: any, customComponent?: any, width?: string, height?: string): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Extracts the most meaningful error message from the error object
|
|
48
|
+
*/
|
|
40
49
|
private getErrorMessage;
|
|
41
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertService, never>;
|
|
42
51
|
static ɵprov: i0.ɵɵInjectableDeclaration<AlertService>;
|