@pumpkin-tech/pumpkin-tech-ng 0.1.0

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 (218) hide show
  1. package/README.md +63 -0
  2. package/esm2022/lib/components/action-dialog/action-dialog-config.mjs +2 -0
  3. package/esm2022/lib/components/action-dialog/action-dialog.component.mjs +70 -0
  4. package/esm2022/lib/components/action-dialog/index.mjs +3 -0
  5. package/esm2022/lib/components/action-result-dialog/action-result-dialog-data.mjs +2 -0
  6. package/esm2022/lib/components/action-result-dialog/action-result-dialog.component.mjs +70 -0
  7. package/esm2022/lib/components/action-result-dialog/index.mjs +3 -0
  8. package/esm2022/lib/components/action-row/action-row.component.mjs +19 -0
  9. package/esm2022/lib/components/action-row/index.mjs +2 -0
  10. package/esm2022/lib/components/alert/alert-data.mjs +2 -0
  11. package/esm2022/lib/components/alert/alert.component.mjs +59 -0
  12. package/esm2022/lib/components/alert/index.mjs +3 -0
  13. package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +62 -0
  14. package/esm2022/lib/components/breadcrumb/index.mjs +2 -0
  15. package/esm2022/lib/components/button/button.component.mjs +355 -0
  16. package/esm2022/lib/components/button/index.mjs +2 -0
  17. package/esm2022/lib/components/check-box/check-box.component.mjs +108 -0
  18. package/esm2022/lib/components/check-box/index.mjs +2 -0
  19. package/esm2022/lib/components/confirmation-dialog/confirmation-dialog-data.mjs +2 -0
  20. package/esm2022/lib/components/confirmation-dialog/confirmation-dialog.component.mjs +66 -0
  21. package/esm2022/lib/components/confirmation-dialog/index.mjs +3 -0
  22. package/esm2022/lib/components/footer/footer.component.mjs +29 -0
  23. package/esm2022/lib/components/footer/index.mjs +2 -0
  24. package/esm2022/lib/components/header/header.component.mjs +85 -0
  25. package/esm2022/lib/components/header/index.mjs +2 -0
  26. package/esm2022/lib/components/icon/icon.component.mjs +53 -0
  27. package/esm2022/lib/components/icon/index.mjs +2 -0
  28. package/esm2022/lib/components/info-detail/index.mjs +3 -0
  29. package/esm2022/lib/components/info-detail/info-detail-dialog.component.mjs +96 -0
  30. package/esm2022/lib/components/info-detail/info-detail.component.mjs +43 -0
  31. package/esm2022/lib/components/input/index.mjs +2 -0
  32. package/esm2022/lib/components/input/input.component.mjs +316 -0
  33. package/esm2022/lib/components/input-date-picker-range/index.mjs +2 -0
  34. package/esm2022/lib/components/input-date-picker-range/input-date-picker-range.component.mjs +120 -0
  35. package/esm2022/lib/components/loading-overlay/index.mjs +2 -0
  36. package/esm2022/lib/components/loading-overlay/loading-overlay.component.mjs +29 -0
  37. package/esm2022/lib/components/nav/index.mjs +2 -0
  38. package/esm2022/lib/components/nav/nav.component.mjs +172 -0
  39. package/esm2022/lib/components/profile-menu/index.mjs +2 -0
  40. package/esm2022/lib/components/profile-menu/profile-menu.component.mjs +68 -0
  41. package/esm2022/lib/components/progress-bar/index.mjs +2 -0
  42. package/esm2022/lib/components/progress-bar/progress-bar.component.mjs +59 -0
  43. package/esm2022/lib/components/progress-bar-multiple/index.mjs +2 -0
  44. package/esm2022/lib/components/progress-bar-multiple/progress-bar-multiple.component.mjs +69 -0
  45. package/esm2022/lib/components/quantity-items/index.mjs +2 -0
  46. package/esm2022/lib/components/quantity-items/quantity-items.component.mjs +68 -0
  47. package/esm2022/lib/components/radio-group/index.mjs +2 -0
  48. package/esm2022/lib/components/radio-group/radio-group.component.mjs +74 -0
  49. package/esm2022/lib/components/radio-group-entity/index.mjs +2 -0
  50. package/esm2022/lib/components/radio-group-entity/radio-group-entity.component.mjs +101 -0
  51. package/esm2022/lib/components/select-entity/index.mjs +2 -0
  52. package/esm2022/lib/components/select-entity/select-entity.component.mjs +342 -0
  53. package/esm2022/lib/components/select-enum/index.mjs +2 -0
  54. package/esm2022/lib/components/select-enum/select-enum.component.mjs +93 -0
  55. package/esm2022/lib/components/slide-toggle/index.mjs +2 -0
  56. package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +94 -0
  57. package/esm2022/lib/components/title/index.mjs +2 -0
  58. package/esm2022/lib/components/title/title.component.mjs +27 -0
  59. package/esm2022/lib/directives/click-catcher.directive.mjs +20 -0
  60. package/esm2022/lib/directives/date-mask.directive.mjs +58 -0
  61. package/esm2022/lib/directives/dynamic-tab.directive.mjs +18 -0
  62. package/esm2022/lib/directives/for.directive.mjs +35 -0
  63. package/esm2022/lib/directives/index.mjs +11 -0
  64. package/esm2022/lib/directives/lower-case.directive.mjs +48 -0
  65. package/esm2022/lib/directives/phone-mask-brazil.directive.mjs +64 -0
  66. package/esm2022/lib/directives/phone-mask-spain.directive.mjs +66 -0
  67. package/esm2022/lib/directives/red.directive.mjs +21 -0
  68. package/esm2022/lib/directives/space-drop.directive.mjs +48 -0
  69. package/esm2022/lib/directives/upper-case.directive.mjs +48 -0
  70. package/esm2022/lib/mock/fake-data.service.mjs +69 -0
  71. package/esm2022/lib/mock/index.mjs +2 -0
  72. package/esm2022/lib/modules/core.material.module.mjs +166 -0
  73. package/esm2022/lib/modules/directives.module.mjs +64 -0
  74. package/esm2022/lib/modules/pipes.module.mjs +56 -0
  75. package/esm2022/lib/modules/pumpkin-tech.module.mjs +193 -0
  76. package/esm2022/lib/modules/shared/portuguese.matpaginatorintl.mjs +28 -0
  77. package/esm2022/lib/pipes/currency-brl.pipe.mjs +27 -0
  78. package/esm2022/lib/pipes/date-ago.pipe.mjs +59 -0
  79. package/esm2022/lib/pipes/get-first-string-before-space.pipe.mjs +21 -0
  80. package/esm2022/lib/pipes/index.mjs +11 -0
  81. package/esm2022/lib/pipes/line-break-after-period.pipe.mjs +20 -0
  82. package/esm2022/lib/pipes/line-break-after.pipe.mjs +29 -0
  83. package/esm2022/lib/pipes/memory-format.pipe.mjs +35 -0
  84. package/esm2022/lib/pipes/phone-brazil.pipe.mjs +43 -0
  85. package/esm2022/lib/pipes/phone-spain.pipe.mjs +37 -0
  86. package/esm2022/lib/pipes/time.durantion.pipe.mjs +36 -0
  87. package/esm2022/lib/pipes/uptime-format.pipe.mjs +36 -0
  88. package/esm2022/lib/services/breadcrumb.service.mjs +51 -0
  89. package/esm2022/lib/services/breadcrumb.tokens.mjs +10 -0
  90. package/esm2022/lib/services/currency-preference.service.mjs +98 -0
  91. package/esm2022/lib/services/dialog.service.mjs +89 -0
  92. package/esm2022/lib/services/index.mjs +10 -0
  93. package/esm2022/lib/services/loading.service.mjs +27 -0
  94. package/esm2022/lib/services/message-token.mjs +16 -0
  95. package/esm2022/lib/services/module.change.service.mjs +19 -0
  96. package/esm2022/lib/services/nav.service.mjs +31 -0
  97. package/esm2022/lib/services/snackbar-message.service.mjs +59 -0
  98. package/esm2022/lib/utils/array.util.mjs +19 -0
  99. package/esm2022/lib/utils/currency.util.mjs +18 -0
  100. package/esm2022/lib/utils/date.util.mjs +80 -0
  101. package/esm2022/lib/utils/document.util.mjs +92 -0
  102. package/esm2022/lib/utils/index.mjs +9 -0
  103. package/esm2022/lib/utils/number.util.mjs +19 -0
  104. package/esm2022/lib/utils/object.util.mjs +28 -0
  105. package/esm2022/lib/utils/string.util.mjs +40 -0
  106. package/esm2022/lib/utils/uuid.util.mjs +18 -0
  107. package/esm2022/public-api.mjs +42 -0
  108. package/esm2022/pumpkin-tech-pumpkin-tech-ng.mjs +5 -0
  109. package/fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs +4471 -0
  110. package/fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs.map +1 -0
  111. package/index.d.ts +5 -0
  112. package/lib/components/action-dialog/action-dialog-config.d.ts +15 -0
  113. package/lib/components/action-dialog/action-dialog.component.d.ts +17 -0
  114. package/lib/components/action-dialog/index.d.ts +2 -0
  115. package/lib/components/action-result-dialog/action-result-dialog-data.d.ts +6 -0
  116. package/lib/components/action-result-dialog/action-result-dialog.component.d.ts +21 -0
  117. package/lib/components/action-result-dialog/index.d.ts +2 -0
  118. package/lib/components/action-row/action-row.component.d.ts +5 -0
  119. package/lib/components/action-row/index.d.ts +1 -0
  120. package/lib/components/alert/alert-data.d.ts +9 -0
  121. package/lib/components/alert/alert.component.d.ts +13 -0
  122. package/lib/components/alert/index.d.ts +2 -0
  123. package/lib/components/breadcrumb/breadcrumb.component.d.ts +11 -0
  124. package/lib/components/breadcrumb/index.d.ts +1 -0
  125. package/lib/components/button/button.component.d.ts +36 -0
  126. package/lib/components/button/index.d.ts +1 -0
  127. package/lib/components/check-box/check-box.component.d.ts +24 -0
  128. package/lib/components/check-box/index.d.ts +1 -0
  129. package/lib/components/confirmation-dialog/confirmation-dialog-data.d.ts +7 -0
  130. package/lib/components/confirmation-dialog/confirmation-dialog.component.d.ts +12 -0
  131. package/lib/components/confirmation-dialog/index.d.ts +2 -0
  132. package/lib/components/footer/footer.component.d.ts +6 -0
  133. package/lib/components/footer/index.d.ts +1 -0
  134. package/lib/components/header/header.component.d.ts +14 -0
  135. package/lib/components/header/index.d.ts +1 -0
  136. package/lib/components/icon/icon.component.d.ts +10 -0
  137. package/lib/components/icon/index.d.ts +1 -0
  138. package/lib/components/info-detail/index.d.ts +2 -0
  139. package/lib/components/info-detail/info-detail-dialog.component.d.ts +19 -0
  140. package/lib/components/info-detail/info-detail.component.d.ts +13 -0
  141. package/lib/components/input/index.d.ts +1 -0
  142. package/lib/components/input/input.component.d.ts +58 -0
  143. package/lib/components/input-date-picker-range/index.d.ts +1 -0
  144. package/lib/components/input-date-picker-range/input-date-picker-range.component.d.ts +37 -0
  145. package/lib/components/loading-overlay/index.d.ts +1 -0
  146. package/lib/components/loading-overlay/loading-overlay.component.d.ts +10 -0
  147. package/lib/components/nav/index.d.ts +1 -0
  148. package/lib/components/nav/nav.component.d.ts +31 -0
  149. package/lib/components/profile-menu/index.d.ts +1 -0
  150. package/lib/components/profile-menu/profile-menu.component.d.ts +16 -0
  151. package/lib/components/progress-bar/index.d.ts +1 -0
  152. package/lib/components/progress-bar/progress-bar.component.d.ts +12 -0
  153. package/lib/components/progress-bar-multiple/index.d.ts +1 -0
  154. package/lib/components/progress-bar-multiple/progress-bar-multiple.component.d.ts +19 -0
  155. package/lib/components/quantity-items/index.d.ts +1 -0
  156. package/lib/components/quantity-items/quantity-items.component.d.ts +10 -0
  157. package/lib/components/radio-group/index.d.ts +1 -0
  158. package/lib/components/radio-group/radio-group.component.d.ts +20 -0
  159. package/lib/components/radio-group-entity/index.d.ts +1 -0
  160. package/lib/components/radio-group-entity/radio-group-entity.component.d.ts +21 -0
  161. package/lib/components/select-entity/index.d.ts +1 -0
  162. package/lib/components/select-entity/select-entity.component.d.ts +60 -0
  163. package/lib/components/select-enum/index.d.ts +1 -0
  164. package/lib/components/select-enum/select-enum.component.d.ts +28 -0
  165. package/lib/components/slide-toggle/index.d.ts +1 -0
  166. package/lib/components/slide-toggle/slide-toggle.component.d.ts +46 -0
  167. package/lib/components/title/index.d.ts +1 -0
  168. package/lib/components/title/title.component.d.ts +11 -0
  169. package/lib/directives/click-catcher.directive.d.ts +6 -0
  170. package/lib/directives/date-mask.directive.d.ts +8 -0
  171. package/lib/directives/dynamic-tab.directive.d.ts +8 -0
  172. package/lib/directives/for.directive.d.ts +12 -0
  173. package/lib/directives/index.d.ts +10 -0
  174. package/lib/directives/lower-case.directive.d.ts +12 -0
  175. package/lib/directives/phone-mask-brazil.directive.d.ts +11 -0
  176. package/lib/directives/phone-mask-spain.directive.d.ts +11 -0
  177. package/lib/directives/red.directive.d.ts +9 -0
  178. package/lib/directives/space-drop.directive.d.ts +12 -0
  179. package/lib/directives/upper-case.directive.d.ts +12 -0
  180. package/lib/mock/fake-data.service.d.ts +34 -0
  181. package/lib/mock/index.d.ts +1 -0
  182. package/lib/modules/core.material.module.d.ts +43 -0
  183. package/lib/modules/directives.module.d.ts +16 -0
  184. package/lib/modules/pipes.module.d.ts +16 -0
  185. package/lib/modules/pumpkin-tech.module.d.ts +33 -0
  186. package/lib/modules/shared/portuguese.matpaginatorintl.d.ts +12 -0
  187. package/lib/pipes/currency-brl.pipe.d.ts +8 -0
  188. package/lib/pipes/date-ago.pipe.d.ts +8 -0
  189. package/lib/pipes/get-first-string-before-space.pipe.d.ts +7 -0
  190. package/lib/pipes/index.d.ts +10 -0
  191. package/lib/pipes/line-break-after-period.pipe.d.ts +7 -0
  192. package/lib/pipes/line-break-after.pipe.d.ts +7 -0
  193. package/lib/pipes/memory-format.pipe.d.ts +7 -0
  194. package/lib/pipes/phone-brazil.pipe.d.ts +7 -0
  195. package/lib/pipes/phone-spain.pipe.d.ts +7 -0
  196. package/lib/pipes/time.durantion.pipe.d.ts +7 -0
  197. package/lib/pipes/uptime-format.pipe.d.ts +7 -0
  198. package/lib/services/breadcrumb.service.d.ts +14 -0
  199. package/lib/services/breadcrumb.tokens.d.ts +9 -0
  200. package/lib/services/currency-preference.service.d.ts +24 -0
  201. package/lib/services/dialog.service.d.ts +41 -0
  202. package/lib/services/index.d.ts +9 -0
  203. package/lib/services/loading.service.d.ts +9 -0
  204. package/lib/services/message-token.d.ts +9 -0
  205. package/lib/services/module.change.service.d.ts +8 -0
  206. package/lib/services/nav.service.d.ts +11 -0
  207. package/lib/services/snackbar-message.service.d.ts +13 -0
  208. package/lib/utils/array.util.d.ts +9 -0
  209. package/lib/utils/currency.util.d.ts +8 -0
  210. package/lib/utils/date.util.d.ts +18 -0
  211. package/lib/utils/document.util.d.ts +4 -0
  212. package/lib/utils/index.d.ts +8 -0
  213. package/lib/utils/number.util.d.ts +5 -0
  214. package/lib/utils/object.util.d.ts +9 -0
  215. package/lib/utils/string.util.d.ts +10 -0
  216. package/lib/utils/uuid.util.d.ts +5 -0
  217. package/package.json +49 -0
  218. package/public-api.d.ts +37 -0
@@ -0,0 +1,41 @@
1
+ import { MatDialog, MatDialogRef, MatDialogConfig } from '@angular/material/dialog';
2
+ import { Observable } from 'rxjs';
3
+ import { ConfirmationDTO } from '../components/confirmation-dialog';
4
+ import { InfoDetailDialogComponent } from '../components/info-detail/info-detail-dialog.component';
5
+ import { ActionDialogComponent } from '../components/action-dialog/action-dialog.component';
6
+ import { ActionResultDialogComponent } from '../components/action-result-dialog/action-result-dialog.component';
7
+ import { ActionDialogConfig } from '../components/action-dialog/action-dialog-config';
8
+ import { ActionResultData } from '../components/action-result-dialog/action-result-dialog-data';
9
+ import * as i0 from "@angular/core";
10
+ export interface DialogModel<T = any, D = any> {
11
+ component: any;
12
+ data?: D;
13
+ width?: string;
14
+ height?: string;
15
+ position?: MatDialogConfig['position'];
16
+ panelClass?: string | string[];
17
+ disableClose?: boolean;
18
+ }
19
+ export declare class DialogService {
20
+ private dialog;
21
+ constructor(dialog: MatDialog);
22
+ open<T = any, R = any>(model: DialogModel<T, any>): MatDialogRef<T, R>;
23
+ openInfo(arg: {
24
+ title: string;
25
+ content: string;
26
+ rawContent?: string;
27
+ }, width?: string): MatDialogRef<InfoDetailDialogComponent>;
28
+ openActionDialog(config: ActionDialogConfig, width?: string): MatDialogRef<ActionDialogComponent, any>;
29
+ openResultDialog(arg: ActionResultData, width?: string): MatDialogRef<ActionResultDialogComponent>;
30
+ confirm(confirmation: ConfirmationDTO, width?: string): Observable<boolean>;
31
+ /**
32
+ * Abre um ActionDialog e, se houver resultado, usa o builder para criar
33
+ * o ActionResultData e abre o resultado.
34
+ * Retorna um observable que emite quando o fluxo completo terminou.
35
+ */
36
+ openActionThenResult(actionConfig: Omit<ActionDialogConfig, 'fields'> & {
37
+ fields?: any[];
38
+ }, resultConfigBuilder: (actionResult: any) => ActionResultData): Observable<void>;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
40
+ static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
41
+ }
@@ -0,0 +1,9 @@
1
+ export * from './message-token';
2
+ export * from './snackbar-message.service';
3
+ export * from './dialog.service';
4
+ export * from './loading.service';
5
+ export * from './module.change.service';
6
+ export * from './currency-preference.service';
7
+ export * from './nav.service';
8
+ export * from './breadcrumb.service';
9
+ export * from './breadcrumb.tokens';
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class LoadingService {
3
+ private _isLoading;
4
+ isLoading$: import("rxjs").Observable<boolean>;
5
+ showLoading(): void;
6
+ hideLoading(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoadingService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoadingService>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export interface IMessageService {
3
+ successMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
4
+ errorMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
5
+ warnMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
6
+ }
7
+ export declare const MESSAGE_SERVICE: InjectionToken<IMessageService>;
8
+ export declare const DefaultConsoleMessageService: IMessageService;
9
+ export declare const DefaultMessageService: IMessageService;
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ModuleChangeService {
3
+ private moduleChangedSource;
4
+ moduleChanged$: import("rxjs").Observable<string>;
5
+ notifyModuleChange(lastModule: string): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModuleChangeService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<ModuleChangeService>;
8
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class NavService {
3
+ private navVisible;
4
+ get navState$(): import("rxjs").Observable<boolean>;
5
+ get isNavOpen(): boolean;
6
+ toggleNav(): void;
7
+ open(): void;
8
+ close(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<NavService>;
11
+ }
@@ -0,0 +1,13 @@
1
+ import { MatSnackBar } from '@angular/material/snack-bar';
2
+ import { IMessageService } from './message-token';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SnackbarMessageService implements IMessageService {
5
+ private snackBar;
6
+ constructor(snackBar: MatSnackBar);
7
+ private openSnackBar;
8
+ successMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
9
+ errorMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
10
+ warnMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarMessageService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<SnackbarMessageService>;
13
+ }
@@ -0,0 +1,9 @@
1
+ export declare class ArrayUtil {
2
+ static isEmpty<T>(value: T[] | null | undefined): boolean;
3
+ static clone<T>(value: T[] | null | undefined): T[];
4
+ /**
5
+ * Usar como predicate em filter para distinct por comparação de id
6
+ * Ex: array.filter(ArrayUtil.distinctById)
7
+ */
8
+ static distinctById: (obj: any, index: number, self: any[]) => boolean;
9
+ }
@@ -0,0 +1,8 @@
1
+ export declare class CurrencyUtil {
2
+ /**
3
+ * @param value número a formatar. Se nulo/indefinido retorna string vazia.
4
+ * @param currency código ISO (ex: 'BRL') ou símbolo informal passado como terceiro arg se precisar.
5
+ * @param digitsInfo formato, ex: '1.2-2'
6
+ */
7
+ static transform(value: number | null | undefined, currency?: string, digitsInfo?: string): string;
8
+ }
@@ -0,0 +1,18 @@
1
+ export declare class DateUtil {
2
+ static readonly DATE_FORMAT = "dd/MM/yyyy";
3
+ static readonly DATE_TIME_FORMAT = "dd/MM/yyyy HH:mm";
4
+ static readonly DATE_TIME_FORMAT_SLICED = "dd/MM/yy HH:mm";
5
+ static readonly DATE_TIME_FULL_FORMAT = "dd/MM/yyyy HH:mm:ss";
6
+ /**
7
+ * Aceita Date | string | undefined. Retorna string formatada ou vazio.
8
+ */
9
+ static format(value: Date | string | undefined | null, format: string): string;
10
+ static getTotalDaysInMonth(month: number, year: number): number;
11
+ static addMonthsToDate(date: Date, monthsToAdd: number): Date;
12
+ static addDaysToDate(days: number, date: Date): Date;
13
+ static isValid(value: any): boolean;
14
+ static isGreaterThan(initial: Date | string, final: Date | string): boolean;
15
+ static isLessThan(initial: Date | string, final: Date | string): boolean;
16
+ static isBetween(date: Date | string, initial: Date | string, final: Date | string): boolean;
17
+ static getDayOfWeek(date: Date): string;
18
+ }
@@ -0,0 +1,4 @@
1
+ export declare class DocumentUtil {
2
+ static isValidCpf(cpf: string): boolean;
3
+ static isValidCnpj(cnpj: string): boolean;
4
+ }
@@ -0,0 +1,8 @@
1
+ export * from './object.util';
2
+ export * from './string.util';
3
+ export * from './array.util';
4
+ export * from './number.util';
5
+ export * from './date.util';
6
+ export * from './currency.util';
7
+ export * from './document.util';
8
+ export * from './uuid.util';
@@ -0,0 +1,5 @@
1
+ export declare class NumberUtil {
2
+ static isPositive(value: number | null | undefined): boolean;
3
+ static format(value: number | null | undefined, digitsInfo?: string): string;
4
+ static get(value: number | null | undefined): number;
5
+ }
@@ -0,0 +1,9 @@
1
+ export declare class ObjectUtil {
2
+ static isNull(value: any): boolean;
3
+ static isEmptyObject(obj: object): boolean;
4
+ /**
5
+ * Considera “novo” um modelo sem id ou com id não positivo.
6
+ */
7
+ static isNewModel(value: any): boolean;
8
+ static clone<T extends object>(value: T | null | undefined): T | {};
9
+ }
@@ -0,0 +1,10 @@
1
+ export declare class StringUtil {
2
+ static readonly EMPTY = "";
3
+ static replaceAccents(value: string): string;
4
+ static removeAccents(value: string): string;
5
+ static isEmpty(value: string | null | undefined): boolean;
6
+ /**
7
+ * Aplica máscara simples onde '9' é placeholder numérico.
8
+ */
9
+ static format(value: string, mask: string): string;
10
+ }
@@ -0,0 +1,5 @@
1
+ export declare class UuidUtil {
2
+ private static uuidPattern;
3
+ static isUUID(uuid: string | null | undefined): boolean;
4
+ static extractUUID(uuid: string | null | undefined): string | null;
5
+ }
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@pumpkin-tech/pumpkin-tech-ng",
3
+ "version": "0.1.0",
4
+ "description": "Biblioteca Angular com utilitários e componentes Pumpkin Tech",
5
+ "license": "MIT",
6
+ "keywords": [
7
+ "angular",
8
+ "material",
9
+ "components",
10
+ "pumpkin-tech"
11
+ ],
12
+ "author": "Pedro Ramos <phsr94@gmail.com>",
13
+ "homepage": "https://github.com/legendbr94/pumpkin-tech-ng#readme",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/legendbr94/pumpkin-tech-ng.git"
17
+ },
18
+ "peerDependencies": {
19
+ "@angular/animations": "18.2.13",
20
+ "@angular/common": "18.2.13",
21
+ "@angular/core": "18.2.13",
22
+ "@angular/material": "18.2.13",
23
+ "@angular/cdk": "18.2.13",
24
+ "@angular/material-moment-adapter": "18.2.13",
25
+ "moment": "^2.29.4",
26
+ "@faker-js/faker": "^9.0.3",
27
+ "@ngx-translate/core": "^16.0.4"
28
+ },
29
+ "dependencies": {
30
+ "tslib": "^2.5.0"
31
+ },
32
+ "sideEffects": false,
33
+ "publishConfig": {
34
+ "access": "public"
35
+ },
36
+ "module": "fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs",
37
+ "typings": "index.d.ts",
38
+ "exports": {
39
+ "./package.json": {
40
+ "default": "./package.json"
41
+ },
42
+ ".": {
43
+ "types": "./index.d.ts",
44
+ "esm2022": "./esm2022/pumpkin-tech-pumpkin-tech-ng.mjs",
45
+ "esm": "./esm2022/pumpkin-tech-pumpkin-tech-ng.mjs",
46
+ "default": "./fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs"
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,37 @@
1
+ export * from './lib/components/input';
2
+ export * from './lib/components/button';
3
+ export * from './lib/components/icon';
4
+ export * from './lib/components/action-row';
5
+ export * from './lib/components/quantity-items';
6
+ export * from './lib/components/select-entity';
7
+ export * from './lib/components/breadcrumb';
8
+ export * from './lib/components/header';
9
+ export * from './lib/components/nav';
10
+ export * from './lib/components/footer';
11
+ export * from './lib/components/loading-overlay';
12
+ export * from './lib/components/progress-bar';
13
+ export * from './lib/components/progress-bar-multiple';
14
+ export * from './lib/components/radio-group';
15
+ export * from './lib/components/radio-group-entity';
16
+ export * from './lib/components/select-enum';
17
+ export * from './lib/components/slide-toggle';
18
+ export * from './lib/components/title';
19
+ export * from './lib/components/confirmation-dialog';
20
+ export * from './lib/components/action-dialog';
21
+ export * from './lib/components/info-detail';
22
+ export * from './lib/components/info-detail/info-detail-dialog.component';
23
+ export * from './lib/components/action-result-dialog';
24
+ export * from './lib/components/alert';
25
+ export * from './lib/components/profile-menu';
26
+ export * from './lib/components/check-box';
27
+ export * from './lib/components/input-date-picker-range';
28
+ export * from './lib/components/title';
29
+ export * from './lib/modules/pumpkin-tech.module';
30
+ export * from './lib/modules/directives.module';
31
+ export * from './lib/modules/pipes.module';
32
+ export * from './lib/modules/core.material.module';
33
+ export * from './lib/services';
34
+ export * from './lib/directives';
35
+ export * from './lib/pipes';
36
+ export * from './lib/utils';
37
+ export * from './lib/mock';