@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.
- package/README.md +63 -0
- package/esm2022/lib/components/action-dialog/action-dialog-config.mjs +2 -0
- package/esm2022/lib/components/action-dialog/action-dialog.component.mjs +70 -0
- package/esm2022/lib/components/action-dialog/index.mjs +3 -0
- package/esm2022/lib/components/action-result-dialog/action-result-dialog-data.mjs +2 -0
- package/esm2022/lib/components/action-result-dialog/action-result-dialog.component.mjs +70 -0
- package/esm2022/lib/components/action-result-dialog/index.mjs +3 -0
- package/esm2022/lib/components/action-row/action-row.component.mjs +19 -0
- package/esm2022/lib/components/action-row/index.mjs +2 -0
- package/esm2022/lib/components/alert/alert-data.mjs +2 -0
- package/esm2022/lib/components/alert/alert.component.mjs +59 -0
- package/esm2022/lib/components/alert/index.mjs +3 -0
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +62 -0
- package/esm2022/lib/components/breadcrumb/index.mjs +2 -0
- package/esm2022/lib/components/button/button.component.mjs +355 -0
- package/esm2022/lib/components/button/index.mjs +2 -0
- package/esm2022/lib/components/check-box/check-box.component.mjs +108 -0
- package/esm2022/lib/components/check-box/index.mjs +2 -0
- package/esm2022/lib/components/confirmation-dialog/confirmation-dialog-data.mjs +2 -0
- package/esm2022/lib/components/confirmation-dialog/confirmation-dialog.component.mjs +66 -0
- package/esm2022/lib/components/confirmation-dialog/index.mjs +3 -0
- package/esm2022/lib/components/footer/footer.component.mjs +29 -0
- package/esm2022/lib/components/footer/index.mjs +2 -0
- package/esm2022/lib/components/header/header.component.mjs +85 -0
- package/esm2022/lib/components/header/index.mjs +2 -0
- package/esm2022/lib/components/icon/icon.component.mjs +53 -0
- package/esm2022/lib/components/icon/index.mjs +2 -0
- package/esm2022/lib/components/info-detail/index.mjs +3 -0
- package/esm2022/lib/components/info-detail/info-detail-dialog.component.mjs +96 -0
- package/esm2022/lib/components/info-detail/info-detail.component.mjs +43 -0
- package/esm2022/lib/components/input/index.mjs +2 -0
- package/esm2022/lib/components/input/input.component.mjs +316 -0
- package/esm2022/lib/components/input-date-picker-range/index.mjs +2 -0
- package/esm2022/lib/components/input-date-picker-range/input-date-picker-range.component.mjs +120 -0
- package/esm2022/lib/components/loading-overlay/index.mjs +2 -0
- package/esm2022/lib/components/loading-overlay/loading-overlay.component.mjs +29 -0
- package/esm2022/lib/components/nav/index.mjs +2 -0
- package/esm2022/lib/components/nav/nav.component.mjs +172 -0
- package/esm2022/lib/components/profile-menu/index.mjs +2 -0
- package/esm2022/lib/components/profile-menu/profile-menu.component.mjs +68 -0
- package/esm2022/lib/components/progress-bar/index.mjs +2 -0
- package/esm2022/lib/components/progress-bar/progress-bar.component.mjs +59 -0
- package/esm2022/lib/components/progress-bar-multiple/index.mjs +2 -0
- package/esm2022/lib/components/progress-bar-multiple/progress-bar-multiple.component.mjs +69 -0
- package/esm2022/lib/components/quantity-items/index.mjs +2 -0
- package/esm2022/lib/components/quantity-items/quantity-items.component.mjs +68 -0
- package/esm2022/lib/components/radio-group/index.mjs +2 -0
- package/esm2022/lib/components/radio-group/radio-group.component.mjs +74 -0
- package/esm2022/lib/components/radio-group-entity/index.mjs +2 -0
- package/esm2022/lib/components/radio-group-entity/radio-group-entity.component.mjs +101 -0
- package/esm2022/lib/components/select-entity/index.mjs +2 -0
- package/esm2022/lib/components/select-entity/select-entity.component.mjs +342 -0
- package/esm2022/lib/components/select-enum/index.mjs +2 -0
- package/esm2022/lib/components/select-enum/select-enum.component.mjs +93 -0
- package/esm2022/lib/components/slide-toggle/index.mjs +2 -0
- package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +94 -0
- package/esm2022/lib/components/title/index.mjs +2 -0
- package/esm2022/lib/components/title/title.component.mjs +27 -0
- package/esm2022/lib/directives/click-catcher.directive.mjs +20 -0
- package/esm2022/lib/directives/date-mask.directive.mjs +58 -0
- package/esm2022/lib/directives/dynamic-tab.directive.mjs +18 -0
- package/esm2022/lib/directives/for.directive.mjs +35 -0
- package/esm2022/lib/directives/index.mjs +11 -0
- package/esm2022/lib/directives/lower-case.directive.mjs +48 -0
- package/esm2022/lib/directives/phone-mask-brazil.directive.mjs +64 -0
- package/esm2022/lib/directives/phone-mask-spain.directive.mjs +66 -0
- package/esm2022/lib/directives/red.directive.mjs +21 -0
- package/esm2022/lib/directives/space-drop.directive.mjs +48 -0
- package/esm2022/lib/directives/upper-case.directive.mjs +48 -0
- package/esm2022/lib/mock/fake-data.service.mjs +69 -0
- package/esm2022/lib/mock/index.mjs +2 -0
- package/esm2022/lib/modules/core.material.module.mjs +166 -0
- package/esm2022/lib/modules/directives.module.mjs +64 -0
- package/esm2022/lib/modules/pipes.module.mjs +56 -0
- package/esm2022/lib/modules/pumpkin-tech.module.mjs +193 -0
- package/esm2022/lib/modules/shared/portuguese.matpaginatorintl.mjs +28 -0
- package/esm2022/lib/pipes/currency-brl.pipe.mjs +27 -0
- package/esm2022/lib/pipes/date-ago.pipe.mjs +59 -0
- package/esm2022/lib/pipes/get-first-string-before-space.pipe.mjs +21 -0
- package/esm2022/lib/pipes/index.mjs +11 -0
- package/esm2022/lib/pipes/line-break-after-period.pipe.mjs +20 -0
- package/esm2022/lib/pipes/line-break-after.pipe.mjs +29 -0
- package/esm2022/lib/pipes/memory-format.pipe.mjs +35 -0
- package/esm2022/lib/pipes/phone-brazil.pipe.mjs +43 -0
- package/esm2022/lib/pipes/phone-spain.pipe.mjs +37 -0
- package/esm2022/lib/pipes/time.durantion.pipe.mjs +36 -0
- package/esm2022/lib/pipes/uptime-format.pipe.mjs +36 -0
- package/esm2022/lib/services/breadcrumb.service.mjs +51 -0
- package/esm2022/lib/services/breadcrumb.tokens.mjs +10 -0
- package/esm2022/lib/services/currency-preference.service.mjs +98 -0
- package/esm2022/lib/services/dialog.service.mjs +89 -0
- package/esm2022/lib/services/index.mjs +10 -0
- package/esm2022/lib/services/loading.service.mjs +27 -0
- package/esm2022/lib/services/message-token.mjs +16 -0
- package/esm2022/lib/services/module.change.service.mjs +19 -0
- package/esm2022/lib/services/nav.service.mjs +31 -0
- package/esm2022/lib/services/snackbar-message.service.mjs +59 -0
- package/esm2022/lib/utils/array.util.mjs +19 -0
- package/esm2022/lib/utils/currency.util.mjs +18 -0
- package/esm2022/lib/utils/date.util.mjs +80 -0
- package/esm2022/lib/utils/document.util.mjs +92 -0
- package/esm2022/lib/utils/index.mjs +9 -0
- package/esm2022/lib/utils/number.util.mjs +19 -0
- package/esm2022/lib/utils/object.util.mjs +28 -0
- package/esm2022/lib/utils/string.util.mjs +40 -0
- package/esm2022/lib/utils/uuid.util.mjs +18 -0
- package/esm2022/public-api.mjs +42 -0
- package/esm2022/pumpkin-tech-pumpkin-tech-ng.mjs +5 -0
- package/fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs +4471 -0
- package/fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/action-dialog/action-dialog-config.d.ts +15 -0
- package/lib/components/action-dialog/action-dialog.component.d.ts +17 -0
- package/lib/components/action-dialog/index.d.ts +2 -0
- package/lib/components/action-result-dialog/action-result-dialog-data.d.ts +6 -0
- package/lib/components/action-result-dialog/action-result-dialog.component.d.ts +21 -0
- package/lib/components/action-result-dialog/index.d.ts +2 -0
- package/lib/components/action-row/action-row.component.d.ts +5 -0
- package/lib/components/action-row/index.d.ts +1 -0
- package/lib/components/alert/alert-data.d.ts +9 -0
- package/lib/components/alert/alert.component.d.ts +13 -0
- package/lib/components/alert/index.d.ts +2 -0
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +11 -0
- package/lib/components/breadcrumb/index.d.ts +1 -0
- package/lib/components/button/button.component.d.ts +36 -0
- package/lib/components/button/index.d.ts +1 -0
- package/lib/components/check-box/check-box.component.d.ts +24 -0
- package/lib/components/check-box/index.d.ts +1 -0
- package/lib/components/confirmation-dialog/confirmation-dialog-data.d.ts +7 -0
- package/lib/components/confirmation-dialog/confirmation-dialog.component.d.ts +12 -0
- package/lib/components/confirmation-dialog/index.d.ts +2 -0
- package/lib/components/footer/footer.component.d.ts +6 -0
- package/lib/components/footer/index.d.ts +1 -0
- package/lib/components/header/header.component.d.ts +14 -0
- package/lib/components/header/index.d.ts +1 -0
- package/lib/components/icon/icon.component.d.ts +10 -0
- package/lib/components/icon/index.d.ts +1 -0
- package/lib/components/info-detail/index.d.ts +2 -0
- package/lib/components/info-detail/info-detail-dialog.component.d.ts +19 -0
- package/lib/components/info-detail/info-detail.component.d.ts +13 -0
- package/lib/components/input/index.d.ts +1 -0
- package/lib/components/input/input.component.d.ts +58 -0
- package/lib/components/input-date-picker-range/index.d.ts +1 -0
- package/lib/components/input-date-picker-range/input-date-picker-range.component.d.ts +37 -0
- package/lib/components/loading-overlay/index.d.ts +1 -0
- package/lib/components/loading-overlay/loading-overlay.component.d.ts +10 -0
- package/lib/components/nav/index.d.ts +1 -0
- package/lib/components/nav/nav.component.d.ts +31 -0
- package/lib/components/profile-menu/index.d.ts +1 -0
- package/lib/components/profile-menu/profile-menu.component.d.ts +16 -0
- package/lib/components/progress-bar/index.d.ts +1 -0
- package/lib/components/progress-bar/progress-bar.component.d.ts +12 -0
- package/lib/components/progress-bar-multiple/index.d.ts +1 -0
- package/lib/components/progress-bar-multiple/progress-bar-multiple.component.d.ts +19 -0
- package/lib/components/quantity-items/index.d.ts +1 -0
- package/lib/components/quantity-items/quantity-items.component.d.ts +10 -0
- package/lib/components/radio-group/index.d.ts +1 -0
- package/lib/components/radio-group/radio-group.component.d.ts +20 -0
- package/lib/components/radio-group-entity/index.d.ts +1 -0
- package/lib/components/radio-group-entity/radio-group-entity.component.d.ts +21 -0
- package/lib/components/select-entity/index.d.ts +1 -0
- package/lib/components/select-entity/select-entity.component.d.ts +60 -0
- package/lib/components/select-enum/index.d.ts +1 -0
- package/lib/components/select-enum/select-enum.component.d.ts +28 -0
- package/lib/components/slide-toggle/index.d.ts +1 -0
- package/lib/components/slide-toggle/slide-toggle.component.d.ts +46 -0
- package/lib/components/title/index.d.ts +1 -0
- package/lib/components/title/title.component.d.ts +11 -0
- package/lib/directives/click-catcher.directive.d.ts +6 -0
- package/lib/directives/date-mask.directive.d.ts +8 -0
- package/lib/directives/dynamic-tab.directive.d.ts +8 -0
- package/lib/directives/for.directive.d.ts +12 -0
- package/lib/directives/index.d.ts +10 -0
- package/lib/directives/lower-case.directive.d.ts +12 -0
- package/lib/directives/phone-mask-brazil.directive.d.ts +11 -0
- package/lib/directives/phone-mask-spain.directive.d.ts +11 -0
- package/lib/directives/red.directive.d.ts +9 -0
- package/lib/directives/space-drop.directive.d.ts +12 -0
- package/lib/directives/upper-case.directive.d.ts +12 -0
- package/lib/mock/fake-data.service.d.ts +34 -0
- package/lib/mock/index.d.ts +1 -0
- package/lib/modules/core.material.module.d.ts +43 -0
- package/lib/modules/directives.module.d.ts +16 -0
- package/lib/modules/pipes.module.d.ts +16 -0
- package/lib/modules/pumpkin-tech.module.d.ts +33 -0
- package/lib/modules/shared/portuguese.matpaginatorintl.d.ts +12 -0
- package/lib/pipes/currency-brl.pipe.d.ts +8 -0
- package/lib/pipes/date-ago.pipe.d.ts +8 -0
- package/lib/pipes/get-first-string-before-space.pipe.d.ts +7 -0
- package/lib/pipes/index.d.ts +10 -0
- package/lib/pipes/line-break-after-period.pipe.d.ts +7 -0
- package/lib/pipes/line-break-after.pipe.d.ts +7 -0
- package/lib/pipes/memory-format.pipe.d.ts +7 -0
- package/lib/pipes/phone-brazil.pipe.d.ts +7 -0
- package/lib/pipes/phone-spain.pipe.d.ts +7 -0
- package/lib/pipes/time.durantion.pipe.d.ts +7 -0
- package/lib/pipes/uptime-format.pipe.d.ts +7 -0
- package/lib/services/breadcrumb.service.d.ts +14 -0
- package/lib/services/breadcrumb.tokens.d.ts +9 -0
- package/lib/services/currency-preference.service.d.ts +24 -0
- package/lib/services/dialog.service.d.ts +41 -0
- package/lib/services/index.d.ts +9 -0
- package/lib/services/loading.service.d.ts +9 -0
- package/lib/services/message-token.d.ts +9 -0
- package/lib/services/module.change.service.d.ts +8 -0
- package/lib/services/nav.service.d.ts +11 -0
- package/lib/services/snackbar-message.service.d.ts +13 -0
- package/lib/utils/array.util.d.ts +9 -0
- package/lib/utils/currency.util.d.ts +8 -0
- package/lib/utils/date.util.d.ts +18 -0
- package/lib/utils/document.util.d.ts +4 -0
- package/lib/utils/index.d.ts +8 -0
- package/lib/utils/number.util.d.ts +5 -0
- package/lib/utils/object.util.d.ts +9 -0
- package/lib/utils/string.util.d.ts +10 -0
- package/lib/utils/uuid.util.d.ts +5 -0
- package/package.json +49 -0
- 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,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
|
+
}
|
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
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -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';
|