@nettyapps/ntybase 21.1.29 → 21.1.31
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
|
+
* Displays an error dialog with flexible parameters.
|
|
41
|
+
* Intelligently extracts meaningful C# error messages or falls back to a translation key.
|
|
42
|
+
* * Supported usages:
|
|
43
|
+
* - showError('@fallbackKey', err)
|
|
44
|
+
* - showError(err)
|
|
45
|
+
* - showError(err, '@fallbackKey')
|
|
46
|
+
* - showError('@fallbackKey')
|
|
47
|
+
*/
|
|
48
|
+
showError(arg1?: any, arg2?: any, customComponent?: any, width?: string, height?: string): Promise<void>;
|
|
40
49
|
private getErrorMessage;
|
|
41
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlertService, never>;
|
|
42
51
|
static ɵprov: i0.ɵɵInjectableDeclaration<AlertService>;
|