ud-components 0.0.1

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.
Files changed (45) hide show
  1. package/README.md +63 -0
  2. package/enums/application-status.enum.d.ts +5 -0
  3. package/enums/custom-table.enum.d.ts +27 -0
  4. package/enums/modal-input-type.enum.d.ts +13 -0
  5. package/enums/role.enum.d.ts +9 -0
  6. package/enums/snackbar-type.enum.d.ts +6 -0
  7. package/enums/table-display-column-type.d.ts +15 -0
  8. package/fesm2022/ud-components.mjs +2040 -0
  9. package/fesm2022/ud-components.mjs.map +1 -0
  10. package/index.d.ts +5 -0
  11. package/interfaces/floor.interface.d.ts +7 -0
  12. package/interfaces/page-request.interface.d.ts +5 -0
  13. package/interfaces/phone.interface.d.ts +9 -0
  14. package/interfaces/supabase.interface.d.ts +4 -0
  15. package/interfaces/tab.interface.d.ts +5 -0
  16. package/interfaces/table-display-column.interface.d.ts +56 -0
  17. package/interfaces/table.interface.d.ts +10 -0
  18. package/lib/carousel/carousel.component.d.ts +12 -0
  19. package/lib/custom-input/custom-input.component.d.ts +11 -0
  20. package/lib/custom-snackbar/custom-snackbar.component.d.ts +28 -0
  21. package/lib/custom-table/custom-table.component.d.ts +217 -0
  22. package/lib/custom-table/custom-table.interface.d.ts +18 -0
  23. package/lib/dynamic-component/dynamic-component.component.d.ts +14 -0
  24. package/lib/edit-view/edit-view-section.directive.d.ts +8 -0
  25. package/lib/edit-view/edit-view.component.d.ts +14 -0
  26. package/lib/file-input/file-input.component.d.ts +24 -0
  27. package/lib/kpi/kpi.component.d.ts +20 -0
  28. package/lib/kpi/kpi.enum.d.ts +22 -0
  29. package/lib/kpi/kpi.interface.d.ts +25 -0
  30. package/lib/modal/modal.component.d.ts +30 -0
  31. package/lib/pill/pill.component.d.ts +10 -0
  32. package/lib/progress-bar/progress-bar.component.d.ts +9 -0
  33. package/lib/summary-view/summary-view.component.d.ts +15 -0
  34. package/lib/summary-view/summary-view.interface.d.ts +10 -0
  35. package/lib/tabs/tabs.component.d.ts +16 -0
  36. package/lib/tel-input/tel-input.component.d.ts +19 -0
  37. package/package.json +23 -0
  38. package/pipes/capitalize/capitalize.pipe.d.ts +7 -0
  39. package/pipes/pluralize/pluralize.pipe.d.ts +7 -0
  40. package/pipes/safe/safe.pipe.d.ts +10 -0
  41. package/pipes/singular/singular.pipe.d.ts +7 -0
  42. package/public-api.d.ts +14 -0
  43. package/services/translate-wrapper/translate-wrapper.service.d.ts +11 -0
  44. package/utils/common-utils.d.ts +33 -0
  45. package/utils/time-options.utils.d.ts +4 -0
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PluralizePipe implements PipeTransform {
4
+ transform(value: string | null): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<PluralizePipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<PluralizePipe, "pluralize", true>;
7
+ }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SafePipe implements PipeTransform {
5
+ private sanitizer;
6
+ constructor(sanitizer: DomSanitizer);
7
+ transform(url: string): SafeResourceUrl;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SafePipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<SafePipe, "safe", true>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SingularPipe implements PipeTransform {
4
+ transform(value: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<SingularPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<SingularPipe, "singular", true>;
7
+ }
@@ -0,0 +1,14 @@
1
+ export * from './lib/carousel/carousel.component';
2
+ export * from './lib/custom-input/custom-input.component';
3
+ export * from './lib/custom-snackbar/custom-snackbar.component';
4
+ export * from './lib/custom-table/custom-table.component';
5
+ export * from './lib/dynamic-component/dynamic-component.component';
6
+ export * from './lib/edit-view/edit-view.component';
7
+ export * from './lib/file-input/file-input.component';
8
+ export * from './lib/kpi/kpi.component';
9
+ export * from './lib/modal/modal.component';
10
+ export * from './lib/pill/pill.component';
11
+ export * from './lib/progress-bar/progress-bar.component';
12
+ export * from './lib/summary-view/summary-view.component';
13
+ export * from './lib/tabs/tabs.component';
14
+ export * from './lib/tel-input/tel-input.component';
@@ -0,0 +1,11 @@
1
+ import { TranslateService } from '@ngx-translate/core';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TranslateWrapperService {
5
+ private translateService;
6
+ constructor(translateService: TranslateService);
7
+ get(translation: string, count?: number, params?: any): Observable<string>;
8
+ translate(translation: string, count?: number, params?: any): string;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TranslateWrapperService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<TranslateWrapperService>;
11
+ }
@@ -0,0 +1,33 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export declare const capitalize: (word: string) => string;
3
+ export declare const pluralize: (word: string) => string;
4
+ export declare const spaceCase: (word: string) => string;
5
+ export declare const inListValidator: (list: string[]) => ValidatorFn;
6
+ export declare const updateArray: (items: any[], item: any, propertyId?: string, addToEnd?: boolean) => any[];
7
+ export declare const formatPhoneNumber: (value: string) => string;
8
+ export declare function parseLocalDate(dateString: string): Date;
9
+ export declare function formatLocalDateTimeLongForm(date: Date): string;
10
+ export declare function formatLocalDateTime(date: Date): string;
11
+ export declare function formatLocalTime(date: Date): string;
12
+ export declare function formatLocalTimeWithMinutes(date: Date): string;
13
+ export declare function formatLocalTimeWithMinutesAmPm(date: Date): string;
14
+ export declare function formatLocalDate(date: Date): string;
15
+ /**
16
+ * Formats an ISO date string to a readable format
17
+ * @param isoString - Date string in ISO format (e.g., "2025-09-12T21:30:00")
18
+ * @returns Formatted date string (e.g., "September 12, 2025, 9:30 PM")
19
+ */
20
+ export declare function formatStringDateTime(isoString: string): string;
21
+ /**
22
+ * Formats an ISO date string to a readable format
23
+ * @param isoString - Date string in ISO format (e.g., "2025-09-12")
24
+ * @returns Formatted date string (e.g., "September 12, 2025")
25
+ */
26
+ export declare function formatStringDate(isoString: string): string;
27
+ /**
28
+ * Format YYYY-MM to localized month year format
29
+ * @param dateStr Format: "2025-11"
30
+ * @param locale Language indicator
31
+ * @returns Format: "Nov 2025" (or localized equivalent)
32
+ */
33
+ export declare function formatMonthYear(dateStr: string, locale: string): string;
@@ -0,0 +1,4 @@
1
+ export declare const generateTimeOptions: (start: Date, end: Date, intervalMinutes?: number) => {
2
+ label: string;
3
+ value: Date;
4
+ }[];