@pumpkin-tech/pumpkin-tech-ng 0.1.9 → 0.2.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.
- package/fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs +556 -450
- package/fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs.map +1 -1
- package/index.d.ts +1585 -3
- package/package.json +9 -11
- package/esm2022/lib/base/base-field.mjs +0 -96
- package/esm2022/lib/components/action-dialog/action-dialog-config.mjs +0 -2
- package/esm2022/lib/components/action-dialog/action-dialog.component.mjs +0 -198
- package/esm2022/lib/components/action-dialog/index.mjs +0 -3
- package/esm2022/lib/components/action-result-dialog/action-result-dialog-data.mjs +0 -2
- package/esm2022/lib/components/action-result-dialog/action-result-dialog.component.mjs +0 -70
- package/esm2022/lib/components/action-result-dialog/index.mjs +0 -3
- package/esm2022/lib/components/action-row/action-row.component.mjs +0 -19
- package/esm2022/lib/components/action-row/index.mjs +0 -2
- package/esm2022/lib/components/alert/alert-data.mjs +0 -2
- package/esm2022/lib/components/alert/alert.component.mjs +0 -59
- package/esm2022/lib/components/alert/index.mjs +0 -3
- package/esm2022/lib/components/badge/badge-stack.component.mjs +0 -107
- package/esm2022/lib/components/badge/badge.component.mjs +0 -241
- package/esm2022/lib/components/badge/index.mjs +0 -3
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +0 -62
- package/esm2022/lib/components/breadcrumb/index.mjs +0 -2
- package/esm2022/lib/components/button/button.component.mjs +0 -738
- package/esm2022/lib/components/button/index.mjs +0 -2
- package/esm2022/lib/components/check-box/check-box.component.mjs +0 -109
- package/esm2022/lib/components/check-box/index.mjs +0 -2
- package/esm2022/lib/components/confirmation-dialog/confirmation-dialog-data.mjs +0 -2
- package/esm2022/lib/components/confirmation-dialog/confirmation-dialog.component.mjs +0 -66
- package/esm2022/lib/components/confirmation-dialog/index.mjs +0 -3
- package/esm2022/lib/components/flag/flag.component.mjs +0 -113
- package/esm2022/lib/components/flag/index.mjs +0 -2
- package/esm2022/lib/components/footer/footer.component.mjs +0 -29
- package/esm2022/lib/components/footer/index.mjs +0 -2
- package/esm2022/lib/components/header/header.component.mjs +0 -85
- package/esm2022/lib/components/header/index.mjs +0 -2
- package/esm2022/lib/components/icon/icon.component.mjs +0 -100
- package/esm2022/lib/components/icon/index.mjs +0 -2
- package/esm2022/lib/components/info-detail/index.mjs +0 -3
- package/esm2022/lib/components/info-detail/info-detail-dialog.component.mjs +0 -136
- package/esm2022/lib/components/info-detail/info-detail.component.mjs +0 -61
- package/esm2022/lib/components/input/index.mjs +0 -2
- package/esm2022/lib/components/input/input.component.mjs +0 -333
- package/esm2022/lib/components/input-currency/index.mjs +0 -2
- package/esm2022/lib/components/input-currency/input-currency.component.mjs +0 -134
- package/esm2022/lib/components/input-date/index.mjs +0 -2
- package/esm2022/lib/components/input-date/input-date.component.mjs +0 -349
- package/esm2022/lib/components/input-date-range/index.mjs +0 -2
- package/esm2022/lib/components/input-date-range/input-date-range.component.mjs +0 -165
- package/esm2022/lib/components/input-time/index.mjs +0 -2
- package/esm2022/lib/components/input-time/input-time.component.mjs +0 -184
- package/esm2022/lib/components/loading-overlay/index.mjs +0 -2
- package/esm2022/lib/components/loading-overlay/loading-overlay.component.mjs +0 -29
- package/esm2022/lib/components/nav/index.mjs +0 -2
- package/esm2022/lib/components/nav/nav.component.mjs +0 -363
- package/esm2022/lib/components/profile-menu/index.mjs +0 -2
- package/esm2022/lib/components/profile-menu/profile-menu.component.mjs +0 -79
- package/esm2022/lib/components/progress-bar/index.mjs +0 -2
- package/esm2022/lib/components/progress-bar/progress-bar.component.mjs +0 -59
- package/esm2022/lib/components/progress-bar-multiple/index.mjs +0 -2
- package/esm2022/lib/components/progress-bar-multiple/progress-bar-multiple.component.mjs +0 -69
- package/esm2022/lib/components/quantity-items/index.mjs +0 -2
- package/esm2022/lib/components/quantity-items/quantity-items.component.mjs +0 -143
- package/esm2022/lib/components/radio-group-entity/index.mjs +0 -2
- package/esm2022/lib/components/radio-group-entity/radio-group-entity.component.mjs +0 -97
- package/esm2022/lib/components/radio-group-enum/index.mjs +0 -2
- package/esm2022/lib/components/radio-group-enum/radio-group-enum.component.mjs +0 -107
- package/esm2022/lib/components/select-entity/index.mjs +0 -2
- package/esm2022/lib/components/select-entity/select-entity.component.mjs +0 -250
- package/esm2022/lib/components/select-enum/index.mjs +0 -2
- package/esm2022/lib/components/select-enum/select-enum.component.mjs +0 -153
- package/esm2022/lib/components/slide-toggle/index.mjs +0 -2
- package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +0 -105
- package/esm2022/lib/components/table/index.mjs +0 -2
- package/esm2022/lib/components/table/table.component.mjs +0 -788
- package/esm2022/lib/components/textarea/index.mjs +0 -2
- package/esm2022/lib/components/textarea/textarea.component.mjs +0 -156
- package/esm2022/lib/components/title/index.mjs +0 -2
- package/esm2022/lib/components/title/title.component.mjs +0 -27
- package/esm2022/lib/directives/click-catcher.directive.mjs +0 -20
- package/esm2022/lib/directives/date-mask.directive.mjs +0 -58
- package/esm2022/lib/directives/dynamic-tab.directive.mjs +0 -18
- package/esm2022/lib/directives/for.directive.mjs +0 -35
- package/esm2022/lib/directives/index.mjs +0 -12
- package/esm2022/lib/directives/lower-case.directive.mjs +0 -48
- package/esm2022/lib/directives/phone-mask-brazil.directive.mjs +0 -64
- package/esm2022/lib/directives/phone-mask-spain.directive.mjs +0 -66
- package/esm2022/lib/directives/red.directive.mjs +0 -21
- package/esm2022/lib/directives/space-drop.directive.mjs +0 -48
- package/esm2022/lib/directives/table-cell.directive.mjs +0 -22
- package/esm2022/lib/directives/upper-case.directive.mjs +0 -48
- package/esm2022/lib/layout/ptech-col.directive.mjs +0 -162
- package/esm2022/lib/layout/ptech-grid.directive.mjs +0 -125
- package/esm2022/lib/mock/fake-data.service.mjs +0 -69
- package/esm2022/lib/mock/index.mjs +0 -2
- package/esm2022/lib/modules/core.material.module.mjs +0 -166
- package/esm2022/lib/modules/directives.module.mjs +0 -79
- package/esm2022/lib/modules/pipes.module.mjs +0 -64
- package/esm2022/lib/modules/pumpkin-tech.module.mjs +0 -240
- package/esm2022/lib/modules/shared/portuguese.matpaginatorintl.mjs +0 -28
- package/esm2022/lib/pipes/currency-brl.pipe.mjs +0 -27
- package/esm2022/lib/pipes/date-ago.pipe.mjs +0 -59
- package/esm2022/lib/pipes/get-first-string-before-space.pipe.mjs +0 -21
- package/esm2022/lib/pipes/index.mjs +0 -12
- package/esm2022/lib/pipes/is-longer-than.pipe.mjs +0 -55
- package/esm2022/lib/pipes/line-break-after-period.pipe.mjs +0 -20
- package/esm2022/lib/pipes/line-break-after.pipe.mjs +0 -29
- package/esm2022/lib/pipes/memory-format.pipe.mjs +0 -35
- package/esm2022/lib/pipes/phone-brazil.pipe.mjs +0 -43
- package/esm2022/lib/pipes/phone-spain.pipe.mjs +0 -37
- package/esm2022/lib/pipes/time.durantion.pipe.mjs +0 -34
- package/esm2022/lib/pipes/uptime-format.pipe.mjs +0 -36
- package/esm2022/lib/services/breadcrumb.service.mjs +0 -51
- package/esm2022/lib/services/breadcrumb.tokens.mjs +0 -10
- package/esm2022/lib/services/currency-preference.service.mjs +0 -98
- package/esm2022/lib/services/dialog.service.mjs +0 -89
- package/esm2022/lib/services/index.mjs +0 -10
- package/esm2022/lib/services/loading.service.mjs +0 -27
- package/esm2022/lib/services/message-token.mjs +0 -16
- package/esm2022/lib/services/module.change.service.mjs +0 -19
- package/esm2022/lib/services/nav.service.mjs +0 -31
- package/esm2022/lib/services/snackbar-message.service.mjs +0 -59
- package/esm2022/lib/utils/array.util.mjs +0 -19
- package/esm2022/lib/utils/currency.util.mjs +0 -18
- package/esm2022/lib/utils/date.util.mjs +0 -80
- package/esm2022/lib/utils/document.util.mjs +0 -92
- package/esm2022/lib/utils/index.mjs +0 -9
- package/esm2022/lib/utils/number.util.mjs +0 -19
- package/esm2022/lib/utils/object.util.mjs +0 -28
- package/esm2022/lib/utils/string.util.mjs +0 -87
- package/esm2022/lib/utils/uuid.util.mjs +0 -18
- package/esm2022/public-api.mjs +0 -53
- package/esm2022/pumpkin-tech-pumpkin-tech-ng.mjs +0 -5
- package/lib/base/base-field.d.ts +0 -44
- package/lib/components/action-dialog/action-dialog-config.d.ts +0 -15
- package/lib/components/action-dialog/action-dialog.component.d.ts +0 -17
- package/lib/components/action-dialog/index.d.ts +0 -2
- package/lib/components/action-result-dialog/action-result-dialog-data.d.ts +0 -6
- package/lib/components/action-result-dialog/action-result-dialog.component.d.ts +0 -21
- package/lib/components/action-result-dialog/index.d.ts +0 -2
- package/lib/components/action-row/action-row.component.d.ts +0 -5
- package/lib/components/action-row/index.d.ts +0 -1
- package/lib/components/alert/alert-data.d.ts +0 -9
- package/lib/components/alert/alert.component.d.ts +0 -13
- package/lib/components/alert/index.d.ts +0 -2
- package/lib/components/badge/badge-stack.component.d.ts +0 -36
- package/lib/components/badge/badge.component.d.ts +0 -61
- package/lib/components/badge/index.d.ts +0 -2
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +0 -11
- package/lib/components/breadcrumb/index.d.ts +0 -1
- package/lib/components/button/button.component.d.ts +0 -52
- package/lib/components/button/index.d.ts +0 -1
- package/lib/components/check-box/check-box.component.d.ts +0 -35
- package/lib/components/check-box/index.d.ts +0 -1
- package/lib/components/confirmation-dialog/confirmation-dialog-data.d.ts +0 -7
- package/lib/components/confirmation-dialog/confirmation-dialog.component.d.ts +0 -12
- package/lib/components/confirmation-dialog/index.d.ts +0 -2
- package/lib/components/flag/flag.component.d.ts +0 -35
- package/lib/components/flag/index.d.ts +0 -1
- package/lib/components/footer/footer.component.d.ts +0 -6
- package/lib/components/footer/index.d.ts +0 -1
- package/lib/components/header/header.component.d.ts +0 -14
- package/lib/components/header/index.d.ts +0 -1
- package/lib/components/icon/icon.component.d.ts +0 -27
- package/lib/components/icon/index.d.ts +0 -1
- package/lib/components/info-detail/index.d.ts +0 -2
- package/lib/components/info-detail/info-detail-dialog.component.d.ts +0 -22
- package/lib/components/info-detail/info-detail.component.d.ts +0 -13
- package/lib/components/input/index.d.ts +0 -1
- package/lib/components/input/input.component.d.ts +0 -42
- package/lib/components/input-currency/index.d.ts +0 -1
- package/lib/components/input-currency/input-currency.component.d.ts +0 -24
- package/lib/components/input-date/index.d.ts +0 -1
- package/lib/components/input-date/input-date.component.d.ts +0 -55
- package/lib/components/input-date-range/index.d.ts +0 -1
- package/lib/components/input-date-range/input-date-range.component.d.ts +0 -35
- package/lib/components/input-time/index.d.ts +0 -1
- package/lib/components/input-time/input-time.component.d.ts +0 -31
- package/lib/components/loading-overlay/index.d.ts +0 -1
- package/lib/components/loading-overlay/loading-overlay.component.d.ts +0 -10
- package/lib/components/nav/index.d.ts +0 -1
- package/lib/components/nav/nav.component.d.ts +0 -69
- package/lib/components/profile-menu/index.d.ts +0 -1
- package/lib/components/profile-menu/profile-menu.component.d.ts +0 -14
- package/lib/components/progress-bar/index.d.ts +0 -1
- package/lib/components/progress-bar/progress-bar.component.d.ts +0 -12
- package/lib/components/progress-bar-multiple/index.d.ts +0 -1
- package/lib/components/progress-bar-multiple/progress-bar-multiple.component.d.ts +0 -19
- package/lib/components/quantity-items/index.d.ts +0 -1
- package/lib/components/quantity-items/quantity-items.component.d.ts +0 -27
- package/lib/components/radio-group-entity/index.d.ts +0 -1
- package/lib/components/radio-group-entity/radio-group-entity.component.d.ts +0 -21
- package/lib/components/radio-group-enum/index.d.ts +0 -1
- package/lib/components/radio-group-enum/radio-group-enum.component.d.ts +0 -33
- package/lib/components/select-entity/index.d.ts +0 -1
- package/lib/components/select-entity/select-entity.component.d.ts +0 -44
- package/lib/components/select-enum/index.d.ts +0 -1
- package/lib/components/select-enum/select-enum.component.d.ts +0 -29
- package/lib/components/slide-toggle/index.d.ts +0 -1
- package/lib/components/slide-toggle/slide-toggle.component.d.ts +0 -35
- package/lib/components/table/index.d.ts +0 -1
- package/lib/components/table/table.component.d.ts +0 -109
- package/lib/components/textarea/index.d.ts +0 -1
- package/lib/components/textarea/textarea.component.d.ts +0 -29
- package/lib/components/title/index.d.ts +0 -1
- package/lib/components/title/title.component.d.ts +0 -11
- package/lib/directives/click-catcher.directive.d.ts +0 -6
- package/lib/directives/date-mask.directive.d.ts +0 -8
- package/lib/directives/dynamic-tab.directive.d.ts +0 -8
- package/lib/directives/for.directive.d.ts +0 -12
- package/lib/directives/index.d.ts +0 -11
- package/lib/directives/lower-case.directive.d.ts +0 -12
- package/lib/directives/phone-mask-brazil.directive.d.ts +0 -11
- package/lib/directives/phone-mask-spain.directive.d.ts +0 -11
- package/lib/directives/red.directive.d.ts +0 -9
- package/lib/directives/space-drop.directive.d.ts +0 -12
- package/lib/directives/table-cell.directive.d.ts +0 -9
- package/lib/directives/upper-case.directive.d.ts +0 -12
- package/lib/layout/ptech-col.directive.d.ts +0 -34
- package/lib/layout/ptech-grid.directive.d.ts +0 -32
- package/lib/mock/fake-data.service.d.ts +0 -34
- package/lib/mock/index.d.ts +0 -1
- package/lib/modules/core.material.module.d.ts +0 -43
- package/lib/modules/directives.module.d.ts +0 -19
- package/lib/modules/pipes.module.d.ts +0 -18
- package/lib/modules/pumpkin-tech.module.d.ts +0 -41
- package/lib/modules/shared/portuguese.matpaginatorintl.d.ts +0 -12
- package/lib/pipes/currency-brl.pipe.d.ts +0 -8
- package/lib/pipes/date-ago.pipe.d.ts +0 -8
- package/lib/pipes/get-first-string-before-space.pipe.d.ts +0 -7
- package/lib/pipes/index.d.ts +0 -11
- package/lib/pipes/is-longer-than.pipe.d.ts +0 -9
- package/lib/pipes/line-break-after-period.pipe.d.ts +0 -7
- package/lib/pipes/line-break-after.pipe.d.ts +0 -7
- package/lib/pipes/memory-format.pipe.d.ts +0 -7
- package/lib/pipes/phone-brazil.pipe.d.ts +0 -7
- package/lib/pipes/phone-spain.pipe.d.ts +0 -7
- package/lib/pipes/time.durantion.pipe.d.ts +0 -7
- package/lib/pipes/uptime-format.pipe.d.ts +0 -7
- package/lib/services/breadcrumb.service.d.ts +0 -14
- package/lib/services/breadcrumb.tokens.d.ts +0 -9
- package/lib/services/currency-preference.service.d.ts +0 -24
- package/lib/services/dialog.service.d.ts +0 -41
- package/lib/services/index.d.ts +0 -9
- package/lib/services/loading.service.d.ts +0 -9
- package/lib/services/message-token.d.ts +0 -9
- package/lib/services/module.change.service.d.ts +0 -8
- package/lib/services/nav.service.d.ts +0 -11
- package/lib/services/snackbar-message.service.d.ts +0 -13
- package/lib/utils/array.util.d.ts +0 -9
- package/lib/utils/currency.util.d.ts +0 -8
- package/lib/utils/date.util.d.ts +0 -18
- package/lib/utils/document.util.d.ts +0 -4
- package/lib/utils/index.d.ts +0 -8
- package/lib/utils/number.util.d.ts +0 -5
- package/lib/utils/object.util.d.ts +0 -9
- package/lib/utils/string.util.d.ts +0 -27
- package/lib/utils/uuid.util.d.ts +0 -5
- package/public-api.d.ts +0 -47
package/index.d.ts
CHANGED
|
@@ -1,5 +1,1587 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnDestroy, ElementRef, NgZone, TemplateRef, EventEmitter, OnChanges, SimpleChanges, ChangeDetectorRef, InjectionToken, OnInit, AfterContentInit, QueryList, Renderer2, ViewContainerRef, PipeTransform } from '@angular/core';
|
|
3
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
4
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
5
|
+
import * as i2 from '@angular/forms';
|
|
6
|
+
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
7
|
+
import * as i9 from '@angular/material/form-field';
|
|
8
|
+
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
9
|
+
import { ThemePalette } from '@angular/material/core';
|
|
10
|
+
import * as rxjs from 'rxjs';
|
|
11
|
+
import { Observable } from 'rxjs';
|
|
12
|
+
import * as i4 from '@angular/material/sidenav';
|
|
13
|
+
import { MatDrawerMode } from '@angular/material/sidenav';
|
|
14
|
+
import * as i22 from '@angular/material/dialog';
|
|
15
|
+
import { MatDialogRef, MatDialog, MatDialogConfig } from '@angular/material/dialog';
|
|
16
|
+
import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
17
|
+
import * as i7 from '@angular/material/snack-bar';
|
|
18
|
+
import { MatSnackBarRef, MatSnackBar } from '@angular/material/snack-bar';
|
|
19
|
+
import * as i19 from '@angular/material/datepicker';
|
|
20
|
+
import { MatDatepickerInputEvent, MatDatepicker } from '@angular/material/datepicker';
|
|
21
|
+
import { NgxCurrencyConfig } from 'ngx-currency';
|
|
22
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
23
|
+
import * as i1 from '@angular/common';
|
|
24
|
+
import * as i3 from '@angular/material/toolbar';
|
|
25
|
+
import * as i5 from '@angular/material/list';
|
|
26
|
+
import * as i6 from '@angular/material/button';
|
|
27
|
+
import * as i8 from '@angular/material/card';
|
|
28
|
+
import * as i10 from '@angular/material/input';
|
|
29
|
+
import * as i11 from '@angular/material/select';
|
|
30
|
+
import * as i12 from '@angular/material/table';
|
|
31
|
+
import * as i13 from '@angular/material/paginator';
|
|
32
|
+
import * as i14 from '@angular/material/sort';
|
|
33
|
+
import * as i15 from '@angular/material/icon';
|
|
34
|
+
import * as i16 from '@angular/material/divider';
|
|
35
|
+
import * as i17 from '@angular/material/tooltip';
|
|
36
|
+
import * as i18 from '@angular/material/menu';
|
|
37
|
+
import * as i20 from '@angular/material/progress-bar';
|
|
38
|
+
import * as i21 from '@angular/material/slide-toggle';
|
|
39
|
+
import * as i23 from '@angular/material/radio';
|
|
40
|
+
import * as i24 from '@angular/material/checkbox';
|
|
41
|
+
import * as i25 from '@angular/material/progress-spinner';
|
|
42
|
+
import { Router } from '@angular/router';
|
|
43
|
+
|
|
44
|
+
declare class PtechGridDirective implements OnDestroy {
|
|
45
|
+
private bp;
|
|
46
|
+
private destroy$;
|
|
47
|
+
private _cols;
|
|
48
|
+
set ptechCols(v: number | string | null | undefined);
|
|
49
|
+
ptechColsXs?: number | string;
|
|
50
|
+
ptechColsSm?: number | string;
|
|
51
|
+
ptechColsMd?: number | string;
|
|
52
|
+
ptechColsLg?: number | string;
|
|
53
|
+
ptechColsXl?: number | string;
|
|
54
|
+
private _gapPx;
|
|
55
|
+
set ptechGap(v: number | string | null | undefined);
|
|
56
|
+
get gapCss(): string;
|
|
57
|
+
static ngAcceptInputType_ptechVertical: BooleanInput;
|
|
58
|
+
private _vertical;
|
|
59
|
+
set ptechVertical(v: any);
|
|
60
|
+
display: string;
|
|
61
|
+
columns: string;
|
|
62
|
+
private activeBp;
|
|
63
|
+
constructor(bp: BreakpointObserver);
|
|
64
|
+
ngOnDestroy(): void;
|
|
65
|
+
private pickActive;
|
|
66
|
+
private updateCols;
|
|
67
|
+
private resolveColsForBp;
|
|
68
|
+
private asNum;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PtechGridDirective, never>;
|
|
70
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PtechGridDirective, "[ptechGrid]", never, { "ptechCols": { "alias": "ptechCols"; "required": false; }; "ptechColsXs": { "alias": "ptechColsXs"; "required": false; }; "ptechColsSm": { "alias": "ptechColsSm"; "required": false; }; "ptechColsMd": { "alias": "ptechColsMd"; "required": false; }; "ptechColsLg": { "alias": "ptechColsLg"; "required": false; }; "ptechColsXl": { "alias": "ptechColsXl"; "required": false; }; "ptechGap": { "alias": "ptechGap"; "required": false; }; "ptechVertical": { "alias": "ptechVertical"; "required": false; }; }, {}, never, never, true, never>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare class PtechColDirective implements OnDestroy {
|
|
74
|
+
private el;
|
|
75
|
+
private ngZone;
|
|
76
|
+
private bp;
|
|
77
|
+
private destroy$;
|
|
78
|
+
private ro?;
|
|
79
|
+
private roScheduled;
|
|
80
|
+
private lastSpan;
|
|
81
|
+
/** Controla de onde vêm os breakpoints (viewport ou container). */
|
|
82
|
+
ptechColMode: 'viewport' | 'container' | 'auto';
|
|
83
|
+
private _col;
|
|
84
|
+
set ptechCol(v: number | string | null | undefined);
|
|
85
|
+
ptechColXs?: number | string;
|
|
86
|
+
ptechColSm?: number | string;
|
|
87
|
+
ptechColMd?: number | string;
|
|
88
|
+
ptechColLg?: number | string;
|
|
89
|
+
ptechColXl?: number | string;
|
|
90
|
+
private activeBp;
|
|
91
|
+
private activeSource;
|
|
92
|
+
gridColumn: string;
|
|
93
|
+
minWidth: string;
|
|
94
|
+
constructor(el: ElementRef<HTMLElement>, ngZone: NgZone, bp: BreakpointObserver);
|
|
95
|
+
ngOnDestroy(): void;
|
|
96
|
+
private findGridParent;
|
|
97
|
+
private pickActive;
|
|
98
|
+
private updateSpan;
|
|
99
|
+
private resolveColForBp;
|
|
100
|
+
private asNum;
|
|
101
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PtechColDirective, never>;
|
|
102
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PtechColDirective, "[ptechCol]", never, { "ptechColMode": { "alias": "ptechColMode"; "required": false; }; "ptechCol": { "alias": "ptechCol"; "required": false; }; "ptechColXs": { "alias": "ptechColXs"; "required": false; }; "ptechColSm": { "alias": "ptechColSm"; "required": false; }; "ptechColMd": { "alias": "ptechColMd"; "required": false; }; "ptechColLg": { "alias": "ptechColLg"; "required": false; }; "ptechColXl": { "alias": "ptechColXl"; "required": false; }; }, {}, never, never, true, never>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
declare abstract class BaseField {
|
|
106
|
+
protected el: ElementRef<HTMLElement>;
|
|
107
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
108
|
+
static ngAcceptInputType_required: BooleanInput;
|
|
109
|
+
static ngAcceptInputType_disabled: BooleanInput;
|
|
110
|
+
static ngAcceptInputType_readonly: BooleanInput;
|
|
111
|
+
static ngAcceptInputType_loading: BooleanInput;
|
|
112
|
+
static ngAcceptInputType_fullWidth: BooleanInput;
|
|
113
|
+
private _required;
|
|
114
|
+
get required(): boolean;
|
|
115
|
+
set required(v: any);
|
|
116
|
+
private _disabled;
|
|
117
|
+
get disabled(): boolean;
|
|
118
|
+
set disabled(v: any);
|
|
119
|
+
private _readonly;
|
|
120
|
+
get readonly(): boolean;
|
|
121
|
+
set readonly(v: any);
|
|
122
|
+
private _loading;
|
|
123
|
+
get loading(): boolean;
|
|
124
|
+
set loading(v: any);
|
|
125
|
+
private _fullWidth;
|
|
126
|
+
get fullWidth(): boolean;
|
|
127
|
+
set fullWidth(v: any);
|
|
128
|
+
label: string;
|
|
129
|
+
placeholder: string;
|
|
130
|
+
name?: string;
|
|
131
|
+
/** Acessibilidade */
|
|
132
|
+
ariaLabel?: string;
|
|
133
|
+
ariaLabelledby?: string;
|
|
134
|
+
/** Aparência padrão para campos Material */
|
|
135
|
+
appearance: MatFormFieldAppearance;
|
|
136
|
+
private _col;
|
|
137
|
+
set col(v: number | string | null | undefined);
|
|
138
|
+
/** Se a diretiva [ptechCol*] estiver presente, ela domina o layout. */
|
|
139
|
+
protected hasPtechColAttrs(): boolean;
|
|
140
|
+
get gridColumn(): string | null;
|
|
141
|
+
hostDisplay: string;
|
|
142
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseField, never>;
|
|
143
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseField, never, never, { "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "name": { "alias": "name"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "col": { "alias": "col"; "required": false; }; }, {}, never, never, true, never>;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare class InputComponent extends BaseField implements ControlValueAccessor {
|
|
147
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
148
|
+
_elementRef?: ElementRef<HTMLInputElement>;
|
|
149
|
+
suffixRef?: TemplateRef<any>;
|
|
150
|
+
buttonClick: EventEmitter<void>;
|
|
151
|
+
maxlength: string | number;
|
|
152
|
+
min: any;
|
|
153
|
+
max: any;
|
|
154
|
+
type: string;
|
|
155
|
+
/** Ícone */
|
|
156
|
+
icon: string;
|
|
157
|
+
iconColor: string;
|
|
158
|
+
iconWidth: string;
|
|
159
|
+
iconHeight: string;
|
|
160
|
+
iconSize: string;
|
|
161
|
+
iconPosition: 'left' | 'right';
|
|
162
|
+
forceFixedIcon: boolean;
|
|
163
|
+
/** Tooltip */
|
|
164
|
+
tooltip: string;
|
|
165
|
+
/** Extras */
|
|
166
|
+
autocomplete: string;
|
|
167
|
+
inputmode?: string;
|
|
168
|
+
pattern?: string;
|
|
169
|
+
private _val;
|
|
170
|
+
get value(): any;
|
|
171
|
+
set value(val: any);
|
|
172
|
+
onChange: any;
|
|
173
|
+
onTouch: any;
|
|
174
|
+
writeValue(value: any): void;
|
|
175
|
+
registerOnChange(fn: any): void;
|
|
176
|
+
registerOnTouched(fn: any): void;
|
|
177
|
+
setDisabledState(isDisabled: boolean): void;
|
|
178
|
+
onButtonClick(): void;
|
|
179
|
+
isThemeColor(c: string | null | undefined, theme: 'primary' | 'accent' | 'warn'): boolean;
|
|
180
|
+
get customIconColor(): string | null;
|
|
181
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
182
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "ptech-input", never, { "maxlength": { "alias": "maxlength"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconWidth": { "alias": "iconWidth"; "required": false; }; "iconHeight": { "alias": "iconHeight"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "forceFixedIcon": { "alias": "forceFixedIcon"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "inputmode": { "alias": "inputmode"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; }, { "buttonClick": "buttonClick"; }, ["suffixRef"], ["[matPrefix]", "[matSuffix]", "mat-hint, [mat-hint]", "mat-error, [mat-error]"], true, never>;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
declare class TextareaComponent extends BaseField implements ControlValueAccessor {
|
|
186
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
187
|
+
taRef?: ElementRef<HTMLTextAreaElement>;
|
|
188
|
+
maxlength: number | string;
|
|
189
|
+
rows: number;
|
|
190
|
+
appearance: MatFormFieldAppearance;
|
|
191
|
+
tooltip: string;
|
|
192
|
+
autocomplete: string;
|
|
193
|
+
showCounter: boolean;
|
|
194
|
+
resize: 'none' | 'vertical' | 'horizontal' | 'both';
|
|
195
|
+
allowHorizontalResize: boolean;
|
|
196
|
+
private _val;
|
|
197
|
+
get value(): any;
|
|
198
|
+
set value(v: any);
|
|
199
|
+
onChange: any;
|
|
200
|
+
onTouch: any;
|
|
201
|
+
writeValue(value: any): void;
|
|
202
|
+
registerOnChange(fn: any): void;
|
|
203
|
+
registerOnTouched(fn: any): void;
|
|
204
|
+
setDisabledState(isDisabled: boolean): void;
|
|
205
|
+
get effectiveResize(): 'none' | 'vertical' | 'horizontal' | 'both';
|
|
206
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
|
|
207
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "ptech-textarea", never, { "maxlength": { "alias": "maxlength"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "showCounter": { "alias": "showCounter"; "required": false; }; "resize": { "alias": "resize"; "required": false; }; "allowHorizontalResize": { "alias": "allowHorizontalResize"; "required": false; }; }, {}, never, ["mat-hint, [mat-hint], mat-error, [mat-error]"], true, never>;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
type ButtonVariant = 'basic' | 'raised' | 'stroked' | 'flat' | 'icon' | 'fab' | 'mini-fab' | 'extended' | 'link';
|
|
211
|
+
type BtnSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
212
|
+
declare class ButtonComponent extends BaseField {
|
|
213
|
+
/** Variante do botão */
|
|
214
|
+
type: ButtonVariant;
|
|
215
|
+
/** Tamanho: sm | md | lg */
|
|
216
|
+
size: BtnSize;
|
|
217
|
+
/** Tooltip */
|
|
218
|
+
tooltip: string;
|
|
219
|
+
/** Ícone do Material (nome) */
|
|
220
|
+
icon: string;
|
|
221
|
+
/** Cor do ícone (hex/rgb/etc.) */
|
|
222
|
+
iconColor: string;
|
|
223
|
+
/** Tamanho do ícone: se quiser forçar um valor específico */
|
|
224
|
+
iconWidth: string;
|
|
225
|
+
iconHeight: string;
|
|
226
|
+
/** Cor do texto (aplica quando usamos bg custom) */
|
|
227
|
+
textColor: string;
|
|
228
|
+
/** Navegação para variant 'link' */
|
|
229
|
+
link: string;
|
|
230
|
+
target: string;
|
|
231
|
+
/** Estética */
|
|
232
|
+
shape: 'default' | 'pill';
|
|
233
|
+
/** Cor do botão: ThemePalette (primary/accent/warn) ou cor CSS */
|
|
234
|
+
color: ThemePalette | string;
|
|
235
|
+
buttonClick: EventEmitter<MouseEvent>;
|
|
236
|
+
onLinkClick(event: MouseEvent): void;
|
|
237
|
+
private sizes;
|
|
238
|
+
get sizeCfg(): {
|
|
239
|
+
h: number;
|
|
240
|
+
pad: string;
|
|
241
|
+
icon: number;
|
|
242
|
+
font: number;
|
|
243
|
+
iconIconOnly: number;
|
|
244
|
+
iconFab: number;
|
|
245
|
+
iconMiniFab: number;
|
|
246
|
+
};
|
|
247
|
+
get isThemeColor(): boolean;
|
|
248
|
+
get themeColor(): ThemePalette | undefined;
|
|
249
|
+
get customBackground(): string | null;
|
|
250
|
+
/** Se quiser forçar tamanho de ícone custom, ele sobrepõe o token */
|
|
251
|
+
get iconStyle(): Record<string, string | null>;
|
|
252
|
+
get spinnerDiameter(): number;
|
|
253
|
+
onInnerClick(event: MouseEvent): void;
|
|
254
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
255
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "ptech-button", never, { "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconWidth": { "alias": "iconWidth"; "required": false; }; "iconHeight": { "alias": "iconHeight"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "link": { "alias": "link"; "required": false; }; "target": { "alias": "target"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, never, true, never>;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
type BadgeVariant = 'filled' | 'outline' | 'soft';
|
|
259
|
+
type BadgeSize = 'sm' | 'md' | 'lg';
|
|
260
|
+
type BadgePreset = 'success' | 'warning' | 'error' | 'info' | 'neutral' | 'purple' | 'primary' | 'accent' | 'warn';
|
|
261
|
+
declare class BadgeComponent {
|
|
262
|
+
/** Texto do badge (ou use <ng-content>) */
|
|
263
|
+
label: string;
|
|
264
|
+
/** mat-icon opcional */
|
|
265
|
+
icon?: string;
|
|
266
|
+
/** Tooltip opcional */
|
|
267
|
+
tooltip?: string;
|
|
268
|
+
/** Acessibilidade */
|
|
269
|
+
ariaLabel?: string;
|
|
270
|
+
static ngAcceptInputType_clickable: BooleanInput;
|
|
271
|
+
static ngAcceptInputType_disabled: BooleanInput;
|
|
272
|
+
static ngAcceptInputType_pill: BooleanInput;
|
|
273
|
+
static ngAcceptInputType_uppercase: BooleanInput;
|
|
274
|
+
private _clickable;
|
|
275
|
+
get clickable(): any;
|
|
276
|
+
set clickable(v: any);
|
|
277
|
+
private _disabled;
|
|
278
|
+
get disabled(): any;
|
|
279
|
+
set disabled(v: any);
|
|
280
|
+
private _pill;
|
|
281
|
+
get pill(): any;
|
|
282
|
+
set pill(v: any);
|
|
283
|
+
private _uppercase;
|
|
284
|
+
get uppercase(): any;
|
|
285
|
+
set uppercase(v: any);
|
|
286
|
+
/** Forma/estilo */
|
|
287
|
+
size: BadgeSize;
|
|
288
|
+
variant: BadgeVariant;
|
|
289
|
+
/** Cor: preset (success, warning, …) ou qualquer CSS color (#hex, rgb, hsl, var(...)) */
|
|
290
|
+
color: BadgePreset | string;
|
|
291
|
+
badgeClick: EventEmitter<MouseEvent>;
|
|
292
|
+
badgeKey: EventEmitter<KeyboardEvent>;
|
|
293
|
+
/** papel ARIA: se clicável, vira “button” */
|
|
294
|
+
get role(): "button" | "status";
|
|
295
|
+
get tab(): 0 | -1;
|
|
296
|
+
private _col;
|
|
297
|
+
set col(v: number | string | null | undefined);
|
|
298
|
+
get gridColumn(): string | null;
|
|
299
|
+
onClick(ev: MouseEvent): void;
|
|
300
|
+
onKey(ev: KeyboardEvent): void;
|
|
301
|
+
get cssVars(): {
|
|
302
|
+
bg: string;
|
|
303
|
+
fg: string;
|
|
304
|
+
bd: string;
|
|
305
|
+
};
|
|
306
|
+
private resolveBaseColor;
|
|
307
|
+
private isCssVar;
|
|
308
|
+
private softFromVar;
|
|
309
|
+
/** Parseia hex/rgb/hsl. Evita DOM/Canvas (SSR-safe). */
|
|
310
|
+
private toRgb;
|
|
311
|
+
private hslToRgb;
|
|
312
|
+
private contrastOn;
|
|
313
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
|
314
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "ptech-badge", never, { "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "clickable": { "alias": "clickable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "pill": { "alias": "pill"; "required": false; }; "uppercase": { "alias": "uppercase"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "color": { "alias": "color"; "required": false; }; "col": { "alias": "col"; "required": false; }; }, { "badgeClick": "badgeClick"; "badgeKey": "badgeKey"; }, never, ["*"], true, never>;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
type Dir = 'row' | 'column';
|
|
318
|
+
type AlignItems = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
319
|
+
type Justify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
320
|
+
declare class BadgeStackComponent {
|
|
321
|
+
/** Direção dos itens (padrão: column) */
|
|
322
|
+
direction: Dir;
|
|
323
|
+
/** Espaçamento entre itens. Aceita número (px) ou string ('1rem', '8px', etc.) */
|
|
324
|
+
gap: number | string;
|
|
325
|
+
/** Quebrar linha quando em row (wrap) */
|
|
326
|
+
static ngAcceptInputType_wrap: BooleanInput;
|
|
327
|
+
private _wrap;
|
|
328
|
+
get wrap(): any;
|
|
329
|
+
set wrap(v: any);
|
|
330
|
+
/** Alinhamento vertical (align-items) */
|
|
331
|
+
align: AlignItems;
|
|
332
|
+
/** Alinhamento horizontal (justify-content) */
|
|
333
|
+
justify: Justify;
|
|
334
|
+
/** A11y opcional */
|
|
335
|
+
ariaLabel?: string;
|
|
336
|
+
private _col;
|
|
337
|
+
set col(v: number | string | null | undefined);
|
|
338
|
+
get gridColumn(): string | null;
|
|
339
|
+
role: string;
|
|
340
|
+
get aria(): string | null;
|
|
341
|
+
disp: string;
|
|
342
|
+
get dir(): Dir;
|
|
343
|
+
get fwrap(): "wrap" | "nowrap";
|
|
344
|
+
get cssGap(): string;
|
|
345
|
+
get ai(): "center" | "flex-end" | "stretch" | "baseline" | "flex-start";
|
|
346
|
+
get jc(): "center" | "flex-end" | "flex-start" | "space-between" | "space-around" | "space-evenly";
|
|
347
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeStackComponent, never>;
|
|
348
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BadgeStackComponent, "ptech-badge-stack", never, { "direction": { "alias": "direction"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "wrap": { "alias": "wrap"; "required": false; }; "align": { "alias": "align"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "col": { "alias": "col"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
type ThemeColor = 'primary' | 'accent' | 'warn';
|
|
352
|
+
declare class IconComponent {
|
|
353
|
+
/** Nome do ícone (ex.: 'home', 'search'…) */
|
|
354
|
+
icon: string;
|
|
355
|
+
/** Pode ser 'primary' | 'accent' | 'warn' ou qualquer cor CSS (#hex, rgb, etc.) */
|
|
356
|
+
color: string;
|
|
357
|
+
/** Tamanho: número (px) ou string CSS (ex.: '1.5rem') */
|
|
358
|
+
size: number | string;
|
|
359
|
+
/** A11y */
|
|
360
|
+
static ngAcceptInputType_ariaHidden: BooleanInput;
|
|
361
|
+
private _ariaHidden;
|
|
362
|
+
get ariaHidden(): boolean;
|
|
363
|
+
set ariaHidden(v: any);
|
|
364
|
+
ariaLabel?: string;
|
|
365
|
+
/** Grid opcional: span de colunas quando usado dentro de CSS Grid */
|
|
366
|
+
private _col;
|
|
367
|
+
set col(v: number | string | null | undefined);
|
|
368
|
+
get gridColumn(): string | null;
|
|
369
|
+
get sizePx(): string;
|
|
370
|
+
isThemeColor(c: string | null | undefined, theme: ThemeColor): boolean;
|
|
371
|
+
get customColor(): string | null;
|
|
372
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
373
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "ptech-icon", never, { "icon": { "alias": "icon"; "required": false; }; "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "ariaHidden": { "alias": "ariaHidden"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "col": { "alias": "col"; "required": false; }; }, {}, never, never, true, never>;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
declare class ActionRowComponent {
|
|
377
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionRowComponent, never>;
|
|
378
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionRowComponent, "ptech-action-row", never, {}, {}, never, ["*"], true, never>;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
declare class QuantityItemsComponent extends BaseField implements ControlValueAccessor {
|
|
382
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
383
|
+
min: number;
|
|
384
|
+
max: number | null;
|
|
385
|
+
step: number;
|
|
386
|
+
/** Compat c/ [(quantity)] */
|
|
387
|
+
get quantity(): number;
|
|
388
|
+
set quantity(v: number);
|
|
389
|
+
quantityChange: EventEmitter<number>;
|
|
390
|
+
current: number;
|
|
391
|
+
private onChange;
|
|
392
|
+
private onTouched;
|
|
393
|
+
writeValue(v: number | null): void;
|
|
394
|
+
registerOnChange(fn: (v: number) => void): void;
|
|
395
|
+
registerOnTouched(fn: () => void): void;
|
|
396
|
+
setDisabledState(isDisabled: boolean): void;
|
|
397
|
+
decrement(): void;
|
|
398
|
+
increment(): void;
|
|
399
|
+
private clamp;
|
|
400
|
+
private setValue;
|
|
401
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuantityItemsComponent, never>;
|
|
402
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuantityItemsComponent, "ptech-quantity-items", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "quantity": { "alias": "quantity"; "required": false; }; }, { "quantityChange": "quantityChange"; }, never, never, true, never>;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
type Entity = Record<string, any>;
|
|
406
|
+
declare class SelectEntityComponent extends BaseField implements ControlValueAccessor, OnChanges {
|
|
407
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
408
|
+
multiple: boolean;
|
|
409
|
+
property: string;
|
|
410
|
+
propertyEnum?: Record<string, any>;
|
|
411
|
+
propertyFn?: (obj: any) => string;
|
|
412
|
+
idProp: string;
|
|
413
|
+
searchPlaceholder: string;
|
|
414
|
+
multipleTriggerMax: number;
|
|
415
|
+
entities: Entity[];
|
|
416
|
+
selectClick: EventEmitter<MouseEvent>;
|
|
417
|
+
selectionChange: EventEmitter<any>;
|
|
418
|
+
loadingChange: EventEmitter<boolean>;
|
|
419
|
+
filteredEntities: Entity[];
|
|
420
|
+
model: any;
|
|
421
|
+
searchText: string;
|
|
422
|
+
private onTouched;
|
|
423
|
+
private onChange;
|
|
424
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
425
|
+
writeValue(value: any): void;
|
|
426
|
+
registerOnChange(fn: any): void;
|
|
427
|
+
registerOnTouched(fn: any): void;
|
|
428
|
+
setDisabledState(isDisabled: boolean): void;
|
|
429
|
+
setValue(v: any): void;
|
|
430
|
+
compareFn: (a: any, b: any) => boolean;
|
|
431
|
+
trackById: (_: number, item: any) => any;
|
|
432
|
+
isArray(v: any): v is any[];
|
|
433
|
+
private filterModel;
|
|
434
|
+
private displayOf;
|
|
435
|
+
getPropertyValue(entity: any): string;
|
|
436
|
+
private getDeep;
|
|
437
|
+
private resolveId;
|
|
438
|
+
displayMultipleTrigger(items: any[]): string;
|
|
439
|
+
onSearch(value: string): void;
|
|
440
|
+
emitClick(event: MouseEvent): void;
|
|
441
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectEntityComponent, never>;
|
|
442
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectEntityComponent, "ptech-select-entity", never, { "multiple": { "alias": "multiple"; "required": false; }; "property": { "alias": "property"; "required": false; }; "propertyEnum": { "alias": "propertyEnum"; "required": false; }; "propertyFn": { "alias": "propertyFn"; "required": false; }; "idProp": { "alias": "idProp"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "multipleTriggerMax": { "alias": "multipleTriggerMax"; "required": false; }; "entities": { "alias": "entities"; "required": false; }; }, { "selectClick": "selectClick"; "selectionChange": "selectionChange"; "loadingChange": "loadingChange"; }, never, never, true, never>;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
interface BreadcrumbRoute {
|
|
446
|
+
description: string;
|
|
447
|
+
route?: string;
|
|
448
|
+
}
|
|
449
|
+
declare class BreadcrumbComponent {
|
|
450
|
+
routes: BreadcrumbRoute[];
|
|
451
|
+
isLast(route: BreadcrumbRoute): boolean;
|
|
452
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
453
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "ptech-breadcrumb", never, { "routes": { "alias": "routes"; "required": false; }; }, {}, never, ["[start-icon]"], true, never>;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
interface HeaderData {
|
|
457
|
+
title: string;
|
|
458
|
+
icon?: string;
|
|
459
|
+
routeUrl?: string;
|
|
460
|
+
imageHeader?: string;
|
|
461
|
+
}
|
|
462
|
+
declare class HeaderComponent {
|
|
463
|
+
data: HeaderData;
|
|
464
|
+
toggleNav: EventEmitter<void>;
|
|
465
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
466
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "ptech-header", never, { "data": { "alias": "data"; "required": false; }; }, { "toggleNav": "toggleNav"; }, never, ["[user-profile]"], true, never>;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
declare class NavService {
|
|
470
|
+
private navVisible;
|
|
471
|
+
get navState$(): rxjs.Observable<boolean>;
|
|
472
|
+
get isNavOpen(): boolean;
|
|
473
|
+
toggleNav(): void;
|
|
474
|
+
open(): void;
|
|
475
|
+
close(): void;
|
|
476
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavService, never>;
|
|
477
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NavService>;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
interface NavLink {
|
|
481
|
+
icon: string;
|
|
482
|
+
name: string;
|
|
483
|
+
path?: string;
|
|
484
|
+
children?: NavLink[];
|
|
485
|
+
}
|
|
486
|
+
interface FooterItem {
|
|
487
|
+
icon: string;
|
|
488
|
+
text: string;
|
|
489
|
+
}
|
|
490
|
+
declare class NavComponent {
|
|
491
|
+
navService: NavService;
|
|
492
|
+
private zone;
|
|
493
|
+
private cdr;
|
|
494
|
+
links: NavLink[];
|
|
495
|
+
currentModuleName: string;
|
|
496
|
+
fixedTopGap: number;
|
|
497
|
+
fixedBottomGap: number;
|
|
498
|
+
footerItems: FooterItem[];
|
|
499
|
+
mode: MatDrawerMode;
|
|
500
|
+
backdropClick: EventEmitter<void>;
|
|
501
|
+
headerClick: EventEmitter<void>;
|
|
502
|
+
navigate: EventEmitter<NavLink>;
|
|
503
|
+
logout: EventEmitter<void>;
|
|
504
|
+
/** Largura da sidenav (para o backdrop não cobrir a nav) */
|
|
505
|
+
sidenavWidth?: number;
|
|
506
|
+
private readonly defaultSidenavWidth;
|
|
507
|
+
/** Liga/desliga escurecimento do conteúdo ao abrir a nav (default: true). */
|
|
508
|
+
useDarkenBackdrop: boolean;
|
|
509
|
+
/** Opacidade do dimmer (0..1) */
|
|
510
|
+
backdropOpacity: number;
|
|
511
|
+
/** z-index do dimmer (deve ficar abaixo do header e acima do conteúdo). */
|
|
512
|
+
backdropZIndex: number;
|
|
513
|
+
/** Topo do dimmer em px; se omitido, usa fixedTopGap (para deixar header livre). */
|
|
514
|
+
backdropTop?: number;
|
|
515
|
+
coverFooter: boolean;
|
|
516
|
+
/** Classe opcional adicional para estilização do dimmer. */
|
|
517
|
+
backdropClass?: string;
|
|
518
|
+
backdropOverlapPx: number;
|
|
519
|
+
snavRef?: ElementRef<HTMLElement>;
|
|
520
|
+
private backdropRight?;
|
|
521
|
+
private backdropBottom?;
|
|
522
|
+
private sub?;
|
|
523
|
+
stack: NavLink[];
|
|
524
|
+
constructor(navService: NavService, zone: NgZone, cdr: ChangeDetectorRef);
|
|
525
|
+
ngAfterViewInit(): void;
|
|
526
|
+
ngOnDestroy(): void;
|
|
527
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
528
|
+
onWinResize(): void;
|
|
529
|
+
onOrientationChange(): void;
|
|
530
|
+
private attachBackdrop;
|
|
531
|
+
private updateBackdropStyles;
|
|
532
|
+
private detachBackdrop;
|
|
533
|
+
private onBackdropClick;
|
|
534
|
+
private resolveTop;
|
|
535
|
+
private resolveLeft;
|
|
536
|
+
private resolveBackdropOverlapPx;
|
|
537
|
+
private get sidenavWidthPx();
|
|
538
|
+
private get sidenavRightPx();
|
|
539
|
+
get overlayTop(): string;
|
|
540
|
+
get overlayBottom(): string;
|
|
541
|
+
get currentLevel(): NavLink[];
|
|
542
|
+
get currentTitle(): string;
|
|
543
|
+
clickItem(item: NavLink, ev: MouseEvent): void;
|
|
544
|
+
onHeaderClick(): void;
|
|
545
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavComponent, never>;
|
|
546
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavComponent, "ptech-nav", never, { "links": { "alias": "links"; "required": false; }; "currentModuleName": { "alias": "currentModuleName"; "required": false; }; "fixedTopGap": { "alias": "fixedTopGap"; "required": false; }; "fixedBottomGap": { "alias": "fixedBottomGap"; "required": false; }; "footerItems": { "alias": "footerItems"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "sidenavWidth": { "alias": "sidenavWidth"; "required": false; }; "useDarkenBackdrop": { "alias": "useDarkenBackdrop"; "required": false; }; "backdropOpacity": { "alias": "backdropOpacity"; "required": false; }; "backdropZIndex": { "alias": "backdropZIndex"; "required": false; }; "backdropTop": { "alias": "backdropTop"; "required": false; }; "coverFooter": { "alias": "coverFooter"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; "backdropOverlapPx": { "alias": "backdropOverlapPx"; "required": false; }; }, { "backdropClick": "backdropClick"; "headerClick": "headerClick"; "navigate": "navigate"; "logout": "logout"; }, never, never, true, never>;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
declare class FooterComponent {
|
|
550
|
+
version: string;
|
|
551
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
|
|
552
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "ptech-footer", never, { "version": { "alias": "version"; "required": false; }; }, {}, never, never, true, never>;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
declare class LoadingService {
|
|
556
|
+
private _isLoading;
|
|
557
|
+
isLoading$: rxjs.Observable<boolean>;
|
|
558
|
+
showLoading(): void;
|
|
559
|
+
hideLoading(): void;
|
|
560
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingService, never>;
|
|
561
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingService>;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
declare class LoadingOverlayComponent {
|
|
565
|
+
private loadingService;
|
|
566
|
+
isLoading: Observable<boolean>;
|
|
567
|
+
constructor(loadingService: LoadingService);
|
|
568
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingOverlayComponent, never>;
|
|
569
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingOverlayComponent, "ptech-loading-overlay", never, {}, {}, never, never, true, never>;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
declare class ProgressBarComponent implements OnChanges {
|
|
573
|
+
progressStart: number;
|
|
574
|
+
progressEnd: number;
|
|
575
|
+
progressPercentage: number;
|
|
576
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
577
|
+
private calculateProgress;
|
|
578
|
+
get dynamicColorPrimary(): string;
|
|
579
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
580
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarComponent, "ptech-progress-bar", never, { "progressStart": { "alias": "progressStart"; "required": false; }; "progressEnd": { "alias": "progressEnd"; "required": false; }; }, {}, never, never, true, never>;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
declare class ProgressBarMultipleComponent implements OnChanges {
|
|
584
|
+
progressStartPrimary: number;
|
|
585
|
+
progressEndPrimary: number;
|
|
586
|
+
labelPrimary: string;
|
|
587
|
+
progressStartSecondary?: number;
|
|
588
|
+
progressEndSecondary?: number;
|
|
589
|
+
labelSecondary?: string;
|
|
590
|
+
progressPercentagePrimary: number;
|
|
591
|
+
progressPercentageSecondary?: number;
|
|
592
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
593
|
+
private calculateProgress;
|
|
594
|
+
private compute;
|
|
595
|
+
get dynamicColorPrimary(): string;
|
|
596
|
+
get dynamicColorSecondary(): string | undefined;
|
|
597
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressBarMultipleComponent, never>;
|
|
598
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressBarMultipleComponent, "ptech-progress-bar-multiple", never, { "progressStartPrimary": { "alias": "progressStartPrimary"; "required": false; }; "progressEndPrimary": { "alias": "progressEndPrimary"; "required": false; }; "labelPrimary": { "alias": "labelPrimary"; "required": false; }; "progressStartSecondary": { "alias": "progressStartSecondary"; "required": false; }; "progressEndSecondary": { "alias": "progressEndSecondary"; "required": false; }; "labelSecondary": { "alias": "labelSecondary"; "required": false; }; }, {}, never, never, true, never>;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
type EnumArray = Array<{
|
|
602
|
+
key: any;
|
|
603
|
+
value: any;
|
|
604
|
+
}>;
|
|
605
|
+
type EnumMap = Record<string, any>;
|
|
606
|
+
declare class RadioGroupEnumComponent extends BaseField implements ControlValueAccessor {
|
|
607
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
608
|
+
/** 'row' (padrão) ou 'column' */
|
|
609
|
+
orientation: 'row' | 'column';
|
|
610
|
+
/** Pode ser: { KEY: 'Rótulo' } ou [{ key, value }] */
|
|
611
|
+
enums: EnumArray | EnumMap;
|
|
612
|
+
valueChange: EventEmitter<any>;
|
|
613
|
+
private _val;
|
|
614
|
+
onChange: (val: any) => void;
|
|
615
|
+
onTouch: () => void;
|
|
616
|
+
get value(): any;
|
|
617
|
+
set value(v: any);
|
|
618
|
+
writeValue(value: any): void;
|
|
619
|
+
registerOnChange(fn: any): void;
|
|
620
|
+
registerOnTouched(fn: any): void;
|
|
621
|
+
setDisabledState(isDisabled: boolean): void;
|
|
622
|
+
get items(): EnumArray;
|
|
623
|
+
trackByKey: (_: number, item: {
|
|
624
|
+
key: any;
|
|
625
|
+
}) => any;
|
|
626
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupEnumComponent, never>;
|
|
627
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupEnumComponent, "ptech-radio-group-enum", never, { "orientation": { "alias": "orientation"; "required": false; }; "enums": { "alias": "enums"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
declare class RadioGroupEntityComponent extends BaseField implements ControlValueAccessor, OnChanges {
|
|
631
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
632
|
+
property: string;
|
|
633
|
+
idProp: string;
|
|
634
|
+
entities: any[];
|
|
635
|
+
private _value;
|
|
636
|
+
get value(): any;
|
|
637
|
+
set value(val: any);
|
|
638
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
639
|
+
getPropertyValue(entity: any): string;
|
|
640
|
+
onChange: (value: any) => void;
|
|
641
|
+
onTouch: () => void;
|
|
642
|
+
writeValue(value: any): void;
|
|
643
|
+
registerOnChange(fn: any): void;
|
|
644
|
+
registerOnTouched(fn: any): void;
|
|
645
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
646
|
+
private syncModelReference;
|
|
647
|
+
private resolveId;
|
|
648
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupEntityComponent, never>;
|
|
649
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupEntityComponent, "ptech-radio-group-entity", never, { "property": { "alias": "property"; "required": false; }; "idProp": { "alias": "idProp"; "required": false; }; "entities": { "alias": "entities"; "required": false; }; }, {}, never, never, true, never>;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
declare class SelectEnumComponent extends BaseField implements ControlValueAccessor {
|
|
653
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
654
|
+
multiple: boolean;
|
|
655
|
+
enum: Record<string, any>;
|
|
656
|
+
disabledOptions: string[];
|
|
657
|
+
sort: (a: any, b: any) => number;
|
|
658
|
+
labelMap: Record<string, string>;
|
|
659
|
+
selectionChange: EventEmitter<any>;
|
|
660
|
+
enumList: Array<{
|
|
661
|
+
key: string;
|
|
662
|
+
value: any;
|
|
663
|
+
}>;
|
|
664
|
+
private _val;
|
|
665
|
+
get value(): any;
|
|
666
|
+
set value(v: any);
|
|
667
|
+
ngOnInit(): void;
|
|
668
|
+
onSelectionChange(entity: any): void;
|
|
669
|
+
private onChange;
|
|
670
|
+
private onTouch;
|
|
671
|
+
writeValue(value: any): void;
|
|
672
|
+
registerOnChange(fn: any): void;
|
|
673
|
+
registerOnTouched(fn: any): void;
|
|
674
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectEnumComponent, never>;
|
|
675
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectEnumComponent, "ptech-select-enum", never, { "multiple": { "alias": "multiple"; "required": false; }; "enum": { "alias": "enum"; "required": false; }; "disabledOptions": { "alias": "disabledOptions"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "labelMap": { "alias": "labelMap"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
declare class SlideToggleComponent extends BaseField implements ControlValueAccessor {
|
|
679
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
680
|
+
/** Aparência padronizada (mesmo que mat-slide-toggle não use diretamente) */
|
|
681
|
+
appearance: MatFormFieldAppearance;
|
|
682
|
+
/** 'primary' | 'accent' | 'warn' */
|
|
683
|
+
color: ThemePalette;
|
|
684
|
+
/** Posição do rótulo */
|
|
685
|
+
labelPosition: 'before' | 'after';
|
|
686
|
+
/** Ripple */
|
|
687
|
+
static ngAcceptInputType_disableRipple: BooleanInput;
|
|
688
|
+
private _disableRipple;
|
|
689
|
+
get disableRipple(): boolean;
|
|
690
|
+
set disableRipple(v: any);
|
|
691
|
+
/** Emissão adicional */
|
|
692
|
+
change: EventEmitter<boolean>;
|
|
693
|
+
private _value;
|
|
694
|
+
get value(): boolean;
|
|
695
|
+
set value(v: boolean);
|
|
696
|
+
onChange: (v: any) => void;
|
|
697
|
+
onTouch: () => void;
|
|
698
|
+
writeValue(v: any): void;
|
|
699
|
+
registerOnChange(fn: any): void;
|
|
700
|
+
registerOnTouched(fn: any): void;
|
|
701
|
+
setDisabledState(isDisabled: boolean): void;
|
|
702
|
+
onMatChange(checked: boolean): void;
|
|
703
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlideToggleComponent, never>;
|
|
704
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlideToggleComponent, "ptech-slide-toggle", never, { "appearance": { "alias": "appearance"; "required": false; }; "color": { "alias": "color"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
declare class TitleComponent implements OnChanges {
|
|
708
|
+
private cd;
|
|
709
|
+
title: string;
|
|
710
|
+
subtitle: string;
|
|
711
|
+
constructor(cd: ChangeDetectorRef);
|
|
712
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
713
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TitleComponent, never>;
|
|
714
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TitleComponent, "ptech-title", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
interface ConfirmationDTO {
|
|
718
|
+
title: string;
|
|
719
|
+
message: string;
|
|
720
|
+
accept: () => void;
|
|
721
|
+
cancelText?: string;
|
|
722
|
+
confirmText?: string;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
declare class ConfirmationDialogComponent {
|
|
726
|
+
dialogRef: MatDialogRef<ConfirmationDialogComponent>;
|
|
727
|
+
confirmation: ConfirmationDTO;
|
|
728
|
+
constructor(dialogRef: MatDialogRef<ConfirmationDialogComponent>, confirmation: ConfirmationDTO);
|
|
729
|
+
confirm(): void;
|
|
730
|
+
cancel(): void;
|
|
731
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogComponent, never>;
|
|
732
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationDialogComponent, "ptech-confirmation-dialog", never, {}, {}, never, never, true, never>;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
interface ActionDialogField<T = any> {
|
|
736
|
+
type: 'select' | 'number' | 'text' | 'checkbox';
|
|
737
|
+
label: string;
|
|
738
|
+
value?: any;
|
|
739
|
+
options?: T[];
|
|
740
|
+
}
|
|
741
|
+
interface ActionDialogConfig {
|
|
742
|
+
title: string;
|
|
743
|
+
fields: ActionDialogField[];
|
|
744
|
+
infoBox?: string;
|
|
745
|
+
content?: string;
|
|
746
|
+
rawContent?: string;
|
|
747
|
+
confirmText?: string;
|
|
748
|
+
cancelText?: string;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
interface IMessageService {
|
|
752
|
+
successMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
753
|
+
errorMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
754
|
+
warnMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
755
|
+
}
|
|
756
|
+
declare const MESSAGE_SERVICE: InjectionToken<IMessageService>;
|
|
757
|
+
declare const DefaultConsoleMessageService: IMessageService;
|
|
758
|
+
declare const DefaultMessageService: IMessageService;
|
|
759
|
+
|
|
760
|
+
declare class ActionDialogComponent {
|
|
761
|
+
data: ActionDialogConfig;
|
|
762
|
+
private dialogRef;
|
|
763
|
+
private messageService?;
|
|
764
|
+
constructor(data: ActionDialogConfig, dialogRef: MatDialogRef<ActionDialogComponent>, messageService?: IMessageService | undefined);
|
|
765
|
+
private get msg();
|
|
766
|
+
onConfirm(): void;
|
|
767
|
+
onCancel(): void;
|
|
768
|
+
changeQuantity($event: number): void;
|
|
769
|
+
onSelectionChange($event: any): void;
|
|
770
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionDialogComponent, [null, null, { optional: true; }]>;
|
|
771
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionDialogComponent, "ptech-action-dialog", never, {}, {}, never, never, true, never>;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
declare class InfoDetailComponent {
|
|
775
|
+
private dialog;
|
|
776
|
+
infoTitle: string;
|
|
777
|
+
infoContent: string;
|
|
778
|
+
infoRawContent: string;
|
|
779
|
+
iconColor: string;
|
|
780
|
+
constructor(dialog: MatDialog);
|
|
781
|
+
openInfo(): void;
|
|
782
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InfoDetailComponent, never>;
|
|
783
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InfoDetailComponent, "ptech-info-detail", never, { "infoTitle": { "alias": "infoTitle"; "required": false; }; "infoContent": { "alias": "infoContent"; "required": false; }; "infoRawContent": { "alias": "infoRawContent"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
declare class InfoDetailDialogComponent {
|
|
787
|
+
data: {
|
|
788
|
+
title: string;
|
|
789
|
+
content: string;
|
|
790
|
+
rawContent?: string;
|
|
791
|
+
};
|
|
792
|
+
private dialogRef;
|
|
793
|
+
whatsappUrl: string;
|
|
794
|
+
private readonly msgService;
|
|
795
|
+
constructor(data: {
|
|
796
|
+
title: string;
|
|
797
|
+
content: string;
|
|
798
|
+
rawContent?: string;
|
|
799
|
+
}, dialogRef: MatDialogRef<InfoDetailDialogComponent>, messageService: IMessageService | null);
|
|
800
|
+
copyToClipboard(): void;
|
|
801
|
+
close(): void;
|
|
802
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InfoDetailDialogComponent, [null, null, { optional: true; }]>;
|
|
803
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InfoDetailDialogComponent, "ptech-info-detail-dialog", never, {}, {}, never, never, true, never>;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
interface ActionResultData {
|
|
807
|
+
title: string;
|
|
808
|
+
content?: string;
|
|
809
|
+
rawContent?: string;
|
|
810
|
+
details?: unknown;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
declare class ActionResultDialogComponent implements OnInit {
|
|
814
|
+
data: ActionResultData;
|
|
815
|
+
private dialogRef;
|
|
816
|
+
private sanitizer;
|
|
817
|
+
private messageService;
|
|
818
|
+
whatsappUrl: string;
|
|
819
|
+
sanitizedContent: SafeHtml;
|
|
820
|
+
constructor(data: ActionResultData, dialogRef: MatDialogRef<ActionResultDialogComponent>, sanitizer: DomSanitizer, messageService: IMessageService);
|
|
821
|
+
ngOnInit(): void;
|
|
822
|
+
close(): void;
|
|
823
|
+
copyToClipboard(): void;
|
|
824
|
+
openWhatsApp(): void;
|
|
825
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionResultDialogComponent, never>;
|
|
826
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionResultDialogComponent, "ptech-action-result-dialog", never, {}, {}, never, never, true, never>;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
type AlertType = 'success' | 'error' | 'warn' | 'info';
|
|
830
|
+
interface AlertData {
|
|
831
|
+
title: string;
|
|
832
|
+
message: string;
|
|
833
|
+
details?: string[];
|
|
834
|
+
icon?: string;
|
|
835
|
+
type: AlertType;
|
|
836
|
+
timestamp?: string | Date;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
declare class AlertComponent {
|
|
840
|
+
data: AlertData;
|
|
841
|
+
private snackBarRef;
|
|
842
|
+
constructor(data: AlertData, snackBarRef: MatSnackBarRef<AlertComponent>);
|
|
843
|
+
getIconColor(type: string): string;
|
|
844
|
+
closeSnackbar(): void;
|
|
845
|
+
formattedTimestamp(): string;
|
|
846
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
847
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "ptech-alert", never, {}, {}, never, never, true, never>;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
interface ProfileMenuItem {
|
|
851
|
+
label: string;
|
|
852
|
+
icon?: string;
|
|
853
|
+
action: () => void;
|
|
854
|
+
dividerBefore?: boolean;
|
|
855
|
+
}
|
|
856
|
+
declare class ProfileMenuComponent {
|
|
857
|
+
displayName: string;
|
|
858
|
+
items: ProfileMenuItem[];
|
|
859
|
+
handle(item: ProfileMenuItem): void;
|
|
860
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileMenuComponent, never>;
|
|
861
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProfileMenuComponent, "ptech-profile-menu", never, { "displayName": { "alias": "displayName"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, {}, never, ["[extra-items]"], true, never>;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
declare class CheckBoxComponent extends BaseField implements ControlValueAccessor {
|
|
865
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
866
|
+
color: string;
|
|
867
|
+
static ngAcceptInputType_indeterminate: BooleanInput;
|
|
868
|
+
private _indeterminate;
|
|
869
|
+
get indeterminate(): boolean;
|
|
870
|
+
set indeterminate(v: any);
|
|
871
|
+
change: EventEmitter<boolean>;
|
|
872
|
+
indeterminateChange: EventEmitter<boolean>;
|
|
873
|
+
_value: boolean;
|
|
874
|
+
set value(v: any);
|
|
875
|
+
get value(): boolean;
|
|
876
|
+
private onChangeFn;
|
|
877
|
+
private onTouchFn;
|
|
878
|
+
writeValue(v: any): void;
|
|
879
|
+
registerOnChange(fn: any): void;
|
|
880
|
+
registerOnTouched(fn: any): void;
|
|
881
|
+
setDisabledState(isDisabled: boolean): void;
|
|
882
|
+
onCheckboxChange(checked: boolean): void;
|
|
883
|
+
private toBool;
|
|
884
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckBoxComponent, never>;
|
|
885
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckBoxComponent, "ptech-check-box", never, { "color": { "alias": "color"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, never, true, never>;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
declare class InputDateRangeComponent extends BaseField implements ControlValueAccessor {
|
|
889
|
+
dateChange: EventEmitter<{
|
|
890
|
+
start: string | null;
|
|
891
|
+
end: string | null;
|
|
892
|
+
}>;
|
|
893
|
+
/** Placeholders específicos; caem no placeholder do BaseField se não definidos */
|
|
894
|
+
firstPlaceholder: string;
|
|
895
|
+
secondPlaceholder: string;
|
|
896
|
+
hint: string;
|
|
897
|
+
panelClass?: string | string[];
|
|
898
|
+
get resolvedPanelClass(): string[];
|
|
899
|
+
/** Valor interno como string com offset ou null */
|
|
900
|
+
start: string | null;
|
|
901
|
+
end: string | null;
|
|
902
|
+
private onChange;
|
|
903
|
+
private onTouch;
|
|
904
|
+
writeValue(obj: {
|
|
905
|
+
start: string | null;
|
|
906
|
+
end: string | null;
|
|
907
|
+
} | null): void;
|
|
908
|
+
registerOnChange(fn: any): void;
|
|
909
|
+
registerOnTouched(fn: any): void;
|
|
910
|
+
setDisabledState(isDisabled: boolean): void;
|
|
911
|
+
onStartDateChange(event: MatDatepickerInputEvent<Date>): void;
|
|
912
|
+
onEndDateChange(event: MatDatepickerInputEvent<Date>): void;
|
|
913
|
+
private emitDateChange;
|
|
914
|
+
/** Converte Date -> 'YYYY-MM-DDTHH:mm:ss±HH:MM' com offset local; retorna null quando sem data */
|
|
915
|
+
private toIsoWithLocalOffset;
|
|
916
|
+
private pad;
|
|
917
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputDateRangeComponent, never>;
|
|
918
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputDateRangeComponent, "ptech-input-date-range", never, { "panelClass": { "alias": "panelClass"; "required": false; }; }, { "dateChange": "dateChange"; }, never, never, true, never>;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
type EmitMode = 'date' | 'isoDate' | 'isoDateTimeZ' | 'isoDateTimeTZ' | 'localOffset';
|
|
922
|
+
declare class InputDateComponent extends BaseField implements ControlValueAccessor, OnChanges {
|
|
923
|
+
private cdr;
|
|
924
|
+
inputDateElement: ElementRef<HTMLInputElement>;
|
|
925
|
+
picker: MatDatepicker<Date>;
|
|
926
|
+
dateCtrl: FormControl<Date | null>;
|
|
927
|
+
dateChange: EventEmitter<string | Date | null>;
|
|
928
|
+
opened: EventEmitter<void>;
|
|
929
|
+
closed: EventEmitter<void>;
|
|
930
|
+
min?: Date;
|
|
931
|
+
max?: Date;
|
|
932
|
+
startAt?: Date | null;
|
|
933
|
+
startView: 'month' | 'year' | 'multi-year';
|
|
934
|
+
touchUi: boolean;
|
|
935
|
+
panelClass?: string | string[];
|
|
936
|
+
get resolvedPanelClass(): string[];
|
|
937
|
+
dateFilter?: (d: Date | null) => boolean;
|
|
938
|
+
withTime: boolean;
|
|
939
|
+
seconds: boolean;
|
|
940
|
+
timeLabel: string;
|
|
941
|
+
defaultTime: string;
|
|
942
|
+
timeZone?: string | number;
|
|
943
|
+
emit: EmitMode;
|
|
944
|
+
timeString: string;
|
|
945
|
+
onChange: (val: any) => void;
|
|
946
|
+
onTouched: () => void;
|
|
947
|
+
get isDisabled(): boolean;
|
|
948
|
+
constructor(el: ElementRef<HTMLElement>, cdr: ChangeDetectorRef);
|
|
949
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
950
|
+
writeValue(value: string | Date | null): void;
|
|
951
|
+
registerOnChange(fn: any): void;
|
|
952
|
+
registerOnTouched(fn: any): void;
|
|
953
|
+
setDisabledState(isDisabled: boolean): void;
|
|
954
|
+
onTimeInput(v: string): void;
|
|
955
|
+
private emitCombined;
|
|
956
|
+
private combine;
|
|
957
|
+
private normalizeTime;
|
|
958
|
+
private clamp;
|
|
959
|
+
private parseToDate;
|
|
960
|
+
private toOutput;
|
|
961
|
+
private pad;
|
|
962
|
+
private formatIsoDate;
|
|
963
|
+
private formatWithFixedOffset;
|
|
964
|
+
private formatInTimeZone;
|
|
965
|
+
private offsetStringToMinutes;
|
|
966
|
+
private getTzOffsetMinutes;
|
|
967
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputDateComponent, never>;
|
|
968
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputDateComponent, "ptech-input-date", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "touchUi": { "alias": "touchUi"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "withTime": { "alias": "withTime"; "required": false; }; "seconds": { "alias": "seconds"; "required": false; }; "timeLabel": { "alias": "timeLabel"; "required": false; }; "defaultTime": { "alias": "defaultTime"; "required": false; }; "timeZone": { "alias": "timeZone"; "required": false; }; "emit": { "alias": "emit"; "required": false; }; }, { "dateChange": "dateChange"; "opened": "opened"; "closed": "closed"; }, never, ["mat-hint, [mat-hint], mat-error, [mat-error]"], true, never>;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
declare class InputTimeComponent extends BaseField implements ControlValueAccessor {
|
|
972
|
+
/** 24 (padrão) ou 12 */
|
|
973
|
+
format: 12 | 24;
|
|
974
|
+
/** mostra/oculta seleção de segundos */
|
|
975
|
+
seconds: boolean;
|
|
976
|
+
/** evita focar/editar manualmente (só via picker) */
|
|
977
|
+
disableClick: boolean;
|
|
978
|
+
/** defaultTime dinâmico conforme seconds */
|
|
979
|
+
get defaultTime(): string;
|
|
980
|
+
/** two-way opcional via (valueChange) */
|
|
981
|
+
valueChange: EventEmitter<string>;
|
|
982
|
+
private _val;
|
|
983
|
+
onChange: (val: any) => void;
|
|
984
|
+
onTouch: () => void;
|
|
985
|
+
get value(): string | null;
|
|
986
|
+
set value(v: string | null);
|
|
987
|
+
writeValue(val: any): void;
|
|
988
|
+
registerOnChange(fn: any): void;
|
|
989
|
+
registerOnTouched(fn: any): void;
|
|
990
|
+
setDisabledState(isDisabled: boolean): void;
|
|
991
|
+
onTimeSet(raw: string): void;
|
|
992
|
+
private parseTime;
|
|
993
|
+
private pad;
|
|
994
|
+
private clamp;
|
|
995
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputTimeComponent, never>;
|
|
996
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputTimeComponent, "ptech-input-time", never, { "format": { "alias": "format"; "required": false; }; "seconds": { "alias": "seconds"; "required": false; }; "disableClick": { "alias": "disableClick"; "required": false; }; }, { "valueChange": "valueChange"; }, never, ["mat-hint, [mat-hint], mat-error, [mat-error]"], true, never>;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
declare class InputCurrencyComponent extends BaseField implements ControlValueAccessor {
|
|
1000
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
1001
|
+
/** Config por input (parcial) */
|
|
1002
|
+
options: Partial<NgxCurrencyConfig>;
|
|
1003
|
+
valueChange: EventEmitter<any>;
|
|
1004
|
+
private defaultOptions;
|
|
1005
|
+
get resolvedOptions(): NgxCurrencyConfig;
|
|
1006
|
+
private _val;
|
|
1007
|
+
onChange: (val: any) => void;
|
|
1008
|
+
onTouch: () => void;
|
|
1009
|
+
get value(): any;
|
|
1010
|
+
set value(v: any);
|
|
1011
|
+
writeValue(value: any): void;
|
|
1012
|
+
registerOnChange(fn: any): void;
|
|
1013
|
+
registerOnTouched(fn: any): void;
|
|
1014
|
+
setDisabledState(isDisabled: boolean): void;
|
|
1015
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputCurrencyComponent, never>;
|
|
1016
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputCurrencyComponent, "ptech-input-currency", never, { "options": { "alias": "options"; "required": false; }; }, { "valueChange": "valueChange"; }, never, ["mat-hint, [mat-hint], mat-error, [mat-error]"], true, never>;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
declare class FlagComponent {
|
|
1020
|
+
/** ISO 3166-1 alpha-2 (ex.: 'BR', 'ES', 'US'). */
|
|
1021
|
+
code: string | null | undefined;
|
|
1022
|
+
/** Tamanho em px (controla a altura; largura acompanha 4:3). */
|
|
1023
|
+
size: number;
|
|
1024
|
+
/** Usa ícone quadrado do flag-icons. */
|
|
1025
|
+
static ngAcceptInputType_squared: BooleanInput;
|
|
1026
|
+
private _squared;
|
|
1027
|
+
get squared(): boolean;
|
|
1028
|
+
set squared(v: any);
|
|
1029
|
+
/** Tooltip (fallback para o próprio code). */
|
|
1030
|
+
tooltip?: string;
|
|
1031
|
+
/** Texto opcional ao lado da bandeira. */
|
|
1032
|
+
label?: string;
|
|
1033
|
+
/** A11y: rótulo para leitores de tela (ex.: "Bandeira do Brasil"). */
|
|
1034
|
+
ariaLabel?: string;
|
|
1035
|
+
/** Emite click opcionalmente e muda o cursor/teclado. */
|
|
1036
|
+
static ngAcceptInputType_clickable: BooleanInput;
|
|
1037
|
+
private _clickable;
|
|
1038
|
+
get clickable(): boolean;
|
|
1039
|
+
set clickable(v: any);
|
|
1040
|
+
flagClick: EventEmitter<string>;
|
|
1041
|
+
private _col;
|
|
1042
|
+
set col(v: number | string | null | undefined);
|
|
1043
|
+
get gridColumn(): string | null;
|
|
1044
|
+
/** Classe CSS final do flag-icons (normaliza UK->GB). */
|
|
1045
|
+
get classCode(): string;
|
|
1046
|
+
handleClick(): void;
|
|
1047
|
+
onKey(ev: KeyboardEvent): void;
|
|
1048
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlagComponent, never>;
|
|
1049
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FlagComponent, "ptech-flag", never, { "code": { "alias": "code"; "required": false; }; "size": { "alias": "size"; "required": false; }; "squared": { "alias": "squared"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "clickable": { "alias": "clickable"; "required": false; }; "col": { "alias": "col"; "required": false; }; }, { "flagClick": "flagClick"; }, never, never, true, never>;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
declare class TableCellDirective {
|
|
1053
|
+
template: TemplateRef<any>;
|
|
1054
|
+
columnKey: string;
|
|
1055
|
+
constructor(template: TemplateRef<any>);
|
|
1056
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableCellDirective, never>;
|
|
1057
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TableCellDirective, "ng-template[tableCell]", never, { "columnKey": { "alias": "tableCell"; "required": false; }; }, {}, never, never, true, never>;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
type TableAlign = 'left' | 'center' | 'right';
|
|
1061
|
+
type TableColType = 'text' | 'number' | 'date' | 'image' | 'badge';
|
|
1062
|
+
interface TableBadgeConfig<T> {
|
|
1063
|
+
label: string | ((row: T) => string);
|
|
1064
|
+
/** Preset da lib ou qualquer CSS color (#hex, rgb, var(...)) */
|
|
1065
|
+
color?: BadgePreset | string | ((row: T) => BadgePreset | string);
|
|
1066
|
+
/** filled | outline | soft */
|
|
1067
|
+
variant?: BadgeVariant | ((row: T) => BadgeVariant);
|
|
1068
|
+
/** sm | md | lg */
|
|
1069
|
+
size?: BadgeSize | ((row: T) => BadgeSize);
|
|
1070
|
+
/** controla se o badge aparece para a linha */
|
|
1071
|
+
visible?: (row: T) => boolean;
|
|
1072
|
+
}
|
|
1073
|
+
interface TableColumn<T> {
|
|
1074
|
+
key: string;
|
|
1075
|
+
header: string;
|
|
1076
|
+
type?: TableColType;
|
|
1077
|
+
align?: TableAlign;
|
|
1078
|
+
width?: string;
|
|
1079
|
+
/**
|
|
1080
|
+
* Para 'image': de onde tirar a URL/alt
|
|
1081
|
+
*/
|
|
1082
|
+
imageKey?: keyof T | string;
|
|
1083
|
+
altKey?: keyof T | string;
|
|
1084
|
+
/**
|
|
1085
|
+
* Para text/number/date, permite customizar a célula
|
|
1086
|
+
*/
|
|
1087
|
+
cell?: (row: T) => string | number | null | undefined;
|
|
1088
|
+
/**
|
|
1089
|
+
* Para colunas do tipo 'badge'
|
|
1090
|
+
* - pode ser um array fixo de configs
|
|
1091
|
+
* - ou uma função que recebe a linha e retorna os badges
|
|
1092
|
+
*/
|
|
1093
|
+
badges?: TableBadgeConfig<T>[] | ((row: T) => TableBadgeConfig<T>[]);
|
|
1094
|
+
/** cor dinâmica para o texto */
|
|
1095
|
+
color?: string | ((row: T) => string);
|
|
1096
|
+
}
|
|
1097
|
+
interface TableAction<T> {
|
|
1098
|
+
icon: string;
|
|
1099
|
+
tooltip?: string;
|
|
1100
|
+
color?: string;
|
|
1101
|
+
handler: (row: T) => void;
|
|
1102
|
+
/** controla se a ação aparece para a linha */
|
|
1103
|
+
visible?: (row: T) => boolean;
|
|
1104
|
+
}
|
|
1105
|
+
declare class TableComponent<T> implements OnChanges, AfterContentInit {
|
|
1106
|
+
title: string;
|
|
1107
|
+
loading: boolean;
|
|
1108
|
+
data: T[];
|
|
1109
|
+
total: number;
|
|
1110
|
+
pageIndex: number;
|
|
1111
|
+
pageSize: number;
|
|
1112
|
+
pageSizeOptions: number[];
|
|
1113
|
+
columns: TableColumn<T>[];
|
|
1114
|
+
actions: TableAction<T>[];
|
|
1115
|
+
selectRow: boolean;
|
|
1116
|
+
selectMultipleRow: boolean;
|
|
1117
|
+
getRowId: (row: T) => string | number;
|
|
1118
|
+
/** imagem de fallback para <img> quebrada ou ausente */
|
|
1119
|
+
imageFallback: string;
|
|
1120
|
+
/** ativa visualização em cards no mobile */
|
|
1121
|
+
responsiveCards: boolean;
|
|
1122
|
+
selectedRows: EventEmitter<T[]>;
|
|
1123
|
+
selectedIds: EventEmitter<(string | number)[]>;
|
|
1124
|
+
page: EventEmitter<{
|
|
1125
|
+
pageIndex: number;
|
|
1126
|
+
pageSize: number;
|
|
1127
|
+
}>;
|
|
1128
|
+
displayedColumns: string[];
|
|
1129
|
+
selection: SelectionModel<T>;
|
|
1130
|
+
private selectedIdSet;
|
|
1131
|
+
cellTemplates: QueryList<TableCellDirective>;
|
|
1132
|
+
private cellTemplateMap;
|
|
1133
|
+
ngAfterContentInit(): void;
|
|
1134
|
+
private rebuildTemplateMap;
|
|
1135
|
+
getCellTemplate(key: string): TemplateRef<any> | null;
|
|
1136
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1137
|
+
toggleAllRows(): void;
|
|
1138
|
+
/** Verifica se todas estão selecionadas */
|
|
1139
|
+
isAllSelected(): boolean;
|
|
1140
|
+
clearSelection(): void;
|
|
1141
|
+
/** Marca/desmarca uma linha */
|
|
1142
|
+
toggleRow(row: T): void;
|
|
1143
|
+
/** Emite o estado atual */
|
|
1144
|
+
private emitSelected;
|
|
1145
|
+
/** Verifica se uma linha está selecionada */
|
|
1146
|
+
isSelected(row: T): boolean;
|
|
1147
|
+
onPage(ev: any): void;
|
|
1148
|
+
renderCell(row: T, col: TableColumn<T>): any;
|
|
1149
|
+
resolveImage(row: T, col: TableColumn<T>): string | null;
|
|
1150
|
+
resolveAlt(row: T, col: TableColumn<T>): string | null;
|
|
1151
|
+
resolveColor(row: T, col: TableColumn<T>): string | null;
|
|
1152
|
+
read(obj: any, path: string): any;
|
|
1153
|
+
onImgError(ev: Event): void;
|
|
1154
|
+
/** BADGES: resolve a lista de badges para a linha+coluna */
|
|
1155
|
+
getBadges(row: T, col: TableColumn<T>): Array<{
|
|
1156
|
+
label: string;
|
|
1157
|
+
color: BadgePreset | string;
|
|
1158
|
+
variant: BadgeVariant;
|
|
1159
|
+
size: BadgeSize;
|
|
1160
|
+
}>;
|
|
1161
|
+
badgeJustify(align?: TableAlign): 'start' | 'center' | 'end';
|
|
1162
|
+
resolveActionColor(action: TableAction<T>): string;
|
|
1163
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
1164
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "ptech-table", never, { "title": { "alias": "title"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "data": { "alias": "data"; "required": false; }; "total": { "alias": "total"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "selectRow": { "alias": "selectRow"; "required": false; }; "selectMultipleRow": { "alias": "selectMultipleRow"; "required": false; }; "getRowId": { "alias": "getRowId"; "required": false; }; "imageFallback": { "alias": "imageFallback"; "required": false; }; "responsiveCards": { "alias": "responsiveCards"; "required": false; }; }, { "selectedRows": "selectedRows"; "selectedIds": "selectedIds"; "page": "page"; }, ["cellTemplates"], ["[table-filters]", "[table-filters-actions]"], true, never>;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
declare const MY_DATE_FORMATS: {
|
|
1168
|
+
parse: {
|
|
1169
|
+
dateInput: string;
|
|
1170
|
+
};
|
|
1171
|
+
display: {
|
|
1172
|
+
dateInput: string;
|
|
1173
|
+
monthYearLabel: string;
|
|
1174
|
+
dateA11yLabel: string;
|
|
1175
|
+
monthYearA11yLabel: string;
|
|
1176
|
+
};
|
|
1177
|
+
};
|
|
1178
|
+
declare class CoreMaterialModule {
|
|
1179
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoreMaterialModule, never>;
|
|
1180
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreMaterialModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.MatToolbarModule, typeof i4.MatSidenavModule, typeof i5.MatListModule, typeof i6.MatButtonModule, typeof i7.MatSnackBarModule, typeof i8.MatCardModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatSelectModule, typeof i12.MatTableModule, typeof i13.MatPaginatorModule, typeof i14.MatSortModule, typeof i15.MatIconModule, typeof i16.MatDividerModule, typeof i17.MatTooltipModule, typeof i18.MatMenuModule, typeof i19.MatDatepickerModule, typeof i20.MatProgressBarModule, typeof i21.MatSlideToggleModule, typeof i22.MatDialogModule, typeof i23.MatRadioModule, typeof i24.MatCheckboxModule, typeof i25.MatProgressSpinnerModule], [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.MatToolbarModule, typeof i4.MatSidenavModule, typeof i5.MatListModule, typeof i6.MatButtonModule, typeof i7.MatSnackBarModule, typeof i8.MatCardModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatSelectModule, typeof i12.MatTableModule, typeof i13.MatPaginatorModule, typeof i14.MatSortModule, typeof i15.MatIconModule, typeof i16.MatDividerModule, typeof i17.MatTooltipModule, typeof i18.MatMenuModule, typeof i19.MatDatepickerModule, typeof i20.MatProgressBarModule, typeof i21.MatSlideToggleModule, typeof i22.MatDialogModule, typeof i23.MatRadioModule, typeof i24.MatCheckboxModule, typeof i25.MatProgressSpinnerModule]>;
|
|
1181
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CoreMaterialModule>;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
declare class PumpkinTechModule {
|
|
1185
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PumpkinTechModule, never>;
|
|
1186
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PumpkinTechModule, never, [typeof i1.CommonModule, typeof CoreMaterialModule, typeof InputComponent, typeof TextareaComponent, typeof InputDateComponent, typeof InputDateRangeComponent, typeof InputTimeComponent, typeof InputCurrencyComponent, typeof InfoDetailComponent, typeof InfoDetailDialogComponent, typeof ActionDialogComponent, typeof ActionResultDialogComponent, typeof ButtonComponent, typeof BadgeComponent, typeof BadgeStackComponent, typeof BreadcrumbComponent, typeof TitleComponent, typeof ActionRowComponent, typeof HeaderComponent, typeof NavComponent, typeof FooterComponent, typeof IconComponent, typeof SelectEntityComponent, typeof SelectEnumComponent, typeof RadioGroupEnumComponent, typeof RadioGroupEntityComponent, typeof SlideToggleComponent, typeof QuantityItemsComponent, typeof LoadingOverlayComponent, typeof ProfileMenuComponent, typeof CheckBoxComponent, typeof ProgressBarComponent, typeof ProgressBarMultipleComponent, typeof FlagComponent, typeof TableComponent], [typeof InputComponent, typeof TextareaComponent, typeof InputDateComponent, typeof InputDateRangeComponent, typeof InputTimeComponent, typeof InputCurrencyComponent, typeof InfoDetailComponent, typeof InfoDetailDialogComponent, typeof ActionDialogComponent, typeof ActionResultDialogComponent, typeof ButtonComponent, typeof BadgeComponent, typeof BadgeStackComponent, typeof BreadcrumbComponent, typeof TitleComponent, typeof ActionRowComponent, typeof HeaderComponent, typeof NavComponent, typeof FooterComponent, typeof IconComponent, typeof SelectEntityComponent, typeof SelectEnumComponent, typeof RadioGroupEnumComponent, typeof RadioGroupEntityComponent, typeof SlideToggleComponent, typeof QuantityItemsComponent, typeof LoadingOverlayComponent, typeof ProfileMenuComponent, typeof CheckBoxComponent, typeof ProgressBarComponent, typeof ProgressBarMultipleComponent, typeof FlagComponent, typeof TableComponent, typeof CoreMaterialModule]>;
|
|
1187
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PumpkinTechModule>;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
declare class UpperCaseDirective {
|
|
1191
|
+
ngControl: NgControl;
|
|
1192
|
+
enabledUpperCase: boolean;
|
|
1193
|
+
constructor(ngControl: NgControl);
|
|
1194
|
+
onModelChange(event: string): void;
|
|
1195
|
+
onInput(event: Event): void;
|
|
1196
|
+
private apply;
|
|
1197
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpperCaseDirective, [{ optional: true; }]>;
|
|
1198
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UpperCaseDirective, "[ptechUpperCase]", never, { "enabledUpperCase": { "alias": "ptechUpperCase"; "required": false; }; }, {}, never, never, true, never>;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
declare class LowerCaseDirective {
|
|
1202
|
+
ngControl: NgControl;
|
|
1203
|
+
enabledLowerCase: boolean;
|
|
1204
|
+
constructor(ngControl: NgControl);
|
|
1205
|
+
onModelChange(event: string): void;
|
|
1206
|
+
onInput(event: Event): void;
|
|
1207
|
+
private apply;
|
|
1208
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LowerCaseDirective, [{ optional: true; }]>;
|
|
1209
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LowerCaseDirective, "[ptechLowerCase]", never, { "enabledLowerCase": { "alias": "ptechLowerCase"; "required": false; }; }, {}, never, never, true, never>;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
declare class RedDirective {
|
|
1213
|
+
private el;
|
|
1214
|
+
private renderer;
|
|
1215
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
1216
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RedDirective, never>;
|
|
1217
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RedDirective, "[ptechRed]", never, {}, {}, never, never, true, never>;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
declare class ClickCatcherDirective {
|
|
1221
|
+
onClick(id: any): void;
|
|
1222
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClickCatcherDirective, never>;
|
|
1223
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ClickCatcherDirective, "[ptechClickCatcher]", never, {}, {}, never, never, true, never>;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
declare class ForDirective implements OnChanges {
|
|
1227
|
+
private container;
|
|
1228
|
+
private template;
|
|
1229
|
+
numbers: any[];
|
|
1230
|
+
constructor(container: ViewContainerRef, template: TemplateRef<any>);
|
|
1231
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1232
|
+
private render;
|
|
1233
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ForDirective, never>;
|
|
1234
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ForDirective, "[ptechFor]", never, { "numbers": { "alias": "ptechForEm"; "required": false; }; }, {}, never, never, true, never>;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
declare class PhoneMaskBrazilDirective {
|
|
1238
|
+
ngControl: NgControl;
|
|
1239
|
+
constructor(ngControl: NgControl);
|
|
1240
|
+
onModelChange(event: string): void;
|
|
1241
|
+
onBackspace(event: KeyboardEvent): void;
|
|
1242
|
+
private apply;
|
|
1243
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneMaskBrazilDirective, [{ optional: true; }]>;
|
|
1244
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PhoneMaskBrazilDirective, "[ptechPhoneMaskBrazil]", never, {}, {}, never, never, true, never>;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
declare class PhoneMaskSpainDirective {
|
|
1248
|
+
ngControl: NgControl;
|
|
1249
|
+
constructor(ngControl: NgControl);
|
|
1250
|
+
onModelChange(event: string): void;
|
|
1251
|
+
onBackspace(event: KeyboardEvent): void;
|
|
1252
|
+
private apply;
|
|
1253
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneMaskSpainDirective, [{ optional: true; }]>;
|
|
1254
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PhoneMaskSpainDirective, "[ptechPhoneMaskSpain]", never, {}, {}, never, never, true, never>;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
declare class SpaceDropDirective {
|
|
1258
|
+
ngControl: NgControl;
|
|
1259
|
+
enabled: boolean;
|
|
1260
|
+
constructor(ngControl: NgControl);
|
|
1261
|
+
onModelChange(value: string): void;
|
|
1262
|
+
onInput(event: Event): void;
|
|
1263
|
+
private apply;
|
|
1264
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpaceDropDirective, [{ optional: true; }]>;
|
|
1265
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SpaceDropDirective, "[ptechSpaceDrop]", never, { "enabled": { "alias": "ptechSpaceDrop"; "required": false; }; }, {}, never, never, true, never>;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
declare class DateMaskDirective {
|
|
1269
|
+
onInputChange(event: Event): void;
|
|
1270
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
1271
|
+
private applyMask;
|
|
1272
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateMaskDirective, never>;
|
|
1273
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DateMaskDirective, "[ptechDateMask]", never, {}, {}, never, never, true, never>;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
declare class DynamicTabDirective {
|
|
1277
|
+
viewContainer: ViewContainerRef;
|
|
1278
|
+
constructor(viewContainer: ViewContainerRef);
|
|
1279
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTabDirective, never>;
|
|
1280
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DynamicTabDirective, "[ptechDynamicTab]", never, {}, {}, never, never, true, never>;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
declare class DirectivesModule {
|
|
1284
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DirectivesModule, never>;
|
|
1285
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DirectivesModule, never, [typeof UpperCaseDirective, typeof LowerCaseDirective, typeof RedDirective, typeof ClickCatcherDirective, typeof ForDirective, typeof PhoneMaskBrazilDirective, typeof PhoneMaskSpainDirective, typeof SpaceDropDirective, typeof DateMaskDirective, typeof DynamicTabDirective, typeof PtechGridDirective, typeof PtechColDirective, typeof TableCellDirective], [typeof UpperCaseDirective, typeof LowerCaseDirective, typeof RedDirective, typeof ClickCatcherDirective, typeof ForDirective, typeof PhoneMaskBrazilDirective, typeof PhoneMaskSpainDirective, typeof SpaceDropDirective, typeof DateMaskDirective, typeof DynamicTabDirective, typeof PtechGridDirective, typeof PtechColDirective, typeof TableCellDirective]>;
|
|
1286
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DirectivesModule>;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
declare class CurrencyBrlPipe implements PipeTransform {
|
|
1290
|
+
private currencyPipe;
|
|
1291
|
+
transform(value: unknown, symbolDisplay?: boolean): string | null;
|
|
1292
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyBrlPipe, never>;
|
|
1293
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CurrencyBrlPipe, "currencybrl", true>;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
declare class DateAgoPipe implements PipeTransform {
|
|
1297
|
+
private readonly intervals;
|
|
1298
|
+
transform(value: unknown): string;
|
|
1299
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateAgoPipe, never>;
|
|
1300
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DateAgoPipe, "dateAgo", true>;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
declare class GetFirstStringBeforeSpacePipe implements PipeTransform {
|
|
1304
|
+
transform(value: string | null | undefined): string;
|
|
1305
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetFirstStringBeforeSpacePipe, never>;
|
|
1306
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GetFirstStringBeforeSpacePipe, "getFirstStringBeforeSpace", true>;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
declare class LineBreakAfterPeriodPipe implements PipeTransform {
|
|
1310
|
+
transform(value: string | null | undefined): string;
|
|
1311
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LineBreakAfterPeriodPipe, never>;
|
|
1312
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LineBreakAfterPeriodPipe, "lineBreakAfterPeriod", true>;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
declare class LineBreakAfterPipe implements PipeTransform {
|
|
1316
|
+
transform(value: string | null | undefined, lettersPerLine?: number): string;
|
|
1317
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LineBreakAfterPipe, never>;
|
|
1318
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LineBreakAfterPipe, "lineBreakAfter", true>;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
declare class MemoryFormatPipe implements PipeTransform {
|
|
1322
|
+
transform(value: number | string | null | undefined, unit?: 'MB' | 'GB'): string;
|
|
1323
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MemoryFormatPipe, never>;
|
|
1324
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MemoryFormatPipe, "memoryFormat", true>;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
declare class PhoneBrazilPipe implements PipeTransform {
|
|
1328
|
+
transform(tel: unknown): string;
|
|
1329
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneBrazilPipe, never>;
|
|
1330
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PhoneBrazilPipe, "phoneBrazil", true>;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
declare class PhoneSpainPipe implements PipeTransform {
|
|
1334
|
+
transform(tel: unknown): string;
|
|
1335
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneSpainPipe, never>;
|
|
1336
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PhoneSpainPipe, "phoneSpain", true>;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
declare class UptimeFormatPipe implements PipeTransform {
|
|
1340
|
+
transform(totalSeconds: number | null | undefined): string;
|
|
1341
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UptimeFormatPipe, never>;
|
|
1342
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<UptimeFormatPipe, "uptimeFormat", true>;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
declare class TimeDurationPipe implements PipeTransform {
|
|
1346
|
+
transform(input: Date | string | number | null | undefined, now?: Date | null): string;
|
|
1347
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeDurationPipe, never>;
|
|
1348
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TimeDurationPipe, "timeDuration", true>;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
declare class IsLongerThanPipe implements PipeTransform {
|
|
1352
|
+
transform(input: Date | string | number | null | undefined, threshold: number | string, // horas (número) OU string: "00:30", "30m", "2h", "90s", "1:30:00"
|
|
1353
|
+
now?: Date | null): boolean;
|
|
1354
|
+
private parseThresholdToMs;
|
|
1355
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsLongerThanPipe, never>;
|
|
1356
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsLongerThanPipe, "isLongerThan", true>;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
declare class PipesModule {
|
|
1360
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PipesModule, never>;
|
|
1361
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PipesModule, never, [typeof i1.CommonModule, typeof CurrencyBrlPipe, typeof DateAgoPipe, typeof GetFirstStringBeforeSpacePipe, typeof LineBreakAfterPeriodPipe, typeof LineBreakAfterPipe, typeof MemoryFormatPipe, typeof PhoneBrazilPipe, typeof PhoneSpainPipe, typeof UptimeFormatPipe, typeof TimeDurationPipe, typeof IsLongerThanPipe], [typeof CurrencyBrlPipe, typeof DateAgoPipe, typeof GetFirstStringBeforeSpacePipe, typeof LineBreakAfterPeriodPipe, typeof LineBreakAfterPipe, typeof MemoryFormatPipe, typeof PhoneBrazilPipe, typeof PhoneSpainPipe, typeof UptimeFormatPipe, typeof TimeDurationPipe, typeof IsLongerThanPipe]>;
|
|
1362
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PipesModule>;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
declare class SnackbarMessageService implements IMessageService {
|
|
1366
|
+
private snackBar;
|
|
1367
|
+
constructor(snackBar: MatSnackBar);
|
|
1368
|
+
private openSnackBar;
|
|
1369
|
+
successMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
1370
|
+
errorMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
1371
|
+
warnMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
1372
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarMessageService, never>;
|
|
1373
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SnackbarMessageService>;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
interface DialogModel<T = any, D = any> {
|
|
1377
|
+
component: any;
|
|
1378
|
+
data?: D;
|
|
1379
|
+
width?: string;
|
|
1380
|
+
height?: string;
|
|
1381
|
+
position?: MatDialogConfig['position'];
|
|
1382
|
+
panelClass?: string | string[];
|
|
1383
|
+
disableClose?: boolean;
|
|
1384
|
+
}
|
|
1385
|
+
declare class DialogService {
|
|
1386
|
+
private dialog;
|
|
1387
|
+
constructor(dialog: MatDialog);
|
|
1388
|
+
open<T = any, R = any>(model: DialogModel<T, any>): MatDialogRef<T, R>;
|
|
1389
|
+
openInfo(arg: {
|
|
1390
|
+
title: string;
|
|
1391
|
+
content: string;
|
|
1392
|
+
rawContent?: string;
|
|
1393
|
+
}, width?: string): MatDialogRef<InfoDetailDialogComponent>;
|
|
1394
|
+
openActionDialog(config: ActionDialogConfig, width?: string): MatDialogRef<ActionDialogComponent, any>;
|
|
1395
|
+
openResultDialog(arg: ActionResultData, width?: string): MatDialogRef<ActionResultDialogComponent>;
|
|
1396
|
+
confirm(confirmation: ConfirmationDTO, width?: string): Observable<boolean>;
|
|
1397
|
+
/**
|
|
1398
|
+
* Abre um ActionDialog e, se houver resultado, usa o builder para criar
|
|
1399
|
+
* o ActionResultData e abre o resultado.
|
|
1400
|
+
* Retorna um observable que emite quando o fluxo completo terminou.
|
|
1401
|
+
*/
|
|
1402
|
+
openActionThenResult(actionConfig: Omit<ActionDialogConfig, 'fields'> & {
|
|
1403
|
+
fields?: any[];
|
|
1404
|
+
}, resultConfigBuilder: (actionResult: any) => ActionResultData): Observable<void>;
|
|
1405
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
1406
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
declare class ModuleChangeService {
|
|
1410
|
+
private moduleChangedSource;
|
|
1411
|
+
moduleChanged$: rxjs.Observable<string>;
|
|
1412
|
+
notifyModuleChange(lastModule: string): void;
|
|
1413
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModuleChangeService, never>;
|
|
1414
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ModuleChangeService>;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
type CurrencyCode = 'EUR' | 'USD' | 'BRL';
|
|
1418
|
+
declare class CurrencyPreferenceService {
|
|
1419
|
+
private _currency;
|
|
1420
|
+
private readonly _subject;
|
|
1421
|
+
readonly currency$: rxjs.Observable<CurrencyCode>;
|
|
1422
|
+
constructor();
|
|
1423
|
+
private loadInitialCurrency;
|
|
1424
|
+
private isSupported;
|
|
1425
|
+
private _setCurrencyInternal;
|
|
1426
|
+
getCurrency(): CurrencyCode;
|
|
1427
|
+
setCurrency(newCurrency: CurrencyCode): void;
|
|
1428
|
+
getCurrencySymbol(): string;
|
|
1429
|
+
getThousandSeparator(): string;
|
|
1430
|
+
getDecimalMarker(): string;
|
|
1431
|
+
getPlaceholder(): string;
|
|
1432
|
+
formatAmount(value: number, options?: {
|
|
1433
|
+
minimumFractionDigits?: number;
|
|
1434
|
+
maximumFractionDigits?: number;
|
|
1435
|
+
useSymbol?: boolean;
|
|
1436
|
+
}): string;
|
|
1437
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyPreferenceService, never>;
|
|
1438
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CurrencyPreferenceService>;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
declare class BreadcrumbService {
|
|
1442
|
+
private router;
|
|
1443
|
+
private prefix$;
|
|
1444
|
+
private _crumbs;
|
|
1445
|
+
readonly breadcrumbs$: Observable<BreadcrumbRoute[]>;
|
|
1446
|
+
constructor(router: Router, prefix$: Observable<BreadcrumbRoute[]>);
|
|
1447
|
+
private buildDynamicCrumbs;
|
|
1448
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbService, [null, { optional: true; }]>;
|
|
1449
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BreadcrumbService>;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1
1452
|
/**
|
|
2
|
-
*
|
|
1453
|
+
* Se o app consumidor quiser inserir dinamicamente
|
|
1454
|
+
* o crumb de “módulo” (ou qualquer outro prefixo),
|
|
1455
|
+
* ele pode fornecer um Observable<BreadcrumbRoute[]> aqui.
|
|
3
1456
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
1457
|
+
declare const BREADCRUMB_PREFIX$: InjectionToken<Observable<BreadcrumbRoute[]>>;
|
|
1458
|
+
|
|
1459
|
+
declare class ObjectUtil {
|
|
1460
|
+
static isNull(value: any): boolean;
|
|
1461
|
+
static isEmptyObject(obj: object): boolean;
|
|
1462
|
+
/**
|
|
1463
|
+
* Considera “novo” um modelo sem id ou com id não positivo.
|
|
1464
|
+
*/
|
|
1465
|
+
static isNewModel(value: any): boolean;
|
|
1466
|
+
static clone<T extends object>(value: T | null | undefined): T | {};
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
declare class StringUtil {
|
|
1470
|
+
static readonly EMPTY = "";
|
|
1471
|
+
static replaceAccents(value: string): string;
|
|
1472
|
+
static removeAccents(value: string): string;
|
|
1473
|
+
static isEmpty(value: string | null | undefined): boolean;
|
|
1474
|
+
/**
|
|
1475
|
+
* Aplica máscara simples onde '9' é placeholder numérico.
|
|
1476
|
+
*/
|
|
1477
|
+
static format(value: string, mask: string): string;
|
|
1478
|
+
/**
|
|
1479
|
+
* Corta por quantidade de caracteres.
|
|
1480
|
+
* Ex: ellipsisByChars('Vodafone Spain', 4) => 'Voda…'
|
|
1481
|
+
*/
|
|
1482
|
+
static ellipsisByChars(value: string | null | undefined, maxChars: number, suffix?: string): string;
|
|
1483
|
+
/**
|
|
1484
|
+
* Corta por quantidade de palavras (separado por espaços).
|
|
1485
|
+
* Ex: ellipsisByWords('Vodafone Spain', 1) => 'Vodafone…'
|
|
1486
|
+
*/
|
|
1487
|
+
static ellipsisByWords(value: string | null | undefined, maxWords: number, suffix?: string): string;
|
|
1488
|
+
/**
|
|
1489
|
+
* “Smart”: se tiver espaço, corta por palavras; se não, corta por caracteres.
|
|
1490
|
+
* Ex:
|
|
1491
|
+
* smartEllipsis('Vodafone Spain', 4, 1) => 'Vodafone…'
|
|
1492
|
+
* smartEllipsis('Vodafone', 4, 1) => 'Voda…'
|
|
1493
|
+
*/
|
|
1494
|
+
static smartEllipsis(value: string | null | undefined, maxChars: number, maxWords: number, suffix?: string): string;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
declare class ArrayUtil {
|
|
1498
|
+
static isEmpty<T>(value: T[] | null | undefined): boolean;
|
|
1499
|
+
static clone<T>(value: T[] | null | undefined): T[];
|
|
1500
|
+
/**
|
|
1501
|
+
* Usar como predicate em filter para distinct por comparação de id
|
|
1502
|
+
* Ex: array.filter(ArrayUtil.distinctById)
|
|
1503
|
+
*/
|
|
1504
|
+
static distinctById: (obj: any, index: number, self: any[]) => boolean;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
declare class NumberUtil {
|
|
1508
|
+
static isPositive(value: number | null | undefined): boolean;
|
|
1509
|
+
static format(value: number | null | undefined, digitsInfo?: string): string;
|
|
1510
|
+
static get(value: number | null | undefined): number;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
declare class DateUtil {
|
|
1514
|
+
static readonly DATE_FORMAT = "dd/MM/yyyy";
|
|
1515
|
+
static readonly DATE_TIME_FORMAT = "dd/MM/yyyy HH:mm";
|
|
1516
|
+
static readonly DATE_TIME_FORMAT_SLICED = "dd/MM/yy HH:mm";
|
|
1517
|
+
static readonly DATE_TIME_FULL_FORMAT = "dd/MM/yyyy HH:mm:ss";
|
|
1518
|
+
/**
|
|
1519
|
+
* Aceita Date | string | undefined. Retorna string formatada ou vazio.
|
|
1520
|
+
*/
|
|
1521
|
+
static format(value: Date | string | undefined | null, format: string): string;
|
|
1522
|
+
static getTotalDaysInMonth(month: number, year: number): number;
|
|
1523
|
+
static addMonthsToDate(date: Date, monthsToAdd: number): Date;
|
|
1524
|
+
static addDaysToDate(days: number, date: Date): Date;
|
|
1525
|
+
static isValid(value: any): boolean;
|
|
1526
|
+
static isGreaterThan(initial: Date | string, final: Date | string): boolean;
|
|
1527
|
+
static isLessThan(initial: Date | string, final: Date | string): boolean;
|
|
1528
|
+
static isBetween(date: Date | string, initial: Date | string, final: Date | string): boolean;
|
|
1529
|
+
static getDayOfWeek(date: Date): string;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
declare class CurrencyUtil {
|
|
1533
|
+
/**
|
|
1534
|
+
* @param value número a formatar. Se nulo/indefinido retorna string vazia.
|
|
1535
|
+
* @param currency código ISO (ex: 'BRL') ou símbolo informal passado como terceiro arg se precisar.
|
|
1536
|
+
* @param digitsInfo formato, ex: '1.2-2'
|
|
1537
|
+
*/
|
|
1538
|
+
static transform(value: number | null | undefined, currency?: string, digitsInfo?: string): string;
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
declare class DocumentUtil {
|
|
1542
|
+
static isValidCpf(cpf: string): boolean;
|
|
1543
|
+
static isValidCnpj(cnpj: string): boolean;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
declare class UuidUtil {
|
|
1547
|
+
private static uuidPattern;
|
|
1548
|
+
static isUUID(uuid: string | null | undefined): boolean;
|
|
1549
|
+
static extractUUID(uuid: string | null | undefined): string | null;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
/**
|
|
1553
|
+
* Modelo mínimo de usuário falso gerado.
|
|
1554
|
+
*/
|
|
1555
|
+
interface FakeUser {
|
|
1556
|
+
name: string;
|
|
1557
|
+
email: string;
|
|
1558
|
+
phone: string;
|
|
1559
|
+
birthDate: Date | string;
|
|
1560
|
+
password: string;
|
|
1561
|
+
}
|
|
1562
|
+
/**
|
|
1563
|
+
* Opções para geração de senha.
|
|
1564
|
+
* Espelha o esperado pelo faker.internet.password({ ... })
|
|
1565
|
+
*/
|
|
1566
|
+
interface PasswordOptions {
|
|
1567
|
+
length?: number;
|
|
1568
|
+
memorable?: boolean;
|
|
1569
|
+
pattern?: RegExp;
|
|
1570
|
+
prefix?: string;
|
|
1571
|
+
}
|
|
1572
|
+
declare class FakeDataService {
|
|
1573
|
+
private readonly DEFAULT_PASSWORD_OPTIONS;
|
|
1574
|
+
randomPassword(options?: PasswordOptions): string;
|
|
1575
|
+
generateUsers(count: number): FakeUser[];
|
|
1576
|
+
formatPhoneNumber(phone: string): string;
|
|
1577
|
+
/**
|
|
1578
|
+
* Retorna opções de senha padrão, permitindo sobreposição:
|
|
1579
|
+
* ex: passwordDefaults({ length: 10, prefix: 'Hi' })
|
|
1580
|
+
*/
|
|
1581
|
+
passwordDefaults(overrides?: PasswordOptions): Required<PasswordOptions>;
|
|
1582
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FakeDataService, never>;
|
|
1583
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FakeDataService>;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CheckBoxComponent, ClickCatcherDirective, ConfirmationDialogComponent, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DirectivesModule, DocumentUtil, DynamicTabDirective, FakeDataService, FlagComponent, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, IsLongerThanPipe, LineBreakAfterPeriodPipe, LineBreakAfterPipe, LoadingOverlayComponent, LoadingService, LowerCaseDirective, MESSAGE_SERVICE, MY_DATE_FORMATS, MemoryFormatPipe, ModuleChangeService, NavComponent, NavService, NumberUtil, ObjectUtil, PhoneBrazilPipe, PhoneMaskBrazilDirective, PhoneMaskSpainDirective, PhoneSpainPipe, PipesModule, ProfileMenuComponent, ProgressBarComponent, ProgressBarMultipleComponent, PtechColDirective, PtechGridDirective, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
|
|
1587
|
+
export type { ActionDialogConfig, ActionDialogField, ActionResultData, AlertData, AlertType, BadgePreset, BadgeSize, BadgeVariant, BreadcrumbRoute, ConfirmationDTO, CurrencyCode, DialogModel, FakeUser, FooterItem, HeaderData, IMessageService, NavLink, PasswordOptions, ProfileMenuItem, TableAction, TableAlign, TableBadgeConfig, TableColType, TableColumn };
|