@nettyapps/ntybase 21.1.28 → 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/fesm2022/{nettyapps-ntybase-en-USbase-DV4K7MNJ.mjs → nettyapps-ntybase-en-USbase-CYjShnUp.mjs} +6 -2
- package/fesm2022/{nettyapps-ntybase-en-USbase-DV4K7MNJ.mjs.map → nettyapps-ntybase-en-USbase-CYjShnUp.mjs.map} +1 -1
- package/fesm2022/{nettyapps-ntybase-tr-TRbase-Dvw5DW_f.mjs → nettyapps-ntybase-tr-TRbase-9sKP7Q5s.mjs} +6 -2
- package/fesm2022/{nettyapps-ntybase-tr-TRbase-Dvw5DW_f.mjs.map → nettyapps-ntybase-tr-TRbase-9sKP7Q5s.mjs.map} +1 -1
- package/fesm2022/nettyapps-ntybase.mjs +48 -38
- package/fesm2022/nettyapps-ntybase.mjs.map +1 -1
- package/package.json +1 -1
- package/translations/en-USbase.json +5 -1
- package/translations/tr-TRbase.json +5 -1
- package/types/nettyapps-ntybase.d.ts +10 -1
package/package.json
CHANGED
|
@@ -265,5 +265,9 @@
|
|
|
265
265
|
"@openInSidenav": "Records will now open in the sidenav",
|
|
266
266
|
"@resetButtonLabel": "Reset",
|
|
267
267
|
"@applyButtonLabel": "Apply",
|
|
268
|
-
"@exportButtonLabel": "Export"
|
|
268
|
+
"@exportButtonLabel": "Export",
|
|
269
|
+
"@minLengthError": "Please enter at least {{value}} characters",
|
|
270
|
+
"@maxLengthError": "Please enter at most {{value}} characters",
|
|
271
|
+
"@dateCannotBeBeforeStart": "Selected date cannot be earlier than the start date",
|
|
272
|
+
"@dateCannotBeAfterEnd": "Selected date cannot be later than the end date"
|
|
269
273
|
}
|
|
@@ -265,5 +265,9 @@
|
|
|
265
265
|
"@openInSidenav": "Kayıtlar artık yan panelde görüntülenecek",
|
|
266
266
|
"@resetButtonLabel": "Sıfırla",
|
|
267
267
|
"@applyButtonLabel": "Filtrele",
|
|
268
|
-
"@exportButtonLabel": "Dışa Aktar"
|
|
268
|
+
"@exportButtonLabel": "Dışa Aktar",
|
|
269
|
+
"@minLengthError": "En az {{value}} karakter girmelisiniz",
|
|
270
|
+
"@maxLengthError": "En fazla {{value}} karakter girebilirsiniz",
|
|
271
|
+
"@dateCannotBeBeforeStart": "Seçilen tarih, başlangıç tarihinden önce olamaz",
|
|
272
|
+
"@dateCannotBeAfterEnd": "Seçilen tarih, bitiş tarihinden sonra olamaz"
|
|
269
273
|
}
|
|
@@ -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>;
|