@nettyapps/ntybase 21.1.30 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nettyapps/ntybase",
3
- "version": "21.1.30",
3
+ "version": "21.1.31",
4
4
  "description": "This library provides foundational services and components for NettyApps Angular applications.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,15 +37,15 @@ declare class AlertService {
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
+ * 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>;
49
49
  private getErrorMessage;
50
50
  static ɵfac: i0.ɵɵFactoryDeclaration<AlertService, never>;
51
51
  static ɵprov: i0.ɵɵInjectableDeclaration<AlertService>;